Unlock instant, AI-driven research and patent intelligence for your innovation.

Browser-based OFD document analysis and display method and system

A browser and document technology, applied in the field of OFD reading, can solve the problems of high server pressure, high deployment and maintenance costs, and reduce the analysis pressure.

Pending Publication Date: 2020-10-13
TIANGU INFORMATION SCI TECH HANGZHOU
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] For example, the patent application publication number is CN107943915A, and the title of the invention is "Method and device for online display of OFD files based on HTML5"; The main disadvantages of setting up the server are: (1) a server needs to be deployed, and the cost of deployment and maintenance is high; (2) the server decompresses and parses the OFD document, and converts it into the data structure required by the browser. In this case, the pressure on the server will be very high

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Browser-based OFD document analysis and display method and system
  • Browser-based OFD document analysis and display method and system
  • Browser-based OFD document analysis and display method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036]为了达成OFD文档的浏览器阅读目的,本发明提供了一种基于浏览器的轻量级的OFD文档解析展示的方法及系统。

[0037]如图1所示,所述基于浏览器的OFD文档解析展示的系统,是使用 JavaScript编程语言编写的一套OFD文档解析展示系统,能够通过HTML 的标签被浏览器页面集成调用。

[0038]其包括接口层、渲染层、解析层、文件层。

[0039]所述接口层,包括getDocument接口、getPage接口、getSignatures接口和render接口,用于提供OFD文档解析、渲染能力给外部调用;

[0040]所述渲染层,与接口层的render接口相连接,基于HTML5的canvas (浏览器的canvas标签提供了在网页上绘制图形图像的能力)提供文本、图片、图形等的渲染能力;

[0041]所述解析层,与接口层的getPage接口、getSignatures接口相连接,提供OFD文档、页面、字体、图片、印章等的解析能力;

[0042]所述文件层,与接口层的getDocument接口相连接,提供远程和本地 OFD文档的读取、解压能力。

[0043]本系统能够完全脱离服务器端独立运行,能够快速查看本地和远程OFD 文件,在浏览器端完成OFD文档的解析和渲染,支持异步方式按需解析和渲染,提升大文档打开的速度。

[0044]如图2所示,在基于浏览器的OFD文档解析展示的系统的基础上,对应的基于浏览器的OFD文档解析展示的方法,包括以下步骤:

[0045]S1:使用方调用getDocument接口读取远程或者本地OFD文档;

[0046]S2:本系统读取文件流,解压OFD文档,缓存到内存中;

[0047]S3:本系统解析层从内存获取解压后的OFD文档的页结构信息、文档级和公共级资源,并将这些OFD基础数据返回给调用方;所述解析层负责解析OFD文档中的xml、字体(包括WOFF、OTF、TTF等字体格式)、图片(包括bmp、png、jpg、gif、jb2、jp2等图片格式)、印章等文件;

[0048]S4:使用方根据返回的页结构信息,以页面维度调用getPage接口,解析OFD页面内容,解析后的页面数据返回给使用方;

[0049]S5:使用方根据返回的页面数据,调用getSignatures接口,可以解析 OFD文档中的印章信息并返回给调用方,印章规范支持国家政务服务平台标准...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a browser-based OFD document analysis and display method and system. The architecture of the system comprises an interface layer, a rendering layer, an analysis layer and a filelayer. Wherein the interface layer provides OFD document analysis and rendering capabilities for external calling; the rendering layer provides rendering capability of texts, pictures, graphs and thelike based on canvas; the analysis layer provides the analysis capability of OFD documents, pages, fonts, pictures, seals and the like; and the file layer provides reading and decompressing capabilities of remote and local OFD documents. The system can completely run independently without a server side, local and remote OFD files can be rapidly checked, analysis and rendering of the OFD files arecompleted at a browser side, asynchronous analysis and rendering as required are supported, and the opening speed of large files is increased.

Description

technical field [0001] The present invention relates to an OFD reading method and system, in particular to a browser-based method and system for parsing and displaying OFD documents. Background technique [0002] On October 14, 2016, World Standards Day, the National Standardization Management Committee officially approved the release of the national standard GB / T 33190-2016 "Format Document for Electronic File Storage and Interchange" (OFD) based on independent technology. Layout document is an electronic document with a fixed layout effect. Its display effect is independent of software and hardware platforms, and it has strong consistency when reading, printing or printing on various devices. At present, the application range of layout electronic documents is becoming more and more extensive, and has become an important part of electronic documents, a national strategic resource. It can be said that the layout document format is the "digital paper" of the computer age. In...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/957G06F40/106
CPCG06F16/957G06F40/106
Inventor 梁烨慧魏鹏刘海洋施筱璐
Owner TIANGU INFORMATION SCI TECH HANGZHOU
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More