PDF: better error message for non-converted svg images.
commitd109c8be8fe97631fa29affed0de6c4d50f56a95
authorJohn MacFarlane <jgm@berkeley.edu>
dateSat 20 May 2017, 23:23 (9 years ago)
parent753d581
src/Text/Pandoc/PDF.hs+1
@@ -159,6 +159,7 @@ convertImage tmpdir fname =
159159 Just "image/png" -> doNothing
160160 Just "image/jpeg" -> doNothing
161161 Just "application/pdf" -> doNothing
162+ Just "image/svg+xml" -> return $ Left "conversion from svg not supported"
162163 _ -> JP.readImage fname >>= \res ->
163164 case res of
164165 Left e -> return $ Left e