Examples
Invoice
curl --request POST \
--url https://yakpdf.p.rapidapi.com/pdf \
--header 'content-type: application/json' \
--header 'x-rapidapi-host: yakpdf.p.rapidapi.com' \
--header 'x-rapidapi-key:{{YOUR_APY_KEY}}' \
--data '{
"pdf": {
"preferCSSPageSize": true,
"printBackground": true
},
"source": {
"url": "https://yakpdf.github.io/examples/invoice/invoice"
},
"wait": {
"for": "navigation", "timeout": 1000, "waitUntil": "load"
}
}' > testInvoice.pdf
Report
curl --request POST \
--url https://yakpdf.p.rapidapi.com/pdf \
--header 'content-type: application/json' \
--header 'x-rapidapi-host: yakpdf.p.rapidapi.com' \
--header 'x-rapidapi-key:{{YOUR_APY_KEY}}' \
--data '{
"pdf": {
"preferCSSPageSize": true,
"printBackground": true
},
"source": {
"url": "https://yakpdf.github.io/examples/report/report"
},
"wait": {
"for": "navigation", "timeout": 1000, "waitUntil": "load"
}
}' > testReport.pdf
Resume
curl --request POST \
--url https://yakpdf.p.rapidapi.com/pdf \
--header 'content-type: application/json' \
--header 'x-rapidapi-host: yakpdf.p.rapidapi.com' \
--header 'x-rapidapi-key:{{YOUR_APY_KEY}}' \
--data '{
"pdf": {
"preferCSSPageSize": true,
"printBackground": true
},
"source": {
"url": "https://yakpdf.github.io/examples/resume/resume"
},
"wait": {
"for": "navigation", "timeout": 1000, "waitUntil": "load"
}
}' > testResume.pdf
curl --request POST \
--url https://yakpdf.p.rapidapi.com/pdf \
--header 'content-type: application/json' \
--header 'x-rapidapi-host: yakpdf.p.rapidapi.com' \
--header 'x-rapidapi-key:{{YOUR_APY_KEY}}' \
--data '{
"pdf": {
"preferCSSPageSize": true,
"printBackground": true
},
"source": {
"url": "https://yakpdf.github.io/examples/resume-master/resume-master"
},
"wait": {
"for": "navigation", "timeout": 1000, "waitUntil": "load"
}
}' > testResume2.pdf
curl --request POST \
--url https://yakpdf.p.rapidapi.com/pdf \
--header 'content-type: application/json' \
--header 'x-rapidapi-host: yakpdf.p.rapidapi.com' \
--header 'x-rapidapi-key:{{YOUR_APY_KEY}}' \
--data '{
"pdf": {
"preferCSSPageSize": true,
"printBackground": true
},
"source": {
"url": "https://yakpdf.github.io/examples/resume-master/resume-master"
},
"wait": {
"for": "navigation", "timeout": 1000, "waitUntil": "load"
}
}' > testResume2.pdf
Business Card
curl --request POST \
--url https://yakpdf.p.rapidapi.com/pdf \
--header 'content-type: application/json' \
--header 'x-rapidapi-host: yakpdf.p.rapidapi.com' \
--header 'x-rapidapi-key:{{YOUR_APY_KEY}}' \
--data '{
"pdf": {
"preferCSSPageSize": true,
"printBackground": true
},
"source": {
"url": "https://yakpdf.github.io/examples/business-card/business-card"
},
"wait": {
"for": "navigation", "timeout": 1000, "waitUntil": "load"
}
}' > testBusinessCard.pdf
Letter
curl --request POST \
--url https://yakpdf.p.rapidapi.com/pdf \
--header 'content-type: application/json' \
--header 'x-rapidapi-host: yakpdf.p.rapidapi.com' \
--header 'x-rapidapi-key:{{YOUR_APY_KEY}}' \
--data '{
"pdf": {
"preferCSSPageSize": true,
"printBackground": true
},
"source": {
"url": "https://yakpdf.github.io/examples/letter/letter"
},
"wait": {
"for": "navigation", "timeout": 1000, "waitUntil": "load"
}
}' > testLetter.pdf