High-quality pagination for publishing