Advertisement
Guest User

PDFA_Def.ps

a guest
Sep 11th, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. %!
  2. % This is a sample prefix file for creating a PDF/A document.
  3. % Feel free to modify entries marked with "Customize".
  4.  
  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.  
  8.  
  9. systemdict /ProcessColorModel known {
  10. systemdict /ProcessColorModel get dup /DeviceGray ne exch /DeviceCMYK ne and
  11. } {
  12. true
  13. } ifelse
  14. { (ERROR: ProcessColorModel must be /DeviceGray or DeviceCMYK.)=
  15. /ProcessColorModel cvx /rangecheck signalerror
  16. } if
  17.  
  18.  
  19. % Define entries to the document Info dictionary :
  20.  
  21. /ICCProfile (sRGB_Color_Space_Profile.icm) % Customize.
  22. def
  23.  
  24. [ /Title (Title) % Customize.
  25. /DOCINFO pdfmark
  26.  
  27. % Define an ICC profile :
  28.  
  29. [/_objdef {icc_PDFA} /type /stream /OBJ pdfmark
  30. [{icc_PDFA} <</N systemdict /ProcessColorModel get /DeviceGray eq {1} {4} ifelse >> /PUT pdfmark
  31. [{icc_PDFA} ICCProfile (r) file /PUT pdfmark
  32.  
  33. % Define the output intent dictionary :
  34.  
  35. [/_objdef {OutputIntent_PDFA} /type /dict /OBJ pdfmark
  36. [{OutputIntent_PDFA} <<
  37. /Type /OutputIntent % Must be so (the standard requires).
  38. /S /GTS_PDFA1 % Must be so (the standard requires).
  39. /DestOutputProfile {icc_PDFA} % Must be so (see above).
  40. /OutputConditionIdentifier (CGATS TR001) % Customize
  41. >> /PUT pdfmark
  42. [{Catalog} <</OutputIntents [ {OutputIntent_PDFA} ]>> /PUT pdfmark
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement