Printing control method and equipment
By detecting the page coverage of printed documents and merging pages when necessary, the problem of paper waste caused by insufficient content on the last page is solved, achieving environmentally friendly printing and user-friendly print control.
Patent Information
- Application Number
- CN202411328549.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2026-03-24
AI Technical Summary
In printing scenarios, users encounter the problem of paper waste due to insufficient content on the last page, and existing technologies lack effective solutions.
By detecting the content coverage of each page of the document to be printed, and automatically merging the last page with the previous page when the coverage is below a threshold, a target page is generated for printing, avoiding the use of a separate sheet of paper.
It enables automatic page merging when there is too little content, reducing paper waste, optimizing the printing process, and improving the user experience.
Smart Images

Figure CN121722336A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image forming technology, and more specifically to a printing control method and apparatus. Background Technology
[0002] In printing scenarios, users often encounter situations where the last page has too little content. Printing in this case results in paper waste due to the insufficient content on the last page. Therefore, in most cases, users do not want this to happen, and currently there is a lack of solutions to deal with this situation. Summary of the Invention
[0003] In view of this, this application provides a printing control method and device to solve the problem of paper waste caused by the need to use a whole sheet of paper when printing a document because the last page has too little content.
[0004] In a first aspect, embodiments of this application provide a printing control method applied to a terminal device. The method includes: in response to a print trigger operation, obtaining the content coverage of each page contained in an initial file; determining that the content coverage of a first page among the pages is less than a coverage threshold, and concatenating the first page and a second page to obtain a target page, wherein the first page is any one of the pages, the second page is the page preceding the first page, and the target page contains the page content of the first page and the second page; replacing the first page and the second page with the target page to obtain a target file; and sending the target file to an image forming apparatus for printing.
[0005] In one possible implementation, obtaining the content coverage of each page contained in the initial file includes: detecting the size of the page content of each page contained in the initial file; determining the content coverage of each page based on the ratio of the size of the page content to the effective size of each page; wherein the size includes height, the effective size includes effective height, and the effective height is the height of the area of the page excluding the margins; and / or, the size includes width, the effective size includes effective width, and the effective width is the width of the area of the page excluding the margins.
[0006] In one possible implementation, obtaining a target page by splicing the first page and the second page includes: splicing the page content of the first page with the page content of the second page to obtain the target page content; splicing the target page content with the margins of the second page to obtain a spliced page; and scaling the spliced page to obtain the target page.
[0007] In one possible implementation, scaling the spliced page to obtain a target page includes: determining a scaling ratio based on the ratio of the effective size of the second page to the effective size of the spliced page; scaling the spliced page according to the scaling ratio to obtain the target page; wherein the effective size includes an effective height, which is the height of the area of the page excluding margins; and / or, the effective size includes an effective width, which is the width of the area of the page excluding margins.
[0008] In one possible implementation, the method further includes: in response to a print setting trigger operation, displaying a setting interface for a target function, the setting interface for the target function including a switch control button for controlling the on / off state of the target function.
[0009] In one possible implementation, before obtaining the content coverage of each page contained in the initial file, the method further includes: determining that the target function is enabled.
[0010] In one possible implementation, the settings interface for the target function also includes a setting area for a coverage threshold; the method further includes: determining the coverage threshold based on the setting operation in the setting area.
[0011] In one possible implementation, the settings interface of the target function also includes a preview button; the method further includes: in response to a triggering operation of the preview button, displaying a preview interface, the preview interface including a preview image of the target file.
[0012] In a second aspect, embodiments of this application provide an electronic device, including a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the device is triggered to execute the method described in any of the first aspects above.
[0013] Thirdly, embodiments of this application provide a computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to perform the method described in any of the first aspects.
[0014] The printing control method and device provided in this application have at least the following technical effects: they can automatically detect the amount of content on the last page of a document and automatically merge the last page with the previous page when the amount of content on the last page is small, thereby optimizing the printing process and reducing unnecessary paper waste. Attached Figure Description
[0015] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 A schematic flowchart of a printing control method provided in an embodiment of this application;
[0017] Figure 2 A schematic diagram of a scenario for the printing control method provided in an embodiment of this application;
[0018] Figure 3 A schematic diagram of another scenario for the printing control method provided in the embodiments of this application;
[0019] Figure 4 A schematic diagram of another scenario for the printing control method provided in the embodiments of this application;
[0020] Figure 5 A schematic diagram of another scenario for the printing control method provided in the embodiments of this application;
[0021] Figure 6 Another schematic flowchart of the printing control method provided in the embodiments of this application;
[0022] Figure 7 An interface diagram of the printing control method provided in the embodiments of this application;
[0023] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0024] Figure 9 This is a schematic diagram of the structure of another electronic device provided in an embodiment of this application. Detailed Implementation
[0025] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0026] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0027] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0028] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0029] Image forming equipment (devices): including but not limited to printers, copiers, fax machines, scanners, and multifunction printers that integrate printing, copying, faxing, and scanning functions into one unit, whose function is to print images or text on imaging media.
[0030] When using any of the above-mentioned image forming devices for printing, users often encounter situations where the last page of a document has too little content. In such cases, printing the document directly would result in paper waste due to the insufficient content on the last page, which is often contrary to the user's wishes. However, users do not have a usable solution to this problem.
[0031] This application is submitted in response to the above-mentioned issues.
[0032] In this embodiment, during a printing scenario, when a user triggers a print operation, the terminal device can automatically detect the content coverage of each page in the document to be printed. If the content coverage of any page is determined to be lower than a set coverage threshold, the terminal device can merge the content of that page with the content of the previous page to obtain a target page. The target page may then include the content of that page and the previous page. Furthermore, the terminal device can replace the previous page with the target page to obtain the target document. Finally, the terminal device can send the target document to an image forming device for printing processing.
[0033] Through the above technical solution, the terminal device can automatically merge the content of any page in the document to be printed with the content of the previous page when the content of any page is too short. This avoids the situation where each page in the document to be printed occupies a sheet of paper when the content is too short, thereby reducing paper waste and achieving environmentally friendly printing.
[0034] The following embodiments provide a detailed description of the printing control method provided in this application. This printing control method can be applied to a terminal device, which can be connected to an image forming apparatus. Upon receiving a user's print trigger operation, the terminal device can send the document to be printed to the image forming apparatus for printing. The terminal device can be, for example, a computer, mobile phone, tablet computer, etc., and this application does not limit this.
[0035] See Figure 1 This is a flowchart illustrating a printing control method provided in an embodiment of this application. Figure 1 As shown, the method includes:
[0036] S101. In response to the print trigger operation, the terminal device obtains the content coverage of each page contained in the initial document.
[0037] In this embodiment, when a user needs to print a document, a print trigger operation can be performed on the terminal device. The print trigger operation can be a user-triggered operation on the print button. In response to receiving the print trigger operation, the terminal device can obtain the content coverage of each page in the document to be printed. For ease of description, the document to be printed is referred to as the "initial document." The content coverage can be the proportion of the displayed content on the page to the maximum display content that the page can contain.
[0038] The following explanation uses any page in the initial file as an example to illustrate the method for determining content coverage. For ease of explanation, any page will be referred to as the "first page".
[0039] In one feasible implementation, the terminal device can detect the height h1 of the page content in the first page of the initial file. For example, as shown... Figure 2 As shown, firstly, the terminal device can detect the height h of the last line of the page content from the top of the page. 11 Therefore, according to the formula h1 = h 11 -m1 is used to calculate the height h1 of the page content in the first page. Here, m1 represents the top and bottom margins of the first page. Then, the terminal device can calculate the height h1 of the page content in the first page based on the effective height h of the first page. 01 The ratio is used to determine the content coverage of the first page. For example, Figure 2 As shown, the effective height h of the first page 01 This refers to the height of the area on the page excluding the top and bottom margins. Effective height h 01 According to formula h 01 =h-2×m1 is calculated. Where h is the total page height.
[0040] Alternatively, in another implementation, the width of the page content in the first page can be detected, and the content coverage of the first page can be determined based on the ratio of the content width to the effective width. The effective width of the first page refers to the width of the area on the page excluding the left and right margins.
[0041] Alternatively, in another implementation, the content coverage of the first page can be determined by simultaneously using the ratio of the height of the page content to the effective height of the first page, and the ratio of the width of the page content to the effective width of the first page. This application does not impose any limitations on this approach.
[0042] S102. The terminal device determines whether there are pages with content coverage less than the coverage threshold. If yes, proceed to step S103; otherwise, proceed to step S106.
[0043] After obtaining the content coverage of each page, the terminal device can determine whether there are any pages with a content coverage rate lower than a set coverage threshold. In this embodiment, the coverage threshold can be flexibly set by the user on the terminal device based on their own needs, or the coverage threshold can be a default setting. If the coverage threshold is a default setting, it can be, for example, 10%. If a page with a content coverage rate lower than the set coverage threshold is found, it indicates that the content of that page is too low. In this case, step S103 can be executed to merge the content of that page with the content of the previous page. For ease of description, any page with a content coverage rate lower than the set coverage threshold will be referred to as the "first page," and the page preceding the first page will be referred to as the "second page." Conversely, if no page with a content coverage rate lower than the set coverage threshold exists, it indicates that none of the pages have insufficient content. In this case, step S106 can be executed to print the initial file normally.
[0044] S103. The terminal device uses the first page and the second page to obtain the target page.
[0045] First, the terminal device can crop the areas containing the content displayed on the first page and the second page, respectively. Specifically, for example... Figure 3 As shown, for the first page, the area cropped by the terminal device can be the area Band1 corresponding to the height h1 of the page content; for the second page, the area cropped by the terminal device can be the area Band2 corresponding to the height h2 of the page content. The value of h2 can be determined using the formula h2 = h... 22 -m2 is calculated, where h 22m2 is the height of the last line of the content on the second page from the top of the page, which can be detected by the terminal device. m2 represents the top and bottom margins of the second page. In this embodiment, the above-mentioned cropping operation can be performed based on a preset minimum cropping unit. The minimum cropping unit can be preset, such as... Figure 4 As shown, the smallest cropping unit can be a pixel bar with a height of N pixels, and the value of N can be flexibly set according to the requirements of cropping accuracy.
[0046] Then, as Figure 5 As shown, the terminal device can stitch the cropped area Band1 obtained from the first page to the cropped area Band2 obtained from the second page to obtain the target page content. Then, the terminal device can stitch the areas corresponding to the top and bottom margins m2 of the second page before and after the obtained target page content to obtain a stitched page. Finally, the terminal device can scale the obtained stitched page to obtain the target page, thus making the target page the same size as the pages contained in the initial file.
[0047] Specifically, the terminal device can first determine the scaling ratio based on the ratio of the effective height of the second page to the effective height of the spliced page. The effective height refers to the height of the area on the page excluding margins. For the second page, its effective height can be calculated using the formula h. 02 =h-2×m2. The effective height of a spliced page can be calculated using the formula h. 03 The scaling factor is calculated as h1 + h2. Therefore, the scaling ratio can be determined using the formula s = h... 02 -h 03 The calculation is complete. Then, the terminal device can scale the spliced pages according to the obtained scaling ratio s to obtain the target page. The target page can simultaneously contain the content of both the first and second pages, and the page size of the target page is consistent with the page size of each page in the initial file.
[0048] Alternatively, in another implementation, the terminal device may determine the scaling ratio based on the ratio of the effective width of the second page to the effective width of the spliced page. The effective width refers to the width of the area on the page excluding margins. Alternatively, in another implementation, the terminal device may jointly determine the scaling ratio based on the ratio of the effective width of the second page to the effective width of the spliced page, and the ratio of the effective height of the second page to the effective height of the spliced page. This application does not impose limitations on this aspect.
[0049] S104. The terminal device replaces the first page and the second page with the target page to obtain the target file.
[0050] S105. The terminal device sends the target file to the image forming apparatus for printing.
[0051] Furthermore, the terminal device can replace the first and second pages of the initial file with the spliced target pages to obtain the target file. Then, the terminal device can send the target file to the image forming apparatus for printing.
[0052] S106. The terminal device sends the initial file to the image forming apparatus for printing.
[0053] The method provided in this application embodiment allows the terminal device to automatically detect whether there is insufficient content on each page of the document to be printed. If any page has insufficient content, it can automatically perform operations such as splicing, scaling, and replacing the content of the previous page, thus avoiding the need to use a whole sheet of paper for printing even when each page has insufficient content, thereby saving printing paper and effectively avoiding the problem of paper waste.
[0054] In another embodiment of this application, before performing the printing operation, a preview function for the target file can be provided in the terminal device, so that the user can check whether the scaled text meets their needs before the actual printing.
[0055] The following embodiments provide a detailed explanation of how the preview function is implemented.
[0056] See Figure 6 This is another schematic diagram of a printing control method provided in an embodiment of this application. Figure 6 As shown, the method includes:
[0057] S201. In response to the print settings trigger operation, the terminal device displays the settings interface for the target function, which includes a preview button.
[0058] S202. In response to the triggering operation of the preview button in the settings interface, the terminal device displays a preview interface, which includes a preview image of the target file.
[0059] In this embodiment, the user can configure print settings before initiating a print trigger operation. Specifically, the print settings trigger operation can be used to display the settings interface of the target function on the terminal device. The target function refers to the function provided in this embodiment that automatically merges pages based on content coverage detection results.
[0060] like Figure 7As shown, the target function's settings interface may include a target function on / off control button 61. The terminal device can control the on / off state of the target function based on the user's trigger operation of the on / off control button 61. Alternatively, in another implementation, during the execution of step S101 above, the terminal device, in response to a print trigger operation, can first determine whether the target function is enabled. If the target function is enabled, the terminal device can obtain the content coverage of each page in the initial file and execute subsequent method flows. If the target function is not enabled, the terminal device can directly send the initial file to the image forming apparatus for printing.
[0061] This technical solution allows users to flexibly control the on / off state of the target function. Since the printing control method provided in this application requires scaling and other processing of the merged page, it will affect page formatting such as font size and line spacing to some extent. Therefore, based on the above technical solution, in scenarios with high requirements for the format of the printed document, the user can turn off the target function, while in scenarios with lower requirements for the format of the printed document, the user can control the target function to be turned on. In this way, the method provided in this application embodiment can be consistent with user needs, improving the user experience.
[0062] Furthermore, such as Figure 7 As shown, the target function's settings interface may also include a preview button 62. When the target function is enabled, in response to the user's triggering of the preview button 62, the terminal device can execute the above-described steps S102 to S104 to obtain the processed target file. Then, the terminal device can display a preview interface and show a preview image of the target file. Through this technical solution, the user can check the processed target file before officially triggering the printing operation to determine if the target file meets the user's expectations. In this way, if the target file does not meet expectations, the user can promptly make further adjustments or confirmations to the target file, avoiding blind printing and paper waste, providing the user with more control and flexibility, and making the printing process more user-friendly and intuitive.
[0063] Furthermore, such as Figure 7As shown, the target function's settings interface may also include a coverage threshold setting area 63, which allows users to manually set the coverage threshold. Therefore, if the user's acceptable scaling is low, a lower coverage threshold can be set. If the user's acceptable scaling is high, a higher coverage threshold can be set. This personalized setting method meets the printing needs of different users, making the printing process more flexible and controllable. Simultaneously, the target function's settings interface may also include an automatic setting option 64. When the user selects the automatic setting option 64, the terminal device can set the coverage threshold to a default value, such as 10%, eliminating the need for manual setting by the user.
[0064] Furthermore, such as Figure 7 As shown, the target function's settings interface may also include a print range setting option 65. The terminal device can respond to the user's setting operation of the print range setting option 65, determine the current page range to be printed, and detect each page included in the page range to be printed. In this embodiment, when the printing control method provided in this embodiment is applied, the number of pages printed by the user is at least two pages.
[0065] See Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 8 As shown, the electronic device includes: a detection module 71, a judgment module 72, an execution module 73, and a sending module 74.
[0066] The detection module 71 is used to obtain the content coverage of each page in the initial file in response to a print trigger operation. The judgment module 72 is used to determine whether the content coverage of each page is less than a coverage threshold. If the content coverage of the first page is less than the coverage threshold, the execution module 73 is used to obtain a target page by concatenating the first page and the second page, where the first page is any page among the pages, the second page is the page preceding the first page, and the target page contains the page content of the first page and the second page. The first page and the second page are replaced with the target page to obtain the target file. The sending module 74 is used to send the target file to the image forming apparatus for printing.
[0067] As one possible implementation, the detection module 71 is specifically used to detect the size of the page content of each page contained in the initial file; determine the content coverage of each page based on the ratio of the size of the page content to the effective size of each page; wherein, the size includes height, the effective size includes effective height, and the effective height is the height of the area in the page excluding the page margins; and / or, the size includes width, the effective size includes effective width, and the effective width is the width of the area in the page excluding the page margins.
[0068] As one possible implementation, the execution module 73 is specifically used to: concatenate the page content of the first page with the page content of the second page to obtain the target page content; concatenate the target page content with the margins of the second page to obtain the concatenated page; and scale the concatenated page to obtain the target page.
[0069] As one possible implementation, the execution module 73 is specifically used to: determine the scaling ratio based on the ratio of the effective size of the second page to the effective size of the spliced page; scale the spliced page according to the scaling ratio to obtain the target page; wherein the effective size includes the effective height, which is the height of the area of the page excluding the margins; and / or, the effective size includes the effective width, which is the width of the area of the page excluding the margins.
[0070] As one possible implementation, the execution module 73 is also used to display the setting interface of the target function in response to the print setting trigger operation. The setting interface of the target function includes a switch control button for the target function, which is used to control the on / off state of the target function.
[0071] As one possible implementation, before obtaining the content coverage of the last page in the initial file to be printed, the determination module 72 is also used to determine whether the target function is enabled.
[0072] As one possible implementation, the target function's settings interface also includes a coverage threshold setting area; the execution module 73 is further configured to determine the coverage threshold based on the setting operation in the settings area.
[0073] As one possible implementation, the settings interface of the target function also includes a preview button; the execution module 73 is further configured to display a preview interface, which includes a preview image of the target file, in response to the triggering operation of the preview button.
[0074] The technical solution provided by the embodiments of this application can automatically detect the amount of content on the last page of a document, and automatically merge the last page with the previous page when the amount of content on the last page is small, thereby optimizing the printing process and reducing unnecessary paper waste.
[0075] Corresponding to the above embodiments, this application also provides an electronic device. Figure 9This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 400 may include a processor 401, a memory 402, and a communication unit 403. These components communicate through one or more buses. Those skilled in the art will understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiment of this application. It may be a bus-shaped structure or a star-shaped structure, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0076] The communication unit 403 is used to establish a communication channel, enabling the electronic device to communicate with other devices. It can receive user data sent by other devices or send user data to other devices.
[0077] The processor 401 serves as the control center of the electronic device, connecting various parts of the device via various interfaces and lines. It executes software programs, instructions, and / or modules stored in the memory 402, and calls data stored in the memory to perform various functions and / or process data. The processor may be composed of integrated circuits (ICs), such as a single packaged IC or multiple packaged ICs with the same or different functions connected together. For example, the processor 401 may consist only of a central processing unit (CPU). In this embodiment, the CPU may have a single processing core or include multiple processing cores.
[0078] The memory 402 is used to store the execution instructions of the processor 401. The memory 402 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0079] When the execution instructions in memory 402 are executed by processor 401, the electronic device 400 is able to perform some or all of the steps in the various embodiments of this application.
[0080] In a specific implementation, this application also provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, it may include some or all of the steps of the various embodiments of the printing control method provided in this application. The storage medium may be a disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0081] In a specific implementation, this application also provides a computer program product, wherein the computer program product includes executable instructions, which, when executed on a computer, cause the computer to perform some or all of the steps in various embodiments of the printing control method provided in this application.
[0082] Those skilled in the art will clearly understand that the techniques in the embodiments of this application can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of this application, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application or some parts of the embodiments.
[0083] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0084] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0085] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0086] Depending on the context, the word "if" as used here can be interpreted as "when," "when," "in response to determination," or "in response to detection." Similarly, depending on the context, the phrase "if determination" or "if detection (of the stated condition or event)" can be interpreted as "when determination," "in response to determination," "when detection (of the stated condition or event)," or "in response to detection (of the stated condition or event)."
[0087] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0088] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in a combination of hardware and software functional units.
[0089] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
[0090] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, the device embodiments and terminal embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.
Claims
1. A printing control method, characterized in that, Applied to a terminal device, the method includes: In response to a print trigger operation, obtain the content coverage of each page contained in the initial file; If the content coverage of the first page is determined to be less than the coverage threshold, the target page is obtained by splicing the first page and the second page. The first page is any one of the pages, the second page is the page preceding the first page, and the target page contains the page content of the first page and the second page. The target file is obtained by replacing the first page and the second page with the target page; The target file is sent to the image forming apparatus for printing.
2. The method according to claim 1, characterized in that, Obtain the content coverage of each page contained in the initial file, including: Detect the size of the page content of each page contained in the initial file; The content coverage of each page is determined based on the ratio of the page content size to the effective size of each page. Wherein, the size includes height, the effective size includes effective height, and the effective height is the height of the area on the page excluding the margins; and / or, the size includes width, the effective size includes effective width, and the effective width is the width of the area on the page excluding the margins.
3. The method according to claim 1, characterized in that, The target page is obtained by combining the first page and the second page, including: The content of the first page is concatenated with the content of the second page to obtain the content of the target page; The content of the target page is combined with the margins of the second page to obtain a combined page; The spliced page is scaled to obtain the target page.
4. The method according to claim 3, characterized in that, The spliced page is scaled to obtain the target page, including: The scaling ratio is determined based on the ratio of the effective size of the second page to the effective size of the spliced page; The spliced page is scaled according to the stated scaling ratio to obtain the target page; Wherein, the effective size includes an effective height, which is the height of the area on the page excluding the margins; and / or, the effective size includes an effective width, which is the width of the area on the page excluding the margins.
5. The method according to claim 1, characterized in that, The method further includes: In response to a print settings trigger operation, a settings interface for the target function is displayed. The settings interface for the target function includes a switch control button for the target function, which is used to control the on / off state of the target function.
6. The method according to claim 5, characterized in that, Before obtaining the content coverage of each page contained in the initial file, the method further includes: It is confirmed that the target function is enabled.
7. The method according to claim 5, characterized in that, The target function's settings interface also includes a setting area for the coverage threshold; the method further includes: The coverage threshold is determined based on the settings operation in the settings area.
8. The method according to claim 5, characterized in that, The settings interface for the target function also includes a preview button; the method further includes: In response to the triggering of the preview button, a preview interface is displayed, which includes a preview image of the target file.
9. An electronic device, characterized in that, include: A memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the device performs the method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform the method according to any one of claims 1 to 8.