diff --git a/product/ERP5OOo/tests/testDms.py b/product/ERP5OOo/tests/testDms.py
index 5da571ec6d768b2c66f082ebf07e4255e71099f3..e5435bcf642c716dc706b2831dc513a6db87bdf1 100644
--- a/product/ERP5OOo/tests/testDms.py
+++ b/product/ERP5OOo/tests/testDms.py
@@ -762,6 +762,17 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
     self.assert_('I use reference to look up TEST' in
                  document.SearchableText())
 
+  def test_PDFToImage(self):
+    upload_file = makeFileUpload('REF-en-001.pdf')
+    document = self.portal.portal_contributions.newContent(file=upload_file)
+    self.assertEquals('PDF', document.getPortalType())
+    content_type, image_data = document.convert(format='png',
+                                           frame=0,
+                                           display='thumbnail')
+    # it's a valid PNG
+    self.assertEquals('PNG', image_data[1:4])
+    
+
 class TestDocumentWithSecurity(ERP5TypeTestCase):
 
   username = 'yusei'