Document PdfFormat returns PDF_A_1A for a non PDF/A file

Hi,
I tried the new version of Aspose.PDF for .NET (18.10) and it returns value PDF_A_1A in PdfFormat parameter of a file which is not na PDF/A but plain PDF 1.4.
Could you please check this.

ThanksB000659939 (1).pdf (103 KB)

@pilscom

Thanks for contacting support.

Would you please share sample code snippet which you have tried in your environment. We will test the scenario in share our feedback accordingly.

VB.NET:
Dim fIsArchiving As Boolean = False
Dim Pdfdocument As New Aspose.Pdf.Document(PathName)
Select Case Pdfdocument.PdfaFormat
Case Aspose.Pdf.PdfFormat.PDF_A_1A, Aspose.Pdf.PdfFormat.PDF_A_1B, Aspose.Pdf.PdfFormat.PDF_A_2A, Aspose.Pdf.PdfFormat.PDF_A_2B, Aspose.Pdf.PdfFormat.PDF_A_3A, Aspose.Pdf.PdfFormat.PDF_A_3B
fIsArchiving = True
End Select
If fIsArchiving Then Console.WriteLine(“The file is marked as PDF/A.”)

I found out that this behaviour occurs since version 18.5

@pilscom

Thanks for sharing sample code snippet.

We have tested it in our environment and observed that it returned PDF_A_1B as PdfFormat. Therefore, we have logged an issue as PDFNET-45639 in our issue tracking system further investigation. We will look into details of the issue and keep you posted with the status of correction. Please spare us little time.

In the mean time, you may please use following code snippet in order to determine PDF Version:

[C#]

var document = new Aspose.Pdf.Document(dataDir + "B000659939 (1).pdf");
Facades.PdfFileInfo fileInfo = new Facades.PdfFileInfo(document);
var version = fileInfo.GetPdfVersion();

We are sorry for the inconvenience.