
    li                         d dl Z d dlZd dlZd dlmZ d dlmZ  ej                  d      Z
d Zd Z e         e j                  e       y)    N	pypdfium2c                      t         j                  rJ t        j                  rt        j                  d       t        j                  dd d d      } t        j                  |        dt         j                  _	        y )NzInitialize PDFium   r   )versionm_pUserFontPaths
m_pIsolatem_v8EmbedderSlotT)
pdfium_iLIBRARY_AVAILABLEpypdfium2_cfgDEBUG_AUTOCLOSEloggerdebugpdfium_cFPDF_LIBRARY_CONFIGFPDF_InitLibraryWithConfigvalue)configs    U/app/cer_product_mecsu/.venv/lib/python3.12/site-packages/pypdfium2/_library_scope.pyinit_libr      sc    ))))$$() ))	F ''/'+H$    c                      t         j                  sJ t        j                  d       t        j                          dt         j                  _        y )NzDestroy PDFiumF)r
   r   _debug_closer   FPDF_DestroyLibraryr    r   r   destroy_libr       s:    %%%%*+  "',H$r   )atexitloggingr   pypdfium2.rawrawr   pypdfium2.internalinternalr
   	getLoggerr   r   r   registerr   r   r   <module>r%      sI         %			;	',&- 	
  r   