Ana içeriğe geç

Ek dosyaya ekle PDF içinde n8n

Ek dosyaya ekle PDF bir PDF4me düğüm eylemi n8n bir veya daha fazla dosyayı içine yerleştiren PDFYani bir elektronik tablo, resim, arşiv veya ikinci bir dosya. PDF Belgeyle birlikte değil, onunla birlikte seyahat eder. Destekleyici kanıtları bir sözleşmeyle birlikte paketlemek, ham verileri bir raporun yanına göndermek veya sertifikaları bir uyumluluk dosyasıyla birlikte paketlemek için kullanın.

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

PDF4me: Ek Dosya Ekle PDF ev sahibini alır PDF İkili Verilerden, bir Base64 Stringveya bir URLArdından, listelediğiniz her dosyayı altına yerleştirir. Ekler İçinde ayrı bir nesne olarak yer alır. Birleştirmeden farklı olarak, eklenen dosyalar kendi biçimlerini ve dosya adlarını korur ve alıcı tarafından ayrı ayrı açılabilir veya kaydedilebilir. Her ek farklı bir kaynaktan gelebilir, bu nedenle önceki bir düğümden gelen ikili bir dosya ve bir sonraki düğümden alınan bir dosya olabilir. URL Aynı çalıştırma içine yerleştirilebilirler.

İlgili Blog Yazıları
Bu özellik için henüz bir blog yazısı yok — yakında yayınlanacak.
Bu arada, her platforma yönelik eğitimler ve iş akışları için PDF4me bloguna göz atın.
Blogu ziyaret edin

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ışı, ek dosya isteklerini güvenli bir şekilde doğrulayabilir.

Kaçırmamanız Gereken Önemli Bilgiler

Ekleme, birleştirme anlamına gelmez.
Ekli dosya, okuyucunun tekrar kaydedebileceği ayrı bir nesne olarak kalır. Birleştirme ise sayfa içeriğini tek bir sürekli belge haline getirir.
Ekler, tekrarlanabilir bir koleksiyondur.
Tıklamak Ek dosya ekle Dosya başına bir kez. Her giriş kendi içerik türüne, adına ve kaynağına sahiptir, bu nedenle ikili, base64 ve diğer formatları karıştırabilirsiniz. URL tek seferde kaynakları bir araya getirmek.
Dosya uzantısı önemlidir.
Ek dosya adı, okuyucu uygulamaya çıkarılan dosyayı nasıl açacağını söyler; bu nedenle her zaman .xlsx veya .zip gibi doğru uzantıyı ekleyin.
n8n'deki PDF4me düğümü, Eylem olarak PDF'ye Ek Ekle, Giriş Veri Türü İkili Veri, Giriş İkili Alan veri, Çıkış Dosya Adı document_with_attachments.pdf, Belge Adı document.pdf olarak ayarlanmış ve Ek Ekle düğmesi bulunan boş bir Ekler koleksiyonuna sahip.

PDF4me Ek Dosya Ekle PDF parametreler panelinde n8nİlk giriş eklenmeden önce Ekler koleksiyonu boştur.

Ekleme, Birleştirme ve Fermuarla Birleştirme

Birden fazla dosyayı tek bir dosya olarak göndermenin, alıcı için farklı sonuçlar doğuracak üç yolu.

YaklaşmakAlıcının elde ettiği şeyEn uygun olan
Add Attachment to PDFOne PDF that opens normally, with the extra files available in the attachments panelSupporting material that must stay in its original format, such as a spreadsheet or an archive
Merge PDFsOne continuous document where all pages read in sequenceContent that genuinely belongs together as a single readable document
Zip the files togetherAn archive that must be unpacked before anything can be readBulk transfer where nothing needs to be readable without extracting first

Ek dosya ekleme işlemi hangi parametrelere uygulanır? PDF İhtiyaç?

Gerekli: İşlem, Giriş Veri Türü, bu giriş türüyle eşleşen alan, Çıkış Dosya Adı, Belge Adı ve Ekler altında en az bir giriş. İkili Veri Çıkış Adı ve Özel Profiller varsayılan çalışma değerlerini içerir.

