Class PEFHandler.Builder

  • Enclosing class:
    PEFHandler

    public static class PEFHandler.Builder
    extends java.lang.Object
    Provides a Builder for PEFHandler
    Author:
    Joel HÃ¥kansson
    • Constructor Detail

      • Builder

        public Builder​(EmbosserWriter embosser)
        Create a new PEFHandler builder
        Parameters:
        embosser - the embosser writer to use
    • Method Detail

      • align

        public PEFHandler.Builder align​(PEFHandler.Alignment value)
        Sets page alignment to use if the physical paper is bigger than the pages
        Parameters:
        value - the value to use
        Returns:
        returns this object
      • offset

        public PEFHandler.Builder offset​(int value)
        Sets the page margin offset where positive numbers adjust towards the right side of the paper, and negative numbers adjust towards the left side.
        Parameters:
        value - the offset
        Returns:
        returns this object
      • build

        public PEFHandler build()
                         throws java.io.IOException
        Builds a PEFHandler from this builder's current configuration.
        Returns:
        returns a new PEFHandler
        Throws:
        java.io.IOException