summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-04-03 07:29:25 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-04-03 07:29:25 +0000
commitf51044f9873a900b1aa8e25ae90cccaa41d22fb8 (patch)
tree79bf8b4cb018a95f1a16b7a6e84c38127cbe76c4 /docs
parentReleasing debian version 0.5.0-3. (diff)
downloadpydyf-f51044f9873a900b1aa8e25ae90cccaa41d22fb8.tar.xz
pydyf-f51044f9873a900b1aa8e25ae90cccaa41d22fb8.zip
Merging upstream version 0.6.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'docs')
-rw-r--r--docs/api_reference.rst4
-rw-r--r--docs/changelog.rst36
-rw-r--r--docs/common_use_cases.rst7
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)
-