Saltar al contenido principal

Seguro Word Documento en n8n

Seguro Word Documento es un PDF4me acción del nodo en n8n que bloquea un .docx Archivo con contraseña, restricción de edición o ambas. Úselo para proteger informes confidenciales antes de enviarlos, evitar que se altere una plantilla firmada o permitir que los revisores comenten un contrato sin modificar su texto.

Lo que hace este nodo

PDF4me Word: Seguro Word Documento se aplica dos tipos de protección independientes. Seguro al abrir más Abrir contraseña decide si el archivo se abre o no. Tipo de protección más Contraseña de protección Decide qué se puede modificar una vez abierto, desde solo lectura hasta comentarios, campos de formulario o revisiones controladas. Puede usar una u otra opción, o ambas.

Entradas de blog relacionadas
Aún no hay ninguna entrada de blog sobre esta función; estará disponible próximamente.
Mientras tanto, echa un vistazo al blog de PDF4me para encontrar tutoriales y flujos de trabajo para todas las plataformas.
Visita el blog

Autenticando su API Pedido

Cada PDF4me nodo en n8n requiere un válido Credencial para conectarse con. Crea o selecciona uno que contenga tu PDF4me API clave para que el flujo de trabajo pueda autenticar las solicitudes de seguridad de los documentos.

Datos importantes que no debes perderte

Dos contraseñas, dos trabajos diferentes
La contraseña de apertura restringe el acceso al archivo. La contraseña de protección restringe la edición. Si se les asigna el mismo valor, el editor tendrá acceso a ambas, lo que anula el propósito de la restricción.
Nunca introduzca una contraseña en el nodo.
Todo lo que se introduce directamente se guarda en el flujo de trabajo. JSON, que se exporta y a menudo se sube a Git. Utilice una expresión que lea una credencial o una variable de entorno.
La protección se aplica, no es recuperable.
Esta acción añade protección. Si se pierden las contraseñas, no hay forma de recuperarlas a través de este nodo, así que guarde ambos valores antes de que el flujo de trabajo se ejecute a gran escala.
El nodo PDF4me Word en n8n con Operación configurada en Documento Word seguro, Método de entrada de archivo Word configurado en Desde nodo anterior, Seguridad al abrir activada, Tipo de protección configurado en Solo lectura y Nombre de archivo de salida configurado en secure_document.docx

La opción "Seguridad al abrir" es un interruptor, y "Tipo de protección" es un menú desplegable independiente configurado como "Solo lectura". Los dos campos de contraseña que aparecen debajo son independientes entre sí.

Acceso mediante contraseña frente a restricción de edición

PreguntaAbrir contraseñaRestricción de edición
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

¿Qué parámetros asegura? Word ¿Necesita documentación?

ParámetroRequeridoLo que haceEjemplo
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

Opciones de tipo de protección

OpciónLo que el destinatario puede hacer
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.

Producción

CampoTipoLo que contiene
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.

Comprobando protectionType En la respuesta está la forma más barata de confirmar que la restricción que pretendías es la que realmente se aplicó.

¿Cómo configuro la seguridad? Word Documento en n8n¿

  1. Añade el PDF4me Word nodo a su flujo de trabajo y configurar Operación a Seguro Word Documento.
  2. Seleccione su PDF4me credencial, o cree una y pegue su API llave.
  3. Elige uno Word Método de entrada de archivos y suministrar el .docx a través del campo que hay debajo.
  4. Colocar Nombre del documento con la extensión correcta.
  5. Para abrir la puerta, encienda Seguro al abrir y establecer Abrir contraseña a partir de una credencial o variable de entorno.
  6. Para restringir la edición, configure Tipo de protección y suministrar uno diferente Contraseña de protección.
  7. Colocar Nombre del archivo de salida terminando en .docx.
  8. Ejecutar el nodo, confirmar secureOnOpen y protectionType En la respuesta, luego redirija el archivo protegido.

Configuraciones típicas

Ejemplos de flujo de trabajoCommon n8n workflow patterns using Secure Word Document.
Enviar informe confidencial
  1. El proceso de elaboración de informes produce un documento con cifras confidenciales.
  2. La función Secure On Open aplica una contraseña almacenada en una variable de entorno.
  3. El archivo se envía por correo electrónico y la contraseña se comparte a través de un canal aparte.
Haga circular un contrato para comentarios
  1. El tipo de protección está configurado para permitir comentarios.
  2. Los revisores realizan anotaciones sin alterar el texto de ninguna cláusula.
  3. La retroalimentación llega sin ninguna diferencia que conciliar posteriormente.
Distribuye un formulario rellenable
  1. La opción Permitir campos de formulario mantiene fijo el texto circundante.
  2. Los destinatarios solo deben completar los campos destinados a ellos.
  3. Los formularios devueltos son lo suficientemente consistentes como para ser analizados automáticamente.
Bloquear una plantilla aprobada
  1. Se aprueba una plantilla y se publica en una unidad compartida.
  2. La protección de solo lectura impide las ediciones locales silenciosas.
  3. Todos trabajan a partir de la misma redacción autorizada.

Consejos prácticos

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.

Hoja de trucos

CampoValor
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

Preguntas frecuentes

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.

Acciones relacionadas

La misma tarea en otras plataformas

Obtén ayuda