Skip to content

Conversation

@SAUMILDHANKAR
Copy link

  • Added the readme file with instructions to use the files in csvtopdf folder which will convert the csv file to a pdf file.
  • This will help users to generate pdf files from csv files.
  • I added all the files in chatgpt and requested to create a readme file.

@SAUMILDHANKAR
Copy link
Author

Sorry I need to cleanup the readme file so marked it draft for now.

@SAUMILDHANKAR SAUMILDHANKAR marked this pull request as ready for review May 24, 2025 03:57
@drakeredwind01
Copy link
Owner

Files Included

"— Uses pandas and pdfkit for conversion." type entries are redundent just add once under requriemts

add requriments.txt for all ".py" files in project

Running the Scripts

can add sugjestion to change this
add "You can replace the input CSV filename in the scripts with your own."

Notes

remove "You can replace the input CSV filename in the scripts with your own."

license

link to "LICENSE.MD"

@SAUMILDHANKAR
Copy link
Author

Hi @drakeredwind01 I updated the readme file as suggested and added the requirements text files. I was able to generate pdf from all the methods but had to make some code changes. Should I push those code changes as well? Please see the pdf files that I got. Looking forward to your feedback. Thank you.
output (1).pdf
output (2).pdf
output3.pdf

@drakeredwind01
Copy link
Owner

cool. looks great!
you did a good job.
i'll be able to review the others a lot faster if you tell me in the saturday meetup you finished it.
and if you did and i forget please do remind me.

@drakeredwind01
Copy link
Owner

✨ Feature: Added CSV to PDF conversion scripts and documentation

This commit introduces a new set of utility scripts under Projects/csvtopdf/ to demonstrate different methods for converting CSV files into PDF format.

Key changes include:

  • readme.md: A comprehensive README detailing the project, included files, required libraries, and instructions for running the three different conversion scripts.
  • Three Conversion Scripts:
    • csv to .pdf .py: Uses pandas and pdfkit (requires wkhtmltopdf).
    • csv to .pdf 2.py: Uses the specialized csv2pdf library.
    • csv to .pdf 3.py: Uses reportlab for manual, low-level PDF generation.
  • Sample Data: Included annual-enterprise-survey-2021-financial-year-provisional-csv small.csv (a small sample) and the full annual-enterprise-survey-2021-financial-year-provisional-csv.csv for testing.
  • Requirements Files: Added specific requirements1.txt.txt, requirements2.txt.txt, and requirements3.txt.txt for each conversion method.

This addition provides clear, working examples of CSV-to-PDF functionality using popular Python libraries.

@SAUMILDHANKAR
Copy link
Author

Hi @drakeredwind01, thanks for your review. Your previous comment about key changes included is very helpful, I should have added something similar at the top.
If there is something else you would like me to change or some other next steps, please let me know. Once this is done, I can take a look at the next one. Thank you.

For the next PRs I will remember to bring it up during/after the Saturday meetup. Also, I may not join the the meetup for this week and next, because I want to use the meeting time to work on my meetup presentation.

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

Successfully merging this pull request may close these issues.

2 participants