CN115168758A - OFD document fast rendering method and device, electronic device and storage medium - Google Patents

OFD document fast rendering method and device, electronic device and storage medium Download PDF

Info

Publication number
CN115168758A
CN115168758A CN202210701030.XA CN202210701030A CN115168758A CN 115168758 A CN115168758 A CN 115168758A CN 202210701030 A CN202210701030 A CN 202210701030A CN 115168758 A CN115168758 A CN 115168758A
Authority
CN
China
Prior art keywords
page
area
content
ofd
rendering
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.)
Pending
Application number
CN202210701030.XA
Other languages
Chinese (zh)
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.)
Baiwang Co ltd
Original Assignee
Baiwang 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 Baiwang Co ltd filed Critical Baiwang Co ltd
Priority to CN202210701030.XA priority Critical patent/CN115168758A/en
Publication of CN115168758A publication Critical patent/CN115168758A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Abstract

The application provides an OFD document fast rendering method, an OFD document fast rendering device, electronic equipment and a storage medium. The method comprises the following steps: analyzing the OFD document, and presenting the vectorized data in a reading area; an OFD page intelligent page area processing engine is called to divide the intelligent page area; dynamically calculating the corresponding page content position according to the window position information of the newly appeared area; and rendering the page content of the newly appeared area by combining the current page display parameters. The application provides a method for quickly rendering an OFD document, which can effectively improve the efficiency of dragging an OFD page, reduce resource consumption, is convenient and quick, realizes intelligent calculation and rendering of a new area, intelligently combines page contents of the new area and existing page display contents, and achieves the effect of quickly rendering and displaying the OFD document page.

Description

