From d109c8be8fe97631fa29affed0de6c4d50f56a95 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 20 May 2017 23:23:52 +0200 Subject: PDF: better error message for non-converted svg images. --- src/Text/Pandoc/PDF.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Text/Pandoc/PDF.hs b/src/Text/Pandoc/PDF.hs index 822067e78..090bcbc6d 100644 --- a/src/Text/Pandoc/PDF.hs +++ b/src/Text/Pandoc/PDF.hs @@ -159,6 +159,7 @@ convertImage tmpdir fname = Just "image/png" -> doNothing Just "image/jpeg" -> doNothing Just "application/pdf" -> doNothing + Just "image/svg+xml" -> return $ Left "conversion from svg not supported" _ -> JP.readImage fname >>= \res -> case res of Left e -> return $ Left e -- cgit v1.2.3