Memory control apparatus and resource management method for memory control apparatus to process PDL data
When the type of PDL data is switched, a resource that is already developed cannot be used. A memory control apparatus configured to process received PDL data includes a developing unit configured to develop the received PDL data in a first memory area, and develop a resource to be used by the PDL data in a second memory area, a determination unit configured to determine whether stored activation information is a first value or a second value, and a control unit configured to perform control for releasing the first memory area and deleting the resource developed in the second memory area, in a case where the activation information is determined to be the first value, and configured to release the first memory area and not deleting the resource developed in the second memory area, in a case where the activation information is determined to be the second value.
1. A data processing apparatus comprising:
one or more memories storing instructions; and
one or more processors that execute the instructions to cause the data processing apparatus to:
receive first page description language (PDL) commands;
interpret the first received PDL commands by using a first memory area, wherein resource data to be referenced in interpretation of the first received PDL commands is stored in a second memory area;
receive second PDL commands; and
perform control for releasing the first memory area and reserving a third memory area to be used for interpreting the received PDL commands without deleting the resource data stored in the second memory area, in a case where a type of the second received PDL commands is different from a type of the first interpreted PDL commands.
2. The data processing apparatus according to claim 1 , wherein the instructions further cause the data processing apparatus to update stored activation information from a first value to a second value, in response to switching of types of the received PDL commands.
3. The data processing apparatus according to claim 1 , wherein an initial value of activation information is a first value.
4. The data processing apparatus according to claim 1 , wherein the resource data includes any of a download font, a macro, a pattern image, and a symbol set to be used by the PDL commands.
5. The data processing apparatus according to claim 1 , wherein the instructions further cause the data processing apparatus to perform control for deleting the resource data stored in the second memory area, in a case where a power state of the data processing apparatus is changed from an OFF state to an ON state.
6. A resource management method for a data processing apparatus, the resource management method comprising:
receiving first page description language (PDL) commands;
interpreting the first received PDL commands by using a first memory area, wherein resource data to be referenced in interpretation of the first received PDL commands is stored in a second memory area;
receiving second PDL commands; and
performing control for releasing the first memory area and reserving a third memory area to be used for interpreting the received PDL commands without deleting the resource data stored in the second memory area, in a case where a type of the second received PDL commands is different from a type of the first interpreted PDL commands.
7. The resource management method according to claim 6 , further comprising updating stored activation information from a first value to a second value, in response to switching of types of the received PDL commands.
8. The resource management method according to claim 6 , wherein an initial value of activation information is a first value.
9. The resource management method according to claim 6 , wherein the resource data includes any of a download font, a macro, a pattern image, and a symbol set to be used by the PDL commands.
10. The resource management method according to claim 6 , further comprising performing control for deleting the resource data stored in the second memory area, in a case where a power state of the data processing apparatus is changed from an OFF state to an ON state.