py-pdf / pypdf

A pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files
https://pypdf.readthedocs.io/en/latest/
Other
8.05k stars 1.39k forks source link

Issue with Transformation().Rotate #1764

Closed keggering closed 1 year ago

keggering commented 1 year ago

I am using PyPDF2 to create a booklet (aka Saddle-Stitch) PDF by combining two landscape-orientation Letter-size (8.5 x 11) pages (i.e. single-page PDF files) into one Tabloid (17x11) sheet in portrait orientation.

It seems that PyPDF2.Transformation().rotate(180) does not work. However, a rotation of 179.99999999999 does.

I haven't dug into the source code as to why, but wanted to raise the issue somewhere. If there is a better thread to raise this in, please let me know.

Thanks!

pubpub-zz commented 1 year ago

@keggering I order to be more precise, can you provide a code sample (perhaps using crazyones.pdf") ?

MartinThoma commented 1 year ago

I'm closing this issue for the moment as there is too little information. Once there is more, I can reopen