support puppeteer's PDFOptions, add param for preload
This commit is contained in:
parent
f6b68e4379
commit
c33e0653af
4 changed files with 117 additions and 71 deletions
12
api.http
12
api.http
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue