Remove the old gen-pdf function.