Lewati ke konten utama

Gabungkan Dokumen - Perakitan Dokumen untuk Make

Gabungkan Dokumen adalah sebuah Make modul oleh PDF4me yang menggabungkan beberapa file Word (.docx) menjadi satu dokumen. Gunakan untuk menyusun laporan dari bagian departemen, membuat proposal, atau mengkonsolidasikan klausul kontrak, dengan kendali penuh atas urutan penggabungan dan pemformatan.

Fungsi modul ini

PDF4me Gabungkan Dokumen Menggabungkan beberapa dokumen Word menjadi satu dokumen dalam waktu singkat. Make skenario dengan opsi pemformatan dan kepatuhan tingkat lanjut. Mendukung pengurutan dokumen yang fleksibel dengan SortPosition, mode pemformatan yang dapat disesuaikan (KeepSourceFormatting, KeepDifferentStyles, UseDestinationStyles) per dokumen, pengaturan tingkat kepatuhan (ECMA, Transisi, Ketat), dan metadata zona waktu untuk pelacakan dokumen, ideal untuk perakitan dokumen, konsolidasi laporan, kompilasi kontrak, dan alur kerja pengemasan multi-dokumen.

Postingan Blog Terkait
Belum ada postingan blog untuk fitur ini — akan segera hadir.
Sementara itu, jelajahi blog PDF4me untuk menemukan tutorial dan alur kerja di berbagai platform.
Kunjungi blog ini

Bagaimana Cara Saya Mengautentikasi Saya? Make Skenario?

Untuk mengakses PDF4me Web API melalui MakeSetiap permintaan harus menyertakan validitas Koneksi memegangmu PDF4me API kunci. Ini memungkinkan komunikasi yang aman dan terautentikasi antara Anda Make skenario dan PDF4meLayanan penggabungan dokumen Word.

Fakta Penting yang Tidak Boleh Anda Lewatkan

SortPosition mengontrol urutan penggabungan, bukan urutan array.
Dokumen digabungkan secara menaik SortPosition urutan terlepas dari bagaimana mereka muncul dalam larik Dokumen. Yang terendah SortPosition menjadi dokumen dasar yang menjadi acuan bagi semua dokumen lainnya.
Tiga FormatMode penanganan gaya kontrol opsi
KeepSourceFormatting Mempertahankan gaya masing-masing dokumen (default). KeepDifferentStyles Menjaga agar gaya-gaya yang berbeda tetap berdampingan. UseDestinationStyles memaksa setiap dokumen untuk menggunakan stylesheet dokumen dasar.
Tingkat Kepatuhan mempengaruhi OOXML keluaran
ECMA, Transitional (default), dan Strict dipetakan ke nilai yang berbeda. Membuka XML (OOXML) standar kepatuhan yang didefinisikan dalam ECMA-376. Atur Strict jika sistem hilir memerlukan output .docx yang sesuai dengan standar ISO/IEC 29500 Strict.
Buat modul Penggabungan Dokumen PDF4me dikonfigurasi dengan array Dokumen yang berisi NamaBerkas, KontenDokumen, PosisiPengurutan, dan ModeFormat untuk setiap dokumen yang akan digabungkan menjadi satu file Word.

Buat array Dokumen dengan Nama Berkas, DocContent, Dan SortPosition per dokumen. Terendah SortPosition menjadi dokumen dasar.

Parameter apa saja yang dibutuhkan oleh penggabungan dokumen?

Diperlukan: Array dokumen harus berisi setidaknya satu entri, dan setiap entri memerlukan Nama Berkas, Isi Dokumen, dan Posisi Pengurutan.

ParameterDiperlukanApa fungsinya?Contoh
DocumentsRequiredArray of document objects to merge. Must contain at least one document. Documents are merged in ascending SortPosition order; the lowest SortPosition becomes the base document.[{"Filename":"doc1.docx","SortPosition":0}]
Documents[].FilenameRequiredOriginal filename of the document, including extension (.docx, .doc). Used for reference and format detection.document1.docx
Documents[].DocContentRequiredBase64-encoded binary content of the document. Map from a previous module. Must be a valid Word format.[Buffer]
Documents[].SortPositionRequiredPosition in merge order, ascending. Must be unique within the array. Any numbering scheme works (0,1,2 or 10,20,30).0
Documents[].FormatModeConditionalPer-document formatting mode: KeepSourceFormatting (default, preserves original), KeepDifferentStyles (keeps styles distinct), or UseDestinationStyles (forces base document styling).KeepSourceFormatting
Merge Options Time ZoneConditionalTimezone metadata written to the merged document, e.g. UTC, America/New_York, Europe/London. Used for tracking and compliance.UTC
Merge Options Compliance LevelConditionalOOXML compliance standard: ECMA, Transitional (default), Strict, or Custom.Transitional

Keluaran

BidangJenisIsi di dalamnya
NameStringOutput Word filename, taken from the base document (lowest SortPosition).
Doc DataBufferThe merged Word document containing all input documents combined in SortPosition order.

Pengaturan Umum

Contoh Alur KerjaCommon Make scenario patterns using Merge Documents.
Laporan departemen bulanan → laporan eksekutif gabungan
  1. Pemicu terjadwal akan aktif setelah semua laporan departemen untuk bulan tersebut diserahkan.
  2. Halaman sampul (SortPosition 0) dan ringkasan eksekutif (SortPosition 1) diambil dari folder templat.
  3. Iterator akan berulang melalui setiap laporan departemen, menetapkan nilai secara berurutan. SortPosition nilai-nilai.
  4. Gabungkan Dokumen menggabungkan semua bagian dengan FormatMode diatur ke KeepSourceFormatting, dengan tetap mempertahankan gaya khas masing-masing departemen.
  5. Laporan konsolidasi diunggah ke folder laporan eksekutif dan dikirim melalui email kepada pimpinan.
