prawn Questions
1
Solved
When I try to insert an image (PNG at 72dpi) using Prawn, like this:
image "#{Rails.root}/public/images/pdf/logo.png"
Prawn inserts the image but scales it up by about 30% which makes it blurry ...
Uncertain asked 18/4, 2013 at 18:20
2
Solved
I need to add metadata to a PDF which I am creating using prawn. That meta-data will be extracted later by, probably, pdf-reader. This metadata will contain internal document numbers and other info...
Sheepshead asked 28/8, 2013 at 21:27
5
Solved
I need to be able to render some views as PDFs from a Rails 3 project. I've never before used PDF generation techniques with ruby/rails, so I researched a few popular approaches such as Prawn and P...
Leonorleonora asked 7/11, 2010 at 13:21
1
I have a pdf file. I want to rotate all of its pages 90 degrees to the right. How can I achieve this using Prawn gem? When I try to use an existing pdf as a template and try rotate on it, it does n...
2
Solved
I'm using ruby, prawn, and prawnto to dynamically generate pdf's containing text in other languages. I can't seem to get any text in languages with non-english characters to show up. It doesn't thr...
Brentbrenton asked 20/1, 2010 at 20:44
1
Solved
I'm using Prawn to generate a PDF document but getting the above error when trying to generate tables for items. Any idea on how to go about this?
app/models/storage_request.rb
class StorageReque...
Phlebotomize asked 10/6, 2013 at 9:42
3
Solved
I'm trying to use ruby to generate a PDF using Prawn on OS X. I have the following:
font 'Arial'
Arial is installed on my Mac. But when I try to generate the PDF, I get the following error:
Pra...
Schiffman asked 14/8, 2012 at 15:42
2
Can you tell me how to insert image which will be a link to for example page 20? I know how to make with normal text:
text "<link anchor='page20'>Go to page 20</link>", :inline_format=...
Lashoh asked 27/11, 2011 at 21:6
2
Solved
I am creating a pdf file in the latest version of the Prawn library (v1.0.1rc) in Rails (3.1.1) and when I run my code it generates the PDF into the root of the application.
I don't want this. I w...
Villalobos asked 28/12, 2011 at 16:10
3
Solved
I am trying to save multiple pngs in one pdf. I'm receiving the PNGs from an API Call to the Endicia Label Server, which is giving me a Base64 Encoded Image as response.
Based on this Question:
H...
Congratulation asked 26/2, 2013 at 3:57
2
Solved
I've been randomly trying fonts in Prawn, for Ruby.
For Example:
Times New Roman - Yes
Palatino Linotype - No
Is there a list of which fonts are available and which aren't?
Stacistacia asked 8/4, 2011 at 19:29
1
I'm trying to position some content vertically centered in a bounding_box. With a single text this is no problem:
bounding_box([0, bounds.top], :width => pdf.bounds.right, :height => pdf.bou...
Stocktaking asked 19/10, 2011 at 20:47
3
How to render prawn pdf as attachment in ActionMailer? I use delayed_job and don't understand, how could I render pdf-file in action mailer (not in controller). What format should I use?
Monmouth asked 27/2, 2012 at 15:55
1
Solved
I´m willing to use Gruff to render some graphics inside prawn documents.
I want to avoid the delay of writing images to the disk only for them to be read by Prawn.
Gruff offers the to_blob method...
3
How to create a multipage PDF in Rails representing one table of data (including column headers on each new page)? I've looked at many examples with wicked-pdf, pdfkit, and prawn but haven't seen a...
Woodsman asked 23/5, 2012 at 1:24
2
I am working with Prawn to generate a pdf, I have to insert an image in a cell of a table.
My code is like this:
image = "path to file"
subject = [["FORMATIVE I "," SUMATIVE ","GRAPH"],
[form...
1
Solved
So I am trying to embed a PNG image of canvas to PDF using Prawn gem. Base64 string is generated by using canvas' toDataURL() function. As the image is only needed in PDF I'm trying to avoid saving...
Carnegie asked 6/11, 2012 at 18:3
3
Solved
I'm trying to use rails 3.2 helpers inside a prawn class, but rails throws:
undefined method `number_with_precision' for #<QuotePdf:0x83d4188>
Prawn Class
class QuotePdf < Prawn::Docum...
Zodiac asked 14/3, 2012 at 19:32
1
Solved
I am trying to generate a simple table in ruby with prawn pdf.
I need some text in a cell to be bold, and some to be not bold. For example:
Now following some examples, I have the basic table re...
Dilemma asked 10/9, 2012 at 16:10
2
Solved
In my Rails application, I'm trying to attach the invoice to the email:
def invoice(invoice)
attachment :content_disposition => "attachment",
:body => InvoicePdf.new(invoice),
:content_ty...
Esse asked 6/9, 2012 at 7:14
3
Solved
I need a table where rows are actually 2 rows tables, a nested table that is..
How can I do that in prawn? Maybe I need an extension.. but which one?
Jabalpur asked 4/3, 2010 at 12:15
3
Solved
I'm trying to understand the Prawn pdf gem.
I was able to make it generate a pdf. Every gem in the gemfile included:
gem 'mysql', '~> 2.8.1'
gem 'prawn', '~> 0.12.0'
gem 'pdf-reader', '~>...
Cinchonism asked 3/9, 2011 at 10:40
1
Solved
I would like to create a prawn table where cell text is wrapped by words and not letters. I am already using shrink_to_fit, but it seems that prawn is wrapping based on letters. I would ideally wan...
1
Solved
I'm trying to overlay polygons on top of a grid of mono-spaced characters. In order to calculate the coordinates for the polygons I need to know how wide a single character is. How do you determine...
1
Solved
I've a problem for adding images into a PDF using Prawn as pdf generator. I'm trying to add image using the following code:
def header
text "something"
image "#{Prawn::DATADIR}/images/logo_small...
Sulfaguanidine asked 5/3, 2012 at 10:54
© 2022 - 2024 — McMap. All rights reserved.