PDF conversion to app

Hi, all! Total newb here, FYI. I’m developing an app to help users easily search for information pertaining to maritime regulations, particularly on safety in the LSA Code. Is it possible to dissect the text in a pdf into an app to make it easily searchable?

Hello @seapete, I haven’t tried this method yet. I’ll try to look for a solution and share it with you. This is something I want to learn. :sweat_smile:

I’ll get back to you as soon as possible.

Thank you so much!

Hi Both,

I have seen a great tutorial from Paul Hudson showing how to extract text from the pdf file using PDFKit. I believe that’s where to start at isn’t it. And probably you might need a scroll view reader to be able to programmatically scrolled to a certain index.

Here is the link to the above said tutorial:
https://www.hackingwithswift.com/example-code/libraries/how-to-extract-text-from-a-pdf-using-pdfkit

In case the said document is an image you need to some sort of an OCR functionality to be able to extract the text, and here is anther good tutorial to go through for OCR:

Hope that helps

Thank you so much!!!