¡@

Home 

2014/10/15 ¤U¤È 10:12:32

iphone Programming Glossary: pdfdocument

Is there a way to programmatically scroll to a PDF page within a UIWebView?

http://stackoverflow.com/questions/1927841/is-there-a-way-to-programmatically-scroll-to-a-pdf-page-within-a-uiwebview

if _subview isKindOfClass UIWebDocumentView class self.documentHeight _subview.bounds.size.height CGPDFDocumentRef pdfDocument CGPDFDocumentCreateWithURL CFURLRef baseURL self.documentPages CGPDFDocumentGetNumberOfPages pdfDocument CGPDFDocumentRelease.. pdfDocument CGPDFDocumentCreateWithURL CFURLRef baseURL self.documentPages CGPDFDocumentGetNumberOfPages pdfDocument CGPDFDocumentRelease pdfDocument self.pageHeight self.documentHeight 10 self.documentPages self.documentPages self.currentPage.. CFURLRef baseURL self.documentPages CGPDFDocumentGetNumberOfPages pdfDocument CGPDFDocumentRelease pdfDocument self.pageHeight self.documentHeight 10 self.documentPages self.documentPages self.currentPage 1 self.offset 0 void leftArrow..

Create a table of contents from a pdf file

http://stackoverflow.com/questions/2556344/create-a-table-of-contents-from-a-pdf-file

like this might help you get started NSURL documentURL ... URL to file or http resource etc. CGPDFDocumentRef pdfDocument CGPDFDocumentCreateWithURL CFURLRef documentURL CGPDFDictionaryRef pdfDocDictionary CGPDFDocumentGetCatalog pdfDocument.. CGPDFDocumentCreateWithURL CFURLRef documentURL CGPDFDictionaryRef pdfDocDictionary CGPDFDocumentGetCatalog pdfDocument loop through dictionary... CGPDFDictionaryApplyFunction pdfDocDictionary ListDictionaryObjects NULL CGPDFDocumentRelease.. through dictionary... CGPDFDictionaryApplyFunction pdfDocDictionary ListDictionaryObjects NULL CGPDFDocumentRelease pdfDocument ... void ListDictionaryObjects const char key CGPDFObjectRef object void info NSLog key s key CGPDFObjectType type CGPDFObjectGetType..