<?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: Python PDF Split/Merge Library</title>
	<atom:link href="http://mathieu.fenniak.net/python-pdf-splitmerge-library/feed/" rel="self" type="application/rss+xml" />
	<link>http://mathieu.fenniak.net/python-pdf-splitmerge-library/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 31 Mar 2009 04:37:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Ric</title>
		<link>http://mathieu.fenniak.net/python-pdf-splitmerge-library/comment-page-1/#comment-60</link>
		<dc:creator>Ric</dc:creator>
		<pubDate>Wed, 18 Apr 2007 22:15:44 +0000</pubDate>
		<guid isPermaLink="false">http://stompstompstomp.com/weblog/entries/131#comment-60</guid>
		<description>I just got it patched myself. The problem was the absence of an &quot;/ID&quot; mark on the pdf.

I patched your pdf.py this way:

Changed
            id_entry = self.safeGetObject(self.trailer[&#039;/ID&#039;])
            id1_entry = self.safeGetObject(id_entry[0])

for:
        if self.trailer.has_key(&#039;/ID&#039;):
            id_entry = self.safeGetObject(self.trailer[&#039;/ID&#039;])
            id1_entry = self.safeGetObject(id_entry[0])
        else:
            id1_entry = &#039;&#039;

And now it works perfectly.</description>
		<content:encoded><![CDATA[<p>I just got it patched myself. The problem was the absence of an &#8220;/ID&#8221; mark on the pdf.</p>
<p>I patched your pdf.py this way:</p>
<p>Changed<br />
            id_entry = self.safeGetObject(self.trailer['/ID'])<br />
            id1_entry = self.safeGetObject(id_entry[0])</p>
<p>for:<br />
        if self.trailer.has_key(&#8216;/ID&#8217;):<br />
            id_entry = self.safeGetObject(self.trailer['/ID'])<br />
            id1_entry = self.safeGetObject(id_entry[0])<br />
        else:<br />
            id1_entry = &#8221;</p>
<p>And now it works perfectly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ric</title>
		<link>http://mathieu.fenniak.net/python-pdf-splitmerge-library/comment-page-1/#comment-59</link>
		<dc:creator>Ric</dc:creator>
		<pubDate>Wed, 18 Apr 2007 21:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://stompstompstomp.com/weblog/entries/131#comment-59</guid>
		<description>Hi!

I&#039;ve been looking for a lib to handle PDFs in python, and yours looked awesome... until I tried to handle PDFs from gb.espacenet.com (a patent search site).

I was trying to build a tool to merge the separate PDF pages into full PDF files (you will know what I mean if you download a PDF from the site and have a look at it), but pypdf keeps complaining about the PDF it is handling is not decrypted, but I never needed a password to open any of these PDFs in any reader.

I would greatl appreciate if you could have a look at it.</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>I&#8217;ve been looking for a lib to handle PDFs in python, and yours looked awesome&#8230; until I tried to handle PDFs from gb.espacenet.com (a patent search site).</p>
<p>I was trying to build a tool to merge the separate PDF pages into full PDF files (you will know what I mean if you download a PDF from the site and have a look at it), but pypdf keeps complaining about the PDF it is handling is not decrypted, but I never needed a password to open any of these PDFs in any reader.</p>
<p>I would greatl appreciate if you could have a look at it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Send Flowers</title>
		<link>http://mathieu.fenniak.net/python-pdf-splitmerge-library/comment-page-1/#comment-58</link>
		<dc:creator>Send Flowers</dc:creator>
		<pubDate>Wed, 28 Feb 2007 09:33:36 +0000</pubDate>
		<guid isPermaLink="false">http://stompstompstomp.com/weblog/entries/131#comment-58</guid>
		<description>&lt;strong&gt;Send Flowers...&lt;/strong&gt;

useful blogs...</description>
		<content:encoded><![CDATA[<p><strong>Send Flowers&#8230;</strong></p>
<p>useful blogs&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bob</title>
		<link>http://mathieu.fenniak.net/python-pdf-splitmerge-library/comment-page-1/#comment-57</link>
		<dc:creator>bob</dc:creator>
		<pubDate>Fri, 29 Dec 2006 19:04:41 +0000</pubDate>
		<guid isPermaLink="false">http://stompstompstomp.com/weblog/entries/131#comment-57</guid>
		<description>Just came across this - great effort and excellent library.</description>
		<content:encoded><![CDATA[<p>Just came across this &#8211; great effort and excellent library.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vasudev Ram</title>
		<link>http://mathieu.fenniak.net/python-pdf-splitmerge-library/comment-page-1/#comment-56</link>
		<dc:creator>Vasudev Ram</dc:creator>
		<pubDate>Sun, 24 Dec 2006 15:09:55 +0000</pubDate>
		<guid isPermaLink="false">http://stompstompstomp.com/weblog/entries/131#comment-56</guid>
		<description>Interesting. Saw this - pyPDF - today. Nice to see another Python/PDF library. I&#039;ll download and check it out. I came across pyPDF via http://del.icio.us/ixx/pdf (which also had a link to an article of mine about my xtopdf PDF creation/conversion toolkit, also written in Python (and uses ReportLab). xtopdf is here:

http://www.dancingbison.com/products.html

Vasudev Ram
Dancing Bison Enterprises
http://www.dancingbison.com</description>
		<content:encoded><![CDATA[<p>Interesting. Saw this &#8211; pyPDF &#8211; today. Nice to see another Python/PDF library. I&#8217;ll download and check it out. I came across pyPDF via <a href="http://del.icio.us/ixx/pdf" rel="nofollow">http://del.icio.us/ixx/pdf</a> (which also had a link to an article of mine about my xtopdf PDF creation/conversion toolkit, also written in Python (and uses ReportLab). xtopdf is here:</p>
<p><a href="http://www.dancingbison.com/products.html" rel="nofollow">http://www.dancingbison.com/products.html</a></p>
<p>Vasudev Ram<br />
Dancing Bison Enterprises<br />
<a href="http://www.dancingbison.com" rel="nofollow">http://www.dancingbison.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Lee</title>
		<link>http://mathieu.fenniak.net/python-pdf-splitmerge-library/comment-page-1/#comment-55</link>
		<dc:creator>Steven Lee</dc:creator>
		<pubDate>Tue, 08 Aug 2006 08:33:01 +0000</pubDate>
		<guid isPermaLink="false">http://stompstompstomp.com/weblog/entries/131#comment-55</guid>
		<description>When I tried the document ,FreeImage390.pdf (download from http://switch.dl.sourceforge.net/sourceforge/freeimage/FreeImage390.pdf)
I get a error as follow:

title = FreeImage 3.9.0 documentation
document1.pdf has 101 pages.
Traceback (most recent call last):
  File &quot;F:\pdf\python\pyPdf- 1.6\ex1.py&quot;, line 38, in ?    output.write(outputStream)
  File &quot;D:\Python24\Lib\site-packages\pyPdf\pdf.py&quot;, line 121, in write obj.writeToStream(stream)
  File &quot;D:\Python24\Lib\site-packages\pyPdf\generic.py&quot;, line 326, in writeToStream    value.writeToStream (stream)
  File &quot;D:\Python24\Lib\site-packages\pyPdf\generic.py&quot;, line 128, in writeToStr eam    data.writeToStream(stream)
AttributeError: type object &#039;NullObject&#039; has no attribute &#039;writeToStream&#039;</description>
		<content:encoded><![CDATA[<p>When I tried the document ,FreeImage390.pdf (download from <a href="http://switch.dl.sourceforge.net/sourceforge/freeimage/FreeImage390.pdf)" rel="nofollow">http://switch.dl.sourceforge.net/sourceforge/freeimage/FreeImage390.pdf)</a><br />
I get a error as follow:</p>
<p>title = FreeImage 3.9.0 documentation<br />
document1.pdf has 101 pages.<br />
Traceback (most recent call last):<br />
  File &#8220;F:\pdf\python\pyPdf- 1.6\ex1.py&#8221;, line 38, in ?    output.write(outputStream)<br />
  File &#8220;D:\Python24\Lib\site-packages\pyPdf\pdf.py&#8221;, line 121, in write obj.writeToStream(stream)<br />
  File &#8220;D:\Python24\Lib\site-packages\pyPdf\generic.py&#8221;, line 326, in writeToStream    value.writeToStream (stream)<br />
  File &#8220;D:\Python24\Lib\site-packages\pyPdf\generic.py&#8221;, line 128, in writeToStr eam    data.writeToStream(stream)<br />
AttributeError: type object &#8216;NullObject&#8217; has no attribute &#8216;writeToStream&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabrizio</title>
		<link>http://mathieu.fenniak.net/python-pdf-splitmerge-library/comment-page-1/#comment-54</link>
		<dc:creator>Fabrizio</dc:creator>
		<pubDate>Fri, 26 May 2006 20:32:21 +0000</pubDate>
		<guid isPermaLink="false">http://stompstompstomp.com/weblog/entries/131#comment-54</guid>
		<description>Good job, thanks!
One of the best solutions to generate PDF files in python is the one of reportlab, i guess, but the merge functionality is missing in that lib. ( well, missing in the OpenSource chapter :) ).</description>
		<content:encoded><![CDATA[<p>Good job, thanks!<br />
One of the best solutions to generate PDF files in python is the one of reportlab, i guess, but the merge functionality is missing in that lib. ( well, missing in the OpenSource chapter <img src='http://mathieu.fenniak.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Florian</title>
		<link>http://mathieu.fenniak.net/python-pdf-splitmerge-library/comment-page-1/#comment-50</link>
		<dc:creator>Florian</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://stompstompstomp.com/weblog/entries/131#comment-50</guid>
		<description>I&#039;ve the same errors as Shailesh when using pyPdf and the only solution that I found is to uncompress the pdf files with :
pdftk doc.pdf output doc2.pdf uncompress
before using it... which is definitely not a good solution :(

Any idea ? maybe I missed something !

Good job however ! It&#039;s a really useful tool !</description>
		<content:encoded><![CDATA[<p>I&#8217;ve the same errors as Shailesh when using pyPdf and the only solution that I found is to uncompress the pdf files with :<br />
pdftk doc.pdf output doc2.pdf uncompress<br />
before using it&#8230; which is definitely not a good solution <img src='http://mathieu.fenniak.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Any idea ? maybe I missed something !</p>
<p>Good job however ! It&#8217;s a really useful tool !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shailesh</title>
		<link>http://mathieu.fenniak.net/python-pdf-splitmerge-library/comment-page-1/#comment-51</link>
		<dc:creator>Shailesh</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://stompstompstomp.com/weblog/entries/131#comment-51</guid>
		<description>I am getting errors when I try to run the example script. Any ideas?

Traceback (most recent call last):
  File &quot;splmrg.py&quot;, line 7, in ?
    output.addPage(input1.getPage(0))
  File &quot;E:\Python23\Lib\site-packages\pyPdf\pdf.py&quot;, line 232, in getPage
    self._flatten()
  File &quot;E:\Python23\Lib\site-packages\pyPdf\pdf.py&quot;, line 244, in _flatten
    catalog = self.getObject(self.trailer[&quot;/Root&quot;])
  File &quot;E:\Python23\Lib\site-packages\pyPdf\pdf.py&quot;, line 296, in getObject
    retval = readObject(self.stream, self)
  File &quot;E:\Python23\Lib\site-packages\pyPdf\generic.py&quot;, line 63, in readObject
    return DictionaryObject.readFromStream(stream, pdf)
  File &quot;E:\Python23\Lib\site-packages\pyPdf\generic.py&quot;, line 329, in readFromStream
    value = readObject(stream, pdf)
  File &quot;E:\Python23\Lib\site-packages\pyPdf\generic.py&quot;, line 54, in readObject
    return ArrayObject.readFromStream(stream, pdf)
  File &quot;E:\Python23\Lib\site-packages\pyPdf\generic.py&quot;, line 128, in readFromStream
    arr.append(readObject(stream, pdf))
  File &quot;E:\Python23\Lib\site-packages\pyPdf\generic.py&quot;, line 57, in readObject
    return NullObject.readFromStream(stream)
NameError: global name &#039;NullObject&#039; is not defined</description>
		<content:encoded><![CDATA[<p>I am getting errors when I try to run the example script. Any ideas?</p>
<p>Traceback (most recent call last):<br />
  File &#8220;splmrg.py&#8221;, line 7, in ?<br />
    output.addPage(input1.getPage(0))<br />
  File &#8220;E:\Python23\Lib\site-packages\pyPdf\pdf.py&#8221;, line 232, in getPage<br />
    self._flatten()<br />
  File &#8220;E:\Python23\Lib\site-packages\pyPdf\pdf.py&#8221;, line 244, in _flatten<br />
    catalog = self.getObject(self.trailer["/Root"])<br />
  File &#8220;E:\Python23\Lib\site-packages\pyPdf\pdf.py&#8221;, line 296, in getObject<br />
    retval = readObject(self.stream, self)<br />
  File &#8220;E:\Python23\Lib\site-packages\pyPdf\generic.py&#8221;, line 63, in readObject<br />
    return DictionaryObject.readFromStream(stream, pdf)<br />
  File &#8220;E:\Python23\Lib\site-packages\pyPdf\generic.py&#8221;, line 329, in readFromStream<br />
    value = readObject(stream, pdf)<br />
  File &#8220;E:\Python23\Lib\site-packages\pyPdf\generic.py&#8221;, line 54, in readObject<br />
    return ArrayObject.readFromStream(stream, pdf)<br />
  File &#8220;E:\Python23\Lib\site-packages\pyPdf\generic.py&#8221;, line 128, in readFromStream<br />
    arr.append(readObject(stream, pdf))<br />
  File &#8220;E:\Python23\Lib\site-packages\pyPdf\generic.py&#8221;, line 57, in readObject<br />
    return NullObject.readFromStream(stream)<br />
NameError: global name &#8216;NullObject&#8217; is not defined</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Boddie</title>
		<link>http://mathieu.fenniak.net/python-pdf-splitmerge-library/comment-page-1/#comment-52</link>
		<dc:creator>David Boddie</dc:creator>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://stompstompstomp.com/weblog/entries/131#comment-52</guid>
		<description>It&#039;s good to see another PDF library for Python. I wrote one aimed at reading PDF files and extracting information from them:

http://www.boddie.org.uk/david/Projects/Python/pdftools/

It&#039;s licensed under the LGPL.

At this point I usually tentatively put forward the idea of collaborating on a general purpose PDF library for Python, but I&#039;ve got a lot of other ongoing projects to contend with.

Still, let me know if you want to cooperate or discuss ideas.</description>
		<content:encoded><![CDATA[<p>It&#8217;s good to see another PDF library for Python. I wrote one aimed at reading PDF files and extracting information from them:</p>
<p><a href="http://www.boddie.org.uk/david/Projects/Python/pdftools/" rel="nofollow">http://www.boddie.org.uk/david/Projects/Python/pdftools/</a></p>
<p>It&#8217;s licensed under the LGPL.</p>
<p>At this point I usually tentatively put forward the idea of collaborating on a general purpose PDF library for Python, but I&#8217;ve got a lot of other ongoing projects to contend with.</p>
<p>Still, let me know if you want to cooperate or discuss ideas.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
