my code to display PDF is this:
pdf = new File(File.applicationDirectory.resolvePath("images/" +
Global.selectedPDF).nativePath).url;
stageWebView = new StageWebView();
stageWebView.stage = this.stage;
stageWebView.viewPort = new Rectangle(0, 87, 715, 606);
stageWebView.loadURL(pdf);
When i run above code i get this result
<http://apache-flex-users.2333346.n4.nabble.com/file/n6367/1.png>
but when i change this line to
stageWebView.viewPort = new Rectangle(305, 87, 715, 606);
i get this result:
<http://apache-flex-users.2333346.n4.nabble.com/file/n6367/2.png>
my stagewebview size is the same but the pdf content has beyond the boundary
of stagewebview
how can i fix this?
--
View this message in context:
http://apache-flex-users.2333346.n4.nabble.com/Re-Displaying-HTML-content-in-Flex-Mobile-Application-tp6364p6367.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.