[latex3-commits] [git/LaTeX3-latex3-pdfresources] rename-coredict: adapted noxetex tests, new transparent (96b314e)
Ulrike Fischer
fischer at troubleshooting-tex.de
Sat Nov 21 17:19:18 CET 2020
Repository : https://github.com/latex3/pdfresources
On branch : rename-coredict
Link : https://github.com/latex3/pdfresources/commit/96b314e9a58e33bffd245d7baf4abe409b389b68
>---------------------------------------------------------------
commit 96b314e9a58e33bffd245d7baf4abe409b389b68
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Sat Nov 21 17:19:18 2020 +0100
adapted noxetex tests, new transparent
>---------------------------------------------------------------
96b314e9a58e33bffd245d7baf4abe409b389b68
newpackages/new-transparent.sty | 8 +++++---
testfiles-noxetex/extgstate-patches.pvt | 2 +-
testfiles-noxetex/metadata.pvt | 7 ++-----
testfiles-noxetex/test-new-transparent.pvt | 2 +-
4 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/newpackages/new-transparent.sty b/newpackages/new-transparent.sty
index ae86091..f1e9720 100644
--- a/newpackages/new-transparent.sty
+++ b/newpackages/new-transparent.sty
@@ -8,7 +8,9 @@
%pdftex + luatex in pdf mode
\sys_if_output_pdf:T
{
- \bool_lazy_and:nnF {\bool_if_exist_p:N \g__pdf_Core_active_bool } { \g__pdf_Core_active_bool }
+ \bool_lazy_and:nnF
+ {\cs_if_exist_p:N \pdfmanagement_add:nnn }
+ { \pdfmanagement_if_active_p: }
{
\PackageWarningNoLine{new-transparent}
{
@@ -33,13 +35,13 @@
\sys_if_output_pdf:T
{
%initialize opacity 1
- \pdfcoredict_gput:nnn{Page/Resources/ExtGState}{TRP1}{<</ca~1/CA~1>>}
+ \pdfmanagement_add:nnn{Page/Resources/ExtGState}{TRP1}{<</ca~1/CA~1>>}
%
\cs_new_protected:Npn \__transparent_use:n #1
{
\tl_if_exist:cF { c__transparent_TRP#1_tl }
{
- \pdfcoredict_gput:nnn{Page/Resources/ExtGState}{TRP#1}{<</ca~#1/CA~#1>>}
+ \pdfmanagement_add:nnn{Page/Resources/ExtGState}{TRP#1}{<</ca~#1/CA~#1>>}
\tl_const:cn { c__transparent_TRP#1_tl }{ /TRP#1~gs }
}
}
diff --git a/testfiles-noxetex/extgstate-patches.pvt b/testfiles-noxetex/extgstate-patches.pvt
index 0ffa34e..36f9362 100644
--- a/testfiles-noxetex/extgstate-patches.pvt
+++ b/testfiles-noxetex/extgstate-patches.pvt
@@ -21,6 +21,6 @@
abc\texttransparent{0.6}{XXXXXXXXXX}
\ExplSyntaxOn
-\pdfcoredict_gput:nnn{Page/Resources/ExtGState}{bearopacity}{<</ca~0.7/CA~0.7>>}
+\pdfmanagement_add:nnn{Page/Resources/ExtGState}{bearopacity}{<</ca~0.7/CA~0.7>>}
\ExplSyntaxOff
\end{document}
\ No newline at end of file
diff --git a/testfiles-noxetex/metadata.pvt b/testfiles-noxetex/metadata.pvt
index 5c3e8df..dbdd979 100644
--- a/testfiles-noxetex/metadata.pvt
+++ b/testfiles-noxetex/metadata.pvt
@@ -18,18 +18,15 @@
pdfpagelayout=SinglePage
}
-\makeatletter
-\makeatother
+
\ExplSyntaxOn
\pdf_object_new:nn{metadata-obj}{stream}
-\pdfcoredict_gput:nnx {Catalog} {Metadata}{\pdf_object_ref:n{metadata-obj}}
+\pdfmanagement_add:nnx {Catalog} {Metadata}{\pdf_object_ref:n{metadata-obj}}
\ExplSyntaxOff
\begin{document}
blblb \lipsum
\ExplSyntaxOn\makeatletter
- \hyxmp at find@metadata
- \hyxmp at set@dc at lang
\hyxmp at construct@packet
\exp_args:Nnx\pdf_object_write:nn{metadata-obj}{{/Type~/Metadata~/Subtype~/XML}{\hyxmp at xml}}%
\ExplSyntaxOff
diff --git a/testfiles-noxetex/test-new-transparent.pvt b/testfiles-noxetex/test-new-transparent.pvt
index 3271b24..32167f5 100644
--- a/testfiles-noxetex/test-new-transparent.pvt
+++ b/testfiles-noxetex/test-new-transparent.pvt
@@ -10,7 +10,7 @@
\begin{document}
%\START
\ExplSyntaxOn
-\pdfcoredict_gput:nnn{Page/Resources/ExtGState}{duckopacity}{<</ca~0.2/CA~0.2>>}
+\pdfmanagement_add:nnn{Page/Resources/ExtGState}{duckopacity}{<</ca~0.2/CA~0.2>>}
\ExplSyntaxOff
\texttransparent{0.5}{xxxxxxxxxxx}
\texttransparent{0.3}{xxxxxxxxxxx}
More information about the latex3-commits
mailing list.