Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge append bookmark list #663

Closed
oll37 opened this issue Jul 27, 2023 · 4 comments
Closed

Merge append bookmark list #663

oll37 opened this issue Jul 27, 2023 · 4 comments
Assignees

Comments

@oll37
Copy link

oll37 commented Jul 27, 2023

If I append several files one after the other with

pdfcpu merge -mode append a.pdf b.pdf
pdfcpu merge -mode append a.pdf c.pdf
pdfcpu merge -mode append a.pdf d.pdf

the bookmark list becomes more and more nested:

-a
--a
---a
---b
--c
-d

What I expected:

-a
-b
-c
-d

Can this be fixed by not creating a new bookmark for the original document every time?
Thanks for your help.

@hhrutter
Copy link
Collaborator

The release notes explain how to turn off bookmark creation during merging.
https://github.com/pdfcpu/pdfcpu/releases/tag/v0.4.2

@oll37
Copy link
Author

oll37 commented Jul 27, 2023

I didn't want to disable the bookmarks completely. Rather, I was hoping that it would be possible to keep the bookmarks of the appended file at the same level as the previous ones.

@hhrutter
Copy link
Collaborator

Understood!
Needs to be fixed.

@hhrutter
Copy link
Collaborator

This is fixed as of latest commit!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants