Skip to content

Commit

Permalink
Switch to the new public interface of l3pdfmeta #7
Browse files Browse the repository at this point in the history
  • Loading branch information
TeXhackse committed Sep 17, 2024
1 parent 2911b5e commit bc85c44
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
3 changes: 3 additions & 0 deletions build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ demofiles={"*.tex"}
typesetdemofiles={"*.tex"}

typesetexe="lualatex"
typesetopts=""

ctanreadme="README_CTAN.md"

tagfiles = {"*.dtx","*.sty", "*.md", "*.tex"}
function update_tag(file, content, tagname, tagdate)
Expand Down
17 changes: 8 additions & 9 deletions zugferd.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@
\begin{document}
\EnableDocumentation\DisableImplementation
\DocInput{zugferd.dtx}
%\DisableDocumentation\EnableImplementation
%\DocInputAgain
\DisableDocumentation\EnableImplementation
\DocInputAgain
\PrintChanges
\printbibliography
\PrintIndex
Expand Down Expand Up @@ -440,6 +440,7 @@
% We use these to embed the \XML file.
%
% This part prepares the XMP metadata according to the required scheme.
% \changes{v0.8}{2024-09-16}{Use the new public interface for l3pdfmeta.}
% \begin{macrocode}
\bool_if:NT \g_@@_active_bool {
\cs_if_exist:NF \pdfmeta_xmp_xmlns_new:nn {
Expand All @@ -456,35 +457,33 @@
urn:factur-x:pdfa:CrossIndustryDocument:invoice:1p0\c_hash_str
}

\cs_generate_variant:Nn \__pdfmeta_xmp_schema_new:nnn {nne}

\__pdfmeta_xmp_schema_new:nne
\pdfmeta_xmp_schema_new:nnn
{Factur-X~PDFA~Extension~Schema}
{fx}
{urn:factur-x:pdfa:CrossIndustryDocument:invoice:1p0\c_hash_str}

\__pdfmeta_xmp_property_new:nnnnn
\pdfmeta_xmp_property_new:nnnnn
{fx}
{DocumentFileName}
{Text}
{external}
{name~of~the~embedded~XML~invoice~file}

\__pdfmeta_xmp_property_new:nnnnn
\pdfmeta_xmp_property_new:nnnnn
{fx}
{DocumentType}
{Text}
{external}
{INVOICE}

\__pdfmeta_xmp_property_new:nnnnn
\pdfmeta_xmp_property_new:nnnnn
{fx}
{Version}
{Text}
{external}
{The~actual~version~of~the~factur-x~schema}

\__pdfmeta_xmp_property_new:nnnnn
\pdfmeta_xmp_property_new:nnnnn
{fx}
{ConformanceLevel}
{Text}
Expand Down

0 comments on commit bc85c44

Please sign in to comment.