<div dir="ltr"><div>It's a bit hard to follow your example fragments but most likely you need something that expands to the value and latex \input is not expandable</div><div>You can probably use</div><div><br></div><div>\makeatletter</div><div>

\mjmaddbib{pages}{ \@@input \mjmbasename.last_page } <br></div><div>\makeatother</div><div><br></div><div>to use the expandable primitive input  (note no {}) but depending on ... things you may get an unwanted \par from the end of the file.</div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 17 Jun 2020 at 15:07, Mike Marchywka <<a href="mailto:marchywka@hotmail.com">marchywka@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'm trying to include bib info in the pdf file in a machine readable format<br>
and it mostly works. For example, <br>
<br>
( my script that just wraps an call to exiftool or whatever it is called ),<br>
<br>
exifutil -list covid19.pdf | grep X-bib<br>
X-bib-title                     : On the age distribution of SARS-Cov-2 Patients<br>
X-bib-author                    : Mike J Marchywka<br>
X-bib-type                      : TECHREPORT<br>
X-bib-name                      : marchywka-MJM-2020-002<br>
X-bib-number                    : MJM-2020-002<br>
X-bib-institution               : not institutionalized, independent<br>
X-bib-address                   :  306 Charles Cox , Canton GA 30115<br>
X-bib-date                      : June 17, 2020<br>
X-bib-version                   :  0.00 June 17, 2020 NOT public NOTES<br>
X-bib-day                       : 11<br>
X-bib-month                     : 05<br>
X-bib-year                      : 2020<br>
X-bib-author 1email             : <a href="mailto:marchywka@hotmail.com" target="_blank">marchywka@hotmail.com</a><br>
X-bib-contact                   : <a href="mailto:marchywka@hotmail.com" target="_blank">marchywka@hotmail.com</a><br>
X-bib-author 1id                : <a href="http://orcid.org/0000-0001-9237-455X" rel="noreferrer" target="_blank">orcid.org/0000-0001-9237-455X</a><br>
X-bib-pages                     :  covid19.lastpage<br>
X-bib-filename                  : covid19<br>
<br>
Except you may notice that the X-bib-pages contains a thing that was supposed to evaluate.<br>
<br>
I use these definitions,<br>
<br>
\newcommand{\mjmaddbib}[2]{\hypersetup{ pdfinfo={ x-bib-#1 = {#2}}}\mjmsummabib{#1}{#2}}<br>
\newcommand{\mjmaddbibonly}[2]{\hypersetup{ pdfinfo={ x-bib-#1 = {#2}}}}<br>
\newcommand{\mjmaddbibe}[2]{\hypersetup{ pdfinfo= x-bib-#1 = #2}}<br>
<br>
And then in the text, the offending entry seems to ignore the "input" thing, <br>
<br>
\newcommand{\<a href="mailto:mjmemail%7D%7Bmarchywka@hotmail.com" target="_blank">mjmemail}{marchywka@hotmail.com</a>}<br>
\mjmaddbib{title}{\mjmtitle}<br>
\mjmaddbib{author}{\mjmauthor}<br>
\mjmaddbib{type}{TECHREPORT}<br>
\mjmaddbib{name}{marchywka-\mjmtrno}<br>
\mjmaddbib{number}{\mjmtrno}<br>
%\mjmaddbib{version}{\mjmversion}<br>
\mjmaddbib{institution}{not institutionalized, independent }<br>
\mjmaddbib{address}{ 306 Charles Cox , Canton GA 30115}<br>
\mjmaddbib{date}{\today}<br>
\mjmaddbib{version}{\mjmversion \today   \mjmstatus}<br>
\mjmaddbib{day}{\mjmbibday}<br>
\mjmaddbib{month}{\mjmbibmo}<br>
\mjmaddbib{year}{\mjmbibyear}<br>
\mjmaddbib{author1email}{\mjmemail}<br>
\mjmaddbib{contact}{\mjmemail}<br>
\mjmaddbib{author1id}{<a href="http://orcid.org/0000-0001-9237-455X" rel="noreferrer" target="_blank">orcid.org/0000-0001-9237-455X</a>}<br>
\mjmaddbib{pages}{ \input{\mjmbasename.last_page}}<br>
\mjmaddbib{filename}{\mjmbasename}<br>
<br>
I'm storing the last page in a file for several reasons but why is input ignored here?<br>
<br>
This gives the expected output, <br>
<br>
%   PAGES =         \{6\},<br>
  PAGES =         \{ \input{\mjmbasename.last_page} \},<br>
<br>
  CONTACT =       \{<a href="mailto:marchywka@hotmail.com" target="_blank">marchywka@hotmail.com</a>\},<br>
<br>
<br>
<br>
Thanks.<br>
<br>
note new address<br>
 Mike Marchywka 306 Charles Cox Drive Canton, GA 30115<br>
 2295 Collinworth  Drive Marietta GA 30062.  formerly 487 Salem Woods Drive Marietta GA 30067 404-788-1216 (C)<- leave message 989-348-4796 (P)<- emergency<br>
<br>
</blockquote></div>