working pdf, before cleanup