riadvice / AlivePDF

[Official AlivePDF] - AlivePDF is a client side AS3 PDF generation library for Adobe Flash, Flex and AIR
https://riadvice.github.io/AlivePDF/
32 stars 6 forks source link

Use addImage more than once #212

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. myPDF.addImage(map, new Resize
(Mode.NONE,Position.CENTERED),0.75,1.5,10.5,5.5,0,1,true,"PNG",100,BlendMod
e.NORMAL);
 This will print out as expected, however, when I add another addImage 
line like:
myPDF.addImage(ldr, new Resize
(Mode.NONE,Position.CENTERED),0.75,1.5,10.5,5.5,0,1,true,"BMP",100,BlendMod
e.NORMAL);
 The PDF will not be created.
2. I called ldr from a loader function:
        public function imageLoader():void
        {   
                var ldr:Loader = new Loader();
        //       ldr.mask = rect;
                 var url:String 
= "http://www.co.outagamie.wi.us/planning/OLI/OfficialOLIblack.bmp";
                 var urlReq:URLRequest = new URLRequest
(url);
                 ldr.load(urlReq);
                 addChild(ldr);
        }
3.

What is the expected output? What do you see instead?
I would like to see the map image and my logo image on the same PDF page. 
Instead when adding the second addImage line, the process fails without 
error.

What version of the product are you using? On what operating system?
0.1.4.9
XP
Please provide any additional information below.
The map object is the standard object used with ESRI's ArcGIS server Flex 
API.

Original issue reported on code.google.com by behli...@co.outagamie.wi.us on 25 Mar 2010 at 8:29

GoogleCodeExporter commented 9 years ago
Is it a crossdomain security issue? If you run with the debugging player you 
should see 
a SecurityError.

Original comment by dro...@gmail.com on 12 May 2010 at 1:50