How to save the bookmark deletion  SOLVED

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.
prasantha
User
Posts: 53
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: 1527
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
Daniel - PDF-XChange
Site Admin
Posts: 12656
Joined: Wed Jan 03, 2018 6:52 pm

Re: How to save the bookmark deletion

Post by Daniel - PDF-XChange »

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
PDF-XChange Co. LTD

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