remove only-used-once error message function
return fail for doc open if there are no pages.
this can happen if a file is incorrectly typed, that is, if a txt file
is masquerading as a pdf file.
add a comment