https://issues.apache.org/bugzilla/show_bug.cgi?id=51105
--- Comment #5 from [email protected] 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: [email protected] For additional commands, e-mail: [email protected]
