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

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

126

Likes

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

Likes

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.

Likes

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);

 

Likes

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