public final class PDFUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
doCreateDocumentPDF(fr.paris.lutece.portal.business.user.AdminUser adminUser,
Locale locale,
String strNameFile,
OutputStream out,
int nIdFormResponse,
List<Integer> listIdEntryConfig,
Boolean bExtractFilledField)
method to create PDF
|
static void |
doCreateDocumentPDF(javax.servlet.http.HttpServletRequest request,
String strNameFile,
OutputStream out,
int nIdRecord,
Boolean bExtractNotFilledField)
method to create PDF without config
|
static void |
doCreateDocumentPDF(javax.servlet.http.HttpServletRequest request,
String strNameFile,
OutputStream out,
int nIdRecord,
List<Integer> listIdEntryConfig,
Boolean bExtractNotFilledField)
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,
Locale locale) |
public static void doCreateDocumentPDF(javax.servlet.http.HttpServletRequest request, String strNameFile, OutputStream out, int nIdRecord, Boolean bExtractNotFilledField)
request
- requeststrNameFile
- PDF nameout
- OutputStreamnIdRecord
- the id recordbExtractNotFilledField
- if true, extract empty fields, false otherwisepublic static void doCreateDocumentPDF(javax.servlet.http.HttpServletRequest request, String strNameFile, OutputStream out, int nIdRecord, List<Integer> listIdEntryConfig, Boolean bExtractNotFilledField)
request
- requeststrNameFile
- PDF nameout
- OutputStreamnIdRecord
- the id recordlistIdEntryConfig
- list of config id entrybExtractNotFilledField
- if true, extract empty fields, false otherwisepublic static void doCreateDocumentPDF(fr.paris.lutece.portal.business.user.AdminUser adminUser, Locale locale, String strNameFile, OutputStream out, int nIdFormResponse, List<Integer> listIdEntryConfig, Boolean bExtractFilledField)
adminUser
- The admin userlocale
- The localestrNameFile
- PDF nameout
- OutputStreamnIdFormResponse
- the id of the form responselistIdEntryConfig
- list of config id entrybExtractFilledField
- if true, extract only filled fields, falsepublic 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
- requestresponse
- responseplugin
- pluginconfigProducer
- configurationlistIdQuestionConfig
- locale
- localepublic static String getFileNameFromConfig(fr.paris.lutece.plugins.forms.business.Form form, IConfigProducer configProducer, int nIdRecord, Locale locale)
Copyright © 2019 City of Paris. All rights reserved.