Class AbstractPdfProcletWithPageBreaks

    • Field Detail

      • m_PageBreakBefore

        protected boolean m_PageBreakBefore
        whether to add a page-break before adding the file.
      • m_PageBreakAfter

        protected boolean m_PageBreakAfter
        whether to add a page-break after adding the file.
      • m_NumFilesPerPage

        protected int m_NumFilesPerPage
        the number of files per page.
    • Constructor Detail

      • AbstractPdfProcletWithPageBreaks

        public AbstractPdfProcletWithPageBreaks()
    • Method Detail

      • setPageBreakBefore

        public void setPageBreakBefore​(boolean value)
        Whether to add a page break before the file is inserted.
        Specified by:
        setPageBreakBefore in interface PdfProcletWithPageBreaks
        Parameters:
        value - if true then a page-break is added before the file is inserted
      • getPageBreakBefore

        public boolean getPageBreakBefore()
        Returns whether a page break is added before the file is inserted.
        Specified by:
        getPageBreakBefore in interface PdfProcletWithPageBreaks
        Returns:
        true if a page break is added before the file is inserted
      • pageBreakBeforeTipText

        public String pageBreakBeforeTipText()
        Returns the tip text for this property.
        Specified by:
        pageBreakBeforeTipText in interface PdfProcletWithPageBreaks
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setPageBreakAfter

        public void setPageBreakAfter​(boolean value)
        Whether to add a page break after the file is inserted.
        Specified by:
        setPageBreakAfter in interface PdfProcletWithPageBreaks
        Parameters:
        value - if true then a page-break is added after the file is inserted
      • getPageBreakAfter

        public boolean getPageBreakAfter()
        Returns whether a page break is added after the file is inserted.
        Specified by:
        getPageBreakAfter in interface PdfProcletWithPageBreaks
        Returns:
        true if a page break is added after the file is inserted
      • pageBreakAfterTipText

        public String pageBreakAfterTipText()
        Returns the tip text for this property.
        Specified by:
        pageBreakAfterTipText in interface PdfProcletWithPageBreaks
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setNumFilesPerPage

        public void setNumFilesPerPage​(int value)
        Sets the number of files per page.
        Specified by:
        setNumFilesPerPage in interface PdfProcletWithPageBreaks
        Parameters:
        value - the number of files
      • numFilesPerPageTipText

        public String numFilesPerPageTipText()
        Returns the tip text for this property.
        Specified by:
        numFilesPerPageTipText in interface PdfProcletWithPageBreaks
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • preProcess

        protected boolean preProcess​(PDFGenerator generator,
                                     File file)
                              throws Exception
        For pre-processing the document.
        Overrides:
        preProcess in class AbstractPdfProclet
        Parameters:
        generator - the context
        file - the file to add
        Returns:
        true if successfully added
        Throws:
        Exception - if something goes wrong
      • postProcess

        protected boolean postProcess​(PDFGenerator generator,
                                      File file)
                               throws Exception
        For post-processing the document.
        Overrides:
        postProcess in class AbstractPdfProclet
        Parameters:
        generator - the context
        file - the file to add
        Returns:
        true if successfully added
        Throws:
        Exception - if something goes wrong
      • preProcess

        protected boolean preProcess​(PDFGenerator generator,
                                     Object obj)
                              throws Exception
        For pre-processing the document.
        Overrides:
        preProcess in class AbstractPdfProclet
        Parameters:
        generator - the context
        obj - the object to add
        Returns:
        true if successfully added
        Throws:
        Exception - if something goes wrong
      • postProcess

        protected boolean postProcess​(PDFGenerator generator,
                                      Object obj)
                               throws Exception
        For post-processing the document.
        Overrides:
        postProcess in class AbstractPdfProclet
        Parameters:
        generator - the context
        obj - the object to add
        Returns:
        true if successfully added
        Throws:
        Exception - if something goes wrong