Ana içeriğe geç

Üst üste bindirme PDFs içinde n8n

Üst üste bindirme PDFs bir PDF4me düğüm eylemi n8n bu da birini yerleştirir PDF üst üste, ikisini aynı şekilde birleştirerek pages Bunları eklemek yerine, tasarlanmış bir antetli kağıdı oluşturulmuş içeriğin üzerine damgalamak, bir sertifika çerçevesi uygulamak veya onaylanmış bir şablonu gelen bir belgeye tek bir sayfa eklemeden yerleştirmek için kullanın.

Bu düğüm ne işe yarıyor?

PDF4me: Katman PDFs iki tane alıyor PDFs, A temel arka plan görevi gören ve katman En üstte yer alan ve her ikisinin de aynı sayfada göründüğü tek bir belge döndüren bir yapı. pagesHer dosyanın kendine özgü bir giriş türü vardır; bu nedenle temel veri, önceki bir düğümden İkili Veri olarak gelebilirken, katman da bir başka düğümden çekilir. URLBirleştirmeden farklı olarak, sayfa sayısı artmaz; bu da onu antetli kağıtlar, çerçeveler ve şablon damgaları için doğru araç haline getirir.

İlgili Blog Yazıları(1)

Kimliğinizi Doğrulama API Rica etmek

Her PDF4me düğümde n8n geçerli bir belge gerektirir Bağlantı kurmak için kimlik bilgisi. İçeriğinizi barındıran birini oluşturun veya seçin. PDF4me API Bu sayede iş akışı, yer paylaşımı isteklerini güvenli bir şekilde doğrulayabilir.

Kaçırmamanız Gereken Önemli Bilgiler

Katman birleştirme işlemi yapılmadı.
Eklemelerin birleştirilmesi pages Böylece sayım tamamlanıyor. Üst üste bindirme işlemi, her iki belgeyi de aynı yere yığıyor. pagesSayfa sayısını değiştirmeden.
İki dosya, iki bağımsız giriş türü
Temel PDF Giriş Türü ve Katmanı PDF Giriş türleri ayrı ayrı ayarlanır, bu nedenle bir dosya ikili veri olabilirken diğeri farklı bir kaynaktan gelebilir. URL.
Sıralama, görünür kalan şeyleri değiştirir.
Katman, tabanın üzerine yerleştirilir. Düz bir arka plana sahip bir katman, altındaki içeriği gizleyebilir, bu nedenle her iki sıralamayı da önce örnek bir çift üzerinde test edin.
n8n'deki PDF4me düğümü, Eylem olarak PDF'leri Üst Üste Bindirme (Overlay PDFs) olarak ayarlanmıştır; Temel PDF Giriş Türü ve Katman PDF Giriş Türü her ikisi de İkili Veri, Temel PDF İkili Alan verisi, Katman PDF İkili Alan verisi, Çıkış Dosya Adı overlayed_output.pdf ve İkili Veri Çıkış Adı verisi olarak belirlenmiştir.

PDF4me Üst üste bindirme PDFs parametreler panelinde n8nHer iki giriş türü de İkili Veri olarak ayarlanmıştır.

Üst Üste Bindirme, Birleştirme ve Filigran Karşılaştırması

Bir içeriğe daha fazla içerik eklemenin üç yolu PDFHer biri farklı bir belge üretiyor.

YaklaşmakEtkisi pagesEn uygun olan
Overlay PDFsBoth documents appear on the same pages, page count unchangedBranding that already exists as a designed PDF, such as a letterhead or certificate frame
Merge PDFsDocuments follow one another, page counts add upContent that genuinely belongs in sequence as one longer document
Add watermarkSimple text or a single image drawn onto the existing pagesA short notice such as DRAFT or CONFIDENTIAL, where no designed PDF layer exists

Üst Üste Bindirme Hangi Parametreleri İçerir? PDFs İhtiyaç?

Gerekli: İşlem, her iki giriş türü, her giriş türüne karşılık gelen kaynak alanı ve Çıkış Dosya Adı. İkili Veri Çıkış Adı ve Gelişmiş Seçenekler altındaki her şey varsayılan çalışma değerlerini taşır.

ParametreGerekliNe işe yarar?Örnek
ActionRequiredSelects the PDF4me node action to run. Choose Overlay PDFs.Overlay PDFs
Base PDF Input TypeRequiredFormat of the background PDF. Choose Binary Data, Base64 String, or URL. Independent of the layer setting.Binary Data
Layer PDF Input TypeRequiredFormat of the PDF placed on top. Choose Binary Data, Base64 String, or URL. Independent of the base setting.Binary Data
Base PDF Binary FieldConditionalName of the binary property holding the base PDF. Required when Base PDF Input Type is Binary Data.data
Layer PDF Binary FieldConditionalName of the binary property holding the layer PDF. Required when Layer PDF Input Type is Binary Data.data
Base PDF Base64 ContentConditionalBase64-encoded content of the base PDF. Required when Base PDF Input Type is Base64 String.JVBERi0xLjQK...
Layer PDF Base64 ContentConditionalBase64-encoded content of the layer PDF. Required when Layer PDF Input Type is Base64 String.JVBERi0xLjQK...
Base PDF File URLConditionalPublicly reachable HTTPS URL to the base PDF. Required when Base PDF Input Type is URL.https://example.com/base.pdf
Layer PDF File URLConditionalPublicly reachable HTTPS URL to the layer PDF. Required when Layer PDF Input Type is URL.https://example.com/letterhead.pdf
Output File NameRequiredFilename for the combined PDF. Include the .pdf extension.overlayed_output.pdf
Binary Data Output NameOptionalName of the binary property the output item exposes. Defaults to data.data
Advanced OptionsOptionalCollection for extra processing settings, added with Add Option. Leave empty unless you have a specific requirement.No properties

Çıkış Alanları

Başarılı bir koşu bir getiri sağlar. n8n birleşik öğeyi taşıyan PDF.

AlanTipİçeriğinde neler var?
Binary (data)BinaryThe combined PDF with the layer placed over the base, under Binary Data Output Name (default data).
fileNameStringGenerated filename, matching Output File Name.
mimeTypeStringMIME type of the output, always application/pdf.
fileSizeNumberSize of the combined PDF in bytes.
docNameStringDocument name reference for the processed file, matching fileName.
overlayCompletedBooleanConfirms the overlay operation finished, useful as an explicit check that the layer was applied.
layersProcessedNumberCount of PDF layers combined into the final document.
successBooleanTrue when the operation completed, false on failure. Use it to branch error handling.
messageStringHuman-readable status message, carrying success confirmation or error detail.

Katmanı Nasıl Kurarım? PDFs içinde n8n?

  1. Eklemek PDF4me senin n8n iş akışını seçin ve Üst üste bindirme PDFs aksiyon.
  2. İçinde Bağlantı kurmak için kimlik bilgisi, sizinkini seçin PDF4me kimlik bilgileri veya tıklayın Yeni Kimlik Bilgisi Oluştur ve yapıştırın API anahtar.
  3. Ayarlamak Temel PDF Giriş Türü Ve Katman PDF Giriş TürüDosyalar birbirinden bağımsızdır, bu nedenle her dosya farklı şekilde gelebilir.
  4. Örneğin, ilgili kaynak alanlarını doldurun. Temel PDF İkili Alan Ve Katman PDF İkili Alanher ikisi de varsayılan olarak data.
  5. Ayarlamak Çıktı Dosya Adı (şununla bitmeli) .pdf).
  6. Düğümü çalıştırın ve birleştirilmiş işlemi yönlendirin. PDFaltında açığa çıkarıldı İkili Veri Çıkış AdıBir sonraki adıma geçiyoruz.

Tipik Kurulumlar

İş Akışı ÖrnekleriCommon n8n workflow patterns using Overlay PDFs.
Oluşturulan belgelerdeki antetli kağıt
  1. Şablon kullanılarak, üzerinde herhangi bir marka logosu bulunmayan bir belge oluşturulmuştur.
  2. Üst üste bindirme PDFs onaylı antetli kağıdı kullanır. PDF bir yerden alındı URL katman olarak.
  3. Marka kimliği oluşturulmuş ürün, tasarımcının eli değmeden piyasaya sürülüyor.
Dinamik içerik üzerinde sertifika çerçevesi
  1. Kurs tamamlama verileri sade bir sonuç üretir. PDF Alıcının adıyla birlikte.
  2. Üst üste bindirme PDFs Tasarlanan sertifika çerçevesini üzerine yerleştirir.
  3. Tamamlanan her sertifika, alıcısına e-posta ile gönderilir.
İnceleme belgelerine onay damgası.
  1. Bir belge, iş akışındaki bir onay adımını tamamlar.
  2. Üst üste bindirme PDFs Önceden tasarlanmış ve onaylanmış bir damga katmanı uygular.
  3. Damgalı kopya kayıt sistemine işlenir.
Toplu şablon uygulaması
  1. "Loop Over Items" düğümü, gelen tedarikçi belgelerinin bulunduğu bir klasörde döngü oluşturur.
  2. Üst üste bindirme PDFs aynı katmanı uygular PDF bir URL her birine.
  3. Her belge, tutarlı bir çerçeveleme ile arşive girer.

Pratik İpuçları

Test both orderings before a batch run
Swapping which file is base and which is layer changes what stays visible. Prove it on one sample pair rather than discovering it across a hundred documents.
Design the layer with transparency in mind
A layer PDF with a solid white background will hide the base underneath. Frames, borders, and letterheads work best when the middle is genuinely empty.
Match page sizes where you can
A layer built at the same page size as the base lines up predictably. Mismatched geometry is the usual reason a stamp lands in the wrong place.
Mix input types to avoid extra nodes
Keeping a static letterhead at a URL while the base arrives as binary from the previous node saves fetching the template into the workflow separately.
Reach for merge when page count should grow
If the second document is meant to be read after the first rather than on top of it, Merge Multiple PDFs is the correct action.
Check overlayCompleted alongside success
The output carries an explicit overlay confirmation flag, which is a more specific signal than the generic success boolean alone.

Kopya Kağıdı

AlanDeğer
ActionOverlay PDFs
Base PDF Input TypeBinary Data
Layer PDF Input TypeBinary Data
Base PDF Binary Fielddata
Layer PDF Binary Fielddata
Output File Nameoverlayed_output.pdf
Binary Data Output Namedata
Advanced OptionsNo properties
CredentialsPDF4me API credential

Sıkça Sorulan Sorular

What is the difference between overlaying PDFs and merging PDFs?+
Merging appends documents so the page count adds up and the files read one after another. Overlaying places the layer PDF on top of the base PDF on the same pages, so the page count does not grow and both sets of content appear together. Use overlay for letterheads, watermarks, and template stamps, and use merge when documents should follow each other.
Which file should be the base and which should be the layer?+
The base PDF is the background, and the layer PDF is placed on top of it, following the page content model described in the ISO 32000 PDF specification. For a letterhead applied to generated content, the content is usually the base and the branded template is the layer. If the layer has a solid background it can obscure what sits beneath, so test the order both ways on a sample first.
What happens if the two PDFs have different page counts?+
The two documents do not have to be identical, but the result is easiest to predict when they match or when the layer is a single page intended to repeat as a stamp. Run one representative pair through the node and inspect the output before committing a batch, since mismatched lengths are the most common cause of a surprising result.
Can the base and layer PDFs come from different sources?+
Yes. Base PDF Input Type and Layer PDF Input Type are set independently, so the base can arrive as Binary Data from a previous node in your n8n workflow while the layer is fetched from a URL, or any other combination.
Should I use Overlay PDFs or a watermark action for branding?+
Use a watermark action when you want simple text or a single image placed on the pages. Use Overlay PDFs when your branding already exists as a full PDF, such as a designed letterhead or a pre-approved certificate frame, because it preserves the layer document exactly as designed.

İlgili Eylemler

Diğer Platformlarda Aynı Görev

Yardım Alın