5

Since ReportLab does not support Python 3 I am now attempting to generate PDF with cairo, which works but lacks text-wrapping support. The next step seems to require pango and its Python-bindings, but I cannot find any information on how to install this for Windows.

1
  • 2
    My question is now over five years old and outdated -- Reportlab is available for Python 3 and probably has been for a while: pypi.org/project/reportlab Commented Aug 8, 2018 at 6:27

3 Answers 3

0

You can use Anaconda's conda package manager. But, what i found from the personal experiment that the pango works with python3 and cairo works with python2. and You my friend is stuck in middle.

Sign up to request clarification or add additional context in comments.

Comments

0

The easiest way to install Pango on Windows is probably to install GTK, which bundles it.

You can find Windows installers on GitHub.

This is the method recommended by WeasyPrint (another PDF library for Python).

Comments

-3

For Mac you can use Brew to install Pango:

brew install pango

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.