Aspose.Pdf.Examples.CSharp.AsposePDF.DocumentConversion.PDFToHTMLFormat.SpecifyPrefixForImages.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            try
            {
                // ExStart:SpecifyPrefixForImages
                // The path to the documents directory.
                string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion_PDFToHTMLFormat();

                string outFile = dataDir + "SpecifyImages_out.html";

                Document doc = new Document(dataDir + "input.pdf");
                // Create HtmlSaveOption with tested feature
                HtmlSaveOptions saveOptions = new HtmlSaveOptions();
                saveOptions.SplitIntoPages = false;
                saveOptions.CustomResourceSavingStrategy = new HtmlSaveOptions.ResourceSavingStrategy(SavingTestStrategy_1);

                doc.Save(outFile, saveOptions);
                // ExEnd:SpecifyPrefixForImages
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
        // ExStart:SpecifyPrefixForImagesHelper
SpecifyPrefixForImages