Dear Gurus ,
I have come across the situation in which I want to converted PDF to be password protected .
I have converted the smartform into PDF using OTF and sending as a mail .
But now I want to add the Functionality of adding the Password how to Proceed for this .
for converting PDF I am using the Funtion Modukle :
CALL FUNCTION 'CONVERT_OTF' EXPORTING format = 'PDF' max_linewidth = 132 * ARCHIVE_INDEX = ' ' * COPYNUMBER = 0 * ASCII_BIDI_VIS2LOG = ' ' * PDF_DELETE_OTFTAB = ' ' IMPORTING BIN_FILESIZE = v_len_in * BIN_FILE = TABLES otf = it_otf lines = it_lines.
How to Make this Converted PDF password protected ?
I cant use ADOBE life cycle Designer for this . Please help 😔
Thanks & Regards ,
Aryan
you will have to take the help of Professional Pdf editind tools such as Nova pdf or the Full version of Adobe Acrobat i.e. Acrobat Professional ..
also check the links below ..
[LINK|http://techblissonline.com/how-to-password-protect-pdf-documents-or-files/]
and quote from the same
How to password protect PDF documents or files?
Open the PDF file in Acrobat
Select File > Document Security from the menu
Got to the u201CSecurity Optionsu201D drop-down and select u201CAcrobat Standard Securityu201D
Find the box labelled u201CPassword required to open documentu201D and place a check mark against it.
Edit or type the password
You can also add a password requirement for changing permissions or password.To add a a required password check the box against u201Crequired password to change permissions or passwordu201D and enter the password. However note that this password must be different from the one that you entered for securing or password protecting the PDF file.
If you want your PDF document to be password accessible to users with previous versions of Acrobat Reader (versions earlier than 5.0), do not change the 40-bit encryption setting. However if your users or audience will be using version 5 or later versions of the Reader (or the full Acrobat program) then you may use 128-bit encryption.
Best Re
Aryan, I have a similar requirement. I'm able to produce the pdf and store it in a file in the application server (via a open dataset for output).
I found a windows program that can be called in command line mode Encryptpdf, from verypdf.com, so that with a command
like encryptpdf -i file1.pdf -o file2.pdf -u password you can have your file encrypted and password protected.
If you create a logical command with SM69 you can even automatize this process.
I'm trying to do this same thing under unix, so far without success.
Edited by: Juan Azcoitia on Jun 15, 2010 4:14 PM
Edited by: Juan Azcoitia on Jun 15, 2010 4:14 PM
Hello Aryan,
Is Zipping a PDF acceptable from your side? If so, you can use CL_ABAP_ZIP and CL_ABAP_GZIP to zip the PDF to achieve the sampe encryption result.
Best Regards,
Jerry
Add a comment