[vector] Fix PDF MediaBox orientation

The MediaBox negated the y-range like SVG viewBox does, but the SVG
output is wrapped in scale(1,-1), and PDF content is emitted y-up.
This commit is contained in:
Khaled Hosny committed 2026-07-08 20:28:53 +03:00
1 parent a1b0b0046c
commit f7a8ef5022
2 files changed
+7 -7

No files matched your search

@@ -7,14 +7,14 @@ endobj
<< /Type /Pages /Kids [3 0 R] /Count 1 >>
endobj
3 0 obj
<< /Type /Page /Parent 2 0 R /MediaBox [-16 -57360 65552 8208]
<< /Type /Page /Parent 2 0 R /MediaBox [-16 -8208 65552 57360]
/Contents 4 0 R >>
endobj
4 0 obj
<< /Length 4593 >>
<< /Length 4592 >>
stream
1 1 1 rg
-16 -57360 65568 65568 re f
-16 -8208 65568 65568 re f
q
1 0 0 1 0 0 cm
q
@@ -161,5 +161,5 @@ xref
trailer
<< /Size 5 /Root 1 0 R >>
startxref
4862
4861
%%EOF