I wanted to ask if it is possible to create a .pdf file with restrictions from a mail-merged .doc template.
I would want the user to be able to only open/read the file and print it, blocking any other kind of modifications.
I’ve tried the following snippet:
PdfSaveOptions pso = new PdfSaveOptions();
PdfEncryptionDetails ped = new PdfEncryptionDetails(userPassword, ownerPassword, PdfEncryptionAlgorithm.RC_4_128);
ped.setPermissions(PdfPermissions.PRINTING | PdfPermissions.HIGH_RESOLUTION_PRINTING);
but it would ask for a password when you open the PDF, and this is not what I want.
Is there a way to achive it?
That worked, thanks!