hearsid / ng-html-to-pdf-save

Save HTML as pdf file on the browser with angularjs .
28 stars 35 forks source link

Added suport for multi page pdfs #23

Closed martskins closed 6 years ago

martskins commented 7 years ago

Children of the element that has pdf-save-content attribute can now take an optional pdf-page attribute to create multi page pdfs. This doesn't break the automatic page break introduced when the element's height is larger than the actual page.

Example:

<div pdf-save-content="example">
    <div pdf-page="1">First page content</div>
    <div pdf-page="2">Second page content</div>
</div>

This example exports a pdf with 2 pages.