Aspose.PDF Cloud
Aspose.PDF Cloud is a REST API for creating and editing PDF files. It can also be used to convert PDF files to different formats like DOC, HTML, XPS, TIFF and many more. Aspose.PDF Cloud gives you control: create PDFs from scratch or from HTML, XML, template, database, XPS or an image. Render PDFs to image formats such as JPEG, PNG, GIF, BMP, TIFF and many others. Aspose.PDF Cloud helps you manipulate elements of a PDF file like text, annotations, watermarks, signatures, bookmarks, stamps and so on. Its REST API also allows you to manage PDF pages by using features like merging, splitting, and inserting. Add images to a PDF file or convert PDF pages to images.
Installing
You can install Aspose PDF Cloud SDK with RubyGem:
gem install aspose_pdf_cloud
Source files
This SDK is open source and available on GitHub and CodePlex.
- Aspose.PDF Cloud SDK for Ruby - v1.0.0 (GitHub)
- Aspose.PDF Cloud SDK for Ruby - v1.0.0 (CodePlex)
Usage
APIs of this SDK can be called as follows:
require 'aspose_pdf_cloud'
class AsposePDFUsage
include AsposePDFCloud
include AsposeStorageCloud
def initialize
#Get App key and App SID from https://cloud.aspose.com
AsposeApp.app_key_and_sid("APP_KEY", "APP_SID")
@pdf_api = PDFApi.new
end
def convert_document_to_tiff
#Convert document from request content to tiff format.
file_name = "Sample.pdf"
response = @pdf_api.put_convert_document(File.open("data/" << file_name,"r") { |io| io.read }, {format: "tiff"})
end
end
Aspose.PDF Cloud SDK Examples
Programmer’s Guide, a complete manual on programming with Aspose.PDF Cloud APIs. It holds the wealth of features with sample codes and capabilities.
- Create Empty PDF
- Create PDF from HTML
- Convert PDF to Images, TIFF, DOC, HTML and other Formats
- Merge Multiple PDF Files
- Split PDF Files
- Create PDF from TIFF
- Move PDF Pages to New Locations in a PDF File
- Get All Document Properties from a PDF
- Update a Form Field in a PDF Document
- Get all Text Items from a PDF Document
- Replace Text in a PDF Page
- [Add Text Stamp (Watermark) to a PDF Page][3] to a PDF Page")
- Get all Attachments from a PDF
- Get all Annotations from a PDF Page
Unit Tests
To help you get started we also provided unit test coverage to Aspose.PDF APIs.
Start a Free Trial Today
Start a free trial today – all you need is to [sign up][4] with Aspose Cloud service. Once you have signed up, you are ready to try powerful file processing features offered by Aspose Cloud.
[3]: https://www.aspose.com/docs/display/pdfcloud/Add+Text+Stamp+%28Watermark%29+to+a+PDF+Page “Add Text Stamp (Watermark [4]: https://dashboard.aspose.cloud/