feature: expose pdfdoc if requested

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>