Package org.adempiere.pdf
Class Document
java.lang.Object
org.adempiere.pdf.Document
Create PDF document from
Pageable
using iText (openpdf)- Author:
- Low Heng Sin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
getPDFAsArray
(Pageable pageable) Create byte[] pdf content from pageablestatic File
getPDFAsFile
(String filename, Pageable pageable) Create pdf file from pageablestatic boolean
static boolean
static void
writePDF
(Pageable pageable, OutputStream output) write pageable to output
-
Constructor Details
-
Document
public Document()
-
-
Method Details
-
writePDF
write pageable to output- Parameters:
pageable
-output
-
-
getPDFAsFile
Create pdf file from pageable- Parameters:
filename
-pageable
-- Returns:
- pdf file
-
getPDFAsArray
Create byte[] pdf content from pageable- Parameters:
pageable
-- Returns:
- pdf content
-
isValid
- Parameters:
layout
-- Returns:
- nop, always return true
-
isLicensed
public static boolean isLicensed()- Returns:
- nop, always return true
-