a
    ˜ëj©^  ã                   @   s  d Z ddlZddlmZmZmZmZ ddlmZ ddl	m
Z
 ejdkrTddlmZ nG d	d
„ d
eeƒZG dd„ dƒZG dd„ dƒZG dd„ dƒZG dd„ dƒZG dd„ deƒZG dd„ dƒZG dd„ dƒZG dd„ dƒZG dd„ dƒZG dd„ dƒZeG dd „ d eƒƒZG d!d"„ d"ƒZG d#d$„ d$ƒZG d%d&„ d&ƒZG d'd(„ d(ƒZG d)d*„ d*ƒZG d+d,„ d,ƒZG d-d.„ d.ƒZG d/d0„ d0ƒZ G d1d2„ d2ƒZ!G d3d4„ d4ƒZ"G d5d6„ d6ƒZ#G d7d8„ d8ƒZ$G d9d:„ d:eƒZ%G d;d<„ d<ƒZ&G d=d>„ d>ƒZ'G d?d@„ d@ƒZ(G dAdB„ dBe)ƒZ*G dCdD„ dDee*dE�Z+G dFdG„ dGeƒZ,G dHdI„ dIeƒZ-G dJdK„ dKeƒZ.e!ee+ee$eee&ee#eeee e(ee"eee'eeeeeefZ/G dLdM„ dMeƒZ0dNdOdPdQdRdSdTdUdVdWdXdNdOdPdQdRdSdTdUdVdWdXdYdZœZ1d[d\d]d^d_d`dadbdcddd[d\d]d^d_d`dadbdddeœZ2G dfdg„ dgƒZ3G dhdi„ diƒZ4G djdk„ dkeƒZ5dS )lz7Various constants, enums, and flags to aid readability.é    N)ÚEnumÚIntFlagÚautoÚunique)ÚAnyé   ©Údeprecate_with_replacement)é   é   )ÚStrEnumc                   @   s   e Zd Zedœdd„ZdS )r   ©Úreturnc                 C   s
   t | jƒS )N)ÚstrÚvalue©Úself© r   úN/mnt/bigstor/www/usecases/.venv/lib/python3.9/site-packages/pypdf/constants.pyÚ__str__   s    zStrEnum.__str__N)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r      s   r   c                   @   s$   e Zd ZdZdZdZdZdZdZdS )ÚCorez/Keywords that don't quite belong anywhere else.ú	/Outlinesú/Threadsz/Pageú/Pagesz/CatalogN)	r   r   r   Ú__doc__ÚOUTLINESÚTHREADSZPAGEÚPAGESZCATALOGr   r   r   r   r      s   r   c                   @   s$   e Zd ZdZdZdZdZdZdZdS )ÚTrailerKeysz/Sizez/Prevz/Rootz/Encryptz/Infoú/IDN)	r   r   r   ZSIZEZPREVÚROOTZENCRYPTÚINFOÚIDr   r   r   r   r!      s   r!   c                   @   s�   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"S )#ÚCatalogAttributesu&   Â§7.7.2 of the 1.7 and 2.0 references.ú/Typez/Versionz/Extensionsr   z/PageLabelsz/Namesz/Destsz/ViewerPreferencesz/PageLayoutz	/PageModer   r   z/OpenActionú/AAz/URIz	/AcroFormú	/Metadataz/StructTreeRootz	/MarkInfoz/Langz/SpiderInfoú/OutputIntentsú
