PDF conversion guides

Keep a long equipment identifier exact in a JSON PDF

·

An equipment record contains long numeric identifiers and a measured tare written in exponent notation. A reviewer needs their original spelling in a PDF.

JSON to PDF Converter

Check the two identifiers and the trailing zeros

Select Load example and look inside equipment. The first record shows 123456789012345678901 and its tare is 1.2300e+04. The second identifier ends in 993 and the second tare appears as -0.00.

Save the PDF and search for 9007199254740993. The layout adds indentation without recomputing the original token.

Two exact value tokens from the first record
{"id":123456789012345678901,"tare":1.2300e+04}

RFC 8259 — JSON objects and numbers

Paste a top-level array of two objects and choose Records table. Notice that a missing weight is shown as a dash and a supplied null is printed as null.

The column order follows the first appearance of each key. The PDF repeats the column headings when a longer table crosses a page boundary.

An explicit null and a missing weight
[{"id":9007199254740993,"weight":null},{"id":9007199254740995}]

RFC 8259 — JSON objects and numbersW3C CSS Paged Media Module

Choose a listing for nested objects and duplicate names

Use Indented source if the top level is an object, or when you want to inspect multiple nested levels. If an object repeats a key, the listing shows its occurrences in source order.

Choose landscape when several values are too wide for a portrait table. Inspect the final page breaks in the print dialog.

RFC 8259 — JSON objects and numbersW3C CSS Paged Media Module

Common questions

Can the PDF keep -0.00 as entered?

The original number token is printed, including its negative sign and decimal zeros.

Do I need to turn my entire document into a table?

Use a source listing for any valid JSON. Records table is designed for a nonempty array of objects.

Sources

Put it into practice.

Related guides