[pdfToPdfa] size of generated files - INC000005082957

Hello,
when I make the conversion pdf to pdfa, I get a very large file. For a PDF file of 502Ko, I get a pdfa file of 132406 Ko if I use the pdf dll 10.9.0.0

With pdf dll 11.6.0.0, the size is “only” 24744 Ko but I can’t use this dll because of bud PDFNET-41080.

Please, do you have a solution to reduce the pdfa size?
Can you tell me when the PDFNET-41080 will be fixed?

Thanks
Regards

Hi Daniel,

Thanks for your inquiry. Please note fonts are embedded in PDFA file in PDF to PDFA conversion to fulfill PDFA standards and it increases the file size of resultant PDFA. You may optimize PDFA size by deleting unused symbols from embedded fonts. However if the issue persist then please share your sample source document here, we will look into it and will guide you accordingly.

Furthermore in reference to PDFNET-41080, we have recently noticed the issue and it is still pending for investigation. As soon as its analysis is completed then we can share any ETA with you.

com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document("input.pdf");
pdfDocument.convert("Conversion_log.xml", com.aspose.pdf.PdfFormat.PDF_A_1B, com.aspose.pdf.ConvertErrorAction.Delete);

// Save updated document
pdfDocument.save("output.pdf");

// Optimize the file size by removing unused objects
com.aspose.pdf.Document.OptimizationOptions opt = new Document.OptimizationOptions();
opt.setRemoveUnusedObjects(true);
opt.setRemoveUnusedStreams(true);
opt.setLinkDuplcateStreams(true);
pdfDocument.optimizeResources(opt);

// Save the updated file
pdfDocument.save("output_pdfa_optimized.pdf");

We are sorry for the inconvenience.

Best Regards,

The issues you have found earlier (filed as PDFNET-41080) have been fixed in Aspose.Pdf for .NET 16.10.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

hello,

thanks for this good news.

However I have received another message about another topic but with the same PDFNET reference : 41080 : [pdfToPdfA] incorrect pdf orientation - INC000004983855.

This is the real topic for which PDFNET -41080 was open.

So what about the resolution of this item now ?

Best regards

Daniel STEPHAN

Hi Daniel,


Thanks for your feedback. Please convert PDF to PDFA with ConvertTransparencyAction parameter as following. It will resolve the issue.

Document pdf = new
Document(“D:/Downloads/MSN00021.pdf”);

pdf.Convert(@“E:\data\log.xml”,
PdfFormat.PDF_A_1B, ConvertErrorAction.Delete,
ConvertTransparencyAction.Mask);

pdf.Save(myDir + “PDFtoPDFA1b.pdf”);


Best Regards,