Greetings Im relative new with the use of ItextSharp and have this code where I merge one existing file to the document I'm creating, the source file have hyperlinks but when I add them to the new document the hyperlinks arent working and im not sure if it's posible or not to keep the hyperlink or if I need to use another way to merge them together and keep the hyperlink, thanks for your help.
PdfReader test_reader = new PdfReader(info_document.file_data);
for (int i = 1; i <= test_reader.NumberOfPages; i++)
{
PdfImportedPage test_page = writer.GetImportedPage(test_reader, i);
if (test_page.Rotation != 90)
{
Rectangle test = test_reader.GetPageSize(i);
Rectangle test2 = new Rectangle(test.Width, test.Height);
doc.SetPageSize(test2);
doc.NewPage();
PdfPTable mergeTable = new PdfPTable(1);
mergeTable.WidthPercentage = 100;
Image image = Image.GetInstance(test_page);
PdfPCell mergeCell = new PdfPCell(image, true);
mergeCell.Border = 0;
mergeCell.BorderWidth = 0;
mergeTable.AddCell(mergeCell);
doc.Add(mergeTable);
}
}