meal-prepping
flow ⚓
“But flow doesn’t come from doing easy things over and over again.
It comes from tasks that reside at the edge of our potential.
So don’t be afraid to do hard things.”
so, i did some disection 💅

i toured the HTML-PDF API,
and i’m thankful for journey mercies. 😮💨
now ✋

i thought we were dealing with just one HTML file here?
so there’s the HTML file (to be converted), and there’s the source HTML file?
why?
and why does it have to be created from a local file ⤵️?

i asked google..the wrong question👍
and got a mumbo-jumbo of search keywords for answers

two days later ⏳💡
i was sub-consciously bad mouthing js when i imagined that the samples in java, for example, might be less chinesey..
i headed there and while the syntax was barely different, it instantly clicked! 🤦♀️
java sample

the keyword i’d been missing? ➡️ file-ref ⬅️
it was there the whooolee timeeeee

it should’ve been a no brainer but, here we are..
so, in plain english ⤵️
datafrom the HTML file (to be converted) is initially sent to ➡️ a temporary location created solely for that purposeaka
source HTML file.
when we call
save eesh, the data heads down to the ➡️destination file(now pdf, ready for download or anything else)finally, a delete action is triggered on the
source HTML file.. it served its purpose..
whew! 😅
i’ll now head back to do some actual cooking. 👩🍳
…and thanks for reading. 🚀
