adjust position 50+ bookmarks together

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

MedBooster
User
Posts: 1372
Joined: Mon Nov 15, 2021 8:38 pm

adjust position 50+ bookmarks together

Post by MedBooster »

Due to me incorrectly pasting in bookmarks, I have 50+ bookmarks that are 1.5 (not even in whole pages) pages skewed up (back 1.5 pages) ... how could I basically adjust the position of all these 50+ bookmarks to be exactly 1.5 page lower than they currently are?
My wishlist https://forum.pdf-xchange.com/viewtopic.php?p=187394#p187394
Disable SPACE page navigation, fix kb shortcut for highlighting advanced search tool search field, bookmarks with numbers, toolbar small icon size, AltGr/Ctrl+Alt keyboard issues
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11094
Joined: Wed Jan 03, 2018 6:52 pm

Re: adjust position 50+ bookmarks together

Post by Daniel - PDF-XChange »

Hello, MedBooster

It may be possible with JavaScript... but that would be beyond my skillset to configure. Outside of that, we currently do not offer much in the way of bulk Bookmark editing. There are active requests for such actions to be added, but I cannot yet promise how exactly it will work when complete.

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
MedBooster
User
Posts: 1372
Joined: Mon Nov 15, 2021 8:38 pm

Re: adjust position 50+ bookmarks together

Post by MedBooster »

TrackerSupp-Daniel wrote: Tue Nov 21, 2023 4:22 pm Hello, MedBooster

It may be possible with JavaScript... but that would be beyond my skillset to configure. Outside of that, we currently do not offer much in the way of bulk Bookmark editing. There are active requests for such actions to be added, but I cannot yet promise how exactly it will work when complete.

Kind regards,
I tried cutting out (ctrl+x) and then pasting in the bookmarks, now it is just 1 page to early per bookmark

It's a shame you seem to not be able to set a new destination (relatively speaking) for more than 1 bookmark at a time :(

edit: yes indeed.... I can see that the table of contents links are referring to the correct page, which were created on the basis of the bookmarks... before they got skewed to 1 page earlier I guess. .. so maybe this happened because I added an empty page at the beginning , like a "front" page for the PDF. ...
Last edited by MedBooster on Tue Nov 21, 2023 4:41 pm, edited 1 time in total.
My wishlist https://forum.pdf-xchange.com/viewtopic.php?p=187394#p187394
Disable SPACE page navigation, fix kb shortcut for highlighting advanced search tool search field, bookmarks with numbers, toolbar small icon size, AltGr/Ctrl+Alt keyboard issues
MedBooster
User
Posts: 1372
Joined: Mon Nov 15, 2021 8:38 pm

Re: adjust position 50+ bookmarks together

Post by MedBooster »

Exporting and importing bookmarks, it seems that you are not even able to choose from which page the first comment is pasted, like you can do when pasting or importing comments, it seems...

I don't get how this is not possible... I can tell you for sure that when I created the bookmarks they were referring to the correct page, it got skewed either after I combined the pdf with 2 others... or after inserting a table of contents, I'm not sure.
My wishlist https://forum.pdf-xchange.com/viewtopic.php?p=187394#p187394
Disable SPACE page navigation, fix kb shortcut for highlighting advanced search tool search field, bookmarks with numbers, toolbar small icon size, AltGr/Ctrl+Alt keyboard issues
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11094
Joined: Wed Jan 03, 2018 6:52 pm

Re: adjust position 50+ bookmarks together

Post by Daniel - PDF-XChange »

Hello, MedBooster

The pages would always remain relative to the original pages in the document, even if you added some addition pages midway through the file, the page number would be updated, and the position would remain the same. However, there would be no way for these positions to be one *and a half* pages off... It simply is not possible as the position bookmarks point to is not affected by external factors, only the page number could have been altered (and even then, it should remain pointing to the same "relative" page).

I am unsure what could have happened to cause this issue in the first place, but nothing we offer should eb able to do so. Unfortunately, it will be something that needs to be resolved manually.

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
PHK
User
Posts: 1400
Joined: Tue Nov 24, 2020 4:02 pm

Re: adjust position 50+ bookmarks together

Post by PHK »

This can be a tricky situation. Trying a series of "Undos" often is the best solution.
All best,

FringePhil
MedBooster
User
Posts: 1372
Joined: Mon Nov 15, 2021 8:38 pm

Re: adjust position 50+ bookmarks together

Post by MedBooster »

PHK wrote: Tue Nov 21, 2023 6:52 pm This can be a tricky situation. Trying a series of "Undos" often is the best solution.
I ended up just manually choosing and setting a new destination. Btw.. I don't think it was skewed 1.5 pages, but it was skewed 1 page, that's for sure. I would have shared the PDF if it didn't contain sensitive information. You'll just have to take my word for it, that it happened somewhere along the line of me inserting blank pages, copy-pasting the copymarks or combining the 3 PDFs
My wishlist https://forum.pdf-xchange.com/viewtopic.php?p=187394#p187394
Disable SPACE page navigation, fix kb shortcut for highlighting advanced search tool search field, bookmarks with numbers, toolbar small icon size, AltGr/Ctrl+Alt keyboard issues
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11094
Joined: Wed Jan 03, 2018 6:52 pm

Re: adjust position 50+ bookmarks together

Post by Daniel - PDF-XChange »

Hello, MedBooster

Thank you for confirming, If it was an increment of a full page, and the positions were correct, it could have been something like adding and removing a blank page in an unexpected way to cause this... If you do happen to reproduce the issue again, please let us know the steps you took to do so and I will get started on testing it.

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: 1688
Joined: Sat Sep 11, 2021 5:04 am

Re: adjust position 50+ bookmarks together

Post by rakunavi »

Hello MedBooster,

I am not sure if I fully understand your situation, but if the situation is like the attached sample file, I would use a combination of JPdfBookmarks and PDF-XChange Editor to solve your issue.

  • situation.png
  • SampleFiles.zip
Specifically, first offset the bookmark destination by page in JPdfBookmarks. Then, combine the "Export bookmarks to text file" and "Generate bookmarks from page text" functions of PDF-XChange Editor to truncate the remaining 0.5 page units. See video for more details.

  • figure.png

    Animation.gif
Of course, once the bookmarks are exported to text, there are probably any number of ways to solve your issue. This is just the way I would do it if I had to do it within a few minutes with the tools at hand and without using my head.

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

adjust position 50+ bookmarks together

Post by Stefan - PDF-XChange »

:)
MedBooster
User
Posts: 1372
Joined: Mon Nov 15, 2021 8:38 pm

Re: adjust position 50+ bookmarks together

Post by MedBooster »

It happened again:
https://forum.pdf-xchange.com/viewtopic ... 26#p174326

Basically, it is inserting a table of contents that is skewing the position of bookmarks. (and was in this case)
My wishlist https://forum.pdf-xchange.com/viewtopic.php?p=187394#p187394
Disable SPACE page navigation, fix kb shortcut for highlighting advanced search tool search field, bookmarks with numbers, toolbar small icon size, AltGr/Ctrl+Alt keyboard issues
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11094
Joined: Wed Jan 03, 2018 6:52 pm

Re: adjust position 50+ bookmarks together

Post by Daniel - PDF-XChange »

Hello, MedBooster,

Thank you, but that seems to once again be a "whole page" movement, not a partial page movement as you mentioned earlier here. Please see my post in that thread for my suspicions on what could be happening in that case. (best to keep the conversation all in one place)

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
MedBooster
User
Posts: 1372
Joined: Mon Nov 15, 2021 8:38 pm

Re: adjust position 50+ bookmarks together

Post by MedBooster »

MedBooster wrote: Tue Nov 21, 2023 3:48 pm Due to me incorrectly pasting in bookmarks, I have 50+ bookmarks that are 1.5 (not even in whole pages) pages skewed up (back 1.5 pages) ... how could I basically adjust the position of all these 50+ bookmarks to be exactly 1.5 page lower than they currently are?
So this was not correct of course! It had nothing to do with importing, It did occur because of me inserting a table of content. Will this be fixed? It seems to be a bug that bookmarks after a table of contents get skewed as many pages as the quantity of table of content pages inserted.

Also... are you sure inserting an empty page does not have the same effect on bookmarks being skewed by 1 page (or more?)

Thought a thought.
My wishlist https://forum.pdf-xchange.com/viewtopic.php?p=187394#p187394
Disable SPACE page navigation, fix kb shortcut for highlighting advanced search tool search field, bookmarks with numbers, toolbar small icon size, AltGr/Ctrl+Alt keyboard issues
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: adjust position 50+ bookmarks together

Post by Stefan - PDF-XChange »

Hello MedBooster,

Yes - inserting an Empty page would have similar effect.
Bookmarks are complex structures that could have multiple actions in them - not just pointing to other pages in the document.
Updating their location when you insert pages is not currently possible, and I do not know if it would ever be.

If you want to be sure that your bookmarks would work correctly when you add/remove pages from a file - please make them pointing to Named Destinations - the named destinations 'travel' with the page - so even if you totally scramble your file - a bookmark would still point to the correct named destination, wherever the page was moved to.

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

Re: adjust position 50+ bookmarks together

Post by rakunavi »

Hello MedBooster,
MedBooster wrote: Thu Dec 07, 2023 2:28 pm It seems to be a bug that bookmarks after a table of contents get skewed as many pages as the quantity of table of content pages inserted.
As per your post, you are trying to create a table of contents for a particular branch of bookmarks and have taken the following steps.

  1. Backup all bookmarks.
  2. Delete the bookmarks for which you do not want to create a table of contents.
  3. Build a table of contents for the remaining bookmarks.
  4. Import all backed up bookmarks.
Even if the bookmarks were backed up in Step 1, they are based on pages before the table of contents was added, so unless a named destination is set as the target of the bookmark, as Stefan says, it is natural for the page numbers after the table of contents to be skewed when the bookmark is restored. It seems to me that at least this part of the behavior is not a bug.

To avoid this, it is absolutely essential that no bookmarks be deleted from the bookmarks pane when the table of contents is created. Conversely, as long as the bookmark exists somewhere in the bookmarks pane, the destination page will automatically change no matter where or how many pages the table of contents is added. Therefore, until the "Build Table of Contents" feature allows partial bookmarks to be targeted, you must operate carefully to ensure that all bookmarks are subject to automatic adjustment of the destination page, as described in an earlier post.

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

adjust position 50+ bookmarks together

Post by Stefan - PDF-XChange »

:)