How to create pdf with complex design views in Java?I have tried it using jasper reports.Is there Any Ideas for creating PDF for Income tax forms?.
+2
A:
A commonly used Java API to create PDF files is iText. Give it a look. API documentation can be found here, code examples can be found here, a tutorial can be found here.
A good but less widely known Java API is OOo API wherein you can create any OOo document to your taste and finally export to PDF.
BalusC
2010-02-19 17:57:06
How to create all form fields using iText.I want to create PDf for Form16 Dynamically.will it support for this Complex Designs?
Palani
2010-02-19 18:00:45
I have no idea what *exactly* you mean with "form fields" and "Form16". Please be a bit more specific. I've at least added links to documentation, examples and a tutorial.
BalusC
2010-02-19 18:07:19
Form16 is the form which is provided for filing Income Tax. Below Link is sample format.I want create it Dynamically by filling All Values.http://www.taxguru.in/wp-content/uploads/2009/04/form-itr-1-2009-10.pdfI hope that you understand my requirement.
Palani
2010-02-19 18:17:13
@Palani: How to do it for income tax forms specifically is where your expertise comes in. I could be wrong, but I doubt there is any specific API for creating specific income tax forms in PDF via java. Maybe when you've succeeded you can contribute it back to the community and then we'll have one.
harschware
2010-02-19 18:28:58
There are many ways to do this using iText, but the easiest is to use a different authoring tool (like Acrobat) to insert form fields in the PDF. Then you use iText to fill in and flatten those fields. There are plenty of examples on the iText site for doing this, and the iText In Action book is a great resource.
Kevin Day
2010-02-20 04:24:07
@Kevin Day: One of My concept is same as what you said. is it possible to give some description How to add the form fields by creating using Acrobat?
Palani
2010-02-22 13:21:27
That would be a question more appropriate for an Acrobat users forum, but I'm sure the Forms tool in Acrobat would come into play.
Kevin Day
2010-02-24 00:24:31
A:
Have you taken a look at the Apache PDFBox project. I believe you can create PDFs using this library, although it is more commonly used in Lucene to convert PDFs to text to allow indexing.
Binary Nerd
2010-02-20 01:41:58
A:
You could also try Docmosis or JODConverter to do the conversion as long as you can install OpenOffice somewhere. They work on many platforms and can be Java controlled and will save you the hassle of learning the OOo UNO API.
jowierun
2010-05-13 05:55:13