ParametreGerekliNe işe yarar?Örnek
ActionRequiredSelects the PDF4me node action to run. Choose Add Attachment To PDF.Add Attachment To PDF
Input Data TypeRequiredFormat of the host 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 host PDF. Required when Input Data Type is Binary Data. Defaults to data.data
Base64 Document ContentConditionalBase64-encoded content of the host PDF. Required when Input Data Type is Base64 String.JVBERi0xLjQK...
File URLConditionalPublicly reachable HTTPS URL to the host PDF. Required when Input Data Type is URL.https://example.com/contract.pdf
Output File NameRequiredFilename for the PDF returned with the files embedded. Include the .pdf extension.document_with_attachments.pdf
Document NameRequiredFilename of the source PDF, used for reference and tracking on the request.document.pdf
AttachmentsRequiredCollection of files to embed. Click Add Attachment once per file, then fill in the per-attachment fields listed below.One entry per embedded file
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.{ "preserveMetadata": true }

Her Ek Girişinin İçindeki Alanlar

Oluşturduğunuz her girişle ilgili olarak Ek dosya ekle Kendi alanlarını ortaya koyar.

ParametreGerekliNe işe yarar?Örnek
Attachment Content TypeRequiredHow this particular attachment is supplied. Choose Binary Data, Base64 Content, or File URL. Each entry can differ.Binary Data
Attachment NameRequiredFilename the embedded file will carry inside the PDF. Include the correct extension so readers can open it after extraction.supporting_data.xlsx
Binary Field NameConditionalName of the binary property holding this attachment. Required when Attachment Content Type is Binary Data.data
Base64 ContentConditionalBase64-encoded content of this attachment. Required when Attachment Content Type is Base64 Content.SGVsbG8gV29ybGQ=
File URLConditionalPublicly reachable HTTPS URL to this attachment. Required when Attachment Content Type is File URL.https://example.com/certificate.pdf

Çıkış Alanları

Başarılı bir koşu bir getiri sağlar. n8n eşyayı taşıyan PDF Gömülü dosyalarıyla birlikte.

AlanTipİçeriğinde neler var?
Binary (data)BinaryThe PDF with all listed files embedded, 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, including the embedded files.
attachmentCountNumberNumber of attachments successfully embedded. Compare it against your expected count to catch a silently skipped file.
successBooleanTrue when the attachment operation completed, false on failure. Use it to branch error handling.
messageStringHuman-readable status message, carrying success confirmation or error detail.

Ek dosya ekleme işlemini nasıl ayarlayabilirim? PDF içinde n8n?

  1. Eklemek PDF4me senin n8n iş akışını seçin ve Ek Dosya Ekle PDF 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 Giriş Veri Türü ile İkili Veri (varsayılan), Base64 String, veya URL ve uygun ev sahibini sağlayın PDF alan.
  4. Altında Ekler, tıklamak Ek dosya ekle Her dosya için bir kez, ardından ayarını yapın. Ek İçerik Türü, Ek Adıve eşleşen kaynak alanı.
  5. Ayarlamak Çıktı Dosya Adı (şununla bitmeli) .pdf) Ve Belge Adı Kaynak dosya için.
  6. Düğümü çalıştırın ve döndürülen sonucu yönlendirin. PDF ileriye, kontrol et attachmentCount Beklediğiniz dosya sayısına karşılık.

Tipik Kurulumlar

İş Akışı ÖrnekleriCommon n8n workflow patterns using Add Attachment to PDF.
Fatura ve ek belgeler
  1. Bir fatura PDF Faturalama verilerinden oluşturulmuştur.
  2. Ek dosyaya ekle PDF İlgili makbuzları ve onay kaydını içerir.
  3. Dosyalardan biri, tüm kanıt iziyle birlikte muhasebe departmanına gönderilir.