OFD document fast rendering method and device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of document processing, and particularly relates to a method and a device for rapidly rendering an OFD document, electronic equipment and a storage medium.
Background
With the increasing popularization of electronic invoices, the application range of electronic invoice format files is wider and wider. The domestic third-party electronic invoice service platform basically has the issuing capability of PDF electronic invoices, so that the majority of the current electronic invoices are in PDF format. In addition, in recent years, a free format file base service adopts a national standard OFD format, and therefore, OFD electronic invoices are also becoming popular.
The OFD is an abbreviation of a format Document format standard Open Fixed-Layout Document format independently developed in China, is used as a new-version electronic invoice bearing format, and is widely used in the fields of electronic certificates, electronic accounting files and the like.
In the prior art, when new content of a page needs to be displayed, all content of the current page is re-rendered, and then the display position of the page is adjusted according to the display position of the new content, so as to achieve the purpose of displaying the new content. In the whole process, repeated rendering of the page content exists, the efficiency is low, resources are wasted, and particularly, when a new content area is small, the method is obvious. In the reading process of the OFD document, when the page is dragged or rolled to read new content, the whole current page content needs to be re-rendered, and the problems of low efficiency and resource waste are solved.
Disclosure of Invention
An embodiment of the application aims to provide a method and a device for rapidly rendering an OFD document, an electronic device and a storage medium.
A first aspect of the embodiments of the present application provides a method for fast rendering an OFD document, including:
analyzing the OFD document, and presenting the vectorized data in a reading area;
an OFD page intelligent page area processing engine is called to divide the intelligent page area;
dynamically calculating the corresponding page content position according to the window position information of the newly appeared area;
and rendering the page content of the newly appeared area by combining the current page display parameters.
In some embodiments, the method further comprises:
calling an intelligent combination engine, calculating a reusable area in the existing display content of the current page by combining page area division according to the position and the size of a window of a newly-appeared area, and combining the content of the reusable area with the newly-rendered page content;
and displaying the combined page content.
In some embodiments, the smart page area partitioning comprises:
the current page is divided into five parts, namely North, east, south, west and Center.
In some embodiments, the method further comprises:
the intelligent page area processing engine calculates the position and the size of a window of a new area according to the specific operation of dragging or rolling a page;
converting coordinates of a newly-appeared area window into coordinates of an OFD document through coordinate conversion in an engine;
and dynamically calculating a page area to be rendered according to the current page display parameters, rendering contents, and outputting vectorized data.
A second aspect of the embodiments of the present application provides an apparatus for fast rendering an OFD document, including:
the analysis module is used for analyzing the OFD document and presenting the vectorized data in the reading area;
the dividing module is used for dragging or rolling the current display page, calling an OFD page intelligent page area processing engine and dividing the intelligent page area;
the calculation module is used for dynamically calculating the corresponding page content position according to the window position information of the new area;
and the rendering module is used for rendering the page content of the newly-appeared area by combining the current page display parameters.
In some embodiments, the apparatus further comprises:
the merging module is used for calling an intelligent merging engine, calculating a reusable area in the existing display content of the current page by combining page area division according to the position and the size of a window of a newly-appeared area, and merging the content of the reusable area and the newly-rendered page content;
and the display module is used for displaying the combined page content.
In some embodiments, the smart page area partitioning comprises:
the current page is divided into five parts, namely North, east, south, west and Center.
In some embodiments, the apparatus further comprises:
the window position and size calculation module is used for calculating the window position and size of a new area by the intelligent page area processing engine according to the specific operation of dragging or rolling the page;
the coordinate conversion module is used for converting the coordinates of the window of the new area into OFD document coordinates through the coordinate conversion in the engine;
and the dynamic calculation module is used for dynamically calculating the page area to be rendered according to the current page display parameters, rendering the content and outputting vectorized data.
A third aspect of the embodiments of the present application provides an electronic device, including a memory and a processor, where the processor is configured to implement the steps of the OFD document fast rendering method described in any one of the above when executing a computer management class program stored in the memory.
A fourth aspect of the present embodiment provides a computer-readable storage medium, on which a computer management program is stored, where the computer management program, when executed by a processor, implements the steps of the OFD document fast rendering method described in any one of the above.
Compared with the prior art, the embodiment of the application provides a method for rapidly rendering an OFD document, which can effectively improve the efficiency of dragging an OFD page, reduce resource consumption, is convenient and rapid, realizes intelligent calculation and rendering of a new area, intelligently combines page content of the new area and existing page display content, and achieves the effect of rapidly rendering and displaying the OFD document page.
Drawings
Fig. 1 is a flowchart of an OFD document fast rendering method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a possible electronic device provided in an embodiment of the present application;
fig. 3 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present application.
Detailed Description
Specific embodiments of the present application will be described in detail below with reference to the drawings, but it should be understood that the scope of the embodiments of the present application is not limited to the specific embodiments.
Throughout the specification and claims, unless explicitly stated otherwise, the word "comprise", or variations such as "comprises" or "comprising", will be understood to imply the inclusion of a stated element or component but not the exclusion of any other element or component.
When reading the OFD document, dragging or rolling the page through operations such as a keyboard or a mouse to read new content, re-rendering the whole current page when the new content of the page needs to be displayed, and then adjusting the display position of the page.
According to the method and the device for processing the OFD document page, the OFD document page is subjected to intelligent area division and calculation by the OFD page intelligent page area processing engine in combination with a conventional page dragging operation habit during reading of an OFD document, when new page content needs to be rendered, the page area needing to be rendered can be dynamically calculated and rendered, then the page area is processed by the intelligent merging engine, and the intelligent merging engine can multiplex the existing display content of the current page and merge the newly rendered page content according to the calculation result of the intelligent page area processing engine.
When a user drags or rolls an OFD page through operations of a keyboard or a mouse and the like, the method firstly calls an intelligent page region processing engine to perform intelligent page region division on the current page, according to the conventional operation habit during reading of the OFD document, in general, vertical direction rolling is more common, the current page is divided into five parts, namely a North part, an East part, a South part, a West part and a Center part, when the current page is rolled in the vertical direction, only newly appeared content in the North or South region needs to be re-rendered, namely the real requirement is met, other operations touch the rendering of the West or East part, the two regions are considered, the Center part is a part needing to be multiplexed, and the page region division is closer to the actual reading habit.
When a user drags or rolls an OFD page, the intelligent page area processing engine calculates the position and size of a window of a new area according to the specific dragging or rolling operation of the user, converts the window coordinates of the new area into OFD document coordinates through coordinate conversion in the engine, dynamically calculates a page area to be rendered according to current page display parameters, mainly zooming parameters, renders contents, and outputs vectorization data.
The intelligent combination engine calculates the reusable area in the existing display content of the current page by combining the page area division according to the window position and the size of the newly appeared area, then combines the content of the reusable area and the newly rendered page content, and finally displays the reusable area on the window.
In the reading process of the OFD document, the new content of the page is intelligently processed, rendered and combined to realize the rapid rendering of the OFD document.
By using the method, when the new content of the page needs to be displayed, the content of the current page does not need to be completely rendered, but the content of the page needing to be rendered is dynamically calculated through the page intelligent page area processing engine according to the position of the new area of the page, the content of the page needing to be rendered does not need to be re-rendered, the existing display content of the current page is directly reused, the rendering resource consumption can be effectively reduced, and the resource waste and the low efficiency are avoided.
In one specific example, as shown in fig. 1, the method includes:
opening an OFD document, calling an OFD document reading engine, analyzing the OFD document, and then presenting vectorized data in a reading area; dragging or rolling the current display page, calling an OFD page intelligent page area processing engine, and performing intelligent page area division; dynamically calculating the corresponding page content position according to the window position information of the newly appeared area; rendering the page content of the newly appeared area by combining the current page display parameters; calling an intelligent combination engine, calculating areas which can be multiplexed in the existing display content of the current page by combining page area division according to the position and the size of a window of a newly-appeared area, and then combining the content of the intelligent combination engine and the newly-rendered page content; and displaying the combined page content.
The intelligent area division engine is responsible for OFD page intelligent area division and dynamic calculation of a new area when a user drags or rolls a page, and the intelligent combination engine is responsible for intelligently multiplexing the existing page display content and combining the page content of the new area.
Compared with the prior art, the embodiment of the application provides a method for rapidly rendering an OFD document, which can effectively improve the efficiency of dragging an OFD page, reduce resource consumption, is convenient and rapid, realizes intelligent calculation and rendering of a new area, intelligently combines page content of the new area and existing page display content, and achieves the effect of rapidly rendering and displaying the OFD document page.
According to the method, the page information of the new area when the OFD page is dragged is dynamically calculated through the intelligent page area processing engine. Through the intelligent merging engine, the existing page display content is intelligently multiplexed, and then the page display content in a new area is merged, so that the efficiency of dragging the OFD page can be effectively improved, the resource consumption is reduced, and the method is convenient and fast. In the reading process of the OFD document, when the page is dragged or rolled, the intelligent calculation and rendering of a new area are realized, and the page content of the new area and the existing page display content are intelligently combined, so that the purpose of quickly rendering and displaying the page of the OFD document is achieved.
Another embodiment of the present application provides an OFD document fast rendering apparatus, including:
the analysis module is used for analyzing the OFD document and presenting the vectorized data in the reading area;
the dividing module is used for dragging or rolling the current display page, calling an OFD page intelligent page area processing engine and dividing the intelligent page area;
the calculation module is used for dynamically calculating the corresponding page content position according to the window position information of the new area;
and the rendering module is used for rendering the page content of the newly-appeared area by combining the current page display parameter.
In certain embodiments, the apparatus further comprises:
the merging module is used for calling an intelligent merging engine, calculating a reusable area in the existing display content of the current page by combining page area division according to the position and the size of a window of a newly-appeared area, and merging the content of the reusable area and the newly-rendered page content;
and the display module is used for displaying the combined page content.
In some embodiments, the smart page area partitioning comprises:
the current page is divided into five parts, namely North, east, south, west and Center.
In certain embodiments, the apparatus further comprises:
the window position and size calculation module is used for calculating the window position and size of a new area by the intelligent page area processing engine according to the specific operation of dragging or rolling the page;
the coordinate conversion module is used for converting the coordinates of the window of the new area into OFD document coordinates through the coordinate conversion in the engine;
and the dynamic calculation module is used for dynamically calculating the page area to be rendered according to the current page display parameters, rendering the content and outputting the vectorized data.
As shown in fig. 2, another embodiment of the present application provides an electronic device, which includes a memory and a processor, where the processor is configured to implement the steps of the OFD document fast rendering method according to any one of the foregoing embodiments when executing a computer management program stored in the memory.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
As shown in fig. 3, another embodiment of the present application provides a computer-readable storage medium, on which a computer management class program is stored, and the computer management class program, when being executed by a processor, implements the steps of the OFD document fast rendering method according to any of the above embodiments.
The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, or semiconductor form or device, more specific examples (a non-exhaustive list) including: an electrical connection having one or more wires, a portable computer hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this context, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing descriptions of specific exemplary embodiments of the examples of the present application have been presented for purposes of illustration and description. They are not intended to limit the embodiments of the application to the precise forms disclosed, and obviously many modifications and variations are possible in light of the above teaching. The exemplary embodiments were chosen and described in order to explain certain principles of the embodiments of the present application and their practical application to enable one skilled in the art to make and use various exemplary embodiments of the present application and various alternatives and modifications thereof. It is intended that the scope of the embodiments of the present application be defined by the claims and their equivalents.

