Skip to content

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 OptionsRequiredDescriptionExample Values
Press Ctrl + PNoAutomatically trigger print dialogToggle ON/OFF
Press Ctrl + SNoUse Ctrl+S shortcut for savingToggle ON/OFF
Do not identify print window as per imageNoSkip print window detectionToggle ON/OFF
Set Image Path to Identify Print WindowNoCustom image for print window detection/path/to/image.png
Set delay time after opening print windowNoWait time after print dialog opens1000, 2000 (milliseconds)
If file already exists in the save location then replace itNoOverwrite existing files with same nameToggle ON/OFF
Set the confirm replace save as browser window title nameNoSet the confirm replace save as browser window title nameToggle ON/OFF
Set the save as browser window title nameNoSet the save as browser window title nameToggle ON/OFF
Direct Save Page to PDF (Firefox only)NoDirect PDF save without print dialogToggle ON/OFF
Field ValueNoCustom filename for PDFdocument.pdf, report_{$name$}.pdf

βš™οΈ Configuration ​

πŸ“Œ 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 + P buttons

Note

If your file/PDF is downloaded after clicking any button, provide the selector query of that button in field selector query.


πŸ“Œ Do not identify print window as per image ​

Purpose: Skip automatic detection of print preview window.

When to use:

  • When print window detection causes issues
  • For faster execution without image matching
  • When print preview appears differently

πŸ“Œ Set Image Path to Identify Print Window ​

Purpose: Use custom image to detect when print preview window is ready.

How to configure:

  1. Save an image of the print preview window on your PC
  2. Provide the image path in this option
  3. 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:

Print Window Detection

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 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

🌐 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=true

Result: A4 landscape size page

PropertyValueDescription
paperHeight297A4 height in mm
paperWidth210A4 width in mm
orientation10 = portrait, 1 = landscape
scaling0.65Content scaling factor (default: 1)
paperSizeUnit10 = inches, 1 = millimeters
shrinkToFittrueShrink 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 ​

Install Helper Program

  • Required before using this field type
  • Download from extension settings
  • Install the helper program on your system
  • Verify installation before configuring PDF fields

πŸ” Troubleshooting ​

IssueSolution
PDF not generatedCheck helper program installation
Print dialog not detectedAdjust image path or disable detection
File not savedVerify save location permissions
Filename conflictsUse 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.

Released under the MIT License.