Exportpdf

use scope for where conditions