Okay, SetAnchor normally works.
The problem is I am processing a pdf in two passes.
So that I can do a table of contents.
So in the first pass pdf I use SetAnchor.
In the second pass I'm reading the first pass page and writing it to
the second pass document with:
m_objContentByte.AddTemplate(m_wrtReport.GetImportedPage(rdrFirstPassReport,
intPage), 1, 0, 0, 1, 0, 0)
And then my url links aren't working.
Is there anyway to pull that information as well from the first pass document?
--
Will Rickards
On Wed, Oct 8, 2008 at 12:54 PM, William Rickards
<[EMAIL PROTECTED]> wrote:
> What am I doing wrong?
>
> I have a table. At the end or beginning of the table I want a cell
> which has the text "Email" and it should be a url link to the actual
> email.
> It will be a network path like \\servername\sharename\foldername\filename.msg.
>
> What I've tried so far:
> Note that all the previous cells have paragraph objects.
>
> ' This method tries to use PdfAction
> Dim objAction As iTextSharp.text.pdf.PdfAction
> objAction = New iTextSharp.text.pdf.PdfAction("http://www.google.com/")
> objCell = New iTextSharp.text.pdf.PdfPCell(New
> iTextSharp.text.Phrase(New iTextSharp.text.Chunk("Google",
> m_fntArial8).SetAction(objAction)))
> InitCell(objCell, 1)
> With objCell
> .HorizontalAlignment = iTextSharp.text.pdf.PdfPCell.ALIGN_LEFT
> .Border = m_intHitBorder
> .Colspan = 3
> End With
> objTable.AddCell(objCell)
>
> ' This method tries to use SetAnchor
> objCell = New iTextSharp.text.pdf.PdfPCell(New
> iTextSharp.text.Phrase(New iTextSharp.text.Chunk("Google",
> m_fntArial8).SetAnchor("http://www.google.com/")))
> InitCell(objCell, 1)
> With objCell
> .HorizontalAlignment = iTextSharp.text.pdf.PdfPCell.ALIGN_LEFT
> .Border = m_intHitBorder
> .Colspan = 3
> End With
> objTable.AddCell(objCell)
>
> --
> Will Rickards
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php