Long screenshot to PDF

Cut a long screenshot or tall picture into paper-sized PDF pages, without slicing lines of text in half.