public static void Run()
{
try
{
// ExStart:PrefixToImportDirectives
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion_PDFToHTMLFormat();
string linceseFile = ""; // E.g @"F:\_Sources\Aspose.Total.lic"
(new Aspose.Pdf.License()).SetLicense(linceseFile);
Document pdfDocument = new Document(dataDir + "input.pdf");
string outHtmlFile = dataDir + "PrefixToImportDirectives_out.html";
_folderForReferencedResources_36435 = dataDir;
// Create HtmlSaveOption with tested feature
HtmlSaveOptions saveOptions = new HtmlSaveOptions();
saveOptions.CustomStrategyOfCssUrlCreation = new HtmlSaveOptions.CssUrlMakingStrategy(Strategy_10_CSS_ReturnResultPathInPredefinedTestFolder);
saveOptions.CustomCssSavingStrategy = new HtmlSaveOptions.CssSavingStrategy(Strategy_10_CSS_WriteCssToResourceFolder);
//----------------------------------------------------------------------------
// Run converter
//----------------------------------------------------------------------------
pdfDocument.Save(outHtmlFile, saveOptions);
// ExEnd:PrefixToImportDirectives
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
// ExStart:PrefixToImportDirectivesHelper