Aspose.Pdf.InvalidPdfFileFormatException Aspose.PDF Trailer not found
Aspose dll used in 25.5 version. using simle 1 line html
VS it is working . on iis not working. .net framework 4.7.2
Aspose.Pdf.InvalidPdfFileFormatException Aspose.PDF Trailer not found
Aspose dll used in 25.5 version. using simle 1 line html
VS it is working . on iis not working. .net framework 4.7.2
Would you please make sure that you are using the DLLs downloaded from the below link:
In case issue still persists, please share some more details that we can use to reproduce the issue in our environment. We will test the scenario in our environment and address it accordingly.
I have downloaded using nuget package in VS. and version i am using is 25.5
in below code pdfDoc = new Document(htmlStream, htmlOptions); this line throws exception.
fullHtml="<html><body><div>hiii</div></body></html>";
using (MemoryStream htmlStream = new MemoryStream(Encoding.UTF8.GetBytes(fullHtml)))
// {
// pdfDoc = new Document(htmlStream, htmlOptions);
// using (MemoryStream ms = new MemoryStream())
// {
// pdfDoc.Save(ms);
// pdfData = ms.ToArray();
// }
// }
Please use the link that we shared in our previous message to download the DLLs that support .NET Framework 4.x and use them instead of downloading the API from NuGet Gallery.
In case issue still persists please share some details of your environment and share some steps to reproduce the issue so that we can test the scenario in our environment and address it accordingly.
Please use the link that we shared in our previous message to download the DLLs that support .NET Framework 4.x and use them instead of downloading the API from NuGet Gallery.
In case issue still persists please share some details of your environment and share some steps to reproduce the issue so that we can test the scenario in our environment and address it accordingly.