flatten annotated pdfs