{"id":15606333,"url":"https://github.com/tb/pdf_latex","last_synced_at":"2025-04-04T05:44:52.639Z","repository":{"id":4636580,"uuid":"5781246","full_name":"tb/pdf_latex","owner":"tb","description":"complile PDFs and do all kind of DTP tricks with LaTeX","archived":false,"fork":false,"pushed_at":"2012-10-04T11:58:34.000Z","size":248,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T17:17:51.805Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tb.png","metadata":{"files":{"readme":"README.rdoc","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}},"created_at":"2012-09-12T14:46:49.000Z","updated_at":"2019-07-08T13:53:54.000Z","dependencies_parsed_at":"2022-08-06T17:16:28.833Z","dependency_job_id":null,"html_url":"https://github.com/tb/pdf_latex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tb%2Fpdf_latex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tb%2Fpdf_latex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tb%2Fpdf_latex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tb%2Fpdf_latex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tb","download_url":"https://codeload.github.com/tb/pdf_latex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128737,"owners_count":20888234,"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-10-03T04:22:01.487Z","updated_at":"2025-04-04T05:44:52.620Z","avatar_url":"https://github.com/tb.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"= pdf_latex\n\nWrapper around pdflatex that helps to complile PDFs and do all kind of DTP tricks with LaTeX.\nIt can be used in Rails together with wicked_pdf.\n\n=== Gemfile\n\n  gem 'pdf_latex', :git =\u003e 'git@github.com:tb/pdf_latex.git'\n\n== Usage sample\n\nBelow you can see controller code that builds PDF compiled of many wicked_pdf PDFs renderings.\nCover can be horizontal PDF and content can be landscape.\nCompiled PDF is build based on LaTeX file that should be located at \u003ctt\u003e#{Rails.root}/lib/latex/workbook.tex\u003c/tt\u003e\nSee also http://github.com/tb/pdf_latex/tree/master/example for LaTeX example.\n\n  class Elearning::Pdf::WorkbookController \u003c Elearning::Pdf::ApplicationController\n\n    def show\n      pdf = PdfLatex.new('workbook').render_to_string({\n        :cover =\u003e \"http://#{request.host_with_port}/pdf/workbook/cover\",\n        :content =\u003e \"http://#{request.host_with_port}/pdf/workbook/content\"\n      })\n\n      send_data pdf, :filename =\u003e 'workbook.pdf', :type =\u003e 'application/pdf'\n    end\n\n  end\n\n== Installing pdflatex in Ubuntu\n\n   apt-get install texlive-latex-base texlive-latex-recommended texlive-fonts-recommended\n\n== Contributing to pdf_latex\n \n* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.\n* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.\n* Fork the project.\n* Start a feature/bugfix branch.\n* Commit and push until you are happy with your contribution.\n* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.\n* 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.\n\n== Copyright\n\nCopyright (c) 2012 Tomasz Bak. See MIT-LICENSE for further details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftb%2Fpdf_latex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftb%2Fpdf_latex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftb%2Fpdf_latex/lists"}