Pular para o conteúdo principal

Seguro Word Documento em n8n

Seguro Word Document é um PDF4me ação do nó em n8n que tranca um .docx Crie um arquivo com senha, restrição de edição ou ambos. Use-o para proteger relatórios confidenciais antes do envio, impedir alterações em um modelo assinado ou permitir que revisores comentem um contrato sem alterar o texto.

O que este nó faz

PDF4me Word: Seguro Word Document aplica dois tipos independentes de proteção. Segurança ao abrir mais Senha de abertura Decide se o arquivo será aberto ou não. Tipo de proteção mais Senha de proteção Define o que pode ser alterado depois de aberto, desde somente leitura até comentários, campos de formulário ou apenas revisões rastreadas. Use um ou ambos, ou ambos em conjunto.

Artigos relacionados no blogue
Ainda não há nenhuma publicação no blogue sobre esta funcionalidade — em breve.
Entretanto, explore o blogue da PDF4me para encontrar tutoriais e fluxos de trabalho para todas as plataformas.
Visite o blogue

Autenticando seu API Solicitar

Todo PDF4me nó em n8n requer um válido Credencial para se conectar comCrie ou selecione um que contenha o seu PDF4me API chave para que o fluxo de trabalho possa autenticar solicitações de segurança de documentos.

Fatos importantes que você não deve perder

Duas senhas, dois trabalhos diferentes
A senha de abertura restringe o acesso ao arquivo. A senha de proteção restringe a edição. Definir ambas com o mesmo valor concede ao editor as chaves para ambas, o que anula o propósito da restrição.
Nunca digite uma senha no nó.
Tudo o que for inserido diretamente será adicionado ao fluxo de trabalho salvo. JSON, que é exportado e frequentemente incluído no git. Use uma expressão que leia uma credencial ou variável de ambiente.
A proteção é aplicada e não pode ser recuperada.
Essa ação adiciona proteção. Se as senhas forem perdidas, não há como recuperá-las por meio desse nó; portanto, armazene ambos os valores antes que o fluxo de trabalho seja executado em grande escala.
O nó PDF4me Word no n8n com a Operação definida como "Proteger Documento Word", o Método de Entrada do Arquivo Word definido como "Do Nó Anterior", a opção "Proteger ao Abrir" ativada, o Tipo de Proteção definido como "Somente Leitura" e o Nome do Arquivo de Saída definido como "secured_document.docx".

A opção "Seguro ao abrir" é um botão de alternância, e o "Tipo de proteção" é um menu suspenso separado, definido como "Somente leitura". Os dois campos de senha abaixo deles são independentes um do outro.

Senha aberta vs. Restrição de edição

PerguntaSenha abertaRestrição de edição
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

Quais parâmetros o Secure utiliza? Word Precisa de algum documento?

ParâmetroObrigatórioO que fazExemplo
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

Opções de tipo de proteção

OpçãoO que o destinatário pode fazer
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.

Saída

CampoTipoO que contém
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.

Verificando protectionType Na resposta, está a maneira mais barata de confirmar se a restrição pretendida é realmente a que foi aplicada.

Como configuro um sistema seguro? Word Documento em n8n?

  1. Adicione o PDF4me Word Adicione um nó ao seu fluxo de trabalho e configure-o. Operação para Seguro Word Document.
  2. Selecione o seu PDF4me credencial, ou crie uma e cole a sua API chave.
  3. Escolha um Word Método de entrada de arquivo e fornecer o .docx através do campo abaixo dele.
  4. Definir Nome do documento com a extensão correta.
  5. Para abrir o portão, ligue Segurança ao abrir e definir Senha de abertura a partir de uma credencial ou variável de ambiente.
  6. Para controlar a edição, defina Tipo de proteção e fornecer um diferente Senha de proteção.
  7. Definir Nome do arquivo de saída terminando em .docx.
  8. Execute o nó e confirme. secureOnOpen e protectionType Na resposta, encaminhe o arquivo protegido adiante.

Configurações típicas

Exemplos de fluxo de trabalhoCommon n8n workflow patterns using Secure Word Document.
Enviar um relatório confidencial
  1. Uma etapa de geração de relatórios produz um documento com dados sensíveis.
  2. A opção "Segurar ao abrir" aplica uma senha armazenada em uma variável de ambiente.
  3. O arquivo é enviado por e-mail e a senha é compartilhada por um canal separado.
Divulgue um contrato para comentários.
  1. O tipo de proteção está definido como Permitir comentários.
  2. Os revisores fazem anotações sem alterar o texto original de nenhuma cláusula.
  3. O feedback chega sem nenhuma diferença a ser resolvida posteriormente.
Distribua um formulário preenchível.
  1. Permitir campos de formulário mantém o texto ao redor fixo.
  2. Os destinatários devem preencher apenas os campos que lhes são destinados.
  3. Os formulários retornados são suficientemente consistentes para serem analisados automaticamente.
Bloqueie um modelo aprovado
  1. Um modelo é aprovado e publicado em uma unidade compartilhada.
  2. A proteção "Somente leitura" impede edições locais silenciosas.
  3. Todos trabalham com base na mesma redação oficial.

Dicas práticas

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.

Folha de dicas

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

Perguntas frequentes

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.

Ações relacionadas

Mesma tarefa em outras plataformas

Obtenha ajuda