CN117010337A - Document processing method, device, terminal, medium and program product - Google Patents

Document processing method, device, terminal, medium and program product Download PDF

Info

Publication number
CN117010337A
CN117010337A CN202211051050.3A CN202211051050A CN117010337A CN 117010337 A CN117010337 A CN 117010337A CN 202211051050 A CN202211051050 A CN 202211051050A CN 117010337 A CN117010337 A CN 117010337A
Authority
CN
China
Prior art keywords
document
target
page
preview interface
thumbnail
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
CN202211051050.3A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202211051050.3A priority Critical patent/CN117010337A/en
Publication of CN117010337A publication Critical patent/CN117010337A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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/106Display of layout of documents; Previewing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a document processing method, a device, a terminal, a medium and a program product, wherein the method comprises the following steps: a document interface for displaying the target document; receiving page editing triggering operation aiming at a target document, and displaying a preview interface; and performing page editing on the target document based on the thumbnail in the preview interface to obtain a reference document. By adopting the embodiment of the application, the visual editing of the target document can be realized.

Description

Document processing method, device, terminal, medium and program product
Technical Field
The present application relates to the field of computer technology, and in particular, to the field of document processing, and more particularly, to a document processing method, a document processing apparatus, a terminal, a computer readable storage medium, and a computer program product.
Background
In a document application scenario, a target object (such as any object using a document) often has a requirement for performing page editing on a target document (such as a document in pdf format) by using a document application program, where page editing on the target document includes: and splitting a plurality of document pages contained in the target document into sub-documents. Through practice, the existing document application program provides a page editing mode for a target object, and the visual interface presentation is lacking, so that the editing operation is not visual enough.
Disclosure of Invention
The embodiment of the application provides a document processing method, a document processing device, a terminal, a medium and a program product, which can realize visual editing of a target document.
In one aspect, an embodiment of the present application provides a document processing method, including:
a document interface displaying a target document, the target document comprising one or more document pages;
receiving page editing triggering operation aiming at a target document, and displaying a preview interface, wherein the preview interface is used for displaying thumbnails of all document pages in the target document;
and performing page editing on the target document based on the thumbnail in the preview interface to obtain a reference document.
In another aspect, an embodiment of the present application provides a document processing apparatus, including:
a display unit for displaying a document interface of a target document, the target document comprising one or more document pages;
the processing unit is used for receiving page editing triggering operation aiming at a target document, and displaying a preview interface, wherein the preview interface is used for displaying thumbnails of all document pages in the target document;
and the processing unit is also used for carrying out page editing on the target document based on the thumbnail in the preview interface to obtain the reference document.
In one implementation, a page edit trigger operation includes:
triggering operation for the page editing control in the document interface;
or, a gesture operation performed in the document interface;
or, a voice audio input operation.
In one implementation, when the processing unit is configured to display the preview interface, the processing unit is specifically configured to:
displaying a preview interface in a floating layer form on the document interface;
or displaying a preview interface in a target area in the document interface; the target area includes: the area where the toolbar in the document interface is located or the area where the document page in the document interface is located;
the target document comprises N document pages, N is an integer greater than 1, and the display modes of N thumbnails corresponding to the N document pages in the preview interface comprise: a continuous tile or a streaming display.
In one implementation, page editing for a target document includes: document splitting, document extraction, document merging and document insertion;
wherein, the document splitting refers to: splitting the target document into at least two sub-documents, one sub-document representing a reference document; document extraction refers to: extracting document pages from one or more document pages contained in the target document to form a reference document; document merging refers to: merging the target document and the candidate document into a reference document; document insertion refers to: and inserting the target page into the target document to obtain the reference document.
In one implementation, the page editing includes the document splitting, and the processing unit is further configured to:
receiving a selection operation for a target split option in the multiple split options in a preview interface, and displaying the target split option as a selected state;
wherein, each split option corresponds a split mode, and a plurality of split options include: free split option, fixed interval split option, and intelligent split option.
In one implementation, the target splitting option includes a free splitting option, and the processing unit is configured to, when performing page editing on the target document based on the thumbnail in the preview interface, specifically:
inserting one or more split identifiers among the N thumbnails according to the identifier control operation;
at least two sub-documents are composed of one or more document pages that split the associated thumbnail.
In one implementation, the target splitting option includes a free splitting option, the preview interface includes a splitting window, and a superposition area exists between an area where the splitting window is located and an area where the N thumbnails are located;
the processing unit is used for performing page editing on the target document based on the thumbnail in the preview interface, and is specifically used for:
Updating and displaying the split window in the preview interface in response to the adjustment operation for the split window;
and forming a sub-document by the document pages of the thumbnail images in the updated splitting window.
In one implementation, the target split option includes the free split option; the processing unit is used for performing page editing on the target document based on the thumbnail in the preview interface, and is specifically used for:
one or more pieces of target page number information are input in the preview interface, wherein the target page number information comprises: a single page number or range of page numbers;
at least two sub-documents are composed of document pages of thumbnail images corresponding to one or more target page number information.
In one implementation, the target splitting option includes a fixed-interval splitting option, and the processing unit is configured to, when performing page editing on the target document based on the thumbnail in the preview interface, specifically:
inputting a fixed interval value in the preview interface;
dividing the N thumbnails in sequence according to the fixed interval value, and forming at least two sub-documents by the document pages corresponding to the divided thumbnails.
In one implementation, the target splitting option includes an intelligent splitting option, and the processing unit is configured to, when performing page editing on the target document based on the thumbnail in the preview interface, specifically:
Dividing N thumbnails into at least two divided areas according to the target dividing dimension;
displaying dimension identification of each divided area at the position of each divided area;
forming at least two sub-documents by the document pages corresponding to the thumbnails in at least two divided areas;
wherein the target partitioning dimension includes any one of: chapter, bookmark, column or title.
In one implementation, the processing unit is further configured to:
receiving a selection operation aiming at a target partitioning dimension option in a plurality of partitioning dimension options in a preview interface, wherein each partitioning dimension option corresponds to one partitioning dimension;
and displaying the target division dimension option as a selected state, and triggering and executing the step of dividing the N thumbnails into at least two divided areas according to the target division dimension.
In one implementation, the processing unit is further configured to:
previewing and displaying document identifications of at least two sub-documents to be split;
and outputting the document identification of the at least two sub-documents obtained by splitting in response to the confirmation splitting operation of the at least two sub-documents to be split.
In one implementation, the processing unit is further configured to:
in the process of previewing and displaying the document identifications of at least two sub-documents to be split, if a modification operation for the target document identifications is detected, updating and displaying the target document identifications according to the modification operation, wherein the target document identifications refer to: document identification of any one of the at least two sub-documents.
In one implementation, the page editing includes document extraction, and the processing unit is configured to, when performing page editing on the target document based on the thumbnail in the preview interface, specifically:
selecting a thumbnail for one or more reference documents from the thumbnails contained in the preview interface;
the document pages of the thumbnail images selected for each reference document are extracted as the document pages contained in the corresponding reference document.
In one implementation, the processing unit is further configured to:
in response to the number adjustment operation for the reference document, updating a document identification of the displayed reference document in the preview interface;
wherein the number adjustment operation includes any one of: an operation of adding a reference document newly, or an operation of deleting a reference document.
In one implementation, the page editing includes document merging, and the processing unit is configured to, when performing page editing on the target document based on the thumbnail in the preview interface, specifically:
displaying thumbnails of the document pages in the candidate document in the preview interface in response to the document merging requirement for the candidate document;
selecting a first thumbnail to be combined from the thumbnails of the document pages in the target document, and selecting a second thumbnail to be combined from the thumbnails of the document pages in the candidate document;
And merging the document pages of the first thumbnail to be merged with the document pages of the second thumbnail to be merged into a reference document.
In one implementation, the page editing includes document insertion, and the processing unit is configured to, when performing page editing on the target document based on the thumbnail in the preview interface, specifically:
selecting M inserting positions to be inserted into the same page among the N thumbnails, wherein M is an integer greater than zero;
a first target page is selected from one or more candidate pages included in the candidate page window and inserted at each of the M insertion locations.
In one implementation, the processing unit is configured to, among the N thumbnails, select M insertion positions to be inserted into the same page, specifically configured to:
selecting K insertion positions of a page to be inserted among the N thumbnails, wherein K is an integer larger than M; m insertion positions of the K insertion positions are to be inserted into a first target page, and K-M insertion positions are to be inserted into a second target page, wherein the first target page and the second target page are different;
wherein, in the process of performing the insertion operation at the insertion position, the visual display pattern of the corresponding insertion position is different from the visual display pattern of the insertion position at which the insertion operation is not performed.
In one implementation, the preview interface includes a batch insertion option, and the processing unit is configured to select a first target page from one or more candidate pages included in the candidate page window, and insert the first target page into each of the M insertion positions, where the first target page is specifically configured to:
when the batch insertion option is triggered, outputting a candidate page window, wherein the candidate page window comprises one or more candidate pages;
selecting a first target page from one or more candidate pages according to a page selection operation;
the first target page is inserted at each of the M insertion positions.
In one implementation, the selection of the insertion location includes at least one of:
the method comprises the steps of intelligently selecting according to a partitioning dimension, wherein the partitioning dimension comprises any one of the following steps: chapter, bookmark, column or title;
alternatively, the dividing operation includes an operation of controlling the split window and an operation of inputting page number information, selected according to the dividing operation for the N thumbnails.
In one implementation, the processing unit is further configured to:
displaying the target document in the social session interface;
triggering the execution of a document interface displaying the target document in response to an editing requirement for the target document;
The processing unit is further used for:
in the social session interface, outputting a reference document obtained by page editing in the form of session messages, wherein the reference document is different from the target document.
In another aspect, an embodiment of the present application provides a terminal, including:
a processor adapted to execute a computer program;
a computer readable storage medium having a computer program stored therein, which when executed by a processor, implements a document processing method as described above.
In another aspect, embodiments of the present application provide a computer readable storage medium storing computer instructions adapted to be loaded by a processor and to perform a document processing method as described above.
In another aspect, embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the terminal performs the document processing method described above.
In the embodiment of the application, in the process of displaying the document interface of the target document, when the page editing triggering operation for the target document is received, the target object is determined to have the requirement of carrying out page editing on the target document, if the target document is required to be split, the preview interface can be triggered to be displayed, and the thumbnails of all the document pages in the target document are displayed in the preview interface, so that the target object can carry out page editing on the target document based on the thumbnails in the preview interface, for example, a plurality of continuously displayed thumbnails are split, and the splitting of corresponding document pages in the target document is realized. In the scheme, the thumbnail of the document page is visually presented in the preview interface, so that the target object can conveniently execute visual page editing on the target document based on the thumbnail, the visualization of the page editing is realized, and the intuitiveness of the page editing is improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1a is a schematic diagram of a document splitting of a target document according to an exemplary embodiment of the present application;
FIG. 1b is a schematic diagram of document merging for a target document according to an exemplary embodiment of the present application;
FIG. 1c is a schematic diagram of document extraction of a target document according to an exemplary embodiment of the present application;
FIG. 1d is a schematic illustration of a document insertion of a target document according to an exemplary embodiment of the present application;
FIG. 2 is a schematic diagram of the architecture of a document processing system provided in accordance with an exemplary embodiment of the present application;
FIG. 3 is a flow chart of a method of document processing provided in an exemplary embodiment of the application;
FIG. 4a is a schematic diagram of a document interface for triggering display of a target document by a document application provided in an exemplary embodiment of the present application;
FIG. 4b is a schematic diagram of a document interface for triggering display of a target document from a social session interface provided by an exemplary embodiment of the present application;
FIG. 4c is a schematic diagram of a new document edited in an output page in a social session interface provided by an exemplary embodiment of the present application;
FIG. 5a is a schematic diagram of a trigger display preview interface by triggering a page editing control provided by an exemplary embodiment of the present application;
FIG. 5b is a schematic illustration of another triggering display of a preview interface by triggering a page editing control provided by an exemplary embodiment of the present application;
FIG. 6a is a schematic diagram of a display preview interface triggered by a gesture operation provided in accordance with an exemplary embodiment of the present application;
FIG. 6b is a schematic diagram of another trigger display preview interface by gesture operation provided by an exemplary embodiment of the present application;
FIG. 7a is a schematic diagram of a full screen display preview interface provided by an exemplary embodiment of the present application;
FIG. 7b is a schematic diagram of a preview interface displayed within a target area in a document interface in accordance with an exemplary embodiment of the present application;
FIG. 8 is a schematic diagram of a background technology implementation of a document processing method provided by an exemplary embodiment of the present application;
FIG. 9 is a schematic diagram of background basic logic for visual editing of a target document provided in accordance with an exemplary embodiment of the present application;
FIG. 10 is a flow chart of another document processing method provided by an exemplary embodiment of the present application;
FIG. 11a is a schematic diagram of a display and selection of split options in a preview interface provided by an exemplary embodiment of the present application;
FIG. 11b is a schematic diagram of another display and selection of split options in a preview interface provided by an exemplary embodiment of the present application;
FIG. 12a is a schematic diagram of a document splitting by splitting identification provided by an exemplary embodiment of the present application;
FIG. 12b is a schematic diagram of a split logo display style provided in an exemplary embodiment of the present application;
FIG. 12c is a schematic diagram of a document splitting through a splitting window provided by an exemplary embodiment of the present application;
FIG. 12d is a schematic diagram of controlling movement of a split window in accordance with an exemplary embodiment of the present application;
FIG. 12e is a schematic diagram of a display size adjustment for a split window according to an exemplary embodiment of the present application;
FIG. 13 is a schematic diagram of a document splitting implementation of entering target page information provided by an exemplary embodiment of the present application;
FIG. 14 is a schematic diagram of document splitting for a target document in a composite splitting manner provided by an exemplary embodiment of the present application;
FIG. 15 is a schematic diagram of an input fixed-interval implementation document splitting provided in accordance with an exemplary embodiment of the present application;
FIG. 16 is a schematic diagram of intelligent partitioning of a target document according to an exemplary embodiment of the present application;
FIG. 17 is a schematic diagram of a selection of a partition dimension option provided by an exemplary embodiment of the present application;
FIG. 18 is a schematic diagram of a background implementation flow of intelligent splitting provided by an exemplary embodiment of the present application;
FIG. 19 is a schematic diagram of a document identification for previewing sub-documents to be split in a preview interface provided by an exemplary embodiment of the present application;
FIG. 20a is a schematic illustration of adding candidate documents in a preview interface in accordance with an exemplary embodiment of the present application;
FIG. 20b is a schematic illustration of a selection of a first thumbnail and a second thumbnail provided in accordance with an exemplary embodiment of the present application;
FIG. 20c is a schematic illustration of another selection of a first thumbnail and a second thumbnail provided by an exemplary embodiment of the present application;
FIG. 21a is a schematic illustration of a reference document displayed in a preview interface provided in accordance with an exemplary embodiment of the present application;
FIG. 21b is a schematic diagram of an arrangement sequence between thumbnails of a reference document according to an exemplary embodiment of the present application;
FIG. 22 is a schematic diagram of document extraction of a target document provided in accordance with an exemplary embodiment of the present application;
FIG. 23 is a schematic diagram of adjusting the number of reference documents in a preview interface in accordance with an exemplary embodiment of the present application;
FIG. 24a is a schematic illustration of inserting a target page in a target document, provided in accordance with an exemplary embodiment of the present application;
FIG. 24b is a schematic illustration of a bulk insert target page provided by an exemplary embodiment of the present application;
FIG. 25 is a schematic diagram of a document processing apparatus according to an exemplary embodiment of the present application;
fig. 26 is a schematic structural view of a terminal according to an exemplary embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application 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 application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Embodiments of the present application relate to a document, which is a file containing document contents. Wherein the document content may include, but is not limited to: text, pictures, links, animations, forms, etc.; the text may include a plurality of characters, one or more of the characters comprising a string of characters, the characters may include at least one of: chinese characters (i.e., chinese characters), english characters (i.e., letters), numbers, and punctuation marks (e.g., comma ", period", bracket "[ MEANS FOR SOLVING"). The target document (e.g., any document) will often be presented to the target object (e.g., any object) in one or more file formats, which may include, but are not limited to: portable Document format (pdf), text format (Document, doc), presentation format (PowerPoint, ppt), or spreadsheet format (xls), etc.
Wherein: (1) the portable document format (or pdf format) is a file format in which a document is presented in a manner that is independent of the application, hardware, and operating system; that is, the pdf format is a cross-platform electronic document format that supports applications on different systems. The pdf format supports storing document content contained in a target document, and if the document content is text, supports storing font type, font size, color, display position information and the like of the text; the method ensures that the document content contained in the pdf-format target document is not changed, is favorable for network transmission, office printing and the like, and can ensure accurate color and accurate printing effect when the pdf-format target document is printed, namely, the printing result can reproduce the document content contained in the target document, such as the font type, the font size, the color, the display position and the like of each character contained in the target document. (2) The text format (or doc format) is a file format that supports editing of document content. The doc format target document may contain rich document content, such as images, text, etc.; support for formatting and embedding of the target document by the target object, etc., such as support for editing document content (e.g., adding, deleting, or modifying document content, etc.). (3) The presentation format (or ppt format) is a file format that supports presentation in the form of a presentation on a projector or computer; the presentation may be referred to as a slide, supporting the addition of animation effects to the slide to present text or images, with multiple independent slides constituting a complete ppt format target document. (4) The spreadsheet format (or xls format) is a file format that is presented in tabular form; the xls format target document supports storing form type data, and also supports ordering, grouping, automatic calculation, applying formulas, etc. of form data.
It will be appreciated that the file format of the target document is not limited to the several exemplary formats given above; for convenience of explanation, the embodiment of the present application is described by taking the file format of the target document as pdf format as an example, and this is specifically described herein. In addition, conversion is supported between file formats; for example, the document format of the target document is a dox format, the target document in the doc format supports input document content, and when the document content contained in the target document needs to be accurately restored in a printing scene, the target document is supported to be converted from the doc format into a pdf format, so that the target document in the pdf format is printed, and the document content, the document structure and the like of the target document can be accurately restored.
In practical applications, the target object may have a need to perform page editing on the pdf-format target document during the process of using the pdf-format target document, which may be simply referred to as the pdf document, as described herein. Wherein the edit type of the page edits for the target document may include at least one of: document splitting, document merging, document extraction, and document insertion. Wherein:
document splitting refers to: splitting a target document into at least two sub-documents, specifically splitting a document page (or simply a document page) contained in the target document into at least two sub-documents; a sub-document split at this time may represent a reference document. As shown in fig. 1a, the target document to be split includes a plurality of document pages, such as document page 1, document 2, document page 3,..and document 7; splitting a plurality of document pages contained in the target document into different sub-documents is supported, for example, the split sub-document 1 contains a document page 1, a document 2, a document page 6 and a document page 7, and the split sub-document 2 contains a document page 3, a document page 4 and a document page 5.
(2) Document merging refers to: merging at least two documents into one reference document, specifically merging all or part of document pages in at least two documents into one reference document; such as merging the target document and the candidate document into a reference document. As shown in fig. 1b, the document to be merged includes a target document 1 and a target document 2, the target document 1 includes a document page 1, a document page 2, a document 3, and a document page 4, and the target document 2 includes a document page 5, a document 6, and a document page 7; all document pages (or part of document pages) contained in the target document 1 and the target document 2 are supported to be combined into one reference document, and the reference document obtained by combining all document pages comprises a document page 1, a document page 2, a document page 3, a document page 7.
(3) Document extraction refers to: a document page is extracted from one or more document pages contained in the target document to form a reference document. As shown in fig. 1c, the target document to be extracted includes a plurality of document pages, such as document page 1, document 2, document page 3,..and document 7; it is supported that a reference document is composed by extracting part or all of document pages from a plurality of document pages according to the extraction requirement of the target object, such as document page 2, document page 3, document page 5 and document page 7 from a plurality of document pages, and a reference document is composed by document page 2, document page 3, document page 5 and document page 7.
(4) Document insertion refers to: and inserting target pages in the target document, specifically inserting target pages (such as document pages belonging to any document) among document pages contained in the target document, so as to obtain the reference document. As shown in fig. 1d, the target document to be inserted includes a plurality of document pages, and the arrangement order between the plurality of document pages is: document page 1- & gt document page 2- & gt document page 3- & gt document page 4- & gt document page 5- & gt document page 6- & gt document page 7; support to insert the target page (i.e. the page to be inserted into the target document) between any two of the plurality of document pages in the target document, such as inserting the target page between document page 3 and document page 4, to obtain a reference document comprising the plurality of document pages arranged in the order: document page 1, document page 2, document page 3, target page, document page 4, document page 5, document page 6, and document page 7.
It should be noted that the reference document is different from the target document, i.e. the reference document and the target document are not the same document
In order to avoid errors caused by blind page editing without knowing a target document, realize visualization of editing operation when page editing is executed on the target document, help a target object to more intuitively perceive a page editing process, the embodiment of the application provides a document processing scheme which supports: in the process of displaying a document interface of a target document, when receiving page editing triggering operation aiming at the target document, determining that a target object has the requirement of carrying out page editing on the target document, triggering and displaying a preview interface, and displaying thumbnails of all document pages in the target document in the preview interface; that is, in response to the requirement of the target object for performing page editing on the target document, the preview interface including the thumbnails of the document pages is triggered to be displayed, so that the target object can perform page editing on the target document based on the thumbnails in the preview interface, for example, split a plurality of thumbnails displayed in succession, so as to achieve splitting of corresponding document pages in the target document. By visually presenting the thumbnail of the document page in the preview interface, the target object is convenient to directly execute visual page editing on the target document based on the thumbnail, the visualization of the page editing is realized, and the intuitiveness of the page editing is improved.
To facilitate a better understanding of the document processing scheme proposed by the embodiment of the present application, an exemplary document processing scenario is presented in connection with fig. 2. Referring now to FIG. 2, FIG. 2 illustrates a schematic architecture of a document processing system according to one exemplary embodiment of the present application; as shown in fig. 2, the document processing system includes a terminal 201 and a server 202, and the number, kind and naming of the terminal 201 and the server 202 are not limited in the embodiment of the present application. Wherein:
1) Terminal 201 may refer to: terminal equipment held or used by a target object having a need for page editing of a target document. The terminal device may include, but is not limited to: smart phones (such as Android mobile phones, iOS mobile phones, etc.), tablet computers, smart computers, portable personal computers, mobile internet devices (MID for short), smart televisions, vehicle-mounted devices, head-mounted devices, etc. smart devices capable of performing touch screens, and the embodiment of the application does not limit the types of terminal devices; the terminal device includes a display screen, which may be a physical screen, a touch screen, etc., which may be referred to as a terminal screen, a display screen, etc.
A document application program can be deployed in the target terminal; a document application may refer to a document tool having the function of creating or editing a document. The document application programs are classified according to different dimensions (such as the running mode, the function and the like of the application programs), and the types of the document application programs under the different dimensions can be obtained, wherein: (1) the applications may include, but are not limited to, by way of their manner of operation: an application program installed and running in the terminal; an application program without installation, namely an application program which can be used without downloading and installing, is also commonly called an applet, and is usually run in a client as a subprogram; a web application opened by a browser; etc. (2) Applications may include, but are not limited to, by document type classification supported by the application: an application running an online document, an application running a local document, and an application running an online document and a local document; by online document may be meant: the online document supports rich functions, such as supporting multi-person collaborative editing, namely supporting online editing of a plurality of objects, and the editing operation of any object in the plurality of objects on the online document can be displayed on a terminal corresponding to each object in real time, so that each object can intuitively sense the editing operation of each object on the online document; by local document may be meant: documents stored in a local storage space of the terminal device.
It should be noted that, the document application program mentioned later in the embodiment of the present application may be any application program in the above classification, such as the document application program is the above-mentioned applet or client. The target document mentioned in the embodiment of the present application may refer to the above mentioned online document or local document, and for convenience of explanation, the target document is taken as an online document for explanation.
2) The server 202 may be a background server of the terminal 201 for interacting with the terminal 201 to provide computing and application service support for the terminal 201; of course, the server 202 may also be a background server of the document application running in the terminal 201, such that the background server is used to provide computing and application service support for the document application running in the terminal 201 (e.g., the target terminal). The server may be a separate physical server, or may be a server cluster or a distributed system formed by a plurality of physical servers. In the scenario that the target document is an online document, the server may also be a cloud server (or called cloud server) for storing the online document and supporting a document editing function of multi-user collaboration. The terminal 201 (e.g., the target terminal) and the server 202 may be directly or indirectly connected in a communication manner through a wired or wireless manner, and the connection manner between the terminal 201 and the server 202 is not limited in the embodiment of the present application.
The document processing scheme provided by the embodiment of the application can be executed by the terminal 201 in the document processing system, in particular by a document application program deployed in the terminal 201; or, the document application program is executed by the terminal 201 and the server 202 together, and specifically, the document application program deployed in the terminal 201 and the server 202 corresponding to the document application program are executed together. For convenience of explanation, the document processing scheme provided in the embodiment of the present application is taken as an example for executing the terminal (e.g., the target terminal is a smart computer) in the following description.
The following is a simple description of the flow of the document processing scheme, taking the document processing scheme proposed by the embodiment of the present application implemented by the target terminal and the server together as an example, with reference to fig. 2, where:
first, when using the target terminal, if there is a page editing requirement for the target document, the target object may open and display the target document, which may include one or more document pages, using a running document application in the target terminal. Secondly, the target object can execute page editing triggering operation aiming at the target document, the page editing triggering operation indicates that the target object has the requirement of page editing (such as document splitting or document merging) on the target document, and at the moment, the target terminal responds to the page editing triggering operation to trigger the display of a preview interface; thumbnail images of all document pages in the target document can be displayed in the preview interface; by thumbnail of a document page may be meant: after the document page is processed into the image, the image is processed into the small image by the compression mode, the content contained in the thumbnail is the same as the content contained in the document page, and the display size of the thumbnail is smaller than the display size of the document page. Then, the target object can carry out page editing on the thumbnail of the document page in the preview interface; for example, extracting a partial thumbnail from a plurality of thumbnails, and composing a reference document from document pages of the extracted partial thumbnail; for another example, splitting is performed on the plurality of thumbnails, and document pages of the split thumbnails are formed into split sub-documents. Finally, the server polls and acquires page editing of the thumbnail executed by the target object so as to facilitate the server to respond to the page editing to obtain a document after page editing; and the server returns the document or document identification (such as a document name) obtained by page editing to the target terminal, so that the target terminal outputs the document after page editing.
Through the implementation process, the method supports the steps of carrying out document splitting, document merging, document extraction, document insertion and the like on the target file (such as a PDF format file) based on visual editing and pattern recognition so as to realize the editing of pages of the target file. The method specifically supports the target object to execute page editing triggering operation to trigger a preview interface for displaying the thumbnail containing the document page, so that the target object can directly operate the thumbnail in the preview interface, such as splitting or extracting, so as to realize the visualized page editing of the target document based on the thumbnail, realize the visualization of the page editing and improve the intuitiveness of the page editing.
It should be noted that, when the embodiment of the present application is applied to a specific product or technology, for example, when the target object opens the target document, permission or consent of the creator who creates the target document needs to be obtained; and the collection, use and processing of the relevant data is required to comply with relevant laws and regulations of the relevant country and region, such as the specific content of the document content contained in the target document is required to comply with relevant laws and regulations of the relevant country and region.
Based on the above-described document processing scheme, the embodiment of the present application proposes a more detailed document processing method, and the document processing method proposed by the embodiment of the present application will be described in detail below with reference to the accompanying drawings.
FIG. 3 illustrates a flow diagram of a document processing method provided by an exemplary embodiment of the present application; the document processing method may be performed by the target terminal, and may include, but is not limited to, steps S301 to S303:
s301: and displaying a document interface of the target document.
As can be seen from the foregoing description, the target document is a document in pdf format, such as a form document in pdf format, a text document in pdf format, or a presentation document in pdf format; when the target object has the requirement of browsing or editing the target document, the target object can open the target document through a document application program deployed in the target terminal, and at the moment, a document interface of the target document is output in a terminal screen of the target terminal, so that the target object can browse or edit the target document in the document interface. Wherein the target document comprises one or more document pages; the document interface of the target document may be used to display all or a portion of one or more document pages contained in the target document and support sliding display of the one or more document pages in the document interface such that each document page may appear in the terminal screen.
In the actual application scenario, the implementation manner of triggering the document interface for displaying the target document in the target terminal is also different. For example, when the target document is stored in the local storage space or the cloud server, the target object may directly open the document application program to open and display the document interface of the target document; for another example, when the target document is sent or shared by other objects, the target object may trigger a document interface for displaying the target document from the social interface; etc. The following exemplarily describes the above-described two processes of triggering the document interface for displaying the target document; wherein:
In one implementation, the target object opens and displays a document interface of the target document through the document application. In a specific implementation, if the target object wants to open the target document and the target document is stored in the cloud server, the target object may first open a document application running in the target terminal, where the document application may be an application supporting an online document, so that the target object may trigger the target document from the document application, thereby displaying a document interface of the target document in the terminal screen.
An exemplary illustration of a document interface for triggering the display of a target document by a document application may be seen in FIG. 4a; as shown in fig. 4a, when the target object has a need to open the target document, a document application may be opened in the target terminal, where a document identifier (e.g., a document name) of one or more documents to be opened is displayed in a program interface 401 of the document application, including a document identifier 402 of the target document; responsive to a triggering operation of the document identification 402 by the target object, a document interface 403 of the target document may be output; the document interface 403 may be used to display document pages contained in the target document.
In other implementations, the target document is displayed in the community interface, and in particular, a document identifier (such as a document link or a document icon) of the target document is displayed in the community interface, and at this time, the target object may trigger the target document from the community interface, so as to call the document application program to open and display a document interface of the target document. The social interface can comprise a social session interface (or simply called a session interface) or a social dynamic interface and the like; by social session interface may be meant: an interface for displaying a conversation message between at least two conversation objects, the at least two conversation objects being socially conversational in a social conversation interface. By social dynamic interface may be meant: the interface is used for displaying a social dynamic information stream, wherein the social dynamic information stream can be a feeds stream, and is an information stream for continuously updating and displaying social dynamic information to an object; a substantial amount of social dynamic information (e.g., text, audio-video, images, animations, tags, etc.) is typically available only with refresh operations. The feeds stream in the social dynamic interface may be published by one or more objects that log into the social application; optionally, a communication connection may be established between one or more objects that publish social dynamic information, for example, the one or more objects are friend relations; alternatively, a communication connection may not be established between the one or more objects, such as the one or more objects being stranger relationships.
An exemplary illustration of a document interface triggering the display of a target document from a social session interface can be seen in FIG. 4b, where a target document 405 is displayed in the form of a session message in a social session interface 404 of a social session between a target object and any other object, as shown in FIG. 4 b; if the target object has a viewing requirement for the target document 405, the target object may perform a triggering operation on the target document 405, the target terminal may invoke a document application running in the target terminal to open the target document in response to the triggering operation, and output a document interface 406 of the target document 405 in the terminal screen; the document interface 406 may be used to display document pages contained in the target document.
It should be noted that (1) the above-mentioned two exemplary implementation processes for triggering the document interface of the display target document according to the embodiments of the present application may also be changed in the practical application, which is specifically described herein. (2) Since the display area of the terminal screen of the target terminal is limited, a plurality of document pages contained in the target document may be partially hidden, so that a sliding shaft can be included in the document interface, and the hidden document pages can be slidably displayed by operating the sliding shaft; of course, in addition to sliding the document pages by the sliding shaft, the sliding operation may be performed by pressing any position in the document interface, so that different document pages may be displayed in the document interface in a sliding manner.
(3) In the application scene that the target document is an online document, if other objects exist for editing the target document in the process that the target terminal of the target object displays the document interface of the target document, such as modifying document content contained in the target document, the editing operation of the other objects on the target document is displayed in real time in the document interface of the target object side, so that the target object is intuitively informed that the other objects edit the target document, specific editing content can be informed, and the like, and the multi-person collaborative editing of the target document is realized.
That is, in the scene that the target document is an online document, the embodiment of the application supports the collaboration of multiple people to carry out page editing on the target document, and the page editing result of other editors on the target document can be displayed in real time in the terminal screen of each editor; thus, each editor can know the page editing condition of the target document in time. In the following, referring to fig. 4c, taking a target document as an online document, and taking a session message form as an example of displaying the target document on a social session interface, an implementation process of page editing for the target document in an online document scene is exemplarily described; as shown in fig. 4c, the target document is displayed in the form of a session message in the social session interface; responding to the trigger editing requirement for the target document, and triggering a document interface for displaying the target document; if page editing is performed on the target document through a document interface (specifically, a preview interface), the reference document obtained by page editing can be automatically output in a session message form in a social session interface. For example, if the page editing of the target document is document splitting, at least two sub-documents obtained by document splitting are supported to be output in the social session interface; for another example, if the page editing for the target document is document merging, the document merging obtained reference document is supported in the social session interface.
S302: and receiving page editing triggering operation aiming at the target document, and displaying a preview interface.
When the target object has the requirement of carrying out page editing on the target document, the embodiment of the application executes page editing triggering operation aiming at the target document to trigger and display a preview interface of the target document, wherein the preview interface can be used for displaying the thumbnail of each document page in the target document so that the target object can carry out page editing on the target document directly based on the thumbnail in the preview interface; the process of executing page editing on the target document based on the thumbnail of the document page can realize visual editing operation, is convenient for the target object to intuitively sense the specific process of page editing, and improves the object viscosity.
As described previously, page editing for a target object may include: document splitting, document merging, document extraction and document insertion; the document splitting means to split a target document into at least two sub-documents, the document merging means to merge at least two documents into one reference document, the document extracting means to extract part or all of document pages from one or more document pages contained in the target document to form the reference document, and the document inserting means to insert one or more target pages between a plurality of document pages contained in the target document to obtain the reference document. Correspondingly, in one implementation, the page editing triggering operation executed by the target object may be an operation for triggering and displaying a preview interface supporting a certain page editing; that is, the preview interface that triggers display supports performing some sort of page editing on the target document, such as triggering display of a preview interface that supports page editing "document splitting" in response to a page editing triggering operation. In other implementations, the page editing triggering operation is also an operation for triggering preview interfaces of all page editing types; that is, the preview interface that triggers the display supports one or more types of page editing on the target document, such as triggering the preview interface that supports page editing "document splitting", page editing "document merging", page editing "document extracting" and page editing "document inserting" in response to the page editing triggering operation, so that the target object can perform any type of page editing on the target document in the preview interface, and the page editing efficiency for the target document can be improved to some extent.
The page editing triggering operation may include, but is not limited to, any of the following operations:
1) The page editing triggering operation comprises the following steps: triggering operation for the page editing control in the document interface; the page edit control may be referred to as a page edit option, a page edit key or page edit button, or the like.
As can be seen from the foregoing description, the trigger operation for editing a page is used for: triggering and displaying the operation of a preview interface supporting a certain page editing; the page editing control can be any control corresponding to page editing, and the preview interface supporting the page editing corresponding to the control can be triggered and displayed by triggering the control. As shown in FIG. 5a, one or more page editing controls are included in the document interface, each page editing control may correspond to a page edit, such as document splitting control 501, document merging control 502, and so forth, included in the document interface. When any page editing control is triggered, triggering and displaying a preview interface corresponding to the any page editing control, wherein the preview interface supports the execution of page editing corresponding to the any page editing control on a target document; if the page editing control "document splitting control 501" is triggered, which indicates that the target object wants to split the target document, a preview interface 503 corresponding to the document splitting is triggered to be displayed, so that the target object can split the target document in the preview interface 503.
The trigger operation for page editing is used for: triggering and displaying the operation of the preview interface supporting all page editing; the page editing control can be a total control, a preview interface can be displayed after the control is triggered, and each page editing sub-control is displayed in the preview interface; when any child control in the preview interface is triggered, the target object is indicated to execute page editing corresponding to the triggered child control for the target object in the preview interface. As shown in FIG. 5b, including a total control 504 in the document interface, in response to the total control 504 being triggered, a preview interface 505 may be displayed; the preview interface 505 displays a child control corresponding to each page edit, such as a child control "split child control 5051", a child control "merge child control 5052", and the like; and in response to any child control being selected, displaying the child control as a selected state so as to inform the target object that the page editing function corresponding to the selected child control can be executed on the target document in the preview interface.
It can be understood that when the preview interface is triggered to be displayed, a certain sub-control in the preview interface can be in a default selected state, which means that the certain sub-control is selected by default under the condition that the target object does not select the sub-control, and the target object can execute a page editing function corresponding to the certain sub-control on the target document in the preview interface; the specific type of the certain child control may be preset, which is not limited. In addition, according to the different selected child controls in the preview interface, the display style of the thumbnail of the document page in the target document in the preview interface can be adaptively changed; the display style of the thumbnail shown in fig. 5b is not limited to the embodiment of the present application and is described herein.
2) The page editing triggering operation comprises the following steps: gesture operations performed in the document interface; gesture operations may include, but are not limited to: double click operation, double finger pinching operation, long press operation, gesture operation of drawing a preset shape (such as an S shape, an L shape, etc.), etc.
Similar to the previous description regarding implementation 1), the number of page edits supported by the preview interface triggered by the different page edit triggering operations may be different. The trigger operation for page editing is used for: triggering and displaying the operation of a preview interface supporting a certain page editing; each page editing function may correspond to a gesture operation, such as a double-click operation for a gesture operation corresponding to page editing "file splitting", a double-finger pinch for a gesture operation corresponding to page editing "document merging", and so on. In this way, the target object can quickly call the preview interface corresponding to a certain gesture operation by executing the gesture operation in the document interface, and the preview interface supports the page editing corresponding to the certain gesture operation on the target document.
As shown in fig. 6a, assuming that the gesture operation corresponding to the page editing "file splitting" is a gesture operation of drawing an "S" shape, when the detected movement track in the document interface is the gesture operation of the "S" shape, it is determined that the target object wants to split the document with respect to the target document, and the preview interface corresponding to the document splitting is triggered and displayed, that is, the target object is supported to split the document in the preview interface, and in particular, the thumbnail in the preview interface is operated to split the document. Similarly, as shown in fig. 6b, assuming that the gesture operation corresponding to the page editing "document merging" is a long press operation, when it is determined that a certain display position is pressed in the document interface and is longer than a long threshold, the long press operation is present in the document interface, and the display of the preview interface corresponding to the document merging is triggered, that is, the target object is supported to merge the document in the preview interface, and in particular, the thumbnail in the preview interface is operated to realize the document splitting.
The trigger operation for page editing is used for: triggering and displaying the operation of the preview interface supporting all page editing; the page editing triggering operation can be a general operation, such as a gesture operation, and the preview interface can be triggered to be displayed by executing the gesture operation in the document interface, wherein the preview interface comprises each page editing sub-control; when any child control in the preview interface is triggered, the target object is indicated to execute page editing corresponding to the triggered child control for the target object in the preview interface. For the specific embodiment of the child control for triggering page editing in the preview interface, refer to the specific implementation process shown in fig. 5b, which is not described herein.
3) The page editing triggering operation comprises the following steps: and voice audio input operation, wherein the voice audio is used for indicating to trigger the display of the preview interface.
In the specific implementation, in the process that the target terminal displays the document interface of the target document, the microphone of the target terminal is in an on state, so that the target terminal can acquire voice audio in the environment in real time; when the acquired voice audio indicates to open a preview interface for editing a certain page, if the voice information input by the target object is "split document", the voice audio is analyzed to obtain the voice audio which can indicate: a preview interface of page editing 'document splitting' is opened, and the preview interface of the page editing can be displayed in response to the voice audio trigger, wherein the preview interface supports a target object to execute page editing on a target document. Similarly, when the acquired voice audio indicates to open the preview interface of all page edits, the preview interface can be triggered and displayed in response to the voice audio, and the preview interface comprises sub-controls for each page edit, so that after a target object passes through selecting any sub-control, page editing operation corresponding to the selected any sub-control is executed in the preview interface.
It will be appreciated that the specific implementation of the page edit triggering operation that triggers the display of the preview interface is not limited to only the several exemplary processes given above; for example, in the process of displaying the document interface of the target document by the target terminal, whether the vibration operation is performed on the target terminal or not may also be detected, and if the vibration operation is performed on the target terminal, the preview interface is triggered to be displayed. For convenience of explanation, in the embodiment of the present application, the triggering operation of page editing is included in the document interface for triggering operation of page editing control, and the page editing control is a control corresponding to page editing, that is, only one page editing capability is supported by triggering the preview interface of the page editing control for triggering display, which is described by way of example.
Referring to fig. 6a and 6b, it can be seen that the preview interface may be displayed on the document interface in a floating layer, that is, one display position of the preview interface is: displaying a preview interface in a floating layer form on the document interface; the preview interface may be referred to as a floating layer window, which displays a higher layer level than the document interface, so that the preview interface is displayed above the document interface. It should be noted that, in addition to being displayed on the document interface in the form of the semi-floating layer shown in fig. 6a and 6b, the preview interface supports displaying in a full screen form; i.e. the preview window may be displayed as a separate interface in the terminal screen of the target terminal, as shown in fig. 7 a. Alternatively, the display position of the preview window may further include: displaying a preview interface in a target area in the document interface; wherein, the target area in the document interface may include any display area in the document interface, e.g., the target area may include: the toolbar in the document interface is located in the area or the document page in the document interface is located in the area.
For an example, a schematic view of displaying a preview interface in a target area in a document interface can be seen in FIG. 7b; as shown in FIG. 7b, a toolbar region 701 and a document page region 702 are included in the document interface. The region 701 where the toolbar is located includes a plurality of tool options, where each tool option supports document editing and/or page editing on a target object, for example, the region 701 where the toolbar is located includes a font option, a font size option, a color option, an insertion option, a page editing option, and the like; the area where the document page is located can be used for displaying the document page, and performing enlarged display, sliding display, reduced display and the like on the document page. In response to the page editing trigger operation, a preview interface 703 may be displayed in a target area in the document interface, for example, the preview interface 703 is displayed in an area 701 where a toolbar is located, or the preview interface 703 is displayed in an area 702 where a document page is located.
As described above, the preview interface may be used to display thumbnails of the document pages in the target document; for example, the target document includes N document pages, where N is an integer greater than or equal to 1, then a thumbnail corresponding to each of the N document pages may be displayed in the preview interface, i.e., N thumbnails may be displayed in the preview interface. The embodiment of the application does not limit the display style of N thumbnails in the preview interface; some optional display styles may include, but are not limited to: n thumbnails are continuously tiled or streamed in the preview interface along a target direction, which may include a horizontal direction, a vertical direction, or the like. By continuous tiling may be meant: sequentially displaying the thumbnails corresponding to the document pages along the target direction according to the order of the page numbers of the document pages in the target document from small to large, wherein the edge lines of the thumbnails in the target direction are not connected; as shown in fig. 7a, the visual effect of the thumbnails continuously tiled in the preview interface is embodied as: displaying independent thumbnail images in a preview interface; so-called streaming display may indicate: sequentially displaying the thumbnails corresponding to the document pages according to the target direction according to the order of the page numbers of the document pages in the target document from small to large, wherein the edge lines of the thumbnails in the target direction are connected; as shown in fig. 7b, the visual effect of the thumbnail displayed in the preview interface is embodied as: a plurality of thumbnails are continuously displayed like a video stream in the preview interface.
It should be understood that, considering that the display positions of the preview interfaces are different, the display positions of the preview interfaces are adapted to change; when the preview interfaces are displayed at different display positions, the display modes of the preview interfaces are also different; wherein, the display style of the preview interface may include: the interface shape (e.g., rectangle or square) of the preview interface, the display style of the interface content (e.g., thumbnail) contained in the preview interface, and the like. The embodiment of the application does not limit the display position and the display style of the preview interface, and is described herein.
S302: and performing page editing on the target document based on the thumbnail in the preview interface to obtain a reference document.
In a specific implementation, when the target object has a requirement for performing page editing on the target document, the target object is supported to execute page editing triggering operation, where the page editing triggering operation described above may include an operation of triggering a page editing option or a gesture operation, etc.; in this way, the target terminal responds to the page editing triggering operation executed by the target object, and can trigger and display a preview interface corresponding to the page editing indicated by the page editing triggering operation, namely the preview interface supports the target object to operate based on the thumbnail in the preview interface so as to realize the page editing of the target document and obtain the reference document after the page editing. It is worth noting that the original target document is not covered by the generated reference document, that is, the reference document is different from the target document, and the original target document is still reserved after the reference document is generated, so that the original target document is ensured not to have additional influence on the target document when page editing is performed on the original target document.
Wherein page edits for a target document may include, but are not limited to: document splitting, document merging, document extraction, document insertion, etc. The document splitting refers to splitting document pages contained in a target document to split the document pages in the target document into different sub-documents so as to split the target document. Document merging refers to merging all or part of the document pages in at least two documents into a reference document. Document extraction refers to extracting a part of document pages from document pages in a target document to form a reference document. Document insertion refers to inserting a new document page (i.e., the aforementioned target page) between document pages of the target document, resulting in a reference document. The specific implementation of each type of page editing will be described in the following embodiments.
The background overall technology implementation of page editing of a target document based on a thumbnail in a preview interface is described below with reference to the accompanying drawings, and fig. 8 is a schematic diagram of the background technology implementation of a document processing method provided by an embodiment of the present application; as shown in FIG. 8, the background implementation logic for page editing of a target document may include:
first, the target terminal receives a target document selected by a target object, the target object selects the target document from the social session interface as described above, or the target object selects the target document from a local storage space of the target terminal, and so on. Then, the target terminal judges whether the target document is an online document, and related concepts and contents of the online document can be referred to the related description, which is not described herein; if the target document is not an online document, for example, the target document is a local document, in order to make technical flow consistency, supporting uploading the local document to a server, generating a temporary file (a file in a temporary state) based on the local file by the server, converting the temporary file into the online document, wherein the online document is in the temporary state so as to ensure that no additional side effect is generated, and returning the converted online document to the target terminal so as to facilitate the target terminal to execute subsequent steps; otherwise, if it is determined that the target document is an online document, the subsequent steps may be performed directly based on the target document.
Secondly, the target terminal can create an isolation environment to isolate the main document and the operation document, so that the isolation of the main document and the operation document on data is realized; when the target terminal renders and displays the main document and the operation document, the target terminal can respectively acquire the document information of the main document and the document information of the operation document for rendering and displaying. The document information may include, but is not limited to, information such as a document page number and document content, and the like, (1) the main document may refer to a target document to be subjected to page editing, the operation document may refer to a reference document to be generated by page editing, for example, page editing is divided into documents, the main document may refer to the target document to be divided in this scenario, and the operation document may refer to a sub-document (i.e., the reference document) obtained by division. The above description shows that the target terminal obtains and renders the document information of the target document, and does not depend on the server, so that the rendering speed and efficiency of the target terminal can be improved to a certain extent.
Then, after rendering and displaying the target document, the target terminal can acquire the page editing operation executed by the target object based on the thumbnail, specifically, the page editing operation executed by the target object can be acquired in a polling mode; that is, the target terminal may query at a timing to acquire the page editing operation of the target object. The target terminal also generates operation information based on the page editing operation, and uploads the operation information to the server.
Finally, the server generates a reference document based on the operation information, and if the operation information indicates that the document page 1 and the document page 3 in the target document are extracted as one document, the server may extract the document page 1 and the document page 3 as the reference document composed of the document page 1 and the document page 3 according to the operation information. And converting the reference document into an online document and outputting the online document to the target terminal so that the target object can acquire the reference document through the target terminal. It should be noted that, in the scenario where the target document is a local document, the server needs to delete the temporary file in the temporary state, so as to save storage space.
As can be seen in conjunction with fig. 8 and the related description above, the interaction between the target terminal and the server (or front-end and background) will not result in the transmission of a direct file stream (e.g., pdf file stream); but the page editing operation of the target object on the target document is represented by transmitting information between the target terminal and the server. Wherein the transmitted information may include at least one of: operation object information, operation function information, operation content information, operation result information, and the like. The so-called operation object information may include: the information of the document object acted on by the target object, such as page editing of the target document by the target object, the operation object information may refer to the document information (such as document identification) of the target document. The so-called operation function information may include: information of page editing performed by the target object, such as splitting, merging, extracting or inserting. The so-called operation content information may include: the target object edits the document name of the newly generated document, or sets a page number for the newly generated document, or the like, as information generated when the target object performs an operation on the document. The so-called operation result information may include: and the target object performs page editing on the target document, such as failure in splitting or success in splitting the target object. The mode of transmitting information between the target terminal and the server, rather than file flow, can save transmission resources to a certain extent and improve information transmission efficiency.
It should be further noted that, the background basic logic for visual editing of the target document provided by the embodiment of the present application may be shown in fig. 9. As shown in fig. 9, the embodiment of the application provides a multi-application architecture of a primary and a secondary document, and transmits information before the primary and the secondary applications through a message channel; the main and auxiliary documents comprise: a main document and a sub document, wherein the main document can be a target document for executing page editing, and the sub document can be a reference document obtained by executing page editing on the target document. The multi-application architecture provided by the embodiment of the application can realize the visual editing of multiple documents, such as splitting a target document to obtain at least two sub-documents, or extracting the target document to obtain a reference document and the like, and simultaneously realize the page rendering of a document by using a isomorphic (as one code can realize front-end rendering and background rendering) main document (namely the target document) code, thereby ensuring that the data of the main document and the sub-document cannot be influenced mutually.
Referring to fig. 9, after the target terminal acquires the target document, the target document may be loaded and rendered for display; if the target object performs page editing on the target document, a secondary document application may be created, such as performing document splitting on the target document, at which point the secondary document application is the document application of the split sub-document. After the secondary document application is created, rendering task information can be obtained, and the sub-document is loaded by adopting isomorphic codes of the main document; when the visual editor needs to display a specific page of the sub-document, the visual editor only needs to send a message to the sub-document application, and after the sub-document application renders the specific page, the specific page is returned to the visual editor for output through a cross-application message channel. It should be noted that, the page rendering task of the secondary document application is basically consistent with the page rendering implementation of the primary document, but the secondary document application also needs to convert a specific page into a picture format, encode the picture (such as base64 encoding) and then transmit the picture; this saves resources and increases the availability of the master document.
In summary, in the process of displaying the document interface of the target document, when the triggering operation of page editing for the target document is received, it is determined that the target object has a requirement for page editing for the target document, if the target document is required to be split, the preview interface may be triggered to be displayed, and thumbnails of all document pages in the target document are displayed in the preview interface, so that the target object may perform page editing for the target document based on the thumbnails in the preview interface, for example, split multiple continuously displayed thumbnails, so as to split corresponding document pages in the target document. In the scheme, the thumbnail of the document page is visually presented in the preview interface, so that the target object can conveniently execute visual page editing on the target document based on the thumbnail, the visualization of the page editing is realized, and the intuitiveness of the page editing is improved.
FIG. 10 is a flow chart of another document processing method provided by an exemplary embodiment of the present application; the document processing method may be performed by the target terminal, and may include, but is not limited to, steps S1001-S1006:
s1001: and displaying a document interface of the target document.
S1002: and receiving page editing triggering operation aiming at the target document, and displaying a preview interface.
It should be noted that, the specific implementation process shown in steps S1001 to S1002 may refer to the related description of the specific implementation process shown in steps S301 to S302 in the embodiment shown in fig. 3, which is not described herein.
The page editing method for the target document comprises the following steps of: for example, document splitting, document merging, document extraction and document insertion, a specific implementation process of performing page editing on a target document based on a thumbnail in a preview interface will be described. When the page editing is document splitting, the specific implementation process of page editing on the target document based on the thumbnail can be seen in the following step S1003; when the page editing is document merging, the specific implementation process of the page editing on the target document based on the thumbnail can be seen from the following step S1004; when the page editing is document extraction, the specific implementation process of performing page editing on the target document based on the thumbnail can be seen in step S1005 described below; when the page editing is document insertion, the specific implementation process of page editing on the target document based on the thumbnail image can be seen in step S1006 described below. The order of the steps S1003 to S1006 is not limited to the order of the page edits performed to the target document, and is document splitting, document merging, document extracting, and document inserting, but 4 kinds of parallel page edits are given.
S1003: and splitting the target document based on the thumbnail in the preview interface to obtain at least two sub-documents, wherein one sub-document represents one reference document.
As described above, document splitting of a target document may refer to: the target document is split into at least two sub-documents, each of which may include a portion of the document pages in the target document. The embodiment of the application provides a richer document splitting mode (or simply called splitting mode), which comprises but is not limited to: the target object is used for freely splitting the target document, or the target object is used for setting a fixed splitting page number interval so as to realize fixed interval page number splitting of the target document, or the target document is intelligently split, and the like. Wherein: (1) free splitting for a target document may refer to: and executing splitting operation on the N thumbnails in the preview interface by the target object, and splitting N document pages corresponding to the N thumbnails into at least two sub-documents according to the splitting operation executed by the target object, wherein each sub-document can comprise one or more document pages in the target document. (2) Fixed-interval page number splitting for a target document may refer to: determining a fixed-interval page number (as set by the target object), and dividing each of the fixed-interval thumbnails of the adjacent N thumbnails into a sub-document according to the fixed-interval page number; if the fixed interval page number is 2 pages and n=10, the 10 thumbnails are divided into 5 portions each including 2 thumbnails in the order of arrangement between the 10 thumbnails (e.g., the page numbers of the corresponding document pages are ordered from small to large), and the corresponding sub-documents are generated based on the thumbnails included in each portion to be split (or divided) into 5 sub-documents. (3) Intelligent splitting for a target document may refer to: automatically splitting a document page of a target document according to an intelligent division dimension (or simply referred to as a division dimension, such as a chapter, a label or a title, etc.); the method and the device have the advantages that the detachable splitting position in the target document is intelligently prompted, and the target object is helped to be edited more quickly.
The embodiment of the application supports the target object to freely select which document splitting mode is adopted to split the target document; the specific implementation process of selecting the document splitting mode by the target object can comprise the following steps:
in the specific implementation, when the target object has the requirement of page editing on the target document, particularly when the target document is required to be split, the option selection operation can be executed in the preview interface for the target splitting option corresponding to the target splitting mode, so that the target terminal can receive the selection operation for the target splitting option in the multiple splitting options in the preview interface, and display the selected target splitting option as a selected state in the preview interface, so that the target object can visually inform that the target object can split the target document in the target splitting mode. The visual display patterns of the target split options in the selected state and the visual display patterns of the target split options in the unselected state are different, so that the target object can be facilitated to distinguish the states of the target split options by distinguishing the visual display patterns; for example, the display color of the target splitting option in the selected state is more vivid than the display color of the target splitting option in the unselected state, for example, the gray level of the target splitting option in the selected state is greater than the gray level of the target splitting option in the unselected state, and the like, which is not limited.
Two exemplary implementation manners of selecting the target splitting option in the preview interface are given below with reference to the accompanying drawings; wherein:
in one implementation, a default split option is displayed in the preview interface; when an option switch operation is detected, hiding the default split option in the preview interface and revealing the target split option selected by the target object. That is, when the preview interface is triggered to be displayed in response to the page editing triggering operation executed by the target object, a splitting option is displayed in the preview interface by default, so that the target object can directly realize page editing corresponding to the splitting option in the preview interface; if the target object wants to execute the page editing of the target document, which is the page editing corresponding to the default splitting option, the way of displaying the default splitting option in the preview interface can shorten the path for executing the page editing to a certain extent, and the page editing efficiency is improved.
FIG. 11a is a schematic diagram of a display and selection of split options in a preview interface provided by an exemplary embodiment of the present application; as shown in fig. 11a, the target terminal may trigger displaying a preview interface in response to the page editing trigger operation performed by the target object, where a default splitting option, such as the free splitting option 1101, is displayed in the preview interface. When the target object wants to switch the document splitting mode, an option selection operation can be performed to trigger a display option window 1102, wherein the option window 1102 comprises a plurality of candidate splitting options, such as a fixed-interval splitting option 1103, an intelligent splitting option 1104 and the like; the option selection operation here may include a trigger operation on the free split option 1101, or a click on a drop-down button at a position associated with the free split option 1101, or the like. The target object may select a splitting option corresponding to a splitting manner to be executed from the option window 1102, if the fixed interval splitting option 1103 is selected, which indicates that the target object wants to split the target document in a fixed interval manner, then updating and displaying interface content corresponding to the fixed interval splitting option in the preview interface; for example: page number information is newly added for each thumbnail in the N thumbnails so as to help a target object to better know a document page corresponding to each thumbnail; and the following steps: and adding an input box in the preview interface so that the target object can input fixed-interval page number information in the input box.
In other implementations, a plurality of split options are displayed in the preview interface; when any split option is detected to be selected, determining the split option as a target split option, displaying other split options except the target split option in the multiple split options as an unselected state, and displaying the target split option as a selected state. That is, in response to the page editing triggering operation executed by the target object, when the preview interface is triggered to be displayed, splitting options corresponding to all splitting modes, such as a free splitting option, a fixed interval splitting option and an intelligent splitting option, are displayed in the preview interface; when any split option is triggered, the target object is indicated to want to execute page editing corresponding to the split option on the target document, then the any split option is determined to be the target split option, and the target split option and other split options (split options except the target split option in the multiple split options) are displayed in different visual display styles so as to intuitively inform the current preview interface to support executing page editing corresponding to the target split option on the target document.
FIG. 11b is a schematic diagram of a display and selection of split options in a preview interface provided by an exemplary embodiment of the present application; as shown in fig. 11b, the target terminal responds to the page editing triggering operation executed by the target object, and can trigger to display a preview interface, at this time, a splitting option corresponding to each splitting mode is displayed in the preview interface, including a free splitting option 1101, a fixed interval splitting option 1102 and an intelligent splitting option 1103; in response to a selection operation of any split option by the target object, if the free split option 1101 is selected, the selected free split option 1101 is displayed in a selected state (e.g., the font color is black), and other split options (e.g., the fixed interval split option 1102 and the intelligent split option 1103) are displayed in an unselected state (e.g., the font color is gray), so that the target object is informed that the selected split option is the free split option 1101.
It should be noted that, similar to the foregoing description, after the preview interface is triggered to be displayed, any split option in the preview interface is supported to be displayed as a selected state by default, and other split options except for the any split option are displayed as an unselected state; therefore, if the target object wants to execute page editing corresponding to any splitting option on the target document, the target document can be directly split in the preview interface without the option operation of splitting the option in the preview interface, so that the document splitting efficiency can be improved to a certain extent, and the object viscosity can be improved.
Based on the above description about three document splitting modes (such as free splitting, fixed-interval splitting and intelligent splitting), a specific implementation process of each document splitting mode is described below, where:
1. and (5) free splitting.
As described above, the free splitting of the target document is achieved by splitting the N thumbnails in the preview interface by the target object; in this implementation, the split option selected by the target object includes a free split option. The target object is used for freely splitting the target document, so that the requirement of the target object for customizing document pages of each sub-document is met, the generalization of document splitting is improved, and the user viscosity is improved.
The embodiment of the application provides a splitting implementation process of a plurality of exemplary free splitting target documents, which specifically comprises the following steps:
(1) And realizing free splitting of the target document through splitting identification.
In a specific implementation, when the target object wants to freely split the target document, the target object can execute an identification control operation on the N thumbnails in the preview interface so as to insert one or more split identifications among the N thumbnails continuously tiled or streaming according to the identification control operation; and forming at least two sub-documents by splitting one or more document pages identifying associated thumbnails; specifically, each split identity associated thumbnail may constitute one or two sub-documents.
In the implementation process, the following points need to be described: (1) the identification control operation performed for the N thumbnails may refer to: an operation of inserting a split identification into a split position between any two thumbnail images among the N thumbnail images. The splitting identifier may be always displayed in the preview interface along with the display of the preview interface, or may be displayed in the preview interface only when the identifier control operation exists, which is not limited by the embodiment of the present application.
(2) The one or more thumbnails associated with the split identity may refer to thumbnails that are displayed in a position adjacent to the split identity. Specifically, the one or more thumbnails associated with the split logo are different depending on the display style of the split logo and the insertion position of the split logo between the N thumbnails. The description is given by taking the display mode of the split identifier as a vertical line mode as an example, and the thumbnail associated with the split identifier can be determined according to the segmentation rule in the implementation mode. The segmentation rules may include: and according to the display sequence of the N thumbnails, if the preamble splitting identification exists before the current splitting identification, determining one or more thumbnails between the preamble splitting identification and the current splitting identification as the thumbnail associated with the current splitting identification. If the preamble splitting identification does not exist before the current splitting identification, one or more thumbnails before the current splitting identification are used as thumbnails associated with the current splitting identification. And if the follow-up splitting identification does not exist after the current splitting identification, using one or more thumbnails positioned after the current splitting identification as thumbnails associated with the current splitting identification. As can be seen from the above description of the segmentation rule, when only one splitting identifier exists in the N thumbnails, the thumbnail associated with the splitting identifier may include two parts, where the first part includes: a thumbnail having a display location adjacent to and prior to the split logo, the second portion comprising: and displaying the thumbnail with the position adjacent to and behind the split identifier. When at least two split identifiers exist in the N thumbnails, the last split identifier has two parts of associated thumbnails, the two parts of associated thumbnails can form two sub-documents, and other split identifiers except the last split identifier in the at least two split identifiers are associated with one part of thumbnails, and the thumbnails associated with each split identifier respectively form the sub-documents.
An exemplary process of implementing a free split target document by splitting a logo is described with reference to fig. 12 a; as shown in fig. 12a, when the target terminal responds to the page editing triggering operation executed by the target object, a preview interface is triggered and displayed, where the preview interface includes N thumbnails that are continuously tiled, that is, the N thumbnails are tiled according to the order of the pages of the document page from small to large, and the preview interface further includes a splitting identifier 1201. In response to an identification control operation in which the target object inserts the split identification 1201 into the N thumbnails, the inserted one or more split identifications 1201 are displayed at the split position. Then, the document pages corresponding to one or more thumbnails associated with the split identifier 1201 are formed into a sub-document; in fig. 12a, splitting identification 1 is inserted between thumbnail 2 and thumbnail 3 in 5 thumbnails, and splitting identification 2 is inserted between thumbnail 4 and thumbnail 5, then the thumbnails associated with each splitting identification can be determined according to the above-described partitioning rule, specifically as follows: splitting the thumbnail associated with the mark 1 into a thumbnail 1 and a thumbnail 2, and forming a document page of the thumbnail 1 and a document page of the thumbnail 2 into a sub-document 1; the split identity 2 associates two parts, a first part comprising a thumbnail 3 and a thumbnail 4 between the split identity 2 and the split identity 1, and a second part comprising a thumbnail 5 after the split identity 2, the sub-document 2 is composed based on the thumbnail of the first part and the sub-document 3 is composed based on the thumbnail of the second part.
The above process of implementing free splitting based on splitting identification needs to be specifically described as follows:
(1) the splitting identification supports splitting of N thumbnails of the churn display in addition to splitting of N thumbnails of the continuous tiling display shown in FIG. 12 a; the specific splitting process for splitting the N thumbnails displayed in the churn is similar to the splitting process described above for splitting the N thumbnails displayed in the continuous tile, and will not be described herein.
(2) Responding to the page editing triggering operation of the target object, when the preview interface is triggered to be displayed, the splitting identification 1201 can be hidden instead of being directly displayed in the preview interface; when there is an identification control operation in the preview interface, the identification control operation includes: an input focus (such as a cursor, a finger, or an electronic pen) is controlled to perform a sliding operation between any two thumbnails, so that the split identifier 1201 is displayed in the preview interface, specifically, the split identifier 1201 is displayed at the insertion position.
(3) The display pattern of the split logo is not limited to the vertical line pattern shown in fig. 12a, and the split logo may be displayed as a horizontal line pattern; in this implementation, the manner in which the thumbnail associated with the split identity is determined may vary. As shown in fig. 12b, the display style of the split identifier 1202 is a horizontal line style, and then the thumbnail associated with the split identifier 1202 is a thumbnail corresponding to the horizontal line, as in fig. 12b, the thumbnail associated with the split identifier 1202 is divided into two parts, the first part including thumbnail 1, thumbnail 2, and thumbnail 3, and the second part including thumbnail 4 and thumbnail 5. The first portion may constitute a sub-document 1, the sub-document 1 including the document page 1 of the thumbnail 1, the document page 2 of the thumbnail 2, and the document page 3 of the thumbnail 3, and the page numbers of the three document pages in the sub-document 1 are in the order: document page 1→document page 2→document page 3; similarly, the second portion may constitute a sub-document 2, the sub-document 2 including the document page 4 of the thumbnail image 4 and the document page 5 of the thumbnail image 5, and the page numbers of the two document pages in the sub-document 2 are in the order: document page 4→document page 5.
(2) The free split target document is implemented through a split window (or split area).
In a specific implementation, when the preview interface includes N thumbnails that are continuously tiled or displayed in a streaming manner, the preview interface further includes a splitting window, and there is a superposition area between an area where the splitting window is located and an area where the N thumbnails are located, where the splitting window is located, if the area where the splitting window is located includes the area where the N thumbnails are located. When the target object has the requirement of freely splitting the target document, an adjustment operation can be executed for the splitting operation, and at the moment, the target terminal responds to the adjustment operation for the splitting window to update and display the splitting window in the preview interface, in particular to adjust the display area of the splitting window in the preview interface; and then, the document pages of the thumbnail in the updated splitting window in the N thumbnails form a sub-document.
A schematic view of an exemplary splitting window provided by an embodiment of the present application may be seen in fig. 12c; as shown in fig. 12c, when the preview interface is triggered to be displayed, the area where the default splitting window 1201 is located and the area where the N thumbnails are located completely overlap, and in the visual effect, all the N thumbnails are located in the splitting window 1201. Then, in response to the adjustment operation on the split window 1201, the split window 1201 may be updated and displayed in the preview interface; if the left side or the right side of the splitting window 1201 is moved along the horizontal direction, the area where the updated splitting window 1201 is located is reduced, and a new splitting window 1202 is allocated to other thumbnails not located in the splitting window 1201, so that the part of thumbnails can be split again through the new splitting window. Finally, the document pages of the thumbnail images located within the updated split window 1201 are grouped into one sub-document. Among other things, adjustment operations for split window 1201 may include, but are not limited to: by controlling the movement operation of the split window in the target direction, as shown in fig. 12d, which is the arrangement display direction of N thumbnails, such as the horizontal direction or the vertical direction, the split window 1201 can be moved as a whole. Alternatively, for the size adjustment operation of the split window in the target direction, as shown in fig. 12e, assuming that the target direction is the horizontal direction, the adjustment of the display size of the split window may be achieved by adjusting the left 12011 or the right 12012 of the split window.
It will be appreciated that the foregoing has been described by taking the display style of the split window as the window style shown in fig. 12a as an example; in practical application, the display style of the split window can also be changed, and the corresponding adjustment operation executed on the split window can also be changed; the embodiment of the application does not limit the specific implementation process of the display style and the adjustment operation of the split window, and is specifically described herein.
(3) And realizing free splitting by inputting page number information.
In a specific implementation, when N thumbnails displayed in a continuous tiled or streaming manner are included in the preview interface, page numbers of document pages of corresponding thumbnails are also displayed in an area where each of the N thumbnails is located. The target object can refer to the page number displayed in the region where the thumbnail is positioned, one or more pieces of target page number information to be split are input in the preview interface, and particularly one or more pieces of target page number information to be split are input in an input box in the preview interface; the target page number information may include: a single page number (e.g., 2 pages) or a range of page numbers (e.g., 2-4 pages). Forming at least two sub-documents by document pages of the thumbnail corresponding to one or more target page number information; specifically, the document pages of the thumbnails corresponding to each target page information form a sub-document, and when the input target page information is one page information, the document pages of the thumbnails corresponding to the rest page information except the target page information are determined to form a sub-document. Of course, the page number of the document page may not be displayed in the preview interface, or may be displayed in another location instead of the region where the thumbnail is located, which is not limited by the embodiment of the present application.
An exemplary input target page number information provided by the embodiment of the present application, a schematic diagram of splitting a target document may be referred to fig. 13; as shown in fig. 13, an input box 1301 is displayed in the preview interface, and page numbers of document pages of the corresponding thumbnail are displayed in the region where each thumbnail is located, thereby visually informing the document page corresponding to the target object thumbnail. The target object may input target page information in the input box 1301, where the input target page information is: 1-3,4-8,9-11, it is determined that the document page 1, the document page 2, and the document page 3 corresponding to the target page information "1-3" are divided into one sub-document, and that the document page 4, the document page 5, the document page 6, the document page 7, and the document page 8 corresponding to the target page information "4-8" are divided into one sub-document, and that the document page 9, the document page 10, and the document page 11 corresponding to the target page information "9-11" are divided into one sub-document. It is to be understood that the style of the target page information input in the input box 1301 is not limited to the style given above, and the target page information "1-3" may also be expressed in the form of "1-3" or "1/2/3", etc., without limitation.
It should be noted that the foregoing is only a few exemplary processes for implementing the free splitting of the target document according to the embodiments of the present application; in an actual application scene, the splitting realization process of the free splitting of the target document can also be changed, and the embodiment of the application focuses on displaying the thumbnail in the preview interface so as to facilitate the free splitting of the target document based on the thumbnail.
It should be noted that the above-mentioned implementation processes of several free splits are not completely independent; in other words, in the process of carrying out primary splitting treatment on the target document by the target object, the target document can be freely split by adopting at least two splitting modes provided above, and the composite splitting mode can better meet the splitting requirement of the target object and promote the viscosity of a user. As shown in fig. 14, in a scene in which a target document is split by inputting page number information, after the target document is split according to the input page number information, the split target document may be displayed in a preview interface in the form of a split window; if the target object is not satisfied with the target document split according to the page number information, the target object can also adjust the splitting window to adjust the thumbnail to be split.
2. And (5) splitting at fixed intervals.
As described above, the fixed page number splitting may refer to splitting a document page of each adjacent fixed-interval thumbnail of N thumbnails into one sub-document to achieve free splitting of a target document; in this implementation, the split options selected by the target object include a fixed interval split option. By splitting the target document at fixed intervals based on the thumbnail in the preview interface, the complexity of page editing operation of the target object can be reduced, and the document splitting speed and efficiency can be improved.
In the specific implementation, under the condition that the fixed interval splitting option is selected, the target object is indicated to split the document pages of the fixed interval thumbnails in the N thumbnails in a fixed interval input mode, then the target object can input a fixed interval value in the preview interface, specifically, the fixed interval value can be input in an input box in the preview interface, so that the target terminal can divide the N thumbnails in sequence according to the fixed interval value after receiving the fixed interval value, and at least two sub-documents are formed by the document pages corresponding to the divided thumbnails; the partitioning concrete process may include: according to the arrangement sequence of the N thumbnails, the document pages of the thumbnails with adjacent fixed interval values are divided into one sub-document, so that the fixed interval division of the target document is realized, and a plurality of sub-documents are obtained. For example: the fixed interval value input by the target object is 3, which means that the first thumbnail in the N thumbnails is taken as the initial thumbnail, and the document pages of every adjacent 3 thumbnails are formed into a sub-document.
An exemplary fixed interval value input provided in the embodiment of the present application, a schematic diagram of splitting a target document may be referred to fig. 15; as shown in fig. 15, in the state that the fixed interval splitting option is selected, the target object may input a fixed interval value in the input box 1501 in the preview interface, for example, the input fixed interval value is 4; and the target terminal responds to the received fixed interval value, takes the first thumbnail in the N thumbnails as a starting thumbnail, and sequentially forms the document pages of the thumbnails adjacent to each fixed interval value into sub-documents. With continued reference to fig. 15, n=11, and a fixed interval value of 4, representing that thumbnail 1 is the starting thumbnail, adjacent thumbnail 1, thumbnail 2, thumbnail 3, and thumbnail 4 are divided into part 1, and a document page based on each thumbnail in part 1 may constitute sub-document 1; similarly, adjacent thumbnail 5, thumbnail 6, thumbnail 7, and thumbnail 8 are divided into portions 2, and document pages based on the respective thumbnails in portion 2 may constitute sub-document 2. After the above-described division processing, the remaining undivided thumbnail among the 11 thumbnails includes: thumbnail 9, thumbnail 10, and thumbnail 11; considering that the number of remaining undivided thumbnails is 3, which is smaller than the fixed interval value 4, the document pages of the remaining undivided thumbnails may be composed into the sub-document 3 by default.
It should be understood that in the case where the number of remaining undivided thumbnails is smaller than the fixed interval value, the document pages of the remaining undivided thumbnails are combined into sub-documents in addition to supporting the above-described; the embodiment of the present application also supports outputting the hint information 1502 so that the target object can execute the subsequent steps through the hint information 1502. Wherein: the output prompt message 1502 is used for prompting: when the target document is divided according to the currently inputted fixed interval value, the number of document pages included in the existence sub-document is smaller than the fixed interval value. Exemplary subsequent steps may include, but are not limited to: the target object may reenter a fixed interval value in the input box 1501 so that the N document pages may be more evenly divided into a plurality of sub-documents; or splitting the target document by adopting other splitting modes; or, confirm to continue to split at fixed intervals (i.e., document pages of the remaining undivided thumbnail form sub-documents); or, canceling fixed interval splitting; etc.
3. And (5) intelligent splitting.
As described above, the intelligent splitting may refer to identifying document pages included in the target document according to the intelligent dividing dimension, specifically identifying document content included in each document page, so as to intelligently split the target document according to the identified document content; in this implementation, the split options selected by the target object include an intelligent split option. By intelligently splitting the target document based on the thumbnail in the preview interface, the intelligent of document splitting can be improved, the target object is assisted to split the target document, the complexity of page editing operation of the target object is reduced, and the document splitting speed and efficiency are improved.
In the specific implementation, when an intelligent splitting option in a preview interface is in a selected state, the target object is indicated to want to automatically split a target document according to a target dividing dimension, and then the target terminal divides N thumbnails in the preview interface into at least two divided areas according to the target dividing dimension, wherein each divided area comprises one or more thumbnails; the dimension identification of each divided region is displayed at the position of each divided region, so that the dimension of each divided region of the target object is intuitively informed through the dimension identification; then, at least two sub-documents are formed by the document pages corresponding to the thumbnails in at least two divided areas, specifically, one sub-document is formed by the document pages corresponding to the thumbnails in one divided area. In other words, the embodiment of the application supports the identification of each document page contained in the target document according to the target division dimension so as to realize the splitting of the target document according to the document content contained in the document page.
The target division dimension according to the embodiment of the present application may include any one of the following: chapters, bookmarks, columns or titles, etc. For example, if the target division dimension is a chapter, when the intelligent splitting option is in the selected state, the target terminal may identify each document page in the target document, specifically identify which document pages in the plurality of document pages included in the target document belong to the same chapter, and divide the thumbnails of one or more document pages belonging to the same chapter into one division area, so as to obtain a plurality of division areas. And, at the position where each divided area is located, the dimension identification of the divided area is displayed, and at this time, the dimension identification may be chapter information to which the document page of the thumbnail contained in the divided area belongs, such as belonging to chapter 1 or chapter 2.
An exemplary schematic diagram of intelligent splitting of a target document when the target partitioning dimension is a chapter can be seen in fig. 16; assuming that the target division dimension is a chapter, when the intelligent splitting option is triggered, the target terminal may perform a step of dividing the N thumbnails into at least two divided regions according to the target division dimension, and display at least two divided regions, such as a divided region 1601, a divided region 1602, etc., including thumbnails of one or more document pages belonging to the same chapter within the same divided region in the preview interface; and, at the position of each divided area, chapter information of the document page contained in the corresponding divided area is displayed, such as chapter 1 is displayed at the position of the divided area 1601, chapter 2 is displayed at the position of the divided area 1602, chapter 3 is displayed at the position of the divided area 1603, and so on.
In addition, the embodiment of the application also supports the intelligent splitting of the target document by selecting the target dividing dimension by the target object according to the service requirement. The mode of selecting the target dividing dimension by the target object provides richer intelligent splitting selection for the target object, meets the requirement of multiple intelligent dividing, and improves the viscosity of users. In a specific implementation, receiving a selection operation for a target partitioning dimension option in a plurality of partitioning dimension options in a preview interface, displaying the target partitioning dimension option as a selected state, indicating that a target object wants to adopt a partitioning dimension corresponding to the target partitioning dimension option, and performing intelligent splitting on a target document, wherein at this time, the step of partitioning N thumbnails into at least two partitioning areas according to the target partitioning dimension corresponding to the target partitioning dimension option can be performed. It should be noted that, the embodiment of the present application does not limit the specific implementation process of selecting the target division dimension option in the preview interface. For example, a plurality of dimension dividing options are also displayed in the preview interface, wherein each dimension dividing option corresponds to one dimension dividing option, such as a chapter dividing option, a title dividing option or a bookmark dividing option is displayed; the target object may select a target partitioning dimension option directly from a plurality of partitioning dimension options, the target partitioning dimension option being any one of the plurality of partitioning dimension options. For another example, one of the divided dimension options is displayed by default in the preview interface, and in response to a switch operation to the divided dimension option, other divided dimension options may be displayed in the preview interface to facilitate the target object to select the target divided dimension option.
For example, a schematic diagram showing the divide dimension option in the preview interface can be seen in fig. 17; as shown in fig. 17, when the smart split option is in the selected state, a plurality of dimension dividing options, such as a chapter dividing option 1701, a bookmark dividing option 1702 and a title dividing option 1703, are also displayed in the preview interface; responding to the trigger aiming at any dividing dimension option, if a chapter dividing option 1701 is triggered, the target terminal realizes intelligent splitting of the target document according to the dividing dimension corresponding to the triggered dividing dimension option; and displaying the divided one or more divided areas in the preview interface. The specific implementation process of displaying the divided regions in the preview interface may be referred to the above description, and will not be described herein.
It will be appreciated that the one or more divided dimension options, in addition to being displayed directly in the preview interface as shown in fig. 17, also support performing a target operation in the preview interface to enable the one or more divided dimension options to be presented in the preview interface. For example: the target operation may include performing a right click operation at any display position in the preview interface and displaying a candidate window and presenting one or more split dimension options in the candidate window; and the following steps: the target operation may also include a double click operation for the intelligent split option in the preview interface; etc.; the embodiment of the application does not limit the triggering manner of triggering display of one or more dimension dividing options in the preview interface, and is described herein.
The above mainly describes the interface implementation flow when the target document is intelligently split, and the background implementation logic of the intelligent split is described by taking the target split dimension as a chapter dimension as an example with reference to fig. 18; fig. 18 is a schematic background technical flow diagram of an intelligent splitting according to an exemplary embodiment of the present application. As shown in FIG. 18, the embodiment of the present application achieves target document section identification in pattern recognition mainly through three dimensions, which may include: bookmark information dimension, catalog information dimension, and text information dimension. The pattern recognition is to study the automatic processing and interpretation of patterns by a mathematical technique method through a computer, and the environment and the object are collectively called as a pattern. Wherein: the bookmark information may be manually created by the target object, and then embedded into a source file (such as pdf source file) of the target document, where the priority is highest; the catalog information is information contained in a document page of the target document, and accurate chapters can be identified by identifying the catalog information, so that more prepared chapter splitting suggestions are provided for the target object, and the priority of the chapter splitting suggestions is medium; the text information is used for identifying whether chapter information is contained or not by performing pattern matching on all the text in the document page contained in the target document, and the priority of the chapter information is lower.
Specific background logic may include: after the target document is acquired, firstly judging whether the source file of the target document contains bookmark information, and if so, directly giving chapter dividing suggestions based on the bookmark information; otherwise, if the bookmark information is not included, it is determined whether the document page in the target document is a scanned item. If the document page is a scanned piece, performing mode recognition on the document page, wherein the mode recognition can comprise character recognition (OCR) so as to realize character recognition on the scanned piece in a picture form, and then judging whether the document page after OCR recognition is a catalog page; if the document page is not a scanner, a determination of whether the document page is a directory page may be made directly. If it is determined that the document page is a directory page, pattern recognition (OCR recognition as mentioned above) is performed on the document page, and after the pattern recognition is completed, chapter suggestions are given based on the pattern recognition result. If the document page is not the catalog page, the document page is identified in a text mode, text information is further identified on the document page by combining text fonts and styles (such as using labels of H1H2H3 and the like on text rendering, thickening text fonts, highlighting text sizes in context and the like), and chapter suggestions are given according to the identification results.
In the above implementation, the bookmark information may be directly read from the source file of the target document, which is not described in detail herein. In the case that the directory information is text information, the chapter information often conforms to the following pattern, that is, the chapter information can be identified by identifying whether the following pattern is included in the document page, including but not limited to: the pages of the document at the beginning of the list, the title, the figure, the title-the figure, and the like. In the text mode determination, it is possible to enumerate that most chapters conform to the following modes, including: 1. title sequence number, including but not limited to: roman numerals such as "1", capital numerals such as "one", capital letters such as "a", lowercase letters such as "a", sequence numbers such as "(one), 1, (1), 1, |,"; 2. separators, including but not limited to: ", space, etc.; 3. empty rows exist between the contexts; 4. the context is in a indented format; etc.
In addition, after the target object performs page editing on the target document based on the thumbnail in the preview interface, the document identification of the reference document obtained by page editing can be directly output; if the page editing is document splitting, the document identification of each sub-document in at least two sub-documents obtained by splitting can be output. In addition to directly outputting the document identifications of the sub-documents obtained by splitting, the embodiment of the application also supports that after the target object performs document splitting on the target document, the document identifications of at least two sub-documents to be split are previewed and displayed first, and only when the splitting operation is confirmed for the at least two sub-documents to be split, the document splitting on the target document is performed to obtain the at least two sub-documents, and the document identifications of the at least two sub-documents obtained by splitting are output. The method for previewing and displaying the document identification of the sub-document to be split can ensure that the target object confirms whether to split or not before executing formal splitting, and can avoid splitting to obtain the sub-document which is not satisfied by the target object to a certain extent, thereby saving splitting resources and improving the satisfaction degree of the target object on the split document.
An exemplary schematic diagram of displaying document identifications of at least two sub-documents to be split in a preview interface can be seen in fig. 19; as shown in fig. 19, the document identification of the sub-document 1 to be split, the document identification of the sub-document 2, and the document identification of the sub-document 3 are displayed in preview in the preview interface, and the document identification of any sub-document may include the document name (such as XX document) of the sub-document; when the confirm split option 1901 in the preview interface is triggered, it is determined that there is a confirm split operation for at least two sub-documents to be split, and in response to the confirm split operation, a split step of splitting the target document into at least two sub-documents is started to be performed.
The embodiment of the application also supports setting the document identifications of the sub-documents in the process of previewing and displaying the document identifications of at least two sub-documents to be split, specifically modifying the default document identifications of the sub-documents into the document identifications required by the target objects; the document identification of the sub-document is set at the stage of previewing the document identification of the sub-document, so that the text identification can be quickly set for the sub-document, the setting time of the document identification can be saved, and the viscosity of a user can be improved. In a specific implementation, in a process of previewing and displaying the document identifications of at least two sub-documents to be split, if a modification operation for a target document identification is detected, updating and displaying the target document identification according to the modification operation, wherein the target document identification can refer to the document identification of any one of the at least two sub-documents to be split.
With continued reference to FIG. 19, default document identifications of sub-document 1, sub-document 2, and sub-document 3 are displayed in the preview interface, respectively, and the default document identification of any sub-document may be preset by the developer; when a modification operation for a target document identification (such as the document identification of the sub-document 1) is detected, the target object is indicated to want to modify the target document identification, a new document identification input by the target object is received, and the new document identification is used for replacing and displaying the target document identification, so that the target document identification is updated and displayed in a preview interface. Wherein the modifying operation for the target document identification may include: for triggering operation of the editing control 1902, at this time, the target document identifier is adjusted from a non-editable state to an editable state, so that the target object modifies the target document identifier in the editable state; or, gesture operations (such as double-click operations) aiming at the target document identification are performed to activate the target document identification, wherein the activation of the target document identification refers to that the target document identification is adjusted from a non-editable state to an editable state so that a target object can modify the target document identification in the editable state; or, directly modifying the target document identification; etc.
In summary, the embodiment of the application supports splitting the thumbnail in the preview interface in a plurality of modes so as to realize document splitting of the target document; the method can realize visual and intelligent document splitting operation, help target objects to intuitively perceive the document splitting process, and promote user viscosity.
S1004: and merging the target documents based on the thumbnails in the preview interface to obtain merged reference documents.
As described above, document merging may refer to merging at least two documents, and in particular, merging all or part of the document pages in at least two documents to obtain one reference document.
The embodiment of the application supports the display in the preview interface, the thumbnail of the document page in each document in at least two documents to be combined, and the document combination is carried out on the thumbnail of the document page in each document so as to obtain the reference document. In a specific implementation, considering that the preview interface is triggered and displayed based on the target document, a thumbnail of a document page in the target document is displayed in the preview interface, namely the target document is taken as a document to be merged; based on this, it is also supported that in response to the document merging requirement for the candidate documents, thumbnail images of the respective document pages in the candidate documents are displayed in the preview interface, i.e., the candidate document is taken as one document to be merged; the target object can select a first thumbnail to be combined from the thumbnails of the document pages in the target document, wherein the number of the first thumbnails can be one or more, and select a second thumbnail to be combined from the thumbnails of the document pages in the candidate document, and the number of the second thumbnails is one or more; finally, the document page of the first thumbnail to be merged with the document page of the second thumbnail to be merged may be merged into one reference document.
It should be noted that, the implementation process of adding candidate documents in the preview interface is not limited in the embodiment of the present application; an exemplary schematic diagram of adding candidate documents in a preview interface in which an add option 2001 is displayed is shown in FIG. 20 a; in response to a trigger operation for this add option 2001, a document source window 2002 may be output, the document source window 2002 including therein a document source option 20021 and a document source option 20022. Where the document source option 20021 may indicate that candidate documents are to be retrieved from the local storage space, then in response to a triggering operation for the document source option 20021, a document selection window 2003 may be displayed, the document selection window 2003 being provided by the target terminal, at which point one or more candidate documents stored in the target terminal may be included in the document selection window 2003. The document source option 20022 may refer to obtaining candidate documents from a document application program, and then in response to a triggering operation for the document source option 20022, a document selection window 2004 may be displayed, where the document selection window 2004 is provided by the document application program, and where one or more candidate documents provided by the document application program, such as online documents that have been opened by the document application program over a historical time, may be included in the document selection window. When a candidate document is selected from any of the document selection windows (e.g., document selection window 2003 or document selection window 2004) in accordance with a document selection operation, a document identification of the selected candidate document may be displayed in the preview interface and a thumbnail of a document page in the selected candidate document may be displayed in the preview interface.
Similar to the foregoing description, the embodiment of the present application is not limited to a specific embodiment of selecting the first thumbnail from among the thumbnails of the respective document pages in the target document and selecting the second thumbnail from among the thumbnails of the respective document pages in the candidate document. An exemplary schematic diagram for selecting the first thumbnail and the second thumbnail may be shown in fig. 20b, where a page number range of a document page to be combined in the target document may be input in a page number input box 2005 corresponding to the target document in the preview interface, so as to implement selection of the first thumbnail from the thumbnails of the document pages in the target document; and, in a page number input box 2006 corresponding to the candidate document, inputting a page number range of the document pages to be combined in the candidate document to enable selection of the second thumbnail from the thumbnails of the document pages in the candidate document. Another exemplary selection of the first thumbnail and the second thumbnail may be illustrated in fig. 20c, where the determining of the thumbnail located in the splitting window 2007 as the first thumbnail may be directly achieved by adjusting the splitting window 2007 corresponding to the thumbnail of the document page in the target document, and the determining of the thumbnail located in the splitting window 2008 as the second thumbnail may be achieved by adjusting the splitting window 2008 corresponding to the thumbnail of the document page in the candidate document.
In summary, the embodiment of the application supports the adoption of a plurality of modes, namely, the thumbnail corresponding to the target document and the thumbnail corresponding to the candidate document are combined in the preview interface, so that the document page of the selected first thumbnail in the target document is combined with the document page of the selected second thumbnail in the candidate document; visual document merging operation can be realized, a target object is helped to intuitively perceive the document merging process, and the viscosity of a user is improved.
S1005: and extracting the target document based on the thumbnail in the preview interface to obtain a reference document.
As described above, document extraction may refer to extracting a portion of a document page from one or more document pages contained in a target document, constituting a reference document. In the embodiment of the application, one or more reference documents are extracted from a target document in a primary document extraction process; in other words, one or more reference documents may be generated by extracting a document page in a one-time document extraction scenario. The document extraction mode for generating a plurality of reference documents in a one-time document extraction scene meets the requirement of extracting a plurality of documents by a target object, and improves the document extraction efficiency, thereby improving the viscosity of a user.
In the specific implementation, when the page editing comprises document extraction, the preview interface support is used for extracting the target document; at this time, thumbnails of document pages in the target document are displayed in the preview interface. Such that a thumbnail may be selected for one or more reference documents from among the thumbnails contained in the preview interface; and extracting the document pages of the thumbnail selected for each reference document as the document pages contained in the corresponding reference document.
It should be noted that, the embodiment of the present application does not limit a specific selection manner of selecting a thumbnail for one or more reference documents from thumbnails in a preview interface; several exemplary implementations of thumbnail selection for at least two reference documents in a one-time document extraction scenario are presented below, in which:
1) The preview interface also comprises a reference document area, and document identifications of one or more reference documents to be extracted and generated are displayed in the reference document area; in response to the document identification of the reference document 1 being selected, the document identification of the reference document 1 is displayed in a selected state, and a thumbnail is selected for the reference document 1 among thumbnails of document pages in the target document. And, it is also supported to display the thumbnail that has been selected in real time in the display area where the reference document 1 is located, to prompt the target document for the thumbnail that has been selected for the reference document 1.
As shown in fig. 21a, the preview interface includes therein a thumbnail area 2101 and a reference document area 2102; thumbnail images of document pages in the target document, such as thumbnail image 1, thumbnail image 2, thumbnail image 3, &..and thumbnail image 10, are continuously tiled in the thumbnail image field 2101. The reference document area 2102 has displayed therein a document identification of the reference document 1 and a document identification of the reference document 2. In response to a triggering operation for the document identification of the reference document 1, indicating that the target object wants to select a thumbnail for the reference document 1, the reference document 1 is displayed in a selected state, and a thumbnail is selected for the reference document 1 in the thumbnail area 2101. For example, the thumbnails sequentially selected for the reference document 1 are thumbnail 1, thumbnail 3 and thumbnail 4, and then, according to the sequence in which the thumbnails are selected, thumbnail 1, thumbnail 3 and thumbnail 4 are sequentially displayed in the region where the reference document 1 is located, so that the target document can timely perceive visual extraction of the thumbnails. Further, in response to the selection ending operation for the thumbnail image of the reference document 1, the thumbnail image may be continuously selected for the reference document 2 to achieve the selection of thumbnail images for the plurality of reference documents. The above-mentioned selection ending operation of the thumbnail of the reference document 1 may include, but is not limited to: after selecting the thumbnail for reference document 1, triggering the operation of the confirm option 2103 in the preview interface; alternatively, a selection operation of a document identification of another reference document (such as reference document 2) in the preview interface is detected, and the end of the selection of the thumbnail of reference document 1 is automatically confirmed, so that the document identification of reference document 1 is displayed in an unselected state, and the document identification of reference document 2 is displayed in a selected state.
The embodiment of the application also supports the adjustment of the sequence among the selected thumbnails in the reference document area in the preview interface, thereby meeting the requirement of target object user-defined reference document. An exemplary schematic diagram for adjusting the order of arrangement between thumbnails of a reference document can be seen in FIG. 21b; as shown in fig. 21b, a thumbnail of a document page included in each reference document is displayed in the preview interface, and in response to a drag operation on any thumbnail, adjustment of the display position of the thumbnail between thumbnails included in the reference document can be achieved, thereby achieving adjustment of the order between thumbnails in the reference document. In addition, the visual display effect of the thumbnail that has been selected in the preview interface is not the same as the visual display effect of the thumbnail that has not been selected, such as the edge line of the thumbnail that has been selected is thicker than the edge line of the thumbnail that has not been selected.
2) When the document identifications of at least two reference documents are displayed in the preview interface, the embodiment of the application also supports displaying the thumbnail of each document page in the target document in the area where each reference document is located, so that when the target object wants to extract the document page for which reference document, the thumbnail can be extracted in the corresponding reference document area to realize the extraction of the document page for the reference document.
As shown in fig. 22, the preview interface includes a document area 2201, a document area 2202, and the like, each of which includes a document identification of a reference document and a thumbnail of a document page in a target document; according to the document page extraction operation performed by the target object, a thumbnail image can be selected for the reference document in any document area so as to extract the document page for the reference document in any document area. Assuming that thumbnail 1 and thumbnail 3 are selected for reference document 1 in the target document area 2201, it is determined that document page 1 of thumbnail 1 and document page 3 of thumbnail 3 are to be composed as document pages in the reference document.
It will be appreciated that the foregoing is merely illustrative of two exemplary embodiments of the present application, an interface display and specific selection process when selecting a thumbnail for at least two reference documents; in practical applications, the interface display and specific selection process may be adaptively changed, which is not limited in the embodiments of the present application.
In addition, the embodiment of the application also supports the adjustment of the number of the reference documents to be extracted and generated in the preview interface, thereby meeting the requirement of the target object on the number of the self-defined reference documents. In specific implementation, when the target object wants to modify the number of the reference documents, the document identification of the displayed reference document can be updated in the preview interface in response to the number adjustment operation of the target object on the reference document, specifically, the document identification of the displayed reference document is updated according to the number adjustment operation; wherein the number adjustment operation includes any one of: an operation of newly adding a reference document, or an operation of deleting a reference document, etc. In other words, the embodiment of the application supports the self-definition setting of the number of the reference documents in the preview interface by the target object, so that the target object can adaptively adjust the reference documents to be extracted and generated according to the service requirement, enrich the document extraction function and improve the viscosity of the user.
An exemplary schematic of adjusting the number of reference documents in the preview interface can be seen in FIG. 23; an adjustment option 2301 may be displayed in the sub-preview interface, or the adjustment option 2301 may be displayed in the preview interface after the target performs an activation operation (such as a gesture operation, or an operation for triggering an option), which is not limited thereto; in response to the triggering of the adjustment option 2301, it is determined that there is a quantity adjustment operation. The adjustment options 2301 may include an add sub-option and a delete sub-option, where when any sub-option is triggered, a function corresponding to the sub-option may be executed; when the new sub-option 2301 is triggered, the document identification of the newly added reference document is displayed in the preview interface.
In summary, the embodiment of the application supports selecting the thumbnail for the reference document in the preview interface in a plurality of modes, so as to realize that the thumbnail is selected for the reference document from the thumbnails corresponding to the target document to form a new document. Visual document extraction operation can be realized, a target object is helped to intuitively perceive a document extraction process, and user viscosity is improved.
S1006: and performing document insertion on the target document based on the thumbnail in the preview interface to obtain a reference document.
As described above, the document insertion may refer to inserting a new target page among N document pages included in the target document, resulting in a reference document including all document pages included in the target document, and the target page. In the specific implementation, when a target object has the requirement of inserting a target page in a target document, supporting M insertion positions to be inserted into the same page among N thumbnails, wherein M is an integer greater than zero; then, a target page is selected from one or more candidate pages included in the candidate page window, and is inserted at each of the M insertion positions. The triggering display mode of the candidate page window may include: an insert option is included in the preview interface, and in response to a triggering operation for the insert option, a candidate page window may be triggered to be displayed, where one or more candidate pages may be included.
It should be noted that, the determination manner of the M insertion positions of the page to be inserted in the embodiment of the present application is not limited. In one implementation, when a target object has a need to insert the same target page in M insertion locations in a target document, the target object is supported to select M insertion locations among N thumbnails where the same target page is to be inserted, and to insert the target page at each of the M insertion locations after the target page is selected. Correspondingly, after the same target page is inserted in the M insertion positions, if the target object also has the requirement of continuing to insert the page, the insertion position can be selected among the thumbnails after the target page is inserted, and the steps are executed, so that the document insertion of the target document is realized.
In other implementations, the support target object selects K insertion positions from among the N thumbnails at which to insert pages, where any two or more insertion positions included in the K insertion positions are different, such as M insertion positions from among the K insertion positions to insert a first target page, and the remaining K-M insertion positions to insert a second target page, where the first target page and the second target page are different. Then, the target object may select M insertion positions to be inserted into the first target page from among the K insertion positions so as to realize that the same first target page is inserted into the M insertion positions together. Then, the target object may select K-M insertion positions to be inserted into the second target page from among the K insertion positions so as to realize that the same second target page is inserted into the K-M insertion positions at once. It is understood that the target object may perform the step of selecting M insertion positions from the K insertion positions to insert the first target page, and then perform the step of inserting the second target page into the K-M insertion positions; alternatively, the target object may first perform the step of selecting K-M insertion positions from among the K insertion positions to insert the second target page, and then perform the step of inserting the first target page into the M insertion positions; the execution order of inserting the first target page and the second target page is not limited in the embodiments of the present application, and is described herein.
For example, assuming that the target page 1 and the target page 2 need to be inserted in the target document, the target page 1 is different from the target page 2, all the insertion positions may be selected among the N thumbnails, for example, K insertion positions are selected, which are the insertion position 1, the insertion position 2, and the insertion position 3, respectively. If the target object wants to insert the target page 1 at the insertion position 1 and the insertion position 2, the insertion position 1 and the insertion position 2 may be selected from 3 insertion positions so as to quickly insert the target page 1 into two insertion positions; the insertion position 3 is selected again to facilitate insertion of the target page 2 into the insertion position 3.
The above described selection of M insertion positions may include at least one of: (1) intelligent selection is performed according to the dividing dimension; that is, each chapter in the target document can be identified according to the aforementioned dividing dimension, and the associated position of each chapter is taken as an insertion position; wherein the partitioning dimension may include any of: for a section, bookmark, column or title, reference is made to the foregoing description for a specific overview of the partitioning dimensions, which is not repeated here. (2) According to the selection of the dividing operation for the N thumbnails, the dividing operation may include an operation of controlling the splitting window and an operation of inputting the page information, wherein the specific implementation process of controlling the splitting window and inputting the page information may be referred to the foregoing related description, which is not repeated herein. Of course, the M insertion positions may also be determined by adopting the two selection manners, for example, after intelligently selecting a plurality of insertion positions according to the dividing dimension, the target object may adjust the determined splitting positions according to the dividing operation, for example, add or delete the splitting positions; the specific selection process of the M insertion positions in the embodiment of the present application is not limited, and is described herein. For ease of illustration, the following description will take the example where M drop-in locations are intelligently selected by dividing dimensions.
An exemplary schematic of inserting a target page in a target document can be seen in FIG. 24a; as shown in fig. 24a, after the target document is intelligently divided according to the dividing dimension, three insertion positions, namely a section 1 insertion position, a section 2 insertion position and a section 3 insertion position, exist among the N thumbnails; any one or more of the three insertion locations may be selected in the preview interface and in response to a confirmation operation at the selected one or more insertion locations (e.g., triggering confirmation option 2401), a document selection window 2402 may be triggered to be displayed, the document selection window 2402 including one or more candidate documents therein. When any candidate document is selected, indicating that the target object wants to select a target page to be inserted from the candidate documents, a candidate page window 2403 of the any candidate document is displayed, and the candidate page window 2403 is used to display document pages (or thumbnails of document pages) contained in the any candidate document. In response to a selection operation to select a target page from the candidate page window 2403, the selected target page may be inserted into the selected one or more insertion locations to effect insertion of a document page in the target document, resulting in a new inserted document.
In addition, the embodiment of the application also supports the visual highlighting of the corresponding insertion position in the process of executing the insertion operation at the insertion position, so that the visual display pattern of the corresponding insertion position is different from the visual display pattern of the insertion position which does not execute the insertion operation in the K insertion positions; the method can remind the target object of which one or more insertion positions are currently being subjected to page insertion, so that the target object can intuitively sense the insertion operation process, and the user viscosity is improved. As shown in fig. 24a, in the course of performing an insertion operation at the chapter 1 insertion position and the chapter 2 insertion position, the visual display pattern of the chapter mark displayed at the chapter 1 insertion position and the chapter 2 insertion position-associated position is different from the visual display pattern of the chapter 3 insertion position; the font transparency of the chapter marks as displayed at the chapter 1 insertion position and the chapter 2 insertion position association position is smaller than the font transparency of the chapter marks at the chapter 3 insertion position association position.
Considering that the pages to be inserted at the M insertion positions are the same, the embodiment of the application also supports batch insertion of the first target page at the M insertion positions in the target document, so that batch insertion of the first target page into a plurality of insertion positions in the target document can be realized, the insertion path is shortened, and the speed and efficiency of document insertion are improved. In a specific implementation, a batch insertion option is included in the preview interface, and when the batch insertion option is triggered, a candidate page window can be output, wherein the candidate page window comprises one or more candidate pages; selecting a first target page from one or more candidate pages according to a page selection operation; the first target page is inserted at each of the M insertion locations to effect bulk insertion of the first target page into the target document.
As shown in fig. 24b, a bulk insert option 2404 is included in the preview interface; when the bulk insert option 2404 is triggered, a candidate page window 2405 is output, the candidate page window 2405 includes one or more candidate pages therein, such that the target object may select a first target page from the candidate page window 2405 and insert the first target page into the M insert locations to achieve bulk insert of the target document.
In summary, the embodiment of the application supports the adoption of various modes, namely, determining the insertion position for the target document and selecting the target page to be inserted in the preview interface, can realize the visualized document insertion operation, help the target object to intuitively sense the document insertion process, and promote the viscosity of the user.
In the embodiment of the application, in the process of displaying the document interface of the target document, when the page editing triggering operation for the target document is received, the target object is determined to have the requirement of carrying out page editing on the target document, if the target document is required to be split, the preview interface can be triggered to be displayed, and the thumbnail of the document page in the target document is displayed in the preview interface, so that the target object can carry out page editing on the target document based on the thumbnail in the preview interface, for example, a plurality of continuously displayed thumbnails are split, and the splitting of the corresponding document page in the target document is realized. In the scheme, the thumbnail of the document page is visually presented in the preview interface, so that the target object can conveniently execute visual page editing on the target document based on the thumbnail, the visualization of the page editing is realized, and the intuitiveness of the page editing is improved.
The foregoing details of the method of the present application and, in order to facilitate better practice of the method of the present application, a device of the present application is provided below.
Fig. 25 is a schematic diagram showing a structure of a document processing apparatus according to an exemplary embodiment of the present application, which may be a computer program (including program code) running in a target terminal; the document processing device may be used to perform some or all of the steps in the method embodiments shown in fig. 3 and 10; the device comprises the following units:
a display unit 2501 for displaying a document interface of a target document including one or more document pages;
a processing unit 2502 configured to receive a page editing trigger operation for a target document, and display a preview interface for displaying thumbnails of document pages in the target document;
the processing unit 2502 is further configured to perform page editing on the target document based on the thumbnail in the preview interface, to obtain a reference document.
In one implementation, a page edit trigger operation includes:
triggering operation for the page editing control in the document interface;
Or, a gesture operation performed in the document interface;
or, a voice audio input operation.
In one implementation, when the processing unit 2502 is configured to display a preview interface, the processing unit is specifically configured to:
displaying a preview interface in a floating layer form on the document interface;
or displaying a preview interface in a target area in the document interface; the target area includes: the area where the toolbar in the document interface is located or the area where the document page in the document interface is located;
the target document comprises N document pages, N is an integer greater than 1, and the display modes of N thumbnails corresponding to the N document pages in the preview interface comprise: a continuous tile or a streaming display.
In one implementation, page editing for a target document includes: document splitting, document extraction, document merging and document insertion;
wherein, the document splitting refers to: splitting the target document into at least two sub-documents, one sub-document representing a reference document; document extraction refers to: extracting document pages from one or more document pages contained in the target document to form a reference document; document merging refers to: merging the target document and the candidate document into a reference document; document insertion refers to: and inserting the target page into the target document to obtain the reference document.
In one implementation, the page editing includes the document splitting, and the processing unit 2502 is further configured to:
receiving a selection operation for a target split option in the multiple split options in a preview interface, and displaying the target split option as a selected state;
wherein, each split option corresponds a split mode, and a plurality of split options include: free split option, fixed interval split option, and intelligent split option.
In one implementation, the target split option includes a free split option, and the processing unit 2502 is configured to, when performing page editing on the target document based on the thumbnail in the preview interface, specifically configured to:
inserting one or more split identifiers among the N thumbnails according to the identifier control operation;
at least two sub-documents are composed of one or more document pages that split the associated thumbnail.
In one implementation, the target splitting option includes a free splitting option, the preview interface includes a splitting window, and a superposition area exists between an area where the splitting window is located and an area where the N thumbnails are located;
the processing unit 2502 is configured to, when performing page editing on a target document based on a thumbnail in a preview interface, specifically:
Updating and displaying the split window in the preview interface in response to the adjustment operation for the split window;
and forming a sub-document by the document pages of the thumbnail images in the updated splitting window.
In one implementation, the target split option includes the free split option; the processing unit 2502 is configured to, when performing page editing on a target document based on a thumbnail in a preview interface, specifically:
one or more pieces of target page number information are input in the preview interface, wherein the target page number information comprises: a single page number or range of page numbers;
at least two sub-documents are composed of document pages of thumbnail images corresponding to one or more target page number information.
In one implementation, the target split options include a fixed interval split option, and the processing unit 2502 is configured to, when performing page editing on the target document based on the thumbnail in the preview interface, specifically configured to:
inputting a fixed interval value in the preview interface;
dividing the N thumbnails in sequence according to the fixed interval value, and forming at least two sub-documents by the document pages corresponding to the divided thumbnails.
In one implementation, the target split option includes an intelligent split option, and the processing unit 2502 is configured to, when performing page editing on the target document based on the thumbnail in the preview interface, specifically:
Dividing N thumbnails into at least two divided areas according to the target dividing dimension;
displaying dimension identification of each divided area at the position of each divided area;
forming at least two sub-documents by the document pages corresponding to the thumbnails in at least two divided areas;
wherein the target partitioning dimension includes any one of: chapter, bookmark, column or title.
In one implementation, the processing unit 2502 is further configured to:
receiving a selection operation aiming at a target partitioning dimension option in a plurality of partitioning dimension options in a preview interface, wherein each partitioning dimension option corresponds to one partitioning dimension;
and displaying the target division dimension option as a selected state, and triggering and executing the step of dividing the N thumbnails into at least two divided areas according to the target division dimension.
In one implementation, the processing unit 2502 is further configured to:
previewing and displaying document identifications of at least two sub-documents to be split;
and outputting the document identification of the at least two sub-documents obtained by splitting in response to the confirmation splitting operation of the at least two sub-documents to be split.
In one implementation, the processing unit 2502 is further configured to:
in the process of previewing and displaying the document identifications of at least two sub-documents to be split, if a modification operation for the target document identifications is detected, updating and displaying the target document identifications according to the modification operation, wherein the target document identifications refer to: document identification of any one of the at least two sub-documents.
In one implementation, the page editing includes document extraction, and the processing unit 2502 is configured to, when performing page editing on the target document based on the thumbnail in the preview interface, specifically:
selecting a thumbnail for one or more reference documents from the thumbnails contained in the preview interface;
the document pages of the thumbnail images selected for each reference document are extracted as the document pages contained in the corresponding reference document.
In one implementation, the processing unit 2502 is further configured to:
in response to the number adjustment operation for the reference document, updating a document identification of the displayed reference document in the preview interface;
wherein the number adjustment operation includes any one of: an operation of adding a reference document newly, or an operation of deleting a reference document.
In one implementation, the page editing includes document merging, and the processing unit 2502 is specifically configured to, when performing page editing on the target document based on the thumbnail in the preview interface:
displaying thumbnails of the document pages in the candidate document in the preview interface in response to the document merging requirement for the candidate document;
selecting a first thumbnail to be combined from the thumbnails of the document pages in the target document, and selecting a second thumbnail to be combined from the thumbnails of the document pages in the candidate document;
And merging the document pages of the first thumbnail to be merged with the document pages of the second thumbnail to be merged into a reference document.
In one implementation, the page editing includes document insertion, and the processing unit is configured to, when 2502 performs page editing on the target document based on the thumbnail in the preview interface, specifically:
selecting M inserting positions to be inserted into the same page among the N thumbnails, wherein M is an integer greater than zero;
a first target page is selected from one or more candidate pages included in the candidate page window and inserted at each of the M insertion locations.
In one implementation, the processing unit 2502 is configured to, among the N thumbnails, select M insertion positions to be inserted into the same page, specifically configured to:
selecting K insertion positions of a page to be inserted among the N thumbnails, wherein K is an integer larger than M; m insertion positions of the K insertion positions are to be inserted into a first target page, and K-M insertion positions are to be inserted into a second target page, wherein the first target page and the second target page are different;
wherein, in the process of performing the insertion operation at the insertion position, the visual display pattern of the corresponding insertion position is different from the visual display pattern of the insertion position at which the insertion operation is not performed.
In one implementation, the preview interface includes a batch insertion option, and the processing unit 2502 is configured to, when selecting a first target page from one or more candidate pages included in the candidate page window and inserting the first target page into each of the M insertion positions, specifically:
when the batch insertion option is triggered, outputting a candidate page window, wherein the candidate page window comprises one or more candidate pages;
selecting a first target page from one or more candidate pages according to a page selection operation;
the first target page is inserted at each of the M insertion positions. In one implementation, the selection of the insertion location includes at least one of:
the method comprises the steps of intelligently selecting according to a partitioning dimension, wherein the partitioning dimension comprises any one of the following steps: chapter, bookmark, column or title;
alternatively, the dividing operation includes an operation of controlling the split window and an operation of inputting page number information, selected according to the dividing operation for the N thumbnails.
In one implementation, the processing unit 2502 is further configured to:
displaying the target document in the social session interface;
triggering the execution of a document interface displaying the target document in response to an editing requirement for the target document;
The processing unit 2502 is further configured to:
in the social session interface, outputting a reference document obtained by page editing in the form of session messages, wherein the reference document is different from the target document.
According to an embodiment of the present application, each unit in the document processing apparatus shown in fig. 25 may be individually or collectively constituted as one or several other units, or some unit(s) thereof may be further divided into a plurality of units having smaller functions, which can achieve the same operation without affecting the achievement of the technical effects of the embodiment of the present application. The above units are divided based on logic functions, and in practical applications, the functions of one unit may be implemented by a plurality of units, or the functions of a plurality of units may be implemented by one unit. In other embodiments of the present application, the document processing apparatus may also include other units, and in actual practice, these functions may also be implemented with assistance from other units, and may be implemented by cooperation of a plurality of units. According to another embodiment of the present application, a document processing apparatus as shown in fig. 25 may be constructed by running a computer program (including program code) capable of executing the steps involved in the respective methods shown in fig. 3 and 10 on a general-purpose computing device such as a computer including a processing element such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read only storage medium (ROM), and the like, and a storage element, and the document processing method of the embodiment of the present application is implemented. The computer program may be recorded on, for example, a computer-readable recording medium, and loaded into and run in the above-described computing device through the computer-readable recording medium.
In the embodiment of the application, in the process of displaying the document interface of the target document, when the page editing triggering operation for the target document is received, the target object is determined to have the requirement of carrying out page editing on the target document, if the target document is required to be split, the preview interface can be triggered to be displayed, and the thumbnail of the document page in the target document is displayed in the preview interface, so that the target object can carry out page editing on the target document based on the thumbnail in the preview interface, for example, a plurality of continuously displayed thumbnails are split, and the splitting of the corresponding document page in the target document is realized. In the scheme, the thumbnail of the document page is visually presented in the preview interface, so that the target object can conveniently execute visual page editing on the target document based on the thumbnail, the visualization of the page editing is realized, and the intuitiveness of the page editing is improved.
Fig. 26 is a schematic diagram showing a structure of a terminal according to an exemplary embodiment of the present application. Referring to fig. 26, the terminal includes a processor 2601, a communication interface 2602, and a computer-readable storage medium 2603. Wherein the processor 2601, the communication interface 2602, and the computer-readable storage medium 2603 may be connected by a bus or other means. Wherein the communication interface 2602 is used for receiving and transmitting data. The computer-readable storage medium 2603 may be stored in a memory of the terminal, the computer-readable storage medium 2603 storing a computer program comprising program instructions, and the processor 2601 executing the program instructions stored by the computer-readable storage medium 2603. The processor 2601 (or CPU) is a computing core and a control core of the terminal, which are adapted to implement one or more instructions, in particular to load and execute one or more instructions to implement a corresponding method flow or a corresponding function.
The embodiment of the application also provides a computer readable storage medium (Memory), which is a Memory device in the terminal and is used for storing programs and data. It will be appreciated that the computer readable storage medium herein may include both a built-in storage medium in the terminal and an extended storage medium supported by the terminal. The computer readable storage medium provides a storage space that stores a processing system of the terminal. Also stored in this memory space are one or more instructions, which may be one or more computer programs (including program code), adapted to be loaded and executed by the processor 2601. It should be noted that, the computer readable storage medium herein may be a high speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory; alternatively, it may be at least one computer-readable storage medium located remotely from the aforementioned processor.
In one embodiment, the computer-readable storage medium has one or more instructions stored therein; the processor 2601 loads and executes one or more instructions stored in the computer-readable storage medium to implement the corresponding steps in the above-described document processing method embodiments; in particular implementations, one or more instructions in the computer-readable storage medium are loaded by the processor 2601 and perform the steps of:
A document interface displaying a target document, the target document comprising one or more document pages;
receiving page editing triggering operation aiming at a target document, and displaying a preview interface, wherein the preview interface is used for displaying thumbnails of all document pages in the target document;
and carrying out page editing on the target document by the thumbnail in the preview interface to obtain a reference document.
In one implementation, a page edit trigger operation includes:
triggering operation for the page editing control in the document interface;
or, a gesture operation performed in the document interface;
or, a voice audio input operation.
In one implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 2601 and when executed perform the steps of:
displaying a preview interface in a floating layer form on the document interface;
or displaying a preview interface in a target area in the document interface; the target area includes: the area where the toolbar in the document interface is located or the area where the document page in the document interface is located;
the target document comprises N document pages, N is an integer greater than 1, and the display modes of N thumbnails corresponding to the N document pages in the preview interface comprise: a continuous tile or a streaming display.
In one implementation, page editing for a target document includes: document splitting, document extraction, document merging and document insertion;
wherein, the document splitting refers to: splitting the target document into at least two sub-documents, one sub-document representing a reference document; document extraction refers to: extracting document pages from one or more document pages contained in the target document to form a reference document; document merging refers to: merging the target document and the candidate document into a reference document; document insertion refers to: and inserting the target page into the target document to obtain the reference document.
In one implementation, page editing includes the document splitting, and one or more instructions in the computer-readable storage medium are loaded by the processor 2601 and further perform the steps of:
receiving a selection operation for a target split option in the multiple split options in a preview interface, and displaying the target split option as a selected state;
wherein, each split option corresponds a split mode, and a plurality of split options include: free split option, fixed interval split option, and intelligent split option.
In one implementation, the target split option includes a free split option, one or more instructions in the computer-readable storage medium are loaded by the processor 2601 and when performing page editing of the target document based on the thumbnail in the preview interface, specifically perform the steps of:
Inserting one or more split identifiers among the N thumbnails according to the identifier control operation;
at least two sub-documents are composed of one or more document pages that split the associated thumbnail.
In one implementation, the target splitting option includes a free splitting option, the preview interface includes a splitting window, and a superposition area exists between an area where the splitting window is located and an area where the N thumbnails are located;
one or more instructions in the computer-readable storage medium are loaded by the processor 2601 and when performing page editing of a target document based on thumbnails in a preview interface, specifically perform the steps of:
updating and displaying the split window in the preview interface in response to the adjustment operation for the split window;
and forming a sub-document by the document pages of the thumbnail images in the updated splitting window.
In one implementation, the target split option includes the free split option; one or more instructions in the computer-readable storage medium are loaded by the processor 2601 and when performing page editing of a target document based on thumbnails in a preview interface, specifically perform the steps of:
one or more pieces of target page number information are input in the preview interface, wherein the target page number information comprises: a single page number or range of page numbers;
At least two sub-documents are composed of document pages of thumbnail images corresponding to one or more target page number information.
In one implementation, the target split option includes a fixed interval split option, and one or more instructions in the computer-readable storage medium are loaded by the processor 2601 and when performing page editing of the target document based on the thumbnail in the preview interface, specifically perform the steps of:
inputting a fixed interval value in the preview interface;
dividing the N thumbnails in sequence according to the fixed interval value, and forming at least two sub-documents by the document pages corresponding to the divided thumbnails.
In one implementation, the target split option includes an intelligent split option, one or more instructions in a computer-readable storage medium loaded by the processor 2601 and when executing page editing of the target document based on the thumbnail in the preview interface, specifically performing the steps of:
dividing N thumbnails into at least two divided areas according to the target dividing dimension;
displaying dimension identification of each divided area at the position of each divided area;
forming at least two sub-documents by the document pages corresponding to the thumbnails in at least two divided areas;
Wherein the target partitioning dimension includes any one of: chapter, bookmark, column or title.
In one implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 2601 and further perform the steps of:
receiving a selection operation aiming at a target partitioning dimension option in a plurality of partitioning dimension options in a preview interface, wherein each partitioning dimension option corresponds to one partitioning dimension;
and displaying the target division dimension option as a selected state, and triggering and executing the step of dividing the N thumbnails into at least two divided areas according to the target division dimension.
In one implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 2601 and further perform the steps of:
previewing and displaying document identifications of at least two sub-documents to be split;
and outputting the document identification of the at least two sub-documents obtained by splitting in response to the confirmation splitting operation of the at least two sub-documents to be split.
In one implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 2601 and further perform the steps of:
in the process of previewing and displaying the document identifications of at least two sub-documents to be split, if a modification operation for the target document identifications is detected, updating and displaying the target document identifications according to the modification operation, wherein the target document identifications refer to: document identification of any one of the at least two sub-documents.
In one implementation, the page editing includes document extraction, and one or more instructions in the computer-readable storage medium are loaded by the processor 2601 and, when performing page editing of the target document based on the thumbnail in the preview interface, specifically perform the steps of:
selecting a thumbnail for one or more reference documents from the thumbnails contained in the preview interface;
the document pages of the thumbnail images selected for each reference document are extracted as the document pages contained in the corresponding reference document.
In one implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 2601 and further perform the steps of:
in response to the number adjustment operation for the reference document, updating a document identification of the displayed reference document in the preview interface;
wherein the number adjustment operation includes any one of: an operation of adding a reference document newly, or an operation of deleting a reference document.
In one implementation, the page editing includes document merging, and one or more instructions in the computer-readable storage medium are loaded by the processor 2601 and when performing page editing of the target document based on the thumbnail in the preview interface, specifically perform the steps of:
Displaying thumbnails of the document pages in the candidate document in the preview interface in response to the document merging requirement for the candidate document;
selecting a first thumbnail to be combined from the thumbnails of the document pages in the target document, and selecting a second thumbnail to be combined from the thumbnails of the document pages in the candidate document;
and merging the document pages of the first thumbnail to be merged with the document pages of the second thumbnail to be merged into a reference document.
In one implementation, the page editing includes document insertion, and one or more instructions in the computer-readable storage medium are loaded by the processor 2601 and, when performing page editing of a target document based on a thumbnail in a preview interface, specifically perform the steps of:
selecting M inserting positions to be inserted into the same page among the N thumbnails, wherein M is an integer greater than zero;
a first target page is selected from one or more candidate pages included in the candidate page window and inserted at each of the M insertion locations.
In one implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 2601 and when executed among the N thumbnails, select M insertion positions to be inserted into the same page, specifically perform the steps of:
Selecting K insertion positions of a page to be inserted among the N thumbnails, wherein K is an integer larger than M; m insertion positions of the K insertion positions are to be inserted into a first target page, and K-M insertion positions are to be inserted into a second target page, wherein the first target page and the second target page are different;
wherein, in the process of performing the insertion operation at the insertion position, the visual display pattern of the corresponding insertion position is different from the visual display pattern of the insertion position at which the insertion operation is not performed.
In one implementation, the preview interface includes a batch insert option therein, and one or more instructions in the computer-readable storage medium are loaded by the processor 2601 and upon execution select a first target page from one or more candidate pages included in the candidate page window and insert the first target page into each of the M insert locations, specifically perform the steps of:
when the batch insertion option is triggered, outputting a candidate page window, wherein the candidate page window comprises one or more candidate pages;
selecting a first target page from one or more candidate pages according to a page selection operation;
the first target page is inserted at each of the M insertion positions.
In one implementation, the selection of the insertion location includes at least one of:
the method comprises the steps of intelligently selecting according to a partitioning dimension, wherein the partitioning dimension comprises any one of the following steps: chapter, bookmark, column or title;
alternatively, the dividing operation includes an operation of controlling the split window and an operation of inputting page number information, selected according to the dividing operation for the N thumbnails.
In one implementation, one or more instructions in the computer-readable storage medium are loaded by the processor 2601 and further perform the steps of:
displaying the target document in the social session interface;
triggering the execution of a document interface displaying the target document in response to an editing requirement for the target document;
one or more instructions in the computer-readable storage medium are loaded by the processor 2601 and further perform the steps of:
in the social session interface, outputting a reference document obtained by page editing in the form of session messages, wherein the reference document is different from the target document.
Based on the same inventive concept, the principle and beneficial effects of solving the problem of the terminal provided in the embodiments of the present application are similar to those of solving the problem of the method for processing the file in the embodiments of the present application, and may refer to the principle and beneficial effects of implementing the method, which are not described herein for brevity.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the terminal performs the above-described document processing method.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable devices. The computer instructions may be stored in or transmitted across a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). Computer readable storage media can be any available media that can be accessed by a computer or data processing device, such as a server, data center, or the like, that contains an integration of one or more of the available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily appreciate variations or alternatives within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (25)

