Skip to content
HALOWERK

Formatwerk

pdf hidden text detect

Parses the PDF with pdf.js 6.4.299 and replays its operator list with an own text-state interpreter (ISO 32000-2 §9: Tc, Tw, Tz, TL, Ts, Tr, text and graphics matrices), giving every glyph its device-space box, effective size, fill/stroke colour (pdf.js RGB conversion), alpha and render mode. A glyph counts as hidden when it uses render mode 3 or 7, has zero alpha, is smaller than min_font_size, is squeezed below 10 % width, lies outside the crop box, outside the clip region, in an.

POST https://format.halowerk.com/v1/pdf-hidden-text-detect

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
content_base64stringNoThe PDF as base64 (a data: prefix and whitespace are tolerated); at most 10 MB decoded.
urlstringNoPublic http(s) URL of the PDF (at most 10 MB). Private, local and reserved addresses are refused.
pagesstringNoPage selection such as "1-3,7"; default all pages.
max_pagesintegerNoUpper limit of pages scanned in one call.
min_font_sizenumberNoEffective glyph height in points below which text counts as tiny.
min_contrastnumberNoWCAG contrast ratio between text and background below which text counts as invisible (1 = identical colours).
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "content_base64": {
      "type": "string",
      "minLength": 8,
      "maxLength": 13981016,
      "description": "The PDF as base64 (a data: prefix and whitespace are tolerated); at most 10 MB decoded."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048,
      "description": "Public http(s) URL of the PDF (at most 10 MB). Private, local and reserved addresses are refused."
    },
    "pages": {
      "type": "string",
      "maxLength": 400,
      "pattern": "^\\s*\\d{1,5}(\\s*-\\s*\\d{1,5})?(\\s*,\\s*\\d{1,5}(\\s*-\\s*\\d{1,5})?){0,99}\\s*$",
      "description": "Page selection such as \"1-3,7\"; default all pages."
    },
    "max_pages": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300,
      "default": 100,
      "description": "Upper limit of pages scanned in one call."
    },
    "min_font_size": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 4,
      "default": 1,
      "description": "Effective glyph height in points below which text counts as tiny."
    },
    "min_contrast": {
      "type": "number",
      "minimum": 1,
      "maximum": 2,
      "default": 1.25,
      "description": "WCAG contrast ratio between text and background below which text counts as invisible (1 = identical colours)."
    }
  }
}

Open original schema

Published input example

{
  "content_base64": "JVBERi0xLjcKJYGBgYEKCjYgMCBvYmoKPDwKL0ZpbHRlciAvRmxhdGVEZWNvZGUKL0xlbmd0aCAyODUKPj4Kc3RyZWFtCnicdZDRSkMxDIbv+xS9FsQkbZIeEGGeneGFN0JfQGQORS8m4vP7p05lOCkladIk/5d9uu6Jcpy3Xbq42b58bN+fHu7PJ69iTdRaZsv9MUnN/Tbx+MrZJbtR7q/psq6MbTEVqtU2YWUtpMUU0ck2LiPDjgsvoo44KkxdrnJ/Tv0sLT3dpf3/apSqTUKemU+rKQc16s0pOmNGzIKOshIqDcURYRcvQlBqUIkYdDW8FplDtXKFHUQVttgMAh3+DwP6z8O3oLM1+i1/OTjHOeZoVYkbMTimkxhMB4wJS1pGex1yZptjcLzdxlp1YGCRXrwCSg02MhH5RUBFSEWXATqNXPnK4nf9zsIeqiTW12JxMTWW6IEftaHmGPUTUaV8tQplbmRzdHJlYW0KZW5kb2JqCgo3IDAgb2JqCjw8Ci9GaWx0ZXIgL0ZsYXRlRGVjb2RlCi9UeXBlIC9PYmpTdG0KL04gNQovRmlyc3QgMjYKL0xlbmd0aCA0MjIKPj4Kc3RyZWFtCnic1VPfa9swEH7XX3GP28Oqk6xfLiGQJvEGo6y0g5WNPbi2CB5FGrYyuv9+JzlpKM3Y82wO6e6+k+6+0wlAkKAUVGAdKNCVBA3OaVgsGP/8+6cHftPu/MT4x6Gf4BthEG7hO+PruA8JBFsu2Qm7blP7GHdsDgKRwUfEzRj7fedHWDTbpkG0iGgUiUGUG1rXJDWJJJ180tGexKqDkM1WiNWKfM0sxs4x2V+w+hC/pZWwJmM2M1a5WX++N9+1nc+Q/8qnXjJ+HftNmzy82VxKlEYIFFi+r2+JjtG3Kf6/xZX8hxj+WuGLPuf25iaPPr+B0mV+66e4Hztqe8Y1kTx588E//vJp6Np3FmtHeVpX0xsrISdfbZU0TmrjXvsyXw517cy5OI3K1BLta5/VVuqqMufinNIoHJV3Js4ZussKZ4+5UOn8/tPDD9+VkrK6fUrv71LmajZk27Xvh/YqPtGUIP261hfSgVPigiqmiVmFEFOeoTI9IRF3WTOHiXpBcKaP8bv9QypqNgrGr9rJF2JP2VIqoYv9EHbAvwxhFabhaMgn/gFZh/HXCmVuZHN0cmVhbQplbmRvYmoKCjggMCBvYmoKPDwKL1NpemUgOQovUm9vdCAyIDAgUgovSW5mbyAzIDAgUgovRmlsdGVyIC9GbGF0ZURlY29kZQovVHlwZSAvWFJlZgovTGVuZ3RoIDQxCi9XIFsgMSAyIDIgXQovSW5kZXggWyAwIDkgXQo+PgpzdHJlYW0KeJwVxLERADAIA7E3cJc20zJAFidYhYCZ4ICTC5euxAWpt3zwAV7lA0UKZW5kc3RyZWFtCmVuZG9iagoKc3RhcnR4cmVmCjg5OAolJUVPRg=="
}

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 →