Skip to main content

2 posts tagged with "PDF4me"

View all tags

Fill and Sign a PDF When a New SharePoint Item Is Created — Power Automate

· 22 min read
SEO and Content Writer

Fill a PDF Form is the Power Automate action that accepts a fillable PDF template and a JSON payload, then hands back that same PDF with every field already populated. Pair it with PDF - Sign and a SharePoint When an item is created trigger, and invoice generation runs on its own: someone adds a row, Power Automate assembles the signed PDF, and Dropbox files it away under a timestamped name.

The bottleneck in invoice-style workflows was never the PDF itself, it is the manual step wedged in the middle. Someone opens the template, re-keys eight values from a spreadsheet row, prints it, signs it, scans it back, and uploads the result. Each of those fields is one more chance to misspell a customer name or lose a digit off the total. This guide swaps that whole routine for seven Power Automate actions: SharePoint raises the trigger, Dropbox hands over the template plus the signature image, PDF4me populates the form and applies the signature, and Dropbox saves the finished file. Every screenshot is real, the Compose expression is spelled out, the SharePoint schema is listed, and the sample signed invoice is yours to download.

The flow at a glance
1. When an item is created
Watches the New Customer Invoices list in SharePoint and starts the flow the moment a new row appears.
2. Get file content
Pulls sample_fill_form.pdf from /blog data/fill a pdf/ in Dropbox. Leave Infer Content Type on Yes so the binary survives.
3. Get file content 1
Grabs signature.png out of the same Dropbox folder, again with Infer Content Type set to Yes.
4. Compose
Assembles a single JSON payload out of the SharePoint row: customerName, email, phone, invoiceNumber, invoiceDate, address, amount.
5. Fill a PDF Form
PDF4me step. Feed the PDF binary to Template File Data, the Compose result to JSON Data, and set Keep PDF template Editable to No.
6. PDF - Sign
PDF4me step. Drops signature.png bottom-right on page 1 at 50 wide by 20 high, margin 15, full opacity 100.
7. Create file
Writes to Dropbox /blog data/fill a pdf/output with a File Name built by concat(Signed_, invoiceNumber, _, ticks(utcNow()), .pdf).

Create advanced templates for document generation

· 12 min read
SEO and Content Writer

Document generation with mail merge is the trick of reading values from a data source and dropping each one into the matching placeholder in a template. You keep two things: a template that holds the merge fields (the variables waiting to be filled) and a data source that supplies the values plus everything that stays the same on every copy. PDF4me's reporting engine takes those two files and hands back a finished document.

PDF4me accepts Word, HTML, and PDF templates, and the richest of the three is Word. With a small, readable syntax you can design one Word template that covers invoices, receipts, contracts, quotes, or any personalized document, then generate thousands of them from data. This guide walks through the whole syntax — merge fields, conditions, formatting, tables, images, and inline HTML — with copy-paste examples and a sample template you can download and run. Every syntax link points at the exact page in the Word Template Syntax documentation.

The building blocks at a glance
Merge fields
The core placeholder. Write <<[FieldName]>> in Word and the engine swaps it for the matching value from your data.
Conditions
Show or hide content with <<if>>, <<elseif>> and <<else>> so one template covers every case.
Formatting
Shape a value inline with <<[token]:"format">> for dates, number formats and text case.
Tables and loops
Repeat a row or a whole section for every item in a list with <<foreach>>.
Images
Drop a logo, photo or signature into a text box with <<image [imageUrl]>> from a URL or Base64.
Inline HTML
Render pre-formatted HTML straight into the document with the <<[token] -html>> switch.