A page splitting method and device

By recording the position information of split line in the page and providing flexible operation methods, the problem of cumbersome page splitting operations in the existing technology is solved, and the simple and efficient page splitting function is realized, which reduces the user's learning load and increases the Operational flexibility.

CN113627133BActive Publication Date: 2024-12-13ZHUHAI KINGSOFT OFFICE SOFTWARE +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010382735.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-08
Publication Date
2024-12-13
Estimated Expiration
2040-05-08

AI Technical Summary

Technical Problem

In the prior art, page splitting operations are cumbersome, and users need to frequently switch interfaces and operations, which increases the functional learning load, and the addition and deletion methods of splitting lines are not flexible enough, making it difficult to achieve accurate adjustments.

Method used

By recording the position information of the split line in the page, users are allowed to perform split operations directly on the page, adding, deleting and adjusting the split line, providing split preview function and automatic adsorption and alignment of the midline, supporting drag and Numerical input adjusts the position of the split line, adding the "Delete all split lines" function and the moving bar function.

Benefits of technology

It realizes the simple operation of page splitting, reduces the user's learning load on functions, improves the friendliness and flexibility of the splitting function, and facilitates users to accurately segment and adjust the page.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113627133B_ABST
    Figure CN113627133B_ABST
Patent Text Reader

Abstract

A page splitting method and device, comprising: after receiving an instruction to add a splitting line, obtaining the position information of the added splitting line and adding it to a splitting line record; wherein the position information includes the page number of the current page, the coordinate value and direction of the added splitting line; after receiving an instruction to split, splitting is performed according to the position information of the splitting line stored in the splitting line record. The application can perform various convenient operations of page splitting on a document page, reducing the learning load of the user on the function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to computer technology, and more particularly to a page splitting method and device. Background Art

[0002] In electronic documents, when there are multiple separate contents on the same page, the contents need to be printed separately, or read separately, delete, and retain some of the contents; when there is too much content on a page (or a scanned copy), the contents need to be separated and sorted; when there is too much content on a page, the printed content is not conducive to reading due to the size of the paper, and the content needs to be divided so that the content printed on the paper can be enlarged and easy to read.

[0003] For the page segmentation of PDF documents, enter the [Split Page] function, click the button to add vertical / horizontal split lines, and to delete split lines, you need to select the corresponding split lines in the split list or click the corresponding split lines in the operation view, and click the [Delete Split] button again to delete; you can select the application split range and the content processing method, and finally click the [OK] button to split. However, many operations are limited and user operations are very cumbersome. Summary of the invention

[0004] The present application provides a page splitting method and device, which can realize various simple operations for page splitting on a page, thereby reducing the user's learning load on the function.

[0005] The present application provides a page splitting method, including, after receiving an instruction to add a split line, obtaining the position information of the added split line and adding it to a split line record; wherein the position information includes the page number of the current page, the coordinate value and direction of the added split line; after receiving an instruction to split, splitting is performed according to the position information of the split line stored in the split line record.

[0006] Compared with the related art, the present application adds the split line information to the split record. When the user operates on the page, the split line information in the record can be directly retrieved, so that the user can perform various operations on the page without interrupting the current operation, reducing the user's learning burden on the function.

[0007] In an exemplary embodiment, the present application directly splits pages in the original editor; it is designed to split directly in the current document, and the user can directly perform real-time page splitting operations on the current page without interrupting the current operation and jumping to a new interface to perform the splitting operation; the user's learning burden on the function is reduced, and the splitting function display method is more user-friendly.

[0008] In an exemplary embodiment, the method of adding and deleting splitting lines is designed more reasonably, and more scenarios and methods of adding and deleting splitting lines are added.

[0009] In an exemplary embodiment, a split preview is provided for the application scope of the split operation; when the current split operation is applied to a page, a preview view of the split is displayed, so as to facilitate browsing the split status of each target page during the split and adjust and confirm the split action.

[0010] In an exemplary embodiment, automatic center line adsorption and alignment is implemented. For the commonly used half-split, the system designs an automatic center line automatic adsorption and alignment function to facilitate users to align the split line with the center line and split the page in half.

[0011] In an exemplary embodiment, the user is allowed to adjust the position of the splitting line by dragging or inputting a numerical value, and to move the splitting line in regular increments, so that the user can accurately adjust the position of the splitting line.

[0012] In an exemplary embodiment, a function of "delete all split lines" is added to facilitate the user to clear the current operation and re-edit the split operation.

[0013] In an exemplary embodiment, a "move bar" function is added. On the current split page, the mouse can be clicked on the four sides to drag out the dividing line. The horizontal dividing line can be dragged up and down, and the vertical dividing line can be dragged left and right. When the page is enlarged beyond the application window, the hot zone function of the splitting line can be dragged to stay in the application window.

[0014] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by implementing the present application. Other advantages of the present application can be realized and obtained by the schemes described in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The accompanying drawings are used to provide an understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0016] Figure 1 This is a flow chart of the page splitting method according to an embodiment of the present application;

[0017] Figure 2 This is a schematic diagram of the page splitting interface of the embodiment of the present application;

[0018] Figure 3 This is a schematic diagram of a page splitting device according to an embodiment of the present application. DETAILED DESCRIPTION

[0019] The present application describes multiple embodiments, but the description is exemplary rather than restrictive, and it is obvious to those skilled in the art that there may be more embodiments and implementations within the scope of the embodiments described in the present application. Although many possible feature combinations are shown in the drawings and discussed in the specific embodiments, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with any other feature or element in any other embodiment, or may replace any other feature or element in any other embodiment.

[0020] The present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features and elements disclosed in the present application may also be combined with any conventional features or elements to form a unique invention scheme defined by the claims. Any features or elements of any embodiment may also be combined with features or elements from other invention schemes to form another unique invention scheme defined by the claims. Therefore, it should be understood that any feature shown and / or discussed in the present application may be implemented individually or in any appropriate combination. Therefore, except for the limitations made according to the attached claims and their equivalents, the embodiments are not subject to other restrictions. In addition, various modifications and changes may be made within the scope of protection of the attached claims.

[0021] In addition, when describing representative embodiments, the specification may have presented the method and / or process as a specific sequence of steps. However, to the extent that the method or process does not rely on the specific order of the steps described herein, the method or process should not be limited to the steps of the specific order described. As will be understood by those of ordinary skill in the art, other sequences of steps are also possible. Therefore, the specific sequence of the steps set forth in the specification should not be interpreted as a limitation to the claims. In addition, the claims for the method and / or process should not be limited to the steps of performing them in the order written, and those skilled in the art can easily understand that these sequences can be changed and still remain within the spirit and scope of the embodiments of the present application.

[0022] like Figure 1 As shown, the page splitting method of the embodiment of the present application includes the following operations:

[0023] S1. After receiving an instruction to add a split line, obtain the position information of the added split line and add it to the split line record; wherein the position information includes the page number of the current page, the coordinate value and direction of the added split line;

[0024] S2. After receiving an instruction to split, split according to the position information of the split line stored in the split line record.

[0025] In an exemplary embodiment, the instruction to add a split line may be that the user clicks a button to add a split line, or the user clicks and drags from the edge of the page after entering the function of splitting pages, or the user right-clicks and selects Add.

[0026] In an exemplary embodiment, the direction in the acquired position information of the added split line is a current default direction or a direction selected by a user; the direction includes a horizontal direction and a vertical direction.

[0027] Exemplarily, in one way, when the user clicks the horizontal / vertical add button or menu item, the direction is selected. In another way, when the user adds a split line by dragging from the top edge of the page downward or from the bottom edge of the page upward, the direction is horizontal, and when the user adds a split line from the left edge of the page to the right, or from the right edge to the left, the direction is vertical.

[0028] In an exemplary embodiment, the coordinate value in the position information of the added split line obtained is the coordinate value of the current click position. For example, if the direction is horizontal, only the vertical coordinate of the click position needs to be obtained; if the direction is vertical, only the horizontal coordinate of the click position needs to be obtained.

[0029] For example, when the mouse moves, the coordinate value can be obtained in real time. When the left mouse button is clicked on one of the positions on the page, the position is considered to be the "add split line" area, and the message of "add split line" being triggered is captured, and then the bound slot function is triggered. After reaching the slot function, the page coordinate data of the current page is obtained through the saved page object doc and written into the list list, the interface is refreshed, and then all the list coordinate values ​​are redrawn through the qt library drawLine function.

[0030] In another exemplary embodiment, the coordinate values ​​in the acquired position information of the added splitting line are preset coordinate values, or are coordinate values ​​calculated in a preset manner.

[0031] Assuming that the predetermined coordinate value is the coordinate value of the center line, the coordinate value of the center line can be saved in advance, or the coordinate of the center line can be calculated according to the coordinates of the four corners of the page.

[0032] For example, after triggering "Add Split", the page coordinate values ​​stored in the memory can be obtained. The coordinate value of the upper left corner is QPoint point1 (x1, y1), and the coordinate value of the lower right corner is QPoint point2 (x2, y2). Then, the coordinates of the two middle points can be calculated by the algorithm as point3 = QPoint ((x2-x1) / 2, y1), point4 = QPoint ((x2-x1) / 2, y2). Then, drawLine can draw the "middle line" in the middle of the page, realizing the half-split of the page.

[0033] For example, when you click the "Add horizontal dividing line" button, it is added at the horizontal center of the current page by default. When you click the Add button N times, N horizontal dividing lines are added; when you click the "Add vertical dividing line" button, it is added at the vertical center of the current page by default. When you click the Add button N times, N horizontal dividing lines are added.

[0034] In an exemplary embodiment, the method further includes operation S3: when a split line is selected and a drag operation is detected, the coordinate value of the selected split line after movement is determined according to the direction and distance in which the selected split line is dragged, and the position information of the selected split line is updated in the split line record.

[0035] In an exemplary embodiment, determining the coordinate value of the selected splitting line after it is moved according to the direction and distance in which the selected splitting line is dragged in operation S3 includes the following operations:

[0036] S31, when the selected split line is dragged horizontally, if the distance between the longitudinal coordinate value of the position at which the split line stops and the longitudinal coordinate value of the longitudinal center line of the current page is within a predetermined range, the longitudinal coordinate value of the longitudinal center line is used as the longitudinal coordinate value of the split line after the split line moves;

[0037] S32. When the selected splitting line is dragged vertically, if the distance between the horizontal coordinate value position when it stops and the horizontal coordinate value of the horizontal center line of the current page is within a predetermined range, the horizontal coordinate value of the vertical center line is used as the horizontal coordinate value of the splitting line after it moves.

[0038] Example 1: When the mouse selects the split line, during the dragging process, the new separation point position is calculated.

[0039] Example 2: When the added split line is the center line, when the split line is moved, the page coordinate value stored in the memory is obtained as the starting point QPoint point1 (x1, y1), the lower right corner coordinate is QPoint point2 (x2, y2), and the value fOffsets entered by the user UI is obtained. Then, the coordinate values ​​to be drawn can be calculated as QPoint point3 ((x1+fOffsets), y1), QPoint point4 ((x1+fOffsets), y2) These two coordinate values ​​can achieve accurate setting of the split line position.

[0040] In an exemplary embodiment, the method also includes operation S4, when an instruction to cancel a split line is received, searching the split line record for information of the last added split line, and changing the display parameters in the found information to invisible; the split line record includes information of each split line in the current document; wherein the information of a split line includes position information and display parameters of the split line, and the display parameters are used to indicate whether the split line is visible.

[0041] For example, when Undo is clicked, we can set the display bShow of the next item in the list to false, refresh the interface, and re-read the list information. When bShow == false, no drawing is performed, thus realizing the "retreat" function.

[0042] In an exemplary embodiment, the method further includes operation S5, when receiving an instruction to delete a split line, searching the split line record for information corresponding to the selected split line according to the position information of the selected split line, and changing the display parameters in the found information to invisible.

[0043] In an exemplary embodiment, the method further includes operation S6: when an instruction to delete all split lines is received, changing the display parameters in the information of all split lines in the split line record to be invisible or deleting the records of all split lines.

[0044] For example, during the movement of the mouse, the real-time coordinate value can be obtained, and the coordinate comparison is continuously performed in the onmouse function. After the left mouse button is clicked, the issued system event can be obtained. At this time, by comparing the coordinate value, it is determined whether the current coordinate is on the dotted line that has been drawn, and true is returned. At this time, click "Delete Splitting Line", which can trigger the bound delete slot function. After running to the slot function, the selected "split line" coordinate value is deleted from the saved list, and then the interface is refreshed. The coordinate values ​​in all lists are redrawn through the qt library drawLine function, and the effect of "deleting the split line" is achieved.

[0045] In an exemplary embodiment, the method also includes operation S7, when a preview indication is received, searching the split line information corresponding to the current page in the split line record according to the page number of the current page or the specified page, or searching the split line information of all pages of the current document in the split line record; according to the found split line information, the split line with a display parameter as visible is displayed on the preview interface.

[0046] In an exemplary embodiment, in the preview interface, you can view only the current page, or you can view multiple or all pages.

[0047] For example, when adding a split line, the coordinates of the split line will be saved in a list list, which actually contains the page number flag nFlag, whether to show or hide information bShow, and the split line coordinate values ​​contained in each page object. From the "page range" UI, we can get the information set by the user, including the set page range, so that we can compare the page number value. When the comparison is equal, we set bShow to true, otherwise set it to false. Then refresh the interface and redraw all lists. If bShow is equal to true, call drawLine to draw the "split line", so that the split effect can be previewed on the page set by the user.

[0048] In an exemplary embodiment, the method further includes operation S10, when a split line is selected, triggering the display of one or more moving bars around the split line in the corresponding direction of the current page according to a preset distance value; wherein each of the moving bars is used to indicate the position to which the selected split line can be adjusted. When the split line is horizontal, horizontal moving bars are displayed above and below the split line, and when the split line is vertical, vertical moving bars are displayed on the left and right of the split line.

[0049] For example, Figure 2 As shown, the orange parts on the four sides ( Figure 2 The four gray areas in the middle) are by default clicked and long pressed by the mouse to drag, and the effect of the mouse passing over can be dragged out to draw the corresponding horizontal and vertical dividing lines. Each time you drag, you can drag a dividing line. The four diagonal areas are gray areas, and the corresponding dividing lines cannot be dragged out. The drag operation is invalid. When the page is enlarged beyond the application window, the hot zone function that can drag out the splitting line stays on the four sides of the application window.

[0050] In an exemplary embodiment, the preset distance value may be input by the user this time, or may be a preset value.

[0051] like Figure 3As shown, the present application also provides a page splitting device, including a processor and a memory, wherein the memory stores a program for page splitting; the processor is used to read the program for page splitting and execute any one of the methods described above.

[0052] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

Claims

1. A page splitting method, characterized in that: include: When receiving an instruction to add a split line, obtaining position information of the added split line and adding it to the split line record; wherein the position information includes the page number of the current page, the coordinate value and direction of the added split line; When receiving an instruction to split, splitting is performed according to the position information of the splitting line stored in the splitting line record; Among them, the split line record includes information of each split line in the current document, and the information of a split line includes the position information and display parameters of the split line, and the display parameters are used to indicate whether the split line is visible; the method also includes: when receiving a preview instruction, searching the split line information corresponding to the current page in the split line record according to the page number of the current page or the specified page, or searching the split line information of all pages of the current document in the split line record; according to the found split line information, the split line with visible display parameters is displayed on the preview interface.

2. The page splitting method according to claim 1, characterized in that: The direction in the acquired position information of the added split line is the current default direction or the direction selected by the user; the direction includes horizontal and vertical directions; The coordinate value in the acquired position information of the added split line is the coordinate value of the current click position; Alternatively, the coordinate values ​​in the acquired position information of the added splitting line are preset coordinate values, or are coordinate values ​​calculated in a preset manner.

3. The page splitting method according to claim 1, characterized in that: The method further comprises: When a split line is selected and a drag operation is detected, the coordinate value of the selected split line after movement is determined according to the direction and distance in which the selected split line is dragged, and the position information of the selected split line is updated in the split line record.

4. The page splitting method according to claim 3, characterized in that: The step of determining the coordinate value of the selected splitting line after it is moved according to the direction and distance in which the selected splitting line is dragged includes: When the selected split line is dragged horizontally, if the distance between the longitudinal coordinate value of the position at which the split line stops and the longitudinal coordinate value of the longitudinal center line of the current page is within a predetermined range, the longitudinal coordinate value of the longitudinal center line is used as the longitudinal coordinate value of the split line after the split line moves; When the selected split line is dragged vertically, if the horizontal coordinate value position when it stops is within a predetermined range from the horizontal coordinate value of the horizontal center line of the current page, the horizontal coordinate value of the vertical center line is used as the horizontal coordinate value of the split line after movement.

5. The page splitting method according to claim 1, characterized in that: The method further comprises: When an instruction to cancel a split line is received, information of the last added split line is searched in the split line record, and display parameters in the found information are changed to be invisible.

6. The page splitting method according to claim 5, characterized in that: The method further comprises: When an instruction to delete a split line is received, information corresponding to the selected split line is searched in the split line record according to the position information of the selected split line, and display parameters in the found information are changed to be invisible.

7. The page splitting method according to claim 5, characterized in that: The method further comprises: When an instruction to delete all split lines is received, the display parameters in the information of all split lines in the split line record are changed to be invisible.

8. The page splitting method according to claim 1, characterized in that: The method further comprises: When a split line is selected, it triggers the display of one or more moving bars around the split line in the corresponding direction of the current page according to a preset distance value; wherein each of the moving bars is used to indicate the position to which the selected split line can be adjusted.

9. A page splitting device, comprising a processor and a memory, characterized in that: The memory stores a program for performing page splitting; the processor is used to read the program for performing page splitting and execute the method described in any one of claims 1-8.