Some initial work

Now it is capable of generating empty pdf file