Closed
Solved
Disable printing in PDF
Team, I am using Pega OOTB Activity HTMLToPDF to generate PDF. Is it possible to disable printing on the generated PDF.
Thanks.
This content is closed to future replies and is no longer being maintained or updated.
Links may no longer function. If you have a similar request, please write a new post.
Team, I am using Pega OOTB Activity HTMLToPDF to generate PDF. Is it possible to disable printing on the generated PDF.
Thanks.
Accepted Solution
pega uses pd4ml for htmltopdf generation, so in theory it is possible: PD4ML Cookbook - HTML-to-PDF converter for Java and .NET. However, it does not look we support that OOTB. You can write your own java code if possible.
Please see: https://mesh.pega.com/message/190853
This shows how to 'post-process' a PDF (it happens to be using another PDF library PDFBox for this): so that it password-protects a PDF.
You should be able to modify this to set the 'setCanPrint' flag to 'false'. [ see: third party site : http://stackoverflow.com/questions/13067437/protecting-pdf-using-pdfbox for further details ].
Question
Discussion
Question
Question
Question
Question
Question Solved
Question
Question Solved
Question
Pega Collaboration Center has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.