Are you talking about rendering them according to the spec or something else?
ISO 32000 is very clear that an annotation is rendered by simply drawing the relevant appearance stream. As such, there isn't much to test. Or are you doing something else? Leonard -----Original Message----- From: poppler [mailto:[email protected]] On Behalf Of Tobias Deiminger Sent: Friday, February 16, 2018 5:24 AM To: [email protected] Subject: [poppler] Patch in progress - looking for annotation related unit test data Hi folks! Do you have PDF document(s) around that contain various types of annotations, for the sake of unit testing? (already checked git://git.freedesktop.org/git/poppler/test, no hit) I'm asking because I'm working on a poppler patch and wanted to add unit tests before submitting it on bugzilla. The patch will add support for rendering individual annotations (as requested in [1]). The first version will have a QT5 API as QImage Poppler::Annotation::renderToImage(double hDPI, double vDPI) An obvious way to test this would be to render annotations from a test document and compare the resulting QImages with golden bitmaps. Do you think such a test will be maintainable? Rendering results might slightly change with algorithm evolution in splash/arthur/cairo versions, so the golden bitmap could need updates from time to time. If I had to create test documents on my own, which authoring tools would you use? There's -Poppler of course, but it lacks some annotation related features like saving appearance streams for self-created annotations into the PDF -Adobe tools are often considered as reference, but I had to buy them first -maybe the pdfcomment TeX package? No idea how complete the standard is implemented there... Best Tobias [1] https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Farchives%2Fpoppler%2F2017-April%2F012165.html&data=02%7C01%7Clrosenth%40adobe.com%7Cdfb5a351bf1a49c00da608d575276fd5%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636543734638790077&sdata=EWALB3XAYi5ZK1LcKu3Ek1zS%2FmctEt0uK4QVE2r77K8%3D&reserved=0 _______________________________________________ poppler mailing list [email protected] https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fpoppler&data=02%7C01%7Clrosenth%40adobe.com%7Cdfb5a351bf1a49c00da608d575276fd5%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636543734638790077&sdata=xAzbYmCg8qmvN4q7usZLx%2FvxKkiUrzTrentGBbu8xc8%3D&reserved=0 _______________________________________________ poppler mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/poppler
