POST api/GerarPdfTamanhoCustomizado
Request Information
URI Parameters
None.
Body Parameters
HtmlToPdfCustomSizeModelName | Description | Type | Additional information |
---|---|---|---|
html | string |
None. |
|
page_height | integer |
None. |
|
page_width | integer |
None. |
|
margins | Rectangle |
None. |
Request Formats
application/json, text/json
Sample:
{ "html": "sample string 1", "page_height": 2, "page_width": 3, "margins": "1, 2, 3, 4" }
application/xml, text/xml
Sample:
<HtmlToPdfCustomSizeModel 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> <page_height>2</page_height> <page_width>3</page_width> </HtmlToPdfCustomSizeModel>
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>