PDF generator was ignoring format.
Merge pull request #224 from stan-rnao/pdf-format-fix

PDF generator was ignoring format.