mgufrone / pdf-to-html

PDF to HTML PHP Class using Poppler-Utils
MIT License
176 stars 89 forks source link

Not working with wamp #2

Closed sunnypatial closed 9 years ago

sunnypatial commented 9 years ago

Hi Sir,

I am using wampserver. I am going to convert PDF to HTML. i am using your script but its not working. My PHP version is 5.5.12 I am using following extensions for this. extension=libfreetype-6.dll extension=libgcc_s_sjlj-1.dll extension=libjpeg-8.dll extension=liblcms2-2.dll extension=liblzma-5.dll extension=libopenjpeg-1.dll extension=libpng15-15.dll extension=libpoppler-28.dll extension=libpoppler-cpp-0.dll extension=libstdc++-6.dll extension=libtiff-5.dll

Please suggest how can i resolve it. Thanks.

mgufrone commented 9 years ago

Unfortunately, this package is only available in *nix OS. I believe WAMP is in Windows, so sorry. Till right now, this package can fulfill what you need. I only test this package in Ubuntu.

sunnypatial commented 9 years ago

Hi Sir,

Thanks, for your response. I used Linux system and now its working fine. I have got HTML code in the following format.

[bold tag] Scott [/close bold tag][break tag /] [bold tag] Scott & Borcher [/close bold tag][break tag /] [bold tag] The Le Companies [/close bold tag][break tag /] [bold tag] Pittsburg [/close bold tag][break tag /]

I have a query here: Can i get "top" and "left" margin as well in the bold tag. Because that would be more helpfull for me.

For eg: [bold tag top="100" left="20"] Scott [/close bold tag][break tag /]

Thanks.

sunnypatial commented 9 years ago

Hi Sir,

Please suggest me on the above issue. I can pay you for this. Please reply me asap.

Thanks.

mgufrone commented 9 years ago

can you send me your pdf you are trying to convert to? btw i didn't get it by what you mean : "Can i get "top" and "left" margin as well in the bold tag."

Mind to make it more clear?

sunnypatial commented 9 years ago

Hi Sir,

Thanks for your response.

Please have a look following PDF file http://1stbadges.com/pdfs/Badges995.pdf

I want to convert this PDF to HTML

Here you can see 3 rows(Louis, Louis Banda, PittsBurg) in the First page of the PDF. and 4 rows(Harrison, Harrison Barnes, The Warriers, San Francisco) in the Second page of the PDF.

I want to know the top and left margin of all the 3 and 4 rows.

Please have a look, Is this possible for us to get margin properties..

Thanks.

zealfire commented 9 years ago

@mgufrone do u plan to port this to windows? I urgently need a tool like this so in case u know any similar tool which may work for windows please tell me, it would be helpful. Thanks

zealfire commented 9 years ago

@sunnypatial do u know any library or tool which converts PDF to HTML using php? Please share if u know. Thanks.

mgufrone commented 9 years ago

I'm still looking for poppler-utils for windows. If i can, i will make this package support on windows

mgufrone commented 9 years ago

Hai @zealfire, I've updated readme files for windows user like you. Please check it out at https://github.com/mgufrone/pdf-to-html. I've already test it in my local and it works like a charm