Pdf generation problem

Hello ,
I have a web application that turn on Websphere 6.1. Since I haven't migrate my windows server from 2000 to 2003, no problem appeared when I try to generate and display my pdf trought my web browser.
But since the migration , the pdf is not displyed in the web browser but i have a pop-up that explains me that the file could not be open by .. my pdf reader because the file seems to have a problem and it ask me if I want to download it , afterr the download the file can be open without any problem.
Any suggestion about this issue ?
Thanks a lot ...
Please find the extract of the code :
ReportExportControl exportControl = new ReportExportControl();
exportControl.setName("ExportControl");
exportControl.setExportAsAttachment(false);
ExportOptions exportOptions = new ExportOptions(); //Set export options and   format.
exportOptions.setExportFormatType(ReportExportFormat.PDF); //Set the format for the export options
exportControl.setExportOptions( exportOptions ); //set the exportOptions to the viewer
    //Obtain report source of the report that the exportControl will display.   
    Object reportSource = request.getSession().getAttribute("reportSource");
    exportControl.setReportSource(reportSource);
    //exportControl.setParameterFields(fields);
     exportControl.setEnableParameterPrompt(false);
     exportControl.setEnableLogonPrompt(false);
     exportControl.setOwnPage(true);
     exportControl.setOwnForm(true);
     if (request.getSession().getAttribute("refreshedExport") == null) {
          exportControl.refresh();
          request.getSession().setAttribute("refreshedExport", "true");
    exportControl.processHttpRequest(request, response, getServletConfig().getServletContext(), null);

You can find steps to resolve the issue on this document http://kb2.adobe.com/cps/328/328791.html.

Similar Messages

  • APEX 4.1 - APACHE FOP PDF generation problem.

    Hi all,
    I'm having problem with PDF generation using APACH FOP on OC4J.
    When I test my print server as described here:
    http://marcsewtz.blogspot.com/2008/06/heres-another-posting-on-pdf-printing.html
    everything works without problem. But when I upload my Layout to APEX and try to generate PDF from apex I'm getting error:
    oracle.xml.parser.v2.XMLParseException: Unexpected EOF.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
         at oracle.xml.parser.v2.XMLReader.popXMLReader(XMLReader.java:549)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1375)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:362)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:308)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:337)
         at oracle.xml.xslt.XSLProcessor.newXSLStylesheet(XSLProcessor.java:714)
         at oracle.xml.xslt.XSLStylesheet.<init>(XSLStylesheet.java:322)
         at oracle.xml.parser.v2.XSLStylesheet.<init>(XSLStylesheet.java:114)
         at apex_fop._jspService(_apex__fop.java:71)
         [SRC:/apex_fop.jsp:21]
    I could see similar post here:
    Handling Special characters in call to apex_util.download_print_document
    But it doesn't explain my case as it's crashing even when I generate empty pdf(no data so no special characters, only empty XML file with no data should be sent to print server)
    Is there any way to see what xml is sent do print server for processing? That could eventually show where is a problem.
    Palo

    My mistake, there was really an "&" character in my template. now when I replaced it with %26 it works.
    However I would be still interested if there is a way to see what data is APEX engine sending to print server cause it will help me to find this kind of errors.
    Palo

  • Help: PDF Generation Problems in Reports 3.0

    Hi Techies,
    We are generating PDFs from Oracle Reports 3.0
    The PDF generation is fine in some datbases.
    But in some database,when the records are more, during PDF
    generation, Dr.Watson error is encountered, saying access
    violation.
    Can any one please clarify whether the error is due to memory
    constraints on the system or if it has something to do with
    Oracle Reports setting, while generating PDFs.
    Do note that the reports are running fine, when the report has
    less number of records.
    Any suggestion/tip is awaited at the earliest.
    Thanks in advance,
    Geoff
    null

    Hi!
    Remove cache from output dir from time time.
    (i.e. from virtual dir where report server puts output)
    let me know ...
    later
    Geoff (guest) wrote:
    : Hi Techies,
    : We are generating PDFs from Oracle Reports 3.0
    : The PDF generation is fine in some datbases.
    : But in some database,when the records are more, during PDF
    : generation, Dr.Watson error is encountered, saying access
    : violation.
    : Can any one please clarify whether the error is due to memory
    : constraints on the system or if it has something to do with
    : Oracle Reports setting, while generating PDFs.
    : Do note that the reports are running fine, when the report has
    : less number of records.
    : Any suggestion/tip is awaited at the earliest.
    : Thanks in advance,
    : Geoff
    null

  • PDF Generation problems in Reports 3.0

    Hi,
    I am generating PDFs from Oracle Reports 3.0
    The PDF generation is fine in some datbases.
    But in some database,when the records are more, during PDF
    generation, Dr.Watson error is encountered, saying access
    violation.
    Can any one please clarify whether the error is due to memory
    constraints on the system or if it has something to do with
    Oracle Reports setting, while generating PDFs.
    Do note that the reports are running fine, when the report has
    less number of records.
    Any help in this matter is appreciated.
    Regards,
    PRAKASH
    null

    Hi!
    Remove cache from output dir from time time.
    (i.e. from virtual dir where report server puts output)
    let me know ...
    later
    Geoff (guest) wrote:
    : Hi Techies,
    : We are generating PDFs from Oracle Reports 3.0
    : The PDF generation is fine in some datbases.
    : But in some database,when the records are more, during PDF
    : generation, Dr.Watson error is encountered, saying access
    : violation.
    : Can any one please clarify whether the error is due to memory
    : constraints on the system or if it has something to do with
    : Oracle Reports setting, while generating PDFs.
    : Do note that the reports are running fine, when the report has
    : less number of records.
    : Any suggestion/tip is awaited at the earliest.
    : Thanks in advance,
    : Geoff
    null

  • Reports 6i Pdf generation problems

    Hi,
    I am using reports 6i with graphics. when I see the report inside the previewer the vertical tick marks on the X-axis appear fine, but when I generate to PDF the same tick marks appear inverted which can only be seen with the help of a mirror.
    I would appreciate any help.
    Paras

    Paras,
    Looks strange and interesting. Hope you have a mirror with you always now.
    Well. We have not come across this problem and not been able to reproduce also
    You can try generating to a eps file and convert it to PDF using Acrobat distiller and see how it comes out.
    You can log a TAR through Oracle metalink if you have a reproducible testcase
    Thanks
    The Oracle Reports team

  • RH PDF generation problems: wrong (A4) page size and Word 2013

    I am trying to generate a review PDF of a handful or topics. It generates, but first I get an error:
    (I have Word 2013 installed.)
    Then the PDF generates, but it is A4. I never use metric for anything, so where it is picking up A4 I can't imagine. I have all my PDF settings to letter. I checked Edit > Properties > PDF settings > Advanced settings, everything. It's all set correctly. Even all of my Word templates (which I am not using for this project anyway) are letter. Like I said: No metric pages or units of measure used ever. Not in Word, not in FrameMaker, not in Acrobat. Why does RoboHelp default to A4?
    And why does it not consider Word 2013 "newer" than Word 2000?

    Word 2013 is not supported by any version of Rh. The first part is correct so Rh throws the error message notwithstanding the second part is wrong.
    You haven't mentioned the version of Rh you are using (please see the forum sticky topics) but you might find you can right click Properties in the print layout and generate to Word there. Using that route you may find the answer to the A4 issue. I'm puzzled by that as normally Rh defaults to Letter.
    Are you using the PDF add-on or a full version of Acrobat, if the latter which one?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • PDF Generation has problems

    Hi there,
    Our company uses Colffusion to make PDFs for our client.
    Recently, the PDF generation is incredible instable, causing
    corrupt PDF files or performance issues.
    I found out, that the problem lies within the including some
    picture. This slows down almost everything or sometimes the
    generation does not happen at all.
    Is there a solution for this? Is there a hot fix for that?
    Thanks for your reply

    Try <cfreport> instead of <cfdocument> which give
    better results for these type of pdf conversion and image
    issues...

  • PDF generation : FileNotFoundException problem

    Hi all,
    I'm developing a dynamic PDF generation module in web application using iText framework. This module creates PDF on the server side then sends it to the client. Sometimes, Even though the PDF file is created on the hard disk, I got FileNotFoundException when calling the servlet that sends it.
    My program is very simple (no thread used) :
    1- The client calls enters some inputs,
    2 - The iText based class generates the PDF,
    3 - The PDF created is saved as an attribute in the client session (HttpSession).
    4 - The request is redirected to servlet that sends the PDF.
    What could be the problem ?
    thx,

    In fact, I don't know what you mean by:
    3 - The PDF created is saved as an attribute in the client session (HttpSession).What do you mean by this? Did you save the proprietry PDF object? Or the java.io.File object? If it is the PDF object, does its class implement java.io.Serializable?
    Um ... Here are some suggestions ...
    First of all, make sure that the file really exists there.
    Secondly, try to write a Java SE program to read the file using the absolute path you provided.
    Then, if the Java SE program works, I think the reason may be that you haven't closed the "OutputStream" which writes the PDF file, or the security settings of your JSPServer prevents you from getting the file.
    Asuka Kenji (UserID = 289)
    (Duke Dollar Hunting now ...)

  • Very slow PDF generation when conditional text is hidden in FM 9.0

    I am working on 96-page chapter of a larger book. A 7-page section of the chapter needs to be hidden until the next release, so I hid it with conditional text. After doing this, the "Save as PDF" printing process goes from taking 6-7 seconds to taking several minutes. If I unhide the conditional text in the same session, printing is very quick again.
    I have no problem generating very PDF files with the PDF printer in other applications (Word, PowerPoint). The issue is specific to FrameMaker and the use of conditional text. What might be causing this?
    I am using FrameMaker 9.0p255 and Distiller 9.0.
    - Chris

    Hi Jeff,
    These were good suggestions to try. Saving the document first has no effect on PDF generation.
    However, I did find that printing to the Adobe PDF printer remains fast when the conditional text is hidden. That's quite an interesting finding! I did also notice that these two methods of PDF generation aren't identical:
    "Save as PDF" opens an Adobe Distiller window, while printing to the Adobe PDF printer opens a different "Creating Adobe PDF" progress box (looks like it's from the printer driver itself).
    "Save as PDF" generates a 1188k PDF file, while printing to the Adobe PDF printer generates a 1049k PDF file.
    "Save as PDF" defaults to placing the PDF in FrameMaker's working directory, while printing to the Adobe PDF printer defaults to saving to the last place to saved a printed PDF file (awkward when working with multiple directories, as I often do).
    When I do a "Save as PDF", FrameMaker does still spool to the PDF printer. It is this spooling that takes a long time. Once spooling is complete, then the Distiller window opens and the PDF is created very quickly.
    I would still like to get "Save as PDF" working since it knows where to place the PDF file. No solution to the runtime yet, but at least there is progress...

  • PDF generation with FOP throws NPE

    Hi,
    Stack trace
    at oracle.xml.jaxp.JXTransformer.reportXSLException(JXTransformer.java:769)
    at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:342)
    I'm using standard Java 1.4 API calls to create a PDF document from a DOM with Apache FOP 0.20.5.
    The servlet is deployed to Oracle 10g Application Server 9.0.4.0.0. With Tomcat 4.1.30 the same code executes without exceptions
    Because I have to port our web application to Oracle for a new customer it is important for me to get this fixed soon.
    Thank you
    Eckard

    Light at the end of the tunnel: It seems to work when FO and PDF generation are separated. Until now the DOM was piped into FOP who internally created the FO from SAX events and then seems to parse it again to create PDF.
    I separated the two steps: There is no problem in FO generation, but due to a namespace problem subsequent parsing fails
    ("org.apache.fop.apps.FOPException: null:2:10 Root element is missing the namespace declaration: http://www.w3.org/1999/XSL/Format")
    Now the correct exception comes up. Whether FOP SAX event listener is buggy or XML parser's error handling has a problem, I don't know
    Thank you anyway
    Eckard

  • CFDOCUMENT PDF generation peformance on Linux running CF server 8 or 9 is horrible

    Can anyone help me understand how I can get the <cfdocument> tag to generate PDFs in reasonable time (and without throwing timeout errors) when running on CF 8 on Linux? Running on CF 9 doesn't make a difference, either. I can run the same code that generates a PDF on a Win 7 system and it completes the 1-2 page PDF in seconds.  Do the same thing in CF8/9 on Linux and it takes so long (minutes) and then throws a timeout error. When we tried using Railo instead of CF8/9 it ran fine as well.

    Our apps guy figured out the problem after googling the error log message. To put this in context, the deployed app is running in a Tomcat container on Linux.
    The root cause is Java's AWT thinking there should be an Xserver available to talk to.  Somehow in the code interactions during the PDF generation,  calls are made to an Xserver that doesn't exist, with an absurdly long  timeout.  Adding the line "-Djava.awt.headless=true" to the catalina.sh  script has solved the issue.
    Hope this helps others!
    Tea man

  • BI 7.0 Web PDF Generation

    Hi folks,
    I do have a severe problem with PDF generation and it looks like a common issue.
    I integrated Button to convert my Management Webreport to PDF, no big issue so far.
    But the generated PDF is not bevaing like expected. We do have a BI report that contains 3 charts horizontally alligned by a table to fit the screen and 1 table below
    those charts.
    This report fits perfectly on one page landscape.
    When generating PDF locally (PDF generator installed on client PC) Internetexplorer ==>PDF works as expected.
    When using the Button in Webtemplate to use the BI functionality to export to PDF the PDF is a mess.
    All template items are displayed in sequence taht means instead of 3 horizontal charts I see 3 charts and 1 table underneath each other.
    It looks like the old fashioned 3.x print function.
    My question:
    Is there a way to influence the PDF generation. Maybe a class ( like former 3.x  Table Interface) to modify to render the PDF like the template appearance?
    We cannot install PDF clients locally nor can we ship management those reports coming from BI. Report designer is no alternative because of missing functionality.
    TIA
    Joerg

    Thanks so far,
    currently when using the container item and referring by command wizard ( export to PDF) the system is not generating any item.
    Error Message 'file has no page and can't be opened...' occurs.
    I think this is a really urgent Development issue because I think printing via PDF is getting more and more important since not everyone is using IE7 ( which is not fully supported by SAP either) to scale pages for printing.
    Best regards
    Joerg

  • Pdf opening problem ?

    Hi,
    I am generating pdf output type reports with Oracle Reports .
    I am getting problem while trying to open the pdf file.
    My Problem is " There was an error opening this document.
    The file is damaged and could not be repaired ".
    Why i am getting this kind of problem ?
    If i see the size of pdf , it is showing 1456kb.
    Any thing wrong at the time of pdf generation ?
    How many number of pages of report pdf supports ?
    In my database i have 55 thousand records for this report.
    Is this the problem with more no.of records showing in the same pdf file ?
    Is there any limitation to show the no.of records in oracle reports ?
    Thanx for help .
    Srini

    We have been experiencing a similar problem. In our case the reports do not have any graphics of any kind in them. But the problem occurs when using report servlets to serve the report back to the client and the PDF file is greater than 35M in size. For us, the reports jserv actually dies with a JNI panic while the client tries to download the pdf file to their machine for display. The problem does not appear if you serv the report via cgi. The only solution that I have been able to do is to have the user re-run the report with a smaller dataset so that the output pdf file size will be smaller.
    Our setup: 9iAS 10222 Patch 10
    reports served via servlet
    all report output is PDF

  • Pdf generating problem ?

    Hi,
    I am generating pdf output type reports with Oracle Reports .
    I am getting problem while trying to open the pdf file.
    My Problem is " There was an error opening this document.
    The file is damaged and could not be repaired ".
    Why i am getting this kind of problem ?
    If i see the size of pdf , it is showing 1456kb.
    Any thing wrong at the time of pdf generation ?
    How many number of pages of report pdf supports ?
    In my database i have 55 thousand records for this report.
    Is this the problem with more no.of records showing in the same pdf file ?
    Is there any limitation to show the no.of records in oracle reports ?
    Thanx for help .
    Srini

    You should make sure that you are on the latest patch set (patch 10 from metalink). If this still reproduces then I would suggest you contact Oracle Support and work through the issue with them
    Regards,
    Danny

  • Truncation in PDF generation

    PDF generation via iBots produces only the first 8 pages. Last 4 pages are missing. At the end, it says 'Records 1 - 250'. This problem is not there when I generate pdf from Answers directly. Any clues as to where I should be looking?
    Best Regards,
    Dinesh.

    Hi Dinesh,
    I suspect that the <DefaultRowsDisplayedInDelivery> tag in the instanceconfig.xml got reverted or, is set to 250. Please review Note 530222.1 in MOS for more information on how to modifiy the value.
    Regards,
    Jeff

Maybe you are looking for