Displaying 20 results from an estimated 1000 matches similar to: "Pdf::Writer and #image"
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 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,
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 May 17
10
HABTM << producing incorrect insert sql ?
Greetings railsers -
I''m trying to add to a collection through HABTM, but the sql
insert is trying to insert a PK rather than letting mysql produce the
auto_increment''ed PK.
## @medication_dose holds a validated, saved model
@medication_dose.medication_frequencies << MedicationFrequency.find
(:all)
The above bails with,
Mysql::Error: #23000Duplicate
2006 Apr 25
5
Rails using Ruby that ships with RHEL 4
Hi,
RHEL 4 ships with Ruby 1.8.1. I take it that won''t work with Rails 1.1.2?
Thanks,
Joe
2006 May 06
3
[BUMP] conditional require? conditional action code?
Greetings all.
I have some controller code that uses win32ole (only available on
windows). This code is now solid, and I''d now like to resume
development on (any) other OS(grin).
But alas, the controller bails because the OS specific library can''t
be found.
Can I conditionally specify action code compilation (and a require
''win32ole'') based on OS or
2007 Feb 02
7
Coming Soon...
Dear spec''ers,
As many of you already know, we''re gearing up for a pretty big 0.8
release of RSpec in the next couple of weeks. I''m writing in advance
because I want to give you a heads up about upcoming changes and how
they may impact your existing specs.
Two important things to note first:
1. We will provide a translator that you''ll be able to use to
2006 Aug 16
14
Migrations: only one table per migration file?
Hi all
I have a new migration file created that adds some tables and fills one
with some data:
create_table :sound_styles do |t|
t.column :name, :string, :null => false
end
create_table :show_types do |t|
t.column :name, :string, :null => false
end
create_table :countries do |t|
t.column :name, :string, :null => false
end
ActionView::Helpers::FormOptionsHelper::COUNTRIES.each
2007 Mar 12
2
utc
I''m having a helluva time getting Date.today.utc to resolve -
"undefined method `utc'' for #<Date: 4908343/2,0,2299161>"
model usage in before_create filter is :
activated_at = Date.today.utc
I''m not stubbing out Date (should I be? [ stub(Date, :utc =>
Date.today) didn''t help any ].
The before filter is working fine within the app, but
2007 Feb 07
11
Running patched rails
Hi,
Does anyone have any tips for running a patched version of rails? I am
currently running rails 1.2.2 and would like to keep up to date with any
future releases. I also want to run with the following patch:
http://dev.rubyonrails.org/ticket/5748
I am unsure how to manage this. Is this something SVN or rake can
handle?
Any tips/pointers would be very much appreciated.
Thanks,
GiantCranes
2007 Jan 24
2
hello! first post + context_setup
Greetings all.
I''m looking over a ''greenfield'' pasture, and enjoying the TDD(BDD)
process of creation.
I''m currently rspec''ing a finite state machine
(acts_as_state_machine). As such, I need to persist the model through
''specifies'' within the context - from top to bottom.
I have bumped into a couple of probs:
1. context_setup
2006 Dec 26
15
is there a way to not repeat installing plugins?
i seem to be using the same plugins for all my sites and was wondering
if there is a way to make the process easier and faster?
is this what is called by "packing your own gems"?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2006 Aug 17
3
Migrations for migrating data across databases - is it possible?
Hi All
I am trying to understand if I can use migrations to migrate data under the
following conditions
1. Across 2 different databases (Oracle/DB2) with same schemas.
2. Across 2 different databases (Oracle/DB2) with different schemas.
I am trying to avoid writing DBI/OCI8 scripts.
Can somone please shed some light if this is even possible?
thanks
-daya
-------------- next part
2006 Dec 08
9
How to update partial attributes of a object from a form?
I have a user table, and it has forty columns, including name, gender,
address, email, phone...
So my @user object will have forty attributes.
I divide these attributes into 4 groups... namely ''general info'',
''personal info'', ''contact info''... and I make separate forms to edit
these 4 different group attributes.
The problem is when I update
2006 Jul 04
3
Engine Not Starting
I''ve used login_engine successfully before with webrick, and now using a
provider that uses fcgi. login_engine doesn''t seem to start up, in the
development log file, I get only routing errors for the page requested.
The login_engine unit tests pass fine.
My question is if an engine is not loaded, not in a path, etc, how is
this indicated in rails? None of the log files even
2006 May 24
2
PDF Writing without Cached File
I''m researching generating PDF files via RoR. I see there are packages
available to do this. One such package is the PDF-Writer. The examples
I saw for this package save the PDF to a file. Is there a way I can
output the PDF on-the-fly to the browser rather than having a temporary
PDF file?
I just can''t have these files laying around since they contain sensitive
2006 Aug 11
10
OT -- What is with all the fragmented threads recently?
Is it my imagination or has there been a huge increase in the number
of fragmented threads in the last several days? Maybe it''s Gmail
doing something crazy, but I see dozens of top-level conversations
starting with replies (ex. "Re: [Rails] omfg something broke").
Did people collectively forget what the "reply" button looks like, or
is the list software doing
2006 May 04
1
conditional require? conditional action code?
Greetings all.
I have some controller code that uses win32ole (only available on
windows). This code is now solid, and I''d now like to resume
development on (any) other OS(grin).
But alas, the controller bails because the OS specific library can''t
be found.
Can I conditionally specify action code compilation (and a require
''win32ole'') based on OS or
2005 Dec 31
9
Railspdf plugin problem
Hi,
For my app i need to generate pdf file for reports. I am trying the railspdf
plugin, got it installed using command:
ruby script/plugin install
svn://rubyforge.org//var/svn/railspdfplugin/railspdf/
The problem is that when i re-started my webrick it won''t run, with errors
messages like this (shown only first message):
*D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5
2007 Jan 17
12
Excel sheet generation
Hi,
Does anyone know of a package that will help with generation of
spreadsheets? (xls files, not csv)
Thanks,
Fredrik
--~--~---------~--~----~------------~-------~--~----~
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