CN105183403B - A kind of printing management-control method based on CUPS frameworks - Google Patents

A kind of printing management-control method based on CUPS frameworks Download PDF

Info

Publication number
CN105183403B
CN105183403B CN201510603245.8A CN201510603245A CN105183403B CN 105183403 B CN105183403 B CN 105183403B CN 201510603245 A CN201510603245 A CN 201510603245A CN 105183403 B CN105183403 B CN 105183403B
Authority
CN
China
Prior art keywords
user
printing
printer
cups
frameworks
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
CN201510603245.8A
Other languages
Chinese (zh)
Other versions
CN105183403A (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.)
Xidian University
Original Assignee
Xidian University
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 Xidian University filed Critical Xidian University
Priority to CN201510603245.8A priority Critical patent/CN105183403B/en
Publication of CN105183403A publication Critical patent/CN105183403A/en
Application granted granted Critical
Publication of CN105183403B publication Critical patent/CN105183403B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention discloses a kind of printing management-control method based on CUPS frameworks, the step of it includes, is:1. design and the virtual printer driving based on CUPS frameworks is installed.2. the access to virtual printer and physical printer is controlled by CUPS.3. the physical printer that configuration different user can use.4. monitor user's printing.5. user selects physical printer.6. generate print record.7. storage printing content and embedded user profile.8. printing content is exported by physical printer.9. improve print record.The present invention is applied to all operating systems using CUPS frameworks, including Unix system, (SuSE) Linux OS, domestic operating system and Mac systems.By realizing print management to the access control of physical printer and by providing basic data to printing the processing of content and being stored as follow-up document source to follow the trail of and audit.

Description

A kind of printing management-control method based on CUPS frameworks
Technical field
The invention belongs to document print management and control technical field, and in particular to based on CUPS (Common Unix Printing System, general Unix print systems) framework printing management-control method.
Background technology
With the swift and violent hair of digitizing technique, current many industries and individual are universal using electronic document processing data With preserve information, and frequently by printing, the approach such as duplicating includes the content in electronic document on paper, for reading And propagation.This process is undoubtedly a significant challenge to data and information privacy.The problem of existing includes:How user is controlled Paper waste and printer is avoided to be lost using printer;How the user profile that carries out printing is recorded, it is and embedding Enter makes the paper document to be formed have obvious identification presentation into print data, is easy to paper document management and source to follow the trail of.
Occur being directed to many achievement in research and maturation of the printing management-control method under Windows operating system at present Application system, such as monitoring printing audit technique research Li Lingfeng, Hao Dongbai, Zhang Cheng, Huang Hao " monitoring printing audit techniques Research " (《Computer engineering and design》, 2009,30 (2):Common under Windows systems four kinds are disclosed in 484-486) to beat Print monitoring technology.Founder Group provides in a kind of " document print management and control and document tracing method and system " patent Printing management and control and document tracing method etc..
But under a linux operating system, not yet occur corresponding achievement in research both at home and abroad.It is wide with linux system General use, the importance of the printing management-control method under the system are increasingly lifted.In addition, current domestic operating system is all Flavor based on Linux, with the propulsion of production domesticization and increasingly strict, the printing under this type operating system of security requirements Management-control method is also more and more significant.Because linux system and domestic operating system are as printing using CUPS Unite framework, therefore, study the printing management-control method based on CUPS frameworks, be to realize linux system and domestic operating system is lower beats The key point of management and control is printed, the printing management-control method based on CUPS frameworks is developed and is significant.
The content of the invention
In view of the shortcomings of the prior art, the present invention is intended to provide a kind of printing management-control method based on CUPS frameworks, with solution The problems such as certainly (SuSE) Linux OS and print control in domestic operating system and type information record.This printing management-control method Suitable for all operating systems using CUPS frameworks, including Unix system, (SuSE) Linux OS, domestic operating system and Mac systems;By realizing print management to the access control of physical printer and by the processing and storage to printing content Basic data is provided for follow-up document source tracking and audit.
To achieve these goals, the present invention adopts the following technical scheme that:A kind of printing tube prosecutor based on CUPS frameworks Method comprises the following steps:
(1) design and the virtual printer driving based on CUPS frameworks is installed.
(2) by CUPS, to virtual printer and physical printer, (including local printer, printer sharing and network are beaten Print machine) conduct interviews control so that and (this is specified the specified user that all physical printers can only be different from domestic consumer by one The user name of user can be specified by root user, it is assumed that be print_user) access, and virtual printer can be useful by institute Family accesses.
(3) configuring different user can be used for exporting the physical printer of printing content, and form configuration file.
(4) user's printing is monitored:User is in client terminal start-up printing, when user selects in printing interface When selecting virtual printer startup printing, virtual printer obtains print request.
(5) virtual printer driving obtains the user name of printing, and the configuration file according to user name from step (3) The middle physical printer list that obtains the user and can use, and show user for selection list
(6) user selects the physical printer title for completing actual printing in physical printer list, empty Intend printer driver record user name, physical printer title, layout and the relevant information of print job of user's selection (including title, number of copies, the time-write interval etc.).
(7) printing content caching is to be protected in PostScr ipt format files and Embedded step (6) by virtual printer driving The user profile deposited
(8) virtual printer is driven through specified user (print_user) and specifies the printing content of caching according to user Layout be sent to user selection physical printer, complete reality output.
(9) virtual printer driving will perform the user name of printing, the physical printer title of user's selection, printing Form and the relevant information of print job form record and preserved, and are easy to follow-up inquiry and audit operation.
The beneficial effects of the present invention are:
First, due at present both at home and abroad also without the printing management-control method for linux system and domestic operating system Achievement in research, therefore the present invention has filled up the technological gap in this field.
Second, because the present invention is based on CUPS frameworks, and the framework is in Linux, domestic operating system and Mac systems All it is widely used under system, therefore it is suitable for these systems, possess stronger versatility.
3rd, the present invention obtains and printed content note using virtual printer driving under CUPS frameworks to realize user profile Record and redirection, it is not necessary to the background program run always in systems so that the present invention will not take multicomputer system Resource.
Brief description of the drawings
Fig. 1 is the overall structure diagram of the printing managing and control system based on CUPS frameworks;
Fig. 2 is a kind of flow chart of the printing management-control method based on CUPS frameworks of the present invention.
Embodiment
Below with reference to accompanying drawing, the invention will be further described, it is necessary to which explanation, the present embodiment is with this technology side Premised on case, detailed embodiment and specific operating process are given, but protection scope of the present invention is not limited to this reality Apply example.
The overall structure of printing managing and control system based on CUPS frameworks as shown in Figure 1.The method of the present invention is with CUPS framves Based on structure, including virtual printer driving, user configuration, print record, multiple physical printers.Virtual printer drive and Physical printer is arranged on CUPS frameworks, and user configuration and print record are stored in system storage.
CUPS is the bottom architecture of the present invention, for supporting virtual printer and physical printer, and to printer browsing Control provides support.
Virtual printer is driven for obtaining printing user name, prints content and related type information.
User configuration preserves the configuration information of different user, including operable physical printer list etc., and user configuration is The operation interface for being shown to user provides data
Print record preserves user name, copy number, title, number of pages and printing content of printing etc., is follow-up The function such as inquiry and audit provides data.
Physical printer is connected by the communications cable with computer, receives the printed document of embedded user profile, is completed real The printing on border, obtains paper document.
For the flow of printing management-control method of the present invention based on CUPS frameworks referring to the drawings 2, its step is as follows:
Step 1. designs and installs the virtual printer driving based on CUPS frameworks
The virtual printer driving based on PostScript is designed, including a printer describes file and an order line Program, printer describe information and the user interface configuration that file includes virtual printer driving, and order line program is in CUPS framves It is referred to as filter program in structure, for obtaining CUPS incoming printing information and content.File is described by printer After virtual printer is arranged under CUPS, all printings carried out by the virtual printer and relevant information all can It is sent to the filter program of the virtual printer.
Step 2. configures the access control of virtual printer and physical printer
The access rights of all physical printers are configured in CUPS WEB operation interfaces, only allowing specified user, (this is specified User is specified by the user with root authority, present embodiment assumes that specifying the entitled print_user of user) access, configuration is virtual The access rights of printer, it is allowed to which all users access.Finally so that all physical printers can only be visited by a specified user Ask, so as to realize the control to other users access printer.
Step 3. configuration different user can be used for exporting the physical printer of printing content, and form configuration file.Should Configuration file can be any types file (including database), as long as can be accessed in virtual printer driving.
Step 4:Monitor user's printing
User starts printing on computers, is beaten when user selects virtual printer to start in printing interface During print operation, virtual printer obtains print request, and the print request will be sent to the filter program of virtual printer.
Step 5. selects physical printer
The command line parameter of the filter program of virtual printer driving includes operation ID, printing user name, operation The information such as title, number of copies, layout option.After the user name for obtaining printing, matched somebody with somebody according to user name from user Put and the physical printer list that the user can use is obtained in file, and list is showed into user for choosing by dialog box Select.
Step 6. generates print record
User is selected in physical printer list for completing the physical printer title of actual printing, and is transmitted To the filter program of virtual printer, filter program is by user name, physical printer title, layout, title, copy The information such as quantity, time-write interval are stored in print record file.
Step 7. storage printing content and embedded user profile
The filter program of virtual printer driving obtains PostScript forms from the input of order line program standard and beaten Content is printed, user profile (including user name etc.) is then embedded in printing content with PostScript forms, and content will be printed Save as PostScript format files
Step 8. is exported by physical printer
The filter program of virtual printer driving is after receiving and having handled all pages, with the finger created in step 2 Determine user (print_user) and create print progress, the layout that the printing content of caching is specified according to user is sent to use The physical printer of family selection, completes reality output.
Step 9. improves print record
Virtual printer is driven after printed document is issued into actual physics printer, actual to print shape by document number of pages The relevant informations such as state add to step 6 and form complete print record, are easy to follow-up inquiry and audit operation.
For those skilled in the art, technical scheme that can be more than and design, make various corresponding Change and deform, and all these change and deformation should be construed as being included within the protection domain of the claims in the present invention.

