PdfReader for purePDF

Recently I’ve update purepdf adding PdReader.

Using PdfReader an existing pdf document can be opened and parsed. Later I will also port the PdfStamper which will allow to modify existing pdf documents.
Currently I’ve posted 3 simple examples about the PdfReader:
  1. Extract bookmarks
  2. Extract text
  3. Extract images
  4. ExtractTextPDF.air (air application): browse for local pdf documents and display pages contents
Currently the reader has some limitations (such as it cannot open crypted documents) and it’s not fast enough, but I hope to optimize it in the future.

FlashDevelop 3, unsorted plugins

Last week I started a new Flash project, and unluckily it was an ActionScript 2 project!…
Oh, It was so long time since I last wrote as2 code… I didn’t remember it’s so boring and poor . Actionscript 3 it’s a complete different world compared to as2, now I can understand this better. BTW, I decided to use for this project FlashDevelop 3. I still remember the days when they first announced the birth of this project (those days when I still was writing sepy…), but I never really try it in depth.
After 2 days using it I was fully satisfied of my choice, this is really an awesome project!

But.. because I’m too curious, I wanted to take a look also at the source code.. just to a look. Also because I never coded in C#.
Anyway, after a couple of days I found that making plugins wasn’t so hard, even if for a c# newbie like me (and also thanks to some tip from Philippe), and so I wrote down some testing plugins. they’re not killer plugins at all, just simple program addons.

1. SourceOptions: this is the very first I did and in fact it doesn’t do anything special. In AS2 and AS3 files it adds to the scintilla contextual menu three more options: “organize imports” (similar to the  one in flex), “add getter/setter method” and “add accessor method” (when you click on a class variable)

2.  Bookmarks panel: This create a docking panel displaying all the current opened files and keep updated their bookmarks.

3. Flash API panel: Similar to the one included in the Flash IDE. Just give (in the plugin settings) the path (one or more) of the xml included in the ActionsPanel flash directory and it will display the full list of all the language available actions/methods/classes. Double click on an item will insert the command in the document text giving also the description of the selected command in a tooltip.

Tip: those xml file can be found in a directory like this:

C:\Users\sephiroth\AppData\Local\Adobe\Flash CS3\en\Configuration\ActionsPanel\ActionScript_3\ActionsPanel_3.xml

4.  ASClassWizard: It overrides the “New Class” project menu command and displays a wizard dialog for creating a new ActionScript 2/3 class. Give the package, the classname, super class, implementing interfaces and it will create your class.

Note: Remember that those plugins work only with the last 1769 FlashDevelop 3 build, available here:

http://www.flashdevelop.org/community/viewtopic.php?t=1734

Project Home at http://code.google.com/p/fdplugins with all the latest versions of these plugins and more plugins

Google browser sync

I discovered today this great extension for Mozilla Firefox made by Google.

It synchronizes bookmarks, history, cookies and saved passwords continuously across your computers. It also allows you to restore open tabs and windows across different machines and browser sessions.
It allows you to select which setting to be sent using encryption (for example the saved password, even if I just use this extension only for my bookmarks).
Using firefox using different computers every day I always had the problem of bookmarks syncronization. First I used another firefox extension, but I dont remember its name, then I decided to put my bookmark.html file under a CVS repository, but now that I discovered this extension I will definitively use this one.

download the firefox extension here:
http://www.google.com/tools/firefox/browsersync