# Sign PDF documents with PAdES: n8n workflow template

> Started by another system calling it. It calls services over plain HTTP rather than through connectors.

Source: https://millionrounds.com/workflow/sign-pdf-documents-with-pades (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Documents and files](https://millionrounds.com/workflows?category=Documents+and+files#library)

# Sign PDF documents with PAdES

Started by another system calling it. It calls services over plain HTTP rather than through connectors. 48 steps, 3 branches: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fsign-pdf-documents-with-pades)

**48 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**0** Loops or waits

**0** Services by connector: it calls them over plain HTTP

## The flow

Starts it 8 Logic 11 Service 29

The steps in the order they run, from what starts it.

- 1 **Webhook** Webhook *Starts it*
- 2 **Webhook - LandingPage-LangHU** Webhook *Starts it*
- 3 **Webhook - LandingPage-LangEN** Webhook *Starts it*
- 4 **Webhook - LandingPage-LangDE** Webhook *Starts it*
- 5 **Write Files: PDF** Read Write File *Service*
- 6 **Get LandingPage-LangHU** Http Request *Service*
- 7 **Get LandingPage-LangEN** Http Request *Service*
- 8 **Get LandingPage-LangDE** Http Request *Service*
- 9 **Write Files: PFX** Read Write File *Service*
- 10 **Respond to Webhook - LandingPage-LangHU** Respond To Webhook *Starts it*
- 11 **Respond to Webhook - LandingPage-LangEN** Respond To Webhook *Starts it*
- 12 **Respond to Webhook - LandingPage-LangDE** Respond To Webhook *Starts it*
- 13 **Write Files: LOGO** Read Write File *Service*
- 14 **Check Java** Execute Command *Service*
- 15 **Java Missing?** If *Logic*
- 16 **Get JAR** Http Request *Service*
- 17 **Get Install Script** Http Request *Service*
- 18 **Write JAR** Read Write File *Service*
- 19 **Write Install Script** Read Write File *Service*
- 20 **Extract Password** Set *Logic*
- 21 **Install Dependencies** Execute Command *Service*
- 22 **Read PDF** Read Write File *Service*
- 23 **Write PDF** Read Write File *Service*
- 24 **Get Trust Script** Http Request *Service*
- 25 **Write Trust Script** Read Write File *Service*
- 26 **Add Codegic Trust** Execute Command *Service*
- 27 **Read PFX** Read Write File *Service*
- 28 **Write PFX** Read Write File *Service*
- 29 **Get Cert Script** Http Request *Service*
- 30 **Write Cert Script** Read Write File *Service*
- 31 **Run Cert Script** Execute Command *Service*
- 32 **Get Process Script** Http Request *Service*
- 33 **Write Process Script** Read Write File *Service*
- 34 **Without Visible?** If *Logic*
- 35 **No Visible** Set *Logic*
- 36 **Show Visible** Set *Logic*
- 37 **Switch Sign Visible** Switch *Logic*
- 38 **B** Set *Logic*
- 39 **T** Set *Logic*
- 40 **LT** Set *Logic*
- 41 **LTA** Set *Logic*
- 42 **Components** Set *Logic*
- 43 **Sign PDF** Execute Command *Service*
- 44 **Read Signed PDF** Read Binary File *Service*
- 45 **Return Signed PDF** Respond To Webhook *Starts it*
- 46 **Get Cleanup Script** Http Request *Service*
- 47 **Write Cleanup Script** Read Write File *Service*
- 48 **Cleanup** Execute Command *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 48, with 3 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Nothing by connector; it calls services over plain HTTP
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 48 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 48 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fsign-pdf-documents-with-pades)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Workflows like it

Also documents and files, with the same services where possible, closest in size first.

- [**AI WhatsApp Chatbot with Voice and Image** 47 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/ai-whatsapp-chatbot-with-voice-and-image)
- [**AI agent to chat with Google Drive** 49 steps · calls a model · Google Drive, Supabase](https://millionrounds.com/workflow/ai-agent-to-chat-with-google-drive)
- [**Automated document ingestion & vectorization with RAG** 47 steps · calls a model · Google Docs, Google Drive](https://millionrounds.com/workflow/automated-document-ingestion-and-vectorization-with-rag)
- [**Generate workflow documentation and node names with OpenAI** 51 steps · calls a model · n8n data table](https://millionrounds.com/workflow/generate-workflow-documentation-and-node-names-with-openai)
- [**Create restorable n8n Docker backups in Google Drive with SSH** 44 steps · Google Drive](https://millionrounds.com/workflow/create-restorable-n8n-docker-backups-in-google-drive-with-ss)
- [**AI interpreter and translator for WhatsApp – translate voice** 44 steps · calls a model](https://millionrounds.com/workflow/ai-interpreter-and-translator-for-whatsapp-translate-voice)
