Facing problem trying to convert a pdf file to pdf-a

Hi,

Aspose.PDF 7.3.0.0

I use the following to convert a scaned pdf file (image only) to pdf-a.

Private Sub ConvertPdftoPdfA(ByVal inputFile As String)

'open document

Dim pdfDocument As New Aspose.Pdf.Document(inputFile)

'Convert to PDF/A compliant document

If pdfDocument.Convert(My.Computer.FileSystem.SpecialDirectories.MyDocuments + "\Pdf-A Konvertierung.xml", Aspose.Pdf.PdfFormat.PDF_A_1B, Aspose.Pdf.ConvertErrorAction.None) Then

My.Computer.FileSystem.DeleteFile(inputFile)

pdfDocument.Save(inputFile)

End If

I get an error file with the following information:

<

Compliance Name="Log" Operation="Validation" Target="PDF/A-1B"><Version>1.0</Version><copyright>Copyright (c) 2001-2012 Aspose Pty Ltd. All Rights Reserved.</copyright><Date>24.09.2012 17:23:51</Date><file Version="1,4" Name="test.pdf" Pages="2"><Catalog><objects /><xObjects /><actions /><Header /><Annotations /><Fonts /><trailer /><Metadata><Problem Severity="Error" Clause="6.7.11" Convertable="True">Required property 'pdfaid:part' for schema 'pdfaid' missing</Problem><Problem Severity="Error" Clause="6.7.11" Convertable="True">Required property 'pdfaid:conformance' for schema 'pdfaid' missing</Problem></Metadata></Catalog></file></Compliance>

Convertible = True but not convertible?!?

I have no idea what that means. Is there a usable function to convert a pdf file to pdf-a ?

Thanks,

Daniel

End Sub

v

Hi Daniel,

Thank you for sharing the details.

Please share your sample PDF file with us to further test the issue at our end. This will help us identify the cause soon and reply you accordingly.

Sorry for the inconvenience,

Hi,

the files are attached.

Thanks,

Daniel

Hi Daniel,

Thank you for sharing the files.

I checked your shared file and also tested the conversion of PDF to PDF/A and it is showing that the file is converted to PDF/A (file is shown as PDF/A when I open it in Adobe Acrobat X). Regarding the log xml file, it has listed the problems / errors which were found in the conversion but they did not cause any issue in the conversion of the PDF file (as convertible is shown as “true”).

If your requirement is different or I am not able to understand your exact issue, please do share some more details so we can provide you the details accordingly.

Sorry for the inconvenience,

Thank you,

I didn´t understand the error lines and I was not shure if the conversion was successful.

But as you wrote, if opened in Adobe Acrobat X everything is fine.