2. The method according to claim 1 , wherein the API includes a first constructor for initializing the first object, and a second constructor for initializing the second object, the method further comprising steps of: initializing the first object before the step of creating the document, and initializing the second object before the step of sending the document.
2. The method according to claim 1 , wherein the API includes a first constructor for initializing the first object, and a second constructor for initializing the second object, the method further comprising steps of: initializing the first object before the step of creating the document, and initializing the second object before the step of sending the document. 3. The method according to claim 2 , the method further comprising, after the step of sending the document from the intelligent module to the printer, a step of printing the document on a paper in the printer.