Information processing device, control method for information processing device, program, and storage medium
The program addresses misalignment issues on media with flaps by rotating margin information and adjusting print data, ensuring accurate printing by aligning with flap orientation requirements.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2026-03-12
AI Technical Summary
Existing print technologies fail to accurately align print content on media with flaps, leading to unintended misalignment and misprinted results due to differences in margins and orientation requirements.
A program that rotates margin information by 180 degrees and adjusts print data accordingly to ensure proper alignment on media with flaps, using a notification mechanism to inform the application of margin adjustments and rotate the image data on a preview screen.
Prevents unintended misalignment and ensures accurate printing on media with flaps by adjusting margins and orientation, resulting in desired print results.
Smart Images

Figure 2026044164000001_ABST
Abstract
Description
[Technical Field]
[0001] The present disclosure relates to an information processing device, a control method for an information processing device, a program, and a storage medium. [Background technology]
[0002] When printing on media with flaps, such as envelopes, some printers require the edge with the flap not to be facing the paper feed slot to prevent jams inside the printer. Media with flaps can only be loaded in a limited direction, so the loading direction may differ from other media.
[0003] When printing on media with flaps, the user may want to position the flaps in a desired direction. For example, when printing on a long envelope in landscape orientation, the user may want the flaps to be positioned on the left or the right.
[0004] As mentioned above, print data generation software exists that has means for rotating print content to accommodate the orientation of media with flaps, or to orient the flaps in a desired direction.
[0005] On the other hand, when printing with a printer, margins (blank areas on the edges of the media that are not printed) may be necessary. For example, if the top and bottom margins of the media are different lengths, or if the right and left margins are different lengths, rotating the print content using the printer driver may result in the print content being misaligned or missing from the original, which is not what the user intended.
[0006] Patent Document 1 discloses an image forming system having a print setting unit that sets print settings for the orientation of a document to be printed on a print medium, and a preview rotation unit that rotates a preview of the document independently of the print settings. The method described in Patent Document 1 makes it possible to prevent a document from being printed in an unintended orientation. [Prior art documents] [Patent documents]
[0007] [Patent Document 1] Japanese Patent Application Laid-Open No. 2013-114520 Summary of the Invention [Problem to be solved by the invention]
[0008] There is a need for further techniques to prevent print results that are not what the user intended.
[0009] Therefore, an object of the present disclosure is to prevent print results from being produced that are not what the user intended. [Means for solving the problem]
[0010] A program according to one embodiment of the present disclosure is a program that runs on an information processing device and is used to perform printing using manuscript data generated by an application, and causes the information processing device to function as: a notification means that notifies the application of margin information obtained by rotating the margins assigned to the manuscript data by 180 degrees based on a first condition; an acquisition means that acquires first image data to which the margin information has been applied to the manuscript data generated by the application; a display control means that rotates the first image data by 180 degrees based on the first condition and displays it on a preview screen as second image data; and a rotation control means that rotates the printable area of the displayed second image data by 180 degrees on the preview screen based on a second condition. [Effects of the Invention]
[0011] According to the present disclosure, it is possible to prevent print results from being produced that are not intended by the user. [Brief explanation of the drawings]
[0012] [Figure 1] FIG. 2 is a block diagram illustrating an example of a hardware configuration of a printing system. [Figure 2] FIG. 2 illustrates an example of a software configuration. [Figure 3] FIG. 10 is a diagram illustrating an example of a data flow when printing is executed. [Figure 4] FIG. 10 is a diagram showing a portion of GDIINFO. [Figure 5] FIG. 1 is a diagram schematically illustrating the contents of drawing at each step of a data flow. [Figure 6] FIG. 10 illustrates an example of a print setting screen. [Figure 7] 10 is a flowchart showing an example of a 180-degree rotation flag setting process. [Figure 8] 10 is a flowchart illustrating an example of a GDIINFO setting process. [Figure 9] FIG. 1 is a diagram schematically illustrating the contents of drawing at each step of a data flow. [Figure 10] FIG. 10 is a reference diagram showing a schematic representation of the contents of drawing at each step of the data flow. [Figure 11] FIG. 10 is a diagram illustrating an example of the configuration of a print preview screen. [Figure 12] 10 is a flowchart illustrating an example of a print preview process. [Figure 13] 10 is a flowchart illustrating an example of a preview image display process. [Figure 14] 10 is a flowchart illustrating an example of a preview image generation process. [Figure 15] 10 is a flowchart illustrating an example of a print image generation process. [Figure 16] 10 is a flowchart illustrating an example of a print data generation process. [Figure 17] FIG. 1 is a diagram schematically illustrating the contents of drawing at each step of a data flow. [Figure 18] FIG. 1 is a diagram schematically illustrating the contents of drawing at each step of a data flow. [Figure 19] FIG. 10 is a reference diagram showing a schematic representation of the contents of drawing at each step of the data flow. [Figure 20] FIG. 10 is a diagram illustrating an example of the configuration of a print preview screen. [Figure 21] 10 is a flowchart illustrating an example of a print preview process. DETAILED DESCRIPTION OF THE INVENTION
[0013] Preferred embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. Note that the following embodiments do not limit the scope of the present disclosure according to the claims, and not all of the combinations of features described in the embodiments are necessarily essential to the solutions of the present disclosure.
[0014] <Embodiment 1> 1 is a block diagram showing an example of the hardware configuration of a printing system. In this diagram, a host computer 101 is an example of an information processing device, and has an input interface 110, a CPU 111, a ROM 112, a RAM 113, an external storage device 114, an output interface 115, and an input / output interface 116. Input devices such as a keyboard 118 or a pointing device 117 are connected to the input interface 110, and a display device such as a display unit 119 is connected to the output interface 115.
[0015] An initialization program is stored in the ROM 112. Application programs, an OS (operating system), and various other data are stored in the external storage device 114. The RAM 113 is used as a work memory when the various programs stored in the external storage device 114 are executed.
[0016] In this embodiment, the CPU 111 executes processing according to the procedures of a program stored in the ROM 112, thereby realizing functions and processing according to flowcharts described below in the host computer 101. The printing device 102, which is a device, is connected to the host computer 101 via an input / output interface 116. Here, the host computer 101 and the printing device 102 are configured separately, but they may also be configured as a single information processing device.
[0017] FIG. 2 is a diagram showing an example of the software configuration of the host computer 101 in this embodiment. The host computer 101 is configured with the following components or software: An OS 201 performs basic control of the host computer 101. In this embodiment, the OS 201 uses Windows (registered trademark). The OS 201 includes a GDI (Graphics Device Interface) 202 and a spooler 203. The GDI 202 provides an API (Application Programming Interface) for performing drawing processing. The spooler 203 is a component that performs processing to generate an EMF spool file 301, which will be described later, and in this embodiment, a Windows (registered trademark) spooler is used.
[0018] The application 204 is software that sets print settings for documents or images, etc., and issues print instructions in response to user instructions. The print processor 205 is a component that transmits drawing commands stored in an EMF spool file 301 to a GD (Graphics Driver) module 208 (described later) via a GDI 202. The print processor 205 also has a function for activating a preview module 209 (described later).
[0019] The printer driver 206 includes a UI (User Interface) module 207, a GD module 208, a preview module 209, and a print data generation module 210. The UI module 207 provides an interface for the user to input print settings, and is also responsible for transmitting the print settings to other modules in the printer driver 206. The GD module 208 is a module responsible for rendering (drawing) processing for printing, or for generating print data 304 (described later). The preview module 209 is responsible for receiving the preview image generated by the GD module and controlling its display.
[0020] 3 shows an example of a data flow when printing is executed from the application 204. The GDI 202 notifies the application 204 of drawing capability information in response to a request from the application 204. The application 204 makes the request, for example, when print settings are made on a print setting screen. The drawing capability information is information whose values are set by the GD module 208 and stored (set) in a structure called GDIINFO. The GDI 202 notifies the application 204 of the drawing capability information based on the values set in GDIINFO.
[0021] When the application 204 receives a print instruction from the user through an operation on a print setting screen provided by the UI module 207, it passes the print settings and drawing data to the GDI 202. The UI module 207 also records the setting values of the print setting items in the external storage device 114 or the RAM 113. The drawing data is passed to the GDI 202 with coordinates or size based on the drawing capability information applied. That is, the application 204 generates drawing data (first image data) to which coordinates or size based on margin information, which is part of the drawing capability information, are applied, and passes the data to the GDI 202. Details of the margin information will be described later.
[0022] When the GDI 202 receives the print settings and drawing data, it uses the spooler 203 to store the print settings and drawing command information in an EMF spool file 301. EMF stands for Enhanced Metafile, and is a standard method for storing drawing data in Windows (registered trademark). Once the EMF spool file 301 has been stored, the spooler 203 loads the print processor 205.
[0023] The print processor 205 receives print settings from the UI module 207. Here, if the setting to display a preview before printing is on, the processing is as follows. The print processor 205 instructs the preview module 209 to start up. Next, the print processor 205 transmits the drawing commands stored in the EMF spool file 301 to the GD module 208 via the GDI 202 to generate an image to be displayed in the preview module 209. At this time, the print processor 205 also informs the GD module 208 that the drawing commands will be executed at a resolution for preview. The GD module 208 generates a preview image 302 based on the received drawing commands. The preview module 209 receives the preview image 302 and controls its display on the display unit 119.
[0024] On the other hand, when the print processor 205 receives print settings from the UI module 207, if the setting to display a preview before printing is off, the following occurs: The print processor 205 transmits the drawing commands stored in the EMF spool file 301 to the GD module 208 via the GDI 202. At this time, the print processor 205 also informs the GD module 208 that the drawing commands will be executed at print resolution. The GD module 208 generates a print image 303 based on the received drawing commands. Then, the print data generation module 210 generates print data 304 that can be interpreted by the printing device 102 based on the print image 303 and the print settings received from the UI module 207 via the GD module 208. The generated print data 304 is sent to the printing device 102. The printing device 102 interprets the received print data 304 and prints it on media. The process when the setting for displaying a preview before printing is turned off is the same as the process when the preview module 209 receives a print start instruction after displaying the preview image 302 .
[0025] 4 shows a portion of GDIINFO. GDIINFO is a structure for storing information about the rendering capabilities of a graphics device. The GDIINFO structure includes member names 401 and member descriptions 402.
[0026] For example, the member "ulVerision" stores the version of the device driver, "ulHorzSize" stores the surface width, and "ulVertSize" stores the surface height. Positive values are in millimeters, and negative values are in micrometers. "ulHorzRes" represents the printable surface width, and "ulVertRes" represents the printable surface height (both in pixels). "ptlPhysOffset.x" represents the length of the non-writable margin area in the width direction, with the upper left corner of the surface as the origin, and corresponds to the left margin of the media. The right margin of the media can be calculated by subtracting "ptlPhysOffset.x" from "szlPhysSize.x," which is the width of the entire surface, including the non-writable margin shown in Figure 4.
[0027] "ptlPhysOffset.y" represents the length of the unwritable margin area in the height direction, with the top left corner of the surface as the origin, and corresponds to the top margin of the media (each is expressed in pixels). The bottom margin of the media can be calculated by subtracting "ptlPhysOffset.y" from "szlPhysSize.y", which is the height of the entire surface, including the unwritable margin shown in Figure 4. The information related to the margins in the drawing capability information shown in Figure 4 is called margin information.
[0028] Note that a surface is a virtual screen (surface to be drawn on) of a graphics device, and the application 204 or print processor 205 can issue a drawing command to the surface via the GDI 202. As described above, the GD module 208 sets a value in GDIINFO, and the GDI 202 notifies the application 204 of drawing capability information based on the value set in GDIINFO. The application 204 then generates drawing data (first image data) to which margin information, which is part of the drawing capability information, has been applied, and passes the data to the GDI 202.
[0029] FIG. 5 is a diagram showing a schematic representation of the rendering content in each process of the data flow described in FIG. 3. FIG. 5(a) shows manuscript data on the application 204. FIG. 5(b) shows an EMF spool file 301. The EMF spool file 301 stores rendering information for the printable area, which is the area of the image data excluding the margins. The rendering information includes the rendering data (first image data) generated by the application 204 and print settings. That is, FIG. 5(b) shows the printable area to which the margin information in the manuscript data on the application 204 has been applied. FIG. 5(c) shows a print image 303. In this embodiment, the print image 303 is an image within the printable area. The print image 303 may be rotated by the process shown in FIG. 15, described later, depending on the rotation setting in the print settings or media type information. An example of rotating the print image 303 will be described later with reference to FIG. 9. FIG. 5(d) shows print data 304. The print data 304 includes at least an image command 501 obtained by converting the print image 303 into a format that can be interpreted by the printing device 102, and a coordinate command 502 for determining the drawing position on the medium of the image command 501. In this embodiment, the printing orientation on the medium is such that the paper feed port side of the printing device 102 corresponds to the top of the image command 501. Figure 5(e) shows a printout formed on the medium by the printing device 102 that received the print data 304. The relative layout of Figure 5(a) and Figure 5(e) is the same.
[0030] 6 is a diagram showing an example of the print setting screen. When detecting that the print setting button of the application 204 or the OS 201 is pressed, the CPU 111 instructs the UI module 207 to display the print setting screen on the display unit 119.
[0031] By using the print setting window 601, the user can set each setting value of the print settings so as to obtain the desired print results. Note that the setting values are not limited to numerical values but also include characters or character strings. The print setting window 601 has a setting interface 602 that allows the user to set setting values for one or more print setting items. The setting interface 602 includes, for example, a paper size setting interface 602a for setting the paper size and a paper type setting interface 602b for setting the paper type. The print setting window 601 also has a paper feed port setting interface 602c for setting the paper feed port, a print quality setting interface 602d for setting the print quality, and a print orientation setting interface 602e for setting the print orientation. The print setting window 601 also has a 180-degree rotation setting interface 602f for setting 180-degree rotated printing, and a preview display setting interface 602g for setting whether to display a preview before printing.
[0032] The setting values of these print setting items are stored in a DEVMODE structure in Windows (registered trademark) and can be referenced by the application 204 or the printer driver 206. However, the method for storing the setting values of the print setting items is not limited to this method, and the information can also be stored in a database called a registry in Windows (registered trademark), or a file can be created and stored there.
[0033] The print setting window 601 further has a cancel button 603 and an OK button 604. When the CPU 111 detects that the user has pressed the cancel button 603, it closes the print setting window 601 without saving the items set via the setting interface 602. On the other hand, when the CPU 111 detects that the user has pressed the OK button 604, it instructs the UI module 207 to save the print settings set via the setting interface 602 in the external storage device 114 or RAM 113. The print setting window 601 is then closed. Hereinafter, "saving print settings" means recording the setting values of the print setting items in the external storage device 114 or RAM 113, and "obtaining print settings" means reading the setting values of the print setting items saved in the external storage device 114 or RAM 113. This print setting screen is an example, and the print setting items do not necessarily have to be those shown above, and may include items other than those shown above.
[0034] In this embodiment, when the CPU 111 detects that the user has pressed the OK button 604 on the print setting screen, a 180-degree rotation flag is stored as one of the print setting items. The 180-degree rotation flag is a flag that determines whether to ultimately rotate the print content 180 degrees by referencing the 180-degree rotation print setting (hereinafter referred to as the 180-degree rotation setting) and the selected paper type or paper size. Paper types that require 180-degree rotation are also called reverse-feed media. Reverse-feed media refers to paper that has a flap on the top and must be loaded so that the edge with the flap is not positioned toward the paper feed slot of the printing device. In this embodiment, since the paper feed slot side corresponds to the top side of the image command, the paper feed slot side is the top side for media other than reverse-feed media. However, for reverse-feed media with a flap on the top, it is assumed that the bottom side is the paper feed slot side. In other words, when printing on reverse-feed media, the print content must be rotated 180 degrees.
[0035] When rotating print content 180 degrees, not taking into account the margin information set for reverse-feed media can result in misalignment of the print position, preventing the user from obtaining the desired print result. The following embodiment describes a method for suppressing unintended misalignment of the print position even when rotating print content by notifying the application 204 of margin information that takes into account rotation and printing when rotating print content.
[0036] 7 is a flowchart showing an example of a 180-degree rotation flag setting process in the UI module 207. The process of this flowchart starts after the UI module 207 saves the items set via the setting interface 602. Each process in this flowchart is realized by the CPU 111 expanding a program stored in the ROM 112 into the RAM 113 and executing it. Each process in this flowchart is executed by the CPU 111 functioning as the UI module 207. Therefore, although the subject of each process is actually the CPU 111, for ease of understanding, the description will be given assuming that it is the UI module 207. Furthermore, the symbol "S" in the following description of each process indicates a step in the flowchart, and this also applies to subsequent embodiments.
[0037] In S701, the UI module 207 disables the 180-degree rotation flag and saves it in the print settings. In S702, the UI module 207 acquires the print settings.
[0038] In S703, the UI module 207 determines whether the 180-degree rotation setting is ON in the acquired print settings. If the UI module 207 determines that the 180-degree rotation setting is ON, the process proceeds to S704. If the UI module 207 determines that the 180-degree rotation setting is OFF, the process proceeds to S705.
[0039] In S704, the UI module 207 determines whether reverse feed media is selected in the acquired print settings. If it is determined that reverse feed media is selected, the UI module 207 ends the processing of this flowchart. If it is determined that reverse feed media is not selected, the UI module 207 proceeds to S706.
[0040] In S705, the UI module 207 determines whether reverse feed media is selected in the acquired print settings, similar to S704. If it is determined that reverse feed media is selected, the UI module 207 proceeds to S706. If it is determined that reverse feed media is not selected, the UI module 207 ends the processing of this flowchart. In S706, the UI module 207 enables the 180-degree rotation flag, saves it in the print settings, and ends the processing of this flowchart.
[0041] In this embodiment, the GDI 202 notifies the application 204 of drawing capability information corresponding to the rotation direction of the print content. In particular, when the 180-degree rotation flag is enabled, the GDI 202 notifies the application 204 of drawing capability information including margin information rotated 180 degrees. In order to notify the application 204 of drawing capability information corresponding to the rotation direction of the print content, the GD module 208 performs processing to set a GDIINFO value corresponding to the rotation direction.
[0042] 8 is a flowchart showing an example of GDIINFO setting processing in the GD module 208. The processing of this flowchart begins when the GDI 202 calls the DrvEnablePDEV function of the GD module 208. The DrvEnablePDEV function is called, for example, when the application 204 requests drawing capability information from the GDI 202. Furthermore, each process in this flowchart is executed by the CPU 111 functioning as the GD module 208. Therefore, although the subject of each process is actually the CPU 111, for ease of understanding, the following description will be given assuming that it is the GD module 208.
[0043] In S801, the GD module 208 assigns 0 to variable A. Note that variables are values used in processing and are stored in the external storage device 114 or RAM 113. In S802, the GD module 208 acquires print settings. In S803, the GD module 208 determines whether the print orientation is landscape in the acquired print settings. If it is determined that the print orientation is landscape, the process proceeds to S804. If it is determined that the print orientation is not landscape, the GD module 208 proceeds to S805.
[0044] In S804, the GD module 208 adds 90 to variable A. Note that the print orientation can also be set to landscape by adding 270 to variable A in the process. In S805, the GD module 208 determines whether the 180-degree rotation flag is on in the acquired print settings. If it is determined that the 180-degree rotation flag is on, the GD module 208 proceeds to S806. If it is determined that the 180-degree rotation flag is off, the GD module 208 proceeds to S807.
[0045] In S806, the GD module 208 adds 180 to variable A. In S807, the GD module 208 sets the drawing capability information for rotating counterclockwise by A degrees (the angle equal to the value of variable A) in GDIINFO, and ends the processing of this flowchart. The application 204 stores drawing command information based on the drawing capability information corresponding to the notified rotation direction in the EMF spool file 301 via the GDI 202.
[0046] Here, we will explain how to set rotated drawing capability information in GDIINFO. Consider a case where the unrotated printable area width is 110 mm, the printable area height is 205 mm, the top margin is 20 mm, the bottom margin is 10 mm, the left margin is 5 mm, and the right margin is 5 mm. In this embodiment, the top, bottom, left, and right margins can be set to different lengths depending on the type of paper. This embodiment will be explained using these margin lengths hereafter. Converting these to pixel numbers at 600 dpi, the printable area width is 2598 pixels and the printable area height is 4842 pixels. The top margin is 472 pixels, the bottom margin is 236 pixels, the left margin is 118 pixels, and the right margin is 118 pixels.
[0047] If you do not want to rotate the image, set "ulHorzRes" to 2598 (width of the printable area) and "ulVertRes" to 4842 (height of the printable area). Also, set "ptlPhysOffset.x" to 118 (left margin) and "ptlPhysOffset.y" to 472 (top margin).
[0048] To rotate 90 degrees counterclockwise, set "ulHorzRes" to 4842 (height of the printable area) and "ulVertRes" to 2598 (width of the printable area). Also, set "ptlPhysOffset.x" to 472 (top margin) and "ptlPhysOffset.y" to 118 (right margin).
[0049] To rotate 180 degrees counterclockwise, set "ulHorzRes" to 2598 (width of the printable area) and "ulVertRes" to 4842 (height of the printable area). Also, set "ptlPhysOffset.x" to 118 (right margin) and "ptlPhysOffset.y" to 236 (bottom margin).
[0050] To rotate 270 degrees counterclockwise, set "ulHorzRes" to 4842 (height of the printable area) and "ulVertRes" to 2598 (width of the printable area). Also, set "ptlPhysOffset.x" to 236 (bottom margin) and "ptlPhysOffset.y" to 118 (left margin). Set the values of other GDIINFO members related to width or height in the same way.
[0051] FIG. 9 is a diagram that shows the drawing process for each process in the data flow described in FIG. 3. This diagram shows the drawing process for each process in the data flow when the 180-degree rotation setting is off, reverse feed media is selected, and the print orientation is portrait. The media used is a long envelope with a flap on the top. The top of the long envelope is the side without a flap, and the bottom is the side with a flap. As mentioned above, this is because the side without a flap is printed facing the paper feed slot, and in this embodiment, the paper feed slot side corresponds to the top of the image command. This also applies to the explanation of top and bottom margins described below.
[0052] FIG. 9(a) shows manuscript data in the application 204. FIG. 9(b) shows the EMF spool file 301. The EMF spool file 301 stores rendering information for the printable area excluding margins. At this time, the application 204 is notified of margin information rotated 180 degrees. Therefore, rendering information for the printable area excluding 10 mm from the top (bottom margin when not rotated), 20 mm from the bottom (top margin when not rotated), 5 mm from the left (right margin when not rotated), and 5 mm from the right (left margin when not rotated) is stored. In other words, the EMF spool file 301 stores rendering information for the printable area (in this embodiment, the printable area when the top and bottom margins are reversed) that reflects margin information but excludes the margins themselves. This is because it takes into account that the data will be rotated 180 degrees in later processing.
[0053] FIG. 9(c) shows a print image 303, which is rendered based on the EMF spool file 301 in FIG. 9(b). The print image 303 is rendered by rotating only the printable area of the data in the EMF spool file 301 based on the print orientation and the 180-degree rotation flag in the print settings. Details of this process will be described later using FIG. 15. FIG. 9(d) shows print data 304. As with FIG. 5(d), the print data 304 is the print image 303 converted into a format interpretable by the printing device 102, and includes at least an image command 901 and a coordinate command 902 for determining the drawing position of the image command 901 on the media. Note that the coordinate command 902 is set to a value based on the margin before rotation. This is because if the coordinate command 902 were set to a value based on the rotated margin, there is a risk that the necessary margins will not be secured when printing on the printing device 102. Figure 9(e) shows a print result formed on a medium by the printing device 102 that received the print data 304. Figure 9(f) is Figure 9(e) rotated 180 degrees. The relative positions of Figure 9(a) and Figure 9(f) are the same.
[0054] Next, in Figure 9, we will explain what kind of print result will be obtained if the processing of S806 is not performed (i.e., if the margin information in the drawing capability information notified to the application 204 is not rotated 180 degrees).
[0055] Fig. 10 is a diagram showing a schematic representation of the contents of drawing in each process of the data flow explained in Fig. 3. As mentioned above, this diagram shows the same processing as Fig. 9, except that the processing of S806 in Fig. 8 is not performed.
[0056] Fig. 10(a) shows manuscript data on the application 204. Here, the same manuscript data as Fig. 9(a) is used for illustration. Fig. 10(b) shows an EMF spool file 301. The EMF spool file 301 stores drawing information for the printable area excluding margins. Unlike Fig. 9(b), the margin information notified to the application 204 is not rotated, so drawing information within the printable area excluding 20 mm at the top, 10 mm at the bottom, 5 mm at the left, and 5 mm at the right (each of which is equal to the length of the top, bottom, left, and right margins when not rotated) is stored.
[0057] Figure 10(c) shows a print image 303, which is rendered based on the EMF spool file 301 in Figure 10(b). Figure 10(d) shows print data 304. Figure 10(d) is the same as Figure 9(d) except for the print content.
[0058] FIG. 10(e) shows the printout formed on the media by the printing device 102 after receiving the print data 304. FIG. 10(f) shows the printout rotated 180 degrees from FIG. 10(e). The relative layout of the manuscript data (FIG. 10(a)) and the printout (FIG. 10(f)) does not match, resulting in vertical misalignment. This is because, although the printable area in the print image 303 (FIG. 10(c)) is rotated 180 degrees, the coordinate command 902 is based on the margins before rotation, resulting in a misalignment equal to the difference between the top and bottom margins. Similarly, if the left and right margins are different, a misalignment in the horizontal direction will occur. This type of misalignment in the print content is undesirable because it occurs due to processing unintentional by the user, but can be prevented by performing the processing of S806 in FIG. 8 described above.
[0059] Next, we will explain the function of changing the 180-degree rotation setting on the print preview.
[0060] FIG. 11 is a diagram showing an example of the configuration of a print preview screen of the printer driver 206 of this embodiment. The print preview screen 1101 displays a preview image 1102 of the print result. The print preview screen 1101 has a setting interface 1103 for changing the orientation of the print content. The setting interface 1103 includes a 180-degree rotation off radio button 1103a and a 180-degree rotation on radio button 1103b. When the 180-degree rotation off radio button 1103a is selected, the preview image 1102 is displayed in an unrotated state, as shown in FIG. 11(a). On the other hand, when the 180-degree rotation on radio button 1103b is selected, the preview image 1102 is displayed in a 180-degree rotated state, as shown in FIG. 11(b). Note that the pressed state of the radio buttons when the print preview screen is displayed can be determined by, for example, referencing a 180-degree rotation flag included in the print settings when the print preview screen is displayed and following its contents. That is, when the print preview screen is displayed, if the 180-degree rotation flag is on, the print preview screen is displayed with the 180-degree rotation on radio button 1103b pressed. This ensures that the orientation of the image data displayed on the print preview screen matches the radio button.
[0061] The print preview screen 1101 further has a cancel button 1104 and a print button 1105. When the cancel button 1104 is pressed, the print preview screen 1101 is closed and the printer driver 206 ends the process without generating print data 304. On the other hand, when the print button 1105 is pressed, the print preview screen 1101 is closed and the printer driver 206 generates print data 304.
[0062] 12 is a flowchart showing an example of print preview processing in the preview module 209 according to this embodiment. Each process in this flowchart is realized by the CPU 111 loading a program stored in the ROM 112 into the RAM 113 and executing it. The process in this flowchart begins when the CPU 111 instructs the preview module 209 to start up after the spooler 203 loads the print processor 205 and if a setting for displaying a preview before printing is on. Furthermore, each process in this flowchart is executed by the CPU 111 functioning as the preview module 209. Therefore, although the subject of each process is actually the CPU 111, for ease of understanding, the description will be given assuming that it is the preview module 209.
[0063] In S1201, the preview module 209 opens the print preview screen 1101. In S1202, the preview module 209 executes a preview image display process. The preview image display process will be described in detail later.
[0064] In S1203, the preview module 209 acquires the 180-degree rotation flag stored as the print setting. In S1204, the preview module 209 acquires the pressed state of the button on the print preview screen 1101.
[0065] In S1205, the preview module 209 references the acquired button depression status and determines whether the print button 1105 has been pressed. If it is determined that the print button 1105 has been pressed, the preview module 209 proceeds to S1206, and if it is determined that the print button 1105 has not been pressed, the preview module 209 proceeds to S1207. In S1206, the preview module 209 instructs the GD module 208 to perform printing image generation processing. Details of the printing image generation processing will be described later.
[0066] In S1207, the preview module 209 refers to the acquired button press state and determines whether the cancel button 1104 has been pressed. If it is determined that the cancel button 1104 has been pressed, the preview module 209 proceeds to S1214, and if it is determined that the cancel button 1104 has not been pressed, the preview module 209 proceeds to S1208. In S1208, the preview module 209 refers to the acquired button press state and determines whether the 180 degree rotation off radio button 1103a has been pressed. If it is determined that the button has been pressed, the preview module 209 proceeds to S1209, and if it is determined that the button has not been pressed, the preview module 209 proceeds to S1211.
[0067] In S1209, the preview module 209 saves the 180-degree rotation flag in the print settings with the flag set to OFF. In S1210, the preview module 209 executes a preview image display process, which will be described later. In S1211, the preview module 209 references the acquired button press state and determines whether the 180-degree rotation ON radio button 1103b has been pressed. If it is determined that the button has been pressed, the preview module 209 proceeds to S1212, and if it is determined that the button has not been pressed, the preview module 209 returns to S1203.
[0068] In S1212, the preview module 209 saves the 180-degree rotation flag in the print settings with the flag turned on. In S1213, the preview module 209 executes a preview image display process, which will be described later, and then returns to S1203. In S1214, the preview module 209 closes the print preview screen 1101. Then, the processing of this flowchart ends.
[0069] FIG. 13 is a flowchart showing an example of a preview image display process according to this embodiment, which is executed in the preview module 209 in steps S1202, S1210, and S1213 of the flowchart in FIG.
[0070] In S1301, the preview module 209 instructs the GD module 208 to perform preview image generation processing. Details of the preview image generation processing will be described later. In S1302, the preview module 209 acquires the preview image 302 generated by the GD module 208. In S1303, the preview module 209 displays the acquired preview image 302, and ends the processing of this flowchart.
[0071] Fig. 14 is a flowchart showing an example of the preview image generation process executed in S1301 of the flowchart in Fig. 13. Each process in this flowchart is executed by the CPU 111 functioning as the GD module 208. Therefore, although the subject of each process is actually the CPU 111, for ease of understanding, the following description will be given assuming that it is the GD module 208.
[0072] In S1401, the GD module 208 acquires print settings. In S1402, the GD module 208 assigns 0 to variable B. Variables are values used in processing, and are stored in the external storage device 114 or RAM 113.
[0073] In S1403, the GD module 208 determines whether the print orientation is landscape in the acquired print settings. If it determines that the print orientation is landscape, the GD module 208 proceeds to S1404, and if it determines that the print orientation is not landscape, the GD module 208 proceeds to S1405. In S1404, the GD module 208 adds 270 to variable B. Note that if S804 was configured to add 270 to variable A, then in this processing, instead of adding 270, 90 is added to variable B. In S1405, the GD module 208 determines whether the 180-degree rotation flag is on in the acquired print settings. If it determines that the 180-degree rotation flag is on, the GD module 208 proceeds to S1406, and if it determines that the flag is off, the GD module 208 proceeds to S1407.
[0074] In S1406, the GD module 208 adds 180 to the variable B. In S1407, the GD module 208 acquires the EMF spool file 301. In S1408, the GD module 208 acquires the preview resolution. The acquired preview resolution may be a fixed value, or may be determined in any manner, such as by being set on the print preview screen 1101. However, in order to quickly display the preview image 1102 on the print preview screen 1101, it is preferable that the preview resolution be lower than the print resolution.
[0075] In S1409, the GD module 208 performs rendering at the preview resolution, rotating the image counterclockwise by B degrees (the angle corresponding to the value of variable B) based on the EMF spool file 301. That is, in this process, the rotation control of the preview image is performed by the GD module 208. Note that instead of the GD module 208 performing the rendering, the GD module 208 may instruct another module to perform the rendering. The rendered image data (second image data) is stored in the RAM 113 or saved as an image file in the external storage device 114, and the image file is deleted when it is no longer needed.
[0076] In S1410, the GD module 208 acquires margin information. Note that the acquired margin information is not margin information that takes into account 180-degree rotation, but margin information that depends on the performance of the OS. In S1411, the GD module 208 performs editing (image processing) to add margins to the rendered image based on the margin information, and ends the processing of this flowchart.
[0077] Fig. 15 is a flowchart showing an example of the print image generation process executed in S1206 of the flowchart in Fig. 12. The processes in S1501 to S1507 are equivalent to the processes in S1401 to S1407, respectively.
[0078] In S1508, the GD module 208 acquires the print resolution. In this embodiment, the print resolution is determined according to the print quality setting value in the print settings. In S1509, the GD module 208 performs rendering based on the EMF spool file 301, rotating the image counterclockwise by B degrees (the angle corresponding to the value of variable B) at the print resolution. Thereafter, the processing of this flowchart ends. The image rendered in S1508 is retained in the RAM 113 or saved as an image file in the external storage device 114, and the image file is deleted when it is no longer needed.
[0079] FIG. 16 is a flowchart showing an example of the print data generation process of this embodiment.
[0080] 15 ends, the GD module 208 loads the print data generation module 210 and invokes the process of this flowchart, and this process begins. The processes of this flowchart are executed by the CPU 111 functioning as the print data generation module 210. Therefore, although the subject of each process is actually the CPU 111, for ease of understanding, the description will be given assuming that it is the print data generation module 210.
[0081] In S1601, the print data generation module 210 acquires print settings. In S1602, the print data generation module 210 generates a control command based on the acquired print settings. The control command is data including command (instruction) information for instructing the printing device 102 to operate. For example, if the setting value for the paper feed port in the print settings is "rear tray," the control command generated includes data including instruction information for feeding paper from the rear tray. The control command includes a coordinate command for determining at which position on the media the printing device 102 should draw the image command.
[0082] In S1603, the print data generation module 210 acquires the print image 303 generated by the GD module 208. In S1604, the print data generation module 210 converts the print image 303 into a print command in a format that can be interpreted by the printing device 102, and ends the processing of this flowchart. After the print data generation process ends, the print data 304 is sent to the printing device 102, whereupon printing is performed.
[0083] Here, each process when the print orientation is landscape, unlike FIG. 9, will be described.
[0084] 17 is a diagram that shows the schematic representation of the contents of drawing in each process of the data flow when the 180-degree rotation setting is off, reverse feed media is selected, and the print orientation is landscape. The media used is a long envelope with a flap on the top, and the print button 1105 is pressed with the 180-degree rotation ON radio button 1103b selected on the print preview screen 1101. This is an example of the data flow when the user does not change the setting related to the rotation direction on the print preview screen 1101.
[0085] Fig. 17(a) shows original data on the application 204. Fig. 17(b) shows the EMF spool file 301. The EMF spool file 301 stores drawing information for the printable area excluding margins. At this time, the application 204 is notified of margin information rotated 270 degrees counterclockwise. That is, drawing information for the printable area excluding 5 mm from the top (left margin when not rotated), 5 mm from the bottom (right margin when not rotated), 10 mm from the left (bottom margin when not rotated), and 20 mm from the right (top margin when not rotated) is stored.
[0086] 17(c) is the print image 303. At this time, in step S1509 of the flowchart in FIG. 15, the image is rotated 450 degrees counterclockwise and rendered.
[0087] 17(d) shows print data 304. As in FIG. 9(d), the print data includes at least an image command 1701, which is the print image 303 converted into a format that can be interpreted by the printing device 102, and a coordinate command 1702 for determining the drawing position of the image command 1701 on the medium.
[0088] Figure 17(e) shows the print result formed on the media by the printing device 102 that received the print data 304. Figure 17(f) shows Figure 17(e) rotated 270 degrees counterclockwise. The flap is positioned to the left of the printed content. Also, the relative positions of Figure 17(a) and Figure 17(f) are the same.
[0089] Fig. 18 is a diagram that schematically shows the contents of rendering in each process of the data flow when the print button 1105 is pressed with the 180 degree rotation off radio button 1103a selected instead of the 180 degree rotation on radio button 1103b in Fig. 17. That is, Fig. 18 is an example of the data flow when the user changes the setting related to the rotation direction on the print preview screen 1101.
[0090] Figures 18(a) and 18(b) are similar to Figures 17(a) and 17(b), respectively. Figure 18(c) shows the print image 303. At this time, in S1509 of the flowchart in Figure 15, it is rotated 270 degrees counterclockwise and rendered. Figure 18(d) shows the print data 304. The image command 1801 is similar to that in Figure 17(d) except that it is generated based on the print image 303 shown in Figure 18(c). In other words, compared to Figure 17(d), only the printable area is rotated 180 degrees, and the coordinate command 1702 is the same.
[0091] FIG. 18(e) shows the print result formed on the media by the printing device 102 that received the print data 304. FIG. 18(f) shows FIG. 18(e) rotated 90 degrees counterclockwise. The flap is positioned to the right of the print content. Note that the relative positions of FIG. 18(a) and FIG. 18(f) do not match. However, this case occurs when the 180-degree rotation flag is on when the preview module 209 is started and the user presses the 180-degree rotation off radio button 1103a on the print preview screen 1101. Therefore, the user's operation is involved, and the user can check the preview image 1102 in advance on the print preview screen 1101. This prevents the final print result from being contrary to the user's intentions.
[0092] Here, we will explain the occurrence of loss of print content when the user changes the settings related to the rotation direction on the print preview screen 1101. Loss of print content occurs when attempting to match the relative positioning of the manuscript data on the application 204 with the print content to be formed on the medium (i.e., when attempting to rotate the entire area of the medium, including the margins, by 180 degrees).
[0093] Figure 19 is a reference diagram that shows a schematic representation of the drawing content at each step of the data flow when the entire area of the media, including the margins, is rotated 180 degrees under the conditions shown in Figure 18. Figures 19(a) and 19(b) are similar to Figures 18(a) and 18(b), respectively.
[0094] In Figure 18(d), compared to Figure 17(d), only the printable area is rotated. On the other hand, to rotate the entire media area, including the margins, 180 degrees, the print image 303 must be generated taking into account the difference in the lengths of the top and bottom margins. That is, as shown in Figure 19(c), if the top margin is longer than the bottom margin when not rotated, the print image 303 must be generated by shifting the difference (top margin minus bottom margin) upward. Furthermore, if the bottom margin is longer than the top margin, the print image 303 must be shifted downward by the difference (bottom margin minus top margin). As a result of this shift, some of the drawing commands stored in the EMF spool file 301 shown in Figure 19(b) may be outside the printable area, resulting in loss of print content.
[0095] FIG. 19(d) shows print data 304. Image command 1901 is image command 1301 generated based on the print image 303 shown in FIG. 19(c). Coordinate command 1702 in FIG. 19(d) is the same as in FIG. 17(d). FIG. 19(e) shows the print result formed on the medium by the printing device 102 that received the print data 304. FIG. 19(f) shows FIG. 19(e) rotated 90 degrees counterclockwise. Although the relative positions of FIG. 19(a) and FIG. 19(f) are the same, part of the drawing content in FIG. 19(a) is missing in FIG. 19(f).
[0096] Therefore, when the user changes the settings related to the rotation direction on the print preview screen 1101, it is necessary to rotate only within the printable area in order to prevent loss of print content. Furthermore, because the print result can be confirmed in advance on the print preview screen 1101, it is possible to prevent unintended misalignment of print content by the user and also to prevent unintended print results.
[0097] As described above, this embodiment can prevent print results that are not intended by the user. Specifically, when printing in portrait or landscape orientation on media with flaps, it can prevent unintended misalignment of print content or loss of print content due to rotation of the print content. This can be achieved by notifying the user of margin information tailored to the media, and by rotating only the printable area when rotating the print preview on the preview screen.
[0098] <Embodiment 2> In the first embodiment, a configuration in which the printable area is rotated 180 degrees when the 180-degree rotation setting is changed on the print preview screen is described. In a configuration like the first embodiment, loss of print content due to 180-degree rotation can be avoided. However, when the 180-degree rotation setting is changed on the print preview screen, the relative positioning of the manuscript data on the application 204 and the print result formed on the medium does not match. Depending on the user's printing purpose, loss of the edges of the print content may be tolerated, or manuscript data may be created in advance in the application 204 so that no loss is caused, and the entire area of the medium, including the margins, may be rotated 180 degrees. Therefore, in the second embodiment, a method is described in which an interface is provided that allows the user to select whether to rotate only the printable area 180 degrees or the entire area of the medium, including the margins, when changing the 180-degree rotation setting on the print preview screen. This embodiment is similar to the first embodiment unless otherwise noted.
[0099] In this embodiment, the print preview screen shown in Fig. 20 is used instead of the print preview screen 1101 shown in Fig. 11. Note that in Fig. 20, the same reference numerals as in Fig. 11 are used for the same parts as in Fig. 11, and therefore their explanation will be omitted.
[0100] The print preview screen 2001 has a setting interface 2002 for changing the orientation of the print content. The setting interface 2002 has a 180-degree rotation off radio button 1103a, a 180-degree rotation on radio button A 2002a, and a 180-degree rotation on radio button B 2002b. When the 180-degree rotation off radio button 1103a is selected, the preview image 1102 is displayed in an unrotated state, as shown in FIG. 20(a).
[0101] Figure 20(b) shows the print preview screen when the 180-degree rotation on radio button A2002a is selected. As shown in Figure 20(b), the preview image 1102 is displayed rotated 180 degrees. Specifically, the preview image 1102 in Figure 20(b) is the same as the preview image 1102 in Figure 20(a), but with only the printable area rotated 180 degrees.
[0102] Figure 20(c) shows the print preview screen when the 180 degree rotation on radio button B 2002b is selected. Unlike Figure 20(b), the preview image 1102 is the preview image 1102 in Figure 20(a) rotated 180 degrees, with the entire media area including the margins.
[0103] When the 180 degree rotation on radio button A 2002a is selected, a layout warning message 2003 is displayed on the print preview screen 2001. The layout warning message 2003 is a message that notifies the user that the relative layout of the manuscript data on the application 204 and the print result to be formed on the medium do not match. Note that the layout warning message 2003 is preferably displayed only when the top and bottom margins of the medium do not match, or when the right and left margins do not match.
[0104] Furthermore, when the 180 degree rotation ON radio button B 2002b is selected, a clip warning message 2004 is displayed on the print preview screen 2001. The clip warning message 2004 is a message that notifies the user that there is a possibility that an edge of the print content may be cut off. Note that it is preferable that the clip warning message 2004 be displayed when an edge of the print content will actually be cut off.
[0105] Displaying the placement warning message 2003 and clip warning message 2004 can further improve the effect of preventing the print content from being misaligned or missing due to 180-degree rotation. Note that in this embodiment, the placement warning message 2003 and clip warning message 2004 are displayed on the print preview screen 2001, but other display methods may be used, such as opening a separate window to display them.
[0106] Fig. 21 is a flowchart showing an example of print preview processing of this embodiment in the preview module 209. The print preview processing of this embodiment is executed according to the flowchart shown in Fig. 21 instead of the flowchart shown in Fig. 12. Note that in Fig. 21, the same reference numerals as in Fig. 12 indicate the same processing as in Fig. 12, and therefore description thereof will be omitted.
[0107] If the preview module 209 determines in S1205 that the print button 1105 has been pressed, the process proceeds to S2101. In S2101, the CPU 111 instructs the GD module 208 to perform print image generation processing 2. Details of print image generation processing 2 will be described later.
[0108] In S2102, which is the process following S1209, the CPU 111 instructs the GD module 208 to perform preview image display process 2. Details of preview image display process 2 will be described later. In S2103, the CPU 111 erases the placement warning message 2003 or clip warning message 2004 displayed on the print preview screen 2001.
[0109] In S2104, the preview module 209 determines whether the 180-degree rotation ON radio button A 2002a has been pressed. If it is determined that the button has been pressed, the CPU 111 proceeds to S2105. If it is determined that the button has not been pressed, the CPU 111 proceeds to S2108. In S2105, the CPU 111 saves the 180-degree rotation flag in the print settings with the flag set to ON, and further stores the print position maintenance flag in the RAM 113 with the flag set to OFF. In this embodiment, the print position maintenance flag is a flag that the GD module 208 references when generating the print image 303 or the preview image 302. In S2106, the CPU 111 executes preview image display processing 2, which will be described later. In S2107, the CPU 111 displays an arrangement warning message 2003 on the print preview screen 2001. Note that if a clip warning message 2004 is already displayed, the CPU 111 clears the message and displays the arrangement warning message 2003.
[0110] In S2108, the CPU 111 determines whether the 180-degree rotation ON radio button B 2002b has been pressed. If it is determined that the button has been pressed, the CPU 111 proceeds to S2109; if it is determined that the button has not been pressed, the CPU 111 returns to S1203. In S2109, the CPU 111 saves the 180-degree rotation flag in the print settings with the flag turned on, and further stores the print position maintenance flag in the RAM 113 with the flag turned on. In S2110, the CPU 111 executes preview image display processing 2, which will be described later. In S2111, the CPU 111 displays a clip warning message 2004 on the print preview screen 2001. Note that if the placement warning message 2003 is already displayed, it is erased and replaced with the clip warning message 2004. Thereafter, the CPU 111 returns to S1203.
[0111] Print image generation process 2 is the same as the print image generation process shown in Fig. 15 in embodiment 1, except that it includes the processes described below. Also, preview image display process 2 is the same as the preview image display process shown in Fig. 13 in embodiment 1, except that it includes the processes described below.
[0112] In print image generation process 2 or preview image display process 2, the GD module 208 generates a print image 303 or a preview image 302. At that time, if the print position maintenance flag, which is a flag that maintains the print position from the manuscript data in the application 204, is off, the GD module 208 rotates the drawn content without changing its position when rotating and rendering it. In other words, it rotates only the printable area by 180 degrees.
[0113] On the other hand, if the print position maintenance flag is on, when rotating and rendering, the GD module 208 changes the coordinates of the drawing command so that the entire area of the media, including the margins, is rotated before performing the rotation. For example, if the top margin is 20 mm and the bottom margin is 10 mm and a 180-degree rotation is required, the coordinates of the drawing command are changed upward by 10 mm, which is the difference between the top margin and the bottom margin, and then the GD module 208 rotates the image 180 degrees and performs rendering. This ensures that the relative positions of the manuscript data on the application 204 and the print result formed on the media are consistent. However, as mentioned above, changing the coordinates of the drawing command may result in missing parts at the edges of the image data during rendering.
[0114] In addition to the effects of the first embodiment, the present embodiment described above provides the following advantages. That is, when changing the 180-degree rotation setting on the print preview screen, the user can select whether to match the relative positioning of the manuscript data in the application with the print result formed on the media, or to prevent the edges of the print content from being cut off. Furthermore, by displaying a warning message corresponding to the aforementioned selection state, the effect of preventing unintended misalignment of the print content or cutoff of the print content can be further enhanced. This makes it possible to prevent print results that the user did not intend.
[0115] <Other embodiments> The various controls described above as being performed by a CPU may be performed by a single piece of hardware, or the entire device may be controlled by multiple pieces of hardware (e.g., multiple processors or circuits) sharing the processing.
[0116] Furthermore, although the present disclosure has been described in detail based on preferred embodiments thereof, the present disclosure is not limited to these specific embodiments, and various forms within the scope of the gist of the disclosure are also included in the present disclosure. Furthermore, each of the above-described embodiments merely represents one embodiment of the present invention, and each embodiment can be combined as appropriate.
[0117] The present disclosure can also be realized by supplying a program that realizes one or more functions of the above-described embodiments to a system or device via a network or a storage medium, and having one or more processors in the computer of the system or device read and execute the program. It can also be realized by a circuit (e.g., ASIC) that realizes one or more functions.
[0118] The present disclosure also includes the following configurations. (Configuration 1) A program for executing printing using manuscript data generated by an application, which runs on an information processing device, comprising: a notification means for notifying the application of margin information obtained by rotating the margins assigned to the document data by 180 degrees based on a first condition; an acquisition unit that acquires first image data obtained by applying the margin information to the manuscript data generated by the application; a display control means for rotating the first image data by 180 degrees based on the first condition and displaying the rotated image data as second image data on a preview screen; a rotation control means for rotating the printable area of the second image data displayed on the preview screen by 180 degrees based on a second condition; A program to function as a (Configuration 2) 2. The program according to configuration 1, wherein the first image data is image data that indicates a printable area to which the margin information is applied in the manuscript data. (Configuration 3) 3. The program according to configuration 1 or 2, wherein the printable area is an area excluding margins in the image data. (Configuration 4) 4. The program according to any one of configurations 1 to 3, wherein the first condition is that a flag for rotating print content in the manuscript data by 180 degrees is valid. (Configuration 5) The acquisition means further acquires print settings for the document data, The program described in configuration 4, characterized in that the flag is enabled when either a specific type of paper is selected in the print settings or the 180-degree rotation setting is turned on in the print settings. (Configuration 6) The program described in any one of configurations 1 to 5, wherein the second condition is that a first button for rotating the second image data displayed on the preview screen is pressed. (Configuration 7) the display control means further displays a second button for rotating the second image data on the preview screen; 7. The program according to configuration 6, wherein the rotation control means rotates the entire area of the displayed second image data by 180 degrees when the second button is pressed. (Configuration 8) pressing the first button or the second button can be selected by a user operation; 8. The program according to claim 7, wherein the rotation control means rotates the displayed second image data by 180 degrees in response to a selection by the user. (Configuration 9) The program described in configuration 8, characterized in that when the first button is pressed on the preview screen, a warning is displayed indicating that the relative printing positions of the manuscript data displayed in the application and the second image data do not match. (Configuration 10) 9. The program according to configuration 8, wherein when the second button is pressed on the preview screen, a warning is displayed to the effect that there is a risk that print content may be missing. (Configuration 11) In the print settings, if the print orientation is set to landscape, The program according to configuration 5, wherein the notification means notifies the application of margin information obtained by rotating the margin set in the manuscript data by an additional 90 degrees or 270 degrees. (Configuration 12) The information processing device The program described in any one of configurations 1 to 11, characterized in that it further functions as an output means for adding a command including a margin to the second image data displayed on the preview screen and outputting print data. (Configuration 13) 6. The program according to claim 5, wherein the specific type of paper includes paper having a flap. (Configuration 14) a notification means for notifying an application of margin information obtained by rotating the margins set in the document data by 180 degrees based on a first condition; an acquisition unit that acquires first image data obtained by applying the margin information to the manuscript data generated by the application; a display control means for rotating the first image data by 180 degrees based on the first condition and displaying the rotated image data as second image data on a preview screen; a rotation control means for rotating the printable area of the second image data displayed on the preview screen by 180 degrees based on a second condition; An information processing device comprising: (Configuration 15) a notification step of notifying an application of margin information obtained by rotating the margins set in the manuscript data by 180 degrees based on a first condition; an acquiring step of acquiring first image data obtained by applying the margin information to the manuscript data generated by the application; a display control step of rotating the first image data by 180 degrees based on the first condition and displaying the rotated image data as second image data on a preview screen; a rotation control step of rotating the printable area of the second image data displayed on the preview screen by 180 degrees based on a second condition; 10. A method for controlling an information processing device, comprising: (Configuration 16) A computer-readable storage medium storing a program for causing a computer to function as each means of the information processing device described in configuration 14.
Claims
1. A program for executing printing using manuscript data generated by an application, which runs on an information processing device, comprising: a notification means for notifying the application of margin information obtained by rotating the margins assigned to the document data by 180 degrees based on a first condition; an acquisition unit that acquires first image data obtained by applying the margin information to the manuscript data generated by the application; a display control means for rotating the first image data by 180 degrees based on the first condition and displaying the rotated image data as second image data on a preview screen; a rotation control means for rotating the printable area of the second image data displayed on the preview screen by 180 degrees based on a second condition; A program to function as a
2. 2. The program according to claim 1, wherein the first image data is image data that indicates a printable area to which the margin information is applied in the manuscript data.
3. 2. The program according to claim 1, wherein the printable area is an area excluding margins in the image data.
4. 2. The program according to claim 1, wherein the first condition is that a flag for rotating print content in the document data by 180 degrees is valid.
5. The acquisition means further acquires print settings for the document data, The program according to claim 4, wherein the flag is enabled when one of the following conditions is met: a specific type of paper is selected in the print settings; or a 180-degree rotation setting is turned on in the print settings.
6. 2. The program according to claim 1, wherein the second condition is that a first button for rotating the second image data displayed on the preview screen is pressed.
7. the display control means further displays a second button for rotating the second image data on the preview screen; 7. The program according to claim 6, wherein the rotation control means rotates the entire area of the displayed second image data by 180 degrees when the second button is pressed.
8. pressing the first button or the second button can be selected by a user operation; 8. The program according to claim 7, wherein the rotation control means rotates the displayed second image data by 180 degrees in response to a selection by the user.
9. The program described in claim 8, characterized in that when the first button is pressed on the preview screen, a warning is displayed indicating that the relative printing positions of the manuscript data displayed in the application and the second image data do not match.
10. 9. The program according to claim 8, wherein when the second button is pressed on the preview screen, a warning is displayed to the effect that there is a risk that print content may be missing.
11. In the print settings, if the print orientation is set to landscape, 6. The program according to claim 5, wherein the notification means notifies the application of margin information obtained by rotating the margin set in the manuscript data by an additional 90 degrees or 270 degrees.
12. The information processing device 2. The program according to claim 1, further functioning as an output unit that adds a command including a margin to the second image data displayed on the preview screen and outputs print data.
13. 6. The program according to claim 5, wherein the flag is enabled when a specific type of paper is selected in the print settings, and the specific type of paper is paper with a flap.
14. 14. The program of claim 13, wherein the specific type of paper is a long envelope.
15. a notification means for notifying an application of margin information obtained by rotating the margins set in the document data by 180 degrees based on a first condition; an acquisition unit that acquires first image data obtained by applying the margin information to the manuscript data generated by the application; a display control means for rotating the first image data by 180 degrees based on the first condition and displaying the rotated image data as second image data on a preview screen; a rotation control means for rotating the printable area of the second image data displayed on the preview screen by 180 degrees based on a second condition; An information processing device comprising:
16. a notification step of notifying an application of margin information obtained by rotating the margins set in the document data by 180 degrees based on a first condition; an acquiring step of acquiring first image data obtained by applying the margin information to the manuscript data generated by the application; a display control step of rotating the first image data by 180 degrees based on the first condition and displaying the rotated image data as second image data on a preview screen; a rotation control step of rotating the printable area of the second image data displayed on the preview screen by 180 degrees based on a second condition; 10. A method for controlling an information processing device, comprising:
17. A computer-readable storage medium storing the program according to any one of claims 1 to 14.
Citation Information
Patent Citations
Image forming system, information processing apparatus, and program for information processing apparatus
JP2013114520A