Add PDF utility used in tests