PRISMA.checklist(paper::AbstractString)::Checklist
PRISMA.checklist(bytes::Vector{UInt8})::Checklist
Returns a completed PRISMA checklist as the type Checklist
. The Checklist
type includes a completed checklist as a DataFrame
and the metadata of the paper as a LittleDict
. The paper
argument can be a path to a pdf file or an array of bytes. This function uses the C++ library Poppler
via Poppler_jll
to parse the pdf and the natural language processing functionality in Julia via Flux.jl
and Transformers.jl
to find items from the checklist in the paper and populate the Comments or location in manuscript
and Yes/No/NA
columns in the DataFrame
from checklist_df()
.
The following metadata is parsed from the pdf file and stored in the LittleDict
as:
"title"
: the title of the paper"subject"
: the subject of the paper"author"
: the author of the paper"creator"
: the creator of the paper"producer"
: the producer of the paper"creation date"
: the date the paper was created"modification date"
: the date the paper was last modified"pages"
: the number of pages in the paper"paper size"
: the size of the paper"paper rotation"
: the rotation of the paper"file size"
: the size of the pdf file"optimized"
: whether the pdf was optimized"pdf version"
: the version of the pdf
All keys and values in the dictionary ar eof type String
. If the parsing fails the value will be an empty string.
Arguments
paper::AbstractString
: a path to a pdf file as a stringbytes::Vector{UInt8}
: the pdf data as an array of bytes
Returns
Checklist
: a completed checklist with paper metadata
Examples
Export a completed checklist to an Microsoft® Excel spreadsheet using the XLSX
package.
using PRISMA, XLSX
clist = checklist("manuscript.pdf")
@@ -29,4 +29,4 @@
clist.df[02, "Yes/No/NA"] = "Yes"
clist.df[09, "Yes/No/NA"] = "Yes"
clist.df[10, "Yes/No/NA"] = "Yes"
-