POST api/HTMLTOPDF

Request Information

URI Parameters

None.

Body Parameters

HTMLTOPDF
NameDescriptionTypeAdditional information
HtmlString

string

None.

MarginBottom

integer

None.

MarginLeft

integer

None.

MarginRight

integer

None.

MarginTop

integer

None.

FitToPaperWidth

boolean

None.

PaperSize

string

None.

PaperOrientation

string

None.

CssMediaType

string

None.

Width

integer

None.

Height

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "HtmlString": "sample string 1",
  "MarginBottom": 2,
  "MarginLeft": 3,
  "MarginRight": 4,
  "MarginTop": 5,
  "FitToPaperWidth": true,
  "PaperSize": "sample string 7",
  "PaperOrientation": "sample string 8",
  "CssMediaType": "sample string 9",
  "Width": 10,
  "Height": 11
}

application/xml, text/xml

Sample:
<HTMLTOPDF xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HTMLTOPDFService.Domain">
  <CssMediaType>sample string 9</CssMediaType>
  <FitToPaperWidth>true</FitToPaperWidth>
  <Height>11</Height>
  <HtmlString>sample string 1</HtmlString>
  <MarginBottom>2</MarginBottom>
  <MarginLeft>3</MarginLeft>
  <MarginRight>4</MarginRight>
  <MarginTop>5</MarginTop>
  <PaperOrientation>sample string 8</PaperOrientation>
  <PaperSize>sample string 7</PaperSize>
  <Width>10</Width>
</HTMLTOPDF>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.