PDF-ShellTools > General

How to split while preserving bookmarks?

(1/1)

conrad.drake:
Hi
  it appears that I can preserve bookmarks when merging (eg.  PDFShellTools.exe Merge -IncludeBookmarks filename=f.pdf f1.pdf;f2.pdf) but if try to split the results I loose the bookmarks (eg. PDFShellTools.exe split SplitRules=1s28M   "OutputFilename=[F][1FC1]" f.pdf)

Am I missing a "-PreserveBookmarks" flag or is there a scripting way around this?

Thanks for the help!

RTT:
The keep bookmarks functionality is indeed only supported by the merger tool. I opted by this because the bookmarks are preserved entirely, even if the target page of any of the bookmarks is not included in the final document. The current code is unable to rearrange the bookmarks tree because the bookmarks action functionality can be complex enough to determine if a specific bookmark item should be kept or not. The merger tool is usually used to merge complete documents, so this is not a problem, but the same doesn't happen when splitting.

If having all the bookmarks in the splitted documents is not a problem, you can also use the merge function to split. But you will not be able to use some of the specific split rules, such as split by file size.

conrad.drake:

--- Quote from: RTT on November 27, 2014, 05:09:02 PM ---If having all the bookmarks in the splitted documents is not a problem, you can also use the merge function to split. But you will not be able to use some of the specific split rules, such as split by file size.

--- End quote ---
Thanks.

So one needs to use the  "pages to include" field - how does one set that from the command line interface?

PDFShellTools.exe Merge  -IncludeBookmarks filename=split_part_2.PDF original_file.PDF

RTT:
Right now can't be done from the command line interface, but t've just finished to implement a Merge PagesToInclude parameter that will be available in the next release.

But you can already use the scripting functionality to do it. Take a look to the IDocumentMerger object, and this forum thread for some examples of related scripts.

conrad.drake:

--- Quote from: RTT on November 28, 2014, 10:58:09 PM ---Right now can't be done from the command line interface, but t've just finished to implement a Merge PagesToInclude parameter that will be available in the next release.

But you can already use the scripting functionality to do it.....
--- End quote ---

Double thanks!

Navigation

[0] Message Index

Reply

Go to full version