CN117436428A - Document page display method and device, electronic equipment and storage medium - Google Patents

Document page display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117436428A
CN117436428A CN202311553153.4A CN202311553153A CN117436428A CN 117436428 A CN117436428 A CN 117436428A CN 202311553153 A CN202311553153 A CN 202311553153A CN 117436428 A CN117436428 A CN 117436428A
Authority
CN
China
Prior art keywords
document
page
target
preset
displayed
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.)
Pending
Application number
CN202311553153.4A
Other languages
Chinese (zh)
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.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology 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 Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202311553153.4A priority Critical patent/CN117436428A/en
Publication of CN117436428A publication Critical patent/CN117436428A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography

Abstract

The embodiment of the disclosure provides a document page display method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a field to be displayed of a document to be displayed in a preset document page; adding the field to be displayed into a target page template corresponding to the preset document page to obtain a target page file corresponding to the document to be displayed; and generating a target document page based on the target page file, and displaying the target document page, wherein the target document page is a preset document page corresponding to the document to be displayed. According to the method, the extracted field to be displayed is added into the target page template corresponding to the preset document page, so that the target page file corresponding to the document to be displayed is obtained, the consistency of page display is realized, and the quick updating iteration of the page is supported.

Description

Document page display method and device, electronic equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a document page display method, a document page display device, electronic equipment and a storage medium.
Background
At present, electronic publication (electronic Publication, ePub) documents have various styles, taking copyrighted pages as examples, and since publications come from different manufacturers, various copyrighted page styles exist, so that page display consistency is not facilitated.
Disclosure of Invention
The embodiment of the disclosure provides a document page display method, a document page display device, an electronic device and a storage medium, so as to realize page display consistency.
In a first aspect, an embodiment of the present disclosure provides a method for displaying a document page, including:
acquiring a field to be displayed of a document to be displayed in a preset document page;
adding the field to be displayed into a target page template corresponding to the preset document page to obtain a target page file corresponding to the document to be displayed;
and generating a target document page based on the target page file, and displaying the target document page, wherein the target document page is a preset document page corresponding to the document to be displayed.
In a second aspect, an embodiment of the present disclosure further provides a display apparatus for a document page, including:
the acquisition module is used for acquiring a field to be displayed of a document to be displayed in a preset document page;
The adding module is used for adding the field to be displayed into a target page template corresponding to the preset document page to obtain a target page file corresponding to the document to be displayed;
and the display module is used for generating a target document page based on the target page file and displaying the target document page, wherein the target document page is a preset document page corresponding to the document to be displayed.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, including:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a presentation method for document pages as described in embodiments of the present disclosure.
In a fourth aspect, the embodiments of the present disclosure further provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method for presenting a document page according to the embodiments of the present disclosure.
The embodiment of the disclosure provides a method, a device, an electronic device and a storage medium for displaying a document page, wherein the method comprises the following steps: acquiring a field to be displayed of a document to be displayed in a preset document page; adding the field to be displayed into a target page template corresponding to the preset document page to obtain a target page file corresponding to the document to be displayed; and generating a target document page based on the target page file, and displaying the target document page, wherein the target document page is a preset document page corresponding to the document to be displayed. By using the technical scheme, the extracted field to be displayed is added into the target page template corresponding to the preset document page, so that the target page file corresponding to the document to be displayed is obtained, the consistency of page display is realized, and the quick updating iteration of the page is supported.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of a method for displaying a document page according to an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating another method for displaying a document page according to an embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating another method for displaying a document page according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a display device for a document page according to an embodiment of the disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
It will be appreciated that prior to using the technical solutions disclosed in the embodiments of the present disclosure, the user should be informed and authorized of the type, usage range, usage scenario, etc. of the personal information related to the present disclosure in an appropriate manner according to the relevant legal regulations.
For example, in response to receiving an active request from a user, a prompt is sent to the user to explicitly prompt the user that the operation it is requesting to perform will require personal information to be obtained and used with the user. Thus, the user can autonomously select whether to provide personal information to software or hardware such as an electronic device, an application program, a server or a storage medium for executing the operation of the technical scheme of the present disclosure according to the prompt information.
As an alternative but non-limiting implementation, in response to receiving an active request from a user, the manner in which the prompt information is sent to the user may be, for example, a popup, in which the prompt information may be presented in a text manner. In addition, a selection control for the user to select to provide personal information to the electronic device in a 'consent' or 'disagreement' manner can be carried in the popup window.
It will be appreciated that the above-described notification and user authorization process is merely illustrative and not limiting of the implementations of the present disclosure, and that other ways of satisfying relevant legal regulations may be applied to the implementations of the present disclosure.
It will be appreciated that the data (including but not limited to the data itself, the acquisition or use of the data) involved in the present technical solution should comply with the corresponding legal regulations and the requirements of the relevant regulations.
Fig. 1 is a flow chart of a method for displaying a document page according to an embodiment of the disclosure, where the method may be applicable to a case of displaying a document page, and the method may be performed by a device for displaying a document page, where the device may be implemented by software and/or hardware and is generally integrated on an electronic device, and in this embodiment, the electronic device includes but is not limited to: a computer, a mobile phone or a tablet computer and the like.
As shown in fig. 1, a method for displaying a document page provided by an embodiment of the present disclosure includes the following steps:
s110, obtaining a field to be displayed of a document to be displayed in a preset document page.
The document to be displayed can be considered as an electronic document to be displayed, for example, the document can be an electronic book, other electronic publications and the like. The preset document page may refer to a preset document page, for example, the preset document page may be a page where related personnel design page styles in advance, and the preset document page is taken as a copyright page of a document for illustration. The preset document page can contain a plurality of fields to be displayed, display modes configured by the fields, and the like. The field to be displayed is a field to be displayed in a preset document page of the document to be displayed, and for example, the field to be displayed can comprise a title, an author and the like.
The method can firstly acquire the field to be displayed of the document to be displayed in the preset document page so as to carry out the subsequent display step, wherein the specific mode of acquiring the field to be displayed is not limited, and the method can be determined according to the actual condition of the document to be displayed, for example, different documents to be displayed can correspond to different acquisition modes.
In one embodiment, the obtaining the field to be displayed of the document to be displayed in the preset document page includes:
extracting a field to be displayed of a document to be displayed in a preset document page from a document file of the document to be displayed; or alternatively
Acquiring an original page file of an original document page corresponding to a document to be displayed, and extracting a field to be displayed of the document to be displayed in a preset document page from the original page file, wherein the original document page is the preset document page of the original configuration of the document to be displayed.
The original document page may be a preset document page of an original configuration of the document to be displayed, the original page file is an original file corresponding to the original document page, for example, the original document page may be a copyright page of the original configuration of the document to be displayed, and the original page file is an html file corresponding to the original copyright page.
In one embodiment, the method for obtaining the field to be displayed may be directly extracting from a document file of the document to be displayed, for example, when the preset document page is a copyright page, the document file of the document to be displayed may be directly identified to extract the field to be displayed in the copyright page.
In one embodiment, the method of obtaining the field to be displayed may further include obtaining an original page file of an original document page corresponding to the document to be displayed, and then extracting the field to be displayed of the document to be displayed in a preset document page from the obtained original page file, where, for example, the original page file may include a plurality of tags, and in this embodiment, the required field to be displayed may be extracted by identifying a specific tag.
S120, adding the field to be displayed into a target page template corresponding to the preset document page to obtain a target page file corresponding to the document to be displayed.
In this embodiment, the target page template may refer to a page template corresponding to a preset document page, and by way of example, the preset document page of different types of documents may correspond to one page template only, and the preset document page of different types of documents may also correspond to different page templates, for example, the preset document page of different types of documents may be preset, including scientific types and literature types, may also include pages with an illustration, pages with code elements, and may also include other various pages, and then the preset document page of each type of document may be converted into a corresponding page file to form different page templates for adding and displaying different types of documents to be displayed. The method for specifically determining the target page template is not further described herein, as long as the target page template can be obtained.
The target page file can be understood as a page file obtained by filling various fields of a document to be displayed into a target page template and used for generating a target document page.
After the fields to be displayed are obtained through the steps, the obtained fields to be displayed can be added into a target page template corresponding to a preset document page, so that a target page file corresponding to the document to be displayed is obtained, for example, the obtained fields to be displayed can be filled into the corresponding positions in the target page template to obtain the target page file.
S130, generating a target document page based on the target page file, and displaying the target document page, wherein the target document page is a preset document page corresponding to the document to be displayed.
The target document page may be considered to be a preset document page corresponding to the document to be presented.
According to the method and the device, the target document page corresponding to the document to be displayed can be directly generated based on the target page file, for example, page typesetting can be directly performed based on the target page file to generate the target document page, page adjustment can be performed on the basis of page typesetting through the target page file to generate the final target document page, the specific page adjustment process can be configured according to actual requirements, for example, word spacing or line spacing adjustment can be performed on the basis of preliminary typesetting, and display of the target document page can be adaptively adjusted.
According to the method for displaying the document page, provided by the embodiment of the disclosure, the field to be displayed of the document to be displayed in the preset document page is obtained; adding the field to be displayed into a target page template corresponding to the preset document page to obtain a target page file corresponding to the document to be displayed; and generating a target document page based on the target page file, and displaying the target document page, wherein the target document page is a preset document page corresponding to the document to be displayed. By using the method, the extracted field to be displayed is added into the target page template corresponding to the preset document page, so that the target page file corresponding to the document to be displayed is obtained, the consistency of page display is realized, and the quick updating iteration of the page is supported.
In one embodiment, the generating a target document page based on the target page file includes:
determining a target document row with a preset mark, wherein the preset mark is used for indicating that the document row has a vertical centering attribute;
performing page typesetting based on the target page file to generate an original typesetting result;
adjusting the vertical coordinate value of each target document line in the original typesetting result to obtain a target typesetting result, wherein an adjusted target document line set is vertically and centrally displayed in a target document page, and the target document line set is a set of the target document lines;
And generating the target document page according to the target typesetting result.
In this embodiment, the target document line may refer to a document line that carries a preset mark in the target page file, where the preset mark may be used to indicate that the document line has a vertical centering attribute, for example, a preset mark may be added to an element to be centered in the target page template in advance, so that the document line where the element is located has a vertical centering attribute; the original typesetting result can be understood as a typesetting result generated by page typesetting based on the target page file, and the target typesetting result can be a typesetting result obtained by adjusting the original typesetting result, so that the adjusted target document line set can be vertically centered in the target document page for display, and the target document line set is a set of target document lines.
Specifically, the process of generating the target document page may be, for example: after determining that the target page file carries target document lines with preset marks and performing page typesetting based on the target page file to generate an original typesetting result, adjusting the vertical coordinate value of each target document line on the basis of the original typesetting result to obtain a target typesetting result, and finally generating a final target document page according to the target typesetting result, so that the adjusted target document line set is vertically and centrally displayed in the target document page. The embodiment does not limit how to adjust the vertical coordinate value of the target document line, for example, the vertical coordinate value of the target document line may be adjusted directly through an empirical value, or the adjustment of the vertical coordinate value of the target document line may be implemented according to the actual situation of the original typesetting result, which is not limited in the embodiment.
In one embodiment, the adjusting the vertical coordinate value of each target document line in the original typesetting result to obtain a target typesetting result includes:
determining an upper boundary distance and a lower boundary distance of the target document line set according to the vertical coordinate value of the document line in the original typesetting result, wherein the upper boundary distance is the distance between the upper boundary of the target document line set and the upper boundary of the target document page, and the lower boundary distance is the distance between the lower boundary of the target document line set and the lower boundary of the target document page;
determining a coordinate adjustment value of the target document row set in the vertical direction according to the upper boundary distance and the lower boundary distance;
and respectively adjusting the vertical coordinate value of each target document row based on the coordinate adjustment value to obtain a target typesetting result.
The upper boundary distance may be a distance between an upper boundary of the target document line set and an upper boundary of the target document page, and the lower boundary distance is a distance between a lower boundary of the target document line set and a lower boundary of the target document page; the coordinate adjustment value can be understood as an adjustment value of the target document line set in the vertical direction.
In one embodiment, the upper boundary distance and the lower boundary distance of the target document line set may be determined according to the vertical coordinate value of the document line in the original typesetting result, for example, the distance between the upper boundary of the target document line and the upper boundary of the target document page may be calculated for the first target document line in the target document line set according to the order from top to bottom of the display position in the preset document page, and the distance between the lower boundary of the target document line and the lower boundary of the target document page may be calculated for the last target document line in the target document line set, so as to obtain the upper boundary distance and the lower boundary distance corresponding to the target document line set; then, the coordinate adjustment value of the document line set in the vertical direction can be determined according to the obtained upper boundary distance and lower boundary distance, and the specific determination mode can be, for example, that the calculated upper boundary distance and lower boundary distance are distributed evenly to obtain the coordinate adjustment value; and the vertical coordinate value of each target document line can be adjusted based on the obtained coordinate adjustment value, so that a final target typesetting result can be obtained, and the upper boundary distance and the lower boundary distance of the target document line set are equal after the target document line set is adjusted based on the coordinate adjustment value.
It can be considered that the existing typesetting mode mainly comprises the steps of firstly dividing lines according to the width of a reader to obtain a line list of the whole chapter, and then paging according to the height of the reader. Because the dividing process only considers the width of the screen to break, the height of the screen is not recognized, and therefore, the situation that the content cannot be vertically and centrally displayed exists, and the display is not attractive enough. If the font becomes smaller or the screen becomes longer, the final page effect text will be on top of it, and the desired centering effect will not be achieved.
In this embodiment, the css attribute may be defined first, for example, a vertical-center attribute may be added to an element needing to be vertically centered in html of a template (i.e., a preset page template), and then the element needing to be vertically centered is identified and marked during typesetting. Fig. 2 is a flowchart of another method for displaying a document page according to an embodiment of the present disclosure, as shown in fig. 2, in this embodiment, a document to be displayed may be parsed to identify a copyright chapter, a template may be used to replace the document to be displayed, and a vertical centering attribute may be identified when the document to be displayed is parsed, for example, an element that may be parsed to a vertical-center attribute may be identified and marked; when typesetting is performed, the vertical coordinates of the rows of each marked element can be calculated and adjusted again by obtaining the upper and lower blank distances and evenly distributing the upper and lower blank distances, and the upper boundary distance and the lower boundary distance of a target document row set can be determined and obtained according to the vertical coordinate values of the document rows in the original typesetting result, for example, if the top interval is 10, the upper boundary distance of a first row is 10, the upper boundary distance of a second row is 20, the upper boundary distance of a third row is 30, and the bottom interval is 50, so that the coordinate adjustment value of the document row set in the vertical direction can be determined to be 20, and after the interval is adjusted, the top interval can be 30, the upper boundary distance of the first row is 30, the upper boundary distance of the second row is 40, the upper boundary distance of the third row is 50, and the bottom interval is 50, thus obtaining the target typesetting result. And finally, displaying the content according to the target typesetting result, and realizing the display effect of the vertical centering of the content.
An exemplary description is given below of a document page display method provided by an embodiment of the present disclosure:
first, js execution environments (e.g., vmsdk, etc.) may be built into the client to enable js code to be executed. Taking a copyright page as an example for illustration, firstly, a copyright page style can be designed, for example, an effect diagram can be converted into Html and css to obtain an Html file; because there is part of the information that is generally different from book to book, it can be referred to by a variable. Specifically, the nodes to be replaced can be marked, for example, the book names are as follows: xxx is replaced with the title: bookName $. Similarly, all content-variable parts can be marked in this way, resulting in a template html file for the copyrighted page (i.e., a preset page template). Then, writing a content identification script, for example, writing a script for identifying copyrighted page content by using js and other dynamic languages, and issuing the script to a client.
The client can run the script to extract the required fields of the template from the original content: title, author, publishing agency, publishing time, ISBN and the like (namely, an original page file of an original document page corresponding to a document to be displayed is obtained, and a field to be displayed of the document to be displayed in a preset document page is extracted from the original page file, wherein the original document page is the preset document page of the original configuration of the document to be displayed). And then the information extracted in the previous step can be filled into a template Html to generate a new copyright chapter Html, and the original copyright chapter Html is replaced (namely, the field to be displayed is added into a target page template corresponding to the preset document page to obtain a target page file corresponding to the document to be displayed). The copyright page template of the corresponding book can be acquired through a designated interface. The new copyright chapter Html is used for subsequent typesetting and display, so that a unified copyright page effect is realized.
Fig. 3 is a flowchart of another method for displaying a document page according to an embodiment of the present disclosure, where the method is optimized based on the foregoing embodiments. In this embodiment, the case before the to-be-presented field is added to the target page template corresponding to the preset document page is further specified as follows: and determining a target page template corresponding to the preset document page according to the document to be displayed.
For details not yet described in detail in this embodiment, reference is made to the above-mentioned embodiments.
As shown in fig. 3, the method includes:
s210, obtaining a field to be displayed of a document to be displayed in a preset document page.
S220, determining a target page template corresponding to the preset document page according to the document to be displayed.
In this embodiment, before adding the field to be displayed to the target page template corresponding to the preset document page, the target page template corresponding to the preset document page needs to be determined according to the document to be displayed, and the determining means may, for example, randomly designate a certain page template as the target page template, or determine the target page template according to specific information of the document to be displayed, and so on.
In one embodiment, the determining, according to the document to be displayed, the target page template corresponding to the preset document page includes:
Acquiring document information of the document to be displayed;
calculating the matching degree between at least part of preset page templates and the document to be displayed according to the document information, wherein the preset page templates are used for generating page files of the preset document pages;
and selecting one preset page template from the at least partial preset page templates based on the matching degree to serve as a target page template corresponding to the preset document page.
The document information may refer to information related to a document to be displayed, and the embodiment does not limit the content of specific information, for example, may include at least one information item. The preset page templates may be used to generate a page file of a preset document page, for example, the preset page templates may be configured in advance by related personnel, and the number of preset page templates may be multiple, where at least part of the preset page templates may be some preset page templates in all preset page templates, for example, some preset page templates preliminarily determined based on document information, or may be all preset page templates, and so on.
Specifically, the embodiment may obtain the document information of the document to be displayed, and then may select a certain preset page template as a final target page template by matching at least a part of the preset page templates with the document to be displayed, for example, may calculate a matching degree between at least a part of the preset page templates and the document to be displayed, and select one preset page template from at least a part of the preset page templates based on the calculated matching degree, as the target page template corresponding to the preset document page. The step of calculating the matching degree between at least part of the preset page templates and the document to be displayed is not limited, for example, the corresponding matching degree can be obtained by inputting at least part of the preset page templates and the document to be displayed into a preset model, the corresponding matching degree can also be obtained by matching each preset page template with each information item in the document to be displayed, and the specific matching process can be determined by the actual document information. The specific contents of the preset model will not be further described here.
Further, after the matching degree corresponding to each preset page template is calculated, the rule of selecting the target page template is not limited, for example, a preset page template with the matching degree larger than the preset matching value can be selected as the target page template, or a certain preset page template can be randomly selected from the preset page templates according to the matching degree to serve as the target page template, and the like.
S230, adding the field to be displayed into a target page template corresponding to the preset document page to obtain a target page file corresponding to the document to be displayed.
S240, generating a target document page based on the target page file, and displaying the target document page, wherein the target document page is a preset document page corresponding to the document to be displayed.
According to the method for displaying the document page, provided by the embodiment of the disclosure, the field to be displayed of the document to be displayed in the preset document page is obtained; determining a target page template corresponding to the preset document page according to the document to be displayed; adding the field to be displayed into a target page template corresponding to the preset document page to obtain a target page file corresponding to the document to be displayed; and generating a target document page based on the target page file, and displaying the target document page, wherein the target document page is a preset document page corresponding to the document to be displayed. By utilizing the method, different documents to be displayed can be subjected to differentiation processing by determining the target page template corresponding to the preset document page according to the document to be displayed, so that the display of the document to be displayed is better realized.
In one embodiment, the document information exists in at least one information dimension, each information dimension including at least one information item, the at least one information dimension including at least one of a vocabulary dimension, a tag dimension, and a publishing dimension.
In one embodiment, the document information may have at least one information dimension, each information dimension including at least one information item, and the at least one information dimension may include at least one of a vocabulary dimension, a tag dimension, and a publishing dimension. Illustratively, in the vocabulary dimension, one or more information items may be included, such as english vocabulary, rare word vocabulary, spoken vocabulary, etc.; under the tag dimension, one or more information items may be included, such as a figure tag, sup tag, sub tag, table tag, pre tag, code tag, and the like. Wherein, the figure tag can be used to indicate an illustration element in the document, the sup tag and the sub tag can be used to indicate a formula element in the document, the table tag can be used to indicate a table element in the document, and the pre tag and the code tag can be used to indicate a code element in the document.
When the matching degree between a certain preset page template and a document to be displayed is calculated in detail, the matching can be performed with a preset priority, for example, the matching degree between a certain preset page template and the document to be displayed can be calculated in advance based on vocabulary dimensions, namely, the matching degree between a certain preset page template and each information item of the document to be displayed can be calculated further, if the certain matching degree is higher than the preset matching value, the preset page template and the document to be displayed can be considered to be highly matched under the corresponding information item, and the preset page template can be determined to be a target page template; if the matching degree is not present, the matching degree between a certain preset page template and the document to be displayed can be calculated continuously based on the label dimension or the publishing dimension until the information item meeting the matching degree higher than the preset matching value is determined, so that the corresponding preset page template can be determined to be the target page template.
Illustratively, in identifying publication dimensions, since the number of publishers is limited, a client can maintain a list of publishers, read the publisher names when parsing to copyrighted pages, and use different types of templates for different publisher types. For example, a science publisher is a science publisher, which can use templates with science elements; the "civil literature press" is literature (literature) press, and templates with literature elements can be used; a higher education publisher is an education publisher, and templates with educational elements can be used.
In addition, fuzzy matching may be used for other unusual publishers. For books including keywords such as "science", "technology", "electronic", "post and telecommunications", "industry", "construction", "environment" and the like, templates with scientific elements are used for publishers; templates with human elements are used for books including keywords such as "people", "Xinhua", "masses", "society", "industry", "literature", etc. by publishers; for books including keywords such as "photograph", "art", and "audio and video" in publishers, templates with artistic elements are used.
When the dimension of the tag is identified, the effect of the special element can be counted when the content is analyzed, if the number of the < figure > tags is more, the number of the book illustrations is more, and an interesting and lively template is used; if the tags < sup > are more, namely the tags are more in upper and lower marks, the books contain more formulas, and templates of scientific elements are used; if the tags of the < table > are more, namely more tables are contained, templates of data elements are used; if there are more < pre > tags and < code > tags, a book of a code type is indicated, and a template with a computer and code elements is used.
When recognizing the dimension of the vocabulary, the situation of the words and the vocabulary can be counted when analyzing the content. For example, a book containing more english words may use templates containing english elements. The method comprises the steps of carrying out a first treatment on the surface of the Books containing more spoken words (e.g., "you", "me", "he", etc.), which indicate that the book may be of the prose, novel type, templates of novel elements may be used; books containing more numbers and mathematical symbols, which represent possibly related books of science, templates containing scientific elements can be used; books containing more rarely used words, ancient words and dynasty names, the representation may be ancient books, templates containing history correlations and the like can be used.
In one embodiment, the document information includes at least one information item, and the calculating the matching degree between at least part of the preset page template and the document to be displayed according to the document information includes:
aiming at each preset page template in the at least partial preset page templates, calculating the sub-matching degree between the preset page template and each information item of the document to be displayed;
and calculating the matching degree between the preset page template and the document to be displayed according to the sub-matching degree and the weight coefficient corresponding to each information item.
In one embodiment, the document information may include at least one information item, so the present embodiment may directly calculate, for each of at least some of the preset page templates, for example, for a certain preset page template, a sub-matching degree between the preset page template and each information item of the document to be displayed; and then, according to the sub-matching degrees and the weight coefficient corresponding to each information item, carrying out weighted summation on the sub-matching degrees to calculate the matching degree between the preset page template and the document to be displayed, thereby carrying out the subsequent step of determining the target page template. The weight coefficient corresponding to each information item may be determined in advance according to an empirical value, which is not limited in this embodiment.
In one embodiment, the selecting, based on the matching degree, one preset page template from the at least partial preset page templates as the target page template corresponding to the preset document page includes:
and taking the preset page template with the highest matching degree in the at least partial preset page templates as a target page template corresponding to the preset document page.
In one embodiment, the specific means for selecting the target page template may be, for example, to use a preset page template with the highest matching degree corresponding to at least part of preset page templates as the target page template corresponding to the preset document page. On the basis, the matching degree of the target page template can be further improved, so that the display of the target document page is more coordinated.
Therefore, the embodiment of the invention can unify the copyrighted page patterns of all publications in a technical mode, realize the consistency of page display, and simultaneously, different typesetting templates are used according to different books to enable the patterns to be more suitable for laminating content, thereby realizing differential typesetting of the books and supporting rapid updating iteration.
Fig. 4 is a schematic structural diagram of a document page display device according to an embodiment of the present disclosure, where the device may be suitable for displaying a document page, and the device may be implemented by software and/or hardware and is generally integrated on an electronic device.
As shown in fig. 4, the apparatus includes:
an obtaining module 310, configured to obtain a field to be displayed in a preset document page of a document to be displayed;
the adding module 320 is configured to add the field to be displayed to a target page template corresponding to the preset document page, so as to obtain a target page file corresponding to the document to be displayed;
and the display module 330 is configured to generate a target document page based on the target page file, and display the target document page, where the target document page is a preset document page corresponding to the document to be displayed.
According to the display device for the document page, provided by the embodiment of the disclosure, the to-be-displayed fields of the document to be displayed in the preset document page are obtained through the obtaining module; the field to be displayed is added into a target page template corresponding to the preset document page through an adding module, so that a target page file corresponding to the document to be displayed is obtained; and generating a target document page based on the target page file through a display module, and displaying the target document page, wherein the target document page is a preset document page corresponding to the document to be displayed. By using the device, the extracted field to be displayed is added into the target page template corresponding to the preset document page, so that the target page file corresponding to the document to be displayed is obtained, the consistency of page display is realized, and the quick updating iteration of the page is supported.
Optionally, the acquiring module is specifically configured to:
extracting a field to be displayed of a document to be displayed in a preset document page from a document file of the document to be displayed; or alternatively
Acquiring an original page file of an original document page corresponding to a document to be displayed, and extracting a field to be displayed of the document to be displayed in a preset document page from the original page file, wherein the original document page is the preset document page of the original configuration of the document to be displayed.
Optionally, the display device for a document page provided by the embodiment of the present disclosure further includes:
the determining module is used for determining a target page template corresponding to the preset document page according to the document to be displayed before the field to be displayed is added to the target page template corresponding to the preset document page.
Optionally, the determining module includes:
the acquisition unit is used for acquiring the document information of the document to be displayed;
the computing unit is used for computing the matching degree between at least part of preset page templates and the document to be displayed according to the document information, and the preset page templates are used for generating page files of the preset document pages;
And the selection unit is used for selecting one preset page template from the at least partial preset page templates based on the matching degree and taking the preset page template as a target page template corresponding to the preset document page.
Optionally, the document information has at least one information dimension, each information dimension including at least one information item, the at least one information dimension including at least one of a vocabulary dimension, a label dimension, and a publishing dimension.
Optionally, the document information includes at least one information item, and the computing unit is specifically configured to:
aiming at each preset page template in the at least partial preset page templates, calculating the sub-matching degree between the preset page template and each information item of the document to be displayed;
and calculating the matching degree between the preset page template and the document to be displayed according to the sub-matching degree and the weight coefficient corresponding to each information item.
Optionally, the selecting unit is specifically configured to:
and taking the preset page template with the highest matching degree in the at least partial preset page templates as a target page template corresponding to the preset document page.
Optionally, the display module includes:
The determining unit is used for determining a target document row with a preset mark, wherein the preset mark is used for indicating that the document row has a vertical centering attribute;
the page typesetting unit is used for carrying out page typesetting based on the target page file and generating an original typesetting result;
the adjusting unit is used for adjusting the vertical coordinate value of each target document line in the original typesetting result to obtain a target typesetting result, wherein an adjusted target document line set is vertically and centrally displayed in a target document page, and the target document line set is a set of the target document lines;
and generating the target document page according to the target typesetting result.
Optionally, the adjusting unit is specifically configured to:
determining an upper boundary distance and a lower boundary distance of the target document line set according to the vertical coordinate value of the document line in the original typesetting result, wherein the upper boundary distance is the distance between the upper boundary of the target document line set and the upper boundary of the target document page, and the lower boundary distance is the distance between the lower boundary of the target document line set and the lower boundary of the target document page;
Determining a coordinate adjustment value of the target document row set in the vertical direction according to the upper boundary distance and the lower boundary distance;
and respectively adjusting the vertical coordinate value of each target document row based on the coordinate adjustment value to obtain a target typesetting result.
The document page display device can execute the document page display method provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
Referring now to fig. 5, a schematic diagram of an electronic device 400 suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 5 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 5, the electronic device 400 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 401, which may perform various suitable actions and processes according to a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage means 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
In general, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, magnetic tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 shows an electronic device 400 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communications device 409, or from storage 408, or from ROM 402. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 401.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a field to be displayed of a document to be displayed in a preset document page; adding the field to be displayed into a target page template corresponding to the preset document page to obtain a target page file corresponding to the document to be displayed; and generating a target document page based on the target page file, and displaying the target document page, wherein the target document page is a preset document page corresponding to the document to be displayed.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the name of the module does not constitute a limitation of the unit itself in some cases.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, example 1 provides a method for displaying a document page, including:
acquiring a field to be displayed of a document to be displayed in a preset document page;
adding the field to be displayed into a target page template corresponding to the preset document page to obtain a target page file corresponding to the document to be displayed;
and generating a target document page based on the target page file, and displaying the target document page, wherein the target document page is a preset document page corresponding to the document to be displayed.
According to one or more embodiments of the present disclosure, example 2 is the method of example 1, wherein the obtaining the field to be presented of the document to be presented in the preset document page includes:
extracting a field to be displayed of a document to be displayed in a preset document page from a document file of the document to be displayed; or alternatively
Acquiring an original page file of an original document page corresponding to a document to be displayed, and extracting a field to be displayed of the document to be displayed in a preset document page from the original page file, wherein the original document page is the preset document page of the original configuration of the document to be displayed.
According to one or more embodiments of the present disclosure, example 3 further includes, before the adding the field to be presented to the target page template corresponding to the preset document page, the method according to example 1:
and determining a target page template corresponding to the preset document page according to the document to be displayed.
According to one or more embodiments of the present disclosure, example 4 is the method of example 3, where the determining, according to the document to be presented, a target page template corresponding to the preset document page includes:
acquiring document information of the document to be displayed;
calculating the matching degree between at least part of preset page templates and the document to be displayed according to the document information, wherein the preset page templates are used for generating page files of the preset document pages;
and selecting one preset page template from the at least partial preset page templates based on the matching degree to serve as a target page template corresponding to the preset document page.
According to one or more embodiments of the present disclosure, example 5 the method of example 4, the document information presents at least one information dimension, each information dimension comprising at least one information item, the at least one information dimension comprising at least one of a vocabulary dimension, a label dimension, and a publishing dimension.
According to one or more embodiments of the present disclosure, example 6 is the method of example 4, the document information including at least one information item, the calculating a degree of matching between at least a portion of a preset page template and the document to be presented according to the document information, including:
aiming at each preset page template in the at least partial preset page templates, calculating the sub-matching degree between the preset page template and each information item of the document to be displayed;
and calculating the matching degree between the preset page template and the document to be displayed according to the sub-matching degree and the weight coefficient corresponding to each information item.
According to one or more embodiments of the present disclosure, example 7 is the method according to example 4, wherein the selecting, based on the matching degree, one preset page template from the at least partial preset page templates as the target page template corresponding to the preset document page includes:
and taking the preset page template with the highest matching degree in the at least partial preset page templates as a target page template corresponding to the preset document page.
According to one or more embodiments of the present disclosure, example 8 is the method of any one of examples 1-7, the generating a target document page based on the target page file, comprising:
Determining a target document row with a preset mark, wherein the preset mark is used for indicating that the document row has a vertical centering attribute;
performing page typesetting based on the target page file to generate an original typesetting result;
adjusting the vertical coordinate value of each target document line in the original typesetting result to obtain a target typesetting result, wherein an adjusted target document line set is vertically and centrally displayed in a target document page, and the target document line set is a set of the target document lines;
and generating the target document page according to the target typesetting result.
According to one or more embodiments of the present disclosure, example 9 is a method according to example 8, wherein the adjusting the vertical coordinate value of each target document line in the original typesetting result to obtain the target typesetting result includes:
determining an upper boundary distance and a lower boundary distance of the target document line set according to the vertical coordinate value of the document line in the original typesetting result, wherein the upper boundary distance is the distance between the upper boundary of the target document line set and the upper boundary of the target document page, and the lower boundary distance is the distance between the lower boundary of the target document line set and the lower boundary of the target document page;
Determining a coordinate adjustment value of the target document row set in the vertical direction according to the upper boundary distance and the lower boundary distance;
and respectively adjusting the vertical coordinate value of each target document row based on the coordinate adjustment value to obtain a target typesetting result.
Example 10 provides a presentation apparatus of a document page, according to one or more embodiments of the present disclosure, comprising:
the acquisition module is used for acquiring a field to be displayed of a document to be displayed in a preset document page;
the adding module is used for adding the field to be displayed into a target page template corresponding to the preset document page to obtain a target page file corresponding to the document to be displayed;
and the display module is used for generating a target document page based on the target page file and displaying the target document page, wherein the target document page is a preset document page corresponding to the document to be displayed.
Example 11 provides an electronic device according to one or more embodiments of the present disclosure, comprising:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of presentation of a document page as described in any of examples 1-9.
Example 12 provides a computer-readable storage medium having stored thereon a computer program that, when executed by a processor, implements a method of presentation of a document page as described in any of examples 1-9, according to one or more embodiments of the present disclosure.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (12)

