Hi All,
I'm trying to load PDF in flex 4.5. But facing some issues. Say the pdf is not resizing for its parent. I am attaching the screen shot of it. Also the code for loading is here.
Please anybody help me in fixing this.
I'm trying to load PDF in flex 4.5. But facing some issues. Say the pdf is not resizing for its parent. I am attaching the screen shot of it. Also the code for loading is here.
Code:
<s:Group horizontalCenter="0"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Script>
<![CDATA[
import flash.html.HTMLLoader;
import mx.core.UIComponent;
private var _html:HTMLLoader = null;
private var _wrapper:UIComponent = null
public function loadContent():void
{
var filePath:String = "table.pdf";
if(!_html)
{
_html = new HTMLLoader();
_html.height = this.height;
_html.width = this.width;
_wrapper = new UIComponent();
_wrapper.percentHeight = 100;
_wrapper.percentWidth = 100;
_wrapper.addChild(_html);
this.addElement(_wrapper);
}
_html.load(new URLRequest(filePath));
}
]]>
</fx:Script>
</s:Group>
Please anybody help me in fixing this.