<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Splitting a PDF by bookmark</title>
	<link>http://ask.metafilter.com/123311/Splitting-a-PDF-by-bookmark/</link>
	<description>Comments on Ask MetaFilter post Splitting a PDF by bookmark</description>
	<pubDate>Fri, 29 May 2009 13:48:42 -0800</pubDate>
	<lastBuildDate>Fri, 29 May 2009 13:48:42 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Splitting a PDF by bookmark</title>
		<link>http://ask.metafilter.com/123311/Splitting-a-PDF-by-bookmark</link>	
		<description>I&apos;m looking for some inexpensive/free solution to splitting a PDF by bookmark (first level bookmark), and using the bookmark names for the filenames of the split PDF. &lt;br /&gt;&lt;br /&gt; I&apos;ve done some research already and discovered 2 products that are &lt;em&gt;almost&lt;/em&gt; good enough: &lt;a href=&quot;http://www.verypdf.com/pdfpg/index.html&quot;&gt;PDF Split-Merge&lt;/a&gt; and &lt;a href=&quot;http://www.pdfsam.org/&quot;&gt;PDF Split and Merge&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
The only drawback to PDF Split-Merge is that it costs USD$20-30 per user, and I have about 12 users to roll it out to.  (That may sound like nothing, but my IT department runs on a literal shoestring.  The other day we each got given a roll of duct-tape so each of us can repair the disintegrating carpet in our respective cubicles.)&lt;br&gt;
&lt;br&gt;
The only drawback to PDF Split and Merge (which is free and open-source), is that when it splits the PDF, it doesn&apos;t use the bookmark names as filenames.  Instead you get generic filenames with an appended counter based on page number.&lt;br&gt;
&lt;br&gt;
I&apos;ve done some scripting, so I&apos;m open to hearing about, for example, Perl modules that help with this.  My searches on CPAN have led me to PDF::Core and PDF::Parse, which don&apos;t really seem to be built for this.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2009:site.123311</guid>
		<pubDate>Thu, 28 May 2009 21:17:08 -0800</pubDate>
		<dc:creator>Ritchie</dc:creator>
		
			<category>pdf</category>
		
			<category>splitting</category>
		
			<category>free</category>
		
			<category>opensource</category>
		
			<category>cheap</category>
		
			<category>software</category>
		
	</item> <item>
		<title>By: Barry B. Palindromer</title>
		<link>http://ask.metafilter.com/123311/Splitting-a-PDF-by-bookmark#1763088</link>	
		<description>Hi!  We should start a support group or something.  I&apos;m trying to figure this out, too.  I am utterly unable to script anything, so maybe you can help me, too.  &lt;br&gt;
&lt;br&gt;
My provisional solution is to use &lt;a href=&quot;http://www.pdfhacks.com/pdftk/&quot;&gt;pdftk&lt;/a&gt; -- which is a phenomenal little program -- to extract metadata from the pdf (pdftk mydoc.pdf dump_data output report.txt).  Then, using the metadata from the pdf (which includes bookmarks, bookmark level and page number) to create a batch file for pdftk which would properly name the files.  This step involves me editing the metadata report in emacs with macros.  You could probably do this in perl fairly painlessly.  &lt;br&gt;
&lt;br&gt;
Then it&apos;s just a matter of running the batch file (shell script, whatever).  That was easy, huh?  Of course you&apos;d have to do that with every file, but there&apos;s worse things.  Like having to do it by hand in Acrobat.  Ugh.&lt;br&gt;
&lt;br&gt;
Pdfs are great and all, but it is a seriously clunky format to try to do anything interesting with.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.123311-1763088</guid>
		<pubDate>Fri, 29 May 2009 13:48:42 -0800</pubDate>
		<dc:creator>Barry B. Palindromer</dc:creator>
	</item><item>
		<title>By: Ritchie</title>
		<link>http://ask.metafilter.com/123311/Splitting-a-PDF-by-bookmark#1766496</link>	
		<description>Hmm.  It&apos;ll be a bit of a kludge, but it might work.  PDF Split and Merge includes a command-line option, so it might be possible to script the whole thing.  I&apos;ll have a go, and if I can get it to work I&apos;ll post the results back here.&lt;br&gt;
&lt;br&gt;
The other option, I suppose, is to contacts the developers directly and beg/bribe them to add the feature.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.123311-1766496</guid>
		<pubDate>Mon, 01 Jun 2009 16:26:15 -0800</pubDate>
		<dc:creator>Ritchie</dc:creator>
	</item>
	</channel>
</rss>
