Browse Prior Art Database

A Method for Displaying PDF Document in Flex UI without Modifying HTML Template File

IP.com Disclosure Number: IPCOM000201493D
Publication Date: 2010-Nov-11
Document File: 3 page(s) / 45K

Publishing Venue

The IP.com Prior Art Database

Related People

Pin Zhang: INVENTOR

Abstract

Disclosed is a novel approach to displaying a portable document format (PDF) document in a fast lexical analyzer generator (Flex) user interface (UI) without modifying the hypertext markup language (HTML) template file. The disclosed method achieves the desired functionality by injecting the inline frame (IFrame) element into the HTML document as it processes. This removes the need to bring the main application offline and then redeploy it, improving both the portability and reusability of the PDF displaying module.

This text was extracted from a Microsoft Word document.
This is the abbreviated version, containing approximately 54% of the total text.

Title

A Method for Displaying PDF Document in Flex UI without Modifying HTML Template File

Inventor/Author

Pin Zhang

Summary

Disclosed is a novel approach to displaying a portable document format (PDF) document in a fast lexical analyzer generator (Flex) user interface (UI)  without modifying the hypertext markup language (HTML) template file. The disclosed method achieves the desired functionality by injecting the inline frame (IFrame) element into the HTML document as it processes. This removes the need to bring the main application offline and then redeploy it,  improving both the portability and reusability of the PDF displaying module.

Background

Current methods of displaying the content of portable document format (PDF) documents within a fast lexical analyzer generator (Flex) application user interfaces (UI) rely on the inline frame (IFrame) element and some manipulating JavaScript* codes, defined in the hypertext markup language (HTML) file, which are holding the Flash** media object of the Flex application. The IFrame element and JavaScript codes have to be defined and written into HTML files prior to the compilation of Shockwave Flash (SWF) files, since the Flex application cooperates with them by explicitly invoking JavaScript function names, which have to be defined prior to being used in Flex code.

The above mechanism leads to a lack of reusability and portability for the “PDF display” Flex module, specifically when the module is intended to be compiled as a stand-alone SWF file and loaded as a sub-application. Each time users want to adopt the module into a new Flex application, they must bring the application offline to modify the HTML files and redeploy the application. This method of reusing a sub-application sacrifices the advantage of loading sub-applications at runtime without suspending the main application.

Prior Art/Solutions

Prior methods define an IFrame element for displaying a PDF by hard-coding directly into the HTML files which hold the SWF object of the Flex application. (e.g., in the file "index.html"):

<body>

<div id="myFrame" style="position:absolute;background-color:transparent;border:0px;visibility:visible;z-index:1;"></div>

</body>

The JavaScript used for manipulating the IFrame is also hard coded directly into HTML files or js files (e.g. in the file "index. html" or "displayPDF.js"):

<script language="JavaScript" type="text/javascript">

function loadIFrame1(url){

//alert("Start load iframe...");

document.getElementById("myFrame").style.visibility

="visible";

document.getElementById("myFrame").innerHTML =

"<iframe id='myIFrame' src='" + url +

"'frameborder='0'></iframe>";

//alert("End load iframe.");

}

</script>

Description

The disclosed solution is a novel a...