# Changelog
All notable changes to the `pdfmanagement-testphase` bundle since the
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.

## [2026-01-23]

### Fixed
* l3pdfmeta.dtx: fix missing test if max pdf version is set, issue #104 
* hyperref-generic.dtx: fix implementation of bookmark options, issue #108
* X-6 standard, issue #110

### Changed
* handling of standards has been extended to better support other families beside the A-standard.

### Added
* support for TDM (reservation of text&data mining rights)

## [2025-11-12]
Version: 2025-11-12 v0.96x

 * use named object for xmp-metadata
 * reduce PDF file size with luatex by delaying writing of xmp-metadata (work-around bug with uncompress objects)

## [2025-08-22]
Version: 2025-08-22 v0.96w

### Changed
 * Adapted documentation to change on \DocumentMetadata handling in LaTeX 2025-11-01
 * l3pdfmeta.dtx: standards now change the pdfversion if needed. 
 
### Fixed
 - debug key was not properly defined if only pdfmanagement is loaded. 

## [2025-08-05]
Version: 2025-08-05 v0.96v

### Changed
 - make storing files for \pdffile_embed_show: optional to improve speed, issue #96

### Fixed
  - hyperref-generic: correct key, PrintDuplex should be Duplex.
  
## [2025-07-15]
Version: 2025-07-15 v0.96u

### Fixed
 - load pdfmanagement-firstaid in pdfmanagement.sty after backend has been set.
 - use \draw_set_linewidth:n instead of \draw_linewidth:n in pushbutton code.

## [2025-06-29]
Version: 2025-06-29 v0.96t

### Fixed
 - faulty @@-expansion in hyperref-generic
 - dc:title and dc:creator handling, issue #92
 
## [2025-06-23]
Version: 2025-06-23 v0.96s

### Fixed
 - l3pdffield-radiobutton:
  added missing \leavevmode, issue #89
 - \@@Listbox definition in hyperref-generic 

### Changed
 - l3pdfmeta: UA-2 no longer removes the info dictionary. This is only a "should" requirement and it makes some validator happier if it is there.
 
 - l3pdfmeta: ensure that all standards are defined there too.

 - lua uses now lualinksplit.lua for link annotations, see lualinksplit.lua for documentation. 
 
 - removed engine test for delayed shipout.
 
 - ltdocinit: removed deprecated command \DeclareDocumentMetadata
 
 - ltdocinit: removed temporary key definitions.
 
 - removed keyword testphase from the files
 
 - PDF management is now always active when loaded. 
 
### Added
 - \GetDocumentProperty (to replace the grammatically wrong \GetDocumentProperties) 
 - new package pdfmanagment that allows to load the pdfmanagement without using \DocumentMetadata
 - new package l3pdffield that replaces l3pdffield-testphase
    
## [2025-05-15]
Version: 2025-05-15 v0.96r

