← Market

Convert · Html To Pdf

ShrinkWise. Renders one self-contained UTF-8 HTML file (up to 5 MiB) to PDF in headless Chrome: print CSS, @page, page breaks, flex/grid, SVG, data: URI images/fonts. A4/Letter/Legal/A3/A5, landscape, margins. External URLs are blocked and reported. JavaScript is off by default; when enabled, scripts run without network access except best-effort WebRTC blocking. Up to 50 pages/25 MB. Batches: 10 files/200 MB, paid per file. Price: 0.01 USDC per file. Setup: https://api.shrinkwise.io/guide

POST https://api.shrinkwise.io/v1/convert/html-to-pdf

0.01 USDC on Base · payTo 0xBCF552998C9FE968D7943a2687Cf70D0b055bC22

Status: verified · payable

Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.

Settlement: direct to the seller's payTo — 0% HIVE402 take

Payment routes

Base · 0.01 USDC · payTo 0xBCF552998C9FE968D7943a2687Cf70D0b055bC22 · via cdp · settles direct
{
  "javascript": false,
  "job": "00000000-0000-4000-8000-000000000001",
  "landscape": false,
  "margin": 10,
  "media": "print",
  "mode": "render",
  "pageSize": "A4",
  "printBackground": true,
  "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
}
{
  "expiresAt": "2026-11-14T12:10:00.000Z",
  "format": "html",
  "id": "00000000-0000-4000-8000-000000000001",
  "mode": "render",
  "outputFormat": "pdf",
  "result": "/v1/jobs/00000000-0000-4000-8000-000000000001/result",
  "resultContentType": "application/pdf",
  "state": "queued",
  "status": "/v1/jobs/00000000-0000-4000-8000-000000000001"
}

Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Contact

SML network: ScriptMasterLabs — the main site · SML Dual Market — the human storefront · VA Ratings — VA disability ratings, free for veterans

Agent intel trust badge

Trust score68 / 100 · breakdown
Probe uptime (30d)100.0% over 1 probes · daily
Avg 402 latency266 ms
Paid calls (30d, on-chain)11 calls · 2 buyers · shared price cohort of 6
Facilitator-reported (30d)2 calls · 1 payers (CDP Bazaar)

How to call

POST https://api.shrinkwise.io/v1/convert/html-to-pdf · input in body · spec from live-challenge

