colrev.ops.pdf_prep_man.PDFPrepMan

class PDFPrepMan(*, review_manager, notify_state_transition_operation=True)[source]

Bases: Operation

Prepare PDFs manually

Methods

apply_pdf_prep_man

Apply PDF prep man from csv/bib

check_precondition

Check the operation precondition

conclude

Conclude the operation (stop Docker containers)

decorate

Decorator for operations

discard

Discard records whose PDFs need manual preparation (set to pdf_not_available)

extract_coverpage

Extract coverpage from PDF

extract_lastpage

Extract last page from PDF

extract_needs_pdf_prep_man

Apply PDF prep man to csv/bib

extract_pages

Extract pages from PDF

get_data

Get the data for PDF prep man

main

rtype:

Any

notify

Notify the review_manager about the next operation

pdf_prep_man_stats

Determine PDF prep man statistics

pdfs_prepared_manually

Check whether PDFs were prepared manually

set_pdf_man_prepared

Set the PDF to manually prepared

Attributes

type

apply_pdf_prep_man()[source]

Apply PDF prep man from csv/bib

Return type:

None

check_precondition()

Check the operation precondition

Return type:

None

conclude()

Conclude the operation (stop Docker containers)

Return type:

None

classmethod decorate()

Decorator for operations

Return type:

Callable

discard()[source]

Discard records whose PDFs need manual preparation (set to pdf_not_available)

Return type:

None

extract_coverpage(*, filepath)[source]

Extract coverpage from PDF

Return type:

None

extract_lastpage(*, filepath)[source]

Extract last page from PDF

Return type:

None

extract_needs_pdf_prep_man()[source]

Apply PDF prep man to csv/bib

Return type:

None

extract_pages(*, filepath, pages_to_remove)[source]

Extract pages from PDF

Return type:

None

get_data()[source]

Get the data for PDF prep man

Return type:

dict

notify(*, state_transition=True)

Notify the review_manager about the next operation

Return type:

None

pdf_prep_man_stats()[source]

Determine PDF prep man statistics

Return type:

None

pdfs_prepared_manually()[source]

Check whether PDFs were prepared manually

Return type:

bool

set_pdf_man_prepared(record)[source]

Set the PDF to manually prepared

Return type:

None