use of org.apache.fop.svg.PDFTranscoder in project dhis2-core by dhis2.
the class SvgConversionController method convertToPdf.
private void convertToPdf(String svg, OutputStream out) throws TranscoderException {
svg = replaceUnsafeSvgText(svg);
PDFTranscoder transcoder = new PDFTranscoder();
TranscoderInput input = new TranscoderInput(new StringReader(svg));
TranscoderOutput output = new TranscoderOutput(out);
transcoder.transcode(input, output);
}
Aggregations