You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by "Srikant Das (Jira)" <ji...@apache.org> on 2023/05/30 11:10:00 UTC

[jira] [Updated] (BATIK-1357) Labels are missing in PDF when SVG is converted to PDF using PDFTranscoder

     [ https://issues.apache.org/jira/browse/BATIK-1357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srikant Das updated BATIK-1357:
-------------------------------
    Attachment: test.svg

> 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-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org