Giter Club home page Giter Club logo

Comments (5)

RubendeBruin avatar RubendeBruin commented on July 18, 2024 2

My preference for this season would be:

image

:-)

But for the rest of the year I think your proposal is a good one.
Just one remark/question: Is the padding supposed to be to the centerline of the border or to the edge of the border? In the picture you posted it appears to be the centerline:

image

from fpdf2.

RubendeBruin avatar RubendeBruin commented on July 18, 2024 1

When the outer border width is not specified then I think the border should be fragmented.

I don't think there was really a use case for the combination of outer border width and padding when I implemented it. Having it continuous would be more efficient.

from fpdf2.

Lucas-C avatar Lucas-C commented on July 18, 2024

Hi @mjasperse and thank you for this report! 👍

To me this seems like a bug.
I looked at the existing test reference PDF files, and to me it would make more sense for them to have an "unbroken" outer border.

Pinging @RubendeBruin about this, as he contributed most of the padding implementation, and may have extra useful information to share regarding this 😊

But it'd be nice to see how you fixed that, so feel free to submit a PR!

from fpdf2.

mjasperse avatar mjasperse commented on July 18, 2024

Before I submit a PR, I want to check what you think of the following change to handle this combination of options:
image

This adds the gutter space inside the outer border, which is compatible with how HTML renders tables with nonzero border-spacing.

from fpdf2.

mjasperse avatar mjasperse commented on July 18, 2024

@RubendeBruin thanks for the observation! I added a padding amount of outer_border_width/2 so that the spacing is more consistent as you pointed out.

from fpdf2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.