{
  "x402Version": 2,
  "id": 35680,
  "slug": "35680",
  "resource": "https://agentsvc.io/api/v1/proxy/html-to-pdf",
  "description": "Render a URL or raw HTML string to PDF. Returns pdf_base64 (base64 PDF; decode to get raw bytes) and page_count. Provide url OR html, never both. Supports format (A4/Letter/Legal), landscape boolean, and margin settings (top/bottom/left/right in CSS units). Use for invoices, reports, or printable document generation.",
  "type": "http",
  "serviceName": "HTML to PDF Converter",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791462963/bazaar-icons/243ff0b79dbee242.png",
  "resourceType": "Payments",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "4500",
      "amountUsd": 0.0045,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "5JzPS5qpEwUM1vTC9GG7uqvwJdHzbEwfoPHf2Ki977tg",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "4500",
      "amountUsd": 0.0045,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "4500",
      "amountUsd": 0.0045,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "4500",
      "amountUsd": 0.0045,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "data": {
            "properties": {
              "file_size_bytes": {
                "description": "Size of the PDF in bytes",
                "type": "integer"
              },
              "generated_at": {
                "description": "ISO 8601 timestamp of generation",
                "format": "date-time",
                "type": "string"
              },
              "page_count": {
                "description": "Number of pages in the generated PDF",
                "type": "integer"
              },
              "pdf_base64": {
                "description": "Base64-encoded PDF bytes (decode to get raw PDF file)",
                "type": "string"
              }
            },
            "required": [
              "pdf_base64",
              "page_count",
              "file_size_bytes",
              "generated_at"
            ],
            "type": "object"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "data"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "category": "visual",
      "info": {
        "input": {
          "body": {
            "html": "<h1>Invoice #123</h1><p>Total: $42.00</p>"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "file_size_bytes": 14867,
              "generated_at": "2026-04-07T12:00:00.000Z",
              "page_count": 2,
              "pdf_base64": "JVBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9..."
            },
            "success": true
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {},
                "required": []
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "data": {
                    "properties": {
                      "file_size_bytes": {
                        "description": "Size of the PDF in bytes",
                        "type": "integer"
                      },
                      "generated_at": {
                        "description": "ISO 8601 timestamp of generation",
                        "format": "date-time",
                        "type": "string"
                      },
                      "page_count": {
                        "description": "Number of pages in the generated PDF",
                        "type": "integer"
                      },
                      "pdf_base64": {
                        "description": "Base64-encoded PDF bytes (decode to get raw PDF file)",
                        "type": "string"
                      }
                    },
                    "required": [
                      "pdf_base64",
                      "page_count",
                      "file_size_bytes",
                      "generated_at"
                    ],
                    "type": "object"
                  },
                  "success": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "success",
                  "data"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      },
      "tags": [
        "pdf",
        "browser",
        "document",
        "playwright",
        "convert",
        "html-to-pdf",
        "pdf-generation",
        "url-to-pdf"
      ]
    },
    "builder-code": {
      "info": {
        "a": "bc_q6wi3opd"
      }
    }
  },
  "tags": [
    "pdf",
    "browser",
    "document",
    "playwright",
    "convert",
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "agentsvc.io",
  "lastUpdated": "2026-10-11T11:55:33.928Z",
  "quality": {
    "calls30d": 12,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-11T11:55:33.663Z"
  },
  "metadata": {
    "serviceName": "HTML to PDF Converter",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791462963/bazaar-icons/243ff0b79dbee242.png",
    "extensions": {
      "bazaar": {
        "category": "visual",
        "info": {
          "input": {
            "body": {
              "html": "<h1>Invoice #123</h1><p>Total: $42.00</p>"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "data": {
                "file_size_bytes": 14867,
                "generated_at": "2026-04-07T12:00:00.000Z",
                "page_count": 2,
                "pdf_base64": "JVBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9..."
              },
              "success": true
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {},
                  "required": []
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "data": {
                      "properties": {
                        "file_size_bytes": {
                          "description": "Size of the PDF in bytes",
                          "type": "integer"
                        },
                        "generated_at": {
                          "description": "ISO 8601 timestamp of generation",
                          "format": "date-time",
                          "type": "string"
                        },
                        "page_count": {
                          "description": "Number of pages in the generated PDF",
                          "type": "integer"
                        },
                        "pdf_base64": {
                          "description": "Base64-encoded PDF bytes (decode to get raw PDF file)",
                          "type": "string"
                        }
                      },
                      "required": [
                        "pdf_base64",
                        "page_count",
                        "file_size_bytes",
                        "generated_at"
                      ],
                      "type": "object"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        },
        "tags": [
          "pdf",
          "browser",
          "document",
          "playwright",
          "convert",
          "html-to-pdf",
          "pdf-generation",
          "url-to-pdf"
        ]
      },
      "builder-code": {
        "info": {
          "a": "bc_q6wi3opd"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agentsvc.io",
    "manifest_name": "agentsvc.io",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "data": {
        "file_size_bytes": 0,
        "generated_at": "2026-01-01T00:00:00Z",
        "page_count": 0,
        "pdf_base64": "string"
      },
      "success": true
    },
    "type": "string"
  }
}