Closed gate5th closed 7 years ago
Actually it looks like it was a Typescript thing. After console.logging my way through the node_module I determined that you can pass an array of object formatted as below to generateMultiplePdf:
[
{url:'first.html', pdf:'pdf1.pdf'},
{url:'second.html', pdf:'pdf2.pdf'}
]
Hope that's helpful to somebody else out there in internet-land.
Hi, I expect this is me just not getting some ES6 thing, but I'm trying to generate multiple pdfs from several local files and getting an error: Error: Invalid parameters (url: string value expected)
I'm confused because in the instructions it shows a format that I don't recognize. It looks like an array of objects, but inside the curly brackets doesn't appear to be a valid object ({url, output} instead of {url: output}). I've tried several different ways to pass parameters but having no luck. Can you clarify what the function is looking for?
Thanks!
From the readme:
My Error logs: