Class Document

java.lang.Object
org.adempiere.pdf.Document

public class Document extends Object
Create PDF document from Pageable using iText (openpdf)
Author:
Low Heng Sin
  • Constructor Details

    • Document

      public Document()
  • Method Details

    • writePDF

      public static void writePDF(Pageable pageable, OutputStream output)
      write pageable to output
      Parameters:
      pageable -
      output -
    • getPDFAsFile

      public static File getPDFAsFile(String filename, Pageable pageable)
      Create pdf file from pageable
      Parameters:
      filename -
      pageable -
      Returns:
      pdf file
    • getPDFAsArray

      public static byte[] getPDFAsArray(Pageable pageable)
      Create byte[] pdf content from pageable
      Parameters:
      pageable -
      Returns:
      pdf content
    • isValid

      public static boolean isValid(Pageable layout)
      Parameters:
      layout -
      Returns:
      nop, always return true
    • isLicensed

      public static boolean isLicensed()
      Returns:
      nop, always return true