POST api/common/DownPdf
网页地址转pdf
Request Information
URI Parameters
None.
Body Parameters
DownPdfInputDtoName | Description | Type | Additional information |
---|---|---|---|
PdfName |
试卷编号 |
string |
None. |
Width |
答题卡像素宽 |
integer |
None. |
Height |
答题卡像素高 |
integer |
None. |
PaperFormat |
试卷尺寸 |
PdfSize |
None. |
Link |
链接 |
string |
None. |
IsLandscape |
横向 |
boolean |
None. |
PrintBackground |
背景图形 |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "PdfName": "sample string 1", "Width": 2, "Height": 3, "PaperFormat": { "Width": 1.0, "Height": 2.0 }, "Link": "sample string 4", "IsLandscape": true, "PrintBackground": true }
text/html
Sample:
{"PdfName":"sample string 1","Width":2,"Height":3,"PaperFormat":{"Width":1.0,"Height":2.0},"Link":"sample string 4","IsLandscape":true,"PrintBackground":true}
application/xml, text/xml
Sample:
<DownPdfInputDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeachingSysApi.Controllers"> <Height>3</Height> <IsLandscape>true</IsLandscape> <Link>sample string 4</Link> <PaperFormat> <Height>2</Height> <Width>1</Width> </PaperFormat> <PdfName>sample string 1</PdfName> <PrintBackground>true</PrintBackground> <Width>2</Width> </DownPdfInputDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
网页地址转pdf
JsonRtnDtoOfStringName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": "sample string 2" }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":"sample string 2"}
application/xml, text/xml
Sample:
<JsonRtnDtoOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Data>sample string 2</Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfstring>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":"sample string 2"});