Get page number of dynamic stamp (not of page stamp is being applied to)
Hi, all,
I'm wondering if it is possible, within the javaScript of a dynamic stamp, to get the page number of that particular stamp within the Dynamic stamp file.
event.source appears to only have 3 properties (forReal, stampName, and source), based on the output of Object.getOwnPropertyNames.
What I'm trying to accomplish: I have a dynamic stamp with some fields filled in via custom dialog. I'd like to be able to add extra fields to the side of the stamp for additional, optional text. If that optional text isn't used, the stamp would resize itself to crop off those extra fields (so that it doesn't end up covering any extra space on the target page). I'd like the js within the stamp to be able to get the page number for the call to setPageBoxes, as opposed to me having to specify it explicitly, in case I pass the file around and someone decides to remove one of the other stamps in the file.
I know of 2 workarounds for the issue if I can't get that page number, but am curious if it's possible.
Thanks!
