Re: [iText-questions] embedded media issue

2011-10-07 Thread Manoj Karnavat
I got into the iText codebase and realized that when setAppearance is invoked on the PdfAnnotation object, internally, the logic checks for the existence of the AP key in a dictionary and if not present, it generates all the reqd stuff so, setAppearance seems to be doing whatever is required...

Re: [iText-questions] embedded media issue

2011-10-07 Thread Manoj Karnavat
oki hv a few doubts after some trial and error that i have done so far... firstly, when i set the appearance using pa.setAppearance(PdfAnnotation.APPEARANCE_NORMAL, ap); then i see 2 overlapping lines of text (which is understandable since this is the "Normal" appearance.) However, if I move

Re: [iText-questions] embedded media issue

2011-10-06 Thread 1T3XT BVBA
On 6/10/2011 19:38, Manoj Karnavat wrote: > I think I have come closer to the final aim with the foll code, but I > strongly feel that some tiny bit is missing...can anyone pls help - i > think im not getting the right PdfName in the setAppearance > method...the documentation is bit confusing -

Re: [iText-questions] embedded media issue

2011-10-06 Thread Manoj Karnavat
I think I have come closer to the final aim with the foll code, but I strongly feel that some tiny bit is missing...can anyone pls help - i think im not getting the right PdfName in the setAppearance method...the documentation is bit confusing - i have done some amount of trial and error, but no lu

Re: [iText-questions] embedded media issue

2011-10-05 Thread Manoj Karnavat
I am now writing the text by using the PdfContentByte object. But I am unable to put all the pieces together... how do i connect the above PdfContentByte and the dictionary object - i dont see any method to link these 2 objects PdfContentByte canv = canvas[PdfPTable.TEXTCANVAS];

Re: [iText-questions] embedded media issue

2011-10-05 Thread 1T3XT BVBA
On 5/10/2011 13:04, Manoj Karnavat wrote: > PdfDictionary appear = new PdfDictionary(); > appear.put(PdfName.AC, str); What's this? Is str a (Pdf)String object? That's not an appearance, is it? If you want an appearance, you need to create the PDF syntaxt to draw it using methods s

Re: [iText-questions] embedded media issue

2011-10-05 Thread Manoj Karnavat
t 10:05 PM, Leonard Rosenthol wrote: > >> Yes, we would need to see a PDF. >> >> From: Manoj Karnavat >> Reply-To: Post here >> Date: Tue, 4 Oct 2011 08:04:30 -0700 >> To: Post here >> Subject: [iText-questions] embedded media issue >> >&

Re: [iText-questions] embedded media issue

2011-10-04 Thread Leonard Rosenthol
ailto:itext-questions@lists.sourceforge.net>> Date: Tue, 4 Oct 2011 09:58:09 -0700 To: Post here mailto:itext-questions@lists.sourceforge.net>> Subject: Re: [iText-questions] embedded media issue here you go...the last line (beginning with "one:") has the issue - pls click on any p

Re: [iText-questions] embedded media issue

2011-10-04 Thread Leonard Rosenthol
Yes, we would need to see a PDF. From: Manoj Karnavat mailto:manoj...@gmail.com>> Reply-To: Post here mailto:itext-questions@lists.sourceforge.net>> Date: Tue, 4 Oct 2011 08:04:30 -0700 To: Post here mailto:itext-questions@lists.sourceforge.net>> Subject: [iText-questions] em

[iText-questions] embedded media issue

2011-10-04 Thread Manoj Karnavat
Hi All, I have used the iText library to create a PDF with embedded media. This media (audio) is inserted over text i.e. text is displayed and on clicking that text, the corresp media is played. The issue is that when the media is played, the text under which it is embedded is blacked-out. If inte