1. A method for displaying a document page, comprising:
acquiring a field to be displayed of a document to be displayed in a preset document page;
adding the field to be displayed into a target page template corresponding to the preset document page to obtain a target page file corresponding to the document to be displayed;
and generating a target document page based on the target page file, and displaying the target document page, wherein the target document page is a preset document page corresponding to the document to be displayed.
2. The method according to claim 1, wherein the obtaining the field to be displayed of the document to be displayed in the preset document page includes:
extracting a field to be displayed of a document to be displayed in a preset document page from a document file of the document to be displayed; or alternatively
Acquiring an original page file of an original document page corresponding to a document to be displayed, and extracting a field to be displayed of the document to be displayed in a preset document page from the original page file, wherein the original document page is the preset document page of the original configuration of the document to be displayed.
3. The method according to claim 1, further comprising, before said adding the field to be presented to a target page template corresponding to the preset document page:
and determining a target page template corresponding to the preset document page according to the document to be displayed.
4. A method according to claim 3, wherein the determining, according to the document to be presented, a target page template corresponding to the preset document page includes:
acquiring document information of the document to be displayed;
calculating the matching degree between at least part of preset page templates and the document to be displayed according to the document information, wherein the preset page templates are used for generating page files of the preset document pages;
and selecting one preset page template from the at least partial preset page templates based on the matching degree to serve as a target page template corresponding to the preset document page.
5. The method of claim 4, wherein the document information exists in at least one information dimension, each information dimension comprising at least one information item, the at least one information dimension comprising at least one of a vocabulary dimension, a label dimension, and a publishing dimension.
6. The method according to claim 4, wherein the document information includes at least one information item, and the calculating the matching degree between at least part of the preset page template and the document to be displayed according to the document information includes:
aiming at each preset page template in the at least partial preset page templates, calculating the sub-matching degree between the preset page template and each information item of the document to be displayed;
and calculating the matching degree between the preset page template and the document to be displayed according to the sub-matching degree and the weight coefficient corresponding to each information item.
7. The method according to claim 4, wherein selecting one preset page template from the at least partial preset page templates based on the matching degree as the target page template corresponding to the preset document page comprises:
and taking the preset page template with the highest matching degree in the at least partial preset page templates as a target page template corresponding to the preset document page.
8. The method of any of claims 1-7, wherein the generating a target document page based on the target page file comprises:
Determining a target document row with a preset mark, wherein the preset mark is used for indicating that the document row has a vertical centering attribute;
performing page typesetting based on the target page file to generate an original typesetting result;
adjusting the vertical coordinate value of each target document line in the original typesetting result to obtain a target typesetting result, wherein an adjusted target document line set is vertically and centrally displayed in a target document page, and the target document line set is a set of the target document lines;
and generating the target document page according to the target typesetting result.
9. The method according to claim 8, wherein the adjusting the vertical coordinate value of each target document line in the original typesetting result to obtain the target typesetting result includes:
determining an upper boundary distance and a lower boundary distance of the target document line set according to the vertical coordinate value of the document line in the original typesetting result, wherein the upper boundary distance is the distance between the upper boundary of the target document line set and the upper boundary of the target document page, and the lower boundary distance is the distance between the lower boundary of the target document line set and the lower boundary of the target document page;
Determining a coordinate adjustment value of the target document row set in the vertical direction according to the upper boundary distance and the lower boundary distance;
and respectively adjusting the vertical coordinate value of each target document row based on the coordinate adjustment value to obtain a target typesetting result.
10. A document page display device, comprising:
the acquisition module is used for acquiring a field to be displayed of a document to be displayed in a preset document page;
the adding module is used for adding the field to be displayed into a target page template corresponding to the preset document page to obtain a target page file corresponding to the document to be displayed;
and the display module is used for generating a target document page based on the target page file and displaying the target document page, wherein the target document page is a preset document page corresponding to the document to be displayed.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the document page presentation method of any one of claims 1-9.
12. A computer readable storage medium storing computer instructions for causing a processor to perform the document page presentation method of any one of claims 1 to 9.
CN202311553153.4A 2023-11-20 2023-11-20 Document page display method and device, electronic equipment and storage medium Pending CN117436428A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311553153.4A CN117436428A (en) 2023-11-20 2023-11-20 Document page display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311553153.4A CN117436428A (en) 2023-11-20 2023-11-20 Document page display method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117436428A true CN117436428A (en) 2024-01-23

