govenlive / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

Add addEncodedImage as a new method to the PDF class #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using a modified version of the corelib JPG encoder that includes
progress information (JPG is encoded in chunks, using progress for each
chunk so that the encoding is non-blocking).

I would prefer the ability to just pass in a raw ByteArray that is already
encoded at a specific format, and pass the format as a string to the
addImage method.

For example:

addImage ( image:ByteArray, pMatrix:Matrix=null, pResizePage:Boolean=false,
pEncoding:String="JPG", pQuality:Number=100, pX:Number=0, pY:Number=0,
pWidth:Number=0, pHeight:Number=0, pLink:String='' )

This function would check the encoding type to verify that it is a valid
format.

Original issue reported on code.google.com by bustb...@gmail.com on 10 Oct 2007 at 1:05

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi bustback,

True, this is a modification that I wanted to add in the next releases. This 
would
let people load any raw ByteArray and embed it directly into the PDF, much 
better.

Thanks for tracking, expect this update it the next release coming soon 

Original comment by thibault.imbert on 10 Oct 2007 at 11:00

GoogleCodeExporter commented 9 years ago
This would be a most excellent feature.  I'm working on a project right now that
requires me to send off the byteArray to a PHP script, save the image down, and 
then
pick it back up in Flash.  It would be great to cut out the PHP middleman. :)

Original comment by evanbooth@gmail.com on 25 Mar 2008 at 8:36

GoogleCodeExporter commented 9 years ago
It would be very nice to habe this feature! Because I need it too? Do you know 
when
there is coming the next release??

Original comment by isabelma...@googlemail.com on 2 Apr 2008 at 9:21

GoogleCodeExporter commented 9 years ago
This would indeed be a nice enhancement.
I've modified PDF.as to use the by.blooddy.crypto.image.* encoders.
These encoders are really superfast!

You can download these here:
http://www.blooddy.by/en/crypto

Original comment by wttewaall on 15 Sep 2010 at 1:44