Sha256: c1e296c29842f8f1ae7cdfbbfd05cedc3e198ef3c339136aec9ef3ec93822b2a

Contents?: true

Size: 1.74 KB

Versions: 1

Compression:

Stored size: 1.74 KB

Contents

= itext-jruby

IText Pdf generation static java build packed to gem with some additional Ruby methods.

== Usage

=== Instalation
  
  gem install itext-jruby

== Example
  
    require 'itext-jruby'

    @source_pdf   = File.expand_path('test/assets/sample.pdf')
    @sample_image = File.expand_path('test/assets/pug.jpg')
    @output_pdf   = File.expand_path('output.pdf')
    @cert_file    = File.expand_path('test/assets/cert/ia.p12')

    @pdf_document = Itext.new(path: @source_pdf)
    @pdf_document.add_attachment @sample_image
    @pdf_document.enable_signing!(private_key_path: @cert_file)
    @pdf_document.save(@output_pdf)

Find more examples in test directory.


== Changelog
* 0.0.6 - First stable version allowing adding attachments to PdfFile
* 0.0.7 - Add option to sign documents usign pkcs12 certificates

== Read more
* Creating pkcs12 certs: http://www.flatmtn.com/article/creating-pkcs12-certificates
* Converting .pem to .pcks: http://www.advogato.org/person/johnnyb/diary.html?start=143

== Contributing to itext-jruby
 
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
* Fork the project.
* Start a feature/bugfix branch.
* Commit and push until you are happy with your contribution.
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

== Copyright

Copyright (c) 2013 Ernest Bursa. See LICENSE.txt for
further details.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
itext-jruby-0.0.7 README.rdoc