Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
uninitialized constant RFPDF::View::TCPDF
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Peter Boling  
View profile  
 More options Oct 3 2007, 10:11 pm
From: Peter Boling <peter.bol...@gmail.com>
Date: Thu, 04 Oct 2007 02:11:11 -0000
Local: Wed, Oct 3 2007 10:11 pm
Subject: uninitialized constant RFPDF::View::TCPDF
In response to, as it will not let me continue the thread (too old?):
http://groups.google.com/group/rfpdf/browse_thread/thread/467c32fda86...

Chris,

> > Please help.  What could I have done wrong?  Thanks

I think you are having the same problem that I am currently having,
since my symptom is the same as yours, a non-readable PDF is created.
If you look in your log/development.log file, I bet you will see that
the error was:
ActionView::TemplateError (uninitialized constant RFPDF::View::TCPDF)
in app/views/pdf_letter/sample.rfpdf:

The RFPDF install instructions say nothing about installing TCPDF, so
I am as confused as you are.  So I am headed back to Google.

Ed, are we missing something?

Thanks,
Peter


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Boling  
View profile  
 More options Oct 3 2007, 10:40 pm
From: Peter Boling <peter.bol...@gmail.com>
Date: Thu, 04 Oct 2007 02:40:45 -0000
Local: Wed, Oct 3 2007 10:40 pm
Subject: Re: uninitialized constant RFPDF::View::TCPDF

> ActionView::TemplateError (uninitialized constant RFPDF::View::TCPDF)
> in app/views/pdf_letter/sample.rfpdf:

Discovering more:

I used this line to install the first time:
ruby script/plugin install http://rfpdf.googlecode.com/svn/trunk

I got that line from here:
http://dry.4thebusiness.com/info/rfpdf

But this page:
http://dry.4thebusiness.com/companies/list

Has the install link like this:
RFPDF plugin - https://rfpdf.googlecode.com/svn/trunk

So when I used the latter it installed a VERY different plugin.  It
included many fonts, and TCPDF as well!

So I tried using the same sample code I got here:
http://dry.4thebusiness.com/info/rfpdf_source_code

Restarted mongrel, and this time got a new error:

ActionView::TemplateError (TCPDF error: Could not find font
freeserif.rb.) in app/views/pdf_letter/sample.rfpdf:

So apparently it is calling for some fonts that are missing...

Anyone have any ideas?

Peter


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Boling  
View profile  
 More options Oct 3 2007, 10:59 pm
From: Peter Boling <peter.bol...@gmail.com>
Date: Thu, 04 Oct 2007 02:59:20 -0000
Local: Wed, Oct 3 2007 10:59 pm
Subject: Re: uninitialized constant RFPDF::View::TCPDF
I figured it out!

> ActionView::TemplateError (TCPDF error: Could not find font
> freeserif.rb.) in app/views/pdf_letter/sample.rfpdf:

I went here:
http://code.google.com/p/rfpdf/downloads/list

I downloaded the missing font.  Unzipped it, and placed the files into
the vendor/plugins/rfpdf/lib/fonts directory.

Now I can create PDFs!  Joy!

So the lesson here is that the demo code:
http://dry.4thebusiness.com/info/rfpdf_source_code

doesn't work with the version of RFPDF it says to install here:
http://dry.4thebusiness.com/info/rfpdf

You need to install it like this:
1. ruby script/plugin install https://rfpdf.googlecode.com/svn/trunk
2. change the directory's name from trunk to rfpdf.
3. install the missing fonts as I did above.

Hope this helps someone!

Peter


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »