X_SCRAPE_PDF_ROUTE_INVALID
Means
a pdf() route is not a path on this app
Typical cause
route() answered something other than a path beginning with one slash — a full URL, a protocol-relative //host path or a backslash — and the printing browser only ever loads the app own origin
Fix
return a path from route(): pdf({ route: ({ input }) => '/invoices/' + input.id + '/print' })