document
422423424425426427428429430431432433434435
return transformer; } catch ( TransformerConfigurationException e ) { throw new DocumentRendererException( "Error configuring Transformer for " + XSLT_RESOURCE + ": " + e.getMessage() ); } catch ( IllegalArgumentException e ) { throw new DocumentRendererException( "Error configuring Transformer for " + XSLT_RESOURCE + ": " + e.getMessage() ); } }
496497498499500501502503504
{ transformer.transform( new DOMSource( document ), new StreamResult( iTextFile ) ); } catch ( TransformerException e ) { throw new DocumentRendererException( "Error transformer Document from " + document + ": " + e.getMessage() ); } }