POST api/GeneratePdf

Request Information

URI Parameters

None.

Body Parameters

GeneratePdfModel
NameDescriptionTypeAdditional information
IncludePageNumber

boolean

None.

Items

Collection of PdfModel

None.

Request Formats

application/json, text/json

Sample:
{
  "IncludePageNumber": true,
  "Items": [
    {
      "Html": "sample string 1",
      "Url": "sample string 2",
      "Pdf": "QEA=",
      "Image": null,
      "Content": 0
    },
    {
      "Html": "sample string 1",
      "Url": "sample string 2",
      "Pdf": "QEA=",
      "Image": null,
      "Content": 0
    }
  ]
}

application/xml, text/xml

Sample:
<GeneratePdfModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PdfService.Models.RequestModels">
  <IncludePageNumber>true</IncludePageNumber>
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/PdfService.Models">
    <d2p1:PdfModel>
      <d2p1:Html>sample string 1</d2p1:Html>
      <d2p1:Image xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.Drawing" i:nil="true" />
      <d2p1:Pdf>QEA=</d2p1:Pdf>
      <d2p1:Url>sample string 2</d2p1:Url>
    </d2p1:PdfModel>
    <d2p1:PdfModel>
      <d2p1:Html>sample string 1</d2p1:Html>
      <d2p1:Image xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.Drawing" i:nil="true" />
      <d2p1:Pdf>QEA=</d2p1:Pdf>
      <d2p1:Url>sample string 2</d2p1:Url>
    </d2p1:PdfModel>
  </Items>
</GeneratePdfModel>

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 'GeneratePdfModel'.

Response Information

Resource Description

Collection of byte

Response Formats

application/json, text/json

Sample:
"QEA="

application/xml, text/xml

Sample:
<base64Binary xmlns="http://schemas.microsoft.com/2003/10/Serialization/">QEA=</base64Binary>