Host device capable of selecting printer language and method for selecting printer language thereof
暂无分享,去创建一个
A device for outputting print data capable of selecting a printer language, and a method for selecting a printer language thereof are provided to select the optimum printer language promptly through a GDI banding function of a window to improve speed of outputting print data. If print option is provided from a GDI(Graphic Device Interface), a collector requests a GDI banding function to the GDI(S305). The collector informs size of a page segment to be separated and start position information of the page segmentation(S310). If the GDI calls a DDI(Device Driver Interface) function to a first page of a document, the collector collects the called DDI function(S315,S320). It is notified that call of the function to the banding-requested first page is completed(S325). An analyzer analyzes the collected functions to count the number of functions called by each object and to output a counting result and first to third reference values to be used for selecting the optimum printer language to a printer language selector(S330). The printer language selector selects the optimum printer language by using the first to third reference values(S335). The collects requests output of data related to the first page to the GDI(S340). Each object constituting print data of the first page is retransmitted from the GDI and it is notified that output of the first page is completed(S345). The collector transmits ending information meaning end of the GDI banding function to the GDI(S350). A transformer transforms each object into a command language of the selected optimum printer language(S355). The GDI transmits output data related to print data of the next pages to the collector(S360). The transformer transforms each object of the next pages into a command language of the selected optimum printer language(S365).