
    r)h@#                     D    S SK JrJrJrJr  S SKJrJrJr   " S S5      r	g)   )TextDirectionDuplexPageBoundariesPageMode)build_obj_dictcreate_dictionary_stringNamec                      \ rS rSrSrSSSSSS\R                  SSSSSSSSS4S jrS r\	S 5       r
\
R                  S 5       r
\	S	 5       r\R                  S
 5       r\	S 5       r\R                  S 5       r\	S 5       r\R                  S 5       r\	S 5       r\R                  S 5       r\	S 5       r\R                  S 5       r\	S 5       r\R                  S 5       r\	S 5       r\R                  S 5       r\	S 5       r\R                  S 5       r\	S 5       r\R                  S 5       r\	S 5       r\R                  S 5       rSS jrSrg) ViewerPreferences   z?Specifies the way the document shall be displayed on the screenFNc                     SU l         Xl         X l         X0l         X@l         XPl         X`l         Xpl         Xl         Xl	         Xl
         Xl         Xl         Xl         Xl         Xl         UU l        g )Nz1.3)_min_pdf_versionhide_toolbarhide_menubarhide_window_u_i
fit_windowcenter_windowdisplay_doc_titlenon_full_screen_page_mode
num_copiesprint_page_range	directionduplex	view_area	view_clip
print_area
print_clipprint_scaling)selfr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   s                    EC:\Users\13-19\Desktop\Lekcja\testEnv\Lib\site-packages\fpdf/prefs.py__init__ViewerPreferences.__init__   s    & !&(	 )	  /	
 %	 +	 "3	 *C&	 %	
 !1	 #	 	 #	
 #	
 %	
 %	
 +	    c                 :    [        U R                  U5      U l        g N)maxr   )r   versions     r    _set_min_pdf_version&ViewerPreferences._set_min_pdf_version}   s     #D$9$97 Cr#   c                     U R                   $ r%   )_non_full_screen_page_moder   s    r    r   +ViewerPreferences.non_full_screen_page_mode   s    ...r#   c                     Uc  S O[         R                  " U5      U l        U R                  [         R                  [         R                  4;   a  [        U R                   S35      eg )Nz3 is not a supported value for NonFullScreenPageMode)r   coercer+   FULL_SCREENUSE_ATTACHMENTS
ValueErrorr   )r   	page_modes     r    r   r-      sl     %D8??9+E 	' **  $$/
 
 1122ef 	
r#   c                     U R                   $ r%   )_num_copiesr,   s    r    r   ViewerPreferences.num_copies       r#   c                 8    Ub  U R                  S5        Xl        g Nz1.7)r(   r5   )r   r   s     r    r   r6      s    !%%e,%r#   c                     U R                   $ r%   )_print_page_ranger,   s    r    r   "ViewerPreferences.print_page_range   s    %%%r#   c                 8    Ub  U R                  S5        Xl        g r9   )r(   r;   )r   r   s     r    r   r<      s    '%%e,!1r#   c                     U R                   $ r%   )
_directionr,   s    r    r   ViewerPreferences.direction       r#   c                 P    Uc  S U l        g [         R                  " U5      U l        g r%   )r   r/   r?   )r   r   s     r    r   r@      s    "+"3$9M9Mi9Xr#   c                     U R                   $ r%   )_display_doc_titler,   s    r    r   #ViewerPreferences.display_doc_title   s    &&&r#   c                 @    U(       a  U R                  S5        Xl        g Nz1.4)r(   rD   )r   r   s     r    r   rE      s    %%e,"3r#   c                     U R                   $ r%   )_duplexr,   s    r    r   ViewerPreferences.duplex   s    ||r#   c                 x    Ub  U R                  S5        Uc  S U l        g [        R                  " U5      U l        g r9   )r(   r   r/   rI   )r   r   s     r    r   rJ      s0    %%e,%~t6==3Hr#   c                     U R                   $ r%   )
_view_arear,   s    r    r   ViewerPreferences.view_area   rA   r#   c                 x    Ub  U R                  S5        Uc  S U l        g [        R                  " U5      U l        g rG   )r(   r   r/   rM   )r   r   s     r    r   rN      :     %%e,%D 	+9+@+@+K 	r#   c                     U R                   $ r%   )
_view_clipr,   s    r    r   ViewerPreferences.view_clip   rA   r#   c                 x    Ub  U R                  S5        Uc  S U l        g [        R                  " U5      U l        g rG   )r(   r   r/   rR   )r   r   s     r    r   rS      rP   r#   c                     U R                   $ r%   )_print_arear,   s    r    r   ViewerPreferences.print_area   r7   r#   c                 x    Ub  U R                  S5        Uc  S U l        g [        R                  " U5      U l        g rG   )r(   r   r/   rV   )r   r   s     r    r   rW      <    !%%e,&D 	,:,A,A*,M 	r#   c                     U R                   $ r%   )_print_clipr,   s    r    r   ViewerPreferences.print_clip   r7   r#   c                 x    Ub  U R                  S5        Uc  S U l        g [        R                  " U5      U l        g rG   )r(   r   r/   r[   )r   r   s     r    r   r\      rY   r#   c                     U R                   $ r%   )_print_scalingr,   s    r    r   ViewerPreferences.print_scaling   s    """r#   c                     Uc  S U l         g U R                  S5        US;  a  [        SU< S35      e[        U5      U l         g )Nz1.6)None
AppDefaultzInvalid print_scaling=z value provided)r_   r(   r2   r	   )r   r   s     r    r   r`      sM     "&D!!%( 666'7GHH"=1r#   c           
      ~    [        [        U 5       Vs0 s H  o3[        X5      _M     snUUS9n[        U5      $ s  snf )N)_security_handler_obj_id)r   dirgetattrr   )r   re   rf   keyobj_dicts        r    	serializeViewerPreferences.serialize   sB    !03D	:	'$$$	:/

 (11	 ;s   :)r?   rD   rI   r   r+   r5   rV   r[   r;   r_   rM   rR   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )NN)__name__
__module____qualname____firstlineno____doc__r   USE_NONEr!   r(   propertyr   setterr   r   r   r   r   r   r   r   r   r   rk   __static_attributes__ r#   r    r   r      sK   E "*"3"3#sjD / / %%
 &
     & &
 & & 2 2
   Y Y ' ' 4 4
   ]]I I
   
 
   
 
     
 
     
 
 # # 2 22r#   r   N)
enumsr   r   r   r   syntaxr   r   r	   r   rv   r#   r    <module>ry      s    B B B B@2 @2r#   