Skip to content

Commit da2083f

Browse files
committed
List modes that can be used when saving PDFs
1 parent 4e5e7e0 commit da2083f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/handbook/image-file-formats.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,8 +1457,13 @@ PDF
14571457
^^^
14581458

14591459
Pillow can write PDF (Acrobat) images. Such images are written as binary PDF 1.4
1460-
files, using either JPEG or HEX encoding depending on the image mode (and
1461-
whether JPEG support is available or not).
1460+
files. Different encoding methods are used, depending on the image mode.
1461+
1462+
* 1 mode images are saved using TIFF encoding, or JPEG encoding if libtiff support is
1463+
unavailable
1464+
* L, RGB and CMYK mode images use JPEG encoding
1465+
* P mode images use HEX encoding
1466+
* RGBA mode images use JPEG2000 encoding
14621467

14631468
.. _pdf-saving:
14641469

0 commit comments

Comments
 (0)