Skip to content
HALOWERK

Formatwerk

tiff to pdfa

Decodes every TIFF page with sharp/libvips (CCITT G3/G4, LZW, Deflate, PackBits, JPEG; orientation applied), keeps bilevel and greyscale pages lossless (PNG) and colour pages lossless or as JPEG, and embeds them with pdf-lib at the physical size from the page DPI (or a fallback) or fitted to A4/Letter. Returns pixel size, DPI and colour mode per page. By default the result is PDF/A-2b for long-term archiving (XMP identification, sRGB output intent, consistent document information, file.

POST https://format.halowerk.com/v1/tiff-to-pdfa

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
tiff_base64stringYesTIFF file, max. 40 MB, up to 300 pages.
page_fitstringNooriginal = size from DPI; A4/Letter = fit and centre (orientation follows the image).
default_dpiintegerNoUsed when a page carries no resolution.
color_compressionstringNo
jpeg_qualityintegerNo
titlestringNo
pdfabooleanNoWrite PDF/A-2b (default) or plain PDF.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "tiff_base64"
  ],
  "properties": {
    "tiff_base64": {
      "type": "string",
      "maxLength": 54000000,
      "description": "TIFF file, max. 40 MB, up to 300 pages."
    },
    "page_fit": {
      "type": "string",
      "enum": [
        "original",
        "A4",
        "Letter"
      ],
      "default": "original",
      "description": "original = size from DPI; A4/Letter = fit and centre (orientation follows the image)."
    },
    "default_dpi": {
      "type": "integer",
      "minimum": 50,
      "maximum": 1200,
      "default": 300,
      "description": "Used when a page carries no resolution."
    },
    "color_compression": {
      "type": "string",
      "enum": [
        "lossless",
        "jpeg"
      ],
      "default": "lossless"
    },
    "jpeg_quality": {
      "type": "integer",
      "minimum": 40,
      "maximum": 95,
      "default": 85
    },
    "title": {
      "type": "string",
      "maxLength": 200
    },
    "pdfa": {
      "type": "boolean",
      "default": true,
      "description": "Write PDF/A-2b (default) or plain PDF."
    }
  }
}

Open original schema

Published input example

{
  "tiff_base64": "SUkqABIAAAAmoL/////gAgAgDwAAAQMAAQAAABAAAAABAQMAAQAAABAAAAACAQMAAQAAAAEAAAADAQMAAQAAAAQAAAAGAQMAAQAAAAEAAAARAQQAAQAAAAgAAAASAQMAAQAAAAEAAAAVAQMAAQAAAAEAAAAWAQMAAQAAAAABAAAXAQQAAQAAAAoAAAAaAQUAAQAAAMwAAAAbAQUAAQAAANQAAAAcAQMAAQAAAAEAAAAoAQMAAQAAAAIAAABTAQMAAQAAAAEAAAAAAAAALAEAAAEAAAAsAQAAAQAAAA==",
  "page_fit": "original"
}

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 โ†’