Floating state and size of toolbars added by document-level JavaScript not restored in Classic toolbar

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

User avatar
rakunavi
User
Posts: 1689
Joined: Sat Sep 11, 2021 5:04 am

Floating state and size of toolbars added by document-level JavaScript not restored in Classic toolbar

Post by rakunavi »

Hello all,

The greatest advantage of the classic toolbar is that it can be floated and placed at any position on the monitor. However, the toolbar added by document-level JavaScript does not take advantage of this as long as you keep Classic toolbar mode, and the toolbar must be floated and resized each time a file is opened.

A workaround exists. If you change to the Ribbon UI once after opening a file with JavaScript and then change back to the Classic toolbar, the original floating state and size will be restored. This issue also does not occur if the script is saved in the JavaScript folder without document-level JavaScript. In other words, opening a file with document-level JavaScript in Classic toolbar mode will not cause issues if there are already other scripts in the JavaScript folder.

  • %APPDATA%\Tracker Software\PDFXEditor\3.0\JavaScripts
This is a minor issue, but it would be ideal if the floating state and size of the toolbar added by document-level JavaScript could be restored without switching back and forth between the Classic toolbar and the Ribbon UI, even if you keep Classic toolbar mode.

Please refer to the following verification procedure and see attached verification video for more details. The corresponding timecode in the video is also included.
([MM:SS] "MM" shows minutes, and "SS" shows seconds.)

  • CapturedVideoWithSampleFile.zip
  • [00:02] Float and resize the view toolbar.
  • [00:09] If the application is closed and then re-run, the toolbar will remain floating and resized.
  • [00:15] Open a file with document-level JavaScript.
  • [00:18] Float and resize the Add-on Tools toolbar.
  • [00:25] If the application is closed and re-run, the Add-on Tools toolbar returns to its initial state.
  • [00:33] Change to ribbon UI.
    In the video, the application is closed at this point, but it is not necessary to close it.
  • [00:42] Changing to the classic toolbar restores the Add-on Tools toolbar floating state and size.
Hoping that the above information will be of some help to you.
Thank you so much for your continued support.

Best regards,
rakunavi

- PDF-XChange Editor Plus Version: 9.4 build 364.0
- OS Version: Windows 11 Home 22H2 Build 22621.819
- PC Model: Lenovo IdeaPad C340-15IWL, HP All-in-One 22-c0xx
You do not have the required permissions to view the files attached to this post.
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
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Floating state and size of toolbars added by document-level JavaScript not restored in Classic toolbar

Post by Stefan - PDF-XChange »

Hello rakunavi,

Many thanks for this post and the video.
I will pass it on to the Editor UI devs and we will see how this can be improved!

Kind regards,
Stefan
User avatar
rakunavi
User
Posts: 1689
Joined: Sat Sep 11, 2021 5:04 am

Re: Floating state and size of toolbars added by document-level JavaScript not restored in Classic toolbar

Post by rakunavi »

Hi Stefan,

Thank you for taking the time to look into this in detail.
Please give my best regards to the developer.

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
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Floating state and size of toolbars added by document-level JavaScript not restored in Classic toolbar

Post by Stefan - PDF-XChange »

:)