PdfReader for purePDF
Recently I've update purepdf adding PdReader.
- Extract bookmarks
- Extract text
- Extract images
- ExtractTextPDF.air (air application): browse for local pdf documents and display pages contents

28 Nov 2008
AS3FlexDB library for Flex
04 Jan 2008
Create a simple fading slideshow using the SWX Flickr API
21 May 2007
Send and receive ByteArray to AMFPHP
27 Dec 2006
Flex 2 RemoteObject with AMFPHP 1.9
09 Nov 2006
Image CubeRotate howto
10 Sep 2006
Flex2 & Actionscript3 with AMFPHP
|
BLOG FEED |
|
FORUM FEED |
|
TUTORIAL FEED |

var cb_shading: PdfShading = PdfShading.complexAxial( writer, top_left.x, top_left.y, top_right.x, top_right.y, cb_colors, cb_ratios, true, true );
then for the alpha masking I've created a PdfTransparencyGroup applied to the alpha mask.

Continue reading "Flash alpha GradientMatrix to PDF using purePDF" »
PurePDF is a complete library for creating PDF documents using actionscript 3 ( targeted for flash player 10 ). The project is actually hosted on google code.
This is is a porting I've made of the famous java iText library ( version 4.2 ) by Bruno Lowagie into pure actionscript 3.0 (with some little modifications).
iText ( and purePDF ) has tons of features for create and manipulate pdf documents. A quick list of the features actually implemented into purepdf:
You can take a look at this PDF document (self generated using actionscript reflection) with the purePDF APIs.
Other actionscript libraries I've used for this project are: fzlib, as3corelib, ashashmap, alchemy, as3-commons.
You can both download the library from source code and compile it yourself ( see at the Installation guide ) or download the precompiled swc files from the project's download section.
Moreover there are actually a lot of examples to explain all the library features and for a quick guide. You can find them listed and updated here. In General refers to the project wiki for all the updated examples/howtos and the project updates.
update: here you can find the updated online api documentation
<target name="update-version">
<propertyset id="tdate"></propertyset>
<tstamp>
<format property="tdate" pattern="yyyyMMdd"/>
</tstamp>
<buildnumber file="build.number"/>
<echo>updating version to current datetime: ${tdate}</echo>
<replaceregexp byline="true">
<regexp pattern="public static const BUILD_DATE: String = \'([0-9]+)'"/>
<substitution expression="public static const BUILD_DATE: String = '${tdate}'"/>
<fileset dir="src/it/sephiroth/somestuff">
<include name="Library.as"/>
</fileset>
</replaceregexp>
<replaceregexp byline="true">
<regexp pattern="public static const BUILD_NUMBER: String = \'([0-9\.]+)'"/>
<substitution expression="public static const BUILD_NUMBER: String = '${build.number}'"/>
<fileset dir="src/it/sephiroth/somestuff">
<include name="Library.as"/>
</fileset>
</replaceregexp>
</target>public static const BUILD_DATE: String = '20100131';
and
public static const BUILD_NUMBER: String = '5';
... items -- An optional list of one or more comma-separated values, **or a Vector**, to insert into the Vector at the position specified in the startIndex parameter.var v1: Vector.<int> = new Vector.<int>();
v1.push(1);
v1.push(2);
v1.push(3);
v1.push(4);
var v2: Vector.<int> = new Vector.<int>();
v2.push(100);
v2.push(200);
v1.splice( 1, 1, v2 );
// Expected result: [1,100,200,3,4]
// Actual result: [1,0,3,4]
It seems that the third parameter is being casted into int and so only '0' has been inserted into the first Vector!
I tried to look into Adobe jira bugbase and what I've found there is that it was a known bug since long time and it has been also moved to the tamarin bugbase.
The problem is that at the end they simply closed the bug as invalid bug because the documentation was wrong!
Funny