summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/l3kernel/l3pdfmode.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3kernel/l3pdfmode.def')
-rw-r--r--Master/texmf-dist/tex/latex/l3kernel/l3pdfmode.def24
1 files changed, 7 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/latex/l3kernel/l3pdfmode.def b/Master/texmf-dist/tex/latex/l3kernel/l3pdfmode.def
index c555f97578d..1ebc92eb4bb 100644
--- a/Master/texmf-dist/tex/latex/l3kernel/l3pdfmode.def
+++ b/Master/texmf-dist/tex/latex/l3kernel/l3pdfmode.def
@@ -422,20 +422,9 @@
\cs_new_eq:NN \__driver_image_include_pdf:n \__driver_image_include_jpg:n
\cs_new_eq:NN \__driver_image_include_png:n \__driver_image_include_jpg:n
%% File: l3drivers-pdf.dtx
-\tl_const:Nn \c__driver_pdf_AR_fix_tl
- { /Ff ~ 65537 /FT /Btn /Subtype /Widget }
\box_new:N \l__driver_pdf_tmp_box
-\cs_new_protected:Npx \__driver_pdf_AR_fix:
- {
- \cs_if_exist:NTF \tex_pdfextension:D
- { \tex_pdfextension:D annot ~ }
- { \tex_pdfannot:D }
- width ~ 3pt ~ height ~ 3pt ~ depth ~ 0pt
- { \c__driver_pdf_AR_fix_tl }
- }
\cs_new_protected:Npx \driver_pdf_annotation:nnnn #1#2#3#4
{
- \__driver_pdf_AR_fix:
\cs_if_exist:NTF \tex_pdfextension:D
{ \tex_pdfextension:D annot ~ }
{ \tex_pdfannot:D }
@@ -458,7 +447,6 @@
{ \__driver_pdf_link_begin:nnnw {#1} { user } {#2} }
\cs_new_protected:Npx \__driver_pdf_link_begin:nnnw #1#2#3
{
- \__driver_pdf_AR_fix:
\cs_if_exist:NTF \tex_pdfextension:D
{ \tex_pdfextension:D startlink ~ }
{ \tex_pdfstartlink:D }
@@ -596,11 +584,13 @@
{ \tex_pdfvariable:D compresslevel }
\exp_not:N \int_value:w \exp_not:N \int_eval:n {#1} \scan_stop:
}
-\cs_new_protected:Npn \driver_pdf_objects_enable:
- { \__driver_pdf_objectlevel:n { 2 } }
-\cs_new_protected:Npn \driver_pdf_objects_disable:
- { \__driver_pdf_objectlevel:n { 0 } }
-\cs_new_protected:Npx \__driver_pdf_objectlevel:n #1
+\cs_new_protected:Npn \driver_pdf_compress_objects:n #1
+ {
+ \str_if_eq:nnTF {#1} { true }
+ { \__driver_pdf_objcompresslevel:n { 2 } }
+ { \__driver_pdf_objcompresslevel:n { 0 } }
+ }
+\cs_new_protected:Npx \__driver_pdf_objcompresslevel:n #1
{
\cs_if_exist:NTF \tex_pdfobjcompresslevel:D
{ \tex_pdfobjcompresslevel:D }