|
iRex DR1000 Manager v0.5.1 | ||||||||
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 |
getDefaultFileName()
Return the name of the PDF source file, without the extension. |
protected String |
getFileName()
Return the name of the PDF file. |
void |
merge(String outputFilePath,
Color c)
Merge the scribbles with the PDF. |
Methods inherited from class it.andynaz.irex.dr1000.document.Document |
---|
exportToPNG, format, getScribbleMgr, 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 getFileName()
getFileName
in class Document
ScribbleMgr
protected String getDefaultFileName()
getDefaultFileName
in class Document
public void merge(String outputFilePath, Color c)
merge
in class Document
outputFilePath
- the output file path; if it is null
or
empty, the default one returned by getDefaultFileName()
is usedc
- stokes color
|
iRex DR1000 Manager v0.5.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |