wicked-pdf Questions
2
Solved
I have some complicated PDF generation logic that requires rendering a view outside of a controller and then passing the HTML into WickedPDF:
ActionView::Base.send(:define_method, :protect_against...
Old asked 30/1, 2017 at 21:14
1
Solved
I'm trying to create a pdf from a html page using wicked_pdf (version 1.1) and wkhtmltopdf-binary gems.
My html page contains a calendar emoji that displays well in the browser whatever font I use
...
Toile asked 10/1, 2017 at 13:40
1
Solved
I am using wicked_pdf for generating pdf from html on my rails project. It is rendering template but I could not manage to print header/footer sections. Below is my code that print only template se...
Desiraedesire asked 11/1, 2017 at 4:4
1
Is it possible to access the "topage" variable within the main content body?
I know you can do it in headers and footers but in this specific use case, I need to put a sentence within the body tha...
Berna asked 11/9, 2014 at 10:21
2
Solved
I have been using the Wicked PDF gem for generating pdfs. It has been working great.
However, I have run into a situation where a need to attach and have visible a large footer to the first page, ...
Guadalupe asked 2/9, 2016 at 18:31
2
Solved
Using both 0.79 and 0.7.2 the PDF generated looks slightly different than my original HTML. Adding the show_as_html flag presents it as expected however the inline-styles are being handled differen...
Killifish asked 17/8, 2012 at 16:32
2
I am using 'rails', '4.2.5' and wicked_pdf gem for generating and downloading PDF, but on Heroku, it's not including css using wicked_pdf_stylesheet_link_tag tag.
Heroku error log:
ActionView::Te...
Goldoni asked 7/2, 2016 at 9:23
3
Solved
I'm trying to use wicked_pdf on my prod server but it keeps failling :
RuntimeError (Failed to execute:
"/usr/bin/wkhtmltopdf" -q "file:////tmp/wicked_pdf20130709-23109-1adqx5g.html" "/tmp/wicked_...
Kampong asked 9/7, 2013 at 19:57
2
Solved
I'm trying to save pdf in model like this:
def save_invoice
pdf = WickedPdf.new.pdf_from_string(
render_to_string(:pdf => "invoice",:template => 'documents/show.pdf.erb')
)
save_path = R...
Responsory asked 30/7, 2014 at 8:37
3
I'm using wicked_pdf with rails 3.2.11 and ruby 1.9.3 to generate a PDF from HTML and deploying to Heroku.
My pdf.css.scss.erb:
<% app_fullhost = Constants["app_fullhost"] %>
@font-face {...
Shingle asked 6/2, 2013 at 16:47
1
For my rails 4 app i want to convert html and Css into a pdf file.
i use the wkhtmltopdf and wicked_pdf gem
if i use the wicked helper it doesn't show the css but it render only the text
in my con...
Glomerulus asked 8/12, 2014 at 21:57
2
I am trying to use a specific font in an HTML to PDF generated PDF file using wicked_pdf on a Rails 3 site. I have found other advice on here which I followed. The only thing that (mostly) worked f...
Conviction asked 19/1, 2014 at 19:41
4
Trying to use Wicked PDF.
I have this code in the controller
def pdf
pdf = WickedPdf.new.pdf_from_string(
render_to_string(
pdf: 'filename.pdf',
template: '/pages/poa.html.slim',
layout: '/...
Hypersthene asked 11/6, 2013 at 14:8
1
Rails 4
*Mac OSX 10.8.4*
I'm using the following Gem for wicked_pdf pdf generation:
gem 'wkhtmltopdf-binary'
gem 'wicked_pdf'
Rendering Views as pdfs works fine and Google displays it's PDF v...
Justificatory asked 2/9, 2013 at 6:13
2
Solved
I've got little problem with wicked_pdf footer render.
Here is my render method:
def invoice
render pdf: "#{@order.number}.pdf",
footer: { html: { template: "admin/orders/invoice_footer.html" }...
Raine asked 29/8, 2012 at 15:5
2
Solved
Right now I have :header => {:html => {:template => "layouts/pdf_header.html.erb"}} setting things up. Is there something I can pass in that will only show the header on the first page of ...
Decastere asked 14/11, 2012 at 17:8
1
Solved
In my invoice system, I want a backup function to download all invoices at once in one zip file.
This system is running on heroku - so it's only possible to save the pdfs temporary.
I've the rubyz...
Birddog asked 12/3, 2013 at 11:34
1
Solved
On a rails 3.2.18 application, with wicked_pdf (0.11.0) and wkhtmltopdf-binary (0.9.9.3) declared in the gem file, mime-types.rb was not amended to includeMime::Type.register "application/pdf", :pd...
Alphonse asked 18/10, 2014 at 12:0
3
Right Now i am using Rails 3.0.0.i already installed the gem wicked_pdf.Now to want to save the pdf file inside the public folder.please help me.
Scree asked 2/6, 2012 at 12:14
2
Right now I am working on rails 3.0.0. If I run my project in terminal, I get this warning. Please help me.
/usr/share/ruby-rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.0.0/lib/action_dispatch/http/...
Cheddar asked 8/6, 2012 at 7:3
4
When I generate a PDF with text containing characters such as é è à and so on I do get funny characters instead.
I know this must be related to encoding.
I did try force_encoding("UTF-8") on the...
Illinium asked 5/2, 2012 at 23:40
2
My controller:
def show
respond_to do |format|
format.pdf do
#render :pdf => "show",:template => "welcome/show",:footer => { :right => 'Page [page] of [topage]' })
#render :pdf =...
Gemini asked 15/4, 2014 at 7:26
2
Solved
In Rails3, I am using the WickedPDF gem to render a PDF format of one of my models. This is working fine: /invoices/123 returns HTML, /invoices/123.pdf downloads a PDF.
In my Invoice model, I am u...
Warlord asked 7/2, 2013 at 4:16
1
Solved
Environment:-
Ruby - 1.9.3 ,
Rails - 4.0.0
I am generating pdf using wicked_pdf gem.
For this, I used below code in my controller:-
respond_to do |format|
format.html
format.pdf do
render :pd...
Chaps asked 17/10, 2013 at 11:25
1
render :pdf => "file_name",
:layout => 'pdf.html.erb',
:template => 'transactions/show.pdf.erb',
:wkhtmltopdf => WICKED_PDF_BIN,
:show_as_html => true,
:layout => 'pdf.html....
Corum asked 17/7, 2012 at 19:55
© 2022 - 2024 — McMap. All rights reserved.