aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-04-21 12:28:30 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-04-21 12:28:30 -0700
commit229db80ac23ab0b5dba396d7748fcba0d05c4785 (patch)
tree08aefca34113846b683b5a589754428902a95221 /src/Text/Pandoc
parentcd51983afe08697d627ecb091d42e40d897470b9 (diff)
downloadpandoc-229db80ac23ab0b5dba396d7748fcba0d05c4785.tar.gz
makePDF: Don't try to convert eps files.
pdflatex converts them itself, and JuicyPixels can't do it. See #2067.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/PDF.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/PDF.hs b/src/Text/Pandoc/PDF.hs
index fce463d34..c73ab2dd9 100644
--- a/src/Text/Pandoc/PDF.hs
+++ b/src/Text/Pandoc/PDF.hs
@@ -175,6 +175,8 @@ convertImage tmpdir fname =
Just "image/png" -> doNothing
Just "image/jpeg" -> doNothing
Just "application/pdf" -> doNothing
+ -- Note: eps is converted by pdflatex using epstopdf.pl
+ Just "application/eps" -> doNothing
Just "image/svg+xml" -> E.catch (do
(exit, _) <- pipeProcess Nothing "rsvg-convert"
["-f","pdf","-a","-o",pdfOut,fname] BL.empty