Reputation: 1
I want to create a table programatically as like this PDF FCController.pdf.
As you see columns are Date, Name, Category, Amount. And I want to add a datepicker to change the list.
Can I generate a PDF as I said? Is it possible by Itext?
Upvotes: 0
Views: 2654
Reputation: 77606
You want to embed a .swf
file inside a PDF as a RichMedia annotation as explained in chapter 16 of "iText in Action - Second Edition". The book had two examples that showed you how to do this:
Although these examples work to some extend, I would urge you not to use this technology. Steve Jobs refused to support Flash on Apple devices and that started the decline of Flash as a technology. Adobe introduced support for Flash as RichMedia in PDF in one of their extensions to ISO-32000-1, but I know from insiders at Adobe that they regretted this. In any case: this functionality is not going to make it into ISO-32000-2 (PDF 2.0), which means that:
The example you've shared is nice, and it's not impossible to create such a PDF, but you should reconsider: it's not a future-proof solution.
Upvotes: 1