Change how po api checks for pdf