Input schema
{
  "type": "object",
  "properties": {
    "job": {
      "type": "string",
      "format": "uuid",
      "description": "Ready file job ID returned by POST /v1/jobs or jobs[index].id from POST /v1/batches. File bytes must first be uploaded to /v1/jobs/{id}/input. Authorization uses that child's token, not the batch token. Full setup: https://api.shrinkwise.io/guide"
    },
    "sha256": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "description": "Optional integrity check: the exact SHA-256 returned by upload inspection. A mismatch is rejected before payment. This does not upload or select a file."
    },
    "mode": {
      "type": "string",
      "enum": [
        "render"
      ],
      "description": "Optional check of the mode already selected at creation. Extraction uses extract; PDF compression uses safe/aggressive; image compression uses auto/exact; conversion uses auto. It cannot change a prepared job."
    },
    "pageSize": {
      "type": "string",
      "enum": [
        "A4",
        "Letter",
        "Legal",
        "A3",
        "A5"
      ],
      "description": "Optional check of the paper size selected at job creation (default A4). A CSS @page size in the document takes precedence."
    },
    "landscape": {
      "type": "boolean",
      "description": "Optional check of the orientation selected at creation (default false)."
    },
    "margin": {
      "type": "integer",
      "minimum": 0,
      "maximum": 50,
      "description": "Optional check of the page margin in millimetres selected at creation (default 10). CSS @page margins take precedence."
    },
    "printBackground": {
      "type": "boolean",
      "description": "Optional check of background printing selected at creation (default true)."
    },
    "javascript": {
      "type": "boolean",
      "description": "Optional check of whether inline scripts run, selected at creation. JavaScript is off by default; when enabled, scripts run without network access except best-effort WebRTC blocking."
    },
    "media": {
      "type": "string",
      "enum": [
        "print",
        "screen"
      ],
      "description": "Optional check of the emulated CSS media type selected at creation (default print)."
    }
  },
  "required": [
    "job"
  ],
  "additionalProperties": false
}
Output schema
{
  "type": "object",
  "required": [
    "id",
    "state",
    "format",
    "outputFormat",
    "mode",
    "expiresAt",
    "status",
    "result"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "state": {
      "type": "string",
      "enum": [
        "queued",
        "running",
        "completed",
        "failed",
        "expired",
        "cancelled"
      ]
    },
    "format": {
      "type": "string"
    },
    "mode": {
      "type": "string"
    },
    "outputFormat": {
      "type": "string",
      "description": "Actual result format; selected at creation for conversions."
    },
    "status": {
      "type": "string",
      "description": "Authenticated polling path for this asynchronous job."
    },
    "result": {
      "type": "string",
      "description": "Authenticated download path; available after state=completed for 15 minutes."
    },
    "resultContentType": {
      "type": "string"
    },
    "resultSchema": {
      "type": "string",
      "description": "Public JSON Schema for structured data, document extraction or table results."
    },
    "documentType": {
      "type": "string",
      "enum": [
        "auto",
        "commercial_invoice",
        "packing_list"
      ]
    },
    "sizeTarget": {
      "type": "object",
      "additionalProperties": false,
      "description": "Size search outcome. Processing is charged even when targetMet is false. Quality settings are codec-specific, not perceptual guarantees; null for PNG/PDF. Profile identifies the selected output, not every attempted profile.",
      "required": [
        "maxBytes",
        "minQuality",
        "profile",
        "targetMet",
        "encoderQuality",
        "attempts",
        "reason"
      ],
      "properties": {
        "maxBytes": {
          "type": "integer",
          "minimum": 1
        },
        "minQuality": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 40,
          "maximum": 95
        },
        "profile": {
          "enum": [
            "original",
            "jpeg-quality",
            "webp-quality",
            "heic-quality",
            "png-lossless",
            "png-palette-256",
            "png-palette-128",
            "png-palette-64",
            "png-palette-32",
            "pdf-lossless",
            "pdf-images-300dpi",
            "pdf-images-225dpi",
            "pdf-images-150dpi"
          ]
        },
        "targetMet": {
          "type": "boolean"
        },
        "encoderQuality": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 40,
          "maximum": 95,
          "description": "Selected JPEG/WebP/HEIC encoder setting; null for original bytes and PNG/PDF profiles."
        },
        "attempts": {
          "type": "integer",
          "minimum": 0,
          "maximum": 8
        },
        "reason": {
          "enum": [
            "already_within_limit",
            "target_met",
            "limit_not_reached"
          ]
        }
      }
    },
    "backgroundResult": {
      "type": "object",
      "description": "Background removal summary after completion: subject box, coverage, tiles used and review warnings."
    },
    "tablesResult": {
      "type": "object",
      "description": "Table extraction summary after completion: tables found, pages, pages without text, strategies and document warnings.",
      "properties": {
        "tables": {
          "type": "integer"
        },
        "pages": {
          "type": "integer"
        },
        "pagesWithoutText": {
          "type": "integer"
        },
        "strategies": {
          "type": "array",
          "items": {
            "enum": [
              "lattice",
              "stream",
              "hybrid"
            ]
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "htmlPdfResult": {
      "type": "object",
      "description": "HTML to PDF summary after completion: rendered page count, refused network requests/navigations and warnings.",
      "required": [
        "pages",
        "blockedRequests",
        "warnings"
      ],
      "properties": {
        "pages": {
          "type": "integer",
          "minimum": 1,
          "maximum": 50
        },
        "blockedRequests": {
          "type": "integer",
          "minimum": 0,
          "description": "External requests and navigations refused while rendering; the PDF was produced without them."
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "EXTERNAL_RESOURCES_BLOCKED",
              "NAVIGATION_BLOCKED",
              "POPUP_BLOCKED",
              "SCRIPT_ERRORS"
            ]
          }
        }
      },
      "additionalProperties": false
    },
    "expiresAt": {
      "type": "string"
    },
    "receipt": {
      "type": "object",
      "description": "Confirmed Base USDC receipt. A paid retry returns the same receipt without another settlement."
    }
  },
  "additionalProperties": true
}
curl -i -X POST 'https://api.shrinkwise.io/v1/convert/html-to-pdf' \
  -H 'content-type: application/json' -d '{"job":"00000000-0000-4000-8000-000000000001","sha256":"0000000000000000000000000000000000000000000000000000000000000000","mode":"render","pageSize":"A4","landscape":false,"margin":10,"printBackground":true,"javascript":false,"media":"print"}'

Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs

Try it (your wallet signs; HIVE402 never holds funds)