BreadCrumbs: EPS Optimization
EPS Optimization
From Luke Jackson
(Difference between revisions)
Revision as of 20:08, 20 April 2007 (edit) Ljackson (Talk | contribs) ← Previous diff |
Revision as of 20:11, 20 April 2007 (edit) Ljackson (Talk | contribs) (→Bash) Next diff → |
||
Line 1: | Line 1: | ||
== Bash == | == Bash == | ||
- | === Embedded Fonts Check === | + | === Embedded Fonts Check (Adobe Illustrator) === |
+ | |||
+ | grep -ah %ADOBeginSubsetFont: * | cut -d : -f 2 | awk '{gsub(/^[ \t]+|[ \t]+$/,"");print}' | grep ^[a-zA-Z0-9] | ||
+ | |||
+ | === Embedded Fonts Check (Generic) === | ||
grep -ah %%DocumentFonts: * | cut -d : -f 2 | awk '{gsub(/^[ \t]+|[ \t]+$/,"");print}' | grep ^[a-zA-Z0-9] | grep -ah %%DocumentFonts: * | cut -d : -f 2 | awk '{gsub(/^[ \t]+|[ \t]+$/,"");print}' | grep ^[a-zA-Z0-9] |
Revision as of 20:11, 20 April 2007
Contents |
Bash
Embedded Fonts Check (Adobe Illustrator)
grep -ah %ADOBeginSubsetFont: * | cut -d : -f 2 | awk '{gsub(/^[ \t]+|[ \t]+$/,"");print}' | grep ^[a-zA-Z0-9]
Embedded Fonts Check (Generic)
grep -ah %%DocumentFonts: * | cut -d : -f 2 | awk '{gsub(/^[ \t]+|[ \t]+$/,"");print}' | grep ^[a-zA-Z0-9]
Binary Image Check
grep -al %%BeginBinary *
GhostScript
An open source command line based solution for cleaning up eps files and much more.
Conversion Methods
"C:\gs\gs8.56\bin\GSWin32c" -sDEVICE=epswrite -r72 -sOutputFile="C:\TEST\D\1628730_303135_speakeps_2.EPS" -dNOPAUSE -dEPSCrop "C:\TEST\2\1628730_303135_speakeps_2.eps" -c quit
EPSwrite Device
The epswrite device outputs encapsulated postscript. Options
-dLanguageLevel=1 | 1.5 | 2 | 3 (default is 2) Set the language level of the generated file. Language level 1.5 is language level 1 with color extensions. Currently language level 3 generates the same PostScript as 2.
EPS parameters
-dEPSCrop
Crop an EPS file to the bounding box. This is useful when converting an EPS file to a bitmap.
-dEPSFitPage
Resize an EPS file to fit the page. This is useful for enlarging an EPS file to fit the paper size when printing.
-dNOEPS
Prevent special processing of EPS files. This is useful when EPS files have incorrect Document Structuring Convention comments.
Sources
http://www.noliturbare.com GhostScript GUI
http://www.pstoedit.net/ pstoedit
http://www.cs.wisc.edu/~ghost/gsview/epstool.htm epstool
http://www.ics.uci.edu/~edashofy/epscleaner.html Extended EPS Information