Project

pdf-my-url

0.0
No commit activity in last 3 years
No release in over 3 years
PDF my URL is a Ruby on Rails view helper for easily creating attachments from the online web service with the same name.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

PDFmyURL¶ ↑

PDFmyURL is a basic ruby-on-rails view helper for the online web service pdfmyurl.com. It allows for easy PDF creation from URLs without having to install any conversion tools.

Requirements¶ ↑

The gem has been tested with Ruby 1.9.2 and Rails 3.0.3.

Installation¶ ↑

gem install pdf-my-url

Example¶ ↑

<%= pdf_my_url 'CBC', 'http://www.cbc.ca/' %>
<%= pdf_my_url 'CBC', 'http://www.cbc.ca/', :filename => 'CBC.pdf' %>
<%= pdf_my_url 'CBC', 'http://www.cbc.ca/', :orientation => :portrait %>
<%= pdf_my_url 'CBC', 'http://www.cbc.ca/', :orientation => :landscape %>
<%= pdf_my_url 'CBC', 'http://www.cbc.ca/', :page => { :height => 200, :width => 200 } %>
<%= pdf_my_url 'CBC', 'http://www.cbc.ca/', :margin => { :top => 10, :left => 5, :right => 5, :bottom => 10 } %>

Copyright © 2010 Kevin Sylvestre. See LICENSE for details.