Skip to content
HALOWERK

Formatwerk

pdf linearize

Uses installed qpdf 11.9.0 (Apache-2.0) to rewrite a structurally valid, unencrypted PDF with --linearize. Checks the input and output structure, output hint tables and unchanged page count. Runs in a fresh unprivileged OS sandbox without network, credentials or application data, with 256 MiB memory and a 3 s lifetime. Accepts at most 512 KiB decoded input and returns at most 1 MiB decoded output. No URL fetch or password input. qpdf documentation:.

POST https://format.halowerk.com/v1/pdf-linearize

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
content_base64stringYesUnsigned, unencrypted PDF as canonical padded base64; maximum 524288 decoded bytes. No whitespace, data URL prefix or remote URL.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "content_base64"
  ],
  "properties": {
    "content_base64": {
      "type": "string",
      "minLength": 8,
      "maxLength": 699052,
      "description": "Unsigned, unencrypted PDF as canonical padded base64; maximum 524288 decoded bytes. No whitespace, data URL prefix or remote URL."
    }
  }
}

Open original schema

Published input example

{
  "content_base64": "JVBERi0xLjcKMSAwIG9iago8PCAvVHlwZSAvQ2F0YWxvZyAvUGFnZXMgMiAwIFIgPj4KZW5kb2JqCjIgMCBvYmoKPDwgL1R5cGUgL1BhZ2VzIC9LaWRzIFszIDAgUl0gL0NvdW50IDEgPj4KZW5kb2JqCjMgMCBvYmoKPDwgL1R5cGUgL1BhZ2UgL1BhcmVudCAyIDAgUiAvTWVkaWFCb3ggWzAgMCAzMDAgMjAwXSAvUmVzb3VyY2VzIDw8ID4+IC9Db250ZW50cyA0IDAgUiA+PgplbmRvYmoKNCAwIG9iago8PCAvTGVuZ3RoIDE1ID4+CnN0cmVhbQowIDAgMjAgMzAgcmUgUwplbmRzdHJlYW0KZW5kb2JqCnhyZWYKMCA1CjAwMDAwMDAwMDAgNjU1MzUgZiAKMDAwMDAwMDAwOSAwMDAwMCBuIAowMDAwMDAwMDU4IDAwMDAwIG4gCjAwMDAwMDAxMTUgMDAwMDAgbiAKMDAwMDAwMDIxOSAwMDAwMCBuIAp0cmFpbGVyCjw8IC9TaXplIDUgL1Jvb3QgMSAwIFIgPj4Kc3RhcnR4cmVmCjI4MwolJUVPRgo="
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’