Patent ID: 7613833

Claim:
A data processing apparatus for output-processing image data for respective pages, comprising: a memory for storing page management records and page data; a page data management unit constructed to perform a management process for each of respective pages scanned by an image reader, wherein the management process comprises: creating a page management record for each of the respective pages and storing the page management record in the memory, wherein the page management record corresponds to a respective page scanned by the image reader, generating a first type of page data and a second type of page data and storing the first and second types of page data in the memory, wherein the first type of page data includes RAW image data representing the respective page and the second type of page data includes image data generated by encoding the RAW image data included in the first type of page data, writing a memory address of the first type of page data and a memory address of the second type of page data to the page management record for the respective page, managing respective output processes by a first output unit and a second output unit referring to the created page management record to process the first type of page data or the second type of page data, and maintaining on the page management record, a link count that counts a number of output units that refer to the page management record and a flag that indicates whether reference to the page management record by output units is complete, deleting the first type of page data from the page management record in response to determining that the link count is zero for the first type of page data and in response to the flag indicating completion of the reference by both the first and second output units to the first type of page data, and a control unit constructed to perform a control process for each of said respective pages scanned by the image reader, wherein the control process comprises: monitoring completion of storing the first type of page data scanned by the image reader in the memory, encoding the RAW image data included in the first type of page data in response to the completion of storing, and determining whether or not image data resulting from encoding the RAW image data exists, wherein if the resultant image data does not exist, the control unit controls the first output unit to output the RAW image data, wherein if the resultant image data does exist, the control unit decodes the resultant image data into RAW image data, and controls the first output unit to output the decoded RAW image data, and wherein if the second output unit is not referring to the RAW image data of which the first output unit completes an output, the control unit deletes the RAW image data of which the first output unit completes the output.