Hello !

I'm on Windows 2000 with batik version of FOP 0.20.4 I don't know how to
find the version...
My application server is EASERVER 4.2.2

My problem is the following :

I want to print SVG calendars on different pages of a PDF.
I installed FOP, and make some test and I get the following script :
I don't understand how to handle page... I test a "for" but it's crash
and it isn't append.
Can I make a break of page ? I see also that I can use SVG embedded in
FO file, but in this case wath is the transcoder ???

Help a poor guy lose in the Batik world....

// PDF Generation with an SVG source file
String ls_abs_fichier, ls_path, ls_fichier_dest;
PDFTranscoder l_transcoder;
int nb_pages = 5;

ls_path = pageContext.getServletContext().getRealPath(".");
ls_abs_fichier = ls_path.substring(0, ls_path.length() - 1);
ls_fichier_dest = ls_abs_fichier.concat("test_pdf/resultat_svg.pdf");

l_transcoder = new PDFTranscoder();

TranscoderInput input = new
TranscoderInput("http://localhost:8080/test_tech/test_pdf/new_planning.s
vg");
OutputStream ostream = new FileOutputStream(ls_fichier_dest);
TranscoderOutput output = new TranscoderOutput(ostream);

l_transcoder.transcode(input, output);

ostream.flush();
ostream.close();

Thanks for help.

Bruno Prin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to