EXPORT to PDF Not working for me

please also check, if you have the correct PHP version. 5.3 is needed …

Hi again
Still no improvement with the export to PDF. (The requested URL /pgh/_lib/tmp/sc_pdf_20130404105641_183_grid_tblCourse.pdf was not found on this server.)

Does anyone know about the wkhtnltopdf script; isn’t it suppose to be installed on the server (to /usr/local/bin ), if so how does it get installed when we just upload our apps and _lib files. Everything works fine on my WAMP setup on my development machine.

I find it hard to believe that nobody at Scriptcase can fix this problem.

I also find that Scriptcase has removed the (use old PDF exporter (yes/no) checkbox) in the application/settings screen of a grid in v7.00.0006 why is this.

Don

Hello,

Are you able to generate PDFs from DEVELOPMENT environment? What PHP version are you working with?

regards,
Bernhard Bernsmann

Hi
yes the development environment will generate PDF’s fine and PHP ver 5.3 on dev and production.

Don

Hello Don,

As it seems to be something missing from your prod environment, please contact our support regarding this issue. Our chat is active on workdays from 8:00am to 6:00pm (GMT -3), and our ticket system is always available.

regards,
Bernhard Bernsmann

any news for this problem i have same bug

It works for me. Just apply 0777 CHMOD to the files inside in _lib/prod/third/wkhtmltopdf/

Hi all,

I have the same problem on exporting PDF from long time and I’m waiting urgently a fixing of it.
Is there some news ??

Another problem is about also the XLS exporting becouse standard hosting server do not have PHP ZIP extension activated. If you want it you have to personalized the server and so the service price rise a lot.
Is there any workaround for that. Why it needs ZIP extension . Is it not possible to export it as XLS directly ?

this problem is never sloved!

I found a solution that worked for me. I was getting the same error on my development server. My development server is running a clean install of Ubuntu 12.04.2 server and ScriptCase 7.1.0008. When I ran wkhtmltopdf from the command line, I got an error that libfontconfig.so.1 could not be found. After installing the missing library, problem solved. Type the following line to install libfontconfig.

sudo apt-get install libfontconfig1

Hi Cristalink,
I’m really happy that you find out the solution.
The only problem I have is that the server is hosted and so I can’t do nothing over it.
In your opinion is not possible that SC embed or make something to avoid this problem ?

I am currently using scriptcase 9.1.001, I have the same issue. The PDF is getting generated properly in my Development Environment. I use MySQL as the database. The problem is in Production. When I export the Grid to Excel it works perfectly in Production. However if I export to PDF, then I am getting the message unable to open PDF as the file size is Zero. Also when I click View PDF I am getting the following Error
The requested URL /home/_lib/tmp/sc_pdf_20180515015554_360_non_member_ledger.pdf was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I have made sure the following

My Production Environment is updated with proper tmp folder and also PDF Server IP is properly set to my shared hosting IP (I tried with IP as well as hostname both does not work)
My /home/lib/tmp folder has 777 permission
My /home/lib/prod/third/wkhtml2pdf has 777 permission

I don’t know what else to do :frowning:

Any help would be highly appreciated.

[SIZE=15px]Hi,[/SIZE]
[SIZE=15px]Finally it is working now. This is what I have done. I had copied the Binary from the below location (my hosting is in CentOS 6, so you may want to go to appropriate OS folder)[/SIZE]
[SIZE=15px]https://github.com/h4cc/wkhtmltopdf-amd64/tree/master/bin[/SIZE]
[SIZE=15px]This came as .dmg file. I have renamed the existing file under /public_html/home/_lib/prod/third/wkhtmltopdf/linux-amd64 folder and then copied this file and removed the .dmg extension (by renaming). [/SIZE]
[SIZE=15px]Set 777 rights to this file.[/SIZE]
[SIZE=15px]Now PDF is getting generated perfectly :). Thank you very much for all your help. I would not have nailed down without your hints / help. Appreciate your time. A Big THANK U[/SIZE]