POST api/PDF

Convert HTML to PDF

Request Information

URI Parameters

None.

Body Parameters

PDFItem
NameDescriptionTypeAdditional information
Html

string

None.

HeaderUrl

string

None.

FooterUrl

string

None.

PageSize

string

None.

DisableSmartShrinking

boolean

None.

Orientation

PdfOrientation

None.

Request Formats

application/json, text/json

Sample:
{
  "Html": "sample string 1",
  "HeaderUrl": "sample string 2",
  "FooterUrl": "sample string 3",
  "PageSize": "sample string 4",
  "DisableSmartShrinking": true,
  "Orientation": 0
}

application/xml, text/xml

Sample:
<PDFItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Interpulse.Services.Models">
  <DisableSmartShrinking>true</DisableSmartShrinking>
  <FooterUrl>sample string 3</FooterUrl>
  <HeaderUrl>sample string 2</HeaderUrl>
  <Html>sample string 1</Html>
  <Orientation>Unassigned</Orientation>
  <PageSize>sample string 4</PageSize>
</PDFItem>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PDFItem'.

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.