Convert from PDF to PDF/A

Hello,
This document (attachment) we don’t convert from PDF to PDF/A using yours library Aspose.PDF for .Net. This document contains layers.
Error message is „An item with the same key has already been added“.
Look if you have not mistake.
Thank you
attachment.pdf (1002.2 KB)

@CNS_Developer

Thanks for contacting support.

We tested the scenario using Aspose.PDF for .NET 19.3 and following code snippet. We were unable to notice the exception that you shared. However, we noticed that output PDF showed error dialog about bad width font while opening in Adobe Reader and blue compliance bar was also not appearing.

Document pdfDocument = new Document(new FileStream(dataDir + "attachment.pdf", FileMode.Open));
// Convert 
pdfDocument.Convert(new MemoryStream(), PdfFormat.PDF_A_1A, ConvertErrorAction.None);//, ConvertTransparencyAction.Mask);
// Save output document
pdfDocument.Save(dataDir + "out_pdfab.pdf");

out_pdfab.pdf (1002.4 KB)

We have logged observed issue under the ticket ID PDFNET-46133 in our issue tracking system. We will further investigate the reasons behind this issue and keep you posted with the status of its correction. Please spare us little time.

We are sorry for the inconvenience.

Hello,
I was testing conversion to others format and only conversion to PDF_A_1A not throwing an exception.
In other cases conversion ended with mentioned error. Our required output format is PDF_A_2B.
Best regards.

@CNS_Developer

We were able to reproduce the mentioned exception in our environment and logged it under a separate ticket i.e. PDFNET-46142 in our issue tracking system. We will look into it and let you know as soon as there are some updates about issue rectification. Please be patient and spare us little time.

We are sorry for the inconvenience.

Hello,
We’ve found another problem with file, which might be similiar to PDFNET - 46142. It doesnt show any error but conversion is invalid to any of PDF/A - xB format.
Output from your log:

Non-symbolic TrueType font ‘LinotypeUnivers-430Regular’ contains Encoding entry with Differences array which is prohibited for these kinds of fonts
Font “Linotype Univers 430 Regular” contains table “LINO” which can’t be used in this PDF format
Font “Linotype Univers 630 Bold” contains table “LINO” which can’t be used in this PDF format

I tried to validate file which was converted to PDF/A - 2B format using your library at online pdf/a validator and there are outputs:

