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
|
%%
%% This is file `novel-pdfx.sty', part of `novel' document class.
%%
%% Copyright (c) 2017, Robert Allgeyer.
%%
%% This file may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3c 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.3c or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
%% -----------------------------------------------------------------------------
%%
%% File `novel-pdfx.sty' uses code, directly copied or modified,
%% from file `pdfx.sty', part of LaTeX package `pdfx': Copyright (c) 2015,
%% CV Radhakrishnan, Han The Thanh, Ross Moore, Peter Selinger.
%% Licensed LPPL 1.2+.
%%
%% -----------------------------------------------------------------------------
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{novel-pdfx.sty}
[2017/07/31 v1.34 LaTeX file (PDF/X support for novel class)]
% This package supports, and is part of, class `novel'.
% No support for anything but LuaLaTeX.
%%
%% This file is loaded \AtEndPreamble.
%%
%% Novel Tracking messages in this file begin with 11.
\NDB{11.0 in novel-pdfx.sty.}
%
% Hyperref options for PDF/X with LuaTeX:
\def\pdfx@pdfX@opts@luatex{%
draft,pdftex,pdfpagemode=UseNone,bookmarks=false,hyperfootnotes=false,%
hyperindex=false,implicit=false,pdfversion=1.\the\pdfminorversion,%
pdfpagelabels=true,pageanchor=false,pdfstartview=}
%
\RequirePackage[\pdfx@pdfX@opts@luatex]{hyperref}
\NDB{11.1 in novel-pdfx.sty.}
%
\hypersetup{pdfencoding=auto}
\expandafter\ifx\csname KV@Hyp@psdextra\endcsname\relax\else
\hypersetup{psdextra}
\fi
\Hy@bookmarksfalse
\NDB{11.2 in novel-pdfx.sty.}
%
\newif \if@gottitle \@gottitlefalse % refers to PDF File Data
% Was \title{} called prior to this step? If so:
\ifthenelse{\equal{\@title}{} \OR \equal{\@title}{ }}{}{\@gottitletrue}
%
% Sanity check: If title is missing at this step, then compliance must be off:
\ifpdfx@isOFF\else
\if@gottitle\else
\ClassError{novel}{PDF/X requires \string\SetTitle\space first}%
{Unless \string\SetPDFX\space is off, must use \string\SetTitle\space ^^J%
before using \string\SetPDFX.^^J}
\fi
\fi
\NDB{11.3 in novel-pdfx.sty.}
%
\if@gottitle\else
\ClassWarning{novel}{Your file has been compiled without standard^^J %
PDF internal metadata, such as the title. This is allowable, and in ^^J %
some cases desirable. But in most cases it is not what you intended. ^^J %
If you want title and other metadata to be in PDF internal metadata, ^^J %
then you must place them prior to the \string\SetPDFX.^^J}
\fi
%
\expandafter\ifx\csname pdfresetpageorigin\endcsname\relax\else
\pdfresetpageorigin=0
\fi
\edef\pdfcreationdate{\pdfcreationdate}%
\let\pdfx@mdfivesum\pdf@mdfivesum
%
\NDB{11.4 in novel-pdfx.sty.}
%% CALCULATE AND SPECIFY CROPBOX AND TRIMBOX
%% -----------------------------------------------------------------------------
%%
% The MediaBox is automatically provided, so there is no need to write
% MediaBox in /pdfInfo (because it would be a duplicate).
% TrimBox is always necessary for PDF/X.
% Although CropBox is not necessary, it seems that it is often written
% by professional PDF software. For that reason, and for proper centering
% of TrimBox when MediaBox is larger, CropBox is created (= MediaBox).
%
\newcommand\my@MWnum{\strip@pt\New@MediaWidth}
\FPmul{\my@MWnum}{\my@MWnum}{0.99626401}
\FPround{\my@MWnum}{\my@MWnum}{3}
\FPclip{\my@MWnum}{\my@MWnum}
\newcommand\my@MHnum{\strip@pt\New@MediaHeight}
\FPmul{\my@MHnum}{\my@MHnum}{0.99626401}
\FPround{\my@MHnum}{\my@MHnum}{3}
\FPclip{\my@MHnum}{\my@MHnum}
\newcommand\my@TWnum{\strip@pt\New@TrimWidth}
\FPmul{\my@TWnum}{\my@TWnum}{0.99626401}
\FPround{\my@TWnum}{\my@TWnum}{3}
\newcommand\my@THnum{\strip@pt\New@TrimHeight}
\FPmul{\my@THnum}{\my@THnum}{0.99626401}
\FPround{\my@THnum}{\my@THnum}{3}
%
\NDB{11.5 in novel-pdfx.sty.}
\FPsub{\my@TWorigin}{\my@MWnum}{\my@TWnum}
\FPmul{\my@TWorigin}{\my@TWorigin}{0.5}
\FPround{\my@TWorigin}{\my@TWorigin}{3}
\FPadd{\my@TWcorner}{\my@TWorigin}{\my@TWnum}
\FPround{\my@TWcorner}{\my@TWcorner}{3}
\FPsub{\my@THorigin}{\my@MHnum}{\my@THnum}
\FPmul{\my@THorigin}{\my@THorigin}{0.5}
\FPround{\my@THorigin}{\my@THorigin}{3}
\FPadd{\my@THcorner}{\my@THorigin}{\my@THnum}
\FPround{\my@THcorner}{\my@THcorner}{3}
%
\FPclip{\my@TWorigin}{\my@TWorigin}
\FPclip{\my@TWcorner}{\my@TWcorner}
\FPclip{\my@THorigin}{\my@THorigin}
\FPclip{\my@THcorner}{\my@THcorner}
%
\NDB{11.6 in novel-pdfx.sty.}
\newcommand\novel@CropBox{%
\if@cropview%
/CropBox[\my@TWorigin\space\my@THorigin\space\my@TWcorner\space\my@THcorner]%
\else%
/CropBox[0\space0\space\my@MWnum\space\my@MHnum]%
\fi%
}
\NDB{11.7 in novel-pdfx.sty.}
%
\newcommand\novel@TrimBox{%
/TrimBox[\my@TWorigin\space\my@THorigin\space\my@TWcorner\space\my@THcorner]%
}
\NDB{11.8 in novel-pdfx.sty.}
%
% New in version 1.2: BleedBox, only for cover art. Same size as MediaBox.
\newcommand\novel@BleedBox{%
\if@coverart%
/BleedBox[0\space0\space\my@MWnum\space\my@MHnum]%
\else\fi%
}
\NDB{11.9 in novel-pdfx.sty.}
%
\begingroup\edef\next{%
\endgroup\pdfpageattr{\novel@CropBox^^J\novel@BleedBox^^J\novel@TrimBox}}\next
%
%% End calculate and specify TrimBox.
\NDB{11.10 in novel-pdfx.sty.}
%% DISABLE HYPERLINKS AND BOOKMARKS
%% -----------------------------------------------------------------------------
%
% Files for PDF/X cannot have hyperlinks. If your document has any,
% they will be functionally disabled. However, it is still necessary
% to ensure that you do not specify them in the wrong color space.
% Since `novel' class disallows any kind of color, `xcolor' is loaded with
% `monochrome' or `gray' option, prior to loading `hyperref'.
%
% Your text will be K black, rather than CMYK `rich black'. This is best.
% If you use a grayscale image anywhere, ask your print service whether it may
% be directly placed as grayscale (and they will convert to halftone)
% or whether you must convert it to halftone yourself, and place it that way.
%
% Note that LaTeX cannot detect any erroneous placement of a color image.
%
% The pagegrid package can only be used in draft mode, without PDF/X:
\gdef\@reallyOFF{off}
\@ifpackageloaded{pagegrid}{
\if@useDraftMode\else
\ClassError{novel}{\string\pagegrid\space needs `draft' mode^^J}%
{\string\pagegrid\space may only be used with class option `draft'^^J}%
\fi
\ifpdfx@isOFF\else
\pdfx@isOFFtrue % cancels pdfx when using pagegrid (in draft mode)
\gdef\@reallyOFF{re-set to off by pagegrid package.}
\ClassWarning{novel}{You requested PDF/X compliance.^^J%
But you also used the \string\pagegrid\space package. Cannot have both.^^J%
So instead, your document was processed with \string\SetPDFX\space off.^^J%
Reason: The grid and text are in layers. No layers allowed.^^J}%
\fi
}{}
%% End disable hyperlinks and bookmarks.
\NDB{11.11 in novel-pdfx.sty.}
%% GENERAL PDF INTERNAL METADATA PREPARATION
%% -----------------------------------------------------------------------------
%
% Create hashes that will be used for uuid data. Does not need to be fancy:
\edef\xmp@docid{\pdfx@mdfivesum{jobname.pdf}}
\edef\xmp@instid{\pdfx@mdfivesum{\pdfcreationdate}}
%
%% End general PDF in internal metadata preparation.
\NDB{11.12 in novel-pdfx.sty.}
%% PREPARATION OF XMP METADATA
%% -----------------------------------------------------------------------------
%% Data prepared here, will later be inserted into the XMP packet template,
%% then the processed template will be incuded in the PDF.
%% XMP metadata is in utf-8 encoding.
%
% Make the XMP look pretty:
\def\pad@ii{\space\space}
\def\pad@iv{\pad@ii\pad@ii}
\def\pad@vi{\pad@iv\pad@ii}
\def\pad@viii{\pad@vi\pad@ii}
\def\pad@x{\pad@viii\pad@ii}
\def\pad@xii{\pad@x\pad@ii}
\def\pad@xiv{\pad@xii\pad@ii}
\def\pad@xvi{\pad@xiv\pad@ii}
\def\pad@xviii{\pad@xvi\pad@ii}
\def\pad@xx{\pad@xviii\pad@ii}
\def\pad@xxxii{\pad@xvi\pad@xvi}
\def\pad@lxiv{\pad@xxxii\pad@xxxii}
\def\pad@cxxviii{\pad@lxiv\pad@lxiv}
\def\pad@cclvi{\pad@cxxviii\pad@cxxviii}
\def\pad@dxii{\pad@cclvi\pad@cclvi}
\NDB{11.13 in novel-pdfx.sty.}
%
% Frankly, I am not sure if all this rigamarole is necessary, but it works!
% Here, portions of XMP code are prepared. Later, they will be inserted
% into the XMP packet template.
\gdef\@titleString{
\pad@vi<dc:title>^^J
\pad@viii<rdf:Alt>^^J
\pad@x<rdf:li xml:lang="x-default">\@title</rdf:li>^^J
\pad@viii</rdf:Alt>^^J
\pad@vi</dc:title>^^J
}
%
\ifthenelse{\equal{\@author}{}}{
\gdef\@authorString{}
}{
\gdef\@authorString{
\pad@vi<dc:creator>^^J
\pad@viii<rdf:Bag>^^J
\pad@x<rdf:li>\@author</rdf:li>^^J
\pad@viii</rdf:Bag>^^J
\pad@vi</dc:creator>^^J
}
}
\NDB{11.14 in novel-pdfx.sty.}
%
\def\@documentID{uuid:\xmp@docid}
\def\@instanceID{uuid:\xmp@instid}
%
\def\@pdfVersion{1.\the\pdfminorversion}
\NDB{11.15 in novel-pdfx.sty.}
%
\ifpdfx@isOFF
\gdef\@verconfString{}%
\else
\gdef\@verconfString{
\pad@vi<pdfx:GTS_PDFXVersion>\@PDFXversion</pdfx:GTS_PDFXVersion>^^J
\if@gotConformance
\pad@vi<pdfx:GTS_PDFXConformance>\@PDFXconformance</pdfx:GTS_PDFXConformance>^^J
\fi
}
\fi
\NDB{11.16 in novel-pdfx.sty.}
%
\ifpdfx@isOFF
\gdef\@pdfidString{}%
\else
\gdef\@pdfidString{
\pad@vi<pdfxid:GTS_PDFXVersion>\@PDFXversion</pdfxid:GTS_PDFXVersion>^^J
}
\fi
\NDB{11.17 in novel-pdfx.sty.}
%
\ifthenelse{\equal{\@novelApplication}{} \OR \equal{\@novelApplication}{ }}{
\gdef\@applicationString{}%
}{
\gdef\@applicationString{\pad@vi<xmp:CreatorTool>\@novelApplication</xmp:CreatorTool>^^J}%
}
%
\ifthenelse{\equal{\@novelProducer}{} \OR \equal{\@novelProducer}{ }}{
\gdef\@producerString{}%
}{
\gdef\@producerString{\pad@vi<pdf:Producer>\@novelProducer</pdf:Producer>^^J}%
}
\NDB{11.18 in novel-pdfx.sty.}
%
% Calculation of Dates and Times, which must be in a specific format.
% Each time you process to PDF, the current date/time is used,
% for all of the several metadata date/time strings.
\def\xmp@cDate{\pdfx@getYear}
{\catcode`\D=12 \catcode`\:=12
\gdef\pdfx@getYear D:#1#2#3#4{\edef\pdfx@xYear{#1#2#3#4}\pdfx@getMonth}
}
\def\pdfx@getMonth#1#2{\edef\pdfx@xMonth{#1#2}\pdfx@getDay}
\def\pdfx@getDay#1#2{\edef\pdfx@xDay{#1#2}\pdfx@getHour}
\def\pdfx@getHour#1#2{\edef\pdfx@xHour{#1#2}\pdfx@getMin}
\def\pdfx@getMin#1#2{\edef\pdfx@xMin{#1#2}\pdfx@getSec}
\def\pdfx@getSec#1#2{\edef\pdfx@xSec{#1#2}\pdfx@getTZh}
\def\pdfx@getTZh{\futurelet\pdfx@next\pdfx@getTzh@branches}
%
{\catcode`\@=11 \catcode`\Z=12 \catcode`\+=12 \catcode`\-=12 % ends below
\gdef\pdfx@getTzh@branches{%
\ifx\pdfx@next Z\let\pdfx@getTzbranch\pdfx@getTznozone
\else\ifx\pdfx@next +\let\pdfx@getTzbranch\pdfx@getTzplus
\else\ifx\pdfx@next -\let\pdfx@getTzbranch\pdfx@getTzminus
\else\let\pdfx@getTzbranch\pdfx@getTzerror
\fi\fi\fi \pdfx@getTzbranch }
%
\catcode`\0=12
\gdef\pdfx@getTznozone Z#1\pdfx@getTzend{%
\edef\pdfx@xTzh{+00}\edef\pdfx@xTzm{00}}
\gdef\pdfx@getTzplus +#1'#2'#3\pdfx@getTzend{%
\edef\pdfx@xTzh{+#1}\edef\pdfx@xTzm{#2}%
\ifx\relax#2\relax\def\pdfx@xTzm{00}\fi}
\gdef\pdfx@getTzminus -#1'#2'#3\pdfx@getTzend{%
\edef\pdfx@xTzh{-#1}\edef\pdfx@xTzm{#2}%
\ifx\relax#2\relax\def\pdfx@xTzm{00}\fi}
%
\expandafter\ifx\csname pdfcreationdate\endcsname\relax
\else
\expandafter\expandafter\expandafter\xmp@cDate\pdfcreationdate''\pdfx@getTzend
\xdef\pdfx@convDate{\pdfx@xYear\pdfx@xMonth\pdfx@xDay\pdfx@xHour
\pdfx@xMin\pdfx@xSec\pdfx@xTzh'\pdfx@xTzm'}%
\xdef\xmp@cDate{\pdfx@xYear-\pdfx@xMonth-\pdfx@xDay
T\pdfx@xHour:\pdfx@xMin:\pdfx@xSec\pdfx@xTzh:\pdfx@xTzm}%
\fi
}% End of \catcode`\@=11 etc.
\let\@modifyDate\xmp@cDate
\let\@createDate\xmp@cDate
\let\@metadataDate\xmp@cDate
% End dates and times.
%
%% End Prepare XMP metadata.
\NDB{11.19 in novel-pdfx.sty.}
%% WRITE THE XMP METADATA, UNLESS PDF/X IS OFF OR NO TITLE
%%------------------------------------------------------------------------------
%% Inserts the prepared XMP metadata into XMP packet template, then writes
%% the result at the start of the PDF, right now, before the document.
%
\ifpdfx@isOFF\else
\if@gottitle
\begingroup
\makeatletter
\input{novel-xmppacket.sty}
\global\let\@xmpData\@xmpPacket % from the above file
\begingroup
\pdfcompresslevel=0
\immediate\pdfobj stream attr {/Type /Metadata /Subtype /XML} {\@xmpData}
\pdfcatalog{/Metadata \the\pdflastobj\space 0 R}
\endgroup
\endgroup
% Creates external xml file, if requested:
\if@wantXMPasXML
\newwrite\file
\immediate\openout\file=\jobname-XMPasXML.xml
\immediate\write\file{<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>^^J}
\immediate\write\file{<!-- Ignore any message about not having style information. That is normal. -->^^J}
\immediate\write\file{<!-- Your viewer's font must be able to display any characters used in the XMP. -->^^J}
\immediate\write\file{<!-- For example, if your XMP has Cyrillic, then you need a Cyrillic-capable font. -->^^J}
\immediate\write\file{<!-- Any decorations (such as dashes in front of lines) are added by the viewer. Not in XMP. -->^^J}
\immediate\write\file{<!-- Note: xpacket begin="" contains the invisible 3-byte utf-8 BOM within its quotes. -->^^J}
\immediate\write\file{<!-- The above xml declaration, and these comments, are not part of the XMP packet. -->^^J}
\immediate\write\file{\@xmpData^^J}
\closeout\file
\fi
\fi
\fi
%
%
%% End write the XMP metadata.
\NDB{11.20 in novel-pdfx.sty.}
%% PREPARE PDF /INFO METADATA
%% -----------------------------------------------------------------------------
%% PDF /Info is another form of metadata, older than XMP but still used.
%% It is NOT in utf-8 encoding. Depending on content, one of two encodings
%% will be automatically used: PDFDoc encoding if metadata uses only
%% characters within Latin-1, or utf-16 if metadata is not within Latin-1.
%% Either way, the input was utf-8 before processing.
%% In principle, PDF /Info is obsolete whenever PDF/X is used, because
%% XMP metadata is supposed to prevail through the printing workflow.
%% In practice, things don't always work that way. So, unless your PDF
%% has no metadata, essential items are re-encoded and copied to PDF /Info.
%% Other than encoding, XMP metadata and PDF /Info must be exactly the same.
%% All of those issues are handled automatically here.
%% The result is written at the end of the PDF, after the document.
%
% Macro for massaging encodings:
\def\@infotopdfstring#1#2{%
\ifx#2\@empty
\global\let#1\empty
\else
\begingroup
\hypersetup{pdfencoding=auto}%
\pdfstringdef#1{#2}%
\endgroup
\fi
}
\NDB{11.21 in novel-pdfx.sty.}
% Now, massage the metadata:
\@infotopdfstring{\@infotitle}{\@title}
\@infotopdfstring{\@infoauthor}{\@author}
\@infotopdfstring{\@infoapplication}{\@novelApplication}
\@infotopdfstring{\@infoproducer}{\@novelProducer}
%
% Ensure Unicode glyph names:
\input{glyphtounicode.tex} % located in tex/generic/
\input{novel-glyphtounicode.tex} % additional ligatures
\pdfgentounicode=1
% End ensure Unicode glyph names.
%
%% End prepare PDF /Info.
\NDB{11.22 in novel-pdfx.sty.}
%% WRITE THE OUTPUT INTENT, UNLESS PDFX IS OFF.
%% -----------------------------------------------------------------------------
%
\ifpdfx@isOFF\else
\begingroup
\edef\@pctchar{\expandafter\@gobble\string\%} % Escaped in TeX, not PDF.
\edef\@bchar{\expandafter\@gobble\string\\} % For use as escape, below.
\edef\0{\string\0} % Not sure why, but it works.
\edef\({\string\(} % PDF Catalog requires escaped parentheses.
\edef\){\string\)} % PDF Catalog requires escaped parentheses.
\catcode`\_ 12 % The icc file name might contain underscores.
%
\if@noembedicc\else
\IfFileExists{\@OIprofile}{%
\immediate\pdfobj stream attr{/N 4} file{\@OIprofile}%
\edef\OBJ@OI{\the\pdflastobj\space 0 R}%
}{%
\ClassError{novel}{Requested icc color profile not found}%
{You used the starred \string\SetPDFX*\space which embeds the^^J%
associated icc color profile. But the file could not be located.^^J%
If necessary, place it in the same folder as your *.tex document.}%
}
\fi
\ifthenelse{\equal{\@OIcondition}{}}{
\edef\@OIconditionString{}%
}{
\edef\@OIconditionString{/OutputCondition (\@OIcondition)}%
}
\ifthenelse{\equal{\@OIidentifier}{}}{
\edef\@OIidentifierString{}%
}{
\edef\@OIidentifierString{/OutputConditionIdentifier (\@OIidentifier)}%
}
\ifthenelse{\equal{\@OIinfo}{}}{
\edef\@OIinfoString{}%
}{
\edef\@OIinfoString{/Info (\@OIinfo)}%
}
\ifthenelse{\equal{\@OIregistry}{}}{
\edef\@OIregistryString{}%
}{
\edef\@OIregistryString{/RegistryName (\@OIregistry)}%
}
\pdfcatalog{%
/OutputIntents [ <<%
/Type/OutputIntent%
/S/GTS_PDFX%
\@OIconditionString%
\@OIidentifierString%
\@OIinfoString%
\@OIregistryString%
\if@noembedicc\else/DestOutputProfile \OBJ@OI\fi%
>> ]%
}%
\endgroup
\fi
%
%% End write the output intent.
\NDB{11.23 in novel-pdfx.sty.}
%% DISABLE HYPERREF OPTIONS
%%------------------------------------------------------------------------------
%% Prevents changes that will cause an incompatibility.
%
\Hy@DisableOption{pdfauthor}%
\Hy@DisableOption{pdftitle}%
\Hy@DisableOption{pdfsubject}%
\Hy@DisableOption{pdfcreator}%
\Hy@DisableOption{pdfcreationdate}%
\Hy@DisableOption{pdfmoddate}%
\Hy@DisableOption{pdfproducer}%
\Hy@DisableOption{pdfkeywords}%
%
%% End disable hyperref options.
\NDB{11.24 in novel-pdfx.sty.}
%% PREPARE PDF/Info
%% -----------------------------------------------------------------------------
%% The \novel@PDFinfo command is used AtBeginDocument in novel.cls.
%
\gdef\@novelPDFinfo{ % rather than \PDF@FinishDoc
\if@gottitle
\Hy@UseMaketitleInfos
\pdfinfo{
\ifx\@infotitle\@empty\else /Title(\@infotitle)\fi
\ifx\@infoauthor\@empty\else /Author(\@infoauthor)\fi
\ifx\@infoapplication\@empty\else /Creator(\@infoapplication)\fi
\ifx\@pdfcreationdate\@empty
/CreationDate(D:\pdfx@convDate)%
\else
/CreationDate(\@pdfcreationdate)%
\fi
\ifx\@pdfmoddate\@empty
/ModDate(D:\pdfx@convDate)%
\else
/ModDate(\@pdfmoddate)%
\fi
\ifx\@infoproducer\@empty\else /Producer(\@infoproducer)\fi%
/Trapped/False%
\ifpdfx@isOFF\else
/GTS_PDFXVersion(\@PDFXversion)%
\if@gotConformance /GTS_PDFXConformance(\@PDFXconformance)\fi%
\fi
}
\fi
}
%
%% End prepare PDF/Info.
\NDB{11.25 in novel-pdfx.sty.}
%%
%% End of file `novel-pdfx.sty'.
|