I’m currently making an iPhone app that has PDF viewing a crucial part of its functionality.
However many of the PDFs aren’t iPhone friendly and require zooming and panning to read them.
Is there anything I can do to make them better whether with the PDF itself or programmatically? (I’m currently using a UIWebView PDF viewer by the way.)
Reflowing PDF can be extremely difficult to do, impossible in some cases. Even Adobe confesses to severe limitations with reflowing in its own viewer. This is because PDF, like PostScript (and unlike other formats like Word or HTML), is a page description language.
You will probably only be able to reflow text only, without graphics, and you will only be able to do so in those instances when it is possible for you to extract meaningful text from the PDF (a non-trivial task in itself in the absence of tagging, sometimes virtually impossible.)
Challenges you may encounter with non-tagged PDFs:
noted,no ted,not ed,n o t e d, etc.bmay map to the font’sAglyph and will render asA— the only way to resolve this mapping would be to OCR the font, or rasterize the PDF and OCR the whole PDF