Page Printer
No credit card required
Page Printer
No credit card required
Performs screenshots or print web pages in PDF format.
Method
method
EnumRequired
Method for generating the page print.
Value options:
"screenshot": string"pdf": string
Default value of this property is "screenshot"
Wait for load state
waitForLoadState
EnumOptional
The state to load for before processing the page.
Value options:
"load": string"domcontentloaded": string"networkidle": string
Pre-function
preFunction
stringOptional
Function to evaluate before printing the page. Can accept Playwright's 'page' object as input.
Always take a screenshot
alwaysScreenshot
booleanOptional
Try to take a screenshot even if the pre-function crashed
Media
pdfMedia
EnumOptional
Media for printing PDF. See: https://playwright.dev/docs/api/class-page#page-pdf.
Value options:
"print": string"screen": string
Default value of this property is "print"
Max request retries
maxRequestRetries
integerOptional
Max number of retries before declaring a screenshot job failed.
wait For Load State Timeout (milliseconds)
waitForLoadStateTimeout
integerOptional
timeout for waitForLoadState event, in milliseconds
request Handler Timeout Secs
requestHandlerTimeoutSecs
integerOptional
Timeout in which the requestHandler function needs to finish, in seconds.
Actor Metrics
6 monthly users
-
2 stars
>99% runs succeeded
Created in Jul 2024
Modified 4 months ago