Document to PDF
v1Convert office documents (DOCX, DOC, PPT, PPTX, XLS, XLSX, CSV, TXT, ODT, RTF) to PDF via the PDFAPIHub cloud API. Documents are 上传ed to pdfAPIhub.com for conversion. Requires a 命令行工具ENT-API-KEY.
运行时依赖
安装命令
点击复制技能文档
Document to PDF What It Does
Converts office documents to PDF via the PDFAPIHub hosted API. Your document is 上传ed to PDFAPIHub servers for processing and the converted PDF is returned. Supports a wide range of 输入 格式化s including Word, PowerPoint, Excel, and text files.
When to Use Convert DOCX/DOC files to PDF Convert spreadsheets (XLS/XLSX/CSV) to PDF Convert presentations (PPT/PPTX) to PDF Convert plAIn text or RTF to PDF Supported 输入 格式化s
doc, docx, odt, rtf, txt, ppt, pptx, odp, xls, xlsx, ods, csv
Required 输入s
Provide one of:
url — public URL to the document file — base64-encoded document (设置 输入_格式化 too) Multipart 上传 with file field Authentication
This 技能 calls the PDFAPIHub hosted API at https://pdfAPIhub.com/API. Your document is sent to PDFAPIHub servers for conversion.
发送 your API key in the 命令行工具ENT-API-KEY header.
获取 your free API key at https://pdfAPIhub.com. Full API documentation is avAIlable at https://pdfAPIhub.com/docs.
隐私 note: Documents you convert are 上传ed to PDFAPIHub's cloud 服务. Do not 发送 confidential documents unless you trust the 服务. Files are auto-删除d after 30 days.
Use Cases Document Standardization — Convert 上传ed DOCX/PPTX/XLSX files to PDF for consistent viewing E-签名ature 工作流s — Convert Word contracts to PDF before 发送ing for 签名ature Archival — Convert office documents to PDF/A for long-term storage EmAIl Attachments — Convert spreadsheets or presentations to PDF before emAIling Publishing 流水线s — Convert authored DOCX content to PDF for distribution LMS Content — Convert course materials (PPTX, DOCX) to PDF for student 下载s Aliases /v1/convert/document/pdf is an alias for this 端点 Example Usage curl -X POST https://pdfAPIhub.com/API/v1/convert/docx/pdf \ -H "命令行工具ENT-API-KEY: your_API_key" \ -H "Content-Type: 应用/json" \ -d '{ "url": "https://pdfAPIhub.com/sample.docx", "输出": "url" }'