Skip to content

Commit

Permalink
fix for problem with poppler and annotation color
Browse files Browse the repository at this point in the history
  • Loading branch information
jlegewie committed Jan 26, 2015
1 parent 00c5d7e commit 3accf03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chrome/content/zotfile/zotfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3549,6 +3549,10 @@ Zotero.ZotFile = {
var outputFile=file.path.replace(".pdf",".txt");
Zotero.ZotFile.runProcess(this.popplerExtractorPath, [file.path, outputFile]);
var annotations = this.popplerExtractorGetAnnotationsFromFile(outputFile);
annotations = annotations.map(function(anno) {
anno.color = [0, 0, 0];
return anno;
});
if(annotations.length!=0) this.createNote(annotations, item, att, "poppler");

// delete output text file
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ Contributions preferably through pull requests are welcome!

## Changelog

#### Changes in 4.1.2

- fix for problem with poppler-based extraction and annotation color

#### Changes in 4.x (4.0, 4.1 and 4.1.1)

- **Goto annotation in pdf**
Expand Down

0 comments on commit 3accf03

Please sign in to comment.