Verified Owner
Top Fields Constructors Methods
org.jabref.logic.pdf

public Class PdfAnnotationImporter

extends Object
implements AnnotationImporter
Class Inheritance
All Implemented Interfaces
org.jabref.logic.pdf.AnnotationImporter
Imports
java.io.IOException, java.nio.file.Files, .Path, java.util.Arrays, .LinkedList, .List, .Locale, .Optional, org.jabref.model.pdf.FileAnnotation, .FileAnnotationType, org.apache.pdfbox.Loader, org.apache.pdfbox.cos.COSArray, .COSName, org.apache.pdfbox.pdmodel.PDDocument, .PDPage, .PDPageTree, org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation, org.jspecify.annotations.NonNull, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private FileAnnotation
createMarkedAnnotations(int pageIndex, PDPage page, PDAnnotation annotation)

public List<FileAnnotation>

Returns:

a list with the all the annotations found in the file of the path
importAnnotations
(final Path
a path to a pdf
path
)

Implements org.jabref.logic.pdf.AnnotationImporter.importAnnotations.

Imports the comments from a pdf specified by its path

private boolean
private boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

PdfAnnotationImporterback to summary
public PdfAnnotationImporter()

Method Detail

createMarkedAnnotationsback to summary
private FileAnnotation createMarkedAnnotations(int pageIndex, PDPage page, PDAnnotation annotation)
importAnnotationsback to summary
public List<FileAnnotation> importAnnotations(final Path path)

Implements org.jabref.logic.pdf.AnnotationImporter.importAnnotations.

Imports the comments from a pdf specified by its path

Parameters
path:Path

a path to a pdf

Returns:List<FileAnnotation>

a list with the all the annotations found in the file of the path

Annotations
@Override
isSupportedAnnotationTypeback to summary
private boolean isSupportedAnnotationType(PDAnnotation annotation)
validatePathback to summary
private boolean validatePath(@NonNull Path path)