Use the correct local variables in the PDF export. #6382
Contributed by Felix Schäfer
Authored by: edavis10 2010-09-20
Parent: [r4103]
Child: [r4105]