Document page adjustment method and device
By determining and rendering the expected width and height of the PDF document page, the problem of being unable to adjust the PDF document page size in the existing technology is solved, and the PDF document page size can be adjusted without changing the content display mode, providing a better user experience.
Patent Information
- Application Number
- CN202010504855.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-05
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-06-05
AI Technical Summary
The existing technology cannot adjust the size of the PDF document page without changing the display mode of the content in the PDF document page.
By determining the PDF document page to be resized and the desired width and height, proportional scaling and rendering are performed to generate a target PDF document page that meets the desired width and height, including rendering and coloring the page content to expand the page width and achieve size adjustment.
Without changing the display method of the content in the PDF document page, the size of the PDF document page has been successfully adjusted, providing a better document reading experience and allowing users to customize the page size.
Smart Images

Figure CN112784526B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a document page adjustment method and device. Background Art
[0002] At present, it is often necessary to adjust PDF (Portable Document Format) document pages. For example, it is often necessary to adjust a vertical PDF document page to a horizontal PDF document page, and it is necessary to keep the display mode of the content in the document page unchanged. That is, when a forward-displayed "A" is displayed in the vertical PDF document page, the "A" displayed in the forward-displayed "A" is also displayed in the adjusted horizontal PDF document page, rather than the "A" rotated 90 degrees to the left.
[0003] The inventors found in the process of implementing the present invention that it is currently impossible to adjust the size of a PDF document page without changing the display mode of the content in the original PDF document page. Summary of the invention
[0004] The purpose of the embodiment of the present invention is to provide a document page adjustment method and device, so as to adjust the size of the PDF document page without changing the display mode of the content in the PDF document page. The specific technical solution is as follows:
[0005] In a first aspect, an embodiment of the present invention provides a document page adjustment method, which may include:
[0006] determining a Portable Document Format PDF document page to be resized;
[0007] Determine the expected width and height of the PDF document page;
[0008] According to the minimum value of the expected width and height, the PDF document page is proportionally scaled to obtain the first PDF document page that meets the minimum value;
[0009] The first PDF document page is rendered as a target PDF document page that satisfies the expected maximum values of width, height and height.
[0010] Optionally, rendering the first PDF document page as a target PDF document page that satisfies the expected maximum values of width, height and height may include:
[0011] Generate a second PDF document page that meets the expected width and height; wherein the second PDF document page is a blank page;
[0012] Render the page content of the first PDF document page to the second PDF document page.
[0013] Optionally, when the expected width of the expected width, height and medium height is greater than the expected height, rendering the first PDF document page as a target PDF document page that satisfies the maximum value of the expected width, height and medium height may include:
[0014] The left and right sides of the first PDF document page are filled with color to obtain a target PDF document page that is widened to a desired width.
[0015] Optionally, filling the left and right sides of the first PDF document page to obtain a target PDF document page widened to a desired width may include:
[0016] The left and right sides of the first PDF document page are filled with color according to the same widening size to obtain a target PDF document page widened to a desired width.
[0017] Optionally, after rendering the first PDF document page as a target PDF document page that meets the expected maximum values of width, height and height, the method may further include:
[0018] When an undo instruction for a target PDF document page is received, the target PDF document page is restored to the PDF document page to be resized.
[0019] In a second aspect, an embodiment of the present invention provides a document page adjustment device, which may include:
[0020] A first determining module, used for determining a Portable Document Format PDF document page to be resized;
[0021] The second determination module is used to determine the expected width and height corresponding to the PDF document page;
[0022] A scaling module, used for scaling the PDF document page in proportion according to the minimum value of the expected width and height, to obtain the first PDF document page that meets the minimum value;
[0023] The adjustment module is used to render the first PDF document page into a target PDF document page that meets the expected maximum values of width, height and height.
[0024] Optionally, in the embodiment of the present invention, the adjustment module may include:
[0025] A generating unit, configured to generate a second PDF document page satisfying the expected width and height; wherein the second PDF document page is a blank page;
[0026] The rendering unit is used to render the page content in the first PDF document page to the second PDF document page.
[0027] Optionally, in the embodiment of the present invention, the adjustment module may include:
[0028] The coloring unit is used to fill the left and right sides of the first PDF document page with color when the expected width of the expected width and height is greater than the expected height, so as to obtain a target PDF document page widened to the expected width.
[0029] Optionally, in the embodiment of the present invention, the coloring unit may be specifically used for:
[0030] The left and right sides of the first PDF document page are filled with color according to the same widening size to obtain a target PDF document page widened to a desired width.
[0031] Optionally, in the embodiment of the present invention, the following may also be included:
[0032] The undo module is used for, after rendering the first PDF document page as a target PDF document page satisfying the expected maximum values of width, height and height, when receiving an undo instruction for the target PDF document page, restoring the target PDF document page to the PDF document page to be resized.
[0033] In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0034] The memory is used to store computer programs; the processor is used to implement any method step described in the first aspect when executing the program stored in the memory.
[0035] In a fourth aspect, an embodiment of the present invention further provides a readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, any method step described in the first aspect is implemented.
[0036] In a fifth aspect, an embodiment of the present invention further provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute any one of the method steps described in the first aspect.
[0037] Beneficial effects of the embodiments of the present invention:
[0038] In an embodiment of the present invention, a PDF document page to be resized may be determined. Then, the expected width and height corresponding to the PDF document page may be determined. Afterwards, the PDF document page may be proportionally scaled according to the minimum value of the expected width, height and height to obtain a first PDF document page that meets the minimum value. Then, the first PDF document page may be rendered as a target PDF document page that meets the maximum value of the expected width, height and height. In this way, the size of the PDF document page may be adjusted without changing the display mode of the content in the PDF document page.
[0039] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 The present invention is a flowchart of a document page adjustment method according to an exemplary embodiment.
[0042] Figure 2 The diagram is a schematic diagram showing an entry for triggering a page size adjustment operation according to an exemplary embodiment.
[0043] Figure 3 It is a schematic diagram showing another entry for triggering a page size adjustment operation according to an exemplary embodiment.
[0044] Figure 4 The figure is a flow chart showing a method of obtaining a target PDF document page according to an exemplary embodiment.
[0045] Figure 5 The figure is a schematic diagram of the structure of a document page adjustment device according to an exemplary embodiment.
[0046] Figure 6 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] At present, it is often necessary to adjust PDF (Portable Document Format) document pages. For example, it is often necessary to adjust a vertical PDF document page to a horizontal PDF document page, and it is necessary to keep the display mode of the content in the document page unchanged. That is, when a forward-displayed "A" is displayed in the vertical PDF document page, the "A" displayed in the forward-displayed "A" is also displayed in the adjusted horizontal PDF document page, rather than the "A" rotated 90 degrees to the left.
[0049] The inventors found in the process of implementing the present invention that it is currently impossible to adjust the size of a PDF document page without changing the display mode of the content in the original PDF document page.
[0050] In order to solve the above technical problems, an embodiment of the present invention provides a document page adjustment method and device.
[0051] It is understandable that the document page adjustment method provided in the embodiment of the present invention is applied to an electronic device, and the electronic device may be installed with PDF document reading software. The electronic device includes but is not limited to a computer, a notebook, and a mobile phone.
[0052] Figure 1 is a flow chart showing a document page adjustment method according to an exemplary embodiment. Figure 1 , the method may include the following steps:
[0053] S101: Determine a PDF document page to be resized;
[0054] S102: Determine the expected width and height corresponding to the PDF document page;
[0055] S103: scaling the PDF document page in proportion according to the expected minimum value of width and height to obtain a first PDF document page that meets the minimum value;
[0056] S104: Rendering the first PDF document page into a target PDF document page that meets the expected maximum values of width, height and height.
[0057] In this way, the size of the PDF document page can be adjusted without changing the display mode of the content in the PDF document page.
[0058] The document page adjustment method provided by the embodiment of the present invention is described below with reference to specific examples.
[0059] S101: Determine a PDF document page to be resized;
[0060] It is understandable that all PDF document pages of the PDF document can be determined as the PDF document pages to be resized. In addition, a certain PDF document page (such as the 3rd page) of the PDF document can also be determined as the PDF document page to be resized, but it is certainly not limited to this.
[0061] In one implementation, the user can view the thumbnails of the PDF document and then select the thumbnail of the PDF document page to be resized. After that, the user clicks the right button of the mouse, and the electronic device can pop up a dialog box with "adjust page size" recorded. When the user clicks the "adjust page size" option, it can be determined that the PDF document page to be resized is the selected PDF document page.
[0062] In another implementation, a button for adjusting the page size may be provided in the menu bar, and after clicking the button, a page number input box may pop up. Then, after the user inputs the page number, the electronic device may determine that the page corresponding to the page number is the PDF document page to be adjusted in size.
[0063] In addition, the technician may also set an entry for triggering the page size adjustment operation at the following locations: page tab thumbnail entry, page property entry, file right-click entry, and the like.
[0064] in, Figure 2 is a schematic diagram showing an entry for triggering a page size adjustment operation according to an exemplary embodiment. Specifically, Figure 2 The entrance shown is the page tab thumbnail entrance. Figure 3 is a schematic diagram of another entry for triggering a page size adjustment operation according to an exemplary embodiment. Specifically, Figure 2 The entry shown is the page attribute entry. Figure 2 The text content in the page shown does not belong to the content that needs to be protected by the present invention.
[0065] In addition, after determining the PDF document page to be resized, before resizing the PDF document page, in order to facilitate the user to understand whether the size of the PDF document page really needs to be adjusted, the user can also preview the PDF document page so as to make a correct adjustment judgment.
[0066] S102: Determine the expected width and height corresponding to the PDF document page;
[0067] It can be understood that the expected width and height refer to the expected width and the expected height.
[0068] Among them, some commonly used expected widths and heights can be pre-set for users to choose, such as A4 size. A4 paper size is an international standard size for paper, specifically 210 mm × 297 mm. In addition, an expected width and height input box can be provided for users to enter the width and height they want to set. For example, enter 210 mm in width and 297 mm in height. In this way, users can customize the expected width and height of the PDF document page to be resized. Moreover, the expected width and height corresponding to the PDF document page to be resized can be adjusted through a simple and friendly interactive method and interface presentation.
[0069] S103: scaling the PDF document page in proportion according to the expected minimum value of width and height to obtain a first PDF document page that meets the minimum value;
[0070] It is understandable that after determining the PDF document page to be resized and its corresponding expected width and height, the user can click a pre-built size adjustment confirmation button. After the electronic device detects the click instruction for the size adjustment confirmation button, it can scale the PDF document page in proportion according to the minimum value of the expected width and height to obtain the first PDF document page.
[0071] For example, when a vertical PDF document page needs to be adjusted to a horizontal PDF document page, specifically, when a PDF document page with a width and height of 210 mm×297 mm needs to be adjusted to an expected width and height of 297 mm×210 mm, it can be determined that the minimum value of the expected width, height, and height is 210 mm. Then, the vertical PDF document page can be proportionally scaled according to the minimum value of the expected width, height, and height, so that the height of the first PDF document page obtained by scaling is 210 mm.
[0072] S104: Rendering the first PDF document page into a target PDF document page that meets the expected maximum values of width, height and height.
[0073] Continuing with the above example, after obtaining the scaled first PDF document page, the width or height of the first PDF document page can be extended and rendered based on the width or height corresponding to the expected maximum value of width, height, and center, so as to obtain a target PDF document page that meets the expected maximum value of width, height, and center, that is, to obtain a target PDF document page that meets the expected width and height.
[0074] Figure 4 FIG. 1 is a flow chart showing a method of obtaining a target PDF document page according to an exemplary embodiment. Figure 4 , Figure 4The leftmost page is the PDF document page to be resized. The original width and height of the PDF document page are 210 mm × 297 mm, and the content of the document page is recorded in the page content area of the PDF document page. When the user wants to resize the PDF document page to a document with an expected width and height of 297 mm × 210 mm, the PDF document page can be scaled down in proportion so that the height of the first PDF document page is 210 mm, that is, Figure 4 The first PDF document page on the left side of the dotted box. Then, the width of the first PDF document page can be expanded by rendering. The expansion size can be seen in Figure 4 The document page schematic diagram on the right side of the dotted box shows that white rendering is performed on the left and right sides of the first PDF document page. Thus, the first PDF document page can be rendered as Figure 4 The rightmost target PDF document page that meets the desired width.
[0075] That is, when the expected width of the expected width and height is greater than the expected height, the operation of rendering the first PDF document page as a target PDF document page that satisfies the maximum value of the expected width and height may include the following steps:
[0076] The left and right sides of the first PDF document page are filled with color to obtain a target PDF document page that is widened to a desired width.
[0077] The size of the first PDF document page can be expanded by filling the left and right sides of the first PDF document page with color, thereby obtaining a target PDF document page that meets the desired width. The color of the color filling can be consistent with the background color of the PDF document page to be resized.
[0078] Among them, the left and right sides of the first PDF document page can be filled with color according to the same widening size to obtain a target PDF document page widened to a desired width, so that the document content can be displayed in the center of the target PDF document page, so that the user can get a better document reading experience.
[0079] In addition, the operation of rendering the first PDF document page as a target PDF document page that meets the expected maximum values of width, height and height may also include the following steps:
[0080] Generate a second PDF document page that meets the expected width and height; wherein the second PDF document page is a blank page; and render the page content in the first PDF document page to the second PDF document page.
[0081] It is understandable that a blank page that meets the expected width and height can be generated first, and then the page content in the first document page can be rendered to the blank page, so as to obtain a target PDF document page that meets the expected width and height. In this way, the size of the PDF document page to be resized can be adjusted without changing the display mode of the content in the PDF document page, that is, the size of the PDF document page can be adjusted without changing the display mode of the content in the PDF document page.
[0082] Specifically, the page content in the first document page may be rendered to the center of the blank page to improve the user's experience of viewing the page content.
[0083] It is understandable that the display mode includes the display direction of the content. In addition, the content in the PDF document page includes but is not limited to text, pictures, annotations and watermarks.
[0084] In addition, after rendering the first PDF document page as a target PDF document page that meets the expected maximum values of width, height and height, the method may further include:
[0085] When an undo instruction for a target PDF document page is received, the target PDF document page is restored to the PDF document page to be resized.
[0086] It is understandable that when the user is not satisfied with the adjusted target PDF document page, the user can also perform an undo operation to restore the PDF document page to be adjusted. Moreover, when the PDF document page to be adjusted is a plurality of document pages, the adjustment operation can be undone with one key through a preset undo key, which is convenient and fast to operate.
[0087] Corresponding to the above method embodiment, an embodiment of the present invention further provides a document page adjustment device. Figure 5 is a schematic diagram of a document page adjustment device according to an exemplary embodiment. Figure 5 , the device may include:
[0088] A first determining module 501 is used to determine the PDF document page to be resized;
[0089] The second determination module 502 is used to determine the expected width and height corresponding to the PDF document page;
[0090] A scaling module 503 is used to scale the PDF document page proportionally according to the minimum value of the expected width and height to obtain a first PDF document page that meets the minimum value;
[0091] The adjustment module 504 is configured to render the first PDF document page into a target PDF document page that meets the expected maximum values of width, height and height.
[0092] By using the device provided by the embodiment of the present invention, the PDF document page to be resized can be determined. Then, the expected width and height corresponding to the PDF document page can be determined. After that, the PDF document page can be proportionally scaled according to the minimum value of the expected width, height and height to obtain a first PDF document page that meets the minimum value. Then, the first PDF document page can be rendered as a target PDF document page that meets the maximum value of the expected width, height and height. In this way, the size of the PDF document page can be adjusted without changing the display mode of the content in the PDF document page.
[0093] Optionally, in the embodiment of the present invention, the adjustment module 504 may include:
[0094] A generating unit, configured to generate a second PDF document page satisfying the expected width and height; wherein the second PDF document page is a blank page;
[0095] The rendering unit is used to render the page content in the first PDF document page to the second PDF document page.
[0096] Optionally, in the embodiment of the present invention, the adjustment module 504 may include:
[0097] The coloring unit is used to fill the left and right sides of the first PDF document page with color when the expected width of the expected width and height is greater than the expected height, so as to obtain a target PDF document page widened to the expected width.
[0098] Optionally, in the embodiment of the present invention, the coloring unit may be specifically used for:
[0099] The left and right sides of the first PDF document page are filled with color according to the same widening size to obtain a target PDF document page widened to a desired width.
[0100] Optionally, in the embodiment of the present invention, the following may also be included:
[0101] The undo module is used for, after rendering the first PDF document page as a target PDF document page satisfying the expected maximum values of width, height and height, when receiving an undo instruction for the target PDF document page, restoring the target PDF document page to the PDF document page to be resized.
[0102] Corresponding to the above method embodiment, the embodiment of the present invention further provides an electronic device, such as Figure 6 As shown, it includes a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604.
[0103] Memory 603, used for storing computer programs;
[0104] The processor 601 is used to implement any of the above document page adjustment method steps when executing the program stored in the memory 603.
[0105] Corresponding to the above method embodiment, the present application embodiment further provides a readable storage medium, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute any of the above document page adjustment method steps. Wherein, the readable storage medium is a computer-readable storage medium.
[0106] Corresponding to the above method embodiments, the embodiments of the present application further provide a computer program product, which, when executed on an electronic device, enables the electronic device to execute: the method steps of any of the above document page adjustment methods.
[0107] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0108] The communication interface is used for communication between the above electronic device and other devices.
[0109] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0110] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0111] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can 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 process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0112] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0113] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, electronic device, readable storage medium and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0114] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A document page adjustment method, characterized in that: include: determining a Portable Document Format PDF document page to be resized; Determine the expected width and height corresponding to the PDF document page; According to the minimum value of the expected width and height, the PDF document page is proportionally scaled to obtain a first PDF document page that meets the minimum value; Rendering the first PDF document page as a target PDF document page that meets the expected maximum values of width, height and height; Wherein, when the minimum value is the expected height, obtaining the first PDF document page that meets the minimum value is: obtaining the first PDF document page whose height is the minimum value; rendering the target PDF document page that meets the expected maximum values of width, height and height is: rendering to obtain the target PDF document page whose width is the maximum value; When the minimum value is the expected width, obtaining the first PDF document page that meets the minimum value is: obtaining the first PDF document page whose width is the minimum value; rendering the target PDF document page that meets the expected maximum value of width, height and height is: rendering the target PDF document page whose height is the maximum value.
2. The method according to claim 1, characterized in that The rendering of the first PDF document page into a target PDF document page that meets the expected maximum values of width, height and height includes: Generate a second PDF document page that meets the expected width and height; wherein the second PDF document page is a blank page; Rendering the page content in the first PDF document page to the second PDF document page.
3. The method according to claim 1, characterized in that When the expected width of the expected width and height is greater than the expected height, rendering the first PDF document page as a target PDF document page that satisfies the maximum value of the expected width and height includes: The left and right sides of the first PDF document page are filled with color to obtain a target PDF document page that is widened to the expected width.
4. The method according to claim 3, characterized in that The step of filling the left and right sides of the first PDF document page to obtain a target PDF document page widened to the expected width includes: The left and right sides of the first PDF document page are filled with color according to the same widening size to obtain a target PDF document page widened to the expected width.
5. The method according to any one of claims 1 to 4, characterized in that After rendering the first PDF document page as a target PDF document page that meets the expected maximum width, height and width, the method further includes: When an undo instruction for the target PDF document page is received, the target PDF document page is restored to the PDF document page to be resized.
6. A document page adjustment device, characterized in that: include: A first determining module, used for determining a Portable Document Format PDF document page to be resized; A second determination module is used to determine the expected width and height corresponding to the PDF document page; A scaling module, used for scaling the PDF document page in proportion according to the minimum value of the expected width and height, to obtain a first PDF document page that meets the minimum value; An adjustment module, configured to render the first PDF document page into a target PDF document page that meets the expected maximum values of width, height and height; Wherein, when the minimum value is the expected height, the scaling module is specifically used to: obtain a first PDF document page whose height is the minimum value; the adjustment module is specifically used to: render and obtain a target PDF document page whose width is the maximum value; When the minimum value is the expected width, the scaling module is specifically used to obtain a first PDF document page whose width is the minimum value; and the adjustment module is specifically used to render a target PDF document page whose height is the maximum value.
7. The device according to claim 6, characterized in that The adjustment module comprises: A generating unit, configured to generate a second PDF document page that meets the expected width and height; wherein the second PDF document page is a blank page; The rendering unit is used to render the page content in the first PDF document page to the second PDF document page.
8. The device according to claim 6, characterized in that The adjustment module comprises: The coloring unit is used to fill the left and right sides of the first PDF document page with color when the expected width of the expected width and height is greater than the expected height, so as to obtain a target PDF document page widened to the expected width.
9. The device according to claim 8, characterized in that The coloring unit is specifically used for: The left and right sides of the first PDF document page are filled with color according to the same widening size to obtain a target PDF document page widened to the expected width.
10. The device according to any one of claims 6 to 9, characterized in that: Also includes: The undo module is configured to, after rendering the first PDF document page as a target PDF document page satisfying the expected maximum values of width, height and height, restore the target PDF document page to the PDF document page to be resized when receiving an undo instruction for the target PDF document page.
