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:![Screenshot from 2023-04-13 13-44-21](https://user-images.githubusercontent.com/6441339/231749278-23832a02-6463-49d2-afcd-ad4b547e4f1c.png)
How it should look:![Screenshot from 2023-04-13 13-45-08](https://user-images.githubusercontent.com/6441339/231749343-8f8c80d6-46e4-419f-a756-152112d9ea4a.png)
MWE:
The PDF should show the second page in a landscape format in this MWE.