[Rails] encrypt the pdf

2012-12-05 Thread kiran cy
I am encrypting the pdf in rails using pdf-toolkit here is my code: PDF::Toolkit.pdftk(infile output outfile user_pw rails) It is giving error saying that undefined method user_pw Any suggestions -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

[Rails] Re: encrypt the pdf

2012-12-05 Thread kiran cy
I think that is predefined in pdftk -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send

[Rails] Re: Re: encrypt the pdf

2012-12-05 Thread kiran cy
Colin Law wrote in post #1087900: On 5 December 2012 11:04, kiran cy li...@ruby-forum.com wrote: Please quote the previous message and put your reply inline at appropriate points. Remember this is a mailing list not a forum (though you may be accessing it via a forum-like interface. Thanks

[Rails] Re: encrypt the pdf

2012-12-05 Thread kiran cy
It is working pdf is encrypted my_pdf = PDF::Toolkit.open(directory+@encrypt_pdf.attach.url.split('?')[0].to_s) my_pdf.user_password=@encrypt_pdf.user_password my_pdf.owner_password=@encrypt_pdf.owner_password how to allow permissions like printing screen reader -- Posted via

[Rails] convert the cells in table to images

2012-10-11 Thread kiran cy
I have a document with tables in it. I want to convert the each cell present in the table to image. Any suggestions... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group,

[Rails] Re: convert the cells in table to images

2012-10-11 Thread kiran cy
Colin Law wrote in post #1079401: On 11 October 2012 10:57, kiran cy li...@ruby-forum.com wrote: I have a document with tables in it. I want to convert the each cell present in the table to image. I, for one, have little idea exactly what you mean by this. What sort of document? What do

[Rails] Re: Re: convert the cells in table to images

2012-10-11 Thread kiran cy
Colin Law wrote in post #1079405: On 11 October 2012 11:08, kiran cy li...@ruby-forum.com wrote: What has this got to do with Ruby on Rails? Colin I just have to upload the ms-word document file and click the upload button which should give me the images of the each cell in the table. how

[Rails] Re: Re: Re: convert the cells in table to images

2012-10-11 Thread kiran cy
Colin Law wrote in post #1079407: On 11 October 2012 11:24, kiran cy li...@ruby-forum.com wrote: Colin I have tables in ms-word document(of format doc). I want to convert the data present in each cell either it may be text or image to the image How do you suggest I do it? As I said

[Rails] Re: Re: Re: Re: convert the cells in table to images

2012-10-11 Thread kiran cy
Colin Law wrote in post #1079413: On 11 October 2012 11:40, kiran cy li...@ruby-forum.com wrote: file in ruby, which I don't know how to do. Did google help you with this? Is suggest googling for ruby read .doc Colin I can read doc using the docx gem, my problem is identifying the cell

[Rails] Re: Re: Re: Re: Re: convert the cells in table to images

2012-10-11 Thread kiran cy
Colin Law wrote in post #1079421: On 11 October 2012 12:31, kiran cy li...@ruby-forum.com wrote: @zip = Zip::ZipFile.open(path) @xml=Nokogiri::XML(@zip.find_entry('word/document.xml').get_input_stream) if block_given? yield self @zip.close end end I don't understand why

[Rails] Images to pdf

2012-09-20 Thread kiran cy
i converted pdf to images and the images back to pdf. While converting back to pdf the images are not in order for example if there are 14 images after the first image 10 image will come then 11,12,13,14 and then 2,3,4,5,6,7,8,9 What is the problem? -- Posted via http://www.ruby-forum.com/. --

[Rails] Re: Images to pdf

2012-09-20 Thread kiran cy
ANIKET KADAM wrote in post #1076796: can you tell me how you converted Images to PDF, please tell i m new to rails require 'RMagick' images = Dir[/home/*.jpg] imglist = Magick::ImageList.new imglist.read(*images.natural_sort) imglist.write(converted.pdf) -- Posted via

[Rails] PDF file is crashing

2012-09-17 Thread kiran cy
PDF file is crashing in my app because of the images present in the pdf which are madeup of polygons so i tried to convert the pdf to images and images back to pdf but there is drastic change in the quality of pdf so i tried to view the pdf in browser and to convert the html to pdf. Is it possible

[Rails] Uploading pdf

2012-09-12 Thread kiran cy
I am trying to upload the pdf using file io operations, i can select the file but when i click on the upload button it is not uploading the file here is my model class DataFile ActiveRecord::Base def self.Save(upload) name = upload['datafile'].original_filename directory =