xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acarrascal <albcarras...@gmail.com>
Subject PDF pagination
Date Fri, 15 Feb 2013 06:07:39 GMT
Hi all,

I'm trying to export pdf reports by converting original SVG documents. This
is the code I'm using to do it:

public static void renderReport(Document document, File file) throws
IOException, TranscoderException,
           TransformerException {
       OutputStream outputStream = new FileOutputStream(file);
       try {
           TransformerFactory transformerFactory =
           Transformer transformer = transformerFactory.newTransformer();
           transformer.setOutputProperty(OutputKeys.INDENT, "yes");
           DOMSource domSource = new DOMSource(document);
           StreamResult streamResult = new StreamResult(System.out);
           transformer.transform(domSource, streamResult);
           TranscoderInput transcoderInput = new TranscoderInput(document);
           TranscoderOutput transcoderOutput = new
           Transcoder transcoder = new PDFTranscoder();
           transcoder.transcode(transcoderInput, transcoderOutput);
       } finally {

The question is: is there any supported batik feature to paginate final pdf
reports? any idea?


View this message in context: http://batik.2283329.n4.nabble.com/PDF-pagination-tp4655467.html
Sent from the Batik - Users mailing list archive at Nabble.com.

To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

View raw message