跳到主要内容

创建条形码 Zapier

此操作的作用

PDF4me创建条形码 生成独立条形码或 QR 从任何文本或动态 Zap 数据生成代码图像,并返回指向生成图像的下载链接。提供六种格式可供选择。 QR Code, Data Matrix, Code128, Aztec, HanXin, 和 PDF417并自动对订单号、产品 URL、跟踪 ID 或任何字母数字数据进行编码。无来源 PDF 是必需的;条形码是从零开始生成的,可以直接导入存储设备、电子邮件或下游系统。 PDF 嵌入步骤。

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

验证您的身份 API 要求​

每一个 PDF4me 行动 Zapier 需要有效 联系创建或选择一个可以容纳您的 PDF4me API 关键在于让 Zap 能够安全地验证条形码生成请求。

您不容错过的重要事实​

两个字段均为必填项
条形码类型和文本均为必填项。条形码类型决定编码标准,文本包含要编码的实际数据。如果其中任何一项留空,操作将失败且不产生任何输出。
输出结果为下载链接
动作返回 文件网址提供的是生成的条形码图像的下载链接,而不是图像字节。地图 文件网址 在下一个 Zap 步骤中,将其放入存储操作(例如 Google 云端硬盘上传文件或 Dropbox 上传文件)中。
从先前步骤中映射动态数据
文本字段支持 Zapier字段映射。点击“+”图标,选择上一步的任何输出、Shopify 的订单 ID、Google Sheets 的行值或 HubSpot 的联系人字段,即可自动为每个记录生成唯一的条形码。
PDF4me 在 Zapier 中创建条形码操作,条形码类型设置为二维码,文本映射自之前的 Zap 步骤。

条形码类型选择编码格式;文本映射自任何先前的步骤、订单 ID 等。 URLSKU 或任何字母数字值。

参数​

必需的: 要生成条形码,必须同时提供条形码类型和文本。

范围必需的它的作用例子
Barcode TypeRequiredFormat of the barcode to generate. Options: QR Code, Data Matrix, Code128, Aztec, HanXin, PDF417: plus 150+ additional types. Defaults to QR code.QR Code
TextYesData to encode into the barcode. Map a dynamic value from a prior Zap step: order number, URL, SKU, asset ID, or any alphanumeric string.ORDER-2024-00123
Hide TextConditionalShown when Barcode Type is Code128. Hide text shown below barcode. Defaults to Yes.Yes
Text in the BarcodeRequiredText to be encoded in the Barcode

输出字段​

场地类型它包含什么
文件网址文本生成条形码图像的下载链接。将其映射到后续任何需要该文件的步骤,例如上传到 Google Drive、Dropbox 或 OneDrive。
文件名文本生成的文件名,不带扩展名。
完整文件名文本生成的文件名(含扩展名)。
文件扩展名文本生成文件的扩展名,例如 .png。
文档 ID文本ID PDF4me 返回生成的文档。
工作编号文本ID PDF4me 处理该请求的作业。
traceId文本请求的跟踪 ID,当 PDF4me 返回一个。把它给 PDF4me 问题报告时的支持。

快速设置​

  1. 添加 PDF4me → 创建条形码 前往你的 Zap。
  2. 选择 帐户 (或点击) 连接新帐户 并输入您的 API 钥匙)。
  3. 选择 条形码类型 从下拉菜单中选择:例如, QR Code 链接方面, Code128 用于库存标签。
  4. 地图 文本 到您要编码的动态字段:例如, {{Order Number}} 来自 Shopify。
  5. 添加后续步骤:保存 文件网址 到 Google 云端硬盘把它连接到 Gmail 消息,或将其传递给 添加条形码或 QR Code 到 PDF 用于嵌入。

工作流程示例​

工作流程示例Common Zapier patterns using PDF4me Create Barcode.
电子商务订单跟踪 QR codes
  1. Shopify触发器会在新订单生成时触发。
  2. PDF4me 创建条码运行,并将条码类型设置为 QR Code 以及根据订单号映射的文本。
  3. Gmail 会将条形码图像附加到订单确认电子邮件中。
  4. Google 云端硬盘会将条形码图像保存到 /Order Barcodes/ 文件夹中以作记录。
库存产品标签生成
  1. 在 Google Sheets 中添加新行(产品登记)会触发 Zap。
  2. PDF4me 创建条形码会将 SKU 值编码成条形码。 Code128 条形码。
  3. PDF4me 添加条形码或 QR Code 到 PDF 将其嵌入标签模板 PDF。
  4. Dropbox 会保存已标记的文件。 PDF 发给仓库团队的 /产品标签/。
活动门票 QR 代码分发
  1. Eventbrite 上的新注册会触发 Zap。
  2. PDF4me 创建条形码会生成一个 QR Code 根据参会者 ID 和活动名称。
  3. PDF4me 填写 PDF 表单嵌入了 QR 将代码添加到工单模板中。
  4. Gmail 会通过电子邮件发送已完成的工单。 PDF 自动发送给参会者。

常见问题解答​

Which barcode formats are supported?+
QR Code, Data Matrix, Code128, Aztec, HanXin (Chinese national standard 2D code), and PDF417 are the primary formats. The full library includes 150+ types covering retail (EAN13, UPC-A), logistics (GS1-128, ITF-14), and healthcare (HIBC, GS1 DataBar). Select the appropriate type from the Barcode Type dropdown.
How do I use the fileUrl output in a next step?+
Map the fileUrl field from this action into any Zapier step that accepts a file URL: Google Drive (Upload File), Dropbox (Upload File), Gmail (attachment), or OneDrive (Create File). The action returns a download link, not the image bytes.
Can I encode a full URL into a QR code?+
Yes. Enter the full URL in the Text field: for example, https://yoursite.com/track?order=12345. For very long URLs, use a URL shortener first to keep the QR code dense enough to scan at small print sizes.
What is the character limit per barcode type?+
QR Code handles up to 4,296 alphanumeric characters. Code128 supports up to 255. DataMatrix and PDF417 handle large payloads. Linear formats like EAN13 and UPC-A have fixed-length numeric constraints defined by their respective standards.
Does this action require a source PDF?+
No. Create Barcode generates a standalone barcode image from scratch: no source document is needed. To embed the barcode into an existing PDF, use the separate Add Barcode or QR Code to PDF action in the next Zap step.

相关模块​

获取帮助​