File tree Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change
1
+ 2025-06-17 Ulrike Fischer
2
+ * hyperref.dtx: suppress pdfa key and message if \DocumentMetadata is detected issue #387
3
+
1
4
2025-06-01 Ulrike Fischer
2
5
* hyperref.dtx: change hyperindexformat to hyperxindexformat, issue #386
3
6
Original file line number Diff line number Diff line change 6503
6503
\Hy@boolkey{pdfdisplaydoctitle}{#1}%
6504
6504
}
6505
6505
\define@key{Hyp}{pdfa}[true]{%
6506
- \Hy@boolkey{pdfa}{#1}%
6506
+ \IfDocumentMetadataTF
6507
+ {%
6508
+ \PackageWarning{hyperref}{%
6509
+ \string\DocumentMetadata\space detected. \MessageBreak
6510
+ The 'pdfa' key will be ignored.\MessageBreak
6511
+ Set the PDF standard in \string\DocumentMetadata.\MessageBreak
6512
+ }
6513
+ }
6514
+ {\Hy@boolkey{pdfa}{#1}}%
6507
6515
}
6508
6516
\define@key{Hyp}{pdfnewwindow}[true]{%
6509
6517
\def\Hy@temp{#1}%
9353
9361
\else
9354
9362
\Hy@Info{Link coloring with OCG OFF}%
9355
9363
\fi
9356
- \ifHy@pdfa
9357
- \Hy@Info{PDF/A mode ON}%
9358
- \else
9359
- \Hy@Info{PDF/A mode OFF}%
9360
- \fi
9364
+ \IfDocumentMetadataF
9365
+ {%
9366
+ \ifHy@pdfa
9367
+ \Hy@Info{PDF/A mode ON}%
9368
+ \else
9369
+ \Hy@Info{PDF/A mode OFF}%
9370
+ \fi
9371
+ }
9361
9372
% \end{macrocode}
9362
9373
% \section{Low-level utility macros}
9363
9374
% We need unrestricted access to the |#|, |~| and |"| characters, so make
You can’t perform that action at this time.
0 commit comments