Package org.xwiki.export.pdf.script
Class PDFExportScriptService
- java.lang.Object
-
- org.xwiki.export.pdf.script.PDFExportScriptService
-
- All Implemented Interfaces:
org.xwiki.script.service.ScriptService
@Component @Named("export.pdf") @Singleton @Unstable public class PDFExportScriptService extends Object implements org.xwiki.script.service.ScriptServiceScripting API to export documents as PDF.- Since:
- 14.4.2, 14.5
- Version:
- $Id: c6abf562ce3645c8fefefd494d01ce831267d900 $
-
-
Constructor Summary
Constructors Constructor Description PDFExportScriptService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PDFExportJobRequestcreateRequest()org.xwiki.job.Jobexecute(PDFExportJobRequest request)Schedule the execution of the given PDF export request.ExceptiongetLastError()Get the error generated while performing the previously called action.
-
-
-
Field Detail
-
ROLE_HINT
public static final String ROLE_HINT
The role hint of this script service.- See Also:
- Constant Field Values
-
-
Method Detail
-
createRequest
public PDFExportJobRequest createRequest()
- Returns:
- a new PDF export request, initialized based on the current HTTP request
-
execute
public org.xwiki.job.Job execute(PDFExportJobRequest request)
Schedule the execution of the given PDF export request.- Parameters:
request- the PDF export request to execute- Returns:
- the asynchronous background job that has been scheduled to execute the given PDF export request
-
getLastError
public Exception getLastError()
Get the error generated while performing the previously called action.- Returns:
- an eventual exception or
nullif no exception was thrown
-
-