Image of selected annotation elements

PDF-XChange Editor SDK for Developers

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
lidds
User
Posts: 552
Joined: Sat May 16, 2009 1:55 pm

Image of selected annotation elements

Post by lidds »

I was wonder if there is a way that I can get an image of selected annotation elements, basically the same that is done when converting a selection of elements into a stamp?

Thanks

Simon
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 12856
Joined: Wed Jan 03, 2018 6:52 pm

Re: Image of selected annotation elements

Post by Daniel - PDF-XChange »

Hello, lidds

The snapshot tool can be used to grab images of sections of the document as needed:
image.png
I should also note that the function to create a stamp does not convert the elements into an image, they remain individual parts, the "stamp" object is simply a restrictive container that prevents you from grabbing each element. If you flatten a stamp after placement, each part of the previous comments will be selectable with the corresponding base content editing tool (as if you had simply flattened the comments beforehand).

Kind regards,
You do not have the required permissions to view the files attached to this post.
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
[email protected]
lidds
User
Posts: 552
Joined: Sat May 16, 2009 1:55 pm

Re: Image of selected annotation elements

Post by lidds »

Hi Daniel,

In my application, users can create stamps using PDFXChange vector annotation elements. These are then added to the stamp library.

If one of these stamps is placed on a PDF document and then flattened, the stamp is embedded in the PDF and cannot be modified.

You stated:
If you flatten a stamp after placement, each part of the previous comments will be selectable with the corresponding base content editing tool (as if you had simply flattened the comments beforehand).
Am I confused?

Thanks

Simon
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 12856
Joined: Wed Jan 03, 2018 6:52 pm

Re: Image of selected annotation elements

Post by Daniel - PDF-XChange »

Hello, lidds

Unless your application is intentionally making an active departure from the standard features, I would say yes.

"Flattening" a stamp (or any comment for that matter) simply converts it to base content objects - if the stamp was created from a bundle of vector items, those selected items should be back in place at that location as well.
Base content cannot be selected with the hand or "select comments" (or other commenting) tools, however if you switch to a base content editing tool, such as the "edit text" or "edit objects" tools, you will find that you can infact select and modify these items.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
[email protected]