How to delete specific bates numbsers?

PDF-XChange Editor SDK for Developers

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

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.
prasantha
User
Posts: 43
Joined: Fri Jun 24, 2022 8:15 am

How to delete specific bates numbsers?

Post by prasantha »

Hi
I have a requirement to delete some of the bates numbers which i have added previously.

According to the documentation (https://sdkhelp.pdf-xchange.com/vi ... sNumbering) , we can do that using op.document.removeBatesNumbering by proving the BatesNumberingID.
But I could not find a way to retrieve the BatesNumberingID from the batres numbes.

So can any one let me know how can I retrieve BatesNumberingID or any other way to delete specific bates numbers?

Thank you
Prasantha
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: How to delete specific bates numbsers?

Post by Vasyl-Tracker Dev Team »

Hi Prasantha.

There is a code snippet that shows how to get info about watermarks:
viewtopic.php?t=40633

You may use it to find the value for BatesNumberingID. Look to the sample document to its actual pdf-structure just after adding the bates numbers:
image.png
- so, in other words - you need to modify that code snippet to catch pagemarks with Private=="BatesN" only to get the "LastModified" value from it to use for BatesNumberingID...

HTH.
You do not have the required permissions to view the files attached to this post.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.