#8 Initial fopdf support

This commit adds initial support for fopdf rendering. I will be ammending
this commit later to be cleaner code and contain tests.