Announcement

Collapse
No announcement yet.

EXPORT to PDF Not working for me

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    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 ?

    Comment


    • #32
      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

      Any help would be highly appreciated.

      Comment


      • #33
        Hi,
        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)
        https://github.com/h4cc/wkhtmltopdf-...ree/master/bin
        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).
        Set 777 rights to this file.
        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

        Comment

        Working...
        X