Copy link to clipboard
I am using AVDocGetPageText to extract all text on the pages. On Win it works like the documentation says. The callback proc is called twice when I use it like this:
AVDocGetPageText(avDoc, pageNum, NULL, ASAtomFromString("Text"), copyProc, NULL);
First it returns the text with format "Text" and next with "UcsText". Now I can use ASTextFromUnicode to extract text from the page.
BUT, on the Mac the callback is only called once and it only returns "Text". No "UcsText". In the documentation it looks like it should behave the same for both Win and Mac.
How can I get the "UcsText" on the Mac ?
As this is related to clipboard use I wonder if ot just returns UTF8? Speculation. Try the PDWordFinder