public static void Run()
{
try
{
// ExStart:PrefixForURLs
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion_PDFToHTMLFormat();
Document testDoc = new Document(dataDir + "input.pdf");
HtmlSaveOptions options = new HtmlSaveOptions();
// This is main setting that allows work and testing of tested feature
options.RasterImagesSavingMode = HtmlSaveOptions.RasterImagesSavingModes.AsExternalPngFilesReferencedViaSvg;//
options.CustomResourceSavingStrategy = new HtmlSaveOptions.ResourceSavingStrategy(Custom_processor_of_embedded_images);
// Do conversion
testDoc.Save(dataDir + @"PrefixForURLs_out.html", options);
// ExEnd:PrefixForURLs
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
// ExStart:PrefixForURLsHelper