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

How to show generated annotation?

Explorer ,
Feb 13, 2020 Feb 13, 2020

Copy link to clipboard

Copied

Hi,

in the program I generate a text annotation. How to make it appear on the screen after its formation?

TOPICS
Acrobat SDK and JavaScript

Views

301

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
Community Expert ,
Feb 13, 2020 Feb 13, 2020

Copy link to clipboard

Copied

You need to force Acrobat to refresh the view.

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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
Explorer ,
Feb 14, 2020 Feb 14, 2020

Copy link to clipboard

Copied

I need Acrobat to go to the right page after creating the annotation. If I force Acrobat to refresh the view, it will not go to the page where the annotation was created.

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
Explorer ,
Feb 14, 2020 Feb 14, 2020

Copy link to clipboard

Copied

LATEST

Indeed, the problem was solved easily.
This code allows simply to go to the desired page.

	AVPageView pageView = AVDocGetPageView(avDoc);
	AVPageViewGoTo(pageView, numPage);
	AVPageViewDrawNow(pageView);

 

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