Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Inmvalid paramters count for rg operator when converting to pdf/a

$
0
0
I get the following error on a lot of files (I have attached 3 examples) when I try to convert the file to pdf/a using the following code. I'm using version 8.2.0.0 of aspose.pdf.
        private static MemoryStream ConvertPdfToPdfA(Stream inputStream)        {            var outputStream = new MemoryStream();            using (var pdf = new Aspose.Pdf.Document(inputStream))            {                try                {                    pdf.Convert(new MemoryStream(), PdfFormat.PDF_A_2B, ConvertErrorAction.None);                    pdf.Save(outputStream);                    pdf.Dispose();                    return outputStream;                }                catch                {                    pdf.Dispose();                    GC.Collect();                    throw;                }            }        }

Viewing all articles
Browse latest Browse all 3131

Trending Articles