use enhanced for loops

For #9
Use enhanced for loops

... in swing and pdf modules

for #9
Merge pull request #11 from UprootLabs/cleanup2

Use enhanced for loops. Looks good, thanks.