Class PageSizeConformityDocumentProcessor
- java.lang.Object
-
- com.levigo.jadice.server.documentplatform.document.processor.PageSizeConformityDocumentProcessor
-
- All Implemented Interfaces:
DocumentProcessor
public class PageSizeConformityDocumentProcessor extends Object implements DocumentProcessor
This document processor adjusts the page dimensions that are required by the implementation limit defined in ISO 32000-1, Annex C.2 .
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PageSizeConformityDocumentProcessor.InterventionMode
Enum controlling how to intervene when a page page doesn't conform to the required 3pt x 3pt minimum dimensions.-
Nested classes/interfaces inherited from interface com.levigo.jadice.server.documentplatform.DocumentProcessor
DocumentProcessor.ProcessingPhase
-
-
Constructor Summary
Constructors Constructor Description PageSizeConformityDocumentProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PageSizeConformityDocumentProcessor.InterventionMode
getInterventionMode()
void
process(ReshapeWorker worker, DocumentProcessor.ProcessingPhase processingPhase, com.levigo.jadice.document.Document document)
Process (and manipulate) the given jadiceDocument
protected void
rescalePage(com.levigo.jadice.document.Page page, double height, double width)
void
setInterventionMode(PageSizeConformityDocumentProcessor.InterventionMode interventionMode)
-
-
-
Method Detail
-
process
public void process(ReshapeWorker worker, DocumentProcessor.ProcessingPhase processingPhase, com.levigo.jadice.document.Document document)
Description copied from interface:DocumentProcessor
Process (and manipulate) the given jadiceDocument
- Specified by:
process
in interfaceDocumentProcessor
- Parameters:
worker
- The context in which the processing happensprocessingPhase
- The currentDocumentProcessor.ProcessingPhase
document
- TheDocument
that shall be reshaped
-
rescalePage
protected void rescalePage(com.levigo.jadice.document.Page page, double height, double width)
-
getInterventionMode
public PageSizeConformityDocumentProcessor.InterventionMode getInterventionMode()
-
setInterventionMode
public void setInterventionMode(PageSizeConformityDocumentProcessor.InterventionMode interventionMode)
-
-