Lewati ke konten utama

Aman Word Dokumen di n8n

Aman Word Dokumen adalah sebuah PDF4me tindakan node di n8n yang mengunci .docx Buat file dengan kata sandi, batasan pengeditan, atau keduanya. Gunakan untuk melindungi laporan rahasia sebelum dikirim, mencegah templat yang telah ditandatangani diubah, atau memungkinkan peninjau untuk memberikan komentar pada kontrak tanpa mengubah teksnya.

Fungsi node ini

PDF4me Word: Aman Word Dokumen berlaku dua jenis perlindungan independen. Aman Saat Terbuka ditambah Buka Kata Sandi Menentukan apakah file tersebut dapat dibuka sama sekali. Jenis Perlindungan ditambah Kata Sandi Perlindungan Menentukan apa yang dapat diubah setelah dibuka, mulai dari hanya baca saja hingga komentar, kolom formulir, atau hanya revisi yang dilacak. Gunakan salah satu, atau keduanya bersama-sama.

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

Memverifikasi Identitas Anda API Meminta

Setiap PDF4me simpul di n8n memerlukan validitas Kredensial untuk terhubung denganBuat atau pilih salah satu yang sesuai dengan kebutuhan Anda. PDF4me API kunci agar alur kerja dapat mengautentikasi permintaan keamanan dokumen.

Fakta Penting yang Tidak Boleh Anda Lewatkan

Dua kata sandi, dua pekerjaan berbeda
"Open Password" membatasi akses ke file. "Protection Password" membatasi akses ke pengeditan. Menyetelnya ke nilai yang sama memberikan editor akses ke keduanya, yang menggagalkan tujuan pembatasan tersebut.
Jangan pernah mengetikkan kata sandi ke dalam node.
Apa pun yang dimasukkan secara langsung akan masuk ke alur kerja yang tersimpan. JSON, yang diekspor dan sering kali di-commit ke git. Gunakan ekspresi yang membaca kredensial atau variabel lingkungan.
Perlindungan diterapkan, tidak dapat dipulihkan.
Tindakan ini menambahkan perlindungan. Jika kata sandi hilang, tidak ada jalur kembali melalui node ini, jadi simpan kedua nilai tersebut sebelum alur kerja dijalankan dalam skala besar.
Node PDF4me Word di n8n dengan Operasi diatur ke Dokumen Word Aman, Metode Input File Word diatur ke Dari Node Sebelumnya, Aman Saat Dibuka diaktifkan, Jenis Perlindungan diatur ke Hanya Baca, dan Nama File Output diatur ke secured_document.docx

Secure On Open adalah tombol pengaktifan/penonaktifan, dan Protection Type adalah menu tarik-turun terpisah yang diatur ke Read Only di sini. Dua kolom kata sandi di bawahnya saling independen.

Kata Sandi Terbuka vs Pembatasan Pengeditan

PertanyaanBuka kata sandiPembatasan pengeditan
Which fields set itSecure On Open and Open PasswordProtection Type and Protection Password
What it blocksOpening the document at allChanging the document once open
Can the recipient read itOnly with the passwordYes, reading is always allowed
Typical recipientA named person receiving something confidentialA reviewer or a form filler
Use it whenThe content must not be seen by othersThe content may be seen but not altered

Parameter Apa yang Diamankan? Word Butuh dokumen?

ParameterDiperlukanApa fungsinya?Contoh
Credential to connect withRequiredThe PDF4me account credential the node authenticates with.PDF4ME account
OperationRequiredThe action this node performs. Select Secure Word Document.Secure Word Document
Word File Input MethodRequiredHow the .docx reaches the node: from the previous node as binary data, as a Base64 string, or from a URL.From Previous Node (Binary Data)
Binary Data Property NameConditionalName of the binary property holding the document. Appears when the file comes from the previous node.data
Document NameRequiredFilename of the input document including the extension. Drives format detection.document.docx
Secure On OpenOptionalToggle that requires a password before the document will open. Leave off if you only want an editing restriction.enabled
Open PasswordConditionalThe password needed to open the file. Required once Secure On Open is enabled. Supply it through an expression, not as literal text.{{ $env.DOC_OPEN_PW }}
Protection TypeOptionalEditing restriction applied to the document: Read Only, Allow Comments, Allow Form Fields, or Allow Revisions.Read Only
Protection PasswordConditionalThe password that lifts the editing restriction. Required once a Protection Type is chosen, and should differ from Open Password.{{ $env.DOC_EDIT_PW }}
Output File NameOptionalFilename of the returned secured document. Keep the .docx extension.secured_document.docx
Output Binary Data NameOptionalBinary property the secured document is written to. Leave as data unless a later node expects another name.data

Opsi Jenis Perlindungan

PilihanApa yang dapat dilakukan penerima
Read OnlyView the document only. No edits of any kind are accepted.
Allow CommentsAdd and edit comments, but not change the document text itself.
Allow Form FieldsFill in form fields while the surrounding content stays locked.
Allow RevisionsEdit, but only with tracked changes recorded so every alteration is visible.

Keluaran

BidangJenisIsi di dalamnya
fileNameStringName of the returned secured document.
fileSizeNumberSize of the secured document in bytes.
successBooleanWhether protection was applied. Branch on this so failures surface as alerts.
originalFileNameStringName of the input document as supplied in Document Name.
secureOnOpenBooleanWhether an open password was applied, echoed back for verification.
protectionTypeStringThe editing restriction applied, such as ReadOnly, or empty when none was set.
messageStringHuman-readable status text describing the result of the operation.

