<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>UnDeprived &#187; acrobat</title>
	<atom:link href="http://www.un-deprived.com/tag/acrobat/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.un-deprived.com</link>
	<description>A webdev journal of the Moninator</description>
	<lastBuildDate>Sun, 29 Aug 2010 10:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Acrobat Batch Extract using Javascript</title>
		<link>http://www.un-deprived.com/2009/others/acrobat-batch-extract-using-javascript/</link>
		<comments>http://www.un-deprived.com/2009/others/acrobat-batch-extract-using-javascript/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 15:30:06 +0000</pubDate>
		<dc:creator>Mon</dc:creator>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[acrobat]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.un-deprived.com/?p=271</guid>
		<description><![CDATA[This was one of the old posts that got corrupted when I did a reinstall of WP 2.8.1.  Since this script is pretty handy, so I’m re-posting it. This scripts worked in Acrobat 8 &#38; 9 Pro. Instead of of manually extracting all the pages, and then manually optimize them, this script can ease the [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>This was one of the old posts that got corrupted when I did a reinstall of WP 2.8.1.  Since this script is pretty handy, so I’m re-posting it.</p>
<p>This scripts worked in Acrobat 8 &amp; 9 Pro. Instead of of manually extracting all the pages, and then manually optimize them, this script can ease the process. To access the Batch Processing menu: <em><strong>Advanced -&gt; Document Processing -&gt; Batch Processing</strong>.</em> The screen shot below shows where and how to add the script:</p>
<p><a href="http://www.un-deprived.com/wp-content/uploads/2009/08/acrobat1.jpg" rel="lightbox[271]" title="Acrobat Batch Extractions"><img class="alignnone size-medium wp-image-272" title="Acrobat Batch Extractions" src="http://www.un-deprived.com/wp-content/uploads/2009/08/acrobat1-212x125.jpg" alt="Acrobat Batch Extactions" width="212" height="125" /></a></p>
<p>Then add the following script into the “Javascript Editor”:</p>
<div class="wp_syntax">
<div class="code">
<pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> filename <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">documentFileName</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.pdf&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">try</span><span style="color: #009900;">&#123;</span> <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span>this.<span style="color: #660066;">numPages</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
    <span style="color: #003366; font-weight: bold;">var</span> num <span style="color: #339933;">=</span> i<span style="color: #339933;">+</span><span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">extractPages</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> nStart<span style="color: #339933;">:</span> i<span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    cPath<span style="color: #339933;">:</span> filename<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;_&quot;</span><span style="color: #339933;">+</span>num<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;.pdf&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>cath <span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> console.<span style="color: #660066;">println</span> <span style="color: #009900;">&#123;</span><span style="color: #3366CC;">&quot;Aborted: &quot;</span> <span style="color: #339933;">+</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#125;</span></pre>
</div>
</div>
<p>Saves a lot of time if you have a lot of files to extract and need to optimized the files using custom settings.<!-- PHP 5.x --></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.un-deprived.com/2009/others/acrobat-batch-extract-using-javascript/feed/</wfw:commentRss>
		<slash:comments></slash:comments>
		</item>
	</channel>
</rss>
