You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
@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.
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)
end
getPDFText(pdf_path, txt_path)
The text was updated successfully, but these errors were encountered: