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=126839071&iu=/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

Reply via email to