Package be.gaudry.model.image.cewe
Class PdfUtil
java.lang.Object
be.gaudry.model.image.cewe.PdfUtil
Utility class for working with PDFs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
convertFO2PDF(AbstractBrolWorker<Integer> bgw, InputStream fo, OutputStream pdf, int dpi)
Converts an FO file to a PDF file using Apache FOP.
-
Constructor Details
-
PdfUtil
public PdfUtil()
-
-
Method Details
-
convertFO2PDF
public static void convertFO2PDF(AbstractBrolWorker<Integer> bgw, InputStream fo, OutputStream pdf, int dpi) throws IOException, org.apache.fop.apps.FOPException, TransformerExceptionConverts an FO file to a PDF file using Apache FOP.- Parameters:
bgw
- background worker to report progress informationfo
- the FO filepdf
- the target PDF filedpi
- the DPI resolution to use for bitmaps in the PDF- Throws:
IOException
- In case of an I/O problemorg.apache.fop.apps.FOPException
- In case of a FOP problemTransformerException
- In case of XML transformer problem
-