Utilities for testing PDF