pvginkel / PdfiumViewer

PDF viewer based on Google's PDFium.
Apache License 2.0
967 stars 418 forks source link

Render only renders the first page #46

Closed firesoul453 closed 9 years ago

firesoul453 commented 9 years ago

Using PdfDocument.Render only renders the first page and the other pages rener blank.

Any suggestions?

pvginkel commented 9 years ago

Sorry for the late reply. It's difficult to help based on this limited information. In general all pages are rendered.

Can you provide an example document that reproduces this issue?

firesoul453 commented 9 years ago

Hello, Thanks for releasing this, it has been helpful. I don't know the exactly what the problem is but I got it working by giving every single page it own entire copy of the PDF in memory. Unfortunately I don't have the PDF in question anymore.

Perhaps I was/am using it wrong? Not sure.

pvginkel commented 9 years ago

I have never seen this specific issue before so without a PDF document to reproduce this problem, it'll be difficult for me to solve the problem. If you encounter such a document again, don't hesitate to file a new bug.

nikz-codes commented 8 years ago

I've seen this problem a couple of times using this PDF file - MultiSizePagePdf.pdf. However, it's not 100% reproducible. I'm using rendering logic similar to the one in the WPF example app.

pvginkel commented 8 years ago

Does this mean you're not using the PdfViewer or PdfRenderer component? If that's the case, there is a very good change the problem is in the way you're calling the PdfDocument methods. I've never seen such issues in either the PdfViewer or PdfRenderer component.

Are you able to share your implementation?