0.0.13 • Published 7 years ago

xcd-pdf v0.0.13

Weekly downloads
55
License
-
Repository
github
Last release
7 years ago

xcd-pdf

Install

npm install xcd-pdf

Or, install it globally:

sudo npm install xcd-pdf -g

To update with latest version:

sudo npm update xcd-pdf -g

Code Example

// Getting the cordinates of texts

	var XcdPdf = require('./index.js');
	var xcdPdf = new XcdPdf();

	var option = {
		pdfFile : './response.pdf',
		text : ['text1', 'text2','text3']
	}

	xcdPdf.getTextCordinates(option, function(err, data){
		console.log(err, JSON.stringify(data))
	});

// Change the color of the texts

	var XcdPdf = require('./index.js');
	var xcdPdf = new XcdPdf();
	var option = {
		pdfFile : './response.pdf',
		outputFile : './output.pdf',
		text : ['text1', 'text2','text3'],
		color : 'Red'
	}

	xcdPdf.changeTextColor(option, function(err, data){
		console.log(err, JSON.stringify(data))
	});

// Get the pdf details

	var XcdPdf = require('./index.js');
	var xcdPdf = new XcdPdf();
	var option = {
		pdfFile : './response.pdf'
	}

	xcdPdf.getPageDetails(option, function(err, data){
		console.log(err, JSON.stringify(data))
	});
0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago