Enable saving document by force or when collapse or expand bookmarks.  SOLVED

Forum for the PDF-XChange Editor - Free and Licensed Versions

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

asocialis
User
Posts: 40
Joined: Mon Feb 11, 2019 12:29 am

Enable saving document by force or when collapse or expand bookmarks.

Post by asocialis »

I noticed that bookmarks state also gets saved when I save document. If I collapsed them or expanded them, then they are saved in that position, and even viewable by other apps like Sumatra PDF in that state. However there is no way that saving is enabled if I only change bookmarks state, but only if I change something else in document. Is there any way to save by force so that I do not have to use Save As or change something else in document, because it is more annoying because then I have to find file location and undo redo changes made just because of bookmarks... If Save button could be always enabled.
User avatar
rakunavi
User
Posts: 1824
Joined: Sat Sep 11, 2021 5:04 am

Re: Enable saving document by force or when collapse or expand bookmarks.  SOLVED

Post by rakunavi »

Hi asocialis,

There is a way to add a custom JavaScript icon, although you cannot change its location freely unlike regular icons.

Code: Select all

app.addToolButton({
  cName: "Overwrite",
  cLabel: "Overwrite",
  cExec: "this.saveAs(this.path)",
  cTooltext: "Overwrite",
  nPos: -1
  });
If there is another way, I would like to know too.

Best regards,
rakunavi
TOP desires for PDFXCE
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FulScrMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11566
Joined: Wed Jan 03, 2018 6:52 pm

Re: Enable saving document by force or when collapse or expand bookmarks.

Post by Daniel - PDF-XChange »

Hello,

At the moment, the above Js is the best method to accomplish this.

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