Hello,
I am using the latest nuget pkg GroupDocs.Convert, it shows the following error.
is that anyone face the same error?
image.png (79.1 KB)
the source is absolute path with file name like “c:\x\xx.pdf”
the destinationis absolute path with file name like “c:\x\xx.html”
using Aspose.Pdf;
using GroupDocs.Conversion;
using GroupDocs.Conversion.FileTypes;
using GroupDocs.Conversion.Options.Convert;
using GroupDocs.Viewer.Options;
using GroupDocs.Viewer;
namespace PdfToHtmlTest
{
public class ConholdateTotalForNetTest
{
public static void ConvertPdfToHtml(string source, string destination)
{
using (Converter converter = new Converter(source))
{
WebConvertOptions webConvertOptions = new WebConvertOptions
{
Format = new WebFileType(),
PagesCount = 1,
PageNumber = 1,
};
converter.Convert(destination, webConvertOptions);
}
}
}
}
1 Like
@DongdongFu
Please share following details and we’ll look into this scenario:
- GroupDocs.Conversion and Aspose.PDF API versions that you integrated in your application
- Source file(s)
Hi @Atir_Tahir,
I using the GroupDocs.Conversion 23.1.0;
Source Files : 3.pdf (83.7 KB)
@DongdongFu
We cannot reproduce this issue at our end. Please take a look at this output.zip (155.4 KB) and following code:
//C# code to convert PDF to HTML
using (var converter = new GroupDocs.Conversion.Converter(@"D:/3.pdf"))
{
WebConvertOptions options = new WebConvertOptions
{
PageNumber = 1,
PagesCount = 1,
FixedLayout = true
};
converter.Convert(@"D:/converted.html", options);
}
Could you please share the sample application?
I using the same code as u memtion but shows the same error as well,.
image.png (97.9 KB)
@DongdongFu
It looks more like your development environment related issue rather GroupDocs.Conversion for .NET. Could you please share the sample application using that issue could be reproduced?