Hi, we have problem when converting some pdf files to PDF/A-1A format? we have file with 4 pages that consumes 1 GB of memory during conversion if running in windows and up to 4Gb if running in docker container.
Here is code that we use for conversion:
private void Convert()
{
using var inputStream = File.OpenRead("3.pdf");
using var outStream = File.OpenWrite("3_pdf_1a.pdf");
using var pdfDocument = new Aspose.Pdf.Document(inputStream);
var pdfOptions = new PdfFormatConversionOptions(PdfFormat.PDF_A_1A, ConvertErrorAction.Delete);
var convertResult = pdfDocument.Convert(pdfOptions);
pdfDocument.Save(outStream);
}
3.pdf (4.3 MB)
Added file that cause convertions problems.
We are using Aspose.Pdf version 22.3
Also resulting file dit not conform to PDF/A-1A standard:
|File|3_pdf_1a.pdf|
| --- | --- |
|Compliance|pdfa-1a|
|Result|Document does not conform to PDF/A.|
|Details|Validating file "3_pdf_1a.pdf" for conformance level pdfa-1a
The key Type is required but missing.
The value of the key SMask is a dictionary but must be None.
The value of the key SMask is a dictionary but must be None.
The value of the key SMask is a dictionary but must be None.
The value of the key SMask is a dictionary but must be None.
The document does not conform to the requested standard.
The document contains transparency.
The document doesn't provide appropriate logical structure information.
The document does not conform to the PDF/A-1a standard.
Done.|
@Sergej_Kurdyukov
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): PDFNET-54425
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@Sergej_Kurdyukov
Thank you for writing to us.
I set the task of using memory when converting.
Please explain how you checked this.
We used PDF Tools Online - Validate PDF tool, but we have another file, that dose not converting to PDF/A-1A
@Sergej_Kurdyukov
I checked the conformity of the converted file to the PDF / A-1A standard using Adobe Acrobat Preflight - it did not issue any comments.
check_conv_result.png (129.1 KB)