-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Headings and Title styles #1080
Comments
Hi @dmail00 Thank you for reporting this 🙂
Why did you wish to use both features at the same time?
|
I already have that, Some of the text I am rendering is known and has headings, whilst other text comes from files on disk which are not know by the code and can include headings. You current solution is fine, I have hacks for all the issues I have reported. |
Alright. If you wish to contribute to Otherwise, I will close this issue. |
Well this one seems simple enough. In write_html cache the section_title_styles and replace with an empty dict, restore the cached vesion on exiting the method. |
If I understand you correctly, I think we can close this issue given that PR #1083 was merged to alert users in the future |
Describe the bug
When generating documents I use normal mode pdf.write ... and HTML (well it is actually markdown which gets converted by python-markdown yet that is off topic). A problem is that PDF has headings and so does HTML, but in the codebase they are offset of one and you have to specify the sizes in two locations.
The problem happens when you do define TitleStyles and use HTML headings,
Either:
Error details
X:\foo\bar\baz
is a replacement for the real pathMinimal code
Environment
Please provide the following information:
fpdf2
version used: 2.7.7The text was updated successfully, but these errors were encountered: