Skip to content

Commit

Permalink
add interface for xmpRights:Marked
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Mar 14, 2024
1 parent 57caeb6 commit b54ad1f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 16 additions & 1 deletion l3pdfmeta.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit b54ad1f

Please sign in to comment.