0:Validating file temp/737feb033d8dbf86200f123587e4964536388888a58aae7fa3dd937f99e35a36
1:“temp/737feb033d8dbf86200f123587e4964536388888a58aae7fa3dd937f99e35a36”, 0, 10, 0x8341052B, “The required XMP property ‘pdfaid:part’ is missing.”, 1
2:“temp/737feb033d8dbf86200f123587e4964536388888a58aae7fa3dd937f99e35a36”, 0, 10, 0x8341052B, “The required XMP property ‘pdfaid:conformance’ is missing.”, 1
3:“temp/737feb033d8dbf86200f123587e4964536388888a58aae7fa3dd937f99e35a36”, 0, 10, 0x8341053E, “The XMP property ‘xmp:CreatorTool’ is not synchronized with the document information entry ‘Creator’.”, 1
4:“temp/737feb033d8dbf86200f123587e4964536388888a58aae7fa3dd937f99e35a36”, 0, 10, 0x8341053E, “The XMP property ‘xmp:ModifyDate’ is not synchronized with the document information entry ‘ModDate’.”, 1
5:“temp/737feb033d8dbf86200f123587e4964536388888a58aae7fa3dd937f99e35a36”, 0, 10, 0x8341053E, “The XMP property ‘pdf:Producer’ is not synchronized with the document information entry ‘Producer’.”, 1
6:“temp/737feb033d8dbf86200f123587e4964536388888a58aae7fa3dd937f99e35a36”, 0, 10, 0x80410604, “The key MarkInfo is required but missing.”, 1
7:“temp/737feb033d8dbf86200f123587e4964536388888a58aae7fa3dd937f99e35a36”, 0, 10, 0x0041060B, “The key Lang is recommended.”, 1
8:“temp/737feb033d8dbf86200f123587e4964536388888a58aae7fa3dd937f99e35a36”, 0, 10, 0x0041060B, “The key StructTreeRoot is recommended.”, 1
9:“temp/737feb033d8dbf86200f123587e4964536388888a58aae7fa3dd937f99e35a36”, 1, 24, 0x0041060B, “The key Metadata is recommended.”, 2
10:“temp/737feb033d8dbf86200f123587e4964536388888a58aae7fa3dd937f99e35a36”, 1, 0, 0x83410612, “The document does not conform to the requested standard.”, 1
11:Done.
12:

  1. Validator:
    Validating file temp/92ceb56201c0caba6a33c29f4657a72972c46abe8d237dbadde178b783fe351b.
    “temp/92ceb56201c0caba6a33c29f4657a72972c46abe8d237dbadde178b783fe351b”, 0, 10, 0x0A09C884, “xmp:CreateDate :: Wrong value type. Expected type ‘Date’.”, 1
    “temp/92ceb56201c0caba6a33c29f4657a72972c46abe8d237dbadde178b783fe351b”, 0, 10, 0x8341052B, “The required XMP property ‘pdfaid:part’ is missing.”, 1
    “temp/92ceb56201c0caba6a33c29f4657a72972c46abe8d237dbadde178b783fe351b”, 0, 10, 0x8341052B, “The required XMP property ‘pdfaid:conformance’ is missing.”, 1
    “temp/92ceb56201c0caba6a33c29f4657a72972c46abe8d237dbadde178b783fe351b”, 0, 10, 0x0341053E, “The XMP property ‘xmp:CreatorTool’ is not synchronized with the document information entry ‘Creator’.”, 1
    “temp/92ceb56201c0caba6a33c29f4657a72972c46abe8d237dbadde178b783fe351b”, 0, 10, 0x0341053E, “The XMP property ‘xmp:CreateDate’ is not synchronized with the document information entry ‘CreationDate’.”, 1
    “temp/92ceb56201c0caba6a33c29f4657a72972c46abe8d237dbadde178b783fe351b”, 0, 10, 0x0341053E, “The XMP property ‘xmp:ModifyDate’ is not synchronized with the document information entry ‘ModDate’.”, 1
    “temp/92ceb56201c0caba6a33c29f4657a72972c46abe8d237dbadde178b783fe351b”, 0, 10, 0x0341053E, “The XMP property ‘pdf:Producer’ is not synchronized with the document information entry ‘Producer’.”, 1
    “temp/92ceb56201c0caba6a33c29f4657a72972c46abe8d237dbadde178b783fe351b”, 0, 10, 0x00418604, “The key MarkInfo is required but missing.”, 1
    “temp/92ceb56201c0caba6a33c29f4657a72972c46abe8d237dbadde178b783fe351b”, 0, 10, 0x0041060B, “The key Lang is recommended.”, 1
    “temp/92ceb56201c0caba6a33c29f4657a72972c46abe8d237dbadde178b783fe351b”, 0, 10, 0x0041060B, “The key StructTreeRoot is recommended.”, 1
    “temp/92ceb56201c0caba6a33c29f4657a72972c46abe8d237dbadde178b783fe351b”, 1, 24, 0x0041060B, “The key Metadata is recommended.”, 2
    “temp/92ceb56201c0caba6a33c29f4657a72972c46abe8d237dbadde178b783fe351b”, 1, 0, 0x83410612, “The document does not conform to the requested standard.”, 1
    Done.

Unfortunately we cannot share the file due to legal aspects.

@CNS_Developer

Thanks for sharing further details.

We have logged the details with the issue and will definitely consider it during investigation. We will let you know if any update is available in this regard. Please spare us some time.

Hi,
how it looks with this issue?

Thank you for your support.

@CNS_Developer

We are afraid that earlier logged tickets are not yet resolved. They are currently under the investigation phase and as soon as it is completed, we will share updates with you. Please give us some time.

We apologize for the inconvenience.

The issues you have found earlier (filed as PDFNET-46142) have been fixed in Aspose.PDF for .NET 25.2.