Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.

pdf-to-text - #219

Merged
AdityaJ7 merged 5 commits into
Python-World:masterfrom
pi1814:master
Sep 20, 2020
Merged

AdityaJ7 merged 5 commits into
Python-World:masterfrom
pi1814:master

Conversation

@pi1814

@pi1814 pi1814 commented Sep 9, 2020

Copy link
Copy Markdown
Contributor

Description

A short summary of what is included in your Pull Request.

Fixes #216

Replace issue_no in the above line, with the issue related to this PR.

Type of change

Choosing one or more options from the following as per the nature of your Pull request.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation Update

Checklist:

Please tick all the boxes that are fulfilled by your Pull Request.

  • I have named my files and folder, according to this project's guidelines.
  • My code follows the style guidelines of this project.
  • My Pull Request has a descriptive title. (not a vague title like Update index.md)
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have created a helpful and easy to understand README.md, according to the given README_TEMPLATE.
  • I have included a requirements.txt file (if external libraries are required.)
  • My changes do not produce any warnings.
  • I have added a working sample/screenshot of the script.


import PyPDF2

pdfobj = open('/path/to/pdf', 'rb') #Provide the path for your pdf here

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ask user input for pdf file

Suggested change
pdfobj = open('/path/to/pdf', 'rb') #Provide the path for your pdf here
file_path =input('FilePath:')
pdfobj = open(file_path 'rb') #Provide the path for your pdf here

@AdityaJ7
AdityaJ7 merged commit 9ebe6a3 into Python-World:master Sep 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write a script to convert PDF files to text

3 participants