POST api/GerarPdf
Request Information
URI Parameters
None.
Body Parameters
HtmlToPdfBodyModelName | Description | Type | Additional information |
---|---|---|---|
html | string |
None. |
|
margins | Rectangle |
None. |
Request Formats
application/json, text/json
Sample:
{ "html": "sample string 1", "margins": "1, 2, 3, 4" }
application/xml, text/xml
Sample:
<HtmlToPdfBodyModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CubeChurchCDN.Models"> <html>sample string 1</html> <margins xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Drawing"> <d2p1:height>4</d2p1:height> <d2p1:width>3</d2p1:width> <d2p1:x>1</d2p1:x> <d2p1:y>2</d2p1:y> </margins> </HtmlToPdfBodyModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
CDNResponseName | Description | Type | Additional information |
---|---|---|---|
caminho_arquivo | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "caminho_arquivo": "sample string 1" }
application/xml, text/xml
Sample:
<CDNResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CubeChurchCDN.Models"> <caminho_arquivo>sample string 1</caminho_arquivo> </CDNResponse>