Hi
Since I was writing a book, It's been a long time since AlivePDF had been updated, I am happy to post this 0.1.4.1 release.
I was not able to release the 0.1.5 right now, but this release will come in the following weeks
For the moment, I decided to release this new 0.1.4.1 release which includes some cool new features especially Image Stream support for the 300 dpi people
:
New features :
- Image Stream support :
Now, you can embed an image as a ByteArray, this allows you to embed high quality images (300 dpi) to the PDF :
For the moment only JPG images are supported, I will add PNG support in the following days
- Page Class :
Here is a brand new org.alivepdf.pages.Page class to handle pages, which is used with the addPage method.
Here is how to add a new page since this new release :
To create a custom page size, you would use the following code :
If you trace a Page object, the page describes itself automatically
When writing complex pages, you can save some time by cloning the page with the clone() method :
The new page model introduces a bunch of new methods like gotoPage :
The getPages() method returns an array of pages :
- New events :
When a page is added, a PageEvent.ADDED event is dispatched :
To monitor the PDF generation, the following events are dispatched in the following order :
- New saving method :
You can now save the PDF as a base 64 string :
Things fixed :
A lot of bugs fixed, from euro (€) support, to addCell bugs, and scaled objects with the addImage method. I can not list everything
Documentation has been updated, I have also included an AIR application example.
Download this new 0.1.4.1 version here
I am also working on non-blocking JPG compression and HTML support for the next release.