From 0890b06d60de67011bee4d8e30c91658858b3025 Mon Sep 17 00:00:00 2001 From: Martin Thoma Date: Fri, 15 Apr 2022 13:48:49 +0200 Subject: [PATCH] TST: Add test for inline images (#758) Credits to Sebastian Krause for creating the PDF: https://github.com/py-pdf/PyPDF2/pull/331#issuecomment-1093783640 Co-authored-by: Sebastian Krause --- Resources/reportlab-inline-image.pdf | Bin 0 -> 1537 bytes Tests/test_page.py | 2 ++ 2 files changed, 2 insertions(+) create mode 100644 Resources/reportlab-inline-image.pdf diff --git a/Resources/reportlab-inline-image.pdf b/Resources/reportlab-inline-image.pdf new file mode 100644 index 0000000000000000000000000000000000000000..e38695c590f5bc7465e125d8893727a30cd51131 GIT binary patch literal 1537 zcmb7E&34*G6yED8rq02DYxFN92vrVo}6l-nS1B{e)G*O1zo?U$%a(==kLG1qLAd2@d2KpcO)YWa}p!4KrxNhE0S@v z?up2-niNg7fSon1?X3$>7U#~oY{pF%L@grvU{ zo;l=M z9;AFAae_Pa9!)@2k=3wd-L~q;F*Vt78V;HwCBRH{T7UEiNkP{vA_dxXCdwAALacz% zXh=AOQUpZGh}=U-YY$DKK%|6}1Ek=tj2O-~A%$K-yH)~l-fP7K(;aH! z=mU+R-}8c;(hN32RqP6V#KOZIr*yFw!`h3{Uh^eosDd+^J*?=us3OH<1oMPuT~S%3 z+tgKES53{*3`5n;nyQsmwY;+v&fhsA+8!h`hS>wEp%p51J0I>y2Qvi4?K%@c57JP|x z-4cNc4!5w9-r-y0w?&7YDTih-aOJe0^bbDA(~|LKTD`&%>m7`4`yu<~pln7dZhpRS zSZ#H48+V)J_$COCKQ3?IH>$FKWt4jOGVrppoBx!&=~U*nd{n)<#Lnq}HQL^w>Ux!C zt&wZpNhv>Cz8*QjdBYob+zX?NX*_g)ZVg!d*TLCUA=CLy=%;PJde(_q`` zb}rmAGM7~3Nb1vv>Xv0#XpWwAHsCKlls)M*72d`(ovy*le5NzCmv*KD)99I&9(yRkoS__v;Q{+$@&^HYHzdQ1ZvfXcOP5New`ace E4FevvO#lD@ literal 0 HcmV?d00001 diff --git a/Tests/test_page.py b/Tests/test_page.py index 91c49bab1..bed852080 100644 --- a/Tests/test_page.py +++ b/Tests/test_page.py @@ -21,6 +21,7 @@ ), (os.path.join(RESOURCE_ROOT, "imagemagick-images.pdf"), None), (os.path.join(RESOURCE_ROOT, "imagemagick-lzw.pdf"), None), + (os.path.join(RESOURCE_ROOT, "reportlab-inline-image.pdf"), None), ], ids=[ "crazyones", @@ -29,6 +30,7 @@ "libreoffice-writer-password", "imagemagick-images", "imagemagick-lzw", + "reportlab-inline-image" ], ) def test_page_operations(pdf_path, password):