Closed messi closed 5 years ago
Interestingly enough, I see that it generates multiple pages but after the first page, the page content is empty... Perhaps I'm not understanding correct usage.
let pages = PDFPage.pages(collectionView)
let pdf = try PDFGenerator.generated(by: pages)
Thank you for submitting PR. I will further improve upon receiving this PR so please wait for a while. 🙏
I created a new case of the PDFPage enum and extended the render function of UIView to render just an area (CGRect) of a view.
There is also a factory method to create multiple pages from one UIScrollView. To do so you have to specify a configuration which defines the ratio (A4, Letter, custom, ..) and a percentage which defines which part of the last page should be repeated on the next page.