Class AmountOfPagesPipe

All Implemented Interfaces:
FrankElement, HasApplicationContext, HasName, HasTransactionAttribute, IConfigurable, IForwardTarget, IPipe, IScopeProvider, IWithParameters, NameAware, EventThrowing, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle

@Forward(name="passwordProtected", description="the File is password protected") public class AmountOfPagesPipe extends FixedForwardPipe
Returns the amount of pages of a PDF file.
Since:
7.6
Author:
Laurens Mäkel
  • Constructor Details

    • AmountOfPagesPipe

      public AmountOfPagesPipe()
  • Method Details

    • doPipe

      public PipeRunResult doPipe(Message input, PipeLineSession session) throws PipeRunException
      Description copied from interface: IPipe
      This is where the action takes place. Pipes may only throw a PipeRunException, to be handled by the caller of this object. Implementations must either consume the message, or pass it on to the next Pipe in the PipeRunResult.
      Throws:
      PipeRunException
    • setCharset

      public void setCharset(String charset)
      Charset to be used to read the input message. Defaults to the message's known charset or UTF-8 when unknown.