CN101408836B - Print implementing method - Google Patents

Print implementing method Download PDF

Info

Publication number
CN101408836B
CN101408836B CN2007101756463A CN200710175646A CN101408836B CN 101408836 B CN101408836 B CN 101408836B CN 2007101756463 A CN2007101756463 A CN 2007101756463A CN 200710175646 A CN200710175646 A CN 200710175646A CN 101408836 B CN101408836 B CN 101408836B
Authority
CN
China
Prior art keywords
web page
page bitmap
printer
printing
print
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.)
Active
Application number
CN2007101756463A
Other languages
Chinese (zh)
Other versions
CN101408836A (en
Inventor
王东临
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sursen Electronic Technology Co., Ltd.
Original Assignee
BEIJING SURESENSE INTERNATIONAL INFORMATION TECHNOLOGY Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by BEIJING SURESENSE INTERNATIONAL INFORMATION TECHNOLOGY Co Ltd filed Critical BEIJING SURESENSE INTERNATIONAL INFORMATION TECHNOLOGY Co Ltd
Priority to CN2007101756463A priority Critical patent/CN101408836B/en
Publication of CN101408836A publication Critical patent/CN101408836A/en
Application granted granted Critical
Publication of CN101408836B publication Critical patent/CN101408836B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

The invention discloses a method for realizing printing. In the invention, corresponding web page bitmap is generated according to a file to be printed; the generated web page bitmap is converted to a corresponding format of a target printer while a public GDI function in Windows operation system does not need to be called; the generated web page bitmap is output to the target printer by a hardware port directly but not by the port in the Windows operation system, thus avoiding applications similar to Hook program intercepting print data; furthermore, the print data generated in the invention is web page bitmap but not various vector graphs or text information, therefore even if the print data is intercepted by other ways, the information in the file to be printed is not easy to be recovered, thus improving the security of printing.

Description

A kind of printing implementation method
Technical field
The present invention relates to printing technique, particularly a kind of can the raising printed safe printing implementation method.
Background technology
Electronic document can become paper document by printer prints, so that pass round, file.Referring to Fig. 1, existing printing implementation method can realize as follows:
Step 101 is installed the print driver that mates with target printer in Windows operating system, wherein, the print driver that mates with target printer is provided by the manufacturer of this printer usually.
Step 102, related application interface (API) function in the application call Windows operating system is created printer apparatus description list (DC).
Step 103 is called different graphic equipment interface (GDI) function in the Windows operating system, file to be printed is handled obtaining print data, and is sent to the print driver of corresponding printer.
In this step, handling the print data that obtains can comprise: polar plot and/or Word message etc.
Step 104, the driver in the Windows operating system is converted to the form that target printer can be discerned with the print data that receives, and to target printer, prints output by the port transmission in the Windows operating system.
So far, this flow process finishes.
In some application scenario, printing security is a primary demand.For example, in a government office, in bank and the secret unit, the user when printing, wishes to prevent that print data is stolen, stops the potential safety hazard and strict printing umber, the print right etc. controlled of network printing to carrying out strict control to some important document.
Yet, though printing implementation method as shown in Figure 1 can realize printing,, can't satisfy above-mentioned user's request because there are the following problems, thereby can't guarantee to print security:
1) this method is based on that Windows operating system realizes, but because the technology publicity of Windows operating system, with and have some security breaches, thereby can utilize various application programs to intercept and capture print data at an easy rate by Windows operating system, make print data divulge a secret.
For example, the GDI function of Windows operating system be disclose public, can monitor all GDI functions with simple Hook (hook) program, can intercept and capture its print data of exporting to print driver by Textout (text output) interface of GDI function, thereby recover information in the current print file by print data.
And print data is polar plot and/or Word message, thereby is easy to recover information in the file to be printed according to the print data of intercepting and capturing.
2) print driver is provided by the manufacturer of corresponding printer usually, and print driver is opaque, the user can't know whether comprised the watchdog routine that is used to intercept and capture print data in this print driver, thereby makes printing have the potential safety hazard of revealing print data.
3) in the print setup interface that print driver provides, the user can be provided with the printing umber of printing in the controlled variable arbitrarily.This application in some industry can not allow, and for example in a government office, for some important official documents, need carry out strict control to the umber of printing, and reveals to prevent file.And print driver can't limit printing umber.
4) in the print setup interface that print driver provides, the user can select the network printing port to realize network printing by revising the print.er port of printing in the controlled variable.And in the network printing process, just steal easily by the print data of Network Transmission, make print data divulge a secret.But print driver can't limit selecting the network printing port, thereby the potential safety hazard that can't avoid network printing to bring.
5) because the existing implementation method of printing is exported to printer by the port of Windows operating system with print data, and the print setup interface that provides by print driver, the user also can pass through to revise the print.er port of printing in the controlled variable, thereby print data can be printed to e-file.And since e-file be easy to duplicate, transmit, make that the information in the file to be printed is easy to reveal.For example, if the user selects certain print.er port to be " File ", and specify printing path, then print driver just can not send to print data printer, but directly is printed as e-file.But print driver can't limit above-mentioned printing model.
As seen, there is more potential safety hazard in the existing implementation method of printing, makes that the printing security is lower.
Summary of the invention
In view of this, a fundamental purpose of the present invention is, a kind of printing implementation method is provided, and can improve the security of printing.
According to an above-mentioned fundamental purpose, a kind of printing implementation method provided by the invention comprises:
Generate the corresponding page bitmap according to file to be printed;
The web page bitmap that generates is converted to the form of target printer correspondence, and exports to target printer;
Wherein, describedly generate the corresponding page bitmap according to file to be printed and comprise:
File to be printed is resolved, generate the primitive data of the information in the expression file to be printed;
According to the printing controlled variable that is provided with, the primitive data that generates is carried out the dot matrix processing, be converted to the web page bitmap that constitutes by dot array data.
The printing controlled variable of described setting can comprise: the hardware port of printer, printer model, print size, resolution, paper size, color, printing umber.
Described according to the printing controlled variable that is provided with, the primitive data that generates is carried out the dot matrix processing, being converted to the web page bitmap that is made of dot array data is: in conjunction with size, the resolution of print size, the primitive data that generates is carried out the dot matrix processing, be converted to the web page bitmap that constitutes by dot array data.
Described web page bitmap with generation is converted to before the form of target printer correspondence, and this method further comprises: hardware port and/or printer model according to printer are determined target printer.
Described web page bitmap with generation is converted to before the form of target printer correspondence, and this method further comprises: web page bitmap is compressed processing.
Described compression is handled and is comprised: RLE compression and/or JPEG compression.
Web page bitmap after the format conversion is exported to target printer is: the web page bitmap after the format conversion is directly exported to target printer by target printer corresponding hardware port.
Describedly be output as segmentation output.
Further described printing controlled variable is carried out write-protect.
As seen from the above technical solution, the present invention generates the corresponding page bitmap according to file to be printed, then the web page bitmap that generates is converted to the form of target printer correspondence, and need not to call GDI function public in the Windows operating system, thereby having avoided being similar to application program such as Hook program intercepts and captures print data; And the print data that generates among the present invention is a web page bitmap, rather than various polar plot or Word message, therefore, even if print data is intercepted and captured by other approach, also is difficult for recovering the information in the file to be printed, thereby has improved the printing security.
Among the present invention, carry out write-protect to printing controlled variable in advance.Like this, the user can't print umber by hack, prints umber thereby can get final product strict control in print procedure; Printer model can only also can only be the direct hardware port that links to each other of local printer for the hardware port of the model of local printer and printer, and the user can't hack, thereby has masked the network printing pattern.Like this, carry out network printing by revising print.er port, further improved the printing security with regard to having avoided the user.
And, the direct access hardware port of printing implementation method among the present invention, can also avoid in the existing printing implementation method, by print.er port being revised as " File " and specifying the mode of printing path, directly print data is printed as e-file, thereby more strictly control the printout of print data, avoided the information leakage in the print file, further improved the printing security.
Description of drawings
Fig. 1 is the existing schematic flow sheet of printing implementation method.
Fig. 2 is for printing the schematic flow sheet of implementation method among the present invention.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in more detail.
Among the present invention, generate the corresponding page bitmap, then the web page bitmap that generates is converted to the form of target printer correspondence, and exports to target printer according to file to be printed.
Fig. 2 is for printing the schematic flow sheet of implementation method among the present invention.As shown in Figure 2, the printing implementation method among the present invention comprises:
Step 201 is resolved file to be printed, generates the primitive data of the information in the expression file to be printed.
In this step, can travel through file to be printed, it be resolved to decomposite primitive data, for example font, figure, image.By analysis decomposites the operating process of primitive data to file to be printed, can realize according to existing mode.
Step 202 according to the printing controlled variable that is provided with, is carried out the dot matrix processing to the primitive data that generates, and is converted to the web page bitmap that is made of dot array data.
Wherein, the printing controlled variable of setting can comprise: the hardware port of printer, printer model, print size, resolution, paper size, color, printing umber etc.According to the hardware port and/or the printer model of printer, can determine that the printer that links to each other with this port is a target printer.
In this step, can convert primitive data to web page bitmap, be associated with the printing demand to guarantee the dot array data in the web page bitmap in conjunction with printing controlled variable such as the size of for example print size, resolution.
After primitive data carried out the dot matrix processing, primitive data did not exist, and all was the web page bitmap that dot array data constitutes.Like this, can avoid external program direct result primitive data, and recover information in the file to be printed according to primitive data easily.
Step 203 according to the controlled variable of configuration, for example, is printed language, and dot array data is handled, and is converted to the form that target printer can be discerned, with the web page bitmap after the format conversion as print data.
In this step, format conversion is the process that reorganizes dot array data; If carry out format conversion, then in the practical application, can set in advance the language that multiple printer is supported, for example PS language and PCL language etc. according to actual needs according to printing the prophet; Format conversion process related in this step can realize according to existing mode.
Owing to the limited processing ability of printer, must reduce to be transported to the data volume of printer as much as possible, therefore, in this step, can also compress web page bitmap, different printer languages and version are depended in the selection of compression algorithm.General compression algorithm has RLE lossless compress, JPEG compression etc.The invention provides compression mechanism flexibly, when resolution data, can be according to the compression algorithm of the type selecting optimum of data, for example, for common monochromatic text, then can select the RLE compression, and for the information in the file to be printed of coloured image or form complexity, then can select the JPEG compression algorithm, also can all use two kinds of algorithms to compress in any case simultaneously, thereby reach optimum compression effectiveness.
Step 204, the hardware port of direct access destination printer, the web page bitmap after the hardware port of target printer sends conversion.
In this step, directly the visit LPT is with the pulse signal of control print.er port output, utilize signal interruption to realize the output of print data, and never call the GDI function that operating system provides, the also printed driver that does not need printer manufacturer to provide, thereby in the time of can avoiding printing by operating system and third party's printer driver, print data is intercepted and captured.Consider the security of print data and the ability to bear of target printer, when the web page bitmap after the hardware port transmission conversion of target printer, can adopt the segmentation way of output, that is to say, size according to default every section, print data is carried out staging treating, and order writes print.er port, with the processing intensity of effective reduction printer, increase print speed, and, even if print data is intercepted and captured, only can not intercept and capture the Print All data once yet.
So far, this flow process finishes.
By above-mentioned flow process as seen, printing implementation method provided by the invention generates the corresponding page bitmap according to file to be printed, then the web page bitmap that generates is converted to the form of target printer correspondence, and need not to call GDI function public in the Windows operating system, and directly export to target printer by hardware port, rather than export to target printer by the port in the Windows operating system, intercept and capture print data thereby avoided being similar to application program such as Hook program; And the print data that generates among the present invention is a web page bitmap, rather than various polar plot or Word message, therefore, even if print data is intercepted and captured by other approach, also is difficult for recovering the information in the file to be printed, thereby has improved the printing security.
In the practical application, carry out write-protect to printing controlled variable in advance, make the user can't to print the controlled variable hack as.To print controlled variable and carry out safe handling in advance, or be stored in the ROM (read-only memory) (ROM) and all can realize write-protect.
For example, if user's desired modifications is printed umber, then input preset password or input user profile are carried out authentication earlier, have only the correct or authentication of password by the time can make amendment to the printing umber.Like this, can strict control print umber in print procedure, the user can't print umber by other the interface modification that is provided with.
Again for example, printer model can only also can only be the direct hardware port that links to each other of local printer for the hardware port of the model of local printer and printer.Wherein, local printer does not comprise the printer that links to each other with hardware port by network.Like this, even if comprise a plurality of optional printer models and hardware port in the printing controlled variable, and can select arbitrarily by the user, but because all printer models and the equal corresponding local printer of hardware port and be stored among the ROM, and the user can only select from the printer model that disposed and/or hardware port and can't it be revised, therefore, no matter how the user selects, and all can not realize network printing.Thereby masked the network printing pattern.Like this, just avoided the user to carry out network printing by revising port.
And, because the direct access hardware port of printing implementation method among the present invention, thereby can avoid in the existing printing implementation method, by print.er port being revised as " File " and specifying the mode of printing path, directly print data is printed as e-file, thereby more strictly control the printout of print data, avoided the information leakage in the print file.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to and replace and improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. print implementation method for one kind, it is characterized in that this method comprises:
Generate the corresponding page bitmap according to file to be printed;
The web page bitmap that generates is converted to the form of target printer correspondence, and exports to target printer;
Wherein, describedly generate the corresponding page bitmap according to file to be printed and comprise:
File to be printed is resolved, generate the primitive data of the information in the expression file to be printed;
According to the printing controlled variable that is provided with, the primitive data that generates is carried out the dot matrix processing, be converted to the web page bitmap that constitutes by dot array data.
2. the method for claim 1 is characterized in that, the printing controlled variable of described setting can comprise: the hardware port of printer, printer model, print size, resolution, paper size, color, printing umber.
3. method as claimed in claim 2, it is characterized in that, described according to the printing controlled variable that is provided with, the primitive data that generates is carried out the dot matrix processing, being converted to the web page bitmap that is made of dot array data is: in conjunction with size, the resolution of print size, the primitive data that generates is carried out the dot matrix processing, be converted to the web page bitmap that constitutes by dot array data.
4. method as claimed in claim 2 is characterized in that, described web page bitmap with generation is converted to before the form of target printer correspondence, and this method further comprises: hardware port and/or printer model according to printer are determined target printer.
5. as any described method in the claim 1 to 4, it is characterized in that described web page bitmap with generation is converted to before the form of target printer correspondence, this method further comprises: web page bitmap is compressed processing.
6. method as claimed in claim 5 is characterized in that, described compression is handled and comprised: RLE compression and/or JPEG compression.
7. as any described method in the claim 1 to 4, it is characterized in that, the web page bitmap after the format conversion is exported to target printer be: the web page bitmap after the format conversion is directly exported to target printer by target printer corresponding hardware port.
8. method as claimed in claim 5 is characterized in that, describedly is output as segmentation output.
9. method as claimed in claim 1 or 2 is characterized in that, further described printing controlled variable is carried out write-protect.
CN2007101756463A 2007-10-09 2007-10-09 Print implementing method Active CN101408836B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101756463A CN101408836B (en) 2007-10-09 2007-10-09 Print implementing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101756463A CN101408836B (en) 2007-10-09 2007-10-09 Print implementing method

Publications (2)

Publication Number Publication Date
CN101408836A CN101408836A (en) 2009-04-15
CN101408836B true CN101408836B (en) 2010-08-18

Family

ID=40571857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101756463A Active CN101408836B (en) 2007-10-09 2007-10-09 Print implementing method

Country Status (1)

Country Link
CN (1) CN101408836B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866868B (en) * 2012-09-07 2015-09-02 沈阳通用软件有限公司 GDI hook technology is utilized to realize the method for watermark printing
CN103500296B (en) * 2013-09-29 2017-01-18 北京溯源鸿业科技有限公司 Inlaying method and device of digital watermarks in text documents
CN104972743B (en) * 2014-04-04 2016-08-31 北大方正集团有限公司 Ink jet printing method and device
CN104636092B (en) * 2014-12-30 2018-06-12 珠海赛纳打印科技股份有限公司 A kind of image forms control system and image formation control method
CN104731537B (en) * 2015-03-26 2019-03-26 北京鼎盾信息科技有限公司 A kind of method and apparatus of half virtualization printing
CN107239240A (en) * 2016-03-28 2017-10-10 北大方正集团有限公司 Print control program, print control system and terminal
CN108595151A (en) * 2017-03-14 2018-09-28 长沙博为软件技术股份有限公司 A kind of acquisition methods intercepting printing content based on GDI
CN107256134B (en) * 2017-04-25 2020-01-21 百富计算机技术(深圳)有限公司 Method and device for virtualizing POS terminal as computer printer and POS terminal
CN107193509A (en) * 2017-04-27 2017-09-22 天津市捷威动力工业有限公司 A kind of method for realizing any Windows fonts Chinese character printing
CN108874328B (en) * 2018-06-21 2021-08-31 深圳汉华工业数码设备有限公司 Method and device for generating test file of printer nozzle
CN112445442A (en) * 2020-11-24 2021-03-05 上海汉图科技有限公司 File printing method and device
CN112486434A (en) * 2020-12-15 2021-03-12 航天信息股份有限公司 Certificate vector printing method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1702572A (en) * 2004-05-28 2005-11-30 株式会社东芝 Printer

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1702572A (en) * 2004-05-28 2005-11-30 株式会社东芝 Printer

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
汤晓军,金莉,周宁,梁峰.一种Linux 下的PCL Filter 的设计与实现.计算机应用研究 8.2003,(8),第154页第3节到第155页最后一行,第160页左栏第1行到右栏最后一行. *

Also Published As

Publication number Publication date
CN101408836A (en) 2009-04-15

Similar Documents

Publication Publication Date Title
CN101408836B (en) Print implementing method
CN102446077B (en) Print system and Method of printing
EP2093708B1 (en) Rendering apparatus, rendering method, and storage medium
JP4262025B2 (en) Print control apparatus, image forming apparatus management server, print control method, and computer program
US20070086050A1 (en) Information processing apparatus, image processing method, and machine-readable medium
JP5821916B2 (en) Image forming method, program for image forming system, recording medium recording program for image forming system, and image forming system
CN108875323A (en) watermark adding method and device
JP4375449B2 (en) Image processing apparatus, image processing program, and image processing method
CN101377731A (en) Method and terminal for controlling document print
JP2015230711A (en) Information processor and program, and control method
US8976966B2 (en) Information processor, information processing method and system
JP6632424B2 (en) Information processing apparatus, program and control method
US7284277B2 (en) Secured printing
CN104516690A (en) Printing implementing method
CN101377732A (en) Device, system and method for processing safe document
JP2012051296A (en) Image forming apparatus
US20160021271A1 (en) Image forming apparatus which generates images of web pages
CN108551535B (en) Image forming control system and control method
US20140362418A1 (en) Transmission device, relay device, recording medium and control method of transmission system
US20180246684A1 (en) Information processing system and information processing apparatus
JP2000284936A (en) Printing system
JP2006178939A (en) Information processing apparatus, printing system, printer driver, control method therefor and program
WO2018186879A1 (en) Maximizing a number of colorants used
KR102406769B1 (en) Variable data vector graphic pattern ink pantograph
KR20060117120A (en) Apparatus and method of information preservation in image forming device

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
ASS Succession or assignment of patent right

