;ò Ç tDc@sädkZdkZdkZdkZydkZdZWn dZnXdkZdkZdkZdk Z dk Z ye gƒWne j od„Z nXye gƒWne j od„Z nXdfd„ƒYZdfd„ƒYZd efd „ƒYZd efd „ƒYZd efd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdfd„ƒYZdfd„ƒYZdS(NiicCsttt|ƒƒ|ƒSdS(N(szipsxrangeslenslist(slist((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pys enumerate$scCs/h}x|D]\}}|||> startxref %i s%%EOF (srefnosselfsobjectssobjects fileposessappendsfilestellswriteswritersxrefpossfilepossgetrefnoscatalogsPDFinfo( sselfsfileswriterscatalogs fileposessobjectsrefnosxrefpossfilepos((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pyswritePs,    cCs5||ii|hƒ|<|od|i|> s s /%s %i 0 Rs>> (sfileswritesjoinsappends_[1]sselfsprocsetsskeyssps resourcessitemss resourcetypesnamesobjectsgetrefno(sselfsfilesnames resourcetypesobjects_[1]sps resources((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pyswriteresourcesxs H  h( s__name__s __module__s__init__saddsgetrefnos mergeregistryswritesNones addresourceswriteresources(((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pys PDFregistry2s    # s PDFobjectcBs&tZed„Zd„Zd„ZRS(NcCs6||_|tjot|ƒ|_n ||_dS(sÚcreate a PDFobject - type has to be a string describing the type of the object - _id is a unique identification used for the object if it is not None. Otherwise id(self) is used N(stypesselfs_idsNonesid(sselfstypes_id((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pys__init__„s   cCsdS(N((sselfsother((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pysmergescCstdƒ‚dS(Ns5write method has to be provided by PDFobject subclass(sNotImplementedError(sselfsfileswritersregistry((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pyswrite“s(s__name__s __module__sNones__init__smergeswrite(((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pys PDFobject‚s s PDFcatalogcBstZd„Zd„ZRS(NcCsUti|dƒt|||ƒ|_|i|iƒtƒ|_|i|iƒdS(Nscatalog( s PDFobjects__init__sselfsPDFpagessdocumentswritersregistrysaddsPDFinfo(sselfsdocumentswritersregistry((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pys__init__™s  cCsI|id|i|iƒƒ|io|idƒn|idƒdS(Ns << /Type /Catalog /Pages %i 0 R s/PageMode /FullScreen s>> (sfileswritesregistrysgetrefnosselfsPDFpagesswriters fullscreen(sselfsfileswritersregistry((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pyswrite s (s__name__s __module__s__init__swrite(((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pys PDFcatalog—s sPDFinfocBstZd„Zd„ZRS(NcCsti|dƒdS(Nsinfo(s PDFobjects__init__sself(sself((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pys__init__«scCs^tidjodtti ddƒ}n5tidjodttiddƒ}nd}d„}|idƒ|io|id||iƒƒn|io|id ||iƒƒn|i o|id ||i ƒƒn|i o|id ||i ƒƒn|id t i ƒ|id ti dƒ|fƒ|idƒdS(Nis -%02i'%02i'i<s +%02i'%02i'sZ00'00'cCsrd}xa|D]Y}dt|ƒjo djno |djo||7}q |dt|ƒ7}q W|SdS(Nsi is()[]<>\s\%03o(srssscsord(sssrsc((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pys pdfstring·s1s<< s /Title (%s) s /Author (%s) s/Subject (%s) s/Keywords (%s) s/Creator (PyX %s) s/CreationDate (D:%s%s) s %Y%m%d%H%Ms>> ( stimestimezonesdivmods pdfstringsfileswriteswriterstitlesauthorssubjectskeywordssversionsstrftime(sselfsfileswritersregistrystimezones pdfstring((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pyswrite®s$      (s__name__s __module__s__init__swrite(((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pysPDFinfo©s sPDFpagescBstZd„Zd„ZRS(NcCsrti|dƒg|_xRt|iƒD]A\}}t |||||ƒ}|i |ƒ|ii |ƒq)WdS(Nspages(s PDFobjects__init__sselfs PDFpagelists enumeratesdocumentspagesspagenospagesPDFpageswritersregistrysaddsappend(sselfsdocumentswritersregistryspagenospage((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pys__init__Ðs   c Cs^|iddigi}|iD]}|d|i |ƒƒq ~ƒt |iƒfƒdS(Ns(<< /Type /Pages /Kids [%s] /Count %i >> s s%i 0 R( sfileswritesjoinsappends_[1]sselfs PDFpagelistspagesregistrysgetrefnoslen(sselfsfileswritersregistrys_[1]spage((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pyswriteØs(s__name__s __module__s__init__swrite(((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pysPDFpagesÎs sPDFpagecBstZd„Zd„ZRS(NcCsmti|dƒ||_||_tƒ|_t|||iƒ|_|ii |iƒ|i |iƒdS(Nspage( s PDFobjects__init__sselfsPDFpagesspages PDFregistrys pageregistrys PDFcontentswritersaddsregistrys mergeregistry(sselfspagespagenosPDFpagesswritersregistry((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pys__init__äs   cCs|id|i|iƒƒ|ii}|o3|idti |i ƒti |i ƒfƒn|id|i i iƒƒ|i i o|io!|id|i i iƒƒn|iio|idƒn|id|i|i ƒƒ|ii|ƒ|idƒdS(Ns<< /Type /Page /Parent %i 0 R s/MediaBox [0 0 %f %f] s/MediaBox [%f %f %f %f] s/CropBox [%f %f %f %f] s /Rotate 90 s/Contents %i 0 R s>> (sfileswritesregistrysgetrefnosselfsPDFpagesspages paperformatsunitstoptswidthsheights PDFcontentsbboxshighrestuple_ptswriters writebboxsrotateds pageregistryswriteresources(sselfsfileswritersregistrys paperformat((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pyswriteòs 3! (s__name__s __module__s__init__swrite(((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pysPDFpageâs s PDFcontentcBstZd„Zd„ZRS(NcCspti||dƒtiƒ}tiƒ|_t ƒ}|i |||||iƒ|iƒ|_|iƒdS(Nscontent(s PDFobjects__init__sselfsregistrys cStringIOsStringIOs contentfilesbboxsemptyscontextsacontextspages processPDFswritersgetvaluescontentsclose(sselfspageswritersregistrysacontexts contentfile((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pys__init__s  cCs†|ioti|iƒ}n |i}|idt|ƒƒ|io|idƒn|idƒ|i|ƒ|idƒdS(Ns<< /Length %i s/Filter /FlateDecode s >> stream s endstream (swriterscompressszlibsselfscontentsfileswriteslen(sselfsfileswritersregistryscontent((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pyswrites     (s__name__s __module__s__init__swrite(((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pys PDFcontents sPDFfontcBstZd„Zd„ZRS(NcCsÁti|d|iƒ|id|i|ddƒt||||ƒ|_ |i |i ƒ|i o,t |i ||ƒ|_ |i |i ƒn t|_ |i|_|i|_|i|_dS(NsfontsFontsprocsetsText(s PDFobjects__init__sselfsfontsnamesregistrys addresourcesPDFfontdescriptorscharsswritersfontdescriptorsaddsencodings PDFencodingsNones basefontnamesmetric(sselfsfontscharsswritersregistry((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pys__init__ s    c Csb|idƒ|id|iƒ|id|iƒ|iitj o|iiitj o|iii}t |i ƒƒ}t |i ƒƒ}|id|ƒ|id|ƒ|idƒxŠt||dƒD]u}|o |d o|id ƒn|id ƒ|i|ƒo!|id |ii|ƒƒqÔ|id ƒqÔW|id ƒn¬|idƒxŽtdƒD]€}|o |d o|id ƒn|id ƒy|ii|ƒ}Wnttfj o d}nX|id |ƒqxW|id ƒ|id|i|iƒƒ|io!|id|i|iƒƒn|idƒdS(Ns<< /Type /Font /Subtype /Type1 s /Name /%s s/BaseFont /%s s/FirstChar %d s /LastChar %d s /Widths [iis s s%fs0s ] s$/FirstChar 0 /LastChar 255 /Widths [iis/FontDescriptor %d 0 R s/Encoding %d 0 R s>> (sfileswritesselfsnames basefontnamesfontdescriptorsfontfilesNones usedcharssminskeyss firstcharsmaxslastcharsrangesishas_keysmetrics getwidth_dsswidths IndexErrorsAttributeErrorsregistrysgetrefnosencoding( sselfsfileswritersregistrysiswidths usedcharsslastchars firstchar((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pyswrite1sF )  !      !(s__name__s __module__s__init__swrite(((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pysPDFfonts sPDFfontdescriptorcBstZd„Zd„ZRS(NcCsŒti|d|iƒ|itjo t|_n8t|i|i|i |||ƒ|_|i |iƒ|i|_|iiƒ|_dS(Nsfontdescriptor(s PDFobjects__init__sselfsfonts basefontnamesfilenamesNonesfontfiles PDFfontfilesencodingscharsswritersregistrysaddsnamesmetricsfontinfo(sselfsfontscharsswritersregistry((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pys__init__as ' cCs|id|iƒ|itjo|idƒn|id|iiƒƒ|id|iiƒ|id|ii ƒ|id|ii ƒ|id|ii ƒ|id|ii ƒ|id |ii ƒ|itj o!|id |i|iƒƒn|id ƒdS( Ns'<< /Type /FontDescriptor /FontName /%s s /Flags 32 s /Flags %d s/FontBBox [%d %d %d %d] s/ItalicAngle %d s /Ascent %d s /Descent %d s/CapHeight %d s /StemV %d s/FontFile %d 0 R s>> (sfileswritesselfsnamesfontfilesNonesgetflagssfontinfosfontbboxs italicanglesascentsdescents capheightsvstemsregistrysgetrefno(sselfsfileswritersregistry((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pyswritems!(s__name__s __module__s__init__swrite(((sA/mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/pdfwriter.pysPDFfontdescriptor_s s PDFfontfilecBs5tZd„Zd„Zd„Zd„Zd„ZRS(NcCsˆti|d|ƒ||_||_|tjo t|_n |i|_h|_x|D]}d|i|