We receive PDF files from verious sourses. They are different versions, 1.4, 1.3,etc. I want to convert each file received to a consistant PDF format of 1.7 or PDF_A_1B.
For Example:
A pdf file comes in and it is a version 1.3 with compression of 6.
I want to change it to version PDF_A_1B with compression of 7.
Can you please advise the simple code that this must take and which of the libraries it uses.
Can you show examples useing a string and memorystream please.
I am pleased to share that Aspose.Pdf for .NET supports the feature to save PDF file into PDF/A format and also it supports the capability to change PDF file version. Please visit the following link for further information on Convert PDF File to PDF-A
In order to change the PDF file version, please use any value from PdfFormat enumeration and use similar code as shared on above link.
I am afraid the requested feature to change the compression level of existing PDF file is
currently not supported but for the sake of implementation, we already have logged this
requirement in our issue tracking system under New Features list as <span style=“font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:“Arial”,“sans-serif”;
mso-fareast-font-family:SimSun;mso-fareast-language:ZH-CN”>PDFNEWNET-30805. We will further investigate this requirement
in details and will keep you updated on the status of a correction.