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:
digraph inheritancedc338e7e26 { rankdir=LR; size="8.0, 12.0"; "Job" [style="setlinewidth(0.5)",URL="event-model.html#djvu.decode.Job",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="A job.",height=0.25,shape=box,fontsize=10]; "SaveJob" [style="setlinewidth(0.5)",URL="#djvu.decode.SaveJob",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Document saving job.",height=0.25,shape=box,fontsize=10]; "Job" -> "SaveJob" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
Document saving job.
Use Document.save() to obtain instances of this class.
Inheritance diagram:
digraph inheritance09dcc7a7c6 { rankdir=LR; size="8.0, 12.0"; "DocumentDecodingJob" [style="setlinewidth(0.5)",URL="#djvu.decode.DocumentDecodingJob",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Document decoding job.",height=0.25,shape=box,fontsize=10]; "Job" -> "DocumentDecodingJob" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Job" [style="setlinewidth(0.5)",URL="event-model.html#djvu.decode.Job",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="A job.",height=0.25,shape=box,fontsize=10]; }
Document decoding job.
Use Document.decoding_job to obtain instances of this class.