� J�g�����ddlmZmZmZmZddlmZddlmZGd�de��Z Gd�de��Z Gd �d e��Z Gd �d e��Z Gd �de ��Z Gd�de ��ZGd�de ��ZGd�de ��ZGd�de ��ZGd�de ��ZGd�de ��ZGd�de ��ZGd�de ��ZGd�d e ��ZGd!�d"e ��ZGd#�d$e ��ZGd%�d&e ��ZGd'�d(e ��ZGd)�d*e ��ZGd+�d,e ��ZGd-�d.e ��ZGd/�d0e ��ZGd1�d2e ��ZGd3�d4e ��Z Gd5�d6e ��Z!Gd7�d8e ��Z"Gd9�d:e ��Z#Gd;�d<e ��Z$Gd=�d>e ��Z%Gd?�d@e ��Z&GdA�dBe ��Z'GdC�dDe ��Z(GdE�dFe��Z)GdG�dHe ��Z*GdI�dJe��Z+GdK�dLe��Z,GdM�dNe��Z-GdO�dPe ��Z.GdQ�dRe ��Z/GdS�dTe ��Z0GdU�dVe ��Z1GdW�dXe ��Z2dYS)Z�)�Enum�IntEnum�Flag�IntFlag)�intern�)�Namec��eZdZdZ dZdS)� SignatureFlagr�N)�__name__� __module__� __qualname__�SIGNATURES_EXIST� APPEND_ONLY���Z/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/fpdf/enums.pyr r s"��������A��K��rr c�*�eZdZdZedd���ZdS)� CoerciveEnumzQAn enumeration that provides a helper to coerce strings into enumeration members.Fc�V�t||��r|St|t��rj ||��S#t$rYnwxYw |r||n||���S#t$rYnwxYwt|�d|j�����t |�d|j�����)a� Attempt to coerce `value` into a member of this enumeration. If value is already a member of this enumeration it is returned unchanged. Otherwise, if it is a string, attempt to convert it as an enumeration value. If that fails, attempt to convert it (case insensitively, by upcasing) as an enumeration name. If all different conversion attempts fail, an exception is raised. Args: value (Enum, str): the value to be coerced. Raises: ValueError: if `value` is a string but neither a member by name nor value. TypeError: if `value`'s type is neither a member of the enumeration nor a string. � is not a valid z cannot be converted to a )� isinstance�str� ValueError�upper�KeyErrorr � TypeError)�cls�value�case_sensitives r�coercezCoerciveEnum.coerces���* �e�S� !� !� ��L� �e�S� !� !� G� ��s�5�z�z�!��� � � ��� ���� �%3�K�s�5�z�z��U�[�[�]�]�9K�K��� � � ��� ������E�E�s�|�E�E�F�F� F��5�J�J�C�L�J�J�K�K�Ks!� 4� A�A�#A)�) A6�5A6N)F�r rr�__doc__� classmethodr"rrrrrs>������W�W��#L�#L�#L��[�#L�#L�#Lrrc�(�eZdZdZed���ZdS)�CoerciveIntEnumzl An enumeration that provides a helper to coerce strings and integers into enumeration members. c�H�t||��r|St|t��rC ||���S#t$rt |�d|j����d�wxYwt|t ��r ||��St|�d|j�����)a Attempt to coerce `value` into a member of this enumeration. If value is already a member of this enumeration it is returned unchanged. Otherwise, if it is a string, attempt to convert it (case insensitively, by upcasing) as an enumeration name. Otherwise, if it is an int, attempt to convert it as an enumeration value. Otherwise, an exception is raised. Args: value (IntEnum, str, int): the value to be coerced. Raises: ValueError: if `value` is an int but not a member of this enumeration. ValueError: if `value` is a string but not a member by name. TypeError: if `value`'s type is neither a member of the enumeration nor an int or a string. rN� cannot convert to a �rrrrrr �intr)rr s rr"zCoerciveIntEnum.coerceBs���* �e�S� !� !� ��L� �e�S� !� !� U� U��5�;�;�=�=�)�)��� U� U� U� �E�!I�!I�3�<�!I�!I�J�J�PT�T� U���� �e�S� !� !� ��3�u�:�:� ��5�E�E�s�|�E�E�F�F�Fs �A�%A(Nr#rrrr'r'<s>�������� � G� G��[� G� G� Grr'c�(�eZdZdZed���ZdS)�CoerciveIntFlagz� Enumerated constants that can be combined using the bitwise operators, with a helper to coerce strings and integers into enumeration members. c��t||��r|St|t��r� ||���S#t$rYnwxYw ||d���}|dd�D]}|||���z}� |S#t$rt |�d|j����d�wxYwt|t ��r ||��St|�d|j�����)a Attempt to coerce `value` into a member of this enumeration. If value is already a member of this enumeration it is returned unchanged. Otherwise, if it is a string, attempt to convert it (case insensitively, by upcasing) as an enumeration name. Otherwise, if it is an int, attempt to convert it as an enumeration value. Otherwise, an exception is raised. Args: value (IntEnum, str, int): the value to be coerced. Raises: ValueError: if `value` is an int but not a member of this enumeration. ValueError: if `value` is a string but not a member by name. TypeError: if `value`'s type is neither a member of the enumeration nor an int or a string. rrNrr)r*)rr �flags�chars rr"zCoerciveIntFlag.coercels9��( �e�S� !� !� ��L� �e�S� !� !� U� ��5�;�;�=�=�)�)��� � � ��� ���� U��E�!�H�N�N�,�,�-��!�!�"�"�I�6�6�D�!�C�� � � � �$5�5�E�E�� ��� U� U� U� �E�!I�!I�3�<�!I�!I�J�J�PT�T� U���� �e�S� !� !� ��3�u�:�:� ��5�E�E�s�|�E�E�F�F�Fs�A� A�A�A B � %CNr#rrrr-r-fs>�������� �&G�&G��[�&G�&G�&Grr-c�@�eZdZdZed��Z ed��ZdS)�WrapModez7Defines how to break and wrap lines in multi-line text.�WORD�CHARN)r rrr$rr3r4rrrr2r2�s3������=�=� �6�&�>�>�D�� �6�&�>�>�D��rr2c��eZdZdZed��Z ed��Z ed��Z ed��Z ed��Z dS)�CharVPosz;Defines the vertical position of text relative to the line.�SUP�SUB�NOM�DENOM�LINEN) r rrr$rr7r8r9r:r;rrrr6r6�sc������A�A� �&��-�-�C�� �&��-�-�C�� �&��-�-�C�� �F�7�O�O�E�� �6�&�>�>�D��rr6c���eZdZdZed��Z ed��Z ed��Z ed��Z ed��Z e �fd���Z �xZ S)�Alignz$Defines how to render text in a cell�CENTER�X_CENTER�LEFT�RIGHT�JUSTIFYc���|dkr|jSt|t��r|���}t ||���|��S�N�)�Lrrr�superr"�rr � __class__s �rr"z Align.coerce�sN��� �B�;�;��5�L� �e�S� !� !� "��K�K�M�M�E��S�#���%�%�e�,�,�,r) r rrr$r�C�XrF�R�Jr%r"� __classcell__�rIs@rr=r=�s��������*�*���x���A����z���A�8���v���A����w���A����y���A���-�-�-�-��[�-�-�-�-�-rr=c�z��eZdZdZed��Z ed��Z ed��Z e�fd���Z �xZ S)�VAlignzLDefines how to vertically render text in a cell. Default value is MIDDLE�MIDDLE�TOP�BOTTOMc�d��|dkr|jSt||���|��SrD)�MrGr"rHs �rr"z VAlign.coerce�s/��� �B�;�;��5�L��S�#���%�%�e�,�,�,r) r rrr$rrV�T�Br%r"rNrOs@rrQrQ�s���������� ��x���A����u� � �A�C���x���A�F��-�-�-�-��[�-�-�-�-�-rrQc�p��eZdZdZdZ dZ dZ dZ ed���Z d d�Z d d �Z e �fd ���Z �xZS) � TextEmphasisz� Indicates use of bold / italics / underline. This enum values can be combined with & and | operators: style = B | I rrr �c�~��d��fd��jj���D����S)NrEc3�,�K�|]\}}|�z� |V��dS�Nr)�.0�namer �selfs �r� <genexpr>z%TextEmphasis.style.<locals>.<genexpr>�sE����� � � �T�5�%�RV�,� � � � � � � � r)�joinrI� __members__�items�ras`r�stylezTextEmphasis.style�sP����w�w� � � � �$(�N�$>�$D�$D�$F�$F� � � � � � rr c� �||zSr^r�rar s r�addzTextEmphasis.add�s ���e�|�rc���t�d��fd�|jD������S)NrEc3�.�K�|]}|�jv� |V��dSr^)rg)r_�sr s �rrbz&TextEmphasis.remove.<locals>.<genexpr>s/�����B�B�!�Q�e�k�-A�-A�A�-A�-A�-A�-A�B�Br)rZr"rcrgris `r�removezTextEmphasis.remove�sA����"�"� �G�G�B�B�B�B�t�z�B�B�B� B� B� � � rc�H��t|t��rj|dkr|jS|���dkr|jS|���dkr|jS|���dkr|jSt||���|��S)NrE�BOLD�ITALICS� UNDERLINE) rr�NONErrX�I�UrGr"rHs �rr"zTextEmphasis.coerces���� �e�S� !� !� ���{�{��x���{�{�}�}��&�&��u� ��{�{�}�}� �)�)��u� ��{�{�}�}� �+�+��u� ��S�#���%�%�e�,�,�,r)r rZ)r rrr$rsrXrtru�propertyrgrjrnr%r"rNrOs@rrZrZ�s���������� �D�� �A� � �A� � �A�� � � ��X� � ���� � � � � � -� -� -� -��[� -� -� -� -� -rrZc�"�eZdZdZdZ dZ dZdS)�MethodReturnValuez� Defines the return value(s) of a FPDF content-rendering method. This enum values can be combined with & and | operators: PAGE_BREAK | LINES rr r[N)r rrr$� PAGE_BREAK�LINES�HEIGHTrrrrxrxs1���������J�I� �E�[� �F�=�=rrxc��eZdZdZed��Z ed��Z ed��Z ed��Z ed��Z ed��Z ed��Z d S) �TableBordersLayoutz#Defines how to render table borders�ALLrs�INTERNAL�MINIMAL�HORIZONTAL_LINES�NO_HORIZONTAL_LINES�SINGLE_TOP_LINEN) r rrr$rr~rsrr�r�r�r�rrrr}r}$s�������)�)� �&��-�-�C�"� �6�&�>�>�D���v�j�!�!�H�6��f�Y���G�\��v�0�1�1�� � �&�!6�7�7��G��f�.�/�/�O�=�=rr}c���eZdZdZdZ dZ dZ dZ dZ eezezezZ dZ e �fd���Z �fd �Z �fd �Zd �Z�xZS) �CellBordersLayouta�Defines how to render cell borders in table The integer value of `border` determines which borders are applied. Below are some common examples: - border=1 (LEFT): Only the left border is enabled. - border=3 (LEFT | RIGHT): Both the left and right borders are enabled. - border=5 (LEFT | TOP): The left and top borders are enabled. - border=12 (TOP | BOTTOM): The top and bottom borders are enabled. - border=15 (ALL): All borders (left, right, top, bottom) are enabled. - border=16 (INHERIT): Inherit the border settings from the parent element. Using `border=3` will combine LEFT and RIGHT borders, as it represents the bitwise OR of `LEFT (1)` and `RIGHT (2)`. rrr r[��c���t|t��r|dkrtd���t���|��S�Nr�z,INHERIT cannot be combined with other values)rr+rrGr"rHs �rr"zCellBordersLayout.coercebsC��� �e�S� !� !� M�e�b�j�j��K�L�L� L��w�w�~�~�e�$�$�$rc�t��t���|��}|dkrtd���|Sr�)rG�__and__r�rar rIs �rr�zCellBordersLayout.__and__hs5���������&�&�� �2�:�:��K�L�L� L�� rc�t��t���|��}|dkrtd���|Sr�)rG�__or__rr�s �rr�zCellBordersLayout.__or__ns5��������u�%�%�� �2�:�:��K�L�L� L�� rc�X�g}|tjzr|�d��|tjzr|�d��|tjzr|�d��|tjzr|�d��|rd�|��ndS)NrFrLrWrXrErs)r�r@�appendrArSrTrc)ra� border_strs r�__str__zCellBordersLayout.__str__ts���� � �#�(� (� #� � � �c� "� "� "� �#�)� )� #� � � �c� "� "� "� �#�'� '� #� � � �c� "� "� "� �#�*� *� #� � � �c� "� "� "�&0�<�r�w�w�z�"�"�"�f�<r)r rrr$rsr@rArSrTr~�INHERITr%r"r�r�r�rNrOs@rr�r�=s�������� � � �D�(� �D�.� �E�/� �C�-� �F�0� ��,�� �v� %�C�)��G�>��%�%�%�%��[�%� ����� ����� =� =� =� =� =� =� =rr�c����eZdZdZed��Z ed��Z ed��Z ed��Z ed��Z ed��Z e �fd���Z d �Z �xZS) �TableCellFillModez!Defines which table cells to fillrsr~�ROWS�COLUMNS� EVEN_ROWS� EVEN_COLUMNSc���tt|dd����r|St���|��S)zgAny class that has a .should_fill_cell() method is considered a valid 'TableCellFillMode' (duck-typing)�should_fill_cellN)�callable�getattrrGr"rHs �rr"zTableCellFillMode.coerce�s=��� �G�E�#5�t�<�<� =� =� ��L��w�w�~�~�e�$�$�$rc���||jurdS||jurdS||jur |dzdkS||jur |dzdkS||jur |dzdkS||jur |dzdkSt �)NFTr rr)rsr~r�r�r�r��NotImplementedError)ra�i�js rr�z"TableCellFillMode.should_fill_cell�s��� �4�9� � ��5� �4�8� � ��4� �4�9� � ��q�5�A�:� � �4�<� � ��q�5�A�:� � �4�>� !� !��q�5�A�:� � �4�$� $� $��q�5�A�:� �!�!r)r rrr$rrsr~r�r�r�r�r%r"r�rNrOs@rr�r��s��������'�'� �6�&�>�>�D�� �&��-�-�C�� �6�&�>�>�D�'��f�Y���G�*���{�#�#�I�(��6�.�)�)�L�+��%�%�%�%��[�%� "� "� "� "� "� "� "rr�c�<�eZdZed��Z ed��ZdS)� TableSpan�ROW�COLN)r rrrr�r�rrrr�r��s-������ �&��-�-�C�:� �&��-�-�C�=�=rr�c��eZdZdZdZ dZdS)�TableHeadingsDisplayz2Defines how the table headings should be displayedrrN)r rrr$rs�ON_TOP_OF_EVERY_PAGErrrr�r��s$������8�8� �D�E���_�_rr�c���eZdZdZed��Z ed��Z ed��Z ed���Z ed���Z ed���Z e �fd���Z �xZS) � RenderStylezDefines how to render shapes�DRAW�FILL� DRAW_FILLc�<�|jd|jd|jdi|S)N�S�frX)�D�F�DFrfs r�operatorzRenderStyle.operator�s �����T�V�S�$�'�3�7��=�=rc�"�||j|jfvSr^)r�r�rfs r�is_drawzRenderStyle.is_draw���������(�(�(rc�"�||j|jfvSr^)r�r�rfs r�is_fillzRenderStyle.is_fill�r�rc�l��|s|jS|dkrd}t||���|��S)N�FDr�)r�rGr"rHs �rr"zRenderStyle.coerce�s<���� ��5�L� �D�=�=��E��S�#���%�%�e�,�,�,r)r rrr$rr�r�r�rvr�r�r�r%r"rNrOs@rr�r��s��������"�"���v���A�� ��v���A�� �� � � �B�� �>�>��X�>��)�)��X�)��)�)��X�)��-�-�-�-��[�-�-�-�-�-rr�c�2�eZdZdZdZdZdZdZdZdZ dZ d Z d S) �TextModez:Values described in PDF spec section 'Text Rendering Mode'rrr �r[���N) r rrr$r��STROKE� FILL_STROKE� INVISIBLE� FILL_CLIP� STROKE_CLIP�FILL_STROKE_CLIP�CLIPrrrr�r��s=������@�@� �D� �F��K��I��I��K��� �D�D�Drr�c���eZdZdZed��Z ed��Z ed��Z ed��Z ed��Z ed��Z ed��Z ed ��Z d S) �XPoszFPositional values in horizontal direction for use after printing text.r@rA�START�END�WCONTr>�LMARGIN�RMARGINN) r rrr$rr@rAr�r�r�r>r�r�rrrr�r��s�������L�L� �6�&�>�>�D�� �F�7�O�O�E�%� �F�7�O�O�E�� �&��-�-�C�� �F�7�O�O�E�9� �V�H� � �F���f�Y���G�0��f�Y���G�/�/rr�c��eZdZdZed��Z ed��Z ed��Z ed��Z ed��Z dS)�YPoszCPositional values in vertical direction for use after printing textrS�LAST�NEXT�TMARGIN�BMARGINN) r rrr$rrSr�r�r�r�rrrr�r�sg������I�I� �&��-�-�C�%� �6�&�>�>�D�=� �6�&�>�>�D�/��f�Y���G�/��f�Y���G�0�0rr�c�2�eZdZdZdZdZdZdZdZdZ dZ d Z d S) �AnglezTDirection values used for mirror transformations specifying the angle of mirror line�Zri��-i;���N) r rrr$�NORTH�EAST�SOUTH�WEST� NORTHEAST� SOUTHEAST� SOUTHWEST� NORTHWESTrrrr�r�$s<������Z�Z� �E� �D� �E� �D��I��I��I��I�I�Irr�c��eZdZdZed��Z ed��Z ed��Z ed��Z ed��Z ed��Z dS) � PageLayoutzASpecify the page layout shall be used when the document is opened� SinglePage� OneColumn� TwoColumnLeft�TwoColumnRight� TwoPageLeft� TwoPageRightN) r rrr$r � SINGLE_PAGE� ONE_COLUMN�TWO_COLUMN_LEFT�TWO_COLUMN_RIGHT� TWO_PAGE_LEFT�TWO_PAGE_RIGHTrrrr�r�0s�������G�G��$�|�$�$�K� ���k�"�"�J�%��d�?�+�+�O�K��t�,�-�-��L��D��'�'�M�J��T�.�)�)�N�K�Krr�c��eZdZdZed��Z ed��Z ed��Z ed��Z ed��Z ed��Z dS) �PageModezBSpecifying how to display the document on exiting full-screen mode�UseNone� UseOutlines� UseThumbs� FullScreen�UseOC�UseAttachmentsN) r rrr$r �USE_NONE� USE_OUTLINES� USE_THUMBS� FULL_SCREEN�USE_OC�USE_ATTACHMENTSrrrr�r�Fs|������H�H��t�I���H�;��4� �&�&�L����k�"�"�J���$�|�$�$�K�V� �T�'�]�]�F�*��d�+�,�,�O��rr�c�j�eZdZdZed��Zed��Zed��Zed��ZdS)�TextMarkupTypez#Subtype of a text markup annotation� Highlight� Underline�Squiggly� StrikeOutN) r rrr$r � HIGHLIGHTrr�SQUIGGLY� STRIKE_OUTrrrrr\sP������)�)���[�!�!�I���[�!�!�I��t�J���H���k�"�"�J�J�Jrrc��eZdZdZed��Z ed��Z ed��Z ed��Z ed��Z ed��Z ed��Z ed ��Z ed ��Z ed ��Z ed ��Z ed ��Z ed��Z ed��Z ed��Z ed��ZdS)� BlendModezLAn enumeration of the named standard named blend functions supported by PDF.�Normal�Multiply�Screen�Overlay�Darken�Lighten� ColorDodge� ColorBurn� HardLight� SoftLight� Difference� Exclusion�Hue� Saturation�Color� LuminosityN)r rrr$r �NORMAL�MULTIPLY�SCREEN�OVERLAY�DARKEN�LIGHTEN� COLOR_DODGE� COLOR_BURN� HARD_LIGHT� SOFT_LIGHT� DIFFERENCE� EXCLUSION�HUE� SATURATION�COLOR� LUMINOSITYrrrr r hsQ������R�R� �T�(�^�^�F�<��t�J���H�<� �T�(�^�^�F���d�9�o�o�G�� �T�(�^�^�F�A��d�9�o�o�G�B��$�|�$�$�K����k�"�"�J����k�"�"�J����k�"�"�J����l�#�#�J�V���[�!�!�I�� �$�u�+�+�C����l�#�#�J�� �D��M�M�E�� ��l�#�#�J��rr c�H�eZdZdZ dZ dZ dZ dZ dZ dZ dZ d Z d Z d S) �AnnotationFlagrr r[r�r�� �@���N) r rrr��HIDDEN�PRINT�NO_ZOOM� NO_ROTATE�NO_VIEW� READ_ONLY�LOCKED�TOGGLE_NO_VIEW�LOCKED_CONTENTSrrrr-r-�si�������I���F�Z� �E�<��G�`��I�\��G�_��I���F���N�N��O�U�Urr-c��eZdZdZed��Zed��Zed��Zed��Zed��Z ed��Z dS) �AnnotationName�CThe name of an icon that shall be used in displaying the annotation�Note�Comment�Help� Paragraph� NewParagraph�InsertN) r rrr$r �NOTE�COMMENT�HELP� PARAGRAPH� NEW_PARAGRAPH�INSERTrrrr=r=�sf������I�I� �4��<�<�D��d�9�o�o�G� �4��<�<�D���[�!�!�I��D��(�(�M� �T�(�^�^�F�F�Frr=c�T�eZdZdZed��Zed��Zed��ZdS)�FileAttachmentAnnotationNamer>�PushPin� GraphPushPin� PaperclipTagN)r rrr$r �PUSH_PIN�GRAPH_PUSH_PIN� PAPERCLIP_TAGrrrrLrL�s?������I�I��t�I���H��T�.�)�)�N��D��(�(�M�M�MrrLc��eZdZdZdZ dZdS)�IntersectionRulea) An enumeration representing the two possible PDF intersection rules. The intersection rule is used by the renderer to determine which points are considered to be inside the path and which points are outside the path. This primarily affects fill rendering and clipping paths. �nonzero�evenoddN�r rrr$�NONZERO�EVENODDrrrrTrT�s1���������G���G��rrTc�:�eZdZdZdZ dZ dZ dZ dZ dZ dZ d S) � PathPaintRulezu An enumeration of the PDF drawing directives that determine how the renderer should paint a given path. r�r�zf*rXzB*�n�autoN) r rrr$r�� FILL_NONZERO� FILL_EVENODD�STROKE_FILL_NONZERO�STROKE_FILL_EVENODD� DONT_PAINT�AUTOrrrr[r[sk���������F���L�� �L�� ������ �J�� �D��rr[c��eZdZdZdZ dZdS)�ClippingPathIntersectionRulezSAn enumeration of the PDF drawing directives that define a path as a clipping path.�WzW*NrWrrrrere;s+������Y�Y��G���G��rrec�"�eZdZdZdZ dZ dZdS)�StrokeCapStylez� An enumeration of values defining how the end of a stroke should be rendered. This affects the ends of the segments of dashed strokes, as well. rrr N)r rrr$�BUTT�ROUND�SQUARErrrrhrhSs=�������� �D�� �E���F��rrhc�"�eZdZdZdZ dZ dZdS)�StrokeJoinStylezn An enumeration of values defining how the corner joining two path components should be rendered. rrr N)r rrr$�MITERrj�BEVELrrrrmrmks=�������� �E�� �E�� �E��rrmc���eZdZdZed��Zed��Zed��Zed��Zed��Z ed��Z ed��Z ed ��Z ed ��Z d S) � PDFStyleKeysz?An enumeration of the graphics state parameter dictionary keys.�ca�BM�CA�SA�LW�LC�LJ�MLr�N)r rrr$r � FILL_ALPHA� BLEND_MODE� STROKE_ALPHA�STROKE_ADJUSTMENT� STROKE_WIDTH�STROKE_CAP_STYLE�STROKE_JOIN_STYLE�STROKE_MITER_LIMIT�STROKE_DASH_PATTERNrrrrqrq�s�������E�E���d���J���d���J��4��:�:�L���T� � ���4��:�:�L��t�D�z�z����T� � ����d�����$�s�)�)���rrqc��eZdZdZdZdZdZdS)�Corner� TOP_RIGHT�TOP_LEFT� BOTTOM_RIGHT� BOTTOM_LEFTN)r rrr�r�r�r�rrrr�r��s"�������I��H�!�L��K�K�Krr�c�(�eZdZdZdZ dZ dZ dZdS)�FontDescriptorFlagsz�An enumeration of the flags for the unsigned 32-bit integer entry in the font descriptor specifying various characteristics of the font. Bit positions are numbered from 1 (low-order) to 32 (high-order). rr[r/iN)r rrr$� FIXED_PITCH�SYMBOLIC�ITALIC� FORCE_BOLDrrrr�r��sI���������K�� �H�� �F���J��rr�c�n�eZdZdZdZ dZ dZ dZ dZ dZ dZ d Z e d ���Z e d ���Zd S) �AccessPermissionzJPermission flags will translate as an integer on the encryption dictionaryr[r�r�r.r1r2iic�B�d}tt��D]}||z}�|S)zAll flags enabledr)�listr�)r�result� permissions r�allzAccessPermission.all�s2�����/�0�0� )� )�J��j�(�F�F�� rc��dS)zAll flags disabledrr)rs r�nonezAccessPermission.none�s ���qrN)r rrr$� PRINT_LOW_RES�MODIFY�COPY� ANNOTATION� FILL_FORMS�COPY_FOR_ACCESSIBILITY�ASSEMBLE�PRINT_HIGH_RESr%r�r�rrrr�r��s�������P�P�"�M�� �F�)� �D�9��J�$��J�.�+��V��H�M�#�N�.�����[������[���rr�c�"�eZdZdZdZdZdZdZdS)�EncryptionMethodz,Algorithm to be used to encrypt the documentrrr r�N)r rrr$� NO_ENCRYPTION�RC4�AES_128�AES_256rrrr�r��s(������2�2��M� �C��G��G�G�Grr�c�p�eZdZdZed��Z ed��Z ed��Z ed��ZdS)� TextDirectionz)Text rendering direction for text shaping�LTR�RTL�TTB�BTTN) r rrr$rr�r�r�r�rrrr�r��sR������/�/� �&��-�-�C�� �&��-�-�C�� �&��-�-�C�� �&��-�-�C��Orr�c��eZdZdZed��Z ed��Z ed��Z ed��Z ed��Z dZ dS)�PageLabelStylezStyle of the page labelr�rL�r�A�aN) r rrr$r�NUMBER� UPPER_ROMAN� LOWER_ROMAN� UPPER_LETTER� LOWER_LETTERrsrrrr�r��sj�������� �V�C�[�[�F���&��+�+�K���&��+�+�K���6�#�;�;�L�>��6�#�;�;�L�>� �D��Jrr�c�X�eZdZdZed��Z ed��Z ed��ZdS)�DuplexzZThe paper handling option that shall be used when printing the file from the print dialog.�Simplex�DuplexFlipShortEdge�DuplexFlipLongEdgeN)r rrr$r �SIMPLEX�DUPLEX_FLIP_SHORT_EDGE�DUPLEX_FLIP_LONG_EDGErrrr�r�sK������`�`��d�9�o�o�G��!�T�"7�8�8��4� �D�!5�6�6��3�3rr�c�|�eZdZed��Zed��Zed��Zed��Zed��ZdS)�PageBoundaries�ArtBox�BleedBox�CropBox�MediaBox�TrimBoxN) r rrr �ART_BOX� BLEED_BOX�CROP_BOX� MEDIA_BOX�TRIM_BOXrrrr�r�sS�������d�8�n�n�G���Z� � �I��t�I���H���Z� � �I��t�I���H�H�Hrr�c�Z��eZdZed��Zed��Ze�fd���Z�xZS)�PageOrientation�PrFc���t|t��r|���}t||���|��Sr^)rrrrGr"rHs �rr"zPageOrientation.coerce*s>��� �e�S� !� !� "��K�K�M�M�E��S�#���%�%�e�,�,�,r) r rrr�PORTRAIT� LANDSCAPEr%r"rNrOs@rr�r�%s^��������v�c�{�{�H���s� � �I��-�-�-�-��[�-�-�-�-�-rr�N)3�enumrrrr�sysr�syntaxr r rr'r-r2r6r=rQrZrxr}r�r�r�r�r�r�r�r�r�r�r�rr r-r=rLrTr[rerhrmrqr�r�r�r�r�r�r�r�r�rrr�<module>r�s���-�-�-�-�-�-�-�-�-�-�-�-������������������G����'L�'L�'L�'L�'L�4�'L�'L�'L�T'G�'G�'G�'G�'G�g�'G�'G�'G�T-G�-G�-G�-G�-G�g�-G�-G�-G�`�����|���������|����$-�-�-�-�-�L�-�-�-�8-�-�-�-�-�\�-�-�-�*--�--�--�--�--�?�--�--�--�`>�>�>�>�>��>�>�>�$>�>�>�>�>��>�>�>�2A=�A=�A=�A=�A=��A=�A=�A=�H*"�*"�*"�*"�*"� �*"�*"�*"�Z>�>�>�>�>� �>�>�>�`�`�`�`�`�?�`�`�`�&-�&-�&-�&-�&-�,�&-�&-�&-�R  �  �  �  �  ��  �  �  �0�0�0�0�0�<�0�0�0�81�1�1�1�1�<�1�1�1�& � � � � �O� � � �L�L�L�L�L��L�L�L�, � � � � �|� � � �, #� #� #� #� #�\� #� #� #�H�H�H�H�H� �H�H�H�VV�V�V�V�V�_�V�V�V�@�����\����)�)�)�)�)�<�)�)�)������|����>3�3�3�3�3�L�3�3�3�l�����<����0�����_����0�����o����4 $� $� $� $� $�4� $� $� $� � � � � �\� � � ������$����<&�&�&�&�&�w�&�&�&�R�����t���� � � � � �L� � � � �����\����, 4� 4� 4� 4� 4�\� 4� 4� 4������\���� -� -� -� -� -�l� -� -� -� -� -r
Memory