Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if(inludes){
selectNext = true;
}
});
}
if(srcFilePath){
srcFilePath = oxutil.resolvePath(srcFilePath, process.cwd());
// console.log('srcFilePath', srcFilePath);
if(srcFilePath){
new pdfreader.PdfReader().parseFileItems(srcFilePath, function(
err,
item
) {
if(err){
console.log('err', err);
}
if (item && item.page) {
// end of file, or page
printRows();
var result = findedValue === expectValue;
if(item && item.page){
console.log('---');
return new Promise(function(resolve, reject) {
if(!path || !text){
reject(`Bad params, path and text required, now path: ${path}, text: ${text}`);
}
const srcFilePath = path;
const searchStr = text.replace(/\s/g, '');
if(srcFilePath){
new pdfreader.PdfReader().parseFileItems(srcFilePath, function(
err,
item
) {
if(err){
let errorMessage = 'unexpected PdfReader error';
if(err.data && err.data.message){
errorMessage = err.data.message;
}
throw new OxError(errHelper.errorCode.ASSERT_ERROR, errorMessage );
}
if (item && item.page) {
// end of file, or page
let result = checkRows(searchStr, rows);
var PdfReader = require('pdfreader').PdfReader;
var Rule = require('pdfreader').Rule;
function displayValues(values) {
console.log('=>', values);
}
var processItem = Rule.makeItemProcessor([
Rule.on(/^Du ([^\s]+) au\s+(.+)/).extractRegexpValues().then(displayValues),
]);
new PdfReader().parseFileItems('20151102_RELEVE DE COMPTE_00360070251.pdf', function(err, item){
processItem(item);
});
var PdfReader = require('pdfreader').PdfReader;
var Rule = require('pdfreader').Rule;
function displayValues(values) {
console.log('=>', values);
}
var processItem = Rule.makeItemProcessor([
Rule.on(/^Du ([^\s]+) au\s+(.+)/).extractRegexpValues().then(displayValues),
]);
new PdfReader().parseFileItems('20151102_RELEVE DE COMPTE_00360070251.pdf', function(err, item){
processItem(item);
});
var PdfReader = require('pdfreader').PdfReader;
var Rule = require('pdfreader').Rule;
function displayValues(values) {
console.log('=>', values);
}
var processItem = Rule.makeItemProcessor([
Rule.on(/^Du ([^\s]+) au\s+(.+)/).extractRegexpValues().then(displayValues),
]);
new PdfReader().parseFileItems('20151102_RELEVE DE COMPTE_00360070251.pdf', function(err, item){
processItem(item);
});
var PdfReader = require('pdfreader').PdfReader;
var Rule = require('pdfreader').Rule;
function displayValues(values) {
console.log('=>', values);
}
var processItem = Rule.makeItemProcessor([
Rule.on(/^Du ([^\s]+) au\s+(.+)/).extractRegexpValues().then(displayValues),
]);
new PdfReader().parseFileItems('20151102_RELEVE DE COMPTE_00360070251.pdf', function(err, item){
processItem(item);
});