From c89e99be376c204633570d49c246b009d3d410d2 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Tue, 27 Mar 2012 12:04:11 +0000 Subject: [PATCH] Sample context file which uses GhostScript to transform PDFs to PNGs git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@34812 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- ...ostscript-pdf-rendering-context.xml.sample | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 config/alfresco/extension/ghostscript-pdf-rendering-context.xml.sample diff --git a/config/alfresco/extension/ghostscript-pdf-rendering-context.xml.sample b/config/alfresco/extension/ghostscript-pdf-rendering-context.xml.sample new file mode 100644 index 0000000000..70f3f8cde5 --- /dev/null +++ b/config/alfresco/extension/ghostscript-pdf-rendering-context.xml.sample @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + + + + + + ${gs.exe} + -version + + + + 127 + + + + + + + + + + cmd + /C + ${gs.exe} -dNOPAUSE -dSAFER -dBATCH -sDEVICE=png16m -dFirstPage=1 -dLastPage=1 ${resolution_opts} ${antialias_opts} "-sOutputFile=${target}" "${source}" 2> NUL + + + + + sh + -c + ${gs.exe} -dNOPAUSE -dSAFER -dBATCH -sDEVICE=png16m -dFirstPage=1 -dLastPage=1 ${resolution_opts} ${antialias_opts} "-sOutputFile=${target}" "${source}" 2> /dev/null + + + + + sh + -c + ${gs.exe} -dNOPAUSE -dSAFER -dBATCH -sDEVICE=png16m -dFirstPage=1 -dLastPage=1 ${resolution_opts} ${antialias_opts} "-sOutputFile=${target}" "${source}" 2> /dev/null + + + + + + true + + + + -r72 + -dTextAlphaBits=4 -dGraphicsAlphaBits=4 + + + + + + + + + + + application/pdf + + + image/png + + + + + + + + + + + + + + +