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

余白を追加 PDF で n8n

余白を追加 PDF は PDF4me ノードアクション n8n 左、右、上、下の余白を追加する PDFそれぞれミリメートル単位で計測されます。印刷されたレポートの綴じ込みスペースを作成したり、配布資料に注釈を書き込むためのスペースを確保したり、受信した文書を社内レイアウトの標準に自動的に合わせたりするのに使用できます。

このノードの機能

PDF4me: 余白を追加する PDF 取る PDF バイナリデータから、 Base64 Stringまたは URL 指定した4つの余白値をミリメートル単位で適用した新しいファイルを返します。各辺は独立して設定できるため、非対称の綴じ込み余白は左側の値を大きくするだけで済みます。ワークフローのステップとして実行されるため、デスクトップエディタを開くことなく、到着するすべてのドキュメントに同じ余白基準を適用できます。

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

認証 API リクエスト​

毎 PDF4me ノード n8n 有効な 接続するための認証情報. 作成または選択して、 PDF4me API ワークフローがマージン要求を安全に認証できるようにするためのキー。

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

すべての値はミリメートル単位です
入力欄には「(Mm)」と明記されています。印刷仕様がインチ単位の場合は、入力前に変換してください。1インチは25.4mmです。
四方すべてが独立している
左、右、上、下はそれぞれ独立したフィールドなので、非対称の綴じマージンを実現するには、左側の数値を大きくするだけで済みます。
印刷前に1つのファイルを校正する
結果の見た目は元のページの形状によって異なるため、印刷バッチを送信する前に、代表的なドキュメントで一度処理を行い、出力結果を確認してください。
n8n の PDF4me ノードは、アクションを「PDF に余白を追加」、入力データタイプを「バイナリデータ」、入力フィールドを「バイナリデータ」、出力ファイル名を「document_with_margins.pdf」、ドキュメント名を「document.pdf」、左、右、上、下の余白フィールドをミリメートル単位で設定します。

PDF4me 余白を追加 PDF パラメーターパネル n8n

