reading a PDF
reading a PDF
- Subject: reading a PDF
- From: "Torsten Curdt" <email@hidden>
- Date: Sat, 29 Nov 2008 19:42:26 +0100
Hey folks,
I am a little stuck here. I am trying to extract (and later modify)
text and images in a PDF. First I turned to PDFkit but that seems to
be way to high level for these things. Now I am trying with Quartz.
While I get to the CGPDFPageRef
int pages = CGPDFDocumentGetNumberOfPages(doc);
for(int p = 1; p<=pages; p++) {
CGPDFPageRef page = CGPDFDocumentGetPage(doc, p);
I just assume that the actual content is hidden inside the page's
content stream(s).
Currently I am going through the "VoyeurNode" example but I still
can't seem to find where to get hold of the actual content.
There is a CGPDFScannerScan but that doesn't look right either.
I've looked at
http://developer.apple.com/documentation/GraphicsImaging/Conceptual/PDFKitGuide/PDFKit_Prog_Intro/chapter_1_section_1.html
http://developer.apple.com/documentation/graphicsimaging/reference/CGPDFContentStream/Reference/reference.html#//apple_ref/doc/uid/TP40001407-CH1g-SW3
and in particular at
http://developer.apple.com/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_pdf_scan/chapter_15_section_3.html
Any other pointers?
cheers
--
Torsten
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden