This gem generates pdf from cacoo diagram's iamge.
In Linux, we can't use Cacoo ninja. So we can't get pdf with font data on the cacoo server.
1.download gem file from GitHubRelease
2.install gem
gem install cacoo2pdf-0.1.0.gem
cacoo2pdf -n pdf_name -d xxxxxxxxxxxxxxxx [-k xxxxxxxxxxxxxxxxxxxx] [-o output_dirctory_path]
option | require | description |
---|---|---|
-n, --name | true | output pdf filename |
-d, --diagram | true | cacoo diagram id |
-k, --api_key | false | cacoo api key. This can specify as environment value CACOO_API_KEY |
- o, --output | false | output directory path to generate pdf. |
After checking out the repo, run bin/setup
to install dependencies. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
.
Bug reports and pull requests are welcome on GitHub at https://github.com/Kuchitama/cacoo2pdf.