Alive pdf questions... version 0.1.5

hey there…

basically im having some problems using the alive pdf library within the flash cs4 ide. i can create a pdf all ok, but some of the methods and functions i cant get to work at all… i keep getting compile errors…

anyways… the long and short of it is that im dynamically drawing objects in flash… then using getbounds to chuck these into a pdf… thats all good… things start getting tricky when i want to :

A. add and rotate styled text to the pdf… i’ve tried using this… but no go…


myPDF.textStyle (new RGBColor(0x666666));
myPDF.setFont( FontFamily.TIMES, 40, false );
myPDF.startTransform();
myPDF.rotate(-90);
myPDF.addCell(40,10,"the String",1,0,Align.CENTER);
myPDF.stopTransform();

B. problems with just importing the whole library… eg. the below doesnt work… im having to import everything line by line…


import org.alivepdf.*;

C. other than that im having some positioning problems… i’ve set the document/pdf to be the same size as my stage…1000 pixels x 1000 pixels… but things arent being placed as they are in the flash document…


var myPDF:PDF = new PDF( Orientation.LANDSCAPE, Unit.POINT, new Size ([1000, 1000], "Flash Size", [11.7, 16.5], [297, 420] ));;

if anyone can give me some advice that would be great! the documentation on the alivepdf site is great… but there are no examples under the example text… so it makes it difficult to work it all out!! ah well… thanks in advance!

x