0.0.13 • Published 8 years ago

xcd-pdf v0.0.13

Weekly downloads
55
License
-
Repository
github
Last release
8 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

8 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago