home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / ghostscript / 8.64 / lib / PDFA_def.ps < prev    next >
Encoding:
Text File  |  2009-04-17  |  1.4 KB  |  44 lines

  1. %!
  2. % $Id: PDFA_def.ps 8284 2007-10-10 17:40:38Z giles $
  3. % This is a sample prefix file for creating a PDF/A document.
  4. % Feel free to modify entries marked with "Customize".
  5.  
  6. % This assumes an ICC profile to reside in the file (ISO Coated sb.icc),
  7. % unless the user modifies the corresponding line below.
  8.  
  9.  
  10. systemdict /ProcessColorModel known {
  11.   systemdict /ProcessColorModel get dup /DeviceGray ne exch /DeviceCMYK ne and
  12. } {
  13.   true
  14. } ifelse 
  15. { (ERROR: ProcessColorModel must be /DeviceGray or DeviceCMYK.)=
  16.   /ProcessColorModel cvx /rangecheck signalerror
  17. } if
  18.  
  19.  
  20. % Define entries to the document Info dictionary :
  21.  
  22. /ICCProfile (ISO Coated sb.icc)   % Customize.
  23. def
  24.  
  25. [ /Title (Title)                  % Customize.
  26.   /DOCINFO pdfmark
  27.  
  28. % Define an ICC profile :
  29.  
  30. [/_objdef {icc_PDFA} /type /stream /OBJ pdfmark
  31. [{icc_PDFA} <</N systemdict /ProcessColorModel get /DeviceGray eq {1} {4} ifelse >> /PUT pdfmark
  32. [{icc_PDFA} ICCProfile (r) file /PUT pdfmark
  33.  
  34. % Define the output intent dictionary :
  35.  
  36. [/_objdef {OutputIntent_PDFA} /type /dict /OBJ pdfmark
  37. [{OutputIntent_PDFA} <<
  38.   /Type /OutputIntent             % Must be so (the standard requires).
  39.   /S /GTS_PDFA1                   % Must be so (the standard requires).
  40.   /DestOutputProfile {icc_PDFA}            % Must be so (see above).
  41.   /OutputConditionIdentifier (CGATS TR001)      % Customize
  42. >> /PUT pdfmark
  43. [{Catalog} <</OutputIntents [ {OutputIntent_PDFA} ]>> /PUT pdfmark
  44.