Extract Text from a PDF document (using PDFKit)

This demo allows you to upload a PDF document and get a textual representation of the document. The implementation is surprisingly simple: We are using PDFKit to create a PDFDocument. We then iterate through the pages (PDFPage) of the document and get the -attributedString from each page. We join those attributed strings together and then convert it to HTML with a single method call.

Select a PDF Document: