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 💅

Web capture_19-9-2022_1505_github com

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

now ✋

Web capture_19-9-2022_15244_github com

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 ⤵️?

Web capture_19-9-2022_15539_github com

i asked google..the wrong question👍

and got a mumbo-jumbo of search keywords for answers

Web capture_19-9-2022_22059_www geeksforgeeks org

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

Web capture_15-9-2022_232023_github com

the keyword i’d been missing? ➡️ file-ref ⬅️

it was there the whooolee timeeeee

Web capture_15-9-2022_232113_opensource adobe com

it should’ve been a no brainer but, here we are..

so, in plain english ⤵️

data from the HTML file (to be converted) is initially sent to ➡️ a temporary location created solely for that purpose

aka source HTML file.

Web capture_15-9-2022_23234_opensource adobe com

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. 🚀