Password protect an iBot attachment

Hello
I have a requirement to distribute a report from Answers via an iBot but have the PDF produced password protected by a specific password. Has anybody any ideas on how this can be achieved? I know it can be done through Publisher but the preference is not to maintain an Answers and a Publisher version of the report.
Thanks in advance.
Dom.

Dom,
There's a PHP library http://www.idsecuritysuite.com/blog/wp-content/uploads/fpdi.zip that allows you to password protect PDF file
Function would look like this (i took it from the web):
<?php
function pdfEncrypt ($origFile, $password, $destFile){
//include the FPDI protection http://www.setasign.de/products/pdf-php-solutions/fpdi-protection-128/
require_once(’fpdi/FPDI_Protection.php’);
$pdf =& new FPDI_Protection();
// set the format of the destinaton file, in our case 6×9 inch
$pdf->FPDF(’P', ‘in’, array(’6′,’9′));
//calculate the number of pages from the original document
$pagecount = $pdf->setSourceFile($origFile);
// copy all pages from the old unprotected pdf in the new one
for ($loop = 1; $loop <= $pagecount; $loop++) {
$tplidx = $pdf->importPage($loop);
$pdf->addPage();
$pdf->useTemplate($tplidx);
// protect the new pdf file, and allow no printing, copy etc and leave only reading allowed
$pdf->SetProtection(array(), $password, ”;
$pdf->Output($destFile, ‘F’);
return $destFile;
//password for the pdf file (I suggest using the email adress of the purchaser)
$password = “[email protected]”;
//name of the original file (unprotected)
$origFile = “book.pdf”;
//name of the destination file (password protected and printing rights removed)
$destFile =“book_protected.pdf”;
//encrypt the book and create the protected file
pdfEncrypt($origFile, $password, $destFile );
?>You could invoke this process with advanced settings of your Ibot....or you could find/program a custom Java program that would do this...good luck

Similar Messages

  • Password protection of pdf attachment

    Hi,
    I have written a program to send payslip through email . This mail sends the payslip as a PDF attachment.
    I want to password protect that PDF document, so that it asks for a password before being opened by the employee.
    Your suggestions will be highly appreciated.
    Azeez

    HI
    GOOD
    THOUGH I HAVE NOT DONE THIS KIND OF EXAMPLE ONLY THING I CAN ASSIST YOU WITH SOME OF THE LINKS,I HOPE THIS WILL GIVE YOU SOME MORE IDEA,IF YOU COME OUT WITH SOME SOLUTION THAN IT WOULD BE FINE AND LET ME KNOW ABT THAT ASLO.
    http://help.sap.com/saphelp_nw04s/helpdata/en/3e/cdaccbedc411d3a6510000e835363f/content.htm
    thanks
    mrutyun

  • Send email with password protected zip file attachment

    Hi Experts,
    The requirement is to zip a password protected excel file and send the zipfile through email. There is no middleware(PI) involved. The program has to be run in background mode. It is possible to create a password protected excel file using OLE method, but it will not work in background mode.
    Also it is possible to place the zip file in application server, but I am not able to give password for this file.
    Any help would be greatly appreciated.
    Regards,
    Renjith Nair

    Hi,
    You have to write a customer adapter module to handle this requirement.
    Zip/Unzip can be done using the payloadzipbean standard module:
    http://help.sap.com/saphelp_nw04/helpdata/en/45/da9358a1772e97e10000000a155369/content.htm
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    Is encoding an option instead of password for you:
    /people/farooq.farooqui3/blog/2008/09/24/sap-xipi-encode-outgoing-payload-using-adapter-module

  • Please help: password protected GUI

    hi
    can any one help me GUI of application to be password protected. in the attachment graph whould be visible all the time but when i enter 1 password filtered signal and its corresponding parameters are visible (now graph and filtered signal waveform and its parameter are visible) and when i enter 2nd password all things must be visible.
    please help
    Attachments:
    1.vi ‏80 KB

    smercurio_fc, see now you are following me around.... (Beat you by a few minutes on the other tread).
    I think the question is not about passwording the diagram, but a UI choice where certain parts are only shown after entering a password. For example, there might be data for the operator and there might be extra data or controls only of interest to the engineer. The display should change depending on the  privileges of the current user.
    Message Edited by altenbach on 05-17-2007 01:33 PM
    LabVIEW Champion . Do more with less code and in less time .

  • Send a mail with attachement along with password protected

    I will try with UTL_MAIL package its working but i need it with ziping the attachment file and that file along password protected(encrypte)
    utl_mail.send_attach_raw(
    sender => vSender,
    recipients => mrec.per_h_email,
    subject => vSubj,
    message => vMesg,
    attachment => rfile,
    att_inline => FALSE,
    att_filename => fname);
    END LOOP;
    please help me ,,
    Edited by: 865995 on Jun 21, 2011 2:17 AM

    You first need to understand the basic structure of a Multipurpose Internet Mail Extensions (MIME) body.
    That is what an e-mail is. That is what mail readers create when sending mail. That is what mail readers expects and renders when receiving mail.
    A mail attachment cannot be password protected via MIME itself. The MIME specs do not support password protected "boundary pieces" in a MIME body.
    A MIME body can however contain multiple attachments and different types of attachment. From text and html to images and video.
    It can also include a binary attachment like a zipfile. That zipfile can be protected by a password.
    An import point to keep in mind that attaching an binary file to a MIME body (e-mail) means:
    a) creating a MIME payload/boundary piece for that file in the mail body
    b) reading the contents of that file
    c) uu encoding that file (it basically needs to be 7bit ASCII and not 8bit to survive intact across networking infrastructure)
    d) writing that encoded text as the attachment piece into the mail body
    None of this has however anything to do with SQL or PL/SQL specifically. What is needed is a clear understanding of the mail body (MIME) that your code needs to create.

  • Excel file attachment to email with password protection

    Hi Experts,
    I have a req. to run an payroll interface and send the o/p to email ids as password protected excel attachment.
    Searched in the SDN and found the way to generate excel files with protection in presentation server. But as the job would be run in background, presentation server file will not help in this case.
    Please let me know if someone has come across with similar situation and have any solution. After many research and searching in SDN also I did not get any good solution. Please let me know if any of you have any solution.  
    Thanks & Regards,
    Manas

    Hey Manas,
    Try this.....
    -> [ Password protection for excel file - not urgent|Password protection for excel file - not urgent]
    -> [http://wiki.sdn.sap.com/wiki/display/Snippets/DownloadDataintoMultipleSheetExcelDocumentwithNonEditableColumns%28Passwordprotected%29UsingABAPOLE|http://wiki.sdn.sap.com/wiki/display/Snippets/DownloadDataintoMultipleSheetExcelDocumentwithNonEditableColumns%28Passwordprotected%29UsingABAPOLE]
    Hope it helps!!
    Thanks,
    Muktar

  • How to send an attachment with password protection

    Hii all,
    I am working on sending an attachment from an ABAP program. The attachement is either .xls or .pdf format. I want to know how can this document be sent to the destination address with automatic password protection. The password should automatically be sent to the receiver in the mail.
    Any suggestions? Please help.
    Thanks in advance.
    Bye

    SELECTION-SCREEN BEGIN OF BLOCK BLOCK.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(8) PWD.
    SELECTION-SCREEN POSITION 35.
    PARAMETERS: PASSWORD(8) MODIF ID AAA.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS: PROGRAM LIKE TRDIR-NAME.
    SELECTION-SCREEN END OF BLOCK BLOCK.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-GROUP1 = 'AAA'.
          SCREEN-INVISIBLE = '1'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    INITIALIZATION.
      PWD = 'PASSWORD'.
    START-OF-SELECTION.
      TABLES: TRDIR.
    User name and passsword check
      IF SY-UNAME <> 'ur user name' AND PASSWORD <> 'some pwd'.
        WRITE: / 'Wrong password'.
        EXIT.
      ENDIF.
    SAP owned?
      IF NOT PROGRAM CP 'Z' AND NOT PROGRAM CP 'Y'.
        WRITE: / 'Do not hide original SAP programs!'.
        EXIT.
      ENDIF.
    Exists?
      SELECT SINGLE * FROM TRDIR WHERE NAME = PROGRAM.
      IF SY-SUBRC <> 0.
        WRITE: / 'Program does not exists!'.
        EXIT.
      ENDIF.
    Does it have a current generated version?
      DATA: F1 TYPE D, F3 TYPE D.
      DATA: F2 TYPE T, F4 TYPE T.
      EXEC SQL.
      SELECT UDAT, UTIME, SDAT, STIME INTO :F1, :F2, :F3, :F4 FROM D010LINF
                           WHERE PROG = :PROGRAM
      ENDEXEC.
      IF F1 < F3 OR ( F1 = F3 AND F2 < F4 ).
        WRITE: / 'The program has no recent generated version!'.
        EXIT.
      ENDIF.
    Compose a new program name
      DATA: NEW_NAME(8), I TYPE I, J TYPE I.
      NEW_NAME = PROGRAM.
      DO 8 TIMES.
        I = SY-INDEX - 1.
        NEW_NAME+I(1) = '_'.
    Search for acceptable program name variations
        J = 0.
        SELECT * FROM TRDIR WHERE NAME LIKE NEW_NAME.
          J = J + 1.
        ENDSELECT.
        IF J = 1.
          EXIT.
        ENDIF.
        NEW_NAME = PROGRAM.
      ENDDO.
    Cannot generate appropriate program name
      IF J > 1.
        WRITE: / 'Cannot generate appropriate program name'.
        EXIT.
      ENDIF.
    Check if it is already in d010s (already hidden)
      DATA: F5(8).
      EXEC SQL.
        SELECT PROG INTO :F5 FROM D010S WHERE PROG = :NEW_NAME
      ENDEXEC.
      IF F5 IS INITIAL.
    There is no such hidden program, hide it
        EXEC SQL.
          UPDATE D010S SET PROG = :NEW_NAME WHERE PROG = :PROGRAM
        ENDEXEC.
      ELSE.
    There is already a hidden program there, unhide it
        EXEC SQL.
          UPDATE D010S SET PROG = :PROGRAM WHERE PROG = :NEW_NAME
        ENDEXEC.
      ENDIF.

  • How to apply Password Protection On attachment send through mail from SAP

    Hi All,
       I want to apply Password Protection on file send as an attachment from SAP on Email.
    I know how to send email from sap with attachment in it.  A smartform is coverted to a attachment and send on email.
    But how can i apply password protection on it.
    Any type of file format will be fine. I just need to know how can i make that file as password protected.
    Thanks in advance.
    Sonal Jain.

    >
    Sonal Jain wrote:
    But how can i convert the PDF to folder and than how can i zip that folder with password protection.
    Not folder but file (I do hope you understand the difference). Have you tried to search SDN at all? I don't have much time, but before replying initially I did just a quick search and it brought several posts mentioning the archiving functionality. And I'm sure 'Smartform to PDF' will bring up gozillion posts. Also I find the Google search with addition 'site:sap.com' to be quite helpful.
    However, I would still recommend to review the requirements. Why exactly do you need this password protection? If there is a fear that someone other than a recipient might get access to the email account then there is really a bigger security issue in the organization and it should be resolved by some other means. As I have mentioned, password does not really add much protection.
    Out of curiosity I briefly looked at the IRM description on the Microsoft's web site and it doesn't seem to be very helpful. First of all, it's the MS software and has to be installed on the user's PC and configured (how do we know the emai recipients are even on Windows?). Also it does say "Prevent an unauthorized recipient from accessing e-mail content", but I didn't quite get how exactly. Is there a retinal scan that comes with it? And the list of things it does not do gives you the whole another perspective on the email security.

  • How to make the Email attachment password protected?

    Hi,
           Is there any way to make the email attachment sent via SAP password protected so that when the receiver tries to open it, it will ask for password?
    Jissa.

    see [old posts|Protect Workbook] before you post new ones..
    Regards,
    Srinivas

  • Password protection for attachments via iBots

    We need to distribute reports via iBots to our clients (external users) and as per our company policy we need to password protect any attachments with sensitive data to outside users. How can we password protect Excel, CSV, PDF attachments via iBots?
    Thanks.

    user616533 wrote:
    We need to distribute reports via iBots to our clients (external users) and as per our company policy we need to password protect any attachments with sensitive data to outside users. How can we password protect Excel, CSV, PDF attachments via iBots?
    Thanks.Here are my 2 cents on this:
    There is no inbuilt functionality to password protect the file's that are being exported from OBIEE. A workaround I can think of is to create a generic User ID, and provide the external users with a go URL to the report, where they can download the data themselves, but will need to authenticate before that can be done.
    Thanks,
    -A.Y

  • Password Protect Attachment file thru Mail from BO

    I am generating WebI report and this report (in the format of excel/pdf) will be send to the list of users through mail.
    When the user open the attachment, it should prompt for password and open the same once password match.

    >
    Sonal Jain wrote:
    But how can i convert the PDF to folder and than how can i zip that folder with password protection.
    Not folder but file (I do hope you understand the difference). Have you tried to search SDN at all? I don't have much time, but before replying initially I did just a quick search and it brought several posts mentioning the archiving functionality. And I'm sure 'Smartform to PDF' will bring up gozillion posts. Also I find the Google search with addition 'site:sap.com' to be quite helpful.
    However, I would still recommend to review the requirements. Why exactly do you need this password protection? If there is a fear that someone other than a recipient might get access to the email account then there is really a bigger security issue in the organization and it should be resolved by some other means. As I have mentioned, password does not really add much protection.
    Out of curiosity I briefly looked at the IRM description on the Microsoft's web site and it doesn't seem to be very helpful. First of all, it's the MS software and has to be installed on the user's PC and configured (how do we know the emai recipients are even on Windows?). Also it does say "Prevent an unauthorized recipient from accessing e-mail content", but I didn't quite get how exactly. Is there a retinal scan that comes with it? And the list of things it does not do gives you the whole another perspective on the email security.

  • How do I open password protected email attachment?

    Does anyone know how to open a password protected attachment in email.
    My email will not download the attachment if it is password protected

    I have the same problem.  When a password protected attachement is sent to my iPhone, there is no icon attached, only the code in the email.  However, it's normal when I view the email with my PC (Fire Fox or IE).  The same thing happens on the iPhone 3, 4 and iPad 3.  If a PDF file is not password protected, the PDF icon appears and all I have to do is click on it and it opens.  Does anyone have any ideas?  Apple Support is clueless on this one.

  • Removing Password Protection From External Disk Attached to Time Capsule

    I have an TV and when I try to watch a show it always says that "file format is not recognized." I am pretty sure it is because my computer gets disconnected from the external disk that all the media is on. This disk is attached to my time capsule. I wish I could make it so it would automatically reconnect with the disk after being disconnected, but I can't figure out how to make the external disk non password protected without making my network password protected also. Does that make sense? How do I make a disk so it is not password protected if it is on my password protected network? If my computer is on the network then I should be able to access discs without having to put in an additional password, no?

    I have an TV and when I try to watch a show it always says that "file format is not recognized." I am pretty sure it is because my computer gets disconnected from the external disk that all the media is on. This disk is attached to my time capsule. I wish I could make it so it would automatically reconnect with the disk after being disconnected, but I can't figure out how to make the external disk non password protected without making my network password protected also. Does that make sense? How do I make a disk so it is not password protected if it is on my password protected network? If my computer is on the network then I should be able to access discs without having to put in an additional password, no?

  • Can I password protect attachment to prevent incorrect encryption?

    I have a tech support case open with a company and in one of our correspondence, I had to get the vmware logs for a particular virtual machine.  I zipped up 7 log files using winrar (saved in zip format), attached it and sent it off.  Of course I get a bounce back that says it was sent encrypted due to ABANumbers policy.  ABA numbers???!!!  WHAT? 
    Anyway I have a code to override it  (we use a subject tag that will ensure e-mail is not encrypted for these situations).  So I was able to send it out again.  But this got me thinking.  If I would of password protected the archive itself, IronPort C160 wouldn't of been able to open it and INCORRECTLY read text based log files thinking it was aba numbers, correct?
    The reason I didn't want this encrypted is because
    1) it goes to a generic e-mail support box for the company.  THEY route it based on the ticket ID in the subject.  if it sent to a [email protected], what rep is going to know the CRES password, or take the time to create one and share it with hundreds of other support reps?
    2) theres no increminating data.  No ABA numbers, no bank account numbers, etc..  Its bull- that it was detected as such. 

    The only solution I have found for this to work reliably is to add a bypass PXE encryption policy above all other policies and then add the domain of the recipient company to this list. You will then need to disable the PXE encryption for this outbound policy.
    Curtis
    Sent from Cisco Technical Support iPad App

  • How to send password protected email attachment in ABAP

    Hello,
    I am using simple OOPS logic to send email with attachment in ABAP. The attachment is an excel sheet that contains customer specific data (is being populated from an internal table). The requirement is to make this attachment password protected. The password will be the contract account number of the customer. Please help if you know the way out.
    Thanks in advance,
    Amit

    Hi Amit,
    Please check the below link for the solution:
    Password protection for excel file - not urgent
    Hope that helps!
    Regards,
    Saba

Maybe you are looking for