Skip to content

New SEO tool

April 30, 2015

Yesterday I launched a new tool: A bulk URL checker to check the response codes of the pages on your website. This tool is free to use and will provide you with a clear overview of all checked files, all errors and redirects. The tool will be enhanced with some other neat features for all your SEO stuff.

Please feel free to use the tool as much as you like. The only thing I ask in return is spreading the word 🙂

Thanks a lot!

Easy sound volume and fading in Flex with ExtendedSound

August 28, 2009

Paul Bijl from mas•outreach created an easy to use Sound class for which gives you easy fading capabilities and volume setting without a SoundTransform and SoundChannel. The class itself creates these needed classes.

The ExtendedSound class enables easy setting of volume and gives you fading capabilities.


Add high resolution images to your PDF (AlivePDF)

August 28, 2009

With AlivePDF you can create PDF files with Flex. It’s a great library with much options. But how to add images to your PDF? There are 2 basic options you can use to add images to the PDF:

  • Using an embedded JPG or PNG (remember: without transparency)
    myPDF.addImageStream( new EmbeddedImage() as ByteArray, 0, 0, 500, 500, 1, ResizeMode.NONE);
  • Using a DisplayObject from within your application (charts, buttons, vbox’s, etc.)
    myPDF.addImage(DisplayObject, 0, 0, 500, 500, ImageFormat.PNG);

When you add a DisplayObject to the PDF as seen above, it will generate a low resolution ImageSnapshot. But what if you want a high resolution ImageSnapshot of your, let’s say, charts? Then you need to create the ImageSnapshot yourself:

  • By using the JPEGEncoder
    var image:ImageSnapshot = ImageSnapshot.captureImage(DisplayObject, 300, new JPEGEncoder());
  • By using the PNGEncoder
    var image:ImageSnapshot = ImageSnapshot.captureImage(DisplayObject, 300, new PNGEncoder());

This wil return an ImageSnapshot, with a ByteArray in it’s data property ( Now you can add this high quality snapshot to the PDF:

  • myPDF.addImageStream(, 0, 0, image.width, image.height);

Try to avoid the Flex JPGEncoder when you want to encode high resolution images, it will take a long time and block your browser. Instead, use an Asynchronous JPG Encoder as explained (and source code) by Switch on the Code.

Note: when you use PNGEncoder, be aware of DisplayObjects which have transparency. If you want to add a snapshot to the PDF with transparency, it’ll return an error. If anyone has the solution to this problem (high resolution PNG snapshot without transparency), please let me know.