09-19-2013 7:48 AM
Hi,
I'm trying to make a payslip in PDF with password protection and need to send all employees through E-mail.
Can anyone give me some idea of how to create a Password potected PDF for HP Unix Server.
Thank you.
Ramesh.
09-19-2013 8:38 AM
09-19-2013 11:38 AM
Hi Mohammed,
i have gone throught this link already.
It's on Windows NT OS, i want the password production based HP-Unix, as our compay SAP is running on HP-UX platform.
cmd /c ENCRYPTPDF is only working with Windows NT.
How to encrypt in HP-UX OS
Awaiting for experts valuable inputs.
Thank you.
09-19-2013 12:08 PM
For Unix there is another tool but the methodology is the same to execute a shell command.
[security] Encrypt a PDF file in the command line | *NIX Tricks
You will need an external encryption .
Regards
09-21-2013 9:01 AM
Hi Mohammed,
Thanks for the link, can you send some other link which could provide me more details in step by step.
09-21-2013 9:06 AM
It is the same way using FM 'SXPG_COMMAND_EXECUTE'
In ABAP it does not matter what is the OS in background
The command that you are going to send differs on the basis of the OS.
So send the command mentioned in the link to the FM.
But also that pdftk should exists on you HP Unix server.
Regards
09-21-2013 9:31 AM
In ABAP it does not matter what is the OS in background
What do you mean by this?
09-21-2013 11:07 AM
09-23-2013 11:07 AM
Hi Mohammed,
We have installed the tool pdftk in our server and using the command "/usr/local/bin/pdftk" i had used the FM "'SXPG_COMMAND_EXECUTE'" the path which i have used in the FM is
"CONCATENATE '$ pdftk' Doc'.pdf output' Doc'.128.pdf owner_pw' Pass ' user_pw' Pass INTO v_dir_input".
Now my doubt is whether to download the PDF file in windows or AL11 (sap directory). If i want to download PDF file, in which path do i want to download in AL11 / Windows.
09-23-2013 1:56 PM
your server is unix so even the file will be on unix server only I suppose....
The file should be downloaded any place you can pass the path with filename to the pdftk in the filename for processing.
Regards
09-23-2013 3:48 PM
Hi mohammad,
the file downloaded iam using this path = ( /usr/sap/KED/SYS/global/file.pdf ) in sap directories and i had used the FM 'SXPG_COMMAND_EXECUTE' i passing the full parameter ( pdftk path(file.pdf) output path(file.128.pdf) owner_pw Pass 'user_pw Pass ) after FM executing i getting error.
1 54 [HP ARIES32]: Core file for 32-bit PA-RISC application
2 84 [HP ARIES32]: #/usr/local/bin/pdftk saved to /usr/sap/KED/DVEBMGS00/work/core.pdftk.
3 29 Process died due to signal 11
05-30-2016 7:35 AM
Dear Ramesh,
Sorry for reliving this old post but I'd like to ask : have you found any solution foy your problem? I have the same error message.
Thank you,
Imre
08-29-2016 11:16 AM
Dear Ramesh,
Have you found any solution for PDF with password protection on HP-UNIX server.
I am also having same requirement.
Can you please share the steps to be followed..
It will be very much helpful for me
Thanks in Advance