Save as PDF β
Save web pages as PDF files using the browser's print functionality. Configure PDF generation settings, file naming, and save options for automated document creation.
π Field Options β
| Field Options | Required | Description | Example Values |
|---|---|---|---|
| Press Ctrl + P | No | Automatically trigger print dialog | Toggle ON/OFF |
| Press Ctrl + S | No | Use Ctrl+S shortcut for saving | Toggle ON/OFF |
| Set the image path to identify the print preview window. | No | Custom image for print preview window detection | /path/to/image.png |
| Set the image path to identify the print button. | No | Custom image to identify and click print button | /path/to/print_btn.png |
| Set delay time after opening print window | No | Wait time after print dialog opens | 1000, 2000 (milliseconds) |
| Set delay time after pdf saved. | No | Wait time after PDF is saved | 1000, 2000 (milliseconds) |
| Wait until the print page title matches? | No | Regex pattern to wait for matching print page title | .*\.pdf$, (?i)^Application.* |
| If file already exists in the save location then replace it | No | Overwrite existing files with same name | Toggle ON/OFF |
Set the confirm replace save as browser window title name | No | Set the confirm replace save as browser window title name | Toggle ON/OFF |
Set the save as browser window title name | No | Set the save as browser window title name | Toggle ON/OFF |
| Direct Save Page to PDF (Firefox only) | No | Direct PDF save without print dialog | Toggle ON/OFF |
| Field Value | No | Custom filename for PDF | document.pdf, report_{$name$}.pdf |
βοΈ Configuration β
π¨οΈ Print Options β
π Press Ctrl + P β
Purpose: Automatically trigger the print dialog without manual keyboard input.
How it works:
- If you want to save the page through
Ctrl + P, turn on this option - No need to manually press
Ctrl + Pbuttons
Note
If your file/PDF is downloaded after clicking any button, provide the selector query of that button in field selector query.
π Set the image path to identify the print preview window. β
Purpose: Use custom image to detect when print preview window is ready.
How to configure:
- Save an image of the print preview window on your PC
- Provide the image path in this option
- Extension waits until the image is visible on screen
Image Requirements:
- Clear screenshot of print preview window
- Unique elements that identify the print dialog
- Reasonable file size for quick processing
Example Image:

