<?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>reader &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<atom:link href="https://blog.sephiroth.it/tag/reader/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.sephiroth.it</link>
	<description>programmer by pure chance</description>
	<lastBuildDate>Wed, 30 Jun 2010 05:34:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://blog.sephiroth.it/wp-content/uploads/2019/03/cropped-sepy-big-32x32.png</url>
	<title>reader &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<link>https://blog.sephiroth.it</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Read pdf metadata with purePDF</title>
		<link>https://blog.sephiroth.it/2010/05/28/read-pdf-metadata-with-purepdf/</link>
					<comments>https://blog.sephiroth.it/2010/05/28/read-pdf-metadata-with-purepdf/#respond</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Fri, 28 May 2010 07:14:53 +0000</pubDate>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[purePDF]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[bytearray]]></category>
		<category><![CDATA[metadata]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[reader]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=319</guid>

					<description><![CDATA[In the recent purePDF update I&#8217;ve added the&#160;getInfo method to the PdfReader class, this allows to extract pdf informations once the document has been parsed. Here&#8217;s an example: var pdf: ByteArray = URLLoader( event.target ).data as ByteArray; var reader: PdfReader = new PdfReader( pdf ); reader.addEventListener( Event.COMPLETE, onReadComplete ); reader.readPdf(); function onReadComplete(event:Event):void { var map: &#8230; <a href="https://blog.sephiroth.it/2010/05/28/read-pdf-metadata-with-purepdf/" class="more-link">Continue reading <span class="screen-reader-text">Read pdf metadata with purePDF</span></a>]]></description>
										<content:encoded><![CDATA[<div>In the recent purePDF update I&#8217;ve added the <strong>getInfo</strong> method to the PdfReader class, this allows to extract pdf informations once the document has been parsed.</p>
<div>Here&#8217;s an example:</div>
<div>
<pre name="code" class="js">var pdf: ByteArray = URLLoader( event.target ).data as ByteArray;
var reader: PdfReader = new PdfReader( pdf );
reader.addEventListener( Event.COMPLETE, onReadComplete );
reader.readPdf();

function onReadComplete(event:Event):void
{
	var map: HashMap = reader.getInfo();
	for( var iterator: Iterator = map.keySet().iterator(); iterator.hasNext(); )
	{
		var key: String = iterator.next();
		trace( key + ": " + map.getValue( key ) );
	}
}</pre>
</div>
<div>
</div>
<div>In this way all the document&#8217;s metadata will be traced (Author, Creation Date, Title, Subject, etc..)</div>
<div>In order to extract the field directly simply use:</div>
<div>
<pre name="code" class="js">function onReadComplete(event:Event):void
{
	var map: HashMap = reader.getInfo();
	trace( "Author: " + map.getValue( "Author" ) );
	trace( "Creator: " + map.getValue( "Creator" ) );
	trace( "Title: " + map.getValue( "Title" ) );
}</pre>
</div>
<div>Download the latest <strong>purePDF</strong> <a href="http://code.google.com/p/purepdf/downloads/list">here</a>.</div>
<div><img decoding="async" src="http://img.zemanta.com/pixy.gif?x-id=9614febd-ab17-4368-9cae-6155ac380111" alt="" /></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2010/05/28/read-pdf-metadata-with-purepdf/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
