How to ZIP a PDF File with a Password Protection

Hi,
i've a pdf file with created smartforms and i want to assign a password to that pdf file but the SAP doesn't let doing that protection. So i want to create a zip file with a password protection for PDF file.
How can i create a zip file with a password protection? Can somebody help me please?
Thanks.

Hello,
Check this links
Take a look to the class CL_ABAP_GZIP
open (top-)zip-archive
CALL METHOD lo_zip->load
    EXPORTING
      zip             = lv_zip_file_head
    EXCEPTIONS
      zip_parse_error = 1
      OTHERS          = 2.
create sub-zip-archives which contain the files you would assign to a folder
add sub-zip-archive to top-zip-archive
CALL METHOD lo_zip->add
     EXPORTING
        name    = lv_zip_filename
        content = lv_zip_file.
save zip-archive
CALL METHOD lo_zip->save
    RECEIVING
      zip = ev_zip_file.
ABAP Development
How to ZIP a PDF file email attachment
Re: How to ZIP a PDF file email attachment

Similar Messages

  • How to create a pdf file with CS5

    Hello, I'm new to PhotoShop CS5 and haven't figured out yet (despite two hours of trying) how to create a pdf file with pictures and texts.  Can someone please help me with this ?  The "help" button in CS5 doesn't seem to cover this question.  Nor do the FAQs.
    Thank you very much.

    Save As... Photoshop PDF.

  • How to fix the .pdf file with error "invalid annotation object"

    how to fix the .pdf file with error "invalid annotation object"

    As long as the PDF opens, then just try saving it to a new file name. There may be a preflight script that would help troubleshoot the issue.

  • How to convert a pdf file with hand-written signature?

    How to convert a pdf file with hand-written signature?

    Hi Lotus1215,
    Once the document is signed we cannot edit that document, hence convertion is not possible
    Please see the article mentioned below
    http://forums.adobe.com/docs/DOC-1515
    Let me know if you have any other question.
    Regards,
    ~Pranav

  • I need to send an email where the recipient opens the PDF file with a password,   can anybody help me and show me how to do that

    Hello,  I am trying to send an email where the recipient opens the PDF file with a password,   can anybody show me how to do that

    Hi surez,
    To password protect a PDF file, you need to use Acrobat. If you don't have Acrobat, you can try it for free for 30 days. See www.adobe.com/products/acrobat.html for more information.
    In Acrobat, you choose File > Properties when the document is open, and then click the Security tab to set up a password.
    Please let us know how it goes.
    Best,
    Sara

  • How I can combine pdf file with other pdf file

    How I can combine pdf file with other pdf file ?

    Or from Adobe Reader via https://createpdf.acrobat.com/

  • How to reduce size pdf file with 10.5.8

    How to reduce size pdf file with 10.5.8, I know it can be done with snow....

    Look at this link.
    https://discussions.apple.com/thread/1292868?start=0&tstart=0
     Cheers, Tom

  • Opening a pdf file with a password

    I can't open a pdf file with a password. It says insufficient data to acquire image. Can anyone help?

    If you get this error, it means that the password is accepted and the file is opened BUT the file is damaged or made wrong.

  • SAP version 4.7  Email pdf file that is password protected.

    Hi Gurus,
    We have a requirement:
      Email pdf file that is password protected.
      Once the user receives the email,  clicks on the attached pdf file,
         it should ask the password.  Note that Password value should come from SAP.
    What we have done is get the spool number and by using function module CONVERT_ABAPSPOOLJOB_2_PDF, it converts the spool document to pdf.
    On this function module, there are no parameters to make pdf as password protected and
      also include the password.  This is the problem.
    Question:
       (a) Is there a way to make pdf password protected that will be emailed?
            What function modules, etc to be used?  (sample coding if available)
       (b) Somebody mentioned the that Adobe LiveCycle Policy Server should be installed together with SAP.
            If this is installed, how then would be the abap coding be in order to make the pdf password
                protected?
            How is the new policy server gonna be linked to SAP and how do the abap coding gonna be?
               (sample abap coding if available)
    Thanks.
    Raymund

    hi,
    First save the file somewhere... LINK:[SITE|http://www.sapfans.com/forums/viewtopic.php?f=13&t=326228]
    In the site i send above you need to change it do receive parameters ou use always the same name...compile and then use the function 'WS_EXECUTE' - watch it in LINK: [SITE|http://www.sap-img.com/abap/ws-execute-to-call-external-program.htm]
    and then..you just have to download it again into an ITAB and send it by mail... LINK:[SITE|How to pass pdf data to ABAP itab;
    Hope it helps..

  • How to ZIP a PDF file email attachment

    Hi,
       We have an ABAP report requirement to send an email to a user. This program will send an email with PDF attachement. However, the PDF attachment is quite big (9MB) and our email server couldn't handle it (5MB only). Is there any way to ZIP this PDF file attachment?
       I am using a SAP release 4.6C with OS WinNT. And the ABAP program should be able to run in Foreground/Background.
       Thanks for your help in advance...
    Kind regards,
    Herson

    Read Notes:
    616958
    644640
    You can create a class method:
        CALL METHOD zca_tools=>zip_table
          EXPORTING
            i_data_table = <data_struc>
            i_filename   = 'aa'
          IMPORTING
            e_bin_table  = t_zipped
            e_bin_length = lines.
    METHOD zip_table.
      DATA: lv_original_length(10) TYPE n,
            lv_data_ref            TYPE REF TO data,
            lv_struc_ref           TYPE REF TO data.
      DATA: lv_zip  TYPE REF TO cl_abap_zip,
            lv_lines  TYPE i,
            lv_length TYPE i,
            lv_data_to_zip TYPE xstring,
            lv_zip_file    TYPE xstring,
            lv_catch       TYPE REF TO cx_root,
            lv_message     TYPE string.
      FIELD-SYMBOLS: <data_struc>       TYPE ANY,
                     <final_data>       TYPE ANY,
                     <final_data_table> TYPE STANDARD TABLE,
                     <aux>              TYPE x.
      LOOP AT i_data_table ASSIGNING <data_struc>.
        DESCRIBE FIELD <data_struc> LENGTH lv_original_length IN CHARACTER MODE.
        EXIT.
      ENDLOOP.
      TRY.
          CREATE DATA lv_data_ref TYPE c LENGTH lv_original_length.
          ASSIGN lv_data_ref->* TO <final_data>.
          CREATE DATA lv_data_ref LIKE STANDARD TABLE OF <final_data>.
          ASSIGN lv_data_ref->* TO <final_data_table>.
          APPEND LINES OF i_data_table TO <final_data_table>.
          DESCRIBE TABLE <final_data_table> LINES lv_lines.
          ASSIGN COMPONENT 1 OF STRUCTURE <final_data> TO <aux> CASTING.
          IF sy-subrc NE 0 OR NOT <aux> IS ASSIGNED.
            ASSIGN COMPONENT 0 OF STRUCTURE <final_data> TO <aux> CASTING.
          ENDIF.
          DESCRIBE FIELD <aux> LENGTH lv_length IN BYTE MODE.
          MULTIPLY lv_length BY lv_lines.
        CATCH cx_root INTO lv_catch.                         "#EC CATCH_ALL
          lv_message = lv_catch->get_text( ).
          MESSAGE lv_message TYPE 'E' RAISING error.
      ENDTRY.
      CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
        EXPORTING
          input_length = lv_length
          first_line   = 1
          last_line    = lv_lines
        IMPORTING
          buffer       = lv_data_to_zip
        TABLES
          binary_tab   = <final_data_table>
        EXCEPTIONS
          failed       = 1
          OTHERS       = 2.
      IF sy-subrc NE 0.
        IF sy-msgty IS INITIAL.
          sy-msgty = 'S'.
        ENDIF.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 RAISING error.
      ENDIF.
      CREATE OBJECT lv_zip.
      CALL METHOD lv_zip->add
        EXPORTING
          name    = i_filename
          content = lv_data_to_zip.
      CALL METHOD lv_zip->save
        RECEIVING
          zip = lv_zip_file.
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          buffer     = lv_zip_file
        TABLES
          binary_tab = e_bin_table.
      TRY.
          DESCRIBE TABLE e_bin_table LINES lv_lines.
          e_bin_length = lv_lines * 255.   "255 is the length of each line of e_bin_table
        CATCH cx_root INTO lv_catch.                         "#EC CATCH_ALL
          lv_message = lv_catch->get_text( ).
          MESSAGE lv_message TYPE 'E' RAISING error.
      ENDTRY.
    ENDMETHOD.
    I hope it helps!
    Regards,
    Frinee

  • How to open a pdf file with command in WebBrowser control?

    Installed acrobat 6 or7 in my PC, then I load a WebBrowser control in IE to open a local pdf file with command line, such as "Page=3", and then open the same pdf file with WebBrowser control in other IE process, I found the command will affect other open and show operations in webbrowser. is it normal?  That is to say, When i set command "Page=3", the second time WebBrowser still open pdf with command "Page=3",I think it is bad.

    Hello:
    Thanks for your reply. I installed Acrobat6.0 or 7.0 in my PC, then i load a WebBrowser Control in IE by Html, then open local pdf with different command by running IE. We can get the command in this website: http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf
    First:open local pdf with command : oWebBrowser.Navigate("G:
    PDF
    07000001.pdf#Page=3&Pagemode=thumbs", null, null, null, null);
    Second:Open the same local pdf with no command:  oWebBrowser.Navigate("G:
    PDF
    07000001.pdf", null, null, null, null)
    【Result】The first command "#Page=3&Pagemode=thumbs" will effect the way of showing pdf when second open. But, the phenomenon will not appear in Acrobat 8.0, 9.0, 10.0.

  • Open a pdf file with owner password

    Hai!
    I use adobe reader component in vb.net.
    normal loading :
    AdobeReader.src = "C:\mydoc.pdf" is ok!       'Using the reference of AxAcroPDF
    or
    webbrowser1.navigate("C:\mydoc.pdf")
    I have two questions..
    1. how do i know whether the given pdf file required user password?
    2. how can i send the password via my program?
    please help me.

    Thanks for your reply!
    To open only! As i said eariler i used to display the pdf file in vb 2008 using
    AxAcroPDF1.src="C:\mydoc.pdf"
    Above one is works fine if it doesnt set owner password....
    1. User wil give the pdf file, need to know whether it needs the password or not by program
    2. i need to programmatically enter a password and bypass the user interface prompt for password.... [ Like : AxAcroPDF1.src="C:\mydoc.pdf","pass" ]
    Thanks once again!

  • Protect PDF files with a password

    Hi everyone,
    Do you know if there's a way to protect PDF documents with a password? I don't mean those apps (e.g. Google Reader) that let you password-protect your files just while you're using/viewing them on the iPad, I'd like an app that if you want (let's say) send your protected PDF via mail, it's still protected!

    I finally managed to find the application I was looking for: it's called Foxit PDF nad it's free to download on the App Store!

  • How can i manipulate pdf files with my swing application

    hi all,
    in my database i have a column (blob type) in which i want to store pdf files from swing.
    is any body have solution.
    i need it urgently.
    thanks

    thanks bryano for repling.
    but i really don't know how to do.
    if you can give me a how to do or an exemple.
    plz it is really urgent.
    i have to return work as soon as possible

  • Saving PDF files in a password protected FTP site

    Hi Experts,
    I have an Adobe Form which I want to save in a Password protected FTP site.
    I have written the following code in the submit button
    TYPE = HTTP Submit
    URL = ftp://username:[email protected]/
    But once the submit is clicked, I can see ONLY the display of the files in this FTP Server.
    My requirement is, I want this PDF file saved in the FTP server.
    How do I achieve this??
    Thanks
    KR

    If you are using the Adobe Reader plug-ins in Safari, then the only functional way to save the PDF locally (without damage) is to use the save functionality that Adobe (not Safari Save As…, Export, or Print > PDF) provides. These examples were captured on OS X 10.9.5. Safari 7.1.2. Adobe Reader 11.0.10.
    Your first link will offer a roll over Adobe toolbar near the bottom-center of your displayed PDF document. Use the Save icon on the far left.
    The second link produces the Adobe sub-toolbar with the Save icon.

Maybe you are looking for

  • Imovie crashing at start up

    I have a canon vixia S100, when I try to export the clips to my imovie, it gets as far as "generating thumbnails" then quits. I've sent the trouble reports to Apple. I don't know what happens to those, they never get back to me with any info. Can som

  • Installing SAP IDES on personal laptop

    Dear All, I would like to install SAP IDES on my laptop so as to do some testing at my home during weekends. Could someone provide me a detailed insight as to the following: 1) Is there any service provider in Bangalore to do IDES installation on per

  • Higher pixel camera

    I want to know when (or if) Canon will be releasing a higher pixel count camera. I shoot a 5D Mark 2 now for my landscapes and I don't feel that the Mark 3 offers enough improvement over the Mark 2 to justify the cost.....I need more resolution and l

  • SAP components required for implemeting SAP SRM MDM

    Hi all, Plz let me know , the SAP components required for implemeting SAP SRM MDM , for the following points: · Internal catalogs hosted and maintained by buyer? · Internal catalogs that are maintained by vendor (vendor will be using buyer's firewall

  • Using Custom Menu

    We use custom menus very often where there are no real needs for Business Process Flows. I have encountered some annoying behaviour when using the custom menu in combination with the Data Manager that launches as soon as you go over it with the mouse