Document creation device, document creation method, and program

The document creation device and method address the issue of blank areas by automatically adjusting text and official seal image placement, preventing tampering and ensuring uniform spacing, thus enhancing document security.

JP7535858B2Active Publication Date: 2024-08-19CANON FINETECH NISCA INC
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2020028347
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-02-21
Publication Date
2024-08-19
Estimated Expiration
2040-02-21

AI Technical Summary

Technical Problem

Existing document creation methods fail to prevent blank areas at the end of lines when handling official seal images, leading to potential tampering risks due to manual line breaks and uneven spacing.

Method used

A document creation device and method that automatically adjusts text and official seal image placement, inserting line breaks and justifying text to evenly distribute characters, ensuring the official seal image is placed at the beginning of the next line if it exceeds the drawing area, and evenly spacing text across lines to eliminate blank areas.

Benefits of technology

Prevents blank areas at the end of lines and throughout the document, enhancing security by preventing tampering and ensuring uniform text spacing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007535858000001
    Figure 0007535858000001
  • Figure 0007535858000005
    Figure 0007535858000005
  • Figure 0007535858000004
    Figure 0007535858000004
Patent Text Reader

Abstract

To provide an information processing apparatus capable of performing prevention of falsification which falsification is performed by inserting characters into a printed material in which a blank region existing in the end of line in an automatically line-fed line and its drawing region is printed when an image in a line of the drawing region is handled as one character string, and which prevention is performed by eliminating the blank region; and provide a control method of the information processing apparatus and a program.SOLUTION: A method by an information processing apparatus transmitting a document containing characters and images to a printing device, and causing the document to be printed, includes the steps of: while automatically line-feeding input characters in accordance with a size of a predetermined drawing region and at a plurality of lines, drawing the characters in the drawing region; upon inputting an image into a line at the end of line in a first line from the plurality of lines, handling the image as one character string; and when a second line prior to a first line is line-fed by a manual insertion of a line-fed code, performing an equivalent arrangement of the character string to the first line and a second line.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to Documentation Equipment and Documentation The present invention relates to a method and a program. [Background technology]

[0002] There are many applications that draw text data within a specified area. Most of them set a text object that specifies the size of the drawing area, the type of font to be used for drawing, and the font size in advance. The user then inputs text into the text object using a keyboard or the like to realize the drawing process of the text data.

[0003] In this drawing process, depending on the combination of the input contents of the text data and the type and size of the font set for the text object, the input text may not fit into the drawing area set for the text object. In such cases, the text data is broken down into lines to fit the drawing area, or the font size used for drawing is reduced, so that the text can be drawn within the drawing area (see Patent Document 1).

[0004] Another well-known technology is the "justification" function used in word processors. This function adjusts the spacing between the characters and images on a line so that they are evenly spaced when a word or image is placed at the end of the line (when the character string does not fit on one line) and the overflowing characters or in-line image are sent to the next line. By performing this kind of even spacing process, it is possible to prevent blank areas from being created at the end of the line. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2005-193433 A Summary of the Invention [Problem to be solved by the invention]

[0006] When drawing text using the above technology, for example, in an application program that uses a seal image, the seal image may be placed at the end of a line of input text. In that case, if the line does not fit within the drawing area, only the seal image is sent to the next line. Then, only the seal image is placed at the beginning of the next line, and if the previous line has the justification or justification function set, the character spacing will be expanded evenly.

[0007] However, since the line break is not an apparent line break due to character overflow, but a line break created by manually inserting a line break code 503 as shown in Fig. 5(A) is treated as a separate line, if the justification or equal spacing functions are not set in advance, the line break in the official seal image will not be applied to the separate line 501 when the line break is performed. Therefore, if the official seal image 502 is treated as a single character string, a blank area 504 will be generated after the line break in the line 501. When such document data is printed, a blank portion corresponding to the blank area 504 will be generated in the printed matter, and a third party may insert characters or the like into the blank portion, thereby falsifying the printed document.

[0008] An object of the present invention is to solve the problems of the prior art.

[0009] The object of the present invention is to provide a technology that prevents tampering by inserting characters into a printed document in which a drawing area is printed by eliminating the blank area at the end of a line that has been manually broken down when the inline image of the drawing area is treated as a single character string. [Means for solving the problem]

[0010] In order to achieve the above object, one aspect of the present invention relates to Documentation The device has the following configuration: Document creation for creating a document including a character string and an official seal image, the official seal image being placed at the end An apparatus comprising: The user enters a string and a newline command. Enter Possible An input means; a processing means for performing a process for evenly distributing characters in a line of a document that has been divided into multiple lines by the line feed command and does not include the official seal image; The present invention is characterized by having the following. Effect of the Invention

[0011] According to the present invention, when the in-line image of the drawing area is treated as a single character string, it has the effect of eliminating the blank area at the end of a line that has been manually broken down, thereby preventing tampering by inserting characters into a printed document in which the drawing area is printed.

[0012] Other features and advantages of the present invention will become apparent from the following description taken in conjunction with the accompanying drawings, in which the same reference numerals are used to designate the same or similar components throughout the drawings. [Brief description of the drawings]

[0013] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention. [Figure 1] 1 is a schematic configuration diagram of a printing system including an information processing apparatus according to an embodiment of the present invention. [Diagram 2] 5 is a flowchart for explaining processing from input of text to drawing of the text in the information processing device according to the embodiment. [Diagram 3] 11 is a flowchart for explaining automatic line feed insertion processing by the information processing apparatus according to the embodiment. [Figure 4] 5 is a flowchart for explaining an automatic arrangement process of an official seal image by the information processing apparatus according to the embodiment of the present invention. [Diagram 5] 1A and 1B are diagrams showing a print example of a conventional example and a print example of an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] Hereinafter, the embodiments of the present invention will be described in detail with reference to the attached drawings. Note that the following embodiments do not limit the invention according to the claims. Although the embodiments describe a number of features, not all of these features are essential to the invention, and the features may be combined in any manner. Furthermore, in the attached drawings, the same reference numbers are used for the same or similar configurations, and duplicated descriptions are omitted.

[0015] FIG. 1 is a schematic diagram showing the configuration of a printing system including an information processing apparatus according to an embodiment of the present invention.

[0016] The information processing device 101 can transmit print data to the printer 107 for printing. The CPU 102 executes a boot program stored in the ROM 104 to load a program stored in the HDD 108 in the RAM 103, and executes the loaded program to control the operation of the information processing device 101. The CPU 102 also creates and edits print data to be transmitted to the printer 107 via the communication IF unit 105. The RAM 103 is a memory that mainly provides a work area for the CPU 102. The operation UI (user interface) unit 106 includes a monitor, a keyboard, a pointing device, and the like for displaying or inputting various information. The monitor has a touch panel function. The printer 107 receives the print data transmitted from the communication IF unit 105, and prints an image on a recording medium (sheet) based on the received print data. The HDD 108 is a hard disk drive that stores application programs, print data, and the like, which will be described later.

[0017] The information processing device 101 according to this embodiment has functions for automatically inserting line breaks (wrapping), evenly distributing text in the target lines, and arranging official seal images (image information) within the lines when editing a document (print document) consisting of text and images. In addition, evenly distributing (or justifying) text evenly evenly evenly evenly evenly evenly evenly even text in lines into which line break codes have been manually inserted when inputting text. This embodiment is effective when an official seal image is placed at the end of text that has been input as multiple lines, and the text up to the official seal image is treated as a single character string.

[0018] The application program according to the embodiment operates as one of the control programs stored in the HDD 108, creates and edits print data, and transmits the print data via the communication IF unit 106 to the printer 107 for printing.

[0019] 2 is a flowchart for explaining a process from inputting text to drawing the text in the information processing device 101 according to the embodiment. Note that the process shown in this flowchart is achieved by the CPU 102 executing a program loaded in the RAM 103.

[0020] First, in S201, when the CPU 102 accepts text input, the process proceeds to S202, where it executes automatic line break (wrapping) insertion processing. Then, when this processing is completed, the process proceeds to S203. In S203, the CPU 102 determines whether the official seal display function is enabled (on) in the text resulting from the line breaks. If the official seal display function is enabled, the process proceeds to S204, and if not, the process proceeds to S205.

[0021] In S204, the CPU 102 automatically adjusts the position of the registered official seal image based on the registered official seal image and the input text. At this time, the text is also adjusted at the same time as this automatic adjustment. When this process is completed, the process proceeds to S205. In S205, the CPU 102 draws the text. At this time, when the process proceeds from S203 to S205, only the input text is drawn, not including the official seal image. On the other hand, when the process proceeds from S204 to S205, the input text and the result of automatically adjusting the position of the registered official seal image are drawn.

[0022] 3 is a flowchart for explaining the automatic line feed insertion process by the information processing apparatus 101 according to the embodiment. This process corresponds to the process of S202 in FIG.

[0023] First, in S301, the CPU 102 draws text using a preset font type and font size. At this time, the text is drawn in a virtual area corresponding to a predetermined drawing area. Although the input text may be drawn directly in a text object, which is the drawing area, it is not preferable for the user to see the intermediate results of the drawing process, so in this embodiment, the text is drawn in a virtual area.

[0024] Next, the process proceeds to S302, where the CPU 102 compares the drawing width of the result of drawing in S301 with the width of the drawing area set in the virtual area. If the drawing width is larger, character overflow has occurred in that line, so the process proceeds to S303; if not, the process ends.

[0025] In S303, CPU 102 uses the drawing result of S301 and the width of the drawing area set for that drawing area to identify characters that will overlap the boundary line of the drawing area or will extend beyond the boundary line when drawn. Then, the process proceeds to S304, where CPU 102 inserts a line break (wrap) immediately before the character identified in S303. Then, the process returns to S301, and the text is drawn in the virtual area again. In this way, automatic insertion of line breaks in the input text is realized by repeating the processes from S301 to S304 until it is no longer determined in S302 that the drawing width exceeds the width of the drawing area.

[0026] 4 is a flowchart for explaining the automatic arrangement process of the official seal image by the information processing device 101 according to the embodiment of the present invention. This process corresponds to the process of S204 in FIG.

[0027] First, in S401, the CPU 102 determines whether the layout setting of the set official seal image is at the end of the text. If it is determined that it is at the end of the text, the process proceeds to S402, and if it is determined that it is not at the end of the text, the process ends.

[0028] In S402, the CPU 102 judges whether the official seal image arranged at the end of the text overlaps with the boundary line of the drawing area. If it is judged that the official seal image overlaps with the boundary line, the process proceeds to S403, and if not, the process proceeds to S404. In S403, since the official seal image overlaps with the boundary line of the drawing area, the CPU 102 inserts a line break (wrap) immediately before the official seal image. As a result, the official seal image that overlaps with the boundary line is arranged at the beginning of the next line. Next, the process proceeds to S404, where the CPU 102 judges whether a blank area larger than the size of the characters included in the text occurs at the end of the line where the manual line break is inserted in the text inputted to the drawing area. If it is judged that the blank area occurs due to the manual line break, the process proceeds to S405, and if it is judged that the blank area does not occur, the process proceeds to S406. In other words, if the blank areas are smaller than the size of the characters contained in the text, there is little need to eliminate the blank areas by justifying (or justifying) the text, since adding characters to the blank areas of the printed document will be smaller than the other characters and the tampering will likely be noticeable.

[0029] In S405, the CPU 102 adjusts the blank areas between characters so that the text is evenly spaced (justified) within the same line for all lines except the line in which the official seal image is located in the drawing area, and ends this process. At this time, the text settings (font, character size, etc.) are not changed, and the character spacing is adjusted.

[0030] Meanwhile, in S406, the CPU adjusts the blank space between characters in the text in the drawing area in which automatic line breaks have been inserted, so that the text is evenly spaced within the same line for all lines except for the line in which the official seal image is placed, and then ends this process.

[0031] As described above, according to the embodiment, when drawing text and official seal images, if a blank area occurs at the end of a line due to a line break, the occurrence of the blank area can be suppressed by evenly distributing the characters.

[0032] According to an embodiment, when an official seal image at the end of a line of text entered in a drawing area exceeds the width of the drawing area, a line break is automatically performed, and the official seal image is placed at the beginning of the next line. If a line is manually broken by a user in the drawing area and a blank area exists on that line, even spacing is automatically applied to all lines preceding the line on which the official seal image is placed. This makes it possible to suppress not only the occurrence of blank areas due to automatic line breaks, but also the occurrence of blank areas due to manual line breaks.

[0033] In addition, even if the line is not automatically broken when the official seal image is placed, if there is a line that the user has manually broken, the system will automatically apply equal spacing to that line. This makes it possible to prevent blank areas from appearing in the middle of a character string when the official seal image is treated as a single character string (if S402 in FIG. 4 is NO).

[0034] In S404, it is determined whether or not there is a blank area at the end of the line that is larger than the character size, and this process has the effect of speeding up the process when the blank area at the end of the line is small. However, it is also possible to reduce the number of processing steps and proceed to S405 without performing the processes of S404 and S406. This makes it possible to eliminate all blank areas at the end of the line, even small ones.

[0035] (Other embodiments) The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.

[0036] The present invention is not limited to the above-described embodiments, and various modifications and variations can be made without departing from the spirit and scope of the present invention. Therefore, the following claims are appended to apprise the public of the scope of the present invention. [Explanation of symbols]

[0037] 101: information processing device, 102: CPU, 103: RAM, 104: ROM, 105: communication IF section, 106: operation UI section, 107: printer, 108: HDD

Claims

1. A document creation device that creates a document including a character string and an official seal image, the official seal image being placed at the end of the document, an input means for allowing a user to input a character string and a line feed command; a processing means for performing a process for evenly distributing characters in a line of a document that has been divided into multiple lines by the line feed command and does not include the official seal image; A document creation device comprising:

2. further comprising an automatic line feed means for automatically feeding a line before the official seal image in a line including the official seal image when the official seal image overflows from a drawing area of ​​the line, 2. The document creation device according to claim 1, wherein said processing means evenly distributes character strings in the lines where the automatic line feed has been performed.

3. A document creation method for creating a document including a character string and an official seal image, the official seal image being placed at the end of the document, using a document creation device, comprising: an input step in which an input means of the document creation device inputs a character string and a line feed command in response to a user's operation; a processing step in which a processing means of the document creation device performs a process of evenly distributing characters within a line of a character string included in a line of a document that has been divided into multiple lines by the line feed command inputted in the input step and does not include the official seal image; 13. A document creation method comprising the steps of:

4. The document creation method described in Claim 3, characterized in that the automatic line breaking means of the document creation device further has an automatic line breaking step of automatically breaking a line in front of the official seal image in a line containing the official seal image when the official seal image overflows from the drawing area of ​​the line, and the processing step evenly distributes the character strings in the line in which the automatic line breaking has been performed.

5. 5. A program for causing a computer to execute each step of the document creation method according to claim 3.

Citation Information

Patent Citations

  • Document producer with even allocation function

    JP1991188558A

  • Document data output device and its program recording medium

    JP1999219358A

  • Computer processing system

    JP2002092217A

  • Method and device for information embedding and extraction and recording medium

    JP2002269074A

  • Print composition creating device / method, print composition creating program and printing device

    JP2005193433A