write_eval_watermark.json
The JSON file of the “The watermark a trial copy carries” example. What you get before you pay anything: a watermark across every page, and the same pages under it, laid out exactly as a paid copy lays them out. This is also the document that says what a licence key changes, and why every figure on this site is measured with one.
This file is a request: an application sends it over the network to the server, which creates the PDF and sends it back. It makes the same page as the Rust and Python versions of this example. A request names every file it uses, never its content; the call carries the request and the files together. A font the server already holds, such as DejaVuSans, is named with nothing attached. Send the request to the address the API page gives.
This is one of the two pairs on the site rendered without a licence key, because that is what the example itself shows. A trial copy traces every letter rather than writing it as text, so what the two files carry is the shape of every word rather than the word itself — on either side. What the two must do is match dot for dot, watermark included. The library also writes each of the six lines at a stated height, where the request gives each one a rectangle and lets the line sit one line's height under the top of it.
What this example is for
You want to see what this engine makes before you pay anybody anything. A trial copy lays out the same pages as a paid copy — the same layout, the same tables, the same tables carried on to the next page, the same files made for keeping — and writes a watermark corner to corner across every page. Look at the picture beside this text before you open anything: the watermark climbs across the page, a smaller line under it says what a licence key buys, and underneath sits an ordinary report — a heading, a name, two sentences — laid out exactly as a paid copy lays it. The document below is that trial copy, exactly as it came out.
What this example shows
- The watermark a trial copy writes across every page.
- The same pages under it, laid out as a paid copy lays them out.
- Every letter traced from the glyph the document's own font gives, so the file carries no font.