mesaglam / alivepdf

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

Scaled DisplayObjects cannot be display in generated PDF #42

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Scale a MovieClip either on stage or with obj.scaleX, obj.scaleY 
2. Add the MovieClip via addImage()
3. Attempt to create the PDF and view it

What is the expected output? What do you see instead?
Expect to see the MovieClip scaled in the PDF at the desired position.
Instead, the MovieClip is nowhere to be found. I tried nesting the scaled
movie inside another MovieClip to no avail.

What version of the product are you using? On what operating system?
v0.1.4
OS X 10.5.2

Please provide any additional information below.

var myPDF:PDF = new PDF ( Orientation.PORTRAIT, Unit.MM, Size.LETTER );
myPDF.setDisplayMode( Display.FULL_PAGE, Layout.SINGLE_PAGE ); 
myPDF.addPage();

myMovieClip.scaleX = 0.9;
myMovieClip.scaleY = 0.9;

myPDF.addImage (myMovieClip, 1 , null, null, false, ImageFormat.JPG, 100,
0, 0, 0, 0);

var f:FileStream = new FileStream();
var file:File = File.desktopDirectory.resolvePath("generated.pdf");
f.open( file, FileMode.WRITE);
var bytes:ByteArray = myPDF.savePDF(Method.LOCAL);
f.writeBytes(bytes);
f.close();

Original issue reported on code.google.com by dave.ort...@gmail.com on 29 Apr 2008 at 10:28

GoogleCodeExporter commented 9 years ago
Hi dave,

This bug has been fixed in the forthcoming release.

Thanks for tracking ;)

Original comment by thibault.imbert on 2 May 2008 at 1:40