akbertram / annotations_exporter

The code in this repository illustrates how to read annotations from spreadsheet files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Annotations Exporter

The code in this repository illustrates how to read annotations from spreadsheet files, created by this annotation tool.

In the ./jar folder you can find two executables. The RangeAnnotationsExporter.jar will export the annotations as were recorded by the annotation tool. The CellAnnotationsExporter.jar exports the annotations at cell granularity. It ommits cells that are hidden, empty, or blank (i.e., containing only white space characters). Both executables export annotations in a CSV format. An example usage is shown below:

$ java -jar CellAnnotationsExporter.jar -inPath "/path/to/annotated/files" -outPath "/path/to/export/file" [-asMerged]

       -inPath INPATH           The path to the directory that holds the annotated Excel files.

       -outPath OUTPATH     The path to the file where the exported annotations will be written

       -asMerged                   (Optional) When this flag is used, the merged areas of the sheet
                                            will be treated as single cell annotations. Otherwise, if not used,
                                            each cell in the merged area will be exported individually.
                                            This option is not available for RangeExportAnnotations.jar

For more details on the implementation of these executables, refer to the CellAnnotationExporter.java and RangeAnnotationExporter.java in ./src/de/tudresden/xr/main. As well as check the the ./src/de/tudresden/xr/utils/WorkbookUtils.java

Dependencies:

  • Java 8
  • Apache POI v3.17

About

The code in this repository illustrates how to read annotations from spreadsheet files


Languages

Language:Java 100.0%