jorisschellekens / borb

borb is a library for reading, creating and manipulating PDF files in python.
https://borbpdf.com/
Other
3.37k stars 148 forks source link

Question : How to draw separation line #207

Closed lguerard closed 1 month ago

lguerard commented 1 month ago

Sorry, more of a stupid question than a real feature request.

What's the best way to draw a separation line between part of my document ? Something that separates, like on this document.

I had a look and wanted to draw a very thin rectangle, but if I understood correctly, this requires the coordinates of the rectangle, and I'm not sure how to get the current position on the page. I also tried using a Table of a single line, but couldn't figure out how to reduce the thickness of the line. Setting up the padding with Decimal(0.01) didn't change much...

Thanks for your help! !

jorisschellekens commented 1 month ago

Hi Laurent,

I visited your link (to the example document) on my phone. It took me to a spam-page that tried to play a video.

Do not post this kind of link again. I do not want people visiting the previous issues, and getting their computer infested with malware.

Concerning your issue:

Kind regards, Joris Schellekens

lguerard commented 1 month ago

Sorry about the link, I just did a quick search and linked the first website/image that I could find with a separation line. This was really not intentional.

I'll post on Stackoverflow then, thanks a lot !