Dynamically Create, Manipulate or Transform PDF Documents in Cloud

No Software Download required. Create, Manipulate, Convert or Protect PDF files using Aspose.PDF Cloud SDK for Node.js.

  Start Free Trial
Aspose.PDF Cloud SDK for Node.js

Aspose.PDF Cloud SDK for Node.js

 
 

Aspose.PDF Cloud SDK for Node.js is developed on top of RESTful API and provides the capabilities to create, edit and convert PDF files stored in the cloud. The PDF documents can be created from a number of other file formats including PCL, EPUB, HTML, XML and images. Similarly, you can convert PDF documents to various other formats including HTML, DOC, PPTC, XLS, JPEG, TIFF, TXT and much more.

While manipulating PDF file elements, it also enables you to manage Images, Hyperlinks and Attachments as well as facilities in common operations such as manipulation of PDF document properties, Splitting, Merging & Signing of PDF documents.

 

Advanced PDF documents processing Features

 

 

Create new PDF documents

 

Split PDF document into single page documents

 

Convert PDF documents to DOC, HTML, XPS or Image Format

 

Merge multiple PDF documents

 

Convert HTML pages to PDF documents

 

Convert SVG files to PDF documents

 

Digitally sign PDF documents

 

Extract & update text & images in PDF documents

 

Add text, Image, Page Number or PDF page as Watermark

 

Extract Annotations, Signatures, Bookmarks, TextFragments, Form Fields

 

Update form fields

 

Count number of words on each page of a PDF

Comprehensive support for various File formats

Aspose.PDF Cloud SDK for Node.js offers the capabilities to quickly and reliably create new PDF files, edit and manipulate existing PDF files or convert to and from various supported document formats with a high degree of precision. The SDK offers the feature to convert PDF document various popular formats including DOC, HTML, PDF/A, PDF/A-1a, PDF/A-1b, SVG, EPUB, PPTX, LaTeX, MOBIXML, XPS, XML and XLS format. Nevertheless, it has great capabilities when it comes to the conversion of PDF files to image formats including PNG, JPEG, GIF, BMP, TIFF and much more.

TIFF to PDF conversion - Node.js


// Instantiate Aspose Storage SDK
var storageApi = new StorageApi(config);
// Instantiate Aspose.Pdf SDK
var pdfApi = new PdfApi(config);
// Upload file to aspose cloud storage
storageApi.PutCreate("Sample.tiff", null, null, data_path + "Sample.tiff", function(responseMessage) {
	assert.equal(responseMessage.status, 'OK');

	// Invoke Aspose.Pdf Cloud SDK to create PDF file from TIFF
	pdfApi.PutCreateDocument("Sample-tiff.pdf", "Sample.tiff", null, "tiff", null, null, function(responseMessage) {
			assert.equal(responseMessage.status, 'OK');

			// Download pdf from cloud storage
			storageApi.GetDownload("Sample-tiff.pdf", null, null, function(responseMessage) {
				assert.equal(responseMessage.status, 'OK');
				var writeStream = fs.createWriteStream(data_path + "Sample-tiff_out.pdf");
				writeStream.write(responseMessage.body);
				});
		});
	});

Manipulate PDF Document elements

Apart from PDF creation and manipulation, the SDK also brings the leverage to manage / manipulate PDF elements such as Attachments, Annotations, Stamps, Form Fields, Signatures, PDF properties, Metadata, Text, Images etc. When it comes to manipulating Text Fragments, the SDK provides all the features you need to handle text in a PDF file. Most useful operations include find and replace text, remove or extract text from PDF and replace text using a regular expression and so on.

Split & Merge PDF Documents

Aspose.PDF Cloud SDK for Node.js allows you to Split all or specific pages of a PDF to a new PDF or you can also Merge multiple PDF files into a single PDF document. The SDK provides great capabilities when it comes to manipulation/working with individual page within document. Get the capabilities to Move PDF pages to New Location in same document, Delete pages from PDF file, Retrieve individual PDF page information, Get PDF page count information and also Get Word count from PDF document.

Merge Multiple PDF Files - Node.js


// Instantiate Aspose Storage SDK
var storageApi = new StorageApi(config);
// Instantiate Aspose.Pdf SDK
var pdfApi = new PdfApi(config);
var mergeDocumentsBody = {
		'List' : ["Sample.pdf", "sample-input.pdf"]
};

// Upload file to aspose cloud storage
storageApi.PutCreate("sample-merged.pdf", null, null, '../../../Data/'+ "sample-merged.pdf", function(responseMessage) {
	assert.equal(responseMessage.status, 'OK');

	storageApi.PutCreate("Sample.pdf", null, null, '../../../Data/'+ "Sample.pdf", function(responseMessage) {
		assert.equal(responseMessage.status, 'OK');

		storageApi.PutCreate("sample-input.pdf", null, null, '../../../Data/'+ "sample-input.pdf", function(responseMessage) {
			assert.equal(responseMessage.status, 'OK');

			// Invoke Aspose.Pdf Cloud SDK to merge multiple PDF files
			pdfApi.PutMergeDocuments("sample-merged.pdf", null, null, mergeDocumentsBody, function(responseMessage) {
					assert.equal(responseMessage.status, 'OK');

					// Download merged pdf from storage server
					storageApi.GetDownload("sample-merged.pdf", null, null, function(responseMessage) {
						assert.equal(responseMessage.status, 'OK');
						var writeStream = fs.createWriteStream('../../../Data/'+ "sample-merged_out.pdf");
						writeStream.write(responseMessage.body);
						});
				});
			});
		});
	});

Working with Form Fields

Aspose.PDF Cloud SDK for Node.js provides the capabilities to work with individual elements inside PDF file. You can use this single SDK to create, edit, manipulate and delete Pages, Form Fields, Images, Text, Annotations, Bookmarks, Links, Attachments, Text and Image watermark stamps. When dealing with Form Fields, you can create a New Form field inside PDF file, Get one or more Form fields from PDF file or even update the value inside existing Form field.

Get all Form Fields from PDF - Node.js


var storageApi = new StorageApi(config);
var pdfApi = new PdfApi(config);

// Upload file to aspose cloud storage
storageApi.PutCreate("sample-input-2.pdf", null, null, '../../../Data/'+ "sample-input-2.pdf", function(responseMessage) {
	assert.equal(responseMessage.status, 'OK');

	// Invoke Aspose.Pdf Cloud SDK to get all of the form fields from the PDF document
	pdfApi.GetFields("sample-input-2.pdf", null, null, function(responseMessage) {
			assert.equal(responseMessage.status, 'OK');
			responseMessage.body.Fields.List.forEach(function(field) {
				console.log("Name: " + field.Name + "  Type: " + field.Type);				
				});
			});
	});

Digitally Sign the PDF Documents

Aspose.PDF Cloud SDK for Node.js helps you secure PDF file using different methods. You can add encryption, set up owner and user passwords as well as sign a PDF file using signature to protect the PDF file. You can also remove the signatures and de-crypt the PDF files.

 

Support and Learning Resources