Class PDFToImage

java.lang.Object
de.uplanet.lucy.server.file.conversion.PDFToImage

@Scriptable public class PDFToImage extends Object
Class for converting PDFs to images and vice versa.
  • Constructor Details

    • PDFToImage

      public PDFToImage()
  • Method Details

    • pdfToImage

      public Path pdfToImage(Path p_filePDF) throws IOException
      Converting an PDF to images
      Parameters:
      p_filePDF - PDF file
      Returns:
      a path with a directory with image files
      Throws:
      IOException - if an error occurs
    • pdfToImage

      public Path pdfToImage(Path p_filePDF, int p_iDPI, String p_strType) throws IOException
      Converting an PDF to images
      Parameters:
      p_filePDF - PDF file
      p_iDPI - image resolution
      p_strType - image type (tiff, png, jpeg)
      Returns:
      a path with a directory with image files
      Throws:
      IOException - if an error occurs
    • pdfToImage

      public void pdfToImage(Path p_filePDF, Path p_dirImages) throws IOException
      Converting an PDF to images
      Parameters:
      p_filePDF - PDF file
      p_dirImages - image directory
      Throws:
      IOException - if an error occurs
    • pdfToImage

      public void pdfToImage(Path p_filePDF, Path p_dirImages, int p_iDPI, String p_strType) throws IOException
      Converting an PDF to images
      Parameters:
      p_filePDF - PDF file
      p_dirImages - image directory
      p_iDPI - image resolution
      p_strType - image type (tiff, png, jpeg)
      Throws:
      IOException - if an error occurs
    • pdfFromImage

      public void pdfFromImage(Path p_filePdf, Path... p_filesImages) throws IOException
      Converts images to a pdf
      Parameters:
      p_filePdf - destination PDF file
      p_filesImages - image files
      Throws:
      IOException - if an error occurs
    • pdfFromImage

      public void pdfFromImage(Path p_filePdf, List<Path> p_filesImages) throws IOException
      Converts image to a pdf
      Parameters:
      p_filePdf - destination PDF file
      p_filesImages - image files
      Throws:
      IOException - if an error occurs