Skip to content

Can i make this! by using FPDF2 #354

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

You must be logged in to vote

Hi @ritiksoni00

  1. can I use CSS property like flex stuff??

No, fpdf2 does not support CSS flex, only basic HTML features: https://pyfpdf.github.io/fpdf2/HTML.html#supported-html-features

You may want to check WeasyPrint if you need a broader support for HTML features: https://weasyprint.org

  1. will it affect my CSS style if i run my program on diff browsers?

fpdf2 is a Python library, it generates PDFs and does not "run" in a browser.
The PDFs generated by fpdf2 should be rendered very similarly by different browsers,
but that only depends on their underlying PDF rendering engine (generally: PDF.js)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ritiksoni00
Comment options

Answer selected by ritiksoni00
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