Cannot view PDF file generated from Grid Application

When I clicked the PDF button from the grid application, it seemed that the pdf file is generated and allow me to view or download the pdf file. However, when I click the view button, PDf file cannot be viewed or downloaded.

I have two sites to test this situation, one of the site is ok — it works perfectly.
However, there is problem in another site. In this “problem site”, pdf file can be generated from the other php program. I found that the pdf file generated in /_lib/temp/ is with size =0.

Can anyone tell me it there any setting is required for the “problem site”?

Thanks!

Re: Cannot view PDF file generated from Grid Application

You need to install the java jre 1.6 to view the PDF file.

Re: Cannot view PDF file generated from Grid Application

Hi, Max,

Thanks for your reply.

Do you mean I have to install jre 1.6 on that server?

I found that the pdf file generated in /_lib/tmp/ is with size=0. Is this implies that the server cannot create the correct pdf file?

Re: Cannot view PDF file generated from Grid Application

yes you need to install in your server.

Re: Cannot view PDF file generated from Grid Application

Thanks a lot.

Re: Cannot view PDF file generated from Grid Application

Hello,

when generating an pdf-output depending on a grid-application I got the error, that the pdf-file could not be opened. The output file is corrupted and could not be repaired.

In the log of Apache I found the following:

[Tue Feb 14 21:28:32 2012] [error] [client 172.162.143.24] PHP Notice: Undefined variable: int_step in /var/www/scriptcase/app/Maengelbuch/grid_allgemeinemaengel/grid_allgemeinemaengel_gauge_ctrl.php on line 76, referer: http://appserver/scriptcase/app/Maengelbuch/grid_allgemeinemaengel/grid_allgemeinemaengel_iframe.php?scsess=bvm5cntkiv319g83e2mc8d0ro7&str_tmp=/scriptcase/tmp&str_prod=/scriptcase/prod&str_btn=Scriptcase5_Silver/Scriptcase5_Silver.css&str_lang=de&str_schema=ScriptCase5_Silver/ScriptCase5_Silver&script_case_init=489&script_case_session=bvm5cntkiv319g83e2mc8d0ro7&pbfile=%2Fvar%2Fwww%2Fscriptcase%2Ftmp%2Fsc_pb_bvm5cntkiv319g83e2mc8d0ro7.tmp&jspath=%2Fscriptcase%2Fprod%2Flib%2Fjs&sc_apbgcol=%2Fvar%2Fwww%2Fscriptcase%2Fapp%2FMaengelbuch%2F_lib%2Fcss%2F&sc_tp_pdf=cor&sc_parms_pdf=%20800%20A4%20-orientation%20LANDSCAPE&sc_graf_pdf=2
Exception in thread “main” java.lang.NullPointerException
at org.zefer.pd4ml.PD4ML.o00000(Unknown Source)
at org.zefer.pd4ml.PD4ML.render(Unknown Source)
at Pd4Php.generatePDF(Pd4Php.java:195)
at Pd4Php.main(Pd4Php.java:124)

My Production environment: SC 6.0.0002 / Debian 6.02 / PHP 5.3.3.7+squeeze 8 / Sun JAVA 1.6_026-b3

Can anyone help me?

Hans