Fix handling of pages that are restored to correct orientation with /Rotate

Appears inversion of CTM was incorrect, introduced in commit 9898904
This commit is contained in:
James R. Barlow
2024-02-12 01:32:26 -08:00
parent 26470fe16a
commit 42ff7fc842
3 changed files with 58 additions and 30 deletions
+4 -3
View File
@@ -176,9 +176,10 @@ def test_multiple_pngs(resources, outdir):
)
mock.assert_called()
with pikepdf.open(outdir / 'in.pdf') as inpdf, pikepdf.open(
outdir / 'out.pdf'
) as outpdf:
with (
pikepdf.open(outdir / 'in.pdf') as inpdf,
pikepdf.open(outdir / 'out.pdf') as outpdf,
):
for n in range(len(inpdf.pages)):
inim = next(iter(inpdf.pages[n].images.values()))
outim = next(iter(outpdf.pages[n].images.values()))