[poppler] Patch in progress - looking for annotation related unit test data
lrosenth at adobe.com
Fri Feb 16 13:30:06 UTC 2018
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?
From: poppler [mailto:poppler-bounces at lists.freedesktop.org] On Behalf Of Tobias Deiminger
Sent: Friday, February 16, 2018 5:24 AM
To: poppler at lists.freedesktop.org
Subject: [poppler] Patch in progress - looking for annotation related unit test data
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 ). 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...
poppler mailing list
poppler at lists.freedesktop.org
More information about the poppler