Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

extract data from pdf nodejs

// Installation
// npm install pdf-parse

// Basic Usage
const fs = require('fs');
const pdf = require('pdf-parse'); 
let dataBuffer = fs.readFileSync('path to PDF file...'); 
pdf(dataBuffer).then(function(data) {
     /*  number of pages    
	console.log(data.numpages);     
	number of rendered pages    
	console.log(data.numrender);     
	PDF info    
	console.log(data.info);     
	PDF metadata    
	console.log(data.metadata);      
	PDF.js version     
	check https://mozilla.github.io/pdf.js/getting_started/    
	console.log(data.version);     PDF text    console.log(data.text);  */ 
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: what is local storage and session storage in javascript 
Javascript :: change value in array react 
Javascript :: sequelize update 
Javascript :: push pop in javascript 
Javascript :: javascript extract array from object 
Javascript :: grid in js 
Javascript :: react check if browser is in dark mode 
Javascript :: random number between 1 and 10 javascript 
Javascript :: Set CSS styles with javascript 
Javascript :: adding int and string in react props 
Javascript :: python json replace string 
Javascript :: Material-ui account circle icon 
Javascript :: react native push notifications npm 
Javascript :: last item of array javascript 
Javascript :: save or update mongoose 
Javascript :: check if property has value in array javascript 
Javascript :: chrome.contextmenus 
Javascript :: electron hot reload 
Javascript :: destructuring assignment in javascript 
Javascript :: toggle div javascript 
Javascript :: date range picker in angular 8 
Javascript :: double bang js 
Javascript :: validate on submit not working 
Javascript :: ng class project 
Javascript :: javascript dom methods list 
Javascript :: find element vs find elements in selenium 
Javascript :: json parse vs json stringify 
Javascript :: socket io stream 
Javascript :: url 
Javascript :: react copy array 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =