Thomas Hauk wrote:
> I had a single huge method generating these PDFs and it was working  
> fine. However, I decided to refactor the 200+ line function into  
> multiple functions, and now I've hit a compile error in my  
> (refactored) method that should return a PdfTemplate, because it  
> requires a PdfWriter.

That's a totally different question.

You were attacking iText by saying something that sounded as:
"it is stupid that I need a writer to get a template."

> Instead of trying to understand what I am doing

You didn't say what you are doing.
You should ask questions like this:
http://www.catb.org/~esr/faqs/smart-questions.html

In any case, I wrote a large part of iText, and I don't understand
the problem based on your description.

The way I see it: you had something that worked, and you broke it.
You broke it because you made a design error.
IMO this isn't really a question about iText, but rather about design.

I don't understand why you can't provide a writer to the method that 
returns a template.

------------------------------------------------------------------------------

_______________________________________________
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