Wednesday, August 3, 2016

Add password protection to your pdf documents like PO Print

There are many ways to password protect your documents. Oracle documentation is there for RTF but for xslfo we do not see any documentation.
Specially when PO output for communication is being modified, we change the xsl fo for same. The code snippet to do it is :



I have used supplier number as the password for opening the document, you can chose your own ways.

In RTF template you can achieve the same using below steps:




Open the .rtf
Go to File - > Properties

Create a new custom property

a)  Name   : xdo-pdf-open-password

Type     : text

Value    : Either Hard Code the value / or get the value for xml data


b)  Name :  xdo-pdf-security

Type   :  text

Value  : true

No comments:

Post a Comment