pdf: use magic for PDF checking, too