Print document
This API call produces a PDF that contains the content of the document identified by the eid parameter. The PDF also contains all of the graphics associated with the document.
Example API call
/servlets3/wietmsd?id=1459778897933&book=s1000d_bike_41&collection=default&target=print&action=exppdf&eid=4&doctype=description&tocref=19
Parameters
| Parameter | Description |
|---|---|
target | print |
action | exppdf |
eid | The element level ID on the <DOCUMENT/> envelope tag that wraps all documents in LiveContent, such as "4". |
tocRef | The TOC reference ID (@TOCREFID) on the envelope tag that wraps all documents in LiveContent, such as "19". This ID captures the document's place within the TOC. |
doctype | The @DOCTYPE attribute of the<DOCUMENT/> envelope tag that wraps all documents in LiveContent, such as description. |
id | A session ID that is valid for this collection and publication combination. |
collection | The name of the collection that the publication is registered in, such as default. |
book | The name of the publication, such as s1000d_bike_41. |
Returns
- On success
-
HTML instance with the reference to the printed .pdf output that will immediately redirect to the PDF resource. The result of this API call is usually be loaded into a new window to avoid losing the content of the calling window
<HTML> <HEAD> <TITLE/> <SCRIPT>document.location='/servlets3/wietmsd/working/temp/doc_4_1459779551245.pdf'</SCRIPT> </HEAD> <BODY/> </HTML> - On failure
-
<HTML> <HEAD> <TITLE>Exception</TITLE> </HEAD> <BODY> <P> <B>A failure occurred while attempting to create print output</B> </P> </BODY> </HTML>