-
Notifications
You must be signed in to change notification settings - Fork 6
/
pdfx.sty
1978 lines (1902 loc) · 66.3 KB
/
pdfx.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%%
%% This is file `pdfx.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% pdfx.dtx (with options: `package')
%%
%% Copyright (c) 2015, CV Radhakrishnan <[email protected]>,
%% Han The Thanh <[email protected]>,
%% Ross Moore <[email protected]>,
%% Peter Selinger <[email protected]>
%%
%% This file may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.2 of this
%% license or (at your option) any later version. The latest version
%% of this license is in:
%%
%% http://www.latex-project.org/lppl.txt
%%
%% and version 1.2 or later is part of all distributions of LaTeX
%% version 1999/12/01 or later.
%%
\@ifpackageloaded{pdfxmult}{%
\PackageError{pdfx}%
{^^JThis package may not be used in conjunction with the \space
pdfxmult \space package}%
{Type \space x <return> \space to exit; or just \space <return> \space
to continue without this package.}%
\expandafter\let\csname [email protected]\endcsname\@empty\endinput
}{}%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{pdfx}
[2016/05/03 v1.5.8 PDF/X and PDF/A support (CVR/HTH/RRM/PS)]
\newif\ifpdfx@noBOM \pdfx@noBOMfalse % use a BOM in the XMP packet
\newif\ifpdfx@x \pdfx@xfalse % PDF/X mode
\newif\ifpdfx@e \pdfx@efalse % PDF/E mode; not implemented yet
\newif\ifpdfx@vt \pdfx@vtfalse % PDF/VT mode, extension of PDF/X
\newif\ifno@iccprofile % used with PDF/X-4p and PDF/X-5pg
\newif\ifpdfx@noerr % error messages become just warnings
\DeclareOption{noerr}{\pdfx@noerrtrue}
%% Not all combinations of the following parameters are meaningful.
\def\xmp@Part{1} % PDF/A part: 1, 2, or 3
\def\xmp@Conformance{B} % Conformance level: A, B, or U
\def\xmp@ReleaseDate{2005} % 2001 for PDF/X-1, 2005 for PDF/A-1,
% 2010 for PDF/A-2, 2012 for PDF/A-3.
%% default is to create PDF/A-1b
%% options can change this for PDF/X or higher levels of PDF/A
\DeclareOption{a-1a}{\global\pdfx@xfalse\def\xmp@Part{1}%
\def\xmp@Conformance{A}\def\xmp@ReleaseDate{2005}}
\DeclareOption{a-1b}{\global\pdfx@xfalse\def\xmp@Part{1}%
\def\xmp@Conformance{B}\def\xmp@ReleaseDate{2005}}
\DeclareOption{a-2a}{\global\pdfx@xfalse\def\xmp@Part{2}%
\def\xmp@Conformance{A}\def\xmp@ReleaseDate{2010}}
\DeclareOption{a-2b}{\global\pdfx@xfalse\def\xmp@Part{2}%
\def\xmp@Conformance{B}\def\xmp@ReleaseDate{2010}}
\DeclareOption{a-2u}{\global\pdfx@xfalse\def\xmp@Part{2}%
\def\xmp@Conformance{U}\def\xmp@ReleaseDate{2010}}
\DeclareOption{a-3a}{\global\pdfx@xfalse\def\xmp@Part{3}%
\def\xmp@Conformance{A}\def\xmp@ReleaseDate{2012}}
\DeclareOption{a-3b}{\global\pdfx@xfalse\def\xmp@Part{3}%
\def\xmp@Conformance{B}\def\xmp@ReleaseDate{2012}}
\DeclareOption{a-3u}{\global\pdfx@xfalse\def\xmp@Part{3}%
\def\xmp@Conformance{U}\def\xmp@ReleaseDate{2012}}
\DeclareOption{x-1}{\global\pdfx@xtrue\def\xmp@Part{1}%
\def\xmp@Conformance{a}\def\xmp@ReleaseDate{2001}%
\global\pdfminorversion=3 }
\DeclareOption{x-1a}{\global\pdfx@xtrue\def\xmp@Part{1}%
\def\xmp@Conformance{a}\def\xmp@ReleaseDate{2003}%
\global\pdfminorversion=3 }
\DeclareOption{x-1a1}{\global\pdfx@xtrue\def\xmp@Part{1}%
\def\xmp@Conformance{a}\def\xmp@ReleaseDate{2001}%
\global\pdfminorversion=3 }
\DeclareOption{x-1a3}{\global\pdfx@xtrue\def\xmp@Part{1}%
\def\xmp@Conformance{a}\def\xmp@ReleaseDate{2003}%
\global\pdfminorversion=3 }
\DeclareOption{x-2}{\global\pdfx@xtrue\def\xmp@Part{2}%
\def\xmp@Conformance{}\def\xmp@ReleaseDate{2002}%
\global\pdfminorversion=4 }
\DeclareOption{x-3}{\global\pdfx@xtrue\def\xmp@Part{3}%
\def\xmp@Conformance{}\def\xmp@ReleaseDate{2002}%
\global\pdfminorversion=3 }
\DeclareOption{x-302}{\global\pdfx@xtrue\def\xmp@Part{3}%
\def\xmp@Conformance{}\def\xmp@ReleaseDate{2002}%
\global\pdfminorversion=3 }
\DeclareOption{x-303}{\global\pdfx@xtrue\def\xmp@Part{3}%
\def\xmp@Conformance{}\def\xmp@ReleaseDate{2003}%
\global\pdfminorversion=4 }
%%% Later versions, yet to be fully implemented
\DeclareOption{x-4}{\global\pdfx@xtrue\def\xmp@Part{4}%
\def\xmp@Conformance{}\def\xmp@ReleaseDate{2008}%
\global\pdfminorversion=6 }
\DeclareOption{x-4p}{\global\pdfx@xtrue\global\no@iccprofiletrue
\def\xmp@Part{4}\def\xmp@Conformance{p}\def\xmp@ReleaseDate{2008}%
\global\pdfminorversion=6 }
\DeclareOption{x-408}{\global\pdfx@xtrue\def\xmp@Part{4}%
\def\xmp@Conformance{}\def\xmp@ReleaseDate{2008}%
\global\pdfminorversion=6 }
\DeclareOption{x-410}{\global\pdfx@xtrue\def\xmp@Part{4}%
\def\xmp@Conformance{}\def\xmp@ReleaseDate{2010}%
\global\pdfminorversion=6 }
\DeclareOption{x-4p08}{\global\pdfx@xtrue\global\no@iccprofiletrue
\def\xmp@Part{4}\def\xmp@Conformance{p}\def\xmp@ReleaseDate{2008}%
\global\pdfminorversion=6 }
\DeclareOption{x-4p10}{\global\pdfx@xtrue\global\no@iccprofiletrue
\def\xmp@Part{4}\def\xmp@Conformance{p}\def\xmp@ReleaseDate{2010}%
\global\pdfminorversion=6 }
\DeclareOption{x-5}{\global\pdfx@xtrue\def\xmp@Part{5}%
\def\xmp@Conformance{}\def\xmp@ReleaseDate{2008}%
\global\pdfminorversion=6 }
\DeclareOption{x-5g}{\global\pdfx@xtrue\def\xmp@Part{5}%
\def\xmp@Conformance{g}\def\xmp@ReleaseDate{2008}%
\global\pdfminorversion=6 }
\DeclareOption{x-5n}{\global\pdfx@xtrue\def\xmp@Part{5}%
\def\xmp@Conformance{n}\def\xmp@ReleaseDate{2008}%
\global\pdfminorversion=6 }
\DeclareOption{x-5pg}{\global\pdfx@xtrue\global\no@iccprofiletrue
\def\xmp@Part{5}\def\xmp@Conformance{pg}\def\xmp@ReleaseDate{2008}%
\global\pdfminorversion=6 }
\DeclareOption{x-508}{\global\pdfx@xtrue\def\xmp@Part{5}%
\def\xmp@Conformance{}\def\xmp@ReleaseDate{2008}%
\global\pdfminorversion=6 }
\DeclareOption{x-5g08}{\global\pdfx@xtrue\def\xmp@Part{5}%
\def\xmp@Conformance{g}\def\xmp@ReleaseDate{2008}%
\global\pdfminorversion=6 }
\DeclareOption{x-5n08}{\global\pdfx@xtrue\def\xmp@Part{5}%
\def\xmp@Conformance{n}\def\xmp@ReleaseDate{2008}%
\global\pdfminorversion=6 }
\DeclareOption{x-5pg08}{\global\pdfx@xtrue\global\no@iccprofiletrue
\def\xmp@Part{5}\def\xmp@Conformance{pg}\def\xmp@ReleaseDate{2008}%
\global\pdfminorversion=6 }
\DeclareOption{x-510}{\global\pdfx@xtrue\def\xmp@Part{5}%
\def\xmp@Conformance{}\def\xmp@ReleaseDate{2010}%
\global\pdfminorversion=6 }
\DeclareOption{x-5g10}{\global\pdfx@xtrue\def\xmp@Part{5}%
\def\xmp@Conformance{g}\def\xmp@ReleaseDate{2010}%
\global\pdfminorversion=6 }
\DeclareOption{x-5n10}{\global\pdfx@xtrue\def\xmp@Part{5}%
\def\xmp@Conformance{n}\def\xmp@ReleaseDate{2010}%
\global\pdfminorversion=6 }
\DeclareOption{x-5pg10}{\global\pdfx@xtrue\global\no@iccprofiletrue
\def\xmp@Part{5}\def\xmp@Conformance{pg}\def\xmp@ReleaseDate{2010}%
\global\pdfminorversion=6 }
\DeclareOption{e-1}{\global\pdfx@xfalse\global\pdfx@etrue
\def\xmp@Part{1}\def\xmp@Conformance{}\def\xmp@ReleaseDate{2008}%
\global\pdfminorversion=6 }
\DeclareOption{vt-1}{\global\pdfx@xtrue\global\pdfx@vttrue
\def\xmp@Part{4}\def\xmp@vtPart{1}\def\xmp@Conformance{}%
\def\xmp@vtConformance{}\def\xmp@ReleaseDate{2010}%
\global\pdfminorversion=6 }
\DeclareOption{vt-2}{\global\pdfx@xtrue\global\pdfx@vttrue
\global\no@iccprofiletrue
\def\xmp@Part{5}\def\xmp@vtPart{2}\def\xmp@Conformance{pg}%
\def\xmp@vtConformance{}\def\xmp@ReleaseDate{2010}%
\global\pdfminorversion=6 }
\DeclareOption{vt-2s}{\global\pdfx@xtrue\global\pdfx@vttrue
\global\no@iccprofiletrue
\def\xmp@Part{5}\def\xmp@vtPart{2}\def\xmp@Conformance{pg}%
\def\xmp@vtConformance{s}\def\xmp@ReleaseDate{2010}%
\global\pdfminorversion=6 }
%% options to alter PDF minor version, in case needed in special circumstances
\DeclareOption{pdf13}{\global\pdfminorversion=3 }
\DeclareOption{pdf14}{\global\pdfminorversion=4 }
\DeclareOption{pdf15}{\global\pdfminorversion=5 }
\DeclareOption{pdf16}{\global\pdfminorversion=6 }
\DeclareOption{pdf17}{\global\pdfminorversion=7 }
%% inhibits writing the XMP byte-order marker
\DeclareOption{noBOM}{\pdfx@noBOMtrue}
\DeclareOption{useBOM}{\pdfx@noBOMfalse}
\expandafter\ifx\csname pdfminorversion\endcsname\relax
\gdef\thepdfminorversion{4}% assumed with XeTeX
\def\pdf@minorversion@xetex=#1{\gdef\thepdfminorversion{#1}}%
\let\pdfminorversion\pdf@minorversion@xetex
\else
\pdfminorversion=4 % assumed for PDF/A ; options may change this for PDF/X
\fi
\expandafter\ifx\csname pdfresetpageorigin\endcsname\relax\else
\pdfresetpageorigin=0
\fi
%% options for language character macros in XMP metadata
\newif\ifcyrxmp
\newif\ifcyrKOIxmp
\newif\ifgrkxmp
\newif\ifgrkLGRxmp
\newif\ifhebxmp
\newif\ifarbxmp
\newif\ifarmxmp
\newif\ifarmSCIxmp
\newif\ifvnmxmp
\newif\iflatEXTxmp
\newif\iflatLATxmp
\newif\ifipaxmp
\newif\ifmathxmp
\DeclareOption{latxmp}{\global\latEXTxmptrue}
\DeclareOption{LATxmp}{\global\latLATxmptrue\global\latEXTxmptrue}
\DeclareOption{cyrxmp}{\global\cyrxmptrue}
\DeclareOption{KOIxmp}{\global\cyrKOIxmptrue\global\cyrxmptrue}
\DeclareOption{grkxmp}{\global\grkxmptrue}
\DeclareOption{LGRxmp}{\global\grkLGRxmptrue\global\grkxmptrue}
\DeclareOption{hebxmp}{\global\hebxmptrue}
\DeclareOption{arbxmp}{\global\arbxmptrue}
\DeclareOption{armxmp}{\global\armxmptrue}
\DeclareOption{AR8xmp}{\global\armSCIxmptrue\global\armxmptrue}
\DeclareOption{vnmxmp}{\global\vnmxmptrue}
\DeclareOption{ipaxmp}{\global\ipaxmptrue\global\latEXTxmptrue}
\DeclareOption{mathxmp}{\global\mathxmptrue\global\grkxmptrue}
%% all the above
\DeclareOption{allxmp}{%
\global\cyrxmptrue
\global\cyrKOIxmptrue
\global\grkxmptrue
\global\grkLGRxmptrue
\global\hebxmptrue
\global\arbxmptrue
\global\armxmptrue
\global\armSCIxmptrue
\global\vnmxmptrue
\global\latEXTxmptrue
\global\latLATxmptrue
\global\ipaxmptrue
\global\mathxmptrue
}
\ExecuteOptions{noBOM,a-1b}
\ProcessOptions
\expandafter\ifx\csname thepdfminorversion\endcsname\relax
\xdef\thepdfminorversion{\the\pdfminorversion}
\fi
\newif\ifpdfx@nopdfinfo
\ifmathxmp\pdfx@nopdfinfotrue
\else
\iflatLATxmp\pdfx@nopdfinfotrue
\else
\ifgrkLGRxmp\pdfx@nopdfinfotrue
\else
\ifcyrKOIxmp\pdfx@nopdfinfotrue
\else
\ifarmSCIxmp\pdfx@nopdfinfotrue
\fi\fi\fi\fi\fi
\newif\ifpdfx@useactivespaces
\iflatLATxmp\pdfx@useactivespacestrue\fi
\ifgrkLGRxmp\pdfx@useactivespacestrue\fi
\ifcyrKOIxmp\pdfx@useactivespacestrue\fi
\ifarmSCIxmp\pdfx@useactivespacestrue\fi
\newif\ifpdfx@transliterated
\ifgrkLGRxmp\pdfx@transliteratedtrue\fi
\ifarmSCIxmp\pdfx@transliteratedtrue\fi
%% Support for pdfTeX primitives when using XeTeX:
\RequirePackage{ifxetex}
\ifxetex
\def\pdfx@pages@xetex#1{\special{pdf:put @pages <<#1>>}}
\def\pdfx@docinfo@xetex#1{\special{pdf:put @docinfo <<#1>>}}
\def\pdfx@catalog@xetex#1{\special{pdf:put @catalog <<#1>>}}
\def\pdfx@mapline@xetex#1{}
\def\pdf@compress@xetex=#1{}
%%
\let\pdfpageattr\pdfx@pages@xetex
\let\pdfinfo\pdfx@docinfo@xetex
\let\pdfcatalog\pdfx@catalog@xetex
\let\pdfmapline\pdfx@mapline@xetex
\let\pdfcompresslevel\pdf@compress@xetex
\let\pdfobjcompresslevel\pdf@compress@xetex
\fi
\RequirePackage{ifluatex}
\ifluatex
\IfFileExists{luatex85.sty}{% 2016+
\RequirePackage{luatex85}%
\edef\pdfcreationdate{\pdfcreationdate}%
}{% earlier versions
}%
\RequirePackage{pdftexcmds}%
\let\pdfx@mdfivesum\pdf@mdfivesum
\else
\ifxetex
\usepackage{everyshi}%
\expandafter\ifx\csname mdfivesum\endcsname\relax
% too early a version of XeTeX
\let\pdfx@mdfivesum\relax
\else
% since mid-2015
\let\pdfx@mdfivesum\mdfivesum
\fi
\else
\let\pdfx@mdfivesum\pdfmdfivesum
\fi
\fi
\def\pdfx@encodingfile{l8uenc.def}
\expandafter\ifx\csname pdftexbanner\endcsname\relax
\expandafter\ifx\csname luatexbanner\endcsname\relax
\else % luatex85
\let\pdftexbanner\luatexbanner
\fi
\else % pdfTeX, but which version ???
{\endlinechar=-1
\everyeof{\noexpand}%
\xdef\pdfx@bannerstring{\expandafter\scantokens\expandafter{\pdftexbanner}}
}%
\def\pdfx@testbannerstr{%
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014/dev)
kpathsea version 6.2.0dev}%
\ifx\pdfx@bannerstring\pdfx@testbannerstr
\typeout{This version of pdfTeX cannot write out upper-range character bytes,
128-255.}%
\typeout{Any UTF-8 Unicode characters in the Metadata will not be written
correctly.}%
\typeout{Please update to a more stable version of pdfTeX.^^J}%
\fi
\fi
%% How to support XeTeX here ?
\ifpdfx@x
\pdfobjcompresslevel=0 \relax
\expandafter\ifx\csname pdfinterwordspaceoff\endcsname\relax\else
\pdfinterwordspaceoff
\let\pdfinterwordspaceon\pdfinterwordspaceoff
\let\pdfinterwordspace\relax
\fi
\expandafter\ifx\csname pdfgeninterwordspace\endcsname\relax\else
\pdfgeninterwordspace=0 \relax
\fi
\begingroup
\dimen0=0.996264009963\paperwidth\relax
\edef\pdfx@mwidth{\strip@pt\dimen0}%
\advance\dimen0 -25\p@
\edef\pdfx@twidth{\strip@pt\dimen0}%
\dimen0=0.996264009963\paperheight\relax
\edef\pdfx@mheight{\strip@pt\dimen0}%
\advance\dimen0 -20\p@
\edef\pdfx@theight{\strip@pt\dimen0}%
\ifxetex
\xdef\pdfx@everypage@xetex{%
/MediaBox[0 0 \pdfx@mwidth\space \pdfx@mheight]^^J
/TrimBox[25 20 \pdfx@twidth\space \pdfx@theight]%
}%
\fi
\edef\next{\endgroup\pdfpageattr{%
/MediaBox[0 0 \pdfx@mwidth\space \pdfx@mheight]^^J
%% /ArtBox[0 0 \pdfx@mwidth\space \pdfx@mheight]^^J
/BleedBox[0 0 \pdfx@mwidth\space \pdfx@mheight]^^J
/TrimBox[25 20 \pdfx@twidth\space \pdfx@theight]}
}\next
\ifxetex
\AtBeginDvi{%
\immediate\special{pdf:put @thispage <<\pdfx@everypage@xetex>>}}%
\EveryShipout{%
\immediate\special{pdf:put @thispage <<\pdfx@everypage@xetex>>}}%
\fi
\fi
\ifxetex
%% How to support XeTeX here ?
\else
\ifnum\thepdfminorversion >3 \relax
\expandafter\ifx\csname pdfsuppresswarningdupmap\endcsname\relax
\expandafter\ifx\csname pdfmapline\endcsname\relax\else
\pdfmapline{+dummy-space <dummy-space.pfb}
\fi
\else
\advance\pdfsuppresswarningdupmap 1
\pdfmapline{+dummy-space <dummy-space.pfb}
\advance\pdfsuppresswarningdupmap -1
\fi
\expandafter\ifx\csname pdfgeninterwordspace\endcsname\relax\else
\pdfgeninterwordspace=1 \relax
\fi
\fi
\fi
\ifluatex\else
\@ifpackageloaded{inputenc}{%
}{%
\RequirePackage{inputenc}
% allow this to be loaded again cleanly
\expandafter\let\csname [email protected]\endcsname\relax
}
\fi
%% pseudo-declare the L8U encoding
\expandafter\let\csname L8U-cmd\expandafter\endcsname\csname OT1-cmd\endcsname
\@namedef{T@L8U}{}%
\@namedef{D@L8U}{}%
\@namedef{M@L8U}{}%
\InputIfFileExists{\pdfx@encodingfile}{}{}
%%----------------------------------------------------------------------
%% Macros for reading XMP data with special catcodes. Usage:
%%
%% \xmp@parse{continuation}{data}
%%
%% The effect is to read the data with special catcodes: '<', '>', and
%% '&' are "active", and '^', '_', '#', '$', '~' are "other". The data
%% is then bound to the locally scoped name \@this, and the
%% continuation is called.
\def\xmp@parse#1{%
\begingroup
\catcode`\<=13\catcode`\>=13\catcode`\&=13\catcode`\^=12
\catcode`\_=12\catcode`\#=12\catcode`\$=12\catcode`\~=12
\ifpdfx@useactivespaces\obeyspaces\fi % capture spaces as active characters
\xmp@doparse{#1}%
}
\def\xmp@doparse#1#2{%
\def\@this{#2}#1
\endgroup
}
%%----------------------------------------------------------------------
%% Local commands. They are only brought into scope during the reading
%% of xmpdata.
\def\pdfx@localcommands{
\def\Title{\xmp@parse{\global\let\xmp@Title\@this}}
\def\Author{\xmp@parse{\global\let\xmp@Author\@this}}
\def\Keywords{\xmp@parse{\global\let\xmp@Keywords\@this}}
\def\Subject{\xmp@parse{\global\let\xmp@Subject\@this}}
\def\CreatorTool{\xmp@parse{\global\let\xmp@CreatorTool\@this}}
\def\Producer{\xmp@parse{\global\let\xmp@Producer\@this}}
\def\Volume{\xmp@parse{\global\let\xmp@Volume\@this}}
\def\Issue{\xmp@parse{\global\let\xmp@Issue\@this}}
\def\CoverDisplayDate{\xmp@parse{\global\let\xmp@CoverDisplayDate\@this}}
\def\CoverDate{\xmp@parse{\global\let\xmp@CoverDate\@this}}
\def\Copyright{\xmp@parse{\global\let\xmp@Copyright\@this%
\ifx\xmp@Copyrighted\@empty\gdef\xmp@Copyrighted{True}\fi}}
\def\CopyrightURL{\xmp@parse{\global\let\xmp@CopyrightURL\@this%
\ifx\xmp@Copyrighted\@empty\gdef\xmp@Copyrighted{True}\fi}}
\def\Copyrighted{\xmp@parse{\global\let\xmp@Copyrighted\@this}}
\def\Doi{\xmp@parse{\global\let\xmp@Doi\@this}}
\def\Lastpage{\xmp@parse{\global\let\xmp@Lastpage\@this}}
\def\Firstpage{\xmp@parse{\global\let\xmp@Firstpage\@this}}
\def\PublicationType{\xmp@parse{\global\let\xmp@PublicationType\@this}}
\def\Journaltitle{\xmp@parse{\global\let\xmp@Journaltitle\@this%
\ifx\xmp@PublicationType\@empty\gdef\xmp@PublicationType{journal}\fi}}
\def\Journalnumber{\xmp@parse{\global\let\xmp@Journalnumber\@this}}
\def\Publisher{\xmp@parse{\global\let\xmp@Publisher\@this}}
%%
%% currently unused; for backward compatibility only
\def\AuthoritativeDomain{\xmp@parse
{\global\let\xmp@AuthoritativeDomain\@this}}
\let\Creator\CreatorTool % for backward compatibility
\let\Org\Publisher % for backward compatibility
\let\WebStatement\CopyrightURL % for backward compatibility
}
%%----------------------------------------------------------------------
%% The following characters and markup can be used within the XMP data
%% defined by \Author, \Title, and so on.
%%
%% * All printable non-whitespace ASCII characters except
%% '%', '{', '}', '\' can be used as themselves.
%%
%% * All printable non-whitespace UTF-8 encoded Unicode characters
%% from the basic multilingual plane can be used as themselves.
%%
%% * As usual, consecutive whitespace characters are contracted to a
%% single space. Whitespace after a macro such as \copyright is
%% ignored. Blank lines are not permitted.
%%
%% * The following markup can be used:
%% '\ ' - a literal space (for example after a macro)
%% \% - a literal '%'
%% \{ - a literal '{'
%% \} - a literal '}'
%% \backslash - a literal '\'
%% \copyright - the (c) copyright symbol
%%
%% \sep - only permitted within \Author, \Keywords, \Publisher.
%%
%% * For backward compatibility, \& and \TextCopyright are also
%% provided. Their use is deprecated.
%%----------------------------------------------------------------------
%% The macro \pdfx@actives binds the active characters
%% '&', '<', and '>' to \pdfx@amp, \pdfx@lt, and \pdfx@gt,
%% respectively, without actually making them active.
\begingroup
\catcode`\<=13
\catcode`\>=13
\catcode`\&=13
\gdef\pdfx@actives{
\def&{\pdfx@amp}
\def<{\pdfx@lt}
\def>{\pdfx@gt}
}
\endgroup
%%----------------------------------------------------------------------
%% Markup bindings to be used during XMP generation.
{\obeyspaces\ifpdfx@useactivespaces%
\xdef\pdfx@sep {</rdf:li>^^J <rdf:li>}%
\else\gdef\pdfx@sep{</rdf:li>^^J <rdf:li>}%
\fi}
\def\pdfx@xmpmarkup{%
\pdfx@actives
\edef\@amp{\expandafter\@gobble\string\&}%
\edef\@hash{\expandafter\@gobble\string\#}%
\edef\ {\expandafter\@gobble\string\ }%
\edef\%{\expandafter\@gobble\string\%}%
\edef\{{\expandafter\@gobble\string\{}%
\edef\}{\expandafter\@gobble\string\}}%
\edef\backslash{\expandafter\@gobble\string\\}%
\def\@unicode##1{\@amp\@hash x##1;}%
\def\pdfx@amp{\@unicode{0026}}%
\def\pdfx@lt{\@unicode{003c}}%
\def\pdfx@gt{\@unicode{003e}}%
\def\copyright{\@unicode{00A9}}%
\let\&\pdfx@amp % for backward compatibility
\let\TextCopyright\copyright % for backward compatibility
\let\sep\pdfx@sep
\pdfx@xmpunimarkup % only need this when writing XMP
\the\pdfxsafeforxmp@toks
}
%% cope with active spaces with LGR encoding
%% and the spaces written out with \IeC in KOI8-r
%% It's possible to have both together.
\def\liixu@IeC#1#{\liixu@IeCi}
\def\liixu@IeCi#1{\liixu@IeCii#1}
\def\liixu@IeCii#1#2{#1}
\def\liixu@enableIeC{\ifpdfx@useactivespaces
\let\IeC\liixu@IeC\else\def\IeC##1{##1}\fi}
\def\liixu@numberline#1#{\liixu@numberlinei}
\def\liixu@numberlinei#1{\liixu@numberlineii#1}
\def\liixu@numberlineii#1{\textLF #1. }
\def\liixu@enablenumberline{\ifpdfx@useactivespaces
\let\numberline\liixu@numberline
\else\def\numberline##1{\textLF ##1. }\fi}
\def\pdfx@xmpunimarkup{%
\liixu@enableIeC
\liixu@enablenumberline
\def\empty{}% used in LICR patterns
\let\sp\textsuperstring
\let\sb\textsubstring
\let\textsuperscript\dotextsuperscript
\LIIXUmapTeXnames
%% from Hyperref's psdextra.def
\csname psdmapshortnames\endcsname
\csname psdaliasnames\endcsname
%% from lu8enc.def
\csname LIIXUmapmathletterlikes\endcsname
\csname LIIXUmapmathspaces\endcsname
\iflatLATxmp
\LIIXUmaplatinchars
\LIIXUcancelfontswitches
\fi
\ifmathxmp
\let\(\textinlinemath
\let\[\textdisplaymath
\LIIXUmapmathaccents
\LIIXUmapisomathgreek
\LIIXUmapmatharrowsA
\LIIXUmapmathoperatorsA
\LIIXUmapmathoperatorsB
\LIIXUmapmiscmathsymbolsA
\LIIXUmapsupparrowsA
\LIIXUmapsupparrowsB
\LIIXUmapmiscmathsymbolsB
\LIIXUmapsuppmathoperators
\LIIXUmapunimathgreek
\LIIXUmapmathalphabets
\fi
\ifarbxmp \LIIXUmaparabicletters\fi
\ifarmxmp \LIIXUmaparmenianletters\fi
\ifgrkxmp \LIIXUmapgreekletters\fi
}
%% In case macros are used in XMP Metadata, need a way to map these
%% to simple text, rather than specific font characters, or whatever:
\newtoks\pdfxsafeforxmp@toks
\def\pdfxEnableCommands{% user command
\begingroup
\ifpdfx@useactivespaces\obeyspaces\fi
\pdfx@EnableCommands
}
\def\pdfx@EnableCommands#1{% internal command
\expandafter\global\expandafter\pdfxsafeforxmp@toks
\expandafter{\the\pdfxsafeforxmp@toks#1}%
\endgroup
}
%%----------------------------------------------------------------------
%% Markup bindings to be used during PDF string generation.
\def\pdfx@pdfmarkup{%
\pdfx@actives
\edef\%{\expandafter\@gobble\string\%}%
\edef\{{\expandafter\@gobble\string\{}%
\edef\}{\expandafter\@gobble\string\}}%
\edef\pdfx@backslash{\expandafter\@gobble\string\\}%
\def\backslash{\pdfx@backslash000\pdfx@backslash134}%
\edef\pdfx@amp{\expandafter\@gobble\string\&}%
\edef\pdfx@lt{\expandafter\@gobble\string\<}%
\edef\pdfx@gt{\expandafter\@gobble\string\>}%
\let\TextCopyright\copyright % for backward compatibility
\def\sep{; }%
%\let\sep\pdfx@sep
%% Note: '\ ', \&, \copyright are already predefined by hyperref.
\the\pdfxsafeforxmp@toks
}
%%----------------------------------------------------------------------
%% Defaults
\ifxetex
\def\xmp@Producer{XeTeX}
\else\ifluatex
\def\xmp@Producer{LuaTeX}
\else
\def\xmp@Producer{pdfTeX}
\fi\fi
\global\let\xmp@CreatorTool\@empty
\global\let\xmp@Title\@empty
\global\let\xmp@Author\@empty
\global\let\xmp@Keywords\@empty
\global\let\xmp@Subject\@empty
\global\let\xmp@Volume\@empty
\global\let\xmp@Issue\@empty
\global\let\xmp@CoverDisplayDate\@empty
\global\let\xmp@CoverDate\@empty
\global\let\xmp@Copyright\@empty
\global\let\xmp@Copyrighted\@empty
\global\let\xmp@CopyrightURL\@empty
\gdef\xmp@WebStatement{\xmp@CopyrightURL}
\global\let\xmp@Doi\@empty
\global\let\xmp@Lastpage\@empty
\global\let\xmp@Firstpage\@empty
\global\let\xmp@PublicationType\@empty
\global\let\xmp@Journaltitle\@empty
\global\let\xmp@Journalnumber\@empty
\global\let\xmp@Publisher\@empty
\gdef\xmp@Org{\xmp@Publisher}
\global\let\xmp@AuthoritativeDomain\@empty
%%----------------------------------------------------------------------
%% Alternative way to get the CreationDate using Lua for XeTeX
\ifdefined\pdfcreationdate\else
\begin{filecontents*}{creationdate.lua}
os.remove("creationdate.timestamp")
io.output("creationdate.timestamp"):write(os.date("\\edef\\tempa{\\string D:%Y%m%d%H%M%S}\n\\def\\tempb{%z}"))
\end{filecontents*}
\ifnum\shellescape=1
\begingroup
\immediate\write18{texlua creationdate.lua}
\input{creationdate.timestamp}
\def\tempc#1#2#3#4#5{#1#2#3'#4#5'}
\edef\tempb{\expandafter\tempc\tempb}
\edef\x{\endgroup\def\noexpand\pdfcreationdate{\tempa\tempb}}\x
\else
\ifpdfx@noerr
\PackageWarning{pdfx}{%
CreationDate is not properly supported;^^J
PDF validation may fail. To avoid this problem use:^^J
xelatex -shell-escape -output-driver="xdvipdfmx -z 0" <filename>^^J}
\else
\PackageError{pdfx}{%
CreationDate is not properly supported;^^J
PDF validation may fail.}{To avoid this problem use:^^J
xelatex -shell-escape -output-driver="xdvipdfmx -z 0" <filename> }
\fi
\fi
\fi
%%----------------------------------------------------------------------
\def\pdfx@findUUID#1{\edef\pdfx@tmpstring{\pdfx@mdfivesum{#1}}
\expandafter\pdfx@eightofnine\pdfx@tmpstring\end}
\def\pdfx@eightofnine#1#2#3#4#5#6#7#8#9\end{%
\xdef\pdfx@eightchars{#1#2#3#4#5#6#7#8}
\pdfx@fouroffive#9\end}
\def\pdfx@fouroffive#1#2#3#4#5\end{\xdef\pdfx@ffourchars{#1#2#3#4}
\pdfx@sfouroffive#5\end}
\def\pdfx@sfouroffive#1#2#3#4#5\end{\xdef\pdfx@sfourchars{#1#2#3#4}
\pdfx@tfouroffive#5\end}
\def\pdfx@tfouroffive#1#2#3#4#5\end{\xdef\pdfx@tfourchars{#1#2#3#4}
\xdef\pdfx@laststring{#5}}
\def\pdfx@uuid{\pdfx@eightchars-%
\pdfx@ffourchars-%
\pdfx@sfourchars-%
\pdfx@tfourchars-%
\pdfx@laststring}
\expandafter\ifx\csname pdfx@mdfivesum\endcsname\relax
\PackageError{pdfx}{%
No implementation for \string\pdfx@mdfivesum.^^J
\ifxetex XeTeX needs to be 2015 or later\fi
}{%
Continue without, but the PDF will not validate.
}%
\def\xmp@docid{}%
\def\pdfx@findUUID#1{}%
\def\pdfx@uuid{}%
\else
\pdfx@findUUID{\jobname.pdf}
\edef\xmp@docid{\pdfx@uuid}
\fi
\expandafter\ifx\csname pdfcreationdate\endcsname\relax\relax
\PackageWarning{pdfx}{%
No implementation for \string\pdfxcreation .
}%
\def\xmp@instid{}%
%%
\else %% use the MD5 sum methods
%%
\pdfx@findUUID{\pdfcreationdate}%
\edef\xmp@instid{\pdfx@uuid}
\fi
%%----------------------------------------------------------------------
%% load xcolor before hyperref to get the link colors correct
%%
\ifpdfx@x
\RequirePackage[cmyk,hyperref]{xcolor}
\else
%% \RequirePackage[rgb,hyperref]{xcolor}
\fi
%% the "pdftex" option seems to work fine with LuaTeX
%% Hyperref options for PDF/X
\def\pdfx@pdfX@opts@pdftex{%
draft,pdftex,pdfpagemode=UseNone,bookmarks=false,%
pdfversion=1.\thepdfminorversion,pdfstartview=}
\def\pdfx@pdfX@opts@xetex{%
draft,xetex,pdfpagemode=UseNone,bookmarks=false,%
pdfversion=1.\thepdfminorversion,pdfstartview=}
\def\pdfx@pdfX@opts@luatex{%
draft,pdftex,pdfpagemode=UseNone,bookmarks=false,%
pdfversion=1.\thepdfminorversion,pdfstartview=}
%% Hyperref options for PDF/A and PDF/E
\def\pdfx@pdfAE@opts@pdftex{pdftex,pdfa,pdfversion=1.\thepdfminorversion}%
\def\pdfx@pdfAE@opts@xetex{xetex,pdfa,pdfversion=1.\thepdfminorversion}%
\def\pdfx@pdfAE@opts@luatex{pdftex,pdfa,pdfversion=1.\thepdfminorversion}%
\ifpdfx@x
\@ifpackageloaded{hyperref}{%
\ifxetex
\hypersetup{\pdfx@pdfX@opts@xetex}
\else\ifluatex
\hypersetup{\pdfx@pdfX@opts@luatex}
\else
\hypersetup{\pdfx@pdfX@opts@pdftex}
\fi\fi
}{%
\ifxetex
\RequirePackage[\pdfx@pdfX@opts@xetex]{hyperref}
\else\ifluatex
\RequirePackage[\pdfx@pdfX@opts@luatex]{hyperref}
\else
\RequirePackage[\pdfx@pdfX@opts@pdftex]{hyperref}
\fi\fi
}%
\else
\ifpdfx@e
\@ifpackageloaded{hyperref}{%
\ifxetex
\hypersetup{\pdfx@pdfAE@opts@xetex}
\else\ifluatex
\hypersetup{\pdfx@pdfAE@opts@luatex}
\else
\hypersetup{\pdfx@pdfAE@opts@pdftex}
\fi\fi
}{%
\ifxetex
\RequirePackage[\pdfx@pdfAE@opts@xetex]{hyperref}
\else\ifluatex
\RequirePackage[\pdfx@pdfAE@opts@luatex]{hyperref}
\else
\RequirePackage[\pdfx@pdfAE@opts@pdftex]{hyperref}
\fi\fi
}%
\else % generating PDF/A or ...
\@ifpackageloaded{hyperref}{%
\ifxetex
\hypersetup{\pdfx@pdfAE@opts@xetex}%
\else\ifluatex
\hypersetup{\pdfx@pdfAE@opts@luatex}%
\else
\hypersetup{\pdfx@pdfAE@opts@pdftex}%
\fi\fi
}{%
\ifxetex
\RequirePackage[\pdfx@pdfAE@opts@xetex]{hyperref}
\else\ifluatex
\RequirePackage[\pdfx@pdfAE@opts@luatex]{hyperref}
\else
\RequirePackage[\pdfx@pdfAE@opts@pdftex]{hyperref}
\fi\fi
}%
\fi\fi
\hypersetup{pdfencoding=auto}% unicode
\expandafter\ifx\csname KV@Hyp@psdextra\endcsname\relax\else
\hypersetup{psdextra}
\fi
\ifx\xmp@CreatorTool\@empty
\edef\xmp@CreatorTool{\@pdfcreator}
\fi
\newif\ifpdfx@cmyk
\ifpdfx@x % PDF/X normally needs a CMYK color profile for printing
\global\pdfx@cmyktrue
\fi
%%----------------------------------------------------------------------
%% ----- Color Profiles -------
%% Define how to specify the profile, so the default
%% can be over-ridden in the .xmpdata file.
%%
%% --- user-command --- RGB profile needed with PDF/A-??
%% \setRGBcolorprofile{<filename>}{<identifier>}
%% {<info string>}{<registry URL>}
\def\setRGBcolorprofile{%
\begingroup
\catcode`\_ 11\relax\catcode`\& 11\relax\catcode`\~ 11\relax
\catcode`\% 11\relax
\edef\({\string\(}\edef\){\string\)}%
\pdfx@setrgbprofile}
%%
%% --- user-command --- CMYK profile needed with PDF/X-??
%% \setCMYKcolorprofile{<filename>}{<output intent>}
%% {<identifier>}{<registry URL>}
\def\setCMYKcolorprofile{%
\begingroup
\catcode`\_ 11\relax\catcode`\& 11\relax\catcode`\~ 11\relax
\catcode`\% 11\relax
\edef\({\string\(}\edef\){\string\)}%
\pdfx@setcmykprofile}
%%
%% --- user-command --- DeviceGray profile needed with PDF/E-1
%% \setGRAYcolorprofile{<filename>}{<output intent>}
%% {<identifier>}{<registry URL>}
\def\setGRAYcolorprofile{%
\begingroup
\catcode`\_ 11\relax\catcode`\& 11\relax\catcode`\~ 11\relax
\catcode`\% 11\relax
\edef\({\string\(}\edef\){\string\)}%
\pdfx@setgrayprofile}
%%
%% --- user-command --- External profile with PDF/X-4p and PDF/X-5pg
%% \setEXTERNALprofile{<profilename>}{<output intent>}
%% {<identifier>}{<registry URL>}{<color-space>}%
%% {<ICC Version>}{<provider URL>}{<extra info>}{<Check Sum>}
\def\setEXTERNALprofile{%
\begingroup
\catcode`\_ 11\relax\catcode`\& 11\relax\catcode`\~ 11\relax
\catcode`\% 11\relax
\edef\({\string\(}\edef\){\string\)}%
\pdfx@externalprofile}
%%
%%
\def\pdfx@setRGBcolorprofiledir#1{%
\gdef\pdfx@RGBcolorprofiledir{#1}%
}
\def\pdfx@setCMYKcolorprofiledir#1{%
\gdef\pdfx@CMYKcolorprofiledir{#1}%
}
\pdfx@setRGBcolorprofiledir{}
\pdfx@setCMYKcolorprofiledir{}
%% This does indeed work! Use it in .xmpdata files
\providecommand{\MacOSColordir}%
{/System/Library/ColorSync/Profiles/}
\providecommand{\AdobeMacOSdir}%
{/Library/Application Support/Adobe/Color/Profiles/Recommended/}
\edef\pdfx@tmp{C:\string\Windows\string\System32\string\Spool%
\string\Drivers\string\Color\string/}
\expandafter\providecommand\expandafter
{\expandafter\WindowsColordir\expandafter}\expandafter{\pdfx@tmp}
%%\pdfx@setcolorprofiledir{\AdobeMacOSdir}
%% overide that value using the following commands:
\let\pdfxSetCMYKcolorProfileDir\pdfx@setCMYKcolorprofiledir
\let\pdfxSetRGBcolorProfileDir\pdfx@setRGBcolorprofiledir
%% for back-compatibility
\let\pdfxSetColorProfileDir\pdfxSetCMYKcolorProfileDir
%%
\def\pdfx@setrgbprofile#1#2#3#4{%
\xdef\pdfx@rgb@profile{\pdfx@RGBcolorprofiledir#1}% valid file name
\gdef\pdfx@rgb@identifier{#2}%
\gdef\pdfx@rgb@info{#3}%
\pdfstringdef\pdfx@rgb@registry{#4}% valid URL
\endgroup
\global\pdfx@cmykfalse
}% closes-off \setRGBcolorprofile
%%
\def\pdfx@setcmykprofile#1#2#3#4{%
\xdef\pdfx@cmyk@profile{\pdfx@CMYKcolorprofiledir#1}% valid file name
%% \expandafter\gdef\expandafter\pdfx@cmyk@profile\expandafter
%% {\pdfx@colorprofiledir#1}% valid file name
\gdef\pdfx@cmyk@intent{#2}%
%% \pdfstringdef\pdfx@cmyk@intent{#2}% color intent
\gdef\pdfx@cmyk@identifier{#3}%
%% \pdfstringdef\pdfx@cmyk@identifier{#3}% text string identifier
\gdef\pdfx@cmyk@registry{#4}%
%% \pdfstringdef\pdfx@cmyk@registry{#4}% valid URL
\endgroup
\global\pdfx@cmyktrue
}% closes-off \setCMYKcolorprofile
%%
\def\pdfx@setgrayprofile#1#2#3#4{%
\gdef\pdfx@gray@profile{#1}% valid file name
\gdef\pdfx@gray@intent{#2}%
\gdef\pdfx@gray@identifier{#3}%
\pdfstringdef\pdfx@gray@registry{#4}% valid URL
\endgroup}% closes-off \setGRAYcolorprofile
%%
\def\pdfx@externalprofile#1#2#3#4#5#6#7#8#9{%
\gdef\pdfx@extprofile{#1}% PDF string for /ProfileName
\gdef\pdfx@cmyk@intent{#2}% PDF string for /OutputCondition
\gdef\pdfx@cmyk@identifier{#3}% PDF string for /OutputConditionIdentifier
\gdef\pdfx@cmyk@registry{#4}% {http://www.color.org}%
\gdef\pdfx@profileCS{#5}% 4 bytes for /ProfileCS
\gdef\pdfx@iccversion{#6}% Hex string for /ICCVersion < ... >
\gdef\pdfx@colorURL{#7}% URL
\gdef\pdfx@cmyk@info{#8}% for /Info
\gdef\pdfx@profile@checksum{#9}% Hex string for /CheckSum < ... >
\endgroup}% closes-off \setEXTERNALprofile
%%
%% default color profiles
{\catcode`\_ 12 \catcode`\& 12 \catcode`\~ 12
\gdef\pdfx@xprofile@cmykdefault{coated_FOGRA39L_argl.icc}
\gdef\pdfx@aprofile@rgbdefault{sRGB_IEC61966-2-1_black_scaled.icc}
\gdef\pdfx@eprofile@graydefault{Gray_linear.icc}
\gdef\pdfx@pprofile@externaldefault{FOGRA39}
}% end of \catcode
\xdef\pdfx@rgb@profile{\pdfx@aprofile@rgbdefault}
\xdef\pdfx@cmyk@profile{\pdfx@xprofile@cmykdefault}
\xdef\pdfx@gray@profile{\pdfx@eprofile@graydefault}
\xdef\pdfx@external@profile{\pdfx@pprofile@externaldefault}
%%----------------------------------------------------------------------
%% License for the file sRGB_IEC61966-2-1_black_scaled.icc :
%%
%% Copyright International Color Consortium, 2009 -- http://www.color.org/
%%
%% It is hereby acknowledged that the file "sRGB_IEC61966-2-1_black_scaled.icc"
%% is provided "AS IS" WITH NO EXPRESS OR IMPLIED WARRANTY.
%%
%% Licensing
%%
%% This profile is made available by the International Color Consortium,
%% and may be copied, distributed, embedded, made, used, and sold without
%% restriction. Altered versions of this profile shall have the original
%% identification and copyright information removed and shall not be
%% misrepresented as the original profile.
%%
%% Terms of use
%%
%% To anyone who acknowledges that the file "sRGB_IEC61966-2-1_black_scaled.icc"
%% is provided "AS IS" WITH NO EXPRESS OR IMPLIED WARRANTY, permission to use,
%% copy and distribute these file for any purpose is hereby granted without fee,
%% provided that the file is not changed including the ICC copyright notice tag,
%% and that the name of ICC shall not be used in advertising or publicity
%% pertaining to distribution of the software without specific, written prior
%% permission. ICC makes no representations about the suitability of this
%% software for any purpose.
%%
%%----------------------------------------------------------------------
{\catcode`\| 14 \catcode`\% 12 \catcode`\_ 12
\edef\@bchar{\expandafter\@gobble\string\\}|
\edef\({\string\(}\edef\){\string\)}|
\begingroup | \endgroup occurs within the macro expansion
\expandafter\pdfx@setrgbprofile\expandafter
{sRGB_IEC61966-2-1_black_scaled.icc}|
{sRGB_IEC61966-2-1_black_scaled}|
{sRGB IEC61966 v2.1 with black scaling}|
{http://www.color.org}|
\begingroup | \endgroup occurs within the macro expansion
\pdfx@setcmykprofile{coated_FOGRA39L_argl.icc}| coated_FOGRA39L_argl.icc
{Coated FOGRA39}|
{FOGRA39 \string\(ISO Coated v2 300%\space \string\(ECI\string\)\string\)}|
{http://www.argyllcms.com/}|{http://www.color.org}|
\begingroup | \endgroup occurs within the macro expansion
\pdfx@setgrayprofile{Gray_linear.icc}|
{}|
{Custom}|
{http://www.freedesktop.org/wiki/OpenIcc}|
\ifno@iccprofile
\begingroup | \endgroup occurs within the macro expansion
\pdfx@externalprofile{Coated FOGRA39 \(ISO 12647-2:2004\)}|
{Offset commercial and specialty printing according to ISO 12647-2:2004 |
/ Amd 1, paper type 1 or 2 \(gloss or matte coated offset, 115 g/m2\), |
screen frequency 60/cm.}|