Skip to main content
Boris56
Known Participant
February 13, 2020
Question

How to show generated annotation?

  • February 13, 2020
  • 1 reply
  • 531 views

Hi,

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

This topic has been closed for replies.

1 reply

Thom Parker
Adobe Expert
February 13, 2020

You need to force Acrobat to refresh the view.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Boris56
Boris56Author
Known Participant
February 14, 2020

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.

Boris56
Boris56Author
Known Participant
February 14, 2020

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