HTML から PDF API
1回のPOSTリクエストでURLまたはHTMLをPDFに変換。請求書、レポート、Webページのスナップショット、自動化ワークフローに最適です。
エンドポイント
POST /api/pdf
URL から PDF
curl -X POST "https://shipany2-pdf-sandbox.vercel.app/api/pdf" \
-H "content-type: application/json" \
-d '{"url":"https://example.com"}' \
--output out.pdfHTML文字列からPDF
curl -X POST "https://shipany2-pdf-sandbox.vercel.app/api/pdf" \
-H "content-type: application/json" \
-d '{"html":"<!doctype html><html><body><h1>Hello</h1></body></html>"}' \
--output out.pdfリクエスト項目
url: 対象WebページURL(http/https)html: 生のHTML文字列(urlまたはhtmlのどちらか)format: A4 / A3 / Letter / Legalheader/footer: 配置可能な配置付きヘッダー/フッターテキストlogo: ロゴのdataUrl、位置、サイズ
大規模なHTML→PDF変換が必要ですか?
bulk html to pdf、html string to pdf api、url to pdfのバッチ処理、Enterprise向けレンダリングワークフローについてご相談ください。
bulk html to pdfhtml string to pdf apibatch url to pdfinvoice html to pdf
