Package org.apache.camel.component.pdf
Class PdfConfiguration
- java.lang.Object
-
- org.apache.camel.component.pdf.PdfConfiguration
-
@UriParams public class PdfConfiguration extends Object
Handles pdf component configuration values.
-
-
Constructor Summary
Constructors Constructor Description PdfConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.pdfbox.pdmodel.font.PDFont
getFont()
float
getFontSize()
int
getMarginBottom()
int
getMarginLeft()
int
getMarginRight()
int
getMarginTop()
PdfOperation
getOperation()
org.apache.pdfbox.pdmodel.common.PDRectangle
getPageSize()
TextProcessingFactory
getTextProcessingFactory()
void
setFont(String font)
Fontvoid
setFontSize(float fontSize)
Font size in pixelsvoid
setMarginBottom(int marginBottom)
Margin bottom in pixelsvoid
setMarginLeft(int marginLeft)
Margin left in pixelsvoid
setMarginRight(int marginRight)
Margin right in pixelsvoid
setMarginTop(int marginTop)
Margin top in pixelsvoid
setOperation(String operation)
void
setOperation(PdfOperation operation)
void
setPageSize(String pageSize)
Page sizevoid
setTextProcessingFactory(String textProcessingFactory)
void
setTextProcessingFactory(TextProcessingFactory textProcessingFactory)
Text processing to use.
-
-
-
Method Detail
-
getOperation
public PdfOperation getOperation()
-
setOperation
public void setOperation(String operation)
-
setOperation
public void setOperation(PdfOperation operation)
-
getMarginTop
public int getMarginTop()
-
setMarginTop
public void setMarginTop(int marginTop)
Margin top in pixels
-
getMarginBottom
public int getMarginBottom()
-
setMarginBottom
public void setMarginBottom(int marginBottom)
Margin bottom in pixels
-
getMarginLeft
public int getMarginLeft()
-
setMarginLeft
public void setMarginLeft(int marginLeft)
Margin left in pixels
-
getMarginRight
public int getMarginRight()
-
setMarginRight
public void setMarginRight(int marginRight)
Margin right in pixels
-
getFontSize
public float getFontSize()
-
setFontSize
public void setFontSize(float fontSize)
Font size in pixels
-
getPageSize
public org.apache.pdfbox.pdmodel.common.PDRectangle getPageSize()
-
setPageSize
public void setPageSize(String pageSize)
Page size
-
getFont
public org.apache.pdfbox.pdmodel.font.PDFont getFont()
-
setFont
public void setFont(String font)
Font
-
getTextProcessingFactory
public TextProcessingFactory getTextProcessingFactory()
-
setTextProcessingFactory
public void setTextProcessingFactory(TextProcessingFactory textProcessingFactory)
Text processing to use.- autoFormatting: Text is getting sliced by words, then max amount of words that fits in the line will be written into pdf document. With this strategy all words that doesn't fit in the line will be moved to the new line.
- lineTermination: Builds set of classes for line-termination writing strategy. Text getting sliced by line termination symbol and then it will be written regardless it fits in the line or not.
-
setTextProcessingFactory
public void setTextProcessingFactory(String textProcessingFactory)
-
-