edited pdfout, so no pdf can be generated without log