CN113296774A - OFD file processing method and system based on browser - Google Patents
OFD file processing method and system based on browser Download PDFInfo
- Publication number
- CN113296774A CN113296774A CN202110664138.1A CN202110664138A CN113296774A CN 113296774 A CN113296774 A CN 113296774A CN 202110664138 A CN202110664138 A CN 202110664138A CN 113296774 A CN113296774 A CN 113296774A
- Authority
- CN
- China
- Prior art keywords
- processing
- processed
- ofd file
- browser
- ofd
- 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.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title abstract description 10
- 238000012545 processing Methods 0.000 claims abstract description 103
- 238000000034 method Methods 0.000 claims abstract description 85
- 230000008569 process Effects 0.000 claims abstract description 39
- 238000013507 mapping Methods 0.000 claims description 5
- 238000004458 analytical method Methods 0.000 claims description 4
- 230000006870 function Effects 0.000 abstract description 15
- 238000009877 rendering Methods 0.000 abstract description 5
- 238000004590 computer program Methods 0.000 description 12
- 230000008901 benefit Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000007547 defect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
- G06F8/315—Object-oriented languages
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Human Computer Interaction (AREA)
- Document Processing Apparatus (AREA)
Abstract
The application discloses a method and a system for processing OFD files based on a browser. The method for processing the OFD file based on the browser comprises the following steps: obtaining an OFD file to be processed, wherein the OFD file to be processed comprises text primitives, image primitives and graphic primitives; and processing the OFD file to be processed through Js, and processing Js in the processing process of the word primitives, the image primitives and the graphic primitives of the OFD file to be processed through the Js by adopting WebAssembly and/or a server side as a step which cannot be processed by the Js in the processing process. The processing method of the OFD file based on the browser mainly uses the Js script engine to realize the functions of rendering display, text selection copying, editing and the like of the OFD file, and complex functions which cannot be realized by the Js engine are processed by the server. In a high-version browser supporting WebAssembly, a part of functions are put into WebAssembly for processing, and the pressure of a server is reduced.
Description
Technical Field
The application relates to the technical field of format file processing, in particular to a method and a system for processing an OFD file based on a browser.
Background
The layout file is an electronic file with a highly accurate layout, is an ideal bearing format of a serious file, and is an important guarantee for the standardability and the credibility of the electronic file. In 2016, 10 months, the GB/T33190-2016 electronic file storage and exchange Format document (OFD format) standard was published by the national standards committee. The standard is independently researched and developed by China, and marks that the electronic document industry of China is not limited by foreign standards and technologies from now on and moves to an independent development way. At present, OFD is widely used in the fields of electronic documents, electronic certificates, electronic archives, electronic bills, etc., and has become an indispensable important cornerstone in social informatization.
The OFD is an open format document format, and the format document is characterized in that the layout is fixed, and the display, printing and printing effects on various platforms are consistent. In the layout document, the coordinates of objects such as characters, graphs and images, drawing attributes and other parameters influencing the presentation effect are accurately described, so that the layout document can be obtained in what you see, the document content is accurately presented, and the method is widely applied to the storage and exchange scenes of electronic files.
The OFD file is displayed and edited in the browser mainly by the following methods:
1. the browser plug-in is used for embedding a binary program into the browser in a mode of NPAPI (Netscape plug-in API)/ActiveX/PPAPI (Peer plug-in API) and the like, and displaying and editing the OFD file in a plug-in mode. The advantage is that the interaction capability and performance are consistent with the native program, and the disadvantage is that the user needs to additionally install the plug-in program.
2. And converting the OFD into displayable content of the browser for displaying. The method comprises the following steps:
a) the OFD is converted into Html and is presented by a browser.
b) The OFD is converted to Json using Js and presented with a browser. The method has the advantages that plug-ins do not need to be installed, and the method has the defects of weak control capability, poor display capability, incapability of processing embedded fonts, incapability of processing locally missing fonts, incapability of processing image formats which are not supported by a browser and the like, and incapability of completely representing OFD files.
c) And converting OFD into Json or data suitable for H5 playing by using WebAssembly, preparing before rendering, and displaying. The method has the advantages that plug-ins do not need to be installed, and the method has the defects of weak control capability, low compatibility, incapability of processing local missing fonts, high requirement on browser versions and no support for IE.
Accordingly, a technical solution is desired to overcome or at least alleviate at least one of the above-mentioned drawbacks of the prior art.
Disclosure of Invention
It is an object of the present invention to provide a method for processing browser based OFD files that overcomes or at least alleviates at least one of the above-mentioned drawbacks of the prior art.
In one aspect of the present invention, a method for processing an OFD file based on a browser is provided, where the method for processing an OFD file based on a browser includes:
the method for processing the OFD file based on the browser comprises the following steps:
obtaining an OFD file to be processed, wherein the OFD file to be processed comprises text primitives, image primitives and graphic primitives;
and processing the OFD file to be processed through Js, and processing Js in the processing process of the word primitives, the image primitives and the graphic primitives of the OFD file to be processed through the Js by adopting WebAssembly and/or a server side as a step which cannot be processed by the Js in the processing process.
Optionally, the processing the OFD file to be processed by Js, and in a process of processing a text primitive, an image primitive, and a graphics primitive of the OFD file to be processed by Js, performing processing by using WebAssembly and/or a server as a step that Js cannot process in a processing process includes:
analyzing the OFD file to be processed through the Js so as to obtain text primitives, image primitives and graphic primitives of the OFD file to be processed;
judging whether the font in the character primitive can be acquired through Js, if not, judging whether the font in the character primitive can be acquired through Js or not
Acquiring font data in the text graphic elements through a server;
and the Js draws the characters according to the font data and the character primitives.
Optionally, the processing the OFD file to be processed by Js, and in the process of processing the text primitive, the image primitive, and the graphics primitive of the OFD file to be processed by Js, the processing using WebAssembly and/or the server as a step in which Js cannot be processed in the processing process further includes:
judging whether the image information in the image primitive can be acquired through Js, if not, judging whether the image information in the image primitive can be acquired through Js
Decoding the image information through the WebAssembly or the server side to obtain decoded image information;
and the Js draws an image according to the decoded image information.
Optionally, the processing the OFD file to be processed by Js, and in the process of processing the text primitive, the image primitive, and the graphics primitive of the OFD file to be processed by Js, the processing using WebAssembly and/or the server as a step in which Js cannot be processed in the processing process further includes:
judging whether the graphic information in the graphic primitive can be acquired through Js, if not, judging whether the graphic information in the graphic primitive can be acquired through Js
And drawing according to the graphic information through the WebAssembly or the server so as to obtain the drawn graphic information.
Optionally, the parsing, by the Js, the to-be-processed OFD file to obtain a text primitive, an image primitive, and a graphics primitive of the to-be-processed OFD file includes:
analyzing the OFD file to be processed through the Js so as to obtain authority information in the OFD file to be processed;
transmitting the authority information to the server;
the server side judges whether the OFD file to be processed is processed or not according to the authority information, and if yes, the server side judges whether the OFD file to be processed is processed or not, and if not, the server side judges whether the OFD file to be processed is processed
And acquiring a text primitive, an image primitive and a graphic primitive of the OFD file to be processed through the Js.
Optionally, the method for processing an OFD file based on a browser further includes:
and displaying the processed OFD file to be processed.
Optionally, the method for processing an OFD file based on a browser further includes:
acquiring editing information;
acquiring the displayed data object mapping of the processed OFD file to be processed according to the editing information;
and constructing the data object through the WebAssembly or the server, so as to obtain the constructed OFD object.
Optionally, the method for processing an OFD file based on a browser further includes:
acquiring text information to be copied;
and according to the text information to be copied, performing layout analysis on the displayed data of the processed OFD file to be processed so as to obtain the text information to be copied in the OFD file.
The application also provides a processing system of the OFD file based on the browser, the processing system of the OFD file based on the browser comprises the browser and a server side, and the browser comprises a built-in Js engine and a WebAssembly; wherein,
the browser and the server cooperate to realize the processing method of the OFD file based on the browser.
Optionally, the processing system of the browser-based OFD file further comprises an input device.
Advantageous effects
The processing method of the OFD file based on the browser mainly uses the Js script engine to realize the functions of rendering display, text selection copying, editing and the like of the OFD file, and complex functions which cannot be realized by the Js engine are processed by the server. In a high-version browser supporting WebAssembly, a part of functions are put into WebAssembly for processing, and the pressure of a server is reduced.
Drawings
Fig. 1 is a schematic flowchart of a processing method of an OFD file based on a browser according to an embodiment of the present application.
Fig. 2 is a detailed flowchart of a processing method of an OFD file based on a browser according to an embodiment of the present application.
Detailed Description
In order to make the implementation objects, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be described in more detail below with reference to the drawings in the embodiments of the present application. In the drawings, the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The described embodiments are a subset of the embodiments in the present application and not all embodiments in the present application. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application. Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
It should be noted that the terms "first" and "second" in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Fig. 1 is a schematic flowchart of a processing method of an OFD file based on a browser according to an embodiment of the present application.
The method for processing the OFD file based on the browser shown in fig. 1 includes:
step 1: obtaining an OFD file to be processed, wherein the OFD file to be processed comprises text primitives, image primitives and graphic primitives;
step 2: and processing the OFD file to be processed by Js, and processing the character primitives, the image primitives and the graphic primitives of the OFD file to be processed by Js by adopting WebAssembly and/or a server as steps which cannot be processed by Js in the processing process.
The OFD file processing method based on the browser comprises the steps of analyzing OFD contents by using a Js engine of the browser, and directly drawing and displaying; and Js engine is used for directly processing user interaction, collecting user input data, and combining WebAssembly technology of browser (or relying on processing capability of server) to realize word selection copying and file editing of OFD file.
The method can display and edit the OFD document in the browser without installing any plug-in, and supports the functions of text selection copying, authority control and the like. By simultaneously supporting a mechanism of client WebAssembly processing or server processing, the compatibility of the low-version browser is guaranteed, and various complex scenes such as display, editing and control in the OFD processing process can be completely realized. In addition, Js is used as a core to construct, the API capability of the method is stronger, the development friendliness is high, and the environmental adaptability is good.
Referring to fig. 2, in this embodiment, processing the to-be-processed OFD file by Js, and in a process that the Js processes a text primitive, an image primitive, and a graphics primitive of the to-be-processed OFD file, processing by using WebAssembly and/or a server as a step that the Js cannot process in the processing process includes:
analyzing the OFD file to be processed through Js, and thus obtaining character primitives, image primitives and graphic primitives of the OFD file to be processed;
judging whether the font in the character primitive can be acquired through Js, if not, judging whether the font in the character primitive can be acquired through Js
Acquiring font data in the text primitives through a server;
and Js draws the characters according to the font data and the character primitives.
Referring to fig. 2, in this embodiment, processing the to-be-processed OFD file by Js, and in a process that the Js processes a text primitive, an image primitive, and a graphics primitive of the to-be-processed OFD file, processing by using WebAssembly and/or a server as a step that the Js cannot process in the processing process further includes:
judging whether the image information in the image pixels can be acquired through Js, if not, judging whether the image information in the image pixels can be acquired through Js
Decoding the image information through a WebAssembly or a server to obtain decoded image information;
and Js draws the image according to the decoded image information.
Referring to fig. 2, in this embodiment, processing the to-be-processed OFD file by Js, and in a process that the Js processes a text primitive, an image primitive, and a graphics primitive of the to-be-processed OFD file, processing by using WebAssembly and/or a server as a step that the Js cannot process in the processing process further includes:
judging whether the graphic information in the graphic primitive can be acquired through Js, if not, judging whether the graphic information in the graphic primitive can be acquired through Js
And drawing according to the graphic information through the WebAssembly or the server side so as to obtain the drawn graphic information.
In this embodiment, analyzing the to-be-processed OFD file by the Js, so as to obtain a text primitive, an image primitive, and a graphics primitive of the to-be-processed OFD file includes:
analyzing the OFD file to be processed through Js so as to obtain authority information in the OFD file to be processed;
transmitting the authority information to the server;
the server side judges whether the OFD file to be processed is processed or not according to the authority information, if so, the server side judges whether the OFD file to be processed is processed or not, and if not, the server side judges whether the OFD file to be processed is processed
And acquiring a text primitive, an image primitive and a graphic primitive of the OFD file to be processed through Js.
Referring to fig. 2, in this embodiment, the method for processing the OFD file based on the browser further includes: and displaying the processed OFD file to be processed.
Referring to fig. 2, in this embodiment, the method for processing an OFD file based on a browser further includes:
acquiring editing information;
acquiring the displayed data object mapping of the processed OFD file to be processed according to the editing information;
and constructing the data object through the WebAssembly or the server, so as to obtain the constructed OFD object.
Referring to fig. 2, in this embodiment, the method for processing an OFD file based on a browser further includes:
acquiring text information to be copied;
and according to the text information to be copied, performing layout analysis on the displayed data of the processed OFD file to be processed so as to obtain the text information to be copied in the OFD file.
In the actual use process, the main objects of the OFD document comprise three primitives of characters, graphics and images. The rendering and displaying of the OFD file mainly process the three types, and the composite primitive is formed by the three bases. Js engine based on browser can process most of graphic elements, but some are limited by local resources and the processing ability of browser, and are not suitable for Js engine processing, so WebAssembly and/or server are used for processing, resources are saved, and speed is increased, wherein the method for processing an OFD document by the application is as follows:
1) for the text primitives, when some special fonts need to be displayed and the fonts do not exist locally, the traditional method can only find the closest font locally for display, referring to fig. 2, the method of the application is adopted to install the complete font on the server, and during display, the Js engine requests the server for font data and performs drawing display in the browser.
2) Referring to fig. 2, for image primitives, the image formats supported by browsers are limited, some formats such as Jpeg2000, Jbig2, Tiff, etc., and most browsers do not support the processing of these types of images. Aiming at the unsupported image format, the method of the application is that the server side decodes the image format, converts the image format into the format which can be supported by the browser, and pushes the image format to display. If the browser supports WebAssembly technology, a part of the decoding work can be put into WebAssembly and completed by binary codes.
3) Referring to fig. 2, for graphics primitives, the rendering engine of the browser is not fully functional, such as special gradual changes, complex path-based clipping, filling, etc., and is either not supported or inefficient. The method comprises the steps of analyzing and drawing at a server side, and processing the graphics into images for efficient display. If the browser supports WebAssembly technology, a part of the drawing work can be put into WebAssembly and completed by binary code.
Two methods are used for text selective copying, and conventionally, div of Html is generated, text content is put into the div, and selective copying is performed by means of a browser mechanism. Referring to fig. 2, in this embodiment, a layout analysis method is adopted in the present application, an area selected by a user on a browser page is determined according to an operation of a mouse, a keyboard, a touch, or a pen of the user, the selected area is mapped to an area in an OFD document in a server or a WebAssembly, an object and content thereof that can be selected in the area are calculated, pushed to the browser, a selected effect is drawn, and the content is processed into a rich text format supported by the browser and sent to a browser clipboard for the user to perform a subsequent paste operation.
When a user edits the OFD, triggering corresponding editing action according to the operation of a mouse, a keyboard, a touch or a pen of the user, determining the position of the OFD on a browser page, mapping a corresponding control point to a coordinate system of the OFD document, generating a corresponding annotation appearance or a document object in the document according to the mapping relation and corresponding input and output data at a server, and writing the annotation appearance or the document object into the OFD file. While the OFD file is displayed in the browser using the aforementioned flow according to the new OFD file content.
The application also provides a processing system of the OFD file based on the browser, the processing system of the OFD file based on the browser comprises the browser and a server side, and the browser comprises a built-in Js engine and a WebAssembly; wherein,
the browser and the server cooperate to realize the processing method of the OFD file based on the browser.
In this embodiment, the processing system of the browser-based OFD file further includes an input device, such as a mouse, a keyboard, a touch or a pen.
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 the like) having computer-usable program code embodied therein.
Furthermore, it will be obvious that the term "comprising" does not exclude other elements or steps. A plurality of units, modules or devices recited in the device claims may also be implemented by one unit or overall device by software or hardware. The terms first, second, etc. are used to identify names, but not any particular order.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks identified in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The Processor in this embodiment 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, a discrete Gate or transistor logic device, a discrete hardware component, and so on. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may be used to store computer programs and/or modules, and the processor may implement various functions of the apparatus/terminal device by running or executing the computer programs and/or modules stored in the memory, as well as by invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
In this embodiment, the module/unit integrated with the apparatus/terminal device may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow in the method according to the embodiments of the present invention may also be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of the embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like.
It should be noted that the computer readable medium may contain content that is appropriately increased or decreased as required by legislation and patent practice in the jurisdiction. Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application.
Although the invention has been described in detail hereinabove with respect to a general description and specific embodiments thereof, it will be apparent to those skilled in the art that modifications or improvements may be made thereto based on the invention. Accordingly, such modifications and improvements are intended to be within the scope of the invention as claimed.
Claims (10)
1. A method for processing OFD file based on browser is characterized in that the method for processing OFD file based on browser includes:
obtaining an OFD file to be processed, wherein the OFD file to be processed comprises text primitives, image primitives and graphic primitives;
and processing the OFD file to be processed through Js, and processing Js in the processing process of the word primitives, the image primitives and the graphic primitives of the OFD file to be processed through the Js by adopting WebAssembly and/or a server side as a step which cannot be processed by the Js in the processing process.
2. The method for processing the OFD file based on the browser of claim 1, wherein the processing the OFD file to be processed by Js, and in the process of processing the text primitive, the image primitive, and the graphic primitive of the OFD file to be processed by Js, the processing by adopting WebAssembly and/or the server as the step that Js cannot process in the processing process comprises:
analyzing the OFD file to be processed through the Js so as to obtain text primitives, image primitives and graphic primitives of the OFD file to be processed;
judging whether the font in the character primitive can be acquired through Js, if not, judging whether the font in the character primitive can be acquired through Js or not
Acquiring font data in the text graphic elements through a server;
and the Js draws the characters according to the font data and the character primitives.
3. The method for processing the OFD file based on the browser of claim 2, wherein the processing the OFD file to be processed by Js, and in the process of processing the text primitive, the image primitive, and the graphic primitive of the OFD file to be processed by Js, the processing by using WebAssembly and/or the server as a step that Js cannot process in the processing process further comprises:
judging whether the image information in the image primitive can be acquired through Js, if not, judging whether the image information in the image primitive can be acquired through Js
Decoding the image information through the WebAssembly or the server side to obtain decoded image information;
and the Js draws an image according to the decoded image information.
4. The method for processing the OFD file based on the browser of claim 3, wherein the processing the OFD file to be processed by Js, and in the process of processing the text primitive, the image primitive, and the graphic primitive of the OFD file to be processed by Js, the processing by using WebAssembly and/or the server as the step that Js cannot process in the processing process further comprises:
judging whether the graphic information in the graphic primitive can be acquired through Js, if not, judging whether the graphic information in the graphic primitive can be acquired through Js
And drawing according to the graphic information through the WebAssembly or the server so as to obtain the drawn graphic information.
5. The method for processing OFD file based on browser of claim 4, wherein said parsing OFD file to be processed by said Js to obtain text primitive, image primitive and graphics primitive of OFD file to be processed comprises:
analyzing the OFD file to be processed through the Js so as to obtain authority information in the OFD file to be processed;
transmitting the authority information to the server;
the server side judges whether the OFD file to be processed is processed or not according to the authority information, and if yes, the server side judges whether the OFD file to be processed is processed or not, and if not, the server side judges whether the OFD file to be processed is processed
And acquiring a text primitive, an image primitive and a graphic primitive of the OFD file to be processed through the Js.
6. The method for processing the browser-based OFD file according to claim 5, wherein the method for processing the browser-based OFD file further comprises:
and displaying the processed OFD file to be processed.
7. The method for processing the browser-based OFD file according to claim 6, wherein the method for processing the browser-based OFD file further comprises:
acquiring editing information;
acquiring the displayed data object mapping of the processed OFD file to be processed according to the editing information;
and constructing the data object through the WebAssembly or the server, so as to obtain the constructed OFD object.
8. The method for processing the browser-based OFD file according to claim 6, wherein the method for processing the browser-based OFD file further comprises:
acquiring text information to be copied;
and according to the text information to be copied, performing layout analysis on the displayed data of the processed OFD file to be processed so as to obtain the text information to be copied in the OFD file.
9. The system for processing the OFD file based on the browser is characterized by comprising the browser and a server, wherein the browser comprises a built-in Js engine and a WebAssembly; wherein,
the browser and the server cooperate to implement the method for processing OFD files based on browser according to any one of claims 1 to 8.
10. The browser-based OFD file processing system of claim 9, wherein said browser-based OFD file processing system further comprises an input device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110664138.1A CN113296774B (en) | 2021-06-16 | 2021-06-16 | Processing method and system of OFD file based on browser |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110664138.1A CN113296774B (en) | 2021-06-16 | 2021-06-16 | Processing method and system of OFD file based on browser |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113296774A true CN113296774A (en) | 2021-08-24 |
CN113296774B CN113296774B (en) | 2024-06-14 |
Family
ID=77328309
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110664138.1A Active CN113296774B (en) | 2021-06-16 | 2021-06-16 | Processing method and system of OFD file based on browser |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113296774B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114841125A (en) * | 2022-04-20 | 2022-08-02 | 厦门稿定股份有限公司 | AI format file processing method, device and storage medium |
CN116186438A (en) * | 2023-01-13 | 2023-05-30 | 北京华宇信息技术有限公司 | Layout document browsing method and system |
CN116340271A (en) * | 2023-05-26 | 2023-06-27 | 福昕鲲鹏(北京)信息科技有限公司 | Opening method and device of open format document, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111554328A (en) * | 2020-03-31 | 2020-08-18 | 北京奇艺世纪科技有限公司 | Multimedia editing method and device |
CN111611776A (en) * | 2020-05-22 | 2020-09-01 | 北京信息科技大学 | Method and device compatible with version stream document content and supporting synchronous reading |
CN111737621A (en) * | 2020-06-17 | 2020-10-02 | 友虹(北京)科技有限公司 | OFD rendering method, system and device based on WASM |
CN111767491A (en) * | 2020-06-30 | 2020-10-13 | 杭州天谷信息科技有限公司 | OFD document analysis display method and system based on browser |
CN112115738A (en) * | 2019-06-19 | 2020-12-22 | 北京京东尚科信息技术有限公司 | Image identification method and device applied to browser end |
CN112528525A (en) * | 2020-12-31 | 2021-03-19 | 河钢数字技术股份有限公司 | Visual industrial process management and control platform based on modeling technology |
-
2021
- 2021-06-16 CN CN202110664138.1A patent/CN113296774B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112115738A (en) * | 2019-06-19 | 2020-12-22 | 北京京东尚科信息技术有限公司 | Image identification method and device applied to browser end |
CN111554328A (en) * | 2020-03-31 | 2020-08-18 | 北京奇艺世纪科技有限公司 | Multimedia editing method and device |
CN111611776A (en) * | 2020-05-22 | 2020-09-01 | 北京信息科技大学 | Method and device compatible with version stream document content and supporting synchronous reading |
CN111737621A (en) * | 2020-06-17 | 2020-10-02 | 友虹(北京)科技有限公司 | OFD rendering method, system and device based on WASM |
CN111767491A (en) * | 2020-06-30 | 2020-10-13 | 杭州天谷信息科技有限公司 | OFD document analysis display method and system based on browser |
CN112528525A (en) * | 2020-12-31 | 2021-03-19 | 河钢数字技术股份有限公司 | Visual industrial process management and control platform based on modeling technology |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114841125A (en) * | 2022-04-20 | 2022-08-02 | 厦门稿定股份有限公司 | AI format file processing method, device and storage medium |
CN116186438A (en) * | 2023-01-13 | 2023-05-30 | 北京华宇信息技术有限公司 | Layout document browsing method and system |
CN116186438B (en) * | 2023-01-13 | 2023-09-05 | 北京华宇信息技术有限公司 | Layout document browsing method and system |
CN116340271A (en) * | 2023-05-26 | 2023-06-27 | 福昕鲲鹏(北京)信息科技有限公司 | Opening method and device of open format document, electronic equipment and storage medium |
CN116340271B (en) * | 2023-05-26 | 2023-11-03 | 福昕鲲鹏(北京)信息科技有限公司 | Opening method and device of open format document, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113296774B (en) | 2024-06-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113296774B (en) | Processing method and system of OFD file based on browser | |
CN104346322B (en) | Document format processing unit and document format processing method | |
JP5380289B2 (en) | Method and apparatus for font subsetting | |
CN113609820B (en) | Method, device and equipment for generating word file based on extensible markup language file | |
US6801673B2 (en) | Section extraction tool for PDF documents | |
CN109492199B (en) | PDF file conversion method based on OCR pre-judgment | |
CN107517323B (en) | Information sharing method and device and storage medium | |
US20190073342A1 (en) | Presentation of electronic information | |
JP2009545064A5 (en) | ||
CN110083805A (en) | A kind of method and system that Word file is converted to EPUB file | |
CN112487763A (en) | SVG-based OFD file online display method, server side and system | |
CN111159594A (en) | Information processing method, information processing device and terminal equipment | |
US20140258852A1 (en) | Detection and Reconstruction of Right-to-Left Text Direction, Ligatures and Diacritics in a Fixed Format Document | |
CN106776994B (en) | Application method and system of engineering symbols in engineering report forms and web pages | |
CN110708423A (en) | Message content display method and device and storage medium | |
KR100798465B1 (en) | Learning data formation system for the subject explanation | |
CN110737860A (en) | rich text picture insertion method and device | |
CN112417087B (en) | Text-based tracing method and system | |
US8930808B2 (en) | Processing rich text data for storing as legacy data records in a data storage system | |
CN104216868B (en) | A kind of adaptation method and device of document display format | |
CN117032666A (en) | Page editing method and device based on editor, terminal equipment and storage medium | |
CN115904167A (en) | Processing method and device of webpage icon, storage medium and electronic equipment | |
CN113343663A (en) | Bill structuring method and device | |
CN113742284A (en) | Method and system for converting OFD file into picture based on Java | |
CN113655973A (en) | Page segmentation method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |