0
votes

I'm trying to use UIScrollView together with UIImageView to display a PDF with several pages. Problem is that only seems to render the first page of the PDF and nothing else.

Is this possible at all with UIScrollView + UIImageview?

1
you can use the UIWebView for render the PDF file.Sumeet Mourya
With multiple pages? Any specific options you need to enable for it display them all?andromedainiative
just create the UIWebView and load the URL of your pdf file.Sumeet Mourya

1 Answers

1
votes

Perhaps you can create as UIImageView in the UIScrollView as pages has the PDF, and then when you load the PDF page (you wold use something like CGPDFDocumentGetPage(document, pageNumber)), just set the pageNumber to the number you want. You can know how many pages does the PDF document have with CGPDFDocumentGetNumberOfPages.