CN111753499B - Method for merging and displaying electronic form and OFD format file and generating directory - Google Patents

Method for merging and displaying electronic form and OFD format file and generating directory Download PDF

Info

Publication number
CN111753499B
CN111753499B CN202010643499.3A CN202010643499A CN111753499B CN 111753499 B CN111753499 B CN 111753499B CN 202010643499 A CN202010643499 A CN 202010643499A CN 111753499 B CN111753499 B CN 111753499B
Authority
CN
China
Prior art keywords
file
ofd
page
files
directory
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.)
Active
Application number
CN202010643499.3A
Other languages
Chinese (zh)
Other versions
CN111753499A (en
Inventor
何冉冉
蔡亚军
何中
陈明敏
王斌
何登
徐晓辉
姚童
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Zhongwei Technology Software System Co ltd
Original Assignee
Jiangsu Zhongwei Technology Software System Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Zhongwei Technology Software System Co ltd filed Critical Jiangsu Zhongwei Technology Software System Co ltd
Priority to CN202010643499.3A priority Critical patent/CN111753499B/en
Publication of CN111753499A publication Critical patent/CN111753499A/en
Application granted granted Critical
Publication of CN111753499B publication Critical patent/CN111753499B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/137Hierarchical processing, e.g. outlines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • G06F3/04855Interaction with scrollbars
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/189Automatic justification

Abstract

The invention discloses a method for merging and displaying an electronic form and an OFD format file and generating a directory, which comprises the steps of obtaining an electronic form structure body, carrying out table element recombination and storage according to a JSON format, decompressing an OFD file, reading a file path under an OFD folder, splicing file page number information and content information of the OFD file into a JSON array, and converting files in other formats into standard format files according to different methods; adding JSON format data after electronic form element recombination and JSON data of a format file into a JOSN array of an OFD file to form a unified directory after an electronic form, the OFD format file and other format files are combined; and analyzing the data of the JSON array, combining all files into a double-directory revision book, and uniformly reading, retrieving and signing. The invention realizes the combined reading, signing, looking up and searching among the electronic form, the OFD format file and other files, completely keeps the original form of the file and ensures the safety of the file.

Description

Method for merging and displaying electronic form and OFD format file and generating directory
Technical Field
The invention relates to a method for file merging and displaying and directory generating, in particular to a method for merging and displaying and directory generating of an electronic form and an OFD format file, and belongs to the field of computer software.
Background
The workflow engine realizes the circulation of an abstract flow, the realization of specific business needs to be completed in an electronic form module, for example, documents are signed and the examination and approval opinions correspond to a business module, the specific business is realized in the business module and the data is stored in a database table, so that the persistence of the business data is realized. The workflow engine is responsible for connecting the service modules in series to realize the circulation of the service flow. The workflow circulation-based electronic form is obviously different from the traditional electronic document which only can exist as carriers of static and fragmented information, pictures, graphs and the like, can be an electronic, common and convenient-to-use almost any type of document, such as electronic documents frequently used in the fields of electronic government such as online declaration, approval, internal office, government information acquisition, submission and the like, and can substantially apply an XML document technology, so that the optimal characteristics of paper documents such as familiar appearance and feeling are reserved, and meanwhile, powerful business logic functions such as data verification and routing instructions are added. These features provide people with the necessary data access and interaction functions while also allowing governments to interact more efficiently with public applications. The workflow list engine system realizes the low coupling connection of the electronic form and various actual business logics, so that the traditional electronic form is really fused with an application system.
The worldwide Standard date of 14/10/2016, the State standardization administration Committee formally approved the release of the independent technology-based national Standard GB/T33190-2016 electronic document storage and interchange Format document (OFD). The OFD, abbreviation of Open Fixed-layout Document is an electronic file format Document format which is independently controllable in China, and the corresponding international standard is PDF. The OFD format file is obtained by fixed layout, no layout run and what you see is, and can be regarded as 'digital paper' in the computer age; is an ideal document format for electronic document publishing, digital information dissemination and archiving. The format data stream file is a file format which can be attached to a bottom plate (pdf, ofd, video and web pages), a single file is supported, a plurality of files or a plurality of types of files are attached at the same time, the original files and the endorsement content can be checked and previewed without modifying and damaging the original attached files, the content vector of the format data stream file is stored and amplified without distortion, the file can be expressed by a character string, can be directly stored in a database and embedded into a workflow system for endorsement and circulation, the file elements comprise pages, blocks, characters, handwriting, voice, pictures, videos, hyperlinks and other common table elements, each element supports related actions, and the page opening trigger or the click element trigger.
The file flow is based on a work flow electronic form system, business data interaction and storage are realized by an electronic form, an OFD file is generally used as a text, and PDF files with different formats and other files with different formats are used as attachments to exist and are integrally circulated. Various files such as electronic forms and OFD are difficult to realize unified reading experience, different file formats need different readers, reading experience is also different, after the files need to be completely downloaded during reading, the readers are called again to read, reading while loading cannot be achieved, system resources are greatly wasted, different file types are difficult to synchronously display, repeated click operation is needed during reading of multiple different format files simultaneously, the process is complex, multiple OFD format files and the electronic forms are read, the adjacent pages of two adjacent files cannot reach the reading experience of the adjacent pages inside the files, and the reading uniformity cannot be achieved.
Disclosure of Invention
The invention aims to solve the technical problem of providing a method for merging and displaying an electronic form and an OFD format file and generating a directory, wherein the OFD format file, a working flow electronic form and other format files are merged and displayed on the basis of ensuring the independence and the safety of the files.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a method for merging, displaying and generating a directory of an electronic form and an OFD format file is characterized by comprising the following steps:
the method comprises the following steps: acquiring the content of the electronic form, analyzing the form structure, acquiring an electronic form structure, performing form element recombination according to a fixed JSON format, and storing the form element recombination in a workflow engine system;
step two: after traversing a plurality of OFD files, the client copies the OFD files into another directory, changes the format file expansion name of OFD into Zip, and calls a server program to decompress the Zip files to obtain a corresponding file directory;
step three: reading the decompressed files in the OFD folder to obtain a file path in the OFD folder;
step four: the client reads the page number information and the content information of the OFD files in the OFD folders in sequence and splices the page number information and the content information of the OFD files into a JSON array;
step five: converting the other format files into standard format files according to different methods;
step six: adding JSON format data after electronic form element recombination and JSON data of format files converted from other format files into a JOSN array of the OFD file to form a unified directory after the electronic form, the OFD format files and the other format files are combined;
step seven: analyzing data of the JSON array;
step eight: displaying the content of the file;
step nine: the electronic forms, the OFD files and other format files are combined into a double-directory revision book, and reading, searching and signing are unified.
Further, the step one is specifically
Reading the content of the electronic form; analyzing the contents of a document body, a document partition div, a table line tr, a header th, a table unit td, a single-line text input box input, a multi-line text input box textarea, a radio of a radio box, a drop-down box select and a multi-choice box checkbox in the form, then performing table unit element recombination according to a fixed JSON format, and storing the table unit elements in a workflow engine system.
Further, the second step is specifically
Step 21: traversing a plurality of OFD files by the client;
step 22: the client background establishes a new file directory and copies a plurality of OFD files which are traversed into the newly-built file directory;
step 23: changing the suffix names of a plurality of OFD files in the newly-built file directory into zip names OFD respectively;
step 24: and the client calls a server program to decompress the files of the zip files to obtain a folder directory of the decompressed OFD files.
Further, the fourth step is specifically
Step 41: reading a Page _ N file in a Pages folder under an OFD folder by a client, wherein N in the Page _ N is the Page number of the OFD file, and a content.xml file under the Page _ N is the content of each Page of the OFD file in the OFD folder;
step 42: the client reads the Page number information of the Page _ N file and the content information of the content.xml file in each OFD folder in sequence according to the manner of step 41, and establishes a corresponding Page path;
step 43: organizing page paths of a plurality of OFD files according to a JSON mode, and splicing the page paths into JSON arrays; each individual in the JSON array is a file, and the file comprises a file type, a file NAME (NAME), a file unique id, a file outline, a file resource package (RESOURCES) and page content Pages; the Page content Pages comprise a file content pointing path URL of each Page and Page numbers of the Pages of the files of each Page in the files originally belonging to the Pages; the file page number directory of each page file in a plurality of files, whether sign is signed or not and whether specified keywords are contained or not.
Furthermore, in the five other format files in the step five, jcob is adopted for wps, doc/docx and xls/xlsxsx, PowerPoint is adopted for ppt/pptx, autocad is adopted for cad, and pdfWriter is adopted for converting jpg, tif, gif and png pictures into PDF format files or OFD format files.
Further, the seventh step is specifically
Step 71: analyzing the returned file data of the JSON array;
step 72: acquiring a file name, a Page attribute Page and a multi-file Page attribute directory of a JSON array;
step 73: recombining and drawing page numbers, and labeling in a directory according to whether the page is signed with an opinion sign or a keyword for retrieval; the marking form is that the signing opinions are marked in the file directory by adopting the identification icons, and the related key words are marked in the file directory after retrieval by adopting the identification icons.
Further, the step eight is specifically that
Step 81: constructing a View container of a file bottom drawing area in a file display area of a client, wherein the width of the container is set to be a fixed width, and the height of the View container is the height of a page;
step 82: calculating the total page height of a plurality of files according to the height of each file of the JSON array, calculating the size of a scroll bar according to the ratio of the height of a file display area to the total page height, and initializing the scroll bar;
step 83: each directory is bound with a file address path;
step 84: when the directory is clicked, judging the type of the file, and if the file is an electronic form, writing the contained content of the file into a View container according to the form format; if the OFD is the OFD, acquiring a file address path, remotely downloading specified url content, drawing a bottom area in the file, and analyzing and loading the downloaded content according to a standard mode; if the file is a PDF format file, the file is remotely downloaded according to the address path of the PDF file, and then the file is loaded in a bottom area drawn by the file.
Further, the specific manner of clicking the directory in step 84 is
n is the number of files, eachThe number of pages of the file corresponding to the directory is N1,N2…Nn
The total number of directories of several files M = N1+N2+…+Nn(ii) a m is the number of pages corresponding to the selected directory;
if m<N1Jump directly to N1M pages of (c);
if m>N1 && m≤( N1+N2) (ii) a Link jump to N2Of files (M-N1) Page
If m>(N1+N2) Jump to N3Of files (M-N1-N2) Page
If m > (N)1+N2+…+Nn-1) Jump to NnOf files (M-N1-N2-…- Nn-1) And (4) pages.
Further, when the directory is clicked in step 84, if the directory is an OFD format file, the display of the loaded page is completed according to the path address of the corresponding OFD file page and the external resource of the file page, if the directory is a PDF file, the PDF file is downloaded according to the path address of the corresponding PDF file and loaded in the background region, the client loads a plurality of pages before and after the loaded page while the page is loaded, the contents of other pages after the resource page of the OFD or PDF file is loaded into the memory are automatically released, and the number of pages before and after the loaded page is set by the program background.
Further, the ninth step is specifically
When the mouse is rolled and pulled down to read, when the mouse is rolled to the bottom of a certain directory, the file content of the next page of the file in the memory is obtained, whether the content of the next page is another file is judged, if yes, the '… file is automatically prompted to be completely read, and the next file' is read; the server retrieves the OFD folder, the electronic form and other format files, determines page numbers of pages containing the keywords, and returns the pages containing the keywords to the client to finish displaying after filtering the pages not containing the keywords.
Compared with the prior art, the invention has the following advantages and effects:
1. in the display process, the invention can finish reading through the scroll bar, thereby realizing smooth reading among electronic forms, OFD format files and other format files;
2. according to the invention, the catalogs of the electronic form, the OFD format file and other format files are uniformly typeset, retrieved and signed, and the user clicks the re-typesetted catalog to skip for reading, so that the rapid lookup among various files is realized, and the experience effect of the user is improved;
3. the invention realizes the experience degree of the integration of the electronic form, the OFD format file and other format files, and the reading experience degree of adjacent pages between any two adjacent files is consistent with that of adjacent pages in the files;
4. the electronic form is displayed along with the workflow, the electronic form does not need to be formatted, all the characteristics of the original electronic form can be reserved, and the length of the form can be automatically adaptively expanded and contracted.
5. The directory reorganization is realized on the basis of not damaging the original file, the function and the form of the electronic form are kept unchanged, the OFD file keeps the original file, and other accessories are displayed in the original edition original form (the original text is kept and an incidence relation is established with the format file), so that the safety of the mode of displaying and reading by combining the cross-file is greatly guaranteed, and the format data stream file technology is effectively supplemented.
Drawings
FIG. 1 is a flowchart of a method for merging and presenting an electronic form and an OFD format file and generating a directory according to the present invention.
FIG. 2 is a flowchart illustrating a process of a user clicking a directory reveal page according to an embodiment of the present invention.
Fig. 3 is a schematic view of a reading frame of an adjacent page of an electronic form and an OFD layout file according to an embodiment of the present invention.
Fig. 4 is a conceptual diagram of generating a file directory after merging an electronic form and an OFD layout file according to an embodiment of the present invention.
Fig. 5 is a file directory diagram after the electronic form and the OFD layout file are merged according to the embodiment of the present invention.
Fig. 6 is a display diagram of a search page by keywords after the electronic form and the OFD layout file are merged according to the embodiment of the present invention.
FIG. 7 is a JSON format content diagram of electronic form element reorganization according to an embodiment of the invention.
Fig. 8 is a schematic diagram of the organization structure of the folders after the OFD file is decompressed according to the embodiment of the present invention.
Detailed Description
To elaborate on technical solutions adopted by the present invention to achieve predetermined technical objects, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, it is obvious that the described embodiments are only partial embodiments of the present invention, not all embodiments, and technical means or technical features in the embodiments of the present invention may be replaced without creative efforts, and the present invention will be described in detail below with reference to the drawings and in conjunction with the embodiments.
As shown in fig. 1, a method for merging, displaying and generating a directory of an electronic form and an OFD format file of the present invention includes the following steps:
the method comprises the following steps: acquiring the content of the electronic form, analyzing the form structure, acquiring an electronic form structure, performing form element recombination according to a fixed JSON format, and storing the form element recombination in a workflow engine system;
the step one is specifically
Reading the content of the electronic form; analyzing the contents of a document body, a document partition div, a table line tr, a header th, a table unit td, a single-line text input box input, a multi-line text input box textarea, a radio of a radio box, a drop-down box select and a multi-choice box checkbox in the form, then performing table unit element recombination according to a fixed JSON format, and storing the table unit elements in a workflow engine system. Wherein, the body is the body of the document and contains all the contents of the document; div, which may define partitions or sections in a document, may divide the document into separate, distinct parts, may serve as a strict organizational tool, and is not associated with it using any format; table, tags define HTML tables, simple HTML tables consisting of a table element and one or more tr, th, or td elements.
Step two: after traversing a plurality of OFD files, the client copies the OFD files into another directory, changes the format file expansion name of OFD into Zip, and calls a server program to decompress the Zip files to obtain a corresponding file directory;
the second step is
Step 21: traversing a plurality of OFD files by the client;
step 22: the client background establishes a new file directory and copies a plurality of OFD files which are traversed into the newly-built file directory;
step 23: changing the suffix names of a plurality of OFD files in the newly-built file directory into zip names OFD respectively;
step 24: and the client calls a server program to decompress the files of the zip files to obtain a folder directory of the decompressed OFD files.
The method comprises the steps that a client side rapidly searches an OFD format file to check whether an OFD folder is decompressed or not, after the OFD folder is not found, a server is called to decompress the OFD format file into the OFD folder, file data under each OFD folder comprises a path address of each page of the OFD format file and external resources of the corresponding OFD format file page, the external resources of the OFD format file page can record contents such as page pictures, page formats and characters, and the path address of the OFD format file page is a loading address of the OFD format file page.
Step three: reading the decompressed files in the OFD folder to obtain a file path in the OFD folder;
step four: the client reads the page number information and the content information of the OFD files in the OFD folders in sequence, and splices the page number information and the content information of the OFD files into a JSON array.
The fourth step is specifically that
Step 41: reading a Page _ N file in a Pages folder under an OFD folder by a client, wherein N in the Page _ N is the Page number of the OFD file, and a content.xml file under the Page _ N is the content of each Page of the OFD file in the OFD folder;
step 42: the client reads the Page number information of the Page _ N file and the content information of the content.xml file in each OFD folder in sequence according to the manner of step 41, and establishes a corresponding Page path;
step 43: organizing page paths of a plurality of OFD files according to a JSON mode, and splicing the page paths into JSON arrays; each individual in the JSON array is a file, and the file comprises a file type, a file NAME (NAME), a file unique id, a file outline, a file resource package (RESOURCES) and page content Pages; the Page content Pages comprise a file content pointing path URL of each Page and Page numbers of the Pages of the files of each Page in the files originally belonging to the Pages; the file page number directory of each page file in a plurality of files, whether sign is signed or not and whether specified keywords are contained or not.
Step five: converting the other format files into standard format files according to different methods;
in other format files, wps, doc/docx, xls/xlsx adopt jcob, ppt/pptx adopt PowerPoint application, cad adopts autocad, jpg, tif, gif and png pictures adopt PdfWriter to be converted into PDF format files or OFD format files.
Step six: JSON format data after recombination of electronic form elements and JSON data of format files converted from other format files are added in a JOSN array of the OFD file to form a unified directory after the electronic form, the OFD format files and the other format files are combined. As shown in fig. 4 and 5, the system obtains the file directory through the file data in the OFD folder, and then recombines and typesets the file directory, the directory of the electronic form and the directory of the format file converted from the file with other format, and the new recombined directory is formed by recombining a plurality of file directories on the basis of saving the electronic form and the original directory of the OFD format file.
Step seven: analyzing data of the JSON array;
the seventh step is specifically
Step 71: analyzing the returned file data of the JSON array;
step 72: acquiring a file name, a Page attribute Page and a multi-file Page attribute directory of a JSON array;
step 73: and recombining and drawing the page number, and labeling in a directory according to whether the page is signed with an opinion sign or a keyword for retrieval. The marking form is that the signing opinions are marked in the file directory by adopting the identification icons, and the related key words are marked in the file directory after retrieval by adopting the identification icons.
Step eight: displaying the content of the file;
the eighth step is specifically that
Step 81: constructing a View container of a file bottom drawing area in a file display area of a client, wherein the width of the container is set to be a fixed width, and the height of the View container is the height of a page;
step 82: calculating the total page height of a plurality of files according to the height of each file of the JSON array, calculating the size of a scroll bar according to the ratio of the height of a file display area to the total page height, and initializing the scroll bar; when the page is displayed, the client initializes the scroll bar by taking the heights of the electronic form and the OFD format file as the basis, and the user slides the scroll bar up and down to read the merged displayed file. The scrollbar automatically adjusts as the height of the electronic form changes.
Step 83: each directory is bound with a file address path;
step 84: when the directory is clicked, judging the type of the file, and if the file is an electronic form, writing the contained content of the file into a View container according to the form format; if the OFD is the OFD, acquiring a file address path, remotely downloading specified url content, drawing a bottom area in the file, and analyzing and loading the downloaded content according to a standard mode; if the file is a PDF format file, the file is remotely downloaded according to the address path of the PDF file, and then the file is loaded in a bottom area drawn by the file.
The specific way to click on the directory in step 84 is
N is the number of files, and the number of pages corresponding to each file in the directory is N1,N2…Nn
The total number of directories of several files M = N1+N2+…+Nn(ii) a m is the number of pages corresponding to the selected directory;
if m<N1Jump directly to N1M pages of (c);
if m>N1 && m≤( N1+N2) (ii) a Link jump to N2Of files (M-N1) Page
If m>(N1+N2) Jump to N3Of files (M-N1-N2) Page
If m > (N)1+N2+…+Nn-1) Jump to NnOf files (M-N1-N2-…- Nn-1) And (4) pages.
When the directory is clicked in step 84, if the directory is an OFD format file, the loaded page is downloaded according to the path address of the page of the corresponding OFD file and the external resource of the file page is displayed, if the directory is a PDF file, the PDF file is downloaded according to the path address of the corresponding PDF file and loaded in the background region, the client loads a plurality of pages before and after the loaded page while the page is loaded, other page contents are automatically released after the resource page of the OFD or PDF file is loaded to the memory, and the number of pages before and after the loaded page is set by the program background. And the contents of the display page and the upper and lower N pages of the display page are automatically released after being loaded into the memory.
The invention carries out unified typesetting on the catalogues of the electronic form, the OFD format file and other format files, and the user can skip reading by clicking the typesetting catalogues, thereby not only realizing quick lookup among various files, but also effectively improving the experience effect of the user.
When a user reads a page which is combined and displayed, the client side initializes a scroll bar by taking the height of a format file converted from an electronic form, an OFD format file and other format files as a basis, the user smoothly reads the combined and displayed file page by moving the scroll bar up and down, as shown in FIG. 3, the reading experience of the pages adjacent to the electronic form, the OFD format file and other format files is consistent with that of the adjacent pages in the file, the user can smoothly read the electronic form, the OFD format file and other format files by the scroll bar, and when the height of the electronic form is changed in the signing process, the system calculates the whole height of the file in real time and changes the scroll bar; when a user opens any page of any type of file, the client automatically loads the upper and lower N pages of the page, for example, the user opens the first page of the OFD format file, the last file of the OFD is an electronic form, the client automatically loads the last three pages of the electronic form and the second to fourth pages of the OFD format file at the moment, and after the last three pages of the electronic form and the second to fourth pages of the OFD format file are loaded, other page contents are automatically released, so that waste of system resources is avoided.
Step nine: through the unified directory, cross-page, cross-file electronic forms and multi-OFD files are read.
The ninth step is
When the mouse is rolled and pulled down to read, when the mouse is rolled to the bottom of a certain directory, the file content of the next page of the file in the memory is obtained, whether the content of the next page is another file is judged, if yes, the '… file is automatically prompted to be completely read, and the next file is read'.
The server retrieves the OFD folder, the electronic form and other format files, determines page numbers of pages containing the keywords, and returns the pages containing the keywords to the client to finish displaying after filtering the pages not containing the keywords. Firstly, the server searches an OFD folder, an electronic form and other format files, determines page numbers of pages containing keywords, for example, the keywords are 'Wangyingming', the server searches a 'management part' in file data, the electronic form and other format files in the OFD folder, and finally determines address paths of the pages containing the keywords 'Wangyingming'. The server filters the page without the keyword 'Wangyangming', then returns the address path containing the keyword 'Wangyangming' page to the client, and the client directly renders and displays the page containing the keyword 'Wangyangming' after analyzing and loading the file data format of the page corresponding to the address path. The user can realize the switching of the page containing the keyword 'Wangsheng' through the keyword search engine tool. The irrelevant file pages are filtered through searching of the keywords, so that the required file pages of the user are obtained, and the speed of obtaining information by the user is greatly improved.
It should be noted that, in the drawings or in the specification, implementations not shown or described are all implementations known to those of ordinary skill in the art, and are not described in detail. Furthermore, the above definitions of the various elements and methods are not limited to the specific structures, shapes, or configurations shown in the examples.
It is also noted that the illustrations herein may provide examples of parameters that include particular values, but that these parameters need not be exactly equal to the corresponding values, but may be approximated to the corresponding values within acceptable error tolerances or design constraints. In addition, unless steps are specifically described or must occur in sequence, the order of the steps is not limited to that listed above and may be changed or rearranged as desired. The embodiments described above may be mixed and matched with each other or with other embodiments based on design and reliability considerations, i.e., technical features in different embodiments may be freely combined to form further embodiments.
Although the present invention has been described with reference to a preferred embodiment, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for merging, displaying and generating a directory of an electronic form and an OFD format file is characterized by comprising the following steps:
the method comprises the following steps: acquiring the content of an electronic form, analyzing the form structure, acquiring an electronic form structure, performing form element recombination according to a fixed JSON format, and storing the form element recombination in a workflow engine system;
step two: after traversing a plurality of OFD files, the client copies the OFD files into another directory, changes the format file expansion name of OFD into zip, and calls a server program to decompress the zip files to obtain a corresponding file directory;
step three: reading the decompressed files in the OFD folder to obtain a file path in the OFD folder;
step four: the client reads the page number information and the content information of the OFD files in the OFD folders in sequence and splices the page number information and the content information of the OFD files into a JSON array;
step five: converting the other format files into standard format files according to different methods;
step six: adding JSON format data after electronic form element recombination and JSON data of format files converted from other format files into a JSON array of the OFD file to form a unified directory after the electronic form, the OFD format files and the other format files are combined;
step seven: analyzing data of the JSON array;
step eight: displaying the content of the file;
step nine: the electronic forms, the OFD files and other format files are combined into a double-directory revision book, and reading, searching and signing are unified.
2. The method for merging, revealing and generating the directory of the electronic form and the OFD layout file according to claim 1, wherein: the step one is specifically
Reading the content of the electronic form; analyzing the contents of a document body, a document partition div, a table line tr, a header th, a table unit td, a single-line text input box input, a multi-line text input box textarea, a radio of a radio box, a drop-down box select and a multi-choice box checkbox in the form, then performing table unit element recombination according to a fixed JSON format, and storing the table unit elements in a workflow engine system.
3. The method for merging, revealing and generating the directory of the electronic form and the OFD layout file according to claim 1, wherein: the second step is specifically that
Step 21: traversing a plurality of OFD files by the client;
step 22: the client background establishes a new file directory and copies a plurality of OFD files which are traversed into the newly-built file directory;
step 23: changing the suffix names of a plurality of OFD files in the newly-built file directory into zip names OFD respectively;
step 24: and the client calls a server program to decompress the files of the zip files to obtain a folder directory of the decompressed OFD files.
4. The method for merging, revealing and generating the directory of the electronic form and the OFD layout file according to claim 1, wherein: the fourth step is specifically that
Step 41: reading a Page _ N file in a Pages folder under an OFD folder by a client, wherein N in the Page _ N is the Page number of the OFD file, and a content.xml file under the Page _ N is the content of each Page of the OFD file in the OFD folder;
step 42: the client reads the Page number information of the Page _ N file and the content information of the content.xml file in each OFD folder in sequence according to the manner of step 41, and establishes a corresponding Page path;
step 43: organizing page paths of a plurality of OFD files according to a JSON mode, and splicing the page paths into JSON arrays; each individual in the JSON array is a file, and the file comprises a file type, a file NAME (NAME), a file unique id, a file outline, a file resource package (RESOURCES) and page content Pages; the Page content Pages comprise file content pointing path URLs of each Page, Page numbers of the Pages in files where the Pages belong originally, file Page numbers of the Pages in multiple files, signed sign and specified keywords.
5. The method for merging, revealing and generating the directory of the electronic form and the OFD layout file according to claim 1, wherein: in the five other format files in the step five, jcob is adopted for wps, doc/docx and xls/xlsxsx, PowerPoint is adopted for ppt/pptx, application is adopted for cad, and PdfWriter is adopted for jpg, tif, gif and png pictures to be converted into PDF format files or OFD format files.
6. The method for merging, revealing and generating the directory of the electronic form and the OFD layout file according to claim 1, wherein: the seventh step is specifically that
Step 71: analyzing the returned file data of the JSON array;
step 72: acquiring a file name, a Page attribute Page and a multi-file Page attribute directory of a JSON array;
step 73: recombining and drawing page numbers, and labeling in a directory according to whether the page signs the opinions or keywords for retrieval; the marking form is that the signing opinions are marked in the file directory by adopting the identification icons, and the related key words are marked in the file directory after retrieval by adopting the identification icons.
7. The method for merging, revealing and generating the directory of the electronic form and the OFD layout file according to claim 1, wherein: the eighth step is specifically that
Step 81: constructing a View container of a file bottom drawing area in a file display area of a client, wherein the width of the container is set to be a fixed width, and the height of the View container is the height of a page;
step 82: calculating the total page height of a plurality of files according to the height of each file of the JSON array, calculating the size of a scroll bar according to the ratio of the height of a file display area to the total page height, and initializing the scroll bar;
step 83: each directory is bound with a file address path;
step 84: when the directory is clicked, judging the type of the file, and if the file is an electronic form, writing the contained content of the file into a View container according to the form format; if the OFD is the OFD, acquiring a file address path, remotely downloading specified url content, drawing a bottom area in the file, and analyzing and loading the downloaded content according to a standard mode; if the file is a PDF format file, the file is remotely downloaded according to the address path of the PDF file, and then the file is loaded in a bottom area drawn by the file.
8. The method for merging and displaying the electronic form and the OFD layout file and generating the directory as claimed in claim 7, wherein: the specific way of clicking the directory in step 84 is
N is the number of files, and the number of pages corresponding to each file in the directory is N1,N2…Nn
The total number of directories of several files M = N1+N2+…+Nn(ii) a m is the number of pages corresponding to the selected directory;
if m<N1Jump directly to N1M pages of (c);
if m>N1 && m≤( N1+N2) (ii) a Link jump to N2Of files (M-N1) Page
If m>(N1+N2) Jump to N3Of files (M-N1-N2) Page
If m > (N)1+N2+…+Nn-1) Jump to NnOf files (M-N1-N2-…- Nn-1) And (4) pages.
9. The method for merging and displaying the electronic form and the OFD layout file and generating the directory as claimed in claim 7, wherein: when the directory is clicked in step 84, if the directory is an OFD format file, the display of the loaded page is completed by downloading the page and the external resource of the file page according to the path address of the corresponding OFD file page, if the directory is a PDF file, the PDF file is downloaded according to the path address of the corresponding PDF file and loaded in the background region, the client loads a plurality of pages before and after the loaded page while loading the page, the contents of other pages are automatically released after the resource page of the OFD or PDF file is loaded into the memory, and the number of pages before and after the loaded page is set by the program background.
10. The method for merging, revealing and generating the directory of the electronic form and the OFD layout file according to claim 1, wherein: the ninth step is specifically
When the mouse is rolled and pulled down to read, when the mouse is rolled to the bottom of a certain directory, the file content of the next page of the file in the memory is obtained, whether the content of the next page is another file is judged, if yes, the '… file is automatically prompted to be completely read, and the next file' is read; the server retrieves the OFD folder, the electronic form and other format files, determines page numbers of pages containing the keywords, and returns the pages containing the keywords to the client to finish displaying after filtering the pages not containing the keywords.
CN202010643499.3A 2020-07-07 2020-07-07 Method for merging and displaying electronic form and OFD format file and generating directory Active CN111753499B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010643499.3A CN111753499B (en) 2020-07-07 2020-07-07 Method for merging and displaying electronic form and OFD format file and generating directory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010643499.3A CN111753499B (en) 2020-07-07 2020-07-07 Method for merging and displaying electronic form and OFD format file and generating directory

