Repository navigation
Replies: 5 comments 15 replies
|
FPDF is helping me to create high quality reports and documents. I really appreciate the community efforts to develop and maintain the project. I would like to suggest a feature to include images in .pdf format. Most graphical libraries (including the famous matplotlib) allow us to save images as .pdf files. This a good choice to save the plot in vector format (rather than bitmaps). I know that FPDF2 supports SVG images, but I've got unexpected results when trying to embed an SVG image into the output PDF file. |
I'd be happy to help you properly embed SVG images in a PDF using |
|
Does I'm looking to understand your framework as I used the old Do we have a running list of functions or errors as a sort of diff between the last version When I import |
|
I would add an |
|
First, let me thank the authors and maintainers for a really exceptional piece of work. This is quality software, and a real pleasure to use. I'd like to request that you consider two additions to the .table() signature/behavior regarding the width of individual columns and the table overall. The current behavior allows control of overall table width only if we're willing to live with equal-width columns, and allows specifying individual column widths only if we're willing to live with a fixed-width table. Ideally, we would be able to take advantage of fpdf2's (excellent) column width apportionment logic most of the time, but be able to override it when needed. And similarly, we'd like to be able to let the table use the entire width most of the time, but make it narrower or wider when needed. Most importantly, we want both at the same time! As background, I first need to point out an error in the documenation: Setting table & column widths¶
(In fact, when a single number is provided, it actually becomes the total width of the table, not just of a column. In this case, all column widths are the same, and are sized to fit within the width.) The current signature has a single parameter, "col_widths". If col_widths is a single value, it uses that value in document units for every column. If it's an iterable, instead of the expected behavior (using the values in document units to control the widths of columns individually), it treats them as relative sizes, but resets the overall width to the effective document width. So, you can either control overall width or relative column size, but not both. Detailed proposal (but we'd be happy with any implementation that gives the same degree of control):
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
fpdf2is a living project: it aims to grow with new features, improvements to existing functionalities, and always more helpful documentation.To do so, we need to know what users of
fpdf2would like to be able to do with this library.This discussion purpose is exactly that: please add comments with suggestions for features & general improvements!
fpdf2in some way?All reactions