Validate PDF version using Aspose

Hi ,

Please guide me the way if there is any provision to Validate PDF version using Aspose?

Thanks,
Shilpi

Hi Shilpi,


Thanks for contacting support.

From PDF version validation, do you mean getting information related to PDF file version ? if so is the case, then please try using following code lines.

[C#]

Document document = new Document(“c:/pdftest/ProcessParagraphsIssue.pdf”);<o:p></o:p>

// get PDF file version information

Console.WriteLine(document.Version);

You can also change PDF version information using following code snippet.

[C#]

// change PDF file version

document.Convert("c:/pdftest/Conversionlog.txt", PdfFormat.v_1_5,ConvertErrorAction.Delete);

// save updated file

document.Save("c:/pdftest/PDF_v1_5.pdf");