similar to: pdf-file tot desktop with pdf/writer problem

Displaying 20 results from an estimated 5000 matches similar to: "pdf-file tot desktop with pdf/writer problem"

2006 Nov 04
0
UTF-8 String to PDF using PDF::Writer
Hi I just can''t seem to figure this out. I know that PDF doesn''t support UTF-8 so I''m trying to use Iconv to convert the string from UTF-8 to MacRoman (or anything that will work). This doesn''t seem to be working though. Is there a better/ correct way to do this? The sting is stored as UTF-8 in MySQL and displays properly on the web (<?xml
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"})
2007 Feb 28
8
Export/save csv-file to desktop of user?
Hi, looking for something that simple, but can''t find it. I got: outfile = File.open(''teams.txt'', ''wb'') CSV::Writer.generate(outfile) do |csv| for team in @teams csv << [team.id, team.name] end end outfile.close send_file "teams.txt", :filename => "teams.txt",:disposition =>
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
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
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 =>
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
2007 Apr 23
4
send_file pdf problem
Hi, I am using send_file to allow users to download files from my website, please see code beloe: def download_document send_file("#{RAILS_ROOT}/public/test_form.pdf", :filename => "test.pdf", :type => ''application/pdf'', :disposition => ''attachment'', :streaming
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
2008 Feb 12
3
send_file - PDF
Hi- I''d like to load a PDF file into a page, in my controller: send_file "/path to/my.pdf", :disposition => "inline" However, instead of rendering inline, it asks to download the file. How can I display the contents without downloading? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the
2007 Jul 13
2
How do you handle pop ups?
When I click a link to download a file, a pop up window comes up to save the file. Is there a way to enter a file name and click the submit button with mechanize? Thanks, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mechanize-users/attachments/20070712/558f7018/attachment.html
2006 Apr 27
4
pdf render inline .... update ''main'' div
Hi, I want to keep the layout and just to a link_to_remote to update the=20 div id ''main'' Using this in the controller action send_file "public/pdf/my.pdf", :type =3D> ''application/pdf'', = :disposition=20 =3D> ''inline'', :stream =3D> false I get this. The raw pdf code sent replacing the main div with :
2007 Mar 18
1
Submitting a form sends a file. How do I save it?
I''ve been using Mechanize for a project that i''ve been working on, but this is the first time i''m having to use forms (scraping previously). So, after i fill out the form, when I hit submit, it sends me information in the form of a text file to download. For the life of me, I can''t see how to get access to it. When clicking on a link, you can put a
2008 Jul 24
1
read the pdf
I''d like to load a PDF file into a page, in my controller: send_file "/path to/my.pdf", :disposition => "inline" However, instead of rendering inline, it asks to download the file. How can I display the contents without downloading? using ruby on rails -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received
2006 Jun 19
1
pdf simpletable help needed
i am trying to generate a pdf of all of the users in an application that i have built. i am still pretty new to ruby and rails so i don''t know the best way to go about it. here is my controller code: require ''pdf/writer'' require ''pdf/simpletable'' class ReportsController < ApplicationController def test _pdf = PDF::Writer.new table =
2007 Apr 03
2
Scraping and saving.
Hi, I''m working to scrape and save some ebooks. Mechanize has been wonderful so far. The link I''m having trouble with is this one. http://www.webscription.net/SendZip.aspx?SKU=0671578499&ProductID=379&format=H When I click that in the browser it saves it to a file named H_1632.zip. How do I get that name from the page. I suspect to save this to a file I would just do
2005 Sep 22
1
redirect and sieve
Hello, I have set up postfix to use dove-cot lda. This works perfect. Sieve works a bit... I would like to user the redirect feature of sieve. Having followed the wiki I added the following in my .dovecot.sieve : require "redirect"; if header :contains "subject" ["order", "buy"] { redirect "orders at company.dom"; } With this setup I
2006 Jan 04
4
How to open a pdf file in new window
Hi all I made a pdf file in ruby and to display it used the method send_data like # send_data pdf.render, :filename => "Hello.pdf",:type => "application/pdf" # Now I want to open it in another window or as a popup. How can I achieve it? Thanks to all. Sainaba. -- Posted via http://www.ruby-forum.com/.
2009 May 03
3
OpenSuse 10.3 - Xen 3.1.0 - VIF for DomU not recording transmitted bits correctly
I would like to track DomU bandwidth usage from Dom0 but my OpenSuse Xen install is not tracking DomU bandwidth correctly. My DomU guests are able to access the network and therefore the networking layer appears to be working correctly. It just doesn''t report the traffic correctly in ifconfig. I am currently running OpenSuse10.3 with Xen 3.1.0_15042-51.3 running a xen kernel