title: Using zopyx.smartprintng.plone receive "[Errno 111] Connection refused" when trying to generate PDF
body: <h2>Overview</h2>
  
  <p>A client contacted us requesting that when they fill in a form on their site (created with PloneFormGen), they want the input of the form sent to the customer in PDF format (the converted form must be then printed, signed and posted back to the customer). </p>
  
  <p>I jumped on the Plone.org IRC room and asked the guys there, they suggested I use the <code>zopyx.smartprintng.plone</code> add-on. This seemed perfect because they have a script adapter example for PloneFormGen that I can use to convert the form input into a PDF file.</p>
  
  <p>The docs for the add-on are on this page:</p>
  
  <p><a href="http://docs.produce-and-publish.com/#produce-publish-client-connector" rel="nofollow">http://docs.produce-and-publish.com/#produce-publish-client-connector</a></p>
  
  <p>Going on that I was told I only needed to install the "Produce and Publish Client Connector" I proceeded to follow the installation instructions on the documentation.</p>
  
  <h2>The Installation</h2>
  
  <p>The buildout installation went fine, it reported no errors at all and my buildout reflects exactly what they state it must on that installation documentation page. </p>
  
  <p>However I noticed that under "Add/Remove Add-ons" in the Plone Control Panel, I could see no reference to this add-on, thus preventing me from actually enabling it on the particular site I am working on. (I have a feeling this may be the cause of the problem I am experiencing, but I have no idea how to resolve it). - I have checked <code>portal_quickinstaller</code> and it's not there either.</p>
  
  <h2>The Problem</h2>
  
  <p>According to the documentation appending <code>@@asPlainPDF</code> to the URL of the page you want to render will then render the PDF for you. </p>
  
  <p>So I enter <code>mysite.com/front-page/@@asPlainPDF</code> in my browser.</p>
  
  <p>Upon doing this I receive this traceback:</p>
  
  <pre><code>    Traceback (innermost last):
        Module ZPublisher.Publish, line 126, in publish
        Module ZPublisher.mapply, line 77, in mapply
        Module ZPublisher.Publish, line 46, in call_object
        Module zopyx.smartprintng.plone.browser.pdf, line 249, in __call__
        Module zopyx.smartprintng.plone.browser.pdf, line 85, in __call__
        Module zopyx.smartprintng.plone.browser.pdf, line 232, in __call2__
        Module zopyx.smartprintng.client.zip_client, line 192, in convertZIP2
        Module xmlrpclib, line 1224, in __call__
        Module xmlrpclib, line 1578, in __request
        Module xmlrpclib, line 1264, in request
        Module xmlrpclib, line 1292, in single_request
        Module xmlrpclib, line 1439, in send_content
        Module httplib, line 954, in endheaders
        Module httplib, line 814, in _send_output
        Module httplib, line 776, in send
        Module httplib, line 757, in connect
        Module socket, line 571, in create_connection
      error: [Errno 111] Connection refused 
  </code></pre>
  
  <p>If you need more information than this please tell me where to get it and I shall provide it to you.</p>
  
  <p>I have Google'd the <code>error: [Errno 111] Connection refused</code> message but it is either people experiencing issues with a Python program they are writing or a different add-on named <code>zopyx.smartprintng.lite</code> </p>
  
  <p>I did find this thread however: <a href="https://groups.google.com/forum/#!msg/plone-users/wCuO4RCUIQk/VslwOXvs4XwJ" rel="nofollow">https://groups.google.com/forum/#!msg/plone-users/wCuO4RCUIQk/VslwOXvs4XwJ</a></p>
  
  <p>So as one user suggested I tried installing <code>zopyx.smartprintng.server</code> however that started complaining that I had the wrong version of <code>zope.configuration</code>, and wants <code>&gt;=3.8.0dev</code> upon pinning that to <code>4.0.2</code> as it was the latest I could find, it then started complaining about another add-on and I got some buildout errors, which then bricked my Plone server (stopped the clients from coming up) and I had to re-run buildout from a backup buildout.cfg I made so it would make the necessary zope.conf files. </p>
  
  <h2>Server information</h2>
  
  <ul>
  <li>Plone 4.2.1.1 (4207)</li>
  <li>CMF 2.2.6</li>
  <li>Zope 2.13.16</li>
  <li>Python 2.7.3 (default, Oct 18 2012, 15:13:00) [GCC 4.6.3]</li>
  </ul>
  
  <h2>Summary</h2>
  
  <ol>
  <li><p>Followed these installation instructions: </p>
  
  <p><a href="http://docs.produce-and-publish.com/#produce-publish-client-connector" rel="nofollow">http://docs.produce-and-publish.com/#produce-publish-client-connector</a></p></li>
  <li><p>Received the above traceback trying to convert PDF when appending <code>@@asPlainPDF</code> to URL</p></li>
  <li><p>Attempts to install <code>zopyx.smartprintng.server</code> have failed.</p></li>
  </ol>