Class PhantomJSRenderReceiptService

All Implemented Interfaces:
IRenderReceiptService, IServiceDefinitionAware

public class PhantomJSRenderReceiptService extends AbstractRenderReceiptService
Provides an PhantomJS PDF Receipt Rendering service.
Since:
4.0.0
  • Field Details

    • DEFAULT_SERVICE_NAME

      public static final String DEFAULT_SERVICE_NAME
      The default service definition name.
      See Also:
  • Constructor Details

    • PhantomJSRenderReceiptService

      public PhantomJSRenderReceiptService()
  • Method Details

    • requiresLiveCycle

      public boolean requiresLiveCycle()
      Returns false as this service does not require LiveCycle.
      Returns:
      false
      See Also:
    • getPageSizeFormat

      public String getPageSizeFormat()
      Returns:
      the pageSizeFormat
    • setPageSizeFormat

      public void setPageSizeFormat(String pageSize)
      Set the PhantomJS output page size [ A4 | Letter | Legal ]
      Parameters:
      pageSize - the page size format to set
    • getPageSizeMargin

      public String getPageSizeMargin()
      Returns:
      the pageSizeMargin
    • setPageSizeMargin

      public void setPageSizeMargin(String pageSizeMargin)
      Set the PhantomJS page size margin.
      Parameters:
      pageSizeMargin - the pageSizeMargin to set
    • getLinuxPageZoomFactor

      public String getLinuxPageZoomFactor()
      Return the Linux page zoom factor.
      Returns:
      the Linux page zoom factor
      Since:
      4.2.0
    • setLinuxPageZoomFactor

      public void setLinuxPageZoomFactor(String zoomFactor)
      Set the Linux page zoom factor.
      Parameters:
      zoomFactor - the Linux page zoom factor
      Since:
      4.2.0
    • getProcessTimeout

      public Integer getProcessTimeout()
      Set the PhantomJS rendering process timeout in milliseconds.
      Returns:
      the PhantomJS rendering process timeout in milliseconds.
      Since:
      4.1.0
    • setProcessTimeout

      public void setProcessTimeout(Integer value)
      Set the PhantomJS rendering process timeout in milliseconds.
      Parameters:
      value - the PhantomJS rendering process timeout in milliseconds.
      Since:
      4.1.0
    • setPhantomJsExe

      public void setPhantomJsExe(String value)
      Set the PhantomJS executable filename, without the Windows .exe file extension.
      Parameters:
      value - the PhantomJS executable file
      Since:
      5.1.1
    • getReceiptDocument

      protected DataDocument getReceiptDocument(Submission submission, jakarta.servlet.http.HttpServletRequest request, RequestLog requestLog, String receiptMode) throws ApplicationException
      Description copied from class: AbstractRenderReceiptService
      Return the PDF Receipt DataDocument for the submission, request and requestLog.
      Specified by:
      getReceiptDocument in class AbstractRenderReceiptService
      Parameters:
      submission - the form submission
      request - the servlet request
      requestLog - the request log
      receiptMode - receipt mode in [ Web | Email | Delivery ]
      Returns:
      the PDF Receipt DataDocument for the submission, request and requestLog
      Throws:
      ApplicationException