Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Converting a PDF to HTML removes hyperlinks

$
0
0

Hi!

Whenever I try to convert a PDF all the hyperlinks are removed in the HTML file.

Is there anything I can do to keep the hyperlinks?

 

Aspose.Pdf.Document pdoc = new Aspose.Pdf.Document(filepath);



Aspose.Pdf.HtmlSaveOptions saveOptions = new Aspose.Pdf.HtmlSaveOptions(true);



saveOptions.FixedLayout = true;



saveOptions.SplitIntoPages = false;



saveOptions.SplitCssIntoPages = false;



saveOptions.RasterImagesSavingMode =
Aspose.Pdf.
HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground;



saveOptions.FontSavingMode =
Aspose.Pdf.
HtmlSaveOptions.FontSavingModes.AlwaysSaveAsWOFF;



pdoc.Save(filepath + ".html",
saveOptions);

 

Running version Aspose.Pdf 9.2.1.0.

Thanks in advance

Mattias

 


Viewing all articles
Browse latest Browse all 3131

Latest Images

Trending Articles



Latest Images