Information processing apparatus for performing a layout processing of sub-templates, information processing method and computer-readable medium
AssigneeCanon Kabushiki Kaisha
InventorsHitoshi Osaka, Satoshi Ota
Life of this patent
Estimating the term…
Abstract
An information processing apparatus performs a process of laying out sub-templates to a page to which a repeated page setting is not set. If all the sub-templates are not laid out in the page to which a repeated page setting is not set, the information processing apparatus repeatedly obtains pages to which the repeated page setting is set until all the sub-templates are laid out in the pages.
Claims9
An information processing apparatus comprising a processor which executes a program stored in a memory and execute a layout processing for a document including the first, second and third page, wherein the processor functions as:
- a setting unit which sets a repeated page setting to the second page;
- a first obtaining unit which obtains the first and third pages to which the repeated page setting is not set from the document;
- a first layout unit which lays out a sub-template selected from a plurality of sub-templates in the first and third pages;
- a first determining unit which determines whether all the sub-templates are laid out in the first and third pages;
- a deleting unit which deletes the third page when all the sub-templates are not laid out in the first and third pages, wherein the sub-templates laid out in the third page are deleted by deleting the third page;
- a second obtaining unit which obtains the second page to which the repeated page setting is set;
- a second layout unit which lays out the sub-templates deleted by the deleting unit in the second page;
- a second determining unit which determines whether all the sub-templates are laid out in the first and second pages,
- wherein, when it is determined that all the sub-templates are not laid out in the first and second pages, the first layout unit lays out the remaining sub-templates which are not laid out in any page in the third page and the first determining unit determines whether all the sub-templates are laid out in the first, second and third pages, and
- wherein, when it is determined that all the sub-templates are not laid out in the first, second and third pages, the process of deleting the third page by the deleting unit, the process of obtaining the second page by the second obtaining unit, the process of laying out the deleted sub-templates to the second page by the second layout unit, and the process of laying out the remaining sub-templates in the third page by the first layout unit are repeatedly executed to create one or more additional second pages until all the sub-templates are laid out.
An information processing method which is performed by an information processing apparatus, comprising:
- setting a repeated page setting to the second page;
- obtaining the first and third pages to which the repeated page setting is not set from the document;
- laying out a sub-template selected from a plurality of sub-templates in the first and third pages;
- determining whether all the sub-templates are laid out in the first and third pages;
- deleting the third page when all the sub-templates are not laid out in the first and third pages, wherein the sub-templates laid out in the third page are deleted by deleting the third page;
- obtaining the second page to which the repeated page setting is set;
- laying out the deleted sub-templates in the second page;
- determining whether all the sub-templates are laid out in the first and second pages,
- wherein, when it is determined that all the sub-templates are not laid out in the first and second pages, the remaining sub-templates which are not laid out in any page are laid out in the third page and it is determined whether all the sub-templates are laid out in the first, second and third pages, and
- wherein, when it is determined that all the sub-templates are not laid out in the first, second and third pages, the steps of deleting the third page, obtaining the second page, laying out the deleted sub-templates to the second page, and laying out the remaining sub-templates in the third page are repeatedly executed to create one or more additional second pages until all the sub-templates are laid out.
A non-transitory computer-readable medium storing a program therein for causing a computer to perform an information processing method, the method comprising:
- setting a repeated page setting to the second page;
- obtaining the first and third pages to which the repeated page setting is not set from the document;
- laying out a sub-template selected from a plurality of sub-templates in the first and third pages;
- determining whether all the sub-templates are laid out in the first and third pages;
- deleting the third page when all the sub-templates are not laid out in the first and third pages, wherein the sub-templates laid out in the third page are deleted by deleting the third page;
- obtaining the second page to which the repeated page setting is set;
- laying out the deleted sub-templates in the second page;
- determining whether all the sub-templates are laid out in the first and second pages,
- wherein, when it is determined that all the sub-templates are not laid out in the first and second pages, the remaining sub-templates which are not laid out in any page are laid out in the third page and it is determined whether all the sub-templates are laid out in the first, second and third pages, and
- wherein, when it is determined that all the sub-templates are not laid out in the first, second and third pages, the steps of deleting the third page, obtaining the second page, laying out the deleted sub-templates to the second page, and laying out the remaining sub-templates in the third page are repeatedly executed to create one or more additional second pages until all the sub-templates are laid out.
Dependencies are inferred from the claim text.