<div dir="ltr"><div><div><div><div><div><div>Greetings,<br><br></div>Not an Erlang question: I have an Erlang program that modifies a PDF file. When it comes upon the following in a stream object:<br>BT 0.0001 Tc 50 0 0 50 0 0 Tm /TT2 1 Tf ([org_nr]) Tj ET<br><br></div><div>That is painted (correct PDF name?) in the PDF file like this:<br>[org_nr]<br><br></div>The program replaces(*) this with:<br>BT 0.0001 Tc 50 0 0 50 0 0 Tm /TT2 1 Tf (12345678) Tj ET<br><br></div>The new file paints this line in the same place:<br>2[]<br><br></div>Where [] is how I represent a single character that looks like a square.<br><br></div>Given the 800 pages of the PDF documentation I wonder if somebody has a suggestion where to start reading about how to get at least 12345678 painted. Preferably more.<br><br><br></div>bengt<br>(*) it also takes care of compressing the stream, calculating new lengths,
updating xref table, startxref and trailer /Prev. All thanks to Joe's
erlpdf program</div>