1. A document processing method, comprising:
a document interface displaying a target document, the target document comprising one or more document pages;
receiving page editing triggering operation aiming at a target document, and displaying a preview interface, wherein the preview interface is used for displaying thumbnails of all document pages in the target document;
and carrying out page editing on the target document based on the thumbnail in the preview interface to obtain a reference document.
2. The method of claim 1, wherein the page edit trigger operation comprises:
triggering operation for a page editing control in the document interface;
or, performing gesture operation in the document interface;
or, a voice audio input operation.
3. The method of claim 1, wherein displaying the preview interface comprises:
Displaying a preview interface in a floating layer form on the document interface;
or displaying a preview interface in a target area in the document interface; the target area includes: the area of the toolbar in the document interface or the area of the document page in the document interface;
the target document comprises N document pages, N is an integer greater than 1, and the display style of N thumbnails corresponding to the N document pages in the preview interface comprises: a continuous tile or a streaming display.
4. The method of claim 1, wherein page editing for the target document comprises: document splitting, document extraction, document merging and document insertion;
wherein, the document splitting refers to: splitting the target document into at least two sub-documents, one sub-document representing a reference document; the document extraction means: extracting document pages from one or more document pages contained in the target document to form a reference document; the document merging refers to: merging the target document and the candidate document into a reference document; the document insertion means: and inserting a target page into the target document to obtain a reference document.
5. The method of claim 4, wherein the page editing comprises the document splitting, the method further comprising:
receiving a selection operation for a target split option in a plurality of split options in the preview interface, and displaying the target split option as a selected state;
wherein, each split option corresponds to a split mode, and the plurality of split options includes: free split option, fixed interval split option, and intelligent split option.
6. The method of claim 5, wherein the target split option comprises the free split option, the page editing of the target document based on the thumbnail in the preview interface comprising:
inserting one or more split identifiers among the N thumbnails according to the identifier control operation;
at least two sub-documents are composed of the one or more document pages that split the associated thumbnail.
7. The method of claim 5, wherein the target split option includes the free split option, the preview interface includes a split window, and a region where the split window is located and a region where N thumbnails are located have overlapping regions;
The page editing of the target document based on the thumbnail in the preview interface comprises the following steps:
in response to an adjustment operation for the split window, updating and displaying the split window in the preview interface;
and forming a sub-document by the document pages of the thumbnail in the updated splitting window.
8. The method of claim 5, wherein the target split option comprises the free split option; the page editing of the target document based on the thumbnail in the preview interface comprises the following steps:
one or more pieces of target page number information are input in the preview interface, wherein the target page number information comprises: a single page number or range of page numbers;
and forming at least two sub-documents by the document pages of the thumbnail corresponding to the one or more target page number information.
9. The method of claim 5, wherein the target split option comprises the fixed-interval split option, the page editing of the target document based on a thumbnail in the preview interface comprising:
inputting a fixed interval value into the preview interface;
and dividing the N thumbnails in sequence according to the fixed interval value, and forming at least two sub-documents by the document pages corresponding to the divided thumbnails.
10. The method of claim 5, wherein the target split option comprises the intelligent split option, the page editing of the target document based on the thumbnail in the preview interface comprising:
dividing N thumbnails into at least two divided areas according to the target dividing dimension;
displaying the dimension identification of each divided area at the position of the divided area;
forming at least two sub-documents by the document pages corresponding to the thumbnails in the at least two divided areas;
wherein the target partitioning dimension includes any one of: chapter, bookmark, column or title.
11. The method of claim 10, wherein the method further comprises:
receiving a selection operation aiming at a target partitioning dimension option in a plurality of partitioning dimension options in the preview interface, wherein each partitioning dimension option corresponds to one partitioning dimension;
and displaying the target dividing dimension option as a selected state, and triggering and executing the step of dividing N thumbnails into at least two divided areas according to the target dividing dimension.
12. The method of any one of claims 5-11, wherein the method further comprises:
Previewing and displaying document identifications of at least two sub-documents to be split;
and outputting the document identifications of the at least two sub-documents obtained by splitting in response to the confirmation splitting operation of the at least two sub-documents to be split.
13. The method of claim 12, wherein the method further comprises:
in the process of previewing and displaying the document identifications of at least two sub-documents to be split, if a modification operation for a target document identification is detected, updating and displaying the target document identification according to the modification operation, wherein the target document identification refers to: and a document identification of any one of the at least two sub-documents.
14. The method of claim 4, wherein the page editing comprises the document extraction, the page editing the target document based on the thumbnail in the preview interface comprising:
selecting a thumbnail for one or more reference documents from the thumbnails contained in the preview interface;
the document pages of the thumbnail images selected for each reference document are extracted as the document pages contained in the corresponding reference document.
15. The method of claim 14, wherein the method further comprises:
Updating a document identification of the displayed reference document in the preview interface in response to a quantity adjustment operation for the reference document;
wherein the number adjustment operation includes any one of: an operation of adding a reference document newly, or an operation of deleting a reference document.
16. The method of claim 4, wherein the page editing comprises the document merging, the page editing the target document based on the thumbnail in the preview interface comprising:
displaying thumbnails of the document pages in the candidate document in the preview interface in response to the document merging requirement for the candidate document;
selecting a first thumbnail to be combined from the thumbnails of the document pages in the target document, and selecting a second thumbnail to be combined from the thumbnails of the document pages in the candidate document;
and merging the document pages of the first thumbnail to be merged with the document pages of the second thumbnail to be merged into a reference document.
17. The method of claim 4, wherein the page editing comprises the document insertion, the page editing the target document based on the thumbnail in the preview interface comprising:
Selecting M inserting positions to be inserted into the same page among the N thumbnails, wherein M is an integer greater than zero;
a first target page is selected from one or more candidate pages included in a candidate page window and inserted at each of the M insertion locations.
18. The method of claim 17, wherein selecting M insertion locations to be inserted into the same page among the N thumbnails comprises:
selecting K insertion positions of a page to be inserted among the N thumbnails, wherein K is an integer larger than M; m insertion positions of the K insertion positions are to be inserted into a first target page, and K-M insertion positions are to be inserted into a second target page, wherein the first target page and the second target page are different;
wherein, in the process of performing the insertion operation at the insertion position, the visual display pattern of the corresponding insertion position is different from the visual display pattern of the insertion position at which the insertion operation is not performed.
19. The method of claim 17, wherein the preview interface includes a batch insertion option therein, wherein the selecting a first target page from one or more candidate pages included in a candidate page window and inserting the first target page into each of the M insertion locations comprises:
When the batch insertion option is triggered, outputting a candidate page window, wherein the candidate page window comprises one or more candidate pages;
selecting a first target page from the one or more candidate pages according to a page selection operation;
the first target page is inserted at each of the M insertion locations.
20. The method of claim 17 or 18, wherein the insertion site is selected in a manner that includes at least one of:
the method comprises the steps of intelligently selecting according to a partitioning dimension, wherein the partitioning dimension comprises any one of the following steps: chapter, bookmark, column or title;
alternatively, the dividing operation is selected according to the dividing operation for the N thumbnails, and includes an operation of controlling the split window and an operation of inputting page number information.
21. The method of claim 1, wherein the method further comprises:
displaying the target document in the social session interface;
triggering and executing the document interface for displaying the target document in response to the editing requirement of the target document;
the page editing is performed on the target document based on the thumbnail in the preview interface, and after the reference document is obtained, the method further comprises the following steps:
And outputting the reference document obtained by page editing in a session message form in the social session interface, wherein the reference document is different from the target document.
22. A document processing apparatus, comprising:
a display unit for displaying a document interface of a target document, the target document comprising one or more document pages;
the processing unit is used for receiving page editing triggering operation aiming at a target document, and displaying a preview interface, wherein the preview interface is used for displaying thumbnails of all document pages in the target document;
and the processing unit is also used for carrying out page editing on the target document based on the thumbnail in the preview interface to obtain a reference document.
23. A terminal, comprising:
a processor adapted to execute a computer program;
a computer readable storage medium having stored therein a computer program which, when executed by the processor, implements the document processing method of any of claims 1-21.
24. A computer readable storage medium storing a computer application program which when executed implements the document processing method of any one of claims 1 to 21.
25. A computer program product comprising computer instructions which, when executed by a processor, implement the document processing method of any of claims 1 to 21.
CN202211051050.3A 2022-08-30 2022-08-30 Document processing method, device, terminal, medium and program product Pending CN117010337A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211051050.3A CN117010337A (en) 2022-08-30 2022-08-30 Document processing method, device, terminal, medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211051050.3A CN117010337A (en) 2022-08-30 2022-08-30 Document processing method, device, terminal, medium and program product

Publications (1)

Publication Number Publication Date
CN117010337A true CN117010337A (en) 2023-11-07

Family

ID=88574972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211051050.3A Pending CN117010337A (en) 2022-08-30 2022-08-30 Document processing method, device, terminal, medium and program product

Country Status (1)

Country Link
CN (1) CN117010337A (en)

Similar Documents

Publication Publication Date Title
CN108073680B (en) Generating presentation slides with refined content
CN112632942B (en) Document processing method, device, equipment and medium
US9213684B2 (en) System and method for rendering document in web browser or mobile device regardless of third-party plug-in software
CN106682219B (en) Associated document acquisition method and device
US9880709B2 (en) System and method for creating and displaying previews of content items for electronic works
CN104520843A (en) Providing note based annotation of content in e-reader
US20070162842A1 (en) Selective content imaging for web pages
US20230072097A1 (en) Embedding productivity applications in third party platforms
CN105630758A (en) Apparatus and method for providing translations editor
US20210149842A1 (en) System and method for display of document comparisons on a remote device
US10915496B2 (en) File generator
WO2015094779A1 (en) Touch-based reorganization of page element
US20140282139A1 (en) System for mobile content management
US9449126B1 (en) System and method for displaying content according to a target format for presentation on a target presentation device
Roudaki et al. A classification of web browsing on mobile devices
US20140282140A1 (en) Method for mobile content management
KR20210040611A (en) Method and apparatus for generating web page
US10628526B2 (en) Providing suggested diagrammatic representations of user entered textual information
US20180181269A1 (en) Systems and methods for online-content and print-content assembly
KR101950674B1 (en) APP system having a function of editing motion picture
US20140282115A1 (en) System and method for retrieving and selecting content
CN117093796A (en) Content creative WEB browser
CN117010337A (en) Document processing method, device, terminal, medium and program product
CN112507670A (en) Text editing method and device, electronic equipment and storage medium
CN110502713A (en) Web page resources processing method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination