摘要:
A method and apparatus in a data processing system for processing a print job. A call is received from an application to print the print job to a selected printer, wherein the print job includes a request to use a hardware service. A print preview of the print job prior to printing the print job is provided. Responsive to receiving an indication that the print job is to be printed after providing the print preview, the print job is sent to a device driver for the selected printer to print the print job. A determination is made as to whether the selected printer supports the hardware service. Responsive to a determination that the hardware service is unsupported by the selected printer, the hardware service is provided using a software simulation.
摘要:
Data is received from a memory, which includes bitmap images, for output on an output device. The images may be stored in compressed or uncompressed form. The operating system, application or generic graphics environment program interface, queries the printer driver for the types of image compression formats supported by the printer. If the image is available in a compatible compressed format, that compressed image is read from memory. Alternatively or in addition, the best possible compression format supported by the printer is selected from the formats available in the printer driver. The image is then loaded in a printer compatible compression format or compressed using the selected format. The image is spooled in the selected compression format. The image file may be spooled as a raw file or metafile depending on the embodiment used. When needed by the printer or video display, the spool file containing the compressed image is accessed from storage, and the compressed image is sent directly to the printer or video display without allocating memory for decompressing the bitmap image or decompressing the image.
摘要:
The system, method, and program of the invention enables a Web server to ensure that any prerequisite resource is served before, or in conjunction with, a requested resource. Upon receipt of a request for a resource, e.g., a page, the Web server determines if the requested resource requires a prerequisite resource. If it does, a different resource is sent that has been modified to include the prerequisite resource. In a further embodiment, the Web server keeps track of each client's request for a prerequisite resource in order to determine whether the prerequisite resource had been previously requested when a resource is requested that requires the prerequisite resource. The different resource is sent if the resource requires a prerequisite resource and if it is determined that the previous request by the requester for the prerequisite resource has not been made within a configurable amount of time or within a predetermined number of hits.
摘要:
A method, system and computer program product in a data processing system for printing a disjoint web object and content of a web page is provided. Responsive to presenting the web page by the browser, an embedded tag is presented as the disjoint web object. The disjoint web object is then printed based on the embedded tag, wherein content relative to the disjoint web object is printed along with content of the web page.
摘要:
Data is received from a memory, which includes bitmap images, for output on an output device. The images may be stored in compressed or uncompressed form. The operating system, application or generic graphics environment program interface, queries the printer driver for the types of image compression formats supported by the printer. If the image is available in a compatible compressed format, that compressed image is read from memory. Alternatively or in addition, the best possible compression format supported by the printer is selected from the formats available in the printer driver. The image is then loaded in a printer compatible compression format or compressed using the selected format. The image is spooled in the selected compression format. The image file may be spooled as a raw file or metafile depending on the embodiment used. When needed by the printer or video display, the spool file containing the compressed image is accessed from storage, and the compressed image is sent directly to the printer or video display without allocating memory for decompressing the bitmap image or decompressing the image.
摘要:
A method for serving an image from a server to a client, e.g., a computer having a browser or other graphics viewing engine. The user of the client first specifies a set of one or more bitmap characteristics for an image transfer, with at least one of the bitmap characteristics including a number of bits per pixel. Preferably, this specification is accomplished using an applet or other piece of code that is downloaded to the client from the server. Later, when the server receives a client request that includes data identifying a specified bitmap characteristic, a server processing routine (e.g., a servlet) generates a version of the image that conforms to the specified bitmap characteristic. This version is then delivered back to the client in response to the original request. In this way, the user of the client machine can control the particular characteristics of the image files that are delivered to his or her machine.
摘要:
A method and apparatus in a distributed data processing system for controlling printing. An interface is presented, wherein the interface allows for association of a logical font with a number of system fonts on a per printer queue basis. Responsive to a print request, the print request is printed using the system font associated with the logical font for that print request.
摘要:
The present invention is directed to a system and method of managing logical device state information within an information handling system. Logical device state information is stored only once, by the information handling system. Device drivers do not need to maintain and store redundant copies of logical device state information. A device driver indicates whether or not it needs to have logical device state information passed to it. Before calling a device driver to handle a device function, the information handling system checks to determine whether or not the device driver has indicated that it needs logical device state information passed to it. If so, the information handling system passes the appropriate logical device state information to the device driver. For device functions which are not hooked by the device driver, the information handling system maintains the device state. System efficiency is increased, as each device driver may register for the subset of functions it can most efficiently handle, without hooking operating system functions or handling all state specific functions associated with a particular device function. In addition, device driver development may proceed in an incremental fashion, and device driver developers do not have to learn details of every operating system on which a device may be installed.
摘要:
A method and apparatus for converting programs and source code files written in a programming language to equivalent markup language files is provided. The conversion may be accomplished by a static process or by a dynamic process. In a static process, a programming source code file is converted by an application to a markup language file. A document type definition file for a markup language is parsed; a source code statement from a source code file is parsed; an element defined in the document type definition file is selected based on an association between the element and an identifier of a routine in the source code statement; and the selected element is written to a markup language file. In a dynamic process, the program is executed to generate the markup language file that corresponds to the source code file or presentation steps of the program. The application program is executed; a document type definition file for a markup language is provided as input; an element defined in the document type definition file is selected based on a routine called by the application program; and the selected element is written to a markup language file.
摘要:
In the system, method, and program of the present invention, the browser renders a multimedia object to the screen. The multimedia object may be one or more advertisements having links to one or more advertisers. The browser periodically captures screen images having the multimedia object. In one embodiment, the screen images are captured at configurable time intervals. In another embodiment, the screen images are captured when there is a change in content of a screen image. Each screen capture contains the necessary link(s) to access the advertiser. The screen captures are stored, during a configurable duration of time, in a chronological list. A user can replay at a later time some or all of the stored screen images that were captured. The user will have various identifiable snapshots of the advertisements and access to the necessary links to get back to a desired advertiser.