sivarajankumar / alivepdf

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

error 2015 #91

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have a problem. I can't add a displayObject(canvas) into my PDF with the
method addImage. It generate an error 2015!!

this is my code:

myPDF = new PDF(  Orientation.PORTRAIT, Unit.MM, Size.LETTER );
myPDF.setDisplayMode ( Display.FULL_WIDTH); 
myPDF.addPage();
myPDF.addImage(canvasName);
myPDF.save( Method.REMOTE, "URL", "name.pdf" );

does someone know where is the problem??

Thank you for helping

Original issue reported on code.google.com by nounour...@gmail.com on 23 Oct 2008 at 2:03

GoogleCodeExporter commented 8 years ago
Please, HELP ME

Original comment by nounour...@gmail.com on 31 Oct 2008 at 8:34

GoogleCodeExporter commented 8 years ago
Hi nounours,

What is the size of your canvas ?

best,

Thibault

Original comment by thibault.imbert on 4 Nov 2008 at 8:59

GoogleCodeExporter commented 8 years ago
the with is 800 px and the high is not define.

I thank you for your help but I have found another solution

Original comment by nounour...@gmail.com on 5 Nov 2008 at 11:18

GoogleCodeExporter commented 8 years ago
Hi,
I am new to alivePDF, I used canvas and adding Text in canvas as child but 
generated
PDF is blank. I am not able to find out, what I am missing...Can anybody help.
                var canvas:Canvas = new Canvas();
            canvas.width = 300;
            canvas.height =  500;
            canvas.setStyle('backGroundColor','#FFCC00');
            var txt:Text = new Text();
            txt.text ="This is the sameple text.";
            canvas.addChild(txt);
            this.pdf.addImage(canvas,0,0,300,500);
                save();

private function save():void{

pdf.save(Method.REMOTE,"http://alivepdf.bytearray.org/wp-content/demos/create.ph
p","Flash.pdf");
    }

Original comment by sharma4r...@gmail.com on 21 Aug 2009 at 3:24