Closed roberto-arista closed 2 years ago
Short answer is yes - you can do all these things with PyPDF2
. In the Sample_Code folder, there is a 2_up.py
script which demonstrates how to produce imposed PDFs by enlarging the mediaBox and merging a translated page. Hopefully that can help you!
I will try starting from that sample. Thanks for your reply!
Hi!
I tried the mergeTranslatedPage() method.
Everything works but:
If you want, I can pull the different pdf files to the PDF_Samples folder.
I saw this happened too. It turns out that the mediaBox
is not the only box need to be set after a merge. There are also cropBox
, bleedBox
, trimBox
and artBox
. every single of this box also affect the merged page in some way.
PageObject._mergePage()
only set a larger mediaBox
. If there are cropBox
in the 1st page, only the 1st page will be displayed after the merge.
Shall the _mergePage()
set all the other boxes according if any of the boxes exists in the 1st page?
The scaling in _mergePage()
is similar to that in the scale()
method - they both only change the mediaBox
. I think it's reasonable to say that other existing page boxes should scale to the same factor of the mediaBox
.
There was no activity on this for a long time, hence I'll close it.
If there is still something to discuss / a new feature you would like to have, please ping me here. Then I'll re-open.
Hi! I am trying to understand if some specific tasks are possible with this module. I want to realize a script able to produce an imposed pdf from a single page pdf (like Adobe InDesign Print Booklet function).
What I need to understand is:
Thanks!