jrmuizel / pdf-extract

A rust library for extracting content from pdfs
364 stars 73 forks source link

Removed panics, todos, asserts, and unwraps in the lib code, and formatted code for improved readability. #91

Open darxkies opened 3 weeks ago

darxkies commented 3 weeks ago

There are a lot of changes. Most of them are probably empty lines. I put them in so that I could read the code better to change it.

I tested them constantly to make sure they did not affect the functionality. The test cases are ok too. But there is still testing to be done.

If the pull request goes through, I will try to improve the error messages.

I might also look at updating the code to use the latest version of euclid. Some function calls have disappeared and the functionality has changed a bit.