Claims (5)

1. a kind of printing management-control method based on CUPS frameworks, it is characterised in that it comprises the following steps:
S1, design and the virtual printer driving based on CUPS frameworks is installed;
S2, virtual printer and physical printer are conducted interviews and controlled by CUPS so that physical printer can only be by one The individual specified user for being different from domestic consumer accesses, and virtual printer can be accessed by all users;
S3, configuring each user can be used for exporting the physical printer of printing content, and form configuration file;
S4, monitor the printing of all users;
S5, select physical printer:Virtual printer driving obtains the user name for carrying out printing, and according to user name from step The physical printer list that the user can use is obtained in rapid S3 configuration file, and will corresponding physics list of Printers displaying It is for selection to user;
S6, generate print record:User selects the physical printed for completing actual printing in physical printer list Machine title, virtual printer driving record user name, physical printer title, layout and the print job of user's selection Information formed print record file;
S7, it is the use that is preserved in PostScript format files and Embedded step S6 that virtual printer driving, which will print content caching, Family information;
S8, virtual printer are driven through specified user and are sent to the layout that the printing content of caching is specified according to user The physical printer of user's selection, complete actual printout;
Document number of pages, actual print state information supplement are saved in print record file by S9, virtual printer driving.
2. the printing management-control method based on CUPS frameworks according to claim 1, it is characterised in that the step S1 is specifically wrapped Include following process:The virtual printer driving based on PostScript is designed, including a printer describes file and a life Line program is made, printer describes information and the user interface configuration that file includes virtual printer driving;Order line program exists It is filter program in CUPS frameworks, for obtaining CUPS incoming printing information and content;Printer describes file will After virtual printer is arranged under CUPS frameworks, all printings carried out by the virtual printer and relevant information are all sent out It is sent to the filter program of the virtual printer.
3. the printing management-control method according to claim 2 based on CUPS frameworks, it is characterised in that:In the step S2 The user name for being different from the specified user of domestic consumer is set by the user with root authority.
4. the printing management-control method according to claim 3 based on CUPS frameworks, it is characterised in that:The step S4 is specific It is as follows including process:The printing of all users is monitored, user is after client terminal start-up printing, when user grasps in printing When making to select virtual printer startup printing in interface, virtual printer obtains print request.
5. the printing management-control method according to claim 4 based on CUPS frameworks, it is characterised in that:The step S5 is specific It is as follows including process:The command line parameter of the filter program of virtual printer driving includes operation ID, printing user name, Job header, number of copies, layout option information;After obtaining printing user name, matched somebody with somebody according to user name from user Put and the physical printer list that the user can use is obtained in file, and list is showed into user for choosing by dialog box Select.
CN201510603245.8A 2015-09-21 2015-09-21 A kind of printing management-control method based on CUPS frameworks Active CN105183403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510603245.8A CN105183403B (en) 2015-09-21 2015-09-21 A kind of printing management-control method based on CUPS frameworks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510603245.8A CN105183403B (en) 2015-09-21 2015-09-21 A kind of printing management-control method based on CUPS frameworks

Publications (2)

Publication Number Publication Date
CN105183403A CN105183403A (en) 2015-12-23
CN105183403B true CN105183403B (en) 2018-02-23

Family

ID=54905512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510603245.8A Active CN105183403B (en) 2015-09-21 2015-09-21 A kind of printing management-control method based on CUPS frameworks

Country Status (1)

Country Link
CN (1) CN105183403B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700834B (en) * 2015-12-31 2019-04-09 北京恒安讯佳信息安全技术有限公司 A kind of method and device monitoring hard copy task(HCT)
CN105740716B (en) * 2016-01-19 2018-11-27 北京邮电大学 A kind of network printing auditing method based on iptables
CN107992273B (en) * 2017-11-15 2020-11-13 北信源系统集成有限公司 Printing control method and system based on CUPS
WO2020237581A1 (en) 2019-05-30 2020-12-03 华为技术有限公司 Method, apparatus and system for printing document in virtual machine by using terminal device
CN110865776B (en) * 2019-09-30 2023-07-04 浙江口碑网络技术有限公司 Bill printing method and device
CN111176591B (en) * 2020-01-03 2024-05-24 深信服科技股份有限公司 Print auditing method, device, equipment and medium based on CUPS system
CN111240610A (en) * 2020-01-08 2020-06-05 中孚安全技术有限公司 Printing process management and control method, system, terminal and storage medium
CN111679800A (en) * 2020-06-10 2020-09-18 天津光电久远科技有限公司 Official document anti-counterfeiting printing system based on domestic operating system
CN113467725B (en) * 2021-06-16 2022-06-10 湖南中观天下科技有限公司 Output management method, system, equipment and medium for Linux platform graphic application program
CN113791748A (en) * 2021-09-22 2021-12-14 北京鼎普科技股份有限公司 Printing process management and control method, system and storage medium
CN113900603B (en) * 2021-12-10 2022-04-01 统信软件技术有限公司 Analog printing method, computing device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523255A (en) * 2011-11-30 2012-06-27 北京京航计算通讯研究所 Printing security monitoring and auditing system based on virtual printing technique
CN103336923A (en) * 2013-03-06 2013-10-02 西安电子科技大学 Print monitoring system and method for universal printer

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120092700A1 (en) * 2010-10-15 2012-04-19 Benedek Laszlo Csaba Mobile printing framework

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523255A (en) * 2011-11-30 2012-06-27 北京京航计算通讯研究所 Printing security monitoring and auditing system based on virtual printing technique
CN103336923A (en) * 2013-03-06 2013-10-02 西安电子科技大学 Print monitoring system and method for universal printer

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于嵌入式LINUX系统的打印审计系统前端;蒋聚旸等;《微型电脑应用》;20061231;第22卷(第7期);第33-37页 *

Also Published As

Publication number Publication date
CN105183403A (en) 2015-12-23

Similar Documents

Publication Publication Date Title
CN105183403B (en) A kind of printing management-control method based on CUPS frameworks
JP5203978B2 (en) Printer, client terminal, control method therefor, and program
CN102768619B (en) Information processor and information processing method
US8264703B2 (en) Information processing method and apparatus thereof
CN102591597B (en) Information processing apparatus and method for controlling the same
CN102722345B (en) Messaging device and control method thereof
CN104717395B (en) Print service provides device and print system
JP5834566B2 (en) Information processing apparatus, program, and information display apparatus
CN102446077A (en) Printing system, printing method, print server, control method, and program
JP2004355610A (en) Document processing system, document processing method, computer readable storage medium, and program
CN105719329A (en) Accounting voucher generating method and accounting voucher generating system
JP5538995B2 (en) Information processing apparatus, information processing method, and program
DE10238591A1 (en) Hard copy generation assistance method e.g. for secure government documents involves packing selected document file and translator in job package which is encrypted and then transmitted to hard copy generation device
JP4586057B2 (en) Image processing apparatus, image processing method, and recording medium
JP4895785B2 (en) PRINT LOG DATA MANAGEMENT SYSTEM, PRINT LOG DATA MANAGEMENT DEVICE, PRINT LOG DATA COLLECTION DEVICE, ITS DATA MANAGEMENT METHOD, AND PROGRAM
JP2005070846A (en) Stored program, computer readable medium storing it, storage method, and storage device
JP4881171B2 (en) Host output processing system, host output processing method, host output processing program, and recording medium
JP5984400B2 (en) Storage device, control method therefor, and program
JP5471198B2 (en) Integrated management apparatus, integrated management system, integrated management method, integrated management program, and recording medium recording the program
JP2009181344A (en) Information processing apparatus, drawing instruction generation device, information processing system, method of controlling information processing apparatus, method of controlling drawing instruction generation device and program
JP2003308191A (en) Print system, information processor, information processing method, and control program
CN104077087A (en) Non-transitory computer-readable storage medium and localization method for printer driver
JP2015082183A (en) Document creation system
CN104063188B (en) Document management apparatus and document management method
JP2008037031A (en) Image processing device and image processing system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Wan Bo

Inventor after: Meng Guanglan

Inventor after: Pan Rong

Inventor after: Wang Quan

Inventor after: Liu Gang

Inventor after: Tian Yumin

Inventor after: Liu Jinhui

Inventor after: Cai Weiwen

Inventor before: Wan Bo

Inventor before: Pan Rong

Inventor before: Wang Quan

Inventor before: Liu Gang

Inventor before: Tian Yumin

Inventor before: Liu Jinhui

Inventor before: Cai Weiwen