Historical Document Digitization through Layout Analysis and Deep Content Classification