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

merging a cropped page reveals the region cropped away #22

Open
sdghosh opened this issue Feb 27, 2011 · 1 comment
Open

merging a cropped page reveals the region cropped away #22

sdghosh opened this issue Feb 27, 2011 · 1 comment

Comments

@sdghosh
Copy link

sdghosh commented Feb 27, 2011

Hi,
Thanks for the great function additions in 1.13, especially the "merge page" functions. I'm however having difficulty using them with cropped files.

Suppose I want to rid myself of unwanted text on one side of a page, and so apply a crop:
page.mediaBox.upperRight = (page.mediaBox.upperRight[0]/2,
page.mediaBox.upperRight[1])

Now, let us merge this page onto a newly created blank page using:
newblank = PageObject.createBlankPage(None, 612,792)
newblank.mergePage(page)

Unfortunately, in the merged page "newpage", all the cropped region in "page" get displayed again, i.e. the mergePage function does not honor the mediaBox/cropBox of the file being merged. Can this be fixed?

Thanks!
Soum

@dtornow
Copy link

dtornow commented Apr 22, 2012

+1

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

No branches or pull requests

2 participants