跳到主要内容

创建条形码 Make

本模块的功能

PDF4me创建条形码 生成独立条形码或 QR 从任何文本或数据字符串中读取代码并将其返回。 Base64编码图像,无源 PDF无需上传文件。可从六种格式中选择,包括 QR CodeCode128, 和 DataMatrix然后将结果直接嵌入到 HTML 电子邮件, POST 把它变成一个 API或者解码并将其保存为图像文件。与“添加条形码”不同 PDF 该模块会在现有文档上加盖条形码,并独立创建条形码图像,供您在任何场景中使用。

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

验证您的身份 API 要求

每一个 PDF4me 模块 Make 需要有效 联系创建或选择一个可以容纳您的 PDF4me API 关键在于确保该方案能够安全地验证条形码生成请求。

您不容错过的重要事实

无来源 PDF 或需要文件输入
此模块仅接受文本,不接受文件、文件名或其他任何内容。 PDF 二进制格式。您提供要编码的数据和格式,模块将返回条形码图像。如果您需要将条形码嵌入到现有条形码中,请使用此模块。 PDF使用“添加条形码”功能 PDF 反而。
输出结果为 Base64不是文件缓冲区
该模块返回一个 Base64文件内容字段中包含 - 编码的图像字符串。您可以将其直接嵌入到 HTML 使用数据 URI 的电子邮件正文(src="data:image/png;base64,..."),把它交给一个 HTTP 请求、将其存储在数据库记录中,或者解码并将其作为图像文件保存到 Google 云端硬盘或 Dropbox 中。
隐藏文本仅适用于 Code 128
模块提示内容如下:“隐藏条形码下方显示的文本。(仅适用于) Code 128)。“ 为了 QR CodeDataMatrixAztecPDF417, 和 HanXin如果该开关不显示任何人类可读的文本行,则无论您将其设置为什么,该开关均无效。
在 PDF4me 创建条形码模块中,连接设置为 testuser01@pdf4me.com,条形码文本字段包含示例 PROD-2024-00456 和提示“要编码到条形码中的文本”,条形码类型下拉菜单设置为 QR 码,提示“选择要生成的条形码类型”,隐藏文本设置为“否”,提示“隐藏条形码下方显示的文本”仅适用于 Code 128。

只需输入三个参数:待编码的文本、条形码格式,以及(可选)是否隐藏下方的标签。 Code 128 条形码。

参数

必需的: 连接方式、条形码文本和条形码类型,这三项都必须提供。“隐藏文本”为可选。

范围必需的它的作用例子
ConnectionYesPDF4me API connection. Click Add and paste your API key if connecting for the first time.Your PDF4me connection
Barcode TextYesThe data to encode in the barcode: a URL, product code, order ID, or any alphanumeric string. Hint: "Text to be encoded in the Barcode."PROD-2024-00456
Barcode TypeYesFormat of the barcode to generate. Options: QR Code, Data Matrix, Code128, Aztec, PDF417, HanXin. Hint: "Select barcode type to be generated."QR Code
Hide TextNoWhether to suppress the human-readable text shown below the barcode. Options: Yes, No, Empty. Applies only to Code 128: has no effect on other formats.No

快速设置

  1. 添加 PDF4me -> 创建条形码 致你 Make 设想。
  2. 选择 联系 (或点击) 添加 用你的 API 钥匙)。
  3. 输入要编码的文本、URL 或 ID 条形码文本 场地。
  4. 选择你的 条形码类型 从下拉菜单中: QR Code 用于链接和一般数据, Code128 用于零售和运输标签。
  5. 保存并运行该方案。输出结果 File Content 字段包含一个 Base64已编码的条形码图像,可直接嵌入电子邮件中。 POST 一个 API或者另存为图像文件。

工作流程示例

工作流程示例Common Make scenario patterns using Create Barcode.
嵌入一个 QR 订单确认邮件中的代码
  1. webhook 会收到来自 Shopify 或 WooCommerce 商店的新订单。
  2. 创建条码运行,并将条码类型设置为 QR Code 条形码文本映射到订单跟踪 URL。
  3. Gmail 会发送订单确认邮件。 Base64 条形码嵌入其中 HTML 正文以内嵌图片形式呈现,无需附件。
  4. 顾客扫描 QR 用户可以直接从收件箱中获取代码来跟踪货物运输情况。
产生 Code128 新库存物品的标签
  1. 在 Google Sheets 库存登记表中添加新行会触发此场景。
  2. 创建条码运行,并将条码类型设置为 Code128 条形码文本与表格中的 SKU 对应起来。
  3. 一个 HTTP 模块 POSTBase64 条形码图像标签打印服务 API
  4. 仓库会自动为新入库商品打印实体条形码标签。
添加一个独特的 QR 在发送活动门票之前,请先将代码添加到活动门票中
  1. 在 Typeform 或 Eventbrite 上注册新活动会触发此场景。
  2. 创建条形码会生成一个 QR Code 条形码文本包含唯一的票券验证 ID。
  3. Base64 图像被解码并插入到票券中 PDF 通过文档生成模块生成模板。
  4. Gmail 会发送带有可扫描码的个性化电子票。 QR 向与会者发送代码。

常见问题解答

Does this module need a source PDF or any file input?+
No. This module takes only text: you provide what to encode and which format to use. There is no file input of any kind. If you want the barcode embedded inside an existing PDF document, use the Add Barcode to PDF module instead.
What format does the output come in?+
The module returns a Base64-encoded image string in the File Content output field. You can embed it in an HTML email as a data URI, pass it directly to an HTTP request, store it in a database record, or decode it and save it as a PNG or JPEG image file in cloud storage.
Which barcode formats can I generate?+
Six formats are available via the Barcode Type dropdown: QR Code, Data Matrix, Code128, Aztec, PDF417, and HanXin. QR Code is the most widely scanned by mobile devices. Code128 is the standard for retail and shipping linear barcodes. DataMatrix is compact and suited for small labels. HanXin follows the Chinese national 2D barcode standard.
Does the Hide Text option work for all barcode types?+
No. The module hint states it applies only to Code 128. For QR Code, Data Matrix, Aztec, PDF417, and HanXin: which have no human-readable text line beneath them: the setting has no effect regardless of what value you choose.
How do I get the barcode into a PDF after generating it?+
Use the Add Barcode to PDF module in a subsequent step: it accepts an existing PDF and stamps a barcode directly onto the pages you specify. Alternatively, decode the Base64 string to an image file and insert it into a Word or HTML document template before converting to PDF.

相关模块

获取帮助