Skip to main content
Known Participant
April 13, 2019
Question

AVDocGetPageText trouble on Mac

  • April 13, 2019
  • 1 reply
  • 705 views

Hi

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 ?

Thanks

Rune

This topic has been closed for replies.

1 reply

Legend
April 14, 2019

As this is related to clipboard use I wonder if ot just returns UTF8? Speculation. Try the PDWordFinder