Coder Social home page Coder Social logo

bvalgard / create-pdf-with-python-fpdf2 Goto Github PK

View Code? Open in Web Editor NEW
52.0 7.0 48.0 2.68 MB

How to create a PDF with Python using fpdf2. You can watch the YouTube videos on this here https://youtube.com/playlist?list=PLjNQtX45f0dR9K2sMJ5ad9wVjqslNBIC0

Python 100.00%

create-pdf-with-python-fpdf2's People

Contributors

bvalgard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

create-pdf-with-python-fpdf2's Issues

create pdf with non english text

Good job with these amazing projects.
I want to create a pdf with the Persian text. and issued with bellow error.
I appreciate it if you could help me

code:
image

error:
p = self.pages[n].encode("latin1") if PY3K else self.pages[n]
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 204-209: ordinal not in range(256)

Error using uneven

When i try to specify the parameter uneven, it shows this error

line 125, in create_table
col_width = get_col_widths()
line 86, in get_col_widths
for col in range(len(table_data[0])): # for every row
KeyError: 0

Facility to Create Tables without the header

I love this repo. Thanks for this helper class. It reduces lots of time in formatting the table.

However, I have small request to make this work without a table header too.

Probably, *arg as header =False and hence the header column won't be appearing.

`ENCODING ERROR`

Hi. I am having an issue with FPDF2.

I have a database as shown below.

image

Now, I want to create a pdf using these data.
However, the username field in the database has a different encoding.
When the PDF is created everything is working except for the username encoding problem.

image

Can you help?

AttributeError: 'FPDF' object has no attribute 'epw'

When I try adding an image to a pdf with self._pdf.image("portrait.png", w=self._pdf.epw) I recieve AttributeError: 'FPDF' object has no attribute 'epw'. The only solution I found online was to try pip install fpdf2, but when I tried it, the requirements were met and the problem persists.

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.