top of page
PDF Generation (Chromium)
Since it's hard to get a binary string out of a Make.com app, you have to call the background service directly with an http request and then run the headless browser chromium to generate a pdf from some HTML code.
​
Here i have written an example how you can generate invoice with it:
URL:
Header API Key
X-RapidAPI-Key
Header API Value
<< Insert your API KEY >>
Header Host Key
X-RapidAPI-Host
Header Host Value
customjs.p.rapidapi.com
Body
{"input":"<html> <h1>Hello World</h1> <table> <tbody> </tbody> </table> </html>", "asBase64":"true", "jscode":"return await pdfGeneration(input)"}
![Screenshot 2023-03-13 at 18.09.33.png](https://static.wixstatic.com/media/d20ced_09341a1c0fc94403b6707a8bbda453b5~mv2.png/v1/fill/w_304,h_883,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/Screenshot%202023-03-13%20at%2018_09_33.png)
bottom of page