Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of DocumentFormatter #171

Closed
amoshydra opened this issue Feb 14, 2017 · 2 comments
Closed

Implementation of DocumentFormatter #171

amoshydra opened this issue Feb 14, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@amoshydra amoshydra modified the milestones: V0.1.1b, V0.1.1a Feb 14, 2017
@amoshydra amoshydra changed the title Conceptualise the implmentation of DocumentFormatter Implementation of DocumentFormatter Feb 16, 2017
@amoshydra
Copy link
Contributor Author

amoshydra commented Feb 26, 2017

Related conversation

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

@amoshydra
Copy link
Contributor Author

Done #199

PageRenderer DocumentFormatter is developed by simply manipulating HTML DOM Document Objects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants