39 lines
No EOL
1.5 KiB
PostScript
39 lines
No EOL
1.5 KiB
PostScript
%!
|
|
% This prefix file for creating a PDF/A document is derived from
|
|
% the sample included with Ghostscript 9.07, released under the
|
|
% GNU Affero General Public License.
|
|
% Modified 4/15/2013 by MCB Systems.
|
|
|
|
% Feel free to modify entries marked with "Customize".
|
|
|
|
% This assumes an ICC profile to reside in the file (AdobeRGB1998.icc),
|
|
% unless the user modifies the corresponding line below.
|
|
|
|
% The color space described by the ICC profile must correspond to the
|
|
% ProcessColorModel specified when using this prefix file (GRAY with
|
|
% DeviceGray, RGB with DeviceRGB, and CMYK with DeviceCMYK).
|
|
|
|
% Define entries in the document Info dictionary :
|
|
|
|
/ICCProfile (/opt/pdfa/bin/AdobeRGB1998.icc) % 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} {systemdict /ProcessColorModel get /DeviceRGB eq {3} {4} ifelse} 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 (default_rgb) % Customize
|
|
>> /PUT pdfmark
|
|
[{Catalog} <</OutputIntents [ {OutputIntent_PDFA} ]>> /PUT pdfmark |