similar to: UTF-8 String to PDF using PDF::Writer

Displaying 20 results from an estimated 1200 matches similar to: "UTF-8 String to PDF using PDF::Writer"

2007 Apr 16
7
pdf-file tot desktop with pdf/writer problem
Hi, I''m using pdf/Writer to generate a pdf-file, but whatever I do, it gets saved in folder of my app, and not on the users desktop. I''ve used pdf = PDF::Writer.new pdf.select_font "Times-Roman" pdf.text "Hello.pdf", :font_size => 12, :justification => :left File.open("hello.pdf", "wb") { |f|
2006 May 05
8
pdf/writer: table.render_on best practices?
Hi All, I generate a pdf report that contains a table. The report is 14 pages, and it takes 20s to be rendered. Most of these 20s are spend in the render_on method. I wonder if it is possible to speed up that process? To create the report, I do the following: 1) Setup pdf layout: # Setup pdf layout pdf.select_font("Helvetica", { :encoding => "WinAnsiEncoding"})
2008 Mar 13
0
Template being ignored when attaching pdf in e-mail
The following code attaches my pdf with success. However, my e-mail template is not being rendered in the e-mail. Any idea''s why my template is ignored? require ''pdf/writer'' class NotifierRequest < ActionMailer::Base def inforequest(name, email, notice_request, message) @subject = ''Notice'' @body = {:name => name, :email
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
2006 Jun 13
2
Top margin on PDF generated with PDF::Writer
Hi, A little question. I''ve written a method that uses PDF::Writer to generate a PDF document with some images and text. This is the code on my controller: def pdf gen_pdf redirect_to("#{@request.relative_url_root}/pdf/cupones.pdf") end private def gen_pdf pdf = PDF::Writer.new(:paper => "A4") pdf.margins_cm(0) pdf.start_columns(2, 0) pdf.select_font
2007 May 22
0
tcl font size issue on centso 4.4 x86_64
I have a simply script that I cannot get a font size bigger than 40. Changing the font_size value to 80 does not make the font any bigger just the background. How do I get a bigger font than 40? I run this script as "wish -f file.tcl" What am I doing wrong to not get bigger fonts? THanks, Jerry --------------------------------------------- set font_size 40 set show_window_title 0
2006 Mar 10
5
PDF::Writer Simpletable Iteration
Hello All: I have been working with <a href="http://ruby-pdf.rubyforge.org/pdf-writer/index.html">Austin Ziegler''s PDF::Writer</a> as a means to produce PDF documents from my Rails app. I am stumped on how to iterate through a collection of items and output them in a table format. The way I have tried it so far only returns the last item in the collection -
2006 Apr 04
2
How to add CSS tips to link_to_remote?
The following code of tag clouds implementation: <%= link_to(h("<#{tag}>"), "tags/listmytag/#{tag}", { :style => "font-size: #{font_size}" } ) -%> I want to change it to ajax style: <%= link_to_remote "<#{tag}>", { :url => { :controller => ''tags'', :action => ''listmytag'', :id =>
2008 Feb 08
2
question_encoding
Hallo, I would like to ask you, for one question. When I export graph to .pdf and I need some czech font, I use a parameter encoding="ISOLatin2.enc" for these special fonts. But exported text is bad. I try ISOLatin1 and MacRoman, but it is some one. I don't know, what Iam doing bad, because in quartz is the graph ok. Sorry....I forget....I have a Mac with Leopard and R ver. 2.6.1.
2005 Aug 30
1
Font Encodings --- some work, some don't
Dear R wizards: I believe some more font encoding info. some of the font encodings work, others do not: IsoLatin1, MacRoman, WinAnsi, and PDFDoc seem fine. AdobeStd, AdobeSym, ISOLatin2, ISOLatin9, and TeXtext seem broken, in that the resulting output file is silently corrupt. The font encoding error does not appear in the postscript device driver, and it works fine. It would be nice if
2003 Mar 24
1
writing to file with encodings (PR#2674)
Full_Name: Jean-Pierre Müller Version: 162 OS: Mac OS (carbon) Submission from: (NULL) (130.223.101.43) Encodings valid only in rwading files? The following give identical output files. "ascii" <- c( "\040","\041","\042","\043","\044","\045","\046","\047", # 040-047
2006 Jul 13
1
Incorrect composed_of I think
I am trying to use composed_of in my model, but I not succeeding. With the code I pasted below, I cannot perform this action in the console: property = Property.new(1, "px") I get NameError: uninitialized constant Property when I try to perform that action. It''s not finding my class I made I suppose. The Property class is in the same file as the Element class, element.rb.
2005 Aug 29
4
ttda on R 2.1.1: error
Hello, I'm trying to use the package ttda, wich is involved in text analysis, for my own data about answers in a company survey. I've installed it, as well as ispell, but when trying to use an example: > zz <- file("stupid.txt", "w") # build a data file > cat("{comment - stupid data file} \n" , file = zz) > cat("<uci=1>
2003 Mar 17
0
file encoding
Hello, Is file("out.txt", open="wt", encoding=ISOLatin1) (resp: MacRoman, WinAnsi) broken/unimplemented ? I am trying: zz <- file("out.txt", open="wt", encoding=ISOLatin1) cat(ASCII,file = zz, sep="\n") close(zz) on R162 for MacOs (carbon). Thanks. -- ------------------------------------------------------------------------------ Jean-Pierre
2005 Dec 15
5
Avery Lables, PDF::Writer or LaTex?
In a new app we are developing, we need to be able to dynamically create a PDF and send it to the browser (inline with send_data). I have been tinkering with PDF::Writer and love the simplicity and native ruby-ness of it all. However, one of the main uses for this functionality is to output a PDF of addresses to be printed on Avery 5161 labels. LaTex seems to be suited well for this, but it
2003 Jul 04
0
Tag Recommendations Recommendations
Some suggestions for the recommendations on http://reactor-core.org/ogg-tag-recommendations.html: Add in a table of contents. Please. Rename the title to "Vorbis-style Comment Field Recommendations" (change capitalization to taste) to reflect that FLACs and Speex files could be tagged according to this recommendation. Do note that not just Ogg (or, for that matter, .ogg) files can use
2024 Feb 29
1
R 4.3.3 is released
The build system rolled up R-4.3.3.tar.gz and .xz (codename "Angel Food Cake") this morning. This is a minor update, intended as the wrap-up release for the 4.3.x series. This also marks the 6th anniversary of R-1.0.0. (2000-02-29) The list below details the changes in this release. You can get the source code from https://cran.r-project.org/src/base/R-4/R-4.3.3.tar.gz
2024 Feb 29
1
R 4.3.3 is released
The build system rolled up R-4.3.3.tar.gz and .xz (codename "Angel Food Cake") this morning. This is a minor update, intended as the wrap-up release for the 4.3.x series. This also marks the 6th anniversary of R-1.0.0. (2000-02-29) The list below details the changes in this release. You can get the source code from https://cran.r-project.org/src/base/R-4/R-4.3.3.tar.gz
2024 Feb 29
1
R 4.3.3 is released
The build system rolled up R-4.3.3.tar.gz and .xz (codename "Angel Food Cake") this morning. This is a minor update, intended as the wrap-up release for the 4.3.x series. This also marks the 6th anniversary of R-1.0.0. (2000-02-29) The list below details the changes in this release. You can get the source code from https://cran.r-project.org/src/base/R-4/R-4.3.3.tar.gz
2006 Oct 31
0
6376632 writer and reader of a pipe can race and leave writer process hung.
Author: wroche Repository: /hg/zfs-crypto/gate Revision: 675f4a70198561e1efa783921d9a48232db00bf8 Log message: 6376632 writer and reader of a pipe can race and leave writer process hung. 6396390 FIFOPOLLRBAND flag should not be set to the same value as FIFOISOPEN Files: update: usr/src/uts/common/fs/fifofs/fifosubr.c update: usr/src/uts/common/fs/fifofs/fifovnops.c update: