[
https://issues.apache.org/jira/browse/BATIK-1333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simon Steiner updated BATIK-1333:
---------------------------------
Attachment: test.svg
> Block external resource before calling fop
> ------------------------------------------
>
> Key: BATIK-1333
> URL: https://issues.apache.org/jira/browse/BATIK-1333
> Project: Batik
> Issue Type: Bug
> Reporter: Simon Steiner
> Assignee: Simon Steiner
> Priority: Major
> Attachments: test.svg
>
>
> We should block external resource before fop is called
> PDFTranscoder transcoder = new PDFTranscoder();
> TranscoderInput xIn = new TranscoderInput(new
> FileInputStream("test.svg"));
> TranscoderOutput xOut = new TranscoderOutput(new
> ByteArrayOutputStream());
> transcoder.addTranscodingHint(PDFTranscoder.KEY_AUTO_FONTS, false);
>
> transcoder.addTranscodingHint(ImageTranscoder.KEY_ALLOW_EXTERNAL_RESOURCES,
> false);
> transcoder.transcode(xIn, xOut);
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]