I am doing pdfinfo
in my system function and I want to only get the page size 612 x 1008
but I am not sure how to parse it out.
my code
output = system("pdfinfo example.docx_ms.pdf")
print "#{output} \n"
x = "612x1008"
puts x
if x == output
puts "yes"
else
puts "no"
end
output
612 x 1008
true