call EncrptPDF.exe (command line) from SAP ABAP programming

One of my client has requirement to Encrypt Payslips generated from SAP.


Now we are using concept creating PDF file and sending the same as a attachment to a mail with the help of SAP ABAP programming.

But in ABAP we don't have the facility of adding password to PDF file.

Now we are planning to use EncrptPDF(command line)to get the desired functionality.


We have download trail version of the same and it is working fine.

But we are not able to call this functionality from SAP. We do have different function modules to call external Programs or command from SAP like WS_EXECUTE.

Please let us know if any help available in  this regards.
====================================
You can use following sample code to Calling an Executable Program Using ABAP,

~~~~~~~~~~~~~~~~~~
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       = .
~~~~~~~~~~~~~~~~~~

VeryPDF
====================================
thanks for your help, it is working fine and as expected.

Please let us know if any possibility to use this tool on SAP Application server level, so that we can execute program in the Background for generating payslips.

====================================
Yes, you can call EncryptPDF.exe from SAP Application server level, that's no problem, you can try to do by yourself, if you encounter any problem, please feel free to let us know, we are glad to assist you asap.

VeryPDF
VN:F [1.9.20_1166]
Rating: 7.2/10 (5 votes cast)
VN:F [1.9.20_1166]
Rating: +1 (from 1 vote)
call EncrptPDF.exe (command line) from SAP ABAP programming, 7.2 out of 10 based on 5 ratings

Related Posts

4 Replies to “call EncrptPDF.exe (command line) from SAP ABAP programming

  1. Hai.. i need to make password in my pdf file with abap program as you shown..if it’s possible to do, i will try with the trial version of encryptPDF. If it works well, so i’ll get the licence for full version. Would you mind get me the correct link to download the trial version of encryptPDF which compatible with SAP ABAP program? I think it’s so interesting to be tried. Thanks before

    Regards,
    Tiara Bagus

    VA:F [1.9.20_1166]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.20_1166]
    Rating: +1 (from 1 vote)
  2. I have tried this at Application Server level via SM69 and SXPG_COMMAND_EXECUTE, SXPG_CALL_SYSTEM but get the following error:
    Can’t exec external program (Exec format error)
    External program terminated with exit code 1

    Any suggestions?

    VA:F [1.9.20_1166]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.20_1166]
    Rating: +1 (from 1 vote)
  3. Hi,

    In the website, the encryption format is stated as RC4 128bit.
    Can I encrypt the document with AES 128bit?

    Regards
    Customer
    ————————————-
    Yes, we have technologies to use 128bit AES or 256bit AES to protect PDF files, you may test it both 128bit AES and 256bit AES algorithms from this web page,

    http://www.verypdf.com/online/free-online-pdf-security.php

    In the “Compatibility” option, you can select following options,

    Acrobat 3.0 and later is “40-bit RC4”,
    Acrobat 5.0 and later is “128-bit RC4”,
    Acrobat 6.0 and later is “128-bit RC4”,
    Acrobat 7.0 and later is “128-bit AES”,
    Acrobat 9.0 and later is “256-bit AES”,

    You can upload a PDF file and test “128bit AES” and “256bit AES” algorithms online easily.

    However, VeryPDF PDF Toolbox Command Line and EncryptPDF products are not support both 128bit AES and 256bit AES algorithms, if you need “128bit AES” and “256bit AES” functions, we will develop a custom-build version of PDF Toolbox Command Line or EncryptPDF to you, if you are interest in this custom-build version, please feel free to let us know.

    VeryPDF

    VN:F [1.9.20_1166]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.20_1166]
    Rating: 0 (from 0 votes)

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!