Skip to main content
Boris56
Known Participant
Feb 13, 2020 4:06 PM UTC
Question

How to show generated annotation?

Hi,

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

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Thom Parker
Community Expert
Community Expert
Feb 13, 2020 7:08 PM UTC

You need to force Acrobat to refresh the view.

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Boris56
Boris56Author
Known Participant
Feb 14, 2020 12:44 PM UTC

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.

Translate
Boris56
Boris56Author
Known Participant
Feb 14, 2020 3:14 PM UTC

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

 

Translate