http://www.nabble.com/user-files/235785/FromPDFTranscoderNotUsingFOP.pdf FromPDFTranscoderNotUsingFOP.pdf I was using fop.jar to convert an SVGDocument to PDF . Though the generated PDF has all the background colour, Graphic Image and barcode values rendered in it , the text values were not rendered. (Please see the attached SamplePDFFromGraphicsNodeUsingFOP.pdf) . After going through a lot of mailing lists , I tried to generate the PDF using the pdf-transcoder.jar instead of fop.jar (but used the same code ). Then I found that the text values are rendered but the positioning of those fields is completely wrong . (Please see the attached SamplePDFFromGraphicsNodeNotUsingFOP.pdf) . The code which I have used in both the cases is as follows : 1. From the SVGDocument , build the GraphicsNode using BridgeContext and UserAgent. 2. Obtain a PDFDocumentGraphics2D object. 3. Use the paint() method of GraphicsNode and pass the PDFDocumentGraphics2D object to it. Though the code fragment used in both the cases is same , I could not understand the difference in the generated PDFs using the respective jars. Also , I tried to use the PDFTranscoder.class to generate the PDF with the fop.jar and pdf-transcoder.jar , and I found the same difference in the output as described above. (Please see the attached FromPDFTranscoderUsingFOP.pdf and PDFTranscoderNotUsingFOP.pdf)
looking for a quick help .... http://www.nabble.com/user-files/235786/FromPDFTranscoderUsingFOP.pdf FromPDFTranscoderUsingFOP.pdf http://www.nabble.com/user-files/235791/SamplePDF%2BFromGraphicsNodeNotUsingFOP.pdf SamplePDF FromGraphicsNodeNotUsingFOP.pdf http://www.nabble.com/user-files/235792/SamplePDFFromGraphicsNodeUsingFOP.pdf SamplePDFFromGraphicsNodeUsingFOP.pdf -- View this message in context: http://www.nabble.com/Problem-in-generating-a-PDF-using-pdf-transcoder.jar-tf2178018.html#a6022329 Sent from the Batik - Users forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
