This will create a document using DocRaptor with every major PrinceXML version supported and then inspect the output for metadata verifying the version used to produce the document.
git clone https://gist.github.com/20e14b83c994b2378d76.git docraptor-version-test
cd docraptor-version-test
bundle install
ruby version_test.rb
grep -a Producer *.pdf
With any luck, the output of the grep command should be:
version-10.pdf:<</Producer (Prince 10 rev 2 \(www.princexml.com\))>>
version-7.1.pdf:<</Producer (Prince 7.1 \(www.princexml.com\))>>
version-8.1.pdf:<</Producer (Prince 8.1 rev 5 \(www.princexml.com\))>>
version-9.0.pdf:<</Producer (Prince 9.0 rev 5 \(www.princexml.com\))>>
version-nil.pdf:<</Producer (Prince 10 rev 2 \(www.princexml.com\))>>
The version-nil.pdf
may not match as it relies on your account's default PrinceXML version.