Skip to content

Commit

Permalink
Minor changes in the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Apr 25, 2022
1 parent 3d4dcf4 commit 5091d36
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions docs/going_further.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ Going Further
Why pydyf?
-------------

pydyf has been created to replace Cairo PDF generation in WeasyPrint_.
pydyf has been created to replace Cairo_ PDF generation in WeasyPrint_.

Indeed, there are some bugs in WeasyPrint caused by Cairo_ and Cairo has some
difficulties to make releases.
Also there are features which will be easier to implement while having more
control on the PDF generation.
Indeed, there were some bugs in WeasyPrint caused by Cairo, and new versions of
Cairo can take a long time to be released. There are also many features that
are easier to implement with more control on the PDF generation.

So we created pydyf.

Expand All @@ -20,13 +19,13 @@ So we created pydyf.
Why Python?
-----------

Python is a really good language to design a small, OS-agnostic parser. As it
is object-oriented, it gives the possibility to follow the specification with
high-level classes and a small amount of very simple code.
Python is a really good language to design a small, OS-agnostic library. As it
is object-oriented, it gives the possibility to follow the PDF specification
with high-level classes and a small amount of very simple code.

And of course, WeasyPrint is written in Python too, giving an obvious reason
for this choice.

Speed is not pydyf’s main goal. Code simplicity, maintainability and
flexibility are more important goals for this library, as they give the
ability to stay really close to the specification and to fix bugs easily.
Speed is not pydyf’s main goal. Code simplicity, maintainability and
flexibility are more important goals for this library, as they give the ability
to stay really close to the specification and to fix bugs easily.

0 comments on commit 5091d36

Please sign in to comment.