自動マージン(n8nデスクトップとの比較 PDF 編集者​

この検索結果のほとんどは、一度に1つのファイルしか編集できないエディタです。違いは、作業が行われる場所にあります。

アプローチトリガー最適なフィット感
Desktop editor or online margin toolA person opens and adjusts one file by handA single document you are already working on
PDF4me Add Margin To PDF in n8nA generated report, an upload, or a scheduled batchApplying one house margin standard to every document that arrives, unattended

マージンを追加するパラメータは何ですか? PDF 必要?​

必須: アクション、入力データタイプ、その入力タイプに一致するフィールド、出力ファイル名、ドキュメント名、および4つのマージン値すべて。バイナリデータ出力名とカスタムプロファイルには、動作するデフォルト値が含まれています。

パラメータ必須その機能例
Input Data TypeRequiredChoose how to provide the PDF file to add margins to. Options: Binary Data, Base64 String, URL. Default is `Binary Data`.Binary Data
Input Binary FieldConditionalName of the binary property that contains the PDF file. Shown when Input Data Type is Binary Data. Default is `data`.data
Base64 PDF ContentConditionalBase64 encoded PDF document content. Shown when Input Data Type is Base64 String.JVBERi0xLjQK...
PDF URLConditionalURL to the PDF file to add margins to. Shown when Input Data Type is URL.
Output File NameOptionalName for the output PDF file with margins. Default is `document_with_margins.pdf`.document_with_margins.pdf
Document NameOptionalName of the source PDF file for reference. Default is `document.pdf`.document.pdf
Left Margin (Mm)OptionalLeft margin in millimeters (0-100). Default is `20`.20
Right Margin (Mm)OptionalRight margin in millimeters (0-100). Default is `20`.20
Top Margin (Mm)OptionalTop margin in millimeters (0-100). Default is `25`.25
Bottom Margin (Mm)OptionalBottom margin in millimeters (0-100). Default is `25`.25
Advanced OptionsOptionalOptional settings, collapsed behind Add Option.Add Option
Custom ProfilesOptionalUse "JSON" to adjust custom properties. Review Profiles at https://dev.pdf4me.com/apiv2/documentation/ to set extra options for API calls.{ "preserveContentQuality": true }
Binary Data Output NameOptionalCustom name for the binary data in n8n output. Default is `data`.data

出力フィールド​

成功したランは1 n8n アイテム PDF マージンを適用した状態。

出力​

ノードが返すフィールド。

分野タイプ内容物
fileNameStringOutput File Name; `.pdf` is set as extension when it does not end in .pdf.
mimeTypeStringMIME type of the resulting file, for example `application/pdf`.
fileSizeNumberSize of the resulting file in bytes.
successBooleanTrue when the operation succeeded.
messageStringStatus message, `Margins added successfully`.
dataBinaryThe PDF with the added margins.

余白を追加するにはどうすればいいですか? PDF で n8n?​

  1. 追加 PDF4me あなたの n8n ワークフローを選択し、 余白を追加 PDF アクション。
  2. で 接続するための認証情報選択してください PDF4me 認証情報またはクリック 新しい認証情報を作成する そしてあなたの API 鍵。
  3. セット 入力データタイプ に バイナリデータ (デフォルト)、 Base64 String、 または URL 対応するソースを提供する PDF 分野。
  4. 入力 左余白(mm)、 右余白(mm)、 上部余白(mm)、 そして 下部余白(mm) ミリメートル単位。
  5. セット 出力ファイル名 (必ず .pdf) そして 文書名 ソースファイルの場合。
  6. ノードを実行し、返されたデータをルーティングします。 PDF ストレージ、メール、印刷キューなど、次のステップに進みます。

典型的な構成​

ワークフローの例Common n8n workflow patterns using Add Margin to PDF.
印刷レポートの綴じ余白
  1. スケジュールされたレポートは次のように生成されます PDF 一晩中。
  2. 余白を追加 PDF 左余白を広くし、右、上、下の余白を狭く設定します。
  3. 結果は、スパイラル綴じまたはコーム綴じ用の余裕を残した状態で印刷キューに送られます。
配布資料への注釈スペース
  1. 研修資料は共有フォルダにアップロードされます。
  2. 余白を追加 PDF 読者がメモを書き込めるように、右側の余白を広げます。
  3. 注釈付きの原稿が参加者に配布される。
受信ファイルにおける住宅レイアウトの標準
  1. ウェブフックが受信する PDFs レイアウトに一貫性のない外部サプライヤーからのもの。
  2. 余白を追加 PDF すべてのファイルに同じ4つの値を適用します。
  3. 文書は統一されたページ形式でアーカイブに収蔵される。
余白、次にページ番号
  1. 統合文書は、複数の情報源から構成される。
  2. 余白を追加 PDF まず底部のクリアランスを確保します。
  3. ページを追加 Number に PDF そして、新しいフッタースペース内に番号を配置します。

実践的なヒント​

Convert inches before you type
The fields only accept millimetres. A one inch margin is 25.4 and a half inch is 12.7, so convert a print spec once and reuse the numbers.
Add margin before adding page numbers
Creating the bottom clearance first gives a page number or footer stamp somewhere clean to sit, rather than crowding existing content.
Proof a representative file, not the simplest one
Pick a document with dense edge-to-edge content for the test run, since that is where a margin change is most visible.
Use an asymmetric left value for binding
Anything that will be bound, punched, or stapled needs more room on the binding edge than on the outer edge.
Split first if pages need different margins
The values apply across the document, so a mixed layout needs a split, per-part margin run, and merge back together.
Branch on the success field
Test the returned success boolean before sending the file onward so a failed run raises an alert instead of quietly forwarding the original.

チートシート​

分野価値
ActionAdd Margin To PDF
Input Data TypeBinary Data
Input Binary Fielddata
Output File Namedocument_with_margins.pdf
Document Namedocument.pdf
Left / Right Margin (Mm)20 / 20
Top / Bottom Margin (Mm)25 / 25
Binary Data Output Namedata
CredentialsPDF4me API credential

よくある質問​

What unit are the PDF margin values in?+
All four margin fields are measured in millimetres, which is why they are labelled Left Margin (Mm), Right Margin (Mm), Top Margin (Mm), and Bottom Margin (Mm). If your source specification is in inches, convert first: one inch is 25.4 mm, so a one inch margin is entered as 25.4.
Does adding a margin shrink the page content or make the page bigger?+
Adding margin space changes the relationship between the content area and the page edge, which in PDF terms means the boundaries described in the ISO 32000 PDF specification. Run the node once on a representative file and inspect the output before committing a print run, because the visual result depends on the source page geometry.
Can I set a different margin on only one side?+
Yes. The four margin fields are independent, so you can set a wide binding margin on the left and leave the other three small. A common binding setup is a larger left value with matching smaller right, top, and bottom values.
Do the margins apply to every page in the document?+
The margin values you supply are applied across the document rather than to a single selected page. If different pages need different treatment, split the PDF first, run Add Margin to PDF on each part with its own settings, then merge the results back together.
Why would I automate margins instead of setting them in Acrobat?+
A desktop tool is fine for one file you already have open. Automation matters when margins must be applied consistently to every document that arrives, for example every report generated overnight or every file dropped into a print folder. In an n8n workflow that becomes a single step nobody has to remember.

関連アクション​

他のプラットフォームでの同じタスク​

ヘルプが必要な場合​