Just downloaded Aspose.Cells for evaluation in order to convert Excel workbooks to PDF. I see that it does carry over standard cell hyperlinks. There are images in the workbook that are also hyperlinks (i.e., clicking on an image takes the user to a certain worksheet). Is there an option within Aspose.Cells that will allow these to be carried over into the resulting PDF? Thanks
Hi,
Thanks for the quick response! After further review I discovered that some images with hyperlinks worked and others didn’t. The ones that did not work were “grouped” together (i.e., select images on Excel worksheet, right click and select “group”). If they are ungrouped then the hyperlinks carried over into PDF. Leaving them grouped is preferred as then they can be moved (via code) as one item instead of each image separately (which is sometime necessary before conversion to PDF).
However, I did notice that where links did not exist (i.e., worksheet not included) the link is displayed when hovered over (see attached image). Is there a way to turn that off? (Conversion via Adobe does not show link on hover over).
Again, thanks!
ccastric:
Thanks for the quick response! After further review I discovered that some images with hyperlinks worked and others didn't. The ones that did not work were "grouped" together (i.e., select images on Excel worksheet, right click and select "group"). If they are ungrouped then the hyperlinks carried over into PDF. Leaving them grouped is preferred as then they can be moved (via code) as one item instead of each image separately (which is sometime necessary before conversion to PDF).
ccastric:
However, I did notice that where links did not exist (i.e., worksheet not included) the link is displayed when hovered over (see attached image). Is there a way to turn that off? (Conversion via Adobe does not show link on hover over).
foreach (Worksheet sheet in book.Worksheets)
{
for (int index = 0; index < sheet.Shapes.Count; index++)
{
Shape shape = sheet.Shapes[index];
if (shape.IsGroup)
{
sheet.Shapes.Ungroup((GroupShape)shape);
}
}
}
book.Save(dir + "hyperlink-grouped.pdf", new PdfSaveOptions());