Hello,
We have an exception when make a conversion PDF to PDFA 1B with file Polices_21.4.pdf.
Could you give me an advice for make transformation?
My code is :
try
{
Document inputfile = new Document(@"D:\POC\Polices_21.4.pdf");
bool result = inputfile.Convert(new MemoryStream(), 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;
inputfile.OptimizeResources(opt);
inputfile.Save(@"D:\POC\OutputFile_Police_PDF2PDFA.pdf");
}
catch(Exception ex)
{
}
regards
Maxime