Gunakake DOC Conversion REST API kanggo nggawe alur kerja dokumen sing disesuaikan ing Ruby. Iki minangka solusi profesional kanggo ngowahi DOC dadi PDF lan format dokumen liyane kanthi online nggunakake Ruby.
Ngonversi file DOC menyang format PDF ing Ruby. Pustaka Ruby iki dirancang kanggo ngowahi file DOC menyang macem-macem format file nggunakake REST API.
Konversi API DOC menyang PDF ngidini pangembang Ruby ngonversi DOC dadi PDF kanthi gampang lan njupuk kauntungan saka loro format file kasebut.
Ngonversi format file saka DOC menyang PDF minangka tugas sing rumit. Kabeh transisi format DOC menyang PDF ditindakake dening Ruby SDK, nalika njaga isi struktural lan logis utama dokumen DOC sumber.
Pustaka Ruby minangka solusi profesional kanggo ngowahi file DOC, PDF kanthi online. Cloud SDK iki menehi Ruby pangembang fungsi kuat lan output PDF kualitas sampurna.
Conto Ruby ing ngisor iki nggunakake API Konversi bakal miwiti kanthi cepet.
require 'aspose_words_cloud'
AsposeWordsCloud.configure do |config|
config.client_data['ClientId'] = '####-####-####-####-####'
config.client_data['ClientSecret'] = '##################'
end
@words_api = WordsAPI.new
doc = File.open('Input.doc')
request = ConvertDocumentRequest.new(document: doc, format: 'pdf')
convert = @words_api.convert_document(request)
Instal Aspose.Words Cloud SDK for Ruby nggunakake layanan hosting RubyGems. gem install aspose_words_cloud kanggo nginstal paket kasebut. Minangka alternatif, sampeyan bisa kanthi manual kloning Aspose.Words Cloud SDK for Ruby saka GitHub lan nggunakake ing project. Tututi Instructions iki supaya cepet entuk kredensial keamanan sing dibutuhake lan ngakses REST API kita.
Ruby 2.6 utawa luwih anyar
Deleng Repository Documentation kanggo ndeleng rincian.
Sampeyan bisa ngowahi DOC menyang akeh format file liyane: