plessl / wkpdf

A command line HTML to PDF converter for Mac OS X
http://plessl.github.com/wkpdf
MIT License
184 stars 24 forks source link

User stylesheet not accepted #38

Closed mrtoner closed 11 years ago

mrtoner commented 11 years ago

Using 0.6.9 on OSX 10.8.2, the user-stylesheet flag isn't accepted:

prime-directive:~ don$ wkpdf --source http://www.apple.com --user-stylesheet /Users/don/wkpdf.css --output apple.pdf

2013-01-25 12:13:31.155 ruby[41725:707] -[NSURL length]: unrecognized selector sent to instance 0x7fe0e4444310
/System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `ocm_send': NSInvalidArgumentException - -[NSURL length]: unrecognized selector sent to instance 0x7fe0e4444310 (OSX::OCException)
from /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `method_missing'
from /Library/Ruby/Gems/1.8/gems/wkpdf-0.6.9-universal-darwin/bin/../lib/wkpdf.rb:68:in `main'
from /Library/Ruby/Gems/1.8/gems/wkpdf-0.6.9-universal-darwin/bin/wkpdf:5
from /usr/bin/wkpdf:23:in `load'
from /usr/bin/wkpdf:23
plessl commented 11 years ago

Good catch. That was a bug resulting from some refactoring a couple of versions ago.

Should be fixed in version 0.6.10 that I have just released.

On 25.01.2013, at 21:24, mrtoner notifications@github.com wrote:

Using 0.6.9 on OSX 10.8.2, the user-stylesheet flag isn't accepted:

prime-directive:~ don$ wkpdf --source http://www.apple.com --user-stylesheet /Users/don/wkpdf.css --output apple.pdf

2013-01-25 12:13:31.155 ruby[41725:707] -[NSURL length]: unrecognized selector sent to instance 0x7fe0e4444310 /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in ocm_send': NSInvalidArgumentException - -[NSURL length]: unrecognized selector sent to instance 0x7fe0e4444310 (OSX::OCException) from /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:inmethod_missing' from /Library/Ruby/Gems/1.8/gems/wkpdf-0.6.9-universal-darwin/bin/../lib/wkpdf.rb:68:in main' from /Library/Ruby/Gems/1.8/gems/wkpdf-0.6.9-universal-darwin/bin/wkpdf:5 from /usr/bin/wkpdf:23:inload' from /usr/bin/wkpdf:23

— Reply to this email directly or view it on GitHub.