### Fixed
 - set omit_CID in pdf/UA-1
 - switch to pdfannot prefix for link backend commands (follow change in l3kernel)
 - add tagging support for GoToR links (tagging issue #835)
 - add pdfxid namespace and schema only if needed (issue #50)
 
## [2025-03-26]
Version: 2025-03-26 v0.96q

### Changed

- handle ModDate of embedded files in regression-tests.

### Added

-  temporary: tagging and tagging-setup key

### Fixed 

-  CheckSum in embedded files, issue #87

## [2025-02-15]
Version: 2025-02-15 v0.96p

- l3backend-testphase: use \directlua for the page resources, issue #85

## [2024-12-20]
Version: 2024-12-20 v0.96o

### Changed 
 - hyp/link/GoTo/Contents and hyp/link/URI/Contents now fill also the dictionary entry. 
   This allows to replace it fully.
 - hyp/link/GoTo/Contents socket has been added to \hyper@linkstart too.  
 - content and name of dummy PDF/A-4F attachment.
 - added testphase=latest key

### Added 
 - l3pdfmeta: standard verification tests for embedded test, A-4 will switch to A-4F is embedded files are detected
 - l3pdffile: counts embedded files for verification tests.
 
## [2024-10-27]
Version: 2024-10-27 v0.96n

### Changed
 - \pdf_bdc:nn now creates by default inline dictionaries if the engine support this.

## [2024-09-29]
Version: 2024-09-29 v0.96m

### Changed

 - generic driver:
   expand values of pdfauthor and similar to allow the use of commands

### Fixed
 - color-ltx.sty: adapted \color@endgroup to change in LaTeX format.

## [2024-09-13]
Version: 2024-09-02 v0.96l

### Added
 - ltdocinit.dtx: add \LogDocumentProperties
 - l3pdfmeta: Support additions of external schemas like ZUGferd with
   \pdfmeta_xmp_schema_new:nnn \pdfmeta_xmp_property_new:nnnnn

### Fixed
 - colorspace-patches-tmp-ltx.sty: fixes hook use, issue #78

## [2024-09-02]
Version: 2024-09-02 v0.96k

### Added
 - l3pdfmeta.dtx: add standard test `Catalog_no_OCProperties_AS`, (issue#77)

### Fixed
 - l3pdfmeta.dtx: remove Catalog_no_OCProperties from pdf/a-2b onwards (issue#77)

## [2024-08-17]
Version: 2024-08-17 v0.96j

### Added

 - added a verification 'omit_CID' used by PDF/a-2 and newer with luatex.
 - warnings if pdfversion does not fit ua-1 and ua-2

### Fixed
 - add xmp-resource for pdfaid:rev (tagging-project issue#375)
 - empty color in \bookmarksetup https://github.com/ho-tex/bookmark/issues/11
 - unneeded warning with bookmarks=false, https://github.com/latex3/hyperref/issues/352

## [2024-05-23]
Version: 2024-05-23, 0.96i

### Fixed
 - l3pdfmeta: adapted wtpdf declaration uri to corrected version.
 - colorlinks=false no longer resets pdfborder (issue #69)
 - added support to omit CidSet with luatex

## [2024-04-09]
Version: 2024-04-09, 0.96h

### Fixed
 - structure destinations for boxed destinations

### Changed
 - use \pdf_object_ref:n instead of backend command as preparation of l3kernel changes
   regarding object storing.
 - support for structure destination if indexed objects are used

### Added
 - force EmbeddedFiles name tree with standard A-4F

## [2024-03-26]
Version: 2024-03-26, 0.96g

### Added
 - l3pdfmeta.dtx: interface for xmpRights:Marked.
 - l3pdfmeta.dtx: add wtpdf declarations if ua-2 is used.

### Changed
 - removed unneeded firstaids for fontspec, transparent and pdflscape

## [2024-03-01]
Version: 2024-03-01, 0.96f

### Changed
 - format of /F in filespec: use utf8/string for better compatibility with ZUGFeRD processor.
 - added /Contents entry to URI and GoTo links for better UA support.

## [2024-02-22]
Version: 2024-02-22, 0.96e

### Changed
 - date of UA-2 is now 2024
 - tagpdf-base is now required
 - xmp metadata use x-default for the main language for better compatibility with some viewers
 - suppress info dictionary with pdf/ua-2

## [2023-12-09]
Version: 2023-12-09, 0.96d

### Removed

 - l3bitset is now provided by l3kernel.

### Added
 - 2023-11-20: l3pdfmeta.dtx: support for PDF declarations in XMP metadata, issue #58
 - hyperref-generic.dtx: option nested-links key to suppress nested links.

### Changed
 - key family in hyperref-generic is now hyp and not hyp/setup
 - do not use pdfuaid:rev with pdf/UA-1

## [2023-11-17]
Version: 2023-11-17, 0.96c

 - remove dependency to ltxcmds in the hyperref driver
 - correct a local/global assignment
 - remove l3ref-tmp.sty
 - l3pdffile.dtx: change mimetype of xml to application/xml


## [2023-11-05]
Version: 2023-11-05, 0.96b

- switch to e-type
- correct fontspec firstaid and spotcolor support

## [2023-10-09]
Version: 2023-10-09, 0.96a

### Changed
 - prepare for kernel switch to e-types
 - use properties instead of l3ref-tmp.sty if format is new enough
 - improve xcolor firstaid patch

## [2023-08-29]
Version: 2023-08-29, 0.95z

### Changed
 - a SOURCE_DATE_EPOCH setting is honored. This requires a l3backend version from XXXX
 - \pdfmeta_set_regression_data: not longer sets dates manually, but expects that if
   SOURCE_DATE_EPOCH is honored that it is used.

## [2023-08-20]
Version: 2023-08-20, 0.95y

### Added
 - l3pdftools: \pdf_bdc_shipout:ee which makes use of the new shipout keyword
   of \special and \pdfliteral
 - key for the (not yet released) standard pdf/UA-2

### Fixed
 - expansion behaviour of \pdf_bdc:nn
 - faulty error command in \pdf_string_from_unicode:nnN

## Removed
 - patches of the output routine. These are now provided by latex-lab

## [2023-03-09]

Version: 2023-03-09, 0.95x

### Fixed
 - regression data producer in xmp

### Changed
 - removed/reduced fontspec firstaid to avoid clash with new l3backend and with option parsing (issue #47)

## [2023-02-20]

### Added
 - schema declaration for xmpMM:OriginalDocumentID added to xmp-Metadata.

## [2023-02-14]

### Added
 - l3pdffile: \pdffile_embed_stream:nnN to embed a stream without creating a named
   object.

### Changed
 - l3pdffile: default mime type of tex-files changed to application/x-tex.

## [2023-02-07]
### Fixed
 - pdf A4 uses pdfaid:rev not pdfaid:year.
 - pdfcreationdate and pdfmoddate key

### Added
 - firstaid support for luacolor  (pdfmode)

## [2022-11-03]

### Added
 - ltdocinit: expl3 functions to retrieve values from the document properties.

### Changed
 - removed firstaid for transparent as the package is now compatible.
 - removed firstaid for pdflscape as the package is now compatible.
 - ltdocinit/firstaid: the output patches for header and footer
   are no longer loaded by default but must be loaded with the testphase key.
 - removed firstaid for beamer as no longer needed
 - ltdocinit: removed definition for \DocumentMetadata, it is now provided by latex-lab
### Fixed
 - faulty firstaid for doclicense

## [2022-09-26]

### Added
 - XMP-Metadata are now created by code in l3pdfmeta.
   More details can be found in l3pdfmeta.

### Removed
 -  The patch which allowed the use of hyperxmp has been removed as no longer needed.

### Changed
 - XMP-Metadata are uncompressed (if supported by the engines).
 - pdftitle allows to set the titles in various languages.

## [2022-08-24]

### Changed
 - internal cleanup
 - prepare for change in l3backend object handling

### Fixed
 - ensure that pdfproducer is set with hyperxmp

## [2022-07-08]
### Fixed
  - link detection if french is active (issue #28)
  - loop with \url if french is active
  - remove pdfaid-rev is standard is less than A-4 (issue #33)
  - quotes in messages are more consistent (PR #37)

### Changed
  - removed protection code for utf8 as they are now protected anyway (fixed #28 and loop)

## [2022-06-14]
### Fixed
  - avoid errors with spot color models
  - opacity of fontspec (issue #30)
### Added
  - firstaid support for spot colors for open type fonts


## [2022-05-11]

### Added
 - allow standard pdf/A-4
 - check requirement for max-pdfversion
 - add requirement for Info dictionary
 - load tagpdf-base if it exists to provide the
   tagging commands.

### Fixed
 - Support/firstaid for colorspace package
 - Support for metadata with hyperxmp and xetex


## [2022-04-14]
### Fixed
 - l3pdffield-radiobutton: handling of Opt array.

### Added
 - l3pdffield-radiobutton: inunison key.

## [2022-03-16]

### Added
 - \pdfmeta_set_regression_data: for regression tests.

## [2022-02-16]

### Fixed
 - transition for directions was wrong

### Added
 - preliminery support for new OR code

## [2022-01-28]

### Changed
 - adapted the color patch to the changes in (x)color.sty (mathcolor)
 - documentation uses new doc version (so needs currently latex-dev to compile)

### Fixed

 - xcolor patch failed with color names containing active chars (e.g. from french)
 - clipping of xform object on the dvips route (issue #25)

## [2022-01-13]
### Changed
 - the keys `firstaidoff` and `pdfmanagement` should now be set with the `debug` key.
  - `testphase` will now load files from the latex-lab bundle. This requires a current
    latex-dev: LaTeX2e <2022-06-01> pre-release-1.
 -  new values for `testphase`: `phase-I` and `phase-II`.
    `phase-I` will loaded tagpdf and activate tagging and interword spaces, `phase-II will
    additionally activate paratagging. The value `tagpdf` for the `testphase`
    key has been deprecated. It will not error for some time and has been aliased to
    `phase-II`, but it is recommended to use the new values `phase-I` and `phase-II` instead.
 - renamed `\DeclareDocumentMetadata` to `\DocumentMetadata` (the older version is still provided)
   to follow the development in latex-dev.

### Fixed

 - adapted the file hooks to the changes in LaTeX
 - small bugs

### Removed

 - the `activate` key has been removed, its function is integrated in the testphase key.

### Added
 - preliminary support for structure destination to prepare for binary changes in texlive 2022

## [2021-08-28]
### Changed
 - colorscheme 'original' has been renamed to 'primary-colors'
 - color key is overwritten to use l3color

### Added
 - preliminary support for standard A-2a and A-3a
 - output patches to firstaid to support interruption of links
   and tagging of paragraphs with page splits.

## [2021-07-31]
### Added
 - \IfPDFManagementActiveTF as copy of `\pdfmanagement_if_active:TF
 - \PDFManagementAdd as copy of `\pdfmanagement_add:xxx`
 - Support for name trees /AP and /JavaScript in Catalog/Names
 - Support to add user file names to /EmbeddedFiles (beside the existing
   way with automatically generated names)
 - if xcolor is loaded the colors it predefines are now predefined also for l3color

### Changed
 - Implementation of the /EmbeddedFiles name tree, it is now more in line
   with the other name trees.
 - \Form no longer creates xform objects -- this affected spacing and produced
   empty pages. The xform objects are now only created if fields are used.

## [2021-07-21]
### Added
 - key `testphase` to \DeclareDocumentMetadata to load testphase packages like
   tagpdf, ptagging and headings
 - key `activate` to \DeclareDocumentMetadata to activate e.g. tagging.
 - key `debug` with para=show, log=XX or uncompress as values.
 - l3pdfxform: support for dvips

### Changed
 - a LaTeX format/L3 layer that loads l3color is now required

### Fixed
 - argument order in \hrefrun was wrong. filename should be the first argument.
 - xcolor firstaid: svgnames could no longer be loaded due to changes in l3color.


## [2021-06-29]

### Fixed
 - small bug in l3ref-tmp.sty

## [2021-06-14]
### Added
 - l3pdffile: \pdffile_filespec:nnn to create a filespec dictionary
 - l3pdffield: sortkey and code for calculate actions
 - l3pdffield-radiobutton, a module for radiobuttons
 - l3pdffield-pushbutton, a module for pushbuttons
 - l3pdffield-choice, a module for choice fields
 - l3pdffield-action, a module for reset/submit/import actions
 - l3pdffield: \pdffield_annot_ref_last:, needed for tagging in OBJR object.
 - \pdffile_filespec:nnn to create a filespec dictionary
 - l3pdfmeta, ltdocinit: support for pdf A-2u and A-3u
 - l3pdffield: tagging support for form fields

### Fixed
 - l3pdftools: utf8/URI didn't handle "?"
 - l3pdffield: encoding of value in l3pdffield-textfield
 - l3pdffield: encoding of value of TM and TU key
 - utf8/URI in l3pdftools didn't handle ?
 - option handling of pdflscape-ltx
 - distiller failed due to empty /PAGES
 - small bugs in the hyperref driver

### Changed
 - l3pdffield: handling of ECMAscript in /AA keys
 - no longer force unicode in the generic hyperref driver as
   it is the default where sensible anyway and clashes with platex.

## [2021-05-14]
### Fixed
 - xcolor patch for [ps] type used in pstricks
 - value of citecolor wasn't expanded (errored with tcolorbox)
 - \url, \href, \hrefurl, \hrefrun and \hrefpdf leaves now vmode
 - handling of pdfauthor, pdftitle and pdfsubject in hyperxmp patch

### Changed
 - the module for formfield and checkboxes has been in part rewritten to
   better fit to the new module for textfield.
   Keys and documentation has been extended.

### Added
 - generic command hooks have been added to \url, \href, \hrefurl,
   \hrefrun and \hrefpdf. Their use require a latex 2021-06-01.
 - dictionaries widget/AA, widget/AP, widget/MK and widget/BS in l3pdfannot.
 - a module for textfields

## [2021-03-17]

### Fixed
- \pdffield-setup:nn
- ocgcolorlinks test for dvips (pdf version is not available)

### Changed
- \pdf_name_from_unicode_e:n: use cvn operator with dvips
- \url: it has an optional argument through which protocol, formatting command and encoding
  can be changed
- \href can use the url arguments too.
- \hyper@linkfile (GoToR links) now uses a filespec dictionary. This improves the
  support for non-ascii files names.

### Added
- \hrefurl, \hrefrun, \hrefpdf for better support of non-ascii input and
  default options, see the hyperref-generic documentation.

## [2021-03-07]

### Added
- \pdfannot_widget_box:nnnn
- \pdfannot_dict_use:n
-  module l3pdffield for form fields. Currently it only supports checkboxes.

### Changed
-

### Removed
- \pdfannot_box:nnnnn: Concept to mix manual specs and dictionaries is wrong.
  This can lead to duplicate entries in the dictionaries.

### Fixed
- Wrong default setting of \g_@@_active_bool (issue #13)
- l3pdffile: Wrong casing: FileSpec -> Filespec
- beamer linkbordercolor error (workaround in firstaid)

## [2021-02-23]

First release
