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
https://issues.apache.org/bugzilla/show_bug.cgi?id=51105

--- 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)),
null);
PageFormat pg = new PageFormat();
Paper p = new Paper();
p.setSize(1000, 500);
p.setImageableArea(0, 0, 1000, 500);
pg.setPaper(p);
transcoder.print(g2D, pg, 0);
g2D.dispose();
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
comment, 
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


Mime
View raw message