+
    f0i                     6    ^ RI Ht ^ RIHt ^ RIHt R tR tR# )    )PathN)Lazyc                     V P                  R RR\        R7       V P                  RRR\        RR7       V P                  R	R
RR7       R# )images+zInput images)nargshelptypez--outputz-oTzTarget path for the new PDF)requiredr
   r	   z--inline
store_truez9If JPEG, whether to use PDFium's inline loading function.)actionr	   N)add_argumentr   )parsers   &]/Users/agent/.openclaw/workspace/venv/lib/python3.14/site-packages/pypdfium2/_cli/imgtopdf.pyattachr   
   sb    
	   D,	   J      c                    \         P                  P                  4       pV P                   EFe  p\         P                  P                  V4      pVP
                  P                  4       R9   d   VP                  W P                  R7       Mo\        P                  P                  V4      p\         P                  P                  V4      pVP                  4        VP                  V4       VP                  4        VP!                  4       w  rgVP#                  \         P$                  ! 4       P'                  Wg4      4       VP)                  Wg4      pVP+                  V4       VP-                  4        VP                  4        VP                  4        EKh  	  VP/                  V P0                  4       VP                  4        R# ).jpg)inlineN)r   z.jpeg)pdfiumPdfDocumentnewr   PdfImagesuffixlower	load_jpegr   r   	PIL_Imageopen	PdfBitmapfrom_pilclose
set_bitmapget_px_size
set_matrix	PdfMatrixscalenew_page
insert_objgen_contentsaveoutput)	argspdffp	image_obj	pil_imagebitmapwhpages	   &        r   mainr5      s6    


 
 
"CkkOO'',	 99?? 11;;7++B/I%%..y9FOO  (LLN$$&f..066q<>||A!	"

+ . HHT[[IIKr   )	pathlibr   pypdfium2._helpers_helpersr   pypdfium2._lazyr   r   r5    r   r   <module>r;      s     #  ( r   