pdf: PDF records were not always being deleted when their file entities were deleted.