-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Overlaid page on another (merge_page) is flipped vertically #2139
Comments
Have you tried running |
No. Is it something that the new release has introduced intentionally? I didn't have to do that in previous versions. |
I just tried it and it fixed the issue! Thanks @stefan6419846 ! |
By the way: This is nothing which changed in-between, but I recently added this to the corresponding tutorial as I observed some similar issues about wrongly rotated watermarks, while this method has been buried in the API docs only (#2113). It might have worked before as #2086 significantly changed the watermarking process, but probably only as some side-effect. Feel free to close this issue as this does not seem to be something which requires further fixing in PyPDF itself. |
Thanks for helping out @stefan6419846 . I am closing the issue. |
I have a
PdfReader
instance in my code that calls themerge_page
function to merge anotherPdfReader
instance page into itself. Something seems to be broken between versions 3.15.3 and 3.15.4 where the merged page is flipped vertically and is merged upside-down.Environment
Which environment were you using when you encountered the problem?
Code + PDF
This is a minimal, complete example that shows the issue:
I have a single-page cover, single-page header, and multi-page content that I merge using the
merge_pdfs
function. This function inputs three byte streams one per type and merges them into one PDF. First, a new output PDF is created and the cover page is added to it. Then for each page in the content PDF, the header page is merged with it and then added to the output PDF. The merging of the header page into the content page is done to overlay the header on content. This worked fine until version 3.15.3 but broke in version 3.15.4. The overlay is merged upside down (flipped) and is overlayed at the bottom of the page rather than at the top.Unfortunately, I can not share the PDF as it contains sensitive information. If the issue or the explanation is not clear, please let me know.
Traceback
There is no exception thrown.
The text was updated successfully, but these errors were encountered: