• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

AVDocGetPageText trouble on Mac

Explorer ,
Apr 13, 2019 Apr 13, 2019

Copy link to clipboard

Copied

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

TOPICS
Acrobat SDK and JavaScript

Views

523

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 14, 2019 Apr 14, 2019

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines