跳到主要内容

添加表单字段 PDF 为了 Make

添加表单字段 PDF 是一个 Make 该模块可将交互式表单字段(文本输入框、复选框、单选按钮、下拉列表和签名框)精确地放置在任意位置的 X/Y 坐标处。 PDF 页面。使用它来自动创建可填写表单,用于合同、人力资源入职、调查以及任何需要收件人填写的流程。 PDF 数字输出。输出是 Base64已编码并准备填充 PDF 表单模块或直接上传。

本模块的功能

本模块的功能:PDF4me 添加表单字段 PDF 该模块将交互式表单字段(文本输入框、复选框、单选按钮、下拉列表和签名框)放置在页面任意位置的精确 X/Y 坐标处。 PDF 在你里面 Make 场景。给它喂食 PDF 缓冲区 Google DriveDropbox或者,在更早的模块中,定义字段名称、类型和位置,并接收返回值。 Base64-编码可填充 PDF 准备上传、通过电子邮件发送或传递给 Fill PDF 表单模块。使用 Make迭代器 遍历字段定义列表,并在单次场景运行中添加数十个字段——无需手动操作 PDF 需要编辑。

相关博客文章
目前尚无关于此功能的博客文章——敬请期待。
在此期间,您可以浏览 PDF4me 博客,查看适用于各平台的教程和工作流程。
访问博客

验证您的身份 API 要求

每一个 PDF4me 模块 Make 需要有效 API 密钥。连接 PDF4me 一旦进入 Make连接管理器 - 您的密钥将被安全存储并在所有连接中重复使用 PDF4me 模块会自动添加到您的所有场景中。

您不容错过的重要事实

Y 坐标是从左下角测量的,而不是从顶部测量的。
坐标系使用 PDF 以页面左下角为原点,测量单位为点(72 pt = 1 英寸)。Y 坐标 = 0 表示将区域放置在页面最底部边缘。要将区域放置在距离标准 A4 页面顶部 1 英寸处(高度为 842 pt),请将 Y 坐标设置为大约 770(842 − 72)。测量方向为从下往上,这与大多数设计工具从上往下测量的方向相反。
每次模块调用都会添加一个字段——对于多个字段,请使用迭代器。
该模块设计为每次执行添加一个字段。要构建包含多个字段的表单,请将字段定义(名称、类型、X、Y、页码)存储在一个单独的模块中。 Make 数据存储或 JSON 首先创建一个数组,然后使用迭代器将每个定义依次传递给一系列“添加表单字段”模块。每个模块的“文档数据”输出将成为下一个模块的“文档”输入——表单逐步累积字段。
文档数据输出为 Base64 - 将其直接映射到下一个模块
该模块返回更新后的数据。 PDF 作为 Base64文档数据字段中的编码数据。将其直接映射到下一个文档的输入。 PDF4me 模块(填充) PDF 形成,压平 PDF 表单等)或存储上传模块(Google DriveDropboxOneDrive)。 Make的原生集成处理 Base64自动转换为二进制格式 - 无需中间解码步骤。
在 Make: PDF4me 中向 PDF 模块添加表单字段
添加表单字段 PDF 模块配置在 Make 设想

参数

⚠️ 文件名、文档、字段名称和表单字段类型均为必填项。 可选参数控制字段位置、默认值和页面定位。

范围必需的它的作用例子
File NameRequiredFilename of the source PDF including the .pdf extension. Map from the previous module's file name output or enter a static name. Used for output identification and file format validation.application_form.pdf
DocumentRequiredThe PDF file content as a binary buffer. Map from a Get File module (Google Drive, Dropbox, OneDrive, HTTP) or from the Document Data output of a previous PDF4me module. This is the base PDF that will receive the new form field.[Buffer from Google Drive Get File]
Field NameRequiredUnique identifier for the form field. Used for field recognition when filling the form programmatically or with the Fill PDF Form module. Use descriptive names without spaces (e.g. FirstName, EmailAddress, AgreeToTerms). Must be unique within the document.email_address
Form Field TypeRequiredThe type of interactive field to add. Text - single or multi-line text input. Checkbox - boolean tick box (true/false). Radio - radio button selection (group via shared Field Name). Dropdown - drop-down list selection. Signature - digital signature field.Text
Initial ValueConditionalDefault value pre-populated in the field. For Text fields: any string (appears as placeholder text). For Checkbox: "1" or "true" to pre-check, "0" or "false" for unchecked. Leave empty for blank fields that the recipient fills in.Enter your email address
Position XConditionalHorizontal position of the field from the left edge of the page, measured in PDF points (72 points = 1 inch). Default: 0 (left edge). Use a PDF ruler or coordinate tool to determine the exact X value for your layout.100
Position YConditionalVertical position of the field from the bottom-left corner of the page, measured in PDF points (72 points = 1 inch). Y = 0 is the bottom edge. For A4 (842 pt tall), Y = 770 places the field approximately 1 inch from the top.500
PagesConditionalTarget pages for the field using 0-based indexing. Use comma-separated indices for specific pages (e.g. "0,2,4"), ranges with hyphen (e.g. "0-3" for first four pages), or leave empty to apply to all pages.0

