# DocEmul: a Toolkit to Generate Structured Historical Documents

arXiv: https://arxiv.org/abs/1710.03474 · HTML: https://mlsanity.com/paper/1710.03474/

## Key facts

- Cited by 4 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 10 Oct 2017.

## Built on by (most cited first, 4 of 4)

- [Generating Synthetic Handwritten Historical Documents With OCR Constrained GANs](https://mlsanity.com/paper/2103.08236/) (2021)
- [FlexDoc: Parameterized Sampling for Diverse Multilingual Synthetic Documents for Training Document Understanding Models](https://mlsanity.com/paper/2510.02133/) (2025)
- [DIVA-DAF: A Deep Learning Framework for Historical Document Image Analysis](https://mlsanity.com/paper/2201.08295/) (2022)
- [Variational Augmentation for Enhancing Historical Document Image Binarization](https://mlsanity.com/paper/2211.06581/) (2022)

## Abstract (arXiv)

We propose a toolkit to generate structured synthetic documents emulating the actual document production process. Synthetic documents can be used to train systems to perform document analysis tasks. In our case we address the record counting task on handwritten structured collections containing a limited number of examples. Using the DocEmul toolkit we can generate a larger dataset to train a deep architecture to predict the number of records for each page. The toolkit is able to generate synthetic collections and also perform data augmentation to create a larger trainable dataset. It includes one method to extract the page background from real pages which can be used as a substrate where records can be written on the basis of variable structures and using cursive fonts. Moreover, it is possible to extend the synthetic collection by adding random noise, page rotations, and other visual variations. We performed some experiments on two different handwritten collections using the toolkit to generate synthetic data to train a Convolutional Neural Network able to count the number of records in the real collections.
