Package es.gob.afirma.mreport.pdf
Class PdfReportManager
- java.lang.Object
-
- es.gob.afirma.mreport.pdf.PdfReportManager
-
- All Implemented Interfaces:
IReportManager
public class PdfReportManager extends java.lang.Object implements IReportManager
Class for managing PDF reports.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.1, 18/04/2022.
-
-
Constructor Summary
Constructors Constructor Description PdfReportManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]createReport(ValidationData validationData, DocInclusionData docIncData, byte[] xsltTemplate, byte[] document, java.util.ArrayList<Barcode> barcodes, java.util.ArrayList<FileAttachment> attachments, java.util.HashMap<java.lang.String,java.lang.String> additionalParameters)Create a signature report from the information supplied.
-
-
-
Method Detail
-
createReport
public byte[] createReport(ValidationData validationData, DocInclusionData docIncData, byte[] xsltTemplate, byte[] document, java.util.ArrayList<Barcode> barcodes, java.util.ArrayList<FileAttachment> attachments, java.util.HashMap<java.lang.String,java.lang.String> additionalParameters) throws SignatureReportException
Description copied from interface:IReportManagerCreate a signature report from the information supplied.- Specified by:
createReportin interfaceIReportManager- Parameters:
validationData-ValidationDatathat contains the validation results.docIncData- Inclusion mode for the original document:ITemplateConfiguration.INC_SIGNED_DOC_EMBEDITemplateConfiguration.INC_SIGNED_DOC_CONCATxsltTemplate- XSLT Template to apply the FO transformation.document- Signed document.barcodes- Bar code to include into the signature report.attachments- Documents attached.additionalParameters- Additional parameters included in the request.- Returns:
- byte[] that represents the generated PDF Report.
- Throws:
SignatureReportException- If an error occurs generating the report.
-
-