book controller fix for pdf on resources