wicked-pdf Questions
8
Solved
Gemfile
gem "wicked_pdf"
gem "wkhtmltopdf-binary"
the error:
RuntimeError in CarsController#show
Failed to execute:
/usr/bin/wkhtmltopdf --print-media-type -q - -
Error: PDF could not be gene...
Equal asked 24/12, 2011 at 20:0
3
In my generated pdf I get this
0,00 €
instead of
0,00 €
Application.html.erb
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
s...
Hysterectomy asked 22/4, 2014 at 21:58
4
This is what the documentation of wicked pdf specifies:
WickedPdf.new.pdf_from_string(
render_to_string(:pdf => "pdf_file.pdf", :template => 'templates/pdf.html.erb', :layout => 'pdfs/lay...
Trapeziform asked 12/4, 2013 at 13:5
1
With rails 5.2.4, I am trying to generate a pdf in the background (within a job) and then attach it to a model as:
pdf_contents = ApplicationController.render(
pdf: "name",
template: 'myt...
Ragtime asked 4/2, 2021 at 14:18
2
Solved
I installed wicked PDF and modified my controller :
def show
respond_to do |format|
format.pdf do
render :pdf => "file_name"
end
format.html
end
end
Here is how i link to the pdf : comp...
Dela asked 9/7, 2013 at 13:28
3
Solved
I try to convert rails views into pdf with the gem wicked_pdf.
But when I do a render_to_string like this
ActionController::Base.new.render_to_string(template: "templates/pdf_meteo.html.erb", loca...
Fauces asked 31/10, 2019 at 14:59
4
Solved
I want to generate a PDF with our department logo in it. When I try to use the WickedPdf class in my controller (using the method described at https://github.com/mileszs/wicked_pdf):
def some_acti...
Preamble asked 7/5, 2015 at 19:46
5
Solved
how do I get images of a product to show in pdf?
I have this code in view file
<div id="img-slide">
<% for asset in @car.assets %>
<%= image_tag(asset.asset.url(:medium)) %>
...
Electrokinetics asked 15/10, 2011 at 12:54
2
Solved
I have a long table which shows rows on several pages. When a page ends, the row is printed half on one page and half on the next page. How can I make sure that the rows is printed completely on th...
Glottochronology asked 21/3, 2016 at 11:2
4
Solved
I'm trying to generate emails with rendered PDF attachements using ActionMailer and wicked_pdf.
On my site, I'm using already both wicked_pdf and actionmailer separately. I can use wicked_pdf to ...
Olla asked 24/3, 2011 at 15:32
4
I'm using gem wiked_pdf in my Rails application that generates report.
But I'm having trouble fixing the breaking of data when having more that 1 page.
Please see image.
I tried many time to adj...
Elda asked 12/7, 2016 at 8:23
3
I am generating PDF files and my link look like this:
<%= link_to 'Invoice', display_invoice_path(invoice.id), :format => :pdf %>
When I click on this, it takes me to /display_invoice/1...
Benedicite asked 26/8, 2014 at 9:25
4
I cannot get wicked_pdf to display an image from active storage to a pdf file.
Do I use: wicked_pdf_image_tag or wicked_pdf_asset_base64 or just image_tag in the pdf template. Then do I give a rai...
Vesicle asked 6/6, 2018 at 13:14
1
I am stuck on the gem wicked_pdf.
I am generating a pdf report and I want to include stylesheets.
Stylesheets are generated through webpack with tailwindcss.
In wicked_pdf doc, it is said that...
Samarium asked 21/10, 2019 at 16:17
3
Solved
I've been working with wicked_pdf to generate some PDFs in Rails, and it's been working fine in my dev environment, but I get a 500 error (but no specific errors in my log) when I try and generate ...
Jeremiah asked 28/2, 2012 at 13:32
1
Solved
Im creating an API that should generate a PDF based on some information on the database.
When trying to call the action im getting an error:
ActionController::UnknownFormat (ActionController::U...
Crosspiece asked 18/2, 2019 at 19:56
3
I'm trying to generate a PDF report using the Wicked_pdf gem and Highcharts.
I've already tried to set animation, enableMouseTracking and shadow false.
But when wkhtmltopdf tries to generated the P...
Commonweal asked 22/1, 2013 at 23:39
1
I have installed wkhtmltopdf 0.12.3 (with patched qt) on my desktop machine and the exact same version on my Centos virtual machine.
I am using WickedPDF and Rails to convert HTML to PDF.
When th...
Missilery asked 15/2, 2016 at 17:5
2
Solved
I'm not sure what i'm missing, but my css doesn't seem to be working along side wicked_pdf. I have an image linked in my file, which works, but the styles are missing.
Gemfile
gem 'wicked_pdf'
ge...
Perspective asked 17/8, 2018 at 6:42
1
This is the result when i use Wicked_pdf to convert my html.erb page to pdf.
Problem: Seem table 's tr has been splitted into two pages.
What i tried without success:
Use page-break-inside as...
Cadge asked 20/2, 2017 at 10:6
2
Solved
I'm trying to email a .pdf in landscape format. I've been using the WickedPdf.new.pdf_from_string method to attempt to do this. Even though I specify landscape format, the emailed PDF is in portrai...
Hub asked 16/9, 2013 at 16:36
2
I am using wicked_pdf to generate pdfs. The problem i am facing is that, sometimes it displays the last row in the page across two pages. Is there a way to tell wicked_pdf to render the row in next...
Got asked 11/6, 2013 at 14:17
3
I am using two Gems to convert HTML to PDF.
Using "https://github.com/mileszs/wicked_pdf"
gem 'wicked_pdf'
gem "wkhtmltopdf-binary"
/initializer/wicked_pdf.rb
WickedPdf.config = {
exe_path =&...
Fairley asked 4/6, 2015 at 13:45
2
I user mac osx and try my html file to pdf file via wickedpdf. I want to put a string every page of my pdf file but I have a problem about header which is not rendering.
My wickedpdf method is,
f...
Swaim asked 14/1, 2013 at 11:56
6
Solved
I am using Ubuntu 11.04 to develop an app in Ruby on Rails.
In the app I need to generate pdf documents. So I am using
the wicked_pdf and wkhtmltopdf-binary gems.
In the development environment in...
Sheers asked 11/10, 2011 at 9:29
1 Next >
© 2022 - 2024 — McMap. All rights reserved.