Permalink
Browse files

Fix zlib issue with node 0.6. Closes #42.

  • Loading branch information...
1 parent 513fef7 commit fb7d8ceb7f3d5a4de2175990dee082573414f491 @devongovett committed Oct 22, 2011
Showing with 10 additions and 6 deletions.
  1. +2 −1 .gitignore
  2. +3 −0 .npmignore
  3. +1 −1 lib/font.coffee
  4. +1 −1 lib/image/png.coffee
  5. +1 −1 lib/reference.coffee
  6. +2 −2 package.json
View
@@ -4,4 +4,5 @@ lib/font/tables/.DS_Store
.DS_Store
/node_modules/
-/tests/
+/tests/
+node-zlib/
View
@@ -0,0 +1,3 @@
+node-zlib/
+node-modules/
+demo/
View
@@ -6,7 +6,7 @@ By Devon Govett
TTFFont = require './font/ttf'
AFMFont = require './font/afm'
Subset = require './font/subset'
-zlib = require 'zlib'
+zlib = require 'flate'
class PDFFont
constructor: (@document, @filename, @family, @id) ->
@@ -1,6 +1,6 @@
fs = require 'fs'
Data = '../data'
-zlib = require 'zlib'
+zlib = require 'flate'
class PNG
@open: (filename) ->
@@ -3,7 +3,7 @@ PDFReference - represents a reference to another object in the PDF object heirar
By Devon Govett
###
-zlib = require 'zlib'
+zlib = require 'flate'
class PDFReference
constructor: (@id, @data = {}) ->
View
@@ -2,7 +2,7 @@
"name": "pdfkit",
"description": "A PDF generation library for Node.js",
"keywords": ["pdf", "pdf writer", "pdf generator", "graphics", "document", "vector"],
- "version": "0.1.5",
+ "version": "0.1.6",
"homepage": "http://devongovett.github.com/pdfkit/",
"author": {
"name": "Devon Govett",
@@ -20,7 +20,7 @@
},
"dependencies": {
"coffee-script": ">=1.0.1",
- "zlib": ">=1.0.2"
+ "flate": ">=1.0.2"
},
"engine": [ "node >= v0.4.0" ]
}

0 comments on commit fb7d8ce

Please sign in to comment.