query for pdf done