/PieceInfoz/OCPropertiesz/Permsz/Legalz/Requirementsz/Collectionz/NeedsRenderingz/DSSú/AFz
/DPartRootN)$r   r   r   r   ÚTYPEÚVERSIONZ
EXTENSIONSr    ZPAGE_LABELSZNAMESZDESTSZVIEWER_PREFERENCESZPAGE_LAYOUTZ	PAGE_MODEr   r   ZOPEN_ACTIONÚAAÚURIZ	ACRO_FORMÚMETADATAZSTRUCT_TREE_ROOTZ	MARK_INFOÚLANGZSPIDER_INFOÚOUTPUT_INTENTSÚ
PIECE_INFOZOC_PROPERTIESZPERMSZLEGALZREQUIREMENTSZ
COLLECTIONZNEEDS_RENDERINGZDSSÚAFZD_PART_ROOTr   r   r   r   r&   $   sB   r&   c                   @   s$   e Zd ZdZdZdZdZdZdZdS )ÚEncryptionDictAttributesz�
    Additional encryption dictionary entries for the standard security handler.

    Table 3.19, Page 122.
    Table 21 of the 2.0 manual.
    ú/Rz/Oú/Uú/Pz/EncryptMetadataN)	r   r   r   r   ÚRÚOÚUÚPZENCRYPT_METADATAr   r   r   r   r6   H   s   r6   c                   @   sü   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#e$e%e&d"œd#d$„ƒZ'e$e%e&d"œd%d&„ƒZ(e)e%e&f d'œd(d)„Z*e$e)e%e&f d d*œd+d,„ƒZ+e$d d'œd-d.„ƒZ,d/S )0ÚUserAccessPermissionszM
    Table 3.20 User access permissions.
    Table 22 of the 2.0 manual.
    r   é   é   é   é   é    é@   é€   é   é   i   i   é   é    é @  é €  é   é   é   é   é   é    é  @ é  € é   é   é   i   i   i    i   @l        ©Únamer   c                 C   s   |  d¡o|dd…  ¡ S )z=Check if the given name corresponds to a reserved flag entry.r:   r   N)Ú
startswithÚisdigit©ÚclsrX   r   r   r   Ú_is_reserved~   s    z"UserAccessPermissions._is_reservedc                 C   s   |dvS )z8Check if the given reserved name defaults to 1 = active.>   ÚR2ÚR1r   r[   r   r   r   Ú
_is_activeƒ   s    z UserAccessPermissions._is_activer   c                 C   s<   i }t j ¡ D ](\}}t  |¡r"q| |@ |k|| ¡ < q|S )zEConvert the given flag value to a corresponding verbose name mapping.)r>   Ú__members__Úitemsr]   Úlower)r   ÚresultrX   Úflagr   r   r   Úto_dictˆ   s    
zUserAccessPermissions.to_dict)r   r   c                 C   st   |  ¡ }| dƒ}| j ¡ D ]B\}}|  |¡r@|  |¡r||O }q| | ¡ d¡}|r||O }q|rptd|›�ƒ‚|S )zAConvert the verbose name mapping to the corresponding flag value.r   FzUnknown dictionary keys: )Úcopyra   rb   r]   r`   Úpoprc   Ú
ValueError)r\   r   Z
value_copyrd   rX   re   Z	is_activer   r   r   Ú	from_dict‘   s    


zUserAccessPermissions.from_dictc                 C   s   | d| j  | j ƒS )Nl   ÿÿ )r_   r^   ©r\   r   r   r   Úall£   s    zUserAccessPermissions.allN)-r   r   r   r   r_   r^   ÚPRINTZMODIFYZEXTRACTZADD_OR_MODIFYZR7ZR8ZFILL_FORM_FIELDSZEXTRACT_TEXT_AND_GRAPHICSZASSEMBLE_DOCZPRINT_TO_REPRESENTATIONZR13ZR14ZR15ZR16ZR17ZR18ZR19ZR20ZR21ZR22ZR23ZR24ZR25ZR26ZR27ZR28ZR29ZR30ZR31ZR32Úclassmethodr   Úboolr]   r`   Údictrf   rj   rl   r   r   r   r   r>   W   sT   	r>   c                   @   s0   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
S )Ú	ResourceszY
    Table 3.30 Entries in a resource dictionary.
    Table 34 in the 2.0 reference.
    z
/ExtGStateú/ColorSpacez/Patternz/Shadingz/XObjectú/Fontz/ProcSetz/PropertiesN)r   r   r   r   ZEXT_G_STATEÚCOLOR_SPACEZPATTERNZSHADINGZXOBJECTÚFONTZPROC_SETZ
PROPERTIESr   r   r   r   rq   ¨   s   rq   c                   @   s    e Zd ZdZdZdZdZdZdS )ÚPagesAttributesu'   Â§7.7.3.2 of the 1.7 and 2.0 reference.r'   ú/Parentú/Kidsz/CountN)r   r   r   r   r-   ÚPARENTZKIDSZCOUNTr   r   r   r   rv   ¸   s
   rv   c                   @   s”   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"Z$d#S )$ÚPageAttributesu'   Â§7.7.3.3 of the 1.7 and 2.0 reference.r'   rw   z/LastModifiedz
/Resourcesz	/MediaBoxz/CropBoxz	/BleedBoxz/TrimBoxz/ArtBoxz/BoxColorInfoú	/Contentsz/Rotatez/Groupz/Thumbú/Bz/Durz/Transz/Annotsr(   r)   r+   z/StructParentsr"   z/PZz/SeparationInfoz/Tabsz/TemplateInstantiatedz
/PresStepsz	/UserUnitz/VPr,   r*   z/DPartN)%r   r   r   r   r-   ry   ZLAST_MODIFIEDZ	RESOURCESZMEDIABOXZCROPBOXZBLEEDBOXZTRIMBOXZARTBOXZBOX_COLOR_INFOZCONTENTSZROTATEZGROUPZTHUMBÚBZDURZTRANSZANNOTSr/   r1   r4   ZSTRUCT_PARENTSr%   ZPZZSEPARATION_INFOZTABSZTEMPLATE_INSTANTIATEDZ
PRES_STEPSZ	USER_UNITZVPr5   r3   ZD_PARTr   r   r   r   rz   Ã   sF   ÿrz   c                   @   sD   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdS )Ú"FileSpecificationDictionaryEntriesz6Table 3.41 Entries in a file specification dictionary.r'   z/FSú/Fz/UFz/DOSz/Macz/Unixr"   ú/Vz/EFz/RFz/Descz/ClN)r   r   r   r   ÚTypeZFSÚFZUFZDOSZMacZUnixr%   ÚVZEFZRFZDESCZClr   r   r   r   r~   ë   s   r~   c                   @   s   e Zd ZdZdZdZdZdS )ÚStreamAttributesz6
    Table 4.2.
    Table 5 in the 2.0 reference.
    z/Lengthú/Filterú/DecodeParmsN)r   r   r   r   ZLENGTHZFILTERZDECODE_PARMSr   r   r   r   r„   ý   s   r„   c                   @   s8   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdS )ÚFilterTypesu$   Â§7.4 of the 1.7 and 2.0 references.ú/ASCIIHexDecodeú/ASCII85Decodeú
/LZWDecodeú/FlateDecodeú/RunLengthDecodeú/CCITTFaxDecodeú
/DCTDecodez
/JPXDecodez/BrotliDecodez/JBIG2DecodeN)r   r   r   r   ZASCII_HEX_DECODEZASCII_85_DECODEZ
LZW_DECODEZFLATE_DECODEZRUN_LENGTH_DECODEZCCITT_FAX_DECODEZ
DCT_DECODEZ
JPX_DECODEZBROTLI_DECODEZJBIG2_DECODEr   r   r   r   r‡     s   r‡   c                   @   s,   e Zd ZdZdZdZdZdZdZdZ	dZ
d	S )
ÚFilterTypeAbbreviationsu&   Â§8.9.7 of the 1.7 and 2.0 references.ú/AHxú/A85ú/LZWú/Flú/RLú/CCFú/DCTN)r   r   r   r   ZAHxZA85ZLZWÚFLZRLZCCFZDCTr   r   r   r   r�     s   r�   c                   @   s$   e Zd ZdZdZdZdZdZdZdS )ÚLzwFilterParametersz6
    Table 4.4.
    Table 8 in the 2.0 reference.
    z
/Predictorz/Colorsú/BitsPerComponentú/Columnsz/EarlyChangeN)	r   r   r   r   Z	PREDICTORÚCOLORSÚBITS_PER_COMPONENTÚCOLUMNSZEARLY_CHANGEr   r   r   r   r˜   $  s   r˜   c                   @   s0   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
S )ÚCcittFaxDecodeParametersz7
    Table 4.5.
    Table 11 in the 2.0 reference.
    z/Kz
/EndOfLinez/EncodedByteAlignrš   z/Rowsz/EndOfBlockz	/BlackIs1z/DamagedRowsBeforeErrorN)r   r   r   r   ÚKZEND_OF_LINEZENCODED_BYTE_ALIGNr�   ZROWSZEND_OF_BLOCKZ
BLACK_IS_1ZDAMAGED_ROWS_BEFORE_ERRORr   r   r   r   rž   1  s   rž   c                   @   sD   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdS )ÚImageAttributesu'   Â§11.6.5 of the 1.7 and 2.0 references.r'   ú/Subtypez/Nameú/Widthú/Heightr™   rr   ú/Decodeú/Intentú/Interpolateú
/ImageMaskz/Maskú/SMaskN)r   r   r   r   r-   ZSUBTYPEÚNAMEZWIDTHZHEIGHTrœ   rt   ZDECODEZINTENTZINTERPOLATEZ
IMAGE_MASKÚMASKÚS_MASKr   r   r   r   r    A  s   r    c                   @   s   e Zd ZdZdZdZdS )ÚColorSpacesú
/DeviceRGBú/DeviceCMYKú/DeviceGrayN)r   r   r   Z
DEVICE_RGBZDEVICE_CMYKZDEVICE_GRAYr   r   r   r   r¬   S  s   r¬   c                   @   s    e Zd ZdZdZdZdZdZdS )ÚTypArgumentsú#Table 8.2 of the PDF 1.7 reference.z/Leftz/Rightz/Bottomz/TopN)r   r   r   r   ÚLEFTÚRIGHTZBOTTOMZTOPr   r   r   r   r°   Y  s
   r°   c                   @   s0   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
S )ÚTypFitArgumentsr±   z/XYZz/Fitz/FitHz/FitVz/FitRz/FitBz/FitBHz/FitBVN)r   r   r   r   ZXYZZFITZFIT_HZFIT_VZFIT_RZFIT_BZFIT_BHZFIT_BVr   r   r   r   r´   b  s   r´   c                   @   s   e Zd ZdZdZdZdS )ÚGoToActionArgumentsú/Sú/Dz/SDN)r   r   r   ÚSÚDZSDr   r   r   r   rµ   o  s   rµ   c                   @   sL   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdZdZdS )ÚAnnotationDictionaryAttributesz9Table 8.15 Entries common to all annotation dictionaries.r'   r¡   z/Rectr{   r9   z/NMz/Mr   z/APz/ASú/DAz/Borderz/Cz/StructParentz/OCN)r   r   r   r   r�   ZSubtypeZRectZContentsr=   ZNMÚMr‚   ZAPZASÚDAZBorderÚCZStructParentZOCr   r   r   r   rº   u  s    rº   c                   @   s,   e Zd ZdZdZdZdZdZdZdZ	dZ
d	S )
ÚInteractiveFormDictEntriesz/Fieldsz/NeedAppearancesz	/SigFlagsz/COz/DRr»   z/Qz/XFAN)r   r   r   ZFieldsZNeedAppearancesZSigFlagsZCOZDRr½   ÚQZXFAr   r   r   r   r¿   ‰  s   r¿   c                   @   s€   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZG dd„ deƒZeeedf dœdd„ƒZeeeef dœdd„ƒZdS )ÚFieldDictionaryAttributeszÊ
    Entries common to all field dictionaries (Table 8.69 PDF 1.7 reference)
    (*very partially documented here*).

    FFBits provides the constants used for `/Ff` from Table 8.70/8.75/8.77/8.79
    z/FTrw   rx   z/Tz/TUz/TMz/Ffr€   z/DVr(   ú/Optc                   @   s\   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdZdZdZdZdZdZdS )z FieldDictionaryAttributes.FfBitszò
        Ease building /Ff flags
        Some entries may be specific to:

        * Text (Tx) (Table 8.75 PDF 1.7 reference)
        * Buttons (Btn) (Table 8.77 PDF 1.7 reference)
        * Choice (Ch) (Table 8.79 PDF 1.7 reference)
        r   r?   r@   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   rV   N)r   r   r   r   ZReadOnlyZRequiredZNoExportZ	MultilineZPasswordZNoToggleToOffZRadioZ
PushbuttonZComboZEditZSortZ
FileSelectZMultiSelectZDoNotSpellCheckZDoNotScrollZCombZRadiosInUnisonZRichTextZCommitOnSelChanger   r   r   r   ÚFfBits¨  s*   	rÃ   .r   c              
   C   s,   | j | j| j| j| j| j| j| j| j| j	f
S )a©  
        Get a tuple of all the attributes present in a Field Dictionary.

        This method returns a tuple of all the attribute constants defined in
        the FieldDictionaryAttributes class. These attributes correspond to the
        entries that are common to all field dictionaries as specified in the
        PDF 1.7 reference.

        Returns:
            A tuple containing all the attribute constants.

        )
ÚTMÚTÚFTÚParentÚTUÚFfrƒ   ÚDVÚKidsr/   rk   r   r   r   Ú
attributesâ  s    öz$FieldDictionaryAttributes.attributesc                 C   s4   | j d| jd| jd| jd| jd| jd| jd| jdiS )	a  
        Get a dictionary of attribute keys and their human-readable names.

        This method returns a dictionary where the keys are the attribute
        constants defined in the FieldDictionaryAttributes class and the values
        are their corresponding human-readable names. These attributes
        correspond to the entries that are common to all field dictionaries as
        specified in the PDF 1.7 reference.

        Returns:
            A dictionary containing attribute keys and their names.

        z
Field TyperÇ   z
Field NamezAlternate Field NamezMapping NamezField FlagsÚValuezDefault Value)rÆ   rÇ   rÅ   rÈ   rÄ   rÉ   rƒ   rÊ   rk   r   r   r   Úattributes_dictý  s    øz)FieldDictionaryAttributes.attributes_dictN)r   r   r   r   rÆ   rÇ   rË   rÅ   rÈ   rÄ   rÉ   rƒ   rÊ   r/   ÚOptr   rÃ   rn   Útupler   rÌ   rp   rÎ   r   r   r   r   rÁ   ”  s"   :rÁ   c                   @   sH   e Zd ZdZdZeeedf dœdd„ƒZee	eef dœdd„ƒZ
d	S )
ÚCheckboxRadioButtonAttributesz1Table 8.76 Field flags common to all field types.rÂ   .r   c                 C   s   | j fS )a­  
        Get a tuple of all the attributes present in a Field Dictionary.

        This method returns a tuple of all the attribute constants defined in
        the CheckboxRadioButtonAttributes class. These attributes correspond to
        the entries that are common to all field dictionaries as specified in
        the PDF 1.7 reference.

        Returns:
            A tuple containing all the attribute constants.

        ©rÏ   rk   r   r   r   rÌ     s    z(CheckboxRadioButtonAttributes.attributesc                 C   s
   | j diS )a  
        Get a dictionary of attribute keys and their human-readable names.

        This method returns a dictionary where the keys are the attribute
        constants defined in the CheckboxRadioButtonAttributes class and the
        values are their corresponding human-readable names. These attributes
        correspond to the entries that are common to all field dictionaries as
        specified in the PDF 1.7 reference.

        Returns:
            A dictionary containing attribute keys and their names.

        ÚOptionsrÒ   rk   r   r   r   rÎ   -  s    ÿz-CheckboxRadioButtonAttributes.attributes_dictN)r   r   r   r   rÏ   rn   rÐ   r   rÌ   rp   rÎ   r   r   r   r   rÑ     s   rÑ   c                   @   s   e Zd ZdZdZdZdZdS )Ú	FieldFlagz1Table 8.70 Field flags common to all field types.r   r?   r@   N)r   r   r   r   Ú	READ_ONLYZREQUIREDZ	NO_EXPORTr   r   r   r   rÔ   A  s   rÔ   c                   @   s4   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdS )ÚDocumentInformationAttributesz:Table 10.2 Entries in the document information dictionary.z/Titlez/Authorz/Subjectz	/Keywordsz/Creatorz	/Producerz/CreationDatez/ModDatez/TrappedN)r   r   r   r   ZTITLEZAUTHORZSUBJECTZKEYWORDSZCREATORZPRODUCERZCREATION_DATEZMOD_DATEZTRAPPEDr   r   r   r   rÖ   I  s   rÖ   c                   @   s(   e Zd ZdZdZdZdZdZdZdZ	dS )	ÚPageLayoutszF
    Page 84, PDF 1.4 reference.
    Page 115, PDF 2.0 reference.
    z/SinglePagez
