Class PhantomJSRenderReceiptService
java.lang.Object
com.avoka.fc.core.service.BaseService
com.avoka.fc.core.service.CayenneService
com.avoka.fc.core.service.AbstractRenderReceiptService
com.avoka.fc.core.service.phantomjs.PhantomJSRenderReceiptService
- All Implemented Interfaces:
IRenderReceiptService
,IServiceDefinitionAware
Provides an PhantomJS PDF Receipt Rendering service.
- Since:
- 4.0.0
-
Field Summary
Fields inherited from class com.avoka.fc.core.service.AbstractRenderReceiptService
CONTENT_TYPE_PDF
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the Linux page zoom factor.Set the PhantomJS rendering process timeout in milliseconds.protected DataDocument
getReceiptDocument
(Submission submission, jakarta.servlet.http.HttpServletRequest request, RequestLog requestLog, String receiptMode) Return the PDF Receipt DataDocument for the submission, request and requestLog.boolean
Returns false as this service does not require LiveCycle.void
setLinuxPageZoomFactor
(String zoomFactor) Set the Linux page zoom factor.void
setPageSizeFormat
(String pageSize) Set the PhantomJS output page size [ A4 | Letter | Legal ]void
setPageSizeMargin
(String pageSizeMargin) Set the PhantomJS page size margin.void
setPhantomJsExe
(String value) Set the PhantomJS executable filename, without the Windows .exe file extension.void
setProcessTimeout
(Integer value) Set the PhantomJS rendering process timeout in milliseconds.Methods inherited from class com.avoka.fc.core.service.AbstractRenderReceiptService
getMaxProcesses, getServiceDefinition, renderReceipt, renderReceipt, setMaxProcesses, setServiceDefinition, setTestMode, updateReceiptMode, updateReceiptMode
Methods inherited from class com.avoka.fc.core.service.CayenneService
commitChanges, deleteObject, deleteObjects, findObject, getDataContext, getDataDomain, getObjectForPK, getObjectStore, newObject, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, refetchEntity, refetchObject, registerNewObject, rollbackChanges, toMap, toMap
Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
-
Field Details
-
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
- Returns:
- the pageSizeFormat
-
setPageSizeFormat
Set the PhantomJS output page size [ A4 | Letter | Legal ]- Parameters:
pageSize
- the page size format to set
-
getPageSizeMargin
- Returns:
- the pageSizeMargin
-
setPageSizeMargin
Set the PhantomJS page size margin.- Parameters:
pageSizeMargin
- the pageSizeMargin to set
-
getLinuxPageZoomFactor
Return the Linux page zoom factor.- Returns:
- the Linux page zoom factor
- Since:
- 4.2.0
-
setLinuxPageZoomFactor
Set the Linux page zoom factor.- Parameters:
zoomFactor
- the Linux page zoom factor- Since:
- 4.2.0
-
getProcessTimeout
Set the PhantomJS rendering process timeout in milliseconds.- Returns:
- the PhantomJS rendering process timeout in milliseconds.
- Since:
- 4.1.0
-
setProcessTimeout
Set the PhantomJS rendering process timeout in milliseconds.- Parameters:
value
- the PhantomJS rendering process timeout in milliseconds.- Since:
- 4.1.0
-
setPhantomJsExe
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 classAbstractRenderReceiptService
- Parameters:
submission
- the form submissionrequest
- the servlet requestrequestLog
- the request logreceiptMode
- receipt mode in [ Web | Email | Delivery ]- Returns:
- the PDF Receipt DataDocument for the submission, request and requestLog
- Throws:
ApplicationException
-