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/links.pdf | 55 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 test/pdf-fixtures/links.pdf (limited to 'test/pdf-fixtures/links.pdf') diff --git a/test/pdf-fixtures/links.pdf b/test/pdf-fixtures/links.pdf new file mode 100644 index 00000000..bc9aa255 --- /dev/null +++ b/test/pdf-fixtures/links.pdf @@ -0,0 +1,55 @@ +%PDF-1.7 +%âãÏÓ +1 0 obj +<< /Type /Catalog /Pages 2 0 R >> +endobj +2 0 obj +<< /Type /Pages /Count 2 /Kids [3 0 R 4 0 R] >> +endobj +3 0 obj +<< /Type /Page /Parent 2 0 R /MediaBox [0 0 200 300] /Resources << /Font << /F1 5 0 R >> >> /Contents 6 0 R /Annots [7 0 R 8 0 R 9 0 R 10 0 R] >> +endobj +4 0 obj +<< /Type /Page /Parent 2 0 R /MediaBox [0 0 200 300] /Resources << >> >> +endobj +5 0 obj +<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica >> +endobj +6 0 obj +<< /Length 131 >> +stream +BT /F1 6 Tf 20 240 Td (target.txt) Tj ET +BT /F1 6 Tf 20 120 Td (https://example.com/same) Tj ET +BT /F1 6 Tf 20 60 Td (label) Tj ET +endstream +endobj +7 0 obj +<< /Type /Annot /Subtype /Link /Rect [20 230 120 260] /Border [0 0 0] /A << /S /URI /URI (https://example.com/embedded) >> >> +endobj +8 0 obj +<< /Type /Annot /Subtype /Link /Rect [20 170 120 200] /Border [0 0 0] /Dest [4 0 R /XYZ 12 34 null] >> +endobj +9 0 obj +<< /Type /Annot /Subtype /Link /Rect [20 110 190 140] /Border [0 0 0] /A << /S /URI /URI (https://example.com/same) >> >> +endobj +10 0 obj +<< /Type /Annot /Subtype /Link /Rect [20 50 120 80] /Border [0 0 0] /A << /S /URI /URI (https://example.com/only) >> >> +endobj +xref +0 11 +0000000000 65535 f +0000000015 00000 n +0000000064 00000 n +0000000127 00000 n +0000000288 00000 n +0000000376 00000 n +0000000446 00000 n +0000000627 00000 n +0000000768 00000 n +0000000886 00000 n +0000001023 00000 n +trailer +<< /Size 11 /Root 1 0 R >> +startxref +1159 +%%EOF -- cgit v1.3