[Bug 30589] PDF transformer: Crash after calculating available space