CN100361067C - Paging method for printed files - Google Patents
Paging method for printed files Download PDFInfo
- Publication number
- CN100361067C CN100361067C CNB2004100116517A CN200410011651A CN100361067C CN 100361067 C CN100361067 C CN 100361067C CN B2004100116517 A CNB2004100116517 A CN B2004100116517A CN 200410011651 A CN200410011651 A CN 200410011651A CN 100361067 C CN100361067 C CN 100361067C
- Authority
- CN
- China
- Prior art keywords
- icon
- document
- regional location
- file
- paging
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Record Information Processing For Printing (AREA)
- Document Processing Apparatus (AREA)
Abstract
Description
技术领域technical field
本发明是关于一种分页方法,尤指一种打印文件的分页方法。The invention relates to a page sorting method, in particular to a page sorting method for printed files.
背景技术Background technique
随着电子技术的大幅进步,现今办公室中所有的事务工作都与复印机、传真机、打印机、扫描仪等事务机息息相关,因此这些事务机可说是办公室不可或缺的信息设备。With the rapid advancement of electronic technology, all office work in today's office is closely related to office machines such as copiers, fax machines, printers, and scanners. Therefore, these office machines can be said to be indispensable information equipment in the office.
但是,由于众多的事务机往往会占据太大的空间,甚至因为各事务机的使用率不尽相同,所以往往会造成虽然有些种类的事务机使用率低,但仍必须添购以应付不时的需的情况。However, because many business machines often occupy too much space, and even because the utilization rate of each business machine is not the same, it often results that although some types of business machines have low utilization rates, they still have to be purchased to cope with occasional problems. required situation.
针对这些问题以及现今信息产品朝向小型化及功能整合的方向发展,因此兼具影印、打印、传真及扫描功能的多功能事务机(Multi Function Peripheral,MFP)被发展出来,消费者只需购买一台多功能事务机便可执行多项事务工作,并且可减少工作环境中空间的占用和提升工作品质及效率,其在应用上及生活上甚具便利性。In response to these problems and the development of information products today towards miniaturization and functional integration, a Multi Function Peripheral (MFP) with photocopying, printing, faxing and scanning functions has been developed. Consumers only need to buy one A single multi-functional business machine can perform multiple tasks, and can reduce the occupation of space in the working environment and improve work quality and efficiency. It is very convenient in application and life.
当使用习知的多功能事务机来进行打印的工作时,针对打印长度较长的文件且文件内容具有图标及较长的一段文章时,若是使用者在打印之前可于计算机上先自行编辑的文件,例如:word文件,就可自行设定分页,而不会有一张图标,被打印在两张不同的页面上,或是一段文章,在最不该分页的地方被分页的情况。When using a known multifunctional office machine to print, for printing long documents with icons and long articles, if the user can edit the document on the computer before printing Files, such as word files, can set pagination by themselves, without an icon being printed on two different pages, or an article being paged at the place where it shouldn't be.
但是,如果是打印不能先使用计算机编辑的文件10时(如图1所示),例如网页,由于从计算机端按下打印的按钮后,计算机会自动根据现在欲打印纸张的尺寸,将打印的文件分页,最后传送打印机控制语言(PCL)或是图形装置接口(GDI)的资料到多功能事务机端,多功能事务机会把这些资料解成原始资料(raw-data)来打印,原则上每页的大小都是一样的,如此的分页方式就会发生有时明明是一张图11,却被打印在两张不同的页面上,或是一段文章12,在最不该分页的地方分页,对看文件的人来说,这样的排版可能不是很恰当。But, when printing the file 10 (as shown in Figure 1) that can not be edited by computer first, such as a webpage, after pressing the button of printing from the computer side, the computer will automatically print the printed page according to the size of the paper to be printed now. The document is paginated, and finally the printer control language (PCL) or graphics device interface (GDI) data is sent to the multi-functional business machine. The size of the pages is the same, and such a pagination method will happen. Sometimes it is a
因此,如何发展一种可克服上述习知技术缺失的打印文件的分页方法,实为目前迫切需要解决的问题。Therefore, how to develop a pagination method for printed documents that can overcome the above-mentioned deficiencies in the prior art is an urgent problem to be solved at present.
发明内容Contents of the invention
本发明的主要目的在于提供一种打印文件的分页方法,借由判断文件所含图标的区域位置及文字的段落区域位置的方式,使计算机系统可根据图标的区域位置及文字的段落区域位置来对文件进行打印分页设定,以解决传统多功能事务机打印无法先使用计算机编辑的文件时,容易将一张图打印在两张不同的页面上,或是一段文章在最不该分页的地方分页等问题。The main purpose of the present invention is to provide a pagination method for printed documents. By judging the position of the icon area and the paragraph area position of the text in the document, the computer system can be used according to the area position of the icon and the paragraph area position of the text. Set the print paging settings for documents to solve the problem of printing a document that cannot be edited by a computer on a traditional multi-function machine. It is easy to print a picture on two different pages, or an article is in the place where it should not be paginated. Pagination and other issues.
为达上述目的,本发明的一种打印文件的分页方法,其适用于计算机系统,计算机系统与事务机连接,且事务机是根据计算机系统所传送的分页设定进行打印,方法包含下列步骤:于计算机系统执行打印文件时,判断文件所含的影像资料是否具有图标,且于判断结果为是时,储存图标的区域位置,以及判断文件所含文字的段落区域位置;根据图标的区域位置及文字的段落区域位置来对文件进行打印分页设定,使图标打印于同一页面,而文件所含的文字则根据段落区域位置来进行分页,并将分页设定结果传送至事务机,以打印文件。In order to achieve the above-mentioned purpose, a kind of pagination method for printing documents of the present invention is applicable to a computer system, the computer system is connected to a business machine, and the business machine prints according to the paging settings transmitted by the computer system, the method includes the following steps: When the computer system executes the printing file, it is judged whether the image data contained in the file has an icon, and when the judgment result is yes, the area position of the icon is stored, and the position of the paragraph area of the text contained in the document is judged; according to the area position of the icon and Use the position of the paragraph area of the text to set the print pagination of the document, so that the icons are printed on the same page, and the text contained in the document is paginated according to the position of the paragraph area, and the result of the pagination setting is sent to the business machine to print the document .
根据本发明的构想,其中事务机为多功能事务机(MFP)。According to the idea of the present invention, the transaction machine is a multi-function transaction machine (MFP).
根据本发明的构想,其中文件为于打印前无法于计算机系统进行编辑的文件。According to the idea of the present invention, the file is a file that cannot be edited on the computer system before printing.
根据本发明的构想,其中文件为一网页。According to the idea of the present invention, the file is a web page.
根据本发明的构想,其中判断图标的区域位置及文字的段落区域位置包含下列步骤:检测文件影像资料的水平方向及垂直方向的灰阶(Gray-Level)变化,以分析图标的区域位置;确定文件中所包含的图标的区域位置;对文件的影像资料作二质化(binary)演算,并进行垂直方向的投影,以确定文字的段落区域位置。According to the conception of the present invention, wherein judging the regional position of the icon and the paragraph region position of the text comprises the following steps: detecting the horizontal and vertical gray scale (Gray-Level) changes of the document image data to analyze the regional position of the icon; determining The area position of the icons contained in the file; binary calculation is performed on the image data of the file, and vertical projection is performed to determine the position of the paragraph area of the text.
根据本发明的构想,其中判断图标的区域位置及文字的段落区域位置包含下列步骤:降低文件的影像资料的分辨率,使文件的文字部分出现复数个规则的网点(grid);利用一熵值(entropy)寻找复数个网点,以判断图标的区域位置及文字的段落区域位置。According to the idea of the present invention, wherein judging the area position of the icon and the paragraph area position of the text comprises the following steps: reducing the resolution of the image data of the file, so that a plurality of regular grids (grid) appear in the text part of the file; using an entropy value (entropy) Find a plurality of dots to determine the location of the icon area and the paragraph area of the text.
根据本发明的构想,其中判断图标的区域位置及文字的段落区域位置包含下列步骤:降低文件影像的分辨率,使文件的文字部分出现复数个规则的网点(grid);利用一结构分析的方式(texture)寻找复数个网点,以判断图标的区域位置及文字的段落区域位置。According to the idea of the present invention, wherein judging the position of the area of the icon and the position of the paragraph area of the text includes the following steps: reducing the resolution of the document image, so that a plurality of regular grids appear in the text of the document; using a structure analysis method (texture) Find a plurality of dots to determine the location of the icon area and the paragraph area of the text.
根据本发明的构想,其中计算机系统传送至事务机的分页设定是将每一页面所含的资料经过一编码处理后,再传送至事务机。According to the idea of the present invention, the paging setting sent by the computer system to the business machine is to encode the data contained in each page and then send it to the business machine.
附图说明Description of drawings
图1为习知计算机系统打印无法编辑的文件的分页示意图。FIG. 1 is a schematic diagram of pagination for printing files that cannot be edited by a conventional computer system.
图2为本发明较佳实施例的打印文件的分页方法的软件架构图。FIG. 2 is a software architecture diagram of a method for paging a printed file according to a preferred embodiment of the present invention.
图3为计算机系统使用本发明的打印文件的分页软件打印无法编辑的文件的分页示意图。Fig. 3 is a paging schematic diagram of a computer system printing uneditable files using the paging software for printing files of the present invention.
图4为图2所述的判断文件所含的图标的区域位置及文字的段落区域位置的流程图。FIG. 4 is a flow chart of determining the position of the icon area and the paragraph area of the text contained in the document described in FIG. 2 .
图5(a)是将彩色的文件影像资料转换成灰阶化后的影像示意图。FIG. 5( a ) is a schematic diagram of an image after converting the color document image data into grayscale.
图5(b)是当文件的影像资料中未包含图标的灰阶分布示意图。FIG. 5( b ) is a schematic diagram of the gray scale distribution when the image data of the file does not contain icons.
图5(c)为图5(a)所示的文件的灰阶分布示意图。FIG. 5( c ) is a schematic diagram of the gray scale distribution of the file shown in FIG. 5( a ).
图5(d)为降低图5(a)所示的文件的分辨率的影像示意图。FIG. 5( d ) is a schematic diagram of reducing the resolution of the file shown in FIG. 5( a ).
图5(e)为对图5(a)所示的文件中非图标部分做二质化运算的示意图。Fig. 5(e) is a schematic diagram of binarization operation on the non-icon part of the file shown in Fig. 5(a).
图5(f)为对图5(e)进行垂直投影的投影量波形示意图。Fig. 5(f) is a schematic diagram of the projection amount waveform of the vertical projection of Fig. 5(e).
具体实施方式Detailed ways
本发明通过结合附图对较佳实施例的具体说明,可获得一更深入的了解:The present invention can obtain a deeper understanding by referring to the specific description of the preferred embodiments in conjunction with the accompanying drawings:
体现本发明特征与优点的一些典型实施例将在后段的说明中详细叙述。应理解的是本发明能够在不同的态样上具有各种的变化,其皆不脱离本发明的范围,且其中的说明及图标在本质上是当作说明之用,而非用以限制本发明。Some typical embodiments embodying the features and advantages of the present invention will be described in detail in the description in the following paragraphs. It should be understood that the present invention can have various changes in different aspects, all of which do not depart from the scope of the present invention, and the descriptions and diagrams therein are used for illustration in nature, not for limiting the present invention. invention.
请参阅图2,其为本发明较佳实施例的打印文件的分页方法的软件架构图,本发明所揭示的分页方法可适用于与多功能事务机连接的计算机系统(未图标),当使用者从计算机系统端按下执行打印无法事先进行编辑的文件的按钮后,例如:网页,需先判断文件的影像资料中是否具有图标,且于判断结果为是时,储存图标于文件中所设置的区域位置,以及判断文件中所含文字的段落区域于整个文件中所设置的位置(步骤S21),接着,计算机系统将根据判断所得的图标区域位置及文字的段落区域位置将欲打印文件作适当的打印分页,以使图标打印于同一页面,而文件所含的文字则根据段落区域所设置的位置在最适当的地方来进行分页的打印(步骤S22),最后,计算机系统将每一页面设定打印的资料进行编码处理后,传送至多功能事务机端,而多功能事务机将所收到关于每个页面的编码数据进行译码处理后,即可将经过排版的文件影像打印出来(步骤S23),使用本发明的分页方法所打印出来的文件影像,不见得每个页面打印的范围都相同,但可以达到避开同一张图标被切割在不同的两个页面(如图3所示),或是同一段落的文字能在最适当的地方来作分页。Please refer to Fig. 2, which is a software architecture diagram of the pagination method of printed files in a preferred embodiment of the present invention, the paging method disclosed in the present invention can be applied to a computer system (not shown) connected with a multifunctional business machine, when using After the user presses the button to print a file that cannot be edited in advance from the computer system, such as a web page, it is necessary to first judge whether there is an icon in the image data of the file, and if the judgment result is yes, store the icon in the file. The location of the area, and the position of the paragraph area of the judgment file contained in the entire file (step S21), and then, the computer system will print the file according to the location of the icon area and the paragraph area of the text. Appropriately print the pages so that the icons are printed on the same page, and the text contained in the file is printed in the most appropriate place according to the position set in the paragraph area (step S22). Finally, the computer system prints each page After the set printing data is coded, it is sent to the multi-function business machine, and the multi-function business machine decodes the coded data received on each page, and then prints out the typesetting document image ( Step S23), using the document images printed by the pagination method of the present invention, the printing range of each page may not be the same, but it can avoid the same icon being cut on two different pages (as shown in Figure 3 ), or the text of the same paragraph can be paged at the most appropriate place.
请参阅图4,其为图2所述的判断文件所含的图标的区域位置及文字的段落区域位置的流程图。其中,判断文件的影像资料中可能包含的图标区域位置及文字的段落区域位置,以找出文件的影像资料中最适合进行分页的段落依据,其可以下列的步骤来实施,首先,必须先判断文件的影像资料是否为彩色(步骤S41),如果文件是彩色的话,则要先把文件的影像资料转成灰阶(步骤S42),反之,如果本来就是灰阶的,则可省略执行步骤S41,举例而言,当原始文件的影像资料为R、G、B格式,则可以通过下列公式转成灰阶值,F(x,y)=0.3*R(x,y)+0.59*G(x,y)+0.11*B(x,y),请参阅图5(a),其是将彩色的文件影像资料转换呈灰阶后的影像示意图,如图所示,文件50的右上角具有图标51,其为不可切割的区域位置,当文件50的影像资料中具有图标51时,使用者可看出文件50中有图标51的存在,但是计算机系统无法自行得知文件50的影像资料中包含有图标51,于本实施例中,待文件的影像资料转成灰阶后可借由文件50中灰阶的分布图来得知文件50中是否有图标的存在(步骤S43),请参阅图5(b),其是当文件的影像资料中未包含图标的灰阶分布示意图,由图中可知,文件50中若未包含任何图标时,其灰阶的分布示意图中只有一个颜色有点,即为文字部分,而其它的灰阶值皆无点,表示文件中没有图标存在。请参阅图5(c),其为图5(a)所示的文件的灰阶分布示意图,由图中可知,图中什么颜色的点都有,即表示文件50中具有图标51,同样的图中表示文字颜色的点也会特别多。Please refer to FIG. 4 , which is a flow chart of determining the location of the icon area and the paragraph area of the text contained in the document as shown in FIG. 2 . Among them, judging the location of the icon area and the paragraph area of the text that may be included in the image data of the document, in order to find out the most suitable paragraph basis for pagination in the image data of the document, it can be implemented by the following steps. First, it must be judged Whether the image data of the file is color (step S41), if the file is color, then the image data of the file will be converted into gray scale (step S42), otherwise, if it is gray scale originally, step S41 can be omitted For example, when the image data of the original file is in R, G, and B formats, it can be converted into grayscale values by the following formula, F(x, y)=0.3*R(x, y)+0.59*G( x, y)+0.11*B(x, y), please refer to FIG. 5(a), which is a schematic diagram of the image after converting the color file image data into grayscale. As shown in the figure, the upper right corner of the
当判断出文件50中具有图标51后,接着,可利用降低文件50影像资料的解晰度,使文件50的文字部分出现复数个规则的网点,并进行一结构分析,其可为纹理分析的方式,以判断图标51在文件50的哪个位置(步骤S44),至于,分析文件50的纹理可使用熵值(entropy)或是小波(wavelet)的方式,但不以此为限。请参阅图5(d),其为降低图5(a)所示的文件的分辨率的影像示意图,由图中可知,借由降低文件50影像资料的分辨率以及分析纹理的方式,即可将文件50右上角图标51所在的区域位置定位出来。After judging that there is an
在确定图标51所在的区域位置后,需进一步判断文件50中所含文字的段落区域位置,以找出文件50中适合分页的位置,因此需对图5(a)所示的文件50中非图标51部分做二质化运算(如图5(e)所示)(步骤S45),然后,对图5(e)进行垂直投影,借由分析其投影量(步骤S46),来找出所有适合分页的位置,请参阅图5(f),其为对图5(e)进行垂直投影的投影量波形示意图,由图中可知,图标51所对应的所在位置X,原本就不可分割,因此无须考滤这个区间的投影量,至于,文件50中其它文字52之间段落与段落的分界处则可借由判断投影量的多寡来判断,以来找出适合分页的位置(步骤S46)。After determining the position of the area where the
由于在步骤S46中可得到文件50中许多适合分页的位置,计算机系统需依据打印纸张的尺寸来选出一个最适合的分页位置,即完成找出一页内容的分页动作(步骤S47),然后,扣除前一页影像的内容,依照步骤S41至S47的流程来分析下一页的分页内容,直到文件50的所有影像资料都分配完毕为止,即可达到在最适当位置分页的效果(步骤S48)。Because many positions suitable for pagination can be obtained in the
由于,在文件适当的地方进行打印分页,具有很多种实施方式,并不拘限于上述实施例的方式,熟习本技术的人士使用任何可判断文件影像资料中图标的区域位置及文字的段落区域位置的方法,均为本发明所保护的范围。Because there are many ways to print and paginate in the appropriate place of the document, and they are not limited to the above-mentioned embodiment, those who are familiar with the technology can use any method that can judge the position of the icon area and the position of the paragraph area of the text in the image data of the document. Methods are within the protection scope of the present invention.
纵上所述,本发明的打印文件的分页方法,于计算机系统下达执行打印文件的指令后,借由判断文件所含图标的区域位置及文字的段落区域位置的方式,使计算机系统可根据图标的区域位置及文字的段落区域位置来对文件进行打印分页设定,使图标打印于同一页面,而同一段落的文字能在最适当的地方来作分页,让使用者阅读起来比较贴近排版过的感觉。As mentioned above, the pagination method of the printed document of the present invention, after the computer system issues an instruction to execute the printed document, by judging the position of the area of the icon contained in the document and the position of the paragraph area of the text, the computer system can The area position of the text and the paragraph area position of the text are used to set the print pagination of the document, so that the icons are printed on the same page, and the text of the same paragraph can be paginated at the most appropriate place, so that the user can read it more closely to the typesetting Feel.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100116517A CN100361067C (en) | 2004-12-31 | 2004-12-31 | Paging method for printed files |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100116517A CN100361067C (en) | 2004-12-31 | 2004-12-31 | Paging method for printed files |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1801074A CN1801074A (en) | 2006-07-12 |
CN100361067C true CN100361067C (en) | 2008-01-09 |
Family
ID=36811110
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004100116517A Expired - Fee Related CN100361067C (en) | 2004-12-31 | 2004-12-31 | Paging method for printed files |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100361067C (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101187850B (en) * | 2006-11-16 | 2010-05-26 | 北京书生国际信息技术有限公司 | Electronic document page-by-page printing method |
CN102779127A (en) * | 2011-05-11 | 2012-11-14 | 宏碁股份有限公司 | Terminal device and file synchronization method |
CN107943426B (en) * | 2017-10-13 | 2021-02-19 | 用友网络科技股份有限公司 | Document paging printing method, document paging printing system and computer device |
CN108399054B (en) * | 2018-02-28 | 2021-08-06 | 北京春草软件科技有限责任公司 | Document segmentation printing method |
CN113655973B (en) * | 2021-07-16 | 2023-12-26 | 深圳价值在线信息科技股份有限公司 | Page segmentation method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003260821A (en) * | 2002-03-07 | 2003-09-16 | Fuji Xerox Co Ltd | Imaging apparatus, imaging system and imaging method |
CN1129061C (en) * | 1997-05-12 | 2003-11-26 | 莱克斯马克国际公司 | Method and apparatus for prints |
JP2004284265A (en) * | 2003-03-24 | 2004-10-14 | Canon Inc | Printing control method and device |
-
2004
- 2004-12-31 CN CNB2004100116517A patent/CN100361067C/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1129061C (en) * | 1997-05-12 | 2003-11-26 | 莱克斯马克国际公司 | Method and apparatus for prints |
JP2003260821A (en) * | 2002-03-07 | 2003-09-16 | Fuji Xerox Co Ltd | Imaging apparatus, imaging system and imaging method |
JP2004284265A (en) * | 2003-03-24 | 2004-10-14 | Canon Inc | Printing control method and device |
Also Published As
Publication number | Publication date |
---|---|
CN1801074A (en) | 2006-07-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5187057B2 (en) | Layout printing system, layout document browsing method, and program | |
US8610929B2 (en) | Image processing apparatus, control method therefor, and program | |
US8891125B2 (en) | Method and system for automatically reducing page count in a document printing process | |
KR20060133493A (en) | Image synthesizing apparatus, and control method and program therefor | |
JP2006341614A (en) | Image forming apparatus and image forming method | |
US8248665B2 (en) | Information processing device, printing device, information processing system, method, computer-readable medium, and computer data signal | |
US8199967B2 (en) | Image processing apparatus, image processing method, and storage medium | |
US20070127085A1 (en) | Printing system, printing method and program thereof | |
TWI274274B (en) | Method for dividing print document | |
JP2016063400A (en) | Image processing system and image processing method | |
CN100361067C (en) | Paging method for printed files | |
US8570619B2 (en) | Control devices for scanning documents, systems including such control devices, and non-transitory, computer-readable media storing instructions for such control devices | |
JP4165435B2 (en) | Image forming apparatus and program | |
JP6917285B2 (en) | Image forming device | |
JP4928998B2 (en) | Image forming apparatus and image forming method | |
CN100363945C (en) | A Method of Rapid Recognition of Colored Pages Based on Preview Image | |
JP2007148486A (en) | Method for supporting document browsing, system for the same, document processor, and program | |
JP2018198377A (en) | Image forming apparatus | |
JP2016048879A (en) | Image forming apparatus, control method of image forming apparatus, and program | |
JP6507809B2 (en) | Printing instruction device, printing system and program | |
US20060274390A1 (en) | Image processing device, image processing method, and image processing program product allowing reproduction of information lost in printing | |
JP2019220906A (en) | Image processing system, print instruction device, image processing device, and program | |
CN113448522B (en) | Variable data printing output method and device, terminal equipment and readable storage medium | |
US20240040055A1 (en) | Image forming apparatus, non-transitory computer readable medium, and image forming method | |
TWI830999B (en) | Electronic device and document processing system with cost saving function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080109 Termination date: 20211231 |