Method, system for transmitting document over network, virtual printer apparatus and restoration apparatus
First Claim
1. A method for transmitting a sharing document containing only text and pictures over a network, comprising the steps of:
- converting, by a virtual printer module in a first client device, GDI (Graph Device Interface) functions corresponding to a sharing document to be transmitted into GDI instructions, forming a GDI document by synthesizing the GDI instructions, and sending the GDI document to a document sender in the first client device;
receiving, by a document receiver in a second client device, the GDI document sent from the document sender through a network; and
restoring, by the document receiver, the received GDI document, and contents of the restored GDI document being the same as that of the sharing document;
the method for said converting the GDI functions corresponding to the sharing document into GDI instruction, wherein forming the GDI document by synthesizing the GDI instructions comprises the steps of;
opening, by an application of the sharing document on the document sender, the interface for interacting with the virtual printer module and starting to perform virtual printing of the sharing document;
determining, by the application of the sharing document, whether the virtual printing should be terminated, if the virtual printing should be terminated, terminating the virtual printing of the sharing document by sending a GDI function indicating the end of the sharing document to the virtual printer module and terminating current procedure for generating the GDI document;
if the virtual printing should not be terminated, sending, by the application of the sharing document, based on the contents of the sharing document and by calling print driver GDI transfer interface function, a GDI function to the virtual printer module, and converting, by the virtual printer module, the received GDI function into a GDI instruction and returning the result of the conversion to the application of the sharing document; and
determining, by the application of the sharing document, based on the result of the conversion returned by the virtual printer module, whether the conversion is successful, and if the conversion is successful, starting, by the application of the sharing document, to deal with the next GDI function and cycling back to the step of determining whether the virtual print should be terminated;
if the conversion is unsuccessful, terminating, by the application of the sharing document, the virtual printing of the sharing document by sending a GDI function indicating the end of the sharing document to the virtual printer module and terminating the procedure for generating the GDI document;
the GDI instruction comprises at least;
the name of GDI function, number of GDI function and serial number of GDI performance;
the method for converting, by the virtual printer module, the received GDI function into the GDI instruction and retuning the result of the conversion to the application of the sharing document, comprising the steps of;
calling, by the application of sharing document, the print driver GDI transfer interface function, determining, by the virtual printer module, whether the received GDI function is a GDI function indicating start of virtual printing of the sharing document, if the received GDI function is a GDI function indicating start of virtual printing of the sharing document, acquiring, by the virtual printed module, a corresponding table of names and numbers of GDI functions from a GDI subsystem, initializing the variable of the serial number of GDI performance to 0, establishing and opening an empty GDI document, and generating an initialization variable indicating the completion situation of the initialization;
if the received GDI function is nota GDI function indicating start of virtual printing of the sharing document, determining, based on the initialization variable, whether the initialization has been completed, and if the initialization has been completed, determining whether the received GDI function is a GDI function indicating end of the virtual printing of the sharing document, if the received GDI function is a GDI function indicating end of the virtual printing of the sharing document, closing the GDI document, and returning, by the virtual printer module, the result of the conversion to the application of the sharing document;
if the received GDI function is not a GDI function indicating end of the virtual print of the sharing document, determining whether the number of GDI function corresponding to the current GDI function is found, and if the number of GDI function corresponding to the current GDI function is found, adding 1 to the variable of the serial number of GDI performance, encoding the name of GDI function, the variable of the serial number of GDI performance and the GDI function based on the format of GDI instruction stream so as to generate GDI instruction, and writing the GDI instruction into the GDI document; and
if the number of GDI function corresponding to the current GDI function is not found, returning, by the virtual printer module, the result of the conversion to the application of the sharing document; and
if initialization has not been completed, cycling back to the step of acquiring, by the virtual printer module, a corresponding table of names and numbers of GDI functions from a GDI subsystem, initializing the variable of the serial number of GDI performance to 0, establishing and opening an empty GDI document, and generating an initialization variable indicating the completion situation of the initialization.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention discloses a method system for transmitting a document over a Network including the steps of a document sender converts a sharing document to be transmitted into a GDI (Graph Device Interface) document by performing virtual printing. The document receiver receives the graph device interface document sent from the document sender through the network The document receiver restores the received GDI document. The contents of the restored GDI document are the same as that of the sharing document. The present invention also provides a system, a virtual printer apparatus and a restoration apparatus, the transmission of the document is not restricted by the application using the method, system and apparatus of the present invention.
-
Citations
23 Claims
-
1. A method for transmitting a sharing document containing only text and pictures over a network, comprising the steps of:
-
converting, by a virtual printer module in a first client device, GDI (Graph Device Interface) functions corresponding to a sharing document to be transmitted into GDI instructions, forming a GDI document by synthesizing the GDI instructions, and sending the GDI document to a document sender in the first client device; receiving, by a document receiver in a second client device, the GDI document sent from the document sender through a network; and restoring, by the document receiver, the received GDI document, and contents of the restored GDI document being the same as that of the sharing document; the method for said converting the GDI functions corresponding to the sharing document into GDI instruction, wherein forming the GDI document by synthesizing the GDI instructions comprises the steps of; opening, by an application of the sharing document on the document sender, the interface for interacting with the virtual printer module and starting to perform virtual printing of the sharing document; determining, by the application of the sharing document, whether the virtual printing should be terminated, if the virtual printing should be terminated, terminating the virtual printing of the sharing document by sending a GDI function indicating the end of the sharing document to the virtual printer module and terminating current procedure for generating the GDI document; if the virtual printing should not be terminated, sending, by the application of the sharing document, based on the contents of the sharing document and by calling print driver GDI transfer interface function, a GDI function to the virtual printer module, and converting, by the virtual printer module, the received GDI function into a GDI instruction and returning the result of the conversion to the application of the sharing document; and determining, by the application of the sharing document, based on the result of the conversion returned by the virtual printer module, whether the conversion is successful, and if the conversion is successful, starting, by the application of the sharing document, to deal with the next GDI function and cycling back to the step of determining whether the virtual print should be terminated;
if the conversion is unsuccessful, terminating, by the application of the sharing document, the virtual printing of the sharing document by sending a GDI function indicating the end of the sharing document to the virtual printer module and terminating the procedure for generating the GDI document;the GDI instruction comprises at least;
the name of GDI function, number of GDI function and serial number of GDI performance;the method for converting, by the virtual printer module, the received GDI function into the GDI instruction and retuning the result of the conversion to the application of the sharing document, comprising the steps of; calling, by the application of sharing document, the print driver GDI transfer interface function, determining, by the virtual printer module, whether the received GDI function is a GDI function indicating start of virtual printing of the sharing document, if the received GDI function is a GDI function indicating start of virtual printing of the sharing document, acquiring, by the virtual printed module, a corresponding table of names and numbers of GDI functions from a GDI subsystem, initializing the variable of the serial number of GDI performance to 0, establishing and opening an empty GDI document, and generating an initialization variable indicating the completion situation of the initialization; if the received GDI function is nota GDI function indicating start of virtual printing of the sharing document, determining, based on the initialization variable, whether the initialization has been completed, and if the initialization has been completed, determining whether the received GDI function is a GDI function indicating end of the virtual printing of the sharing document, if the received GDI function is a GDI function indicating end of the virtual printing of the sharing document, closing the GDI document, and returning, by the virtual printer module, the result of the conversion to the application of the sharing document; if the received GDI function is not a GDI function indicating end of the virtual print of the sharing document, determining whether the number of GDI function corresponding to the current GDI function is found, and if the number of GDI function corresponding to the current GDI function is found, adding 1 to the variable of the serial number of GDI performance, encoding the name of GDI function, the variable of the serial number of GDI performance and the GDI function based on the format of GDI instruction stream so as to generate GDI instruction, and writing the GDI instruction into the GDI document; and if the number of GDI function corresponding to the current GDI function is not found, returning, by the virtual printer module, the result of the conversion to the application of the sharing document; and if initialization has not been completed, cycling back to the step of acquiring, by the virtual printer module, a corresponding table of names and numbers of GDI functions from a GDI subsystem, initializing the variable of the serial number of GDI performance to 0, establishing and opening an empty GDI document, and generating an initialization variable indicating the completion situation of the initialization. - View Dependent Claims (2, 3, 4)
-
-
5. A system for transmitting a sharing document containing only text and pictures over a network, comprising:
-
a first network computer including a processor coupled to a memory storing instructions for execution by the processor, to convert GDI (Graph Device Interface) functions corresponding to a sharing document to be transmitted into GDI instructions, form a GDI document by synthesizing the GDI instructions, and send the GDI document to the second network computer over the network; a second network computer including a processor coupled to a memory storing instructions for execution by the processor, to receive the GDI document from the first network computer, restore the GDI document, and contents of the restored GDI document being same as that of the sharing document; the first network computer comprises a document sender and a virtual printing module, and an application sharing document on the document sender is to; open the interface for interacting with the virtual printer module and start to perform virtual printing of the sharing document; determine whether the virtual printing should be terminated, if the virtual printing should be terminated, terminate the virtual printing of the sharing document by sending a GDI function indicating the end of the sharing document to the virtual printer module and terminate current procedure for generating the GDI document; if the virtual printing should not be terminated, send, based on the contents of the sharing document and b calling print driver GDI transfer interface function, a GDI function to the virtual printer module; receive a result of converting the received GDI function into a GDI instruction from the virtual printer module; determine, based on the result received from the virtual printer module, whether the conversion is successful, and if the conversion is successful, start to deal with the next GDI function and cycle back to the step of determining whether the virtual print should be terminated;
if the conversion is unsuccessful, terminate the virtual printing of the sharing document by sending a GDI function indicating the end of the sharing document to the virtual printer module and terminate the procedure for generating the GDI document; andthe virtual printer module is to convert the received GDI function into a GDI instruction and return the result of the conversion to the application of the sharing document; and the GDI instruction comprises at least;
the name of GDI function, number of GDI function and serial number of GDI performance;the virtual module is to; after the application of sharing document calls the print driver GDI transfer interface function, determine, whether the received GDI function is a GDI function indicating start of virtual printing of the sharing document, if the received GDI function is a GDI function indicating start of virtual printing of the sharing document, acquire a corresponding table of names and numbers of GDI functions from a GDI subsystem, initialize the variable of the serial number of GDI performance to 0, establish and open an empty GDI document, and generate an initialization variable indicating the completion situation of the initialization; if the received GDI function is not a GDI function indicating start of virtual printing of the sharing document, determine, based on the initialization variable, whether the initialization has been completed, and if the initialization has been completed, determine whether the received GDI function is a GDI function indicating end of the virtual printing of the sharing document, if the received GDI function is a GDI function indicating end of the virtual printing of the sharing document, close the GDI document, and return the result of the conversion to the application of the sharing document; if the received GDI function is not a GDI function indicating end of the virtual print of the sharing document, determine whether the number of GDI function corresponding to the current GDI function is found, and if the number of GDI function corresponding to the current GDI function is found, add 1 to the variable of the serial number of GDI performance, encode the name of GDI function, the variable of the serial number of GDI performance and the GDI function based on the format of GDI instruction stream so as to venerate a GDI instruction, and write the GDI instruction into the GDI document; and if the number of GDS function correspond to the current GDI function is not found, return the result of the conversion to the application of the sharing document; and if initialization has not been completed, cycle back to the step of acquiring the corresponding table of names and numbers of GDI functions from the GDI subsystem, initializing the variable of the serial number of GDI performance to 0, establishing and opening the empty GDI document, and generating the initialization variable indicating the completion situation of the initialization. - View Dependent Claims (6, 7)
-
-
8. A network computer for transmitting a sharing document containing only text and pictures to another network computer over a network, including a processor coupled to a memory storing instructions for execution by the processor, and comprising a document sender and a virtual printer module;
- the virtual printer module being stored on a memory;
the document sender is to output a sharing document containing only text and pictures to be sent to the virtual printer module, receive a GDI document into which the sharing document is converted from the virtual printer module and send the GDI document to the another network computer over the network; and the virtual printer module is to receive the sharing document from the document sender, convert GDI functions corresponding to the sharing document into GDI instructions, form a GDI document by synthesizing the GDI instructions, and output the GDI document to the document sender; an application of the sharing document on the document sender is to open the interface for interacting with the virtual printer module and start to perform virtual printing of the sharing document; determine whether the virtual printing should be terminated, if the virtual printing should be terminated, terminate to virtual printing of the sharing document by sending a GDI function indicating the end of the sharing document to the virtual printer module and terminate current procedure for generating the GDI document; if the virtual printing should not be terminated, send, based on the contents of the sharing document and by calling print driver GDI transfer interface function, a GDI function to the virtual printer module; receive a result of converting the received GDI function into a GDI instruction from the virtual printer module; determine, based on the result received from the virtual printer module, whether the conversion is successful, and if the conversion is successful, start to deal with the next GDI function and cycle back to the step of determining whether the virtual print should be terminated;
if the conversion is unsuccessful, terminate the virtual printing of the sharing document by sending a GDI function indicating the end of the sharing document to the virtual printer module and terminate the procedure for generating the GDI document; andthe virtual printer module is to convert the received GDI function into a GDI instruction and return the result of the conversion to the application of the sharing document; and the GDI instruction comprises at least;
the name of GDI function, number of GDI function and serial number of GDI performance;the virtual printer module is to; after the application of sharing document calls the print driver GDI transfer interface function, determine, whether the received GDI function is a GDI function indicating start of virtual printing of the sharing document, if the received GDI function is a GDI function indicating start of virtual printing of the sharing document, acquire a corresponding table of names and numbers of GDI functions from a GDI subsystem, initialize the variable of the serial number of GDI performance to 0, establish and open an empty GDI document, and generate an initialization variable indicating the completion situation of the initialization; if the received GDI function is not a GDI function indicating start of virtual printing of the sharing document, determine, based on the initialization variable, whether the initialization has been completed, and if the initialization has been completed, determine whether the received GDI function is a GDI function indicating end of the virtual printing of the sharing document, if the received GDI function is a GDI function indicating end of the virtual printing of the sharing document, close the GDI document, and return the result of the conversion to the application of the sharing document; if the received GDI function is not a GDI function indicating end of the virtual print of the sharing document, determine whether the number of GDI function corresponding to the current GDI function is found, and if the number of GDI function corresponding to the current GDI function is found, add 1 to the variable of the serial number of GDI performance, encode the name of GDI function, the variable of the serial number of GDI performance and the GDI function based on the format of GDI instruction stream so as to generate a GDI instruction, and write the GDI instruction into the GDI document; and if the number of GDI function corresponding to the current GDI function is not found, return the result of the conversion to the application of the sharing document; and if initialization has not been completed, cycle back to the step of acquiring the corresponding table of names and numbers of GDI functions from the GDI subsystem, initializing the variable of the serial number of GDI performance to 0, establishing and opening the empty GDI document, and generating the initialization variable indicating the completion situation of the initialization. - View Dependent Claims (9, 10, 11)
- the virtual printer module being stored on a memory;
-
12. A method for sending a sharing document containing only text and pictures over a network, comprising the steps of:
-
converting, by a virtual printer module in a first client device, GDI (Graph Device Interface) functions corresponding to a sharing document to be transmitted into GDI instructions, forming a GDI document by synthesizing the GDI instructions, and sending the GDI document to a document sender in the first client device; and sending, by the document sender, the GDI document to a document receiver in a second client device through a network; the method for said converting the GDI functions corresponding to the sharing document into GDI instruction, forming the GDI document by synthesizing the GDI instructions comprises the steps of; opening, by an application of the sharing document on the document sender, the interface for interacting with the virtual printer module and starting to perform virtual printing of the sharing document; determining, by the application of sharing document, whether the virtual printing should be terminated, if the virtual printing should be terminated, terminating the virtual printing of the sharing document by sending a GDI function indicating the end of the sharing document to the virtual printer module and terminating current procedure for generating the GDI document; if the virtual printing should not be terminated, sending, by the application of the sharing document, based on the contents of the sharing document and by calling print driver GDI transfer interface function, a GDI function to the virtual printer module, and converting, by the virtual printer module, the received GDI function into a GDI instruction and returning the result of the conversion to the application of the sharing document; and determining, by the application of the sharing document, based on the result of the conversion returned by the virtual printer module, whether the conversion is successful, and if the conversion is successful, starting, by the application of the sharing document, to deal with the next GDI function and cycling back to the step of determining whether the virtual print should be terminated;
if the conversion is unsuccessful, terminating, by the application of the sharing document, the virtual printing of the sharing document by sending a GDI function indicating the end of the sharing document to the virtual printer module and terrninating the procedure for generating the GDI document,the GDI instruction comprises at least;
the name of GDI function, number of GDI function and serial number of GDI performance;the method for converting, by the virtual printer module, the received GDI function into the GDI instruction and returning the result of the conversion to the application of the sharing document, comprising the steps of; calling, by the application of sharing document, the print driver GDI transfer interface function, determining, by the virtual printer module, whether the received GDI function is a GDI function indicating start of virtual printing of the sharing document, if the received a GDI function is a GDI function indicating start of virtual printing the sharing document, acquiring, by the virtual printer module, a corresponding table of names and numbers of GDI functions from a GDI subsystem, initializing the variable of the serial number of GDI performance to 0, establishing and opening an empty GDI document, and generating an initialization variable indicating the completion situation of the initialization; if the received GDI function is not a GDI function indicating start of virtual printing of the sharing document, determining, based on the initialization variable, whether the initialization has been completed, and if the initialization has been completed, determining whether the received GDI function is a GDI function indicating end of the virtual printing of the sharing document, if the received GDI function is a GDI function indicating end of the virtual printing of the sharing document, closing the GDI document, and returning, by the virtual printer module, the result of the conversion to the application of the sharing document; if the received GDI function is not a GDI function indicating end of the virtual print of the sharing document, determining whether the number of GDI function corresponding to the current GDI function is found, and if the number of GDI function corresponding to the current GDI function is found, adding 1 to the variable of the serial number of GDI performance, encoding the name of GDI function, the variable of the serial number of GDI performance and the GDI function based on the format of GDI instruction stream so as to generate a GDI instruction, and writing the GDI instruction into the GDI document; and if the number of GDI function corresponding to the current GDI function is not found, returning, by the virtual printer module, the results of the conversion to the application of the sharing document; and if initialization has not been completed, cycling back to the step of acquiring, by the virtual printer module, a corresponding table of names and numbers of GDI functions from a GDI subsystem, initializing the variable of the serial number of GDI performance to 0, establishing and opening an empty GDI document, and generating an initialization variable indicating the completion situation of the initialization. - View Dependent Claims (13, 14, 15, 16, 17)
-
-
18. A method for receiving a sharing document containing only text and pictures of format over a network, comprising the steps of:
-
receiving, by a document receiver in a second client device, a GDI (Graph Device Interface) document sent from a document sender in a first client device through a network, the GDI document being formed by synthesizing GDI instructions into which GDI functions corresponding to a sharing document to be transmitted is converted by a virtual printer module in the first client device; and restoring, by the document receiver, the received GDI document, contents of the restored GDI document being same as that of the sharing document; the method for converting the GDI functions corresponding to the sharing document into GDI instructions, forming the GDI document by synthesizing the GDI instructions comprises the steps of; opening, by an application of the sharing document on the document sender, the interface, for interacting with the virtual printer module and starting to perform virtual printing of the sharing document; determining, by the application of the sharing document, whether the virtual printing should be terminated, if the virtual printing should be terminated, terminating the virtual printing of the sharing document by sending a GDI function indicating the end of the sharing document to the virtual printer module and terminating current procedure for generating the GDI document; if the virtual printing should not to be terminated, sending, by the application of the sharing document, based on the contents of the sharing document and by calling print driver GDI transfer interface function, a GDI function to the virtual printer module, and converting, by the virtual printer module, the received GDIfunction into a GDI instruction and returning the result of the conversion to the application of the sharing document; and determining, by the application of the sharing document, based on the result of the conversion returned by the virtual printer module, whether the conversion is successful, and if the conversion is successful, starting, by the application of the sharing document, to deal with the next GDI function and cycling back to the step of determining whether the virtual print should be terminated;
if the conversion is unsuccessful, terminating, by the application of the sharing document, the virtual printing of the sharing document by sending a GDI function indicating the end of the sharing document to the virtual printer module and terminating the procedure for generating the GDI document;the GDI instruction comprises at least;
the name of GDI function, number of GDI function and serial number of GDI performance;the method for converting, by the virtual printer module, the received GDI function into the GDI instruction and returning the result of the conversion to the application of the sharing document, comprising the steps of; calling, by the application of sharing document, the print driver GDI transfer interface function, determining, by the virtual printer, module whether the received GDI function is a GDI function indicating start of virtual printing of the sharing document, if the received GDI function is a GDI function indicating start of virtual printing of the sharing document, acquiring, by the virtual printer module, a corresponding table of names and numbers of GDI functions from a GDI subsystem, initializing the variable of the serial number of GDI performance to 0, establishing and opening an empty GDI document, and generating an initialization variable indicating the completion situation of the initialization; if the received GDI function is nota GDI function indicating start of virtual printing of the sharing document, determining, based on the initialization variable, whether the initialization has been completed and if the initialization has been completed, determining whether the received GDI function is a GDI function indicating end of the virtual printing of the sharing document, if the received GDI function is a GDI function indicating end of the virtual printing of the sharing document, closing the GDI document, and returning, by the virtual printer module, the result of the conversion to the application of the sharing document; if the received GDI function is not a GDI function indicating end of the virtual print of the sharing document, determining whether the number of GDI function corresponding to the current GDI function is found, and if the number of GDI function corresponding to the current GDI function is found, adding 1 to the variable of the serial number of GDI performance, encoding the name of GDI function, the variable of the serial number of GDI performance and the GDI function based on the format of GDI instruction stream so as to generate GDI instruction, and writing the GDI instruction into the GDI document; and if the number of GDI function corresponding to the current GDI function is not found, returning, by the virtual printer module, the result of the conversion to the application of the sharing document; and if initialization has not been completed, cycling back to the step of acquiring, by the virtual printer module, a corresponding table of names and numbers of GDI functions from a GDI subsystem, initializing the variable of the serial number of GDI performance to 0, establishing and empty GDI document, and generating an initialization variable indicating the completion situation of the initialization. - View Dependent Claims (19, 20, 21, 22, 23)
-
Specification