How to merge PDF documents (jquery) for PDF merging API in ...



How to merge PDF documents (jquery) for PDF merging API in JavaScript using PDF.co Web API

How to merge PDF documents (jquery) for PDF merging API in JavaScript: How To Tutorial

Today you are going to learn how to merge PDF documents (jquery) in JavaScript. PDF merging API in JavaScript can be implemented with PDF.co Web API. PDF.co Web API is the Rest API that provides set of data extraction functions, tools for documents manipulation, splitting and merging of pdf files. Includes built-in OCR, images recognition, can generate and read barcodes from images, scans and pdf. Fast application programming interfaces of PDF.co Web API for JavaScript plus the instruction and the code below will help to learn how to merge PDF documents (jquery). For implimentation of this functionality, please copy and paste code below into your app using code editor. Then compile and run your app. You can use these JavaScript sample examples in one or many applications. Our website provides free trial version of PDF.co Web API that includes source code samples to help with your JavaScript project.

FOR MORE INFORMATION AND FREE TRIAL:

Download Free Trial SDK (on-premise version) Read more about PDF.co Web API Explore API Documentation Get Free Training for PDF.co Web API Get Free API key for Web API visit

Source Code Files:

merge.js

$(document).ready(function () { $("#resultBlock").hide(); $("#errorBlock").hide(); $("#result").attr("href", '').html('');

});

$(document).on("click", "#submit", function () { $("#resultBlock").hide(); $("#errorBlock").hide(); $("#inlineOutput").text(''); // inline output div $("#status").text(''); // status div

var apiKey = $("#apiKey").val().trim(); //Get your API key at

var formData = new FormData(); formData.append('name', 'result.pdf');

// Append files in input request formData.append('file[]', $("#form input[type=file]")[0].files[0]); formData.append('file[]', $("#form input[type=file]")[1].files[0]);

$("#status").html('Processing...     ');

$.ajax({ url: '', type: 'POST', headers: { 'x-api-key': apiKey }, data: formData, contentType: false, // NEEDED, DON'T OMIT THIS (requires jQuery 1.6+) processData: false, // NEEDED, DON'T OMIT THIS success: function (result) { $("#status").text('Success!');

$("#resultBlock").show(); $("#inlineOutput").html(' ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download