You must modify SAXmyHtmlHandler and maybe other classes to suit your special requirements.
Best Regards, Paulo Soares > -----Original Message----- > From: Kiran_MS [SMTP:[EMAIL PROTECTED] > Sent: Thursday, October 09, 2003 12:03 > To: Paulo Soares; [EMAIL PROTECTED] > Subject: RE: [iText-questions] anchors in pdf file > > 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. > Infosys Technologies Limited, Bangalore > Phone: 51173913 > EMail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > > -----Original Message----- > From: Paulo Soares [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 09, 2003 4:11 PM > To: Kiran_MS; [EMAIL PROTECTED] > Subject: RE: [iText-questions] anchors in pdf file > > > 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 > > > -----Original Message----- > > From: Kiran_MS [SMTP:[EMAIL PROTECTED] > > Sent: Thursday, October 09, 2003 11:03 > > To: [EMAIL PROTECTED] > > Subject: [iText-questions] anchors in pdf file > > > > 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
