Pasted Stamp IDs

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

Post Reply
Posts: 84
Joined: Mon Sep 20, 2004 4:27 pm
Location: Phoenix, AZ

Pasted Stamp IDs

Post by glima » Mon Sep 03, 2012 7:37 pm

How can I get the control Id from a Stamp that has been pasted with the "Paste" command.

1. I Create a memory bitmap and then paste it to the document. This creates a Stamp object.
2. I need to then programatically change the opacity and other properties for this object.
3. Since there may be more than 1 stamp on the page how do i get notifications for which one a user has selected.

A. How can I stop the viewer object from asking me to save a modified document. I want the user to be able to hit a "Cancel" button.

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 14037
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Pasted Stamp IDs

Post by Tracker Supp-Stefan » Tue Sep 04, 2012 10:16 am

Hello glima,

Once a user places a stamp on a page - it will be the currently selected object. So you can handle the event of placing the stamp on the page and then call the GetSelectedAnnot method - that will return the page and annotation indexes.

Then please also take a look at the "How to Use" section of the Viewer AX manual - which shows you how to Save or Close a document - and you can also intercept any document closing operations and present the user with your own dialogue - that can have a cancel button in it.


Post Reply