Since v 6.1 we can not add elements (like sign's bar and images) to a pdf document generated by the exporter, cause the document is closed before the call for postProcessor method (PDFExporter.class l.141 ~ l.145).
That's any chance to make it like previous version 6.0 when the document.close() was called after postProcessor methods ... ?
Document Closed before post Processor on PDF Exporter.
Please report the issue on our Github...
https://github.com/primefaces-extension ... com/issues
Do you think it was related to this fix?
https://github.com/primefaces-extension ... issues/433
or could it possibly be something PF fixed in core PF?
https://github.com/primefaces-extension ... com/issues
Do you think it was related to this fix?
https://github.com/primefaces-extension ... issues/433
or could it possibly be something PF fixed in core PF?
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
I reported the Issue on git Hub like u asked.
https://github.com/primefaces-extension ... issues/468
Cause it was only a problem on PDF exporter I did not think that are any relation with the Issue 433 (xlsx Exporter Problem)
and if was un fix on PF core, i really do not get it. Why blocking adding elements after data content could be a problem.
See the code :
On 6.0
On 6.1.1
The document is closed anyway.
https://github.com/primefaces-extension ... issues/468
Cause it was only a problem on PDF exporter I did not think that are any relation with the Issue 433 (xlsx Exporter Problem)
and if was un fix on PF core, i really do not get it. Why blocking adding elements after data content could be a problem.
See the code :
On 6.0
Code: Select all
if (postProcessor != null) {postProcessor.invoke(context.getELContext(), new Object[] { document });}} document.close(); writePDFToResponse(context.getExternalContext(), baos, filename);
Code: Select all
document.close(); if (postProcessor != null) {postProcessor.invoke(context.getELContext(), new Object[] { document });} writePDFToResponse(context.getExternalContext(), baos, filename);
I just committed a fix if you would like to review it.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Information
-
Who is online
Users browsing this forum: No registered users and 25 guests