Open evamvid opened 1 year ago
Seems like the existing width/height code
page_size = self.poppler_document.get_page(0).get_size()
self.page_width = page_size.width
self.page_height = page_size.height
actually will deliver widths and heights for rotated pages, without having to manually inspect the PDF page attributes. So to implement this, the layouter would need to query that for each individual page rather than just the first one. It makes the code for calculating the overall width and height, as well as zoom, offsets, and synctex boxes more complicated, though.
If individual pages are rotated in the PDF
/Rotate
page attribute (for example using thepdflscape
package, the pdf preview displays them incorrectly.In the PDF preview:
How it should look:
MWE:
The PDF should show the second page in a landscape format in this MWE.