Skip to content

Commit

Permalink
PDF: better error message for non-converted svg images.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed May 20, 2017
1 parent 753d581 commit d109c8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Text/Pandoc/PDF.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d109c8b

Please sign in to comment.