Important
- If you are using the same image to other pc so maybe the image is not working properly.
- So you can take the image from the same pc where you are using the extension.
- If you resize the browser window so maybe the image is not working properly.
π Set the image path to identify the print button. β
Purpose: Use custom image to locate and click the print button in the print window.
How to configure:
- Save an image of the print button on your PC
- Provide the image path in this option
- Extension waits until the button image is detected and clicked
π Set delay time after opening print window β
Purpose: Add wait time between opening print window and saving the PDF.
Configuration:
- Delay time in milliseconds
- Recommended values: 3000-5000ms
- Adjust based on page complexity and loading time
π Set delay time after pdf saved. β
Purpose: Add wait time after the PDF file has been saved before proceeding further.
Configuration:
- Delay time in milliseconds (e.g.
2000)
π Wait until the print page title matches? β
Purpose: Wait until the browser page or print title matches a specified regex pattern before saving.
Here are some useful regex examples for matching browser page titles.
| Regex | Matches | Description |
|---|---|---|
.* | Any title | Match every page title. |
(?i).* | Any title | Match every title (case-insensitive). |
^My Page$ | My Page | Exact title match. |
(?i)^My Page$ | my page, MY PAGE | Exact title, ignore case. |
Invoice | Invoice 123 | Title contains Invoice. |
(?i)Invoice | invoice, INVOICE | Contains Invoice, ignore case. |
^Invoice | Invoice #123 | Title starts with Invoice. |
Invoice$ | Final Invoice | Title ends with Invoice. |
(?i)\.pdf$ | form.pdf | Ends with .pdf (ignore case). |
(?i)^.*\.pdf$ | Application.pdf | Any PDF filename. |
(?i)^Application\.pdf$ | Application.pdf | Exact PDF filename. |
(?i)^Application.*\.pdf$ | Application_v2.pdf | PDF beginning with Application. |
(?i)Application.* | Application Form - Chrome | Title contains Application followed by anything. |
(?i)^.*Google Chrome$ | form.pdf - Google Chrome | Any Chrome window. |
(?i)^.*Microsoft Edge$ | form.pdf - Microsoft Edge | Any Edge window. |
(?i)^.*(Chrome|Edge)$ | Chrome or Edge | Match either browser. |
(?i)^.*\.pdf - Google Chrome$ | abc.pdf - Google Chrome | Any PDF opened in Chrome. |
(?i)^.*\.pdf - Microsoft Edge$ | abc.pdf - Microsoft Edge | Any PDF opened in Edge. |
(?i)^.*.(pdf|docx)$ | a.pdf, b.docx | Match PDF or DOCX. |
(?i)success|completed | Completed Successfully | Contains either success or completed. |
(?i)(login|signin) | Login, Sign In | Match either word. |
^[0-9]+$ | 12345 | Numbers only. |
^[A-Za-z]+$ | Welcome | Letters only. |
^[A-Za-z0-9 _-]+$ | Invoice_2026-01 | Letters, numbers, spaces, _ and -. |
Regex symbols β
| Symbol | Meaning | Example |
|---|---|---|
^ | Start of text | ^Invoice |
$ | End of text | \.pdf$ |
. | Any single character | a.c |
.* | Any number of any characters | Invoice.* |
+ | One or more | [0-9]+ |
? | Zero or one | colou?r |
\. | Literal dot (.) | \.pdf |
\d | Digit | \d{4} |
[abc] | One of the listed characters | [AB] |
[A-Z] | Uppercase letter | [A-Z]{3} |
[0-9] | Digit | [0-9]{6} |
[^0-9] | Not a digit | [^0-9]+ |
(A|B) | A or B | (Chrome|Edge) |
(?i) | Ignore case | (?i)\.pdf$ |
π Browser-Specific Options β
π Direct Save Page to PDF (Firefox Only) β
Purpose: Save PDF directly without print dialog (Firefox browser only).
Benefits:
- Faster PDF generation
- No print dialog interaction
- Streamlined automation process
π File Management Options β
π If file already exists then replace it β
Purpose: Control behavior when a file with the same name already exists.
Options:
- ON - Replace existing file with new content
- OFF - Browser will ask to replace the file
π Press Ctrl + S β
Purpose: Use Ctrl+S keyboard shortcut for saving files.
How it works:
- Triggers browser's save dialog
- Alternative to print-based PDF generation
- Works with most browsers
π File Naming β
π Field Value β
Purpose: Set custom filename for the generated PDF.
Basic Usage:
- Static name:
document.pdf - Dynamic name:
report_{$name$}.pdf - Date-based:
invoice_{$date.today[yyyy-mm-dd]$}.pdf - Unique filename:
document_{$date.today[x]$}.pdf
Variable Syntax:
- Use
{$variable_name$}format - Access form data and system variables
- Create unique filenames automatically
π― PDF Page Settings (Firefox) β
Customize PDF page settings for optimal document formatting.
π Customize PDF Page Settings β
Purpose: Configure page size, orientation, margins, and other PDF properties.
API Reference: PageSettings API
Example Configuration:
paperHeight=297,paperWidth=210,orientation=1,scaling=0.65,paperSizeUnit=1,shrinkToFit=trueResult: A4 landscape size page
| Property | Value | Description |
|---|---|---|
| paperHeight | 297 | A4 height in mm |
| paperWidth | 210 | A4 width in mm |
| orientation | 1 | 0 = portrait, 1 = landscape |
| scaling | 0.65 | Content scaling factor (default: 1) |
| paperSizeUnit | 1 | 0 = inches, 1 = millimeters |
| shrinkToFit | true | Shrink content to fit page width |
π Browser Window Title β
π Set the save as browser window title name β
Purpose: Customize browser window title during PDF save process.
Use Cases:
- Multi-language support - Different titles for different languages
- Branding - Custom application names
- Identification - Distinguish between different save operations
Configuration:
- Set different titles for different languages
- Use variables for dynamic titles
- Match your application's branding
π Set the confirm replace save as browser window title name β
Purpose: Customize browser window title during PDF save process.
Use Cases:
- Multi-language support - Different titles for different languages
- Branding - Custom application names
- Identification - Distinguish between different save operations
β οΈ Important Notes β
Prerequisites β
- Required before using this field type
- Download from extension settings
- Install the helper program on your system
- Verify installation before configuring PDF fields
π Troubleshooting β
| Issue | Solution |
|---|---|
| PDF not generated | Check helper program installation |
| Print dialog not detected | Adjust image path or disable detection |
| File not saved | Verify save location permissions |
| Filename conflicts | Use unique naming with variables |
Pro Tip
Use the {$date.today[x]$} variable in filenames to ensure unique file names every time.
Important
Install the helper program before using this field type. The extension will not work without it.