Error opening PDF downloaded from Interactive Report

hi -- I'm getting an error opening a PDF file downloaded from an interactive report.
I've seen on the forum that this could be related to the size of the file, but I've tried
this out on 10-row results (1k files) and it's still an issue.
I save the file to my file system. If I try to open it in Adobe Reader, I get:
File does not begin with '%PDF-'
and
Adobe Reader could not open <filename>.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 decoded).
If I try to open in Internet Explorer, I get:
File does not begin with '%PDF-'
Other users are having the same problem. Download to csv and open in Excel works fine.
Do I need to have special print attributes for this? I didn't think so... I'm just using the defaults
(response header = report settings, content disposition = attachment).
Ideas?
Thanks,
Carol

Hi,
I'm having the same problem that was described above, and my site does have BI Publisher installed, and it does successfully produce readable pdfs for many reports.
But there are other reports, even reports produced using the Apex Wizard and all defaults, that just keep producing the same Adobe Reader error reported above, ie
"Adobe Reader could not open <filename>.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 decoded)."
Any suggestions?
Cheers,
Peter

Similar Messages

  • Unable to open PDF output (PDF downloaded from Interactive Report--APEX)

    Hi,
    I'm getting below error while opening a PDF file downloaded from an interactive report (APEX).
    Adobe reader cound not open "TEST.pdf"because it is either not supportd file or because the file has been damaged.
    Thanks & Regards,
    Ramamuni.

    Steps of pdf Printing of Report from FOP:
    1) Download and unzip the following needed files in D:\Apex_fop directory.
    2) Open your command prompt .
    Change the directory to D:\Apex_fop\cocoon-2.1.11.
    Set the Java_Home environment variable as: set JAVA_HOME= C:\Program Files\Java\jdk1.5.0_21
    then type build war
    3) After getting the prompt back as D:>Apex_fop>cocoon-2.1.11>
    Copy coocon.war file from the folder D:\Apex_fop\cocoon-2.1.11\build\cocoon.
    Paste this file into webapps subdirectory in main tomcat directory having path as D:\APEX_FOP\apache-tomcat-6.0.26\webapps.....place it in the top
    level of webapps directory.
    4) Now just startup tomcat as D:>APEX_FOP>apache-tomcat-6.0.26>bin>startup.bat
    The cocoon.war file will automatically uncompressed as directory.
    5) To change the port of apache tomcat , edit apache-tomcat-6.0.26\conf\server.xml & change port attribute of Connector element from 8080 to 8181.
    Just check whether Tomcat is running or not as http://localhost:8181/
    & to check cocoon type http://localhost:8181/cocoon/
    6) Now copy fop_post directory & paste it undes new cocoon directory in webapps having path as D:\APEX_FOP\apache-tomcat-6.0.26\webapps
    \cocoon.
    7) Now you need to do some apex settings as follows:
    In APEX, just log in as ADMIN into apex/apex_admin and went to Instance Settings and did the following:
    - Print Serverr: Standard Support
    - Print Server Protocol: HTTP
    - Print Server Host Address:localhost
    - Print Server Port: 8181
    - Print Server Script: /cocoon/fop_post
    In your APEX application, in the Regions section, Click on the Print link next to your report and do the following settings:
    - Enable Report Printing: Yes
    - Link Label: Print
    - Response Header: Report Settings
    - View File As: Attachment
    - Output Format: PDF
    - Report Layout: Default Report Layout
    - Print URL: f?p=&APP_ID.:1:&SESSION.:FLOW_XMLP_OUTPUT_R1063230002781575
    8) Open up the Report Page and click Print , You will get the pdf report.
    I am sure this will help you
    Regards

  • APEX 4.0: error while opening a XLS file downloaded from interactive report

    Hi,
    I'm getting below error while opening a XLS file downloaded from an interactive report (APEX 4.0).
    "The file you trying to open, 'customer_2.xls', is in a different format than specified by the file extension.
    Verify that the is not corrupted and is from a trusted source before opening file. Do you want to open file."
    Yes No Help
    May be this one Apex 4.0 issue.
    please help me.
    Thanks
    Mukesh

    Hi,
    is the next part of the code correct.
    What i mean is packing of the attachment, finding out the size of pdf file and doc type as PDF.
    You can also try below link..
    Link: [http://wiki.sdn.sap.com/wiki/display/Snippets/SENDALVGRIDASPDFATTACHMENTTOSAPINBOXUSINGCLASSES]
    Hope this helps.
    Regards,
    -Sandeep

  • Download from Interactive Report to csv is not working

    Hi there,
    when I try to create a download form my interactive report I get an empty csv/pdf.
    I just checked with other report pages where the download functionality is working - but the settings seem the same.
    In the interactive report properties I've set the check boxes for csv and pdf and it is also displayed properly then on the report page. But when I click on the download (csv or pdf) just an empty document is opened.
    What settings can I check now - what might be the reason for the error?
    BR & thank you,
    Lena

    Keerti,
    You're using the "Display Condition" of the Interactive Report Region (IRR) to show the report or not.
    If you have multiple selects just use a PL/SQL expression as in:
    :P1_MULTI_1 IS NOT NULL
       AND :P1_MULTI_2 IS NOT NULLNow, if that works for you lets take things a little further... You don't need the second submit button all the time (I'd get rid of it entirely but you seem to really want to hide the region until a selection is made). I did the following:
    1. Updated the display condition of the report to use a PL/SQL expression.
    2. Set the display condition of the submit button to the opposite of the IRR.
    3. Added the item name of the select to the interactive report attributes > Advanced Attributes > Page Items to Submit.
    Now the go button can be used for everything.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    http://sourceforge.net/projects/plrecur
    Edited by: Dan McGhan on May 14, 2009 12:28 PM
    Updated as only clicking "go" works with Page Items to Submit.

  • ORA-20876: Stop APEX Engine message in CSV download from Interactive Report

    Hi,
    1 particular Interactive Report in our application produces the following error message in the CSV file, if we attempt to download the report: -
    ORA-20876: Stop APEX Engine
    All other reports work OK, there is another thread here with the same issue, but no resolution was posted: APEX 4.1 ORA-20876: Stop APEX Engine
    Has anyone else come across this issue?
    Apex version is 4.1.0.00.32
    Thanks,
    Mike
    Edited by: Mike, UK on Mar 6, 2012 9:39 PM

    Hi,
    what happens if you take the query from IR report and create a new classic report?
    On this report enable csv export and then try the export.
    Maybe that (format) data are causing export to fail.
    Try to export just one row in your IR report (and classic report), so that you add where rownum < 2.
    Regards,
    Aljaz
    Edited by: Aljaz on 6.3.2012 23:11
    Edited by: Aljaz on 6.3.2012 23:29

  • Problem with PDF generation from Interactive Report

    Greetings,
    I created an interactive report and chose CSV and PDF download options. I am able to create CSV but when I try to download a PDF it says that that acrobat reader cannot open the created pdf file. I am not sure what I should do to make it work. Please help.
    -Vatsa

    Hey there,
    That happened to me when I had an & sign in the page title name. If you have some weird symbols in the page title, try changing them. Then it will work.
    PS
    Make sure in the title name and page name there are no weird symbols.
    Mike
    Message was edited by:
    weezy f

  • Trouble Opening PDFs Downloaded From Web

    I have Adobe Acrobat Pro (10.1.6) for the latest Mac OSX and I can open and edit PDFs from others. But I cannot open any PDFs I download from the Web. I get the message “There was an error opening this document. The file is damaged and could not be repaired.” Any suggestions?

    Trash the app and download it again.

  • Error opening pdf's from PC stored on Mac

    I have been experiencing an error when attempting to open pdf's stored in the public folder on our Mac.
    The message reads:
    "There was an error opening this document. The file is already open or in use by another application."
    It doesn't matter which PC we use to access the pdf's from and happens regardless of which version of Acrobat is being used, the same error occurs.
    The public folder on the Mac has no restrictions.
    Mac 3.2 GHz Quad-Core Intel
    OS 10.9.4
    Adobe Creative Suite 2014
    *Also discovered none of the InDesign, Photoshop or Illustrator files can opened from PC's can be opened while they are stored on the Mac either.
    Thanks,
    Chuck

    Thanks for responding. We do not work using a Windows domain.
    I can open .txt and Microsoft Publisher files, but I get errors on nearly everything else including any Adobe product files and Word files.
    We used to keep files both the PC and Mac had to access on an external network drive, but exporting pdf's from the Mac (as well as opening and saving) took too long. So we moved everything to the Mac. If I have to work on a file I have to drag it to the PC desktop. We can't save directly to the Mac either. Files have to be copied onto the Mac.

  • Error opening PDF files from search results webpart on anonymous SharePoint 2013SP1 site with IE

    Clicking search results, in the strict sense pdf files, using IE on an anonymous SharePint 2013SP1 site, I received the error: There was an error opening this document. The filename, directory name, or volume label syntax is incorrect.
    I would like to solve this problem on the server side.
    Starting position:
    SharePoint 2013 SP1
    Web Application:
    based on template 'Publishing Portal'
    Anonymous Access enabled
    Claims based authentication: Integrated Windows Authentication NTLM
    Client Integration disabled
    Site Collection:
    Anonymous Access enabled for 'Entire Web site' => group 'Anonymous Users' was created
    added permission to open items: $Web.AnonymousPermMask64 = "ViewListItems, ViewVersions, ViewFormPages, Open, ViewPages, UseClientIntegration, OpenItems"
    Client side solutions:
    c1) Open Link with “Open in new tab” or “Open in new window” => OK
    c2) Disable IE Add-on “Adobe Acrobat Sharepoint OpenDocuments Component” => OK
    c3) Set bDisableSharePointFeatures to 1 in regetit => OK
    Server side solutions:
    S1) Turn off Client Integration => didn't work, still same error
    S2) Modify DOCICON.XML => didn't work, still same error
    I gave these two options a chance:
    first: <Mapping Key="pdf" Value="icpdf.png" OpenControl="SharePoint.OpenDocuments"/>
    then: <Mapping Key="pdf" Value="icpdf.png" OpenControl="AdobeAcrobat.OpenDocuments"/>
    I modified DOCICON.XML on both hives 14 and 15.
    Remarks:
    - After changingparameters I allways did an IISreset.
    - As far as I understood I can only change bDisableSharePointFeatures on Client Side.
    Any help, suggestion, idea wellcome!
    Thanks!

    Hi folks, here's the reason for my problem. I used the oob search result web part. The result items (PDF items) are rendered by the template Item_PDF.html/Item_PDF.js. This template holds a code snippet that assigns a certain OpenControl to the PDF item - that's hard coded. So, no matter what you configure in DOCICON.XML, the PDF item will be opened with the control "PdfFile.OpenDocuments". Solution is e.g. just to leave the OpenControl blank.   
    template:
    /_catalogs/masterpage/Display Templates/Search/Item_PDF.html
    /_catalogs/masterpage/Display Templates/Search/Item_PDF.js
    code before:
    ctx.CurrentItem.csr_OpenControl = "PdfFile.OpenDocuments";
    code after:
    ctx.CurrentItem.csr_OpenControl = "";
    Enjoy
    Harry

  • Htmldb_application.g_excel_format for CSV download from Interactive Report

    I have an Interactive Report which I would like to modify so that it downloads to CSV different fields than it displays (some of the online displayed fields are hypertext links). In the past, dealing with "classic" APEX reports, I did this by defining 2 versions of the relevant fields, one for display and one for download. I then used a PLSQL condition checking htmldb_application.g_excel_format to determine which version of the field to use. I have tried this using the Interactive Report, and it does not work for me. I would greatly appreciate any help in resolving this issue. In both the online and downloaded version of the report, I am seeing the hypertext links.
    I am using APEX 3.1.1, running on Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options.

    Your CSV-File use "comma" as separator. But Excel think, that CSV-File separator is "semicolon".
    Try to set "CSV Separator"=";" in section "Report Attributes" - "Download".

  • Error opening PDF's from internet and from outlook 2010

    I am using Server 2012 R2 and receive an error when trying to open a PDF from Outlook 2010 or when I try to download a PDF and open it from the internet. However, if the PDF is one that opens inside the web browser, it works just fine. Using IE 11 The account does have access, i have also tried with a domain admin account. Lastly, i have tried to uninstall and re install with no luck. Any ideas?
    I receive:

    I have uninstalled Adobe Acrobat Reader DC and installed Adobe Reader XI and everything works fine. This will be our current fix until a solution is found for the above error

  • 4.0 PDF download in Interactive Reports

    Hi,
    I remember reading there would be enhanced PDF support in 4.0?
    Does anyone know what this was?
    Do we still have to setup FPS/BI Publisher to be able to download a report as a PDF?
    In a vanilla install of 4.0, I get an error downloading a pdf, I assume this is because I haven't setup FOPS yet?
    Thanks
    Richard

    You're in the wrong forum. This is the Oracle reports forum, try an APEX-related forum instead.

  • Cannot open PDFs downloaded from internet

    For past two months, many (but not all) PDFs cannot be opened after being saved. 
    The message is Adobe Reader could not open 'Worlds Most Competitive Cities IBM 2013.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 decoded).
    What is a fix that a layman can do?
    Jerry Hultin

    Hi
    A Mike M tipped me that this is a Safari problem.   He had me eliminate two
    Safari plug-ins related to Adobe.  The problem is fixed!
    Thanks for trying to help.
    Here's his full message:
    This is a Safari problem
    Go to: Mac HD/Library/Internet Plugins
    Trash the AdobePDFViewer.plugin and AdobePDFViewerNPAPI.plugin files
    Empty the Trash.
    Relaunch Safari and you can download PDFs with no errors.
    All the best,
    Jerry
    [ admin says: please don't post personal information on a public forum ]

  • PDF from Interactive Report - general question

    Hello,
    I read in another post that there may be plans to make it so that PDFs downloaded from an Interactive Report will include the formatting in the report. Is this true? If so, will it work with the Apache FOP?
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

    No Christina,
    First I went under report attributes on Interactive reports under download
    Download formats:
    CSV and PDF
    I checked both. CSV format is fine. PDF format is corrupt.
    Next I then went in using the below:
    http://www.oracle.com/technology/obe/apex/apex31nf/apex31rpt.htm
    It tells me I don't have a print server defined. I am trying to get the INLINE method to work.
    I see in the ADMIN there is a print server configuration section though it is not totally clear as I would think that you would get the default print configuration as you would with any other PDF docuement.

  • Download data from interactive report

    Hi all. I'm on apex 3.1.1.00.09.
    I have this problem: when I download data from interactive report I can download only in CSV and PDF. If I try to download into pdf it creates a file of only 1 KB.
    I would know if I must configure my apex in order to download correctly in pdf and if I must configure it in order to download in doc and xls format.
    Thanks all for collaboration,
    Fabrizio

    Thank you for your reply.
    I am able to download the csv file, but my problem is: I don't want the column headings to show.
    Is it possible to download only the data, not the column headings?

Maybe you are looking for

  • IPOD Nano + USB 2.0 card

    I got a iPOD Nano for my G4 Quicksilver Mac. OSX 10.4.8. Not happy with USB 1 for speed so I got a generic own store 'New Link USB 2.0' PCI card in Maplins... Suffice to say, it only works on some USB devices but at speeds of USB 1.1. BUT IT DOESN"T

  • How do I get HD quality video in final product

    I am using an HD video camera and shooting at 30fps.  Its a Canon Vixia HF R300. How can I produce a project in iMovie and burn in iDVD and still retain the HD quality.  I am finding that the final DVD in the player attached to my HD TV is showing to

  • SQL Developer 3.1: Job Chains - 2 Bugs.

    Hi. Just having a play with defining job chains in SQL Developer 3.1 and I came across these bugs... 1) When you try to define a new chain using SQL Developer you get, "ORA-01741: illegal zero-length identifier" If you look on the SQL tab you can see

  • JE Tax Group

    Hi In the Tax group I have C1, P1 and S1. This is the order as it display in Administration > Setup > Financial > Tax > Tax Group. I have defaulted tax group in G/L Account  Inventry to P1 ( Chart of Accounts >   Assests > Inventry > Account Details

  • Trex installation

    Hi All, I am Planning to install Trex and i am new to this.  We are running with JAVA + ABAP stack standalone box. We need to the installation in the same box, is it possible or not ? While starting the installation i am getting three types of option