The Quartz demo does something odd in that if you swap out the embedded PDF file name with another one that's been added to the project, you get a black page. It may have something to do with localization since the QuartzImageDrawing.pdf has an (en) child.
Since I'm stumped, I'll probably just try UIWebView.
The Quartz demo does something odd in that if you swap out the embedded PDF file name with another one that's been added to the project, you get a black page. It may have something to do with localization since the QuartzImageDrawing.pdf has an (en) child.
Since I'm stumped, I'll probably just try UIWebView.
I had the same issue when I tried some different PDFs than the one that came with the demo. Unfortunately, nobody replied to my post, either. I want a bit more control than a UIWebView provides, so that doesn't work for me.
I've basically given up for the time being, until I can find an answer to how one displays an arbitrary PDF properly.
I had the same issue when I tried some different PDFs than the one that came with the demo. Unfortunately, nobody replied to my post, either. I want a bit more control than a UIWebView provides, so that doesn't work for me.
I've basically given up for the time being, until I can find an answer to how one displays an arbitrary PDF properly.
It depends on how the file is stored - whether it is within the Simulator's/Phone's "Documents" folder, or whether the .pdf file was placed in as a Project Resource.