Class PdfUtil

java.lang.Object
be.gaudry.model.image.cewe.PdfUtil

public class PdfUtil extends Object
Utility class for working with PDFs.
  • 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, TransformerException
      Converts an FO file to a PDF file using Apache FOP.
      Parameters:
      bgw - background worker to report progress information
      fo - the FO file
      pdf - the target PDF file
      dpi - the DPI resolution to use for bitmaps in the PDF
      Throws:
      IOException - In case of an I/O problem
      org.apache.fop.apps.FOPException - In case of a FOP problem
      TransformerException - In case of XML transformer problem