Skip to main content

Word to PDF, Then a Swiss QR Bill on Top. Power Automate Merges It All!

· 17 min read
SEO and Content Writer

You have a Word document (e.g. an invoice or letter) and need a Swiss QR Bill payment slip merged onto it so the final PDF is ready to send. Doing it by hand means converting Word to PDF, generating the QR bill, then combining the two. Power Automate and PDF4me do it in one flow: get the Word file from Dropbox, Convert to PDF, Create SwissQR Bill with your creditor and debtor details, get a base PDF (e.g. your invoice layout), Merge two PDF files one over another as Overlay so the QR bill sits on the base, then Create file in Dropbox. Seven actions. One flow. No code.

This guide uses authentic screenshots and descriptive image captions so you can follow each step and match the configuration (paths, file names, and parameters) in your own flow.

In a nutshell: Manually trigger a flowDropbox – Get Word file content using path (/blog data/convert-swissqr-merge/3page.docx) → PDF4me – Convert to PDF (Word content + file name) → PDF4me – Create SwissQR Bill (IBAN, amount, creditor, debtor, file name SwissQR.pdf) → Dropbox – Get Base PDF file content using path (/blog data/convert-swissqr-merge/demo_5_page.pdf) → PDF4me – Merge two PDF files one over another as Overlay (base + SwissQR layer) → Dropbox – Create file (PA_Final_Result.pdf in /blog data/convert-swissqr-merge/output). Result: one merged PDF with your content and the Swiss QR payment slip.

What You'll Get

Input: A Word file (e.g. 3page.docx) and a base PDF (e.g. demo_5_page.pdf) in Dropbox, plus payment data for the Swiss QR Bill (IBAN, amount, creditor, debtor, reference, etc.). Output: A single PDF that combines the base document with the generated Swiss QR Bill as an overlay, saved to your chosen folder (e.g. PA_Final_Result.pdf in /blog data/convert-swissqr-merge/output). The QR bill includes Receipt and Payment part with a scannable QR code (e.g. CHF 500.00, Test AG, Test GmbH, invoice and contract info).


