public class PDFBoxUtil
extends java.lang.Object
Constructor and Description |
---|
PDFBoxUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addAutoPrint(java.io.InputStream pdfStream,
java.io.OutputStream outputStream)
Adds a piece of javascript to the PDF, that will cause it to print when
opened in a browser's viewer.
|
static byte[] |
flateFilterDecode(byte[] decodedAttachment)
Decodes the data with a Flate filter.
|
static byte[] |
flateFilterEncode(byte[] fileContent)
Encodes the data with a Flate filter.
|
public static byte[] flateFilterEncode(byte[] fileContent)
fileContent
- Byte[] that needs to be encoded.public static byte[] flateFilterDecode(byte[] decodedAttachment)
decodedAttachment
- Byte[] that is decoded.public static void addAutoPrint(java.io.InputStream pdfStream, java.io.OutputStream outputStream)
pdfStream
- - The byte stream containing the PDF Data.outputStream
- - The byte stream that the new PDF will be written to.