Some test text!
Ruby / Guides / Convert PDF to MS Office
Platform
Documentation
Convert PDFs to MS Office (DOCX, XLSX, PPTX) without any external third party dependencies.
lib
and then reference it in the below sample.This sample demonstrates how to convert from a PDF to DOCX file.
$wordOutputOptions = Convert::WordOutputOptions.new()
# Optionally convert only the first page
$wordOutputOptions.SetPages(1, 1);
# Requires the Structured Output module
Convert.toWord(filename, output_filename, $wordOutputOptions)
This sample demonstrates how to convert from a PDF to PPTX file.
$powerPointOutputOptions = Convert::PowerPointOutputOptions.new()
# Optionally convert only the first page
$powerPointOutputOptions.SetPages(1, 1);
# Requires the Structured Output module
Convert.toPowerPoint(filename, output_filename, $powerPointOutputOptions)
This sample demonstrates how to convert from a PDF to XLSX file.
$excelOutputOptions = Convert::ExcelOutputOptions.new()
# Optionally convert only the first page
$excelOutputOptions.SetPages(1, 1);
# Requires the Structured Output module
Convert.toExcel(filename, output_filename, $excelOutputOptions)
Convert PDF files to MS Office
Full sample code which illustrates how to convert PDF to MS Office files (Word, Excel, PowerPoint).
Get the answers you need: Support