diff options
| author | Perry Wagle | 2012-02-18 20:12:59 -0800 |
|---|---|---|
| committer | Charlie Sharpsteen | 2012-02-19 11:23:51 -0800 |
| commit | 66d6639c59c9212b40e4bf8ecc4a5522252c92ab (patch) | |
| tree | c7215c9ba6a00805d95b1e05333fa381df19f314 /Library | |
| parent | 7627506144e07b5fc4fd8c024224c2d97f3ac5a6 (diff) | |
| download | homebrew-66d6639c59c9212b40e4bf8ecc4a5522252c92ab.tar.bz2 | |
pdf2svg: Patch Poppler rendering call.
Fix call to poppler to render normal thickness lines in Firefox.
Closes #10317.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/pdf2svg.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/pdf2svg.rb b/Library/Formula/pdf2svg.rb index baa4465e6..338b302f4 100644 --- a/Library/Formula/pdf2svg.rb +++ b/Library/Formula/pdf2svg.rb @@ -18,6 +18,11 @@ class Pdf2svg < Formula depends_on "cairo" # Poppler-glib needs a newer cairo than provided by OS X 10.6.x # and pdf2svg needs it to be on PKG_CONFIG_PATH during the build + def patches + # fix call to poppler to render normal thickness lines in firefox + DATA + end + def install unless have_poppler_glib? onoe <<-EOS.undent @@ -35,3 +40,16 @@ class Pdf2svg < Formula system "make install" end end + +__END__ +--- pdf2svg-0.2.1/pdf2svg.c.ORIG 2008-02-01 10:28:35.000000000 -0800 ++++ pdf2svg-0.2.1/pdf2svg.c 2011-11-26 03:56:15.000000000 -0800 +@@ -65,7 +65,7 @@ + drawcontext = cairo_create(surface); + + // Render the PDF file into the SVG file +- poppler_page_render(page, drawcontext); ++ poppler_page_render_for_printing(page, drawcontext); + cairo_show_page(drawcontext); + + // Close the SVG file |
