I need to convert a normal PDF document into a PDF A/1A
I have tried to do it in the following way but the resulting document gives me problems when incorporating a digital signature and then doing a “save as” from the acrobat reader (the signature indicates that the document was modified, that is, it is broken).
Dim doc As New Aspose.Pdf.Document(“c:\pdf\originalNotA.pdf”)
Dim options As New Aspose.Pdf.PdfFormatConversionOptions(Aspose.Pdf.PdfFormat.PDF_A_1A, Aspose.Pdf.ConvertErrorAction.Delete)
doc.Convert(options)
doc.Save(“c:\pdf\resultA1A.pdf”)
Is there a way to do the conversion from normal pdf to pdf A/1A without using the convert instruction?
I need to convert a normal PDF document into a PDF A/1A
I have tried to do it in the following way but the resulting document gives me problems when incorporating a digital signature and then doing a “save as” from the acrobat reader (the signature indicates that the document was modified, that is, it is broken).
Dim doc As New Aspose.Pdf.Document(“c:\pdf\originalNotA.pdf”)
Dim options As New Aspose.Pdf.PdfFormatConversionOptions(Aspose.Pdf.PdfFormat.PDF_A_1A, Aspose.Pdf.ConvertErrorAction.Delete)
doc.Convert(options)
doc.Save(“c:\pdf\resultA1A.pdf”)
Is there a way to do the conversion from normal pdf to pdf A/1A without using the convert instruction?
Could you please attach your input PDF, problematic output along with screenshot of issue that you are facing?
Please share all steps that you are following to reproduce the same issue at our end. We will investigate the issue and provide you more information on it.
The digitally signed pdfA/1A. (OriginalA1A_Signed.pdf)
The pdfA/1A after doing “Save As” in which the signature appears broken. (OriginalA1A_SignedSaveAs.pdf)
The code used to convert from pdf to pdf/A is as follows.
The problem is that if I open the signed document and do “Save As” from Acrobat Reader, the signature is corrupted because it tells me that the document has been modified.
You are using old version of Aspose.PDF for .NET. We suggest you please upgrade to the latest version of Aspose.PDF for .NET 22.8 and let us know how it goes on your side.
If you still face problem, please share the code (source code without compilation errors ) to generate OriginalA1A_Signed.pdf and OriginalA1A.pdf files. We will use the same code to reproduce the same issue at our end.
Please also share the screenshot of this issue. Thanks for your cooperation.
Hello again
I have downloaded the latest version of Aspose.pdf (22.8.0) and the problem persists.
It seems that it is a bug in the DLL, a bug that has left our document system very damaged.
Unfortunately we are going to have to stop using Aspose and buy another product and advise all our contacts against this product.
All the best
As per our understanding when you incorporate a digital signature into PDF generated by Aspose.PDF and then doing a “save as” from the acrobat reader, the signature is not valid.
To reproduce the issue, we need information how you are incorporating a digital signature either by Aspose.PDF or some other tools or APIs.
If you are using Aspose.PDF, please share the code example along with required files. It is difficult to say what the problem is without complete information and code example. We will investigate the issue and provide you more information on it.
As soon as you get requested pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.
Hello
The steps I do are the following:
1.- I convert a pdf document to pdfA/1A.
To do this I use the convert method of the aspose.pdf dll
Dim LicWord As New Aspose.Words.License()
Dim LicPdf As New Aspose.Pdf.License()
LicWord.SetLicense(“C:\Aspose\Aspose.Words.lic”)
LicPdf.SetLicense(“C:\Aspose\Aspose.Pdf.lic”)
Dim PdfDocument As New Aspose.Pdf.Document(FicheroOrigen)
LogTemporal = Mi_C & “\log” & Format(Now, “yyyyMMddHHmmssfffff”) & “.xml”
PdfDocument.Convert(LogTemporal, Aspose.Pdf.PdfFormat.PDF_A_1A, Aspose.Pdf.ConvertErrorAction.Delete)
PdfDocument.Save(FicheroDestino)
2.- I sign the document with my digital certificate through the website of our signature service provider (Basque Country - Spain) https://servicios.izenpe.com/herramientasFirma/mostrarFirmarDocumentosLote.do
3.- I open the resulting document and save as from Acrobat Reader.
At this point the signature is corrupted.
If the passage from Pdf to PdfA/1A is done with Microsoft word, the problem does not exist.
We have logged an investigation ticket for your case in our issue tracking system as PDFNET-52376. You will be notified via this forum thread once this issue is resolved.
We’ve made a number of improvements for the PDF/A conversion during 2023 and 2024. As we don’t have valid credentials for the Izenpe service, we’re unable to confirm whether the problem still persists, but when we use the 24.5 version of the library in the following scenario:
Convert the “Original.pdf” to PDF/A-1a with the Aspose.PDF 24.5 (Will be releasing soon) Document.Convert() method
Sign the PDF/A-1a document with the Aspose.PDF 24.5 PdfFileSignature.Sign() method
Open the signed document with the Adobe Acrobat and resave it using the “Save As…” command
– the file re-saved via Adobe keeps its signature intact.
Please check their case with a current version of the Aspose.PDF library and the Izenpe service. If the problem still persists, please provide any file that doesn’t have this problem, both before sign and signed.