public final class PDFUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
doCreateDocumentPDF(OutputStream out,
int nIdRecord)
method to create PDF without config.
|
static void |
doCreateDocumentPDF(OutputStream out,
int nIdFormResponse,
List<Integer> listIdEntryConfig)
method to create PDF.
|
static void |
doDownloadPDF(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
IConfigProducer configProducer,
List<Integer> listIdQuestionConfig,
Locale locale,
int nIdFormResponse)
Method to download a PDF file generated by forms record.
|
static String |
doPurgeNameFile(String strNameFile)
Method to purge file name, (replace accent and punctuation).
|
static String |
getFileNameFromConfig(fr.paris.lutece.plugins.forms.business.Form form,
IConfigProducer configProducer,
int nIdRecord)
Gets the file name from config.
|
public static void doCreateDocumentPDF(OutputStream out, int nIdRecord)
out
- OutputStreamnIdRecord
- the id recordpublic static void doCreateDocumentPDF(OutputStream out, int nIdFormResponse, List<Integer> listIdEntryConfig)
out
- OutputStreamnIdFormResponse
- the id of the form responselistIdEntryConfig
- list of config id entrypublic static void doDownloadPDF(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, fr.paris.lutece.portal.service.plugin.Plugin plugin, IConfigProducer configProducer, List<Integer> listIdQuestionConfig, Locale locale, int nIdFormResponse)
request
- the requestresponse
- responseplugin
- the pluginconfigProducer
- configurationlistIdQuestionConfig
- the list id question configlocale
- the localenIdFormResponse
- the n id form responsepublic static String getFileNameFromConfig(fr.paris.lutece.plugins.forms.business.Form form, IConfigProducer configProducer, int nIdRecord)
form
- the formconfigProducer
- the config producernIdRecord
- the n id recordCopyright © 2020 City of Paris. All rights reserved.