MCPcopy Create free account
hub / github.com/PCGen/pcgen / newFopTask

Method newFopTask

code/src/java/pcgen/util/fop/FopTask.java:145–151  ·  view source on GitHub ↗

Creates a new FopTask that transforms the input stream using the given xsltFile and outputs a pdf document to the given output stream. The output can be saved to a file if a FileOutputStream is used. @param inputXmlStream the fop xml input stream @param xsltFile the transform template file, if null

(InputStream inputXmlStream, File xsltFile, OutputStream outputPdf)

Source from the content-addressed store, hash-verified

143 * @throws FileNotFoundException if xsltFile is not null and does not exist
144 */
145 public static FopTask newFopTask(InputStream inputXmlStream, File xsltFile, OutputStream outputPdf)
146 throws FileNotFoundException
147 {
148 StreamSource xsltSource = createXsltStreamSource(xsltFile);
149 userAgent = FOP_FACTORY.newFOUserAgent();
150 return new FopTask(new StreamSource(inputXmlStream), xsltSource, null, outputPdf);
151 }
152
153 /**
154 * Creates a new FopTask that transforms the input stream using the given xsltFile and outputs a

Callers 3

doInBackgroundMethod · 0.95
exportCharacterToPDFMethod · 0.95
exportPartyToPDFMethod · 0.95

Calls 1

Tested by

no test coverage detected