跳到主要内容

添加页码 PDF 为了 Zapier

此操作的作用

此操作的作用:PDF4me 添加页码 PDF 该操作会在每一页上印上连续的页码。 PDF 在 Zap 中,选择页码的显示位置——顶部、中部或底部;左侧、居中或右侧——并调整字体大小、粗体/斜体样式、毫米边距和页码格式。启用 跳过第一页 封面不编号。输出结果为一个新的编号版本。 PDF 准备保存到 Google 云端硬盘、通过电子邮件发送、上传到 SharePoint或者进入下一步。 Zapier 工作流程。

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

验证您的身份 API 要求

每一个 PDF4me 行动 Zapier 需要有效 API 密钥。连接 PDF4me 一旦进入 Zapier帐户设置 - 您的密钥将被安全存储并在所有帐户中重复使用 PDF4me 自动启动。

您不容错过的重要事实

文件、垂直对齐和水平对齐都是必需的。
必须提供全部三项信息,否则操作失败。文件包含…… PDF 从触发器中获取二进制数据;垂直对齐方式将数字定位在页面高度方向(上/中/下);水平对齐方式将数字定位在页面宽度方向(左/中/右)。测试前请先映射这三项。
当对齐方式为居中或居中时,边距将被忽略。
水平边距仅在左对齐或右对齐时生效——它设置页面与最近边缘之间的距离。居中对齐时,水平边距会被忽略。垂直边距也是如此:它仅在顶部和底部对齐时生效,居中对齐时会被忽略。在精确定位页码时,请记住这一点。
跳过第一页会导致封面不编号,但顺序不会重置。
如果“跳过首页”设置为真,则第 1 页(标题页或封面页)不会显示页码。第 2 页显示的页码是“2”而不是“1”,因为页码是从文档中的绝对位置开始计数的。这符合标准的出版和法律文件惯例。
Zapier 中的“向 PDF 添加页码”操作:PDF4me
添加页码 PDF 在内部配置的操作 Zapier 工作流程

参数

⚠️ 标有“必填”的参数必须提供 要执行此操作,需要提供可选参数。这些参数控制数字格式、字体样式和边距——省略时将应用默认值。

范围必需的它的作用例子
FileYesThe PDF file to add page numbers to. Map the binary file output from a Zapier trigger or previous action - Google Drive file, Gmail attachment, OneDrive/Dropbox file, or a PDF generated by an earlier Zap step.quarterly_report.pdf (from Google Drive trigger)
Vertical AlignmentYesVertical position of the page number on the page. Top - near the top edge. Middle - equidistant from top and bottom edges (Vertical Margin is ignored). Bottom - near the bottom edge.Bottom
Horizontal AlignmentYesHorizontal position of the page number across the page. Left - near the left edge. Center - centred across the page (Horizontal Margin is ignored). Right - near the right edge.Center
File NameNoCustom name for the output PDF file. If omitted, the name is derived automatically from the source file. Do not include the path - just the filename with or without the .pdf extension.report_numbered.pdf
Page Number FormatNoThe format string used to display page numbers. Supports numeric (1, 2, 3…), Roman numerals (i, ii, iii…), and compound formats such as "Page 1 of N". See the Zapier dropdown for all available options.Page 1 of N
Horizontal MarginNoGap in millimetres from the nearest horizontal edge. Applied when alignment is Left (gap from left edge) or Right (gap from right edge). Ignored when alignment is Center. Default: 0.10
Vertical MarginNoGap in millimetres from the nearest vertical edge. Applied when alignment is Top (gap from top) or Bottom (gap from bottom). Ignored when alignment is Middle. Default: 0.10
Font SizeNoPoint size for the page number text. Controls visibility and proportion relative to the page content. Recommended range: 8-14 pt for standard A4/Letter documents.12
Set BoldNoApply bold weight to the page number text. true - bold numbers; false - normal weight. Useful for making numbers stand out on dense pages.false
Set ItalicNoApply italic style to the page number text. true - italic; false - upright. Often used to visually distinguish page numbers from body text.false
Skip First PageNoWhen true, no page number is stamped on page 1 (the title or cover page). The numbering sequence continues from the actual page position - page 2 shows "2", not "1". Standard for reports, proposals, and legal documents with a cover.true

输出字段

输出字段描述
FileURL of the numbered PDF ready to download, upload, or pass to the next Zap step
File NameOutput filename without extension
Full File NameComplete filename including the .pdf extension
File ExtensionFile extension of the output document (always .pdf)

快速设置

  1. 创建或打开一个 Zap 并添加一个提供以下功能的触发器 PDF - Google 云端硬盘文件夹中的新文件、Gmail 中的新附件、OneDrive 或表单提交上传。
  2. 添加操作步骤 → 搜索 PDF4me → 选择 添加页码 PDF
  3. 认证 你的 PDF4me API 如果尚未连接,请输入密钥。
  4. 地图文件 来自触发输出(二进制文件字段,而不是 URL 关联)。
  5. 设置垂直对齐方式 - 选择页码的垂直位置:顶部、中间或底部。
  6. 设置水平对齐方式 - 选择左、中或右。
  7. 配置可选设置:根据需要设置页码格式、字体大小、粗体、斜体和页边距。
  8. 启用跳过第一页 如果您的文档有标题页或封面页,则不应编号。
  9. 测试该步骤 - Zapier 将处理样品 PDF 并返回输出文件 URL
  10. 添加下游步骤 - 上传编号文件 PDF 发送到 Google 云端硬盘、通过 Gmail 发送或传递文件 URL 执行下一步操作。

工作流程示例

工作流程示例Common Zapier patterns using Add Page Number to PDF.
报表生成器 → 编号 PDF → 电子邮件发送

自动为生成的报告添加页码,并通过电子邮件发送最终报告。 PDF 对利益相关者而言。

  1. Google 云端硬盘:文件夹中的新文件 - 请查看“报告,待处理”文件夹,了解新生成的文件。 PDFs
  2. PDF4me添加页码 PDF - 地图文件;垂直对齐方式 = 底部,水平对齐方式 = 居中;页码格式 = '第 1 页,共 N 页';跳过首页 = true
  3. Google 云端硬盘:上传文件 - 保存编号 PDF 到“最终报告”文件夹
  4. Gmail:发送电子邮件 - 附加编号邮件 PDF发送至财务或管理层通讯录
合同已创建 → 添加页码 → 保存 SharePoint

合同生成后立即盖上顺序页码,并将其存档。 SharePoint 为了遵守法律法规。

  1. PDF4me (或 DocuSign / PandaDoc):新合同 PDF 生成后可保存在 Google 云端硬盘或作为 Zap 输出文件。
  2. PDF4me添加页码 PDF - 设置底部和右侧对齐;垂直边距 = 8 毫米;水平边距 = 12 毫米;字体大小 = 10;加粗 = 是;跳过第一页 = 是
  3. 微软 SharePoint创建文件 - 将编号合同上传到“已签署合同”文档库
  4. Slack:在 #legal 频道发布消息 - 通知团队合同名称、完整文件名中的页数,以及 SharePoint 关联
培训手册已更新 → 页数 → 上传至学习管理系统

培训手册 PDF 在 Dropbox 中更新后,添加页码并将更新后的文档推送到您的学习管理系统。

  1. Dropbox:文件夹中新增或更新的文件 - 请查看“培训手册”文件夹
  2. PDF4me添加页码 PDF - 根据 Dropbox 文件名动态设置文件名;置于顶部和右侧;字体大小 = 11;封面页跳过首页 = true
  3. Zapier 筛选条件:仅当完整文件名以 .pdf 结尾时继续(跳过非 .pdf 文件)PDF 上传)
  4. TalentLMS / Teachable / Moodle:上传或更新带有编号的课程材料 PDF URL 从输出文件字段

常见问题解答

Which parameters are required for the Add Page Number to PDF action?+
Three parameters are required: File (the PDF binary from a trigger or previous step), Vertical Alignment (Top, Middle, or Bottom), and Horizontal Alignment (Left, Center, or Right). All other parameters are optional and fall back to defaults when omitted.
Does Skip First Page change the numbering sequence?+
Yes. When Skip First Page is true, page 1 (your cover or title page) is left unnumbered. The number that appears on page 2 is "2" - not "1" - because the action counts from the absolute page position in the document. This matches standard publishing and legal document conventions.
How do horizontal and vertical margins work?+
Horizontal Margin (mm) sets the gap from the nearest horizontal edge - left edge when alignment is Left, right edge when Right. It is ignored when alignment is Center. Vertical Margin sets the gap from the top or bottom edge and is ignored when alignment is Middle. Both default to 0 if not set.
What Page Number Format options are available?+
The action supports standard numeric (1, 2, 3…), Roman numerals (i, ii, iii…), and compound formats such as "Page 1 of N". Check the Zapier action field dropdown for the complete list. The default is standard numeric if no format is specified.
Can I use this action on password-protected PDFs?+
No - PDF4me cannot modify encrypted or password-protected PDFs. Remove the password before passing the file to this action. Use a PDF unlock step or Zapier's file manipulation tools to decrypt the document first if your workflow involves protected files.

相关操作

获取帮助