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?
can you tell me how you converted Images to PDF, please tell i m new to rails
can you tell me how you converted Images to PDF, please tell i m new to rails
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?
it is sorting them as string not as integers
can you tell me how you converted Images to PDF, please tell i m new to rails
you can use rmagick
Thanks
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")
Thanks
I do this almost daily. I use a PDF converter driver found on the internet . Install it and it becomes a selectable converter option.Then you can convert PDFs to many forms in any program at all, including Adobe Acrobat . Just open a PDF, select convert, and choice a form you want,then you can convert pdf to image and vice versa. the task will be finished in several seconds. if you haven't found a good choice , you can have a try. best wishes. http://www.rasteredge.com/how-to/csharp-imaging/pdf-creating/