Memeriksa protectionType Dalam respons tersebut, cara termurah untuk memastikan bahwa pembatasan yang Anda maksudkan adalah pembatasan yang benar-benar diterapkan adalah dengan cara tersebut.

Bagaimana Cara Saya Mengatur Keamanan? Word Dokumen di n8n?

  1. Tambahkan PDF4me Word Tambahkan node ini ke alur kerja Anda dan atur. Operasi ke Aman Word Dokumen.
  2. Pilih Anda PDF4me atau buat yang baru dan tempelkan kredensial Anda API kunci.
  3. Pilih Word Metode Input File dan menyediakan .docx melalui ladang di bawahnya.
  4. Mengatur Nama Dokumen dengan ekstensi yang tepat.
  5. Untuk membuka gerbang, nyalakan Aman Saat Terbuka dan mengatur Buka Kata Sandi dari kredensial atau variabel lingkungan.
  6. Untuk mengatur pengeditan gerbang, atur Jenis Perlindungan dan menyediakan yang berbeda Kata Sandi Perlindungan.
  7. Mengatur Nama File Output berakhir di .docx.
  8. Jalankan node, konfirmasi secureOnOpen Dan protectionType Dalam respons tersebut, kemudian teruskan file yang telah diamankan.

Pengaturan Umum

Contoh Alur KerjaCommon n8n workflow patterns using Secure Word Document.
Kirim laporan rahasia
  1. Tahap pelaporan menghasilkan dokumen yang berisi angka-angka sensitif.
  2. Secure On Open menerapkan kata sandi yang tersimpan dalam variabel lingkungan.
  3. File tersebut dikirim melalui email, dan kata sandi dibagikan melalui saluran terpisah.
Sebarkan kontrak untuk dimintai komentar.
  1. Jenis Perlindungan diatur ke Izinkan Komentar.
  2. Para peninjau memberi anotasi tanpa mengubah teks klausa apa pun.
  3. Umpan balik datang tanpa perbedaan yang perlu diselaraskan setelahnya.
Bagikan formulir yang dapat diisi.
  1. Opsi "Izinkan Kolom Formulir" mempertahankan teks di sekitarnya agar tetap statis.
  2. Penerima hanya perlu mengisi kolom yang ditujukan untuk mereka.
  3. Formulir yang dikembalikan cukup konsisten untuk diuraikan secara otomatis.
Kunci templat yang telah disetujui
  1. Templat disetujui dan dipublikasikan ke drive bersama.
  2. Perlindungan Baca Saja mencegah pengeditan lokal secara diam-diam.
  3. Semua orang bekerja berdasarkan rumusan kata yang sama dan berwenang.

Tips Praktis

Keep passwords out of the workflow
An expression reading a credential or environment variable keeps the secret out of exported workflow JSON and out of version control.
Use different values for the two passwords
Reusing one value means anyone who can open the file can also unlock editing, which removes the distinction you set up.
Pick the least restrictive type that works
Allow Comments or Allow Revisions often serves a review better than Read Only, because reviewers can still express changes.
Verify protectionType in the response
The echoed value confirms the restriction landed as intended, which is faster than opening a sample in Word every run.
Secure last in the chain
Watermarking, merging, and header updates all need an editable file. Apply protection after those steps, not before.
Record the passwords before scaling up
This action applies protection and offers no recovery. Store both values in your secret manager before running it across a batch.

Lembar Panduan Singkat

BidangNilai
OperationSecure Word Document
Word File Input MethodFrom Previous Node (Binary Data)
Binary Data Property Namedata
Document Namedocument.docx
Secure On Openenabled
Open Password{{ $env.DOC_OPEN_PW }}
Protection TypeRead Only
Protection Password{{ $env.DOC_EDIT_PW }}
Output File Namesecured_document.docx
Output Binary Data Namedata

Pertanyaan Umum

What is the difference between the open password and the protection password?+
The open password gates the file itself: without it the document will not open at all. The protection password gates editing: the document opens for anyone but stays restricted until that second password is entered. They are separate fields and should hold different values, because a recipient who needs to read but not edit should only ever receive the first one.
What do the Protection Type options do?+
Read Only stops edits entirely. Allow Comments permits commenting but no text changes. Allow Form Fields permits filling fields while the rest stays locked. Allow Revisions permits editing only with tracked changes recorded. Microsoft describes the equivalent desktop behaviour under restricting changes in Word.
Where should I store the passwords in n8n?+
Not in the node. A password typed directly into either field is saved inside the workflow JSON, which gets exported, shared, and often committed to version control. Reference an n8n credential or an environment variable through an expression so the secret stays out of the workflow definition.
Can I apply both an open password and an editing restriction at once?+
Yes. Secure On Open and Protection Type are independent, so a document can require a password to open and still be read-only afterwards. That combination suits a confidential document a named recipient may read but nobody may alter.
How do I remove the protection later?+
Editing restrictions are lifted in Word by supplying the protection password, and the open password is entered when the file is opened. Keep both values in your secret store rather than relying on memory, because this action applies protection and there is no recovery path through it if the passwords are lost.

Tindakan Terkait

Tugas yang Sama di Platform Lain

Dapatkan Bantuan