Re: [iText-questions] Best Practice in designing different Chapters etc.
I've put this Question also on SO: http://stackoverflow.com/questions/22077254/how-to-structure-a-project-to-generate-a-pdf-report-with-different-chapters-with Best Regards, Christian. 2014-02-27 16:11 GMT+01:00 Christian Schneider cschneiderpub...@gmail.com: Hi, is there a common way of organizing the sourcecode if you have a lot of different chapters? Is it possible to do smth. like this: class Introduction extends Chapter { @Override public void ??proccesss??() { // now i add new Paragraps images and stuff here } } class Abstract extends Chapter { @Override public void ??proccesss??() { // now i add new Paragraps images and stuff here } } And then finally i wire up everything like this: class MyFanceReportGenerator { public Document generate(/* the configuration goes here */) { // generate document document.add(new Introduction(...)); document.add(new Abstract(...)); // ... } } Best Regards, Christian. -- Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Best Practice in designing different Chapters etc.
On 2/27/2014 7:30 PM, Christian Schneider wrote: I've put this Question also on SO: http://stackoverflow.com/questions/22077254/how-to-structure-a-project-to-generate-a-pdf-report-with-different-chapters-with I don't think anybody will answer. I didn't (and won't) answer because Chapter and Section are eligible for deprecation. What advantage do you want to gain from using these classes? - Bookmarks: using PdfOutline isn't that difficult. - Autonumbering: involves a counter that can be implemented in a different way. What disadvantage do you have with these classes? - They are bad for memory usage. - They aren't supported in the sense that nobody at iText has looked at them for years. - Their API is awkward. I would go for a third option and write my own neat mechanism to create the Outlines and generate the numbers. -- Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php