Displaying 20 results from an estimated 700 matches similar to: "use Prawn to generate pdf"
2010 Dec 01
1
Prawn : undefined method `make_table'
require ''prawn''
require ''prawn/core''
require ''prawn/layout''
Prawn::Document.new do |pdf|
subtable = pdf.make_table([[ "foo", "bar" ], [ "baz", "bax" ]],
:column_widths => [ 50, 50 ]) {
column(0).background_color = "808080"
cells.borders = []
2010 Mar 17
3
rails+prawnto: setting :type to :prawn in a #render_to_string call not working
Hello, my question is rails related though it is also somewhat
specific to the prawnto plugin (installed latest version as of
2010-03-15). I would ask on a prawnto forum/list if I knew where one
was.
Anyhow, I''m using rails 2.3.5 (with ruby 1.8.6 patchlevel 111) in an
app that is successfully using the prawnto gem (with the prawn gem
version 0.7.1). I''ve got a a
2009 Mar 23
6
PDFs prawn gem freeze into the app...
I was having great success with creating PDFs with prawn, I followed
Ryan Bates latest screencast. All good.
Trouble is when i come to deploy the app on my webhost I ran into
trouble.
Rails 2.3 app.
I did, "sudo rake gem unpack prawn" to freeze it in.
I put the app on my webhost but it won''t start, some error saying it
can''t find prawn.
Any ideas? (summary: works
2010 Jun 30
1
Prawn gem: How to create the .pdf from an *existing* file
Hi there,
Can anybody show me (maybe copy/paste a simple code example) how to
create the .pdf file from an existing (.xls) file, using the Prawn gem?
Basically, I''d need the command that takes an existing (.xls) file to
save it as a .pdf, afterwards.
(I''m asking because the Prawn documentation at
http://prawn.majesticseacreature.com/docs/ seems to be gone since quite
a while -
2011 Jan 12
1
gem and rails3: LoadError
Hi everybody,
I''m trying to use the prawn gem into a new rails3 application on debian.
What I did:
As root:
- install rubygems, from
http://rubyforge.org/frs/download.php/73882/rubygems-1.4.2.tgz
- gem install rails
- gem install prawn
- gem install pdf-reader
- gem list | grep prawn =>
prawn (0.8.4)
prawn-core (0.8.4)
prawn-layout (0.8.4)
2011 Jan 12
14
WickedPDF vs PDFKit vs. Prawn, etc.
Thoughts on using WickedPDF vs PDFKit vs. Prawn or others for developing
forms with dynamic content?
TIA,
Garrett Lancaster
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2008 May 30
0
Prawn (PDF in Ruby) BoF at RailsConf?
Hey folks,
Unfortunately I''m not at RailsConf but if there are enough people
interested in PDF generation in Ruby / Rails, please consider using
the BoF sessions or some other time to get together and share thoughts
about how PDF generation in Ruby can be better, and then have someone
post notes from your discussions to the Prawn mailing list[0].
There are already a bunch of folks
2011 Jan 13
1
10.04 Ubuntu
Hi, Chauk-Mean and all -
I have just ported everything to 10.04 ubuntu, and I am pleased to note that
I was able to use prepackaged stuff almost everywhere.
Yes, it was painful before I figured it out. :)
I used apt-get to install ruby-1.8.7, all the wx libraries (including the
dev header packages)
I uninstalled the debian rubygems package completely and installed
rubygems-1.4.1 from the
2009 Mar 26
0
Prawn + PrawnTo + Rails 2.3.2
Hi,
Have anyone made a successful usage of Rails 2.3.3 with PrawnTo and
Prawn ?
I followed all the tutorials I could find on Net, but I am not able to
see pdf part working.
I kept getting the error "Template is missing". I do have foo.pdf.prawn.
Same goes with pdf/writer as well.
Thank you.
Regards
Balaji D Loganathan
Spritle Software, http://www.spritle.com
--
Posted via
2009 Jun 13
3
How Can I insert another column data into the CSV file when I use FasterCSV?
Hi, All,
Suppose I have a CSV file, there is data in it.
* Column 1 Column2 Column 3 Column 4
Row1 a b c
Row2 a2 b2 c2*
You know, the column 4 is no data
Now, I would like to insert data to Column 4, after save, the CSV file will
be:
* Column 1
2008 Oct 26
3
Undefined method f_title
Hi,
This is my migration:
class CreateSampleForms < ActiveRecord::Migration
def self.add_data
SampleForm.create(:name => ''Default (Empty)'', :f_type => ''Default
(Empty)'', :description => ''Use this template to create a blank form.'')
end
def self.up
create_table :sample_forms do |t|
t.string :name, :null =>
2009 Sep 03
5
Rails 3.o
So...
"Beginning Rails 3" is supposedly due Sept 2009 http://www.apress.com/book/view/9781430224334
"Rails 3 in Action" is due February 2010 (est.) http://www.manning.com/katz/
... can we assume a beta release of Rails 3 is very close?
Would like to invest in Rails 3 :)
2009 Jun 10
5
uninitialized constant ActiveSupport::Cache (NameError)
Hi
After having updated some GEMS I get `load_missing_constant'':
uninitialized constant ActiveSupport::Cache (NameError) on starting
the server of a freshly generated rails project.
Before, I already had Rails 2.3.2 projects succesfully running, now
all of them generate this error.
These are my GEMS:
actionmailer (2.3.2, 2.2.2, 2.1.2, 2.1.1, 2.1.0)
actionpack (2.3.2, 2.2.2, 2.1.2,
2009 Jul 20
9
rake error
When I run rake test:units I get this error:
292 tests, 350 assertions, 2 failures, 13 errors
rake aborted!
Command failed with status (1): [/usr/local/bin/ruby -I"lib:test" "/
usr/loc...]
This error just showed up yesterday --- I have no idea how I caused
it. Here is my gem list in case that helps:
actionmailer (2.3.2, 2.2.2)
actionpack (2.3.2, 2.2.2)
activerecord (2.3.2, 2.2.2)
2011 Nov 02
3
form_for text_field
I have a form
... html .....
<% form_for @person do |f| %>
... html .....
<%= f.text_field :last_name %>
... html .....
<% end %>
When last_name field of @person doesn''t contains french special symbols
like ''é'', all characters are displayed in the input control
(f.text_field :last_name ).
Else only symbols before french special symbol are
2010 Sep 30
0
How to download Prawn pdf while using form submit?
submit.pdf.prawn files
pdf.text "successfully submitted"
form controller file
def index
@forms = Form.all
respond_to do |format|
format.html
end
end
def submit
respond_to do |format|
format.pdf {render }
end
end
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on
2008 Oct 17
0
Prawn 0.2.1, 0.2.2 (Fast, nimble PDF generator for Ruby)
Hi folks,
A new release of Prawn is out, with some bug fixes and a couple
backported features from edge.
This release is API-compatible with 0.2.0, so please do upgrade!
Release notes at:
http://blog.majesticseacreature.com/archives/2008.10/prawn_0_2_1-2.html
Enjoy!
-greg
--
Technical Blaag at: http://blog.majesticseacreature.com | Non-tech
stuff at: http://metametta.blogspot.com
2009 Jul 30
2
Can I turn off config.action_view.cache_template_loading in Production
I''ve got an app which users can edit the ERB templates for emails, the
changes aren''t taking effect till the app restarts though because
config.action_view.cache_template_loading = true
I''ve seen various comments that suggest it has to be true when in
Production for thread safety - is Rails actually running in a threaded
manner yet? Surely this is a none issue at the
2009 Aug 23
4
Routing problems for different formats
I am having 2 similar problems with routing.
1. With Rails if I make a js request using jQuery I always have to
append a ".js" extension to allow the request to be handled
appropriately. If I don''t append a js extension I get html formatted
data back. Using Merb this never happened and worked like I thought it
should.
2. Today I am having problems allowing xml requests to be
2012 May 22
4
Creating formatted PDFs
Hello,
I''m writing a mail-merge application with Ruby on Rails. I have one
user-created template, wich he creates with a CKEditor (in HTML). I have
a list of members, and in the "mailings" controller I mix the template
with the members data to create a PDF with a letter to every member.
This is all working correctly... Except one part: I don''t know how to
render