draft implementation of arbitrary PDF