search for: create_pdf

Displaying 2 results from an estimated 2 matches for "create_pdf".

Did you mean: create_ovf
2012 Sep 15
2
[RSpec Testing] Methods take two arguments
Hello, Here is my *pdf_helper.rb* => http://pastebin.com/QU1kTKXk. I want to test, if self.create method can take more than two arguments. But, when I try to run my test. It showed *PdfHelper Should have two arguments Failure/Error: create_pdf.should_receive(object,template).with(user,file) NameError: undefined local variable or method `create_pdf'' for #<RSpec::Core::ExampleGroup::Nested_1:0xabf72f0> # ./pdf_helper_spec.rb:13:in `block (2 levels) in <top (required)>'' *here is my pdf_helper...
2006 Nov 04
0
UTF-8 String to PDF using PDF::Writer
...way to do this? The sting is stored as UTF-8 in MySQL and displays properly on the web (<?xml version="1.0" encoding="utf-8"?>). The main problem seems to be smart quotes do not come across I get strange symbols, everything else seems to work. My latest attempt. def create_pdf # creates a PDF version of an authors listing. Pass a listing object as the methods parameter. AJ # pdfOfListing = PDF::Writer.new # defaults to a US Letter, portrait, PDF version 1.3 document. AJ pdfOfListing.compressed pdfOfListing.select_font(''Times-Roman...