<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>iText Tutorial: Working with existing PDF documents</title><meta name="Description" content="How-to copy/manipulate existing PDF documents."><meta name="Keywords" content="PDF, JAVA, iText, examples, copy PDF, stamp, existing PDF"><link rel="stylesheet" href="./../../style.css" type="text/css"></head><body><a name="top" class="logo" href="http://www.lowagie.com/iText"><img src="http://www.lowagie.com/iText/images/logo.gif" border="0" alt="iText"></a><h1>Tutorial: iText by Example</h1><h2>Working with existing PDF documents</h2><div id="content"><div id="sidebar"><a class="toc" href="./../../index.html#forms_fill"> Table of Contents </a><div align="Center" class="small">Best viewed with:<br><script type="text/javascript"><!-- google_ad_client = "pub-0340380473790570"; google_ad_width = 180; google_ad_height = 60; google_ad_format = "180x60_as_rimg"; google_cpa_choice = "CAAQyaj8zwEaCIwcWMzeycafKMu293M"; //--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div><div class="sidetitle">Sections:</div><ul><li><a href="#inaction">In the book</a></li><li><a href="#stamper">PdfStamper</a></li></ul><br><br><div class="sidetitle">Examples:</div><div class="example"><a class="source" href="http://itext.ugent.be/library/com/lowagie/examples/forms/fill/Register.java">Register</a><br><div class="description">Fills in a form</div><div class="small">Input:</div><ul><li><a href="http://itext.ugent.be/library/com/lowagie/examples/forms/fill/SimpleRegistrationForm.pdf">SimpleRegistrationForm.pdf</a></li></ul><div class="small">Output:</div><ul><li><a href="http://itext.ugent.be/library/com/lowagie/examples/forms/fill/registered.pdf">registered.pdf</a></li><li><a href="http://itext.ugent.be/library/com/lowagie/examples/forms/fill/registered_flat.pdf">registered_flat.pdf</a></li></ul></div><div class="example"><a class="source" href="http://itext.ugent.be/library/com/lowagie/examples/forms/fill/FdfExample.java">FdfExample</a><br><div class="description">Creates an FDF and merges it with a PDF</div><div class="small">Input:</div><ul><li><a href="http://itext.ugent.be/library/com/lowagie/examples/forms/fill/SimpleRegistrationForm.pdf">SimpleRegistrationForm.pdf</a></li></ul><div class="small">Output:</div><ul><li><a href="http://itext.ugent.be/library/com/lowagie/examples/forms/fill/SimpleRegistrationForm.fdf">SimpleRegistrationForm.fdf</a></li><li><a href="http://itext.ugent.be/library/com/lowagie/examples/forms/fill/registered_fdf.pdf">registered_fdf.pdf</a></li></ul></div><div class="example"><a class="source" href="http://itext.ugent.be/library/com/lowagie/examples/forms/fill/XfdfExample.java">XfdfExample</a><br><div class="description">merges an XFDF file with a PDF</div><div class="small">Input:</div><ul><li><a href="http://itext.ugent.be/library/com/lowagie/examples/forms/fill/SimpleRegistrationForm.pdf">SimpleRegistrationForm.pdf</a></li><li><a href="http://itext.ugent.be/library/com/lowagie/examples/forms/fill/register.xfdf">register.xfdf</a></li></ul><div class="small">Output:</div><ul><li><a href="http://itext.ugent.be/library/com/lowagie/examples/forms/fill/registered_xfdf.pdf">registered_xfdf.pdf</a></li></ul></div><div class="example"><div class="small">ANT script (all examples):</div><ul><li><a href="./../../forms/fill/build.xml"> build.xml </a></li></ul></div></div><div id="main"><font color="#FF0000" size="+2">UNDER CONSTRUCTION</font><a name="inaction"></a><div class="title">In the book:</div><div xmlns="http://www.w3.org/1999/xhtml" xmlns:site="http://www.lowagie.com/iText/site"> <p xmlns=""><a href="http://itext.ugent.be/itext-in-action/"><img src="http://itext.ugent.be/img/lowagie_3d.jpg" border="0" align="right"></a> The examples in this free online tutorial will help you getting started with iText. Note that most examples are two years old. Some of the examples may be obsolete. Also the theory that comes with the examples isn't always 100% accurate. If you want more recent examples or if you want to know more about the theoretical background of PDF and iText, please consult the book <a href="http://itext.ugent.be/itext-in-action/"> "iText in Action". </a> Note that the first and the third chapter of the book can be downloaded for free from <a href="http://www.manning.com/affiliate/idevaffiliate.php?id=223_53">http://manning.com/lowagie/</a></p><p> More specifically: <ul><li><a class="subtitle" href="http://itext.ugent.be/itext-in-action/chapter.php?chapter=15"> Chapter 15: </a>Creating annotations and fields</li><li><a class="subtitle" href="http://itext.ugent.be/itext-in-action/chapter.php?chapter=16"> Chapter 16: </a>Filling and signing AcroForms</li></ul></p> </div><div xmlns="http://www.w3.org/1999/xhtml">You can also find an article about forms (and an example on how to create one) here: <a href="http://itext.ugent.be/articles/eid-pdf/">eID + PDF: forms and digital signatures</a></div><a class="top" href="#top">Go to top of the page</a><a xmlns="" name="stamper"></a><div class="title">PdfStamper:</div><div xmlns="http://www.w3.org/1999/xhtml"></div><a class="top" href="#top">Go to top of the page</a><div id="footer"> Page Updated: 2006/09/17 10:13:57 Copyright © 1999-2005 Bruno Lowagie<br><a href="http://www.lowagie.com/iText/">iText</a> is a Free Java-Pdf library by Bruno Lowagie and Paulo Soares. </div></div></div><div class="commercial"><br><script type="text/javascript"><!-- google_ad_client = "pub-0340380473790570"; google_ad_width = 120; google_ad_height = 600; google_ad_format = "120x600_as"; google_ad_channel =""; google_ad_type = "text_image"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "1B09BD"; google_color_url = "100670"; google_color_text = "707070"; //--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script><br><br><div class="subtitle">Amazon books:</div><script type="text/javascript"><!-- document.write('<iframe src="http://rcm.amazon.com/e/cm?t=itisacatalofwebp&o=1&p=8&l=as1&asins=1932394796&fc1=000000&lc1=0000ff&bc1=<1=_blank&IS2=1&bg1=ffffff&f=ifr" width="120" height="240" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" align="Center"></iframe>'); //--></script><a xmlns="" href="http://www.amazon.co.uk/exec/obidos/ASIN/1932394796/catloogjecom-21" class="amazonlinks"> amazon.co.uk-link </a><br><br><script type="text/javascript"><!-- document.write('<iframe src="http://rcm.amazon.com/e/cm?t=itisacatalofwebp&o=1&p=8&l=as1&asins=0321304748&fc1=000000&lc1=0000ff&bc1=<1=_blank&IS2=1&bg1=ffffff&f=ifr" width="120" height="240" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" align="Center"></iframe>'); //--></script><a href="http://www.amazon.co.uk/exec/obidos/ASIN/0321304748/catloogjecom-21" class="amazonlinks"> amazon.co.uk-link </a><br><br><script type="text/javascript"><!-- document.write('<iframe src="http://rcm.amazon.com/e/cm?t=itisacatalofwebp&o=1&p=8&l=as1&asins=0321305310&fc1=000000&lc1=0000ff&bc1=<1=_blank&IS2=1&bg1=ffffff&f=ifr" width="120" height="240" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" align="Center"></iframe>'); //--></script><a href="http://www.amazon.co.uk/exec/obidos/ASIN/0321305310/catloogjecom-21" class="amazonlinks"> amazon.co.uk-link </a><br><br><script type="text/javascript"><!-- document.write('<iframe src="http://rcm.amazon.com/e/cm?t=itisacatalofwebp&o=1&p=10&l=st1&mode=books&search=JAVA&=1&fc1=&lc1=<1=&bg1=&f=ifr" width="120" height="460" border="0" frameborder="0" style="border:none;" scrolling="no" marginwidth="0" marginheight="0"></iframe>'); //--></script><br><script type="text/javascript"><!-- document.write('<iframe src="http://rcm.amazon.com/e/cm?t=itisacatalofwebp&o=1&p=10&l=st1&mode=books&search=PDF&=1&fc1=&lc1=<1=&bg1=&f=ifr" width="120" height="460" border="0" frameborder="0" style="border:none;" scrolling="no" marginwidth="0" marginheight="0"></iframe>'); //--></script><br></div></body></html>