Ultimate

X_SCRAPE_PDF_OPTIONS_INVALID

Means

the PDF request names no single page size a print engine can lay out

Typical cause

page.pdf() was given format beside widthMm/heightMm, one of widthMm/heightMm alone, a size beside preferCssPageSize, or a measure that is not a finite number

Fix

page.pdf({ format: 'a4' }) — exactly one size: a format, or widthMm with heightMm, or preferCssPageSize alone

Listed under Scraping

This page as markdown