メインコンテンツへスキップ

バーコードを追加する PDF で Make

このモジュールの機能

PDF4meバーコードを追加する PDF バーコードを挿入または QR 既存の特定のページの正確な位置にあるコード PDF バーコードが埋め込まれた新しいドキュメントが返されます。6つの形式から選択してください。 QR Code、 Data Matrix、 Code128、 Aztec、 HanXin、 そして PDF417位置合わせアンカーとマージンオフセットを使用して、バーコードをミリメートル単位の精度で配置します。 Make シナリオには自動的にバーコードが付与され、手動での編集は不要です。

関連ブログ記事
この機能に関するブログ記事はまだありません。近日公開予定です。
その間、PDF4me ブログを閲覧して、あらゆるプラットフォームのチュートリアルやワークフローをご覧ください。
ブログをご覧ください →

認証 API リクエスト​

毎 PDF4me モジュール Make 有効な 繋がり. 作成または選択して、 PDF4me API シナリオがバーコード挿入要求を安全に認証できるようにするためのキー。

見逃してはならない重要な事実​

両方の位置合わせ軸が必要です
モジュールでは、垂直方向の配置と水平方向の配置の両方が必須項目としてマークされています。両方とも設定する必要があり、これらによってバーコードがページの隅または端に固定されます。その後、余白フィールドによって、指定したミリメートル数だけ、その固定位置からバーコードが内側に移動します。
高さと幅は1000mmを超えてはならない。
どちらの寸法も0~1000mmの整数値を指定できます。標準のA4サイズ(210×297mm)の場合、両方の寸法をこのサイズ以下に抑えてください。そうしないとバーコードがページからはみ出してしまいます。どちらのフィールドもオプションなので、特定のバーコードサイズが必要な場合は明示的に設定してください。
テキストを非表示にするのは、 Code 128
モジュール内のヒントテキストは正確には「バーコードの下のテキストを非表示にします。適用対象は Code 128。" のために QR Code、 Data Matrix、 Aztec、 PDF417、 そして HanXin この切り替え機能は効果がありません。これらのフォーマットの下には、人間が読めるテキスト行は表示されません。
PDF4meの「PDFにバーコードを追加」モジュールで、接続設定をTestUser01、ファイル設定をステップ1でマッピングしたファイル名とPDFドキュメントフィールドを含むマップ、バーコードタイプ設定をQRコード、バーコードテキストをORDER-2024-00123、高さ50mm、幅50mm、ページ設定をすべて、垂直方向の配置を下、水平方向の配置を右、水平方向の余白を10、垂直方向の余白を15、透明度を1、テキストの非表示を「いいえ」に設定します。

ファイルは次のように設定されています Map ファイル名を渡して PDF 以前のモジュールからのバイナリファイル。バーコードタイプ、バーコードテキスト、ページ、垂直方向の配置、水平方向の配置はすべて必須項目です。

パラメータ​

必須: 接続、ファイル(ファイル名 + PDF 使用時に文書化 Map)、バーコードの種類、バーコードテキスト、ページ、垂直方向の配置、水平方向の配置、これらすべてをモジュールの実行のために指定する必要があります。

パラメータ必須その機能例
ConnectionRequiredPDF4me API connection. Click Add and paste your API key if connecting for the first time.Your PDF4me connection
FileRequiredSource PDF. Choose Dropbox - Download a File for a direct Dropbox trigger, or Map to supply filename and binary from a prior module.Map
File NameRequiredOriginal filename of the source PDF including .pdf extension. Map it directly when File is set to Map. Map it from the prior module's file name output.1. File Name
PDF DocumentRequiredBinary content of the source PDF. Map it directly when File is set to Map. Map it from the prior module's data output.1. Data
Barcode TypeRequiredFormat of the barcode to insert. Options: QR Code, Data Matrix, Code128, Aztec, HanXin, PDF417.QR Code
Barcode TextRequiredThe data to encode inside the barcode: an order ID, URL, asset number, or any alphanumeric string.ORDER-2024-00123
Barcode Height in mmOptionalVertical size of the barcode in millimeters. Accepts a whole number from 0 to 1000.50
Barcode Width in mmOptionalHorizontal size of the barcode in millimeters. Accepts a whole number from 0 to 1000.50
PagesRequiredPages where the barcode is added. Enter all for every page, or specific page numbers. Pre-filled with all.all
Vertical AlignmentRequiredVertical anchor point on the page: Top, Middle, or Bottom. Combined with Vertical Margin for exact placement.Bottom
Horizontal AlignmentRequiredHorizontal anchor point on the page: Left, Center, or Right. Combined with Horizontal Margin for exact placement.Right
Horizontal Margin in mmOptionalDistance in mm the barcode is offset inward from the Horizontal Alignment edge. Defaults to 0.10
Vertical Margin in mmOptionalDistance in mm the barcode is offset inward from the Vertical Alignment edge. Defaults to 0.15
TransparencyOptionalOpacity of the barcode, as a whole number: 0 is fully transparent and 1 is fully opaque. Defaults to 1.1
Hide TextOptionalControls whether human-readable text appears below the barcode. Applies only to Code 128. Defaults to No.No

出力​

このモジュールは2つのフィールドを返します。どちらのフィールドも、シナリオ内の後続のモジュールでマッピングに使用できます。 PDF4me リクエストをバックグラウンドジョブとして処理し、 Make 次のモジュールを実行する前に、結果を待ちます。

分野タイプ内容物
NameFile nameFile name of the resulting PDF. Map it together with Document into the next module, for example to upload or email the file.
DocumentFile (binary data)Content (binary data) of the resulting PDF with the barcode embedded. Map it together with Name into the next module.

クイックセットアップ​

  1. 追加 PDF4me -> バーコードを追加する PDF あなたの Make シナリオ。
  2. 選択 繋がり (またはクリック) 追加 あなたと一緒に作成する API 鍵)。
  3. セット ファイル Dropboxへ - ファイルをダウンロードまたは Map: 使用する場合 Map、 接続する ファイル名 そして PDF 書類 前のステップから。
  4. 選ぶ バーコードの種類 そして入力する バーコードテキスト エンコードする。
  5. セット ページ すべてに表示するか、個別のページ番号を指定するか。
  6. 選ぶ 垂直方向の配置 そして 水平方向の配置、 それから 保存 そしてシナリオを実行します。出力には以下が含まれます。 Name そして Document: その PDF バーコードが埋め込まれています。

ワークフローの例​

ワークフローの例Common Make scenario patterns using Add Barcode to PDF.
注文追跡を追加する QR codes 請求書へ
  1. Dropboxは新しい請求書が届いたときにトリガーされます PDF 「請求書」フォルダに保存されます。
  2. バーコードを追加する PDF バーコードタイプを設定して実行します QR Code、バーコードテキストは注文IDからマッピングされ、ページはすべてに設定され、垂直方向の配置は下、水平方向の配置は右です。
  3. 返された PDF Dropboxの「処理済み請求書」フォルダにアップロードされます。
  4. Slackは、バーコード付きの請求書をスキャンする準備ができたことを配送チームに通知します。
機器記録に資産タグを押印する
  1. Googleスプレッドシート(資産台帳)に新しい行が追加されると、このシナリオがトリガーされます。
  2. Googleドライブが空白の資産記録をダウンロードします PDF テンプレート。
  3. バーコードを追加する PDF を挿入する Code128 1ページ目の左上隅に資産IDが記載されたバーコードがあります。
  4. バーコード付き PDF アップロード先 SharePoint 該当する部署のフォルダ内。
契約参照バーコード付き月次アーカイブスナップショット
  1. 毎月1日にスケジュールされたトリガーが実行されます。
  2. Googleドライブが有効な契約書をダウンロードします PDF。
  3. バーコードを追加する PDF を挿入する Data Matrix 右下隅に契約参照番号が記載されたバーコード(コンパクト、高密度)。
  4. バーコード付きのスナップショットは「アーカイブ」フォルダに保存されます。アーカイブされた各バージョンには、元のレコードにリンクするスキャン可能な参照情報が含まれています。

よくある質問​

What barcode formats does this module support?+
Six formats: QR Code, Data Matrix, Code128, Aztec, HanXin (Chinese national standard 2D code), and PDF417. Select the format from the Barcode Type dropdown. QR Code suits links and general data; Code128 is widely used for linear shipping and retail barcodes; Data Matrix is compact enough for small labels.
How do Vertical Alignment and Horizontal Alignment work together?+
The two alignment fields act as an anchor. Setting Vertical Alignment to Bottom and Horizontal Alignment to Right anchors the barcode to the bottom-right corner of the page. The Vertical Margin and Horizontal Margin fields then push it inward from that corner by the number of millimeters you enter: so Horizontal Margin 10 and Vertical Margin 15 places it 10mm from the right edge and 15mm up from the bottom.
What does the Pages field accept?+
The field accepts all to stamp every page, or specific page numbers, and is pre-filled with all. The module hint reads "Pages in which barcode needs to be added." Using all is the most common choice for document-level stamps like tracking codes.
Does Hide Text work for all barcode types?+
No. The module hint states explicitly: "Hides text below barcode. Applicable only for Code 128." For QR Code, Data Matrix, Aztec, PDF417, and HanXin the field has no effect because those formats do not display a human-readable text line.
Is the original source PDF modified?+
No. PDF4me processes a copy and returns a new document in the Document output field. Your source file in Dropbox, Google Drive, or any other location is completely untouched.

関連モジュール​

ヘルプが必要な場合​