Skip to content

Alessandro Crugnola

programmer by pure chance

  • Categories
    • actionscript
    • amfphp
    • android
    • aviary
    • firefox
    • flash media server
    • flex
    • general
    • iphone
    • php
    • purePDF
    • python
    • scripting languages
    • SEPY
  • Projects
    • purePDF
    • FontReader
    • PHP SWF Reader
    • AS3Gettext
    • Shared Object Reader
    • Flash Flickr SliderShow
  • Firefox extensions
    • Flash Tracer for Firebug
    • Flash Switcher
  • Android Applications
    • Photo Editor By Aviary
  • My GitHub
    • Android UIGestureRecognizer
    • Android JNI Support
    • ImageViewZoom
    • Material Bottom Navigation
    • Android Tooltip
    • Floating Action Menu
    • Android Exif Extended
    • More..
HomePosts tagged 'metadata'

metadata

Read pdf metadata with purePDF

May 28, 2010June 30, 2010 Alessandro Crugnola actionscript, purePDF ant, bytearray, metadata, pdf, purePDF, reader
In the recent purePDF update I’ve added theĀ getInfo method to the PdfReader class, this allows to extract pdf informations once the document has been parsed.

Here’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: HashMap = reader.getInfo();
	for( var iterator: Iterator = map.keySet().iterator(); iterator.hasNext(); )
	{
		var key: String = iterator.next();
		trace( key + ": " + map.getValue( key ) );
	}
}
In this way all the document’s metadata will be traced (Author, Creation Date, Title, Subject, etc..)
In order to extract the field directly simply use:
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" ) );
}
Download the latestĀ purePDF here.
Leave a comment

BLDoc 1.0 Public Beta Available

September 2, 2004June 13, 2010 Alessandro Crugnola actionscript, SEPY bldoc, javadoc, metadata, SEPY

Chafic Kazoun from rewindfile.com has released late yesterday the first public beta of BLDoc.

What is BLDoc?
“BLDoc is an ActionScript 2.0 source code documentation tool designed to require minimal commenting to produce complete documentation. BLDoc supports multiple output styles (including the ability to create your own), parsing of AS 2.0 source, MetaData tags, and JavaDoc style comments.”

You can also use BLDoc with SE|PY in order to create autmatically Javadoc style documentation. Latest version of sepy has a new feature which with a simple mouse click will create for you javadoc comment for any method of your source code (thanks to a suggestion of Colin Moock).

Then BLDoc processes a series of customizable commands to run many XSLT transformations on the intermediate file. And it will come in 2 different editions: community edition and professional edition.

Find out more here: http://www.blinex.com/products/bldoc/

Leave a comment

Search

Popular

  • Widget: SlidingDrawer top to bottom 368 views
  • AS3 SoundMixer, my turn 250 views
  • ImageView Zoom and Scroll 197 views
  • Reading resource files from native code 52 views
  • Android – Create a Vignette effect 49 views
  • Shared Object Reader 49 views
  • purePDF 48 views
  • Simply Note 43 views

Recents

  • Photoshop Extension: Opacity Editor
  • Why it’s hard to find Android developers
  • Android – Create a Vignette effect
  • Floating Action Menu for Android
  • java.lang.UnsatisfiedLinkError workaround
  • More Picasso changes
  • Forking Picasso
  • Obtain styleable fields at runtime

Instagram

Load More...Follow on Instagram

Tags

actionscript adobe amfphp android apollo aviary beta bug bytearray compiler component contest debug eclipse ecma editor extension firefox flash flash 8 flash 9 flash tracer flex game github holidays internet explorer iphone java linux macromedia mtasc mysql opensource osx parser pdf php purePDF python regular expression sdk SEPY windows xml
Proudly powered by WordPress | Theme: Big Brother by WordPress.com.