Claims (10)

1. An OFD document fast rendering method is characterized by comprising the following steps:
analyzing the OFD document, and presenting the vectorized data in a reading area;
an OFD page intelligent page area processing engine is called to divide the intelligent page area;
dynamically calculating the corresponding page content position according to the window position information of the newly appeared area;
and rendering the page content of the newly appeared area by combining the current page display parameter.
2. The method of claim 1, further comprising:
calling an intelligent combination engine, calculating areas which can be multiplexed in the existing display content of the current page by combining page area division according to the position and the size of a window of a newly-appeared area, and combining the content of the areas and the newly-rendered page content;
and displaying the combined page content.
3. The method of claim 2, wherein the smart page area partitioning comprises:
the current page is divided into five parts, namely North, east, south, west and Center.
4. The method of claim 1, further comprising:
the intelligent page area processing engine calculates the position and the size of a window of a new area according to the specific operation of dragging or rolling a page;
converting coordinates of a newly-appeared area window into coordinates of an OFD document through coordinate conversion in an engine;
and dynamically calculating a page area to be rendered according to the current page display parameters, rendering the content, and outputting vectorized data.
5. An OFD document fast rendering apparatus, comprising:
the analysis module is used for analyzing the OFD document and presenting the vectorized data in the reading area;
the dividing module is used for dragging or rolling the current display page, calling an OFD page intelligent page area processing engine and dividing the intelligent page area;
the calculation module is used for dynamically calculating the corresponding page content position according to the window position information of the newly appeared region;
and the rendering module is used for rendering the page content of the newly-appeared area by combining the current page display parameters.
6. The apparatus of claim 5, further comprising:
the merging module is used for calling an intelligent merging engine, calculating a reusable area in the existing display content of the current page by combining page area division according to the position and the size of a window of a newly-appeared area, and merging the content of the reusable area and the newly-rendered page content;
and the display module is used for displaying the combined page content.
7. The apparatus of claim 6, wherein the smart page area partitioning comprises:
the current page is divided into five parts, namely North, east, south, west and Center.
8. The apparatus of claim 5, further comprising:
the window position and size calculation module is used for calculating the window position and size of a new area by the intelligent page area processing engine according to the specific operation of dragging or rolling the page;
the coordinate conversion module is used for converting the coordinates of the window of the newly-appeared area into the coordinates of the OFD document through the coordinate conversion in the engine;
and the dynamic calculation module is used for dynamically calculating the page area to be rendered according to the current page display parameters, rendering the content and outputting the vectorized data.
9. An electronic device, comprising a memory, a processor for implementing the steps of the OFD document fast rendering method according to any one of claims 1 to 4 when executing a computer management class program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer management class program is stored thereon, which when executed by a processor implements the steps of the OFD document fast rendering method according to any one of claims 1 to 4.
CN202210701030.XA 2022-05-29 2022-05-29 OFD document fast rendering method and device, electronic device and storage medium Pending CN115168758A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210701030.XA CN115168758A (en) 2022-05-29 2022-05-29 OFD document fast rendering method and device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210701030.XA CN115168758A (en) 2022-05-29 2022-05-29 OFD document fast rendering method and device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN115168758A true CN115168758A (en) 2022-10-11