输出字段

场地类型它包含什么
Document NameStringOutput PDF filename with the form field added
Document DataBase64The updated PDF with the new form field encoded as Base64; map directly to the next module's Document input or a storage upload field

如何设置“添加表单字段” PDF 模块 Make

  1. 创建或打开 Make 设想 并添加一个提供源的触发器或模块。 PDF - Google Drive 观看文件, Dropbox 手表文件夹,或一个 HTTP 模块。
  2. 添加一个“获取文件”模块Google DriveDropbox, 或者 OneDrive)检索二进制文件 PDF 如果触发器仅返回元数据,则使用缓冲区。
  3. 添加 PDF4me 添加表单字段 PDF 模块 - 搜索 PDF4me 在模块列表中选择它。
  4. 认证 你的 PDF4me API 如果尚未连接,请输入密钥(在密钥中输入密钥)。 Make 连接对话框)。
  5. 地图文件名 从上一个模块的文件名输出中获取。
  6. 地图文件 从前一个模块的文件缓冲区或二进制数据输出。
  7. 输入字段名称 - 一个唯一的、描述性的标识符(例如, ApplicantNameSignatureField)。
  8. 选择表单字段类型 - 文本、复选框、单选按钮、下拉菜单或签名。
  9. 设置 X 和 Y 位置PDF 精确定位要点。
  10. 设置页面 选择特定页面(从 0 开始),或留空以选择所有页面。
  11. 连接下游模块 - 将文档数据映射到填充 PDF 表单模块,或上传到 Google Drive/Dropbox

您可以向表单添加哪些字段类型? PDFMake

PDF4me 支持五种交互式字段类型: 文本 适用于单行或多行输入, 复选框 对于布尔选择, 收音机 按共享字段名称分组的按钮, 下拉菜单 选项列表,以及 签名 数字签名字段。所有职位均使用 PDF 从左下角原点开始的坐标点(72 pt = 1 英寸)。完整信息 PDF 表单字段规范请参见 PDF 32000-1 标准 以及 Make PDF4me 一体化

场景示例

合同模板 → 添加字段 → 保存到 SharePointWhen a new contract type is approved, automatically add name, date, and signature fields to the template PDF and archive it in SharePoint.
调查问卷数组 → 迭代器 → 每个问题一个字段Turn a structured list of survey questions into a fillable PDF form by iterating over field definitions stored in a Make data store.
发布新职位 → 添加申请字段 → 将可填写表格通过电子邮件发送给人力资源部Automatically generate a fillable job application PDF with name, email, phone, and experience fields every time a new position is posted.

常见问题解答

How are Position X and Y coordinates measured in this module?+
Coordinates use PDF points (72 pt = 1 inch) measured from the bottom-left corner of the page. Position X = 0 is the left edge; Position Y = 0 is the bottom edge. For a standard A4 page (842 pt tall), Y = 770 places a field approximately 1 inch from the top. Use a PDF coordinate tool or the PDF ruler in Acrobat to determine exact values before building your scenario.
How do I add multiple form fields in one Make scenario?+
Chain multiple Add Form Field to PDF modules in sequence. Map the Document Data output of each module to the Document input of the next - the form accumulates fields step by step. For a large number of fields, use Make's Iterator with a data store array of field definitions to process them programmatically without manually chaining hundreds of modules.
What is the correct Initial Value format for a checkbox?+
Set Initial Value to "1" or "true" to pre-check the box by default, or "0" or "false" for unchecked. For text fields, enter any string as placeholder text. Leave Initial Value empty for fields that the recipient fills in themselves - the field renders as a blank interactive element.
Does the Pages parameter use 0-based or 1-based indexing?+
Pages uses 0-based indexing - page 1 of the document is index 0, page 2 is index 1, and so on. Use comma-separated values for specific pages (e.g. "0,2,4"), ranges with hyphen (e.g. "0-3" for the first four pages), or leave empty to apply the field to every page in the document.
How do I use the Document Data Base64 output in the next module?+
Map the Document Data field directly to the Document or Buffer input of the next PDF4me module (e.g. Fill PDF Form, Flatten PDF Form). For Google Drive or Dropbox uploads, select the Data field and choose the Base64 mapping - Make handles the conversion to binary automatically. No intermediate decoding step is needed.

相关模块

获取帮助