cesarvr / pdf-generator

Cordova plugin to generate pdf in the client-side
MIT License
107 stars 61 forks source link

Create multiple pages? #44

Closed AndrewKasper closed 6 years ago

AndrewKasper commented 6 years ago

Is there a way to tell it to create a new page and have it be part of the same document?

cesarvr commented 6 years ago

The plugin can't do that because is using Webkit for rendering so you are limited to what you can do in the browser. What you can do is, for example, to leave a big margin between the two zones you want in different pages and test the result in your browser until you get the desired effect.

danielfnz commented 6 years ago

any fix? i want do create a new page in the document.

cesarvr commented 6 years ago

you need to leave a enough margin between the HTML elements to force the PDF renderer to push the content in separate pages