<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Easy PDFs from Rails</title>
	<atom:link href="http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/</link>
	<description>Code for Coders</description>
	<pubDate>Fri, 12 Mar 2010 01:14:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: alexey</title>
		<link>http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/comment-page-1/#comment-2339</link>
		<dc:creator>alexey</dc:creator>
		<pubDate>Sun, 20 Dec 2009 14:58:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/#comment-2339</guid>
		<description>ok, sorry :) my mistake
:layout =&gt; "prince_pdf" instead of "prince-pdf"
^_^</description>
		<content:encoded><![CDATA[<p>ok, sorry <img src='http://www.nullislove.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> my mistake<br />
:layout =&gt; &#8220;prince_pdf&#8221; instead of &#8220;prince-pdf&#8221;<br />
^_^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alexey</title>
		<link>http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/comment-page-1/#comment-2338</link>
		<dc:creator>alexey</dc:creator>
		<pubDate>Sun, 20 Dec 2009 14:35:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/#comment-2338</guid>
		<description>hm, also having problem with utf-8 processing..
i have  in layout of pdf prince ..</description>
		<content:encoded><![CDATA[<p>hm, also having problem with utf-8 processing..<br />
i have  in layout of pdf prince ..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leo</title>
		<link>http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/comment-page-1/#comment-2291</link>
		<dc:creator>Leo</dc:creator>
		<pubDate>Wed, 02 Sep 2009 00:09:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/#comment-2291</guid>
		<description>Can't make it work..

Im using it within a show method like this
_______________________________________
  include PdfHelper
  def show    
    @user = User.find(params[:id])
    respond_to do &#124;format&#124;
      format.html # show.html.erb
      format.xml  { render :xml =&gt; @user }
      make_and_send_pdf('/users/show','leo.pdf')
    end
  end
_______________________________________
And I've got te following error

 ArgumentError in UsersController#show

wrong number of arguments (2 for 1)
_______________________________________

Any ideas?</description>
		<content:encoded><![CDATA[<p>Can&#8217;t make it work..</p>
<p>Im using it within a show method like this<br />
_______________________________________<br />
  include PdfHelper<br />
  def show<br />
    @user = User.find(params[:id])<br />
    respond_to do |format|<br />
      format.html # show.html.erb<br />
      format.xml  { render :xml =&gt; @user }<br />
      make_and_send_pdf(&#8217;/users/show&#8217;,'leo.pdf&#8217;)<br />
    end<br />
  end<br />
_______________________________________<br />
And I&#8217;ve got te following error</p>
<p> ArgumentError in UsersController#show</p>
<p>wrong number of arguments (2 for 1)<br />
_______________________________________</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brijesh Shah</title>
		<link>http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/comment-page-1/#comment-1328</link>
		<dc:creator>Brijesh Shah</dc:creator>
		<pubDate>Wed, 17 Dec 2008 12:10:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/#comment-1328</guid>
		<description>I used pricely pluging. Prince is installed in /usr/local/lib but still i am getting this error
sh: Usage:: command not found
prince: warning: failed to load external entity "[OPTIONS]"
prince: [OPTIONS]: error: could not load input file
prince: warning: failed to load external entity "file.xml"
prince: file.xml: error: could not load input file
prince: warning: failed to load external entity "Convert"
prince: Convert: error: could not load input file
prince: warning: failed to load external entity "file.xml"
prince: file.xml: error: could not load input file
prince: warning: failed to load external entity "to"
prince: to: error: could not load input file
prince: error: no input documents to process
prince: warning: failed to load external entity "[OPTIONS]"
prince: [OPTIONS]: error: could not load input file
prince: warning: failed to load external entity "doc.html"
prince: doc.html: error: could not load input file
prince: warning: failed to load external entity "Convert"
prince: Convert: error: could not load input file
prince: warning: failed to load external entity "doc.html"
prince: doc.html: error: could not load input file
prince: warning: failed to load external entity "to"
prince: to: error: could not load input file
prince: warning: failed to load external entity "out.pdf"
prince: out.pdf: error: could not load input file
prince: error: no input documents to process
prince: warning: failed to load external entity "[OPTIONS]"
prince: [OPTIONS]: error: could not load input file
prince: warning: failed to load external entity "FILES..."
prince: FILES...: error: could not load input file
prince: warning: failed to load external entity "Combine"
prince: Combine: error: could not load input file
prince: warning: failed to load external entity "multiple"
prince: multiple: error: could not load input file
prince: warning: failed to load external entity "files"
prince: files: error: could not load input file
prince: warning: failed to load external entity "to"
prince: to: error: could not load input file
prince: warning: failed to load external entity "out.pdf"
prince: out.pdf: error: could not load input file
prince: error: no input documents to process
sh: line 5: Try: command not found
sh: line 6: --input=html: command not found

Can you tell me how to solve this?</description>
		<content:encoded><![CDATA[<p>I used pricely pluging. Prince is installed in /usr/local/lib but still i am getting this error<br />
sh: Usage:: command not found<br />
prince: warning: failed to load external entity &#8220;[OPTIONS]&#8221;<br />
prince: [OPTIONS]: error: could not load input file<br />
prince: warning: failed to load external entity &#8220;file.xml&#8221;<br />
prince: file.xml: error: could not load input file<br />
prince: warning: failed to load external entity &#8220;Convert&#8221;<br />
prince: Convert: error: could not load input file<br />
prince: warning: failed to load external entity &#8220;file.xml&#8221;<br />
prince: file.xml: error: could not load input file<br />
prince: warning: failed to load external entity &#8220;to&#8221;<br />
prince: to: error: could not load input file<br />
prince: error: no input documents to process<br />
prince: warning: failed to load external entity &#8220;[OPTIONS]&#8221;<br />
prince: [OPTIONS]: error: could not load input file<br />
prince: warning: failed to load external entity &#8220;doc.html&#8221;<br />
prince: doc.html: error: could not load input file<br />
prince: warning: failed to load external entity &#8220;Convert&#8221;<br />
prince: Convert: error: could not load input file<br />
prince: warning: failed to load external entity &#8220;doc.html&#8221;<br />
prince: doc.html: error: could not load input file<br />
prince: warning: failed to load external entity &#8220;to&#8221;<br />
prince: to: error: could not load input file<br />
prince: warning: failed to load external entity &#8220;out.pdf&#8221;<br />
prince: out.pdf: error: could not load input file<br />
prince: error: no input documents to process<br />
prince: warning: failed to load external entity &#8220;[OPTIONS]&#8221;<br />
prince: [OPTIONS]: error: could not load input file<br />
prince: warning: failed to load external entity &#8220;FILES&#8230;&#8221;<br />
prince: FILES&#8230;: error: could not load input file<br />
prince: warning: failed to load external entity &#8220;Combine&#8221;<br />
prince: Combine: error: could not load input file<br />
prince: warning: failed to load external entity &#8220;multiple&#8221;<br />
prince: multiple: error: could not load input file<br />
prince: warning: failed to load external entity &#8220;files&#8221;<br />
prince: files: error: could not load input file<br />
prince: warning: failed to load external entity &#8220;to&#8221;<br />
prince: to: error: could not load input file<br />
prince: warning: failed to load external entity &#8220;out.pdf&#8221;<br />
prince: out.pdf: error: could not load input file<br />
prince: error: no input documents to process<br />
sh: line 5: Try: command not found<br />
sh: line 6: &#8211;input=html: command not found</p>
<p>Can you tell me how to solve this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ufolog</title>
		<link>http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/comment-page-1/#comment-1316</link>
		<dc:creator>Ufolog</dc:creator>
		<pubDate>Thu, 27 Nov 2008 16:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/#comment-1316</guid>
		<description>2 Robert write before sales_report params[:id] = 12345 and then  make_and_send_pdf('/reports/sales_report', "123.pdf")</description>
		<content:encoded><![CDATA[<p>2 Robert write before sales_report params[:id] = 12345 and then  make_and_send_pdf(&#8217;/reports/sales_report&#8217;, &#8220;123.pdf&#8221;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nimesh</title>
		<link>http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/comment-page-1/#comment-1267</link>
		<dc:creator>Nimesh</dc:creator>
		<pubDate>Thu, 28 Aug 2008 12:44:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/#comment-1267</guid>
		<description>I cant get the images displayed into my application. I have also removed the line pdf_helper.rb line 27
. but still not getting the images displayed...</description>
		<content:encoded><![CDATA[<p>I cant get the images displayed into my application. I have also removed the line pdf_helper.rb line 27<br />
. but still not getting the images displayed&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/comment-page-1/#comment-1113</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Tue, 06 May 2008 13:58:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/#comment-1113</guid>
		<description>hi there,

how can i pass '/reports/sales_report?id=12345' instead of /reports/sales_report? i wanted to display some dynamic contents in pdf. thanks!</description>
		<content:encoded><![CDATA[<p>hi there,</p>
<p>how can i pass &#8216;/reports/sales_report?id=12345&#8242; instead of /reports/sales_report? i wanted to display some dynamic contents in pdf. thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mulasse</title>
		<link>http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/comment-page-1/#comment-813</link>
		<dc:creator>Mulasse</dc:creator>
		<pubDate>Thu, 06 Dec 2007 14:09:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/#comment-813</guid>
		<description>Khelll =&gt; in , in &lt;meta http-equiv... "charset=UTF-8" instead of "charset=iso-8859-1" in your document layout.

I've got probs with gsub(src) too.
If i comment the line, got nil exception
If i transform the pattern with /src="\//, nil exception too.
I really don't understand, especially for the first case, if someone has an idea.

thanks</description>
		<content:encoded><![CDATA[<p>Khelll =&gt; in , in &lt;meta http-equiv&#8230; &#8220;charset=UTF-8&#8243; instead of &#8220;charset=iso-8859-1&#8243; in your document layout.</p>
<p>I&#8217;ve got probs with gsub(src) too.<br />
If i comment the line, got nil exception<br />
If i transform the pattern with /src=&#8221;\//, nil exception too.<br />
I really don&#8217;t understand, especially for the first case, if someone has an idea.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kadoudal</title>
		<link>http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/comment-page-1/#comment-506</link>
		<dc:creator>kadoudal</dc:creator>
		<pubDate>Wed, 29 Aug 2007 11:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/#comment-506</guid>
		<description>thanks for your clear advices... 
I am trying to get it running into my project now..
you wrote..  in the sales_report action
this action would normally render 
    # a sales report to the browser

do I need to render it in the action ?   into a views/reports/sales_report.rhtml ...  with a layout/reports.rhtml layout ?
how should I handle the views  with a layout ? is that correct ?

that's what the following lines seems to indicate , no need for template extension /reports/sales_report.rhtml

make_and_send_pdf('/reports/sales_report', 'sales_report.pdf')

when doing that .. I get an error 

Missing template ..../config/../app/views/documents/sales_report_pdf.rhtml

thanks again for your advices</description>
		<content:encoded><![CDATA[<p>thanks for your clear advices&#8230;<br />
I am trying to get it running into my project now..<br />
you wrote..  in the sales_report action<br />
this action would normally render<br />
    # a sales report to the browser</p>
<p>do I need to render it in the action ?   into a views/reports/sales_report.rhtml &#8230;  with a layout/reports.rhtml layout ?<br />
how should I handle the views  with a layout ? is that correct ?</p>
<p>that&#8217;s what the following lines seems to indicate , no need for template extension /reports/sales_report.rhtml</p>
<p>make_and_send_pdf(&#8217;/reports/sales_report&#8217;, &#8217;sales_report.pdf&#8217;)</p>
<p>when doing that .. I get an error </p>
<p>Missing template &#8230;./config/../app/views/documents/sales_report_pdf.rhtml</p>
<p>thanks again for your advices</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: khelll</title>
		<link>http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/comment-page-1/#comment-465</link>
		<dc:creator>khelll</dc:creator>
		<pubDate>Mon, 13 Aug 2007 09:25:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/#comment-465</guid>
		<description>ok after the test, i turned out that prince is considering it the input string as latin1 or ISO_8859-1, so my question is : is there an option to tell prince abt the encoding.
i need to let prince consider the received code as UTF-8....
thanks for help</description>
		<content:encoded><![CDATA[<p>ok after the test, i turned out that prince is considering it the input string as latin1 or ISO_8859-1, so my question is : is there an option to tell prince abt the encoding.<br />
i need to let prince consider the received code as UTF-8&#8230;.<br />
thanks for help</p>
]]></content:encoded>
	</item>
</channel>
</rss>
