Free Support Forum -

File size increasing while converting from pdf to pdf/A


When I am converting PDF to PDF/A, the size is increasing from 14 KB to 1859 KB, we are using License version “”,
Attached are the Image

Please find My Code Snippet

public static string ConvertPdfToPdfA(string file, string fileName, string destinationFolder)
var pdfADoc = new Aspose.Pdf.Document(file);
pdfADoc.Convert(“log.xml”, PdfFormat.PDF_A_1B, ConvertErrorAction.Delete);

pdfADoc.OptimizeResources(new Document.OptimizationOptions()
RemoveUnusedObjects = true,
RemoveUnusedStreams = true,
CompressImages = true,
UnembedFonts = false,
LinkDuplcateStreams = false,
ImageQuality = 10
pdfADoc.Save(destinationFolder + “\” + fileName + “.pdf”);
return destinationFolder + “\” + fileName + “.pdf”;
catch (Exception exception)

return string.Empty;



Srikant Bal

Hi Srikant,

Thanks for your inquiry. We have tested the scenario with Aspose.Pdf for .NET 10.5.0 and managed to observe the size increasing issue. It seems file size is being increased due to embedded fonts. However, we have logged a ticket PDFNEWNET-38925 in our issue tracking system for further investigation and resolution. We will keep you updated about the issue resolution progress.

We are sorry for the inconvenience caused.

Best Regards,

We have the same problem with converting HTML-files to PDF/A-1b.

Best Regards,
Silje Hansen
Gecko AS

Hi Silje,

Thanks for your inquiry. Please note normally issue varies from document to document. We will appreciate it if you please share your sample code and HTML file here. So we will test it and provide you information accordingly.

We are sorry for the inconvenience caused.

Best Regards,