/OneColumnz/TwoColumnLeftz/TwoColumnRightz/TwoPageLeftz/TwoPageRightN)
r   r   r   r   ZSINGLE_PAGEZ
ONE_COLUMNZTWO_COLUMN_LEFTZTWO_COLUMN_RIGHTZTWO_PAGE_LEFTZTWO_PAGE_RIGHTr   r   r   r   r×   W  s   r×   c                   @   s|   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdS )ÚGraphicsStateParametersu=   Table 58 â€“ Entries in a Graphics State Parameter Dictionaryr'   z/LWz/LCz/LJz/MLr·   z/RIz/OPz/opz/OPMrs   z/BGz/BG2z/UCRz/UCR2z/TRz/TR2z/HTz/FLz/SMz/SAz/BMr¨   z/CAz/caz/AISz/TKN)r   r   r   r   r-   ZLWZLCZLJZMLr¹   ZRIÚOPÚopZOPMru   ZBGZBG2ZUCRZUCR2ZTRZTR2ZHTr—   ZSMZSAZBMr«   ÚCAÚcaZAISZTKr   r   r   r   rØ   e  s8   rØ   c                       s$   e Zd Zeedœ‡ fdd„Z‡  ZS )Ú_CatalogDictionaryMetarW   c                    s&   t ƒ  |¡}| d¡s"tdddƒ |S )NÚ__ÚCatalogDictionaryr&   ú7.0.0)ÚsuperÚ__getattribute__rY   r	   )r\   rX   r   ©Ú	__class__r   r   râ   †  s    
z'_CatalogDictionaryMeta.__getattribute__)r   r   r   r   r   râ   Ú__classcell__r   r   rã   r   rÝ   …  s   rÝ   c                   @   s   e Zd Zddœdd„ZdS )rß   Nr   c                 C   s   t dddƒ d S )Nrß   r&   rà   r   r   r   r   r   Ú__init__�  s    zCatalogDictionary.__init__)r   r   r   ræ   r   r   r   r   rß   Ž  s   rß   )Ú	metaclassc                   @   s   e Zd ZdZdZdZdS )ÚOutlineFontFlagzBA class used as an enumerable flag for formatting an outline font.r   r?   N)r   r   r   r   ZitalicZboldr   r   r   r   rè   “  s   rè   c                   @   s$   e Zd ZdZdZdZdZdZdZdS )ÚPageLabelStylezN
    Table 8.10 in the 1.7 reference.
    Table 161 in the 2.0 reference.
    r·   r7   z/rz/Az/aN)	r   r   r   r   ZDECIMALZUPPERCASE_ROMANZLOWERCASE_ROMANZUPPERCASE_LETTERZLOWERCASE_LETTERr   r   r   r   ré   š  s   ré   c                   @   s8   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdS )ÚAnnotationFlagu    See Â§12.5.3 "Annotation Flags".r   r?   r@   rA   rB   rC   rD   rE   rF   rG   N)r   r   r   r   Z	INVISIBLEZHIDDENrm   ZNO_ZOOMZ	NO_ROTATEZNO_VIEWrÕ   ÚLOCKEDZTOGGLE_NO_VIEWZLOCKED_CONTENTSr   r   r   r   rê   §  s   rê   c                   @   s2   e Zd ZdZeƒ Zeƒ Zeƒ ZeeB eB ZeZ	dS )Ú	ImageTyper   N)
