Skip to content
Novus Examples
pdf2.6 KB

Cedar Street Tacos: Credit note PDF

Credit note PDF for Cedar Street Tacos. Credit note CN-TRK-7002 dated 2026-08-29 against invoice INV-TRK-5004 dated 2026-08-28: 5 each at 0.21, net 1.05 and 1.10 CAD including GST. Goods-received note GRN-TRK-2004 records only 3 units returned, so the credit is 2 units too large.

Rendered preview of Cedar Street Tacos: Credit note PDF

Rendered preview of the pdf file (2.6 KB). Download above for the original.

Specifications

Kit
restaurant-food-truck
Schema Version
1
Synthetic
true
As Of
2026-09-08
Currency
CAD
Tax Name
GST
Tax Rate
0.05
Pages
1
Page Size
612x792 points
Document Number
CN-TRK-7002
Credited Units
5
Returned Units
3
Over Credited Units
2
Intentionally Inconsistent
true

Testing contract

Expected to fail
Scenario
Check the credited quantity against the returned quantity on goods-received note GRN-TRK-2004.
Expected result
Credit note CN-TRK-7002 dated 2026-08-29 against invoice INV-TRK-5004 dated 2026-08-28: 5 each at 0.21, net 1.05 and 1.10 CAD including GST. Goods-received note GRN-TRK-2004 records only 3 units returned, so the credit is 2 units too large.

What is a .pdf file?

PDF (Portable Document Format) is a page-oriented format that fixes layout, fonts, and vector and raster graphics so a page renders identically anywhere. A `%PDF-` header is followed by numbered objects, a cross-reference table mapping each to a byte offset, and a trailer; edits append incremental updates rather than rewrite the file. Page content is a stream of drawing operators, so a PDF holds no words or paragraphs, only positioned glyph runs. Adobe released it in 1993 and gave it to ISO as ISO 32000-1 in 2008.

How to use this file

Use an example PDF to test text extraction, rendering, metadata parsing, AcroForm handling, and OCR pipelines: checking that extraction reconstructs reading order from glyph positions, that a scanned page yields no text, and that an incremental update leaves earlier revisions in the file.

How to use this file for testing

“Cedar Street Tacos: Credit note PDF” is a deterministic Novus Examples fixture for Data import, PDF editor testing, Error handling. Realistic faker-generated datasets with documented schemas for testing import and ETL flows.

Documented properties for this file: 1 pages. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such, expect parsers to fail loudly rather than silently accept them.

Document fixtures list their internal structure (pages, fields, tracked changes, embedded objects) in the spec table. Test extractors, converters, and OCR against that known structure, and compare searchable↔scanned or format-twin companions when present.

Code examples

import pdfplumber  # pip install pdfplumber

with pdfplumber.open("credit-note.pdf") as pdf:
    print(len(pdf.pages), "pages")
    print(pdf.pages[0].extract_text())

Generated by generation/restaurant_procurement.py. Free for any use, no attribution required, license.