--- title: "PDF生成器API连接器" slug: "pdf-generator-api-connector" updated: 2026-10-22T17:31:49Z published: 2026-10-22T17:31:49Z canonical: "support.tulip.co/pdf-generator-api-connector" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.tulip.co/llms.txt > Use this file to discover all available pages before exploring further. # PDF生成器API连接器 ## 简介与目的 Download the [pdf Generator API Connector](https://library.tulip.co/connectors/pdfgeneratorapi-connector) from the Tulip Library. 通过此连接器,您可以从 Tulip 生成受密码保护的 PDF 报告。 您可[在此处](https://docs.pdfgeneratorapi.com/v4)查阅[API 文档。](https://docs.pdfgeneratorapi.com/v4){`target=_blank`} ## 先决条件——在 PDF 生成器门户中进行设置 - [创建您的账户](https://pdfgeneratorapi.com/){`target=_blank`} - 创建模板并保存。 - 在“仪表盘”页面中,复制模板 ID,该 ID 将在“生成 PDF”连接器功能中用到。 如需了解有关创建模板的更多信息,请参阅[PDF Generator 支持门户](https://support.pdfgeneratorapi.com/en/){`target=_blank`}。 ## 应用设置 Use the expression editor to create a JSON object The data input for populating the PDF template must be formatted as a JSON. As a result, you will need to use the expression editor to wrap your data and format it as a JSON object. 以下是一个示例: ![Screenshot 2026-02-26 at 3.16.11 PM.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Screenshot%202026-02-26%20at%203.16.11%E2%80%AFPM.png) ## 连接器环境设置 - 主机:*us1.pdfgeneratorapi.com* - 协议:*HTTPS(已启用 TLS)* - 身份验证:OAuth 2.0(Bearer 令牌):::(Info) (Important Authentication Detail) The JWT token are generally valid for 15 minutes, i.e. you will need to regenerate your temporary tokens and update the connector configs since JWT is not natively supported yet. ::: ### 连接器功能 1. 生成 PDF 文档——该功能以模板 ID 和 JSON 格式的数据作为输入,用于填充内容并生成 PDF 文档。 1. 请在**请求正文中**更新*template.id*。![Screenshot 2026-02-26 at 3.22.53 PM.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Screenshot%202026-02-26%20at%203.22.53%E2%80%AFPM.png) 2. 加密文档——此功能接收来自上述连接器函数的 URL,并生成访问该文档所需的密码。 1. 请在**请求正文中**更新*owner_password*和*user_password*。![Screenshot 2026-02-26 at 3.23.47 PM.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Screenshot%202026-02-26%20at%203.23.47%E2%80%AFPM.png) ## 进一步阅读 如需更多资源,请访问 PDF 生成器 API[知识库](https://support.pdfgeneratorapi.com/en/){`target=_blank`}。 [在“连接器文档”](https://support.tulip.co/docs/connectors){`target=_blank`}中了解有关 Tulip 连接器的更多信息。 如需提问、分享想法或讨论用例,请加入[Tulip 社区](https://community.tulip.co/)。