<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<br>
<div class="moz-cite-prefix">Osipov, Michael wrote:<br>
</div>
<blockquote type="cite"
cite="mid:fa3aabbb-909c-75de-1f32-826d521ce0d1@siemens.com">Hi
folks,
<br>
<br>
we are using XeTeX 3.14159265-2.6-0.99999 (TeX Live 2018) on
Windows and FreeBSD.
<br>
<br>
After studying the PDF specification [1] and how XeLaTeX and
xdvipdfmx work with Unicode (from PDF samples), I believe that my
request is (virtually) impossible.
<br>
I'd be happy if someone could either confirm this or prove me
wrong.
<br>
<br>
Task: We are producing PDFs on our server (from LaTeX source) for
the client which takes the PDF and uploads it to another service
which may replace placeholders, e.g., %DOCID% with the actual
document ID in the target system. [Remainder snipped[<br>
</blockquote>
<br>
Well. I used the following source :<br>
<br>
<blockquote type="cite">Now is the time \%DOCID\% for all good men
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">to come
to the aid of the party.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">\end</p>
</blockquote>
<br>
which generated the attached PDF (Test.pdf). I then opened
"Test.pdf" in Adobe Acrobat Pro DC, selected "Tools / Edit PDF",
and replaced "%DOCID%" by "The quick brown fox jumps right over the
lazy dog's back". The text re-flowed as one would hope. If Adobe
Acrobat Pro DC can do it, then it clearly can be done; all that is
needed is to write code to emulate Adobe Acrobat Pro DC's behaviour
w.r.t. editing text.<br>
<div class="moz-signature">-- <br>
<Signature><br>
Philip Taylor</div>
</body>
</html>