Questions tagged [wicked-pdf]

Wicked PDF is a PDF generation plugin for Ruby on Rails using wkhtmltopdf to convert HTML to PDF.

Wicked PDF uses the shell utility wkhtmltopdf to serve a PDF file to a user from HTML. In other words, rather than dealing with a PDF generation DSL of some sort, you simply write an HTML view as you would normally, then let Wicked take care of the hard stuff.

(From wicked_pdf's README)

Resources

  1. Generating PDFs with wicked_pdf
579 questions
0
votes
2 answers

Obtain the response of the redirected page in PDF in Rails

I have a button in my app which redirects to a new window by clicking on it. Here is the jQuery code for it: jQ("#create_report").click(function() { if (jQ('#client_id').val() !== "" && jQ('#report_date').val() !== "") { …
Jimmy Thakkar
  • 549
  • 4
  • 19
0
votes
1 answer

generate outline (aka toc, aka bookmarks) using wicked_pdf on heroku

Has anyone had any luck getting outline generation to work with wicked_pdf on Heroku? I have no problems in dev mode (on windows!), but on Heroku I can't make outlines happen. I've tried explicit :outline => {:outline => true, :outline_level => 4}…
elc
  • 1,962
  • 20
  • 24
0
votes
1 answer

Append Rails partial to existing PDF

I have a rails project that I'm using wicked_pdf to generate PDFs from generated html and I'm appending a slick footer to each page of that pdf. A lot of these pages to pdfs are actually coming from parsed word .doc or .txt files and then I convert…
Sparkmasterflex
  • 1,837
  • 1
  • 20
  • 33
0
votes
1 answer

Better Page Breaks in Wicked_PDF for Rails

I was able to use the technique described here to get page breaks at certain points I wanted. However, I have a two column layout as follows:
David Savage
  • 1,562
  • 2
  • 18
  • 35
0
votes
1 answer

How generate pdf in rake task using cron job rails 3

Hi i am using rails 3 and wicked pdf gem to generate pdf in my controllers.But now i want to generate pdf in rake task which will run through cron jobs.After creating this PDF i will send it in email. this is my normal controller method to…
Kashiftufail
  • 10,815
  • 11
  • 45
  • 79
0
votes
1 answer

Jquery trigger when PDF file downloaded

I am using wicked_pdf plug-in for generating pdf. I am showing message and spinner when user click on pdf link and i want to hide that when pdf is generated and pushed to browser for download/show. I have added jquery code on body onload which will…
Sunny
  • 468
  • 6
  • 22
0
votes
2 answers

Need to fit images in one page in PDF exported using wicked_pdf

I am using wicked_pdf to generate PDF (landscape mode) in my Rails(3.0) application. Everything is working just fine with a small glitch. I have a looping of dynamic sized data (say comments and images) which are sequentially arranged.The images…
0
votes
1 answer

How to show dynamic maps in PDF using wicked_pdf

I want to show world region wise map inside my PDF document. I had generated map using some jquery library but not bale to export same map inside PDF document generated through wicked_pdf.
Sunny
  • 468
  • 6
  • 22
0
votes
1 answer

How to show map of world region with dynalic data in rails 3 app

I want to show world map with region wise data distribution in my application. what are different options available for this in rails application Example: say I have 3 region's A,B and C. Also there are total 20 users from which 10 users belongs …
Sunny
  • 468
  • 6
  • 22
0
votes
1 answer

pdf is not generated in production

right now i'm generate pdf using wkhtmltopdf gem.In development it is working fine. if i'm run my project in production i got this error.already i'm install these two gems "wkhtmltopdf" & "wkhtmltopdf_binary".please help me. RuntimeError (Failed to…
0
votes
2 answers

wicked_pdf handlebars/mustache support

I've used wicked_pdf with erb before, but I'm now wanting to use wicked_pdf leveraging handlebars as my template engine. Should that just work with wicked_pdf? I see questions with haml tags, so I'm assuming yes. Just wondering if anyone else has…
Daniel D
  • 3,637
  • 5
  • 36
  • 41
0
votes
1 answer

wicked_pdf - jquery css zeba style table body only (Rails 3.2.3) and where to place css/javascript files (public or app/assets)

This links to my previous question which was about styling a table with css. What I didn't add and realise now that this was an error is that when rendering the page as html some jquery is utilised. wicked_pdf / wkhtml - support for css tables using…
user1149642
  • 324
  • 7
  • 20
-1
votes
1 answer

While Converting pdf.erb file to pdf using wicked pdf in rails 4.2, custom fonts are not working?

I am converting the html to PDF using wicked PDF tool . in that conversion custom font is not working.
Kesavan
  • 1
  • 2
-1
votes
1 answer

Wkhtmltopdf libpng15.so error with Rails 6.1

I have recently upgraded my Rails application from 6.0 to 6.1 and after upgrading whenever I am trying to generate a PDF, I get this error: RuntimeError: Failed to execute: ["/opt/rubies/ruby-2.6.6/bin/wkhtmltopdf", "--orientation", "Landscape",…
Puneet Pandey
  • 541
  • 2
  • 6
  • 23
-1
votes
1 answer

How to render Google chart pdf file using wicked pdf rails 4?

Application setup is rails 4 & wicked pdf. how to render pie chart using google chart in my pdf file?
1 2 3
38
39