Alua-Kinzhebayeva / iOS-PDF-Reader

PDF Reader for iOS written in Swift
MIT License
533 stars 150 forks source link

Landscape PDFs appear only as white pages #52

Closed TiagoTab closed 7 years ago

TiagoTab commented 7 years ago

I've tested multiple pdfs and in this version the landscape pages aren't visible.

The page selector shows the number of pages the pdf has, but all appear in white, without any content.

Example PDF: https://cdn.yamaha-motor.eu/owner-manuals/Motorcycles/U20SE1.PDF

img_0171

ranunez commented 7 years ago

Thank you for finding this bug @TiagoTab! This is due to the fact the PDF pages happens to have a "Crop Box" size that is not the same as the "Media Box" size. In the meantime, the current workaround is to open up the PDF in Preview and use the "Export as PDF" option, which will export the PDF into a more standard format. Thanks for catching this!

pdfproperties
TiagoTab commented 7 years ago

Saving the PDFs as "US Letter" fixes the problem, thank you for the help 👍