The pdftextfunction renders all textboxes on a text canvas and returns a character vector of equal length to the number of pages in the PDF file. Mortal kombat xl costumes. On the other hand, pdfdata is more low level and returns one data frame per page, containing one row for each texbox in the PDF.