![]() ![]() # note bookmarks are preserved, however). # then the metadata will be in output too (which is stripped otherwise # -sOutputFile=out.pdf in.pdf prologue.ini # -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -dDOPDFMARKS \ # gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 \ # asking to process pdfmarks in prologue.ini: #/Creator(LaTeX with hyperref package gs w/ prologue) # "Converting a color EPS to grayscale". "If you want to convert a multipage document then you better have pdftops from the xpdf suite installed because Ghostscript's pdf to ps doesn't produce nice Postscript." # "> Is there an easy (or just standard) way with pdflatex to do a > conversion from color to grayscale when a PDF file is generated? No.". # "AFAIK graphicx has no feature for manipulating colorspaces. I am including the whole script here to avoid link rot: # convert pdf to grayscale, preserving metadata It will create a file called input-gray.pdf. Once you have installed pdftk, save the script as graypdf.sh and run like so. You have not mentioned your distribution but on Debian-based systems, you should be able to install it with sudo apt-get install pdftk It requires gs which you seem to have but also pdftk. This software comes with NO WARRANTY: see the file PUBLIC for details. script.bash LeaseContract.pdfĬopyright (C) 2010 Artifex Software, Inc. Instead of that script I'd use this one from the SU question instead. When I tried it I got this error instead: Something definitely doesn't seem right with that script though. Not sure how you setup this script but it needs to executable. ![]() sColorConversionStrategyForImages=/Mono \Īnd run it like this: $. So I'm not sure what you actually tried but I'm guessing that you tried to put that command into a script, script.sh: #!/bin/bash ![]() The gs command you're running above has a trailing $1 which is typically meant for passing command line arguments into a script. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |