I have found that when using the "Collapse All" of the Bookmarks pane in the PDF-XChange Editor, the collapsed state of all bookmark entries is set to closed, regardless of whether they have children or not. The effect is limited to the time until the file is closed. When the file is reopened, the collapsed state of the bookmarks without children will be set back to open. Therefore, bookmark tree operations and exporting to a text file are affected after the Collapse All is executed. Even if the Collapse All is not executed, importing the affected text file (with all items set to closed) will set the collapsed state of all bookmark items to closed.
Users cannot determine whether the collapsed state of a bookmark with no children is set to closed or open by looking at the Bookmarks pane or properties; only by exporting the bookmarks to a text file. Thus, if the user moves a bookmark item to establish a parent-child relationship before executing the Collapse All feature, the tree will appear expanded, but if the same tree operation is performed after the Collapse All is executed and before the file is closed, the tree will appear collapsed.
If users are not aware of this background, they may be confused: compared to other PDF editing software such as Acrobat, which always keeps the collapsed state of bookmark items without children open, even when using the Collapse All feature, this may seem like a bug in PDF-XChange Editor.
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.)
- [00:00] Open the PDF version of the online manual PDFXE9_MAN.pdf and execute the "Export Bookmarks to Text File" feature.
[00:14] Notice that only bookmark items with children have a "closed" option.[00:22] If you change the structure of the bookmark tree, the tree will be expanded and displayed as if it is hanging below the parent bookmark.Code: Select all
Table of Contents; 3 Welcome; 12 Installation; closed; 15 System Requirements; 17 Switches for MSI Installers; 18 Switches for EXE Installers; 30 Licensing; 36 End User License Agreement; 47 The Tracker Updater; 61 Features Overview; 66 Explore the User Interface; 74 Operations Guide ; closed; 82 Annotations Guide; 83
[00:28] Close the file without saving it.
[00:32] Open the file, perform the Collapse All in the options menu of the Bookmarks pane(*), and then save the file.
[00:44] Execute the "Export Bookmarks to Text File".
[00:54] Notice that all lines have a "closed" option.[01:02] If you change the structure of the bookmark tree, the tree will be collapsed.Code: Select all
Table of Contents; closed; 3 Welcome; closed; 12 Installation; closed; 15 System Requirements; closed; 17 Switches for MSI Installers; closed; 18 Switches for EXE Installers; closed; 30 Licensing; closed; 36 End User License Agreement; closed; 47 The Tracker Updater; closed; 61 Features Overview; closed; 66 Explore the User Interface; closed; 74 Operations Guide ; closed; 82 Annotations Guide; closed; 83
- If it does not reproduce the problem shown, please execute Collapse All twice in (*). If you only run Collapse All once, it is very rare that the bookmarks is not collapsed when you change the tree structure.
[01:12] Open the file and execute the "Export Bookmarks to Text File".
[01:23] Notice that only bookmark items with children are closed.[01:31] If you change the structure of the bookmark tree, the tree will be expanded and displayed as if it were hanging below the parent bookmark.Code: Select all
Table of Contents; 3 Welcome; 12 Installation; closed; 15 System Requirements; 17 Switches for MSI Installers; 18 Switches for EXE Installers; 30 Licensing; 36 End User License Agreement; 47 The Tracker Updater; 61 Features Overview; 66 Explore the User Interface; 74 Operations Guide ; closed; 82 Annotations Guide; 83
Code: Select all
var TargetLevel = 0;
function CollapseLevel(bkm, nLevel) {
if (bkm.children != null)
for (var i = 0; i < bkm.children.length; i++) {
if (bkm.children[i].children == null)
bkm.children[i].open = true;
else {
if (nLevel >= TargetLevel)
bkm.children[i].open = false;
else
bkm.children[i].open = true;
CollapseLevel(bkm.children[i], nLevel + 1);
}
}
}
CollapseLevel(this.bookmarkRoot, 0);
Thank you so much for your continued support.
Best regards,
rakunavi
- PDF-XChange Editor Plus Version: 9.5 build 366.0
- OS Version: Windows 11 Home 22H2 Build 22621.1105
- PC Model: Lenovo IdeaPad C340-15IWL, HP All-in-One 22-c0xx