Converting PDF to PDFA inflates file Size from 63KB to over 10MB

Hi,
when converting specific PDF Files to PDFA, the resulting PDF File grows very large. In the given example, a 63KB File results in a over 10MB File. When converting the PDF with Adobe, the resulting File is just 550KB big. This happens with numerous files in our product, leading to a much higher disc space usage than need to be.

Is there some setting we are missing or is this a case which can be improved in Aspose? I fiddled around with the Optimization Options with no positive result.

Steps to Reproduce:

Prepare:

Code:

  [Test]
  public void AsposeReproduction()
  {
    var testFilePath = @"Path to OriginalFile.pdf";
    var outputFilePath = @"Path to Output File";
    var licenseName = @"License Name";

    var license = new License ();
    license.SetLicense (licenseName);

    using (var inputStream = File.Open (testFilePath, FileMode.Open))
    {
      using (var outputStream = File.Open (outputFilePath, FileMode.OpenOrCreate))
      {
        using (var doc = new Document(inputStream, false))
        {
          var logFileName = Path.GetTempFileName();
          var convertOptions = new PdfFormatConversionOptions(logFileName, PdfFormat.PDF_A_1B, ConvertErrorAction.Delete);
          doc.Convert(convertOptions);
          doc.Save(outputStream);
        }
      }
    }
  }

Additional Information:

  • ConvertedFile_Adobe.pdf (549.4 KB)
  • Note that i cannot attach the converted File from Aspose, as it exceeds the File Size Limit of this forum

@florian.decker

We have logged this problem in our issue tracking system as PDFNET-52179. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.