摘要 |
PROBLEM TO BE SOLVED: To provide a document processing device and a document processing program which can always select the correct layout in order to automatically generate a table of contents (simple guide) in an electronic document.SOLUTION: A document processing device comprises: a scanner part which reads a document printed on a paper medium for each page to generate image data of each page; an operation input part which receives selection of the type of layout of the document by a user; an OCR processing part which performs OCR processing to the generated image data of each page to extract text data for each page; a heading extraction part which extracts a title and a heading added to a table of contents of an electronic document to be generated from the image data from the text data for each page on the basis of the selected type of layout and specific keywords; and a table of contents creation part which creates the table of contents from the extracted title and heading.SELECTED DRAWING: Figure 10 |