save pdf_encoding_state