[latex3-commits] [git/LaTeX3-latex3-pdfresources] splitting: moved pageresources (d46c41a)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue Jul 7 19:15:47 CEST 2020


Repository : https://github.com/latex3/pdfresources
On branch  : splitting
Link       : https://github.com/latex3/pdfresources/commit/d46c41a99aa177886be3afa4d4abff53ff34f38f

>---------------------------------------------------------------

commit d46c41a99aa177886be3afa4d4abff53ff34f38f
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Jun 13 22:25:30 2020 +0200

    moved pageresources


>---------------------------------------------------------------

d46c41a99aa177886be3afa4d4abff53ff34f38f
 l3pdfgdict.dtx   | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 pdfresources.dtx | 33 --------------------------------
 2 files changed, 57 insertions(+), 33 deletions(-)

diff --git a/l3pdfgdict.dtx b/l3pdfgdict.dtx
index d073adf..fe2b594 100644
--- a/l3pdfgdict.dtx
+++ b/l3pdfgdict.dtx
@@ -269,6 +269,39 @@
 %   Values added to \texttt{ThisPage} can not be removed. It is not possible to
 %   show the content of this dictionary with \cs{pdfgdict_show:n}.
 % \end{function}
+% \subsubsection{\enquote{Page/Resources}: ExtGState, ColorSpace, Shading, Pattern}
+% \begin{function}[updated = 2020-04-10]
+%   {
+%    pdfgdict: Page/Resources/ExtGState,
+%    pdfgdict: Page/Resources/ColorSpace,
+%    pdfgdict: Page/Resources/Shading,
+%    pdfgdict: Page/Resources/Pattern,
+%   }
+%   \begin{syntax}
+%     \cs{pdfgdict_gput:nnn} \{Page/Resources/\meta{resource}\} \Arg{name} \Arg{value}
+%   \end{syntax}
+%   Adds |/|\meta{name} \meta{value} to the page resource \meta{resource}.
+%   \meta{resource} can be |ExtGState|, |ColorSpace|, |Pattern| oder |Shading|.
+%   The values are always stored globally. The content is written to the pdf
+%   at the end of the compilation, so values can be added until then.
+%   \meta{name} should be a valid pdf name without the leading slash,
+%   \meta{value} should be a valid pdf value for the resource.
+%   Any escaping or (re)encoding must be done explicitly. If a \meta{name} is
+%   used twice, only the last \meta{value} set will be used.
+%
+%   With the dvips backend the command does nothing: resources are managed by
+%   ghostscript or the distiller if e.\,g. transparency is used.
+%
+%   The resources are added to all pages starting with the first where something has
+%   been added to a resources. That means that for example
+%   all ExtGState resources are combined in one
+%   dictionary object and every page with a ExtGState resource refer to this object.
+%
+%   \potentialclash The primitive commands to set the resources should not be used
+%   together with this code as the calls will overwrite each other and values
+%   will be lost. This means that currently there are clashes with the packages tikz,
+%   transparent and colorspace.
+% \end{function}
 % \end{documentation}
 %
 % \begin{implementation}
@@ -673,6 +706,30 @@
   }
 
 %    \end{macrocode}
+% \subsubsection{\enquote{Page/Resources}: ExtGState, ColorSpace, Shading, Pattern}
+%    \begin{macrocode}
+%
+% setter:  #1 is the name of the resource
+\cs_new_protected:cpn { @@_handler/Page/Resources/ExtGState/?_gput:nn } #1 #2
+  {
+    \@@_backend_PageResources_gput:nnn {ExtGState} { #1 }{ #2 }
+  }
+
+\cs_new_protected:cpn { @@_handler/Page/Resources/ColorSpace/?_gput:nn } #1 #2
+  {
+    \@@_backend_PageResources_gput:nnn {ColorSpace} { #1 }{ #2 }
+  }
+
+\cs_new_protected:cpn { @@_handler/Page/Resources/Shading/?_gput:nn } #1 #2
+  {
+    \@@_backend_PageResources_gput:nnn {Shading} { #1 }{ #2 }
+  }
+
+\cs_new_protected:cpn { @@_handler/Page/Resources/Pattern/?_gput:nn } #1 #2
+  {
+    \@@_backend_PageResources_gput:nnn {Pattern} { #1 }{ #2 }
+  }
+%    \end{macrocode}
 %    \begin{macrocode}
 %</package>
 %    \end{macrocode}
diff --git a/pdfresources.dtx b/pdfresources.dtx
index ffd6373..b44fc90 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -838,39 +838,6 @@
 % \end{macro}
 % !!!!! check path names (backend or not ...)
 %
-% \subsubsection{\enquote{Page/Resources}: ExtGState, ColorSpace, Shading, Pattern / management}
-% \begin{function}[updated = 2020-04-10]
-%   {
-%    pdfgdict: Page/Resources/ExtGState,
-%    pdfgdict: Page/Resources/ColorSpace,
-%    pdfgdict: Page/Resources/Shading,
-%    pdfgdict: Page/Resources/Pattern,
-%   }
-%   \begin{syntax}
-%     \cs{pdfgdict_gput:nnn} \{Page/Resources/\meta{resource}\} \Arg{name} \Arg{value}
-%   \end{syntax}
-%   Adds |/|\meta{name} \meta{value} to the page resource \meta{resource}.
-%   \meta{resource} can be |ExtGState|, |ColorSpace|, |Pattern| oder |Shading|.
-%   The values are always stored globally. The content is written to the pdf
-%   at the end of the compilation, so values can be added until then.
-%   \meta{name} should be a valid pdf name without the leading slash,
-%   \meta{value} should be a valid pdf value for the resource.
-%   Any escaping or (re)encoding must be done explicitly. If a \meta{name} is
-%   used twice, only the last \meta{value} set will be used.
-%
-%   With the dvips backend the command does nothing: resources are managed by
-%   ghostscript or the distiller if e.\,g. transparency is used.
-%
-%   The resources are added to all pages starting with the first where something has
-%   been added to a resources. That means that for example
-%   all ExtGState resources are combined in one
-%   dictionary object and every page with a ExtGState resource refer to this object.
-%
-%   \potentialclash The primitive commands to set the resources should not be used
-%   together with this code as the calls will overwrite each other and values
-%   will be lost. This means that currently there are clashes with the packages tikz,
-%   transparent and colorspace.
-% \end{function}
 %    \begin{macrocode}
 %
 % setter:  #1 is the name of the resource





More information about the latex3-commits mailing list.