frescobaldi / qpageview

page-based viewer widget for Qt5/PyQt5
https://qpageview.org/
GNU General Public License v3.0
20 stars 9 forks source link

[Question] How to export the pages in a view #4

Closed mantielero closed 3 years ago

mantielero commented 4 years ago

I am trying to use pdf, but I don't know how to provide the pageList from a View.

wbsoft commented 4 years ago

For the export.pdf function, pageList should be a list of Page objects. (The documentation doesn't state this clearly.) You can get the list of all Page objects in a View using view.pageLayout()[:].

I think I should add a View.pages() method which is more clear.

wbsoft commented 3 years ago

closing, I added View.pages() and explained the question :-)