gersuccess.blogg.se

Converting docx to pdf
Converting docx to pdf










converting docx to pdf

So command line export PDF to plain text will look like this for the first page, where a number of issues with plain text become apparent, the major hurdle is word order can often be wrong at strategic input/output points. The closest I know is far from perfect but possibly can be bettered. Ok I am told that for word output to PDF then importing to MS Word is likely to give best results, but PHP itself is not an MSOffice User Workstation.Ĭomments and installation feedback from ,are at the end. Please let me know if you have any idea how can I add each page of the book to the database separately (as a new row in the pages table!), no matter what format I have to use, docx, pdf, txt, etc! Here is the link for a real data sample in pdf format. They are written in Persian and Arabic which is a right-to-left language (please see bellow screenshot). I even tried to read pages from the PDF file, but it returns weird characters that are not readable! I have to add the books are not written in English.

converting docx to pdf converting docx to pdf

I couldn't find any specific library in Laravel/PHP to do that for me, so I tried to unzip the Docx file and look for a specific separator to detect pages based on that, but apparently, there is no such thing! To add a book to my application, I want to be able to upload the docx file of the book, then extract its content page by page, and add it to the database separately. I have an online library application that allows users to search the content of books by keywords.












Converting docx to pdf