Login
Register

Home

Trainings

Fusion Blog

EBS Blog

Authors

CONTACT US

Prasad Parmeswaran
  • Register

Oracle Gold Partners, our very popular training packages, training schedule is listed here
Designed by Five Star Rated Oracle Press Authors & Oracle ACE's.

webinar new

Search Courses

×

Warning

JUser: :_load: Unable to load user with ID: 864

This is a very simple article explaining how to set the password security for the Documents sent using XML/BI Publisher. It becomes  crtical to safeguard the information  while electronically sending  documents of  financial importance like Invoices ,Statements or Remmitances .

 

 


 

Q :What are the security Settings that can be set for PDF ?

 

Ans - > Following table explains some of the Security properties possible through XML /BI Publisher

 

 

 

 

 

 

 

2) Why and How  to set Password for PDF File sent through XML Publisher?

 

Ans : This feature is particularly useful when you are sending invoices or remittances docs  and you would like to safeguard the financial information .

 

I am explaining here the way to achieve this using rtf template

 

There are 2 ways to achieve this , programmatically and through template at design time

 

Programatically: 

           

        It can be done using java code by setting the properties using the code below            

 

 

        Properties prop= new Properties();

        prop.put("pdf-security", "true"); //  PDF security   control

        prop.put("pdf-permissions-password", "abc"); // permissions   assword

        prop.put("pdf-open-password","welcome");

        prop.put("pdf-encription-level", "0");  //encryption level

 

 

 

 

pass the set properties to TemplateHelper Class

 

TemplateHelper.processTemplate(

appsContext,                           // AppsContext

applShortName,                      // Application short name of the template

templateCode,                         // Template code of the template

langCode,                                // ISO language code of the template

territoryCode,                         // ISO territory code of the template

dataInputStream,                    // XML data for the template

outputType,                             // Output type of the procesed document

properties,                              // Properties for the template processing

docOutputStream);                 // OutputStream where the processed document goes.

                                                }

 

 

Design  Time 

1)      Open the .rtf

 

 

 

2)      Go to File - > Properties

 

 Create a new custom property

 

a)     Name   : xdo-pdf-open-password

Type     : text

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

 

b)    Name :  xdo-pdf-security

Type   :  text

Value  : true

 

            Please Note : property name should always start with xdo- .

 

 

 

 

 

 

 

3)      Once this is done , opening the PDF will prompt you for a password

 

 

 

 

 


Comments   

0 #1 Karvannan 2014-06-23 05:06
I have made the setup in the rtf file. When i open the file, without prompting me for password, the pdf file opened. Can you please let me know any other setup to be made.
Quote

Add comment


Security code
Refresh

Search Trainings

Fully verifiable testimonials

Apps2Fusion - Event List

<<  Apr 2024  >>
 Mon  Tue  Wed  Thu  Fri  Sat  Sun 
  1  2  3  4  5  6  7
  8  91011121314
15161718192021
22232425262728
2930     

Enquire For Training

Fusion Training Packages

Get Email Updates


Powered by Google FeedBurner