diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/api_reference.rst | 4 | ||||
-rw-r--r-- | docs/changelog.rst | 36 | ||||
-rw-r--r-- | docs/common_use_cases.rst | 7 |
3 files changed, 42 insertions, 5 deletions
diff --git a/docs/api_reference.rst b/docs/api_reference.rst index 80bf16c..0ceb6c5 100644 --- a/docs/api_reference.rst +++ b/docs/api_reference.rst @@ -7,13 +7,17 @@ API Reference :members: .. autoclass:: Dictionary + :show-inheritance: .. autoclass:: Stream :members: + :show-inheritance: .. autoclass:: String + :show-inheritance: .. autoclass:: Array + :show-inheritance: .. autoclass:: PDF :members: diff --git a/docs/changelog.rst b/docs/changelog.rst index 3eb90e6..f652602 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,40 @@ Changelog ========= +Version 0.6.0 +------------- + +Released on 2023-03-29. + +New features: + +* Add an option to use compressed object streams for PDF 1.5+, with financial support from Code & Co. +* Add new text operators +* Clean and fix documentation + +Backers and sponsors: + +* Kobalt +* Grip Angebotssoftware +* Spacinov +* Crisp BV +* Castedo Ellerman +* Manuel Barkhau +* SimonSoft +* Menutech +* KontextWork +* NCC Group +* René Fritz +* Moritz Mahringer +* Yanal-Yvez Fargialla +* Piotr Horzycki +* Healthchecks.io +* Hammerbacher +* TrainingSparkle +* Synapsium + + + Version 0.5.0 ------------- @@ -10,7 +44,7 @@ Released on 2022-10-11. New features: * Add the PDF.page_references property -* Revert the PDF.pages['Kids'] behavior to be retro-compatible with version 0.3.0 +* Revert the PDF.pages['Kids'] behavior to be backwards compatible with version 0.3.0 Backers and sponsors: diff --git a/docs/common_use_cases.rst b/docs/common_use_cases.rst index 45e2d3d..b045fa6 100644 --- a/docs/common_use_cases.rst +++ b/docs/common_use_cases.rst @@ -97,7 +97,7 @@ Display image document = pydyf.PDF() - extra = Dictionary({ + extra = pydyf.Dictionary({ 'Type': '/XObject', 'Subtype': '/Image', 'Width': 197, @@ -158,9 +158,9 @@ Display text # And display it text = pydyf.Stream() text.begin_text() - text.set_font_size('F1', 24) + text.set_font_size('F1', 20) text.text_matrix(1, 0, 0, 1, 10, 90) - text.show_text(pydyf.String('Hello World')) + text.show_text(pydyf.String('Bœuf grillé & café'.encode('macroman'))) text.end_text() document.add_object(text) @@ -179,4 +179,3 @@ Display text with open('document.pdf', 'wb') as f: document.write(f) - |