星火微课系统客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PDFA_def.ps 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. % This assumes an ICC profile to reside in the file (ISO Coated sb.icc),
  6. % unless the user modifies the corresponding line below.
  7. systemdict /ProcessColorModel known {
  8. systemdict /ProcessColorModel get dup /DeviceGray ne exch /DeviceCMYK ne and
  9. } {
  10. true
  11. } ifelse
  12. { (ERROR: ProcessColorModel must be /DeviceGray or DeviceCMYK.)=
  13. /ProcessColorModel cvx /rangecheck signalerror
  14. } if
  15. % Define entries to the document Info dictionary :
  16. /ICCProfile (ISO Coated sb.icc) % Customize.
  17. def
  18. [ /Title (Title) % Customize.
  19. /DOCINFO pdfmark
  20. % Define an ICC profile :
  21. [/_objdef {icc_PDFA} /type /stream /OBJ pdfmark
  22. [{icc_PDFA} <</N systemdict /ProcessColorModel get /DeviceGray eq {1} {4} ifelse >> /PUT pdfmark
  23. [{icc_PDFA} ICCProfile (r) file /PUT pdfmark
  24. % Define the output intent dictionary :
  25. [/_objdef {OutputIntent_PDFA} /type /dict /OBJ pdfmark
  26. [{OutputIntent_PDFA} <<
  27. /Type /OutputIntent % Must be so (the standard requires).
  28. /S /GTS_PDFA1 % Must be so (the standard requires).
  29. /DestOutputProfile {icc_PDFA} % Must be so (see above).
  30. /OutputConditionIdentifier (CGATS TR001) % Customize
  31. >> /PUT pdfmark
  32. [{Catalog} <</OutputIntents [ {OutputIntent_PDFA} ]>> /PUT pdfmark