CN117875263B - Reading method of DLF dynamic format file - Google Patents

Reading method of DLF dynamic format file Download PDF

Info

Publication number
CN117875263B
CN117875263B CN202410282520.XA CN202410282520A CN117875263B CN 117875263 B CN117875263 B CN 117875263B CN 202410282520 A CN202410282520 A CN 202410282520A CN 117875263 B CN117875263 B CN 117875263B
Authority
CN
China
Prior art keywords
file
dlf
ofd
dynamic
content
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
CN202410282520.XA
Other languages
Chinese (zh)
Other versions
CN117875263A (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 CN202410282520.XA priority Critical patent/CN117875263B/en
Publication of CN117875263A publication Critical patent/CN117875263A/en
Application granted granted Critical
Publication of CN117875263B publication Critical patent/CN117875263B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a reading method of DLF dynamic format files, which is characterized in that a DLF file is analyzed to obtain a file structure of the DLF and a guide page in a DLF file package, the association jump relation among all pages is analyzed to obtain an entry file address of the DLF in the guide file, a home page OFD file is loaded, the association relation among the page and other files and jump event content are analyzed and bound, and a reader acquires file information which is associated and pointed in the page one by one in a preloading way according to an address path; the invention provides a reading device for full-speed analysis of a multi-level xml file package, which reads a text file and an operation function as a format file for the first time.

Description

Reading method of DLF dynamic format file
Technical Field
The invention relates to the technical field of format files, in particular to a reading method of DLF dynamic format files.
Background
According to national standard GB/T39677-2020, in the application guide of OFD in government website webpage archiving, the development and construction of government website webpages are pointed out, the government webpages are archived and saved in OFD format file format, and the construction and archiving and saving of other website webpages can be referred to. But is not applicable in dynamic web pages: the web page elements which can be converted into the OFD format file are static contents and structures in the fully loaded state of the web page, and preferably comprise static contents of columns such as information letter cloth, reading response, business service, interaction communication and the like. Web page elements that can be converted into OFD layout files are not suitable to include dynamic display content such as scrolling, rotation, etc. and embedded interactive object content.
The format document format is an electronic document format with a fixed layout presentation effect, the presentation of the format document is irrelevant to the equipment, and the presentation results of the layout are consistent when the format document is read, printed or printed on various equipment. The format document is mainly applied to the release, propagation and archiving of the file after the file is made, and the dynamic file refers to the file with variable typesetting content or can be tampered, edited and the like through tools. For example, web pages, the content of which is adjusted according to the different resolutions; some icons in the webpage or carousel with JS effect, etc.; the webpage can edit terminal content through a browser; the invention provides a reading method of dynamic format files, which realizes the collection of the format files and the complicated operation of the dynamic files.
Disclosure of Invention
The invention aims to provide a method for reading DLF dynamic format files, which aims to solve the problems in the background technology.
In order to achieve the above purpose, the present invention provides the following technical solutions: the DLF dynamic format file reading method is characterized by comprising the following steps:
step S1: a DLF file is selected, and is analyzed to obtain a file structure of the DLF;
step S2: acquiring a navigation page in a DLF file package, and analyzing the association jump relation among all pages set in the file;
Step S3: acquiring an entry file address of the DLF in the navigation file, and acquiring a home page OFD path in a file packet pointed by the entry file address;
Step S4: loading a home page OFD file, calling a reader to open and render the OFD file;
Step S5: resolving the association relationship between the page and other files and the jump event content, and binding the appointed event to the appointed file position;
step S6: the reader acquires the file information which is associated with and pointed in the preloaded page one by one according to the address path, directly acquires the preloaded content when clicking, and loads the content of the page respectively.
Preferably, the DLF is a compressed package file, and the DLF includes a navigation file and a plurality of OFDs in the DLF, where the navigation file mainly records association relationships between the files, entries of the files, storage paths of the OFDs, positions of triggers and jump events between the OFDs.
Preferably, when the DLF file is analyzed, the file is decoded according to the relevant rule, the HASH value information of the file content is verified to verify whether the file is tampered, and if the file is tampered, the file is prompted to be tampered and is not read.
Preferably, the loading of the top page OFD file adopts a reader to load the OFD address path as the address path of the file.
Preferably, when the home page OFD file is loaded, characters and positions which can be jumped after clicking in the OFD in which the navigation file is located are synchronously acquired, a jump model is added to the appointed content, address paths of the OFD file pointing to other OFDs are acquired, and the link address of the address paths is added to the jump model.
Preferably, after the first page OFD file is loaded, a plurality of threads are created, and the next layer of the OFD file for execution is preloaded in the reader.
Preferably, when the home page OFD file is loaded, the loaded page content comprises static content and dynamic content, the dynamic content comprises information of a dynamic chart, a round-robin picture, video and audio, wherein the round-robin picture, the video and the audio are directly displayed at a designated position as static resource files, when a certain link on the OFD file is clicked, the preloaded designated OFD file is displayed at full speed, the navigation file is synchronously analyzed, and a dynamic skip relation corresponding to the read OFD is set.
Preferably, the step of reading dynamic content in the DLF file comprises the following steps:
Step 1: firstly, constructing N layers, namely 1 to N layers from bottom to top, on a bottom plate, wherein the N layers are used for loading various dynamic information contents of a dynamic area, the display area is displayed as 1 layer of contents by default, and other layers of contents are transparent;
Step 2: loading the combination content of dynamic operation in the dynamic region, setting the triggered operation combination as a main key id, and enabling the main key id to correspond to the corresponding hierarchy one by one;
Step 3: when clicking corresponding operation, acquiring the related primary key id, traversing and inquiring the corresponding hierarchy, loading the dynamic effect on the corresponding hierarchy, setting the display of the dynamic effect, and setting other hierarchies to be in a transparent state.
Preferably, when the reader reads the DLF file, the upper left corner of the reader constructs the total directory of the DLF, and when clicking the directory, the reader can quickly skip reading.
Compared with the prior art, the invention has the beneficial effects that:
(1) The reader provides a reading device for full-speed analysis of a multi-level xml file package, which reads a text file and an operation function as format files for the first time;
(2) The reader is provided with an informatization system or a dynamic file and a dynamic file cluster which can be displayed and fixed at a certain time in original edition, so that original page content, resources and charts of the dynamic file can be reserved, and the historical original appearance of the content at the fixed time point can be restored in a fresh and alive manner, wherein the number of the operable actions is small and small;
(3) The method and the device powerfully fill the blank that webpage elements which can be converted into OFD format files in national standard GB/T39677-2020 are not suitable for dynamic display contents such as scrolling, rotation and the like and embedded interactive object contents.
Drawings
FIG. 1 is a flow chart of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made more complete in view of the accompanying drawings, in which it is to be understood that the embodiments described are merely some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The DLF is a compressed package file, and the DLF internally comprises a navigation file and a plurality of OFD files, wherein the navigation file mainly records the association relation among the files, the entry of the files, the storage path of the OFD files, the triggering position and jump event between the OFDs.
Example 1
When reading DLF files, the method comprises the following steps:
Step S1: selecting a DLF file, decompressing the DLF file to obtain a file structure of the DLF, decoding the file according to related rules when analyzing the DLF file, verifying the HASH value information of the file content to verify whether the file is tampered, and prompting that the file is tampered and not read if the file is tampered;
step S2: acquiring a navigation page in a DLF file package, and analyzing the association jump relation among all pages set in the file;
Step S3: acquiring an entry file address of the DLF in the navigation file, and acquiring a home page OFD path in a file packet pointed by the entry file address;
Step S4: loading a home page OFD file, loading the OFD address path by a reader as the address path of the file, calling the reader to open and render the OFD file, wherein the loaded page content comprises static content and dynamic content, the dynamic content comprises dynamic chart, round robin images, video and audio information, when the home page OFD file is loaded, synchronously acquiring characters and positions which can be clicked and then jumped in the OFD where the navigation file is located, adding a jump model on the appointed content, acquiring the address paths of the OFD file pointing to other OFDs, adding the link address of the OFD file into the jump model, creating a plurality of threads after loading the home page OFD file, and preloading the executed OFD file of the next layer in the reader;
Step S5: resolving the association relationship between the page and other files and the jump event content, and binding the appointed event to the appointed file position;
Step S6: the reader acquires file information which is preloaded one by one and related to the page according to the address path, directly acquires preloaded contents when clicking, loads the contents of the page respectively, fully displays the preloaded appointed OFD file when clicking a certain link on the OFD file, synchronously analyzes the navigation file, and sets a dynamic jump relation corresponding to the OFD which is rendered and read.
Example two
The static content reading method in the DLF file is as follows:
Step S1: selecting a DLF file, decompressing the DLF file to obtain a file structure of the DLF, decoding the file according to related rules when analyzing the DLF file, verifying the HASH value information of the file content to verify whether the file is tampered, and prompting that the file is tampered and not read if the file is tampered;
step S2: acquiring a navigation page in a DLF file package, and analyzing the association jump relation among all pages set in the file;
Step S3: acquiring an entry file address of the DLF in the navigation file, and acquiring a home page OFD path in a file packet pointed by the entry file address;
Step S4: loading a home page OFD file, loading the OFD address path as an address path of the file by using a reader, calling the reader to open and render the OFD file, directly showing static resources, and directly showing round-robin pictures, videos and audios at a designated position as the static resource file;
Step S5: resolving the association relationship between the page and other files and the jump event content, and binding the appointed event to the appointed file position;
Step S6: the reader acquires file information which is preloaded one by one and related to the page according to the address path, directly acquires preloaded contents when clicking, loads the contents of the page respectively, fully displays the preloaded appointed OFD file when clicking a certain link on the OFD file, synchronously analyzes the navigation file, and sets a dynamic jump relation corresponding to the OFD which is rendered and read.
Example III
The dynamic content reading method in the DLF file is as follows:
Step S1: selecting a DLF file, decompressing the DLF file to obtain a file structure of the DLF, decoding the file according to related rules when analyzing the DLF file, verifying the HASH value information of the file content to verify whether the file is tampered, and prompting that the file is tampered and not read if the file is tampered;
step S2: acquiring a navigation page in a DLF file package, and analyzing the association jump relation among all pages set in the file;
Step S3: acquiring an entry file address of the DLF in the navigation file, and acquiring a home page OFD path in a file packet pointed by the entry file address;
Step S4: loading a home page OFD file, loading the OFD address path by a reader as an address path of the file, calling the reader to open and render the OFD file, and constructing N layers on a bottom plate from bottom to top in the process of dynamic content rendering, wherein the N layers are used for loading various dynamic information contents of a dynamic region, the display region is displayed as 1 layer of content by default, and other layers of content are transparent;
Step S5: loading the combination content of dynamic operation in the dynamic region, setting the triggered operation combination as a main key id, and enabling the main key id to correspond to the corresponding hierarchy one by one;
Step S6: when clicking corresponding operation, acquiring the related primary key id, traversing and inquiring the corresponding hierarchy, loading the dynamic effect on the corresponding hierarchy, setting the display of the dynamic effect, and setting other hierarchies to be in a transparent state;
step S7: resolving the association relationship between the page and other files and the jump event content, and binding the appointed event to the appointed file position;
Step S8: the reader acquires file information which is preloaded one by one and related to the page according to the address path, directly acquires preloaded contents when clicking, loads the contents of the page respectively, fully displays the preloaded appointed OFD file when clicking a certain link on the OFD file, synchronously analyzes the navigation file, and sets a dynamic jump relation corresponding to the OFD which is rendered and read.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (3)

1. The DLF dynamic format file reading method is characterized by comprising the following steps:
step S1: a DLF file is selected, and is analyzed to obtain a file structure of the DLF;
The DLF is a compressed package file, and the DLF internally comprises a navigation file and a plurality of OFD files, wherein the navigation file mainly records the association relation among the files, the entry of the files, the storage path of the OFD files, the triggering position and jump event between the OFDs;
step S2: acquiring a navigation page in a DLF file package, and analyzing the association jump relation among all pages set in the file;
Step S3: acquiring an entry file address of the DLF in the navigation file, and acquiring a home page OFD path in a file packet pointed by the entry file address;
Step S4: loading a home page OFD file, calling a reader to open and render the OFD file; loading a home page OFD file, loading the OFD address path by a reader as the address path of the file, synchronously acquiring characters and positions which can be jumped after clicking in the OFD where the navigation file is located when the home page OFD file is loaded, adding a jump model to the appointed content, acquiring the address path of the OFD file pointing to other OFDs, adding the link address of the OFD file to the jumped model, creating a plurality of threads after loading the home page OFD file, pre-loading the executed OFD file of the next layer in the reader, and synchronously analyzing the navigation file and setting the dynamic jump relation corresponding to the read OFD when loading the home page OFD file, wherein the loaded page content comprises static content and dynamic content, and the dynamic content comprises dynamic chart, round-robin picture, video and audio information, wherein the round-robin picture, the video and the audio are directly displayed at the appointed position as the static resource file, and when clicking a certain link on the OFD file, synchronously analyzing the navigation file;
Wherein, the reading of dynamic content in DLF file includes the following steps:
Step 1: firstly, constructing N layers, namely 1 to N layers from bottom to top, on a bottom plate, wherein the N layers are used for loading various dynamic information contents of a dynamic area, the display area is displayed as 1 layer of contents by default, and other layers of contents are transparent;
Step 2: loading the combination content of dynamic operation in the dynamic region, setting the triggered operation combination as a main key id, and enabling the main key id to correspond to the corresponding hierarchy one by one;
Step 3: when clicking corresponding operation, acquiring the related primary key id, traversing and inquiring the corresponding hierarchy, loading the dynamic effect on the corresponding hierarchy, setting the display of the dynamic effect, and setting other hierarchies to be in a transparent state;
Step S5: resolving the association relationship between the page and other files and the jump event content, and binding the appointed event to the appointed file position;
step S6: the reader acquires the file information which is associated with and pointed in the preloaded page one by one according to the address path, directly acquires the preloaded content when clicking, and loads the content of the page respectively.
2. The method for reading a DLF dynamic layout file according to claim 1, wherein: and decoding the DLF file according to the relevant rule when analyzing the DLF file, verifying the HASH value information of the file content to verify whether the file is tampered, and prompting that the display file is tampered and not read if the file is tampered.
3. The method for reading a DLF dynamic layout file according to claim 1, wherein: when the reader reads DLF files, the upper left corner of the reader constructs the total directory of the DLF, and when clicking the directory, the reader can quickly skip reading.
CN202410282520.XA 2024-03-13 2024-03-13 Reading method of DLF dynamic format file Active CN117875263B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410282520.XA CN117875263B (en) 2024-03-13 2024-03-13 Reading method of DLF dynamic format file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410282520.XA CN117875263B (en) 2024-03-13 2024-03-13 Reading method of DLF dynamic format file

Publications (2)

Publication Number Publication Date
CN117875263A CN117875263A (en) 2024-04-12
CN117875263B true CN117875263B (en) 2024-05-24

Family

ID=90590350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410282520.XA Active CN117875263B (en) 2024-03-13 2024-03-13 Reading method of DLF dynamic format file

Country Status (1)

Country Link
CN (1) CN117875263B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118193885A (en) * 2024-05-20 2024-06-14 江苏中威科技软件***有限公司 Function examination and performance evaluation device based on DLF file

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186655A (en) * 2011-12-31 2013-07-03 北大方正集团有限公司 Processing method and device for layout file
CA2775101A1 (en) * 2012-04-13 2013-10-13 Blue Storm Media Inc. Multimedia content publishing system and method
CN111753502A (en) * 2020-07-07 2020-10-09 江苏中威科技软件***有限公司 OFD file merging display and directory generation method
CN111753500A (en) * 2020-07-07 2020-10-09 江苏中威科技软件***有限公司 Method for merging and displaying formatted electronic form and OFD (office file format) and generating catalog
CN111767254A (en) * 2020-07-07 2020-10-13 江苏中威科技软件***有限公司 Multi-file reading device and method based on format data stream file technology
CN115935095A (en) * 2022-11-23 2023-04-07 网易(杭州)网络有限公司 Page generation method and device, electronic equipment and storage medium
CN116579295A (en) * 2023-07-13 2023-08-11 江苏中威科技软件***有限公司 Method for dynamically inserting pages, moving bits and hiding and displaying multi-format file subscription
CN116702721A (en) * 2023-08-09 2023-09-05 江苏中威科技软件***有限公司 Method and device for adding reading effect to OFD file
CN116757165A (en) * 2023-08-09 2023-09-15 江苏中威科技软件***有限公司 Method for projecting effect tool to OFD file based on layout data stream file base plate

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186655A (en) * 2011-12-31 2013-07-03 北大方正集团有限公司 Processing method and device for layout file
CA2775101A1 (en) * 2012-04-13 2013-10-13 Blue Storm Media Inc. Multimedia content publishing system and method
CN111753502A (en) * 2020-07-07 2020-10-09 江苏中威科技软件***有限公司 OFD file merging display and directory generation method
CN111753500A (en) * 2020-07-07 2020-10-09 江苏中威科技软件***有限公司 Method for merging and displaying formatted electronic form and OFD (office file format) and generating catalog
CN111767254A (en) * 2020-07-07 2020-10-13 江苏中威科技软件***有限公司 Multi-file reading device and method based on format data stream file technology
CN115935095A (en) * 2022-11-23 2023-04-07 网易(杭州)网络有限公司 Page generation method and device, electronic equipment and storage medium
CN116579295A (en) * 2023-07-13 2023-08-11 江苏中威科技软件***有限公司 Method for dynamically inserting pages, moving bits and hiding and displaying multi-format file subscription
CN116702721A (en) * 2023-08-09 2023-09-05 江苏中威科技软件***有限公司 Method and device for adding reading effect to OFD file
CN116757165A (en) * 2023-08-09 2023-09-15 江苏中威科技软件***有限公司 Method for projecting effect tool to OFD file based on layout data stream file base plate

Also Published As

Publication number Publication date
CN117875263A (en) 2024-04-12

Similar Documents

Publication Publication Date Title
CN117875263B (en) Reading method of DLF dynamic format file
US9977768B2 (en) System for clipping webpages by traversing a dom, and highlighting a minimum number of words
CN111753500A (en) Method for merging and displaying formatted electronic form and OFD (office file format) and generating catalog
US8046436B2 (en) System and method of providing context information for client application data stored on the web
US20150039996A1 (en) System and method for dynamically converting webpage, and computer-readable recording medium
US20120297324A1 (en) Navigation Control Availability
US20090083661A1 (en) System and method for selectively displaying web page elements
CN112632437A (en) Webpage generating method and device and computer readable storage medium
WO2022048141A9 (en) Image processing method and apparatus, and computer readable storage medium
US7996779B2 (en) System and method of providing a user interface for client applications to store data and context information on the web
CN113032708A (en) Code-free Web development system
CN117892695B (en) Method for carrying multi-format file by DLF file
EP2275928A1 (en) Method for generating widget icon, client device, and widget engine
CN117910438B (en) Dynamic format file DLF generation device
CN115495417A (en) Content loading method, device, equipment, medium and program product
CN107391534B (en) Page display method, page file return method, page display device, page file return device and computer storage medium
CN117093386B (en) Page screenshot method, device, computer equipment and storage medium
US9158743B1 (en) Grid layout control for network site design
Sarkis et al. A multi-screen refactoring system for video-centric web applications
CN117055987A (en) Webpage display method and device, electronic equipment and computer readable storage medium
US20180090174A1 (en) Video generation of project revision history
US20170031884A1 (en) Automated dependency management based on page components
CN113254823A (en) Webpage data processing method and device
CN112596732A (en) Electronic teaching material manufacturing method and system
Nyrhinen et al. Lively mashups for mobile devices

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