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.