I found an internal "object reference not set to an instance of an object" exception during PDF/1° conversion by "ToPdfA1A" method.
The exception is throwing on the PdfStandardsConverter from Spire.Office used behind .NET Framework 4.8. (check the image attached which contains stacktrace details )
To replicate the bug i realized a small program which contains essential code lines:
- Code: Select all
internal class Program
{
static void Main(string[] args)
{
using (FileStream readMs = File.OpenRead("doc_001_9.Dich._confl.interessi Capofila.pdf"))
using (MemoryStream writeMs = new MemoryStream())
{
PdfStandardsConverter pdfStandardsConverter = new PdfStandardsConverter(readMs);
pdfStandardsConverter.ToPdfA1A(writeMs);
File.WriteAllBytes("doc_001_9.Dich._confl.interessi Capofila.pdf.pdf", writeMs.ToArray());
}
}
}
Unfortunately in can't share PDF "publicly" for a European GDPR Privacy Policy, but i can share it if you can provide me a private area.
Best regards
Fabrizio