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