codepdf looks at environment to customize behavior