Defect 3234 - Aspose Pdfa1B Size larger than Adobe

Using .Net Aspose.pdf.dll

the production of a PDFA1B file (from a pdf) give a file larger that the Adobe PDFA1B generated file

the used code is
using (MemoryStream ms = new MemoryStream())
bool result = PdfFile.Convert(ms, Aspose.Pdf.PdfFormat.PDF_A_1B, Aspose.Pdf.ConvertErrorAction.Delete);
Aspose.Pdf.Document.OptimizationOptions opt = new Aspose.Pdf.Document.OptimizationOptions();
opt.RemoveUnusedObjects = true;

opt.RemoveUnusedStreams = true;
opt.LinkDuplcateStreams = true;

if (!result)
ConverterMessage myConvertMessage = ConverterMessage.CSCT_E_006;
throw new ConverterException(myConvertMessage, null);

joined the 3 files

could you precise why such a size different (more than x10)
AOT-A22L002-17-00._source.pdf (50.0 KB)
AOT-A22L002-17-00_20171107_172626_adobe.pdf (126.8 KB)
AOT-A22L002-17-00.pdf (1.9 MB)


Thanks for contacting support.

We have managed to observe the unusual increase of size of the generated output, while testing the scenario with Aspose.Pdf for .NET 17.11. However, we have logged an issue as PDFNET-43819 in our issue tracking system, for the sake of detailed investigation. We will further look into the details of the issue and keep you updated with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.