Skip to content

Could not load library "zlib1" The specified module could not be found. #118

Open
@charles-r-smith

Description

@charles-r-smith

Hello,

When I try to run the below code, I get an error "could not load library "zlib1"
The specified module could not be found." I looked and it seems like the library was renamed at some point and that has caused issues with other packages - JuliaIO/GZip.jl#83

Code here:

function getPDFText(src, out)
# handle that can be used for subsequence operations on the document.
doc = pdDocOpen(src)

# Metadata extracted from the PDF document. 
# This value is retained and returned as the return from the function. 
docinfo = pdDocGetInfo(doc) 
open(out, "w") do io

    # Returns number of pages in the document       
    npage = pdDocGetPageCount(doc)

    for i=1:npage
    
        # handle to the specific page given the number index. 
        page = pdDocGetPage(doc, i)
        
        # Extract text from the page and write it to the output file.
        pdPageExtractText(io, page)

    end
end
# Close the document handle. 
# The doc handle should not be used after this call
pdDocClose(doc)
return docinfo

end

getPDFText(pdf_path, txt_path)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions