4 ms·
Hello, I'm the author. MATHML is not used. PDF is rendered with only HTML/CSS, and a few JS. Please comment at github such that I can see it in time.
by coolwanglu 14y ago
Hello, I'm the author.
MATHML is not used.
PDF is rendered with only HTML/CSS, and a few JS.
Please comment at github such that I can see it in time.
- mgualt 14y agoAmazing - I am attempting to install this on mac osx lion -- it is taking a lot of time because of the dependencies. With so many dependencies the probability of failure is very high. Let's hope it works. I urge you to find a way to allow people to install your software more easily. I managed to get it to install (after about an hour and a half of tinkering. However I get "Segmentation fault" when I try running it: pdf2htmlEX --debug=1 test.pdf temporary dir: /tmp/pdf2htmlEX-LY9cOv Preprocessing: .... Working: Add new temporary file: /tmp/pdf2htmlEX-LY9cOv/__css Add new temporary file: /tmp/pdf2htmlEX-LY9cOv/__pages Add new temporary file: /tmp/pdf2htmlEX-LY9cOv/p1.png Install font: (29 0) -> f1 Add new temporary file: /tmp/pdf2htmlEX-LY9cOv/f1.pfa Segmentation fault: 11
- tincholio 14y agosudo apt-add-repository ppa:coolwanglu/pdf2htmlex sudo apt-get update sudo apt-get install pdf2htmlex I haven't yet tried to build on mac os, but in ubuntu it was trivially simple.
- coolwanglu 14y agoThe problem is that I don't have a machine with Mac. Which version of fontforge have you installed?
- mgualt 14y agoThis is what fontforge displays when I start it up: Executable based on sources from 14:57 GMT 31-Jul-2012-D. Library based on sources from 14:57 GMT 31-Jul-2012.
- coolwanglu 14y agoI'm now trying compile with an older version. But please update fontforge if you can.
- mgualt 14y agoI think my fontforge is the current version (see above) -- please correct me if I'm wrong.
- coolwanglu 14y agoUsually I built from git. There has been some improvement relevant to pdf2htmlEX during the path month. However it should not crash, and it's confirmed by many people now. Could you please try the commit f02e1d4 ?
- deleted 14y ago[deleted]
- mgualt 14y agoI was able to install cmake, fontforge and libpoppler with homebrew, gcc-4.7 using https://github.com/sol-prog/gcc-4.7-binary https://github.com/sol-prog/gcc-4.7-binary
- evandrix 14y agoyou mean `poppler` instead of `libpoppler`
- coolwanglu 14y agoI cannot reproduce it with a 20110222 version of fontforge. Would you mind send me the pdf file, for me to debug? Does it always crash, with other pdf files?
- mgualt 14y agoyes - it crashes as described with any pdf file.
- coolwanglu 14y agosorry to hear that. some guys are working on MacPorts and Homebrew formula. I hope this would help you. https://trac.macports.org/ticket/36028 https://trac.macports.org/ticket/36028
- coolwanglu 14y agoIt's confirmed by some guys using Mac. We are working on this. Please hold on, and join the discussion on github if you like. Thanks for your patience.
- coolwanglu 14y agoThe compiling problem should have been fixed. Could you please try the latest master branch, see if it works well or maybe fail at one assertion?
- mgualt 14y agoThank you for replying - I tried the new branch, and posted the problem I encountered as an issue with gists attached on the github.
- tincholio 14y agoThis is awesome stuff! Thanks for sharing this.
- deleted 14y ago[deleted]
- antidoh 14y agoDamn, that's cool. Somewhat full circle too, in light of the many pdf printer drivers in use today.
- davidp 14y agoThis is clever, thanks for sharing. When viewing the output (using the "computer science cheat sheet") I found some differences between browsers that I thought HN readers might find interesting. These aren't primarily issues with your tool, hence posting here. - I primarily use Chrome (21) as my browser, and the cheat sheet renders very quickly. I noticed it doesn't seem to render some equations correctly (see bad operators here[1]). - FF (15.0.1) seems to render more correctly, but it is glacially slow. The whole app (chrome and all) freezes for several seconds between clicks while the document is loaded in any tab. - IE (9) renders the same page both correctly and quickly. [1] http://imageshack.us/a/img88/3754/chromeformulas.png http://imageshack.us/a/img88/3754/chromeformulas.png
- coolwanglu 14y agoThe problem happens only on Windows. For Chrome, if you zoom in, I think everything should be fine.But Chrome is lack of antialias in Windows. I'm trying to solve the problem of Firefox.
- mih 14y agoJust to add to the compatibility list, all examples render perfectly on Opera 12, albeit a bit slow.
- MartinMond 14y agoHi! This is an incredible project. I'm just curious, you mention that crocodoc has been "consulted" for this project. Did you ask them how they do their HTML5 conversion or what exactly do you mean by that? Anyway, a big Thanks for creating this project!
- coolwanglu 14y agoI meant I took a look at a HTML page generated by crocodoc. Their approach was interesting.