1. A document conversion apparatus for converting a format of a structured document using a template, the document conversion apparatus comprising: a computer processor; and a memory that stores at least one computer program executed by the computer processor, the at least one computer program comprising program code that, when executed by the computer processor, implements: a first determining unit configured to determine whether a binary format is specified as an output format of the structured document in the template; a command acquiring unit configured to acquire a processing command for the structured document from the template used for converting the format of the structured document in a case where the first determining unit determines that the binary format is specified as the output format of the structured document; a second determining unit configured to, in a case where the processing command acquired by the command acquiring unit is a command for outputting a part of the structured document, determine whether an output format of the part of the structured document is specified in the template; and a writing unit configured to, in a case where the output format of the part of the structured document is specified in the template, perform binary conversion associated beforehand with the output format on the part of the structured document and write a result of the binary conversion in a file for storing output data, and in a case where the output format of the part of the structured document is not specified in the template, write the part of the structured document in the file.
1. A document conversion apparatus for converting a format of a structured document using a template, the document conversion apparatus comprising: a computer processor; and a memory that stores at least one computer program executed by the computer processor, the at least one computer program comprising program code that, when executed by the computer processor, implements: a first determining unit configured to determine whether a binary format is specified as an output format of the structured document in the template; a command acquiring unit configured to acquire a processing command for the structured document from the template used for converting the format of the structured document in a case where the first determining unit determines that the binary format is specified as the output format of the structured document; a second determining unit configured to, in a case where the processing command acquired by the command acquiring unit is a command for outputting a part of the structured document, determine whether an output format of the part of the structured document is specified in the template; and a writing unit configured to, in a case where the output format of the part of the structured document is specified in the template, perform binary conversion associated beforehand with the output format on the part of the structured document and write a result of the binary conversion in a file for storing output data, and in a case where the output format of the part of the structured document is not specified in the template, write the part of the structured document in the file. 16. The document conversion apparatus of claim 1 , wherein the writing unit is configured to hold information of a list in which a plurality of types of output formats and binary conversion names for expressing data of the output formats in a binary format are registered, specify a binary conversion name corresponding to the output format of the part of the structured document specified in the template by referring to the information of the list, perform binary conversion having the specified binary conversion name on the part of the structured document, and write a result of the binary conversion in the file.