{"id":13588951,"url":"https://github.com/mbleigh/princely","last_synced_at":"2025-05-16T00:07:29.345Z","repository":{"id":387599,"uuid":"5066","full_name":"mbleigh/princely","owner":"mbleigh","description":"A simple Rails wrapper for the PrinceXML PDF generation library.","archived":false,"fork":false,"pushed_at":"2024-08-11T17:14:00.000Z","size":113,"stargazers_count":236,"open_issues_count":12,"forks_count":99,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-09T23:15:35.608Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.mbleigh.com/plugins/princely-rails-prince-xml-wrapper","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbleigh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2008-03-23T14:47:53.000Z","updated_at":"2025-04-16T19:51:43.000Z","dependencies_parsed_at":"2024-06-19T01:25:27.895Z","dependency_job_id":null,"html_url":"https://github.com/mbleigh/princely","commit_stats":{"total_commits":131,"total_committers":28,"mean_commits":4.678571428571429,"dds":0.7633587786259541,"last_synced_commit":"559f374e89089f5206498aa34306c8eac8c2aa25"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbleigh%2Fprincely","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbleigh%2Fprincely/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbleigh%2Fprincely/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbleigh%2Fprincely/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbleigh","download_url":"https://codeload.github.com/mbleigh/princely/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254442854,"owners_count":22071878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-08-01T16:00:15.381Z","updated_at":"2025-05-16T00:07:24.309Z","avatar_url":"https://github.com/mbleigh.png","language":"Ruby","readme":"# Princely\n\nPrincely is a simple wrapper for the [Prince XML PDF generation library](http://www.princexml.com).\nThe plugin will also automatically register the PDF MimeType so that you can use\npdf as a format in Rails controller `respond_to` blocks.\n\n## Example\n\n```ruby\nclass Provider::EstimatesController \u003c Provider::BaseController\n  # You can render PDF templates simply by\n  # using the :pdf option on render templates.\n  def show\n    respond_to do |format|\n      format.html\n      format.pdf do\n        render :pdf =\u003e 'file_name',\n               :template =\u003e 'controller/action',\n               :handlers =\u003e %w[erb],\n               :formats =\u003e %w[pdf],\n               :stylesheets =\u003e %w[application prince],\n               :layout =\u003e 'pdf',\n               :locals =\u003e { :foo =\u003e 'bar' },\n               :disposition =\u003e 'inline', # PDF will be sent inline, means you can load it inside an iFrame or Embed\n               :relative_paths =\u003e true # Modify asset paths to make them relative. See [the AssetSupport module](/lib/princely/asset_support.rb)\n      end\n    end\n  end\n\n  # Alternatively, you can use make_and_send_pdf to render out a PDF for the\n  # action without a respond_to block.\n  def pdf\n    make_and_send_pdf \"file_name\"\n  end\nend\n```\n\n## Render Defaults\n\nThe defaults for the render options are as follows:\n\n    layout:          false\n    template:        the template for the current controller/action\n    locals:          none\n    stylesheets:     none\n    disposition:     attachment (created PDF file will be sent as download)\n    relative_paths:  true\n    server_flag:     true\n    javascript_flag: false\n    timeout:         none\n\n## Contributors\n\n* Maintainer: Jared Fraser ([modsognir](https://github.com/modsognir))\n* Gemification and more: Nic Williams\n* Based on code by: Seth B ([subimage](https://github.com/subimage))\n* [Other Contributors](https://github.com/mbleigh/princely/contributors)\n\n## Resources\n\n* Copyright (c) 2007-2013 Michael Bleigh and Intridea, Inc., released under the MIT license.\n","funding_links":[],"categories":["RUBY"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbleigh%2Fprincely","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbleigh%2Fprincely","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbleigh%2Fprincely/lists"}