Publications (2)

Publication Number Publication Date
CN111753499A CN111753499A (en) 2020-10-09
CN111753499B true CN111753499B (en) 2021-02-05

Family

ID=72679640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010643499.3A Active CN111753499B (en) 2020-07-07 2020-07-07 Method for merging and displaying electronic form and OFD format file and generating directory

Country Status (1)

Country Link
CN (1) CN111753499B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783833A (en) * 2020-12-31 2021-05-11 航天信息股份有限公司 Analysis system and device for OFD format invoice file
CN112862425B (en) * 2021-01-12 2021-11-12 江苏中威科技软件系统有限公司 Device and technology for reading OFD format file life cycle information
CN113111990A (en) * 2021-04-02 2021-07-13 北京点聚信息技术有限公司 Data processing method and system for OFD electronic file
CN113255317B (en) * 2021-05-31 2021-11-30 深圳高灯计算机科技有限公司 OFD format invoice analysis method, system and equipment based on cloud service
CN113961531B (en) * 2021-11-05 2022-08-30 江苏中威科技软件系统有限公司 Method and device for combining multi-format files into OFD (office file format) file
CN114661255A (en) * 2022-05-18 2022-06-24 江苏中威科技软件系统有限公司 Method and system for paging printing of dynamic forms supporting vector handwriting and pictures
CN115454939A (en) * 2022-09-16 2022-12-09 重庆易保全网络科技有限公司 Method for stamping additional page of OFD format file after stamping
CN116166617B (en) * 2023-04-20 2023-08-11 福昕鲲鹏(北京)信息科技有限公司 Catalog generation method and device for combined open format document OFD
CN116719781B (en) * 2023-08-10 2023-11-03 江苏中威科技软件系统有限公司 Method for generating catalogue and labeling by elastic combination of independent files
CN116756102B (en) * 2023-08-10 2023-10-24 江苏中威科技软件系统有限公司 Method for generating combined contract reading and operation by combining multiple independent resources with audio and video
CN116719784B (en) * 2023-08-10 2023-10-24 江苏中威科技软件系统有限公司 Device for elastically clustering and combining and reading multiple OFD format files
CN117539839B (en) * 2024-01-09 2024-03-22 江苏中威科技软件系统有限公司 Method for sharing multiple files and dynamic file platform carrier collaborative interaction consultation
CN117787251A (en) * 2024-02-28 2024-03-29 江苏中威科技软件系统有限公司 Method for combining or merging and reading EXCEL hidden contents by multi-format files

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819572A (en) * 2012-07-20 2012-12-12 迈普通信技术股份有限公司 Method and system for displaying directory data in file management system
CN105843786A (en) * 2016-03-23 2016-08-10 江苏中威科技软件系统有限公司 Layout file displaying method and device
CN107943915A (en) * 2017-11-20 2018-04-20 福建亿榕信息技术有限公司 The method and device of OFD file Real time displayings based on HTML5
CN108415887A (en) * 2018-02-09 2018-08-17 武汉大学 A kind of method that pdf document is converted to OFD files
CN109408569A (en) * 2018-09-28 2019-03-01 平安科技(深圳)有限公司 JSON data transfer device, device, computer equipment and storage medium
CN109829139A (en) * 2019-01-30 2019-05-31 中国软件与技术服务股份有限公司 The method and apparatus that a kind of stream-oriented file of DOC/DOCX format is converted into the layout files of OFD format
EP3499383A1 (en) * 2017-12-13 2019-06-19 Think Research Corporation Automated generation of web forms using fillable electronic documents
CN110362793A (en) * 2019-07-18 2019-10-22 江苏中威科技软件系统有限公司 A method of it converts and shows for layout files

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9972015B2 (en) * 2013-09-13 2018-05-15 Salesforce.Com, Inc. Methods and systems for facilitating customer support using a social post case feed and publisher
CN107766539A (en) * 2017-10-30 2018-03-06 国云科技股份有限公司 A kind of document file management system and implementation method based on Alfresco
CN109408783B (en) * 2018-09-06 2023-05-30 广州城市信息研究所有限公司 Electronic document online editing method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819572A (en) * 2012-07-20 2012-12-12 迈普通信技术股份有限公司 Method and system for displaying directory data in file management system
CN105843786A (en) * 2016-03-23 2016-08-10 江苏中威科技软件系统有限公司 Layout file displaying method and device
CN107943915A (en) * 2017-11-20 2018-04-20 福建亿榕信息技术有限公司 The method and device of OFD file Real time displayings based on HTML5
EP3499383A1 (en) * 2017-12-13 2019-06-19 Think Research Corporation Automated generation of web forms using fillable electronic documents
CN108415887A (en) * 2018-02-09 2018-08-17 武汉大学 A kind of method that pdf document is converted to OFD files
CN109408569A (en) * 2018-09-28 2019-03-01 平安科技(深圳)有限公司 JSON data transfer device, device, computer equipment and storage medium
CN109829139A (en) * 2019-01-30 2019-05-31 中国软件与技术服务股份有限公司 The method and apparatus that a kind of stream-oriented file of DOC/DOCX format is converted into the layout files of OFD format
CN110362793A (en) * 2019-07-18 2019-10-22 江苏中威科技软件系统有限公司 A method of it converts and shows for layout files

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
版式文档格式规范与国际同类标准对比分析;徐鹏等;《信息技术与标准化》;20121231(第09期);第22-25页 *

