Skip to content

aspose-pdf-cloud/aspose-pdf-cloud-ruby

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 

Gem Gem GitHub license

Ruby REST API to Process PDF in Cloud

Aspose.PDF Cloud is a true REST API that enables you to perform a wide range of document processing operations including creation, manipulation, conversion and rendering of PDF documents in the cloud.

Our Cloud SDKs are wrappers around REST API in various programming languages, allowing you to process documents in language of your choice quickly and easily, gaining all benefits of strong types and IDE highlights. This repository contains new generation SDKs for Aspose.PDF Cloud and examples.

These SDKs are now fully supported. If you have any questions, see any bugs or have enhancement request, feel free to reach out to us at Free Support Forums.

Extract Text & Images of a PDF document online https://products.aspose.app/pdf/parser.

PDF Processing Features

  • Add PDF document's header & footer in text or image format.
  • Add tables & stamps (text or image) to PDF documents.
  • Append multiple PDF documents to an existing file.
  • Work with PDF attachments, annotations, & form fields.
  • Apply encryption or decryption to PDF documents & set a password.
  • Delete all stamps & tables from a page or entire PDF document.
  • Delete a specific stamp or table from the PDF document by its ID.
  • Replace single or multiple instances of text on a PDF page or from the entire document.
  • Extensive support for converting PDF documents to various other file formats.
  • Extract various elements of PDF files & make PDF documents optimized.

Read & Write PDF Formats

PDF, EPUB, HTML, TeX, SVG, XML, XPS, FDF, XFDF

Save PDF As

XLS, XLSX, PPTX, DOC, DOCX, MobiXML, JPEG, EMF, PNG, BMP, GIF, TIFF, Text

Read PDF Formats

MHT, PCL, PS, XSLFO, MD

Enhancements in Version 23.9

  • Support to convert password protected PDF documents to PDFA.
  • A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.

Bugs fixed in Version 23.9

  • Rotate Property not working with FreeTextAnnotation.
  • PutAnnotationsFlatten not working correctly when passing multiple annotation types.

Installation

Build a gem

To build the Ruby code into a gem:

gem build aspose_pdf_cloud.gemspec

Then either install the gem locally:

gem install ./aspose_pdf_cloud-23.9.0.gem

(for development, run gem install --dev ./aspose_pdf_cloud-23.9.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'aspose_pdf_cloud', '~> 23.9.0'

Install from Git

The Ruby gem is hosted at a git repository: https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-ruby . Add the following in the Gemfile:

gem 'aspose_pdf_cloud', :git => 'https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-ruby.git'

Get PDF Page Annotations in Ruby

    # Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).

    AsposePdfCloud.configure do |config|
            config.client_data['ClientId'] = 'MY_CLIENT_ID'
            config.client_data['ClientSecret'] = 'MY_CLIENT_SECRET'
            config.host = host
    
	file_name = 'PdfWithAnnotations.pdf'
	page_number = 2
	opts = {
	  :folder => 'tempFolder'
	}

	response = @pdf_api.get_page_annotations(file_name, page_number, opts)

Unit Tests

Aspose PDF SDK includes a suite of unit tests within the "test" subdirectory. These Unit Tests also serves as examples of how to use the Aspose PDF SDK.

Licensing

All Aspose.PDF Cloud SDKs are licensed under MIT License.

About

Ruby library for communicating with the Aspose.PDF Cloud API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages