Hi Jan,
I've quickly put together a demo WD2024 project based on the existing M$ Office example and hacked the BTN_ExportPDF code to the following so that it uses the DocToPDF function instead of the OpenFilePicker:
Click BTN_ExportPDF
// Saves the name
sDocName is string = gsNameOpenedDocument
gsNameOpenedDocument = fExtractPath(gsNameOpenedDocument,fFileName) +".pdf"
// Opens the file picker
//sFile is string = OpenFilePicker(fselCreate + fselExist, *, "PDF file" + TAB + "*.PDF", "PDF")
// Restores the document name
//gsNameOpenedDocument = sDocName
DocToPDF(WP_Main,gsNameOpenedDocument)
// Export if necessary
//if sFile <> "" then
// Saves the document
// WP_Main.VersPDF(sFile)
//end
Then I did a"GO" to test it; I entered some text, included some hyperlinks, saved as a Word doc, then used the "Export" option to save as a PDF and when I re-open the PDF outside of the WD test application the hyperlink(s) work for me.
My configuration opens the PDF in the Edge browser; maybe your config is different?
What version of WD2024 are you using - I've upgraded to 61j, have you?
Regards,
Darren.