support puppeteer's PDFOptions, add param for preload

This commit is contained in:
oom 2025-02-28 10:31:11 +07:00
parent f6b68e4379
commit c33e0653af
4 changed files with 117 additions and 71 deletions

View file

@ -109,7 +109,7 @@ Accept: application/pdf
}
}
### convert blognone to pdf
### convert blognone to png
POST {{api_host}}/html
Content-Type: application/json
Accept: image/png
@ -118,3 +118,13 @@ Accept: image/png
"template": "https://www.blognone.com",
"reportName": "html-blognone"
}
### convert blognone to pdf
POST {{api_host}}/html
Content-Type: application/json
Accept: application/pdf
{
"template": "https://pantip.com",
"reportName": "html-pantip.com"
}