Displaying 20 results from an estimated 1000 matches similar to: "pdf generators"
2006 Aug 10
4
Speeding up ActiveRecord creation?
My completely empty model (no validation callbacks etc etc) takes an
average of 0.05 seconds to create, at least according to
Benchmark.realtime{200.times{Message.create(:from =>
"me@here.com", :message_type => ''email'',
:subject => "hello", :body => "goodbye", :sent_at => Time.now)}}/200
That''s a little slower than
2006 Feb 03
6
Go back to previous action
Hello all!
I have two views (list_1 and list_2) that show a list of users in two
different ways. In the views for these actions there is a link to edit a
specific user properties (edit_user). That works fine, except that when
I change the user I want to go back to the view that originated the
request and not to the default list (list_1).
Can anyone help me?
Best regards,
Hugo
--
Posted via
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"})
2006 May 23
8
ad-hoc query
How do you run an ad-hoc query that does not belong in any model? I
thought it was something like ActiveRecord::connection.find("my
query..."), but I can''t seem to find the documentation on it. I know
I''ve seen it somewhere before, though.
thanks,
Jeff
--
Posted via http://www.ruby-forum.com/.
2006 Feb 16
5
Firefox and IE performance with Rails App
In my rails application, certain computers were having huge problems.
There were certain pages that were exceptionally slow, even to the point
of timing out. Other computers did not have a problem. I finally found
that Firefox was the difference. When using Firefox on those computers
it works fine. The slow pages were typically posting a form with a
couple hundred fields.
This behavior was
2006 Jun 01
8
[Pdf::Witer]
Is anyone using Pdf::Writer?
I don know how to insert html tags in a pdf using Pdf::Writer, except <b>
and <i>
I think an idea is with Pdf::TechBook but i hadn''t seen any example till
now.
--
Cheers,
ioana k&a
http://boulangerie.wordpress.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Apr 29
1
Warnings printed to console causes error if console closed on Linux
I had a statement that was generating a warning about parenthesise
argument for future version. The interesting thing was it would crash
the page with an input/output error on my production linux server, but
worked fine in webbrick/windows. I finally tracked it down to it crashed
when trying to print the warning to the console. If I kept the terminal
open that I started the server on it would
2006 Jun 12
2
Pdf::Witer question
Does anyone knows how to embed Type1 font with PDF::Writer? I read
manual, tried everything but nothing seems to work (The font ''FontName''
contains a bad /BBox error on PDF).
any help or hint would be really appreciated,
Bojan Mihelac
--
Bojan Mihelac
Informatika Mihelac, Bojan Mihelac s.p. | www.informatikamihelac.com
-> tools, scripts, tricks from our code lab:
2006 Jul 17
1
How to DRY up validates_presence_of
Given the case of validating the presence of an attribute and then
performing other tests on said attribute, how do you go about not having
to check for nil in the other tests?
Example:
validates_presence_of :start_date, :end_date
validate :validate_start_date_before_end_date
def validate_start_date_before_end_date
# without this check an exception will be thrown on access to the
2005 Dec 15
5
Avery Lables, PDF::Writer or LaTex?
In a new app we are developing, we need to be able to dynamically create
a PDF and send it to the browser (inline with send_data). I have been
tinkering with PDF::Writer and love the simplicity and native ruby-ness
of it all.
However, one of the main uses for this functionality is to output a PDF
of addresses to be printed on Avery 5161 labels. LaTex seems to be
suited well for this, but it
2006 Apr 20
1
has_many.count not accepting options hash
has_many.count does not seem to support an options hash like
ActiveRecord::Base.count does.
Example:
>> AcademicProgram.find(:first).course_requirements.count :conditions
=> "courses.name LIKE ''a%''", :include => :course
=> 40
>> ap.ap_requirements.count :conditions => "courses.name LIKE ''a%''",
:include =>
2006 Jan 03
2
Pdf::Writer ; page numbering, and table wrapping
Hey there,
I know this isn''t a pdf::writer list - If there''s a more appropriate
place for me to ask these questions I''d appreciate being set straight.
I''m having a couple of misunderstandings/isssues first with page numbers
and secondly with auto-wrapping of simple_table.
First
pdf.start_page_numbering(pdf.margin_x_middle,
pdf.absolute_bottom_margin, 9,
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
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 Jun 20
7
What is up with rubyforge?
Does anybody know when it will be back up?
<http://rubyforge.org/>
--
Posted via http://www.ruby-forum.com/.
2007 Feb 27
2
Creating a PDF on the fly
A friend and I are just in the process of trying to create PDFs on the
fly. This isn''t in itself too hard, but we have some repeating images
that are being put in over and over again. It''s increasing file size
too much unfortunately.
Does anyone know the best way to ensure file size is kept to a minimum
for this scenario? We know about linking to a URI, but the problem with
2006 Apr 30
82
Mongrel 3.15, Ubuntu and Park place (S3)
Hello. I installed under Ubuntu (Dapper) Park Place. I followed the
instructions given at the RedHanded site. I get the following mongrel
error when launching the application:
** Please login in with `admin'' and password `pass@word1''
** You should change the default password or delete the admin at
soonest chance!/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.5/lib/mongrel.rb:584:in
2005 Dec 15
3
Pdf::Writer and "Replacement Tags"
Having read over the ruby pdf generation (simple reporting) options, I
think Pdf::Writer will do just fine...
..if the following is possible
On page 13 of (the really expansive) ::Writer manual, Replacement Tags
are detailed.
Before I jump into this tomorrow, I''m hoping for some triage sage
advice.
Finally, the question : "Would utilizing Replacement Tags be a suitable
2006 Apr 08
76
MIT vs GPL vs LGPL for open source project
I intend to release a project I wrote with Rails.
What is the right licensing scheme for a web application (content
managing system) which could grow with plugins and add-ons ?
Personally, I would prefer the GPL but does that mean any add-on to the
CMS (like task management) will have to be GPL ?
If some people contribute to the code could it still be double-licenced
so that the people who
2006 Jul 06
6
Class variables in templates/layouts
I''m having problems with class variables.. I have a class:
class Content::ApplicantsController < ApplicationController
layout "mylayout"
@@tab = "mystring"
[... the rest is standard scaffold-created stuff ...]
and a layout (mylayout.rhtml):
[...]
<title><%= @@tab.capitalize %></title>
[...]
And I keep getting this error:
uninitialized