Print document with references
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. The PDF document also contains the PDF of any documents that are referenced from within the main document. These referenced documents are appended at the end of the PDF, and contain all of their associated images. Referencing printing only goes to one level of depth of references.
Example API call
/servlets3/wietmsd?id=1459778897933&book=s1000d_bike_41&collection=default&target=print&action=exppdf_referenced&eid=5&doctype=description&tocRef=25
Parameters
| Parameter | Description |
|---|---|
target | print |
action | exppdf_referenced |
eid | The element level ID on the <DOCUMENT/> envelope tag that wraps all documents in LiveContent, such as "5". |
tocRef | The TOC reference ID (@TOCREFID) on the envelope tag that wraps all documents in LiveContent, such as "25". 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/docs_5_1459780684838.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>