How to save the bookmark deletion  SOLVED

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

How to save the bookmark deletion

Post by prasantha »

Hi
I used ¨op.bookmarks.delete¨ to delet bookmark from the bookmark panel.
var nID = _Inst.Str2ID("op.bookmarks.delete", false);
var Op = _Inst.CreateOp(nID);
ICabNode input = Op.Params.Root["Input"];

input.Add().v = bm;
Op.Do();

But this deletes the bookmark permenently before user saves the changes . But if the user does not save the changes the deleted bookmark should be available.

Can someone let me know, how to achive this?
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: How to save the bookmark deletion  SOLVED

Post by zarkogajic »

Hi,

If you use the operation to delete a bookmark - it gets deleted - that is what the operation does.

So, what are you trying to achieve?

-žarko
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8579
Joined: Wed Jan 03, 2018 6:52 pm

Re: How to save the bookmark deletion

Post by TrackerSupp-Daniel »

Hello,

As long as the file is not "saved" when they close it after making a change like this, the bookmark will still be in place in the original file. I am confused much like Zarko here, what is it you are trying to achieve?

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Post Reply