[ https://issues.apache.org/jira/browse/BATIK-1357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17728385#comment-17728385 ]
Srikant Das commented on BATIK-1357: ------------------------------------ Hello Dave, Hope you are using the same code I mentioned in my previous comment along with dependency version. Please let me know if you have any other changes. Thank you so much for the suggested work-around! I would see if I can replace the <switch> construct with the <text> child alone before adding the SVG in to the document. Best Regards, Srikant > Labels are missing in PDF when SVG is converted to PDF using PDFTranscoder > -------------------------------------------------------------------------- > > Key: BATIK-1357 > URL: https://issues.apache.org/jira/browse/BATIK-1357 > Project: Batik > Issue Type: Bug > Affects Versions: 1.10 > Reporter: Srikant Das > Priority: Major > Attachments: test.svg > > > I was converting an SVG File into PDF using Apache Batik but labels are > missing in the PDF > The following code is used to generate PDF: > {code:java} > import org.apache.batik.transcoder.TranscoderInput; > import org.apache.batik.transcoder.TranscoderOutput; > ... > File svgFile = new File("./target/test.svg"); > ... > PDFTranscoder transcoder = new PDFTranscoder(); > try (FileInputStream fileInputStream = new FileInputStream(svgFile); > FileOutputStream fileOutputStream = new FileOutputStream(new > File("./target/test-batik.pdf"))) { > TranscoderInput transcoderInput = new TranscoderInput(fileInputStream); > TranscoderOutput transcoderOutput = new > TranscoderOutput(fileOutputStream); > transcoder.transcode(transcoderInput, transcoderOutput); > } > {code} > {code:java} > //dependency > <dependency> > <groupId>org.apache.xmlgraphics</groupId> > <artifactId>batik-transcoder</artifactId> > <version>1.10</version> > </dependency> > {code} > Could you please help me to resolve this issue? -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: batik-dev-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: batik-dev-h...@xmlgraphics.apache.org