Bagian RFP → pengajuan proposal tunggal
  1. Sebuah pemicu akan aktif ketika semua bagian proposal (surat pengantar, pendekatan teknis, penetapan harga, biodata tim) ditandai sebagai disetujui.
  2. Setiap bagian diambil dari folder tim pemiliknya secara berurutan. SortPosition nilai-nilai.
  3. FormatMode ditetapkan untuk UseDestinationStyles Jadi, setiap bagian mengadopsi format surat lamaran untuk tampilan yang konsisten.
  4. Fungsi Gabungkan Dokumen menggabungkan semua bagian ke dalam dokumen proposal final.
  5. Proposal yang telah selesai diunggah ke folder pengajuan dan diteruskan ke pimpinan penjualan untuk tinjauan akhir.
Pustaka klausul kontrak → kontrak final yang telah disusun
  1. Pemicu akan aktif ketika persyaratan kontrak yang dinegosiasikan telah diselesaikan dan disetujui.
  2. Klausul standar diambil dari perpustakaan klausul (SortPosition 0), syarat khusus dari folder negosiasi (SortPosition 1), jadwal (SortPosition 2), dan halaman tanda tangan (SortPosition 3).
  3. FormatMode ditetapkan untuk KeepDifferentStyles sehingga setiap jenis klausa mempertahankan variasi formatnya masing-masing.
  4. Merge Documents menyusun komponen-komponen tersebut sesuai urutan hukum yang benar menjadi satu kontrak tunggal.
  5. Kontrak final diunggah ke folder kontrak yang telah ditandatangani dan diteruskan ke tim hukum untuk ditinjau.

Tips Praktis

SortPosition values must be unique
Two documents sharing the same SortPosition produces unpredictable ordering. Use gapped numbering (0, 10, 20) so you can insert a new section later without renumbering the whole array.
FormatMode is set per document, not globally
Each entry in the Documents array can use a different FormatMode. Mixing KeepSourceFormatting on most documents with UseDestinationStyles on one is valid if that is the behavior you want.
DocContent must be valid Word binary
Passing a PDF or plain-text buffer into DocContent fails the merge. Confirm the upstream module (OneDrive, SharePoint, Google Drive) is outputting .docx or .doc binary content, not a converted format.
The base document sets the output filename
The Name field in the output always comes from the document with the lowest SortPosition. Rename that document upstream if you need a specific output filename.
Strict compliance can reject legacy .doc content
If Merge Options Compliance Level is set to Strict and a source document uses older .doc-era formatting quirks, some elements may not carry over cleanly. Use Transitional (the default) unless a downstream system specifically requires Strict OOXML.
Large document counts increase processing time
Merging many documents, or documents with heavy embedded media, takes longer than a two-document merge. Test with your actual document set before relying on tight scenario timeouts.

Lembar Panduan Singkat

BidangNilai
ModuleMerge Documents
ConnectionPDF4me API key
Documents arrayOne entry per file: Filename, DocContent, SortPosition
FormatMode (preserve each doc)KeepSourceFormatting
FormatMode (single consistent look)UseDestinationStyles
FormatMode (keep styles distinct)KeepDifferentStyles
Compliance Level defaultTransitional
Output fieldsName, Doc Data

Pertanyaan yang Sering Diajukan

How do I merge Word documents without losing formatting?+
Set FormatMode to KeepSourceFormatting on each document in the Documents array. This preserves each document's original styles instead of forcing them into the base document's style sheet. If you want one consistent look instead, use UseDestinationStyles so every document adopts the base document's formatting.
What is the difference between Merge Documents and Mail Merge?+
Merge Documents combines multiple existing Word files into a single file, useful for assembling reports, proposals, or contracts from separate sections. Mail Merge instead takes one template document and a data source like a spreadsheet and generates many personalized copies, one per row. Use Merge Documents when you have several finished documents to combine; use Mail Merge when you have one template and a list of recipients.
Can I control the order documents are merged in?+
Yes. Every document object in the Documents array requires a SortPosition. Make merges documents in ascending SortPosition order, and the document with the lowest SortPosition becomes the base document. SortPosition values do not need to be sequential: 0, 10, 20 works as well as 0, 1, 2, which makes it easy to insert a section later without renumbering everything.
Does merging affect document metadata and custom properties?+
The merged output inherits its Name from the base document (lowest SortPosition). Merge Options Time Zone lets you attach timezone metadata to the merged file for tracking and compliance purposes. Other custom document properties from non-base documents are not automatically carried forward, so re-apply any metadata you need on the merged output if it must match a specific document.
What Word formats does Merge Documents accept?+
The module accepts standard .docx and legacy .doc binary content in the DocContent field. All documents in the Documents array should be genuine Word binaries mapped from a previous module (SharePoint, OneDrive, Google Drive, or similar); passing a PDF or plain-text buffer will fail the merge.

Studi Kasus & Aplikasi Industri

  • Perakitan KontrakGabungkan klausul standar dengan ketentuan khusus menjadi kontrak yang lengkap.
  • Kompilasi Ringkasan HukumGabungkan bagian-bagian argumen, bukti-bukti, dan rujukan-rujukan ke dalam ringkasan akhir.
  • Susunan Dokumen PenemuanGabungkan log hak akses dengan dokumen yang relevan untuk produksi.
  • Konsolidasi Berkas Perkara: Menggabungkan memo kasus, pembelaan, dan korespondensi menjadi ringkasan perkara.
  • Kumpulan Surat OpiniGabungkan memo penelitian dengan opini standar ke dalam surat klien.

Tindakan Terkait

Tugas yang Sama di Platform Lain

Dapatkan Bantuan