PDF

PDF

Scheme: pdf
Syntax: pdf:operation
Description: The pdf components provides the ability to create modify or extract content from PDF documents.
Deprecated:false
ProducerOnly:true
Async:false
Maven: org.apache.camel/camel-pdf/2.18.1.redhat-000035

The pdf components provides the ability to create, modify or extract content from PDF documents.

Name Kind Group Required Default Type Enum Description
operation path producer true org.apache.camel.component.pdf.PdfOperation create
append
extractText
Operation type
bridgeErrorHandler parameter consumer boolean Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN/ERROR level and ignored.
exceptionHandler parameter consumer (advanced) org.apache.camel.spi.ExceptionHandler To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options is not in use. By default the consumer will deal with exceptions, that will be logged at WARN/ERROR level and ignored.
exchangePattern parameter consumer (advanced) org.apache.camel.ExchangePattern InOnly
RobustInOnly
InOut
InOptionalOut
OutOnly
RobustOutOnly
OutIn
OutOptionalIn
Sets the exchange pattern when the consumer creates an exchange.
font parameter producer Helvetica org.apache.pdfbox.pdmodel.font.PDFont Font
fontSize parameter producer 14 float Font size in pixels
marginBottom parameter producer 20 int Margin bottom in pixels
marginLeft parameter producer 20 int Margin left in pixels
marginRight parameter producer 40 int Margin right in pixels
marginTop parameter producer 20 int Margin top in pixels
pageSize parameter producer PAGE_SIZE_A4 org.apache.pdfbox.pdmodel.common.PDRectangle PAGE_SIZE_A0
PAGE_SIZE_A1
PAGE_SIZE_A2
PAGE_SIZE_A3
PAGE_SIZE_A4
PAGE_SIZE_A5
PAGE_SIZE_A6
PAGE_SIZE_LETTER
Page size
textProcessingFactory parameter producer lineTermination org.apache.camel.component.pdf.TextProcessingFactory autoFormatting
lineTermination
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.
synchronous parameter advanced false boolean Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).