Get text from scanned pdf

Get text from scanned pdf

Anonymous
Not applicable
998 Views
4 Replies
Message 1 of 5

Get text from scanned pdf

Anonymous
Not applicable

Hi, I got a group of pdf files of scanned drawing putting in the same folder. I would like to extract the drawing title for each drawing by VBA and the title is located in the same location of the drawing.

 

Say, all the files are in "C:\user\user\download" and the title is at the right bottom corner of the page. Each file consists of 1 page only.

 

Since installation of VBA for autocad is not allowed in my computer. Probably I have to run the programme in excel.

 

Thanks a lot.

0 Likes
Accepted solutions (1)
999 Views
4 Replies
Replies (4)
Message 2 of 5

Ed__Jobe
Mentor
Mentor

You're facing two major challenges. First, VBA doesn't have any methods to extract info from a pdf. Second, a scanned image/pdf doesn't have any text. It's just pixels.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 3 of 5

Anonymous
Not applicable

I thought I can import the pdf into autocad. Is it possible to turn the text in scanned image into text object through the import?

0 Likes
Message 4 of 5

Ed__Jobe
Mentor
Mentor
Accepted solution

A pdf is sort of like a zip file, it contains other files. In the case of a scanned dwg, the input is an image. It's like taking a photo of the dwg. Inside AutoCAD attaching this type of pdf is like using the IMAGEATTACH command. There is no text to recognize. You can use OCR software on the original image, or utilize Raster Design's OCR capabilities. But the PDFIMPORT command does not convert raster to vector.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 5 of 5

Anonymous
Not applicable

Thanks for your reminding 

 

0 Likes