Fred Janon wrote: > The charts have fixed dimensions, but probably different size (in > bytes)
Sorry, I wasn't clear. When I talked about size, I meant dimensions, not byte size. The idea is to put a placeholder in the PDF. I usually work with a button of which I replace the icon and then flatten the document. See for instance: http://1t3xt.info/examples/results/classroom/filmfestival/movies22.pdf is the template used to create: http://1t3xt.info/examples/results/classroom/filmfestival/movies22.pdf or its "flattened" version: http://1t3xt.info/examples/results/classroom/filmfestival/movies23_2.pdf Source code available here: http://1t3xt.info/examples/browse/?page=example&id=332 > since the legend will change a bit from one chart to another. I > can fix the max length of the strings to replace, meaning I can put a > dummy string in the template of the max length, then I can pad the > strings when replacing them if necessary. Working with a dummy string isn't done in PDF. You'd better work with text fields for Strings. See the example mentioned above. > Would that work? How can I find the location of the strings to replace > in the template? Do I need a template that's a pdf form? Yes, you need a template that is a PDF form. You can create such a template with Open Office. This form was made by http://1t3xt.info/examples/resources/classroom/filmfestival/datasheet.pdf It's filled using this code: http://1t3xt.info/examples/browse/?page=example&id=330 -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
