-
Notifications
You must be signed in to change notification settings - Fork 61
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
Bookmarks in merged pdf don't have a destination #87
Comments
Hi, Can you give me your feed back with my proposed version ?(not yet released but attached in here) pypdf4-1.27.0PPzz_1-py2.py3-none-any.whl.zip thanks, |
Hi, I tried that but get this:
File "C:\Users*\AppData\Local\Programs\Python\Python37\lib\site-packages\pypdf\merger.py", line 146, in append |
I've just made a test similar to yours successfully. |
Thanks, I tried and it worked as expected with those files. However, if I append the attached file, I get the following error: Traceback (most recent call last): |
Hi Edi-w, |
Hi, |
When merging pdf files, the bookmarks from sourcefiles are inherited correctly but they don't point to any page. Also bookmarks that are created while appending files to the merger don't have a destination. I'm using python 3.7.6.
Example:
merger = PdfFileMerger()
merger.append(PdfFileReader(filepath,'rb'),bookmark='test',pages=None,import_bookmarks=True)
merger.write(open(outfile, 'wb'))
The text was updated successfully, but these errors were encountered: