Patent ID: 7196812

Claim:
An information processing apparatus having a first application program which outputs drawing data, a printer driver which converts the output drawing data into control codes in units of page and a second application program which inputs the converted control codes, the apparatus comprising: setting means for setting the total number of control codes that the second application program can input, by the second application program; control code conversion means for converting the output drawing data into the control codes in units of page, by using the printer driver; reading means for reading the total number of control codes set by said setting means, in a case where the output destination of the printer driver is the second application program; and determination means for determining whether or not the number of control codes converted by said control conversion means exceeds the total number of control codes read by said reading means, wherein, in a case where it is determined by said determination means that the number of control codes exceeds the total number of control codes read by said reading means, said control code conversion means stops converting subsequent control codes.