views:

487

answers:

1

Hello all, I'm using the Quartz 2d apis to display a pdf document in an iPad app I am currently working on, however the text shows up real funky and is unreadable. The text shows up fine on my laptop so its not an issue with the pdf document itself as far as I know. I'm not sure why the document is displaying like this, any help would be greatly appreciated. A link to an image which shows the text is below.

Also, I tried to just open the pdf in safari on the iPad and i got the same results with the funky text. So I'm not sure why the iPad can't display this document.

alt text

+1  A: 

Wrong font substitution? There's probably a non-embedded font that you have on your laptop but the iPad doesn't have. On PC acrobat reader you can look in properties, fonts to see - I'm not sure what the Mac equivalent is. If that's it, you can open the document in Acrobat on your Mac and re-save it with the font embedded.

If that isn't it, you might have found a bug in the iPad PDF libraries dealing with a particular font or font subset type - there's lots of variations. You can again see how the font is stored in Acrobat Reader or you might get more information from pdffonts in the xpdf package (you may have to compile this yourself - I'm not sure of availability on Macs). Again you may be able to resave the document in Acrobat embedding the font in a different way - I'm less sure about this one.

Rup
Yeah that makes sense, do you know if there is a way to "flatten" the pdf document so the text is not selectable but will be able to be displayed, kinda like making it into a graphic rather than a document
marchinram
Sorry, I'm not an Acrobat expert - I've worked through similar problems with pdf2swf, that's all. I expect there would be, though - perhaps in the 'preflight' menu?
Rup