Skip to content

How to add indent to the first line of each paragraph #1405

Answered by Lucas-C
pmaevsk asked this question in Q&A
Discussion options

You must be logged in to vote

I already tried this method, and I am concerned about how defined indent looks differently for different paragraphs, possibly due to different text length and aligning with "J" method.

You are right, this won't work well with justified text 😞

It would be nice to support "proper" paragraph indents as part of fpdf2.

I just opened PR #1406 as a potential implementation for them.

You can test by installing fpdf2 from this PR branch:

pip install git+https://github.com/py-pdf/fpdf2.git@first_line_indent

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@pmaevsk
Comment options

@Lucas-C
Comment options

Answer selected by pmaevsk
@pmaevsk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants