specs for pdf_writer and related fixes