What steps will reproduce the problem?
1. Import a high resolution Image (6000px wide?)
2. Generate PDF
3. Observe Error
What is the expected output? What do you see instead?
Want to see a PDF, instead an error occurs. "An Error has Occurred." on the PHP
page.
What version of the product are you using? On what operating system?
1.4.6 Alive PDF
Flash Cs3
Please provide any additional information below.
Code:
var DummyImageRequest:URLRequest = new URLRequest("highrespic.jpg");
DummyImageLoader.load(DummyImageRequest);
-when loaded.. an event listener puts the following code in action-
var DummyImageBitmap = Bitmap(DummyImageLoader.content);
var ValidBitmapData:BitmapData = DummyImageBitmap.bitmapData;
var bkgPNG:ByteArray = PNGEncoder.encode(ValidBitmapData, 1);
-myPDF is a custom sized page, matching dimensions of the imported high res pic-
myPDF.addImageStream(bkgPNG,0,0,0,0,1,ResizeMode.FIT_TO_PAGE,"Normal",true,'');
This code loads fine, and when generate is tapped, it comes back from the php
page, 'An Error
Has Occured.' If I downsize the image to a lower dpi, the error goes away, I'm
left with a happy
little PDF, and all is grand. Heres the problem; I NEED to have the image at
its full size, 300dpi.
The images is about 20inches by 15inches, about 6000px by 4500px.
Any Ideas? This code works perfect, but dies when the pic gets so high in size.
Original issue reported on code.google.com by MoveAnim...@gmail.com on 10 Feb 2009 at 7:13
Original issue reported on code.google.com by
MoveAnim...@gmail.com
on 10 Feb 2009 at 7:13