|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.allcolor.yahp.cl.converter.CHtmlToPdfFirefoxTransformer
public final class CHtmlToPdfFirefoxTransformer
This class transform an html document in a PDF.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.allcolor.yahp.converter.IHtmlToPdfTransformer |
|---|
IHtmlToPdfTransformer.CConvertException, IHtmlToPdfTransformer.CHeaderFooter, IHtmlToPdfTransformer.PageSize |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
CHtmlToPdfFirefoxTransformer()
Creates a new CHtmlToPdfFirefoxTransformer object. |
|
| Method Summary | |
|---|---|
private java.lang.String |
loadFile(java.io.InputStream in,
java.lang.String urlForBase)
Load the file from an inputstream |
private java.lang.String |
removeBaseIfPresent(java.lang.String fin)
remove the base tag if present |
java.lang.String |
setCharset(java.lang.String fin)
Set the Content-Type meta tag |
void |
transform(java.io.InputStream in,
java.lang.String urlForBase,
IHtmlToPdfTransformer.PageSize size,
java.util.List hf,
java.util.Map properties,
java.io.OutputStream out)
Transform the html document in the inputstream to a pdf in the outputstream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CHtmlToPdfFirefoxTransformer()
| Method Detail |
|---|
public final void transform(java.io.InputStream in,
java.lang.String urlForBase,
IHtmlToPdfTransformer.PageSize size,
java.util.List hf,
java.util.Map properties,
java.io.OutputStream out)
throws IHtmlToPdfTransformer.CConvertException
transform in interface IHtmlToPdfTransformerin - html document streamurlForBase - base url of the documentsize - pdf document page sizehf - header-footer listproperties - transform propertiesout - out stream to the pdf file
IHtmlToPdfTransformer.CConvertException - if a conversion exception occurs
private java.lang.String loadFile(java.io.InputStream in,
java.lang.String urlForBase)
throws java.io.IOException
in - the stream to loadurlForBase - the base url of the document
java.io.IOException - if an error occurspublic java.lang.String setCharset(java.lang.String fin)
fin - content of the file
private java.lang.String removeBaseIfPresent(java.lang.String fin)
fin - content of the file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||