Ana içeriğe geç

Tek bir belge oluştur Zapier

Tek Belge Oluştur bir Zapier eylem tarafından PDF4me Word'ü birleştiren, HTMLPosta birleştirme veya Google Dokümanlar şablonu ile JSON veya XML Tek bir tamamlanmış belge oluşturmak için verileri kullanın. Bunu çevirmek için kullanın. CRM Kayıtları sözleşmelere, sipariş verilerini faturalara veya form gönderimlerini sertifikalara dönüştürmek, hepsi bir Zap içinde mümkün.

İlgili Blog Yazıları(2)

Bu eylemin yaptığı şey

PDF4me Tek Belge Oluştur Bir şablon dosyasını ve bir veri kümesini alır ve bir Zap içinde birleştirilmiş bir belge döndürür. Kelime, HTML, PDF, Posta Birleştirme veya Google Dokümanlar şablon, verileri şu şekilde sağlayın: satır içi metin veya bir veri dosyasıve çıktı formatını seçin. Sözleşme oluşturma, fatura düzenleme, sertifika verme, teklif mektupları ve birleştirme kodu yazmadan tek bir kaydı tek bir belgeye dönüştüren her türlü iş akışı için idealdir.

Kimliğinizi Doğrulama API Rica etmek

Erişmek için PDF4me Web APIHer istek, geçerli kimlik doğrulama bilgilerini içermelidir. Bağlantınızı kurun. PDF4me hesaba bir kez gir Zapier ve Zaps'lerinizdeki her "Tek Belge Oluştur" adımı bunu yeniden kullanır.

Kaçırmamanız Gereken Önemli Bilgiler

Giriş Veri Biçimi Türü, hangi veri alanının gerekli olduğunu belirler.
Şöyle ayarlayın: Metin Ve Veri Metni satır içi için zorunlu alan haline gelir JSON/XML. Bunu şuna ayarlayın: Dosya Ve Veri Dosyası Önceki adımdan eşleştirilen bir veri dosyası için bunun yerine gerekli hale gelir. Diğer alan, siz düğmeyi açana kadar gizli kalır.
Şablon Dosya Türü Word ile sınırlı değildir.HTML/PDF
Açılır menü ayrıca şunları da içerir: Posta Birleştirme (posta birleştirme alanları için oluşturulmuş bir Word şablonu) ve Google Dokümanlar (Birleştirme şablonu olarak kullanılan bir Google Docs dışa aktarımı), canlı Zap yapılandırmalarında onaylanmıştır. Bu değeri, şablon dosyasının gerçekte nasıl oluşturulduğuyla eşleştirin.
İki farklı çıktı formatı için işlemi iki kez çalıştırın.
Tek bir şablon, farklı iki "Tek Belge Oluştur" adımını besleyebilir. Çıktı Belge Türü değerler (örneğin) PDF Daha sonra DocxTek bir tetikleyiciyle hem kilitli bir kopya hem de düzenlenebilir bir kopya oluşturmak için.
Zapier'deki PDF4me işlem panelinde Şablon Dosyası, Şablon Dosya Adı, Şablon Dosya Türü (PDF olarak ayarlanmış), Giriş Veri Biçimi Türü (Metin olarak ayarlanmış), Veri Metni, Giriş Veri Türü (Json olarak ayarlanmış) ve Meta Veri alanları gösterilmektedir.

Giriş Veri Biçimi Türü "Metin" olarak ayarlanmış ve Veri Metni alanı görünür hale getirilmiş bir işlem paneli kurun.

Parametreler

Gereklidir Zapier Kullanıcı Arayüzü: Şablon Dosyası, Şablon Dosyası Türü, Giriş Veri Formatı Türü, Giriş Veri Türü ve (Giriş Veri Formatı Türüne bağlı olarak) Veri Metni veya Veri Dosyası. Şablon Dosyası Adı, Çıktı Belge Türü, PDF'yi Düzenlenebilir Tut ve Meta Veriler isteğe bağlıdır.

ParametreGerekliNe işe yarar?Örnek
Template FileRequiredTemplate file to populate. Map it from a previous step (Dropbox, Google Drive, Upload File).template.docx
Template File NameOptionalName for the output file. If left blank, the name is picked from Template File's own filename.contract_template
Template File TypeRequiredFormat of the template: Word, HTML, PDF, Mail Merge (Word built for mail-merge fields), or GoogleDocs (Google Docs export).Mail Merge
Input Data Format TypeRequiredWhether data is supplied as inline text or a file. Text reveals Data Text. File reveals Data File.Text
Data TextConditionalInline JSON or XML string to merge into the template. Required when Input Data Format Type is Text.[{"firstname":"John","lastname":"Adams"}]
Data FileConditionalData file (JSON or XML) mapped from a previous step. Required when Input Data Format Type is File.data.json
Input Data TypeRequiredStructure of the supplied data, must match Data Text or Data File exactly.Json
Output Document TypeOptionalFormat of the generated document: Pdf, Docx, and other supported formats.Pdf
Keep Pdf EditableOptionalWhen the output is a PDF from a fillable template, keeps its form fields interactive instead of flattening them.false
Meta DataOptionalMetadata to attach to template fields during generation.-

