HTML을 PDF로 API
한 번의 POST 요청으로 URL 또는 HTML을 PDF로 변환합니다. 인보이스, 리포트, 웹페이지 스냅샷, 자동화 워크플로에 적합합니다.
엔드포인트
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: 대상 웹페이지 URL (http/https)html: 원시 HTML 문자열 (url또는html중 하나 선택)format: A4 / A3 / Letter / Legalheader/footer: 정렬을 포함한 머리글/바닥글 텍스트logo: 로고 dataUrl, 위치, 크기
대량 HTML→PDF 처리가 필요하신가요?
대량 HTML to PDF, HTML 문자열 PDF API, URL to PDF 배치 작업, 엔터프라이즈 렌더링 워크플로를 상담해 보세요.
bulk html to pdfhtml string to pdf apibatch url to pdfinvoice html to pdf
