fix #831 - don't attempt to expand pdfs