Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CharlesRSmith44 opened this issue Jan 21, 2025 · 2 comments

Comments

@CharlesRSmith44
Copy link

CharlesRSmith44 commented Jan 21, 2025

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)

@sambitdash
Copy link
Owner

@CharlesRSmith44, we may need the sample PDF file as the Gzip will be called depending on the FlateCodec in the PDF file. Without the file, it will be hard to pinpoint the issue. Please upload the file if you can.

@sambitdash
Copy link
Owner

Seems similar to #110. Can you try a fresh setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants