DjVu document.
Use Context.new_document() to obtain instances of this class.
Returns: | a JobException subclass indicating the decoding job status. |
---|
Indicate whether the decoding job failed.
Indicate whether the decoding job is done.
Return type: | DocumentDecodingJob |
---|
Returns: | the type of the document. |
---|
The following values are possible:
DOCUMENT_TYPE_UNKNOWN
DOCUMENT_TYPE_SINGLE_PAGE
single-page documentDOCUMENT_TYPE_BUNDLED
bundled multi-page documentDOCUMENT_TYPE_INDIRECT
indirect multi-page documentDOCUMENT_TYPE_OLD_BUNDLED
(obsolete)DOCUMENT_TYPE_OLD_INDEXED
(obsolete)
Before receiving the DocInfoMessage, DOCUMENT_TYPE_UNKNOWN may be returned.
Return type: | DocumentPages. |
---|
Return type: | DocumentFiles. |
---|
Return type: | DocumentOutline. |
---|
Return type: | DocumentAnnotations. |
---|
Save the document as:
pages argument specifies a subset of saved pages.
If wait is true, wait until the job is done.
Return type: | SaveJob. |
---|
Warning
Due to a DjVuLibre (≤ 3.5.20) bug, this method may be broken. See http://bugs.debian.org/467282 for details.
Convert the document into PostScript.
pages argument specifies a subset of saved pages.
If wait is true, wait until the job is done.
Additional options:
Specifies the pages orientation:
PRINT_ORIENTATION_AUTO
automatic
PRINT_ORIENTATION_LANDSCAPE
portrait
PRINT_ORIENTATION_PORTRAIT
landscape
Specifies how pages should be decoded:
PRINT_BOOKLET_NO
Disable booklet mode. This is the default.
PRINT_BOOKLET_YES
Enable recto/verse booklet mode.
PRINT_BOOKLET_RECTO
Enable recto booklet mode.
PRINT_BOOKLET_VERSO
Enable verso booklet mode.
[1] | (1, 2) 1 pt = \frac1{72} in = 0.3528 mm |
Warning
Due to a DjVuLibre (≤ 3.5.20) bug, this method may be broken. See http://bugs.debian.org/469122 for details.
Inheritance diagram:
Document saving job.
Use Document.save() to obtain instances of this class.
Inheritance diagram:
Document decoding job.
Use Document.decoding_job to obtain instances of this class.