07-05-2015 7:23 AM
Hello,
We need to decrypt a .pdf file with an abap code or external command (or any other way...).
the file is encrypt with "aes256" algorithm.
The result must be a decrypted .pdf file on an output folder on a server that will be secured.
Thank you ,
Koby
07-06-2015 6:56 AM
Hi,
Topic is interesting .
after achieve solution please share in Community,
Encrypting PDF Files Using ABAP Code
Collected from Web*
==================
Here’s the ABAP or SAP sample code to call EncryptPDF command line application,
REPORT Z_Calling_EXE_Program.
CALL FUNCTION 'GUI_RUN'
EXPORTING
COMMAND = 'C:\encryptpdf.exe'
PARAMETER = ' -i c:\sample.pdf -w owner -u user -e 40 -p'.
* CD = '
* IMPORTING
* RETURNCODE = .
07-06-2015 1:32 PM
Hi,
Thank you for your answer.
1. Where can I find the app "encryptpdf.exe" ? Can I trust the supplier ?
My company is not "happy" to install "foreign software" on out site.
2. I need to run a decrypt process , not encrypt process..
3. the process is going to run on background , so I can't run "gui_run".
koby.
07-06-2015 1:40 PM
HI Kobi,
What is your Application Server OS?
Because, some of the OS contains some default command line for encrypt & encrypt.
Regards,
Praveer.
07-06-2015 9:59 PM
Please check SAP Note: 1456433 - XML Signature and Encryption API for ABAP
Although this note talks about XML files, there are methods in the class CL_SEC_SXML_XENCRYPTION, to encrypt anything.
Thanks,
Juwin