Disclosed herein is a method and apparatus for creating dynamic print drivers that are based on Microsoft's Extensible Markup Language (XML) Paper Specification (XPS) for printing documents in the Windows printing infrastructure using a plurality of proxy filters in a filter pipeline within a print driver, as well as the corresponding apparatus and computer-readable medium.
Print drivers that are based on Microsoft's XML Paper Specification (XPS) contain a set of print processing modules that are called filters and a configuration file that describes which filters a print driver uses, the order in which the filters process the print job, and how data is passed between each filter and the inter-filter communicator (IFC). The configuration file is hardcoded in an XML file. A filter is a dynamic link library (DLL) that exports DLL functions. The specific function or functions that each filter performs depends on the print driver implementation and the printer requirements. A filter may perform only a single function, or it may perform multiple functions. This technique of using filters to perform the functions is limiting because the Microsoft's print spooler implementation forces the selection and order of these filters to be defined and fixed when the print driver is built and because the configuration file cannot be altered due to the requirement that the print driver needs to be certified and digitally signed. Altering any of the files that ship with a print driver would break its digital signature.
A method and apparatus for managing filters in a filter pipeline in a print driver used with an image production device. The method may include configuring a filter pipeline in a print driver with one or more proxy filters, each proxy filter including logic to invoke an associated processing filter to perform functions similar to a corresponding processing filter alone, and enabling the print driver to be at least one of certified and digitally signed with the proxy filter without the associated processing filter being known or present.
Aspects of the embodiments disclosed herein relate to a method for using proxy filters in a filter pipeline in a print driver used with a printing device, as well as corresponding apparatus and computer-readable medium.
The disclosed embodiments may include a method for managing filters in a filter pipeline. The method includes configuring a filter pipeline in a print driver with at least one proxy filter. The proxy filter includes logic to invoke an associated processing filter to perform functions similar to the processing filter alone. The method further includes enabling the print driver to be certified and digitally signed without the processing filter being known or present at the time of certification or digital signing.
The disclosed embodiments may further include an image production device having a print driver. The print driver is configured to include a filter pipeline having a plurality of instances of a proxy filter. Each instance of the proxy filter is capable of being associated with a different processing filter. A combination of an instance of the proxy filter and a processing filter is capable of performing functions similar to functions of the processing filter alone. The print driver is digitally signed with the plurality of instances of the proxy filter in the filter pipeline.
The disclosed embodiments may further include a computer-readable medium storing instructions for managing a print driver for an image production device. The instructions may enable configuring a filter pipeline in a print driver with a proxy filter. The proxy filter includes logic to invoke an associated processing filter perform to the functions supported by the processing filter. The instructions further enable the print driver to be certified and digitally signed without potential processing filters being known or present during a first time period. The instructions then enable the set of processing filters to be updated during a second time period. Then, the print driver is allowed to be processed with the updated set of processing filters without the print driver having to be re-certified or digitally re-signed.
The disclosed embodiments provide a convenient and robust means by which consumers may purchase and add new value-added features to the existing, installed print drivers. Proxy filters instead of the processing filters are used to dynamically bind the set of processing filters at runtime. The combination of a proxy filter and an associated processing filter is configured to perform functions similar to the functions of a processing filter in the filter pipeline within a print driver. Generally, a print driver is developed with a fixed set of filter dynamic link libraries (DLLs). These filter DLLs are declared in the XML configuration file of the print driver. In some embodiments, these filter DLLs are replaced by the proxy filters. Each proxy filter is a standard filter DLL created in compliance with Microsoft's specifications to maintain compatibility. The proxy filters are generic filters that are configured to dynamically look for and load associated processing filters. These processing filters may be associated with the print driver's built-in features or add-in features.
In some embodiments, the print driver is built with a sufficient number of proxy filters to accommodate the print driver's built-in features plus a desired number of add-in features. It is possible that not all of the proxy filters built with a print driver are used. However, since the unused proxy filters add very little overhead to the filter pipeline, they do not noticeably impact the printing performance of the associated image production device.
In some embodiments, there may be multiple instances of an actual proxy filter with each instance of a proxy filter registered with a unique identification (also referred to as class identification or CLSID). These multiple instances of the proxy filter may share the same binary code of the actual proxy filter to avoid redundancy. Using embodiments of the invention, the printer manufacturers may not have to develop, test, and release multiple versions of every print driver, and the consumers may not have to purchase any enhanced version of the print driver, perform their internal print driver certification process, and upgrade the print drivers on all of their computers.
The image production device 100 may include an image production section 120, which includes hardware by which image signals are used to create a desired image, as well as a stand-alone feeder section 110, which stores and dispenses sheets on which images are to be printed, and an output section 130, which may include hardware for stacking, folding, stapling, binding, etc., prints which are output from the marking engine. A print driver may be used. The print driver may include filters to add features to the final print output.
If the printer is also operable as a copier, the printer further includes a document feeder 140, which operates to convert signals from light reflected from original hard-copy image into digital signals, which are in turn processed to create copies with the image production section 120. The image production device 100 may also include a local user interface 150 for controlling its operations, although another source of image data and instructions may include any number of computers to which the printer is connected via a network.
With reference to feeder section 110, the module includes any number of trays 160, each of which stores a media stack 170 or print sheets (“media”) of a predetermined type (size, weight, color, coating, transparency, etc.) and includes a feeder to dispense one of the sheets therein as instructed. Certain types of media may require special handling in order to be dispensed properly. For example, heavier or larger media may desirably be drawn from a media stack 170 by use of an air knife, fluffer, vacuum grip or other application (not shown in the Figure) of air pressure toward the top sheet or sheets in a media stack 170. Certain types of coated media are advantageously drawn from a media stack 170 by the use of an application of heat, such as by a stream of hot air (not shown in the Figure). Sheets of media drawn from a media stack 170 on a selected tray 160 may then be moved to the image production section 120 to receive one or more images thereon. Then, the printed sheet is then moved to output section 130, where it may be collated, stapled, folded, etc., with other media sheets in manners familiar in the art. The printed media may be place on a media stacker 180, for example.
Processor 220 may include at least one conventional processor or microprocessor that interprets and executes instructions. Memory 230 may be a random access memory (RAM) or another type of dynamic storage device that stores information and instructions for execution by processor 220. Memory 230 may also include a read-only memory (ROM) which may include a conventional ROM device or another type of static storage device that stores static information and instructions for processor 220.
Communication interface 280 may include any mechanism that facilitates communication via a network. For example, communication interface 280 may include a modem. Alternatively, communication interface 280 may include other mechanisms for assisting in communications with other devices and/or systems.
ROM 240 may include a conventional ROM device or another type of static storage device that stores static information and instructions for processor 220. A storage device may augment the ROM and may include any type of storage media, such as, for example, magnetic or optical recording media and its corresponding drive.
User interface 150 may include one or more conventional mechanisms that permit a user to input information to and interact with the image production unit 100, such as a keyboard, a display, a mouse, a pen, a voice recognition device, touchpad, buttons, etc., for example. Output section 130 may include one or more conventional mechanisms that output image production documents to the user, including output trays, output paths, finishing section, etc., for example. The image production section 120 may include an image printing and/or copying section, a scanner, a fuser, etc., for example.
The scanner 270 (or image scanner) may be any scanner known to one of skill in the art, such as a flat-bed scanner, document feeder scanner, etc. The image scanner 270 may be a common full-rate half-rate carriage design and can be made with high resolution (600 dpi or greater) at low cost, for example.
The image production device 100 may perform such functions in response to processor 220 by executing sequences of instructions contained in a computer-readable medium, such as, for example, memory 230. Such instructions may be read into memory 230 from another computer-readable medium, such as a storage device or from a separate device via communication interface 280.
The image production device 100 illustrated in
Generally, program modules include routine programs, objects, components, data structures, etc. that performs particular tasks or implement particular abstract data types. Moreover, those skilled in the art will appreciate that other embodiments of the disclosure may be practiced in communication network environments with many types of communication equipment and computer system configurations, including personal computers, hand-held devices, multi-processor systems, microprocessor-based or programmable consumer electronics, and the like.
Operation of the print drivers 290 will be discussed below in relation to
The input and output interfaces for a given proxy filter may be different from one another. Each of the XPS and stream filters are configured to conform to Microsoft's specifications for filters and may be assigned unique class identification (CLSID). As mentioned above, each of the XPS proxy filters 305, 310, 315 and 320 may actually be an instance of a proxy filter and may share the same binary code of the proxy filter to avoid redundancy and overhead.
Referring to
In some embodiments, the configuration data for the proxy filters 302 may be accessed and updated relying upon the automatic synchronization of a particular portion of the system registry from the print server to client computer systems. Each installed print queue has its own synchronized registry key named “PrinterDriverData”. The “PrinterDriverData” key contains information about the print drivers for the network image production devices 100 to which the specified server is connected, where the entries that appear in this key are determined by the installed driver. Further, since the location of the above registry key is automatically kept in synch between the server and the client computer systems by the operating system, the information is made available to the client computer systems.
In the current example, the XPS proxy filters 315 and 320 are not associated with any processing filters. This may be acceptable since these unused proxy filters do not take much overhead and provide flexibility to be associated with other processing filters. In some embodiments, the number of proxy filters included in a filter pipeline is configured to be more than the number of filters shipped with the driver in order to leave room for future additions. It should be noted that, in some embodiments, the techniques described herein may operate with one or more proxy filters.
Priority values may be defined in order to facilitate the correct ordering of the proxy filters. When a print job is processed, each proxy filter is configured to read and process the configuration data and do nothing if the proxy filter is not associated with any processing filter (e.g., proxy filters 315 and 320). Data is simply passed to the next proxy filter in according to the priority values (or order) set in the configuration file. However, when the proxy filter is associated with a processing filter (e.g., proxy filters 305 and 310), the processing filter is loaded, and the proxy filter passes all calls to the processing filter.
It may also be noted, although not shown in
Since any XPS proxy filter can load any XPS processing filter, and any stream proxy filter can load any stream processing filter, processing can be inserted or removed at any point in the filter pipeline and the other processing filters of the same type will be shifted accordingly. This is illustrated in
It may be noted that the annotation option 304 may not need to be identified when the print driver is developed since the configuration of the filter pipeline may be established after the print driver is developed. This ability may enable including proprietary third party filters which may only be licensed to be used with certain products. It may also enable including filters that may not yet be available at the time the print driver is developed. This enables filters to be added, removed, and ordered on the fly without re-certifying or digitally re-signing the print driver.
The processing filters 301 may be invoked during runtime. In some embodiments, the processing filters 301 in a filter pipeline 300, 350 may be updated (e.g., added, removed, etc.). The proxy filters 302 may be defined according to and in compliance with the same specification (e.g., Microsoft's specifications) for filters, for example. The print driver 290 may be developed based on Microsoft's Extensible Markup Language (XML) Paper Specification (XPS), for example. The proxy filters 302 may be configured to dynamically look for and load the corresponding processing filters 301. Some set of processing filters 301 may be shipped with the print driver 290. Some processing filters 301 may be added as optional features, for example.
The print driver 290 with its proxy filters 302 may be certified or digitally signed, for example. It is possible that the print driver 290 may include proxy filters and processing filters. Each of the proxy filters 302 may be selectively associated with the appropriate processing filter 301, for example. A proxy filter 302 may not be associated with more than one processing filters 301, for example. It is possible that not all of the proxy filters 302 configured in the filter pipeline 300, 350 within the print driver 290 are used. During printing operation, when a proxy filter 302 is encountered, the corresponding processing filter 301 may be invoked, for example. At a subsequent time, when it is necessary to update the filter pipeline 300, 350, one or more processing filters 301 may be added, removed, reordered, etc. without having to re-certify and/or digitally re-sign the print driver 290, as shown in step 430, for example. The updating of the set of processing filters 301 may occur at each processing device individually or using a centralized server that forwards the updated set of processing filters to each processing device for installation (automatically or manually).
The filter pipeline 300, 350 may be configured to include multiple instances of the proxy filter 302, where all of the instances of the proxy filter 302 may share the same binary code of the proxy filter 302, and each of the instances of the proxy filter 302 may be associated with a unique identification. In this manner, each of the instances of the proxy filter 302 may be associated with a different processing filter 301. The print driver 290 may be certified and/or digitally signed with the filter pipeline 300, 350 having more instances of the proxy filter 302 more than a number of set of filter codes shipped with the print driver 250. At least one proxy filter 302 in the filter pipeline 300, 350 may not be associated with any set of filter codes during a first time period. The first instance of the proxy filter 302 in the filter pipeline 300, 350 may be associated with a first processing filter 301 during a second time period, and the print driver 250 may be processed during the second time period without having to be re-certified and/or digitally re-signed.
Embodiments as disclosed herein may also include computer-readable media for carrying or having computer-executable instructions or data structures stored thereon. Such computer-readable media can be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to carry or store desired program code means in the form of computer-executable instructions or data structures. When information is transferred or provided over a network or another communications connection (either hardwired, wireless, or combination thereof) to a computer, the computer properly views the connection as a computer-readable medium. Thus, any such connection is properly termed a computer-readable medium. Combinations of the above should also be included within the scope of the computer-readable media.
Computer-executable instructions include, for example, instructions and data which cause a general purpose computer, special purpose computer, or special purpose processing device to perform a certain function or group of functions. Computer-executable instructions also include program modules that are executed by computers in stand-alone or network environments. Generally, program modules include routines, programs, objects, components, and data structures, and the like that perform particular tasks or implement particular abstract data types. Computer-executable instructions, associated data structures, and program modules represent examples of the program code means for executing steps of the methods disclosed herein. The particular sequence of such executable instructions or associated data structures represents examples of corresponding acts for implementing the functions described therein.
It will be appreciated that various of the above-disclosed and other features and functions, or alternatives thereof, may be desirably combined into many other different systems or applications. Also that various presently unforeseen or unanticipated alternatives, modifications, variations or improvements therein may be subsequently made by those skilled in the art which are also intended to be encompassed by the following claims.
Number | Name | Date | Kind |
---|---|---|---|
6212574 | O'Rourke et al. | Apr 2001 | B1 |
20060028667 | Saito | Feb 2006 | A1 |
20070165260 | Fransazov | Jul 2007 | A1 |
20090237721 | Jeong et al. | Sep 2009 | A1 |
20090328031 | Pouyadou et al. | Dec 2009 | A1 |
20100066749 | Mihara et al. | Mar 2010 | A1 |
20100079778 | Kohama | Apr 2010 | A1 |
20100157365 | Jeong et al. | Jun 2010 | A1 |
20100214599 | Zhan | Aug 2010 | A1 |
20100235846 | Yamamichi | Sep 2010 | A1 |
20110161794 | Shiohara | Jun 2011 | A1 |
Number | Date | Country | |
---|---|---|---|
20120300248 A1 | Nov 2012 | US |