The option accepts CSS selectors that are passable to querySelector. Ī page break occurs before each element that matches the forcePageBreak CSS selector of your choice. You will still be able to apply the forcePageBreak configuration to manually specify the break points. To automatically implement the page breaks, set the paperSize and margin options. The drawDOM method supports automatic page breaking. This means that the pages of the final document might be of different sizes. If the paperSize option for the master group is set to "auto" and the page groups do not override it, the paper size for each individual page is determined by its corresponding group. The PDF options that you pass to the master group apply to each page group, unless the page group overrides them. This group is then expected to contain in turn only Group shapes, one for each page (page groups). To render a multiple-page PDF file, pass multiPage: true to the Group object, which you pass to exportPDF (master group). The drawing.drawDOM allows you to create multi-page PDF content, specify manual page breaks and prevent page splitting. Download free 30-day trial Multi-Page Content
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |