def save(outname)
            generate_temp_file

            cmd = "convert "

            if not @args.empty?
                cmd += "#{@args.join(' ')} "
            end

            cmd += "#{@filename} #{outname}"

            PDFToImage.exec(cmd)

            return true
        end
def save(outname)
            generate_temp_file

            cmd = "convert "

            if not @args.empty?
                cmd += "#{@args.join(' ')} "
            end

            cmd += "#{@filename} #{outname}"

            PDFToImage.exec(cmd)

            return true
        end
Image constructor

 @param pdf_name [String] The name of the PDF
 @param filename [String] The name of the image for the specified page
 @param page [Integer] The page number of the PDF
 @param page_size [Hash] Hash containing width and height dimensions of the page
 @param page_count [integer] The number of pages in the PDF

 Saves the converted image to the specified location

 @param outname [String] The output filename of the image