3

I used some Quartz 2D examples to extract text from PDF with the callbacks.

CGPDFOperatorTableSetCallback(table, "TJ", arrayCallback);
CGPDFOperatorTableSetCallback(table, "Tj", stringCallback);

Referencing the code from here: Reading PDF files as string through iPhone application

But in some PDFs, I cannot get all string contents (and yes, it is string). How could I parse BT (begin text) and ET (end text) operators with a C function?

Thank you.

Tamás Sengel
  • 55,884
  • 29
  • 169
  • 223
  • Check out below link http://stackoverflow.com/questions/5103281/pdf-file-text-reading-and-searching http://www.random-ideas.net/posts/42%22 – GameLoading Mar 11 '11 at 09:09
  • If you are ok to use an API, you can do it by using the method extracttextpdf of stamplin API. http://www.stamplin.com/api/docs/extracttextpdf/ – trez Jul 06 '13 at 08:40

0 Answers0