|
|
|
@ -13,9 +13,9 @@ import com.evolute.utils.xml.XSLTransformer;
|
|
|
|
public class RelatorioPDFCreator
|
|
|
|
public class RelatorioPDFCreator
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
public byte[] createPDF( Integer planoId ) throws Exception
|
|
|
|
public byte[] createPDF( Integer relatorioId ) throws Exception
|
|
|
|
{
|
|
|
|
{
|
|
|
|
RelatorioToPrint relatorio = RelatorioPrintDataProvider.getProvider().getRelatorioToPrint( planoId );
|
|
|
|
RelatorioToPrint relatorio = RelatorioPrintDataProvider.getProvider().getRelatorioToPrint( relatorioId );
|
|
|
|
Document foDoc = new Document( relatorio.toJdomElement() );
|
|
|
|
Document foDoc = new Document( relatorio.toJdomElement() );
|
|
|
|
XMLOutputter outputter = new XMLOutputter();
|
|
|
|
XMLOutputter outputter = new XMLOutputter();
|
|
|
|
ByteArrayOutputStream foBaos = new ByteArrayOutputStream();
|
|
|
|
ByteArrayOutputStream foBaos = new ByteArrayOutputStream();
|
|
|
|
|