Ben Smith (@fezec) on Twitter just sent me this really nice project : EnergyTransparency.
AlivePDF is being used for the PDF generation, below an example of the pages generated, and here a link to the kind of PDF you can today generate at runtime with AlivePDF
link don’t work… plz fix
I’ve noticed that the images appear to be embeded jpgs rather than pngs. Pngs would be much better suited to this type of document and would greatly reduce the image size. (There are some issues with embeding pngs last I checked (no support for alpha channel), however there are workarounds for that.)
I have been trying for over ten days to get alivePDF to work with Flash CS5.
I can import the classes, but once I staart the PDF constructor line I get the following compiler errors:
../org/alivepdf/pdf/PDF.as, Line 3843 1137: Incorrect number of arguments. Expected no more than 1.
../org/alivepdf/pdf/PDF.as, Line 3532 1137: Incorrect number of arguments. Expected no more than 1.
I even tried publishing the FLA in the 0.1.4.5 build from Flash CS5 and I get the same errors.
Here is the constructor I am using.
var myPDF:PDF = new PDF( Orientation.LANDSCAPE, Unit.MM, Size.A4 );
as soon as this line is added the errors occur.
According to the compiler errors these are the lines in the PDF.as file causing the conflict
line 3532: bytes = PNGEncoder.encode ( bitmapDataBuffer, 1 );
line 3843: var bytes:ByteArray = PNGEncoder.encode ( capture, 1 );
I am really reaching out here. I hope that this works with flash CS5.
Can i generate client side pdf?
I was wondering if there is a way to draw a shape with no fill. I have not had any luck setting the thickness to 0 in setLineStyle() and when I set the opacity to 0 the shape gets drawn with an opacity of 0.
I love this library by the way!!!
can you add headers and footers -docs say to override header and footer methods but I always get an incompatible override error am using 1.5
a workable code snippet would be helpful
Your email is never published nor shared. Required fields are marked *