This demo shows you how to delete all but the first page of a PDF document and save the complete document.
ONLY USE THIS LOGIC IF YOU KNOW THE PDF DOCUMENT AND THE DELETED PAGES ARE NOT REFERENCED INTERNALLY