mrchnk / alivepdf

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

addImage() dont work, it creates a white rectangle always #133

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
var miPDF:PDF = new PDF(Orientation.PORTRAIT, Unit.POINT, Size.A4);
miPDF.addPage();
miPDF.setFont(FontFamily.HELVETICA, "", 20);
miPDF.addText("GameStudio of Basketball", 150, 50);

miPDF.textStyle(new RGBColor(0x000099));
miPDF.setFont(FontFamily.ARIAL, "", 12);
miPDF.addText("Prueba de texto con alivePDF. Este texto tiene que salir en 
azul", 20, 100);
miPDF.textStyle(new RGBColor(0x009900));
miPDF.setFont(FontFamily.ARIAL, "", 17);
miPDF.addText("Segundo texto: Este segundo texto debería de salir en verde 
y tener un tamaño de letra mayor", 20, 150);
miPDF.textStyle(new RGBColor(0x990000));
miPDF.setFont(FontFamily.ARIAL, "", 17);
miPDF.addText("El siguiente texto deberia salir en rojo y tener un tamaño 
de 30", 20, 205);

var im:Image = new Image();
im.source = "images/hombre_grande.jpg";
im.width = 200;
im.height = 200;
miPDF.setDisplayMode(Display.FULL_PAGE,   Layout.SINGLE_PAGE );
miPDF.addImage(im);

What is the expected output? What do you see instead?
The created pdf doesnt show the image, but in his stead shows a white 
rectangle over the text. I try it with panels, Canvas... everything! but 
alivepdf doesnt export the images... :(

What version of the product are you using? On what operating system?
My version is alivepdf 0.1.4.8 and I use Windows Vista

Please provide any additional information below.

Original issue reported on code.google.com by laura6ks...@gmail.com on 15 Jun 2009 at 4:17

Attachments:

GoogleCodeExporter commented 9 years ago
Please... I can't export a image, I need urgent help because I'm making a 
project 
and the time's ending...

Original comment by laura6ks...@gmail.com on 22 Jul 2009 at 9:29

GoogleCodeExporter commented 9 years ago
Hi,
Same for me. I think, It's an issue.
When I add individual/ one component(button etc), it works fine. but If I add a
custom component with some childrens, It shows white rectangle overlaping other
design in PDF.
I tried changing all properties.. like.. ResizeMode.FIT_TO_PAGE, ImageFormat etc
Here is the sample code.

// PrintView1 is having Panel and winside panel,labels, and textArea
var tmp:PrintView1 = new PrintVie1();
        myPDF.addImage(tmp,10,30,null,null,ImageFormat.JPG,100,1,ResizeMode.FIT_TO_PAGE);

Original comment by sharma4r...@gmail.com on 25 Aug 2009 at 4:42

GoogleCodeExporter commented 9 years ago
hi! what libraries do you import in flash to use jpeg method?

Thanks!

Original comment by kaiscen...@gmail.com on 2 Dec 2009 at 9:25

GoogleCodeExporter commented 9 years ago
I think you need to embed that image and use addImageStream().
addImage() is only for UI-Components that you use in your application

Original comment by Heringsf...@gmail.com on 18 Jan 2010 at 1:33