Passa al contenuto principale

Aggiungi margine a PDF In n8n

Aggiungi margine a PDF è un PDF4me azione del nodo in n8n che aggiunge margini sinistro, destro, superiore e inferiore a un PDF, ciascuno misurato in millimetri. Utilizzalo per creare spazio di rilegatura per report stampati, lasciare spazio per annotazioni su dispense o allineare automaticamente i documenti in arrivo a uno standard di impaginazione aziendale.

Cosa fa questo nodo

PDF4me: Aggiungi margine a PDF prende un PDF da Binary Data, un Base64 String, o un URL e restituisce un nuovo file con i quattro valori di margine specificati applicati in millimetri. Ogni lato viene impostato in modo indipendente, quindi un margine di rilegatura asimmetrico corrisponde semplicemente a un valore maggiore sul lato sinistro. Poiché viene eseguito come passaggio del flusso di lavoro, lo stesso standard di margine può essere applicato a ogni documento ricevuto senza che nessuno debba aprire un editor desktop.

Articoli correlati del blog
Non ci sono ancora post sul blog dedicati a questa funzionalità — in arrivo a breve.
Nel frattempo, dai un'occhiata al blog di PDF4me per trovare tutorial e procedure operative su tutte le piattaforme.
Visita il blog

Autenticazione del tuo API Richiesta

Ogni PDF4me nodo in n8n richiede un valido Credenziali per connettersi con. Crea o selezionane uno che contenga il tuo PDF4me API chiave affinché il flusso di lavoro possa autenticare in modo sicuro le richieste di margine.

Informazioni importanti da non perdere

Ogni valore è espresso in millimetri
I campi sono letteralmente etichettati (Mm). Se le specifiche di stampa sono in pollici, convertile prima di inserirle: un pollice equivale a 25,4 mm.
Tutti e quattro i lati sono indipendenti
Sinistra, destra, alto e basso sono campi separati, quindi un margine di rilegatura asimmetrico richiede solo un numero sinistro più grande.
Controllare un file prima di procedere alla stampa.
L'aspetto del risultato dipende dalla geometria della pagina di origine, quindi è consigliabile eseguire una prova su un documento rappresentativo e verificarne l'output prima di inviare un lotto in stampa.
Nodo PDF4me in n8n impostato su Azione Aggiungi margine al PDF, Tipo di dati di input Dati binari, Campo binario di input dati, Nome file di output document_with_margins.pdf, Nome documento document.pdf e Campi Margine sinistro, destro, superiore, inferiore in millimetri

PDF4me Aggiungi margine a PDF pannello dei parametri in n8n

Margini automatizzati (n8n) contro un desktop PDF Redattore

La maggior parte dei risultati di questa ricerca sono editor che consentono di lavorare su un file alla volta. La differenza sta nel luogo in cui avviene il lavoro.

ApproccioGrillettoMigliore vestibilità
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

A quali parametri aggiunge il margine? PDF Bisogno?

Necessario: Azione, Tipo di dati di input, il campo corrispondente a quel tipo di input, Nome del file di output, Nome del documento e tutti e quattro i valori dei margini. Nome output dati binari e profili personalizzati hanno valori predefiniti funzionanti.

