jussiniinikoski / wasm-pdf

Generate PDF files with JavaScript and WASM (WebAssembly)
Apache License 2.0
479 stars 51 forks source link

how to create a pdf using another pdf? #10

Closed riccardodivirgilio closed 4 years ago

riccardodivirgilio commented 4 years ago

Hi, I have a printing business I am interested in creating pdf on the client side using other pdf the user might upload or fetch online. Is it possibile to do that? what I need to do is to create a blank pdf, add one page, embed another pdf page, rotate, scale it (maybe using pdf xobject), embed that page several times in the same page, close the page, open another page and repeat. Is it possibile to embed another pdf?

thanks!

jussiniinikoski commented 4 years ago

Unfortunately no, we are using exclusively JSON payloads to generate PDF documents.

riccardodivirgilio commented 4 years ago

Right but can I use a JSON payload that references pdfs instead of jpegs / pngs?

jussiniinikoski commented 4 years ago

I'm afraid not, parsing existing pdfs is not available.

riccardodivirgilio commented 4 years ago

thanks!