Family

ID=83487585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210701030.XA Pending CN115168758A (en) 2022-05-29 2022-05-29 OFD document fast rendering method and device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN115168758A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115840614A (en) * 2022-12-30 2023-03-24 同方鼎欣科技股份有限公司 Layout document rendering method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115840614A (en) * 2022-12-30 2023-03-24 同方鼎欣科技股份有限公司 Layout document rendering method and device, electronic equipment and storage medium
CN115840614B (en) * 2022-12-30 2024-01-30 同方鼎欣科技股份有限公司 Rendering method and device of layout document, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109727312B (en) Point cloud labeling method, point cloud labeling device, computer equipment and storage medium
CN109669617B (en) Method and device for switching pages
CN103810728A (en) System, method, and computer program product for inputting modified coverage data into a pixel shader
RU2009148314A (en) INDEX BASED ON GRAPHIC MOSAIC ELEMENTS WITH EXTENSION OF CELLS
US10802680B2 (en) Pixel-aligned layout grids
CN102693281B (en) AUTOCAD-based method for generating auxiliary line in PDMS
JP2013058147A (en) Image processing device and method, and program
CN115168758A (en) OFD document fast rendering method and device, electronic device and storage medium
CN111159594A (en) Information processing method, information processing device and terminal equipment
CN109325259B (en) Data processing method, system, terminal and medium applied to 3D modeling
CN101763234A (en) Method and device for simulating various screen resolutions
CN115167718A (en) OFD document local amplification display method, device, equipment and storage medium
CN105574808A (en) Stream line texture mapping unit system structure
JP2023533108A (en) Method, apparatus, device and storage medium for generating road labels
CN113296774A (en) OFD file processing method and system based on browser
CN114820972A (en) Contour line and/or contour surface generation method, system, device and storage medium
CN106484388A (en) The implementation method of user interface and device
CN109697722B (en) Method and device for generating trisection graph
CN109522532B (en) Method and device for calculating selection range of line drawing frame
CN115935909A (en) File generation method and device and electronic equipment
US20170010805A1 (en) Character Input Method and Electronic Device
CN113609237A (en) Data processing method, device, equipment and medium for construction land change
CN110428453B (en) Data processing method, data processing device, data processing equipment and storage medium
CN109922359B (en) User processing method, device, equipment and storage medium
CN114238213A (en) Multithreading file analysis method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication