[latex3-commits] [latex3/pdfresources] develop: add interface for xmpRights:Marked (b54ad1f)

github at latex-project.org github at latex-project.org
Thu Mar 14 12:23:15 CET 2024


Repository : https://github.com/latex3/pdfresources
On branch  : develop
Link       : https://github.com/latex3/pdfresources/commit/b54ad1f5622761a5e000026b5a5b0a691812db8d

>---------------------------------------------------------------

commit b54ad1f5622761a5e000026b5a5b0a691812db8d
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu Mar 14 12:23:15 2024 +0100

    add interface for xmpRights:Marked


>---------------------------------------------------------------

b54ad1f5622761a5e000026b5a5b0a691812db8d
 CHANGELOG.md  |  4 ++++
 l3pdfmeta.dtx | 17 ++++++++++++++++-
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8d8df7e..69ddd88 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,10 @@ first release 0.95a, 2021-02-23 will be documented in this file.
 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
 this project uses date-based 'snapshot' version identifiers.
 
+## [Unreleased]
+### Added
+ - l3pdfmeta.dtx: interface for xmpRights:Marked.
+
 ## [2024-03-01]
 
 ### Changed
diff --git a/l3pdfmeta.dtx b/l3pdfmeta.dtx
index a8f9fa8..1fdd5ec 100644
--- a/l3pdfmeta.dtx
+++ b/l3pdfmeta.dtx
@@ -552,7 +552,12 @@
 % The keys |pdfcopyright| and |pdflicenseurl| work similar as in \pkg{hyperxmp}.
 % But differently to \pkg{hyperxmp} the code doesn't set the |xmpRights:Marked|
 % property, as I have some doubts that one deduce its value simply
-% by checking if the other keys have been used; if needed it should be added manually.
+% by checking if the other keys have been used; if needed it can be added by 
+% using one of these settings (true means with copyright, false means public domain).
+% \begin{verbatim}
+% \AddToDocumentProperties[document]{copyright}{true}
+% \AddToDocumentProperties[document]{copyright}{false}
+% \end{verbatim}
 %
 % \subsection{PDF related data}
 % The PDF producer is for all engines by default built from the engine
@@ -2616,6 +2621,16 @@
       {xmpRights}
       {WebStatement}
       {\GetDocumentProperties{hyperref/pdflicenseurl}}
+    \@@_xmp_add_packet_line:nne
+      {xmpRights}
+      {Marked}
+      {
+       \str_case:en {\GetDocumentProperties{document/copyright}}
+        { 
+          {true}{True}
+          {false}{False}
+        }
+      }      
   }
 %    \end{macrocode}
 % \end{macro}





More information about the latex3-commits mailing list.