texlive[48147] Master: hyperbar (5jul18)

commits+karl at tug.org commits+karl at tug.org
Thu Jul 5 23:48:35 CEST 2018


Revision: 48147
          http://tug.org/svn/texlive?view=revision&revision=48147
Author:   karl
Date:     2018-07-05 23:48:34 +0200 (Thu, 05 Jul 2018)
Log Message:
-----------
hyperbar (5jul18)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/libexec/ctan2tds
    trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/hyperbar/
    trunk/Master/texmf-dist/doc/latex/hyperbar/README.md
    trunk/Master/texmf-dist/doc/latex/hyperbar/example.pdf
    trunk/Master/texmf-dist/doc/latex/hyperbar/example.tex
    trunk/Master/texmf-dist/doc/latex/hyperbar/hyperbar.pdf
    trunk/Master/texmf-dist/source/latex/hyperbar/
    trunk/Master/texmf-dist/source/latex/hyperbar/hyperbar.dtx
    trunk/Master/texmf-dist/tex/latex/hyperbar/
    trunk/Master/texmf-dist/tex/latex/hyperbar/hyperbar.sty
    trunk/Master/tlpkg/tlpsrc/hyperbar.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/hyperbar/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hyperbar/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/hyperbar/README.md	2018-07-05 21:48:34 UTC (rev 48147)
@@ -0,0 +1,8 @@
+# hyperbar [![CTAN](https://img.shields.io/badge/CTAN-hyperbar-blue.svg?style=flat-square)](https://ctan.org/pkg/hyperbar)
+
+> This package allows to add interactive Barcode fields to PDF forms
+
+To install, you can run `tex hyperbar.dtx` and copy the generated file `hyperbar.sty` to a directory in the search path of your TeX installation.
+For quick evaluation, you can also rename `hyperbar.dtx` to `hyperbar.sty` and use that file directly.
+
+This package is released under the LaTeX Project Public License v1.3c or any later version, see http://www.latex-project.org/lppl.txt for the full text of the license.


Property changes on: trunk/Master/texmf-dist/doc/latex/hyperbar/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/hyperbar/example.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/hyperbar/example.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hyperbar/example.pdf	2018-07-05 21:45:46 UTC (rev 48146)
+++ trunk/Master/texmf-dist/doc/latex/hyperbar/example.pdf	2018-07-05 21:48:34 UTC (rev 48147)

Property changes on: trunk/Master/texmf-dist/doc/latex/hyperbar/example.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/hyperbar/example.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hyperbar/example.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/hyperbar/example.tex	2018-07-05 21:48:34 UTC (rev 48147)
@@ -0,0 +1,12 @@
+\documentclass{article}
+\usepackage{hyperref,hyperbar}
+\begin{document}
+\begin{Form}
+  \TextField[name=first,width=3cm,charsize=12pt]{Prename}\\
+  \TextField[name=last,width=3cm,charsize=12pt]{Name}\\
+  \BarcodeField[width=10cm,height=1cm,tsv={first,last}]{BarcodeField}\\
+  \BarcodeField[datamatrix,symwidth=10,width=3cm,height=3cm,tsv={first,last}]{BarcodeField2}\\
+  \BarcodeField[qr,width=3cm,height=3cm,tsv={first,last}]{BarcodeField3}
+\end{Form}
+\end{document}
+


Property changes on: trunk/Master/texmf-dist/doc/latex/hyperbar/example.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/hyperbar/hyperbar.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/hyperbar/hyperbar.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hyperbar/hyperbar.pdf	2018-07-05 21:45:46 UTC (rev 48146)
+++ trunk/Master/texmf-dist/doc/latex/hyperbar/hyperbar.pdf	2018-07-05 21:48:34 UTC (rev 48147)

