%%
%% This is file `pdfmanagement.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% pdfmanagement-testphase.dtx  (with options: `standalone')
%% 
%% Copyright (C) 2019-2025 The LaTeX Project
%% 
%% It may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License (LPPL), either version 1.3c of
%% this license or (at your option) any later version.  The latest
%% version of this license is in the file:
%% 
%%    https://www.latex-project.org/lppl.txt
%% 
%% This file is part of the "LaTeX PDF management bundle" (The Work in LPPL)
%% and all files in that bundle must be distributed together.
%% 
%% File: pdfmanagement.dtx
\ProvidesExplPackage{pdfmanagement}{2026-01-23}{0.96y}
  {LaTeX PDF management bundle}

\DeclareKeys[pdfmanagement]
 {
   backend .code:n =
    {
      \str_if_exist:NTF \c_sys_backend_str
       {
        \PackageWarning{pdfmanagement}
         {
           backend~is~already~loaded.\MessageBreak
           'backend=#1'~ignored.
         }
       }
       {
         \tl_new:N  \l__pdfmanagement_backend_tl
         \tl_set:Nn \l__pdfmanagement_backend_tl {#1}
       }
    },
   backend .usage = load,
 }
\ProcessKeyOptions[pdfmanagement]

\IfPDFManagementActiveT
 {
   \endinput
 }

\RequirePackage{tagpdf-base}
\input{pdfmanagement.ltx}

\keys_define:nn { document / metadata }
  {
    ,pdfversion .code:n =
      {
        \pdf_version_gset:n { #1 }
        \AddToDocumentProperties[document]{pdfversion}{#1}
      }
    ,uncompress .code:n =
      {
        \pdf_uncompress:
      }
    ,uncompress .value_forbidden:n = true
    ,lang .code:n =
      {
        \pdfmanagement_add:nnn {Catalog} {Lang}{(#1)}
        \AddToDocumentProperties[document]{lang}{#1}
      }
    ,pdfstandard .code:n =
      {
        \clist_map_inline:nn{#1}
         {
           \keys_set:ne {document / metadata} {_pdfstandard=\str_uppercase:n{##1}}
         }
      }
   }
\tl_if_exist:NTF \l__pdfmanagement_backend_tl
  {
    \exp_args:No \sys_load_backend:n { \l__pdfmanagement_backend_tl }
  }
  {
    \sys_ensure_backend:
  }
\file_input:n {l3backend-testphase-\c_sys_backend_str.def}
\hook_use_once:n {pdfmanagement/add}
\RequirePackage{pdfmanagement-firstaid}
%% 
%%
%% End of file `pdfmanagement.sty'.
