1. A method for creating a document in a web application, and sending the document to a printer over a network, the web application executed by a web browser, the method comprising steps of: providing an intelligent module adapted to connect to the printer, the intelligent module configured to be set a network address, to receive the document, and to send the document to the printer; embedding an application program interface (API) in the web application, the API providing: (i) a first object for creating the document, the object including a command buffer, (ii) a first method element for processing the first object, the first method element being configured to add commands for controlling the printer into the command buffer, and creating the document according to the commands in the command buffer, (iii) a second object for sending the document, (iv) an address property element configured to designate the network address of the intelligent module, and (v) a second method element for processing the second object, the second method element configured to send the created document to the intelligent module over the network; setting the network address of the intelligent module into the address property element; creating the document by use of the first method element embedded in the web application; sending the document, by use of the second method element embedded in the web application, to the intelligent module having the network address designated by the address property element; and sending the document from the intelligent module to the printer.
1. A method for creating a document in a web application, and sending the document to a printer over a network, the web application executed by a web browser, the method comprising steps of: providing an intelligent module adapted to connect to the printer, the intelligent module configured to be set a network address, to receive the document, and to send the document to the printer; embedding an application program interface (API) in the web application, the API providing: (i) a first object for creating the document, the object including a command buffer, (ii) a first method element for processing the first object, the first method element being configured to add commands for controlling the printer into the command buffer, and creating the document according to the commands in the command buffer, (iii) a second object for sending the document, (iv) an address property element configured to designate the network address of the intelligent module, and (v) a second method element for processing the second object, the second method element configured to send the created document to the intelligent module over the network; setting the network address of the intelligent module into the address property element; creating the document by use of the first method element embedded in the web application; sending the document, by use of the second method element embedded in the web application, to the intelligent module having the network address designated by the address property element; and sending the document from the intelligent module to the printer. 9. The method according to claim 1 , wherein: one of the commands is a page mode command for adding an instruction of switching to a page mode to the command buffer, and adding a print area in the page mode to the command buffer, the page mode command including a coordinate specifying the print area, and a second of the commands is a second page mode command for adding an instruction of ending the page mode to the command buffer.