Kaynak verileriyle birlikte rapor
  1. Planlanmış bir analiz raporu şu amaçla oluşturulur: PDF.
  2. Ek dosyaya ekle PDF altta yatanı yerleştirir CSV Adlandırılmış bir ek olarak dışa aktarın.
  3. Okuyucular anlatıyı anlıyor ve istedikleri zaman doğruluğunu teyit etmek için ham sayıları çıkarabiliyorlar.
Ekleriyle birlikte sözleşme
  1. İmza talebi üzerine bir şablon kullanılarak sözleşme oluşturulur.
  2. Ek dosyaya ekle PDF Sertifikaları ve programları şuradan çekerek yerleştirir: URLs.
  3. Karşı taraf imzalamak üzere tek ve eksiksiz bir belge alır.
Denetim için uyumluluk paketi
  1. "Öğeler Üzerinde Döngü" düğümü, bir dosyalama dönemi için kanıt dosyalarını toplar.
  2. Ek dosyaya ekle PDF Her birini dosyalama belgesinin içine yerleştirir.
  3. Paket arşivlendi ve Ek Dosyayı Çıkarma işlemi gerçekleştirildi. PDF İsteğiniz üzerine daha sonra paketinden çıkarabiliriz.

Pratik İpuçları

Always include the file extension in Attachment Name
The extension is what tells a reader application how to open the extracted file. A name without one leaves the recipient guessing.
Check attachmentCount against what you sent
Comparing the returned count to the number of entries you configured is the quickest way to catch a file that failed to embed.
Mention the attachments in the document body
Not every viewer surfaces the attachments panel, so a line of visible text telling the reader that supporting files are embedded prevents them being missed.
Mix sources freely within one run
Each entry has its own content type, so a binary file from an earlier node and a URL-hosted certificate can be embedded together.
Attach when format must survive, merge when it should not
A spreadsheet stays usable as a spreadsheet only if it is attached. Merging would flatten it into page content.
Watch the total size on outbound email
Embedded files count toward the PDF size, so a bundle of large attachments can push the document past a mail gateway limit.

Kopya Kağıdı

AlanDeğer
ActionAdd Attachment To PDF
Input Data TypeBinary Data
Input Binary Fielddata
Output File Namedocument_with_attachments.pdf
Document Namedocument.pdf
AttachmentsOne entry per file, added with Add Attachment
Attachment Content TypeBinary Data
Attachment Namesupporting_data.xlsx
Binary Data Output Namedata
CredentialsPDF4me API credential

Sıkça Sorulan Sorular

What is the difference between attaching a file to a PDF and merging PDFs?+
Merging combines page content into one continuous document, so the source files stop existing as separate items. Attaching embeds a file inside the PDF as a discrete object that a reader can open or save back out on its own, keeping the original format intact. Use merge when everything should read as one document, and attach when a spreadsheet, archive, or certificate needs to stay a separate file.
Can I attach more than one file in a single run?+
Yes. Attachments is a collection, so click Add Attachment once per file you want to embed. Each entry gets its own Attachment Content Type, Attachment Name, and source field, which means you can mix a binary file from a previous node with another pulled from a URL in the same request.
What file types can be attached to a PDF?+
Attachments are stored as embedded file objects rather than being converted, a mechanism defined in the ISO 32000 PDF specification, so common document, image, spreadsheet, presentation, archive, and data formats can all be carried. What matters is that Attachment Name includes the correct extension, because that is what tells a reader application how to open the file once extracted.
Will everyone be able to see the attachments?+
Embedded files are exposed through the attachments or bookmarks panel of a full PDF reader. Lightweight in-browser or mobile viewers sometimes do not surface that panel, so if attachments are essential to the recipient, mention in the document body that supporting files are embedded.
How do I get the attachments back out of a PDF later?+
Use the Extract Attachment From PDF action, which is the inverse operation. A common pattern is one n8n workflow that bundles supporting files into an outgoing PDF, and a second that extracts them again when the document comes back.

İlgili Eylemler

Diğer Platformlarda Aynı Görev

Yardım Alın