{"id":19474601,"url":"https://github.com/tomasc/pdf-rendering-srv-ruby","last_synced_at":"2026-05-15T17:02:06.102Z","repository":{"id":56887698,"uuid":"363605482","full_name":"tomasc/pdf-rendering-srv-ruby","owner":"tomasc","description":"Simple Ruby wrapper for seding requests to pdf-rendering-srv.","archived":false,"fork":false,"pushed_at":"2021-05-09T15:17:37.000Z","size":103,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T01:47:53.601Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomasc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-02T08:45:47.000Z","updated_at":"2021-05-09T15:17:19.000Z","dependencies_parsed_at":"2022-08-21T00:20:27.380Z","dependency_job_id":null,"html_url":"https://github.com/tomasc/pdf-rendering-srv-ruby","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/tomasc/pdf-rendering-srv-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fpdf-rendering-srv-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fpdf-rendering-srv-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fpdf-rendering-srv-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fpdf-rendering-srv-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomasc","download_url":"https://codeload.github.com/tomasc/pdf-rendering-srv-ruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fpdf-rendering-srv-ruby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33072970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T19:25:49.596Z","updated_at":"2026-05-15T17:02:06.066Z","avatar_url":"https://github.com/tomasc.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pdf-rendering-srv-ruby\n\n[![Gem Version](https://badge.fury.io/rb/pdf-rendering-srv-ruby.svg)](https://badge.fury.io/rb/pdf-rendering-srv-ruby)\n![Ruby](https://github.com/tomasc/pdf-rendering-srv-ruby/workflows/Ruby/badge.svg)\n\nSimple Ruby wrapper for seding requests to [pdf-rendering-srv](https://github.com/restorecommerce/pdf-rendering-srv)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'pdf-rendering-srv-ruby'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install pdf-rendering-srv-ruby\n\n## Usage\n\nConfigure the gem by specifying URL of the [pdf-rendering-srv](https://github.com/restorecommerce/pdf-rendering-srv) service:\n\n```ruby\nPdfRenderingSrv.configure do |config|\n  config.pdf_rendering_srv_url = \"http://localhost:9000/api/render\" # default value\nend\n```\n\n```ruby\nPdfRenderingSrv::FromUrl.call(url: \"https://example.com\", format: :png, viewport: { width: 800 })\n```\n\n```ruby\nPdfRenderingSrv::FromHtml.call(html: \"\u003chtml\u003e\u003chead\u003e\u003ctitle\u003eExample\u003c/title\u003e\u003c/head\u003e\u003cbody\u003e\", format: :pdf, pdf: { format: \"A4\" })\n```\n\nThe general interface is described in the [Base](https://github.com/tomasc/pdf-rendering-srv-ruby/blob/master/lib/pdf_rendering_srv/base.rb) class.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/tomasc/pdf-rendering-srv-ruby.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasc%2Fpdf-rendering-srv-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomasc%2Fpdf-rendering-srv-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasc%2Fpdf-rendering-srv-ruby/lists"}