-
Notifications
You must be signed in to change notification settings - Fork 1.4k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Question: How to merge cropped PDF page with full pdf page in PyPDF? #163
Comments
Try
|
If I merge pages this way then my overlay ends up being underneath the background. Is there a way to crop a page and save it in a new pdf without any data for the entire page? Right now if I crop a page using |
Hi @lananelson, I'm having a similar problem but can't figure out how to solve it. Did you find a way around it? I'm cropping a page |
@tincho89 I moved on from this a while ago and unfortunately don't exactly remember what the solution was (I don't have access to the repo anymore either). I think in your case you could try creating a blank page with the desired cropped dimensions and then merge your cropped page on top of it. |
@lananelson thanks for the response. I was doing a proof of concept so I'm going to work on it again on some weeks, that approach looks good though. Will try it! Thanks! |
See PR #240 for a fix. |
I have a similar problem - did you ever find a solution to your problem? |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
I am trying to merge two pdf pages using PyPDF2:
Unfortunately cropping doesn't happen.
mediaBox
of the overlaying page appears to be ignored and I see entire page in the output.Does anyone have any idea of how I can achieve this?
I posted this on SO as well http://stackoverflow.com/questions/27512246/how-to-merge-cropped-pdf-page-with-full-pdf-page-in-pypdf
The text was updated successfully, but these errors were encountered: