Hi
here is my code
using System;
using pdftron;
using pdftron.Common;
using pdftron.PDF;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
PDFNet.Initialize();
// pdftron.PDFNet.Initialize();
// Relative path to the folder containing test files.
const string inputPath = @"C:\Users\xxx\Documents\Visual Studio 2015\Projects\ConsoleApplication1\ConsoleApplication1\testinput\1.pdf";
const string outputPath = @"C:\Users\xxx\Documents\Visual Studio 2015\Projects\ConsoleApplication1\ConsoleApplication1\testoutput\newsletter";
try
{
using (PDFDoc doc = new PDFDoc(inputPath))
{
doc.InitSecurityHandler();
Console.WriteLine("-------------------------------------------------");
Console.WriteLine("Converting PDF file to HTML");
pdftron.PDF.Convert.HTMLOutputOptions options = new pdftron.PDF.Convert.HTMLOutputOptions();
options.SetReflow(true);
pdftron.PDF.Convert.ToHtml(doc, outputPath , options);
Console.WriteLine("Wrote " + outputPath);
Console.WriteLine("Done.");
}
}
catch (PDFNetException e)
{
Console.WriteLine(e.Message);
}}}}
I get the following Error: Runtime Error! R6025 -pure virtual function call
only a part of the HTML is converted and no images/css are generated.
when i comment "options.SetReflow(true);" pdftron works as expected with no errors.
I am using win 10 with latest visual studio 2015 and pdftron.