Family

ID=89555172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311553153.4A Pending CN117436428A (en) 2023-11-20 2023-11-20 Document page display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117436428A (en)

Similar Documents

Publication Publication Date Title
CN111433762A (en) Graphically organizing content in a user interface of a software application
CN113688310B (en) Content recommendation method, device, equipment and storage medium
CN110766772A (en) Flatter-based cross-platform poster manufacturing method, device and equipment
CN113204691B (en) Information display method, device, equipment and medium
US11687715B2 (en) Summary generation method and apparatus
CN111680491B (en) Method and device for extracting document information and electronic equipment
CN111311358B (en) Information processing method and device and electronic equipment
CN111797822A (en) Character object evaluation method and device and electronic equipment
CN116912734A (en) Video abstract data set construction method, device, medium and electronic equipment
CN112256175B (en) Text display method, text display device, electronic equipment and computer readable storage medium
CN112256176B (en) Character display method and device, electronic equipment and computer readable storage medium
CN117436428A (en) Document page display method and device, electronic equipment and storage medium
CN111339124B (en) Method, apparatus, electronic device and computer readable medium for displaying data
CN114626332A (en) Content display method and device and electronic equipment
CN113296771A (en) Page display method, device, equipment and computer readable medium
CN111125501B (en) Method and device for processing information
CN113672317A (en) Method and device for rendering title page
CN113191257A (en) Order of strokes detection method and device and electronic equipment
CN112445478A (en) Graphic file processing method, device, equipment and medium
CN112308745A (en) Method and apparatus for generating information
CN112307245B (en) Method and apparatus for processing image
CN112231023A (en) Information display method, device, equipment and storage medium
CN111026983B (en) Method, device, medium and electronic equipment for realizing hyperlink
CN113283115B (en) Image model generation method and device and electronic equipment
CN111797591B (en) Layout recovery method and device and electronic equipment

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