xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51105] Generating PDF using iText and PrintTranscoder ignores translucent shapes
Date Fri, 22 Apr 2011 13:38:29 GMT

--- Comment #5 from jan.krakora.cz@gmail.com 2011-04-22 09:38:26 EDT ---
Are you sure? I tried to put a breakpoint there and debug and it's not called
at all.
Does use this method the PrintTranscoder? In fact, looking at the code:

PdfContentByte contentByte = writer.getDirectContent();
PdfTemplate template = contentByte.createTemplate(1000, 500);
Graphics2D g2D = template.createGraphics(1000, 500);

PrintTranscoder transcoder = new PrintTranscoder();
transcoder.transcode(new TranscoderInput(new ByteArrayInputStream(data)),
PageFormat pg = new PageFormat();
Paper p = new Paper();
p.setSize(1000, 500);
p.setImageableArea(0, 0, 1000, 500);
transcoder.print(g2D, pg, 0);
contentByte.addTemplate(template, 0, 0);

the transcoder is using the graphics2D from iText's PdfTemplate object, which
is theirs own 
Graphics2D implementation called PdfGraphics2D. But as I've written in my first
this graphics is OK because the attached "good.pdf" is generated using it.
Problem is when using
the PrintTascoder like above.

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

View raw message