From e685fdf1c371050881f16cfc0d38dd2d00ec04bb Mon Sep 17 00:00:00 2001 From: Frederico Palma Date: Tue, 3 Feb 2009 18:08:52 +0000 Subject: [PATCH] git-svn-id: https://svn.coded.pt/svn/SIPRP@939 bb69d46d-e84e-40c8-a05a-06db0d633741 --- .../src/siprp/planoactuacao/print/TestPrint.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/trunk/SIPRPSoft/src/siprp/planoactuacao/print/TestPrint.java b/trunk/SIPRPSoft/src/siprp/planoactuacao/print/TestPrint.java index 64f55c47..6156234b 100644 --- a/trunk/SIPRPSoft/src/siprp/planoactuacao/print/TestPrint.java +++ b/trunk/SIPRPSoft/src/siprp/planoactuacao/print/TestPrint.java @@ -44,10 +44,13 @@ public class TestPrint // fos.write( fo ); // fos.close(); - byte pdf[] = new PlanoActuacaoPDFCreator().createPDF( 6, true ); - FileOutputStream fos = new FileOutputStream( "/home/fpalma/Desktop/pdf.pdf" ); - fos.write( pdf ); - fos.close(); + for( int n = 1; n <= 7; n++ ) + { + byte pdf[] = new PlanoActuacaoPDFCreator().createPDF( n, false ); + FileOutputStream fos = new FileOutputStream( "/home/fpalma/Desktop/" + n + ".pdf" ); + fos.write( pdf ); + fos.close(); + } } public void createPDFFile( byte fo[], String path )