POST api/common/HtmlToPdf
Html转Pdf
Request Information
URI Parameters
None.
Body Parameters
HtmlToPdfDtoName | Description | Type | Additional information |
---|---|---|---|
HtmlString |
Html |
string |
None. |
PdfName |
pdf名称 |
string |
None. |
Extend |
pdf / doc |
string |
None. |
Orientation |
1 纵向 2 横向 |
integer |
None. |
Margin |
边距 |
decimal number |
None. |
PaperSize |
纸张大小 A3 = 0,A4 = 1,A5 = 2,B4 = 3,B5 = 4,Executive = 5,Folio = 6,Ledger = 7,Legal = 8,Letter = 9,EnvelopeDL = 10,Quarto = 11,Statement = 12,Tabloid = 13,Paper10x14 = 14,Paper11x17 = 15,Custom = 16 |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "HtmlString": "sample string 1", "PdfName": "sample string 2", "Extend": "sample string 3", "Orientation": 4, "Margin": 5.1, "PaperSize": 6 }
text/html
Sample:
{"HtmlString":"sample string 1","PdfName":"sample string 2","Extend":"sample string 3","Orientation":4,"Margin":5.1,"PaperSize":6}
application/xml, text/xml
Sample:
<HtmlToPdfDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeachingSysApi.Controllers"> <Extend>sample string 3</Extend> <HtmlString>sample string 1</HtmlString> <Margin>5.1</Margin> <Orientation>4</Orientation> <PaperSize>6</PaperSize> <PdfName>sample string 2</PdfName> </HtmlToPdfDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Html转Pdf
ObjectNone.
Response Formats
application/json, text/json, text/html
Sample:
{}
application/xml, text/xml
Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({});