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:
- OriginalFile.pdf (62.1 KB)
 - Latest Aspose.Net Package (I tested with NuGet Gallery | Aspose.PDF 23.10.0 Version 22.7.0)
 - License File (The license has to be set. Without the license, there is an Exception thrown on conversion)
 
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