resource export fix for modified pdf