Changed @pdf ivar to be a configurable variable instead.