What You Need

  • Power AutomateOpen Power Automate. Create a new cloud flow (Instant or Automated).
  • PDF4me API keyGet your API key. Use it when you add PDF4me actions. See Connect PDF4me to Power Automate.
  • Dropbox — For the Word file, base PDF, and output folder. Connector actions: Get Word file content using path, Get Base PDF file content using path, and Create file.
  • Word file — e.g. 3page.docx, stored at a path like /blog data/convert-swissqr-merge/3page.docx. This is converted to PDF in the flow (the conversion output can be used elsewhere; here the main output is the overlay-merged PDF).
  • Base PDF — e.g. demo_5_page.pdf, at /blog data/convert-swissqr-merge/demo_5_page.pdf. This is the document that will sit underneath the Swiss QR Bill in the overlay merge.
  • Swiss QR Bill data — IBAN (e.g. CH0200700110003765824), amount (e.g. 500), currency (CHF), creditor (e.g. Test AG, Zurich, Test Strasse House 2, 8004), debtor (e.g. Test GmbH, Bern, Musterstrasse Apartment 3, 3000), reference type (e.g. NON), optional billing info and unstructured message (e.g. invoice #2026-003, Contract: ABC-123).

The Flow at a Glance (7 Steps)

  1. Manually trigger a flow (or use a file trigger for automation).
  2. Dropbox – Get Word file content using path — Path: /blog data/convert-swissqr-merge/3page.docx. Infer Content Type: Yes.
  3. PDF4me – Convert to PDF — File Content from step 2 (Get Word file co...). File Name: e.g. Test.docx.
  4. PDF4me – Create SwissQR Bill — Amount, Currency (CHF), IBAN, creditor and debtor address fields, File Name SwissQR.pdf. File Content can link to Convert to PDF output if needed; the action produces the QR bill PDF.
  5. Dropbox – Get Base PDF file content using path — Path: /blog data/convert-swissqr-merge/demo_5_page.pdf. Infer Content Type: Yes.
  6. PDF4me – Merge two PDF files one over another as Overlay — Base File Content from step 5 (Get Base PDF fil...), Base File Name: Base.pdf. Layer File Content from step 4 (Create SwissQR...), Layer File Name: SwissQR.pdf.
  7. Dropbox – Create file — Folder Path: /blog data/convert-swissqr-merge/output. File Name: PA_Final_Result.pdf. File Content: from step 6 (Merge two PDF...).

Complete flow overview

Power Automate flow: Manual trigger, Get Word file content (Dropbox), Convert to PDF (PDF4me), Create SwissQR Bill (PDF4me), Get Base PDF file content (Dropbox), Merge two PDF files one over another as Overlay (PDF4me), Create file (Dropbox)

Seven steps: Trigger, Get Word file and Convert to PDF, Create SwissQR Bill, Get Base PDF, Merge as Overlay, Create file. The overlay step combines the base PDF and the Swiss QR Bill PDF; the result is saved to Dropbox.


Step 1: Get Word File Content (Dropbox)

Flow so far: Trigger and one Dropbox action.

  1. Add Manually trigger a flow (or When a file is created in Dropbox).
  2. Add DropboxGet Word file content using path.
  3. **File Path *** — /blog data/convert-swissqr-merge/3page.docx. Use the folder icon to browse if needed.
  4. Advanced parametersInfer Content Type: Yes.
  5. Save. File Content (and optionally file name) will be used in Convert to PDF.

Get Word file content using path

Dropbox Get Word file content using path: Parameters tab, File Path /blog data/convert-swissqr-merge/3page.docx, Advanced parameters Infer Content Type Yes, Connected to Dropbox

Dropbox Get Word file content configured with File Path /blog data/convert-swissqr-merge/3page.docx and Infer Content Type Yes. Connection to Dropbox shown at bottom.


Step 2: Convert to PDF (PDF4me)

Flow so far: Trigger → Get Word → Convert to PDF.

  1. Add PDF4meConvert to PDF.
  2. File Content — Select the output from step 1 (e.g. Get Word file co... dynamic content).
  3. File Name — e.g. Test.docx (the name of the input file for conversion).
  4. Save. The action returns the PDF output; in this flow the main use is to feed the Word-to-PDF result if needed. The Swiss QR Bill is created in the next step.
  5. Ensure Connected to PDF4me Connect at the bottom.

Convert to PDF: Parameters

PDF4me Convert to PDF action: File Content from Get Word file content, File Name Test.docx, Parameters tab, Connected to PDF4me Connect

Convert to PDF configured with File Content from Dropbox Get Word file and File Name Test.docx. Connection to PDF4me shown.


Step 3: Create SwissQR Bill (PDF4me)

Flow so far: Trigger → Get Word → Convert to PDF → Create SwissQR Bill.

  1. Add PDF4meCreate SwissQR Bill.
  2. Parameters tab. Set payment and party details:
    • File NameSwissQR.pdf.
    • Amount — e.g. 500 (or dynamic from a list/trigger).
    • CurrencyCHF (or EUR).
    • IBAN — e.g. CH0200700110003765824.
    • Reference — Optional; max 27 characters. Reference Type — e.g. NON (no reference), or QRR / SCOR.
    • Creditor: Creditor Name (e.g. Test AG), Creditor AddressType S, Creditor City (e.g. Zurich), Creditor PostalCode (e.g. 8004), Creditor AddressLine1 (e.g. Test Strasse), Creditor AddressLine2 (e.g. House 2).
    • Ultimate Debtor: Ultimate Debtor Name (e.g. Test GmbH), City (e.g. Bern), PostalCode (e.g. 3000), AddressLine1 (e.g. Musterstrasse), AddressLine2 (e.g. Apartment 3), Ultimate Debtor AddressType (e.g. S).
    • Language Type — e.g. English.
    • Separator Line — e.g. LineWithScissor.
    • BillingInfo — e.g. Contract: ABC-123.
    • Unstructured Message — e.g. invoice #2026-003 - Monthly Services.
    • AV1 Parameters — Optional; e.g. Name AV1: UV;UltraPay005;12345.
  3. File Content — If the action accepts an optional base file, you can link Convert to PDF output here; otherwise the action generates the QR bill PDF from the parameters above.
  4. Save. Output (e.g. File Content, File Name) is used as the Layer in the Merge Overlay step.

Create SwissQR Bill: Parameters (payment and creditor)

PDF4me Create SwissQR Bill: Parameters tab with Amount, Currency CHF, Creditor Test AG Zurich, File Name SwissQR.pdf, BillingInfo Contract ABC-123, Convert to PDF tag

Create SwissQR Bill parameters showing Amount, Currency CHF, Creditor (Test AG, Zurich, Test Strasse, House 2, 8004), File Name SwissQR.pdf, and BillingInfo. Convert to PDF output can be linked as File Content where supported.

Create SwissQR Bill: Debtor and message

Create SwissQR Bill: File Name SwissQR.pdf, IBAN, Language English, Reference Type NON, Separator Line LineWithScissor, Ultimate Debtor Test GmbH Bern Musterstrasse Apartment 3, Unstructured Message invoice 2026-003 Monthly Services

Swiss QR Bill configuration with IBAN, Language Type English, Reference Type NON, Separator Line LineWithScissor, Ultimate Debtor (Test GmbH, Bern, 3000, Musterstrasse, Apartment 3), and Unstructured Message for invoice and contract details.


Step 4: Get Base PDF File Content (Dropbox)

Flow so far: Trigger → Get Word → Convert to PDF → Create SwissQR Bill → Get Base PDF.

  1. Add DropboxGet Base PDF file content using path (or the action that returns PDF content by path).
  2. **File Path *** — /blog data/convert-swissqr-merge/demo_5_page.pdf.
  3. Advanced parametersInfer Content Type: Yes.
  4. Save. File Content (and optionally file name) will be the Base in the Merge Overlay step.

Get Base PDF file content using path

Dropbox Get Base PDF file content using path: File Path /blog data/convert-swissqr-merge/demo_5_page.pdf, Advanced parameters Infer Content Type Yes, Connected to Dropbox

Get Base PDF file content configured with File Path /blog data/convert-swissqr-merge/demo_5_page.pdf and Infer Content Type Yes. This PDF is used as the base layer in the overlay merge.


Step 5: Merge Two PDF Files One Over Another as Overlay (PDF4me)

Flow so far: All steps up to the merge.

  1. Add PDF4meMerge two PDF files one over another as Overlay.
  2. Parameters tab:
    • **Base File content *** — Select output from step 4 (e.g. Get Base PDF fil...).
    • **Base File Name *** — Base.pdf.
    • **Layer File Content *** — Select output from step 3 (e.g. Create SwissQR...).
    • **Layer File Name *** — SwissQR.pdf.
  3. Save. The action returns the merged PDF (base with Swiss QR Bill overlaid). Use this in Create file.
  4. Connected to PDF4me Connect at the bottom.

Merge two PDF files one over another as Overlay

PDF4me Merge two PDF files one over another as Overlay: Base File content from Get Base PDF file, Base File Name Base.pdf, Layer File Content from Create SwissQR Bill, Layer File Name SwissQR.pdf, Parameters tab

Merge Overlay configured with Base from Get Base PDF file (Base.pdf) and Layer from Create SwissQR Bill (SwissQR.pdf). The merged PDF is used in the next step as File Content for Create file.


Step 6: Create File (Dropbox)

Flow so far: All steps; final action saves the merged PDF.

  1. Add DropboxCreate file.
  2. **Folder Path *** — /blog data/convert-swissqr-merge/output.
  3. **File Name *** — PA_Final_Result.pdf.
  4. **File Content *** — Select the output from step 5 (e.g. Merge two PDF...).
  5. Save. Run the flow; the merged PDF (invoice/content + Swiss QR Bill) appears in the output folder.
  6. Connected to Dropbox at the bottom.

Create file: Save merged PDF to Dropbox

Dropbox Create file: Folder Path /blog data/convert-swissqr-merge/output, File Name PA_Final_Result.pdf, File Content from Merge two PDF, Parameters tab

Create file configured with Folder Path /blog data/convert-swissqr-merge/output, File Name PA_Final_Result.pdf, and File Content from the Merge two PDF files one over another as Overlay action.


Output: Merged PDF with Swiss QR Bill

The flow produces a single PDF that combines your base document (e.g. demo_5_page.pdf) with the generated Swiss QR Bill as an overlay. The QR bill shows Receipt and Payment part, QR code, creditor (e.g. Test AG, IBAN, Zurich), debtor (e.g. Test GmbH, Bern), amount (e.g. CHF 500.00), and optional invoice/contract text (e.g. invoice #2026-003, Contract: ABC-123). The file is saved as PA_Final_Result.pdf in the output folder.

Generated output: merged PDF with Swiss QR Bill showing Receipt and Payment part, QR code, creditor and debtor details, CHF amount, and invoice or contract information

Final merged PDF with Swiss QR Bill: payment slip layout with scannable QR code, creditor and debtor blocks, and amount in CHF. Ready for distribution or printing.


Use Cases

Invoices and quotes: Use a Word or PDF invoice as the base; add a compliant Swiss QR Bill as overlay so each PDF is both human-readable and machine-scannable for payment.

Bulk payment slips: Trigger the flow from a list (e.g. SharePoint or Excel) with different amounts and debtor data; generate one merged PDF per row and save to a folder or send by email.

Letterhead + QR bill: Use a company letterhead or template PDF as the base and overlay the Swiss QR Bill so the final document is branded and payment-ready.


Quick Reference

StepActionKey settingExample
1Dropbox Get Word file contentFile Path/blog data/convert-swissqr-merge/3page.docx
2PDF4me Convert to PDFFile Content, File NameFrom step 1; Test.docx
3PDF4me Create SwissQR BillAmount, Currency, IBAN, Creditor, Debtor, File Name500, CHF, Test AG / Test GmbH; SwissQR.pdf
4Dropbox Get Base PDF file contentFile Path/blog data/convert-swissqr-merge/demo_5_page.pdf
5PDF4me Merge OverlayBase (content + name), Layer (content + name)Get Base PDF → Base.pdf; Create SwissQR → SwissQR.pdf
6Dropbox Create fileFolder Path, File Name, File Content/blog data/convert-swissqr-merge/output; PA_Final_Result.pdf; from step 5

For full parameter details, see Create SwissQR Bill — Power Automate and Merge two PDF files one over another as Overlay — Power Automate.


Troubleshooting

Wrong file in Merge Overlay

Base File Content must be the PDF that should appear underneath (e.g. invoice or letter). Layer File Content must be the Swiss QR Bill PDF from Create SwissQR Bill. Map the correct step outputs (Get Base PDF and Create SwissQR Bill).

Swiss QR Bill validation errors

Check IBAN format (Swiss IBAN 21 characters), amount and currency, and that creditor and debtor address fields match the required structure (AddressType S or K). Reference must be max 27 characters when used.

401, 402, or connection errors

See PDF4me Troubleshooting for API key, credits, and connectivity.


What's Next

  1. Run the flow — Trigger manually and confirm PA_Final_Result.pdf appears in the output folder with the base content and Swiss QR Bill visible.
  2. Automate — Replace the manual trigger with When a file is created in Dropbox (e.g. in the convert-swissqr-merge folder) and use the trigger file as the Word or base PDF path.
  3. Dynamic data — Pull amount, debtor, and reference from SharePoint, Excel, or Dynamics 365 and pass them into Create SwissQR Bill for batch generation.
  4. More actions — Add Send an email or SharePoint – Create file after Create file to email or store the merged PDF.