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
-1
votes
1 answer

Can't generate pdf with wicked_pdf in rails ,using search results

Hi everybody I'm trying to use wicked pdf in rails. Get a pdf based on the object generated by the query, @questions When downloading the pdf, the query data is lost. when I visit "/simulators.pdf" it shows me the following error in console Started…
Gerson
  • 3
  • 3
-1
votes
1 answer

Wicked PDF with password protection

Can anyone tell me that how to make password on wicked PDF before open? Or Is there any way to make wicked pdf password protective.
john s
  • 21
  • 3
-1
votes
1 answer

How to delete files after pdf window close: Rails 3, wicked_pdf

community! I have my Rails 3 app with a task to delete .png files, that are included in the .pdf file, after the rendered pdf window close.The pdf render code goes like this: <%= wicked_pdf_image_tag("/public/#{@current_user.username}/picture1.png")…
-1
votes
1 answer

How to move the body content of pdf report according to header height

I am having two plugins where one plugin is used for designing the headers and footers for the reports and another is for writing the body content of the pdf reports. When the height of the header increases or decreases the body content of the pdf…
sathyajith
  • 46
  • 1
  • 10
-1
votes
2 answers

How to hide links in a pdf generated using wicked_pdf

I have a pdf that is generated using the wicked_pdf gem. My problem is that i see the "download pdf" link in the pdf also. How to remove that link from the rendered pdf? I read about css media types but dont know how to implement that. can anyone…
mukesh
  • 127
  • 1
  • 9
-2
votes
1 answer

Using the same font size or width px in Wicked pdf shows differently in MAC and Ubuntu

I use wicked pdf for generating pdf in my ruby on rails project. I set CSS in the part in show.pdf.erb. I use the same font-size px for p or same width or height px, however, in Ubuntu system it's much bigger than in the Mac system. I set the same…
Ying
  • 299
  • 1
  • 5
  • 20
-2
votes
1 answer

How to remove bookmarks when using wicked_pdf gem in Ruby on Rails?

I am using Ruby 2.5.3p105 and Rails 5.2.0 . And gem 'wicked_pdf' 1.1.0 for pdf download. From below picture, on hover I am getting bar in the top which include several things like title, page no, rotate, download, print, and last one is bookmarks.…
Priyank Dey
  • 1,104
  • 1
  • 19
  • 43
-2
votes
1 answer

Rails activeadmin Export PDF

I'm helping a friend with a ruby on rails site. I'm really new at ruby on rails and the developer that developed the site is long. The app uses the activeadmin gem and currently there is a column in the documents section that supposedly exports the…
Carlos Sosa
  • 445
  • 1
  • 5
  • 19
-4
votes
1 answer

How to convert an image file to PDF using Wicked PDF?

Right now I am working on Rails 3 version. I want to convert an image file to PDF format. I am using the Wicked PDF gem, but it is not working. Please help me. How to do this?
chandrashekar
  • 609
  • 2
  • 7
  • 16
1 2 3
38
39