PDF Version Reading

uiautomation
studio

#1

Hi ,

I want to retrieve the PDF version in UI path.Can anyone help us.

Thanks in Advance


#2

hey @harireddy

pdf version means the installed pdf software product version on your sytem?

Regards…!!
Aksh


#3

yes,
the main requirement is check pdf version from properties panel and if it is greater that 1.4 we show display the message in log file.


#4

Thanks for your reply…

Pdf version means pdf file version


#5

Hi @harireddy
According to Adobe/ISO PDF specification, PDF first line means pdf version.
e.g %PDF-1.4


Therefore, if you read a first line from your PDF file, you can get PDF version number.
For Example, I created a small invoke code, it works fine.
pdf2


#6

Is it ok to do it like this?

using a click method go to file/properties and read PDF version.