the problem seems to be with the path. You are trying to access files that are in the docs
folder but have the path as guidenlines/docs/
.
Changing the code to look like this should solve your problem:
df = pdf_converter(directory_path="./docs/")
I would also suggest using the os module, it will allow for interoperability between different operating systems. A few links for your reference ( Link 1 , Link 2 ).
As for what I can observe right now, using the following code should suffice your use case:
import os
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
docs_path = os.path.join(BASE_DIR, "docs")
Your example is public thus you could access it via URL https://github.com/hebaarch/guidenlines/tree/main/docs
OR provide links to individual docs like this
https://github.com/hebaarch/guidenlines/raw/main/docs/FIRE%20AND%20LIFE%20SAFETY%20CODE_Page24.pdf
https://github.com/hebaarch/guidenlines/blob/main/docs/FIRE%20AND%20LIFE%20SAFETY%20CODE_Page24.pdf
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.