Structure-Preserving Pipelines for Digital Libraries