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
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
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
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
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,
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
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
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
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
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
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/.
--
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
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
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 =
14 matches
Mail list logo