Displaying 20 results from an estimated 6000 matches similar to: "pdf-writer - SimpleTable - change font betweent columns"
2006 Mar 10
5
PDF::Writer Simpletable Iteration
Hello All:
I have been working with <a
href="http://ruby-pdf.rubyforge.org/pdf-writer/index.html">Austin
Ziegler''s PDF::Writer</a> as a means to produce PDF documents from my
Rails app. I am stumped on how to iterate through a collection of items
and output them in a table format. The way I have tried it so far only
returns the last item in the collection -
2006 Jun 19
1
pdf simpletable help needed
i am trying to generate a pdf of all of the users in an application that
i have built. i am still pretty new to ruby and rails so i don''t know
the best way to go about it.
here is my controller code:
require ''pdf/writer''
require ''pdf/simpletable''
class ReportsController < ApplicationController
def test
_pdf = PDF::Writer.new
table =
2006 Jan 24
4
PDF::SimpleTable performance issues
Hello,
I am having performance issues ending with a ''time out'' from Apache when
I try to generate a PDF file using pdf-writer.
It seems to happen at the render_on(pdf) function call ; the table I am
trying to draw has 8 colums which values are generated on the fly.
Can''t find anything about pdf-writer and the ''time out'' on the Web so
far.
Any
2006 May 05
8
pdf/writer: table.render_on best practices?
Hi All,
I generate a pdf report that contains a table. The report is 14 pages, and
it takes 20s to be rendered. Most of these 20s are spend in the render_on
method. I wonder if it is possible to speed up that process?
To create the report, I do the following:
1) Setup pdf layout:
# Setup pdf layout
pdf.select_font("Helvetica", { :encoding => "WinAnsiEncoding"})
2007 Dec 21
0
pretty neat Mash class (Magic Hash)
class Mash < Hash
def method_missing(name, value=nil)
key = name.to_s.sub(/[=?!]$/,'''').to_sym
self[key] = value if name.to_s[-1,1] == "="
self[key] = Mash.new unless self[key] || value
return self[key]
end
end
Its like OpenStruct...so what can you do?
require ''pp''
m = Mash.new
m.first_name = "john"
m.last_name =
2006 May 24
4
pdf on the fly
In my rails app I need to create pdf reports on the fly. I have
installed railspdf, wich is working fine. But, how can I create tables
and paragraphs and stuff? Can I mimic an .rhtml file (using <% for
...%> etc? Or is it wise to use Ruby::PDF directly? Is there anyone out
there with experience in this, and who is willing to share his findings?
Thx
--
Posted via
2007 Sep 18
3
html to pdf in rails
I''ve been searching for a way to easily convert an html page into a pdf
in my rails app and I haven''t found anything worth calling home about.
Has anyone found something good out there?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Nov 04
0
UTF-8 String to PDF using PDF::Writer
Hi
I just can''t seem to figure this out.
I know that PDF doesn''t support UTF-8 so I''m trying to use Iconv to
convert the string from UTF-8 to MacRoman (or anything that will
work). This doesn''t seem to be working though. Is there a better/
correct way to do this? The sting is stored as UTF-8 in MySQL and
displays properly on the web (<?xml
2006 Jun 13
2
Top margin on PDF generated with PDF::Writer
Hi,
A little question. I''ve written a method that uses PDF::Writer to
generate a PDF document with some images and text. This is the code on
my controller:
def pdf
gen_pdf
redirect_to("#{@request.relative_url_root}/pdf/cupones.pdf")
end
private
def gen_pdf
pdf = PDF::Writer.new(:paper => "A4")
pdf.margins_cm(0)
pdf.start_columns(2, 0)
pdf.select_font
2006 Aug 02
1
PDF::Writer using rpdf templates..
I''ve been implementing this:
http://wiki.rubyonrails.org/rails/pages/HowtoGeneratePDFs
[PDF::Writer section on using rpdf templates]
Strangest thing tho is that it doesn''t work with IE [get a ''server not
found'' error] - after reviewing the headers and such, I noticed that
there was no file name for the generated PDF in IE - so I made sure that
this was in
2006 Aug 16
1
pdf::writer
I am trying to use an OCRB font in pdf::writer. So, I managed to install
the font on a debian linux. The first line in OCR font is appearing on
the pdf, but I get an error-message: "The font ''OCRBLT'' contains a bad
/BBox".
Someone ever had this problem?
--
Posted via http://www.ruby-forum.com/.
2006 Jun 19
0
PDF::Writer VS Ruby FPDF
Hi list,
I see almost all people here uses PDF::Writer for generating pdf
documents with rails. I used it too at first, but am using both now and
would like to see some advantages and shortfalls you came using each of
these two packages. Here are my thoughts for now:
PDF::Writer:
- extensive documentation
- writen using ruby conventions
- easy to use
- some bugs with embeding fonts prevent
2006 Jun 30
1
How to force redirection after a render on PDF::Writer?
Hi to everyone,
In my Rails experimenting, I''ve come to a point where in the application
happens what follows.
1. Upon selecting some stuff on a page, the user click on a button.
2. After clicking I need to:
2.1 Produce a PDF with some "Pretty Useful Information(TM)"
2.2 Bring the user to another page
The PDF being produced with PDF::Writer requires a "render"
2006 May 12
1
converting pdf files to openoffice writer files
hey friends,
I can export the openoffice writer files to pdf but how do I convert the pdf
files to openoffice writer files. Is there any utility on centos or on linux
which can convert pdf to openoffice files.
I am using centos4.0
Thanks & Regards
Ankush Grover
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Sep 25
0
RMagick and pdf:writer
hi everyone,
I wanna know if I use i = Magick::ImageList.new("Button_A.gif",
"Cheetah.jpg"),
can this function return a i as an image
if not I wish that u helpme to find something that I can do to collect
many pics in one pics so I can list it in pdf by pdf.image i
because when I use pdf.image.(every pics), it''s put every pics in a line
and this isn''t my goal
2009 Jun 13
0
pdf-writer :landscape and :portrait
I can define orientation easily with pdf writer with :orientation, but
all the pages get the same orientation
I want to do a page as portrait and the next as landscape, without
specific order
Is it possible?
Regards
Celso Costa
2008 Apr 09
0
PDF::Writer add_text_wrap
Wondering if anyone else had problems with the add_text_wrap of the
pdf-writer gem? I have something that looks like the following below,
but it does not wrap down to the next line, it just either runs off
the page or stops before the page, depending on the width of the
text_wrap. Anyone have any ideas?
@additional_items = @user.additional_items
pdf.add_text_wrap(310, 605, 300, @additional_items,
2006 Sep 11
0
Print action to send body content to pdf-writer , which stra
I would like to give the user to execute an :action => ''print'' to get
a pdf version of the current content in the displayed page (rendered by
an :action =>''list''
I installed pdf-writer and played with it, but I don''t know how to give
him the @content he needs...
shoudl I re-execute all the list action before rendering ?
or use Ajax to get
2008 Jan 13
0
Help with special characters in PDF Writer
How can I put these (á,é,í,ó,ú,ñ,) in PDF Writer?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email
2006 Jan 02
3
Pdf::Writer and #image
Greetings all - happy new year,
I''m having problems getting Pdf::Writer image insertion.
pdf.image "/path/to/images/logo.jpg"
is firing "JPEG marker not found!"
Originally created the RGB (8 bit) JPEG in photoshop. After the above,
I''ve exported with an alternate tool using (OSX) preview.
This tutorial