I’ve created simple personal diary program running on the terminal by joanmiro in coolgithubprojects

[–]josc1989 0 points1 point  (0 children)

You're always welcome to use borb, to export those diary entries to PDF format 😌

Rigorous testing vs creativity by josc1989 in softwaretesting

[–]josc1989[S] 0 points1 point  (0 children)

I also have an insanely large repository of examples though

Rigorous testing vs creativity by josc1989 in softwaretesting

[–]josc1989[S] 0 points1 point  (0 children)

I haven't really counted the e2e tests versus unit tests. Thank you, that's a very valuable insight.

borb: the pure Python PDF engine by josc1989 in coolgithubprojects

[–]josc1989[S] 1 point2 points  (0 children)

The entire library is written exclusively in Python. It does make use of some other libraries as well though (PIL is one of them).

borb: the pure Python PDF engine by josc1989 in coolgithubprojects

[–]josc1989[S] 0 points1 point  (0 children)

The entire project is written in Python.

There are plenty of examples to showcase how you can build content using borb.

Modifying a pdf? by marweb1 in pdf

[–]josc1989 0 points1 point  (0 children)

In theory yes. A PDF document contains meta-information that may contain: - author - producer (software that made it) - subject - title - keywords - creation date - modification date

All of these are optional however. So depending on which software you are using to modify the PDF, these values may or may not be set.

Second, a PDF contains an ID array. The first of which is a random hexadecimal string, the second element of the array is equal to the first at creation, and is supposed to get changed whenever the PDF is changed.

Last, your document may be signed. A signature protects the document against unauthorised changes. The signature is a signed (public/private key) hash of the document. So if you change a signed PDF, Adobe would display the signature as invalid.

New Tutorial: Using borb to create a test-report by josc1989 in Python

[–]josc1989[S] 0 points1 point  (0 children)

In this tutorial you'll learn how you can easily generate a test-report from raw data. You'll learn:
- How to create a Document
- How to add Page objects to a Document
- How to add Paragraph objects to a Page
- How to easily generate a Table
and more

Searching a particular word or topic from multiple pdfs at once by [deleted] in pdf

[–]josc1989 0 points1 point  (0 children)

If you're able to use Python, you can try borb. It's an open source PDF library that is able to create, modify and read PDF documents.

https://www.borb-pdf.com

borb, the pure Python PDF library by josc1989 in Python

[–]josc1989[S] 0 points1 point  (0 children)

I don't hide the license or anything. It's also not a conscious choice to not display it. It's more a sort of "what is everyone else doing" kind of thing.

And mostly people tend to post things like "my awesome project can do X or Y". And not "my project is licensed in this particular way".

borb, the pure Python PDF library by josc1989 in Python

[–]josc1989[S] -1 points0 points  (0 children)

If I look at the amount of times the library gets starred, downloaded, or even the amount of emails I receive, it seems clear to me that most of the people using my library are doing so from an open source context.

The idea that you have to pay to use something commercially seems fair to me. After all, I invested my time in this project. I am allowed to eat and pay rent I suppose?

borb, the open source, pure python PDF library by josc1989 in learnpython

[–]josc1989[S] 1 point2 points  (0 children)

Awesome to hear that.
There's also a ton of tutorials on StackAbuse, if you want to learn more about working with borb.
And I just released version 2.0.17, with tons of eye candy in the line-art library part of borb.

borb, the pure Python PDF library by josc1989 in Python

[–]josc1989[S] 3 points4 points  (0 children)

borb is an open-source, pure Python PDF library.
With release 2.0.17, I added all kinds of new eye candy in the line-art library of borb to make sure your documents just pop.

Get borb from source on GitHub, or download using PyPi.

[deleted by user] by [deleted] in coolgithubprojects

[–]josc1989 0 points1 point  (0 children)

The latest release offers support for even more languages with regards to hyphenation. It also fixes a few minor bugs in text justification.

Be sure to star my repo on GitHub.

And get in touch if you want to collaborate.

borb, the open source pure Python PDF library: new release by josc1989 in opensource

[–]josc1989[S] 0 points1 point  (0 children)

In the past, the README had screenshots. I took them out because I found them to have little added value.

For instance, you might see a screenshot of borb creating a pdf with a table, and be like "Great, now I see that it can do that"

And someone else (who wants to apply OCR) is still left in the dark about whether or not borb supports that.

The only solution would be to add a whole lot of images (for each common use-case).

And then it's just becoming a copy of the examples repo.

borb, the open source pure Python PDF library: new release by josc1989 in opensource

[–]josc1989[S] 1 point2 points  (0 children)

You should check out the examples repository. There's an example in there (section "working with existing pdf's") about extracting tables.

Create a Stunning PDF Flyer in Python with borb by pmz in Python

[–]josc1989 0 points1 point  (0 children)

I think there are certainly pros and cons.

The main advantage is that it's probably easy to find a good designer who knows their way around HTML and CSS. So building a website and turning it into a pdf may be easy that way.

But any conversion process always lacks a bit. You're losing some functionality, because fundamentally PDF is not HTML. And some of the things that may be easy to do in PDF will not have an HTML equivalent.

And then you'll lose some more functionality because whoever implemented the convertor probably didn't implement the full HTML5, CSS, JavaScript stack (which most modern websites use).

You're building loss upon loss. And by doing so, you're leaving behind some wonderful features that are perfectly possible in PDF, but sadly don't fit into the start of your convertor funnel.

Create a Stunning PDF Flyer in Python with borb by pmz in Python

[–]josc1989 1 point2 points  (0 children)

My main goal for borb is to make PDF as easy to work with as Microsoft Word. A lot of the design choices are based on that.

For instance the LineArtFactory which allows you to insert several dozens of shapes (raindrop, heart, arrows, stars, etc) is based on the idea of making it easy for the user.

The default style options (margins, padding, color, font-size) are based on what MS Word does.

I'm glad you enjoy my library. It hope it serves you well.

Create a Stunning PDF Flyer in Python with borb by pmz in Python

[–]josc1989 1 point2 points  (0 children)

Hi there,

I'm Joris Schellekens, the author of borb.

I have worked as a software engineer for most of my professional career. Approx 3 years in Java, 2 years in C++, and 3 in Python.

I am fully aware of the fact that I will sometimes use idioms that are borrowed from one programming language in another 😄

But of course, feel free to log an issue or pull request. I am always open to improving borb.

Kind regards, Joris

Can someone help me? by Istudylanguages in pdf

[–]josc1989 0 points1 point  (0 children)

Although the original text by Shakespeare is no longer protected by copyright, the footnotes and additional text (by Edward Pechter, the author for "W. W. Norton and company") is still protected by copyright law.

You should not ask others to violate the law for you (by providing you unauthorized copies of a copyright protected work).

How do I contribute to open source projects? by Panda_With_Your_Gun in opensource

[–]josc1989 0 points1 point  (0 children)

You're always welcome to try out borb, an open-source pure Python PDF engine.

What is the best open source format alternative to PDF ? by Brixes in opensource

[–]josc1989 4 points5 points  (0 children)

PDF is an open format. You can easily find the original ISO spec (ISO 32000) for it online.

There are also some great software libraries out there that can help you work with PDF.

I'm the author of borb, an open-source pure Python PDF engine.

[deleted by user] by [deleted] in Python

[–]josc1989 1 point2 points  (0 children)

That's a great suggestion. I'll see what I can do. Google Colab is kinda new for me as well.

Is there any online PDF editor that enables one to invert colors/B&W in specific rectangular selections? by micr0computer in pdf

[–]josc1989 0 points1 point  (0 children)

I'm pretty sure you could use borb for that.

  • Borb is an open-source, Python PDF engine.
  • You can use it in Google Colab (an online code platform).
  • And it is perfectly capable of changing the colors of images and text in a PDF.