Property changes on: trunk/Master/texmf-dist/doc/latex/hyperbar/hyperbar.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/hyperbar/hyperbar.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/hyperbar/hyperbar.dtx	                        (rev 0)
+++ trunk/Master/texmf-dist/source/latex/hyperbar/hyperbar.dtx	2018-07-05 21:48:34 UTC (rev 48147)
@@ -0,0 +1,274 @@
+% \iffalse meta-comment
+%
+%% Copyright (C) 2018 by Marcel Krüger
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%%   http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Marcel Krüger
+%% 
+%
+%<*batch>
+%<*gobble>
+\ifx\jobname\relax\let\documentclass\undefined\fi
+\ifx\documentclass\undefined
+\csname fi\endcsname
+%</gobble>
+\input l3docstrip.tex
+\keepsilent
+\preamble
+\endpreamble
+\generate{\file{hyperbar.sty}{\from{hyperbar.dtx}{package}}}
+\endbatchfile
+%</batch>
+%<*gobble>
+\fi
+\expandafter\ifx\csname @currname\endcsname\empty
+\csname fi\endcsname
+%</gobble>
+%<*driver>
+\documentclass[full]{l3doc}
+\begin{document}
+\DocInput{hyperbar.dtx}
+\PrintIndex
+\PrintChanges
+\end{document}
+%</driver>
+%<*gobble>
+\fi
+%</gobble>
+% \fi
+%
+% \title{The \pkg{hyperbar} package\thanks{This document
+%        corresponds to \pkg{hyperbar}~v0.1, dated~2018/07/04.}}
+% \author{Marcel Kr\"uger \\ \href{mailto:tex at 2krueger.de}{tex at 2krueger.de}}
+% 
+% \maketitle
+%
+% \begin{documentation}
+% This package extends the \pkg{hyperref} functionality for creating interactive forms to allow adding Barcode form fields supported by some modern PDF readers.
+% \section{Usage}
+% \begin{function}{\BarcodeField}
+%    \begin{syntax}
+%      |\BarcodeField|[
+%        \meta{type},
+%        width=\meta{Barcode width},
+%        height=\meta{Barcode height},
+%        tsv=\Arg{fields to encode in barcode},\meta{Further parameters}
+%      ]{\meta{Some field name}}
+%    \end{syntax}
+% Barcode fields can be used like ordinary form fields as documented in the hyperref manual, section ``PDF and HTML forms''. Especially all parameters documented there can be used in \meta{Further parameters}. There are some additional parameters specific to \cmd\BarcodeField:
+% \end{function}
+% \begin{description}
+% \item[\meta{type}] One of the parameters |qr|, |datamatrix| or |pdf417| can be used to select the format of the generated barcode. If no such parameter is given, a PDF417 barcode is used.
+% \item[symwidth] The horizontal distance between the modules of the barcode in pixel assuming a resolution of $300$ DPI. Default is $6$.
+% \item[symfactor] Only used for PDF417. The ratio between the height and the width of the modules. Must be one of the values $1, 2, 3, 4$. Default $4$.
+% \item[ecc] The level of redundancy added to the data for error correction. Not used for DataMatrix, valid values for QR-Codes are $0, 1, 2, 3$. For PDF417 the valid range are integer values between $0$ and $8$.
+% \item[tsv] This is used as |tsv={<field1>,<field2>,<...>}| to automatically generate the encoded value of the barcode as a combination of the form fields with names \meta{field1}, \meta{field2}, \dots.
+% The format is based on the Tab-separated value option of Adobe Acrobat with field names. The generated value contains two lines, the first line are all used field names separated by a tab, the secons line consists of the tab-separated values.
+%
+% If you prefer another format, the |calculate| parameter can be used instead to generate the value with customized Javascript code.
+% \end{description}
+% Currently the only supported backend is pdf\TeX.
+% \section{Example}
+% \begin{verbatim}
+% ...
+% \usepackage{hyperbar}
+% ...
+% \begin{document}
+% ...
+% \begin{Form}
+%   \TextField[name=first,width=3cm,charsize=12pt]{Prename}\\
+%   \TextField[name=last,width=3cm,charsize=12pt]{Name}\\
+%   \BarcodeField[width=10cm,height=1cm,tsv={first,last}]{BarcodeField}\\
+%   \BarcodeField[datamatrix,symwidth=10,width=3cm,height=3cm,tsv={first,last}]{BarcodeField2}\\
+%   \BarcodeField[qr,width=3cm,height=3cm,tsv={first,last}]{BarcodeField3}
+% \end{Form}
+% \end{document}
+% \end{verbatim}
+% This example creates a simple PDF form. In PDF-Reader supporting Barcode fields three types of barcodes will be visible under the form, which contain the information entered into the fields.
+% \end{documentation}
+% \begin{implementation}
+% \section{The implementation}
+% \iffalse
+%<*package>
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{hyperbar}
+  [2018/07/04 v0.1
+  Add barcode form fields to hyperref for pdfTeX]
+%</package>
+% \fi
+%    \begin{macrocode}
+\RequirePackage{hyperref}
+
+\def\BarField at SetKeys{\kvsetkeys{BarField}}
+\kv at set@family at handler{BarField}{\kv at processor@default{Field}{#1}{#2}}
+\newcount\BarFld at barcodetype
+\newcount\BarFld at symwidth
+\newcount\BarFld at symfactor
+\newcount\BarFld at ecc
+\BarFld at barcodetype=0
+\BarFld at symwidth=6
+\BarFld at symfactor=2
+\BarFld at ecc=2
+\define at key{BarField}{pdf417}[]{%
+  \BarFld at barcodetype=0
+}
+\define at key{BarField}{qr}[]{%
+  \BarFld at barcodetype=1
+}
+\define at key{BarField}{datamatrix}[]{%
+  \BarFld at barcodetype=2
+}
+\define at key{BarField}{symwidth}{%
+  \BarFld at symwidth=#1\relax
+}
+\define at key{BarField}{symfactor}{%
+  \BarFld at symfactor=#1\relax
+}
+\define at key{BarField}{ecc}{%
+  \BarFld at ecc=#1\relax
+}
+\def\qBarcodeFld{\qBarcodeFld}
+\def\BarFld at barcode@set at calculate@names#1#2#3,#4{%
+  \ifx\qBarcodeFld#4%
+    \expandafter\@firstoftwo
+  \else
+    \expandafter\@secondoftwo
+  \fi
+  {\def\Fld at calculate@code{event.value = event.value + " "}%
+   \def\Fld at format@code{event.value="#1#3\string\\n#2"+getField("#3").valueAsString;}}%
+  {\BarFld at barcode@set at calculate@names
+      {#1#3\string\\t}
+      {#2"+getField("#3").valueAsString+"\string\\t}%
+      #4%
+  }%
+}
+\define at key{Field}{tsv}{%
+  \BarFld at barcode@set at calculate@names{}{}#1,\qBarcodeFld
+}
+\DeclareRobustCommand\BarcodeField{%
+  \@ifnextchar[{\@BarcodeField}{\@BarcodeField[]}%
+}
+%% The following is based on the TextField implementation
+%% from the hyperref bundle, file hpdftex.def, with only the
+%% barcode specific fields added.
+\def\BarField at FlagsBarcode{%
+  \HyField at FlagsAnnot{barcode field}%
+  \bitsetReset{HyField at Ff}%
+  \HyField at UseFlag{Ff}{ReadOnly}%
+  \HyField at UseFlag{Ff}{Required}%
+  \HyField at UseFlag{Ff}{NoExport}%
+  \HyField at UseFlag{Ff}{Multiline}%
+  \HyField at UseFlag{Ff}{DoNotSpellCheck}%
+  \HyField at UseFlag{Ff}{DoNotScroll}%
+  \HyField at PrintFlags{Ff}{text field}%
+  \bitsetIsEmpty{HyField at Ff}{%
+    \let\Fld at flags\ltx at empty
+  }{%
+    \edef\Fld at flags{/Ff \bitsetGetDec{HyField at Ff}}%
+  }%
+}
+\def\LayoutBarcodeField#1#2{#2}
+\def\MakeBarcodeField#1#2{\vbox to #2{\hbox to #1{\hfill}\vfill}}
+%    \end{macrocode}
+% The list used as the |\DefaultOptionsofBarcode| are the flags set by Acrobat according to
+% Implementation Note E-7 to Adobe Extensions to ISO 32000.
+%    \begin{macrocode}
+\def\DefaultOptionsofBarcode{readonly,noexport,multiline,donotspellcheck}
+\def\BarPDF at BarcodeDict{%
+  /Subtype/Widget%
+  \Fld at annotflags
+  \Fld at pageobjref
+  \Fld at annotnames
+  /FT/Tx%
+  \Fld at flags
+  /PMD \the\pdflastobj\space0 R%
+  /Q \Fld at align
+  /BS<</W \Fld at borderwidth\space /S /\Fld at borderstyle>>%
+%    \end{macrocode}
+% The |/DataPrep| field is optional with a default value of 0 according to the Adobe Supplement to ISO 32000, Extension Level 3.
+% We still explicitly provide it because in reality Acrobat will not render the Barcode otherwise.
+%    \begin{macrocode}
+  /DataPrep 0%
+  \ifcase0\ifnum\Fld at rotation=\z@   \else 1\fi
+          \ifx\Fld at bordercolor\relax\else 1\fi
+          \ifx\Fld at bcolor\relax     \else 1\fi
+          \space
+  \else
+    /MK<<%
+      \ifnum\Fld at rotation=\z@
+      \else
+        /R \Fld at rotation
+      \fi
+      \ifx\Fld at bordercolor\relax
+      \else
+        /BC[\Fld at bordercolor]%
+      \fi
+      \ifx\Fld at bcolor\relax
+      \else
+        /BG[\Fld at bcolor]%
+      \fi
+    >>%
+  \fi
+  /DA(/Helv \strip at pt\Fld at charsize\space Tf%
+      \ifx\Fld at color\@empty\else\space\Fld at color\fi)%
+  /DV(\Hy at escapestring{\Fld at default})%
+  /V(\Hy at escapestring{\Fld at value})%
+  \Fld at additionalactions
+}
+\def\@BarcodeField[#1]#2{%
+  \def\Fld at name{#2}%
+  \let\Fld at default\ltx at empty
+  \let\Fld at value\@empty
+  \def\Fld at width{\DefaultWidthofText}%
+  \def\Fld at height{\DefaultHeightofTextMultiline}%
+  \begingroup
+    \expandafter\BarField at SetKeys\expandafter{%
+      \DefaultOptionsofBarcode,#1%
+    }%
+    \PDFForm at Name
+    \BarField at FlagsBarcode
+    \ifFld at hidden\def\Fld at width{1sp}\fi
+    \ifx\Fld at value\@empty\def\Fld at value{\Fld at default}\fi
+    \LayoutBarcodeField{#2}{%
+      \leavevmode
+      \HyAnn at AbsPageLabel
+      \immediate\pdfobj{<<%
+        /Type/PaperMetaData%
+        /Version 1%
+        /Width \strip at pt\dimexpr\Fld at width*65536/\number\dimexpr1in\relax\relax
+        /Height \strip at pt\dimexpr\Fld at height*65536/\number\dimexpr1in\relax\relax
+        /XSymWidth \the\BarFld at symwidth
+        \ifcase\BarFld at barcodetype
+          /Symbology/PDF417%
+          /XSymHeight \the\numexpr\BarFld at symwidth*\BarFld at symfactor\relax
+          /ECC \the\BarFld at ecc
+        \or
+          /Symbology/QRCode%
+          /ECC \the\BarFld at ecc
+        \or
+          /Symbology/DataMatrix%
+        \fi
+%    \end{macrocode}
+% The |/Resolution| is optional according to the Specification but required in practice like |/DataPrep| above.
+% Acrobat also fails with the default value $300$, instead a decimal part is required.
+%    \begin{macrocode}
+        /Resolution 300.0%
+      >>}%
+    \Hy at escapeform\BarPDF at BarcodeDict
+      \pdfstartlink user {\BarPDF at BarcodeDict}\relax
+      \MakeBarcodeField{\Fld at width}{\Fld at height}\pdfendlink
+      \HyField at AddToFields
+    }%
+  \endgroup
+}
+%    \end{macrocode}
+% \end{implementation}


Property changes on: trunk/Master/texmf-dist/source/latex/hyperbar/hyperbar.dtx
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/hyperbar/hyperbar.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hyperbar/hyperbar.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/hyperbar/hyperbar.sty	2018-07-05 21:48:34 UTC (rev 48147)
@@ -0,0 +1,181 @@
+%%
+%% This is file `hyperbar.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% hyperbar.dtx  (with options: `package')
+%% 
+%% Copyright (C) 2018 by Marcel Kr^^c3^^bcger
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%%   http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is Marcel Kr^^c3^^bcger
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{hyperbar}
+  [2018/07/04 v0.1
+  Add barcode form fields to hyperref for pdfTeX]
+\RequirePackage{hyperref}
+
+\def\BarField at SetKeys{\kvsetkeys{BarField}}
+\kv at set@family at handler{BarField}{\kv at processor@default{Field}{#1}{#2}}
+\newcount\BarFld at barcodetype
+\newcount\BarFld at symwidth
+\newcount\BarFld at symfactor
+\newcount\BarFld at ecc
+\BarFld at barcodetype=0
+\BarFld at symwidth=6
+\BarFld at symfactor=2
+\BarFld at ecc=2
+\define at key{BarField}{pdf417}[]{%
+  \BarFld at barcodetype=0
+}
+\define at key{BarField}{qr}[]{%
+  \BarFld at barcodetype=1
+}
+\define at key{BarField}{datamatrix}[]{%
+  \BarFld at barcodetype=2
+}
+\define at key{BarField}{symwidth}{%
+  \BarFld at symwidth=#1\relax
+}
+\define at key{BarField}{symfactor}{%
+  \BarFld at symfactor=#1\relax
+}
+\define at key{BarField}{ecc}{%
+  \BarFld at ecc=#1\relax
+}
+\def\qBarcodeFld{\qBarcodeFld}
+\def\BarFld at barcode@set at calculate@names#1#2#3,#4{%
+  \ifx\qBarcodeFld#4%
+    \expandafter\@firstoftwo
+  \else
+    \expandafter\@secondoftwo
+  \fi
+  {\def\Fld at calculate@code{event.value = event.value + " "}%
+   \def\Fld at format@code{event.value="#1#3\string\\n#2"+getField("#3").valueAsString;}}%
+  {\BarFld at barcode@set at calculate@names
+      {#1#3\string\\t}
+      {#2"+getField("#3").valueAsString+"\string\\t}%
+      #4%
+  }%
+}
+\define at key{Field}{tsv}{%
+  \BarFld at barcode@set at calculate@names{}{}#1,\qBarcodeFld
+}
+\DeclareRobustCommand\BarcodeField{%
+  \@ifnextchar[{\@BarcodeField}{\@BarcodeField[]}%
+}
+%% The following is based on the TextField implementation
+%% from the hyperref bundle, file hpdftex.def, with only the
+%% barcode specific fields added.
+\def\BarField at FlagsBarcode{%
+  \HyField at FlagsAnnot{barcode field}%
+  \bitsetReset{HyField at Ff}%
+  \HyField at UseFlag{Ff}{ReadOnly}%
+  \HyField at UseFlag{Ff}{Required}%
+  \HyField at UseFlag{Ff}{NoExport}%
+  \HyField at UseFlag{Ff}{Multiline}%
+  \HyField at UseFlag{Ff}{DoNotSpellCheck}%
+  \HyField at UseFlag{Ff}{DoNotScroll}%
+  \HyField at PrintFlags{Ff}{text field}%
+  \bitsetIsEmpty{HyField at Ff}{%
+    \let\Fld at flags\ltx at empty
+  }{%
+    \edef\Fld at flags{/Ff \bitsetGetDec{HyField at Ff}}%
+  }%
+}
+\def\LayoutBarcodeField#1#2{#2}
+\def\MakeBarcodeField#1#2{\vbox to #2{\hbox to #1{\hfill}\vfill}}
+\def\DefaultOptionsofBarcode{readonly,noexport,multiline,donotspellcheck}
+\def\BarPDF at BarcodeDict{%
+  /Subtype/Widget%
+  \Fld at annotflags
+  \Fld at pageobjref
+  \Fld at annotnames
+  /FT/Tx%
+  \Fld at flags
+  /PMD \the\pdflastobj\space0 R%
+  /Q \Fld at align
+  /BS<</W \Fld at borderwidth\space /S /\Fld at borderstyle>>%
+  /DataPrep 0%
+  \ifcase0\ifnum\Fld at rotation=\z@   \else 1\fi
+          \ifx\Fld at bordercolor\relax\else 1\fi
+          \ifx\Fld at bcolor\relax     \else 1\fi
+          \space
+  \else
+    /MK<<%
+      \ifnum\Fld at rotation=\z@
+      \else
+        /R \Fld at rotation
+      \fi
+      \ifx\Fld at bordercolor\relax
+      \else
+        /BC[\Fld at bordercolor]%
+      \fi
+      \ifx\Fld at bcolor\relax
+      \else
+        /BG[\Fld at bcolor]%
+      \fi
+    >>%
+  \fi
+  /DA(/Helv \strip at pt\Fld at charsize\space Tf%
+      \ifx\Fld at color\@empty\else\space\Fld at color\fi)%
+  /DV(\Hy at escapestring{\Fld at default})%
+  /V(\Hy at escapestring{\Fld at value})%
+  \Fld at additionalactions
+}
+\def\@BarcodeField[#1]#2{%
+  \def\Fld at name{#2}%
+  \let\Fld at default\ltx at empty
+  \let\Fld at value\@empty
+  \def\Fld at width{\DefaultWidthofText}%
+  \def\Fld at height{\DefaultHeightofTextMultiline}%
+  \begingroup
+    \expandafter\BarField at SetKeys\expandafter{%
+      \DefaultOptionsofBarcode,#1%
+    }%
+    \PDFForm at Name
+    \BarField at FlagsBarcode
+    \ifFld at hidden\def\Fld at width{1sp}\fi
+    \ifx\Fld at value\@empty\def\Fld at value{\Fld at default}\fi
+    \LayoutBarcodeField{#2}{%
+      \leavevmode
+      \HyAnn at AbsPageLabel
+      \immediate\pdfobj{<<%
+        /Type/PaperMetaData%
+        /Version 1%
+        /Width \strip at pt\dimexpr\Fld at width*65536/\number\dimexpr1in\relax\relax
+        /Height \strip at pt\dimexpr\Fld at height*65536/\number\dimexpr1in\relax\relax
+        /XSymWidth \the\BarFld at symwidth
+        \ifcase\BarFld at barcodetype
+          /Symbology/PDF417%
+          /XSymHeight \the\numexpr\BarFld at symwidth*\BarFld at symfactor\relax
+          /ECC \the\BarFld at ecc
+        \or
+          /Symbology/QRCode%
+          /ECC \the\BarFld at ecc
+        \or
+          /Symbology/DataMatrix%
+        \fi
+        /Resolution 300.0%
+      >>}%
+    \Hy at escapeform\BarPDF at BarcodeDict
+      \pdfstartlink user {\BarPDF at BarcodeDict}\relax
+      \MakeBarcodeField{\Fld at width}{\Fld at height}\pdfendlink
+      \HyField at AddToFields
+    }%
+  \endgroup
+}
+\endinput
+%%
+%% End of file `hyperbar.sty'.


Property changes on: trunk/Master/texmf-dist/tex/latex/hyperbar/hyperbar.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2018-07-05 21:45:46 UTC (rev 48146)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2018-07-05 21:48:34 UTC (rev 48147)
@@ -331,7 +331,7 @@
     hhtensor histogr historische-zeitschrift hitec hithesis hletter hlist
     hobby hobete hook-pre-commit-pkg horoscop
     hpsdiss hrefhide hrlatex hulipsum hustthesis hvfloat hvindex
-    hypdvips hyper hypernat hyperref hyperxmp hyph-utf8 hyphen-base 
+    hypdvips hyper hyperbar hypernat hyperref hyperxmp hyph-utf8 hyphen-base 
     hyphenat hyphenex hyplain
   ibycus-babel ibygrk icsv idxcmds idxlayout ieeepes ietfbibs
     ifetex iffont ifmslide ifmtarg ifnextok ifoddpage ifplatform ifptex ifsym

Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds	2018-07-05 21:45:46 UTC (rev 48146)
+++ trunk/Master/tlpkg/libexec/ctan2tds	2018-07-05 21:48:34 UTC (rev 48147)
@@ -2540,6 +2540,7 @@
  'hecthese'	=> 'etex',
  'hf-tikz'      => 'tex',
  'hrlatex'      => 'latex',  # requires interaction
+ 'hyperbar'	=> 'tex',
  'intopdf',	=> 'tex',
  'isodoc'       => 'luatex',
  'japanese'     => 'platex',

Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2018-07-05 21:45:46 UTC (rev 48146)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2018-07-05 21:48:34 UTC (rev 48147)
@@ -536,6 +536,7 @@
 depend hvindex
 depend hypdvips
 depend hyper
+depend hyperbar
 depend hypernat
 depend hyperxmp
 depend hyphenat

Added: trunk/Master/tlpkg/tlpsrc/hyperbar.tlpsrc
===================================================================


More information about the tex-live-commits mailing list