[ https://issues.apache.org/jira/browse/FOP-3133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17727536#comment-17727536 ]
Srikant Das edited comment on FOP-3133 at 5/30/23 2:13 PM: ----------------------------------------------------------- Hi Dave, Thanks a lot for the update! I am not familiar with the issues around using foreignObjects with Batik. I have created one ticket in Batik jira. Best Regards, Srikant was (Author: JIRAUSER282133): Hi Dave, Thanks a lot for the update! I have created one ticket in Batik jira. Best Regards, Srikant > Labels are missing in PDF when SVG is converted to PDF using PDFTranscoder > -------------------------------------------------------------------------- > > Key: FOP-3133 > URL: https://issues.apache.org/jira/browse/FOP-3133 > Project: FOP > Issue Type: Bug > 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)