CN103176957B - The treating method and apparatus of file - Google Patents

The treating method and apparatus of file Download PDF

Info

Publication number
CN103176957B
CN103176957B CN201110435769.2A CN201110435769A CN103176957B CN 103176957 B CN103176957 B CN 103176957B CN 201110435769 A CN201110435769 A CN 201110435769A CN 103176957 B CN103176957 B CN 103176957B
Authority
CN
China
Prior art keywords
file
base map
block
word
description object
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
Application number
CN201110435769.2A
Other languages
Chinese (zh)
Other versions
CN103176957A (en
Inventor
殷延伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New Founder Holdings Development Co ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201110435769.2A priority Critical patent/CN103176957B/en
Publication of CN103176957A publication Critical patent/CN103176957A/en
Application granted granted Critical
Publication of CN103176957B publication Critical patent/CN103176957B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides the treating method and apparatus of a kind of file, method includes: the base map of the page formed objects of foundation and file;On described base map, described figure is drawn according to the description object of the block of each figure in described file;Wherein, described figure includes pel and/or image;The base map described drafting obtained is as the bottom of the described page.The present invention uses base map to replace multiple description objects of the block of multiple figures in file, reduces the data volume of file.Time displayed on the terminals, on the page, directly show base map, it is to avoid multiple description objects of the block of the multiple figure of parsing, shorten the time of display full content, improve the experience of user.

Description

The treating method and apparatus of file
Technical field
The present invention relates to computer documents process field, in particular to the treating method and apparatus of a kind of file.
Background technology
Electronic equipment, by resolving e-file, shows corresponding contents on screen.E-file can be the files such as pdf, cebx or ps, and the content of file can include figure and/word etc.;Wherein, figure includes pel and/or image.
Each block, by typesetting content on the page of Kuai Shi software for composing, is converted into description object by Kuai Shi software for composing, generates e-file by e-file.Wherein, description object is for describing the attributes such as the form of content, size, position.
If the block on the page is more, the quantity of the description object of conversion is the most more, then the data volume of the e-file generated is bigger.
Summary of the invention
It is desirable to provide the treating method and apparatus of a kind of file, the problem bigger to solve the data volume of the e-file of above-mentioned generation.
In an embodiment of the present invention, provide the processing method of a kind of file, described file includes the e-file that each block is converted into description object generation by Kuai Shi software for composing, described method includes: the base map of the page formed objects of foundation and file, wherein, described base map is the bitmap of transparent color;On described base map, described figure is drawn according to the description object of the block of each figure in described file;Wherein, described figure includes pel and/or image;The base map described drafting obtained is as the bottom of the described page.
In an embodiment of the present invention, provide the processing means of a kind of file, described file includes the e-file that each block is converted into description object generation by Kuai Shi software for composing, described device includes: set up module, for setting up the base map of the page formed objects with file, wherein, described base map is the bitmap of transparent color;First drafting module, for drawing described figure according to the description object of the block of each figure in described file on described base map;Wherein, described figure includes pel and/or image;Module is set, for the base map that described drafting obtained as the bottom of the described page.
The method of the embodiment of the present invention, uses base map to replace multiple description objects of the block of multiple figures in file, reduces the data volume of file.Time displayed on the terminals, on the page, directly show base map, it is to avoid multiple description objects of the block of the multiple figure of parsing, shorten the time of display full content, improve the experience of user.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, and the schematic description and description of the present invention is used for explaining the present invention, is not intended that inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 shows the flow chart of embodiment;
Fig. 2 shows the flow chart generating file in embodiment;
Fig. 3 shows the flow chart in embodiment to block sort;
Fig. 4 shows the flow chart drawing base map in embodiment;
Fig. 5 shows the flow chart of output character character in embodiment;
Fig. 6 shows the apparatus structure block diagram in embodiment.
Detailed description of the invention
Below with reference to the accompanying drawings and in conjunction with the embodiments, the present invention is described in detail.See Fig. 1, including:
S11: the base map of the page formed objects of foundation and file;
S12: draw described figure on described base map according to the description object of the block of each figure in described file;Wherein, described figure includes pel and/or image;
S13: the base map described drafting obtained is as the bottom of the described page.
The method of the embodiment of the present invention, compared with prior art, it is not necessary to multiple description objects of the block of multiple figures are written to file, uses base map to replace multiple description objects in file, reduces the data volume of file.
Preferably, also include: during the content showing described file, the page shows described base map.
The file of the present invention can be the e-files such as pdf, cebx or ps, when e-file shows in computer, multimedia tablet device or similar terminal, directly show base map on the page, avoid the description object of the figure resolved on base map, shorten the time of display full content, improve the experience of user.
Preferably, also include: there is the description object of the block occured simultaneously according to word and figure, described base map is drawn word and the figure of the described block existing and occuring simultaneously.
With figure, the block occured simultaneously is existed for word, also according to the description object of these blocks, base map is drawn word and the figure of block.In the file generated, without the description object that the content on base map is corresponding, reduce the data volume of file.It addition, when terminal demonstration, directly display base map, decrease the description object of parsing, improve the processing speed of terminal demonstration full content.When being transmitted the e-file in embodiment by network, owing to the data volume of e-file reduces, the transmission speed of e-file can be improve, reduce offered load.
Preferably, also include: according to the word of described drafting, create corresponding description object;The description object of described establishment and the alphabetic character identical with the word of described drafting are write described file.
For ease of the word in the file of user's locating and displaying, the alphabetic character on base map is written in file, it is simple to user search word.
Preferably, also include: according to the description object of described establishment, on the position of the word drawn at described base map, place identical described alphabetic character.Described alphabetic character is transparent.
During user search word, the alphabetic character of character layer on base map can be retrieved.Each alphabetic character is identical with the word drawn on base map, and position is corresponding.It addition, word shows with the form of transparency 100%.Word on base map will not be played and block by alphabetic character, thus do not affects and read the word drawn on base map.
Preferably, see Fig. 2, during making e-file, it may include following steps:
S21: collect the block of the page;
Collect each block of the page of software for composing.
S22: the block of collection is divided into 3 classes;
A class belongs to the bottom, including pel and/or image block;B class belongs to the last layer of base map, including character block, when there is two-layer, it is possible to be referred to as top layer.C class includes the character block of open and flatization, including the character block of the alphabetic character identical with the word drawn on base map.
S23: the output first kind and the 3rd class are to ground floor;
The content of the first kind and the block of the 3rd class is exported ground floor, i.e. on the base map as page bottom.
According to the first kind and the description object of the block of the 3rd class, base map is drawn the content of the block of the first kind and the 3rd class.
S24: output Equations of The Second Kind;
The description object of the block of Equations of The Second Kind is exported e-file.
S25: output the 3rd class;
Placeholder corresponding for the word of the block of the 3rd class and description object thereof are exported file.
The manufacturing process of file described in detail above, for the process that each block on the page in type-setting document carries out classifying be can be found in Fig. 3, including:
S31: obtain the attribute of current block;
S32: whether be character block according to attributive judgment;
If it is, perform S33;If it is not, then perform S34;
S33: if not character block, it is judged that whether this block intersects with other block and be located below;If it is, perform S35;If it is not, then perform S36;
S34: determine that this block belongs to A class block;
S35: determine that this block belongs to C class block;
S36: determine that this block belongs to B class block;
Whether intersected with other block by the attribute of above-mentioned piece and block, so that it is determined that go out the classification of block ownership.In the attribute of block, whether record block has word, pel and/or image, the most overlapping with the content of other block, such as: the position of certain content of two blocks overlaps, and the content of a block is word, and another be image, it is determined that overlap.
The process that the content of the block of classification writes file is seen Fig. 4, Fig. 5, sees Fig. 4, including:
S41: create compatible equipment and compatible bitmap and initialize;
Creating and make the compatible equipment of e-file with base map, this compatible equipment is software environment, the environment of compatibility block formula software for composing;Create for the compatible bitmap as base map, device parameter is set, such as window logic scope, mapped mode etc..
S42: transparent color shop fixtures;
In compatible equipment, a kind of transparent color of definition, passes through paintbrush brush layer of transparent background color on bitmap by this color.
S43: in obtaining this page all of piece;
S44: determine whether block, if it is, perform S45;If it is not, then perform S46;
S46: obtain bitmap and background transparent data;
S47: the image in output current bitmap is to e-file;
S45: obtain the information of this block;
S48: judge whether this block belongs to the first kind;If it is, perform S50;If it is not, then perform S49;
S49: judge whether this block belongs to the 3rd class;If it is, perform S50;If it is not, then perform S44;
S50: this block is exported equipment.
By above-mentioned steps by all of piece of output to the software environment making e-file, block is converted to description object, on base map, draws the content of block, i.e. drawing image on bitmap according to description object.In S47, according to certain file format requirements, the image drawn is written to file, and full full page is set, i.e. with page formed objects on base map.Bitmap is embedded in the page of file.
For the block of word, the process of output sees Fig. 5, including:
S51: all of piece of the page of acquisition file;
S52: judge whether also block;If it is not, then terminate;If it is, perform S53.
S53: obtain the information of this block;
S54: judge whether this block belongs to Equations of The Second Kind, if it is, perform S56;If it is not, then perform S55;
S55: judge whether this block belongs to the 3rd class;If it is, perform S57;If it is not, then perform S52;
S56: this block is exported file;
By character block transformation description object, output to file;Perform S52;
The placeholder of S57: output character;
The alphabetic character identical with the word drawn on base map is exported file, exports corresponding description object simultaneously.The alphabetic character of output is loaded on the page by placeholder, and alphabetic character is transparent, so, can be easy to the word content on user search base map, the most not block word on base map.
By above-mentioned steps, produce the e-file of two-layer, be positioned at the base map of bottom, be positioned at the word on upper strata.When electronic equipment shows the content of file, display base map, and resolve the description object of word, base map shows the word in word and placeholder.Owing to decreasing the time resolving part description object, shorten the time of full content displayed on the terminals.
The present invention also provides for a kind of document handling apparatus, sees Fig. 6, including:
Set up module 61, for setting up the base map of the page formed objects with file;
First drafting module 62, for drawing described figure described foundation on the base map that module 61 is set up according to the description object of the block of each figure in described file;Wherein, described figure includes pel and/or image;
Module 63 is set, for described first drafting module 62 is drawn the base map that the obtains bottom as the described page.
Use base map to replace multiple description objects of the block of multiple figures in file, reduce the data volume of file.Time displayed on the terminals, on the page, directly show base map, it is to avoid multiple description objects of the block of the multiple figure of parsing, shorten the time of display full content, improve the experience of user.
Preferably, device also includes:
Second drafting module 64, for there is the description object of the block occured simultaneously according to word and figure, draws word and the figure drawing the described block existing and occuring simultaneously on base map at described first drafting module 62.
Preferably, device also includes:
Writing module 65, for the word according to described drafting, creates corresponding description object;The description object of described establishment and the alphabetic character identical with the word of described drafting are write described file;It is additionally operable to the base map write file drawn by the first drafting module 62.
Preferably, device also includes:
Display module 66, for during the content showing described file, shows the base map that described first drafting module 62 is drawn on the page;On the position of the word drawn at described base map, place the described alphabetic character identical with the word drawn that said write module 65 is written in file.
Obviously, those skilled in the art should be understood that, each module of the above-mentioned present invention or each step can realize with general calculating device, they can concentrate on single calculating device, or it is distributed on the network that multiple calculating device is formed, alternatively, they can realize with calculating the executable program code of device, thus, can be stored in storing in device and be performed by calculating device, or they are fabricated to respectively each integrated circuit modules, or the multiple modules in them or step are fabricated to single integrated circuit module realize.So, the present invention is not restricted to the combination of any specific hardware and software.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.

Claims (10)

1. the processing method of a file, it is characterised in that described file includes, by Kuai Shi software for composing, each block is converted into the e-file that description object generates, and described method includes:
The base map of the page formed objects of foundation and file, wherein, described base map is the bitmap of transparent color;
On described base map, described figure is drawn according to the description object of the block of each figure in described file;Wherein, described figure includes pel and/or image;
The base map described drafting obtained is as the bottom of the described page.
Method the most according to claim 1, it is characterised in that also include: there is the description object of the block occured simultaneously according to word and figure, draws word and the figure of the described block existing and occuring simultaneously on described base map.
Method the most according to claim 2, it is characterised in that also include:
According to the word of described drafting, create corresponding description object;
The description object of described establishment and the alphabetic character identical with the word of described drafting are write described file.
Method the most according to claim 3, it is characterised in that described alphabetic character is transparent.
5. according to the method described in claim 3 or 4, it is characterised in that also include:
During the content showing described file, the page shows described base map.
Method the most according to claim 5, it is characterised in that also include: according to the description object of described establishment, on the position of the word drawn at described base map, places identical described alphabetic character.
7. the processing means of a file, it is characterised in that described file includes, by Kuai Shi software for composing, each block is converted into the e-file that description object generates, and described device includes:
Setting up module, for setting up the base map of the page formed objects with file, wherein, described base map is the bitmap of transparent color;
First drafting module, for drawing described figure according to the description object of the block of each figure in described file on described base map;Wherein, described figure includes pel and/or image;
Module is set, for the base map that described drafting obtained as the bottom of the described page.
Device the most according to claim 7, it is characterised in that also include:
Second drafting module, for there is the description object of the block occured simultaneously according to word and figure, draws word and the figure of the described block existing and occuring simultaneously on described base map.
Device the most according to claim 8, it is characterised in that also include:
Writing module, for the word according to described drafting, creates corresponding description object;The description object of described establishment and the alphabetic character identical with the word of described drafting are write described file.
Device the most according to claim 9, it is characterised in that also include:
Display module, for, during the content showing described file, showing described base map on the page;On the position of the word drawn at described base map, place identical described alphabetic character.
CN201110435769.2A 2011-12-21 2011-12-21 The treating method and apparatus of file Expired - Fee Related CN103176957B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110435769.2A CN103176957B (en) 2011-12-21 2011-12-21 The treating method and apparatus of file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110435769.2A CN103176957B (en) 2011-12-21 2011-12-21 The treating method and apparatus of file

Publications (2)

Publication Number Publication Date
CN103176957A CN103176957A (en) 2013-06-26
CN103176957B true CN103176957B (en) 2016-08-03

Family

ID=48636843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110435769.2A Expired - Fee Related CN103176957B (en) 2011-12-21 2011-12-21 The treating method and apparatus of file

Country Status (1)

Country Link
CN (1) CN103176957B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105931499A (en) * 2016-06-27 2016-09-07 山西大学 Electronic blackboard system and method for using electronic teaching resources

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778270A (en) * 2009-01-13 2010-07-14 深圳市同洲电子股份有限公司 Method for accelerating the image displaying speed, system and digital television receiving terminal
CN101980185A (en) * 2010-10-29 2011-02-23 方正国际软件有限公司 Method and system for removing spaces from text copied from double-layer electronic file
CN101980133A (en) * 2010-10-29 2011-02-23 方正国际软件有限公司 Method and system for detecting text selection region deviation of double-layer electronic file

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778270A (en) * 2009-01-13 2010-07-14 深圳市同洲电子股份有限公司 Method for accelerating the image displaying speed, system and digital television receiving terminal
CN101980185A (en) * 2010-10-29 2011-02-23 方正国际软件有限公司 Method and system for removing spaces from text copied from double-layer electronic file
CN101980133A (en) * 2010-10-29 2011-02-23 方正国际软件有限公司 Method and system for detecting text selection region deviation of double-layer electronic file

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
用InDesign制作双层PDF;小澂;《北大中文论坛》;20070320;第1页第3-5段 *
说pdf的"";马健;《北京市博阳信息工程研究所》;20110621;第2页第2-3段 *

Also Published As

Publication number Publication date
CN103176957A (en) 2013-06-26

Similar Documents

Publication Publication Date Title
CN105302550B (en) The page is switched to the method and system of format data stream file
JP2014522048A (en) Kanji composition method and apparatus, character composition method and apparatus, and font library construction method
US20130191732A1 (en) Fixed Format Document Conversion Engine
KR101890831B1 (en) Method for Providing E-Book Service and Computer Program Therefore
KR100727066B1 (en) Method for providing mobile webpage by employing to dynamic template
CN104516867A (en) Table reordering method and table reordering system
CN101699426A (en) Document format conversion system and method
CN1808377A (en) Application-generic sequence diagram generator driven by a non-proprietary language
CN101751379B (en) Method and equipment for manufacturing electronic newspaper document
CN107077458A (en) Infer that layout is intended to
CN102663198A (en) Method and system for designing and manufacturing printed matter on line by combining background and foreground of web
CN109447019B (en) Paper scanned document electronization method based on image recognition and database storage
CN106373447A (en) Intelligent paper marking system and method
KR102248823B1 (en) System, method and application for data visual service
US8386943B2 (en) Method for query based on layout information
CN104866527A (en) Dynamic webpage template matching method and device
WO2017000898A1 (en) Software icon display method and apparatus
CN109408502A (en) A kind of data standard processing method, device and its storage medium
US20200210640A1 (en) Method and apparatus for displaying textual information
KR101371406B1 (en) Method and system for manufacturing e-book by source analysis of pdf document
CN104424174B (en) Document processing system and document processing method
CN103176957B (en) The treating method and apparatus of file
CN108874392A (en) User's guideline interface generation method and device
CN111367607A (en) Dynamic electronic contract generating and signing system and implementation method thereof
US20210073458A1 (en) Comic data display system, method, and program

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
TR01 Transfer of patent right

Effective date of registration: 20220615

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Address before: 100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 5 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160803

CF01 Termination of patent right due to non-payment of annual fee