https://issues.apache.org/bugzilla/show_bug.cgi?id=51977
--- Comment #2 from [email protected] 2011-10-06 13:18:39 UTC --- (In reply to comment #1) > Can you please attach a XSL-FO, there is nothing in PDF that demonstrate any > issue. > A reproducible test-case will help. i'm creating the pdf file from a svg file by using fop 0.95 (PDFTranscoder) in java. therefore ther is no XSL-FO file. here is my function: public void savePDF(Document document, String filename, boolean embedFonts, final File fontsDir) throws Exception, LegendProgramException { if (document == null) { LegendProgramException svgEx = new LegendProgramException("Exception text.", (short) 62); svgEx.setFilename(filename); throw svgEx; } if (filename.endsWith(".svg")) { filename = filename.substring(0, filename.length() - 3) + "pdf"; } // Configure the transcoder PDFTranscoder trans = new PDFTranscoder(); trans.addTranscodingHint(PDFTranscoder.KEY_PIXEL_UNIT_TO_MILLIMETER, new Float(25.4f / (float) utils.getDpi())); // embedding the fonts if (embedFonts) { this.embededFonts(trans, fontsDir, filename); } TranscoderInput input = new TranscoderInput((Document) document); OutputStream ostream = new FileOutputStream(filename); TranscoderOutput output = new TranscoderOutput(ostream); trans.transcode(input, output); ostream.flush(); ostream.close(); } -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