Also Published As

Publication number Publication date
CN111753499A (en) 2020-10-09

Similar Documents

Publication Publication Date Title
CN111753499B (en) Method for merging and displaying electronic form and OFD format file and generating directory
CN111753500B (en) Method for merging and displaying formatted electronic form and OFD (office file format) and generating catalog
CN111767254B (en) Multi-file reading device and method based on format data stream file technology
CN111753501B (en) Method for merging OFD (office file format) files and displaying quick reading
US8856645B2 (en) Generating formatted documents based on collected data content
US8407585B2 (en) Context-aware content conversion and interpretation-specific views
US9098505B2 (en) Framework for media presentation playback
US8429519B2 (en) Presentation generator
CN111753502B (en) OFD file merging display and directory generation method
US20130191732A1 (en) Fixed Format Document Conversion Engine
MXPA05012556A (en) File formats, methods, and computer program products for representing presentations.
US20110072036A1 (en) Page-based content storage system
GB2423387A (en) Application-Generic Sequence Diagram Generator Driven by a Non-Proprietary Language
CN104123269A (en) Semi-automatic publication generation method and system based on template
CN116719784B (en) Device for elastically clustering and combining and reading multiple OFD format files
US20080250052A1 (en) Repopulating a database with document content
US20020010717A1 (en) System and method for conversion of directly-assigned format attributes to styles in a document
US20200175101A1 (en) Systems and methods for generating social assets from electronic publications
CN102387120B (en) File transmission method and network transmission system
CN103049547B (en) A kind of iOS page processing method based on IDF document format
US7730388B2 (en) Converting an enhanced metafile into a chronologically independent object property list for conversion into a PDF document
US11205207B2 (en) Automated digital catalog generation
Lim et al. Creating virtual exhibitions from an XML-based digital archive
JP5707937B2 (en) Electronic document conversion apparatus and electronic document conversion method
CN113657080A (en) XML-based structured system and data packet creation method

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
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method for merging and displaying electronic form and ofd layout file and generating directory

Effective date of registration: 20211108

Granted publication date: 20210205

Pledgee: Bank of Communications Co., Ltd. Nantong Branch

Pledgor: Jiangsu Zhongwei Technology Software System Co., Ltd

Registration number: Y2021980012067

PE01 Entry into force of the registration of the contract for pledge of patent right