Comparing version 1.2.9 to 1.2.10
{ | ||
"name": "pdfreader", | ||
"version": "1.2.9", | ||
"version": "1.2.10", | ||
"description": "Read text and parse tables from PDF files. Supports tabular data with automatic column detection, and rule-based parsing.", | ||
@@ -49,9 +49,9 @@ "main": "index.js", | ||
"@semantic-release/git": "^9.0.0", | ||
"@semantic-release/npm": "^7.0.6", | ||
"eslint": "^7.9.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"prettier": "2.1.2", | ||
"semantic-release": "^17.1.2" | ||
"@semantic-release/npm": "^7.1.3", | ||
"eslint": "^7.26.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"prettier": "2.3.0", | ||
"semantic-release": "^17.4.3" | ||
} | ||
} |
@@ -170,16 +170,16 @@ # pdfreader ![Node CI](https://github.com/adrienjoly/npm-pdfreader/workflows/Node%20CI/badge.svg) [![Code Quality](https://api.codacy.com/project/badge/Grade/73d37dbb0ff84795acf65a55c5936d83)](https://www.codacy.com/app/adrien-joly/npm-pdfreader?utm_source=github.com&utm_medium=referral&utm_content=adrienjoly/npm-pdfreader&utm_campaign=Badge_Grade) | ||
new pdfreader.PdfReader().parseFileItems("CV_ErhanYasar.pdf", function ( | ||
err, | ||
item | ||
) { | ||
if (!item || item.page) { | ||
// end of file, or page | ||
printRows(); | ||
console.log("PAGE:", item.page); | ||
rows = {}; // clear rows for next page | ||
} else if (item.text) { | ||
// accumulate text items into rows object, per line | ||
(rows[item.y] = rows[item.y] || []).push(item.text); | ||
new pdfreader.PdfReader().parseFileItems( | ||
"CV_ErhanYasar.pdf", | ||
function (err, item) { | ||
if (!item || item.page) { | ||
// end of file, or page | ||
printRows(); | ||
console.log("PAGE:", item.page); | ||
rows = {}; // clear rows for next page | ||
} else if (item.text) { | ||
// accumulate text items into rows object, per line | ||
(rows[item.y] = rows[item.y] || []).push(item.text); | ||
} | ||
} | ||
}); | ||
); | ||
``` | ||
@@ -186,0 +186,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38861