I have this strange newbie problem with pdf::Writer in Ruby on rails. (MacOSX, MAMP, Locomotive, TExtmate)
I took the first example out of the article, and it does actually saves the file, but... NOT to the desktop, but to the railsrootdirectory. Whatever I try, I can't get it to download it to the desktop, and I cannot find an explanation how to get the files there. Without it, the whole idea of pdf::writer seems a bit lost to me. Could someone help me out here? Many thanks inb advance. Rudi
I am new to ruby and right now I am trying to do an export of a HTML table to a pdf file.
Firstly, I have a dynamic data in the table whereby user needs to select different drop down lists and send the values to the back end to query the database and display the result. I am using ajax to do this.
However, I still don't know how to create a pdf file of a HTML table.
For some reason I haven't figured out yet, the dump formats differ when dumping from the console and from within my rails app. I did the dump from my rails app and used that as my template and now all is working as it should.
Thanks for making such a useful PDF tool for ruby.
hi everyone, I used the pdf ::writter , it's very good . but I want to create the pdf page basing on the rhtml page that what's I don't know how because I don't want to recreate the queries and all the tests that I used to get the .rhtml page. what I want really is that I can from my page.rhtml and with cliking on the link pdf ,generate a pdf pge that contain the same information as the.rhtml can u help thanks
i have a weird PDF generation, i have to make a report and to do it i create various dinamic tables, but when i create the pdf in the first page tables apear normal, on the second apears the heading of column and in the next pages one column per page (the name of the column) after all column names apear the tables go normal and no more column names apear....
can anyone help im cainda new on ruby and this its driving me crazy