CN1326071C - Electronic file display processing method and system - Google Patents
Electronic file display processing method and system Download PDFInfo
- Publication number
- CN1326071C CN1326071C CNB2003101030190A CN200310103019A CN1326071C CN 1326071 C CN1326071 C CN 1326071C CN B2003101030190 A CNB2003101030190 A CN B2003101030190A CN 200310103019 A CN200310103019 A CN 200310103019A CN 1326071 C CN1326071 C CN 1326071C
- Authority
- CN
- China
- Prior art keywords
- display
- electronic file
- window
- data object
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 15
- 239000011159 matrix material Substances 0.000 claims abstract description 37
- 238000000034 method Methods 0.000 claims abstract description 14
- 238000010586 diagram Methods 0.000 claims description 24
- 230000008030 elimination Effects 0.000 claims description 9
- 238000003379 elimination reaction Methods 0.000 claims description 6
- 230000004913 activation Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 238000009877 rendering Methods 0.000 description 1
Images
Landscapes
- Controls And Circuits For Display Device (AREA)
- Document Processing Apparatus (AREA)
Abstract
Description
技术领域technical field
本发明是关于一种计算机信息技术,特别是关于一种电子文件显示处理方法及系统,可搭载至信息平台,例如Linux操作系统下的信息平台,用以对特定格式的电子文件的字符串,例如PDF(PortableDocument Format)格式的电子文件的字符串,进行特定方式的显示处理,将PDF电子文件的内容,包括文字、图形、表格等,通过一种特定的窗口,例如QT窗口,显示于计算机屏幕上,它可消除所显示文件内容中的空白部分,使显示出来的文件内容具有更加美观的排版效果。The present invention relates to a computer information technology, in particular to a method and system for displaying and processing electronic files, which can be carried on an information platform, such as an information platform under the Linux operating system, to record strings of electronic files in a specific format, For example, the character string of an electronic file in PDF (PortableDocument Format) format is displayed in a specific way, and the content of the PDF electronic file, including text, graphics, tables, etc., is displayed on the computer through a specific window, such as a QT window. On the screen, it can eliminate the blank part in the displayed file content, so that the displayed file content has a more beautiful typesetting effect.
背景技术Background technique
PDF(Portable Document Format)是一种广泛用于政府及商业组织的电子文件格式,其具有跨平台的特性,因此可显示在不同的计算机信息平台上,例如Linux、Windows、Unix操作系统下的计算机信息平台,让使用不同信息平台的政府及商业组织或使用者之间能够方便地交换文件资料。PDF (Portable Document Format) is an electronic file format widely used in government and commercial organizations. It has cross-platform characteristics, so it can be displayed on different computer information platforms, such as computers under Linux, Windows, and Unix operating systems The information platform allows government and commercial organizations or users using different information platforms to exchange documents conveniently.
然而,将PDF电子文件通过不同的窗口显示时,例如通过QT窗口显示时,PDF电子文件中的一些内定格式常无法按所需的方式显示在QT窗口中。例如,大部分的PDF电子文件中均包括有许多的框架,这些框架显示在QT窗口时,通常在显示页面上存在许多空白部分,使显示页面的整体排版不美观。However, when the PDF electronic file is displayed through different windows, for example, when displayed through the QT window, some default formats in the PDF electronic file often cannot be displayed in the QT window in the required manner. For example, most PDF electronic files include many frames. When these frames are displayed in the QT window, there are usually many blank parts on the display page, which makes the overall layout of the display page unattractive.
发明内容Contents of the invention
为克服上述现有技术的缺点,本发明的主要目的在于提供一种电子文件显示处理方法及系统,其可将PDF电子文件的内容通过QT窗口显示在计算机屏幕上时,能够消除显示页面上的空白部分,使显示出来的文件内容具有更美观的排版效果。In order to overcome the above-mentioned shortcoming of prior art, the main purpose of the present invention is to provide a kind of electronic file display processing method and system, when it can display the content of PDF electronic file on the computer screen through QT window, can eliminate display page. The blank part makes the displayed file content have a more beautiful typesetting effect.
基于上述及其他目的,本发明的电子文件显示处理方法及系统可搭载至信息平台,例如Linux操作系统下的信息平台,对一种特定格式的电子文件的字符串,例如PDF(Portable Document Format)格式的电子文件的字符串,进行特定方式的显示处理,借此将PDF电子文件的内容,包括文字、图形、表格等,通过一种特定的窗口,例如QT窗口,显示于计算机屏幕上。Based on the above and other purposes, the electronic document display processing method and system of the present invention can be carried on an information platform, such as an information platform under the Linux operating system, for a character string of an electronic document in a specific format, such as PDF (Portable Document Format) The character string of the electronic file in PDF format is displayed in a specific way, so that the content of the PDF electronic file, including text, graphics, tables, etc., is displayed on the computer screen through a specific window, such as a QT window.
本发明的电子文件显示处理系统至少包括:读取模块,可读取该电子文件的字符串,取得该电子文件中所包含的各个数据对象及其相关的显示属性;显示窗口建立模块,可在该窗口中建立显示窗口,在该显示窗口中显示该电子文件的内容;点矩阵图建立模块,可在该显示窗口中建立点矩阵图;数据对象描绘模块,可将该读取模块所读取到的各个数据对象,根据其相关的显示属性描绘至该点矩阵图上;空白消除模块,可在该数据对象描绘模块在描绘过程中发现某一个数据对象的旁侧存在空白部分时,空白消除模块被激活以将该数据对象的左上角位置和右下角位置大致重叠至其显示框架的左上角坐标和右下角坐标,借此消除该空白部分;接着令该数据对象描绘模块将消除空白后的数据对象的内容描绘至该点矩阵图上;以及显示控制模块,可将该数据对象描绘模块所描绘完成的点矩阵图,通过该窗口显示在该计算机信息平台的屏幕上。The electronic file display processing system of the present invention at least includes: a reading module, which can read the character string of the electronic file, and obtain each data object contained in the electronic file and its related display attributes; a display window building module, which can A display window is established in the window, and the content of the electronic file is displayed in the display window; a dot matrix diagram establishment module can establish a dot matrix diagram in the display window; a data object drawing module can be read by the reading module Each data object obtained is described on the dot matrix diagram according to its related display attributes; the blank elimination module can eliminate the blank when the data object drawing module finds that there is a blank part on the side of a certain data object during the drawing process The module is activated to roughly overlap the upper left corner position and the lower right corner position of the data object to the upper left corner coordinates and the lower right corner coordinates of its display frame, thereby eliminating the blank part; then the data object drawing module will eliminate the blank part The content of the data object is drawn on the dot matrix diagram; and the display control module can display the dot matrix diagram drawn by the data object drawing module on the screen of the computer information platform through the window.
本发明的电子文件显示处理方法至少包括:读取该电子文件的字符串,取得该电子文件中所包含的各个数据对象及其相关的显示属性;在该窗口中建立显示窗口;在该显示窗口中建立点矩阵图;将读取到的各个数据对象根据其相关的显示属性描绘至该点矩阵图上;若发现某一个数据对象的旁侧存在空白部分时,则将该数据对象的左上角位置和右下角位置大致重叠至其显示框架的左上角坐标和右下角坐标,借此消除该空白部分;接着将消除空白后的数据对象的内容描绘至该点矩阵图上;以及将描绘完成的点矩阵图通过该窗口显示在计算机信息平台的屏幕上。The electronic file display processing method of the present invention at least includes: reading the character string of the electronic file, obtaining each data object contained in the electronic file and its related display attributes; establishing a display window in the window; Create a dot matrix diagram; draw each data object read on the dot matrix diagram according to its related display attributes; if there is a blank part on the side of a certain data object, then the upper left corner of the data object The position and the lower right corner position roughly overlap to the coordinates of the upper left corner and the lower right corner of the display frame, thereby eliminating the blank part; then, the content of the data object after the blank is eliminated is drawn on the dot matrix; and the drawn The dot matrix diagram is displayed on the screen of the computer information platform through this window.
综上所述,本发明的电子文件显示处理方法及系统可消除所显示文件内容中的空白部分,使显示出来的文件内容具有更加美观的排版效果。To sum up, the electronic document display processing method and system of the present invention can eliminate the blank part in the displayed document content, so that the displayed document content has a more beautiful typesetting effect.
附图说明Description of drawings
图1是本发明电子文件显示处理方法及系统的对象导向组件模型的系统结构示意图;Fig. 1 is a schematic diagram of the system structure of the object-oriented component model of the electronic file display processing method and system of the present invention;
图2是本发明电子文件显示处理方法及系统所执行的空白消除程序的运算方法的流程图;Fig. 2 is the flowchart of the calculation method of the blank elimination program executed by the electronic file display processing method and system of the present invention;
图3A是现有显示处理方法所显示文件内容中的空白部分的示意图;Fig. 3A is a schematic diagram of a blank part in the content of the file displayed by the existing display processing method;
图3B是本发明显示处理方法将空白部分消除后的范例的示意图。FIG. 3B is a schematic diagram showing an example of the blank portion eliminated by the processing method of the present invention.
具体实施方式Detailed ways
实施例Example
以下即配合附图,详细说明本发明的电子文件显示处理方法及系统的实施例。Embodiments of the electronic file display processing method and system of the present invention will be described in detail below with reference to the accompanying drawings.
图1是本发明电子文件显示处理系统(如标号100所指的虚线框包括的部分)的对象导向组件模型(object-oriented component model)的基本结构。如图所示,在实际应用上,本发明的电子文件显示处理系统100搭载至计算机信息平台10,例如Linux操作系统下的计算机信息平台,对一种特定格式的电子文件20的字符串,例如PDF(PortableDocument Format)格式的电子文件20的字符串,进行一特定方式的显示处理,借此将该电子文件的内容,包括文字、图片、表格等,通过一种特定的窗口,例如QT窗口,显示于计算机信息平台10的计算机屏幕11上;它可消除所显示文件内容中的空白部分,使显示出来的文件内容具有更美观的排版效果。Fig. 1 is the basic structure of the object-oriented component model (object-oriented component model) of the electronic document display processing system of the present invention (the part included in the dotted line frame indicated by the label 100). As shown in the figure, in practical applications, the electronic file display processing system 100 of the present invention is carried on a computer information platform 10, such as a computer information platform under the Linux operating system, for a character string of an electronic file 20 in a specific format, such as The character string of the electronic file 20 in the PDF (PortableDocument Format) format is displayed in a specific manner, whereby the content of the electronic file, including text, pictures, tables, etc., is passed through a specific window, such as a QT window, Displayed on the computer screen 11 of the computer information platform 10; it can eliminate the blank part in the displayed file content, so that the displayed file content has a more beautiful typesetting effect.
本发明的电子文件显示处理系统100的对象导向组件模型至少包括:(a)读取模块110;(b)显示窗口建立模块120;(c)点矩阵图建立模块130;(d)数据对象描绘模块140;(e)空白消除模块150;以及(f)显示控制模块160。The object-oriented component model of the electronic document display processing system 100 of the present invention at least includes: (a) reading module 110; (b) display window building module 120; (c) point matrix diagram building module 130; (d) data object depiction Module 140 ; (e) Blank Elimination Module 150 ; and (f) Display Control Module 160 .
读取模块110用以读取PDF电子文件20的字符串,以取得该PDF电子文件20中的所有数据对象(例如文字、图形、表格等),以及这些数据对象的相关显示属性,包括文字格式(字型、样式、尺寸、颜色等)、图形显示属性、表格显示属性等。The reading module 110 is used to read the character string of the PDF electronic file 20, to obtain all data objects (such as text, graphics, tables, etc.) in the PDF electronic file 20, and the relevant display attributes of these data objects, including text (font, style, size, color, etc.), graphic display properties, table display properties, etc.
显示窗口建立模块120可在QT窗口中建立显示窗口,通过该显示窗口显示该PDF电子文件20的内容。此显示窗口建立模块120是利用,例如X Window的Xlib中的XcreateGC来建立,并将其中的各项窗口图形显示属性、包括前景色、背景色、线宽等,储存于绘图环境(GraphicContext,GC)中。The display window creation module 120 can create a display window in the QT window, and display the content of the PDF electronic file 20 through the display window. This display window establishment module 120 is to utilize, for example XcreateGC in the Xlib of X Window to establish, and wherein each window graph display property, comprises foreground color, background color, line width etc., is stored in drawing environment (GraphicContext, GC )middle.
点矩阵图建立模块130可用来建立点矩阵图131,利用此点矩阵图131描绘出该PDF电子文件20的内容,包括文字、图形、表格等。此点矩阵图建立模块130是利用,例如Xlib中的XcreatePixmap来建立。The dot matrix image building module 130 can be used to create a dot matrix image 131, and use the dot matrix image 131 to describe the content of the PDF electronic file 20, including text, graphics, tables and so on. The dot matrix map creation module 130 is created by using, for example, XcreatePixmap in Xlib.
数据对象描绘模块140可将上述读取模块110从该PDF电子文件20中读取到的各个数据对象,包括文字数据对象、图形数据对象、表格数据对象等,根据各个数据对象的预定的显示属性,以点矩阵方式描绘至上述点矩阵图建立模块130所建立的点矩阵图131上。若数据对象描绘模块140在描绘过程中发现某一个数据对象,例如图3A所示的文字型数据对象30,在框架132中显示时,与框架132的侧边之间存在空白部分31,则会发出一空白消除激活信息至空白消除模块150。The data object rendering module 140 can take each data object read by the reading module 110 from the PDF electronic file 20, including text data objects, graphic data objects, table data objects, etc., according to the predetermined display attributes of each data object , drawn in a dot-matrix manner on the dot-matrix diagram 131 created by the dot-matrix diagram building module 130 described above. If the data object drawing module 140 finds a certain data object during the drawing process, such as the
空白消除模块150可响应上述数据对象描绘模块140发出的空白消除激活信息执行空白消除程序,将该文字型数据对象30的旁侧的空白部分31消除掉。此空白消除程序的基本构想是,将文字型数据对象30的左上角位置(TX1,TY1)和右下角位置(TX2,TY2)重叠至其显示框架132的左上角坐标(X1,Y1)和右下角坐标(X2,Y2),其运算方法如图2所示。消除空白之后,空白消除模块150即会令数据对象描绘模块140将消除空白后的数据对象30描绘至点矩阵图131中。图3B是将图3A中所显示的空白部分31消除后再将文字型数据对象30显示于框架132中的范例。The blank elimination module 150 can execute the blank elimination program in response to the blank elimination activation information sent by the data object drawing module 140 to eliminate the
显示控制模块160可将上述数据对象描绘模块140在该点矩阵图131上以点矩阵方式描绘的文字、图形、表格等,通过QT窗口显示于该计算机信息平台10的屏幕11上。The display control module 160 can display the text, graphics, tables, etc. drawn by the data object drawing module 140 in a dot matrix on the dot matrix diagram 131 on the screen 11 of the computer information platform 10 through the QT window.
在实际操作时,本发明的电子文件显示处理系统100,首先令读取模块110读取PDF电子文件20的字符串,取得该PDF电子文件20中的所有数据对象(例如包括文字、图形、表格等),以及这些数据对象的相关显示属性,包括文字格式(字型、样式、尺寸、颜色等)、图形显示属性、表格显示属性等;并同时激活显示窗口建立模块120,在QT窗口中建立显示窗口,也就是运用预建的绘图环境(Graphic Context,GC),在QT窗口中建立显示窗口;再通过点矩阵图建立模块130来建立点矩阵图131。In actual operation, the electronic file display processing system 100 of the present invention first makes the reading module 110 read the character string of the PDF electronic file 20, and obtains all data objects in the PDF electronic file 20 (such as including text, graphics, tables, etc.) etc.), and the relevant display attributes of these data objects, including text format (font type, style, size, color, etc.), graphic display attributes, table display attributes, etc.; The display window is to use the pre-built drawing environment (Graphic Context, GC) to set up the display window in the QT window; then the point matrix image 131 is established by the point matrix image building module 130.
接着,令数据对象描绘模块140将上述读取模块110从该PDF电子文件20中读取到的各个数据对象,根据各个数据对象的相关显示属性,以点矩阵方式描绘至点矩阵图131上。若数据对象描绘模块140在描绘过程中发现某一个数据对象,例如文字型数据对象30,旁侧存在空白部分31时,即令空白消除模块150执行图2所示的流程,消除该数据对象30旁侧的空白部分31,再接着令数据对象描绘模块140将消除空白后的数据对象30的内容描绘至点矩阵图131上。最后令显示控制模块160将上述数据对象描绘模块140在该点矩阵图131上以点矩阵方式描绘的文字、图形、表格等,通过QT窗口显示在该计算机信息平台10的屏幕11上。Next, let the data object drawing module 140 draw each data object read from the PDF electronic file 20 by the reading module 110 on the dot matrix diagram 131 in a dot matrix manner according to the relevant display attributes of each data object. If the data object drawing module 140 finds a certain data object during the drawing process, such as a
总之,本发明提供了一种新颖的电子文件显示处理方法及系统,其可搭载至信息平台,用以对特定格式的电子文件的字符串进行特定方式的显示处理,借此将该电子文件的内容通过一种特定的窗口显示于计算机屏幕上;其特点在于,可消除所显示文件内容中的空白部分,使显示出来的文件内容具有更美观的排版效果。本发明因此比现有技术具有更佳的进步性及实用性。In a word, the present invention provides a novel method and system for displaying and processing electronic files, which can be mounted on an information platform to display and process the character strings of electronic files in a specific format in a specific way, so that the strings of the electronic files The content is displayed on the computer screen through a specific window; its feature is that it can eliminate the blank part of the displayed file content, so that the displayed file content has a more beautiful layout effect. Therefore, the present invention has better progress and practicality than the prior art.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2003101030190A CN1326071C (en) | 2003-10-29 | 2003-10-29 | Electronic file display processing method and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2003101030190A CN1326071C (en) | 2003-10-29 | 2003-10-29 | Electronic file display processing method and system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1612129A CN1612129A (en) | 2005-05-04 |
| CN1326071C true CN1326071C (en) | 2007-07-11 |
Family
ID=34756497
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB2003101030190A Expired - Fee Related CN1326071C (en) | 2003-10-29 | 2003-10-29 | Electronic file display processing method and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1326071C (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100816184B1 (en) * | 2006-08-10 | 2008-03-21 | 한국전자거래진흥원 | Electronic document storage system that performs immutability and proof of facts of electronic documents, electronic document registration method, reading method, issuance method, transfer method, certificate issuance method |
| CN101923723B (en) * | 2009-06-16 | 2012-11-28 | 汉王科技股份有限公司 | Method for realizing display of electronic document |
| CN111179164A (en) * | 2019-11-28 | 2020-05-19 | 泰康保险集团股份有限公司 | Method and device for generating thumbnail |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1381795A (en) * | 2001-04-18 | 2002-11-27 | 无敌科技(西安)有限公司 | Automatic format setting method for palm-type browser |
| US20030112223A1 (en) * | 2001-12-19 | 2003-06-19 | Samsung Electronics Co., Inc. | Method for inputting characters in portable device having limited display size and number of keys, and portable device using the same |
-
2003
- 2003-10-29 CN CNB2003101030190A patent/CN1326071C/en not_active Expired - Fee Related
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1381795A (en) * | 2001-04-18 | 2002-11-27 | 无敌科技(西安)有限公司 | Automatic format setting method for palm-type browser |
| US20030112223A1 (en) * | 2001-12-19 | 2003-06-19 | Samsung Electronics Co., Inc. | Method for inputting characters in portable device having limited display size and number of keys, and portable device using the same |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1612129A (en) | 2005-05-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109801347B (en) | Method, device, equipment and medium for generating editable image template | |
| US8325367B2 (en) | System and method for a design with intent metadata | |
| US8081346B1 (en) | System to create image transparency in a file generated utilising a print stream | |
| CN100429646C (en) | Method and apparatus for displaying electronic document including handwritten data | |
| US20120246554A1 (en) | Performing binary composition of images onto an html canvas element | |
| JP2006085674A (en) | Common charting using shapes | |
| WO2019154197A1 (en) | Electronic book handwritten note display method, computing device and computer storage medium | |
| CN111768461A (en) | An image generation method based on electronic price tag | |
| CN109815451B (en) | PDF (Portable document Format) generation method, device and equipment | |
| CN114004918A (en) | Poster generation method, device and medium | |
| CN1326071C (en) | Electronic file display processing method and system | |
| CN102591849B (en) | Document format conversion method and device | |
| CN115454365A (en) | Picture processing method and device, electronic equipment and medium | |
| US7154511B2 (en) | Fast rendering of ink | |
| CN103020029A (en) | Clipboard content displaying method, system and device | |
| CN112365402B (en) | Intelligent winding method and device, storage medium and electronic equipment | |
| CN106648481B (en) | Processing method and device thereof, printing control method and device | |
| CN113703699B (en) | Real-time output method and device for electronic file | |
| CN101089807A (en) | Watermark printing method and printing device | |
| JPH1186017A (en) | Information processing apparatus and method | |
| JP2001005911A (en) | Character input device and display control method | |
| CN114780095B (en) | Off-screen rendering method and device, printing method, computing device and storage medium | |
| JP3163577B2 (en) | Vector font generation method | |
| TW460831B (en) | Method for displaying picture and literary data with an arbitrary size | |
| US20070103488A1 (en) | Substituting pattern fills |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| C17 | Cessation of patent right | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20070711 Termination date: 20101029 |