Op 14/03/2012 12:46, Lee Theobald schreef:
Thanks for the info. That clears that part up. One more quick
question on this subject, the code your supplied will work when
specifying the CSS files myself but what if I want to use the ones
included in the original HTML (e.g. via <link> elements). Is this
something XMLWorker handles itself and if so, do you have any more
guidance on this subject?
If there's a CSS mentioned in the file, then it will get preference over
the default CSS.
That makes things simpler:
CSSResolver cssResolver =
XMLWorkerHelper.getInstance().getDefaultCssResolver(true);
Note that the true means that default.css (shipped with XML Worker) will
be used as basis.
If you don't want this, you can set the parameter to false.
I had a look through the mailing list archives and a few questions
said I should use flying saucer with iText but I'm assuming this
solution is a pre-XMLWorker one.
Flying Saucer is a third party library that uses an old version of iText.
It predates XML Worker.
We aren't responsible for Flying Saucer, so we can't comment on its use.
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php