Hello,
We are using Aspose.PDF.Drawing 25.1.0 and Aspose.Cells 25.1.2
We are loading the attached pdf containing an hyperlink to an Url.
The pdf is converted to an xlsx. The created xlsx document contains the text, but the hyperlink has not been preserved.
Here is the source code to reproduce:
var doc = new Document ("google.pdf");
var xlsOptions = new ExcelSaveOptions
{
Format = ExcelSaveOptions.ExcelFormat.XLSX
};
using var ms = new MemoryStream();
doc.Save(ms, xlsOptions);
ms.Seek(0, SeekOrigin.Begin);
using var xlsx = new Cells.Workbook(ms);
xlsx.Save("google.xlsx", Cells.SaveFormat.Xlsx);
ms.Close();
We have used below code to generated the XLSX from your PDF with Aspose.PDF:
Aspose.Pdf.Document pdf = new Aspose.Pdf.Document(dataDir + "document.pdf");
Aspose.Pdf.ExcelSaveOptions exl = new ExcelSaveOptions();
//exl.ConversionEngine = ExcelSaveOptions.ConversionEngines.NewEngine;
exl.Format = ExcelSaveOptions.ExcelFormat.XLSX;
exl.InsertBlankColumnAtFirst = false;
exl.MinimizeTheNumberOfWorksheets = true;
pdf.Save(dataDir + "document.xlsx", exl);
We did notice that hyperlink was not recognized in Excel. However, it could be the security settings in Modern Versions of MS Excel because the link points to http://google.be instead of https://google.be. Please try with links having https:// and let us know if issue still persists.
Would you please try with 25.3 version of the API and share input output files with us in case issue keeps persisting. We will test the scenario in our environment and address it accordingly.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): PDFNET-59702
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.