top | item 8278532

(no title)

drdoooom | 11 years ago

how are you generating the pdf? client side as well?

discuss

order

Bogdanp|11 years ago

There's a Scala-based backend service that generates the PDFs based on the data it receives from the client (I am planning on transitioning to something like[1] for this purpose in the future, however). The PDFs are garbage-collected within 10 minutes of when they are created.

1: http://parall.ax/products/jspdf

tombrossman|11 years ago

On you site it says "Free Invoice Generator does not store any of your data online. Instead, all of your settings are saved to your browser through the LocalStorage mechanism. Clicking the above button will delete the data that Free Invoice Generator has saved to your computer so far."

Maybe I have a poor understanding of the logistics but on reading that I have the impression that my data never leaves my browser. If so, how are you generating the PDFs server-side which are populated with my data?

This looks great and my question isn't a complaint. If you store user's browser data for 10 minutes or so, then you should probably change the wording in your claim to reflect this. And if you can generate a PDF server-side which somehow adds user data without leaving my browser's local storage I'd be most interested in learning how that works as it sounds almost magical.

drdoooom|11 years ago

interesting, thanks for the info. i just finished up a similar project and had tough time with jspdf, ended up using http://pdfmake.org/#/.