PDF cleanup