Çıktı

AlanTipİçeriğinde neler var?
File NameStringFile name of the generated document, without extension.
File ExtensionStringExtension of the output document, matching Output Document Type.
Full File NameStringComplete filename including extension.
File URLStringDirect URL to the generated document, map this into an Upload File, email, or storage step.
File SizeNumberSize of the generated document in bytes.

Tekli Belge Oluşturma İşlemini Nasıl Ayarlayabilirim? Zapier?

  1. Eklemek PDF4me Zap'ınızda eylem uygulaması olarak şunu seçin ve belirleyin Belge Oluştur.
  2. Bağlantınızı kurun. PDF4me Hesabınızı açın veya mevcut bir bağlantıyı seçin.
  3. Harita Şablon Dosyası önceki adımdan ve ayardan Şablon Dosya Türü buna uyması için (Word, HTML, PDF(Örneğin, Posta Birleştirme veya Google Dokümanlar).
  4. Ayarlamak Giriş Veri Biçimi Türü ile Metin ve doldurun Veri Metni satır içi ile JSON/XMLveya bunu şuna ayarlayın Dosya ve harita Veri Dosyası önceki bir adımdan.
  5. Ayarlamak Giriş Veri Türü ile Json veya XML Verilerinizin gerçek biçimine uyacak şekilde.
  6. İsteğe bağlı olarak ayarlanabilir. Çıktı Belge Türü Ve PDF'yi Düzenlenebilir TutunArdından adımı test edin.
  7. Geri dönenleri haritada göster Dosya URL'si Oluşturulan belgeyi teslim etmek için Dosya Yükleme, Gmail veya depolama eylemine ekleyin.

Tipik Kurulumlar

İş Akışı ÖrnekleriCommon Zapier patterns using Generate Document Single.
Birleştirilmiş posta şablonu içeren bir JSON veri dosyası
  1. Dropbox'ta izlenen bir klasöre yeni bir dosya (Word şablonu) bırakılıyor.
  2. "Dosya Bul" adımı eşleşen dosyayı bulur. JSON Veri dosyası aynı klasörde.
  3. Tekli belge oluşturma işlemi, Şablon Dosya Türü Posta Birleştirme, Giriş Veri Biçimi Türü Dosya, Bul adımından Veri Dosyası, Giriş Veri Türü Json ile gerçekleştirilir.
  4. "Dosya Yükle" adımı, oluşturulan belgeyi Dropbox'a kaydeder.
Google Dokümanlar şablonu, satır içi JSONçift çıkışlı
  1. "Dosya Bul" adımı, .docx olarak dışa aktarılmış bir Google Dokümanlar şablonunu bulur.
  2. GoogleDocs şablon dosya türü, Metin giriş veri biçimi ve satır içi metin veri türü ile tek seferlik belge oluşturma işlemi gerçekleştirin. JSON Dizi, Çıktı Belge Türü Pdf.
  3. İkinci bir Tek Belge Oluşturma adımı, Giriş Veri Biçimi Türü Dosya ve Çıkış Belge Türü Docx ile aynı şablonu yeniden kullanarak, düzenlenebilir bir kopyayı oluşturur. PDF.
CRM Webhook tarafından tetiklenen sözleşme kaydı
  1. Webhooks tarafından Zapier tetikleyici, yeni bir anlaşma yükü alır. CRM.
  2. Biçimlendirme adımı, veri yükünü şu şekilde şekillendirir: JSON Sözleşme şablonunun beklediği yapıyı oluşturun.
  3. Belge Oluşturma Tek Çalıştırma Seçeneği: Şablon Dosya Türü Word, Giriş Veri Biçimi Türü Metin, Biçimlendirme adımından Veri Metni, Giriş Veri Türü Json, Çıkış Belge Türü Pdf.
  4. Gmail adımı, oluşturulan sözleşmeyi müşteriye e-posta ile gönderir.
HTML hafif sertifika şablonu
  1. Bir öğrenme yönetim sistemi web kancası aracılığıyla kurs tamamlama tetikleyicisi çalışır.
  2. Şablon Dosya Türü ile Tek Çalıştırma Yöntemiyle Belge Oluşturma HTMLGiriş Veri Formatı Türü Metin, Veri Metni (öğrenci adı, ders ve tarih bilgileri içerir), Çıkış Belge Türü PDF.
  3. "Dosya Yükle" adımı, sertifikayı öğrenci için paylaşılan bir sürücü klasörüne kaydeder.

Pratik İpuçları

Match Template File Type to how the template was built
Word for a plain merge-field .docx, Mail Merge for a template designed around the mail-merge field pattern, GoogleDocs for a Google Docs export. Picking the wrong type can leave placeholders unfilled.
Toggle Input Data Format Type before filling in data
Data Text and Data File are mutually exclusive: only the field matching your Input Data Format Type selection is required. The other stays out of the way.
Input Data Type must match your data exactly
Json for JSON data, Xml for XML data. A mismatch causes template fields to bind incorrectly or come back empty.
Run twice for two formats from one template
Set Output Document Type to Pdf in one step and Docx in a second step using the same template and data to get both a locked and an editable copy.
Use Keep Pdf Editable only for fillable-PDF templates
This toggle only matters when the template is itself a fillable PDF and the output is Pdf. It has no effect on Word, HTML, or Mail Merge templates.
Batch runs need Generate Documents Multiple, not this action
This action produces one document per run. To generate many personalized documents from one template and a list of records in a single step, use Generate Documents Multiple instead.

Kopya Kağıdı

AlanDeğer
ActionGenerate Document
Template FileFrom a previous step
Template File TypeWord / HTML / PDF / Mail Merge / GoogleDocs
Input Data Format TypeText or File
Data TextRequired when Input Data Format Type is Text
Data FileRequired when Input Data Format Type is File
Input Data TypeJson or Xml
Output Document TypePdf, Docx, and other supported formats
Keep Pdf Editablefalse (default behavior in documented workflows)

"Tekli Belge Oluştur" yerine ne kullanmalıyım?

İş akışınızda tek bir şablondan birçok kişiselleştirilmiş belgeye ve tek bir çalıştırmada kayıt listesine ihtiyaç duyuyorsanız, her Zap çalıştırmasında bir belge yerine şunu kullanın: Birden fazla belge oluşturŞablonunuz doldurulabilir bir şablon ise... PDF Bıyık/birleştirme alanı şablonu yerine form kullanın. Doldurun PDF Biçim AcroForm alanlarını şablon motorundan geçirmek yerine doğrudan doldurmak için.

Sıkça Sorulan Sorular

What is the difference between Data Text and Data File?+
Input Data Format Type controls which field is required. Text reveals Data Text for inline JSON or XML, useful when a prior step already exposes the data as text such as a webhook body or a Formatter step output. File reveals Data File for a data file mapped from a previous step, such as a downloaded JSON file. Only the field matching your selection is required at a time. See <a href="https://zapier.com/blog/create-documents-from-templates/" target="_blank" rel="noopener noreferrer">Zapier's own guide on building documents from templates</a> for background on template-merge workflows.
What template types does Generate Document Single support?+
Template File Type accepts Word (.docx with mustache or merge-field placeholders), HTML (.html with template placeholders), PDF (a PDF layout template), Mail Merge (a Word template built around the mail-merge field pattern), and GoogleDocs (a Google Docs export used as a merge template). Match this value to how the template file was actually authored.
What does Keep Pdf Editable do?+
Keep Pdf Editable applies only when the output is a PDF generated from a fillable-PDF template. Left off, the generated PDF is a static, completed document. Turned on, it preserves interactive form fields in the output so a recipient can still edit values after the document is generated.
What output formats can Generate Document Single produce?+
Output Document Type sets the generated file's format independently of the template format, options include Pdf and Docx among other supported formats. Running the same template through the action twice with different Output Document Type values produces both a PDF and a Word copy from one source, a pattern documented in PDF4me's own Zapier trigger workflows.
Do I need to specify Input Data Type as Json or Xml?+
Yes. Input Data Type is required and must match the actual structure of the data supplied in Data Text or Data File. A mismatch, such as selecting Json for XML-formatted data, causes the template engine to fail to bind fields and the generated document returns with placeholders unfilled. For background on JSON structure basics, see <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON" target="_blank" rel="noopener noreferrer">MDN's JSON reference</a>.

İlgili Eylemler

Diğer Platformlarda Aynı Görev

Sektör Kullanım Örnekleri ve Uygulamaları

  • Sözleşme OluşturmaMüşteri verilerini kullanarak şablonlardan kişiselleştirilmiş sözleşmeler oluşturun.
  • Hukuki Belge OluşturmaDava özelinde bilgiler içeren yasal belgeler oluşturun.
  • Sözleşme İşlemeDinamik veri entegrasyonu ile sözleşme oluşturmayı otomatikleştirin.
  • Belge OtomasyonuŞablon işleme ile yasal belge iş akışlarını kolaylaştırın

Yardım Alın