Hey,
I have put my site online and sometimes the site crashes when I want to
create a
pdf file. But when I reboot the server it works again.
It crashes on:
margin = PDF::Writer.cm2pts(1)
Or
pdf = PDF::Writer.prepress(:paper => “A4”, :orientation => :landscape,
:left_margin => margin, :right_margin => margin, :top_margin => 0,
:bottom_margin => 0)
Most of the time it is after the process:
I have a page with a list of users, I display the info from the database
(tables
users and clients) like for the clientname => Clientname: <%=
user.client.name %>
But in the early stages of the site some users didnt have clients, so I
got an
nil error on the page. After that i wanted to create a pdf (total
different
section on the site), and get the errors.
Anyone has any problem with this also?? And can help me??
Thanks in advance.
Nick