• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
reading a PDF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: reading a PDF
      • From: Antonio Nunes <email@hidden>
    • Re: reading a PDF
      • From: Scott Ribe <email@hidden>
  • Prev by Date: Re: Checking One Array Against Another
  • Next by Date: Re: UIViewController memory warnings | didReceiveMemoryWarning | setView | releasing outlets | releasing properties
  • Previous by thread: Font binding
  • Next by thread: Re: reading a PDF
  • Index(es):
    • Date
    • Thread