Martin Weiss wrote: > Both versions (PdfCopy, PdfSmartCopy) have only a > single copy of the Form XObject (PdfTemplate) [see below].
Are you sure? I mean: I can't tell only by looking at one object. > Both files have the same size. That's good news. In general, files generated with PdfSmartCopy are much smaller in size than files generated with PdfCopy when content from different files is concatenated. For instance if you have: file 1 with template X file 2 with template Y file 3 with template X Then template X will occur twice when you concatenate file 1, 2 and 3 using PdfCopy. It will occur only once when you use PdfSmartCopy. Maybe I didn't read the original question very well, maybe you don't have situations where the same background is used for different files. > Only to be sure that I have > interpreted your answer correctly: your are not sure whether I can use the > writer getImportedPage for my problem If template X is used on different pages in the same document, using PdfImportedPage will not cause the XObject to be duplicated. If template X is used on different pages in different documents, then the XObject will be duplicated (which isn't what you want). -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net 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/