pdf boolean fix