Save as PDF
To save the page in PDF format, you can use this field type which is done through Print option.
Options
Options |
---|
Press Ctrl + P |
Do not identify print window as per image |
Set Image Path to Identify Print Window |
Set delay time after opening print window |
Direct Save Page to PDF (ONLY FIREFOX BROWSER) |
Field Value |
Press Ctrl + P
If your file/PDF is downloaded after clicking on any button, then you can give the selector query of that button in the field. But if you want to save the page through Ctrl + P
then you can turn on this option so that you will not need to press Ctl + P
buttons.
This field type allows you to download a PDF
file that is embedded
within browser.
Do not identify print window as per image
When we print
a page, its print preview comes first. To identify that print preview window
, the option given below is done, but if you do not want this, then you can turn on that option.
Set Image Path to Identify Print Window
To identify the print preview window, we have to save an image of that print preview window in the PC and give the path of that image in this option. Due to the size of the page, the print window opens quite late, hence this option is used so that the extension waits until the image is visible on the screen.
Image can be of this type.
Set delay time after opening print window
After opening the print window and before saving the page, delay time can be given in this option.
Direct Save Page to PDF (ONLY FIREFOX BROWSER)
This option is used only in Firefox Browser
to save the file directly.
Customize PDF Page Settings
This option allows you to customize the PDF page settings, such as page size, orientation, margins, and header/footer. You can specify these settings using the PageSettings API.
Example:
If you are using these settings: paperHeight=297,paperWidth=210,orientation=1,scaling=0.65,paperSizeUnit=1,shrinkToFit=true
then page save A4 landscape size.
Properties | Value | Description |
---|---|---|
paperHeight | 297 | A4 height in mm |
paperWidth | 210 | A4 width in mm |
orientation | 1 | 0 means "portrait", 1 means "landscape" |
scaling | 0.65 | Sets the scaling factor for the page content. Default value is 1. |
paperSizeUnit | 1 | 0 = inches, 1 = millimeters |
shrinkToFit | true | Whether the page content should shrink to fit the page width |
Set the save as browser window title name
When you are using the print option to save the page as a PDF, you can set the title of the browser window that appears during the save process. This option allows you to specify different browser window titles for different languages.
Field Value
If you want to change the name of the file then you can give the name of the file in the value of the field.
TIP
Set field value if file defined by specific name, {{date.today[x]}}
variable provide a unique digit so file have unique name every time.
text-{{date.today[x]}}