public class CmsPdfConverter extends java.lang.Object
Constructor and Description |
---|
CmsPdfConverter()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
convertXhtmlToPdf(CmsObject cms,
byte[] xhtmlData,
java.lang.String uri)
Converts XHTML data to a PDF document.
|
public CmsPdfConverter()
public byte[] convertXhtmlToPdf(CmsObject cms, byte[] xhtmlData, java.lang.String uri) throws java.lang.Exception
cms
- the current CMS contextxhtmlData
- the XHTML as a byte arrayuri
- the uri to use for error messages in the XML parserjava.lang.Exception
- if something goes wrong