-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Pdf2Text #736
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
Pdf2Text #736
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Amit366 if i put my path like the below it will give me the error . It occurs because i used This a normal string as a path. To overcome this just put r
before your normal string it converts normal string to raw string. So change this so that everyone can use your project .
Moreover , there could be more error i think . Please @kaustubhgupta check this carefully thank you :)
@Kushal997-das on running the script it asks the user to enter the url. But as I can see you have changed input part. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why there are flappy bird game files in this PR?
@kaustubhgupta I am really sorry |
I will remove that |
Don't remove them one by one. Just delete this branch, and create new PR from new branch |
@kaustubhgupta I already deleted and also commited it |
It doesn't matter if you give input runtime or not it gives you same error as same input . |
|
@Kushal997-das I made the changes |
@Amit366 Yeah i saw . @kaustubhgupta Could you please run this code in your local because in my system this program is not working properly . |
@Kushal997-das is it showing any error?? |
PDF2Text/Readme.md
Outdated
|
||
Sit back and Relax. Let the Script do the Job. ☕ | ||
|
||
### Requirements |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Requirements | |
## Requirements |
PDF2Text/script.py
Outdated
|
||
st += page.getPage(i).extractText() | ||
|
||
with open('./PDF2Text/pages/text.txt','w') as f: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will not work as there is no folder named "pages".
@kaustubhgupta made the changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No text gets extracted from PDFs. Only blank test files were generated. Test the script locally and fix the bugs.
Same problem i also faced @kaustubhgupta |
@kaustubhgupta it's working fine for me |
@kaustubhgupta do I thing. Place the PDF file into the script folder. Then try once. |
It's not about the path, it' about: no text was present in the files. I tested this for my resume, the document with text only |
@kaustubhgupta then how is it working for me |
I will send the pics. |
I am not the only one @Amit366 |
Send one gif of this even in my case i faced same problem . |
@Amit366 Okay got it. Include these Screenshots in the readme file too. Name that section: "Expected Output" |
@kaustubhgupta I have placed the pics into the readme |
@kaustubhgupta please review it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kaustubhgupta please review it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@kaustubhgupta it was a level 2 issue but it is given level 1. Please check. |
@kaustubhgupta can u please check the level |
Yes, the level was initially 2 but as you submitted the code, 3 days ago, we changed it to level 1 as the code doesn't work for all types of files plus the Code Quality was not up to level2 |
@kaustubhgupta if the script is run in Vs code it will run fine .Once try it out, it works for all types of files (pdf files) |
Description
Converts a pdf file to text file
Fixes #608
Have you read the Contributing Guidelines on Pull Requests?
Yes