AlivePDF is an open-source ActionScript 3 (Flash, Flex, AIR) PDF generation library. It allows you to generate PDF’s on the client-side.
You can use AlivePDF with Flash, Flex and Adobe AIR applications. Some sample codes can be found here.

There also few tutorials about using it with AIR and Flex here.
Requirements: ActionScript 3
Compatibility: Flash, Flex and AIR
Degrafa is a declarative graphics framework fo Flex which aims:
- Bringing the graphics classes up a level to provide a common ground between developer and designer within Flex
- Enabling the graphics classes to become first class citizens within the Flex framework.
- Minimizing the learning curve of Flex graphics development.
Degrafa allows you to use MXML markup to draw shapes, make complex graphics, create skins and also includes advanced CSS support.

Rather than ActionScript, MXML is easier to read an learn, specially for a designer’s point of view.
There are great samples of what can be done with Degrafa here.