
    F j+(                     r    S r SSKJrJr  SSKJrJrJrJr  SSK	J
r
JrJr  \(       a  SSKJr   " S S5      rg	)
zk
Usage documentation at: <https://py-pdf.github.io/fpdf2/PageFormatAndOrientation.html#viewer-preferences>
    )TYPE_CHECKINGOptional   )DuplexPageBoundariesPageModeTextDirection)Namebuild_obj_dictcreate_dictionary_string)StandardSecurityHandlerc            #           \ 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\S\S\S\S	\S
\S\S\\	   S\\
\	      S\\\-     S\\\-     S\\\-     S\\\-     S\\\-     S\\\-     S\\   SS4"S jjrS\SS4S jr\S\\   4S j5       r\R&                  S\\\-     SS4S j5       r\S\\	   4S j5       r\R&                  S\\	   SS4S j5       r\S\\
\	      4S j5       r\R&                  S\\
\	      SS4S j5       r\S\\   4S  j5       r\R&                  S\\\-     SS4S! j5       r\S\4S" j5       r\R&                  S
\SS4S# j5       r\S\\   4S$ j5       r\R&                  S\\\-     SS4S% j5       r\S\\   4S& j5       r\R&                  S\\\-     SS4S' j5       r\S\\   4S( j5       r\R&                  S\\\-     SS4S) j5       r\S\\   4S* j5       r\R&                  S\\\-     SS4S+ j5       r\S\\   4S, j5       r\R&                  S\\\-     SS4S- j5       r\S\\   4S. j5       r\R&                  S\\   SS4S/ j5       r  S5S0\S1   S2\\	   S\4S3 jjrS4r g)6ViewerPreferences   z?Specifies the way the document shall be displayed on the screenFN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returnc                     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_versionr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    )selfr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    s                    [/root/GenerationalWealth/GenerationalWealth/venv/lib/python3.13/site-packages/fpdf/prefs.py__init__ViewerPreferences.__init__   s    & !&(	 )	  /	
 %	 +	 "3	 *C&	 %	
 !1	 #	 	 #	
 #	
 %	
 %	
 +	    versionc                 :    [        U R                  U5      U l        g N)maxr#   )r$   r)   s     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(   	page_modec                     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   coercer0   FULL_SCREENUSE_ATTACHMENTS
ValueErrorr   )r$   r3   s     r%   r   r2      sl     %D8??9+E 	' **  $$/
 
 1122ef 	
r(   c                     U R                   $ r+   )_num_copiesr1   s    r%   r   ViewerPreferences.num_copies       r(   c                 8    Ub  U R                  S5        Xl        g Nz1.7)r-   r:   )r$   r   s     r%   r   r;      s    !%%e,%r(   c                     U R                   $ r+   )_print_page_ranger1   s    r%   r   "ViewerPreferences.print_page_range   s    %%%r(   c                 8    Ub  U R                  S5        Xl        g r>   )r-   r@   )r$   r   s     r%   r   rA      s    '%%e,!1r(   c                     U R                   $ r+   )
_directionr1   s    r%   r   ViewerPreferences.direction       r(   c                 P    Uc  S U l        g [         R                  " U5      U l        g r+   )r	   r5   rD   )r$   r   s     r%   r   rE      s    "+"3$9M9Mi9Xr(   c                     U R                   $ r+   )_display_doc_titler1   s    r%   r   #ViewerPreferences.display_doc_title   s    &&&r(   c                 @    U(       a  U R                  S5        Xl        g Nz1.4)r-   rI   )r$   r   s     r%   r   rJ      s    %%e,"3r(   c                     U R                   $ r+   )_duplexr1   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 r>   )r-   r   r5   rN   )r$   r   s     r%   r   rO      s0    %%e,%~t6==3Hr(   c                     U R                   $ r+   )
_view_arear1   s    r%   r   ViewerPreferences.view_area   rF   r(   c                 x    Ub  U R                  S5        Uc  S U l        g [        R                  " U5      U l        g rL   )r-   r   r5   rR   )r$   r   s     r%   r   rS      :     %%e,%D 	+9+@+@+K 	r(   c                     U R                   $ r+   )
_view_clipr1   s    r%   r   ViewerPreferences.view_clip   rF   r(   c                 x    Ub  U R                  S5        Uc  S U l        g [        R                  " U5      U l        g rL   )r-   r   r5   rW   )r$   r   s     r%   r   rX      rU   r(   c                     U R                   $ r+   )_print_arear1   s    r%   r   ViewerPreferences.print_area   r<   r(   c                 x    Ub  U R                  S5        Uc  S U l        g [        R                  " U5      U l        g rL   )r-   r   r5   r[   )r$   r   s     r%   r   r\      <    !%%e,&D 	,:,A,A*,M 	r(   c                     U R                   $ r+   )_print_clipr1   s    r%   r   ViewerPreferences.print_clip   r<   r(   c                 x    Ub  U R                  S5        Uc  S U l        g [        R                  " U5      U l        g rL   )r-   r   r5   r`   )r$   r   s     r%   r   ra      r^   r(   c                     U R                   $ r+   )_print_scalingr1   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)rd   r-   r8   r
   )r$   r    s     r%   r    re      sM     "&D!!%( 666'7GHH"=1r(   _security_handlerr   _obj_idc           
      ~    [        [        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)ri   rj   )r   dirgetattrr   )r$   ri   rj   keyobj_dicts        r%   	serializeViewerPreferences.serialize	  sD    
 "03D	:	'$$$	:/

 (11	 ;s   :)rD   rI   rN   r#   r0   r:   r[   r`   r@   rd   rR   rW   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r   r   )NN)!__name__
__module____qualname____firstlineno____doc__r   USE_NONEboolr   intlistr	   strr   r   r&   r-   propertyr   setterr   r   r   r   r   r   r   r   r   r
   r    rp   __static_attributes__ r(   r%   r   r      s
   E #" % #"'.6.?.?$(0437)-48485959'+#tt t 	t
 t t  t $,t SMt #49-t MC/0t #&t NS01t NS01t ^c12t  ^c12!t"  }#t$ 
%tlDC DD D /8H+= / / %%
8HsN3K 
PT 
 &
  HSM     &Xc] &t & &
 &(49"5 & & 2$s)1D 2 2 2
 8M2   Y8MC,?#@ YT Y Y '4 ' ' 44 4D 4 4
 (   ]]IXfsl3 I I I
 8N3   
8NS,@#A 
d 
 
 8N3   
8NS,@#A 
d 
 
  H^4     
Xns.B%C 
 
 
  H^4     
Xns.B%C 
 
 
 #x~ # # 28C= 2T 2 2 BF!%
2#$=>
2 #
2 
	
2 
2r(   r   N)rv   typingr   r   enumsr   r   r   r	   syntaxr
   r   r   
encryptionr   r   r   r(   r%   <module>r      s-    + B B B B3E2 E2r(   