An open API service indexing awesome lists of open source software.

https://github.com/westonganger/prawn_resume

Dead simple Prawn based PDF resume generator with support for custom resume templates
https://github.com/westonganger/prawn_resume

prawn prawn-pdf rails resume resume-builder resume-generator ruby

Last synced: 3 months ago
JSON representation

Dead simple Prawn based PDF resume generator with support for custom resume templates

Awesome Lists containing this project

README

        

# Prawn Resume

Gem Version
Build Status
RubyGems Downloads
Buy Me a Coffee

Dead simple Prawn based PDF resume generator with support for custom resume templates

- Dead simple setup and configuration
- Custom Templates
- Optional Rails Integration

# TBD

- Enhanceme `:default` template
- Document & Finalize template schema implementation

# Usage

```ruby
@data = {}

File.write("path/to/invoice.pdf", wb) do |f|
f.write PrawnResume.to_pdf(data: @data)
end

PrawnResume.to_pdf_file(filename: "path/to/resume.pdf", data: @data)
```

Or use in your Rails controllers

```ruby
class ResumeController < ApplicationController
def index
@data = {}

render pdf: PrawnResume.to_pdf(data: @data)
end
```

# Custom Templates

Custom resume templates classes can be implemented as required.

Use the `:default` template class as an example:

https://github.com/westonganger/prawn_resume/blob/master/lib/prawn_resume/templates/default.rb

Once implemented use it like so:

```ruby
PrawnResume.to_pdf(data: @data, template: :default)

# OR

PrawnResume.to_pdf(data: @data, template: PrawnResume::Templates::Default)
```

# Credits

Created & Maintained by [Weston Ganger](https://westonganger.com) - [@westonganger](https://github.com/westonganger)

For any consulting or contract work please contact me via my company website: [Solid Foundation Web Development](https://solidfoundationwebdev.com)

[![Solid Foundation Web Development Logo](https://solidfoundationwebdev.com/logo-sm.png)](https://solidfoundationwebdev.com)