<div dir='auto'><br><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">Am 15.12.2018 9:23 vorm. schrieb Christoph Bersch <usenet@bersch.net>:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><div><br></div></div><div dir="auto">* The byte position and byte length of every pdf object is fixed and written to a global index (xref). So you could principally only make replacements of the same source and target byte length.</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Writing this, I came across the qdf mode for qpdf, http://qpdf.sourceforge.net/files/qpdf-manual.html#ref.qdf . This rewrites a pdf file in a form which can be edited in a text editor, and the fixed with the fix-qpf script shipped with qpdf.</div><div dir="auto"><br></div><div dir="auto">Even though you haven't control over the processing on your target system, I think that the details about the qdf mode, as described in the linked page, make the technical problems of editing pdf files clearer.</div><div dir="auto"><br></div><div dir="auto">Christoph</div></div>