adds head and compresed pdfs