You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#194 (comment)
I am experimenting with different methods of producing paginated html pages for our "Pages" view.
Using jspdf is one of the method.
jsPdf currently offer a .fromHTML method that take in HTML string and convert it to PDF format.
Then I intend to display this pdf directly to the Viewer component directly using another another library called PDFjs.
This conversion should happen automatically when there is an update to the Editor component.
Drawback
However, this conversion is very resource intensive (from jsPDF to PDFjs). Each conversion could take up to 1 second.
the fromHTML api offered by jsPDF is still an experimental function and it does not support css yet.
Other method
Other method will include writing our own pagination library, which I am still researching.
🚧 WIP
Relevant technology:
Tools
User Interface Design
Relevant
The text was updated successfully, but these errors were encountered: