POST api/PdfSharp

Request Information

URI Parameters

None.

Body Parameters

Html2PdfRequest
NameDescriptionTypeAdditional information
HtmlContent

string

None.

MarginTop

decimal number

None.

MarginBottom

decimal number

None.

MarginLeft

decimal number

None.

MarginRight

decimal number

None.

PageHeight

string

None.

PageWidth

string

None.

DPI

integer

None.

Orientation

PaperOrientation

None.

MinimumFontSize

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "HtmlContent": "sample string 1",
  "MarginTop": 2.1,
  "MarginBottom": 3.1,
  "MarginLeft": 4.1,
  "MarginRight": 5.1,
  "PageHeight": "sample string 6",
  "PageWidth": "sample string 7",
  "DPI": 8,
  "Orientation": 0,
  "MinimumFontSize": 9
}

application/xml, text/xml

Sample:
<Html2PdfRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebRole1.Controllers">
  <DPI>8</DPI>
  <HtmlContent>sample string 1</HtmlContent>
  <MarginBottom>3.1</MarginBottom>
  <MarginLeft>4.1</MarginLeft>
  <MarginRight>5.1</MarginRight>
  <MarginTop>2.1</MarginTop>
  <MinimumFontSize>9</MinimumFontSize>
  <Orientation>Portrait</Orientation>
  <PageHeight>sample string 6</PageHeight>
  <PageWidth>sample string 7</PageWidth>
</Html2PdfRequest>

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.