Method and device for reconstructing document file
A document file and document technology, applied in the field of document file reconstruction, can solve the problems of reducing the document display client's parsing speed of the document file, occupying the storage space of the network device, etc., to achieve the effect of improving the speed and reducing the file size.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
example 1
[0055] Example 1: The elements of the document file include pictures, and the types of pictures include but are not limited to: vector graphics, bitmaps, etc., and the network device combines vector graphics in adjacent layers to obtain a combined vector graphics, and then merges the The obtained vector image is combined with the bitmap to obtain a combined bitmap, and the combined bitmap is used as one of the elements of the aggregated document file.
[0056] Wherein, the vector diagram of the adjacent layer can be determined according to the following manner:
[0057] -Determine the coverage relationship between document file elements according to the rendering order of document file elements;
[0058] -Determine the vector graphics on adjacent layers based on the coverage relationship between document file elements; specifically, based on the coverage relationship between document file elements, the specific methods for determining the vector graphics on adjacent layers may...
example 2
[0066] Example 2: Document file elements include text, if the style information in the attribute information is the same and the position information is in the same row or column of text, when the formed matrix intersection does not cover the picture, the style information in the attribute information is the same and the position information is in Texts in the same row or column are combined to obtain the combined text as one of the elements of the aggregated document file.
[0067] Among them, the matrix intersection formed by characters with the same style information and position information in the same row or column in the attribute information, the minimum abscissa, minimum ordinate, maximum The abscissa and the maximum ordinate are determined.
[0068] In this embodiment, the number of DOM (Document Object Model, document object model) nodes is reduced by merging the text, and the speed at which the document display client of the user device presents pictures is further ...
example 3
[0070] Example 3: By extracting the intersection of the font information in the text attribute information and the font file of the document file, the font information after the intersection processing is obtained as one of the aggregated attribute information.
[0071] Wherein, the font file of the document file includes the font information of all characters, that is, it also includes the font information of characters that do not exist in the document file, and the font information after the intersection processing only includes the font information of the characters in the document file. Include font information for text that does not exist in this document file.
[0072] In this embodiment, the font information after the intersection processing obtained through the intersection processing only includes the font information of the characters in the document file, so as to further reduce the storage space of the document file on the network device.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 