Render a page of a manual’s PDF as PNG
One page of the PDF GET …/pdf gives (the same reader, ?ref= and ?workingCopy=), rasterised, for thumbnails: page 1 is the title page. ?design= lays it out with another page design, for the design screen’s preview. Cached per commit like the PDF. Sent with nosniff and a sandboxing Content-Security-Policy.
bearerAuthorizationBearer <JWT>A service account's token (ccms_sat_…, issued by POST /service-accounts/{id}/tokens), or, for local use and demo mode, the server's shared CCMS_API_TOKEN.
id*string^[a-z0-9]+(?:-[a-z0-9]+)*$length <= 100variant*stringVariant slug as listed by GET /manuals/{id}, e.g. model=large.
1 <= length <= 500lang*string^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$page*stringThe page, from 1 (the title page) to 9999.
^[1-9][0-9]{0,3}$width?stringThe image's width in pixels (16–2400, default 480); the height follows the page.
^[0-9]{1,4}$design?|For the design screen: lay the manual out with this page design (design/<id>.yaml, read at ref, and its working copy with workingCopy=true) in place of the manual's own; builtin for the built-in design. A design that is not there gives the built-in design, as for a manual naming one. Default: the manual's own (its manifest's design, else pdf.design).
workingCopy?stringFor authors (left out of the delivery document): true reads the change set’s working copies (what its editor autosaved, not committed yet) in place of their files, modules and manuals alike; module references resolve to their own working copies where there are any; an image uploaded into the change set links to GET /change-sets/{changeSetId}/assets/{hash} in an HTML page, and the PDF shows it. Needs ref to name the change set’s branch (change-sets/<id>; else 400 invalid-parameter) and only for its author: 403 for anyone else who may read drafts, 404 for anyone who may not. private, no-cache, without the commit’s ETag. Default: false.
"false""true""false"ref?stringBranch, tag or commit ID to read from. Default: the server's CCMS_DEFAULT_REF.
X-Ccms-User?stringDemo mode only (CCMS_AUTH_MODE=demo): the user ID to act as. The bearer token is still required; without demo mode the header is refused (400).
The page as PNG.
response?unknownimage/pngcurl -X GET 'http://localhost:3000/manuals/operating/variants/model=large/en/pdf/pages/1.png'null