Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %!
- % This is a sample prefix file for creating a PDF/A document.
- % Feel free to modify entries marked with "Customize".
- % This assumes an ICC profile to reside in the file (ISO Coated sb.icc),
- % unless the user modifies the corresponding line below.
- systemdict /ProcessColorModel known {
- systemdict /ProcessColorModel get dup /DeviceGray ne exch /DeviceCMYK ne and
- } {
- true
- } ifelse
- { (ERROR: ProcessColorModel must be /DeviceGray or DeviceCMYK.)=
- /ProcessColorModel cvx /rangecheck signalerror
- } if
- % Define entries to the document Info dictionary :
- /ICCProfile (sRGB_Color_Space_Profile.icm) % Customize.
- def
- [ /Title (Title) % Customize.
- /DOCINFO pdfmark
- % Define an ICC profile :
- [/_objdef {icc_PDFA} /type /stream /OBJ pdfmark
- [{icc_PDFA} <</N systemdict /ProcessColorModel get /DeviceGray eq {1} {4} ifelse >> /PUT pdfmark
- [{icc_PDFA} ICCProfile (r) file /PUT pdfmark
- % Define the output intent dictionary :
- [/_objdef {OutputIntent_PDFA} /type /dict /OBJ pdfmark
- [{OutputIntent_PDFA} <<
- /Type /OutputIntent % Must be so (the standard requires).
- /S /GTS_PDFA1 % Must be so (the standard requires).
- /DestOutputProfile {icc_PDFA} % Must be so (see above).
- /OutputConditionIdentifier (CGATS TR001) % Customize
- >> /PUT pdfmark
- [{Catalog} <</OutputIntents [ {OutputIntent_PDFA} ]>> /PUT pdfmark
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement