CN117892695B - Method for carrying multi-format file by DLF file - Google Patents
Method for carrying multi-format file by DLF file Download PDFInfo
- Publication number
- CN117892695B CN117892695B CN202410282537.5A CN202410282537A CN117892695B CN 117892695 B CN117892695 B CN 117892695B CN 202410282537 A CN202410282537 A CN 202410282537A CN 117892695 B CN117892695 B CN 117892695B
- Authority
- CN
- China
- Prior art keywords
- file
- dlf
- files
- ofd
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000005096 rolling process Methods 0.000 claims abstract description 5
- 230000000694 effects Effects 0.000 claims description 8
- 238000009877 rendering Methods 0.000 claims description 6
- 230000001960 triggered effect Effects 0.000 claims description 3
- 208000030649 Orofaciodigital Syndromes Diseases 0.000 description 43
- 208000008424 osteofibrous dysplasia Diseases 0.000 description 43
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/106—Display of layout of documents; Previewing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/151—Transformation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/205—Parsing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Document Processing Apparatus (AREA)
Abstract
The invention discloses a method for carrying a multi-format file on a DLF file, which comprises the following steps: selecting a plurality of files in a reader, wherein the files comprise one or more DLF files; converting the non-DLF file into a PDF, OFD, picture or format data stream file; analyzing a DLF file and a hierarchical OFD file under the DLF file; selecting DLF files, carrying the files in the step S2 for combined reading, calculating the height of the combined files, and carrying out self-adaptive adjustment on the height of the combined files; according to the file type of the current page to be read, the DLF file is preloaded, the link information of the DLF guide file is rendered, and rolling reading is carried out.
Description
Technical Field
The invention belongs to the technical field of DLF files, and particularly relates to a method for carrying a multi-format file on a DLF file.
Background
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 text is formed, so that the format file is not easy to operate; dynamic files refer to files with variable typesetting contents 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 web page can edit the content of the terminal through the browser, so that the dynamic file is easy to tamper and different in display at different terminals.
Dynamic layout file: dynamic layout files, DLF for short, exists in the form of a file package, and includes a group of OFD files and association relationships and display relationships between them to form an assembly, so as to implement collection of layout files, complicated dynamic operation, and when a plurality of files are read together, the problem of slow loading easily occurs.
Disclosure of Invention
The present invention is directed to a method for loading a DLF file with multiple formats, so as to solve the problems set forth in the background art.
In order to achieve the above purpose, the present invention provides the following technical solutions: the method for carrying the multi-format file by the DLF file comprises the following steps:
step S1: selecting a plurality of files in a reader, wherein the files comprise one or more DLF files;
Step S2: converting the non-DLF file into a PDF, OFD, picture or format data stream file;
step S3: analyzing a DLF file and a hierarchical OFD file under the DLF file;
Step S4: selecting DLF files, carrying the files in the step S2 for combined reading, calculating the height of the combined files, and carrying out self-adaptive adjustment on the height of the combined files;
step S5: and pre-loading the DLF file according to the file type of the read current page, rendering the link information of the DLF navigation file, and performing rolling reading.
Preferably, the multi-format file type includes doc, docx, wps, xls, xlsx, ppt, pptx, pdf, ofd, txt, bmp, jpg, png, tif, gif, wmv, rm, mov, mp4, avi, mp3, html, true.
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, in the step S4, when the DLF file and the PDF, OFD, the image or the layout data stream file are carried and read, the height of the default initialization home page OFD is the height of the DLF file, and the file corresponding to the DLF is loaded.
Preferably, when the combined file is read, if the current page is an OFD file and DLF files exist in the front and rear N pages of the current page, the front page OFD of the DLF is preloaded, and the link information on the front page OFD is rendered; if the current page is a DLF file, synchronously loading the linked OFD file pointed by the current DLF file during reading, and simultaneously carrying out skip reading marking on the OFD file.
Preferably, the link information refers to lower-level content corresponding to the DLF page content.
Preferably, when clicking a dynamic link to perform skip reading and displaying corresponding content information, firstly acquiring the height of a clicked OFD page, and then dynamically adjusting the height of a current DLF file, wherein the change of the height of the current DLF file comprises enlargement, reduction and invariance; the specific steps of reading dynamic link information in DLF files are as follows:
Step a: 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 b: 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 c: 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, if the DLF file is read by multi-layer clicking, when the DLF file is scrolled to read other pages, the memory of the DLF file is not retracted, and is continuously loaded in the memory, and when the DLF file is scrolled back to read, the content information of the DLF page is directly displayed.
Preferably, in the step S4, the combined file directory is displayed in the upper left corner, where DLF is a single page, and in the operation process, if the mouse is suspended in the DLF directory, the signature of the DLF file content can be checked.
Compared with the prior art, the invention has the beneficial effects that:
(1) The invention creates a mode of carrying and reading the dynamic format file and the files in other formats, carries and reads the DLF file and the files in other formats, does not need to open the DLF file or the files in other formats respectively, and greatly improves the experience of reading;
(2) The DLF file and other format files are combined and read, so that the combined content in the reading process can be rapidly analyzed, and meanwhile, the DLF file and other format files can be timely displayed and timely destroyed through preloading in the reading process.
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 clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. 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.
Example 1
Dynamic layout file: dynamic layout files, abbreviated DLF. The DLF exists in a file package form and comprises a group of OFD files and association relations and display relations among the OFD files to form an assembly so as to realize the collection of layout files and complicated dynamic operation.
The invention provides a method for carrying a multi-format file by a DLF file, which comprises the following steps:
step S1: selecting a plurality of files according to the needs of a user in a reader, wherein the types of the files are various, the selected files are DLF、doc、docx、wps、xls、xlsx、ppt、pptx、pdf、ofd、txt、bmp、jpg、png、tif、gif、wmv、rm、mov,mp4、avi、mp3、html、true, files which can contain one or more DLF files, the DLF is a compressed package file, a guide file and a plurality of OFD files are contained in the DLF, and the guide 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 the jump event between the OFD and the OFD;
Step S2: converting non-DLF files into PDF, OFD, picture or format data stream files, wherein when files are selected for reading, namely, in the conversion reading process, files except for files which are originally DLF files or PDF or OFD or picture or format data stream files are not subjected to file type conversion, and files of other types are converted into PDF or OFD or picture or format data stream files;
step S3: analyzing a DLF file and a hierarchical OFD file under the DLF file, decompressing and acquiring the structure of the DLF file in the analysis process, and acquiring a guide page of the DLF file and an associated skip relation among all pages set by the analysis file, so as to acquire an entry address of the DLF file in the guide file and acquire a top page OFD path in a file DLF file packet pointed by the entry address;
Step S4: selecting a DLF file in a reader, carrying the file in the step S2 for combined reading, calculating the height of the combined file, and adaptively adjusting the height of the combined file, wherein the method mainly comprises the steps of selecting one or more DLF files in the reader, merging the selected DLF files with PDF or OFD or picture or format data stream files, initializing the height of a front page OFD in the DLF file to be the height of the DLF file by default, loading the file corresponding to the DLF, namely adjusting the height of the corresponding DLF file according to the height of the front page OFD if the height of the initial front page OFD is smaller, adjusting the height of the front page OFD, directly calculating the height of each page, and merging and displaying the catalogs;
Step S5: according to the file type of the current page to be read, pre-loading DLF files, wherein the reader acquires file information which is related to and points to each page in a pre-loaded manner according to an address path, directly acquires pre-loaded contents when clicking, loads the contents of the pages respectively, renders the link information of a DLF guide file, and carries out rolling reading, if the current page to be read shows the OFD file in the rolling reading process, and DLF files exist on the front and rear N pages of the current OFD file, the front page OFD of the DLF is pre-loaded, and the link information on the front page OFD is rendered, namely when reading a certain page of the OFD in the reading process, the user can suddenly roll back to the previously read DLF file or jump to the later read DLF file, so that the contents of the DLF file can be seen quickly, for example: if the page 10 is read, the file type of the page 10 is just an OFD file, if the page 8 or the page 12 is a DLF file, the page 8 is preloaded during reading, the first page OFD of the page 12 DLF file is rendered, so that when the page 8 or the page 10 is suddenly rolled back for reading, the content of the first page DLF can be directly read, the link information on the first page is clicked, the corresponding information of the link can be quickly displayed, the time for waiting for rendering is not needed, and therefore, in the combined reading process, the content of the DLF file is preloaded originally, and the process of waiting for page rendering during returning reading or quick reading after is not needed;
If the current page is a DLF file, synchronously loading the OFD file of the link pointed by the current DLF file during reading, and simultaneously carrying out skip reading marking on the OFD file, namely, the OFD file under the DLF file link can be synchronously loaded along with the DLF file, and when clicking the link above the DLF file guide file, the OFD information of the lower layer can be synchronously displayed, so that the page rendering time is reduced; when clicking a dynamic link to skip reading and displaying corresponding content information, firstly acquiring the height of a clicked OFD page, then dynamically adjusting the height of a current DLF file, wherein the height of the current DLF file can be enlarged or reduced or unchanged, so that the height of the current DLF file is consistent with the height of an OFD page;
the specific steps of reading dynamic link information in DLF files are as follows:
Step a: 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 b: 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 c: 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.
If the DLF file is read by multi-layer clicking, when the DLF file is read by scrolling to other pages, the memory of the DLF file is not retracted, the DLF file is continuously loaded into the memory, and when the DLF file is read by scrolling back, the content information of the DLF page is directly displayed; and displaying the merged file catalogue at the upper left corner of the DLF file and the combined files in other formats, wherein the DLF file is an independent page, and if a mouse is suspended in the DLF catalogue in the operation process, the DLF file content signing identification can be checked.
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 (5)
- A method for mounting a multi-format file on a dlf file, comprising the steps of:Step S1: selecting a plurality of files in a reader, wherein the files comprise one or more DLF files, the DLF is a compressed package file, the DLF comprises a guide file and a plurality of OFD files, and the guide 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 the jump event between the OFD and the OFD;Step S2: converting the non-DLF file into a PDF, OFD, picture or format data stream file;step S3: analyzing a DLF file and a hierarchical OFD file under the DLF file;Step S4: selecting DLF files, carrying the files in the step S2 for combined reading, calculating the height of the combined files, and carrying out self-adaptive adjustment on the height of the combined files;Step S5: according to the file type of the current page, pre-loading a DLF file, rendering link information of a DLF guide file, performing rolling reading, and when the combined file is read, if the current page is an OFD file, and the front and rear N pages of the current page have the DLF file, pre-loading a first page OFD of the DLF, and rendering link information on the first page OFD, wherein the link information refers to lower-level content corresponding to the content of the DLF page; if the current page is a DLF file, synchronously loading an OFD file of a link pointed by the current DLF file during reading, and simultaneously carrying out skip reading marking on the OFD file, when clicking the link to carry out skip reading, and when the link displays corresponding content information, firstly acquiring the height of the clicked OFD page, and then dynamically adjusting the height of the current DLF file, wherein the change of the height of the current DLF file comprises enlargement, reduction and invariance; the specific steps for reading the link information in the DLF file are as follows: step a: 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 b: 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 c: 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.
- 2. The method for carrying a multi-format file on a DLF file according to claim 1, wherein: the types of the multi-format file comprise doc, docx, wps, xls, xlsx, ppt, pptx, pdf, ofd, txt, bmp, jpg, png, tif, gif, wmv, rm, mov, mp, avi, mp3, html and true.
- 3. The method for carrying a multi-format file on a DLF file according to claim 1, wherein: in the step S4, when the DLF file and the PDF, OFD, picture or layout data stream file are carried and read, the height of the default initialization home page OFD is the height of the DLF file, and the file corresponding to the DLF is loaded.
- 4. The method for carrying a multi-format file on a DLF file according to claim 1, wherein: if the DLF file is read by multi-layer clicking, when the DLF file is read by scrolling to other pages, the memory of the DLF file is not retracted, the DLF file is continuously loaded into the memory, and when the DLF file is read by scrolling back, the content information of the DLF page is directly displayed.
- 5. The method for carrying a multi-format file on a DLF file according to claim 1, wherein: and in the step S4, the combined file catalog is displayed at the upper left corner, wherein DLF is an independent page, and in the operation process, if a mouse is suspended in the DLF catalog, the DLF file content signing identification can be checked.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410282537.5A CN117892695B (en) | 2024-03-13 | 2024-03-13 | Method for carrying multi-format file by DLF file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410282537.5A CN117892695B (en) | 2024-03-13 | 2024-03-13 | Method for carrying multi-format file by DLF file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117892695A CN117892695A (en) | 2024-04-16 |
CN117892695B true CN117892695B (en) | 2024-05-28 |
Family
ID=90642590
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410282537.5A Active CN117892695B (en) | 2024-03-13 | 2024-03-13 | Method for carrying multi-format file by DLF file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117892695B (en) |
Families Citing this family (1)
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)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015035943A1 (en) * | 2013-09-13 | 2015-03-19 | 北京奇虎科技有限公司 | Method and device for loading picture in browser, and browser |
CN109522277A (en) * | 2018-10-10 | 2019-03-26 | 江苏中威科技软件***有限公司 | A kind of method and apparatus that multi-format document is read |
CN111753501A (en) * | 2020-07-07 | 2020-10-09 | 江苏中威科技软件***有限公司 | Method for merging OFD (office file format) files and displaying quick reading |
CN111753502A (en) * | 2020-07-07 | 2020-10-09 | 江苏中威科技软件***有限公司 | OFD file merging display and directory generation method |
CN111767254A (en) * | 2020-07-07 | 2020-10-13 | 江苏中威科技软件***有限公司 | Multi-file reading device and method based on format data stream file technology |
CN115495417A (en) * | 2022-09-28 | 2022-12-20 | 中国建设银行股份有限公司 | Content loading method, device, equipment, medium and program product |
CN117171114A (en) * | 2023-11-03 | 2023-12-05 | 江苏中威科技软件***有限公司 | Device for realizing fixed content communication of OFD file communication without landing based on communication system |
CN117235019A (en) * | 2023-11-14 | 2023-12-15 | 江苏中威科技软件***有限公司 | Method for generating new readable file by multi-file extraction combination |
CN117539839A (en) * | 2024-01-09 | 2024-02-09 | 江苏中威科技软件***有限公司 | Method for sharing multiple files and dynamic file platform carrier collaborative interaction consultation |
-
2024
- 2024-03-13 CN CN202410282537.5A patent/CN117892695B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015035943A1 (en) * | 2013-09-13 | 2015-03-19 | 北京奇虎科技有限公司 | Method and device for loading picture in browser, and browser |
CN109522277A (en) * | 2018-10-10 | 2019-03-26 | 江苏中威科技软件***有限公司 | A kind of method and apparatus that multi-format document is read |
CN111753501A (en) * | 2020-07-07 | 2020-10-09 | 江苏中威科技软件***有限公司 | Method for merging OFD (office file format) files and displaying quick reading |
CN111753502A (en) * | 2020-07-07 | 2020-10-09 | 江苏中威科技软件***有限公司 | OFD file merging display and directory generation method |
CN111767254A (en) * | 2020-07-07 | 2020-10-13 | 江苏中威科技软件***有限公司 | Multi-file reading device and method based on format data stream file technology |
CN115495417A (en) * | 2022-09-28 | 2022-12-20 | 中国建设银行股份有限公司 | Content loading method, device, equipment, medium and program product |
CN117171114A (en) * | 2023-11-03 | 2023-12-05 | 江苏中威科技软件***有限公司 | Device for realizing fixed content communication of OFD file communication without landing based on communication system |
CN117235019A (en) * | 2023-11-14 | 2023-12-15 | 江苏中威科技软件***有限公司 | Method for generating new readable file by multi-file extraction combination |
CN117539839A (en) * | 2024-01-09 | 2024-02-09 | 江苏中威科技软件***有限公司 | Method for sharing multiple files and dynamic file platform carrier collaborative interaction consultation |
Also Published As
Publication number | Publication date |
---|---|
CN117892695A (en) | 2024-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111753500B (en) | Method for merging and displaying formatted electronic form and OFD (office file format) and generating catalog | |
CN117892695B (en) | Method for carrying multi-format file by DLF file | |
CN111753499B (en) | Method for merging and displaying electronic form and OFD format file and generating directory | |
CN111767254B (en) | Multi-file reading device and method based on format data stream file technology | |
US9900297B2 (en) | System, method and apparatus for selecting content from web sources and posting content to web logs | |
CN101957730B (en) | Messaging device and information processing method | |
JP4192150B2 (en) | Presentation of HTML content on the small screen terminal display | |
CN111753501B (en) | Method for merging OFD (office file format) files and displaying quick reading | |
US7519573B2 (en) | System and method for clipping, repurposing, and augmenting document content | |
US8566711B1 (en) | Document views | |
CN111753502B (en) | OFD file merging display and directory generation method | |
US20040100509A1 (en) | Web page partitioning, reformatting and navigation | |
CN102123195A (en) | Apparatus and method for providing bookmark service in communication terminal | |
CN103279259A (en) | Providing theme variations in a user interface | |
US20070136268A1 (en) | Just in time loading list | |
CN109614601A (en) | Form processing method, device, equipment and readable medium based on web | |
CN103324731A (en) | Method and device for converting spreadsheet file into web format file | |
WO2007041924A1 (en) | A device of implementing a flexible page layout and method thereof | |
CN102859520A (en) | Method and system for organizing information with a sharable user interface | |
CN101523336A (en) | Terminal, content display method, and content display program | |
CN116383546B (en) | File processing method, system, computer device and computer readable storage medium | |
CN117875263B (en) | Reading method of DLF dynamic format file | |
CN117875264B (en) | Dynamic marking method for DLF file | |
CN114357345A (en) | Picture processing method and device, electronic equipment and computer readable storage medium | |
CN116719784A (en) | Device for elastically clustering and combining and reading multiple OFD format files |
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 |