Owner name: BEIJING SURSEN ELECTRONIC TECHNOLOGY CO., LTD. BEI

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100089 5/F, NORTHERN REAL ESTATE BUILDING, NO.81, ZIZHUYUAN ROAD, HAIDIAN DISTRICT, BEIJING TO: 100191 ROOM 408, TAIXING BUILDING, NO.11, HUAYUAN EAST ROAD, HAIDIAN DISTRICT, BEIJING

TR01 Transfer of patent right

Effective date of registration: 20101027

Address after: 100191, Room 408, Taixing building, 11 Garden East Road, Beijing, Haidian District

Co-patentee after: Beijing Sursen Electronic Technology Co., Ltd.

Patentee after: Beijing Suresense International Information Technology Co., Ltd.

Co-patentee after: Beijing Sursen Network Technology Co., Ltd.

Co-patentee after: Beijing Sursen Digital Library Software Technology Co., Ltd.

Address before: North real estate building 81 No. 100089 Beijing Haidian District Zizhuyuan Road 5 layer

Patentee before: Beijing Suresense International Information Technology Co., Ltd.

ASS Succession or assignment of patent right

Owner name: BEIJING SURSEN ELECTRONIC TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: BEIJING SURESENSE INTERNATIONAL INFORMATION TECHNOLOGY CO., LTD.

Effective date: 20111206

Owner name: TIANJIN SURSEN SOFTWARE TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: BEIJING SURSEN ELECTRONIC TECHNOLOGY CO., LTD. BEIJING SURSEN NETWORK TECHNOLOGY CO., LTD. BEIJING SURSEN DIGITAL LIBRARY SOFTWARE TECHNOLOGY CO., LTD.

Effective date: 20111206

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20111206

Address after: 100191, room 407, Taixing building, 11 Garden East Road, Beijing, Haidian District

Co-patentee after: Tianjin Scholar Software Technology Co., Ltd.

Patentee after: Beijing Sursen Electronic Technology Co., Ltd.

Address before: 100191, Room 408, Taixing building, 11 Garden East Road, Beijing, Haidian District

Co-patentee before: Beijing Sursen Electronic Technology Co., Ltd.

Patentee before: Beijing Suresense International Information Technology Co., Ltd.

Co-patentee before: Beijing Sursen Network Technology Co., Ltd.

Co-patentee before: Beijing Sursen Digital Library Software Technology Co., Ltd.

TR01 Transfer of patent right

Effective date of registration: 20181129

Address after: 100029 Changxin Building 408-409, 39 Anding Road, Chaoyang District, Beijing

Patentee after: Beijing Sursen Electronic Technology Co., Ltd.

Address before: Room 407, Taixing Building, 11 Garden East Road, Haidian District, Beijing, 100191

Co-patentee before: Tianjin Scholar Software Technology Co., Ltd.

Patentee before: Beijing Sursen Electronic Technology Co., Ltd.

TR01 Transfer of patent right
DD01 Delivery of document by public notice
DD01 Delivery of document by public notice

Addressee: Zhao Xin

Document name: Notification of Passing Examination on Formalities