Open ghost opened 3 years ago
Yes, one way to do it is:
import qpageview
doc = qpageview.loadPdf("bla.pdf")
del doc.pages()[0]
v = qpageview.View()
v.show()
v.setDocument(doc)
Today I also added the View.setPages()
method, to more easily load a list of Page objects.
Thank you !
Hi !
I would like to load a pdf and remove, say the first page, BEFORE it is rendered. I've tried to load the pdf normally, then remove a page, but it's very slow as all has to be redrawn again.
Do I really have to use an external pdf parser ?
Thank you very much !