How to compile this thing in windows

kickapps

Right off the assembly line
It is a windows binary file, if you open it it has a README which clearly mentions the steps

Running pdftohtml
-----------------

To run pdftohtml type :

pdftohtml file.pdf

To produce complex output (most people will want that, probably) :

pdftohtml -c file.pdf

i downloaded and i can tell you need to extract the tarball using winzip/rar/7z, and navigate using command prompt by pushd/popd

now follow the readme above

its already a windows binary, just extarct the tarball and runit through command prompt,

the README details the procedure

*i wonder where does my previous reply went*
 

Vyom

The Power of x480
Staff member
Admin
So basically what nims got was a command line version of pdf2html.
Do give us the review of this tool OP, so that we can know, weather the tool really converts pdf to html!

@kickapps:
Posts are usually deleted, if it contains some links pointing to some illegal apps, or warez links! Or if it is considered spam.
 

kickapps

Right off the assembly line
@kickapps:
Posts are usually deleted, if it contains some links pointing to some illegal apps, or warez links! Or if it is considered spam.

i know warez is a no-no here, i just cant figure what was wrong dat time ,and hey it wasnt spam, i just wrote more detailed step by actually running the executable.

thx for the heads-up though
 
OP
nims11

nims11

BIOS Terminator
@vineet @kickapps seems like my question wasnt clear. i want to compile the source under windows.
i have been using the binary with my ebookreader app for PSP for quite some time and it works nice. the software uses xpdf for its work. the problem is that this software is pretty old and has been compiled along with old version of xpdf. so it doesnt support newer versions of pdfs. i want to compile pdftohtml along with a newer xpdf version. although i have compiled software in LINUX before, but i lack the experience to do the same under windows. hope i am clear this time!! :)

So basically what nims got was a command line version of pdf2html.
Do give us the review of this tool OP, so that we can know, weather the tool really converts pdf to html!

its a nice tool with many options for conversion of pdf to html. i love it because it retains the original layout as in the pdf. sometimes the converted pdfs are not so readable but it does the job for me.
 
Last edited:

kickapps

Right off the assembly line
@kickass seems like my question wasnt clear. i want to compile the source under windows.
i want to compile pdftohtml along with a newer xpdf version. although i have compiled software in LINUX before, but i lack the experience to do the same under windows. hope i am clear this time!! :)

you have got the wrong link, you should get the sources from here
pdftohtml - Browse /pdftohtml/pdftohtml-0.39 at SourceForge.net

and then get the source for XPDF from somewhere you want and put it inside the src folder, it has a ms_make.bat which will link all object files and compile a native windows binary which is what you are after.

hope that helps
 
OP
nims11

nims11

BIOS Terminator
you have got the wrong link, you should get the sources from here
pdftohtml - Browse /pdftohtml/pdftohtml-0.39 at SourceForge.net

and then get the source for XPDF from somewhere you want and put it inside the src folder, it has a ms_make.bat which will link all object files and compile a native windows binary which is what you are after.

hope that helps

i did that already till ms_make.bat. no binaries were created after running that file. i studies the code of ms_make.bat and found that it uses "cl" command(i dont know what it is) which is not installed in my system.

UPDaTE: cl command is something related to VC++

installed VC++ and then ran the ms_make.bat file using visual studio command prompt.
the original source was compiled successfully but when i simply copy-pasted the latest xpdf, the compilation failed... seems like need to go deeper into source code to integrate latest xpdf...
 
Last edited:

kickapps

Right off the assembly line
but when i simply copy-pasted the latest xpdf,

did u download the source code? from that foolabs website? are we on the same page? i did not try with the latest xpdf (3.02) as it is not ported officially to windows.
 
OP
nims11

nims11

BIOS Terminator
^^ i downloaded the source code from sourceforge. it includes the batch file which compiles the files using VC++ under windows.
 
Top Bottom