Comments > Open all pop-ups - Don't display empty pop-ups  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

Loki@99
User
Posts: 558
Joined: Sat Dec 16, 2023 11:09 am

Comments > Open all pop-ups - Don't display empty pop-ups

Post by Loki@99 »

Hi,

Is there a way to not display empty pop-ups using Open all pop-ups feature ?

Steps to reproduce
1. Open this file
File_pop-ups.pdf
2. Click on Open all pop-ups

GIF
gif.gif

It would make sense to only display the one i've surrounded as all other pop-ups are empty.

image.png

Thanks for investigating,
You do not have the required permissions to view the files attached to this post.
Major Stylus topics
- RemoveAnnotationsWithEraser T#6903
- MiniPopupMenuOnTextSelection T#6894
- AbnormalSpikes forum.pdf-xchange.com/viewtopic.php?p=179935&hilit=spikes#p179935
- ForceEraserPreview forum.pdf-xchange.com/viewtopic.php?t=42380
User avatar
rakunavi
User
Posts: 1748
Joined: Sat Sep 11, 2021 5:04 am

Re: Comments > Open all pop-ups - Don't display empty pop-ups  SOLVED

Post by rakunavi »

Hello Loki@99,

As for the "Open All Pop-ups" command, there should be no option that satisfies your wishes. However, using the JavaScript that Stefan has shown in his previous post, you should be able to achieve something pretty close to what you want to do.

  • Animation.gif
Best regards,
rakunavi
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
Dimitar - PDF-XChange
Site Admin
Posts: 2284
Joined: Mon Jan 15, 2018 9:01 am

Re: Comments > Open all pop-ups - Don't display empty pop-ups

Post by Dimitar - PDF-XChange »

Thanks for pointing this out, Rakunavi.

Regards.
Loki@99
User
Posts: 558
Joined: Sat Dec 16, 2023 11:09 am

Re: Comments > Open all pop-ups - Don't display empty pop-ups

Post by Loki@99 »

Hi All,

@rakunavi
Thanks for your input and the GIF showing exactly what I'm trying to achieve.

I'm a bit lost with the topic you mentioned and these JavaScript stuff.

I would appreciate if you can give the steps you followed so that I can have the "green puzzle" button you showed on the GIF.

Thank you,
Major Stylus topics
- RemoveAnnotationsWithEraser T#6903
- MiniPopupMenuOnTextSelection T#6894
- AbnormalSpikes forum.pdf-xchange.com/viewtopic.php?p=179935&hilit=spikes#p179935
- ForceEraserPreview forum.pdf-xchange.com/viewtopic.php?t=42380
User avatar
rakunavi
User
Posts: 1748
Joined: Sat Sep 11, 2021 5:04 am

Re: Comments > Open all pop-ups - Don't display empty pop-ups

Post by rakunavi »

Hello Loki@99,
Loki@99 wrote: Mon Aug 19, 2024 8:07 am I would appreciate if you can give the steps you followed so that I can have the "green puzzle" button you showed on the GIF.
In addition to Stefan's script mentioned in the previous comment, the following knowledgebase and post should be helpful.

For reference, the following video shows the process of customizing the toolbar from the initialized settings to the same toolbar shown in the video above. The toolbar on the far left looks like a Quick Tools toolbar but it is not, but rather a copy of each command. This way you can finally have the general commands and the JavaScript commands in a vertical line.

  • Animation.gif
  • SampleFiles.zip
Best regards,
rakunavi
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
Dimitar - PDF-XChange
Site Admin
Posts: 2284
Joined: Mon Jan 15, 2018 9:01 am

Re: Comments > Open all pop-ups - Don't display empty pop-ups

Post by Dimitar - PDF-XChange »

Thank you for the additional information provided, rakunavi.

Regards.
Loki@99
User
Posts: 558
Joined: Sat Dec 16, 2023 11:09 am

Re: Comments > Open all pop-ups - Don't display empty pop-ups

Post by Loki@99 »

Hi,

@rakunavi

Thanks for the SampleFiles.zip files

In your old topic you said
rakunavi wrote: Mon Jan 29, 2024 11:29 am
Assuming the default settings, the following steps to apply the registry file will work.

  1. Temporarily add a new toolbar in the Customize Toolbar dialog beforehand.
  2. Load the registry file.
  3. Delete the toolbar created temporarily in Step 1.
Note that it is assumed that there is at least one *.js file with the toolbar set in the JavaScripts folder; Document-Level JavaScript alone will not result in a floating toolbar. As long as the toolbar is set in the *.js file, the Document-Level JavaScript toolbar will be floating together with the *.js file.
By mistake, I opened the reg file before all other steps. Now, even if I have the .js file in JavaScripts folder and the "dummy" temporary new toolbar, the "green puzzle" button doesn't show.

I already opened the reg file before actions performed bellow
The black screen you see after clicking the reg file is simply an issue with Licecap (GIF recorder)
JS issue.gif

Thanks for your assistance,
You do not have the required permissions to view the files attached to this post.
Major Stylus topics
- RemoveAnnotationsWithEraser T#6903
- MiniPopupMenuOnTextSelection T#6894
- AbnormalSpikes forum.pdf-xchange.com/viewtopic.php?p=179935&hilit=spikes#p179935
- ForceEraserPreview forum.pdf-xchange.com/viewtopic.php?t=42380
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11345
Joined: Wed Jan 03, 2018 6:52 pm

Re: Comments > Open all pop-ups - Don't display empty pop-ups

Post by Daniel - PDF-XChange »

Hello, Loki@99

It looks like you missed the step where you close the Editor between adding the dummy toolbar, and before running the reg key. At least that is the main difference I note in your gif.

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
User avatar
rakunavi
User
Posts: 1748
Joined: Sat Sep 11, 2021 5:04 am

Re: Comments > Open all pop-ups - Don't display empty pop-ups

Post by rakunavi »

Hello Loki@99,

The previous post includes instructions for creating the DUMMY toolbar because the explanation assumes that the settings have been initialized, but it is not necessary to create it first.

If you have customized the application to some extent, the following keys should exist.

  • HKEY_CURRENT_USER\SOFTWARE\Tracker Software\PDFXEditor\3.0\Settings\CmdLayouts
On my regular PC, there are 7 keys from 000000 to 000006 under the following key

  • HKEY_CURRENT_USER\SOFTWARE\Tracker Software\PDFXEditor\3.0\Settings\CmdLayouts\Ribbon\Layouts
  • figure5.png
The most important of these is the mainView under 000000.

  • HKEY_CURRENT_USER\SOFTWARE\Tracker Software\PDFXEditor\3.0\Settings\CmdLayouts\Ribbon\Layouts\000000
  • mainView.png
The registry file shown in the previous post assumes that the key 000000 exists for this mainView and adds the setting.

However, when the settings are initialized, the key under CmdLayouts does not exist in the first place.

  • HKEY_CURRENT_USER\SOFTWARE\Tracker Software\PDFXEditor\3.0\Settings\CmdLayouts
  • figure1.png
Therefore, by creating the toolbar first, ensure that keys under 000000 are generated in the registry as mainView.


However, if the registry file "HKEY_CURRENT_USER\SOFTWARE\Tracker Software\PDFXEditor\3.0\Settings\CmdLayouts" does not exist, running the registry file should result in the following.

  • figure2.png
If you then create a dummy toolbar, the PDF-XChange Editor will create the mainView at "CmdLayouts\Ribbon\Layouts\000001".

  • figure3.png
This means that the mainView is 000001, but the settings for floating are added to 000000, so the settings are not reflected as intended.

In this case, follow the steps below and the settings should be reflected as intended.

  1. If the PDF-XChange Editor is running, close it once.
    • Make sure that "CmdLayouts\Ribbon\Layouts\000000" is not mainView, then delete the key. You can either use the Registry Editor as shown in the video or use the attached registry file.

      • Delete_CmdLayouts_Ribbon_Layouts_000000.zip
      • After starting the PDF-XChange Editor, exit it without doing anything. At this time, the application should change the mainView "CmdLayouts\Ribbon\Layouts\000001" to "CmdLayouts\Ribbon\Layouts\000000" behind the scenes.
        • Run the registry file and add the settings.
        • figure4.png

          Animation.gif
        I have written at length about what to do if the registry file is run first, assuming the default settings, but as far as I can see from the GIF you show, the Add-on Tools toolbar is missing. My explanation above assumes that the JavaScript command icon is present in the Add-on Tools toolbar. Also, since you seem to have customized your toolbar to the extreme, the "CmdLayouts\Ribbon\Layouts\000000" may have existed beforehand.

        Therefore, there is a possibility that something beyond my understanding may have happened, so I am sorry to have written this long, but I recommend that you do not trust the above explanation too much and leave it for reference only.

        The above procedure involves changes to the registry, so please back up your settings before attempting it. Please note that neither I nor Tracker Software is responsible for the safety of the above registry settings.

        Best regards,
        rakunavi
        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
        Loki@99
        User
        Posts: 558
        Joined: Sat Dec 16, 2023 11:09 am

        Re: Comments > Open all pop-ups - Don't display empty pop-ups

        Post by Loki@99 »

        Hi all,

        I managed to get the floating toolbar with the "green puzzle" button but for some reason I can't drag it make it as a toolbar unless I reset my settings.

        With my custom settings, I can't drag and pin it
        issue.gif


        With settings reset, I can drag and pin it
        no issue.gif
        You do not have the required permissions to view the files attached to this post.
        Major Stylus topics
        - RemoveAnnotationsWithEraser T#6903
        - MiniPopupMenuOnTextSelection T#6894
        - AbnormalSpikes forum.pdf-xchange.com/viewtopic.php?p=179935&hilit=spikes#p179935
        - ForceEraserPreview forum.pdf-xchange.com/viewtopic.php?t=42380
        User avatar
        Daniel - PDF-XChange
        Site Admin
        Posts: 11345
        Joined: Wed Jan 03, 2018 6:52 pm

        Re: Comments > Open all pop-ups - Don't display empty pop-ups

        Post by Daniel - PDF-XChange »

        Hello, Loki@99

        Try unlocking your tool panes, side-snapping requires this to be disabled:
        image.png
        Kind regards,
        You do not have the required permissions to view the files attached to this post.
        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
        Loki@99
        User
        Posts: 558
        Joined: Sat Dec 16, 2023 11:09 am

        Re: Comments > Open all pop-ups - Don't display empty pop-ups

        Post by Loki@99 »

        Hi @Daniel

        Unlocking tools panes fixed the issue. Thank you for your assistance.

        It will be great if the Don't display empty pop-ups feature can be implemented in PDFXCE without having to go through all these JavaScript tweaks.

        Thanks for considering this,
        Major Stylus topics
        - RemoveAnnotationsWithEraser T#6903
        - MiniPopupMenuOnTextSelection T#6894
        - AbnormalSpikes forum.pdf-xchange.com/viewtopic.php?p=179935&hilit=spikes#p179935
        - ForceEraserPreview forum.pdf-xchange.com/viewtopic.php?t=42380
        User avatar
        Daniel - PDF-XChange
        Site Admin
        Posts: 11345
        Joined: Wed Jan 03, 2018 6:52 pm

        Re: Comments > Open all pop-ups - Don't display empty pop-ups

        Post by Daniel - PDF-XChange »

        Hello, Loki@99

        Worry not, it has already been passed to the team for consideration. Hopefully we get some good news in time.

        And the good news comes!
        RT#7066: FR: open all "filled" popups

        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
        User avatar
        rakunavi
        User
        Posts: 1748
        Joined: Sat Sep 11, 2021 5:04 am

        Re: Comments > Open all pop-ups - Don't display empty pop-ups

        Post by rakunavi »

        Hello all,

        A feature "close" to what Loki@99 requested in this topic has been implemented in build 393.

        I say "close" because the "Open All Non-empty Pop-ups" feature does indeed not open pop-ups that do not contain pop-up text notes, but it also opens pop-ups for text comments (typewriters, text boxes, callouts, etc.) at the same time.

        To begin with, Loki@99 was satisfied with the behavior of Stefan's script, which I mentioned in my comment here, and requested the same behavior. The popupOpen property of the annotation excludes pop-ups such as text comments, as the standard mentions “All except FreeText, Sound, FileAttachment”. Therefore, Stefan's script does not open pop-ups for text comments. This means that the functionality implemented in build 393 does not meet at least Loki@99's request.

        • Animation.gif
        • sample.pdf
        • figure.png
        Since the text comment is already displayed on the document without opening the pop-ups, there is little need to open the pop-ups with the same content again. Perhaps it is for the same reason that text comments, etc. are excluded from the popupOpen property of the standard.

        I hope that the "Open All Non-empty Pop-ups" feature will be improved.

        Best regards,
        rakunavi

        - PDF-XChange Editor PRO Version: 10.6.0 build 396
        - OS Version: Windows 11 Pro / Home 24H2 Build 26100.4061
        - PC Model: GMKtec Nucbox M7 Pro with HUION Kamvas Pro 19 / Lenovo IdeaPad C340-15IWL
        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
        Daniel - PDF-XChange
        Site Admin
        Posts: 11345
        Joined: Wed Jan 03, 2018 6:52 pm

        Re: Comments > Open all pop-ups - Don't display empty pop-ups

        Post by Daniel - PDF-XChange »

        Hello, rakunavi

        Thank you for mentioning this. I have brought it up for discussion, to see what can be done. I will let you know when I have news.

        Sadly, the Dev team have confirmed that this handling will not be changing at this time. If you wish to make use of the other functionality, the JS implementation Stefan mentioned is the alternative. The UI button serves a slightly different purpose by design.

        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
        User avatar
        rakunavi
        User
        Posts: 1748
        Joined: Sat Sep 11, 2021 5:04 am

        Re: Comments > Open all pop-ups - Don't display empty pop-ups

        Post by rakunavi »

        Hello Daniel, thank you for sharing the results of your review.

        Although the results are a bit disappointing, I will take it positively that this feature allows me to do what I cannot achieve due to the limitations of the popupOpen property in JavaScript.

        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
        Daniel - PDF-XChange
        Site Admin
        Posts: 11345
        Joined: Wed Jan 03, 2018 6:52 pm

        Comments > Open all pop-ups - Don't display empty pop-ups

        Post by Daniel - PDF-XChange »

        :)
        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