Build document processing solutions using Ruby REST API. Use our unified API with different document types without worrying about file format specifics.
Start Free TrialGroupDocs.Parser Cloud SDK for Ruby and is a powerful REST API document data parsing solution that allows to parse over 50 document types. The SDK allows to build document processing automation solutions in a unified way. No matter what document format you receive - PDF or DOCX or any other supported one, you are allowed to extract data with the unified API. Parsing by template is a valuable feature, but the API also provides other methods to extract images and text.
Check our Cloud SDKs for Ruby at GitHub if you are looking for the source code to parse files in the Cloud.
You can try GroupDocs.Parser Low-Code Ruby APIs without any limitations.
GroupDocs.Parser Cloud is also available as Docker image which can be used to self-host the service. Or you may build your own services using GroupDocs.Parser High-code APIs which currently drive both our Free Apps and REST APIs.
GroupDocs.Parser Cloud API, provides several ways to extract images from the documents. You can extract all the images from the whole document, extract images from the specific pages by setting pages range. Following example shows how to extract images from a document by a page number range.
# For complete examples and data files, please go to https://github.com/groupdocs-parser-cloud/groupdocs-parser-cloud-ruby-samples
require 'groupdocs_viewer_cloud'
$app_sid = "XXXX-XXXX-XXXX-XXXX" # Get AppKey and AppSID from https://dashboard.groupdocs.cloud
$app_key = "XXXXXXXXXXXXXXXX" # Get AppKey and AppSID from https://dashboard.groupdocs.cloud
parseApi = GroupDocsParserCloud::ParseApi.from_keys($app_sid, $app_key)
options = GroupDocsParserCloud::ImagesOptions.new
options.file_info = GroupDocsParserCloud::FileInfo.new
options.file_info.file_path = "slides/three-slides.pptx"
options.start_page_number = 1
options.count_pages_to_extract = 2
request = GroupDocsParserCloud::ImagesRequest.new(options)
response = parseApi.images(request)
```