> I define templates as simple as a list of coordinate points or hot spots or
however you want to call them.
> These points are uniquely keyed by labels e.g. TOP_LEFT and they also have a
recurrence flag i.e. repeat
> for all pages. So they look like Spot(x,y,TOP_LEFT,repeat). These coordinate
tuples are defined
> manually once so that the visual "appealingness" is well known in advance and
not computed on the fly by
> some algorithm where you could lose predictability of the visual output. 
> 
> Now that's all :) I then use the Builder Design pattern which is one of the
few interfaces to client code with
> methods similar to e.g.
> 
> IBuilder#addPdfPart(Spot,IPdfPart)
> IBuilder#addTable(Spot,ITable)
> IBuilder#build()
> 
Giovanni, 

Interesting - could you show me how you define your spot function? The idea of
simply assembling a 'top' spot, 'left' spot and 'right' spot is appealing, but
I'm a little lost on how to implement it. Are spots = paragraphs or templates or
what?

Also, how would this work with a different header / footer on all pages after
the first page? 

I very much appreciate your suggestion!

I would imagine it would be something like (this is totally fake):

setFirstPageHeader(myPdfTemplateForPage1Top);
setFirstPageFooter(myPdfTemplateForPage1Bottom);
setAllOtherPageHeader(myPdfTemplateForAllOtherPagesTop);
setAllOtherPageFooter(myPdfTemplateForAllOtherPagesBottom);
setLeftColumnContent(theEntireMultipageTemplateForTheLeft);
setRightColumnContent(theEntireMultipageTemplateForTheRight);

OK - yes, that is total BS, but that's what I need to accomplish. I would settle
for the SAME header and footer on all pages, then a multipage-left column, and a
multipage-right column. 

I've been researching things, would a 2 column pdfTable be a good idea for this?
My content within the 2 columns would be paragraphs (chunks with font
formatting) -- can this work?

Thoughts on the header/footer issue? 

You all rock!
Dan 



------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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/

Reply via email to