public class PdfDocument extends Document
Modifier and Type | Field and Description |
---|---|
private java.io.File |
_pdfFile
Source PDF file.
|
static java.lang.String |
DB_DEFAULT_NAME
Name of the default SQLite database file for PDF documents.
|
Constructor and Description |
---|
PdfDocument(java.io.File file)
Creates a PDF document.
|
PdfDocument(java.io.File file,
java.io.File db)
Creates a PDF document.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getDbName()
Return the name of the PDF file.
|
protected java.lang.String |
getName()
Return the name of the PDF source file, without the extension.
|
void |
merge()
Merge a PDF file with its scribbles.
|
void |
merge(java.io.File output)
Merge the scribbles with the original PDF in a new PDF file.
|
exportToPNG, exportToPNG, exportToPNG, format, getDocument, getScribbleMgr, merge, merge
public static final java.lang.String DB_DEFAULT_NAME
private java.io.File _pdfFile
public PdfDocument(java.io.File file)
file
- the PDF filejava.lang.IllegalArgumentException
- if file
does not represent a filepublic PdfDocument(java.io.File file, java.io.File db)
file
- PDF filedb
- database filejava.lang.IllegalArgumentException
- if file
does not represent a fileprotected java.lang.String getDbName()
getDbName
in class Document
ScribbleMgr
protected java.lang.String getName()
public void merge()
getName()
__NOTED.pdf.public void merge(java.io.File output)
ColorMgr
class. If a
value of true
is found in the config parameter strictMerge
, in the output there will be only the pages with scribbles.merge
in class Document
output
- the output file/path; if it is a folder, the output file
will be written in a file inside the folder named as "getName()
__NOTED.pdf"; if it is null
, the merge()
method is invokedjava.lang.IllegalArgumentException
- if the output file is the same as the PDF
or database file© 2015 andynaz - http://andynaz.altervista.org