CN110633251A - File conversion method and equipment - Google Patents
File conversion method and equipment Download PDFInfo
- Publication number
- CN110633251A CN110633251A CN201910711350.1A CN201910711350A CN110633251A CN 110633251 A CN110633251 A CN 110633251A CN 201910711350 A CN201910711350 A CN 201910711350A CN 110633251 A CN110633251 A CN 110633251A
- Authority
- CN
- China
- Prior art keywords
- file
- information
- converted
- signature
- page
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/116—Details of conversion of file system types or formats
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention is suitable for the technical field of computers, and provides a file conversion method and equipment, wherein the file conversion method comprises the following steps: the method comprises the steps of obtaining file information of a file to be converted, generating hypertext markup language (HTML) page information based on the file information, determining target position information of a signature area in an HTML page of the file to be signed based on the file information, the HTML page information and the signature area of the file to be converted, and generating a file template to be signed of the file to be converted based on the HTML page information, the position information of the signature area and the file information. According to the scheme, the file can be automatically converted into the signature file template without a large amount of manpower, so that the conversion process is automated, and the efficiency and the flexibility of converting the signature file template are effectively improved.
Description
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a file conversion method and equipment.
Background
With the increasingly common behavior of consumers to purchase products on the internet, the signature mode of the data is also from the initial offline handwritten signature to the subsequent online electronic signature in the Hypertext Markup Language (HTML) web page format, wherein the conversion of the data to be signed in different file types into the signature template in the HTML format is a very important link.
In the prior art, a file conversion signature template needs to be manually manufactured to convert the file content into a predefined document format, the document format is converted into an HTML (hypertext markup language) webpage format after conversion, a position in the HTML after electronic signature is finished is designated, the HTML can be used in a system after the HTML is finished, and a signature file in the designated format is finally exported after a consumer finishes on-line electronic signature.
However, the existing conversion method needs manual format conversion and then is processed by technicians, and the steps need to be repeated when the content of a new insurance product or signature template changes, so that the whole process is not automatic enough, the whole efficiency is low, and a large amount of time cost and maintenance cost are needed.
Disclosure of Invention
In view of this, embodiments of the present invention provide a file conversion method and device, so as to solve the problems in the prior art that the conversion method is not automated enough, the overall efficiency is low, and a large amount of time cost and maintenance cost are required.
A first aspect of an embodiment of the present invention provides a file conversion method, including:
acquiring file information of a file to be converted; the file information comprises file data and file layout information of the file to be converted; the file layout information is used for identifying the position of each file element in the file to be converted;
generating hypertext markup language (HTML) page information based on the file information;
determining target position information of a signature area in an HTML page of the file to be signed based on the file information, the HTML page information and the signature area of the file to be converted;
generating a file template to be signed of the file to be converted based on the HTML page information, the position information of the signature area and the file information; wherein the state of the signature region is set to a listened-to state.
A second aspect of an embodiment of the present invention provides a file conversion apparatus, including:
the first acquisition unit is used for acquiring file information of a file to be converted; the file information comprises file data and file layout information of the file to be converted; the file layout information is used for identifying the position of each file element in the file to be converted;
the first generating unit is used for generating hypertext markup language (HTML) page information based on the file information;
the determining unit is used for determining target position information of a signature area in an HTML page of the file to be signed based on the file information, the HTML page information and the signature area of the file to be converted;
the second generation unit is used for generating a file template to be signed of the file to be converted based on the HTML page information, the position information of the signature area and the file information; wherein the state of the signature region is set to a listened-to state.
Further, the first obtaining unit is specifically configured to:
acquiring the file type and file data stream information of a file to be converted;
determining a data stream analysis method corresponding to a file type based on a corresponding relation between a preset file type and a preset data stream analysis method;
and analyzing the file data stream information based on the data stream analysis method to obtain the file information of the file to be converted.
Further, the first generating unit is specifically configured to:
determining target label information and target style information corresponding to the file information based on a corresponding relationship between preset file information and preset label information and a corresponding relationship between preset file information and preset style information;
and generating hypertext markup language (HTML) page information based on the file information, the target tag information and the target style information.
Further, the determining unit is specifically configured to:
generating a page canvas based on the file information and the HTML page information; the layout of the page canvas is the same as that of an HTML page of the file to be signed;
acquiring the position information of the signature area in the page canvas;
and determining the target position information of the signature area in the HTML page of the file to be signed based on the position information of the signature area in the page canvas and the HTML page information.
Further, the file conversion apparatus further includes:
the second acquisition unit is used for acquiring the signature information of the user when detecting that the user completes online signature in the signature area of the file template to be signed;
and the exporting unit is used for exporting the signature file based on the signature information, the file information and the target position information.
A third aspect of embodiments of the present invention provides a file converting apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the file converting method according to the first aspect when executing the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the steps of the file conversion method according to the first aspect.
In the embodiment of the invention, the file information of the file to be converted is acquired, the HTML page information of the hypertext markup language is generated based on the file information, the target position information of the signature area in the HTML page of the file to be signed is determined based on the file information, the HTML page information and the signature area of the file to be converted, and the file template to be signed of the file to be converted is generated based on the HTML page information, the position information of the signature area and the file information. According to the scheme, the file can be automatically converted into the signature file template without a large amount of manpower, so that the conversion process is automated, and the efficiency and the flexibility of converting the signature file template are effectively improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic flow chart diagram of a file conversion method according to a first embodiment of the present invention;
FIG. 2 is a schematic flowchart of a refinement of S101 in a file conversion method according to a first embodiment of the present invention;
FIG. 3 is a schematic flowchart of a refinement of S102 in a file conversion method according to a first embodiment of the present invention;
FIG. 4 is a schematic flowchart of a refinement of S103 in a file conversion method according to a first embodiment of the present invention;
FIG. 5 is a schematic flow chart diagram of another file conversion method provided by a second embodiment of the invention;
FIG. 6 is a diagram of a file conversion apparatus according to a third embodiment of the present invention;
fig. 7 is a schematic diagram of a file conversion apparatus according to a fourth embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Referring to fig. 1, fig. 1 is a schematic flow chart of a file conversion method according to a first embodiment of the present invention. The main execution body of the file conversion method in this embodiment is a device having a file conversion function, for example, a mobile terminal, a desktop computer, a server, and the like. The file conversion method as shown in fig. 1 may include:
s101: acquiring file information of a file to be converted; the file information comprises file data and file layout information of the file to be converted; the file layout information is used for identifying the position of each file element in the file to be converted.
The file is converted into the file template to be signed, namely different types of files to be signed are converted into HTML pages, so that a user can carry out electronic signature in a webpage. When the file conversion is carried out, the device firstly obtains a file to be converted, wherein the file to be converted is a file which needs a signature of a user, such as an insurance contract, a buying and selling contract and the like. The type of the file to be converted is not limited in this embodiment, and for example, the type of the file to be converted may be a document, a table, a picture, a web page, and the like.
The method comprises the steps of obtaining file information of a file to be converted based on the obtained file to be converted, wherein the file information comprises file data and file layout information of the file to be converted, the file data is the content of the file to be converted, the file layout information is used for identifying the position of each file element in the file to be converted, and the file elements can comprise the title, the text and the like of the file. That is, the file layout information may identify the layout and style of the file to be converted.
Further, in order to accurately obtain the file information of the file to be converted, and thus accurately obtain the file template of the file to be converted to be signed, S101 may include S1011 to S1013, as shown in fig. 2, where S1011 to S1013 are specifically as follows:
s1011: and acquiring the file type and the file data stream information of the file to be converted.
The device acquires the file type of the file to be converted, and can extract the file type of the file to be converted from the file to be converted through the JavaScript of the transliteration type scripting language, wherein the JavaScript belongs to the Web scripting language, is widely used for Web application development, is often used for adding various dynamic functions to a webpage, and provides a smoother and more attractive browsing effect for a user. Usually, JavaScript scripts implement their functions by being embedded in HTML.
The device obtains file data stream information of the file to be converted, and can format the file to be converted into file data stream information in an 8-bit unsigned array format.
S1012: and determining a data stream analysis method corresponding to the file type based on the corresponding relation between the preset file type and the preset data stream analysis method.
In this embodiment, different data stream parsing methods are used to parse file data stream information corresponding to different file types. Therefore, the corresponding relationship between the preset file type and the preset data stream analysis method is set in the device, the device determines the data stream analysis method corresponding to the file type based on the corresponding relationship between the file type and the preset data stream analysis method, and the data stream analysis method is used for analyzing the file data stream information of the file to be converted corresponding to the file type.
S1013: and analyzing the file data stream information based on the data stream analysis method to obtain the file information of the file to be converted.
And the equipment analyzes the file data stream information based on a data stream analysis method to obtain the file information of the file to be converted. Different parsing models and different data tables may be included in different data stream parsing methods, such as a text rendering model, a local image decoding table, a graphics rendering model, a font identification matrix, a field converter mapping table, a string conversion table, border style data, a data stream type mapping table, a roman numeral chart, and other various data and models. The equipment analyzes the file data stream information based on the model and the data table contained in the data stream analysis method to obtain the file information of the file to be converted.
S102: and generating hypertext markup language (HTML) page information based on the file information.
Hypertext Markup Language (HTML), an application under the standard Universal Markup Language. HTML is not a programming language, but a markup language (markup language), which is necessary for web page production. "hypertext" refers to the non-text elements that may contain pictures, links, and even music and programs. It marks the various parts of the web page to be displayed by means of a marker symbol. The web page file itself is a text file, and by adding a marker in the text file, the browser can be told how to display the contents thereof, for example, how to process the words, how to arrange the pictures, how to display the pictures, and the like.
Because the file information comprises the file data and the file layout information of the file to be converted, the device can generate elements and information for generating the HTML page based on the file information, and generate the HTML page information based on the file information.
Further, in this embodiment, when generating the HTML page information, the boundary value formatting may be performed on the HTML page, and even if the HTML page is browsed on a device with a different screen size, the HTML page can be guaranteed to be adaptively displayed on the device.
Further, in order to acquire the HTML page information of the file to be converted, so as to accurately acquire the file template to be signed of the file to be converted, S102 may include S1021 to S1022, as shown in fig. 3, where S1021 to S1022 specifically include:
s1021: and determining target label information and target style information corresponding to the file information based on the corresponding relation between the preset file information and the preset label information and the corresponding relation between the preset file information and the preset style information.
A plurality of label information and style information are preset in the equipment and used for generating HTML page information. The file layout information contained in the file information of different files to be converted is different, the corresponding relation between the preset file information and the preset label information is set in the equipment, and the corresponding relation between the preset file information and the preset style information is set. The device determines target label information and target style information corresponding to the piece information based on the file information, the corresponding relationship between the preset file information and the preset label information, and the corresponding relationship between the preset file information and the preset style information.
S1022: and generating hypertext markup language (HTML) page information based on the file information, the target tag information and the target style information.
The device can determine the format and layout of the HTML page based on the target label information and the target style information, and fill the file content based on the file data in the file information to generate HTML page information of the hypertext markup language.
S103: and determining target position information of the signature area in the HTML page of the file to be signed based on the file information, the HTML page information and the signature area of the file to be converted.
The signature area of the file to be converted is obtained, and the device may obtain the signature area of the file to be converted through the file information, for example, the signature area may be obtained by identifying the file information of the file to be converted, and of course, an area defined by a receiving user may also be used as the signature area, which is not limited herein. The device determines target position information of the signature area in the HTML page based on the HTML page information and the signature area of the file to be converted. Wherein, the target position information of the signature area in the HTML page can be in the form of coordinates.
Further, in order to accurately determine the target location information of the signature region in the HTML page, S103 may include S1031 to S1033, as shown in fig. 4, where S1031 to S1033 are specifically as follows:
s1031: generating a page canvas based on the file information and the HTML page information; and the layout of the page canvas is the same as that of the HTML page of the file to be signed.
The device generates a page canvas based on the file information and the HTML page, the page canvas can be generated through canvas scripts, the page canvas is used for defining images, graphics can be drawn on the canvas, and the device can be used for aspects such as animation, game pictures, data visualization, picture editing, real-time video processing and the like. The layout of the page canvas is the same as that of the HTML page, and particularly, the similarity of the two pages can reach more than 98 percent at present.
S1032: and acquiring the position information of the signature area in the page canvas.
Since the page canvas is used to define the signature region, it can be understood that when a user signs in the signature region, the signature information of the user needs to be acquired, and therefore, the signature region is monitored. The entire page canvas is first monitored, and then a signature area drawn by a user is received, wherein the signature area may be a rectangle. And acquiring the position information of the signature area in the page canvas, wherein the position information comprises the coordinate information and the area information of the signature area.
S1033: and determining the target position information of the signature area in the HTML page of the file to be signed based on the position information of the signature area in the page canvas and the HTML page information.
Since the layout of the page canvas is the same as that of the HTML page, the position information of the signature area in the page canvas and the position information of the signature area in the HTML page should be consistent, and the target position information of the signature area in the HTML page can be determined based on the position information of the signature area in the page canvas and the page layout information of the HTML page.
S104: generating a file template to be signed of the file to be converted based on the HTML page information, the position information of the signature area and the file information; wherein the state of the signature region is set to a listened-to state.
When the device generates a to-be-signed document template to be displayed, the device fills the position information and the document information of the signature area into an HTML page structure identified by HTML page information based on the HTML page information to generate an HTML page of the to-be-signed document template of the to-be-converted document.
In the embodiment of the invention, the file information of the file to be converted is acquired, the HTML page information of the hypertext markup language is generated based on the file information, the target position information of the signature area in the HTML page of the file to be signed is determined based on the file information, the HTML page information and the signature area of the file to be converted, and the file template to be signed of the file to be converted is generated based on the HTML page information, the position information of the signature area and the file information. According to the scheme, the file can be automatically converted into the signature file template without a large amount of manpower, so that the conversion process is automated, and the efficiency and the flexibility of converting the signature file template are effectively improved.
Referring to fig. 5, fig. 5 is a schematic flow chart of another file conversion method according to a second embodiment of the present invention. The main execution body of the method for extracting file conversion in the embodiment is a device with a file conversion function, for example, a mobile terminal, a desktop computer, a server, and the like. In order to realize export of the signature file, so as to facilitate transmission and presentation of the signature template in different scenes, the difference between the present embodiment and the first embodiment is S205 to S206, where S201 to S204 in the present embodiment are the same as S101 to S104 in the first embodiment, and S205 to S206 are executed after S204. As shown in fig. 5, S205 to S206 are specifically as follows:
s205: and when detecting that the user completes online signing in the signing area of the file template to be signed, acquiring the signing information of the user.
Since the state of the signature area is set to be the monitored state, in practical application, the signature event of the user is monitored. The method comprises the steps that a user carries out electronic signature in a signature area in a file template to be signed displayed on electronic equipment, and when the fact that the user completes online signature in the signature area in the signature file template is detected, signature information of the user is obtained, wherein the signature information of the user can be image information of the signature.
S206: and deriving a signature file based on the signature information, the file information and the target position information.
The device generates a signature file with completed signature based on the signature information, the file information and the target position information, wherein the signature file comprises the file to be converted and the completed electronic signature of the user in the signature area, and finally, the signature file is exported. During exporting, a user can specify the format of the exported signature file, and the device exports the signature file according to the format specified by the user.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Referring to fig. 6, fig. 6 is a schematic diagram of a file conversion apparatus according to a third embodiment of the present invention. The units included are used to perform the steps in the embodiments corresponding to fig. 1-5. Please refer to the related description of the embodiments in fig. 1 to 5. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 6, the file conversion apparatus 6 includes:
a first obtaining unit 610, configured to obtain file information of a file to be converted; the file information comprises file data and file layout information of the file to be converted; the file layout information is used for identifying the position of each file element in the file to be converted;
a first generating unit 620 configured to generate hypertext markup language (HTML) page information based on the file information;
a determining unit 630, configured to determine, based on the file information, the HTML page information, and the signature area of the file to be converted, target location information of the signature area in an HTML page of the file to be signed;
a second generating unit 640, configured to generate a to-be-signed document template of the to-be-converted document based on the HTML page information, the location information of the signature area, and the document information; wherein the state of the signature region is set to a listened-to state.
Further, the first obtaining unit 610 is specifically configured to:
acquiring the file type and file data stream information of a file to be converted;
determining a data stream analysis method corresponding to a file type based on a corresponding relation between a preset file type and a preset data stream analysis method;
and analyzing the file data stream information based on the data stream analysis method to obtain the file information of the file to be converted.
Further, the first generating unit 620 is specifically configured to:
determining target label information and target style information corresponding to the file information based on a corresponding relationship between preset file information and preset label information and a corresponding relationship between preset file information and preset style information;
and generating hypertext markup language (HTML) page information based on the file information, the target tag information and the target style information.
Further, the determining unit 630 is specifically configured to:
generating a page canvas based on the file information and the HTML page information; the layout of the page canvas is the same as that of an HTML page of the file to be signed;
acquiring the position information of the signature area in the page canvas;
and determining the target position information of the signature area in the HTML page of the file to be signed based on the position information of the signature area in the page canvas and the HTML page information.
Further, the file conversion apparatus 6 further includes:
the second acquisition unit is used for acquiring the signature information of the user when detecting that the user completes online signature in the signature area of the file template to be signed;
and the exporting unit is used for exporting the signature file based on the signature information, the file information and the target position information.
Fig. 7 is a schematic diagram of a file conversion apparatus according to a fourth embodiment of the present invention. As shown in fig. 7, the file conversion apparatus 7 of this embodiment includes: a processor 70, a memory 61 and a computer program 72, such as a file conversion program, stored in said memory 71 and operable on said processor 70. The processor 70, when executing the computer program 72, implements the steps in the various file conversion method embodiments described above, such as the steps 101 to 104 shown in fig. 1. Alternatively, the processor 70, when executing the computer program 72, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 610 to 640 shown in fig. 6.
Illustratively, the computer program 72 may be partitioned into one or more modules/units that are stored in the memory 71 and executed by the processor 70 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 72 in the file conversion apparatus 7. For example, the computer program 72 may be divided into a first acquiring unit, a first generating unit, a determining unit, and a second generating unit, and the specific functions of each unit are as follows:
the first acquisition unit is used for acquiring file information of a file to be converted; the file information comprises file data and file layout information of the file to be converted; the file layout information is used for identifying the position of each file element in the file to be converted;
the first generating unit is used for generating hypertext markup language (HTML) page information based on the file information;
the determining unit is used for determining target position information of a signature area in an HTML page of the file to be signed based on the file information, the HTML page information and the signature area of the file to be converted;
the second generation unit is used for generating a file template to be signed of the file to be converted based on the HTML page information, the position information of the signature area and the file information; wherein the state of the signature region is set to a listened-to state.
The file conversion device 7 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The file conversion device may include, but is not limited to, a processor 70, a memory 71. It will be appreciated by those skilled in the art that fig. 7 is merely an example of the file conversion device 7, and does not constitute a limitation of the file conversion device 7, and may include more or less components than those shown, or combine some components, or different components, for example, the file conversion device may also include an input-output device, a network access device, a bus, etc.
The Processor 70 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 71 may be an internal storage unit of the file converting apparatus 7, such as a hard disk or a memory of the file converting apparatus 7. The memory 71 may also be an external storage device of the file conversion device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the file conversion device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the file conversion device 7. The memory 71 is used to store the computer program and other programs and data required by the file conversion apparatus. The memory 71 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. . 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 the computer program code, recording medium, usb 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 medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.
Claims (10)
1. A method of file conversion, comprising:
acquiring file information of a file to be converted; the file information comprises file data and file layout information of the file to be converted; the file layout information is used for identifying the position of each file element in the file to be converted;
generating hypertext markup language (HTML) page information based on the file information;
determining target position information of a signature area in an HTML page of the file to be signed based on the file information, the HTML page information and the signature area of the file to be converted;
generating a file template to be signed of the file to be converted based on the HTML page information, the position information of the signature area and the file information; wherein the state of the signature region is set to a listened-to state.
2. The file conversion method according to claim 1, wherein said obtaining file information of the file to be converted includes:
acquiring the file type and file data stream information of a file to be converted;
determining a data stream analysis method corresponding to a file type based on a corresponding relation between a preset file type and a preset data stream analysis method;
and analyzing the file data stream information based on the data stream analysis method to obtain the file information of the file to be converted.
3. The document conversion method according to claim 1, wherein the generating hypertext markup language HTML page information based on the document information includes:
determining target label information and target style information corresponding to the file information based on a corresponding relationship between preset file information and preset label information and a corresponding relationship between preset file information and preset style information;
and generating hypertext markup language (HTML) page information based on the file information, the target tag information and the target style information.
4. The document conversion method according to claim 1, wherein the determining target position information of a signature area in an HTML page of the document to be signed based on the document information, the HTML page information, and the signature area of the document to be converted, comprises:
generating a page canvas based on the file information and the HTML page information; the layout of the page canvas is the same as that of an HTML page of the file to be signed;
acquiring the position information of the signature area in the page canvas;
and determining the target position information of the signature area in the HTML page of the file to be signed based on the position information of the signature area in the page canvas and the HTML page information.
5. The file conversion method according to any one of claims 1 to 4, further comprising, after generating a template of the file to be signed of the file to be converted based on the location information of the signature area and the file information:
when detecting that a user completes online signing in a signing area of the file template to be signed, acquiring signing information of the user;
and deriving a signature file based on the signature information, the file information and the target position information.
6. A file conversion apparatus, comprising:
the first acquisition unit is used for acquiring file information of a file to be converted; the file information comprises file data and file layout information of the file to be converted; the file layout information is used for identifying the position of each file element in the file to be converted;
the first generating unit is used for generating hypertext markup language (HTML) page information based on the file information;
the determining unit is used for determining target position information of a signature area in an HTML page of the file to be signed based on the file information, the HTML page information and the signature area of the file to be converted;
the second generation unit is used for generating a file template to be signed of the file to be converted based on the HTML page information, the position information of the signature area and the file information; wherein the state of the signature region is set to a listened-to state.
7. The file conversion apparatus according to claim 6, wherein the first obtaining unit is specifically configured to:
acquiring the file type and file data stream information of a file to be converted;
determining a data stream analysis method corresponding to a file type based on a corresponding relation between a preset file type and a preset data stream analysis method;
and analyzing the file data stream information based on the data stream analysis method to obtain the file information of the file to be converted.
8. The file conversion apparatus according to claim 6, wherein the first generating unit is specifically configured to:
determining target label information and target style information corresponding to the file information based on a corresponding relationship between preset file information and preset label information and a corresponding relationship between preset file information and preset style information;
and generating hypertext markup language (HTML) page information based on the file information, the target tag information and the target style information.
9. A file conversion device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910711350.1A CN110633251B (en) | 2019-08-02 | 2019-08-02 | File conversion method and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910711350.1A CN110633251B (en) | 2019-08-02 | 2019-08-02 | File conversion method and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110633251A true CN110633251A (en) | 2019-12-31 |
CN110633251B CN110633251B (en) | 2022-05-06 |
Family
ID=68969179
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910711350.1A Active CN110633251B (en) | 2019-08-02 | 2019-08-02 | File conversion method and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110633251B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113743049A (en) * | 2021-09-06 | 2021-12-03 | 四川新网银行股份有限公司 | Method for previewing electronic contract |
CN113961244A (en) * | 2021-12-22 | 2022-01-21 | 深圳市明源云科技有限公司 | Page conversion method, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102789576A (en) * | 2012-06-29 | 2012-11-21 | 鸿富锦精密工业(深圳)有限公司 | Signature feature extraction system and signature feature extraction method |
CN102801525A (en) * | 2012-06-29 | 2012-11-28 | 鸿富锦精密工业(深圳)有限公司 | Electronic equipment, signature verification system and signature verification method thereof |
CN108614839A (en) * | 2016-12-13 | 2018-10-02 | 上海宝信软件股份有限公司 | WORD documents based on browser turn html page visualizing editing method and system |
CN109597954A (en) * | 2018-11-28 | 2019-04-09 | 南京赛克蓝德网络科技有限公司 | Data item methods of exhibiting, calculates equipment and medium at device |
CN109902505A (en) * | 2017-12-11 | 2019-06-18 | 方正国际软件(北京)有限公司 | A kind of storage of Electronic Signature, verification method and device |
-
2019
- 2019-08-02 CN CN201910711350.1A patent/CN110633251B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102789576A (en) * | 2012-06-29 | 2012-11-21 | 鸿富锦精密工业(深圳)有限公司 | Signature feature extraction system and signature feature extraction method |
CN102801525A (en) * | 2012-06-29 | 2012-11-28 | 鸿富锦精密工业(深圳)有限公司 | Electronic equipment, signature verification system and signature verification method thereof |
CN108614839A (en) * | 2016-12-13 | 2018-10-02 | 上海宝信软件股份有限公司 | WORD documents based on browser turn html page visualizing editing method and system |
CN109902505A (en) * | 2017-12-11 | 2019-06-18 | 方正国际软件(北京)有限公司 | A kind of storage of Electronic Signature, verification method and device |
CN109597954A (en) * | 2018-11-28 | 2019-04-09 | 南京赛克蓝德网络科技有限公司 | Data item methods of exhibiting, calculates equipment and medium at device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113743049A (en) * | 2021-09-06 | 2021-12-03 | 四川新网银行股份有限公司 | Method for previewing electronic contract |
CN113961244A (en) * | 2021-12-22 | 2022-01-21 | 深圳市明源云科技有限公司 | Page conversion method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110633251B (en) | 2022-05-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108595583B (en) | Dynamic graph page data crawling method, device, terminal and storage medium | |
CN106599940B (en) | Picture character recognition method and device | |
US9507480B1 (en) | Interface optimization application | |
US10049095B2 (en) | In-context editing of output presentations via automatic pattern detection | |
CN111832449B (en) | Engineering drawing display method and related device | |
CN109656652B (en) | Webpage chart drawing method, device, computer equipment and storage medium | |
US10235712B1 (en) | Generating product image maps | |
CN108334508B (en) | Webpage information extraction method and device | |
CN111240669B (en) | Interface generation method and device, electronic equipment and computer storage medium | |
CN110633251B (en) | File conversion method and equipment | |
CN111144078A (en) | Method and device for determining position to be marked in PDF file, server and storage medium | |
CN110990010A (en) | Software interface code generation method and device | |
US20220301307A1 (en) | Video Generation Method and Apparatus, and Promotional Video Generation Method and Apparatus | |
CN104899203B (en) | Webpage generation method and device and terminal equipment | |
CN113050921A (en) | Webpage conversion method, device, storage medium and computer equipment | |
CN107168635A (en) | Information demonstrating method and device | |
CN113515922A (en) | Document processing method, system, device and interaction device | |
CN117195886A (en) | Text data processing method, device, equipment and medium based on artificial intelligence | |
CN116774973A (en) | Data rendering method, device, computer equipment and storage medium | |
CN108133029B (en) | Map element adjusting method, device and equipment and computer-readable storage medium | |
CN103218358A (en) | Diff scoring method and system | |
CN113297425B (en) | Document conversion method, device, server and storage medium | |
CN114818627A (en) | Form information extraction method, device, equipment and medium | |
CN113343663A (en) | Bill structuring method and device | |
CN114676097A (en) | OFD file processing method, device, equipment and 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 | ||
CP03 | Change of name, title or address |
Address after: 518000 Room 01, 20th Floor, Cuilin Building, No. 10, Kaifeng Road, Maling Community, Meilin Street, Futian District, Shenzhen, Guangdong Patentee after: Shenzhen Handhui Technology Group Co.,Ltd. Address before: 518000 2401e, 24 / F, Hainan Huanqing building, No. 24 Futian Road, Weizhen community, Futian street, Futian District, Shenzhen, Guangdong Patentee before: Shenzhen muchenglin Technology Co.,Ltd. |
|
CP03 | Change of name, title or address |