public class LibreOfficeConversionNode extends Node
A node using LibreOffice for document conversion processing.
Its worker respects PageCountLimit
s.
Important Notice: In order to work the LibreOffice program folder1 must be added to jadice server's class path. For LibreOffice 4.x the file jurt.jar2 that is contained within the OOo folder must be added to the class path, too.
1: typically C:\Programs\LibreOffice\App\libreoffice\program\ for MS
Windows®
2: typically
C:\Programs\LibreOffice\App\libreofficeLibreOffice\App\libreoffice\URE\java\jurt.jar.
This issue is related to the bug described in Issue 80383 in the OOo bug
tracker.
Node.Cardinality
Constructor and Description |
---|
LibreOfficeConversionNode() |
Modifier and Type | Method and Description |
---|---|
ExportFormat |
getExportFormat() |
Integer |
getMaxStreamSize() |
String |
getTargetMimeType()
Get the selected target MIME type
|
String |
getWorkerClassName()
Return the node's associated
NodeWorker full qualified class's
name. |
void |
setExportFormat(ExportFormat exportFormat)
Set the export format.
|
void |
setMaxStreamSize(Integer maxStreamSize)
Set how many pages the resulting stream(s) shall contain at most.
|
void |
setTargetMimeType(String targetMimeType)
Deprecated.
just set the
export format . |
addTransportReceiver, appendSuccessor, apply, equals, getInputCardinality, getJob, getOutputCardinality, getPredecessors, getSubsidiaryNodes, getSuccessors, getTransportSender, getUUID, hashCode, initialize, prependPredecessor, remove, validateConfiguration
public String getWorkerClassName()
Node
Return the node's associated
NodeWorker
full qualified class's
name. By default, the worker class name is
This behavior can be overridden in concrete subclasses.
getWorkerClassName
in class Node
public String getTargetMimeType()
@Deprecated public void setTargetMimeType(String targetMimeType)
export format
.application/pdf
targetMimeType
- public Integer getMaxStreamSize()
public void setMaxStreamSize(Integer maxStreamSize)
Set how many pages the resulting stream(s) shall contain at most. If this value is less than the number of pages the document has, this worker will split the document in several streams.
E.g.: You have a document with 11 pages and set this value to 5. Then the worker will convert it in three portions: pages 1–5, pages 6–10 and page 11.
This is quite useful if a remote viewing component triggers the conversion that wants the first page as quick a possible and when the following ones can be transfered subsequently.
Note: Be aware that the total time of the conversion will be higher by a significant factor for a lower value.
Implementation Notes:
application/pdf
.
Default value: null
, so that the document will be converted
into one stream that contains all pages.
maxStreamSize
- maximum of pages a stream of a converted document contains or
null
to convert all pages to one stream.public ExportFormat getExportFormat()
public void setExportFormat(ExportFormat exportFormat)
exportFormat
- Copyright © 2017 levigo holding gmbh. All rights reserved.