I have a PDF file containing thousands of entries like userId,userName etc.
Is there any way to insert these into a MySQL database?
            Asked
            
        
        
            Active
            
        
            Viewed 2,832 times
        
    0
            
            
         
    
    
        jotik
        
- 17,044
- 13
- 58
- 123
 
    
    
        Md Safdar Khan
        
- 17
- 1
- 8
- 
                    Can you break this out into a CSV file? – tadman May 02 '16 at 07:46
2 Answers
1
            
            
        You Actually can not import data from a PDF file
An work around is to convert the file to an excel and importing from it
- To convert pdf to excel
https://www.freepdfconvert.com/pdf-excel
- To Import data from excel to Database
 
    
    
        Community
        
- 1
- 1
 
    
    
        Andrews B Anthony
        
- 1,381
- 9
- 27
0
            
            
        If it's a one-off file you can copy and paste the contents into excel, save as CSV and import into you mysql table.
You can also parse it, there's plenty of libraries to convert pdf data into text, which such text can be then further parsed and inserted into your table.
If you need to do it in mass, then I suggest get a mass converter like this pdf to mysql indexer, then parse the indexed data into structured content.
 
    
    
        Oliver M Grech
        
- 3,071
- 1
- 21
- 36