The unit a page is measured in
State how many points one unit of a page is, for a sheet larger than the 14 400 points a PDF measures in.
Summary
A PDF measures everything in points, and it cannot count past 14 400 of them: a little over five metres. A poster, a plan or a banner longer than that is drawn at a scale instead — the page says that one of its own units is worth so many points, and every number it carries is read at that scale. A plan stated in units worth ten points each reaches fifty metres on the same sheet.
Technically
Written at the top level of a request, under
"page_units"
page_units writes the /UserUnit of a page: how many points one of that page's units is. A reader and a printing works multiply the page's sheet and every coordinate on it by that number, so the drawing keeps its proportions and the sheet grows. It is read from PDF 1.6 onwards; an older reader shows the page at its bare numbers. A page named twice is measured in the last unit given for it, and a number that is not a positive length is refused rather than written.
Request schema
-
page_units— array, optional, empty by default. -
page_units[].page— integer ≥ 1, required. The page the entry is for. -
page_units[].unit— number > 0, required. How many points one of that page's units is.
A page nothing names keeps the point as its unit, which is what every other setting of a request is stated in.
A whole request that draws it
{
"page_units": [
{ "page": 1, "unit": 10 }
],
"standard_fonts": [{ "name": "sans", "face": "helvetica" }],
"items": [
{
"type": "text",
"rect": { "llx": 60, "lly": 740, "urx": 535, "ury": 765 },
"content": ["A plan drawn at ten points to the unit"],
"font": "sans",
"font_size": 14
}
]
}
The sheet, and what is laid under it
The size of the pages A size of its own for certain pages The areas a page states The shapes a page carries over its drawing Which way up a page is shown How a page arrives, and how long it stands How far a supplied PDF is allowed to unpack The headed paper under the pages
Where to go next
Every key of a request, in one page The other forty-one settings of a request