<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Greetings,<div class=""><br class=""></div><div class="">I forgot to thank Joe for this very helpful code/document. I apologise.</div><div class=""><br class=""></div><div class="">The main benefit is that it explains how the PDF magic works, but I would like to ask if it is allowed to copy some of the code?</div><div class="">Keeping the original</div><div class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">%% Module:  pdf.erl</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">%% Author:  Joe Armstrong (<a href="mailto:joe@sics.se" class="">joe@sics.se</a>)</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">%% Date:    2001-12-14</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">%% Purpose: Manipulate PDF files</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">%%          Pack and unpack files into PDF files</span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">of course.</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class="">bengt</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 26 Jan 2017, at 12:43, Joe Armstrong <<a href="mailto:erlang@gmail.com" class="">erlang@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">I did exactly this a while back.<br class=""><br class="">The enclosed PDF has an erlang program packed inside it.<br class="">The erlang program can be used to pack and unpack things inside PDF.<br class=""><br class="">PDF is after all, just a container format (like a zip file)<br class=""><br class="">Hint take a look at the end of erlpdf.pdf in a text editor.<br class=""><br class="">Actually since I always want to read the documentation first - I thought the<br class="">code should be *inside* the documentation and NOT the other way around.<br class=""><br class="">Cheers<br class=""><br class="">/Joe<br class=""><br class=""><br class="">On Wed, Jan 25, 2017 at 10:06 PM, bengt <<a href="mailto:cean.ebengt@gmail.com" class="">cean.ebengt@gmail.com</a>> wrote:<br class=""><blockquote type="cite" class="">Greetings,<br class=""><br class="">I would like to attach files (or some sort of binary content, anyway) to PDF<br class="">files, without destroying the PDF'ness of the file. I would also like to be<br class="">able to read the created PDF file and be able to tell what is the attachment<br class="">(and what is the original content). I have found Itext (Java, see<br class=""><a href="http://itextpdf.com/" class="">http://itextpdf.com/</a>). It seems to be able to do that and everything else<br class="">too, but is there any other alternative? Preferably in Erlang.<br class=""><br class=""><br class="">bengt<br class=""><br class="">_______________________________________________<br class="">erlang-questions mailing list<br class=""><a href="mailto:erlang-questions@erlang.org" class="">erlang-questions@erlang.org</a><br class="">http://erlang.org/mailman/listinfo/erlang-questions<br class=""><br class=""></blockquote><span id="cid:CBDA850E-49F4-485A-A635-069AAE150247@home"><erlpdf.pdf></span></div></div></blockquote></div><br class=""></div></body></html>