HI Paulo,
 Can u suggest me how can I do it.What PDF recognisable tags should I use to open a 
document whose location is relative to where PDF file is.
Regards,
Kiran

You must modify SAXmyHtmlHandler and maybe other classes to suit your
special requirements.

Best Regards,
Paulo Soares

 HI,
 I will explain u th eexact scenario.
 I have an HTML file. I want to generate PDF from it.
 I am using PdfWriter and HtmlParser classes of iText.
 There some links <a href="../Attachments/abc.ext"> are there.
 These paths are relative.
 I am unable to achieve the expected result in pdf. 
 It searches for "http://../Attachments/abc.ext";
 What should I do to come out 
 
 Regards,
 Kiran M.S.
 
> Anchors always point to web pages, you need another type of action. Try
> this:
> 
> String application = "c:/winnt/notepad.exe";
> Paragraph p = new Paragraph(new Chunk("Click to open " +
> application).setAction(new PdfAction(application, null, null, null)));
> 
> It refers to an external file. You can also have an attachment with the
> data
> residing in the pdf. See PdfAnnotation.createFileAttachment(). The last
> option will only work with full Acrobat and with reader 5.1 and 6.
> 
> Best Regards,
> Paulo Soares
> 
> > Hi,
> > When I generate PDF files using iText class, I need to give a
> link(anchor)
> > toa relative file. The relative apth may vary depending upon where the
> > user downloads the pdf file and the related files(we call these files a
> s
> > attachments). I could not do it.PDF searches in th eweb(http://..) for
> > this file.I can't give the absolute path, as it is in the user's hand.
> > How can I come out of this situation?
> > 
> > Thanx & Regards,
> > 
> > Kiran M.S.
> > 
> >  
> > 


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to