跳到主要内容

添加表单字段 PDF 为了 Make

添加表单字段 PDF 是一个 Make 该模块可将交互式表单字段(文本框和复选框)放置在任意位置的精确 X/Y 坐标处。 PDF 页面。使用它来自动创建可填写表单,用于合同、人力资源入职、调查以及任何需要收件人填写的流程。 PDF 以数字方式返回。结果以文件(二进制数据)的形式返回,可供填充。 PDF 表单模块或直接上传。

本模块的功能

本模块的功能: 这 PDF4me 添加表单字段 PDF 该模块会在页面的任何位置,以精确的 X/Y 坐标放置交互式表单字段(文本框和复选框)。 PDF 在你里面 Make 场景。给它喂食 PDF 从 Google Drive, Dropbox或者,在之前的模块中,定义每个字段的名称、类型和位置,并接收返回值。 可填写 PDF 二进制文件数据 准备上传、通过电子邮件发送或传递给 Fill PDF 表单模块。 表单字段 是一个数组,因此一次调用可以一次性添加多个字段——无需手动操作。 PDF 需要编辑。

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

验证您的身份 API 要求​

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

您不容错过的重要事实​

Y 坐标是从左下角测量的,而不是从顶部测量的。
Y轴位置是指表单字段到页面底部边缘的距离,X轴位置是指表单字段到页面左侧边缘的距离。两者均为整数,默认值均为10。测量方向为从下往上——这与大多数设计工具从上往下测量的方向相反。
表单字段是一个数组——一次调用即可添加多个字段
每件物品 表单字段 定义一个字段,包括字段名称、表单字段类型、初始值、X 坐标、Y 坐标和页码。点击 添加项目 对于表单所需的每个字段,您仍然可以根据需要链接模块:一次调用的文档输出将成为下一次调用的文档输入,表单字段逐步累积。
文档是二进制文件 - 将其映射到文件名
该模块返回更新后的数据。 PDF 作为文件(二进制数据) 文档 领域,其名称为 文件名将这对元素映射到下一个元素中 PDF4me 模块(填充) PDF 形成,压平 PDF 表单等)或存储上传模块(Google Drive, Dropbox, OneDrive)。 PDF4me 可能会将请求作为后台任务处理,并且 Make 等待结果后再运行下一个模块。
在 Make: PDF4me 中向 PDF 模块添加表单字段
添加表单字段 PDF 模块配置在 Make 设想

参数​

⚠️ 文件名和文档名称为必填项。 表单字段是可选的;在每个表单字段项中,必须填写字段名称和表单字段类型,而初始值、位置 X、位置 Y 和页码是可选的。

范围必需的它的作用例子
FileRequiredHow the source PDF reaches the module. The radio lists your connected storage actions (for example Dropbox - Download a File) and Map. Choose Map to wire the fields below from earlier modules: File Name and Document / public file URL only appear once Map is selected.Map
File NameRequiredName 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
Document / public file URLRequiredContent (binary data) of the PDF to process. Map from a Get File module (Google Drive, Dropbox, OneDrive, HTTP) or from the Document output of a previous PDF4me module. You can also enter a publicly accessible URL of the file instead.[Document from Google Drive Get File]
Form FieldsOptionalArray of the form fields to add to the PDF. Each item defines one field, so click Add item once per field you need.Add item
Form Fields -> Field NameConditionalName of the 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).email_address
Form Fields -> Form Field TypeConditionalType of the form field: Text Box or Check Box. Defaults to Text Box.Text Box
Form Fields -> Initial ValueConditionalInitial value for the form field. For setting a Check Box value, either set it as 1 or true. Leave empty for blank fields that the recipient fills in.Enter your email address
Form Fields -> Position XConditionalPosition of the form field from the left edge of the page, as a whole number. Defaults to 10.100
Form Fields -> Position YConditionalPosition of the form field from the bottom edge of the page, as a whole number. Defaults to 10.500
Form Fields -> PagesConditionalPage where the form field should be added. Pages are numbered from 1. Defaults to 1.2

输出字段​

场地类型它包含什么
File NameFile nameFile name of the resulting PDF, with the form fields added
DocumentFile (binary data)Content (binary data) of the resulting PDF; map it together with File Name into the next module's Document input or a storage upload field
Document UrlTextLink to the resulting PDF. Returned when PDF4me processes the request as a background job (for large files); otherwise empty

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

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

您可以向表单添加哪些字段类型? PDF 在 Make?​

“表单字段类型”下拉菜单提供两种交互式字段类型: 文本框 对于文本输入(这是默认设置), 复选框 对于一个复选框,其初始值设置为 1 或者 true 预先检查一下。X 坐标是从页面左边缘测量的,Y 坐标是从页面下边缘测量的。完整版 PDF 表单字段规范请参见 PDF 32000-1 标准 以及 Make PDF4me 一体化。

场景示例​

合同模板 → 添加字段 → 保存到 SharePointWhen a new contract type is approved, automatically add name, date, and approval fields to the template PDF and archive it in SharePoint.
调查问卷题库 → 表单字段项 → 可填写 PDFTurn a structured list of survey questions into a fillable PDF form by mapping field definitions stored in a Make data store into the Form Fields array.
发布新职位 → 添加申请字段 → 将可填写表格通过电子邮件发送给人力资源部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?+
Position X is the distance of the form field from the left edge of the page and Position Y the distance from the bottom edge. Both take whole numbers and both default to 10. Measure from the bottom up, which is the opposite of design tools that measure from the top down.
How do I add multiple form fields in one Make scenario?+
Form Fields is an array, so one module call can add several fields: click Add item for each field and fill in its Field Name, Form Field Type, Initial Value, Position X, Position Y and Pages. You can also chain modules, mapping the Document output of each call into the Document input of the next, so the form accumulates fields step by step.
What is the correct Initial Value format for a Check Box?+
For a Check Box, set Initial Value to 1 or true to pre-check the box. For a Text Box, enter any string as the initial text. Leave Initial Value empty for fields that the recipient fills in themselves.
Which page does the Pages parameter target?+
Pages names the page where the form field should be added, and pages are numbered from 1. It defaults to 1, so the field lands on the first page unless you change it.
How do I use the Document output in the next module?+
Map the Document field, which carries the file as binary data, to the Document input of the next PDF4me module (e.g. Fill PDF Form, Flatten PDF Form), and map File Name alongside it. For Google Drive or Dropbox uploads, map Document into the file data field and File Name into the name field.

相关模块​

获取帮助​