r   r   r   ÚNONEr   ZXOBJECT_IMAGESZINLINE_IMAGESZDRAWING_IMAGESÚALLZIMAGESr   r   r   r   rì   Ô  s   rì   r¯   r­   r®   ú/Indexedrˆ   r‰   rŠ   r‹   rŒ   r�   rŽ   ú/RelativeColorimetric)z/Gz/RGBz/CMYKú/Ir�   r‘   r’   r“   r”   r•   r–   r¯   r­   r®   rï   rˆ   r‰   rŠ   r‹   rŒ   r�   rŽ   rð   r™   rr   r¤   r†   r…   r£   r¢   r¦   r¥   r§   )z/BPCz/CSr·   z/DPr   z/Hz/Wrñ   r¥   z/IMr™   rr   r¤   r†   r…   r£   r¢   r¦   r§   c                   @   s0   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
S )ÚAFRelationshipz±
    Associated file relationship types, defining the relationship between
    the PDF component and the associated file.

    Defined in table 43 of the PDF 2.0 reference.
    z/Sourcez/Dataz/Alternativez/Supplementz/EncryptedPayloadz	/FormDataz/Schemaz/UnspecifiedN)r   r   r   r   ZSOURCEZDATAZALTERNATIVEZ
SUPPLEMENTZENCRYPTED_PAYLOADZ	FORM_DATAZSCHEMAZUNSPECIFIEDr   r   r   r   rò     s   rò   c                   @   s$   e Zd ZdZdZdZdZdZdZdS )ÚBorderStyleszs
    A class defining border styles used in PDF documents.

    Defined in table 168 of the PDF 2.0 reference.
    r|   r·   rñ   r¶   r8   N)	r   r   r   r   ZBEVELEDZDASHEDZINSETZSOLIDZ
UNDERLINEDr   r   r   r   ró      s   ró   c                   @   s4   e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdS )Ú	FontFlagsz„
    A class defining font flags in PDF document font descriptor resources.

    Defined in table 121 of the PDF 2.0 reference.
    r   r?   r@   rA   rC   rD   rL   rM   rN   N)r   r   r   r   ZFIXED_PITCHZSERIFZSYMBOLICZSCRIPTZNONSYMBOLICZITALICZALL_CAPZ	SMALL_CAPZ
FORCE_BOLDr   r   r   r   rô   .  s   rô   )6r   ÚsysÚenumr   r   r   r   Útypingr   Ú_utilsr	   Úversion_infor   r   r   r!   r&   r6   r>   rq   rv   rz   r~   r„   r‡   r�   r˜   rž   r    r¬   r°   r´   rµ   rº   r¿   rÁ   rÑ   rÔ   rÖ   r×   rØ   ÚtyperÝ   rß   rè   ré   rê   ZPDF_KEYSrì   Z_INLINE_IMAGE_VALUE_MAPPINGZ_INLINE_IMAGE_KEY_MAPPINGrò   ró   rô   r   r   r   r   Ú<module>   sè   

	$Q(	 ) 	æ
éí