-
Hello, I found that one of my pdf document, consists of some 90-rotation pages, cannot be recognized as new_doc = pymupdf.Document()
new_doc.insert_pdf(doc, from_page=1, to_page=1) # that page is regarded as rotation=0 when in the whole document
new_doc.save("xxx.pdf") the page of the 1-page new document can be regarded as For confidentiality reasons I can't provide my pdf document, and I tried to make a rotated pdf myself, but that pdf is correctly recognized as all pages are I'm using pymupdf 1.24.11 on windows 11, but I also tried the newest version 1.26.3 and it seems it behaves exactly the same on this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Whether or not a page is rotated depends exclusively on the |
Beta Was this translation helpful? Give feedback.
Whether or not a page is rotated depends exclusively on the
/Rotate
parameter in the page's PDF object definition.This value has nothing to do with how text and other content on that page is being shown! IAW The complete text may be rotated by 90° while the page still is declared
/Rotate 0
.