Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Added pdf2htmlex formula, which provides accurate pdf rendering to html ... #15030

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Library/Formula/pdf2htmlex.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
require 'formula'

class Pdf2htmlex < Formula
homepage 'http://coolwanglu.github.com/pdf2htmlEX/'
url 'https://github.com/coolwanglu/pdf2htmlEX/archive/v0.6.tar.gz'
sha1 '3b824e007e48130ccacb7372fb98658990e402fd'

head 'https://github.com/coolwanglu/pdf2htmlEX.git'

depends_on 'cmake' => :build
depends_on 'fontforge'
depends_on 'libpng'
depends_on 'ttfautohint'
depends_on 'poppler'

def install
system "cmake", ".", *std_cmake_args
system "make"
system "make install"
end

def test
mktemp do
curl "-O", "http://partners.adobe.com/public/developer/en/xml/AdobeXMLFormsSamples.pdf"
system "#{bin}/pdf2htmlEX", "AdobeXMLFormsSamples.pdf"
end
end
end