[
https://issues.apache.org/jira/browse/BATIK-1333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simon Steiner resolved BATIK-1333.
----------------------------------
Fix Version/s: trunk
Resolution: Fixed
http://svn.apache.org/viewvc?view=revision&revision=1903625
> 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
> Fix For: trunk
>
> 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]