ParametroNecessarioCosa faEsempio
ActionRequiredSelects the PDF4me node action to run. Choose Add Margin To PDF.Add Margin To PDF
Input Data TypeRequiredFormat of the source PDF input. Choose Binary Data (from a previous node), Base64 String, or URL.Binary Data
Input Binary FieldConditionalName of the binary property on the incoming n8n item that holds the PDF. Required when Input Data Type is Binary Data. Defaults to data.data
Base64 Document ContentConditionalBase64-encoded content of the source PDF. Required when Input Data Type is Base64 String.JVBERi0xLjQK...
File URLConditionalPublicly reachable HTTPS URL to the source PDF. Required when Input Data Type is URL.https://example.com/report.pdf
Output File NameRequiredFilename for the PDF returned with margins applied. Include the .pdf extension.document_with_margins.pdf
Document NameRequiredFilename of the source PDF, used for reference and tracking on the request.document.pdf
Left Margin (Mm)RequiredLeft margin width in millimetres. Set this larger than the other sides when you need binding space.20
Right Margin (Mm)RequiredRight margin width in millimetres.20
Top Margin (Mm)RequiredTop margin height in millimetres. Increase it when a printed header or letterhead needs clearance.25
Bottom Margin (Mm)RequiredBottom margin height in millimetres. Increase it when a footer or page number needs clearance.25
Binary Data Output NameOptionalName of the binary property the output item exposes. Defaults to data.data
Custom ProfilesOptionalAdvanced Options field for extra processing settings, supplied in a JSON-like format. Leave blank unless you have a specific profile to apply.{ "preserveContentQuality": true }

Campi di output

Una corsa di successo restituisce uno n8n oggetto che trasporta il PDF con l'applicazione dei margini.

CampoTipoCosa contiene
Binary (data)BinaryThe PDF with the four margin values applied, under Binary Data Output Name (default data).
fileNameStringGenerated filename, matching Output File Name.
mimeTypeStringMIME type of the output, always application/pdf.
fileSizeNumberSize of the returned PDF in bytes.
pageCountNumberNumber of pages processed with margin adjustments.
successBooleanTrue when the margin operation completed, false on failure. Use it to branch error handling.
messageStringHuman-readable status message, carrying success confirmation or error detail.

Come impostare Aggiungi margine a PDF In n8n?

  1. Aggiungere PDF4me al tuo n8n flusso di lavoro e scegliere il Aggiungi margine a PDF azione.
  2. In Credenziali per connettersi con, seleziona il tuo PDF4me credenziali o clicca Crea nuove credenziali e incolla il tuo API chiave.
  3. Impostato Tipo di dati di input A Dati binari (predefinito), Base64 String, O URL e fornire la fonte corrispondente PDF campo.
  4. Inserisci Margine sinistro (mm), Margine destro (mm), Margine superiore (mm), E Margine inferiore (mm) in millimetri.
  5. Impostato Nome del file di output (deve terminare in .pdf) E Nome reale per il file sorgente.
  6. Esegui il nodo e instrada il risultato PDF al passaggio successivo, come l'archiviazione, la posta elettronica o una coda di stampa.

Configurazioni tipiche

Esempi di flusso di lavoroCommon n8n workflow patterns using Add Margin to PDF.
Margine di rilegatura per i report stampati
  1. Un report programmato viene generato come un PDF durante la notte.
  2. Aggiungi margine a PDF Applica un ampio margine sinistro e valori più ristretti a destra, in alto e in basso.
  3. Il risultato viene inviato alla coda di stampa con spazio per la rilegatura a spirale o a pettine.
Spazio per annotazioni sui fogli di lavoro.
  1. Il materiale formativo viene caricato in una cartella condivisa.
  2. Aggiungi margine a PDF allarga il margine destro in modo che i lettori abbiano spazio per prendere appunti.
  3. La copia annotata viene distribuita ai partecipanti.
Standard di planimetria della casa nei file in arrivo
  1. Un webhook riceve PDFs da un fornitore esterno con layout incoerenti.
  2. Aggiungi margine a PDF applica gli stessi quattro valori a ogni file.
  3. I documenti vengono inseriti nell'archivio con una presentazione uniforme delle pagine.
Margine e poi numeri di pagina
  1. Un documento unificato viene creato a partire da diverse fonti.
  2. Aggiungi margine a PDF crea prima lo spazio libero inferiore.
  3. Aggiungi pagina Number A PDF quindi inserisce la numerazione all'interno del nuovo spazio del piè di pagina.

Consigli pratici

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.

Foglio riassuntivo

CampoValore
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

Domande frequenti

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.

Azioni correlate

Stessa attività su altre piattaforme

Richiedi assistenza