Patent ID: 8760707

Claim:
A print data processing apparatus configured to process variable print data, the print data processing apparatus comprising: a cache unit configured to cache image data generated according to a drawing command included in the variable print data as cache data in a cache memory; a determination unit configured to determine whether newly generated image data can be stored in the cache memory; a count unit configured to count, in a case where the determination unit determines that the new generated image data cannot be stored in the cache memory, a number of first pages to be processed before first cache data cached in the cache memory is used next and count a number of second pages to be processed before second cache data cached in the cache memory is used next; a determining unit configured to determine the first cache data as cache data to be written in a secondary storage medium, in a case where the number of first pages is greater than the number of second pages; and a writing unit configured to write the first cache data determined by the determining unit in the secondary storage medium.