Skip to main content
Known Participant
June 12, 2019
Question

How to add multiple annotations to pdf document in box

  • June 12, 2019
  • 1 reply
  • 764 views

Hello , I have the following problem , I wonder , how can I connect annotation to the selected box , I need the following functionality : I create pdf with embedded 3d annotation and then I select the region(area)  in the pdf doc where annotation should be added. I have the following code from samples that sets the box for annotation .How can I add multiple annotations to the page and activate them immediately after selecting region for my annotation.

ASFixedRect annotBox = {ASInt32ToFixed(108), ASInt32ToFixed(612 - 108),

   ASInt32ToFixed(792 - 108), ASInt32ToFixed(108)};

theAnnot = PDPageAddNewAnnot(pdPage, -2, ASAtomFromString("U3D"), &annotBox);

  PDAnnotSetFlags(theAnnot, pdAnnotPrint | pdAnnotReadOnly);

This topic has been closed for replies.

1 reply

lrosenth
Adobe Employee
Adobe Employee
June 12, 2019

You can only have a single active annotation at any given time.

Known Participant
June 13, 2019

Thank you for answer ! And what about selecting region where annotation should be added with mouse , and highlight the selected region ( bbox ) in pdf file , so user can see the highlighted bbox with annotation in pdf doc and click on this bbox to activate annotation ?