|
iRex DR1000 Manager v0.5.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.andynaz.irex.dr1000.document.Document
it.andynaz.irex.dr1000.document.PdfDocument
public class PdfDocument
Represent a DR1000 PDF file. An object of that kind is associated with a path to a PDF file.
Field Summary | |
---|---|
static String |
DB_DEFAULT_NAME
Name of the default SQLite database file for PDF documents. |
private File |
file
Source PDF file. |
Fields inherited from class it.andynaz.irex.dr1000.document.Document |
---|
db |
Constructor Summary | |
---|---|
PdfDocument(File file)
Creates a PDF document. |
|
PdfDocument(File file,
File db)
Creates a PDF document. |
Method Summary | |
---|---|
protected String |
getDbName()
Return the name of the PDF file. |
protected String |
getDefaultFileName()
Return the name of the PDF source file, without the extension. |
void |
merge(File output)
Merge the scribbles with the original PDF in a new PDF file. |
Methods inherited from class it.andynaz.irex.dr1000.document.Document |
---|
exportToPNG, exportToPNG, exportToPNG, format, getDocument, getScribbleMgr, merge, merge |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DB_DEFAULT_NAME
private File file
Constructor Detail |
---|
public PdfDocument(File file)
file
- the PDF file
IllegalArgumentException
- if file
does not represent a filepublic PdfDocument(File file, File db)
file
- PDF filedb
- database file
IllegalArgumentException
- if file
does not represent a fileMethod Detail |
---|
protected String getDbName()
getDbName
in class Document
ScribbleMgr
protected String getDefaultFileName()
getDefaultFileName
in class Document
public void merge(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 "getDefaultFileName()
__NOTED.pdf"; if it is null
, the default value
will be used
IllegalArgumentException
- if the output file is the same as the PDF
or database file
|
iRex DR1000 Manager v0.5.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |