Error while opening .PDF files in document library sharepoint 2013

Hi
I am getting an error while opening a .pdf file,
Please help me find the solution.
Thanks
Paru

Launch IE -> Click on Gear (settings) -> Manage Add-ons -> Show: All Add-ons ->
There are 2 Adobe Add-ons:
Adobe PDF Reader  &  Adobe Acrobat Sharepoint Open Document
Double-click both and be sure to click the button "ALLOW ON ALL SITES"
(An * will appear in the field)
 http://crowdsupport.telstra.com.au/t5/T-Suite-Applications/There-was-an-error-opening-this-document-The-filename-directory/td-p/197425
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/ae2eea40-9fa6-46be-bca1-ac5eb5597d5e/sharepoint-2010-adobe-reader-error-opening-pdf-files?forum=sharepointgeneralprevious
http://community.office365.com/en-us/f/154/t/46204.aspx?PageIndex=2
disable the Mcafee Firewall Plug In.  This is after of course I ran superantispyware to remove some malware.  uninstalled and reinstalled the Adobe Reade
https://forums.adobe.com/message/1776202?tstart=0

Similar Messages

  • Rusty Solomon : Adobe Reader Error while opening pdf files

    Hello everyone,
    I have a systematic error opening PDF files with Adobe Reader X (10.1.1)
    "Adobe Reader has encountered a problem and needs to close. Please excuse us for the inconvenience."
    By waiting I installed Foxit but I would understand.
    I uninstalled Adobe and reinstalled but it's still the same.
    Thank you for your answers in advance
    Rusty Solomon

    First I would try to update to 11.1.8.
    If that does not fix it, tell us your operating system.

  • Strange question mark error while opening pdf files in adobereader from SAP

    Hi Gurus
    We are having a strange intermittent problem with Adobe Reader. When we try to open PDF files from SAP Frontend we get an error pop-up. The pop-up does not have any text. The title of the pop-up has "Adobe Reader". There is a blue question mark and an OK button.
    This issue occurs few times a day
    This issue does not occur in Windows XP.
    Since past few weeks, we have been trying to find some error/warning/atleast some text in log files of SAP, OS, Adobe Reader, Registry entries, Event Viewer. So far, we have not found anything.
    SAP is not able to help as this issue occurs intermittently and said when they tried, the issue did not occur. They made two attempts and in each attempt they tried 10 times to reproduce the issue. This issue occurs intermittently.
    Environment
    SAP R/3 4.7 EE SAP_Basis 620 Support Package 61
    Windows Vista Enterprise
    Adobe Reader 9.0 and Adobe Reader 9.1 (tried with both versions)
    SAPGUI 710 Patch 12 (latest patch). It also occured in Patch 11. 
    Please suggest
    Thank you
    Pavan

    Thank you for the quick reply.
    We tried many notes from Service Market Place. Also, Windows Team is in contact with Adobe.
    As per Adobe's suggestions, we tried changing preferences of Adobe Reader. We think it might be a problem with SAP Frontend.
    Present status - Issue still exists. nothing works.
    Thank you

  • Error While Opening PDF File in SAP Inbox

    Hello Experts,
    I am facing a weird error in SAP Inbox while opening a PDF files (both created by custom ABAP programs as well as the one attached to a new SAP Inbox message from my desktop & sent to my Inbox as a test).
    The error states that "This file does not have a program associated with it for performing this action. Please install program or, if one is already installed, create an association in the Default Programs control panel.".
    I checked TCode DC30 also & found an appropriate program is already maintained for PDF.
    I couldn't make out more out of this error message. Any inputs in this regard will be highly appreciable.
    Regards,
    Shaurya

    Hi,
      Find out the FM that's generating the actual error through de-bug and analyze the same by looking in OSS and or SDN.
    Regards
    Narasimhan

  • Error while opening PDF file downloaded  from database Blob column

    Hi All,
    I am working on jdev 11.1.1.4.0.
    In my use-case I am using filedownload Actionlistner on a link to get the PDF file stored in the database in blob field. These files are being uploaded from other use-case in adf only.
    After getting the dialog box to open/save/cancel for the PDF file when i click on open then i am getting an error *'Adobe Reader could not open 'abc.pdf' because it is either not a supported file type*
    or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly docoded)' for some files , and to my surprise I am able to open some files.
    When I open these PDF files separately from desktop I am able to view the content of each and every file in adobe reader.
    I dont know where the problem exactly lies , while uploading/downloading the file . Any ideas/thoughts to resolve this issue?
    Thanks
    Kanika

    Thanks a lot Timo...!!!
    I checked the PDF file downloaded directly from the blob column in DB, there only it is corrupted so must be the problem in uploading the file. I am checking the code line by line,, but no problem in setting the file content type,size etc.
    Here is the code snippet ..
    byte[] buff;
    buff = new byte[(int)length]; -- Length is the file size
    int bytesRead = is.read(buff);
    for (int i = 0; bytesRead < buff.length; i++) {
    // int b = is.read();
    int b = is.read();
    if (b == -1)
    break;
    buff[i] = (byte)b;
    BlobDomain blobDomian = new BlobDomain((buff));
    TestVORow = (TestVORow Impl)TestVO.createRow();
    if(blobDomian != null) {
    TestVORow.setAttachment(blobDomian);
    am.getTransaction().commit();
    This seems to be Ok to me..the same issue, file is still corrupting.
    Any thoughts from your side ???
    Thanks
    Kanika
    The problem is resolved.
    Changes made are instead of
    InputStream is;
    used ... BufferedInputStream bis ;
    and after
    for (int i = 0; bytesRead < buff.length; i++) {
    // int b = bis.read();
    int b = bis.read();
    if (b == -1)
    break;
    buff[i] = (byte)b;
    bis.close(); // use this close bufferedInput Stream.
    Able to open each and every file now..Thanks for your suggestions Timo and Frank.
    Edited by: Kanika on Mar 6, 2012 3:15 AM

  • Error while opening PDF file created in SAP System

    Dear Friends,
    We have customized transaction through which a Inspection Lot gets generated with predeifned Inspection Characteristics data. User enters the reading in that Inspection Lot and SAVE. In another customized transaction, this Inspection Lots gets Released and when released, SAP System generates PDF file through this custmized program and send it to repspective Mangers through SAP Inbox for view. Before 07.10.2010, this was working correctly. On 08.10.2010, our Basis team has applied patches provided by SAP. Afte that the generated PDF file can not be open. Error message shows that this file is damaged OR corrupted.
    We wrote to SAP support but they advise to contact DAP Forum for the customized program, SAP supprt will not help.
    We need help to overcome this issue.
    Regards,
    Jayant Joshi - Bahrain

    Hi,
      Find out the FM that's generating the actual error through de-bug and analyze the same by looking in OSS and or SDN.
    Regards
    Narasimhan

  • Getting 'Out of memory' error while opening the file. I have tried several versions of Adobe 7.0,9.0,X1. It is creating issue to convert PDF into TIFF. Please provide the solution ASAP

    Hello All,
    I am getting 'Out of memory' error while opening the file. I have tried several versions of Adobe 7.0,9.0,X1.
    Also, it is creating issue to convert PDF into TIFF. Please provide the solution ASAP.

    I am using Adobe reader XI. When i open PDF it gives "OUT of memory" error after scrolling PDF gives another alert "Insufficient data for an image". after clicking both alerts it loads full data of PDF. It is not happening with all PDFs. couple of PDFs are facing this issue. Because of this error my software is not able to print these PDFS into TIFF. My OS in window7*64. I tried it on win2012R2 and XP. Same issue is generating there.
    It has become critical issue for my production.

  • Error while Opening PDF attachment from Mail

    Hi,
    We two Output Types created ZNEU and ZAUF. Two Smartforms are created for the same Output Types. The Issue now is, When ZNEU triggers and send a mail the document is properly decoded and gets opened but for ZAUF it doesn't. It says File damaged.
    This is the code we have used for sending mail.
    CONSTANTS:
              co_pdf(3) TYPE c VALUE 'PDF',
              co_raw(3) TYPE c VALUE 'RAW'.
      DATA:
            it_objbin TYPE STANDARD TABLE OF solisti1,
            wa_objbin TYPE solisti1.
      DATA:
             lv_filesize TYPE i.
      DATA:
            it_lines TYPE STANDARD TABLE OF tline.
      DATA:
            wa_mail_body TYPE solisti1,
            wa_receipients TYPE somlreci1.
      DATA:
           document           TYPE REF TO cl_document_bcs,
           content            TYPE solix_tab,
           wa_content         TYPE solix,
           send_request       TYPE REF TO cl_bcs,
           sender             TYPE REF TO if_sender_bcs,
           recipient          TYPE REF TO if_recipient_bcs,
           requested_status   TYPE REF TO bcs_rqst,
           status_mail        TYPE bcs_stml,
           bcs_exception      TYPE REF TO cx_bcs,
           lv_rec             TYPE adr6-smtp_addr.
      DATA:
             wa_attachx TYPE solix,
             l_pdf_len TYPE i,
             l_con_len TYPE i,
             l_pdf_pos TYPE i,
             l_con_pos TYPE i.
      FIELD-SYMBOLS: <fs_con> TYPE x.
      CLASS cl_cam_address_bcs     DEFINITION LOAD.
      CLASS cl_abap_char_utilities DEFINITION LOAD.
    * Get the PDF version of the OTF
      CALL FUNCTION 'CONVERT_OTF'
       EXPORTING
         format                      = 'PDF'
       IMPORTING
         bin_filesize                = lv_filesize
        TABLES
          otf                         = job_output_info-otfdata
          lines                       = it_lines
       EXCEPTIONS
         err_max_linewidth           = 1
         err_format                  = 2
         err_conv_not_possible       = 3
         err_bad_otf                 = 4
         OTHERS                      = 5.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Convert the PDF format to the table type required for the attachment.
      CALL FUNCTION 'QCE1_CONVERT'
        TABLES
          t_source_tab         = it_lines
          t_target_tab         = it_objbin
        EXCEPTIONS
          convert_not_possible = 1
          OTHERS               = 2.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Convert the data which is in text to binary
      l_con_pos = 0.
      DESCRIBE FIELD wa_objbin LENGTH l_pdf_len IN BYTE MODE.
      DESCRIBE FIELD wa_attachx LENGTH l_con_len IN BYTE MODE.
      LOOP AT it_objbin INTO wa_objbin.
        ASSIGN wa_objbin TO <fs_con> CASTING.
        CHECK sy-subrc EQ 0.
        DO l_pdf_len TIMES.
          l_pdf_pos = sy-index - 1.
          IF l_con_pos = l_con_len.
            APPEND wa_attachx TO content.
            FREE wa_attachx.
            l_con_pos = 0.
          ENDIF.
          MOVE <fs_con>+l_pdf_pos(1) TO wa_attachx-line+l_con_pos(1).
          ADD 1 TO l_con_pos.
        ENDDO.
      ENDLOOP.
      IF l_con_pos > 0.
        APPEND wa_attachx TO content.
      ENDIF.
      TRY .
    *     -------- create persistent send request ------------------------
          send_request = cl_bcs=>create_persistent( ).
    *     -------- create and set document with attachment ---------------
    *     create document from internal table with text
          document = cl_document_bcs=>create_document(
                        i_type    = 'RAW'
                        i_text    = mail_body_tab
                        i_subject = email_subject ).
    *     add attachment to document
          CALL METHOD document->add_attachment
            EXPORTING
              i_attachment_type    = 'PDF'
              i_attachment_subject = attachment_name
              i_att_content_hex    = content.
    *     add document to send request
          CALL METHOD send_request->set_document( document ).
    *    Set sender
          sender = cl_cam_address_bcs=>create_internet_address( sender_id ).
          CALL METHOD send_request->set_sender
            EXPORTING
              i_sender = sender.
    *     Receipients
          LOOP AT receipients_tab INTO wa_receipients .
            lv_rec = wa_receipients-receiver.
            recipient = cl_cam_address_bcs=>create_internet_address( lv_rec ).
    *       Add recipient with its respective attributes to send request
            CALL METHOD send_request->add_recipient
              EXPORTING
                i_recipient = recipient.
          ENDLOOP.
    * Set that you don't need a Return Status E-mail
          status_mail = 'N'.
          CALL METHOD send_request->set_status_attributes
            EXPORTING
              i_requested_status = 'N'
              i_status_mail      = status_mail.
    * set send immediately flag
          send_request->set_send_immediately( 'X' ).
    * Send document
          CALL METHOD send_request->send( ).
    *      COMMIT WORK.
        CATCH cx_bcs INTO bcs_exception.
          RAISE EXCEPTION bcs_exception.
    ENDTRY.
    This is in a Class which is been used in the print program for both the Output Types.
    Can somebody throw light upon this.
    Note: I tried using
    but it is not working properly.
    Thanks,
    Prashanth
    Edited by: Prashanth KR on Jan 5, 2010 6:20 AM

    Hi,
    Please paste the part of code where you are getting error.
    And if you are not clear about where the error is, try searching sdn or google with the error message that you are getting as this issue has been discussed many times earlier.
    Check this link.
    Error while opening PDF in mail attachment
    Hope it helps.
    Regards,
    Raj

  • After Downloading, Error while opening PDF  : PDF has no pages

    After Downloading, Error while opening PDF  : PDF has no pages
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          SRC_SPOOLID              = L_SPOOLNO
          NO_DIALOG                = SPACE
          DST_DEVICE               = MSTR_PRINT_PARMS-PDEST
        IMPORTING
          PDF_BYTECOUNT            = MI_BYTECOUNT
        TABLES
          PDF                      = MTAB_PDF
        EXCEPTIONS
          ERR_NO_ABAP_SPOOLJOB     = 1
          ERR_NO_SPOOLJOB          = 2
          ERR_NO_PERMISSION        = 3
          ERR_CONV_NOT_POSSIBLE    = 4
          ERR_BAD_DESTDEVICE       = 5
          USER_CANCELLED           = 6
          ERR_SPOOLERROR           = 7
          ERR_TEMSEERROR           = 8
          ERR_BTCJOB_OPEN_FAILED   = 9
    Thanks in advance
    Monika
          ERR_BTCJOB_SUBMIT_FAILED = 10
          ERR_BTCJOB_CLOSE_FAILED  = 11
          OTHERS                   = 12.
    Transfer the 132-long strings to 255-long strings
    LOOP AT MTAB_PDF.
    TRANSLATE MTAB_PDF USING '~'.
    CONCATENATE WA_BUFFER MTAB_PDF INTO WA_BUFFER.
    ENDLOOP.
    TRANSLATE WA_BUFFER USING '~'.
    DO.
    it_attach = WA_BUFFER.
    APPEND it_attach.
    SHIFT WA_BUFFER LEFT BY 255 PLACES.
    IF WA_BUFFER IS INITIAL.
    EXIT.
    ENDIF.
    ENDDO.
    ****GET THE FILE NAME TO STORE....................
    v_path = 'C:\PD Form\' .
    CONCATENATE v_path p_pernr-low '.pdf' into v_name.
        create object v_guiobj.
        call method v_guiobj->file_save_dialog
          EXPORTING
            default_extension = 'pdf'
            default_file_name = v_name
            file_filter       = v_filter
          CHANGING
            filename          = v_name
            path              = v_path
            fullpath          = v_fullpath
            user_action       = v_uact.
        if v_uact = v_guiobj->action_cancel.
          leave to current transaction.
        endif.
    ..................................DOWNLOAD AS FILE....................
        move v_fullpath to v_filename.
        call function 'GUI_DOWNLOAD'
          EXPORTING
            bin_filesize            = MI_BYTECOUNT
            filename                = v_filename
            filetype                = 'BIN'
          TABLES
            data_tab                = it_ATTACH
          EXCEPTIONS
            file_write_error        = 1
            no_batch                = 2
            gui_refuse_filetransfer = 3
            invalid_type            = 4
            no_authority            = 5
            unknown_error           = 6
            header_not_allowed      = 7
            separator_not_allowed   = 8
            filesize_not_allowed    = 9
            header_too_long         = 10
            dp_error_create         = 11
            dp_error_send           = 12
            dp_error_write          = 13
            unknown_dp_error        = 14
            access_denied           = 15
            dp_out_of_memory        = 16
            disk_full               = 17
            dp_timeout              = 18
            file_not_found          = 19
            dataprovider_exception  = 20
            control_flush_error     = 21
            others                  = 22.
        if sy-subrc <> 0.
          message id sy-msgid type sy-msgty number sy-msgno
              with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        endif.

    My Generated Spool request is PDF Spool. It contains Adobe Forms data. To Download Adobe form
                 Spool (PDF Spool) into PDF format,
    First,
    A)     Read PDF Spool data by using u2018FPCOMP_CREATE_PDF_FROM_SPOOLu2019 Function module.
    B)     Assign the Output Data to XSTRING format
    C)     Convert that XSTRING data to Binary Format using 'SCMS_XSTRING_TO_BINARY' Function module.
    D)     Save File on Application server using OPEN DATASET , TRANSFER , CLOSE DATASET.You can see your
                          downloaded file in Transaction AL11 in specified directory.
    You can save your file on Presentation server also using GUI_DOWNLOAD.
    First three steps are necessary if your spool is PDF Spool.
    Basically we need this when we are downloading Adodbe forms ( which is not a SAPScript or smartforms)
    Example :
    DATA :
      e_pdf1 TYPE  fpcontent,
      e_renderpagecount1  TYPE i.
      CALL FUNCTION 'FPCOMP_CREATE_PDF_FROM_SPOOL'
        EXPORTING
          i_spoolid               = l_spoolno
          i_partnum               = '1'
       IMPORTING
         e_pdf                   = e_pdf1
         e_renderpagecount       = e_renderpagecount1
    *   E_PDF_FILE              = E_PDF_FILE1
    * EXCEPTIONS
    *   ADS_ERROR               = 1
    *   USAGE_ERROR             = 2
    *   SYSTEM_ERROR            = 3
    *   INTERNAL_ERROR          = 4
    *   OTHERS                  = 5
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      DATA : buffer  TYPE  xstring,
      append_to_table  TYPE  c.
      DATA : output_length TYPE  i.
      TYPES : BEGIN OF ty_binary,
                binary_field(1000) TYPE c,
              END OF ty_binary.
      DATA : lt_binary TYPE TABLE OF ty_binary WITH HEADER LINE.
      DATA : lv_xstring TYPE xstring.
      lv_xstring = e_pdf1.
    * Convert xstring to binary.
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          buffer                = lv_xstring
         append_to_table       = ' '
    * IMPORTING
    *   OUTPUT_LENGTH         =
        TABLES
          binary_tab            = lt_binary.
      DATA : wa_binary LIKE lt_binary.
      DATA: BEGIN OF itab OCCURS 0,
      field(256),
      END OF itab.
      DATA: dsn(50000) VALUE '/usr/sap/tmp/',
      length LIKE sy-tabix,
      lengthn LIKE sy-tabix.
      CONCATENATE '/usr/sap/tmp/' lv_pernr '.pdf' INTO dsn.
    ******* Save file on Application server
      OPEN DATASET dsn FOR OUTPUT IN BINARY MODE.
      LOOP AT lt_binary.
        TRANSFER lt_binary-binary_field TO dsn.
      ENDLOOP.
      CLOSE DATASET dsn.
      CLEAR lt_binary.
      REFRESH lt_binary.
    cheers

  • Error while opening the file store file "WLS_DIAGNOSTICS000000.DAT".....

    I have a WL 9.2.1 running on Sun solaris o/s .....it is failing to start thowing the following exception
    <Mar 19, 2009 5:21:17 PM EDT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
    There are 1 nested errors:
    weblogic.diagnostics.lifecycle.DiagnosticComponentLifecycleException: weblogic.store.PersistentStoreException: java.io.IOException: [Store:280021]There was a
    n error while opening the file store file "WLS_DIAGNOSTICS000000.DAT"
    at weblogic.diagnostics.lifecycle.ArchiveLifecycleImpl.initialize(ArchiveLifecycleImpl.java:44)
    at weblogic.diagnostics.lifecycle.DiagnosticFoundationService.start(DiagnosticFoundationService.java:107)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Caused by: weblogic.store.PersistentStoreException: java.io.IOException: [Store:280021]There was an error while opening the file store file "WLS_DIAGNOSTICS0
    00000.DAT"
    at weblogic.store.io.file.Heap.open(Heap.java:166)
    at weblogic.store.io.file.FileStoreIO.open(FileStoreIO.java:85)
    at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:350)
    at weblogic.store.PersistentStoreManager.createFileStore(PersistentStoreManager.java:202)
    at weblogic.diagnostics.archive.DiagnosticStoreRepository.getStore(DiagnosticStoreRepository.java:61)
    at weblogic.diagnostics.lifecycle.ArchiveLifecycleImpl.initialize(ArchiveLifecycleImpl.java:42)
    ... 4 more
    Caused by: java.io.IOException: [Store:280021]There was an error while opening the file store file "WLS_DIAGNOSTICS000000.DAT"
    at weblogic.store.io.file.StoreDir.throwIOException(StoreDir.java:213)
    at weblogic.store.io.file.StoreDir.open(StoreDir.java:103)
    at weblogic.store.io.file.Heap.open(Heap.java:164)
    ... 9 more
    Caused by: java.io.IOException: Error from fcntl() for file locking, Resource temporarily unavailable, errno=11
    at weblogic.store.io.file.direct.DirectIONative.open(Native Method)
    at weblogic.store.io.file.direct.DirectFileChannel.<init>(DirectFileChannel.java:51)
    at weblogic.store.io.file.direct.DirectIOManager.open(DirectIOManager.java:138)
    at weblogic.store.io.file.StoreFile.openInternal(StoreFile.java:112)
    at weblogic.store.io.file.StoreFile.open(StoreFile.java:142)
    at weblogic.store.io.file.StoreDir.open(StoreDir.java:95)
    ... 10 more
    i went ahead and checkd the file and the privs on the file they look correct -rw-r--r-- ...but when i just restart it ..it starts with no errors the next time......What could be the issue.....please help
    Then only reason i could think of is the size of the file is 35MB now...is this the problem....if yes....is there a way to automaticaly rotate this file ....

    The root cause appears to be right in the stack trace:
    Caused by: java.io.IOException: Error from fcntl() for file locking, Resource temporarily unavailable, errno=11I think this indicates that either the file was either locked (because another instance of WebLogic had it opened), or that the file was unavailable for some reason. WebLogic locks files as a safety precaution to prevent misconfigured setups (multiple domains sharing the same directory and store name) from attempting to share the same file.
    I don't think that this message necessarily means there is a file corruption.
    As for rotation, the file store automatically adds new files as needed (I think its 1 file for every 2GB of data). The "diagnostics" file store is generated by the optional diagnostics feature, and I think that this feature has options for controlling the amount of stored data.
    Tom

  • While opening pdf files the menu bar, navigation bar  cracks unobviously and also close and minimise buttons  goes hidden..Facing the problem for last one month. Please help.

    while opening pdf files the menu bar, navigation bar  cracks unobviously and also close and minimise buttons  goes hidden..Facing the problem for last one month. Please help.

    The latest Kaspersky software version is 15.0.1.415 or 15.0.1.415ab.

  • Getting error while opening pdf on server

    Dear All,
    I am working on jdeveloper 11.1.1.4.0.
    I have a use case where on click of link , generating a dynamic pdf. The pdf i am arranging with the help of itext through backing bean. It is generating as well downloading the pdf.I have used filedownloadlistner to call the generate and download pdf methods.
    On integrated weblogic server the pdf is working fine, but when i deploy on server while opening pdf getting error :
    *"Adobe Reader could not open 'test.pdf' beacause it is either not a supported file type*
    *or because the file has been damaged (for example, it was sent as an email attachment and*
    *wasn't correctly decoded)."*
    I am not able to get the root cause for the problem. The sample code to generate and download pdf is :
    // Generate PDF
    private void generatePDFFile(FacesContext facesContext,
    java.io.OutputStream outputStream) {
    try {
    System.out.println("In Generate PDF................");
    Document document = new Document(PageSize.A4);
    PdfWriter.getInstance(document, new FileOutputStream(FILE));
    document.open();
    addMetaData(document);
    addTitlePage(document);
    document.close();
    System.out.println("End of PDF......................");
    facesContext = facesContext.getCurrentInstance();
    ServletContext context = (ServletContext)facesContext.getExternalContext().getContext();
    System.out.println(context.getRealPath("/"));
    String FILE = "test.pdf";
    File file = new File(FILE);
    FileInputStream fdownload;
    //BufferedInputStream bis;
    byte[] b;
    System.out.println(file.getCanonicalPath());
    System.out.println(file.getAbsolutePath());
    fdownload = new FileInputStream(file);
    int n;
    while ((n = fdownload.available()) > 0) {
    b = new byte[n];
    int result = fdownload.read(b);
    outputStream.write(b, 0, b.length);
    if (result == -1)
    break;
    outputStream.flush();
    } catch (Exception e) {
    e.printStackTrace();
    Download PDF
    private void downloadPDF(FacesContext facesContext, java.io.OutputStream outputStream) {
    try {
    facesContext = facesContext.getCurrentInstance();
    ServletContext context = (ServletContext)facesContext.getExternalContext().getContext();
    ExternalContext ctx = facesContext.getExternalContext();
    HttpServletResponse res = (HttpServletResponse)ctx.getResponse();
    res.setContentType("application/pdf");
    outputStream = res.getOutputStream();
    System.out.println(context.getRealPath("/"));
    File file = new File(FILE); // FILE = 'test.pdf'
    FileInputStream fdownload;
    // BufferedInputStream bis;
    byte[] b;
    fdownload = new FileInputStream(file);
    //bis = new BufferedInputStream (new FileInputStream(file));
    int n;
    while ((n = fdownload.available()) > 0) {
    b = new byte[n];
    int result = fdownload.read(b);
    //outputStream.write(b, 0, b.length);
    outputStream.write(b, 0, b.length);
    if (result == -1)
    break;
    outputStream.flush();
    outputStream.close();
    fdownload.close();
    } catch (Exception e) {
    e.printStackTrace();
    Any help will be appreciated.
    Thanks
    Kanika

    If the pdf file don't open on the server where you created them, they won't open on the client side either.
    The code you are using should be refactored to use different file names for the generated files. In a multi user environment (which every web application is) you overwrite the file generated with each new request, even before the file is loaded by a client. This will corrupt the file a client is loading and you get the error you see.
    Next I would look into org.apache.commons.io package (http://commons.apache.org/io/) which has utility classes which allows easy handling of streams without looping over the data.
    Timo

  • Error when opening PDF files from SAP.

    Hi Gurus
    I have posted this question in ABAP Development section also. Please read the below text.
    We are having a strange intermittent problem with Adobe Reader. When we try to open PDF files from SAP Frontend we get an error pop-up. The pop-up does not have any text. The title of the pop-up has "Adobe Reader". There is a blue question mark and an OK button.
    This issue occurs few times a day in Windows Vista.
    This issue does not occur in Windows XP.
    Since past few weeks, we have been trying to find some error/warning/atleast some text in log files of SAP, OS, Adobe Reader, Registry entries, Event Viewer. So far, we have not found anything.
    SAP is not able to help as this issue occurs intermittently and said when they tried, the issue did not occur. They made two attempts and in each attempt they tried 10 times to reproduce the issue. This issue occurs intermittently.
    Environment
    SAP R/3 4.7 EE SAP_Basis 620 Support Package 61
    Windows Vista Enterprise
    Adobe Reader 9.0 and Adobe Reader 9.1 (tried with both versions)
    SAPGUI 710 Patch 12 (latest patch). It also occured in Patch 11.
    Please suggest
    Thank you
    Pavan

    Now I got to capture the screenshot, however not able to attach/upload here but it says:
    'Reading Untagged Documents'
    lets say i tried to open 6 page document then it said:
    'This 6-page document is untagged and must be prepared for reading. While the document is being
    analyzed, your assistive technology will not be able to interact with this application. '
    then it asked for Reading options
    then a checkbox for to confirm 'Always use the settings from the Reading Preferences (Do not show this dialog again)
    then 'OK/START' and 'cancel' buttons
    It seems, this is the problem with Adobe w.r.t Vista.
    thanks
    Bhudev

  • Internal error while creating pdf files

    Good morning.
    I have problems while creating pdf files from FM documents,using FM9: I get an internal error, see here an example:
    === Header Begin ===
    Internal Error: 9004, 6921628, 9677518, 0
    FrameMaker 9.0.0 for Intel
    Build: 9.0p255
    Window System: MSWindows
    Operating System: Windows NT 5.1 (major.minor.build: 5.1.2600 Service Pack 3)
    Generated on: venerdì 30 marzo 2012 11.38.51
    To file: C:\Documents and Settings\itgzeanlo\Dati applicazioni\Adobe\FrameMaker\9\FrameLog_12.03.30_11.38.51.txt
    === Header End ===
    === Stack Trace Begin ===
    $699d9c
    $93aace
    === Stack Trace End ===
    === Open Window List Begin ===
    # not implemented
    === Open Window List End ===
    === Recent Commands Begin ===
    === Recent Commands End ===
    === Recent API Calls Begin ===
    # not implemented
    === Recent API Calls End ===
    === Windows Relocation Information Begin ===
    Application: 00400000
    FrameMaker.exe: 00400000 00979000
    ntdll.dll: 7c910000 000b8000
    I don't have a clue of what's wrong. I tried to uninstall the software and then to install it again, with the same result.
    Can you please help me?
    Kind regards.
    Antonio Locati

    > Getting back to your issue - how are you trying to create a PDF? Save As or printing to the AdobePDF printer instance?
    I've tried in both ways, and it's exactly the same: I get the error.
    > If XP, have you installed the MS hotfix?
    Windows is regularly updated through Windows Update.
    > What's in your FM doc?
    The document is based on some tables (it's a pricelist for our products), there are also some links to some .eps files (which are correctly displayed on screen, so the path is correct).
    > Did it work before or has it changed and now errors out?
    The file (or better the book made of about fifteen FM files) was created by someone else, on another PC. When I open it, I get the error. When I send my files to another person, he can create pdf files without any problem.
    > Does it update without any errors?
    Yes, I regularly update Framemaker without any error.
    Thanks for your help!!

  • Error while opening PDF in mail attachment

    Hi All,
    In smartform i am sending a mail with attachemnt as PDF file,there is one more option like preview of smartform .
    issue is like i am able to see the preview of the same record but when it is sent in mail attachement,and while opening PDF its showing error that file can not be open it is corrupted.
    Please help.
    Mona Singh.

    Dear Sandra
    That was my problem: binary data was incorrectly converted (often because of Unicode systems).
    I returned
            bin_filesize          = v_len_in
            bin_file              = l_binfile
    from the function module CONVERT_OTF, then converted the xstring data (l_binfile) into an internal table (t_objbin) to send to the mail send function with the following function module:
        CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
          EXPORTING
            buffer        = l_binfile
          IMPORTING
            output_length = v_lines_bin
          TABLES
            binary_tab    = t_objbin.
    Many thanks for your help.
    Best regards
    Patricia

Maybe you are looking for

  • Script to open, set dimensions and save

    Hi All, I'm a newbie in Illustrator. I'd like to find a way to open a pdf file, set its new dimensions and after that, save the file in .AI format. Is that possible ? How could i achieve this ? Thanks in advance.

  • Vendor as Employee

    Hi, Wanted to knwo if employee is Vendor, is there any indicator or settings to do in Vendor master record.

  • Credtit Availble in Tax payment Wizard

    Hi All I am trying to get the total Credit available for each and every CENVAT Components for the month in the report... I checked the table TPW6 but it lists all the Journal Entries from which the credit payable can be calculated.. Is there any way

  • SQL performance drops after 20 mins

    Hello, I am using Oracle Version 9.2.0.5 I have an SQL query that starts off fast but the performance drops after running for 20 mins. It continues to drop till a point where it becomes painfully slow. The query is as attached below: SELECT      /*+

  • Installing Version 11.1.1.3 Plan & Sequence: Questions

    I have to install Essbase, Planning & Financial Reporting Version 11.1.1.3. For now it's one development server with 3 client machines (all developers who will need admin rights). My plan is as follows, please check, I have a couple of questions alon