Hi While converting txt to png getting error “Specified content type is not supported: application/json”
123.zip (3.7 KB)
Note this zip file is text file which i want to convert I also try with C# Convert TEXT To PNG still error
Hi While converting txt to png getting error “Specified content type is not supported: application/json”
123.zip (3.7 KB)
Note this zip file is text file which i want to convert I also try with C# Convert TEXT To PNG still error
@umittal
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): WORDSNET-27609
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
You can explicitely specify load format to avoid the problem. Also, the code to convert TXT to PNG is not quite correct. Please try using the following code:
Document doc = new Document(@"C:\Temp\in.txt", new LoadOptions() { LoadFormat = LoadFormat.Text });
ImageSaveOptions opt = new ImageSaveOptions(SaveFormat.Png);
for (int i = 0; i < doc.PageCount; i++)
{
opt.PageSet = new PageSet(i);
doc.Save($@"C:\Temp\page{i}.png", opt);
}
The issues you have found earlier (filed as WORDSNET-27609) have been fixed in this Aspose.Words for .NET 25.1 update also available on NuGet.