Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Reply
 
LinkBack Thread Tools Display Modes
Old 14-04-2011, 07:23 PM   #1 (permalink)
BIOS Terminator
 
nims11's Avatar
 
Join Date: Apr 2008
Location: Ranchi
Posts: 816
Default How to compile this thing in windows


how can i compile this software(pdf2html) in windows.
pdftohtml - Browse /pdftohtml/pdftohtml-0.39 at SourceForge.net
it has windows binary so i am sure it can be compiled under windows. i have never compiled software sources under windows before so please help me out. cant find useful help from google.
nims11 is online now   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 14-04-2011, 08:44 PM   #2 (permalink)
Right Off the Assembly Line
 
Join Date: Apr 2011
Posts: 9
Default

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*
kickapps is offline   Reply With Quote
Old 14-04-2011, 10:53 PM   #3 (permalink)
Stuck in Time...
 
Vyom's Avatar
 
Join Date: May 2009
Location: Land of Logic
Posts: 2,269
Default Re: How to compile this thing in windows

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.
__________________
Marty: Hey, Doc, we better back up. We don't have enough road to get up to 88.
Doc Brown: Roads? Where we're going, we don't need, "roads!" :)

──── On the Internet you can be Anything you want. It's Strange that, so many people choose to be Stupid! ────
Vyom is online now   Reply With Quote
Old 15-04-2011, 12:25 AM   #4 (permalink)
Right Off the Assembly Line
 
Join Date: Apr 2011
Posts: 9
Default Re: How to compile this thing in windows

Quote:
Originally Posted by vineet369 View Post
@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
kickapps is offline   Reply With Quote
Old 15-04-2011, 07:33 AM   #5 (permalink)
BIOS Terminator
 
nims11's Avatar
 
Join Date: Apr 2008
Location: Ranchi
Posts: 816
Default Re: How to compile this thing in windows

@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!!

Quote:
Originally Posted by vineet369 View Post
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 by nims11; 15-04-2011 at 02:08 PM.
nims11 is online now   Reply With Quote
Old 15-04-2011, 10:54 AM   #6 (permalink)
Right Off the Assembly Line
 
Join Date: Apr 2011
Posts: 9
Default Re: How to compile this thing in windows

Quote:
Originally Posted by nims11 View Post
@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
kickapps is offline   Reply With Quote
Old 15-04-2011, 05:25 PM   #7 (permalink)
BIOS Terminator
 
nims11's Avatar
 
Join Date: Apr 2008
Location: Ranchi
Posts: 816
Default Re: How to compile this thing in windows

Quote:
Originally Posted by kickapps View Post
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 by nims11; 15-04-2011 at 02:03 PM.
nims11 is online now   Reply With Quote
Old 16-04-2011, 02:50 PM   #8 (permalink)
Right Off the Assembly Line
 
Join Date: Apr 2011
Posts: 9
Default Re: How to compile this thing in windows

Quote:
Originally Posted by nims11 View Post
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.
kickapps is offline   Reply With Quote
Old 18-04-2011, 02:20 PM   #9 (permalink)
BIOS Terminator
 
nims11's Avatar
 
Join Date: Apr 2008
Location: Ranchi
Posts: 816
Default Re: How to compile this thing in windows

^^ i downloaded the source code from sourceforge. it includes the batch file which compiles the files using VC++ under windows.
nims11 is online now   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:26 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2