|
|
|
@ -24,11 +24,11 @@ public class RelatorioPDFCreator
|
|
|
|
Document foDoc = new Document( relatorio.toJdomElement() );
|
|
|
|
Document foDoc = new Document( relatorio.toJdomElement() );
|
|
|
|
XMLOutputter outputter = new XMLOutputter(Format.getPrettyFormat());
|
|
|
|
XMLOutputter outputter = new XMLOutputter(Format.getPrettyFormat());
|
|
|
|
ByteArrayOutputStream foBaos = new ByteArrayOutputStream();
|
|
|
|
ByteArrayOutputStream foBaos = new ByteArrayOutputStream();
|
|
|
|
FileOutputStream fos = new FileOutputStream("/home/jneto/a.fo");
|
|
|
|
// FileOutputStream fos = new FileOutputStream("/home/jneto/a.fo");
|
|
|
|
outputter.output( foDoc, foBaos );
|
|
|
|
outputter.output( foDoc, foBaos );
|
|
|
|
outputter.output( foDoc, fos );
|
|
|
|
// outputter.output( foDoc, fos );
|
|
|
|
|
|
|
|
|
|
|
|
System.out.println( new String( foBaos.toByteArray() ) );
|
|
|
|
// System.out.println( new String( foBaos.toByteArray() ) );
|
|
|
|
byte fo[] =
|
|
|
|
byte fo[] =
|
|
|
|
applyTemplate(
|
|
|
|
applyTemplate(
|
|
|
|
getClass().getClassLoader().getResourceAsStream(
|
|
|
|
getClass().getClassLoader().getResourceAsStream(
|
|
|
|
|