Created
September 9, 2016 23:03
-
-
Save weltonrodrigo/19df77833f023fbe1572168982e4b515 to your computer and use it in GitHub Desktop.
PDFA_def to convert from PDF to PDFA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%! | |
% 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 (PATH_TO_YOUR_ICC_FILE) % 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 (AdobeRGB1998) % Customize | |
>> /PUT pdfmark | |
[{Catalog} <</OutputIntents [ {OutputIntent_PDFA} ]>> /PUT pdfmark |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment