Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12171

Reading a tabular data from a PDF file and uploading the contents to SQL database

$
0
0

I used Smalot/pdfparser to read the pdf and upload the table contents to SQL database. I created a table in the database with respective required columns. When I created a table with singular whitespaces after every cell and only 1 value in the cell (like only first_name, instead of first_name + last_name), I was able to use 'single-space' delimiter to seperate the cells. But when using a pre made table which might not have whitespaces to seperate and also had 2 values in the cell, I am not able to seperate/split the columns while using "preg_split() or explode()" function.

I want to know if there is some better way I can use delimiters to parse the table as to extract the table and upload it to SQL.

This is my first time asking questions here so please do not mind if there's some mistake with the question.

I was expecting the columns to split but multiple of them got included in the same column in the database.


Viewing all articles
Browse latest Browse all 12171

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>