Ana içeriğe geç

Sayfaları Şuradan Çıkarın PDF içinde n8n

Sayfaları Şuradan Çıkarın PDF bir PDF4me düğüm eylemi n8n yeni bir şey inşa eden PDF yalnızca şunları içeriyor pages Listelediğiniz maddeleri kullanarak bir sözleşmeden imza sayfasını çıkarabilir, bir kılavuzdan tek bir bölümü ayırabilir veya sonraki aşamalara sadece özetini iletebilirsiniz. pages Belgenin tamamı yerine.

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

PDF4me: Sayfaları Şuradan Çıkar PDF bir alır PDF İkili Verilerden, bir Base64 Stringveya bir URL ve yalnızca içeriği barındıran yeni bir dosya döndürür. pages adı geçen Sayfa NumaralarıBu alan tüm işlemi kapsar: tek bir değeri kabul eder. pagesTirelenmiş aralıklar, karışık listeler ve belgenin sonuna kadar uzanan açık aralıklar da dahil olmak üzere, bu işlem bir iş akışı adımı olarak çalıştığı için, herhangi bir düzenleyici açılmadan gelen her dosyaya aynı ayıklama kuralı uygulanır.

İ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ışı, veri çıkarma isteklerini güvenli bir şekilde doğrulayabilir.

Kaçırmamanız Gereken Önemli Bilgiler

Sayfa numaraları, önem taşıyan tek alandır.
Bu zorunludur ve onaylanmıştır. Boş bırakın ve n8n Düğüm çalıştırılmadan önce alanı işaretler.
Açık aralıklar değişken sayfa sayılarını işler.
Yazma 10- Bu, 10. sayfadan sonuna kadar olan kısmı ifade eder, dolayısıyla tek bir ayar farklı uzunluktaki belgeler için geçerlidir.
Sayfalar 1'den başlayarak numaralandırılmıştır.
İlk sayfa 0 değil, 1'dir. Daha önceki bir kod düğümü sayfa listesini programatik olarak oluşturduğunda buna dikkat edin.
n8n'deki PDF4me düğümü, Eylem olarak PDF'den Sayfa Çıkarma, Giriş Veri Türü İkili Veri, Giriş İkili Alanı data, Belge Adı output.pdf, boş bir Sayfa Numaraları alanı ve Çıkış İkili Alanı Adı data olarak ayarlanmıştır.

PDF4me Sayfaları Şuradan Çıkarın PDF parametreler panelinde n8n

Sayfaları Ayıklama vs. Bölme PDF

Her ikisi de daha küçük belgeler üretir, ancak farklı sorulara cevap verirler. Çıkarma işlemi hangisinin sorulacağını sorar. pages Saklamak istediğiniz kısmı ayırmak; bölme işlemi ise tüm belgenin nasıl bölüneceğini sorar.

SoruSayfaları Şuradan Çıkarın PDFBölmek PDF
How many files come backOne PDF holding the pages you listedSeveral PDFs covering the whole document
What happens to unlisted pagesThey are absent from the outputThey still appear, in another output file
Typical usePull the signature page, one chapter, or a summary sectionBreak a bundle into per-invoice or per-section files
Driven byAn explicit page list you supplyA split rule such as page count, text, or barcode

Sayfaları Hangi Parametrelerden Çıkarır? PDF İhtiyaç?

Gerekli: İşlem, Giriş Veri Türü, bu giriş türüyle eşleşen alan, Belge Adı ve Sayfa Numaraları. Çıkış İkili Alan Adı, varsayılan bir çalışma değeri taşır. veriGelişmiş Seçenekler ise boş olarak başlar.

ParametreGerekliNe işe yarar?Örnek
ActionRequiredSelects the PDF4me node action to run. Choose Extract Pages From PDF.Extract Pages From 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
Document NameRequiredFilename used for the document on the request, for reference and tracking. Include the .pdf extension.output.pdf
Page NumbersRequiredThe pages to keep. Accepts a comma-separated list, a hyphenated range, a mixed list, or an open range that runs to the end of the document. Pages are numbered from 1.1,3,5-8
Output Binary Field NameOptionalName of the binary property the output item exposes. Defaults to data.data
Advanced OptionsOptionalA collection that starts empty, shown as No properties with an Add Option button. Leave it alone unless you have a specific option to add.No properties

Sayfa Numaraları Alanı Nasıl Yazılır?

ModelÖrnekGeri dönen şey
Single page5Just page 5, as a one page PDF.
Comma-separated list1,3,5Pages 1, 3, and 5 in one PDF, with pages 2 and 4 absent.
Hyphenated range2-5Pages 2, 3, 4, and 5, with both ends included.
Mixed list1,3,5-8Page 1, page 3, then the block from 5 to 8.
Open range10-Page 10 through the last page, whatever the document length turns out to be.

Çıkış Alanları

Başarılı bir koşu bir getiri sağlar. n8n çıkarılan maddeyi taşıyan öğe PDF.

AlanTipİçeriğinde neler var?
Binary (data)BinaryThe extracted PDF, under Output Binary Field Name (default data).
fileNameStringGenerated filename of the extracted PDF.
mimeTypeStringMIME type of the output, always application/pdf.
fileSizeNumberSize of the returned PDF in bytes.
pagesExtractedNumberHow many pages ended up in the output. Compare it against the length of your requested list as a cheap sanity check.
originalPageCountNumberPage count of the source document before extraction.
extractedPageNumbersArrayThe page numbers that were actually extracted, useful for verifying the result against what you asked for.
successBooleanTrue when the extraction completed, false on failure. Use it to branch error handling.
messageStringHuman-readable status message, carrying success confirmation or error detail.

Sayfaları nasıl ayıklayabilirim? PDF içinde n8n?

  1. Eklemek PDF4me senin n8n iş akışını seçin ve Sayfaları Şuradan Çıkarın 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 eşleşen kaynağı sağlayın PDF alan.
  4. Ayarlamak Belge Adı kaynak dosya için, aşağıdakiler dahil: .pdf eklenti.
  5. Girmek Sayfa Numaraları Liste, aralık, karma liste veya açık aralık kullanarak.
  6. Ayrılmak Çıktı İkili Alan Adı gibi data Daha sonraki bir düğüm farklı bir özellik beklemediği sürece.
  7. Düğümü çalıştırın ve döndürülen sonucu yönlendirin. PDF Bir sonraki aşamaya, örneğin depolama, e-posta veya inceleme kuyruğuna.

Tipik Kurulumlar

İş Akışı ÖrnekleriCommon n8n workflow patterns using Extract Pages From PDF.
Sözleşmeden imza sayfasını çıkarın.
  1. İmzalı sözleşme e-posta eki olarak geliyor.
  2. Sayfaları Şuradan Çıkarın PDF Son sayfayı açık bir aralık kullanarak alıyor.
  3. Bu tek sayfalık belge, hızlı erişim için müşteri kaydının yanına arşivlenir.
Değerlendiricilere yalnızca özeti gönderin.
  1. Uzun bir rapor, planlı bir şekilde oluşturulmaktadır.
  2. Sayfaları Şuradan Çıkarın PDF ilk birkaçını saklıyor pages Örneğin, çeşitli seçeneklerle 1-3.
  3. Değerlendirme yapanlar özeti alırken, raporun tamamı arşive gönderilir.
Bir kılavuzdan bir bölümü ayırın.
  1. Destek talebi, ürün kılavuzunun bir bölümüne atıfta bulunuyor.
  2. Sayfaları Şuradan Çıkarın PDF Bu bölümü tireli bir aralıkla çekiyor.
  3. Müşteri ilgili bilgiyi alır. pages büyük bir eklenti yerine.
Önce ayıklayın, sonra özet halinde birleştirin.
  1. Çeşitli kaynak belgelerin her birinde saklanmaya değer bir sayfa bulunmaktadır.
  2. Sayfaları Şuradan Çıkarın PDF Sayfayı çekmek için belge başına çalıştırılan işlem sayısı.
  3. Birden Fazlasını Birleştir PDFs Sonuçları tek bir özet halinde birleştirir.

Pratik İpuçları

Use an open range for variable documents
When the page count differs between files, 10- keeps everything from page 10 onward without knowing the total.
Check pagesExtracted against your request
Comparing the returned count with the number of pages you asked for catches a malformed page list before it reaches the customer.
Remember pages start at 1
A code node that builds the list from a zero-based array will be off by one on every document. Add one when generating the string.
Extract before you merge
Pulling the wanted pages from each source first keeps the merge step small and the final document free of filler.
Branch on the success field
Test the returned success boolean before sending the file onward so a failed extraction raises an alert instead of forwarding an empty result.
Reuse one source for several subsets
The original is untouched, so the same PDF can feed two extraction nodes to produce an internal copy and a customer copy in one run.

Kopya Kağıdı

AlanDeğer
ActionExtract Pages From PDF
Input Data TypeBinary Data
Input Binary Fielddata
Document Nameoutput.pdf
Page Numbers1,3,5-8
Output Binary Field Namedata
Advanced OptionsNo properties
CredentialsPDF4me API credential

Sıkça Sorulan Sorular

How do I write the Page Numbers field to extract a range?+
Page Numbers accepts four shapes. A comma-separated list such as 1,3,5 pulls individual pages. A hyphenated range such as 2-5 pulls everything between and including those pages. A mixed list such as 1,3,5-8 combines both. An open range such as 10- runs from page 10 to the end of the document, which is useful when the page count varies between files.
Is extracting pages the same as splitting a PDF?+
No. Extract Pages From PDF returns one new PDF containing only the pages you listed, and the pages you did not list are simply absent. Splitting divides a document into multiple output files covering the whole document. Choose extraction when you want a specific subset, and choose Split PDF when you want every page distributed across several files.
Does extracting pages change the original PDF?+
No. The node reads the source PDF you supply and returns a new file. The original document is untouched, so the same source can be run through several extractions in one workflow to produce different subsets.
What happens if I ask for a page number that does not exist?+
Page Numbers is a required field and is validated when the node runs. Requesting a page beyond the end of the document is an error case rather than a silent skip, so branch on the returned success field before passing the result downstream, especially when the page list is built dynamically from earlier workflow data.
Are the page numbers counted from one or from zero?+
Page numbers start at 1, matching what a reader sees in a PDF viewer. The first page of the document is 1, not 0. This matters most when the page list is generated by an earlier node in n8n code, where zero-based indexing is a common source of off-by-one output.

İlgili Eylemler

Diğer Platformlarda Aynı Görev

Yardım Alın