From 96cabca7ebe287692ebdff0dba6bb2897eba9d3e Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 23:57:01 -0300 Subject: pdf: the test PDFs are files under test/pdf-fixtures, byte for byte what the generators wrote, where pdf.zig wrote each object by object (139 lines fewer there): testFixture reads one, the two outlines sized by the bridge's limits stay generated, and the sections bench embeds its outline Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/pdf-fixtures/outline.pdf | 54 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 test/pdf-fixtures/outline.pdf (limited to 'test/pdf-fixtures/outline.pdf') diff --git a/test/pdf-fixtures/outline.pdf b/test/pdf-fixtures/outline.pdf new file mode 100644 index 00000000..b0864599 --- /dev/null +++ b/test/pdf-fixtures/outline.pdf @@ -0,0 +1,54 @@ +%PDF-1.7 +%âãÏÓ +1 0 obj +<< /Type /Catalog /Pages 2 0 R /Outlines 7 0 R /PageMode /UseOutlines >> +endobj +2 0 obj +<< /Type /Pages /Count 3 /Kids [3 0 R 4 0 R 5 0 R] >> +endobj +3 0 obj +<< /Type /Page /Parent 2 0 R /MediaBox [0 0 200 300] /Resources << >> >> +endobj +4 0 obj +<< /Type /Page /Parent 2 0 R /MediaBox [0 0 200 300] /Resources << >> >> +endobj +5 0 obj +<< /Type /Page /Parent 2 0 R /MediaBox [0 0 200 300] /Resources << >> >> +endobj +6 0 obj +<< >> +endobj +7 0 obj +<< /Type /Outlines /First 8 0 R /Last 11 0 R /Count 4 >> +endobj +8 0 obj +<< /Parent 7 0 R /First 9 0 R /Last 9 0 R /Next 10 0 R /Count 1 >> +endobj +9 0 obj +<< /Title /Parent 8 0 R /Dest [4 0 R /XYZ 12 34 null] /F 3 /C [0.2 0.4 0.6] >> +endobj +10 0 obj +<< /Title () /Parent 7 0 R /Prev 8 0 R /Next 11 0 R /Dest [5 0 R /FitH 70] >> +endobj +11 0 obj +<< /Title (External) /Parent 7 0 R /Prev 10 0 R /A << /S /URI /URI (https://example.com/manual) >> >> +endobj +xref +0 12 +0000000000 65535 f +0000000015 00000 n +0000000103 00000 n +0000000172 00000 n +0000000260 00000 n +0000000348 00000 n +0000000436 00000 n +0000000457 00000 n +0000000529 00000 n +0000000611 00000 n +0000000736 00000 n +0000000830 00000 n +trailer +<< /Size 12 /Root 1 0 R >> +startxref +948 +%%EOF -- cgit v1.3