public class PDFUtils extends Object
Modifier and Type | Field and Description |
---|---|
static int |
LAYER_OVER_CONTENT |
static int |
LAYER_UNDER_CONTENT |
Constructor and Description |
---|
PDFUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
fillForm(InputStream input,
Map<String,Object> values,
OutputStream output)
Fill PDF form
|
static void |
generateSample(int paragraphs,
OutputStream os)
Generate sample PDF
|
static List<String> |
listFormFields(String input)
List form fields
|
static File |
markToPrint(File input)
Mark PDF to be printed.
|
static void |
merge(List<InputStream> inputs,
OutputStream output)
Merge several PDFs into a new one
|
static void |
merge(String token,
List<String> docIds,
String dstPath)
Merge several PDFs into a new one
|
public static int LAYER_UNDER_CONTENT
public static int LAYER_OVER_CONTENT
public static void fillForm(InputStream input, Map<String,Object> values, OutputStream output) throws FileNotFoundException, com.lowagie.text.DocumentException, freemarker.template.TemplateException, IOException
FileNotFoundException
com.lowagie.text.DocumentException
freemarker.template.TemplateException
IOException
public static List<String> listFormFields(String input) throws FileNotFoundException, com.lowagie.text.DocumentException, IOException
FileNotFoundException
com.lowagie.text.DocumentException
IOException
public static void generateSample(int paragraphs, OutputStream os) throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentException
public static void merge(List<InputStream> inputs, OutputStream output) throws IOException, com.lowagie.text.DocumentException
IOException
com.lowagie.text.DocumentException
public static void merge(String token, List<String> docIds, String dstPath) throws IOException, com.lowagie.text.DocumentException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnsupportedMimeTypeException, FileSizeExceededException, UserQuotaExceededException, VirusDetectedException, ExtensionException, AutomationException, LockException, VersionException
token
- Authentication info.docIds
- The paths that identifies an unique documents or its UUID.dstPath
- The path of the resulting PDF document (with the name).IOException
com.lowagie.text.DocumentException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
UnsupportedMimeTypeException
FileSizeExceededException
UserQuotaExceededException
VirusDetectedException
ExtensionException
AutomationException
LockException
VersionException
public static File markToPrint(File input) throws com.lowagie.text.DocumentException, IOException
com.lowagie.text.DocumentException
IOException
Copyright © 2016. All rights reserved.