Convert PDF to PDF/A3u
Posted: Tue Mar 16, 2021 2:16 pm
Hi,
We have a PDF document generated by MS Word. The conformance level is PDF A3-A.
We are obliged to provide PDF A3u.
If I verify the document with "PdfDocumentConformance.PdfA_3u" the result is "true", even though the claimed level is A3-A.
If I do convert the file to A3u the result is still A3-A.
It seems that everything conforms to A3u but only the conformance level refers to A3-A.
How can I make the conformance level property also become A3u?
Verify code:
Convert code:
We have a PDF document generated by MS Word. The conformance level is PDF A3-A.
We are obliged to provide PDF A3u.
If I verify the document with "PdfDocumentConformance.PdfA_3u" the result is "true", even though the claimed level is A3-A.
If I do convert the file to A3u the result is still A3-A.
It seems that everything conforms to A3u but only the conformance level refers to A3-A.
How can I make the conformance level property also become A3u?
Verify code:
Code: Select all
private static int VerifyDocument(System.IO.Stream stream) {
PdfDocumentVerifier verifier = PdfAVerifier.Create(PdfDocumentConformance.PdfA_3u);
using (ProcessingState state = new ProcessingState()) {
using (VerificationProfileResult result = verifier.Verify(stream, state)) {
if (result.IsPassed) {
//passed A3-A
return 0;
} else {
//...
}
}
}
return -1;
}
Code: Select all
private static int ConvertDocument(System.IO.Stream stream) {
PdfDocumentConverter converter = PdfAConverter.Create(PdfDocumentConformance.PdfA_3u);
using (ProcessingState state = new ProcessingState()) {
using (ConversionProfileResult result = converter.Convert(stream, state)) {
if (result.IsSuccessful) {
//Successful but still A3-A
return 0;
} else {
//...
}
}
}
return -1;
}