mupdf.py 2.3 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667
  1. # This file was automatically generated by SWIG (https://www.swig.org).
  2. # Version 4.4.0
  3. #
  4. # Do not make changes to this file unless you know what you are doing - modify
  5. # the SWIG interface file instead.
  6. from sys import version_info as _swig_python_version_info
  7. # Import the low-level C/C++ module
  8. if getattr(globals().get("__spec__"), "parent", None) or __package__ or "." in __name__:
  9. from . import _mupdf
  10. else:
  11. import _mupdf
  12. try:
  13. import builtins as __builtin__
  14. except ImportError:
  15. import __builtin__
  16. def _swig_repr(self):
  17. try:
  18. strthis = "proxy of " + self.this.__repr__()
  19. except __builtin__.Exception:
  20. strthis = ""
  21. return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
  22. def _swig_setattr_nondynamic_instance_variable(set):
  23. def set_instance_attr(self, name, value):
  24. if name == "this":
  25. set(self, name, value)
  26. elif name == "thisown":
  27. self.this.own(value)
  28. elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
  29. set(self, name, value)
  30. else:
  31. raise AttributeError("You cannot add instance attributes to %s" % self)
  32. return set_instance_attr
  33. def _swig_setattr_nondynamic_class_variable(set):
  34. def set_class_attr(cls, name, value):
  35. if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
  36. set(cls, name, value)
  37. else:
  38. raise AttributeError("You cannot add class attributes to %s" % cls)
  39. return set_class_attr
  40. def _swig_add_metaclass(metaclass):
  41. """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
  42. def wrapper(cls):
  43. return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
  44. return wrapper
  45. class _SwigNonDynamicMeta(type):
  46. """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
  47. __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
  48. import weakref
  49. def cdata(ptr, nelements=1):
  50. return _mupdf.cdata(ptr, nelements)
  51. def memmove(data, indata):
  52. return _mupdf.memmove(data, indata)
  53. class SwigPyIterator(object):
  54. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  55. def __init__(self, *args, **kwargs):
  56. raise AttributeError("No constructor defined - class is abstract")
  57. __repr__ = _swig_repr
  58. __swig_destroy__ = _mupdf.delete_SwigPyIterator
  59. def value(self):
  60. return _mupdf.SwigPyIterator_value(self)
  61. def incr(self, n=1):
  62. return _mupdf.SwigPyIterator_incr(self, n)
  63. def decr(self, n=1):
  64. return _mupdf.SwigPyIterator_decr(self, n)
  65. def distance(self, x):
  66. return _mupdf.SwigPyIterator_distance(self, x)
  67. def equal(self, x):
  68. return _mupdf.SwigPyIterator_equal(self, x)
  69. def copy(self):
  70. return _mupdf.SwigPyIterator_copy(self)
  71. def next(self):
  72. return _mupdf.SwigPyIterator_next(self)
  73. def __next__(self):
  74. return _mupdf.SwigPyIterator___next__(self)
  75. def previous(self):
  76. return _mupdf.SwigPyIterator_previous(self)
  77. def advance(self, n):
  78. return _mupdf.SwigPyIterator_advance(self, n)
  79. def __eq__(self, x):
  80. return _mupdf.SwigPyIterator___eq__(self, x)
  81. def __ne__(self, x):
  82. return _mupdf.SwigPyIterator___ne__(self, x)
  83. def __iadd__(self, n):
  84. return _mupdf.SwigPyIterator___iadd__(self, n)
  85. def __isub__(self, n):
  86. return _mupdf.SwigPyIterator___isub__(self, n)
  87. def __add__(self, n):
  88. return _mupdf.SwigPyIterator___add__(self, n)
  89. def __sub__(self, *args):
  90. return _mupdf.SwigPyIterator___sub__(self, *args)
  91. def __iter__(self):
  92. return self
  93. # Register SwigPyIterator in _mupdf:
  94. _mupdf.SwigPyIterator_swigregister(SwigPyIterator)
  95. class uchar_array(object):
  96. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  97. __repr__ = _swig_repr
  98. def __init__(self, nelements):
  99. _mupdf.uchar_array_swiginit(self, _mupdf.new_uchar_array(nelements))
  100. __swig_destroy__ = _mupdf.delete_uchar_array
  101. def __getitem__(self, index):
  102. return _mupdf.uchar_array___getitem__(self, index)
  103. def __setitem__(self, index, value):
  104. return _mupdf.uchar_array___setitem__(self, index, value)
  105. def cast(self):
  106. return _mupdf.uchar_array_cast(self)
  107. @staticmethod
  108. def frompointer(t):
  109. return _mupdf.uchar_array_frompointer(t)
  110. # Register uchar_array in _mupdf:
  111. _mupdf.uchar_array_swigregister(uchar_array)
  112. class vectoruc(object):
  113. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  114. __repr__ = _swig_repr
  115. def iterator(self):
  116. return _mupdf.vectoruc_iterator(self)
  117. def __iter__(self):
  118. return self.iterator()
  119. def __nonzero__(self):
  120. return _mupdf.vectoruc___nonzero__(self)
  121. def __bool__(self):
  122. return _mupdf.vectoruc___bool__(self)
  123. def __len__(self):
  124. return _mupdf.vectoruc___len__(self)
  125. def __getslice__(self, i, j):
  126. return _mupdf.vectoruc___getslice__(self, i, j)
  127. def __setslice__(self, *args):
  128. return _mupdf.vectoruc___setslice__(self, *args)
  129. def __delslice__(self, i, j):
  130. return _mupdf.vectoruc___delslice__(self, i, j)
  131. def __delitem__(self, *args):
  132. return _mupdf.vectoruc___delitem__(self, *args)
  133. def __getitem__(self, *args):
  134. return _mupdf.vectoruc___getitem__(self, *args)
  135. def __setitem__(self, *args):
  136. return _mupdf.vectoruc___setitem__(self, *args)
  137. def pop(self):
  138. return _mupdf.vectoruc_pop(self)
  139. def append(self, x):
  140. return _mupdf.vectoruc_append(self, x)
  141. def empty(self):
  142. return _mupdf.vectoruc_empty(self)
  143. def size(self):
  144. return _mupdf.vectoruc_size(self)
  145. def swap(self, v):
  146. return _mupdf.vectoruc_swap(self, v)
  147. def begin(self):
  148. return _mupdf.vectoruc_begin(self)
  149. def end(self):
  150. return _mupdf.vectoruc_end(self)
  151. def rbegin(self):
  152. return _mupdf.vectoruc_rbegin(self)
  153. def rend(self):
  154. return _mupdf.vectoruc_rend(self)
  155. def clear(self):
  156. return _mupdf.vectoruc_clear(self)
  157. def get_allocator(self):
  158. return _mupdf.vectoruc_get_allocator(self)
  159. def pop_back(self):
  160. return _mupdf.vectoruc_pop_back(self)
  161. def erase(self, *args):
  162. return _mupdf.vectoruc_erase(self, *args)
  163. def __init__(self, *args):
  164. _mupdf.vectoruc_swiginit(self, _mupdf.new_vectoruc(*args))
  165. def push_back(self, x):
  166. return _mupdf.vectoruc_push_back(self, x)
  167. def front(self):
  168. return _mupdf.vectoruc_front(self)
  169. def back(self):
  170. return _mupdf.vectoruc_back(self)
  171. def assign(self, n, x):
  172. return _mupdf.vectoruc_assign(self, n, x)
  173. def resize(self, *args):
  174. return _mupdf.vectoruc_resize(self, *args)
  175. def insert(self, *args):
  176. return _mupdf.vectoruc_insert(self, *args)
  177. def reserve(self, n):
  178. return _mupdf.vectoruc_reserve(self, n)
  179. def capacity(self):
  180. return _mupdf.vectoruc_capacity(self)
  181. __swig_destroy__ = _mupdf.delete_vectoruc
  182. # Register vectoruc in _mupdf:
  183. _mupdf.vectoruc_swigregister(vectoruc)
  184. class vectori(object):
  185. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  186. __repr__ = _swig_repr
  187. def iterator(self):
  188. return _mupdf.vectori_iterator(self)
  189. def __iter__(self):
  190. return self.iterator()
  191. def __nonzero__(self):
  192. return _mupdf.vectori___nonzero__(self)
  193. def __bool__(self):
  194. return _mupdf.vectori___bool__(self)
  195. def __len__(self):
  196. return _mupdf.vectori___len__(self)
  197. def __getslice__(self, i, j):
  198. return _mupdf.vectori___getslice__(self, i, j)
  199. def __setslice__(self, *args):
  200. return _mupdf.vectori___setslice__(self, *args)
  201. def __delslice__(self, i, j):
  202. return _mupdf.vectori___delslice__(self, i, j)
  203. def __delitem__(self, *args):
  204. return _mupdf.vectori___delitem__(self, *args)
  205. def __getitem__(self, *args):
  206. return _mupdf.vectori___getitem__(self, *args)
  207. def __setitem__(self, *args):
  208. return _mupdf.vectori___setitem__(self, *args)
  209. def pop(self):
  210. return _mupdf.vectori_pop(self)
  211. def append(self, x):
  212. return _mupdf.vectori_append(self, x)
  213. def empty(self):
  214. return _mupdf.vectori_empty(self)
  215. def size(self):
  216. return _mupdf.vectori_size(self)
  217. def swap(self, v):
  218. return _mupdf.vectori_swap(self, v)
  219. def begin(self):
  220. return _mupdf.vectori_begin(self)
  221. def end(self):
  222. return _mupdf.vectori_end(self)
  223. def rbegin(self):
  224. return _mupdf.vectori_rbegin(self)
  225. def rend(self):
  226. return _mupdf.vectori_rend(self)
  227. def clear(self):
  228. return _mupdf.vectori_clear(self)
  229. def get_allocator(self):
  230. return _mupdf.vectori_get_allocator(self)
  231. def pop_back(self):
  232. return _mupdf.vectori_pop_back(self)
  233. def erase(self, *args):
  234. return _mupdf.vectori_erase(self, *args)
  235. def __init__(self, *args):
  236. _mupdf.vectori_swiginit(self, _mupdf.new_vectori(*args))
  237. def push_back(self, x):
  238. return _mupdf.vectori_push_back(self, x)
  239. def front(self):
  240. return _mupdf.vectori_front(self)
  241. def back(self):
  242. return _mupdf.vectori_back(self)
  243. def assign(self, n, x):
  244. return _mupdf.vectori_assign(self, n, x)
  245. def resize(self, *args):
  246. return _mupdf.vectori_resize(self, *args)
  247. def insert(self, *args):
  248. return _mupdf.vectori_insert(self, *args)
  249. def reserve(self, n):
  250. return _mupdf.vectori_reserve(self, n)
  251. def capacity(self):
  252. return _mupdf.vectori_capacity(self)
  253. __swig_destroy__ = _mupdf.delete_vectori
  254. # Register vectori in _mupdf:
  255. _mupdf.vectori_swigregister(vectori)
  256. class vectorf(object):
  257. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  258. __repr__ = _swig_repr
  259. def iterator(self):
  260. return _mupdf.vectorf_iterator(self)
  261. def __iter__(self):
  262. return self.iterator()
  263. def __nonzero__(self):
  264. return _mupdf.vectorf___nonzero__(self)
  265. def __bool__(self):
  266. return _mupdf.vectorf___bool__(self)
  267. def __len__(self):
  268. return _mupdf.vectorf___len__(self)
  269. def __getslice__(self, i, j):
  270. return _mupdf.vectorf___getslice__(self, i, j)
  271. def __setslice__(self, *args):
  272. return _mupdf.vectorf___setslice__(self, *args)
  273. def __delslice__(self, i, j):
  274. return _mupdf.vectorf___delslice__(self, i, j)
  275. def __delitem__(self, *args):
  276. return _mupdf.vectorf___delitem__(self, *args)
  277. def __getitem__(self, *args):
  278. return _mupdf.vectorf___getitem__(self, *args)
  279. def __setitem__(self, *args):
  280. return _mupdf.vectorf___setitem__(self, *args)
  281. def pop(self):
  282. return _mupdf.vectorf_pop(self)
  283. def append(self, x):
  284. return _mupdf.vectorf_append(self, x)
  285. def empty(self):
  286. return _mupdf.vectorf_empty(self)
  287. def size(self):
  288. return _mupdf.vectorf_size(self)
  289. def swap(self, v):
  290. return _mupdf.vectorf_swap(self, v)
  291. def begin(self):
  292. return _mupdf.vectorf_begin(self)
  293. def end(self):
  294. return _mupdf.vectorf_end(self)
  295. def rbegin(self):
  296. return _mupdf.vectorf_rbegin(self)
  297. def rend(self):
  298. return _mupdf.vectorf_rend(self)
  299. def clear(self):
  300. return _mupdf.vectorf_clear(self)
  301. def get_allocator(self):
  302. return _mupdf.vectorf_get_allocator(self)
  303. def pop_back(self):
  304. return _mupdf.vectorf_pop_back(self)
  305. def erase(self, *args):
  306. return _mupdf.vectorf_erase(self, *args)
  307. def __init__(self, *args):
  308. _mupdf.vectorf_swiginit(self, _mupdf.new_vectorf(*args))
  309. def push_back(self, x):
  310. return _mupdf.vectorf_push_back(self, x)
  311. def front(self):
  312. return _mupdf.vectorf_front(self)
  313. def back(self):
  314. return _mupdf.vectorf_back(self)
  315. def assign(self, n, x):
  316. return _mupdf.vectorf_assign(self, n, x)
  317. def resize(self, *args):
  318. return _mupdf.vectorf_resize(self, *args)
  319. def insert(self, *args):
  320. return _mupdf.vectorf_insert(self, *args)
  321. def reserve(self, n):
  322. return _mupdf.vectorf_reserve(self, n)
  323. def capacity(self):
  324. return _mupdf.vectorf_capacity(self)
  325. __swig_destroy__ = _mupdf.delete_vectorf
  326. # Register vectorf in _mupdf:
  327. _mupdf.vectorf_swigregister(vectorf)
  328. class vectord(object):
  329. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  330. __repr__ = _swig_repr
  331. def iterator(self):
  332. return _mupdf.vectord_iterator(self)
  333. def __iter__(self):
  334. return self.iterator()
  335. def __nonzero__(self):
  336. return _mupdf.vectord___nonzero__(self)
  337. def __bool__(self):
  338. return _mupdf.vectord___bool__(self)
  339. def __len__(self):
  340. return _mupdf.vectord___len__(self)
  341. def __getslice__(self, i, j):
  342. return _mupdf.vectord___getslice__(self, i, j)
  343. def __setslice__(self, *args):
  344. return _mupdf.vectord___setslice__(self, *args)
  345. def __delslice__(self, i, j):
  346. return _mupdf.vectord___delslice__(self, i, j)
  347. def __delitem__(self, *args):
  348. return _mupdf.vectord___delitem__(self, *args)
  349. def __getitem__(self, *args):
  350. return _mupdf.vectord___getitem__(self, *args)
  351. def __setitem__(self, *args):
  352. return _mupdf.vectord___setitem__(self, *args)
  353. def pop(self):
  354. return _mupdf.vectord_pop(self)
  355. def append(self, x):
  356. return _mupdf.vectord_append(self, x)
  357. def empty(self):
  358. return _mupdf.vectord_empty(self)
  359. def size(self):
  360. return _mupdf.vectord_size(self)
  361. def swap(self, v):
  362. return _mupdf.vectord_swap(self, v)
  363. def begin(self):
  364. return _mupdf.vectord_begin(self)
  365. def end(self):
  366. return _mupdf.vectord_end(self)
  367. def rbegin(self):
  368. return _mupdf.vectord_rbegin(self)
  369. def rend(self):
  370. return _mupdf.vectord_rend(self)
  371. def clear(self):
  372. return _mupdf.vectord_clear(self)
  373. def get_allocator(self):
  374. return _mupdf.vectord_get_allocator(self)
  375. def pop_back(self):
  376. return _mupdf.vectord_pop_back(self)
  377. def erase(self, *args):
  378. return _mupdf.vectord_erase(self, *args)
  379. def __init__(self, *args):
  380. _mupdf.vectord_swiginit(self, _mupdf.new_vectord(*args))
  381. def push_back(self, x):
  382. return _mupdf.vectord_push_back(self, x)
  383. def front(self):
  384. return _mupdf.vectord_front(self)
  385. def back(self):
  386. return _mupdf.vectord_back(self)
  387. def assign(self, n, x):
  388. return _mupdf.vectord_assign(self, n, x)
  389. def resize(self, *args):
  390. return _mupdf.vectord_resize(self, *args)
  391. def insert(self, *args):
  392. return _mupdf.vectord_insert(self, *args)
  393. def reserve(self, n):
  394. return _mupdf.vectord_reserve(self, n)
  395. def capacity(self):
  396. return _mupdf.vectord_capacity(self)
  397. __swig_destroy__ = _mupdf.delete_vectord
  398. # Register vectord in _mupdf:
  399. _mupdf.vectord_swigregister(vectord)
  400. class vectors(object):
  401. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  402. __repr__ = _swig_repr
  403. def iterator(self):
  404. return _mupdf.vectors_iterator(self)
  405. def __iter__(self):
  406. return self.iterator()
  407. def __nonzero__(self):
  408. return _mupdf.vectors___nonzero__(self)
  409. def __bool__(self):
  410. return _mupdf.vectors___bool__(self)
  411. def __len__(self):
  412. return _mupdf.vectors___len__(self)
  413. def __getslice__(self, i, j):
  414. return _mupdf.vectors___getslice__(self, i, j)
  415. def __setslice__(self, *args):
  416. return _mupdf.vectors___setslice__(self, *args)
  417. def __delslice__(self, i, j):
  418. return _mupdf.vectors___delslice__(self, i, j)
  419. def __delitem__(self, *args):
  420. return _mupdf.vectors___delitem__(self, *args)
  421. def __getitem__(self, *args):
  422. return _mupdf.vectors___getitem__(self, *args)
  423. def __setitem__(self, *args):
  424. return _mupdf.vectors___setitem__(self, *args)
  425. def pop(self):
  426. return _mupdf.vectors_pop(self)
  427. def append(self, x):
  428. return _mupdf.vectors_append(self, x)
  429. def empty(self):
  430. return _mupdf.vectors_empty(self)
  431. def size(self):
  432. return _mupdf.vectors_size(self)
  433. def swap(self, v):
  434. return _mupdf.vectors_swap(self, v)
  435. def begin(self):
  436. return _mupdf.vectors_begin(self)
  437. def end(self):
  438. return _mupdf.vectors_end(self)
  439. def rbegin(self):
  440. return _mupdf.vectors_rbegin(self)
  441. def rend(self):
  442. return _mupdf.vectors_rend(self)
  443. def clear(self):
  444. return _mupdf.vectors_clear(self)
  445. def get_allocator(self):
  446. return _mupdf.vectors_get_allocator(self)
  447. def pop_back(self):
  448. return _mupdf.vectors_pop_back(self)
  449. def erase(self, *args):
  450. return _mupdf.vectors_erase(self, *args)
  451. def __init__(self, *args):
  452. _mupdf.vectors_swiginit(self, _mupdf.new_vectors(*args))
  453. def push_back(self, x):
  454. return _mupdf.vectors_push_back(self, x)
  455. def front(self):
  456. return _mupdf.vectors_front(self)
  457. def back(self):
  458. return _mupdf.vectors_back(self)
  459. def assign(self, n, x):
  460. return _mupdf.vectors_assign(self, n, x)
  461. def resize(self, *args):
  462. return _mupdf.vectors_resize(self, *args)
  463. def insert(self, *args):
  464. return _mupdf.vectors_insert(self, *args)
  465. def reserve(self, n):
  466. return _mupdf.vectors_reserve(self, n)
  467. def capacity(self):
  468. return _mupdf.vectors_capacity(self)
  469. __swig_destroy__ = _mupdf.delete_vectors
  470. # Register vectors in _mupdf:
  471. _mupdf.vectors_swigregister(vectors)
  472. class map_string_int(object):
  473. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  474. __repr__ = _swig_repr
  475. def iterator(self):
  476. return _mupdf.map_string_int_iterator(self)
  477. def __iter__(self):
  478. return self.iterator()
  479. def __nonzero__(self):
  480. return _mupdf.map_string_int___nonzero__(self)
  481. def __bool__(self):
  482. return _mupdf.map_string_int___bool__(self)
  483. def __len__(self):
  484. return _mupdf.map_string_int___len__(self)
  485. def __iter__(self):
  486. return self.key_iterator()
  487. def iterkeys(self):
  488. return self.key_iterator()
  489. def itervalues(self):
  490. return self.value_iterator()
  491. def iteritems(self):
  492. return self.iterator()
  493. def __getitem__(self, key):
  494. return _mupdf.map_string_int___getitem__(self, key)
  495. def __delitem__(self, key):
  496. return _mupdf.map_string_int___delitem__(self, key)
  497. def has_key(self, key):
  498. return _mupdf.map_string_int_has_key(self, key)
  499. def keys(self):
  500. return _mupdf.map_string_int_keys(self)
  501. def values(self):
  502. return _mupdf.map_string_int_values(self)
  503. def items(self):
  504. return _mupdf.map_string_int_items(self)
  505. def __contains__(self, key):
  506. return _mupdf.map_string_int___contains__(self, key)
  507. def key_iterator(self):
  508. return _mupdf.map_string_int_key_iterator(self)
  509. def value_iterator(self):
  510. return _mupdf.map_string_int_value_iterator(self)
  511. def __setitem__(self, *args):
  512. return _mupdf.map_string_int___setitem__(self, *args)
  513. def asdict(self):
  514. return _mupdf.map_string_int_asdict(self)
  515. def __init__(self, *args):
  516. _mupdf.map_string_int_swiginit(self, _mupdf.new_map_string_int(*args))
  517. def empty(self):
  518. return _mupdf.map_string_int_empty(self)
  519. def size(self):
  520. return _mupdf.map_string_int_size(self)
  521. def swap(self, v):
  522. return _mupdf.map_string_int_swap(self, v)
  523. def begin(self):
  524. return _mupdf.map_string_int_begin(self)
  525. def end(self):
  526. return _mupdf.map_string_int_end(self)
  527. def rbegin(self):
  528. return _mupdf.map_string_int_rbegin(self)
  529. def rend(self):
  530. return _mupdf.map_string_int_rend(self)
  531. def clear(self):
  532. return _mupdf.map_string_int_clear(self)
  533. def get_allocator(self):
  534. return _mupdf.map_string_int_get_allocator(self)
  535. def count(self, x):
  536. return _mupdf.map_string_int_count(self, x)
  537. def erase(self, *args):
  538. return _mupdf.map_string_int_erase(self, *args)
  539. def find(self, x):
  540. return _mupdf.map_string_int_find(self, x)
  541. def lower_bound(self, x):
  542. return _mupdf.map_string_int_lower_bound(self, x)
  543. def upper_bound(self, x):
  544. return _mupdf.map_string_int_upper_bound(self, x)
  545. __swig_destroy__ = _mupdf.delete_map_string_int
  546. # Register map_string_int in _mupdf:
  547. _mupdf.map_string_int_swigregister(map_string_int)
  548. class vectorq(object):
  549. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  550. __repr__ = _swig_repr
  551. def iterator(self):
  552. return _mupdf.vectorq_iterator(self)
  553. def __iter__(self):
  554. return self.iterator()
  555. def __nonzero__(self):
  556. return _mupdf.vectorq___nonzero__(self)
  557. def __bool__(self):
  558. return _mupdf.vectorq___bool__(self)
  559. def __len__(self):
  560. return _mupdf.vectorq___len__(self)
  561. def __getslice__(self, i, j):
  562. return _mupdf.vectorq___getslice__(self, i, j)
  563. def __setslice__(self, *args):
  564. return _mupdf.vectorq___setslice__(self, *args)
  565. def __delslice__(self, i, j):
  566. return _mupdf.vectorq___delslice__(self, i, j)
  567. def __delitem__(self, *args):
  568. return _mupdf.vectorq___delitem__(self, *args)
  569. def __getitem__(self, *args):
  570. return _mupdf.vectorq___getitem__(self, *args)
  571. def __setitem__(self, *args):
  572. return _mupdf.vectorq___setitem__(self, *args)
  573. def pop(self):
  574. return _mupdf.vectorq_pop(self)
  575. def append(self, x):
  576. return _mupdf.vectorq_append(self, x)
  577. def empty(self):
  578. return _mupdf.vectorq_empty(self)
  579. def size(self):
  580. return _mupdf.vectorq_size(self)
  581. def swap(self, v):
  582. return _mupdf.vectorq_swap(self, v)
  583. def begin(self):
  584. return _mupdf.vectorq_begin(self)
  585. def end(self):
  586. return _mupdf.vectorq_end(self)
  587. def rbegin(self):
  588. return _mupdf.vectorq_rbegin(self)
  589. def rend(self):
  590. return _mupdf.vectorq_rend(self)
  591. def clear(self):
  592. return _mupdf.vectorq_clear(self)
  593. def get_allocator(self):
  594. return _mupdf.vectorq_get_allocator(self)
  595. def pop_back(self):
  596. return _mupdf.vectorq_pop_back(self)
  597. def erase(self, *args):
  598. return _mupdf.vectorq_erase(self, *args)
  599. def __init__(self, *args):
  600. _mupdf.vectorq_swiginit(self, _mupdf.new_vectorq(*args))
  601. def push_back(self, x):
  602. return _mupdf.vectorq_push_back(self, x)
  603. def front(self):
  604. return _mupdf.vectorq_front(self)
  605. def back(self):
  606. return _mupdf.vectorq_back(self)
  607. def assign(self, n, x):
  608. return _mupdf.vectorq_assign(self, n, x)
  609. def resize(self, *args):
  610. return _mupdf.vectorq_resize(self, *args)
  611. def insert(self, *args):
  612. return _mupdf.vectorq_insert(self, *args)
  613. def reserve(self, n):
  614. return _mupdf.vectorq_reserve(self, n)
  615. def capacity(self):
  616. return _mupdf.vectorq_capacity(self)
  617. __swig_destroy__ = _mupdf.delete_vectorq
  618. # Register vectorq in _mupdf:
  619. _mupdf.vectorq_swigregister(vectorq)
  620. class vector_search_page2_hit(object):
  621. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  622. __repr__ = _swig_repr
  623. def iterator(self):
  624. return _mupdf.vector_search_page2_hit_iterator(self)
  625. def __iter__(self):
  626. return self.iterator()
  627. def __nonzero__(self):
  628. return _mupdf.vector_search_page2_hit___nonzero__(self)
  629. def __bool__(self):
  630. return _mupdf.vector_search_page2_hit___bool__(self)
  631. def __len__(self):
  632. return _mupdf.vector_search_page2_hit___len__(self)
  633. def __getslice__(self, i, j):
  634. return _mupdf.vector_search_page2_hit___getslice__(self, i, j)
  635. def __setslice__(self, *args):
  636. return _mupdf.vector_search_page2_hit___setslice__(self, *args)
  637. def __delslice__(self, i, j):
  638. return _mupdf.vector_search_page2_hit___delslice__(self, i, j)
  639. def __delitem__(self, *args):
  640. return _mupdf.vector_search_page2_hit___delitem__(self, *args)
  641. def __getitem__(self, *args):
  642. return _mupdf.vector_search_page2_hit___getitem__(self, *args)
  643. def __setitem__(self, *args):
  644. return _mupdf.vector_search_page2_hit___setitem__(self, *args)
  645. def pop(self):
  646. return _mupdf.vector_search_page2_hit_pop(self)
  647. def append(self, x):
  648. return _mupdf.vector_search_page2_hit_append(self, x)
  649. def empty(self):
  650. return _mupdf.vector_search_page2_hit_empty(self)
  651. def size(self):
  652. return _mupdf.vector_search_page2_hit_size(self)
  653. def swap(self, v):
  654. return _mupdf.vector_search_page2_hit_swap(self, v)
  655. def begin(self):
  656. return _mupdf.vector_search_page2_hit_begin(self)
  657. def end(self):
  658. return _mupdf.vector_search_page2_hit_end(self)
  659. def rbegin(self):
  660. return _mupdf.vector_search_page2_hit_rbegin(self)
  661. def rend(self):
  662. return _mupdf.vector_search_page2_hit_rend(self)
  663. def clear(self):
  664. return _mupdf.vector_search_page2_hit_clear(self)
  665. def get_allocator(self):
  666. return _mupdf.vector_search_page2_hit_get_allocator(self)
  667. def pop_back(self):
  668. return _mupdf.vector_search_page2_hit_pop_back(self)
  669. def erase(self, *args):
  670. return _mupdf.vector_search_page2_hit_erase(self, *args)
  671. def __init__(self, *args):
  672. _mupdf.vector_search_page2_hit_swiginit(self, _mupdf.new_vector_search_page2_hit(*args))
  673. def push_back(self, x):
  674. return _mupdf.vector_search_page2_hit_push_back(self, x)
  675. def front(self):
  676. return _mupdf.vector_search_page2_hit_front(self)
  677. def back(self):
  678. return _mupdf.vector_search_page2_hit_back(self)
  679. def assign(self, n, x):
  680. return _mupdf.vector_search_page2_hit_assign(self, n, x)
  681. def resize(self, *args):
  682. return _mupdf.vector_search_page2_hit_resize(self, *args)
  683. def insert(self, *args):
  684. return _mupdf.vector_search_page2_hit_insert(self, *args)
  685. def reserve(self, n):
  686. return _mupdf.vector_search_page2_hit_reserve(self, n)
  687. def capacity(self):
  688. return _mupdf.vector_search_page2_hit_capacity(self)
  689. __swig_destroy__ = _mupdf.delete_vector_search_page2_hit
  690. # Register vector_search_page2_hit in _mupdf:
  691. _mupdf.vector_search_page2_hit_swigregister(vector_search_page2_hit)
  692. class vector_fz_font_ucs_gid(object):
  693. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  694. __repr__ = _swig_repr
  695. def iterator(self):
  696. return _mupdf.vector_fz_font_ucs_gid_iterator(self)
  697. def __iter__(self):
  698. return self.iterator()
  699. def __nonzero__(self):
  700. return _mupdf.vector_fz_font_ucs_gid___nonzero__(self)
  701. def __bool__(self):
  702. return _mupdf.vector_fz_font_ucs_gid___bool__(self)
  703. def __len__(self):
  704. return _mupdf.vector_fz_font_ucs_gid___len__(self)
  705. def __getslice__(self, i, j):
  706. return _mupdf.vector_fz_font_ucs_gid___getslice__(self, i, j)
  707. def __setslice__(self, *args):
  708. return _mupdf.vector_fz_font_ucs_gid___setslice__(self, *args)
  709. def __delslice__(self, i, j):
  710. return _mupdf.vector_fz_font_ucs_gid___delslice__(self, i, j)
  711. def __delitem__(self, *args):
  712. return _mupdf.vector_fz_font_ucs_gid___delitem__(self, *args)
  713. def __getitem__(self, *args):
  714. return _mupdf.vector_fz_font_ucs_gid___getitem__(self, *args)
  715. def __setitem__(self, *args):
  716. return _mupdf.vector_fz_font_ucs_gid___setitem__(self, *args)
  717. def pop(self):
  718. return _mupdf.vector_fz_font_ucs_gid_pop(self)
  719. def append(self, x):
  720. return _mupdf.vector_fz_font_ucs_gid_append(self, x)
  721. def empty(self):
  722. return _mupdf.vector_fz_font_ucs_gid_empty(self)
  723. def size(self):
  724. return _mupdf.vector_fz_font_ucs_gid_size(self)
  725. def swap(self, v):
  726. return _mupdf.vector_fz_font_ucs_gid_swap(self, v)
  727. def begin(self):
  728. return _mupdf.vector_fz_font_ucs_gid_begin(self)
  729. def end(self):
  730. return _mupdf.vector_fz_font_ucs_gid_end(self)
  731. def rbegin(self):
  732. return _mupdf.vector_fz_font_ucs_gid_rbegin(self)
  733. def rend(self):
  734. return _mupdf.vector_fz_font_ucs_gid_rend(self)
  735. def clear(self):
  736. return _mupdf.vector_fz_font_ucs_gid_clear(self)
  737. def get_allocator(self):
  738. return _mupdf.vector_fz_font_ucs_gid_get_allocator(self)
  739. def pop_back(self):
  740. return _mupdf.vector_fz_font_ucs_gid_pop_back(self)
  741. def erase(self, *args):
  742. return _mupdf.vector_fz_font_ucs_gid_erase(self, *args)
  743. def __init__(self, *args):
  744. _mupdf.vector_fz_font_ucs_gid_swiginit(self, _mupdf.new_vector_fz_font_ucs_gid(*args))
  745. def push_back(self, x):
  746. return _mupdf.vector_fz_font_ucs_gid_push_back(self, x)
  747. def front(self):
  748. return _mupdf.vector_fz_font_ucs_gid_front(self)
  749. def back(self):
  750. return _mupdf.vector_fz_font_ucs_gid_back(self)
  751. def assign(self, n, x):
  752. return _mupdf.vector_fz_font_ucs_gid_assign(self, n, x)
  753. def resize(self, *args):
  754. return _mupdf.vector_fz_font_ucs_gid_resize(self, *args)
  755. def insert(self, *args):
  756. return _mupdf.vector_fz_font_ucs_gid_insert(self, *args)
  757. def reserve(self, n):
  758. return _mupdf.vector_fz_font_ucs_gid_reserve(self, n)
  759. def capacity(self):
  760. return _mupdf.vector_fz_font_ucs_gid_capacity(self)
  761. __swig_destroy__ = _mupdf.delete_vector_fz_font_ucs_gid
  762. # Register vector_fz_font_ucs_gid in _mupdf:
  763. _mupdf.vector_fz_font_ucs_gid_swigregister(vector_fz_font_ucs_gid)
  764. class vector_fz_point(object):
  765. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  766. __repr__ = _swig_repr
  767. def iterator(self):
  768. return _mupdf.vector_fz_point_iterator(self)
  769. def __iter__(self):
  770. return self.iterator()
  771. def __nonzero__(self):
  772. return _mupdf.vector_fz_point___nonzero__(self)
  773. def __bool__(self):
  774. return _mupdf.vector_fz_point___bool__(self)
  775. def __len__(self):
  776. return _mupdf.vector_fz_point___len__(self)
  777. def __getslice__(self, i, j):
  778. return _mupdf.vector_fz_point___getslice__(self, i, j)
  779. def __setslice__(self, *args):
  780. return _mupdf.vector_fz_point___setslice__(self, *args)
  781. def __delslice__(self, i, j):
  782. return _mupdf.vector_fz_point___delslice__(self, i, j)
  783. def __delitem__(self, *args):
  784. return _mupdf.vector_fz_point___delitem__(self, *args)
  785. def __getitem__(self, *args):
  786. return _mupdf.vector_fz_point___getitem__(self, *args)
  787. def __setitem__(self, *args):
  788. return _mupdf.vector_fz_point___setitem__(self, *args)
  789. def pop(self):
  790. return _mupdf.vector_fz_point_pop(self)
  791. def append(self, x):
  792. return _mupdf.vector_fz_point_append(self, x)
  793. def empty(self):
  794. return _mupdf.vector_fz_point_empty(self)
  795. def size(self):
  796. return _mupdf.vector_fz_point_size(self)
  797. def swap(self, v):
  798. return _mupdf.vector_fz_point_swap(self, v)
  799. def begin(self):
  800. return _mupdf.vector_fz_point_begin(self)
  801. def end(self):
  802. return _mupdf.vector_fz_point_end(self)
  803. def rbegin(self):
  804. return _mupdf.vector_fz_point_rbegin(self)
  805. def rend(self):
  806. return _mupdf.vector_fz_point_rend(self)
  807. def clear(self):
  808. return _mupdf.vector_fz_point_clear(self)
  809. def get_allocator(self):
  810. return _mupdf.vector_fz_point_get_allocator(self)
  811. def pop_back(self):
  812. return _mupdf.vector_fz_point_pop_back(self)
  813. def erase(self, *args):
  814. return _mupdf.vector_fz_point_erase(self, *args)
  815. def __init__(self, *args):
  816. _mupdf.vector_fz_point_swiginit(self, _mupdf.new_vector_fz_point(*args))
  817. def push_back(self, x):
  818. return _mupdf.vector_fz_point_push_back(self, x)
  819. def front(self):
  820. return _mupdf.vector_fz_point_front(self)
  821. def back(self):
  822. return _mupdf.vector_fz_point_back(self)
  823. def assign(self, n, x):
  824. return _mupdf.vector_fz_point_assign(self, n, x)
  825. def resize(self, *args):
  826. return _mupdf.vector_fz_point_resize(self, *args)
  827. def insert(self, *args):
  828. return _mupdf.vector_fz_point_insert(self, *args)
  829. def reserve(self, n):
  830. return _mupdf.vector_fz_point_reserve(self, n)
  831. def capacity(self):
  832. return _mupdf.vector_fz_point_capacity(self)
  833. __swig_destroy__ = _mupdf.delete_vector_fz_point
  834. # Register vector_fz_point in _mupdf:
  835. _mupdf.vector_fz_point_swigregister(vector_fz_point)
  836. def new_bytes(nelements):
  837. return _mupdf.new_bytes(nelements)
  838. def delete_bytes(ary):
  839. return _mupdf.delete_bytes(ary)
  840. def bytes_getitem(ary, index):
  841. return _mupdf.bytes_getitem(ary, index)
  842. def bytes_setitem(ary, index, value):
  843. return _mupdf.bytes_setitem(ary, index, value)
  844. def new_floats(nelements):
  845. return _mupdf.new_floats(nelements)
  846. def delete_floats(ary):
  847. return _mupdf.delete_floats(ary)
  848. def floats_getitem(ary, index):
  849. return _mupdf.floats_getitem(ary, index)
  850. def floats_setitem(ary, index, value):
  851. return _mupdf.floats_setitem(ary, index, value)
  852. def internal_set_error_classes(classes):
  853. return _mupdf.internal_set_error_classes(classes)
  854. FZ_VERSION = _mupdf.FZ_VERSION
  855. r"""This file was auto-generated by mupdfwrap.py."""
  856. FZ_VERSION_MAJOR = _mupdf.FZ_VERSION_MAJOR
  857. FZ_VERSION_MINOR = _mupdf.FZ_VERSION_MINOR
  858. FZ_VERSION_PATCH = _mupdf.FZ_VERSION_PATCH
  859. TOFU_CJK_EXT = _mupdf.TOFU_CJK_EXT
  860. FZ_ENABLE_SPOT_RENDERING = _mupdf.FZ_ENABLE_SPOT_RENDERING
  861. r"""
  862. Enable the following for spot (and hence overprint/overprint
  863. simulation) capable rendering. This forces FZ_PLOTTERS_N on.
  864. Choose which plotters we need.
  865. By default we build all the plotters in. To avoid building
  866. plotters in that aren't needed, define the unwanted
  867. FZ_PLOTTERS_... define to 0.
  868. Choose which document agents to include.
  869. By default all are enabled. To avoid building unwanted
  870. ones, define FZ_ENABLE_... to 0.
  871. Some of those document agents rely on the HTML
  872. engine. This will be enabled if required based upon
  873. those engines, but can be enabled independently of
  874. them so that other features (such as the fz_story
  875. mechanism or PDF Annotation rich content) can work.
  876. Choose which document writers to include.
  877. By default all are enabled. To avoid building unwanted
  878. ones, define FZ_ENABLE_..._OUTPUT to 0.
  879. Choose whether to enable ICC color profiles.
  880. Choose whether to enable JPEG2000 decoding.
  881. By default, it is enabled, but due to frequent security
  882. issues with the third party libraries we support disabling
  883. it with this flag.
  884. Choose whether to enable Brotli compression support.
  885. By default, it is enabled.
  886. Choose whether to enable JavaScript.
  887. By default JavaScript is enabled both for mutool and PDF
  888. interactivity.
  889. Choose whether to enable barcode functionality.
  890. It is enabled by default, unless disabled by the build
  891. system.
  892. Choose which fonts to include.
  893. By default we include the base 14 PDF fonts,
  894. DroidSansFallback from Android for CJK, and
  895. Charis SIL from SIL for epub/html.
  896. Enable the following defines to AVOID including
  897. unwanted fonts.
  898. """
  899. FZ_PLOTTERS_N = _mupdf.FZ_PLOTTERS_N
  900. FZ_PLOTTERS_G = _mupdf.FZ_PLOTTERS_G
  901. FZ_PLOTTERS_RGB = _mupdf.FZ_PLOTTERS_RGB
  902. FZ_PLOTTERS_CMYK = _mupdf.FZ_PLOTTERS_CMYK
  903. FZ_ENABLE_PDF = _mupdf.FZ_ENABLE_PDF
  904. FZ_ENABLE_XPS = _mupdf.FZ_ENABLE_XPS
  905. FZ_ENABLE_SVG = _mupdf.FZ_ENABLE_SVG
  906. FZ_ENABLE_CBZ = _mupdf.FZ_ENABLE_CBZ
  907. FZ_ENABLE_IMG = _mupdf.FZ_ENABLE_IMG
  908. FZ_ENABLE_HTML = _mupdf.FZ_ENABLE_HTML
  909. FZ_ENABLE_EPUB = _mupdf.FZ_ENABLE_EPUB
  910. FZ_ENABLE_FB2 = _mupdf.FZ_ENABLE_FB2
  911. FZ_ENABLE_MOBI = _mupdf.FZ_ENABLE_MOBI
  912. FZ_ENABLE_TXT = _mupdf.FZ_ENABLE_TXT
  913. FZ_ENABLE_OFFICE = _mupdf.FZ_ENABLE_OFFICE
  914. FZ_ENABLE_OCR_OUTPUT = _mupdf.FZ_ENABLE_OCR_OUTPUT
  915. FZ_ENABLE_ODT_OUTPUT = _mupdf.FZ_ENABLE_ODT_OUTPUT
  916. FZ_ENABLE_DOCX_OUTPUT = _mupdf.FZ_ENABLE_DOCX_OUTPUT
  917. FZ_ENABLE_JPX = _mupdf.FZ_ENABLE_JPX
  918. FZ_ENABLE_BROTLI = _mupdf.FZ_ENABLE_BROTLI
  919. FZ_ENABLE_JS = _mupdf.FZ_ENABLE_JS
  920. FZ_ENABLE_ICC = _mupdf.FZ_ENABLE_ICC
  921. FZ_ENABLE_HTML_ENGINE = _mupdf.FZ_ENABLE_HTML_ENGINE
  922. FZ_ENABLE_BARCODE = _mupdf.FZ_ENABLE_BARCODE
  923. FZ_FLEXIBLE_ARRAY = _mupdf.FZ_FLEXIBLE_ARRAY
  924. r"""Include the standard libc headers."""
  925. MEMENTO_PREFILL = _mupdf.MEMENTO_PREFILL
  926. MEMENTO_POSTFILL = _mupdf.MEMENTO_POSTFILL
  927. MEMENTO_ALLOCFILL = _mupdf.MEMENTO_ALLOCFILL
  928. MEMENTO_FREEFILL = _mupdf.MEMENTO_FREEFILL
  929. def Memento_checkBlock(arg1):
  930. return _mupdf.Memento_checkBlock(arg1)
  931. def Memento_checkAllMemory():
  932. return _mupdf.Memento_checkAllMemory()
  933. def Memento_check():
  934. return _mupdf.Memento_check()
  935. def Memento_setParanoia(arg1):
  936. return _mupdf.Memento_setParanoia(arg1)
  937. def Memento_paranoidAt(arg1):
  938. return _mupdf.Memento_paranoidAt(arg1)
  939. def Memento_breakAt(arg1):
  940. return _mupdf.Memento_breakAt(arg1)
  941. def Memento_breakOnFree(a):
  942. return _mupdf.Memento_breakOnFree(a)
  943. def Memento_breakOnRealloc(a):
  944. return _mupdf.Memento_breakOnRealloc(a)
  945. def Memento_getBlockNum(arg1):
  946. return _mupdf.Memento_getBlockNum(arg1)
  947. def Memento_find(a):
  948. return _mupdf.Memento_find(a)
  949. def Memento_breakpoint():
  950. return _mupdf.Memento_breakpoint()
  951. def Memento_failAt(arg1):
  952. return _mupdf.Memento_failAt(arg1)
  953. def Memento_failThisEvent():
  954. return _mupdf.Memento_failThisEvent()
  955. def Memento_listBlocks():
  956. return _mupdf.Memento_listBlocks()
  957. def Memento_listNewBlocks():
  958. return _mupdf.Memento_listNewBlocks()
  959. def Memento_listLargeBlocks():
  960. return _mupdf.Memento_listLargeBlocks()
  961. def Memento_listPhasedBlocks():
  962. return _mupdf.Memento_listPhasedBlocks()
  963. def Memento_setMax(arg1):
  964. return _mupdf.Memento_setMax(arg1)
  965. def Memento_stats():
  966. return _mupdf.Memento_stats()
  967. def Memento_label(arg1, arg2):
  968. return _mupdf.Memento_label(arg1, arg2)
  969. def Memento_tick():
  970. return _mupdf.Memento_tick()
  971. def Memento_setVerbose(arg1):
  972. return _mupdf.Memento_setVerbose(arg1)
  973. def Memento_addBacktraceLimitFnname(fnname):
  974. return _mupdf.Memento_addBacktraceLimitFnname(fnname)
  975. def Memento_setAtexitFin(atexitfin):
  976. return _mupdf.Memento_setAtexitFin(atexitfin)
  977. def Memento_setIgnoreNewDelete(ignore):
  978. return _mupdf.Memento_setIgnoreNewDelete(ignore)
  979. def Memento_malloc(s):
  980. return _mupdf.Memento_malloc(s)
  981. def Memento_realloc(arg1, s):
  982. return _mupdf.Memento_realloc(arg1, s)
  983. def Memento_free(arg1):
  984. return _mupdf.Memento_free(arg1)
  985. def Memento_calloc(arg1, arg2):
  986. return _mupdf.Memento_calloc(arg1, arg2)
  987. def Memento_strdup(arg1):
  988. return _mupdf.Memento_strdup(arg1)
  989. def Memento_info(addr):
  990. return _mupdf.Memento_info(addr)
  991. def Memento_listBlockInfo():
  992. return _mupdf.Memento_listBlockInfo()
  993. def Memento_blockInfo(blk):
  994. return _mupdf.Memento_blockInfo(blk)
  995. def Memento_takeByteRef(blk):
  996. return _mupdf.Memento_takeByteRef(blk)
  997. def Memento_dropByteRef(blk):
  998. return _mupdf.Memento_dropByteRef(blk)
  999. def Memento_takeShortRef(blk):
  1000. return _mupdf.Memento_takeShortRef(blk)
  1001. def Memento_dropShortRef(blk):
  1002. return _mupdf.Memento_dropShortRef(blk)
  1003. def Memento_takeIntRef(blk):
  1004. return _mupdf.Memento_takeIntRef(blk)
  1005. def Memento_dropIntRef(blk):
  1006. return _mupdf.Memento_dropIntRef(blk)
  1007. def Memento_takeRef(blk):
  1008. return _mupdf.Memento_takeRef(blk)
  1009. def Memento_dropRef(blk):
  1010. return _mupdf.Memento_dropRef(blk)
  1011. def Memento_adjustRef(blk, adjust):
  1012. return _mupdf.Memento_adjustRef(blk, adjust)
  1013. def Memento_reference(blk):
  1014. return _mupdf.Memento_reference(blk)
  1015. def Memento_checkPointerOrNull(blk):
  1016. return _mupdf.Memento_checkPointerOrNull(blk)
  1017. def Memento_checkBytePointerOrNull(blk):
  1018. return _mupdf.Memento_checkBytePointerOrNull(blk)
  1019. def Memento_checkShortPointerOrNull(blk):
  1020. return _mupdf.Memento_checkShortPointerOrNull(blk)
  1021. def Memento_checkIntPointerOrNull(blk):
  1022. return _mupdf.Memento_checkIntPointerOrNull(blk)
  1023. def Memento_startLeaking():
  1024. return _mupdf.Memento_startLeaking()
  1025. def Memento_stopLeaking():
  1026. return _mupdf.Memento_stopLeaking()
  1027. def Memento_sequence():
  1028. return _mupdf.Memento_sequence()
  1029. def Memento_squeezing():
  1030. return _mupdf.Memento_squeezing()
  1031. def Memento_fin():
  1032. return _mupdf.Memento_fin()
  1033. def Memento_bt():
  1034. return _mupdf.Memento_bt()
  1035. PATH_MAX = _mupdf.PATH_MAX
  1036. FZ_PI = _mupdf.FZ_PI
  1037. FZ_RADIAN = _mupdf.FZ_RADIAN
  1038. FZ_DEGREE = _mupdf.FZ_DEGREE
  1039. FZ_SQRT2 = _mupdf.FZ_SQRT2
  1040. FZ_LN2 = _mupdf.FZ_LN2
  1041. ARCH_HAS_NEON = _mupdf.ARCH_HAS_NEON
  1042. r"""Spot architectures where we have optimisations."""
  1043. ARCH_HAS_SSE = _mupdf.ARCH_HAS_SSE
  1044. HAVE_SIGSETJMP = _mupdf.HAVE_SIGSETJMP
  1045. r"""Some differences in libc can be smoothed over"""
  1046. EOF = _mupdf.EOF
  1047. SEEK_SET = _mupdf.SEEK_SET
  1048. SEEK_CUR = _mupdf.SEEK_CUR
  1049. SEEK_END = _mupdf.SEEK_END
  1050. M_PI = _mupdf.M_PI
  1051. class fz_point(object):
  1052. r"""fz_point is a point in a two-dimensional space."""
  1053. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1054. __repr__ = _swig_repr
  1055. x = property(_mupdf.fz_point_x_get, _mupdf.fz_point_x_set)
  1056. y = property(_mupdf.fz_point_y_get, _mupdf.fz_point_y_set)
  1057. def __init__(self):
  1058. _mupdf.fz_point_swiginit(self, _mupdf.new_fz_point())
  1059. __swig_destroy__ = _mupdf.delete_fz_point
  1060. # Register fz_point in _mupdf:
  1061. _mupdf.fz_point_swigregister(fz_point)
  1062. class fz_rect(object):
  1063. r"""
  1064. fz_rect is a rectangle represented by two diagonally opposite
  1065. corners at arbitrary coordinates.
  1066. Rectangles are always axis-aligned with the X- and Y- axes. We
  1067. wish to distinguish rectangles in 3 categories; infinite, finite,
  1068. and invalid. Zero area rectangles are a sub-category of finite
  1069. ones.
  1070. For all valid rectangles, x0 <= x1 and y0 <= y1 in all cases.
  1071. Infinite rectangles have x0 = y0 = FZ_MIN_INF_RECT,
  1072. x1 = y1 = FZ_MAX_INF_RECT. For any non infinite valid rectangle,
  1073. the area is defined as (x1 - x0) * (y1 - y0).
  1074. To check for empty or infinite rectangles use fz_is_empty_rect
  1075. and fz_is_infinite_rect. To check for valid rectangles use
  1076. fz_is_valid_rect.
  1077. We choose this representation, so that we can easily distinguish
  1078. the difference between intersecting 2 valid rectangles and
  1079. getting an invalid one, as opposed to getting a zero area one
  1080. (which nonetheless has valid bounds within the plane).
  1081. x0, y0: The top left corner.
  1082. x1, y1: The bottom right corner.
  1083. We choose FZ_{MIN,MAX}_INF_RECT to be the largest 32bit signed
  1084. integer values that survive roundtripping to floats.
  1085. """
  1086. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1087. __repr__ = _swig_repr
  1088. x0 = property(_mupdf.fz_rect_x0_get, _mupdf.fz_rect_x0_set)
  1089. y0 = property(_mupdf.fz_rect_y0_get, _mupdf.fz_rect_y0_set)
  1090. x1 = property(_mupdf.fz_rect_x1_get, _mupdf.fz_rect_x1_set)
  1091. y1 = property(_mupdf.fz_rect_y1_get, _mupdf.fz_rect_y1_set)
  1092. def __init__(self):
  1093. _mupdf.fz_rect_swiginit(self, _mupdf.new_fz_rect())
  1094. __swig_destroy__ = _mupdf.delete_fz_rect
  1095. # Register fz_rect in _mupdf:
  1096. _mupdf.fz_rect_swigregister(fz_rect)
  1097. class fz_irect(object):
  1098. r"""
  1099. fz_irect is a rectangle using integers instead of floats.
  1100. It's used in the draw device and for pixmap dimensions.
  1101. """
  1102. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1103. __repr__ = _swig_repr
  1104. x0 = property(_mupdf.fz_irect_x0_get, _mupdf.fz_irect_x0_set)
  1105. y0 = property(_mupdf.fz_irect_y0_get, _mupdf.fz_irect_y0_set)
  1106. x1 = property(_mupdf.fz_irect_x1_get, _mupdf.fz_irect_x1_set)
  1107. y1 = property(_mupdf.fz_irect_y1_get, _mupdf.fz_irect_y1_set)
  1108. def __init__(self):
  1109. _mupdf.fz_irect_swiginit(self, _mupdf.new_fz_irect())
  1110. __swig_destroy__ = _mupdf.delete_fz_irect
  1111. # Register fz_irect in _mupdf:
  1112. _mupdf.fz_irect_swigregister(fz_irect)
  1113. class fz_matrix(object):
  1114. r"""
  1115. fz_matrix is a row-major 3x3 matrix used for representing
  1116. transformations of coordinates throughout MuPDF.
  1117. Since all points reside in a two-dimensional space, one vector
  1118. is always a constant unit vector; hence only some elements may
  1119. vary in a matrix. Below is how the elements map between
  1120. different representations.
  1121. a b 0
  1122. | c d 0 | normally represented as [ a b c d e f ].
  1123. \ e f 1 /
  1124. """
  1125. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1126. __repr__ = _swig_repr
  1127. a = property(_mupdf.fz_matrix_a_get, _mupdf.fz_matrix_a_set)
  1128. b = property(_mupdf.fz_matrix_b_get, _mupdf.fz_matrix_b_set)
  1129. c = property(_mupdf.fz_matrix_c_get, _mupdf.fz_matrix_c_set)
  1130. d = property(_mupdf.fz_matrix_d_get, _mupdf.fz_matrix_d_set)
  1131. e = property(_mupdf.fz_matrix_e_get, _mupdf.fz_matrix_e_set)
  1132. f = property(_mupdf.fz_matrix_f_get, _mupdf.fz_matrix_f_set)
  1133. def __init__(self):
  1134. _mupdf.fz_matrix_swiginit(self, _mupdf.new_fz_matrix())
  1135. __swig_destroy__ = _mupdf.delete_fz_matrix
  1136. # Register fz_matrix in _mupdf:
  1137. _mupdf.fz_matrix_swigregister(fz_matrix)
  1138. cvar = _mupdf.cvar
  1139. fz_unit_rect = cvar.fz_unit_rect
  1140. fz_empty_rect = cvar.fz_empty_rect
  1141. fz_empty_irect = cvar.fz_empty_irect
  1142. fz_infinite_rect = cvar.fz_infinite_rect
  1143. fz_infinite_irect = cvar.fz_infinite_irect
  1144. fz_invalid_rect = cvar.fz_invalid_rect
  1145. fz_invalid_irect = cvar.fz_invalid_irect
  1146. class fz_quad(object):
  1147. r"""
  1148. A representation for a region defined by 4 points.
  1149. The significant difference between quads and rects is that
  1150. the edges of quads are not axis aligned.
  1151. """
  1152. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1153. __repr__ = _swig_repr
  1154. ul = property(_mupdf.fz_quad_ul_get, _mupdf.fz_quad_ul_set)
  1155. ur = property(_mupdf.fz_quad_ur_get, _mupdf.fz_quad_ur_set)
  1156. ll = property(_mupdf.fz_quad_ll_get, _mupdf.fz_quad_ll_set)
  1157. lr = property(_mupdf.fz_quad_lr_get, _mupdf.fz_quad_lr_set)
  1158. def __init__(self):
  1159. _mupdf.fz_quad_swiginit(self, _mupdf.new_fz_quad())
  1160. __swig_destroy__ = _mupdf.delete_fz_quad
  1161. # Register fz_quad in _mupdf:
  1162. _mupdf.fz_quad_swigregister(fz_quad)
  1163. fz_identity = cvar.fz_identity
  1164. FZ_VERBOSE_EXCEPTIONS = _mupdf.FZ_VERBOSE_EXCEPTIONS
  1165. class fz_alloc_context(object):
  1166. r"""Allocator structure; holds callbacks and private data pointer."""
  1167. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1168. __repr__ = _swig_repr
  1169. user = property(_mupdf.fz_alloc_context_user_get, _mupdf.fz_alloc_context_user_set)
  1170. malloc = property(_mupdf.fz_alloc_context_malloc_get, _mupdf.fz_alloc_context_malloc_set)
  1171. realloc = property(_mupdf.fz_alloc_context_realloc_get, _mupdf.fz_alloc_context_realloc_set)
  1172. free = property(_mupdf.fz_alloc_context_free_get, _mupdf.fz_alloc_context_free_set)
  1173. def __init__(self):
  1174. _mupdf.fz_alloc_context_swiginit(self, _mupdf.new_fz_alloc_context())
  1175. __swig_destroy__ = _mupdf.delete_fz_alloc_context
  1176. # Register fz_alloc_context in _mupdf:
  1177. _mupdf.fz_alloc_context_swigregister(fz_alloc_context)
  1178. fz_invalid_quad = cvar.fz_invalid_quad
  1179. fz_infinite_quad = cvar.fz_infinite_quad
  1180. FZ_ERROR_NONE = _mupdf.FZ_ERROR_NONE
  1181. FZ_ERROR_GENERIC = _mupdf.FZ_ERROR_GENERIC
  1182. FZ_ERROR_SYSTEM = _mupdf.FZ_ERROR_SYSTEM
  1183. FZ_ERROR_LIBRARY = _mupdf.FZ_ERROR_LIBRARY
  1184. FZ_ERROR_ARGUMENT = _mupdf.FZ_ERROR_ARGUMENT
  1185. FZ_ERROR_LIMIT = _mupdf.FZ_ERROR_LIMIT
  1186. FZ_ERROR_UNSUPPORTED = _mupdf.FZ_ERROR_UNSUPPORTED
  1187. FZ_ERROR_FORMAT = _mupdf.FZ_ERROR_FORMAT
  1188. FZ_ERROR_SYNTAX = _mupdf.FZ_ERROR_SYNTAX
  1189. FZ_ERROR_TRYLATER = _mupdf.FZ_ERROR_TRYLATER
  1190. FZ_ERROR_ABORT = _mupdf.FZ_ERROR_ABORT
  1191. FZ_ERROR_REPAIRED = _mupdf.FZ_ERROR_REPAIRED
  1192. class fz_locks_context(object):
  1193. r"""
  1194. Locking functions
  1195. MuPDF is kept deliberately free of any knowledge of particular
  1196. threading systems. As such, in order for safe multi-threaded
  1197. operation, we rely on callbacks to client provided functions.
  1198. A client is expected to provide FZ_LOCK_MAX number of mutexes,
  1199. and a function to lock/unlock each of them. These may be
  1200. recursive mutexes, but do not have to be.
  1201. If a client does not intend to use multiple threads, then it
  1202. may pass NULL instead of a lock structure.
  1203. In order to avoid deadlocks, we have one simple rule
  1204. internally as to how we use locks: We can never take lock n
  1205. when we already hold any lock i, where 0 <= i <= n. In order
  1206. to verify this, we have some debugging code, that can be
  1207. enabled by defining FITZ_DEBUG_LOCKING.
  1208. """
  1209. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1210. __repr__ = _swig_repr
  1211. user = property(_mupdf.fz_locks_context_user_get, _mupdf.fz_locks_context_user_set)
  1212. lock = property(_mupdf.fz_locks_context_lock_get, _mupdf.fz_locks_context_lock_set)
  1213. unlock = property(_mupdf.fz_locks_context_unlock_get, _mupdf.fz_locks_context_unlock_set)
  1214. def __init__(self):
  1215. _mupdf.fz_locks_context_swiginit(self, _mupdf.new_fz_locks_context())
  1216. __swig_destroy__ = _mupdf.delete_fz_locks_context
  1217. # Register fz_locks_context in _mupdf:
  1218. _mupdf.fz_locks_context_swigregister(fz_locks_context)
  1219. FZ_LOCK_ALLOC = _mupdf.FZ_LOCK_ALLOC
  1220. FZ_LOCK_FREETYPE = _mupdf.FZ_LOCK_FREETYPE
  1221. FZ_LOCK_GLYPHCACHE = _mupdf.FZ_LOCK_GLYPHCACHE
  1222. FZ_LOCK_MAX = _mupdf.FZ_LOCK_MAX
  1223. FZ_STORE_UNLIMITED = _mupdf.FZ_STORE_UNLIMITED
  1224. FZ_STORE_DEFAULT = _mupdf.FZ_STORE_DEFAULT
  1225. class fz_string(object):
  1226. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1227. __repr__ = _swig_repr
  1228. refs = property(_mupdf.fz_string_refs_get, _mupdf.fz_string_refs_set)
  1229. str = property(_mupdf.fz_string_str_get, _mupdf.fz_string_str_set)
  1230. def __init__(self):
  1231. _mupdf.fz_string_swiginit(self, _mupdf.new_fz_string())
  1232. __swig_destroy__ = _mupdf.delete_fz_string
  1233. # Register fz_string in _mupdf:
  1234. _mupdf.fz_string_swigregister(fz_string)
  1235. FZ_JMPBUF_ALIGN = _mupdf.FZ_JMPBUF_ALIGN
  1236. class fz_error_context(object):
  1237. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1238. __repr__ = _swig_repr
  1239. top = property(_mupdf.fz_error_context_top_get, _mupdf.fz_error_context_top_set)
  1240. stack = property(_mupdf.fz_error_context_stack_get, _mupdf.fz_error_context_stack_set)
  1241. padding = property(_mupdf.fz_error_context_padding_get, _mupdf.fz_error_context_padding_set)
  1242. stack_base = property(_mupdf.fz_error_context_stack_base_get, _mupdf.fz_error_context_stack_base_set)
  1243. errcode = property(_mupdf.fz_error_context_errcode_get, _mupdf.fz_error_context_errcode_set)
  1244. errnum = property(_mupdf.fz_error_context_errnum_get, _mupdf.fz_error_context_errnum_set)
  1245. print_user = property(_mupdf.fz_error_context_print_user_get, _mupdf.fz_error_context_print_user_set)
  1246. _print = property(_mupdf.fz_error_context__print_get, _mupdf.fz_error_context__print_set)
  1247. message = property(_mupdf.fz_error_context_message_get, _mupdf.fz_error_context_message_set)
  1248. def __init__(self):
  1249. _mupdf.fz_error_context_swiginit(self, _mupdf.new_fz_error_context())
  1250. __swig_destroy__ = _mupdf.delete_fz_error_context
  1251. # Register fz_error_context in _mupdf:
  1252. _mupdf.fz_error_context_swigregister(fz_error_context)
  1253. class fz_warn_context(object):
  1254. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1255. __repr__ = _swig_repr
  1256. print_user = property(_mupdf.fz_warn_context_print_user_get, _mupdf.fz_warn_context_print_user_set)
  1257. _print = property(_mupdf.fz_warn_context__print_get, _mupdf.fz_warn_context__print_set)
  1258. count = property(_mupdf.fz_warn_context_count_get, _mupdf.fz_warn_context_count_set)
  1259. message = property(_mupdf.fz_warn_context_message_get, _mupdf.fz_warn_context_message_set)
  1260. def __init__(self):
  1261. _mupdf.fz_warn_context_swiginit(self, _mupdf.new_fz_warn_context())
  1262. __swig_destroy__ = _mupdf.delete_fz_warn_context
  1263. # Register fz_warn_context in _mupdf:
  1264. _mupdf.fz_warn_context_swigregister(fz_warn_context)
  1265. class fz_aa_context(object):
  1266. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1267. __repr__ = _swig_repr
  1268. hscale = property(_mupdf.fz_aa_context_hscale_get, _mupdf.fz_aa_context_hscale_set)
  1269. vscale = property(_mupdf.fz_aa_context_vscale_get, _mupdf.fz_aa_context_vscale_set)
  1270. scale = property(_mupdf.fz_aa_context_scale_get, _mupdf.fz_aa_context_scale_set)
  1271. bits = property(_mupdf.fz_aa_context_bits_get, _mupdf.fz_aa_context_bits_set)
  1272. text_bits = property(_mupdf.fz_aa_context_text_bits_get, _mupdf.fz_aa_context_text_bits_set)
  1273. min_line_width = property(_mupdf.fz_aa_context_min_line_width_get, _mupdf.fz_aa_context_min_line_width_set)
  1274. def __init__(self):
  1275. _mupdf.fz_aa_context_swiginit(self, _mupdf.new_fz_aa_context())
  1276. __swig_destroy__ = _mupdf.delete_fz_aa_context
  1277. # Register fz_aa_context in _mupdf:
  1278. _mupdf.fz_aa_context_swigregister(fz_aa_context)
  1279. FZ_ACTIVITY_NEW_DOC = _mupdf.FZ_ACTIVITY_NEW_DOC
  1280. FZ_ACTIVITY_SHUTDOWN = _mupdf.FZ_ACTIVITY_SHUTDOWN
  1281. class fz_activity_context(object):
  1282. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1283. __repr__ = _swig_repr
  1284. opaque = property(_mupdf.fz_activity_context_opaque_get, _mupdf.fz_activity_context_opaque_set)
  1285. activity = property(_mupdf.fz_activity_context_activity_get, _mupdf.fz_activity_context_activity_set)
  1286. def __init__(self):
  1287. _mupdf.fz_activity_context_swiginit(self, _mupdf.new_fz_activity_context())
  1288. __swig_destroy__ = _mupdf.delete_fz_activity_context
  1289. # Register fz_activity_context in _mupdf:
  1290. _mupdf.fz_activity_context_swigregister(fz_activity_context)
  1291. class fz_context(object):
  1292. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1293. __repr__ = _swig_repr
  1294. user = property(_mupdf.fz_context_user_get, _mupdf.fz_context_user_set)
  1295. master = property(_mupdf.fz_context_master_get, _mupdf.fz_context_master_set)
  1296. context_count = property(_mupdf.fz_context_context_count_get, _mupdf.fz_context_context_count_set)
  1297. next_document_id = property(_mupdf.fz_context_next_document_id_get, _mupdf.fz_context_next_document_id_set)
  1298. alloc = property(_mupdf.fz_context_alloc_get, _mupdf.fz_context_alloc_set)
  1299. locks = property(_mupdf.fz_context_locks_get, _mupdf.fz_context_locks_set)
  1300. error = property(_mupdf.fz_context_error_get, _mupdf.fz_context_error_set)
  1301. warn = property(_mupdf.fz_context_warn_get, _mupdf.fz_context_warn_set)
  1302. activity = property(_mupdf.fz_context_activity_get, _mupdf.fz_context_activity_set)
  1303. aa = property(_mupdf.fz_context_aa_get, _mupdf.fz_context_aa_set)
  1304. seed48 = property(_mupdf.fz_context_seed48_get, _mupdf.fz_context_seed48_set)
  1305. icc_enabled = property(_mupdf.fz_context_icc_enabled_get, _mupdf.fz_context_icc_enabled_set)
  1306. throw_on_repair = property(_mupdf.fz_context_throw_on_repair_get, _mupdf.fz_context_throw_on_repair_set)
  1307. handler = property(_mupdf.fz_context_handler_get, _mupdf.fz_context_handler_set)
  1308. archive = property(_mupdf.fz_context_archive_get, _mupdf.fz_context_archive_set)
  1309. style = property(_mupdf.fz_context_style_get, _mupdf.fz_context_style_set)
  1310. tuning = property(_mupdf.fz_context_tuning_get, _mupdf.fz_context_tuning_set)
  1311. stddbg = property(_mupdf.fz_context_stddbg_get, _mupdf.fz_context_stddbg_set)
  1312. font = property(_mupdf.fz_context_font_get, _mupdf.fz_context_font_set)
  1313. colorspace = property(_mupdf.fz_context_colorspace_get, _mupdf.fz_context_colorspace_set)
  1314. store = property(_mupdf.fz_context_store_get, _mupdf.fz_context_store_set)
  1315. glyph_cache = property(_mupdf.fz_context_glyph_cache_get, _mupdf.fz_context_glyph_cache_set)
  1316. def __init__(self):
  1317. _mupdf.fz_context_swiginit(self, _mupdf.new_fz_context())
  1318. __swig_destroy__ = _mupdf.delete_fz_context
  1319. # Register fz_context in _mupdf:
  1320. _mupdf.fz_context_swigregister(fz_context)
  1321. class fz_buffer(object):
  1322. r"""
  1323. fz_buffer is a wrapper around a dynamically allocated array of
  1324. bytes.
  1325. Buffers have a capacity (the number of bytes storage immediately
  1326. available) and a current size.
  1327. The contents of the structure are considered implementation
  1328. details and are subject to change. Users should use the accessor
  1329. functions in preference.
  1330. """
  1331. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1332. __repr__ = _swig_repr
  1333. refs = property(_mupdf.fz_buffer_refs_get, _mupdf.fz_buffer_refs_set)
  1334. data = property(_mupdf.fz_buffer_data_get, _mupdf.fz_buffer_data_set)
  1335. cap = property(_mupdf.fz_buffer_cap_get, _mupdf.fz_buffer_cap_set)
  1336. len = property(_mupdf.fz_buffer_len_get, _mupdf.fz_buffer_len_set)
  1337. unused_bits = property(_mupdf.fz_buffer_unused_bits_get, _mupdf.fz_buffer_unused_bits_set)
  1338. shared = property(_mupdf.fz_buffer_shared_get, _mupdf.fz_buffer_shared_set)
  1339. def __init__(self):
  1340. _mupdf.fz_buffer_swiginit(self, _mupdf.new_fz_buffer())
  1341. __swig_destroy__ = _mupdf.delete_fz_buffer
  1342. # Register fz_buffer in _mupdf:
  1343. _mupdf.fz_buffer_swigregister(fz_buffer)
  1344. FZ_REPLACEMENT_CHARACTER = _mupdf.FZ_REPLACEMENT_CHARACTER
  1345. FZ_UTFMAX = _mupdf.FZ_UTFMAX
  1346. class fz_stream(object):
  1347. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1348. __repr__ = _swig_repr
  1349. refs = property(_mupdf.fz_stream_refs_get, _mupdf.fz_stream_refs_set)
  1350. error = property(_mupdf.fz_stream_error_get, _mupdf.fz_stream_error_set)
  1351. eof = property(_mupdf.fz_stream_eof_get, _mupdf.fz_stream_eof_set)
  1352. progressive = property(_mupdf.fz_stream_progressive_get, _mupdf.fz_stream_progressive_set)
  1353. pos = property(_mupdf.fz_stream_pos_get, _mupdf.fz_stream_pos_set)
  1354. avail = property(_mupdf.fz_stream_avail_get, _mupdf.fz_stream_avail_set)
  1355. bits = property(_mupdf.fz_stream_bits_get, _mupdf.fz_stream_bits_set)
  1356. rp = property(_mupdf.fz_stream_rp_get, _mupdf.fz_stream_rp_set)
  1357. wp = property(_mupdf.fz_stream_wp_get, _mupdf.fz_stream_wp_set)
  1358. state = property(_mupdf.fz_stream_state_get, _mupdf.fz_stream_state_set)
  1359. next = property(_mupdf.fz_stream_next_get, _mupdf.fz_stream_next_set)
  1360. drop = property(_mupdf.fz_stream_drop_get, _mupdf.fz_stream_drop_set)
  1361. seek = property(_mupdf.fz_stream_seek_get, _mupdf.fz_stream_seek_set)
  1362. def __init__(self):
  1363. _mupdf.fz_stream_swiginit(self, _mupdf.new_fz_stream())
  1364. __swig_destroy__ = _mupdf.delete_fz_stream
  1365. # Register fz_stream in _mupdf:
  1366. _mupdf.fz_stream_swigregister(fz_stream)
  1367. class fz_output(object):
  1368. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1369. __repr__ = _swig_repr
  1370. state = property(_mupdf.fz_output_state_get, _mupdf.fz_output_state_set)
  1371. write = property(_mupdf.fz_output_write_get, _mupdf.fz_output_write_set)
  1372. seek = property(_mupdf.fz_output_seek_get, _mupdf.fz_output_seek_set)
  1373. tell = property(_mupdf.fz_output_tell_get, _mupdf.fz_output_tell_set)
  1374. close = property(_mupdf.fz_output_close_get, _mupdf.fz_output_close_set)
  1375. drop = property(_mupdf.fz_output_drop_get, _mupdf.fz_output_drop_set)
  1376. reset = property(_mupdf.fz_output_reset_get, _mupdf.fz_output_reset_set)
  1377. as_stream = property(_mupdf.fz_output_as_stream_get, _mupdf.fz_output_as_stream_set)
  1378. truncate = property(_mupdf.fz_output_truncate_get, _mupdf.fz_output_truncate_set)
  1379. closed = property(_mupdf.fz_output_closed_get, _mupdf.fz_output_closed_set)
  1380. bp = property(_mupdf.fz_output_bp_get, _mupdf.fz_output_bp_set)
  1381. wp = property(_mupdf.fz_output_wp_get, _mupdf.fz_output_wp_set)
  1382. ep = property(_mupdf.fz_output_ep_get, _mupdf.fz_output_ep_set)
  1383. buffered = property(_mupdf.fz_output_buffered_get, _mupdf.fz_output_buffered_set)
  1384. bits = property(_mupdf.fz_output_bits_get, _mupdf.fz_output_bits_set)
  1385. def __init__(self):
  1386. _mupdf.fz_output_swiginit(self, _mupdf.new_fz_output())
  1387. __swig_destroy__ = _mupdf.delete_fz_output
  1388. # Register fz_output in _mupdf:
  1389. _mupdf.fz_output_swigregister(fz_output)
  1390. class fz_md5(object):
  1391. r"""
  1392. Structure definition is public to enable stack
  1393. based allocation. Do not access the members directly.
  1394. """
  1395. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1396. __repr__ = _swig_repr
  1397. lo = property(_mupdf.fz_md5_lo_get, _mupdf.fz_md5_lo_set)
  1398. hi = property(_mupdf.fz_md5_hi_get, _mupdf.fz_md5_hi_set)
  1399. a = property(_mupdf.fz_md5_a_get, _mupdf.fz_md5_a_set)
  1400. b = property(_mupdf.fz_md5_b_get, _mupdf.fz_md5_b_set)
  1401. c = property(_mupdf.fz_md5_c_get, _mupdf.fz_md5_c_set)
  1402. d = property(_mupdf.fz_md5_d_get, _mupdf.fz_md5_d_set)
  1403. buffer = property(_mupdf.fz_md5_buffer_get, _mupdf.fz_md5_buffer_set)
  1404. def __init__(self):
  1405. _mupdf.fz_md5_swiginit(self, _mupdf.new_fz_md5())
  1406. __swig_destroy__ = _mupdf.delete_fz_md5
  1407. # Register fz_md5 in _mupdf:
  1408. _mupdf.fz_md5_swigregister(fz_md5)
  1409. class fz_sha256(object):
  1410. r"""
  1411. Structure definition is public to enable stack
  1412. based allocation. Do not access the members directly.
  1413. """
  1414. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1415. __repr__ = _swig_repr
  1416. state = property(_mupdf.fz_sha256_state_get, _mupdf.fz_sha256_state_set)
  1417. count = property(_mupdf.fz_sha256_count_get, _mupdf.fz_sha256_count_set)
  1418. def __init__(self):
  1419. _mupdf.fz_sha256_swiginit(self, _mupdf.new_fz_sha256())
  1420. __swig_destroy__ = _mupdf.delete_fz_sha256
  1421. # Register fz_sha256 in _mupdf:
  1422. _mupdf.fz_sha256_swigregister(fz_sha256)
  1423. class fz_sha512(object):
  1424. r"""
  1425. Structure definition is public to enable stack
  1426. based allocation. Do not access the members directly.
  1427. """
  1428. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1429. __repr__ = _swig_repr
  1430. state = property(_mupdf.fz_sha512_state_get, _mupdf.fz_sha512_state_set)
  1431. count = property(_mupdf.fz_sha512_count_get, _mupdf.fz_sha512_count_set)
  1432. def __init__(self):
  1433. _mupdf.fz_sha512_swiginit(self, _mupdf.new_fz_sha512())
  1434. __swig_destroy__ = _mupdf.delete_fz_sha512
  1435. # Register fz_sha512 in _mupdf:
  1436. _mupdf.fz_sha512_swigregister(fz_sha512)
  1437. class fz_arc4(object):
  1438. r"""
  1439. Structure definition is public to enable stack
  1440. based allocation. Do not access the members directly.
  1441. """
  1442. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1443. __repr__ = _swig_repr
  1444. x = property(_mupdf.fz_arc4_x_get, _mupdf.fz_arc4_x_set)
  1445. y = property(_mupdf.fz_arc4_y_get, _mupdf.fz_arc4_y_set)
  1446. state = property(_mupdf.fz_arc4_state_get, _mupdf.fz_arc4_state_set)
  1447. def __init__(self):
  1448. _mupdf.fz_arc4_swiginit(self, _mupdf.new_fz_arc4())
  1449. __swig_destroy__ = _mupdf.delete_fz_arc4
  1450. # Register fz_arc4 in _mupdf:
  1451. _mupdf.fz_arc4_swigregister(fz_arc4)
  1452. class fz_aes(object):
  1453. r"""
  1454. Structure definitions are public to enable stack
  1455. based allocation. Do not access the members directly.
  1456. """
  1457. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1458. __repr__ = _swig_repr
  1459. nr = property(_mupdf.fz_aes_nr_get, _mupdf.fz_aes_nr_set)
  1460. rk = property(_mupdf.fz_aes_rk_get, _mupdf.fz_aes_rk_set)
  1461. buf = property(_mupdf.fz_aes_buf_get, _mupdf.fz_aes_buf_set)
  1462. def __init__(self):
  1463. _mupdf.fz_aes_swiginit(self, _mupdf.new_fz_aes())
  1464. __swig_destroy__ = _mupdf.delete_fz_aes
  1465. # Register fz_aes in _mupdf:
  1466. _mupdf.fz_aes_swigregister(fz_aes)
  1467. FZ_AES_DECRYPT = _mupdf.FZ_AES_DECRYPT
  1468. FZ_AES_ENCRYPT = _mupdf.FZ_AES_ENCRYPT
  1469. class fz_getopt_long_options(object):
  1470. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1471. __repr__ = _swig_repr
  1472. option = property(_mupdf.fz_getopt_long_options_option_get, _mupdf.fz_getopt_long_options_option_set)
  1473. flag = property(_mupdf.fz_getopt_long_options_flag_get, _mupdf.fz_getopt_long_options_flag_set)
  1474. opaque = property(_mupdf.fz_getopt_long_options_opaque_get, _mupdf.fz_getopt_long_options_opaque_set)
  1475. def __init__(self):
  1476. _mupdf.fz_getopt_long_options_swiginit(self, _mupdf.new_fz_getopt_long_options())
  1477. __swig_destroy__ = _mupdf.delete_fz_getopt_long_options
  1478. # Register fz_getopt_long_options in _mupdf:
  1479. _mupdf.fz_getopt_long_options_swigregister(fz_getopt_long_options)
  1480. FZ_HASH_TABLE_KEY_LENGTH = _mupdf.FZ_HASH_TABLE_KEY_LENGTH
  1481. FZ_BIDI_LTR = _mupdf.FZ_BIDI_LTR
  1482. FZ_BIDI_RTL = _mupdf.FZ_BIDI_RTL
  1483. FZ_BIDI_NEUTRAL = _mupdf.FZ_BIDI_NEUTRAL
  1484. FZ_BIDI_CLASSIFY_WHITE_SPACE = _mupdf.FZ_BIDI_CLASSIFY_WHITE_SPACE
  1485. FZ_BIDI_REPLACE_TAB = _mupdf.FZ_BIDI_REPLACE_TAB
  1486. class fz_archive_handler(object):
  1487. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1488. __repr__ = _swig_repr
  1489. recognize = property(_mupdf.fz_archive_handler_recognize_get, _mupdf.fz_archive_handler_recognize_set)
  1490. open = property(_mupdf.fz_archive_handler_open_get, _mupdf.fz_archive_handler_open_set)
  1491. def __init__(self):
  1492. _mupdf.fz_archive_handler_swiginit(self, _mupdf.new_fz_archive_handler())
  1493. __swig_destroy__ = _mupdf.delete_fz_archive_handler
  1494. # Register fz_archive_handler in _mupdf:
  1495. _mupdf.fz_archive_handler_swigregister(fz_archive_handler)
  1496. class fz_archive(object):
  1497. r"""Implementation details: Subject to change."""
  1498. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1499. __repr__ = _swig_repr
  1500. refs = property(_mupdf.fz_archive_refs_get, _mupdf.fz_archive_refs_set)
  1501. file = property(_mupdf.fz_archive_file_get, _mupdf.fz_archive_file_set)
  1502. format = property(_mupdf.fz_archive_format_get, _mupdf.fz_archive_format_set)
  1503. drop_archive = property(_mupdf.fz_archive_drop_archive_get, _mupdf.fz_archive_drop_archive_set)
  1504. count_entries = property(_mupdf.fz_archive_count_entries_get, _mupdf.fz_archive_count_entries_set)
  1505. list_entry = property(_mupdf.fz_archive_list_entry_get, _mupdf.fz_archive_list_entry_set)
  1506. has_entry = property(_mupdf.fz_archive_has_entry_get, _mupdf.fz_archive_has_entry_set)
  1507. read_entry = property(_mupdf.fz_archive_read_entry_get, _mupdf.fz_archive_read_entry_set)
  1508. open_entry = property(_mupdf.fz_archive_open_entry_get, _mupdf.fz_archive_open_entry_set)
  1509. def __init__(self):
  1510. _mupdf.fz_archive_swiginit(self, _mupdf.new_fz_archive())
  1511. __swig_destroy__ = _mupdf.delete_fz_archive
  1512. # Register fz_archive in _mupdf:
  1513. _mupdf.fz_archive_swigregister(fz_archive)
  1514. fz_libarchive_archive_handler = cvar.fz_libarchive_archive_handler
  1515. FZ_JSON_NULL = _mupdf.FZ_JSON_NULL
  1516. FZ_JSON_TRUE = _mupdf.FZ_JSON_TRUE
  1517. FZ_JSON_FALSE = _mupdf.FZ_JSON_FALSE
  1518. FZ_JSON_NUMBER = _mupdf.FZ_JSON_NUMBER
  1519. FZ_JSON_STRING = _mupdf.FZ_JSON_STRING
  1520. FZ_JSON_ARRAY = _mupdf.FZ_JSON_ARRAY
  1521. FZ_JSON_OBJECT = _mupdf.FZ_JSON_OBJECT
  1522. class fz_json(object):
  1523. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1524. __repr__ = _swig_repr
  1525. type = property(_mupdf.fz_json_type_get, _mupdf.fz_json_type_set)
  1526. def __init__(self):
  1527. _mupdf.fz_json_swiginit(self, _mupdf.new_fz_json())
  1528. __swig_destroy__ = _mupdf.delete_fz_json
  1529. # Register fz_json in _mupdf:
  1530. _mupdf.fz_json_swigregister(fz_json)
  1531. class fz_json_array(object):
  1532. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1533. __repr__ = _swig_repr
  1534. value = property(_mupdf.fz_json_array_value_get, _mupdf.fz_json_array_value_set)
  1535. next = property(_mupdf.fz_json_array_next_get, _mupdf.fz_json_array_next_set)
  1536. def __init__(self):
  1537. _mupdf.fz_json_array_swiginit(self, _mupdf.new_fz_json_array())
  1538. __swig_destroy__ = _mupdf.delete_fz_json_array
  1539. # Register fz_json_array in _mupdf:
  1540. _mupdf.fz_json_array_swigregister(fz_json_array)
  1541. class fz_json_object(object):
  1542. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1543. __repr__ = _swig_repr
  1544. key = property(_mupdf.fz_json_object_key_get, _mupdf.fz_json_object_key_set)
  1545. value = property(_mupdf.fz_json_object_value_get, _mupdf.fz_json_object_value_set)
  1546. next = property(_mupdf.fz_json_object_next_get, _mupdf.fz_json_object_next_set)
  1547. def __init__(self):
  1548. _mupdf.fz_json_object_swiginit(self, _mupdf.new_fz_json_object())
  1549. __swig_destroy__ = _mupdf.delete_fz_json_object
  1550. # Register fz_json_object in _mupdf:
  1551. _mupdf.fz_json_object_swigregister(fz_json_object)
  1552. class fz_location(object):
  1553. r"""
  1554. Locations within the document are referred to in terms of
  1555. chapter and page, rather than just a page number. For some
  1556. documents (such as epub documents with large numbers of pages
  1557. broken into many chapters) this can make navigation much faster
  1558. as only the required chapter needs to be decoded at a time.
  1559. """
  1560. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1561. __repr__ = _swig_repr
  1562. chapter = property(_mupdf.fz_location_chapter_get, _mupdf.fz_location_chapter_set)
  1563. page = property(_mupdf.fz_location_page_get, _mupdf.fz_location_page_set)
  1564. def __init__(self):
  1565. _mupdf.fz_location_swiginit(self, _mupdf.new_fz_location())
  1566. __swig_destroy__ = _mupdf.delete_fz_location
  1567. # Register fz_location in _mupdf:
  1568. _mupdf.fz_location_swigregister(fz_location)
  1569. class fz_storable(object):
  1570. r"""
  1571. Any storable object should include an fz_storable structure
  1572. at the start (by convention at least) of their structure.
  1573. (Unless it starts with an fz_key_storable, see below).
  1574. """
  1575. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1576. __repr__ = _swig_repr
  1577. refs = property(_mupdf.fz_storable_refs_get, _mupdf.fz_storable_refs_set)
  1578. drop = property(_mupdf.fz_storable_drop_get, _mupdf.fz_storable_drop_set)
  1579. droppable = property(_mupdf.fz_storable_droppable_get, _mupdf.fz_storable_droppable_set)
  1580. def __init__(self):
  1581. _mupdf.fz_storable_swiginit(self, _mupdf.new_fz_storable())
  1582. __swig_destroy__ = _mupdf.delete_fz_storable
  1583. # Register fz_storable in _mupdf:
  1584. _mupdf.fz_storable_swigregister(fz_storable)
  1585. class fz_key_storable(object):
  1586. r"""
  1587. Any storable object that can appear in the key of another
  1588. storable object should include an fz_key_storable structure
  1589. at the start (by convention at least) of their structure.
  1590. """
  1591. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1592. __repr__ = _swig_repr
  1593. storable = property(_mupdf.fz_key_storable_storable_get, _mupdf.fz_key_storable_storable_set)
  1594. store_key_refs = property(_mupdf.fz_key_storable_store_key_refs_get, _mupdf.fz_key_storable_store_key_refs_set)
  1595. def __init__(self):
  1596. _mupdf.fz_key_storable_swiginit(self, _mupdf.new_fz_key_storable())
  1597. __swig_destroy__ = _mupdf.delete_fz_key_storable
  1598. # Register fz_key_storable in _mupdf:
  1599. _mupdf.fz_key_storable_swigregister(fz_key_storable)
  1600. class fz_store_hash(object):
  1601. r"""
  1602. The store can be seen as a dictionary that maps keys to
  1603. fz_storable values. In order to allow keys of different types to
  1604. be stored, we have a structure full of functions for each key
  1605. 'type'; this fz_store_type pointer is stored with each key, and
  1606. tells the store how to perform certain operations (like taking/
  1607. dropping a reference, comparing two keys, outputting details for
  1608. debugging etc).
  1609. The store uses a hash table internally for speed where possible.
  1610. In order for this to work, we need a mechanism for turning a
  1611. generic 'key' into 'a hashable string'. For this purpose the
  1612. type structure contains a make_hash_key function pointer that
  1613. maps from a void * to a fz_store_hash structure. If
  1614. make_hash_key function returns 0, then the key is determined not
  1615. to be hashable, and the value is not stored in the hash table.
  1616. Some objects can be used both as values within the store, and as
  1617. a component of keys within the store. We refer to these objects
  1618. as "key storable" objects. In this case, we need to take
  1619. additional care to ensure that we do not end up keeping an item
  1620. within the store, purely because its value is referred to by
  1621. another key in the store.
  1622. An example of this are fz_images in PDF files. Each fz_image is
  1623. placed into the store to enable it to be easily reused. When the
  1624. image is rendered, a pixmap is generated from the image, and the
  1625. pixmap is placed into the store so it can be reused on
  1626. subsequent renders. The image forms part of the key for the
  1627. pixmap.
  1628. When we close the pdf document (and any associated pages/display
  1629. lists etc), we drop the images from the store. This may leave us
  1630. in the position of the images having non-zero reference counts
  1631. purely because they are used as part of the keys for the
  1632. pixmaps.
  1633. We therefore use special reference counting functions to keep
  1634. track of these "key storable" items, and hence store the number
  1635. of references to these items that are used in keys.
  1636. When the number of references to an object == the number of
  1637. references to an object from keys in the store, we know that we
  1638. can remove all the items which have that object as part of the
  1639. key. This is done by running a pass over the store, 'reaping'
  1640. those items.
  1641. Reap passes are slower than we would like as they touch every
  1642. item in the store. We therefore provide a way to 'batch' such
  1643. reap passes together, using fz_defer_reap_start/
  1644. fz_defer_reap_end to bracket a region in which many may be
  1645. triggered.
  1646. """
  1647. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1648. __repr__ = _swig_repr
  1649. drop = property(_mupdf.fz_store_hash_drop_get, _mupdf.fz_store_hash_drop_set)
  1650. def __init__(self):
  1651. _mupdf.fz_store_hash_swiginit(self, _mupdf.new_fz_store_hash())
  1652. __swig_destroy__ = _mupdf.delete_fz_store_hash
  1653. # Register fz_store_hash in _mupdf:
  1654. _mupdf.fz_store_hash_swigregister(fz_store_hash)
  1655. class fz_store_type(object):
  1656. r"""
  1657. Every type of object to be placed into the store defines an
  1658. fz_store_type. This contains the pointers to functions to
  1659. make hashes, manipulate keys, and check for needing reaping.
  1660. """
  1661. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1662. __repr__ = _swig_repr
  1663. name = property(_mupdf.fz_store_type_name_get, _mupdf.fz_store_type_name_set)
  1664. make_hash_key = property(_mupdf.fz_store_type_make_hash_key_get, _mupdf.fz_store_type_make_hash_key_set)
  1665. keep_key = property(_mupdf.fz_store_type_keep_key_get, _mupdf.fz_store_type_keep_key_set)
  1666. drop_key = property(_mupdf.fz_store_type_drop_key_get, _mupdf.fz_store_type_drop_key_set)
  1667. cmp_key = property(_mupdf.fz_store_type_cmp_key_get, _mupdf.fz_store_type_cmp_key_set)
  1668. format_key = property(_mupdf.fz_store_type_format_key_get, _mupdf.fz_store_type_format_key_set)
  1669. needs_reap = property(_mupdf.fz_store_type_needs_reap_get, _mupdf.fz_store_type_needs_reap_set)
  1670. def __init__(self):
  1671. _mupdf.fz_store_type_swiginit(self, _mupdf.new_fz_store_type())
  1672. __swig_destroy__ = _mupdf.delete_fz_store_type
  1673. # Register fz_store_type in _mupdf:
  1674. _mupdf.fz_store_type_swigregister(fz_store_type)
  1675. FZ_RI_PERCEPTUAL = _mupdf.FZ_RI_PERCEPTUAL
  1676. FZ_RI_RELATIVE_COLORIMETRIC = _mupdf.FZ_RI_RELATIVE_COLORIMETRIC
  1677. FZ_RI_SATURATION = _mupdf.FZ_RI_SATURATION
  1678. FZ_RI_ABSOLUTE_COLORIMETRIC = _mupdf.FZ_RI_ABSOLUTE_COLORIMETRIC
  1679. class fz_color_params(object):
  1680. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1681. __repr__ = _swig_repr
  1682. ri = property(_mupdf.fz_color_params_ri_get, _mupdf.fz_color_params_ri_set)
  1683. bp = property(_mupdf.fz_color_params_bp_get, _mupdf.fz_color_params_bp_set)
  1684. op = property(_mupdf.fz_color_params_op_get, _mupdf.fz_color_params_op_set)
  1685. opm = property(_mupdf.fz_color_params_opm_get, _mupdf.fz_color_params_opm_set)
  1686. def __init__(self):
  1687. _mupdf.fz_color_params_swiginit(self, _mupdf.new_fz_color_params())
  1688. __swig_destroy__ = _mupdf.delete_fz_color_params
  1689. # Register fz_color_params in _mupdf:
  1690. _mupdf.fz_color_params_swigregister(fz_color_params)
  1691. FZ_MAX_COLORS = _mupdf.FZ_MAX_COLORS
  1692. FZ_COLORSPACE_IS_DEVICE = _mupdf.FZ_COLORSPACE_IS_DEVICE
  1693. FZ_COLORSPACE_IS_ICC = _mupdf.FZ_COLORSPACE_IS_ICC
  1694. FZ_COLORSPACE_HAS_CMYK = _mupdf.FZ_COLORSPACE_HAS_CMYK
  1695. FZ_COLORSPACE_HAS_SPOTS = _mupdf.FZ_COLORSPACE_HAS_SPOTS
  1696. FZ_COLORSPACE_HAS_CMYK_AND_SPOTS = _mupdf.FZ_COLORSPACE_HAS_CMYK_AND_SPOTS
  1697. class fz_default_colorspaces(object):
  1698. r"""Structure to hold default colorspaces."""
  1699. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1700. __repr__ = _swig_repr
  1701. refs = property(_mupdf.fz_default_colorspaces_refs_get, _mupdf.fz_default_colorspaces_refs_set)
  1702. gray = property(_mupdf.fz_default_colorspaces_gray_get, _mupdf.fz_default_colorspaces_gray_set)
  1703. rgb = property(_mupdf.fz_default_colorspaces_rgb_get, _mupdf.fz_default_colorspaces_rgb_set)
  1704. cmyk = property(_mupdf.fz_default_colorspaces_cmyk_get, _mupdf.fz_default_colorspaces_cmyk_set)
  1705. oi = property(_mupdf.fz_default_colorspaces_oi_get, _mupdf.fz_default_colorspaces_oi_set)
  1706. def __init__(self):
  1707. _mupdf.fz_default_colorspaces_swiginit(self, _mupdf.new_fz_default_colorspaces())
  1708. __swig_destroy__ = _mupdf.delete_fz_default_colorspaces
  1709. # Register fz_default_colorspaces in _mupdf:
  1710. _mupdf.fz_default_colorspaces_swigregister(fz_default_colorspaces)
  1711. fz_default_color_params = cvar.fz_default_color_params
  1712. class fz_colorspace(object):
  1713. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1714. __repr__ = _swig_repr
  1715. key_storable = property(_mupdf.fz_colorspace_key_storable_get, _mupdf.fz_colorspace_key_storable_set)
  1716. type = property(_mupdf.fz_colorspace_type_get, _mupdf.fz_colorspace_type_set)
  1717. flags = property(_mupdf.fz_colorspace_flags_get, _mupdf.fz_colorspace_flags_set)
  1718. n = property(_mupdf.fz_colorspace_n_get, _mupdf.fz_colorspace_n_set)
  1719. name = property(_mupdf.fz_colorspace_name_get, _mupdf.fz_colorspace_name_set)
  1720. def __init__(self):
  1721. _mupdf.fz_colorspace_swiginit(self, _mupdf.new_fz_colorspace())
  1722. __swig_destroy__ = _mupdf.delete_fz_colorspace
  1723. # Register fz_colorspace in _mupdf:
  1724. _mupdf.fz_colorspace_swigregister(fz_colorspace)
  1725. FZ_MAX_SEPARATIONS = _mupdf.FZ_MAX_SEPARATIONS
  1726. FZ_SEPARATION_COMPOSITE = _mupdf.FZ_SEPARATION_COMPOSITE
  1727. FZ_SEPARATION_SPOT = _mupdf.FZ_SEPARATION_SPOT
  1728. FZ_SEPARATION_DISABLED = _mupdf.FZ_SEPARATION_DISABLED
  1729. class fz_pixmap(object):
  1730. r"""
  1731. Pixmaps represent a set of pixels for a 2 dimensional region of
  1732. a plane. Each pixel has n components per pixel. The components
  1733. are in the order process-components, spot-colors, alpha, where
  1734. there can be 0 of any of those types. The data is in
  1735. premultiplied alpha when rendering, but non-premultiplied for
  1736. colorspace conversions and rescaling.
  1737. x, y: The minimum x and y coord of the region in pixels.
  1738. w, h: The width and height of the region in pixels.
  1739. n: The number of color components in the image.
  1740. n = num composite colors + num spots + num alphas
  1741. s: The number of spot channels in the image.
  1742. alpha: 0 for no alpha, 1 for alpha present.
  1743. flags: flag bits.
  1744. Bit 0: If set, draw the image with linear interpolation.
  1745. Bit 1: If set, free the samples buffer when the pixmap
  1746. is destroyed.
  1747. stride: The byte offset from the data for any given pixel
  1748. to the data for the same pixel on the row below.
  1749. seps: NULL, or a pointer to a separations structure. If NULL,
  1750. s should be 0.
  1751. xres, yres: Image resolution in dpi. Default is 96 dpi.
  1752. colorspace: Pointer to a colorspace object describing the
  1753. colorspace the pixmap is in. If NULL, the image is a mask.
  1754. samples: Pointer to the first byte of the pixmap sample data.
  1755. This is typically a simple block of memory w * h * n bytes of
  1756. memory in which the components are stored linearly, but with the
  1757. use of appropriate stride values, scanlines can be stored in
  1758. different orders, and have different amounts of padding. The
  1759. first n bytes are components 0 to n-1 for the pixel at (x,y).
  1760. Each successive n bytes gives another pixel in scanline order
  1761. as we move across the line. The start of each scanline is offset
  1762. the start of the previous one by stride bytes.
  1763. """
  1764. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1765. __repr__ = _swig_repr
  1766. storable = property(_mupdf.fz_pixmap_storable_get, _mupdf.fz_pixmap_storable_set)
  1767. x = property(_mupdf.fz_pixmap_x_get, _mupdf.fz_pixmap_x_set)
  1768. y = property(_mupdf.fz_pixmap_y_get, _mupdf.fz_pixmap_y_set)
  1769. w = property(_mupdf.fz_pixmap_w_get, _mupdf.fz_pixmap_w_set)
  1770. h = property(_mupdf.fz_pixmap_h_get, _mupdf.fz_pixmap_h_set)
  1771. n = property(_mupdf.fz_pixmap_n_get, _mupdf.fz_pixmap_n_set)
  1772. s = property(_mupdf.fz_pixmap_s_get, _mupdf.fz_pixmap_s_set)
  1773. alpha = property(_mupdf.fz_pixmap_alpha_get, _mupdf.fz_pixmap_alpha_set)
  1774. flags = property(_mupdf.fz_pixmap_flags_get, _mupdf.fz_pixmap_flags_set)
  1775. stride = property(_mupdf.fz_pixmap_stride_get, _mupdf.fz_pixmap_stride_set)
  1776. seps = property(_mupdf.fz_pixmap_seps_get, _mupdf.fz_pixmap_seps_set)
  1777. xres = property(_mupdf.fz_pixmap_xres_get, _mupdf.fz_pixmap_xres_set)
  1778. yres = property(_mupdf.fz_pixmap_yres_get, _mupdf.fz_pixmap_yres_set)
  1779. colorspace = property(_mupdf.fz_pixmap_colorspace_get, _mupdf.fz_pixmap_colorspace_set)
  1780. samples = property(_mupdf.fz_pixmap_samples_get, _mupdf.fz_pixmap_samples_set)
  1781. underlying = property(_mupdf.fz_pixmap_underlying_get, _mupdf.fz_pixmap_underlying_set)
  1782. def __init__(self):
  1783. _mupdf.fz_pixmap_swiginit(self, _mupdf.new_fz_pixmap())
  1784. __swig_destroy__ = _mupdf.delete_fz_pixmap
  1785. # Register fz_pixmap in _mupdf:
  1786. _mupdf.fz_pixmap_swigregister(fz_pixmap)
  1787. FZ_PIXMAP_FLAG_INTERPOLATE = _mupdf.FZ_PIXMAP_FLAG_INTERPOLATE
  1788. FZ_PIXMAP_FLAG_FREE_SAMPLES = _mupdf.FZ_PIXMAP_FLAG_FREE_SAMPLES
  1789. FZ_DEFLATE_NONE = _mupdf.FZ_DEFLATE_NONE
  1790. FZ_DEFLATE_BEST_SPEED = _mupdf.FZ_DEFLATE_BEST_SPEED
  1791. FZ_DEFLATE_BEST = _mupdf.FZ_DEFLATE_BEST
  1792. FZ_DEFLATE_DEFAULT = _mupdf.FZ_DEFLATE_DEFAULT
  1793. FZ_BROTLI_NONE = _mupdf.FZ_BROTLI_NONE
  1794. FZ_BROTLI_BEST_SPEED = _mupdf.FZ_BROTLI_BEST_SPEED
  1795. FZ_BROTLI_BEST = _mupdf.FZ_BROTLI_BEST
  1796. FZ_BROTLI_DEFAULT = _mupdf.FZ_BROTLI_DEFAULT
  1797. class fz_range(object):
  1798. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1799. __repr__ = _swig_repr
  1800. offset = property(_mupdf.fz_range_offset_get, _mupdf.fz_range_offset_set)
  1801. length = property(_mupdf.fz_range_length_get, _mupdf.fz_range_length_set)
  1802. def __init__(self):
  1803. _mupdf.fz_range_swiginit(self, _mupdf.new_fz_range())
  1804. __swig_destroy__ = _mupdf.delete_fz_range
  1805. # Register fz_range in _mupdf:
  1806. _mupdf.fz_range_swigregister(fz_range)
  1807. class fz_compression_params(object):
  1808. r"""
  1809. Compression parameters used for buffers of compressed data;
  1810. typically for the source data for images.
  1811. """
  1812. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1813. __repr__ = _swig_repr
  1814. type = property(_mupdf.fz_compression_params_type_get, _mupdf.fz_compression_params_type_set)
  1815. def __init__(self):
  1816. _mupdf.fz_compression_params_swiginit(self, _mupdf.new_fz_compression_params())
  1817. __swig_destroy__ = _mupdf.delete_fz_compression_params
  1818. # Register fz_compression_params in _mupdf:
  1819. _mupdf.fz_compression_params_swigregister(fz_compression_params)
  1820. class fz_compressed_buffer(object):
  1821. r"""
  1822. Buffers of compressed data; typically for the source data
  1823. for images.
  1824. """
  1825. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1826. __repr__ = _swig_repr
  1827. refs = property(_mupdf.fz_compressed_buffer_refs_get, _mupdf.fz_compressed_buffer_refs_set)
  1828. params = property(_mupdf.fz_compressed_buffer_params_get, _mupdf.fz_compressed_buffer_params_set)
  1829. buffer = property(_mupdf.fz_compressed_buffer_buffer_get, _mupdf.fz_compressed_buffer_buffer_set)
  1830. def __init__(self):
  1831. _mupdf.fz_compressed_buffer_swiginit(self, _mupdf.new_fz_compressed_buffer())
  1832. __swig_destroy__ = _mupdf.delete_fz_compressed_buffer
  1833. # Register fz_compressed_buffer in _mupdf:
  1834. _mupdf.fz_compressed_buffer_swigregister(fz_compressed_buffer)
  1835. FZ_IMAGE_UNKNOWN = _mupdf.FZ_IMAGE_UNKNOWN
  1836. FZ_IMAGE_RAW = _mupdf.FZ_IMAGE_RAW
  1837. FZ_IMAGE_FAX = _mupdf.FZ_IMAGE_FAX
  1838. FZ_IMAGE_FLATE = _mupdf.FZ_IMAGE_FLATE
  1839. FZ_IMAGE_LZW = _mupdf.FZ_IMAGE_LZW
  1840. FZ_IMAGE_RLD = _mupdf.FZ_IMAGE_RLD
  1841. FZ_IMAGE_BROTLI = _mupdf.FZ_IMAGE_BROTLI
  1842. FZ_IMAGE_BMP = _mupdf.FZ_IMAGE_BMP
  1843. FZ_IMAGE_GIF = _mupdf.FZ_IMAGE_GIF
  1844. FZ_IMAGE_JBIG2 = _mupdf.FZ_IMAGE_JBIG2
  1845. FZ_IMAGE_JPEG = _mupdf.FZ_IMAGE_JPEG
  1846. FZ_IMAGE_JPX = _mupdf.FZ_IMAGE_JPX
  1847. FZ_IMAGE_JXR = _mupdf.FZ_IMAGE_JXR
  1848. FZ_IMAGE_PNG = _mupdf.FZ_IMAGE_PNG
  1849. FZ_IMAGE_PNM = _mupdf.FZ_IMAGE_PNM
  1850. FZ_IMAGE_TIFF = _mupdf.FZ_IMAGE_TIFF
  1851. FZ_IMAGE_PSD = _mupdf.FZ_IMAGE_PSD
  1852. class fz_image(object):
  1853. r"""
  1854. Structure is public to allow other structures to
  1855. be derived from it. Do not access members directly.
  1856. """
  1857. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1858. __repr__ = _swig_repr
  1859. key_storable = property(_mupdf.fz_image_key_storable_get, _mupdf.fz_image_key_storable_set)
  1860. w = property(_mupdf.fz_image_w_get, _mupdf.fz_image_w_set)
  1861. h = property(_mupdf.fz_image_h_get, _mupdf.fz_image_h_set)
  1862. n = property(_mupdf.fz_image_n_get, _mupdf.fz_image_n_set)
  1863. bpc = property(_mupdf.fz_image_bpc_get, _mupdf.fz_image_bpc_set)
  1864. imagemask = property(_mupdf.fz_image_imagemask_get, _mupdf.fz_image_imagemask_set)
  1865. interpolate = property(_mupdf.fz_image_interpolate_get, _mupdf.fz_image_interpolate_set)
  1866. use_colorkey = property(_mupdf.fz_image_use_colorkey_get, _mupdf.fz_image_use_colorkey_set)
  1867. use_decode = property(_mupdf.fz_image_use_decode_get, _mupdf.fz_image_use_decode_set)
  1868. decoded = property(_mupdf.fz_image_decoded_get, _mupdf.fz_image_decoded_set)
  1869. scalable = property(_mupdf.fz_image_scalable_get, _mupdf.fz_image_scalable_set)
  1870. intent = property(_mupdf.fz_image_intent_get, _mupdf.fz_image_intent_set)
  1871. has_intent = property(_mupdf.fz_image_has_intent_get, _mupdf.fz_image_has_intent_set)
  1872. orientation = property(_mupdf.fz_image_orientation_get, _mupdf.fz_image_orientation_set)
  1873. mask = property(_mupdf.fz_image_mask_get, _mupdf.fz_image_mask_set)
  1874. xres = property(_mupdf.fz_image_xres_get, _mupdf.fz_image_xres_set)
  1875. yres = property(_mupdf.fz_image_yres_get, _mupdf.fz_image_yres_set)
  1876. colorspace = property(_mupdf.fz_image_colorspace_get, _mupdf.fz_image_colorspace_set)
  1877. drop_image = property(_mupdf.fz_image_drop_image_get, _mupdf.fz_image_drop_image_set)
  1878. get_pixmap = property(_mupdf.fz_image_get_pixmap_get, _mupdf.fz_image_get_pixmap_set)
  1879. get_size = property(_mupdf.fz_image_get_size_get, _mupdf.fz_image_get_size_set)
  1880. colorkey = property(_mupdf.fz_image_colorkey_get, _mupdf.fz_image_colorkey_set)
  1881. decode = property(_mupdf.fz_image_decode_get, _mupdf.fz_image_decode_set)
  1882. def __init__(self):
  1883. _mupdf.fz_image_swiginit(self, _mupdf.new_fz_image())
  1884. __swig_destroy__ = _mupdf.delete_fz_image
  1885. # Register fz_image in _mupdf:
  1886. _mupdf.fz_image_swigregister(fz_image)
  1887. class fz_bitmap(object):
  1888. r"""
  1889. Bitmaps have 1 bit per component. Only used for creating
  1890. halftoned versions of contone buffers, and saving out. Samples
  1891. are stored msb first, akin to pbms.
  1892. The internals of this struct are considered implementation
  1893. details and subject to change. Where possible, accessor
  1894. functions should be used in preference.
  1895. """
  1896. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1897. __repr__ = _swig_repr
  1898. refs = property(_mupdf.fz_bitmap_refs_get, _mupdf.fz_bitmap_refs_set)
  1899. w = property(_mupdf.fz_bitmap_w_get, _mupdf.fz_bitmap_w_set)
  1900. h = property(_mupdf.fz_bitmap_h_get, _mupdf.fz_bitmap_h_set)
  1901. stride = property(_mupdf.fz_bitmap_stride_get, _mupdf.fz_bitmap_stride_set)
  1902. n = property(_mupdf.fz_bitmap_n_get, _mupdf.fz_bitmap_n_set)
  1903. xres = property(_mupdf.fz_bitmap_xres_get, _mupdf.fz_bitmap_xres_set)
  1904. yres = property(_mupdf.fz_bitmap_yres_get, _mupdf.fz_bitmap_yres_set)
  1905. samples = property(_mupdf.fz_bitmap_samples_get, _mupdf.fz_bitmap_samples_set)
  1906. def __init__(self):
  1907. _mupdf.fz_bitmap_swiginit(self, _mupdf.new_fz_bitmap())
  1908. __swig_destroy__ = _mupdf.delete_fz_bitmap
  1909. # Register fz_bitmap in _mupdf:
  1910. _mupdf.fz_bitmap_swigregister(fz_bitmap)
  1911. FZ_FUNCTION_BASED = _mupdf.FZ_FUNCTION_BASED
  1912. FZ_LINEAR = _mupdf.FZ_LINEAR
  1913. FZ_RADIAL = _mupdf.FZ_RADIAL
  1914. FZ_MESH_TYPE4 = _mupdf.FZ_MESH_TYPE4
  1915. FZ_MESH_TYPE5 = _mupdf.FZ_MESH_TYPE5
  1916. FZ_MESH_TYPE6 = _mupdf.FZ_MESH_TYPE6
  1917. FZ_MESH_TYPE7 = _mupdf.FZ_MESH_TYPE7
  1918. class fz_shade(object):
  1919. r"""
  1920. Structure is public to allow derived classes. Do not
  1921. access the members directly.
  1922. """
  1923. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1924. __repr__ = _swig_repr
  1925. storable = property(_mupdf.fz_shade_storable_get, _mupdf.fz_shade_storable_set)
  1926. bbox = property(_mupdf.fz_shade_bbox_get, _mupdf.fz_shade_bbox_set)
  1927. colorspace = property(_mupdf.fz_shade_colorspace_get, _mupdf.fz_shade_colorspace_set)
  1928. matrix = property(_mupdf.fz_shade_matrix_get, _mupdf.fz_shade_matrix_set)
  1929. use_background = property(_mupdf.fz_shade_use_background_get, _mupdf.fz_shade_use_background_set)
  1930. background = property(_mupdf.fz_shade_background_get, _mupdf.fz_shade_background_set)
  1931. function_stride = property(_mupdf.fz_shade_function_stride_get, _mupdf.fz_shade_function_stride_set)
  1932. function = property(_mupdf.fz_shade_function_get, _mupdf.fz_shade_function_set)
  1933. type = property(_mupdf.fz_shade_type_get, _mupdf.fz_shade_type_set)
  1934. buffer = property(_mupdf.fz_shade_buffer_get, _mupdf.fz_shade_buffer_set)
  1935. def __init__(self):
  1936. _mupdf.fz_shade_swiginit(self, _mupdf.new_fz_shade())
  1937. __swig_destroy__ = _mupdf.delete_fz_shade
  1938. # Register fz_shade in _mupdf:
  1939. _mupdf.fz_shade_swigregister(fz_shade)
  1940. class fz_vertex(object):
  1941. r"""Handy routine for processing mesh based shades"""
  1942. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1943. __repr__ = _swig_repr
  1944. p = property(_mupdf.fz_vertex_p_get, _mupdf.fz_vertex_p_set)
  1945. c = property(_mupdf.fz_vertex_c_get, _mupdf.fz_vertex_c_set)
  1946. def __init__(self):
  1947. _mupdf.fz_vertex_swiginit(self, _mupdf.new_fz_vertex())
  1948. __swig_destroy__ = _mupdf.delete_fz_vertex
  1949. # Register fz_vertex in _mupdf:
  1950. _mupdf.fz_vertex_swigregister(fz_vertex)
  1951. class fz_text_decoder(object):
  1952. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1953. __repr__ = _swig_repr
  1954. decode_bound = property(_mupdf.fz_text_decoder_decode_bound_get, _mupdf.fz_text_decoder_decode_bound_set)
  1955. decode_size = property(_mupdf.fz_text_decoder_decode_size_get, _mupdf.fz_text_decoder_decode_size_set)
  1956. decode = property(_mupdf.fz_text_decoder_decode_get, _mupdf.fz_text_decoder_decode_set)
  1957. table1 = property(_mupdf.fz_text_decoder_table1_get, _mupdf.fz_text_decoder_table1_set)
  1958. table2 = property(_mupdf.fz_text_decoder_table2_get, _mupdf.fz_text_decoder_table2_set)
  1959. def __init__(self):
  1960. _mupdf.fz_text_decoder_swiginit(self, _mupdf.new_fz_text_decoder())
  1961. __swig_destroy__ = _mupdf.delete_fz_text_decoder
  1962. # Register fz_text_decoder in _mupdf:
  1963. _mupdf.fz_text_decoder_swigregister(fz_text_decoder)
  1964. fz_unicode_from_iso8859_1 = cvar.fz_unicode_from_iso8859_1
  1965. fz_unicode_from_iso8859_7 = cvar.fz_unicode_from_iso8859_7
  1966. fz_unicode_from_koi8u = cvar.fz_unicode_from_koi8u
  1967. fz_unicode_from_pdf_doc_encoding = cvar.fz_unicode_from_pdf_doc_encoding
  1968. fz_unicode_from_windows_1250 = cvar.fz_unicode_from_windows_1250
  1969. fz_unicode_from_windows_1251 = cvar.fz_unicode_from_windows_1251
  1970. fz_unicode_from_windows_1252 = cvar.fz_unicode_from_windows_1252
  1971. FZ_ADOBE_CNS = _mupdf.FZ_ADOBE_CNS
  1972. FZ_ADOBE_GB = _mupdf.FZ_ADOBE_GB
  1973. FZ_ADOBE_JAPAN = _mupdf.FZ_ADOBE_JAPAN
  1974. FZ_ADOBE_KOREA = _mupdf.FZ_ADOBE_KOREA
  1975. class fz_font_flags_t(object):
  1976. r"""
  1977. Every fz_font carries a set of flags
  1978. within it, in a fz_font_flags_t structure.
  1979. """
  1980. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1981. __repr__ = _swig_repr
  1982. is_mono = property(_mupdf.fz_font_flags_t_is_mono_get, _mupdf.fz_font_flags_t_is_mono_set)
  1983. is_serif = property(_mupdf.fz_font_flags_t_is_serif_get, _mupdf.fz_font_flags_t_is_serif_set)
  1984. is_bold = property(_mupdf.fz_font_flags_t_is_bold_get, _mupdf.fz_font_flags_t_is_bold_set)
  1985. is_italic = property(_mupdf.fz_font_flags_t_is_italic_get, _mupdf.fz_font_flags_t_is_italic_set)
  1986. ft_substitute = property(_mupdf.fz_font_flags_t_ft_substitute_get, _mupdf.fz_font_flags_t_ft_substitute_set)
  1987. ft_stretch = property(_mupdf.fz_font_flags_t_ft_stretch_get, _mupdf.fz_font_flags_t_ft_stretch_set)
  1988. fake_bold = property(_mupdf.fz_font_flags_t_fake_bold_get, _mupdf.fz_font_flags_t_fake_bold_set)
  1989. fake_italic = property(_mupdf.fz_font_flags_t_fake_italic_get, _mupdf.fz_font_flags_t_fake_italic_set)
  1990. has_opentype = property(_mupdf.fz_font_flags_t_has_opentype_get, _mupdf.fz_font_flags_t_has_opentype_set)
  1991. invalid_bbox = property(_mupdf.fz_font_flags_t_invalid_bbox_get, _mupdf.fz_font_flags_t_invalid_bbox_set)
  1992. cjk = property(_mupdf.fz_font_flags_t_cjk_get, _mupdf.fz_font_flags_t_cjk_set)
  1993. cjk_lang = property(_mupdf.fz_font_flags_t_cjk_lang_get, _mupdf.fz_font_flags_t_cjk_lang_set)
  1994. embed = property(_mupdf.fz_font_flags_t_embed_get, _mupdf.fz_font_flags_t_embed_set)
  1995. never_embed = property(_mupdf.fz_font_flags_t_never_embed_get, _mupdf.fz_font_flags_t_never_embed_set)
  1996. def __init__(self):
  1997. _mupdf.fz_font_flags_t_swiginit(self, _mupdf.new_fz_font_flags_t())
  1998. __swig_destroy__ = _mupdf.delete_fz_font_flags_t
  1999. # Register fz_font_flags_t in _mupdf:
  2000. _mupdf.fz_font_flags_t_swigregister(fz_font_flags_t)
  2001. class fz_shaper_data_t(object):
  2002. r"""
  2003. In order to shape a given font, we need to
  2004. declare it to a shaper library (harfbuzz, by default, but others
  2005. are possible). To avoid redeclaring it every time we need to
  2006. shape, we hold a shaper handle and the destructor for it within
  2007. the font itself. The handle is initialised by the caller when
  2008. first required and the destructor is called when the fz_font is
  2009. destroyed.
  2010. """
  2011. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2012. __repr__ = _swig_repr
  2013. shaper_handle = property(_mupdf.fz_shaper_data_t_shaper_handle_get, _mupdf.fz_shaper_data_t_shaper_handle_set)
  2014. destroy = property(_mupdf.fz_shaper_data_t_destroy_get, _mupdf.fz_shaper_data_t_destroy_set)
  2015. def __init__(self):
  2016. _mupdf.fz_shaper_data_t_swiginit(self, _mupdf.new_fz_shaper_data_t())
  2017. __swig_destroy__ = _mupdf.delete_fz_shaper_data_t
  2018. # Register fz_shaper_data_t in _mupdf:
  2019. _mupdf.fz_shaper_data_t_swigregister(fz_shaper_data_t)
  2020. FZ_ASCDESC_FROM_FONT = _mupdf.FZ_ASCDESC_FROM_FONT
  2021. FZ_ASCDESC_DEFAULT = _mupdf.FZ_ASCDESC_DEFAULT
  2022. FZ_ASCDESC_FROM_BOUNDS = _mupdf.FZ_ASCDESC_FROM_BOUNDS
  2023. FZ_MAX_TRUSTWORTHY_ASCENT = _mupdf.FZ_MAX_TRUSTWORTHY_ASCENT
  2024. FZ_MAX_TRUSTWORTHY_DESCENT = _mupdf.FZ_MAX_TRUSTWORTHY_DESCENT
  2025. class fz_font(object):
  2026. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2027. __repr__ = _swig_repr
  2028. refs = property(_mupdf.fz_font_refs_get, _mupdf.fz_font_refs_set)
  2029. name = property(_mupdf.fz_font_name_get, _mupdf.fz_font_name_set)
  2030. buffer = property(_mupdf.fz_font_buffer_get, _mupdf.fz_font_buffer_set)
  2031. flags = property(_mupdf.fz_font_flags_get, _mupdf.fz_font_flags_set)
  2032. ft_face = property(_mupdf.fz_font_ft_face_get, _mupdf.fz_font_ft_face_set)
  2033. shaper_data = property(_mupdf.fz_font_shaper_data_get, _mupdf.fz_font_shaper_data_set)
  2034. t3matrix = property(_mupdf.fz_font_t3matrix_get, _mupdf.fz_font_t3matrix_set)
  2035. t3resources = property(_mupdf.fz_font_t3resources_get, _mupdf.fz_font_t3resources_set)
  2036. t3procs = property(_mupdf.fz_font_t3procs_get, _mupdf.fz_font_t3procs_set)
  2037. t3lists = property(_mupdf.fz_font_t3lists_get, _mupdf.fz_font_t3lists_set)
  2038. t3widths = property(_mupdf.fz_font_t3widths_get, _mupdf.fz_font_t3widths_set)
  2039. t3flags = property(_mupdf.fz_font_t3flags_get, _mupdf.fz_font_t3flags_set)
  2040. t3doc = property(_mupdf.fz_font_t3doc_get, _mupdf.fz_font_t3doc_set)
  2041. t3run = property(_mupdf.fz_font_t3run_get, _mupdf.fz_font_t3run_set)
  2042. t3freeres = property(_mupdf.fz_font_t3freeres_get, _mupdf.fz_font_t3freeres_set)
  2043. bbox = property(_mupdf.fz_font_bbox_get, _mupdf.fz_font_bbox_set)
  2044. ascender = property(_mupdf.fz_font_ascender_get, _mupdf.fz_font_ascender_set)
  2045. descender = property(_mupdf.fz_font_descender_get, _mupdf.fz_font_descender_set)
  2046. ascdesc_src = property(_mupdf.fz_font_ascdesc_src_get, _mupdf.fz_font_ascdesc_src_set)
  2047. glyph_count = property(_mupdf.fz_font_glyph_count_get, _mupdf.fz_font_glyph_count_set)
  2048. bbox_table = property(_mupdf.fz_font_bbox_table_get, _mupdf.fz_font_bbox_table_set)
  2049. use_glyph_bbox = property(_mupdf.fz_font_use_glyph_bbox_get, _mupdf.fz_font_use_glyph_bbox_set)
  2050. width_count = property(_mupdf.fz_font_width_count_get, _mupdf.fz_font_width_count_set)
  2051. width_default = property(_mupdf.fz_font_width_default_get, _mupdf.fz_font_width_default_set)
  2052. width_table = property(_mupdf.fz_font_width_table_get, _mupdf.fz_font_width_table_set)
  2053. advance_cache = property(_mupdf.fz_font_advance_cache_get, _mupdf.fz_font_advance_cache_set)
  2054. encoding_cache = property(_mupdf.fz_font_encoding_cache_get, _mupdf.fz_font_encoding_cache_set)
  2055. has_digest = property(_mupdf.fz_font_has_digest_get, _mupdf.fz_font_has_digest_set)
  2056. digest = property(_mupdf.fz_font_digest_get, _mupdf.fz_font_digest_set)
  2057. subfont = property(_mupdf.fz_font_subfont_get, _mupdf.fz_font_subfont_set)
  2058. def __init__(self):
  2059. _mupdf.fz_font_swiginit(self, _mupdf.new_fz_font())
  2060. __swig_destroy__ = _mupdf.delete_fz_font
  2061. # Register fz_font in _mupdf:
  2062. _mupdf.fz_font_swigregister(fz_font)
  2063. FZ_LINECAP_BUTT = _mupdf.FZ_LINECAP_BUTT
  2064. FZ_LINECAP_ROUND = _mupdf.FZ_LINECAP_ROUND
  2065. FZ_LINECAP_SQUARE = _mupdf.FZ_LINECAP_SQUARE
  2066. FZ_LINECAP_TRIANGLE = _mupdf.FZ_LINECAP_TRIANGLE
  2067. FZ_LINEJOIN_MITER = _mupdf.FZ_LINEJOIN_MITER
  2068. FZ_LINEJOIN_ROUND = _mupdf.FZ_LINEJOIN_ROUND
  2069. FZ_LINEJOIN_BEVEL = _mupdf.FZ_LINEJOIN_BEVEL
  2070. FZ_LINEJOIN_MITER_XPS = _mupdf.FZ_LINEJOIN_MITER_XPS
  2071. class fz_stroke_state(object):
  2072. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2073. __repr__ = _swig_repr
  2074. refs = property(_mupdf.fz_stroke_state_refs_get, _mupdf.fz_stroke_state_refs_set)
  2075. start_cap = property(_mupdf.fz_stroke_state_start_cap_get, _mupdf.fz_stroke_state_start_cap_set)
  2076. dash_cap = property(_mupdf.fz_stroke_state_dash_cap_get, _mupdf.fz_stroke_state_dash_cap_set)
  2077. end_cap = property(_mupdf.fz_stroke_state_end_cap_get, _mupdf.fz_stroke_state_end_cap_set)
  2078. linejoin = property(_mupdf.fz_stroke_state_linejoin_get, _mupdf.fz_stroke_state_linejoin_set)
  2079. linewidth = property(_mupdf.fz_stroke_state_linewidth_get, _mupdf.fz_stroke_state_linewidth_set)
  2080. miterlimit = property(_mupdf.fz_stroke_state_miterlimit_get, _mupdf.fz_stroke_state_miterlimit_set)
  2081. dash_phase = property(_mupdf.fz_stroke_state_dash_phase_get, _mupdf.fz_stroke_state_dash_phase_set)
  2082. dash_len = property(_mupdf.fz_stroke_state_dash_len_get, _mupdf.fz_stroke_state_dash_len_set)
  2083. dash_list = property(_mupdf.fz_stroke_state_dash_list_get, _mupdf.fz_stroke_state_dash_list_set)
  2084. def __init__(self):
  2085. _mupdf.fz_stroke_state_swiginit(self, _mupdf.new_fz_stroke_state())
  2086. __swig_destroy__ = _mupdf.delete_fz_stroke_state
  2087. # Register fz_stroke_state in _mupdf:
  2088. _mupdf.fz_stroke_state_swigregister(fz_stroke_state)
  2089. class fz_path_walker(object):
  2090. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2091. __repr__ = _swig_repr
  2092. moveto = property(_mupdf.fz_path_walker_moveto_get, _mupdf.fz_path_walker_moveto_set)
  2093. lineto = property(_mupdf.fz_path_walker_lineto_get, _mupdf.fz_path_walker_lineto_set)
  2094. curveto = property(_mupdf.fz_path_walker_curveto_get, _mupdf.fz_path_walker_curveto_set)
  2095. closepath = property(_mupdf.fz_path_walker_closepath_get, _mupdf.fz_path_walker_closepath_set)
  2096. quadto = property(_mupdf.fz_path_walker_quadto_get, _mupdf.fz_path_walker_quadto_set)
  2097. curvetov = property(_mupdf.fz_path_walker_curvetov_get, _mupdf.fz_path_walker_curvetov_set)
  2098. curvetoy = property(_mupdf.fz_path_walker_curvetoy_get, _mupdf.fz_path_walker_curvetoy_set)
  2099. rectto = property(_mupdf.fz_path_walker_rectto_get, _mupdf.fz_path_walker_rectto_set)
  2100. def __init__(self):
  2101. _mupdf.fz_path_walker_swiginit(self, _mupdf.new_fz_path_walker())
  2102. __swig_destroy__ = _mupdf.delete_fz_path_walker
  2103. # Register fz_path_walker in _mupdf:
  2104. _mupdf.fz_path_walker_swigregister(fz_path_walker)
  2105. class fz_text_item(object):
  2106. r"""
  2107. Text buffer.
  2108. The trm field contains the a, b, c and d coefficients.
  2109. The e and f coefficients come from the individual elements,
  2110. together they form the transform matrix for the glyph.
  2111. Glyphs are referenced by glyph ID.
  2112. The Unicode text equivalent is kept in a separate array
  2113. with indexes into the glyph array.
  2114. """
  2115. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2116. __repr__ = _swig_repr
  2117. x = property(_mupdf.fz_text_item_x_get, _mupdf.fz_text_item_x_set)
  2118. y = property(_mupdf.fz_text_item_y_get, _mupdf.fz_text_item_y_set)
  2119. adv = property(_mupdf.fz_text_item_adv_get, _mupdf.fz_text_item_adv_set)
  2120. gid = property(_mupdf.fz_text_item_gid_get, _mupdf.fz_text_item_gid_set)
  2121. ucs = property(_mupdf.fz_text_item_ucs_get, _mupdf.fz_text_item_ucs_set)
  2122. cid = property(_mupdf.fz_text_item_cid_get, _mupdf.fz_text_item_cid_set)
  2123. def __init__(self):
  2124. _mupdf.fz_text_item_swiginit(self, _mupdf.new_fz_text_item())
  2125. __swig_destroy__ = _mupdf.delete_fz_text_item
  2126. # Register fz_text_item in _mupdf:
  2127. _mupdf.fz_text_item_swigregister(fz_text_item)
  2128. fz_default_stroke_state = cvar.fz_default_stroke_state
  2129. FZ_LANG_UNSET = _mupdf.FZ_LANG_UNSET
  2130. FZ_LANG_ur = _mupdf.FZ_LANG_ur
  2131. FZ_LANG_urd = _mupdf.FZ_LANG_urd
  2132. FZ_LANG_ko = _mupdf.FZ_LANG_ko
  2133. FZ_LANG_ja = _mupdf.FZ_LANG_ja
  2134. FZ_LANG_zh = _mupdf.FZ_LANG_zh
  2135. FZ_LANG_zh_Hans = _mupdf.FZ_LANG_zh_Hans
  2136. FZ_LANG_zh_Hant = _mupdf.FZ_LANG_zh_Hant
  2137. class fz_text_span(object):
  2138. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2139. __repr__ = _swig_repr
  2140. font = property(_mupdf.fz_text_span_font_get, _mupdf.fz_text_span_font_set)
  2141. trm = property(_mupdf.fz_text_span_trm_get, _mupdf.fz_text_span_trm_set)
  2142. wmode = property(_mupdf.fz_text_span_wmode_get, _mupdf.fz_text_span_wmode_set)
  2143. bidi_level = property(_mupdf.fz_text_span_bidi_level_get, _mupdf.fz_text_span_bidi_level_set)
  2144. markup_dir = property(_mupdf.fz_text_span_markup_dir_get, _mupdf.fz_text_span_markup_dir_set)
  2145. language = property(_mupdf.fz_text_span_language_get, _mupdf.fz_text_span_language_set)
  2146. len = property(_mupdf.fz_text_span_len_get, _mupdf.fz_text_span_len_set)
  2147. cap = property(_mupdf.fz_text_span_cap_get, _mupdf.fz_text_span_cap_set)
  2148. items = property(_mupdf.fz_text_span_items_get, _mupdf.fz_text_span_items_set)
  2149. next = property(_mupdf.fz_text_span_next_get, _mupdf.fz_text_span_next_set)
  2150. def __init__(self):
  2151. _mupdf.fz_text_span_swiginit(self, _mupdf.new_fz_text_span())
  2152. __swig_destroy__ = _mupdf.delete_fz_text_span
  2153. # Register fz_text_span in _mupdf:
  2154. _mupdf.fz_text_span_swigregister(fz_text_span)
  2155. class fz_text(object):
  2156. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2157. __repr__ = _swig_repr
  2158. refs = property(_mupdf.fz_text_refs_get, _mupdf.fz_text_refs_set)
  2159. head = property(_mupdf.fz_text_head_get, _mupdf.fz_text_head_set)
  2160. tail = property(_mupdf.fz_text_tail_get, _mupdf.fz_text_tail_set)
  2161. def __init__(self):
  2162. _mupdf.fz_text_swiginit(self, _mupdf.new_fz_text())
  2163. __swig_destroy__ = _mupdf.delete_fz_text
  2164. # Register fz_text in _mupdf:
  2165. _mupdf.fz_text_swigregister(fz_text)
  2166. FZ_DEVFLAG_MASK = _mupdf.FZ_DEVFLAG_MASK
  2167. FZ_DEVFLAG_COLOR = _mupdf.FZ_DEVFLAG_COLOR
  2168. FZ_DEVFLAG_UNCACHEABLE = _mupdf.FZ_DEVFLAG_UNCACHEABLE
  2169. FZ_DEVFLAG_FILLCOLOR_UNDEFINED = _mupdf.FZ_DEVFLAG_FILLCOLOR_UNDEFINED
  2170. FZ_DEVFLAG_STROKECOLOR_UNDEFINED = _mupdf.FZ_DEVFLAG_STROKECOLOR_UNDEFINED
  2171. FZ_DEVFLAG_STARTCAP_UNDEFINED = _mupdf.FZ_DEVFLAG_STARTCAP_UNDEFINED
  2172. FZ_DEVFLAG_DASHCAP_UNDEFINED = _mupdf.FZ_DEVFLAG_DASHCAP_UNDEFINED
  2173. FZ_DEVFLAG_ENDCAP_UNDEFINED = _mupdf.FZ_DEVFLAG_ENDCAP_UNDEFINED
  2174. FZ_DEVFLAG_LINEJOIN_UNDEFINED = _mupdf.FZ_DEVFLAG_LINEJOIN_UNDEFINED
  2175. FZ_DEVFLAG_MITERLIMIT_UNDEFINED = _mupdf.FZ_DEVFLAG_MITERLIMIT_UNDEFINED
  2176. FZ_DEVFLAG_LINEWIDTH_UNDEFINED = _mupdf.FZ_DEVFLAG_LINEWIDTH_UNDEFINED
  2177. FZ_DEVFLAG_BBOX_DEFINED = _mupdf.FZ_DEVFLAG_BBOX_DEFINED
  2178. FZ_DEVFLAG_GRIDFIT_AS_TILED = _mupdf.FZ_DEVFLAG_GRIDFIT_AS_TILED
  2179. FZ_DEVFLAG_DASH_PATTERN_UNDEFINED = _mupdf.FZ_DEVFLAG_DASH_PATTERN_UNDEFINED
  2180. FZ_BLEND_NORMAL = _mupdf.FZ_BLEND_NORMAL
  2181. FZ_BLEND_MULTIPLY = _mupdf.FZ_BLEND_MULTIPLY
  2182. FZ_BLEND_SCREEN = _mupdf.FZ_BLEND_SCREEN
  2183. FZ_BLEND_OVERLAY = _mupdf.FZ_BLEND_OVERLAY
  2184. FZ_BLEND_DARKEN = _mupdf.FZ_BLEND_DARKEN
  2185. FZ_BLEND_LIGHTEN = _mupdf.FZ_BLEND_LIGHTEN
  2186. FZ_BLEND_COLOR_DODGE = _mupdf.FZ_BLEND_COLOR_DODGE
  2187. FZ_BLEND_COLOR_BURN = _mupdf.FZ_BLEND_COLOR_BURN
  2188. FZ_BLEND_HARD_LIGHT = _mupdf.FZ_BLEND_HARD_LIGHT
  2189. FZ_BLEND_SOFT_LIGHT = _mupdf.FZ_BLEND_SOFT_LIGHT
  2190. FZ_BLEND_DIFFERENCE = _mupdf.FZ_BLEND_DIFFERENCE
  2191. FZ_BLEND_EXCLUSION = _mupdf.FZ_BLEND_EXCLUSION
  2192. FZ_BLEND_HUE = _mupdf.FZ_BLEND_HUE
  2193. FZ_BLEND_SATURATION = _mupdf.FZ_BLEND_SATURATION
  2194. FZ_BLEND_COLOR = _mupdf.FZ_BLEND_COLOR
  2195. FZ_BLEND_LUMINOSITY = _mupdf.FZ_BLEND_LUMINOSITY
  2196. FZ_BLEND_MODEMASK = _mupdf.FZ_BLEND_MODEMASK
  2197. FZ_BLEND_ISOLATED = _mupdf.FZ_BLEND_ISOLATED
  2198. FZ_BLEND_KNOCKOUT = _mupdf.FZ_BLEND_KNOCKOUT
  2199. FZ_FUNCTION_MAX_N = _mupdf.FZ_FUNCTION_MAX_N
  2200. FZ_FUNCTION_MAX_M = _mupdf.FZ_FUNCTION_MAX_M
  2201. class fz_function(object):
  2202. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2203. __repr__ = _swig_repr
  2204. storable = property(_mupdf.fz_function_storable_get, _mupdf.fz_function_storable_set)
  2205. size = property(_mupdf.fz_function_size_get, _mupdf.fz_function_size_set)
  2206. m = property(_mupdf.fz_function_m_get, _mupdf.fz_function_m_set)
  2207. n = property(_mupdf.fz_function_n_get, _mupdf.fz_function_n_set)
  2208. eval = property(_mupdf.fz_function_eval_get, _mupdf.fz_function_eval_set)
  2209. def __init__(self):
  2210. _mupdf.fz_function_swiginit(self, _mupdf.new_fz_function())
  2211. __swig_destroy__ = _mupdf.delete_fz_function
  2212. # Register fz_function in _mupdf:
  2213. _mupdf.fz_function_swigregister(fz_function)
  2214. class fz_device_container_stack(object):
  2215. r"""
  2216. The device structure is public to allow devices to be
  2217. implemented outside of fitz.
  2218. Device methods should always be called using e.g.
  2219. fz_fill_path(ctx, dev, ...) rather than
  2220. dev->fill_path(ctx, dev, ...)
  2221. Devices can keep track of containers (clips/masks/groups/tiles)
  2222. as they go to save callers having to do it.
  2223. """
  2224. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2225. __repr__ = _swig_repr
  2226. scissor = property(_mupdf.fz_device_container_stack_scissor_get, _mupdf.fz_device_container_stack_scissor_set)
  2227. type = property(_mupdf.fz_device_container_stack_type_get, _mupdf.fz_device_container_stack_type_set)
  2228. user = property(_mupdf.fz_device_container_stack_user_get, _mupdf.fz_device_container_stack_user_set)
  2229. def __init__(self):
  2230. _mupdf.fz_device_container_stack_swiginit(self, _mupdf.new_fz_device_container_stack())
  2231. __swig_destroy__ = _mupdf.delete_fz_device_container_stack
  2232. # Register fz_device_container_stack in _mupdf:
  2233. _mupdf.fz_device_container_stack_swigregister(fz_device_container_stack)
  2234. fz_device_container_stack_is_clip = _mupdf.fz_device_container_stack_is_clip
  2235. fz_device_container_stack_is_mask = _mupdf.fz_device_container_stack_is_mask
  2236. fz_device_container_stack_is_group = _mupdf.fz_device_container_stack_is_group
  2237. fz_device_container_stack_is_tile = _mupdf.fz_device_container_stack_is_tile
  2238. FZ_STRUCTURE_INVALID = _mupdf.FZ_STRUCTURE_INVALID
  2239. FZ_STRUCTURE_DOCUMENT = _mupdf.FZ_STRUCTURE_DOCUMENT
  2240. FZ_STRUCTURE_PART = _mupdf.FZ_STRUCTURE_PART
  2241. FZ_STRUCTURE_ART = _mupdf.FZ_STRUCTURE_ART
  2242. FZ_STRUCTURE_SECT = _mupdf.FZ_STRUCTURE_SECT
  2243. FZ_STRUCTURE_DIV = _mupdf.FZ_STRUCTURE_DIV
  2244. FZ_STRUCTURE_BLOCKQUOTE = _mupdf.FZ_STRUCTURE_BLOCKQUOTE
  2245. FZ_STRUCTURE_CAPTION = _mupdf.FZ_STRUCTURE_CAPTION
  2246. FZ_STRUCTURE_TOC = _mupdf.FZ_STRUCTURE_TOC
  2247. FZ_STRUCTURE_TOCI = _mupdf.FZ_STRUCTURE_TOCI
  2248. FZ_STRUCTURE_INDEX = _mupdf.FZ_STRUCTURE_INDEX
  2249. FZ_STRUCTURE_NONSTRUCT = _mupdf.FZ_STRUCTURE_NONSTRUCT
  2250. FZ_STRUCTURE_PRIVATE = _mupdf.FZ_STRUCTURE_PRIVATE
  2251. FZ_STRUCTURE_DOCUMENTFRAGMENT = _mupdf.FZ_STRUCTURE_DOCUMENTFRAGMENT
  2252. FZ_STRUCTURE_ASIDE = _mupdf.FZ_STRUCTURE_ASIDE
  2253. FZ_STRUCTURE_TITLE = _mupdf.FZ_STRUCTURE_TITLE
  2254. FZ_STRUCTURE_FENOTE = _mupdf.FZ_STRUCTURE_FENOTE
  2255. FZ_STRUCTURE_SUB = _mupdf.FZ_STRUCTURE_SUB
  2256. FZ_STRUCTURE_P = _mupdf.FZ_STRUCTURE_P
  2257. FZ_STRUCTURE_H = _mupdf.FZ_STRUCTURE_H
  2258. FZ_STRUCTURE_H1 = _mupdf.FZ_STRUCTURE_H1
  2259. FZ_STRUCTURE_H2 = _mupdf.FZ_STRUCTURE_H2
  2260. FZ_STRUCTURE_H3 = _mupdf.FZ_STRUCTURE_H3
  2261. FZ_STRUCTURE_H4 = _mupdf.FZ_STRUCTURE_H4
  2262. FZ_STRUCTURE_H5 = _mupdf.FZ_STRUCTURE_H5
  2263. FZ_STRUCTURE_H6 = _mupdf.FZ_STRUCTURE_H6
  2264. FZ_STRUCTURE_LIST = _mupdf.FZ_STRUCTURE_LIST
  2265. FZ_STRUCTURE_LISTITEM = _mupdf.FZ_STRUCTURE_LISTITEM
  2266. FZ_STRUCTURE_LABEL = _mupdf.FZ_STRUCTURE_LABEL
  2267. FZ_STRUCTURE_LISTBODY = _mupdf.FZ_STRUCTURE_LISTBODY
  2268. FZ_STRUCTURE_TABLE = _mupdf.FZ_STRUCTURE_TABLE
  2269. FZ_STRUCTURE_TR = _mupdf.FZ_STRUCTURE_TR
  2270. FZ_STRUCTURE_TH = _mupdf.FZ_STRUCTURE_TH
  2271. FZ_STRUCTURE_TD = _mupdf.FZ_STRUCTURE_TD
  2272. FZ_STRUCTURE_THEAD = _mupdf.FZ_STRUCTURE_THEAD
  2273. FZ_STRUCTURE_TBODY = _mupdf.FZ_STRUCTURE_TBODY
  2274. FZ_STRUCTURE_TFOOT = _mupdf.FZ_STRUCTURE_TFOOT
  2275. FZ_STRUCTURE_SPAN = _mupdf.FZ_STRUCTURE_SPAN
  2276. FZ_STRUCTURE_QUOTE = _mupdf.FZ_STRUCTURE_QUOTE
  2277. FZ_STRUCTURE_NOTE = _mupdf.FZ_STRUCTURE_NOTE
  2278. FZ_STRUCTURE_REFERENCE = _mupdf.FZ_STRUCTURE_REFERENCE
  2279. FZ_STRUCTURE_BIBENTRY = _mupdf.FZ_STRUCTURE_BIBENTRY
  2280. FZ_STRUCTURE_CODE = _mupdf.FZ_STRUCTURE_CODE
  2281. FZ_STRUCTURE_LINK = _mupdf.FZ_STRUCTURE_LINK
  2282. FZ_STRUCTURE_ANNOT = _mupdf.FZ_STRUCTURE_ANNOT
  2283. FZ_STRUCTURE_EM = _mupdf.FZ_STRUCTURE_EM
  2284. FZ_STRUCTURE_STRONG = _mupdf.FZ_STRUCTURE_STRONG
  2285. FZ_STRUCTURE_RUBY = _mupdf.FZ_STRUCTURE_RUBY
  2286. FZ_STRUCTURE_RB = _mupdf.FZ_STRUCTURE_RB
  2287. FZ_STRUCTURE_RT = _mupdf.FZ_STRUCTURE_RT
  2288. FZ_STRUCTURE_RP = _mupdf.FZ_STRUCTURE_RP
  2289. FZ_STRUCTURE_WARICHU = _mupdf.FZ_STRUCTURE_WARICHU
  2290. FZ_STRUCTURE_WT = _mupdf.FZ_STRUCTURE_WT
  2291. FZ_STRUCTURE_WP = _mupdf.FZ_STRUCTURE_WP
  2292. FZ_STRUCTURE_FIGURE = _mupdf.FZ_STRUCTURE_FIGURE
  2293. FZ_STRUCTURE_FORMULA = _mupdf.FZ_STRUCTURE_FORMULA
  2294. FZ_STRUCTURE_FORM = _mupdf.FZ_STRUCTURE_FORM
  2295. FZ_STRUCTURE_ARTIFACT = _mupdf.FZ_STRUCTURE_ARTIFACT
  2296. FZ_METATEXT_ACTUALTEXT = _mupdf.FZ_METATEXT_ACTUALTEXT
  2297. FZ_METATEXT_ALT = _mupdf.FZ_METATEXT_ALT
  2298. FZ_METATEXT_ABBREVIATION = _mupdf.FZ_METATEXT_ABBREVIATION
  2299. FZ_METATEXT_TITLE = _mupdf.FZ_METATEXT_TITLE
  2300. class fz_device(object):
  2301. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2302. __repr__ = _swig_repr
  2303. refs = property(_mupdf.fz_device_refs_get, _mupdf.fz_device_refs_set)
  2304. hints = property(_mupdf.fz_device_hints_get, _mupdf.fz_device_hints_set)
  2305. flags = property(_mupdf.fz_device_flags_get, _mupdf.fz_device_flags_set)
  2306. close_device = property(_mupdf.fz_device_close_device_get, _mupdf.fz_device_close_device_set)
  2307. drop_device = property(_mupdf.fz_device_drop_device_get, _mupdf.fz_device_drop_device_set)
  2308. fill_path = property(_mupdf.fz_device_fill_path_get, _mupdf.fz_device_fill_path_set)
  2309. stroke_path = property(_mupdf.fz_device_stroke_path_get, _mupdf.fz_device_stroke_path_set)
  2310. clip_path = property(_mupdf.fz_device_clip_path_get, _mupdf.fz_device_clip_path_set)
  2311. clip_stroke_path = property(_mupdf.fz_device_clip_stroke_path_get, _mupdf.fz_device_clip_stroke_path_set)
  2312. fill_text = property(_mupdf.fz_device_fill_text_get, _mupdf.fz_device_fill_text_set)
  2313. stroke_text = property(_mupdf.fz_device_stroke_text_get, _mupdf.fz_device_stroke_text_set)
  2314. clip_text = property(_mupdf.fz_device_clip_text_get, _mupdf.fz_device_clip_text_set)
  2315. clip_stroke_text = property(_mupdf.fz_device_clip_stroke_text_get, _mupdf.fz_device_clip_stroke_text_set)
  2316. ignore_text = property(_mupdf.fz_device_ignore_text_get, _mupdf.fz_device_ignore_text_set)
  2317. fill_shade = property(_mupdf.fz_device_fill_shade_get, _mupdf.fz_device_fill_shade_set)
  2318. fill_image = property(_mupdf.fz_device_fill_image_get, _mupdf.fz_device_fill_image_set)
  2319. fill_image_mask = property(_mupdf.fz_device_fill_image_mask_get, _mupdf.fz_device_fill_image_mask_set)
  2320. clip_image_mask = property(_mupdf.fz_device_clip_image_mask_get, _mupdf.fz_device_clip_image_mask_set)
  2321. pop_clip = property(_mupdf.fz_device_pop_clip_get, _mupdf.fz_device_pop_clip_set)
  2322. begin_mask = property(_mupdf.fz_device_begin_mask_get, _mupdf.fz_device_begin_mask_set)
  2323. end_mask = property(_mupdf.fz_device_end_mask_get, _mupdf.fz_device_end_mask_set)
  2324. begin_group = property(_mupdf.fz_device_begin_group_get, _mupdf.fz_device_begin_group_set)
  2325. end_group = property(_mupdf.fz_device_end_group_get, _mupdf.fz_device_end_group_set)
  2326. begin_tile = property(_mupdf.fz_device_begin_tile_get, _mupdf.fz_device_begin_tile_set)
  2327. end_tile = property(_mupdf.fz_device_end_tile_get, _mupdf.fz_device_end_tile_set)
  2328. render_flags = property(_mupdf.fz_device_render_flags_get, _mupdf.fz_device_render_flags_set)
  2329. set_default_colorspaces = property(_mupdf.fz_device_set_default_colorspaces_get, _mupdf.fz_device_set_default_colorspaces_set)
  2330. begin_layer = property(_mupdf.fz_device_begin_layer_get, _mupdf.fz_device_begin_layer_set)
  2331. end_layer = property(_mupdf.fz_device_end_layer_get, _mupdf.fz_device_end_layer_set)
  2332. begin_structure = property(_mupdf.fz_device_begin_structure_get, _mupdf.fz_device_begin_structure_set)
  2333. end_structure = property(_mupdf.fz_device_end_structure_get, _mupdf.fz_device_end_structure_set)
  2334. begin_metatext = property(_mupdf.fz_device_begin_metatext_get, _mupdf.fz_device_begin_metatext_set)
  2335. end_metatext = property(_mupdf.fz_device_end_metatext_get, _mupdf.fz_device_end_metatext_set)
  2336. d1_rect = property(_mupdf.fz_device_d1_rect_get, _mupdf.fz_device_d1_rect_set)
  2337. container_len = property(_mupdf.fz_device_container_len_get, _mupdf.fz_device_container_len_set)
  2338. container_cap = property(_mupdf.fz_device_container_cap_get, _mupdf.fz_device_container_cap_set)
  2339. container = property(_mupdf.fz_device_container_get, _mupdf.fz_device_container_set)
  2340. def __init__(self):
  2341. _mupdf.fz_device_swiginit(self, _mupdf.new_fz_device())
  2342. __swig_destroy__ = _mupdf.delete_fz_device
  2343. # Register fz_device in _mupdf:
  2344. _mupdf.fz_device_swigregister(fz_device)
  2345. FZ_DONT_INTERPOLATE_IMAGES = _mupdf.FZ_DONT_INTERPOLATE_IMAGES
  2346. FZ_NO_CACHE = _mupdf.FZ_NO_CACHE
  2347. FZ_DONT_DECODE_IMAGES = _mupdf.FZ_DONT_DECODE_IMAGES
  2348. class fz_cookie(object):
  2349. r"""
  2350. Cookie support - simple communication channel between app/library.
  2351. Provide two-way communication between application and library.
  2352. Intended for multi-threaded applications where one thread is
  2353. rendering pages and another thread wants to read progress
  2354. feedback or abort a job that takes a long time to finish. The
  2355. communication is unsynchronized without locking.
  2356. abort: The application should set this field to 0 before
  2357. calling fz_run_page to render a page. At any point when the
  2358. page is being rendered the application my set this field to 1
  2359. which will cause the rendering to finish soon. This field is
  2360. checked periodically when the page is rendered, but exactly
  2361. when is not known, therefore there is no upper bound on
  2362. exactly when the rendering will abort. If the application
  2363. did not provide a set of locks to fz_new_context, it must also
  2364. await the completion of fz_run_page before issuing another
  2365. call to fz_run_page. Note that once the application has set
  2366. this field to 1 after it called fz_run_page it may not change
  2367. the value again.
  2368. progress: Communicates rendering progress back to the
  2369. application and is read only. Increments as a page is being
  2370. rendered. The value starts out at 0 and is limited to less
  2371. than or equal to progress_max, unless progress_max is -1.
  2372. progress_max: Communicates the known upper bound of rendering
  2373. back to the application and is read only. The maximum value
  2374. that the progress field may take. If there is no known upper
  2375. bound on how long the rendering may take this value is -1 and
  2376. progress is not limited. Note that the value of progress_max
  2377. may change from -1 to a positive value once an upper bound is
  2378. known, so take this into consideration when comparing the
  2379. value of progress to that of progress_max.
  2380. errors: count of errors during current rendering.
  2381. incomplete: Initially should be set to 0. Will be set to
  2382. non-zero if a TRYLATER error is thrown during rendering.
  2383. """
  2384. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2385. __repr__ = _swig_repr
  2386. abort = property(_mupdf.fz_cookie_abort_get, _mupdf.fz_cookie_abort_set)
  2387. progress = property(_mupdf.fz_cookie_progress_get, _mupdf.fz_cookie_progress_set)
  2388. progress_max = property(_mupdf.fz_cookie_progress_max_get, _mupdf.fz_cookie_progress_max_set)
  2389. errors = property(_mupdf.fz_cookie_errors_get, _mupdf.fz_cookie_errors_set)
  2390. incomplete = property(_mupdf.fz_cookie_incomplete_get, _mupdf.fz_cookie_incomplete_set)
  2391. def __init__(self):
  2392. _mupdf.fz_cookie_swiginit(self, _mupdf.new_fz_cookie())
  2393. __swig_destroy__ = _mupdf.delete_fz_cookie
  2394. # Register fz_cookie in _mupdf:
  2395. _mupdf.fz_cookie_swigregister(fz_cookie)
  2396. FZ_TEST_OPT_IMAGES = _mupdf.FZ_TEST_OPT_IMAGES
  2397. FZ_TEST_OPT_SHADINGS = _mupdf.FZ_TEST_OPT_SHADINGS
  2398. class fz_draw_options(object):
  2399. r"""
  2400. struct fz_draw_options: Options for creating a pixmap and draw
  2401. device.
  2402. """
  2403. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2404. __repr__ = _swig_repr
  2405. rotate = property(_mupdf.fz_draw_options_rotate_get, _mupdf.fz_draw_options_rotate_set)
  2406. x_resolution = property(_mupdf.fz_draw_options_x_resolution_get, _mupdf.fz_draw_options_x_resolution_set)
  2407. y_resolution = property(_mupdf.fz_draw_options_y_resolution_get, _mupdf.fz_draw_options_y_resolution_set)
  2408. width = property(_mupdf.fz_draw_options_width_get, _mupdf.fz_draw_options_width_set)
  2409. height = property(_mupdf.fz_draw_options_height_get, _mupdf.fz_draw_options_height_set)
  2410. colorspace = property(_mupdf.fz_draw_options_colorspace_get, _mupdf.fz_draw_options_colorspace_set)
  2411. alpha = property(_mupdf.fz_draw_options_alpha_get, _mupdf.fz_draw_options_alpha_set)
  2412. graphics = property(_mupdf.fz_draw_options_graphics_get, _mupdf.fz_draw_options_graphics_set)
  2413. text = property(_mupdf.fz_draw_options_text_get, _mupdf.fz_draw_options_text_set)
  2414. def __init__(self):
  2415. _mupdf.fz_draw_options_swiginit(self, _mupdf.new_fz_draw_options())
  2416. __swig_destroy__ = _mupdf.delete_fz_draw_options
  2417. # Register fz_draw_options in _mupdf:
  2418. _mupdf.fz_draw_options_swigregister(fz_draw_options)
  2419. class fz_layout_char(object):
  2420. r"""Simple text layout (for use with annotation editing primarily)."""
  2421. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2422. __repr__ = _swig_repr
  2423. x = property(_mupdf.fz_layout_char_x_get, _mupdf.fz_layout_char_x_set)
  2424. advance = property(_mupdf.fz_layout_char_advance_get, _mupdf.fz_layout_char_advance_set)
  2425. p = property(_mupdf.fz_layout_char_p_get, _mupdf.fz_layout_char_p_set)
  2426. next = property(_mupdf.fz_layout_char_next_get, _mupdf.fz_layout_char_next_set)
  2427. def __init__(self):
  2428. _mupdf.fz_layout_char_swiginit(self, _mupdf.new_fz_layout_char())
  2429. __swig_destroy__ = _mupdf.delete_fz_layout_char
  2430. # Register fz_layout_char in _mupdf:
  2431. _mupdf.fz_layout_char_swigregister(fz_layout_char)
  2432. class fz_layout_line(object):
  2433. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2434. __repr__ = _swig_repr
  2435. x = property(_mupdf.fz_layout_line_x_get, _mupdf.fz_layout_line_x_set)
  2436. y = property(_mupdf.fz_layout_line_y_get, _mupdf.fz_layout_line_y_set)
  2437. font_size = property(_mupdf.fz_layout_line_font_size_get, _mupdf.fz_layout_line_font_size_set)
  2438. p = property(_mupdf.fz_layout_line_p_get, _mupdf.fz_layout_line_p_set)
  2439. text = property(_mupdf.fz_layout_line_text_get, _mupdf.fz_layout_line_text_set)
  2440. next = property(_mupdf.fz_layout_line_next_get, _mupdf.fz_layout_line_next_set)
  2441. def __init__(self):
  2442. _mupdf.fz_layout_line_swiginit(self, _mupdf.new_fz_layout_line())
  2443. __swig_destroy__ = _mupdf.delete_fz_layout_line
  2444. # Register fz_layout_line in _mupdf:
  2445. _mupdf.fz_layout_line_swigregister(fz_layout_line)
  2446. class fz_layout_block(object):
  2447. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2448. __repr__ = _swig_repr
  2449. pool = property(_mupdf.fz_layout_block_pool_get, _mupdf.fz_layout_block_pool_set)
  2450. matrix = property(_mupdf.fz_layout_block_matrix_get, _mupdf.fz_layout_block_matrix_set)
  2451. inv_matrix = property(_mupdf.fz_layout_block_inv_matrix_get, _mupdf.fz_layout_block_inv_matrix_set)
  2452. head = property(_mupdf.fz_layout_block_head_get, _mupdf.fz_layout_block_head_set)
  2453. tailp = property(_mupdf.fz_layout_block_tailp_get, _mupdf.fz_layout_block_tailp_set)
  2454. text_tailp = property(_mupdf.fz_layout_block_text_tailp_get, _mupdf.fz_layout_block_text_tailp_set)
  2455. def __init__(self):
  2456. _mupdf.fz_layout_block_swiginit(self, _mupdf.new_fz_layout_block())
  2457. __swig_destroy__ = _mupdf.delete_fz_layout_block
  2458. # Register fz_layout_block in _mupdf:
  2459. _mupdf.fz_layout_block_swigregister(fz_layout_block)
  2460. FZ_STEXT_PRESERVE_LIGATURES = _mupdf.FZ_STEXT_PRESERVE_LIGATURES
  2461. FZ_STEXT_PRESERVE_WHITESPACE = _mupdf.FZ_STEXT_PRESERVE_WHITESPACE
  2462. FZ_STEXT_PRESERVE_IMAGES = _mupdf.FZ_STEXT_PRESERVE_IMAGES
  2463. FZ_STEXT_INHIBIT_SPACES = _mupdf.FZ_STEXT_INHIBIT_SPACES
  2464. FZ_STEXT_DEHYPHENATE = _mupdf.FZ_STEXT_DEHYPHENATE
  2465. FZ_STEXT_PRESERVE_SPANS = _mupdf.FZ_STEXT_PRESERVE_SPANS
  2466. FZ_STEXT_CLIP = _mupdf.FZ_STEXT_CLIP
  2467. FZ_STEXT_USE_CID_FOR_UNKNOWN_UNICODE = _mupdf.FZ_STEXT_USE_CID_FOR_UNKNOWN_UNICODE
  2468. FZ_STEXT_COLLECT_STRUCTURE = _mupdf.FZ_STEXT_COLLECT_STRUCTURE
  2469. FZ_STEXT_ACCURATE_BBOXES = _mupdf.FZ_STEXT_ACCURATE_BBOXES
  2470. FZ_STEXT_COLLECT_VECTORS = _mupdf.FZ_STEXT_COLLECT_VECTORS
  2471. FZ_STEXT_IGNORE_ACTUALTEXT = _mupdf.FZ_STEXT_IGNORE_ACTUALTEXT
  2472. FZ_STEXT_SEGMENT = _mupdf.FZ_STEXT_SEGMENT
  2473. FZ_STEXT_PARAGRAPH_BREAK = _mupdf.FZ_STEXT_PARAGRAPH_BREAK
  2474. FZ_STEXT_TABLE_HUNT = _mupdf.FZ_STEXT_TABLE_HUNT
  2475. FZ_STEXT_COLLECT_STYLES = _mupdf.FZ_STEXT_COLLECT_STYLES
  2476. FZ_STEXT_USE_GID_FOR_UNKNOWN_UNICODE = _mupdf.FZ_STEXT_USE_GID_FOR_UNKNOWN_UNICODE
  2477. FZ_STEXT_CLIP_RECT = _mupdf.FZ_STEXT_CLIP_RECT
  2478. FZ_STEXT_ACCURATE_ASCENDERS = _mupdf.FZ_STEXT_ACCURATE_ASCENDERS
  2479. FZ_STEXT_ACCURATE_SIDE_BEARINGS = _mupdf.FZ_STEXT_ACCURATE_SIDE_BEARINGS
  2480. FZ_STEXT_MEDIABOX_CLIP = _mupdf.FZ_STEXT_MEDIABOX_CLIP
  2481. class fz_stext_page_details(object):
  2482. r"""
  2483. A note on stext's handling of structure.
  2484. A PDF document can contain a structure tree. This gives the
  2485. structure of a document in its entirety as a tree. e.g.
  2486. Tree MCID INDEX
  2487. -------------------------------------
  2488. DOC 0 0
  2489. TOC 1 0
  2490. TOC_ITEM 2 0
  2491. TOC_ITEM 3 1
  2492. TOC_ITEM 4 2
  2493. ...
  2494. STORY 100 1
  2495. SECTION 101 0
  2496. HEADING 102 0
  2497. SUBSECTION 103 1
  2498. PARAGRAPH 104 0
  2499. PARAGRAPH 105 1
  2500. PARAGRAPH 106 2
  2501. SUBSECTION 107 2
  2502. PARAGRAPH 108 0
  2503. PARAGRAPH 109 1
  2504. PARAGRAPH 110 2
  2505. ...
  2506. SECTION 200 1
  2507. ...
  2508. Each different section of the tree is identified as part of an
  2509. MCID by a number (this is a slight simplification, but makes the
  2510. explanation easier).
  2511. The PDF document contains markings that say "Entering MCID 0"
  2512. and "Leaving MCID 0". Any content within that region is therefore
  2513. identified as appearing in that particular structural region.
  2514. This means that content can be sent in the document in a different
  2515. order to which it appears 'logically' in the tree.
  2516. MuPDF converts this tree form into a nested series of calls to
  2517. begin_structure and end_structure.
  2518. For instance, if the document started out with MCID 100, then
  2519. we'd send:
  2520. begin_structure("DOC")
  2521. begin_structure("STORY")
  2522. The problem with this is that if we send:
  2523. begin_structure("DOC")
  2524. begin_structure("STORY")
  2525. begin_structure("SECTION")
  2526. begin_structure("SUBSECTION")
  2527. or
  2528. begin_structure("DOC")
  2529. begin_structure("STORY")
  2530. begin_structure("SECTION")
  2531. begin_structure("HEADING")
  2532. How do I know what order the SECTION and HEADING should appear in?
  2533. Are they even in the same STORY? Or the same DOC?
  2534. Accordingly, every begin_structure is accompanied not only with the
  2535. node type, but with an index. The index is the number of this node
  2536. within this level of the tree. Hence:
  2537. begin_structure("DOC", 0)
  2538. begin_structure("STORY", 0)
  2539. begin_structure("SECTION", 0)
  2540. begin_structure("HEADING", 0)
  2541. and
  2542. begin_structure("DOC", 0)
  2543. begin_structure("STORY", 0)
  2544. begin_structure("SECTION", 0)
  2545. begin_structure("SUBSECTION", 1)
  2546. are now unambiguous in their describing of the tree.
  2547. MuPDF automatically sends the minimal end_structure/begin_structure
  2548. pairs to move us between nodes in the tree.
  2549. In order to accommodate this information within the structured text
  2550. data structures an additional block type is used. Previously a
  2551. "page" was just a list of blocks, either text or images. e.g.
  2552. [BLOCK:TEXT] <-> [BLOCK:IMG] <-> [BLOCK:TEXT] <-> [BLOCK:TEXT] ...
  2553. We now introduce a new type of block, STRUCT, that turns this into
  2554. a tree:
  2555. [BLOCK:TEXT] <-> [BLOCK:STRUCT(IDX=0)] <-> [BLOCK:TEXT] <-> ...
  2556. /|
  2557. [STRUCT:TYPE=DOC] <----
  2558. |
  2559. [BLOCK:TEXT] <-> [BLOCK:STRUCT(IDX=0)] <-> [BLOCK:TEXT] <-> ...
  2560. /|
  2561. [STRUCT:TYPE=STORY] <--
  2562. |
  2563. ...
  2564. Rather than doing a simple linear traversal of the list to extract
  2565. the logical data, a caller now has to do a depth-first traversal.
  2566. """
  2567. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2568. __repr__ = _swig_repr
  2569. mediabox = property(_mupdf.fz_stext_page_details_mediabox_get, _mupdf.fz_stext_page_details_mediabox_set)
  2570. chapter = property(_mupdf.fz_stext_page_details_chapter_get, _mupdf.fz_stext_page_details_chapter_set)
  2571. page = property(_mupdf.fz_stext_page_details_page_get, _mupdf.fz_stext_page_details_page_set)
  2572. def __init__(self):
  2573. _mupdf.fz_stext_page_details_swiginit(self, _mupdf.new_fz_stext_page_details())
  2574. __swig_destroy__ = _mupdf.delete_fz_stext_page_details
  2575. # Register fz_stext_page_details in _mupdf:
  2576. _mupdf.fz_stext_page_details_swigregister(fz_stext_page_details)
  2577. class fz_stext_page(object):
  2578. r"""
  2579. A text page is a list of blocks, together with an overall
  2580. bounding box.
  2581. The name of this structure is now slightly out of date. It
  2582. should really be fz_stext_document, cos it can contain
  2583. content from multiple pages.
  2584. """
  2585. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2586. __repr__ = _swig_repr
  2587. refs = property(_mupdf.fz_stext_page_refs_get, _mupdf.fz_stext_page_refs_set)
  2588. pool = property(_mupdf.fz_stext_page_pool_get, _mupdf.fz_stext_page_pool_set)
  2589. mediabox = property(_mupdf.fz_stext_page_mediabox_get, _mupdf.fz_stext_page_mediabox_set)
  2590. first_block = property(_mupdf.fz_stext_page_first_block_get, _mupdf.fz_stext_page_first_block_set)
  2591. last_block = property(_mupdf.fz_stext_page_last_block_get, _mupdf.fz_stext_page_last_block_set)
  2592. last_struct = property(_mupdf.fz_stext_page_last_struct_get, _mupdf.fz_stext_page_last_struct_set)
  2593. id_list = property(_mupdf.fz_stext_page_id_list_get, _mupdf.fz_stext_page_id_list_set)
  2594. def __init__(self):
  2595. _mupdf.fz_stext_page_swiginit(self, _mupdf.new_fz_stext_page())
  2596. __swig_destroy__ = _mupdf.delete_fz_stext_page
  2597. # Register fz_stext_page in _mupdf:
  2598. _mupdf.fz_stext_page_swigregister(fz_stext_page)
  2599. FZ_STEXT_BLOCK_TEXT = _mupdf.FZ_STEXT_BLOCK_TEXT
  2600. FZ_STEXT_BLOCK_IMAGE = _mupdf.FZ_STEXT_BLOCK_IMAGE
  2601. FZ_STEXT_BLOCK_STRUCT = _mupdf.FZ_STEXT_BLOCK_STRUCT
  2602. FZ_STEXT_BLOCK_VECTOR = _mupdf.FZ_STEXT_BLOCK_VECTOR
  2603. FZ_STEXT_BLOCK_GRID = _mupdf.FZ_STEXT_BLOCK_GRID
  2604. FZ_STEXT_TEXT_JUSTIFY_UNKNOWN = _mupdf.FZ_STEXT_TEXT_JUSTIFY_UNKNOWN
  2605. FZ_STEXT_TEXT_JUSTIFY_LEFT = _mupdf.FZ_STEXT_TEXT_JUSTIFY_LEFT
  2606. FZ_STEXT_TEXT_JUSTIFY_CENTRE = _mupdf.FZ_STEXT_TEXT_JUSTIFY_CENTRE
  2607. FZ_STEXT_TEXT_JUSTIFY_RIGHT = _mupdf.FZ_STEXT_TEXT_JUSTIFY_RIGHT
  2608. FZ_STEXT_TEXT_JUSTIFY_FULL = _mupdf.FZ_STEXT_TEXT_JUSTIFY_FULL
  2609. FZ_STEXT_VECTOR_IS_STROKED = _mupdf.FZ_STEXT_VECTOR_IS_STROKED
  2610. FZ_STEXT_VECTOR_IS_RECTANGLE = _mupdf.FZ_STEXT_VECTOR_IS_RECTANGLE
  2611. FZ_STEXT_VECTOR_CONTINUES = _mupdf.FZ_STEXT_VECTOR_CONTINUES
  2612. class fz_stext_block(object):
  2613. r"""
  2614. A text block is a list of lines of text (typically a paragraph),
  2615. or an image.
  2616. """
  2617. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2618. __repr__ = _swig_repr
  2619. type = property(_mupdf.fz_stext_block_type_get, _mupdf.fz_stext_block_type_set)
  2620. id = property(_mupdf.fz_stext_block_id_get, _mupdf.fz_stext_block_id_set)
  2621. bbox = property(_mupdf.fz_stext_block_bbox_get, _mupdf.fz_stext_block_bbox_set)
  2622. prev = property(_mupdf.fz_stext_block_prev_get, _mupdf.fz_stext_block_prev_set)
  2623. next = property(_mupdf.fz_stext_block_next_get, _mupdf.fz_stext_block_next_set)
  2624. def __init__(self):
  2625. _mupdf.fz_stext_block_swiginit(self, _mupdf.new_fz_stext_block())
  2626. __swig_destroy__ = _mupdf.delete_fz_stext_block
  2627. # Register fz_stext_block in _mupdf:
  2628. _mupdf.fz_stext_block_swigregister(fz_stext_block)
  2629. class fz_stext_line(object):
  2630. r"""A text line is a list of characters that share a common baseline."""
  2631. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2632. __repr__ = _swig_repr
  2633. wmode = property(_mupdf.fz_stext_line_wmode_get, _mupdf.fz_stext_line_wmode_set)
  2634. dir = property(_mupdf.fz_stext_line_dir_get, _mupdf.fz_stext_line_dir_set)
  2635. bbox = property(_mupdf.fz_stext_line_bbox_get, _mupdf.fz_stext_line_bbox_set)
  2636. first_char = property(_mupdf.fz_stext_line_first_char_get, _mupdf.fz_stext_line_first_char_set)
  2637. last_char = property(_mupdf.fz_stext_line_last_char_get, _mupdf.fz_stext_line_last_char_set)
  2638. prev = property(_mupdf.fz_stext_line_prev_get, _mupdf.fz_stext_line_prev_set)
  2639. next = property(_mupdf.fz_stext_line_next_get, _mupdf.fz_stext_line_next_set)
  2640. def __init__(self):
  2641. _mupdf.fz_stext_line_swiginit(self, _mupdf.new_fz_stext_line())
  2642. __swig_destroy__ = _mupdf.delete_fz_stext_line
  2643. # Register fz_stext_line in _mupdf:
  2644. _mupdf.fz_stext_line_swigregister(fz_stext_line)
  2645. class fz_stext_char(object):
  2646. r"""
  2647. A text char is a unicode character, the style in which is
  2648. appears, and the point at which it is positioned.
  2649. """
  2650. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2651. __repr__ = _swig_repr
  2652. c = property(_mupdf.fz_stext_char_c_get, _mupdf.fz_stext_char_c_set)
  2653. bidi = property(_mupdf.fz_stext_char_bidi_get, _mupdf.fz_stext_char_bidi_set)
  2654. flags = property(_mupdf.fz_stext_char_flags_get, _mupdf.fz_stext_char_flags_set)
  2655. argb = property(_mupdf.fz_stext_char_argb_get, _mupdf.fz_stext_char_argb_set)
  2656. origin = property(_mupdf.fz_stext_char_origin_get, _mupdf.fz_stext_char_origin_set)
  2657. quad = property(_mupdf.fz_stext_char_quad_get, _mupdf.fz_stext_char_quad_set)
  2658. size = property(_mupdf.fz_stext_char_size_get, _mupdf.fz_stext_char_size_set)
  2659. font = property(_mupdf.fz_stext_char_font_get, _mupdf.fz_stext_char_font_set)
  2660. next = property(_mupdf.fz_stext_char_next_get, _mupdf.fz_stext_char_next_set)
  2661. def __init__(self):
  2662. _mupdf.fz_stext_char_swiginit(self, _mupdf.new_fz_stext_char())
  2663. __swig_destroy__ = _mupdf.delete_fz_stext_char
  2664. # Register fz_stext_char in _mupdf:
  2665. _mupdf.fz_stext_char_swigregister(fz_stext_char)
  2666. FZ_STEXT_STRIKEOUT = _mupdf.FZ_STEXT_STRIKEOUT
  2667. FZ_STEXT_UNDERLINE = _mupdf.FZ_STEXT_UNDERLINE
  2668. FZ_STEXT_SYNTHETIC = _mupdf.FZ_STEXT_SYNTHETIC
  2669. FZ_STEXT_BOLD = _mupdf.FZ_STEXT_BOLD
  2670. FZ_STEXT_FILLED = _mupdf.FZ_STEXT_FILLED
  2671. FZ_STEXT_STROKED = _mupdf.FZ_STEXT_STROKED
  2672. FZ_STEXT_CLIPPED = _mupdf.FZ_STEXT_CLIPPED
  2673. FZ_STEXT_UNICODE_IS_CID = _mupdf.FZ_STEXT_UNICODE_IS_CID
  2674. FZ_STEXT_UNICODE_IS_GID = _mupdf.FZ_STEXT_UNICODE_IS_GID
  2675. class fz_stext_struct(object):
  2676. r"""
  2677. When we are collecting the structure information from
  2678. PDF structure trees/tags, we end up with a tree of
  2679. nodes. The structure should be walked in depth-first
  2680. traversal order to extract the content.
  2681. An fz_stext_struct pointer can be NULL to indicate that
  2682. we know there is a child there within the complete tree,
  2683. but we don't know what it is yet.
  2684. """
  2685. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2686. __repr__ = _swig_repr
  2687. up = property(_mupdf.fz_stext_struct_up_get, _mupdf.fz_stext_struct_up_set)
  2688. parent = property(_mupdf.fz_stext_struct_parent_get, _mupdf.fz_stext_struct_parent_set)
  2689. first_block = property(_mupdf.fz_stext_struct_first_block_get, _mupdf.fz_stext_struct_first_block_set)
  2690. last_block = property(_mupdf.fz_stext_struct_last_block_get, _mupdf.fz_stext_struct_last_block_set)
  2691. standard = property(_mupdf.fz_stext_struct_standard_get, _mupdf.fz_stext_struct_standard_set)
  2692. raw = property(_mupdf.fz_stext_struct_raw_get, _mupdf.fz_stext_struct_raw_set)
  2693. def __init__(self):
  2694. _mupdf.fz_stext_struct_swiginit(self, _mupdf.new_fz_stext_struct())
  2695. __swig_destroy__ = _mupdf.delete_fz_stext_struct
  2696. # Register fz_stext_struct in _mupdf:
  2697. _mupdf.fz_stext_struct_swigregister(fz_stext_struct)
  2698. class fz_stext_grid_positions(object):
  2699. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2700. __repr__ = _swig_repr
  2701. len = property(_mupdf.fz_stext_grid_positions_len_get, _mupdf.fz_stext_grid_positions_len_set)
  2702. max_uncertainty = property(_mupdf.fz_stext_grid_positions_max_uncertainty_get, _mupdf.fz_stext_grid_positions_max_uncertainty_set)
  2703. def __init__(self):
  2704. _mupdf.fz_stext_grid_positions_swiginit(self, _mupdf.new_fz_stext_grid_positions())
  2705. __swig_destroy__ = _mupdf.delete_fz_stext_grid_positions
  2706. # Register fz_stext_grid_positions in _mupdf:
  2707. _mupdf.fz_stext_grid_positions_swigregister(fz_stext_grid_positions)
  2708. FZ_SELECT_CHARS = _mupdf.FZ_SELECT_CHARS
  2709. FZ_SELECT_WORDS = _mupdf.FZ_SELECT_WORDS
  2710. FZ_SELECT_LINES = _mupdf.FZ_SELECT_LINES
  2711. class fz_stext_options(object):
  2712. r"""Options for creating structured text."""
  2713. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2714. __repr__ = _swig_repr
  2715. flags = property(_mupdf.fz_stext_options_flags_get, _mupdf.fz_stext_options_flags_set)
  2716. scale = property(_mupdf.fz_stext_options_scale_get, _mupdf.fz_stext_options_scale_set)
  2717. clip = property(_mupdf.fz_stext_options_clip_get, _mupdf.fz_stext_options_clip_set)
  2718. def __init__(self):
  2719. _mupdf.fz_stext_options_swiginit(self, _mupdf.new_fz_stext_options())
  2720. __swig_destroy__ = _mupdf.delete_fz_stext_options
  2721. # Register fz_stext_options in _mupdf:
  2722. _mupdf.fz_stext_options_swigregister(fz_stext_options)
  2723. class fz_stext_page_block_iterator(object):
  2724. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2725. __repr__ = _swig_repr
  2726. page = property(_mupdf.fz_stext_page_block_iterator_page_get, _mupdf.fz_stext_page_block_iterator_page_set)
  2727. pos = property(_mupdf.fz_stext_page_block_iterator_pos_get, _mupdf.fz_stext_page_block_iterator_pos_set)
  2728. parent = property(_mupdf.fz_stext_page_block_iterator_parent_get, _mupdf.fz_stext_page_block_iterator_parent_set)
  2729. def __init__(self):
  2730. _mupdf.fz_stext_page_block_iterator_swiginit(self, _mupdf.new_fz_stext_page_block_iterator())
  2731. __swig_destroy__ = _mupdf.delete_fz_stext_page_block_iterator
  2732. # Register fz_stext_page_block_iterator in _mupdf:
  2733. _mupdf.fz_stext_page_block_iterator_swigregister(fz_stext_page_block_iterator)
  2734. FZ_TRANSITION_NONE = _mupdf.FZ_TRANSITION_NONE
  2735. FZ_TRANSITION_SPLIT = _mupdf.FZ_TRANSITION_SPLIT
  2736. FZ_TRANSITION_BLINDS = _mupdf.FZ_TRANSITION_BLINDS
  2737. FZ_TRANSITION_BOX = _mupdf.FZ_TRANSITION_BOX
  2738. FZ_TRANSITION_WIPE = _mupdf.FZ_TRANSITION_WIPE
  2739. FZ_TRANSITION_DISSOLVE = _mupdf.FZ_TRANSITION_DISSOLVE
  2740. FZ_TRANSITION_GLITTER = _mupdf.FZ_TRANSITION_GLITTER
  2741. FZ_TRANSITION_FLY = _mupdf.FZ_TRANSITION_FLY
  2742. FZ_TRANSITION_PUSH = _mupdf.FZ_TRANSITION_PUSH
  2743. FZ_TRANSITION_COVER = _mupdf.FZ_TRANSITION_COVER
  2744. FZ_TRANSITION_UNCOVER = _mupdf.FZ_TRANSITION_UNCOVER
  2745. FZ_TRANSITION_FADE = _mupdf.FZ_TRANSITION_FADE
  2746. class fz_transition(object):
  2747. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2748. __repr__ = _swig_repr
  2749. type = property(_mupdf.fz_transition_type_get, _mupdf.fz_transition_type_set)
  2750. duration = property(_mupdf.fz_transition_duration_get, _mupdf.fz_transition_duration_set)
  2751. vertical = property(_mupdf.fz_transition_vertical_get, _mupdf.fz_transition_vertical_set)
  2752. outwards = property(_mupdf.fz_transition_outwards_get, _mupdf.fz_transition_outwards_set)
  2753. direction = property(_mupdf.fz_transition_direction_get, _mupdf.fz_transition_direction_set)
  2754. state0 = property(_mupdf.fz_transition_state0_get, _mupdf.fz_transition_state0_set)
  2755. state1 = property(_mupdf.fz_transition_state1_get, _mupdf.fz_transition_state1_set)
  2756. def __init__(self):
  2757. _mupdf.fz_transition_swiginit(self, _mupdf.new_fz_transition())
  2758. __swig_destroy__ = _mupdf.delete_fz_transition
  2759. # Register fz_transition in _mupdf:
  2760. _mupdf.fz_transition_swigregister(fz_transition)
  2761. class fz_link(object):
  2762. r"""
  2763. fz_link is a list of interactive links on a page.
  2764. There is no relation between the order of the links in the
  2765. list and the order they appear on the page. The list of links
  2766. for a given page can be obtained from fz_load_links.
  2767. A link is reference counted. Dropping a reference to a link is
  2768. done by calling fz_drop_link.
  2769. rect: The hot zone. The area that can be clicked in
  2770. untransformed coordinates.
  2771. uri: Link destinations come in two forms: internal and external.
  2772. Internal links refer to other pages in the same document.
  2773. External links are URLs to other documents.
  2774. next: A pointer to the next link on the same page.
  2775. """
  2776. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2777. __repr__ = _swig_repr
  2778. refs = property(_mupdf.fz_link_refs_get, _mupdf.fz_link_refs_set)
  2779. next = property(_mupdf.fz_link_next_get, _mupdf.fz_link_next_set)
  2780. rect = property(_mupdf.fz_link_rect_get, _mupdf.fz_link_rect_set)
  2781. uri = property(_mupdf.fz_link_uri_get, _mupdf.fz_link_uri_set)
  2782. set_rect_fn = property(_mupdf.fz_link_set_rect_fn_get, _mupdf.fz_link_set_rect_fn_set)
  2783. set_uri_fn = property(_mupdf.fz_link_set_uri_fn_get, _mupdf.fz_link_set_uri_fn_set)
  2784. drop = property(_mupdf.fz_link_drop_get, _mupdf.fz_link_drop_set)
  2785. def __init__(self):
  2786. _mupdf.fz_link_swiginit(self, _mupdf.new_fz_link())
  2787. __swig_destroy__ = _mupdf.delete_fz_link
  2788. # Register fz_link in _mupdf:
  2789. _mupdf.fz_link_swigregister(fz_link)
  2790. FZ_LINK_DEST_FIT = _mupdf.FZ_LINK_DEST_FIT
  2791. FZ_LINK_DEST_FIT_B = _mupdf.FZ_LINK_DEST_FIT_B
  2792. FZ_LINK_DEST_FIT_H = _mupdf.FZ_LINK_DEST_FIT_H
  2793. FZ_LINK_DEST_FIT_BH = _mupdf.FZ_LINK_DEST_FIT_BH
  2794. FZ_LINK_DEST_FIT_V = _mupdf.FZ_LINK_DEST_FIT_V
  2795. FZ_LINK_DEST_FIT_BV = _mupdf.FZ_LINK_DEST_FIT_BV
  2796. FZ_LINK_DEST_FIT_R = _mupdf.FZ_LINK_DEST_FIT_R
  2797. FZ_LINK_DEST_XYZ = _mupdf.FZ_LINK_DEST_XYZ
  2798. class fz_link_dest(object):
  2799. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2800. __repr__ = _swig_repr
  2801. loc = property(_mupdf.fz_link_dest_loc_get, _mupdf.fz_link_dest_loc_set)
  2802. type = property(_mupdf.fz_link_dest_type_get, _mupdf.fz_link_dest_type_set)
  2803. x = property(_mupdf.fz_link_dest_x_get, _mupdf.fz_link_dest_x_set)
  2804. y = property(_mupdf.fz_link_dest_y_get, _mupdf.fz_link_dest_y_set)
  2805. w = property(_mupdf.fz_link_dest_w_get, _mupdf.fz_link_dest_w_set)
  2806. h = property(_mupdf.fz_link_dest_h_get, _mupdf.fz_link_dest_h_set)
  2807. zoom = property(_mupdf.fz_link_dest_zoom_get, _mupdf.fz_link_dest_zoom_set)
  2808. def __init__(self):
  2809. _mupdf.fz_link_dest_swiginit(self, _mupdf.new_fz_link_dest())
  2810. __swig_destroy__ = _mupdf.delete_fz_link_dest
  2811. # Register fz_link_dest in _mupdf:
  2812. _mupdf.fz_link_dest_swigregister(fz_link_dest)
  2813. class fz_outline_item(object):
  2814. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2815. __repr__ = _swig_repr
  2816. title = property(_mupdf.fz_outline_item_title_get, _mupdf.fz_outline_item_title_set)
  2817. uri = property(_mupdf.fz_outline_item_uri_get, _mupdf.fz_outline_item_uri_set)
  2818. is_open = property(_mupdf.fz_outline_item_is_open_get, _mupdf.fz_outline_item_is_open_set)
  2819. flags = property(_mupdf.fz_outline_item_flags_get, _mupdf.fz_outline_item_flags_set)
  2820. r = property(_mupdf.fz_outline_item_r_get, _mupdf.fz_outline_item_r_set)
  2821. g = property(_mupdf.fz_outline_item_g_get, _mupdf.fz_outline_item_g_set)
  2822. b = property(_mupdf.fz_outline_item_b_get, _mupdf.fz_outline_item_b_set)
  2823. def __init__(self):
  2824. _mupdf.fz_outline_item_swiginit(self, _mupdf.new_fz_outline_item())
  2825. __swig_destroy__ = _mupdf.delete_fz_outline_item
  2826. # Register fz_outline_item in _mupdf:
  2827. _mupdf.fz_outline_item_swigregister(fz_outline_item)
  2828. FZ_OUTLINE_FLAG_BOLD = _mupdf.FZ_OUTLINE_FLAG_BOLD
  2829. FZ_OUTLINE_FLAG_ITALIC = _mupdf.FZ_OUTLINE_FLAG_ITALIC
  2830. class fz_outline(object):
  2831. r"""
  2832. Structure based API
  2833. fz_outline is a tree of the outline of a document (also known
  2834. as table of contents).
  2835. title: Title of outline item using UTF-8 encoding. May be NULL
  2836. if the outline item has no text string.
  2837. uri: Destination in the document to be displayed when this
  2838. outline item is activated. May be an internal or external
  2839. link, or NULL if the outline item does not have a destination.
  2840. page: The page number of an internal link, or -1 for external
  2841. links or links with no destination.
  2842. next: The next outline item at the same level as this outline
  2843. item. May be NULL if no more outline items exist at this level.
  2844. down: The outline items immediate children in the hierarchy.
  2845. May be NULL if no children exist.
  2846. is_open: If zero, the outline element is closed in the UI. If
  2847. 1, it should be open, showing any child elements.
  2848. flags: Bit 0 set -> Bold, Bit 1 set -> Italic. All other bits
  2849. reserved.
  2850. r, g, b: The RGB components of the color of this entry.
  2851. """
  2852. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2853. __repr__ = _swig_repr
  2854. refs = property(_mupdf.fz_outline_refs_get, _mupdf.fz_outline_refs_set)
  2855. title = property(_mupdf.fz_outline_title_get, _mupdf.fz_outline_title_set)
  2856. uri = property(_mupdf.fz_outline_uri_get, _mupdf.fz_outline_uri_set)
  2857. page = property(_mupdf.fz_outline_page_get, _mupdf.fz_outline_page_set)
  2858. x = property(_mupdf.fz_outline_x_get, _mupdf.fz_outline_x_set)
  2859. y = property(_mupdf.fz_outline_y_get, _mupdf.fz_outline_y_set)
  2860. next = property(_mupdf.fz_outline_next_get, _mupdf.fz_outline_next_set)
  2861. down = property(_mupdf.fz_outline_down_get, _mupdf.fz_outline_down_set)
  2862. is_open = property(_mupdf.fz_outline_is_open_get, _mupdf.fz_outline_is_open_set)
  2863. flags = property(_mupdf.fz_outline_flags_get, _mupdf.fz_outline_flags_set)
  2864. r = property(_mupdf.fz_outline_r_get, _mupdf.fz_outline_r_set)
  2865. g = property(_mupdf.fz_outline_g_get, _mupdf.fz_outline_g_set)
  2866. b = property(_mupdf.fz_outline_b_get, _mupdf.fz_outline_b_set)
  2867. def __init__(self):
  2868. _mupdf.fz_outline_swiginit(self, _mupdf.new_fz_outline())
  2869. __swig_destroy__ = _mupdf.delete_fz_outline
  2870. # Register fz_outline in _mupdf:
  2871. _mupdf.fz_outline_swigregister(fz_outline)
  2872. class fz_outline_iterator(object):
  2873. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2874. __repr__ = _swig_repr
  2875. drop = property(_mupdf.fz_outline_iterator_drop_get, _mupdf.fz_outline_iterator_drop_set)
  2876. item = property(_mupdf.fz_outline_iterator_item_get, _mupdf.fz_outline_iterator_item_set)
  2877. next = property(_mupdf.fz_outline_iterator_next_get, _mupdf.fz_outline_iterator_next_set)
  2878. prev = property(_mupdf.fz_outline_iterator_prev_get, _mupdf.fz_outline_iterator_prev_set)
  2879. up = property(_mupdf.fz_outline_iterator_up_get, _mupdf.fz_outline_iterator_up_set)
  2880. down = property(_mupdf.fz_outline_iterator_down_get, _mupdf.fz_outline_iterator_down_set)
  2881. insert = property(_mupdf.fz_outline_iterator_insert_get, _mupdf.fz_outline_iterator_insert_set)
  2882. update = property(_mupdf.fz_outline_iterator_update_get, _mupdf.fz_outline_iterator_update_set)
  2883. _del = property(_mupdf.fz_outline_iterator__del_get, _mupdf.fz_outline_iterator__del_set)
  2884. doc = property(_mupdf.fz_outline_iterator_doc_get, _mupdf.fz_outline_iterator_doc_set)
  2885. def __init__(self):
  2886. _mupdf.fz_outline_iterator_swiginit(self, _mupdf.new_fz_outline_iterator())
  2887. __swig_destroy__ = _mupdf.delete_fz_outline_iterator
  2888. # Register fz_outline_iterator in _mupdf:
  2889. _mupdf.fz_outline_iterator_swigregister(fz_outline_iterator)
  2890. FZ_MEDIA_BOX = _mupdf.FZ_MEDIA_BOX
  2891. FZ_CROP_BOX = _mupdf.FZ_CROP_BOX
  2892. FZ_BLEED_BOX = _mupdf.FZ_BLEED_BOX
  2893. FZ_TRIM_BOX = _mupdf.FZ_TRIM_BOX
  2894. FZ_ART_BOX = _mupdf.FZ_ART_BOX
  2895. FZ_UNKNOWN_BOX = _mupdf.FZ_UNKNOWN_BOX
  2896. FZ_LAYOUT_KINDLE_W = _mupdf.FZ_LAYOUT_KINDLE_W
  2897. FZ_LAYOUT_KINDLE_H = _mupdf.FZ_LAYOUT_KINDLE_H
  2898. FZ_LAYOUT_KINDLE_EM = _mupdf.FZ_LAYOUT_KINDLE_EM
  2899. FZ_LAYOUT_US_POCKET_W = _mupdf.FZ_LAYOUT_US_POCKET_W
  2900. FZ_LAYOUT_US_POCKET_H = _mupdf.FZ_LAYOUT_US_POCKET_H
  2901. FZ_LAYOUT_US_POCKET_EM = _mupdf.FZ_LAYOUT_US_POCKET_EM
  2902. FZ_LAYOUT_US_TRADE_W = _mupdf.FZ_LAYOUT_US_TRADE_W
  2903. FZ_LAYOUT_US_TRADE_H = _mupdf.FZ_LAYOUT_US_TRADE_H
  2904. FZ_LAYOUT_US_TRADE_EM = _mupdf.FZ_LAYOUT_US_TRADE_EM
  2905. FZ_LAYOUT_UK_A_FORMAT_W = _mupdf.FZ_LAYOUT_UK_A_FORMAT_W
  2906. FZ_LAYOUT_UK_A_FORMAT_H = _mupdf.FZ_LAYOUT_UK_A_FORMAT_H
  2907. FZ_LAYOUT_UK_A_FORMAT_EM = _mupdf.FZ_LAYOUT_UK_A_FORMAT_EM
  2908. FZ_LAYOUT_UK_B_FORMAT_W = _mupdf.FZ_LAYOUT_UK_B_FORMAT_W
  2909. FZ_LAYOUT_UK_B_FORMAT_H = _mupdf.FZ_LAYOUT_UK_B_FORMAT_H
  2910. FZ_LAYOUT_UK_B_FORMAT_EM = _mupdf.FZ_LAYOUT_UK_B_FORMAT_EM
  2911. FZ_LAYOUT_UK_C_FORMAT_W = _mupdf.FZ_LAYOUT_UK_C_FORMAT_W
  2912. FZ_LAYOUT_UK_C_FORMAT_H = _mupdf.FZ_LAYOUT_UK_C_FORMAT_H
  2913. FZ_LAYOUT_UK_C_FORMAT_EM = _mupdf.FZ_LAYOUT_UK_C_FORMAT_EM
  2914. FZ_LAYOUT_A5_W = _mupdf.FZ_LAYOUT_A5_W
  2915. FZ_LAYOUT_A5_H = _mupdf.FZ_LAYOUT_A5_H
  2916. FZ_LAYOUT_A5_EM = _mupdf.FZ_LAYOUT_A5_EM
  2917. FZ_DEFAULT_LAYOUT_W = _mupdf.FZ_DEFAULT_LAYOUT_W
  2918. FZ_DEFAULT_LAYOUT_H = _mupdf.FZ_DEFAULT_LAYOUT_H
  2919. FZ_DEFAULT_LAYOUT_EM = _mupdf.FZ_DEFAULT_LAYOUT_EM
  2920. FZ_PERMISSION_PRINT = _mupdf.FZ_PERMISSION_PRINT
  2921. FZ_PERMISSION_COPY = _mupdf.FZ_PERMISSION_COPY
  2922. FZ_PERMISSION_EDIT = _mupdf.FZ_PERMISSION_EDIT
  2923. FZ_PERMISSION_ANNOTATE = _mupdf.FZ_PERMISSION_ANNOTATE
  2924. FZ_PERMISSION_FORM = _mupdf.FZ_PERMISSION_FORM
  2925. FZ_PERMISSION_ACCESSIBILITY = _mupdf.FZ_PERMISSION_ACCESSIBILITY
  2926. FZ_PERMISSION_ASSEMBLE = _mupdf.FZ_PERMISSION_ASSEMBLE
  2927. FZ_PERMISSION_PRINT_HQ = _mupdf.FZ_PERMISSION_PRINT_HQ
  2928. FZ_META_FORMAT = _mupdf.FZ_META_FORMAT
  2929. FZ_META_ENCRYPTION = _mupdf.FZ_META_ENCRYPTION
  2930. FZ_META_INFO = _mupdf.FZ_META_INFO
  2931. FZ_META_INFO_TITLE = _mupdf.FZ_META_INFO_TITLE
  2932. FZ_META_INFO_AUTHOR = _mupdf.FZ_META_INFO_AUTHOR
  2933. FZ_META_INFO_SUBJECT = _mupdf.FZ_META_INFO_SUBJECT
  2934. FZ_META_INFO_KEYWORDS = _mupdf.FZ_META_INFO_KEYWORDS
  2935. FZ_META_INFO_CREATOR = _mupdf.FZ_META_INFO_CREATOR
  2936. FZ_META_INFO_PRODUCER = _mupdf.FZ_META_INFO_PRODUCER
  2937. FZ_META_INFO_CREATIONDATE = _mupdf.FZ_META_INFO_CREATIONDATE
  2938. FZ_META_INFO_MODIFICATIONDATE = _mupdf.FZ_META_INFO_MODIFICATIONDATE
  2939. class fz_page(object):
  2940. r"""
  2941. Structure definition is public so other classes can
  2942. derive from it. Do not access the members directly.
  2943. """
  2944. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2945. __repr__ = _swig_repr
  2946. refs = property(_mupdf.fz_page_refs_get, _mupdf.fz_page_refs_set)
  2947. doc = property(_mupdf.fz_page_doc_get, _mupdf.fz_page_doc_set)
  2948. chapter = property(_mupdf.fz_page_chapter_get, _mupdf.fz_page_chapter_set)
  2949. number = property(_mupdf.fz_page_number_get, _mupdf.fz_page_number_set)
  2950. incomplete = property(_mupdf.fz_page_incomplete_get, _mupdf.fz_page_incomplete_set)
  2951. in_doc = property(_mupdf.fz_page_in_doc_get, _mupdf.fz_page_in_doc_set)
  2952. drop_page = property(_mupdf.fz_page_drop_page_get, _mupdf.fz_page_drop_page_set)
  2953. bound_page = property(_mupdf.fz_page_bound_page_get, _mupdf.fz_page_bound_page_set)
  2954. run_page_contents = property(_mupdf.fz_page_run_page_contents_get, _mupdf.fz_page_run_page_contents_set)
  2955. run_page_annots = property(_mupdf.fz_page_run_page_annots_get, _mupdf.fz_page_run_page_annots_set)
  2956. run_page_widgets = property(_mupdf.fz_page_run_page_widgets_get, _mupdf.fz_page_run_page_widgets_set)
  2957. load_links = property(_mupdf.fz_page_load_links_get, _mupdf.fz_page_load_links_set)
  2958. page_presentation = property(_mupdf.fz_page_page_presentation_get, _mupdf.fz_page_page_presentation_set)
  2959. control_separation = property(_mupdf.fz_page_control_separation_get, _mupdf.fz_page_control_separation_set)
  2960. separation_disabled = property(_mupdf.fz_page_separation_disabled_get, _mupdf.fz_page_separation_disabled_set)
  2961. separations = property(_mupdf.fz_page_separations_get, _mupdf.fz_page_separations_set)
  2962. overprint = property(_mupdf.fz_page_overprint_get, _mupdf.fz_page_overprint_set)
  2963. create_link = property(_mupdf.fz_page_create_link_get, _mupdf.fz_page_create_link_set)
  2964. delete_link = property(_mupdf.fz_page_delete_link_get, _mupdf.fz_page_delete_link_set)
  2965. prev = property(_mupdf.fz_page_prev_get, _mupdf.fz_page_prev_set)
  2966. next = property(_mupdf.fz_page_next_get, _mupdf.fz_page_next_set)
  2967. def __init__(self):
  2968. _mupdf.fz_page_swiginit(self, _mupdf.new_fz_page())
  2969. __swig_destroy__ = _mupdf.delete_fz_page
  2970. # Register fz_page in _mupdf:
  2971. _mupdf.fz_page_swigregister(fz_page)
  2972. class fz_document(object):
  2973. r"""
  2974. Structure definition is public so other classes can
  2975. derive from it. Callers should not access the members
  2976. directly, though implementations will need initialize
  2977. functions directly.
  2978. """
  2979. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2980. __repr__ = _swig_repr
  2981. refs = property(_mupdf.fz_document_refs_get, _mupdf.fz_document_refs_set)
  2982. drop_document = property(_mupdf.fz_document_drop_document_get, _mupdf.fz_document_drop_document_set)
  2983. needs_password = property(_mupdf.fz_document_needs_password_get, _mupdf.fz_document_needs_password_set)
  2984. authenticate_password = property(_mupdf.fz_document_authenticate_password_get, _mupdf.fz_document_authenticate_password_set)
  2985. has_permission = property(_mupdf.fz_document_has_permission_get, _mupdf.fz_document_has_permission_set)
  2986. load_outline = property(_mupdf.fz_document_load_outline_get, _mupdf.fz_document_load_outline_set)
  2987. outline_iterator = property(_mupdf.fz_document_outline_iterator_get, _mupdf.fz_document_outline_iterator_set)
  2988. layout = property(_mupdf.fz_document_layout_get, _mupdf.fz_document_layout_set)
  2989. make_bookmark = property(_mupdf.fz_document_make_bookmark_get, _mupdf.fz_document_make_bookmark_set)
  2990. lookup_bookmark = property(_mupdf.fz_document_lookup_bookmark_get, _mupdf.fz_document_lookup_bookmark_set)
  2991. resolve_link_dest = property(_mupdf.fz_document_resolve_link_dest_get, _mupdf.fz_document_resolve_link_dest_set)
  2992. format_link_uri = property(_mupdf.fz_document_format_link_uri_get, _mupdf.fz_document_format_link_uri_set)
  2993. count_chapters = property(_mupdf.fz_document_count_chapters_get, _mupdf.fz_document_count_chapters_set)
  2994. count_pages = property(_mupdf.fz_document_count_pages_get, _mupdf.fz_document_count_pages_set)
  2995. load_page = property(_mupdf.fz_document_load_page_get, _mupdf.fz_document_load_page_set)
  2996. page_label = property(_mupdf.fz_document_page_label_get, _mupdf.fz_document_page_label_set)
  2997. lookup_metadata = property(_mupdf.fz_document_lookup_metadata_get, _mupdf.fz_document_lookup_metadata_set)
  2998. set_metadata = property(_mupdf.fz_document_set_metadata_get, _mupdf.fz_document_set_metadata_set)
  2999. get_output_intent = property(_mupdf.fz_document_get_output_intent_get, _mupdf.fz_document_get_output_intent_set)
  3000. output_accelerator = property(_mupdf.fz_document_output_accelerator_get, _mupdf.fz_document_output_accelerator_set)
  3001. run_structure = property(_mupdf.fz_document_run_structure_get, _mupdf.fz_document_run_structure_set)
  3002. as_pdf = property(_mupdf.fz_document_as_pdf_get, _mupdf.fz_document_as_pdf_set)
  3003. did_layout = property(_mupdf.fz_document_did_layout_get, _mupdf.fz_document_did_layout_set)
  3004. is_reflowable = property(_mupdf.fz_document_is_reflowable_get, _mupdf.fz_document_is_reflowable_set)
  3005. id = property(_mupdf.fz_document_id_get, _mupdf.fz_document_id_set)
  3006. open = property(_mupdf.fz_document_open_get, _mupdf.fz_document_open_set)
  3007. def __init__(self):
  3008. _mupdf.fz_document_swiginit(self, _mupdf.new_fz_document())
  3009. __swig_destroy__ = _mupdf.delete_fz_document
  3010. # Register fz_document in _mupdf:
  3011. _mupdf.fz_document_swigregister(fz_document)
  3012. class fz_document_handler(object):
  3013. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3014. __repr__ = _swig_repr
  3015. recognize = property(_mupdf.fz_document_handler_recognize_get, _mupdf.fz_document_handler_recognize_set)
  3016. open = property(_mupdf.fz_document_handler_open_get, _mupdf.fz_document_handler_open_set)
  3017. extensions = property(_mupdf.fz_document_handler_extensions_get, _mupdf.fz_document_handler_extensions_set)
  3018. mimetypes = property(_mupdf.fz_document_handler_mimetypes_get, _mupdf.fz_document_handler_mimetypes_set)
  3019. recognize_content = property(_mupdf.fz_document_handler_recognize_content_get, _mupdf.fz_document_handler_recognize_content_set)
  3020. wants_dir = property(_mupdf.fz_document_handler_wants_dir_get, _mupdf.fz_document_handler_wants_dir_set)
  3021. wants_file = property(_mupdf.fz_document_handler_wants_file_get, _mupdf.fz_document_handler_wants_file_set)
  3022. fin = property(_mupdf.fz_document_handler_fin_get, _mupdf.fz_document_handler_fin_set)
  3023. def __init__(self):
  3024. _mupdf.fz_document_handler_swiginit(self, _mupdf.new_fz_document_handler())
  3025. __swig_destroy__ = _mupdf.delete_fz_document_handler
  3026. # Register fz_document_handler in _mupdf:
  3027. _mupdf.fz_document_handler_swigregister(fz_document_handler)
  3028. class fz_document_writer(object):
  3029. r"""
  3030. Structure is public to allow other structures to
  3031. be derived from it. Do not access members directly.
  3032. """
  3033. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3034. __repr__ = _swig_repr
  3035. begin_page = property(_mupdf.fz_document_writer_begin_page_get, _mupdf.fz_document_writer_begin_page_set)
  3036. end_page = property(_mupdf.fz_document_writer_end_page_get, _mupdf.fz_document_writer_end_page_set)
  3037. close_writer = property(_mupdf.fz_document_writer_close_writer_get, _mupdf.fz_document_writer_close_writer_set)
  3038. drop_writer = property(_mupdf.fz_document_writer_drop_writer_get, _mupdf.fz_document_writer_drop_writer_set)
  3039. dev = property(_mupdf.fz_document_writer_dev_get, _mupdf.fz_document_writer_dev_set)
  3040. def __init__(self):
  3041. _mupdf.fz_document_writer_swiginit(self, _mupdf.new_fz_document_writer())
  3042. __swig_destroy__ = _mupdf.delete_fz_document_writer
  3043. # Register fz_document_writer in _mupdf:
  3044. _mupdf.fz_document_writer_swigregister(fz_document_writer)
  3045. class fz_band_writer(object):
  3046. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3047. __repr__ = _swig_repr
  3048. drop = property(_mupdf.fz_band_writer_drop_get, _mupdf.fz_band_writer_drop_set)
  3049. close = property(_mupdf.fz_band_writer_close_get, _mupdf.fz_band_writer_close_set)
  3050. header = property(_mupdf.fz_band_writer_header_get, _mupdf.fz_band_writer_header_set)
  3051. band = property(_mupdf.fz_band_writer_band_get, _mupdf.fz_band_writer_band_set)
  3052. trailer = property(_mupdf.fz_band_writer_trailer_get, _mupdf.fz_band_writer_trailer_set)
  3053. out = property(_mupdf.fz_band_writer_out_get, _mupdf.fz_band_writer_out_set)
  3054. w = property(_mupdf.fz_band_writer_w_get, _mupdf.fz_band_writer_w_set)
  3055. h = property(_mupdf.fz_band_writer_h_get, _mupdf.fz_band_writer_h_set)
  3056. n = property(_mupdf.fz_band_writer_n_get, _mupdf.fz_band_writer_n_set)
  3057. s = property(_mupdf.fz_band_writer_s_get, _mupdf.fz_band_writer_s_set)
  3058. alpha = property(_mupdf.fz_band_writer_alpha_get, _mupdf.fz_band_writer_alpha_set)
  3059. xres = property(_mupdf.fz_band_writer_xres_get, _mupdf.fz_band_writer_xres_set)
  3060. yres = property(_mupdf.fz_band_writer_yres_get, _mupdf.fz_band_writer_yres_set)
  3061. pagenum = property(_mupdf.fz_band_writer_pagenum_get, _mupdf.fz_band_writer_pagenum_set)
  3062. line = property(_mupdf.fz_band_writer_line_get, _mupdf.fz_band_writer_line_set)
  3063. seps = property(_mupdf.fz_band_writer_seps_get, _mupdf.fz_band_writer_seps_set)
  3064. def __init__(self):
  3065. _mupdf.fz_band_writer_swiginit(self, _mupdf.new_fz_band_writer())
  3066. __swig_destroy__ = _mupdf.delete_fz_band_writer
  3067. # Register fz_band_writer in _mupdf:
  3068. _mupdf.fz_band_writer_swigregister(fz_band_writer)
  3069. class fz_pcl_options(object):
  3070. r"""PCL output"""
  3071. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3072. __repr__ = _swig_repr
  3073. features = property(_mupdf.fz_pcl_options_features_get, _mupdf.fz_pcl_options_features_set)
  3074. odd_page_init = property(_mupdf.fz_pcl_options_odd_page_init_get, _mupdf.fz_pcl_options_odd_page_init_set)
  3075. even_page_init = property(_mupdf.fz_pcl_options_even_page_init_get, _mupdf.fz_pcl_options_even_page_init_set)
  3076. tumble = property(_mupdf.fz_pcl_options_tumble_get, _mupdf.fz_pcl_options_tumble_set)
  3077. duplex_set = property(_mupdf.fz_pcl_options_duplex_set_get, _mupdf.fz_pcl_options_duplex_set_set)
  3078. duplex = property(_mupdf.fz_pcl_options_duplex_get, _mupdf.fz_pcl_options_duplex_set)
  3079. paper_size = property(_mupdf.fz_pcl_options_paper_size_get, _mupdf.fz_pcl_options_paper_size_set)
  3080. manual_feed_set = property(_mupdf.fz_pcl_options_manual_feed_set_get, _mupdf.fz_pcl_options_manual_feed_set_set)
  3081. manual_feed = property(_mupdf.fz_pcl_options_manual_feed_get, _mupdf.fz_pcl_options_manual_feed_set)
  3082. media_position_set = property(_mupdf.fz_pcl_options_media_position_set_get, _mupdf.fz_pcl_options_media_position_set_set)
  3083. media_position = property(_mupdf.fz_pcl_options_media_position_get, _mupdf.fz_pcl_options_media_position_set)
  3084. orientation = property(_mupdf.fz_pcl_options_orientation_get, _mupdf.fz_pcl_options_orientation_set)
  3085. page_count = property(_mupdf.fz_pcl_options_page_count_get, _mupdf.fz_pcl_options_page_count_set)
  3086. def __init__(self):
  3087. _mupdf.fz_pcl_options_swiginit(self, _mupdf.new_fz_pcl_options())
  3088. __swig_destroy__ = _mupdf.delete_fz_pcl_options
  3089. # Register fz_pcl_options in _mupdf:
  3090. _mupdf.fz_pcl_options_swigregister(fz_pcl_options)
  3091. class fz_pclm_options(object):
  3092. r"""PCLm output"""
  3093. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3094. __repr__ = _swig_repr
  3095. compress = property(_mupdf.fz_pclm_options_compress_get, _mupdf.fz_pclm_options_compress_set)
  3096. strip_height = property(_mupdf.fz_pclm_options_strip_height_get, _mupdf.fz_pclm_options_strip_height_set)
  3097. page_count = property(_mupdf.fz_pclm_options_page_count_get, _mupdf.fz_pclm_options_page_count_set)
  3098. def __init__(self):
  3099. _mupdf.fz_pclm_options_swiginit(self, _mupdf.new_fz_pclm_options())
  3100. __swig_destroy__ = _mupdf.delete_fz_pclm_options
  3101. # Register fz_pclm_options in _mupdf:
  3102. _mupdf.fz_pclm_options_swigregister(fz_pclm_options)
  3103. class fz_pdfocr_options(object):
  3104. r"""PDFOCR output"""
  3105. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3106. __repr__ = _swig_repr
  3107. compress = property(_mupdf.fz_pdfocr_options_compress_get, _mupdf.fz_pdfocr_options_compress_set)
  3108. strip_height = property(_mupdf.fz_pdfocr_options_strip_height_get, _mupdf.fz_pdfocr_options_strip_height_set)
  3109. language = property(_mupdf.fz_pdfocr_options_language_get, _mupdf.fz_pdfocr_options_language_set)
  3110. datadir = property(_mupdf.fz_pdfocr_options_datadir_get, _mupdf.fz_pdfocr_options_datadir_set)
  3111. skew_correct = property(_mupdf.fz_pdfocr_options_skew_correct_get, _mupdf.fz_pdfocr_options_skew_correct_set)
  3112. skew_angle = property(_mupdf.fz_pdfocr_options_skew_angle_get, _mupdf.fz_pdfocr_options_skew_angle_set)
  3113. skew_border = property(_mupdf.fz_pdfocr_options_skew_border_get, _mupdf.fz_pdfocr_options_skew_border_set)
  3114. page_count = property(_mupdf.fz_pdfocr_options_page_count_get, _mupdf.fz_pdfocr_options_page_count_set)
  3115. def __init__(self):
  3116. _mupdf.fz_pdfocr_options_swiginit(self, _mupdf.new_fz_pdfocr_options())
  3117. __swig_destroy__ = _mupdf.delete_fz_pdfocr_options
  3118. # Register fz_pdfocr_options in _mupdf:
  3119. _mupdf.fz_pdfocr_options_swigregister(fz_pdfocr_options)
  3120. class fz_pwg_options(object):
  3121. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3122. __repr__ = _swig_repr
  3123. media_class = property(_mupdf.fz_pwg_options_media_class_get, _mupdf.fz_pwg_options_media_class_set)
  3124. media_color = property(_mupdf.fz_pwg_options_media_color_get, _mupdf.fz_pwg_options_media_color_set)
  3125. media_type = property(_mupdf.fz_pwg_options_media_type_get, _mupdf.fz_pwg_options_media_type_set)
  3126. output_type = property(_mupdf.fz_pwg_options_output_type_get, _mupdf.fz_pwg_options_output_type_set)
  3127. advance_distance = property(_mupdf.fz_pwg_options_advance_distance_get, _mupdf.fz_pwg_options_advance_distance_set)
  3128. advance_media = property(_mupdf.fz_pwg_options_advance_media_get, _mupdf.fz_pwg_options_advance_media_set)
  3129. collate = property(_mupdf.fz_pwg_options_collate_get, _mupdf.fz_pwg_options_collate_set)
  3130. cut_media = property(_mupdf.fz_pwg_options_cut_media_get, _mupdf.fz_pwg_options_cut_media_set)
  3131. duplex = property(_mupdf.fz_pwg_options_duplex_get, _mupdf.fz_pwg_options_duplex_set)
  3132. insert_sheet = property(_mupdf.fz_pwg_options_insert_sheet_get, _mupdf.fz_pwg_options_insert_sheet_set)
  3133. jog = property(_mupdf.fz_pwg_options_jog_get, _mupdf.fz_pwg_options_jog_set)
  3134. leading_edge = property(_mupdf.fz_pwg_options_leading_edge_get, _mupdf.fz_pwg_options_leading_edge_set)
  3135. manual_feed = property(_mupdf.fz_pwg_options_manual_feed_get, _mupdf.fz_pwg_options_manual_feed_set)
  3136. media_position = property(_mupdf.fz_pwg_options_media_position_get, _mupdf.fz_pwg_options_media_position_set)
  3137. media_weight = property(_mupdf.fz_pwg_options_media_weight_get, _mupdf.fz_pwg_options_media_weight_set)
  3138. mirror_print = property(_mupdf.fz_pwg_options_mirror_print_get, _mupdf.fz_pwg_options_mirror_print_set)
  3139. negative_print = property(_mupdf.fz_pwg_options_negative_print_get, _mupdf.fz_pwg_options_negative_print_set)
  3140. num_copies = property(_mupdf.fz_pwg_options_num_copies_get, _mupdf.fz_pwg_options_num_copies_set)
  3141. orientation = property(_mupdf.fz_pwg_options_orientation_get, _mupdf.fz_pwg_options_orientation_set)
  3142. output_face_up = property(_mupdf.fz_pwg_options_output_face_up_get, _mupdf.fz_pwg_options_output_face_up_set)
  3143. PageSize = property(_mupdf.fz_pwg_options_PageSize_get, _mupdf.fz_pwg_options_PageSize_set)
  3144. separations = property(_mupdf.fz_pwg_options_separations_get, _mupdf.fz_pwg_options_separations_set)
  3145. tray_switch = property(_mupdf.fz_pwg_options_tray_switch_get, _mupdf.fz_pwg_options_tray_switch_set)
  3146. tumble = property(_mupdf.fz_pwg_options_tumble_get, _mupdf.fz_pwg_options_tumble_set)
  3147. media_type_num = property(_mupdf.fz_pwg_options_media_type_num_get, _mupdf.fz_pwg_options_media_type_num_set)
  3148. compression = property(_mupdf.fz_pwg_options_compression_get, _mupdf.fz_pwg_options_compression_set)
  3149. row_count = property(_mupdf.fz_pwg_options_row_count_get, _mupdf.fz_pwg_options_row_count_set)
  3150. row_feed = property(_mupdf.fz_pwg_options_row_feed_get, _mupdf.fz_pwg_options_row_feed_set)
  3151. row_step = property(_mupdf.fz_pwg_options_row_step_get, _mupdf.fz_pwg_options_row_step_set)
  3152. rendering_intent = property(_mupdf.fz_pwg_options_rendering_intent_get, _mupdf.fz_pwg_options_rendering_intent_set)
  3153. page_size_name = property(_mupdf.fz_pwg_options_page_size_name_get, _mupdf.fz_pwg_options_page_size_name_set)
  3154. def __init__(self):
  3155. _mupdf.fz_pwg_options_swiginit(self, _mupdf.new_fz_pwg_options())
  3156. __swig_destroy__ = _mupdf.delete_fz_pwg_options
  3157. # Register fz_pwg_options in _mupdf:
  3158. _mupdf.fz_pwg_options_swigregister(fz_pwg_options)
  3159. FZ_SVG_TEXT_AS_PATH = _mupdf.FZ_SVG_TEXT_AS_PATH
  3160. FZ_SVG_TEXT_AS_TEXT = _mupdf.FZ_SVG_TEXT_AS_TEXT
  3161. FZ_PLACE_STORY_FLAG_NO_OVERFLOW = _mupdf.FZ_PLACE_STORY_FLAG_NO_OVERFLOW
  3162. FZ_PLACE_STORY_RETURN_ALL_FITTED = _mupdf.FZ_PLACE_STORY_RETURN_ALL_FITTED
  3163. FZ_PLACE_STORY_RETURN_OVERFLOW_WIDTH = _mupdf.FZ_PLACE_STORY_RETURN_OVERFLOW_WIDTH
  3164. class fz_story_element_position(object):
  3165. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3166. __repr__ = _swig_repr
  3167. depth = property(_mupdf.fz_story_element_position_depth_get, _mupdf.fz_story_element_position_depth_set)
  3168. heading = property(_mupdf.fz_story_element_position_heading_get, _mupdf.fz_story_element_position_heading_set)
  3169. id = property(_mupdf.fz_story_element_position_id_get, _mupdf.fz_story_element_position_id_set)
  3170. href = property(_mupdf.fz_story_element_position_href_get, _mupdf.fz_story_element_position_href_set)
  3171. rect = property(_mupdf.fz_story_element_position_rect_get, _mupdf.fz_story_element_position_rect_set)
  3172. text = property(_mupdf.fz_story_element_position_text_get, _mupdf.fz_story_element_position_text_set)
  3173. open_close = property(_mupdf.fz_story_element_position_open_close_get, _mupdf.fz_story_element_position_open_close_set)
  3174. rectangle_num = property(_mupdf.fz_story_element_position_rectangle_num_get, _mupdf.fz_story_element_position_rectangle_num_set)
  3175. def __init__(self):
  3176. _mupdf.fz_story_element_position_swiginit(self, _mupdf.new_fz_story_element_position())
  3177. __swig_destroy__ = _mupdf.delete_fz_story_element_position
  3178. # Register fz_story_element_position in _mupdf:
  3179. _mupdf.fz_story_element_position_swigregister(fz_story_element_position)
  3180. class fz_write_story_position(object):
  3181. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3182. __repr__ = _swig_repr
  3183. element = property(_mupdf.fz_write_story_position_element_get, _mupdf.fz_write_story_position_element_set)
  3184. page_num = property(_mupdf.fz_write_story_position_page_num_get, _mupdf.fz_write_story_position_page_num_set)
  3185. def __init__(self):
  3186. _mupdf.fz_write_story_position_swiginit(self, _mupdf.new_fz_write_story_position())
  3187. __swig_destroy__ = _mupdf.delete_fz_write_story_position
  3188. # Register fz_write_story_position in _mupdf:
  3189. _mupdf.fz_write_story_position_swigregister(fz_write_story_position)
  3190. class fz_write_story_positions(object):
  3191. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3192. __repr__ = _swig_repr
  3193. positions = property(_mupdf.fz_write_story_positions_positions_get, _mupdf.fz_write_story_positions_positions_set)
  3194. num = property(_mupdf.fz_write_story_positions_num_get, _mupdf.fz_write_story_positions_num_set)
  3195. def __init__(self):
  3196. _mupdf.fz_write_story_positions_swiginit(self, _mupdf.new_fz_write_story_positions())
  3197. __swig_destroy__ = _mupdf.delete_fz_write_story_positions
  3198. # Register fz_write_story_positions in _mupdf:
  3199. _mupdf.fz_write_story_positions_swigregister(fz_write_story_positions)
  3200. FZ_DESKEW_BORDER_INCREASE = _mupdf.FZ_DESKEW_BORDER_INCREASE
  3201. FZ_DESKEW_BORDER_MAINTAIN = _mupdf.FZ_DESKEW_BORDER_MAINTAIN
  3202. FZ_DESKEW_BORDER_DECREASE = _mupdf.FZ_DESKEW_BORDER_DECREASE
  3203. FZ_BARCODE_NONE = _mupdf.FZ_BARCODE_NONE
  3204. FZ_BARCODE_AZTEC = _mupdf.FZ_BARCODE_AZTEC
  3205. FZ_BARCODE_CODABAR = _mupdf.FZ_BARCODE_CODABAR
  3206. FZ_BARCODE_CODE39 = _mupdf.FZ_BARCODE_CODE39
  3207. FZ_BARCODE_CODE93 = _mupdf.FZ_BARCODE_CODE93
  3208. FZ_BARCODE_CODE128 = _mupdf.FZ_BARCODE_CODE128
  3209. FZ_BARCODE_DATABAR = _mupdf.FZ_BARCODE_DATABAR
  3210. FZ_BARCODE_DATABAREXPANDED = _mupdf.FZ_BARCODE_DATABAREXPANDED
  3211. FZ_BARCODE_DATAMATRIX = _mupdf.FZ_BARCODE_DATAMATRIX
  3212. FZ_BARCODE_EAN8 = _mupdf.FZ_BARCODE_EAN8
  3213. FZ_BARCODE_EAN13 = _mupdf.FZ_BARCODE_EAN13
  3214. FZ_BARCODE_ITF = _mupdf.FZ_BARCODE_ITF
  3215. FZ_BARCODE_MAXICODE = _mupdf.FZ_BARCODE_MAXICODE
  3216. FZ_BARCODE_PDF417 = _mupdf.FZ_BARCODE_PDF417
  3217. FZ_BARCODE_QRCODE = _mupdf.FZ_BARCODE_QRCODE
  3218. FZ_BARCODE_UPCA = _mupdf.FZ_BARCODE_UPCA
  3219. FZ_BARCODE_UPCE = _mupdf.FZ_BARCODE_UPCE
  3220. FZ_BARCODE_MICROQRCODE = _mupdf.FZ_BARCODE_MICROQRCODE
  3221. FZ_BARCODE_RMQRCODE = _mupdf.FZ_BARCODE_RMQRCODE
  3222. FZ_BARCODE_DXFILMEDGE = _mupdf.FZ_BARCODE_DXFILMEDGE
  3223. FZ_BARCODE_DATABARLIMITED = _mupdf.FZ_BARCODE_DATABARLIMITED
  3224. FZ_BARCODE__LIMIT = _mupdf.FZ_BARCODE__LIMIT
  3225. PDF_MAX_OBJECT_NUMBER = _mupdf.PDF_MAX_OBJECT_NUMBER
  3226. PDF_MAX_GEN_NUMBER = _mupdf.PDF_MAX_GEN_NUMBER
  3227. class pdf_cycle_list(object):
  3228. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3229. __repr__ = _swig_repr
  3230. up = property(_mupdf.pdf_cycle_list_up_get, _mupdf.pdf_cycle_list_up_set)
  3231. num = property(_mupdf.pdf_cycle_list_num_get, _mupdf.pdf_cycle_list_num_set)
  3232. def __init__(self):
  3233. _mupdf.pdf_cycle_list_swiginit(self, _mupdf.new_pdf_cycle_list())
  3234. __swig_destroy__ = _mupdf.delete_pdf_cycle_list
  3235. # Register pdf_cycle_list in _mupdf:
  3236. _mupdf.pdf_cycle_list_swigregister(pdf_cycle_list)
  3237. class pdf_mark_bits(object):
  3238. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3239. __repr__ = _swig_repr
  3240. len = property(_mupdf.pdf_mark_bits_len_get, _mupdf.pdf_mark_bits_len_set)
  3241. bits = property(_mupdf.pdf_mark_bits_bits_get, _mupdf.pdf_mark_bits_bits_set)
  3242. def __init__(self):
  3243. _mupdf.pdf_mark_bits_swiginit(self, _mupdf.new_pdf_mark_bits())
  3244. __swig_destroy__ = _mupdf.delete_pdf_mark_bits
  3245. # Register pdf_mark_bits in _mupdf:
  3246. _mupdf.pdf_mark_bits_swigregister(pdf_mark_bits)
  3247. class pdf_mark_list(object):
  3248. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3249. __repr__ = _swig_repr
  3250. len = property(_mupdf.pdf_mark_list_len_get, _mupdf.pdf_mark_list_len_set)
  3251. max = property(_mupdf.pdf_mark_list_max_get, _mupdf.pdf_mark_list_max_set)
  3252. list = property(_mupdf.pdf_mark_list_list_get, _mupdf.pdf_mark_list_list_set)
  3253. local_list = property(_mupdf.pdf_mark_list_local_list_get, _mupdf.pdf_mark_list_local_list_set)
  3254. def __init__(self):
  3255. _mupdf.pdf_mark_list_swiginit(self, _mupdf.new_pdf_mark_list())
  3256. __swig_destroy__ = _mupdf.delete_pdf_mark_list
  3257. # Register pdf_mark_list in _mupdf:
  3258. _mupdf.pdf_mark_list_swigregister(pdf_mark_list)
  3259. PDF_ENUM_NULL = _mupdf.PDF_ENUM_NULL
  3260. PDF_ENUM_TRUE = _mupdf.PDF_ENUM_TRUE
  3261. PDF_ENUM_FALSE = _mupdf.PDF_ENUM_FALSE
  3262. PDF_ENUM_NAME_1_2 = _mupdf.PDF_ENUM_NAME_1_2
  3263. PDF_ENUM_NAME_1_5 = _mupdf.PDF_ENUM_NAME_1_5
  3264. PDF_ENUM_NAME_3D = _mupdf.PDF_ENUM_NAME_3D
  3265. PDF_ENUM_NAME_A = _mupdf.PDF_ENUM_NAME_A
  3266. PDF_ENUM_NAME_A85 = _mupdf.PDF_ENUM_NAME_A85
  3267. PDF_ENUM_NAME_AA = _mupdf.PDF_ENUM_NAME_AA
  3268. PDF_ENUM_NAME_AC = _mupdf.PDF_ENUM_NAME_AC
  3269. PDF_ENUM_NAME_AESV2 = _mupdf.PDF_ENUM_NAME_AESV2
  3270. PDF_ENUM_NAME_AESV3 = _mupdf.PDF_ENUM_NAME_AESV3
  3271. PDF_ENUM_NAME_AF = _mupdf.PDF_ENUM_NAME_AF
  3272. PDF_ENUM_NAME_AFRelationship = _mupdf.PDF_ENUM_NAME_AFRelationship
  3273. PDF_ENUM_NAME_AHx = _mupdf.PDF_ENUM_NAME_AHx
  3274. PDF_ENUM_NAME_AP = _mupdf.PDF_ENUM_NAME_AP
  3275. PDF_ENUM_NAME_AS = _mupdf.PDF_ENUM_NAME_AS
  3276. PDF_ENUM_NAME_ASCII85Decode = _mupdf.PDF_ENUM_NAME_ASCII85Decode
  3277. PDF_ENUM_NAME_ASCIIHexDecode = _mupdf.PDF_ENUM_NAME_ASCIIHexDecode
  3278. PDF_ENUM_NAME_AbsoluteColorimetric = _mupdf.PDF_ENUM_NAME_AbsoluteColorimetric
  3279. PDF_ENUM_NAME_AcroForm = _mupdf.PDF_ENUM_NAME_AcroForm
  3280. PDF_ENUM_NAME_Action = _mupdf.PDF_ENUM_NAME_Action
  3281. PDF_ENUM_NAME_ActualText = _mupdf.PDF_ENUM_NAME_ActualText
  3282. PDF_ENUM_NAME_Adobe_PPKLite = _mupdf.PDF_ENUM_NAME_Adobe_PPKLite
  3283. PDF_ENUM_NAME_All = _mupdf.PDF_ENUM_NAME_All
  3284. PDF_ENUM_NAME_AllOff = _mupdf.PDF_ENUM_NAME_AllOff
  3285. PDF_ENUM_NAME_AllOn = _mupdf.PDF_ENUM_NAME_AllOn
  3286. PDF_ENUM_NAME_Alpha = _mupdf.PDF_ENUM_NAME_Alpha
  3287. PDF_ENUM_NAME_Alt = _mupdf.PDF_ENUM_NAME_Alt
  3288. PDF_ENUM_NAME_Alternate = _mupdf.PDF_ENUM_NAME_Alternate
  3289. PDF_ENUM_NAME_Alternative = _mupdf.PDF_ENUM_NAME_Alternative
  3290. PDF_ENUM_NAME_Annot = _mupdf.PDF_ENUM_NAME_Annot
  3291. PDF_ENUM_NAME_Annots = _mupdf.PDF_ENUM_NAME_Annots
  3292. PDF_ENUM_NAME_AnyOff = _mupdf.PDF_ENUM_NAME_AnyOff
  3293. PDF_ENUM_NAME_App = _mupdf.PDF_ENUM_NAME_App
  3294. PDF_ENUM_NAME_Approved = _mupdf.PDF_ENUM_NAME_Approved
  3295. PDF_ENUM_NAME_Art = _mupdf.PDF_ENUM_NAME_Art
  3296. PDF_ENUM_NAME_ArtBox = _mupdf.PDF_ENUM_NAME_ArtBox
  3297. PDF_ENUM_NAME_Artifact = _mupdf.PDF_ENUM_NAME_Artifact
  3298. PDF_ENUM_NAME_AsIs = _mupdf.PDF_ENUM_NAME_AsIs
  3299. PDF_ENUM_NAME_Ascent = _mupdf.PDF_ENUM_NAME_Ascent
  3300. PDF_ENUM_NAME_Aside = _mupdf.PDF_ENUM_NAME_Aside
  3301. PDF_ENUM_NAME_AuthEvent = _mupdf.PDF_ENUM_NAME_AuthEvent
  3302. PDF_ENUM_NAME_Author = _mupdf.PDF_ENUM_NAME_Author
  3303. PDF_ENUM_NAME_B = _mupdf.PDF_ENUM_NAME_B
  3304. PDF_ENUM_NAME_BBox = _mupdf.PDF_ENUM_NAME_BBox
  3305. PDF_ENUM_NAME_BC = _mupdf.PDF_ENUM_NAME_BC
  3306. PDF_ENUM_NAME_BE = _mupdf.PDF_ENUM_NAME_BE
  3307. PDF_ENUM_NAME_BG = _mupdf.PDF_ENUM_NAME_BG
  3308. PDF_ENUM_NAME_BM = _mupdf.PDF_ENUM_NAME_BM
  3309. PDF_ENUM_NAME_BPC = _mupdf.PDF_ENUM_NAME_BPC
  3310. PDF_ENUM_NAME_BS = _mupdf.PDF_ENUM_NAME_BS
  3311. PDF_ENUM_NAME_Background = _mupdf.PDF_ENUM_NAME_Background
  3312. PDF_ENUM_NAME_BaseEncoding = _mupdf.PDF_ENUM_NAME_BaseEncoding
  3313. PDF_ENUM_NAME_BaseFont = _mupdf.PDF_ENUM_NAME_BaseFont
  3314. PDF_ENUM_NAME_BaseState = _mupdf.PDF_ENUM_NAME_BaseState
  3315. PDF_ENUM_NAME_BibEntry = _mupdf.PDF_ENUM_NAME_BibEntry
  3316. PDF_ENUM_NAME_BitsPerComponent = _mupdf.PDF_ENUM_NAME_BitsPerComponent
  3317. PDF_ENUM_NAME_BitsPerCoordinate = _mupdf.PDF_ENUM_NAME_BitsPerCoordinate
  3318. PDF_ENUM_NAME_BitsPerFlag = _mupdf.PDF_ENUM_NAME_BitsPerFlag
  3319. PDF_ENUM_NAME_BitsPerSample = _mupdf.PDF_ENUM_NAME_BitsPerSample
  3320. PDF_ENUM_NAME_BlackIs1 = _mupdf.PDF_ENUM_NAME_BlackIs1
  3321. PDF_ENUM_NAME_BlackPoint = _mupdf.PDF_ENUM_NAME_BlackPoint
  3322. PDF_ENUM_NAME_BleedBox = _mupdf.PDF_ENUM_NAME_BleedBox
  3323. PDF_ENUM_NAME_Blinds = _mupdf.PDF_ENUM_NAME_Blinds
  3324. PDF_ENUM_NAME_BlockQuote = _mupdf.PDF_ENUM_NAME_BlockQuote
  3325. PDF_ENUM_NAME_Border = _mupdf.PDF_ENUM_NAME_Border
  3326. PDF_ENUM_NAME_Bounds = _mupdf.PDF_ENUM_NAME_Bounds
  3327. PDF_ENUM_NAME_Box = _mupdf.PDF_ENUM_NAME_Box
  3328. PDF_ENUM_NAME_Br = _mupdf.PDF_ENUM_NAME_Br
  3329. PDF_ENUM_NAME_BrotliDecode = _mupdf.PDF_ENUM_NAME_BrotliDecode
  3330. PDF_ENUM_NAME_Bt = _mupdf.PDF_ENUM_NAME_Bt
  3331. PDF_ENUM_NAME_Btn = _mupdf.PDF_ENUM_NAME_Btn
  3332. PDF_ENUM_NAME_Butt = _mupdf.PDF_ENUM_NAME_Butt
  3333. PDF_ENUM_NAME_ByteRange = _mupdf.PDF_ENUM_NAME_ByteRange
  3334. PDF_ENUM_NAME_C = _mupdf.PDF_ENUM_NAME_C
  3335. PDF_ENUM_NAME_C0 = _mupdf.PDF_ENUM_NAME_C0
  3336. PDF_ENUM_NAME_C1 = _mupdf.PDF_ENUM_NAME_C1
  3337. PDF_ENUM_NAME_CA = _mupdf.PDF_ENUM_NAME_CA
  3338. PDF_ENUM_NAME_CCF = _mupdf.PDF_ENUM_NAME_CCF
  3339. PDF_ENUM_NAME_CCITTFaxDecode = _mupdf.PDF_ENUM_NAME_CCITTFaxDecode
  3340. PDF_ENUM_NAME_CF = _mupdf.PDF_ENUM_NAME_CF
  3341. PDF_ENUM_NAME_CFM = _mupdf.PDF_ENUM_NAME_CFM
  3342. PDF_ENUM_NAME_CI = _mupdf.PDF_ENUM_NAME_CI
  3343. PDF_ENUM_NAME_CIDFontType0 = _mupdf.PDF_ENUM_NAME_CIDFontType0
  3344. PDF_ENUM_NAME_CIDFontType0C = _mupdf.PDF_ENUM_NAME_CIDFontType0C
  3345. PDF_ENUM_NAME_CIDFontType2 = _mupdf.PDF_ENUM_NAME_CIDFontType2
  3346. PDF_ENUM_NAME_CIDSystemInfo = _mupdf.PDF_ENUM_NAME_CIDSystemInfo
  3347. PDF_ENUM_NAME_CIDToGIDMap = _mupdf.PDF_ENUM_NAME_CIDToGIDMap
  3348. PDF_ENUM_NAME_CL = _mupdf.PDF_ENUM_NAME_CL
  3349. PDF_ENUM_NAME_CMYK = _mupdf.PDF_ENUM_NAME_CMYK
  3350. PDF_ENUM_NAME_CO = _mupdf.PDF_ENUM_NAME_CO
  3351. PDF_ENUM_NAME_CP = _mupdf.PDF_ENUM_NAME_CP
  3352. PDF_ENUM_NAME_CS = _mupdf.PDF_ENUM_NAME_CS
  3353. PDF_ENUM_NAME_CalCMYK = _mupdf.PDF_ENUM_NAME_CalCMYK
  3354. PDF_ENUM_NAME_CalGray = _mupdf.PDF_ENUM_NAME_CalGray
  3355. PDF_ENUM_NAME_CalRGB = _mupdf.PDF_ENUM_NAME_CalRGB
  3356. PDF_ENUM_NAME_Cap = _mupdf.PDF_ENUM_NAME_Cap
  3357. PDF_ENUM_NAME_CapHeight = _mupdf.PDF_ENUM_NAME_CapHeight
  3358. PDF_ENUM_NAME_Caption = _mupdf.PDF_ENUM_NAME_Caption
  3359. PDF_ENUM_NAME_Caret = _mupdf.PDF_ENUM_NAME_Caret
  3360. PDF_ENUM_NAME_Catalog = _mupdf.PDF_ENUM_NAME_Catalog
  3361. PDF_ENUM_NAME_Cert = _mupdf.PDF_ENUM_NAME_Cert
  3362. PDF_ENUM_NAME_Ch = _mupdf.PDF_ENUM_NAME_Ch
  3363. PDF_ENUM_NAME_Changes = _mupdf.PDF_ENUM_NAME_Changes
  3364. PDF_ENUM_NAME_CharProcs = _mupdf.PDF_ENUM_NAME_CharProcs
  3365. PDF_ENUM_NAME_CheckSum = _mupdf.PDF_ENUM_NAME_CheckSum
  3366. PDF_ENUM_NAME_Circle = _mupdf.PDF_ENUM_NAME_Circle
  3367. PDF_ENUM_NAME_ClosedArrow = _mupdf.PDF_ENUM_NAME_ClosedArrow
  3368. PDF_ENUM_NAME_Code = _mupdf.PDF_ENUM_NAME_Code
  3369. PDF_ENUM_NAME_Collection = _mupdf.PDF_ENUM_NAME_Collection
  3370. PDF_ENUM_NAME_ColorSpace = _mupdf.PDF_ENUM_NAME_ColorSpace
  3371. PDF_ENUM_NAME_ColorTransform = _mupdf.PDF_ENUM_NAME_ColorTransform
  3372. PDF_ENUM_NAME_Colorants = _mupdf.PDF_ENUM_NAME_Colorants
  3373. PDF_ENUM_NAME_Colors = _mupdf.PDF_ENUM_NAME_Colors
  3374. PDF_ENUM_NAME_Columns = _mupdf.PDF_ENUM_NAME_Columns
  3375. PDF_ENUM_NAME_Confidential = _mupdf.PDF_ENUM_NAME_Confidential
  3376. PDF_ENUM_NAME_Configs = _mupdf.PDF_ENUM_NAME_Configs
  3377. PDF_ENUM_NAME_ContactInfo = _mupdf.PDF_ENUM_NAME_ContactInfo
  3378. PDF_ENUM_NAME_Contents = _mupdf.PDF_ENUM_NAME_Contents
  3379. PDF_ENUM_NAME_Coords = _mupdf.PDF_ENUM_NAME_Coords
  3380. PDF_ENUM_NAME_Count = _mupdf.PDF_ENUM_NAME_Count
  3381. PDF_ENUM_NAME_Cover = _mupdf.PDF_ENUM_NAME_Cover
  3382. PDF_ENUM_NAME_CreationDate = _mupdf.PDF_ENUM_NAME_CreationDate
  3383. PDF_ENUM_NAME_Creator = _mupdf.PDF_ENUM_NAME_Creator
  3384. PDF_ENUM_NAME_CropBox = _mupdf.PDF_ENUM_NAME_CropBox
  3385. PDF_ENUM_NAME_Crypt = _mupdf.PDF_ENUM_NAME_Crypt
  3386. PDF_ENUM_NAME_D = _mupdf.PDF_ENUM_NAME_D
  3387. PDF_ENUM_NAME_DA = _mupdf.PDF_ENUM_NAME_DA
  3388. PDF_ENUM_NAME_DC = _mupdf.PDF_ENUM_NAME_DC
  3389. PDF_ENUM_NAME_DCT = _mupdf.PDF_ENUM_NAME_DCT
  3390. PDF_ENUM_NAME_DCTDecode = _mupdf.PDF_ENUM_NAME_DCTDecode
  3391. PDF_ENUM_NAME_DL = _mupdf.PDF_ENUM_NAME_DL
  3392. PDF_ENUM_NAME_DOS = _mupdf.PDF_ENUM_NAME_DOS
  3393. PDF_ENUM_NAME_DP = _mupdf.PDF_ENUM_NAME_DP
  3394. PDF_ENUM_NAME_DR = _mupdf.PDF_ENUM_NAME_DR
  3395. PDF_ENUM_NAME_DS = _mupdf.PDF_ENUM_NAME_DS
  3396. PDF_ENUM_NAME_DV = _mupdf.PDF_ENUM_NAME_DV
  3397. PDF_ENUM_NAME_DW = _mupdf.PDF_ENUM_NAME_DW
  3398. PDF_ENUM_NAME_DW2 = _mupdf.PDF_ENUM_NAME_DW2
  3399. PDF_ENUM_NAME_DamagedRowsBeforeError = _mupdf.PDF_ENUM_NAME_DamagedRowsBeforeError
  3400. PDF_ENUM_NAME_Data = _mupdf.PDF_ENUM_NAME_Data
  3401. PDF_ENUM_NAME_Date = _mupdf.PDF_ENUM_NAME_Date
  3402. PDF_ENUM_NAME_Decode = _mupdf.PDF_ENUM_NAME_Decode
  3403. PDF_ENUM_NAME_DecodeParms = _mupdf.PDF_ENUM_NAME_DecodeParms
  3404. PDF_ENUM_NAME_Default = _mupdf.PDF_ENUM_NAME_Default
  3405. PDF_ENUM_NAME_DefaultCMYK = _mupdf.PDF_ENUM_NAME_DefaultCMYK
  3406. PDF_ENUM_NAME_DefaultGray = _mupdf.PDF_ENUM_NAME_DefaultGray
  3407. PDF_ENUM_NAME_DefaultRGB = _mupdf.PDF_ENUM_NAME_DefaultRGB
  3408. PDF_ENUM_NAME_Departmental = _mupdf.PDF_ENUM_NAME_Departmental
  3409. PDF_ENUM_NAME_Desc = _mupdf.PDF_ENUM_NAME_Desc
  3410. PDF_ENUM_NAME_DescendantFonts = _mupdf.PDF_ENUM_NAME_DescendantFonts
  3411. PDF_ENUM_NAME_Descent = _mupdf.PDF_ENUM_NAME_Descent
  3412. PDF_ENUM_NAME_Design = _mupdf.PDF_ENUM_NAME_Design
  3413. PDF_ENUM_NAME_Dest = _mupdf.PDF_ENUM_NAME_Dest
  3414. PDF_ENUM_NAME_DestOutputProfile = _mupdf.PDF_ENUM_NAME_DestOutputProfile
  3415. PDF_ENUM_NAME_Dests = _mupdf.PDF_ENUM_NAME_Dests
  3416. PDF_ENUM_NAME_DeviceCMYK = _mupdf.PDF_ENUM_NAME_DeviceCMYK
  3417. PDF_ENUM_NAME_DeviceGray = _mupdf.PDF_ENUM_NAME_DeviceGray
  3418. PDF_ENUM_NAME_DeviceN = _mupdf.PDF_ENUM_NAME_DeviceN
  3419. PDF_ENUM_NAME_DeviceRGB = _mupdf.PDF_ENUM_NAME_DeviceRGB
  3420. PDF_ENUM_NAME_Di = _mupdf.PDF_ENUM_NAME_Di
  3421. PDF_ENUM_NAME_Diamond = _mupdf.PDF_ENUM_NAME_Diamond
  3422. PDF_ENUM_NAME_Differences = _mupdf.PDF_ENUM_NAME_Differences
  3423. PDF_ENUM_NAME_DigestLocation = _mupdf.PDF_ENUM_NAME_DigestLocation
  3424. PDF_ENUM_NAME_DigestMethod = _mupdf.PDF_ENUM_NAME_DigestMethod
  3425. PDF_ENUM_NAME_DigestValue = _mupdf.PDF_ENUM_NAME_DigestValue
  3426. PDF_ENUM_NAME_Dissolve = _mupdf.PDF_ENUM_NAME_Dissolve
  3427. PDF_ENUM_NAME_Div = _mupdf.PDF_ENUM_NAME_Div
  3428. PDF_ENUM_NAME_Dm = _mupdf.PDF_ENUM_NAME_Dm
  3429. PDF_ENUM_NAME_DocMDP = _mupdf.PDF_ENUM_NAME_DocMDP
  3430. PDF_ENUM_NAME_Document = _mupdf.PDF_ENUM_NAME_Document
  3431. PDF_ENUM_NAME_DocumentFragment = _mupdf.PDF_ENUM_NAME_DocumentFragment
  3432. PDF_ENUM_NAME_Domain = _mupdf.PDF_ENUM_NAME_Domain
  3433. PDF_ENUM_NAME_Draft = _mupdf.PDF_ENUM_NAME_Draft
  3434. PDF_ENUM_NAME_Dur = _mupdf.PDF_ENUM_NAME_Dur
  3435. PDF_ENUM_NAME_E = _mupdf.PDF_ENUM_NAME_E
  3436. PDF_ENUM_NAME_EF = _mupdf.PDF_ENUM_NAME_EF
  3437. PDF_ENUM_NAME_EarlyChange = _mupdf.PDF_ENUM_NAME_EarlyChange
  3438. PDF_ENUM_NAME_Em = _mupdf.PDF_ENUM_NAME_Em
  3439. PDF_ENUM_NAME_EmbeddedFile = _mupdf.PDF_ENUM_NAME_EmbeddedFile
  3440. PDF_ENUM_NAME_EmbeddedFiles = _mupdf.PDF_ENUM_NAME_EmbeddedFiles
  3441. PDF_ENUM_NAME_Encode = _mupdf.PDF_ENUM_NAME_Encode
  3442. PDF_ENUM_NAME_EncodedByteAlign = _mupdf.PDF_ENUM_NAME_EncodedByteAlign
  3443. PDF_ENUM_NAME_Encoding = _mupdf.PDF_ENUM_NAME_Encoding
  3444. PDF_ENUM_NAME_Encrypt = _mupdf.PDF_ENUM_NAME_Encrypt
  3445. PDF_ENUM_NAME_EncryptMetadata = _mupdf.PDF_ENUM_NAME_EncryptMetadata
  3446. PDF_ENUM_NAME_EncryptedPayload = _mupdf.PDF_ENUM_NAME_EncryptedPayload
  3447. PDF_ENUM_NAME_EndOfBlock = _mupdf.PDF_ENUM_NAME_EndOfBlock
  3448. PDF_ENUM_NAME_EndOfLine = _mupdf.PDF_ENUM_NAME_EndOfLine
  3449. PDF_ENUM_NAME_Exclude = _mupdf.PDF_ENUM_NAME_Exclude
  3450. PDF_ENUM_NAME_Experimental = _mupdf.PDF_ENUM_NAME_Experimental
  3451. PDF_ENUM_NAME_Expired = _mupdf.PDF_ENUM_NAME_Expired
  3452. PDF_ENUM_NAME_ExtGState = _mupdf.PDF_ENUM_NAME_ExtGState
  3453. PDF_ENUM_NAME_Extend = _mupdf.PDF_ENUM_NAME_Extend
  3454. PDF_ENUM_NAME_F = _mupdf.PDF_ENUM_NAME_F
  3455. PDF_ENUM_NAME_FENote = _mupdf.PDF_ENUM_NAME_FENote
  3456. PDF_ENUM_NAME_FL = _mupdf.PDF_ENUM_NAME_FL
  3457. PDF_ENUM_NAME_FRM = _mupdf.PDF_ENUM_NAME_FRM
  3458. PDF_ENUM_NAME_FS = _mupdf.PDF_ENUM_NAME_FS
  3459. PDF_ENUM_NAME_FT = _mupdf.PDF_ENUM_NAME_FT
  3460. PDF_ENUM_NAME_Fade = _mupdf.PDF_ENUM_NAME_Fade
  3461. PDF_ENUM_NAME_Ff = _mupdf.PDF_ENUM_NAME_Ff
  3462. PDF_ENUM_NAME_FieldMDP = _mupdf.PDF_ENUM_NAME_FieldMDP
  3463. PDF_ENUM_NAME_Fields = _mupdf.PDF_ENUM_NAME_Fields
  3464. PDF_ENUM_NAME_Figure = _mupdf.PDF_ENUM_NAME_Figure
  3465. PDF_ENUM_NAME_FileAttachment = _mupdf.PDF_ENUM_NAME_FileAttachment
  3466. PDF_ENUM_NAME_FileSize = _mupdf.PDF_ENUM_NAME_FileSize
  3467. PDF_ENUM_NAME_Filespec = _mupdf.PDF_ENUM_NAME_Filespec
  3468. PDF_ENUM_NAME_Filter = _mupdf.PDF_ENUM_NAME_Filter
  3469. PDF_ENUM_NAME_Final = _mupdf.PDF_ENUM_NAME_Final
  3470. PDF_ENUM_NAME_Fingerprint = _mupdf.PDF_ENUM_NAME_Fingerprint
  3471. PDF_ENUM_NAME_First = _mupdf.PDF_ENUM_NAME_First
  3472. PDF_ENUM_NAME_FirstChar = _mupdf.PDF_ENUM_NAME_FirstChar
  3473. PDF_ENUM_NAME_FirstPage = _mupdf.PDF_ENUM_NAME_FirstPage
  3474. PDF_ENUM_NAME_Fit = _mupdf.PDF_ENUM_NAME_Fit
  3475. PDF_ENUM_NAME_FitB = _mupdf.PDF_ENUM_NAME_FitB
  3476. PDF_ENUM_NAME_FitBH = _mupdf.PDF_ENUM_NAME_FitBH
  3477. PDF_ENUM_NAME_FitBV = _mupdf.PDF_ENUM_NAME_FitBV
  3478. PDF_ENUM_NAME_FitH = _mupdf.PDF_ENUM_NAME_FitH
  3479. PDF_ENUM_NAME_FitR = _mupdf.PDF_ENUM_NAME_FitR
  3480. PDF_ENUM_NAME_FitV = _mupdf.PDF_ENUM_NAME_FitV
  3481. PDF_ENUM_NAME_Fl = _mupdf.PDF_ENUM_NAME_Fl
  3482. PDF_ENUM_NAME_Flags = _mupdf.PDF_ENUM_NAME_Flags
  3483. PDF_ENUM_NAME_FlateDecode = _mupdf.PDF_ENUM_NAME_FlateDecode
  3484. PDF_ENUM_NAME_Fly = _mupdf.PDF_ENUM_NAME_Fly
  3485. PDF_ENUM_NAME_Font = _mupdf.PDF_ENUM_NAME_Font
  3486. PDF_ENUM_NAME_FontBBox = _mupdf.PDF_ENUM_NAME_FontBBox
  3487. PDF_ENUM_NAME_FontDescriptor = _mupdf.PDF_ENUM_NAME_FontDescriptor
  3488. PDF_ENUM_NAME_FontFile = _mupdf.PDF_ENUM_NAME_FontFile
  3489. PDF_ENUM_NAME_FontFile2 = _mupdf.PDF_ENUM_NAME_FontFile2
  3490. PDF_ENUM_NAME_FontFile3 = _mupdf.PDF_ENUM_NAME_FontFile3
  3491. PDF_ENUM_NAME_FontMatrix = _mupdf.PDF_ENUM_NAME_FontMatrix
  3492. PDF_ENUM_NAME_FontName = _mupdf.PDF_ENUM_NAME_FontName
  3493. PDF_ENUM_NAME_ForComment = _mupdf.PDF_ENUM_NAME_ForComment
  3494. PDF_ENUM_NAME_ForPublicRelease = _mupdf.PDF_ENUM_NAME_ForPublicRelease
  3495. PDF_ENUM_NAME_Form = _mupdf.PDF_ENUM_NAME_Form
  3496. PDF_ENUM_NAME_FormData = _mupdf.PDF_ENUM_NAME_FormData
  3497. PDF_ENUM_NAME_FormEx = _mupdf.PDF_ENUM_NAME_FormEx
  3498. PDF_ENUM_NAME_FormType = _mupdf.PDF_ENUM_NAME_FormType
  3499. PDF_ENUM_NAME_Formula = _mupdf.PDF_ENUM_NAME_Formula
  3500. PDF_ENUM_NAME_FreeText = _mupdf.PDF_ENUM_NAME_FreeText
  3501. PDF_ENUM_NAME_FreeTextCallout = _mupdf.PDF_ENUM_NAME_FreeTextCallout
  3502. PDF_ENUM_NAME_FreeTextTypeWriter = _mupdf.PDF_ENUM_NAME_FreeTextTypeWriter
  3503. PDF_ENUM_NAME_Function = _mupdf.PDF_ENUM_NAME_Function
  3504. PDF_ENUM_NAME_FunctionType = _mupdf.PDF_ENUM_NAME_FunctionType
  3505. PDF_ENUM_NAME_Functions = _mupdf.PDF_ENUM_NAME_Functions
  3506. PDF_ENUM_NAME_G = _mupdf.PDF_ENUM_NAME_G
  3507. PDF_ENUM_NAME_GTS_PDFX = _mupdf.PDF_ENUM_NAME_GTS_PDFX
  3508. PDF_ENUM_NAME_Gamma = _mupdf.PDF_ENUM_NAME_Gamma
  3509. PDF_ENUM_NAME_Glitter = _mupdf.PDF_ENUM_NAME_Glitter
  3510. PDF_ENUM_NAME_GoTo = _mupdf.PDF_ENUM_NAME_GoTo
  3511. PDF_ENUM_NAME_GoToR = _mupdf.PDF_ENUM_NAME_GoToR
  3512. PDF_ENUM_NAME_Group = _mupdf.PDF_ENUM_NAME_Group
  3513. PDF_ENUM_NAME_H = _mupdf.PDF_ENUM_NAME_H
  3514. PDF_ENUM_NAME_H1 = _mupdf.PDF_ENUM_NAME_H1
  3515. PDF_ENUM_NAME_H2 = _mupdf.PDF_ENUM_NAME_H2
  3516. PDF_ENUM_NAME_H3 = _mupdf.PDF_ENUM_NAME_H3
  3517. PDF_ENUM_NAME_H4 = _mupdf.PDF_ENUM_NAME_H4
  3518. PDF_ENUM_NAME_H5 = _mupdf.PDF_ENUM_NAME_H5
  3519. PDF_ENUM_NAME_H6 = _mupdf.PDF_ENUM_NAME_H6
  3520. PDF_ENUM_NAME_Height = _mupdf.PDF_ENUM_NAME_Height
  3521. PDF_ENUM_NAME_Helv = _mupdf.PDF_ENUM_NAME_Helv
  3522. PDF_ENUM_NAME_Highlight = _mupdf.PDF_ENUM_NAME_Highlight
  3523. PDF_ENUM_NAME_HistoryPos = _mupdf.PDF_ENUM_NAME_HistoryPos
  3524. PDF_ENUM_NAME_I = _mupdf.PDF_ENUM_NAME_I
  3525. PDF_ENUM_NAME_IC = _mupdf.PDF_ENUM_NAME_IC
  3526. PDF_ENUM_NAME_ICCBased = _mupdf.PDF_ENUM_NAME_ICCBased
  3527. PDF_ENUM_NAME_ID = _mupdf.PDF_ENUM_NAME_ID
  3528. PDF_ENUM_NAME_IM = _mupdf.PDF_ENUM_NAME_IM
  3529. PDF_ENUM_NAME_IRT = _mupdf.PDF_ENUM_NAME_IRT
  3530. PDF_ENUM_NAME_IT = _mupdf.PDF_ENUM_NAME_IT
  3531. PDF_ENUM_NAME_Identity = _mupdf.PDF_ENUM_NAME_Identity
  3532. PDF_ENUM_NAME_Identity_H = _mupdf.PDF_ENUM_NAME_Identity_H
  3533. PDF_ENUM_NAME_Identity_V = _mupdf.PDF_ENUM_NAME_Identity_V
  3534. PDF_ENUM_NAME_Image = _mupdf.PDF_ENUM_NAME_Image
  3535. PDF_ENUM_NAME_ImageB = _mupdf.PDF_ENUM_NAME_ImageB
  3536. PDF_ENUM_NAME_ImageC = _mupdf.PDF_ENUM_NAME_ImageC
  3537. PDF_ENUM_NAME_ImageI = _mupdf.PDF_ENUM_NAME_ImageI
  3538. PDF_ENUM_NAME_ImageMask = _mupdf.PDF_ENUM_NAME_ImageMask
  3539. PDF_ENUM_NAME_Include = _mupdf.PDF_ENUM_NAME_Include
  3540. PDF_ENUM_NAME_Index = _mupdf.PDF_ENUM_NAME_Index
  3541. PDF_ENUM_NAME_Indexed = _mupdf.PDF_ENUM_NAME_Indexed
  3542. PDF_ENUM_NAME_Info = _mupdf.PDF_ENUM_NAME_Info
  3543. PDF_ENUM_NAME_Ink = _mupdf.PDF_ENUM_NAME_Ink
  3544. PDF_ENUM_NAME_InkList = _mupdf.PDF_ENUM_NAME_InkList
  3545. PDF_ENUM_NAME_Intent = _mupdf.PDF_ENUM_NAME_Intent
  3546. PDF_ENUM_NAME_Interpolate = _mupdf.PDF_ENUM_NAME_Interpolate
  3547. PDF_ENUM_NAME_IsMap = _mupdf.PDF_ENUM_NAME_IsMap
  3548. PDF_ENUM_NAME_ItalicAngle = _mupdf.PDF_ENUM_NAME_ItalicAngle
  3549. PDF_ENUM_NAME_JBIG2Decode = _mupdf.PDF_ENUM_NAME_JBIG2Decode
  3550. PDF_ENUM_NAME_JBIG2Globals = _mupdf.PDF_ENUM_NAME_JBIG2Globals
  3551. PDF_ENUM_NAME_JPXDecode = _mupdf.PDF_ENUM_NAME_JPXDecode
  3552. PDF_ENUM_NAME_JS = _mupdf.PDF_ENUM_NAME_JS
  3553. PDF_ENUM_NAME_JavaScript = _mupdf.PDF_ENUM_NAME_JavaScript
  3554. PDF_ENUM_NAME_K = _mupdf.PDF_ENUM_NAME_K
  3555. PDF_ENUM_NAME_Keywords = _mupdf.PDF_ENUM_NAME_Keywords
  3556. PDF_ENUM_NAME_Kids = _mupdf.PDF_ENUM_NAME_Kids
  3557. PDF_ENUM_NAME_L = _mupdf.PDF_ENUM_NAME_L
  3558. PDF_ENUM_NAME_LBody = _mupdf.PDF_ENUM_NAME_LBody
  3559. PDF_ENUM_NAME_LC = _mupdf.PDF_ENUM_NAME_LC
  3560. PDF_ENUM_NAME_LE = _mupdf.PDF_ENUM_NAME_LE
  3561. PDF_ENUM_NAME_LI = _mupdf.PDF_ENUM_NAME_LI
  3562. PDF_ENUM_NAME_LJ = _mupdf.PDF_ENUM_NAME_LJ
  3563. PDF_ENUM_NAME_LL = _mupdf.PDF_ENUM_NAME_LL
  3564. PDF_ENUM_NAME_LLE = _mupdf.PDF_ENUM_NAME_LLE
  3565. PDF_ENUM_NAME_LLO = _mupdf.PDF_ENUM_NAME_LLO
  3566. PDF_ENUM_NAME_LW = _mupdf.PDF_ENUM_NAME_LW
  3567. PDF_ENUM_NAME_LZ = _mupdf.PDF_ENUM_NAME_LZ
  3568. PDF_ENUM_NAME_LZW = _mupdf.PDF_ENUM_NAME_LZW
  3569. PDF_ENUM_NAME_LZWDecode = _mupdf.PDF_ENUM_NAME_LZWDecode
  3570. PDF_ENUM_NAME_Lab = _mupdf.PDF_ENUM_NAME_Lab
  3571. PDF_ENUM_NAME_Label = _mupdf.PDF_ENUM_NAME_Label
  3572. PDF_ENUM_NAME_Lang = _mupdf.PDF_ENUM_NAME_Lang
  3573. PDF_ENUM_NAME_Last = _mupdf.PDF_ENUM_NAME_Last
  3574. PDF_ENUM_NAME_LastChar = _mupdf.PDF_ENUM_NAME_LastChar
  3575. PDF_ENUM_NAME_LastPage = _mupdf.PDF_ENUM_NAME_LastPage
  3576. PDF_ENUM_NAME_Launch = _mupdf.PDF_ENUM_NAME_Launch
  3577. PDF_ENUM_NAME_Layer = _mupdf.PDF_ENUM_NAME_Layer
  3578. PDF_ENUM_NAME_Lbl = _mupdf.PDF_ENUM_NAME_Lbl
  3579. PDF_ENUM_NAME_Length = _mupdf.PDF_ENUM_NAME_Length
  3580. PDF_ENUM_NAME_Length1 = _mupdf.PDF_ENUM_NAME_Length1
  3581. PDF_ENUM_NAME_Length2 = _mupdf.PDF_ENUM_NAME_Length2
  3582. PDF_ENUM_NAME_Length3 = _mupdf.PDF_ENUM_NAME_Length3
  3583. PDF_ENUM_NAME_Limits = _mupdf.PDF_ENUM_NAME_Limits
  3584. PDF_ENUM_NAME_Line = _mupdf.PDF_ENUM_NAME_Line
  3585. PDF_ENUM_NAME_LineArrow = _mupdf.PDF_ENUM_NAME_LineArrow
  3586. PDF_ENUM_NAME_LineDimension = _mupdf.PDF_ENUM_NAME_LineDimension
  3587. PDF_ENUM_NAME_Linearized = _mupdf.PDF_ENUM_NAME_Linearized
  3588. PDF_ENUM_NAME_Link = _mupdf.PDF_ENUM_NAME_Link
  3589. PDF_ENUM_NAME_List = _mupdf.PDF_ENUM_NAME_List
  3590. PDF_ENUM_NAME_Location = _mupdf.PDF_ENUM_NAME_Location
  3591. PDF_ENUM_NAME_Lock = _mupdf.PDF_ENUM_NAME_Lock
  3592. PDF_ENUM_NAME_Locked = _mupdf.PDF_ENUM_NAME_Locked
  3593. PDF_ENUM_NAME_Luminosity = _mupdf.PDF_ENUM_NAME_Luminosity
  3594. PDF_ENUM_NAME_M = _mupdf.PDF_ENUM_NAME_M
  3595. PDF_ENUM_NAME_MCID = _mupdf.PDF_ENUM_NAME_MCID
  3596. PDF_ENUM_NAME_MK = _mupdf.PDF_ENUM_NAME_MK
  3597. PDF_ENUM_NAME_ML = _mupdf.PDF_ENUM_NAME_ML
  3598. PDF_ENUM_NAME_MMType1 = _mupdf.PDF_ENUM_NAME_MMType1
  3599. PDF_ENUM_NAME_Mac = _mupdf.PDF_ENUM_NAME_Mac
  3600. PDF_ENUM_NAME_Mask = _mupdf.PDF_ENUM_NAME_Mask
  3601. PDF_ENUM_NAME_Matrix = _mupdf.PDF_ENUM_NAME_Matrix
  3602. PDF_ENUM_NAME_Matte = _mupdf.PDF_ENUM_NAME_Matte
  3603. PDF_ENUM_NAME_MaxLen = _mupdf.PDF_ENUM_NAME_MaxLen
  3604. PDF_ENUM_NAME_MediaBox = _mupdf.PDF_ENUM_NAME_MediaBox
  3605. PDF_ENUM_NAME_Metadata = _mupdf.PDF_ENUM_NAME_Metadata
  3606. PDF_ENUM_NAME_MissingWidth = _mupdf.PDF_ENUM_NAME_MissingWidth
  3607. PDF_ENUM_NAME_ModDate = _mupdf.PDF_ENUM_NAME_ModDate
  3608. PDF_ENUM_NAME_Movie = _mupdf.PDF_ENUM_NAME_Movie
  3609. PDF_ENUM_NAME_Msg = _mupdf.PDF_ENUM_NAME_Msg
  3610. PDF_ENUM_NAME_Multiply = _mupdf.PDF_ENUM_NAME_Multiply
  3611. PDF_ENUM_NAME_N = _mupdf.PDF_ENUM_NAME_N
  3612. PDF_ENUM_NAME_Name = _mupdf.PDF_ENUM_NAME_Name
  3613. PDF_ENUM_NAME_Named = _mupdf.PDF_ENUM_NAME_Named
  3614. PDF_ENUM_NAME_Names = _mupdf.PDF_ENUM_NAME_Names
  3615. PDF_ENUM_NAME_NewWindow = _mupdf.PDF_ENUM_NAME_NewWindow
  3616. PDF_ENUM_NAME_Next = _mupdf.PDF_ENUM_NAME_Next
  3617. PDF_ENUM_NAME_NextPage = _mupdf.PDF_ENUM_NAME_NextPage
  3618. PDF_ENUM_NAME_NonEFontNoWarn = _mupdf.PDF_ENUM_NAME_NonEFontNoWarn
  3619. PDF_ENUM_NAME_NonStruct = _mupdf.PDF_ENUM_NAME_NonStruct
  3620. PDF_ENUM_NAME_None = _mupdf.PDF_ENUM_NAME_None
  3621. PDF_ENUM_NAME_Normal = _mupdf.PDF_ENUM_NAME_Normal
  3622. PDF_ENUM_NAME_NotApproved = _mupdf.PDF_ENUM_NAME_NotApproved
  3623. PDF_ENUM_NAME_NotForPublicRelease = _mupdf.PDF_ENUM_NAME_NotForPublicRelease
  3624. PDF_ENUM_NAME_Note = _mupdf.PDF_ENUM_NAME_Note
  3625. PDF_ENUM_NAME_NumSections = _mupdf.PDF_ENUM_NAME_NumSections
  3626. PDF_ENUM_NAME_Nums = _mupdf.PDF_ENUM_NAME_Nums
  3627. PDF_ENUM_NAME_O = _mupdf.PDF_ENUM_NAME_O
  3628. PDF_ENUM_NAME_OC = _mupdf.PDF_ENUM_NAME_OC
  3629. PDF_ENUM_NAME_OCG = _mupdf.PDF_ENUM_NAME_OCG
  3630. PDF_ENUM_NAME_OCGs = _mupdf.PDF_ENUM_NAME_OCGs
  3631. PDF_ENUM_NAME_OCMD = _mupdf.PDF_ENUM_NAME_OCMD
  3632. PDF_ENUM_NAME_OCProperties = _mupdf.PDF_ENUM_NAME_OCProperties
  3633. PDF_ENUM_NAME_OE = _mupdf.PDF_ENUM_NAME_OE
  3634. PDF_ENUM_NAME_OFF = _mupdf.PDF_ENUM_NAME_OFF
  3635. PDF_ENUM_NAME_ON = _mupdf.PDF_ENUM_NAME_ON
  3636. PDF_ENUM_NAME_OP = _mupdf.PDF_ENUM_NAME_OP
  3637. PDF_ENUM_NAME_OPM = _mupdf.PDF_ENUM_NAME_OPM
  3638. PDF_ENUM_NAME_OS = _mupdf.PDF_ENUM_NAME_OS
  3639. PDF_ENUM_NAME_ObjStm = _mupdf.PDF_ENUM_NAME_ObjStm
  3640. PDF_ENUM_NAME_Of = _mupdf.PDF_ENUM_NAME_Of
  3641. PDF_ENUM_NAME_Off = _mupdf.PDF_ENUM_NAME_Off
  3642. PDF_ENUM_NAME_Open = _mupdf.PDF_ENUM_NAME_Open
  3643. PDF_ENUM_NAME_OpenArrow = _mupdf.PDF_ENUM_NAME_OpenArrow
  3644. PDF_ENUM_NAME_OpenType = _mupdf.PDF_ENUM_NAME_OpenType
  3645. PDF_ENUM_NAME_Opt = _mupdf.PDF_ENUM_NAME_Opt
  3646. PDF_ENUM_NAME_Order = _mupdf.PDF_ENUM_NAME_Order
  3647. PDF_ENUM_NAME_Ordering = _mupdf.PDF_ENUM_NAME_Ordering
  3648. PDF_ENUM_NAME_Outlines = _mupdf.PDF_ENUM_NAME_Outlines
  3649. PDF_ENUM_NAME_OutputCondition = _mupdf.PDF_ENUM_NAME_OutputCondition
  3650. PDF_ENUM_NAME_OutputConditionIdentifier = _mupdf.PDF_ENUM_NAME_OutputConditionIdentifier
  3651. PDF_ENUM_NAME_OutputIntent = _mupdf.PDF_ENUM_NAME_OutputIntent
  3652. PDF_ENUM_NAME_OutputIntents = _mupdf.PDF_ENUM_NAME_OutputIntents
  3653. PDF_ENUM_NAME_P = _mupdf.PDF_ENUM_NAME_P
  3654. PDF_ENUM_NAME_PDF = _mupdf.PDF_ENUM_NAME_PDF
  3655. PDF_ENUM_NAME_PS = _mupdf.PDF_ENUM_NAME_PS
  3656. PDF_ENUM_NAME_Page = _mupdf.PDF_ENUM_NAME_Page
  3657. PDF_ENUM_NAME_PageLabels = _mupdf.PDF_ENUM_NAME_PageLabels
  3658. PDF_ENUM_NAME_PageMode = _mupdf.PDF_ENUM_NAME_PageMode
  3659. PDF_ENUM_NAME_Pages = _mupdf.PDF_ENUM_NAME_Pages
  3660. PDF_ENUM_NAME_PaintType = _mupdf.PDF_ENUM_NAME_PaintType
  3661. PDF_ENUM_NAME_Params = _mupdf.PDF_ENUM_NAME_Params
  3662. PDF_ENUM_NAME_Parent = _mupdf.PDF_ENUM_NAME_Parent
  3663. PDF_ENUM_NAME_ParentTree = _mupdf.PDF_ENUM_NAME_ParentTree
  3664. PDF_ENUM_NAME_Part = _mupdf.PDF_ENUM_NAME_Part
  3665. PDF_ENUM_NAME_Pattern = _mupdf.PDF_ENUM_NAME_Pattern
  3666. PDF_ENUM_NAME_PatternType = _mupdf.PDF_ENUM_NAME_PatternType
  3667. PDF_ENUM_NAME_Perceptual = _mupdf.PDF_ENUM_NAME_Perceptual
  3668. PDF_ENUM_NAME_Perms = _mupdf.PDF_ENUM_NAME_Perms
  3669. PDF_ENUM_NAME_PieceInfo = _mupdf.PDF_ENUM_NAME_PieceInfo
  3670. PDF_ENUM_NAME_PolyLine = _mupdf.PDF_ENUM_NAME_PolyLine
  3671. PDF_ENUM_NAME_PolyLineDimension = _mupdf.PDF_ENUM_NAME_PolyLineDimension
  3672. PDF_ENUM_NAME_Polygon = _mupdf.PDF_ENUM_NAME_Polygon
  3673. PDF_ENUM_NAME_PolygonCloud = _mupdf.PDF_ENUM_NAME_PolygonCloud
  3674. PDF_ENUM_NAME_PolygonDimension = _mupdf.PDF_ENUM_NAME_PolygonDimension
  3675. PDF_ENUM_NAME_Popup = _mupdf.PDF_ENUM_NAME_Popup
  3676. PDF_ENUM_NAME_PreRelease = _mupdf.PDF_ENUM_NAME_PreRelease
  3677. PDF_ENUM_NAME_Predictor = _mupdf.PDF_ENUM_NAME_Predictor
  3678. PDF_ENUM_NAME_Prev = _mupdf.PDF_ENUM_NAME_Prev
  3679. PDF_ENUM_NAME_PrevPage = _mupdf.PDF_ENUM_NAME_PrevPage
  3680. PDF_ENUM_NAME_Preview = _mupdf.PDF_ENUM_NAME_Preview
  3681. PDF_ENUM_NAME_Print = _mupdf.PDF_ENUM_NAME_Print
  3682. PDF_ENUM_NAME_PrinterMark = _mupdf.PDF_ENUM_NAME_PrinterMark
  3683. PDF_ENUM_NAME_Private = _mupdf.PDF_ENUM_NAME_Private
  3684. PDF_ENUM_NAME_ProcSet = _mupdf.PDF_ENUM_NAME_ProcSet
  3685. PDF_ENUM_NAME_Producer = _mupdf.PDF_ENUM_NAME_Producer
  3686. PDF_ENUM_NAME_Prop_AuthTime = _mupdf.PDF_ENUM_NAME_Prop_AuthTime
  3687. PDF_ENUM_NAME_Prop_AuthType = _mupdf.PDF_ENUM_NAME_Prop_AuthType
  3688. PDF_ENUM_NAME_Prop_Build = _mupdf.PDF_ENUM_NAME_Prop_Build
  3689. PDF_ENUM_NAME_Properties = _mupdf.PDF_ENUM_NAME_Properties
  3690. PDF_ENUM_NAME_PubSec = _mupdf.PDF_ENUM_NAME_PubSec
  3691. PDF_ENUM_NAME_Push = _mupdf.PDF_ENUM_NAME_Push
  3692. PDF_ENUM_NAME_Q = _mupdf.PDF_ENUM_NAME_Q
  3693. PDF_ENUM_NAME_QuadPoints = _mupdf.PDF_ENUM_NAME_QuadPoints
  3694. PDF_ENUM_NAME_Quote = _mupdf.PDF_ENUM_NAME_Quote
  3695. PDF_ENUM_NAME_R = _mupdf.PDF_ENUM_NAME_R
  3696. PDF_ENUM_NAME_RB = _mupdf.PDF_ENUM_NAME_RB
  3697. PDF_ENUM_NAME_RBGroups = _mupdf.PDF_ENUM_NAME_RBGroups
  3698. PDF_ENUM_NAME_RC = _mupdf.PDF_ENUM_NAME_RC
  3699. PDF_ENUM_NAME_RClosedArrow = _mupdf.PDF_ENUM_NAME_RClosedArrow
  3700. PDF_ENUM_NAME_RD = _mupdf.PDF_ENUM_NAME_RD
  3701. PDF_ENUM_NAME_REx = _mupdf.PDF_ENUM_NAME_REx
  3702. PDF_ENUM_NAME_RGB = _mupdf.PDF_ENUM_NAME_RGB
  3703. PDF_ENUM_NAME_RI = _mupdf.PDF_ENUM_NAME_RI
  3704. PDF_ENUM_NAME_RL = _mupdf.PDF_ENUM_NAME_RL
  3705. PDF_ENUM_NAME_RO = _mupdf.PDF_ENUM_NAME_RO
  3706. PDF_ENUM_NAME_ROpenArrow = _mupdf.PDF_ENUM_NAME_ROpenArrow
  3707. PDF_ENUM_NAME_RP = _mupdf.PDF_ENUM_NAME_RP
  3708. PDF_ENUM_NAME_RT = _mupdf.PDF_ENUM_NAME_RT
  3709. PDF_ENUM_NAME_RV = _mupdf.PDF_ENUM_NAME_RV
  3710. PDF_ENUM_NAME_Range = _mupdf.PDF_ENUM_NAME_Range
  3711. PDF_ENUM_NAME_Reason = _mupdf.PDF_ENUM_NAME_Reason
  3712. PDF_ENUM_NAME_Rect = _mupdf.PDF_ENUM_NAME_Rect
  3713. PDF_ENUM_NAME_Redact = _mupdf.PDF_ENUM_NAME_Redact
  3714. PDF_ENUM_NAME_Ref = _mupdf.PDF_ENUM_NAME_Ref
  3715. PDF_ENUM_NAME_Reference = _mupdf.PDF_ENUM_NAME_Reference
  3716. PDF_ENUM_NAME_Registry = _mupdf.PDF_ENUM_NAME_Registry
  3717. PDF_ENUM_NAME_RelativeColorimetric = _mupdf.PDF_ENUM_NAME_RelativeColorimetric
  3718. PDF_ENUM_NAME_ResetForm = _mupdf.PDF_ENUM_NAME_ResetForm
  3719. PDF_ENUM_NAME_Resources = _mupdf.PDF_ENUM_NAME_Resources
  3720. PDF_ENUM_NAME_RoleMap = _mupdf.PDF_ENUM_NAME_RoleMap
  3721. PDF_ENUM_NAME_Root = _mupdf.PDF_ENUM_NAME_Root
  3722. PDF_ENUM_NAME_Rotate = _mupdf.PDF_ENUM_NAME_Rotate
  3723. PDF_ENUM_NAME_Rows = _mupdf.PDF_ENUM_NAME_Rows
  3724. PDF_ENUM_NAME_Ruby = _mupdf.PDF_ENUM_NAME_Ruby
  3725. PDF_ENUM_NAME_RunLengthDecode = _mupdf.PDF_ENUM_NAME_RunLengthDecode
  3726. PDF_ENUM_NAME_S = _mupdf.PDF_ENUM_NAME_S
  3727. PDF_ENUM_NAME_SMask = _mupdf.PDF_ENUM_NAME_SMask
  3728. PDF_ENUM_NAME_SMaskInData = _mupdf.PDF_ENUM_NAME_SMaskInData
  3729. PDF_ENUM_NAME_Saturation = _mupdf.PDF_ENUM_NAME_Saturation
  3730. PDF_ENUM_NAME_Schema = _mupdf.PDF_ENUM_NAME_Schema
  3731. PDF_ENUM_NAME_Screen = _mupdf.PDF_ENUM_NAME_Screen
  3732. PDF_ENUM_NAME_Sect = _mupdf.PDF_ENUM_NAME_Sect
  3733. PDF_ENUM_NAME_Separation = _mupdf.PDF_ENUM_NAME_Separation
  3734. PDF_ENUM_NAME_Shading = _mupdf.PDF_ENUM_NAME_Shading
  3735. PDF_ENUM_NAME_ShadingType = _mupdf.PDF_ENUM_NAME_ShadingType
  3736. PDF_ENUM_NAME_Si = _mupdf.PDF_ENUM_NAME_Si
  3737. PDF_ENUM_NAME_Sig = _mupdf.PDF_ENUM_NAME_Sig
  3738. PDF_ENUM_NAME_SigFlags = _mupdf.PDF_ENUM_NAME_SigFlags
  3739. PDF_ENUM_NAME_SigQ = _mupdf.PDF_ENUM_NAME_SigQ
  3740. PDF_ENUM_NAME_SigRef = _mupdf.PDF_ENUM_NAME_SigRef
  3741. PDF_ENUM_NAME_Size = _mupdf.PDF_ENUM_NAME_Size
  3742. PDF_ENUM_NAME_Slash = _mupdf.PDF_ENUM_NAME_Slash
  3743. PDF_ENUM_NAME_Sold = _mupdf.PDF_ENUM_NAME_Sold
  3744. PDF_ENUM_NAME_Sound = _mupdf.PDF_ENUM_NAME_Sound
  3745. PDF_ENUM_NAME_Source = _mupdf.PDF_ENUM_NAME_Source
  3746. PDF_ENUM_NAME_Span = _mupdf.PDF_ENUM_NAME_Span
  3747. PDF_ENUM_NAME_Split = _mupdf.PDF_ENUM_NAME_Split
  3748. PDF_ENUM_NAME_Square = _mupdf.PDF_ENUM_NAME_Square
  3749. PDF_ENUM_NAME_Squiggly = _mupdf.PDF_ENUM_NAME_Squiggly
  3750. PDF_ENUM_NAME_St = _mupdf.PDF_ENUM_NAME_St
  3751. PDF_ENUM_NAME_Stamp = _mupdf.PDF_ENUM_NAME_Stamp
  3752. PDF_ENUM_NAME_StampImage = _mupdf.PDF_ENUM_NAME_StampImage
  3753. PDF_ENUM_NAME_StampSnapshot = _mupdf.PDF_ENUM_NAME_StampSnapshot
  3754. PDF_ENUM_NAME_Standard = _mupdf.PDF_ENUM_NAME_Standard
  3755. PDF_ENUM_NAME_StdCF = _mupdf.PDF_ENUM_NAME_StdCF
  3756. PDF_ENUM_NAME_StemV = _mupdf.PDF_ENUM_NAME_StemV
  3757. PDF_ENUM_NAME_StmF = _mupdf.PDF_ENUM_NAME_StmF
  3758. PDF_ENUM_NAME_StrF = _mupdf.PDF_ENUM_NAME_StrF
  3759. PDF_ENUM_NAME_StrikeOut = _mupdf.PDF_ENUM_NAME_StrikeOut
  3760. PDF_ENUM_NAME_Strong = _mupdf.PDF_ENUM_NAME_Strong
  3761. PDF_ENUM_NAME_StructParent = _mupdf.PDF_ENUM_NAME_StructParent
  3762. PDF_ENUM_NAME_StructParents = _mupdf.PDF_ENUM_NAME_StructParents
  3763. PDF_ENUM_NAME_StructTreeRoot = _mupdf.PDF_ENUM_NAME_StructTreeRoot
  3764. PDF_ENUM_NAME_Sub = _mupdf.PDF_ENUM_NAME_Sub
  3765. PDF_ENUM_NAME_SubFilter = _mupdf.PDF_ENUM_NAME_SubFilter
  3766. PDF_ENUM_NAME_Subject = _mupdf.PDF_ENUM_NAME_Subject
  3767. PDF_ENUM_NAME_Subtype = _mupdf.PDF_ENUM_NAME_Subtype
  3768. PDF_ENUM_NAME_Subtype2 = _mupdf.PDF_ENUM_NAME_Subtype2
  3769. PDF_ENUM_NAME_Supplement = _mupdf.PDF_ENUM_NAME_Supplement
  3770. PDF_ENUM_NAME_Symb = _mupdf.PDF_ENUM_NAME_Symb
  3771. PDF_ENUM_NAME_T = _mupdf.PDF_ENUM_NAME_T
  3772. PDF_ENUM_NAME_TBody = _mupdf.PDF_ENUM_NAME_TBody
  3773. PDF_ENUM_NAME_TD = _mupdf.PDF_ENUM_NAME_TD
  3774. PDF_ENUM_NAME_TFoot = _mupdf.PDF_ENUM_NAME_TFoot
  3775. PDF_ENUM_NAME_TH = _mupdf.PDF_ENUM_NAME_TH
  3776. PDF_ENUM_NAME_THead = _mupdf.PDF_ENUM_NAME_THead
  3777. PDF_ENUM_NAME_TI = _mupdf.PDF_ENUM_NAME_TI
  3778. PDF_ENUM_NAME_TOC = _mupdf.PDF_ENUM_NAME_TOC
  3779. PDF_ENUM_NAME_TOCI = _mupdf.PDF_ENUM_NAME_TOCI
  3780. PDF_ENUM_NAME_TR = _mupdf.PDF_ENUM_NAME_TR
  3781. PDF_ENUM_NAME_TR2 = _mupdf.PDF_ENUM_NAME_TR2
  3782. PDF_ENUM_NAME_TU = _mupdf.PDF_ENUM_NAME_TU
  3783. PDF_ENUM_NAME_Table = _mupdf.PDF_ENUM_NAME_Table
  3784. PDF_ENUM_NAME_Text = _mupdf.PDF_ENUM_NAME_Text
  3785. PDF_ENUM_NAME_Thumb = _mupdf.PDF_ENUM_NAME_Thumb
  3786. PDF_ENUM_NAME_TilingType = _mupdf.PDF_ENUM_NAME_TilingType
  3787. PDF_ENUM_NAME_Times = _mupdf.PDF_ENUM_NAME_Times
  3788. PDF_ENUM_NAME_Title = _mupdf.PDF_ENUM_NAME_Title
  3789. PDF_ENUM_NAME_ToUnicode = _mupdf.PDF_ENUM_NAME_ToUnicode
  3790. PDF_ENUM_NAME_Top = _mupdf.PDF_ENUM_NAME_Top
  3791. PDF_ENUM_NAME_TopSecret = _mupdf.PDF_ENUM_NAME_TopSecret
  3792. PDF_ENUM_NAME_Trans = _mupdf.PDF_ENUM_NAME_Trans
  3793. PDF_ENUM_NAME_TransformMethod = _mupdf.PDF_ENUM_NAME_TransformMethod
  3794. PDF_ENUM_NAME_TransformParams = _mupdf.PDF_ENUM_NAME_TransformParams
  3795. PDF_ENUM_NAME_Transparency = _mupdf.PDF_ENUM_NAME_Transparency
  3796. PDF_ENUM_NAME_TrapNet = _mupdf.PDF_ENUM_NAME_TrapNet
  3797. PDF_ENUM_NAME_TrimBox = _mupdf.PDF_ENUM_NAME_TrimBox
  3798. PDF_ENUM_NAME_TrueType = _mupdf.PDF_ENUM_NAME_TrueType
  3799. PDF_ENUM_NAME_TrustedMode = _mupdf.PDF_ENUM_NAME_TrustedMode
  3800. PDF_ENUM_NAME_Tx = _mupdf.PDF_ENUM_NAME_Tx
  3801. PDF_ENUM_NAME_Type = _mupdf.PDF_ENUM_NAME_Type
  3802. PDF_ENUM_NAME_Type0 = _mupdf.PDF_ENUM_NAME_Type0
  3803. PDF_ENUM_NAME_Type1 = _mupdf.PDF_ENUM_NAME_Type1
  3804. PDF_ENUM_NAME_Type1C = _mupdf.PDF_ENUM_NAME_Type1C
  3805. PDF_ENUM_NAME_Type3 = _mupdf.PDF_ENUM_NAME_Type3
  3806. PDF_ENUM_NAME_U = _mupdf.PDF_ENUM_NAME_U
  3807. PDF_ENUM_NAME_UE = _mupdf.PDF_ENUM_NAME_UE
  3808. PDF_ENUM_NAME_UF = _mupdf.PDF_ENUM_NAME_UF
  3809. PDF_ENUM_NAME_URI = _mupdf.PDF_ENUM_NAME_URI
  3810. PDF_ENUM_NAME_URL = _mupdf.PDF_ENUM_NAME_URL
  3811. PDF_ENUM_NAME_Unchanged = _mupdf.PDF_ENUM_NAME_Unchanged
  3812. PDF_ENUM_NAME_Uncover = _mupdf.PDF_ENUM_NAME_Uncover
  3813. PDF_ENUM_NAME_Underline = _mupdf.PDF_ENUM_NAME_Underline
  3814. PDF_ENUM_NAME_Unix = _mupdf.PDF_ENUM_NAME_Unix
  3815. PDF_ENUM_NAME_Unspecified = _mupdf.PDF_ENUM_NAME_Unspecified
  3816. PDF_ENUM_NAME_Usage = _mupdf.PDF_ENUM_NAME_Usage
  3817. PDF_ENUM_NAME_UseBlackPtComp = _mupdf.PDF_ENUM_NAME_UseBlackPtComp
  3818. PDF_ENUM_NAME_UseCMap = _mupdf.PDF_ENUM_NAME_UseCMap
  3819. PDF_ENUM_NAME_UseOutlines = _mupdf.PDF_ENUM_NAME_UseOutlines
  3820. PDF_ENUM_NAME_UserUnit = _mupdf.PDF_ENUM_NAME_UserUnit
  3821. PDF_ENUM_NAME_V = _mupdf.PDF_ENUM_NAME_V
  3822. PDF_ENUM_NAME_V2 = _mupdf.PDF_ENUM_NAME_V2
  3823. PDF_ENUM_NAME_VE = _mupdf.PDF_ENUM_NAME_VE
  3824. PDF_ENUM_NAME_Version = _mupdf.PDF_ENUM_NAME_Version
  3825. PDF_ENUM_NAME_Vertices = _mupdf.PDF_ENUM_NAME_Vertices
  3826. PDF_ENUM_NAME_VerticesPerRow = _mupdf.PDF_ENUM_NAME_VerticesPerRow
  3827. PDF_ENUM_NAME_View = _mupdf.PDF_ENUM_NAME_View
  3828. PDF_ENUM_NAME_W = _mupdf.PDF_ENUM_NAME_W
  3829. PDF_ENUM_NAME_W2 = _mupdf.PDF_ENUM_NAME_W2
  3830. PDF_ENUM_NAME_WMode = _mupdf.PDF_ENUM_NAME_WMode
  3831. PDF_ENUM_NAME_WP = _mupdf.PDF_ENUM_NAME_WP
  3832. PDF_ENUM_NAME_WT = _mupdf.PDF_ENUM_NAME_WT
  3833. PDF_ENUM_NAME_Warichu = _mupdf.PDF_ENUM_NAME_Warichu
  3834. PDF_ENUM_NAME_Watermark = _mupdf.PDF_ENUM_NAME_Watermark
  3835. PDF_ENUM_NAME_WhitePoint = _mupdf.PDF_ENUM_NAME_WhitePoint
  3836. PDF_ENUM_NAME_Widget = _mupdf.PDF_ENUM_NAME_Widget
  3837. PDF_ENUM_NAME_Width = _mupdf.PDF_ENUM_NAME_Width
  3838. PDF_ENUM_NAME_Widths = _mupdf.PDF_ENUM_NAME_Widths
  3839. PDF_ENUM_NAME_WinAnsiEncoding = _mupdf.PDF_ENUM_NAME_WinAnsiEncoding
  3840. PDF_ENUM_NAME_Wipe = _mupdf.PDF_ENUM_NAME_Wipe
  3841. PDF_ENUM_NAME_XFA = _mupdf.PDF_ENUM_NAME_XFA
  3842. PDF_ENUM_NAME_XHeight = _mupdf.PDF_ENUM_NAME_XHeight
  3843. PDF_ENUM_NAME_XML = _mupdf.PDF_ENUM_NAME_XML
  3844. PDF_ENUM_NAME_XObject = _mupdf.PDF_ENUM_NAME_XObject
  3845. PDF_ENUM_NAME_XRef = _mupdf.PDF_ENUM_NAME_XRef
  3846. PDF_ENUM_NAME_XRefStm = _mupdf.PDF_ENUM_NAME_XRefStm
  3847. PDF_ENUM_NAME_XStep = _mupdf.PDF_ENUM_NAME_XStep
  3848. PDF_ENUM_NAME_XYZ = _mupdf.PDF_ENUM_NAME_XYZ
  3849. PDF_ENUM_NAME_YStep = _mupdf.PDF_ENUM_NAME_YStep
  3850. PDF_ENUM_NAME_Yes = _mupdf.PDF_ENUM_NAME_Yes
  3851. PDF_ENUM_NAME_ZaDb = _mupdf.PDF_ENUM_NAME_ZaDb
  3852. PDF_ENUM_NAME_a = _mupdf.PDF_ENUM_NAME_a
  3853. PDF_ENUM_NAME_adbe_pkcs7_detached = _mupdf.PDF_ENUM_NAME_adbe_pkcs7_detached
  3854. PDF_ENUM_NAME_ca = _mupdf.PDF_ENUM_NAME_ca
  3855. PDF_ENUM_NAME_n0 = _mupdf.PDF_ENUM_NAME_n0
  3856. PDF_ENUM_NAME_n1 = _mupdf.PDF_ENUM_NAME_n1
  3857. PDF_ENUM_NAME_n2 = _mupdf.PDF_ENUM_NAME_n2
  3858. PDF_ENUM_NAME_op = _mupdf.PDF_ENUM_NAME_op
  3859. PDF_ENUM_NAME_r = _mupdf.PDF_ENUM_NAME_r
  3860. PDF_ENUM_LIMIT = _mupdf.PDF_ENUM_LIMIT
  3861. PDF_LEXBUF_SMALL = _mupdf.PDF_LEXBUF_SMALL
  3862. PDF_LEXBUF_LARGE = _mupdf.PDF_LEXBUF_LARGE
  3863. class pdf_lexbuf(object):
  3864. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3865. __repr__ = _swig_repr
  3866. size = property(_mupdf.pdf_lexbuf_size_get, _mupdf.pdf_lexbuf_size_set)
  3867. base_size = property(_mupdf.pdf_lexbuf_base_size_get, _mupdf.pdf_lexbuf_base_size_set)
  3868. len = property(_mupdf.pdf_lexbuf_len_get, _mupdf.pdf_lexbuf_len_set)
  3869. i = property(_mupdf.pdf_lexbuf_i_get, _mupdf.pdf_lexbuf_i_set)
  3870. f = property(_mupdf.pdf_lexbuf_f_get, _mupdf.pdf_lexbuf_f_set)
  3871. scratch = property(_mupdf.pdf_lexbuf_scratch_get, _mupdf.pdf_lexbuf_scratch_set)
  3872. buffer = property(_mupdf.pdf_lexbuf_buffer_get, _mupdf.pdf_lexbuf_buffer_set)
  3873. def __init__(self):
  3874. _mupdf.pdf_lexbuf_swiginit(self, _mupdf.new_pdf_lexbuf())
  3875. __swig_destroy__ = _mupdf.delete_pdf_lexbuf
  3876. # Register pdf_lexbuf in _mupdf:
  3877. _mupdf.pdf_lexbuf_swigregister(pdf_lexbuf)
  3878. class pdf_lexbuf_large(object):
  3879. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3880. __repr__ = _swig_repr
  3881. base = property(_mupdf.pdf_lexbuf_large_base_get, _mupdf.pdf_lexbuf_large_base_set)
  3882. buffer = property(_mupdf.pdf_lexbuf_large_buffer_get, _mupdf.pdf_lexbuf_large_buffer_set)
  3883. def __init__(self):
  3884. _mupdf.pdf_lexbuf_large_swiginit(self, _mupdf.new_pdf_lexbuf_large())
  3885. __swig_destroy__ = _mupdf.delete_pdf_lexbuf_large
  3886. # Register pdf_lexbuf_large in _mupdf:
  3887. _mupdf.pdf_lexbuf_large_swigregister(pdf_lexbuf_large)
  3888. class pdf_js_console(object):
  3889. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3890. __repr__ = _swig_repr
  3891. drop = property(_mupdf.pdf_js_console_drop_get, _mupdf.pdf_js_console_drop_set)
  3892. show = property(_mupdf.pdf_js_console_show_get, _mupdf.pdf_js_console_show_set)
  3893. hide = property(_mupdf.pdf_js_console_hide_get, _mupdf.pdf_js_console_hide_set)
  3894. clear = property(_mupdf.pdf_js_console_clear_get, _mupdf.pdf_js_console_clear_set)
  3895. write = property(_mupdf.pdf_js_console_write_get, _mupdf.pdf_js_console_write_set)
  3896. def __init__(self):
  3897. _mupdf.pdf_js_console_swiginit(self, _mupdf.new_pdf_js_console())
  3898. __swig_destroy__ = _mupdf.delete_pdf_js_console
  3899. # Register pdf_js_console in _mupdf:
  3900. _mupdf.pdf_js_console_swigregister(pdf_js_console)
  3901. class pdf_layer_config(object):
  3902. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3903. __repr__ = _swig_repr
  3904. name = property(_mupdf.pdf_layer_config_name_get, _mupdf.pdf_layer_config_name_set)
  3905. creator = property(_mupdf.pdf_layer_config_creator_get, _mupdf.pdf_layer_config_creator_set)
  3906. def __init__(self):
  3907. _mupdf.pdf_layer_config_swiginit(self, _mupdf.new_pdf_layer_config())
  3908. __swig_destroy__ = _mupdf.delete_pdf_layer_config
  3909. # Register pdf_layer_config in _mupdf:
  3910. _mupdf.pdf_layer_config_swigregister(pdf_layer_config)
  3911. PDF_LAYER_UI_LABEL = _mupdf.PDF_LAYER_UI_LABEL
  3912. PDF_LAYER_UI_CHECKBOX = _mupdf.PDF_LAYER_UI_CHECKBOX
  3913. PDF_LAYER_UI_RADIOBOX = _mupdf.PDF_LAYER_UI_RADIOBOX
  3914. class pdf_layer_config_ui(object):
  3915. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3916. __repr__ = _swig_repr
  3917. text = property(_mupdf.pdf_layer_config_ui_text_get, _mupdf.pdf_layer_config_ui_text_set)
  3918. depth = property(_mupdf.pdf_layer_config_ui_depth_get, _mupdf.pdf_layer_config_ui_depth_set)
  3919. type = property(_mupdf.pdf_layer_config_ui_type_get, _mupdf.pdf_layer_config_ui_type_set)
  3920. selected = property(_mupdf.pdf_layer_config_ui_selected_get, _mupdf.pdf_layer_config_ui_selected_set)
  3921. locked = property(_mupdf.pdf_layer_config_ui_locked_get, _mupdf.pdf_layer_config_ui_locked_set)
  3922. def __init__(self):
  3923. _mupdf.pdf_layer_config_ui_swiginit(self, _mupdf.new_pdf_layer_config_ui())
  3924. __swig_destroy__ = _mupdf.delete_pdf_layer_config_ui
  3925. # Register pdf_layer_config_ui in _mupdf:
  3926. _mupdf.pdf_layer_config_ui_swigregister(pdf_layer_config_ui)
  3927. class pdf_unsaved_sig(object):
  3928. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3929. __repr__ = _swig_repr
  3930. field = property(_mupdf.pdf_unsaved_sig_field_get, _mupdf.pdf_unsaved_sig_field_set)
  3931. byte_range_start = property(_mupdf.pdf_unsaved_sig_byte_range_start_get, _mupdf.pdf_unsaved_sig_byte_range_start_set)
  3932. byte_range_end = property(_mupdf.pdf_unsaved_sig_byte_range_end_get, _mupdf.pdf_unsaved_sig_byte_range_end_set)
  3933. contents_start = property(_mupdf.pdf_unsaved_sig_contents_start_get, _mupdf.pdf_unsaved_sig_contents_start_set)
  3934. contents_end = property(_mupdf.pdf_unsaved_sig_contents_end_get, _mupdf.pdf_unsaved_sig_contents_end_set)
  3935. signer = property(_mupdf.pdf_unsaved_sig_signer_get, _mupdf.pdf_unsaved_sig_signer_set)
  3936. next = property(_mupdf.pdf_unsaved_sig_next_get, _mupdf.pdf_unsaved_sig_next_set)
  3937. def __init__(self):
  3938. _mupdf.pdf_unsaved_sig_swiginit(self, _mupdf.new_pdf_unsaved_sig())
  3939. __swig_destroy__ = _mupdf.delete_pdf_unsaved_sig
  3940. # Register pdf_unsaved_sig in _mupdf:
  3941. _mupdf.pdf_unsaved_sig_swigregister(pdf_unsaved_sig)
  3942. class pdf_rev_page_map(object):
  3943. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3944. __repr__ = _swig_repr
  3945. page = property(_mupdf.pdf_rev_page_map_page_get, _mupdf.pdf_rev_page_map_page_set)
  3946. object = property(_mupdf.pdf_rev_page_map_object_get, _mupdf.pdf_rev_page_map_object_set)
  3947. def __init__(self):
  3948. _mupdf.pdf_rev_page_map_swiginit(self, _mupdf.new_pdf_rev_page_map())
  3949. __swig_destroy__ = _mupdf.delete_pdf_rev_page_map
  3950. # Register pdf_rev_page_map in _mupdf:
  3951. _mupdf.pdf_rev_page_map_swigregister(pdf_rev_page_map)
  3952. class pdf_hint_page(object):
  3953. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3954. __repr__ = _swig_repr
  3955. number = property(_mupdf.pdf_hint_page_number_get, _mupdf.pdf_hint_page_number_set)
  3956. offset = property(_mupdf.pdf_hint_page_offset_get, _mupdf.pdf_hint_page_offset_set)
  3957. index = property(_mupdf.pdf_hint_page_index_get, _mupdf.pdf_hint_page_index_set)
  3958. def __init__(self):
  3959. _mupdf.pdf_hint_page_swiginit(self, _mupdf.new_pdf_hint_page())
  3960. __swig_destroy__ = _mupdf.delete_pdf_hint_page
  3961. # Register pdf_hint_page in _mupdf:
  3962. _mupdf.pdf_hint_page_swigregister(pdf_hint_page)
  3963. class pdf_hint_shared(object):
  3964. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3965. __repr__ = _swig_repr
  3966. number = property(_mupdf.pdf_hint_shared_number_get, _mupdf.pdf_hint_shared_number_set)
  3967. offset = property(_mupdf.pdf_hint_shared_offset_get, _mupdf.pdf_hint_shared_offset_set)
  3968. def __init__(self):
  3969. _mupdf.pdf_hint_shared_swiginit(self, _mupdf.new_pdf_hint_shared())
  3970. __swig_destroy__ = _mupdf.delete_pdf_hint_shared
  3971. # Register pdf_hint_shared in _mupdf:
  3972. _mupdf.pdf_hint_shared_swigregister(pdf_hint_shared)
  3973. class pdf_document(object):
  3974. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3975. __repr__ = _swig_repr
  3976. super = property(_mupdf.pdf_document_super_get, _mupdf.pdf_document_super_set)
  3977. file = property(_mupdf.pdf_document_file_get, _mupdf.pdf_document_file_set)
  3978. version = property(_mupdf.pdf_document_version_get, _mupdf.pdf_document_version_set)
  3979. is_fdf = property(_mupdf.pdf_document_is_fdf_get, _mupdf.pdf_document_is_fdf_set)
  3980. bias = property(_mupdf.pdf_document_bias_get, _mupdf.pdf_document_bias_set)
  3981. startxref = property(_mupdf.pdf_document_startxref_get, _mupdf.pdf_document_startxref_set)
  3982. file_size = property(_mupdf.pdf_document_file_size_get, _mupdf.pdf_document_file_size_set)
  3983. crypt = property(_mupdf.pdf_document_crypt_get, _mupdf.pdf_document_crypt_set)
  3984. ocg = property(_mupdf.pdf_document_ocg_get, _mupdf.pdf_document_ocg_set)
  3985. oi = property(_mupdf.pdf_document_oi_get, _mupdf.pdf_document_oi_set)
  3986. max_xref_len = property(_mupdf.pdf_document_max_xref_len_get, _mupdf.pdf_document_max_xref_len_set)
  3987. num_xref_sections = property(_mupdf.pdf_document_num_xref_sections_get, _mupdf.pdf_document_num_xref_sections_set)
  3988. saved_num_xref_sections = property(_mupdf.pdf_document_saved_num_xref_sections_get, _mupdf.pdf_document_saved_num_xref_sections_set)
  3989. num_incremental_sections = property(_mupdf.pdf_document_num_incremental_sections_get, _mupdf.pdf_document_num_incremental_sections_set)
  3990. xref_base = property(_mupdf.pdf_document_xref_base_get, _mupdf.pdf_document_xref_base_set)
  3991. disallow_new_increments = property(_mupdf.pdf_document_disallow_new_increments_get, _mupdf.pdf_document_disallow_new_increments_set)
  3992. local_xref = property(_mupdf.pdf_document_local_xref_get, _mupdf.pdf_document_local_xref_set)
  3993. local_xref_nesting = property(_mupdf.pdf_document_local_xref_nesting_get, _mupdf.pdf_document_local_xref_nesting_set)
  3994. xref_sections = property(_mupdf.pdf_document_xref_sections_get, _mupdf.pdf_document_xref_sections_set)
  3995. saved_xref_sections = property(_mupdf.pdf_document_saved_xref_sections_get, _mupdf.pdf_document_saved_xref_sections_set)
  3996. xref_index = property(_mupdf.pdf_document_xref_index_get, _mupdf.pdf_document_xref_index_set)
  3997. save_in_progress = property(_mupdf.pdf_document_save_in_progress_get, _mupdf.pdf_document_save_in_progress_set)
  3998. last_xref_was_old_style = property(_mupdf.pdf_document_last_xref_was_old_style_get, _mupdf.pdf_document_last_xref_was_old_style_set)
  3999. has_linearization_object = property(_mupdf.pdf_document_has_linearization_object_get, _mupdf.pdf_document_has_linearization_object_set)
  4000. map_page_count = property(_mupdf.pdf_document_map_page_count_get, _mupdf.pdf_document_map_page_count_set)
  4001. rev_page_map = property(_mupdf.pdf_document_rev_page_map_get, _mupdf.pdf_document_rev_page_map_set)
  4002. fwd_page_map = property(_mupdf.pdf_document_fwd_page_map_get, _mupdf.pdf_document_fwd_page_map_set)
  4003. page_tree_broken = property(_mupdf.pdf_document_page_tree_broken_get, _mupdf.pdf_document_page_tree_broken_set)
  4004. repair_attempted = property(_mupdf.pdf_document_repair_attempted_get, _mupdf.pdf_document_repair_attempted_set)
  4005. repair_in_progress = property(_mupdf.pdf_document_repair_in_progress_get, _mupdf.pdf_document_repair_in_progress_set)
  4006. non_structural_change = property(_mupdf.pdf_document_non_structural_change_get, _mupdf.pdf_document_non_structural_change_set)
  4007. file_reading_linearly = property(_mupdf.pdf_document_file_reading_linearly_get, _mupdf.pdf_document_file_reading_linearly_set)
  4008. file_length = property(_mupdf.pdf_document_file_length_get, _mupdf.pdf_document_file_length_set)
  4009. linear_page_count = property(_mupdf.pdf_document_linear_page_count_get, _mupdf.pdf_document_linear_page_count_set)
  4010. linear_obj = property(_mupdf.pdf_document_linear_obj_get, _mupdf.pdf_document_linear_obj_set)
  4011. linear_page_refs = property(_mupdf.pdf_document_linear_page_refs_get, _mupdf.pdf_document_linear_page_refs_set)
  4012. linear_page1_obj_num = property(_mupdf.pdf_document_linear_page1_obj_num_get, _mupdf.pdf_document_linear_page1_obj_num_set)
  4013. linear_pos = property(_mupdf.pdf_document_linear_pos_get, _mupdf.pdf_document_linear_pos_set)
  4014. linear_page_num = property(_mupdf.pdf_document_linear_page_num_get, _mupdf.pdf_document_linear_page_num_set)
  4015. hint_object_offset = property(_mupdf.pdf_document_hint_object_offset_get, _mupdf.pdf_document_hint_object_offset_set)
  4016. hint_object_length = property(_mupdf.pdf_document_hint_object_length_get, _mupdf.pdf_document_hint_object_length_set)
  4017. hints_loaded = property(_mupdf.pdf_document_hints_loaded_get, _mupdf.pdf_document_hints_loaded_set)
  4018. hint_page = property(_mupdf.pdf_document_hint_page_get, _mupdf.pdf_document_hint_page_set)
  4019. hint_shared_ref = property(_mupdf.pdf_document_hint_shared_ref_get, _mupdf.pdf_document_hint_shared_ref_set)
  4020. hint_shared = property(_mupdf.pdf_document_hint_shared_get, _mupdf.pdf_document_hint_shared_set)
  4021. hint_obj_offsets_max = property(_mupdf.pdf_document_hint_obj_offsets_max_get, _mupdf.pdf_document_hint_obj_offsets_max_set)
  4022. hint_obj_offsets = property(_mupdf.pdf_document_hint_obj_offsets_get, _mupdf.pdf_document_hint_obj_offsets_set)
  4023. lexbuf = property(_mupdf.pdf_document_lexbuf_get, _mupdf.pdf_document_lexbuf_set)
  4024. js = property(_mupdf.pdf_document_js_get, _mupdf.pdf_document_js_set)
  4025. recalculate = property(_mupdf.pdf_document_recalculate_get, _mupdf.pdf_document_recalculate_set)
  4026. redacted = property(_mupdf.pdf_document_redacted_get, _mupdf.pdf_document_redacted_set)
  4027. resynth_required = property(_mupdf.pdf_document_resynth_required_get, _mupdf.pdf_document_resynth_required_set)
  4028. event_cb = property(_mupdf.pdf_document_event_cb_get, _mupdf.pdf_document_event_cb_set)
  4029. free_event_data_cb = property(_mupdf.pdf_document_free_event_data_cb_get, _mupdf.pdf_document_free_event_data_cb_set)
  4030. event_cb_data = property(_mupdf.pdf_document_event_cb_data_get, _mupdf.pdf_document_event_cb_data_set)
  4031. num_type3_fonts = property(_mupdf.pdf_document_num_type3_fonts_get, _mupdf.pdf_document_num_type3_fonts_set)
  4032. max_type3_fonts = property(_mupdf.pdf_document_max_type3_fonts_get, _mupdf.pdf_document_max_type3_fonts_set)
  4033. type3_fonts = property(_mupdf.pdf_document_type3_fonts_get, _mupdf.pdf_document_type3_fonts_set)
  4034. orphans_max = property(_mupdf.pdf_document_orphans_max_get, _mupdf.pdf_document_orphans_max_set)
  4035. orphans_count = property(_mupdf.pdf_document_orphans_count_get, _mupdf.pdf_document_orphans_count_set)
  4036. orphans = property(_mupdf.pdf_document_orphans_get, _mupdf.pdf_document_orphans_set)
  4037. xfa = property(_mupdf.pdf_document_xfa_get, _mupdf.pdf_document_xfa_set)
  4038. journal = property(_mupdf.pdf_document_journal_get, _mupdf.pdf_document_journal_set)
  4039. def __init__(self):
  4040. _mupdf.pdf_document_swiginit(self, _mupdf.new_pdf_document())
  4041. __swig_destroy__ = _mupdf.delete_pdf_document
  4042. # Register pdf_document in _mupdf:
  4043. _mupdf.pdf_document_swigregister(pdf_document)
  4044. PDF_PAGE_LABEL_NONE = _mupdf.PDF_PAGE_LABEL_NONE
  4045. PDF_PAGE_LABEL_DECIMAL = _mupdf.PDF_PAGE_LABEL_DECIMAL
  4046. PDF_PAGE_LABEL_ROMAN_UC = _mupdf.PDF_PAGE_LABEL_ROMAN_UC
  4047. PDF_PAGE_LABEL_ROMAN_LC = _mupdf.PDF_PAGE_LABEL_ROMAN_LC
  4048. PDF_PAGE_LABEL_ALPHA_UC = _mupdf.PDF_PAGE_LABEL_ALPHA_UC
  4049. PDF_PAGE_LABEL_ALPHA_LC = _mupdf.PDF_PAGE_LABEL_ALPHA_LC
  4050. class pdf_write_options(object):
  4051. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4052. __repr__ = _swig_repr
  4053. do_incremental = property(_mupdf.pdf_write_options_do_incremental_get, _mupdf.pdf_write_options_do_incremental_set)
  4054. do_pretty = property(_mupdf.pdf_write_options_do_pretty_get, _mupdf.pdf_write_options_do_pretty_set)
  4055. do_ascii = property(_mupdf.pdf_write_options_do_ascii_get, _mupdf.pdf_write_options_do_ascii_set)
  4056. do_compress = property(_mupdf.pdf_write_options_do_compress_get, _mupdf.pdf_write_options_do_compress_set)
  4057. do_compress_images = property(_mupdf.pdf_write_options_do_compress_images_get, _mupdf.pdf_write_options_do_compress_images_set)
  4058. do_compress_fonts = property(_mupdf.pdf_write_options_do_compress_fonts_get, _mupdf.pdf_write_options_do_compress_fonts_set)
  4059. do_decompress = property(_mupdf.pdf_write_options_do_decompress_get, _mupdf.pdf_write_options_do_decompress_set)
  4060. do_garbage = property(_mupdf.pdf_write_options_do_garbage_get, _mupdf.pdf_write_options_do_garbage_set)
  4061. do_linear = property(_mupdf.pdf_write_options_do_linear_get, _mupdf.pdf_write_options_do_linear_set)
  4062. do_clean = property(_mupdf.pdf_write_options_do_clean_get, _mupdf.pdf_write_options_do_clean_set)
  4063. do_sanitize = property(_mupdf.pdf_write_options_do_sanitize_get, _mupdf.pdf_write_options_do_sanitize_set)
  4064. do_appearance = property(_mupdf.pdf_write_options_do_appearance_get, _mupdf.pdf_write_options_do_appearance_set)
  4065. do_encrypt = property(_mupdf.pdf_write_options_do_encrypt_get, _mupdf.pdf_write_options_do_encrypt_set)
  4066. dont_regenerate_id = property(_mupdf.pdf_write_options_dont_regenerate_id_get, _mupdf.pdf_write_options_dont_regenerate_id_set)
  4067. permissions = property(_mupdf.pdf_write_options_permissions_get, _mupdf.pdf_write_options_permissions_set)
  4068. opwd_utf8 = property(_mupdf.pdf_write_options_opwd_utf8_get, _mupdf.pdf_write_options_opwd_utf8_set)
  4069. upwd_utf8 = property(_mupdf.pdf_write_options_upwd_utf8_get, _mupdf.pdf_write_options_upwd_utf8_set)
  4070. do_snapshot = property(_mupdf.pdf_write_options_do_snapshot_get, _mupdf.pdf_write_options_do_snapshot_set)
  4071. do_preserve_metadata = property(_mupdf.pdf_write_options_do_preserve_metadata_get, _mupdf.pdf_write_options_do_preserve_metadata_set)
  4072. do_use_objstms = property(_mupdf.pdf_write_options_do_use_objstms_get, _mupdf.pdf_write_options_do_use_objstms_set)
  4073. compression_effort = property(_mupdf.pdf_write_options_compression_effort_get, _mupdf.pdf_write_options_compression_effort_set)
  4074. do_labels = property(_mupdf.pdf_write_options_do_labels_get, _mupdf.pdf_write_options_do_labels_set)
  4075. def __init__(self):
  4076. _mupdf.pdf_write_options_swiginit(self, _mupdf.new_pdf_write_options())
  4077. __swig_destroy__ = _mupdf.delete_pdf_write_options
  4078. # Register pdf_write_options in _mupdf:
  4079. _mupdf.pdf_write_options_swigregister(pdf_write_options)
  4080. PDF_TOK_ERROR = _mupdf.PDF_TOK_ERROR
  4081. PDF_TOK_EOF = _mupdf.PDF_TOK_EOF
  4082. PDF_TOK_OPEN_ARRAY = _mupdf.PDF_TOK_OPEN_ARRAY
  4083. PDF_TOK_CLOSE_ARRAY = _mupdf.PDF_TOK_CLOSE_ARRAY
  4084. PDF_TOK_OPEN_DICT = _mupdf.PDF_TOK_OPEN_DICT
  4085. PDF_TOK_CLOSE_DICT = _mupdf.PDF_TOK_CLOSE_DICT
  4086. PDF_TOK_OPEN_BRACE = _mupdf.PDF_TOK_OPEN_BRACE
  4087. PDF_TOK_CLOSE_BRACE = _mupdf.PDF_TOK_CLOSE_BRACE
  4088. PDF_TOK_NAME = _mupdf.PDF_TOK_NAME
  4089. PDF_TOK_INT = _mupdf.PDF_TOK_INT
  4090. PDF_TOK_REAL = _mupdf.PDF_TOK_REAL
  4091. PDF_TOK_STRING = _mupdf.PDF_TOK_STRING
  4092. PDF_TOK_KEYWORD = _mupdf.PDF_TOK_KEYWORD
  4093. PDF_TOK_R = _mupdf.PDF_TOK_R
  4094. PDF_TOK_TRUE = _mupdf.PDF_TOK_TRUE
  4095. PDF_TOK_FALSE = _mupdf.PDF_TOK_FALSE
  4096. PDF_TOK_NULL = _mupdf.PDF_TOK_NULL
  4097. PDF_TOK_OBJ = _mupdf.PDF_TOK_OBJ
  4098. PDF_TOK_ENDOBJ = _mupdf.PDF_TOK_ENDOBJ
  4099. PDF_TOK_STREAM = _mupdf.PDF_TOK_STREAM
  4100. PDF_TOK_ENDSTREAM = _mupdf.PDF_TOK_ENDSTREAM
  4101. PDF_TOK_XREF = _mupdf.PDF_TOK_XREF
  4102. PDF_TOK_TRAILER = _mupdf.PDF_TOK_TRAILER
  4103. PDF_TOK_STARTXREF = _mupdf.PDF_TOK_STARTXREF
  4104. PDF_TOK_NEWOBJ = _mupdf.PDF_TOK_NEWOBJ
  4105. PDF_NUM_TOKENS = _mupdf.PDF_NUM_TOKENS
  4106. class pdf_xref_entry(object):
  4107. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4108. __repr__ = _swig_repr
  4109. type = property(_mupdf.pdf_xref_entry_type_get, _mupdf.pdf_xref_entry_type_set)
  4110. marked = property(_mupdf.pdf_xref_entry_marked_get, _mupdf.pdf_xref_entry_marked_set)
  4111. gen = property(_mupdf.pdf_xref_entry_gen_get, _mupdf.pdf_xref_entry_gen_set)
  4112. num = property(_mupdf.pdf_xref_entry_num_get, _mupdf.pdf_xref_entry_num_set)
  4113. ofs = property(_mupdf.pdf_xref_entry_ofs_get, _mupdf.pdf_xref_entry_ofs_set)
  4114. stm_ofs = property(_mupdf.pdf_xref_entry_stm_ofs_get, _mupdf.pdf_xref_entry_stm_ofs_set)
  4115. stm_buf = property(_mupdf.pdf_xref_entry_stm_buf_get, _mupdf.pdf_xref_entry_stm_buf_set)
  4116. obj = property(_mupdf.pdf_xref_entry_obj_get, _mupdf.pdf_xref_entry_obj_set)
  4117. def __init__(self):
  4118. _mupdf.pdf_xref_entry_swiginit(self, _mupdf.new_pdf_xref_entry())
  4119. __swig_destroy__ = _mupdf.delete_pdf_xref_entry
  4120. # Register pdf_xref_entry in _mupdf:
  4121. _mupdf.pdf_xref_entry_swigregister(pdf_xref_entry)
  4122. pdf_default_write_options = cvar.pdf_default_write_options
  4123. class pdf_xref_subsec(object):
  4124. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4125. __repr__ = _swig_repr
  4126. next = property(_mupdf.pdf_xref_subsec_next_get, _mupdf.pdf_xref_subsec_next_set)
  4127. len = property(_mupdf.pdf_xref_subsec_len_get, _mupdf.pdf_xref_subsec_len_set)
  4128. start = property(_mupdf.pdf_xref_subsec_start_get, _mupdf.pdf_xref_subsec_start_set)
  4129. table = property(_mupdf.pdf_xref_subsec_table_get, _mupdf.pdf_xref_subsec_table_set)
  4130. def __init__(self):
  4131. _mupdf.pdf_xref_subsec_swiginit(self, _mupdf.new_pdf_xref_subsec())
  4132. __swig_destroy__ = _mupdf.delete_pdf_xref_subsec
  4133. # Register pdf_xref_subsec in _mupdf:
  4134. _mupdf.pdf_xref_subsec_swigregister(pdf_xref_subsec)
  4135. class pdf_xref(object):
  4136. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4137. __repr__ = _swig_repr
  4138. num_objects = property(_mupdf.pdf_xref_num_objects_get, _mupdf.pdf_xref_num_objects_set)
  4139. subsec = property(_mupdf.pdf_xref_subsec_get, _mupdf.pdf_xref_subsec_set)
  4140. trailer = property(_mupdf.pdf_xref_trailer_get, _mupdf.pdf_xref_trailer_set)
  4141. pre_repair_trailer = property(_mupdf.pdf_xref_pre_repair_trailer_get, _mupdf.pdf_xref_pre_repair_trailer_set)
  4142. unsaved_sigs = property(_mupdf.pdf_xref_unsaved_sigs_get, _mupdf.pdf_xref_unsaved_sigs_set)
  4143. unsaved_sigs_end = property(_mupdf.pdf_xref_unsaved_sigs_end_get, _mupdf.pdf_xref_unsaved_sigs_end_set)
  4144. end_ofs = property(_mupdf.pdf_xref_end_ofs_get, _mupdf.pdf_xref_end_ofs_set)
  4145. def __init__(self):
  4146. _mupdf.pdf_xref_swiginit(self, _mupdf.new_pdf_xref())
  4147. __swig_destroy__ = _mupdf.delete_pdf_xref
  4148. # Register pdf_xref in _mupdf:
  4149. _mupdf.pdf_xref_swigregister(pdf_xref)
  4150. PDF_ENCRYPT_KEEP = _mupdf.PDF_ENCRYPT_KEEP
  4151. PDF_ENCRYPT_NONE = _mupdf.PDF_ENCRYPT_NONE
  4152. PDF_ENCRYPT_RC4_40 = _mupdf.PDF_ENCRYPT_RC4_40
  4153. PDF_ENCRYPT_RC4_128 = _mupdf.PDF_ENCRYPT_RC4_128
  4154. PDF_ENCRYPT_AES_128 = _mupdf.PDF_ENCRYPT_AES_128
  4155. PDF_ENCRYPT_AES_256 = _mupdf.PDF_ENCRYPT_AES_256
  4156. PDF_ENCRYPT_UNKNOWN = _mupdf.PDF_ENCRYPT_UNKNOWN
  4157. PDF_PERM_PRINT = _mupdf.PDF_PERM_PRINT
  4158. PDF_PERM_MODIFY = _mupdf.PDF_PERM_MODIFY
  4159. PDF_PERM_COPY = _mupdf.PDF_PERM_COPY
  4160. PDF_PERM_ANNOTATE = _mupdf.PDF_PERM_ANNOTATE
  4161. PDF_PERM_FORM = _mupdf.PDF_PERM_FORM
  4162. PDF_PERM_ACCESSIBILITY = _mupdf.PDF_PERM_ACCESSIBILITY
  4163. PDF_PERM_ASSEMBLE = _mupdf.PDF_PERM_ASSEMBLE
  4164. PDF_PERM_PRINT_HQ = _mupdf.PDF_PERM_PRINT_HQ
  4165. PDF_MRANGE_CAP = _mupdf.PDF_MRANGE_CAP
  4166. class pdf_range(object):
  4167. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4168. __repr__ = _swig_repr
  4169. low = property(_mupdf.pdf_range_low_get, _mupdf.pdf_range_low_set)
  4170. high = property(_mupdf.pdf_range_high_get, _mupdf.pdf_range_high_set)
  4171. out = property(_mupdf.pdf_range_out_get, _mupdf.pdf_range_out_set)
  4172. def __init__(self):
  4173. _mupdf.pdf_range_swiginit(self, _mupdf.new_pdf_range())
  4174. __swig_destroy__ = _mupdf.delete_pdf_range
  4175. # Register pdf_range in _mupdf:
  4176. _mupdf.pdf_range_swigregister(pdf_range)
  4177. class pdf_xrange(object):
  4178. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4179. __repr__ = _swig_repr
  4180. low = property(_mupdf.pdf_xrange_low_get, _mupdf.pdf_xrange_low_set)
  4181. high = property(_mupdf.pdf_xrange_high_get, _mupdf.pdf_xrange_high_set)
  4182. out = property(_mupdf.pdf_xrange_out_get, _mupdf.pdf_xrange_out_set)
  4183. def __init__(self):
  4184. _mupdf.pdf_xrange_swiginit(self, _mupdf.new_pdf_xrange())
  4185. __swig_destroy__ = _mupdf.delete_pdf_xrange
  4186. # Register pdf_xrange in _mupdf:
  4187. _mupdf.pdf_xrange_swigregister(pdf_xrange)
  4188. class pdf_mrange(object):
  4189. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4190. __repr__ = _swig_repr
  4191. low = property(_mupdf.pdf_mrange_low_get, _mupdf.pdf_mrange_low_set)
  4192. out = property(_mupdf.pdf_mrange_out_get, _mupdf.pdf_mrange_out_set)
  4193. def __init__(self):
  4194. _mupdf.pdf_mrange_swiginit(self, _mupdf.new_pdf_mrange())
  4195. __swig_destroy__ = _mupdf.delete_pdf_mrange
  4196. # Register pdf_mrange in _mupdf:
  4197. _mupdf.pdf_mrange_swigregister(pdf_mrange)
  4198. class pdf_cmap(object):
  4199. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4200. __repr__ = _swig_repr
  4201. storable = property(_mupdf.pdf_cmap_storable_get, _mupdf.pdf_cmap_storable_set)
  4202. cmap_name = property(_mupdf.pdf_cmap_cmap_name_get, _mupdf.pdf_cmap_cmap_name_set)
  4203. usecmap_name = property(_mupdf.pdf_cmap_usecmap_name_get, _mupdf.pdf_cmap_usecmap_name_set)
  4204. usecmap = property(_mupdf.pdf_cmap_usecmap_get, _mupdf.pdf_cmap_usecmap_set)
  4205. wmode = property(_mupdf.pdf_cmap_wmode_get, _mupdf.pdf_cmap_wmode_set)
  4206. codespace_len = property(_mupdf.pdf_cmap_codespace_len_get, _mupdf.pdf_cmap_codespace_len_set)
  4207. rlen = property(_mupdf.pdf_cmap_rlen_get, _mupdf.pdf_cmap_rlen_set)
  4208. rcap = property(_mupdf.pdf_cmap_rcap_get, _mupdf.pdf_cmap_rcap_set)
  4209. ranges = property(_mupdf.pdf_cmap_ranges_get, _mupdf.pdf_cmap_ranges_set)
  4210. xlen = property(_mupdf.pdf_cmap_xlen_get, _mupdf.pdf_cmap_xlen_set)
  4211. xcap = property(_mupdf.pdf_cmap_xcap_get, _mupdf.pdf_cmap_xcap_set)
  4212. xranges = property(_mupdf.pdf_cmap_xranges_get, _mupdf.pdf_cmap_xranges_set)
  4213. mlen = property(_mupdf.pdf_cmap_mlen_get, _mupdf.pdf_cmap_mlen_set)
  4214. mcap = property(_mupdf.pdf_cmap_mcap_get, _mupdf.pdf_cmap_mcap_set)
  4215. mranges = property(_mupdf.pdf_cmap_mranges_get, _mupdf.pdf_cmap_mranges_set)
  4216. dlen = property(_mupdf.pdf_cmap_dlen_get, _mupdf.pdf_cmap_dlen_set)
  4217. dcap = property(_mupdf.pdf_cmap_dcap_get, _mupdf.pdf_cmap_dcap_set)
  4218. dict = property(_mupdf.pdf_cmap_dict_get, _mupdf.pdf_cmap_dict_set)
  4219. tlen = property(_mupdf.pdf_cmap_tlen_get, _mupdf.pdf_cmap_tlen_set)
  4220. tcap = property(_mupdf.pdf_cmap_tcap_get, _mupdf.pdf_cmap_tcap_set)
  4221. ttop = property(_mupdf.pdf_cmap_ttop_get, _mupdf.pdf_cmap_ttop_set)
  4222. tree = property(_mupdf.pdf_cmap_tree_get, _mupdf.pdf_cmap_tree_set)
  4223. def __init__(self):
  4224. _mupdf.pdf_cmap_swiginit(self, _mupdf.new_pdf_cmap())
  4225. __swig_destroy__ = _mupdf.delete_pdf_cmap
  4226. # Register pdf_cmap in _mupdf:
  4227. _mupdf.pdf_cmap_swigregister(pdf_cmap)
  4228. PDF_FD_FIXED_PITCH = _mupdf.PDF_FD_FIXED_PITCH
  4229. PDF_FD_SERIF = _mupdf.PDF_FD_SERIF
  4230. PDF_FD_SYMBOLIC = _mupdf.PDF_FD_SYMBOLIC
  4231. PDF_FD_SCRIPT = _mupdf.PDF_FD_SCRIPT
  4232. PDF_FD_NONSYMBOLIC = _mupdf.PDF_FD_NONSYMBOLIC
  4233. PDF_FD_ITALIC = _mupdf.PDF_FD_ITALIC
  4234. PDF_FD_ALL_CAP = _mupdf.PDF_FD_ALL_CAP
  4235. PDF_FD_SMALL_CAP = _mupdf.PDF_FD_SMALL_CAP
  4236. PDF_FD_FORCE_BOLD = _mupdf.PDF_FD_FORCE_BOLD
  4237. class pdf_hmtx(object):
  4238. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4239. __repr__ = _swig_repr
  4240. lo = property(_mupdf.pdf_hmtx_lo_get, _mupdf.pdf_hmtx_lo_set)
  4241. hi = property(_mupdf.pdf_hmtx_hi_get, _mupdf.pdf_hmtx_hi_set)
  4242. w = property(_mupdf.pdf_hmtx_w_get, _mupdf.pdf_hmtx_w_set)
  4243. def __init__(self):
  4244. _mupdf.pdf_hmtx_swiginit(self, _mupdf.new_pdf_hmtx())
  4245. __swig_destroy__ = _mupdf.delete_pdf_hmtx
  4246. # Register pdf_hmtx in _mupdf:
  4247. _mupdf.pdf_hmtx_swigregister(pdf_hmtx)
  4248. class pdf_vmtx(object):
  4249. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4250. __repr__ = _swig_repr
  4251. lo = property(_mupdf.pdf_vmtx_lo_get, _mupdf.pdf_vmtx_lo_set)
  4252. hi = property(_mupdf.pdf_vmtx_hi_get, _mupdf.pdf_vmtx_hi_set)
  4253. x = property(_mupdf.pdf_vmtx_x_get, _mupdf.pdf_vmtx_x_set)
  4254. y = property(_mupdf.pdf_vmtx_y_get, _mupdf.pdf_vmtx_y_set)
  4255. w = property(_mupdf.pdf_vmtx_w_get, _mupdf.pdf_vmtx_w_set)
  4256. def __init__(self):
  4257. _mupdf.pdf_vmtx_swiginit(self, _mupdf.new_pdf_vmtx())
  4258. __swig_destroy__ = _mupdf.delete_pdf_vmtx
  4259. # Register pdf_vmtx in _mupdf:
  4260. _mupdf.pdf_vmtx_swigregister(pdf_vmtx)
  4261. class pdf_font_desc(object):
  4262. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4263. __repr__ = _swig_repr
  4264. storable = property(_mupdf.pdf_font_desc_storable_get, _mupdf.pdf_font_desc_storable_set)
  4265. size = property(_mupdf.pdf_font_desc_size_get, _mupdf.pdf_font_desc_size_set)
  4266. font = property(_mupdf.pdf_font_desc_font_get, _mupdf.pdf_font_desc_font_set)
  4267. flags = property(_mupdf.pdf_font_desc_flags_get, _mupdf.pdf_font_desc_flags_set)
  4268. italic_angle = property(_mupdf.pdf_font_desc_italic_angle_get, _mupdf.pdf_font_desc_italic_angle_set)
  4269. ascent = property(_mupdf.pdf_font_desc_ascent_get, _mupdf.pdf_font_desc_ascent_set)
  4270. descent = property(_mupdf.pdf_font_desc_descent_get, _mupdf.pdf_font_desc_descent_set)
  4271. cap_height = property(_mupdf.pdf_font_desc_cap_height_get, _mupdf.pdf_font_desc_cap_height_set)
  4272. x_height = property(_mupdf.pdf_font_desc_x_height_get, _mupdf.pdf_font_desc_x_height_set)
  4273. missing_width = property(_mupdf.pdf_font_desc_missing_width_get, _mupdf.pdf_font_desc_missing_width_set)
  4274. encoding = property(_mupdf.pdf_font_desc_encoding_get, _mupdf.pdf_font_desc_encoding_set)
  4275. to_ttf_cmap = property(_mupdf.pdf_font_desc_to_ttf_cmap_get, _mupdf.pdf_font_desc_to_ttf_cmap_set)
  4276. cid_to_gid_len = property(_mupdf.pdf_font_desc_cid_to_gid_len_get, _mupdf.pdf_font_desc_cid_to_gid_len_set)
  4277. cid_to_gid = property(_mupdf.pdf_font_desc_cid_to_gid_get, _mupdf.pdf_font_desc_cid_to_gid_set)
  4278. to_unicode = property(_mupdf.pdf_font_desc_to_unicode_get, _mupdf.pdf_font_desc_to_unicode_set)
  4279. cid_to_ucs_len = property(_mupdf.pdf_font_desc_cid_to_ucs_len_get, _mupdf.pdf_font_desc_cid_to_ucs_len_set)
  4280. cid_to_ucs = property(_mupdf.pdf_font_desc_cid_to_ucs_get, _mupdf.pdf_font_desc_cid_to_ucs_set)
  4281. wmode = property(_mupdf.pdf_font_desc_wmode_get, _mupdf.pdf_font_desc_wmode_set)
  4282. hmtx_len = property(_mupdf.pdf_font_desc_hmtx_len_get, _mupdf.pdf_font_desc_hmtx_len_set)
  4283. hmtx_cap = property(_mupdf.pdf_font_desc_hmtx_cap_get, _mupdf.pdf_font_desc_hmtx_cap_set)
  4284. dhmtx = property(_mupdf.pdf_font_desc_dhmtx_get, _mupdf.pdf_font_desc_dhmtx_set)
  4285. hmtx = property(_mupdf.pdf_font_desc_hmtx_get, _mupdf.pdf_font_desc_hmtx_set)
  4286. vmtx_len = property(_mupdf.pdf_font_desc_vmtx_len_get, _mupdf.pdf_font_desc_vmtx_len_set)
  4287. vmtx_cap = property(_mupdf.pdf_font_desc_vmtx_cap_get, _mupdf.pdf_font_desc_vmtx_cap_set)
  4288. dvmtx = property(_mupdf.pdf_font_desc_dvmtx_get, _mupdf.pdf_font_desc_dvmtx_set)
  4289. vmtx = property(_mupdf.pdf_font_desc_vmtx_get, _mupdf.pdf_font_desc_vmtx_set)
  4290. is_embedded = property(_mupdf.pdf_font_desc_is_embedded_get, _mupdf.pdf_font_desc_is_embedded_set)
  4291. t3loading = property(_mupdf.pdf_font_desc_t3loading_get, _mupdf.pdf_font_desc_t3loading_set)
  4292. def __init__(self):
  4293. _mupdf.pdf_font_desc_swiginit(self, _mupdf.new_pdf_font_desc())
  4294. __swig_destroy__ = _mupdf.delete_pdf_font_desc
  4295. # Register pdf_font_desc in _mupdf:
  4296. _mupdf.pdf_font_desc_swigregister(pdf_font_desc)
  4297. PDF_SIMPLE_FONT_RESOURCE = _mupdf.PDF_SIMPLE_FONT_RESOURCE
  4298. PDF_CID_FONT_RESOURCE = _mupdf.PDF_CID_FONT_RESOURCE
  4299. PDF_CJK_FONT_RESOURCE = _mupdf.PDF_CJK_FONT_RESOURCE
  4300. PDF_SIMPLE_ENCODING_LATIN = _mupdf.PDF_SIMPLE_ENCODING_LATIN
  4301. PDF_SIMPLE_ENCODING_GREEK = _mupdf.PDF_SIMPLE_ENCODING_GREEK
  4302. PDF_SIMPLE_ENCODING_CYRILLIC = _mupdf.PDF_SIMPLE_ENCODING_CYRILLIC
  4303. class pdf_font_resource_key(object):
  4304. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4305. __repr__ = _swig_repr
  4306. digest = property(_mupdf.pdf_font_resource_key_digest_get, _mupdf.pdf_font_resource_key_digest_set)
  4307. type = property(_mupdf.pdf_font_resource_key_type_get, _mupdf.pdf_font_resource_key_type_set)
  4308. encoding = property(_mupdf.pdf_font_resource_key_encoding_get, _mupdf.pdf_font_resource_key_encoding_set)
  4309. local_xref = property(_mupdf.pdf_font_resource_key_local_xref_get, _mupdf.pdf_font_resource_key_local_xref_set)
  4310. def __init__(self):
  4311. _mupdf.pdf_font_resource_key_swiginit(self, _mupdf.new_pdf_font_resource_key())
  4312. __swig_destroy__ = _mupdf.delete_pdf_font_resource_key
  4313. # Register pdf_font_resource_key in _mupdf:
  4314. _mupdf.pdf_font_resource_key_swigregister(pdf_font_resource_key)
  4315. class pdf_colorspace_resource_key(object):
  4316. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4317. __repr__ = _swig_repr
  4318. digest = property(_mupdf.pdf_colorspace_resource_key_digest_get, _mupdf.pdf_colorspace_resource_key_digest_set)
  4319. local_xref = property(_mupdf.pdf_colorspace_resource_key_local_xref_get, _mupdf.pdf_colorspace_resource_key_local_xref_set)
  4320. def __init__(self):
  4321. _mupdf.pdf_colorspace_resource_key_swiginit(self, _mupdf.new_pdf_colorspace_resource_key())
  4322. __swig_destroy__ = _mupdf.delete_pdf_colorspace_resource_key
  4323. # Register pdf_colorspace_resource_key in _mupdf:
  4324. _mupdf.pdf_colorspace_resource_key_swigregister(pdf_colorspace_resource_key)
  4325. class pdf_pattern(object):
  4326. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4327. __repr__ = _swig_repr
  4328. storable = property(_mupdf.pdf_pattern_storable_get, _mupdf.pdf_pattern_storable_set)
  4329. ismask = property(_mupdf.pdf_pattern_ismask_get, _mupdf.pdf_pattern_ismask_set)
  4330. xstep = property(_mupdf.pdf_pattern_xstep_get, _mupdf.pdf_pattern_xstep_set)
  4331. ystep = property(_mupdf.pdf_pattern_ystep_get, _mupdf.pdf_pattern_ystep_set)
  4332. matrix = property(_mupdf.pdf_pattern_matrix_get, _mupdf.pdf_pattern_matrix_set)
  4333. bbox = property(_mupdf.pdf_pattern_bbox_get, _mupdf.pdf_pattern_bbox_set)
  4334. document = property(_mupdf.pdf_pattern_document_get, _mupdf.pdf_pattern_document_set)
  4335. resources = property(_mupdf.pdf_pattern_resources_get, _mupdf.pdf_pattern_resources_set)
  4336. contents = property(_mupdf.pdf_pattern_contents_get, _mupdf.pdf_pattern_contents_set)
  4337. id = property(_mupdf.pdf_pattern_id_get, _mupdf.pdf_pattern_id_set)
  4338. def __init__(self):
  4339. _mupdf.pdf_pattern_swiginit(self, _mupdf.new_pdf_pattern())
  4340. __swig_destroy__ = _mupdf.delete_pdf_pattern
  4341. # Register pdf_pattern in _mupdf:
  4342. _mupdf.pdf_pattern_swigregister(pdf_pattern)
  4343. class pdf_resource_stack(object):
  4344. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4345. __repr__ = _swig_repr
  4346. next = property(_mupdf.pdf_resource_stack_next_get, _mupdf.pdf_resource_stack_next_set)
  4347. resources = property(_mupdf.pdf_resource_stack_resources_get, _mupdf.pdf_resource_stack_resources_set)
  4348. def __init__(self):
  4349. _mupdf.pdf_resource_stack_swiginit(self, _mupdf.new_pdf_resource_stack())
  4350. __swig_destroy__ = _mupdf.delete_pdf_resource_stack
  4351. # Register pdf_resource_stack in _mupdf:
  4352. _mupdf.pdf_resource_stack_swigregister(pdf_resource_stack)
  4353. PDF_PROCESSOR_REQUIRES_DECODED_IMAGES = _mupdf.PDF_PROCESSOR_REQUIRES_DECODED_IMAGES
  4354. class pdf_processor(object):
  4355. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4356. __repr__ = _swig_repr
  4357. refs = property(_mupdf.pdf_processor_refs_get, _mupdf.pdf_processor_refs_set)
  4358. closed = property(_mupdf.pdf_processor_closed_get, _mupdf.pdf_processor_closed_set)
  4359. close_processor = property(_mupdf.pdf_processor_close_processor_get, _mupdf.pdf_processor_close_processor_set)
  4360. drop_processor = property(_mupdf.pdf_processor_drop_processor_get, _mupdf.pdf_processor_drop_processor_set)
  4361. reset_processor = property(_mupdf.pdf_processor_reset_processor_get, _mupdf.pdf_processor_reset_processor_set)
  4362. push_resources = property(_mupdf.pdf_processor_push_resources_get, _mupdf.pdf_processor_push_resources_set)
  4363. pop_resources = property(_mupdf.pdf_processor_pop_resources_get, _mupdf.pdf_processor_pop_resources_set)
  4364. op_w = property(_mupdf.pdf_processor_op_w_get, _mupdf.pdf_processor_op_w_set)
  4365. op_j = property(_mupdf.pdf_processor_op_j_get, _mupdf.pdf_processor_op_j_set)
  4366. op_J = property(_mupdf.pdf_processor_op_J_get, _mupdf.pdf_processor_op_J_set)
  4367. op_M = property(_mupdf.pdf_processor_op_M_get, _mupdf.pdf_processor_op_M_set)
  4368. op_d = property(_mupdf.pdf_processor_op_d_get, _mupdf.pdf_processor_op_d_set)
  4369. op_ri = property(_mupdf.pdf_processor_op_ri_get, _mupdf.pdf_processor_op_ri_set)
  4370. op_i = property(_mupdf.pdf_processor_op_i_get, _mupdf.pdf_processor_op_i_set)
  4371. op_gs_begin = property(_mupdf.pdf_processor_op_gs_begin_get, _mupdf.pdf_processor_op_gs_begin_set)
  4372. op_gs_BM = property(_mupdf.pdf_processor_op_gs_BM_get, _mupdf.pdf_processor_op_gs_BM_set)
  4373. op_gs_ca = property(_mupdf.pdf_processor_op_gs_ca_get, _mupdf.pdf_processor_op_gs_ca_set)
  4374. op_gs_CA = property(_mupdf.pdf_processor_op_gs_CA_get, _mupdf.pdf_processor_op_gs_CA_set)
  4375. op_gs_SMask = property(_mupdf.pdf_processor_op_gs_SMask_get, _mupdf.pdf_processor_op_gs_SMask_set)
  4376. op_gs_end = property(_mupdf.pdf_processor_op_gs_end_get, _mupdf.pdf_processor_op_gs_end_set)
  4377. op_q = property(_mupdf.pdf_processor_op_q_get, _mupdf.pdf_processor_op_q_set)
  4378. op_Q = property(_mupdf.pdf_processor_op_Q_get, _mupdf.pdf_processor_op_Q_set)
  4379. op_cm = property(_mupdf.pdf_processor_op_cm_get, _mupdf.pdf_processor_op_cm_set)
  4380. op_m = property(_mupdf.pdf_processor_op_m_get, _mupdf.pdf_processor_op_m_set)
  4381. op_l = property(_mupdf.pdf_processor_op_l_get, _mupdf.pdf_processor_op_l_set)
  4382. op_c = property(_mupdf.pdf_processor_op_c_get, _mupdf.pdf_processor_op_c_set)
  4383. op_v = property(_mupdf.pdf_processor_op_v_get, _mupdf.pdf_processor_op_v_set)
  4384. op_y = property(_mupdf.pdf_processor_op_y_get, _mupdf.pdf_processor_op_y_set)
  4385. op_h = property(_mupdf.pdf_processor_op_h_get, _mupdf.pdf_processor_op_h_set)
  4386. op_re = property(_mupdf.pdf_processor_op_re_get, _mupdf.pdf_processor_op_re_set)
  4387. op_S = property(_mupdf.pdf_processor_op_S_get, _mupdf.pdf_processor_op_S_set)
  4388. op_s = property(_mupdf.pdf_processor_op_s_get, _mupdf.pdf_processor_op_s_set)
  4389. op_F = property(_mupdf.pdf_processor_op_F_get, _mupdf.pdf_processor_op_F_set)
  4390. op_f = property(_mupdf.pdf_processor_op_f_get, _mupdf.pdf_processor_op_f_set)
  4391. op_fstar = property(_mupdf.pdf_processor_op_fstar_get, _mupdf.pdf_processor_op_fstar_set)
  4392. op_B = property(_mupdf.pdf_processor_op_B_get, _mupdf.pdf_processor_op_B_set)
  4393. op_Bstar = property(_mupdf.pdf_processor_op_Bstar_get, _mupdf.pdf_processor_op_Bstar_set)
  4394. op_b = property(_mupdf.pdf_processor_op_b_get, _mupdf.pdf_processor_op_b_set)
  4395. op_bstar = property(_mupdf.pdf_processor_op_bstar_get, _mupdf.pdf_processor_op_bstar_set)
  4396. op_n = property(_mupdf.pdf_processor_op_n_get, _mupdf.pdf_processor_op_n_set)
  4397. op_W = property(_mupdf.pdf_processor_op_W_get, _mupdf.pdf_processor_op_W_set)
  4398. op_Wstar = property(_mupdf.pdf_processor_op_Wstar_get, _mupdf.pdf_processor_op_Wstar_set)
  4399. op_BT = property(_mupdf.pdf_processor_op_BT_get, _mupdf.pdf_processor_op_BT_set)
  4400. op_ET = property(_mupdf.pdf_processor_op_ET_get, _mupdf.pdf_processor_op_ET_set)
  4401. op_Tc = property(_mupdf.pdf_processor_op_Tc_get, _mupdf.pdf_processor_op_Tc_set)
  4402. op_Tw = property(_mupdf.pdf_processor_op_Tw_get, _mupdf.pdf_processor_op_Tw_set)
  4403. op_Tz = property(_mupdf.pdf_processor_op_Tz_get, _mupdf.pdf_processor_op_Tz_set)
  4404. op_TL = property(_mupdf.pdf_processor_op_TL_get, _mupdf.pdf_processor_op_TL_set)
  4405. op_Tf = property(_mupdf.pdf_processor_op_Tf_get, _mupdf.pdf_processor_op_Tf_set)
  4406. op_Tr = property(_mupdf.pdf_processor_op_Tr_get, _mupdf.pdf_processor_op_Tr_set)
  4407. op_Ts = property(_mupdf.pdf_processor_op_Ts_get, _mupdf.pdf_processor_op_Ts_set)
  4408. op_Td = property(_mupdf.pdf_processor_op_Td_get, _mupdf.pdf_processor_op_Td_set)
  4409. op_TD = property(_mupdf.pdf_processor_op_TD_get, _mupdf.pdf_processor_op_TD_set)
  4410. op_Tm = property(_mupdf.pdf_processor_op_Tm_get, _mupdf.pdf_processor_op_Tm_set)
  4411. op_Tstar = property(_mupdf.pdf_processor_op_Tstar_get, _mupdf.pdf_processor_op_Tstar_set)
  4412. op_TJ = property(_mupdf.pdf_processor_op_TJ_get, _mupdf.pdf_processor_op_TJ_set)
  4413. op_Tj = property(_mupdf.pdf_processor_op_Tj_get, _mupdf.pdf_processor_op_Tj_set)
  4414. op_squote = property(_mupdf.pdf_processor_op_squote_get, _mupdf.pdf_processor_op_squote_set)
  4415. op_dquote = property(_mupdf.pdf_processor_op_dquote_get, _mupdf.pdf_processor_op_dquote_set)
  4416. op_d0 = property(_mupdf.pdf_processor_op_d0_get, _mupdf.pdf_processor_op_d0_set)
  4417. op_d1 = property(_mupdf.pdf_processor_op_d1_get, _mupdf.pdf_processor_op_d1_set)
  4418. op_CS = property(_mupdf.pdf_processor_op_CS_get, _mupdf.pdf_processor_op_CS_set)
  4419. op_cs = property(_mupdf.pdf_processor_op_cs_get, _mupdf.pdf_processor_op_cs_set)
  4420. op_SC_pattern = property(_mupdf.pdf_processor_op_SC_pattern_get, _mupdf.pdf_processor_op_SC_pattern_set)
  4421. op_sc_pattern = property(_mupdf.pdf_processor_op_sc_pattern_get, _mupdf.pdf_processor_op_sc_pattern_set)
  4422. op_SC_shade = property(_mupdf.pdf_processor_op_SC_shade_get, _mupdf.pdf_processor_op_SC_shade_set)
  4423. op_sc_shade = property(_mupdf.pdf_processor_op_sc_shade_get, _mupdf.pdf_processor_op_sc_shade_set)
  4424. op_SC_color = property(_mupdf.pdf_processor_op_SC_color_get, _mupdf.pdf_processor_op_SC_color_set)
  4425. op_sc_color = property(_mupdf.pdf_processor_op_sc_color_get, _mupdf.pdf_processor_op_sc_color_set)
  4426. op_G = property(_mupdf.pdf_processor_op_G_get, _mupdf.pdf_processor_op_G_set)
  4427. op_g = property(_mupdf.pdf_processor_op_g_get, _mupdf.pdf_processor_op_g_set)
  4428. op_RG = property(_mupdf.pdf_processor_op_RG_get, _mupdf.pdf_processor_op_RG_set)
  4429. op_rg = property(_mupdf.pdf_processor_op_rg_get, _mupdf.pdf_processor_op_rg_set)
  4430. op_K = property(_mupdf.pdf_processor_op_K_get, _mupdf.pdf_processor_op_K_set)
  4431. op_k = property(_mupdf.pdf_processor_op_k_get, _mupdf.pdf_processor_op_k_set)
  4432. op_BI = property(_mupdf.pdf_processor_op_BI_get, _mupdf.pdf_processor_op_BI_set)
  4433. op_sh = property(_mupdf.pdf_processor_op_sh_get, _mupdf.pdf_processor_op_sh_set)
  4434. op_Do_image = property(_mupdf.pdf_processor_op_Do_image_get, _mupdf.pdf_processor_op_Do_image_set)
  4435. op_Do_form = property(_mupdf.pdf_processor_op_Do_form_get, _mupdf.pdf_processor_op_Do_form_set)
  4436. op_MP = property(_mupdf.pdf_processor_op_MP_get, _mupdf.pdf_processor_op_MP_set)
  4437. op_DP = property(_mupdf.pdf_processor_op_DP_get, _mupdf.pdf_processor_op_DP_set)
  4438. op_BMC = property(_mupdf.pdf_processor_op_BMC_get, _mupdf.pdf_processor_op_BMC_set)
  4439. op_BDC = property(_mupdf.pdf_processor_op_BDC_get, _mupdf.pdf_processor_op_BDC_set)
  4440. op_EMC = property(_mupdf.pdf_processor_op_EMC_get, _mupdf.pdf_processor_op_EMC_set)
  4441. op_BX = property(_mupdf.pdf_processor_op_BX_get, _mupdf.pdf_processor_op_BX_set)
  4442. op_EX = property(_mupdf.pdf_processor_op_EX_get, _mupdf.pdf_processor_op_EX_set)
  4443. op_gs_OP = property(_mupdf.pdf_processor_op_gs_OP_get, _mupdf.pdf_processor_op_gs_OP_set)
  4444. op_gs_op = property(_mupdf.pdf_processor_op_gs_op_get, _mupdf.pdf_processor_op_gs_op_set)
  4445. op_gs_OPM = property(_mupdf.pdf_processor_op_gs_OPM_get, _mupdf.pdf_processor_op_gs_OPM_set)
  4446. op_gs_UseBlackPtComp = property(_mupdf.pdf_processor_op_gs_UseBlackPtComp_get, _mupdf.pdf_processor_op_gs_UseBlackPtComp_set)
  4447. op_EOD = property(_mupdf.pdf_processor_op_EOD_get, _mupdf.pdf_processor_op_EOD_set)
  4448. op_END = property(_mupdf.pdf_processor_op_END_get, _mupdf.pdf_processor_op_END_set)
  4449. usage = property(_mupdf.pdf_processor_usage_get, _mupdf.pdf_processor_usage_set)
  4450. hidden = property(_mupdf.pdf_processor_hidden_get, _mupdf.pdf_processor_hidden_set)
  4451. requirements = property(_mupdf.pdf_processor_requirements_get, _mupdf.pdf_processor_requirements_set)
  4452. rstack = property(_mupdf.pdf_processor_rstack_get, _mupdf.pdf_processor_rstack_set)
  4453. def __init__(self):
  4454. _mupdf.pdf_processor_swiginit(self, _mupdf.new_pdf_processor())
  4455. __swig_destroy__ = _mupdf.delete_pdf_processor
  4456. # Register pdf_processor in _mupdf:
  4457. _mupdf.pdf_processor_swigregister(pdf_processor)
  4458. class pdf_csi(object):
  4459. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4460. __repr__ = _swig_repr
  4461. doc = property(_mupdf.pdf_csi_doc_get, _mupdf.pdf_csi_doc_set)
  4462. buf = property(_mupdf.pdf_csi_buf_get, _mupdf.pdf_csi_buf_set)
  4463. cookie = property(_mupdf.pdf_csi_cookie_get, _mupdf.pdf_csi_cookie_set)
  4464. gstate = property(_mupdf.pdf_csi_gstate_get, _mupdf.pdf_csi_gstate_set)
  4465. xbalance = property(_mupdf.pdf_csi_xbalance_get, _mupdf.pdf_csi_xbalance_set)
  4466. in_text = property(_mupdf.pdf_csi_in_text_get, _mupdf.pdf_csi_in_text_set)
  4467. d1_rect = property(_mupdf.pdf_csi_d1_rect_get, _mupdf.pdf_csi_d1_rect_set)
  4468. obj = property(_mupdf.pdf_csi_obj_get, _mupdf.pdf_csi_obj_set)
  4469. name = property(_mupdf.pdf_csi_name_get, _mupdf.pdf_csi_name_set)
  4470. string = property(_mupdf.pdf_csi_string_get, _mupdf.pdf_csi_string_set)
  4471. string_len = property(_mupdf.pdf_csi_string_len_get, _mupdf.pdf_csi_string_len_set)
  4472. top = property(_mupdf.pdf_csi_top_get, _mupdf.pdf_csi_top_set)
  4473. stack = property(_mupdf.pdf_csi_stack_get, _mupdf.pdf_csi_stack_set)
  4474. def __init__(self):
  4475. _mupdf.pdf_csi_swiginit(self, _mupdf.new_pdf_csi())
  4476. __swig_destroy__ = _mupdf.delete_pdf_csi
  4477. # Register pdf_csi in _mupdf:
  4478. _mupdf.pdf_csi_swigregister(pdf_csi)
  4479. class pdf_filter_factory(object):
  4480. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4481. __repr__ = _swig_repr
  4482. filter = property(_mupdf.pdf_filter_factory_filter_get, _mupdf.pdf_filter_factory_filter_set)
  4483. options = property(_mupdf.pdf_filter_factory_options_get, _mupdf.pdf_filter_factory_options_set)
  4484. def __init__(self):
  4485. _mupdf.pdf_filter_factory_swiginit(self, _mupdf.new_pdf_filter_factory())
  4486. __swig_destroy__ = _mupdf.delete_pdf_filter_factory
  4487. # Register pdf_filter_factory in _mupdf:
  4488. _mupdf.pdf_filter_factory_swigregister(pdf_filter_factory)
  4489. class pdf_filter_options(object):
  4490. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4491. __repr__ = _swig_repr
  4492. recurse = property(_mupdf.pdf_filter_options_recurse_get, _mupdf.pdf_filter_options_recurse_set)
  4493. instance_forms = property(_mupdf.pdf_filter_options_instance_forms_get, _mupdf.pdf_filter_options_instance_forms_set)
  4494. ascii = property(_mupdf.pdf_filter_options_ascii_get, _mupdf.pdf_filter_options_ascii_set)
  4495. no_update = property(_mupdf.pdf_filter_options_no_update_get, _mupdf.pdf_filter_options_no_update_set)
  4496. opaque = property(_mupdf.pdf_filter_options_opaque_get, _mupdf.pdf_filter_options_opaque_set)
  4497. complete = property(_mupdf.pdf_filter_options_complete_get, _mupdf.pdf_filter_options_complete_set)
  4498. filters = property(_mupdf.pdf_filter_options_filters_get, _mupdf.pdf_filter_options_filters_set)
  4499. newlines = property(_mupdf.pdf_filter_options_newlines_get, _mupdf.pdf_filter_options_newlines_set)
  4500. def __init__(self):
  4501. _mupdf.pdf_filter_options_swiginit(self, _mupdf.new_pdf_filter_options())
  4502. __swig_destroy__ = _mupdf.delete_pdf_filter_options
  4503. # Register pdf_filter_options in _mupdf:
  4504. _mupdf.pdf_filter_options_swigregister(pdf_filter_options)
  4505. FZ_CULL_PATH_DROP = _mupdf.FZ_CULL_PATH_DROP
  4506. FZ_CULL_PATH_FILL = _mupdf.FZ_CULL_PATH_FILL
  4507. FZ_CULL_PATH_STROKE = _mupdf.FZ_CULL_PATH_STROKE
  4508. FZ_CULL_PATH_FILL_STROKE = _mupdf.FZ_CULL_PATH_FILL_STROKE
  4509. FZ_CULL_CLIP_PATH_DROP = _mupdf.FZ_CULL_CLIP_PATH_DROP
  4510. FZ_CULL_CLIP_PATH_FILL = _mupdf.FZ_CULL_CLIP_PATH_FILL
  4511. FZ_CULL_CLIP_PATH_STROKE = _mupdf.FZ_CULL_CLIP_PATH_STROKE
  4512. FZ_CULL_CLIP_PATH_FILL_STROKE = _mupdf.FZ_CULL_CLIP_PATH_FILL_STROKE
  4513. FZ_CULL_GLYPH = _mupdf.FZ_CULL_GLYPH
  4514. FZ_CULL_IMAGE = _mupdf.FZ_CULL_IMAGE
  4515. FZ_CULL_SHADING = _mupdf.FZ_CULL_SHADING
  4516. class pdf_sanitize_filter_options(object):
  4517. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4518. __repr__ = _swig_repr
  4519. opaque = property(_mupdf.pdf_sanitize_filter_options_opaque_get, _mupdf.pdf_sanitize_filter_options_opaque_set)
  4520. image_filter = property(_mupdf.pdf_sanitize_filter_options_image_filter_get, _mupdf.pdf_sanitize_filter_options_image_filter_set)
  4521. text_filter = property(_mupdf.pdf_sanitize_filter_options_text_filter_get, _mupdf.pdf_sanitize_filter_options_text_filter_set)
  4522. after_text_object = property(_mupdf.pdf_sanitize_filter_options_after_text_object_get, _mupdf.pdf_sanitize_filter_options_after_text_object_set)
  4523. culler = property(_mupdf.pdf_sanitize_filter_options_culler_get, _mupdf.pdf_sanitize_filter_options_culler_set)
  4524. def __init__(self):
  4525. _mupdf.pdf_sanitize_filter_options_swiginit(self, _mupdf.new_pdf_sanitize_filter_options())
  4526. __swig_destroy__ = _mupdf.delete_pdf_sanitize_filter_options
  4527. # Register pdf_sanitize_filter_options in _mupdf:
  4528. _mupdf.pdf_sanitize_filter_options_swigregister(pdf_sanitize_filter_options)
  4529. class pdf_color_filter_options(object):
  4530. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4531. __repr__ = _swig_repr
  4532. opaque = property(_mupdf.pdf_color_filter_options_opaque_get, _mupdf.pdf_color_filter_options_opaque_set)
  4533. color_rewrite = property(_mupdf.pdf_color_filter_options_color_rewrite_get, _mupdf.pdf_color_filter_options_color_rewrite_set)
  4534. image_rewrite = property(_mupdf.pdf_color_filter_options_image_rewrite_get, _mupdf.pdf_color_filter_options_image_rewrite_set)
  4535. shade_rewrite = property(_mupdf.pdf_color_filter_options_shade_rewrite_get, _mupdf.pdf_color_filter_options_shade_rewrite_set)
  4536. repeated_image_rewrite = property(_mupdf.pdf_color_filter_options_repeated_image_rewrite_get, _mupdf.pdf_color_filter_options_repeated_image_rewrite_set)
  4537. def __init__(self):
  4538. _mupdf.pdf_color_filter_options_swiginit(self, _mupdf.new_pdf_color_filter_options())
  4539. __swig_destroy__ = _mupdf.delete_pdf_color_filter_options
  4540. # Register pdf_color_filter_options in _mupdf:
  4541. _mupdf.pdf_color_filter_options_swigregister(pdf_color_filter_options)
  4542. class pdf_text_state(object):
  4543. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4544. __repr__ = _swig_repr
  4545. char_space = property(_mupdf.pdf_text_state_char_space_get, _mupdf.pdf_text_state_char_space_set)
  4546. word_space = property(_mupdf.pdf_text_state_word_space_get, _mupdf.pdf_text_state_word_space_set)
  4547. scale = property(_mupdf.pdf_text_state_scale_get, _mupdf.pdf_text_state_scale_set)
  4548. leading = property(_mupdf.pdf_text_state_leading_get, _mupdf.pdf_text_state_leading_set)
  4549. font = property(_mupdf.pdf_text_state_font_get, _mupdf.pdf_text_state_font_set)
  4550. fontname = property(_mupdf.pdf_text_state_fontname_get, _mupdf.pdf_text_state_fontname_set)
  4551. size = property(_mupdf.pdf_text_state_size_get, _mupdf.pdf_text_state_size_set)
  4552. render = property(_mupdf.pdf_text_state_render_get, _mupdf.pdf_text_state_render_set)
  4553. rise = property(_mupdf.pdf_text_state_rise_get, _mupdf.pdf_text_state_rise_set)
  4554. def __init__(self):
  4555. _mupdf.pdf_text_state_swiginit(self, _mupdf.new_pdf_text_state())
  4556. __swig_destroy__ = _mupdf.delete_pdf_text_state
  4557. # Register pdf_text_state in _mupdf:
  4558. _mupdf.pdf_text_state_swigregister(pdf_text_state)
  4559. class pdf_text_object_state(object):
  4560. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4561. __repr__ = _swig_repr
  4562. text = property(_mupdf.pdf_text_object_state_text_get, _mupdf.pdf_text_object_state_text_set)
  4563. text_bbox = property(_mupdf.pdf_text_object_state_text_bbox_get, _mupdf.pdf_text_object_state_text_bbox_set)
  4564. tlm = property(_mupdf.pdf_text_object_state_tlm_get, _mupdf.pdf_text_object_state_tlm_set)
  4565. tm = property(_mupdf.pdf_text_object_state_tm_get, _mupdf.pdf_text_object_state_tm_set)
  4566. text_mode = property(_mupdf.pdf_text_object_state_text_mode_get, _mupdf.pdf_text_object_state_text_mode_set)
  4567. cid = property(_mupdf.pdf_text_object_state_cid_get, _mupdf.pdf_text_object_state_cid_set)
  4568. gid = property(_mupdf.pdf_text_object_state_gid_get, _mupdf.pdf_text_object_state_gid_set)
  4569. char_bbox = property(_mupdf.pdf_text_object_state_char_bbox_get, _mupdf.pdf_text_object_state_char_bbox_set)
  4570. fontdesc = property(_mupdf.pdf_text_object_state_fontdesc_get, _mupdf.pdf_text_object_state_fontdesc_set)
  4571. char_tx = property(_mupdf.pdf_text_object_state_char_tx_get, _mupdf.pdf_text_object_state_char_tx_set)
  4572. char_ty = property(_mupdf.pdf_text_object_state_char_ty_get, _mupdf.pdf_text_object_state_char_ty_set)
  4573. def __init__(self):
  4574. _mupdf.pdf_text_object_state_swiginit(self, _mupdf.new_pdf_text_object_state())
  4575. __swig_destroy__ = _mupdf.delete_pdf_text_object_state
  4576. # Register pdf_text_object_state in _mupdf:
  4577. _mupdf.pdf_text_object_state_swigregister(pdf_text_object_state)
  4578. PDF_REDACT_IMAGE_NONE = _mupdf.PDF_REDACT_IMAGE_NONE
  4579. PDF_REDACT_IMAGE_REMOVE = _mupdf.PDF_REDACT_IMAGE_REMOVE
  4580. PDF_REDACT_IMAGE_PIXELS = _mupdf.PDF_REDACT_IMAGE_PIXELS
  4581. PDF_REDACT_IMAGE_REMOVE_UNLESS_INVISIBLE = _mupdf.PDF_REDACT_IMAGE_REMOVE_UNLESS_INVISIBLE
  4582. PDF_REDACT_LINE_ART_NONE = _mupdf.PDF_REDACT_LINE_ART_NONE
  4583. PDF_REDACT_LINE_ART_REMOVE_IF_COVERED = _mupdf.PDF_REDACT_LINE_ART_REMOVE_IF_COVERED
  4584. PDF_REDACT_LINE_ART_REMOVE_IF_TOUCHED = _mupdf.PDF_REDACT_LINE_ART_REMOVE_IF_TOUCHED
  4585. PDF_REDACT_TEXT_REMOVE = _mupdf.PDF_REDACT_TEXT_REMOVE
  4586. PDF_REDACT_TEXT_NONE = _mupdf.PDF_REDACT_TEXT_NONE
  4587. class pdf_redact_options(object):
  4588. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4589. __repr__ = _swig_repr
  4590. black_boxes = property(_mupdf.pdf_redact_options_black_boxes_get, _mupdf.pdf_redact_options_black_boxes_set)
  4591. image_method = property(_mupdf.pdf_redact_options_image_method_get, _mupdf.pdf_redact_options_image_method_set)
  4592. line_art = property(_mupdf.pdf_redact_options_line_art_get, _mupdf.pdf_redact_options_line_art_set)
  4593. text = property(_mupdf.pdf_redact_options_text_get, _mupdf.pdf_redact_options_text_set)
  4594. def __init__(self):
  4595. _mupdf.pdf_redact_options_swiginit(self, _mupdf.new_pdf_redact_options())
  4596. __swig_destroy__ = _mupdf.delete_pdf_redact_options
  4597. # Register pdf_redact_options in _mupdf:
  4598. _mupdf.pdf_redact_options_swigregister(pdf_redact_options)
  4599. class pdf_page(object):
  4600. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4601. __repr__ = _swig_repr
  4602. super = property(_mupdf.pdf_page_super_get, _mupdf.pdf_page_super_set)
  4603. doc = property(_mupdf.pdf_page_doc_get, _mupdf.pdf_page_doc_set)
  4604. obj = property(_mupdf.pdf_page_obj_get, _mupdf.pdf_page_obj_set)
  4605. transparency = property(_mupdf.pdf_page_transparency_get, _mupdf.pdf_page_transparency_set)
  4606. overprint = property(_mupdf.pdf_page_overprint_get, _mupdf.pdf_page_overprint_set)
  4607. links = property(_mupdf.pdf_page_links_get, _mupdf.pdf_page_links_set)
  4608. annots = property(_mupdf.pdf_page_annots_get, _mupdf.pdf_page_annots_set)
  4609. annot_tailp = property(_mupdf.pdf_page_annot_tailp_get, _mupdf.pdf_page_annot_tailp_set)
  4610. widgets = property(_mupdf.pdf_page_widgets_get, _mupdf.pdf_page_widgets_set)
  4611. widget_tailp = property(_mupdf.pdf_page_widget_tailp_get, _mupdf.pdf_page_widget_tailp_set)
  4612. def __init__(self):
  4613. _mupdf.pdf_page_swiginit(self, _mupdf.new_pdf_page())
  4614. __swig_destroy__ = _mupdf.delete_pdf_page
  4615. # Register pdf_page in _mupdf:
  4616. _mupdf.pdf_page_swigregister(pdf_page)
  4617. PDF_ANNOT_TEXT = _mupdf.PDF_ANNOT_TEXT
  4618. PDF_ANNOT_LINK = _mupdf.PDF_ANNOT_LINK
  4619. PDF_ANNOT_FREE_TEXT = _mupdf.PDF_ANNOT_FREE_TEXT
  4620. PDF_ANNOT_LINE = _mupdf.PDF_ANNOT_LINE
  4621. PDF_ANNOT_SQUARE = _mupdf.PDF_ANNOT_SQUARE
  4622. PDF_ANNOT_CIRCLE = _mupdf.PDF_ANNOT_CIRCLE
  4623. PDF_ANNOT_POLYGON = _mupdf.PDF_ANNOT_POLYGON
  4624. PDF_ANNOT_POLY_LINE = _mupdf.PDF_ANNOT_POLY_LINE
  4625. PDF_ANNOT_HIGHLIGHT = _mupdf.PDF_ANNOT_HIGHLIGHT
  4626. PDF_ANNOT_UNDERLINE = _mupdf.PDF_ANNOT_UNDERLINE
  4627. PDF_ANNOT_SQUIGGLY = _mupdf.PDF_ANNOT_SQUIGGLY
  4628. PDF_ANNOT_STRIKE_OUT = _mupdf.PDF_ANNOT_STRIKE_OUT
  4629. PDF_ANNOT_REDACT = _mupdf.PDF_ANNOT_REDACT
  4630. PDF_ANNOT_STAMP = _mupdf.PDF_ANNOT_STAMP
  4631. PDF_ANNOT_CARET = _mupdf.PDF_ANNOT_CARET
  4632. PDF_ANNOT_INK = _mupdf.PDF_ANNOT_INK
  4633. PDF_ANNOT_POPUP = _mupdf.PDF_ANNOT_POPUP
  4634. PDF_ANNOT_FILE_ATTACHMENT = _mupdf.PDF_ANNOT_FILE_ATTACHMENT
  4635. PDF_ANNOT_SOUND = _mupdf.PDF_ANNOT_SOUND
  4636. PDF_ANNOT_MOVIE = _mupdf.PDF_ANNOT_MOVIE
  4637. PDF_ANNOT_RICH_MEDIA = _mupdf.PDF_ANNOT_RICH_MEDIA
  4638. PDF_ANNOT_WIDGET = _mupdf.PDF_ANNOT_WIDGET
  4639. PDF_ANNOT_SCREEN = _mupdf.PDF_ANNOT_SCREEN
  4640. PDF_ANNOT_PRINTER_MARK = _mupdf.PDF_ANNOT_PRINTER_MARK
  4641. PDF_ANNOT_TRAP_NET = _mupdf.PDF_ANNOT_TRAP_NET
  4642. PDF_ANNOT_WATERMARK = _mupdf.PDF_ANNOT_WATERMARK
  4643. PDF_ANNOT_3D = _mupdf.PDF_ANNOT_3D
  4644. PDF_ANNOT_PROJECTION = _mupdf.PDF_ANNOT_PROJECTION
  4645. PDF_ANNOT_UNKNOWN = _mupdf.PDF_ANNOT_UNKNOWN
  4646. PDF_ANNOT_IS_INVISIBLE = _mupdf.PDF_ANNOT_IS_INVISIBLE
  4647. PDF_ANNOT_IS_HIDDEN = _mupdf.PDF_ANNOT_IS_HIDDEN
  4648. PDF_ANNOT_IS_PRINT = _mupdf.PDF_ANNOT_IS_PRINT
  4649. PDF_ANNOT_IS_NO_ZOOM = _mupdf.PDF_ANNOT_IS_NO_ZOOM
  4650. PDF_ANNOT_IS_NO_ROTATE = _mupdf.PDF_ANNOT_IS_NO_ROTATE
  4651. PDF_ANNOT_IS_NO_VIEW = _mupdf.PDF_ANNOT_IS_NO_VIEW
  4652. PDF_ANNOT_IS_READ_ONLY = _mupdf.PDF_ANNOT_IS_READ_ONLY
  4653. PDF_ANNOT_IS_LOCKED = _mupdf.PDF_ANNOT_IS_LOCKED
  4654. PDF_ANNOT_IS_TOGGLE_NO_VIEW = _mupdf.PDF_ANNOT_IS_TOGGLE_NO_VIEW
  4655. PDF_ANNOT_IS_LOCKED_CONTENTS = _mupdf.PDF_ANNOT_IS_LOCKED_CONTENTS
  4656. PDF_ANNOT_LE_NONE = _mupdf.PDF_ANNOT_LE_NONE
  4657. PDF_ANNOT_LE_SQUARE = _mupdf.PDF_ANNOT_LE_SQUARE
  4658. PDF_ANNOT_LE_CIRCLE = _mupdf.PDF_ANNOT_LE_CIRCLE
  4659. PDF_ANNOT_LE_DIAMOND = _mupdf.PDF_ANNOT_LE_DIAMOND
  4660. PDF_ANNOT_LE_OPEN_ARROW = _mupdf.PDF_ANNOT_LE_OPEN_ARROW
  4661. PDF_ANNOT_LE_CLOSED_ARROW = _mupdf.PDF_ANNOT_LE_CLOSED_ARROW
  4662. PDF_ANNOT_LE_BUTT = _mupdf.PDF_ANNOT_LE_BUTT
  4663. PDF_ANNOT_LE_R_OPEN_ARROW = _mupdf.PDF_ANNOT_LE_R_OPEN_ARROW
  4664. PDF_ANNOT_LE_R_CLOSED_ARROW = _mupdf.PDF_ANNOT_LE_R_CLOSED_ARROW
  4665. PDF_ANNOT_LE_SLASH = _mupdf.PDF_ANNOT_LE_SLASH
  4666. PDF_ANNOT_Q_LEFT = _mupdf.PDF_ANNOT_Q_LEFT
  4667. PDF_ANNOT_Q_CENTER = _mupdf.PDF_ANNOT_Q_CENTER
  4668. PDF_ANNOT_Q_RIGHT = _mupdf.PDF_ANNOT_Q_RIGHT
  4669. PDF_ANNOT_IT_DEFAULT = _mupdf.PDF_ANNOT_IT_DEFAULT
  4670. PDF_ANNOT_IT_FREETEXT_CALLOUT = _mupdf.PDF_ANNOT_IT_FREETEXT_CALLOUT
  4671. PDF_ANNOT_IT_FREETEXT_TYPEWRITER = _mupdf.PDF_ANNOT_IT_FREETEXT_TYPEWRITER
  4672. PDF_ANNOT_IT_LINE_ARROW = _mupdf.PDF_ANNOT_IT_LINE_ARROW
  4673. PDF_ANNOT_IT_LINE_DIMENSION = _mupdf.PDF_ANNOT_IT_LINE_DIMENSION
  4674. PDF_ANNOT_IT_POLYLINE_DIMENSION = _mupdf.PDF_ANNOT_IT_POLYLINE_DIMENSION
  4675. PDF_ANNOT_IT_POLYGON_CLOUD = _mupdf.PDF_ANNOT_IT_POLYGON_CLOUD
  4676. PDF_ANNOT_IT_POLYGON_DIMENSION = _mupdf.PDF_ANNOT_IT_POLYGON_DIMENSION
  4677. PDF_ANNOT_IT_STAMP_IMAGE = _mupdf.PDF_ANNOT_IT_STAMP_IMAGE
  4678. PDF_ANNOT_IT_STAMP_SNAPSHOT = _mupdf.PDF_ANNOT_IT_STAMP_SNAPSHOT
  4679. PDF_ANNOT_IT_UNKNOWN = _mupdf.PDF_ANNOT_IT_UNKNOWN
  4680. PDF_BORDER_STYLE_SOLID = _mupdf.PDF_BORDER_STYLE_SOLID
  4681. PDF_BORDER_STYLE_DASHED = _mupdf.PDF_BORDER_STYLE_DASHED
  4682. PDF_BORDER_STYLE_BEVELED = _mupdf.PDF_BORDER_STYLE_BEVELED
  4683. PDF_BORDER_STYLE_INSET = _mupdf.PDF_BORDER_STYLE_INSET
  4684. PDF_BORDER_STYLE_UNDERLINE = _mupdf.PDF_BORDER_STYLE_UNDERLINE
  4685. PDF_BORDER_EFFECT_NONE = _mupdf.PDF_BORDER_EFFECT_NONE
  4686. PDF_BORDER_EFFECT_CLOUDY = _mupdf.PDF_BORDER_EFFECT_CLOUDY
  4687. class pdf_filespec_params(object):
  4688. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4689. __repr__ = _swig_repr
  4690. filename = property(_mupdf.pdf_filespec_params_filename_get, _mupdf.pdf_filespec_params_filename_set)
  4691. mimetype = property(_mupdf.pdf_filespec_params_mimetype_get, _mupdf.pdf_filespec_params_mimetype_set)
  4692. size = property(_mupdf.pdf_filespec_params_size_get, _mupdf.pdf_filespec_params_size_set)
  4693. created = property(_mupdf.pdf_filespec_params_created_get, _mupdf.pdf_filespec_params_created_set)
  4694. modified = property(_mupdf.pdf_filespec_params_modified_get, _mupdf.pdf_filespec_params_modified_set)
  4695. def __init__(self):
  4696. _mupdf.pdf_filespec_params_swiginit(self, _mupdf.new_pdf_filespec_params())
  4697. __swig_destroy__ = _mupdf.delete_pdf_filespec_params
  4698. # Register pdf_filespec_params in _mupdf:
  4699. _mupdf.pdf_filespec_params_swigregister(pdf_filespec_params)
  4700. PDF_WIDGET_TYPE_UNKNOWN = _mupdf.PDF_WIDGET_TYPE_UNKNOWN
  4701. PDF_WIDGET_TYPE_BUTTON = _mupdf.PDF_WIDGET_TYPE_BUTTON
  4702. PDF_WIDGET_TYPE_CHECKBOX = _mupdf.PDF_WIDGET_TYPE_CHECKBOX
  4703. PDF_WIDGET_TYPE_COMBOBOX = _mupdf.PDF_WIDGET_TYPE_COMBOBOX
  4704. PDF_WIDGET_TYPE_LISTBOX = _mupdf.PDF_WIDGET_TYPE_LISTBOX
  4705. PDF_WIDGET_TYPE_RADIOBUTTON = _mupdf.PDF_WIDGET_TYPE_RADIOBUTTON
  4706. PDF_WIDGET_TYPE_SIGNATURE = _mupdf.PDF_WIDGET_TYPE_SIGNATURE
  4707. PDF_WIDGET_TYPE_TEXT = _mupdf.PDF_WIDGET_TYPE_TEXT
  4708. PDF_WIDGET_TX_FORMAT_NONE = _mupdf.PDF_WIDGET_TX_FORMAT_NONE
  4709. PDF_WIDGET_TX_FORMAT_NUMBER = _mupdf.PDF_WIDGET_TX_FORMAT_NUMBER
  4710. PDF_WIDGET_TX_FORMAT_SPECIAL = _mupdf.PDF_WIDGET_TX_FORMAT_SPECIAL
  4711. PDF_WIDGET_TX_FORMAT_DATE = _mupdf.PDF_WIDGET_TX_FORMAT_DATE
  4712. PDF_WIDGET_TX_FORMAT_TIME = _mupdf.PDF_WIDGET_TX_FORMAT_TIME
  4713. PDF_FIELD_IS_READ_ONLY = _mupdf.PDF_FIELD_IS_READ_ONLY
  4714. PDF_FIELD_IS_REQUIRED = _mupdf.PDF_FIELD_IS_REQUIRED
  4715. PDF_FIELD_IS_NO_EXPORT = _mupdf.PDF_FIELD_IS_NO_EXPORT
  4716. PDF_TX_FIELD_IS_MULTILINE = _mupdf.PDF_TX_FIELD_IS_MULTILINE
  4717. PDF_TX_FIELD_IS_PASSWORD = _mupdf.PDF_TX_FIELD_IS_PASSWORD
  4718. PDF_TX_FIELD_IS_FILE_SELECT = _mupdf.PDF_TX_FIELD_IS_FILE_SELECT
  4719. PDF_TX_FIELD_IS_DO_NOT_SPELL_CHECK = _mupdf.PDF_TX_FIELD_IS_DO_NOT_SPELL_CHECK
  4720. PDF_TX_FIELD_IS_DO_NOT_SCROLL = _mupdf.PDF_TX_FIELD_IS_DO_NOT_SCROLL
  4721. PDF_TX_FIELD_IS_COMB = _mupdf.PDF_TX_FIELD_IS_COMB
  4722. PDF_TX_FIELD_IS_RICH_TEXT = _mupdf.PDF_TX_FIELD_IS_RICH_TEXT
  4723. PDF_BTN_FIELD_IS_NO_TOGGLE_TO_OFF = _mupdf.PDF_BTN_FIELD_IS_NO_TOGGLE_TO_OFF
  4724. PDF_BTN_FIELD_IS_RADIO = _mupdf.PDF_BTN_FIELD_IS_RADIO
  4725. PDF_BTN_FIELD_IS_PUSHBUTTON = _mupdf.PDF_BTN_FIELD_IS_PUSHBUTTON
  4726. PDF_BTN_FIELD_IS_RADIOS_IN_UNISON = _mupdf.PDF_BTN_FIELD_IS_RADIOS_IN_UNISON
  4727. PDF_CH_FIELD_IS_COMBO = _mupdf.PDF_CH_FIELD_IS_COMBO
  4728. PDF_CH_FIELD_IS_EDIT = _mupdf.PDF_CH_FIELD_IS_EDIT
  4729. PDF_CH_FIELD_IS_SORT = _mupdf.PDF_CH_FIELD_IS_SORT
  4730. PDF_CH_FIELD_IS_MULTI_SELECT = _mupdf.PDF_CH_FIELD_IS_MULTI_SELECT
  4731. PDF_CH_FIELD_IS_DO_NOT_SPELL_CHECK = _mupdf.PDF_CH_FIELD_IS_DO_NOT_SPELL_CHECK
  4732. PDF_CH_FIELD_IS_COMMIT_ON_SEL_CHANGE = _mupdf.PDF_CH_FIELD_IS_COMMIT_ON_SEL_CHANGE
  4733. class pdf_pkcs7_distinguished_name(object):
  4734. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4735. __repr__ = _swig_repr
  4736. cn = property(_mupdf.pdf_pkcs7_distinguished_name_cn_get, _mupdf.pdf_pkcs7_distinguished_name_cn_set)
  4737. o = property(_mupdf.pdf_pkcs7_distinguished_name_o_get, _mupdf.pdf_pkcs7_distinguished_name_o_set)
  4738. ou = property(_mupdf.pdf_pkcs7_distinguished_name_ou_get, _mupdf.pdf_pkcs7_distinguished_name_ou_set)
  4739. email = property(_mupdf.pdf_pkcs7_distinguished_name_email_get, _mupdf.pdf_pkcs7_distinguished_name_email_set)
  4740. c = property(_mupdf.pdf_pkcs7_distinguished_name_c_get, _mupdf.pdf_pkcs7_distinguished_name_c_set)
  4741. def __init__(self):
  4742. _mupdf.pdf_pkcs7_distinguished_name_swiginit(self, _mupdf.new_pdf_pkcs7_distinguished_name())
  4743. __swig_destroy__ = _mupdf.delete_pdf_pkcs7_distinguished_name
  4744. # Register pdf_pkcs7_distinguished_name in _mupdf:
  4745. _mupdf.pdf_pkcs7_distinguished_name_swigregister(pdf_pkcs7_distinguished_name)
  4746. PDF_SIGNATURE_ERROR_OKAY = _mupdf.PDF_SIGNATURE_ERROR_OKAY
  4747. PDF_SIGNATURE_ERROR_NO_SIGNATURES = _mupdf.PDF_SIGNATURE_ERROR_NO_SIGNATURES
  4748. PDF_SIGNATURE_ERROR_NO_CERTIFICATE = _mupdf.PDF_SIGNATURE_ERROR_NO_CERTIFICATE
  4749. PDF_SIGNATURE_ERROR_DIGEST_FAILURE = _mupdf.PDF_SIGNATURE_ERROR_DIGEST_FAILURE
  4750. PDF_SIGNATURE_ERROR_SELF_SIGNED = _mupdf.PDF_SIGNATURE_ERROR_SELF_SIGNED
  4751. PDF_SIGNATURE_ERROR_SELF_SIGNED_IN_CHAIN = _mupdf.PDF_SIGNATURE_ERROR_SELF_SIGNED_IN_CHAIN
  4752. PDF_SIGNATURE_ERROR_NOT_TRUSTED = _mupdf.PDF_SIGNATURE_ERROR_NOT_TRUSTED
  4753. PDF_SIGNATURE_ERROR_NOT_SIGNED = _mupdf.PDF_SIGNATURE_ERROR_NOT_SIGNED
  4754. PDF_SIGNATURE_ERROR_UNKNOWN = _mupdf.PDF_SIGNATURE_ERROR_UNKNOWN
  4755. class pdf_pkcs7_signer(object):
  4756. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4757. __repr__ = _swig_repr
  4758. keep = property(_mupdf.pdf_pkcs7_signer_keep_get, _mupdf.pdf_pkcs7_signer_keep_set)
  4759. drop = property(_mupdf.pdf_pkcs7_signer_drop_get, _mupdf.pdf_pkcs7_signer_drop_set)
  4760. get_signing_name = property(_mupdf.pdf_pkcs7_signer_get_signing_name_get, _mupdf.pdf_pkcs7_signer_get_signing_name_set)
  4761. max_digest_size = property(_mupdf.pdf_pkcs7_signer_max_digest_size_get, _mupdf.pdf_pkcs7_signer_max_digest_size_set)
  4762. create_digest = property(_mupdf.pdf_pkcs7_signer_create_digest_get, _mupdf.pdf_pkcs7_signer_create_digest_set)
  4763. def __init__(self):
  4764. _mupdf.pdf_pkcs7_signer_swiginit(self, _mupdf.new_pdf_pkcs7_signer())
  4765. __swig_destroy__ = _mupdf.delete_pdf_pkcs7_signer
  4766. # Register pdf_pkcs7_signer in _mupdf:
  4767. _mupdf.pdf_pkcs7_signer_swigregister(pdf_pkcs7_signer)
  4768. class pdf_pkcs7_verifier(object):
  4769. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4770. __repr__ = _swig_repr
  4771. drop = property(_mupdf.pdf_pkcs7_verifier_drop_get, _mupdf.pdf_pkcs7_verifier_drop_set)
  4772. check_certificate = property(_mupdf.pdf_pkcs7_verifier_check_certificate_get, _mupdf.pdf_pkcs7_verifier_check_certificate_set)
  4773. check_digest = property(_mupdf.pdf_pkcs7_verifier_check_digest_get, _mupdf.pdf_pkcs7_verifier_check_digest_set)
  4774. get_signatory = property(_mupdf.pdf_pkcs7_verifier_get_signatory_get, _mupdf.pdf_pkcs7_verifier_get_signatory_set)
  4775. def __init__(self):
  4776. _mupdf.pdf_pkcs7_verifier_swiginit(self, _mupdf.new_pdf_pkcs7_verifier())
  4777. __swig_destroy__ = _mupdf.delete_pdf_pkcs7_verifier
  4778. # Register pdf_pkcs7_verifier in _mupdf:
  4779. _mupdf.pdf_pkcs7_verifier_swigregister(pdf_pkcs7_verifier)
  4780. PDF_SIGNATURE_SHOW_LABELS = _mupdf.PDF_SIGNATURE_SHOW_LABELS
  4781. PDF_SIGNATURE_SHOW_DN = _mupdf.PDF_SIGNATURE_SHOW_DN
  4782. PDF_SIGNATURE_SHOW_DATE = _mupdf.PDF_SIGNATURE_SHOW_DATE
  4783. PDF_SIGNATURE_SHOW_TEXT_NAME = _mupdf.PDF_SIGNATURE_SHOW_TEXT_NAME
  4784. PDF_SIGNATURE_SHOW_GRAPHIC_NAME = _mupdf.PDF_SIGNATURE_SHOW_GRAPHIC_NAME
  4785. PDF_SIGNATURE_SHOW_LOGO = _mupdf.PDF_SIGNATURE_SHOW_LOGO
  4786. class pdf_keystroke_event(object):
  4787. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4788. __repr__ = _swig_repr
  4789. value = property(_mupdf.pdf_keystroke_event_value_get, _mupdf.pdf_keystroke_event_value_set)
  4790. change = property(_mupdf.pdf_keystroke_event_change_get, _mupdf.pdf_keystroke_event_change_set)
  4791. selStart = property(_mupdf.pdf_keystroke_event_selStart_get, _mupdf.pdf_keystroke_event_selStart_set)
  4792. selEnd = property(_mupdf.pdf_keystroke_event_selEnd_get, _mupdf.pdf_keystroke_event_selEnd_set)
  4793. willCommit = property(_mupdf.pdf_keystroke_event_willCommit_get, _mupdf.pdf_keystroke_event_willCommit_set)
  4794. newChange = property(_mupdf.pdf_keystroke_event_newChange_get, _mupdf.pdf_keystroke_event_newChange_set)
  4795. newValue = property(_mupdf.pdf_keystroke_event_newValue_get, _mupdf.pdf_keystroke_event_newValue_set)
  4796. def __init__(self):
  4797. _mupdf.pdf_keystroke_event_swiginit(self, _mupdf.new_pdf_keystroke_event())
  4798. __swig_destroy__ = _mupdf.delete_pdf_keystroke_event
  4799. # Register pdf_keystroke_event in _mupdf:
  4800. _mupdf.pdf_keystroke_event_swigregister(pdf_keystroke_event)
  4801. class pdf_doc_event(object):
  4802. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4803. __repr__ = _swig_repr
  4804. type = property(_mupdf.pdf_doc_event_type_get, _mupdf.pdf_doc_event_type_set)
  4805. def __init__(self):
  4806. _mupdf.pdf_doc_event_swiginit(self, _mupdf.new_pdf_doc_event())
  4807. __swig_destroy__ = _mupdf.delete_pdf_doc_event
  4808. # Register pdf_doc_event in _mupdf:
  4809. _mupdf.pdf_doc_event_swigregister(pdf_doc_event)
  4810. PDF_DOCUMENT_EVENT_ALERT = _mupdf.PDF_DOCUMENT_EVENT_ALERT
  4811. PDF_DOCUMENT_EVENT_PRINT = _mupdf.PDF_DOCUMENT_EVENT_PRINT
  4812. PDF_DOCUMENT_EVENT_LAUNCH_URL = _mupdf.PDF_DOCUMENT_EVENT_LAUNCH_URL
  4813. PDF_DOCUMENT_EVENT_MAIL_DOC = _mupdf.PDF_DOCUMENT_EVENT_MAIL_DOC
  4814. PDF_DOCUMENT_EVENT_SUBMIT = _mupdf.PDF_DOCUMENT_EVENT_SUBMIT
  4815. PDF_DOCUMENT_EVENT_EXEC_MENU_ITEM = _mupdf.PDF_DOCUMENT_EVENT_EXEC_MENU_ITEM
  4816. class pdf_alert_event(object):
  4817. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4818. __repr__ = _swig_repr
  4819. doc = property(_mupdf.pdf_alert_event_doc_get, _mupdf.pdf_alert_event_doc_set)
  4820. message = property(_mupdf.pdf_alert_event_message_get, _mupdf.pdf_alert_event_message_set)
  4821. icon_type = property(_mupdf.pdf_alert_event_icon_type_get, _mupdf.pdf_alert_event_icon_type_set)
  4822. button_group_type = property(_mupdf.pdf_alert_event_button_group_type_get, _mupdf.pdf_alert_event_button_group_type_set)
  4823. title = property(_mupdf.pdf_alert_event_title_get, _mupdf.pdf_alert_event_title_set)
  4824. has_check_box = property(_mupdf.pdf_alert_event_has_check_box_get, _mupdf.pdf_alert_event_has_check_box_set)
  4825. check_box_message = property(_mupdf.pdf_alert_event_check_box_message_get, _mupdf.pdf_alert_event_check_box_message_set)
  4826. initially_checked = property(_mupdf.pdf_alert_event_initially_checked_get, _mupdf.pdf_alert_event_initially_checked_set)
  4827. finally_checked = property(_mupdf.pdf_alert_event_finally_checked_get, _mupdf.pdf_alert_event_finally_checked_set)
  4828. button_pressed = property(_mupdf.pdf_alert_event_button_pressed_get, _mupdf.pdf_alert_event_button_pressed_set)
  4829. def __init__(self):
  4830. _mupdf.pdf_alert_event_swiginit(self, _mupdf.new_pdf_alert_event())
  4831. __swig_destroy__ = _mupdf.delete_pdf_alert_event
  4832. # Register pdf_alert_event in _mupdf:
  4833. _mupdf.pdf_alert_event_swigregister(pdf_alert_event)
  4834. PDF_ALERT_ICON_ERROR = _mupdf.PDF_ALERT_ICON_ERROR
  4835. PDF_ALERT_ICON_WARNING = _mupdf.PDF_ALERT_ICON_WARNING
  4836. PDF_ALERT_ICON_QUESTION = _mupdf.PDF_ALERT_ICON_QUESTION
  4837. PDF_ALERT_ICON_STATUS = _mupdf.PDF_ALERT_ICON_STATUS
  4838. PDF_ALERT_BUTTON_GROUP_OK = _mupdf.PDF_ALERT_BUTTON_GROUP_OK
  4839. PDF_ALERT_BUTTON_GROUP_OK_CANCEL = _mupdf.PDF_ALERT_BUTTON_GROUP_OK_CANCEL
  4840. PDF_ALERT_BUTTON_GROUP_YES_NO = _mupdf.PDF_ALERT_BUTTON_GROUP_YES_NO
  4841. PDF_ALERT_BUTTON_GROUP_YES_NO_CANCEL = _mupdf.PDF_ALERT_BUTTON_GROUP_YES_NO_CANCEL
  4842. PDF_ALERT_BUTTON_NONE = _mupdf.PDF_ALERT_BUTTON_NONE
  4843. PDF_ALERT_BUTTON_OK = _mupdf.PDF_ALERT_BUTTON_OK
  4844. PDF_ALERT_BUTTON_CANCEL = _mupdf.PDF_ALERT_BUTTON_CANCEL
  4845. PDF_ALERT_BUTTON_NO = _mupdf.PDF_ALERT_BUTTON_NO
  4846. PDF_ALERT_BUTTON_YES = _mupdf.PDF_ALERT_BUTTON_YES
  4847. class pdf_launch_url_event(object):
  4848. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4849. __repr__ = _swig_repr
  4850. url = property(_mupdf.pdf_launch_url_event_url_get, _mupdf.pdf_launch_url_event_url_set)
  4851. new_frame = property(_mupdf.pdf_launch_url_event_new_frame_get, _mupdf.pdf_launch_url_event_new_frame_set)
  4852. def __init__(self):
  4853. _mupdf.pdf_launch_url_event_swiginit(self, _mupdf.new_pdf_launch_url_event())
  4854. __swig_destroy__ = _mupdf.delete_pdf_launch_url_event
  4855. # Register pdf_launch_url_event in _mupdf:
  4856. _mupdf.pdf_launch_url_event_swigregister(pdf_launch_url_event)
  4857. class pdf_mail_doc_event(object):
  4858. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4859. __repr__ = _swig_repr
  4860. ask_user = property(_mupdf.pdf_mail_doc_event_ask_user_get, _mupdf.pdf_mail_doc_event_ask_user_set)
  4861. to = property(_mupdf.pdf_mail_doc_event_to_get, _mupdf.pdf_mail_doc_event_to_set)
  4862. cc = property(_mupdf.pdf_mail_doc_event_cc_get, _mupdf.pdf_mail_doc_event_cc_set)
  4863. bcc = property(_mupdf.pdf_mail_doc_event_bcc_get, _mupdf.pdf_mail_doc_event_bcc_set)
  4864. subject = property(_mupdf.pdf_mail_doc_event_subject_get, _mupdf.pdf_mail_doc_event_subject_set)
  4865. message = property(_mupdf.pdf_mail_doc_event_message_get, _mupdf.pdf_mail_doc_event_message_set)
  4866. def __init__(self):
  4867. _mupdf.pdf_mail_doc_event_swiginit(self, _mupdf.new_pdf_mail_doc_event())
  4868. __swig_destroy__ = _mupdf.delete_pdf_mail_doc_event
  4869. # Register pdf_mail_doc_event in _mupdf:
  4870. _mupdf.pdf_mail_doc_event_swigregister(pdf_mail_doc_event)
  4871. FZ_SUBSAMPLE_AVERAGE = _mupdf.FZ_SUBSAMPLE_AVERAGE
  4872. FZ_SUBSAMPLE_BICUBIC = _mupdf.FZ_SUBSAMPLE_BICUBIC
  4873. FZ_RECOMPRESS_NEVER = _mupdf.FZ_RECOMPRESS_NEVER
  4874. FZ_RECOMPRESS_SAME = _mupdf.FZ_RECOMPRESS_SAME
  4875. FZ_RECOMPRESS_LOSSLESS = _mupdf.FZ_RECOMPRESS_LOSSLESS
  4876. FZ_RECOMPRESS_JPEG = _mupdf.FZ_RECOMPRESS_JPEG
  4877. FZ_RECOMPRESS_J2K = _mupdf.FZ_RECOMPRESS_J2K
  4878. FZ_RECOMPRESS_FAX = _mupdf.FZ_RECOMPRESS_FAX
  4879. class pdf_image_rewriter_options(object):
  4880. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4881. __repr__ = _swig_repr
  4882. color_lossless_image_subsample_method = property(_mupdf.pdf_image_rewriter_options_color_lossless_image_subsample_method_get, _mupdf.pdf_image_rewriter_options_color_lossless_image_subsample_method_set)
  4883. color_lossy_image_subsample_method = property(_mupdf.pdf_image_rewriter_options_color_lossy_image_subsample_method_get, _mupdf.pdf_image_rewriter_options_color_lossy_image_subsample_method_set)
  4884. color_lossless_image_subsample_threshold = property(_mupdf.pdf_image_rewriter_options_color_lossless_image_subsample_threshold_get, _mupdf.pdf_image_rewriter_options_color_lossless_image_subsample_threshold_set)
  4885. color_lossless_image_subsample_to = property(_mupdf.pdf_image_rewriter_options_color_lossless_image_subsample_to_get, _mupdf.pdf_image_rewriter_options_color_lossless_image_subsample_to_set)
  4886. color_lossy_image_subsample_threshold = property(_mupdf.pdf_image_rewriter_options_color_lossy_image_subsample_threshold_get, _mupdf.pdf_image_rewriter_options_color_lossy_image_subsample_threshold_set)
  4887. color_lossy_image_subsample_to = property(_mupdf.pdf_image_rewriter_options_color_lossy_image_subsample_to_get, _mupdf.pdf_image_rewriter_options_color_lossy_image_subsample_to_set)
  4888. color_lossless_image_recompress_method = property(_mupdf.pdf_image_rewriter_options_color_lossless_image_recompress_method_get, _mupdf.pdf_image_rewriter_options_color_lossless_image_recompress_method_set)
  4889. color_lossy_image_recompress_method = property(_mupdf.pdf_image_rewriter_options_color_lossy_image_recompress_method_get, _mupdf.pdf_image_rewriter_options_color_lossy_image_recompress_method_set)
  4890. color_lossy_image_recompress_quality = property(_mupdf.pdf_image_rewriter_options_color_lossy_image_recompress_quality_get, _mupdf.pdf_image_rewriter_options_color_lossy_image_recompress_quality_set)
  4891. color_lossless_image_recompress_quality = property(_mupdf.pdf_image_rewriter_options_color_lossless_image_recompress_quality_get, _mupdf.pdf_image_rewriter_options_color_lossless_image_recompress_quality_set)
  4892. gray_lossless_image_subsample_method = property(_mupdf.pdf_image_rewriter_options_gray_lossless_image_subsample_method_get, _mupdf.pdf_image_rewriter_options_gray_lossless_image_subsample_method_set)
  4893. gray_lossy_image_subsample_method = property(_mupdf.pdf_image_rewriter_options_gray_lossy_image_subsample_method_get, _mupdf.pdf_image_rewriter_options_gray_lossy_image_subsample_method_set)
  4894. gray_lossless_image_subsample_threshold = property(_mupdf.pdf_image_rewriter_options_gray_lossless_image_subsample_threshold_get, _mupdf.pdf_image_rewriter_options_gray_lossless_image_subsample_threshold_set)
  4895. gray_lossless_image_subsample_to = property(_mupdf.pdf_image_rewriter_options_gray_lossless_image_subsample_to_get, _mupdf.pdf_image_rewriter_options_gray_lossless_image_subsample_to_set)
  4896. gray_lossy_image_subsample_threshold = property(_mupdf.pdf_image_rewriter_options_gray_lossy_image_subsample_threshold_get, _mupdf.pdf_image_rewriter_options_gray_lossy_image_subsample_threshold_set)
  4897. gray_lossy_image_subsample_to = property(_mupdf.pdf_image_rewriter_options_gray_lossy_image_subsample_to_get, _mupdf.pdf_image_rewriter_options_gray_lossy_image_subsample_to_set)
  4898. gray_lossless_image_recompress_method = property(_mupdf.pdf_image_rewriter_options_gray_lossless_image_recompress_method_get, _mupdf.pdf_image_rewriter_options_gray_lossless_image_recompress_method_set)
  4899. gray_lossy_image_recompress_method = property(_mupdf.pdf_image_rewriter_options_gray_lossy_image_recompress_method_get, _mupdf.pdf_image_rewriter_options_gray_lossy_image_recompress_method_set)
  4900. gray_lossy_image_recompress_quality = property(_mupdf.pdf_image_rewriter_options_gray_lossy_image_recompress_quality_get, _mupdf.pdf_image_rewriter_options_gray_lossy_image_recompress_quality_set)
  4901. gray_lossless_image_recompress_quality = property(_mupdf.pdf_image_rewriter_options_gray_lossless_image_recompress_quality_get, _mupdf.pdf_image_rewriter_options_gray_lossless_image_recompress_quality_set)
  4902. bitonal_image_subsample_method = property(_mupdf.pdf_image_rewriter_options_bitonal_image_subsample_method_get, _mupdf.pdf_image_rewriter_options_bitonal_image_subsample_method_set)
  4903. bitonal_image_subsample_threshold = property(_mupdf.pdf_image_rewriter_options_bitonal_image_subsample_threshold_get, _mupdf.pdf_image_rewriter_options_bitonal_image_subsample_threshold_set)
  4904. bitonal_image_subsample_to = property(_mupdf.pdf_image_rewriter_options_bitonal_image_subsample_to_get, _mupdf.pdf_image_rewriter_options_bitonal_image_subsample_to_set)
  4905. bitonal_image_recompress_method = property(_mupdf.pdf_image_rewriter_options_bitonal_image_recompress_method_get, _mupdf.pdf_image_rewriter_options_bitonal_image_recompress_method_set)
  4906. bitonal_image_recompress_quality = property(_mupdf.pdf_image_rewriter_options_bitonal_image_recompress_quality_get, _mupdf.pdf_image_rewriter_options_bitonal_image_recompress_quality_set)
  4907. def __init__(self):
  4908. _mupdf.pdf_image_rewriter_options_swiginit(self, _mupdf.new_pdf_image_rewriter_options())
  4909. __swig_destroy__ = _mupdf.delete_pdf_image_rewriter_options
  4910. # Register pdf_image_rewriter_options in _mupdf:
  4911. _mupdf.pdf_image_rewriter_options_swigregister(pdf_image_rewriter_options)
  4912. PDF_CLEAN_STRUCTURE_DROP = _mupdf.PDF_CLEAN_STRUCTURE_DROP
  4913. PDF_CLEAN_STRUCTURE_KEEP = _mupdf.PDF_CLEAN_STRUCTURE_KEEP
  4914. class pdf_clean_options(object):
  4915. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4916. __repr__ = _swig_repr
  4917. write = property(_mupdf.pdf_clean_options_write_get, _mupdf.pdf_clean_options_write_set)
  4918. image = property(_mupdf.pdf_clean_options_image_get, _mupdf.pdf_clean_options_image_set)
  4919. subset_fonts = property(_mupdf.pdf_clean_options_subset_fonts_get, _mupdf.pdf_clean_options_subset_fonts_set)
  4920. structure = property(_mupdf.pdf_clean_options_structure_get, _mupdf.pdf_clean_options_structure_set)
  4921. def __init__(self):
  4922. _mupdf.pdf_clean_options_swiginit(self, _mupdf.new_pdf_clean_options())
  4923. __swig_destroy__ = _mupdf.delete_pdf_clean_options
  4924. # Register pdf_clean_options in _mupdf:
  4925. _mupdf.pdf_clean_options_swigregister(pdf_clean_options)
  4926. class pdf_recolor_options(object):
  4927. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4928. __repr__ = _swig_repr
  4929. num_comp = property(_mupdf.pdf_recolor_options_num_comp_get, _mupdf.pdf_recolor_options_num_comp_set)
  4930. def __init__(self):
  4931. _mupdf.pdf_recolor_options_swiginit(self, _mupdf.new_pdf_recolor_options())
  4932. __swig_destroy__ = _mupdf.delete_pdf_recolor_options
  4933. # Register pdf_recolor_options in _mupdf:
  4934. _mupdf.pdf_recolor_options_swigregister(pdf_recolor_options)
  4935. PDF_NOT_ZUGFERD = _mupdf.PDF_NOT_ZUGFERD
  4936. PDF_ZUGFERD_COMFORT = _mupdf.PDF_ZUGFERD_COMFORT
  4937. PDF_ZUGFERD_BASIC = _mupdf.PDF_ZUGFERD_BASIC
  4938. PDF_ZUGFERD_EXTENDED = _mupdf.PDF_ZUGFERD_EXTENDED
  4939. PDF_ZUGFERD_BASIC_WL = _mupdf.PDF_ZUGFERD_BASIC_WL
  4940. PDF_ZUGFERD_MINIMUM = _mupdf.PDF_ZUGFERD_MINIMUM
  4941. PDF_ZUGFERD_XRECHNUNG = _mupdf.PDF_ZUGFERD_XRECHNUNG
  4942. PDF_ZUGFERD_UNKNOWN = _mupdf.PDF_ZUGFERD_UNKNOWN
  4943. class fz_search_page2_hit(object):
  4944. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4945. __repr__ = _swig_repr
  4946. quad = property(_mupdf.fz_search_page2_hit_quad_get, _mupdf.fz_search_page2_hit_quad_set)
  4947. mark = property(_mupdf.fz_search_page2_hit_mark_get, _mupdf.fz_search_page2_hit_mark_set)
  4948. def __init__(self):
  4949. _mupdf.fz_search_page2_hit_swiginit(self, _mupdf.new_fz_search_page2_hit())
  4950. __swig_destroy__ = _mupdf.delete_fz_search_page2_hit
  4951. # Register fz_search_page2_hit in _mupdf:
  4952. _mupdf.fz_search_page2_hit_swigregister(fz_search_page2_hit)
  4953. class fz_install_load_system_font_funcs_args(object):
  4954. r"""
  4955. Extra struct containing fz_install_load_system_font_funcs()'s args,
  4956. which we wrap with virtual_fnptrs set to allow use from Python/C# via
  4957. Swig Directors.
  4958. """
  4959. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4960. __repr__ = _swig_repr
  4961. f = property(_mupdf.fz_install_load_system_font_funcs_args_f_get, _mupdf.fz_install_load_system_font_funcs_args_f_set)
  4962. f_cjk = property(_mupdf.fz_install_load_system_font_funcs_args_f_cjk_get, _mupdf.fz_install_load_system_font_funcs_args_f_cjk_set)
  4963. f_fallback = property(_mupdf.fz_install_load_system_font_funcs_args_f_fallback_get, _mupdf.fz_install_load_system_font_funcs_args_f_fallback_set)
  4964. def __init__(self):
  4965. _mupdf.fz_install_load_system_font_funcs_args_swiginit(self, _mupdf.new_fz_install_load_system_font_funcs_args())
  4966. __swig_destroy__ = _mupdf.delete_fz_install_load_system_font_funcs_args
  4967. # Register fz_install_load_system_font_funcs_args in _mupdf:
  4968. _mupdf.fz_install_load_system_font_funcs_args_swigregister(fz_install_load_system_font_funcs_args)
  4969. class fz_font_ucs_gid(object):
  4970. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4971. __repr__ = _swig_repr
  4972. ucs = property(_mupdf.fz_font_ucs_gid_ucs_get, _mupdf.fz_font_ucs_gid_ucs_set)
  4973. gid = property(_mupdf.fz_font_ucs_gid_gid_get, _mupdf.fz_font_ucs_gid_gid_set)
  4974. def __init__(self):
  4975. _mupdf.fz_font_ucs_gid_swiginit(self, _mupdf.new_fz_font_ucs_gid())
  4976. __swig_destroy__ = _mupdf.delete_fz_font_ucs_gid
  4977. # Register fz_font_ucs_gid in _mupdf:
  4978. _mupdf.fz_font_ucs_gid_swigregister(fz_font_ucs_gid)
  4979. def ll_fz_aa_level():
  4980. r"""
  4981. Low-level wrapper for `::fz_aa_level()`.
  4982. Get the number of bits of antialiasing we are
  4983. using (for graphics). Between 0 and 8.
  4984. """
  4985. return _mupdf.ll_fz_aa_level()
  4986. def ll_fz_abs(f):
  4987. r"""
  4988. Low-level wrapper for `::fz_abs()`.
  4989. Some standard math functions, done as static inlines for speed.
  4990. People with compilers that do not adequately implement inline
  4991. may like to reimplement these using macros.
  4992. """
  4993. return _mupdf.ll_fz_abs(f)
  4994. def ll_fz_absi(i):
  4995. r"""Low-level wrapper for `::fz_absi()`."""
  4996. return _mupdf.ll_fz_absi(i)
  4997. def ll_fz_add_layout_char(block, x, w, p):
  4998. r"""
  4999. Low-level wrapper for `::fz_add_layout_char()`.
  5000. Add a new char to the line at the end of the layout block.
  5001. """
  5002. return _mupdf.ll_fz_add_layout_char(block, x, w, p)
  5003. def ll_fz_add_layout_line(block, x, y, h, p):
  5004. r"""
  5005. Low-level wrapper for `::fz_add_layout_line()`.
  5006. Add a new line to the end of the layout block.
  5007. """
  5008. return _mupdf.ll_fz_add_layout_line(block, x, y, h, p)
  5009. def ll_fz_add_separation(sep, name, cs, cs_channel):
  5010. r"""
  5011. Low-level wrapper for `::fz_add_separation()`.
  5012. Add a separation (null terminated name, colorspace)
  5013. """
  5014. return _mupdf.ll_fz_add_separation(sep, name, cs, cs_channel)
  5015. def ll_fz_add_separation_equivalents(sep, rgba, cmyk, name):
  5016. r"""
  5017. Low-level wrapper for `::fz_add_separation_equivalents()`.
  5018. Add a separation with equivalents (null terminated name,
  5019. colorspace)
  5020. (old, deprecated)
  5021. """
  5022. return _mupdf.ll_fz_add_separation_equivalents(sep, rgba, cmyk, name)
  5023. def ll_fz_adjust_rect_for_stroke(rect, stroke, ctm):
  5024. r"""
  5025. Low-level wrapper for `::fz_adjust_rect_for_stroke()`.
  5026. Given a rectangle (assumed to be the bounding box for a path),
  5027. expand it to allow for the expansion of the bbox that would be
  5028. seen by stroking the path with the given stroke state and
  5029. transform.
  5030. """
  5031. return _mupdf.ll_fz_adjust_rect_for_stroke(rect, stroke, ctm)
  5032. def ll_fz_advance_glyph(font, glyph, wmode):
  5033. r"""
  5034. Low-level wrapper for `::fz_advance_glyph()`.
  5035. Return the advance for a given glyph.
  5036. font: The font to look for the glyph in.
  5037. glyph: The glyph to find the advance for.
  5038. wmode: 1 for vertical mode, 0 for horizontal.
  5039. Returns the advance for the glyph.
  5040. """
  5041. return _mupdf.ll_fz_advance_glyph(font, glyph, wmode)
  5042. def ll_fz_aes_crypt_cbc(ctx, mode, length, iv, input, output):
  5043. r"""
  5044. Low-level wrapper for `::fz_aes_crypt_cbc()`.
  5045. AES block processing. Encrypts or Decrypts (according to mode,
  5046. which must match what was initially set up) length bytes (which
  5047. must be a multiple of 16), using (and modifying) the insertion
  5048. vector iv, reading from input, and writing to output.
  5049. Never throws an exception.
  5050. """
  5051. return _mupdf.ll_fz_aes_crypt_cbc(ctx, mode, length, iv, input, output)
  5052. def ll_fz_aes_setkey_dec(ctx, key, keysize):
  5053. r"""
  5054. Low-level wrapper for `::fz_aes_setkey_dec()`.
  5055. AES decryption initialization. Fills in the supplied context
  5056. and prepares for decryption using the given key.
  5057. Returns non-zero for error (key size other than 128/192/256).
  5058. Never throws an exception.
  5059. """
  5060. return _mupdf.ll_fz_aes_setkey_dec(ctx, key, keysize)
  5061. def ll_fz_aes_setkey_enc(ctx, key, keysize):
  5062. r"""
  5063. Low-level wrapper for `::fz_aes_setkey_enc()`.
  5064. AES encryption initialization. Fills in the supplied context
  5065. and prepares for encryption using the given key.
  5066. Returns non-zero for error (key size other than 128/192/256).
  5067. Never throws an exception.
  5068. """
  5069. return _mupdf.ll_fz_aes_setkey_enc(ctx, key, keysize)
  5070. def ll_fz_alpha_from_gray(gray):
  5071. r"""Low-level wrapper for `::fz_alpha_from_gray()`."""
  5072. return _mupdf.ll_fz_alpha_from_gray(gray)
  5073. def ll_fz_append_base64(out, data, size, newline):
  5074. r"""
  5075. Low-level wrapper for `::fz_append_base64()`.
  5076. Write a base64 encoded data block, optionally with periodic newlines.
  5077. """
  5078. return _mupdf.ll_fz_append_base64(out, data, size, newline)
  5079. def ll_fz_append_base64_buffer(out, data, newline):
  5080. r"""
  5081. Low-level wrapper for `::fz_append_base64_buffer()`.
  5082. Append a base64 encoded fz_buffer, optionally with periodic newlines.
  5083. """
  5084. return _mupdf.ll_fz_append_base64_buffer(out, data, newline)
  5085. def ll_fz_append_bits(buf, value, count):
  5086. r"""Low-level wrapper for `::fz_append_bits()`."""
  5087. return _mupdf.ll_fz_append_bits(buf, value, count)
  5088. def ll_fz_append_bits_pad(buf):
  5089. r"""Low-level wrapper for `::fz_append_bits_pad()`."""
  5090. return _mupdf.ll_fz_append_bits_pad(buf)
  5091. def ll_fz_append_buffer(destination, source):
  5092. r"""
  5093. Low-level wrapper for `::fz_append_buffer()`.
  5094. Append the contents of the source buffer onto the end of the
  5095. destination buffer, extending automatically as required.
  5096. Ownership of buffers does not change.
  5097. """
  5098. return _mupdf.ll_fz_append_buffer(destination, source)
  5099. def ll_fz_append_byte(buf, c):
  5100. r"""Low-level wrapper for `::fz_append_byte()`."""
  5101. return _mupdf.ll_fz_append_byte(buf, c)
  5102. def ll_fz_append_data(buf, data, len):
  5103. r"""
  5104. Low-level wrapper for `::fz_append_data()`.
  5105. fz_append_*: Append data to a buffer.
  5106. The buffer will automatically grow as required.
  5107. """
  5108. return _mupdf.ll_fz_append_data(buf, data, len)
  5109. def ll_fz_append_image_as_data_uri(out, image):
  5110. r"""Low-level wrapper for `::fz_append_image_as_data_uri()`."""
  5111. return _mupdf.ll_fz_append_image_as_data_uri(out, image)
  5112. def ll_fz_append_int16_be(buf, x):
  5113. r"""Low-level wrapper for `::fz_append_int16_be()`."""
  5114. return _mupdf.ll_fz_append_int16_be(buf, x)
  5115. def ll_fz_append_int16_le(buf, x):
  5116. r"""Low-level wrapper for `::fz_append_int16_le()`."""
  5117. return _mupdf.ll_fz_append_int16_le(buf, x)
  5118. def ll_fz_append_int32_be(buf, x):
  5119. r"""Low-level wrapper for `::fz_append_int32_be()`."""
  5120. return _mupdf.ll_fz_append_int32_be(buf, x)
  5121. def ll_fz_append_int32_le(buf, x):
  5122. r"""Low-level wrapper for `::fz_append_int32_le()`."""
  5123. return _mupdf.ll_fz_append_int32_le(buf, x)
  5124. def ll_fz_append_json(buf, value):
  5125. r"""Low-level wrapper for `::fz_append_json()`."""
  5126. return _mupdf.ll_fz_append_json(buf, value)
  5127. def ll_fz_append_pdf_string(buffer, text):
  5128. r"""
  5129. Low-level wrapper for `::fz_append_pdf_string()`.
  5130. fz_append_pdf_string: Append a string with PDF syntax quotes and
  5131. escapes.
  5132. The buffer will automatically grow as required.
  5133. """
  5134. return _mupdf.ll_fz_append_pdf_string(buffer, text)
  5135. def ll_fz_append_pixmap_as_data_uri(out, pixmap):
  5136. r"""Low-level wrapper for `::fz_append_pixmap_as_data_uri()`."""
  5137. return _mupdf.ll_fz_append_pixmap_as_data_uri(out, pixmap)
  5138. def ll_fz_append_rune(buf, c):
  5139. r"""Low-level wrapper for `::fz_append_rune()`."""
  5140. return _mupdf.ll_fz_append_rune(buf, c)
  5141. def ll_fz_append_string(buf, data):
  5142. r"""Low-level wrapper for `::fz_append_string()`."""
  5143. return _mupdf.ll_fz_append_string(buf, data)
  5144. def ll_fz_arc4_encrypt(state, dest, src, len):
  5145. r"""
  5146. Low-level wrapper for `::fz_arc4_encrypt()`.
  5147. RC4 block encrypt operation; encrypt src into dst (both of
  5148. length len) updating the RC4 state as we go.
  5149. Never throws an exception.
  5150. """
  5151. return _mupdf.ll_fz_arc4_encrypt(state, dest, src, len)
  5152. def ll_fz_arc4_final(state):
  5153. r"""
  5154. Low-level wrapper for `::fz_arc4_final()`.
  5155. RC4 finalization. Zero the context.
  5156. Never throws an exception.
  5157. """
  5158. return _mupdf.ll_fz_arc4_final(state)
  5159. def ll_fz_arc4_init(state, key, len):
  5160. r"""
  5161. Low-level wrapper for `::fz_arc4_init()`.
  5162. RC4 initialization. Begins an RC4 operation, writing a new
  5163. context.
  5164. Never throws an exception.
  5165. """
  5166. return _mupdf.ll_fz_arc4_init(state, key, len)
  5167. def ll_fz_archive_format(arch):
  5168. r"""
  5169. Low-level wrapper for `::fz_archive_format()`.
  5170. Return a pointer to a string describing the format of the
  5171. archive.
  5172. The lifetime of the string is unspecified (in current
  5173. implementations the string will persist until the archive
  5174. is closed, but this is not guaranteed).
  5175. """
  5176. return _mupdf.ll_fz_archive_format(arch)
  5177. def ll_fz_atof(s):
  5178. r"""
  5179. Low-level wrapper for `::fz_atof()`.
  5180. Range checking atof
  5181. """
  5182. return _mupdf.ll_fz_atof(s)
  5183. def ll_fz_atoi(s):
  5184. r"""
  5185. Low-level wrapper for `::fz_atoi()`.
  5186. atoi that copes with NULL
  5187. """
  5188. return _mupdf.ll_fz_atoi(s)
  5189. def ll_fz_atoi64(s):
  5190. r"""
  5191. Low-level wrapper for `::fz_atoi64()`.
  5192. 64bit atoi that copes with NULL
  5193. """
  5194. return _mupdf.ll_fz_atoi64(s)
  5195. def ll_fz_atoz(s):
  5196. r"""
  5197. Low-level wrapper for `::fz_atoz()`.
  5198. size_t atoi that copes with NULL.
  5199. NOTE: limited to 63bits. Negative numbers
  5200. are returned as 0.
  5201. """
  5202. return _mupdf.ll_fz_atoz(s)
  5203. def ll_fz_authenticate_password(doc, password):
  5204. r"""
  5205. Low-level wrapper for `::fz_authenticate_password()`.
  5206. Test if the given password can decrypt the document.
  5207. password: The password string to be checked. Some document
  5208. specifications do not specify any particular text encoding, so
  5209. neither do we.
  5210. Returns 0 for failure to authenticate, non-zero for success.
  5211. For PDF documents, further information can be given by examining
  5212. the bits in the return code.
  5213. Bit 0 => No password required
  5214. Bit 1 => User password authenticated
  5215. Bit 2 => Owner password authenticated
  5216. """
  5217. return _mupdf.ll_fz_authenticate_password(doc, password)
  5218. def ll_fz_autowarp_pixmap(src, points):
  5219. r"""Low-level wrapper for `::fz_autowarp_pixmap()`."""
  5220. return _mupdf.ll_fz_autowarp_pixmap(src, points)
  5221. def ll_fz_available(stm, max):
  5222. r"""
  5223. Low-level wrapper for `::fz_available()`.
  5224. Ask how many bytes are available immediately from
  5225. a given stream.
  5226. stm: The stream to read from.
  5227. max: A hint for the underlying stream; the maximum number of
  5228. bytes that we are sure we will want to read. If you do not know
  5229. this number, give 1.
  5230. Returns the number of bytes immediately available between the
  5231. read and write pointers. This number is guaranteed only to be 0
  5232. if we have hit EOF. The number of bytes returned here need have
  5233. no relation to max (could be larger, could be smaller).
  5234. """
  5235. return _mupdf.ll_fz_available(stm, max)
  5236. def ll_fz_barcode_type_from_string(str):
  5237. r"""
  5238. Low-level wrapper for `::fz_barcode_type_from_string()`.
  5239. Helper function to search the above list (case insensitively)
  5240. for an exact match. Returns FZ_BARCODE_NONE if no match found.
  5241. """
  5242. return _mupdf.ll_fz_barcode_type_from_string(str)
  5243. def ll_fz_base_colorspace(cs):
  5244. r"""
  5245. Low-level wrapper for `::fz_base_colorspace()`.
  5246. Get the 'base' colorspace for a colorspace.
  5247. For indexed colorspaces, this is the colorspace the index
  5248. decodes into. For all other colorspaces, it is the colorspace
  5249. itself.
  5250. The returned colorspace is 'borrowed' (i.e. no additional
  5251. references are taken or dropped).
  5252. """
  5253. return _mupdf.ll_fz_base_colorspace(cs)
  5254. def ll_fz_basename(path):
  5255. r"""
  5256. Low-level wrapper for `::fz_basename()`.
  5257. Find the filename component in a path.
  5258. """
  5259. return _mupdf.ll_fz_basename(path)
  5260. def ll_fz_begin_group(dev, area, cs, isolated, knockout, blendmode, alpha):
  5261. r"""Low-level wrapper for `::fz_begin_group()`."""
  5262. return _mupdf.ll_fz_begin_group(dev, area, cs, isolated, knockout, blendmode, alpha)
  5263. def ll_fz_begin_layer(dev, layer_name):
  5264. r"""Low-level wrapper for `::fz_begin_layer()`."""
  5265. return _mupdf.ll_fz_begin_layer(dev, layer_name)
  5266. def ll_fz_begin_mask(dev, area, luminosity, colorspace, bc, color_params):
  5267. r"""Low-level wrapper for `::fz_begin_mask()`."""
  5268. return _mupdf.ll_fz_begin_mask(dev, area, luminosity, colorspace, bc, color_params)
  5269. def ll_fz_begin_metatext(dev, meta, text):
  5270. r"""Low-level wrapper for `::fz_begin_metatext()`."""
  5271. return _mupdf.ll_fz_begin_metatext(dev, meta, text)
  5272. def ll_fz_begin_page(wri, mediabox):
  5273. r"""
  5274. Low-level wrapper for `::fz_begin_page()`.
  5275. Called to start the process of writing a page to
  5276. a document.
  5277. mediabox: page size rectangle in points.
  5278. Returns a borrowed fz_device to write page contents to. This
  5279. should be kept if required, and only dropped if it was kept.
  5280. """
  5281. return _mupdf.ll_fz_begin_page(wri, mediabox)
  5282. def ll_fz_begin_structure(dev, standard, raw, idx):
  5283. r"""Low-level wrapper for `::fz_begin_structure()`."""
  5284. return _mupdf.ll_fz_begin_structure(dev, standard, raw, idx)
  5285. def ll_fz_begin_tile(dev, area, view, xstep, ystep, ctm):
  5286. r"""Low-level wrapper for `::fz_begin_tile()`."""
  5287. return _mupdf.ll_fz_begin_tile(dev, area, view, xstep, ystep, ctm)
  5288. def ll_fz_begin_tile_id(dev, area, view, xstep, ystep, ctm, id):
  5289. r"""Low-level wrapper for `::fz_begin_tile_id()`."""
  5290. return _mupdf.ll_fz_begin_tile_id(dev, area, view, xstep, ystep, ctm, id)
  5291. def ll_fz_begin_tile_tid(dev, area, view, xstep, ystep, ctm, id, doc_id):
  5292. r"""Low-level wrapper for `::fz_begin_tile_tid()`."""
  5293. return _mupdf.ll_fz_begin_tile_tid(dev, area, view, xstep, ystep, ctm, id, doc_id)
  5294. def ll_fz_bidi_fragment_text(text, textlen, baseDir, callback, arg, flags):
  5295. r"""
  5296. Low-level wrapper for `::fz_bidi_fragment_text()`.
  5297. This function has out-params. Python/C# wrappers look like:
  5298. `ll_fz_bidi_fragment_text(const uint32_t *text, size_t textlen, ::fz_bidi_fragment_fn *callback, void *arg, int flags)` => ::fz_bidi_direction baseDir
  5299. Partitions the given Unicode sequence into one or more
  5300. unidirectional fragments and invokes the given callback
  5301. function for each fragment.
  5302. For example, if directionality of text is:
  5303. 0123456789
  5304. rrlllrrrrr,
  5305. we'll invoke callback with:
  5306. &text[0], length == 2
  5307. &text[2], length == 3
  5308. &text[5], length == 5
  5309. :type text: int, in
  5310. :param text: start of Unicode sequence
  5311. :type textlen: int, in
  5312. :param textlen: number of Unicodes to analyse
  5313. :type baseDir: int, in
  5314. :param baseDir: direction of paragraph (specify FZ_BIDI_NEUTRAL to force auto-detection)
  5315. :type callback: ::fz_bidi_fragment_fn, in
  5316. :param callback: function to be called for each fragment
  5317. :type arg: void, in
  5318. :param arg: data to be passed to the callback function
  5319. :type flags: int, in
  5320. :param flags: flags to control operation (see fz_bidi_flags above)
  5321. """
  5322. return _mupdf.ll_fz_bidi_fragment_text(text, textlen, baseDir, callback, arg, flags)
  5323. def ll_fz_bitmap_details(bitmap, w, h, n, stride):
  5324. r"""
  5325. Low-level wrapper for `::fz_bitmap_details()`.
  5326. This function has out-params. Python/C# wrappers look like:
  5327. `ll_fz_bitmap_details(::fz_bitmap *bitmap)` => `(int w, int h, int n, int stride)`
  5328. Retrieve details of a given bitmap.
  5329. bitmap: The bitmap to query.
  5330. w: Pointer to storage to retrieve width (or NULL).
  5331. h: Pointer to storage to retrieve height (or NULL).
  5332. n: Pointer to storage to retrieve number of color components (or
  5333. NULL).
  5334. stride: Pointer to storage to retrieve bitmap stride (or NULL).
  5335. """
  5336. return _mupdf.ll_fz_bitmap_details(bitmap, w, h, n, stride)
  5337. def ll_fz_blendmode_name(blendmode):
  5338. r"""
  5339. Low-level wrapper for `::fz_blendmode_name()`.
  5340. Map from enumeration to blend mode string.
  5341. The string is static, with arbitrary lifespan.
  5342. """
  5343. return _mupdf.ll_fz_blendmode_name(blendmode)
  5344. def ll_fz_bound_display_list(list):
  5345. r"""
  5346. Low-level wrapper for `::fz_bound_display_list()`.
  5347. Return the bounding box of the page recorded in a display list.
  5348. """
  5349. return _mupdf.ll_fz_bound_display_list(list)
  5350. def ll_fz_bound_glyph(font, gid, trm):
  5351. r"""
  5352. Low-level wrapper for `::fz_bound_glyph()`.
  5353. Return a bbox for a given glyph in a font.
  5354. font: The font to look for the glyph in.
  5355. gid: The glyph to bound.
  5356. trm: The matrix to apply to the glyph before bounding.
  5357. Returns rectangle by value containing the bounds of the given
  5358. glyph.
  5359. """
  5360. return _mupdf.ll_fz_bound_glyph(font, gid, trm)
  5361. def ll_fz_bound_page(page):
  5362. r"""
  5363. Low-level wrapper for `::fz_bound_page()`.
  5364. Determine the size of a page at 72 dpi.
  5365. """
  5366. return _mupdf.ll_fz_bound_page(page)
  5367. def ll_fz_bound_page_box(page, box):
  5368. r"""Low-level wrapper for `::fz_bound_page_box()`."""
  5369. return _mupdf.ll_fz_bound_page_box(page, box)
  5370. def ll_fz_bound_path(path, stroke, ctm):
  5371. r"""
  5372. Low-level wrapper for `::fz_bound_path()`.
  5373. Return a bounding rectangle for a path.
  5374. path: The path to bound.
  5375. stroke: If NULL, the bounding rectangle given is for
  5376. the filled path. If non-NULL the bounding rectangle
  5377. given is for the path stroked with the given attributes.
  5378. ctm: The matrix to apply to the path during stroking.
  5379. r: Pointer to a fz_rect which will be used to hold
  5380. the result.
  5381. Returns r, updated to contain the bounding rectangle.
  5382. """
  5383. return _mupdf.ll_fz_bound_path(path, stroke, ctm)
  5384. def ll_fz_bound_shade(shade, ctm):
  5385. r"""
  5386. Low-level wrapper for `::fz_bound_shade()`.
  5387. Bound a given shading.
  5388. shade: The shade to bound.
  5389. ctm: The transform to apply to the shade before bounding.
  5390. r: Pointer to storage to put the bounds in.
  5391. Returns r, updated to contain the bounds for the shading.
  5392. """
  5393. return _mupdf.ll_fz_bound_shade(shade, ctm)
  5394. def ll_fz_bound_text(text, stroke, ctm):
  5395. r"""
  5396. Low-level wrapper for `::fz_bound_text()`.
  5397. Find the bounds of a given text object.
  5398. text: The text object to find the bounds of.
  5399. stroke: Pointer to the stroke attributes (for stroked
  5400. text), or NULL (for filled text).
  5401. ctm: The matrix in use.
  5402. r: pointer to storage for the bounds.
  5403. Returns a pointer to r, which is updated to contain the
  5404. bounding box for the text object.
  5405. """
  5406. return _mupdf.ll_fz_bound_text(text, stroke, ctm)
  5407. def ll_fz_box_type_from_string(name):
  5408. r"""Low-level wrapper for `::fz_box_type_from_string()`."""
  5409. return _mupdf.ll_fz_box_type_from_string(name)
  5410. def ll_fz_brotli_bound(size):
  5411. r"""
  5412. Low-level wrapper for `::fz_brotli_bound()`.
  5413. Returns the upper bound on the
  5414. size of brotli compressed data of length size.
  5415. """
  5416. return _mupdf.ll_fz_brotli_bound(size)
  5417. def ll_fz_buffer_extract(buf, data):
  5418. r"""
  5419. Low-level wrapper for `::fz_buffer_extract()`.
  5420. This function has out-params. Python/C# wrappers look like:
  5421. `ll_fz_buffer_extract(::fz_buffer *buf)` => `(size_t, unsigned char *data)`
  5422. Take ownership of buffer contents.
  5423. Performs the same task as fz_buffer_storage, but ownership of
  5424. the data buffer returns with this call. The buffer is left
  5425. empty.
  5426. Note: Bad things may happen if this is called on a buffer with
  5427. multiple references that is being used from multiple threads.
  5428. data: Pointer to place to retrieve data pointer.
  5429. Returns length of stream.
  5430. """
  5431. return _mupdf.ll_fz_buffer_extract(buf, data)
  5432. def ll_fz_buffer_storage(buf, datap):
  5433. r"""
  5434. Low-level wrapper for `::fz_buffer_storage()`.
  5435. This function has out-params. Python/C# wrappers look like:
  5436. `ll_fz_buffer_storage(::fz_buffer *buf)` => `(size_t, unsigned char *datap)`
  5437. Retrieve internal memory of buffer.
  5438. datap: Output parameter that will be pointed to the data.
  5439. Returns the current size of the data in bytes.
  5440. """
  5441. return _mupdf.ll_fz_buffer_storage(buf, datap)
  5442. def ll_fz_calculate_font_ascender_descender(font):
  5443. r"""
  5444. Low-level wrapper for `::fz_calculate_font_ascender_descender()`.
  5445. Ensure that a font has its ascender/descender values calculated
  5446. from the actual bbox of the glyphs.
  5447. Note, that we combine the declared values from the font (or the
  5448. default values if those are not present) with the actual bbox to
  5449. get the final result. So this can only cause ascender/descender
  5450. to move further apart!
  5451. """
  5452. return _mupdf.ll_fz_calculate_font_ascender_descender(font)
  5453. def ll_fz_calloc(count, size):
  5454. r"""
  5455. Low-level wrapper for `::fz_calloc()`.
  5456. Allocate array of memory of count entries of size bytes.
  5457. Clears the memory to zero.
  5458. Throws exception in the event of failure to allocate.
  5459. """
  5460. return _mupdf.ll_fz_calloc(count, size)
  5461. def ll_fz_calloc_no_throw(count, size):
  5462. r"""
  5463. Low-level wrapper for `::fz_calloc_no_throw()`.
  5464. fz_calloc equivalent that returns NULL rather than throwing
  5465. exceptions.
  5466. """
  5467. return _mupdf.ll_fz_calloc_no_throw(count, size)
  5468. def ll_fz_caught():
  5469. r"""
  5470. Low-level wrapper for `::fz_caught()`.
  5471. Within an fz_catch() block, retrieve the error code for
  5472. the current exception.
  5473. This assumes no intervening use of fz_try/fz_catch.
  5474. """
  5475. return _mupdf.ll_fz_caught()
  5476. def ll_fz_caught_errno():
  5477. r"""Low-level wrapper for `::fz_caught_errno()`."""
  5478. return _mupdf.ll_fz_caught_errno()
  5479. def ll_fz_caught_message():
  5480. r"""
  5481. Low-level wrapper for `::fz_caught_message()`.
  5482. Within an fz_catch() block, retrieve the formatted message
  5483. string for the current exception.
  5484. This assumes no intervening use of fz_try/fz_catch.
  5485. """
  5486. return _mupdf.ll_fz_caught_message()
  5487. def ll_fz_chartorune(rune, str):
  5488. r"""
  5489. Low-level wrapper for `::fz_chartorune()`.
  5490. This function has out-params. Python/C# wrappers look like:
  5491. `ll_fz_chartorune(const char *str)` => `(int, int rune)`
  5492. UTF8 decode a single rune from a sequence of chars.
  5493. rune: Pointer to an int to assign the decoded 'rune' to.
  5494. (0xFFFD on error).
  5495. str: Pointer to a UTF8 encoded string.
  5496. Returns the number of bytes consumed.
  5497. """
  5498. return _mupdf.ll_fz_chartorune(rune, str)
  5499. def ll_fz_chartorunen(rune, str, n):
  5500. r"""
  5501. Low-level wrapper for `::fz_chartorunen()`.
  5502. This function has out-params. Python/C# wrappers look like:
  5503. `ll_fz_chartorunen(const char *str, size_t n)` => `(int, int rune)`
  5504. UTF8 decode a single rune from a sequence of chars
  5505. of given length.
  5506. rune: Pointer to an int to assign the decoded 'rune' to.
  5507. (0xFFFD on error).
  5508. str: Pointer to a UTF8 encoded string.
  5509. n: The number of bytes available at str.
  5510. Returns the number of bytes consumed.
  5511. """
  5512. return _mupdf.ll_fz_chartorunen(rune, str, n)
  5513. def ll_fz_clamp(x, min, max):
  5514. r"""Low-level wrapper for `::fz_clamp()`."""
  5515. return _mupdf.ll_fz_clamp(x, min, max)
  5516. def ll_fz_clamp64(x, min, max):
  5517. r"""Low-level wrapper for `::fz_clamp64()`."""
  5518. return _mupdf.ll_fz_clamp64(x, min, max)
  5519. def ll_fz_clamp_color(cs, _in, out):
  5520. r"""
  5521. Low-level wrapper for `::fz_clamp_color()`.
  5522. This function has out-params. Python/C# wrappers look like:
  5523. `ll_fz_clamp_color(::fz_colorspace *cs, const float *in)` => float out
  5524. Clamp the samples in a color to the correct ranges for a
  5525. given colorspace.
  5526. """
  5527. return _mupdf.ll_fz_clamp_color(cs, _in, out)
  5528. def ll_fz_clamp_location(doc, loc):
  5529. r"""
  5530. Low-level wrapper for `::fz_clamp_location()`.
  5531. Clamps a location into valid chapter/page range. (First clamps
  5532. the chapter into range, then the page into range).
  5533. """
  5534. return _mupdf.ll_fz_clamp_location(doc, loc)
  5535. def ll_fz_clampd(x, min, max):
  5536. r"""Low-level wrapper for `::fz_clampd()`."""
  5537. return _mupdf.ll_fz_clampd(x, min, max)
  5538. def ll_fz_clampi(x, min, max):
  5539. r"""Low-level wrapper for `::fz_clampi()`."""
  5540. return _mupdf.ll_fz_clampi(x, min, max)
  5541. def ll_fz_clampp(x, min, max):
  5542. r"""Low-level wrapper for `::fz_clampp()`."""
  5543. return _mupdf.ll_fz_clampp(x, min, max)
  5544. def ll_fz_classify_stext_rect(page, classification, rect):
  5545. r"""Low-level wrapper for `::fz_classify_stext_rect()`."""
  5546. return _mupdf.ll_fz_classify_stext_rect(page, classification, rect)
  5547. def ll_fz_cleanname(name):
  5548. r"""
  5549. Low-level wrapper for `::fz_cleanname()`.
  5550. rewrite path to the shortest string that names the same path.
  5551. Eliminates multiple and trailing slashes, interprets "." and
  5552. "..". Overwrites the string in place.
  5553. """
  5554. return _mupdf.ll_fz_cleanname(name)
  5555. def ll_fz_cleanname_strdup(name):
  5556. r"""
  5557. Low-level wrapper for `::fz_cleanname_strdup()`.
  5558. rewrite path to the shortest string that names the same path.
  5559. Eliminates multiple and trailing slashes, interprets "." and
  5560. "..". Allocates a new string that the caller must free.
  5561. """
  5562. return _mupdf.ll_fz_cleanname_strdup(name)
  5563. def ll_fz_clear_bitmap(bit):
  5564. r"""
  5565. Low-level wrapper for `::fz_clear_bitmap()`.
  5566. Set the entire bitmap to 0.
  5567. Never throws exceptions.
  5568. """
  5569. return _mupdf.ll_fz_clear_bitmap(bit)
  5570. def ll_fz_clear_buffer(buf):
  5571. r"""
  5572. Low-level wrapper for `::fz_clear_buffer()`.
  5573. Empties the buffer. Storage is not freed, but is held ready
  5574. to be reused as the buffer is refilled.
  5575. Never throws exceptions.
  5576. """
  5577. return _mupdf.ll_fz_clear_buffer(buf)
  5578. def ll_fz_clear_pixmap(pix):
  5579. r"""
  5580. Low-level wrapper for `::fz_clear_pixmap()`.
  5581. Sets all components (including alpha) of
  5582. all pixels in a pixmap to 0.
  5583. pix: The pixmap to clear.
  5584. """
  5585. return _mupdf.ll_fz_clear_pixmap(pix)
  5586. def ll_fz_clear_pixmap_rect_with_value(pix, value, r):
  5587. r"""
  5588. Low-level wrapper for `::fz_clear_pixmap_rect_with_value()`.
  5589. Clears a subrect of a pixmap with the given value.
  5590. pix: The pixmap to clear.
  5591. value: Values in the range 0 to 255 are valid. Each component
  5592. sample for each pixel in the pixmap will be set to this value,
  5593. while alpha will always be set to 255 (non-transparent).
  5594. r: the rectangle.
  5595. """
  5596. return _mupdf.ll_fz_clear_pixmap_rect_with_value(pix, value, r)
  5597. def ll_fz_clear_pixmap_with_value(pix, value):
  5598. r"""
  5599. Low-level wrapper for `::fz_clear_pixmap_with_value()`.
  5600. Clears a pixmap with the given value.
  5601. pix: The pixmap to clear.
  5602. value: Values in the range 0 to 255 are valid. Each component
  5603. sample for each pixel in the pixmap will be set to this value,
  5604. while alpha will always be set to 255 (non-transparent).
  5605. This function is horrible, and should be removed from the
  5606. API and replaced with a less magic one.
  5607. """
  5608. return _mupdf.ll_fz_clear_pixmap_with_value(pix, value)
  5609. def ll_fz_clip_image_mask(dev, image, ctm, scissor):
  5610. r"""Low-level wrapper for `::fz_clip_image_mask()`."""
  5611. return _mupdf.ll_fz_clip_image_mask(dev, image, ctm, scissor)
  5612. def ll_fz_clip_path(dev, path, even_odd, ctm, scissor):
  5613. r"""Low-level wrapper for `::fz_clip_path()`."""
  5614. return _mupdf.ll_fz_clip_path(dev, path, even_odd, ctm, scissor)
  5615. def ll_fz_clip_stroke_path(dev, path, stroke, ctm, scissor):
  5616. r"""Low-level wrapper for `::fz_clip_stroke_path()`."""
  5617. return _mupdf.ll_fz_clip_stroke_path(dev, path, stroke, ctm, scissor)
  5618. def ll_fz_clip_stroke_text(dev, text, stroke, ctm, scissor):
  5619. r"""Low-level wrapper for `::fz_clip_stroke_text()`."""
  5620. return _mupdf.ll_fz_clip_stroke_text(dev, text, stroke, ctm, scissor)
  5621. def ll_fz_clip_text(dev, text, ctm, scissor):
  5622. r"""Low-level wrapper for `::fz_clip_text()`."""
  5623. return _mupdf.ll_fz_clip_text(dev, text, ctm, scissor)
  5624. def ll_fz_clone_buffer(buf):
  5625. r"""
  5626. Low-level wrapper for `::fz_clone_buffer()`.
  5627. Make a new buffer, containing a copy of the data used in
  5628. the original.
  5629. """
  5630. return _mupdf.ll_fz_clone_buffer(buf)
  5631. def ll_fz_clone_context():
  5632. r"""
  5633. Low-level wrapper for `::fz_clone_context()`.
  5634. Make a clone of an existing context.
  5635. This function is meant to be used in multi-threaded
  5636. applications where each thread requires its own context, yet
  5637. parts of the global state, for example caching, are shared.
  5638. ctx: Context obtained from fz_new_context to make a copy of.
  5639. ctx must have had locks and lock/functions setup when created.
  5640. The two contexts will share the memory allocator, resource
  5641. store, locks and lock/unlock functions. They will each have
  5642. their own exception stacks though.
  5643. May return NULL.
  5644. """
  5645. return _mupdf.ll_fz_clone_context()
  5646. def ll_fz_clone_default_colorspaces(base):
  5647. r"""
  5648. Low-level wrapper for `::fz_clone_default_colorspaces()`.
  5649. Returns a reference to a newly cloned default colorspaces
  5650. structure.
  5651. The new clone may safely be altered without fear of race
  5652. conditions as the caller is the only reference holder.
  5653. """
  5654. return _mupdf.ll_fz_clone_default_colorspaces(base)
  5655. def ll_fz_clone_path(path):
  5656. r"""
  5657. Low-level wrapper for `::fz_clone_path()`.
  5658. Clone the data for a path.
  5659. This is used in preference to fz_keep_path when a whole
  5660. new copy of a path is required, rather than just a shared
  5661. pointer. This probably indicates that the path is about to
  5662. be modified.
  5663. path: path to clone.
  5664. Throws exceptions on failure to allocate.
  5665. """
  5666. return _mupdf.ll_fz_clone_path(path)
  5667. def ll_fz_clone_pixmap(old):
  5668. r"""
  5669. Low-level wrapper for `::fz_clone_pixmap()`.
  5670. Clone a pixmap, copying the pixels and associated data to new
  5671. storage.
  5672. The reference count of 'old' is unchanged.
  5673. """
  5674. return _mupdf.ll_fz_clone_pixmap(old)
  5675. def ll_fz_clone_pixmap_area_with_different_seps(src, bbox, dcs, seps, color_params, default_cs):
  5676. r"""Low-level wrapper for `::fz_clone_pixmap_area_with_different_seps()`."""
  5677. return _mupdf.ll_fz_clone_pixmap_area_with_different_seps(src, bbox, dcs, seps, color_params, default_cs)
  5678. def ll_fz_clone_separations_for_overprint(seps):
  5679. r"""
  5680. Low-level wrapper for `::fz_clone_separations_for_overprint()`.
  5681. Return a separations object with all the spots in the input
  5682. separations object that are set to composite, reset to be
  5683. enabled. If there ARE no spots in the object, this returns
  5684. NULL. If the object already has all its spots enabled, then
  5685. just returns another handle on the same object.
  5686. """
  5687. return _mupdf.ll_fz_clone_separations_for_overprint(seps)
  5688. def ll_fz_clone_stroke_state(stroke):
  5689. r"""
  5690. Low-level wrapper for `::fz_clone_stroke_state()`.
  5691. Create an identical stroke_state structure and return a
  5692. reference to it.
  5693. stroke: The stroke state reference to clone.
  5694. Exceptions may be thrown in the event of a failure to
  5695. allocate.
  5696. """
  5697. return _mupdf.ll_fz_clone_stroke_state(stroke)
  5698. def ll_fz_close_band_writer(writer):
  5699. r"""
  5700. Low-level wrapper for `::fz_close_band_writer()`.
  5701. Finishes up the output and closes the band writer. After this
  5702. call no more headers or bands may be written.
  5703. """
  5704. return _mupdf.ll_fz_close_band_writer(writer)
  5705. def ll_fz_close_device(dev):
  5706. r"""
  5707. Low-level wrapper for `::fz_close_device()`.
  5708. Signal the end of input, and flush any buffered output.
  5709. This is NOT called implicitly on fz_drop_device. This
  5710. may throw exceptions.
  5711. """
  5712. return _mupdf.ll_fz_close_device(dev)
  5713. def ll_fz_close_document_writer(wri):
  5714. r"""
  5715. Low-level wrapper for `::fz_close_document_writer()`.
  5716. Called to end the process of writing
  5717. pages to a document.
  5718. This writes any file level trailers required. After this
  5719. completes successfully the file is up to date and complete.
  5720. """
  5721. return _mupdf.ll_fz_close_document_writer(wri)
  5722. def ll_fz_close_output(arg_1):
  5723. r"""
  5724. Low-level wrapper for `::fz_close_output()`.
  5725. Flush pending output and close an output stream.
  5726. """
  5727. return _mupdf.ll_fz_close_output(arg_1)
  5728. def ll_fz_close_zip_writer(zip):
  5729. r"""
  5730. Low-level wrapper for `::fz_close_zip_writer()`.
  5731. Close the zip file for writing.
  5732. This flushes any pending data to the file. This can throw
  5733. exceptions.
  5734. """
  5735. return _mupdf.ll_fz_close_zip_writer(zip)
  5736. def ll_fz_closepath(path):
  5737. r"""
  5738. Low-level wrapper for `::fz_closepath()`.
  5739. Close the current subpath.
  5740. path: The path to modify.
  5741. Throws exceptions on failure to allocate, attempting to modify
  5742. a packed path, and illegal path closes (i.e. closing a non open
  5743. path).
  5744. """
  5745. return _mupdf.ll_fz_closepath(path)
  5746. def ll_fz_colorspace_colorant(cs, n):
  5747. r"""
  5748. Low-level wrapper for `::fz_colorspace_colorant()`.
  5749. Retrieve a the name for a colorant.
  5750. Returns a pointer with the same lifespan as the colorspace.
  5751. """
  5752. return _mupdf.ll_fz_colorspace_colorant(cs, n)
  5753. def ll_fz_colorspace_device_n_has_cmyk(cs):
  5754. r"""
  5755. Low-level wrapper for `::fz_colorspace_device_n_has_cmyk()`.
  5756. True if DeviceN color space has cyan magenta yellow or black as
  5757. one of its colorants.
  5758. """
  5759. return _mupdf.ll_fz_colorspace_device_n_has_cmyk(cs)
  5760. def ll_fz_colorspace_device_n_has_only_cmyk(cs):
  5761. r"""
  5762. Low-level wrapper for `::fz_colorspace_device_n_has_only_cmyk()`.
  5763. True if DeviceN color space has only colorants from the CMYK set.
  5764. """
  5765. return _mupdf.ll_fz_colorspace_device_n_has_only_cmyk(cs)
  5766. def ll_fz_colorspace_digest(cs, digest):
  5767. r"""
  5768. Low-level wrapper for `::fz_colorspace_digest()`.
  5769. Get checksum of underlying ICC profile.
  5770. """
  5771. return _mupdf.ll_fz_colorspace_digest(cs, digest)
  5772. def ll_fz_colorspace_is_cmyk(cs):
  5773. r"""Low-level wrapper for `::fz_colorspace_is_cmyk()`."""
  5774. return _mupdf.ll_fz_colorspace_is_cmyk(cs)
  5775. def ll_fz_colorspace_is_device(cs):
  5776. r"""Low-level wrapper for `::fz_colorspace_is_device()`."""
  5777. return _mupdf.ll_fz_colorspace_is_device(cs)
  5778. def ll_fz_colorspace_is_device_cmyk(cs):
  5779. r"""Low-level wrapper for `::fz_colorspace_is_device_cmyk()`."""
  5780. return _mupdf.ll_fz_colorspace_is_device_cmyk(cs)
  5781. def ll_fz_colorspace_is_device_gray(cs):
  5782. r"""Low-level wrapper for `::fz_colorspace_is_device_gray()`."""
  5783. return _mupdf.ll_fz_colorspace_is_device_gray(cs)
  5784. def ll_fz_colorspace_is_device_n(cs):
  5785. r"""Low-level wrapper for `::fz_colorspace_is_device_n()`."""
  5786. return _mupdf.ll_fz_colorspace_is_device_n(cs)
  5787. def ll_fz_colorspace_is_gray(cs):
  5788. r"""
  5789. Low-level wrapper for `::fz_colorspace_is_gray()`.
  5790. Tests for particular types of colorspaces
  5791. """
  5792. return _mupdf.ll_fz_colorspace_is_gray(cs)
  5793. def ll_fz_colorspace_is_icc(cs):
  5794. r"""Low-level wrapper for `::fz_colorspace_is_icc()`."""
  5795. return _mupdf.ll_fz_colorspace_is_icc(cs)
  5796. def ll_fz_colorspace_is_indexed(cs):
  5797. r"""Low-level wrapper for `::fz_colorspace_is_indexed()`."""
  5798. return _mupdf.ll_fz_colorspace_is_indexed(cs)
  5799. def ll_fz_colorspace_is_lab(cs):
  5800. r"""Low-level wrapper for `::fz_colorspace_is_lab()`."""
  5801. return _mupdf.ll_fz_colorspace_is_lab(cs)
  5802. def ll_fz_colorspace_is_lab_icc(cs):
  5803. r"""Low-level wrapper for `::fz_colorspace_is_lab_icc()`."""
  5804. return _mupdf.ll_fz_colorspace_is_lab_icc(cs)
  5805. def ll_fz_colorspace_is_rgb(cs):
  5806. r"""Low-level wrapper for `::fz_colorspace_is_rgb()`."""
  5807. return _mupdf.ll_fz_colorspace_is_rgb(cs)
  5808. def ll_fz_colorspace_is_subtractive(cs):
  5809. r"""
  5810. Low-level wrapper for `::fz_colorspace_is_subtractive()`.
  5811. True for CMYK, Separation and DeviceN colorspaces.
  5812. """
  5813. return _mupdf.ll_fz_colorspace_is_subtractive(cs)
  5814. def ll_fz_colorspace_n(cs):
  5815. r"""
  5816. Low-level wrapper for `::fz_colorspace_n()`.
  5817. Query the number of colorants in a colorspace.
  5818. """
  5819. return _mupdf.ll_fz_colorspace_n(cs)
  5820. def ll_fz_colorspace_name(cs):
  5821. r"""
  5822. Low-level wrapper for `::fz_colorspace_name()`.
  5823. Query the name of a colorspace.
  5824. The returned string has the same lifespan as the colorspace
  5825. does. Caller should not free it.
  5826. """
  5827. return _mupdf.ll_fz_colorspace_name(cs)
  5828. def ll_fz_colorspace_name_colorant(cs, n, name):
  5829. r"""
  5830. Low-level wrapper for `::fz_colorspace_name_colorant()`.
  5831. Assign a name for a given colorant in a colorspace.
  5832. Used while initially setting up a colorspace. The string is
  5833. copied into local storage, so need not be retained by the
  5834. caller.
  5835. """
  5836. return _mupdf.ll_fz_colorspace_name_colorant(cs, n, name)
  5837. def ll_fz_colorspace_type(cs):
  5838. r"""
  5839. Low-level wrapper for `::fz_colorspace_type()`.
  5840. Query the type of colorspace.
  5841. """
  5842. return _mupdf.ll_fz_colorspace_type(cs)
  5843. def ll_fz_compare_separations(sep1, sep2):
  5844. r"""
  5845. Low-level wrapper for `::fz_compare_separations()`.
  5846. Compare 2 separations structures (or NULLs).
  5847. Return 0 if identical, non-zero if not identical.
  5848. """
  5849. return _mupdf.ll_fz_compare_separations(sep1, sep2)
  5850. def ll_fz_compress_brotli(dest, compressed_length, source, source_length, level):
  5851. r"""
  5852. Low-level wrapper for `::fz_compress_brotli()`.
  5853. This function has out-params. Python/C# wrappers look like:
  5854. `ll_fz_compress_brotli(unsigned char *dest, const unsigned char *source, size_t source_length, ::fz_brotli_level level)` => size_t compressed_length
  5855. Compress source_length bytes of data starting
  5856. at source, into a buffer of length *destLen, starting at dest.
  5857. compressed_length will be updated on exit to contain the size
  5858. actually used.
  5859. """
  5860. return _mupdf.ll_fz_compress_brotli(dest, compressed_length, source, source_length, level)
  5861. def ll_fz_compress_ccitt_fax_g3(data, columns, rows, stride):
  5862. r"""
  5863. Low-level wrapper for `::fz_compress_ccitt_fax_g3()`.
  5864. Compress bitmap data as CCITT Group 3 1D fax image.
  5865. Creates a stream assuming the default PDF parameters,
  5866. except the number of columns.
  5867. """
  5868. return _mupdf.ll_fz_compress_ccitt_fax_g3(data, columns, rows, stride)
  5869. def ll_fz_compress_ccitt_fax_g4(data, columns, rows, stride):
  5870. r"""
  5871. Low-level wrapper for `::fz_compress_ccitt_fax_g4()`.
  5872. Compress bitmap data as CCITT Group 4 2D fax image.
  5873. Creates a stream assuming the default PDF parameters, except
  5874. K=-1 and the number of columns.
  5875. """
  5876. return _mupdf.ll_fz_compress_ccitt_fax_g4(data, columns, rows, stride)
  5877. def ll_fz_compressed_buffer_size(buffer):
  5878. r"""
  5879. Low-level wrapper for `::fz_compressed_buffer_size()`.
  5880. Return the storage size used for a buffer and its data.
  5881. Used in implementing store handling.
  5882. Never throws exceptions.
  5883. """
  5884. return _mupdf.ll_fz_compressed_buffer_size(buffer)
  5885. def ll_fz_compressed_image_buffer(image):
  5886. r"""
  5887. Low-level wrapper for `::fz_compressed_image_buffer()`.
  5888. Retrieve the underlying compressed data for an image.
  5889. Returns a pointer to the underlying data buffer for an image,
  5890. or NULL if this image is not based upon a compressed data
  5891. buffer.
  5892. This is not a reference counted structure, so no reference is
  5893. returned. Lifespan is limited to that of the image itself.
  5894. """
  5895. return _mupdf.ll_fz_compressed_image_buffer(image)
  5896. def ll_fz_compressed_image_type(image):
  5897. r"""
  5898. Low-level wrapper for `::fz_compressed_image_type()`.
  5899. Return the type of a compressed image.
  5900. Any non-compressed image will have the type returned as UNKNOWN.
  5901. """
  5902. return _mupdf.ll_fz_compressed_image_type(image)
  5903. def ll_fz_concat(left, right):
  5904. r"""
  5905. Low-level wrapper for `::fz_concat()`.
  5906. Multiply two matrices.
  5907. The order of the two matrices are important since matrix
  5908. multiplication is not commutative.
  5909. Returns result.
  5910. """
  5911. return _mupdf.ll_fz_concat(left, right)
  5912. def ll_fz_concat_push_drop(concat, chain):
  5913. r"""
  5914. Low-level wrapper for `::fz_concat_push_drop()`.
  5915. Add a chained stream to the end of the concatenate filter.
  5916. Ownership of chain is passed in.
  5917. """
  5918. return _mupdf.ll_fz_concat_push_drop(concat, chain)
  5919. def ll_fz_contains_rect(a, b):
  5920. r"""
  5921. Low-level wrapper for `::fz_contains_rect()`.
  5922. Test rectangle inclusion.
  5923. Return true if a entirely contains b.
  5924. """
  5925. return _mupdf.ll_fz_contains_rect(a, b)
  5926. def ll_fz_convert_color(ss, sv, ds, dv, _is, params):
  5927. r"""
  5928. Low-level wrapper for `::fz_convert_color()`.
  5929. This function has out-params. Python/C# wrappers look like:
  5930. `ll_fz_convert_color(::fz_colorspace *ss, const float *sv, ::fz_colorspace *ds, ::fz_colorspace *is, ::fz_color_params params)` => float dv
  5931. Convert color values sv from colorspace ss into colorvalues dv
  5932. for colorspace ds, via an optional intervening space is,
  5933. respecting the given color_params.
  5934. """
  5935. return _mupdf.ll_fz_convert_color(ss, sv, ds, dv, _is, params)
  5936. def ll_fz_convert_error(code):
  5937. r"""
  5938. Low-level wrapper for `::fz_convert_error()`.
  5939. This function has out-params. Python/C# wrappers look like:
  5940. `ll_fz_convert_error()` => `(const char *, int code)`
  5941. """
  5942. return _mupdf.ll_fz_convert_error(code)
  5943. def ll_fz_convert_indexed_pixmap_to_base(src):
  5944. r"""
  5945. Low-level wrapper for `::fz_convert_indexed_pixmap_to_base()`.
  5946. Convert pixmap from indexed to base colorspace.
  5947. This creates a new bitmap containing the converted pixmap data.
  5948. """
  5949. return _mupdf.ll_fz_convert_indexed_pixmap_to_base(src)
  5950. def ll_fz_convert_pixmap(pix, cs_des, prf, default_cs, color_params, keep_alpha):
  5951. r"""
  5952. Low-level wrapper for `::fz_convert_pixmap()`.
  5953. Convert an existing pixmap to a desired
  5954. colorspace. Other properties of the pixmap, such as resolution
  5955. and position are copied to the converted pixmap.
  5956. pix: The pixmap to convert.
  5957. default_cs: If NULL pix->colorspace is used. It is possible that
  5958. the data may need to be interpreted as one of the color spaces
  5959. in default_cs.
  5960. cs_des: Desired colorspace, may be NULL to denote alpha-only.
  5961. prf: Proofing color space through which we need to convert.
  5962. color_params: Parameters that may be used in conversion (e.g.
  5963. ri).
  5964. keep_alpha: If 0 any alpha component is removed, otherwise
  5965. alpha is kept if present in the pixmap.
  5966. """
  5967. return _mupdf.ll_fz_convert_pixmap(pix, cs_des, prf, default_cs, color_params, keep_alpha)
  5968. def ll_fz_convert_separation_colors(src_cs, src_color, dst_seps, dst_cs, dst_color, color_params):
  5969. r"""
  5970. Low-level wrapper for `::fz_convert_separation_colors()`.
  5971. This function has out-params. Python/C# wrappers look like:
  5972. `ll_fz_convert_separation_colors(::fz_colorspace *src_cs, const float *src_color, ::fz_separations *dst_seps, ::fz_colorspace *dst_cs, ::fz_color_params color_params)` => float dst_color
  5973. Convert a color given in terms of one colorspace,
  5974. to a color in terms of another colorspace/separations.
  5975. """
  5976. return _mupdf.ll_fz_convert_separation_colors(src_cs, src_color, dst_seps, dst_cs, dst_color, color_params)
  5977. def ll_fz_convert_separation_pixmap_to_base(src):
  5978. r"""
  5979. Low-level wrapper for `::fz_convert_separation_pixmap_to_base()`.
  5980. Convert pixmap from DeviceN/Separation to base colorspace.
  5981. This creates a new bitmap containing the converted pixmap data.
  5982. """
  5983. return _mupdf.ll_fz_convert_separation_pixmap_to_base(src)
  5984. def ll_fz_copy_option(val, dest, maxlen):
  5985. r"""
  5986. Low-level wrapper for `::fz_copy_option()`.
  5987. Copy an option (val) into a destination buffer (dest), of maxlen
  5988. bytes.
  5989. Returns the number of bytes (including terminator) that did not
  5990. fit. If val is maxlen or greater bytes in size, it will be left
  5991. unterminated.
  5992. """
  5993. return _mupdf.ll_fz_copy_option(val, dest, maxlen)
  5994. def ll_fz_copy_pixmap_rect(dest, src, r, default_cs):
  5995. r"""Low-level wrapper for `::fz_copy_pixmap_rect()`."""
  5996. return _mupdf.ll_fz_copy_pixmap_rect(dest, src, r, default_cs)
  5997. def ll_fz_copy_rectangle(page, area, crlf):
  5998. r"""
  5999. Low-level wrapper for `::fz_copy_rectangle()`.
  6000. Return a newly allocated UTF-8 string with the text for a given
  6001. selection rectangle.
  6002. crlf: If true, write "\r\n" style line endings (otherwise "\n"
  6003. only).
  6004. """
  6005. return _mupdf.ll_fz_copy_rectangle(page, area, crlf)
  6006. def ll_fz_copy_selection(page, a, b, crlf):
  6007. r"""
  6008. Low-level wrapper for `::fz_copy_selection()`.
  6009. Return a newly allocated UTF-8 string with the text for a given
  6010. selection.
  6011. crlf: If true, write "\r\n" style line endings (otherwise "\n"
  6012. only).
  6013. """
  6014. return _mupdf.ll_fz_copy_selection(page, a, b, crlf)
  6015. def ll_fz_count_active_separations(seps):
  6016. r"""
  6017. Low-level wrapper for `::fz_count_active_separations()`.
  6018. Return the number of active separations.
  6019. """
  6020. return _mupdf.ll_fz_count_active_separations(seps)
  6021. def ll_fz_count_archive_entries(arch):
  6022. r"""
  6023. Low-level wrapper for `::fz_count_archive_entries()`.
  6024. Number of entries in archive.
  6025. Will always return a value >= 0.
  6026. May throw an exception if this type of archive cannot count the
  6027. entries (such as a directory).
  6028. """
  6029. return _mupdf.ll_fz_count_archive_entries(arch)
  6030. def ll_fz_count_chapter_pages(doc, chapter):
  6031. r"""
  6032. Low-level wrapper for `::fz_count_chapter_pages()`.
  6033. Return the number of pages in a chapter.
  6034. May return 0.
  6035. """
  6036. return _mupdf.ll_fz_count_chapter_pages(doc, chapter)
  6037. def ll_fz_count_chapters(doc):
  6038. r"""
  6039. Low-level wrapper for `::fz_count_chapters()`.
  6040. Return the number of chapters in the document.
  6041. At least 1.
  6042. """
  6043. return _mupdf.ll_fz_count_chapters(doc)
  6044. def ll_fz_count_pages(doc):
  6045. r"""
  6046. Low-level wrapper for `::fz_count_pages()`.
  6047. Return the number of pages in document
  6048. May return 0 for documents with no pages.
  6049. """
  6050. return _mupdf.ll_fz_count_pages(doc)
  6051. def ll_fz_count_separations(sep):
  6052. r"""Low-level wrapper for `::fz_count_separations()`."""
  6053. return _mupdf.ll_fz_count_separations(sep)
  6054. def ll_fz_create_link(page, bbox, uri):
  6055. r"""
  6056. Low-level wrapper for `::fz_create_link()`.
  6057. Create a new link on a page.
  6058. """
  6059. return _mupdf.ll_fz_create_link(page, bbox, uri)
  6060. def ll_fz_currentpoint(path):
  6061. r"""
  6062. Low-level wrapper for `::fz_currentpoint()`.
  6063. Return the current point that a path has
  6064. reached or (0,0) if empty.
  6065. path: path to return the current point of.
  6066. """
  6067. return _mupdf.ll_fz_currentpoint(path)
  6068. def ll_fz_curveto(path, x0, y0, x1, y1, x2, y2):
  6069. r"""
  6070. Low-level wrapper for `::fz_curveto()`.
  6071. Append a 'curveto' command to an open path. (For a
  6072. cubic bezier).
  6073. path: The path to modify.
  6074. x0, y0: The coordinates of the first control point for the
  6075. curve.
  6076. x1, y1: The coordinates of the second control point for the
  6077. curve.
  6078. x2, y2: The end coordinates for the curve.
  6079. Throws exceptions on failure to allocate, or attempting to
  6080. modify a packed path.
  6081. """
  6082. return _mupdf.ll_fz_curveto(path, x0, y0, x1, y1, x2, y2)
  6083. def ll_fz_curvetov(path, x1, y1, x2, y2):
  6084. r"""
  6085. Low-level wrapper for `::fz_curvetov()`.
  6086. Append a 'curvetov' command to an open path. (For a
  6087. cubic bezier with the first control coordinate equal to
  6088. the start point).
  6089. path: The path to modify.
  6090. x1, y1: The coordinates of the second control point for the
  6091. curve.
  6092. x2, y2: The end coordinates for the curve.
  6093. Throws exceptions on failure to allocate, or attempting to
  6094. modify a packed path.
  6095. """
  6096. return _mupdf.ll_fz_curvetov(path, x1, y1, x2, y2)
  6097. def ll_fz_curvetoy(path, x0, y0, x2, y2):
  6098. r"""
  6099. Low-level wrapper for `::fz_curvetoy()`.
  6100. Append a 'curvetoy' command to an open path. (For a
  6101. cubic bezier with the second control coordinate equal to
  6102. the end point).
  6103. path: The path to modify.
  6104. x0, y0: The coordinates of the first control point for the
  6105. curve.
  6106. x2, y2: The end coordinates for the curve (and the second
  6107. control coordinate).
  6108. Throws exceptions on failure to allocate, or attempting to
  6109. modify a packed path.
  6110. """
  6111. return _mupdf.ll_fz_curvetoy(path, x0, y0, x2, y2)
  6112. def ll_fz_debug_store(out):
  6113. r"""
  6114. Low-level wrapper for `::fz_debug_store()`.
  6115. Output debugging information for the current state of the store
  6116. to the given output channel.
  6117. """
  6118. return _mupdf.ll_fz_debug_store(out)
  6119. def ll_fz_debug_xml(item, level):
  6120. r"""
  6121. Low-level wrapper for `::fz_debug_xml()`.
  6122. Pretty-print an XML tree to stdout. (Deprecated, use
  6123. fz_output_xml in preference).
  6124. """
  6125. return _mupdf.ll_fz_debug_xml(item, level)
  6126. def ll_fz_decode_barcode_from_display_list(type, list, subarea, rotate):
  6127. r"""
  6128. Low-level wrapper for `::fz_decode_barcode_from_display_list()`.
  6129. This function has out-params. Python/C# wrappers look like:
  6130. `ll_fz_decode_barcode_from_display_list(::fz_display_list *list, ::fz_rect subarea, int rotate)` => `(char *, ::fz_barcode_type type)`
  6131. Decode a barcode from a display list.
  6132. type: NULL, or a pointer to recieve the barcode type decoded.
  6133. list: The display list to render to get the barcode.
  6134. subarea: subarea of the page to decode.
  6135. rotate: 0, 90, 180, or 270.
  6136. returns the decoded value.
  6137. """
  6138. return _mupdf.ll_fz_decode_barcode_from_display_list(type, list, subarea, rotate)
  6139. def ll_fz_decode_barcode_from_display_list2(type, list, subarea, rotate):
  6140. r"""
  6141. Low-level wrapper for `::fz_decode_barcode_from_display_list2()`.
  6142. This function has out-params. Python/C# wrappers look like:
  6143. `ll_fz_decode_barcode_from_display_list2(::fz_display_list *list, ::fz_rect subarea, int rotate)` => `(std::string, ::fz_barcode_type type)`
  6144. SWIG-friendly wrapper for fz_decode_barcode_from_display_list(),
  6145. avoiding leak of the returned string.
  6146. """
  6147. return _mupdf.ll_fz_decode_barcode_from_display_list2(type, list, subarea, rotate)
  6148. def ll_fz_decode_barcode_from_page(type, page, subarea, rotate):
  6149. r"""
  6150. Low-level wrapper for `::fz_decode_barcode_from_page()`.
  6151. This function has out-params. Python/C# wrappers look like:
  6152. `ll_fz_decode_barcode_from_page(::fz_page *page, ::fz_rect subarea, int rotate)` => `(char *, ::fz_barcode_type type)`
  6153. Decode a barcode from a page.
  6154. type: NULL, or a pointer to recieve the barcode type decoded.
  6155. page: The page to decode.
  6156. subarea: subarea of the page to decode.
  6157. rotate: 0, 90, 180, or 270.
  6158. returns the decoded value.
  6159. """
  6160. return _mupdf.ll_fz_decode_barcode_from_page(type, page, subarea, rotate)
  6161. def ll_fz_decode_barcode_from_page2(type, page, subarea, rotate):
  6162. r"""
  6163. Low-level wrapper for `::fz_decode_barcode_from_page2()`.
  6164. This function has out-params. Python/C# wrappers look like:
  6165. `ll_fz_decode_barcode_from_page2(::fz_page *page, ::fz_rect subarea, int rotate)` => `(std::string, ::fz_barcode_type type)`
  6166. SWIG-friendly wrapper for fz_decode_barcode_from_page(), avoiding
  6167. leak of the returned string.
  6168. """
  6169. return _mupdf.ll_fz_decode_barcode_from_page2(type, page, subarea, rotate)
  6170. def ll_fz_decode_barcode_from_pixmap(type, pix, rotate):
  6171. r"""
  6172. Low-level wrapper for `::fz_decode_barcode_from_pixmap()`.
  6173. This function has out-params. Python/C# wrappers look like:
  6174. `ll_fz_decode_barcode_from_pixmap(::fz_pixmap *pix, int rotate)` => `(char *, ::fz_barcode_type type)`
  6175. Decode a barcode from a pixmap.
  6176. type: NULL, or a pointer to recieve the barcode type decoded.
  6177. pix: The pixmap to decode.
  6178. rotate: 0, 90, 180, or 270.
  6179. returns the decoded value as an fz_malloced block. Should
  6180. be fz_free'd by the caller.
  6181. """
  6182. return _mupdf.ll_fz_decode_barcode_from_pixmap(type, pix, rotate)
  6183. def ll_fz_decode_barcode_from_pixmap2(type, pix, rotate):
  6184. r"""
  6185. Low-level wrapper for `::fz_decode_barcode_from_pixmap2()`.
  6186. This function has out-params. Python/C# wrappers look like:
  6187. `ll_fz_decode_barcode_from_pixmap2(::fz_pixmap *pix, int rotate)` => `(std::string, ::fz_barcode_type type)`
  6188. SWIG-friendly wrapper for fz_decode_barcode_from_pixmap(), avoiding
  6189. leak of the returned string.
  6190. """
  6191. return _mupdf.ll_fz_decode_barcode_from_pixmap2(type, pix, rotate)
  6192. def ll_fz_decode_tile(pix, decode):
  6193. r"""Low-level wrapper for `::fz_decode_tile()`."""
  6194. return _mupdf.ll_fz_decode_tile(pix, decode)
  6195. def ll_fz_decode_uri(s):
  6196. r"""
  6197. Low-level wrapper for `::fz_decode_uri()`.
  6198. Return a new string representing the unencoded version of the given URI.
  6199. This decodes all escape sequences except those that would result in a reserved
  6200. character that are part of the URI syntax (; / ? : @ & = + $ , #).
  6201. """
  6202. return _mupdf.ll_fz_decode_uri(s)
  6203. def ll_fz_decode_uri_component(s):
  6204. r"""
  6205. Low-level wrapper for `::fz_decode_uri_component()`.
  6206. Return a new string representing the unencoded version of the given URI component.
  6207. This decodes all escape sequences!
  6208. """
  6209. return _mupdf.ll_fz_decode_uri_component(s)
  6210. def ll_fz_decomp_image_from_stream(stm, image, subarea, indexed, l2factor, l2extra):
  6211. r"""
  6212. Low-level wrapper for `::fz_decomp_image_from_stream()`.
  6213. This function has out-params. Python/C# wrappers look like:
  6214. `ll_fz_decomp_image_from_stream(::fz_stream *stm, ::fz_compressed_image *image, ::fz_irect *subarea, int indexed, int l2factor)` => `(fz_pixmap *, int l2extra)`
  6215. Decode a subarea of a compressed image. l2factor is the amount
  6216. of subsampling inbuilt to the stream (i.e. performed by the
  6217. decoder). If non NULL, l2extra is the extra amount of
  6218. subsampling that should be performed by this routine. This will
  6219. be updated on exit to the amount of subsampling that is still
  6220. required to be done.
  6221. Returns a kept reference.
  6222. """
  6223. return _mupdf.ll_fz_decomp_image_from_stream(stm, image, subarea, indexed, l2factor, l2extra)
  6224. def ll_fz_decouple_type3_font(font, t3doc):
  6225. r"""Low-level wrapper for `::fz_decouple_type3_font()`."""
  6226. return _mupdf.ll_fz_decouple_type3_font(font, t3doc)
  6227. def ll_fz_default_cmyk(default_cs):
  6228. r"""Low-level wrapper for `::fz_default_cmyk()`."""
  6229. return _mupdf.ll_fz_default_cmyk(default_cs)
  6230. def ll_fz_default_error_callback(user, message):
  6231. r"""
  6232. Low-level wrapper for `::fz_default_error_callback()`.
  6233. FIXME: Better not to expose fz_default_error_callback, and
  6234. fz_default_warning callback and to allow 'NULL' to be used
  6235. int fz_set_xxxx_callback to mean "defaults".
  6236. FIXME: Do we need/want functions like
  6237. fz_error_callback(ctx, message) to allow callers to inject
  6238. stuff into the error/warning streams?
  6239. The default error callback. Declared publicly just so that the
  6240. error callback can be set back to this after it has been
  6241. overridden.
  6242. """
  6243. return _mupdf.ll_fz_default_error_callback(user, message)
  6244. def ll_fz_default_gray(default_cs):
  6245. r"""
  6246. Low-level wrapper for `::fz_default_gray()`.
  6247. Retrieve default colorspaces (typically page local).
  6248. If default_cs is non NULL, the default is retrieved from there,
  6249. otherwise the global default is retrieved.
  6250. These return borrowed references that should not be dropped,
  6251. unless they are kept first.
  6252. """
  6253. return _mupdf.ll_fz_default_gray(default_cs)
  6254. def ll_fz_default_halftone(num_comps):
  6255. r"""
  6256. Low-level wrapper for `::fz_default_halftone()`.
  6257. Create a 'default' halftone structure
  6258. for the given number of components.
  6259. num_comps: The number of components to use.
  6260. Returns a simple default halftone. The default halftone uses
  6261. the same halftone tile for each plane, which may not be ideal
  6262. for all purposes.
  6263. """
  6264. return _mupdf.ll_fz_default_halftone(num_comps)
  6265. def ll_fz_default_output_intent(default_cs):
  6266. r"""Low-level wrapper for `::fz_default_output_intent()`."""
  6267. return _mupdf.ll_fz_default_output_intent(default_cs)
  6268. def ll_fz_default_rgb(default_cs):
  6269. r"""Low-level wrapper for `::fz_default_rgb()`."""
  6270. return _mupdf.ll_fz_default_rgb(default_cs)
  6271. def ll_fz_default_warning_callback(user, message):
  6272. r"""
  6273. Low-level wrapper for `::fz_default_warning_callback()`.
  6274. The default warning callback. Declared publicly just so that
  6275. the warning callback can be set back to this after it has been
  6276. overridden.
  6277. """
  6278. return _mupdf.ll_fz_default_warning_callback(user, message)
  6279. def ll_fz_defer_reap_end():
  6280. r"""
  6281. Low-level wrapper for `::fz_defer_reap_end()`.
  6282. Decrement the defer reap count.
  6283. If the defer reap count returns to 0, and the store
  6284. has reapable objects in, a reap pass will begin.
  6285. Call this at the end of a process during which you
  6286. potentially might drop many reapable objects.
  6287. It is vital that every fz_defer_reap_start is matched
  6288. by a fz_defer_reap_end call.
  6289. """
  6290. return _mupdf.ll_fz_defer_reap_end()
  6291. def ll_fz_defer_reap_start():
  6292. r"""
  6293. Low-level wrapper for `::fz_defer_reap_start()`.
  6294. Increment the defer reap count.
  6295. No reap operations will take place (except for those
  6296. triggered by an immediate failed malloc) until the
  6297. defer reap count returns to 0.
  6298. Call this at the start of a process during which you
  6299. potentially might drop many reapable objects.
  6300. It is vital that every fz_defer_reap_start is matched
  6301. by a fz_defer_reap_end call.
  6302. """
  6303. return _mupdf.ll_fz_defer_reap_start()
  6304. def ll_fz_deflate(dest, compressed_length, source, source_length, level):
  6305. r"""
  6306. Low-level wrapper for `::fz_deflate()`.
  6307. This function has out-params. Python/C# wrappers look like:
  6308. `ll_fz_deflate(unsigned char *dest, const unsigned char *source, size_t source_length, ::fz_deflate_level level)` => size_t compressed_length
  6309. Compress source_length bytes of data starting
  6310. at source, into a buffer of length *compressed_length, starting at
  6311. dest. *compressed_length will be updated on exit to contain the size
  6312. actually used.
  6313. """
  6314. return _mupdf.ll_fz_deflate(dest, compressed_length, source, source_length, level)
  6315. def ll_fz_deflate_bound(size):
  6316. r"""
  6317. Low-level wrapper for `::fz_deflate_bound()`.
  6318. Returns the upper bound on the
  6319. size of flated data of length size.
  6320. """
  6321. return _mupdf.ll_fz_deflate_bound(size)
  6322. def ll_fz_delete_link(page, link):
  6323. r"""
  6324. Low-level wrapper for `::fz_delete_link()`.
  6325. Delete an existing link on a page.
  6326. """
  6327. return _mupdf.ll_fz_delete_link(page, link)
  6328. def ll_fz_deskew_pixmap(src, degrees, border):
  6329. r"""Low-level wrapper for `::fz_deskew_pixmap()`."""
  6330. return _mupdf.ll_fz_deskew_pixmap(src, degrees, border)
  6331. def ll_fz_detach_xml(node):
  6332. r"""
  6333. Low-level wrapper for `::fz_detach_xml()`.
  6334. Detach a node from the tree, unlinking it from its parent,
  6335. and setting the document root to the node.
  6336. """
  6337. return _mupdf.ll_fz_detach_xml(node)
  6338. def ll_fz_detect_document(points, src):
  6339. r"""Low-level wrapper for `::fz_detect_document()`."""
  6340. return _mupdf.ll_fz_detect_document(points, src)
  6341. def ll_fz_detect_skew(pixmap):
  6342. r"""Low-level wrapper for `::fz_detect_skew()`."""
  6343. return _mupdf.ll_fz_detect_skew(pixmap)
  6344. def ll_fz_device_bgr():
  6345. r"""Low-level wrapper for `::fz_device_bgr()`."""
  6346. return _mupdf.ll_fz_device_bgr()
  6347. def ll_fz_device_cmyk():
  6348. r"""Low-level wrapper for `::fz_device_cmyk()`."""
  6349. return _mupdf.ll_fz_device_cmyk()
  6350. def ll_fz_device_current_scissor(dev):
  6351. r"""
  6352. Low-level wrapper for `::fz_device_current_scissor()`.
  6353. Find current scissor region as tracked by the device.
  6354. """
  6355. return _mupdf.ll_fz_device_current_scissor(dev)
  6356. def ll_fz_device_gray():
  6357. r"""
  6358. Low-level wrapper for `::fz_device_gray()`.
  6359. Retrieve global default colorspaces.
  6360. These return borrowed references that should not be dropped,
  6361. unless they are kept first.
  6362. """
  6363. return _mupdf.ll_fz_device_gray()
  6364. def ll_fz_device_lab():
  6365. r"""Low-level wrapper for `::fz_device_lab()`."""
  6366. return _mupdf.ll_fz_device_lab()
  6367. def ll_fz_device_rgb():
  6368. r"""Low-level wrapper for `::fz_device_rgb()`."""
  6369. return _mupdf.ll_fz_device_rgb()
  6370. def ll_fz_dirname(dir, path, dirsize):
  6371. r"""
  6372. Low-level wrapper for `::fz_dirname()`.
  6373. extract the directory component from a path.
  6374. """
  6375. return _mupdf.ll_fz_dirname(dir, path, dirsize)
  6376. def ll_fz_disable_device_hints(dev, hints):
  6377. r"""
  6378. Low-level wrapper for `::fz_disable_device_hints()`.
  6379. Disable (clear) hint bits within the hint bitfield for a device.
  6380. """
  6381. return _mupdf.ll_fz_disable_device_hints(dev, hints)
  6382. def ll_fz_disable_icc():
  6383. r"""
  6384. Low-level wrapper for `::fz_disable_icc()`.
  6385. Disable icc profile based operation.
  6386. """
  6387. return _mupdf.ll_fz_disable_icc()
  6388. def ll_fz_display_list_is_empty(list):
  6389. r"""
  6390. Low-level wrapper for `::fz_display_list_is_empty()`.
  6391. Check for a display list being empty
  6392. list: The list to check.
  6393. Returns true if empty, false otherwise.
  6394. """
  6395. return _mupdf.ll_fz_display_list_is_empty(list)
  6396. def ll_fz_div255(c, a):
  6397. r"""
  6398. Low-level wrapper for `::fz_div255()`.
  6399. Undo alpha premultiplication.
  6400. """
  6401. return _mupdf.ll_fz_div255(c, a)
  6402. def ll_fz_do_always():
  6403. r"""Low-level wrapper for `::fz_do_always()`."""
  6404. return _mupdf.ll_fz_do_always()
  6405. def ll_fz_do_catch():
  6406. r"""Low-level wrapper for `::fz_do_catch()`."""
  6407. return _mupdf.ll_fz_do_catch()
  6408. def ll_fz_do_try():
  6409. r"""Low-level wrapper for `::fz_do_try()`."""
  6410. return _mupdf.ll_fz_do_try()
  6411. def ll_fz_document_handler_open(handler, stream, accel, dir, recognize_state):
  6412. r"""
  6413. Low-level wrapper for `::fz_document_handler_open()`. Helper for calling `fz_document_handler::open` function pointer via
  6414. Swig from Python/C#.
  6415. """
  6416. return _mupdf.ll_fz_document_handler_open(handler, stream, accel, dir, recognize_state)
  6417. def ll_fz_document_handler_recognize(handler, magic):
  6418. r"""
  6419. Low-level wrapper for `::fz_document_handler_recognize()`. Helper for calling a `fz_document_handler::recognize` function
  6420. pointer via Swig from Python/C#.
  6421. """
  6422. return _mupdf.ll_fz_document_handler_recognize(handler, magic)
  6423. def ll_fz_document_output_intent(doc):
  6424. r"""
  6425. Low-level wrapper for `::fz_document_output_intent()`.
  6426. Find the output intent colorspace if the document has defined
  6427. one.
  6428. Returns a borrowed reference that should not be dropped, unless
  6429. it is kept first.
  6430. """
  6431. return _mupdf.ll_fz_document_output_intent(doc)
  6432. def ll_fz_document_supports_accelerator(doc):
  6433. r"""
  6434. Low-level wrapper for `::fz_document_supports_accelerator()`.
  6435. Query if the document supports the saving of accelerator data.
  6436. """
  6437. return _mupdf.ll_fz_document_supports_accelerator(doc)
  6438. def ll_fz_dom_add_attribute(elt, att, value):
  6439. r"""
  6440. Low-level wrapper for `::fz_dom_add_attribute()`.
  6441. Add an attribute to an element.
  6442. Ownership of att and value remain with the caller.
  6443. """
  6444. return _mupdf.ll_fz_dom_add_attribute(elt, att, value)
  6445. def ll_fz_dom_append_child(parent, child):
  6446. r"""
  6447. Low-level wrapper for `::fz_dom_append_child()`.
  6448. Insert an element as the last child of a parent, unlinking the
  6449. child from its current position if required.
  6450. """
  6451. return _mupdf.ll_fz_dom_append_child(parent, child)
  6452. def ll_fz_dom_attribute(elt, att):
  6453. r"""
  6454. Low-level wrapper for `::fz_dom_attribute()`.
  6455. Retrieve the value of a given attribute from a given element.
  6456. Returns a borrowed pointer to the value or NULL if not found.
  6457. """
  6458. return _mupdf.ll_fz_dom_attribute(elt, att)
  6459. def ll_fz_dom_body(dom):
  6460. r"""
  6461. Low-level wrapper for `::fz_dom_body()`.
  6462. Return a borrowed reference for the 'body' element of
  6463. the given DOM.
  6464. """
  6465. return _mupdf.ll_fz_dom_body(dom)
  6466. def ll_fz_dom_clone(elt):
  6467. r"""
  6468. Low-level wrapper for `::fz_dom_clone()`.
  6469. Clone an element (and its children).
  6470. A borrowed reference to the clone is returned. The clone is not
  6471. yet linked into the DOM.
  6472. """
  6473. return _mupdf.ll_fz_dom_clone(elt)
  6474. def ll_fz_dom_create_element(dom, tag):
  6475. r"""
  6476. Low-level wrapper for `::fz_dom_create_element()`.
  6477. Create an element of a given tag type for the given DOM.
  6478. The element is not linked into the DOM yet.
  6479. """
  6480. return _mupdf.ll_fz_dom_create_element(dom, tag)
  6481. def ll_fz_dom_create_text_node(dom, text):
  6482. r"""
  6483. Low-level wrapper for `::fz_dom_create_text_node()`.
  6484. Create a text node for the given DOM.
  6485. The element is not linked into the DOM yet.
  6486. """
  6487. return _mupdf.ll_fz_dom_create_text_node(dom, text)
  6488. def ll_fz_dom_document_element(dom):
  6489. r"""
  6490. Low-level wrapper for `::fz_dom_document_element()`.
  6491. Return a borrowed reference for the document (the top
  6492. level element) of the DOM.
  6493. """
  6494. return _mupdf.ll_fz_dom_document_element(dom)
  6495. def ll_fz_dom_find(elt, tag, att, match):
  6496. r"""
  6497. Low-level wrapper for `::fz_dom_find()`.
  6498. Find the first element matching the requirements in a depth first traversal from elt.
  6499. The tagname must match tag, unless tag is NULL, when all tag names are considered to match.
  6500. If att is NULL, then all tags match.
  6501. Otherwise:
  6502. If match is NULL, then only nodes that have an att attribute match.
  6503. If match is non-NULL, then only nodes that have an att attribute that matches match match.
  6504. Returns NULL (if no match found), or a borrowed reference to the first matching element.
  6505. """
  6506. return _mupdf.ll_fz_dom_find(elt, tag, att, match)
  6507. def ll_fz_dom_find_next(elt, tag, att, match):
  6508. r"""
  6509. Low-level wrapper for `::fz_dom_find_next()`.
  6510. Find the next element matching the requirements.
  6511. """
  6512. return _mupdf.ll_fz_dom_find_next(elt, tag, att, match)
  6513. def ll_fz_dom_first_child(elt):
  6514. r"""
  6515. Low-level wrapper for `::fz_dom_first_child()`.
  6516. Return a borrowed reference to the first child of a node,
  6517. or NULL if there isn't one.
  6518. """
  6519. return _mupdf.ll_fz_dom_first_child(elt)
  6520. def ll_fz_dom_get_attribute(elt, i, att):
  6521. r"""
  6522. Low-level wrapper for `::fz_dom_get_attribute()`.
  6523. This function has out-params. Python/C# wrappers look like:
  6524. `ll_fz_dom_get_attribute(::fz_xml *elt, int i)` => `(const char *, const char *att)`
  6525. Enumerate through the attributes of an element.
  6526. Call with i=0,1,2,3... to enumerate attributes.
  6527. On return *att and the return value will be NULL if there are not
  6528. that many attributes to read. Otherwise, *att will be filled in
  6529. with a borrowed pointer to the attribute name, and the return
  6530. value will be a borrowed pointer to the value.
  6531. """
  6532. return _mupdf.ll_fz_dom_get_attribute(elt, i, att)
  6533. def ll_fz_dom_insert_after(node, new_elt):
  6534. r"""
  6535. Low-level wrapper for `::fz_dom_insert_after()`.
  6536. Insert an element (new_elt), after another element (node),
  6537. unlinking the new_elt from its current position if required.
  6538. """
  6539. return _mupdf.ll_fz_dom_insert_after(node, new_elt)
  6540. def ll_fz_dom_insert_before(node, new_elt):
  6541. r"""
  6542. Low-level wrapper for `::fz_dom_insert_before()`.
  6543. Insert an element (new_elt), before another element (node),
  6544. unlinking the new_elt from its current position if required.
  6545. """
  6546. return _mupdf.ll_fz_dom_insert_before(node, new_elt)
  6547. def ll_fz_dom_next(elt):
  6548. r"""
  6549. Low-level wrapper for `::fz_dom_next()`.
  6550. Return a borrowed reference to the next sibling of a node,
  6551. or NULL if there isn't one.
  6552. """
  6553. return _mupdf.ll_fz_dom_next(elt)
  6554. def ll_fz_dom_parent(elt):
  6555. r"""
  6556. Low-level wrapper for `::fz_dom_parent()`.
  6557. Return a borrowed reference to the parent of a node,
  6558. or NULL if there isn't one.
  6559. """
  6560. return _mupdf.ll_fz_dom_parent(elt)
  6561. def ll_fz_dom_previous(elt):
  6562. r"""
  6563. Low-level wrapper for `::fz_dom_previous()`.
  6564. Return a borrowed reference to the previous sibling of a node,
  6565. or NULL if there isn't one.
  6566. """
  6567. return _mupdf.ll_fz_dom_previous(elt)
  6568. def ll_fz_dom_remove(elt):
  6569. r"""
  6570. Low-level wrapper for `::fz_dom_remove()`.
  6571. Remove an element from the DOM. The element can be added back elsewhere
  6572. if required.
  6573. No reference counting changes for the element.
  6574. """
  6575. return _mupdf.ll_fz_dom_remove(elt)
  6576. def ll_fz_dom_remove_attribute(elt, att):
  6577. r"""
  6578. Low-level wrapper for `::fz_dom_remove_attribute()`.
  6579. Remove an attribute from an element.
  6580. """
  6581. return _mupdf.ll_fz_dom_remove_attribute(elt, att)
  6582. def ll_fz_draw_story(story, dev, ctm):
  6583. r"""Low-level wrapper for `::fz_draw_story()`."""
  6584. return _mupdf.ll_fz_draw_story(story, dev, ctm)
  6585. def ll_fz_drop_archive(arch):
  6586. r"""
  6587. Low-level wrapper for `::fz_drop_archive()`.
  6588. Drop a reference to an archive.
  6589. When the last reference is dropped, this closes and releases
  6590. any memory or filehandles associated with the archive.
  6591. """
  6592. return _mupdf.ll_fz_drop_archive(arch)
  6593. def ll_fz_drop_band_writer(writer):
  6594. r"""
  6595. Low-level wrapper for `::fz_drop_band_writer()`.
  6596. Drop the reference to the band writer, causing it to be
  6597. destroyed.
  6598. Never throws an exception.
  6599. """
  6600. return _mupdf.ll_fz_drop_band_writer(writer)
  6601. def ll_fz_drop_bitmap(bit):
  6602. r"""
  6603. Low-level wrapper for `::fz_drop_bitmap()`.
  6604. Drop a reference to the bitmap. When the reference count reaches
  6605. zero, the bitmap will be destroyed.
  6606. Never throws exceptions.
  6607. """
  6608. return _mupdf.ll_fz_drop_bitmap(bit)
  6609. def ll_fz_drop_buffer(buf):
  6610. r"""
  6611. Low-level wrapper for `::fz_drop_buffer()`.
  6612. Drop a reference to the buffer. When the reference count reaches
  6613. zero, the buffer is destroyed.
  6614. Never throws exceptions.
  6615. """
  6616. return _mupdf.ll_fz_drop_buffer(buf)
  6617. def ll_fz_drop_colorspace(colorspace):
  6618. r"""
  6619. Low-level wrapper for `::fz_drop_colorspace()`.
  6620. Drops a reference to the colorspace.
  6621. When the reference count reaches zero, the colorspace is
  6622. destroyed.
  6623. """
  6624. return _mupdf.ll_fz_drop_colorspace(colorspace)
  6625. def ll_fz_drop_colorspace_imp(cs_):
  6626. r"""Low-level wrapper for `::fz_drop_colorspace_imp()`."""
  6627. return _mupdf.ll_fz_drop_colorspace_imp(cs_)
  6628. def ll_fz_drop_compressed_buffer(buf):
  6629. r"""
  6630. Low-level wrapper for `::fz_drop_compressed_buffer()`.
  6631. Drop a reference to a compressed buffer. Destroys the buffer
  6632. and frees any storage/other references held by it.
  6633. Never throws exceptions.
  6634. """
  6635. return _mupdf.ll_fz_drop_compressed_buffer(buf)
  6636. def ll_fz_drop_context():
  6637. r"""
  6638. Low-level wrapper for `::fz_drop_context()`.
  6639. Free a context and its global state.
  6640. The context and all of its global state is freed, and any
  6641. buffered warnings are flushed (see fz_flush_warnings). If NULL
  6642. is passed in nothing will happen.
  6643. Must not be called for a context that is being used in an active
  6644. fz_try(), fz_always() or fz_catch() block.
  6645. """
  6646. return _mupdf.ll_fz_drop_context()
  6647. def ll_fz_drop_default_colorspaces(default_cs):
  6648. r"""
  6649. Low-level wrapper for `::fz_drop_default_colorspaces()`.
  6650. Drop a reference to the default colorspaces structure. When the
  6651. reference count reaches 0, the references it holds internally
  6652. to the underlying colorspaces will be dropped, and the structure
  6653. will be destroyed.
  6654. Never throws exceptions.
  6655. """
  6656. return _mupdf.ll_fz_drop_default_colorspaces(default_cs)
  6657. def ll_fz_drop_device(dev):
  6658. r"""
  6659. Low-level wrapper for `::fz_drop_device()`.
  6660. Reduce the reference count on a device. When the reference count
  6661. reaches zero, the device and its resources will be freed.
  6662. Don't forget to call fz_close_device before dropping the device,
  6663. or you may get incomplete output!
  6664. Never throws exceptions.
  6665. """
  6666. return _mupdf.ll_fz_drop_device(dev)
  6667. def ll_fz_drop_display_list(list):
  6668. r"""
  6669. Low-level wrapper for `::fz_drop_display_list()`.
  6670. Decrement the reference count for a display list. When the
  6671. reference count reaches zero, all the references in the display
  6672. list itself are dropped, and the display list is freed.
  6673. Never throws exceptions.
  6674. """
  6675. return _mupdf.ll_fz_drop_display_list(list)
  6676. def ll_fz_drop_document(doc):
  6677. r"""
  6678. Low-level wrapper for `::fz_drop_document()`.
  6679. Decrement the document reference count. When the reference
  6680. count reaches 0, the document and all it's references are
  6681. freed.
  6682. Never throws exceptions.
  6683. """
  6684. return _mupdf.ll_fz_drop_document(doc)
  6685. def ll_fz_drop_document_writer(wri):
  6686. r"""
  6687. Low-level wrapper for `::fz_drop_document_writer()`.
  6688. Called to discard a fz_document_writer.
  6689. This may be called at any time during the process to release all
  6690. the resources owned by the writer.
  6691. Calling drop without having previously called close may leave
  6692. the file in an inconsistent state.
  6693. """
  6694. return _mupdf.ll_fz_drop_document_writer(wri)
  6695. def ll_fz_drop_drawn_tiles_for_document(doc):
  6696. r"""
  6697. Low-level wrapper for `::fz_drop_drawn_tiles_for_document()`.
  6698. Filter the store and throw away any stored tiles drawn for a
  6699. given document.
  6700. """
  6701. return _mupdf.ll_fz_drop_drawn_tiles_for_document(doc)
  6702. def ll_fz_drop_font(font):
  6703. r"""
  6704. Low-level wrapper for `::fz_drop_font()`.
  6705. Drop a reference to a fz_font, destroying the
  6706. font when the last reference is dropped.
  6707. font: The font to drop a reference to.
  6708. """
  6709. return _mupdf.ll_fz_drop_font(font)
  6710. def ll_fz_drop_function(func):
  6711. r"""Low-level wrapper for `::fz_drop_function()`."""
  6712. return _mupdf.ll_fz_drop_function(func)
  6713. def ll_fz_drop_glyph(pix):
  6714. r"""
  6715. Low-level wrapper for `::fz_drop_glyph()`.
  6716. Drop a reference and free a glyph.
  6717. Decrement the reference count for the glyph. When no
  6718. references remain the glyph will be freed.
  6719. """
  6720. return _mupdf.ll_fz_drop_glyph(pix)
  6721. def ll_fz_drop_halftone(ht):
  6722. r"""
  6723. Low-level wrapper for `::fz_drop_halftone()`.
  6724. Drop a reference to the halftone. When the reference count
  6725. reaches zero, the halftone is destroyed.
  6726. Never throws exceptions.
  6727. """
  6728. return _mupdf.ll_fz_drop_halftone(ht)
  6729. def ll_fz_drop_hash_table(table):
  6730. r"""
  6731. Low-level wrapper for `::fz_drop_hash_table()`.
  6732. Destroy the hash table.
  6733. Values are dropped using the drop function.
  6734. """
  6735. return _mupdf.ll_fz_drop_hash_table(table)
  6736. def ll_fz_drop_image(image):
  6737. r"""
  6738. Low-level wrapper for `::fz_drop_image()`.
  6739. Decrement the (normal) reference count for an image. When the
  6740. total (normal + key) reference count reaches zero, the image and
  6741. its resources are freed.
  6742. Never throws exceptions.
  6743. """
  6744. return _mupdf.ll_fz_drop_image(image)
  6745. def ll_fz_drop_image_base(image):
  6746. r"""
  6747. Low-level wrapper for `::fz_drop_image_base()`.
  6748. Internal destructor for the base image class members.
  6749. Exposed to allow derived image classes to be written.
  6750. """
  6751. return _mupdf.ll_fz_drop_image_base(image)
  6752. def ll_fz_drop_image_imp(image):
  6753. r"""
  6754. Low-level wrapper for `::fz_drop_image_imp()`.
  6755. Internal destructor exposed for fz_store integration.
  6756. """
  6757. return _mupdf.ll_fz_drop_image_imp(image)
  6758. def ll_fz_drop_image_store_key(image):
  6759. r"""
  6760. Low-level wrapper for `::fz_drop_image_store_key()`.
  6761. Decrement the store key reference count for an image. When the
  6762. total (normal + key) reference count reaches zero, the image and
  6763. its resources are freed.
  6764. Never throws exceptions.
  6765. """
  6766. return _mupdf.ll_fz_drop_image_store_key(image)
  6767. def ll_fz_drop_imp(p, refs):
  6768. r"""
  6769. Low-level wrapper for `::fz_drop_imp()`.
  6770. This function has out-params. Python/C# wrappers look like:
  6771. `ll_fz_drop_imp(void *p)` => `(int, int refs)`
  6772. """
  6773. return _mupdf.ll_fz_drop_imp(p, refs)
  6774. def ll_fz_drop_imp16(p, refs):
  6775. r"""
  6776. Low-level wrapper for `::fz_drop_imp16()`.
  6777. This function has out-params. Python/C# wrappers look like:
  6778. `ll_fz_drop_imp16(void *p)` => `(int, int16_t refs)`
  6779. """
  6780. return _mupdf.ll_fz_drop_imp16(p, refs)
  6781. def ll_fz_drop_imp8(p, refs):
  6782. r"""Low-level wrapper for `::fz_drop_imp8()`."""
  6783. return _mupdf.ll_fz_drop_imp8(p, refs)
  6784. def ll_fz_drop_jbig2_globals(globals):
  6785. r"""
  6786. Low-level wrapper for `::fz_drop_jbig2_globals()`.
  6787. Decrement the reference count for a jbig2 globals record.
  6788. When the reference count hits zero, the record is freed.
  6789. Never throws an exception.
  6790. """
  6791. return _mupdf.ll_fz_drop_jbig2_globals(globals)
  6792. def ll_fz_drop_jbig2_globals_imp(globals):
  6793. r"""
  6794. Low-level wrapper for `::fz_drop_jbig2_globals_imp()`.
  6795. Special jbig2 globals drop function for use in implementing
  6796. store support.
  6797. """
  6798. return _mupdf.ll_fz_drop_jbig2_globals_imp(globals)
  6799. def ll_fz_drop_key_storable(arg_1):
  6800. r"""
  6801. Low-level wrapper for `::fz_drop_key_storable()`.
  6802. Decrement the (normal) reference count for a storable object.
  6803. When the total reference count hits zero, the drop function for
  6804. that object is called to free the object.
  6805. Never throws exceptions.
  6806. """
  6807. return _mupdf.ll_fz_drop_key_storable(arg_1)
  6808. def ll_fz_drop_key_storable_key(arg_1):
  6809. r"""
  6810. Low-level wrapper for `::fz_drop_key_storable_key()`.
  6811. Decrement the (key) reference count for a storable object.
  6812. When the total reference count hits zero, the drop function for
  6813. that object is called to free the object.
  6814. Never throws exceptions.
  6815. """
  6816. return _mupdf.ll_fz_drop_key_storable_key(arg_1)
  6817. def ll_fz_drop_layout(block):
  6818. r"""
  6819. Low-level wrapper for `::fz_drop_layout()`.
  6820. Drop layout block. Free the pool, and linked blocks.
  6821. Never throws exceptions.
  6822. """
  6823. return _mupdf.ll_fz_drop_layout(block)
  6824. def ll_fz_drop_link(link):
  6825. r"""
  6826. Low-level wrapper for `::fz_drop_link()`.
  6827. Decrement the reference count for a link. When the reference
  6828. count reaches zero, the link is destroyed.
  6829. When a link is freed, the reference for any linked link (next)
  6830. is dropped too, thus an entire linked list of fz_link's can be
  6831. freed by just dropping the head.
  6832. """
  6833. return _mupdf.ll_fz_drop_link(link)
  6834. def ll_fz_drop_outline(outline):
  6835. r"""
  6836. Low-level wrapper for `::fz_drop_outline()`.
  6837. Decrements the reference count. When the reference point
  6838. reaches zero, the outline is freed.
  6839. When freed, it will drop linked outline entries (next and down)
  6840. too, thus a whole outline structure can be dropped by dropping
  6841. the top entry.
  6842. Never throws exceptions.
  6843. """
  6844. return _mupdf.ll_fz_drop_outline(outline)
  6845. def ll_fz_drop_outline_iterator(iter):
  6846. r"""
  6847. Low-level wrapper for `::fz_drop_outline_iterator()`.
  6848. Drop the current iterator.
  6849. """
  6850. return _mupdf.ll_fz_drop_outline_iterator(iter)
  6851. def ll_fz_drop_output(arg_1):
  6852. r"""
  6853. Low-level wrapper for `::fz_drop_output()`.
  6854. Free an output stream. Don't forget to close it first!
  6855. """
  6856. return _mupdf.ll_fz_drop_output(arg_1)
  6857. def ll_fz_drop_page(page):
  6858. r"""
  6859. Low-level wrapper for `::fz_drop_page()`.
  6860. Decrements the reference count for the page. When the reference
  6861. count hits 0, the page and its references are freed.
  6862. Never throws exceptions.
  6863. """
  6864. return _mupdf.ll_fz_drop_page(page)
  6865. def ll_fz_drop_path(path):
  6866. r"""
  6867. Low-level wrapper for `::fz_drop_path()`.
  6868. Decrement the reference count. When the reference count hits
  6869. zero, free the path.
  6870. All paths can be dropped, regardless of their packing type.
  6871. Packed paths do not own the blocks into which they are packed
  6872. so dropping them does not free those blocks.
  6873. Never throws exceptions.
  6874. """
  6875. return _mupdf.ll_fz_drop_path(path)
  6876. def ll_fz_drop_pixmap(pix):
  6877. r"""
  6878. Low-level wrapper for `::fz_drop_pixmap()`.
  6879. Decrement the reference count for the pixmap. When the
  6880. reference count hits 0, the pixmap is freed.
  6881. Never throws exceptions.
  6882. """
  6883. return _mupdf.ll_fz_drop_pixmap(pix)
  6884. def ll_fz_drop_pool(pool):
  6885. r"""
  6886. Low-level wrapper for `::fz_drop_pool()`.
  6887. Drop a pool, freeing and invalidating all storage returned from
  6888. the pool.
  6889. """
  6890. return _mupdf.ll_fz_drop_pool(pool)
  6891. def ll_fz_drop_separations(sep):
  6892. r"""
  6893. Low-level wrapper for `::fz_drop_separations()`.
  6894. Decrement the reference count for a separations structure.
  6895. When the reference count hits zero, the separations structure
  6896. is freed.
  6897. Never throws exceptions.
  6898. """
  6899. return _mupdf.ll_fz_drop_separations(sep)
  6900. def ll_fz_drop_shade(shade):
  6901. r"""
  6902. Low-level wrapper for `::fz_drop_shade()`.
  6903. Decrement the reference count for the shade structure. When
  6904. the reference count hits zero, the structure is freed.
  6905. Never throws exceptions.
  6906. """
  6907. return _mupdf.ll_fz_drop_shade(shade)
  6908. def ll_fz_drop_shade_color_cache(cache):
  6909. r"""Low-level wrapper for `::fz_drop_shade_color_cache()`."""
  6910. return _mupdf.ll_fz_drop_shade_color_cache(cache)
  6911. def ll_fz_drop_shade_imp(shade):
  6912. r"""
  6913. Low-level wrapper for `::fz_drop_shade_imp()`.
  6914. Internal function to destroy a
  6915. shade. Only exposed for use with the fz_store.
  6916. shade: The reference to destroy.
  6917. """
  6918. return _mupdf.ll_fz_drop_shade_imp(shade)
  6919. def ll_fz_drop_stext_page(page):
  6920. r"""Low-level wrapper for `::fz_drop_stext_page()`."""
  6921. return _mupdf.ll_fz_drop_stext_page(page)
  6922. def ll_fz_drop_storable(arg_1):
  6923. r"""
  6924. Low-level wrapper for `::fz_drop_storable()`.
  6925. Decrement the reference count for a storable object. When the
  6926. reference count hits zero, the drop function for that object
  6927. is called to free the object.
  6928. Never throws exceptions.
  6929. """
  6930. return _mupdf.ll_fz_drop_storable(arg_1)
  6931. def ll_fz_drop_store_context():
  6932. r"""
  6933. Low-level wrapper for `::fz_drop_store_context()`.
  6934. Decrement the reference count for the store context. When the
  6935. reference count hits zero, the store context is freed.
  6936. Never throws exceptions.
  6937. """
  6938. return _mupdf.ll_fz_drop_store_context()
  6939. def ll_fz_drop_story(story):
  6940. r"""Low-level wrapper for `::fz_drop_story()`."""
  6941. return _mupdf.ll_fz_drop_story(story)
  6942. def ll_fz_drop_stream(stm):
  6943. r"""
  6944. Low-level wrapper for `::fz_drop_stream()`.
  6945. Decrements the reference count for a stream.
  6946. When the reference count for the stream hits zero, frees the
  6947. storage used for the fz_stream itself, and (usually)
  6948. releases the underlying resources that the stream is based upon
  6949. (depends on the method used to open the stream initially).
  6950. """
  6951. return _mupdf.ll_fz_drop_stream(stm)
  6952. def ll_fz_drop_string(str):
  6953. r"""Low-level wrapper for `::fz_drop_string()`."""
  6954. return _mupdf.ll_fz_drop_string(str)
  6955. def ll_fz_drop_stroke_state(stroke):
  6956. r"""
  6957. Low-level wrapper for `::fz_drop_stroke_state()`.
  6958. Drop a reference to a stroke state structure, destroying the
  6959. structure if it is the last reference.
  6960. """
  6961. return _mupdf.ll_fz_drop_stroke_state(stroke)
  6962. def ll_fz_drop_text(text):
  6963. r"""
  6964. Low-level wrapper for `::fz_drop_text()`.
  6965. Decrement the reference count for the text object. When the
  6966. reference count hits zero, the text object is freed.
  6967. Never throws exceptions.
  6968. """
  6969. return _mupdf.ll_fz_drop_text(text)
  6970. def ll_fz_drop_tree(node, dropfunc):
  6971. r"""
  6972. Low-level wrapper for `::fz_drop_tree()`.
  6973. Drop the tree.
  6974. The storage used by the tree is freed, and each value has
  6975. dropfunc called on it.
  6976. """
  6977. return _mupdf.ll_fz_drop_tree(node, dropfunc)
  6978. def ll_fz_drop_xml(xml):
  6979. r"""
  6980. Low-level wrapper for `::fz_drop_xml()`.
  6981. Drop a reference to the XML. When the last reference is
  6982. dropped, the node and all its children and siblings will
  6983. be freed.
  6984. """
  6985. return _mupdf.ll_fz_drop_xml(xml)
  6986. def ll_fz_drop_zip_writer(zip):
  6987. r"""
  6988. Low-level wrapper for `::fz_drop_zip_writer()`.
  6989. Drop the reference to the zipfile.
  6990. In common with other 'drop' methods, this will never throw an
  6991. exception.
  6992. """
  6993. return _mupdf.ll_fz_drop_zip_writer(zip)
  6994. def ll_fz_dump_glyph_cache_stats(out):
  6995. r"""
  6996. Low-level wrapper for `::fz_dump_glyph_cache_stats()`.
  6997. Dump debug statistics for the glyph cache.
  6998. """
  6999. return _mupdf.ll_fz_dump_glyph_cache_stats(out)
  7000. def ll_fz_duplicate_glyph_names_from_unicode(unicode):
  7001. r"""Low-level wrapper for `::fz_duplicate_glyph_names_from_unicode()`."""
  7002. return _mupdf.ll_fz_duplicate_glyph_names_from_unicode(unicode)
  7003. def ll_fz_empty_store():
  7004. r"""
  7005. Low-level wrapper for `::fz_empty_store()`.
  7006. Evict every item from the store.
  7007. """
  7008. return _mupdf.ll_fz_empty_store()
  7009. def ll_fz_enable_device_hints(dev, hints):
  7010. r"""
  7011. Low-level wrapper for `::fz_enable_device_hints()`.
  7012. Enable (set) hint bits within the hint bitfield for a device.
  7013. """
  7014. return _mupdf.ll_fz_enable_device_hints(dev, hints)
  7015. def ll_fz_enable_icc():
  7016. r"""
  7017. Low-level wrapper for `::fz_enable_icc()`.
  7018. Enable icc profile based operation.
  7019. """
  7020. return _mupdf.ll_fz_enable_icc()
  7021. def ll_fz_encode_character(font, unicode):
  7022. r"""
  7023. Low-level wrapper for `::fz_encode_character()`.
  7024. Find the glyph id for a given unicode
  7025. character within a font.
  7026. font: The font to look for the unicode character in.
  7027. unicode: The unicode character to encode.
  7028. Returns the glyph id for the given unicode value, or 0 if
  7029. unknown.
  7030. """
  7031. return _mupdf.ll_fz_encode_character(font, unicode)
  7032. def ll_fz_encode_character_by_glyph_name(font, glyphname):
  7033. r"""
  7034. Low-level wrapper for `::fz_encode_character_by_glyph_name()`.
  7035. Encode character.
  7036. Either by direct lookup of glyphname within a font, or, failing
  7037. that, by mapping glyphname to unicode and thence to the glyph
  7038. index within the given font.
  7039. Returns zero for type3 fonts.
  7040. """
  7041. return _mupdf.ll_fz_encode_character_by_glyph_name(font, glyphname)
  7042. def ll_fz_encode_character_sc(font, unicode):
  7043. r"""
  7044. Low-level wrapper for `::fz_encode_character_sc()`.
  7045. Encode character, preferring small-caps variant if available.
  7046. font: The font to look for the unicode character in.
  7047. unicode: The unicode character to encode.
  7048. Returns the glyph id for the given unicode value, or 0 if
  7049. unknown.
  7050. """
  7051. return _mupdf.ll_fz_encode_character_sc(font, unicode)
  7052. def ll_fz_encode_character_with_fallback(font, unicode, script, language, out_font):
  7053. r"""
  7054. Low-level wrapper for `::fz_encode_character_with_fallback()`.
  7055. This function has out-params. Python/C# wrappers look like:
  7056. `ll_fz_encode_character_with_fallback(::fz_font *font, int unicode, int script, int language, ::fz_font **out_font)` => `(int)`
  7057. Find the glyph id for
  7058. a given unicode character within a font, falling back to
  7059. an alternative if not found.
  7060. font: The font to look for the unicode character in.
  7061. unicode: The unicode character to encode.
  7062. script: The script in use.
  7063. language: The language in use.
  7064. out_font: The font handle in which the given glyph represents
  7065. the requested unicode character. The caller does not own the
  7066. reference it is passed, so should call fz_keep_font if it is
  7067. not simply to be used immediately.
  7068. Returns the glyph id for the given unicode value in the supplied
  7069. font (and sets *out_font to font) if it is present. Otherwise
  7070. an alternative fallback font (based on script/language) is
  7071. searched for. If the glyph is found therein, *out_font is set
  7072. to this reference, and the glyph reference is returned. If it
  7073. cannot be found anywhere, the function returns 0.
  7074. """
  7075. return _mupdf.ll_fz_encode_character_with_fallback(font, unicode, script, language, out_font)
  7076. def ll_fz_encode_uri(s):
  7077. r"""
  7078. Low-level wrapper for `::fz_encode_uri()`.
  7079. Return a new string representing the provided string encoded as a URI.
  7080. """
  7081. return _mupdf.ll_fz_encode_uri(s)
  7082. def ll_fz_encode_uri_component(s):
  7083. r"""
  7084. Low-level wrapper for `::fz_encode_uri_component()`.
  7085. Return a new string representing the provided string encoded as an URI component.
  7086. This also encodes the special reserved characters (; / ? : @ & = + $ , #).
  7087. """
  7088. return _mupdf.ll_fz_encode_uri_component(s)
  7089. def ll_fz_encode_uri_pathname(s):
  7090. r"""
  7091. Low-level wrapper for `::fz_encode_uri_pathname()`.
  7092. Return a new string representing the provided string encoded as an URI path name.
  7093. This also encodes the special reserved characters except /.
  7094. """
  7095. return _mupdf.ll_fz_encode_uri_pathname(s)
  7096. def ll_fz_end_group(dev):
  7097. r"""Low-level wrapper for `::fz_end_group()`."""
  7098. return _mupdf.ll_fz_end_group(dev)
  7099. def ll_fz_end_layer(dev):
  7100. r"""Low-level wrapper for `::fz_end_layer()`."""
  7101. return _mupdf.ll_fz_end_layer(dev)
  7102. def ll_fz_end_mask(dev):
  7103. r"""Low-level wrapper for `::fz_end_mask()`."""
  7104. return _mupdf.ll_fz_end_mask(dev)
  7105. def ll_fz_end_mask_tr(dev, fn):
  7106. r"""Low-level wrapper for `::fz_end_mask_tr()`."""
  7107. return _mupdf.ll_fz_end_mask_tr(dev, fn)
  7108. def ll_fz_end_metatext(dev):
  7109. r"""Low-level wrapper for `::fz_end_metatext()`."""
  7110. return _mupdf.ll_fz_end_metatext(dev)
  7111. def ll_fz_end_page(wri):
  7112. r"""
  7113. Low-level wrapper for `::fz_end_page()`.
  7114. Called to end the process of writing a page to a
  7115. document.
  7116. """
  7117. return _mupdf.ll_fz_end_page(wri)
  7118. def ll_fz_end_structure(dev):
  7119. r"""Low-level wrapper for `::fz_end_structure()`."""
  7120. return _mupdf.ll_fz_end_structure(dev)
  7121. def ll_fz_end_throw_on_repair():
  7122. r"""Low-level wrapper for `::fz_end_throw_on_repair()`."""
  7123. return _mupdf.ll_fz_end_throw_on_repair()
  7124. def ll_fz_end_tile(dev):
  7125. r"""Low-level wrapper for `::fz_end_tile()`."""
  7126. return _mupdf.ll_fz_end_tile(dev)
  7127. def ll_fz_enumerate_font_cmap(font, cb, opaque):
  7128. r"""
  7129. Low-level wrapper for `::fz_enumerate_font_cmap()`.
  7130. Enumerate a cmap using a callback.
  7131. """
  7132. return _mupdf.ll_fz_enumerate_font_cmap(font, cb, opaque)
  7133. def ll_fz_enumerate_font_cmap2(font):
  7134. r"""Low-level wrapper for `::fz_enumerate_font_cmap2()`. SWIG-friendly wrapper for fz_enumerate_font_cmap()."""
  7135. return _mupdf.ll_fz_enumerate_font_cmap2(font)
  7136. def ll_fz_error_callback(user):
  7137. r"""
  7138. Low-level wrapper for `::fz_error_callback()`.
  7139. This function has out-params. Python/C# wrappers look like:
  7140. `ll_fz_error_callback()` => `(fz_error_cb *, void *user)`
  7141. Retrieve the currently set error callback, or NULL if none
  7142. has been set. Optionally, if user is non-NULL, the user pointer
  7143. given when the warning callback was set is also passed back to
  7144. the caller.
  7145. """
  7146. return _mupdf.ll_fz_error_callback(user)
  7147. def ll_fz_eval_function(func, _in, inlen, out, outlen):
  7148. r"""
  7149. Low-level wrapper for `::fz_eval_function()`.
  7150. This function has out-params. Python/C# wrappers look like:
  7151. `ll_fz_eval_function(::fz_function *func, const float *in, int inlen, int outlen)` => float out
  7152. """
  7153. return _mupdf.ll_fz_eval_function(func, _in, inlen, out, outlen)
  7154. def ll_fz_expand_irect(a, expand):
  7155. r"""Low-level wrapper for `::fz_expand_irect()`."""
  7156. return _mupdf.ll_fz_expand_irect(a, expand)
  7157. def ll_fz_expand_rect(b, expand):
  7158. r"""
  7159. Low-level wrapper for `::fz_expand_rect()`.
  7160. Expand a bbox by a given amount in all directions.
  7161. """
  7162. return _mupdf.ll_fz_expand_rect(b, expand)
  7163. def ll_fz_extract_ttf_from_ttc(font):
  7164. r"""Low-level wrapper for `::fz_extract_ttf_from_ttc()`."""
  7165. return _mupdf.ll_fz_extract_ttf_from_ttc(font)
  7166. def ll_fz_file_exists(path):
  7167. r"""
  7168. Low-level wrapper for `::fz_file_exists()`.
  7169. Return true if the named file exists and is readable.
  7170. """
  7171. return _mupdf.ll_fz_file_exists(path)
  7172. def ll_fz_fill_image(dev, image, ctm, alpha, color_params):
  7173. r"""Low-level wrapper for `::fz_fill_image()`."""
  7174. return _mupdf.ll_fz_fill_image(dev, image, ctm, alpha, color_params)
  7175. def ll_fz_fill_image_mask(dev, image, ctm, colorspace, color, alpha, color_params):
  7176. r"""Low-level wrapper for `::fz_fill_image_mask()`."""
  7177. return _mupdf.ll_fz_fill_image_mask(dev, image, ctm, colorspace, color, alpha, color_params)
  7178. def ll_fz_fill_path(dev, path, even_odd, ctm, colorspace, color, alpha, color_params):
  7179. r"""
  7180. Low-level wrapper for `::fz_fill_path()`.
  7181. Device calls; graphics primitives and containers.
  7182. """
  7183. return _mupdf.ll_fz_fill_path(dev, path, even_odd, ctm, colorspace, color, alpha, color_params)
  7184. def ll_fz_fill_pixmap_from_display_list(list, ctm, pix):
  7185. r"""Low-level wrapper for `::fz_fill_pixmap_from_display_list()`."""
  7186. return _mupdf.ll_fz_fill_pixmap_from_display_list(list, ctm, pix)
  7187. def ll_fz_fill_pixmap_with_color(pix, colorspace, color, color_params):
  7188. r"""
  7189. Low-level wrapper for `::fz_fill_pixmap_with_color()`.
  7190. This function has out-params. Python/C# wrappers look like:
  7191. `ll_fz_fill_pixmap_with_color(::fz_pixmap *pix, ::fz_colorspace *colorspace, ::fz_color_params color_params)` => float color
  7192. Fill pixmap with solid color.
  7193. """
  7194. return _mupdf.ll_fz_fill_pixmap_with_color(pix, colorspace, color, color_params)
  7195. def ll_fz_fill_shade(dev, shade, ctm, alpha, color_params):
  7196. r"""Low-level wrapper for `::fz_fill_shade()`."""
  7197. return _mupdf.ll_fz_fill_shade(dev, shade, ctm, alpha, color_params)
  7198. def ll_fz_fill_text(dev, text, ctm, colorspace, color, alpha, color_params):
  7199. r"""Low-level wrapper for `::fz_fill_text()`."""
  7200. return _mupdf.ll_fz_fill_text(dev, text, ctm, colorspace, color, alpha, color_params)
  7201. def ll_fz_filter_store(fn, arg, type):
  7202. r"""
  7203. Low-level wrapper for `::fz_filter_store()`.
  7204. Filter every element in the store with a matching type with the
  7205. given function.
  7206. If the function returns 1 for an element, drop the element.
  7207. """
  7208. return _mupdf.ll_fz_filter_store(fn, arg, type)
  7209. def ll_fz_find_item(drop, key, type):
  7210. r"""
  7211. Low-level wrapper for `::fz_find_item()`.
  7212. Find an item within the store.
  7213. drop: The function used to free the value (to ensure we get a
  7214. value of the correct type).
  7215. key: The key used to index the item.
  7216. type: Functions used to manipulate the key.
  7217. Returns NULL for not found, otherwise returns a pointer to the
  7218. value indexed by key to which a reference has been taken.
  7219. """
  7220. return _mupdf.ll_fz_find_item(drop, key, type)
  7221. def ll_fz_find_table_within_bounds(page, bounds):
  7222. r"""
  7223. Low-level wrapper for `::fz_find_table_within_bounds()`.
  7224. Interpret the bounded contents of a given stext page as
  7225. a table.
  7226. The page contents will be rewritten to contain a Table
  7227. structure with the identified content in it.
  7228. This uses the same logic as for fz_table_hunt, without the
  7229. actual hunting. fz_table_hunt hunts to find possible bounds
  7230. for multiple tables on the page; this routine just finds a
  7231. single table contained within the given rectangle.
  7232. Returns the stext_block list that contains the content of
  7233. the table.
  7234. """
  7235. return _mupdf.ll_fz_find_table_within_bounds(page, bounds)
  7236. def ll_fz_flush_output(out):
  7237. r"""
  7238. Low-level wrapper for `::fz_flush_output()`.
  7239. Flush unwritten data.
  7240. """
  7241. return _mupdf.ll_fz_flush_output(out)
  7242. def ll_fz_flush_warnings():
  7243. r"""
  7244. Low-level wrapper for `::fz_flush_warnings()`.
  7245. Flush any repeated warnings.
  7246. Repeated warnings are buffered, counted and eventually printed
  7247. along with the number of repetitions. Call fz_flush_warnings
  7248. to force printing of the latest buffered warning and the
  7249. number of repetitions, for example to make sure that all
  7250. warnings are printed before exiting an application.
  7251. """
  7252. return _mupdf.ll_fz_flush_warnings()
  7253. def ll_fz_font_ascender(font):
  7254. r"""
  7255. Low-level wrapper for `::fz_font_ascender()`.
  7256. Retrieve font ascender in ems.
  7257. """
  7258. return _mupdf.ll_fz_font_ascender(font)
  7259. def ll_fz_font_bbox(font):
  7260. r"""
  7261. Low-level wrapper for `::fz_font_bbox()`.
  7262. Retrieve the font bbox.
  7263. font: The font to query.
  7264. Returns the font bbox by value; it is valid only if
  7265. fz_font_flags(font)->invalid_bbox is zero.
  7266. """
  7267. return _mupdf.ll_fz_font_bbox(font)
  7268. def ll_fz_font_descender(font):
  7269. r"""
  7270. Low-level wrapper for `::fz_font_descender()`.
  7271. Retrieve font descender in ems.
  7272. """
  7273. return _mupdf.ll_fz_font_descender(font)
  7274. def ll_fz_font_digest(font, digest):
  7275. r"""
  7276. Low-level wrapper for `::fz_font_digest()`.
  7277. Retrieve the MD5 digest for the font's data.
  7278. """
  7279. return _mupdf.ll_fz_font_digest(font, digest)
  7280. def ll_fz_font_flags(font):
  7281. r"""
  7282. Low-level wrapper for `::fz_font_flags()`.
  7283. Retrieve a pointer to the font flags
  7284. for a given font. These can then be updated as required.
  7285. font: The font to query
  7286. Returns a pointer to the flags structure (or NULL, if
  7287. the font is NULL).
  7288. """
  7289. return _mupdf.ll_fz_font_flags(font)
  7290. def ll_fz_font_ft_face(font):
  7291. r"""
  7292. Low-level wrapper for `::fz_font_ft_face()`.
  7293. Retrieve the FT_Face handle
  7294. for the font.
  7295. font: The font to query
  7296. Returns the FT_Face handle for the font, or NULL
  7297. if not a freetype handled font. (Cast to void *
  7298. to avoid nasty header exposure).
  7299. """
  7300. return _mupdf.ll_fz_font_ft_face(font)
  7301. def ll_fz_font_is_bold(font):
  7302. r"""
  7303. Low-level wrapper for `::fz_font_is_bold()`.
  7304. Query whether the font flags say that this font is bold.
  7305. """
  7306. return _mupdf.ll_fz_font_is_bold(font)
  7307. def ll_fz_font_is_italic(font):
  7308. r"""
  7309. Low-level wrapper for `::fz_font_is_italic()`.
  7310. Query whether the font flags say that this font is italic.
  7311. """
  7312. return _mupdf.ll_fz_font_is_italic(font)
  7313. def ll_fz_font_is_monospaced(font):
  7314. r"""
  7315. Low-level wrapper for `::fz_font_is_monospaced()`.
  7316. Query whether the font flags say that this font is monospaced.
  7317. """
  7318. return _mupdf.ll_fz_font_is_monospaced(font)
  7319. def ll_fz_font_is_serif(font):
  7320. r"""
  7321. Low-level wrapper for `::fz_font_is_serif()`.
  7322. Query whether the font flags say that this font is serif.
  7323. """
  7324. return _mupdf.ll_fz_font_is_serif(font)
  7325. def ll_fz_font_name(font):
  7326. r"""
  7327. Low-level wrapper for `::fz_font_name()`.
  7328. Retrieve a pointer to the name of the font.
  7329. font: The font to query.
  7330. Returns a pointer to an internal copy of the font name.
  7331. Will never be NULL, but may be the empty string.
  7332. """
  7333. return _mupdf.ll_fz_font_name(font)
  7334. def ll_fz_font_shaper_data(font):
  7335. r"""
  7336. Low-level wrapper for `::fz_font_shaper_data()`.
  7337. Retrieve a pointer to the shaper data
  7338. structure for the given font.
  7339. font: The font to query.
  7340. Returns a pointer to the shaper data structure (or NULL if
  7341. font is NULL).
  7342. """
  7343. return _mupdf.ll_fz_font_shaper_data(font)
  7344. def ll_fz_font_t3_procs(font):
  7345. r"""
  7346. Low-level wrapper for `::fz_font_t3_procs()`.
  7347. Retrieve the Type3 procs
  7348. for a font.
  7349. font: The font to query
  7350. Returns the t3_procs pointer. Will be NULL for a
  7351. non type-3 font.
  7352. """
  7353. return _mupdf.ll_fz_font_t3_procs(font)
  7354. def ll_fz_format_double(fmt, value):
  7355. r"""
  7356. Low-level wrapper for `::fz_format_double()`. Swig-friendly and typesafe way to do fz_snprintf(fmt, value). `fmt`
  7357. must end with one of 'efg' otherwise we throw an exception.
  7358. """
  7359. return _mupdf.ll_fz_format_double(fmt, value)
  7360. def ll_fz_format_link_uri(doc, dest):
  7361. r"""
  7362. Low-level wrapper for `::fz_format_link_uri()`.
  7363. Format an internal link to a page number, location, and possible viewing parameters,
  7364. suitable for use with fz_create_link.
  7365. Returns a newly allocated string that the caller must free.
  7366. """
  7367. return _mupdf.ll_fz_format_link_uri(doc, dest)
  7368. def ll_fz_format_output_path(path, size, fmt, page):
  7369. r"""
  7370. Low-level wrapper for `::fz_format_output_path()`.
  7371. create output file name using a template.
  7372. If the path contains %[0-9]*d, the first such pattern will be
  7373. replaced with the page number. If the template does not contain
  7374. such a pattern, the page number will be inserted before the
  7375. filename extension. If the template does not have a filename
  7376. extension, the page number will be added to the end.
  7377. """
  7378. return _mupdf.ll_fz_format_output_path(path, size, fmt, page)
  7379. def ll_fz_free(p):
  7380. r"""
  7381. Low-level wrapper for `::fz_free()`.
  7382. Free a previously allocated block of memory.
  7383. fz_free(ctx, NULL) does nothing.
  7384. Never throws exceptions.
  7385. """
  7386. return _mupdf.ll_fz_free(p)
  7387. def ll_fz_free_aligned(p):
  7388. r"""
  7389. Low-level wrapper for `::fz_free_aligned()`.
  7390. fz_free equivalent, for blocks allocated via fz_malloc_aligned.
  7391. """
  7392. return _mupdf.ll_fz_free_aligned(p)
  7393. def ll_fz_ft_lock():
  7394. r"""Low-level wrapper for `::fz_ft_lock()`."""
  7395. return _mupdf.ll_fz_ft_lock()
  7396. def ll_fz_ft_lock_held():
  7397. r"""Low-level wrapper for `::fz_ft_lock_held()`."""
  7398. return _mupdf.ll_fz_ft_lock_held()
  7399. def ll_fz_ft_unlock():
  7400. r"""Low-level wrapper for `::fz_ft_unlock()`."""
  7401. return _mupdf.ll_fz_ft_unlock()
  7402. def ll_fz_function_size(func):
  7403. r"""Low-level wrapper for `::fz_function_size()`."""
  7404. return _mupdf.ll_fz_function_size(func)
  7405. def ll_fz_gamma_pixmap(pix, gamma):
  7406. r"""
  7407. Low-level wrapper for `::fz_gamma_pixmap()`.
  7408. Apply gamma correction to a pixmap. All components
  7409. of all pixels are modified (except alpha, which is unchanged).
  7410. gamma: The gamma value to apply; 1.0 for no change.
  7411. """
  7412. return _mupdf.ll_fz_gamma_pixmap(pix, gamma)
  7413. def ll_fz_generate_transition(tpix, opix, npix, time, trans):
  7414. r"""
  7415. Low-level wrapper for `::fz_generate_transition()`.
  7416. Generate a frame of a transition.
  7417. tpix: Target pixmap
  7418. opix: Old pixmap
  7419. npix: New pixmap
  7420. time: Position within the transition (0 to 256)
  7421. trans: Transition details
  7422. Returns 1 if successfully generated a frame.
  7423. Note: Pixmaps must include alpha.
  7424. """
  7425. return _mupdf.ll_fz_generate_transition(tpix, opix, npix, time, trans)
  7426. def ll_fz_get_glyph_name(font, glyph, buf, size):
  7427. r"""
  7428. Low-level wrapper for `::fz_get_glyph_name()`.
  7429. Find the name of a glyph
  7430. font: The font to look for the glyph in.
  7431. glyph: The glyph id to look for.
  7432. buf: Pointer to a buffer for the name to be inserted into.
  7433. size: The size of the buffer.
  7434. If a font contains a name table, then the name of the glyph
  7435. will be returned in the supplied buffer. Otherwise a name
  7436. is synthesised. The name will be truncated to fit in
  7437. the buffer.
  7438. """
  7439. return _mupdf.ll_fz_get_glyph_name(font, glyph, buf, size)
  7440. def ll_fz_get_glyph_name2(font, glyph):
  7441. r"""
  7442. Low-level wrapper for `::fz_get_glyph_name2()`.
  7443. C++ alternative to fz_get_glyph_name() that returns information in a std::string.
  7444. """
  7445. return _mupdf.ll_fz_get_glyph_name2(font, glyph)
  7446. def ll_fz_get_pixmap_from_image(image, subarea, ctm, w, h):
  7447. r"""
  7448. Low-level wrapper for `::fz_get_pixmap_from_image()`.
  7449. This function has out-params. Python/C# wrappers look like:
  7450. `ll_fz_get_pixmap_from_image(::fz_image *image, const ::fz_irect *subarea, ::fz_matrix *ctm)` => `(fz_pixmap *, int w, int h)`
  7451. Called to get a handle to a pixmap from an image.
  7452. image: The image to retrieve a pixmap from.
  7453. subarea: The subarea of the image that we actually care about
  7454. (or NULL to indicate the whole image).
  7455. ctm: Optional, unless subarea is given. If given, then on
  7456. entry this is the transform that will be applied to the complete
  7457. image. It should be updated on exit to the transform to apply to
  7458. the given subarea of the image. This is used to calculate the
  7459. desired width/height for subsampling.
  7460. w: If non-NULL, a pointer to an int to be updated on exit to the
  7461. width (in pixels) that the scaled output will cover.
  7462. h: If non-NULL, a pointer to an int to be updated on exit to the
  7463. height (in pixels) that the scaled output will cover.
  7464. Returns a non NULL kept pixmap pointer. May throw exceptions.
  7465. """
  7466. return _mupdf.ll_fz_get_pixmap_from_image(image, subarea, ctm, w, h)
  7467. def ll_fz_get_unscaled_pixmap_from_image(image):
  7468. r"""
  7469. Low-level wrapper for `::fz_get_unscaled_pixmap_from_image()`.
  7470. Calls fz_get_pixmap_from_image() with ctm, subarea, w and h all set to NULL.
  7471. """
  7472. return _mupdf.ll_fz_get_unscaled_pixmap_from_image(image)
  7473. def ll_fz_getopt(nargc, nargv, ostr):
  7474. r"""
  7475. Low-level wrapper for `::fz_getopt()`.
  7476. This function has out-params. Python/C# wrappers look like:
  7477. `ll_fz_getopt(int nargc, const char *ostr)` => `(int, char *nargv)`
  7478. Identical to fz_getopt_long, but with a NULL longopts field, signifying no long
  7479. options.
  7480. """
  7481. return _mupdf.ll_fz_getopt(nargc, nargv, ostr)
  7482. def ll_fz_getopt_long(nargc, nargv, ostr, longopts):
  7483. r"""
  7484. Low-level wrapper for `::fz_getopt_long()`.
  7485. This function has out-params. Python/C# wrappers look like:
  7486. `ll_fz_getopt_long(int nargc, const char *ostr, const ::fz_getopt_long_options *longopts)` => `(int, char *nargv)`
  7487. Simple functions/variables for use in tools.
  7488. ostr = option string. Comprises single letter options, followed by : if there
  7489. is an argument to the option.
  7490. longopts: NULL (indicating no long options), or a pointer to an array of
  7491. longoptions, terminated by an entry with option == NULL.
  7492. In the event of matching a single char option, this function will normally
  7493. return the char. The exception to this is when the option requires an
  7494. argument and none is supplied; in this case we return ':'.
  7495. In the event of matching a long option, this function returns 0, with fz_optlong
  7496. set to point to the matching option.
  7497. A long option entry may be followed with : to indicate there is an argument to the
  7498. option. If the need for an argument is specified in this way, and no argument is
  7499. given, an error will be displayed and argument processing will stop. If an argument
  7500. is given, and the long option record contains a non-null flag pointer, then the code
  7501. will decode the argument and fill in that flag pointer. Specifically,
  7502. case-insensitive matches to 'yes', 'no', 'true' and 'false' will cause a value of 0
  7503. or 1 as appropriate to be written; failing this the arg will be interpreted as a
  7504. decimal integer using atoi.
  7505. A long option entry may be followed by an list of options (e.g. myoption=foo|bar|baz)
  7506. and the option will be passed to fz_opt_from_list. The return value of that will be
  7507. placed in fz_optitem. If the return value of that function is -1, then an error will
  7508. be displayed and argument processing will stop.
  7509. In the event of reaching the end of the arg list or '--', this function returns EOF.
  7510. In the event of failing to match anything, an error is printed, and we return '?'.
  7511. If an argument is expected for the option, then fz_optarg will be returned pointing
  7512. at the start of the argument. Examples of supported argument formats: '-r500', '-r 500',
  7513. '--resolution 500', '--resolution=500'.
  7514. """
  7515. return _mupdf.ll_fz_getopt_long(nargc, nargv, ostr, longopts)
  7516. def ll_fz_glyph_bbox(glyph):
  7517. r"""
  7518. Low-level wrapper for `::fz_glyph_bbox()`.
  7519. Return the bounding box of the glyph in pixels.
  7520. """
  7521. return _mupdf.ll_fz_glyph_bbox(glyph)
  7522. def ll_fz_glyph_bbox_no_ctx(src):
  7523. r"""Low-level wrapper for `::fz_glyph_bbox_no_ctx()`."""
  7524. return _mupdf.ll_fz_glyph_bbox_no_ctx(src)
  7525. def ll_fz_glyph_cacheable(font, gid):
  7526. r"""
  7527. Low-level wrapper for `::fz_glyph_cacheable()`.
  7528. Determine if a given glyph in a font
  7529. is cacheable. Certain glyphs in a type 3 font cannot safely
  7530. be cached, as their appearance depends on the enclosing
  7531. graphic state.
  7532. font: The font to look for the glyph in.
  7533. gif: The glyph to query.
  7534. Returns non-zero if cacheable, 0 if not.
  7535. """
  7536. return _mupdf.ll_fz_glyph_cacheable(font, gid)
  7537. def ll_fz_glyph_height(glyph):
  7538. r"""
  7539. Low-level wrapper for `::fz_glyph_height()`.
  7540. Return the height of the glyph in pixels.
  7541. """
  7542. return _mupdf.ll_fz_glyph_height(glyph)
  7543. def ll_fz_glyph_name_from_unicode_sc(unicode):
  7544. r"""Low-level wrapper for `::fz_glyph_name_from_unicode_sc()`."""
  7545. return _mupdf.ll_fz_glyph_name_from_unicode_sc(unicode)
  7546. def ll_fz_glyph_width(glyph):
  7547. r"""
  7548. Low-level wrapper for `::fz_glyph_width()`.
  7549. Return the width of the glyph in pixels.
  7550. """
  7551. return _mupdf.ll_fz_glyph_width(glyph)
  7552. def ll_fz_graphics_aa_level():
  7553. r"""
  7554. Low-level wrapper for `::fz_graphics_aa_level()`.
  7555. Get the number of bits of antialiasing we are
  7556. using for graphics. Between 0 and 8.
  7557. """
  7558. return _mupdf.ll_fz_graphics_aa_level()
  7559. def ll_fz_graphics_min_line_width():
  7560. r"""
  7561. Low-level wrapper for `::fz_graphics_min_line_width()`.
  7562. Get the minimum line width to be
  7563. used for stroked lines.
  7564. min_line_width: The minimum line width to use (in pixels).
  7565. """
  7566. return _mupdf.ll_fz_graphics_min_line_width()
  7567. def ll_fz_gridfit_matrix(as_tiled, m):
  7568. r"""
  7569. Low-level wrapper for `::fz_gridfit_matrix()`.
  7570. Grid fit a matrix.
  7571. as_tiled = 0 => adjust the matrix so that the image of the unit
  7572. square completely covers any pixel that was touched by the
  7573. image of the unit square under the original matrix.
  7574. as_tiled = 1 => adjust the matrix so that the corners of the
  7575. image of the unit square align with the closest integer corner
  7576. of the image of the unit square under the original matrix.
  7577. """
  7578. return _mupdf.ll_fz_gridfit_matrix(as_tiled, m)
  7579. def ll_fz_grisu(f, s, exp):
  7580. r"""
  7581. Low-level wrapper for `::fz_grisu()`.
  7582. This function has out-params. Python/C# wrappers look like:
  7583. `ll_fz_grisu(float f, char *s)` => `(int, int exp)`
  7584. """
  7585. return _mupdf.ll_fz_grisu(f, s, exp)
  7586. def ll_fz_grow_buffer(buf):
  7587. r"""
  7588. Low-level wrapper for `::fz_grow_buffer()`.
  7589. Make some space within a buffer (i.e. ensure that
  7590. capacity > size).
  7591. """
  7592. return _mupdf.ll_fz_grow_buffer(buf)
  7593. def ll_fz_has_archive_entry(arch, name):
  7594. r"""
  7595. Low-level wrapper for `::fz_has_archive_entry()`.
  7596. Check if entry by given name exists.
  7597. If named entry does not exist 0 will be returned, if it does
  7598. exist 1 is returned.
  7599. name: Entry name to look for, this must be an exact match to
  7600. the entry name in the archive.
  7601. """
  7602. return _mupdf.ll_fz_has_archive_entry(arch, name)
  7603. def ll_fz_has_option(opts, key, val):
  7604. r"""
  7605. Low-level wrapper for `::fz_has_option()`.
  7606. This function has out-params. Python/C# wrappers look like:
  7607. `ll_fz_has_option(const char *opts, const char *key)` => `(int, const char *val)`
  7608. Look for a given option (key) in the opts string. Return 1 if
  7609. it has it, and update *val to point to the value within opts.
  7610. """
  7611. return _mupdf.ll_fz_has_option(opts, key, val)
  7612. def ll_fz_has_permission(doc, p):
  7613. r"""
  7614. Low-level wrapper for `::fz_has_permission()`.
  7615. Check permission flags on document.
  7616. """
  7617. return _mupdf.ll_fz_has_permission(doc, p)
  7618. def ll_fz_hash_filter(table, state, callback):
  7619. r"""
  7620. Low-level wrapper for `::fz_hash_filter()`.
  7621. Iterate over the entries in a hash table, removing all the ones where callback returns true.
  7622. Does NOT free the value of the entry, so the caller is expected to take care of this.
  7623. """
  7624. return _mupdf.ll_fz_hash_filter(table, state, callback)
  7625. def ll_fz_hash_find(table, key):
  7626. r"""
  7627. Low-level wrapper for `::fz_hash_find()`.
  7628. Search for a matching hash within the table, and return the
  7629. associated value.
  7630. """
  7631. return _mupdf.ll_fz_hash_find(table, key)
  7632. def ll_fz_hash_for_each(table, state, callback):
  7633. r"""
  7634. Low-level wrapper for `::fz_hash_for_each()`.
  7635. Iterate over the entries in a hash table.
  7636. """
  7637. return _mupdf.ll_fz_hash_for_each(table, state, callback)
  7638. def ll_fz_hash_insert(table, key, val):
  7639. r"""
  7640. Low-level wrapper for `::fz_hash_insert()`.
  7641. Insert a new key/value pair into the hash table.
  7642. If an existing entry with the same key is found, no change is
  7643. made to the hash table, and a pointer to the existing value is
  7644. returned.
  7645. If no existing entry with the same key is found, ownership of
  7646. val passes in, key is copied, and NULL is returned.
  7647. """
  7648. return _mupdf.ll_fz_hash_insert(table, key, val)
  7649. def ll_fz_hash_remove(table, key):
  7650. r"""
  7651. Low-level wrapper for `::fz_hash_remove()`.
  7652. Remove the entry for a given key.
  7653. The value is NOT freed, so the caller is expected to take care
  7654. of this.
  7655. """
  7656. return _mupdf.ll_fz_hash_remove(table, key)
  7657. def ll_fz_hb_lock():
  7658. r"""
  7659. Low-level wrapper for `::fz_hb_lock()`.
  7660. Lock against Harfbuzz being called
  7661. simultaneously in several threads. This reuses
  7662. FZ_LOCK_FREETYPE.
  7663. """
  7664. return _mupdf.ll_fz_hb_lock()
  7665. def ll_fz_hb_unlock():
  7666. r"""
  7667. Low-level wrapper for `::fz_hb_unlock()`.
  7668. Unlock after a Harfbuzz call. This reuses
  7669. FZ_LOCK_FREETYPE.
  7670. """
  7671. return _mupdf.ll_fz_hb_unlock()
  7672. def ll_fz_highlight_selection(page, a, b, quads, max_quads):
  7673. r"""
  7674. Low-level wrapper for `::fz_highlight_selection()`.
  7675. Return a list of quads to highlight lines inside the selection
  7676. points.
  7677. """
  7678. return _mupdf.ll_fz_highlight_selection(page, a, b, quads, max_quads)
  7679. def ll_fz_highlight_selection2(page, a, b, max_quads):
  7680. r"""
  7681. Low-level wrapper for `::fz_highlight_selection2()`.
  7682. C++ alternative to fz_highlight_selection() that returns quads in a
  7683. std::vector.
  7684. """
  7685. return _mupdf.ll_fz_highlight_selection2(page, a, b, max_quads)
  7686. def ll_fz_ignore_error():
  7687. r"""Low-level wrapper for `::fz_ignore_error()`."""
  7688. return _mupdf.ll_fz_ignore_error()
  7689. def ll_fz_ignore_text(dev, text, ctm):
  7690. r"""Low-level wrapper for `::fz_ignore_text()`."""
  7691. return _mupdf.ll_fz_ignore_text(dev, text, ctm)
  7692. def ll_fz_image_orientation(image):
  7693. r"""
  7694. Low-level wrapper for `::fz_image_orientation()`.
  7695. Request the natural orientation of an image.
  7696. This is for images (such as JPEG) that can contain internal
  7697. specifications of rotation/flips. This is ignored by all the
  7698. internal decode/rendering routines, but can be used by callers
  7699. (such as the image document handler) to respect such
  7700. specifications.
  7701. The values used by MuPDF are as follows, with the equivalent
  7702. Exif specifications given for information:
  7703. 0: Undefined
  7704. 1: 0 degree ccw rotation. (Exif = 1)
  7705. 2: 90 degree ccw rotation. (Exif = 8)
  7706. 3: 180 degree ccw rotation. (Exif = 3)
  7707. 4: 270 degree ccw rotation. (Exif = 6)
  7708. 5: flip on X. (Exif = 2)
  7709. 6: flip on X, then rotate ccw by 90 degrees. (Exif = 5)
  7710. 7: flip on X, then rotate ccw by 180 degrees. (Exif = 4)
  7711. 8: flip on X, then rotate ccw by 270 degrees. (Exif = 7)
  7712. """
  7713. return _mupdf.ll_fz_image_orientation(image)
  7714. def ll_fz_image_orientation_matrix(image):
  7715. r"""Low-level wrapper for `::fz_image_orientation_matrix()`."""
  7716. return _mupdf.ll_fz_image_orientation_matrix(image)
  7717. def ll_fz_image_resolution(image, xres, yres):
  7718. r"""
  7719. Low-level wrapper for `::fz_image_resolution()`.
  7720. This function has out-params. Python/C# wrappers look like:
  7721. `ll_fz_image_resolution(::fz_image *image)` => `(int xres, int yres)`
  7722. Request the natural resolution
  7723. of an image.
  7724. xres, yres: Pointers to ints to be updated with the
  7725. natural resolution of an image (or a sensible default
  7726. if not encoded).
  7727. """
  7728. return _mupdf.ll_fz_image_resolution(image, xres, yres)
  7729. def ll_fz_image_size(im):
  7730. r"""
  7731. Low-level wrapper for `::fz_image_size()`.
  7732. Return the size of the storage used by an image.
  7733. """
  7734. return _mupdf.ll_fz_image_size(im)
  7735. def ll_fz_image_type_name(type):
  7736. r"""
  7737. Low-level wrapper for `::fz_image_type_name()`.
  7738. Map from FZ_IMAGE_* value to string.
  7739. The returned string is static and therefore must not be freed.
  7740. """
  7741. return _mupdf.ll_fz_image_type_name(type)
  7742. def ll_fz_include_point_in_rect(r, p):
  7743. r"""
  7744. Low-level wrapper for `::fz_include_point_in_rect()`.
  7745. Expand a bbox to include a given point.
  7746. To create a rectangle that encompasses a sequence of points, the
  7747. rectangle must first be set to be the empty rectangle at one of
  7748. the points before including the others.
  7749. """
  7750. return _mupdf.ll_fz_include_point_in_rect(r, p)
  7751. def ll_fz_init_text_decoder(dec, encoding):
  7752. r"""Low-level wrapper for `::fz_init_text_decoder()`."""
  7753. return _mupdf.ll_fz_init_text_decoder(dec, encoding)
  7754. def ll_fz_install_load_system_font_funcs(f, f_cjk, f_fallback):
  7755. r"""
  7756. Low-level wrapper for `::fz_install_load_system_font_funcs()`.
  7757. Install functions to allow MuPDF to request fonts from the
  7758. system.
  7759. Only one set of hooks can be in use at a time.
  7760. """
  7761. return _mupdf.ll_fz_install_load_system_font_funcs(f, f_cjk, f_fallback)
  7762. def ll_fz_install_load_system_font_funcs2(args):
  7763. r"""
  7764. Low-level wrapper for `::fz_install_load_system_font_funcs2()`.
  7765. Alternative to fz_install_load_system_font_funcs() that takes args in a
  7766. struct, to allow use from Python/C# via Swig Directors.
  7767. """
  7768. return _mupdf.ll_fz_install_load_system_font_funcs2(args)
  7769. def ll_fz_int2_heap_debug(heap):
  7770. r"""Low-level wrapper for `::fz_int2_heap_debug()`."""
  7771. return _mupdf.ll_fz_int2_heap_debug(heap)
  7772. def ll_fz_int2_heap_dump(out, heap):
  7773. r"""Low-level wrapper for `::fz_int2_heap_dump()`."""
  7774. return _mupdf.ll_fz_int2_heap_dump(out, heap)
  7775. def ll_fz_int2_heap_insert(heap, v):
  7776. r"""Low-level wrapper for `::fz_int2_heap_insert()`."""
  7777. return _mupdf.ll_fz_int2_heap_insert(heap, v)
  7778. def ll_fz_int2_heap_sort(heap):
  7779. r"""Low-level wrapper for `::fz_int2_heap_sort()`."""
  7780. return _mupdf.ll_fz_int2_heap_sort(heap)
  7781. def ll_fz_int2_heap_uniq(heap):
  7782. r"""Low-level wrapper for `::fz_int2_heap_uniq()`."""
  7783. return _mupdf.ll_fz_int2_heap_uniq(heap)
  7784. def ll_fz_int_heap_debug(heap):
  7785. r"""Low-level wrapper for `::fz_int_heap_debug()`."""
  7786. return _mupdf.ll_fz_int_heap_debug(heap)
  7787. def ll_fz_int_heap_dump(out, heap):
  7788. r"""Low-level wrapper for `::fz_int_heap_dump()`."""
  7789. return _mupdf.ll_fz_int_heap_dump(out, heap)
  7790. def ll_fz_int_heap_insert(heap, v):
  7791. r"""Low-level wrapper for `::fz_int_heap_insert()`."""
  7792. return _mupdf.ll_fz_int_heap_insert(heap, v)
  7793. def ll_fz_int_heap_sort(heap):
  7794. r"""Low-level wrapper for `::fz_int_heap_sort()`."""
  7795. return _mupdf.ll_fz_int_heap_sort(heap)
  7796. def ll_fz_int_heap_uniq(heap):
  7797. r"""Low-level wrapper for `::fz_int_heap_uniq()`."""
  7798. return _mupdf.ll_fz_int_heap_uniq(heap)
  7799. def ll_fz_intersect_irect(a, b):
  7800. r"""
  7801. Low-level wrapper for `::fz_intersect_irect()`.
  7802. Compute intersection of two bounding boxes.
  7803. Similar to fz_intersect_rect but operates on two bounding
  7804. boxes instead of two rectangles.
  7805. """
  7806. return _mupdf.ll_fz_intersect_irect(a, b)
  7807. def ll_fz_intersect_rect(a, b):
  7808. r"""
  7809. Low-level wrapper for `::fz_intersect_rect()`.
  7810. Compute intersection of two rectangles.
  7811. Given two rectangles, update the first to be the smallest
  7812. axis-aligned rectangle that covers the area covered by both
  7813. given rectangles. If either rectangle is empty then the
  7814. intersection is also empty. If either rectangle is infinite
  7815. then the intersection is simply the non-infinite rectangle.
  7816. Should both rectangles be infinite, then the intersection is
  7817. also infinite.
  7818. """
  7819. return _mupdf.ll_fz_intersect_rect(a, b)
  7820. def ll_fz_intptr_heap_debug(heap):
  7821. r"""Low-level wrapper for `::fz_intptr_heap_debug()`."""
  7822. return _mupdf.ll_fz_intptr_heap_debug(heap)
  7823. def ll_fz_intptr_heap_dump(out, heap):
  7824. r"""Low-level wrapper for `::fz_intptr_heap_dump()`."""
  7825. return _mupdf.ll_fz_intptr_heap_dump(out, heap)
  7826. def ll_fz_intptr_heap_insert(heap, v):
  7827. r"""Low-level wrapper for `::fz_intptr_heap_insert()`."""
  7828. return _mupdf.ll_fz_intptr_heap_insert(heap, v)
  7829. def ll_fz_intptr_heap_sort(heap):
  7830. r"""Low-level wrapper for `::fz_intptr_heap_sort()`."""
  7831. return _mupdf.ll_fz_intptr_heap_sort(heap)
  7832. def ll_fz_intptr_heap_uniq(heap):
  7833. r"""Low-level wrapper for `::fz_intptr_heap_uniq()`."""
  7834. return _mupdf.ll_fz_intptr_heap_uniq(heap)
  7835. def ll_fz_invert_bitmap(bmp):
  7836. r"""
  7837. Low-level wrapper for `::fz_invert_bitmap()`.
  7838. Invert bitmap.
  7839. Never throws exceptions.
  7840. """
  7841. return _mupdf.ll_fz_invert_bitmap(bmp)
  7842. def ll_fz_invert_matrix(matrix):
  7843. r"""
  7844. Low-level wrapper for `::fz_invert_matrix()`.
  7845. Create an inverse matrix.
  7846. matrix: Matrix to invert. A degenerate matrix, where the
  7847. determinant is equal to zero, can not be inverted and the
  7848. original matrix is returned instead.
  7849. Returns inverse.
  7850. """
  7851. return _mupdf.ll_fz_invert_matrix(matrix)
  7852. def ll_fz_invert_pixmap(pix):
  7853. r"""
  7854. Low-level wrapper for `::fz_invert_pixmap()`.
  7855. Invert all the pixels in a pixmap. All components (process and
  7856. spots) of all pixels are inverted (except alpha, which is
  7857. unchanged).
  7858. """
  7859. return _mupdf.ll_fz_invert_pixmap(pix)
  7860. def ll_fz_invert_pixmap_alpha(pix):
  7861. r"""
  7862. Low-level wrapper for `::fz_invert_pixmap_alpha()`.
  7863. Invert the alpha of all the pixels in a pixmap.
  7864. """
  7865. return _mupdf.ll_fz_invert_pixmap_alpha(pix)
  7866. def ll_fz_invert_pixmap_luminance(pix):
  7867. r"""
  7868. Low-level wrapper for `::fz_invert_pixmap_luminance()`.
  7869. Transform the pixels in a pixmap so that luminance of each
  7870. pixel is inverted, and the chrominance remains unchanged (as
  7871. much as accuracy allows).
  7872. All components of all pixels are inverted (except alpha, which
  7873. is unchanged). Only supports Grey and RGB bitmaps.
  7874. """
  7875. return _mupdf.ll_fz_invert_pixmap_luminance(pix)
  7876. def ll_fz_invert_pixmap_raw(pix):
  7877. r"""
  7878. Low-level wrapper for `::fz_invert_pixmap_raw()`.
  7879. Invert all the pixels in a non-premultiplied pixmap in a
  7880. very naive manner.
  7881. """
  7882. return _mupdf.ll_fz_invert_pixmap_raw(pix)
  7883. def ll_fz_invert_pixmap_rect(image, rect):
  7884. r"""
  7885. Low-level wrapper for `::fz_invert_pixmap_rect()`.
  7886. Invert all the pixels in a given rectangle of a (premultiplied)
  7887. pixmap. All components of all pixels in the rectangle are
  7888. inverted (except alpha, which is unchanged).
  7889. """
  7890. return _mupdf.ll_fz_invert_pixmap_rect(image, rect)
  7891. def ll_fz_irect_from_rect(rect):
  7892. r"""
  7893. Low-level wrapper for `::fz_irect_from_rect()`.
  7894. Convert a rect into the minimal bounding box
  7895. that covers the rectangle.
  7896. Coordinates in a bounding box are integers, so rounding of the
  7897. rects coordinates takes place. The top left corner is rounded
  7898. upwards and left while the bottom right corner is rounded
  7899. downwards and to the right.
  7900. """
  7901. return _mupdf.ll_fz_irect_from_rect(rect)
  7902. def ll_fz_irect_height(r):
  7903. r"""
  7904. Low-level wrapper for `::fz_irect_height()`.
  7905. Return the height of an irect. Invalid irects return 0.
  7906. """
  7907. return _mupdf.ll_fz_irect_height(r)
  7908. def ll_fz_irect_width(r):
  7909. r"""
  7910. Low-level wrapper for `::fz_irect_width()`.
  7911. Return the width of an irect. Invalid irects return 0.
  7912. """
  7913. return _mupdf.ll_fz_irect_width(r)
  7914. def ll_fz_is_cfb_archive(file):
  7915. r"""
  7916. Low-level wrapper for `::fz_is_cfb_archive()`.
  7917. Detect if stream object is a cfb archive.
  7918. Assumes that the stream object is seekable.
  7919. """
  7920. return _mupdf.ll_fz_is_cfb_archive(file)
  7921. def ll_fz_is_directory(path):
  7922. r"""
  7923. Low-level wrapper for `::fz_is_directory()`.
  7924. Determine if a given path is a directory.
  7925. In the case of the path not existing, or having no access
  7926. we will return 0.
  7927. """
  7928. return _mupdf.ll_fz_is_directory(path)
  7929. def ll_fz_is_document_reflowable(doc):
  7930. r"""
  7931. Low-level wrapper for `::fz_is_document_reflowable()`.
  7932. Is the document reflowable.
  7933. Returns 1 to indicate reflowable documents, otherwise 0.
  7934. """
  7935. return _mupdf.ll_fz_is_document_reflowable(doc)
  7936. def ll_fz_is_empty_irect(r):
  7937. r"""Low-level wrapper for `::fz_is_empty_irect()`."""
  7938. return _mupdf.ll_fz_is_empty_irect(r)
  7939. def ll_fz_is_empty_quad(q):
  7940. r"""
  7941. Low-level wrapper for `::fz_is_empty_quad()`.
  7942. Is a quad empty?
  7943. """
  7944. return _mupdf.ll_fz_is_empty_quad(q)
  7945. def ll_fz_is_empty_rect(r):
  7946. r"""
  7947. Low-level wrapper for `::fz_is_empty_rect()`.
  7948. Check if rectangle is empty.
  7949. An empty rectangle is defined as one whose area is zero.
  7950. All invalid rectangles are empty.
  7951. """
  7952. return _mupdf.ll_fz_is_empty_rect(r)
  7953. def ll_fz_is_eof(stm):
  7954. r"""
  7955. Low-level wrapper for `::fz_is_eof()`.
  7956. Query if the stream has reached EOF (during normal bytewise
  7957. reading).
  7958. See fz_is_eof_bits for the equivalent function for bitwise
  7959. reading.
  7960. """
  7961. return _mupdf.ll_fz_is_eof(stm)
  7962. def ll_fz_is_eof_bits(stm):
  7963. r"""
  7964. Low-level wrapper for `::fz_is_eof_bits()`.
  7965. Query if the stream has reached EOF (during bitwise
  7966. reading).
  7967. See fz_is_eof for the equivalent function for bytewise
  7968. reading.
  7969. """
  7970. return _mupdf.ll_fz_is_eof_bits(stm)
  7971. def ll_fz_is_external_link(uri):
  7972. r"""
  7973. Low-level wrapper for `::fz_is_external_link()`.
  7974. Query whether a link is external to a document (determined by
  7975. uri containing a ':', intended to match with '://' which
  7976. separates the scheme from the scheme specific parts in URIs).
  7977. """
  7978. return _mupdf.ll_fz_is_external_link(uri)
  7979. def ll_fz_is_identity(m):
  7980. r"""Low-level wrapper for `::fz_is_identity()`."""
  7981. return _mupdf.ll_fz_is_identity(m)
  7982. def ll_fz_is_infinite_irect(r):
  7983. r"""
  7984. Low-level wrapper for `::fz_is_infinite_irect()`.
  7985. Check if an integer rectangle
  7986. is infinite.
  7987. """
  7988. return _mupdf.ll_fz_is_infinite_irect(r)
  7989. def ll_fz_is_infinite_quad(q):
  7990. r"""
  7991. Low-level wrapper for `::fz_is_infinite_quad()`.
  7992. Is a quad infinite?
  7993. """
  7994. return _mupdf.ll_fz_is_infinite_quad(q)
  7995. def ll_fz_is_infinite_rect(r):
  7996. r"""
  7997. Low-level wrapper for `::fz_is_infinite_rect()`.
  7998. Check if rectangle is infinite.
  7999. """
  8000. return _mupdf.ll_fz_is_infinite_rect(r)
  8001. def ll_fz_is_irect_inside_irect(inner, outer):
  8002. r"""
  8003. Low-level wrapper for `::fz_is_irect_inside_irect()`.
  8004. Inclusion test for irects.
  8005. rects are assumed to be both open or both closed.
  8006. No invalid rect can include any other rect.
  8007. No invalid rect can be included by any rect.
  8008. Empty (point) rects can include themselves.
  8009. Empty (line) rects can include many (subline) rects.
  8010. """
  8011. return _mupdf.ll_fz_is_irect_inside_irect(inner, outer)
  8012. def ll_fz_is_libarchive_archive(file):
  8013. r"""
  8014. Low-level wrapper for `::fz_is_libarchive_archive()`.
  8015. Detect if stream object is an archive supported by libarchive.
  8016. Assumes that the stream object is seekable.
  8017. """
  8018. return _mupdf.ll_fz_is_libarchive_archive(file)
  8019. def ll_fz_is_lossy_image(image):
  8020. r"""Low-level wrapper for `::fz_is_lossy_image()`."""
  8021. return _mupdf.ll_fz_is_lossy_image(image)
  8022. def ll_fz_is_page_range(s):
  8023. r"""
  8024. Low-level wrapper for `::fz_is_page_range()`.
  8025. Check and parse string into page ranges:
  8026. ,?(-?+|N)(-(-?+|N))?/
  8027. """
  8028. return _mupdf.ll_fz_is_page_range(s)
  8029. def ll_fz_is_pixmap_monochrome(pixmap):
  8030. r"""
  8031. Low-level wrapper for `::fz_is_pixmap_monochrome()`.
  8032. Check if the pixmap is a 1-channel image containing samples with
  8033. only values 0 and 255
  8034. """
  8035. return _mupdf.ll_fz_is_pixmap_monochrome(pixmap)
  8036. def ll_fz_is_point_inside_irect(x, y, r):
  8037. r"""
  8038. Low-level wrapper for `::fz_is_point_inside_irect()`.
  8039. Inclusion test for irects. (Rect is assumed to be open, i.e.
  8040. top right corner is not included).
  8041. """
  8042. return _mupdf.ll_fz_is_point_inside_irect(x, y, r)
  8043. def ll_fz_is_point_inside_quad(p, q):
  8044. r"""
  8045. Low-level wrapper for `::fz_is_point_inside_quad()`.
  8046. Inclusion test for quads.
  8047. """
  8048. return _mupdf.ll_fz_is_point_inside_quad(p, q)
  8049. def ll_fz_is_point_inside_rect(p, r):
  8050. r"""
  8051. Low-level wrapper for `::fz_is_point_inside_rect()`.
  8052. Inclusion test for rects. (Rect is assumed to be open, i.e.
  8053. top right corner is not included).
  8054. """
  8055. return _mupdf.ll_fz_is_point_inside_rect(p, r)
  8056. def ll_fz_is_pow2(a):
  8057. r"""Low-level wrapper for `::fz_is_pow2()`."""
  8058. return _mupdf.ll_fz_is_pow2(a)
  8059. def ll_fz_is_quad_inside_quad(needle, haystack):
  8060. r"""
  8061. Low-level wrapper for `::fz_is_quad_inside_quad()`.
  8062. Inclusion test for quad in quad.
  8063. This may break down if quads are not 'well formed'.
  8064. """
  8065. return _mupdf.ll_fz_is_quad_inside_quad(needle, haystack)
  8066. def ll_fz_is_quad_intersecting_quad(a, b):
  8067. r"""
  8068. Low-level wrapper for `::fz_is_quad_intersecting_quad()`.
  8069. Intersection test for quads.
  8070. This may break down if quads are not 'well formed'.
  8071. """
  8072. return _mupdf.ll_fz_is_quad_intersecting_quad(a, b)
  8073. def ll_fz_is_rect_inside_rect(inner, outer):
  8074. r"""
  8075. Low-level wrapper for `::fz_is_rect_inside_rect()`.
  8076. Inclusion test for rects.
  8077. rects are assumed to be both open or both closed.
  8078. No invalid rect can include any other rect.
  8079. No invalid rect can be included by any rect.
  8080. Empty (point) rects can include themselves.
  8081. Empty (line) rects can include many (subline) rects.
  8082. """
  8083. return _mupdf.ll_fz_is_rect_inside_rect(inner, outer)
  8084. def ll_fz_is_rectilinear(m):
  8085. r"""
  8086. Low-level wrapper for `::fz_is_rectilinear()`.
  8087. Check if a transformation is rectilinear.
  8088. Rectilinear means that no shearing is present and that any
  8089. rotations present are a multiple of 90 degrees. Usually this
  8090. is used to make sure that axis-aligned rectangles before the
  8091. transformation are still axis-aligned rectangles afterwards.
  8092. """
  8093. return _mupdf.ll_fz_is_rectilinear(m)
  8094. def ll_fz_is_tar_archive(file):
  8095. r"""
  8096. Low-level wrapper for `::fz_is_tar_archive()`.
  8097. Detect if stream object is a tar archive.
  8098. Assumes that the stream object is seekable.
  8099. """
  8100. return _mupdf.ll_fz_is_tar_archive(file)
  8101. def ll_fz_is_valid_blend_colorspace(cs):
  8102. r"""
  8103. Low-level wrapper for `::fz_is_valid_blend_colorspace()`.
  8104. Check to see that a colorspace is appropriate to be used as
  8105. a blending space (i.e. only grey, rgb or cmyk).
  8106. """
  8107. return _mupdf.ll_fz_is_valid_blend_colorspace(cs)
  8108. def ll_fz_is_valid_irect(r):
  8109. r"""
  8110. Low-level wrapper for `::fz_is_valid_irect()`.
  8111. Check if an integer rectangle is valid.
  8112. """
  8113. return _mupdf.ll_fz_is_valid_irect(r)
  8114. def ll_fz_is_valid_quad(q):
  8115. r"""
  8116. Low-level wrapper for `::fz_is_valid_quad()`.
  8117. Is a quad valid?
  8118. """
  8119. return _mupdf.ll_fz_is_valid_quad(q)
  8120. def ll_fz_is_valid_rect(r):
  8121. r"""
  8122. Low-level wrapper for `::fz_is_valid_rect()`.
  8123. Check if rectangle is valid.
  8124. """
  8125. return _mupdf.ll_fz_is_valid_rect(r)
  8126. def ll_fz_is_valid_xml_char(c):
  8127. r"""Low-level wrapper for `::fz_is_valid_xml_char()`."""
  8128. return _mupdf.ll_fz_is_valid_xml_char(c)
  8129. def ll_fz_is_valid_xml_string(s):
  8130. r"""Low-level wrapper for `::fz_is_valid_xml_string()`."""
  8131. return _mupdf.ll_fz_is_valid_xml_string(s)
  8132. def ll_fz_is_zip_archive(file):
  8133. r"""
  8134. Low-level wrapper for `::fz_is_zip_archive()`.
  8135. Detect if stream object is a zip archive.
  8136. Assumes that the stream object is seekable.
  8137. """
  8138. return _mupdf.ll_fz_is_zip_archive(file)
  8139. def ll_fz_iso8859_1_from_unicode(u):
  8140. r"""Low-level wrapper for `::fz_iso8859_1_from_unicode()`."""
  8141. return _mupdf.ll_fz_iso8859_1_from_unicode(u)
  8142. def ll_fz_iso8859_7_from_unicode(u):
  8143. r"""Low-level wrapper for `::fz_iso8859_7_from_unicode()`."""
  8144. return _mupdf.ll_fz_iso8859_7_from_unicode(u)
  8145. def ll_fz_jbig2_globals_data(globals):
  8146. r"""
  8147. Low-level wrapper for `::fz_jbig2_globals_data()`.
  8148. Return buffer containing jbig2 globals data stream.
  8149. """
  8150. return _mupdf.ll_fz_jbig2_globals_data(globals)
  8151. def ll_fz_json_array_get(array, ix):
  8152. r"""Low-level wrapper for `::fz_json_array_get()`."""
  8153. return _mupdf.ll_fz_json_array_get(array, ix)
  8154. def ll_fz_json_array_length(array):
  8155. r"""Low-level wrapper for `::fz_json_array_length()`."""
  8156. return _mupdf.ll_fz_json_array_length(array)
  8157. def ll_fz_json_array_push(pool, array, item):
  8158. r"""Low-level wrapper for `::fz_json_array_push()`."""
  8159. return _mupdf.ll_fz_json_array_push(pool, array, item)
  8160. def ll_fz_json_is_array(json):
  8161. r"""Low-level wrapper for `::fz_json_is_array()`."""
  8162. return _mupdf.ll_fz_json_is_array(json)
  8163. def ll_fz_json_is_boolean(json):
  8164. r"""Low-level wrapper for `::fz_json_is_boolean()`."""
  8165. return _mupdf.ll_fz_json_is_boolean(json)
  8166. def ll_fz_json_is_null(json):
  8167. r"""Low-level wrapper for `::fz_json_is_null()`."""
  8168. return _mupdf.ll_fz_json_is_null(json)
  8169. def ll_fz_json_is_number(json):
  8170. r"""Low-level wrapper for `::fz_json_is_number()`."""
  8171. return _mupdf.ll_fz_json_is_number(json)
  8172. def ll_fz_json_is_object(json):
  8173. r"""Low-level wrapper for `::fz_json_is_object()`."""
  8174. return _mupdf.ll_fz_json_is_object(json)
  8175. def ll_fz_json_is_string(json):
  8176. r"""Low-level wrapper for `::fz_json_is_string()`."""
  8177. return _mupdf.ll_fz_json_is_string(json)
  8178. def ll_fz_json_new_array(pool):
  8179. r"""Low-level wrapper for `::fz_json_new_array()`."""
  8180. return _mupdf.ll_fz_json_new_array(pool)
  8181. def ll_fz_json_new_boolean(pool, x):
  8182. r"""Low-level wrapper for `::fz_json_new_boolean()`."""
  8183. return _mupdf.ll_fz_json_new_boolean(pool, x)
  8184. def ll_fz_json_new_null(pool):
  8185. r"""Low-level wrapper for `::fz_json_new_null()`."""
  8186. return _mupdf.ll_fz_json_new_null(pool)
  8187. def ll_fz_json_new_number(pool, number):
  8188. r"""Low-level wrapper for `::fz_json_new_number()`."""
  8189. return _mupdf.ll_fz_json_new_number(pool, number)
  8190. def ll_fz_json_new_object(pool):
  8191. r"""Low-level wrapper for `::fz_json_new_object()`."""
  8192. return _mupdf.ll_fz_json_new_object(pool)
  8193. def ll_fz_json_new_string(pool, string):
  8194. r"""Low-level wrapper for `::fz_json_new_string()`."""
  8195. return _mupdf.ll_fz_json_new_string(pool, string)
  8196. def ll_fz_json_object_get(object, key):
  8197. r"""Low-level wrapper for `::fz_json_object_get()`."""
  8198. return _mupdf.ll_fz_json_object_get(object, key)
  8199. def ll_fz_json_object_set(pool, object, key, item):
  8200. r"""Low-level wrapper for `::fz_json_object_set()`."""
  8201. return _mupdf.ll_fz_json_object_set(pool, object, key, item)
  8202. def ll_fz_json_to_boolean(json):
  8203. r"""Low-level wrapper for `::fz_json_to_boolean()`."""
  8204. return _mupdf.ll_fz_json_to_boolean(json)
  8205. def ll_fz_json_to_number(json):
  8206. r"""Low-level wrapper for `::fz_json_to_number()`."""
  8207. return _mupdf.ll_fz_json_to_number(json)
  8208. def ll_fz_json_to_string(json):
  8209. r"""Low-level wrapper for `::fz_json_to_string()`."""
  8210. return _mupdf.ll_fz_json_to_string(json)
  8211. def ll_fz_keep_archive(arch):
  8212. r"""
  8213. Low-level wrapper for `::fz_keep_archive()`.
  8214. Keep a reference to an archive.
  8215. """
  8216. return _mupdf.ll_fz_keep_archive(arch)
  8217. def ll_fz_keep_bitmap(bit):
  8218. r"""
  8219. Low-level wrapper for `::fz_keep_bitmap()`.
  8220. Take an additional reference to the bitmap. The same pointer
  8221. is returned.
  8222. Never throws exceptions.
  8223. """
  8224. return _mupdf.ll_fz_keep_bitmap(bit)
  8225. def ll_fz_keep_buffer(buf):
  8226. r"""
  8227. Low-level wrapper for `::fz_keep_buffer()`.
  8228. Take an additional reference to the buffer. The same pointer
  8229. is returned.
  8230. Never throws exceptions.
  8231. """
  8232. return _mupdf.ll_fz_keep_buffer(buf)
  8233. def ll_fz_keep_colorspace(colorspace):
  8234. r"""
  8235. Low-level wrapper for `::fz_keep_colorspace()`.
  8236. Increment the reference count for the colorspace.
  8237. Returns the same pointer. Never throws an exception.
  8238. """
  8239. return _mupdf.ll_fz_keep_colorspace(colorspace)
  8240. def ll_fz_keep_compressed_buffer(cbuf):
  8241. r"""
  8242. Low-level wrapper for `::fz_keep_compressed_buffer()`.
  8243. Take a reference to an fz_compressed_buffer.
  8244. """
  8245. return _mupdf.ll_fz_keep_compressed_buffer(cbuf)
  8246. def ll_fz_keep_default_colorspaces(default_cs):
  8247. r"""
  8248. Low-level wrapper for `::fz_keep_default_colorspaces()`.
  8249. Keep an additional reference to the default colorspaces
  8250. structure.
  8251. Never throws exceptions.
  8252. """
  8253. return _mupdf.ll_fz_keep_default_colorspaces(default_cs)
  8254. def ll_fz_keep_device(dev):
  8255. r"""
  8256. Low-level wrapper for `::fz_keep_device()`.
  8257. Increment the reference count for a device. Returns the same
  8258. pointer.
  8259. Never throws exceptions.
  8260. """
  8261. return _mupdf.ll_fz_keep_device(dev)
  8262. def ll_fz_keep_display_list(list):
  8263. r"""
  8264. Low-level wrapper for `::fz_keep_display_list()`.
  8265. Increment the reference count for a display list. Returns the
  8266. same pointer.
  8267. Never throws exceptions.
  8268. """
  8269. return _mupdf.ll_fz_keep_display_list(list)
  8270. def ll_fz_keep_document(doc):
  8271. r"""
  8272. Low-level wrapper for `::fz_keep_document()`.
  8273. Increment the document reference count. The same pointer is
  8274. returned.
  8275. Never throws exceptions.
  8276. """
  8277. return _mupdf.ll_fz_keep_document(doc)
  8278. def ll_fz_keep_font(font):
  8279. r"""
  8280. Low-level wrapper for `::fz_keep_font()`.
  8281. Add a reference to an existing fz_font.
  8282. font: The font to add a reference to.
  8283. Returns the same font.
  8284. """
  8285. return _mupdf.ll_fz_keep_font(font)
  8286. def ll_fz_keep_function(func):
  8287. r"""Low-level wrapper for `::fz_keep_function()`."""
  8288. return _mupdf.ll_fz_keep_function(func)
  8289. def ll_fz_keep_glyph(pix):
  8290. r"""
  8291. Low-level wrapper for `::fz_keep_glyph()`.
  8292. Take a reference to a glyph.
  8293. pix: The glyph to increment the reference for.
  8294. Returns pix.
  8295. """
  8296. return _mupdf.ll_fz_keep_glyph(pix)
  8297. def ll_fz_keep_halftone(half):
  8298. r"""
  8299. Low-level wrapper for `::fz_keep_halftone()`.
  8300. Take an additional reference to the halftone. The same pointer
  8301. is returned.
  8302. Never throws exceptions.
  8303. """
  8304. return _mupdf.ll_fz_keep_halftone(half)
  8305. def ll_fz_keep_image(image):
  8306. r"""
  8307. Low-level wrapper for `::fz_keep_image()`.
  8308. Increment the (normal) reference count for an image. Returns the
  8309. same pointer.
  8310. Never throws exceptions.
  8311. """
  8312. return _mupdf.ll_fz_keep_image(image)
  8313. def ll_fz_keep_image_store_key(image):
  8314. r"""
  8315. Low-level wrapper for `::fz_keep_image_store_key()`.
  8316. Increment the store key reference for an image. Returns the same
  8317. pointer. (This is the count of references for an image held by
  8318. keys in the image store).
  8319. Never throws exceptions.
  8320. """
  8321. return _mupdf.ll_fz_keep_image_store_key(image)
  8322. def ll_fz_keep_imp(p, refs):
  8323. r"""
  8324. Low-level wrapper for `::fz_keep_imp()`.
  8325. This function has out-params. Python/C# wrappers look like:
  8326. `ll_fz_keep_imp(void *p)` => `(void *, int refs)`
  8327. """
  8328. return _mupdf.ll_fz_keep_imp(p, refs)
  8329. def ll_fz_keep_imp16(p, refs):
  8330. r"""
  8331. Low-level wrapper for `::fz_keep_imp16()`.
  8332. This function has out-params. Python/C# wrappers look like:
  8333. `ll_fz_keep_imp16(void *p)` => `(void *, int16_t refs)`
  8334. """
  8335. return _mupdf.ll_fz_keep_imp16(p, refs)
  8336. def ll_fz_keep_imp8(p, refs):
  8337. r"""Low-level wrapper for `::fz_keep_imp8()`."""
  8338. return _mupdf.ll_fz_keep_imp8(p, refs)
  8339. def ll_fz_keep_imp8_locked(p, refs):
  8340. r"""Low-level wrapper for `::fz_keep_imp8_locked()`."""
  8341. return _mupdf.ll_fz_keep_imp8_locked(p, refs)
  8342. def ll_fz_keep_imp_locked(p, refs):
  8343. r"""
  8344. Low-level wrapper for `::fz_keep_imp_locked()`.
  8345. This function has out-params. Python/C# wrappers look like:
  8346. `ll_fz_keep_imp_locked(void *p)` => `(void *, int refs)`
  8347. """
  8348. return _mupdf.ll_fz_keep_imp_locked(p, refs)
  8349. def ll_fz_keep_jbig2_globals(globals):
  8350. r"""
  8351. Low-level wrapper for `::fz_keep_jbig2_globals()`.
  8352. Increment the reference count for a jbig2 globals record.
  8353. Never throws an exception.
  8354. """
  8355. return _mupdf.ll_fz_keep_jbig2_globals(globals)
  8356. def ll_fz_keep_key_storable(arg_1):
  8357. r"""
  8358. Low-level wrapper for `::fz_keep_key_storable()`.
  8359. Increment the (normal) reference count for a key storable
  8360. object. Returns the same pointer.
  8361. Never throws exceptions.
  8362. """
  8363. return _mupdf.ll_fz_keep_key_storable(arg_1)
  8364. def ll_fz_keep_key_storable_key(arg_1):
  8365. r"""
  8366. Low-level wrapper for `::fz_keep_key_storable_key()`.
  8367. Increment the (key) reference count for a key storable
  8368. object. Returns the same pointer.
  8369. Never throws exceptions.
  8370. """
  8371. return _mupdf.ll_fz_keep_key_storable_key(arg_1)
  8372. def ll_fz_keep_link(link):
  8373. r"""
  8374. Low-level wrapper for `::fz_keep_link()`.
  8375. Increment the reference count for a link. The same pointer is
  8376. returned.
  8377. Never throws exceptions.
  8378. """
  8379. return _mupdf.ll_fz_keep_link(link)
  8380. def ll_fz_keep_outline(outline):
  8381. r"""
  8382. Low-level wrapper for `::fz_keep_outline()`.
  8383. Increment the reference count. Returns the same pointer.
  8384. Never throws exceptions.
  8385. """
  8386. return _mupdf.ll_fz_keep_outline(outline)
  8387. def ll_fz_keep_page(page):
  8388. r"""
  8389. Low-level wrapper for `::fz_keep_page()`.
  8390. Increment the reference count for the page. Returns the same
  8391. pointer.
  8392. Never throws exceptions.
  8393. """
  8394. return _mupdf.ll_fz_keep_page(page)
  8395. def ll_fz_keep_path(path):
  8396. r"""
  8397. Low-level wrapper for `::fz_keep_path()`.
  8398. Increment the reference count. Returns the same pointer.
  8399. All paths can be kept, regardless of their packing type.
  8400. Never throws exceptions.
  8401. """
  8402. return _mupdf.ll_fz_keep_path(path)
  8403. def ll_fz_keep_pixmap(pix):
  8404. r"""
  8405. Low-level wrapper for `::fz_keep_pixmap()`.
  8406. Increment the reference count for the pixmap. The same pointer
  8407. is returned.
  8408. Never throws exceptions.
  8409. """
  8410. return _mupdf.ll_fz_keep_pixmap(pix)
  8411. def ll_fz_keep_separations(sep):
  8412. r"""
  8413. Low-level wrapper for `::fz_keep_separations()`.
  8414. Increment the reference count for a separations structure.
  8415. Returns the same pointer.
  8416. Never throws exceptions.
  8417. """
  8418. return _mupdf.ll_fz_keep_separations(sep)
  8419. def ll_fz_keep_shade(shade):
  8420. r"""
  8421. Low-level wrapper for `::fz_keep_shade()`.
  8422. Increment the reference count for the shade structure. The
  8423. same pointer is returned.
  8424. Never throws exceptions.
  8425. """
  8426. return _mupdf.ll_fz_keep_shade(shade)
  8427. def ll_fz_keep_stext_page(page):
  8428. r"""
  8429. Low-level wrapper for `::fz_keep_stext_page()`.
  8430. Take a new reference to an fz_stext_page.
  8431. """
  8432. return _mupdf.ll_fz_keep_stext_page(page)
  8433. def ll_fz_keep_storable(arg_1):
  8434. r"""
  8435. Low-level wrapper for `::fz_keep_storable()`.
  8436. Increment the reference count for a storable object.
  8437. Returns the same pointer.
  8438. Never throws exceptions.
  8439. """
  8440. return _mupdf.ll_fz_keep_storable(arg_1)
  8441. def ll_fz_keep_store_context():
  8442. r"""
  8443. Low-level wrapper for `::fz_keep_store_context()`.
  8444. Increment the reference count for the store context. Returns
  8445. the same pointer.
  8446. Never throws exceptions.
  8447. """
  8448. return _mupdf.ll_fz_keep_store_context()
  8449. def ll_fz_keep_stream(stm):
  8450. r"""
  8451. Low-level wrapper for `::fz_keep_stream()`.
  8452. Increments the reference count for a stream. Returns the same
  8453. pointer.
  8454. Never throws exceptions.
  8455. """
  8456. return _mupdf.ll_fz_keep_stream(stm)
  8457. def ll_fz_keep_string(str):
  8458. r"""Low-level wrapper for `::fz_keep_string()`."""
  8459. return _mupdf.ll_fz_keep_string(str)
  8460. def ll_fz_keep_stroke_state(stroke):
  8461. r"""
  8462. Low-level wrapper for `::fz_keep_stroke_state()`.
  8463. Take an additional reference to a stroke state structure.
  8464. No modifications should be carried out on a stroke
  8465. state to which more than one reference is held, as
  8466. this can cause race conditions.
  8467. """
  8468. return _mupdf.ll_fz_keep_stroke_state(stroke)
  8469. def ll_fz_keep_text(text):
  8470. r"""
  8471. Low-level wrapper for `::fz_keep_text()`.
  8472. Increment the reference count for the text object. The same
  8473. pointer is returned.
  8474. Never throws exceptions.
  8475. """
  8476. return _mupdf.ll_fz_keep_text(text)
  8477. def ll_fz_keep_xml(xml):
  8478. r"""
  8479. Low-level wrapper for `::fz_keep_xml()`.
  8480. Add a reference to the XML.
  8481. """
  8482. return _mupdf.ll_fz_keep_xml(xml)
  8483. def ll_fz_koi8u_from_unicode(u):
  8484. r"""Low-level wrapper for `::fz_koi8u_from_unicode()`."""
  8485. return _mupdf.ll_fz_koi8u_from_unicode(u)
  8486. def ll_fz_last_page(doc):
  8487. r"""
  8488. Low-level wrapper for `::fz_last_page()`.
  8489. Function to get the location for the last page in the document.
  8490. Using this can be far more efficient in some cases than calling
  8491. fz_count_pages and using the page number.
  8492. """
  8493. return _mupdf.ll_fz_last_page(doc)
  8494. def ll_fz_layout_document(doc, w, h, em):
  8495. r"""
  8496. Low-level wrapper for `::fz_layout_document()`.
  8497. Layout reflowable document types.
  8498. w, h: Page size in points.
  8499. em: Default font size in points.
  8500. """
  8501. return _mupdf.ll_fz_layout_document(doc, w, h, em)
  8502. def ll_fz_linecap_from_string(s):
  8503. r"""Low-level wrapper for `::fz_linecap_from_string()`."""
  8504. return _mupdf.ll_fz_linecap_from_string(s)
  8505. def ll_fz_linejoin_from_string(s):
  8506. r"""Low-level wrapper for `::fz_linejoin_from_string()`."""
  8507. return _mupdf.ll_fz_linejoin_from_string(s)
  8508. def ll_fz_lineto(path, x, y):
  8509. r"""
  8510. Low-level wrapper for `::fz_lineto()`.
  8511. Append a 'lineto' command to an open path.
  8512. path: The path to modify.
  8513. x, y: The coordinate to line to.
  8514. Throws exceptions on failure to allocate, or attempting to
  8515. modify a packed path.
  8516. """
  8517. return _mupdf.ll_fz_lineto(path, x, y)
  8518. def ll_fz_list_archive_entry(arch, idx):
  8519. r"""
  8520. Low-level wrapper for `::fz_list_archive_entry()`.
  8521. Get listed name of entry position idx.
  8522. idx: Must be a value >= 0 < return value from
  8523. fz_count_archive_entries. If not in range NULL will be
  8524. returned.
  8525. May throw an exception if this type of archive cannot list the
  8526. entries (such as a directory).
  8527. """
  8528. return _mupdf.ll_fz_list_archive_entry(arch, idx)
  8529. def ll_fz_load_bmp_subimage(buf, len, subimage):
  8530. r"""Low-level wrapper for `::fz_load_bmp_subimage()`."""
  8531. return _mupdf.ll_fz_load_bmp_subimage(buf, len, subimage)
  8532. def ll_fz_load_bmp_subimage_count(buf, len):
  8533. r"""Low-level wrapper for `::fz_load_bmp_subimage_count()`."""
  8534. return _mupdf.ll_fz_load_bmp_subimage_count(buf, len)
  8535. def ll_fz_load_chapter_page(doc, chapter, page):
  8536. r"""
  8537. Low-level wrapper for `::fz_load_chapter_page()`.
  8538. Load a page.
  8539. After fz_load_page is it possible to retrieve the size of the
  8540. page using fz_bound_page, or to render the page using
  8541. fz_run_page_*. Free the page by calling fz_drop_page.
  8542. chapter: chapter number, 0 is the first chapter of the document.
  8543. number: page number, 0 is the first page of the chapter.
  8544. """
  8545. return _mupdf.ll_fz_load_chapter_page(doc, chapter, page)
  8546. def ll_fz_load_fallback_font(script, language, serif, bold, italic):
  8547. r"""
  8548. Low-level wrapper for `::fz_load_fallback_font()`.
  8549. Try to load a fallback font for the
  8550. given combination of font attributes. Whether a font is
  8551. present or not will depend on the configuration in which
  8552. MuPDF is built.
  8553. script: The script desired (e.g. UCDN_SCRIPT_KATAKANA).
  8554. language: The language desired (e.g. FZ_LANG_ja).
  8555. serif: 1 if serif desired, 0 otherwise.
  8556. bold: 1 if bold desired, 0 otherwise.
  8557. italic: 1 if italic desired, 0 otherwise.
  8558. Returns a new font handle, or NULL if not available.
  8559. """
  8560. return _mupdf.ll_fz_load_fallback_font(script, language, serif, bold, italic)
  8561. def ll_fz_load_jbig2_globals(buf):
  8562. r"""
  8563. Low-level wrapper for `::fz_load_jbig2_globals()`.
  8564. Create a jbig2 globals record from a buffer.
  8565. Immutable once created.
  8566. """
  8567. return _mupdf.ll_fz_load_jbig2_globals(buf)
  8568. def ll_fz_load_jbig2_subimage(buf, len, subimage):
  8569. r"""Low-level wrapper for `::fz_load_jbig2_subimage()`."""
  8570. return _mupdf.ll_fz_load_jbig2_subimage(buf, len, subimage)
  8571. def ll_fz_load_jbig2_subimage_count(buf, len):
  8572. r"""Low-level wrapper for `::fz_load_jbig2_subimage_count()`."""
  8573. return _mupdf.ll_fz_load_jbig2_subimage_count(buf, len)
  8574. def ll_fz_load_jpx(data, size, cs):
  8575. r"""
  8576. Low-level wrapper for `::fz_load_jpx()`.
  8577. Exposed for PDF.
  8578. """
  8579. return _mupdf.ll_fz_load_jpx(data, size, cs)
  8580. def ll_fz_load_links(page):
  8581. r"""
  8582. Low-level wrapper for `::fz_load_links()`.
  8583. Load the list of links for a page.
  8584. Returns a linked list of all the links on the page, each with
  8585. its clickable region and link destination. Each link is
  8586. reference counted so drop and free the list of links by
  8587. calling fz_drop_link on the pointer return from fz_load_links.
  8588. page: Page obtained from fz_load_page.
  8589. """
  8590. return _mupdf.ll_fz_load_links(page)
  8591. def ll_fz_load_outline(doc):
  8592. r"""
  8593. Low-level wrapper for `::fz_load_outline()`.
  8594. Load the hierarchical document outline.
  8595. Should be freed by fz_drop_outline.
  8596. """
  8597. return _mupdf.ll_fz_load_outline(doc)
  8598. def ll_fz_load_outline_from_iterator(iter):
  8599. r"""
  8600. Low-level wrapper for `::fz_load_outline_from_iterator()`.
  8601. Routine to implement the old Structure based API from an iterator.
  8602. """
  8603. return _mupdf.ll_fz_load_outline_from_iterator(iter)
  8604. def ll_fz_load_page(doc, number):
  8605. r"""
  8606. Low-level wrapper for `::fz_load_page()`.
  8607. Load a given page number from a document. This may be much less
  8608. efficient than loading by location (chapter+page) for some
  8609. document types.
  8610. """
  8611. return _mupdf.ll_fz_load_page(doc, number)
  8612. def ll_fz_load_pnm_subimage(buf, len, subimage):
  8613. r"""Low-level wrapper for `::fz_load_pnm_subimage()`."""
  8614. return _mupdf.ll_fz_load_pnm_subimage(buf, len, subimage)
  8615. def ll_fz_load_pnm_subimage_count(buf, len):
  8616. r"""Low-level wrapper for `::fz_load_pnm_subimage_count()`."""
  8617. return _mupdf.ll_fz_load_pnm_subimage_count(buf, len)
  8618. def ll_fz_load_system_cjk_font(name, ordering, serif):
  8619. r"""
  8620. Low-level wrapper for `::fz_load_system_cjk_font()`.
  8621. Attempt to load a given font from
  8622. the system.
  8623. name: The name of the desired font.
  8624. ordering: The ordering to load the font from (e.g. FZ_ADOBE_KOREA)
  8625. serif: 1 if serif desired, 0 otherwise.
  8626. Returns a new font handle, or NULL if no matching font was found
  8627. (or on error).
  8628. """
  8629. return _mupdf.ll_fz_load_system_cjk_font(name, ordering, serif)
  8630. def ll_fz_load_system_font(name, bold, italic, needs_exact_metrics):
  8631. r"""
  8632. Low-level wrapper for `::fz_load_system_font()`.
  8633. Attempt to load a given font from the system.
  8634. name: The name of the desired font.
  8635. bold: 1 if bold desired, 0 otherwise.
  8636. italic: 1 if italic desired, 0 otherwise.
  8637. needs_exact_metrics: 1 if an exact metrical match is required,
  8638. 0 otherwise.
  8639. Returns a new font handle, or NULL if no matching font was found
  8640. (or on error).
  8641. """
  8642. return _mupdf.ll_fz_load_system_font(name, bold, italic, needs_exact_metrics)
  8643. def ll_fz_load_tiff_subimage(buf, len, subimage):
  8644. r"""Low-level wrapper for `::fz_load_tiff_subimage()`."""
  8645. return _mupdf.ll_fz_load_tiff_subimage(buf, len, subimage)
  8646. def ll_fz_load_tiff_subimage_count(buf, len):
  8647. r"""
  8648. Low-level wrapper for `::fz_load_tiff_subimage_count()`.
  8649. Exposed for CBZ.
  8650. """
  8651. return _mupdf.ll_fz_load_tiff_subimage_count(buf, len)
  8652. def ll_fz_load_user_css(filename):
  8653. r"""
  8654. Low-level wrapper for `::fz_load_user_css()`.
  8655. Set the user stylesheet by loading the source from a file.
  8656. If the file is missing, do nothing.
  8657. """
  8658. return _mupdf.ll_fz_load_user_css(filename)
  8659. def ll_fz_location_from_page_number(doc, number):
  8660. r"""
  8661. Low-level wrapper for `::fz_location_from_page_number()`.
  8662. Converts from page number to chapter+page. This may cause many
  8663. chapters to be laid out in order to calculate the number of
  8664. pages within those chapters.
  8665. """
  8666. return _mupdf.ll_fz_location_from_page_number(doc, number)
  8667. def ll_fz_lock(lock):
  8668. r"""
  8669. Low-level wrapper for `::fz_lock()`.
  8670. Lock one of the user supplied mutexes.
  8671. """
  8672. return _mupdf.ll_fz_lock(lock)
  8673. def ll_fz_log_error(str):
  8674. r"""
  8675. Low-level wrapper for `::fz_log_error()`.
  8676. Log a (preformatted) string to the registered
  8677. error stream (stderr by default).
  8678. """
  8679. return _mupdf.ll_fz_log_error(str)
  8680. def ll_fz_lookup_base14_font(name, len):
  8681. r"""
  8682. Low-level wrapper for `::fz_lookup_base14_font()`.
  8683. This function has out-params. Python/C# wrappers look like:
  8684. `ll_fz_lookup_base14_font(const char *name)` => `(const unsigned char *, int len)`
  8685. Search the builtin base14 fonts for a match.
  8686. Whether a given font is present or not will depend on the
  8687. configuration in which MuPDF is built.
  8688. name: The name of the font desired.
  8689. len: Pointer to a place to receive the length of the discovered
  8690. font buffer.
  8691. Returns a pointer to the font file data, or NULL if not present.
  8692. """
  8693. return _mupdf.ll_fz_lookup_base14_font(name, len)
  8694. def ll_fz_lookup_blendmode(name):
  8695. r"""
  8696. Low-level wrapper for `::fz_lookup_blendmode()`.
  8697. Map from (case sensitive) blend mode string to enumeration.
  8698. """
  8699. return _mupdf.ll_fz_lookup_blendmode(name)
  8700. def ll_fz_lookup_bookmark(doc, mark):
  8701. r"""
  8702. Low-level wrapper for `::fz_lookup_bookmark()`.
  8703. Find a bookmark and return its page number.
  8704. """
  8705. return _mupdf.ll_fz_lookup_bookmark(doc, mark)
  8706. def ll_fz_lookup_builtin_font(name, bold, italic, len):
  8707. r"""
  8708. Low-level wrapper for `::fz_lookup_builtin_font()`.
  8709. This function has out-params. Python/C# wrappers look like:
  8710. `ll_fz_lookup_builtin_font(const char *name, int bold, int italic)` => `(const unsigned char *, int len)`
  8711. Search the builtin fonts for a match.
  8712. Whether a given font is present or not will depend on the
  8713. configuration in which MuPDF is built.
  8714. name: The name of the font desired.
  8715. bold: 1 if bold desired, 0 otherwise.
  8716. italic: 1 if italic desired, 0 otherwise.
  8717. len: Pointer to a place to receive the length of the discovered
  8718. font buffer.
  8719. Returns a pointer to the font file data, or NULL if not present.
  8720. """
  8721. return _mupdf.ll_fz_lookup_builtin_font(name, bold, italic, len)
  8722. def ll_fz_lookup_cjk_font(ordering, len, index):
  8723. r"""
  8724. Low-level wrapper for `::fz_lookup_cjk_font()`.
  8725. This function has out-params. Python/C# wrappers look like:
  8726. `ll_fz_lookup_cjk_font(int ordering)` => `(const unsigned char *, int len, int index)`
  8727. Search the builtin cjk fonts for a match.
  8728. Whether a font is present or not will depend on the
  8729. configuration in which MuPDF is built.
  8730. ordering: The desired ordering of the font (e.g. FZ_ADOBE_KOREA).
  8731. len: Pointer to a place to receive the length of the discovered
  8732. font buffer.
  8733. Returns a pointer to the font file data, or NULL if not present.
  8734. """
  8735. return _mupdf.ll_fz_lookup_cjk_font(ordering, len, index)
  8736. def ll_fz_lookup_cjk_font_by_language(lang, len, subfont):
  8737. r"""
  8738. Low-level wrapper for `::fz_lookup_cjk_font_by_language()`.
  8739. This function has out-params. Python/C# wrappers look like:
  8740. `ll_fz_lookup_cjk_font_by_language(const char *lang)` => `(const unsigned char *, int len, int subfont)`
  8741. Search the builtin cjk fonts for a match for a given language.
  8742. Whether a font is present or not will depend on the
  8743. configuration in which MuPDF is built.
  8744. lang: Pointer to a (case sensitive) language string (e.g.
  8745. "ja", "ko", "zh-Hant" etc).
  8746. len: Pointer to a place to receive the length of the discovered
  8747. font buffer.
  8748. subfont: Pointer to a place to store the subfont index of the
  8749. discovered font.
  8750. Returns a pointer to the font file data, or NULL if not present.
  8751. """
  8752. return _mupdf.ll_fz_lookup_cjk_font_by_language(lang, len, subfont)
  8753. def ll_fz_lookup_cjk_ordering_by_language(name):
  8754. r"""
  8755. Low-level wrapper for `::fz_lookup_cjk_ordering_by_language()`.
  8756. Return the matching FZ_ADOBE_* ordering
  8757. for the given language tag, such as "zh-Hant", "zh-Hans", "ja", or "ko".
  8758. """
  8759. return _mupdf.ll_fz_lookup_cjk_ordering_by_language(name)
  8760. def ll_fz_lookup_image_type(type):
  8761. r"""
  8762. Low-level wrapper for `::fz_lookup_image_type()`.
  8763. Map from (case sensitive) image type string to FZ_IMAGE_*
  8764. type value.
  8765. """
  8766. return _mupdf.ll_fz_lookup_image_type(type)
  8767. def ll_fz_lookup_metadata(doc, key, buf, size):
  8768. r"""
  8769. Low-level wrapper for `::fz_lookup_metadata()`.
  8770. Retrieve document meta data strings.
  8771. doc: The document to query.
  8772. key: Which meta data key to retrieve...
  8773. Basic information:
  8774. 'format' -- Document format and version.
  8775. 'encryption' -- Description of the encryption used.
  8776. From the document information dictionary:
  8777. 'info:Title'
  8778. 'info:Author'
  8779. 'info:Subject'
  8780. 'info:Keywords'
  8781. 'info:Creator'
  8782. 'info:Producer'
  8783. 'info:CreationDate'
  8784. 'info:ModDate'
  8785. buf: The buffer to hold the results (a nul-terminated UTF-8
  8786. string).
  8787. size: Size of 'buf'.
  8788. Returns the number of bytes need to store the string plus terminator
  8789. (will be larger than 'size' if the output was truncated), or -1 if the
  8790. key is not recognized or found.
  8791. """
  8792. return _mupdf.ll_fz_lookup_metadata(doc, key, buf, size)
  8793. def ll_fz_lookup_metadata2(doc, key):
  8794. r"""
  8795. Low-level wrapper for `::fz_lookup_metadata2()`.
  8796. C++ alternative to `fz_lookup_metadata()` that returns a `std::string`
  8797. or calls `fz_throw()` if not found.
  8798. """
  8799. return _mupdf.ll_fz_lookup_metadata2(doc, key)
  8800. def ll_fz_lookup_noto_boxes_font(len):
  8801. r"""
  8802. Low-level wrapper for `::fz_lookup_noto_boxes_font()`.
  8803. This function has out-params. Python/C# wrappers look like:
  8804. `ll_fz_lookup_noto_boxes_font()` => `(const unsigned char *, int len)`
  8805. """
  8806. return _mupdf.ll_fz_lookup_noto_boxes_font(len)
  8807. def ll_fz_lookup_noto_emoji_font(len):
  8808. r"""
  8809. Low-level wrapper for `::fz_lookup_noto_emoji_font()`.
  8810. This function has out-params. Python/C# wrappers look like:
  8811. `ll_fz_lookup_noto_emoji_font()` => `(const unsigned char *, int len)`
  8812. """
  8813. return _mupdf.ll_fz_lookup_noto_emoji_font(len)
  8814. def ll_fz_lookup_noto_font(script, lang, len, subfont):
  8815. r"""
  8816. Low-level wrapper for `::fz_lookup_noto_font()`.
  8817. This function has out-params. Python/C# wrappers look like:
  8818. `ll_fz_lookup_noto_font(int script, int lang)` => `(const unsigned char *, int len, int subfont)`
  8819. Search the builtin noto fonts for a match.
  8820. Whether a font is present or not will depend on the
  8821. configuration in which MuPDF is built.
  8822. script: The script desired (e.g. UCDN_SCRIPT_KATAKANA).
  8823. lang: The language desired (e.g. FZ_LANG_ja).
  8824. len: Pointer to a place to receive the length of the discovered
  8825. font buffer.
  8826. Returns a pointer to the font file data, or NULL if not present.
  8827. """
  8828. return _mupdf.ll_fz_lookup_noto_font(script, lang, len, subfont)
  8829. def ll_fz_lookup_noto_math_font(len):
  8830. r"""
  8831. Low-level wrapper for `::fz_lookup_noto_math_font()`.
  8832. This function has out-params. Python/C# wrappers look like:
  8833. `ll_fz_lookup_noto_math_font()` => `(const unsigned char *, int len)`
  8834. Search the builtin noto fonts specific symbol fonts.
  8835. Whether a font is present or not will depend on the
  8836. configuration in which MuPDF is built.
  8837. """
  8838. return _mupdf.ll_fz_lookup_noto_math_font(len)
  8839. def ll_fz_lookup_noto_music_font(len):
  8840. r"""
  8841. Low-level wrapper for `::fz_lookup_noto_music_font()`.
  8842. This function has out-params. Python/C# wrappers look like:
  8843. `ll_fz_lookup_noto_music_font()` => `(const unsigned char *, int len)`
  8844. """
  8845. return _mupdf.ll_fz_lookup_noto_music_font(len)
  8846. def ll_fz_lookup_noto_stem_from_script(script, language):
  8847. r"""
  8848. Low-level wrapper for `::fz_lookup_noto_stem_from_script()`.
  8849. Look up the Noto font file name for a given script.
  8850. From the returned font stem, you can look for Noto fonts on the system in the form:
  8851. Noto(Sans|Serif)${STEM}-Regular.(otf|ttf)
  8852. """
  8853. return _mupdf.ll_fz_lookup_noto_stem_from_script(script, language)
  8854. def ll_fz_lookup_noto_symbol1_font(len):
  8855. r"""
  8856. Low-level wrapper for `::fz_lookup_noto_symbol1_font()`.
  8857. This function has out-params. Python/C# wrappers look like:
  8858. `ll_fz_lookup_noto_symbol1_font()` => `(const unsigned char *, int len)`
  8859. """
  8860. return _mupdf.ll_fz_lookup_noto_symbol1_font(len)
  8861. def ll_fz_lookup_noto_symbol2_font(len):
  8862. r"""
  8863. Low-level wrapper for `::fz_lookup_noto_symbol2_font()`.
  8864. This function has out-params. Python/C# wrappers look like:
  8865. `ll_fz_lookup_noto_symbol2_font()` => `(const unsigned char *, int len)`
  8866. """
  8867. return _mupdf.ll_fz_lookup_noto_symbol2_font(len)
  8868. def ll_fz_lookup_rendering_intent(name):
  8869. r"""
  8870. Low-level wrapper for `::fz_lookup_rendering_intent()`.
  8871. Map from (case sensitive) rendering intent string to enumeration
  8872. value.
  8873. """
  8874. return _mupdf.ll_fz_lookup_rendering_intent(name)
  8875. def ll_fz_lookup_script_name(script, language):
  8876. r"""Low-level wrapper for `::fz_lookup_script_name()`."""
  8877. return _mupdf.ll_fz_lookup_script_name(script, language)
  8878. def ll_fz_make_bookmark(doc, loc):
  8879. r"""
  8880. Low-level wrapper for `::fz_make_bookmark()`.
  8881. Create a bookmark for the given page, which can be used to find
  8882. the same location after the document has been laid out with
  8883. different parameters.
  8884. """
  8885. return _mupdf.ll_fz_make_bookmark(doc, loc)
  8886. def ll_fz_make_irect(x0, y0, x1, y1):
  8887. r"""Low-level wrapper for `::fz_make_irect()`."""
  8888. return _mupdf.ll_fz_make_irect(x0, y0, x1, y1)
  8889. def ll_fz_make_link_dest_none():
  8890. r"""Low-level wrapper for `::fz_make_link_dest_none()`."""
  8891. return _mupdf.ll_fz_make_link_dest_none()
  8892. def ll_fz_make_link_dest_xyz(chapter, page, x, y, z):
  8893. r"""Low-level wrapper for `::fz_make_link_dest_xyz()`."""
  8894. return _mupdf.ll_fz_make_link_dest_xyz(chapter, page, x, y, z)
  8895. def ll_fz_make_location(chapter, page):
  8896. r"""
  8897. Low-level wrapper for `::fz_make_location()`.
  8898. Simple constructor for fz_locations.
  8899. """
  8900. return _mupdf.ll_fz_make_location(chapter, page)
  8901. def ll_fz_make_matrix(a, b, c, d, e, f):
  8902. r"""Low-level wrapper for `::fz_make_matrix()`."""
  8903. return _mupdf.ll_fz_make_matrix(a, b, c, d, e, f)
  8904. def ll_fz_make_point(x, y):
  8905. r"""Low-level wrapper for `::fz_make_point()`."""
  8906. return _mupdf.ll_fz_make_point(x, y)
  8907. def ll_fz_make_quad(ul_x, ul_y, ur_x, ur_y, ll_x, ll_y, lr_x, lr_y):
  8908. r"""
  8909. Low-level wrapper for `::fz_make_quad()`.
  8910. Inline convenience construction function.
  8911. """
  8912. return _mupdf.ll_fz_make_quad(ul_x, ul_y, ur_x, ur_y, ll_x, ll_y, lr_x, lr_y)
  8913. def ll_fz_make_rect(x0, y0, x1, y1):
  8914. r"""Low-level wrapper for `::fz_make_rect()`."""
  8915. return _mupdf.ll_fz_make_rect(x0, y0, x1, y1)
  8916. def ll_fz_malloc(size):
  8917. r"""
  8918. Low-level wrapper for `::fz_malloc()`.
  8919. Allocate uninitialized memory of a given size.
  8920. Does NOT clear the memory!
  8921. May return NULL for size = 0.
  8922. Throws exception in the event of failure to allocate.
  8923. """
  8924. return _mupdf.ll_fz_malloc(size)
  8925. def ll_fz_malloc_aligned(size, align):
  8926. r"""
  8927. Low-level wrapper for `::fz_malloc_aligned()`.
  8928. fz_malloc equivalent, except that the block is guaranteed aligned.
  8929. Block must be freed later using fz_free_aligned.
  8930. """
  8931. return _mupdf.ll_fz_malloc_aligned(size, align)
  8932. def ll_fz_malloc_no_throw(size):
  8933. r"""
  8934. Low-level wrapper for `::fz_malloc_no_throw()`.
  8935. fz_malloc equivalent that returns NULL rather than throwing
  8936. exceptions.
  8937. """
  8938. return _mupdf.ll_fz_malloc_no_throw(size)
  8939. def ll_fz_matrix_expansion(m):
  8940. r"""
  8941. Low-level wrapper for `::fz_matrix_expansion()`.
  8942. Calculate average scaling factor of matrix.
  8943. """
  8944. return _mupdf.ll_fz_matrix_expansion(m)
  8945. def ll_fz_matrix_max_expansion(m):
  8946. r"""
  8947. Low-level wrapper for `::fz_matrix_max_expansion()`.
  8948. Find the largest expansion performed by this matrix.
  8949. (i.e. max(abs(m.a),abs(m.b),abs(m.c),abs(m.d))
  8950. """
  8951. return _mupdf.ll_fz_matrix_max_expansion(m)
  8952. def ll_fz_max(a, b):
  8953. r"""Low-level wrapper for `::fz_max()`."""
  8954. return _mupdf.ll_fz_max(a, b)
  8955. def ll_fz_maxi(a, b):
  8956. r"""Low-level wrapper for `::fz_maxi()`."""
  8957. return _mupdf.ll_fz_maxi(a, b)
  8958. def ll_fz_maxi64(a, b):
  8959. r"""Low-level wrapper for `::fz_maxi64()`."""
  8960. return _mupdf.ll_fz_maxi64(a, b)
  8961. def ll_fz_maxz(a, b):
  8962. r"""Low-level wrapper for `::fz_maxz()`."""
  8963. return _mupdf.ll_fz_maxz(a, b)
  8964. def ll_fz_md5_buffer(buffer, digest):
  8965. r"""
  8966. Low-level wrapper for `::fz_md5_buffer()`.
  8967. Create an MD5 digest from buffer contents.
  8968. Never throws exceptions.
  8969. """
  8970. return _mupdf.ll_fz_md5_buffer(buffer, digest)
  8971. def ll_fz_md5_final(state, digest):
  8972. r"""
  8973. Low-level wrapper for `::fz_md5_final()`.
  8974. MD5 finalization. Ends an MD5 message-digest operation, writing
  8975. the message digest and zeroizing the context.
  8976. Never throws an exception.
  8977. """
  8978. return _mupdf.ll_fz_md5_final(state, digest)
  8979. def ll_fz_md5_final2(md5):
  8980. r"""
  8981. Low-level wrapper for `::fz_md5_final2()`.
  8982. C++ alternative to fz_md5_final() that returns the digest by value.
  8983. """
  8984. return _mupdf.ll_fz_md5_final2(md5)
  8985. def ll_fz_md5_init(state):
  8986. r"""
  8987. Low-level wrapper for `::fz_md5_init()`.
  8988. MD5 initialization. Begins an MD5 operation, writing a new
  8989. context.
  8990. Never throws an exception.
  8991. """
  8992. return _mupdf.ll_fz_md5_init(state)
  8993. def ll_fz_md5_pixmap(pixmap, digest):
  8994. r"""Low-level wrapper for `::fz_md5_pixmap()`."""
  8995. return _mupdf.ll_fz_md5_pixmap(pixmap, digest)
  8996. def ll_fz_md5_pixmap2(pixmap):
  8997. r"""
  8998. Low-level wrapper for `::fz_md5_pixmap2()`.
  8999. C++ alternative to `fz_md5_pixmap()` that returns the digest by value.
  9000. """
  9001. return _mupdf.ll_fz_md5_pixmap2(pixmap)
  9002. def ll_fz_md5_update(state, input, inlen):
  9003. r"""
  9004. Low-level wrapper for `::fz_md5_update()`.
  9005. MD5 block update operation. Continues an MD5 message-digest
  9006. operation, processing another message block, and updating the
  9007. context.
  9008. Never throws an exception.
  9009. """
  9010. return _mupdf.ll_fz_md5_update(state, input, inlen)
  9011. def ll_fz_md5_update_int64(state, i):
  9012. r"""
  9013. Low-level wrapper for `::fz_md5_update_int64()`.
  9014. MD5 block update operation. Continues an MD5 message-digest
  9015. operation, processing an int64, and updating the context.
  9016. Never throws an exception.
  9017. """
  9018. return _mupdf.ll_fz_md5_update_int64(state, i)
  9019. def ll_fz_measure_string(user_font, trm, s, wmode, bidi_level, markup_dir, language):
  9020. r"""
  9021. Low-level wrapper for `::fz_measure_string()`.
  9022. Measure the advance width of a UTF8 string should it be added to a text object.
  9023. This uses the same layout algorithms as fz_show_string, and can be used
  9024. to calculate text alignment adjustments.
  9025. """
  9026. return _mupdf.ll_fz_measure_string(user_font, trm, s, wmode, bidi_level, markup_dir, language)
  9027. def ll_fz_memmem(haystack, haystacklen, needle, needlelen):
  9028. r"""
  9029. Low-level wrapper for `::fz_memmem()`.
  9030. Find the start of the first occurrence of the substring needle in haystack.
  9031. """
  9032. return _mupdf.ll_fz_memmem(haystack, haystacklen, needle, needlelen)
  9033. def ll_fz_memrnd(block, len):
  9034. r"""
  9035. Low-level wrapper for `::fz_memrnd()`.
  9036. Fill block with len bytes of pseudo-randomness.
  9037. """
  9038. return _mupdf.ll_fz_memrnd(block, len)
  9039. def ll_fz_min(a, b):
  9040. r"""Low-level wrapper for `::fz_min()`."""
  9041. return _mupdf.ll_fz_min(a, b)
  9042. def ll_fz_mini(a, b):
  9043. r"""Low-level wrapper for `::fz_mini()`."""
  9044. return _mupdf.ll_fz_mini(a, b)
  9045. def ll_fz_mini64(a, b):
  9046. r"""Low-level wrapper for `::fz_mini64()`."""
  9047. return _mupdf.ll_fz_mini64(a, b)
  9048. def ll_fz_minz(a, b):
  9049. r"""Low-level wrapper for `::fz_minz()`."""
  9050. return _mupdf.ll_fz_minz(a, b)
  9051. def ll_fz_mkdir(path):
  9052. r"""Low-level wrapper for `::fz_mkdir()`."""
  9053. return _mupdf.ll_fz_mkdir(path)
  9054. def ll_fz_morph_error(fromcode, tocode):
  9055. r"""
  9056. Low-level wrapper for `::fz_morph_error()`.
  9057. Called within a catch block this modifies the current
  9058. exception's code. If it's of type 'fromcode' it is
  9059. modified to 'tocode'. Typically used for 'downgrading'
  9060. exception severity.
  9061. """
  9062. return _mupdf.ll_fz_morph_error(fromcode, tocode)
  9063. def ll_fz_mount_multi_archive(arch_, sub, path):
  9064. r"""
  9065. Low-level wrapper for `::fz_mount_multi_archive()`.
  9066. Add an archive to the set of archives handled by a multi
  9067. archive.
  9068. If path is NULL, then the archive contents will appear at the
  9069. top level, otherwise, the archives contents will appear prefixed
  9070. by path.
  9071. """
  9072. return _mupdf.ll_fz_mount_multi_archive(arch_, sub, path)
  9073. def ll_fz_moveto(path, x, y):
  9074. r"""
  9075. Low-level wrapper for `::fz_moveto()`.
  9076. Append a 'moveto' command to a path.
  9077. This 'opens' a path.
  9078. path: The path to modify.
  9079. x, y: The coordinate to move to.
  9080. Throws exceptions on failure to allocate, or attempting to
  9081. modify a packed path.
  9082. """
  9083. return _mupdf.ll_fz_moveto(path, x, y)
  9084. def ll_fz_mul255(a, b):
  9085. r"""
  9086. Low-level wrapper for `::fz_mul255()`.
  9087. Multiply scaled two integers in the 0..255 range
  9088. """
  9089. return _mupdf.ll_fz_mul255(a, b)
  9090. def ll_fz_needs_password(doc):
  9091. r"""
  9092. Low-level wrapper for `::fz_needs_password()`.
  9093. Check if a document is encrypted with a
  9094. non-blank password.
  9095. """
  9096. return _mupdf.ll_fz_needs_password(doc)
  9097. def ll_fz_new_arc4_output(chain, key, keylen):
  9098. r"""Low-level wrapper for `::fz_new_arc4_output()`."""
  9099. return _mupdf.ll_fz_new_arc4_output(chain, key, keylen)
  9100. def ll_fz_new_archive_of_size(file, size):
  9101. r"""Low-level wrapper for `::fz_new_archive_of_size()`."""
  9102. return _mupdf.ll_fz_new_archive_of_size(file, size)
  9103. def ll_fz_new_ascii85_output(chain):
  9104. r"""Low-level wrapper for `::fz_new_ascii85_output()`."""
  9105. return _mupdf.ll_fz_new_ascii85_output(chain)
  9106. def ll_fz_new_asciihex_output(chain):
  9107. r"""
  9108. Low-level wrapper for `::fz_new_asciihex_output()`.
  9109. Compression and other filtering outputs.
  9110. These outputs write encoded data to another output. Create a
  9111. filter output with the destination, write to the filter, then
  9112. close and drop it when you're done. These can also be chained
  9113. together, for example to write ASCII Hex encoded, Deflate
  9114. compressed, and RC4 encrypted data to a buffer output.
  9115. Output streams don't use reference counting, so make sure to
  9116. close all of the filters in the reverse order of creation so
  9117. that data is flushed properly.
  9118. Accordingly, ownership of 'chain' is never passed into the
  9119. following functions, but remains with the caller, whose
  9120. responsibility it is to ensure they exist at least until
  9121. the returned fz_output is dropped.
  9122. """
  9123. return _mupdf.ll_fz_new_asciihex_output(chain)
  9124. def ll_fz_new_band_writer_of_size(size, out):
  9125. r"""Low-level wrapper for `::fz_new_band_writer_of_size()`."""
  9126. return _mupdf.ll_fz_new_band_writer_of_size(size, out)
  9127. def ll_fz_new_barcode_image(type, value, size, ec_level, quiet, hrt):
  9128. r"""
  9129. Low-level wrapper for `::fz_new_barcode_image()`.
  9130. Create an fz_image from a barcode definition.
  9131. type: The type of barcode to create.
  9132. value: The value of the barcode.
  9133. size: The size of the barcode.
  9134. ec_level: error correction level 0-8.
  9135. quiet: whether to include quiet zones (0 or 1).
  9136. hrt: whether to include human readable text below the barcode (0 or 1).
  9137. returns a created fz_image.
  9138. """
  9139. return _mupdf.ll_fz_new_barcode_image(type, value, size, ec_level, quiet, hrt)
  9140. def ll_fz_new_barcode_pixmap(type, value, size, ec_level, quiet, hrt):
  9141. r"""
  9142. Low-level wrapper for `::fz_new_barcode_pixmap()`.
  9143. Create an fz_pixmap from a barcode definition.
  9144. type: The type of barcode to create.
  9145. value: The value of the barcode.
  9146. size: The size of the barcode.
  9147. ec_level: error correction level 0-8.
  9148. quiet: whether to include quiet zones (0 or 1).
  9149. hrt: whether to include human readable text below the barcode (0 or 1).
  9150. returns a created fz_pixmap.
  9151. """
  9152. return _mupdf.ll_fz_new_barcode_pixmap(type, value, size, ec_level, quiet, hrt)
  9153. def ll_fz_new_base14_font(name):
  9154. r"""
  9155. Low-level wrapper for `::fz_new_base14_font()`.
  9156. Create a new font from one of the built-in fonts.
  9157. """
  9158. return _mupdf.ll_fz_new_base14_font(name)
  9159. def ll_fz_new_bbox_device(rectp):
  9160. r"""
  9161. Low-level wrapper for `::fz_new_bbox_device()`.
  9162. Create a device to compute the bounding
  9163. box of all marks on a page.
  9164. The returned bounding box will be the union of all bounding
  9165. boxes of all objects on a page.
  9166. """
  9167. return _mupdf.ll_fz_new_bbox_device(rectp)
  9168. def ll_fz_new_bitmap(w, h, n, xres, yres):
  9169. r"""
  9170. Low-level wrapper for `::fz_new_bitmap()`.
  9171. Create a new bitmap.
  9172. w, h: Width and Height for the bitmap
  9173. n: Number of color components (assumed to be a divisor of 8)
  9174. xres, yres: X and Y resolutions (in pixels per inch).
  9175. Returns pointer to created bitmap structure. The bitmap
  9176. data is uninitialised.
  9177. """
  9178. return _mupdf.ll_fz_new_bitmap(w, h, n, xres, yres)
  9179. def ll_fz_new_bitmap_from_image(img, ht):
  9180. r"""
  9181. Low-level wrapper for `::fz_new_bitmap_from_image()`.
  9182. Make a bitmap from a pixmap and a halftone.
  9183. img: The image to generate from. Currently must be a single
  9184. color component with no alpha.
  9185. ht: The halftone to use. NULL implies the default halftone.
  9186. Returns the resultant bitmap. Throws exceptions in the case of
  9187. failure to allocate.
  9188. """
  9189. return _mupdf.ll_fz_new_bitmap_from_image(img, ht)
  9190. def ll_fz_new_bitmap_from_pixmap(pix, ht):
  9191. r"""
  9192. Low-level wrapper for `::fz_new_bitmap_from_pixmap()`.
  9193. Make a bitmap from a pixmap and a halftone.
  9194. pix: The pixmap to generate from. Currently must be a single
  9195. color component with no alpha.
  9196. ht: The halftone to use. NULL implies the default halftone.
  9197. Returns the resultant bitmap. Throws exceptions in the case of
  9198. failure to allocate.
  9199. """
  9200. return _mupdf.ll_fz_new_bitmap_from_pixmap(pix, ht)
  9201. def ll_fz_new_bitmap_from_pixmap_band(pix, ht, band_start):
  9202. r"""
  9203. Low-level wrapper for `::fz_new_bitmap_from_pixmap_band()`.
  9204. Make a bitmap from a pixmap and a
  9205. halftone, allowing for the position of the pixmap within an
  9206. overall banded rendering.
  9207. pix: The pixmap to generate from. Currently must be a single
  9208. color component with no alpha.
  9209. ht: The halftone to use. NULL implies the default halftone.
  9210. band_start: Vertical offset within the overall banded rendering
  9211. (in pixels)
  9212. Returns the resultant bitmap. Throws exceptions in the case of
  9213. failure to allocate.
  9214. """
  9215. return _mupdf.ll_fz_new_bitmap_from_pixmap_band(pix, ht, band_start)
  9216. def ll_fz_new_brotli_data(compressed_length, source, source_length, level):
  9217. r"""
  9218. Low-level wrapper for `::fz_new_brotli_data()`.
  9219. This function has out-params. Python/C# wrappers look like:
  9220. `ll_fz_new_brotli_data(const unsigned char *source, size_t source_length, ::fz_brotli_level level)` => `(unsigned char *, size_t compressed_length)`
  9221. Compress source_length bytes of data starting
  9222. at source, into a new memory block malloced for that purpose.
  9223. compressed_length is updated on exit to contain the size used.
  9224. Ownership of the block is returned from this function, and the
  9225. caller is therefore responsible for freeing it. The block may be
  9226. considerably larger than is actually required. The caller is
  9227. free to fz_realloc it down if it wants to.
  9228. """
  9229. return _mupdf.ll_fz_new_brotli_data(compressed_length, source, source_length, level)
  9230. def ll_fz_new_brotli_data_from_buffer(compressed_length, buffer, level):
  9231. r"""
  9232. Low-level wrapper for `::fz_new_brotli_data_from_buffer()`.
  9233. This function has out-params. Python/C# wrappers look like:
  9234. `ll_fz_new_brotli_data_from_buffer(::fz_buffer *buffer, ::fz_brotli_level level)` => `(unsigned char *, size_t compressed_length)`
  9235. Compress the contents of a fz_buffer into a
  9236. new block malloced for that purpose. *compressed_length is
  9237. updated on exit to contain the size used. Ownership of the block
  9238. is returned from this function, and the caller is therefore
  9239. responsible for freeing it. The block may be considerably larger
  9240. than is actually required. The caller is free to fz_realloc it
  9241. down if it wants to.
  9242. """
  9243. return _mupdf.ll_fz_new_brotli_data_from_buffer(compressed_length, buffer, level)
  9244. def ll_fz_new_buffer(capacity):
  9245. r"""Low-level wrapper for `::fz_new_buffer()`."""
  9246. return _mupdf.ll_fz_new_buffer(capacity)
  9247. def ll_fz_new_buffer_from_base64(data, size):
  9248. r"""
  9249. Low-level wrapper for `::fz_new_buffer_from_base64()`.
  9250. Create a new buffer with data decoded from a base64 input string.
  9251. """
  9252. return _mupdf.ll_fz_new_buffer_from_base64(data, size)
  9253. def ll_fz_new_buffer_from_copied_data(data, size):
  9254. r"""
  9255. Low-level wrapper for `::fz_new_buffer_from_copied_data()`.
  9256. Create a new buffer containing a copy of the passed data.
  9257. """
  9258. return _mupdf.ll_fz_new_buffer_from_copied_data(data, size)
  9259. def ll_fz_new_buffer_from_data(data, size):
  9260. r"""
  9261. Low-level wrapper for `::fz_new_buffer_from_data()`.
  9262. Create a new buffer with existing data.
  9263. data: Pointer to existing data.
  9264. size: Size of existing data.
  9265. Takes ownership of data. Does not make a copy. Calls fz_free on
  9266. the data when the buffer is deallocated. Do not use 'data' after
  9267. passing to this function.
  9268. Returns pointer to new buffer. Throws exception on allocation
  9269. failure.
  9270. """
  9271. return _mupdf.ll_fz_new_buffer_from_data(data, size)
  9272. def ll_fz_new_buffer_from_display_list(list, options):
  9273. r"""Low-level wrapper for `::fz_new_buffer_from_display_list()`."""
  9274. return _mupdf.ll_fz_new_buffer_from_display_list(list, options)
  9275. def ll_fz_new_buffer_from_image_as_jpeg(image, color_params, quality, invert_cmyk):
  9276. r"""Low-level wrapper for `::fz_new_buffer_from_image_as_jpeg()`."""
  9277. return _mupdf.ll_fz_new_buffer_from_image_as_jpeg(image, color_params, quality, invert_cmyk)
  9278. def ll_fz_new_buffer_from_image_as_jpx(image, color_params, quality):
  9279. r"""Low-level wrapper for `::fz_new_buffer_from_image_as_jpx()`."""
  9280. return _mupdf.ll_fz_new_buffer_from_image_as_jpx(image, color_params, quality)
  9281. def ll_fz_new_buffer_from_image_as_pam(image, color_params):
  9282. r"""Low-level wrapper for `::fz_new_buffer_from_image_as_pam()`."""
  9283. return _mupdf.ll_fz_new_buffer_from_image_as_pam(image, color_params)
  9284. def ll_fz_new_buffer_from_image_as_pbm(image, color_params):
  9285. r"""Low-level wrapper for `::fz_new_buffer_from_image_as_pbm()`."""
  9286. return _mupdf.ll_fz_new_buffer_from_image_as_pbm(image, color_params)
  9287. def ll_fz_new_buffer_from_image_as_pkm(image, color_params):
  9288. r"""Low-level wrapper for `::fz_new_buffer_from_image_as_pkm()`."""
  9289. return _mupdf.ll_fz_new_buffer_from_image_as_pkm(image, color_params)
  9290. def ll_fz_new_buffer_from_image_as_png(image, color_params):
  9291. r"""
  9292. Low-level wrapper for `::fz_new_buffer_from_image_as_png()`.
  9293. Re-encode a given image as a PNG into a buffer.
  9294. Ownership of the buffer is returned.
  9295. """
  9296. return _mupdf.ll_fz_new_buffer_from_image_as_png(image, color_params)
  9297. def ll_fz_new_buffer_from_image_as_pnm(image, color_params):
  9298. r"""Low-level wrapper for `::fz_new_buffer_from_image_as_pnm()`."""
  9299. return _mupdf.ll_fz_new_buffer_from_image_as_pnm(image, color_params)
  9300. def ll_fz_new_buffer_from_image_as_psd(image, color_params):
  9301. r"""Low-level wrapper for `::fz_new_buffer_from_image_as_psd()`."""
  9302. return _mupdf.ll_fz_new_buffer_from_image_as_psd(image, color_params)
  9303. def ll_fz_new_buffer_from_page(page, options):
  9304. r"""Low-level wrapper for `::fz_new_buffer_from_page()`."""
  9305. return _mupdf.ll_fz_new_buffer_from_page(page, options)
  9306. def ll_fz_new_buffer_from_page_number(doc, number, options):
  9307. r"""Low-level wrapper for `::fz_new_buffer_from_page_number()`."""
  9308. return _mupdf.ll_fz_new_buffer_from_page_number(doc, number, options)
  9309. def ll_fz_new_buffer_from_page_with_format(page, format, options, transform, cookie):
  9310. r"""
  9311. Low-level wrapper for `::fz_new_buffer_from_page_with_format()`.
  9312. Returns an fz_buffer containing a page after conversion to specified format.
  9313. page: The page to convert.
  9314. format, options: Passed to fz_new_document_writer_with_output() internally.
  9315. transform, cookie: Passed to fz_run_page() internally.
  9316. """
  9317. return _mupdf.ll_fz_new_buffer_from_page_with_format(page, format, options, transform, cookie)
  9318. def ll_fz_new_buffer_from_pixmap_as_jpeg(pixmap, color_params, quality, invert_cmyk):
  9319. r"""Low-level wrapper for `::fz_new_buffer_from_pixmap_as_jpeg()`."""
  9320. return _mupdf.ll_fz_new_buffer_from_pixmap_as_jpeg(pixmap, color_params, quality, invert_cmyk)
  9321. def ll_fz_new_buffer_from_pixmap_as_jpx(pix, color_params, quality):
  9322. r"""Low-level wrapper for `::fz_new_buffer_from_pixmap_as_jpx()`."""
  9323. return _mupdf.ll_fz_new_buffer_from_pixmap_as_jpx(pix, color_params, quality)
  9324. def ll_fz_new_buffer_from_pixmap_as_pam(pixmap, color_params):
  9325. r"""Low-level wrapper for `::fz_new_buffer_from_pixmap_as_pam()`."""
  9326. return _mupdf.ll_fz_new_buffer_from_pixmap_as_pam(pixmap, color_params)
  9327. def ll_fz_new_buffer_from_pixmap_as_pbm(pixmap, color_params):
  9328. r"""Low-level wrapper for `::fz_new_buffer_from_pixmap_as_pbm()`."""
  9329. return _mupdf.ll_fz_new_buffer_from_pixmap_as_pbm(pixmap, color_params)
  9330. def ll_fz_new_buffer_from_pixmap_as_pkm(pixmap, color_params):
  9331. r"""Low-level wrapper for `::fz_new_buffer_from_pixmap_as_pkm()`."""
  9332. return _mupdf.ll_fz_new_buffer_from_pixmap_as_pkm(pixmap, color_params)
  9333. def ll_fz_new_buffer_from_pixmap_as_png(pixmap, color_params):
  9334. r"""
  9335. Low-level wrapper for `::fz_new_buffer_from_pixmap_as_png()`.
  9336. Re-encode a given pixmap as a PNG into a buffer.
  9337. Ownership of the buffer is returned.
  9338. """
  9339. return _mupdf.ll_fz_new_buffer_from_pixmap_as_png(pixmap, color_params)
  9340. def ll_fz_new_buffer_from_pixmap_as_pnm(pixmap, color_params):
  9341. r"""Low-level wrapper for `::fz_new_buffer_from_pixmap_as_pnm()`."""
  9342. return _mupdf.ll_fz_new_buffer_from_pixmap_as_pnm(pixmap, color_params)
  9343. def ll_fz_new_buffer_from_pixmap_as_psd(pix, color_params):
  9344. r"""Low-level wrapper for `::fz_new_buffer_from_pixmap_as_psd()`."""
  9345. return _mupdf.ll_fz_new_buffer_from_pixmap_as_psd(pix, color_params)
  9346. def ll_fz_new_buffer_from_shared_data(data, size):
  9347. r"""
  9348. Low-level wrapper for `::fz_new_buffer_from_shared_data()`.
  9349. Like fz_new_buffer, but does not take ownership.
  9350. """
  9351. return _mupdf.ll_fz_new_buffer_from_shared_data(data, size)
  9352. def ll_fz_new_buffer_from_stext_page(text):
  9353. r"""
  9354. Low-level wrapper for `::fz_new_buffer_from_stext_page()`.
  9355. Convert structured text into plain text.
  9356. """
  9357. return _mupdf.ll_fz_new_buffer_from_stext_page(text)
  9358. def ll_fz_new_builtin_font(name, is_bold, is_italic):
  9359. r"""Low-level wrapper for `::fz_new_builtin_font()`."""
  9360. return _mupdf.ll_fz_new_builtin_font(name, is_bold, is_italic)
  9361. def ll_fz_new_cal_gray_colorspace(wp, bp, gamma):
  9362. r"""
  9363. Low-level wrapper for `::fz_new_cal_gray_colorspace()`.
  9364. Create a calibrated gray colorspace.
  9365. The returned reference should be dropped when it is finished
  9366. with.
  9367. Colorspaces are immutable once created.
  9368. """
  9369. return _mupdf.ll_fz_new_cal_gray_colorspace(wp, bp, gamma)
  9370. def ll_fz_new_cal_rgb_colorspace(wp, bp, gamma, matrix):
  9371. r"""
  9372. Low-level wrapper for `::fz_new_cal_rgb_colorspace()`.
  9373. Create a calibrated rgb colorspace.
  9374. The returned reference should be dropped when it is finished
  9375. with.
  9376. Colorspaces are immutable once created.
  9377. """
  9378. return _mupdf.ll_fz_new_cal_rgb_colorspace(wp, bp, gamma, matrix)
  9379. def ll_fz_new_cbz_writer(path, options):
  9380. r"""Low-level wrapper for `::fz_new_cbz_writer()`."""
  9381. return _mupdf.ll_fz_new_cbz_writer(path, options)
  9382. def ll_fz_new_cbz_writer_with_output(out, options):
  9383. r"""Low-level wrapper for `::fz_new_cbz_writer_with_output()`."""
  9384. return _mupdf.ll_fz_new_cbz_writer_with_output(out, options)
  9385. def ll_fz_new_cjk_font(ordering):
  9386. r"""Low-level wrapper for `::fz_new_cjk_font()`."""
  9387. return _mupdf.ll_fz_new_cjk_font(ordering)
  9388. def ll_fz_new_color_pcl_band_writer(out, options):
  9389. r"""
  9390. Low-level wrapper for `::fz_new_color_pcl_band_writer()`.
  9391. Create a new band writer, outputting color pcl.
  9392. """
  9393. return _mupdf.ll_fz_new_color_pcl_band_writer(out, options)
  9394. def ll_fz_new_colorspace(type, flags, n, name):
  9395. r"""
  9396. Low-level wrapper for `::fz_new_colorspace()`.
  9397. Creates a new colorspace instance and returns a reference.
  9398. No internal checking is done that the colorspace type (e.g.
  9399. CMYK) matches with the flags (e.g. FZ_COLORSPACE_HAS_CMYK) or
  9400. colorant count (n) or name.
  9401. The reference should be dropped when it is finished with.
  9402. Colorspaces are immutable once created (with the exception of
  9403. setting up colorant names for separation spaces).
  9404. """
  9405. return _mupdf.ll_fz_new_colorspace(type, flags, n, name)
  9406. def ll_fz_new_compressed_buffer():
  9407. r"""
  9408. Low-level wrapper for `::fz_new_compressed_buffer()`.
  9409. Create a new, UNKNOWN format, compressed_buffer.
  9410. """
  9411. return _mupdf.ll_fz_new_compressed_buffer()
  9412. def ll_fz_new_context_imp(alloc, locks, max_store, version):
  9413. r"""Low-level wrapper for `::fz_new_context_imp()`."""
  9414. return _mupdf.ll_fz_new_context_imp(alloc, locks, max_store, version)
  9415. def ll_fz_new_csv_writer(path, options):
  9416. r"""Low-level wrapper for `::fz_new_csv_writer()`."""
  9417. return _mupdf.ll_fz_new_csv_writer(path, options)
  9418. def ll_fz_new_csv_writer_with_output(out, options):
  9419. r"""Low-level wrapper for `::fz_new_csv_writer_with_output()`."""
  9420. return _mupdf.ll_fz_new_csv_writer_with_output(out, options)
  9421. def ll_fz_new_default_colorspaces():
  9422. r"""
  9423. Low-level wrapper for `::fz_new_default_colorspaces()`.
  9424. Create a new default colorspace structure with values inherited
  9425. from the context, and return a reference to it.
  9426. These can be overridden using fz_set_default_xxxx.
  9427. These should not be overridden while more than one caller has
  9428. the reference for fear of race conditions.
  9429. The caller should drop this reference once finished with it.
  9430. """
  9431. return _mupdf.ll_fz_new_default_colorspaces()
  9432. def ll_fz_new_deflate_output(chain, effort, raw):
  9433. r"""Low-level wrapper for `::fz_new_deflate_output()`."""
  9434. return _mupdf.ll_fz_new_deflate_output(chain, effort, raw)
  9435. def ll_fz_new_deflated_data(compressed_length, source, source_length, level):
  9436. r"""
  9437. Low-level wrapper for `::fz_new_deflated_data()`.
  9438. This function has out-params. Python/C# wrappers look like:
  9439. `ll_fz_new_deflated_data(const unsigned char *source, size_t source_length, ::fz_deflate_level level)` => `(unsigned char *, size_t compressed_length)`
  9440. Compress source_length bytes of data starting
  9441. at source, into a new memory block malloced for that purpose.
  9442. compressed_length is updated on exit to contain the size used.
  9443. Ownership of the block is returned from this function, and the
  9444. caller is therefore responsible for freeing it. The block may be
  9445. considerably larger than is actually required. The caller is
  9446. free to fz_realloc it down if it wants to.
  9447. """
  9448. return _mupdf.ll_fz_new_deflated_data(compressed_length, source, source_length, level)
  9449. def ll_fz_new_deflated_data_from_buffer(compressed_length, buffer, level):
  9450. r"""
  9451. Low-level wrapper for `::fz_new_deflated_data_from_buffer()`.
  9452. This function has out-params. Python/C# wrappers look like:
  9453. `ll_fz_new_deflated_data_from_buffer(::fz_buffer *buffer, ::fz_deflate_level level)` => `(unsigned char *, size_t compressed_length)`
  9454. Compress the contents of a fz_buffer into a
  9455. new block malloced for that purpose. *compressed_length is
  9456. updated on exit to contain the size used. Ownership of the block
  9457. is returned from this function, and the caller is therefore
  9458. responsible for freeing it. The block may be considerably larger
  9459. than is actually required. The caller is free to fz_realloc it
  9460. down if it wants to.
  9461. """
  9462. return _mupdf.ll_fz_new_deflated_data_from_buffer(compressed_length, buffer, level)
  9463. def ll_fz_new_device_of_size(size):
  9464. r"""
  9465. Low-level wrapper for `::fz_new_device_of_size()`.
  9466. Devices are created by calls to device implementations, for
  9467. instance: foo_new_device(). These will be implemented by calling
  9468. fz_new_derived_device(ctx, foo_device) where foo_device is a
  9469. structure "derived from" fz_device, for instance
  9470. typedef struct { fz_device base; ...extras...} foo_device;
  9471. """
  9472. return _mupdf.ll_fz_new_device_of_size(size)
  9473. def ll_fz_new_display_list(mediabox):
  9474. r"""
  9475. Low-level wrapper for `::fz_new_display_list()`.
  9476. Create an empty display list.
  9477. A display list contains drawing commands (text, images, etc.).
  9478. Use fz_new_list_device for populating the list.
  9479. mediabox: Bounds of the page (in points) represented by the
  9480. display list.
  9481. """
  9482. return _mupdf.ll_fz_new_display_list(mediabox)
  9483. def ll_fz_new_display_list_from_page(page):
  9484. r"""
  9485. Low-level wrapper for `::fz_new_display_list_from_page()`.
  9486. Create a display list.
  9487. Ownership of the display list is returned to the caller.
  9488. """
  9489. return _mupdf.ll_fz_new_display_list_from_page(page)
  9490. def ll_fz_new_display_list_from_page_contents(page):
  9491. r"""
  9492. Low-level wrapper for `::fz_new_display_list_from_page_contents()`.
  9493. Create a display list from page contents (no annotations).
  9494. Ownership of the display list is returned to the caller.
  9495. """
  9496. return _mupdf.ll_fz_new_display_list_from_page_contents(page)
  9497. def ll_fz_new_display_list_from_page_number(doc, number):
  9498. r"""Low-level wrapper for `::fz_new_display_list_from_page_number()`."""
  9499. return _mupdf.ll_fz_new_display_list_from_page_number(doc, number)
  9500. def ll_fz_new_display_list_from_svg(buf, base_uri, dir, w, h):
  9501. r"""
  9502. Low-level wrapper for `::fz_new_display_list_from_svg()`.
  9503. This function has out-params. Python/C# wrappers look like:
  9504. `ll_fz_new_display_list_from_svg(::fz_buffer *buf, const char *base_uri, ::fz_archive *dir)` => `(fz_display_list *, float w, float h)`
  9505. Parse an SVG document into a display-list.
  9506. """
  9507. return _mupdf.ll_fz_new_display_list_from_svg(buf, base_uri, dir, w, h)
  9508. def ll_fz_new_display_list_from_svg_xml(xmldoc, xml, base_uri, dir, w, h):
  9509. r"""
  9510. Low-level wrapper for `::fz_new_display_list_from_svg_xml()`.
  9511. This function has out-params. Python/C# wrappers look like:
  9512. `ll_fz_new_display_list_from_svg_xml(::fz_xml_doc *xmldoc, ::fz_xml *xml, const char *base_uri, ::fz_archive *dir)` => `(fz_display_list *, float w, float h)`
  9513. Parse an SVG document into a display-list.
  9514. """
  9515. return _mupdf.ll_fz_new_display_list_from_svg_xml(xmldoc, xml, base_uri, dir, w, h)
  9516. def ll_fz_new_document_of_size(size):
  9517. r"""
  9518. Low-level wrapper for `::fz_new_document_of_size()`.
  9519. New documents are typically created by calls like
  9520. foo_new_document(fz_context *ctx, ...). These work by
  9521. deriving a new document type from fz_document, for instance:
  9522. typedef struct { fz_document base; ...extras... } foo_document;
  9523. These are allocated by calling
  9524. fz_new_derived_document(ctx, foo_document)
  9525. """
  9526. return _mupdf.ll_fz_new_document_of_size(size)
  9527. def ll_fz_new_document_writer(path, format, options):
  9528. r"""
  9529. Low-level wrapper for `::fz_new_document_writer()`.
  9530. Create a new fz_document_writer, for a
  9531. file of the given type.
  9532. path: The document name to write (or NULL for default)
  9533. format: Which format to write (currently cbz, html, pdf, pam,
  9534. pbm, pgm, pkm, png, ppm, pnm, svg, text, xhtml, docx, odt)
  9535. options: NULL, or pointer to comma separated string to control
  9536. file generation.
  9537. """
  9538. return _mupdf.ll_fz_new_document_writer(path, format, options)
  9539. def ll_fz_new_document_writer_of_size(size, begin_page, end_page, close, drop):
  9540. r"""
  9541. Low-level wrapper for `::fz_new_document_writer_of_size()`.
  9542. Internal function to allocate a
  9543. block for a derived document_writer structure, with the base
  9544. structure's function pointers populated correctly, and the extra
  9545. space zero initialised.
  9546. """
  9547. return _mupdf.ll_fz_new_document_writer_of_size(size, begin_page, end_page, close, drop)
  9548. def ll_fz_new_document_writer_with_buffer(buf, format, options):
  9549. r"""Low-level wrapper for `::fz_new_document_writer_with_buffer()`."""
  9550. return _mupdf.ll_fz_new_document_writer_with_buffer(buf, format, options)
  9551. def ll_fz_new_document_writer_with_output(out, format, options):
  9552. r"""
  9553. Low-level wrapper for `::fz_new_document_writer_with_output()`.
  9554. Like fz_new_document_writer but takes a fz_output for writing
  9555. the result. Only works for multi-page formats.
  9556. """
  9557. return _mupdf.ll_fz_new_document_writer_with_output(out, format, options)
  9558. def ll_fz_new_docx_writer(path, options):
  9559. r"""Low-level wrapper for `::fz_new_docx_writer()`."""
  9560. return _mupdf.ll_fz_new_docx_writer(path, options)
  9561. def ll_fz_new_docx_writer_with_output(out, options):
  9562. r"""Low-level wrapper for `::fz_new_docx_writer_with_output()`."""
  9563. return _mupdf.ll_fz_new_docx_writer_with_output(out, options)
  9564. def ll_fz_new_dom(tag):
  9565. r"""
  9566. Low-level wrapper for `::fz_new_dom()`.
  9567. Make new xml dom root element.
  9568. """
  9569. return _mupdf.ll_fz_new_dom(tag)
  9570. def ll_fz_new_dom_node(dom, tag):
  9571. r"""
  9572. Low-level wrapper for `::fz_new_dom_node()`.
  9573. Create a new dom node.
  9574. This will NOT be linked in yet.
  9575. """
  9576. return _mupdf.ll_fz_new_dom_node(dom, tag)
  9577. def ll_fz_new_dom_text_node(dom, text):
  9578. r"""
  9579. Low-level wrapper for `::fz_new_dom_text_node()`.
  9580. Create a new dom text node.
  9581. This will NOT be linked in yet.
  9582. """
  9583. return _mupdf.ll_fz_new_dom_text_node(dom, text)
  9584. def ll_fz_new_draw_device(transform, dest):
  9585. r"""
  9586. Low-level wrapper for `::fz_new_draw_device()`.
  9587. Create a device to draw on a pixmap.
  9588. dest: Target pixmap for the draw device. See fz_new_pixmap*
  9589. for how to obtain a pixmap. The pixmap is not cleared by the
  9590. draw device, see fz_clear_pixmap* for how to clear it prior to
  9591. calling fz_new_draw_device. Free the device by calling
  9592. fz_drop_device.
  9593. transform: Transform from user space in points to device space
  9594. in pixels.
  9595. """
  9596. return _mupdf.ll_fz_new_draw_device(transform, dest)
  9597. def ll_fz_new_draw_device_type3(transform, dest):
  9598. r"""Low-level wrapper for `::fz_new_draw_device_type3()`."""
  9599. return _mupdf.ll_fz_new_draw_device_type3(transform, dest)
  9600. def ll_fz_new_draw_device_with_bbox(transform, dest, clip):
  9601. r"""
  9602. Low-level wrapper for `::fz_new_draw_device_with_bbox()`.
  9603. Create a device to draw on a pixmap.
  9604. dest: Target pixmap for the draw device. See fz_new_pixmap*
  9605. for how to obtain a pixmap. The pixmap is not cleared by the
  9606. draw device, see fz_clear_pixmap* for how to clear it prior to
  9607. calling fz_new_draw_device. Free the device by calling
  9608. fz_drop_device.
  9609. transform: Transform from user space in points to device space
  9610. in pixels.
  9611. clip: Bounding box to restrict any marking operations of the
  9612. draw device.
  9613. """
  9614. return _mupdf.ll_fz_new_draw_device_with_bbox(transform, dest, clip)
  9615. def ll_fz_new_draw_device_with_bbox_proof(transform, dest, clip, cs):
  9616. r"""
  9617. Low-level wrapper for `::fz_new_draw_device_with_bbox_proof()`.
  9618. Create a device to draw on a pixmap.
  9619. dest: Target pixmap for the draw device. See fz_new_pixmap*
  9620. for how to obtain a pixmap. The pixmap is not cleared by the
  9621. draw device, see fz_clear_pixmap* for how to clear it prior to
  9622. calling fz_new_draw_device. Free the device by calling
  9623. fz_drop_device.
  9624. transform: Transform from user space in points to device space
  9625. in pixels.
  9626. clip: Bounding box to restrict any marking operations of the
  9627. draw device.
  9628. proof_cs: Color space to render to prior to mapping to color
  9629. space defined by pixmap.
  9630. """
  9631. return _mupdf.ll_fz_new_draw_device_with_bbox_proof(transform, dest, clip, cs)
  9632. def ll_fz_new_draw_device_with_options(options, mediabox, pixmap):
  9633. r"""
  9634. Low-level wrapper for `::fz_new_draw_device_with_options()`.
  9635. This function has out-params. Python/C# wrappers look like:
  9636. `ll_fz_new_draw_device_with_options(const ::fz_draw_options *options, ::fz_rect mediabox, ::fz_pixmap **pixmap)` => `(fz_device *)`
  9637. Create a new pixmap and draw device, using the specified options.
  9638. options: Options to configure the draw device, and choose the
  9639. resolution and colorspace.
  9640. mediabox: The bounds of the page in points.
  9641. pixmap: An out parameter containing the newly created pixmap.
  9642. """
  9643. return _mupdf.ll_fz_new_draw_device_with_options(options, mediabox, pixmap)
  9644. def ll_fz_new_draw_device_with_proof(transform, dest, proof_cs):
  9645. r"""
  9646. Low-level wrapper for `::fz_new_draw_device_with_proof()`.
  9647. Create a device to draw on a pixmap.
  9648. dest: Target pixmap for the draw device. See fz_new_pixmap*
  9649. for how to obtain a pixmap. The pixmap is not cleared by the
  9650. draw device, see fz_clear_pixmap* for how to clear it prior to
  9651. calling fz_new_draw_device. Free the device by calling
  9652. fz_drop_device.
  9653. transform: Transform from user space in points to device space
  9654. in pixels.
  9655. proof_cs: Intermediate color space to map though when mapping to
  9656. color space defined by pixmap.
  9657. """
  9658. return _mupdf.ll_fz_new_draw_device_with_proof(transform, dest, proof_cs)
  9659. def ll_fz_new_font_from_buffer(name, buffer, index, use_glyph_bbox):
  9660. r"""
  9661. Low-level wrapper for `::fz_new_font_from_buffer()`.
  9662. Create a new font from a font file in a fz_buffer.
  9663. Fonts created in this way, will be eligible for embedding by default.
  9664. name: Name of font (leave NULL to use name from font).
  9665. buffer: Buffer to load from.
  9666. index: Which font from the file to load (0 for default).
  9667. use_glyph_box: 1 if we should use the glyph bbox, 0 otherwise.
  9668. Returns new font handle, or throws exception on error.
  9669. """
  9670. return _mupdf.ll_fz_new_font_from_buffer(name, buffer, index, use_glyph_bbox)
  9671. def ll_fz_new_font_from_file(name, path, index, use_glyph_bbox):
  9672. r"""
  9673. Low-level wrapper for `::fz_new_font_from_file()`.
  9674. Create a new font from a font file.
  9675. Fonts created in this way, will be eligible for embedding by default.
  9676. name: Name of font (leave NULL to use name from font).
  9677. path: File path to load from.
  9678. index: Which font from the file to load (0 for default).
  9679. use_glyph_box: 1 if we should use the glyph bbox, 0 otherwise.
  9680. Returns new font handle, or throws exception on error.
  9681. """
  9682. return _mupdf.ll_fz_new_font_from_file(name, path, index, use_glyph_bbox)
  9683. def ll_fz_new_font_from_memory(name, data, len, index, use_glyph_bbox):
  9684. r"""
  9685. Low-level wrapper for `::fz_new_font_from_memory()`.
  9686. Create a new font from a font file in memory.
  9687. Fonts created in this way, will be eligible for embedding by default.
  9688. name: Name of font (leave NULL to use name from font).
  9689. data: Pointer to the font file data.
  9690. len: Length of the font file data.
  9691. index: Which font from the file to load (0 for default).
  9692. use_glyph_box: 1 if we should use the glyph bbox, 0 otherwise.
  9693. Returns new font handle, or throws exception on error.
  9694. """
  9695. return _mupdf.ll_fz_new_font_from_memory(name, data, len, index, use_glyph_bbox)
  9696. def ll_fz_new_function_of_size(size, size2, m, n, eval, drop):
  9697. r"""Low-level wrapper for `::fz_new_function_of_size()`."""
  9698. return _mupdf.ll_fz_new_function_of_size(size, size2, m, n, eval, drop)
  9699. def ll_fz_new_hash_table(initialsize, keylen, lock, drop_val):
  9700. r"""
  9701. Low-level wrapper for `::fz_new_hash_table()`.
  9702. Create a new hash table.
  9703. initialsize: The initial size of the hashtable. The hashtable
  9704. may grow (double in size) if it starts to get crowded (80%
  9705. full).
  9706. keylen: byte length for each key.
  9707. lock: -1 for no lock, otherwise the FZ_LOCK to use to protect
  9708. this table.
  9709. drop_val: Function to use to destroy values on table drop.
  9710. """
  9711. return _mupdf.ll_fz_new_hash_table(initialsize, keylen, lock, drop_val)
  9712. def ll_fz_new_icc_colorspace(type, flags, name, buf):
  9713. r"""
  9714. Low-level wrapper for `::fz_new_icc_colorspace()`.
  9715. Create a colorspace from an ICC profile supplied in buf.
  9716. Limited checking is done to ensure that the colorspace type is
  9717. appropriate for the supplied ICC profile.
  9718. An additional reference is taken to buf, which will be dropped
  9719. on destruction. Ownership is NOT passed in.
  9720. The returned reference should be dropped when it is finished
  9721. with.
  9722. Colorspaces are immutable once created.
  9723. """
  9724. return _mupdf.ll_fz_new_icc_colorspace(type, flags, name, buf)
  9725. def ll_fz_new_image_from_buffer(buffer):
  9726. r"""
  9727. Low-level wrapper for `::fz_new_image_from_buffer()`.
  9728. Create a new image from a
  9729. buffer of data, inferring its type from the format
  9730. of the data.
  9731. """
  9732. return _mupdf.ll_fz_new_image_from_buffer(buffer)
  9733. def ll_fz_new_image_from_compressed_buffer(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, buffer, mask):
  9734. r"""
  9735. Low-level wrapper for `::fz_new_image_from_compressed_buffer()`.
  9736. Create an image based on
  9737. the data in the supplied compressed buffer.
  9738. w,h: Width and height of the created image.
  9739. bpc: Bits per component.
  9740. colorspace: The colorspace (determines the number of components,
  9741. and any color conversions required while decoding).
  9742. xres, yres: The X and Y resolutions respectively.
  9743. interpolate: 1 if interpolation should be used when decoding
  9744. this image, 0 otherwise.
  9745. imagemask: 1 if this is an imagemask (i.e. transparency bitmap
  9746. mask), 0 otherwise.
  9747. decode: NULL, or a pointer to to a decode array. The default
  9748. decode array is [0 1] (repeated n times, for n color components).
  9749. colorkey: NULL, or a pointer to a colorkey array. The default
  9750. colorkey array is [0 255] (repeated n times, for n color
  9751. components).
  9752. buffer: Buffer of compressed data and compression parameters.
  9753. Ownership of this reference is passed in.
  9754. mask: NULL, or another image to use as a mask for this one.
  9755. A new reference is taken to this image. Supplying a masked
  9756. image as a mask to another image is illegal!
  9757. """
  9758. return _mupdf.ll_fz_new_image_from_compressed_buffer(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, buffer, mask)
  9759. def ll_fz_new_image_from_compressed_buffer2(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, buffer, mask):
  9760. r"""
  9761. Low-level wrapper for `::fz_new_image_from_compressed_buffer2()`. Swig-friendly wrapper for fz_new_image_from_compressed_buffer(),
  9762. uses specified `decode` and `colorkey` if they are not null (in which
  9763. case we assert that they have size `2*fz_colorspace_n(colorspace)`).
  9764. """
  9765. return _mupdf.ll_fz_new_image_from_compressed_buffer2(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, buffer, mask)
  9766. def ll_fz_new_image_from_display_list(w, h, list):
  9767. r"""
  9768. Low-level wrapper for `::fz_new_image_from_display_list()`.
  9769. Create a new image from a display list.
  9770. w, h: The conceptual width/height of the image.
  9771. transform: The matrix that needs to be applied to the given
  9772. list to make it render to the unit square.
  9773. list: The display list.
  9774. """
  9775. return _mupdf.ll_fz_new_image_from_display_list(w, h, list)
  9776. def ll_fz_new_image_from_file(path):
  9777. r"""
  9778. Low-level wrapper for `::fz_new_image_from_file()`.
  9779. Create a new image from the contents
  9780. of a file, inferring its type from the format of the
  9781. data.
  9782. """
  9783. return _mupdf.ll_fz_new_image_from_file(path)
  9784. def ll_fz_new_image_from_pixmap(pixmap, mask):
  9785. r"""
  9786. Low-level wrapper for `::fz_new_image_from_pixmap()`.
  9787. Create an image from the given
  9788. pixmap.
  9789. pixmap: The pixmap to base the image upon. A new reference
  9790. to this is taken.
  9791. mask: NULL, or another image to use as a mask for this one.
  9792. A new reference is taken to this image. Supplying a masked
  9793. image as a mask to another image is illegal!
  9794. """
  9795. return _mupdf.ll_fz_new_image_from_pixmap(pixmap, mask)
  9796. def ll_fz_new_image_from_svg(buf, base_uri, dir):
  9797. r"""
  9798. Low-level wrapper for `::fz_new_image_from_svg()`.
  9799. Create a scalable image from an SVG document.
  9800. """
  9801. return _mupdf.ll_fz_new_image_from_svg(buf, base_uri, dir)
  9802. def ll_fz_new_image_from_svg_xml(xmldoc, xml, base_uri, dir):
  9803. r"""
  9804. Low-level wrapper for `::fz_new_image_from_svg_xml()`.
  9805. Create a scalable image from an SVG document.
  9806. """
  9807. return _mupdf.ll_fz_new_image_from_svg_xml(xmldoc, xml, base_uri, dir)
  9808. def ll_fz_new_image_of_size(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, mask, size, get_pixmap, get_size, drop):
  9809. r"""
  9810. Low-level wrapper for `::fz_new_image_of_size()`.
  9811. Internal function to make a new fz_image structure
  9812. for a derived class.
  9813. w,h: Width and height of the created image.
  9814. bpc: Bits per component.
  9815. colorspace: The colorspace (determines the number of components,
  9816. and any color conversions required while decoding).
  9817. xres, yres: The X and Y resolutions respectively.
  9818. interpolate: 1 if interpolation should be used when decoding
  9819. this image, 0 otherwise.
  9820. imagemask: 1 if this is an imagemask (i.e. transparent), 0
  9821. otherwise.
  9822. decode: NULL, or a pointer to to a decode array. The default
  9823. decode array is [0 1] (repeated n times, for n color components).
  9824. colorkey: NULL, or a pointer to a colorkey array. The default
  9825. colorkey array is [0 255] (repeated n times, for n color
  9826. components).
  9827. mask: NULL, or another image to use as a mask for this one.
  9828. A new reference is taken to this image. Supplying a masked
  9829. image as a mask to another image is illegal!
  9830. size: The size of the required allocated structure (the size of
  9831. the derived structure).
  9832. get: The function to be called to obtain a decoded pixmap.
  9833. get_size: The function to be called to return the storage size
  9834. used by this image.
  9835. drop: The function to be called to dispose of this image once
  9836. the last reference is dropped.
  9837. Returns a pointer to an allocated structure of the required size,
  9838. with the first sizeof(fz_image) bytes initialised as appropriate
  9839. given the supplied parameters, and the other bytes set to zero.
  9840. """
  9841. return _mupdf.ll_fz_new_image_of_size(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, mask, size, get_pixmap, get_size, drop)
  9842. def ll_fz_new_indexed_colorspace(base, high, lookup):
  9843. r"""
  9844. Low-level wrapper for `::fz_new_indexed_colorspace()`.
  9845. Create an indexed colorspace.
  9846. The supplied lookup table is high palette entries long. Each
  9847. entry is n bytes long, where n is given by the number of
  9848. colorants in the base colorspace, one byte per colorant.
  9849. Ownership of lookup is passed it; it will be freed on
  9850. destruction, so must be heap allocated.
  9851. The colorspace will keep an additional reference to the base
  9852. colorspace that will be dropped on destruction.
  9853. The returned reference should be dropped when it is finished
  9854. with.
  9855. Colorspaces are immutable once created.
  9856. """
  9857. return _mupdf.ll_fz_new_indexed_colorspace(base, high, lookup)
  9858. def ll_fz_new_jpeg_pixmap_writer(path, options):
  9859. r"""Low-level wrapper for `::fz_new_jpeg_pixmap_writer()`."""
  9860. return _mupdf.ll_fz_new_jpeg_pixmap_writer(path, options)
  9861. def ll_fz_new_layout():
  9862. r"""
  9863. Low-level wrapper for `::fz_new_layout()`.
  9864. Create a new layout block, with new allocation pool, zero
  9865. matrices, and initialise linked pointers.
  9866. """
  9867. return _mupdf.ll_fz_new_layout()
  9868. def ll_fz_new_link_of_size(size, rect, uri):
  9869. r"""
  9870. Low-level wrapper for `::fz_new_link_of_size()`.
  9871. Create a new link record.
  9872. next is set to NULL with the expectation that the caller will
  9873. handle the linked list setup. Internal function.
  9874. Different document types will be implemented by deriving from
  9875. fz_link. This macro allocates such derived structures, and
  9876. initialises the base sections.
  9877. """
  9878. return _mupdf.ll_fz_new_link_of_size(size, rect, uri)
  9879. def ll_fz_new_list_device(list):
  9880. r"""
  9881. Low-level wrapper for `::fz_new_list_device()`.
  9882. Create a rendering device for a display list.
  9883. When the device is rendering a page it will populate the
  9884. display list with drawing commands (text, images, etc.). The
  9885. display list can later be reused to render a page many times
  9886. without having to re-interpret the page from the document file
  9887. for each rendering. Once the device is no longer needed, free
  9888. it with fz_drop_device.
  9889. list: A display list that the list device takes a reference to.
  9890. """
  9891. return _mupdf.ll_fz_new_list_device(list)
  9892. def ll_fz_new_log_for_module(module):
  9893. r"""
  9894. Low-level wrapper for `::fz_new_log_for_module()`.
  9895. Internal function to actually do the opening of the logfile.
  9896. Caller should close/drop the output when finished with it.
  9897. """
  9898. return _mupdf.ll_fz_new_log_for_module(module)
  9899. def ll_fz_new_mono_pcl_band_writer(out, options):
  9900. r"""
  9901. Low-level wrapper for `::fz_new_mono_pcl_band_writer()`.
  9902. Create a new band writer, outputting monochrome pcl.
  9903. """
  9904. return _mupdf.ll_fz_new_mono_pcl_band_writer(out, options)
  9905. def ll_fz_new_mono_pwg_band_writer(out, pwg):
  9906. r"""
  9907. Low-level wrapper for `::fz_new_mono_pwg_band_writer()`.
  9908. Create a new monochrome pwg band writer.
  9909. """
  9910. return _mupdf.ll_fz_new_mono_pwg_band_writer(out, pwg)
  9911. def ll_fz_new_multi_archive():
  9912. r"""
  9913. Low-level wrapper for `::fz_new_multi_archive()`.
  9914. Create a new multi archive (initially empty).
  9915. """
  9916. return _mupdf.ll_fz_new_multi_archive()
  9917. def ll_fz_new_ocr_device(target, ctm, mediabox, with_list, language, datadir, progress, progress_arg):
  9918. r"""
  9919. Low-level wrapper for `::fz_new_ocr_device()`.
  9920. Create a device to OCR the text on the page.
  9921. Renders the page internally to a bitmap that is then OCRd. Text
  9922. is then forwarded onto the target device.
  9923. target: The target device to receive the OCRd text.
  9924. ctm: The transform to apply to the mediabox to get the size for
  9925. the rendered page image. Also used to calculate the resolution
  9926. for the page image. In general, this will be the same as the CTM
  9927. that you pass to fz_run_page (or fz_run_display_list) to feed
  9928. this device.
  9929. mediabox: The mediabox (in points). Combined with the CTM to get
  9930. the bounds of the pixmap used internally for the rendered page
  9931. image.
  9932. with_list: If with_list is false, then all non-text operations
  9933. are forwarded instantly to the target device. This results in
  9934. the target device seeing all NON-text operations, followed by
  9935. all the text operations (derived from OCR).
  9936. If with_list is true, then all the marking operations are
  9937. collated into a display list which is then replayed to the
  9938. target device at the end.
  9939. language: NULL (for "eng"), or a pointer to a string to describe
  9940. the languages/scripts that should be used for OCR (e.g.
  9941. "eng,ara").
  9942. datadir: NULL (for ""), or a pointer to a path string otherwise
  9943. provided to Tesseract in the TESSDATA_PREFIX environment variable.
  9944. progress: NULL, or function to be called periodically to indicate
  9945. progress. Return 0 to continue, or 1 to cancel. progress_arg is
  9946. returned as the void *. The int is a value between 0 and 100 to
  9947. indicate progress.
  9948. progress_arg: A void * value to be parrotted back to the progress
  9949. function.
  9950. """
  9951. return _mupdf.ll_fz_new_ocr_device(target, ctm, mediabox, with_list, language, datadir, progress, progress_arg)
  9952. def ll_fz_new_odt_writer(path, options):
  9953. r"""Low-level wrapper for `::fz_new_odt_writer()`."""
  9954. return _mupdf.ll_fz_new_odt_writer(path, options)
  9955. def ll_fz_new_odt_writer_with_output(out, options):
  9956. r"""Low-level wrapper for `::fz_new_odt_writer_with_output()`."""
  9957. return _mupdf.ll_fz_new_odt_writer_with_output(out, options)
  9958. def ll_fz_new_outline():
  9959. r"""
  9960. Low-level wrapper for `::fz_new_outline()`.
  9961. Create a new outline entry with zeroed fields for the caller
  9962. to fill in.
  9963. """
  9964. return _mupdf.ll_fz_new_outline()
  9965. def ll_fz_new_outline_iterator(doc):
  9966. r"""
  9967. Low-level wrapper for `::fz_new_outline_iterator()`.
  9968. Get an iterator for the document outline.
  9969. Should be freed by fz_drop_outline_iterator.
  9970. """
  9971. return _mupdf.ll_fz_new_outline_iterator(doc)
  9972. def ll_fz_new_outline_iterator_of_size(size, doc):
  9973. r"""Low-level wrapper for `::fz_new_outline_iterator_of_size()`."""
  9974. return _mupdf.ll_fz_new_outline_iterator_of_size(size, doc)
  9975. def ll_fz_new_output(bufsiz, state, write, close, drop):
  9976. r"""
  9977. Low-level wrapper for `::fz_new_output()`.
  9978. Create a new output object with the given
  9979. internal state and function pointers.
  9980. state: Internal state (opaque to everything but implementation).
  9981. write: Function to output a given buffer.
  9982. close: Cleanup function to destroy state when output closed.
  9983. May permissibly be null.
  9984. """
  9985. return _mupdf.ll_fz_new_output(bufsiz, state, write, close, drop)
  9986. def ll_fz_new_output_with_buffer(buf):
  9987. r"""
  9988. Low-level wrapper for `::fz_new_output_with_buffer()`.
  9989. Open an output stream that appends
  9990. to a buffer.
  9991. buf: The buffer to append to.
  9992. """
  9993. return _mupdf.ll_fz_new_output_with_buffer(buf)
  9994. def ll_fz_new_output_with_file_ptr(file):
  9995. r"""
  9996. Low-level wrapper for `::fz_new_output_with_file_ptr()`.
  9997. Open an output stream that writes to a
  9998. given FILE *.
  9999. file: The file pointers to write to. NULL is interpreted as effectively
  10000. meaning /dev/null or similar.
  10001. """
  10002. return _mupdf.ll_fz_new_output_with_file_ptr(file)
  10003. def ll_fz_new_output_with_path(filename, append):
  10004. r"""
  10005. Low-level wrapper for `::fz_new_output_with_path()`.
  10006. Open an output stream that writes to a
  10007. given path.
  10008. filename: The filename to write to (specified in UTF-8).
  10009. append: non-zero if we should append to the file, rather than
  10010. overwriting it.
  10011. """
  10012. return _mupdf.ll_fz_new_output_with_path(filename, append)
  10013. def ll_fz_new_page_of_size(size, doc):
  10014. r"""
  10015. Low-level wrapper for `::fz_new_page_of_size()`.
  10016. Different document types will be implemented by deriving from
  10017. fz_page. This macro allocates such derived structures, and
  10018. initialises the base sections.
  10019. """
  10020. return _mupdf.ll_fz_new_page_of_size(size, doc)
  10021. def ll_fz_new_pam_band_writer(out):
  10022. r"""
  10023. Low-level wrapper for `::fz_new_pam_band_writer()`.
  10024. Create a band writer targeting pnm (greyscale, rgb or cmyk,
  10025. with or without alpha).
  10026. """
  10027. return _mupdf.ll_fz_new_pam_band_writer(out)
  10028. def ll_fz_new_pam_pixmap_writer(path, options):
  10029. r"""Low-level wrapper for `::fz_new_pam_pixmap_writer()`."""
  10030. return _mupdf.ll_fz_new_pam_pixmap_writer(path, options)
  10031. def ll_fz_new_path():
  10032. r"""
  10033. Low-level wrapper for `::fz_new_path()`.
  10034. Create a new (empty) path structure.
  10035. """
  10036. return _mupdf.ll_fz_new_path()
  10037. def ll_fz_new_pbm_band_writer(out):
  10038. r"""
  10039. Low-level wrapper for `::fz_new_pbm_band_writer()`.
  10040. Create a new band writer, targeting pbm.
  10041. """
  10042. return _mupdf.ll_fz_new_pbm_band_writer(out)
  10043. def ll_fz_new_pbm_pixmap_writer(path, options):
  10044. r"""Low-level wrapper for `::fz_new_pbm_pixmap_writer()`."""
  10045. return _mupdf.ll_fz_new_pbm_pixmap_writer(path, options)
  10046. def ll_fz_new_pcl_writer(path, options):
  10047. r"""Low-level wrapper for `::fz_new_pcl_writer()`."""
  10048. return _mupdf.ll_fz_new_pcl_writer(path, options)
  10049. def ll_fz_new_pcl_writer_with_output(out, options):
  10050. r"""Low-level wrapper for `::fz_new_pcl_writer_with_output()`."""
  10051. return _mupdf.ll_fz_new_pcl_writer_with_output(out, options)
  10052. def ll_fz_new_pclm_band_writer(out, options):
  10053. r"""
  10054. Low-level wrapper for `::fz_new_pclm_band_writer()`.
  10055. Create a new band writer, outputting pclm
  10056. """
  10057. return _mupdf.ll_fz_new_pclm_band_writer(out, options)
  10058. def ll_fz_new_pclm_writer(path, options):
  10059. r"""Low-level wrapper for `::fz_new_pclm_writer()`."""
  10060. return _mupdf.ll_fz_new_pclm_writer(path, options)
  10061. def ll_fz_new_pclm_writer_with_output(out, options):
  10062. r"""Low-level wrapper for `::fz_new_pclm_writer_with_output()`."""
  10063. return _mupdf.ll_fz_new_pclm_writer_with_output(out, options)
  10064. def ll_fz_new_pdf_document_from_fz_document(ptr):
  10065. r"""Low-level wrapper for `::fz_new_pdf_document_from_fz_document()`."""
  10066. return _mupdf.ll_fz_new_pdf_document_from_fz_document(ptr)
  10067. def ll_fz_new_pdf_writer(path, options):
  10068. r"""
  10069. Low-level wrapper for `::fz_new_pdf_writer()`.
  10070. Document writers for various possible output formats.
  10071. All of the "_with_output" variants pass the ownership of out in
  10072. immediately upon calling. The writers are responsible for
  10073. dropping the fz_output when they are finished with it (even
  10074. if they throw an exception during creation).
  10075. """
  10076. return _mupdf.ll_fz_new_pdf_writer(path, options)
  10077. def ll_fz_new_pdf_writer_with_output(out, options):
  10078. r"""Low-level wrapper for `::fz_new_pdf_writer_with_output()`."""
  10079. return _mupdf.ll_fz_new_pdf_writer_with_output(out, options)
  10080. def ll_fz_new_pdfocr_band_writer(out, options):
  10081. r"""
  10082. Low-level wrapper for `::fz_new_pdfocr_band_writer()`.
  10083. Create a new band writer, outputting pdfocr.
  10084. Ownership of output stays with the caller, the band writer
  10085. borrows the reference. The caller must keep the output around
  10086. for the duration of the band writer, and then close/drop as
  10087. appropriate.
  10088. """
  10089. return _mupdf.ll_fz_new_pdfocr_band_writer(out, options)
  10090. def ll_fz_new_pdfocr_writer(path, options):
  10091. r"""Low-level wrapper for `::fz_new_pdfocr_writer()`."""
  10092. return _mupdf.ll_fz_new_pdfocr_writer(path, options)
  10093. def ll_fz_new_pdfocr_writer_with_output(out, options):
  10094. r"""Low-level wrapper for `::fz_new_pdfocr_writer_with_output()`."""
  10095. return _mupdf.ll_fz_new_pdfocr_writer_with_output(out, options)
  10096. def ll_fz_new_pgm_pixmap_writer(path, options):
  10097. r"""Low-level wrapper for `::fz_new_pgm_pixmap_writer()`."""
  10098. return _mupdf.ll_fz_new_pgm_pixmap_writer(path, options)
  10099. def ll_fz_new_pixmap(cs, w, h, seps, alpha):
  10100. r"""
  10101. Low-level wrapper for `::fz_new_pixmap()`.
  10102. Create a new pixmap, with its origin at (0,0)
  10103. cs: The colorspace to use for the pixmap, or NULL for an alpha
  10104. plane/mask.
  10105. w: The width of the pixmap (in pixels)
  10106. h: The height of the pixmap (in pixels)
  10107. seps: Details of separations.
  10108. alpha: 0 for no alpha, 1 for alpha.
  10109. Returns a pointer to the new pixmap. Throws exception on failure
  10110. to allocate.
  10111. """
  10112. return _mupdf.ll_fz_new_pixmap(cs, w, h, seps, alpha)
  10113. def ll_fz_new_pixmap_from_alpha_channel(src):
  10114. r"""Low-level wrapper for `::fz_new_pixmap_from_alpha_channel()`."""
  10115. return _mupdf.ll_fz_new_pixmap_from_alpha_channel(src)
  10116. def ll_fz_new_pixmap_from_color_and_mask(color, mask):
  10117. r"""Low-level wrapper for `::fz_new_pixmap_from_color_and_mask()`."""
  10118. return _mupdf.ll_fz_new_pixmap_from_color_and_mask(color, mask)
  10119. def ll_fz_new_pixmap_from_display_list(list, ctm, cs, alpha):
  10120. r"""
  10121. Low-level wrapper for `::fz_new_pixmap_from_display_list()`.
  10122. Render the page to a pixmap using the transform and colorspace.
  10123. Ownership of the pixmap is returned to the caller.
  10124. """
  10125. return _mupdf.ll_fz_new_pixmap_from_display_list(list, ctm, cs, alpha)
  10126. def ll_fz_new_pixmap_from_display_list_with_separations(list, ctm, cs, seps, alpha):
  10127. r"""
  10128. Low-level wrapper for `::fz_new_pixmap_from_display_list_with_separations()`.
  10129. Render the page contents with control over spot colors.
  10130. Ownership of the pixmap is returned to the caller.
  10131. """
  10132. return _mupdf.ll_fz_new_pixmap_from_display_list_with_separations(list, ctm, cs, seps, alpha)
  10133. def ll_fz_new_pixmap_from_page(page, ctm, cs, alpha):
  10134. r"""Low-level wrapper for `::fz_new_pixmap_from_page()`."""
  10135. return _mupdf.ll_fz_new_pixmap_from_page(page, ctm, cs, alpha)
  10136. def ll_fz_new_pixmap_from_page_contents(page, ctm, cs, alpha):
  10137. r"""
  10138. Low-level wrapper for `::fz_new_pixmap_from_page_contents()`.
  10139. Render the page contents without annotations.
  10140. Ownership of the pixmap is returned to the caller.
  10141. """
  10142. return _mupdf.ll_fz_new_pixmap_from_page_contents(page, ctm, cs, alpha)
  10143. def ll_fz_new_pixmap_from_page_contents_with_separations(page, ctm, cs, seps, alpha):
  10144. r"""Low-level wrapper for `::fz_new_pixmap_from_page_contents_with_separations()`."""
  10145. return _mupdf.ll_fz_new_pixmap_from_page_contents_with_separations(page, ctm, cs, seps, alpha)
  10146. def ll_fz_new_pixmap_from_page_number(doc, number, ctm, cs, alpha):
  10147. r"""Low-level wrapper for `::fz_new_pixmap_from_page_number()`."""
  10148. return _mupdf.ll_fz_new_pixmap_from_page_number(doc, number, ctm, cs, alpha)
  10149. def ll_fz_new_pixmap_from_page_number_with_separations(doc, number, ctm, cs, seps, alpha):
  10150. r"""Low-level wrapper for `::fz_new_pixmap_from_page_number_with_separations()`."""
  10151. return _mupdf.ll_fz_new_pixmap_from_page_number_with_separations(doc, number, ctm, cs, seps, alpha)
  10152. def ll_fz_new_pixmap_from_page_with_separations(page, ctm, cs, seps, alpha):
  10153. r"""Low-level wrapper for `::fz_new_pixmap_from_page_with_separations()`."""
  10154. return _mupdf.ll_fz_new_pixmap_from_page_with_separations(page, ctm, cs, seps, alpha)
  10155. def ll_fz_new_pixmap_from_pixmap(pixmap, rect):
  10156. r"""
  10157. Low-level wrapper for `::fz_new_pixmap_from_pixmap()`.
  10158. Create a new pixmap that represents a subarea of the specified
  10159. pixmap. A reference is taken to this pixmap that will be dropped
  10160. on destruction.
  10161. The supplied rectangle must be wholly contained within the
  10162. original pixmap.
  10163. Returns a pointer to the new pixmap. Throws exception on failure
  10164. to allocate.
  10165. """
  10166. return _mupdf.ll_fz_new_pixmap_from_pixmap(pixmap, rect)
  10167. def ll_fz_new_pixmap_with_bbox(colorspace, bbox, seps, alpha):
  10168. r"""
  10169. Low-level wrapper for `::fz_new_pixmap_with_bbox()`.
  10170. Create a pixmap of a given size, location and pixel format.
  10171. The bounding box specifies the size of the created pixmap and
  10172. where it will be located. The colorspace determines the number
  10173. of components per pixel. Alpha is always present. Pixmaps are
  10174. reference counted, so drop references using fz_drop_pixmap.
  10175. colorspace: Colorspace format used for the created pixmap. The
  10176. pixmap will keep a reference to the colorspace.
  10177. bbox: Bounding box specifying location/size of created pixmap.
  10178. seps: Details of separations.
  10179. alpha: 0 for no alpha, 1 for alpha.
  10180. Returns a pointer to the new pixmap. Throws exception on failure
  10181. to allocate.
  10182. """
  10183. return _mupdf.ll_fz_new_pixmap_with_bbox(colorspace, bbox, seps, alpha)
  10184. def ll_fz_new_pixmap_with_bbox_and_data(colorspace, rect, seps, alpha, samples):
  10185. r"""
  10186. Low-level wrapper for `::fz_new_pixmap_with_bbox_and_data()`.
  10187. Create a pixmap of a given size, location and pixel format,
  10188. using the supplied data block.
  10189. The bounding box specifies the size of the created pixmap and
  10190. where it will be located. The colorspace determines the number
  10191. of components per pixel. Alpha is always present. Pixmaps are
  10192. reference counted, so drop references using fz_drop_pixmap.
  10193. colorspace: Colorspace format used for the created pixmap. The
  10194. pixmap will keep a reference to the colorspace.
  10195. rect: Bounding box specifying location/size of created pixmap.
  10196. seps: Details of separations.
  10197. alpha: Number of alpha planes (0 or 1).
  10198. samples: The data block to keep the samples in.
  10199. Returns a pointer to the new pixmap. Throws exception on failure
  10200. to allocate.
  10201. """
  10202. return _mupdf.ll_fz_new_pixmap_with_bbox_and_data(colorspace, rect, seps, alpha, samples)
  10203. def ll_fz_new_pixmap_with_data(colorspace, w, h, seps, alpha, stride, samples):
  10204. r"""
  10205. Low-level wrapper for `::fz_new_pixmap_with_data()`.
  10206. Create a new pixmap, with its origin at
  10207. (0,0) using the supplied data block.
  10208. cs: The colorspace to use for the pixmap, or NULL for an alpha
  10209. plane/mask.
  10210. w: The width of the pixmap (in pixels)
  10211. h: The height of the pixmap (in pixels)
  10212. seps: Details of separations.
  10213. alpha: 0 for no alpha, 1 for alpha.
  10214. stride: The byte offset from the pixel data in a row to the
  10215. pixel data in the next row.
  10216. samples: The data block to keep the samples in.
  10217. Returns a pointer to the new pixmap. Throws exception on failure to
  10218. allocate.
  10219. """
  10220. return _mupdf.ll_fz_new_pixmap_with_data(colorspace, w, h, seps, alpha, stride, samples)
  10221. def ll_fz_new_pixmap_writer(path, options, default_path, n, save):
  10222. r"""Low-level wrapper for `::fz_new_pixmap_writer()`."""
  10223. return _mupdf.ll_fz_new_pixmap_writer(path, options, default_path, n, save)
  10224. def ll_fz_new_pkm_band_writer(out):
  10225. r"""
  10226. Low-level wrapper for `::fz_new_pkm_band_writer()`.
  10227. Create a new pkm band writer for CMYK pixmaps.
  10228. """
  10229. return _mupdf.ll_fz_new_pkm_band_writer(out)
  10230. def ll_fz_new_pkm_pixmap_writer(path, options):
  10231. r"""Low-level wrapper for `::fz_new_pkm_pixmap_writer()`."""
  10232. return _mupdf.ll_fz_new_pkm_pixmap_writer(path, options)
  10233. def ll_fz_new_png_band_writer(out):
  10234. r"""
  10235. Low-level wrapper for `::fz_new_png_band_writer()`.
  10236. Create a new png band writer (greyscale or RGB, with or without
  10237. alpha).
  10238. """
  10239. return _mupdf.ll_fz_new_png_band_writer(out)
  10240. def ll_fz_new_png_pixmap_writer(path, options):
  10241. r"""Low-level wrapper for `::fz_new_png_pixmap_writer()`."""
  10242. return _mupdf.ll_fz_new_png_pixmap_writer(path, options)
  10243. def ll_fz_new_pnm_band_writer(out):
  10244. r"""
  10245. Low-level wrapper for `::fz_new_pnm_band_writer()`.
  10246. Create a band writer targeting pnm (greyscale or rgb, no
  10247. alpha).
  10248. """
  10249. return _mupdf.ll_fz_new_pnm_band_writer(out)
  10250. def ll_fz_new_pnm_pixmap_writer(path, options):
  10251. r"""Low-level wrapper for `::fz_new_pnm_pixmap_writer()`."""
  10252. return _mupdf.ll_fz_new_pnm_pixmap_writer(path, options)
  10253. def ll_fz_new_pool():
  10254. r"""
  10255. Low-level wrapper for `::fz_new_pool()`.
  10256. Create a new pool to allocate from.
  10257. """
  10258. return _mupdf.ll_fz_new_pool()
  10259. def ll_fz_new_pool_array_imp(pool, size, initial):
  10260. r"""Low-level wrapper for `::fz_new_pool_array_imp()`."""
  10261. return _mupdf.ll_fz_new_pool_array_imp(pool, size, initial)
  10262. def ll_fz_new_ppm_pixmap_writer(path, options):
  10263. r"""Low-level wrapper for `::fz_new_ppm_pixmap_writer()`."""
  10264. return _mupdf.ll_fz_new_ppm_pixmap_writer(path, options)
  10265. def ll_fz_new_ps_band_writer(out):
  10266. r"""
  10267. Low-level wrapper for `::fz_new_ps_band_writer()`.
  10268. Create a postscript band writer for gray, rgb, or cmyk, no
  10269. alpha.
  10270. """
  10271. return _mupdf.ll_fz_new_ps_band_writer(out)
  10272. def ll_fz_new_ps_writer(path, options):
  10273. r"""Low-level wrapper for `::fz_new_ps_writer()`."""
  10274. return _mupdf.ll_fz_new_ps_writer(path, options)
  10275. def ll_fz_new_ps_writer_with_output(out, options):
  10276. r"""Low-level wrapper for `::fz_new_ps_writer_with_output()`."""
  10277. return _mupdf.ll_fz_new_ps_writer_with_output(out, options)
  10278. def ll_fz_new_psd_band_writer(out):
  10279. r"""
  10280. Low-level wrapper for `::fz_new_psd_band_writer()`.
  10281. Open a PSD band writer.
  10282. """
  10283. return _mupdf.ll_fz_new_psd_band_writer(out)
  10284. def ll_fz_new_pwg_band_writer(out, pwg):
  10285. r"""
  10286. Low-level wrapper for `::fz_new_pwg_band_writer()`.
  10287. Create a new color pwg band writer.
  10288. """
  10289. return _mupdf.ll_fz_new_pwg_band_writer(out, pwg)
  10290. def ll_fz_new_pwg_writer(path, options):
  10291. r"""Low-level wrapper for `::fz_new_pwg_writer()`."""
  10292. return _mupdf.ll_fz_new_pwg_writer(path, options)
  10293. def ll_fz_new_pwg_writer_with_output(out, options):
  10294. r"""Low-level wrapper for `::fz_new_pwg_writer_with_output()`."""
  10295. return _mupdf.ll_fz_new_pwg_writer_with_output(out, options)
  10296. def ll_fz_new_rle_output(chain):
  10297. r"""Low-level wrapper for `::fz_new_rle_output()`."""
  10298. return _mupdf.ll_fz_new_rle_output(chain)
  10299. def ll_fz_new_separations(controllable):
  10300. r"""
  10301. Low-level wrapper for `::fz_new_separations()`.
  10302. Create a new separations structure (initially empty)
  10303. """
  10304. return _mupdf.ll_fz_new_separations(controllable)
  10305. def ll_fz_new_stext_device(page, options):
  10306. r"""
  10307. Low-level wrapper for `::fz_new_stext_device()`.
  10308. Create a device to extract the text on a page.
  10309. Gather the text on a page into blocks and lines.
  10310. The reading order is taken from the order the text is drawn in
  10311. the source file, so may not be accurate.
  10312. page: The text page to which content should be added. This will
  10313. usually be a newly created (empty) text page, but it can be one
  10314. containing data already (for example when merging multiple
  10315. pages, or watermarking).
  10316. options: Options to configure the stext device.
  10317. """
  10318. return _mupdf.ll_fz_new_stext_device(page, options)
  10319. def ll_fz_new_stext_device_for_page(stext_page, opts, chapter_num, page_num, mediabox):
  10320. r"""
  10321. Low-level wrapper for `::fz_new_stext_device_for_page()`.
  10322. Create a device to extract the text on a page into an existing
  10323. fz_stext_page structure.
  10324. Gather the text on a page into blocks and lines.
  10325. The reading order is taken from the order the text is drawn in
  10326. the source file, so may not be accurate.
  10327. stext_page: The text page to which content should be added. This will
  10328. usually be a newly created (empty) text page, but it can be one
  10329. containing data already (for example when merging multiple
  10330. pages, or watermarking).
  10331. options: Options to configure the stext device.
  10332. The next 2 parameters are copied into the fz_stext_page structure's
  10333. ids section, so only have to be valid if you expect to interrogate
  10334. that section later.
  10335. chapter_num: The chapter number that this page came from.
  10336. page_num: The page number that this page came from.
  10337. The final parameter is copied into the fz_stext_page structure's
  10338. ids section. The mediabox for the enture fz_stext_page is unioned
  10339. with this, so pass fz_empty_bbox if you don't care about getting
  10340. a valid value back from the ids section, but you don't want to
  10341. upset the value in the page->mediabox field.
  10342. mediabox: The mediabox for this page.
  10343. """
  10344. return _mupdf.ll_fz_new_stext_device_for_page(stext_page, opts, chapter_num, page_num, mediabox)
  10345. def ll_fz_new_stext_page(mediabox):
  10346. r"""
  10347. Low-level wrapper for `::fz_new_stext_page()`.
  10348. Create an empty text page.
  10349. The text page is filled out by the text device to contain the
  10350. blocks and lines of text on the page.
  10351. mediabox: optional mediabox information.
  10352. """
  10353. return _mupdf.ll_fz_new_stext_page(mediabox)
  10354. def ll_fz_new_stext_page_from_chapter_page_number(doc, chapter, number, options):
  10355. r"""Low-level wrapper for `::fz_new_stext_page_from_chapter_page_number()`."""
  10356. return _mupdf.ll_fz_new_stext_page_from_chapter_page_number(doc, chapter, number, options)
  10357. def ll_fz_new_stext_page_from_display_list(list, options):
  10358. r"""Low-level wrapper for `::fz_new_stext_page_from_display_list()`."""
  10359. return _mupdf.ll_fz_new_stext_page_from_display_list(list, options)
  10360. def ll_fz_new_stext_page_from_page(page, options):
  10361. r"""
  10362. Low-level wrapper for `::fz_new_stext_page_from_page()`.
  10363. Extract text from page.
  10364. Ownership of the fz_stext_page is returned to the caller.
  10365. """
  10366. return _mupdf.ll_fz_new_stext_page_from_page(page, options)
  10367. def ll_fz_new_stext_page_from_page_number(doc, number, options):
  10368. r"""Low-level wrapper for `::fz_new_stext_page_from_page_number()`."""
  10369. return _mupdf.ll_fz_new_stext_page_from_page_number(doc, number, options)
  10370. def ll_fz_new_stext_struct(page, standard, raw, index):
  10371. r"""Low-level wrapper for `::fz_new_stext_struct()`."""
  10372. return _mupdf.ll_fz_new_stext_struct(page, standard, raw, index)
  10373. def ll_fz_new_store_context(max):
  10374. r"""
  10375. Low-level wrapper for `::fz_new_store_context()`.
  10376. Create a new store inside the context
  10377. max: The maximum size (in bytes) that the store is allowed to
  10378. grow to. FZ_STORE_UNLIMITED means no limit.
  10379. """
  10380. return _mupdf.ll_fz_new_store_context(max)
  10381. def ll_fz_new_story(buf, user_css, em, dir):
  10382. r"""Low-level wrapper for `::fz_new_story()`."""
  10383. return _mupdf.ll_fz_new_story(buf, user_css, em, dir)
  10384. def ll_fz_new_stream(state, next, drop):
  10385. r"""
  10386. Low-level wrapper for `::fz_new_stream()`.
  10387. Create a new stream object with the given
  10388. internal state and function pointers.
  10389. state: Internal state (opaque to everything but implementation).
  10390. next: Should provide the next set of bytes (up to max) of stream
  10391. data. Return the number of bytes read, or EOF when there is no
  10392. more data.
  10393. drop: Should clean up and free the internal state. May not
  10394. throw exceptions.
  10395. """
  10396. return _mupdf.ll_fz_new_stream(state, next, drop)
  10397. def ll_fz_new_string(str):
  10398. r"""Low-level wrapper for `::fz_new_string()`."""
  10399. return _mupdf.ll_fz_new_string(str)
  10400. def ll_fz_new_stroke_state():
  10401. r"""
  10402. Low-level wrapper for `::fz_new_stroke_state()`.
  10403. Create a new (empty) stroke state structure (with no dash
  10404. data) and return a reference to it.
  10405. Throws exception on failure to allocate.
  10406. """
  10407. return _mupdf.ll_fz_new_stroke_state()
  10408. def ll_fz_new_stroke_state_with_dash_len(len):
  10409. r"""
  10410. Low-level wrapper for `::fz_new_stroke_state_with_dash_len()`.
  10411. Create a new (empty) stroke state structure, with room for
  10412. dash data of the given length, and return a reference to it.
  10413. len: The number of dash elements to allow room for.
  10414. Throws exception on failure to allocate.
  10415. """
  10416. return _mupdf.ll_fz_new_stroke_state_with_dash_len(len)
  10417. def ll_fz_new_svg_device(out, page_width, page_height, text_format, reuse_images):
  10418. r"""
  10419. Low-level wrapper for `::fz_new_svg_device()`.
  10420. Create a device that outputs (single page) SVG files to
  10421. the given output stream.
  10422. Equivalent to fz_new_svg_device_with_id passing id = NULL.
  10423. """
  10424. return _mupdf.ll_fz_new_svg_device(out, page_width, page_height, text_format, reuse_images)
  10425. def ll_fz_new_svg_device_with_id(out, page_width, page_height, text_format, reuse_images, id):
  10426. r"""
  10427. Low-level wrapper for `::fz_new_svg_device_with_id()`.
  10428. This function has out-params. Python/C# wrappers look like:
  10429. `ll_fz_new_svg_device_with_id(::fz_output *out, float page_width, float page_height, int text_format, int reuse_images)` => `(fz_device *, int id)`
  10430. Create a device that outputs (single page) SVG files to
  10431. the given output stream.
  10432. output: The output stream to send the constructed SVG page to.
  10433. page_width, page_height: The page dimensions to use (in points).
  10434. text_format: How to emit text. One of the following values:
  10435. FZ_SVG_TEXT_AS_TEXT: As <text> elements with possible
  10436. layout errors and mismatching fonts.
  10437. FZ_SVG_TEXT_AS_PATH: As <path> elements with exact
  10438. visual appearance.
  10439. reuse_images: Share image resources using <symbol> definitions.
  10440. id: ID parameter to keep generated IDs unique across SVG files.
  10441. """
  10442. return _mupdf.ll_fz_new_svg_device_with_id(out, page_width, page_height, text_format, reuse_images, id)
  10443. def ll_fz_new_svg_writer(path, options):
  10444. r"""Low-level wrapper for `::fz_new_svg_writer()`."""
  10445. return _mupdf.ll_fz_new_svg_writer(path, options)
  10446. def ll_fz_new_svg_writer_with_output(out, options):
  10447. r"""Low-level wrapper for `::fz_new_svg_writer_with_output()`."""
  10448. return _mupdf.ll_fz_new_svg_writer_with_output(out, options)
  10449. def ll_fz_new_test_device(is_color, threshold, options, passthrough):
  10450. r"""
  10451. Low-level wrapper for `::fz_new_test_device()`.
  10452. This function has out-params. Python/C# wrappers look like:
  10453. `ll_fz_new_test_device(float threshold, int options, ::fz_device *passthrough)` => `(fz_device *, int is_color)`
  10454. Create a device to test for features.
  10455. Currently only tests for the presence of non-grayscale colors.
  10456. is_color: Possible values returned:
  10457. 0: Definitely greyscale
  10458. 1: Probably color (all colors were grey, but there
  10459. were images or shadings in a non grey colorspace).
  10460. 2: Definitely color
  10461. threshold: The difference from grayscale that will be tolerated.
  10462. Typical values to use are either 0 (be exact) and 0.02 (allow an
  10463. imperceptible amount of slop).
  10464. options: A set of bitfield options, from the FZ_TEST_OPT set.
  10465. passthrough: A device to pass all calls through to, or NULL.
  10466. If set, then the test device can both test and pass through to
  10467. an underlying device (like, say, the display list device). This
  10468. means that a display list can be created and at the end we'll
  10469. know if it's colored or not.
  10470. In the absence of a passthrough device, the device will throw
  10471. an exception to stop page interpretation when color is found.
  10472. """
  10473. return _mupdf.ll_fz_new_test_device(is_color, threshold, options, passthrough)
  10474. def ll_fz_new_text():
  10475. r"""
  10476. Low-level wrapper for `::fz_new_text()`.
  10477. Create a new empty fz_text object.
  10478. Throws exception on failure to allocate.
  10479. """
  10480. return _mupdf.ll_fz_new_text()
  10481. def ll_fz_new_text_writer(format, path, options):
  10482. r"""Low-level wrapper for `::fz_new_text_writer()`."""
  10483. return _mupdf.ll_fz_new_text_writer(format, path, options)
  10484. def ll_fz_new_text_writer_with_output(format, out, options):
  10485. r"""Low-level wrapper for `::fz_new_text_writer_with_output()`."""
  10486. return _mupdf.ll_fz_new_text_writer_with_output(format, out, options)
  10487. def ll_fz_new_trace_device(out):
  10488. r"""
  10489. Low-level wrapper for `::fz_new_trace_device()`.
  10490. Create a device to print a debug trace of all device calls.
  10491. """
  10492. return _mupdf.ll_fz_new_trace_device(out)
  10493. def ll_fz_new_tree_archive(tree):
  10494. r"""
  10495. Low-level wrapper for `::fz_new_tree_archive()`.
  10496. Create an archive that holds named buffers.
  10497. tree can either be a preformed tree with fz_buffers as values,
  10498. or it can be NULL for an empty tree.
  10499. """
  10500. return _mupdf.ll_fz_new_tree_archive(tree)
  10501. def ll_fz_new_type3_font(name, matrix):
  10502. r"""
  10503. Low-level wrapper for `::fz_new_type3_font()`.
  10504. Create a new (empty) type3 font.
  10505. name: Name of font (or NULL).
  10506. matrix: Font matrix.
  10507. Returns a new font handle, or throws exception on
  10508. allocation failure.
  10509. """
  10510. return _mupdf.ll_fz_new_type3_font(name, matrix)
  10511. def ll_fz_new_xhtml_document_from_document(old_doc, opts):
  10512. r"""
  10513. Low-level wrapper for `::fz_new_xhtml_document_from_document()`.
  10514. Use text extraction to convert the input document into XHTML,
  10515. then open the result as a new document that can be reflowed.
  10516. """
  10517. return _mupdf.ll_fz_new_xhtml_document_from_document(old_doc, opts)
  10518. def ll_fz_new_xmltext_device(out):
  10519. r"""
  10520. Low-level wrapper for `::fz_new_xmltext_device()`.
  10521. Create a device to output raw information.
  10522. """
  10523. return _mupdf.ll_fz_new_xmltext_device(out)
  10524. def ll_fz_new_zip_writer(filename):
  10525. r"""
  10526. Low-level wrapper for `::fz_new_zip_writer()`.
  10527. Create a new zip writer that writes to a given file.
  10528. Open an archive using a seekable stream object rather than
  10529. opening a file or directory on disk.
  10530. """
  10531. return _mupdf.ll_fz_new_zip_writer(filename)
  10532. def ll_fz_new_zip_writer_with_output(out):
  10533. r"""
  10534. Low-level wrapper for `::fz_new_zip_writer_with_output()`.
  10535. Create a new zip writer that writes to a given output stream.
  10536. Ownership of out passes in immediately upon calling this function.
  10537. The caller should never drop the fz_output, even if this function throws
  10538. an exception.
  10539. """
  10540. return _mupdf.ll_fz_new_zip_writer_with_output(out)
  10541. def ll_fz_next_page(doc, loc):
  10542. r"""
  10543. Low-level wrapper for `::fz_next_page()`.
  10544. Function to get the location of the next page (allowing for the
  10545. end of chapters etc). If at the end of the document, returns the
  10546. current location.
  10547. """
  10548. return _mupdf.ll_fz_next_page(doc, loc)
  10549. def ll_fz_normalize_vector(p):
  10550. r"""
  10551. Low-level wrapper for `::fz_normalize_vector()`.
  10552. Normalize a vector to length one.
  10553. """
  10554. return _mupdf.ll_fz_normalize_vector(p)
  10555. def ll_fz_open_a85d(chain):
  10556. r"""
  10557. Low-level wrapper for `::fz_open_a85d()`.
  10558. a85d filter performs ASCII 85 Decoding of data read
  10559. from the chained filter.
  10560. """
  10561. return _mupdf.ll_fz_open_a85d(chain)
  10562. def ll_fz_open_accelerated_document(filename, accel):
  10563. r"""
  10564. Low-level wrapper for `::fz_open_accelerated_document()`.
  10565. Open a document file and read its basic structure so pages and
  10566. objects can be located. MuPDF will try to repair broken
  10567. documents (without actually changing the file contents).
  10568. The returned fz_document is used when calling most other
  10569. document related functions.
  10570. filename: a path to a file as it would be given to open(2).
  10571. """
  10572. return _mupdf.ll_fz_open_accelerated_document(filename, accel)
  10573. def ll_fz_open_accelerated_document_with_stream(magic, stream, accel):
  10574. r"""
  10575. Low-level wrapper for `::fz_open_accelerated_document_with_stream()`.
  10576. Open a document using the specified stream object rather than
  10577. opening a file on disk.
  10578. magic: a string used to detect document type; either a file name
  10579. or mime-type.
  10580. stream: a stream of the document contents.
  10581. accel: NULL, or a stream of the 'accelerator' contents for this document.
  10582. NOTE: The caller retains ownership of 'stream' and 'accel' - the document will
  10583. take its own references if required.
  10584. """
  10585. return _mupdf.ll_fz_open_accelerated_document_with_stream(magic, stream, accel)
  10586. def ll_fz_open_accelerated_document_with_stream_and_dir(magic, stream, accel, dir):
  10587. r"""
  10588. Low-level wrapper for `::fz_open_accelerated_document_with_stream_and_dir()`.
  10589. Open a document using the specified stream object rather than
  10590. opening a file on disk.
  10591. magic: a string used to detect document type; either a file name
  10592. or mime-type.
  10593. stream: a stream of the document contents.
  10594. accel: NULL, or a stream of the 'accelerator' contents for this document.
  10595. dir: NULL, or the 'directory context' for the stream contents.
  10596. NOTE: The caller retains ownership of 'stream', 'accel' and 'dir' - the document will
  10597. take its own references if required.
  10598. """
  10599. return _mupdf.ll_fz_open_accelerated_document_with_stream_and_dir(magic, stream, accel, dir)
  10600. def ll_fz_open_aesd(chain, key, keylen):
  10601. r"""
  10602. Low-level wrapper for `::fz_open_aesd()`.
  10603. aesd filter performs AES decoding of data read from the chained
  10604. filter using the supplied key.
  10605. """
  10606. return _mupdf.ll_fz_open_aesd(chain, key, keylen)
  10607. def ll_fz_open_ahxd(chain):
  10608. r"""
  10609. Low-level wrapper for `::fz_open_ahxd()`.
  10610. ahxd filter performs ASCII Hex decoding of data read
  10611. from the chained filter.
  10612. """
  10613. return _mupdf.ll_fz_open_ahxd(chain)
  10614. def ll_fz_open_arc4(chain, key, keylen):
  10615. r"""
  10616. Low-level wrapper for `::fz_open_arc4()`.
  10617. arc4 filter performs RC4 decoding of data read from the chained
  10618. filter using the supplied key.
  10619. """
  10620. return _mupdf.ll_fz_open_arc4(chain, key, keylen)
  10621. def ll_fz_open_archive(filename):
  10622. r"""
  10623. Low-level wrapper for `::fz_open_archive()`.
  10624. Open a zip or tar archive
  10625. Open a file and identify its archive type based on the archive
  10626. signature contained inside.
  10627. filename: a path to a file as it would be given to open(2).
  10628. """
  10629. return _mupdf.ll_fz_open_archive(filename)
  10630. def ll_fz_open_archive_entry(arch, name):
  10631. r"""
  10632. Low-level wrapper for `::fz_open_archive_entry()`.
  10633. Opens an archive entry as a stream.
  10634. name: Entry name to look for, this must be an exact match to
  10635. the entry name in the archive.
  10636. Throws an exception if a matching entry cannot be found.
  10637. """
  10638. return _mupdf.ll_fz_open_archive_entry(arch, name)
  10639. def ll_fz_open_archive_with_stream(file):
  10640. r"""
  10641. Low-level wrapper for `::fz_open_archive_with_stream()`.
  10642. Open zip or tar archive stream.
  10643. Open an archive using a seekable stream object rather than
  10644. opening a file or directory on disk.
  10645. """
  10646. return _mupdf.ll_fz_open_archive_with_stream(file)
  10647. def ll_fz_open_brotlid(chain):
  10648. r"""
  10649. Low-level wrapper for `::fz_open_brotlid()`.
  10650. brotlid filter performs Brotli decoding of data read
  10651. from the chained filter.
  10652. """
  10653. return _mupdf.ll_fz_open_brotlid(chain)
  10654. def ll_fz_open_buffer(buf):
  10655. r"""
  10656. Low-level wrapper for `::fz_open_buffer()`.
  10657. Open a buffer as a stream.
  10658. buf: The buffer to open. Ownership of the buffer is NOT passed
  10659. in (this function takes its own reference).
  10660. Returns pointer to newly created stream. May throw exceptions on
  10661. failure to allocate.
  10662. """
  10663. return _mupdf.ll_fz_open_buffer(buf)
  10664. def ll_fz_open_cfb_archive(filename):
  10665. r"""
  10666. Low-level wrapper for `::fz_open_cfb_archive()`.
  10667. Open a cfb file as an archive.
  10668. An exception is thrown if the file is not recognised as a cfb.
  10669. filename: a path to an archive file as it would be given to
  10670. open(2).
  10671. """
  10672. return _mupdf.ll_fz_open_cfb_archive(filename)
  10673. def ll_fz_open_cfb_archive_with_stream(file):
  10674. r"""
  10675. Low-level wrapper for `::fz_open_cfb_archive_with_stream()`.
  10676. Open a cfb file as an archive.
  10677. Open an archive using a seekable stream object rather than
  10678. opening a file or directory on disk.
  10679. An exception is thrown if the file is not recognised as a chm.
  10680. """
  10681. return _mupdf.ll_fz_open_cfb_archive_with_stream(file)
  10682. def ll_fz_open_compressed_buffer(arg_1):
  10683. r"""
  10684. Low-level wrapper for `::fz_open_compressed_buffer()`.
  10685. Open a stream to read the decompressed version of a buffer.
  10686. """
  10687. return _mupdf.ll_fz_open_compressed_buffer(arg_1)
  10688. def ll_fz_open_concat(max, pad):
  10689. r"""
  10690. Low-level wrapper for `::fz_open_concat()`.
  10691. Concat filter concatenates several streams into one.
  10692. """
  10693. return _mupdf.ll_fz_open_concat(max, pad)
  10694. def ll_fz_open_dctd(chain, color_transform, invert_cmyk, l2factor, jpegtables):
  10695. r"""
  10696. Low-level wrapper for `::fz_open_dctd()`.
  10697. dctd filter performs DCT (JPEG) decoding of data read
  10698. from the chained filter.
  10699. color_transform implements the PDF color_transform option
  10700. use -1 for default behavior
  10701. use 0 to disable YUV-RGB / YCCK-CMYK transforms
  10702. use 1 to enable YUV-RGB / YCCK-CMYK transforms
  10703. invert_cmyk implements the necessary inversion for Photoshop CMYK images
  10704. use 0 if embedded in PDF
  10705. use 1 if not embedded in PDF
  10706. For subsampling on decode, set l2factor to the log2 of the
  10707. reduction required (therefore 0 = full size decode).
  10708. jpegtables is an optional stream from which the JPEG tables
  10709. can be read. Use NULL if not required.
  10710. """
  10711. return _mupdf.ll_fz_open_dctd(chain, color_transform, invert_cmyk, l2factor, jpegtables)
  10712. def ll_fz_open_directory(path):
  10713. r"""
  10714. Low-level wrapper for `::fz_open_directory()`.
  10715. Open a directory as if it was an archive.
  10716. A special case where a directory is opened as if it was an
  10717. archive.
  10718. Note that for directories it is not possible to retrieve the
  10719. number of entries or list the entries. It is however possible
  10720. to check if the archive has a particular entry.
  10721. path: a path to a directory as it would be given to opendir(3).
  10722. """
  10723. return _mupdf.ll_fz_open_directory(path)
  10724. def ll_fz_open_document(filename):
  10725. r"""
  10726. Low-level wrapper for `::fz_open_document()`.
  10727. Open a document file and read its basic structure so pages and
  10728. objects can be located. MuPDF will try to repair broken
  10729. documents (without actually changing the file contents).
  10730. The returned fz_document is used when calling most other
  10731. document related functions.
  10732. filename: a path to a file as it would be given to open(2).
  10733. """
  10734. return _mupdf.ll_fz_open_document(filename)
  10735. def ll_fz_open_document_with_buffer(magic, buffer):
  10736. r"""
  10737. Low-level wrapper for `::fz_open_document_with_buffer()`.
  10738. Open a document using a buffer rather than opening a file on disk.
  10739. """
  10740. return _mupdf.ll_fz_open_document_with_buffer(magic, buffer)
  10741. def ll_fz_open_document_with_stream(magic, stream):
  10742. r"""
  10743. Low-level wrapper for `::fz_open_document_with_stream()`.
  10744. Open a document using the specified stream object rather than
  10745. opening a file on disk.
  10746. magic: a string used to detect document type; either a file name
  10747. or mime-type.
  10748. stream: a stream representing the contents of the document file.
  10749. NOTE: The caller retains ownership of 'stream' - the document will take its
  10750. own reference if required.
  10751. """
  10752. return _mupdf.ll_fz_open_document_with_stream(magic, stream)
  10753. def ll_fz_open_document_with_stream_and_dir(magic, stream, dir):
  10754. r"""
  10755. Low-level wrapper for `::fz_open_document_with_stream_and_dir()`.
  10756. Open a document using the specified stream object rather than
  10757. opening a file on disk.
  10758. magic: a string used to detect document type; either a file name
  10759. or mime-type.
  10760. stream: a stream representing the contents of the document file.
  10761. dir: a 'directory context' for those filetypes that need it.
  10762. NOTE: The caller retains ownership of 'stream' and 'dir' - the document will
  10763. take its own references if required.
  10764. """
  10765. return _mupdf.ll_fz_open_document_with_stream_and_dir(magic, stream, dir)
  10766. def ll_fz_open_endstream_filter(chain, len, offset):
  10767. r"""
  10768. Low-level wrapper for `::fz_open_endstream_filter()`.
  10769. The endstream filter reads a PDF substream, and starts to look
  10770. for an 'endstream' token after the specified length.
  10771. """
  10772. return _mupdf.ll_fz_open_endstream_filter(chain, len, offset)
  10773. def ll_fz_open_faxd(chain, k, end_of_line, encoded_byte_align, columns, rows, end_of_block, black_is_1):
  10774. r"""
  10775. Low-level wrapper for `::fz_open_faxd()`.
  10776. faxd filter performs FAX decoding of data read from
  10777. the chained filter.
  10778. k: see fax specification (fax default is 0).
  10779. end_of_line: whether we expect end of line markers (fax default
  10780. is 0).
  10781. encoded_byte_align: whether we align to bytes after each line
  10782. (fax default is 0).
  10783. columns: how many columns in the image (fax default is 1728).
  10784. rows: 0 for unspecified or the number of rows of data to expect.
  10785. end_of_block: whether we expect end of block markers (fax
  10786. default is 1).
  10787. black_is_1: determines the polarity of the image (fax default is
  10788. 0).
  10789. """
  10790. return _mupdf.ll_fz_open_faxd(chain, k, end_of_line, encoded_byte_align, columns, rows, end_of_block, black_is_1)
  10791. def ll_fz_open_file(filename):
  10792. r"""
  10793. Low-level wrapper for `::fz_open_file()`.
  10794. Open the named file and wrap it in a stream.
  10795. filename: Path to a file. On non-Windows machines the filename
  10796. should be exactly as it would be passed to fopen(2). On Windows
  10797. machines, the path should be UTF-8 encoded so that non-ASCII
  10798. characters can be represented. Other platforms do the encoding
  10799. as standard anyway (and in most cases, particularly for MacOS
  10800. and Linux, the encoding they use is UTF-8 anyway).
  10801. """
  10802. return _mupdf.ll_fz_open_file(filename)
  10803. def ll_fz_open_file_autodelete(filename):
  10804. r"""
  10805. Low-level wrapper for `::fz_open_file_autodelete()`.
  10806. Do the same as fz_open_file, but delete the file upon close.
  10807. """
  10808. return _mupdf.ll_fz_open_file_autodelete(filename)
  10809. def ll_fz_open_file_ptr_no_close(file):
  10810. r"""
  10811. Low-level wrapper for `::fz_open_file_ptr_no_close()`.
  10812. Create a stream from a FILE * that will not be closed
  10813. when the stream is dropped.
  10814. """
  10815. return _mupdf.ll_fz_open_file_ptr_no_close(file)
  10816. def ll_fz_open_flated(chain, window_bits):
  10817. r"""
  10818. Low-level wrapper for `::fz_open_flated()`.
  10819. flated filter performs LZ77 decoding (inflating) of data read
  10820. from the chained filter.
  10821. window_bits: How large a decompression window to use. Typically
  10822. 15. A negative number, -n, means to use n bits, but to expect
  10823. raw data with no header.
  10824. """
  10825. return _mupdf.ll_fz_open_flated(chain, window_bits)
  10826. def ll_fz_open_image_decomp_stream(arg_1, arg_2, l2factor):
  10827. r"""
  10828. Low-level wrapper for `::fz_open_image_decomp_stream()`.
  10829. This function has out-params. Python/C# wrappers look like:
  10830. `ll_fz_open_image_decomp_stream(::fz_stream *arg_0, ::fz_compression_params *arg_1)` => `(fz_stream *, int l2factor)`
  10831. Open a stream to read the decompressed version of another stream
  10832. with optional log2 subsampling.
  10833. """
  10834. return _mupdf.ll_fz_open_image_decomp_stream(arg_1, arg_2, l2factor)
  10835. def ll_fz_open_image_decomp_stream_from_buffer(arg_1, l2factor):
  10836. r"""
  10837. Low-level wrapper for `::fz_open_image_decomp_stream_from_buffer()`.
  10838. This function has out-params. Python/C# wrappers look like:
  10839. `ll_fz_open_image_decomp_stream_from_buffer(::fz_compressed_buffer *arg_0)` => `(fz_stream *, int l2factor)`
  10840. Open a stream to read the decompressed version of a buffer,
  10841. with optional log2 subsampling.
  10842. l2factor = NULL for no subsampling, or a pointer to an integer
  10843. containing the maximum log2 subsample factor acceptable (0 =
  10844. none, 1 = halve dimensions, 2 = quarter dimensions etc). If
  10845. non-NULL, then *l2factor will be updated on exit with the actual
  10846. log2 subsample factor achieved.
  10847. """
  10848. return _mupdf.ll_fz_open_image_decomp_stream_from_buffer(arg_1, l2factor)
  10849. def ll_fz_open_jbig2d(chain, globals, embedded):
  10850. r"""
  10851. Low-level wrapper for `::fz_open_jbig2d()`.
  10852. Open a filter that performs jbig2 decompression on the chained
  10853. stream, using the optional globals record.
  10854. """
  10855. return _mupdf.ll_fz_open_jbig2d(chain, globals, embedded)
  10856. def ll_fz_open_leecher(chain, buf):
  10857. r"""
  10858. Low-level wrapper for `::fz_open_leecher()`.
  10859. Attach a filter to a stream that will store any
  10860. characters read from the stream into the supplied buffer.
  10861. chain: The underlying stream to leech from.
  10862. buf: The buffer into which the read data should be appended.
  10863. The buffer will be resized as required.
  10864. Returns pointer to newly created stream. May throw exceptions on
  10865. failure to allocate.
  10866. """
  10867. return _mupdf.ll_fz_open_leecher(chain, buf)
  10868. def ll_fz_open_libarchive_archive(filename):
  10869. r"""
  10870. Low-level wrapper for `::fz_open_libarchive_archive()`.
  10871. Open an archive using libarchive.
  10872. An exception is thrown if the file is not supported by libarchive.
  10873. filename: a path to an archive file as it would be given to
  10874. open(2).
  10875. """
  10876. return _mupdf.ll_fz_open_libarchive_archive(filename)
  10877. def ll_fz_open_libarchive_archive_with_stream(file):
  10878. r"""
  10879. Low-level wrapper for `::fz_open_libarchive_archive_with_stream()`.
  10880. Open an archive using libarchive.
  10881. Open an archive using a seekable stream object rather than
  10882. opening a file or directory on disk.
  10883. An exception is thrown if the stream is not supported by libarchive.
  10884. """
  10885. return _mupdf.ll_fz_open_libarchive_archive_with_stream(file)
  10886. def ll_fz_open_libarchived(chain):
  10887. r"""
  10888. Low-level wrapper for `::fz_open_libarchived()`.
  10889. libarchived filter performs generic compressed decoding of data
  10890. in any format understood by libarchive from the chained filter.
  10891. This will throw an exception if libarchive is not built in, or
  10892. if the compression format is not recognised.
  10893. """
  10894. return _mupdf.ll_fz_open_libarchived(chain)
  10895. def ll_fz_open_lzwd(chain, early_change, min_bits, reverse_bits, old_tiff):
  10896. r"""
  10897. Low-level wrapper for `::fz_open_lzwd()`.
  10898. lzwd filter performs LZW decoding of data read from the chained
  10899. filter.
  10900. early_change: (Default 1) specifies whether to change codes 1
  10901. bit early.
  10902. min_bits: (Default 9) specifies the minimum number of bits to
  10903. use.
  10904. reverse_bits: (Default 0) allows for compatibility with gif and
  10905. old style tiffs (1).
  10906. old_tiff: (Default 0) allows for different handling of the clear
  10907. code, as found in old style tiffs.
  10908. """
  10909. return _mupdf.ll_fz_open_lzwd(chain, early_change, min_bits, reverse_bits, old_tiff)
  10910. def ll_fz_open_memory(data, len):
  10911. r"""
  10912. Low-level wrapper for `::fz_open_memory()`.
  10913. Open a block of memory as a stream.
  10914. data: Pointer to start of data block. Ownership of the data
  10915. block is NOT passed in.
  10916. len: Number of bytes in data block.
  10917. Returns pointer to newly created stream. May throw exceptions on
  10918. failure to allocate.
  10919. """
  10920. return _mupdf.ll_fz_open_memory(data, len)
  10921. def ll_fz_open_null_filter(chain, len, offset):
  10922. r"""
  10923. Low-level wrapper for `::fz_open_null_filter()`.
  10924. The null filter reads a specified amount of data from the
  10925. substream.
  10926. """
  10927. return _mupdf.ll_fz_open_null_filter(chain, len, offset)
  10928. def ll_fz_open_predict(chain, predictor, columns, colors, bpc):
  10929. r"""
  10930. Low-level wrapper for `::fz_open_predict()`.
  10931. predict filter performs pixel prediction on data read from
  10932. the chained filter.
  10933. predictor: 1 = copy, 2 = tiff, other = inline PNG predictor
  10934. columns: width of image in pixels
  10935. colors: number of components.
  10936. bpc: bits per component (typically 8)
  10937. """
  10938. return _mupdf.ll_fz_open_predict(chain, predictor, columns, colors, bpc)
  10939. def ll_fz_open_range_filter(chain, ranges, nranges):
  10940. r"""
  10941. Low-level wrapper for `::fz_open_range_filter()`.
  10942. The range filter copies data from specified ranges of the
  10943. chained stream.
  10944. """
  10945. return _mupdf.ll_fz_open_range_filter(chain, ranges, nranges)
  10946. def ll_fz_open_reflowed_document(underdoc, opts):
  10947. r"""Low-level wrapper for `::fz_open_reflowed_document()`."""
  10948. return _mupdf.ll_fz_open_reflowed_document(underdoc, opts)
  10949. def ll_fz_open_rld(chain):
  10950. r"""
  10951. Low-level wrapper for `::fz_open_rld()`.
  10952. rld filter performs Run Length Decoding of data read
  10953. from the chained filter.
  10954. """
  10955. return _mupdf.ll_fz_open_rld(chain)
  10956. def ll_fz_open_sgilog16(chain, w):
  10957. r"""
  10958. Low-level wrapper for `::fz_open_sgilog16()`.
  10959. SGI Log 16bit (greyscale) decode from the chained filter.
  10960. Decodes lines of w pixels to 8bpp greyscale.
  10961. """
  10962. return _mupdf.ll_fz_open_sgilog16(chain, w)
  10963. def ll_fz_open_sgilog24(chain, w):
  10964. r"""
  10965. Low-level wrapper for `::fz_open_sgilog24()`.
  10966. SGI Log 24bit (LUV) decode from the chained filter.
  10967. Decodes lines of w pixels to 8bpc rgb.
  10968. """
  10969. return _mupdf.ll_fz_open_sgilog24(chain, w)
  10970. def ll_fz_open_sgilog32(chain, w):
  10971. r"""
  10972. Low-level wrapper for `::fz_open_sgilog32()`.
  10973. SGI Log 32bit (LUV) decode from the chained filter.
  10974. Decodes lines of w pixels to 8bpc rgb.
  10975. """
  10976. return _mupdf.ll_fz_open_sgilog32(chain, w)
  10977. def ll_fz_open_tar_archive(filename):
  10978. r"""
  10979. Low-level wrapper for `::fz_open_tar_archive()`.
  10980. Open a tar archive file.
  10981. An exception is thrown if the file is not a tar archive as
  10982. indicated by the presence of a tar signature.
  10983. filename: a path to a tar archive file as it would be given to
  10984. open(2).
  10985. """
  10986. return _mupdf.ll_fz_open_tar_archive(filename)
  10987. def ll_fz_open_tar_archive_with_stream(file):
  10988. r"""
  10989. Low-level wrapper for `::fz_open_tar_archive_with_stream()`.
  10990. Open a tar archive stream.
  10991. Open an archive using a seekable stream object rather than
  10992. opening a file or directory on disk.
  10993. An exception is thrown if the stream is not a tar archive as
  10994. indicated by the presence of a tar signature.
  10995. """
  10996. return _mupdf.ll_fz_open_tar_archive_with_stream(file)
  10997. def ll_fz_open_thunder(chain, w):
  10998. r"""
  10999. Low-level wrapper for `::fz_open_thunder()`.
  11000. 4bit greyscale Thunderscan decoding from the chained filter.
  11001. Decodes lines of w pixels to 8bpp greyscale.
  11002. """
  11003. return _mupdf.ll_fz_open_thunder(chain, w)
  11004. def ll_fz_open_zip_archive(path):
  11005. r"""
  11006. Low-level wrapper for `::fz_open_zip_archive()`.
  11007. Open a zip archive file.
  11008. An exception is thrown if the file is not a zip archive as
  11009. indicated by the presence of a zip signature.
  11010. filename: a path to a zip archive file as it would be given to
  11011. open(2).
  11012. """
  11013. return _mupdf.ll_fz_open_zip_archive(path)
  11014. def ll_fz_open_zip_archive_with_stream(file):
  11015. r"""
  11016. Low-level wrapper for `::fz_open_zip_archive_with_stream()`.
  11017. Open a zip archive stream.
  11018. Open an archive using a seekable stream object rather than
  11019. opening a file or directory on disk.
  11020. An exception is thrown if the stream is not a zip archive as
  11021. indicated by the presence of a zip signature.
  11022. """
  11023. return _mupdf.ll_fz_open_zip_archive_with_stream(file)
  11024. def ll_fz_opt_from_list(opt, optlist):
  11025. r"""
  11026. Low-level wrapper for `::fz_opt_from_list()`.
  11027. Return the index of a (case-insensitive) option within an optlist.
  11028. For instance for optlist = "Foo|Bar|Baz", and opt = "bar",
  11029. this would return 1.
  11030. If the optlist ends with "|*" then that is a catch all case and
  11031. matches all options allowing the caller to process it itself.
  11032. fz_optarg will be set to point to the option, and the return
  11033. value will be the index of the '*' option within that list.
  11034. If an optlist entry ends with ':' (e.g. "Foo:") then that option
  11035. may have suboptions appended to it (for example "JPG:80") and
  11036. fz_optarg will be set to point at "80". Otherwise fz_optarg will
  11037. be set to NULL.
  11038. In the event of no-match found, prints an error and returns -1.
  11039. """
  11040. return _mupdf.ll_fz_opt_from_list(opt, optlist)
  11041. def ll_fz_option_eq(a, b):
  11042. r"""
  11043. Low-level wrapper for `::fz_option_eq()`.
  11044. Check to see if an option, a, from a string matches a reference
  11045. option, b.
  11046. (i.e. a could be 'foo' or 'foo,bar...' etc, but b can only be
  11047. 'foo'.)
  11048. """
  11049. return _mupdf.ll_fz_option_eq(a, b)
  11050. def ll_fz_optpath(opt):
  11051. r"""
  11052. Low-level wrapper for `::fz_optpath()`.
  11053. Convert "-" to "/dev/stdout" for use with command lines.
  11054. Also converts "nul" and "con" on Windows.
  11055. """
  11056. return _mupdf.ll_fz_optpath(opt)
  11057. def ll_fz_outline_glyph(font, gid, ctm):
  11058. r"""
  11059. Low-level wrapper for `::fz_outline_glyph()`.
  11060. Look a glyph up from a font, and return the outline of the
  11061. glyph using the given transform.
  11062. The caller owns the returned path, and so is responsible for
  11063. ensuring that it eventually gets dropped.
  11064. """
  11065. return _mupdf.ll_fz_outline_glyph(font, gid, ctm)
  11066. def ll_fz_outline_iterator_delete(iter):
  11067. r"""
  11068. Low-level wrapper for `::fz_outline_iterator_delete()`.
  11069. Delete the current item.
  11070. This implicitly moves us to the 'next' item, and the return code is as for fz_outline_iterator_next.
  11071. """
  11072. return _mupdf.ll_fz_outline_iterator_delete(iter)
  11073. def ll_fz_outline_iterator_down(iter):
  11074. r"""Low-level wrapper for `::fz_outline_iterator_down()`."""
  11075. return _mupdf.ll_fz_outline_iterator_down(iter)
  11076. def ll_fz_outline_iterator_from_outline(outline):
  11077. r"""Low-level wrapper for `::fz_outline_iterator_from_outline()`."""
  11078. return _mupdf.ll_fz_outline_iterator_from_outline(outline)
  11079. def ll_fz_outline_iterator_insert(iter, item):
  11080. r"""
  11081. Low-level wrapper for `::fz_outline_iterator_insert()`.
  11082. Call to insert a new item BEFORE the current point.
  11083. Ownership of pointers are retained by the caller. The item data will be copied.
  11084. After an insert, we do not change where we are pointing.
  11085. The return code is the same as for next, it indicates the current iterator position.
  11086. Note that for PDF documents at least, the is_open field is ignored. All childless
  11087. nodes are considered closed by PDF, hence (given every newly inserted node is
  11088. childless by definition) all new nodes are inserted with is_open == false.
  11089. """
  11090. return _mupdf.ll_fz_outline_iterator_insert(iter, item)
  11091. def ll_fz_outline_iterator_item(iter):
  11092. r"""
  11093. Low-level wrapper for `::fz_outline_iterator_item()`.
  11094. Call to get the current outline item.
  11095. Can return NULL. The item is only valid until the next call.
  11096. """
  11097. return _mupdf.ll_fz_outline_iterator_item(iter)
  11098. def ll_fz_outline_iterator_next(iter):
  11099. r"""
  11100. Low-level wrapper for `::fz_outline_iterator_next()`.
  11101. Calls to move the iterator position.
  11102. A negative return value means we could not move as requested. Otherwise:
  11103. 0 = the final position has a valid item.
  11104. 1 = not a valid item, but we can insert an item here.
  11105. """
  11106. return _mupdf.ll_fz_outline_iterator_next(iter)
  11107. def ll_fz_outline_iterator_prev(iter):
  11108. r"""Low-level wrapper for `::fz_outline_iterator_prev()`."""
  11109. return _mupdf.ll_fz_outline_iterator_prev(iter)
  11110. def ll_fz_outline_iterator_up(iter):
  11111. r"""Low-level wrapper for `::fz_outline_iterator_up()`."""
  11112. return _mupdf.ll_fz_outline_iterator_up(iter)
  11113. def ll_fz_outline_iterator_update(iter, item):
  11114. r"""
  11115. Low-level wrapper for `::fz_outline_iterator_update()`.
  11116. Update the current item properties according to the given item.
  11117. """
  11118. return _mupdf.ll_fz_outline_iterator_update(iter, item)
  11119. def ll_fz_output_accelerator(doc, accel):
  11120. r"""
  11121. Low-level wrapper for `::fz_output_accelerator()`.
  11122. Output accelerator data for the document to a given output
  11123. stream.
  11124. """
  11125. return _mupdf.ll_fz_output_accelerator(doc, accel)
  11126. def ll_fz_output_supports_stream(out):
  11127. r"""
  11128. Low-level wrapper for `::fz_output_supports_stream()`.
  11129. Query whether a given fz_output supports fz_stream_from_output.
  11130. """
  11131. return _mupdf.ll_fz_output_supports_stream(out)
  11132. def ll_fz_output_xml(out, item, level):
  11133. r"""
  11134. Low-level wrapper for `::fz_output_xml()`.
  11135. Pretty-print an XML tree to given output.
  11136. """
  11137. return _mupdf.ll_fz_output_xml(out, item, level)
  11138. def ll_fz_overlaps_rect(a, b):
  11139. r"""
  11140. Low-level wrapper for `::fz_overlaps_rect()`.
  11141. Test rectangle overlap.
  11142. Returns true if the area of the overlap is
  11143. non zero.
  11144. """
  11145. return _mupdf.ll_fz_overlaps_rect(a, b)
  11146. def ll_fz_pack_path(pack, path):
  11147. r"""
  11148. Low-level wrapper for `::fz_pack_path()`.
  11149. Pack a path into the given block.
  11150. To minimise the size of paths, this function allows them to be
  11151. packed into a buffer with other information. Paths can be used
  11152. interchangeably regardless of how they are packed.
  11153. pack: Pointer to a block of data to pack the path into. Should
  11154. be aligned by the caller to the same alignment as required for
  11155. a fz_path pointer.
  11156. path: The path to pack.
  11157. Returns the number of bytes within the block used. Callers can
  11158. access the packed path data by casting the value of pack on
  11159. entry to be a fz_path *.
  11160. Throws exceptions on failure to allocate.
  11161. Implementation details: Paths can be 'unpacked', 'flat', or
  11162. 'open'. Standard paths, as created are 'unpacked'. Paths
  11163. will be packed as 'flat', unless they are too large
  11164. (where large indicates that they exceed some private
  11165. implementation defined limits, currently including having
  11166. more than 256 coordinates or commands).
  11167. Large paths are 'open' packed as a header into the given block,
  11168. plus pointers to other data blocks.
  11169. Users should not have to care about whether paths are 'open'
  11170. or 'flat' packed. Simply pack a path (if required), and then
  11171. forget about the details.
  11172. """
  11173. return _mupdf.ll_fz_pack_path(pack, path)
  11174. def ll_fz_packed_path_size(path):
  11175. r"""
  11176. Low-level wrapper for `::fz_packed_path_size()`.
  11177. Return the number of bytes required to pack a path.
  11178. """
  11179. return _mupdf.ll_fz_packed_path_size(path)
  11180. def ll_fz_page_label(page, buf, size):
  11181. r"""
  11182. Low-level wrapper for `::fz_page_label()`.
  11183. Get page label for a given page.
  11184. """
  11185. return _mupdf.ll_fz_page_label(page, buf, size)
  11186. def ll_fz_page_number_from_location(doc, loc):
  11187. r"""
  11188. Low-level wrapper for `::fz_page_number_from_location()`.
  11189. Converts from chapter+page to page number. This may cause many
  11190. chapters to be laid out in order to calculate the number of
  11191. pages within those chapters.
  11192. """
  11193. return _mupdf.ll_fz_page_number_from_location(doc, loc)
  11194. def ll_fz_page_presentation(page, transition, duration):
  11195. r"""
  11196. Low-level wrapper for `::fz_page_presentation()`.
  11197. This function has out-params. Python/C# wrappers look like:
  11198. `ll_fz_page_presentation(::fz_page *page, ::fz_transition *transition)` => `(fz_transition *, float duration)`
  11199. Get the presentation details for a given page.
  11200. transition: A pointer to a transition struct to fill out.
  11201. duration: A pointer to a place to set the page duration in
  11202. seconds. Will be set to 0 if no transition is specified for the
  11203. page.
  11204. Returns: a pointer to the transition structure, or NULL if there
  11205. is no transition specified for the page.
  11206. """
  11207. return _mupdf.ll_fz_page_presentation(page, transition, duration)
  11208. def ll_fz_page_separations(page):
  11209. r"""
  11210. Low-level wrapper for `::fz_page_separations()`.
  11211. Get the separations details for a page.
  11212. This will be NULL, unless the format specifically supports
  11213. separations (such as PDF files). May be NULL even
  11214. so, if there are no separations on a page.
  11215. Returns a reference that must be dropped.
  11216. """
  11217. return _mupdf.ll_fz_page_separations(page)
  11218. def ll_fz_page_uses_overprint(page):
  11219. r"""
  11220. Low-level wrapper for `::fz_page_uses_overprint()`.
  11221. Query if a given page requires overprint.
  11222. """
  11223. return _mupdf.ll_fz_page_uses_overprint(page)
  11224. def ll_fz_paint_shade(shade, override_cs, ctm, dest, color_params, bbox, eop, cache):
  11225. r"""
  11226. Low-level wrapper for `::fz_paint_shade()`.
  11227. This function has out-params. Python/C# wrappers look like:
  11228. `ll_fz_paint_shade(::fz_shade *shade, ::fz_colorspace *override_cs, ::fz_matrix ctm, ::fz_pixmap *dest, ::fz_color_params color_params, ::fz_irect bbox, const ::fz_overprint *eop, ::fz_shade_color_cache **cache)` =>
  11229. Render a shade to a given pixmap.
  11230. shade: The shade to paint.
  11231. override_cs: NULL, or colorspace to override the shades
  11232. inbuilt colorspace.
  11233. ctm: The transform to apply.
  11234. dest: The pixmap to render into.
  11235. color_params: The color rendering settings
  11236. bbox: Pointer to a bounding box to limit the rendering
  11237. of the shade.
  11238. eop: NULL, or pointer to overprint bitmap.
  11239. cache: *cache is used to cache color information. If *cache is NULL it
  11240. is set to point to a new fz_shade_color_cache. If cache is NULL it is
  11241. ignored.
  11242. """
  11243. return _mupdf.ll_fz_paint_shade(shade, override_cs, ctm, dest, color_params, bbox, eop, cache)
  11244. def ll_fz_paragraph_break(page):
  11245. r"""
  11246. Low-level wrapper for `::fz_paragraph_break()`.
  11247. Attempt to break paragraphs at plausible places.
  11248. """
  11249. return _mupdf.ll_fz_paragraph_break(page)
  11250. def ll_fz_parse_draw_options(options, string):
  11251. r"""
  11252. Low-level wrapper for `::fz_parse_draw_options()`.
  11253. Parse draw device options from a comma separated key-value string.
  11254. """
  11255. return _mupdf.ll_fz_parse_draw_options(options, string)
  11256. def ll_fz_parse_json(pool, s):
  11257. r"""Low-level wrapper for `::fz_parse_json()`."""
  11258. return _mupdf.ll_fz_parse_json(pool, s)
  11259. def ll_fz_parse_page_range(s, a, b, n):
  11260. r"""
  11261. Low-level wrapper for `::fz_parse_page_range()`.
  11262. This function has out-params. Python/C# wrappers look like:
  11263. `ll_fz_parse_page_range(const char *s, int n)` => `(const char *, int a, int b)`
  11264. """
  11265. return _mupdf.ll_fz_parse_page_range(s, a, b, n)
  11266. def ll_fz_parse_pcl_options(opts, args):
  11267. r"""
  11268. Low-level wrapper for `::fz_parse_pcl_options()`.
  11269. Parse PCL options.
  11270. Currently defined options and values are as follows:
  11271. preset=X Either "generic" or one of the presets as for fz_pcl_preset.
  11272. spacing=0 No vertical spacing capability
  11273. spacing=1 PCL 3 spacing (<ESC>*p+<n>Y)
  11274. spacing=2 PCL 4 spacing (<ESC>*b<n>Y)
  11275. spacing=3 PCL 5 spacing (<ESC>*b<n>Y and clear seed row)
  11276. mode2 Disable/Enable mode 2 graphics compression
  11277. mode3 Disable/Enable mode 3 graphics compression
  11278. eog_reset End of graphics (<ESC>*rB) resets all parameters
  11279. has_duplex Duplex supported (<ESC>&l<duplex>S)
  11280. has_papersize Papersize setting supported (<ESC>&l<sizecode>A)
  11281. has_copies Number of copies supported (<ESC>&l<copies>X)
  11282. is_ljet4pjl Disable/Enable HP 4PJL model-specific output
  11283. is_oce9050 Disable/Enable Oce 9050 model-specific output
  11284. """
  11285. return _mupdf.ll_fz_parse_pcl_options(opts, args)
  11286. def ll_fz_parse_pclm_options(opts, args):
  11287. r"""
  11288. Low-level wrapper for `::fz_parse_pclm_options()`.
  11289. Parse PCLm options.
  11290. Currently defined options and values are as follows:
  11291. compression=none: No compression
  11292. compression=flate: Flate compression
  11293. strip-height=n: Strip height (default 16)
  11294. """
  11295. return _mupdf.ll_fz_parse_pclm_options(opts, args)
  11296. def ll_fz_parse_pdfocr_options(opts, args):
  11297. r"""
  11298. Low-level wrapper for `::fz_parse_pdfocr_options()`.
  11299. Parse PDFOCR options.
  11300. Currently defined options and values are as follows:
  11301. compression=none: No compression
  11302. compression=flate: Flate compression
  11303. strip-height=n: Strip height (default 16)
  11304. ocr-language=<lang>: OCR Language (default eng)
  11305. ocr-datadir=<datadir>: OCR data path (default rely on TESSDATA_PREFIX)
  11306. """
  11307. return _mupdf.ll_fz_parse_pdfocr_options(opts, args)
  11308. def ll_fz_parse_stext_options(opts, string):
  11309. r"""
  11310. Low-level wrapper for `::fz_parse_stext_options()`.
  11311. Parse stext device options from a comma separated key-value
  11312. string.
  11313. """
  11314. return _mupdf.ll_fz_parse_stext_options(opts, string)
  11315. def ll_fz_parse_xml(buf, preserve_white):
  11316. r"""
  11317. Low-level wrapper for `::fz_parse_xml()`.
  11318. Parse the contents of buffer into a tree of xml nodes.
  11319. preserve_white: whether to keep or delete all-whitespace nodes.
  11320. """
  11321. return _mupdf.ll_fz_parse_xml(buf, preserve_white)
  11322. def ll_fz_parse_xml_archive_entry(dir, filename, preserve_white):
  11323. r"""
  11324. Low-level wrapper for `::fz_parse_xml_archive_entry()`.
  11325. Parse the contents of an archive entry into a tree of xml nodes.
  11326. preserve_white: whether to keep or delete all-whitespace nodes.
  11327. """
  11328. return _mupdf.ll_fz_parse_xml_archive_entry(dir, filename, preserve_white)
  11329. def ll_fz_parse_xml_from_html5(buf):
  11330. r"""
  11331. Low-level wrapper for `::fz_parse_xml_from_html5()`.
  11332. Parse the contents of a buffer into a tree of XML nodes,
  11333. using the HTML5 parsing algorithm.
  11334. """
  11335. return _mupdf.ll_fz_parse_xml_from_html5(buf)
  11336. def ll_fz_parse_xml_stream(stream, preserve_white):
  11337. r"""
  11338. Low-level wrapper for `::fz_parse_xml_stream()`.
  11339. Parse the contents of buffer into a tree of xml nodes.
  11340. preserve_white: whether to keep or delete all-whitespace nodes.
  11341. """
  11342. return _mupdf.ll_fz_parse_xml_stream(stream, preserve_white)
  11343. def ll_fz_path_is_rect(path, ctm):
  11344. r"""
  11345. Low-level wrapper for `::fz_path_is_rect()`.
  11346. Check whether a given path, under the given transform
  11347. is an axis-aligned rectangle.
  11348. We accept zero width or height rectangles, so
  11349. "move 100, 100; line 200, 100" would count as
  11350. a rectangle too.
  11351. """
  11352. return _mupdf.ll_fz_path_is_rect(path, ctm)
  11353. def ll_fz_path_is_rect_with_bounds(path, ctm, bounds):
  11354. r"""
  11355. Low-level wrapper for `::fz_path_is_rect_with_bounds()`.
  11356. Check whether a given path, under the given transform
  11357. is an axis-aligned rectangle.
  11358. We accept zero width or height rectangles, so
  11359. "move 100, 100; line 200, 100" would count as
  11360. a rectangle too.
  11361. bounds = NULL, or place to return the rectangle
  11362. bounds if the path is a rectangle.
  11363. """
  11364. return _mupdf.ll_fz_path_is_rect_with_bounds(path, ctm, bounds)
  11365. def ll_fz_pcl_preset(opts, preset):
  11366. r"""
  11367. Low-level wrapper for `::fz_pcl_preset()`.
  11368. Initialize PCL option struct for a given preset.
  11369. Currently defined presets include:
  11370. generic Generic PCL printer
  11371. ljet4 HP DeskJet
  11372. dj500 HP DeskJet 500
  11373. fs600 Kyocera FS-600
  11374. lj HP LaserJet, HP LaserJet Plus
  11375. lj2 HP LaserJet IIp, HP LaserJet IId
  11376. lj3 HP LaserJet III
  11377. lj3d HP LaserJet IIId
  11378. lj4 HP LaserJet 4
  11379. lj4pl HP LaserJet 4 PL
  11380. lj4d HP LaserJet 4d
  11381. lp2563b HP 2563B line printer
  11382. oce9050 Oce 9050 Line printer
  11383. """
  11384. return _mupdf.ll_fz_pcl_preset(opts, preset)
  11385. def ll_fz_pdfocr_band_writer_set_progress(writer, progress_fn, progress_arg):
  11386. r"""
  11387. Low-level wrapper for `::fz_pdfocr_band_writer_set_progress()`.
  11388. Set the progress callback for a pdfocr bandwriter.
  11389. """
  11390. return _mupdf.ll_fz_pdfocr_band_writer_set_progress(writer, progress_fn, progress_arg)
  11391. def ll_fz_pdfocr_writer_set_progress(writer, progress, arg_3):
  11392. r"""Low-level wrapper for `::fz_pdfocr_writer_set_progress()`."""
  11393. return _mupdf.ll_fz_pdfocr_writer_set_progress(writer, progress, arg_3)
  11394. def ll_fz_peek_byte(stm):
  11395. r"""
  11396. Low-level wrapper for `::fz_peek_byte()`.
  11397. Peek at the next byte in a stream.
  11398. stm: The stream to peek at.
  11399. Returns -1 for EOF, or the next byte that will be read.
  11400. """
  11401. return _mupdf.ll_fz_peek_byte(stm)
  11402. def ll_fz_pixmap_alpha(pix):
  11403. r"""
  11404. Low-level wrapper for `::fz_pixmap_alpha()`.
  11405. Return the number of alpha planes in a pixmap.
  11406. Returns the number of alphas. Does not throw exceptions.
  11407. """
  11408. return _mupdf.ll_fz_pixmap_alpha(pix)
  11409. def ll_fz_pixmap_bbox(pix):
  11410. r"""
  11411. Low-level wrapper for `::fz_pixmap_bbox()`.
  11412. Return the bounding box for a pixmap.
  11413. """
  11414. return _mupdf.ll_fz_pixmap_bbox(pix)
  11415. def ll_fz_pixmap_colorants(pix):
  11416. r"""
  11417. Low-level wrapper for `::fz_pixmap_colorants()`.
  11418. Return the number of colorants in a pixmap.
  11419. Returns the number of colorants (components, less any spots and
  11420. alpha).
  11421. """
  11422. return _mupdf.ll_fz_pixmap_colorants(pix)
  11423. def ll_fz_pixmap_colorspace(pix):
  11424. r"""
  11425. Low-level wrapper for `::fz_pixmap_colorspace()`.
  11426. Return the colorspace of a pixmap
  11427. Returns colorspace.
  11428. """
  11429. return _mupdf.ll_fz_pixmap_colorspace(pix)
  11430. def ll_fz_pixmap_components(pix):
  11431. r"""
  11432. Low-level wrapper for `::fz_pixmap_components()`.
  11433. Return the number of components in a pixmap.
  11434. Returns the number of components (including spots and alpha).
  11435. """
  11436. return _mupdf.ll_fz_pixmap_components(pix)
  11437. def ll_fz_pixmap_height(pix):
  11438. r"""
  11439. Low-level wrapper for `::fz_pixmap_height()`.
  11440. Return the height of the pixmap in pixels.
  11441. """
  11442. return _mupdf.ll_fz_pixmap_height(pix)
  11443. def ll_fz_pixmap_image_tile(cimg):
  11444. r"""
  11445. Low-level wrapper for `::fz_pixmap_image_tile()`.
  11446. Retrieve the underlying fz_pixmap for an image.
  11447. Returns a pointer to the underlying fz_pixmap for an image,
  11448. or NULL if this image is not based upon an fz_pixmap.
  11449. No reference is returned. Lifespan is limited to that of
  11450. the image itself. If required, use fz_keep_pixmap to take
  11451. a reference to keep it longer.
  11452. """
  11453. return _mupdf.ll_fz_pixmap_image_tile(cimg)
  11454. def ll_fz_pixmap_samples(pix):
  11455. r"""
  11456. Low-level wrapper for `::fz_pixmap_samples()`.
  11457. Returns a pointer to the pixel data of a pixmap.
  11458. Returns the pointer.
  11459. """
  11460. return _mupdf.ll_fz_pixmap_samples(pix)
  11461. def ll_fz_pixmap_samples_int(pixmap):
  11462. r"""Low-level wrapper for `::fz_pixmap_samples_int()`."""
  11463. return _mupdf.ll_fz_pixmap_samples_int(pixmap)
  11464. def ll_fz_pixmap_size(pix):
  11465. r"""
  11466. Low-level wrapper for `::fz_pixmap_size()`.
  11467. Return sizeof fz_pixmap plus size of data, in bytes.
  11468. """
  11469. return _mupdf.ll_fz_pixmap_size(pix)
  11470. def ll_fz_pixmap_spots(pix):
  11471. r"""
  11472. Low-level wrapper for `::fz_pixmap_spots()`.
  11473. Return the number of spots in a pixmap.
  11474. Returns the number of spots (components, less colorants and
  11475. alpha). Does not throw exceptions.
  11476. """
  11477. return _mupdf.ll_fz_pixmap_spots(pix)
  11478. def ll_fz_pixmap_stride(pix):
  11479. r"""
  11480. Low-level wrapper for `::fz_pixmap_stride()`.
  11481. Return the number of bytes in a row in the pixmap.
  11482. """
  11483. return _mupdf.ll_fz_pixmap_stride(pix)
  11484. def ll_fz_pixmap_width(pix):
  11485. r"""
  11486. Low-level wrapper for `::fz_pixmap_width()`.
  11487. Return the width of the pixmap in pixels.
  11488. """
  11489. return _mupdf.ll_fz_pixmap_width(pix)
  11490. def ll_fz_pixmap_x(pix):
  11491. r"""
  11492. Low-level wrapper for `::fz_pixmap_x()`.
  11493. Return the x value of the pixmap in pixels.
  11494. """
  11495. return _mupdf.ll_fz_pixmap_x(pix)
  11496. def ll_fz_pixmap_y(pix):
  11497. r"""
  11498. Low-level wrapper for `::fz_pixmap_y()`.
  11499. Return the y value of the pixmap in pixels.
  11500. """
  11501. return _mupdf.ll_fz_pixmap_y(pix)
  11502. def ll_fz_place_story(story, where, filled):
  11503. r"""Low-level wrapper for `::fz_place_story()`."""
  11504. return _mupdf.ll_fz_place_story(story, where, filled)
  11505. def ll_fz_place_story_flags(story, where, filled, flags):
  11506. r"""Low-level wrapper for `::fz_place_story_flags()`."""
  11507. return _mupdf.ll_fz_place_story_flags(story, where, filled, flags)
  11508. def ll_fz_pool_alloc(pool, size):
  11509. r"""
  11510. Low-level wrapper for `::fz_pool_alloc()`.
  11511. Allocate a block of size bytes from the pool.
  11512. """
  11513. return _mupdf.ll_fz_pool_alloc(pool, size)
  11514. def ll_fz_pool_array_append(arr, idx):
  11515. r"""
  11516. Low-level wrapper for `::fz_pool_array_append()`.
  11517. This function has out-params. Python/C# wrappers look like:
  11518. `ll_fz_pool_array_append(::fz_pool_array *arr)` => `(void *, size_t idx)`
  11519. Append an element to the end of the array.
  11520. Returns a pointer to the new element (initially all 0's), and
  11521. (optionally) the index of that element.
  11522. """
  11523. return _mupdf.ll_fz_pool_array_append(arr, idx)
  11524. def ll_fz_pool_array_len(arr):
  11525. r"""
  11526. Low-level wrapper for `::fz_pool_array_len()`.
  11527. Get the length of the array.
  11528. """
  11529. return _mupdf.ll_fz_pool_array_len(arr)
  11530. def ll_fz_pool_array_lookup(arr, idx):
  11531. r"""
  11532. Low-level wrapper for `::fz_pool_array_lookup()`.
  11533. Lookup an element in the array.
  11534. """
  11535. return _mupdf.ll_fz_pool_array_lookup(arr, idx)
  11536. def ll_fz_pool_size(pool):
  11537. r"""
  11538. Low-level wrapper for `::fz_pool_size()`.
  11539. The current size of the pool.
  11540. The number of bytes of storage currently allocated to the pool.
  11541. This is the total of the storage used for the blocks making
  11542. up the pool, rather then total of the allocated blocks so far,
  11543. so it will increase in 'lumps'.
  11544. from the pool, then the pool size may still be X
  11545. """
  11546. return _mupdf.ll_fz_pool_size(pool)
  11547. def ll_fz_pool_strdup(pool, s):
  11548. r"""
  11549. Low-level wrapper for `::fz_pool_strdup()`.
  11550. strdup equivalent allocating from the pool.
  11551. """
  11552. return _mupdf.ll_fz_pool_strdup(pool, s)
  11553. def ll_fz_pop_clip(dev):
  11554. r"""Low-level wrapper for `::fz_pop_clip()`."""
  11555. return _mupdf.ll_fz_pop_clip(dev)
  11556. def ll_fz_post_scale(m, sx, sy):
  11557. r"""
  11558. Low-level wrapper for `::fz_post_scale()`.
  11559. Scale a matrix by postmultiplication.
  11560. m: Pointer to the matrix to scale
  11561. sx, sy: Scaling factors along the X- and Y-axes. A scaling
  11562. factor of 1.0 will not cause any scaling along the relevant
  11563. axis.
  11564. Returns m (updated).
  11565. """
  11566. return _mupdf.ll_fz_post_scale(m, sx, sy)
  11567. def ll_fz_pre_rotate(m, degrees):
  11568. r"""
  11569. Low-level wrapper for `::fz_pre_rotate()`.
  11570. Rotate a transformation by premultiplying.
  11571. The premultiplied matrix is of the form
  11572. [ cos(deg) sin(deg) -sin(deg) cos(deg) 0 0 ].
  11573. m: Pointer to matrix to premultiply.
  11574. degrees: Degrees of counter clockwise rotation. Values less
  11575. than zero and greater than 360 are handled as expected.
  11576. Returns m (updated).
  11577. """
  11578. return _mupdf.ll_fz_pre_rotate(m, degrees)
  11579. def ll_fz_pre_scale(m, sx, sy):
  11580. r"""
  11581. Low-level wrapper for `::fz_pre_scale()`.
  11582. Scale a matrix by premultiplication.
  11583. m: Pointer to the matrix to scale
  11584. sx, sy: Scaling factors along the X- and Y-axes. A scaling
  11585. factor of 1.0 will not cause any scaling along the relevant
  11586. axis.
  11587. Returns m (updated).
  11588. """
  11589. return _mupdf.ll_fz_pre_scale(m, sx, sy)
  11590. def ll_fz_pre_shear(m, sx, sy):
  11591. r"""
  11592. Low-level wrapper for `::fz_pre_shear()`.
  11593. Premultiply a matrix with a shearing matrix.
  11594. The shearing matrix is of the form [ 1 sy sx 1 0 0 ].
  11595. m: pointer to matrix to premultiply
  11596. sx, sy: Shearing factors. A shearing factor of 0.0 will not
  11597. cause any shearing along the relevant axis.
  11598. Returns m (updated).
  11599. """
  11600. return _mupdf.ll_fz_pre_shear(m, sx, sy)
  11601. def ll_fz_pre_translate(m, tx, ty):
  11602. r"""
  11603. Low-level wrapper for `::fz_pre_translate()`.
  11604. Translate a matrix by premultiplication.
  11605. m: The matrix to translate
  11606. tx, ty: Translation distances along the X- and Y-axes. A
  11607. translation of 0 will not cause any translation along the
  11608. relevant axis.
  11609. Returns m.
  11610. """
  11611. return _mupdf.ll_fz_pre_translate(m, tx, ty)
  11612. def ll_fz_prepare_t3_glyph(font, gid):
  11613. r"""
  11614. Low-level wrapper for `::fz_prepare_t3_glyph()`.
  11615. Force a type3 font to cache the displaylist for a given glyph
  11616. id.
  11617. This caching can involve reading the underlying file, so must
  11618. happen ahead of time, so we aren't suddenly forced to read the
  11619. file while playing a displaylist back.
  11620. """
  11621. return _mupdf.ll_fz_prepare_t3_glyph(font, gid)
  11622. def ll_fz_previous_page(doc, loc):
  11623. r"""
  11624. Low-level wrapper for `::fz_previous_page()`.
  11625. Function to get the location of the previous page (allowing for
  11626. the end of chapters etc). If already at the start of the
  11627. document, returns the current page.
  11628. """
  11629. return _mupdf.ll_fz_previous_page(doc, loc)
  11630. def ll_fz_print_stext_header_as_html(out):
  11631. r"""Low-level wrapper for `::fz_print_stext_header_as_html()`."""
  11632. return _mupdf.ll_fz_print_stext_header_as_html(out)
  11633. def ll_fz_print_stext_header_as_xhtml(out):
  11634. r"""Low-level wrapper for `::fz_print_stext_header_as_xhtml()`."""
  11635. return _mupdf.ll_fz_print_stext_header_as_xhtml(out)
  11636. def ll_fz_print_stext_page_as_html(out, page, id):
  11637. r"""
  11638. Low-level wrapper for `::fz_print_stext_page_as_html()`.
  11639. Output structured text to a file in HTML (visual) format.
  11640. """
  11641. return _mupdf.ll_fz_print_stext_page_as_html(out, page, id)
  11642. def ll_fz_print_stext_page_as_json(out, page, scale):
  11643. r"""
  11644. Low-level wrapper for `::fz_print_stext_page_as_json()`.
  11645. Output structured text to a file in JSON format.
  11646. """
  11647. return _mupdf.ll_fz_print_stext_page_as_json(out, page, scale)
  11648. def ll_fz_print_stext_page_as_text(out, page):
  11649. r"""
  11650. Low-level wrapper for `::fz_print_stext_page_as_text()`.
  11651. Output structured text to a file in plain-text UTF-8 format.
  11652. """
  11653. return _mupdf.ll_fz_print_stext_page_as_text(out, page)
  11654. def ll_fz_print_stext_page_as_xhtml(out, page, id):
  11655. r"""
  11656. Low-level wrapper for `::fz_print_stext_page_as_xhtml()`.
  11657. Output structured text to a file in XHTML (semantic) format.
  11658. """
  11659. return _mupdf.ll_fz_print_stext_page_as_xhtml(out, page, id)
  11660. def ll_fz_print_stext_page_as_xml(out, page, id):
  11661. r"""
  11662. Low-level wrapper for `::fz_print_stext_page_as_xml()`.
  11663. Output structured text to a file in XML format.
  11664. """
  11665. return _mupdf.ll_fz_print_stext_page_as_xml(out, page, id)
  11666. def ll_fz_print_stext_trailer_as_html(out):
  11667. r"""Low-level wrapper for `::fz_print_stext_trailer_as_html()`."""
  11668. return _mupdf.ll_fz_print_stext_trailer_as_html(out)
  11669. def ll_fz_print_stext_trailer_as_xhtml(out):
  11670. r"""Low-level wrapper for `::fz_print_stext_trailer_as_xhtml()`."""
  11671. return _mupdf.ll_fz_print_stext_trailer_as_xhtml(out)
  11672. def ll_fz_process_opened_pages(doc, process_openend_page, state):
  11673. r"""
  11674. Low-level wrapper for `::fz_process_opened_pages()`.
  11675. Iterates over all opened pages of the document, calling the
  11676. provided callback for each page for processing. If the callback
  11677. returns non-NULL then the iteration stops and that value is returned
  11678. to the called of fz_process_opened_pages().
  11679. The state pointer provided to fz_process_opened_pages() is
  11680. passed on to the callback but is owned by the caller.
  11681. Returns the first non-NULL value returned by the callback,
  11682. or NULL if the callback returned NULL for all opened pages.
  11683. """
  11684. return _mupdf.ll_fz_process_opened_pages(doc, process_openend_page, state)
  11685. def ll_fz_process_shade(shade, ctm, scissor, prepare, process, process_arg):
  11686. r"""
  11687. Low-level wrapper for `::fz_process_shade()`.
  11688. Process a shade, using supplied callback functions. This
  11689. decomposes the shading to a mesh (even ones that are not
  11690. natively meshes, such as linear or radial shadings), and
  11691. processes triangles from those meshes.
  11692. shade: The shade to process.
  11693. ctm: The transform to use
  11694. prepare: Callback function to 'prepare' each vertex.
  11695. This function is passed an array of floats, and populates
  11696. a fz_vertex structure.
  11697. process: This function is passed 3 pointers to vertex
  11698. structures, and actually performs the processing (typically
  11699. filling the area between the vertices).
  11700. process_arg: An opaque argument passed through from caller
  11701. to callback functions.
  11702. """
  11703. return _mupdf.ll_fz_process_shade(shade, ctm, scissor, prepare, process, process_arg)
  11704. def ll_fz_ptr_heap_insert(heap, v, HEAP_CMP):
  11705. r"""Low-level wrapper for `::fz_ptr_heap_insert()`."""
  11706. return _mupdf.ll_fz_ptr_heap_insert(heap, v, HEAP_CMP)
  11707. def ll_fz_ptr_heap_sort(heap, HEAP_CMP):
  11708. r"""Low-level wrapper for `::fz_ptr_heap_sort()`."""
  11709. return _mupdf.ll_fz_ptr_heap_sort(heap, HEAP_CMP)
  11710. def ll_fz_ptr_heap_uniq(heap, HEAP_CMP):
  11711. r"""Low-level wrapper for `::fz_ptr_heap_uniq()`."""
  11712. return _mupdf.ll_fz_ptr_heap_uniq(heap, HEAP_CMP)
  11713. def ll_fz_purge_glyph_cache():
  11714. r"""
  11715. Low-level wrapper for `::fz_purge_glyph_cache()`.
  11716. Purge all the glyphs from the cache.
  11717. """
  11718. return _mupdf.ll_fz_purge_glyph_cache()
  11719. def ll_fz_quad_from_rect(r):
  11720. r"""
  11721. Low-level wrapper for `::fz_quad_from_rect()`.
  11722. Convert a rect to a quad (losslessly).
  11723. """
  11724. return _mupdf.ll_fz_quad_from_rect(r)
  11725. def ll_fz_quadto(path, x0, y0, x1, y1):
  11726. r"""
  11727. Low-level wrapper for `::fz_quadto()`.
  11728. Append a 'quadto' command to an open path. (For a
  11729. quadratic bezier).
  11730. path: The path to modify.
  11731. x0, y0: The control coordinates for the quadratic curve.
  11732. x1, y1: The end coordinates for the quadratic curve.
  11733. Throws exceptions on failure to allocate, or attempting to
  11734. modify a packed path.
  11735. """
  11736. return _mupdf.ll_fz_quadto(path, x0, y0, x1, y1)
  11737. def ll_fz_range_limit_xml_char(c):
  11738. r"""Low-level wrapper for `::fz_range_limit_xml_char()`."""
  11739. return _mupdf.ll_fz_range_limit_xml_char(c)
  11740. def ll_fz_read(stm, data, len):
  11741. r"""
  11742. Low-level wrapper for `::fz_read()`.
  11743. Read from a stream into a given data block.
  11744. stm: The stream to read from.
  11745. data: The data block to read into.
  11746. len: The length of the data block (in bytes).
  11747. Returns the number of bytes read. May throw exceptions.
  11748. """
  11749. return _mupdf.ll_fz_read(stm, data, len)
  11750. def ll_fz_read_all(stm, initial):
  11751. r"""
  11752. Low-level wrapper for `::fz_read_all()`.
  11753. Read all of a stream into a buffer.
  11754. stm: The stream to read from
  11755. initial: Suggested initial size for the buffer.
  11756. Returns a buffer created from reading from the stream. May throw
  11757. exceptions on failure to allocate.
  11758. """
  11759. return _mupdf.ll_fz_read_all(stm, initial)
  11760. def ll_fz_read_archive_entry(arch, name):
  11761. r"""
  11762. Low-level wrapper for `::fz_read_archive_entry()`.
  11763. Reads all bytes in an archive entry
  11764. into a buffer.
  11765. name: Entry name to look for, this must be an exact match to
  11766. the entry name in the archive.
  11767. Throws an exception if a matching entry cannot be found.
  11768. """
  11769. return _mupdf.ll_fz_read_archive_entry(arch, name)
  11770. def ll_fz_read_best(stm, initial, truncated, worst_case):
  11771. r"""
  11772. Low-level wrapper for `::fz_read_best()`.
  11773. This function has out-params. Python/C# wrappers look like:
  11774. `ll_fz_read_best(::fz_stream *stm, size_t initial, size_t worst_case)` => `(fz_buffer *, int truncated)`
  11775. Attempt to read a stream into a buffer. If truncated
  11776. is NULL behaves as fz_read_all, sets a truncated flag in case of
  11777. error.
  11778. stm: The stream to read from.
  11779. initial: Suggested initial size for the buffer.
  11780. truncated: Flag to store success/failure indication in.
  11781. worst_case: 0 for unknown, otherwise an upper bound for the
  11782. size of the stream.
  11783. Returns a buffer created from reading from the stream.
  11784. """
  11785. return _mupdf.ll_fz_read_best(stm, initial, truncated, worst_case)
  11786. def ll_fz_read_bits(stm, n):
  11787. r"""
  11788. Low-level wrapper for `::fz_read_bits()`.
  11789. Read the next n bits from a stream (assumed to
  11790. be packed most significant bit first).
  11791. stm: The stream to read from.
  11792. n: The number of bits to read, between 1 and 8*sizeof(int)
  11793. inclusive.
  11794. Returns -1 for EOF, or the required number of bits.
  11795. """
  11796. return _mupdf.ll_fz_read_bits(stm, n)
  11797. def ll_fz_read_byte(stm):
  11798. r"""
  11799. Low-level wrapper for `::fz_read_byte()`.
  11800. Read the next byte from a stream.
  11801. stm: The stream t read from.
  11802. Returns -1 for end of stream, or the next byte. May
  11803. throw exceptions.
  11804. """
  11805. return _mupdf.ll_fz_read_byte(stm)
  11806. def ll_fz_read_file(filename):
  11807. r"""
  11808. Low-level wrapper for `::fz_read_file()`.
  11809. Read all the contents of a file into a buffer.
  11810. """
  11811. return _mupdf.ll_fz_read_file(filename)
  11812. def ll_fz_read_float(stm):
  11813. r"""Low-level wrapper for `::fz_read_float()`."""
  11814. return _mupdf.ll_fz_read_float(stm)
  11815. def ll_fz_read_float_le(stm):
  11816. r"""Low-level wrapper for `::fz_read_float_le()`."""
  11817. return _mupdf.ll_fz_read_float_le(stm)
  11818. def ll_fz_read_int16(stm):
  11819. r"""Low-level wrapper for `::fz_read_int16()`."""
  11820. return _mupdf.ll_fz_read_int16(stm)
  11821. def ll_fz_read_int16_le(stm):
  11822. r"""Low-level wrapper for `::fz_read_int16_le()`."""
  11823. return _mupdf.ll_fz_read_int16_le(stm)
  11824. def ll_fz_read_int32(stm):
  11825. r"""Low-level wrapper for `::fz_read_int32()`."""
  11826. return _mupdf.ll_fz_read_int32(stm)
  11827. def ll_fz_read_int32_le(stm):
  11828. r"""Low-level wrapper for `::fz_read_int32_le()`."""
  11829. return _mupdf.ll_fz_read_int32_le(stm)
  11830. def ll_fz_read_int64(stm):
  11831. r"""Low-level wrapper for `::fz_read_int64()`."""
  11832. return _mupdf.ll_fz_read_int64(stm)
  11833. def ll_fz_read_int64_le(stm):
  11834. r"""Low-level wrapper for `::fz_read_int64_le()`."""
  11835. return _mupdf.ll_fz_read_int64_le(stm)
  11836. def ll_fz_read_line(stm, buf, max):
  11837. r"""
  11838. Low-level wrapper for `::fz_read_line()`.
  11839. Read a line from stream into the buffer until either a
  11840. terminating newline or EOF, which it replaces with a null byte
  11841. ('').
  11842. Returns buf on success, and NULL when end of file occurs while
  11843. no characters have been read.
  11844. """
  11845. return _mupdf.ll_fz_read_line(stm, buf, max)
  11846. def ll_fz_read_rbits(stm, n):
  11847. r"""
  11848. Low-level wrapper for `::fz_read_rbits()`.
  11849. Read the next n bits from a stream (assumed to
  11850. be packed least significant bit first).
  11851. stm: The stream to read from.
  11852. n: The number of bits to read, between 1 and 8*sizeof(int)
  11853. inclusive.
  11854. Returns (unsigned int)-1 for EOF, or the required number of bits.
  11855. """
  11856. return _mupdf.ll_fz_read_rbits(stm, n)
  11857. def ll_fz_read_rune(_in):
  11858. r"""
  11859. Low-level wrapper for `::fz_read_rune()`.
  11860. Read a utf-8 rune from a stream.
  11861. In the event of encountering badly formatted utf-8 codes
  11862. (such as a leading code with an unexpected number of following
  11863. codes) no error/exception is given, but undefined values may be
  11864. returned.
  11865. """
  11866. return _mupdf.ll_fz_read_rune(_in)
  11867. def ll_fz_read_string(stm, buffer, len):
  11868. r"""
  11869. Low-level wrapper for `::fz_read_string()`.
  11870. Read a null terminated string from the stream into
  11871. a buffer of a given length. The buffer will be null terminated.
  11872. Throws on failure (including the failure to fit the entire
  11873. string including the terminator into the buffer).
  11874. """
  11875. return _mupdf.ll_fz_read_string(stm, buffer, len)
  11876. def ll_fz_read_uint16(stm):
  11877. r"""
  11878. Low-level wrapper for `::fz_read_uint16()`.
  11879. fz_read_[u]int(16|24|32|64)(_le)?
  11880. Read a 16/32/64 bit signed/unsigned integer from stream,
  11881. in big or little-endian byte orders.
  11882. Throws an exception if EOF is encountered.
  11883. """
  11884. return _mupdf.ll_fz_read_uint16(stm)
  11885. def ll_fz_read_uint16_le(stm):
  11886. r"""Low-level wrapper for `::fz_read_uint16_le()`."""
  11887. return _mupdf.ll_fz_read_uint16_le(stm)
  11888. def ll_fz_read_uint24(stm):
  11889. r"""Low-level wrapper for `::fz_read_uint24()`."""
  11890. return _mupdf.ll_fz_read_uint24(stm)
  11891. def ll_fz_read_uint24_le(stm):
  11892. r"""Low-level wrapper for `::fz_read_uint24_le()`."""
  11893. return _mupdf.ll_fz_read_uint24_le(stm)
  11894. def ll_fz_read_uint32(stm):
  11895. r"""Low-level wrapper for `::fz_read_uint32()`."""
  11896. return _mupdf.ll_fz_read_uint32(stm)
  11897. def ll_fz_read_uint32_le(stm):
  11898. r"""Low-level wrapper for `::fz_read_uint32_le()`."""
  11899. return _mupdf.ll_fz_read_uint32_le(stm)
  11900. def ll_fz_read_uint64(stm):
  11901. r"""Low-level wrapper for `::fz_read_uint64()`."""
  11902. return _mupdf.ll_fz_read_uint64(stm)
  11903. def ll_fz_read_uint64_le(stm):
  11904. r"""Low-level wrapper for `::fz_read_uint64_le()`."""
  11905. return _mupdf.ll_fz_read_uint64_le(stm)
  11906. def ll_fz_read_utf16_be(stm):
  11907. r"""Low-level wrapper for `::fz_read_utf16_be()`."""
  11908. return _mupdf.ll_fz_read_utf16_be(stm)
  11909. def ll_fz_read_utf16_le(stm):
  11910. r"""
  11911. Low-level wrapper for `::fz_read_utf16_le()`.
  11912. Read a utf-16 rune from a stream. (little endian and
  11913. big endian respectively).
  11914. In the event of encountering badly formatted utf-16 codes
  11915. (mismatched surrogates) no error/exception is given, but
  11916. undefined values may be returned.
  11917. """
  11918. return _mupdf.ll_fz_read_utf16_le(stm)
  11919. def ll_fz_realloc(p, size):
  11920. r"""
  11921. Low-level wrapper for `::fz_realloc()`.
  11922. Reallocates a block of memory to given size. Existing contents
  11923. up to min(old_size,new_size) are maintained. The rest of the
  11924. block is uninitialised.
  11925. fz_realloc(ctx, NULL, size) behaves like fz_malloc(ctx, size).
  11926. fz_realloc(ctx, p, 0); behaves like fz_free(ctx, p).
  11927. Throws exception in the event of failure to allocate.
  11928. """
  11929. return _mupdf.ll_fz_realloc(p, size)
  11930. def ll_fz_realloc_no_throw(p, size):
  11931. r"""
  11932. Low-level wrapper for `::fz_realloc_no_throw()`.
  11933. fz_realloc equivalent that returns NULL rather than throwing
  11934. exceptions.
  11935. """
  11936. return _mupdf.ll_fz_realloc_no_throw(p, size)
  11937. def ll_fz_realpath(path, resolved_path):
  11938. r"""
  11939. Low-level wrapper for `::fz_realpath()`.
  11940. Resolve a path to an absolute file name.
  11941. The resolved path buffer must be of at least PATH_MAX size.
  11942. """
  11943. return _mupdf.ll_fz_realpath(path, resolved_path)
  11944. def ll_fz_recognize_document(magic):
  11945. r"""
  11946. Low-level wrapper for `::fz_recognize_document()`.
  11947. Given a magic find a document handler that can handle a
  11948. document of this type.
  11949. magic: Can be a filename extension (including initial period) or
  11950. a mimetype.
  11951. """
  11952. return _mupdf.ll_fz_recognize_document(magic)
  11953. def ll_fz_recognize_document_content(filename):
  11954. r"""
  11955. Low-level wrapper for `::fz_recognize_document_content()`.
  11956. Given a filename find a document handler that can handle a
  11957. document of this type.
  11958. filename: The filename of the document. This will be opened and sampled
  11959. to check data.
  11960. """
  11961. return _mupdf.ll_fz_recognize_document_content(filename)
  11962. def ll_fz_recognize_document_stream_and_dir_content(stream, dir, magic):
  11963. r"""
  11964. Low-level wrapper for `::fz_recognize_document_stream_and_dir_content()`.
  11965. Given a magic find a document handler that can handle a
  11966. document of this type.
  11967. stream: the file stream to sample. May be NULL if the document is
  11968. a directory.
  11969. dir: an fz_archive representing the directory from which the
  11970. stream was opened (or NULL).
  11971. magic: Can be a filename extension (including initial period) or
  11972. a mimetype.
  11973. """
  11974. return _mupdf.ll_fz_recognize_document_stream_and_dir_content(stream, dir, magic)
  11975. def ll_fz_recognize_document_stream_content(stream, magic):
  11976. r"""
  11977. Low-level wrapper for `::fz_recognize_document_stream_content()`.
  11978. Given a magic find a document handler that can handle a
  11979. document of this type.
  11980. stream: the file stream to sample. May be NULL if the document is
  11981. a directory.
  11982. magic: Can be a filename extension (including initial period) or
  11983. a mimetype.
  11984. """
  11985. return _mupdf.ll_fz_recognize_document_stream_content(stream, magic)
  11986. def ll_fz_recognize_image_format(p):
  11987. r"""
  11988. Low-level wrapper for `::fz_recognize_image_format()`.
  11989. Recognise image format strings in the first 8 bytes from image
  11990. data.
  11991. """
  11992. return _mupdf.ll_fz_recognize_image_format(p)
  11993. def ll_fz_rect_from_irect(bbox):
  11994. r"""
  11995. Low-level wrapper for `::fz_rect_from_irect()`.
  11996. Convert a bbox into a rect.
  11997. For our purposes, a rect can represent all the values we meet in
  11998. a bbox, so nothing can go wrong.
  11999. rect: A place to store the generated rectangle.
  12000. bbox: The bbox to convert.
  12001. Returns rect (updated).
  12002. """
  12003. return _mupdf.ll_fz_rect_from_irect(bbox)
  12004. def ll_fz_rect_from_quad(q):
  12005. r"""
  12006. Low-level wrapper for `::fz_rect_from_quad()`.
  12007. Convert a quad to the smallest rect that covers it.
  12008. """
  12009. return _mupdf.ll_fz_rect_from_quad(q)
  12010. def ll_fz_rectto(path, x0, y0, x1, y1):
  12011. r"""
  12012. Low-level wrapper for `::fz_rectto()`.
  12013. Append a 'rectto' command to an open path.
  12014. The rectangle is equivalent to:
  12015. moveto x0 y0
  12016. lineto x1 y0
  12017. lineto x1 y1
  12018. lineto x0 y1
  12019. closepath
  12020. path: The path to modify.
  12021. x0, y0: First corner of the rectangle.
  12022. x1, y1: Second corner of the rectangle.
  12023. Throws exceptions on failure to allocate, or attempting to
  12024. modify a packed path.
  12025. """
  12026. return _mupdf.ll_fz_rectto(path, x0, y0, x1, y1)
  12027. def ll_fz_register_activity_logger(activity, opaque):
  12028. r"""Low-level wrapper for `::fz_register_activity_logger()`."""
  12029. return _mupdf.ll_fz_register_activity_logger(activity, opaque)
  12030. def ll_fz_register_archive_handler(handler):
  12031. r"""Low-level wrapper for `::fz_register_archive_handler()`."""
  12032. return _mupdf.ll_fz_register_archive_handler(handler)
  12033. def ll_fz_register_document_handler(handler):
  12034. r"""
  12035. Low-level wrapper for `::fz_register_document_handler()`.
  12036. Register a handler for a document type.
  12037. handler: The handler to register. This must live on for the duration of the
  12038. use of this handler. It will be passed back to the handler for calls so
  12039. the caller can use it to retrieve state.
  12040. """
  12041. return _mupdf.ll_fz_register_document_handler(handler)
  12042. def ll_fz_register_document_handlers():
  12043. r"""
  12044. Low-level wrapper for `::fz_register_document_handlers()`.
  12045. Register handlers for all the standard document types supported in
  12046. this build.
  12047. """
  12048. return _mupdf.ll_fz_register_document_handlers()
  12049. def ll_fz_remove_item(drop, key, type):
  12050. r"""
  12051. Low-level wrapper for `::fz_remove_item()`.
  12052. Remove an item from the store.
  12053. If an item indexed by the given key exists in the store, remove
  12054. it.
  12055. drop: The function used to free the value (to ensure we get a
  12056. value of the correct type).
  12057. key: The key used to find the item to remove.
  12058. type: Functions used to manipulate the key.
  12059. """
  12060. return _mupdf.ll_fz_remove_item(drop, key, type)
  12061. def ll_fz_render_flags(dev, set, clear):
  12062. r"""Low-level wrapper for `::fz_render_flags()`."""
  12063. return _mupdf.ll_fz_render_flags(dev, set, clear)
  12064. def ll_fz_render_glyph_pixmap(font, gid, ctm, scissor, aa):
  12065. r"""
  12066. Low-level wrapper for `::fz_render_glyph_pixmap()`.
  12067. Create a pixmap containing a rendered glyph.
  12068. Lookup gid from font, clip it with scissor, and rendering it
  12069. with aa bits of antialiasing into a new pixmap.
  12070. The caller takes ownership of the pixmap and so must free it.
  12071. Note: This function is no longer used for normal rendering
  12072. operations, and is kept around just because we use it in the
  12073. app. It should be considered "at risk" of removal from the API.
  12074. """
  12075. return _mupdf.ll_fz_render_glyph_pixmap(font, gid, ctm, scissor, aa)
  12076. def ll_fz_render_t3_glyph_direct(dev, font, gid, trm, gstate, def_cs, fill_gstate, stroke_gstate):
  12077. r"""
  12078. Low-level wrapper for `::fz_render_t3_glyph_direct()`.
  12079. Nasty PDF interpreter specific hernia, required to allow the
  12080. interpreter to replay glyphs from a type3 font directly into
  12081. the target device.
  12082. This is only used in exceptional circumstances (such as type3
  12083. glyphs that inherit current graphics state, or nested type3
  12084. glyphs).
  12085. """
  12086. return _mupdf.ll_fz_render_t3_glyph_direct(dev, font, gid, trm, gstate, def_cs, fill_gstate, stroke_gstate)
  12087. def ll_fz_rendering_intent_name(ri):
  12088. r"""
  12089. Low-level wrapper for `::fz_rendering_intent_name()`.
  12090. Map from enumerated rendering intent to string.
  12091. The returned string is static and therefore must not be freed.
  12092. """
  12093. return _mupdf.ll_fz_rendering_intent_name(ri)
  12094. def ll_fz_report_error():
  12095. r"""Low-level wrapper for `::fz_report_error()`."""
  12096. return _mupdf.ll_fz_report_error()
  12097. def ll_fz_reset_output(arg_1):
  12098. r"""
  12099. Low-level wrapper for `::fz_reset_output()`.
  12100. Reset a closed output stream. Returns state to
  12101. (broadly) that which it was in when opened. Not
  12102. all outputs can be reset, so this may throw an
  12103. exception.
  12104. """
  12105. return _mupdf.ll_fz_reset_output(arg_1)
  12106. def ll_fz_reset_story(story):
  12107. r"""Low-level wrapper for `::fz_reset_story()`."""
  12108. return _mupdf.ll_fz_reset_story(story)
  12109. def ll_fz_resize_buffer(buf, capacity):
  12110. r"""
  12111. Low-level wrapper for `::fz_resize_buffer()`.
  12112. Ensure that a buffer has a given capacity,
  12113. truncating data if required.
  12114. capacity: The desired capacity for the buffer. If the current
  12115. size of the buffer contents is smaller than capacity, it is
  12116. truncated.
  12117. """
  12118. return _mupdf.ll_fz_resize_buffer(buf, capacity)
  12119. def ll_fz_resolve_link(doc, uri, xp, yp):
  12120. r"""
  12121. Low-level wrapper for `::fz_resolve_link()`.
  12122. This function has out-params. Python/C# wrappers look like:
  12123. `ll_fz_resolve_link(::fz_document *doc, const char *uri)` => `(fz_location, float xp, float yp)`
  12124. Resolve an internal link to a page number.
  12125. xp, yp: Pointer to store coordinate of destination on the page.
  12126. Returns (-1,-1) if the URI cannot be resolved.
  12127. """
  12128. return _mupdf.ll_fz_resolve_link(doc, uri, xp, yp)
  12129. def ll_fz_resolve_link_dest(doc, uri):
  12130. r"""
  12131. Low-level wrapper for `::fz_resolve_link_dest()`.
  12132. Resolve an internal link to a page number, location, and possible viewing parameters.
  12133. Returns location (-1,-1) if the URI cannot be resolved.
  12134. """
  12135. return _mupdf.ll_fz_resolve_link_dest(doc, uri)
  12136. def ll_fz_rethrow():
  12137. r"""Low-level wrapper for `::fz_rethrow()`."""
  12138. return _mupdf.ll_fz_rethrow()
  12139. def ll_fz_rethrow_if(errcode):
  12140. r"""
  12141. Low-level wrapper for `::fz_rethrow_if()`.
  12142. Within an fz_catch() block, rethrow the current exception
  12143. if the errcode of the current exception matches.
  12144. This assumes no intervening use of fz_try/fz_catch.
  12145. """
  12146. return _mupdf.ll_fz_rethrow_if(errcode)
  12147. def ll_fz_rethrow_unless(errcode):
  12148. r"""Low-level wrapper for `::fz_rethrow_unless()`."""
  12149. return _mupdf.ll_fz_rethrow_unless(errcode)
  12150. def ll_fz_rotate(degrees):
  12151. r"""
  12152. Low-level wrapper for `::fz_rotate()`.
  12153. Create a rotation matrix.
  12154. The returned matrix is of the form
  12155. [ cos(deg) sin(deg) -sin(deg) cos(deg) 0 0 ].
  12156. m: Pointer to place to store matrix
  12157. degrees: Degrees of counter clockwise rotation. Values less
  12158. than zero and greater than 360 are handled as expected.
  12159. Returns m.
  12160. """
  12161. return _mupdf.ll_fz_rotate(degrees)
  12162. def ll_fz_round_rect(rect):
  12163. r"""
  12164. Low-level wrapper for `::fz_round_rect()`.
  12165. Round rectangle coordinates.
  12166. Coordinates in a bounding box are integers, so rounding of the
  12167. rects coordinates takes place. The top left corner is rounded
  12168. upwards and left while the bottom right corner is rounded
  12169. downwards and to the right.
  12170. This differs from fz_irect_from_rect, in that fz_irect_from_rect
  12171. slavishly follows the numbers (i.e any slight over/under
  12172. calculations can cause whole extra pixels to be added).
  12173. fz_round_rect allows for a small amount of rounding error when
  12174. calculating the bbox.
  12175. """
  12176. return _mupdf.ll_fz_round_rect(rect)
  12177. def ll_fz_run_display_list(list, dev, ctm, scissor, cookie):
  12178. r"""
  12179. Low-level wrapper for `::fz_run_display_list()`.
  12180. (Re)-run a display list through a device.
  12181. list: A display list, created by fz_new_display_list and
  12182. populated with objects from a page by running fz_run_page on a
  12183. device obtained from fz_new_list_device.
  12184. ctm: Transform to apply to display list contents. May include
  12185. for example scaling and rotation, see fz_scale, fz_rotate and
  12186. fz_concat. Set to fz_identity if no transformation is desired.
  12187. scissor: Only the part of the contents of the display list
  12188. visible within this area will be considered when the list is
  12189. run through the device. This does not imply for tile objects
  12190. contained in the display list.
  12191. cookie: Communication mechanism between caller and library
  12192. running the page. Intended for multi-threaded applications,
  12193. while single-threaded applications set cookie to NULL. The
  12194. caller may abort an ongoing page run. Cookie also communicates
  12195. progress information back to the caller. The fields inside
  12196. cookie are continually updated while the page is being run.
  12197. """
  12198. return _mupdf.ll_fz_run_display_list(list, dev, ctm, scissor, cookie)
  12199. def ll_fz_run_document_structure(doc, dev, cookie):
  12200. r"""
  12201. Low-level wrapper for `::fz_run_document_structure()`.
  12202. Run the document structure through a device.
  12203. doc: Document in question.
  12204. dev: Device obtained from fz_new_*_device.
  12205. cookie: Communication mechanism between caller and library.
  12206. Intended for multi-threaded applications, while
  12207. single-threaded applications set cookie to NULL. The
  12208. caller may abort an ongoing rendering of a page. Cookie also
  12209. communicates progress information back to the caller. The
  12210. fields inside cookie are continually updated while the page is
  12211. rendering.
  12212. """
  12213. return _mupdf.ll_fz_run_document_structure(doc, dev, cookie)
  12214. def ll_fz_run_page(page, dev, transform, cookie):
  12215. r"""
  12216. Low-level wrapper for `::fz_run_page()`.
  12217. Run a page through a device.
  12218. page: Page obtained from fz_load_page.
  12219. dev: Device obtained from fz_new_*_device.
  12220. transform: Transform to apply to page. May include for example
  12221. scaling and rotation, see fz_scale, fz_rotate and fz_concat.
  12222. Set to fz_identity if no transformation is desired.
  12223. cookie: Communication mechanism between caller and library
  12224. rendering the page. Intended for multi-threaded applications,
  12225. while single-threaded applications set cookie to NULL. The
  12226. caller may abort an ongoing rendering of a page. Cookie also
  12227. communicates progress information back to the caller. The
  12228. fields inside cookie are continually updated while the page is
  12229. rendering.
  12230. """
  12231. return _mupdf.ll_fz_run_page(page, dev, transform, cookie)
  12232. def ll_fz_run_page_annots(page, dev, transform, cookie):
  12233. r"""
  12234. Low-level wrapper for `::fz_run_page_annots()`.
  12235. Run the annotations on a page through a device.
  12236. """
  12237. return _mupdf.ll_fz_run_page_annots(page, dev, transform, cookie)
  12238. def ll_fz_run_page_contents(page, dev, transform, cookie):
  12239. r"""
  12240. Low-level wrapper for `::fz_run_page_contents()`.
  12241. Run a page through a device. Just the main
  12242. page content, without the annotations, if any.
  12243. page: Page obtained from fz_load_page.
  12244. dev: Device obtained from fz_new_*_device.
  12245. transform: Transform to apply to page. May include for example
  12246. scaling and rotation, see fz_scale, fz_rotate and fz_concat.
  12247. Set to fz_identity if no transformation is desired.
  12248. cookie: Communication mechanism between caller and library
  12249. rendering the page. Intended for multi-threaded applications,
  12250. while single-threaded applications set cookie to NULL. The
  12251. caller may abort an ongoing rendering of a page. Cookie also
  12252. communicates progress information back to the caller. The
  12253. fields inside cookie are continually updated while the page is
  12254. rendering.
  12255. """
  12256. return _mupdf.ll_fz_run_page_contents(page, dev, transform, cookie)
  12257. def ll_fz_run_page_widgets(page, dev, transform, cookie):
  12258. r"""
  12259. Low-level wrapper for `::fz_run_page_widgets()`.
  12260. Run the widgets on a page through a device.
  12261. """
  12262. return _mupdf.ll_fz_run_page_widgets(page, dev, transform, cookie)
  12263. def ll_fz_run_t3_glyph(font, gid, trm, dev):
  12264. r"""
  12265. Low-level wrapper for `::fz_run_t3_glyph()`.
  12266. Run a glyph from a Type3 font to
  12267. a given device.
  12268. font: The font to find the glyph in.
  12269. gid: The glyph to run.
  12270. trm: The transform to apply.
  12271. dev: The device to render onto.
  12272. """
  12273. return _mupdf.ll_fz_run_t3_glyph(font, gid, trm, dev)
  12274. def ll_fz_runeidx(str, p):
  12275. r"""
  12276. Low-level wrapper for `::fz_runeidx()`.
  12277. Compute the index of a rune in a string.
  12278. str: Pointer to beginning of a string.
  12279. p: Pointer to a char in str.
  12280. Returns the index of the rune pointed to by p in str.
  12281. """
  12282. return _mupdf.ll_fz_runeidx(str, p)
  12283. def ll_fz_runelen(rune):
  12284. r"""
  12285. Low-level wrapper for `::fz_runelen()`.
  12286. Count how many chars are required to represent a rune.
  12287. rune: The rune to encode.
  12288. Returns the number of bytes required to represent this run in
  12289. UTF8.
  12290. """
  12291. return _mupdf.ll_fz_runelen(rune)
  12292. def ll_fz_runeptr(str, idx):
  12293. r"""
  12294. Low-level wrapper for `::fz_runeptr()`.
  12295. Obtain a pointer to the char representing the rune
  12296. at a given index.
  12297. str: Pointer to beginning of a string.
  12298. idx: Index of a rune to return a char pointer to.
  12299. Returns a pointer to the char where the desired rune starts,
  12300. or NULL if the string ends before the index is reached.
  12301. """
  12302. return _mupdf.ll_fz_runeptr(str, idx)
  12303. def ll_fz_runetochar(str, rune):
  12304. r"""
  12305. Low-level wrapper for `::fz_runetochar()`.
  12306. UTF8 encode a rune to a sequence of chars.
  12307. str: Pointer to a place to put the UTF8 encoded character.
  12308. rune: Pointer to a 'rune'.
  12309. Returns the number of bytes the rune took to output.
  12310. """
  12311. return _mupdf.ll_fz_runetochar(str, rune)
  12312. def ll_fz_samples_get(pixmap, offset):
  12313. r"""
  12314. Low-level wrapper for `::fz_samples_get()`.
  12315. Provides simple (but slow) access to pixmap data from Python and C#.
  12316. """
  12317. return _mupdf.ll_fz_samples_get(pixmap, offset)
  12318. def ll_fz_samples_set(pixmap, offset, value):
  12319. r"""
  12320. Low-level wrapper for `::fz_samples_set()`.
  12321. Provides simple (but slow) write access to pixmap data from Python and
  12322. C#.
  12323. """
  12324. return _mupdf.ll_fz_samples_set(pixmap, offset, value)
  12325. def ll_fz_save_accelerator(doc, accel):
  12326. r"""
  12327. Low-level wrapper for `::fz_save_accelerator()`.
  12328. Save accelerator data for the document to a given file.
  12329. """
  12330. return _mupdf.ll_fz_save_accelerator(doc, accel)
  12331. def ll_fz_save_bitmap_as_pbm(bitmap, filename):
  12332. r"""
  12333. Low-level wrapper for `::fz_save_bitmap_as_pbm()`.
  12334. Save a bitmap as a pbm.
  12335. """
  12336. return _mupdf.ll_fz_save_bitmap_as_pbm(bitmap, filename)
  12337. def ll_fz_save_bitmap_as_pcl(bitmap, filename, append, pcl):
  12338. r"""
  12339. Low-level wrapper for `::fz_save_bitmap_as_pcl()`.
  12340. Save a bitmap as mono PCL.
  12341. """
  12342. return _mupdf.ll_fz_save_bitmap_as_pcl(bitmap, filename, append, pcl)
  12343. def ll_fz_save_bitmap_as_pkm(bitmap, filename):
  12344. r"""
  12345. Low-level wrapper for `::fz_save_bitmap_as_pkm()`.
  12346. Save a CMYK bitmap as a pkm.
  12347. """
  12348. return _mupdf.ll_fz_save_bitmap_as_pkm(bitmap, filename)
  12349. def ll_fz_save_bitmap_as_pwg(bitmap, filename, append, pwg):
  12350. r"""
  12351. Low-level wrapper for `::fz_save_bitmap_as_pwg()`.
  12352. Save a bitmap as a PWG.
  12353. """
  12354. return _mupdf.ll_fz_save_bitmap_as_pwg(bitmap, filename, append, pwg)
  12355. def ll_fz_save_buffer(buf, filename):
  12356. r"""
  12357. Low-level wrapper for `::fz_save_buffer()`.
  12358. Save the contents of a buffer to a file.
  12359. """
  12360. return _mupdf.ll_fz_save_buffer(buf, filename)
  12361. def ll_fz_save_pixmap_as_jpeg(pixmap, filename, quality):
  12362. r"""
  12363. Low-level wrapper for `::fz_save_pixmap_as_jpeg()`.
  12364. Save a pixmap as a JPEG.
  12365. """
  12366. return _mupdf.ll_fz_save_pixmap_as_jpeg(pixmap, filename, quality)
  12367. def ll_fz_save_pixmap_as_jpx(pixmap, filename, q):
  12368. r"""
  12369. Low-level wrapper for `::fz_save_pixmap_as_jpx()`.
  12370. Save pixmap data as JP2K with no subsampling.
  12371. quality = 100 = lossless
  12372. otherwise for a factor of x compression use 100-x. (so 80 is 1:20 compression)
  12373. """
  12374. return _mupdf.ll_fz_save_pixmap_as_jpx(pixmap, filename, q)
  12375. def ll_fz_save_pixmap_as_pam(pixmap, filename):
  12376. r"""
  12377. Low-level wrapper for `::fz_save_pixmap_as_pam()`.
  12378. Save a pixmap as a pnm (greyscale, rgb or cmyk, with or without
  12379. alpha).
  12380. """
  12381. return _mupdf.ll_fz_save_pixmap_as_pam(pixmap, filename)
  12382. def ll_fz_save_pixmap_as_pbm(pixmap, filename):
  12383. r"""
  12384. Low-level wrapper for `::fz_save_pixmap_as_pbm()`.
  12385. Save a pixmap as a pbm. (Performing halftoning).
  12386. """
  12387. return _mupdf.ll_fz_save_pixmap_as_pbm(pixmap, filename)
  12388. def ll_fz_save_pixmap_as_pcl(pixmap, filename, append, pcl):
  12389. r"""
  12390. Low-level wrapper for `::fz_save_pixmap_as_pcl()`.
  12391. Save an (RGB) pixmap as color PCL.
  12392. """
  12393. return _mupdf.ll_fz_save_pixmap_as_pcl(pixmap, filename, append, pcl)
  12394. def ll_fz_save_pixmap_as_pclm(pixmap, filename, append, options):
  12395. r"""
  12396. Low-level wrapper for `::fz_save_pixmap_as_pclm()`.
  12397. Save a (Greyscale or RGB) pixmap as pclm.
  12398. """
  12399. return _mupdf.ll_fz_save_pixmap_as_pclm(pixmap, filename, append, options)
  12400. def ll_fz_save_pixmap_as_pdfocr(pixmap, filename, append, options):
  12401. r"""
  12402. Low-level wrapper for `::fz_save_pixmap_as_pdfocr()`.
  12403. Save a (Greyscale or RGB) pixmap as pdfocr.
  12404. """
  12405. return _mupdf.ll_fz_save_pixmap_as_pdfocr(pixmap, filename, append, options)
  12406. def ll_fz_save_pixmap_as_pkm(pixmap, filename):
  12407. r"""
  12408. Low-level wrapper for `::fz_save_pixmap_as_pkm()`.
  12409. Save a CMYK pixmap as a pkm. (Performing halftoning).
  12410. """
  12411. return _mupdf.ll_fz_save_pixmap_as_pkm(pixmap, filename)
  12412. def ll_fz_save_pixmap_as_png(pixmap, filename):
  12413. r"""
  12414. Low-level wrapper for `::fz_save_pixmap_as_png()`.
  12415. Save a (Greyscale or RGB) pixmap as a png.
  12416. """
  12417. return _mupdf.ll_fz_save_pixmap_as_png(pixmap, filename)
  12418. def ll_fz_save_pixmap_as_pnm(pixmap, filename):
  12419. r"""
  12420. Low-level wrapper for `::fz_save_pixmap_as_pnm()`.
  12421. Save a pixmap as a pnm (greyscale or rgb, no alpha).
  12422. """
  12423. return _mupdf.ll_fz_save_pixmap_as_pnm(pixmap, filename)
  12424. def ll_fz_save_pixmap_as_ps(pixmap, filename, append):
  12425. r"""
  12426. Low-level wrapper for `::fz_save_pixmap_as_ps()`.
  12427. Save a (gray, rgb, or cmyk, no alpha) pixmap out as postscript.
  12428. """
  12429. return _mupdf.ll_fz_save_pixmap_as_ps(pixmap, filename, append)
  12430. def ll_fz_save_pixmap_as_psd(pixmap, filename):
  12431. r"""
  12432. Low-level wrapper for `::fz_save_pixmap_as_psd()`.
  12433. Save a pixmap as a PSD file.
  12434. """
  12435. return _mupdf.ll_fz_save_pixmap_as_psd(pixmap, filename)
  12436. def ll_fz_save_pixmap_as_pwg(pixmap, filename, append, pwg):
  12437. r"""
  12438. Low-level wrapper for `::fz_save_pixmap_as_pwg()`.
  12439. Save a pixmap as a PWG.
  12440. """
  12441. return _mupdf.ll_fz_save_pixmap_as_pwg(pixmap, filename, append, pwg)
  12442. def ll_fz_save_xml(root, path, indented):
  12443. r"""
  12444. Low-level wrapper for `::fz_save_xml()`.
  12445. As for fz_write_xml, but direct to a file.
  12446. """
  12447. return _mupdf.ll_fz_save_xml(root, path, indented)
  12448. def ll_fz_scale(sx, sy):
  12449. r"""
  12450. Low-level wrapper for `::fz_scale()`.
  12451. Create a scaling matrix.
  12452. The returned matrix is of the form [ sx 0 0 sy 0 0 ].
  12453. m: Pointer to the matrix to populate
  12454. sx, sy: Scaling factors along the X- and Y-axes. A scaling
  12455. factor of 1.0 will not cause any scaling along the relevant
  12456. axis.
  12457. Returns m.
  12458. """
  12459. return _mupdf.ll_fz_scale(sx, sy)
  12460. def ll_fz_scale_pixmap(src, x, y, w, h, clip):
  12461. r"""Low-level wrapper for `::fz_scale_pixmap()`."""
  12462. return _mupdf.ll_fz_scale_pixmap(src, x, y, w, h, clip)
  12463. def ll_fz_search_chapter_page_number(doc, chapter, page, needle, hit_mark, hit_bbox, hit_max):
  12464. r"""
  12465. Low-level wrapper for `::fz_search_chapter_page_number()`.
  12466. This function has out-params. Python/C# wrappers look like:
  12467. `ll_fz_search_chapter_page_number(::fz_document *doc, int chapter, int page, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  12468. """
  12469. return _mupdf.ll_fz_search_chapter_page_number(doc, chapter, page, needle, hit_mark, hit_bbox, hit_max)
  12470. def ll_fz_search_chapter_page_number_cb(doc, chapter, page, needle, cb, opaque):
  12471. r"""Low-level wrapper for `::fz_search_chapter_page_number_cb()`."""
  12472. return _mupdf.ll_fz_search_chapter_page_number_cb(doc, chapter, page, needle, cb, opaque)
  12473. def ll_fz_search_display_list(list, needle, hit_mark, hit_bbox, hit_max):
  12474. r"""
  12475. Low-level wrapper for `::fz_search_display_list()`.
  12476. This function has out-params. Python/C# wrappers look like:
  12477. `ll_fz_search_display_list(::fz_display_list *list, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  12478. """
  12479. return _mupdf.ll_fz_search_display_list(list, needle, hit_mark, hit_bbox, hit_max)
  12480. def ll_fz_search_display_list_cb(list, needle, cb, opaque):
  12481. r"""Low-level wrapper for `::fz_search_display_list_cb()`."""
  12482. return _mupdf.ll_fz_search_display_list_cb(list, needle, cb, opaque)
  12483. def ll_fz_search_page(page, needle, hit_mark, hit_bbox, hit_max):
  12484. r"""
  12485. Low-level wrapper for `::fz_search_page()`.
  12486. This function has out-params. Python/C# wrappers look like:
  12487. `ll_fz_search_page(::fz_page *page, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  12488. Search for the 'needle' text on the page.
  12489. Record the hits in the hit_bbox array and return the number of
  12490. hits. Will stop looking once it has filled hit_max rectangles.
  12491. """
  12492. return _mupdf.ll_fz_search_page(page, needle, hit_mark, hit_bbox, hit_max)
  12493. def ll_fz_search_page2(doc, number, needle, hit_max):
  12494. r"""
  12495. Low-level wrapper for `::fz_search_page2()`.
  12496. C++ alternative to fz_search_page() that returns information in a std::vector.
  12497. """
  12498. return _mupdf.ll_fz_search_page2(doc, number, needle, hit_max)
  12499. def ll_fz_search_page_cb(page, needle, cb, opaque):
  12500. r"""
  12501. Low-level wrapper for `::fz_search_page_cb()`.
  12502. Search for the 'needle' text on the page.
  12503. """
  12504. return _mupdf.ll_fz_search_page_cb(page, needle, cb, opaque)
  12505. def ll_fz_search_page_number(doc, number, needle, hit_mark, hit_bbox, hit_max):
  12506. r"""
  12507. Low-level wrapper for `::fz_search_page_number()`.
  12508. This function has out-params. Python/C# wrappers look like:
  12509. `ll_fz_search_page_number(::fz_document *doc, int number, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  12510. """
  12511. return _mupdf.ll_fz_search_page_number(doc, number, needle, hit_mark, hit_bbox, hit_max)
  12512. def ll_fz_search_page_number_cb(doc, number, needle, cb, opaque):
  12513. r"""Low-level wrapper for `::fz_search_page_number_cb()`."""
  12514. return _mupdf.ll_fz_search_page_number_cb(doc, number, needle, cb, opaque)
  12515. def ll_fz_search_stext_page(text, needle, hit_mark, hit_bbox, hit_max):
  12516. r"""
  12517. Low-level wrapper for `::fz_search_stext_page()`.
  12518. This function has out-params. Python/C# wrappers look like:
  12519. `ll_fz_search_stext_page(::fz_stext_page *text, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  12520. Search for occurrence of 'needle' in text page.
  12521. Return the number of quads and store hit quads in the passed in
  12522. array.
  12523. NOTE: This is an experimental interface and subject to change
  12524. without notice.
  12525. """
  12526. return _mupdf.ll_fz_search_stext_page(text, needle, hit_mark, hit_bbox, hit_max)
  12527. def ll_fz_search_stext_page_cb(text, needle, cb, opaque):
  12528. r"""
  12529. Low-level wrapper for `::fz_search_stext_page_cb()`.
  12530. Search for occurrence of 'needle' in text page.
  12531. Call callback once for each hit. This callback will receive
  12532. (potentially) multiple quads for each hit.
  12533. Returns the number of hits - note that this is potentially
  12534. different from (i.e. is not greater than) the number of quads
  12535. as returned by the non callback API.
  12536. NOTE: This is an experimental interface and subject to change
  12537. without notice.
  12538. """
  12539. return _mupdf.ll_fz_search_stext_page_cb(text, needle, cb, opaque)
  12540. def ll_fz_seek(stm, offset, whence):
  12541. r"""
  12542. Low-level wrapper for `::fz_seek()`.
  12543. Seek within a stream.
  12544. stm: The stream to seek within.
  12545. offset: The offset to seek to.
  12546. whence: From where the offset is measured (see fseek).
  12547. SEEK_SET - start of stream.
  12548. SEEK_CUR - current position.
  12549. SEEK_END - end of stream.
  12550. """
  12551. return _mupdf.ll_fz_seek(stm, offset, whence)
  12552. def ll_fz_seek_output(out, off, whence):
  12553. r"""
  12554. Low-level wrapper for `::fz_seek_output()`.
  12555. Seek to the specified file position.
  12556. See fseek for arguments.
  12557. Throw an error on unseekable outputs.
  12558. """
  12559. return _mupdf.ll_fz_seek_output(out, off, whence)
  12560. def ll_fz_segment_stext_page(page):
  12561. r"""
  12562. Low-level wrapper for `::fz_segment_stext_page()`.
  12563. Perform segmentation analysis on an (unstructured) page to look for
  12564. recursive subdivisions.
  12565. Essentially this code attempts to split the page horizontally and/or
  12566. vertically repeatedly into smaller and smaller "segments" (divisions).
  12567. This minimises the reordering of the content, but some reordering
  12568. may be unavoidable.
  12569. Returns 0 if no changes were made to the document.
  12570. This is experimental code, and may change (or be removed) in future
  12571. versions!
  12572. """
  12573. return _mupdf.ll_fz_segment_stext_page(page)
  12574. def ll_fz_segment_stext_rect(page, rect):
  12575. r"""
  12576. Low-level wrapper for `::fz_segment_stext_rect()`.
  12577. Perform segmentation analysis on a rectangle of a given
  12578. stext page.
  12579. Like fz_segment_stext_page, this attempts to split the given page
  12580. region horizontally and/or vertically repeatedly into smaller and
  12581. smaller "segments".
  12582. This works for pages with structure too, but splitting with
  12583. rectangles that cut across structure blocks may not behave as
  12584. expected.
  12585. This minimises the reordering of the content (as viewed from the
  12586. perspective of a depth first traversal), but some reordering may
  12587. be unavoidable.
  12588. This function accepts smaller gaps for segmentation than the full
  12589. page segmentation does.
  12590. Returns 0 if no changes were made to the document.
  12591. This is experimental code, and may change (or be removed) in future
  12592. versions!
  12593. """
  12594. return _mupdf.ll_fz_segment_stext_rect(page, rect)
  12595. def ll_fz_separation_current_behavior(sep, separation):
  12596. r"""
  12597. Low-level wrapper for `::fz_separation_current_behavior()`.
  12598. Test for the current behavior of a separation.
  12599. """
  12600. return _mupdf.ll_fz_separation_current_behavior(sep, separation)
  12601. def ll_fz_separation_equivalent(seps, idx, dst_cs, dst_color, prf, color_params):
  12602. r"""
  12603. Low-level wrapper for `::fz_separation_equivalent()`.
  12604. This function has out-params. Python/C# wrappers look like:
  12605. `ll_fz_separation_equivalent(const ::fz_separations *seps, int idx, ::fz_colorspace *dst_cs, ::fz_colorspace *prf, ::fz_color_params color_params)` => float dst_color
  12606. Get the equivalent separation color in a given colorspace.
  12607. """
  12608. return _mupdf.ll_fz_separation_equivalent(seps, idx, dst_cs, dst_color, prf, color_params)
  12609. def ll_fz_separation_name(sep, separation):
  12610. r"""Low-level wrapper for `::fz_separation_name()`."""
  12611. return _mupdf.ll_fz_separation_name(sep, separation)
  12612. def ll_fz_set_aa_level(bits):
  12613. r"""
  12614. Low-level wrapper for `::fz_set_aa_level()`.
  12615. Set the number of bits of antialiasing we should
  12616. use (for both text and graphics).
  12617. bits: The number of bits of antialiasing to use (values are
  12618. clamped to within the 0 to 8 range).
  12619. """
  12620. return _mupdf.ll_fz_set_aa_level(bits)
  12621. def ll_fz_set_compressed_image_buffer(cimg, buf):
  12622. r"""Low-level wrapper for `::fz_set_compressed_image_buffer()`."""
  12623. return _mupdf.ll_fz_set_compressed_image_buffer(cimg, buf)
  12624. def ll_fz_set_default_cmyk(default_cs, cs):
  12625. r"""Low-level wrapper for `::fz_set_default_cmyk()`."""
  12626. return _mupdf.ll_fz_set_default_cmyk(default_cs, cs)
  12627. def ll_fz_set_default_colorspaces(dev, default_cs):
  12628. r"""Low-level wrapper for `::fz_set_default_colorspaces()`."""
  12629. return _mupdf.ll_fz_set_default_colorspaces(dev, default_cs)
  12630. def ll_fz_set_default_gray(default_cs, cs):
  12631. r"""
  12632. Low-level wrapper for `::fz_set_default_gray()`.
  12633. Set new defaults within the default colorspace structure.
  12634. New references are taken to the new default, and references to
  12635. the old defaults dropped.
  12636. Never throws exceptions.
  12637. """
  12638. return _mupdf.ll_fz_set_default_gray(default_cs, cs)
  12639. def ll_fz_set_default_output_intent(default_cs, cs):
  12640. r"""Low-level wrapper for `::fz_set_default_output_intent()`."""
  12641. return _mupdf.ll_fz_set_default_output_intent(default_cs, cs)
  12642. def ll_fz_set_default_rgb(default_cs, cs):
  12643. r"""Low-level wrapper for `::fz_set_default_rgb()`."""
  12644. return _mupdf.ll_fz_set_default_rgb(default_cs, cs)
  12645. def ll_fz_set_error_callback(error_cb, user):
  12646. r"""
  12647. Low-level wrapper for `::fz_set_error_callback()`.
  12648. Set the error callback. This will be called as part of the
  12649. exception handling.
  12650. The callback must not throw exceptions!
  12651. """
  12652. return _mupdf.ll_fz_set_error_callback(error_cb, user)
  12653. def ll_fz_set_font_bbox(font, xmin, ymin, xmax, ymax):
  12654. r"""
  12655. Low-level wrapper for `::fz_set_font_bbox()`.
  12656. Set the font bbox.
  12657. font: The font to set the bbox for.
  12658. xmin, ymin, xmax, ymax: The bounding box.
  12659. """
  12660. return _mupdf.ll_fz_set_font_bbox(font, xmin, ymin, xmax, ymax)
  12661. def ll_fz_set_font_embedding(font, embed):
  12662. r"""
  12663. Low-level wrapper for `::fz_set_font_embedding()`.
  12664. Control whether a given font should be embedded or not when writing.
  12665. """
  12666. return _mupdf.ll_fz_set_font_embedding(font, embed)
  12667. def ll_fz_set_graphics_aa_level(bits):
  12668. r"""
  12669. Low-level wrapper for `::fz_set_graphics_aa_level()`.
  12670. Set the number of bits of antialiasing we
  12671. should use for graphics.
  12672. bits: The number of bits of antialiasing to use (values are
  12673. clamped to within the 0 to 8 range).
  12674. """
  12675. return _mupdf.ll_fz_set_graphics_aa_level(bits)
  12676. def ll_fz_set_graphics_min_line_width(min_line_width):
  12677. r"""
  12678. Low-level wrapper for `::fz_set_graphics_min_line_width()`.
  12679. Set the minimum line width to be
  12680. used for stroked lines.
  12681. min_line_width: The minimum line width to use (in pixels).
  12682. """
  12683. return _mupdf.ll_fz_set_graphics_min_line_width(min_line_width)
  12684. def ll_fz_set_link_rect(link, rect):
  12685. r"""Low-level wrapper for `::fz_set_link_rect()`."""
  12686. return _mupdf.ll_fz_set_link_rect(link, rect)
  12687. def ll_fz_set_link_uri(link, uri):
  12688. r"""Low-level wrapper for `::fz_set_link_uri()`."""
  12689. return _mupdf.ll_fz_set_link_uri(link, uri)
  12690. def ll_fz_set_metadata(doc, key, value):
  12691. r"""Low-level wrapper for `::fz_set_metadata()`."""
  12692. return _mupdf.ll_fz_set_metadata(doc, key, value)
  12693. def ll_fz_set_pixmap_image_tile(cimg, pix):
  12694. r"""Low-level wrapper for `::fz_set_pixmap_image_tile()`."""
  12695. return _mupdf.ll_fz_set_pixmap_image_tile(cimg, pix)
  12696. def ll_fz_set_pixmap_resolution(pix, xres, yres):
  12697. r"""
  12698. Low-level wrapper for `::fz_set_pixmap_resolution()`.
  12699. Set the pixels per inch resolution of the pixmap.
  12700. """
  12701. return _mupdf.ll_fz_set_pixmap_resolution(pix, xres, yres)
  12702. def ll_fz_set_separation_behavior(sep, separation, behavior):
  12703. r"""
  12704. Low-level wrapper for `::fz_set_separation_behavior()`.
  12705. Control the rendering of a given separation.
  12706. """
  12707. return _mupdf.ll_fz_set_separation_behavior(sep, separation, behavior)
  12708. def ll_fz_set_stddbg(out):
  12709. r"""
  12710. Low-level wrapper for `::fz_set_stddbg()`.
  12711. Set the output stream to be used for fz_stddbg. Set to NULL to
  12712. reset to default (stderr).
  12713. """
  12714. return _mupdf.ll_fz_set_stddbg(out)
  12715. def ll_fz_set_text_aa_level(bits):
  12716. r"""
  12717. Low-level wrapper for `::fz_set_text_aa_level()`.
  12718. Set the number of bits of antialiasing we
  12719. should use for text.
  12720. bits: The number of bits of antialiasing to use (values are
  12721. clamped to within the 0 to 8 range).
  12722. """
  12723. return _mupdf.ll_fz_set_text_aa_level(bits)
  12724. def ll_fz_set_use_document_css(use):
  12725. r"""
  12726. Low-level wrapper for `::fz_set_use_document_css()`.
  12727. Toggle whether to respect document styles in HTML and EPUB.
  12728. """
  12729. return _mupdf.ll_fz_set_use_document_css(use)
  12730. def ll_fz_set_user_context(user):
  12731. r"""
  12732. Low-level wrapper for `::fz_set_user_context()`.
  12733. Set the user field in the context.
  12734. NULL initially, this field can be set to any opaque value
  12735. required by the user. It is copied on clones.
  12736. """
  12737. return _mupdf.ll_fz_set_user_context(user)
  12738. def ll_fz_set_user_css(text):
  12739. r"""
  12740. Low-level wrapper for `::fz_set_user_css()`.
  12741. Set the user stylesheet source text for use with HTML and EPUB.
  12742. """
  12743. return _mupdf.ll_fz_set_user_css(text)
  12744. def ll_fz_set_warning_callback(warning_cb, user):
  12745. r"""
  12746. Low-level wrapper for `::fz_set_warning_callback()`.
  12747. Set the warning callback. This will be called as part of the
  12748. exception handling.
  12749. The callback must not throw exceptions!
  12750. """
  12751. return _mupdf.ll_fz_set_warning_callback(warning_cb, user)
  12752. def ll_fz_sha256_final(state, digest):
  12753. r"""
  12754. Low-level wrapper for `::fz_sha256_final()`.
  12755. MD5 finalization. Ends an MD5 message-digest operation, writing
  12756. the message digest and zeroizing the context.
  12757. Never throws an exception.
  12758. """
  12759. return _mupdf.ll_fz_sha256_final(state, digest)
  12760. def ll_fz_sha256_init(state):
  12761. r"""
  12762. Low-level wrapper for `::fz_sha256_init()`.
  12763. SHA256 initialization. Begins an SHA256 operation, initialising
  12764. the supplied context.
  12765. Never throws an exception.
  12766. """
  12767. return _mupdf.ll_fz_sha256_init(state)
  12768. def ll_fz_sha256_update(state, input, inlen):
  12769. r"""
  12770. Low-level wrapper for `::fz_sha256_update()`.
  12771. SHA256 block update operation. Continues an SHA256 message-
  12772. digest operation, processing another message block, and updating
  12773. the context.
  12774. Never throws an exception.
  12775. """
  12776. return _mupdf.ll_fz_sha256_update(state, input, inlen)
  12777. def ll_fz_sha384_final(state, digest):
  12778. r"""
  12779. Low-level wrapper for `::fz_sha384_final()`.
  12780. SHA384 finalization. Ends an SHA384 message-digest operation,
  12781. writing the message digest and zeroizing the context.
  12782. Never throws an exception.
  12783. """
  12784. return _mupdf.ll_fz_sha384_final(state, digest)
  12785. def ll_fz_sha384_init(state):
  12786. r"""
  12787. Low-level wrapper for `::fz_sha384_init()`.
  12788. SHA384 initialization. Begins an SHA384 operation, initialising
  12789. the supplied context.
  12790. Never throws an exception.
  12791. """
  12792. return _mupdf.ll_fz_sha384_init(state)
  12793. def ll_fz_sha384_update(state, input, inlen):
  12794. r"""
  12795. Low-level wrapper for `::fz_sha384_update()`.
  12796. SHA384 block update operation. Continues an SHA384 message-
  12797. digest operation, processing another message block, and updating
  12798. the context.
  12799. Never throws an exception.
  12800. """
  12801. return _mupdf.ll_fz_sha384_update(state, input, inlen)
  12802. def ll_fz_sha512_final(state, digest):
  12803. r"""
  12804. Low-level wrapper for `::fz_sha512_final()`.
  12805. SHA512 finalization. Ends an SHA512 message-digest operation,
  12806. writing the message digest and zeroizing the context.
  12807. Never throws an exception.
  12808. """
  12809. return _mupdf.ll_fz_sha512_final(state, digest)
  12810. def ll_fz_sha512_init(state):
  12811. r"""
  12812. Low-level wrapper for `::fz_sha512_init()`.
  12813. SHA512 initialization. Begins an SHA512 operation, initialising
  12814. the supplied context.
  12815. Never throws an exception.
  12816. """
  12817. return _mupdf.ll_fz_sha512_init(state)
  12818. def ll_fz_sha512_update(state, input, inlen):
  12819. r"""
  12820. Low-level wrapper for `::fz_sha512_update()`.
  12821. SHA512 block update operation. Continues an SHA512 message-
  12822. digest operation, processing another message block, and updating
  12823. the context.
  12824. Never throws an exception.
  12825. """
  12826. return _mupdf.ll_fz_sha512_update(state, input, inlen)
  12827. def ll_fz_shear(sx, sy):
  12828. r"""
  12829. Low-level wrapper for `::fz_shear()`.
  12830. Create a shearing matrix.
  12831. The returned matrix is of the form [ 1 sy sx 1 0 0 ].
  12832. m: pointer to place to store returned matrix
  12833. sx, sy: Shearing factors. A shearing factor of 0.0 will not
  12834. cause any shearing along the relevant axis.
  12835. Returns m.
  12836. """
  12837. return _mupdf.ll_fz_shear(sx, sy)
  12838. def ll_fz_show_glyph(text, font, trm, glyph, unicode, wmode, bidi_level, markup_dir, language):
  12839. r"""
  12840. Low-level wrapper for `::fz_show_glyph()`.
  12841. Add a glyph/unicode value to a text object.
  12842. text: Text object to add to.
  12843. font: The font the glyph should be added in.
  12844. trm: The transform to use for the glyph.
  12845. glyph: The glyph id to add.
  12846. unicode: The unicode character for the glyph.
  12847. cid: The CJK CID value or raw character code.
  12848. wmode: 1 for vertical mode, 0 for horizontal.
  12849. bidi_level: The bidirectional level for this glyph.
  12850. markup_dir: The direction of the text as specified in the
  12851. markup.
  12852. language: The language in use (if known, 0 otherwise)
  12853. (e.g. FZ_LANG_zh_Hans).
  12854. Throws exception on failure to allocate.
  12855. """
  12856. return _mupdf.ll_fz_show_glyph(text, font, trm, glyph, unicode, wmode, bidi_level, markup_dir, language)
  12857. def ll_fz_show_glyph_aux(text, font, trm, adv, glyph, unicode, cid, wmode, bidi_level, markup_dir, lang):
  12858. r"""Low-level wrapper for `::fz_show_glyph_aux()`."""
  12859. return _mupdf.ll_fz_show_glyph_aux(text, font, trm, adv, glyph, unicode, cid, wmode, bidi_level, markup_dir, lang)
  12860. def ll_fz_show_string(text, font, trm, s, wmode, bidi_level, markup_dir, language):
  12861. r"""
  12862. Low-level wrapper for `::fz_show_string()`.
  12863. Add a UTF8 string to a text object.
  12864. text: Text object to add to.
  12865. font: The font the string should be added in.
  12866. trm: The transform to use.
  12867. s: The utf-8 string to add.
  12868. wmode: 1 for vertical mode, 0 for horizontal.
  12869. bidi_level: The bidirectional level for this glyph.
  12870. markup_dir: The direction of the text as specified in the markup.
  12871. language: The language in use (if known, 0 otherwise)
  12872. (e.g. FZ_LANG_zh_Hans).
  12873. Returns the transform updated with the advance width of the
  12874. string.
  12875. """
  12876. return _mupdf.ll_fz_show_string(text, font, trm, s, wmode, bidi_level, markup_dir, language)
  12877. def ll_fz_shrink_store(percent):
  12878. r"""
  12879. Low-level wrapper for `::fz_shrink_store()`.
  12880. Evict items from the store until the total size of
  12881. the objects in the store is reduced to a given percentage of its
  12882. current size.
  12883. percent: %age of current size to reduce the store to.
  12884. Returns non zero if we managed to free enough memory, zero
  12885. otherwise.
  12886. """
  12887. return _mupdf.ll_fz_shrink_store(percent)
  12888. def ll_fz_skip(stm, len):
  12889. r"""
  12890. Low-level wrapper for `::fz_skip()`.
  12891. Read from a stream discarding data.
  12892. stm: The stream to read from.
  12893. len: The number of bytes to read.
  12894. Returns the number of bytes read. May throw exceptions.
  12895. """
  12896. return _mupdf.ll_fz_skip(stm, len)
  12897. def ll_fz_skip_space(stm):
  12898. r"""
  12899. Low-level wrapper for `::fz_skip_space()`.
  12900. Skip over whitespace (bytes <= 32) in a stream.
  12901. """
  12902. return _mupdf.ll_fz_skip_space(stm)
  12903. def ll_fz_skip_string(stm, str):
  12904. r"""
  12905. Low-level wrapper for `::fz_skip_string()`.
  12906. Skip over a given string in a stream. Return 0 if successfully
  12907. skipped, non-zero otherwise. As many characters will be skipped
  12908. over as matched in the string.
  12909. """
  12910. return _mupdf.ll_fz_skip_string(stm, str)
  12911. def ll_fz_slice_buffer(buf, start, end):
  12912. r"""
  12913. Low-level wrapper for `::fz_slice_buffer()`.
  12914. Create a new buffer with a (subset of) the data from the buffer.
  12915. start: if >= 0, offset from start of buffer, if < 0 offset from end of buffer.
  12916. end: if >= 0, offset from start of buffer, if < 0 offset from end of buffer.
  12917. """
  12918. return _mupdf.ll_fz_slice_buffer(buf, start, end)
  12919. def ll_fz_snap_selection(page, ap, bp, mode):
  12920. r"""Low-level wrapper for `::fz_snap_selection()`."""
  12921. return _mupdf.ll_fz_snap_selection(page, ap, bp, mode)
  12922. def ll_fz_start_throw_on_repair():
  12923. r"""Low-level wrapper for `::fz_start_throw_on_repair()`."""
  12924. return _mupdf.ll_fz_start_throw_on_repair()
  12925. def ll_fz_stat_ctime(path):
  12926. r"""Low-level wrapper for `::fz_stat_ctime()`."""
  12927. return _mupdf.ll_fz_stat_ctime(path)
  12928. def ll_fz_stat_mtime(path):
  12929. r"""Low-level wrapper for `::fz_stat_mtime()`."""
  12930. return _mupdf.ll_fz_stat_mtime(path)
  12931. def ll_fz_stddbg():
  12932. r"""
  12933. Low-level wrapper for `::fz_stddbg()`.
  12934. Retrieve an fz_output for the default debugging stream. On
  12935. Windows this will be OutputDebugString for non-console apps.
  12936. Otherwise, it is always fz_stderr.
  12937. Optionally may be fz_dropped when finished with.
  12938. """
  12939. return _mupdf.ll_fz_stddbg()
  12940. def ll_fz_stderr():
  12941. r"""
  12942. Low-level wrapper for `::fz_stderr()`.
  12943. Retrieve an fz_output that directs to stdout.
  12944. Optionally may be fz_dropped when finished with.
  12945. """
  12946. return _mupdf.ll_fz_stderr()
  12947. def ll_fz_stdout():
  12948. r"""
  12949. Low-level wrapper for `::fz_stdout()`.
  12950. Retrieve an fz_output that directs to stdout.
  12951. Optionally may be fz_dropped when finished with.
  12952. """
  12953. return _mupdf.ll_fz_stdout()
  12954. def ll_fz_stext_page_block_iterator_begin(page):
  12955. r"""Low-level wrapper for `::fz_stext_page_block_iterator_begin()`."""
  12956. return _mupdf.ll_fz_stext_page_block_iterator_begin(page)
  12957. def ll_fz_stext_page_block_iterator_down(pos):
  12958. r"""Low-level wrapper for `::fz_stext_page_block_iterator_down()`."""
  12959. return _mupdf.ll_fz_stext_page_block_iterator_down(pos)
  12960. def ll_fz_stext_page_block_iterator_eod(pos):
  12961. r"""Low-level wrapper for `::fz_stext_page_block_iterator_eod()`."""
  12962. return _mupdf.ll_fz_stext_page_block_iterator_eod(pos)
  12963. def ll_fz_stext_page_block_iterator_eod_dfs(pos):
  12964. r"""Low-level wrapper for `::fz_stext_page_block_iterator_eod_dfs()`."""
  12965. return _mupdf.ll_fz_stext_page_block_iterator_eod_dfs(pos)
  12966. def ll_fz_stext_page_block_iterator_next(pos):
  12967. r"""Low-level wrapper for `::fz_stext_page_block_iterator_next()`."""
  12968. return _mupdf.ll_fz_stext_page_block_iterator_next(pos)
  12969. def ll_fz_stext_page_block_iterator_next_dfs(pos):
  12970. r"""Low-level wrapper for `::fz_stext_page_block_iterator_next_dfs()`."""
  12971. return _mupdf.ll_fz_stext_page_block_iterator_next_dfs(pos)
  12972. def ll_fz_stext_page_block_iterator_up(pos):
  12973. r"""Low-level wrapper for `::fz_stext_page_block_iterator_up()`."""
  12974. return _mupdf.ll_fz_stext_page_block_iterator_up(pos)
  12975. def ll_fz_stext_page_details_for_block(page, block):
  12976. r"""
  12977. Low-level wrapper for `::fz_stext_page_details_for_block()`.
  12978. Helper function to retrieve the details for a given id from a block.
  12979. """
  12980. return _mupdf.ll_fz_stext_page_details_for_block(page, block)
  12981. def ll_fz_stext_remove_page_fill(page):
  12982. r"""Low-level wrapper for `::fz_stext_remove_page_fill()`."""
  12983. return _mupdf.ll_fz_stext_remove_page_fill(page)
  12984. def ll_fz_store_item(key, val, itemsize, type):
  12985. r"""
  12986. Low-level wrapper for `::fz_store_item()`.
  12987. Add an item to the store.
  12988. Add an item into the store, returning NULL for success. If an
  12989. item with the same key is found in the store, then our item will
  12990. not be inserted, and the function will return a pointer to that
  12991. value instead. This function takes its own reference to val, as
  12992. required (i.e. the caller maintains ownership of its own
  12993. reference).
  12994. key: The key used to index the item.
  12995. val: The value to store.
  12996. itemsize: The size in bytes of the value (as counted towards the
  12997. store size).
  12998. type: Functions used to manipulate the key.
  12999. """
  13000. return _mupdf.ll_fz_store_item(key, val, itemsize, type)
  13001. def ll_fz_store_scavenge(size, phase):
  13002. r"""
  13003. Low-level wrapper for `::fz_store_scavenge()`.
  13004. This function has out-params. Python/C# wrappers look like:
  13005. `ll_fz_store_scavenge(size_t size)` => `(int, int phase)`
  13006. Internal function used as part of the scavenging
  13007. allocator; when we fail to allocate memory, before returning a
  13008. failure to the caller, we try to scavenge space within the store
  13009. by evicting at least 'size' bytes. The allocator then retries.
  13010. size: The number of bytes we are trying to have free.
  13011. phase: What phase of the scavenge we are in. Updated on exit.
  13012. Returns non zero if we managed to free any memory.
  13013. """
  13014. return _mupdf.ll_fz_store_scavenge(size, phase)
  13015. def ll_fz_store_scavenge_external(size, phase):
  13016. r"""
  13017. Low-level wrapper for `::fz_store_scavenge_external()`.
  13018. This function has out-params. Python/C# wrappers look like:
  13019. `ll_fz_store_scavenge_external(size_t size)` => `(int, int phase)`
  13020. External function for callers to use
  13021. to scavenge while trying allocations.
  13022. size: The number of bytes we are trying to have free.
  13023. phase: What phase of the scavenge we are in. Updated on exit.
  13024. Returns non zero if we managed to free any memory.
  13025. """
  13026. return _mupdf.ll_fz_store_scavenge_external(size, phase)
  13027. def ll_fz_story_document(story):
  13028. r"""Low-level wrapper for `::fz_story_document()`."""
  13029. return _mupdf.ll_fz_story_document(story)
  13030. def ll_fz_story_positions(story, cb, arg):
  13031. r"""Low-level wrapper for `::fz_story_positions()`."""
  13032. return _mupdf.ll_fz_story_positions(story, cb, arg)
  13033. def ll_fz_story_warnings(story):
  13034. r"""Low-level wrapper for `::fz_story_warnings()`."""
  13035. return _mupdf.ll_fz_story_warnings(story)
  13036. def ll_fz_strcasecmp(a, b):
  13037. r"""
  13038. Low-level wrapper for `::fz_strcasecmp()`.
  13039. Case insensitive (UTF8) string comparison.
  13040. """
  13041. return _mupdf.ll_fz_strcasecmp(a, b)
  13042. def ll_fz_strdup(s):
  13043. r"""
  13044. Low-level wrapper for `::fz_strdup()`.
  13045. Portable strdup implementation, using fz allocators.
  13046. """
  13047. return _mupdf.ll_fz_strdup(s)
  13048. def ll_fz_stream_filename(stm):
  13049. r"""
  13050. Low-level wrapper for `::fz_stream_filename()`.
  13051. Return the filename (UTF-8 encoded) from which a stream was opened.
  13052. Returns NULL if the filename is not available (or the stream was
  13053. opened from a source other than a file).
  13054. """
  13055. return _mupdf.ll_fz_stream_filename(stm)
  13056. def ll_fz_stream_from_output(arg_1):
  13057. r"""
  13058. Low-level wrapper for `::fz_stream_from_output()`.
  13059. Obtain the fz_output in the form of a fz_stream.
  13060. This allows data to be read back from some forms of fz_output
  13061. object. When finished reading, the fz_stream should be released
  13062. by calling fz_drop_stream. Until the fz_stream is dropped, no
  13063. further operations should be performed on the fz_output object.
  13064. """
  13065. return _mupdf.ll_fz_stream_from_output(arg_1)
  13066. def ll_fz_string_from_barcode_type(type):
  13067. r"""
  13068. Low-level wrapper for `::fz_string_from_barcode_type()`.
  13069. Return barcode string matching one of the above barcode types.
  13070. All lowercase, e.g. "none", "aztec" etc.
  13071. """
  13072. return _mupdf.ll_fz_string_from_barcode_type(type)
  13073. def ll_fz_string_from_box_type(box):
  13074. r"""Low-level wrapper for `::fz_string_from_box_type()`."""
  13075. return _mupdf.ll_fz_string_from_box_type(box)
  13076. def ll_fz_string_from_buffer(buf):
  13077. r"""
  13078. Low-level wrapper for `::fz_string_from_buffer()`.
  13079. Ensure that a buffer's data ends in a
  13080. 0 byte, and return a pointer to it.
  13081. """
  13082. return _mupdf.ll_fz_string_from_buffer(buf)
  13083. def ll_fz_string_from_linecap(cap):
  13084. r"""Low-level wrapper for `::fz_string_from_linecap()`."""
  13085. return _mupdf.ll_fz_string_from_linecap(cap)
  13086. def ll_fz_string_from_linejoin(join):
  13087. r"""Low-level wrapper for `::fz_string_from_linejoin()`."""
  13088. return _mupdf.ll_fz_string_from_linejoin(join)
  13089. def ll_fz_string_from_text_language(str, lang):
  13090. r"""
  13091. Low-level wrapper for `::fz_string_from_text_language()`.
  13092. Recover ISO 639 (639-{1,2,3,5}) language specification
  13093. strings losslessly from a 15 bit fz_text_language code.
  13094. No validation is carried out. See note above.
  13095. """
  13096. return _mupdf.ll_fz_string_from_text_language(str, lang)
  13097. def ll_fz_string_from_text_language2(lang):
  13098. r"""
  13099. Low-level wrapper for `::fz_string_from_text_language2()`.
  13100. C++ alternative to fz_string_from_text_language() that returns information in a std::string.
  13101. """
  13102. return _mupdf.ll_fz_string_from_text_language2(lang)
  13103. def ll_fz_strlcat(dst, src, n):
  13104. r"""
  13105. Low-level wrapper for `::fz_strlcat()`.
  13106. Concatenate 2 strings, with a maximum length.
  13107. dst: pointer to first string in a buffer of n bytes.
  13108. src: pointer to string to concatenate.
  13109. n: Size (in bytes) of buffer that dst is in.
  13110. Returns the real length that a concatenated dst + src would have
  13111. been (not including terminator).
  13112. """
  13113. return _mupdf.ll_fz_strlcat(dst, src, n)
  13114. def ll_fz_strlcpy(dst, src, n):
  13115. r"""
  13116. Low-level wrapper for `::fz_strlcpy()`.
  13117. Copy at most n-1 chars of a string into a destination
  13118. buffer with null termination, returning the real length of the
  13119. initial string (excluding terminator).
  13120. dst: Destination buffer, at least n bytes long.
  13121. src: C string (non-NULL).
  13122. n: Size of dst buffer in bytes.
  13123. Returns the length (excluding terminator) of src.
  13124. """
  13125. return _mupdf.ll_fz_strlcpy(dst, src, n)
  13126. def ll_fz_strncasecmp(a, b, n):
  13127. r"""
  13128. Low-level wrapper for `::fz_strncasecmp()`.
  13129. Case insensitive (UTF8) string comparison.
  13130. n = maximum number of bytes to read from either a or b.
  13131. """
  13132. return _mupdf.ll_fz_strncasecmp(a, b, n)
  13133. def ll_fz_strnlen(s, maxlen):
  13134. r"""
  13135. Low-level wrapper for `::fz_strnlen()`.
  13136. Return strlen(s), if that is less than maxlen, or maxlen if
  13137. there is no null byte ('') among the first maxlen bytes.
  13138. """
  13139. return _mupdf.ll_fz_strnlen(s, maxlen)
  13140. def ll_fz_stroke_path(dev, path, stroke, ctm, colorspace, color, alpha, color_params):
  13141. r"""Low-level wrapper for `::fz_stroke_path()`."""
  13142. return _mupdf.ll_fz_stroke_path(dev, path, stroke, ctm, colorspace, color, alpha, color_params)
  13143. def ll_fz_stroke_state_eq(a, b):
  13144. r"""Low-level wrapper for `::fz_stroke_state_eq()`."""
  13145. return _mupdf.ll_fz_stroke_state_eq(a, b)
  13146. def ll_fz_stroke_text(dev, text, stroke, ctm, colorspace, color, alpha, color_params):
  13147. r"""Low-level wrapper for `::fz_stroke_text()`."""
  13148. return _mupdf.ll_fz_stroke_text(dev, text, stroke, ctm, colorspace, color, alpha, color_params)
  13149. def ll_fz_strsep(stringp, delim):
  13150. r"""
  13151. Low-level wrapper for `::fz_strsep()`.
  13152. This function has out-params. Python/C# wrappers look like:
  13153. `ll_fz_strsep(const char *delim)` => `(char *, char *stringp)`
  13154. Given a pointer to a C string (or a pointer to NULL) break
  13155. it at the first occurrence of a delimiter char (from a given
  13156. set).
  13157. stringp: Pointer to a C string pointer (or NULL). Updated on
  13158. exit to point to the first char of the string after the
  13159. delimiter that was found. The string pointed to by stringp will
  13160. be corrupted by this call (as the found delimiter will be
  13161. overwritten by 0).
  13162. delim: A C string of acceptable delimiter characters.
  13163. Returns a pointer to a C string containing the chars of stringp
  13164. up to the first delimiter char (or the end of the string), or
  13165. NULL.
  13166. """
  13167. return _mupdf.ll_fz_strsep(stringp, delim)
  13168. def ll_fz_strstr(haystack, needle):
  13169. r"""
  13170. Low-level wrapper for `::fz_strstr()`.
  13171. Safe strstr function.
  13172. haystack: Where to look (may be NULL).
  13173. needled: What to look for.
  13174. Returns NULL if unmatched, or pointer to start of match.
  13175. """
  13176. return _mupdf.ll_fz_strstr(haystack, needle)
  13177. def ll_fz_strstrcase(haystack, needle):
  13178. r"""
  13179. Low-level wrapper for `::fz_strstrcase()`.
  13180. Safe case-insensitive strstr function. (Accepts UTF-8).
  13181. haystack: Where to look (may be NULL).
  13182. needled: What to look for.
  13183. Returns NULL if unmatched, or pointer to start of match.
  13184. """
  13185. return _mupdf.ll_fz_strstrcase(haystack, needle)
  13186. def ll_fz_strtof(s, es):
  13187. r"""
  13188. Low-level wrapper for `::fz_strtof()`.
  13189. This function has out-params. Python/C# wrappers look like:
  13190. `ll_fz_strtof(const char *s)` => `(float, char *es)`
  13191. Locale-independent decimal to binary conversion. On overflow
  13192. return (-)INFINITY and set errno to ERANGE. On underflow return
  13193. 0 and set errno to ERANGE. Special inputs (case insensitive):
  13194. "NAN", "INF" or "INFINITY".
  13195. """
  13196. return _mupdf.ll_fz_strtof(s, es)
  13197. def ll_fz_structure_from_string(str):
  13198. r"""Low-level wrapper for `::fz_structure_from_string()`."""
  13199. return _mupdf.ll_fz_structure_from_string(str)
  13200. def ll_fz_structure_to_string(type):
  13201. r"""Low-level wrapper for `::fz_structure_to_string()`."""
  13202. return _mupdf.ll_fz_structure_to_string(type)
  13203. def ll_fz_strverscmp(s1, s2):
  13204. r"""
  13205. Low-level wrapper for `::fz_strverscmp()`.
  13206. portable strverscmp(3) function
  13207. """
  13208. return _mupdf.ll_fz_strverscmp(s1, s2)
  13209. def ll_fz_subpixel_adjust(ctm, subpix_ctm, qe, qf):
  13210. r"""
  13211. Low-level wrapper for `::fz_subpixel_adjust()`.
  13212. Perform subpixel quantisation and adjustment on a glyph matrix.
  13213. ctm: On entry, the desired 'ideal' transformation for a glyph.
  13214. On exit, adjusted to a (very similar) transformation quantised
  13215. for subpixel caching.
  13216. subpix_ctm: Initialised by the routine to the transform that
  13217. should be used to render the glyph.
  13218. qe, qf: which subpixel position we quantised to.
  13219. Returns: the size of the glyph.
  13220. Note: This is currently only exposed for use in our app. It
  13221. should be considered "at risk" of removal from the API.
  13222. """
  13223. return _mupdf.ll_fz_subpixel_adjust(ctm, subpix_ctm, qe, qf)
  13224. def ll_fz_subsample_pixmap(tile, factor):
  13225. r"""Low-level wrapper for `::fz_subsample_pixmap()`."""
  13226. return _mupdf.ll_fz_subsample_pixmap(tile, factor)
  13227. def ll_fz_subset_cff_for_gids(orig, gids, num_gids, symbolic, cidfont):
  13228. r"""
  13229. Low-level wrapper for `::fz_subset_cff_for_gids()`.
  13230. This function has out-params. Python/C# wrappers look like:
  13231. `ll_fz_subset_cff_for_gids(::fz_buffer *orig, int num_gids, int symbolic, int cidfont)` => `(fz_buffer *, int gids)`
  13232. """
  13233. return _mupdf.ll_fz_subset_cff_for_gids(orig, gids, num_gids, symbolic, cidfont)
  13234. def ll_fz_subset_ttf_for_gids(orig, gids, num_gids, symbolic, cidfont):
  13235. r"""
  13236. Low-level wrapper for `::fz_subset_ttf_for_gids()`.
  13237. This function has out-params. Python/C# wrappers look like:
  13238. `ll_fz_subset_ttf_for_gids(::fz_buffer *orig, int num_gids, int symbolic, int cidfont)` => `(fz_buffer *, int gids)`
  13239. """
  13240. return _mupdf.ll_fz_subset_ttf_for_gids(orig, gids, num_gids, symbolic, cidfont)
  13241. def ll_fz_sync_bits(stm):
  13242. r"""
  13243. Low-level wrapper for `::fz_sync_bits()`.
  13244. Called after reading bits to tell the stream
  13245. that we are about to return to reading bytewise. Resyncs
  13246. the stream to whole byte boundaries.
  13247. """
  13248. return _mupdf.ll_fz_sync_bits(stm)
  13249. def ll_fz_table_hunt(page):
  13250. r"""
  13251. Low-level wrapper for `::fz_table_hunt()`.
  13252. Hunt for possible tables on a page, and update the stext with
  13253. information.
  13254. """
  13255. return _mupdf.ll_fz_table_hunt(page)
  13256. def ll_fz_table_hunt_within_bounds(page, bounds):
  13257. r"""
  13258. Low-level wrapper for `::fz_table_hunt_within_bounds()`.
  13259. Hunt for possible tables within a specific rect on a page, and
  13260. update the stext with information.
  13261. """
  13262. return _mupdf.ll_fz_table_hunt_within_bounds(page, bounds)
  13263. def ll_fz_tell(stm):
  13264. r"""
  13265. Low-level wrapper for `::fz_tell()`.
  13266. return the current reading position within a stream
  13267. """
  13268. return _mupdf.ll_fz_tell(stm)
  13269. def ll_fz_tell_output(out):
  13270. r"""
  13271. Low-level wrapper for `::fz_tell_output()`.
  13272. Return the current file position.
  13273. Throw an error on untellable outputs.
  13274. """
  13275. return _mupdf.ll_fz_tell_output(out)
  13276. def ll_fz_terminate_buffer(buf):
  13277. r"""
  13278. Low-level wrapper for `::fz_terminate_buffer()`.
  13279. Zero-terminate buffer in order to use as a C string.
  13280. This byte is invisible and does not affect the length of the
  13281. buffer as returned by fz_buffer_storage. The zero byte is
  13282. written *after* the data, and subsequent writes will overwrite
  13283. the terminating byte.
  13284. Subsequent changes to the size of the buffer (such as by
  13285. fz_buffer_trim, fz_buffer_grow, fz_resize_buffer, etc) may
  13286. invalidate this.
  13287. """
  13288. return _mupdf.ll_fz_terminate_buffer(buf)
  13289. def ll_fz_text_aa_level():
  13290. r"""
  13291. Low-level wrapper for `::fz_text_aa_level()`.
  13292. Get the number of bits of antialiasing we are
  13293. using for text. Between 0 and 8.
  13294. """
  13295. return _mupdf.ll_fz_text_aa_level()
  13296. def ll_fz_text_language_from_string(str):
  13297. r"""
  13298. Low-level wrapper for `::fz_text_language_from_string()`.
  13299. Convert ISO 639 (639-{1,2,3,5}) language specification
  13300. strings losslessly to a 15 bit fz_text_language code.
  13301. No validation is carried out. Obviously invalid (out
  13302. of spec) codes will be mapped to FZ_LANG_UNSET, but
  13303. well-formed (but undefined) codes will be blithely
  13304. accepted.
  13305. """
  13306. return _mupdf.ll_fz_text_language_from_string(str)
  13307. def ll_fz_tint_pixmap(pix, black, white):
  13308. r"""
  13309. Low-level wrapper for `::fz_tint_pixmap()`.
  13310. Tint all the pixels in an RGB, BGR, or Gray pixmap.
  13311. black: Map black to this hexadecimal RGB color.
  13312. white: Map white to this hexadecimal RGB color.
  13313. """
  13314. return _mupdf.ll_fz_tint_pixmap(pix, black, white)
  13315. def ll_fz_tolower(c):
  13316. r"""
  13317. Low-level wrapper for `::fz_tolower()`.
  13318. Unicode aware tolower and toupper functions.
  13319. """
  13320. return _mupdf.ll_fz_tolower(c)
  13321. def ll_fz_toupper(c):
  13322. r"""Low-level wrapper for `::fz_toupper()`."""
  13323. return _mupdf.ll_fz_toupper(c)
  13324. def ll_fz_transform_page(mediabox, resolution, rotate):
  13325. r"""
  13326. Low-level wrapper for `::fz_transform_page()`.
  13327. Create transform matrix to draw page
  13328. at a given resolution and rotation. Adjusts the scaling
  13329. factors so that the page covers whole number of
  13330. pixels and adjust the page origin to be at 0,0.
  13331. """
  13332. return _mupdf.ll_fz_transform_page(mediabox, resolution, rotate)
  13333. def ll_fz_transform_path(path, transform):
  13334. r"""
  13335. Low-level wrapper for `::fz_transform_path()`.
  13336. Transform a path by a given
  13337. matrix.
  13338. path: The path to modify (must not be a packed path).
  13339. transform: The transform to apply.
  13340. Throws exceptions if the path is packed, or on failure
  13341. to allocate.
  13342. """
  13343. return _mupdf.ll_fz_transform_path(path, transform)
  13344. def ll_fz_transform_point(point, m):
  13345. r"""
  13346. Low-level wrapper for `::fz_transform_point()`.
  13347. Apply a transformation to a point.
  13348. transform: Transformation matrix to apply. See fz_concat,
  13349. fz_scale, fz_rotate and fz_translate for how to create a
  13350. matrix.
  13351. point: Pointer to point to update.
  13352. Returns transform (unchanged).
  13353. """
  13354. return _mupdf.ll_fz_transform_point(point, m)
  13355. def ll_fz_transform_point_xy(x, y, m):
  13356. r"""Low-level wrapper for `::fz_transform_point_xy()`."""
  13357. return _mupdf.ll_fz_transform_point_xy(x, y, m)
  13358. def ll_fz_transform_quad(q, m):
  13359. r"""
  13360. Low-level wrapper for `::fz_transform_quad()`.
  13361. Transform a quad by a matrix.
  13362. """
  13363. return _mupdf.ll_fz_transform_quad(q, m)
  13364. def ll_fz_transform_rect(rect, m):
  13365. r"""
  13366. Low-level wrapper for `::fz_transform_rect()`.
  13367. Apply a transform to a rectangle.
  13368. After the four corner points of the axis-aligned rectangle
  13369. have been transformed it may not longer be axis-aligned. So a
  13370. new axis-aligned rectangle is created covering at least the
  13371. area of the transformed rectangle.
  13372. transform: Transformation matrix to apply. See fz_concat,
  13373. fz_scale and fz_rotate for how to create a matrix.
  13374. rect: Rectangle to be transformed. The two special cases
  13375. fz_empty_rect and fz_infinite_rect, may be used but are
  13376. returned unchanged as expected.
  13377. """
  13378. return _mupdf.ll_fz_transform_rect(rect, m)
  13379. def ll_fz_transform_vector(vector, m):
  13380. r"""
  13381. Low-level wrapper for `::fz_transform_vector()`.
  13382. Apply a transformation to a vector.
  13383. transform: Transformation matrix to apply. See fz_concat,
  13384. fz_scale and fz_rotate for how to create a matrix. Any
  13385. translation will be ignored.
  13386. vector: Pointer to vector to update.
  13387. """
  13388. return _mupdf.ll_fz_transform_vector(vector, m)
  13389. def ll_fz_translate(tx, ty):
  13390. r"""
  13391. Low-level wrapper for `::fz_translate()`.
  13392. Create a translation matrix.
  13393. The returned matrix is of the form [ 1 0 0 1 tx ty ].
  13394. m: A place to store the created matrix.
  13395. tx, ty: Translation distances along the X- and Y-axes. A
  13396. translation of 0 will not cause any translation along the
  13397. relevant axis.
  13398. Returns m.
  13399. """
  13400. return _mupdf.ll_fz_translate(tx, ty)
  13401. def ll_fz_translate_irect(a, xoff, yoff):
  13402. r"""Low-level wrapper for `::fz_translate_irect()`."""
  13403. return _mupdf.ll_fz_translate_irect(a, xoff, yoff)
  13404. def ll_fz_translate_rect(a, xoff, yoff):
  13405. r"""
  13406. Low-level wrapper for `::fz_translate_rect()`.
  13407. Translate bounding box.
  13408. Translate a bbox by a given x and y offset. Allows for overflow.
  13409. """
  13410. return _mupdf.ll_fz_translate_rect(a, xoff, yoff)
  13411. def ll_fz_tree_archive_add_buffer(arch_, name, buf):
  13412. r"""
  13413. Low-level wrapper for `::fz_tree_archive_add_buffer()`.
  13414. Add a named buffer to an existing tree archive.
  13415. The tree will take a new reference to the buffer. Ownership
  13416. is not transferred.
  13417. """
  13418. return _mupdf.ll_fz_tree_archive_add_buffer(arch_, name, buf)
  13419. def ll_fz_tree_archive_add_data(arch_, name, data, size):
  13420. r"""
  13421. Low-level wrapper for `::fz_tree_archive_add_data()`.
  13422. Add a named block of data to an existing tree archive.
  13423. The data will be copied into a buffer, and so the caller
  13424. may free it as soon as this returns.
  13425. """
  13426. return _mupdf.ll_fz_tree_archive_add_data(arch_, name, data, size)
  13427. def ll_fz_tree_insert(root, key, value):
  13428. r"""
  13429. Low-level wrapper for `::fz_tree_insert()`.
  13430. Insert a new key/value pair and rebalance the tree.
  13431. Return the new root of the tree after inserting and rebalancing.
  13432. May be called with a NULL root to create a new tree.
  13433. No data is copied into the tree structure; key and value are
  13434. merely kept as pointers.
  13435. """
  13436. return _mupdf.ll_fz_tree_insert(root, key, value)
  13437. def ll_fz_tree_lookup(node, key):
  13438. r"""
  13439. Low-level wrapper for `::fz_tree_lookup()`.
  13440. Look for the value of a node in the tree with the given key.
  13441. Simple pointer equivalence is used for key.
  13442. Returns NULL for no match.
  13443. """
  13444. return _mupdf.ll_fz_tree_lookup(node, key)
  13445. def ll_fz_trim_buffer(buf):
  13446. r"""
  13447. Low-level wrapper for `::fz_trim_buffer()`.
  13448. Trim wasted capacity from a buffer by resizing internal memory.
  13449. """
  13450. return _mupdf.ll_fz_trim_buffer(buf)
  13451. def ll_fz_trim_path(path):
  13452. r"""
  13453. Low-level wrapper for `::fz_trim_path()`.
  13454. Minimise the internal storage used by a path.
  13455. As paths are constructed, the internal buffers
  13456. grow. To avoid repeated reallocations they
  13457. grow with some spare space. Once a path has
  13458. been fully constructed, this call allows the
  13459. excess space to be trimmed.
  13460. """
  13461. return _mupdf.ll_fz_trim_path(path)
  13462. def ll_fz_truncate_output(arg_1):
  13463. r"""
  13464. Low-level wrapper for `::fz_truncate_output()`.
  13465. Truncate the output at the current position.
  13466. This allows output streams which have seeked back from the end
  13467. of their storage to be truncated at the current point.
  13468. """
  13469. return _mupdf.ll_fz_truncate_output(arg_1)
  13470. def ll_fz_try_invert_matrix(inv, src):
  13471. r"""
  13472. Low-level wrapper for `::fz_try_invert_matrix()`.
  13473. Attempt to create an inverse matrix.
  13474. inv: Place to store inverse matrix.
  13475. src: Matrix to invert. A degenerate matrix, where the
  13476. determinant is equal to zero, can not be inverted.
  13477. Returns 1 if matrix is degenerate (singular), or 0 otherwise.
  13478. """
  13479. return _mupdf.ll_fz_try_invert_matrix(inv, src)
  13480. def ll_fz_try_open_archive_entry(arch, name):
  13481. r"""
  13482. Low-level wrapper for `::fz_try_open_archive_entry()`.
  13483. Opens an archive entry as a stream.
  13484. Returns NULL if a matching entry cannot be found, otherwise
  13485. behaves exactly as fz_open_archive_entry.
  13486. """
  13487. return _mupdf.ll_fz_try_open_archive_entry(arch, name)
  13488. def ll_fz_try_open_archive_with_stream(file):
  13489. r"""
  13490. Low-level wrapper for `::fz_try_open_archive_with_stream()`.
  13491. Open zip or tar archive stream.
  13492. Does the same as fz_open_archive_with_stream, but will not throw
  13493. an error in the event of failing to recognise the format. Will
  13494. still throw errors in other cases though!
  13495. """
  13496. return _mupdf.ll_fz_try_open_archive_with_stream(file)
  13497. def ll_fz_try_open_file(name):
  13498. r"""
  13499. Low-level wrapper for `::fz_try_open_file()`.
  13500. Open the named file and wrap it in a stream.
  13501. Does the same as fz_open_file, but in the event the file
  13502. does not open, it will return NULL rather than throw an
  13503. exception.
  13504. """
  13505. return _mupdf.ll_fz_try_open_file(name)
  13506. def ll_fz_try_parse_xml_archive_entry(dir, filename, preserve_white):
  13507. r"""
  13508. Low-level wrapper for `::fz_try_parse_xml_archive_entry()`.
  13509. Try and parse the contents of an archive entry into a tree of xml nodes.
  13510. preserve_white: whether to keep or delete all-whitespace nodes.
  13511. Will return NULL if the archive entry can't be found. Otherwise behaves
  13512. the same as fz_parse_xml_archive_entry. May throw exceptions.
  13513. """
  13514. return _mupdf.ll_fz_try_parse_xml_archive_entry(dir, filename, preserve_white)
  13515. def ll_fz_try_read_archive_entry(arch, name):
  13516. r"""
  13517. Low-level wrapper for `::fz_try_read_archive_entry()`.
  13518. Reads all bytes in an archive entry
  13519. into a buffer.
  13520. name: Entry name to look for, this must be an exact match to
  13521. the entry name in the archive.
  13522. Returns NULL if a matching entry cannot be found. Otherwise behaves
  13523. the same as fz_read_archive_entry. Exceptions may be thrown.
  13524. """
  13525. return _mupdf.ll_fz_try_read_archive_entry(arch, name)
  13526. def ll_fz_try_read_file(filename):
  13527. r"""
  13528. Low-level wrapper for `::fz_try_read_file()`.
  13529. Read all the contents of a file into a buffer.
  13530. Returns NULL if the file does not exist, otherwise
  13531. behaves exactly as fz_read_file.
  13532. """
  13533. return _mupdf.ll_fz_try_read_file(filename)
  13534. def ll_fz_tune_image_decode(image_decode, arg):
  13535. r"""
  13536. Low-level wrapper for `::fz_tune_image_decode()`.
  13537. Set the tuning function to use for
  13538. image decode.
  13539. image_decode: Function to use.
  13540. arg: Opaque argument to be passed to tuning function.
  13541. """
  13542. return _mupdf.ll_fz_tune_image_decode(image_decode, arg)
  13543. def ll_fz_tune_image_scale(image_scale, arg):
  13544. r"""
  13545. Low-level wrapper for `::fz_tune_image_scale()`.
  13546. Set the tuning function to use for
  13547. image scaling.
  13548. image_scale: Function to use.
  13549. arg: Opaque argument to be passed to tuning function.
  13550. """
  13551. return _mupdf.ll_fz_tune_image_scale(image_scale, arg)
  13552. def ll_fz_unicode_from_glyph_name(name):
  13553. r"""Low-level wrapper for `::fz_unicode_from_glyph_name()`."""
  13554. return _mupdf.ll_fz_unicode_from_glyph_name(name)
  13555. def ll_fz_unicode_from_glyph_name_strict(name):
  13556. r"""Low-level wrapper for `::fz_unicode_from_glyph_name_strict()`."""
  13557. return _mupdf.ll_fz_unicode_from_glyph_name_strict(name)
  13558. def ll_fz_union_rect(a, b):
  13559. r"""
  13560. Low-level wrapper for `::fz_union_rect()`.
  13561. Compute union of two rectangles.
  13562. Given two rectangles, update the first to be the smallest
  13563. axis-aligned rectangle that encompasses both given rectangles.
  13564. If either rectangle is infinite then the union is also infinite.
  13565. If either rectangle is empty then the union is simply the
  13566. non-empty rectangle. Should both rectangles be empty, then the
  13567. union is also empty.
  13568. """
  13569. return _mupdf.ll_fz_union_rect(a, b)
  13570. def ll_fz_unlock(lock):
  13571. r"""
  13572. Low-level wrapper for `::fz_unlock()`.
  13573. Unlock one of the user supplied mutexes.
  13574. """
  13575. return _mupdf.ll_fz_unlock(lock)
  13576. def ll_fz_unpack_stream(src, depth, w, h, n, indexed, pad, skip):
  13577. r"""Low-level wrapper for `::fz_unpack_stream()`."""
  13578. return _mupdf.ll_fz_unpack_stream(src, depth, w, h, n, indexed, pad, skip)
  13579. def ll_fz_unread_byte(stm):
  13580. r"""
  13581. Low-level wrapper for `::fz_unread_byte()`.
  13582. Unread the single last byte successfully
  13583. read from a stream. Do not call this without having
  13584. successfully read a byte.
  13585. stm: The stream to operate upon.
  13586. """
  13587. return _mupdf.ll_fz_unread_byte(stm)
  13588. def ll_fz_unshare_stroke_state(shared):
  13589. r"""
  13590. Low-level wrapper for `::fz_unshare_stroke_state()`.
  13591. Given a reference to a (possibly) shared stroke_state structure,
  13592. return a reference to an equivalent stroke_state structure
  13593. that is guaranteed to be unshared (i.e. one that can
  13594. safely be modified).
  13595. shared: The reference to a (possibly) shared structure
  13596. to unshare. Ownership of this reference is passed in
  13597. to this function, even in the case of exceptions being
  13598. thrown.
  13599. Exceptions may be thrown in the event of failure to
  13600. allocate if required.
  13601. """
  13602. return _mupdf.ll_fz_unshare_stroke_state(shared)
  13603. def ll_fz_unshare_stroke_state_with_dash_len(shared, len):
  13604. r"""
  13605. Low-level wrapper for `::fz_unshare_stroke_state_with_dash_len()`.
  13606. Given a reference to a (possibly) shared stroke_state structure,
  13607. return a reference to a stroke_state structure (with room for a
  13608. given amount of dash data) that is guaranteed to be unshared
  13609. (i.e. one that can safely be modified).
  13610. shared: The reference to a (possibly) shared structure
  13611. to unshare. Ownership of this reference is passed in
  13612. to this function, even in the case of exceptions being
  13613. thrown.
  13614. Exceptions may be thrown in the event of failure to
  13615. allocate if required.
  13616. """
  13617. return _mupdf.ll_fz_unshare_stroke_state_with_dash_len(shared, len)
  13618. def ll_fz_urldecode(url):
  13619. r"""
  13620. Low-level wrapper for `::fz_urldecode()`.
  13621. Like fz_decode_uri_component but in-place.
  13622. """
  13623. return _mupdf.ll_fz_urldecode(url)
  13624. def ll_fz_use_document_css():
  13625. r"""
  13626. Low-level wrapper for `::fz_use_document_css()`.
  13627. Return whether to respect document styles in HTML and EPUB.
  13628. """
  13629. return _mupdf.ll_fz_use_document_css()
  13630. def ll_fz_user_context():
  13631. r"""
  13632. Low-level wrapper for `::fz_user_context()`.
  13633. Read the user field from the context.
  13634. """
  13635. return _mupdf.ll_fz_user_context()
  13636. def ll_fz_user_css():
  13637. r"""
  13638. Low-level wrapper for `::fz_user_css()`.
  13639. Get the user stylesheet source text.
  13640. """
  13641. return _mupdf.ll_fz_user_css()
  13642. def ll_fz_utflen(s):
  13643. r"""
  13644. Low-level wrapper for `::fz_utflen()`.
  13645. Count how many runes the UTF-8 encoded string
  13646. consists of.
  13647. s: The UTF-8 encoded, NUL-terminated text string.
  13648. Returns the number of runes in the string.
  13649. """
  13650. return _mupdf.ll_fz_utflen(s)
  13651. def ll_fz_var_imp(arg_0):
  13652. r"""Low-level wrapper for `::fz_var_imp()`."""
  13653. return _mupdf.ll_fz_var_imp(arg_0)
  13654. def ll_fz_walk_path(path, walker, arg):
  13655. r"""
  13656. Low-level wrapper for `::fz_walk_path()`.
  13657. Walk the segments of a path, calling the
  13658. appropriate callback function from a given set for each
  13659. segment of the path.
  13660. path: The path to walk.
  13661. walker: The set of callback functions to use. The first
  13662. 4 callback pointers in the set must be non-NULL. The
  13663. subsequent ones can either be supplied, or can be left
  13664. as NULL, in which case the top 4 functions will be
  13665. called as appropriate to simulate them.
  13666. arg: An opaque argument passed in to each callback.
  13667. Exceptions will only be thrown if the underlying callback
  13668. functions throw them.
  13669. """
  13670. return _mupdf.ll_fz_walk_path(path, walker, arg)
  13671. def ll_fz_warn(*args):
  13672. r"""Low-level wrapper for `::fz_warn()`."""
  13673. return _mupdf.ll_fz_warn(*args)
  13674. def ll_fz_warning_callback(user):
  13675. r"""
  13676. Low-level wrapper for `::fz_warning_callback()`.
  13677. This function has out-params. Python/C# wrappers look like:
  13678. `ll_fz_warning_callback()` => `(fz_warning_cb *, void *user)`
  13679. Retrieve the currently set warning callback, or NULL if none
  13680. has been set. Optionally, if user is non-NULL, the user pointer
  13681. given when the warning callback was set is also passed back to
  13682. the caller.
  13683. """
  13684. return _mupdf.ll_fz_warning_callback(user)
  13685. def ll_fz_warp_pixmap(src, points, width, height):
  13686. r"""Low-level wrapper for `::fz_warp_pixmap()`."""
  13687. return _mupdf.ll_fz_warp_pixmap(src, points, width, height)
  13688. def ll_fz_windows_1250_from_unicode(u):
  13689. r"""Low-level wrapper for `::fz_windows_1250_from_unicode()`."""
  13690. return _mupdf.ll_fz_windows_1250_from_unicode(u)
  13691. def ll_fz_windows_1251_from_unicode(u):
  13692. r"""Low-level wrapper for `::fz_windows_1251_from_unicode()`."""
  13693. return _mupdf.ll_fz_windows_1251_from_unicode(u)
  13694. def ll_fz_windows_1252_from_unicode(u):
  13695. r"""Low-level wrapper for `::fz_windows_1252_from_unicode()`."""
  13696. return _mupdf.ll_fz_windows_1252_from_unicode(u)
  13697. def ll_fz_write_band(writer, stride, band_height, samples):
  13698. r"""
  13699. Low-level wrapper for `::fz_write_band()`.
  13700. Cause a band writer to write the next band
  13701. of data for an image.
  13702. stride: The byte offset from the first byte of the data
  13703. for a pixel to the first byte of the data for the same pixel
  13704. on the row below.
  13705. band_height: The number of lines in this band.
  13706. samples: Pointer to first byte of the data.
  13707. """
  13708. return _mupdf.ll_fz_write_band(writer, stride, band_height, samples)
  13709. def ll_fz_write_base64(out, data, size, newline):
  13710. r"""
  13711. Low-level wrapper for `::fz_write_base64()`.
  13712. Write a base64 encoded data block, optionally with periodic
  13713. newlines.
  13714. """
  13715. return _mupdf.ll_fz_write_base64(out, data, size, newline)
  13716. def ll_fz_write_base64_buffer(out, data, newline):
  13717. r"""
  13718. Low-level wrapper for `::fz_write_base64_buffer()`.
  13719. Write a base64 encoded fz_buffer, optionally with periodic
  13720. newlines.
  13721. """
  13722. return _mupdf.ll_fz_write_base64_buffer(out, data, newline)
  13723. def ll_fz_write_bitmap_as_pbm(out, bitmap):
  13724. r"""
  13725. Low-level wrapper for `::fz_write_bitmap_as_pbm()`.
  13726. Write a bitmap as a pbm.
  13727. """
  13728. return _mupdf.ll_fz_write_bitmap_as_pbm(out, bitmap)
  13729. def ll_fz_write_bitmap_as_pcl(out, bitmap, pcl):
  13730. r"""
  13731. Low-level wrapper for `::fz_write_bitmap_as_pcl()`.
  13732. Write a bitmap as mono PCL.
  13733. """
  13734. return _mupdf.ll_fz_write_bitmap_as_pcl(out, bitmap, pcl)
  13735. def ll_fz_write_bitmap_as_pkm(out, bitmap):
  13736. r"""
  13737. Low-level wrapper for `::fz_write_bitmap_as_pkm()`.
  13738. Write a CMYK bitmap as a pkm.
  13739. """
  13740. return _mupdf.ll_fz_write_bitmap_as_pkm(out, bitmap)
  13741. def ll_fz_write_bitmap_as_pwg(out, bitmap, pwg):
  13742. r"""
  13743. Low-level wrapper for `::fz_write_bitmap_as_pwg()`.
  13744. Write a bitmap as a PWG.
  13745. """
  13746. return _mupdf.ll_fz_write_bitmap_as_pwg(out, bitmap, pwg)
  13747. def ll_fz_write_bitmap_as_pwg_page(out, bitmap, pwg):
  13748. r"""
  13749. Low-level wrapper for `::fz_write_bitmap_as_pwg_page()`.
  13750. Write a bitmap as a PWG page.
  13751. Caller should provide a file header by calling
  13752. fz_write_pwg_file_header, but can then write several pages to
  13753. the same file.
  13754. """
  13755. return _mupdf.ll_fz_write_bitmap_as_pwg_page(out, bitmap, pwg)
  13756. def ll_fz_write_bits(out, data, num_bits):
  13757. r"""
  13758. Low-level wrapper for `::fz_write_bits()`.
  13759. Write num_bits of data to the end of the output stream, assumed to be packed
  13760. most significant bits first.
  13761. """
  13762. return _mupdf.ll_fz_write_bits(out, data, num_bits)
  13763. def ll_fz_write_bits_sync(out):
  13764. r"""
  13765. Low-level wrapper for `::fz_write_bits_sync()`.
  13766. Sync to byte boundary after writing bits.
  13767. """
  13768. return _mupdf.ll_fz_write_bits_sync(out)
  13769. def ll_fz_write_buffer(out, data):
  13770. r"""Low-level wrapper for `::fz_write_buffer()`."""
  13771. return _mupdf.ll_fz_write_buffer(out, data)
  13772. def ll_fz_write_byte(out, x):
  13773. r"""Low-level wrapper for `::fz_write_byte()`."""
  13774. return _mupdf.ll_fz_write_byte(out, x)
  13775. def ll_fz_write_char(out, x):
  13776. r"""Low-level wrapper for `::fz_write_char()`."""
  13777. return _mupdf.ll_fz_write_char(out, x)
  13778. def ll_fz_write_data(out, data, size):
  13779. r"""
  13780. Low-level wrapper for `::fz_write_data()`.
  13781. Write data to output.
  13782. data: Pointer to data to write.
  13783. size: Size of data to write in bytes.
  13784. """
  13785. return _mupdf.ll_fz_write_data(out, data, size)
  13786. def ll_fz_write_document(wri, doc):
  13787. r"""
  13788. Low-level wrapper for `::fz_write_document()`.
  13789. Convenience function to feed all the pages of a document to
  13790. fz_begin_page/fz_run_page/fz_end_page.
  13791. """
  13792. return _mupdf.ll_fz_write_document(wri, doc)
  13793. def ll_fz_write_float_be(out, f):
  13794. r"""Low-level wrapper for `::fz_write_float_be()`."""
  13795. return _mupdf.ll_fz_write_float_be(out, f)
  13796. def ll_fz_write_float_le(out, f):
  13797. r"""Low-level wrapper for `::fz_write_float_le()`."""
  13798. return _mupdf.ll_fz_write_float_le(out, f)
  13799. def ll_fz_write_header(writer, w, h, n, alpha, xres, yres, pagenum, cs, seps):
  13800. r"""
  13801. Low-level wrapper for `::fz_write_header()`.
  13802. Cause a band writer to write the header for
  13803. a banded image with the given properties/dimensions etc. This
  13804. also configures the bandwriter for the format of the data to be
  13805. passed in future calls.
  13806. w, h: Width and Height of the entire page.
  13807. n: Number of components (including spots and alphas).
  13808. alpha: Number of alpha components.
  13809. xres, yres: X and Y resolutions in dpi.
  13810. cs: Colorspace (NULL for bitmaps)
  13811. seps: Separation details (or NULL).
  13812. """
  13813. return _mupdf.ll_fz_write_header(writer, w, h, n, alpha, xres, yres, pagenum, cs, seps)
  13814. def ll_fz_write_image_as_data_uri(out, image):
  13815. r"""
  13816. Low-level wrapper for `::fz_write_image_as_data_uri()`.
  13817. Write image as a data URI (for HTML and SVG output).
  13818. """
  13819. return _mupdf.ll_fz_write_image_as_data_uri(out, image)
  13820. def ll_fz_write_int16_be(out, x):
  13821. r"""Low-level wrapper for `::fz_write_int16_be()`."""
  13822. return _mupdf.ll_fz_write_int16_be(out, x)
  13823. def ll_fz_write_int16_le(out, x):
  13824. r"""Low-level wrapper for `::fz_write_int16_le()`."""
  13825. return _mupdf.ll_fz_write_int16_le(out, x)
  13826. def ll_fz_write_int32_be(out, x):
  13827. r"""
  13828. Low-level wrapper for `::fz_write_int32_be()`.
  13829. Write different sized data to an output stream.
  13830. """
  13831. return _mupdf.ll_fz_write_int32_be(out, x)
  13832. def ll_fz_write_int32_le(out, x):
  13833. r"""Low-level wrapper for `::fz_write_int32_le()`."""
  13834. return _mupdf.ll_fz_write_int32_le(out, x)
  13835. def ll_fz_write_json(out, value):
  13836. r"""Low-level wrapper for `::fz_write_json()`."""
  13837. return _mupdf.ll_fz_write_json(out, value)
  13838. def ll_fz_write_pixmap_as_data_uri(out, pixmap):
  13839. r"""Low-level wrapper for `::fz_write_pixmap_as_data_uri()`."""
  13840. return _mupdf.ll_fz_write_pixmap_as_data_uri(out, pixmap)
  13841. def ll_fz_write_pixmap_as_jpeg(out, pix, quality, invert_cmyk):
  13842. r"""
  13843. Low-level wrapper for `::fz_write_pixmap_as_jpeg()`.
  13844. Write a pixmap as a JPEG.
  13845. """
  13846. return _mupdf.ll_fz_write_pixmap_as_jpeg(out, pix, quality, invert_cmyk)
  13847. def ll_fz_write_pixmap_as_jpx(out, pix, quality):
  13848. r"""
  13849. Low-level wrapper for `::fz_write_pixmap_as_jpx()`.
  13850. Pixmap data as JP2K with no subsampling.
  13851. quality = 100 = lossless
  13852. otherwise for a factor of x compression use 100-x. (so 80 is 1:20 compression)
  13853. """
  13854. return _mupdf.ll_fz_write_pixmap_as_jpx(out, pix, quality)
  13855. def ll_fz_write_pixmap_as_pam(out, pixmap):
  13856. r"""
  13857. Low-level wrapper for `::fz_write_pixmap_as_pam()`.
  13858. Write a pixmap as a pnm (greyscale, rgb or cmyk, with or without
  13859. alpha).
  13860. """
  13861. return _mupdf.ll_fz_write_pixmap_as_pam(out, pixmap)
  13862. def ll_fz_write_pixmap_as_pcl(out, pixmap, pcl):
  13863. r"""
  13864. Low-level wrapper for `::fz_write_pixmap_as_pcl()`.
  13865. Write an (RGB) pixmap as color PCL.
  13866. """
  13867. return _mupdf.ll_fz_write_pixmap_as_pcl(out, pixmap, pcl)
  13868. def ll_fz_write_pixmap_as_pclm(out, pixmap, options):
  13869. r"""
  13870. Low-level wrapper for `::fz_write_pixmap_as_pclm()`.
  13871. Write a (Greyscale or RGB) pixmap as pclm.
  13872. """
  13873. return _mupdf.ll_fz_write_pixmap_as_pclm(out, pixmap, options)
  13874. def ll_fz_write_pixmap_as_pdfocr(out, pixmap, options):
  13875. r"""
  13876. Low-level wrapper for `::fz_write_pixmap_as_pdfocr()`.
  13877. Write a (Greyscale or RGB) pixmap as pdfocr.
  13878. """
  13879. return _mupdf.ll_fz_write_pixmap_as_pdfocr(out, pixmap, options)
  13880. def ll_fz_write_pixmap_as_png(out, pixmap):
  13881. r"""
  13882. Low-level wrapper for `::fz_write_pixmap_as_png()`.
  13883. Write a (Greyscale or RGB) pixmap as a png.
  13884. """
  13885. return _mupdf.ll_fz_write_pixmap_as_png(out, pixmap)
  13886. def ll_fz_write_pixmap_as_pnm(out, pixmap):
  13887. r"""
  13888. Low-level wrapper for `::fz_write_pixmap_as_pnm()`.
  13889. Write a pixmap as a pnm (greyscale or rgb, no alpha).
  13890. """
  13891. return _mupdf.ll_fz_write_pixmap_as_pnm(out, pixmap)
  13892. def ll_fz_write_pixmap_as_ps(out, pixmap):
  13893. r"""
  13894. Low-level wrapper for `::fz_write_pixmap_as_ps()`.
  13895. Write a (gray, rgb, or cmyk, no alpha) pixmap out as postscript.
  13896. """
  13897. return _mupdf.ll_fz_write_pixmap_as_ps(out, pixmap)
  13898. def ll_fz_write_pixmap_as_psd(out, pixmap):
  13899. r"""
  13900. Low-level wrapper for `::fz_write_pixmap_as_psd()`.
  13901. Write a pixmap as a PSD file.
  13902. """
  13903. return _mupdf.ll_fz_write_pixmap_as_psd(out, pixmap)
  13904. def ll_fz_write_pixmap_as_pwg(out, pixmap, pwg):
  13905. r"""
  13906. Low-level wrapper for `::fz_write_pixmap_as_pwg()`.
  13907. Write a pixmap as a PWG.
  13908. """
  13909. return _mupdf.ll_fz_write_pixmap_as_pwg(out, pixmap, pwg)
  13910. def ll_fz_write_pixmap_as_pwg_page(out, pixmap, pwg):
  13911. r"""
  13912. Low-level wrapper for `::fz_write_pixmap_as_pwg_page()`.
  13913. Write a pixmap as a PWG page.
  13914. Caller should provide a file header by calling
  13915. fz_write_pwg_file_header, but can then write several pages to
  13916. the same file.
  13917. """
  13918. return _mupdf.ll_fz_write_pixmap_as_pwg_page(out, pixmap, pwg)
  13919. def ll_fz_write_ps_file_header(out):
  13920. r"""
  13921. Low-level wrapper for `::fz_write_ps_file_header()`.
  13922. Write the file level header for ps band writer output.
  13923. """
  13924. return _mupdf.ll_fz_write_ps_file_header(out)
  13925. def ll_fz_write_ps_file_trailer(out, pages):
  13926. r"""
  13927. Low-level wrapper for `::fz_write_ps_file_trailer()`.
  13928. Write the file level trailer for ps band writer output.
  13929. """
  13930. return _mupdf.ll_fz_write_ps_file_trailer(out, pages)
  13931. def ll_fz_write_pwg_file_header(out):
  13932. r"""
  13933. Low-level wrapper for `::fz_write_pwg_file_header()`.
  13934. Output the file header to a pwg stream, ready for pages to follow it.
  13935. """
  13936. return _mupdf.ll_fz_write_pwg_file_header(out)
  13937. def ll_fz_write_rune(out, rune):
  13938. r"""
  13939. Low-level wrapper for `::fz_write_rune()`.
  13940. Write a UTF-8 encoded unicode character.
  13941. """
  13942. return _mupdf.ll_fz_write_rune(out, rune)
  13943. def ll_fz_write_stabilized_story(writer, user_css, em, contentfn, contentfn_ref, rectfn, rectfn_ref, pagefn, pagefn_ref, dir):
  13944. r"""Low-level wrapper for `::fz_write_stabilized_story()`."""
  13945. return _mupdf.ll_fz_write_stabilized_story(writer, user_css, em, contentfn, contentfn_ref, rectfn, rectfn_ref, pagefn, pagefn_ref, dir)
  13946. def ll_fz_write_story(writer, story, rectfn, rectfn_ref, positionfn, positionfn_ref, pagefn, pagefn_ref):
  13947. r"""Low-level wrapper for `::fz_write_story()`."""
  13948. return _mupdf.ll_fz_write_story(writer, story, rectfn, rectfn_ref, positionfn, positionfn_ref, pagefn, pagefn_ref)
  13949. def ll_fz_write_stream(out, _in):
  13950. r"""
  13951. Low-level wrapper for `::fz_write_stream()`.
  13952. Copy the stream contents to the output.
  13953. """
  13954. return _mupdf.ll_fz_write_stream(out, _in)
  13955. def ll_fz_write_string(out, s):
  13956. r"""
  13957. Low-level wrapper for `::fz_write_string()`.
  13958. Write a string. Does not write zero terminator.
  13959. """
  13960. return _mupdf.ll_fz_write_string(out, s)
  13961. def ll_fz_write_uint16_be(out, x):
  13962. r"""Low-level wrapper for `::fz_write_uint16_be()`."""
  13963. return _mupdf.ll_fz_write_uint16_be(out, x)
  13964. def ll_fz_write_uint16_le(out, x):
  13965. r"""Low-level wrapper for `::fz_write_uint16_le()`."""
  13966. return _mupdf.ll_fz_write_uint16_le(out, x)
  13967. def ll_fz_write_uint32_be(out, x):
  13968. r"""Low-level wrapper for `::fz_write_uint32_be()`."""
  13969. return _mupdf.ll_fz_write_uint32_be(out, x)
  13970. def ll_fz_write_uint32_le(out, x):
  13971. r"""Low-level wrapper for `::fz_write_uint32_le()`."""
  13972. return _mupdf.ll_fz_write_uint32_le(out, x)
  13973. def ll_fz_write_xml(root, out, indented):
  13974. r"""
  13975. Low-level wrapper for `::fz_write_xml()`.
  13976. Write our xml structure out to an xml stream.
  13977. Properly formatted XML is only allowed to have a single top-level node
  13978. under which everything must sit. Our structures allow for multiple
  13979. top level nodes. If required, we will output an extra 'ROOT' node
  13980. at the top so that the xml is well-formed.
  13981. If 'indented' is non-zero then additional whitespace will be added to
  13982. make the XML easier to read in a text editor. It will NOT be properly
  13983. compliant.
  13984. """
  13985. return _mupdf.ll_fz_write_xml(root, out, indented)
  13986. def ll_fz_write_zip_entry(zip, name, buf, compress):
  13987. r"""
  13988. Low-level wrapper for `::fz_write_zip_entry()`.
  13989. Given a buffer of data, (optionally) compress it, and add it to
  13990. the zip file with the given name.
  13991. """
  13992. return _mupdf.ll_fz_write_zip_entry(zip, name, buf, compress)
  13993. def ll_fz_xml_add_att(pool, node, key, val):
  13994. r"""
  13995. Low-level wrapper for `::fz_xml_add_att()`.
  13996. Add an attribute to an XML node.
  13997. """
  13998. return _mupdf.ll_fz_xml_add_att(pool, node, key, val)
  13999. def ll_fz_xml_att(item, att):
  14000. r"""
  14001. Low-level wrapper for `::fz_xml_att()`.
  14002. Return the value of an attribute of an XML node.
  14003. NULL if the attribute doesn't exist.
  14004. """
  14005. return _mupdf.ll_fz_xml_att(item, att)
  14006. def ll_fz_xml_att_alt(item, one, two):
  14007. r"""
  14008. Low-level wrapper for `::fz_xml_att_alt()`.
  14009. Return the value of an attribute of an XML node.
  14010. If the first attribute doesn't exist, try the second.
  14011. NULL if neither attribute exists.
  14012. """
  14013. return _mupdf.ll_fz_xml_att_alt(item, one, two)
  14014. def ll_fz_xml_att_eq(item, name, match):
  14015. r"""
  14016. Low-level wrapper for `::fz_xml_att_eq()`.
  14017. Check for a matching attribute on an XML node.
  14018. If the node has the requested attribute (name), and the value
  14019. matches (match) then return 1. Otherwise, 0.
  14020. """
  14021. return _mupdf.ll_fz_xml_att_eq(item, name, match)
  14022. def ll_fz_xml_down(item):
  14023. r"""
  14024. Low-level wrapper for `::fz_xml_down()`.
  14025. Return first child of XML node.
  14026. """
  14027. return _mupdf.ll_fz_xml_down(item)
  14028. def ll_fz_xml_find(item, tag):
  14029. r"""
  14030. Low-level wrapper for `::fz_xml_find()`.
  14031. Search the siblings of XML nodes starting with item looking for
  14032. the first with the given tag.
  14033. Return NULL if none found.
  14034. """
  14035. return _mupdf.ll_fz_xml_find(item, tag)
  14036. def ll_fz_xml_find_dfs(item, tag, att, match):
  14037. r"""
  14038. Low-level wrapper for `::fz_xml_find_dfs()`.
  14039. Perform a depth first search from item, returning the first
  14040. child that matches the given tag (or any tag if tag is NULL),
  14041. with the given attribute (if att is non NULL), that matches
  14042. match (if match is non NULL).
  14043. """
  14044. return _mupdf.ll_fz_xml_find_dfs(item, tag, att, match)
  14045. def ll_fz_xml_find_dfs_top(item, tag, att, match, top):
  14046. r"""
  14047. Low-level wrapper for `::fz_xml_find_dfs_top()`.
  14048. Perform a depth first search from item, returning the first
  14049. child that matches the given tag (or any tag if tag is NULL),
  14050. with the given attribute (if att is non NULL), that matches
  14051. match (if match is non NULL). The search stops if it ever
  14052. reaches the top of the tree, or the declared 'top' item.
  14053. """
  14054. return _mupdf.ll_fz_xml_find_dfs_top(item, tag, att, match, top)
  14055. def ll_fz_xml_find_down(item, tag):
  14056. r"""
  14057. Low-level wrapper for `::fz_xml_find_down()`.
  14058. Search the siblings of XML nodes starting with the first child
  14059. of item looking for the first with the given tag.
  14060. Return NULL if none found.
  14061. """
  14062. return _mupdf.ll_fz_xml_find_down(item, tag)
  14063. def ll_fz_xml_find_down_match(item, tag, att, match):
  14064. r"""
  14065. Low-level wrapper for `::fz_xml_find_down_match()`.
  14066. Search the siblings of XML nodes starting with the first child
  14067. of item looking for the first with the given tag (or any tag if
  14068. tag is NULL), and with a matching attribute.
  14069. Return NULL if none found.
  14070. """
  14071. return _mupdf.ll_fz_xml_find_down_match(item, tag, att, match)
  14072. def ll_fz_xml_find_match(item, tag, att, match):
  14073. r"""
  14074. Low-level wrapper for `::fz_xml_find_match()`.
  14075. Search the siblings of XML nodes starting with item looking for
  14076. the first with the given tag (or any tag if tag is NULL), and
  14077. with a matching attribute.
  14078. Return NULL if none found.
  14079. """
  14080. return _mupdf.ll_fz_xml_find_match(item, tag, att, match)
  14081. def ll_fz_xml_find_next(item, tag):
  14082. r"""
  14083. Low-level wrapper for `::fz_xml_find_next()`.
  14084. Search the siblings of XML nodes starting with the first sibling
  14085. of item looking for the first with the given tag.
  14086. Return NULL if none found.
  14087. """
  14088. return _mupdf.ll_fz_xml_find_next(item, tag)
  14089. def ll_fz_xml_find_next_dfs(item, tag, att, match):
  14090. r"""
  14091. Low-level wrapper for `::fz_xml_find_next_dfs()`.
  14092. Perform a depth first search onwards from item, returning the first
  14093. child that matches the given tag (or any tag if tag is NULL),
  14094. with the given attribute (if att is non NULL), that matches
  14095. match (if match is non NULL).
  14096. """
  14097. return _mupdf.ll_fz_xml_find_next_dfs(item, tag, att, match)
  14098. def ll_fz_xml_find_next_dfs_top(item, tag, att, match, top):
  14099. r"""
  14100. Low-level wrapper for `::fz_xml_find_next_dfs_top()`.
  14101. Perform a depth first search onwards from item, returning the first
  14102. child that matches the given tag (or any tag if tag is NULL),
  14103. with the given attribute (if att is non NULL), that matches
  14104. match (if match is non NULL). The search stops if it ever reaches
  14105. the top of the tree, or the declared 'top' item.
  14106. """
  14107. return _mupdf.ll_fz_xml_find_next_dfs_top(item, tag, att, match, top)
  14108. def ll_fz_xml_find_next_match(item, tag, att, match):
  14109. r"""
  14110. Low-level wrapper for `::fz_xml_find_next_match()`.
  14111. Search the siblings of XML nodes starting with the first sibling
  14112. of item looking for the first with the given tag (or any tag if tag
  14113. is NULL), and with a matching attribute.
  14114. Return NULL if none found.
  14115. """
  14116. return _mupdf.ll_fz_xml_find_next_match(item, tag, att, match)
  14117. def ll_fz_xml_is_tag(item, name):
  14118. r"""
  14119. Low-level wrapper for `::fz_xml_is_tag()`.
  14120. Return true if the tag name matches.
  14121. """
  14122. return _mupdf.ll_fz_xml_is_tag(item, name)
  14123. def ll_fz_xml_next(item):
  14124. r"""
  14125. Low-level wrapper for `::fz_xml_next()`.
  14126. Return next sibling of XML node.
  14127. """
  14128. return _mupdf.ll_fz_xml_next(item)
  14129. def ll_fz_xml_prev(item):
  14130. r"""
  14131. Low-level wrapper for `::fz_xml_prev()`.
  14132. Return previous sibling of XML node.
  14133. """
  14134. return _mupdf.ll_fz_xml_prev(item)
  14135. def ll_fz_xml_root(xml):
  14136. r"""
  14137. Low-level wrapper for `::fz_xml_root()`.
  14138. Return the topmost XML node of a document.
  14139. """
  14140. return _mupdf.ll_fz_xml_root(xml)
  14141. def ll_fz_xml_tag(item):
  14142. r"""
  14143. Low-level wrapper for `::fz_xml_tag()`.
  14144. Return tag of XML node. Return NULL for text nodes.
  14145. """
  14146. return _mupdf.ll_fz_xml_tag(item)
  14147. def ll_fz_xml_text(item):
  14148. r"""
  14149. Low-level wrapper for `::fz_xml_text()`.
  14150. Return the text content of an XML node.
  14151. Return NULL if the node is a tag.
  14152. """
  14153. return _mupdf.ll_fz_xml_text(item)
  14154. def ll_fz_xml_up(item):
  14155. r"""
  14156. Low-level wrapper for `::fz_xml_up()`.
  14157. Return parent of XML node.
  14158. """
  14159. return _mupdf.ll_fz_xml_up(item)
  14160. def ll_pdf_abandon_operation(doc):
  14161. r"""Low-level wrapper for `::pdf_abandon_operation()`."""
  14162. return _mupdf.ll_pdf_abandon_operation(doc)
  14163. def ll_pdf_access_alert_event(evt):
  14164. r"""Low-level wrapper for `::pdf_access_alert_event()`."""
  14165. return _mupdf.ll_pdf_access_alert_event(evt)
  14166. def ll_pdf_access_exec_menu_item_event(evt):
  14167. r"""Low-level wrapper for `::pdf_access_exec_menu_item_event()`."""
  14168. return _mupdf.ll_pdf_access_exec_menu_item_event(evt)
  14169. def ll_pdf_access_launch_url_event(evt):
  14170. r"""Low-level wrapper for `::pdf_access_launch_url_event()`."""
  14171. return _mupdf.ll_pdf_access_launch_url_event(evt)
  14172. def ll_pdf_access_mail_doc_event(evt):
  14173. r"""Low-level wrapper for `::pdf_access_mail_doc_event()`."""
  14174. return _mupdf.ll_pdf_access_mail_doc_event(evt)
  14175. def ll_pdf_add_annot_border_dash_item(annot, length):
  14176. r"""Low-level wrapper for `::pdf_add_annot_border_dash_item()`."""
  14177. return _mupdf.ll_pdf_add_annot_border_dash_item(annot, length)
  14178. def ll_pdf_add_annot_ink_list(annot, n, stroke):
  14179. r"""Low-level wrapper for `::pdf_add_annot_ink_list()`."""
  14180. return _mupdf.ll_pdf_add_annot_ink_list(annot, n, stroke)
  14181. def ll_pdf_add_annot_ink_list_stroke(annot):
  14182. r"""Low-level wrapper for `::pdf_add_annot_ink_list_stroke()`."""
  14183. return _mupdf.ll_pdf_add_annot_ink_list_stroke(annot)
  14184. def ll_pdf_add_annot_ink_list_stroke_vertex(annot, p):
  14185. r"""Low-level wrapper for `::pdf_add_annot_ink_list_stroke_vertex()`."""
  14186. return _mupdf.ll_pdf_add_annot_ink_list_stroke_vertex(annot, p)
  14187. def ll_pdf_add_annot_quad_point(annot, quad):
  14188. r"""Low-level wrapper for `::pdf_add_annot_quad_point()`."""
  14189. return _mupdf.ll_pdf_add_annot_quad_point(annot, quad)
  14190. def ll_pdf_add_annot_vertex(annot, p):
  14191. r"""Low-level wrapper for `::pdf_add_annot_vertex()`."""
  14192. return _mupdf.ll_pdf_add_annot_vertex(annot, p)
  14193. def ll_pdf_add_cid_font(doc, font):
  14194. r"""Low-level wrapper for `::pdf_add_cid_font()`."""
  14195. return _mupdf.ll_pdf_add_cid_font(doc, font)
  14196. def ll_pdf_add_cjk_font(doc, font, script, wmode, serif):
  14197. r"""Low-level wrapper for `::pdf_add_cjk_font()`."""
  14198. return _mupdf.ll_pdf_add_cjk_font(doc, font, script, wmode, serif)
  14199. def ll_pdf_add_codespace(cmap, low, high, n):
  14200. r"""Low-level wrapper for `::pdf_add_codespace()`."""
  14201. return _mupdf.ll_pdf_add_codespace(cmap, low, high, n)
  14202. def ll_pdf_add_colorspace(doc, cs):
  14203. r"""Low-level wrapper for `::pdf_add_colorspace()`."""
  14204. return _mupdf.ll_pdf_add_colorspace(doc, cs)
  14205. def ll_pdf_add_embedded_file(doc, filename, mimetype, contents, created, modified, add_checksum):
  14206. r"""Low-level wrapper for `::pdf_add_embedded_file()`."""
  14207. return _mupdf.ll_pdf_add_embedded_file(doc, filename, mimetype, contents, created, modified, add_checksum)
  14208. def ll_pdf_add_hmtx(font, lo, hi, w):
  14209. r"""Low-level wrapper for `::pdf_add_hmtx()`."""
  14210. return _mupdf.ll_pdf_add_hmtx(font, lo, hi, w)
  14211. def ll_pdf_add_image(doc, image):
  14212. r"""Low-level wrapper for `::pdf_add_image()`."""
  14213. return _mupdf.ll_pdf_add_image(doc, image)
  14214. def ll_pdf_add_journal_fragment(doc, parent, copy, copy_stream, newobj):
  14215. r"""Low-level wrapper for `::pdf_add_journal_fragment()`."""
  14216. return _mupdf.ll_pdf_add_journal_fragment(doc, parent, copy, copy_stream, newobj)
  14217. def ll_pdf_add_new_array(doc, initial):
  14218. r"""Low-level wrapper for `::pdf_add_new_array()`."""
  14219. return _mupdf.ll_pdf_add_new_array(doc, initial)
  14220. def ll_pdf_add_new_dict(doc, initial):
  14221. r"""Low-level wrapper for `::pdf_add_new_dict()`."""
  14222. return _mupdf.ll_pdf_add_new_dict(doc, initial)
  14223. def ll_pdf_add_object(doc, obj):
  14224. r"""Low-level wrapper for `::pdf_add_object()`."""
  14225. return _mupdf.ll_pdf_add_object(doc, obj)
  14226. def ll_pdf_add_object_drop(doc, obj):
  14227. r"""Low-level wrapper for `::pdf_add_object_drop()`."""
  14228. return _mupdf.ll_pdf_add_object_drop(doc, obj)
  14229. def ll_pdf_add_page(doc, mediabox, rotate, resources, contents):
  14230. r"""Low-level wrapper for `::pdf_add_page()`."""
  14231. return _mupdf.ll_pdf_add_page(doc, mediabox, rotate, resources, contents)
  14232. def ll_pdf_add_simple_font(doc, font, encoding):
  14233. r"""Low-level wrapper for `::pdf_add_simple_font()`."""
  14234. return _mupdf.ll_pdf_add_simple_font(doc, font, encoding)
  14235. def ll_pdf_add_stream(doc, buf, obj, compressed):
  14236. r"""Low-level wrapper for `::pdf_add_stream()`."""
  14237. return _mupdf.ll_pdf_add_stream(doc, buf, obj, compressed)
  14238. def ll_pdf_add_substitute_font(doc, font):
  14239. r"""Low-level wrapper for `::pdf_add_substitute_font()`."""
  14240. return _mupdf.ll_pdf_add_substitute_font(doc, font)
  14241. def ll_pdf_add_vmtx(font, lo, hi, x, y, w):
  14242. r"""Low-level wrapper for `::pdf_add_vmtx()`."""
  14243. return _mupdf.ll_pdf_add_vmtx(font, lo, hi, x, y, w)
  14244. def ll_pdf_annot_MK_BC(annot, n, color):
  14245. r"""
  14246. Low-level wrapper for `::pdf_annot_MK_BC()`.
  14247. This function has out-params. Python/C# wrappers look like:
  14248. `ll_pdf_annot_MK_BC(::pdf_annot *annot, float color[4])` => int n
  14249. """
  14250. return _mupdf.ll_pdf_annot_MK_BC(annot, n, color)
  14251. def ll_pdf_annot_MK_BC_rgb(annot, rgb):
  14252. r"""Low-level wrapper for `::pdf_annot_MK_BC_rgb()`."""
  14253. return _mupdf.ll_pdf_annot_MK_BC_rgb(annot, rgb)
  14254. def ll_pdf_annot_MK_BG(annot, n, color):
  14255. r"""
  14256. Low-level wrapper for `::pdf_annot_MK_BG()`.
  14257. This function has out-params. Python/C# wrappers look like:
  14258. `ll_pdf_annot_MK_BG(::pdf_annot *annot, float color[4])` => int n
  14259. """
  14260. return _mupdf.ll_pdf_annot_MK_BG(annot, n, color)
  14261. def ll_pdf_annot_MK_BG_rgb(annot, rgb):
  14262. r"""Low-level wrapper for `::pdf_annot_MK_BG_rgb()`."""
  14263. return _mupdf.ll_pdf_annot_MK_BG_rgb(annot, rgb)
  14264. def ll_pdf_annot_active(annot):
  14265. r"""Low-level wrapper for `::pdf_annot_active()`."""
  14266. return _mupdf.ll_pdf_annot_active(annot)
  14267. def ll_pdf_annot_ap(annot):
  14268. r"""Low-level wrapper for `::pdf_annot_ap()`."""
  14269. return _mupdf.ll_pdf_annot_ap(annot)
  14270. def ll_pdf_annot_author(annot):
  14271. r"""Low-level wrapper for `::pdf_annot_author()`."""
  14272. return _mupdf.ll_pdf_annot_author(annot)
  14273. def ll_pdf_annot_border(annot):
  14274. r"""Low-level wrapper for `::pdf_annot_border()`."""
  14275. return _mupdf.ll_pdf_annot_border(annot)
  14276. def ll_pdf_annot_border_dash_count(annot):
  14277. r"""Low-level wrapper for `::pdf_annot_border_dash_count()`."""
  14278. return _mupdf.ll_pdf_annot_border_dash_count(annot)
  14279. def ll_pdf_annot_border_dash_item(annot, i):
  14280. r"""Low-level wrapper for `::pdf_annot_border_dash_item()`."""
  14281. return _mupdf.ll_pdf_annot_border_dash_item(annot, i)
  14282. def ll_pdf_annot_border_effect(annot):
  14283. r"""Low-level wrapper for `::pdf_annot_border_effect()`."""
  14284. return _mupdf.ll_pdf_annot_border_effect(annot)
  14285. def ll_pdf_annot_border_effect_intensity(annot):
  14286. r"""Low-level wrapper for `::pdf_annot_border_effect_intensity()`."""
  14287. return _mupdf.ll_pdf_annot_border_effect_intensity(annot)
  14288. def ll_pdf_annot_border_style(annot):
  14289. r"""Low-level wrapper for `::pdf_annot_border_style()`."""
  14290. return _mupdf.ll_pdf_annot_border_style(annot)
  14291. def ll_pdf_annot_border_width(annot):
  14292. r"""Low-level wrapper for `::pdf_annot_border_width()`."""
  14293. return _mupdf.ll_pdf_annot_border_width(annot)
  14294. def ll_pdf_annot_callout_line(annot, callout, n):
  14295. r"""
  14296. Low-level wrapper for `::pdf_annot_callout_line()`.
  14297. This function has out-params. Python/C# wrappers look like:
  14298. `ll_pdf_annot_callout_line(::pdf_annot *annot, ::fz_point callout[3])` => int n
  14299. """
  14300. return _mupdf.ll_pdf_annot_callout_line(annot, callout, n)
  14301. def ll_pdf_annot_callout_point(annot):
  14302. r"""Low-level wrapper for `::pdf_annot_callout_point()`."""
  14303. return _mupdf.ll_pdf_annot_callout_point(annot)
  14304. def ll_pdf_annot_callout_style(annot):
  14305. r"""Low-level wrapper for `::pdf_annot_callout_style()`."""
  14306. return _mupdf.ll_pdf_annot_callout_style(annot)
  14307. def ll_pdf_annot_color(annot, n, color):
  14308. r"""
  14309. Low-level wrapper for `::pdf_annot_color()`.
  14310. This function has out-params. Python/C# wrappers look like:
  14311. `ll_pdf_annot_color(::pdf_annot *annot, float color[4])` => int n
  14312. """
  14313. return _mupdf.ll_pdf_annot_color(annot, n, color)
  14314. def ll_pdf_annot_contents(annot):
  14315. r"""Low-level wrapper for `::pdf_annot_contents()`."""
  14316. return _mupdf.ll_pdf_annot_contents(annot)
  14317. def ll_pdf_annot_creation_date(annot):
  14318. r"""Low-level wrapper for `::pdf_annot_creation_date()`."""
  14319. return _mupdf.ll_pdf_annot_creation_date(annot)
  14320. def ll_pdf_annot_default_appearance(annot, font, size, n, color):
  14321. r"""
  14322. Low-level wrapper for `::pdf_annot_default_appearance()`.
  14323. This function has out-params. Python/C# wrappers look like:
  14324. `ll_pdf_annot_default_appearance(::pdf_annot *annot, float color[4])` => `(const char *font, float size, int n)`
  14325. """
  14326. return _mupdf.ll_pdf_annot_default_appearance(annot, font, size, n, color)
  14327. def ll_pdf_annot_default_appearance_unmapped(annot, font_name, font_name_len, size, n, color):
  14328. r"""
  14329. Low-level wrapper for `::pdf_annot_default_appearance_unmapped()`.
  14330. This function has out-params. Python/C# wrappers look like:
  14331. `ll_pdf_annot_default_appearance_unmapped(::pdf_annot *annot, char *font_name, int font_name_len, float color[4])` => `(float size, int n)`
  14332. """
  14333. return _mupdf.ll_pdf_annot_default_appearance_unmapped(annot, font_name, font_name_len, size, n, color)
  14334. def ll_pdf_annot_ensure_local_xref(annot):
  14335. r"""Low-level wrapper for `::pdf_annot_ensure_local_xref()`."""
  14336. return _mupdf.ll_pdf_annot_ensure_local_xref(annot)
  14337. def ll_pdf_annot_event_blur(annot):
  14338. r"""Low-level wrapper for `::pdf_annot_event_blur()`."""
  14339. return _mupdf.ll_pdf_annot_event_blur(annot)
  14340. def ll_pdf_annot_event_down(annot):
  14341. r"""Low-level wrapper for `::pdf_annot_event_down()`."""
  14342. return _mupdf.ll_pdf_annot_event_down(annot)
  14343. def ll_pdf_annot_event_enter(annot):
  14344. r"""Low-level wrapper for `::pdf_annot_event_enter()`."""
  14345. return _mupdf.ll_pdf_annot_event_enter(annot)
  14346. def ll_pdf_annot_event_exit(annot):
  14347. r"""Low-level wrapper for `::pdf_annot_event_exit()`."""
  14348. return _mupdf.ll_pdf_annot_event_exit(annot)
  14349. def ll_pdf_annot_event_focus(annot):
  14350. r"""Low-level wrapper for `::pdf_annot_event_focus()`."""
  14351. return _mupdf.ll_pdf_annot_event_focus(annot)
  14352. def ll_pdf_annot_event_page_close(annot):
  14353. r"""Low-level wrapper for `::pdf_annot_event_page_close()`."""
  14354. return _mupdf.ll_pdf_annot_event_page_close(annot)
  14355. def ll_pdf_annot_event_page_invisible(annot):
  14356. r"""Low-level wrapper for `::pdf_annot_event_page_invisible()`."""
  14357. return _mupdf.ll_pdf_annot_event_page_invisible(annot)
  14358. def ll_pdf_annot_event_page_open(annot):
  14359. r"""Low-level wrapper for `::pdf_annot_event_page_open()`."""
  14360. return _mupdf.ll_pdf_annot_event_page_open(annot)
  14361. def ll_pdf_annot_event_page_visible(annot):
  14362. r"""Low-level wrapper for `::pdf_annot_event_page_visible()`."""
  14363. return _mupdf.ll_pdf_annot_event_page_visible(annot)
  14364. def ll_pdf_annot_event_up(annot):
  14365. r"""Low-level wrapper for `::pdf_annot_event_up()`."""
  14366. return _mupdf.ll_pdf_annot_event_up(annot)
  14367. def ll_pdf_annot_field_event_keystroke(doc, annot, evt):
  14368. r"""Low-level wrapper for `::pdf_annot_field_event_keystroke()`."""
  14369. return _mupdf.ll_pdf_annot_field_event_keystroke(doc, annot, evt)
  14370. def ll_pdf_annot_field_flags(annot):
  14371. r"""Low-level wrapper for `::pdf_annot_field_flags()`."""
  14372. return _mupdf.ll_pdf_annot_field_flags(annot)
  14373. def ll_pdf_annot_field_label(widget):
  14374. r"""Low-level wrapper for `::pdf_annot_field_label()`."""
  14375. return _mupdf.ll_pdf_annot_field_label(widget)
  14376. def ll_pdf_annot_field_value(annot):
  14377. r"""Low-level wrapper for `::pdf_annot_field_value()`."""
  14378. return _mupdf.ll_pdf_annot_field_value(annot)
  14379. def ll_pdf_annot_filespec(annot):
  14380. r"""Low-level wrapper for `::pdf_annot_filespec()`."""
  14381. return _mupdf.ll_pdf_annot_filespec(annot)
  14382. def ll_pdf_annot_flags(annot):
  14383. r"""Low-level wrapper for `::pdf_annot_flags()`."""
  14384. return _mupdf.ll_pdf_annot_flags(annot)
  14385. def ll_pdf_annot_has_author(annot):
  14386. r"""Low-level wrapper for `::pdf_annot_has_author()`."""
  14387. return _mupdf.ll_pdf_annot_has_author(annot)
  14388. def ll_pdf_annot_has_border(annot):
  14389. r"""Low-level wrapper for `::pdf_annot_has_border()`."""
  14390. return _mupdf.ll_pdf_annot_has_border(annot)
  14391. def ll_pdf_annot_has_border_effect(annot):
  14392. r"""Low-level wrapper for `::pdf_annot_has_border_effect()`."""
  14393. return _mupdf.ll_pdf_annot_has_border_effect(annot)
  14394. def ll_pdf_annot_has_callout(annot):
  14395. r"""Low-level wrapper for `::pdf_annot_has_callout()`."""
  14396. return _mupdf.ll_pdf_annot_has_callout(annot)
  14397. def ll_pdf_annot_has_default_appearance(annot):
  14398. r"""Low-level wrapper for `::pdf_annot_has_default_appearance()`."""
  14399. return _mupdf.ll_pdf_annot_has_default_appearance(annot)
  14400. def ll_pdf_annot_has_filespec(annot):
  14401. r"""Low-level wrapper for `::pdf_annot_has_filespec()`."""
  14402. return _mupdf.ll_pdf_annot_has_filespec(annot)
  14403. def ll_pdf_annot_has_icon_name(annot):
  14404. r"""Low-level wrapper for `::pdf_annot_has_icon_name()`."""
  14405. return _mupdf.ll_pdf_annot_has_icon_name(annot)
  14406. def ll_pdf_annot_has_ink_list(annot):
  14407. r"""Low-level wrapper for `::pdf_annot_has_ink_list()`."""
  14408. return _mupdf.ll_pdf_annot_has_ink_list(annot)
  14409. def ll_pdf_annot_has_intent(annot):
  14410. r"""Low-level wrapper for `::pdf_annot_has_intent()`."""
  14411. return _mupdf.ll_pdf_annot_has_intent(annot)
  14412. def ll_pdf_annot_has_interior_color(annot):
  14413. r"""Low-level wrapper for `::pdf_annot_has_interior_color()`."""
  14414. return _mupdf.ll_pdf_annot_has_interior_color(annot)
  14415. def ll_pdf_annot_has_line(annot):
  14416. r"""Low-level wrapper for `::pdf_annot_has_line()`."""
  14417. return _mupdf.ll_pdf_annot_has_line(annot)
  14418. def ll_pdf_annot_has_line_ending_styles(annot):
  14419. r"""Low-level wrapper for `::pdf_annot_has_line_ending_styles()`."""
  14420. return _mupdf.ll_pdf_annot_has_line_ending_styles(annot)
  14421. def ll_pdf_annot_has_open(annot):
  14422. r"""Low-level wrapper for `::pdf_annot_has_open()`."""
  14423. return _mupdf.ll_pdf_annot_has_open(annot)
  14424. def ll_pdf_annot_has_popup(annot):
  14425. r"""Low-level wrapper for `::pdf_annot_has_popup()`."""
  14426. return _mupdf.ll_pdf_annot_has_popup(annot)
  14427. def ll_pdf_annot_has_quad_points(annot):
  14428. r"""Low-level wrapper for `::pdf_annot_has_quad_points()`."""
  14429. return _mupdf.ll_pdf_annot_has_quad_points(annot)
  14430. def ll_pdf_annot_has_quadding(annot):
  14431. r"""Low-level wrapper for `::pdf_annot_has_quadding()`."""
  14432. return _mupdf.ll_pdf_annot_has_quadding(annot)
  14433. def ll_pdf_annot_has_rect(annot):
  14434. r"""Low-level wrapper for `::pdf_annot_has_rect()`."""
  14435. return _mupdf.ll_pdf_annot_has_rect(annot)
  14436. def ll_pdf_annot_has_rich_contents(annot):
  14437. r"""Low-level wrapper for `::pdf_annot_has_rich_contents()`."""
  14438. return _mupdf.ll_pdf_annot_has_rich_contents(annot)
  14439. def ll_pdf_annot_has_rich_defaults(annot):
  14440. r"""Low-level wrapper for `::pdf_annot_has_rich_defaults()`."""
  14441. return _mupdf.ll_pdf_annot_has_rich_defaults(annot)
  14442. def ll_pdf_annot_has_vertices(annot):
  14443. r"""Low-level wrapper for `::pdf_annot_has_vertices()`."""
  14444. return _mupdf.ll_pdf_annot_has_vertices(annot)
  14445. def ll_pdf_annot_hidden_for_editing(annot):
  14446. r"""Low-level wrapper for `::pdf_annot_hidden_for_editing()`."""
  14447. return _mupdf.ll_pdf_annot_hidden_for_editing(annot)
  14448. def ll_pdf_annot_hot(annot):
  14449. r"""Low-level wrapper for `::pdf_annot_hot()`."""
  14450. return _mupdf.ll_pdf_annot_hot(annot)
  14451. def ll_pdf_annot_icon_name(annot):
  14452. r"""Low-level wrapper for `::pdf_annot_icon_name()`."""
  14453. return _mupdf.ll_pdf_annot_icon_name(annot)
  14454. def ll_pdf_annot_ink_list_count(annot):
  14455. r"""Low-level wrapper for `::pdf_annot_ink_list_count()`."""
  14456. return _mupdf.ll_pdf_annot_ink_list_count(annot)
  14457. def ll_pdf_annot_ink_list_stroke_count(annot, i):
  14458. r"""Low-level wrapper for `::pdf_annot_ink_list_stroke_count()`."""
  14459. return _mupdf.ll_pdf_annot_ink_list_stroke_count(annot, i)
  14460. def ll_pdf_annot_ink_list_stroke_vertex(annot, i, k):
  14461. r"""Low-level wrapper for `::pdf_annot_ink_list_stroke_vertex()`."""
  14462. return _mupdf.ll_pdf_annot_ink_list_stroke_vertex(annot, i, k)
  14463. def ll_pdf_annot_intent(annot):
  14464. r"""Low-level wrapper for `::pdf_annot_intent()`."""
  14465. return _mupdf.ll_pdf_annot_intent(annot)
  14466. def ll_pdf_annot_interior_color(annot, n, color):
  14467. r"""
  14468. Low-level wrapper for `::pdf_annot_interior_color()`.
  14469. This function has out-params. Python/C# wrappers look like:
  14470. `ll_pdf_annot_interior_color(::pdf_annot *annot, float color[4])` => int n
  14471. """
  14472. return _mupdf.ll_pdf_annot_interior_color(annot, n, color)
  14473. def ll_pdf_annot_is_open(annot):
  14474. r"""Low-level wrapper for `::pdf_annot_is_open()`."""
  14475. return _mupdf.ll_pdf_annot_is_open(annot)
  14476. def ll_pdf_annot_is_standard_stamp(annot):
  14477. r"""Low-level wrapper for `::pdf_annot_is_standard_stamp()`."""
  14478. return _mupdf.ll_pdf_annot_is_standard_stamp(annot)
  14479. def ll_pdf_annot_language(annot):
  14480. r"""Low-level wrapper for `::pdf_annot_language()`."""
  14481. return _mupdf.ll_pdf_annot_language(annot)
  14482. def ll_pdf_annot_line(annot, a, b):
  14483. r"""Low-level wrapper for `::pdf_annot_line()`."""
  14484. return _mupdf.ll_pdf_annot_line(annot, a, b)
  14485. def ll_pdf_annot_line_caption(annot):
  14486. r"""Low-level wrapper for `::pdf_annot_line_caption()`."""
  14487. return _mupdf.ll_pdf_annot_line_caption(annot)
  14488. def ll_pdf_annot_line_caption_offset(annot):
  14489. r"""Low-level wrapper for `::pdf_annot_line_caption_offset()`."""
  14490. return _mupdf.ll_pdf_annot_line_caption_offset(annot)
  14491. def ll_pdf_annot_line_end_style(annot):
  14492. r"""Low-level wrapper for `::pdf_annot_line_end_style()`."""
  14493. return _mupdf.ll_pdf_annot_line_end_style(annot)
  14494. def ll_pdf_annot_line_ending_styles(annot, start_style, end_style):
  14495. r"""
  14496. Low-level wrapper for `::pdf_annot_line_ending_styles()`.
  14497. This function has out-params. Python/C# wrappers look like:
  14498. `ll_pdf_annot_line_ending_styles(::pdf_annot *annot)` => `(enum pdf_line_ending start_style, enum pdf_line_ending end_style)`
  14499. """
  14500. return _mupdf.ll_pdf_annot_line_ending_styles(annot, start_style, end_style)
  14501. def ll_pdf_annot_line_leader(annot):
  14502. r"""Low-level wrapper for `::pdf_annot_line_leader()`."""
  14503. return _mupdf.ll_pdf_annot_line_leader(annot)
  14504. def ll_pdf_annot_line_leader_extension(annot):
  14505. r"""Low-level wrapper for `::pdf_annot_line_leader_extension()`."""
  14506. return _mupdf.ll_pdf_annot_line_leader_extension(annot)
  14507. def ll_pdf_annot_line_leader_offset(annot):
  14508. r"""Low-level wrapper for `::pdf_annot_line_leader_offset()`."""
  14509. return _mupdf.ll_pdf_annot_line_leader_offset(annot)
  14510. def ll_pdf_annot_line_start_style(annot):
  14511. r"""Low-level wrapper for `::pdf_annot_line_start_style()`."""
  14512. return _mupdf.ll_pdf_annot_line_start_style(annot)
  14513. def ll_pdf_annot_modification_date(annot):
  14514. r"""Low-level wrapper for `::pdf_annot_modification_date()`."""
  14515. return _mupdf.ll_pdf_annot_modification_date(annot)
  14516. def ll_pdf_annot_needs_resynthesis(annot):
  14517. r"""Low-level wrapper for `::pdf_annot_needs_resynthesis()`."""
  14518. return _mupdf.ll_pdf_annot_needs_resynthesis(annot)
  14519. def ll_pdf_annot_obj(annot):
  14520. r"""Low-level wrapper for `::pdf_annot_obj()`."""
  14521. return _mupdf.ll_pdf_annot_obj(annot)
  14522. def ll_pdf_annot_opacity(annot):
  14523. r"""Low-level wrapper for `::pdf_annot_opacity()`."""
  14524. return _mupdf.ll_pdf_annot_opacity(annot)
  14525. def ll_pdf_annot_page(annot):
  14526. r"""Low-level wrapper for `::pdf_annot_page()`."""
  14527. return _mupdf.ll_pdf_annot_page(annot)
  14528. def ll_pdf_annot_pop_and_discard_local_xref(annot):
  14529. r"""Low-level wrapper for `::pdf_annot_pop_and_discard_local_xref()`."""
  14530. return _mupdf.ll_pdf_annot_pop_and_discard_local_xref(annot)
  14531. def ll_pdf_annot_pop_local_xref(annot):
  14532. r"""Low-level wrapper for `::pdf_annot_pop_local_xref()`."""
  14533. return _mupdf.ll_pdf_annot_pop_local_xref(annot)
  14534. def ll_pdf_annot_popup(annot):
  14535. r"""Low-level wrapper for `::pdf_annot_popup()`."""
  14536. return _mupdf.ll_pdf_annot_popup(annot)
  14537. def ll_pdf_annot_push_local_xref(annot):
  14538. r"""Low-level wrapper for `::pdf_annot_push_local_xref()`."""
  14539. return _mupdf.ll_pdf_annot_push_local_xref(annot)
  14540. def ll_pdf_annot_quad_point(annot, i):
  14541. r"""Low-level wrapper for `::pdf_annot_quad_point()`."""
  14542. return _mupdf.ll_pdf_annot_quad_point(annot, i)
  14543. def ll_pdf_annot_quad_point_count(annot):
  14544. r"""Low-level wrapper for `::pdf_annot_quad_point_count()`."""
  14545. return _mupdf.ll_pdf_annot_quad_point_count(annot)
  14546. def ll_pdf_annot_quadding(annot):
  14547. r"""Low-level wrapper for `::pdf_annot_quadding()`."""
  14548. return _mupdf.ll_pdf_annot_quadding(annot)
  14549. def ll_pdf_annot_rect(annot):
  14550. r"""Low-level wrapper for `::pdf_annot_rect()`."""
  14551. return _mupdf.ll_pdf_annot_rect(annot)
  14552. def ll_pdf_annot_request_resynthesis(annot):
  14553. r"""Low-level wrapper for `::pdf_annot_request_resynthesis()`."""
  14554. return _mupdf.ll_pdf_annot_request_resynthesis(annot)
  14555. def ll_pdf_annot_request_synthesis(annot):
  14556. r"""Low-level wrapper for `::pdf_annot_request_synthesis()`."""
  14557. return _mupdf.ll_pdf_annot_request_synthesis(annot)
  14558. def ll_pdf_annot_rich_contents(annot):
  14559. r"""Low-level wrapper for `::pdf_annot_rich_contents()`."""
  14560. return _mupdf.ll_pdf_annot_rich_contents(annot)
  14561. def ll_pdf_annot_rich_defaults(annot):
  14562. r"""Low-level wrapper for `::pdf_annot_rich_defaults()`."""
  14563. return _mupdf.ll_pdf_annot_rich_defaults(annot)
  14564. def ll_pdf_annot_stamp_image_obj(annot):
  14565. r"""Low-level wrapper for `::pdf_annot_stamp_image_obj()`."""
  14566. return _mupdf.ll_pdf_annot_stamp_image_obj(annot)
  14567. def ll_pdf_annot_transform(annot):
  14568. r"""Low-level wrapper for `::pdf_annot_transform()`."""
  14569. return _mupdf.ll_pdf_annot_transform(annot)
  14570. def ll_pdf_annot_type(annot):
  14571. r"""Low-level wrapper for `::pdf_annot_type()`."""
  14572. return _mupdf.ll_pdf_annot_type(annot)
  14573. def ll_pdf_annot_type_from_string(subtype):
  14574. r"""Low-level wrapper for `::pdf_annot_type_from_string()`."""
  14575. return _mupdf.ll_pdf_annot_type_from_string(subtype)
  14576. def ll_pdf_annot_vertex(annot, i):
  14577. r"""Low-level wrapper for `::pdf_annot_vertex()`."""
  14578. return _mupdf.ll_pdf_annot_vertex(annot, i)
  14579. def ll_pdf_annot_vertex_count(annot):
  14580. r"""Low-level wrapper for `::pdf_annot_vertex_count()`."""
  14581. return _mupdf.ll_pdf_annot_vertex_count(annot)
  14582. def ll_pdf_append_explicit_dest_to_uri(url, dest):
  14583. r"""Low-level wrapper for `::pdf_append_explicit_dest_to_uri()`."""
  14584. return _mupdf.ll_pdf_append_explicit_dest_to_uri(url, dest)
  14585. def ll_pdf_append_named_dest_to_uri(url, name):
  14586. r"""Low-level wrapper for `::pdf_append_named_dest_to_uri()`."""
  14587. return _mupdf.ll_pdf_append_named_dest_to_uri(url, name)
  14588. def ll_pdf_append_token(buf, tok, lex):
  14589. r"""Low-level wrapper for `::pdf_append_token()`."""
  14590. return _mupdf.ll_pdf_append_token(buf, tok, lex)
  14591. def ll_pdf_apply_redaction(annot, opts):
  14592. r"""Low-level wrapper for `::pdf_apply_redaction()`."""
  14593. return _mupdf.ll_pdf_apply_redaction(annot, opts)
  14594. def ll_pdf_array_contains(array, obj):
  14595. r"""Low-level wrapper for `::pdf_array_contains()`."""
  14596. return _mupdf.ll_pdf_array_contains(array, obj)
  14597. def ll_pdf_array_delete(array, index):
  14598. r"""Low-level wrapper for `::pdf_array_delete()`."""
  14599. return _mupdf.ll_pdf_array_delete(array, index)
  14600. def ll_pdf_array_find(array, obj):
  14601. r"""Low-level wrapper for `::pdf_array_find()`."""
  14602. return _mupdf.ll_pdf_array_find(array, obj)
  14603. def ll_pdf_array_get(array, i):
  14604. r"""Low-level wrapper for `::pdf_array_get()`."""
  14605. return _mupdf.ll_pdf_array_get(array, i)
  14606. def ll_pdf_array_get_bool(array, index):
  14607. r"""Low-level wrapper for `::pdf_array_get_bool()`."""
  14608. return _mupdf.ll_pdf_array_get_bool(array, index)
  14609. def ll_pdf_array_get_int(array, index):
  14610. r"""Low-level wrapper for `::pdf_array_get_int()`."""
  14611. return _mupdf.ll_pdf_array_get_int(array, index)
  14612. def ll_pdf_array_get_matrix(array, index):
  14613. r"""Low-level wrapper for `::pdf_array_get_matrix()`."""
  14614. return _mupdf.ll_pdf_array_get_matrix(array, index)
  14615. def ll_pdf_array_get_name(array, index):
  14616. r"""Low-level wrapper for `::pdf_array_get_name()`."""
  14617. return _mupdf.ll_pdf_array_get_name(array, index)
  14618. def ll_pdf_array_get_real(array, index):
  14619. r"""Low-level wrapper for `::pdf_array_get_real()`."""
  14620. return _mupdf.ll_pdf_array_get_real(array, index)
  14621. def ll_pdf_array_get_rect(array, index):
  14622. r"""Low-level wrapper for `::pdf_array_get_rect()`."""
  14623. return _mupdf.ll_pdf_array_get_rect(array, index)
  14624. def ll_pdf_array_get_string(array, index, sizep):
  14625. r"""
  14626. Low-level wrapper for `::pdf_array_get_string()`.
  14627. This function has out-params. Python/C# wrappers look like:
  14628. `ll_pdf_array_get_string(::pdf_obj *array, int index)` => `(const char *, size_t sizep)`
  14629. """
  14630. return _mupdf.ll_pdf_array_get_string(array, index, sizep)
  14631. def ll_pdf_array_get_text_string(array, index):
  14632. r"""Low-level wrapper for `::pdf_array_get_text_string()`."""
  14633. return _mupdf.ll_pdf_array_get_text_string(array, index)
  14634. def ll_pdf_array_insert(array, obj, index):
  14635. r"""Low-level wrapper for `::pdf_array_insert()`."""
  14636. return _mupdf.ll_pdf_array_insert(array, obj, index)
  14637. def ll_pdf_array_insert_drop(array, obj, index):
  14638. r"""Low-level wrapper for `::pdf_array_insert_drop()`."""
  14639. return _mupdf.ll_pdf_array_insert_drop(array, obj, index)
  14640. def ll_pdf_array_len(array):
  14641. r"""Low-level wrapper for `::pdf_array_len()`."""
  14642. return _mupdf.ll_pdf_array_len(array)
  14643. def ll_pdf_array_push(array, obj):
  14644. r"""Low-level wrapper for `::pdf_array_push()`."""
  14645. return _mupdf.ll_pdf_array_push(array, obj)
  14646. def ll_pdf_array_push_array(array, initial):
  14647. r"""Low-level wrapper for `::pdf_array_push_array()`."""
  14648. return _mupdf.ll_pdf_array_push_array(array, initial)
  14649. def ll_pdf_array_push_bool(array, x):
  14650. r"""Low-level wrapper for `::pdf_array_push_bool()`."""
  14651. return _mupdf.ll_pdf_array_push_bool(array, x)
  14652. def ll_pdf_array_push_dict(array, initial):
  14653. r"""Low-level wrapper for `::pdf_array_push_dict()`."""
  14654. return _mupdf.ll_pdf_array_push_dict(array, initial)
  14655. def ll_pdf_array_push_drop(array, obj):
  14656. r"""Low-level wrapper for `::pdf_array_push_drop()`."""
  14657. return _mupdf.ll_pdf_array_push_drop(array, obj)
  14658. def ll_pdf_array_push_int(array, x):
  14659. r"""Low-level wrapper for `::pdf_array_push_int()`."""
  14660. return _mupdf.ll_pdf_array_push_int(array, x)
  14661. def ll_pdf_array_push_name(array, x):
  14662. r"""Low-level wrapper for `::pdf_array_push_name()`."""
  14663. return _mupdf.ll_pdf_array_push_name(array, x)
  14664. def ll_pdf_array_push_real(array, x):
  14665. r"""Low-level wrapper for `::pdf_array_push_real()`."""
  14666. return _mupdf.ll_pdf_array_push_real(array, x)
  14667. def ll_pdf_array_push_string(array, x, n):
  14668. r"""Low-level wrapper for `::pdf_array_push_string()`."""
  14669. return _mupdf.ll_pdf_array_push_string(array, x, n)
  14670. def ll_pdf_array_push_text_string(array, x):
  14671. r"""Low-level wrapper for `::pdf_array_push_text_string()`."""
  14672. return _mupdf.ll_pdf_array_push_text_string(array, x)
  14673. def ll_pdf_array_put(array, i, obj):
  14674. r"""Low-level wrapper for `::pdf_array_put()`."""
  14675. return _mupdf.ll_pdf_array_put(array, i, obj)
  14676. def ll_pdf_array_put_array(array, i, initial):
  14677. r"""Low-level wrapper for `::pdf_array_put_array()`."""
  14678. return _mupdf.ll_pdf_array_put_array(array, i, initial)
  14679. def ll_pdf_array_put_bool(array, i, x):
  14680. r"""Low-level wrapper for `::pdf_array_put_bool()`."""
  14681. return _mupdf.ll_pdf_array_put_bool(array, i, x)
  14682. def ll_pdf_array_put_dict(array, i, initial):
  14683. r"""Low-level wrapper for `::pdf_array_put_dict()`."""
  14684. return _mupdf.ll_pdf_array_put_dict(array, i, initial)
  14685. def ll_pdf_array_put_drop(array, i, obj):
  14686. r"""Low-level wrapper for `::pdf_array_put_drop()`."""
  14687. return _mupdf.ll_pdf_array_put_drop(array, i, obj)
  14688. def ll_pdf_array_put_int(array, i, x):
  14689. r"""Low-level wrapper for `::pdf_array_put_int()`."""
  14690. return _mupdf.ll_pdf_array_put_int(array, i, x)
  14691. def ll_pdf_array_put_name(array, i, x):
  14692. r"""Low-level wrapper for `::pdf_array_put_name()`."""
  14693. return _mupdf.ll_pdf_array_put_name(array, i, x)
  14694. def ll_pdf_array_put_real(array, i, x):
  14695. r"""Low-level wrapper for `::pdf_array_put_real()`."""
  14696. return _mupdf.ll_pdf_array_put_real(array, i, x)
  14697. def ll_pdf_array_put_string(array, i, x, n):
  14698. r"""Low-level wrapper for `::pdf_array_put_string()`."""
  14699. return _mupdf.ll_pdf_array_put_string(array, i, x, n)
  14700. def ll_pdf_array_put_text_string(array, i, x):
  14701. r"""Low-level wrapper for `::pdf_array_put_text_string()`."""
  14702. return _mupdf.ll_pdf_array_put_text_string(array, i, x)
  14703. def ll_pdf_authenticate_password(doc, pw):
  14704. r"""Low-level wrapper for `::pdf_authenticate_password()`."""
  14705. return _mupdf.ll_pdf_authenticate_password(doc, pw)
  14706. def ll_pdf_bake_document(doc, bake_annots, bake_widgets):
  14707. r"""Low-level wrapper for `::pdf_bake_document()`."""
  14708. return _mupdf.ll_pdf_bake_document(doc, bake_annots, bake_widgets)
  14709. def ll_pdf_begin_implicit_operation(doc):
  14710. r"""Low-level wrapper for `::pdf_begin_implicit_operation()`."""
  14711. return _mupdf.ll_pdf_begin_implicit_operation(doc)
  14712. def ll_pdf_begin_operation(doc, operation):
  14713. r"""Low-level wrapper for `::pdf_begin_operation()`."""
  14714. return _mupdf.ll_pdf_begin_operation(doc, operation)
  14715. def ll_pdf_bound_annot(annot):
  14716. r"""Low-level wrapper for `::pdf_bound_annot()`."""
  14717. return _mupdf.ll_pdf_bound_annot(annot)
  14718. def ll_pdf_bound_page(page, box):
  14719. r"""Low-level wrapper for `::pdf_bound_page()`."""
  14720. return _mupdf.ll_pdf_bound_page(page, box)
  14721. def ll_pdf_bound_widget(widget):
  14722. r"""Low-level wrapper for `::pdf_bound_widget()`."""
  14723. return _mupdf.ll_pdf_bound_widget(widget)
  14724. def ll_pdf_button_field_on_state(field):
  14725. r"""Low-level wrapper for `::pdf_button_field_on_state()`."""
  14726. return _mupdf.ll_pdf_button_field_on_state(field)
  14727. def ll_pdf_cache_object(doc, num):
  14728. r"""
  14729. Low-level wrapper for `::pdf_cache_object()`.
  14730. Retrieve the pdf_xref_entry for a given object.
  14731. This can cause xref reorganisations (solidifications etc) due to
  14732. repairs, so all held pdf_xref_entries should be considered
  14733. invalid after this call (other than the returned one).
  14734. """
  14735. return _mupdf.ll_pdf_cache_object(doc, num)
  14736. def ll_pdf_calculate_form(doc):
  14737. r"""Low-level wrapper for `::pdf_calculate_form()`."""
  14738. return _mupdf.ll_pdf_calculate_form(doc)
  14739. def ll_pdf_can_be_saved_incrementally(doc):
  14740. r"""Low-level wrapper for `::pdf_can_be_saved_incrementally()`."""
  14741. return _mupdf.ll_pdf_can_be_saved_incrementally(doc)
  14742. def ll_pdf_can_redo(doc):
  14743. r"""Low-level wrapper for `::pdf_can_redo()`."""
  14744. return _mupdf.ll_pdf_can_redo(doc)
  14745. def ll_pdf_can_undo(doc):
  14746. r"""Low-level wrapper for `::pdf_can_undo()`."""
  14747. return _mupdf.ll_pdf_can_undo(doc)
  14748. def ll_pdf_check_certificate(verifier, doc, signature):
  14749. r"""Low-level wrapper for `::pdf_check_certificate()`."""
  14750. return _mupdf.ll_pdf_check_certificate(verifier, doc, signature)
  14751. def ll_pdf_check_digest(verifier, doc, signature):
  14752. r"""Low-level wrapper for `::pdf_check_digest()`."""
  14753. return _mupdf.ll_pdf_check_digest(verifier, doc, signature)
  14754. def ll_pdf_check_widget_certificate(verifier, widget):
  14755. r"""Low-level wrapper for `::pdf_check_widget_certificate()`."""
  14756. return _mupdf.ll_pdf_check_widget_certificate(verifier, widget)
  14757. def ll_pdf_check_widget_digest(verifier, widget):
  14758. r"""Low-level wrapper for `::pdf_check_widget_digest()`."""
  14759. return _mupdf.ll_pdf_check_widget_digest(verifier, widget)
  14760. def ll_pdf_choice_field_option(field, exportval, i):
  14761. r"""Low-level wrapper for `::pdf_choice_field_option()`."""
  14762. return _mupdf.ll_pdf_choice_field_option(field, exportval, i)
  14763. def ll_pdf_choice_field_option_count(field):
  14764. r"""Low-level wrapper for `::pdf_choice_field_option_count()`."""
  14765. return _mupdf.ll_pdf_choice_field_option_count(field)
  14766. def ll_pdf_choice_widget_is_multiselect(tw):
  14767. r"""Low-level wrapper for `::pdf_choice_widget_is_multiselect()`."""
  14768. return _mupdf.ll_pdf_choice_widget_is_multiselect(tw)
  14769. def ll_pdf_choice_widget_options(tw, exportval, opts):
  14770. r"""Low-level wrapper for `::pdf_choice_widget_options()`."""
  14771. return _mupdf.ll_pdf_choice_widget_options(tw, exportval, opts)
  14772. def ll_pdf_choice_widget_options2(tw, exportval):
  14773. r"""
  14774. Low-level wrapper for `::pdf_choice_widget_options2()`. Swig-friendly wrapper for pdf_choice_widget_options(), returns the
  14775. options directly in a vector.
  14776. """
  14777. return _mupdf.ll_pdf_choice_widget_options2(tw, exportval)
  14778. def ll_pdf_choice_widget_set_value(tw, n, opts):
  14779. r"""Low-level wrapper for `::pdf_choice_widget_set_value()`."""
  14780. return _mupdf.ll_pdf_choice_widget_set_value(tw, n, opts)
  14781. def ll_pdf_choice_widget_value(tw, opts):
  14782. r"""Low-level wrapper for `::pdf_choice_widget_value()`."""
  14783. return _mupdf.ll_pdf_choice_widget_value(tw, opts)
  14784. def ll_pdf_clean_file(infile, outfile, password, opts, retainlen):
  14785. r"""Low-level wrapper for `::pdf_clean_file()`."""
  14786. return _mupdf.ll_pdf_clean_file(infile, outfile, password, opts, retainlen)
  14787. def ll_pdf_clean_font_name(fontname):
  14788. r"""Low-level wrapper for `::pdf_clean_font_name()`."""
  14789. return _mupdf.ll_pdf_clean_font_name(fontname)
  14790. def ll_pdf_clean_obj(obj):
  14791. r"""Low-level wrapper for `::pdf_clean_obj()`."""
  14792. return _mupdf.ll_pdf_clean_obj(obj)
  14793. def ll_pdf_clear_annot_border_dash(annot):
  14794. r"""Low-level wrapper for `::pdf_clear_annot_border_dash()`."""
  14795. return _mupdf.ll_pdf_clear_annot_border_dash(annot)
  14796. def ll_pdf_clear_annot_ink_list(annot):
  14797. r"""Low-level wrapper for `::pdf_clear_annot_ink_list()`."""
  14798. return _mupdf.ll_pdf_clear_annot_ink_list(annot)
  14799. def ll_pdf_clear_annot_quad_points(annot):
  14800. r"""Low-level wrapper for `::pdf_clear_annot_quad_points()`."""
  14801. return _mupdf.ll_pdf_clear_annot_quad_points(annot)
  14802. def ll_pdf_clear_annot_vertices(annot):
  14803. r"""Low-level wrapper for `::pdf_clear_annot_vertices()`."""
  14804. return _mupdf.ll_pdf_clear_annot_vertices(annot)
  14805. def ll_pdf_clear_signature(widget):
  14806. r"""Low-level wrapper for `::pdf_clear_signature()`."""
  14807. return _mupdf.ll_pdf_clear_signature(widget)
  14808. def ll_pdf_clear_xref(doc):
  14809. r"""Low-level wrapper for `::pdf_clear_xref()`."""
  14810. return _mupdf.ll_pdf_clear_xref(doc)
  14811. def ll_pdf_clear_xref_to_mark(doc):
  14812. r"""Low-level wrapper for `::pdf_clear_xref_to_mark()`."""
  14813. return _mupdf.ll_pdf_clear_xref_to_mark(doc)
  14814. def ll_pdf_clip_page(page, clip):
  14815. r"""Low-level wrapper for `::pdf_clip_page()`."""
  14816. return _mupdf.ll_pdf_clip_page(page, clip)
  14817. def ll_pdf_close_processor(proc):
  14818. r"""Low-level wrapper for `::pdf_close_processor()`."""
  14819. return _mupdf.ll_pdf_close_processor(proc)
  14820. def ll_pdf_cmap_size(cmap):
  14821. r"""Low-level wrapper for `::pdf_cmap_size()`."""
  14822. return _mupdf.ll_pdf_cmap_size(cmap)
  14823. def ll_pdf_cmap_wmode(cmap):
  14824. r"""Low-level wrapper for `::pdf_cmap_wmode()`."""
  14825. return _mupdf.ll_pdf_cmap_wmode(cmap)
  14826. def ll_pdf_copy_array(array):
  14827. r"""Low-level wrapper for `::pdf_copy_array()`."""
  14828. return _mupdf.ll_pdf_copy_array(array)
  14829. def ll_pdf_copy_dict(dict):
  14830. r"""Low-level wrapper for `::pdf_copy_dict()`."""
  14831. return _mupdf.ll_pdf_copy_dict(dict)
  14832. def ll_pdf_count_document_associated_files(doc):
  14833. r"""Low-level wrapper for `::pdf_count_document_associated_files()`."""
  14834. return _mupdf.ll_pdf_count_document_associated_files(doc)
  14835. def ll_pdf_count_layer_config_ui(doc):
  14836. r"""Low-level wrapper for `::pdf_count_layer_config_ui()`."""
  14837. return _mupdf.ll_pdf_count_layer_config_ui(doc)
  14838. def ll_pdf_count_layer_configs(doc):
  14839. r"""Low-level wrapper for `::pdf_count_layer_configs()`."""
  14840. return _mupdf.ll_pdf_count_layer_configs(doc)
  14841. def ll_pdf_count_layers(doc):
  14842. r"""Low-level wrapper for `::pdf_count_layers()`."""
  14843. return _mupdf.ll_pdf_count_layers(doc)
  14844. def ll_pdf_count_objects(doc):
  14845. r"""Low-level wrapper for `::pdf_count_objects()`."""
  14846. return _mupdf.ll_pdf_count_objects(doc)
  14847. def ll_pdf_count_page_associated_files(page):
  14848. r"""Low-level wrapper for `::pdf_count_page_associated_files()`."""
  14849. return _mupdf.ll_pdf_count_page_associated_files(page)
  14850. def ll_pdf_count_pages(doc):
  14851. r"""Low-level wrapper for `::pdf_count_pages()`."""
  14852. return _mupdf.ll_pdf_count_pages(doc)
  14853. def ll_pdf_count_pages_imp(doc, chapter):
  14854. r"""Low-level wrapper for `::pdf_count_pages_imp()`."""
  14855. return _mupdf.ll_pdf_count_pages_imp(doc, chapter)
  14856. def ll_pdf_count_q_balance(doc, res, stm, prepend, append):
  14857. r"""
  14858. Low-level wrapper for `::pdf_count_q_balance()`.
  14859. This function has out-params. Python/C# wrappers look like:
  14860. `ll_pdf_count_q_balance(::pdf_document *doc, ::pdf_obj *res, ::pdf_obj *stm)` => `(int prepend, int append)`
  14861. """
  14862. return _mupdf.ll_pdf_count_q_balance(doc, res, stm, prepend, append)
  14863. def ll_pdf_count_signatures(doc):
  14864. r"""Low-level wrapper for `::pdf_count_signatures()`."""
  14865. return _mupdf.ll_pdf_count_signatures(doc)
  14866. def ll_pdf_count_unsaved_versions(doc):
  14867. r"""Low-level wrapper for `::pdf_count_unsaved_versions()`."""
  14868. return _mupdf.ll_pdf_count_unsaved_versions(doc)
  14869. def ll_pdf_count_versions(doc):
  14870. r"""Low-level wrapper for `::pdf_count_versions()`."""
  14871. return _mupdf.ll_pdf_count_versions(doc)
  14872. def ll_pdf_create_annot(page, type):
  14873. r"""Low-level wrapper for `::pdf_create_annot()`."""
  14874. return _mupdf.ll_pdf_create_annot(page, type)
  14875. def ll_pdf_create_annot_raw(page, type):
  14876. r"""Low-level wrapper for `::pdf_create_annot_raw()`."""
  14877. return _mupdf.ll_pdf_create_annot_raw(page, type)
  14878. def ll_pdf_create_document():
  14879. r"""Low-level wrapper for `::pdf_create_document()`."""
  14880. return _mupdf.ll_pdf_create_document()
  14881. def ll_pdf_create_field_name(doc, prefix, buf, len):
  14882. r"""Low-level wrapper for `::pdf_create_field_name()`."""
  14883. return _mupdf.ll_pdf_create_field_name(doc, prefix, buf, len)
  14884. def ll_pdf_create_link(page, bbox, uri):
  14885. r"""Low-level wrapper for `::pdf_create_link()`."""
  14886. return _mupdf.ll_pdf_create_link(page, bbox, uri)
  14887. def ll_pdf_create_object(doc):
  14888. r"""Low-level wrapper for `::pdf_create_object()`."""
  14889. return _mupdf.ll_pdf_create_object(doc)
  14890. def ll_pdf_create_signature_widget(page, name):
  14891. r"""Low-level wrapper for `::pdf_create_signature_widget()`."""
  14892. return _mupdf.ll_pdf_create_signature_widget(page, name)
  14893. def ll_pdf_crypt_encrypt_metadata(crypt):
  14894. r"""Low-level wrapper for `::pdf_crypt_encrypt_metadata()`."""
  14895. return _mupdf.ll_pdf_crypt_encrypt_metadata(crypt)
  14896. def ll_pdf_crypt_key(crypt):
  14897. r"""Low-level wrapper for `::pdf_crypt_key()`."""
  14898. return _mupdf.ll_pdf_crypt_key(crypt)
  14899. def ll_pdf_crypt_length(crypt):
  14900. r"""Low-level wrapper for `::pdf_crypt_length()`."""
  14901. return _mupdf.ll_pdf_crypt_length(crypt)
  14902. def ll_pdf_crypt_method(crypt):
  14903. r"""Low-level wrapper for `::pdf_crypt_method()`."""
  14904. return _mupdf.ll_pdf_crypt_method(crypt)
  14905. def ll_pdf_crypt_obj(crypt, obj, num, gen):
  14906. r"""Low-level wrapper for `::pdf_crypt_obj()`."""
  14907. return _mupdf.ll_pdf_crypt_obj(crypt, obj, num, gen)
  14908. def ll_pdf_crypt_owner_encryption(crypt):
  14909. r"""Low-level wrapper for `::pdf_crypt_owner_encryption()`."""
  14910. return _mupdf.ll_pdf_crypt_owner_encryption(crypt)
  14911. def ll_pdf_crypt_owner_password(crypt):
  14912. r"""Low-level wrapper for `::pdf_crypt_owner_password()`."""
  14913. return _mupdf.ll_pdf_crypt_owner_password(crypt)
  14914. def ll_pdf_crypt_permissions(crypt):
  14915. r"""Low-level wrapper for `::pdf_crypt_permissions()`."""
  14916. return _mupdf.ll_pdf_crypt_permissions(crypt)
  14917. def ll_pdf_crypt_permissions_encryption(crypt):
  14918. r"""Low-level wrapper for `::pdf_crypt_permissions_encryption()`."""
  14919. return _mupdf.ll_pdf_crypt_permissions_encryption(crypt)
  14920. def ll_pdf_crypt_revision(crypt):
  14921. r"""Low-level wrapper for `::pdf_crypt_revision()`."""
  14922. return _mupdf.ll_pdf_crypt_revision(crypt)
  14923. def ll_pdf_crypt_stream_method(crypt):
  14924. r"""Low-level wrapper for `::pdf_crypt_stream_method()`."""
  14925. return _mupdf.ll_pdf_crypt_stream_method(crypt)
  14926. def ll_pdf_crypt_string_method(crypt):
  14927. r"""Low-level wrapper for `::pdf_crypt_string_method()`."""
  14928. return _mupdf.ll_pdf_crypt_string_method(crypt)
  14929. def ll_pdf_crypt_user_encryption(crypt):
  14930. r"""Low-level wrapper for `::pdf_crypt_user_encryption()`."""
  14931. return _mupdf.ll_pdf_crypt_user_encryption(crypt)
  14932. def ll_pdf_crypt_user_password(crypt):
  14933. r"""Low-level wrapper for `::pdf_crypt_user_password()`."""
  14934. return _mupdf.ll_pdf_crypt_user_password(crypt)
  14935. def ll_pdf_crypt_version(crypt):
  14936. r"""Low-level wrapper for `::pdf_crypt_version()`."""
  14937. return _mupdf.ll_pdf_crypt_version(crypt)
  14938. def ll_pdf_cycle(here, prev, obj):
  14939. r"""Low-level wrapper for `::pdf_cycle()`."""
  14940. return _mupdf.ll_pdf_cycle(here, prev, obj)
  14941. def ll_pdf_debug_doc_changes(doc):
  14942. r"""Low-level wrapper for `::pdf_debug_doc_changes()`."""
  14943. return _mupdf.ll_pdf_debug_doc_changes(doc)
  14944. def ll_pdf_debug_obj(obj):
  14945. r"""Low-level wrapper for `::pdf_debug_obj()`."""
  14946. return _mupdf.ll_pdf_debug_obj(obj)
  14947. def ll_pdf_debug_ref(obj):
  14948. r"""Low-level wrapper for `::pdf_debug_ref()`."""
  14949. return _mupdf.ll_pdf_debug_ref(obj)
  14950. def ll_pdf_decode_cmap(cmap, s, e, cpt):
  14951. r"""
  14952. Low-level wrapper for `::pdf_decode_cmap()`.
  14953. This function has out-params. Python/C# wrappers look like:
  14954. `ll_pdf_decode_cmap(::pdf_cmap *cmap, unsigned char *s, unsigned char *e)` => `(int, unsigned int cpt)`
  14955. """
  14956. return _mupdf.ll_pdf_decode_cmap(cmap, s, e, cpt)
  14957. def ll_pdf_deep_copy_obj(obj):
  14958. r"""Low-level wrapper for `::pdf_deep_copy_obj()`."""
  14959. return _mupdf.ll_pdf_deep_copy_obj(obj)
  14960. def ll_pdf_delete_annot(page, annot):
  14961. r"""Low-level wrapper for `::pdf_delete_annot()`."""
  14962. return _mupdf.ll_pdf_delete_annot(page, annot)
  14963. def ll_pdf_delete_link(page, link):
  14964. r"""Low-level wrapper for `::pdf_delete_link()`."""
  14965. return _mupdf.ll_pdf_delete_link(page, link)
  14966. def ll_pdf_delete_object(doc, num):
  14967. r"""Low-level wrapper for `::pdf_delete_object()`."""
  14968. return _mupdf.ll_pdf_delete_object(doc, num)
  14969. def ll_pdf_delete_page(doc, number):
  14970. r"""Low-level wrapper for `::pdf_delete_page()`."""
  14971. return _mupdf.ll_pdf_delete_page(doc, number)
  14972. def ll_pdf_delete_page_labels(doc, index):
  14973. r"""Low-level wrapper for `::pdf_delete_page_labels()`."""
  14974. return _mupdf.ll_pdf_delete_page_labels(doc, index)
  14975. def ll_pdf_delete_page_range(doc, start, end):
  14976. r"""Low-level wrapper for `::pdf_delete_page_range()`."""
  14977. return _mupdf.ll_pdf_delete_page_range(doc, start, end)
  14978. def ll_pdf_deselect_layer_config_ui(doc, ui):
  14979. r"""Low-level wrapper for `::pdf_deselect_layer_config_ui()`."""
  14980. return _mupdf.ll_pdf_deselect_layer_config_ui(doc, ui)
  14981. def ll_pdf_deserialise_journal(doc, stm):
  14982. r"""Low-level wrapper for `::pdf_deserialise_journal()`."""
  14983. return _mupdf.ll_pdf_deserialise_journal(doc, stm)
  14984. def ll_pdf_dict_del(dict, key):
  14985. r"""Low-level wrapper for `::pdf_dict_del()`."""
  14986. return _mupdf.ll_pdf_dict_del(dict, key)
  14987. def ll_pdf_dict_dels(dict, key):
  14988. r"""Low-level wrapper for `::pdf_dict_dels()`."""
  14989. return _mupdf.ll_pdf_dict_dels(dict, key)
  14990. def ll_pdf_dict_get(dict, key):
  14991. r"""Low-level wrapper for `::pdf_dict_get()`."""
  14992. return _mupdf.ll_pdf_dict_get(dict, key)
  14993. def ll_pdf_dict_get_bool(dict, key):
  14994. r"""Low-level wrapper for `::pdf_dict_get_bool()`."""
  14995. return _mupdf.ll_pdf_dict_get_bool(dict, key)
  14996. def ll_pdf_dict_get_bool_default(dict, key, _def):
  14997. r"""Low-level wrapper for `::pdf_dict_get_bool_default()`."""
  14998. return _mupdf.ll_pdf_dict_get_bool_default(dict, key, _def)
  14999. def ll_pdf_dict_get_date(dict, key):
  15000. r"""Low-level wrapper for `::pdf_dict_get_date()`."""
  15001. return _mupdf.ll_pdf_dict_get_date(dict, key)
  15002. def ll_pdf_dict_get_inheritable(dict, key):
  15003. r"""Low-level wrapper for `::pdf_dict_get_inheritable()`."""
  15004. return _mupdf.ll_pdf_dict_get_inheritable(dict, key)
  15005. def ll_pdf_dict_get_inheritable_bool(dict, key):
  15006. r"""Low-level wrapper for `::pdf_dict_get_inheritable_bool()`."""
  15007. return _mupdf.ll_pdf_dict_get_inheritable_bool(dict, key)
  15008. def ll_pdf_dict_get_inheritable_date(dict, key):
  15009. r"""Low-level wrapper for `::pdf_dict_get_inheritable_date()`."""
  15010. return _mupdf.ll_pdf_dict_get_inheritable_date(dict, key)
  15011. def ll_pdf_dict_get_inheritable_int(dict, key):
  15012. r"""Low-level wrapper for `::pdf_dict_get_inheritable_int()`."""
  15013. return _mupdf.ll_pdf_dict_get_inheritable_int(dict, key)
  15014. def ll_pdf_dict_get_inheritable_int64(dict, key):
  15015. r"""Low-level wrapper for `::pdf_dict_get_inheritable_int64()`."""
  15016. return _mupdf.ll_pdf_dict_get_inheritable_int64(dict, key)
  15017. def ll_pdf_dict_get_inheritable_matrix(dict, key):
  15018. r"""Low-level wrapper for `::pdf_dict_get_inheritable_matrix()`."""
  15019. return _mupdf.ll_pdf_dict_get_inheritable_matrix(dict, key)
  15020. def ll_pdf_dict_get_inheritable_name(dict, key):
  15021. r"""Low-level wrapper for `::pdf_dict_get_inheritable_name()`."""
  15022. return _mupdf.ll_pdf_dict_get_inheritable_name(dict, key)
  15023. def ll_pdf_dict_get_inheritable_real(dict, key):
  15024. r"""Low-level wrapper for `::pdf_dict_get_inheritable_real()`."""
  15025. return _mupdf.ll_pdf_dict_get_inheritable_real(dict, key)
  15026. def ll_pdf_dict_get_inheritable_rect(dict, key):
  15027. r"""Low-level wrapper for `::pdf_dict_get_inheritable_rect()`."""
  15028. return _mupdf.ll_pdf_dict_get_inheritable_rect(dict, key)
  15029. def ll_pdf_dict_get_inheritable_string(dict, key, sizep):
  15030. r"""
  15031. Low-level wrapper for `::pdf_dict_get_inheritable_string()`.
  15032. This function has out-params. Python/C# wrappers look like:
  15033. `ll_pdf_dict_get_inheritable_string(::pdf_obj *dict, ::pdf_obj *key)` => `(const char *, size_t sizep)`
  15034. """
  15035. return _mupdf.ll_pdf_dict_get_inheritable_string(dict, key, sizep)
  15036. def ll_pdf_dict_get_inheritable_text_string(dict, key):
  15037. r"""Low-level wrapper for `::pdf_dict_get_inheritable_text_string()`."""
  15038. return _mupdf.ll_pdf_dict_get_inheritable_text_string(dict, key)
  15039. def ll_pdf_dict_get_int(dict, key):
  15040. r"""Low-level wrapper for `::pdf_dict_get_int()`."""
  15041. return _mupdf.ll_pdf_dict_get_int(dict, key)
  15042. def ll_pdf_dict_get_int64(dict, key):
  15043. r"""Low-level wrapper for `::pdf_dict_get_int64()`."""
  15044. return _mupdf.ll_pdf_dict_get_int64(dict, key)
  15045. def ll_pdf_dict_get_int_default(dict, key, _def):
  15046. r"""Low-level wrapper for `::pdf_dict_get_int_default()`."""
  15047. return _mupdf.ll_pdf_dict_get_int_default(dict, key, _def)
  15048. def ll_pdf_dict_get_key(dict, idx):
  15049. r"""Low-level wrapper for `::pdf_dict_get_key()`."""
  15050. return _mupdf.ll_pdf_dict_get_key(dict, idx)
  15051. def ll_pdf_dict_get_matrix(dict, key):
  15052. r"""Low-level wrapper for `::pdf_dict_get_matrix()`."""
  15053. return _mupdf.ll_pdf_dict_get_matrix(dict, key)
  15054. def ll_pdf_dict_get_name(dict, key):
  15055. r"""Low-level wrapper for `::pdf_dict_get_name()`."""
  15056. return _mupdf.ll_pdf_dict_get_name(dict, key)
  15057. def ll_pdf_dict_get_point(dict, key):
  15058. r"""Low-level wrapper for `::pdf_dict_get_point()`."""
  15059. return _mupdf.ll_pdf_dict_get_point(dict, key)
  15060. def ll_pdf_dict_get_put_drop(dict, key, val, old_val):
  15061. r"""
  15062. Low-level wrapper for `::pdf_dict_get_put_drop()`.
  15063. This function has out-params. Python/C# wrappers look like:
  15064. `ll_pdf_dict_get_put_drop(::pdf_obj *dict, ::pdf_obj *key, ::pdf_obj *val, ::pdf_obj **old_val)` =>
  15065. """
  15066. return _mupdf.ll_pdf_dict_get_put_drop(dict, key, val, old_val)
  15067. def ll_pdf_dict_get_real(dict, key):
  15068. r"""Low-level wrapper for `::pdf_dict_get_real()`."""
  15069. return _mupdf.ll_pdf_dict_get_real(dict, key)
  15070. def ll_pdf_dict_get_real_default(dict, key, _def):
  15071. r"""Low-level wrapper for `::pdf_dict_get_real_default()`."""
  15072. return _mupdf.ll_pdf_dict_get_real_default(dict, key, _def)
  15073. def ll_pdf_dict_get_rect(dict, key):
  15074. r"""Low-level wrapper for `::pdf_dict_get_rect()`."""
  15075. return _mupdf.ll_pdf_dict_get_rect(dict, key)
  15076. def ll_pdf_dict_get_string(dict, key, sizep):
  15077. r"""
  15078. Low-level wrapper for `::pdf_dict_get_string()`.
  15079. This function has out-params. Python/C# wrappers look like:
  15080. `ll_pdf_dict_get_string(::pdf_obj *dict, ::pdf_obj *key)` => `(const char *, size_t sizep)`
  15081. """
  15082. return _mupdf.ll_pdf_dict_get_string(dict, key, sizep)
  15083. def ll_pdf_dict_get_text_string(dict, key):
  15084. r"""Low-level wrapper for `::pdf_dict_get_text_string()`."""
  15085. return _mupdf.ll_pdf_dict_get_text_string(dict, key)
  15086. def ll_pdf_dict_get_text_string_opt(dict, key):
  15087. r"""Low-level wrapper for `::pdf_dict_get_text_string_opt()`."""
  15088. return _mupdf.ll_pdf_dict_get_text_string_opt(dict, key)
  15089. def ll_pdf_dict_get_val(dict, idx):
  15090. r"""Low-level wrapper for `::pdf_dict_get_val()`."""
  15091. return _mupdf.ll_pdf_dict_get_val(dict, idx)
  15092. def ll_pdf_dict_geta(dict, key, abbrev):
  15093. r"""Low-level wrapper for `::pdf_dict_geta()`."""
  15094. return _mupdf.ll_pdf_dict_geta(dict, key, abbrev)
  15095. def ll_pdf_dict_getp(dict, path):
  15096. r"""Low-level wrapper for `::pdf_dict_getp()`."""
  15097. return _mupdf.ll_pdf_dict_getp(dict, path)
  15098. def ll_pdf_dict_getp_inheritable(dict, path):
  15099. r"""Low-level wrapper for `::pdf_dict_getp_inheritable()`."""
  15100. return _mupdf.ll_pdf_dict_getp_inheritable(dict, path)
  15101. def ll_pdf_dict_gets(dict, key):
  15102. r"""Low-level wrapper for `::pdf_dict_gets()`."""
  15103. return _mupdf.ll_pdf_dict_gets(dict, key)
  15104. def ll_pdf_dict_gets_inheritable(dict, key):
  15105. r"""Low-level wrapper for `::pdf_dict_gets_inheritable()`."""
  15106. return _mupdf.ll_pdf_dict_gets_inheritable(dict, key)
  15107. def ll_pdf_dict_getsa(dict, key, abbrev):
  15108. r"""Low-level wrapper for `::pdf_dict_getsa()`."""
  15109. return _mupdf.ll_pdf_dict_getsa(dict, key, abbrev)
  15110. def ll_pdf_dict_len(dict):
  15111. r"""Low-level wrapper for `::pdf_dict_len()`."""
  15112. return _mupdf.ll_pdf_dict_len(dict)
  15113. def ll_pdf_dict_put(dict, key, val):
  15114. r"""Low-level wrapper for `::pdf_dict_put()`."""
  15115. return _mupdf.ll_pdf_dict_put(dict, key, val)
  15116. def ll_pdf_dict_put_array(dict, key, initial):
  15117. r"""Low-level wrapper for `::pdf_dict_put_array()`."""
  15118. return _mupdf.ll_pdf_dict_put_array(dict, key, initial)
  15119. def ll_pdf_dict_put_bool(dict, key, x):
  15120. r"""Low-level wrapper for `::pdf_dict_put_bool()`."""
  15121. return _mupdf.ll_pdf_dict_put_bool(dict, key, x)
  15122. def ll_pdf_dict_put_date(dict, key, time):
  15123. r"""Low-level wrapper for `::pdf_dict_put_date()`."""
  15124. return _mupdf.ll_pdf_dict_put_date(dict, key, time)
  15125. def ll_pdf_dict_put_dict(dict, key, initial):
  15126. r"""Low-level wrapper for `::pdf_dict_put_dict()`."""
  15127. return _mupdf.ll_pdf_dict_put_dict(dict, key, initial)
  15128. def ll_pdf_dict_put_drop(dict, key, val):
  15129. r"""Low-level wrapper for `::pdf_dict_put_drop()`."""
  15130. return _mupdf.ll_pdf_dict_put_drop(dict, key, val)
  15131. def ll_pdf_dict_put_indirect(dict, key, num):
  15132. r"""Low-level wrapper for `::pdf_dict_put_indirect()`."""
  15133. return _mupdf.ll_pdf_dict_put_indirect(dict, key, num)
  15134. def ll_pdf_dict_put_int(dict, key, x):
  15135. r"""Low-level wrapper for `::pdf_dict_put_int()`."""
  15136. return _mupdf.ll_pdf_dict_put_int(dict, key, x)
  15137. def ll_pdf_dict_put_matrix(dict, key, x):
  15138. r"""Low-level wrapper for `::pdf_dict_put_matrix()`."""
  15139. return _mupdf.ll_pdf_dict_put_matrix(dict, key, x)
  15140. def ll_pdf_dict_put_name(dict, key, x):
  15141. r"""Low-level wrapper for `::pdf_dict_put_name()`."""
  15142. return _mupdf.ll_pdf_dict_put_name(dict, key, x)
  15143. def ll_pdf_dict_put_point(dict, key, x):
  15144. r"""Low-level wrapper for `::pdf_dict_put_point()`."""
  15145. return _mupdf.ll_pdf_dict_put_point(dict, key, x)
  15146. def ll_pdf_dict_put_real(dict, key, x):
  15147. r"""Low-level wrapper for `::pdf_dict_put_real()`."""
  15148. return _mupdf.ll_pdf_dict_put_real(dict, key, x)
  15149. def ll_pdf_dict_put_rect(dict, key, x):
  15150. r"""Low-level wrapper for `::pdf_dict_put_rect()`."""
  15151. return _mupdf.ll_pdf_dict_put_rect(dict, key, x)
  15152. def ll_pdf_dict_put_string(dict, key, x, n):
  15153. r"""Low-level wrapper for `::pdf_dict_put_string()`."""
  15154. return _mupdf.ll_pdf_dict_put_string(dict, key, x, n)
  15155. def ll_pdf_dict_put_text_string(dict, key, x):
  15156. r"""Low-level wrapper for `::pdf_dict_put_text_string()`."""
  15157. return _mupdf.ll_pdf_dict_put_text_string(dict, key, x)
  15158. def ll_pdf_dict_put_val_null(obj, idx):
  15159. r"""Low-level wrapper for `::pdf_dict_put_val_null()`."""
  15160. return _mupdf.ll_pdf_dict_put_val_null(obj, idx)
  15161. def ll_pdf_dict_putp(dict, path, val):
  15162. r"""Low-level wrapper for `::pdf_dict_putp()`."""
  15163. return _mupdf.ll_pdf_dict_putp(dict, path, val)
  15164. def ll_pdf_dict_putp_drop(dict, path, val):
  15165. r"""Low-level wrapper for `::pdf_dict_putp_drop()`."""
  15166. return _mupdf.ll_pdf_dict_putp_drop(dict, path, val)
  15167. def ll_pdf_dict_puts(dict, key, val):
  15168. r"""Low-level wrapper for `::pdf_dict_puts()`."""
  15169. return _mupdf.ll_pdf_dict_puts(dict, key, val)
  15170. def ll_pdf_dict_puts_dict(dict, key, initial):
  15171. r"""Low-level wrapper for `::pdf_dict_puts_dict()`."""
  15172. return _mupdf.ll_pdf_dict_puts_dict(dict, key, initial)
  15173. def ll_pdf_dict_puts_drop(dict, key, val):
  15174. r"""Low-level wrapper for `::pdf_dict_puts_drop()`."""
  15175. return _mupdf.ll_pdf_dict_puts_drop(dict, key, val)
  15176. def ll_pdf_dirty_annot(annot):
  15177. r"""Low-level wrapper for `::pdf_dirty_annot()`."""
  15178. return _mupdf.ll_pdf_dirty_annot(annot)
  15179. def ll_pdf_dirty_obj(obj):
  15180. r"""Low-level wrapper for `::pdf_dirty_obj()`."""
  15181. return _mupdf.ll_pdf_dirty_obj(obj)
  15182. def ll_pdf_disable_js(doc):
  15183. r"""Low-level wrapper for `::pdf_disable_js()`."""
  15184. return _mupdf.ll_pdf_disable_js(doc)
  15185. def ll_pdf_discard_journal(journal):
  15186. r"""Low-level wrapper for `::pdf_discard_journal()`."""
  15187. return _mupdf.ll_pdf_discard_journal(journal)
  15188. def ll_pdf_doc_was_linearized(doc):
  15189. r"""Low-level wrapper for `::pdf_doc_was_linearized()`."""
  15190. return _mupdf.ll_pdf_doc_was_linearized(doc)
  15191. def ll_pdf_document_associated_file(doc, idx):
  15192. r"""Low-level wrapper for `::pdf_document_associated_file()`."""
  15193. return _mupdf.ll_pdf_document_associated_file(doc, idx)
  15194. def ll_pdf_document_event_did_print(doc):
  15195. r"""Low-level wrapper for `::pdf_document_event_did_print()`."""
  15196. return _mupdf.ll_pdf_document_event_did_print(doc)
  15197. def ll_pdf_document_event_did_save(doc):
  15198. r"""Low-level wrapper for `::pdf_document_event_did_save()`."""
  15199. return _mupdf.ll_pdf_document_event_did_save(doc)
  15200. def ll_pdf_document_event_will_close(doc):
  15201. r"""Low-level wrapper for `::pdf_document_event_will_close()`."""
  15202. return _mupdf.ll_pdf_document_event_will_close(doc)
  15203. def ll_pdf_document_event_will_print(doc):
  15204. r"""Low-level wrapper for `::pdf_document_event_will_print()`."""
  15205. return _mupdf.ll_pdf_document_event_will_print(doc)
  15206. def ll_pdf_document_event_will_save(doc):
  15207. r"""Low-level wrapper for `::pdf_document_event_will_save()`."""
  15208. return _mupdf.ll_pdf_document_event_will_save(doc)
  15209. def ll_pdf_document_from_fz_document(ptr):
  15210. r"""Low-level wrapper for `::pdf_document_from_fz_document()`."""
  15211. return _mupdf.ll_pdf_document_from_fz_document(ptr)
  15212. def ll_pdf_document_language(doc):
  15213. r"""Low-level wrapper for `::pdf_document_language()`."""
  15214. return _mupdf.ll_pdf_document_language(doc)
  15215. def ll_pdf_document_output_intent(doc):
  15216. r"""Low-level wrapper for `::pdf_document_output_intent()`."""
  15217. return _mupdf.ll_pdf_document_output_intent(doc)
  15218. def ll_pdf_document_permissions(doc):
  15219. r"""Low-level wrapper for `::pdf_document_permissions()`."""
  15220. return _mupdf.ll_pdf_document_permissions(doc)
  15221. def ll_pdf_drop_annot(annot):
  15222. r"""Low-level wrapper for `::pdf_drop_annot()`."""
  15223. return _mupdf.ll_pdf_drop_annot(annot)
  15224. def ll_pdf_drop_cmap(cmap):
  15225. r"""Low-level wrapper for `::pdf_drop_cmap()`."""
  15226. return _mupdf.ll_pdf_drop_cmap(cmap)
  15227. def ll_pdf_drop_cmap_imp(cmap):
  15228. r"""Low-level wrapper for `::pdf_drop_cmap_imp()`."""
  15229. return _mupdf.ll_pdf_drop_cmap_imp(cmap)
  15230. def ll_pdf_drop_crypt(crypt):
  15231. r"""Low-level wrapper for `::pdf_drop_crypt()`."""
  15232. return _mupdf.ll_pdf_drop_crypt(crypt)
  15233. def ll_pdf_drop_document(doc):
  15234. r"""Low-level wrapper for `::pdf_drop_document()`."""
  15235. return _mupdf.ll_pdf_drop_document(doc)
  15236. def ll_pdf_drop_font(font):
  15237. r"""Low-level wrapper for `::pdf_drop_font()`."""
  15238. return _mupdf.ll_pdf_drop_font(font)
  15239. def ll_pdf_drop_function(func):
  15240. r"""Low-level wrapper for `::pdf_drop_function()`."""
  15241. return _mupdf.ll_pdf_drop_function(func)
  15242. def ll_pdf_drop_graft_map(map):
  15243. r"""Low-level wrapper for `::pdf_drop_graft_map()`."""
  15244. return _mupdf.ll_pdf_drop_graft_map(map)
  15245. def ll_pdf_drop_journal(journal):
  15246. r"""Low-level wrapper for `::pdf_drop_journal()`."""
  15247. return _mupdf.ll_pdf_drop_journal(journal)
  15248. def ll_pdf_drop_js(js):
  15249. r"""Low-level wrapper for `::pdf_drop_js()`."""
  15250. return _mupdf.ll_pdf_drop_js(js)
  15251. def ll_pdf_drop_local_xref(xref):
  15252. r"""Low-level wrapper for `::pdf_drop_local_xref()`."""
  15253. return _mupdf.ll_pdf_drop_local_xref(xref)
  15254. def ll_pdf_drop_local_xref_and_resources(doc):
  15255. r"""Low-level wrapper for `::pdf_drop_local_xref_and_resources()`."""
  15256. return _mupdf.ll_pdf_drop_local_xref_and_resources(doc)
  15257. def ll_pdf_drop_locked_fields(locked):
  15258. r"""Low-level wrapper for `::pdf_drop_locked_fields()`."""
  15259. return _mupdf.ll_pdf_drop_locked_fields(locked)
  15260. def ll_pdf_drop_mark_bits(marks):
  15261. r"""Low-level wrapper for `::pdf_drop_mark_bits()`."""
  15262. return _mupdf.ll_pdf_drop_mark_bits(marks)
  15263. def ll_pdf_drop_obj(obj):
  15264. r"""Low-level wrapper for `::pdf_drop_obj()`."""
  15265. return _mupdf.ll_pdf_drop_obj(obj)
  15266. def ll_pdf_drop_object_labels(g):
  15267. r"""Low-level wrapper for `::pdf_drop_object_labels()`."""
  15268. return _mupdf.ll_pdf_drop_object_labels(g)
  15269. def ll_pdf_drop_ocg(doc):
  15270. r"""Low-level wrapper for `::pdf_drop_ocg()`."""
  15271. return _mupdf.ll_pdf_drop_ocg(doc)
  15272. def ll_pdf_drop_page(page):
  15273. r"""Low-level wrapper for `::pdf_drop_page()`."""
  15274. return _mupdf.ll_pdf_drop_page(page)
  15275. def ll_pdf_drop_page_tree(doc):
  15276. r"""Low-level wrapper for `::pdf_drop_page_tree()`."""
  15277. return _mupdf.ll_pdf_drop_page_tree(doc)
  15278. def ll_pdf_drop_page_tree_internal(doc):
  15279. r"""Low-level wrapper for `::pdf_drop_page_tree_internal()`."""
  15280. return _mupdf.ll_pdf_drop_page_tree_internal(doc)
  15281. def ll_pdf_drop_pattern(pat):
  15282. r"""Low-level wrapper for `::pdf_drop_pattern()`."""
  15283. return _mupdf.ll_pdf_drop_pattern(pat)
  15284. def ll_pdf_drop_processor(proc):
  15285. r"""Low-level wrapper for `::pdf_drop_processor()`."""
  15286. return _mupdf.ll_pdf_drop_processor(proc)
  15287. def ll_pdf_drop_resource_tables(doc):
  15288. r"""Low-level wrapper for `::pdf_drop_resource_tables()`."""
  15289. return _mupdf.ll_pdf_drop_resource_tables(doc)
  15290. def ll_pdf_drop_signer(signer):
  15291. r"""Low-level wrapper for `::pdf_drop_signer()`."""
  15292. return _mupdf.ll_pdf_drop_signer(signer)
  15293. def ll_pdf_drop_singleton_obj(obj):
  15294. r"""Low-level wrapper for `::pdf_drop_singleton_obj()`."""
  15295. return _mupdf.ll_pdf_drop_singleton_obj(obj)
  15296. def ll_pdf_drop_verifier(verifier):
  15297. r"""Low-level wrapper for `::pdf_drop_verifier()`."""
  15298. return _mupdf.ll_pdf_drop_verifier(verifier)
  15299. def ll_pdf_drop_widget(widget):
  15300. r"""Low-level wrapper for `::pdf_drop_widget()`."""
  15301. return _mupdf.ll_pdf_drop_widget(widget)
  15302. def ll_pdf_edit_text_field_value(widget, value, change, selStart, selEnd, newvalue):
  15303. r"""
  15304. Low-level wrapper for `::pdf_edit_text_field_value()`.
  15305. This function has out-params. Python/C# wrappers look like:
  15306. `ll_pdf_edit_text_field_value(::pdf_annot *widget, const char *value, const char *change)` => `(int, int selStart, int selEnd, char *newvalue)`
  15307. """
  15308. return _mupdf.ll_pdf_edit_text_field_value(widget, value, change, selStart, selEnd, newvalue)
  15309. def ll_pdf_empty_store(doc):
  15310. r"""Low-level wrapper for `::pdf_empty_store()`."""
  15311. return _mupdf.ll_pdf_empty_store(doc)
  15312. def ll_pdf_enable_journal(doc):
  15313. r"""Low-level wrapper for `::pdf_enable_journal()`."""
  15314. return _mupdf.ll_pdf_enable_journal(doc)
  15315. def ll_pdf_enable_js(doc):
  15316. r"""Low-level wrapper for `::pdf_enable_js()`."""
  15317. return _mupdf.ll_pdf_enable_js(doc)
  15318. def ll_pdf_enable_layer(doc, layer, enabled):
  15319. r"""Low-level wrapper for `::pdf_enable_layer()`."""
  15320. return _mupdf.ll_pdf_enable_layer(doc, layer, enabled)
  15321. def ll_pdf_encrypt_data(crypt, num, gen, fmt_str_out, arg, s, n):
  15322. r"""Low-level wrapper for `::pdf_encrypt_data()`."""
  15323. return _mupdf.ll_pdf_encrypt_data(crypt, num, gen, fmt_str_out, arg, s, n)
  15324. def ll_pdf_encrypted_len(crypt, num, gen, len):
  15325. r"""Low-level wrapper for `::pdf_encrypted_len()`."""
  15326. return _mupdf.ll_pdf_encrypted_len(crypt, num, gen, len)
  15327. def ll_pdf_end_hmtx(font):
  15328. r"""Low-level wrapper for `::pdf_end_hmtx()`."""
  15329. return _mupdf.ll_pdf_end_hmtx(font)
  15330. def ll_pdf_end_operation(doc):
  15331. r"""Low-level wrapper for `::pdf_end_operation()`."""
  15332. return _mupdf.ll_pdf_end_operation(doc)
  15333. def ll_pdf_end_vmtx(font):
  15334. r"""Low-level wrapper for `::pdf_end_vmtx()`."""
  15335. return _mupdf.ll_pdf_end_vmtx(font)
  15336. def ll_pdf_ensure_solid_xref(doc, num):
  15337. r"""Low-level wrapper for `::pdf_ensure_solid_xref()`."""
  15338. return _mupdf.ll_pdf_ensure_solid_xref(doc, num)
  15339. def ll_pdf_eval_function(func, _in, inlen, out, outlen):
  15340. r"""
  15341. Low-level wrapper for `::pdf_eval_function()`.
  15342. This function has out-params. Python/C# wrappers look like:
  15343. `ll_pdf_eval_function(::pdf_function *func, const float *in, int inlen, int outlen)` => float out
  15344. """
  15345. return _mupdf.ll_pdf_eval_function(func, _in, inlen, out, outlen)
  15346. def ll_pdf_event_issue_alert(doc, evt):
  15347. r"""Low-level wrapper for `::pdf_event_issue_alert()`."""
  15348. return _mupdf.ll_pdf_event_issue_alert(doc, evt)
  15349. def ll_pdf_event_issue_exec_menu_item(doc, item):
  15350. r"""Low-level wrapper for `::pdf_event_issue_exec_menu_item()`."""
  15351. return _mupdf.ll_pdf_event_issue_exec_menu_item(doc, item)
  15352. def ll_pdf_event_issue_launch_url(doc, url, new_frame):
  15353. r"""Low-level wrapper for `::pdf_event_issue_launch_url()`."""
  15354. return _mupdf.ll_pdf_event_issue_launch_url(doc, url, new_frame)
  15355. def ll_pdf_event_issue_mail_doc(doc, evt):
  15356. r"""Low-level wrapper for `::pdf_event_issue_mail_doc()`."""
  15357. return _mupdf.ll_pdf_event_issue_mail_doc(doc, evt)
  15358. def ll_pdf_event_issue_print(doc):
  15359. r"""Low-level wrapper for `::pdf_event_issue_print()`."""
  15360. return _mupdf.ll_pdf_event_issue_print(doc)
  15361. def ll_pdf_field_border_style(field):
  15362. r"""Low-level wrapper for `::pdf_field_border_style()`."""
  15363. return _mupdf.ll_pdf_field_border_style(field)
  15364. def ll_pdf_field_display(field):
  15365. r"""Low-level wrapper for `::pdf_field_display()`."""
  15366. return _mupdf.ll_pdf_field_display(field)
  15367. def ll_pdf_field_event_calculate(doc, field):
  15368. r"""Low-level wrapper for `::pdf_field_event_calculate()`."""
  15369. return _mupdf.ll_pdf_field_event_calculate(doc, field)
  15370. def ll_pdf_field_event_format(doc, field):
  15371. r"""Low-level wrapper for `::pdf_field_event_format()`."""
  15372. return _mupdf.ll_pdf_field_event_format(doc, field)
  15373. def ll_pdf_field_event_keystroke(doc, field, evt):
  15374. r"""Low-level wrapper for `::pdf_field_event_keystroke()`."""
  15375. return _mupdf.ll_pdf_field_event_keystroke(doc, field, evt)
  15376. def ll_pdf_field_event_validate(doc, field, value, newvalue):
  15377. r"""
  15378. Low-level wrapper for `::pdf_field_event_validate()`.
  15379. This function has out-params. Python/C# wrappers look like:
  15380. `ll_pdf_field_event_validate(::pdf_document *doc, ::pdf_obj *field, const char *value)` => `(int, char *newvalue)`
  15381. """
  15382. return _mupdf.ll_pdf_field_event_validate(doc, field, value, newvalue)
  15383. def ll_pdf_field_flags(field):
  15384. r"""Low-level wrapper for `::pdf_field_flags()`."""
  15385. return _mupdf.ll_pdf_field_flags(field)
  15386. def ll_pdf_field_label(field):
  15387. r"""Low-level wrapper for `::pdf_field_label()`."""
  15388. return _mupdf.ll_pdf_field_label(field)
  15389. def ll_pdf_field_reset(doc, field):
  15390. r"""Low-level wrapper for `::pdf_field_reset()`."""
  15391. return _mupdf.ll_pdf_field_reset(doc, field)
  15392. def ll_pdf_field_set_border_style(field, text):
  15393. r"""Low-level wrapper for `::pdf_field_set_border_style()`."""
  15394. return _mupdf.ll_pdf_field_set_border_style(field, text)
  15395. def ll_pdf_field_set_button_caption(field, text):
  15396. r"""Low-level wrapper for `::pdf_field_set_button_caption()`."""
  15397. return _mupdf.ll_pdf_field_set_button_caption(field, text)
  15398. def ll_pdf_field_set_display(field, d):
  15399. r"""Low-level wrapper for `::pdf_field_set_display()`."""
  15400. return _mupdf.ll_pdf_field_set_display(field, d)
  15401. def ll_pdf_field_set_fill_color(field, col):
  15402. r"""Low-level wrapper for `::pdf_field_set_fill_color()`."""
  15403. return _mupdf.ll_pdf_field_set_fill_color(field, col)
  15404. def ll_pdf_field_set_text_color(field, col):
  15405. r"""Low-level wrapper for `::pdf_field_set_text_color()`."""
  15406. return _mupdf.ll_pdf_field_set_text_color(field, col)
  15407. def ll_pdf_field_type(field):
  15408. r"""Low-level wrapper for `::pdf_field_type()`."""
  15409. return _mupdf.ll_pdf_field_type(field)
  15410. def ll_pdf_field_type_string(field):
  15411. r"""Low-level wrapper for `::pdf_field_type_string()`."""
  15412. return _mupdf.ll_pdf_field_type_string(field)
  15413. def ll_pdf_field_value(field):
  15414. r"""Low-level wrapper for `::pdf_field_value()`."""
  15415. return _mupdf.ll_pdf_field_value(field)
  15416. def ll_pdf_filter_annot_contents(doc, annot, options):
  15417. r"""Low-level wrapper for `::pdf_filter_annot_contents()`."""
  15418. return _mupdf.ll_pdf_filter_annot_contents(doc, annot, options)
  15419. def ll_pdf_filter_page_contents(doc, page, options):
  15420. r"""Low-level wrapper for `::pdf_filter_page_contents()`."""
  15421. return _mupdf.ll_pdf_filter_page_contents(doc, page, options)
  15422. def ll_pdf_filter_xobject_instance(old_xobj, page_res, ctm, options, cycle_up):
  15423. r"""Low-level wrapper for `::pdf_filter_xobject_instance()`."""
  15424. return _mupdf.ll_pdf_filter_xobject_instance(old_xobj, page_res, ctm, options, cycle_up)
  15425. def ll_pdf_find_colorspace_resource(doc, item, key):
  15426. r"""Low-level wrapper for `::pdf_find_colorspace_resource()`."""
  15427. return _mupdf.ll_pdf_find_colorspace_resource(doc, item, key)
  15428. def ll_pdf_find_font_resource(doc, type, encoding, item, key):
  15429. r"""Low-level wrapper for `::pdf_find_font_resource()`."""
  15430. return _mupdf.ll_pdf_find_font_resource(doc, type, encoding, item, key)
  15431. def ll_pdf_find_item(drop, key):
  15432. r"""Low-level wrapper for `::pdf_find_item()`."""
  15433. return _mupdf.ll_pdf_find_item(drop, key)
  15434. def ll_pdf_find_locked_fields(doc, version):
  15435. r"""Low-level wrapper for `::pdf_find_locked_fields()`."""
  15436. return _mupdf.ll_pdf_find_locked_fields(doc, version)
  15437. def ll_pdf_find_locked_fields_for_sig(doc, sig):
  15438. r"""Low-level wrapper for `::pdf_find_locked_fields_for_sig()`."""
  15439. return _mupdf.ll_pdf_find_locked_fields_for_sig(doc, sig)
  15440. def ll_pdf_find_version_for_obj(doc, obj):
  15441. r"""Low-level wrapper for `::pdf_find_version_for_obj()`."""
  15442. return _mupdf.ll_pdf_find_version_for_obj(doc, obj)
  15443. def ll_pdf_first_annot(page):
  15444. r"""Low-level wrapper for `::pdf_first_annot()`."""
  15445. return _mupdf.ll_pdf_first_annot(page)
  15446. def ll_pdf_first_widget(page):
  15447. r"""Low-level wrapper for `::pdf_first_widget()`."""
  15448. return _mupdf.ll_pdf_first_widget(page)
  15449. def ll_pdf_flatten_inheritable_page_items(page):
  15450. r"""Low-level wrapper for `::pdf_flatten_inheritable_page_items()`."""
  15451. return _mupdf.ll_pdf_flatten_inheritable_page_items(page)
  15452. def ll_pdf_font_cid_to_gid(fontdesc, cid):
  15453. r"""Low-level wrapper for `::pdf_font_cid_to_gid()`."""
  15454. return _mupdf.ll_pdf_font_cid_to_gid(fontdesc, cid)
  15455. def ll_pdf_font_writing_supported(font):
  15456. r"""Low-level wrapper for `::pdf_font_writing_supported()`."""
  15457. return _mupdf.ll_pdf_font_writing_supported(font)
  15458. def ll_pdf_forget_xref(doc):
  15459. r"""Low-level wrapper for `::pdf_forget_xref()`."""
  15460. return _mupdf.ll_pdf_forget_xref(doc)
  15461. def ll_pdf_format_date(time, s, n):
  15462. r"""Low-level wrapper for `::pdf_format_date()`."""
  15463. return _mupdf.ll_pdf_format_date(time, s, n)
  15464. def ll_pdf_format_write_options(buffer, buffer_len, opts):
  15465. r"""Low-level wrapper for `::pdf_format_write_options()`."""
  15466. return _mupdf.ll_pdf_format_write_options(buffer, buffer_len, opts)
  15467. def ll_pdf_function_size(func):
  15468. r"""Low-level wrapper for `::pdf_function_size()`."""
  15469. return _mupdf.ll_pdf_function_size(func)
  15470. def ll_pdf_get_bound_document(obj):
  15471. r"""Low-level wrapper for `::pdf_get_bound_document()`."""
  15472. return _mupdf.ll_pdf_get_bound_document(obj)
  15473. def ll_pdf_get_doc_event_callback_data(doc):
  15474. r"""Low-level wrapper for `::pdf_get_doc_event_callback_data()`."""
  15475. return _mupdf.ll_pdf_get_doc_event_callback_data(doc)
  15476. def ll_pdf_get_filespec_params(fs, out):
  15477. r"""Low-level wrapper for `::pdf_get_filespec_params()`."""
  15478. return _mupdf.ll_pdf_get_filespec_params(fs, out)
  15479. def ll_pdf_get_incremental_xref_entry(doc, i):
  15480. r"""Low-level wrapper for `::pdf_get_incremental_xref_entry()`."""
  15481. return _mupdf.ll_pdf_get_incremental_xref_entry(doc, i)
  15482. def ll_pdf_get_indirect_document(obj):
  15483. r"""Low-level wrapper for `::pdf_get_indirect_document()`."""
  15484. return _mupdf.ll_pdf_get_indirect_document(obj)
  15485. def ll_pdf_get_populating_xref_entry(doc, i):
  15486. r"""Low-level wrapper for `::pdf_get_populating_xref_entry()`."""
  15487. return _mupdf.ll_pdf_get_populating_xref_entry(doc, i)
  15488. def ll_pdf_get_widget_editing_state(widget):
  15489. r"""Low-level wrapper for `::pdf_get_widget_editing_state()`."""
  15490. return _mupdf.ll_pdf_get_widget_editing_state(widget)
  15491. def ll_pdf_get_xref_entry(doc, i):
  15492. r"""Low-level wrapper for `::pdf_get_xref_entry()`."""
  15493. return _mupdf.ll_pdf_get_xref_entry(doc, i)
  15494. def ll_pdf_get_xref_entry_no_change(doc, i):
  15495. r"""Low-level wrapper for `::pdf_get_xref_entry_no_change()`."""
  15496. return _mupdf.ll_pdf_get_xref_entry_no_change(doc, i)
  15497. def ll_pdf_get_xref_entry_no_null(doc, i):
  15498. r"""Low-level wrapper for `::pdf_get_xref_entry_no_null()`."""
  15499. return _mupdf.ll_pdf_get_xref_entry_no_null(doc, i)
  15500. def ll_pdf_graft_mapped_object(map, obj):
  15501. r"""Low-level wrapper for `::pdf_graft_mapped_object()`."""
  15502. return _mupdf.ll_pdf_graft_mapped_object(map, obj)
  15503. def ll_pdf_graft_mapped_page(map, page_to, src, page_from):
  15504. r"""Low-level wrapper for `::pdf_graft_mapped_page()`."""
  15505. return _mupdf.ll_pdf_graft_mapped_page(map, page_to, src, page_from)
  15506. def ll_pdf_graft_object(dst, obj):
  15507. r"""Low-level wrapper for `::pdf_graft_object()`."""
  15508. return _mupdf.ll_pdf_graft_object(dst, obj)
  15509. def ll_pdf_graft_page(dst, page_to, src, page_from):
  15510. r"""Low-level wrapper for `::pdf_graft_page()`."""
  15511. return _mupdf.ll_pdf_graft_page(dst, page_to, src, page_from)
  15512. def ll_pdf_has_permission(doc, p):
  15513. r"""Low-level wrapper for `::pdf_has_permission()`."""
  15514. return _mupdf.ll_pdf_has_permission(doc, p)
  15515. def ll_pdf_has_unsaved_changes(doc):
  15516. r"""Low-level wrapper for `::pdf_has_unsaved_changes()`."""
  15517. return _mupdf.ll_pdf_has_unsaved_changes(doc)
  15518. def ll_pdf_has_unsaved_sigs(doc):
  15519. r"""Low-level wrapper for `::pdf_has_unsaved_sigs()`."""
  15520. return _mupdf.ll_pdf_has_unsaved_sigs(doc)
  15521. def ll_pdf_incremental_change_since_signing_widget(widget):
  15522. r"""Low-level wrapper for `::pdf_incremental_change_since_signing_widget()`."""
  15523. return _mupdf.ll_pdf_incremental_change_since_signing_widget(widget)
  15524. def ll_pdf_insert_colorspace_resource(doc, key, obj):
  15525. r"""Low-level wrapper for `::pdf_insert_colorspace_resource()`."""
  15526. return _mupdf.ll_pdf_insert_colorspace_resource(doc, key, obj)
  15527. def ll_pdf_insert_font_resource(doc, key, obj):
  15528. r"""Low-level wrapper for `::pdf_insert_font_resource()`."""
  15529. return _mupdf.ll_pdf_insert_font_resource(doc, key, obj)
  15530. def ll_pdf_insert_page(doc, at, page):
  15531. r"""Low-level wrapper for `::pdf_insert_page()`."""
  15532. return _mupdf.ll_pdf_insert_page(doc, at, page)
  15533. def ll_pdf_intent_from_name(obj):
  15534. r"""Low-level wrapper for `::pdf_intent_from_name()`."""
  15535. return _mupdf.ll_pdf_intent_from_name(obj)
  15536. def ll_pdf_intent_from_string(str):
  15537. r"""Low-level wrapper for `::pdf_intent_from_string()`."""
  15538. return _mupdf.ll_pdf_intent_from_string(str)
  15539. def ll_pdf_invalidate_xfa(doc):
  15540. r"""Low-level wrapper for `::pdf_invalidate_xfa()`."""
  15541. return _mupdf.ll_pdf_invalidate_xfa(doc)
  15542. def ll_pdf_is_array(obj):
  15543. r"""Low-level wrapper for `::pdf_is_array()`."""
  15544. return _mupdf.ll_pdf_is_array(obj)
  15545. def ll_pdf_is_bool(obj):
  15546. r"""Low-level wrapper for `::pdf_is_bool()`."""
  15547. return _mupdf.ll_pdf_is_bool(obj)
  15548. def ll_pdf_is_dict(obj):
  15549. r"""Low-level wrapper for `::pdf_is_dict()`."""
  15550. return _mupdf.ll_pdf_is_dict(obj)
  15551. def ll_pdf_is_embedded_file(fs):
  15552. r"""Low-level wrapper for `::pdf_is_embedded_file()`."""
  15553. return _mupdf.ll_pdf_is_embedded_file(fs)
  15554. def ll_pdf_is_field_locked(locked, name):
  15555. r"""Low-level wrapper for `::pdf_is_field_locked()`."""
  15556. return _mupdf.ll_pdf_is_field_locked(locked, name)
  15557. def ll_pdf_is_filespec(fs):
  15558. r"""Low-level wrapper for `::pdf_is_filespec()`."""
  15559. return _mupdf.ll_pdf_is_filespec(fs)
  15560. def ll_pdf_is_image_stream(obj):
  15561. r"""Low-level wrapper for `::pdf_is_image_stream()`."""
  15562. return _mupdf.ll_pdf_is_image_stream(obj)
  15563. def ll_pdf_is_indirect(obj):
  15564. r"""Low-level wrapper for `::pdf_is_indirect()`."""
  15565. return _mupdf.ll_pdf_is_indirect(obj)
  15566. def ll_pdf_is_int(obj):
  15567. r"""Low-level wrapper for `::pdf_is_int()`."""
  15568. return _mupdf.ll_pdf_is_int(obj)
  15569. def ll_pdf_is_jpx_image(dict):
  15570. r"""Low-level wrapper for `::pdf_is_jpx_image()`."""
  15571. return _mupdf.ll_pdf_is_jpx_image(dict)
  15572. def ll_pdf_is_local_object(doc, obj):
  15573. r"""Low-level wrapper for `::pdf_is_local_object()`."""
  15574. return _mupdf.ll_pdf_is_local_object(doc, obj)
  15575. def ll_pdf_is_name(obj):
  15576. r"""Low-level wrapper for `::pdf_is_name()`."""
  15577. return _mupdf.ll_pdf_is_name(obj)
  15578. def ll_pdf_is_null(obj):
  15579. r"""Low-level wrapper for `::pdf_is_null()`."""
  15580. return _mupdf.ll_pdf_is_null(obj)
  15581. def ll_pdf_is_number(obj):
  15582. r"""Low-level wrapper for `::pdf_is_number()`."""
  15583. return _mupdf.ll_pdf_is_number(obj)
  15584. def ll_pdf_is_ocg_hidden(doc, rdb, usage, ocg):
  15585. r"""Low-level wrapper for `::pdf_is_ocg_hidden()`."""
  15586. return _mupdf.ll_pdf_is_ocg_hidden(doc, rdb, usage, ocg)
  15587. def ll_pdf_is_real(obj):
  15588. r"""Low-level wrapper for `::pdf_is_real()`."""
  15589. return _mupdf.ll_pdf_is_real(obj)
  15590. def ll_pdf_is_stream(obj):
  15591. r"""Low-level wrapper for `::pdf_is_stream()`."""
  15592. return _mupdf.ll_pdf_is_stream(obj)
  15593. def ll_pdf_is_string(obj):
  15594. r"""Low-level wrapper for `::pdf_is_string()`."""
  15595. return _mupdf.ll_pdf_is_string(obj)
  15596. def ll_pdf_is_tint_colorspace(cs):
  15597. r"""Low-level wrapper for `::pdf_is_tint_colorspace()`."""
  15598. return _mupdf.ll_pdf_is_tint_colorspace(cs)
  15599. def ll_pdf_js_event_init(js, target, value, willCommit):
  15600. r"""Low-level wrapper for `::pdf_js_event_init()`."""
  15601. return _mupdf.ll_pdf_js_event_init(js, target, value, willCommit)
  15602. def ll_pdf_js_event_init_keystroke(js, target, evt):
  15603. r"""Low-level wrapper for `::pdf_js_event_init_keystroke()`."""
  15604. return _mupdf.ll_pdf_js_event_init_keystroke(js, target, evt)
  15605. def ll_pdf_js_event_result(js):
  15606. r"""Low-level wrapper for `::pdf_js_event_result()`."""
  15607. return _mupdf.ll_pdf_js_event_result(js)
  15608. def ll_pdf_js_event_result_keystroke(js, evt):
  15609. r"""Low-level wrapper for `::pdf_js_event_result_keystroke()`."""
  15610. return _mupdf.ll_pdf_js_event_result_keystroke(js, evt)
  15611. def ll_pdf_js_event_result_validate(js, newvalue):
  15612. r"""
  15613. Low-level wrapper for `::pdf_js_event_result_validate()`.
  15614. This function has out-params. Python/C# wrappers look like:
  15615. `ll_pdf_js_event_result_validate(::pdf_js *js)` => `(int, char *newvalue)`
  15616. """
  15617. return _mupdf.ll_pdf_js_event_result_validate(js, newvalue)
  15618. def ll_pdf_js_event_value(js):
  15619. r"""Low-level wrapper for `::pdf_js_event_value()`."""
  15620. return _mupdf.ll_pdf_js_event_value(js)
  15621. def ll_pdf_js_execute(js, name, code, result):
  15622. r"""
  15623. Low-level wrapper for `::pdf_js_execute()`.
  15624. This function has out-params. Python/C# wrappers look like:
  15625. `ll_pdf_js_execute(::pdf_js *js, const char *name, const char *code)` => char *result
  15626. """
  15627. return _mupdf.ll_pdf_js_execute(js, name, code, result)
  15628. def ll_pdf_js_get_console(doc):
  15629. r"""Low-level wrapper for `::pdf_js_get_console()`."""
  15630. return _mupdf.ll_pdf_js_get_console(doc)
  15631. def ll_pdf_js_set_console(doc, console, user):
  15632. r"""Low-level wrapper for `::pdf_js_set_console()`."""
  15633. return _mupdf.ll_pdf_js_set_console(doc, console, user)
  15634. def ll_pdf_js_supported(doc):
  15635. r"""Low-level wrapper for `::pdf_js_supported()`."""
  15636. return _mupdf.ll_pdf_js_supported(doc)
  15637. def ll_pdf_keep_annot(annot):
  15638. r"""Low-level wrapper for `::pdf_keep_annot()`."""
  15639. return _mupdf.ll_pdf_keep_annot(annot)
  15640. def ll_pdf_keep_cmap(cmap):
  15641. r"""Low-level wrapper for `::pdf_keep_cmap()`."""
  15642. return _mupdf.ll_pdf_keep_cmap(cmap)
  15643. def ll_pdf_keep_document(doc):
  15644. r"""Low-level wrapper for `::pdf_keep_document()`."""
  15645. return _mupdf.ll_pdf_keep_document(doc)
  15646. def ll_pdf_keep_font(fontdesc):
  15647. r"""Low-level wrapper for `::pdf_keep_font()`."""
  15648. return _mupdf.ll_pdf_keep_font(fontdesc)
  15649. def ll_pdf_keep_function(func):
  15650. r"""Low-level wrapper for `::pdf_keep_function()`."""
  15651. return _mupdf.ll_pdf_keep_function(func)
  15652. def ll_pdf_keep_graft_map(map):
  15653. r"""Low-level wrapper for `::pdf_keep_graft_map()`."""
  15654. return _mupdf.ll_pdf_keep_graft_map(map)
  15655. def ll_pdf_keep_obj(obj):
  15656. r"""Low-level wrapper for `::pdf_keep_obj()`."""
  15657. return _mupdf.ll_pdf_keep_obj(obj)
  15658. def ll_pdf_keep_page(page):
  15659. r"""Low-level wrapper for `::pdf_keep_page()`."""
  15660. return _mupdf.ll_pdf_keep_page(page)
  15661. def ll_pdf_keep_pattern(pat):
  15662. r"""Low-level wrapper for `::pdf_keep_pattern()`."""
  15663. return _mupdf.ll_pdf_keep_pattern(pat)
  15664. def ll_pdf_keep_processor(proc):
  15665. r"""Low-level wrapper for `::pdf_keep_processor()`."""
  15666. return _mupdf.ll_pdf_keep_processor(proc)
  15667. def ll_pdf_keep_widget(widget):
  15668. r"""Low-level wrapper for `::pdf_keep_widget()`."""
  15669. return _mupdf.ll_pdf_keep_widget(widget)
  15670. def ll_pdf_label_object(g, num, callback, arg):
  15671. r"""Low-level wrapper for `::pdf_label_object()`."""
  15672. return _mupdf.ll_pdf_label_object(g, num, callback, arg)
  15673. def ll_pdf_layer_config_info(doc, config_num, info):
  15674. r"""Low-level wrapper for `::pdf_layer_config_info()`."""
  15675. return _mupdf.ll_pdf_layer_config_info(doc, config_num, info)
  15676. def ll_pdf_layer_config_ui_info(doc, ui, info):
  15677. r"""Low-level wrapper for `::pdf_layer_config_ui_info()`."""
  15678. return _mupdf.ll_pdf_layer_config_ui_info(doc, ui, info)
  15679. def ll_pdf_layer_is_enabled(doc, layer):
  15680. r"""Low-level wrapper for `::pdf_layer_is_enabled()`."""
  15681. return _mupdf.ll_pdf_layer_is_enabled(doc, layer)
  15682. def ll_pdf_layer_name(doc, layer):
  15683. r"""Low-level wrapper for `::pdf_layer_name()`."""
  15684. return _mupdf.ll_pdf_layer_name(doc, layer)
  15685. def ll_pdf_layout_fit_text(font, lang, str, bounds):
  15686. r"""Low-level wrapper for `::pdf_layout_fit_text()`."""
  15687. return _mupdf.ll_pdf_layout_fit_text(font, lang, str, bounds)
  15688. def ll_pdf_layout_text_widget(annot):
  15689. r"""Low-level wrapper for `::pdf_layout_text_widget()`."""
  15690. return _mupdf.ll_pdf_layout_text_widget(annot)
  15691. def ll_pdf_lex(f, lexbuf):
  15692. r"""Low-level wrapper for `::pdf_lex()`."""
  15693. return _mupdf.ll_pdf_lex(f, lexbuf)
  15694. def ll_pdf_lex_no_string(f, lexbuf):
  15695. r"""Low-level wrapper for `::pdf_lex_no_string()`."""
  15696. return _mupdf.ll_pdf_lex_no_string(f, lexbuf)
  15697. def ll_pdf_lexbuf_fin(lexbuf):
  15698. r"""Low-level wrapper for `::pdf_lexbuf_fin()`."""
  15699. return _mupdf.ll_pdf_lexbuf_fin(lexbuf)
  15700. def ll_pdf_lexbuf_grow(lexbuf):
  15701. r"""Low-level wrapper for `::pdf_lexbuf_grow()`."""
  15702. return _mupdf.ll_pdf_lexbuf_grow(lexbuf)
  15703. def ll_pdf_lexbuf_init(lexbuf, size):
  15704. r"""Low-level wrapper for `::pdf_lexbuf_init()`."""
  15705. return _mupdf.ll_pdf_lexbuf_init(lexbuf, size)
  15706. def ll_pdf_line_ending_from_name(end):
  15707. r"""Low-level wrapper for `::pdf_line_ending_from_name()`."""
  15708. return _mupdf.ll_pdf_line_ending_from_name(end)
  15709. def ll_pdf_line_ending_from_string(end):
  15710. r"""Low-level wrapper for `::pdf_line_ending_from_string()`."""
  15711. return _mupdf.ll_pdf_line_ending_from_string(end)
  15712. def ll_pdf_load_builtin_cmap(name):
  15713. r"""Low-level wrapper for `::pdf_load_builtin_cmap()`."""
  15714. return _mupdf.ll_pdf_load_builtin_cmap(name)
  15715. def ll_pdf_load_cmap(file):
  15716. r"""Low-level wrapper for `::pdf_load_cmap()`."""
  15717. return _mupdf.ll_pdf_load_cmap(file)
  15718. def ll_pdf_load_colorspace(obj):
  15719. r"""Low-level wrapper for `::pdf_load_colorspace()`."""
  15720. return _mupdf.ll_pdf_load_colorspace(obj)
  15721. def ll_pdf_load_compressed_inline_image(doc, dict, length, cstm, indexed, image):
  15722. r"""Low-level wrapper for `::pdf_load_compressed_inline_image()`."""
  15723. return _mupdf.ll_pdf_load_compressed_inline_image(doc, dict, length, cstm, indexed, image)
  15724. def ll_pdf_load_compressed_stream(doc, num, worst_case):
  15725. r"""Low-level wrapper for `::pdf_load_compressed_stream()`."""
  15726. return _mupdf.ll_pdf_load_compressed_stream(doc, num, worst_case)
  15727. def ll_pdf_load_default_colorspaces(doc, page):
  15728. r"""Low-level wrapper for `::pdf_load_default_colorspaces()`."""
  15729. return _mupdf.ll_pdf_load_default_colorspaces(doc, page)
  15730. def ll_pdf_load_embedded_cmap(doc, ref):
  15731. r"""Low-level wrapper for `::pdf_load_embedded_cmap()`."""
  15732. return _mupdf.ll_pdf_load_embedded_cmap(doc, ref)
  15733. def ll_pdf_load_embedded_file_contents(fs):
  15734. r"""Low-level wrapper for `::pdf_load_embedded_file_contents()`."""
  15735. return _mupdf.ll_pdf_load_embedded_file_contents(fs)
  15736. def ll_pdf_load_encoding(estrings, encoding):
  15737. r"""
  15738. Low-level wrapper for `::pdf_load_encoding()`.
  15739. This function has out-params. Python/C# wrappers look like:
  15740. `ll_pdf_load_encoding(const char *encoding)` => const char *estrings
  15741. """
  15742. return _mupdf.ll_pdf_load_encoding(estrings, encoding)
  15743. def ll_pdf_load_field_name(field):
  15744. r"""Low-level wrapper for `::pdf_load_field_name()`."""
  15745. return _mupdf.ll_pdf_load_field_name(field)
  15746. def ll_pdf_load_field_name2(field):
  15747. r"""Alternative to `ll_pdf_load_field_name()` that returns a std::string."""
  15748. return _mupdf.ll_pdf_load_field_name2(field)
  15749. def ll_pdf_load_font(doc, rdb, obj):
  15750. r"""Low-level wrapper for `::pdf_load_font()`."""
  15751. return _mupdf.ll_pdf_load_font(doc, rdb, obj)
  15752. def ll_pdf_load_function(ref, _in, out):
  15753. r"""Low-level wrapper for `::pdf_load_function()`."""
  15754. return _mupdf.ll_pdf_load_function(ref, _in, out)
  15755. def ll_pdf_load_hail_mary_font(doc):
  15756. r"""Low-level wrapper for `::pdf_load_hail_mary_font()`."""
  15757. return _mupdf.ll_pdf_load_hail_mary_font(doc)
  15758. def ll_pdf_load_image(doc, obj):
  15759. r"""Low-level wrapper for `::pdf_load_image()`."""
  15760. return _mupdf.ll_pdf_load_image(doc, obj)
  15761. def ll_pdf_load_inline_image(doc, rdb, dict, file):
  15762. r"""Low-level wrapper for `::pdf_load_inline_image()`."""
  15763. return _mupdf.ll_pdf_load_inline_image(doc, rdb, dict, file)
  15764. def ll_pdf_load_journal(doc, filename):
  15765. r"""Low-level wrapper for `::pdf_load_journal()`."""
  15766. return _mupdf.ll_pdf_load_journal(doc, filename)
  15767. def ll_pdf_load_link_annots(arg_1, arg_2, annots, pagenum, page_ctm):
  15768. r"""Low-level wrapper for `::pdf_load_link_annots()`."""
  15769. return _mupdf.ll_pdf_load_link_annots(arg_1, arg_2, annots, pagenum, page_ctm)
  15770. def ll_pdf_load_links(page):
  15771. r"""Low-level wrapper for `::pdf_load_links()`."""
  15772. return _mupdf.ll_pdf_load_links(page)
  15773. def ll_pdf_load_name_tree(doc, which):
  15774. r"""Low-level wrapper for `::pdf_load_name_tree()`."""
  15775. return _mupdf.ll_pdf_load_name_tree(doc, which)
  15776. def ll_pdf_load_object(doc, num):
  15777. r"""
  15778. Low-level wrapper for `::pdf_load_object()`.
  15779. Load a given object.
  15780. This can cause xref reorganisations (solidifications etc) due to
  15781. repairs, so all held pdf_xref_entries should be considered
  15782. invalid after this call (other than the returned one).
  15783. """
  15784. return _mupdf.ll_pdf_load_object(doc, num)
  15785. def ll_pdf_load_object_labels(doc):
  15786. r"""Low-level wrapper for `::pdf_load_object_labels()`."""
  15787. return _mupdf.ll_pdf_load_object_labels(doc)
  15788. def ll_pdf_load_outline(doc):
  15789. r"""Low-level wrapper for `::pdf_load_outline()`."""
  15790. return _mupdf.ll_pdf_load_outline(doc)
  15791. def ll_pdf_load_page(doc, number):
  15792. r"""Low-level wrapper for `::pdf_load_page()`."""
  15793. return _mupdf.ll_pdf_load_page(doc, number)
  15794. def ll_pdf_load_page_imp(doc, chapter, number):
  15795. r"""Low-level wrapper for `::pdf_load_page_imp()`."""
  15796. return _mupdf.ll_pdf_load_page_imp(doc, chapter, number)
  15797. def ll_pdf_load_page_tree(doc):
  15798. r"""Low-level wrapper for `::pdf_load_page_tree()`."""
  15799. return _mupdf.ll_pdf_load_page_tree(doc)
  15800. def ll_pdf_load_pattern(doc, obj):
  15801. r"""Low-level wrapper for `::pdf_load_pattern()`."""
  15802. return _mupdf.ll_pdf_load_pattern(doc, obj)
  15803. def ll_pdf_load_raw_stream(ref):
  15804. r"""Low-level wrapper for `::pdf_load_raw_stream()`."""
  15805. return _mupdf.ll_pdf_load_raw_stream(ref)
  15806. def ll_pdf_load_raw_stream_number(doc, num):
  15807. r"""Low-level wrapper for `::pdf_load_raw_stream_number()`."""
  15808. return _mupdf.ll_pdf_load_raw_stream_number(doc, num)
  15809. def ll_pdf_load_shading(doc, obj):
  15810. r"""Low-level wrapper for `::pdf_load_shading()`."""
  15811. return _mupdf.ll_pdf_load_shading(doc, obj)
  15812. def ll_pdf_load_stream(ref):
  15813. r"""Low-level wrapper for `::pdf_load_stream()`."""
  15814. return _mupdf.ll_pdf_load_stream(ref)
  15815. def ll_pdf_load_stream_number(doc, num):
  15816. r"""Low-level wrapper for `::pdf_load_stream_number()`."""
  15817. return _mupdf.ll_pdf_load_stream_number(doc, num)
  15818. def ll_pdf_load_stream_or_string_as_utf8(src):
  15819. r"""Low-level wrapper for `::pdf_load_stream_or_string_as_utf8()`."""
  15820. return _mupdf.ll_pdf_load_stream_or_string_as_utf8(src)
  15821. def ll_pdf_load_system_cmap(name):
  15822. r"""Low-level wrapper for `::pdf_load_system_cmap()`."""
  15823. return _mupdf.ll_pdf_load_system_cmap(name)
  15824. def ll_pdf_load_to_unicode(doc, font, strings, collection, cmapstm):
  15825. r"""
  15826. Low-level wrapper for `::pdf_load_to_unicode()`.
  15827. This function has out-params. Python/C# wrappers look like:
  15828. `ll_pdf_load_to_unicode(::pdf_document *doc, ::pdf_font_desc *font, char *collection, ::pdf_obj *cmapstm)` => const char *strings
  15829. """
  15830. return _mupdf.ll_pdf_load_to_unicode(doc, font, strings, collection, cmapstm)
  15831. def ll_pdf_load_type3_font(doc, rdb, obj):
  15832. r"""Low-level wrapper for `::pdf_load_type3_font()`."""
  15833. return _mupdf.ll_pdf_load_type3_font(doc, rdb, obj)
  15834. def ll_pdf_load_type3_glyphs(doc, fontdesc):
  15835. r"""Low-level wrapper for `::pdf_load_type3_glyphs()`."""
  15836. return _mupdf.ll_pdf_load_type3_glyphs(doc, fontdesc)
  15837. def ll_pdf_load_unencrypted_object(doc, num):
  15838. r"""Low-level wrapper for `::pdf_load_unencrypted_object()`."""
  15839. return _mupdf.ll_pdf_load_unencrypted_object(doc, num)
  15840. def ll_pdf_lookup_cmap(cmap, cpt):
  15841. r"""Low-level wrapper for `::pdf_lookup_cmap()`."""
  15842. return _mupdf.ll_pdf_lookup_cmap(cmap, cpt)
  15843. def ll_pdf_lookup_cmap_full(cmap, cpt, out):
  15844. r"""
  15845. Low-level wrapper for `::pdf_lookup_cmap_full()`.
  15846. This function has out-params. Python/C# wrappers look like:
  15847. `ll_pdf_lookup_cmap_full(::pdf_cmap *cmap, unsigned int cpt)` => `(int, int out)`
  15848. """
  15849. return _mupdf.ll_pdf_lookup_cmap_full(cmap, cpt, out)
  15850. def ll_pdf_lookup_dest(doc, needle):
  15851. r"""Low-level wrapper for `::pdf_lookup_dest()`."""
  15852. return _mupdf.ll_pdf_lookup_dest(doc, needle)
  15853. def ll_pdf_lookup_field(form, name):
  15854. r"""Low-level wrapper for `::pdf_lookup_field()`."""
  15855. return _mupdf.ll_pdf_lookup_field(form, name)
  15856. def ll_pdf_lookup_hmtx(font, cid):
  15857. r"""Low-level wrapper for `::pdf_lookup_hmtx()`."""
  15858. return _mupdf.ll_pdf_lookup_hmtx(font, cid)
  15859. def ll_pdf_lookup_metadata(doc, key, ptr, size):
  15860. r"""Low-level wrapper for `::pdf_lookup_metadata()`."""
  15861. return _mupdf.ll_pdf_lookup_metadata(doc, key, ptr, size)
  15862. def ll_pdf_lookup_metadata2(doc, key):
  15863. r"""
  15864. Low-level wrapper for `::pdf_lookup_metadata2()`.
  15865. C++ alternative to `pdf_lookup_metadata()` that returns a `std::string`
  15866. or calls `fz_throw()` if not found.
  15867. """
  15868. return _mupdf.ll_pdf_lookup_metadata2(doc, key)
  15869. def ll_pdf_lookup_name(doc, which, needle):
  15870. r"""Low-level wrapper for `::pdf_lookup_name()`."""
  15871. return _mupdf.ll_pdf_lookup_name(doc, which, needle)
  15872. def ll_pdf_lookup_number(root, needle):
  15873. r"""Low-level wrapper for `::pdf_lookup_number()`."""
  15874. return _mupdf.ll_pdf_lookup_number(root, needle)
  15875. def ll_pdf_lookup_page_loc(doc, needle, parentp, indexp):
  15876. r"""
  15877. Low-level wrapper for `::pdf_lookup_page_loc()`.
  15878. This function has out-params. Python/C# wrappers look like:
  15879. `ll_pdf_lookup_page_loc(::pdf_document *doc, int needle, ::pdf_obj **parentp)` => `(pdf_obj *, int indexp)`
  15880. """
  15881. return _mupdf.ll_pdf_lookup_page_loc(doc, needle, parentp, indexp)
  15882. def ll_pdf_lookup_page_number(doc, pageobj):
  15883. r"""Low-level wrapper for `::pdf_lookup_page_number()`."""
  15884. return _mupdf.ll_pdf_lookup_page_number(doc, pageobj)
  15885. def ll_pdf_lookup_page_obj(doc, needle):
  15886. r"""Low-level wrapper for `::pdf_lookup_page_obj()`."""
  15887. return _mupdf.ll_pdf_lookup_page_obj(doc, needle)
  15888. def ll_pdf_lookup_resource(stack, type, name):
  15889. r"""Low-level wrapper for `::pdf_lookup_resource()`."""
  15890. return _mupdf.ll_pdf_lookup_resource(stack, type, name)
  15891. def ll_pdf_lookup_substitute_font(mono, serif, bold, italic, len):
  15892. r"""
  15893. Low-level wrapper for `::pdf_lookup_substitute_font()`.
  15894. This function has out-params. Python/C# wrappers look like:
  15895. `ll_pdf_lookup_substitute_font(int mono, int serif, int bold, int italic)` => `(const unsigned char *, int len)`
  15896. """
  15897. return _mupdf.ll_pdf_lookup_substitute_font(mono, serif, bold, italic, len)
  15898. def ll_pdf_lookup_vmtx(font, cid):
  15899. r"""Low-level wrapper for `::pdf_lookup_vmtx()`."""
  15900. return _mupdf.ll_pdf_lookup_vmtx(font, cid)
  15901. def ll_pdf_map_one_to_many(cmap, one, many, len):
  15902. r"""
  15903. Low-level wrapper for `::pdf_map_one_to_many()`.
  15904. This function has out-params. Python/C# wrappers look like:
  15905. `ll_pdf_map_one_to_many(::pdf_cmap *cmap, unsigned int one, size_t len)` => int many
  15906. """
  15907. return _mupdf.ll_pdf_map_one_to_many(cmap, one, many, len)
  15908. def ll_pdf_map_range_to_range(cmap, srclo, srchi, dstlo):
  15909. r"""Low-level wrapper for `::pdf_map_range_to_range()`."""
  15910. return _mupdf.ll_pdf_map_range_to_range(cmap, srclo, srchi, dstlo)
  15911. def ll_pdf_mark_bits_reset(marks):
  15912. r"""Low-level wrapper for `::pdf_mark_bits_reset()`."""
  15913. return _mupdf.ll_pdf_mark_bits_reset(marks)
  15914. def ll_pdf_mark_bits_set(marks, obj):
  15915. r"""Low-level wrapper for `::pdf_mark_bits_set()`."""
  15916. return _mupdf.ll_pdf_mark_bits_set(marks, obj)
  15917. def ll_pdf_mark_list_check(list, obj):
  15918. r"""Low-level wrapper for `::pdf_mark_list_check()`."""
  15919. return _mupdf.ll_pdf_mark_list_check(list, obj)
  15920. def ll_pdf_mark_list_free(list):
  15921. r"""Low-level wrapper for `::pdf_mark_list_free()`."""
  15922. return _mupdf.ll_pdf_mark_list_free(list)
  15923. def ll_pdf_mark_list_init(list):
  15924. r"""Low-level wrapper for `::pdf_mark_list_init()`."""
  15925. return _mupdf.ll_pdf_mark_list_init(list)
  15926. def ll_pdf_mark_list_pop(list):
  15927. r"""Low-level wrapper for `::pdf_mark_list_pop()`."""
  15928. return _mupdf.ll_pdf_mark_list_pop(list)
  15929. def ll_pdf_mark_list_push(list, obj):
  15930. r"""Low-level wrapper for `::pdf_mark_list_push()`."""
  15931. return _mupdf.ll_pdf_mark_list_push(list, obj)
  15932. def ll_pdf_mark_obj(obj):
  15933. r"""Low-level wrapper for `::pdf_mark_obj()`."""
  15934. return _mupdf.ll_pdf_mark_obj(obj)
  15935. def ll_pdf_mark_xref(doc):
  15936. r"""Low-level wrapper for `::pdf_mark_xref()`."""
  15937. return _mupdf.ll_pdf_mark_xref(doc)
  15938. def ll_pdf_metadata(doc):
  15939. r"""Low-level wrapper for `::pdf_metadata()`."""
  15940. return _mupdf.ll_pdf_metadata(doc)
  15941. def ll_pdf_minimize_document(doc):
  15942. r"""Low-level wrapper for `::pdf_minimize_document()`."""
  15943. return _mupdf.ll_pdf_minimize_document(doc)
  15944. def ll_pdf_name_eq(a, b):
  15945. r"""Low-level wrapper for `::pdf_name_eq()`."""
  15946. return _mupdf.ll_pdf_name_eq(a, b)
  15947. def ll_pdf_name_from_intent(intent):
  15948. r"""Low-level wrapper for `::pdf_name_from_intent()`."""
  15949. return _mupdf.ll_pdf_name_from_intent(intent)
  15950. def ll_pdf_name_from_line_ending(end):
  15951. r"""Low-level wrapper for `::pdf_name_from_line_ending()`."""
  15952. return _mupdf.ll_pdf_name_from_line_ending(end)
  15953. def ll_pdf_needs_password(doc):
  15954. r"""Low-level wrapper for `::pdf_needs_password()`."""
  15955. return _mupdf.ll_pdf_needs_password(doc)
  15956. def ll_pdf_new_action_from_link(doc, uri):
  15957. r"""Low-level wrapper for `::pdf_new_action_from_link()`."""
  15958. return _mupdf.ll_pdf_new_action_from_link(doc, uri)
  15959. def ll_pdf_new_array(doc, initialcap):
  15960. r"""Low-level wrapper for `::pdf_new_array()`."""
  15961. return _mupdf.ll_pdf_new_array(doc, initialcap)
  15962. def ll_pdf_new_buffer_processor(buffer, ahxencode, newlines):
  15963. r"""Low-level wrapper for `::pdf_new_buffer_processor()`."""
  15964. return _mupdf.ll_pdf_new_buffer_processor(buffer, ahxencode, newlines)
  15965. def ll_pdf_new_cmap():
  15966. r"""Low-level wrapper for `::pdf_new_cmap()`."""
  15967. return _mupdf.ll_pdf_new_cmap()
  15968. def ll_pdf_new_color_filter(doc, chain, struct_parents, transform, options, copts):
  15969. r"""Low-level wrapper for `::pdf_new_color_filter()`."""
  15970. return _mupdf.ll_pdf_new_color_filter(doc, chain, struct_parents, transform, options, copts)
  15971. def ll_pdf_new_crypt(enc, id):
  15972. r"""Low-level wrapper for `::pdf_new_crypt()`."""
  15973. return _mupdf.ll_pdf_new_crypt(enc, id)
  15974. def ll_pdf_new_date(doc, time):
  15975. r"""Low-level wrapper for `::pdf_new_date()`."""
  15976. return _mupdf.ll_pdf_new_date(doc, time)
  15977. def ll_pdf_new_dest_from_link(doc, uri, is_remote):
  15978. r"""Low-level wrapper for `::pdf_new_dest_from_link()`."""
  15979. return _mupdf.ll_pdf_new_dest_from_link(doc, uri, is_remote)
  15980. def ll_pdf_new_dict(doc, initialcap):
  15981. r"""Low-level wrapper for `::pdf_new_dict()`."""
  15982. return _mupdf.ll_pdf_new_dict(doc, initialcap)
  15983. def ll_pdf_new_display_list_from_annot(annot):
  15984. r"""Low-level wrapper for `::pdf_new_display_list_from_annot()`."""
  15985. return _mupdf.ll_pdf_new_display_list_from_annot(annot)
  15986. def ll_pdf_new_encrypt(opwd_utf8, upwd_utf8, id, permissions, algorithm):
  15987. r"""Low-level wrapper for `::pdf_new_encrypt()`."""
  15988. return _mupdf.ll_pdf_new_encrypt(opwd_utf8, upwd_utf8, id, permissions, algorithm)
  15989. def ll_pdf_new_font_desc():
  15990. r"""Low-level wrapper for `::pdf_new_font_desc()`."""
  15991. return _mupdf.ll_pdf_new_font_desc()
  15992. def ll_pdf_new_graft_map(dst):
  15993. r"""Low-level wrapper for `::pdf_new_graft_map()`."""
  15994. return _mupdf.ll_pdf_new_graft_map(dst)
  15995. def ll_pdf_new_identity_cmap(wmode, bytes):
  15996. r"""Low-level wrapper for `::pdf_new_identity_cmap()`."""
  15997. return _mupdf.ll_pdf_new_identity_cmap(wmode, bytes)
  15998. def ll_pdf_new_indirect(doc, num, gen):
  15999. r"""Low-level wrapper for `::pdf_new_indirect()`."""
  16000. return _mupdf.ll_pdf_new_indirect(doc, num, gen)
  16001. def ll_pdf_new_int(i):
  16002. r"""Low-level wrapper for `::pdf_new_int()`."""
  16003. return _mupdf.ll_pdf_new_int(i)
  16004. def ll_pdf_new_link(page, rect, uri, obj):
  16005. r"""Low-level wrapper for `::pdf_new_link()`."""
  16006. return _mupdf.ll_pdf_new_link(page, rect, uri, obj)
  16007. def ll_pdf_new_local_xref(doc):
  16008. r"""Low-level wrapper for `::pdf_new_local_xref()`."""
  16009. return _mupdf.ll_pdf_new_local_xref(doc)
  16010. def ll_pdf_new_mark_bits(doc):
  16011. r"""Low-level wrapper for `::pdf_new_mark_bits()`."""
  16012. return _mupdf.ll_pdf_new_mark_bits(doc)
  16013. def ll_pdf_new_matrix(doc, mtx):
  16014. r"""Low-level wrapper for `::pdf_new_matrix()`."""
  16015. return _mupdf.ll_pdf_new_matrix(doc, mtx)
  16016. def ll_pdf_new_name(str):
  16017. r"""Low-level wrapper for `::pdf_new_name()`."""
  16018. return _mupdf.ll_pdf_new_name(str)
  16019. def ll_pdf_new_outline_iterator(doc):
  16020. r"""Low-level wrapper for `::pdf_new_outline_iterator()`."""
  16021. return _mupdf.ll_pdf_new_outline_iterator(doc)
  16022. def ll_pdf_new_output_processor(out, ahxencode, newlines):
  16023. r"""Low-level wrapper for `::pdf_new_output_processor()`."""
  16024. return _mupdf.ll_pdf_new_output_processor(out, ahxencode, newlines)
  16025. def ll_pdf_new_pdf_device(doc, topctm, resources, contents):
  16026. r"""Low-level wrapper for `::pdf_new_pdf_device()`."""
  16027. return _mupdf.ll_pdf_new_pdf_device(doc, topctm, resources, contents)
  16028. def ll_pdf_new_pixmap_from_annot(annot, ctm, cs, seps, alpha):
  16029. r"""Low-level wrapper for `::pdf_new_pixmap_from_annot()`."""
  16030. return _mupdf.ll_pdf_new_pixmap_from_annot(annot, ctm, cs, seps, alpha)
  16031. def ll_pdf_new_pixmap_from_page_contents_with_separations_and_usage(page, ctm, cs, seps, alpha, usage, box):
  16032. r"""Low-level wrapper for `::pdf_new_pixmap_from_page_contents_with_separations_and_usage()`."""
  16033. return _mupdf.ll_pdf_new_pixmap_from_page_contents_with_separations_and_usage(page, ctm, cs, seps, alpha, usage, box)
  16034. def ll_pdf_new_pixmap_from_page_contents_with_usage(page, ctm, cs, alpha, usage, box):
  16035. r"""Low-level wrapper for `::pdf_new_pixmap_from_page_contents_with_usage()`."""
  16036. return _mupdf.ll_pdf_new_pixmap_from_page_contents_with_usage(page, ctm, cs, alpha, usage, box)
  16037. def ll_pdf_new_pixmap_from_page_with_separations_and_usage(page, ctm, cs, seps, alpha, usage, box):
  16038. r"""Low-level wrapper for `::pdf_new_pixmap_from_page_with_separations_and_usage()`."""
  16039. return _mupdf.ll_pdf_new_pixmap_from_page_with_separations_and_usage(page, ctm, cs, seps, alpha, usage, box)
  16040. def ll_pdf_new_pixmap_from_page_with_usage(page, ctm, cs, alpha, usage, box):
  16041. r"""Low-level wrapper for `::pdf_new_pixmap_from_page_with_usage()`."""
  16042. return _mupdf.ll_pdf_new_pixmap_from_page_with_usage(page, ctm, cs, alpha, usage, box)
  16043. def ll_pdf_new_point(doc, point):
  16044. r"""Low-level wrapper for `::pdf_new_point()`."""
  16045. return _mupdf.ll_pdf_new_point(doc, point)
  16046. def ll_pdf_new_processor(size):
  16047. r"""Low-level wrapper for `::pdf_new_processor()`."""
  16048. return _mupdf.ll_pdf_new_processor(size)
  16049. def ll_pdf_new_real(f):
  16050. r"""Low-level wrapper for `::pdf_new_real()`."""
  16051. return _mupdf.ll_pdf_new_real(f)
  16052. def ll_pdf_new_rect(doc, rect):
  16053. r"""Low-level wrapper for `::pdf_new_rect()`."""
  16054. return _mupdf.ll_pdf_new_rect(doc, rect)
  16055. def ll_pdf_new_run_processor(doc, dev, ctm, struct_parent, usage, gstate, default_cs, cookie, fill_gstate, stroke_gstate):
  16056. r"""Low-level wrapper for `::pdf_new_run_processor()`."""
  16057. return _mupdf.ll_pdf_new_run_processor(doc, dev, ctm, struct_parent, usage, gstate, default_cs, cookie, fill_gstate, stroke_gstate)
  16058. def ll_pdf_new_sanitize_filter(doc, chain, struct_parents, transform, options, sopts):
  16059. r"""Low-level wrapper for `::pdf_new_sanitize_filter()`."""
  16060. return _mupdf.ll_pdf_new_sanitize_filter(doc, chain, struct_parents, transform, options, sopts)
  16061. def ll_pdf_new_stext_page_from_annot(annot, options):
  16062. r"""Low-level wrapper for `::pdf_new_stext_page_from_annot()`."""
  16063. return _mupdf.ll_pdf_new_stext_page_from_annot(annot, options)
  16064. def ll_pdf_new_string(str, len):
  16065. r"""Low-level wrapper for `::pdf_new_string()`."""
  16066. return _mupdf.ll_pdf_new_string(str, len)
  16067. def ll_pdf_new_text_string(s):
  16068. r"""Low-level wrapper for `::pdf_new_text_string()`."""
  16069. return _mupdf.ll_pdf_new_text_string(s)
  16070. def ll_pdf_new_uri_from_explicit_dest(dest):
  16071. r"""Low-level wrapper for `::pdf_new_uri_from_explicit_dest()`."""
  16072. return _mupdf.ll_pdf_new_uri_from_explicit_dest(dest)
  16073. def ll_pdf_new_uri_from_path_and_explicit_dest(path, dest):
  16074. r"""Low-level wrapper for `::pdf_new_uri_from_path_and_explicit_dest()`."""
  16075. return _mupdf.ll_pdf_new_uri_from_path_and_explicit_dest(path, dest)
  16076. def ll_pdf_new_uri_from_path_and_named_dest(path, name):
  16077. r"""Low-level wrapper for `::pdf_new_uri_from_path_and_named_dest()`."""
  16078. return _mupdf.ll_pdf_new_uri_from_path_and_named_dest(path, name)
  16079. def ll_pdf_new_utf8_from_pdf_stream_obj(src):
  16080. r"""Low-level wrapper for `::pdf_new_utf8_from_pdf_stream_obj()`."""
  16081. return _mupdf.ll_pdf_new_utf8_from_pdf_stream_obj(src)
  16082. def ll_pdf_new_utf8_from_pdf_string(srcptr, srclen):
  16083. r"""Low-level wrapper for `::pdf_new_utf8_from_pdf_string()`."""
  16084. return _mupdf.ll_pdf_new_utf8_from_pdf_string(srcptr, srclen)
  16085. def ll_pdf_new_utf8_from_pdf_string_obj(src):
  16086. r"""Low-level wrapper for `::pdf_new_utf8_from_pdf_string_obj()`."""
  16087. return _mupdf.ll_pdf_new_utf8_from_pdf_string_obj(src)
  16088. def ll_pdf_new_xobject(doc, bbox, matrix, res, buffer):
  16089. r"""Low-level wrapper for `::pdf_new_xobject()`."""
  16090. return _mupdf.ll_pdf_new_xobject(doc, bbox, matrix, res, buffer)
  16091. def ll_pdf_next_annot(annot):
  16092. r"""Low-level wrapper for `::pdf_next_annot()`."""
  16093. return _mupdf.ll_pdf_next_annot(annot)
  16094. def ll_pdf_next_widget(previous):
  16095. r"""Low-level wrapper for `::pdf_next_widget()`."""
  16096. return _mupdf.ll_pdf_next_widget(previous)
  16097. def ll_pdf_nuke_annots(page):
  16098. r"""Low-level wrapper for `::pdf_nuke_annots()`."""
  16099. return _mupdf.ll_pdf_nuke_annots(page)
  16100. def ll_pdf_nuke_links(page):
  16101. r"""Low-level wrapper for `::pdf_nuke_links()`."""
  16102. return _mupdf.ll_pdf_nuke_links(page)
  16103. def ll_pdf_nuke_page(page):
  16104. r"""Low-level wrapper for `::pdf_nuke_page()`."""
  16105. return _mupdf.ll_pdf_nuke_page(page)
  16106. def ll_pdf_obj_is_dirty(obj):
  16107. r"""Low-level wrapper for `::pdf_obj_is_dirty()`."""
  16108. return _mupdf.ll_pdf_obj_is_dirty(obj)
  16109. def ll_pdf_obj_is_incremental(obj):
  16110. r"""Low-level wrapper for `::pdf_obj_is_incremental()`."""
  16111. return _mupdf.ll_pdf_obj_is_incremental(obj)
  16112. def ll_pdf_obj_marked(obj):
  16113. r"""Low-level wrapper for `::pdf_obj_marked()`."""
  16114. return _mupdf.ll_pdf_obj_marked(obj)
  16115. def ll_pdf_obj_memo(obj, bit, memo):
  16116. r"""
  16117. Low-level wrapper for `::pdf_obj_memo()`.
  16118. This function has out-params. Python/C# wrappers look like:
  16119. `ll_pdf_obj_memo(::pdf_obj *obj, int bit)` => `(int, int memo)`
  16120. """
  16121. return _mupdf.ll_pdf_obj_memo(obj, bit, memo)
  16122. def ll_pdf_obj_num_is_stream(doc, num):
  16123. r"""Low-level wrapper for `::pdf_obj_num_is_stream()`."""
  16124. return _mupdf.ll_pdf_obj_num_is_stream(doc, num)
  16125. def ll_pdf_obj_parent_num(obj):
  16126. r"""Low-level wrapper for `::pdf_obj_parent_num()`."""
  16127. return _mupdf.ll_pdf_obj_parent_num(obj)
  16128. def ll_pdf_obj_refs(ref):
  16129. r"""Low-level wrapper for `::pdf_obj_refs()`."""
  16130. return _mupdf.ll_pdf_obj_refs(ref)
  16131. def ll_pdf_objcmp(a, b):
  16132. r"""Low-level wrapper for `::pdf_objcmp()`."""
  16133. return _mupdf.ll_pdf_objcmp(a, b)
  16134. def ll_pdf_objcmp_deep(a, b):
  16135. r"""Low-level wrapper for `::pdf_objcmp_deep()`."""
  16136. return _mupdf.ll_pdf_objcmp_deep(a, b)
  16137. def ll_pdf_objcmp_resolve(a, b):
  16138. r"""Low-level wrapper for `::pdf_objcmp_resolve()`."""
  16139. return _mupdf.ll_pdf_objcmp_resolve(a, b)
  16140. def ll_pdf_object_exists(doc, num):
  16141. r"""Low-level wrapper for `::pdf_object_exists()`."""
  16142. return _mupdf.ll_pdf_object_exists(doc, num)
  16143. def ll_pdf_open_contents_stream(doc, obj):
  16144. r"""Low-level wrapper for `::pdf_open_contents_stream()`."""
  16145. return _mupdf.ll_pdf_open_contents_stream(doc, obj)
  16146. def ll_pdf_open_crypt(chain, crypt, num, gen):
  16147. r"""Low-level wrapper for `::pdf_open_crypt()`."""
  16148. return _mupdf.ll_pdf_open_crypt(chain, crypt, num, gen)
  16149. def ll_pdf_open_crypt_with_filter(chain, crypt, name, num, gen):
  16150. r"""Low-level wrapper for `::pdf_open_crypt_with_filter()`."""
  16151. return _mupdf.ll_pdf_open_crypt_with_filter(chain, crypt, name, num, gen)
  16152. def ll_pdf_open_document(filename):
  16153. r"""Low-level wrapper for `::pdf_open_document()`."""
  16154. return _mupdf.ll_pdf_open_document(filename)
  16155. def ll_pdf_open_document_with_stream(file):
  16156. r"""Low-level wrapper for `::pdf_open_document_with_stream()`."""
  16157. return _mupdf.ll_pdf_open_document_with_stream(file)
  16158. def ll_pdf_open_inline_stream(doc, stmobj, length, chain, params):
  16159. r"""Low-level wrapper for `::pdf_open_inline_stream()`."""
  16160. return _mupdf.ll_pdf_open_inline_stream(doc, stmobj, length, chain, params)
  16161. def ll_pdf_open_raw_stream(ref):
  16162. r"""Low-level wrapper for `::pdf_open_raw_stream()`."""
  16163. return _mupdf.ll_pdf_open_raw_stream(ref)
  16164. def ll_pdf_open_raw_stream_number(doc, num):
  16165. r"""Low-level wrapper for `::pdf_open_raw_stream_number()`."""
  16166. return _mupdf.ll_pdf_open_raw_stream_number(doc, num)
  16167. def ll_pdf_open_stream(ref):
  16168. r"""Low-level wrapper for `::pdf_open_stream()`."""
  16169. return _mupdf.ll_pdf_open_stream(ref)
  16170. def ll_pdf_open_stream_number(doc, num):
  16171. r"""Low-level wrapper for `::pdf_open_stream_number()`."""
  16172. return _mupdf.ll_pdf_open_stream_number(doc, num)
  16173. def ll_pdf_open_stream_with_offset(doc, num, dict, stm_ofs):
  16174. r"""Low-level wrapper for `::pdf_open_stream_with_offset()`."""
  16175. return _mupdf.ll_pdf_open_stream_with_offset(doc, num, dict, stm_ofs)
  16176. def ll_pdf_page_associated_file(page, idx):
  16177. r"""Low-level wrapper for `::pdf_page_associated_file()`."""
  16178. return _mupdf.ll_pdf_page_associated_file(page, idx)
  16179. def ll_pdf_page_contents(page):
  16180. r"""Low-level wrapper for `::pdf_page_contents()`."""
  16181. return _mupdf.ll_pdf_page_contents(page)
  16182. def ll_pdf_page_event_close(page):
  16183. r"""Low-level wrapper for `::pdf_page_event_close()`."""
  16184. return _mupdf.ll_pdf_page_event_close(page)
  16185. def ll_pdf_page_event_open(page):
  16186. r"""Low-level wrapper for `::pdf_page_event_open()`."""
  16187. return _mupdf.ll_pdf_page_event_open(page)
  16188. def ll_pdf_page_from_fz_page(ptr):
  16189. r"""Low-level wrapper for `::pdf_page_from_fz_page()`."""
  16190. return _mupdf.ll_pdf_page_from_fz_page(ptr)
  16191. def ll_pdf_page_group(page):
  16192. r"""Low-level wrapper for `::pdf_page_group()`."""
  16193. return _mupdf.ll_pdf_page_group(page)
  16194. def ll_pdf_page_has_transparency(page):
  16195. r"""Low-level wrapper for `::pdf_page_has_transparency()`."""
  16196. return _mupdf.ll_pdf_page_has_transparency(page)
  16197. def ll_pdf_page_label(doc, page, buf, size):
  16198. r"""Low-level wrapper for `::pdf_page_label()`."""
  16199. return _mupdf.ll_pdf_page_label(doc, page, buf, size)
  16200. def ll_pdf_page_label_imp(doc, chapter, page, buf, size):
  16201. r"""Low-level wrapper for `::pdf_page_label_imp()`."""
  16202. return _mupdf.ll_pdf_page_label_imp(doc, chapter, page, buf, size)
  16203. def ll_pdf_page_obj_transform(pageobj, outbox, outctm):
  16204. r"""Low-level wrapper for `::pdf_page_obj_transform()`."""
  16205. return _mupdf.ll_pdf_page_obj_transform(pageobj, outbox, outctm)
  16206. def ll_pdf_page_obj_transform_box(pageobj, outbox, out, box):
  16207. r"""Low-level wrapper for `::pdf_page_obj_transform_box()`."""
  16208. return _mupdf.ll_pdf_page_obj_transform_box(pageobj, outbox, out, box)
  16209. def ll_pdf_page_presentation(page, transition, duration):
  16210. r"""
  16211. Low-level wrapper for `::pdf_page_presentation()`.
  16212. This function has out-params. Python/C# wrappers look like:
  16213. `ll_pdf_page_presentation(::pdf_page *page, ::fz_transition *transition)` => `(fz_transition *, float duration)`
  16214. """
  16215. return _mupdf.ll_pdf_page_presentation(page, transition, duration)
  16216. def ll_pdf_page_resources(page):
  16217. r"""Low-level wrapper for `::pdf_page_resources()`."""
  16218. return _mupdf.ll_pdf_page_resources(page)
  16219. def ll_pdf_page_separations(page):
  16220. r"""Low-level wrapper for `::pdf_page_separations()`."""
  16221. return _mupdf.ll_pdf_page_separations(page)
  16222. def ll_pdf_page_transform(page, mediabox, ctm):
  16223. r"""Low-level wrapper for `::pdf_page_transform()`."""
  16224. return _mupdf.ll_pdf_page_transform(page, mediabox, ctm)
  16225. def ll_pdf_page_transform_box(page, mediabox, ctm, box):
  16226. r"""Low-level wrapper for `::pdf_page_transform_box()`."""
  16227. return _mupdf.ll_pdf_page_transform_box(page, mediabox, ctm, box)
  16228. def ll_pdf_page_write(doc, mediabox, presources, pcontents):
  16229. r"""
  16230. Low-level wrapper for `::pdf_page_write()`.
  16231. This function has out-params. Python/C# wrappers look like:
  16232. `ll_pdf_page_write(::pdf_document *doc, ::fz_rect mediabox, ::pdf_obj **presources, ::fz_buffer **pcontents)` => `(fz_device *)`
  16233. """
  16234. return _mupdf.ll_pdf_page_write(doc, mediabox, presources, pcontents)
  16235. def ll_pdf_parse_array(doc, f, buf):
  16236. r"""Low-level wrapper for `::pdf_parse_array()`."""
  16237. return _mupdf.ll_pdf_parse_array(doc, f, buf)
  16238. def ll_pdf_parse_date(s):
  16239. r"""Low-level wrapper for `::pdf_parse_date()`."""
  16240. return _mupdf.ll_pdf_parse_date(s)
  16241. def ll_pdf_parse_default_appearance(da, font, size, n, color):
  16242. r"""
  16243. Low-level wrapper for `::pdf_parse_default_appearance()`.
  16244. This function has out-params. Python/C# wrappers look like:
  16245. `ll_pdf_parse_default_appearance(const char *da, float color[4])` => `(const char *font, float size, int n)`
  16246. """
  16247. return _mupdf.ll_pdf_parse_default_appearance(da, font, size, n, color)
  16248. def ll_pdf_parse_default_appearance_unmapped(da, font_name, font_name_len, size, n, color):
  16249. r"""
  16250. Low-level wrapper for `::pdf_parse_default_appearance_unmapped()`.
  16251. This function has out-params. Python/C# wrappers look like:
  16252. `ll_pdf_parse_default_appearance_unmapped(const char *da, char *font_name, int font_name_len, float color[4])` => `(float size, int n)`
  16253. """
  16254. return _mupdf.ll_pdf_parse_default_appearance_unmapped(da, font_name, font_name_len, size, n, color)
  16255. def ll_pdf_parse_dict(doc, f, buf):
  16256. r"""Low-level wrapper for `::pdf_parse_dict()`."""
  16257. return _mupdf.ll_pdf_parse_dict(doc, f, buf)
  16258. def ll_pdf_parse_ind_obj(doc, f, num, gen, stm_ofs, try_repair):
  16259. r"""
  16260. Low-level wrapper for `::pdf_parse_ind_obj()`.
  16261. This function has out-params. Python/C# wrappers look like:
  16262. `ll_pdf_parse_ind_obj(::pdf_document *doc, ::fz_stream *f)` => `(pdf_obj *, int num, int gen, int64_t stm_ofs, int try_repair)`
  16263. """
  16264. return _mupdf.ll_pdf_parse_ind_obj(doc, f, num, gen, stm_ofs, try_repair)
  16265. def ll_pdf_parse_journal_obj(doc, stm, onum, ostm, newobj):
  16266. r"""
  16267. Low-level wrapper for `::pdf_parse_journal_obj()`.
  16268. This function has out-params. Python/C# wrappers look like:
  16269. `ll_pdf_parse_journal_obj(::pdf_document *doc, ::fz_stream *stm, ::fz_buffer **ostm)` => `(pdf_obj *, int onum, int newobj)`
  16270. """
  16271. return _mupdf.ll_pdf_parse_journal_obj(doc, stm, onum, ostm, newobj)
  16272. def ll_pdf_parse_stm_obj(doc, f, buf):
  16273. r"""Low-level wrapper for `::pdf_parse_stm_obj()`."""
  16274. return _mupdf.ll_pdf_parse_stm_obj(doc, f, buf)
  16275. def ll_pdf_parse_write_options(opts, args):
  16276. r"""Low-level wrapper for `::pdf_parse_write_options()`."""
  16277. return _mupdf.ll_pdf_parse_write_options(opts, args)
  16278. def ll_pdf_pin_document(obj):
  16279. r"""Low-level wrapper for `::pdf_pin_document()`."""
  16280. return _mupdf.ll_pdf_pin_document(obj)
  16281. def ll_pdf_preview_signature_as_display_list(w, h, lang, signer, appearance_flags, graphic, reason, location):
  16282. r"""Low-level wrapper for `::pdf_preview_signature_as_display_list()`."""
  16283. return _mupdf.ll_pdf_preview_signature_as_display_list(w, h, lang, signer, appearance_flags, graphic, reason, location)
  16284. def ll_pdf_preview_signature_as_pixmap(w, h, lang, signer, appearance_flags, graphic, reason, location):
  16285. r"""Low-level wrapper for `::pdf_preview_signature_as_pixmap()`."""
  16286. return _mupdf.ll_pdf_preview_signature_as_pixmap(w, h, lang, signer, appearance_flags, graphic, reason, location)
  16287. def ll_pdf_print_crypt(out, crypt):
  16288. r"""Low-level wrapper for `::pdf_print_crypt()`."""
  16289. return _mupdf.ll_pdf_print_crypt(out, crypt)
  16290. def ll_pdf_print_default_appearance(buf, nbuf, font, size, n, color):
  16291. r"""Low-level wrapper for `::pdf_print_default_appearance()`."""
  16292. return _mupdf.ll_pdf_print_default_appearance(buf, nbuf, font, size, n, color)
  16293. def ll_pdf_print_encrypted_obj(out, obj, tight, ascii, crypt, num, gen, sep):
  16294. r"""
  16295. Low-level wrapper for `::pdf_print_encrypted_obj()`.
  16296. This function has out-params. Python/C# wrappers look like:
  16297. `ll_pdf_print_encrypted_obj(::fz_output *out, ::pdf_obj *obj, int tight, int ascii, ::pdf_crypt *crypt, int num, int gen)` => int sep
  16298. """
  16299. return _mupdf.ll_pdf_print_encrypted_obj(out, obj, tight, ascii, crypt, num, gen, sep)
  16300. def ll_pdf_print_font(out, fontdesc):
  16301. r"""Low-level wrapper for `::pdf_print_font()`."""
  16302. return _mupdf.ll_pdf_print_font(out, fontdesc)
  16303. def ll_pdf_print_obj(out, obj, tight, ascii):
  16304. r"""Low-level wrapper for `::pdf_print_obj()`."""
  16305. return _mupdf.ll_pdf_print_obj(out, obj, tight, ascii)
  16306. def ll_pdf_process_annot(proc, annot, cookie):
  16307. r"""Low-level wrapper for `::pdf_process_annot()`."""
  16308. return _mupdf.ll_pdf_process_annot(proc, annot, cookie)
  16309. def ll_pdf_process_contents(proc, doc, res, stm, cookie, out_res):
  16310. r"""
  16311. Low-level wrapper for `::pdf_process_contents()`.
  16312. This function has out-params. Python/C# wrappers look like:
  16313. `ll_pdf_process_contents(::pdf_processor *proc, ::pdf_document *doc, ::pdf_obj *res, ::pdf_obj *stm, ::fz_cookie *cookie, ::pdf_obj **out_res)` =>
  16314. """
  16315. return _mupdf.ll_pdf_process_contents(proc, doc, res, stm, cookie, out_res)
  16316. def ll_pdf_process_glyph(proc, doc, resources, contents):
  16317. r"""Low-level wrapper for `::pdf_process_glyph()`."""
  16318. return _mupdf.ll_pdf_process_glyph(proc, doc, resources, contents)
  16319. def ll_pdf_process_raw_contents(proc, doc, stmobj, cookie):
  16320. r"""Low-level wrapper for `::pdf_process_raw_contents()`."""
  16321. return _mupdf.ll_pdf_process_raw_contents(proc, doc, stmobj, cookie)
  16322. def ll_pdf_processor_pop_resources(proc):
  16323. r"""Low-level wrapper for `::pdf_processor_pop_resources()`."""
  16324. return _mupdf.ll_pdf_processor_pop_resources(proc)
  16325. def ll_pdf_processor_push_resources(proc, res):
  16326. r"""Low-level wrapper for `::pdf_processor_push_resources()`."""
  16327. return _mupdf.ll_pdf_processor_push_resources(proc, res)
  16328. def ll_pdf_progressive_advance(doc, pagenum):
  16329. r"""Low-level wrapper for `::pdf_progressive_advance()`."""
  16330. return _mupdf.ll_pdf_progressive_advance(doc, pagenum)
  16331. def ll_pdf_purge_local_resources(doc):
  16332. r"""Low-level wrapper for `::pdf_purge_local_resources()`."""
  16333. return _mupdf.ll_pdf_purge_local_resources(doc)
  16334. def ll_pdf_purge_locals_from_store(doc):
  16335. r"""Low-level wrapper for `::pdf_purge_locals_from_store()`."""
  16336. return _mupdf.ll_pdf_purge_locals_from_store(doc)
  16337. def ll_pdf_purge_object_from_store(doc, num):
  16338. r"""Low-level wrapper for `::pdf_purge_object_from_store()`."""
  16339. return _mupdf.ll_pdf_purge_object_from_store(doc, num)
  16340. def ll_pdf_read_journal(doc, stm):
  16341. r"""Low-level wrapper for `::pdf_read_journal()`."""
  16342. return _mupdf.ll_pdf_read_journal(doc, stm)
  16343. def ll_pdf_read_ocg(doc):
  16344. r"""Low-level wrapper for `::pdf_read_ocg()`."""
  16345. return _mupdf.ll_pdf_read_ocg(doc)
  16346. def ll_pdf_rearrange_pages(doc, count, pages, structure):
  16347. r"""Low-level wrapper for `::pdf_rearrange_pages()`."""
  16348. return _mupdf.ll_pdf_rearrange_pages(doc, count, pages, structure)
  16349. def ll_pdf_rearrange_pages2(doc, pages, structure):
  16350. r"""Low-level wrapper for `::pdf_rearrange_pages2()`. Swig-friendly wrapper for pdf_rearrange_pages()."""
  16351. return _mupdf.ll_pdf_rearrange_pages2(doc, pages, structure)
  16352. def ll_pdf_recolor_page(doc, pagenum, opts):
  16353. r"""Low-level wrapper for `::pdf_recolor_page()`."""
  16354. return _mupdf.ll_pdf_recolor_page(doc, pagenum, opts)
  16355. def ll_pdf_recolor_shade(shade, reshade, opaque):
  16356. r"""
  16357. Low-level wrapper for `::pdf_recolor_shade()`.
  16358. Recolor a shade.
  16359. """
  16360. return _mupdf.ll_pdf_recolor_shade(shade, reshade, opaque)
  16361. def ll_pdf_redact_page(doc, page, opts):
  16362. r"""Low-level wrapper for `::pdf_redact_page()`."""
  16363. return _mupdf.ll_pdf_redact_page(doc, page, opts)
  16364. def ll_pdf_redo(doc):
  16365. r"""Low-level wrapper for `::pdf_redo()`."""
  16366. return _mupdf.ll_pdf_redo(doc)
  16367. def ll_pdf_remove_item(drop, key):
  16368. r"""Low-level wrapper for `::pdf_remove_item()`."""
  16369. return _mupdf.ll_pdf_remove_item(drop, key)
  16370. def ll_pdf_remove_output_intents(doc):
  16371. r"""Low-level wrapper for `::pdf_remove_output_intents()`."""
  16372. return _mupdf.ll_pdf_remove_output_intents(doc)
  16373. def ll_pdf_repair_obj(doc, buf, stmofsp, stmlenp, encrypt, id, page, tmpofs, root):
  16374. r"""
  16375. Low-level wrapper for `::pdf_repair_obj()`.
  16376. This function has out-params. Python/C# wrappers look like:
  16377. `ll_pdf_repair_obj(::pdf_document *doc, ::pdf_lexbuf *buf, ::pdf_obj **encrypt, ::pdf_obj **id, ::pdf_obj **page, ::pdf_obj **root)` => `(int, int64_t stmofsp, int64_t stmlenp, int64_t tmpofs)`
  16378. """
  16379. return _mupdf.ll_pdf_repair_obj(doc, buf, stmofsp, stmlenp, encrypt, id, page, tmpofs, root)
  16380. def ll_pdf_repair_xref(doc):
  16381. r"""Low-level wrapper for `::pdf_repair_xref()`."""
  16382. return _mupdf.ll_pdf_repair_xref(doc)
  16383. def ll_pdf_replace_xref(doc, entries, n):
  16384. r"""Low-level wrapper for `::pdf_replace_xref()`."""
  16385. return _mupdf.ll_pdf_replace_xref(doc, entries, n)
  16386. def ll_pdf_reset_form(doc, fields, exclude):
  16387. r"""Low-level wrapper for `::pdf_reset_form()`."""
  16388. return _mupdf.ll_pdf_reset_form(doc, fields, exclude)
  16389. def ll_pdf_reset_processor(proc):
  16390. r"""Low-level wrapper for `::pdf_reset_processor()`."""
  16391. return _mupdf.ll_pdf_reset_processor(proc)
  16392. def ll_pdf_resolve_indirect(ref):
  16393. r"""
  16394. Low-level wrapper for `::pdf_resolve_indirect()`.
  16395. Resolve an indirect object (or chain of objects).
  16396. This can cause xref reorganisations (solidifications etc) due to
  16397. repairs, so all held pdf_xref_entries should be considered
  16398. invalid after this call (other than the returned one).
  16399. """
  16400. return _mupdf.ll_pdf_resolve_indirect(ref)
  16401. def ll_pdf_resolve_indirect_chain(ref):
  16402. r"""Low-level wrapper for `::pdf_resolve_indirect_chain()`."""
  16403. return _mupdf.ll_pdf_resolve_indirect_chain(ref)
  16404. def ll_pdf_resolve_link(doc, uri, xp, yp):
  16405. r"""
  16406. Low-level wrapper for `::pdf_resolve_link()`.
  16407. This function has out-params. Python/C# wrappers look like:
  16408. `ll_pdf_resolve_link(::pdf_document *doc, const char *uri)` => `(int, float xp, float yp)`
  16409. """
  16410. return _mupdf.ll_pdf_resolve_link(doc, uri, xp, yp)
  16411. def ll_pdf_resolve_link_dest(doc, uri):
  16412. r"""Low-level wrapper for `::pdf_resolve_link_dest()`."""
  16413. return _mupdf.ll_pdf_resolve_link_dest(doc, uri)
  16414. def ll_pdf_rewrite_images(doc, opts):
  16415. r"""Low-level wrapper for `::pdf_rewrite_images()`."""
  16416. return _mupdf.ll_pdf_rewrite_images(doc, opts)
  16417. def ll_pdf_run_annot(annot, dev, ctm, cookie):
  16418. r"""Low-level wrapper for `::pdf_run_annot()`."""
  16419. return _mupdf.ll_pdf_run_annot(annot, dev, ctm, cookie)
  16420. def ll_pdf_run_document_structure(doc, dev, cookie):
  16421. r"""Low-level wrapper for `::pdf_run_document_structure()`."""
  16422. return _mupdf.ll_pdf_run_document_structure(doc, dev, cookie)
  16423. def ll_pdf_run_glyph(doc, resources, contents, dev, ctm, gstate, default_cs, fill_gstate, stroke_gstate):
  16424. r"""Low-level wrapper for `::pdf_run_glyph()`."""
  16425. return _mupdf.ll_pdf_run_glyph(doc, resources, contents, dev, ctm, gstate, default_cs, fill_gstate, stroke_gstate)
  16426. def ll_pdf_run_page(page, dev, ctm, cookie):
  16427. r"""Low-level wrapper for `::pdf_run_page()`."""
  16428. return _mupdf.ll_pdf_run_page(page, dev, ctm, cookie)
  16429. def ll_pdf_run_page_annots(page, dev, ctm, cookie):
  16430. r"""Low-level wrapper for `::pdf_run_page_annots()`."""
  16431. return _mupdf.ll_pdf_run_page_annots(page, dev, ctm, cookie)
  16432. def ll_pdf_run_page_annots_with_usage(page, dev, ctm, usage, cookie):
  16433. r"""Low-level wrapper for `::pdf_run_page_annots_with_usage()`."""
  16434. return _mupdf.ll_pdf_run_page_annots_with_usage(page, dev, ctm, usage, cookie)
  16435. def ll_pdf_run_page_contents(page, dev, ctm, cookie):
  16436. r"""Low-level wrapper for `::pdf_run_page_contents()`."""
  16437. return _mupdf.ll_pdf_run_page_contents(page, dev, ctm, cookie)
  16438. def ll_pdf_run_page_contents_with_usage(page, dev, ctm, usage, cookie):
  16439. r"""Low-level wrapper for `::pdf_run_page_contents_with_usage()`."""
  16440. return _mupdf.ll_pdf_run_page_contents_with_usage(page, dev, ctm, usage, cookie)
  16441. def ll_pdf_run_page_widgets(page, dev, ctm, cookie):
  16442. r"""Low-level wrapper for `::pdf_run_page_widgets()`."""
  16443. return _mupdf.ll_pdf_run_page_widgets(page, dev, ctm, cookie)
  16444. def ll_pdf_run_page_widgets_with_usage(page, dev, ctm, usage, cookie):
  16445. r"""Low-level wrapper for `::pdf_run_page_widgets_with_usage()`."""
  16446. return _mupdf.ll_pdf_run_page_widgets_with_usage(page, dev, ctm, usage, cookie)
  16447. def ll_pdf_run_page_with_usage(page, dev, ctm, usage, cookie):
  16448. r"""Low-level wrapper for `::pdf_run_page_with_usage()`."""
  16449. return _mupdf.ll_pdf_run_page_with_usage(page, dev, ctm, usage, cookie)
  16450. def ll_pdf_sample_shade_function(samples, n, funcs, func, t0, t1):
  16451. r"""
  16452. Low-level wrapper for `::pdf_sample_shade_function()`.
  16453. This function has out-params. Python/C# wrappers look like:
  16454. `ll_pdf_sample_shade_function(int n, int funcs, ::pdf_function **func, float t0, float t1)` => `(float samples)`
  16455. """
  16456. return _mupdf.ll_pdf_sample_shade_function(samples, n, funcs, func, t0, t1)
  16457. def ll_pdf_save_document(doc, filename, opts):
  16458. r"""Low-level wrapper for `::pdf_save_document()`."""
  16459. return _mupdf.ll_pdf_save_document(doc, filename, opts)
  16460. def ll_pdf_save_journal(doc, filename):
  16461. r"""Low-level wrapper for `::pdf_save_journal()`."""
  16462. return _mupdf.ll_pdf_save_journal(doc, filename)
  16463. def ll_pdf_save_snapshot(doc, filename):
  16464. r"""Low-level wrapper for `::pdf_save_snapshot()`."""
  16465. return _mupdf.ll_pdf_save_snapshot(doc, filename)
  16466. def ll_pdf_select_layer_config(doc, config_num):
  16467. r"""Low-level wrapper for `::pdf_select_layer_config()`."""
  16468. return _mupdf.ll_pdf_select_layer_config(doc, config_num)
  16469. def ll_pdf_select_layer_config_ui(doc, ui):
  16470. r"""Low-level wrapper for `::pdf_select_layer_config_ui()`."""
  16471. return _mupdf.ll_pdf_select_layer_config_ui(doc, ui)
  16472. def ll_pdf_serialise_journal(doc, out):
  16473. r"""Low-level wrapper for `::pdf_serialise_journal()`."""
  16474. return _mupdf.ll_pdf_serialise_journal(doc, out)
  16475. def ll_pdf_set_annot_active(annot, active):
  16476. r"""Low-level wrapper for `::pdf_set_annot_active()`."""
  16477. return _mupdf.ll_pdf_set_annot_active(annot, active)
  16478. def ll_pdf_set_annot_appearance(annot, appearance, state, ctm, bbox, res, contents):
  16479. r"""Low-level wrapper for `::pdf_set_annot_appearance()`."""
  16480. return _mupdf.ll_pdf_set_annot_appearance(annot, appearance, state, ctm, bbox, res, contents)
  16481. def ll_pdf_set_annot_appearance_from_display_list(annot, appearance, state, ctm, list):
  16482. r"""Low-level wrapper for `::pdf_set_annot_appearance_from_display_list()`."""
  16483. return _mupdf.ll_pdf_set_annot_appearance_from_display_list(annot, appearance, state, ctm, list)
  16484. def ll_pdf_set_annot_author(annot, author):
  16485. r"""Low-level wrapper for `::pdf_set_annot_author()`."""
  16486. return _mupdf.ll_pdf_set_annot_author(annot, author)
  16487. def ll_pdf_set_annot_border(annot, width):
  16488. r"""Low-level wrapper for `::pdf_set_annot_border()`."""
  16489. return _mupdf.ll_pdf_set_annot_border(annot, width)
  16490. def ll_pdf_set_annot_border_effect(annot, effect):
  16491. r"""Low-level wrapper for `::pdf_set_annot_border_effect()`."""
  16492. return _mupdf.ll_pdf_set_annot_border_effect(annot, effect)
  16493. def ll_pdf_set_annot_border_effect_intensity(annot, intensity):
  16494. r"""Low-level wrapper for `::pdf_set_annot_border_effect_intensity()`."""
  16495. return _mupdf.ll_pdf_set_annot_border_effect_intensity(annot, intensity)
  16496. def ll_pdf_set_annot_border_style(annot, style):
  16497. r"""Low-level wrapper for `::pdf_set_annot_border_style()`."""
  16498. return _mupdf.ll_pdf_set_annot_border_style(annot, style)
  16499. def ll_pdf_set_annot_border_width(annot, width):
  16500. r"""Low-level wrapper for `::pdf_set_annot_border_width()`."""
  16501. return _mupdf.ll_pdf_set_annot_border_width(annot, width)
  16502. def ll_pdf_set_annot_callout_line(annot, callout, n):
  16503. r"""Low-level wrapper for `::pdf_set_annot_callout_line()`."""
  16504. return _mupdf.ll_pdf_set_annot_callout_line(annot, callout, n)
  16505. def ll_pdf_set_annot_callout_line2(annot, callout):
  16506. r"""Low-level wrapper for `::pdf_set_annot_callout_line2()`. SWIG-friendly wrapper for pdf_set_annot_callout_line()."""
  16507. return _mupdf.ll_pdf_set_annot_callout_line2(annot, callout)
  16508. def ll_pdf_set_annot_callout_point(annot, p):
  16509. r"""Low-level wrapper for `::pdf_set_annot_callout_point()`."""
  16510. return _mupdf.ll_pdf_set_annot_callout_point(annot, p)
  16511. def ll_pdf_set_annot_callout_style(annot, style):
  16512. r"""Low-level wrapper for `::pdf_set_annot_callout_style()`."""
  16513. return _mupdf.ll_pdf_set_annot_callout_style(annot, style)
  16514. def ll_pdf_set_annot_color(annot, n, color):
  16515. r"""Low-level wrapper for `::pdf_set_annot_color()`."""
  16516. return _mupdf.ll_pdf_set_annot_color(annot, n, color)
  16517. def ll_pdf_set_annot_contents(annot, text):
  16518. r"""Low-level wrapper for `::pdf_set_annot_contents()`."""
  16519. return _mupdf.ll_pdf_set_annot_contents(annot, text)
  16520. def ll_pdf_set_annot_creation_date(annot, time):
  16521. r"""Low-level wrapper for `::pdf_set_annot_creation_date()`."""
  16522. return _mupdf.ll_pdf_set_annot_creation_date(annot, time)
  16523. def ll_pdf_set_annot_default_appearance(annot, font, size, n, color):
  16524. r"""Low-level wrapper for `::pdf_set_annot_default_appearance()`."""
  16525. return _mupdf.ll_pdf_set_annot_default_appearance(annot, font, size, n, color)
  16526. def ll_pdf_set_annot_field_value(doc, widget, text, ignore_trigger_events):
  16527. r"""Low-level wrapper for `::pdf_set_annot_field_value()`."""
  16528. return _mupdf.ll_pdf_set_annot_field_value(doc, widget, text, ignore_trigger_events)
  16529. def ll_pdf_set_annot_filespec(annot, obj):
  16530. r"""Low-level wrapper for `::pdf_set_annot_filespec()`."""
  16531. return _mupdf.ll_pdf_set_annot_filespec(annot, obj)
  16532. def ll_pdf_set_annot_flags(annot, flags):
  16533. r"""Low-level wrapper for `::pdf_set_annot_flags()`."""
  16534. return _mupdf.ll_pdf_set_annot_flags(annot, flags)
  16535. def ll_pdf_set_annot_hidden_for_editing(annot, hidden):
  16536. r"""Low-level wrapper for `::pdf_set_annot_hidden_for_editing()`."""
  16537. return _mupdf.ll_pdf_set_annot_hidden_for_editing(annot, hidden)
  16538. def ll_pdf_set_annot_hot(annot, hot):
  16539. r"""Low-level wrapper for `::pdf_set_annot_hot()`."""
  16540. return _mupdf.ll_pdf_set_annot_hot(annot, hot)
  16541. def ll_pdf_set_annot_icon_name(annot, name):
  16542. r"""Low-level wrapper for `::pdf_set_annot_icon_name()`."""
  16543. return _mupdf.ll_pdf_set_annot_icon_name(annot, name)
  16544. def ll_pdf_set_annot_ink_list(annot, n, count, v):
  16545. r"""Low-level wrapper for `::pdf_set_annot_ink_list()`."""
  16546. return _mupdf.ll_pdf_set_annot_ink_list(annot, n, count, v)
  16547. def ll_pdf_set_annot_intent(annot, it):
  16548. r"""Low-level wrapper for `::pdf_set_annot_intent()`."""
  16549. return _mupdf.ll_pdf_set_annot_intent(annot, it)
  16550. def ll_pdf_set_annot_interior_color(annot, n, color):
  16551. r"""Low-level wrapper for `::pdf_set_annot_interior_color()`."""
  16552. return _mupdf.ll_pdf_set_annot_interior_color(annot, n, color)
  16553. def ll_pdf_set_annot_is_open(annot, is_open):
  16554. r"""Low-level wrapper for `::pdf_set_annot_is_open()`."""
  16555. return _mupdf.ll_pdf_set_annot_is_open(annot, is_open)
  16556. def ll_pdf_set_annot_language(annot, lang):
  16557. r"""Low-level wrapper for `::pdf_set_annot_language()`."""
  16558. return _mupdf.ll_pdf_set_annot_language(annot, lang)
  16559. def ll_pdf_set_annot_line(annot, a, b):
  16560. r"""Low-level wrapper for `::pdf_set_annot_line()`."""
  16561. return _mupdf.ll_pdf_set_annot_line(annot, a, b)
  16562. def ll_pdf_set_annot_line_caption(annot, cap):
  16563. r"""Low-level wrapper for `::pdf_set_annot_line_caption()`."""
  16564. return _mupdf.ll_pdf_set_annot_line_caption(annot, cap)
  16565. def ll_pdf_set_annot_line_caption_offset(annot, offset):
  16566. r"""Low-level wrapper for `::pdf_set_annot_line_caption_offset()`."""
  16567. return _mupdf.ll_pdf_set_annot_line_caption_offset(annot, offset)
  16568. def ll_pdf_set_annot_line_end_style(annot, e):
  16569. r"""Low-level wrapper for `::pdf_set_annot_line_end_style()`."""
  16570. return _mupdf.ll_pdf_set_annot_line_end_style(annot, e)
  16571. def ll_pdf_set_annot_line_ending_styles(annot, start_style, end_style):
  16572. r"""Low-level wrapper for `::pdf_set_annot_line_ending_styles()`."""
  16573. return _mupdf.ll_pdf_set_annot_line_ending_styles(annot, start_style, end_style)
  16574. def ll_pdf_set_annot_line_leader(annot, ll):
  16575. r"""Low-level wrapper for `::pdf_set_annot_line_leader()`."""
  16576. return _mupdf.ll_pdf_set_annot_line_leader(annot, ll)
  16577. def ll_pdf_set_annot_line_leader_extension(annot, lle):
  16578. r"""Low-level wrapper for `::pdf_set_annot_line_leader_extension()`."""
  16579. return _mupdf.ll_pdf_set_annot_line_leader_extension(annot, lle)
  16580. def ll_pdf_set_annot_line_leader_offset(annot, llo):
  16581. r"""Low-level wrapper for `::pdf_set_annot_line_leader_offset()`."""
  16582. return _mupdf.ll_pdf_set_annot_line_leader_offset(annot, llo)
  16583. def ll_pdf_set_annot_line_start_style(annot, s):
  16584. r"""Low-level wrapper for `::pdf_set_annot_line_start_style()`."""
  16585. return _mupdf.ll_pdf_set_annot_line_start_style(annot, s)
  16586. def ll_pdf_set_annot_modification_date(annot, time):
  16587. r"""Low-level wrapper for `::pdf_set_annot_modification_date()`."""
  16588. return _mupdf.ll_pdf_set_annot_modification_date(annot, time)
  16589. def ll_pdf_set_annot_opacity(annot, opacity):
  16590. r"""Low-level wrapper for `::pdf_set_annot_opacity()`."""
  16591. return _mupdf.ll_pdf_set_annot_opacity(annot, opacity)
  16592. def ll_pdf_set_annot_popup(annot, rect):
  16593. r"""Low-level wrapper for `::pdf_set_annot_popup()`."""
  16594. return _mupdf.ll_pdf_set_annot_popup(annot, rect)
  16595. def ll_pdf_set_annot_quad_points(annot, n, qv):
  16596. r"""Low-level wrapper for `::pdf_set_annot_quad_points()`."""
  16597. return _mupdf.ll_pdf_set_annot_quad_points(annot, n, qv)
  16598. def ll_pdf_set_annot_quadding(annot, q):
  16599. r"""Low-level wrapper for `::pdf_set_annot_quadding()`."""
  16600. return _mupdf.ll_pdf_set_annot_quadding(annot, q)
  16601. def ll_pdf_set_annot_rect(annot, rect):
  16602. r"""Low-level wrapper for `::pdf_set_annot_rect()`."""
  16603. return _mupdf.ll_pdf_set_annot_rect(annot, rect)
  16604. def ll_pdf_set_annot_resynthesised(annot):
  16605. r"""Low-level wrapper for `::pdf_set_annot_resynthesised()`."""
  16606. return _mupdf.ll_pdf_set_annot_resynthesised(annot)
  16607. def ll_pdf_set_annot_rich_contents(annot, plain, rich):
  16608. r"""Low-level wrapper for `::pdf_set_annot_rich_contents()`."""
  16609. return _mupdf.ll_pdf_set_annot_rich_contents(annot, plain, rich)
  16610. def ll_pdf_set_annot_rich_defaults(annot, style):
  16611. r"""Low-level wrapper for `::pdf_set_annot_rich_defaults()`."""
  16612. return _mupdf.ll_pdf_set_annot_rich_defaults(annot, style)
  16613. def ll_pdf_set_annot_stamp_image(annot, image):
  16614. r"""Low-level wrapper for `::pdf_set_annot_stamp_image()`."""
  16615. return _mupdf.ll_pdf_set_annot_stamp_image(annot, image)
  16616. def ll_pdf_set_annot_stamp_image_obj(annot, ref):
  16617. r"""Low-level wrapper for `::pdf_set_annot_stamp_image_obj()`."""
  16618. return _mupdf.ll_pdf_set_annot_stamp_image_obj(annot, ref)
  16619. def ll_pdf_set_annot_vertex(annot, i, p):
  16620. r"""Low-level wrapper for `::pdf_set_annot_vertex()`."""
  16621. return _mupdf.ll_pdf_set_annot_vertex(annot, i, p)
  16622. def ll_pdf_set_annot_vertices(annot, n, v):
  16623. r"""Low-level wrapper for `::pdf_set_annot_vertices()`."""
  16624. return _mupdf.ll_pdf_set_annot_vertices(annot, n, v)
  16625. def ll_pdf_set_choice_field_value(widget, value):
  16626. r"""Low-level wrapper for `::pdf_set_choice_field_value()`."""
  16627. return _mupdf.ll_pdf_set_choice_field_value(widget, value)
  16628. def ll_pdf_set_cmap_wmode(cmap, wmode):
  16629. r"""Low-level wrapper for `::pdf_set_cmap_wmode()`."""
  16630. return _mupdf.ll_pdf_set_cmap_wmode(cmap, wmode)
  16631. def ll_pdf_set_default_hmtx(font, w):
  16632. r"""Low-level wrapper for `::pdf_set_default_hmtx()`."""
  16633. return _mupdf.ll_pdf_set_default_hmtx(font, w)
  16634. def ll_pdf_set_default_vmtx(font, y, w):
  16635. r"""Low-level wrapper for `::pdf_set_default_vmtx()`."""
  16636. return _mupdf.ll_pdf_set_default_vmtx(font, y, w)
  16637. def ll_pdf_set_doc_event_callback(doc, event_cb, free_event_data_cb, data):
  16638. r"""Low-level wrapper for `::pdf_set_doc_event_callback()`."""
  16639. return _mupdf.ll_pdf_set_doc_event_callback(doc, event_cb, free_event_data_cb, data)
  16640. def ll_pdf_set_document_language(doc, lang):
  16641. r"""Low-level wrapper for `::pdf_set_document_language()`."""
  16642. return _mupdf.ll_pdf_set_document_language(doc, lang)
  16643. def ll_pdf_set_field_value(doc, field, text, ignore_trigger_events):
  16644. r"""Low-level wrapper for `::pdf_set_field_value()`."""
  16645. return _mupdf.ll_pdf_set_field_value(doc, field, text, ignore_trigger_events)
  16646. def ll_pdf_set_font_wmode(font, wmode):
  16647. r"""Low-level wrapper for `::pdf_set_font_wmode()`."""
  16648. return _mupdf.ll_pdf_set_font_wmode(font, wmode)
  16649. def ll_pdf_set_int(obj, i):
  16650. r"""Low-level wrapper for `::pdf_set_int()`."""
  16651. return _mupdf.ll_pdf_set_int(obj, i)
  16652. def ll_pdf_set_layer_config_as_default(doc):
  16653. r"""Low-level wrapper for `::pdf_set_layer_config_as_default()`."""
  16654. return _mupdf.ll_pdf_set_layer_config_as_default(doc)
  16655. def ll_pdf_set_obj_memo(obj, bit, memo):
  16656. r"""Low-level wrapper for `::pdf_set_obj_memo()`."""
  16657. return _mupdf.ll_pdf_set_obj_memo(obj, bit, memo)
  16658. def ll_pdf_set_obj_parent(obj, num):
  16659. r"""Low-level wrapper for `::pdf_set_obj_parent()`."""
  16660. return _mupdf.ll_pdf_set_obj_parent(obj, num)
  16661. def ll_pdf_set_page_box(page, box, rect):
  16662. r"""Low-level wrapper for `::pdf_set_page_box()`."""
  16663. return _mupdf.ll_pdf_set_page_box(page, box, rect)
  16664. def ll_pdf_set_page_labels(doc, index, style, prefix, start):
  16665. r"""Low-level wrapper for `::pdf_set_page_labels()`."""
  16666. return _mupdf.ll_pdf_set_page_labels(doc, index, style, prefix, start)
  16667. def ll_pdf_set_populating_xref_trailer(doc, trailer):
  16668. r"""Low-level wrapper for `::pdf_set_populating_xref_trailer()`."""
  16669. return _mupdf.ll_pdf_set_populating_xref_trailer(doc, trailer)
  16670. def ll_pdf_set_str_len(obj, newlen):
  16671. r"""Low-level wrapper for `::pdf_set_str_len()`."""
  16672. return _mupdf.ll_pdf_set_str_len(obj, newlen)
  16673. def ll_pdf_set_text_field_value(widget, value):
  16674. r"""Low-level wrapper for `::pdf_set_text_field_value()`."""
  16675. return _mupdf.ll_pdf_set_text_field_value(widget, value)
  16676. def ll_pdf_set_usecmap(cmap, usecmap):
  16677. r"""Low-level wrapper for `::pdf_set_usecmap()`."""
  16678. return _mupdf.ll_pdf_set_usecmap(cmap, usecmap)
  16679. def ll_pdf_set_widget_editing_state(widget, editing):
  16680. r"""Low-level wrapper for `::pdf_set_widget_editing_state()`."""
  16681. return _mupdf.ll_pdf_set_widget_editing_state(widget, editing)
  16682. def ll_pdf_sign_signature(widget, signer, appearance_flags, graphic, reason, location):
  16683. r"""Low-level wrapper for `::pdf_sign_signature()`."""
  16684. return _mupdf.ll_pdf_sign_signature(widget, signer, appearance_flags, graphic, reason, location)
  16685. def ll_pdf_sign_signature_with_appearance(widget, signer, date, disp_list):
  16686. r"""Low-level wrapper for `::pdf_sign_signature_with_appearance()`."""
  16687. return _mupdf.ll_pdf_sign_signature_with_appearance(widget, signer, date, disp_list)
  16688. def ll_pdf_signature_appearance_signed(rect, lang, img, left_text, right_text, include_logo):
  16689. r"""Low-level wrapper for `::pdf_signature_appearance_signed()`."""
  16690. return _mupdf.ll_pdf_signature_appearance_signed(rect, lang, img, left_text, right_text, include_logo)
  16691. def ll_pdf_signature_appearance_unsigned(rect, lang):
  16692. r"""Low-level wrapper for `::pdf_signature_appearance_unsigned()`."""
  16693. return _mupdf.ll_pdf_signature_appearance_unsigned(rect, lang)
  16694. def ll_pdf_signature_byte_range(doc, signature, byte_range):
  16695. r"""Low-level wrapper for `::pdf_signature_byte_range()`."""
  16696. return _mupdf.ll_pdf_signature_byte_range(doc, signature, byte_range)
  16697. def ll_pdf_signature_contents(doc, signature, contents):
  16698. r"""
  16699. Low-level wrapper for `::pdf_signature_contents()`.
  16700. This function has out-params. Python/C# wrappers look like:
  16701. `ll_pdf_signature_contents(::pdf_document *doc, ::pdf_obj *signature)` => `(size_t, char *contents)`
  16702. """
  16703. return _mupdf.ll_pdf_signature_contents(doc, signature, contents)
  16704. def ll_pdf_signature_drop_distinguished_name(name):
  16705. r"""Low-level wrapper for `::pdf_signature_drop_distinguished_name()`."""
  16706. return _mupdf.ll_pdf_signature_drop_distinguished_name(name)
  16707. def ll_pdf_signature_error_description(err):
  16708. r"""Low-level wrapper for `::pdf_signature_error_description()`."""
  16709. return _mupdf.ll_pdf_signature_error_description(err)
  16710. def ll_pdf_signature_format_distinguished_name(name):
  16711. r"""Low-level wrapper for `::pdf_signature_format_distinguished_name()`."""
  16712. return _mupdf.ll_pdf_signature_format_distinguished_name(name)
  16713. def ll_pdf_signature_get_signatory(verifier, doc, signature):
  16714. r"""Low-level wrapper for `::pdf_signature_get_signatory()`."""
  16715. return _mupdf.ll_pdf_signature_get_signatory(verifier, doc, signature)
  16716. def ll_pdf_signature_get_widget_signatory(verifier, widget):
  16717. r"""Low-level wrapper for `::pdf_signature_get_widget_signatory()`."""
  16718. return _mupdf.ll_pdf_signature_get_widget_signatory(verifier, widget)
  16719. def ll_pdf_signature_hash_bytes(doc, signature):
  16720. r"""Low-level wrapper for `::pdf_signature_hash_bytes()`."""
  16721. return _mupdf.ll_pdf_signature_hash_bytes(doc, signature)
  16722. def ll_pdf_signature_incremental_change_since_signing(doc, signature):
  16723. r"""Low-level wrapper for `::pdf_signature_incremental_change_since_signing()`."""
  16724. return _mupdf.ll_pdf_signature_incremental_change_since_signing(doc, signature)
  16725. def ll_pdf_signature_info(name, dn, reason, location, date, include_labels):
  16726. r"""Low-level wrapper for `::pdf_signature_info()`."""
  16727. return _mupdf.ll_pdf_signature_info(name, dn, reason, location, date, include_labels)
  16728. def ll_pdf_signature_is_signed(doc, field):
  16729. r"""Low-level wrapper for `::pdf_signature_is_signed()`."""
  16730. return _mupdf.ll_pdf_signature_is_signed(doc, field)
  16731. def ll_pdf_signature_set_value(doc, field, signer, stime):
  16732. r"""Low-level wrapper for `::pdf_signature_set_value()`."""
  16733. return _mupdf.ll_pdf_signature_set_value(doc, field, signer, stime)
  16734. def ll_pdf_sort_cmap(cmap):
  16735. r"""Low-level wrapper for `::pdf_sort_cmap()`."""
  16736. return _mupdf.ll_pdf_sort_cmap(cmap)
  16737. def ll_pdf_sort_dict(dict):
  16738. r"""Low-level wrapper for `::pdf_sort_dict()`."""
  16739. return _mupdf.ll_pdf_sort_dict(dict)
  16740. def ll_pdf_specifics(doc):
  16741. r"""Low-level wrapper for `::pdf_specifics()`."""
  16742. return _mupdf.ll_pdf_specifics(doc)
  16743. def ll_pdf_sprint_obj(buf, cap, len, obj, tight, ascii):
  16744. r"""
  16745. Low-level wrapper for `::pdf_sprint_obj()`.
  16746. This function has out-params. Python/C# wrappers look like:
  16747. `ll_pdf_sprint_obj(char *buf, size_t cap, ::pdf_obj *obj, int tight, int ascii)` => `(char *, size_t len)`
  16748. """
  16749. return _mupdf.ll_pdf_sprint_obj(buf, cap, len, obj, tight, ascii)
  16750. def ll_pdf_store_item(key, val, itemsize):
  16751. r"""Low-level wrapper for `::pdf_store_item()`."""
  16752. return _mupdf.ll_pdf_store_item(key, val, itemsize)
  16753. def ll_pdf_string_from_annot_type(type):
  16754. r"""Low-level wrapper for `::pdf_string_from_annot_type()`."""
  16755. return _mupdf.ll_pdf_string_from_annot_type(type)
  16756. def ll_pdf_string_from_intent(intent):
  16757. r"""Low-level wrapper for `::pdf_string_from_intent()`."""
  16758. return _mupdf.ll_pdf_string_from_intent(intent)
  16759. def ll_pdf_string_from_line_ending(end):
  16760. r"""Low-level wrapper for `::pdf_string_from_line_ending()`."""
  16761. return _mupdf.ll_pdf_string_from_line_ending(end)
  16762. def ll_pdf_structure_type(role_map, tag):
  16763. r"""Low-level wrapper for `::pdf_structure_type()`."""
  16764. return _mupdf.ll_pdf_structure_type(role_map, tag)
  16765. def ll_pdf_subset_fonts(doc, pages_len, pages):
  16766. r"""Low-level wrapper for `::pdf_subset_fonts()`."""
  16767. return _mupdf.ll_pdf_subset_fonts(doc, pages_len, pages)
  16768. def ll_pdf_subset_fonts2(doc, pages):
  16769. r"""Low-level wrapper for `::pdf_subset_fonts2()`. Swig-friendly wrapper for pdf_subset_fonts()."""
  16770. return _mupdf.ll_pdf_subset_fonts2(doc, pages)
  16771. def ll_pdf_sync_annots(page):
  16772. r"""Low-level wrapper for `::pdf_sync_annots()`."""
  16773. return _mupdf.ll_pdf_sync_annots(page)
  16774. def ll_pdf_sync_links(page):
  16775. r"""Low-level wrapper for `::pdf_sync_links()`."""
  16776. return _mupdf.ll_pdf_sync_links(page)
  16777. def ll_pdf_sync_open_pages(doc):
  16778. r"""Low-level wrapper for `::pdf_sync_open_pages()`."""
  16779. return _mupdf.ll_pdf_sync_open_pages(doc)
  16780. def ll_pdf_sync_page(page):
  16781. r"""Low-level wrapper for `::pdf_sync_page()`."""
  16782. return _mupdf.ll_pdf_sync_page(page)
  16783. def ll_pdf_text_widget_format(tw):
  16784. r"""Low-level wrapper for `::pdf_text_widget_format()`."""
  16785. return _mupdf.ll_pdf_text_widget_format(tw)
  16786. def ll_pdf_text_widget_max_len(tw):
  16787. r"""Low-level wrapper for `::pdf_text_widget_max_len()`."""
  16788. return _mupdf.ll_pdf_text_widget_max_len(tw)
  16789. def ll_pdf_to_bool(obj):
  16790. r"""Low-level wrapper for `::pdf_to_bool()`."""
  16791. return _mupdf.ll_pdf_to_bool(obj)
  16792. def ll_pdf_to_bool_default(obj, _def):
  16793. r"""Low-level wrapper for `::pdf_to_bool_default()`."""
  16794. return _mupdf.ll_pdf_to_bool_default(obj, _def)
  16795. def ll_pdf_to_date(time):
  16796. r"""Low-level wrapper for `::pdf_to_date()`."""
  16797. return _mupdf.ll_pdf_to_date(time)
  16798. def ll_pdf_to_gen(obj):
  16799. r"""Low-level wrapper for `::pdf_to_gen()`."""
  16800. return _mupdf.ll_pdf_to_gen(obj)
  16801. def ll_pdf_to_int(obj):
  16802. r"""Low-level wrapper for `::pdf_to_int()`."""
  16803. return _mupdf.ll_pdf_to_int(obj)
  16804. def ll_pdf_to_int64(obj):
  16805. r"""Low-level wrapper for `::pdf_to_int64()`."""
  16806. return _mupdf.ll_pdf_to_int64(obj)
  16807. def ll_pdf_to_int_default(obj, _def):
  16808. r"""Low-level wrapper for `::pdf_to_int_default()`."""
  16809. return _mupdf.ll_pdf_to_int_default(obj, _def)
  16810. def ll_pdf_to_matrix(array):
  16811. r"""Low-level wrapper for `::pdf_to_matrix()`."""
  16812. return _mupdf.ll_pdf_to_matrix(array)
  16813. def ll_pdf_to_name(obj):
  16814. r"""Low-level wrapper for `::pdf_to_name()`."""
  16815. return _mupdf.ll_pdf_to_name(obj)
  16816. def ll_pdf_to_num(obj):
  16817. r"""Low-level wrapper for `::pdf_to_num()`."""
  16818. return _mupdf.ll_pdf_to_num(obj)
  16819. def ll_pdf_to_point(array, offset):
  16820. r"""Low-level wrapper for `::pdf_to_point()`."""
  16821. return _mupdf.ll_pdf_to_point(array, offset)
  16822. def ll_pdf_to_quad(array, offset):
  16823. r"""Low-level wrapper for `::pdf_to_quad()`."""
  16824. return _mupdf.ll_pdf_to_quad(array, offset)
  16825. def ll_pdf_to_real(obj):
  16826. r"""Low-level wrapper for `::pdf_to_real()`."""
  16827. return _mupdf.ll_pdf_to_real(obj)
  16828. def ll_pdf_to_real_default(obj, _def):
  16829. r"""Low-level wrapper for `::pdf_to_real_default()`."""
  16830. return _mupdf.ll_pdf_to_real_default(obj, _def)
  16831. def ll_pdf_to_rect(array):
  16832. r"""Low-level wrapper for `::pdf_to_rect()`."""
  16833. return _mupdf.ll_pdf_to_rect(array)
  16834. def ll_pdf_to_str_buf(obj):
  16835. r"""Low-level wrapper for `::pdf_to_str_buf()`."""
  16836. return _mupdf.ll_pdf_to_str_buf(obj)
  16837. def ll_pdf_to_str_len(obj):
  16838. r"""Low-level wrapper for `::pdf_to_str_len()`."""
  16839. return _mupdf.ll_pdf_to_str_len(obj)
  16840. def ll_pdf_to_string(obj, sizep):
  16841. r"""
  16842. Low-level wrapper for `::pdf_to_string()`.
  16843. This function has out-params. Python/C# wrappers look like:
  16844. `ll_pdf_to_string(::pdf_obj *obj)` => `(const char *, size_t sizep)`
  16845. """
  16846. return _mupdf.ll_pdf_to_string(obj, sizep)
  16847. def ll_pdf_to_text_string(obj):
  16848. r"""Low-level wrapper for `::pdf_to_text_string()`."""
  16849. return _mupdf.ll_pdf_to_text_string(obj)
  16850. def ll_pdf_toggle_layer_config_ui(doc, ui):
  16851. r"""Low-level wrapper for `::pdf_toggle_layer_config_ui()`."""
  16852. return _mupdf.ll_pdf_toggle_layer_config_ui(doc, ui)
  16853. def ll_pdf_toggle_widget(widget):
  16854. r"""Low-level wrapper for `::pdf_toggle_widget()`."""
  16855. return _mupdf.ll_pdf_toggle_widget(widget)
  16856. def ll_pdf_tos_get_text(tos):
  16857. r"""Low-level wrapper for `::pdf_tos_get_text()`."""
  16858. return _mupdf.ll_pdf_tos_get_text(tos)
  16859. def ll_pdf_tos_make_trm(tos, text, fontdesc, cid, trm, adv):
  16860. r"""
  16861. Low-level wrapper for `::pdf_tos_make_trm()`.
  16862. This function has out-params. Python/C# wrappers look like:
  16863. `ll_pdf_tos_make_trm(::pdf_text_object_state *tos, ::pdf_text_state *text, ::pdf_font_desc *fontdesc, int cid, ::fz_matrix *trm)` => `(int, float adv)`
  16864. """
  16865. return _mupdf.ll_pdf_tos_make_trm(tos, text, fontdesc, cid, trm, adv)
  16866. def ll_pdf_tos_move_after_char(tos):
  16867. r"""Low-level wrapper for `::pdf_tos_move_after_char()`."""
  16868. return _mupdf.ll_pdf_tos_move_after_char(tos)
  16869. def ll_pdf_tos_newline(tos, leading):
  16870. r"""Low-level wrapper for `::pdf_tos_newline()`."""
  16871. return _mupdf.ll_pdf_tos_newline(tos, leading)
  16872. def ll_pdf_tos_reset(tos, render):
  16873. r"""Low-level wrapper for `::pdf_tos_reset()`."""
  16874. return _mupdf.ll_pdf_tos_reset(tos, render)
  16875. def ll_pdf_tos_restore(tos, save):
  16876. r"""Low-level wrapper for `::pdf_tos_restore()`."""
  16877. return _mupdf.ll_pdf_tos_restore(tos, save)
  16878. def ll_pdf_tos_save(tos, save):
  16879. r"""Low-level wrapper for `::pdf_tos_save()`."""
  16880. return _mupdf.ll_pdf_tos_save(tos, save)
  16881. def ll_pdf_tos_set_matrix(tos, a, b, c, d, e, f):
  16882. r"""Low-level wrapper for `::pdf_tos_set_matrix()`."""
  16883. return _mupdf.ll_pdf_tos_set_matrix(tos, a, b, c, d, e, f)
  16884. def ll_pdf_tos_translate(tos, tx, ty):
  16885. r"""Low-level wrapper for `::pdf_tos_translate()`."""
  16886. return _mupdf.ll_pdf_tos_translate(tos, tx, ty)
  16887. def ll_pdf_trailer(doc):
  16888. r"""Low-level wrapper for `::pdf_trailer()`."""
  16889. return _mupdf.ll_pdf_trailer(doc)
  16890. def ll_pdf_undo(doc):
  16891. r"""Low-level wrapper for `::pdf_undo()`."""
  16892. return _mupdf.ll_pdf_undo(doc)
  16893. def ll_pdf_undoredo_state(doc, steps):
  16894. r"""
  16895. Low-level wrapper for `::pdf_undoredo_state()`.
  16896. This function has out-params. Python/C# wrappers look like:
  16897. `ll_pdf_undoredo_state(::pdf_document *doc)` => `(int, int steps)`
  16898. """
  16899. return _mupdf.ll_pdf_undoredo_state(doc, steps)
  16900. def ll_pdf_undoredo_step(doc, step):
  16901. r"""Low-level wrapper for `::pdf_undoredo_step()`."""
  16902. return _mupdf.ll_pdf_undoredo_step(doc, step)
  16903. def ll_pdf_unmark_obj(obj):
  16904. r"""Low-level wrapper for `::pdf_unmark_obj()`."""
  16905. return _mupdf.ll_pdf_unmark_obj(obj)
  16906. def ll_pdf_update_annot(annot):
  16907. r"""Low-level wrapper for `::pdf_update_annot()`."""
  16908. return _mupdf.ll_pdf_update_annot(annot)
  16909. def ll_pdf_update_default_colorspaces(old_cs, res):
  16910. r"""Low-level wrapper for `::pdf_update_default_colorspaces()`."""
  16911. return _mupdf.ll_pdf_update_default_colorspaces(old_cs, res)
  16912. def ll_pdf_update_object(doc, num, obj):
  16913. r"""Low-level wrapper for `::pdf_update_object()`."""
  16914. return _mupdf.ll_pdf_update_object(doc, num, obj)
  16915. def ll_pdf_update_page(page):
  16916. r"""Low-level wrapper for `::pdf_update_page()`."""
  16917. return _mupdf.ll_pdf_update_page(page)
  16918. def ll_pdf_update_stream(doc, ref, buf, compressed):
  16919. r"""Low-level wrapper for `::pdf_update_stream()`."""
  16920. return _mupdf.ll_pdf_update_stream(doc, ref, buf, compressed)
  16921. def ll_pdf_update_widget(widget):
  16922. r"""Low-level wrapper for `::pdf_update_widget()`."""
  16923. return _mupdf.ll_pdf_update_widget(widget)
  16924. def ll_pdf_update_xobject(doc, xobj, bbox, mat, res, buffer):
  16925. r"""Low-level wrapper for `::pdf_update_xobject()`."""
  16926. return _mupdf.ll_pdf_update_xobject(doc, xobj, bbox, mat, res, buffer)
  16927. def ll_pdf_validate_change_history(doc):
  16928. r"""Low-level wrapper for `::pdf_validate_change_history()`."""
  16929. return _mupdf.ll_pdf_validate_change_history(doc)
  16930. def ll_pdf_validate_changes(doc, version):
  16931. r"""Low-level wrapper for `::pdf_validate_changes()`."""
  16932. return _mupdf.ll_pdf_validate_changes(doc, version)
  16933. def ll_pdf_validate_signature(widget):
  16934. r"""Low-level wrapper for `::pdf_validate_signature()`."""
  16935. return _mupdf.ll_pdf_validate_signature(widget)
  16936. def ll_pdf_verify_embedded_file_checksum(fs):
  16937. r"""Low-level wrapper for `::pdf_verify_embedded_file_checksum()`."""
  16938. return _mupdf.ll_pdf_verify_embedded_file_checksum(fs)
  16939. def ll_pdf_version(doc):
  16940. r"""Low-level wrapper for `::pdf_version()`."""
  16941. return _mupdf.ll_pdf_version(doc)
  16942. def ll_pdf_walk_tree(tree, kid_name, arrive, leave, arg, names, values):
  16943. r"""
  16944. Low-level wrapper for `::pdf_walk_tree()`.
  16945. This function has out-params. Python/C# wrappers look like:
  16946. `ll_pdf_walk_tree(::pdf_obj *tree, ::pdf_obj *kid_name, void (*arrive)(::fz_context *, ::pdf_obj *, void *, ::pdf_obj **), void (*leave)(::fz_context *, ::pdf_obj *, void *), void *arg, ::pdf_obj **names, ::pdf_obj **values)` => `()`
  16947. """
  16948. return _mupdf.ll_pdf_walk_tree(tree, kid_name, arrive, leave, arg, names, values)
  16949. def ll_pdf_was_pure_xfa(doc):
  16950. r"""Low-level wrapper for `::pdf_was_pure_xfa()`."""
  16951. return _mupdf.ll_pdf_was_pure_xfa(doc)
  16952. def ll_pdf_was_repaired(doc):
  16953. r"""Low-level wrapper for `::pdf_was_repaired()`."""
  16954. return _mupdf.ll_pdf_was_repaired(doc)
  16955. def ll_pdf_widget_is_readonly(widget):
  16956. r"""Low-level wrapper for `::pdf_widget_is_readonly()`."""
  16957. return _mupdf.ll_pdf_widget_is_readonly(widget)
  16958. def ll_pdf_widget_is_signed(widget):
  16959. r"""Low-level wrapper for `::pdf_widget_is_signed()`."""
  16960. return _mupdf.ll_pdf_widget_is_signed(widget)
  16961. def ll_pdf_widget_type(widget):
  16962. r"""Low-level wrapper for `::pdf_widget_type()`."""
  16963. return _mupdf.ll_pdf_widget_type(widget)
  16964. def ll_pdf_write_digest(out, byte_range, field, digest_offset, digest_length, signer):
  16965. r"""Low-level wrapper for `::pdf_write_digest()`."""
  16966. return _mupdf.ll_pdf_write_digest(out, byte_range, field, digest_offset, digest_length, signer)
  16967. def ll_pdf_write_document(doc, out, opts):
  16968. r"""Low-level wrapper for `::pdf_write_document()`."""
  16969. return _mupdf.ll_pdf_write_document(doc, out, opts)
  16970. def ll_pdf_write_journal(doc, out):
  16971. r"""Low-level wrapper for `::pdf_write_journal()`."""
  16972. return _mupdf.ll_pdf_write_journal(doc, out)
  16973. def ll_pdf_write_snapshot(doc, out):
  16974. r"""Low-level wrapper for `::pdf_write_snapshot()`."""
  16975. return _mupdf.ll_pdf_write_snapshot(doc, out)
  16976. def ll_pdf_xobject_bbox(xobj):
  16977. r"""Low-level wrapper for `::pdf_xobject_bbox()`."""
  16978. return _mupdf.ll_pdf_xobject_bbox(xobj)
  16979. def ll_pdf_xobject_colorspace(xobj):
  16980. r"""Low-level wrapper for `::pdf_xobject_colorspace()`."""
  16981. return _mupdf.ll_pdf_xobject_colorspace(xobj)
  16982. def ll_pdf_xobject_isolated(xobj):
  16983. r"""Low-level wrapper for `::pdf_xobject_isolated()`."""
  16984. return _mupdf.ll_pdf_xobject_isolated(xobj)
  16985. def ll_pdf_xobject_knockout(xobj):
  16986. r"""Low-level wrapper for `::pdf_xobject_knockout()`."""
  16987. return _mupdf.ll_pdf_xobject_knockout(xobj)
  16988. def ll_pdf_xobject_matrix(xobj):
  16989. r"""Low-level wrapper for `::pdf_xobject_matrix()`."""
  16990. return _mupdf.ll_pdf_xobject_matrix(xobj)
  16991. def ll_pdf_xobject_resources(xobj):
  16992. r"""Low-level wrapper for `::pdf_xobject_resources()`."""
  16993. return _mupdf.ll_pdf_xobject_resources(xobj)
  16994. def ll_pdf_xobject_transparency(xobj):
  16995. r"""Low-level wrapper for `::pdf_xobject_transparency()`."""
  16996. return _mupdf.ll_pdf_xobject_transparency(xobj)
  16997. def ll_pdf_xref_ensure_incremental_object(doc, num):
  16998. r"""Low-level wrapper for `::pdf_xref_ensure_incremental_object()`."""
  16999. return _mupdf.ll_pdf_xref_ensure_incremental_object(doc, num)
  17000. def ll_pdf_xref_ensure_local_object(doc, num):
  17001. r"""Low-level wrapper for `::pdf_xref_ensure_local_object()`."""
  17002. return _mupdf.ll_pdf_xref_ensure_local_object(doc, num)
  17003. def ll_pdf_xref_entry_map(doc, fn, arg):
  17004. r"""Low-level wrapper for `::pdf_xref_entry_map()`."""
  17005. return _mupdf.ll_pdf_xref_entry_map(doc, fn, arg)
  17006. def ll_pdf_xref_is_incremental(doc, num):
  17007. r"""Low-level wrapper for `::pdf_xref_is_incremental()`."""
  17008. return _mupdf.ll_pdf_xref_is_incremental(doc, num)
  17009. def ll_pdf_xref_len(doc):
  17010. r"""Low-level wrapper for `::pdf_xref_len()`."""
  17011. return _mupdf.ll_pdf_xref_len(doc)
  17012. def ll_pdf_xref_obj_is_unsaved_signature(doc, obj):
  17013. r"""Low-level wrapper for `::pdf_xref_obj_is_unsaved_signature()`."""
  17014. return _mupdf.ll_pdf_xref_obj_is_unsaved_signature(doc, obj)
  17015. def ll_pdf_xref_remove_unsaved_signature(doc, field):
  17016. r"""Low-level wrapper for `::pdf_xref_remove_unsaved_signature()`."""
  17017. return _mupdf.ll_pdf_xref_remove_unsaved_signature(doc, field)
  17018. def ll_pdf_xref_store_unsaved_signature(doc, field, signer):
  17019. r"""Low-level wrapper for `::pdf_xref_store_unsaved_signature()`."""
  17020. return _mupdf.ll_pdf_xref_store_unsaved_signature(doc, field, signer)
  17021. def ll_pdf_zugferd_profile(doc, version):
  17022. r"""
  17023. Low-level wrapper for `::pdf_zugferd_profile()`.
  17024. This function has out-params. Python/C# wrappers look like:
  17025. `ll_pdf_zugferd_profile(::pdf_document *doc)` => `(enum pdf_zugferd_profile, float version)`
  17026. """
  17027. return _mupdf.ll_pdf_zugferd_profile(doc, version)
  17028. def ll_pdf_zugferd_profile_to_string(profile):
  17029. r"""Low-level wrapper for `::pdf_zugferd_profile_to_string()`."""
  17030. return _mupdf.ll_pdf_zugferd_profile_to_string(profile)
  17031. def ll_pdf_zugferd_xml(doc):
  17032. r"""Low-level wrapper for `::pdf_zugferd_xml()`."""
  17033. return _mupdf.ll_pdf_zugferd_xml(doc)
  17034. def to_string_fz_aa_context(s):
  17035. r"""Returns string containing a fz_aa_context's members, labelled and inside (...), using operator<<."""
  17036. return _mupdf.to_string_fz_aa_context(s)
  17037. def to_string_fz_color_params(s):
  17038. r"""Returns string containing a fz_color_params's members, labelled and inside (...), using operator<<."""
  17039. return _mupdf.to_string_fz_color_params(s)
  17040. def to_string_fz_cookie(s):
  17041. r"""Returns string containing a fz_cookie's members, labelled and inside (...), using operator<<."""
  17042. return _mupdf.to_string_fz_cookie(s)
  17043. def to_string_fz_draw_options(s):
  17044. r"""Returns string containing a fz_draw_options's members, labelled and inside (...), using operator<<."""
  17045. return _mupdf.to_string_fz_draw_options(s)
  17046. def to_string_fz_install_load_system_font_funcs_args(s):
  17047. r"""Returns string containing a fz_install_load_system_font_funcs_args's members, labelled and inside (...), using operator<<."""
  17048. return _mupdf.to_string_fz_install_load_system_font_funcs_args(s)
  17049. def to_string_fz_irect(s):
  17050. r"""Returns string containing a fz_irect's members, labelled and inside (...), using operator<<."""
  17051. return _mupdf.to_string_fz_irect(s)
  17052. def to_string_fz_location(s):
  17053. r"""Returns string containing a fz_location's members, labelled and inside (...), using operator<<."""
  17054. return _mupdf.to_string_fz_location(s)
  17055. def to_string_fz_matrix(s):
  17056. r"""Returns string containing a fz_matrix's members, labelled and inside (...), using operator<<."""
  17057. return _mupdf.to_string_fz_matrix(s)
  17058. def to_string_fz_md5(s):
  17059. r"""Returns string containing a fz_md5's members, labelled and inside (...), using operator<<."""
  17060. return _mupdf.to_string_fz_md5(s)
  17061. def to_string_fz_outline_item(s):
  17062. r"""Returns string containing a fz_outline_item's members, labelled and inside (...), using operator<<."""
  17063. return _mupdf.to_string_fz_outline_item(s)
  17064. def to_string_fz_pdfocr_options(s):
  17065. r"""Returns string containing a fz_pdfocr_options's members, labelled and inside (...), using operator<<."""
  17066. return _mupdf.to_string_fz_pdfocr_options(s)
  17067. def to_string_fz_point(s):
  17068. r"""Returns string containing a fz_point's members, labelled and inside (...), using operator<<."""
  17069. return _mupdf.to_string_fz_point(s)
  17070. def to_string_fz_pwg_options(s):
  17071. r"""Returns string containing a fz_pwg_options's members, labelled and inside (...), using operator<<."""
  17072. return _mupdf.to_string_fz_pwg_options(s)
  17073. def to_string_fz_quad(s):
  17074. r"""Returns string containing a fz_quad's members, labelled and inside (...), using operator<<."""
  17075. return _mupdf.to_string_fz_quad(s)
  17076. def to_string_fz_rect(s):
  17077. r"""Returns string containing a fz_rect's members, labelled and inside (...), using operator<<."""
  17078. return _mupdf.to_string_fz_rect(s)
  17079. def to_string_fz_stext_options(s):
  17080. r"""Returns string containing a fz_stext_options's members, labelled and inside (...), using operator<<."""
  17081. return _mupdf.to_string_fz_stext_options(s)
  17082. def to_string_fz_story_element_position(s):
  17083. r"""Returns string containing a fz_story_element_position's members, labelled and inside (...), using operator<<."""
  17084. return _mupdf.to_string_fz_story_element_position(s)
  17085. def to_string_fz_transition(s):
  17086. r"""Returns string containing a fz_transition's members, labelled and inside (...), using operator<<."""
  17087. return _mupdf.to_string_fz_transition(s)
  17088. def to_string_pdf_clean_options(s):
  17089. r"""Returns string containing a pdf_clean_options's members, labelled and inside (...), using operator<<."""
  17090. return _mupdf.to_string_pdf_clean_options(s)
  17091. def to_string_pdf_filter_factory(s):
  17092. r"""Returns string containing a pdf_filter_factory's members, labelled and inside (...), using operator<<."""
  17093. return _mupdf.to_string_pdf_filter_factory(s)
  17094. def to_string_pdf_filter_options(s):
  17095. r"""Returns string containing a pdf_filter_options's members, labelled and inside (...), using operator<<."""
  17096. return _mupdf.to_string_pdf_filter_options(s)
  17097. def to_string_pdf_image_rewriter_options(s):
  17098. r"""Returns string containing a pdf_image_rewriter_options's members, labelled and inside (...), using operator<<."""
  17099. return _mupdf.to_string_pdf_image_rewriter_options(s)
  17100. def to_string_pdf_layer_config(s):
  17101. r"""Returns string containing a pdf_layer_config's members, labelled and inside (...), using operator<<."""
  17102. return _mupdf.to_string_pdf_layer_config(s)
  17103. def to_string_pdf_layer_config_ui(s):
  17104. r"""Returns string containing a pdf_layer_config_ui's members, labelled and inside (...), using operator<<."""
  17105. return _mupdf.to_string_pdf_layer_config_ui(s)
  17106. def to_string_pdf_recolor_options(s):
  17107. r"""Returns string containing a pdf_recolor_options's members, labelled and inside (...), using operator<<."""
  17108. return _mupdf.to_string_pdf_recolor_options(s)
  17109. def to_string_pdf_redact_options(s):
  17110. r"""Returns string containing a pdf_redact_options's members, labelled and inside (...), using operator<<."""
  17111. return _mupdf.to_string_pdf_redact_options(s)
  17112. def to_string_pdf_sanitize_filter_options(s):
  17113. r"""Returns string containing a pdf_sanitize_filter_options's members, labelled and inside (...), using operator<<."""
  17114. return _mupdf.to_string_pdf_sanitize_filter_options(s)
  17115. def to_string_pdf_write_options(s):
  17116. r"""Returns string containing a pdf_write_options's members, labelled and inside (...), using operator<<."""
  17117. return _mupdf.to_string_pdf_write_options(s)
  17118. def to_string(*args):
  17119. r"""
  17120. *Overload 1:*
  17121. Returns string containing a fz_aa_context's members, labelled and inside (...), using operator<<.
  17122. (Convenience overload).
  17123. |
  17124. *Overload 2:*
  17125. Returns string containing a fz_color_params's members, labelled and inside (...), using operator<<.
  17126. (Convenience overload).
  17127. |
  17128. *Overload 3:*
  17129. Returns string containing a fz_cookie's members, labelled and inside (...), using operator<<.
  17130. (Convenience overload).
  17131. |
  17132. *Overload 4:*
  17133. Returns string containing a fz_draw_options's members, labelled and inside (...), using operator<<.
  17134. (Convenience overload).
  17135. |
  17136. *Overload 5:*
  17137. Returns string containing a fz_install_load_system_font_funcs_args's members, labelled and inside (...), using operator<<.
  17138. (Convenience overload).
  17139. |
  17140. *Overload 6:*
  17141. Returns string containing a fz_irect's members, labelled and inside (...), using operator<<.
  17142. (Convenience overload).
  17143. |
  17144. *Overload 7:*
  17145. Returns string containing a fz_location's members, labelled and inside (...), using operator<<.
  17146. (Convenience overload).
  17147. |
  17148. *Overload 8:*
  17149. Returns string containing a fz_matrix's members, labelled and inside (...), using operator<<.
  17150. (Convenience overload).
  17151. |
  17152. *Overload 9:*
  17153. Returns string containing a fz_md5's members, labelled and inside (...), using operator<<.
  17154. (Convenience overload).
  17155. |
  17156. *Overload 10:*
  17157. Returns string containing a fz_outline_item's members, labelled and inside (...), using operator<<.
  17158. (Convenience overload).
  17159. |
  17160. *Overload 11:*
  17161. Returns string containing a fz_pdfocr_options's members, labelled and inside (...), using operator<<.
  17162. (Convenience overload).
  17163. |
  17164. *Overload 12:*
  17165. Returns string containing a fz_point's members, labelled and inside (...), using operator<<.
  17166. (Convenience overload).
  17167. |
  17168. *Overload 13:*
  17169. Returns string containing a fz_pwg_options's members, labelled and inside (...), using operator<<.
  17170. (Convenience overload).
  17171. |
  17172. *Overload 14:*
  17173. Returns string containing a fz_quad's members, labelled and inside (...), using operator<<.
  17174. (Convenience overload).
  17175. |
  17176. *Overload 15:*
  17177. Returns string containing a fz_rect's members, labelled and inside (...), using operator<<.
  17178. (Convenience overload).
  17179. |
  17180. *Overload 16:*
  17181. Returns string containing a fz_stext_options's members, labelled and inside (...), using operator<<.
  17182. (Convenience overload).
  17183. |
  17184. *Overload 17:*
  17185. Returns string containing a fz_story_element_position's members, labelled and inside (...), using operator<<.
  17186. (Convenience overload).
  17187. |
  17188. *Overload 18:*
  17189. Returns string containing a fz_transition's members, labelled and inside (...), using operator<<.
  17190. (Convenience overload).
  17191. |
  17192. *Overload 19:*
  17193. Returns string containing a pdf_clean_options's members, labelled and inside (...), using operator<<.
  17194. (Convenience overload).
  17195. |
  17196. *Overload 20:*
  17197. Returns string containing a pdf_filter_factory's members, labelled and inside (...), using operator<<.
  17198. (Convenience overload).
  17199. |
  17200. *Overload 21:*
  17201. Returns string containing a pdf_filter_options's members, labelled and inside (...), using operator<<.
  17202. (Convenience overload).
  17203. |
  17204. *Overload 22:*
  17205. Returns string containing a pdf_image_rewriter_options's members, labelled and inside (...), using operator<<.
  17206. (Convenience overload).
  17207. |
  17208. *Overload 23:*
  17209. Returns string containing a pdf_layer_config's members, labelled and inside (...), using operator<<.
  17210. (Convenience overload).
  17211. |
  17212. *Overload 24:*
  17213. Returns string containing a pdf_layer_config_ui's members, labelled and inside (...), using operator<<.
  17214. (Convenience overload).
  17215. |
  17216. *Overload 25:*
  17217. Returns string containing a pdf_recolor_options's members, labelled and inside (...), using operator<<.
  17218. (Convenience overload).
  17219. |
  17220. *Overload 26:*
  17221. Returns string containing a pdf_redact_options's members, labelled and inside (...), using operator<<.
  17222. (Convenience overload).
  17223. |
  17224. *Overload 27:*
  17225. Returns string containing a pdf_sanitize_filter_options's members, labelled and inside (...), using operator<<.
  17226. (Convenience overload).
  17227. |
  17228. *Overload 28:*
  17229. Returns string containing a pdf_write_options's members, labelled and inside (...), using operator<<.
  17230. (Convenience overload).
  17231. """
  17232. return _mupdf.to_string(*args)
  17233. def reinit_singlethreaded():
  17234. r"""
  17235. Reinitializes the MuPDF context for single-threaded use, which
  17236. is slightly faster when calling code is single threaded.
  17237. This should be called before any other use of MuPDF.
  17238. """
  17239. return _mupdf.reinit_singlethreaded()
  17240. class FzAaContext(object):
  17241. r"""Wrapper class for struct `fz_aa_context`."""
  17242. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17243. __repr__ = _swig_repr
  17244. def __init__(self, *args):
  17245. r"""
  17246. *Overload 1:*
  17247. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  17248. |
  17249. *Overload 2:*
  17250. Constructor using raw copy of pre-existing `::fz_aa_context`.
  17251. |
  17252. *Overload 3:*
  17253. Constructor using raw copy of pre-existing `::fz_aa_context`.
  17254. """
  17255. _mupdf.FzAaContext_swiginit(self, _mupdf.new_FzAaContext(*args))
  17256. def internal(self, *args):
  17257. r"""
  17258. *Overload 1:*
  17259. Access as underlying struct.
  17260. |
  17261. *Overload 2:*
  17262. Access as underlying struct.
  17263. """
  17264. return _mupdf.FzAaContext_internal(self, *args)
  17265. __swig_destroy__ = _mupdf.delete_FzAaContext
  17266. hscale = property(_mupdf.FzAaContext_hscale_get, _mupdf.FzAaContext_hscale_set)
  17267. vscale = property(_mupdf.FzAaContext_vscale_get, _mupdf.FzAaContext_vscale_set)
  17268. scale = property(_mupdf.FzAaContext_scale_get, _mupdf.FzAaContext_scale_set)
  17269. bits = property(_mupdf.FzAaContext_bits_get, _mupdf.FzAaContext_bits_set)
  17270. text_bits = property(_mupdf.FzAaContext_text_bits_get, _mupdf.FzAaContext_text_bits_set)
  17271. min_line_width = property(_mupdf.FzAaContext_min_line_width_get, _mupdf.FzAaContext_min_line_width_set)
  17272. s_num_instances = property(_mupdf.FzAaContext_s_num_instances_get, _mupdf.FzAaContext_s_num_instances_set)
  17273. def to_string(self):
  17274. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  17275. return _mupdf.FzAaContext_to_string(self)
  17276. def __eq__(self, rhs):
  17277. r"""Comparison method."""
  17278. return _mupdf.FzAaContext___eq__(self, rhs)
  17279. def __ne__(self, rhs):
  17280. r"""Comparison method."""
  17281. return _mupdf.FzAaContext___ne__(self, rhs)
  17282. # Register FzAaContext in _mupdf:
  17283. _mupdf.FzAaContext_swigregister(FzAaContext)
  17284. metadata_keys = cvar.metadata_keys
  17285. class FzActivityContext(object):
  17286. r"""Wrapper class for struct `fz_activity_context`. Not copyable or assignable."""
  17287. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17288. __repr__ = _swig_repr
  17289. def __init__(self, *args):
  17290. r"""
  17291. *Overload 1:*
  17292. Default constructor, sets `m_internal` to null.
  17293. |
  17294. *Overload 2:*
  17295. Constructor using raw copy of pre-existing `::fz_activity_context`.
  17296. """
  17297. _mupdf.FzActivityContext_swiginit(self, _mupdf.new_FzActivityContext(*args))
  17298. __swig_destroy__ = _mupdf.delete_FzActivityContext
  17299. def m_internal_value(self):
  17300. r"""Return numerical value of .m_internal; helps with Python debugging."""
  17301. return _mupdf.FzActivityContext_m_internal_value(self)
  17302. def __nonzero__(self):
  17303. return _mupdf.FzActivityContext___nonzero__(self)
  17304. __bool__ = __nonzero__
  17305. m_internal = property(_mupdf.FzActivityContext_m_internal_get, _mupdf.FzActivityContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  17306. s_num_instances = property(_mupdf.FzActivityContext_s_num_instances_get, _mupdf.FzActivityContext_s_num_instances_set)
  17307. # Register FzActivityContext in _mupdf:
  17308. _mupdf.FzActivityContext_swigregister(FzActivityContext)
  17309. class FzAes(object):
  17310. r"""
  17311. Wrapper class for struct `fz_aes`. Not copyable or assignable.
  17312. Structure definitions are public to enable stack
  17313. based allocation. Do not access the members directly.
  17314. """
  17315. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17316. __repr__ = _swig_repr
  17317. def fz_aes_crypt_cbc(self, mode, length, iv, input, output):
  17318. r"""
  17319. Class-aware wrapper for `::fz_aes_crypt_cbc()`.
  17320. AES block processing. Encrypts or Decrypts (according to mode,
  17321. which must match what was initially set up) length bytes (which
  17322. must be a multiple of 16), using (and modifying) the insertion
  17323. vector iv, reading from input, and writing to output.
  17324. Never throws an exception.
  17325. """
  17326. return _mupdf.FzAes_fz_aes_crypt_cbc(self, mode, length, iv, input, output)
  17327. def fz_aes_setkey_dec(self, key, keysize):
  17328. r"""
  17329. Class-aware wrapper for `::fz_aes_setkey_dec()`.
  17330. AES decryption initialization. Fills in the supplied context
  17331. and prepares for decryption using the given key.
  17332. Returns non-zero for error (key size other than 128/192/256).
  17333. Never throws an exception.
  17334. """
  17335. return _mupdf.FzAes_fz_aes_setkey_dec(self, key, keysize)
  17336. def fz_aes_setkey_enc(self, key, keysize):
  17337. r"""
  17338. Class-aware wrapper for `::fz_aes_setkey_enc()`.
  17339. AES encryption initialization. Fills in the supplied context
  17340. and prepares for encryption using the given key.
  17341. Returns non-zero for error (key size other than 128/192/256).
  17342. Never throws an exception.
  17343. """
  17344. return _mupdf.FzAes_fz_aes_setkey_enc(self, key, keysize)
  17345. def __init__(self, *args):
  17346. r"""
  17347. *Overload 1:*
  17348. Default constructor, sets `m_internal` to null.
  17349. |
  17350. *Overload 2:*
  17351. Constructor using raw copy of pre-existing `::fz_aes`.
  17352. """
  17353. _mupdf.FzAes_swiginit(self, _mupdf.new_FzAes(*args))
  17354. __swig_destroy__ = _mupdf.delete_FzAes
  17355. def m_internal_value(self):
  17356. r"""Return numerical value of .m_internal; helps with Python debugging."""
  17357. return _mupdf.FzAes_m_internal_value(self)
  17358. def __nonzero__(self):
  17359. return _mupdf.FzAes___nonzero__(self)
  17360. __bool__ = __nonzero__
  17361. m_internal = property(_mupdf.FzAes_m_internal_get, _mupdf.FzAes_m_internal_set, doc=r"""Pointer to wrapped data.""")
  17362. s_num_instances = property(_mupdf.FzAes_s_num_instances_get, _mupdf.FzAes_s_num_instances_set)
  17363. # Register FzAes in _mupdf:
  17364. _mupdf.FzAes_swigregister(FzAes)
  17365. class FzAllocContext(object):
  17366. r"""
  17367. Wrapper class for struct `fz_alloc_context`. Not copyable or assignable.
  17368. Allocator structure; holds callbacks and private data pointer.
  17369. """
  17370. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17371. __repr__ = _swig_repr
  17372. def __init__(self, *args):
  17373. r"""
  17374. *Overload 1:*
  17375. Default constructor, sets `m_internal` to null.
  17376. |
  17377. *Overload 2:*
  17378. Constructor using raw copy of pre-existing `::fz_alloc_context`.
  17379. """
  17380. _mupdf.FzAllocContext_swiginit(self, _mupdf.new_FzAllocContext(*args))
  17381. __swig_destroy__ = _mupdf.delete_FzAllocContext
  17382. def m_internal_value(self):
  17383. r"""Return numerical value of .m_internal; helps with Python debugging."""
  17384. return _mupdf.FzAllocContext_m_internal_value(self)
  17385. def __nonzero__(self):
  17386. return _mupdf.FzAllocContext___nonzero__(self)
  17387. __bool__ = __nonzero__
  17388. m_internal = property(_mupdf.FzAllocContext_m_internal_get, _mupdf.FzAllocContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  17389. s_num_instances = property(_mupdf.FzAllocContext_s_num_instances_get, _mupdf.FzAllocContext_s_num_instances_set)
  17390. # Register FzAllocContext in _mupdf:
  17391. _mupdf.FzAllocContext_swigregister(FzAllocContext)
  17392. class FzArc4(object):
  17393. r"""
  17394. Wrapper class for struct `fz_arc4`. Not copyable or assignable.
  17395. Structure definition is public to enable stack
  17396. based allocation. Do not access the members directly.
  17397. """
  17398. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17399. __repr__ = _swig_repr
  17400. def fz_arc4_encrypt(self, dest, src, len):
  17401. r"""
  17402. Class-aware wrapper for `::fz_arc4_encrypt()`.
  17403. RC4 block encrypt operation; encrypt src into dst (both of
  17404. length len) updating the RC4 state as we go.
  17405. Never throws an exception.
  17406. """
  17407. return _mupdf.FzArc4_fz_arc4_encrypt(self, dest, src, len)
  17408. def fz_arc4_final(self):
  17409. r"""
  17410. Class-aware wrapper for `::fz_arc4_final()`.
  17411. RC4 finalization. Zero the context.
  17412. Never throws an exception.
  17413. """
  17414. return _mupdf.FzArc4_fz_arc4_final(self)
  17415. def fz_arc4_init(self, key, len):
  17416. r"""
  17417. Class-aware wrapper for `::fz_arc4_init()`.
  17418. RC4 initialization. Begins an RC4 operation, writing a new
  17419. context.
  17420. Never throws an exception.
  17421. """
  17422. return _mupdf.FzArc4_fz_arc4_init(self, key, len)
  17423. def __init__(self, *args):
  17424. r"""
  17425. *Overload 1:*
  17426. Default constructor, sets `m_internal` to null.
  17427. |
  17428. *Overload 2:*
  17429. Constructor using raw copy of pre-existing `::fz_arc4`.
  17430. """
  17431. _mupdf.FzArc4_swiginit(self, _mupdf.new_FzArc4(*args))
  17432. __swig_destroy__ = _mupdf.delete_FzArc4
  17433. def m_internal_value(self):
  17434. r"""Return numerical value of .m_internal; helps with Python debugging."""
  17435. return _mupdf.FzArc4_m_internal_value(self)
  17436. def __nonzero__(self):
  17437. return _mupdf.FzArc4___nonzero__(self)
  17438. __bool__ = __nonzero__
  17439. m_internal = property(_mupdf.FzArc4_m_internal_get, _mupdf.FzArc4_m_internal_set, doc=r"""Pointer to wrapped data.""")
  17440. s_num_instances = property(_mupdf.FzArc4_s_num_instances_get, _mupdf.FzArc4_s_num_instances_set)
  17441. # Register FzArc4 in _mupdf:
  17442. _mupdf.FzArc4_swigregister(FzArc4)
  17443. class FzArchive(object):
  17444. r"""
  17445. Wrapper class for struct `fz_archive`.
  17446. fz_archive:
  17447. fz_archive provides methods for accessing "archive" files.
  17448. An archive file is a conceptual entity that contains multiple
  17449. files, which can be counted, enumerated, and read.
  17450. Implementations of fz_archive based upon directories, zip
  17451. and tar files are included.
  17452. """
  17453. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17454. __repr__ = _swig_repr
  17455. def fz_archive_format(self):
  17456. r"""
  17457. Class-aware wrapper for `::fz_archive_format()`.
  17458. Return a pointer to a string describing the format of the
  17459. archive.
  17460. The lifetime of the string is unspecified (in current
  17461. implementations the string will persist until the archive
  17462. is closed, but this is not guaranteed).
  17463. """
  17464. return _mupdf.FzArchive_fz_archive_format(self)
  17465. def fz_count_archive_entries(self):
  17466. r"""
  17467. Class-aware wrapper for `::fz_count_archive_entries()`.
  17468. Number of entries in archive.
  17469. Will always return a value >= 0.
  17470. May throw an exception if this type of archive cannot count the
  17471. entries (such as a directory).
  17472. """
  17473. return _mupdf.FzArchive_fz_count_archive_entries(self)
  17474. def fz_has_archive_entry(self, name):
  17475. r"""
  17476. Class-aware wrapper for `::fz_has_archive_entry()`.
  17477. Check if entry by given name exists.
  17478. If named entry does not exist 0 will be returned, if it does
  17479. exist 1 is returned.
  17480. name: Entry name to look for, this must be an exact match to
  17481. the entry name in the archive.
  17482. """
  17483. return _mupdf.FzArchive_fz_has_archive_entry(self, name)
  17484. def fz_list_archive_entry(self, idx):
  17485. r"""
  17486. Class-aware wrapper for `::fz_list_archive_entry()`.
  17487. Get listed name of entry position idx.
  17488. idx: Must be a value >= 0 < return value from
  17489. fz_count_archive_entries. If not in range NULL will be
  17490. returned.
  17491. May throw an exception if this type of archive cannot list the
  17492. entries (such as a directory).
  17493. """
  17494. return _mupdf.FzArchive_fz_list_archive_entry(self, idx)
  17495. def fz_mount_multi_archive(self, sub, path):
  17496. r"""
  17497. Class-aware wrapper for `::fz_mount_multi_archive()`.
  17498. Add an archive to the set of archives handled by a multi
  17499. archive.
  17500. If path is NULL, then the archive contents will appear at the
  17501. top level, otherwise, the archives contents will appear prefixed
  17502. by path.
  17503. """
  17504. return _mupdf.FzArchive_fz_mount_multi_archive(self, sub, path)
  17505. def fz_open_archive_entry(self, name):
  17506. r"""
  17507. Class-aware wrapper for `::fz_open_archive_entry()`.
  17508. Opens an archive entry as a stream.
  17509. name: Entry name to look for, this must be an exact match to
  17510. the entry name in the archive.
  17511. Throws an exception if a matching entry cannot be found.
  17512. """
  17513. return _mupdf.FzArchive_fz_open_archive_entry(self, name)
  17514. def fz_parse_xml_archive_entry(self, filename, preserve_white):
  17515. r"""
  17516. Class-aware wrapper for `::fz_parse_xml_archive_entry()`.
  17517. Parse the contents of an archive entry into a tree of xml nodes.
  17518. preserve_white: whether to keep or delete all-whitespace nodes.
  17519. """
  17520. return _mupdf.FzArchive_fz_parse_xml_archive_entry(self, filename, preserve_white)
  17521. def fz_read_archive_entry(self, name):
  17522. r"""
  17523. Class-aware wrapper for `::fz_read_archive_entry()`.
  17524. Reads all bytes in an archive entry
  17525. into a buffer.
  17526. name: Entry name to look for, this must be an exact match to
  17527. the entry name in the archive.
  17528. Throws an exception if a matching entry cannot be found.
  17529. """
  17530. return _mupdf.FzArchive_fz_read_archive_entry(self, name)
  17531. def fz_tree_archive_add_buffer(self, name, buf):
  17532. r"""
  17533. Class-aware wrapper for `::fz_tree_archive_add_buffer()`.
  17534. Add a named buffer to an existing tree archive.
  17535. The tree will take a new reference to the buffer. Ownership
  17536. is not transferred.
  17537. """
  17538. return _mupdf.FzArchive_fz_tree_archive_add_buffer(self, name, buf)
  17539. def fz_tree_archive_add_data(self, name, data, size):
  17540. r"""
  17541. Class-aware wrapper for `::fz_tree_archive_add_data()`.
  17542. Add a named block of data to an existing tree archive.
  17543. The data will be copied into a buffer, and so the caller
  17544. may free it as soon as this returns.
  17545. """
  17546. return _mupdf.FzArchive_fz_tree_archive_add_data(self, name, data, size)
  17547. def fz_try_open_archive_entry(self, name):
  17548. r"""
  17549. Class-aware wrapper for `::fz_try_open_archive_entry()`.
  17550. Opens an archive entry as a stream.
  17551. Returns NULL if a matching entry cannot be found, otherwise
  17552. behaves exactly as fz_open_archive_entry.
  17553. """
  17554. return _mupdf.FzArchive_fz_try_open_archive_entry(self, name)
  17555. def fz_try_parse_xml_archive_entry(self, filename, preserve_white):
  17556. r"""
  17557. Class-aware wrapper for `::fz_try_parse_xml_archive_entry()`.
  17558. Try and parse the contents of an archive entry into a tree of xml nodes.
  17559. preserve_white: whether to keep or delete all-whitespace nodes.
  17560. Will return NULL if the archive entry can't be found. Otherwise behaves
  17561. the same as fz_parse_xml_archive_entry. May throw exceptions.
  17562. """
  17563. return _mupdf.FzArchive_fz_try_parse_xml_archive_entry(self, filename, preserve_white)
  17564. def fz_try_read_archive_entry(self, name):
  17565. r"""
  17566. Class-aware wrapper for `::fz_try_read_archive_entry()`.
  17567. Reads all bytes in an archive entry
  17568. into a buffer.
  17569. name: Entry name to look for, this must be an exact match to
  17570. the entry name in the archive.
  17571. Returns NULL if a matching entry cannot be found. Otherwise behaves
  17572. the same as fz_read_archive_entry. Exceptions may be thrown.
  17573. """
  17574. return _mupdf.FzArchive_fz_try_read_archive_entry(self, name)
  17575. def __init__(self, *args):
  17576. r"""
  17577. *Overload 1:*
  17578. == Constructors. Constructor using `fz_new_archive_of_size()`.
  17579. |
  17580. *Overload 2:*
  17581. Constructor using `fz_new_multi_archive()`.
  17582. Create a new multi archive (initially empty).
  17583. |
  17584. *Overload 3:*
  17585. Constructor using `fz_new_tree_archive()`.
  17586. Create an archive that holds named buffers.
  17587. tree can either be a preformed tree with fz_buffers as values,
  17588. or it can be NULL for an empty tree.
  17589. |
  17590. *Overload 4:*
  17591. Copy constructor using `fz_keep_archive()`.
  17592. |
  17593. *Overload 5:*
  17594. Constructor using raw copy of pre-existing `::fz_archive`.
  17595. """
  17596. _mupdf.FzArchive_swiginit(self, _mupdf.new_FzArchive(*args))
  17597. __swig_destroy__ = _mupdf.delete_FzArchive
  17598. def m_internal_value(self):
  17599. r"""Return numerical value of .m_internal; helps with Python debugging."""
  17600. return _mupdf.FzArchive_m_internal_value(self)
  17601. def __nonzero__(self):
  17602. return _mupdf.FzArchive___nonzero__(self)
  17603. __bool__ = __nonzero__
  17604. m_internal = property(_mupdf.FzArchive_m_internal_get, _mupdf.FzArchive_m_internal_set, doc=r"""Pointer to wrapped data.""")
  17605. s_num_instances = property(_mupdf.FzArchive_s_num_instances_get, _mupdf.FzArchive_s_num_instances_set)
  17606. # Register FzArchive in _mupdf:
  17607. _mupdf.FzArchive_swigregister(FzArchive)
  17608. class FzArchiveHandler(object):
  17609. r"""Wrapper class for struct `fz_archive_handler`. Not copyable or assignable."""
  17610. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17611. __repr__ = _swig_repr
  17612. def fz_register_archive_handler(self):
  17613. r"""Class-aware wrapper for `::fz_register_archive_handler()`."""
  17614. return _mupdf.FzArchiveHandler_fz_register_archive_handler(self)
  17615. def __init__(self, *args):
  17616. r"""
  17617. *Overload 1:*
  17618. Default constructor, sets `m_internal` to null.
  17619. |
  17620. *Overload 2:*
  17621. Constructor using raw copy of pre-existing `::fz_archive_handler`.
  17622. """
  17623. _mupdf.FzArchiveHandler_swiginit(self, _mupdf.new_FzArchiveHandler(*args))
  17624. __swig_destroy__ = _mupdf.delete_FzArchiveHandler
  17625. def m_internal_value(self):
  17626. r"""Return numerical value of .m_internal; helps with Python debugging."""
  17627. return _mupdf.FzArchiveHandler_m_internal_value(self)
  17628. def __nonzero__(self):
  17629. return _mupdf.FzArchiveHandler___nonzero__(self)
  17630. __bool__ = __nonzero__
  17631. m_internal = property(_mupdf.FzArchiveHandler_m_internal_get, _mupdf.FzArchiveHandler_m_internal_set, doc=r"""Pointer to wrapped data.""")
  17632. s_num_instances = property(_mupdf.FzArchiveHandler_s_num_instances_get, _mupdf.FzArchiveHandler_s_num_instances_set)
  17633. # Register FzArchiveHandler in _mupdf:
  17634. _mupdf.FzArchiveHandler_swigregister(FzArchiveHandler)
  17635. class FzArchiveHandlerContext(object):
  17636. r"""Wrapper class for struct `fz_archive_handler_context`. Not copyable or assignable."""
  17637. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17638. __repr__ = _swig_repr
  17639. def __init__(self, *args):
  17640. r"""
  17641. *Overload 1:*
  17642. Default constructor, sets `m_internal` to null.
  17643. |
  17644. *Overload 2:*
  17645. Constructor using raw copy of pre-existing `::fz_archive_handler_context`.
  17646. """
  17647. _mupdf.FzArchiveHandlerContext_swiginit(self, _mupdf.new_FzArchiveHandlerContext(*args))
  17648. __swig_destroy__ = _mupdf.delete_FzArchiveHandlerContext
  17649. def m_internal_value(self):
  17650. r"""Return numerical value of .m_internal; helps with Python debugging."""
  17651. return _mupdf.FzArchiveHandlerContext_m_internal_value(self)
  17652. def __nonzero__(self):
  17653. return _mupdf.FzArchiveHandlerContext___nonzero__(self)
  17654. __bool__ = __nonzero__
  17655. m_internal = property(_mupdf.FzArchiveHandlerContext_m_internal_get, _mupdf.FzArchiveHandlerContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  17656. s_num_instances = property(_mupdf.FzArchiveHandlerContext_s_num_instances_get, _mupdf.FzArchiveHandlerContext_s_num_instances_set)
  17657. # Register FzArchiveHandlerContext in _mupdf:
  17658. _mupdf.FzArchiveHandlerContext_swigregister(FzArchiveHandlerContext)
  17659. class FzBandWriter(object):
  17660. r"""
  17661. Wrapper class for struct `fz_band_writer`. Not copyable or assignable.
  17662. fz_band_writer
  17663. """
  17664. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17665. __repr__ = _swig_repr
  17666. MONO = _mupdf.FzBandWriter_MONO
  17667. COLOR = _mupdf.FzBandWriter_COLOR
  17668. PNG = _mupdf.FzBandWriter_PNG
  17669. PNM = _mupdf.FzBandWriter_PNM
  17670. PAM = _mupdf.FzBandWriter_PAM
  17671. PBM = _mupdf.FzBandWriter_PBM
  17672. PKM = _mupdf.FzBandWriter_PKM
  17673. PS = _mupdf.FzBandWriter_PS
  17674. PSD = _mupdf.FzBandWriter_PSD
  17675. def fz_close_band_writer(self):
  17676. r"""
  17677. Class-aware wrapper for `::fz_close_band_writer()`.
  17678. Finishes up the output and closes the band writer. After this
  17679. call no more headers or bands may be written.
  17680. """
  17681. return _mupdf.FzBandWriter_fz_close_band_writer(self)
  17682. def fz_pdfocr_band_writer_set_progress(self, progress_fn, progress_arg):
  17683. r"""
  17684. Class-aware wrapper for `::fz_pdfocr_band_writer_set_progress()`.
  17685. Set the progress callback for a pdfocr bandwriter.
  17686. """
  17687. return _mupdf.FzBandWriter_fz_pdfocr_band_writer_set_progress(self, progress_fn, progress_arg)
  17688. def fz_write_band(self, stride, band_height, samples):
  17689. r"""
  17690. Class-aware wrapper for `::fz_write_band()`.
  17691. Cause a band writer to write the next band
  17692. of data for an image.
  17693. stride: The byte offset from the first byte of the data
  17694. for a pixel to the first byte of the data for the same pixel
  17695. on the row below.
  17696. band_height: The number of lines in this band.
  17697. samples: Pointer to first byte of the data.
  17698. """
  17699. return _mupdf.FzBandWriter_fz_write_band(self, stride, band_height, samples)
  17700. def fz_write_header(self, w, h, n, alpha, xres, yres, pagenum, cs, seps):
  17701. r"""
  17702. Class-aware wrapper for `::fz_write_header()`.
  17703. Cause a band writer to write the header for
  17704. a banded image with the given properties/dimensions etc. This
  17705. also configures the bandwriter for the format of the data to be
  17706. passed in future calls.
  17707. w, h: Width and Height of the entire page.
  17708. n: Number of components (including spots and alphas).
  17709. alpha: Number of alpha components.
  17710. xres, yres: X and Y resolutions in dpi.
  17711. cs: Colorspace (NULL for bitmaps)
  17712. seps: Separation details (or NULL).
  17713. """
  17714. return _mupdf.FzBandWriter_fz_write_header(self, w, h, n, alpha, xres, yres, pagenum, cs, seps)
  17715. def __init__(self, *args):
  17716. r"""
  17717. *Overload 1:*
  17718. == Constructors. Constructor using `fz_new_band_writer_of_size()`.
  17719. |
  17720. *Overload 2:*
  17721. Constructor using `fz_new_color_pcl_band_writer()`.
  17722. Create a new band writer, outputting color pcl.
  17723. Constructor using `fz_new_mono_pcl_band_writer()`.
  17724. Create a new band writer, outputting monochrome pcl.
  17725. |
  17726. *Overload 3:*
  17727. Constructor using `fz_new_mono_pwg_band_writer()`.
  17728. Create a new monochrome pwg band writer.
  17729. |
  17730. *Overload 4:*
  17731. Constructor using `fz_new_pam_band_writer()`.
  17732. Create a band writer targeting pnm (greyscale, rgb or cmyk,
  17733. with or without alpha).
  17734. Constructor using `fz_new_pbm_band_writer()`.
  17735. Create a new band writer, targeting pbm.
  17736. Constructor using `fz_new_pclm_band_writer()`.
  17737. Create a new band writer, outputting pclm
  17738. |
  17739. *Overload 5:*
  17740. Constructor using `fz_new_pdfocr_band_writer()`.
  17741. Create a new band writer, outputting pdfocr.
  17742. Ownership of output stays with the caller, the band writer
  17743. borrows the reference. The caller must keep the output around
  17744. for the duration of the band writer, and then close/drop as
  17745. appropriate.
  17746. |
  17747. *Overload 6:*
  17748. Constructor using `fz_new_pkm_band_writer()`.
  17749. Create a new pkm band writer for CMYK pixmaps.
  17750. Constructor using `fz_new_png_band_writer()`.
  17751. Create a new png band writer (greyscale or RGB, with or without
  17752. alpha).
  17753. |
  17754. *Overload 7:*
  17755. Constructor using `fz_new_pnm_band_writer()`.
  17756. Create a band writer targeting pnm (greyscale or rgb, no
  17757. alpha).
  17758. Constructor using `fz_new_ps_band_writer()`.
  17759. Create a postscript band writer for gray, rgb, or cmyk, no
  17760. alpha.
  17761. Constructor using `fz_new_psd_band_writer()`.
  17762. Open a PSD band writer.
  17763. Constructor using `fz_new_pwg_band_writer()`.
  17764. Create a new color pwg band writer.
  17765. Constructor using fz_new_mono_pcl_band_writer() or fz_new_color_pcl_band_writer().
  17766. |
  17767. *Overload 8:*
  17768. Constructor using fz_new_p*_band_writer().
  17769. |
  17770. *Overload 9:*
  17771. Constructor using fz_new_mono_pwg_band_writer() or fz_new_pwg_band_writer().
  17772. |
  17773. *Overload 10:*
  17774. Default constructor, sets `m_internal` to null.
  17775. |
  17776. *Overload 11:*
  17777. Constructor using raw copy of pre-existing `::fz_band_writer`.
  17778. """
  17779. _mupdf.FzBandWriter_swiginit(self, _mupdf.new_FzBandWriter(*args))
  17780. __swig_destroy__ = _mupdf.delete_FzBandWriter
  17781. def m_internal_value(self):
  17782. r"""Return numerical value of .m_internal; helps with Python debugging."""
  17783. return _mupdf.FzBandWriter_m_internal_value(self)
  17784. def __nonzero__(self):
  17785. return _mupdf.FzBandWriter___nonzero__(self)
  17786. __bool__ = __nonzero__
  17787. m_internal = property(_mupdf.FzBandWriter_m_internal_get, _mupdf.FzBandWriter_m_internal_set, doc=r"""Pointer to wrapped data.""")
  17788. s_num_instances = property(_mupdf.FzBandWriter_s_num_instances_get, _mupdf.FzBandWriter_s_num_instances_set)
  17789. # Register FzBandWriter in _mupdf:
  17790. _mupdf.FzBandWriter_swigregister(FzBandWriter)
  17791. class FzBitmap(object):
  17792. r"""
  17793. Wrapper class for struct `fz_bitmap`.
  17794. Bitmaps have 1 bit per component. Only used for creating
  17795. halftoned versions of contone buffers, and saving out. Samples
  17796. are stored msb first, akin to pbms.
  17797. The internals of this struct are considered implementation
  17798. details and subject to change. Where possible, accessor
  17799. functions should be used in preference.
  17800. """
  17801. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17802. __repr__ = _swig_repr
  17803. def fz_bitmap_details(self, w, h, n, stride):
  17804. r"""
  17805. Class-aware wrapper for `::fz_bitmap_details()`.
  17806. This method has out-params. Python/C# wrappers look like:
  17807. `fz_bitmap_details()` => `(int w, int h, int n, int stride)`
  17808. Retrieve details of a given bitmap.
  17809. bitmap: The bitmap to query.
  17810. w: Pointer to storage to retrieve width (or NULL).
  17811. h: Pointer to storage to retrieve height (or NULL).
  17812. n: Pointer to storage to retrieve number of color components (or
  17813. NULL).
  17814. stride: Pointer to storage to retrieve bitmap stride (or NULL).
  17815. """
  17816. return _mupdf.FzBitmap_fz_bitmap_details(self, w, h, n, stride)
  17817. def fz_clear_bitmap(self):
  17818. r"""
  17819. Class-aware wrapper for `::fz_clear_bitmap()`.
  17820. Set the entire bitmap to 0.
  17821. Never throws exceptions.
  17822. """
  17823. return _mupdf.FzBitmap_fz_clear_bitmap(self)
  17824. def fz_invert_bitmap(self):
  17825. r"""
  17826. Class-aware wrapper for `::fz_invert_bitmap()`.
  17827. Invert bitmap.
  17828. Never throws exceptions.
  17829. """
  17830. return _mupdf.FzBitmap_fz_invert_bitmap(self)
  17831. def fz_save_bitmap_as_pbm(self, filename):
  17832. r"""
  17833. Class-aware wrapper for `::fz_save_bitmap_as_pbm()`.
  17834. Save a bitmap as a pbm.
  17835. """
  17836. return _mupdf.FzBitmap_fz_save_bitmap_as_pbm(self, filename)
  17837. def fz_save_bitmap_as_pcl(self, filename, append, pcl):
  17838. r"""
  17839. Class-aware wrapper for `::fz_save_bitmap_as_pcl()`.
  17840. Save a bitmap as mono PCL.
  17841. """
  17842. return _mupdf.FzBitmap_fz_save_bitmap_as_pcl(self, filename, append, pcl)
  17843. def fz_save_bitmap_as_pkm(self, filename):
  17844. r"""
  17845. Class-aware wrapper for `::fz_save_bitmap_as_pkm()`.
  17846. Save a CMYK bitmap as a pkm.
  17847. """
  17848. return _mupdf.FzBitmap_fz_save_bitmap_as_pkm(self, filename)
  17849. def fz_save_bitmap_as_pwg(self, filename, append, pwg):
  17850. r"""
  17851. Class-aware wrapper for `::fz_save_bitmap_as_pwg()`.
  17852. Save a bitmap as a PWG.
  17853. """
  17854. return _mupdf.FzBitmap_fz_save_bitmap_as_pwg(self, filename, append, pwg)
  17855. def __init__(self, *args):
  17856. r"""
  17857. *Overload 1:*
  17858. == Constructors. Constructor using `fz_new_bitmap()`.
  17859. Create a new bitmap.
  17860. w, h: Width and Height for the bitmap
  17861. n: Number of color components (assumed to be a divisor of 8)
  17862. xres, yres: X and Y resolutions (in pixels per inch).
  17863. Returns pointer to created bitmap structure. The bitmap
  17864. data is uninitialised.
  17865. |
  17866. *Overload 2:*
  17867. Constructor using `fz_new_bitmap_from_image()`.
  17868. Make a bitmap from a pixmap and a halftone.
  17869. img: The image to generate from. Currently must be a single
  17870. color component with no alpha.
  17871. ht: The halftone to use. NULL implies the default halftone.
  17872. Returns the resultant bitmap. Throws exceptions in the case of
  17873. failure to allocate.
  17874. |
  17875. *Overload 3:*
  17876. Constructor using `fz_new_bitmap_from_pixmap()`.
  17877. Make a bitmap from a pixmap and a halftone.
  17878. pix: The pixmap to generate from. Currently must be a single
  17879. color component with no alpha.
  17880. ht: The halftone to use. NULL implies the default halftone.
  17881. Returns the resultant bitmap. Throws exceptions in the case of
  17882. failure to allocate.
  17883. |
  17884. *Overload 4:*
  17885. Constructor using `fz_new_bitmap_from_pixmap_band()`.
  17886. Make a bitmap from a pixmap and a
  17887. halftone, allowing for the position of the pixmap within an
  17888. overall banded rendering.
  17889. pix: The pixmap to generate from. Currently must be a single
  17890. color component with no alpha.
  17891. ht: The halftone to use. NULL implies the default halftone.
  17892. band_start: Vertical offset within the overall banded rendering
  17893. (in pixels)
  17894. Returns the resultant bitmap. Throws exceptions in the case of
  17895. failure to allocate.
  17896. |
  17897. *Overload 5:*
  17898. Copy constructor using `fz_keep_bitmap()`.
  17899. |
  17900. *Overload 6:*
  17901. Default constructor, sets `m_internal` to null.
  17902. |
  17903. *Overload 7:*
  17904. Constructor using raw copy of pre-existing `::fz_bitmap`.
  17905. """
  17906. _mupdf.FzBitmap_swiginit(self, _mupdf.new_FzBitmap(*args))
  17907. def refs(self):
  17908. return _mupdf.FzBitmap_refs(self)
  17909. def w(self):
  17910. return _mupdf.FzBitmap_w(self)
  17911. def h(self):
  17912. return _mupdf.FzBitmap_h(self)
  17913. def stride(self):
  17914. return _mupdf.FzBitmap_stride(self)
  17915. def n(self):
  17916. return _mupdf.FzBitmap_n(self)
  17917. def xres(self):
  17918. return _mupdf.FzBitmap_xres(self)
  17919. def yres(self):
  17920. return _mupdf.FzBitmap_yres(self)
  17921. def samples(self):
  17922. return _mupdf.FzBitmap_samples(self)
  17923. __swig_destroy__ = _mupdf.delete_FzBitmap
  17924. def m_internal_value(self):
  17925. r"""Return numerical value of .m_internal; helps with Python debugging."""
  17926. return _mupdf.FzBitmap_m_internal_value(self)
  17927. def __nonzero__(self):
  17928. return _mupdf.FzBitmap___nonzero__(self)
  17929. __bool__ = __nonzero__
  17930. m_internal = property(_mupdf.FzBitmap_m_internal_get, _mupdf.FzBitmap_m_internal_set, doc=r"""Pointer to wrapped data.""")
  17931. s_num_instances = property(_mupdf.FzBitmap_s_num_instances_get, _mupdf.FzBitmap_s_num_instances_set)
  17932. # Register FzBitmap in _mupdf:
  17933. _mupdf.FzBitmap_swigregister(FzBitmap)
  17934. class FzBuffer(object):
  17935. r"""
  17936. Wrapper class for struct `fz_buffer`.
  17937. fz_buffer is a wrapper around a dynamically allocated array of
  17938. bytes.
  17939. Buffers have a capacity (the number of bytes storage immediately
  17940. available) and a current size.
  17941. The contents of the structure are considered implementation
  17942. details and are subject to change. Users should use the accessor
  17943. functions in preference.
  17944. """
  17945. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17946. __repr__ = _swig_repr
  17947. @staticmethod
  17948. def fz_new_buffer_from_copied_data(data, size):
  17949. r"""
  17950. Class-aware wrapper for `::fz_new_buffer_from_copied_data()`.
  17951. Create a new buffer containing a copy of the passed data.
  17952. """
  17953. return _mupdf.FzBuffer_fz_new_buffer_from_copied_data(data, size)
  17954. @staticmethod
  17955. def fz_new_buffer_from_image_as_pbm(image, color_params):
  17956. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pbm()`."""
  17957. return _mupdf.FzBuffer_fz_new_buffer_from_image_as_pbm(image, color_params)
  17958. @staticmethod
  17959. def fz_new_buffer_from_image_as_pkm(image, color_params):
  17960. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pkm()`."""
  17961. return _mupdf.FzBuffer_fz_new_buffer_from_image_as_pkm(image, color_params)
  17962. @staticmethod
  17963. def fz_new_buffer_from_image_as_pnm(image, color_params):
  17964. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pnm()`."""
  17965. return _mupdf.FzBuffer_fz_new_buffer_from_image_as_pnm(image, color_params)
  17966. @staticmethod
  17967. def fz_new_buffer_from_image_as_pam(image, color_params):
  17968. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pam()`."""
  17969. return _mupdf.FzBuffer_fz_new_buffer_from_image_as_pam(image, color_params)
  17970. @staticmethod
  17971. def fz_new_buffer_from_image_as_psd(image, color_params):
  17972. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_psd()`."""
  17973. return _mupdf.FzBuffer_fz_new_buffer_from_image_as_psd(image, color_params)
  17974. @staticmethod
  17975. def fz_new_buffer_from_pixmap_as_pbm(pixmap, color_params):
  17976. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pbm()`."""
  17977. return _mupdf.FzBuffer_fz_new_buffer_from_pixmap_as_pbm(pixmap, color_params)
  17978. @staticmethod
  17979. def fz_new_buffer_from_pixmap_as_pkm(pixmap, color_params):
  17980. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pkm()`."""
  17981. return _mupdf.FzBuffer_fz_new_buffer_from_pixmap_as_pkm(pixmap, color_params)
  17982. @staticmethod
  17983. def fz_new_buffer_from_pixmap_as_pnm(pixmap, color_params):
  17984. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pnm()`."""
  17985. return _mupdf.FzBuffer_fz_new_buffer_from_pixmap_as_pnm(pixmap, color_params)
  17986. @staticmethod
  17987. def fz_new_buffer_from_pixmap_as_pam(pixmap, color_params):
  17988. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pam()`."""
  17989. return _mupdf.FzBuffer_fz_new_buffer_from_pixmap_as_pam(pixmap, color_params)
  17990. @staticmethod
  17991. def fz_new_buffer_from_pixmap_as_psd(pix, color_params):
  17992. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_psd()`."""
  17993. return _mupdf.FzBuffer_fz_new_buffer_from_pixmap_as_psd(pix, color_params)
  17994. def fz_append_base64(self, data, size, newline):
  17995. r"""
  17996. Class-aware wrapper for `::fz_append_base64()`.
  17997. Write a base64 encoded data block, optionally with periodic newlines.
  17998. """
  17999. return _mupdf.FzBuffer_fz_append_base64(self, data, size, newline)
  18000. def fz_append_base64_buffer(self, data, newline):
  18001. r"""
  18002. Class-aware wrapper for `::fz_append_base64_buffer()`.
  18003. Append a base64 encoded fz_buffer, optionally with periodic newlines.
  18004. """
  18005. return _mupdf.FzBuffer_fz_append_base64_buffer(self, data, newline)
  18006. def fz_append_bits(self, value, count):
  18007. r"""Class-aware wrapper for `::fz_append_bits()`."""
  18008. return _mupdf.FzBuffer_fz_append_bits(self, value, count)
  18009. def fz_append_bits_pad(self):
  18010. r"""Class-aware wrapper for `::fz_append_bits_pad()`."""
  18011. return _mupdf.FzBuffer_fz_append_bits_pad(self)
  18012. def fz_append_buffer(self, source):
  18013. r"""
  18014. Class-aware wrapper for `::fz_append_buffer()`.
  18015. Append the contents of the source buffer onto the end of the
  18016. destination buffer, extending automatically as required.
  18017. Ownership of buffers does not change.
  18018. """
  18019. return _mupdf.FzBuffer_fz_append_buffer(self, source)
  18020. def fz_append_byte(self, c):
  18021. r"""Class-aware wrapper for `::fz_append_byte()`."""
  18022. return _mupdf.FzBuffer_fz_append_byte(self, c)
  18023. def fz_append_data(self, data, len):
  18024. r"""
  18025. Class-aware wrapper for `::fz_append_data()`.
  18026. fz_append_*: Append data to a buffer.
  18027. The buffer will automatically grow as required.
  18028. """
  18029. return _mupdf.FzBuffer_fz_append_data(self, data, len)
  18030. def fz_append_image_as_data_uri(self, image):
  18031. r"""Class-aware wrapper for `::fz_append_image_as_data_uri()`."""
  18032. return _mupdf.FzBuffer_fz_append_image_as_data_uri(self, image)
  18033. def fz_append_int16_be(self, x):
  18034. r"""Class-aware wrapper for `::fz_append_int16_be()`."""
  18035. return _mupdf.FzBuffer_fz_append_int16_be(self, x)
  18036. def fz_append_int16_le(self, x):
  18037. r"""Class-aware wrapper for `::fz_append_int16_le()`."""
  18038. return _mupdf.FzBuffer_fz_append_int16_le(self, x)
  18039. def fz_append_int32_be(self, x):
  18040. r"""Class-aware wrapper for `::fz_append_int32_be()`."""
  18041. return _mupdf.FzBuffer_fz_append_int32_be(self, x)
  18042. def fz_append_int32_le(self, x):
  18043. r"""Class-aware wrapper for `::fz_append_int32_le()`."""
  18044. return _mupdf.FzBuffer_fz_append_int32_le(self, x)
  18045. def fz_append_json(self, value):
  18046. r"""Class-aware wrapper for `::fz_append_json()`."""
  18047. return _mupdf.FzBuffer_fz_append_json(self, value)
  18048. def fz_append_pdf_string(self, text):
  18049. r"""
  18050. Class-aware wrapper for `::fz_append_pdf_string()`.
  18051. fz_append_pdf_string: Append a string with PDF syntax quotes and
  18052. escapes.
  18053. The buffer will automatically grow as required.
  18054. """
  18055. return _mupdf.FzBuffer_fz_append_pdf_string(self, text)
  18056. def fz_append_pixmap_as_data_uri(self, pixmap):
  18057. r"""Class-aware wrapper for `::fz_append_pixmap_as_data_uri()`."""
  18058. return _mupdf.FzBuffer_fz_append_pixmap_as_data_uri(self, pixmap)
  18059. def fz_append_rune(self, c):
  18060. r"""Class-aware wrapper for `::fz_append_rune()`."""
  18061. return _mupdf.FzBuffer_fz_append_rune(self, c)
  18062. def fz_append_string(self, data):
  18063. r"""Class-aware wrapper for `::fz_append_string()`."""
  18064. return _mupdf.FzBuffer_fz_append_string(self, data)
  18065. def fz_buffer_extract(self, data):
  18066. r"""
  18067. Class-aware wrapper for `::fz_buffer_extract()`.
  18068. This method has out-params. Python/C# wrappers look like:
  18069. `fz_buffer_extract()` => `(size_t, unsigned char *data)`
  18070. Take ownership of buffer contents.
  18071. Performs the same task as fz_buffer_storage, but ownership of
  18072. the data buffer returns with this call. The buffer is left
  18073. empty.
  18074. Note: Bad things may happen if this is called on a buffer with
  18075. multiple references that is being used from multiple threads.
  18076. data: Pointer to place to retrieve data pointer.
  18077. Returns length of stream.
  18078. """
  18079. return _mupdf.FzBuffer_fz_buffer_extract(self, data)
  18080. def fz_buffer_storage(self, datap):
  18081. r"""
  18082. Class-aware wrapper for `::fz_buffer_storage()`.
  18083. This method has out-params. Python/C# wrappers look like:
  18084. `fz_buffer_storage()` => `(size_t, unsigned char *datap)`
  18085. Retrieve internal memory of buffer.
  18086. datap: Output parameter that will be pointed to the data.
  18087. Returns the current size of the data in bytes.
  18088. """
  18089. return _mupdf.FzBuffer_fz_buffer_storage(self, datap)
  18090. def fz_clear_buffer(self):
  18091. r"""
  18092. Class-aware wrapper for `::fz_clear_buffer()`.
  18093. Empties the buffer. Storage is not freed, but is held ready
  18094. to be reused as the buffer is refilled.
  18095. Never throws exceptions.
  18096. """
  18097. return _mupdf.FzBuffer_fz_clear_buffer(self)
  18098. def fz_clone_buffer(self):
  18099. r"""
  18100. Class-aware wrapper for `::fz_clone_buffer()`.
  18101. Make a new buffer, containing a copy of the data used in
  18102. the original.
  18103. """
  18104. return _mupdf.FzBuffer_fz_clone_buffer(self)
  18105. def fz_grow_buffer(self):
  18106. r"""
  18107. Class-aware wrapper for `::fz_grow_buffer()`.
  18108. Make some space within a buffer (i.e. ensure that
  18109. capacity > size).
  18110. """
  18111. return _mupdf.FzBuffer_fz_grow_buffer(self)
  18112. def fz_load_jbig2_globals(self):
  18113. r"""
  18114. Class-aware wrapper for `::fz_load_jbig2_globals()`.
  18115. Create a jbig2 globals record from a buffer.
  18116. Immutable once created.
  18117. """
  18118. return _mupdf.FzBuffer_fz_load_jbig2_globals(self)
  18119. def fz_md5_buffer(self, digest):
  18120. r"""
  18121. Class-aware wrapper for `::fz_md5_buffer()`.
  18122. Create an MD5 digest from buffer contents.
  18123. Never throws exceptions.
  18124. """
  18125. return _mupdf.FzBuffer_fz_md5_buffer(self, digest)
  18126. def fz_new_display_list_from_svg(self, base_uri, dir, w, h):
  18127. r"""
  18128. Class-aware wrapper for `::fz_new_display_list_from_svg()`.
  18129. This method has out-params. Python/C# wrappers look like:
  18130. `fz_new_display_list_from_svg(const char *base_uri, ::fz_archive *dir)` => `(fz_display_list *, float w, float h)`
  18131. Parse an SVG document into a display-list.
  18132. """
  18133. return _mupdf.FzBuffer_fz_new_display_list_from_svg(self, base_uri, dir, w, h)
  18134. def fz_new_image_from_buffer(self):
  18135. r"""
  18136. Class-aware wrapper for `::fz_new_image_from_buffer()`.
  18137. Create a new image from a
  18138. buffer of data, inferring its type from the format
  18139. of the data.
  18140. """
  18141. return _mupdf.FzBuffer_fz_new_image_from_buffer(self)
  18142. def fz_new_image_from_svg(self, base_uri, dir):
  18143. r"""
  18144. Class-aware wrapper for `::fz_new_image_from_svg()`.
  18145. Create a scalable image from an SVG document.
  18146. """
  18147. return _mupdf.FzBuffer_fz_new_image_from_svg(self, base_uri, dir)
  18148. def fz_open_buffer(self):
  18149. r"""
  18150. Class-aware wrapper for `::fz_open_buffer()`.
  18151. Open a buffer as a stream.
  18152. buf: The buffer to open. Ownership of the buffer is NOT passed
  18153. in (this function takes its own reference).
  18154. Returns pointer to newly created stream. May throw exceptions on
  18155. failure to allocate.
  18156. """
  18157. return _mupdf.FzBuffer_fz_open_buffer(self)
  18158. def fz_parse_xml(self, preserve_white):
  18159. r"""
  18160. Class-aware wrapper for `::fz_parse_xml()`.
  18161. Parse the contents of buffer into a tree of xml nodes.
  18162. preserve_white: whether to keep or delete all-whitespace nodes.
  18163. """
  18164. return _mupdf.FzBuffer_fz_parse_xml(self, preserve_white)
  18165. def fz_parse_xml_from_html5(self):
  18166. r"""
  18167. Class-aware wrapper for `::fz_parse_xml_from_html5()`.
  18168. Parse the contents of a buffer into a tree of XML nodes,
  18169. using the HTML5 parsing algorithm.
  18170. """
  18171. return _mupdf.FzBuffer_fz_parse_xml_from_html5(self)
  18172. def fz_resize_buffer(self, capacity):
  18173. r"""
  18174. Class-aware wrapper for `::fz_resize_buffer()`.
  18175. Ensure that a buffer has a given capacity,
  18176. truncating data if required.
  18177. capacity: The desired capacity for the buffer. If the current
  18178. size of the buffer contents is smaller than capacity, it is
  18179. truncated.
  18180. """
  18181. return _mupdf.FzBuffer_fz_resize_buffer(self, capacity)
  18182. def fz_save_buffer(self, filename):
  18183. r"""
  18184. Class-aware wrapper for `::fz_save_buffer()`.
  18185. Save the contents of a buffer to a file.
  18186. """
  18187. return _mupdf.FzBuffer_fz_save_buffer(self, filename)
  18188. def fz_slice_buffer(self, start, end):
  18189. r"""
  18190. Class-aware wrapper for `::fz_slice_buffer()`.
  18191. Create a new buffer with a (subset of) the data from the buffer.
  18192. start: if >= 0, offset from start of buffer, if < 0 offset from end of buffer.
  18193. end: if >= 0, offset from start of buffer, if < 0 offset from end of buffer.
  18194. """
  18195. return _mupdf.FzBuffer_fz_slice_buffer(self, start, end)
  18196. def fz_string_from_buffer(self):
  18197. r"""
  18198. Class-aware wrapper for `::fz_string_from_buffer()`.
  18199. Ensure that a buffer's data ends in a
  18200. 0 byte, and return a pointer to it.
  18201. """
  18202. return _mupdf.FzBuffer_fz_string_from_buffer(self)
  18203. def fz_subset_cff_for_gids(self, gids, num_gids, symbolic, cidfont):
  18204. r"""
  18205. Class-aware wrapper for `::fz_subset_cff_for_gids()`.
  18206. This method has out-params. Python/C# wrappers look like:
  18207. `fz_subset_cff_for_gids(int num_gids, int symbolic, int cidfont)` => `(fz_buffer *, int gids)`
  18208. """
  18209. return _mupdf.FzBuffer_fz_subset_cff_for_gids(self, gids, num_gids, symbolic, cidfont)
  18210. def fz_subset_ttf_for_gids(self, gids, num_gids, symbolic, cidfont):
  18211. r"""
  18212. Class-aware wrapper for `::fz_subset_ttf_for_gids()`.
  18213. This method has out-params. Python/C# wrappers look like:
  18214. `fz_subset_ttf_for_gids(int num_gids, int symbolic, int cidfont)` => `(fz_buffer *, int gids)`
  18215. """
  18216. return _mupdf.FzBuffer_fz_subset_ttf_for_gids(self, gids, num_gids, symbolic, cidfont)
  18217. def fz_terminate_buffer(self):
  18218. r"""
  18219. Class-aware wrapper for `::fz_terminate_buffer()`.
  18220. Zero-terminate buffer in order to use as a C string.
  18221. This byte is invisible and does not affect the length of the
  18222. buffer as returned by fz_buffer_storage. The zero byte is
  18223. written *after* the data, and subsequent writes will overwrite
  18224. the terminating byte.
  18225. Subsequent changes to the size of the buffer (such as by
  18226. fz_buffer_trim, fz_buffer_grow, fz_resize_buffer, etc) may
  18227. invalidate this.
  18228. """
  18229. return _mupdf.FzBuffer_fz_terminate_buffer(self)
  18230. def fz_trim_buffer(self):
  18231. r"""
  18232. Class-aware wrapper for `::fz_trim_buffer()`.
  18233. Trim wasted capacity from a buffer by resizing internal memory.
  18234. """
  18235. return _mupdf.FzBuffer_fz_trim_buffer(self)
  18236. def pdf_append_token(self, tok, lex):
  18237. r"""Class-aware wrapper for `::pdf_append_token()`."""
  18238. return _mupdf.FzBuffer_pdf_append_token(self, tok, lex)
  18239. def pdf_new_buffer_processor(self, ahxencode, newlines):
  18240. r"""Class-aware wrapper for `::pdf_new_buffer_processor()`."""
  18241. return _mupdf.FzBuffer_pdf_new_buffer_processor(self, ahxencode, newlines)
  18242. def __init__(self, *args):
  18243. r"""
  18244. *Overload 1:*
  18245. == Constructors. Constructor using `fz_new_buffer()`.
  18246. |
  18247. *Overload 2:*
  18248. Constructor using `fz_new_buffer_from_base64()`.
  18249. Create a new buffer with data decoded from a base64 input string.
  18250. |
  18251. *Overload 3:*
  18252. Constructor using `fz_new_buffer_from_data()`.
  18253. Create a new buffer with existing data.
  18254. data: Pointer to existing data.
  18255. size: Size of existing data.
  18256. Takes ownership of data. Does not make a copy. Calls fz_free on
  18257. the data when the buffer is deallocated. Do not use 'data' after
  18258. passing to this function.
  18259. Returns pointer to new buffer. Throws exception on allocation
  18260. failure.
  18261. |
  18262. *Overload 4:*
  18263. Constructor using `fz_new_buffer_from_display_list()`.
  18264. |
  18265. *Overload 5:*
  18266. Constructor using `fz_new_buffer_from_image_as_jpeg()`.
  18267. |
  18268. *Overload 6:*
  18269. Constructor using `fz_new_buffer_from_image_as_jpx()`.
  18270. |
  18271. *Overload 7:*
  18272. Constructor using `fz_new_buffer_from_image_as_png()`.
  18273. Re-encode a given image as a PNG into a buffer.
  18274. Ownership of the buffer is returned.
  18275. |
  18276. *Overload 8:*
  18277. Constructor using `fz_new_buffer_from_page()`.
  18278. |
  18279. *Overload 9:*
  18280. Constructor using `fz_new_buffer_from_page_number()`.
  18281. |
  18282. *Overload 10:*
  18283. Constructor using `fz_new_buffer_from_page_with_format()`.
  18284. Returns an fz_buffer containing a page after conversion to specified format.
  18285. page: The page to convert.
  18286. format, options: Passed to fz_new_document_writer_with_output() internally.
  18287. transform, cookie: Passed to fz_run_page() internally.
  18288. |
  18289. *Overload 11:*
  18290. Constructor using `fz_new_buffer_from_pixmap_as_jpeg()`.
  18291. |
  18292. *Overload 12:*
  18293. Constructor using `fz_new_buffer_from_pixmap_as_jpx()`.
  18294. |
  18295. *Overload 13:*
  18296. Constructor using `fz_new_buffer_from_pixmap_as_png()`.
  18297. Re-encode a given pixmap as a PNG into a buffer.
  18298. Ownership of the buffer is returned.
  18299. |
  18300. *Overload 14:*
  18301. Constructor using `fz_new_buffer_from_shared_data()`.
  18302. Like fz_new_buffer, but does not take ownership.
  18303. |
  18304. *Overload 15:*
  18305. Constructor using `fz_new_buffer_from_stext_page()`.
  18306. Convert structured text into plain text.
  18307. |
  18308. *Overload 16:*
  18309. Constructor using `fz_read_file()`.
  18310. Read all the contents of a file into a buffer.
  18311. |
  18312. *Overload 17:*
  18313. Copy constructor using `fz_keep_buffer()`.
  18314. |
  18315. *Overload 18:*
  18316. Constructor using raw copy of pre-existing `::fz_buffer`.
  18317. |
  18318. *Overload 19:*
  18319. Constructor using raw copy of pre-existing `::fz_buffer`.
  18320. """
  18321. _mupdf.FzBuffer_swiginit(self, _mupdf.new_FzBuffer(*args))
  18322. __swig_destroy__ = _mupdf.delete_FzBuffer
  18323. def m_internal_value(self):
  18324. r"""Return numerical value of .m_internal; helps with Python debugging."""
  18325. return _mupdf.FzBuffer_m_internal_value(self)
  18326. def __nonzero__(self):
  18327. return _mupdf.FzBuffer___nonzero__(self)
  18328. __bool__ = __nonzero__
  18329. m_internal = property(_mupdf.FzBuffer_m_internal_get, _mupdf.FzBuffer_m_internal_set, doc=r"""Pointer to wrapped data.""")
  18330. s_num_instances = property(_mupdf.FzBuffer_s_num_instances_get, _mupdf.FzBuffer_s_num_instances_set)
  18331. # Register FzBuffer in _mupdf:
  18332. _mupdf.FzBuffer_swigregister(FzBuffer)
  18333. class FzColorParams(object):
  18334. r"""Wrapper class for struct `fz_color_params`."""
  18335. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  18336. __repr__ = _swig_repr
  18337. def __init__(self, *args):
  18338. r"""
  18339. *Overload 1:*
  18340. Equivalent to fz_default_color_params.
  18341. |
  18342. *Overload 2:*
  18343. We use default copy constructor and operator=. Constructor using raw copy of pre-existing `::fz_color_params`.
  18344. |
  18345. *Overload 3:*
  18346. Constructor using raw copy of pre-existing `::fz_color_params`.
  18347. """
  18348. _mupdf.FzColorParams_swiginit(self, _mupdf.new_FzColorParams(*args))
  18349. def internal(self, *args):
  18350. r"""
  18351. *Overload 1:*
  18352. Access as underlying struct.
  18353. |
  18354. *Overload 2:*
  18355. Access as underlying struct.
  18356. """
  18357. return _mupdf.FzColorParams_internal(self, *args)
  18358. __swig_destroy__ = _mupdf.delete_FzColorParams
  18359. ri = property(_mupdf.FzColorParams_ri_get, _mupdf.FzColorParams_ri_set)
  18360. bp = property(_mupdf.FzColorParams_bp_get, _mupdf.FzColorParams_bp_set)
  18361. op = property(_mupdf.FzColorParams_op_get, _mupdf.FzColorParams_op_set)
  18362. opm = property(_mupdf.FzColorParams_opm_get, _mupdf.FzColorParams_opm_set)
  18363. s_num_instances = property(_mupdf.FzColorParams_s_num_instances_get, _mupdf.FzColorParams_s_num_instances_set)
  18364. def to_string(self):
  18365. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  18366. return _mupdf.FzColorParams_to_string(self)
  18367. def __eq__(self, rhs):
  18368. r"""Comparison method."""
  18369. return _mupdf.FzColorParams___eq__(self, rhs)
  18370. def __ne__(self, rhs):
  18371. r"""Comparison method."""
  18372. return _mupdf.FzColorParams___ne__(self, rhs)
  18373. # Register FzColorParams in _mupdf:
  18374. _mupdf.FzColorParams_swigregister(FzColorParams)
  18375. class FzColorspace(object):
  18376. r"""
  18377. Wrapper class for struct `fz_colorspace`.
  18378. Describes a given colorspace.
  18379. """
  18380. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  18381. __repr__ = _swig_repr
  18382. Fixed_GRAY = _mupdf.FzColorspace_Fixed_GRAY
  18383. Fixed_RGB = _mupdf.FzColorspace_Fixed_RGB
  18384. Fixed_BGR = _mupdf.FzColorspace_Fixed_BGR
  18385. Fixed_CMYK = _mupdf.FzColorspace_Fixed_CMYK
  18386. Fixed_LAB = _mupdf.FzColorspace_Fixed_LAB
  18387. def fz_base_colorspace(self):
  18388. r"""
  18389. Class-aware wrapper for `::fz_base_colorspace()`.
  18390. Get the 'base' colorspace for a colorspace.
  18391. For indexed colorspaces, this is the colorspace the index
  18392. decodes into. For all other colorspaces, it is the colorspace
  18393. itself.
  18394. The returned colorspace is 'borrowed' (i.e. no additional
  18395. references are taken or dropped).
  18396. """
  18397. return _mupdf.FzColorspace_fz_base_colorspace(self)
  18398. def fz_clamp_color(self, _in, out):
  18399. r"""
  18400. Class-aware wrapper for `::fz_clamp_color()`.
  18401. This method has out-params. Python/C# wrappers look like:
  18402. `fz_clamp_color(const float *in)` => float out
  18403. Clamp the samples in a color to the correct ranges for a
  18404. given colorspace.
  18405. """
  18406. return _mupdf.FzColorspace_fz_clamp_color(self, _in, out)
  18407. def fz_colorspace_colorant(self, n):
  18408. r"""
  18409. Class-aware wrapper for `::fz_colorspace_colorant()`.
  18410. Retrieve a the name for a colorant.
  18411. Returns a pointer with the same lifespan as the colorspace.
  18412. """
  18413. return _mupdf.FzColorspace_fz_colorspace_colorant(self, n)
  18414. def fz_colorspace_device_n_has_cmyk(self):
  18415. r"""
  18416. Class-aware wrapper for `::fz_colorspace_device_n_has_cmyk()`.
  18417. True if DeviceN color space has cyan magenta yellow or black as
  18418. one of its colorants.
  18419. """
  18420. return _mupdf.FzColorspace_fz_colorspace_device_n_has_cmyk(self)
  18421. def fz_colorspace_device_n_has_only_cmyk(self):
  18422. r"""
  18423. Class-aware wrapper for `::fz_colorspace_device_n_has_only_cmyk()`.
  18424. True if DeviceN color space has only colorants from the CMYK set.
  18425. """
  18426. return _mupdf.FzColorspace_fz_colorspace_device_n_has_only_cmyk(self)
  18427. def fz_colorspace_digest(self, digest):
  18428. r"""
  18429. Class-aware wrapper for `::fz_colorspace_digest()`.
  18430. Get checksum of underlying ICC profile.
  18431. """
  18432. return _mupdf.FzColorspace_fz_colorspace_digest(self, digest)
  18433. def fz_colorspace_is_cmyk(self):
  18434. r"""Class-aware wrapper for `::fz_colorspace_is_cmyk()`."""
  18435. return _mupdf.FzColorspace_fz_colorspace_is_cmyk(self)
  18436. def fz_colorspace_is_device(self):
  18437. r"""Class-aware wrapper for `::fz_colorspace_is_device()`."""
  18438. return _mupdf.FzColorspace_fz_colorspace_is_device(self)
  18439. def fz_colorspace_is_device_cmyk(self):
  18440. r"""Class-aware wrapper for `::fz_colorspace_is_device_cmyk()`."""
  18441. return _mupdf.FzColorspace_fz_colorspace_is_device_cmyk(self)
  18442. def fz_colorspace_is_device_gray(self):
  18443. r"""Class-aware wrapper for `::fz_colorspace_is_device_gray()`."""
  18444. return _mupdf.FzColorspace_fz_colorspace_is_device_gray(self)
  18445. def fz_colorspace_is_device_n(self):
  18446. r"""Class-aware wrapper for `::fz_colorspace_is_device_n()`."""
  18447. return _mupdf.FzColorspace_fz_colorspace_is_device_n(self)
  18448. def fz_colorspace_is_gray(self):
  18449. r"""
  18450. Class-aware wrapper for `::fz_colorspace_is_gray()`.
  18451. Tests for particular types of colorspaces
  18452. """
  18453. return _mupdf.FzColorspace_fz_colorspace_is_gray(self)
  18454. def fz_colorspace_is_icc(self):
  18455. r"""Class-aware wrapper for `::fz_colorspace_is_icc()`."""
  18456. return _mupdf.FzColorspace_fz_colorspace_is_icc(self)
  18457. def fz_colorspace_is_indexed(self):
  18458. r"""Class-aware wrapper for `::fz_colorspace_is_indexed()`."""
  18459. return _mupdf.FzColorspace_fz_colorspace_is_indexed(self)
  18460. def fz_colorspace_is_lab(self):
  18461. r"""Class-aware wrapper for `::fz_colorspace_is_lab()`."""
  18462. return _mupdf.FzColorspace_fz_colorspace_is_lab(self)
  18463. def fz_colorspace_is_lab_icc(self):
  18464. r"""Class-aware wrapper for `::fz_colorspace_is_lab_icc()`."""
  18465. return _mupdf.FzColorspace_fz_colorspace_is_lab_icc(self)
  18466. def fz_colorspace_is_rgb(self):
  18467. r"""Class-aware wrapper for `::fz_colorspace_is_rgb()`."""
  18468. return _mupdf.FzColorspace_fz_colorspace_is_rgb(self)
  18469. def fz_colorspace_is_subtractive(self):
  18470. r"""
  18471. Class-aware wrapper for `::fz_colorspace_is_subtractive()`.
  18472. True for CMYK, Separation and DeviceN colorspaces.
  18473. """
  18474. return _mupdf.FzColorspace_fz_colorspace_is_subtractive(self)
  18475. def fz_colorspace_n(self):
  18476. r"""
  18477. Class-aware wrapper for `::fz_colorspace_n()`.
  18478. Query the number of colorants in a colorspace.
  18479. """
  18480. return _mupdf.FzColorspace_fz_colorspace_n(self)
  18481. def fz_colorspace_name(self):
  18482. r"""
  18483. Class-aware wrapper for `::fz_colorspace_name()`.
  18484. Query the name of a colorspace.
  18485. The returned string has the same lifespan as the colorspace
  18486. does. Caller should not free it.
  18487. """
  18488. return _mupdf.FzColorspace_fz_colorspace_name(self)
  18489. def fz_colorspace_name_colorant(self, n, name):
  18490. r"""
  18491. Class-aware wrapper for `::fz_colorspace_name_colorant()`.
  18492. Assign a name for a given colorant in a colorspace.
  18493. Used while initially setting up a colorspace. The string is
  18494. copied into local storage, so need not be retained by the
  18495. caller.
  18496. """
  18497. return _mupdf.FzColorspace_fz_colorspace_name_colorant(self, n, name)
  18498. def fz_colorspace_type(self):
  18499. r"""
  18500. Class-aware wrapper for `::fz_colorspace_type()`.
  18501. Query the type of colorspace.
  18502. """
  18503. return _mupdf.FzColorspace_fz_colorspace_type(self)
  18504. def fz_convert_color(self, sv, ds, dv, _is, params):
  18505. r"""
  18506. Class-aware wrapper for `::fz_convert_color()`.
  18507. This method has out-params. Python/C# wrappers look like:
  18508. `fz_convert_color(const float *sv, ::fz_colorspace *ds, ::fz_colorspace *is, ::fz_color_params params)` => float dv
  18509. Convert color values sv from colorspace ss into colorvalues dv
  18510. for colorspace ds, via an optional intervening space is,
  18511. respecting the given color_params.
  18512. """
  18513. return _mupdf.FzColorspace_fz_convert_color(self, sv, ds, dv, _is, params)
  18514. def fz_convert_separation_colors(self, src_color, dst_seps, dst_cs, dst_color, color_params):
  18515. r"""
  18516. Class-aware wrapper for `::fz_convert_separation_colors()`.
  18517. This method has out-params. Python/C# wrappers look like:
  18518. `fz_convert_separation_colors(const float *src_color, ::fz_separations *dst_seps, ::fz_colorspace *dst_cs, ::fz_color_params color_params)` => float dst_color
  18519. Convert a color given in terms of one colorspace,
  18520. to a color in terms of another colorspace/separations.
  18521. """
  18522. return _mupdf.FzColorspace_fz_convert_separation_colors(self, src_color, dst_seps, dst_cs, dst_color, color_params)
  18523. def fz_is_valid_blend_colorspace(self):
  18524. r"""
  18525. Class-aware wrapper for `::fz_is_valid_blend_colorspace()`.
  18526. Check to see that a colorspace is appropriate to be used as
  18527. a blending space (i.e. only grey, rgb or cmyk).
  18528. """
  18529. return _mupdf.FzColorspace_fz_is_valid_blend_colorspace(self)
  18530. def fz_new_indexed_colorspace(self, high, lookup):
  18531. r"""
  18532. Class-aware wrapper for `::fz_new_indexed_colorspace()`.
  18533. Create an indexed colorspace.
  18534. The supplied lookup table is high palette entries long. Each
  18535. entry is n bytes long, where n is given by the number of
  18536. colorants in the base colorspace, one byte per colorant.
  18537. Ownership of lookup is passed it; it will be freed on
  18538. destruction, so must be heap allocated.
  18539. The colorspace will keep an additional reference to the base
  18540. colorspace that will be dropped on destruction.
  18541. The returned reference should be dropped when it is finished
  18542. with.
  18543. Colorspaces are immutable once created.
  18544. """
  18545. return _mupdf.FzColorspace_fz_new_indexed_colorspace(self, high, lookup)
  18546. def fz_new_pixmap(self, w, h, seps, alpha):
  18547. r"""
  18548. Class-aware wrapper for `::fz_new_pixmap()`.
  18549. Create a new pixmap, with its origin at (0,0)
  18550. cs: The colorspace to use for the pixmap, or NULL for an alpha
  18551. plane/mask.
  18552. w: The width of the pixmap (in pixels)
  18553. h: The height of the pixmap (in pixels)
  18554. seps: Details of separations.
  18555. alpha: 0 for no alpha, 1 for alpha.
  18556. Returns a pointer to the new pixmap. Throws exception on failure
  18557. to allocate.
  18558. """
  18559. return _mupdf.FzColorspace_fz_new_pixmap(self, w, h, seps, alpha)
  18560. def fz_new_pixmap_with_bbox(self, bbox, seps, alpha):
  18561. r"""
  18562. Class-aware wrapper for `::fz_new_pixmap_with_bbox()`.
  18563. Create a pixmap of a given size, location and pixel format.
  18564. The bounding box specifies the size of the created pixmap and
  18565. where it will be located. The colorspace determines the number
  18566. of components per pixel. Alpha is always present. Pixmaps are
  18567. reference counted, so drop references using fz_drop_pixmap.
  18568. colorspace: Colorspace format used for the created pixmap. The
  18569. pixmap will keep a reference to the colorspace.
  18570. bbox: Bounding box specifying location/size of created pixmap.
  18571. seps: Details of separations.
  18572. alpha: 0 for no alpha, 1 for alpha.
  18573. Returns a pointer to the new pixmap. Throws exception on failure
  18574. to allocate.
  18575. """
  18576. return _mupdf.FzColorspace_fz_new_pixmap_with_bbox(self, bbox, seps, alpha)
  18577. def fz_new_pixmap_with_bbox_and_data(self, rect, seps, alpha, samples):
  18578. r"""
  18579. Class-aware wrapper for `::fz_new_pixmap_with_bbox_and_data()`.
  18580. Create a pixmap of a given size, location and pixel format,
  18581. using the supplied data block.
  18582. The bounding box specifies the size of the created pixmap and
  18583. where it will be located. The colorspace determines the number
  18584. of components per pixel. Alpha is always present. Pixmaps are
  18585. reference counted, so drop references using fz_drop_pixmap.
  18586. colorspace: Colorspace format used for the created pixmap. The
  18587. pixmap will keep a reference to the colorspace.
  18588. rect: Bounding box specifying location/size of created pixmap.
  18589. seps: Details of separations.
  18590. alpha: Number of alpha planes (0 or 1).
  18591. samples: The data block to keep the samples in.
  18592. Returns a pointer to the new pixmap. Throws exception on failure
  18593. to allocate.
  18594. """
  18595. return _mupdf.FzColorspace_fz_new_pixmap_with_bbox_and_data(self, rect, seps, alpha, samples)
  18596. def fz_new_pixmap_with_data(self, w, h, seps, alpha, stride, samples):
  18597. r"""
  18598. Class-aware wrapper for `::fz_new_pixmap_with_data()`.
  18599. Create a new pixmap, with its origin at
  18600. (0,0) using the supplied data block.
  18601. cs: The colorspace to use for the pixmap, or NULL for an alpha
  18602. plane/mask.
  18603. w: The width of the pixmap (in pixels)
  18604. h: The height of the pixmap (in pixels)
  18605. seps: Details of separations.
  18606. alpha: 0 for no alpha, 1 for alpha.
  18607. stride: The byte offset from the pixel data in a row to the
  18608. pixel data in the next row.
  18609. samples: The data block to keep the samples in.
  18610. Returns a pointer to the new pixmap. Throws exception on failure to
  18611. allocate.
  18612. """
  18613. return _mupdf.FzColorspace_fz_new_pixmap_with_data(self, w, h, seps, alpha, stride, samples)
  18614. def pdf_is_tint_colorspace(self):
  18615. r"""Class-aware wrapper for `::pdf_is_tint_colorspace()`."""
  18616. return _mupdf.FzColorspace_pdf_is_tint_colorspace(self)
  18617. def __init__(self, *args):
  18618. r"""
  18619. *Overload 1:*
  18620. == Constructors. Constructor using `fz_new_cal_gray_colorspace()`.
  18621. Create a calibrated gray colorspace.
  18622. The returned reference should be dropped when it is finished
  18623. with.
  18624. Colorspaces are immutable once created.
  18625. |
  18626. *Overload 2:*
  18627. Constructor using `fz_new_cal_rgb_colorspace()`.
  18628. Create a calibrated rgb colorspace.
  18629. The returned reference should be dropped when it is finished
  18630. with.
  18631. Colorspaces are immutable once created.
  18632. |
  18633. *Overload 3:*
  18634. Constructor using `fz_new_colorspace()`.
  18635. Creates a new colorspace instance and returns a reference.
  18636. No internal checking is done that the colorspace type (e.g.
  18637. CMYK) matches with the flags (e.g. FZ_COLORSPACE_HAS_CMYK) or
  18638. colorant count (n) or name.
  18639. The reference should be dropped when it is finished with.
  18640. Colorspaces are immutable once created (with the exception of
  18641. setting up colorant names for separation spaces).
  18642. |
  18643. *Overload 4:*
  18644. Constructor using `fz_new_icc_colorspace()`.
  18645. Create a colorspace from an ICC profile supplied in buf.
  18646. Limited checking is done to ensure that the colorspace type is
  18647. appropriate for the supplied ICC profile.
  18648. An additional reference is taken to buf, which will be dropped
  18649. on destruction. Ownership is NOT passed in.
  18650. The returned reference should be dropped when it is finished
  18651. with.
  18652. Colorspaces are immutable once created.
  18653. |
  18654. *Overload 5:*
  18655. Constructor using `fz_new_indexed_colorspace()`.
  18656. Create an indexed colorspace.
  18657. The supplied lookup table is high palette entries long. Each
  18658. entry is n bytes long, where n is given by the number of
  18659. colorants in the base colorspace, one byte per colorant.
  18660. Ownership of lookup is passed it; it will be freed on
  18661. destruction, so must be heap allocated.
  18662. The colorspace will keep an additional reference to the base
  18663. colorspace that will be dropped on destruction.
  18664. The returned reference should be dropped when it is finished
  18665. with.
  18666. Colorspaces are immutable once created.
  18667. |
  18668. *Overload 6:*
  18669. Construct using one of: fz_device_gray(), fz_device_rgb(), fz_device_bgr(), fz_device_cmyk(), fz_device_lab().
  18670. |
  18671. *Overload 7:*
  18672. Copy constructor using `fz_keep_colorspace()`.
  18673. |
  18674. *Overload 8:*
  18675. Default constructor, sets `m_internal` to null.
  18676. |
  18677. *Overload 9:*
  18678. Constructor using raw copy of pre-existing `::fz_colorspace`.
  18679. """
  18680. _mupdf.FzColorspace_swiginit(self, _mupdf.new_FzColorspace(*args))
  18681. __swig_destroy__ = _mupdf.delete_FzColorspace
  18682. def m_internal_value(self):
  18683. r"""Return numerical value of .m_internal; helps with Python debugging."""
  18684. return _mupdf.FzColorspace_m_internal_value(self)
  18685. def __nonzero__(self):
  18686. return _mupdf.FzColorspace___nonzero__(self)
  18687. __bool__ = __nonzero__
  18688. m_internal = property(_mupdf.FzColorspace_m_internal_get, _mupdf.FzColorspace_m_internal_set, doc=r"""Pointer to wrapped data.""")
  18689. s_num_instances = property(_mupdf.FzColorspace_s_num_instances_get, _mupdf.FzColorspace_s_num_instances_set)
  18690. # Register FzColorspace in _mupdf:
  18691. _mupdf.FzColorspace_swigregister(FzColorspace)
  18692. class FzColorspaceContext(object):
  18693. r"""Wrapper class for struct `fz_colorspace_context`. Not copyable or assignable."""
  18694. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  18695. __repr__ = _swig_repr
  18696. def __init__(self, *args):
  18697. r"""
  18698. *Overload 1:*
  18699. Default constructor, sets `m_internal` to null.
  18700. |
  18701. *Overload 2:*
  18702. Constructor using raw copy of pre-existing `::fz_colorspace_context`.
  18703. """
  18704. _mupdf.FzColorspaceContext_swiginit(self, _mupdf.new_FzColorspaceContext(*args))
  18705. __swig_destroy__ = _mupdf.delete_FzColorspaceContext
  18706. def m_internal_value(self):
  18707. r"""Return numerical value of .m_internal; helps with Python debugging."""
  18708. return _mupdf.FzColorspaceContext_m_internal_value(self)
  18709. def __nonzero__(self):
  18710. return _mupdf.FzColorspaceContext___nonzero__(self)
  18711. __bool__ = __nonzero__
  18712. m_internal = property(_mupdf.FzColorspaceContext_m_internal_get, _mupdf.FzColorspaceContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  18713. s_num_instances = property(_mupdf.FzColorspaceContext_s_num_instances_get, _mupdf.FzColorspaceContext_s_num_instances_set)
  18714. # Register FzColorspaceContext in _mupdf:
  18715. _mupdf.FzColorspaceContext_swigregister(FzColorspaceContext)
  18716. class FzCompressedBuffer(object):
  18717. r"""
  18718. Wrapper class for struct `fz_compressed_buffer`.
  18719. Buffers of compressed data; typically for the source data
  18720. for images.
  18721. """
  18722. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  18723. __repr__ = _swig_repr
  18724. def fz_compressed_buffer_size(self):
  18725. r"""
  18726. Class-aware wrapper for `::fz_compressed_buffer_size()`.
  18727. Return the storage size used for a buffer and its data.
  18728. Used in implementing store handling.
  18729. Never throws exceptions.
  18730. """
  18731. return _mupdf.FzCompressedBuffer_fz_compressed_buffer_size(self)
  18732. def fz_open_compressed_buffer(self):
  18733. r"""
  18734. Class-aware wrapper for `::fz_open_compressed_buffer()`.
  18735. Open a stream to read the decompressed version of a buffer.
  18736. """
  18737. return _mupdf.FzCompressedBuffer_fz_open_compressed_buffer(self)
  18738. def fz_open_image_decomp_stream_from_buffer(self, l2factor):
  18739. r"""
  18740. Class-aware wrapper for `::fz_open_image_decomp_stream_from_buffer()`.
  18741. This method has out-params. Python/C# wrappers look like:
  18742. `fz_open_image_decomp_stream_from_buffer()` => `(fz_stream *, int l2factor)`
  18743. Open a stream to read the decompressed version of a buffer,
  18744. with optional log2 subsampling.
  18745. l2factor = NULL for no subsampling, or a pointer to an integer
  18746. containing the maximum log2 subsample factor acceptable (0 =
  18747. none, 1 = halve dimensions, 2 = quarter dimensions etc). If
  18748. non-NULL, then *l2factor will be updated on exit with the actual
  18749. log2 subsample factor achieved.
  18750. """
  18751. return _mupdf.FzCompressedBuffer_fz_open_image_decomp_stream_from_buffer(self, l2factor)
  18752. def get_buffer(self):
  18753. r"""Returns wrapper class for fz_buffer *m_internal.buffer."""
  18754. return _mupdf.FzCompressedBuffer_get_buffer(self)
  18755. def __init__(self, *args):
  18756. r"""
  18757. *Overload 1:*
  18758. == Constructors. Constructor using `fz_new_compressed_buffer()`.
  18759. Create a new, UNKNOWN format, compressed_buffer.
  18760. |
  18761. *Overload 2:*
  18762. Copy constructor using `fz_keep_compressed_buffer()`.
  18763. |
  18764. *Overload 3:*
  18765. Constructor using raw copy of pre-existing `::fz_compressed_buffer`.
  18766. """
  18767. _mupdf.FzCompressedBuffer_swiginit(self, _mupdf.new_FzCompressedBuffer(*args))
  18768. __swig_destroy__ = _mupdf.delete_FzCompressedBuffer
  18769. def m_internal_value(self):
  18770. r"""Return numerical value of .m_internal; helps with Python debugging."""
  18771. return _mupdf.FzCompressedBuffer_m_internal_value(self)
  18772. def __nonzero__(self):
  18773. return _mupdf.FzCompressedBuffer___nonzero__(self)
  18774. __bool__ = __nonzero__
  18775. m_internal = property(_mupdf.FzCompressedBuffer_m_internal_get, _mupdf.FzCompressedBuffer_m_internal_set, doc=r"""Pointer to wrapped data.""")
  18776. s_num_instances = property(_mupdf.FzCompressedBuffer_s_num_instances_get, _mupdf.FzCompressedBuffer_s_num_instances_set)
  18777. # Register FzCompressedBuffer in _mupdf:
  18778. _mupdf.FzCompressedBuffer_swigregister(FzCompressedBuffer)
  18779. class FzCompressedImage(object):
  18780. r"""Wrapper class for struct `fz_compressed_image`. Not copyable or assignable."""
  18781. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  18782. __repr__ = _swig_repr
  18783. def fz_set_compressed_image_buffer(self, buf):
  18784. r"""Class-aware wrapper for `::fz_set_compressed_image_buffer()`."""
  18785. return _mupdf.FzCompressedImage_fz_set_compressed_image_buffer(self, buf)
  18786. def __init__(self, *args):
  18787. r"""
  18788. *Overload 1:*
  18789. Default constructor, sets `m_internal` to null.
  18790. |
  18791. *Overload 2:*
  18792. Constructor using raw copy of pre-existing `::fz_compressed_image`.
  18793. """
  18794. _mupdf.FzCompressedImage_swiginit(self, _mupdf.new_FzCompressedImage(*args))
  18795. __swig_destroy__ = _mupdf.delete_FzCompressedImage
  18796. def m_internal_value(self):
  18797. r"""Return numerical value of .m_internal; helps with Python debugging."""
  18798. return _mupdf.FzCompressedImage_m_internal_value(self)
  18799. def __nonzero__(self):
  18800. return _mupdf.FzCompressedImage___nonzero__(self)
  18801. __bool__ = __nonzero__
  18802. m_internal = property(_mupdf.FzCompressedImage_m_internal_get, _mupdf.FzCompressedImage_m_internal_set, doc=r"""Pointer to wrapped data.""")
  18803. s_num_instances = property(_mupdf.FzCompressedImage_s_num_instances_get, _mupdf.FzCompressedImage_s_num_instances_set)
  18804. # Register FzCompressedImage in _mupdf:
  18805. _mupdf.FzCompressedImage_swigregister(FzCompressedImage)
  18806. class FzCompressionParams(object):
  18807. r"""
  18808. Wrapper class for struct `fz_compression_params`. Not copyable or assignable.
  18809. Compression parameters used for buffers of compressed data;
  18810. typically for the source data for images.
  18811. """
  18812. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  18813. __repr__ = _swig_repr
  18814. def __init__(self, *args):
  18815. r"""
  18816. *Overload 1:*
  18817. Default constructor, sets `m_internal` to null.
  18818. |
  18819. *Overload 2:*
  18820. Constructor using raw copy of pre-existing `::fz_compression_params`.
  18821. """
  18822. _mupdf.FzCompressionParams_swiginit(self, _mupdf.new_FzCompressionParams(*args))
  18823. __swig_destroy__ = _mupdf.delete_FzCompressionParams
  18824. def m_internal_value(self):
  18825. r"""Return numerical value of .m_internal; helps with Python debugging."""
  18826. return _mupdf.FzCompressionParams_m_internal_value(self)
  18827. def __nonzero__(self):
  18828. return _mupdf.FzCompressionParams___nonzero__(self)
  18829. __bool__ = __nonzero__
  18830. m_internal = property(_mupdf.FzCompressionParams_m_internal_get, _mupdf.FzCompressionParams_m_internal_set, doc=r"""Pointer to wrapped data.""")
  18831. s_num_instances = property(_mupdf.FzCompressionParams_s_num_instances_get, _mupdf.FzCompressionParams_s_num_instances_set)
  18832. # Register FzCompressionParams in _mupdf:
  18833. _mupdf.FzCompressionParams_swigregister(FzCompressionParams)
  18834. class FzContext(object):
  18835. r"""Wrapper class for struct `fz_context`. Not copyable or assignable."""
  18836. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  18837. __repr__ = _swig_repr
  18838. def __init__(self, *args):
  18839. r"""
  18840. *Overload 1:*
  18841. == Constructors. Constructor using `fz_new_context_imp()`.
  18842. |
  18843. *Overload 2:*
  18844. Default constructor, sets `m_internal` to null.
  18845. |
  18846. *Overload 3:*
  18847. Constructor using raw copy of pre-existing `::fz_context`.
  18848. """
  18849. _mupdf.FzContext_swiginit(self, _mupdf.new_FzContext(*args))
  18850. __swig_destroy__ = _mupdf.delete_FzContext
  18851. def m_internal_value(self):
  18852. r"""Return numerical value of .m_internal; helps with Python debugging."""
  18853. return _mupdf.FzContext_m_internal_value(self)
  18854. def __nonzero__(self):
  18855. return _mupdf.FzContext___nonzero__(self)
  18856. __bool__ = __nonzero__
  18857. m_internal = property(_mupdf.FzContext_m_internal_get, _mupdf.FzContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  18858. s_num_instances = property(_mupdf.FzContext_s_num_instances_get, _mupdf.FzContext_s_num_instances_set)
  18859. # Register FzContext in _mupdf:
  18860. _mupdf.FzContext_swigregister(FzContext)
  18861. class FzCookie(object):
  18862. r"""
  18863. Wrapper class for struct `fz_cookie`. Not copyable or assignable.
  18864. Provide two-way communication between application and library.
  18865. Intended for multi-threaded applications where one thread is
  18866. rendering pages and another thread wants to read progress
  18867. feedback or abort a job that takes a long time to finish. The
  18868. communication is unsynchronized without locking.
  18869. abort: The application should set this field to 0 before
  18870. calling fz_run_page to render a page. At any point when the
  18871. page is being rendered the application my set this field to 1
  18872. which will cause the rendering to finish soon. This field is
  18873. checked periodically when the page is rendered, but exactly
  18874. when is not known, therefore there is no upper bound on
  18875. exactly when the rendering will abort. If the application
  18876. did not provide a set of locks to fz_new_context, it must also
  18877. await the completion of fz_run_page before issuing another
  18878. call to fz_run_page. Note that once the application has set
  18879. this field to 1 after it called fz_run_page it may not change
  18880. the value again.
  18881. progress: Communicates rendering progress back to the
  18882. application and is read only. Increments as a page is being
  18883. rendered. The value starts out at 0 and is limited to less
  18884. than or equal to progress_max, unless progress_max is -1.
  18885. progress_max: Communicates the known upper bound of rendering
  18886. back to the application and is read only. The maximum value
  18887. that the progress field may take. If there is no known upper
  18888. bound on how long the rendering may take this value is -1 and
  18889. progress is not limited. Note that the value of progress_max
  18890. may change from -1 to a positive value once an upper bound is
  18891. known, so take this into consideration when comparing the
  18892. value of progress to that of progress_max.
  18893. errors: count of errors during current rendering.
  18894. incomplete: Initially should be set to 0. Will be set to
  18895. non-zero if a TRYLATER error is thrown during rendering.
  18896. """
  18897. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  18898. __repr__ = _swig_repr
  18899. def __init__(self):
  18900. r"""Default constructor sets all fields to default values."""
  18901. _mupdf.FzCookie_swiginit(self, _mupdf.new_FzCookie())
  18902. def set_abort(self):
  18903. r"""Sets m_internal.abort to 1."""
  18904. return _mupdf.FzCookie_set_abort(self)
  18905. def increment_errors(self, delta):
  18906. r"""Increments m_internal.errors by <delta>."""
  18907. return _mupdf.FzCookie_increment_errors(self, delta)
  18908. def abort(self):
  18909. return _mupdf.FzCookie_abort(self)
  18910. def progress(self):
  18911. return _mupdf.FzCookie_progress(self)
  18912. def progress_max(self):
  18913. return _mupdf.FzCookie_progress_max(self)
  18914. def errors(self):
  18915. return _mupdf.FzCookie_errors(self)
  18916. def incomplete(self):
  18917. return _mupdf.FzCookie_incomplete(self)
  18918. __swig_destroy__ = _mupdf.delete_FzCookie
  18919. m_internal = property(_mupdf.FzCookie_m_internal_get, _mupdf.FzCookie_m_internal_set)
  18920. s_num_instances = property(_mupdf.FzCookie_s_num_instances_get, _mupdf.FzCookie_s_num_instances_set, doc=r"""Wrapped data is held by value.""")
  18921. def to_string(self):
  18922. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  18923. return _mupdf.FzCookie_to_string(self)
  18924. def __eq__(self, rhs):
  18925. r"""Comparison method."""
  18926. return _mupdf.FzCookie___eq__(self, rhs)
  18927. def __ne__(self, rhs):
  18928. r"""Comparison method."""
  18929. return _mupdf.FzCookie___ne__(self, rhs)
  18930. # Register FzCookie in _mupdf:
  18931. _mupdf.FzCookie_swigregister(FzCookie)
  18932. class FzDefaultColorspaces(object):
  18933. r"""
  18934. Wrapper class for struct `fz_default_colorspaces`.
  18935. Structure to hold default colorspaces.
  18936. """
  18937. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  18938. __repr__ = _swig_repr
  18939. def fz_clone_default_colorspaces(self):
  18940. r"""
  18941. Class-aware wrapper for `::fz_clone_default_colorspaces()`.
  18942. Returns a reference to a newly cloned default colorspaces
  18943. structure.
  18944. The new clone may safely be altered without fear of race
  18945. conditions as the caller is the only reference holder.
  18946. """
  18947. return _mupdf.FzDefaultColorspaces_fz_clone_default_colorspaces(self)
  18948. def fz_default_cmyk(self):
  18949. r"""Class-aware wrapper for `::fz_default_cmyk()`."""
  18950. return _mupdf.FzDefaultColorspaces_fz_default_cmyk(self)
  18951. def fz_default_gray(self):
  18952. r"""
  18953. Class-aware wrapper for `::fz_default_gray()`.
  18954. Retrieve default colorspaces (typically page local).
  18955. If default_cs is non NULL, the default is retrieved from there,
  18956. otherwise the global default is retrieved.
  18957. These return borrowed references that should not be dropped,
  18958. unless they are kept first.
  18959. """
  18960. return _mupdf.FzDefaultColorspaces_fz_default_gray(self)
  18961. def fz_default_output_intent(self):
  18962. r"""Class-aware wrapper for `::fz_default_output_intent()`."""
  18963. return _mupdf.FzDefaultColorspaces_fz_default_output_intent(self)
  18964. def fz_default_rgb(self):
  18965. r"""Class-aware wrapper for `::fz_default_rgb()`."""
  18966. return _mupdf.FzDefaultColorspaces_fz_default_rgb(self)
  18967. def fz_set_default_cmyk(self, cs):
  18968. r"""Class-aware wrapper for `::fz_set_default_cmyk()`."""
  18969. return _mupdf.FzDefaultColorspaces_fz_set_default_cmyk(self, cs)
  18970. def fz_set_default_gray(self, cs):
  18971. r"""
  18972. Class-aware wrapper for `::fz_set_default_gray()`.
  18973. Set new defaults within the default colorspace structure.
  18974. New references are taken to the new default, and references to
  18975. the old defaults dropped.
  18976. Never throws exceptions.
  18977. """
  18978. return _mupdf.FzDefaultColorspaces_fz_set_default_gray(self, cs)
  18979. def fz_set_default_output_intent(self, cs):
  18980. r"""Class-aware wrapper for `::fz_set_default_output_intent()`."""
  18981. return _mupdf.FzDefaultColorspaces_fz_set_default_output_intent(self, cs)
  18982. def fz_set_default_rgb(self, cs):
  18983. r"""Class-aware wrapper for `::fz_set_default_rgb()`."""
  18984. return _mupdf.FzDefaultColorspaces_fz_set_default_rgb(self, cs)
  18985. def pdf_update_default_colorspaces(self, res):
  18986. r"""Class-aware wrapper for `::pdf_update_default_colorspaces()`."""
  18987. return _mupdf.FzDefaultColorspaces_pdf_update_default_colorspaces(self, res)
  18988. def __init__(self, *args):
  18989. r"""
  18990. *Overload 1:*
  18991. == Constructors. Constructor using `fz_new_default_colorspaces()`.
  18992. Create a new default colorspace structure with values inherited
  18993. from the context, and return a reference to it.
  18994. These can be overridden using fz_set_default_xxxx.
  18995. These should not be overridden while more than one caller has
  18996. the reference for fear of race conditions.
  18997. The caller should drop this reference once finished with it.
  18998. |
  18999. *Overload 2:*
  19000. Copy constructor using `fz_keep_default_colorspaces()`.
  19001. |
  19002. *Overload 3:*
  19003. Constructor using raw copy of pre-existing `::fz_default_colorspaces`.
  19004. """
  19005. _mupdf.FzDefaultColorspaces_swiginit(self, _mupdf.new_FzDefaultColorspaces(*args))
  19006. __swig_destroy__ = _mupdf.delete_FzDefaultColorspaces
  19007. def m_internal_value(self):
  19008. r"""Return numerical value of .m_internal; helps with Python debugging."""
  19009. return _mupdf.FzDefaultColorspaces_m_internal_value(self)
  19010. def __nonzero__(self):
  19011. return _mupdf.FzDefaultColorspaces___nonzero__(self)
  19012. __bool__ = __nonzero__
  19013. m_internal = property(_mupdf.FzDefaultColorspaces_m_internal_get, _mupdf.FzDefaultColorspaces_m_internal_set, doc=r"""Pointer to wrapped data.""")
  19014. s_num_instances = property(_mupdf.FzDefaultColorspaces_s_num_instances_get, _mupdf.FzDefaultColorspaces_s_num_instances_set)
  19015. # Register FzDefaultColorspaces in _mupdf:
  19016. _mupdf.FzDefaultColorspaces_swigregister(FzDefaultColorspaces)
  19017. class FzDevice(object):
  19018. r"""
  19019. Wrapper class for struct `fz_device`.
  19020. The different format handlers (pdf, xps etc) interpret pages to
  19021. a device. These devices can then process the stream of calls
  19022. they receive in various ways:
  19023. The trace device outputs debugging information for the calls.
  19024. The draw device will render them.
  19025. The list device stores them in a list to play back later.
  19026. The text device performs text extraction and searching.
  19027. The bbox device calculates the bounding box for the page.
  19028. Other devices can (and will) be written in the future.
  19029. """
  19030. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  19031. __repr__ = _swig_repr
  19032. @staticmethod
  19033. def fz_new_xmltext_device(out):
  19034. r"""
  19035. Class-aware wrapper for `::fz_new_xmltext_device()`.
  19036. Create a device to output raw information.
  19037. """
  19038. return _mupdf.FzDevice_fz_new_xmltext_device(out)
  19039. @staticmethod
  19040. def fz_new_draw_device_type3(transform, dest):
  19041. r"""Class-aware wrapper for `::fz_new_draw_device_type3()`."""
  19042. return _mupdf.FzDevice_fz_new_draw_device_type3(transform, dest)
  19043. def fz_begin_group(self, area, cs, isolated, knockout, blendmode, alpha):
  19044. r"""Class-aware wrapper for `::fz_begin_group()`."""
  19045. return _mupdf.FzDevice_fz_begin_group(self, area, cs, isolated, knockout, blendmode, alpha)
  19046. def fz_begin_layer(self, layer_name):
  19047. r"""Class-aware wrapper for `::fz_begin_layer()`."""
  19048. return _mupdf.FzDevice_fz_begin_layer(self, layer_name)
  19049. def fz_begin_mask(self, area, luminosity, colorspace, bc, color_params):
  19050. r"""Class-aware wrapper for `::fz_begin_mask()`."""
  19051. return _mupdf.FzDevice_fz_begin_mask(self, area, luminosity, colorspace, bc, color_params)
  19052. def fz_begin_metatext(self, meta, text):
  19053. r"""Class-aware wrapper for `::fz_begin_metatext()`."""
  19054. return _mupdf.FzDevice_fz_begin_metatext(self, meta, text)
  19055. def fz_begin_structure(self, standard, raw, idx):
  19056. r"""Class-aware wrapper for `::fz_begin_structure()`."""
  19057. return _mupdf.FzDevice_fz_begin_structure(self, standard, raw, idx)
  19058. def fz_begin_tile(self, area, view, xstep, ystep, ctm):
  19059. r"""Class-aware wrapper for `::fz_begin_tile()`."""
  19060. return _mupdf.FzDevice_fz_begin_tile(self, area, view, xstep, ystep, ctm)
  19061. def fz_begin_tile_id(self, area, view, xstep, ystep, ctm, id):
  19062. r"""Class-aware wrapper for `::fz_begin_tile_id()`."""
  19063. return _mupdf.FzDevice_fz_begin_tile_id(self, area, view, xstep, ystep, ctm, id)
  19064. def fz_begin_tile_tid(self, area, view, xstep, ystep, ctm, id, doc_id):
  19065. r"""Class-aware wrapper for `::fz_begin_tile_tid()`."""
  19066. return _mupdf.FzDevice_fz_begin_tile_tid(self, area, view, xstep, ystep, ctm, id, doc_id)
  19067. def fz_clip_image_mask(self, image, ctm, scissor):
  19068. r"""Class-aware wrapper for `::fz_clip_image_mask()`."""
  19069. return _mupdf.FzDevice_fz_clip_image_mask(self, image, ctm, scissor)
  19070. def fz_clip_path(self, path, even_odd, ctm, scissor):
  19071. r"""Class-aware wrapper for `::fz_clip_path()`."""
  19072. return _mupdf.FzDevice_fz_clip_path(self, path, even_odd, ctm, scissor)
  19073. def fz_clip_stroke_path(self, path, stroke, ctm, scissor):
  19074. r"""Class-aware wrapper for `::fz_clip_stroke_path()`."""
  19075. return _mupdf.FzDevice_fz_clip_stroke_path(self, path, stroke, ctm, scissor)
  19076. def fz_clip_stroke_text(self, text, stroke, ctm, scissor):
  19077. r"""Class-aware wrapper for `::fz_clip_stroke_text()`."""
  19078. return _mupdf.FzDevice_fz_clip_stroke_text(self, text, stroke, ctm, scissor)
  19079. def fz_clip_text(self, text, ctm, scissor):
  19080. r"""Class-aware wrapper for `::fz_clip_text()`."""
  19081. return _mupdf.FzDevice_fz_clip_text(self, text, ctm, scissor)
  19082. def fz_close_device(self):
  19083. r"""
  19084. Class-aware wrapper for `::fz_close_device()`.
  19085. Signal the end of input, and flush any buffered output.
  19086. This is NOT called implicitly on fz_drop_device. This
  19087. may throw exceptions.
  19088. """
  19089. return _mupdf.FzDevice_fz_close_device(self)
  19090. def fz_device_current_scissor(self):
  19091. r"""
  19092. Class-aware wrapper for `::fz_device_current_scissor()`.
  19093. Find current scissor region as tracked by the device.
  19094. """
  19095. return _mupdf.FzDevice_fz_device_current_scissor(self)
  19096. def fz_disable_device_hints(self, hints):
  19097. r"""
  19098. Class-aware wrapper for `::fz_disable_device_hints()`.
  19099. Disable (clear) hint bits within the hint bitfield for a device.
  19100. """
  19101. return _mupdf.FzDevice_fz_disable_device_hints(self, hints)
  19102. def fz_enable_device_hints(self, hints):
  19103. r"""
  19104. Class-aware wrapper for `::fz_enable_device_hints()`.
  19105. Enable (set) hint bits within the hint bitfield for a device.
  19106. """
  19107. return _mupdf.FzDevice_fz_enable_device_hints(self, hints)
  19108. def fz_end_group(self):
  19109. r"""Class-aware wrapper for `::fz_end_group()`."""
  19110. return _mupdf.FzDevice_fz_end_group(self)
  19111. def fz_end_layer(self):
  19112. r"""Class-aware wrapper for `::fz_end_layer()`."""
  19113. return _mupdf.FzDevice_fz_end_layer(self)
  19114. def fz_end_mask(self):
  19115. r"""Class-aware wrapper for `::fz_end_mask()`."""
  19116. return _mupdf.FzDevice_fz_end_mask(self)
  19117. def fz_end_mask_tr(self, fn):
  19118. r"""Class-aware wrapper for `::fz_end_mask_tr()`."""
  19119. return _mupdf.FzDevice_fz_end_mask_tr(self, fn)
  19120. def fz_end_metatext(self):
  19121. r"""Class-aware wrapper for `::fz_end_metatext()`."""
  19122. return _mupdf.FzDevice_fz_end_metatext(self)
  19123. def fz_end_structure(self):
  19124. r"""Class-aware wrapper for `::fz_end_structure()`."""
  19125. return _mupdf.FzDevice_fz_end_structure(self)
  19126. def fz_end_tile(self):
  19127. r"""Class-aware wrapper for `::fz_end_tile()`."""
  19128. return _mupdf.FzDevice_fz_end_tile(self)
  19129. def fz_fill_image(self, image, ctm, alpha, color_params):
  19130. r"""Class-aware wrapper for `::fz_fill_image()`."""
  19131. return _mupdf.FzDevice_fz_fill_image(self, image, ctm, alpha, color_params)
  19132. def fz_fill_image_mask(self, image, ctm, colorspace, color, alpha, color_params):
  19133. r"""Class-aware wrapper for `::fz_fill_image_mask()`."""
  19134. return _mupdf.FzDevice_fz_fill_image_mask(self, image, ctm, colorspace, color, alpha, color_params)
  19135. def fz_fill_path(self, path, even_odd, ctm, colorspace, color, alpha, color_params):
  19136. r"""
  19137. Class-aware wrapper for `::fz_fill_path()`.
  19138. Device calls; graphics primitives and containers.
  19139. """
  19140. return _mupdf.FzDevice_fz_fill_path(self, path, even_odd, ctm, colorspace, color, alpha, color_params)
  19141. def fz_fill_shade(self, shade, ctm, alpha, color_params):
  19142. r"""Class-aware wrapper for `::fz_fill_shade()`."""
  19143. return _mupdf.FzDevice_fz_fill_shade(self, shade, ctm, alpha, color_params)
  19144. def fz_fill_text(self, text, ctm, colorspace, color, alpha, color_params):
  19145. r"""Class-aware wrapper for `::fz_fill_text()`."""
  19146. return _mupdf.FzDevice_fz_fill_text(self, text, ctm, colorspace, color, alpha, color_params)
  19147. def fz_ignore_text(self, text, ctm):
  19148. r"""Class-aware wrapper for `::fz_ignore_text()`."""
  19149. return _mupdf.FzDevice_fz_ignore_text(self, text, ctm)
  19150. def fz_new_ocr_device(self, ctm, mediabox, with_list, language, datadir, progress, progress_arg):
  19151. r"""
  19152. Class-aware wrapper for `::fz_new_ocr_device()`.
  19153. Create a device to OCR the text on the page.
  19154. Renders the page internally to a bitmap that is then OCRd. Text
  19155. is then forwarded onto the target device.
  19156. target: The target device to receive the OCRd text.
  19157. ctm: The transform to apply to the mediabox to get the size for
  19158. the rendered page image. Also used to calculate the resolution
  19159. for the page image. In general, this will be the same as the CTM
  19160. that you pass to fz_run_page (or fz_run_display_list) to feed
  19161. this device.
  19162. mediabox: The mediabox (in points). Combined with the CTM to get
  19163. the bounds of the pixmap used internally for the rendered page
  19164. image.
  19165. with_list: If with_list is false, then all non-text operations
  19166. are forwarded instantly to the target device. This results in
  19167. the target device seeing all NON-text operations, followed by
  19168. all the text operations (derived from OCR).
  19169. If with_list is true, then all the marking operations are
  19170. collated into a display list which is then replayed to the
  19171. target device at the end.
  19172. language: NULL (for "eng"), or a pointer to a string to describe
  19173. the languages/scripts that should be used for OCR (e.g.
  19174. "eng,ara").
  19175. datadir: NULL (for ""), or a pointer to a path string otherwise
  19176. provided to Tesseract in the TESSDATA_PREFIX environment variable.
  19177. progress: NULL, or function to be called periodically to indicate
  19178. progress. Return 0 to continue, or 1 to cancel. progress_arg is
  19179. returned as the void *. The int is a value between 0 and 100 to
  19180. indicate progress.
  19181. progress_arg: A void * value to be parrotted back to the progress
  19182. function.
  19183. """
  19184. return _mupdf.FzDevice_fz_new_ocr_device(self, ctm, mediabox, with_list, language, datadir, progress, progress_arg)
  19185. def fz_pop_clip(self):
  19186. r"""Class-aware wrapper for `::fz_pop_clip()`."""
  19187. return _mupdf.FzDevice_fz_pop_clip(self)
  19188. def fz_render_flags(self, set, clear):
  19189. r"""Class-aware wrapper for `::fz_render_flags()`."""
  19190. return _mupdf.FzDevice_fz_render_flags(self, set, clear)
  19191. def fz_render_t3_glyph_direct(self, font, gid, trm, gstate, def_cs, fill_gstate, stroke_gstate):
  19192. r"""
  19193. Class-aware wrapper for `::fz_render_t3_glyph_direct()`.
  19194. Nasty PDF interpreter specific hernia, required to allow the
  19195. interpreter to replay glyphs from a type3 font directly into
  19196. the target device.
  19197. This is only used in exceptional circumstances (such as type3
  19198. glyphs that inherit current graphics state, or nested type3
  19199. glyphs).
  19200. """
  19201. return _mupdf.FzDevice_fz_render_t3_glyph_direct(self, font, gid, trm, gstate, def_cs, fill_gstate, stroke_gstate)
  19202. def fz_set_default_colorspaces(self, default_cs):
  19203. r"""Class-aware wrapper for `::fz_set_default_colorspaces()`."""
  19204. return _mupdf.FzDevice_fz_set_default_colorspaces(self, default_cs)
  19205. def fz_stroke_path(self, path, stroke, ctm, colorspace, color, alpha, color_params):
  19206. r"""Class-aware wrapper for `::fz_stroke_path()`."""
  19207. return _mupdf.FzDevice_fz_stroke_path(self, path, stroke, ctm, colorspace, color, alpha, color_params)
  19208. def fz_stroke_text(self, text, stroke, ctm, colorspace, color, alpha, color_params):
  19209. r"""Class-aware wrapper for `::fz_stroke_text()`."""
  19210. return _mupdf.FzDevice_fz_stroke_text(self, text, stroke, ctm, colorspace, color, alpha, color_params)
  19211. def __init__(self, *args):
  19212. r"""
  19213. *Overload 1:*
  19214. == Constructors. Constructor using `fz_new_bbox_device()`.
  19215. Create a device to compute the bounding
  19216. box of all marks on a page.
  19217. The returned bounding box will be the union of all bounding
  19218. boxes of all objects on a page.
  19219. |
  19220. *Overload 2:*
  19221. Constructor using `fz_new_device_of_size()`.
  19222. Devices are created by calls to device implementations, for
  19223. instance: foo_new_device(). These will be implemented by calling
  19224. fz_new_derived_device(ctx, foo_device) where foo_device is a
  19225. structure "derived from" fz_device, for instance
  19226. typedef struct { fz_device base; ...extras...} foo_device;
  19227. |
  19228. *Overload 3:*
  19229. Constructor using `fz_new_draw_device()`.
  19230. Create a device to draw on a pixmap.
  19231. dest: Target pixmap for the draw device. See fz_new_pixmap*
  19232. for how to obtain a pixmap. The pixmap is not cleared by the
  19233. draw device, see fz_clear_pixmap* for how to clear it prior to
  19234. calling fz_new_draw_device. Free the device by calling
  19235. fz_drop_device.
  19236. transform: Transform from user space in points to device space
  19237. in pixels.
  19238. |
  19239. *Overload 4:*
  19240. Constructor using `fz_new_draw_device_with_bbox()`.
  19241. Create a device to draw on a pixmap.
  19242. dest: Target pixmap for the draw device. See fz_new_pixmap*
  19243. for how to obtain a pixmap. The pixmap is not cleared by the
  19244. draw device, see fz_clear_pixmap* for how to clear it prior to
  19245. calling fz_new_draw_device. Free the device by calling
  19246. fz_drop_device.
  19247. transform: Transform from user space in points to device space
  19248. in pixels.
  19249. clip: Bounding box to restrict any marking operations of the
  19250. draw device.
  19251. |
  19252. *Overload 5:*
  19253. Constructor using `fz_new_draw_device_with_bbox_proof()`.
  19254. Create a device to draw on a pixmap.
  19255. dest: Target pixmap for the draw device. See fz_new_pixmap*
  19256. for how to obtain a pixmap. The pixmap is not cleared by the
  19257. draw device, see fz_clear_pixmap* for how to clear it prior to
  19258. calling fz_new_draw_device. Free the device by calling
  19259. fz_drop_device.
  19260. transform: Transform from user space in points to device space
  19261. in pixels.
  19262. clip: Bounding box to restrict any marking operations of the
  19263. draw device.
  19264. proof_cs: Color space to render to prior to mapping to color
  19265. space defined by pixmap.
  19266. |
  19267. *Overload 6:*
  19268. Constructor using `fz_new_draw_device_with_options()`.
  19269. Create a new pixmap and draw device, using the specified options.
  19270. options: Options to configure the draw device, and choose the
  19271. resolution and colorspace.
  19272. mediabox: The bounds of the page in points.
  19273. pixmap: An out parameter containing the newly created pixmap.
  19274. |
  19275. *Overload 7:*
  19276. Constructor using `fz_new_draw_device_with_proof()`.
  19277. Create a device to draw on a pixmap.
  19278. dest: Target pixmap for the draw device. See fz_new_pixmap*
  19279. for how to obtain a pixmap. The pixmap is not cleared by the
  19280. draw device, see fz_clear_pixmap* for how to clear it prior to
  19281. calling fz_new_draw_device. Free the device by calling
  19282. fz_drop_device.
  19283. transform: Transform from user space in points to device space
  19284. in pixels.
  19285. proof_cs: Intermediate color space to map though when mapping to
  19286. color space defined by pixmap.
  19287. |
  19288. *Overload 8:*
  19289. Constructor using `fz_new_list_device()`.
  19290. Create a rendering device for a display list.
  19291. When the device is rendering a page it will populate the
  19292. display list with drawing commands (text, images, etc.). The
  19293. display list can later be reused to render a page many times
  19294. without having to re-interpret the page from the document file
  19295. for each rendering. Once the device is no longer needed, free
  19296. it with fz_drop_device.
  19297. list: A display list that the list device takes a reference to.
  19298. |
  19299. *Overload 9:*
  19300. Constructor using `fz_new_ocr_device()`.
  19301. Create a device to OCR the text on the page.
  19302. Renders the page internally to a bitmap that is then OCRd. Text
  19303. is then forwarded onto the target device.
  19304. target: The target device to receive the OCRd text.
  19305. ctm: The transform to apply to the mediabox to get the size for
  19306. the rendered page image. Also used to calculate the resolution
  19307. for the page image. In general, this will be the same as the CTM
  19308. that you pass to fz_run_page (or fz_run_display_list) to feed
  19309. this device.
  19310. mediabox: The mediabox (in points). Combined with the CTM to get
  19311. the bounds of the pixmap used internally for the rendered page
  19312. image.
  19313. with_list: If with_list is false, then all non-text operations
  19314. are forwarded instantly to the target device. This results in
  19315. the target device seeing all NON-text operations, followed by
  19316. all the text operations (derived from OCR).
  19317. If with_list is true, then all the marking operations are
  19318. collated into a display list which is then replayed to the
  19319. target device at the end.
  19320. language: NULL (for "eng"), or a pointer to a string to describe
  19321. the languages/scripts that should be used for OCR (e.g.
  19322. "eng,ara").
  19323. datadir: NULL (for ""), or a pointer to a path string otherwise
  19324. provided to Tesseract in the TESSDATA_PREFIX environment variable.
  19325. progress: NULL, or function to be called periodically to indicate
  19326. progress. Return 0 to continue, or 1 to cancel. progress_arg is
  19327. returned as the void *. The int is a value between 0 and 100 to
  19328. indicate progress.
  19329. progress_arg: A void * value to be parrotted back to the progress
  19330. function.
  19331. |
  19332. *Overload 10:*
  19333. Constructor using `fz_new_stext_device()`.
  19334. Create a device to extract the text on a page.
  19335. Gather the text on a page into blocks and lines.
  19336. The reading order is taken from the order the text is drawn in
  19337. the source file, so may not be accurate.
  19338. page: The text page to which content should be added. This will
  19339. usually be a newly created (empty) text page, but it can be one
  19340. containing data already (for example when merging multiple
  19341. pages, or watermarking).
  19342. options: Options to configure the stext device.
  19343. |
  19344. *Overload 11:*
  19345. Constructor using `fz_new_stext_device_for_page()`.
  19346. Create a device to extract the text on a page into an existing
  19347. fz_stext_page structure.
  19348. Gather the text on a page into blocks and lines.
  19349. The reading order is taken from the order the text is drawn in
  19350. the source file, so may not be accurate.
  19351. stext_page: The text page to which content should be added. This will
  19352. usually be a newly created (empty) text page, but it can be one
  19353. containing data already (for example when merging multiple
  19354. pages, or watermarking).
  19355. options: Options to configure the stext device.
  19356. The next 2 parameters are copied into the fz_stext_page structure's
  19357. ids section, so only have to be valid if you expect to interrogate
  19358. that section later.
  19359. chapter_num: The chapter number that this page came from.
  19360. page_num: The page number that this page came from.
  19361. The final parameter is copied into the fz_stext_page structure's
  19362. ids section. The mediabox for the enture fz_stext_page is unioned
  19363. with this, so pass fz_empty_bbox if you don't care about getting
  19364. a valid value back from the ids section, but you don't want to
  19365. upset the value in the page->mediabox field.
  19366. mediabox: The mediabox for this page.
  19367. |
  19368. *Overload 12:*
  19369. Constructor using `fz_new_svg_device()`.
  19370. Create a device that outputs (single page) SVG files to
  19371. the given output stream.
  19372. Equivalent to fz_new_svg_device_with_id passing id = NULL.
  19373. |
  19374. *Overload 13:*
  19375. Constructor using `fz_new_svg_device_with_id()`.
  19376. Create a device that outputs (single page) SVG files to
  19377. the given output stream.
  19378. output: The output stream to send the constructed SVG page to.
  19379. page_width, page_height: The page dimensions to use (in points).
  19380. text_format: How to emit text. One of the following values:
  19381. FZ_SVG_TEXT_AS_TEXT: As <text> elements with possible
  19382. layout errors and mismatching fonts.
  19383. FZ_SVG_TEXT_AS_PATH: As <path> elements with exact
  19384. visual appearance.
  19385. reuse_images: Share image resources using <symbol> definitions.
  19386. id: ID parameter to keep generated IDs unique across SVG files.
  19387. |
  19388. *Overload 14:*
  19389. Constructor using `fz_new_test_device()`.
  19390. Create a device to test for features.
  19391. Currently only tests for the presence of non-grayscale colors.
  19392. is_color: Possible values returned:
  19393. 0: Definitely greyscale
  19394. 1: Probably color (all colors were grey, but there
  19395. were images or shadings in a non grey colorspace).
  19396. 2: Definitely color
  19397. threshold: The difference from grayscale that will be tolerated.
  19398. Typical values to use are either 0 (be exact) and 0.02 (allow an
  19399. imperceptible amount of slop).
  19400. options: A set of bitfield options, from the FZ_TEST_OPT set.
  19401. passthrough: A device to pass all calls through to, or NULL.
  19402. If set, then the test device can both test and pass through to
  19403. an underlying device (like, say, the display list device). This
  19404. means that a display list can be created and at the end we'll
  19405. know if it's colored or not.
  19406. In the absence of a passthrough device, the device will throw
  19407. an exception to stop page interpretation when color is found.
  19408. |
  19409. *Overload 15:*
  19410. Constructor using `fz_new_trace_device()`.
  19411. Create a device to print a debug trace of all device calls.
  19412. |
  19413. *Overload 16:*
  19414. Constructor using `pdf_new_pdf_device()`.
  19415. |
  19416. *Overload 17:*
  19417. Copy constructor using `fz_keep_device()`.
  19418. |
  19419. *Overload 18:*
  19420. Default constructor, sets `m_internal` to null.
  19421. |
  19422. *Overload 19:*
  19423. Constructor using raw copy of pre-existing `::fz_device`.
  19424. """
  19425. _mupdf.FzDevice_swiginit(self, _mupdf.new_FzDevice(*args))
  19426. __swig_destroy__ = _mupdf.delete_FzDevice
  19427. def m_internal_value(self):
  19428. r"""Return numerical value of .m_internal; helps with Python debugging."""
  19429. return _mupdf.FzDevice_m_internal_value(self)
  19430. def __nonzero__(self):
  19431. return _mupdf.FzDevice___nonzero__(self)
  19432. __bool__ = __nonzero__
  19433. m_internal = property(_mupdf.FzDevice_m_internal_get, _mupdf.FzDevice_m_internal_set, doc=r"""Pointer to wrapped data.""")
  19434. s_num_instances = property(_mupdf.FzDevice_s_num_instances_get, _mupdf.FzDevice_s_num_instances_set)
  19435. # Register FzDevice in _mupdf:
  19436. _mupdf.FzDevice_swigregister(FzDevice)
  19437. class FzDevice2(FzDevice):
  19438. r"""Wrapper class for struct fz_device with virtual fns for each fnptr; this is for use as a SWIG Director class."""
  19439. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  19440. __repr__ = _swig_repr
  19441. def __init__(self):
  19442. r"""== Constructor."""
  19443. if self.__class__ == FzDevice2:
  19444. _self = None
  19445. else:
  19446. _self = self
  19447. _mupdf.FzDevice2_swiginit(self, _mupdf.new_FzDevice2(_self, ))
  19448. __swig_destroy__ = _mupdf.delete_FzDevice2
  19449. def use_virtual_close_device(self, use=True):
  19450. r"""
  19451. These methods set the function pointers in *m_internal
  19452. to point to internal callbacks that call our virtual methods.
  19453. """
  19454. return _mupdf.FzDevice2_use_virtual_close_device(self, use)
  19455. def use_virtual_drop_device(self, use=True):
  19456. return _mupdf.FzDevice2_use_virtual_drop_device(self, use)
  19457. def use_virtual_fill_path(self, use=True):
  19458. return _mupdf.FzDevice2_use_virtual_fill_path(self, use)
  19459. def use_virtual_stroke_path(self, use=True):
  19460. return _mupdf.FzDevice2_use_virtual_stroke_path(self, use)
  19461. def use_virtual_clip_path(self, use=True):
  19462. return _mupdf.FzDevice2_use_virtual_clip_path(self, use)
  19463. def use_virtual_clip_stroke_path(self, use=True):
  19464. return _mupdf.FzDevice2_use_virtual_clip_stroke_path(self, use)
  19465. def use_virtual_fill_text(self, use=True):
  19466. return _mupdf.FzDevice2_use_virtual_fill_text(self, use)
  19467. def use_virtual_stroke_text(self, use=True):
  19468. return _mupdf.FzDevice2_use_virtual_stroke_text(self, use)
  19469. def use_virtual_clip_text(self, use=True):
  19470. return _mupdf.FzDevice2_use_virtual_clip_text(self, use)
  19471. def use_virtual_clip_stroke_text(self, use=True):
  19472. return _mupdf.FzDevice2_use_virtual_clip_stroke_text(self, use)
  19473. def use_virtual_ignore_text(self, use=True):
  19474. return _mupdf.FzDevice2_use_virtual_ignore_text(self, use)
  19475. def use_virtual_fill_shade(self, use=True):
  19476. return _mupdf.FzDevice2_use_virtual_fill_shade(self, use)
  19477. def use_virtual_fill_image(self, use=True):
  19478. return _mupdf.FzDevice2_use_virtual_fill_image(self, use)
  19479. def use_virtual_fill_image_mask(self, use=True):
  19480. return _mupdf.FzDevice2_use_virtual_fill_image_mask(self, use)
  19481. def use_virtual_clip_image_mask(self, use=True):
  19482. return _mupdf.FzDevice2_use_virtual_clip_image_mask(self, use)
  19483. def use_virtual_pop_clip(self, use=True):
  19484. return _mupdf.FzDevice2_use_virtual_pop_clip(self, use)
  19485. def use_virtual_begin_mask(self, use=True):
  19486. return _mupdf.FzDevice2_use_virtual_begin_mask(self, use)
  19487. def use_virtual_end_mask(self, use=True):
  19488. return _mupdf.FzDevice2_use_virtual_end_mask(self, use)
  19489. def use_virtual_begin_group(self, use=True):
  19490. return _mupdf.FzDevice2_use_virtual_begin_group(self, use)
  19491. def use_virtual_end_group(self, use=True):
  19492. return _mupdf.FzDevice2_use_virtual_end_group(self, use)
  19493. def use_virtual_begin_tile(self, use=True):
  19494. return _mupdf.FzDevice2_use_virtual_begin_tile(self, use)
  19495. def use_virtual_end_tile(self, use=True):
  19496. return _mupdf.FzDevice2_use_virtual_end_tile(self, use)
  19497. def use_virtual_render_flags(self, use=True):
  19498. return _mupdf.FzDevice2_use_virtual_render_flags(self, use)
  19499. def use_virtual_set_default_colorspaces(self, use=True):
  19500. return _mupdf.FzDevice2_use_virtual_set_default_colorspaces(self, use)
  19501. def use_virtual_begin_layer(self, use=True):
  19502. return _mupdf.FzDevice2_use_virtual_begin_layer(self, use)
  19503. def use_virtual_end_layer(self, use=True):
  19504. return _mupdf.FzDevice2_use_virtual_end_layer(self, use)
  19505. def use_virtual_begin_structure(self, use=True):
  19506. return _mupdf.FzDevice2_use_virtual_begin_structure(self, use)
  19507. def use_virtual_end_structure(self, use=True):
  19508. return _mupdf.FzDevice2_use_virtual_end_structure(self, use)
  19509. def use_virtual_begin_metatext(self, use=True):
  19510. return _mupdf.FzDevice2_use_virtual_begin_metatext(self, use)
  19511. def use_virtual_end_metatext(self, use=True):
  19512. return _mupdf.FzDevice2_use_virtual_end_metatext(self, use)
  19513. def close_device(self, arg_0):
  19514. r"""Default virtual method implementations; these all throw an exception."""
  19515. return _mupdf.FzDevice2_close_device(self, arg_0)
  19516. def drop_device(self, arg_0):
  19517. return _mupdf.FzDevice2_drop_device(self, arg_0)
  19518. def fill_path(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7, arg_8):
  19519. return _mupdf.FzDevice2_fill_path(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7, arg_8)
  19520. def stroke_path(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7, arg_8):
  19521. return _mupdf.FzDevice2_stroke_path(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7, arg_8)
  19522. def clip_path(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  19523. return _mupdf.FzDevice2_clip_path(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  19524. def clip_stroke_path(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  19525. return _mupdf.FzDevice2_clip_stroke_path(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  19526. def fill_text(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7):
  19527. return _mupdf.FzDevice2_fill_text(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7)
  19528. def stroke_text(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7, arg_8):
  19529. return _mupdf.FzDevice2_stroke_text(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7, arg_8)
  19530. def clip_text(self, arg_0, arg_2, arg_3, arg_4):
  19531. return _mupdf.FzDevice2_clip_text(self, arg_0, arg_2, arg_3, arg_4)
  19532. def clip_stroke_text(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  19533. return _mupdf.FzDevice2_clip_stroke_text(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  19534. def ignore_text(self, arg_0, arg_2, arg_3):
  19535. return _mupdf.FzDevice2_ignore_text(self, arg_0, arg_2, arg_3)
  19536. def fill_shade(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  19537. return _mupdf.FzDevice2_fill_shade(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  19538. def fill_image(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  19539. return _mupdf.FzDevice2_fill_image(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  19540. def fill_image_mask(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7):
  19541. return _mupdf.FzDevice2_fill_image_mask(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7)
  19542. def clip_image_mask(self, arg_0, arg_2, arg_3, arg_4):
  19543. return _mupdf.FzDevice2_clip_image_mask(self, arg_0, arg_2, arg_3, arg_4)
  19544. def pop_clip(self, arg_0):
  19545. return _mupdf.FzDevice2_pop_clip(self, arg_0)
  19546. def begin_mask(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6):
  19547. return _mupdf.FzDevice2_begin_mask(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6)
  19548. def end_mask(self, arg_0, arg_2):
  19549. return _mupdf.FzDevice2_end_mask(self, arg_0, arg_2)
  19550. def begin_group(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7):
  19551. return _mupdf.FzDevice2_begin_group(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7)
  19552. def end_group(self, arg_0):
  19553. return _mupdf.FzDevice2_end_group(self, arg_0)
  19554. def begin_tile(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7, arg_8):
  19555. return _mupdf.FzDevice2_begin_tile(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7, arg_8)
  19556. def end_tile(self, arg_0):
  19557. return _mupdf.FzDevice2_end_tile(self, arg_0)
  19558. def render_flags(self, arg_0, arg_2, arg_3):
  19559. return _mupdf.FzDevice2_render_flags(self, arg_0, arg_2, arg_3)
  19560. def set_default_colorspaces(self, arg_0, arg_2):
  19561. return _mupdf.FzDevice2_set_default_colorspaces(self, arg_0, arg_2)
  19562. def begin_layer(self, arg_0, arg_2):
  19563. return _mupdf.FzDevice2_begin_layer(self, arg_0, arg_2)
  19564. def end_layer(self, arg_0):
  19565. return _mupdf.FzDevice2_end_layer(self, arg_0)
  19566. def begin_structure(self, arg_0, arg_2, arg_3, arg_4):
  19567. return _mupdf.FzDevice2_begin_structure(self, arg_0, arg_2, arg_3, arg_4)
  19568. def end_structure(self, arg_0):
  19569. return _mupdf.FzDevice2_end_structure(self, arg_0)
  19570. def begin_metatext(self, arg_0, arg_2, arg_3):
  19571. return _mupdf.FzDevice2_begin_metatext(self, arg_0, arg_2, arg_3)
  19572. def end_metatext(self, arg_0):
  19573. return _mupdf.FzDevice2_end_metatext(self, arg_0)
  19574. def __disown__(self):
  19575. self.this.disown()
  19576. _mupdf.disown_FzDevice2(self)
  19577. return weakref.proxy(self)
  19578. # Register FzDevice2 in _mupdf:
  19579. _mupdf.FzDevice2_swigregister(FzDevice2)
  19580. class FzDeviceContainerStack(object):
  19581. r"""
  19582. Wrapper class for struct `fz_device_container_stack`. Not copyable or assignable.
  19583. Devices can keep track of containers (clips/masks/groups/tiles)
  19584. as they go to save callers having to do it.
  19585. """
  19586. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  19587. __repr__ = _swig_repr
  19588. def __init__(self, *args):
  19589. r"""
  19590. *Overload 1:*
  19591. Default constructor, sets `m_internal` to null.
  19592. |
  19593. *Overload 2:*
  19594. Constructor using raw copy of pre-existing `::fz_device_container_stack`.
  19595. """
  19596. _mupdf.FzDeviceContainerStack_swiginit(self, _mupdf.new_FzDeviceContainerStack(*args))
  19597. __swig_destroy__ = _mupdf.delete_FzDeviceContainerStack
  19598. def m_internal_value(self):
  19599. r"""Return numerical value of .m_internal; helps with Python debugging."""
  19600. return _mupdf.FzDeviceContainerStack_m_internal_value(self)
  19601. def __nonzero__(self):
  19602. return _mupdf.FzDeviceContainerStack___nonzero__(self)
  19603. __bool__ = __nonzero__
  19604. m_internal = property(_mupdf.FzDeviceContainerStack_m_internal_get, _mupdf.FzDeviceContainerStack_m_internal_set, doc=r"""Pointer to wrapped data.""")
  19605. s_num_instances = property(_mupdf.FzDeviceContainerStack_s_num_instances_get, _mupdf.FzDeviceContainerStack_s_num_instances_set)
  19606. # Register FzDeviceContainerStack in _mupdf:
  19607. _mupdf.FzDeviceContainerStack_swigregister(FzDeviceContainerStack)
  19608. class FzDisplayList(object):
  19609. r"""
  19610. Wrapper class for struct `fz_display_list`.
  19611. fz_display_list is a list containing drawing commands (text,
  19612. images, etc.). The intent is two-fold: as a caching-mechanism
  19613. to reduce parsing of a page, and to be used as a data
  19614. structure in multi-threading where one thread parses the page
  19615. and another renders pages.
  19616. Create a display list with fz_new_display_list, hand it over to
  19617. fz_new_list_device to have it populated, and later replay the
  19618. list (once or many times) by calling fz_run_display_list. When
  19619. the list is no longer needed drop it with fz_drop_display_list.
  19620. """
  19621. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  19622. __repr__ = _swig_repr
  19623. @staticmethod
  19624. def fz_new_display_list_from_page_contents(page):
  19625. r"""
  19626. Class-aware wrapper for `::fz_new_display_list_from_page_contents()`.
  19627. Create a display list from page contents (no annotations).
  19628. Ownership of the display list is returned to the caller.
  19629. """
  19630. return _mupdf.FzDisplayList_fz_new_display_list_from_page_contents(page)
  19631. def fz_bound_display_list(self):
  19632. r"""
  19633. Class-aware wrapper for `::fz_bound_display_list()`.
  19634. Return the bounding box of the page recorded in a display list.
  19635. """
  19636. return _mupdf.FzDisplayList_fz_bound_display_list(self)
  19637. def fz_display_list_is_empty(self):
  19638. r"""
  19639. Class-aware wrapper for `::fz_display_list_is_empty()`.
  19640. Check for a display list being empty
  19641. list: The list to check.
  19642. Returns true if empty, false otherwise.
  19643. """
  19644. return _mupdf.FzDisplayList_fz_display_list_is_empty(self)
  19645. def fz_fill_pixmap_from_display_list(self, ctm, pix):
  19646. r"""Class-aware wrapper for `::fz_fill_pixmap_from_display_list()`."""
  19647. return _mupdf.FzDisplayList_fz_fill_pixmap_from_display_list(self, ctm, pix)
  19648. def fz_new_buffer_from_display_list(self, options):
  19649. r"""Class-aware wrapper for `::fz_new_buffer_from_display_list()`."""
  19650. return _mupdf.FzDisplayList_fz_new_buffer_from_display_list(self, options)
  19651. def fz_new_list_device(self):
  19652. r"""
  19653. Class-aware wrapper for `::fz_new_list_device()`.
  19654. Create a rendering device for a display list.
  19655. When the device is rendering a page it will populate the
  19656. display list with drawing commands (text, images, etc.). The
  19657. display list can later be reused to render a page many times
  19658. without having to re-interpret the page from the document file
  19659. for each rendering. Once the device is no longer needed, free
  19660. it with fz_drop_device.
  19661. list: A display list that the list device takes a reference to.
  19662. """
  19663. return _mupdf.FzDisplayList_fz_new_list_device(self)
  19664. def fz_new_pixmap_from_display_list(self, ctm, cs, alpha):
  19665. r"""
  19666. Class-aware wrapper for `::fz_new_pixmap_from_display_list()`.
  19667. Render the page to a pixmap using the transform and colorspace.
  19668. Ownership of the pixmap is returned to the caller.
  19669. """
  19670. return _mupdf.FzDisplayList_fz_new_pixmap_from_display_list(self, ctm, cs, alpha)
  19671. def fz_new_pixmap_from_display_list_with_separations(self, ctm, cs, seps, alpha):
  19672. r"""
  19673. Class-aware wrapper for `::fz_new_pixmap_from_display_list_with_separations()`.
  19674. Render the page contents with control over spot colors.
  19675. Ownership of the pixmap is returned to the caller.
  19676. """
  19677. return _mupdf.FzDisplayList_fz_new_pixmap_from_display_list_with_separations(self, ctm, cs, seps, alpha)
  19678. def fz_run_display_list(self, dev, ctm, scissor, cookie):
  19679. r"""
  19680. Class-aware wrapper for `::fz_run_display_list()`.
  19681. (Re)-run a display list through a device.
  19682. list: A display list, created by fz_new_display_list and
  19683. populated with objects from a page by running fz_run_page on a
  19684. device obtained from fz_new_list_device.
  19685. ctm: Transform to apply to display list contents. May include
  19686. for example scaling and rotation, see fz_scale, fz_rotate and
  19687. fz_concat. Set to fz_identity if no transformation is desired.
  19688. scissor: Only the part of the contents of the display list
  19689. visible within this area will be considered when the list is
  19690. run through the device. This does not imply for tile objects
  19691. contained in the display list.
  19692. cookie: Communication mechanism between caller and library
  19693. running the page. Intended for multi-threaded applications,
  19694. while single-threaded applications set cookie to NULL. The
  19695. caller may abort an ongoing page run. Cookie also communicates
  19696. progress information back to the caller. The fields inside
  19697. cookie are continually updated while the page is being run.
  19698. """
  19699. return _mupdf.FzDisplayList_fz_run_display_list(self, dev, ctm, scissor, cookie)
  19700. def fz_search_display_list(self, needle, hit_mark, hit_bbox, hit_max):
  19701. r"""
  19702. Class-aware wrapper for `::fz_search_display_list()`.
  19703. This method has out-params. Python/C# wrappers look like:
  19704. `fz_search_display_list(const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  19705. """
  19706. return _mupdf.FzDisplayList_fz_search_display_list(self, needle, hit_mark, hit_bbox, hit_max)
  19707. def fz_search_display_list_cb(self, needle, cb, opaque):
  19708. r"""Class-aware wrapper for `::fz_search_display_list_cb()`."""
  19709. return _mupdf.FzDisplayList_fz_search_display_list_cb(self, needle, cb, opaque)
  19710. def __init__(self, *args):
  19711. r"""
  19712. *Overload 1:*
  19713. == Constructors. Constructor using `fz_new_display_list()`.
  19714. Create an empty display list.
  19715. A display list contains drawing commands (text, images, etc.).
  19716. Use fz_new_list_device for populating the list.
  19717. mediabox: Bounds of the page (in points) represented by the
  19718. display list.
  19719. |
  19720. *Overload 2:*
  19721. Constructor using `fz_new_display_list_from_page()`.
  19722. Create a display list.
  19723. Ownership of the display list is returned to the caller.
  19724. |
  19725. *Overload 3:*
  19726. Constructor using `fz_new_display_list_from_page_number()`.
  19727. |
  19728. *Overload 4:*
  19729. Constructor using `fz_new_display_list_from_svg()`.
  19730. Parse an SVG document into a display-list.
  19731. |
  19732. *Overload 5:*
  19733. Constructor using `fz_new_display_list_from_svg_xml()`.
  19734. Parse an SVG document into a display-list.
  19735. |
  19736. *Overload 6:*
  19737. Constructor using `pdf_new_display_list_from_annot()`.
  19738. |
  19739. *Overload 7:*
  19740. Copy constructor using `fz_keep_display_list()`.
  19741. |
  19742. *Overload 8:*
  19743. Default constructor, sets `m_internal` to null.
  19744. |
  19745. *Overload 9:*
  19746. Constructor using raw copy of pre-existing `::fz_display_list`.
  19747. """
  19748. _mupdf.FzDisplayList_swiginit(self, _mupdf.new_FzDisplayList(*args))
  19749. __swig_destroy__ = _mupdf.delete_FzDisplayList
  19750. def m_internal_value(self):
  19751. r"""Return numerical value of .m_internal; helps with Python debugging."""
  19752. return _mupdf.FzDisplayList_m_internal_value(self)
  19753. def __nonzero__(self):
  19754. return _mupdf.FzDisplayList___nonzero__(self)
  19755. __bool__ = __nonzero__
  19756. m_internal = property(_mupdf.FzDisplayList_m_internal_get, _mupdf.FzDisplayList_m_internal_set, doc=r"""Pointer to wrapped data.""")
  19757. s_num_instances = property(_mupdf.FzDisplayList_s_num_instances_get, _mupdf.FzDisplayList_s_num_instances_set)
  19758. # Register FzDisplayList in _mupdf:
  19759. _mupdf.FzDisplayList_swigregister(FzDisplayList)
  19760. class FzDocument(object):
  19761. r"""Wrapper class for struct `fz_document`."""
  19762. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  19763. __repr__ = _swig_repr
  19764. def fz_authenticate_password(self, password):
  19765. r"""
  19766. Class-aware wrapper for `::fz_authenticate_password()`.
  19767. Test if the given password can decrypt the document.
  19768. password: The password string to be checked. Some document
  19769. specifications do not specify any particular text encoding, so
  19770. neither do we.
  19771. Returns 0 for failure to authenticate, non-zero for success.
  19772. For PDF documents, further information can be given by examining
  19773. the bits in the return code.
  19774. Bit 0 => No password required
  19775. Bit 1 => User password authenticated
  19776. Bit 2 => Owner password authenticated
  19777. """
  19778. return _mupdf.FzDocument_fz_authenticate_password(self, password)
  19779. def fz_clamp_location(self, loc):
  19780. r"""
  19781. Class-aware wrapper for `::fz_clamp_location()`.
  19782. Clamps a location into valid chapter/page range. (First clamps
  19783. the chapter into range, then the page into range).
  19784. """
  19785. return _mupdf.FzDocument_fz_clamp_location(self, loc)
  19786. def fz_count_chapter_pages(self, chapter):
  19787. r"""
  19788. Class-aware wrapper for `::fz_count_chapter_pages()`.
  19789. Return the number of pages in a chapter.
  19790. May return 0.
  19791. """
  19792. return _mupdf.FzDocument_fz_count_chapter_pages(self, chapter)
  19793. def fz_count_chapters(self):
  19794. r"""
  19795. Class-aware wrapper for `::fz_count_chapters()`.
  19796. Return the number of chapters in the document.
  19797. At least 1.
  19798. """
  19799. return _mupdf.FzDocument_fz_count_chapters(self)
  19800. def fz_count_pages(self):
  19801. r"""
  19802. Class-aware wrapper for `::fz_count_pages()`.
  19803. Return the number of pages in document
  19804. May return 0 for documents with no pages.
  19805. """
  19806. return _mupdf.FzDocument_fz_count_pages(self)
  19807. def fz_document_output_intent(self):
  19808. r"""
  19809. Class-aware wrapper for `::fz_document_output_intent()`.
  19810. Find the output intent colorspace if the document has defined
  19811. one.
  19812. Returns a borrowed reference that should not be dropped, unless
  19813. it is kept first.
  19814. """
  19815. return _mupdf.FzDocument_fz_document_output_intent(self)
  19816. def fz_document_supports_accelerator(self):
  19817. r"""
  19818. Class-aware wrapper for `::fz_document_supports_accelerator()`.
  19819. Query if the document supports the saving of accelerator data.
  19820. """
  19821. return _mupdf.FzDocument_fz_document_supports_accelerator(self)
  19822. def fz_format_link_uri(self, dest):
  19823. r"""
  19824. Class-aware wrapper for `::fz_format_link_uri()`.
  19825. Format an internal link to a page number, location, and possible viewing parameters,
  19826. suitable for use with fz_create_link.
  19827. Returns a newly allocated string that the caller must free.
  19828. """
  19829. return _mupdf.FzDocument_fz_format_link_uri(self, dest)
  19830. def fz_has_permission(self, p):
  19831. r"""
  19832. Class-aware wrapper for `::fz_has_permission()`.
  19833. Check permission flags on document.
  19834. """
  19835. return _mupdf.FzDocument_fz_has_permission(self, p)
  19836. def fz_is_document_reflowable(self):
  19837. r"""
  19838. Class-aware wrapper for `::fz_is_document_reflowable()`.
  19839. Is the document reflowable.
  19840. Returns 1 to indicate reflowable documents, otherwise 0.
  19841. """
  19842. return _mupdf.FzDocument_fz_is_document_reflowable(self)
  19843. def fz_last_page(self):
  19844. r"""
  19845. Class-aware wrapper for `::fz_last_page()`.
  19846. Function to get the location for the last page in the document.
  19847. Using this can be far more efficient in some cases than calling
  19848. fz_count_pages and using the page number.
  19849. """
  19850. return _mupdf.FzDocument_fz_last_page(self)
  19851. def fz_layout_document(self, w, h, em):
  19852. r"""
  19853. Class-aware wrapper for `::fz_layout_document()`.
  19854. Layout reflowable document types.
  19855. w, h: Page size in points.
  19856. em: Default font size in points.
  19857. """
  19858. return _mupdf.FzDocument_fz_layout_document(self, w, h, em)
  19859. def fz_load_chapter_page(self, chapter, page):
  19860. r"""
  19861. Class-aware wrapper for `::fz_load_chapter_page()`.
  19862. Load a page.
  19863. After fz_load_page is it possible to retrieve the size of the
  19864. page using fz_bound_page, or to render the page using
  19865. fz_run_page_*. Free the page by calling fz_drop_page.
  19866. chapter: chapter number, 0 is the first chapter of the document.
  19867. number: page number, 0 is the first page of the chapter.
  19868. """
  19869. return _mupdf.FzDocument_fz_load_chapter_page(self, chapter, page)
  19870. def fz_load_outline(self):
  19871. r"""
  19872. Class-aware wrapper for `::fz_load_outline()`.
  19873. Load the hierarchical document outline.
  19874. Should be freed by fz_drop_outline.
  19875. """
  19876. return _mupdf.FzDocument_fz_load_outline(self)
  19877. def fz_load_page(self, number):
  19878. r"""
  19879. Class-aware wrapper for `::fz_load_page()`.
  19880. Load a given page number from a document. This may be much less
  19881. efficient than loading by location (chapter+page) for some
  19882. document types.
  19883. """
  19884. return _mupdf.FzDocument_fz_load_page(self, number)
  19885. def fz_location_from_page_number(self, number):
  19886. r"""
  19887. Class-aware wrapper for `::fz_location_from_page_number()`.
  19888. Converts from page number to chapter+page. This may cause many
  19889. chapters to be laid out in order to calculate the number of
  19890. pages within those chapters.
  19891. """
  19892. return _mupdf.FzDocument_fz_location_from_page_number(self, number)
  19893. def fz_lookup_bookmark(self, mark):
  19894. r"""
  19895. Class-aware wrapper for `::fz_lookup_bookmark()`.
  19896. Find a bookmark and return its page number.
  19897. """
  19898. return _mupdf.FzDocument_fz_lookup_bookmark(self, mark)
  19899. def fz_lookup_metadata(self, key, buf, size):
  19900. r"""
  19901. Class-aware wrapper for `::fz_lookup_metadata()`.
  19902. Retrieve document meta data strings.
  19903. doc: The document to query.
  19904. key: Which meta data key to retrieve...
  19905. Basic information:
  19906. 'format' -- Document format and version.
  19907. 'encryption' -- Description of the encryption used.
  19908. From the document information dictionary:
  19909. 'info:Title'
  19910. 'info:Author'
  19911. 'info:Subject'
  19912. 'info:Keywords'
  19913. 'info:Creator'
  19914. 'info:Producer'
  19915. 'info:CreationDate'
  19916. 'info:ModDate'
  19917. buf: The buffer to hold the results (a nul-terminated UTF-8
  19918. string).
  19919. size: Size of 'buf'.
  19920. Returns the number of bytes need to store the string plus terminator
  19921. (will be larger than 'size' if the output was truncated), or -1 if the
  19922. key is not recognized or found.
  19923. """
  19924. return _mupdf.FzDocument_fz_lookup_metadata(self, key, buf, size)
  19925. def fz_lookup_metadata2(self, key):
  19926. r"""
  19927. Class-aware wrapper for `::fz_lookup_metadata2()`.
  19928. C++ alternative to `fz_lookup_metadata()` that returns a `std::string`
  19929. or calls `fz_throw()` if not found.
  19930. """
  19931. return _mupdf.FzDocument_fz_lookup_metadata2(self, key)
  19932. def fz_needs_password(self):
  19933. r"""
  19934. Class-aware wrapper for `::fz_needs_password()`.
  19935. Check if a document is encrypted with a
  19936. non-blank password.
  19937. """
  19938. return _mupdf.FzDocument_fz_needs_password(self)
  19939. def fz_new_buffer_from_page_number(self, number, options):
  19940. r"""Class-aware wrapper for `::fz_new_buffer_from_page_number()`."""
  19941. return _mupdf.FzDocument_fz_new_buffer_from_page_number(self, number, options)
  19942. def fz_new_display_list_from_page_number(self, number):
  19943. r"""Class-aware wrapper for `::fz_new_display_list_from_page_number()`."""
  19944. return _mupdf.FzDocument_fz_new_display_list_from_page_number(self, number)
  19945. def fz_new_pdf_document_from_fz_document(self):
  19946. r"""Class-aware wrapper for `::fz_new_pdf_document_from_fz_document()`."""
  19947. return _mupdf.FzDocument_fz_new_pdf_document_from_fz_document(self)
  19948. def fz_new_pixmap_from_page_number(self, number, ctm, cs, alpha):
  19949. r"""Class-aware wrapper for `::fz_new_pixmap_from_page_number()`."""
  19950. return _mupdf.FzDocument_fz_new_pixmap_from_page_number(self, number, ctm, cs, alpha)
  19951. def fz_new_pixmap_from_page_number_with_separations(self, number, ctm, cs, seps, alpha):
  19952. r"""Class-aware wrapper for `::fz_new_pixmap_from_page_number_with_separations()`."""
  19953. return _mupdf.FzDocument_fz_new_pixmap_from_page_number_with_separations(self, number, ctm, cs, seps, alpha)
  19954. def fz_new_xhtml_document_from_document(self, *args):
  19955. r"""
  19956. *Overload 1:*
  19957. Class-aware wrapper for `::fz_new_xhtml_document_from_document()`.
  19958. Use text extraction to convert the input document into XHTML,
  19959. then open the result as a new document that can be reflowed.
  19960. |
  19961. *Overload 2:*
  19962. Class-aware wrapper for `::fz_new_xhtml_document_from_document()`.
  19963. Use text extraction to convert the input document into XHTML,
  19964. then open the result as a new document that can be reflowed.
  19965. """
  19966. return _mupdf.FzDocument_fz_new_xhtml_document_from_document(self, *args)
  19967. def fz_next_page(self, loc):
  19968. r"""
  19969. Class-aware wrapper for `::fz_next_page()`.
  19970. Function to get the location of the next page (allowing for the
  19971. end of chapters etc). If at the end of the document, returns the
  19972. current location.
  19973. """
  19974. return _mupdf.FzDocument_fz_next_page(self, loc)
  19975. def fz_open_reflowed_document(self, opts):
  19976. r"""Class-aware wrapper for `::fz_open_reflowed_document()`."""
  19977. return _mupdf.FzDocument_fz_open_reflowed_document(self, opts)
  19978. def fz_output_accelerator(self, accel):
  19979. r"""
  19980. Class-aware wrapper for `::fz_output_accelerator()`.
  19981. Output accelerator data for the document to a given output
  19982. stream.
  19983. """
  19984. return _mupdf.FzDocument_fz_output_accelerator(self, accel)
  19985. def fz_page_number_from_location(self, loc):
  19986. r"""
  19987. Class-aware wrapper for `::fz_page_number_from_location()`.
  19988. Converts from chapter+page to page number. This may cause many
  19989. chapters to be laid out in order to calculate the number of
  19990. pages within those chapters.
  19991. """
  19992. return _mupdf.FzDocument_fz_page_number_from_location(self, loc)
  19993. def fz_previous_page(self, loc):
  19994. r"""
  19995. Class-aware wrapper for `::fz_previous_page()`.
  19996. Function to get the location of the previous page (allowing for
  19997. the end of chapters etc). If already at the start of the
  19998. document, returns the current page.
  19999. """
  20000. return _mupdf.FzDocument_fz_previous_page(self, loc)
  20001. def fz_process_opened_pages(self, process_openend_page, state):
  20002. r"""
  20003. Class-aware wrapper for `::fz_process_opened_pages()`.
  20004. Iterates over all opened pages of the document, calling the
  20005. provided callback for each page for processing. If the callback
  20006. returns non-NULL then the iteration stops and that value is returned
  20007. to the called of fz_process_opened_pages().
  20008. The state pointer provided to fz_process_opened_pages() is
  20009. passed on to the callback but is owned by the caller.
  20010. Returns the first non-NULL value returned by the callback,
  20011. or NULL if the callback returned NULL for all opened pages.
  20012. """
  20013. return _mupdf.FzDocument_fz_process_opened_pages(self, process_openend_page, state)
  20014. def fz_resolve_link(self, uri, xp, yp):
  20015. r"""
  20016. Class-aware wrapper for `::fz_resolve_link()`.
  20017. This method has out-params. Python/C# wrappers look like:
  20018. `fz_resolve_link(const char *uri)` => `(fz_location, float xp, float yp)`
  20019. Resolve an internal link to a page number.
  20020. xp, yp: Pointer to store coordinate of destination on the page.
  20021. Returns (-1,-1) if the URI cannot be resolved.
  20022. """
  20023. return _mupdf.FzDocument_fz_resolve_link(self, uri, xp, yp)
  20024. def fz_run_document_structure(self, dev, cookie):
  20025. r"""
  20026. Class-aware wrapper for `::fz_run_document_structure()`.
  20027. Run the document structure through a device.
  20028. doc: Document in question.
  20029. dev: Device obtained from fz_new_*_device.
  20030. cookie: Communication mechanism between caller and library.
  20031. Intended for multi-threaded applications, while
  20032. single-threaded applications set cookie to NULL. The
  20033. caller may abort an ongoing rendering of a page. Cookie also
  20034. communicates progress information back to the caller. The
  20035. fields inside cookie are continually updated while the page is
  20036. rendering.
  20037. """
  20038. return _mupdf.FzDocument_fz_run_document_structure(self, dev, cookie)
  20039. def fz_save_accelerator(self, accel):
  20040. r"""
  20041. Class-aware wrapper for `::fz_save_accelerator()`.
  20042. Save accelerator data for the document to a given file.
  20043. """
  20044. return _mupdf.FzDocument_fz_save_accelerator(self, accel)
  20045. def fz_search_chapter_page_number(self, chapter, page, needle, hit_mark, hit_bbox, hit_max):
  20046. r"""
  20047. Class-aware wrapper for `::fz_search_chapter_page_number()`.
  20048. This method has out-params. Python/C# wrappers look like:
  20049. `fz_search_chapter_page_number(int chapter, int page, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  20050. """
  20051. return _mupdf.FzDocument_fz_search_chapter_page_number(self, chapter, page, needle, hit_mark, hit_bbox, hit_max)
  20052. def fz_search_chapter_page_number_cb(self, chapter, page, needle, cb, opaque):
  20053. r"""Class-aware wrapper for `::fz_search_chapter_page_number_cb()`."""
  20054. return _mupdf.FzDocument_fz_search_chapter_page_number_cb(self, chapter, page, needle, cb, opaque)
  20055. def fz_search_page2(self, number, needle, hit_max):
  20056. r"""
  20057. Class-aware wrapper for `::fz_search_page2()`.
  20058. C++ alternative to fz_search_page() that returns information in a std::vector.
  20059. """
  20060. return _mupdf.FzDocument_fz_search_page2(self, number, needle, hit_max)
  20061. def fz_search_page_number(self, number, needle, hit_mark, hit_bbox, hit_max):
  20062. r"""
  20063. Class-aware wrapper for `::fz_search_page_number()`.
  20064. This method has out-params. Python/C# wrappers look like:
  20065. `fz_search_page_number(int number, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  20066. """
  20067. return _mupdf.FzDocument_fz_search_page_number(self, number, needle, hit_mark, hit_bbox, hit_max)
  20068. def fz_search_page_number_cb(self, number, needle, cb, opaque):
  20069. r"""Class-aware wrapper for `::fz_search_page_number_cb()`."""
  20070. return _mupdf.FzDocument_fz_search_page_number_cb(self, number, needle, cb, opaque)
  20071. def fz_set_metadata(self, key, value):
  20072. r"""Class-aware wrapper for `::fz_set_metadata()`."""
  20073. return _mupdf.FzDocument_fz_set_metadata(self, key, value)
  20074. def pdf_count_pages_imp(self, chapter):
  20075. r"""Class-aware wrapper for `::pdf_count_pages_imp()`."""
  20076. return _mupdf.FzDocument_pdf_count_pages_imp(self, chapter)
  20077. def pdf_document_from_fz_document(self):
  20078. r"""Class-aware wrapper for `::pdf_document_from_fz_document()`."""
  20079. return _mupdf.FzDocument_pdf_document_from_fz_document(self)
  20080. def pdf_load_page_imp(self, chapter, number):
  20081. r"""Class-aware wrapper for `::pdf_load_page_imp()`."""
  20082. return _mupdf.FzDocument_pdf_load_page_imp(self, chapter, number)
  20083. def pdf_page_label_imp(self, chapter, page, buf, size):
  20084. r"""Class-aware wrapper for `::pdf_page_label_imp()`."""
  20085. return _mupdf.FzDocument_pdf_page_label_imp(self, chapter, page, buf, size)
  20086. def pdf_specifics(self):
  20087. r"""Class-aware wrapper for `::pdf_specifics()`."""
  20088. return _mupdf.FzDocument_pdf_specifics(self)
  20089. def __init__(self, *args):
  20090. r"""
  20091. *Overload 1:*
  20092. == Constructors. Constructor using `fz_open_accelerated_document()`.
  20093. Open a document file and read its basic structure so pages and
  20094. objects can be located. MuPDF will try to repair broken
  20095. documents (without actually changing the file contents).
  20096. The returned fz_document is used when calling most other
  20097. document related functions.
  20098. filename: a path to a file as it would be given to open(2).
  20099. |
  20100. *Overload 2:*
  20101. Constructor using `fz_open_accelerated_document_with_stream()`.
  20102. Open a document using the specified stream object rather than
  20103. opening a file on disk.
  20104. magic: a string used to detect document type; either a file name
  20105. or mime-type.
  20106. stream: a stream of the document contents.
  20107. accel: NULL, or a stream of the 'accelerator' contents for this document.
  20108. NOTE: The caller retains ownership of 'stream' and 'accel' - the document will
  20109. take its own references if required.
  20110. |
  20111. *Overload 3:*
  20112. Constructor using `fz_open_accelerated_document_with_stream_and_dir()`.
  20113. Open a document using the specified stream object rather than
  20114. opening a file on disk.
  20115. magic: a string used to detect document type; either a file name
  20116. or mime-type.
  20117. stream: a stream of the document contents.
  20118. accel: NULL, or a stream of the 'accelerator' contents for this document.
  20119. dir: NULL, or the 'directory context' for the stream contents.
  20120. NOTE: The caller retains ownership of 'stream', 'accel' and 'dir' - the document will
  20121. take its own references if required.
  20122. |
  20123. *Overload 4:*
  20124. Constructor using `fz_open_document()`.
  20125. Open a document file and read its basic structure so pages and
  20126. objects can be located. MuPDF will try to repair broken
  20127. documents (without actually changing the file contents).
  20128. The returned fz_document is used when calling most other
  20129. document related functions.
  20130. filename: a path to a file as it would be given to open(2).
  20131. |
  20132. *Overload 5:*
  20133. Constructor using `fz_open_document_with_buffer()`.
  20134. Open a document using a buffer rather than opening a file on disk.
  20135. |
  20136. *Overload 6:*
  20137. Constructor using `fz_open_document_with_stream()`.
  20138. Open a document using the specified stream object rather than
  20139. opening a file on disk.
  20140. magic: a string used to detect document type; either a file name
  20141. or mime-type.
  20142. stream: a stream representing the contents of the document file.
  20143. NOTE: The caller retains ownership of 'stream' - the document will take its
  20144. own reference if required.
  20145. |
  20146. *Overload 7:*
  20147. Constructor using `fz_open_document_with_stream_and_dir()`.
  20148. Open a document using the specified stream object rather than
  20149. opening a file on disk.
  20150. magic: a string used to detect document type; either a file name
  20151. or mime-type.
  20152. stream: a stream representing the contents of the document file.
  20153. dir: a 'directory context' for those filetypes that need it.
  20154. NOTE: The caller retains ownership of 'stream' and 'dir' - the document will
  20155. take its own references if required.
  20156. |
  20157. *Overload 8:*
  20158. Returns a FzDocument for pdfdocument.m_internal.super.
  20159. |
  20160. *Overload 9:*
  20161. Copy constructor using `fz_keep_document()`.
  20162. |
  20163. *Overload 10:*
  20164. Constructor using raw copy of pre-existing `::fz_document`.
  20165. |
  20166. *Overload 11:*
  20167. Constructor using raw copy of pre-existing `::fz_document`.
  20168. """
  20169. _mupdf.FzDocument_swiginit(self, _mupdf.new_FzDocument(*args))
  20170. __swig_destroy__ = _mupdf.delete_FzDocument
  20171. def m_internal_value(self):
  20172. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20173. return _mupdf.FzDocument_m_internal_value(self)
  20174. def __nonzero__(self):
  20175. return _mupdf.FzDocument___nonzero__(self)
  20176. __bool__ = __nonzero__
  20177. m_internal = property(_mupdf.FzDocument_m_internal_get, _mupdf.FzDocument_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20178. s_num_instances = property(_mupdf.FzDocument_s_num_instances_get, _mupdf.FzDocument_s_num_instances_set)
  20179. # Register FzDocument in _mupdf:
  20180. _mupdf.FzDocument_swigregister(FzDocument)
  20181. class FzDocumentHandler(object):
  20182. r"""Wrapper class for struct `fz_document_handler`. Not copyable or assignable."""
  20183. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20184. __repr__ = _swig_repr
  20185. def fz_document_handler_open(self, stream, accel, dir, recognize_state):
  20186. r"""
  20187. Class-aware wrapper for `::fz_document_handler_open()`. Helper for calling `fz_document_handler::open` function pointer via
  20188. Swig from Python/C#.
  20189. """
  20190. return _mupdf.FzDocumentHandler_fz_document_handler_open(self, stream, accel, dir, recognize_state)
  20191. def fz_document_handler_recognize(self, magic):
  20192. r"""
  20193. Class-aware wrapper for `::fz_document_handler_recognize()`. Helper for calling a `fz_document_handler::recognize` function
  20194. pointer via Swig from Python/C#.
  20195. """
  20196. return _mupdf.FzDocumentHandler_fz_document_handler_recognize(self, magic)
  20197. def fz_register_document_handler(self):
  20198. r"""
  20199. Class-aware wrapper for `::fz_register_document_handler()`.
  20200. Register a handler for a document type.
  20201. handler: The handler to register. This must live on for the duration of the
  20202. use of this handler. It will be passed back to the handler for calls so
  20203. the caller can use it to retrieve state.
  20204. """
  20205. return _mupdf.FzDocumentHandler_fz_register_document_handler(self)
  20206. def __init__(self, *args):
  20207. r"""
  20208. *Overload 1:*
  20209. Default constructor, sets `m_internal` to null.
  20210. |
  20211. *Overload 2:*
  20212. Constructor using raw copy of pre-existing `::fz_document_handler`.
  20213. """
  20214. _mupdf.FzDocumentHandler_swiginit(self, _mupdf.new_FzDocumentHandler(*args))
  20215. __swig_destroy__ = _mupdf.delete_FzDocumentHandler
  20216. def m_internal_value(self):
  20217. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20218. return _mupdf.FzDocumentHandler_m_internal_value(self)
  20219. def __nonzero__(self):
  20220. return _mupdf.FzDocumentHandler___nonzero__(self)
  20221. __bool__ = __nonzero__
  20222. m_internal = property(_mupdf.FzDocumentHandler_m_internal_get, _mupdf.FzDocumentHandler_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20223. s_num_instances = property(_mupdf.FzDocumentHandler_s_num_instances_get, _mupdf.FzDocumentHandler_s_num_instances_set)
  20224. # Register FzDocumentHandler in _mupdf:
  20225. _mupdf.FzDocumentHandler_swigregister(FzDocumentHandler)
  20226. class FzDocumentHandlerContext(object):
  20227. r"""Wrapper class for struct `fz_document_handler_context`. Not copyable or assignable."""
  20228. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20229. __repr__ = _swig_repr
  20230. def __init__(self, *args):
  20231. r"""
  20232. *Overload 1:*
  20233. Default constructor, sets `m_internal` to null.
  20234. |
  20235. *Overload 2:*
  20236. Constructor using raw copy of pre-existing `::fz_document_handler_context`.
  20237. """
  20238. _mupdf.FzDocumentHandlerContext_swiginit(self, _mupdf.new_FzDocumentHandlerContext(*args))
  20239. __swig_destroy__ = _mupdf.delete_FzDocumentHandlerContext
  20240. def m_internal_value(self):
  20241. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20242. return _mupdf.FzDocumentHandlerContext_m_internal_value(self)
  20243. def __nonzero__(self):
  20244. return _mupdf.FzDocumentHandlerContext___nonzero__(self)
  20245. __bool__ = __nonzero__
  20246. m_internal = property(_mupdf.FzDocumentHandlerContext_m_internal_get, _mupdf.FzDocumentHandlerContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20247. s_num_instances = property(_mupdf.FzDocumentHandlerContext_s_num_instances_get, _mupdf.FzDocumentHandlerContext_s_num_instances_set)
  20248. # Register FzDocumentHandlerContext in _mupdf:
  20249. _mupdf.FzDocumentHandlerContext_swigregister(FzDocumentHandlerContext)
  20250. class FzDocumentWriter(object):
  20251. r"""Wrapper class for struct `fz_document_writer`. Not copyable or assignable."""
  20252. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20253. __repr__ = _swig_repr
  20254. PathType_CBZ = _mupdf.FzDocumentWriter_PathType_CBZ
  20255. PathType_DOCX = _mupdf.FzDocumentWriter_PathType_DOCX
  20256. PathType_ODT = _mupdf.FzDocumentWriter_PathType_ODT
  20257. PathType_PAM_PIXMAP = _mupdf.FzDocumentWriter_PathType_PAM_PIXMAP
  20258. PathType_PBM_PIXMAP = _mupdf.FzDocumentWriter_PathType_PBM_PIXMAP
  20259. PathType_PCL = _mupdf.FzDocumentWriter_PathType_PCL
  20260. PathType_PCLM = _mupdf.FzDocumentWriter_PathType_PCLM
  20261. PathType_PDF = _mupdf.FzDocumentWriter_PathType_PDF
  20262. PathType_PDFOCR = _mupdf.FzDocumentWriter_PathType_PDFOCR
  20263. PathType_PGM_PIXMAP = _mupdf.FzDocumentWriter_PathType_PGM_PIXMAP
  20264. PathType_PKM_PIXMAP = _mupdf.FzDocumentWriter_PathType_PKM_PIXMAP
  20265. PathType_PNG_PIXMAP = _mupdf.FzDocumentWriter_PathType_PNG_PIXMAP
  20266. PathType_PNM_PIXMAP = _mupdf.FzDocumentWriter_PathType_PNM_PIXMAP
  20267. PathType_PPM_PIXMAP = _mupdf.FzDocumentWriter_PathType_PPM_PIXMAP
  20268. PathType_PS = _mupdf.FzDocumentWriter_PathType_PS
  20269. PathType_PWG = _mupdf.FzDocumentWriter_PathType_PWG
  20270. PathType_SVG = _mupdf.FzDocumentWriter_PathType_SVG
  20271. OutputType_CBZ = _mupdf.FzDocumentWriter_OutputType_CBZ
  20272. OutputType_DOCX = _mupdf.FzDocumentWriter_OutputType_DOCX
  20273. OutputType_ODT = _mupdf.FzDocumentWriter_OutputType_ODT
  20274. OutputType_PCL = _mupdf.FzDocumentWriter_OutputType_PCL
  20275. OutputType_PCLM = _mupdf.FzDocumentWriter_OutputType_PCLM
  20276. OutputType_PDF = _mupdf.FzDocumentWriter_OutputType_PDF
  20277. OutputType_PDFOCR = _mupdf.FzDocumentWriter_OutputType_PDFOCR
  20278. OutputType_PS = _mupdf.FzDocumentWriter_OutputType_PS
  20279. OutputType_PWG = _mupdf.FzDocumentWriter_OutputType_PWG
  20280. FormatPathType_DOCUMENT = _mupdf.FzDocumentWriter_FormatPathType_DOCUMENT
  20281. FormatPathType_TEXT = _mupdf.FzDocumentWriter_FormatPathType_TEXT
  20282. def fz_begin_page(self, mediabox):
  20283. r"""
  20284. Class-aware wrapper for `::fz_begin_page()`.
  20285. Called to start the process of writing a page to
  20286. a document.
  20287. mediabox: page size rectangle in points.
  20288. Returns a borrowed fz_device to write page contents to. This
  20289. should be kept if required, and only dropped if it was kept.
  20290. """
  20291. return _mupdf.FzDocumentWriter_fz_begin_page(self, mediabox)
  20292. def fz_close_document_writer(self):
  20293. r"""
  20294. Class-aware wrapper for `::fz_close_document_writer()`.
  20295. Called to end the process of writing
  20296. pages to a document.
  20297. This writes any file level trailers required. After this
  20298. completes successfully the file is up to date and complete.
  20299. """
  20300. return _mupdf.FzDocumentWriter_fz_close_document_writer(self)
  20301. def fz_end_page(self):
  20302. r"""
  20303. Class-aware wrapper for `::fz_end_page()`.
  20304. Called to end the process of writing a page to a
  20305. document.
  20306. """
  20307. return _mupdf.FzDocumentWriter_fz_end_page(self)
  20308. def fz_pdfocr_writer_set_progress(self, progress, arg_2):
  20309. r"""Class-aware wrapper for `::fz_pdfocr_writer_set_progress()`."""
  20310. return _mupdf.FzDocumentWriter_fz_pdfocr_writer_set_progress(self, progress, arg_2)
  20311. def fz_write_document(self, doc):
  20312. r"""
  20313. Class-aware wrapper for `::fz_write_document()`.
  20314. Convenience function to feed all the pages of a document to
  20315. fz_begin_page/fz_run_page/fz_end_page.
  20316. """
  20317. return _mupdf.FzDocumentWriter_fz_write_document(self, doc)
  20318. def fz_write_stabilized_story(self, user_css, em, contentfn, contentfn_ref, rectfn, rectfn_ref, pagefn, pagefn_ref, dir):
  20319. r"""Class-aware wrapper for `::fz_write_stabilized_story()`."""
  20320. return _mupdf.FzDocumentWriter_fz_write_stabilized_story(self, user_css, em, contentfn, contentfn_ref, rectfn, rectfn_ref, pagefn, pagefn_ref, dir)
  20321. def fz_write_story(self, story, rectfn, rectfn_ref, positionfn, positionfn_ref, pagefn, pagefn_ref):
  20322. r"""Class-aware wrapper for `::fz_write_story()`."""
  20323. return _mupdf.FzDocumentWriter_fz_write_story(self, story, rectfn, rectfn_ref, positionfn, positionfn_ref, pagefn, pagefn_ref)
  20324. def __init__(self, *args):
  20325. r"""
  20326. *Overload 1:*
  20327. == Constructors. Constructor using `fz_new_csv_writer()`.
  20328. |
  20329. *Overload 2:*
  20330. Constructor using `fz_new_csv_writer_with_output()`. Constructor using `fz_new_document_writer_of_size()`.
  20331. Internal function to allocate a
  20332. block for a derived document_writer structure, with the base
  20333. structure's function pointers populated correctly, and the extra
  20334. space zero initialised.
  20335. |
  20336. *Overload 3:*
  20337. Constructor using `fz_new_document_writer_with_buffer()`.
  20338. |
  20339. *Overload 4:*
  20340. Constructor using `fz_new_jpeg_pixmap_writer()`. Constructor using `fz_new_pixmap_writer()`.
  20341. |
  20342. *Overload 5:*
  20343. Constructor using `fz_new_svg_writer_with_output()`.
  20344. |
  20345. *Overload 6:*
  20346. Constructor using one of:
  20347. fz_new_cbz_writer()
  20348. fz_new_docx_writer()
  20349. fz_new_odt_writer()
  20350. fz_new_pam_pixmap_writer()
  20351. fz_new_pbm_pixmap_writer()
  20352. fz_new_pcl_writer()
  20353. fz_new_pclm_writer()
  20354. fz_new_pdf_writer()
  20355. fz_new_pdfocr_writer()
  20356. fz_new_pgm_pixmap_writer()
  20357. fz_new_pkm_pixmap_writer()
  20358. fz_new_png_pixmap_writer()
  20359. fz_new_pnm_pixmap_writer()
  20360. fz_new_ppm_pixmap_writer()
  20361. fz_new_ps_writer()
  20362. fz_new_pwg_writer()
  20363. fz_new_svg_writer()
  20364. |
  20365. *Overload 7:*
  20366. Constructor using one of:
  20367. fz_new_cbz_writer_with_output()
  20368. fz_new_docx_writer_with_output()
  20369. fz_new_odt_writer_with_output()
  20370. fz_new_pcl_writer_with_output()
  20371. fz_new_pclm_writer_with_output()
  20372. fz_new_pdf_writer_with_output()
  20373. fz_new_pdfocr_writer_with_output()
  20374. fz_new_ps_writer_with_output()
  20375. fz_new_pwg_writer_with_output()
  20376. This constructor takes ownership of <out> -
  20377. out.m_internal is set to NULL after this constructor
  20378. returns so <out> must not be used again.
  20379. |
  20380. *Overload 8:*
  20381. Constructor using one of:
  20382. fz_new_document_writer()
  20383. fz_new_text_writer()
  20384. |
  20385. *Overload 9:*
  20386. Constructor using fz_new_document_writer_with_output().
  20387. This constructor takes ownership of <out> -
  20388. out.m_internal is set to NULL after this constructor
  20389. returns so <out> must not be used again.
  20390. |
  20391. *Overload 10:*
  20392. Constructor using fz_new_text_writer_with_output().
  20393. This constructor takes ownership of <out> -
  20394. out.m_internal is set to NULL after this constructor
  20395. returns so <out> must not be used again.
  20396. |
  20397. *Overload 11:*
  20398. Default constructor, sets `m_internal` to null.
  20399. |
  20400. *Overload 12:*
  20401. Constructor using raw copy of pre-existing `::fz_document_writer`.
  20402. """
  20403. _mupdf.FzDocumentWriter_swiginit(self, _mupdf.new_FzDocumentWriter(*args))
  20404. __swig_destroy__ = _mupdf.delete_FzDocumentWriter
  20405. def m_internal_value(self):
  20406. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20407. return _mupdf.FzDocumentWriter_m_internal_value(self)
  20408. def __nonzero__(self):
  20409. return _mupdf.FzDocumentWriter___nonzero__(self)
  20410. __bool__ = __nonzero__
  20411. m_internal = property(_mupdf.FzDocumentWriter_m_internal_get, _mupdf.FzDocumentWriter_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20412. s_num_instances = property(_mupdf.FzDocumentWriter_s_num_instances_get, _mupdf.FzDocumentWriter_s_num_instances_set)
  20413. # Register FzDocumentWriter in _mupdf:
  20414. _mupdf.FzDocumentWriter_swigregister(FzDocumentWriter)
  20415. class FzDrawOptions(object):
  20416. r"""
  20417. Wrapper class for struct `fz_draw_options`. Not copyable or assignable.
  20418. struct fz_draw_options: Options for creating a pixmap and draw
  20419. device.
  20420. """
  20421. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20422. __repr__ = _swig_repr
  20423. def __init__(self, *args):
  20424. r"""
  20425. *Overload 1:*
  20426. == Constructors. Constructor using `fz_parse_draw_options()`.
  20427. Parse draw device options from a comma separated key-value string.
  20428. |
  20429. *Overload 2:*
  20430. Default constructor, sets each member to default value.
  20431. |
  20432. *Overload 3:*
  20433. Constructor using raw copy of pre-existing `::fz_draw_options`.
  20434. |
  20435. *Overload 4:*
  20436. Constructor using raw copy of pre-existing `::fz_draw_options`.
  20437. """
  20438. _mupdf.FzDrawOptions_swiginit(self, _mupdf.new_FzDrawOptions(*args))
  20439. def internal(self, *args):
  20440. r"""
  20441. *Overload 1:*
  20442. Access as underlying struct.
  20443. |
  20444. *Overload 2:*
  20445. Access as underlying struct.
  20446. """
  20447. return _mupdf.FzDrawOptions_internal(self, *args)
  20448. __swig_destroy__ = _mupdf.delete_FzDrawOptions
  20449. rotate = property(_mupdf.FzDrawOptions_rotate_get, _mupdf.FzDrawOptions_rotate_set)
  20450. x_resolution = property(_mupdf.FzDrawOptions_x_resolution_get, _mupdf.FzDrawOptions_x_resolution_set)
  20451. y_resolution = property(_mupdf.FzDrawOptions_y_resolution_get, _mupdf.FzDrawOptions_y_resolution_set)
  20452. width = property(_mupdf.FzDrawOptions_width_get, _mupdf.FzDrawOptions_width_set)
  20453. height = property(_mupdf.FzDrawOptions_height_get, _mupdf.FzDrawOptions_height_set)
  20454. colorspace = property(_mupdf.FzDrawOptions_colorspace_get, _mupdf.FzDrawOptions_colorspace_set)
  20455. alpha = property(_mupdf.FzDrawOptions_alpha_get, _mupdf.FzDrawOptions_alpha_set)
  20456. graphics = property(_mupdf.FzDrawOptions_graphics_get, _mupdf.FzDrawOptions_graphics_set)
  20457. text = property(_mupdf.FzDrawOptions_text_get, _mupdf.FzDrawOptions_text_set)
  20458. s_num_instances = property(_mupdf.FzDrawOptions_s_num_instances_get, _mupdf.FzDrawOptions_s_num_instances_set)
  20459. def to_string(self):
  20460. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  20461. return _mupdf.FzDrawOptions_to_string(self)
  20462. def __eq__(self, rhs):
  20463. r"""Comparison method."""
  20464. return _mupdf.FzDrawOptions___eq__(self, rhs)
  20465. def __ne__(self, rhs):
  20466. r"""Comparison method."""
  20467. return _mupdf.FzDrawOptions___ne__(self, rhs)
  20468. # Register FzDrawOptions in _mupdf:
  20469. _mupdf.FzDrawOptions_swigregister(FzDrawOptions)
  20470. class FzErrorContext(object):
  20471. r"""Wrapper class for struct `fz_error_context`. Not copyable or assignable."""
  20472. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20473. __repr__ = _swig_repr
  20474. def __init__(self, *args):
  20475. r"""
  20476. *Overload 1:*
  20477. Default constructor, sets `m_internal` to null.
  20478. |
  20479. *Overload 2:*
  20480. Constructor using raw copy of pre-existing `::fz_error_context`.
  20481. """
  20482. _mupdf.FzErrorContext_swiginit(self, _mupdf.new_FzErrorContext(*args))
  20483. __swig_destroy__ = _mupdf.delete_FzErrorContext
  20484. def m_internal_value(self):
  20485. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20486. return _mupdf.FzErrorContext_m_internal_value(self)
  20487. def __nonzero__(self):
  20488. return _mupdf.FzErrorContext___nonzero__(self)
  20489. __bool__ = __nonzero__
  20490. m_internal = property(_mupdf.FzErrorContext_m_internal_get, _mupdf.FzErrorContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20491. s_num_instances = property(_mupdf.FzErrorContext_s_num_instances_get, _mupdf.FzErrorContext_s_num_instances_set)
  20492. # Register FzErrorContext in _mupdf:
  20493. _mupdf.FzErrorContext_swigregister(FzErrorContext)
  20494. class FzErrorStackSlot(object):
  20495. r"""Wrapper class for struct `fz_error_stack_slot`. Not copyable or assignable."""
  20496. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20497. __repr__ = _swig_repr
  20498. def __init__(self, *args):
  20499. r"""
  20500. *Overload 1:*
  20501. Default constructor, sets `m_internal` to null.
  20502. |
  20503. *Overload 2:*
  20504. Constructor using raw copy of pre-existing `::fz_error_stack_slot`.
  20505. """
  20506. _mupdf.FzErrorStackSlot_swiginit(self, _mupdf.new_FzErrorStackSlot(*args))
  20507. __swig_destroy__ = _mupdf.delete_FzErrorStackSlot
  20508. def m_internal_value(self):
  20509. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20510. return _mupdf.FzErrorStackSlot_m_internal_value(self)
  20511. def __nonzero__(self):
  20512. return _mupdf.FzErrorStackSlot___nonzero__(self)
  20513. __bool__ = __nonzero__
  20514. m_internal = property(_mupdf.FzErrorStackSlot_m_internal_get, _mupdf.FzErrorStackSlot_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20515. s_num_instances = property(_mupdf.FzErrorStackSlot_s_num_instances_get, _mupdf.FzErrorStackSlot_s_num_instances_set)
  20516. # Register FzErrorStackSlot in _mupdf:
  20517. _mupdf.FzErrorStackSlot_swigregister(FzErrorStackSlot)
  20518. class FzFont(object):
  20519. r"""
  20520. Wrapper class for struct `fz_font`.
  20521. An abstract font handle.
  20522. """
  20523. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20524. __repr__ = _swig_repr
  20525. def fz_advance_glyph(self, glyph, wmode):
  20526. r"""
  20527. Class-aware wrapper for `::fz_advance_glyph()`.
  20528. Return the advance for a given glyph.
  20529. font: The font to look for the glyph in.
  20530. glyph: The glyph to find the advance for.
  20531. wmode: 1 for vertical mode, 0 for horizontal.
  20532. Returns the advance for the glyph.
  20533. """
  20534. return _mupdf.FzFont_fz_advance_glyph(self, glyph, wmode)
  20535. def fz_bound_glyph(self, gid, trm):
  20536. r"""
  20537. Class-aware wrapper for `::fz_bound_glyph()`.
  20538. Return a bbox for a given glyph in a font.
  20539. font: The font to look for the glyph in.
  20540. gid: The glyph to bound.
  20541. trm: The matrix to apply to the glyph before bounding.
  20542. Returns rectangle by value containing the bounds of the given
  20543. glyph.
  20544. """
  20545. return _mupdf.FzFont_fz_bound_glyph(self, gid, trm)
  20546. def fz_calculate_font_ascender_descender(self):
  20547. r"""
  20548. Class-aware wrapper for `::fz_calculate_font_ascender_descender()`.
  20549. Ensure that a font has its ascender/descender values calculated
  20550. from the actual bbox of the glyphs.
  20551. Note, that we combine the declared values from the font (or the
  20552. default values if those are not present) with the actual bbox to
  20553. get the final result. So this can only cause ascender/descender
  20554. to move further apart!
  20555. """
  20556. return _mupdf.FzFont_fz_calculate_font_ascender_descender(self)
  20557. def fz_decouple_type3_font(self, t3doc):
  20558. r"""Class-aware wrapper for `::fz_decouple_type3_font()`."""
  20559. return _mupdf.FzFont_fz_decouple_type3_font(self, t3doc)
  20560. def fz_encode_character(self, unicode):
  20561. r"""
  20562. Class-aware wrapper for `::fz_encode_character()`.
  20563. Find the glyph id for a given unicode
  20564. character within a font.
  20565. font: The font to look for the unicode character in.
  20566. unicode: The unicode character to encode.
  20567. Returns the glyph id for the given unicode value, or 0 if
  20568. unknown.
  20569. """
  20570. return _mupdf.FzFont_fz_encode_character(self, unicode)
  20571. def fz_encode_character_by_glyph_name(self, glyphname):
  20572. r"""
  20573. Class-aware wrapper for `::fz_encode_character_by_glyph_name()`.
  20574. Encode character.
  20575. Either by direct lookup of glyphname within a font, or, failing
  20576. that, by mapping glyphname to unicode and thence to the glyph
  20577. index within the given font.
  20578. Returns zero for type3 fonts.
  20579. """
  20580. return _mupdf.FzFont_fz_encode_character_by_glyph_name(self, glyphname)
  20581. def fz_encode_character_sc(self, unicode):
  20582. r"""
  20583. Class-aware wrapper for `::fz_encode_character_sc()`.
  20584. Encode character, preferring small-caps variant if available.
  20585. font: The font to look for the unicode character in.
  20586. unicode: The unicode character to encode.
  20587. Returns the glyph id for the given unicode value, or 0 if
  20588. unknown.
  20589. """
  20590. return _mupdf.FzFont_fz_encode_character_sc(self, unicode)
  20591. def fz_encode_character_with_fallback(self, unicode, script, language, out_font):
  20592. r"""
  20593. Class-aware wrapper for `::fz_encode_character_with_fallback()`.
  20594. This method has out-params. Python/C# wrappers look like:
  20595. `fz_encode_character_with_fallback(int unicode, int script, int language, ::fz_font **out_font)` => `(int)`
  20596. Find the glyph id for
  20597. a given unicode character within a font, falling back to
  20598. an alternative if not found.
  20599. font: The font to look for the unicode character in.
  20600. unicode: The unicode character to encode.
  20601. script: The script in use.
  20602. language: The language in use.
  20603. out_font: The font handle in which the given glyph represents
  20604. the requested unicode character. The caller does not own the
  20605. reference it is passed, so should call fz_keep_font if it is
  20606. not simply to be used immediately.
  20607. Returns the glyph id for the given unicode value in the supplied
  20608. font (and sets *out_font to font) if it is present. Otherwise
  20609. an alternative fallback font (based on script/language) is
  20610. searched for. If the glyph is found therein, *out_font is set
  20611. to this reference, and the glyph reference is returned. If it
  20612. cannot be found anywhere, the function returns 0.
  20613. """
  20614. return _mupdf.FzFont_fz_encode_character_with_fallback(self, unicode, script, language, out_font)
  20615. def fz_enumerate_font_cmap(self, cb, opaque):
  20616. r"""
  20617. Class-aware wrapper for `::fz_enumerate_font_cmap()`.
  20618. Enumerate a cmap using a callback.
  20619. """
  20620. return _mupdf.FzFont_fz_enumerate_font_cmap(self, cb, opaque)
  20621. def fz_enumerate_font_cmap2(self):
  20622. r"""Class-aware wrapper for `::fz_enumerate_font_cmap2()`. SWIG-friendly wrapper for fz_enumerate_font_cmap()."""
  20623. return _mupdf.FzFont_fz_enumerate_font_cmap2(self)
  20624. def fz_extract_ttf_from_ttc(self):
  20625. r"""Class-aware wrapper for `::fz_extract_ttf_from_ttc()`."""
  20626. return _mupdf.FzFont_fz_extract_ttf_from_ttc(self)
  20627. def fz_font_ascender(self):
  20628. r"""
  20629. Class-aware wrapper for `::fz_font_ascender()`.
  20630. Retrieve font ascender in ems.
  20631. """
  20632. return _mupdf.FzFont_fz_font_ascender(self)
  20633. def fz_font_bbox(self):
  20634. r"""
  20635. Class-aware wrapper for `::fz_font_bbox()`.
  20636. Retrieve the font bbox.
  20637. font: The font to query.
  20638. Returns the font bbox by value; it is valid only if
  20639. fz_font_flags(font)->invalid_bbox is zero.
  20640. """
  20641. return _mupdf.FzFont_fz_font_bbox(self)
  20642. def fz_font_descender(self):
  20643. r"""
  20644. Class-aware wrapper for `::fz_font_descender()`.
  20645. Retrieve font descender in ems.
  20646. """
  20647. return _mupdf.FzFont_fz_font_descender(self)
  20648. def fz_font_digest(self, digest):
  20649. r"""
  20650. Class-aware wrapper for `::fz_font_digest()`.
  20651. Retrieve the MD5 digest for the font's data.
  20652. """
  20653. return _mupdf.FzFont_fz_font_digest(self, digest)
  20654. def fz_font_ft_face(self):
  20655. r"""
  20656. Class-aware wrapper for `::fz_font_ft_face()`.
  20657. Retrieve the FT_Face handle
  20658. for the font.
  20659. font: The font to query
  20660. Returns the FT_Face handle for the font, or NULL
  20661. if not a freetype handled font. (Cast to void *
  20662. to avoid nasty header exposure).
  20663. """
  20664. return _mupdf.FzFont_fz_font_ft_face(self)
  20665. def fz_font_is_bold(self):
  20666. r"""
  20667. Class-aware wrapper for `::fz_font_is_bold()`.
  20668. Query whether the font flags say that this font is bold.
  20669. """
  20670. return _mupdf.FzFont_fz_font_is_bold(self)
  20671. def fz_font_is_italic(self):
  20672. r"""
  20673. Class-aware wrapper for `::fz_font_is_italic()`.
  20674. Query whether the font flags say that this font is italic.
  20675. """
  20676. return _mupdf.FzFont_fz_font_is_italic(self)
  20677. def fz_font_is_monospaced(self):
  20678. r"""
  20679. Class-aware wrapper for `::fz_font_is_monospaced()`.
  20680. Query whether the font flags say that this font is monospaced.
  20681. """
  20682. return _mupdf.FzFont_fz_font_is_monospaced(self)
  20683. def fz_font_is_serif(self):
  20684. r"""
  20685. Class-aware wrapper for `::fz_font_is_serif()`.
  20686. Query whether the font flags say that this font is serif.
  20687. """
  20688. return _mupdf.FzFont_fz_font_is_serif(self)
  20689. def fz_font_name(self):
  20690. r"""
  20691. Class-aware wrapper for `::fz_font_name()`.
  20692. Retrieve a pointer to the name of the font.
  20693. font: The font to query.
  20694. Returns a pointer to an internal copy of the font name.
  20695. Will never be NULL, but may be the empty string.
  20696. """
  20697. return _mupdf.FzFont_fz_font_name(self)
  20698. def fz_font_t3_procs(self):
  20699. r"""
  20700. Class-aware wrapper for `::fz_font_t3_procs()`.
  20701. Retrieve the Type3 procs
  20702. for a font.
  20703. font: The font to query
  20704. Returns the t3_procs pointer. Will be NULL for a
  20705. non type-3 font.
  20706. """
  20707. return _mupdf.FzFont_fz_font_t3_procs(self)
  20708. def fz_get_glyph_name(self, glyph, buf, size):
  20709. r"""
  20710. Class-aware wrapper for `::fz_get_glyph_name()`.
  20711. Find the name of a glyph
  20712. font: The font to look for the glyph in.
  20713. glyph: The glyph id to look for.
  20714. buf: Pointer to a buffer for the name to be inserted into.
  20715. size: The size of the buffer.
  20716. If a font contains a name table, then the name of the glyph
  20717. will be returned in the supplied buffer. Otherwise a name
  20718. is synthesised. The name will be truncated to fit in
  20719. the buffer.
  20720. """
  20721. return _mupdf.FzFont_fz_get_glyph_name(self, glyph, buf, size)
  20722. def fz_get_glyph_name2(self, glyph):
  20723. r"""
  20724. Class-aware wrapper for `::fz_get_glyph_name2()`.
  20725. C++ alternative to fz_get_glyph_name() that returns information in a std::string.
  20726. """
  20727. return _mupdf.FzFont_fz_get_glyph_name2(self, glyph)
  20728. def fz_glyph_cacheable(self, gid):
  20729. r"""
  20730. Class-aware wrapper for `::fz_glyph_cacheable()`.
  20731. Determine if a given glyph in a font
  20732. is cacheable. Certain glyphs in a type 3 font cannot safely
  20733. be cached, as their appearance depends on the enclosing
  20734. graphic state.
  20735. font: The font to look for the glyph in.
  20736. gif: The glyph to query.
  20737. Returns non-zero if cacheable, 0 if not.
  20738. """
  20739. return _mupdf.FzFont_fz_glyph_cacheable(self, gid)
  20740. def fz_measure_string(self, trm, s, wmode, bidi_level, markup_dir, language):
  20741. r"""
  20742. Class-aware wrapper for `::fz_measure_string()`.
  20743. Measure the advance width of a UTF8 string should it be added to a text object.
  20744. This uses the same layout algorithms as fz_show_string, and can be used
  20745. to calculate text alignment adjustments.
  20746. """
  20747. return _mupdf.FzFont_fz_measure_string(self, trm, s, wmode, bidi_level, markup_dir, language)
  20748. def fz_outline_glyph(self, gid, ctm):
  20749. r"""
  20750. Class-aware wrapper for `::fz_outline_glyph()`.
  20751. Look a glyph up from a font, and return the outline of the
  20752. glyph using the given transform.
  20753. The caller owns the returned path, and so is responsible for
  20754. ensuring that it eventually gets dropped.
  20755. """
  20756. return _mupdf.FzFont_fz_outline_glyph(self, gid, ctm)
  20757. def fz_prepare_t3_glyph(self, gid):
  20758. r"""
  20759. Class-aware wrapper for `::fz_prepare_t3_glyph()`.
  20760. Force a type3 font to cache the displaylist for a given glyph
  20761. id.
  20762. This caching can involve reading the underlying file, so must
  20763. happen ahead of time, so we aren't suddenly forced to read the
  20764. file while playing a displaylist back.
  20765. """
  20766. return _mupdf.FzFont_fz_prepare_t3_glyph(self, gid)
  20767. def fz_render_glyph_pixmap(self, gid, ctm, scissor, aa):
  20768. r"""
  20769. Class-aware wrapper for `::fz_render_glyph_pixmap()`.
  20770. Create a pixmap containing a rendered glyph.
  20771. Lookup gid from font, clip it with scissor, and rendering it
  20772. with aa bits of antialiasing into a new pixmap.
  20773. The caller takes ownership of the pixmap and so must free it.
  20774. Note: This function is no longer used for normal rendering
  20775. operations, and is kept around just because we use it in the
  20776. app. It should be considered "at risk" of removal from the API.
  20777. """
  20778. return _mupdf.FzFont_fz_render_glyph_pixmap(self, gid, ctm, scissor, aa)
  20779. def fz_run_t3_glyph(self, gid, trm, dev):
  20780. r"""
  20781. Class-aware wrapper for `::fz_run_t3_glyph()`.
  20782. Run a glyph from a Type3 font to
  20783. a given device.
  20784. font: The font to find the glyph in.
  20785. gid: The glyph to run.
  20786. trm: The transform to apply.
  20787. dev: The device to render onto.
  20788. """
  20789. return _mupdf.FzFont_fz_run_t3_glyph(self, gid, trm, dev)
  20790. def fz_set_font_bbox(self, xmin, ymin, xmax, ymax):
  20791. r"""
  20792. Class-aware wrapper for `::fz_set_font_bbox()`.
  20793. Set the font bbox.
  20794. font: The font to set the bbox for.
  20795. xmin, ymin, xmax, ymax: The bounding box.
  20796. """
  20797. return _mupdf.FzFont_fz_set_font_bbox(self, xmin, ymin, xmax, ymax)
  20798. def fz_set_font_embedding(self, embed):
  20799. r"""
  20800. Class-aware wrapper for `::fz_set_font_embedding()`.
  20801. Control whether a given font should be embedded or not when writing.
  20802. """
  20803. return _mupdf.FzFont_fz_set_font_embedding(self, embed)
  20804. def pdf_font_writing_supported(self):
  20805. r"""Class-aware wrapper for `::pdf_font_writing_supported()`."""
  20806. return _mupdf.FzFont_pdf_font_writing_supported(self)
  20807. def pdf_layout_fit_text(self, lang, str, bounds):
  20808. r"""Class-aware wrapper for `::pdf_layout_fit_text()`."""
  20809. return _mupdf.FzFont_pdf_layout_fit_text(self, lang, str, bounds)
  20810. def __init__(self, *args):
  20811. r"""
  20812. *Overload 1:*
  20813. == Constructors. Constructor using `fz_new_base14_font()`.
  20814. Create a new font from one of the built-in fonts.
  20815. |
  20816. *Overload 2:*
  20817. Constructor using `fz_new_builtin_font()`.
  20818. |
  20819. *Overload 3:*
  20820. Constructor using `fz_new_cjk_font()`.
  20821. |
  20822. *Overload 4:*
  20823. Constructor using `fz_new_font_from_buffer()`.
  20824. Create a new font from a font file in a fz_buffer.
  20825. Fonts created in this way, will be eligible for embedding by default.
  20826. name: Name of font (leave NULL to use name from font).
  20827. buffer: Buffer to load from.
  20828. index: Which font from the file to load (0 for default).
  20829. use_glyph_box: 1 if we should use the glyph bbox, 0 otherwise.
  20830. Returns new font handle, or throws exception on error.
  20831. |
  20832. *Overload 5:*
  20833. Constructor using `fz_new_font_from_file()`.
  20834. Create a new font from a font file.
  20835. Fonts created in this way, will be eligible for embedding by default.
  20836. name: Name of font (leave NULL to use name from font).
  20837. path: File path to load from.
  20838. index: Which font from the file to load (0 for default).
  20839. use_glyph_box: 1 if we should use the glyph bbox, 0 otherwise.
  20840. Returns new font handle, or throws exception on error.
  20841. |
  20842. *Overload 6:*
  20843. Constructor using `fz_new_font_from_memory()`.
  20844. Create a new font from a font file in memory.
  20845. Fonts created in this way, will be eligible for embedding by default.
  20846. name: Name of font (leave NULL to use name from font).
  20847. data: Pointer to the font file data.
  20848. len: Length of the font file data.
  20849. index: Which font from the file to load (0 for default).
  20850. use_glyph_box: 1 if we should use the glyph bbox, 0 otherwise.
  20851. Returns new font handle, or throws exception on error.
  20852. |
  20853. *Overload 7:*
  20854. Constructor using `fz_new_type3_font()`.
  20855. Create a new (empty) type3 font.
  20856. name: Name of font (or NULL).
  20857. matrix: Font matrix.
  20858. Returns a new font handle, or throws exception on
  20859. allocation failure.
  20860. |
  20861. *Overload 8:*
  20862. Copy constructor using `fz_keep_font()`.
  20863. |
  20864. *Overload 9:*
  20865. Default constructor, sets `m_internal` to null.
  20866. |
  20867. *Overload 10:*
  20868. Constructor using raw copy of pre-existing `::fz_font`.
  20869. """
  20870. _mupdf.FzFont_swiginit(self, _mupdf.new_FzFont(*args))
  20871. __swig_destroy__ = _mupdf.delete_FzFont
  20872. def m_internal_value(self):
  20873. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20874. return _mupdf.FzFont_m_internal_value(self)
  20875. def __nonzero__(self):
  20876. return _mupdf.FzFont___nonzero__(self)
  20877. __bool__ = __nonzero__
  20878. m_internal = property(_mupdf.FzFont_m_internal_get, _mupdf.FzFont_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20879. s_num_instances = property(_mupdf.FzFont_s_num_instances_get, _mupdf.FzFont_s_num_instances_set)
  20880. # Register FzFont in _mupdf:
  20881. _mupdf.FzFont_swigregister(FzFont)
  20882. class FzFontContext(object):
  20883. r"""Wrapper class for struct `fz_font_context`. Not copyable or assignable."""
  20884. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20885. __repr__ = _swig_repr
  20886. def __init__(self, *args):
  20887. r"""
  20888. *Overload 1:*
  20889. Default constructor, sets `m_internal` to null.
  20890. |
  20891. *Overload 2:*
  20892. Constructor using raw copy of pre-existing `::fz_font_context`.
  20893. """
  20894. _mupdf.FzFontContext_swiginit(self, _mupdf.new_FzFontContext(*args))
  20895. __swig_destroy__ = _mupdf.delete_FzFontContext
  20896. def m_internal_value(self):
  20897. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20898. return _mupdf.FzFontContext_m_internal_value(self)
  20899. def __nonzero__(self):
  20900. return _mupdf.FzFontContext___nonzero__(self)
  20901. __bool__ = __nonzero__
  20902. m_internal = property(_mupdf.FzFontContext_m_internal_get, _mupdf.FzFontContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20903. s_num_instances = property(_mupdf.FzFontContext_s_num_instances_get, _mupdf.FzFontContext_s_num_instances_set)
  20904. # Register FzFontContext in _mupdf:
  20905. _mupdf.FzFontContext_swigregister(FzFontContext)
  20906. class FzFontFlagsT(object):
  20907. r"""
  20908. Wrapper class for struct `fz_font_flags_t`. Not copyable or assignable.
  20909. Every fz_font carries a set of flags
  20910. within it, in a fz_font_flags_t structure.
  20911. """
  20912. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20913. __repr__ = _swig_repr
  20914. def __init__(self, *args):
  20915. r"""
  20916. *Overload 1:*
  20917. Default constructor, sets `m_internal` to null.
  20918. |
  20919. *Overload 2:*
  20920. Constructor using raw copy of pre-existing `::fz_font_flags_t`.
  20921. """
  20922. _mupdf.FzFontFlagsT_swiginit(self, _mupdf.new_FzFontFlagsT(*args))
  20923. __swig_destroy__ = _mupdf.delete_FzFontFlagsT
  20924. def m_internal_value(self):
  20925. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20926. return _mupdf.FzFontFlagsT_m_internal_value(self)
  20927. def __nonzero__(self):
  20928. return _mupdf.FzFontFlagsT___nonzero__(self)
  20929. __bool__ = __nonzero__
  20930. m_internal = property(_mupdf.FzFontFlagsT_m_internal_get, _mupdf.FzFontFlagsT_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20931. s_num_instances = property(_mupdf.FzFontFlagsT_s_num_instances_get, _mupdf.FzFontFlagsT_s_num_instances_set)
  20932. # Register FzFontFlagsT in _mupdf:
  20933. _mupdf.FzFontFlagsT_swigregister(FzFontFlagsT)
  20934. class FzFunction(object):
  20935. r"""Wrapper class for struct `fz_function`."""
  20936. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20937. __repr__ = _swig_repr
  20938. def fz_eval_function(self, _in, inlen, out, outlen):
  20939. r"""
  20940. Class-aware wrapper for `::fz_eval_function()`.
  20941. This method has out-params. Python/C# wrappers look like:
  20942. `fz_eval_function(const float *in, int inlen, int outlen)` => float out
  20943. """
  20944. return _mupdf.FzFunction_fz_eval_function(self, _in, inlen, out, outlen)
  20945. def fz_function_size(self):
  20946. r"""Class-aware wrapper for `::fz_function_size()`."""
  20947. return _mupdf.FzFunction_fz_function_size(self)
  20948. def __init__(self, *args):
  20949. r"""
  20950. *Overload 1:*
  20951. == Constructors. Constructor using `fz_new_function_of_size()`.
  20952. |
  20953. *Overload 2:*
  20954. Copy constructor using `fz_keep_function()`.
  20955. |
  20956. *Overload 3:*
  20957. Default constructor, sets `m_internal` to null.
  20958. |
  20959. *Overload 4:*
  20960. Constructor using raw copy of pre-existing `::fz_function`.
  20961. """
  20962. _mupdf.FzFunction_swiginit(self, _mupdf.new_FzFunction(*args))
  20963. __swig_destroy__ = _mupdf.delete_FzFunction
  20964. def m_internal_value(self):
  20965. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20966. return _mupdf.FzFunction_m_internal_value(self)
  20967. def __nonzero__(self):
  20968. return _mupdf.FzFunction___nonzero__(self)
  20969. __bool__ = __nonzero__
  20970. m_internal = property(_mupdf.FzFunction_m_internal_get, _mupdf.FzFunction_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20971. s_num_instances = property(_mupdf.FzFunction_s_num_instances_get, _mupdf.FzFunction_s_num_instances_set)
  20972. # Register FzFunction in _mupdf:
  20973. _mupdf.FzFunction_swigregister(FzFunction)
  20974. class FzGetoptLongOptions(object):
  20975. r"""Wrapper class for struct `fz_getopt_long_options`. Not copyable or assignable."""
  20976. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20977. __repr__ = _swig_repr
  20978. def __init__(self, *args):
  20979. r"""
  20980. *Overload 1:*
  20981. Default constructor, sets `m_internal` to null.
  20982. |
  20983. *Overload 2:*
  20984. Constructor using raw copy of pre-existing `::fz_getopt_long_options`.
  20985. """
  20986. _mupdf.FzGetoptLongOptions_swiginit(self, _mupdf.new_FzGetoptLongOptions(*args))
  20987. __swig_destroy__ = _mupdf.delete_FzGetoptLongOptions
  20988. def m_internal_value(self):
  20989. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20990. return _mupdf.FzGetoptLongOptions_m_internal_value(self)
  20991. def __nonzero__(self):
  20992. return _mupdf.FzGetoptLongOptions___nonzero__(self)
  20993. __bool__ = __nonzero__
  20994. m_internal = property(_mupdf.FzGetoptLongOptions_m_internal_get, _mupdf.FzGetoptLongOptions_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20995. s_num_instances = property(_mupdf.FzGetoptLongOptions_s_num_instances_get, _mupdf.FzGetoptLongOptions_s_num_instances_set)
  20996. # Register FzGetoptLongOptions in _mupdf:
  20997. _mupdf.FzGetoptLongOptions_swigregister(FzGetoptLongOptions)
  20998. class FzGlyph(object):
  20999. r"""
  21000. Wrapper class for struct `fz_glyph`.
  21001. Glyphs represent a run length encoded set of pixels for a 2
  21002. dimensional region of a plane.
  21003. """
  21004. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21005. __repr__ = _swig_repr
  21006. def fz_glyph_bbox(self):
  21007. r"""
  21008. Class-aware wrapper for `::fz_glyph_bbox()`.
  21009. Return the bounding box of the glyph in pixels.
  21010. """
  21011. return _mupdf.FzGlyph_fz_glyph_bbox(self)
  21012. def fz_glyph_bbox_no_ctx(self):
  21013. r"""Class-aware wrapper for `::fz_glyph_bbox_no_ctx()`."""
  21014. return _mupdf.FzGlyph_fz_glyph_bbox_no_ctx(self)
  21015. def fz_glyph_height(self):
  21016. r"""
  21017. Class-aware wrapper for `::fz_glyph_height()`.
  21018. Return the height of the glyph in pixels.
  21019. """
  21020. return _mupdf.FzGlyph_fz_glyph_height(self)
  21021. def fz_glyph_width(self):
  21022. r"""
  21023. Class-aware wrapper for `::fz_glyph_width()`.
  21024. Return the width of the glyph in pixels.
  21025. """
  21026. return _mupdf.FzGlyph_fz_glyph_width(self)
  21027. def __init__(self, *args):
  21028. r"""
  21029. *Overload 1:*
  21030. Copy constructor using `fz_keep_glyph()`.
  21031. |
  21032. *Overload 2:*
  21033. Default constructor, sets `m_internal` to null.
  21034. |
  21035. *Overload 3:*
  21036. Constructor using raw copy of pre-existing `::fz_glyph`.
  21037. """
  21038. _mupdf.FzGlyph_swiginit(self, _mupdf.new_FzGlyph(*args))
  21039. __swig_destroy__ = _mupdf.delete_FzGlyph
  21040. def m_internal_value(self):
  21041. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21042. return _mupdf.FzGlyph_m_internal_value(self)
  21043. def __nonzero__(self):
  21044. return _mupdf.FzGlyph___nonzero__(self)
  21045. __bool__ = __nonzero__
  21046. m_internal = property(_mupdf.FzGlyph_m_internal_get, _mupdf.FzGlyph_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21047. s_num_instances = property(_mupdf.FzGlyph_s_num_instances_get, _mupdf.FzGlyph_s_num_instances_set)
  21048. # Register FzGlyph in _mupdf:
  21049. _mupdf.FzGlyph_swigregister(FzGlyph)
  21050. class FzGlyphCache(object):
  21051. r"""Wrapper class for struct `fz_glyph_cache`. Not copyable or assignable."""
  21052. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21053. __repr__ = _swig_repr
  21054. def __init__(self, *args):
  21055. r"""
  21056. *Overload 1:*
  21057. Default constructor, sets `m_internal` to null.
  21058. |
  21059. *Overload 2:*
  21060. Constructor using raw copy of pre-existing `::fz_glyph_cache`.
  21061. """
  21062. _mupdf.FzGlyphCache_swiginit(self, _mupdf.new_FzGlyphCache(*args))
  21063. __swig_destroy__ = _mupdf.delete_FzGlyphCache
  21064. def m_internal_value(self):
  21065. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21066. return _mupdf.FzGlyphCache_m_internal_value(self)
  21067. def __nonzero__(self):
  21068. return _mupdf.FzGlyphCache___nonzero__(self)
  21069. __bool__ = __nonzero__
  21070. m_internal = property(_mupdf.FzGlyphCache_m_internal_get, _mupdf.FzGlyphCache_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21071. s_num_instances = property(_mupdf.FzGlyphCache_s_num_instances_get, _mupdf.FzGlyphCache_s_num_instances_set)
  21072. # Register FzGlyphCache in _mupdf:
  21073. _mupdf.FzGlyphCache_swigregister(FzGlyphCache)
  21074. class FzHalftone(object):
  21075. r"""
  21076. Wrapper class for struct `fz_halftone`.
  21077. A halftone is a set of threshold tiles, one per component. Each
  21078. threshold tile is a pixmap, possibly of varying sizes and
  21079. phases. Currently, we only provide one 'default' halftone tile
  21080. for operating on 1 component plus alpha pixmaps (where the alpha
  21081. is ignored). This is signified by a fz_halftone pointer to NULL.
  21082. """
  21083. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21084. __repr__ = _swig_repr
  21085. def __init__(self, *args):
  21086. r"""
  21087. *Overload 1:*
  21088. Copy constructor using `fz_keep_halftone()`.
  21089. |
  21090. *Overload 2:*
  21091. Constructor using raw copy of pre-existing `::fz_halftone`.
  21092. |
  21093. *Overload 3:*
  21094. Constructor using raw copy of pre-existing `::fz_halftone`.
  21095. """
  21096. _mupdf.FzHalftone_swiginit(self, _mupdf.new_FzHalftone(*args))
  21097. __swig_destroy__ = _mupdf.delete_FzHalftone
  21098. def m_internal_value(self):
  21099. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21100. return _mupdf.FzHalftone_m_internal_value(self)
  21101. def __nonzero__(self):
  21102. return _mupdf.FzHalftone___nonzero__(self)
  21103. __bool__ = __nonzero__
  21104. m_internal = property(_mupdf.FzHalftone_m_internal_get, _mupdf.FzHalftone_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21105. s_num_instances = property(_mupdf.FzHalftone_s_num_instances_get, _mupdf.FzHalftone_s_num_instances_set)
  21106. # Register FzHalftone in _mupdf:
  21107. _mupdf.FzHalftone_swigregister(FzHalftone)
  21108. class FzHashTable(object):
  21109. r"""
  21110. Wrapper class for struct `fz_hash_table`. Not copyable or assignable.
  21111. Generic hash-table with fixed-length keys.
  21112. The keys and values are NOT reference counted by the hash table.
  21113. Callers are responsible for taking care the reference counts are
  21114. correct. Inserting a duplicate entry will NOT overwrite the old
  21115. value, and will return the old value.
  21116. The drop_val callback function is only used to release values
  21117. when the hash table is destroyed.
  21118. """
  21119. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21120. __repr__ = _swig_repr
  21121. def fz_hash_filter(self, state, callback):
  21122. r"""
  21123. Class-aware wrapper for `::fz_hash_filter()`.
  21124. Iterate over the entries in a hash table, removing all the ones where callback returns true.
  21125. Does NOT free the value of the entry, so the caller is expected to take care of this.
  21126. """
  21127. return _mupdf.FzHashTable_fz_hash_filter(self, state, callback)
  21128. def fz_hash_find(self, key):
  21129. r"""
  21130. Class-aware wrapper for `::fz_hash_find()`.
  21131. Search for a matching hash within the table, and return the
  21132. associated value.
  21133. """
  21134. return _mupdf.FzHashTable_fz_hash_find(self, key)
  21135. def fz_hash_for_each(self, state, callback):
  21136. r"""
  21137. Class-aware wrapper for `::fz_hash_for_each()`.
  21138. Iterate over the entries in a hash table.
  21139. """
  21140. return _mupdf.FzHashTable_fz_hash_for_each(self, state, callback)
  21141. def fz_hash_insert(self, key, val):
  21142. r"""
  21143. Class-aware wrapper for `::fz_hash_insert()`.
  21144. Insert a new key/value pair into the hash table.
  21145. If an existing entry with the same key is found, no change is
  21146. made to the hash table, and a pointer to the existing value is
  21147. returned.
  21148. If no existing entry with the same key is found, ownership of
  21149. val passes in, key is copied, and NULL is returned.
  21150. """
  21151. return _mupdf.FzHashTable_fz_hash_insert(self, key, val)
  21152. def fz_hash_remove(self, key):
  21153. r"""
  21154. Class-aware wrapper for `::fz_hash_remove()`.
  21155. Remove the entry for a given key.
  21156. The value is NOT freed, so the caller is expected to take care
  21157. of this.
  21158. """
  21159. return _mupdf.FzHashTable_fz_hash_remove(self, key)
  21160. def __init__(self, *args):
  21161. r"""
  21162. *Overload 1:*
  21163. == Constructors. Constructor using `fz_new_hash_table()`.
  21164. Create a new hash table.
  21165. initialsize: The initial size of the hashtable. The hashtable
  21166. may grow (double in size) if it starts to get crowded (80%
  21167. full).
  21168. keylen: byte length for each key.
  21169. lock: -1 for no lock, otherwise the FZ_LOCK to use to protect
  21170. this table.
  21171. drop_val: Function to use to destroy values on table drop.
  21172. |
  21173. *Overload 2:*
  21174. Default constructor, sets `m_internal` to null.
  21175. |
  21176. *Overload 3:*
  21177. Constructor using raw copy of pre-existing `::fz_hash_table`.
  21178. """
  21179. _mupdf.FzHashTable_swiginit(self, _mupdf.new_FzHashTable(*args))
  21180. __swig_destroy__ = _mupdf.delete_FzHashTable
  21181. def m_internal_value(self):
  21182. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21183. return _mupdf.FzHashTable_m_internal_value(self)
  21184. def __nonzero__(self):
  21185. return _mupdf.FzHashTable___nonzero__(self)
  21186. __bool__ = __nonzero__
  21187. m_internal = property(_mupdf.FzHashTable_m_internal_get, _mupdf.FzHashTable_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21188. s_num_instances = property(_mupdf.FzHashTable_s_num_instances_get, _mupdf.FzHashTable_s_num_instances_set)
  21189. # Register FzHashTable in _mupdf:
  21190. _mupdf.FzHashTable_swigregister(FzHashTable)
  21191. class FzIccProfile(object):
  21192. r"""
  21193. Wrapper class for struct `fz_icc_profile`. Not copyable or assignable.
  21194. Opaque type for an ICC Profile.
  21195. """
  21196. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21197. __repr__ = _swig_repr
  21198. def __init__(self, *args):
  21199. r"""
  21200. *Overload 1:*
  21201. Default constructor, sets `m_internal` to null.
  21202. |
  21203. *Overload 2:*
  21204. Constructor using raw copy of pre-existing `::fz_icc_profile`.
  21205. """
  21206. _mupdf.FzIccProfile_swiginit(self, _mupdf.new_FzIccProfile(*args))
  21207. __swig_destroy__ = _mupdf.delete_FzIccProfile
  21208. def m_internal_value(self):
  21209. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21210. return _mupdf.FzIccProfile_m_internal_value(self)
  21211. def __nonzero__(self):
  21212. return _mupdf.FzIccProfile___nonzero__(self)
  21213. __bool__ = __nonzero__
  21214. m_internal = property(_mupdf.FzIccProfile_m_internal_get, _mupdf.FzIccProfile_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21215. s_num_instances = property(_mupdf.FzIccProfile_s_num_instances_get, _mupdf.FzIccProfile_s_num_instances_set)
  21216. # Register FzIccProfile in _mupdf:
  21217. _mupdf.FzIccProfile_swigregister(FzIccProfile)
  21218. class FzImage(object):
  21219. r"""
  21220. Wrapper class for struct `fz_image`.
  21221. Images are storable objects from which we can obtain fz_pixmaps.
  21222. These may be implemented as simple wrappers around a pixmap, or
  21223. as more complex things that decode at different subsample
  21224. settings on demand.
  21225. """
  21226. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21227. __repr__ = _swig_repr
  21228. def fz_compressed_image_buffer(self):
  21229. r"""
  21230. Class-aware wrapper for `::fz_compressed_image_buffer()`.
  21231. Retrieve the underlying compressed data for an image.
  21232. Returns a pointer to the underlying data buffer for an image,
  21233. or NULL if this image is not based upon a compressed data
  21234. buffer.
  21235. This is not a reference counted structure, so no reference is
  21236. returned. Lifespan is limited to that of the image itself.
  21237. """
  21238. return _mupdf.FzImage_fz_compressed_image_buffer(self)
  21239. def fz_compressed_image_type(self):
  21240. r"""
  21241. Class-aware wrapper for `::fz_compressed_image_type()`.
  21242. Return the type of a compressed image.
  21243. Any non-compressed image will have the type returned as UNKNOWN.
  21244. """
  21245. return _mupdf.FzImage_fz_compressed_image_type(self)
  21246. def fz_get_pixmap_from_image(self, subarea, ctm, w, h):
  21247. r"""
  21248. Class-aware wrapper for `::fz_get_pixmap_from_image()`.
  21249. This method has out-params. Python/C# wrappers look like:
  21250. `fz_get_pixmap_from_image(const ::fz_irect *subarea, ::fz_matrix *ctm)` => `(fz_pixmap *, int w, int h)`
  21251. Called to get a handle to a pixmap from an image.
  21252. image: The image to retrieve a pixmap from.
  21253. subarea: The subarea of the image that we actually care about
  21254. (or NULL to indicate the whole image).
  21255. ctm: Optional, unless subarea is given. If given, then on
  21256. entry this is the transform that will be applied to the complete
  21257. image. It should be updated on exit to the transform to apply to
  21258. the given subarea of the image. This is used to calculate the
  21259. desired width/height for subsampling.
  21260. w: If non-NULL, a pointer to an int to be updated on exit to the
  21261. width (in pixels) that the scaled output will cover.
  21262. h: If non-NULL, a pointer to an int to be updated on exit to the
  21263. height (in pixels) that the scaled output will cover.
  21264. Returns a non NULL kept pixmap pointer. May throw exceptions.
  21265. """
  21266. return _mupdf.FzImage_fz_get_pixmap_from_image(self, subarea, ctm, w, h)
  21267. def fz_get_unscaled_pixmap_from_image(self):
  21268. r"""
  21269. Class-aware wrapper for `::fz_get_unscaled_pixmap_from_image()`.
  21270. Calls fz_get_pixmap_from_image() with ctm, subarea, w and h all set to NULL.
  21271. """
  21272. return _mupdf.FzImage_fz_get_unscaled_pixmap_from_image(self)
  21273. def fz_image_orientation(self):
  21274. r"""
  21275. Class-aware wrapper for `::fz_image_orientation()`.
  21276. Request the natural orientation of an image.
  21277. This is for images (such as JPEG) that can contain internal
  21278. specifications of rotation/flips. This is ignored by all the
  21279. internal decode/rendering routines, but can be used by callers
  21280. (such as the image document handler) to respect such
  21281. specifications.
  21282. The values used by MuPDF are as follows, with the equivalent
  21283. Exif specifications given for information:
  21284. 0: Undefined
  21285. 1: 0 degree ccw rotation. (Exif = 1)
  21286. 2: 90 degree ccw rotation. (Exif = 8)
  21287. 3: 180 degree ccw rotation. (Exif = 3)
  21288. 4: 270 degree ccw rotation. (Exif = 6)
  21289. 5: flip on X. (Exif = 2)
  21290. 6: flip on X, then rotate ccw by 90 degrees. (Exif = 5)
  21291. 7: flip on X, then rotate ccw by 180 degrees. (Exif = 4)
  21292. 8: flip on X, then rotate ccw by 270 degrees. (Exif = 7)
  21293. """
  21294. return _mupdf.FzImage_fz_image_orientation(self)
  21295. def fz_image_orientation_matrix(self):
  21296. r"""Class-aware wrapper for `::fz_image_orientation_matrix()`."""
  21297. return _mupdf.FzImage_fz_image_orientation_matrix(self)
  21298. def fz_image_resolution(self, xres, yres):
  21299. r"""
  21300. Class-aware wrapper for `::fz_image_resolution()`.
  21301. This method has out-params. Python/C# wrappers look like:
  21302. `fz_image_resolution()` => `(int xres, int yres)`
  21303. Request the natural resolution
  21304. of an image.
  21305. xres, yres: Pointers to ints to be updated with the
  21306. natural resolution of an image (or a sensible default
  21307. if not encoded).
  21308. """
  21309. return _mupdf.FzImage_fz_image_resolution(self, xres, yres)
  21310. def fz_image_size(self):
  21311. r"""
  21312. Class-aware wrapper for `::fz_image_size()`.
  21313. Return the size of the storage used by an image.
  21314. """
  21315. return _mupdf.FzImage_fz_image_size(self)
  21316. def fz_is_lossy_image(self):
  21317. r"""Class-aware wrapper for `::fz_is_lossy_image()`."""
  21318. return _mupdf.FzImage_fz_is_lossy_image(self)
  21319. def fz_new_bitmap_from_image(self, ht):
  21320. r"""
  21321. Class-aware wrapper for `::fz_new_bitmap_from_image()`.
  21322. Make a bitmap from a pixmap and a halftone.
  21323. img: The image to generate from. Currently must be a single
  21324. color component with no alpha.
  21325. ht: The halftone to use. NULL implies the default halftone.
  21326. Returns the resultant bitmap. Throws exceptions in the case of
  21327. failure to allocate.
  21328. """
  21329. return _mupdf.FzImage_fz_new_bitmap_from_image(self, ht)
  21330. def fz_new_buffer_from_image_as_jpeg(self, color_params, quality, invert_cmyk):
  21331. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_jpeg()`."""
  21332. return _mupdf.FzImage_fz_new_buffer_from_image_as_jpeg(self, color_params, quality, invert_cmyk)
  21333. def fz_new_buffer_from_image_as_jpx(self, color_params, quality):
  21334. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_jpx()`."""
  21335. return _mupdf.FzImage_fz_new_buffer_from_image_as_jpx(self, color_params, quality)
  21336. def fz_new_buffer_from_image_as_pam(self, color_params):
  21337. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pam()`."""
  21338. return _mupdf.FzImage_fz_new_buffer_from_image_as_pam(self, color_params)
  21339. def fz_new_buffer_from_image_as_pbm(self, color_params):
  21340. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pbm()`."""
  21341. return _mupdf.FzImage_fz_new_buffer_from_image_as_pbm(self, color_params)
  21342. def fz_new_buffer_from_image_as_pkm(self, color_params):
  21343. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pkm()`."""
  21344. return _mupdf.FzImage_fz_new_buffer_from_image_as_pkm(self, color_params)
  21345. def fz_new_buffer_from_image_as_png(self, color_params):
  21346. r"""
  21347. Class-aware wrapper for `::fz_new_buffer_from_image_as_png()`.
  21348. Re-encode a given image as a PNG into a buffer.
  21349. Ownership of the buffer is returned.
  21350. """
  21351. return _mupdf.FzImage_fz_new_buffer_from_image_as_png(self, color_params)
  21352. def fz_new_buffer_from_image_as_pnm(self, color_params):
  21353. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pnm()`."""
  21354. return _mupdf.FzImage_fz_new_buffer_from_image_as_pnm(self, color_params)
  21355. def fz_new_buffer_from_image_as_psd(self, color_params):
  21356. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_psd()`."""
  21357. return _mupdf.FzImage_fz_new_buffer_from_image_as_psd(self, color_params)
  21358. def __init__(self, *args):
  21359. r"""
  21360. *Overload 1:*
  21361. == Constructors. Constructor using `fz_new_barcode_image()`.
  21362. Create an fz_image from a barcode definition.
  21363. type: The type of barcode to create.
  21364. value: The value of the barcode.
  21365. size: The size of the barcode.
  21366. ec_level: error correction level 0-8.
  21367. quiet: whether to include quiet zones (0 or 1).
  21368. hrt: whether to include human readable text below the barcode (0 or 1).
  21369. returns a created fz_image.
  21370. |
  21371. *Overload 2:*
  21372. Constructor using `fz_new_image_from_buffer()`.
  21373. Create a new image from a
  21374. buffer of data, inferring its type from the format
  21375. of the data.
  21376. |
  21377. *Overload 3:*
  21378. Constructor using `fz_new_image_from_compressed_buffer()`.
  21379. Create an image based on
  21380. the data in the supplied compressed buffer.
  21381. w,h: Width and height of the created image.
  21382. bpc: Bits per component.
  21383. colorspace: The colorspace (determines the number of components,
  21384. and any color conversions required while decoding).
  21385. xres, yres: The X and Y resolutions respectively.
  21386. interpolate: 1 if interpolation should be used when decoding
  21387. this image, 0 otherwise.
  21388. imagemask: 1 if this is an imagemask (i.e. transparency bitmap
  21389. mask), 0 otherwise.
  21390. decode: NULL, or a pointer to to a decode array. The default
  21391. decode array is [0 1] (repeated n times, for n color components).
  21392. colorkey: NULL, or a pointer to a colorkey array. The default
  21393. colorkey array is [0 255] (repeated n times, for n color
  21394. components).
  21395. buffer: Buffer of compressed data and compression parameters.
  21396. Ownership of this reference is passed in.
  21397. mask: NULL, or another image to use as a mask for this one.
  21398. A new reference is taken to this image. Supplying a masked
  21399. image as a mask to another image is illegal!
  21400. |
  21401. *Overload 4:*
  21402. Constructor using `fz_new_image_from_compressed_buffer2()`. Swig-friendly wrapper for fz_new_image_from_compressed_buffer(),
  21403. uses specified `decode` and `colorkey` if they are not null (in which
  21404. case we assert that they have size `2*fz_colorspace_n(colorspace)`).
  21405. |
  21406. *Overload 5:*
  21407. Constructor using `fz_new_image_from_display_list()`.
  21408. Create a new image from a display list.
  21409. w, h: The conceptual width/height of the image.
  21410. transform: The matrix that needs to be applied to the given
  21411. list to make it render to the unit square.
  21412. list: The display list.
  21413. |
  21414. *Overload 6:*
  21415. Constructor using `fz_new_image_from_file()`.
  21416. Create a new image from the contents
  21417. of a file, inferring its type from the format of the
  21418. data.
  21419. |
  21420. *Overload 7:*
  21421. Constructor using `fz_new_image_from_pixmap()`.
  21422. Create an image from the given
  21423. pixmap.
  21424. pixmap: The pixmap to base the image upon. A new reference
  21425. to this is taken.
  21426. mask: NULL, or another image to use as a mask for this one.
  21427. A new reference is taken to this image. Supplying a masked
  21428. image as a mask to another image is illegal!
  21429. |
  21430. *Overload 8:*
  21431. Constructor using `fz_new_image_from_svg()`.
  21432. Create a scalable image from an SVG document.
  21433. |
  21434. *Overload 9:*
  21435. Constructor using `fz_new_image_from_svg_xml()`.
  21436. Create a scalable image from an SVG document.
  21437. |
  21438. *Overload 10:*
  21439. Constructor using `fz_new_image_of_size()`.
  21440. Internal function to make a new fz_image structure
  21441. for a derived class.
  21442. w,h: Width and height of the created image.
  21443. bpc: Bits per component.
  21444. colorspace: The colorspace (determines the number of components,
  21445. and any color conversions required while decoding).
  21446. xres, yres: The X and Y resolutions respectively.
  21447. interpolate: 1 if interpolation should be used when decoding
  21448. this image, 0 otherwise.
  21449. imagemask: 1 if this is an imagemask (i.e. transparent), 0
  21450. otherwise.
  21451. decode: NULL, or a pointer to to a decode array. The default
  21452. decode array is [0 1] (repeated n times, for n color components).
  21453. colorkey: NULL, or a pointer to a colorkey array. The default
  21454. colorkey array is [0 255] (repeated n times, for n color
  21455. components).
  21456. mask: NULL, or another image to use as a mask for this one.
  21457. A new reference is taken to this image. Supplying a masked
  21458. image as a mask to another image is illegal!
  21459. size: The size of the required allocated structure (the size of
  21460. the derived structure).
  21461. get: The function to be called to obtain a decoded pixmap.
  21462. get_size: The function to be called to return the storage size
  21463. used by this image.
  21464. drop: The function to be called to dispose of this image once
  21465. the last reference is dropped.
  21466. Returns a pointer to an allocated structure of the required size,
  21467. with the first sizeof(fz_image) bytes initialised as appropriate
  21468. given the supplied parameters, and the other bytes set to zero.
  21469. |
  21470. *Overload 11:*
  21471. Copy constructor using `fz_keep_image()`.
  21472. |
  21473. *Overload 12:*
  21474. Default constructor, sets `m_internal` to null.
  21475. |
  21476. *Overload 13:*
  21477. Constructor using raw copy of pre-existing `::fz_image`.
  21478. """
  21479. _mupdf.FzImage_swiginit(self, _mupdf.new_FzImage(*args))
  21480. def key_storable(self):
  21481. return _mupdf.FzImage_key_storable(self)
  21482. def w(self):
  21483. return _mupdf.FzImage_w(self)
  21484. def h(self):
  21485. return _mupdf.FzImage_h(self)
  21486. def n(self):
  21487. return _mupdf.FzImage_n(self)
  21488. def bpc(self):
  21489. return _mupdf.FzImage_bpc(self)
  21490. def imagemask(self):
  21491. return _mupdf.FzImage_imagemask(self)
  21492. def interpolate(self):
  21493. return _mupdf.FzImage_interpolate(self)
  21494. def use_colorkey(self):
  21495. return _mupdf.FzImage_use_colorkey(self)
  21496. def use_decode(self):
  21497. return _mupdf.FzImage_use_decode(self)
  21498. def decoded(self):
  21499. return _mupdf.FzImage_decoded(self)
  21500. def scalable(self):
  21501. return _mupdf.FzImage_scalable(self)
  21502. def intent(self):
  21503. return _mupdf.FzImage_intent(self)
  21504. def has_intent(self):
  21505. return _mupdf.FzImage_has_intent(self)
  21506. def orientation(self):
  21507. return _mupdf.FzImage_orientation(self)
  21508. def mask(self):
  21509. return _mupdf.FzImage_mask(self)
  21510. def xres(self):
  21511. return _mupdf.FzImage_xres(self)
  21512. def yres(self):
  21513. return _mupdf.FzImage_yres(self)
  21514. def colorspace(self):
  21515. return _mupdf.FzImage_colorspace(self)
  21516. def colorkey(self):
  21517. return _mupdf.FzImage_colorkey(self)
  21518. def decode(self):
  21519. return _mupdf.FzImage_decode(self)
  21520. __swig_destroy__ = _mupdf.delete_FzImage
  21521. def m_internal_value(self):
  21522. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21523. return _mupdf.FzImage_m_internal_value(self)
  21524. def __nonzero__(self):
  21525. return _mupdf.FzImage___nonzero__(self)
  21526. __bool__ = __nonzero__
  21527. m_internal = property(_mupdf.FzImage_m_internal_get, _mupdf.FzImage_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21528. s_num_instances = property(_mupdf.FzImage_s_num_instances_get, _mupdf.FzImage_s_num_instances_set)
  21529. # Register FzImage in _mupdf:
  21530. _mupdf.FzImage_swigregister(FzImage)
  21531. class FzInstallLoadSystemFontFuncsArgs(object):
  21532. r"""
  21533. Wrapper class for struct `fz_install_load_system_font_funcs_args`.
  21534. Extra struct containing fz_install_load_system_font_funcs()'s args,
  21535. which we wrap with virtual_fnptrs set to allow use from Python/C# via
  21536. Swig Directors.
  21537. """
  21538. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21539. __repr__ = _swig_repr
  21540. def fz_install_load_system_font_funcs2(self):
  21541. r"""
  21542. Class-aware wrapper for `::fz_install_load_system_font_funcs2()`.
  21543. Alternative to fz_install_load_system_font_funcs() that takes args in a
  21544. struct, to allow use from Python/C# via Swig Directors.
  21545. """
  21546. return _mupdf.FzInstallLoadSystemFontFuncsArgs_fz_install_load_system_font_funcs2(self)
  21547. def __init__(self, *args):
  21548. r"""
  21549. *Overload 1:*
  21550. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  21551. |
  21552. *Overload 2:*
  21553. Constructor using raw copy of pre-existing `::fz_install_load_system_font_funcs_args`.
  21554. """
  21555. _mupdf.FzInstallLoadSystemFontFuncsArgs_swiginit(self, _mupdf.new_FzInstallLoadSystemFontFuncsArgs(*args))
  21556. __swig_destroy__ = _mupdf.delete_FzInstallLoadSystemFontFuncsArgs
  21557. m_internal = property(_mupdf.FzInstallLoadSystemFontFuncsArgs_m_internal_get, _mupdf.FzInstallLoadSystemFontFuncsArgs_m_internal_set)
  21558. s_num_instances = property(_mupdf.FzInstallLoadSystemFontFuncsArgs_s_num_instances_get, _mupdf.FzInstallLoadSystemFontFuncsArgs_s_num_instances_set, doc=r"""Wrapped data is held by value.""")
  21559. def to_string(self):
  21560. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  21561. return _mupdf.FzInstallLoadSystemFontFuncsArgs_to_string(self)
  21562. def __eq__(self, rhs):
  21563. r"""Comparison method."""
  21564. return _mupdf.FzInstallLoadSystemFontFuncsArgs___eq__(self, rhs)
  21565. def __ne__(self, rhs):
  21566. r"""Comparison method."""
  21567. return _mupdf.FzInstallLoadSystemFontFuncsArgs___ne__(self, rhs)
  21568. # Register FzInstallLoadSystemFontFuncsArgs in _mupdf:
  21569. _mupdf.FzInstallLoadSystemFontFuncsArgs_swigregister(FzInstallLoadSystemFontFuncsArgs)
  21570. class FzInstallLoadSystemFontFuncsArgs2(FzInstallLoadSystemFontFuncsArgs):
  21571. r"""Wrapper class for struct fz_install_load_system_font_funcs_args with virtual fns for each fnptr; this is for use as a SWIG Director class."""
  21572. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21573. __repr__ = _swig_repr
  21574. def __init__(self):
  21575. r"""== Constructor."""
  21576. if self.__class__ == FzInstallLoadSystemFontFuncsArgs2:
  21577. _self = None
  21578. else:
  21579. _self = self
  21580. _mupdf.FzInstallLoadSystemFontFuncsArgs2_swiginit(self, _mupdf.new_FzInstallLoadSystemFontFuncsArgs2(_self, ))
  21581. __swig_destroy__ = _mupdf.delete_FzInstallLoadSystemFontFuncsArgs2
  21582. def use_virtual_f(self, use=True):
  21583. r"""
  21584. These methods set the function pointers in *m_internal
  21585. to point to internal callbacks that call our virtual methods.
  21586. """
  21587. return _mupdf.FzInstallLoadSystemFontFuncsArgs2_use_virtual_f(self, use)
  21588. def use_virtual_f_cjk(self, use=True):
  21589. return _mupdf.FzInstallLoadSystemFontFuncsArgs2_use_virtual_f_cjk(self, use)
  21590. def use_virtual_f_fallback(self, use=True):
  21591. return _mupdf.FzInstallLoadSystemFontFuncsArgs2_use_virtual_f_fallback(self, use)
  21592. def f(self, arg_0, arg_1, arg_2, arg_3, arg_4):
  21593. r"""Default virtual method implementations; these all throw an exception."""
  21594. return _mupdf.FzInstallLoadSystemFontFuncsArgs2_f(self, arg_0, arg_1, arg_2, arg_3, arg_4)
  21595. def f_cjk(self, arg_0, arg_1, arg_2, arg_3):
  21596. return _mupdf.FzInstallLoadSystemFontFuncsArgs2_f_cjk(self, arg_0, arg_1, arg_2, arg_3)
  21597. def f_fallback(self, arg_0, arg_1, arg_2, arg_3, arg_4, arg_5):
  21598. return _mupdf.FzInstallLoadSystemFontFuncsArgs2_f_fallback(self, arg_0, arg_1, arg_2, arg_3, arg_4, arg_5)
  21599. def __disown__(self):
  21600. self.this.disown()
  21601. _mupdf.disown_FzInstallLoadSystemFontFuncsArgs2(self)
  21602. return weakref.proxy(self)
  21603. # Register FzInstallLoadSystemFontFuncsArgs2 in _mupdf:
  21604. _mupdf.FzInstallLoadSystemFontFuncsArgs2_swigregister(FzInstallLoadSystemFontFuncsArgs2)
  21605. class FzInt2(object):
  21606. r"""Wrapper class for struct `fz_int2`. Not copyable or assignable."""
  21607. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21608. __repr__ = _swig_repr
  21609. def __init__(self, *args):
  21610. r"""
  21611. *Overload 1:*
  21612. Default constructor, sets `m_internal` to null.
  21613. |
  21614. *Overload 2:*
  21615. Constructor using raw copy of pre-existing `::fz_int2`.
  21616. """
  21617. _mupdf.FzInt2_swiginit(self, _mupdf.new_FzInt2(*args))
  21618. __swig_destroy__ = _mupdf.delete_FzInt2
  21619. def m_internal_value(self):
  21620. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21621. return _mupdf.FzInt2_m_internal_value(self)
  21622. def __nonzero__(self):
  21623. return _mupdf.FzInt2___nonzero__(self)
  21624. __bool__ = __nonzero__
  21625. m_internal = property(_mupdf.FzInt2_m_internal_get, _mupdf.FzInt2_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21626. s_num_instances = property(_mupdf.FzInt2_s_num_instances_get, _mupdf.FzInt2_s_num_instances_set)
  21627. # Register FzInt2 in _mupdf:
  21628. _mupdf.FzInt2_swigregister(FzInt2)
  21629. class FzInt2Heap(object):
  21630. r"""Wrapper class for struct `fz_int2_heap`. Not copyable or assignable."""
  21631. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21632. __repr__ = _swig_repr
  21633. def fz_int2_heap_debug(self):
  21634. r"""Class-aware wrapper for `::fz_int2_heap_debug()`."""
  21635. return _mupdf.FzInt2Heap_fz_int2_heap_debug(self)
  21636. def fz_int2_heap_insert(self, v):
  21637. r"""Class-aware wrapper for `::fz_int2_heap_insert()`."""
  21638. return _mupdf.FzInt2Heap_fz_int2_heap_insert(self, v)
  21639. def fz_int2_heap_sort(self):
  21640. r"""Class-aware wrapper for `::fz_int2_heap_sort()`."""
  21641. return _mupdf.FzInt2Heap_fz_int2_heap_sort(self)
  21642. def fz_int2_heap_uniq(self):
  21643. r"""Class-aware wrapper for `::fz_int2_heap_uniq()`."""
  21644. return _mupdf.FzInt2Heap_fz_int2_heap_uniq(self)
  21645. def __init__(self, *args):
  21646. r"""
  21647. *Overload 1:*
  21648. Default constructor, sets `m_internal` to null.
  21649. |
  21650. *Overload 2:*
  21651. Constructor using raw copy of pre-existing `::fz_int2_heap`.
  21652. """
  21653. _mupdf.FzInt2Heap_swiginit(self, _mupdf.new_FzInt2Heap(*args))
  21654. __swig_destroy__ = _mupdf.delete_FzInt2Heap
  21655. def m_internal_value(self):
  21656. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21657. return _mupdf.FzInt2Heap_m_internal_value(self)
  21658. def __nonzero__(self):
  21659. return _mupdf.FzInt2Heap___nonzero__(self)
  21660. __bool__ = __nonzero__
  21661. m_internal = property(_mupdf.FzInt2Heap_m_internal_get, _mupdf.FzInt2Heap_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21662. s_num_instances = property(_mupdf.FzInt2Heap_s_num_instances_get, _mupdf.FzInt2Heap_s_num_instances_set)
  21663. # Register FzInt2Heap in _mupdf:
  21664. _mupdf.FzInt2Heap_swigregister(FzInt2Heap)
  21665. class FzIntHeap(object):
  21666. r"""Wrapper class for struct `fz_int_heap`. Not copyable or assignable."""
  21667. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21668. __repr__ = _swig_repr
  21669. def fz_int_heap_debug(self):
  21670. r"""Class-aware wrapper for `::fz_int_heap_debug()`."""
  21671. return _mupdf.FzIntHeap_fz_int_heap_debug(self)
  21672. def fz_int_heap_insert(self, v):
  21673. r"""Class-aware wrapper for `::fz_int_heap_insert()`."""
  21674. return _mupdf.FzIntHeap_fz_int_heap_insert(self, v)
  21675. def fz_int_heap_sort(self):
  21676. r"""Class-aware wrapper for `::fz_int_heap_sort()`."""
  21677. return _mupdf.FzIntHeap_fz_int_heap_sort(self)
  21678. def fz_int_heap_uniq(self):
  21679. r"""Class-aware wrapper for `::fz_int_heap_uniq()`."""
  21680. return _mupdf.FzIntHeap_fz_int_heap_uniq(self)
  21681. def __init__(self, *args):
  21682. r"""
  21683. *Overload 1:*
  21684. Default constructor, sets `m_internal` to null.
  21685. |
  21686. *Overload 2:*
  21687. Constructor using raw copy of pre-existing `::fz_int_heap`.
  21688. """
  21689. _mupdf.FzIntHeap_swiginit(self, _mupdf.new_FzIntHeap(*args))
  21690. __swig_destroy__ = _mupdf.delete_FzIntHeap
  21691. def m_internal_value(self):
  21692. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21693. return _mupdf.FzIntHeap_m_internal_value(self)
  21694. def __nonzero__(self):
  21695. return _mupdf.FzIntHeap___nonzero__(self)
  21696. __bool__ = __nonzero__
  21697. m_internal = property(_mupdf.FzIntHeap_m_internal_get, _mupdf.FzIntHeap_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21698. s_num_instances = property(_mupdf.FzIntHeap_s_num_instances_get, _mupdf.FzIntHeap_s_num_instances_set)
  21699. # Register FzIntHeap in _mupdf:
  21700. _mupdf.FzIntHeap_swigregister(FzIntHeap)
  21701. class FzIntptr(object):
  21702. r"""Wrapper class for struct `fz_intptr`. Not copyable or assignable."""
  21703. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21704. __repr__ = _swig_repr
  21705. def __init__(self, *args):
  21706. r"""
  21707. *Overload 1:*
  21708. Default constructor, sets `m_internal` to null.
  21709. |
  21710. *Overload 2:*
  21711. Constructor using raw copy of pre-existing `::fz_intptr`.
  21712. """
  21713. _mupdf.FzIntptr_swiginit(self, _mupdf.new_FzIntptr(*args))
  21714. __swig_destroy__ = _mupdf.delete_FzIntptr
  21715. def m_internal_value(self):
  21716. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21717. return _mupdf.FzIntptr_m_internal_value(self)
  21718. def __nonzero__(self):
  21719. return _mupdf.FzIntptr___nonzero__(self)
  21720. __bool__ = __nonzero__
  21721. m_internal = property(_mupdf.FzIntptr_m_internal_get, _mupdf.FzIntptr_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21722. s_num_instances = property(_mupdf.FzIntptr_s_num_instances_get, _mupdf.FzIntptr_s_num_instances_set)
  21723. # Register FzIntptr in _mupdf:
  21724. _mupdf.FzIntptr_swigregister(FzIntptr)
  21725. class FzIntptrHeap(object):
  21726. r"""Wrapper class for struct `fz_intptr_heap`. Not copyable or assignable."""
  21727. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21728. __repr__ = _swig_repr
  21729. def fz_intptr_heap_debug(self):
  21730. r"""Class-aware wrapper for `::fz_intptr_heap_debug()`."""
  21731. return _mupdf.FzIntptrHeap_fz_intptr_heap_debug(self)
  21732. def fz_intptr_heap_insert(self, v):
  21733. r"""Class-aware wrapper for `::fz_intptr_heap_insert()`."""
  21734. return _mupdf.FzIntptrHeap_fz_intptr_heap_insert(self, v)
  21735. def fz_intptr_heap_sort(self):
  21736. r"""Class-aware wrapper for `::fz_intptr_heap_sort()`."""
  21737. return _mupdf.FzIntptrHeap_fz_intptr_heap_sort(self)
  21738. def fz_intptr_heap_uniq(self):
  21739. r"""Class-aware wrapper for `::fz_intptr_heap_uniq()`."""
  21740. return _mupdf.FzIntptrHeap_fz_intptr_heap_uniq(self)
  21741. def __init__(self, *args):
  21742. r"""
  21743. *Overload 1:*
  21744. Default constructor, sets `m_internal` to null.
  21745. |
  21746. *Overload 2:*
  21747. Constructor using raw copy of pre-existing `::fz_intptr_heap`.
  21748. """
  21749. _mupdf.FzIntptrHeap_swiginit(self, _mupdf.new_FzIntptrHeap(*args))
  21750. __swig_destroy__ = _mupdf.delete_FzIntptrHeap
  21751. def m_internal_value(self):
  21752. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21753. return _mupdf.FzIntptrHeap_m_internal_value(self)
  21754. def __nonzero__(self):
  21755. return _mupdf.FzIntptrHeap___nonzero__(self)
  21756. __bool__ = __nonzero__
  21757. m_internal = property(_mupdf.FzIntptrHeap_m_internal_get, _mupdf.FzIntptrHeap_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21758. s_num_instances = property(_mupdf.FzIntptrHeap_s_num_instances_get, _mupdf.FzIntptrHeap_s_num_instances_set)
  21759. # Register FzIntptrHeap in _mupdf:
  21760. _mupdf.FzIntptrHeap_swigregister(FzIntptrHeap)
  21761. class FzIrect(object):
  21762. r"""
  21763. Wrapper class for struct `fz_irect`.
  21764. fz_irect is a rectangle using integers instead of floats.
  21765. It's used in the draw device and for pixmap dimensions.
  21766. """
  21767. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21768. __repr__ = _swig_repr
  21769. def fz_expand_irect(self, expand):
  21770. r"""Class-aware wrapper for `::fz_expand_irect()`."""
  21771. return _mupdf.FzIrect_fz_expand_irect(self, expand)
  21772. def fz_intersect_irect(self, b):
  21773. r"""
  21774. Class-aware wrapper for `::fz_intersect_irect()`.
  21775. Compute intersection of two bounding boxes.
  21776. Similar to fz_intersect_rect but operates on two bounding
  21777. boxes instead of two rectangles.
  21778. """
  21779. return _mupdf.FzIrect_fz_intersect_irect(self, b)
  21780. def fz_irect_height(self):
  21781. r"""
  21782. Class-aware wrapper for `::fz_irect_height()`.
  21783. Return the height of an irect. Invalid irects return 0.
  21784. """
  21785. return _mupdf.FzIrect_fz_irect_height(self)
  21786. def fz_irect_width(self):
  21787. r"""
  21788. Class-aware wrapper for `::fz_irect_width()`.
  21789. Return the width of an irect. Invalid irects return 0.
  21790. """
  21791. return _mupdf.FzIrect_fz_irect_width(self)
  21792. def fz_is_empty_irect(self):
  21793. r"""Class-aware wrapper for `::fz_is_empty_irect()`."""
  21794. return _mupdf.FzIrect_fz_is_empty_irect(self)
  21795. def fz_is_infinite_irect(self):
  21796. r"""
  21797. Class-aware wrapper for `::fz_is_infinite_irect()`.
  21798. Check if an integer rectangle
  21799. is infinite.
  21800. """
  21801. return _mupdf.FzIrect_fz_is_infinite_irect(self)
  21802. def fz_is_irect_inside_irect(self, outer):
  21803. r"""
  21804. Class-aware wrapper for `::fz_is_irect_inside_irect()`.
  21805. Inclusion test for irects.
  21806. rects are assumed to be both open or both closed.
  21807. No invalid rect can include any other rect.
  21808. No invalid rect can be included by any rect.
  21809. Empty (point) rects can include themselves.
  21810. Empty (line) rects can include many (subline) rects.
  21811. """
  21812. return _mupdf.FzIrect_fz_is_irect_inside_irect(self, outer)
  21813. def fz_is_valid_irect(self):
  21814. r"""
  21815. Class-aware wrapper for `::fz_is_valid_irect()`.
  21816. Check if an integer rectangle is valid.
  21817. """
  21818. return _mupdf.FzIrect_fz_is_valid_irect(self)
  21819. def fz_rect_from_irect(self):
  21820. r"""
  21821. Class-aware wrapper for `::fz_rect_from_irect()`.
  21822. Convert a bbox into a rect.
  21823. For our purposes, a rect can represent all the values we meet in
  21824. a bbox, so nothing can go wrong.
  21825. rect: A place to store the generated rectangle.
  21826. bbox: The bbox to convert.
  21827. Returns rect (updated).
  21828. """
  21829. return _mupdf.FzIrect_fz_rect_from_irect(self)
  21830. def fz_translate_irect(self, xoff, yoff):
  21831. r"""Class-aware wrapper for `::fz_translate_irect()`."""
  21832. return _mupdf.FzIrect_fz_translate_irect(self, xoff, yoff)
  21833. def __init__(self, *args):
  21834. r"""
  21835. *Overload 1:*
  21836. == Constructors. Constructor using `fz_irect_from_rect()`.
  21837. Convert a rect into the minimal bounding box
  21838. that covers the rectangle.
  21839. Coordinates in a bounding box are integers, so rounding of the
  21840. rects coordinates takes place. The top left corner is rounded
  21841. upwards and left while the bottom right corner is rounded
  21842. downwards and to the right.
  21843. |
  21844. *Overload 2:*
  21845. Constructor using `fz_make_irect()`.
  21846. |
  21847. *Overload 3:*
  21848. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  21849. |
  21850. *Overload 4:*
  21851. Constructor using raw copy of pre-existing `::fz_irect`.
  21852. |
  21853. *Overload 5:*
  21854. Constructor using raw copy of pre-existing `::fz_irect`.
  21855. """
  21856. _mupdf.FzIrect_swiginit(self, _mupdf.new_FzIrect(*args))
  21857. def internal(self, *args):
  21858. r"""
  21859. *Overload 1:*
  21860. Access as underlying struct.
  21861. |
  21862. *Overload 2:*
  21863. Access as underlying struct.
  21864. """
  21865. return _mupdf.FzIrect_internal(self, *args)
  21866. __swig_destroy__ = _mupdf.delete_FzIrect
  21867. x0 = property(_mupdf.FzIrect_x0_get, _mupdf.FzIrect_x0_set)
  21868. y0 = property(_mupdf.FzIrect_y0_get, _mupdf.FzIrect_y0_set)
  21869. x1 = property(_mupdf.FzIrect_x1_get, _mupdf.FzIrect_x1_set)
  21870. y1 = property(_mupdf.FzIrect_y1_get, _mupdf.FzIrect_y1_set)
  21871. s_num_instances = property(_mupdf.FzIrect_s_num_instances_get, _mupdf.FzIrect_s_num_instances_set)
  21872. def to_string(self):
  21873. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  21874. return _mupdf.FzIrect_to_string(self)
  21875. def __eq__(self, rhs):
  21876. r"""Comparison method."""
  21877. return _mupdf.FzIrect___eq__(self, rhs)
  21878. def __ne__(self, rhs):
  21879. r"""Comparison method."""
  21880. return _mupdf.FzIrect___ne__(self, rhs)
  21881. # Register FzIrect in _mupdf:
  21882. _mupdf.FzIrect_swigregister(FzIrect)
  21883. class FzJbig2Globals(object):
  21884. r"""Wrapper class for struct `fz_jbig2_globals`."""
  21885. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21886. __repr__ = _swig_repr
  21887. def fz_jbig2_globals_data(self):
  21888. r"""
  21889. Class-aware wrapper for `::fz_jbig2_globals_data()`.
  21890. Return buffer containing jbig2 globals data stream.
  21891. """
  21892. return _mupdf.FzJbig2Globals_fz_jbig2_globals_data(self)
  21893. def __init__(self, *args):
  21894. r"""
  21895. *Overload 1:*
  21896. Copy constructor using `fz_keep_jbig2_globals()`.
  21897. |
  21898. *Overload 2:*
  21899. Default constructor, sets `m_internal` to null.
  21900. |
  21901. *Overload 3:*
  21902. Constructor using raw copy of pre-existing `::fz_jbig2_globals`.
  21903. """
  21904. _mupdf.FzJbig2Globals_swiginit(self, _mupdf.new_FzJbig2Globals(*args))
  21905. __swig_destroy__ = _mupdf.delete_FzJbig2Globals
  21906. def m_internal_value(self):
  21907. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21908. return _mupdf.FzJbig2Globals_m_internal_value(self)
  21909. def __nonzero__(self):
  21910. return _mupdf.FzJbig2Globals___nonzero__(self)
  21911. __bool__ = __nonzero__
  21912. m_internal = property(_mupdf.FzJbig2Globals_m_internal_get, _mupdf.FzJbig2Globals_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21913. s_num_instances = property(_mupdf.FzJbig2Globals_s_num_instances_get, _mupdf.FzJbig2Globals_s_num_instances_set)
  21914. # Register FzJbig2Globals in _mupdf:
  21915. _mupdf.FzJbig2Globals_swigregister(FzJbig2Globals)
  21916. class FzJson(object):
  21917. r"""Wrapper class for struct `fz_json`. Not copyable or assignable."""
  21918. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21919. __repr__ = _swig_repr
  21920. def fz_json_array_length(self):
  21921. r"""Class-aware wrapper for `::fz_json_array_length()`."""
  21922. return _mupdf.FzJson_fz_json_array_length(self)
  21923. def fz_json_is_array(self):
  21924. r"""Class-aware wrapper for `::fz_json_is_array()`."""
  21925. return _mupdf.FzJson_fz_json_is_array(self)
  21926. def fz_json_is_boolean(self):
  21927. r"""Class-aware wrapper for `::fz_json_is_boolean()`."""
  21928. return _mupdf.FzJson_fz_json_is_boolean(self)
  21929. def fz_json_is_null(self):
  21930. r"""Class-aware wrapper for `::fz_json_is_null()`."""
  21931. return _mupdf.FzJson_fz_json_is_null(self)
  21932. def fz_json_is_number(self):
  21933. r"""Class-aware wrapper for `::fz_json_is_number()`."""
  21934. return _mupdf.FzJson_fz_json_is_number(self)
  21935. def fz_json_is_object(self):
  21936. r"""Class-aware wrapper for `::fz_json_is_object()`."""
  21937. return _mupdf.FzJson_fz_json_is_object(self)
  21938. def fz_json_is_string(self):
  21939. r"""Class-aware wrapper for `::fz_json_is_string()`."""
  21940. return _mupdf.FzJson_fz_json_is_string(self)
  21941. def fz_json_to_boolean(self):
  21942. r"""Class-aware wrapper for `::fz_json_to_boolean()`."""
  21943. return _mupdf.FzJson_fz_json_to_boolean(self)
  21944. def fz_json_to_number(self):
  21945. r"""Class-aware wrapper for `::fz_json_to_number()`."""
  21946. return _mupdf.FzJson_fz_json_to_number(self)
  21947. def fz_json_to_string(self):
  21948. r"""Class-aware wrapper for `::fz_json_to_string()`."""
  21949. return _mupdf.FzJson_fz_json_to_string(self)
  21950. def __init__(self, *args):
  21951. r"""
  21952. *Overload 1:*
  21953. Default constructor, sets `m_internal` to null.
  21954. |
  21955. *Overload 2:*
  21956. Constructor using raw copy of pre-existing `::fz_json`.
  21957. """
  21958. _mupdf.FzJson_swiginit(self, _mupdf.new_FzJson(*args))
  21959. __swig_destroy__ = _mupdf.delete_FzJson
  21960. def m_internal_value(self):
  21961. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21962. return _mupdf.FzJson_m_internal_value(self)
  21963. def __nonzero__(self):
  21964. return _mupdf.FzJson___nonzero__(self)
  21965. __bool__ = __nonzero__
  21966. m_internal = property(_mupdf.FzJson_m_internal_get, _mupdf.FzJson_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21967. s_num_instances = property(_mupdf.FzJson_s_num_instances_get, _mupdf.FzJson_s_num_instances_set)
  21968. # Register FzJson in _mupdf:
  21969. _mupdf.FzJson_swigregister(FzJson)
  21970. class FzJsonArray(object):
  21971. r"""Wrapper class for struct `fz_json_array`. Not copyable or assignable."""
  21972. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21973. __repr__ = _swig_repr
  21974. def __init__(self, *args):
  21975. r"""
  21976. *Overload 1:*
  21977. Default constructor, sets `m_internal` to null.
  21978. |
  21979. *Overload 2:*
  21980. Constructor using raw copy of pre-existing `::fz_json_array`.
  21981. """
  21982. _mupdf.FzJsonArray_swiginit(self, _mupdf.new_FzJsonArray(*args))
  21983. __swig_destroy__ = _mupdf.delete_FzJsonArray
  21984. def m_internal_value(self):
  21985. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21986. return _mupdf.FzJsonArray_m_internal_value(self)
  21987. def __nonzero__(self):
  21988. return _mupdf.FzJsonArray___nonzero__(self)
  21989. __bool__ = __nonzero__
  21990. m_internal = property(_mupdf.FzJsonArray_m_internal_get, _mupdf.FzJsonArray_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21991. s_num_instances = property(_mupdf.FzJsonArray_s_num_instances_get, _mupdf.FzJsonArray_s_num_instances_set)
  21992. # Register FzJsonArray in _mupdf:
  21993. _mupdf.FzJsonArray_swigregister(FzJsonArray)
  21994. class FzJsonObject(object):
  21995. r"""Wrapper class for struct `fz_json_object`. Not copyable or assignable."""
  21996. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21997. __repr__ = _swig_repr
  21998. def __init__(self, *args):
  21999. r"""
  22000. *Overload 1:*
  22001. Default constructor, sets `m_internal` to null.
  22002. |
  22003. *Overload 2:*
  22004. Constructor using raw copy of pre-existing `::fz_json_object`.
  22005. """
  22006. _mupdf.FzJsonObject_swiginit(self, _mupdf.new_FzJsonObject(*args))
  22007. __swig_destroy__ = _mupdf.delete_FzJsonObject
  22008. def m_internal_value(self):
  22009. r"""Return numerical value of .m_internal; helps with Python debugging."""
  22010. return _mupdf.FzJsonObject_m_internal_value(self)
  22011. def __nonzero__(self):
  22012. return _mupdf.FzJsonObject___nonzero__(self)
  22013. __bool__ = __nonzero__
  22014. m_internal = property(_mupdf.FzJsonObject_m_internal_get, _mupdf.FzJsonObject_m_internal_set, doc=r"""Pointer to wrapped data.""")
  22015. s_num_instances = property(_mupdf.FzJsonObject_s_num_instances_get, _mupdf.FzJsonObject_s_num_instances_set)
  22016. # Register FzJsonObject in _mupdf:
  22017. _mupdf.FzJsonObject_swigregister(FzJsonObject)
  22018. class FzKeyStorable(object):
  22019. r"""
  22020. Wrapper class for struct `fz_key_storable`.
  22021. Any storable object that can appear in the key of another
  22022. storable object should include an fz_key_storable structure
  22023. at the start (by convention at least) of their structure.
  22024. """
  22025. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22026. __repr__ = _swig_repr
  22027. def __init__(self, *args):
  22028. r"""
  22029. *Overload 1:*
  22030. Copy constructor using `fz_keep_key_storable()`.
  22031. |
  22032. *Overload 2:*
  22033. Default constructor, sets `m_internal` to null.
  22034. |
  22035. *Overload 3:*
  22036. Constructor using raw copy of pre-existing `::fz_key_storable`.
  22037. """
  22038. _mupdf.FzKeyStorable_swiginit(self, _mupdf.new_FzKeyStorable(*args))
  22039. __swig_destroy__ = _mupdf.delete_FzKeyStorable
  22040. def m_internal_value(self):
  22041. r"""Return numerical value of .m_internal; helps with Python debugging."""
  22042. return _mupdf.FzKeyStorable_m_internal_value(self)
  22043. def __nonzero__(self):
  22044. return _mupdf.FzKeyStorable___nonzero__(self)
  22045. __bool__ = __nonzero__
  22046. m_internal = property(_mupdf.FzKeyStorable_m_internal_get, _mupdf.FzKeyStorable_m_internal_set, doc=r"""Pointer to wrapped data.""")
  22047. s_num_instances = property(_mupdf.FzKeyStorable_s_num_instances_get, _mupdf.FzKeyStorable_s_num_instances_set)
  22048. # Register FzKeyStorable in _mupdf:
  22049. _mupdf.FzKeyStorable_swigregister(FzKeyStorable)
  22050. class FzLayoutBlock(object):
  22051. r"""Wrapper class for struct `fz_layout_block`. Not copyable or assignable."""
  22052. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22053. __repr__ = _swig_repr
  22054. def fz_add_layout_char(self, x, w, p):
  22055. r"""
  22056. Class-aware wrapper for `::fz_add_layout_char()`.
  22057. Add a new char to the line at the end of the layout block.
  22058. """
  22059. return _mupdf.FzLayoutBlock_fz_add_layout_char(self, x, w, p)
  22060. def fz_add_layout_line(self, x, y, h, p):
  22061. r"""
  22062. Class-aware wrapper for `::fz_add_layout_line()`.
  22063. Add a new line to the end of the layout block.
  22064. """
  22065. return _mupdf.FzLayoutBlock_fz_add_layout_line(self, x, y, h, p)
  22066. def __init__(self, *args):
  22067. r"""
  22068. *Overload 1:*
  22069. == Constructors. Constructor using `fz_new_layout()`.
  22070. Create a new layout block, with new allocation pool, zero
  22071. matrices, and initialise linked pointers.
  22072. |
  22073. *Overload 2:*
  22074. Constructor using raw copy of pre-existing `::fz_layout_block`.
  22075. """
  22076. _mupdf.FzLayoutBlock_swiginit(self, _mupdf.new_FzLayoutBlock(*args))
  22077. __swig_destroy__ = _mupdf.delete_FzLayoutBlock
  22078. def m_internal_value(self):
  22079. r"""Return numerical value of .m_internal; helps with Python debugging."""
  22080. return _mupdf.FzLayoutBlock_m_internal_value(self)
  22081. def __nonzero__(self):
  22082. return _mupdf.FzLayoutBlock___nonzero__(self)
  22083. __bool__ = __nonzero__
  22084. m_internal = property(_mupdf.FzLayoutBlock_m_internal_get, _mupdf.FzLayoutBlock_m_internal_set, doc=r"""Pointer to wrapped data.""")
  22085. s_num_instances = property(_mupdf.FzLayoutBlock_s_num_instances_get, _mupdf.FzLayoutBlock_s_num_instances_set)
  22086. # Register FzLayoutBlock in _mupdf:
  22087. _mupdf.FzLayoutBlock_swigregister(FzLayoutBlock)
  22088. class FzLayoutChar(object):
  22089. r"""
  22090. Wrapper class for struct `fz_layout_char`. Not copyable or assignable.
  22091. Simple text layout (for use with annotation editing primarily).
  22092. """
  22093. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22094. __repr__ = _swig_repr
  22095. def __init__(self, *args):
  22096. r"""
  22097. *Overload 1:*
  22098. Default constructor, sets `m_internal` to null.
  22099. |
  22100. *Overload 2:*
  22101. Constructor using raw copy of pre-existing `::fz_layout_char`.
  22102. """
  22103. _mupdf.FzLayoutChar_swiginit(self, _mupdf.new_FzLayoutChar(*args))
  22104. __swig_destroy__ = _mupdf.delete_FzLayoutChar
  22105. def m_internal_value(self):
  22106. r"""Return numerical value of .m_internal; helps with Python debugging."""
  22107. return _mupdf.FzLayoutChar_m_internal_value(self)
  22108. def __nonzero__(self):
  22109. return _mupdf.FzLayoutChar___nonzero__(self)
  22110. __bool__ = __nonzero__
  22111. m_internal = property(_mupdf.FzLayoutChar_m_internal_get, _mupdf.FzLayoutChar_m_internal_set, doc=r"""Pointer to wrapped data.""")
  22112. s_num_instances = property(_mupdf.FzLayoutChar_s_num_instances_get, _mupdf.FzLayoutChar_s_num_instances_set)
  22113. # Register FzLayoutChar in _mupdf:
  22114. _mupdf.FzLayoutChar_swigregister(FzLayoutChar)
  22115. class FzLayoutLine(object):
  22116. r"""Wrapper class for struct `fz_layout_line`. Not copyable or assignable."""
  22117. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22118. __repr__ = _swig_repr
  22119. def __init__(self, *args):
  22120. r"""
  22121. *Overload 1:*
  22122. Default constructor, sets `m_internal` to null.
  22123. |
  22124. *Overload 2:*
  22125. Constructor using raw copy of pre-existing `::fz_layout_line`.
  22126. """
  22127. _mupdf.FzLayoutLine_swiginit(self, _mupdf.new_FzLayoutLine(*args))
  22128. __swig_destroy__ = _mupdf.delete_FzLayoutLine
  22129. def m_internal_value(self):
  22130. r"""Return numerical value of .m_internal; helps with Python debugging."""
  22131. return _mupdf.FzLayoutLine_m_internal_value(self)
  22132. def __nonzero__(self):
  22133. return _mupdf.FzLayoutLine___nonzero__(self)
  22134. __bool__ = __nonzero__
  22135. m_internal = property(_mupdf.FzLayoutLine_m_internal_get, _mupdf.FzLayoutLine_m_internal_set, doc=r"""Pointer to wrapped data.""")
  22136. s_num_instances = property(_mupdf.FzLayoutLine_s_num_instances_get, _mupdf.FzLayoutLine_s_num_instances_set)
  22137. # Register FzLayoutLine in _mupdf:
  22138. _mupdf.FzLayoutLine_swigregister(FzLayoutLine)
  22139. class FzLink(object):
  22140. r"""
  22141. Wrapper class for struct `fz_link`.
  22142. fz_link is a list of interactive links on a page.
  22143. There is no relation between the order of the links in the
  22144. list and the order they appear on the page. The list of links
  22145. for a given page can be obtained from fz_load_links.
  22146. A link is reference counted. Dropping a reference to a link is
  22147. done by calling fz_drop_link.
  22148. rect: The hot zone. The area that can be clicked in
  22149. untransformed coordinates.
  22150. uri: Link destinations come in two forms: internal and external.
  22151. Internal links refer to other pages in the same document.
  22152. External links are URLs to other documents.
  22153. next: A pointer to the next link on the same page.
  22154. """
  22155. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22156. __repr__ = _swig_repr
  22157. def fz_set_link_rect(self, rect):
  22158. r"""Class-aware wrapper for `::fz_set_link_rect()`."""
  22159. return _mupdf.FzLink_fz_set_link_rect(self, rect)
  22160. def fz_set_link_uri(self, uri):
  22161. r"""Class-aware wrapper for `::fz_set_link_uri()`."""
  22162. return _mupdf.FzLink_fz_set_link_uri(self, uri)
  22163. def begin(self):
  22164. r"""Used for iteration over linked list of FzLink items starting at fz_link::."""
  22165. return _mupdf.FzLink_begin(self)
  22166. def end(self):
  22167. r"""Used for iteration over linked list of FzLink items starting at fz_link::."""
  22168. return _mupdf.FzLink_end(self)
  22169. def __init__(self, *args):
  22170. r"""
  22171. *Overload 1:*
  22172. == Constructors. Constructor using `fz_new_link_of_size()`.
  22173. Create a new link record.
  22174. next is set to NULL with the expectation that the caller will
  22175. handle the linked list setup. Internal function.
  22176. Different document types will be implemented by deriving from
  22177. fz_link. This macro allocates such derived structures, and
  22178. initialises the base sections.
  22179. |
  22180. *Overload 2:*
  22181. Constructor using `pdf_new_link()`.
  22182. |
  22183. *Overload 3:*
  22184. Construct by calling fz_new_link_of_size() with size=sizeof(fz_link).
  22185. |
  22186. *Overload 4:*
  22187. Copy constructor using `fz_keep_link()`.
  22188. |
  22189. *Overload 5:*
  22190. Constructor using raw copy of pre-existing `::fz_link`.
  22191. |
  22192. *Overload 6:*
  22193. Constructor using raw copy of pre-existing `::fz_link`.
  22194. """
  22195. _mupdf.FzLink_swiginit(self, _mupdf.new_FzLink(*args))
  22196. def refs(self):
  22197. return _mupdf.FzLink_refs(self)
  22198. def next(self):
  22199. return _mupdf.FzLink_next(self)
  22200. def rect(self):
  22201. return _mupdf.FzLink_rect(self)
  22202. def uri(self):
  22203. return _mupdf.FzLink_uri(self)
  22204. __swig_destroy__ = _mupdf.delete_FzLink
  22205. def m_internal_value(self):
  22206. r"""Return numerical value of .m_internal; helps with Python debugging."""
  22207. return _mupdf.FzLink_m_internal_value(self)
  22208. def __nonzero__(self):
  22209. return _mupdf.FzLink___nonzero__(self)
  22210. __bool__ = __nonzero__
  22211. m_internal = property(_mupdf.FzLink_m_internal_get, _mupdf.FzLink_m_internal_set, doc=r"""Pointer to wrapped data.""")
  22212. s_num_instances = property(_mupdf.FzLink_s_num_instances_get, _mupdf.FzLink_s_num_instances_set)
  22213. # Register FzLink in _mupdf:
  22214. _mupdf.FzLink_swigregister(FzLink)
  22215. class FzLinkDest(object):
  22216. r"""Wrapper class for struct `fz_link_dest`. Not copyable or assignable."""
  22217. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22218. __repr__ = _swig_repr
  22219. def pdf_new_uri_from_explicit_dest(self):
  22220. r"""Class-aware wrapper for `::pdf_new_uri_from_explicit_dest()`."""
  22221. return _mupdf.FzLinkDest_pdf_new_uri_from_explicit_dest(self)
  22222. def __init__(self, *args):
  22223. r"""
  22224. *Overload 1:*
  22225. Default constructor, sets `m_internal` to null.
  22226. |
  22227. *Overload 2:*
  22228. Constructor using raw copy of pre-existing `::fz_link_dest`.
  22229. """
  22230. _mupdf.FzLinkDest_swiginit(self, _mupdf.new_FzLinkDest(*args))
  22231. __swig_destroy__ = _mupdf.delete_FzLinkDest
  22232. def m_internal_value(self):
  22233. r"""Return numerical value of .m_internal; helps with Python debugging."""
  22234. return _mupdf.FzLinkDest_m_internal_value(self)
  22235. def __nonzero__(self):
  22236. return _mupdf.FzLinkDest___nonzero__(self)
  22237. __bool__ = __nonzero__
  22238. m_internal = property(_mupdf.FzLinkDest_m_internal_get, _mupdf.FzLinkDest_m_internal_set, doc=r"""Pointer to wrapped data.""")
  22239. s_num_instances = property(_mupdf.FzLinkDest_s_num_instances_get, _mupdf.FzLinkDest_s_num_instances_set)
  22240. # Register FzLinkDest in _mupdf:
  22241. _mupdf.FzLinkDest_swigregister(FzLinkDest)
  22242. class FzLocation(object):
  22243. r"""
  22244. Wrapper class for struct `fz_location`.
  22245. Locations within the document are referred to in terms of
  22246. chapter and page, rather than just a page number. For some
  22247. documents (such as epub documents with large numbers of pages
  22248. broken into many chapters) this can make navigation much faster
  22249. as only the required chapter needs to be decoded at a time.
  22250. """
  22251. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22252. __repr__ = _swig_repr
  22253. def __init__(self, *args):
  22254. r"""
  22255. *Overload 1:*
  22256. == Constructors. Constructor using `fz_make_location()`.
  22257. Simple constructor for fz_locations.
  22258. |
  22259. *Overload 2:*
  22260. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  22261. |
  22262. *Overload 3:*
  22263. Constructor using raw copy of pre-existing `::fz_location`.
  22264. |
  22265. *Overload 4:*
  22266. Constructor using raw copy of pre-existing `::fz_location`.
  22267. """
  22268. _mupdf.FzLocation_swiginit(self, _mupdf.new_FzLocation(*args))
  22269. def internal(self, *args):
  22270. r"""
  22271. *Overload 1:*
  22272. Access as underlying struct.
  22273. |
  22274. *Overload 2:*
  22275. Access as underlying struct.
  22276. """
  22277. return _mupdf.FzLocation_internal(self, *args)
  22278. __swig_destroy__ = _mupdf.delete_FzLocation
  22279. chapter = property(_mupdf.FzLocation_chapter_get, _mupdf.FzLocation_chapter_set)
  22280. page = property(_mupdf.FzLocation_page_get, _mupdf.FzLocation_page_set)
  22281. s_num_instances = property(_mupdf.FzLocation_s_num_instances_get, _mupdf.FzLocation_s_num_instances_set)
  22282. def to_string(self):
  22283. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  22284. return _mupdf.FzLocation_to_string(self)
  22285. def __eq__(self, rhs):
  22286. r"""Comparison method."""
  22287. return _mupdf.FzLocation___eq__(self, rhs)
  22288. def __ne__(self, rhs):
  22289. r"""Comparison method."""
  22290. return _mupdf.FzLocation___ne__(self, rhs)
  22291. # Register FzLocation in _mupdf:
  22292. _mupdf.FzLocation_swigregister(FzLocation)
  22293. class FzLocksContext(object):
  22294. r"""
  22295. Wrapper class for struct `fz_locks_context`. Not copyable or assignable.
  22296. Locking functions
  22297. MuPDF is kept deliberately free of any knowledge of particular
  22298. threading systems. As such, in order for safe multi-threaded
  22299. operation, we rely on callbacks to client provided functions.
  22300. A client is expected to provide FZ_LOCK_MAX number of mutexes,
  22301. and a function to lock/unlock each of them. These may be
  22302. recursive mutexes, but do not have to be.
  22303. If a client does not intend to use multiple threads, then it
  22304. may pass NULL instead of a lock structure.
  22305. In order to avoid deadlocks, we have one simple rule
  22306. internally as to how we use locks: We can never take lock n
  22307. when we already hold any lock i, where 0 <= i <= n. In order
  22308. to verify this, we have some debugging code, that can be
  22309. enabled by defining FITZ_DEBUG_LOCKING.
  22310. """
  22311. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22312. __repr__ = _swig_repr
  22313. def __init__(self, *args):
  22314. r"""
  22315. *Overload 1:*
  22316. Default constructor, sets `m_internal` to null.
  22317. |
  22318. *Overload 2:*
  22319. Constructor using raw copy of pre-existing `::fz_locks_context`.
  22320. """
  22321. _mupdf.FzLocksContext_swiginit(self, _mupdf.new_FzLocksContext(*args))
  22322. __swig_destroy__ = _mupdf.delete_FzLocksContext
  22323. def m_internal_value(self):
  22324. r"""Return numerical value of .m_internal; helps with Python debugging."""
  22325. return _mupdf.FzLocksContext_m_internal_value(self)
  22326. def __nonzero__(self):
  22327. return _mupdf.FzLocksContext___nonzero__(self)
  22328. __bool__ = __nonzero__
  22329. m_internal = property(_mupdf.FzLocksContext_m_internal_get, _mupdf.FzLocksContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  22330. s_num_instances = property(_mupdf.FzLocksContext_s_num_instances_get, _mupdf.FzLocksContext_s_num_instances_set)
  22331. # Register FzLocksContext in _mupdf:
  22332. _mupdf.FzLocksContext_swigregister(FzLocksContext)
  22333. class FzMatrix(object):
  22334. r"""
  22335. Wrapper class for struct `fz_matrix`.
  22336. fz_matrix is a row-major 3x3 matrix used for representing
  22337. transformations of coordinates throughout MuPDF.
  22338. Since all points reside in a two-dimensional space, one vector
  22339. is always a constant unit vector; hence only some elements may
  22340. vary in a matrix. Below is how the elements map between
  22341. different representations.
  22342. a b 0
  22343. | c d 0 | normally represented as [ a b c d e f ].
  22344. \ e f 1 /
  22345. """
  22346. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22347. __repr__ = _swig_repr
  22348. @staticmethod
  22349. def fz_scale(sx, sy):
  22350. r"""
  22351. Class-aware wrapper for `::fz_scale()`.
  22352. Create a scaling matrix.
  22353. The returned matrix is of the form [ sx 0 0 sy 0 0 ].
  22354. m: Pointer to the matrix to populate
  22355. sx, sy: Scaling factors along the X- and Y-axes. A scaling
  22356. factor of 1.0 will not cause any scaling along the relevant
  22357. axis.
  22358. Returns m.
  22359. """
  22360. return _mupdf.FzMatrix_fz_scale(sx, sy)
  22361. @staticmethod
  22362. def fz_shear(sx, sy):
  22363. r"""
  22364. Class-aware wrapper for `::fz_shear()`.
  22365. Create a shearing matrix.
  22366. The returned matrix is of the form [ 1 sy sx 1 0 0 ].
  22367. m: pointer to place to store returned matrix
  22368. sx, sy: Shearing factors. A shearing factor of 0.0 will not
  22369. cause any shearing along the relevant axis.
  22370. Returns m.
  22371. """
  22372. return _mupdf.FzMatrix_fz_shear(sx, sy)
  22373. @staticmethod
  22374. def fz_rotate(degrees):
  22375. r"""
  22376. Class-aware wrapper for `::fz_rotate()`.
  22377. Create a rotation matrix.
  22378. The returned matrix is of the form
  22379. [ cos(deg) sin(deg) -sin(deg) cos(deg) 0 0 ].
  22380. m: Pointer to place to store matrix
  22381. degrees: Degrees of counter clockwise rotation. Values less
  22382. than zero and greater than 360 are handled as expected.
  22383. Returns m.
  22384. """
  22385. return _mupdf.FzMatrix_fz_rotate(degrees)
  22386. @staticmethod
  22387. def fz_translate(tx, ty):
  22388. r"""
  22389. Class-aware wrapper for `::fz_translate()`.
  22390. Create a translation matrix.
  22391. The returned matrix is of the form [ 1 0 0 1 tx ty ].
  22392. m: A place to store the created matrix.
  22393. tx, ty: Translation distances along the X- and Y-axes. A
  22394. translation of 0 will not cause any translation along the
  22395. relevant axis.
  22396. Returns m.
  22397. """
  22398. return _mupdf.FzMatrix_fz_translate(tx, ty)
  22399. @staticmethod
  22400. def fz_transform_page(mediabox, resolution, rotate):
  22401. r"""
  22402. Class-aware wrapper for `::fz_transform_page()`.
  22403. Create transform matrix to draw page
  22404. at a given resolution and rotation. Adjusts the scaling
  22405. factors so that the page covers whole number of
  22406. pixels and adjust the page origin to be at 0,0.
  22407. """
  22408. return _mupdf.FzMatrix_fz_transform_page(mediabox, resolution, rotate)
  22409. def fz_concat(self, *args):
  22410. r"""
  22411. *Overload 1:*
  22412. We use default copy constructor and operator=. Class-aware wrapper for `::fz_concat()`.
  22413. Multiply two matrices.
  22414. The order of the two matrices are important since matrix
  22415. multiplication is not commutative.
  22416. Returns result.
  22417. |
  22418. *Overload 2:*
  22419. Class-aware wrapper for `::fz_concat()`.
  22420. Multiply two matrices.
  22421. The order of the two matrices are important since matrix
  22422. multiplication is not commutative.
  22423. Returns result.
  22424. """
  22425. return _mupdf.FzMatrix_fz_concat(self, *args)
  22426. def fz_invert_matrix(self):
  22427. r"""
  22428. Class-aware wrapper for `::fz_invert_matrix()`.
  22429. Create an inverse matrix.
  22430. matrix: Matrix to invert. A degenerate matrix, where the
  22431. determinant is equal to zero, can not be inverted and the
  22432. original matrix is returned instead.
  22433. Returns inverse.
  22434. """
  22435. return _mupdf.FzMatrix_fz_invert_matrix(self)
  22436. def fz_is_identity(self):
  22437. r"""Class-aware wrapper for `::fz_is_identity()`."""
  22438. return _mupdf.FzMatrix_fz_is_identity(self)
  22439. def fz_is_rectilinear(self):
  22440. r"""
  22441. Class-aware wrapper for `::fz_is_rectilinear()`.
  22442. Check if a transformation is rectilinear.
  22443. Rectilinear means that no shearing is present and that any
  22444. rotations present are a multiple of 90 degrees. Usually this
  22445. is used to make sure that axis-aligned rectangles before the
  22446. transformation are still axis-aligned rectangles afterwards.
  22447. """
  22448. return _mupdf.FzMatrix_fz_is_rectilinear(self)
  22449. def fz_matrix_expansion(self):
  22450. r"""
  22451. Class-aware wrapper for `::fz_matrix_expansion()`.
  22452. Calculate average scaling factor of matrix.
  22453. """
  22454. return _mupdf.FzMatrix_fz_matrix_expansion(self)
  22455. def fz_matrix_max_expansion(self):
  22456. r"""
  22457. Class-aware wrapper for `::fz_matrix_max_expansion()`.
  22458. Find the largest expansion performed by this matrix.
  22459. (i.e. max(abs(m.a),abs(m.b),abs(m.c),abs(m.d))
  22460. """
  22461. return _mupdf.FzMatrix_fz_matrix_max_expansion(self)
  22462. def fz_post_scale(self, sx, sy):
  22463. r"""
  22464. Class-aware wrapper for `::fz_post_scale()`.
  22465. Scale a matrix by postmultiplication.
  22466. m: Pointer to the matrix to scale
  22467. sx, sy: Scaling factors along the X- and Y-axes. A scaling
  22468. factor of 1.0 will not cause any scaling along the relevant
  22469. axis.
  22470. Returns m (updated).
  22471. """
  22472. return _mupdf.FzMatrix_fz_post_scale(self, sx, sy)
  22473. def fz_pre_rotate(self, degrees):
  22474. r"""
  22475. Class-aware wrapper for `::fz_pre_rotate()`.
  22476. Rotate a transformation by premultiplying.
  22477. The premultiplied matrix is of the form
  22478. [ cos(deg) sin(deg) -sin(deg) cos(deg) 0 0 ].
  22479. m: Pointer to matrix to premultiply.
  22480. degrees: Degrees of counter clockwise rotation. Values less
  22481. than zero and greater than 360 are handled as expected.
  22482. Returns m (updated).
  22483. """
  22484. return _mupdf.FzMatrix_fz_pre_rotate(self, degrees)
  22485. def fz_pre_scale(self, sx, sy):
  22486. r"""
  22487. Class-aware wrapper for `::fz_pre_scale()`.
  22488. Scale a matrix by premultiplication.
  22489. m: Pointer to the matrix to scale
  22490. sx, sy: Scaling factors along the X- and Y-axes. A scaling
  22491. factor of 1.0 will not cause any scaling along the relevant
  22492. axis.
  22493. Returns m (updated).
  22494. """
  22495. return _mupdf.FzMatrix_fz_pre_scale(self, sx, sy)
  22496. def fz_pre_shear(self, sx, sy):
  22497. r"""
  22498. Class-aware wrapper for `::fz_pre_shear()`.
  22499. Premultiply a matrix with a shearing matrix.
  22500. The shearing matrix is of the form [ 1 sy sx 1 0 0 ].
  22501. m: pointer to matrix to premultiply
  22502. sx, sy: Shearing factors. A shearing factor of 0.0 will not
  22503. cause any shearing along the relevant axis.
  22504. Returns m (updated).
  22505. """
  22506. return _mupdf.FzMatrix_fz_pre_shear(self, sx, sy)
  22507. def fz_pre_translate(self, tx, ty):
  22508. r"""
  22509. Class-aware wrapper for `::fz_pre_translate()`.
  22510. Translate a matrix by premultiplication.
  22511. m: The matrix to translate
  22512. tx, ty: Translation distances along the X- and Y-axes. A
  22513. translation of 0 will not cause any translation along the
  22514. relevant axis.
  22515. Returns m.
  22516. """
  22517. return _mupdf.FzMatrix_fz_pre_translate(self, tx, ty)
  22518. def fz_subpixel_adjust(self, subpix_ctm, qe, qf):
  22519. r"""
  22520. Class-aware wrapper for `::fz_subpixel_adjust()`.
  22521. Perform subpixel quantisation and adjustment on a glyph matrix.
  22522. ctm: On entry, the desired 'ideal' transformation for a glyph.
  22523. On exit, adjusted to a (very similar) transformation quantised
  22524. for subpixel caching.
  22525. subpix_ctm: Initialised by the routine to the transform that
  22526. should be used to render the glyph.
  22527. qe, qf: which subpixel position we quantised to.
  22528. Returns: the size of the glyph.
  22529. Note: This is currently only exposed for use in our app. It
  22530. should be considered "at risk" of removal from the API.
  22531. """
  22532. return _mupdf.FzMatrix_fz_subpixel_adjust(self, subpix_ctm, qe, qf)
  22533. def fz_try_invert_matrix(self, src):
  22534. r"""
  22535. Class-aware wrapper for `::fz_try_invert_matrix()`.
  22536. Attempt to create an inverse matrix.
  22537. inv: Place to store inverse matrix.
  22538. src: Matrix to invert. A degenerate matrix, where the
  22539. determinant is equal to zero, can not be inverted.
  22540. Returns 1 if matrix is degenerate (singular), or 0 otherwise.
  22541. """
  22542. return _mupdf.FzMatrix_fz_try_invert_matrix(self, src)
  22543. def __init__(self, *args):
  22544. r"""
  22545. *Overload 1:*
  22546. == Constructors. Constructor using `fz_make_matrix()`.
  22547. |
  22548. *Overload 2:*
  22549. Constructs identity matrix (like fz_identity).
  22550. |
  22551. *Overload 3:*
  22552. Constructor using raw copy of pre-existing `::fz_matrix`.
  22553. |
  22554. *Overload 4:*
  22555. Constructor using raw copy of pre-existing `::fz_matrix`.
  22556. """
  22557. _mupdf.FzMatrix_swiginit(self, _mupdf.new_FzMatrix(*args))
  22558. def internal(self, *args):
  22559. r"""
  22560. *Overload 1:*
  22561. Access as underlying struct.
  22562. |
  22563. *Overload 2:*
  22564. Access as underlying struct.
  22565. """
  22566. return _mupdf.FzMatrix_internal(self, *args)
  22567. __swig_destroy__ = _mupdf.delete_FzMatrix
  22568. a = property(_mupdf.FzMatrix_a_get, _mupdf.FzMatrix_a_set)
  22569. b = property(_mupdf.FzMatrix_b_get, _mupdf.FzMatrix_b_set)
  22570. c = property(_mupdf.FzMatrix_c_get, _mupdf.FzMatrix_c_set)
  22571. d = property(_mupdf.FzMatrix_d_get, _mupdf.FzMatrix_d_set)
  22572. e = property(_mupdf.FzMatrix_e_get, _mupdf.FzMatrix_e_set)
  22573. f = property(_mupdf.FzMatrix_f_get, _mupdf.FzMatrix_f_set)
  22574. s_num_instances = property(_mupdf.FzMatrix_s_num_instances_get, _mupdf.FzMatrix_s_num_instances_set)
  22575. def to_string(self):
  22576. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  22577. return _mupdf.FzMatrix_to_string(self)
  22578. def __eq__(self, rhs):
  22579. r"""Comparison method."""
  22580. return _mupdf.FzMatrix___eq__(self, rhs)
  22581. def __ne__(self, rhs):
  22582. r"""Comparison method."""
  22583. return _mupdf.FzMatrix___ne__(self, rhs)
  22584. # Register FzMatrix in _mupdf:
  22585. _mupdf.FzMatrix_swigregister(FzMatrix)
  22586. class FzMd5(object):
  22587. r"""
  22588. Wrapper class for struct `fz_md5`.
  22589. Structure definition is public to enable stack
  22590. based allocation. Do not access the members directly.
  22591. """
  22592. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22593. __repr__ = _swig_repr
  22594. def fz_md5_final(self, digest):
  22595. r"""
  22596. We use default copy constructor and operator=. Class-aware wrapper for `::fz_md5_final()`.
  22597. MD5 finalization. Ends an MD5 message-digest operation, writing
  22598. the message digest and zeroizing the context.
  22599. Never throws an exception.
  22600. """
  22601. return _mupdf.FzMd5_fz_md5_final(self, digest)
  22602. def fz_md5_final2(self):
  22603. r"""
  22604. Class-aware wrapper for `::fz_md5_final2()`.
  22605. C++ alternative to fz_md5_final() that returns the digest by value.
  22606. """
  22607. return _mupdf.FzMd5_fz_md5_final2(self)
  22608. def fz_md5_init(self):
  22609. r"""
  22610. Class-aware wrapper for `::fz_md5_init()`.
  22611. MD5 initialization. Begins an MD5 operation, writing a new
  22612. context.
  22613. Never throws an exception.
  22614. """
  22615. return _mupdf.FzMd5_fz_md5_init(self)
  22616. def fz_md5_update(self, input, inlen):
  22617. r"""
  22618. Class-aware wrapper for `::fz_md5_update()`.
  22619. MD5 block update operation. Continues an MD5 message-digest
  22620. operation, processing another message block, and updating the
  22621. context.
  22622. Never throws an exception.
  22623. """
  22624. return _mupdf.FzMd5_fz_md5_update(self, input, inlen)
  22625. def fz_md5_update_int64(self, i):
  22626. r"""
  22627. Class-aware wrapper for `::fz_md5_update_int64()`.
  22628. MD5 block update operation. Continues an MD5 message-digest
  22629. operation, processing an int64, and updating the context.
  22630. Never throws an exception.
  22631. """
  22632. return _mupdf.FzMd5_fz_md5_update_int64(self, i)
  22633. def __init__(self, *args):
  22634. r"""
  22635. *Overload 1:*
  22636. Default constructor calls md5_init().
  22637. |
  22638. *Overload 2:*
  22639. Constructor using raw copy of pre-existing `::fz_md5`.
  22640. """
  22641. _mupdf.FzMd5_swiginit(self, _mupdf.new_FzMd5(*args))
  22642. def lo(self):
  22643. return _mupdf.FzMd5_lo(self)
  22644. def hi(self):
  22645. return _mupdf.FzMd5_hi(self)
  22646. def a(self):
  22647. return _mupdf.FzMd5_a(self)
  22648. def b(self):
  22649. return _mupdf.FzMd5_b(self)
  22650. def c(self):
  22651. return _mupdf.FzMd5_c(self)
  22652. def d(self):
  22653. return _mupdf.FzMd5_d(self)
  22654. def buffer(self):
  22655. return _mupdf.FzMd5_buffer(self)
  22656. __swig_destroy__ = _mupdf.delete_FzMd5
  22657. m_internal = property(_mupdf.FzMd5_m_internal_get, _mupdf.FzMd5_m_internal_set)
  22658. s_num_instances = property(_mupdf.FzMd5_s_num_instances_get, _mupdf.FzMd5_s_num_instances_set, doc=r"""Wrapped data is held by value.""")
  22659. def to_string(self):
  22660. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  22661. return _mupdf.FzMd5_to_string(self)
  22662. def __eq__(self, rhs):
  22663. r"""Comparison method."""
  22664. return _mupdf.FzMd5___eq__(self, rhs)
  22665. def __ne__(self, rhs):
  22666. r"""Comparison method."""
  22667. return _mupdf.FzMd5___ne__(self, rhs)
  22668. # Register FzMd5 in _mupdf:
  22669. _mupdf.FzMd5_swigregister(FzMd5)
  22670. class FzOutline(object):
  22671. r"""
  22672. Wrapper class for struct `fz_outline`.
  22673. fz_outline is a tree of the outline of a document (also known
  22674. as table of contents).
  22675. title: Title of outline item using UTF-8 encoding. May be NULL
  22676. if the outline item has no text string.
  22677. uri: Destination in the document to be displayed when this
  22678. outline item is activated. May be an internal or external
  22679. link, or NULL if the outline item does not have a destination.
  22680. page: The page number of an internal link, or -1 for external
  22681. links or links with no destination.
  22682. next: The next outline item at the same level as this outline
  22683. item. May be NULL if no more outline items exist at this level.
  22684. down: The outline items immediate children in the hierarchy.
  22685. May be NULL if no children exist.
  22686. is_open: If zero, the outline element is closed in the UI. If
  22687. 1, it should be open, showing any child elements.
  22688. flags: Bit 0 set -> Bold, Bit 1 set -> Italic. All other bits
  22689. reserved.
  22690. r, g, b: The RGB components of the color of this entry.
  22691. """
  22692. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22693. __repr__ = _swig_repr
  22694. def __init__(self, *args):
  22695. r"""
  22696. *Overload 1:*
  22697. == Constructors. Constructor using `fz_load_outline()`.
  22698. Load the hierarchical document outline.
  22699. Should be freed by fz_drop_outline.
  22700. |
  22701. *Overload 2:*
  22702. Constructor using `fz_load_outline_from_iterator()`.
  22703. Routine to implement the old Structure based API from an iterator.
  22704. |
  22705. *Overload 3:*
  22706. Constructor using `fz_new_outline()`.
  22707. Create a new outline entry with zeroed fields for the caller
  22708. to fill in.
  22709. |
  22710. *Overload 4:*
  22711. Copy constructor using `fz_keep_outline()`.
  22712. |
  22713. *Overload 5:*
  22714. Constructor using raw copy of pre-existing `::fz_outline`.
  22715. """
  22716. _mupdf.FzOutline_swiginit(self, _mupdf.new_FzOutline(*args))
  22717. def refs(self):
  22718. return _mupdf.FzOutline_refs(self)
  22719. def title(self):
  22720. return _mupdf.FzOutline_title(self)
  22721. def uri(self):
  22722. return _mupdf.FzOutline_uri(self)
  22723. def page(self):
  22724. return _mupdf.FzOutline_page(self)
  22725. def x(self):
  22726. return _mupdf.FzOutline_x(self)
  22727. def y(self):
  22728. return _mupdf.FzOutline_y(self)
  22729. def next(self):
  22730. return _mupdf.FzOutline_next(self)
  22731. def down(self):
  22732. return _mupdf.FzOutline_down(self)
  22733. def is_open(self):
  22734. return _mupdf.FzOutline_is_open(self)
  22735. def flags(self):
  22736. return _mupdf.FzOutline_flags(self)
  22737. def r(self):
  22738. return _mupdf.FzOutline_r(self)
  22739. def g(self):
  22740. return _mupdf.FzOutline_g(self)
  22741. def b(self):
  22742. return _mupdf.FzOutline_b(self)
  22743. __swig_destroy__ = _mupdf.delete_FzOutline
  22744. def m_internal_value(self):
  22745. r"""Return numerical value of .m_internal; helps with Python debugging."""
  22746. return _mupdf.FzOutline_m_internal_value(self)
  22747. def __nonzero__(self):
  22748. return _mupdf.FzOutline___nonzero__(self)
  22749. __bool__ = __nonzero__
  22750. m_internal = property(_mupdf.FzOutline_m_internal_get, _mupdf.FzOutline_m_internal_set, doc=r"""Pointer to wrapped data.""")
  22751. s_num_instances = property(_mupdf.FzOutline_s_num_instances_get, _mupdf.FzOutline_s_num_instances_set)
  22752. # Register FzOutline in _mupdf:
  22753. _mupdf.FzOutline_swigregister(FzOutline)
  22754. class FzOutlineItem(object):
  22755. r"""Wrapper class for struct `fz_outline_item`."""
  22756. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22757. __repr__ = _swig_repr
  22758. def valid(self):
  22759. return _mupdf.FzOutlineItem_valid(self)
  22760. def title(self):
  22761. return _mupdf.FzOutlineItem_title(self)
  22762. def uri(self):
  22763. return _mupdf.FzOutlineItem_uri(self)
  22764. def is_open(self):
  22765. return _mupdf.FzOutlineItem_is_open(self)
  22766. def __init__(self, *args):
  22767. r"""
  22768. *Overload 1:*
  22769. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  22770. |
  22771. *Overload 2:*
  22772. Constructor using raw copy of pre-existing `::fz_outline_item`.
  22773. """
  22774. _mupdf.FzOutlineItem_swiginit(self, _mupdf.new_FzOutlineItem(*args))
  22775. __swig_destroy__ = _mupdf.delete_FzOutlineItem
  22776. s_num_instances = property(_mupdf.FzOutlineItem_s_num_instances_get, _mupdf.FzOutlineItem_s_num_instances_set)
  22777. # Register FzOutlineItem in _mupdf:
  22778. _mupdf.FzOutlineItem_swigregister(FzOutlineItem)
  22779. class FzOutlineIterator(object):
  22780. r"""Wrapper class for struct `fz_outline_iterator`. Not copyable or assignable."""
  22781. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22782. __repr__ = _swig_repr
  22783. def fz_load_outline_from_iterator(self):
  22784. r"""
  22785. Class-aware wrapper for `::fz_load_outline_from_iterator()`.
  22786. Routine to implement the old Structure based API from an iterator.
  22787. """
  22788. return _mupdf.FzOutlineIterator_fz_load_outline_from_iterator(self)
  22789. def fz_outline_iterator_delete(self):
  22790. r"""
  22791. Class-aware wrapper for `::fz_outline_iterator_delete()`.
  22792. Delete the current item.
  22793. This implicitly moves us to the 'next' item, and the return code is as for fz_outline_iterator_next.
  22794. """
  22795. return _mupdf.FzOutlineIterator_fz_outline_iterator_delete(self)
  22796. def fz_outline_iterator_down(self):
  22797. r"""Class-aware wrapper for `::fz_outline_iterator_down()`."""
  22798. return _mupdf.FzOutlineIterator_fz_outline_iterator_down(self)
  22799. def fz_outline_iterator_item(self):
  22800. r"""
  22801. Class-aware wrapper for `::fz_outline_iterator_item()`.
  22802. Call to get the current outline item.
  22803. Can return NULL. The item is only valid until the next call.
  22804. """
  22805. return _mupdf.FzOutlineIterator_fz_outline_iterator_item(self)
  22806. def fz_outline_iterator_next(self):
  22807. r"""
  22808. Class-aware wrapper for `::fz_outline_iterator_next()`.
  22809. Calls to move the iterator position.
  22810. A negative return value means we could not move as requested. Otherwise:
  22811. 0 = the final position has a valid item.
  22812. 1 = not a valid item, but we can insert an item here.
  22813. """
  22814. return _mupdf.FzOutlineIterator_fz_outline_iterator_next(self)
  22815. def fz_outline_iterator_prev(self):
  22816. r"""Class-aware wrapper for `::fz_outline_iterator_prev()`."""
  22817. return _mupdf.FzOutlineIterator_fz_outline_iterator_prev(self)
  22818. def fz_outline_iterator_up(self):
  22819. r"""Class-aware wrapper for `::fz_outline_iterator_up()`."""
  22820. return _mupdf.FzOutlineIterator_fz_outline_iterator_up(self)
  22821. def fz_outline_iterator_insert(self, item):
  22822. r"""Custom wrapper for fz_outline_iterator_insert()."""
  22823. return _mupdf.FzOutlineIterator_fz_outline_iterator_insert(self, item)
  22824. def fz_outline_iterator_update(self, item):
  22825. r"""Custom wrapper for fz_outline_iterator_update()."""
  22826. return _mupdf.FzOutlineIterator_fz_outline_iterator_update(self, item)
  22827. def __init__(self, *args):
  22828. r"""
  22829. *Overload 1:*
  22830. == Constructors. Constructor using `fz_new_outline_iterator()`.
  22831. Get an iterator for the document outline.
  22832. Should be freed by fz_drop_outline_iterator.
  22833. |
  22834. *Overload 2:*
  22835. Constructor using `fz_new_outline_iterator_of_size()`.
  22836. |
  22837. *Overload 3:*
  22838. Constructor using `pdf_new_outline_iterator()`.
  22839. |
  22840. *Overload 4:*
  22841. Default constructor, sets `m_internal` to null.
  22842. |
  22843. *Overload 5:*
  22844. Constructor using raw copy of pre-existing `::fz_outline_iterator`.
  22845. """
  22846. _mupdf.FzOutlineIterator_swiginit(self, _mupdf.new_FzOutlineIterator(*args))
  22847. __swig_destroy__ = _mupdf.delete_FzOutlineIterator
  22848. def m_internal_value(self):
  22849. r"""Return numerical value of .m_internal; helps with Python debugging."""
  22850. return _mupdf.FzOutlineIterator_m_internal_value(self)
  22851. def __nonzero__(self):
  22852. return _mupdf.FzOutlineIterator___nonzero__(self)
  22853. __bool__ = __nonzero__
  22854. m_internal = property(_mupdf.FzOutlineIterator_m_internal_get, _mupdf.FzOutlineIterator_m_internal_set, doc=r"""Pointer to wrapped data.""")
  22855. s_num_instances = property(_mupdf.FzOutlineIterator_s_num_instances_get, _mupdf.FzOutlineIterator_s_num_instances_set)
  22856. # Register FzOutlineIterator in _mupdf:
  22857. _mupdf.FzOutlineIterator_swigregister(FzOutlineIterator)
  22858. class FzOutput(object):
  22859. r"""Wrapper class for struct `fz_output`. Not copyable or assignable."""
  22860. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22861. __repr__ = _swig_repr
  22862. Fixed_STDOUT = _mupdf.FzOutput_Fixed_STDOUT
  22863. Fixed_STDERR = _mupdf.FzOutput_Fixed_STDERR
  22864. Filter_HEX = _mupdf.FzOutput_Filter_HEX
  22865. Filter_85 = _mupdf.FzOutput_Filter_85
  22866. Filter_RLE = _mupdf.FzOutput_Filter_RLE
  22867. def fz_close_output(self):
  22868. r"""
  22869. Class-aware wrapper for `::fz_close_output()`.
  22870. Flush pending output and close an output stream.
  22871. """
  22872. return _mupdf.FzOutput_fz_close_output(self)
  22873. def fz_debug_store(self):
  22874. r"""
  22875. Class-aware wrapper for `::fz_debug_store()`.
  22876. Output debugging information for the current state of the store
  22877. to the given output channel.
  22878. """
  22879. return _mupdf.FzOutput_fz_debug_store(self)
  22880. def fz_dump_glyph_cache_stats(self):
  22881. r"""
  22882. Class-aware wrapper for `::fz_dump_glyph_cache_stats()`.
  22883. Dump debug statistics for the glyph cache.
  22884. """
  22885. return _mupdf.FzOutput_fz_dump_glyph_cache_stats(self)
  22886. def fz_flush_output(self):
  22887. r"""
  22888. Class-aware wrapper for `::fz_flush_output()`.
  22889. Flush unwritten data.
  22890. """
  22891. return _mupdf.FzOutput_fz_flush_output(self)
  22892. def fz_int2_heap_dump(self, heap):
  22893. r"""Class-aware wrapper for `::fz_int2_heap_dump()`."""
  22894. return _mupdf.FzOutput_fz_int2_heap_dump(self, heap)
  22895. def fz_int_heap_dump(self, heap):
  22896. r"""Class-aware wrapper for `::fz_int_heap_dump()`."""
  22897. return _mupdf.FzOutput_fz_int_heap_dump(self, heap)
  22898. def fz_intptr_heap_dump(self, heap):
  22899. r"""Class-aware wrapper for `::fz_intptr_heap_dump()`."""
  22900. return _mupdf.FzOutput_fz_intptr_heap_dump(self, heap)
  22901. def fz_new_svg_device(self, page_width, page_height, text_format, reuse_images):
  22902. r"""
  22903. Class-aware wrapper for `::fz_new_svg_device()`.
  22904. Create a device that outputs (single page) SVG files to
  22905. the given output stream.
  22906. Equivalent to fz_new_svg_device_with_id passing id = NULL.
  22907. """
  22908. return _mupdf.FzOutput_fz_new_svg_device(self, page_width, page_height, text_format, reuse_images)
  22909. def fz_new_svg_device_with_id(self, page_width, page_height, text_format, reuse_images, id):
  22910. r"""
  22911. Class-aware wrapper for `::fz_new_svg_device_with_id()`.
  22912. This method has out-params. Python/C# wrappers look like:
  22913. `fz_new_svg_device_with_id(float page_width, float page_height, int text_format, int reuse_images)` => `(fz_device *, int id)`
  22914. Create a device that outputs (single page) SVG files to
  22915. the given output stream.
  22916. output: The output stream to send the constructed SVG page to.
  22917. page_width, page_height: The page dimensions to use (in points).
  22918. text_format: How to emit text. One of the following values:
  22919. FZ_SVG_TEXT_AS_TEXT: As <text> elements with possible
  22920. layout errors and mismatching fonts.
  22921. FZ_SVG_TEXT_AS_PATH: As <path> elements with exact
  22922. visual appearance.
  22923. reuse_images: Share image resources using <symbol> definitions.
  22924. id: ID parameter to keep generated IDs unique across SVG files.
  22925. """
  22926. return _mupdf.FzOutput_fz_new_svg_device_with_id(self, page_width, page_height, text_format, reuse_images, id)
  22927. def fz_new_trace_device(self):
  22928. r"""
  22929. Class-aware wrapper for `::fz_new_trace_device()`.
  22930. Create a device to print a debug trace of all device calls.
  22931. """
  22932. return _mupdf.FzOutput_fz_new_trace_device(self)
  22933. def fz_new_xmltext_device(self):
  22934. r"""
  22935. Class-aware wrapper for `::fz_new_xmltext_device()`.
  22936. Create a device to output raw information.
  22937. """
  22938. return _mupdf.FzOutput_fz_new_xmltext_device(self)
  22939. def fz_output_supports_stream(self):
  22940. r"""
  22941. Class-aware wrapper for `::fz_output_supports_stream()`.
  22942. Query whether a given fz_output supports fz_stream_from_output.
  22943. """
  22944. return _mupdf.FzOutput_fz_output_supports_stream(self)
  22945. def fz_output_xml(self, item, level):
  22946. r"""
  22947. Class-aware wrapper for `::fz_output_xml()`.
  22948. Pretty-print an XML tree to given output.
  22949. """
  22950. return _mupdf.FzOutput_fz_output_xml(self, item, level)
  22951. def fz_print_stext_header_as_html(self):
  22952. r"""Class-aware wrapper for `::fz_print_stext_header_as_html()`."""
  22953. return _mupdf.FzOutput_fz_print_stext_header_as_html(self)
  22954. def fz_print_stext_header_as_xhtml(self):
  22955. r"""Class-aware wrapper for `::fz_print_stext_header_as_xhtml()`."""
  22956. return _mupdf.FzOutput_fz_print_stext_header_as_xhtml(self)
  22957. def fz_print_stext_page_as_html(self, page, id):
  22958. r"""
  22959. Class-aware wrapper for `::fz_print_stext_page_as_html()`.
  22960. Output structured text to a file in HTML (visual) format.
  22961. """
  22962. return _mupdf.FzOutput_fz_print_stext_page_as_html(self, page, id)
  22963. def fz_print_stext_page_as_json(self, page, scale):
  22964. r"""
  22965. Class-aware wrapper for `::fz_print_stext_page_as_json()`.
  22966. Output structured text to a file in JSON format.
  22967. """
  22968. return _mupdf.FzOutput_fz_print_stext_page_as_json(self, page, scale)
  22969. def fz_print_stext_page_as_text(self, page):
  22970. r"""
  22971. Class-aware wrapper for `::fz_print_stext_page_as_text()`.
  22972. Output structured text to a file in plain-text UTF-8 format.
  22973. """
  22974. return _mupdf.FzOutput_fz_print_stext_page_as_text(self, page)
  22975. def fz_print_stext_page_as_xhtml(self, page, id):
  22976. r"""
  22977. Class-aware wrapper for `::fz_print_stext_page_as_xhtml()`.
  22978. Output structured text to a file in XHTML (semantic) format.
  22979. """
  22980. return _mupdf.FzOutput_fz_print_stext_page_as_xhtml(self, page, id)
  22981. def fz_print_stext_page_as_xml(self, page, id):
  22982. r"""
  22983. Class-aware wrapper for `::fz_print_stext_page_as_xml()`.
  22984. Output structured text to a file in XML format.
  22985. """
  22986. return _mupdf.FzOutput_fz_print_stext_page_as_xml(self, page, id)
  22987. def fz_print_stext_trailer_as_html(self):
  22988. r"""Class-aware wrapper for `::fz_print_stext_trailer_as_html()`."""
  22989. return _mupdf.FzOutput_fz_print_stext_trailer_as_html(self)
  22990. def fz_print_stext_trailer_as_xhtml(self):
  22991. r"""Class-aware wrapper for `::fz_print_stext_trailer_as_xhtml()`."""
  22992. return _mupdf.FzOutput_fz_print_stext_trailer_as_xhtml(self)
  22993. def fz_reset_output(self):
  22994. r"""
  22995. Class-aware wrapper for `::fz_reset_output()`.
  22996. Reset a closed output stream. Returns state to
  22997. (broadly) that which it was in when opened. Not
  22998. all outputs can be reset, so this may throw an
  22999. exception.
  23000. """
  23001. return _mupdf.FzOutput_fz_reset_output(self)
  23002. def fz_seek_output(self, off, whence):
  23003. r"""
  23004. Class-aware wrapper for `::fz_seek_output()`.
  23005. Seek to the specified file position.
  23006. See fseek for arguments.
  23007. Throw an error on unseekable outputs.
  23008. """
  23009. return _mupdf.FzOutput_fz_seek_output(self, off, whence)
  23010. def fz_set_stddbg(self):
  23011. r"""
  23012. Class-aware wrapper for `::fz_set_stddbg()`.
  23013. Set the output stream to be used for fz_stddbg. Set to NULL to
  23014. reset to default (stderr).
  23015. """
  23016. return _mupdf.FzOutput_fz_set_stddbg(self)
  23017. def fz_stream_from_output(self):
  23018. r"""
  23019. Class-aware wrapper for `::fz_stream_from_output()`.
  23020. Obtain the fz_output in the form of a fz_stream.
  23021. This allows data to be read back from some forms of fz_output
  23022. object. When finished reading, the fz_stream should be released
  23023. by calling fz_drop_stream. Until the fz_stream is dropped, no
  23024. further operations should be performed on the fz_output object.
  23025. """
  23026. return _mupdf.FzOutput_fz_stream_from_output(self)
  23027. def fz_tell_output(self):
  23028. r"""
  23029. Class-aware wrapper for `::fz_tell_output()`.
  23030. Return the current file position.
  23031. Throw an error on untellable outputs.
  23032. """
  23033. return _mupdf.FzOutput_fz_tell_output(self)
  23034. def fz_truncate_output(self):
  23035. r"""
  23036. Class-aware wrapper for `::fz_truncate_output()`.
  23037. Truncate the output at the current position.
  23038. This allows output streams which have seeked back from the end
  23039. of their storage to be truncated at the current point.
  23040. """
  23041. return _mupdf.FzOutput_fz_truncate_output(self)
  23042. def fz_write_base64(self, data, size, newline):
  23043. r"""
  23044. Class-aware wrapper for `::fz_write_base64()`.
  23045. Write a base64 encoded data block, optionally with periodic
  23046. newlines.
  23047. """
  23048. return _mupdf.FzOutput_fz_write_base64(self, data, size, newline)
  23049. def fz_write_base64_buffer(self, data, newline):
  23050. r"""
  23051. Class-aware wrapper for `::fz_write_base64_buffer()`.
  23052. Write a base64 encoded fz_buffer, optionally with periodic
  23053. newlines.
  23054. """
  23055. return _mupdf.FzOutput_fz_write_base64_buffer(self, data, newline)
  23056. def fz_write_bitmap_as_pbm(self, bitmap):
  23057. r"""
  23058. Class-aware wrapper for `::fz_write_bitmap_as_pbm()`.
  23059. Write a bitmap as a pbm.
  23060. """
  23061. return _mupdf.FzOutput_fz_write_bitmap_as_pbm(self, bitmap)
  23062. def fz_write_bitmap_as_pcl(self, bitmap, pcl):
  23063. r"""
  23064. Class-aware wrapper for `::fz_write_bitmap_as_pcl()`.
  23065. Write a bitmap as mono PCL.
  23066. """
  23067. return _mupdf.FzOutput_fz_write_bitmap_as_pcl(self, bitmap, pcl)
  23068. def fz_write_bitmap_as_pkm(self, bitmap):
  23069. r"""
  23070. Class-aware wrapper for `::fz_write_bitmap_as_pkm()`.
  23071. Write a CMYK bitmap as a pkm.
  23072. """
  23073. return _mupdf.FzOutput_fz_write_bitmap_as_pkm(self, bitmap)
  23074. def fz_write_bitmap_as_pwg(self, bitmap, pwg):
  23075. r"""
  23076. Class-aware wrapper for `::fz_write_bitmap_as_pwg()`.
  23077. Write a bitmap as a PWG.
  23078. """
  23079. return _mupdf.FzOutput_fz_write_bitmap_as_pwg(self, bitmap, pwg)
  23080. def fz_write_bitmap_as_pwg_page(self, bitmap, pwg):
  23081. r"""
  23082. Class-aware wrapper for `::fz_write_bitmap_as_pwg_page()`.
  23083. Write a bitmap as a PWG page.
  23084. Caller should provide a file header by calling
  23085. fz_write_pwg_file_header, but can then write several pages to
  23086. the same file.
  23087. """
  23088. return _mupdf.FzOutput_fz_write_bitmap_as_pwg_page(self, bitmap, pwg)
  23089. def fz_write_bits(self, data, num_bits):
  23090. r"""
  23091. Class-aware wrapper for `::fz_write_bits()`.
  23092. Write num_bits of data to the end of the output stream, assumed to be packed
  23093. most significant bits first.
  23094. """
  23095. return _mupdf.FzOutput_fz_write_bits(self, data, num_bits)
  23096. def fz_write_bits_sync(self):
  23097. r"""
  23098. Class-aware wrapper for `::fz_write_bits_sync()`.
  23099. Sync to byte boundary after writing bits.
  23100. """
  23101. return _mupdf.FzOutput_fz_write_bits_sync(self)
  23102. def fz_write_buffer(self, data):
  23103. r"""Class-aware wrapper for `::fz_write_buffer()`."""
  23104. return _mupdf.FzOutput_fz_write_buffer(self, data)
  23105. def fz_write_byte(self, x):
  23106. r"""Class-aware wrapper for `::fz_write_byte()`."""
  23107. return _mupdf.FzOutput_fz_write_byte(self, x)
  23108. def fz_write_char(self, x):
  23109. r"""Class-aware wrapper for `::fz_write_char()`."""
  23110. return _mupdf.FzOutput_fz_write_char(self, x)
  23111. def fz_write_data(self, data, size):
  23112. r"""
  23113. Class-aware wrapper for `::fz_write_data()`.
  23114. Write data to output.
  23115. data: Pointer to data to write.
  23116. size: Size of data to write in bytes.
  23117. """
  23118. return _mupdf.FzOutput_fz_write_data(self, data, size)
  23119. def fz_write_float_be(self, f):
  23120. r"""Class-aware wrapper for `::fz_write_float_be()`."""
  23121. return _mupdf.FzOutput_fz_write_float_be(self, f)
  23122. def fz_write_float_le(self, f):
  23123. r"""Class-aware wrapper for `::fz_write_float_le()`."""
  23124. return _mupdf.FzOutput_fz_write_float_le(self, f)
  23125. def fz_write_image_as_data_uri(self, image):
  23126. r"""
  23127. Class-aware wrapper for `::fz_write_image_as_data_uri()`.
  23128. Write image as a data URI (for HTML and SVG output).
  23129. """
  23130. return _mupdf.FzOutput_fz_write_image_as_data_uri(self, image)
  23131. def fz_write_int16_be(self, x):
  23132. r"""Class-aware wrapper for `::fz_write_int16_be()`."""
  23133. return _mupdf.FzOutput_fz_write_int16_be(self, x)
  23134. def fz_write_int16_le(self, x):
  23135. r"""Class-aware wrapper for `::fz_write_int16_le()`."""
  23136. return _mupdf.FzOutput_fz_write_int16_le(self, x)
  23137. def fz_write_int32_be(self, x):
  23138. r"""
  23139. Class-aware wrapper for `::fz_write_int32_be()`.
  23140. Write different sized data to an output stream.
  23141. """
  23142. return _mupdf.FzOutput_fz_write_int32_be(self, x)
  23143. def fz_write_int32_le(self, x):
  23144. r"""Class-aware wrapper for `::fz_write_int32_le()`."""
  23145. return _mupdf.FzOutput_fz_write_int32_le(self, x)
  23146. def fz_write_json(self, value):
  23147. r"""Class-aware wrapper for `::fz_write_json()`."""
  23148. return _mupdf.FzOutput_fz_write_json(self, value)
  23149. def fz_write_pixmap_as_data_uri(self, pixmap):
  23150. r"""Class-aware wrapper for `::fz_write_pixmap_as_data_uri()`."""
  23151. return _mupdf.FzOutput_fz_write_pixmap_as_data_uri(self, pixmap)
  23152. def fz_write_pixmap_as_jpeg(self, pix, quality, invert_cmyk):
  23153. r"""
  23154. Class-aware wrapper for `::fz_write_pixmap_as_jpeg()`.
  23155. Write a pixmap as a JPEG.
  23156. """
  23157. return _mupdf.FzOutput_fz_write_pixmap_as_jpeg(self, pix, quality, invert_cmyk)
  23158. def fz_write_pixmap_as_jpx(self, pix, quality):
  23159. r"""
  23160. Class-aware wrapper for `::fz_write_pixmap_as_jpx()`.
  23161. Pixmap data as JP2K with no subsampling.
  23162. quality = 100 = lossless
  23163. otherwise for a factor of x compression use 100-x. (so 80 is 1:20 compression)
  23164. """
  23165. return _mupdf.FzOutput_fz_write_pixmap_as_jpx(self, pix, quality)
  23166. def fz_write_pixmap_as_pam(self, pixmap):
  23167. r"""
  23168. Class-aware wrapper for `::fz_write_pixmap_as_pam()`.
  23169. Write a pixmap as a pnm (greyscale, rgb or cmyk, with or without
  23170. alpha).
  23171. """
  23172. return _mupdf.FzOutput_fz_write_pixmap_as_pam(self, pixmap)
  23173. def fz_write_pixmap_as_pcl(self, pixmap, pcl):
  23174. r"""
  23175. Class-aware wrapper for `::fz_write_pixmap_as_pcl()`.
  23176. Write an (RGB) pixmap as color PCL.
  23177. """
  23178. return _mupdf.FzOutput_fz_write_pixmap_as_pcl(self, pixmap, pcl)
  23179. def fz_write_pixmap_as_pclm(self, pixmap, options):
  23180. r"""
  23181. Class-aware wrapper for `::fz_write_pixmap_as_pclm()`.
  23182. Write a (Greyscale or RGB) pixmap as pclm.
  23183. """
  23184. return _mupdf.FzOutput_fz_write_pixmap_as_pclm(self, pixmap, options)
  23185. def fz_write_pixmap_as_pdfocr(self, pixmap, options):
  23186. r"""
  23187. Class-aware wrapper for `::fz_write_pixmap_as_pdfocr()`.
  23188. Write a (Greyscale or RGB) pixmap as pdfocr.
  23189. """
  23190. return _mupdf.FzOutput_fz_write_pixmap_as_pdfocr(self, pixmap, options)
  23191. def fz_write_pixmap_as_png(self, pixmap):
  23192. r"""
  23193. Class-aware wrapper for `::fz_write_pixmap_as_png()`.
  23194. Write a (Greyscale or RGB) pixmap as a png.
  23195. """
  23196. return _mupdf.FzOutput_fz_write_pixmap_as_png(self, pixmap)
  23197. def fz_write_pixmap_as_pnm(self, pixmap):
  23198. r"""
  23199. Class-aware wrapper for `::fz_write_pixmap_as_pnm()`.
  23200. Write a pixmap as a pnm (greyscale or rgb, no alpha).
  23201. """
  23202. return _mupdf.FzOutput_fz_write_pixmap_as_pnm(self, pixmap)
  23203. def fz_write_pixmap_as_ps(self, pixmap):
  23204. r"""
  23205. Class-aware wrapper for `::fz_write_pixmap_as_ps()`.
  23206. Write a (gray, rgb, or cmyk, no alpha) pixmap out as postscript.
  23207. """
  23208. return _mupdf.FzOutput_fz_write_pixmap_as_ps(self, pixmap)
  23209. def fz_write_pixmap_as_psd(self, pixmap):
  23210. r"""
  23211. Class-aware wrapper for `::fz_write_pixmap_as_psd()`.
  23212. Write a pixmap as a PSD file.
  23213. """
  23214. return _mupdf.FzOutput_fz_write_pixmap_as_psd(self, pixmap)
  23215. def fz_write_pixmap_as_pwg(self, pixmap, pwg):
  23216. r"""
  23217. Class-aware wrapper for `::fz_write_pixmap_as_pwg()`.
  23218. Write a pixmap as a PWG.
  23219. """
  23220. return _mupdf.FzOutput_fz_write_pixmap_as_pwg(self, pixmap, pwg)
  23221. def fz_write_pixmap_as_pwg_page(self, pixmap, pwg):
  23222. r"""
  23223. Class-aware wrapper for `::fz_write_pixmap_as_pwg_page()`.
  23224. Write a pixmap as a PWG page.
  23225. Caller should provide a file header by calling
  23226. fz_write_pwg_file_header, but can then write several pages to
  23227. the same file.
  23228. """
  23229. return _mupdf.FzOutput_fz_write_pixmap_as_pwg_page(self, pixmap, pwg)
  23230. def fz_write_ps_file_header(self):
  23231. r"""
  23232. Class-aware wrapper for `::fz_write_ps_file_header()`.
  23233. Write the file level header for ps band writer output.
  23234. """
  23235. return _mupdf.FzOutput_fz_write_ps_file_header(self)
  23236. def fz_write_ps_file_trailer(self, pages):
  23237. r"""
  23238. Class-aware wrapper for `::fz_write_ps_file_trailer()`.
  23239. Write the file level trailer for ps band writer output.
  23240. """
  23241. return _mupdf.FzOutput_fz_write_ps_file_trailer(self, pages)
  23242. def fz_write_pwg_file_header(self):
  23243. r"""
  23244. Class-aware wrapper for `::fz_write_pwg_file_header()`.
  23245. Output the file header to a pwg stream, ready for pages to follow it.
  23246. """
  23247. return _mupdf.FzOutput_fz_write_pwg_file_header(self)
  23248. def fz_write_rune(self, rune):
  23249. r"""
  23250. Class-aware wrapper for `::fz_write_rune()`.
  23251. Write a UTF-8 encoded unicode character.
  23252. """
  23253. return _mupdf.FzOutput_fz_write_rune(self, rune)
  23254. def fz_write_stream(self, _in):
  23255. r"""
  23256. Class-aware wrapper for `::fz_write_stream()`.
  23257. Copy the stream contents to the output.
  23258. """
  23259. return _mupdf.FzOutput_fz_write_stream(self, _in)
  23260. def fz_write_string(self, s):
  23261. r"""
  23262. Class-aware wrapper for `::fz_write_string()`.
  23263. Write a string. Does not write zero terminator.
  23264. """
  23265. return _mupdf.FzOutput_fz_write_string(self, s)
  23266. def fz_write_uint16_be(self, x):
  23267. r"""Class-aware wrapper for `::fz_write_uint16_be()`."""
  23268. return _mupdf.FzOutput_fz_write_uint16_be(self, x)
  23269. def fz_write_uint16_le(self, x):
  23270. r"""Class-aware wrapper for `::fz_write_uint16_le()`."""
  23271. return _mupdf.FzOutput_fz_write_uint16_le(self, x)
  23272. def fz_write_uint32_be(self, x):
  23273. r"""Class-aware wrapper for `::fz_write_uint32_be()`."""
  23274. return _mupdf.FzOutput_fz_write_uint32_be(self, x)
  23275. def fz_write_uint32_le(self, x):
  23276. r"""Class-aware wrapper for `::fz_write_uint32_le()`."""
  23277. return _mupdf.FzOutput_fz_write_uint32_le(self, x)
  23278. def pdf_new_output_processor(self, ahxencode, newlines):
  23279. r"""Class-aware wrapper for `::pdf_new_output_processor()`."""
  23280. return _mupdf.FzOutput_pdf_new_output_processor(self, ahxencode, newlines)
  23281. def pdf_print_crypt(self, crypt):
  23282. r"""Class-aware wrapper for `::pdf_print_crypt()`."""
  23283. return _mupdf.FzOutput_pdf_print_crypt(self, crypt)
  23284. def pdf_print_encrypted_obj(self, obj, tight, ascii, crypt, num, gen, sep):
  23285. r"""
  23286. Class-aware wrapper for `::pdf_print_encrypted_obj()`.
  23287. This method has out-params. Python/C# wrappers look like:
  23288. `pdf_print_encrypted_obj(::pdf_obj *obj, int tight, int ascii, ::pdf_crypt *crypt, int num, int gen)` => int sep
  23289. """
  23290. return _mupdf.FzOutput_pdf_print_encrypted_obj(self, obj, tight, ascii, crypt, num, gen, sep)
  23291. def pdf_print_font(self, fontdesc):
  23292. r"""Class-aware wrapper for `::pdf_print_font()`."""
  23293. return _mupdf.FzOutput_pdf_print_font(self, fontdesc)
  23294. def pdf_print_obj(self, obj, tight, ascii):
  23295. r"""Class-aware wrapper for `::pdf_print_obj()`."""
  23296. return _mupdf.FzOutput_pdf_print_obj(self, obj, tight, ascii)
  23297. def pdf_write_digest(self, byte_range, field, digest_offset, digest_length, signer):
  23298. r"""Class-aware wrapper for `::pdf_write_digest()`."""
  23299. return _mupdf.FzOutput_pdf_write_digest(self, byte_range, field, digest_offset, digest_length, signer)
  23300. def __init__(self, *args):
  23301. r"""
  23302. *Overload 1:*
  23303. == Constructors. Constructor using `fz_new_arc4_output()`.
  23304. |
  23305. *Overload 2:*
  23306. Constructor using `fz_new_deflate_output()`.
  23307. |
  23308. *Overload 3:*
  23309. Constructor using `fz_new_log_for_module()`.
  23310. Internal function to actually do the opening of the logfile.
  23311. Caller should close/drop the output when finished with it.
  23312. |
  23313. *Overload 4:*
  23314. Constructor using `fz_new_output()`.
  23315. Create a new output object with the given
  23316. internal state and function pointers.
  23317. state: Internal state (opaque to everything but implementation).
  23318. write: Function to output a given buffer.
  23319. close: Cleanup function to destroy state when output closed.
  23320. May permissibly be null.
  23321. |
  23322. *Overload 5:*
  23323. Constructor using `fz_new_output_with_buffer()`.
  23324. Open an output stream that appends
  23325. to a buffer.
  23326. buf: The buffer to append to.
  23327. |
  23328. *Overload 6:*
  23329. Constructor using `fz_new_output_with_file_ptr()`.
  23330. Open an output stream that writes to a
  23331. given FILE *.
  23332. file: The file pointers to write to. NULL is interpreted as effectively
  23333. meaning /dev/null or similar.
  23334. |
  23335. *Overload 7:*
  23336. Constructor using `fz_new_output_with_path()`.
  23337. Open an output stream that writes to a
  23338. given path.
  23339. filename: The filename to write to (specified in UTF-8).
  23340. append: non-zero if we should append to the file, rather than
  23341. overwriting it.
  23342. |
  23343. *Overload 8:*
  23344. Uses fz_stdout() or fz_stderr().
  23345. |
  23346. *Overload 9:*
  23347. Calls one of: fz_new_asciihex_output(), fz_new_ascii85_output(), fz_new_rle_output().
  23348. |
  23349. *Overload 10:*
  23350. Constructor using raw copy of pre-existing `::fz_output`.
  23351. |
  23352. *Overload 11:*
  23353. Constructor using raw copy of pre-existing `::fz_output`.
  23354. """
  23355. _mupdf.FzOutput_swiginit(self, _mupdf.new_FzOutput(*args))
  23356. __swig_destroy__ = _mupdf.delete_FzOutput
  23357. def m_internal_value(self):
  23358. r"""Return numerical value of .m_internal; helps with Python debugging."""
  23359. return _mupdf.FzOutput_m_internal_value(self)
  23360. def __nonzero__(self):
  23361. return _mupdf.FzOutput___nonzero__(self)
  23362. __bool__ = __nonzero__
  23363. m_internal = property(_mupdf.FzOutput_m_internal_get, _mupdf.FzOutput_m_internal_set, doc=r"""Pointer to wrapped data.""")
  23364. s_num_instances = property(_mupdf.FzOutput_s_num_instances_get, _mupdf.FzOutput_s_num_instances_set)
  23365. # Register FzOutput in _mupdf:
  23366. _mupdf.FzOutput_swigregister(FzOutput)
  23367. class FzOutput2(FzOutput):
  23368. r"""Wrapper class for struct fz_output with virtual fns for each fnptr; this is for use as a SWIG Director class."""
  23369. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  23370. __repr__ = _swig_repr
  23371. def __init__(self):
  23372. r"""== Constructor."""
  23373. if self.__class__ == FzOutput2:
  23374. _self = None
  23375. else:
  23376. _self = self
  23377. _mupdf.FzOutput2_swiginit(self, _mupdf.new_FzOutput2(_self, ))
  23378. __swig_destroy__ = _mupdf.delete_FzOutput2
  23379. def use_virtual_write(self, use=True):
  23380. r"""
  23381. These methods set the function pointers in *m_internal
  23382. to point to internal callbacks that call our virtual methods.
  23383. """
  23384. return _mupdf.FzOutput2_use_virtual_write(self, use)
  23385. def use_virtual_seek(self, use=True):
  23386. return _mupdf.FzOutput2_use_virtual_seek(self, use)
  23387. def use_virtual_tell(self, use=True):
  23388. return _mupdf.FzOutput2_use_virtual_tell(self, use)
  23389. def use_virtual_close(self, use=True):
  23390. return _mupdf.FzOutput2_use_virtual_close(self, use)
  23391. def use_virtual_drop(self, use=True):
  23392. return _mupdf.FzOutput2_use_virtual_drop(self, use)
  23393. def use_virtual_reset(self, use=True):
  23394. return _mupdf.FzOutput2_use_virtual_reset(self, use)
  23395. def use_virtual_as_stream(self, use=True):
  23396. return _mupdf.FzOutput2_use_virtual_as_stream(self, use)
  23397. def use_virtual_truncate(self, use=True):
  23398. return _mupdf.FzOutput2_use_virtual_truncate(self, use)
  23399. def write(self, arg_0, arg_2, arg_3):
  23400. r"""Default virtual method implementations; these all throw an exception."""
  23401. return _mupdf.FzOutput2_write(self, arg_0, arg_2, arg_3)
  23402. def seek(self, arg_0, arg_2, arg_3):
  23403. return _mupdf.FzOutput2_seek(self, arg_0, arg_2, arg_3)
  23404. def tell(self, arg_0):
  23405. return _mupdf.FzOutput2_tell(self, arg_0)
  23406. def close(self, arg_0):
  23407. return _mupdf.FzOutput2_close(self, arg_0)
  23408. def drop(self, arg_0):
  23409. return _mupdf.FzOutput2_drop(self, arg_0)
  23410. def reset(self, arg_0):
  23411. return _mupdf.FzOutput2_reset(self, arg_0)
  23412. def as_stream(self, arg_0):
  23413. return _mupdf.FzOutput2_as_stream(self, arg_0)
  23414. def truncate(self, arg_0):
  23415. return _mupdf.FzOutput2_truncate(self, arg_0)
  23416. def __disown__(self):
  23417. self.this.disown()
  23418. _mupdf.disown_FzOutput2(self)
  23419. return weakref.proxy(self)
  23420. # Register FzOutput2 in _mupdf:
  23421. _mupdf.FzOutput2_swigregister(FzOutput2)
  23422. class FzOverprint(object):
  23423. r"""
  23424. Wrapper class for struct `fz_overprint`. Not copyable or assignable.
  23425. Pixmaps represent a set of pixels for a 2 dimensional region of
  23426. a plane. Each pixel has n components per pixel. The components
  23427. are in the order process-components, spot-colors, alpha, where
  23428. there can be 0 of any of those types. The data is in
  23429. premultiplied alpha when rendering, but non-premultiplied for
  23430. colorspace conversions and rescaling.
  23431. """
  23432. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  23433. __repr__ = _swig_repr
  23434. def __init__(self, *args):
  23435. r"""
  23436. *Overload 1:*
  23437. Default constructor, sets `m_internal` to null.
  23438. |
  23439. *Overload 2:*
  23440. Constructor using raw copy of pre-existing `::fz_overprint`.
  23441. """
  23442. _mupdf.FzOverprint_swiginit(self, _mupdf.new_FzOverprint(*args))
  23443. __swig_destroy__ = _mupdf.delete_FzOverprint
  23444. def m_internal_value(self):
  23445. r"""Return numerical value of .m_internal; helps with Python debugging."""
  23446. return _mupdf.FzOverprint_m_internal_value(self)
  23447. def __nonzero__(self):
  23448. return _mupdf.FzOverprint___nonzero__(self)
  23449. __bool__ = __nonzero__
  23450. m_internal = property(_mupdf.FzOverprint_m_internal_get, _mupdf.FzOverprint_m_internal_set, doc=r"""Pointer to wrapped data.""")
  23451. s_num_instances = property(_mupdf.FzOverprint_s_num_instances_get, _mupdf.FzOverprint_s_num_instances_set)
  23452. # Register FzOverprint in _mupdf:
  23453. _mupdf.FzOverprint_swigregister(FzOverprint)
  23454. class FzPage(object):
  23455. r"""Wrapper class for struct `fz_page`."""
  23456. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  23457. __repr__ = _swig_repr
  23458. def fz_bound_page(self):
  23459. r"""
  23460. Class-aware wrapper for `::fz_bound_page()`.
  23461. Determine the size of a page at 72 dpi.
  23462. """
  23463. return _mupdf.FzPage_fz_bound_page(self)
  23464. def fz_bound_page_box(self, box):
  23465. r"""Class-aware wrapper for `::fz_bound_page_box()`."""
  23466. return _mupdf.FzPage_fz_bound_page_box(self, box)
  23467. def fz_create_link(self, bbox, uri):
  23468. r"""
  23469. Class-aware wrapper for `::fz_create_link()`.
  23470. Create a new link on a page.
  23471. """
  23472. return _mupdf.FzPage_fz_create_link(self, bbox, uri)
  23473. def fz_delete_link(self, link):
  23474. r"""
  23475. Class-aware wrapper for `::fz_delete_link()`.
  23476. Delete an existing link on a page.
  23477. """
  23478. return _mupdf.FzPage_fz_delete_link(self, link)
  23479. def fz_load_links(self):
  23480. r"""
  23481. Class-aware wrapper for `::fz_load_links()`.
  23482. Load the list of links for a page.
  23483. Returns a linked list of all the links on the page, each with
  23484. its clickable region and link destination. Each link is
  23485. reference counted so drop and free the list of links by
  23486. calling fz_drop_link on the pointer return from fz_load_links.
  23487. page: Page obtained from fz_load_page.
  23488. """
  23489. return _mupdf.FzPage_fz_load_links(self)
  23490. def fz_new_buffer_from_page(self, options):
  23491. r"""Class-aware wrapper for `::fz_new_buffer_from_page()`."""
  23492. return _mupdf.FzPage_fz_new_buffer_from_page(self, options)
  23493. def fz_new_buffer_from_page_with_format(self, format, options, transform, cookie):
  23494. r"""
  23495. Class-aware wrapper for `::fz_new_buffer_from_page_with_format()`.
  23496. Returns an fz_buffer containing a page after conversion to specified format.
  23497. page: The page to convert.
  23498. format, options: Passed to fz_new_document_writer_with_output() internally.
  23499. transform, cookie: Passed to fz_run_page() internally.
  23500. """
  23501. return _mupdf.FzPage_fz_new_buffer_from_page_with_format(self, format, options, transform, cookie)
  23502. def fz_new_display_list_from_page(self):
  23503. r"""
  23504. Class-aware wrapper for `::fz_new_display_list_from_page()`.
  23505. Create a display list.
  23506. Ownership of the display list is returned to the caller.
  23507. """
  23508. return _mupdf.FzPage_fz_new_display_list_from_page(self)
  23509. def fz_new_display_list_from_page_contents(self):
  23510. r"""
  23511. Class-aware wrapper for `::fz_new_display_list_from_page_contents()`.
  23512. Create a display list from page contents (no annotations).
  23513. Ownership of the display list is returned to the caller.
  23514. """
  23515. return _mupdf.FzPage_fz_new_display_list_from_page_contents(self)
  23516. def fz_new_pixmap_from_page(self, ctm, cs, alpha):
  23517. r"""Class-aware wrapper for `::fz_new_pixmap_from_page()`."""
  23518. return _mupdf.FzPage_fz_new_pixmap_from_page(self, ctm, cs, alpha)
  23519. def fz_new_pixmap_from_page_contents(self, ctm, cs, alpha):
  23520. r"""
  23521. Class-aware wrapper for `::fz_new_pixmap_from_page_contents()`.
  23522. Render the page contents without annotations.
  23523. Ownership of the pixmap is returned to the caller.
  23524. """
  23525. return _mupdf.FzPage_fz_new_pixmap_from_page_contents(self, ctm, cs, alpha)
  23526. def fz_new_pixmap_from_page_contents_with_separations(self, ctm, cs, seps, alpha):
  23527. r"""Class-aware wrapper for `::fz_new_pixmap_from_page_contents_with_separations()`."""
  23528. return _mupdf.FzPage_fz_new_pixmap_from_page_contents_with_separations(self, ctm, cs, seps, alpha)
  23529. def fz_new_pixmap_from_page_with_separations(self, ctm, cs, seps, alpha):
  23530. r"""Class-aware wrapper for `::fz_new_pixmap_from_page_with_separations()`."""
  23531. return _mupdf.FzPage_fz_new_pixmap_from_page_with_separations(self, ctm, cs, seps, alpha)
  23532. def fz_page_label(self, buf, size):
  23533. r"""
  23534. Class-aware wrapper for `::fz_page_label()`.
  23535. Get page label for a given page.
  23536. """
  23537. return _mupdf.FzPage_fz_page_label(self, buf, size)
  23538. def fz_page_presentation(self, transition, duration):
  23539. r"""
  23540. Class-aware wrapper for `::fz_page_presentation()`.
  23541. This method has out-params. Python/C# wrappers look like:
  23542. `fz_page_presentation(::fz_transition *transition)` => `(fz_transition *, float duration)`
  23543. Get the presentation details for a given page.
  23544. transition: A pointer to a transition struct to fill out.
  23545. duration: A pointer to a place to set the page duration in
  23546. seconds. Will be set to 0 if no transition is specified for the
  23547. page.
  23548. Returns: a pointer to the transition structure, or NULL if there
  23549. is no transition specified for the page.
  23550. """
  23551. return _mupdf.FzPage_fz_page_presentation(self, transition, duration)
  23552. def fz_page_separations(self):
  23553. r"""
  23554. Class-aware wrapper for `::fz_page_separations()`.
  23555. Get the separations details for a page.
  23556. This will be NULL, unless the format specifically supports
  23557. separations (such as PDF files). May be NULL even
  23558. so, if there are no separations on a page.
  23559. Returns a reference that must be dropped.
  23560. """
  23561. return _mupdf.FzPage_fz_page_separations(self)
  23562. def fz_page_uses_overprint(self):
  23563. r"""
  23564. Class-aware wrapper for `::fz_page_uses_overprint()`.
  23565. Query if a given page requires overprint.
  23566. """
  23567. return _mupdf.FzPage_fz_page_uses_overprint(self)
  23568. def fz_run_page(self, dev, transform, cookie):
  23569. r"""
  23570. Class-aware wrapper for `::fz_run_page()`.
  23571. Run a page through a device.
  23572. page: Page obtained from fz_load_page.
  23573. dev: Device obtained from fz_new_*_device.
  23574. transform: Transform to apply to page. May include for example
  23575. scaling and rotation, see fz_scale, fz_rotate and fz_concat.
  23576. Set to fz_identity if no transformation is desired.
  23577. cookie: Communication mechanism between caller and library
  23578. rendering the page. Intended for multi-threaded applications,
  23579. while single-threaded applications set cookie to NULL. The
  23580. caller may abort an ongoing rendering of a page. Cookie also
  23581. communicates progress information back to the caller. The
  23582. fields inside cookie are continually updated while the page is
  23583. rendering.
  23584. """
  23585. return _mupdf.FzPage_fz_run_page(self, dev, transform, cookie)
  23586. def fz_run_page_annots(self, dev, transform, cookie):
  23587. r"""
  23588. Class-aware wrapper for `::fz_run_page_annots()`.
  23589. Run the annotations on a page through a device.
  23590. """
  23591. return _mupdf.FzPage_fz_run_page_annots(self, dev, transform, cookie)
  23592. def fz_run_page_contents(self, dev, transform, cookie):
  23593. r"""
  23594. Class-aware wrapper for `::fz_run_page_contents()`.
  23595. Run a page through a device. Just the main
  23596. page content, without the annotations, if any.
  23597. page: Page obtained from fz_load_page.
  23598. dev: Device obtained from fz_new_*_device.
  23599. transform: Transform to apply to page. May include for example
  23600. scaling and rotation, see fz_scale, fz_rotate and fz_concat.
  23601. Set to fz_identity if no transformation is desired.
  23602. cookie: Communication mechanism between caller and library
  23603. rendering the page. Intended for multi-threaded applications,
  23604. while single-threaded applications set cookie to NULL. The
  23605. caller may abort an ongoing rendering of a page. Cookie also
  23606. communicates progress information back to the caller. The
  23607. fields inside cookie are continually updated while the page is
  23608. rendering.
  23609. """
  23610. return _mupdf.FzPage_fz_run_page_contents(self, dev, transform, cookie)
  23611. def fz_run_page_widgets(self, dev, transform, cookie):
  23612. r"""
  23613. Class-aware wrapper for `::fz_run_page_widgets()`.
  23614. Run the widgets on a page through a device.
  23615. """
  23616. return _mupdf.FzPage_fz_run_page_widgets(self, dev, transform, cookie)
  23617. def fz_search_page(self, needle, hit_mark, hit_bbox, hit_max):
  23618. r"""
  23619. Class-aware wrapper for `::fz_search_page()`.
  23620. This method has out-params. Python/C# wrappers look like:
  23621. `fz_search_page(const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  23622. Search for the 'needle' text on the page.
  23623. Record the hits in the hit_bbox array and return the number of
  23624. hits. Will stop looking once it has filled hit_max rectangles.
  23625. """
  23626. return _mupdf.FzPage_fz_search_page(self, needle, hit_mark, hit_bbox, hit_max)
  23627. def fz_search_page_cb(self, needle, cb, opaque):
  23628. r"""
  23629. Class-aware wrapper for `::fz_search_page_cb()`.
  23630. Search for the 'needle' text on the page.
  23631. """
  23632. return _mupdf.FzPage_fz_search_page_cb(self, needle, cb, opaque)
  23633. def pdf_page_from_fz_page(self):
  23634. r"""Class-aware wrapper for `::pdf_page_from_fz_page()`."""
  23635. return _mupdf.FzPage_pdf_page_from_fz_page(self)
  23636. def doc(self):
  23637. r"""Returns wrapper for .doc member."""
  23638. return _mupdf.FzPage_doc(self)
  23639. def __init__(self, *args):
  23640. r"""
  23641. *Overload 1:*
  23642. == Constructors. Constructor using `fz_load_chapter_page()`.
  23643. Load a page.
  23644. After fz_load_page is it possible to retrieve the size of the
  23645. page using fz_bound_page, or to render the page using
  23646. fz_run_page_*. Free the page by calling fz_drop_page.
  23647. chapter: chapter number, 0 is the first chapter of the document.
  23648. number: page number, 0 is the first page of the chapter.
  23649. |
  23650. *Overload 2:*
  23651. Constructor using `fz_load_page()`.
  23652. Load a given page number from a document. This may be much less
  23653. efficient than loading by location (chapter+page) for some
  23654. document types.
  23655. |
  23656. *Overload 3:*
  23657. Constructor using `fz_new_page_of_size()`.
  23658. Different document types will be implemented by deriving from
  23659. fz_page. This macro allocates such derived structures, and
  23660. initialises the base sections.
  23661. |
  23662. *Overload 4:*
  23663. Return FzPage for pdfpage.m_internal.super.
  23664. |
  23665. *Overload 5:*
  23666. Copy constructor using `fz_keep_page()`.
  23667. |
  23668. *Overload 6:*
  23669. Default constructor, sets `m_internal` to null.
  23670. |
  23671. *Overload 7:*
  23672. Constructor using raw copy of pre-existing `::fz_page`.
  23673. """
  23674. _mupdf.FzPage_swiginit(self, _mupdf.new_FzPage(*args))
  23675. __swig_destroy__ = _mupdf.delete_FzPage
  23676. def m_internal_value(self):
  23677. r"""Return numerical value of .m_internal; helps with Python debugging."""
  23678. return _mupdf.FzPage_m_internal_value(self)
  23679. def __nonzero__(self):
  23680. return _mupdf.FzPage___nonzero__(self)
  23681. __bool__ = __nonzero__
  23682. m_internal = property(_mupdf.FzPage_m_internal_get, _mupdf.FzPage_m_internal_set, doc=r"""Pointer to wrapped data.""")
  23683. s_num_instances = property(_mupdf.FzPage_s_num_instances_get, _mupdf.FzPage_s_num_instances_set)
  23684. # Register FzPage in _mupdf:
  23685. _mupdf.FzPage_swigregister(FzPage)
  23686. class FzPath(object):
  23687. r"""
  23688. Wrapper class for struct `fz_path`.
  23689. Vector path buffer.
  23690. It can be stroked and dashed, or be filled.
  23691. It has a fill rule (nonzero or even_odd).
  23692. When rendering, they are flattened, stroked and dashed straight
  23693. into the Global Edge List.
  23694. """
  23695. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  23696. __repr__ = _swig_repr
  23697. def fz_bound_path(self, stroke, ctm):
  23698. r"""
  23699. Class-aware wrapper for `::fz_bound_path()`.
  23700. Return a bounding rectangle for a path.
  23701. path: The path to bound.
  23702. stroke: If NULL, the bounding rectangle given is for
  23703. the filled path. If non-NULL the bounding rectangle
  23704. given is for the path stroked with the given attributes.
  23705. ctm: The matrix to apply to the path during stroking.
  23706. r: Pointer to a fz_rect which will be used to hold
  23707. the result.
  23708. Returns r, updated to contain the bounding rectangle.
  23709. """
  23710. return _mupdf.FzPath_fz_bound_path(self, stroke, ctm)
  23711. def fz_clone_path(self):
  23712. r"""
  23713. Class-aware wrapper for `::fz_clone_path()`.
  23714. Clone the data for a path.
  23715. This is used in preference to fz_keep_path when a whole
  23716. new copy of a path is required, rather than just a shared
  23717. pointer. This probably indicates that the path is about to
  23718. be modified.
  23719. path: path to clone.
  23720. Throws exceptions on failure to allocate.
  23721. """
  23722. return _mupdf.FzPath_fz_clone_path(self)
  23723. def fz_closepath(self):
  23724. r"""
  23725. Class-aware wrapper for `::fz_closepath()`.
  23726. Close the current subpath.
  23727. path: The path to modify.
  23728. Throws exceptions on failure to allocate, attempting to modify
  23729. a packed path, and illegal path closes (i.e. closing a non open
  23730. path).
  23731. """
  23732. return _mupdf.FzPath_fz_closepath(self)
  23733. def fz_currentpoint(self):
  23734. r"""
  23735. Class-aware wrapper for `::fz_currentpoint()`.
  23736. Return the current point that a path has
  23737. reached or (0,0) if empty.
  23738. path: path to return the current point of.
  23739. """
  23740. return _mupdf.FzPath_fz_currentpoint(self)
  23741. def fz_curveto(self, x0, y0, x1, y1, x2, y2):
  23742. r"""
  23743. Class-aware wrapper for `::fz_curveto()`.
  23744. Append a 'curveto' command to an open path. (For a
  23745. cubic bezier).
  23746. path: The path to modify.
  23747. x0, y0: The coordinates of the first control point for the
  23748. curve.
  23749. x1, y1: The coordinates of the second control point for the
  23750. curve.
  23751. x2, y2: The end coordinates for the curve.
  23752. Throws exceptions on failure to allocate, or attempting to
  23753. modify a packed path.
  23754. """
  23755. return _mupdf.FzPath_fz_curveto(self, x0, y0, x1, y1, x2, y2)
  23756. def fz_curvetov(self, x1, y1, x2, y2):
  23757. r"""
  23758. Class-aware wrapper for `::fz_curvetov()`.
  23759. Append a 'curvetov' command to an open path. (For a
  23760. cubic bezier with the first control coordinate equal to
  23761. the start point).
  23762. path: The path to modify.
  23763. x1, y1: The coordinates of the second control point for the
  23764. curve.
  23765. x2, y2: The end coordinates for the curve.
  23766. Throws exceptions on failure to allocate, or attempting to
  23767. modify a packed path.
  23768. """
  23769. return _mupdf.FzPath_fz_curvetov(self, x1, y1, x2, y2)
  23770. def fz_curvetoy(self, x0, y0, x2, y2):
  23771. r"""
  23772. Class-aware wrapper for `::fz_curvetoy()`.
  23773. Append a 'curvetoy' command to an open path. (For a
  23774. cubic bezier with the second control coordinate equal to
  23775. the end point).
  23776. path: The path to modify.
  23777. x0, y0: The coordinates of the first control point for the
  23778. curve.
  23779. x2, y2: The end coordinates for the curve (and the second
  23780. control coordinate).
  23781. Throws exceptions on failure to allocate, or attempting to
  23782. modify a packed path.
  23783. """
  23784. return _mupdf.FzPath_fz_curvetoy(self, x0, y0, x2, y2)
  23785. def fz_lineto(self, x, y):
  23786. r"""
  23787. Class-aware wrapper for `::fz_lineto()`.
  23788. Append a 'lineto' command to an open path.
  23789. path: The path to modify.
  23790. x, y: The coordinate to line to.
  23791. Throws exceptions on failure to allocate, or attempting to
  23792. modify a packed path.
  23793. """
  23794. return _mupdf.FzPath_fz_lineto(self, x, y)
  23795. def fz_moveto(self, x, y):
  23796. r"""
  23797. Class-aware wrapper for `::fz_moveto()`.
  23798. Append a 'moveto' command to a path.
  23799. This 'opens' a path.
  23800. path: The path to modify.
  23801. x, y: The coordinate to move to.
  23802. Throws exceptions on failure to allocate, or attempting to
  23803. modify a packed path.
  23804. """
  23805. return _mupdf.FzPath_fz_moveto(self, x, y)
  23806. def fz_packed_path_size(self):
  23807. r"""
  23808. Class-aware wrapper for `::fz_packed_path_size()`.
  23809. Return the number of bytes required to pack a path.
  23810. """
  23811. return _mupdf.FzPath_fz_packed_path_size(self)
  23812. def fz_path_is_rect(self, ctm):
  23813. r"""
  23814. Class-aware wrapper for `::fz_path_is_rect()`.
  23815. Check whether a given path, under the given transform
  23816. is an axis-aligned rectangle.
  23817. We accept zero width or height rectangles, so
  23818. "move 100, 100; line 200, 100" would count as
  23819. a rectangle too.
  23820. """
  23821. return _mupdf.FzPath_fz_path_is_rect(self, ctm)
  23822. def fz_path_is_rect_with_bounds(self, ctm, bounds):
  23823. r"""
  23824. Class-aware wrapper for `::fz_path_is_rect_with_bounds()`.
  23825. Check whether a given path, under the given transform
  23826. is an axis-aligned rectangle.
  23827. We accept zero width or height rectangles, so
  23828. "move 100, 100; line 200, 100" would count as
  23829. a rectangle too.
  23830. bounds = NULL, or place to return the rectangle
  23831. bounds if the path is a rectangle.
  23832. """
  23833. return _mupdf.FzPath_fz_path_is_rect_with_bounds(self, ctm, bounds)
  23834. def fz_quadto(self, x0, y0, x1, y1):
  23835. r"""
  23836. Class-aware wrapper for `::fz_quadto()`.
  23837. Append a 'quadto' command to an open path. (For a
  23838. quadratic bezier).
  23839. path: The path to modify.
  23840. x0, y0: The control coordinates for the quadratic curve.
  23841. x1, y1: The end coordinates for the quadratic curve.
  23842. Throws exceptions on failure to allocate, or attempting to
  23843. modify a packed path.
  23844. """
  23845. return _mupdf.FzPath_fz_quadto(self, x0, y0, x1, y1)
  23846. def fz_rectto(self, x0, y0, x1, y1):
  23847. r"""
  23848. Class-aware wrapper for `::fz_rectto()`.
  23849. Append a 'rectto' command to an open path.
  23850. The rectangle is equivalent to:
  23851. moveto x0 y0
  23852. lineto x1 y0
  23853. lineto x1 y1
  23854. lineto x0 y1
  23855. closepath
  23856. path: The path to modify.
  23857. x0, y0: First corner of the rectangle.
  23858. x1, y1: Second corner of the rectangle.
  23859. Throws exceptions on failure to allocate, or attempting to
  23860. modify a packed path.
  23861. """
  23862. return _mupdf.FzPath_fz_rectto(self, x0, y0, x1, y1)
  23863. def fz_transform_path(self, transform):
  23864. r"""
  23865. Class-aware wrapper for `::fz_transform_path()`.
  23866. Transform a path by a given
  23867. matrix.
  23868. path: The path to modify (must not be a packed path).
  23869. transform: The transform to apply.
  23870. Throws exceptions if the path is packed, or on failure
  23871. to allocate.
  23872. """
  23873. return _mupdf.FzPath_fz_transform_path(self, transform)
  23874. def fz_trim_path(self):
  23875. r"""
  23876. Class-aware wrapper for `::fz_trim_path()`.
  23877. Minimise the internal storage used by a path.
  23878. As paths are constructed, the internal buffers
  23879. grow. To avoid repeated reallocations they
  23880. grow with some spare space. Once a path has
  23881. been fully constructed, this call allows the
  23882. excess space to be trimmed.
  23883. """
  23884. return _mupdf.FzPath_fz_trim_path(self)
  23885. def fz_walk_path(self, walker, arg):
  23886. r"""
  23887. Class-aware wrapper for `::fz_walk_path()`.
  23888. Walk the segments of a path, calling the
  23889. appropriate callback function from a given set for each
  23890. segment of the path.
  23891. path: The path to walk.
  23892. walker: The set of callback functions to use. The first
  23893. 4 callback pointers in the set must be non-NULL. The
  23894. subsequent ones can either be supplied, or can be left
  23895. as NULL, in which case the top 4 functions will be
  23896. called as appropriate to simulate them.
  23897. arg: An opaque argument passed in to each callback.
  23898. Exceptions will only be thrown if the underlying callback
  23899. functions throw them.
  23900. """
  23901. return _mupdf.FzPath_fz_walk_path(self, walker, arg)
  23902. def __init__(self, *args):
  23903. r"""
  23904. *Overload 1:*
  23905. == Constructors. Constructor using `fz_new_path()`.
  23906. Create a new (empty) path structure.
  23907. |
  23908. *Overload 2:*
  23909. Copy constructor using `fz_keep_path()`.
  23910. |
  23911. *Overload 3:*
  23912. Constructor using raw copy of pre-existing `::fz_path`.
  23913. """
  23914. _mupdf.FzPath_swiginit(self, _mupdf.new_FzPath(*args))
  23915. __swig_destroy__ = _mupdf.delete_FzPath
  23916. def m_internal_value(self):
  23917. r"""Return numerical value of .m_internal; helps with Python debugging."""
  23918. return _mupdf.FzPath_m_internal_value(self)
  23919. def __nonzero__(self):
  23920. return _mupdf.FzPath___nonzero__(self)
  23921. __bool__ = __nonzero__
  23922. m_internal = property(_mupdf.FzPath_m_internal_get, _mupdf.FzPath_m_internal_set, doc=r"""Pointer to wrapped data.""")
  23923. s_num_instances = property(_mupdf.FzPath_s_num_instances_get, _mupdf.FzPath_s_num_instances_set)
  23924. # Register FzPath in _mupdf:
  23925. _mupdf.FzPath_swigregister(FzPath)
  23926. class FzPathWalker(object):
  23927. r"""Wrapper class for struct `fz_path_walker`. Not copyable or assignable."""
  23928. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  23929. __repr__ = _swig_repr
  23930. def __init__(self, internal=None):
  23931. r"""Constructor using raw copy of pre-existing `::fz_path_walker`."""
  23932. _mupdf.FzPathWalker_swiginit(self, _mupdf.new_FzPathWalker(internal))
  23933. __swig_destroy__ = _mupdf.delete_FzPathWalker
  23934. def m_internal_value(self):
  23935. r"""Return numerical value of .m_internal; helps with Python debugging."""
  23936. return _mupdf.FzPathWalker_m_internal_value(self)
  23937. def __nonzero__(self):
  23938. return _mupdf.FzPathWalker___nonzero__(self)
  23939. __bool__ = __nonzero__
  23940. m_internal = property(_mupdf.FzPathWalker_m_internal_get, _mupdf.FzPathWalker_m_internal_set, doc=r"""Pointer to wrapped data.""")
  23941. s_num_instances = property(_mupdf.FzPathWalker_s_num_instances_get, _mupdf.FzPathWalker_s_num_instances_set)
  23942. # Register FzPathWalker in _mupdf:
  23943. _mupdf.FzPathWalker_swigregister(FzPathWalker)
  23944. class FzPathWalker2(FzPathWalker):
  23945. r"""Wrapper class for struct fz_path_walker with virtual fns for each fnptr; this is for use as a SWIG Director class."""
  23946. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  23947. __repr__ = _swig_repr
  23948. def __init__(self):
  23949. r"""== Constructor."""
  23950. if self.__class__ == FzPathWalker2:
  23951. _self = None
  23952. else:
  23953. _self = self
  23954. _mupdf.FzPathWalker2_swiginit(self, _mupdf.new_FzPathWalker2(_self, ))
  23955. __swig_destroy__ = _mupdf.delete_FzPathWalker2
  23956. def use_virtual_moveto(self, use=True):
  23957. r"""
  23958. These methods set the function pointers in *m_internal
  23959. to point to internal callbacks that call our virtual methods.
  23960. """
  23961. return _mupdf.FzPathWalker2_use_virtual_moveto(self, use)
  23962. def use_virtual_lineto(self, use=True):
  23963. return _mupdf.FzPathWalker2_use_virtual_lineto(self, use)
  23964. def use_virtual_curveto(self, use=True):
  23965. return _mupdf.FzPathWalker2_use_virtual_curveto(self, use)
  23966. def use_virtual_closepath(self, use=True):
  23967. return _mupdf.FzPathWalker2_use_virtual_closepath(self, use)
  23968. def use_virtual_quadto(self, use=True):
  23969. return _mupdf.FzPathWalker2_use_virtual_quadto(self, use)
  23970. def use_virtual_curvetov(self, use=True):
  23971. return _mupdf.FzPathWalker2_use_virtual_curvetov(self, use)
  23972. def use_virtual_curvetoy(self, use=True):
  23973. return _mupdf.FzPathWalker2_use_virtual_curvetoy(self, use)
  23974. def use_virtual_rectto(self, use=True):
  23975. return _mupdf.FzPathWalker2_use_virtual_rectto(self, use)
  23976. def moveto(self, arg_0, arg_2, arg_3):
  23977. r"""Default virtual method implementations; these all throw an exception."""
  23978. return _mupdf.FzPathWalker2_moveto(self, arg_0, arg_2, arg_3)
  23979. def lineto(self, arg_0, arg_2, arg_3):
  23980. return _mupdf.FzPathWalker2_lineto(self, arg_0, arg_2, arg_3)
  23981. def curveto(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7):
  23982. return _mupdf.FzPathWalker2_curveto(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7)
  23983. def closepath(self, arg_0):
  23984. return _mupdf.FzPathWalker2_closepath(self, arg_0)
  23985. def quadto(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  23986. return _mupdf.FzPathWalker2_quadto(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  23987. def curvetov(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  23988. return _mupdf.FzPathWalker2_curvetov(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  23989. def curvetoy(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  23990. return _mupdf.FzPathWalker2_curvetoy(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  23991. def rectto(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  23992. return _mupdf.FzPathWalker2_rectto(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  23993. def __disown__(self):
  23994. self.this.disown()
  23995. _mupdf.disown_FzPathWalker2(self)
  23996. return weakref.proxy(self)
  23997. # Register FzPathWalker2 in _mupdf:
  23998. _mupdf.FzPathWalker2_swigregister(FzPathWalker2)
  23999. class FzPclOptions(object):
  24000. r"""
  24001. Wrapper class for struct `fz_pcl_options`. Not copyable or assignable.
  24002. PCL output
  24003. """
  24004. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  24005. __repr__ = _swig_repr
  24006. def fz_pcl_preset(self, preset):
  24007. r"""
  24008. Class-aware wrapper for `::fz_pcl_preset()`.
  24009. Initialize PCL option struct for a given preset.
  24010. Currently defined presets include:
  24011. generic Generic PCL printer
  24012. ljet4 HP DeskJet
  24013. dj500 HP DeskJet 500
  24014. fs600 Kyocera FS-600
  24015. lj HP LaserJet, HP LaserJet Plus
  24016. lj2 HP LaserJet IIp, HP LaserJet IId
  24017. lj3 HP LaserJet III
  24018. lj3d HP LaserJet IIId
  24019. lj4 HP LaserJet 4
  24020. lj4pl HP LaserJet 4 PL
  24021. lj4d HP LaserJet 4d
  24022. lp2563b HP 2563B line printer
  24023. oce9050 Oce 9050 Line printer
  24024. """
  24025. return _mupdf.FzPclOptions_fz_pcl_preset(self, preset)
  24026. def __init__(self, *args):
  24027. r"""
  24028. *Overload 1:*
  24029. == Constructors. Constructor using `fz_parse_pcl_options()`.
  24030. Parse PCL options.
  24031. Currently defined options and values are as follows:
  24032. preset=X Either "generic" or one of the presets as for fz_pcl_preset.
  24033. spacing=0 No vertical spacing capability
  24034. spacing=1 PCL 3 spacing (<ESC>*p+<n>Y)
  24035. spacing=2 PCL 4 spacing (<ESC>*b<n>Y)
  24036. spacing=3 PCL 5 spacing (<ESC>*b<n>Y and clear seed row)
  24037. mode2 Disable/Enable mode 2 graphics compression
  24038. mode3 Disable/Enable mode 3 graphics compression
  24039. eog_reset End of graphics (<ESC>*rB) resets all parameters
  24040. has_duplex Duplex supported (<ESC>&l<duplex>S)
  24041. has_papersize Papersize setting supported (<ESC>&l<sizecode>A)
  24042. has_copies Number of copies supported (<ESC>&l<copies>X)
  24043. is_ljet4pjl Disable/Enable HP 4PJL model-specific output
  24044. is_oce9050 Disable/Enable Oce 9050 model-specific output
  24045. |
  24046. *Overload 2:*
  24047. Default constructor, sets `m_internal` to null.
  24048. |
  24049. *Overload 3:*
  24050. Constructor using raw copy of pre-existing `::fz_pcl_options`.
  24051. """
  24052. _mupdf.FzPclOptions_swiginit(self, _mupdf.new_FzPclOptions(*args))
  24053. __swig_destroy__ = _mupdf.delete_FzPclOptions
  24054. def m_internal_value(self):
  24055. r"""Return numerical value of .m_internal; helps with Python debugging."""
  24056. return _mupdf.FzPclOptions_m_internal_value(self)
  24057. def __nonzero__(self):
  24058. return _mupdf.FzPclOptions___nonzero__(self)
  24059. __bool__ = __nonzero__
  24060. m_internal = property(_mupdf.FzPclOptions_m_internal_get, _mupdf.FzPclOptions_m_internal_set, doc=r"""Pointer to wrapped data.""")
  24061. s_num_instances = property(_mupdf.FzPclOptions_s_num_instances_get, _mupdf.FzPclOptions_s_num_instances_set)
  24062. # Register FzPclOptions in _mupdf:
  24063. _mupdf.FzPclOptions_swigregister(FzPclOptions)
  24064. class FzPclmOptions(object):
  24065. r"""
  24066. Wrapper class for struct `fz_pclm_options`. Not copyable or assignable.
  24067. PCLm output
  24068. """
  24069. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  24070. __repr__ = _swig_repr
  24071. def __init__(self, *args):
  24072. r"""
  24073. *Overload 1:*
  24074. == Constructors. Constructor using `fz_parse_pclm_options()`.
  24075. Parse PCLm options.
  24076. Currently defined options and values are as follows:
  24077. compression=none: No compression
  24078. compression=flate: Flate compression
  24079. strip-height=n: Strip height (default 16)
  24080. |
  24081. *Overload 2:*
  24082. Construct using fz_parse_pclm_options().
  24083. |
  24084. *Overload 3:*
  24085. Default constructor, sets `m_internal` to null.
  24086. |
  24087. *Overload 4:*
  24088. Constructor using raw copy of pre-existing `::fz_pclm_options`.
  24089. """
  24090. _mupdf.FzPclmOptions_swiginit(self, _mupdf.new_FzPclmOptions(*args))
  24091. __swig_destroy__ = _mupdf.delete_FzPclmOptions
  24092. def m_internal_value(self):
  24093. r"""Return numerical value of .m_internal; helps with Python debugging."""
  24094. return _mupdf.FzPclmOptions_m_internal_value(self)
  24095. def __nonzero__(self):
  24096. return _mupdf.FzPclmOptions___nonzero__(self)
  24097. __bool__ = __nonzero__
  24098. m_internal = property(_mupdf.FzPclmOptions_m_internal_get, _mupdf.FzPclmOptions_m_internal_set, doc=r"""Pointer to wrapped data.""")
  24099. s_num_instances = property(_mupdf.FzPclmOptions_s_num_instances_get, _mupdf.FzPclmOptions_s_num_instances_set)
  24100. # Register FzPclmOptions in _mupdf:
  24101. _mupdf.FzPclmOptions_swigregister(FzPclmOptions)
  24102. class FzPdfocrOptions(object):
  24103. r"""
  24104. Wrapper class for struct `fz_pdfocr_options`.
  24105. PDFOCR output
  24106. """
  24107. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  24108. __repr__ = _swig_repr
  24109. def fz_parse_pdfocr_options(self, args):
  24110. r"""
  24111. Class-aware wrapper for `::fz_parse_pdfocr_options()`.
  24112. Parse PDFOCR options.
  24113. Currently defined options and values are as follows:
  24114. compression=none: No compression
  24115. compression=flate: Flate compression
  24116. strip-height=n: Strip height (default 16)
  24117. ocr-language=<lang>: OCR Language (default eng)
  24118. ocr-datadir=<datadir>: OCR data path (default rely on TESSDATA_PREFIX)
  24119. """
  24120. return _mupdf.FzPdfocrOptions_fz_parse_pdfocr_options(self, args)
  24121. def language_set2(self, language):
  24122. r"""Copies <language> into this->language, truncating if necessary."""
  24123. return _mupdf.FzPdfocrOptions_language_set2(self, language)
  24124. def datadir_set2(self, datadir):
  24125. r"""Copies <datadir> into this->datadir, truncating if necessary."""
  24126. return _mupdf.FzPdfocrOptions_datadir_set2(self, datadir)
  24127. def __init__(self, *args):
  24128. r"""
  24129. *Overload 1:*
  24130. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  24131. |
  24132. *Overload 2:*
  24133. Constructor using raw copy of pre-existing `::fz_pdfocr_options`.
  24134. |
  24135. *Overload 3:*
  24136. Constructor using raw copy of pre-existing `::fz_pdfocr_options`.
  24137. """
  24138. _mupdf.FzPdfocrOptions_swiginit(self, _mupdf.new_FzPdfocrOptions(*args))
  24139. def internal(self, *args):
  24140. r"""
  24141. *Overload 1:*
  24142. Access as underlying struct.
  24143. |
  24144. *Overload 2:*
  24145. Access as underlying struct.
  24146. """
  24147. return _mupdf.FzPdfocrOptions_internal(self, *args)
  24148. __swig_destroy__ = _mupdf.delete_FzPdfocrOptions
  24149. compress = property(_mupdf.FzPdfocrOptions_compress_get, _mupdf.FzPdfocrOptions_compress_set)
  24150. strip_height = property(_mupdf.FzPdfocrOptions_strip_height_get, _mupdf.FzPdfocrOptions_strip_height_set)
  24151. language = property(_mupdf.FzPdfocrOptions_language_get, _mupdf.FzPdfocrOptions_language_set)
  24152. datadir = property(_mupdf.FzPdfocrOptions_datadir_get, _mupdf.FzPdfocrOptions_datadir_set)
  24153. skew_correct = property(_mupdf.FzPdfocrOptions_skew_correct_get, _mupdf.FzPdfocrOptions_skew_correct_set)
  24154. skew_angle = property(_mupdf.FzPdfocrOptions_skew_angle_get, _mupdf.FzPdfocrOptions_skew_angle_set)
  24155. skew_border = property(_mupdf.FzPdfocrOptions_skew_border_get, _mupdf.FzPdfocrOptions_skew_border_set)
  24156. page_count = property(_mupdf.FzPdfocrOptions_page_count_get, _mupdf.FzPdfocrOptions_page_count_set)
  24157. s_num_instances = property(_mupdf.FzPdfocrOptions_s_num_instances_get, _mupdf.FzPdfocrOptions_s_num_instances_set)
  24158. def to_string(self):
  24159. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  24160. return _mupdf.FzPdfocrOptions_to_string(self)
  24161. def __eq__(self, rhs):
  24162. r"""Comparison method."""
  24163. return _mupdf.FzPdfocrOptions___eq__(self, rhs)
  24164. def __ne__(self, rhs):
  24165. r"""Comparison method."""
  24166. return _mupdf.FzPdfocrOptions___ne__(self, rhs)
  24167. # Register FzPdfocrOptions in _mupdf:
  24168. _mupdf.FzPdfocrOptions_swigregister(FzPdfocrOptions)
  24169. class FzPixmap(object):
  24170. r"""
  24171. Wrapper class for struct `fz_pixmap`.
  24172. Pixmaps represent a set of pixels for a 2 dimensional region of
  24173. a plane. Each pixel has n components per pixel. The components
  24174. are in the order process-components, spot-colors, alpha, where
  24175. there can be 0 of any of those types. The data is in
  24176. premultiplied alpha when rendering, but non-premultiplied for
  24177. colorspace conversions and rescaling.
  24178. """
  24179. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  24180. __repr__ = _swig_repr
  24181. @staticmethod
  24182. def pdf_new_pixmap_from_page_with_usage(page, ctm, cs, alpha, usage, box):
  24183. r"""Class-aware wrapper for `::pdf_new_pixmap_from_page_with_usage()`."""
  24184. return _mupdf.FzPixmap_pdf_new_pixmap_from_page_with_usage(page, ctm, cs, alpha, usage, box)
  24185. @staticmethod
  24186. def pdf_new_pixmap_from_page_with_separations_and_usage(page, ctm, cs, seps, alpha, usage, box):
  24187. r"""Class-aware wrapper for `::pdf_new_pixmap_from_page_with_separations_and_usage()`."""
  24188. return _mupdf.FzPixmap_pdf_new_pixmap_from_page_with_separations_and_usage(page, ctm, cs, seps, alpha, usage, box)
  24189. @staticmethod
  24190. def fz_new_pixmap_from_page_contents(page, ctm, cs, alpha):
  24191. r"""
  24192. Class-aware wrapper for `::fz_new_pixmap_from_page_contents()`.
  24193. Render the page contents without annotations.
  24194. Ownership of the pixmap is returned to the caller.
  24195. """
  24196. return _mupdf.FzPixmap_fz_new_pixmap_from_page_contents(page, ctm, cs, alpha)
  24197. @staticmethod
  24198. def fz_new_pixmap_from_page_contents_with_separations(page, ctm, cs, seps, alpha):
  24199. r"""Class-aware wrapper for `::fz_new_pixmap_from_page_contents_with_separations()`."""
  24200. return _mupdf.FzPixmap_fz_new_pixmap_from_page_contents_with_separations(page, ctm, cs, seps, alpha)
  24201. def fz_alpha_from_gray(self):
  24202. r"""Class-aware wrapper for `::fz_alpha_from_gray()`."""
  24203. return _mupdf.FzPixmap_fz_alpha_from_gray(self)
  24204. def fz_autowarp_pixmap(self, points):
  24205. r"""Class-aware wrapper for `::fz_autowarp_pixmap()`."""
  24206. return _mupdf.FzPixmap_fz_autowarp_pixmap(self, points)
  24207. def fz_clear_pixmap(self):
  24208. r"""
  24209. Class-aware wrapper for `::fz_clear_pixmap()`.
  24210. Sets all components (including alpha) of
  24211. all pixels in a pixmap to 0.
  24212. pix: The pixmap to clear.
  24213. """
  24214. return _mupdf.FzPixmap_fz_clear_pixmap(self)
  24215. def fz_clear_pixmap_rect_with_value(self, value, r):
  24216. r"""
  24217. Class-aware wrapper for `::fz_clear_pixmap_rect_with_value()`.
  24218. Clears a subrect of a pixmap with the given value.
  24219. pix: The pixmap to clear.
  24220. value: Values in the range 0 to 255 are valid. Each component
  24221. sample for each pixel in the pixmap will be set to this value,
  24222. while alpha will always be set to 255 (non-transparent).
  24223. r: the rectangle.
  24224. """
  24225. return _mupdf.FzPixmap_fz_clear_pixmap_rect_with_value(self, value, r)
  24226. def fz_clear_pixmap_with_value(self, value):
  24227. r"""
  24228. Class-aware wrapper for `::fz_clear_pixmap_with_value()`.
  24229. Clears a pixmap with the given value.
  24230. pix: The pixmap to clear.
  24231. value: Values in the range 0 to 255 are valid. Each component
  24232. sample for each pixel in the pixmap will be set to this value,
  24233. while alpha will always be set to 255 (non-transparent).
  24234. This function is horrible, and should be removed from the
  24235. API and replaced with a less magic one.
  24236. """
  24237. return _mupdf.FzPixmap_fz_clear_pixmap_with_value(self, value)
  24238. def fz_clone_pixmap(self):
  24239. r"""
  24240. Class-aware wrapper for `::fz_clone_pixmap()`.
  24241. Clone a pixmap, copying the pixels and associated data to new
  24242. storage.
  24243. The reference count of 'old' is unchanged.
  24244. """
  24245. return _mupdf.FzPixmap_fz_clone_pixmap(self)
  24246. def fz_clone_pixmap_area_with_different_seps(self, bbox, dcs, seps, color_params, default_cs):
  24247. r"""Class-aware wrapper for `::fz_clone_pixmap_area_with_different_seps()`."""
  24248. return _mupdf.FzPixmap_fz_clone_pixmap_area_with_different_seps(self, bbox, dcs, seps, color_params, default_cs)
  24249. def fz_convert_indexed_pixmap_to_base(self):
  24250. r"""
  24251. Class-aware wrapper for `::fz_convert_indexed_pixmap_to_base()`.
  24252. Convert pixmap from indexed to base colorspace.
  24253. This creates a new bitmap containing the converted pixmap data.
  24254. """
  24255. return _mupdf.FzPixmap_fz_convert_indexed_pixmap_to_base(self)
  24256. def fz_convert_pixmap(self, cs_des, prf, default_cs, color_params, keep_alpha):
  24257. r"""
  24258. Class-aware wrapper for `::fz_convert_pixmap()`.
  24259. Convert an existing pixmap to a desired
  24260. colorspace. Other properties of the pixmap, such as resolution
  24261. and position are copied to the converted pixmap.
  24262. pix: The pixmap to convert.
  24263. default_cs: If NULL pix->colorspace is used. It is possible that
  24264. the data may need to be interpreted as one of the color spaces
  24265. in default_cs.
  24266. cs_des: Desired colorspace, may be NULL to denote alpha-only.
  24267. prf: Proofing color space through which we need to convert.
  24268. color_params: Parameters that may be used in conversion (e.g.
  24269. ri).
  24270. keep_alpha: If 0 any alpha component is removed, otherwise
  24271. alpha is kept if present in the pixmap.
  24272. """
  24273. return _mupdf.FzPixmap_fz_convert_pixmap(self, cs_des, prf, default_cs, color_params, keep_alpha)
  24274. def fz_convert_separation_pixmap_to_base(self):
  24275. r"""
  24276. Class-aware wrapper for `::fz_convert_separation_pixmap_to_base()`.
  24277. Convert pixmap from DeviceN/Separation to base colorspace.
  24278. This creates a new bitmap containing the converted pixmap data.
  24279. """
  24280. return _mupdf.FzPixmap_fz_convert_separation_pixmap_to_base(self)
  24281. def fz_copy_pixmap_rect(self, src, r, default_cs):
  24282. r"""Class-aware wrapper for `::fz_copy_pixmap_rect()`."""
  24283. return _mupdf.FzPixmap_fz_copy_pixmap_rect(self, src, r, default_cs)
  24284. def fz_decode_tile(self, decode):
  24285. r"""Class-aware wrapper for `::fz_decode_tile()`."""
  24286. return _mupdf.FzPixmap_fz_decode_tile(self, decode)
  24287. def fz_deskew_pixmap(self, degrees, border):
  24288. r"""Class-aware wrapper for `::fz_deskew_pixmap()`."""
  24289. return _mupdf.FzPixmap_fz_deskew_pixmap(self, degrees, border)
  24290. def fz_detect_skew(self):
  24291. r"""Class-aware wrapper for `::fz_detect_skew()`."""
  24292. return _mupdf.FzPixmap_fz_detect_skew(self)
  24293. def fz_fill_pixmap_with_color(self, colorspace, color, color_params):
  24294. r"""
  24295. Class-aware wrapper for `::fz_fill_pixmap_with_color()`.
  24296. This method has out-params. Python/C# wrappers look like:
  24297. `fz_fill_pixmap_with_color(::fz_colorspace *colorspace, ::fz_color_params color_params)` => float color
  24298. Fill pixmap with solid color.
  24299. """
  24300. return _mupdf.FzPixmap_fz_fill_pixmap_with_color(self, colorspace, color, color_params)
  24301. def fz_gamma_pixmap(self, gamma):
  24302. r"""
  24303. Class-aware wrapper for `::fz_gamma_pixmap()`.
  24304. Apply gamma correction to a pixmap. All components
  24305. of all pixels are modified (except alpha, which is unchanged).
  24306. gamma: The gamma value to apply; 1.0 for no change.
  24307. """
  24308. return _mupdf.FzPixmap_fz_gamma_pixmap(self, gamma)
  24309. def fz_generate_transition(self, opix, npix, time, trans):
  24310. r"""
  24311. Class-aware wrapper for `::fz_generate_transition()`.
  24312. Generate a frame of a transition.
  24313. tpix: Target pixmap
  24314. opix: Old pixmap
  24315. npix: New pixmap
  24316. time: Position within the transition (0 to 256)
  24317. trans: Transition details
  24318. Returns 1 if successfully generated a frame.
  24319. Note: Pixmaps must include alpha.
  24320. """
  24321. return _mupdf.FzPixmap_fz_generate_transition(self, opix, npix, time, trans)
  24322. def fz_invert_pixmap(self):
  24323. r"""
  24324. Class-aware wrapper for `::fz_invert_pixmap()`.
  24325. Invert all the pixels in a pixmap. All components (process and
  24326. spots) of all pixels are inverted (except alpha, which is
  24327. unchanged).
  24328. """
  24329. return _mupdf.FzPixmap_fz_invert_pixmap(self)
  24330. def fz_invert_pixmap_alpha(self):
  24331. r"""
  24332. Class-aware wrapper for `::fz_invert_pixmap_alpha()`.
  24333. Invert the alpha of all the pixels in a pixmap.
  24334. """
  24335. return _mupdf.FzPixmap_fz_invert_pixmap_alpha(self)
  24336. def fz_invert_pixmap_luminance(self):
  24337. r"""
  24338. Class-aware wrapper for `::fz_invert_pixmap_luminance()`.
  24339. Transform the pixels in a pixmap so that luminance of each
  24340. pixel is inverted, and the chrominance remains unchanged (as
  24341. much as accuracy allows).
  24342. All components of all pixels are inverted (except alpha, which
  24343. is unchanged). Only supports Grey and RGB bitmaps.
  24344. """
  24345. return _mupdf.FzPixmap_fz_invert_pixmap_luminance(self)
  24346. def fz_invert_pixmap_raw(self):
  24347. r"""
  24348. Class-aware wrapper for `::fz_invert_pixmap_raw()`.
  24349. Invert all the pixels in a non-premultiplied pixmap in a
  24350. very naive manner.
  24351. """
  24352. return _mupdf.FzPixmap_fz_invert_pixmap_raw(self)
  24353. def fz_invert_pixmap_rect(self, rect):
  24354. r"""
  24355. Class-aware wrapper for `::fz_invert_pixmap_rect()`.
  24356. Invert all the pixels in a given rectangle of a (premultiplied)
  24357. pixmap. All components of all pixels in the rectangle are
  24358. inverted (except alpha, which is unchanged).
  24359. """
  24360. return _mupdf.FzPixmap_fz_invert_pixmap_rect(self, rect)
  24361. def fz_is_pixmap_monochrome(self):
  24362. r"""
  24363. Class-aware wrapper for `::fz_is_pixmap_monochrome()`.
  24364. Check if the pixmap is a 1-channel image containing samples with
  24365. only values 0 and 255
  24366. """
  24367. return _mupdf.FzPixmap_fz_is_pixmap_monochrome(self)
  24368. def fz_md5_pixmap(self, digest):
  24369. r"""Class-aware wrapper for `::fz_md5_pixmap()`."""
  24370. return _mupdf.FzPixmap_fz_md5_pixmap(self, digest)
  24371. def fz_md5_pixmap2(self):
  24372. r"""
  24373. Class-aware wrapper for `::fz_md5_pixmap2()`.
  24374. C++ alternative to `fz_md5_pixmap()` that returns the digest by value.
  24375. """
  24376. return _mupdf.FzPixmap_fz_md5_pixmap2(self)
  24377. def fz_new_bitmap_from_pixmap(self, ht):
  24378. r"""
  24379. Class-aware wrapper for `::fz_new_bitmap_from_pixmap()`.
  24380. Make a bitmap from a pixmap and a halftone.
  24381. pix: The pixmap to generate from. Currently must be a single
  24382. color component with no alpha.
  24383. ht: The halftone to use. NULL implies the default halftone.
  24384. Returns the resultant bitmap. Throws exceptions in the case of
  24385. failure to allocate.
  24386. """
  24387. return _mupdf.FzPixmap_fz_new_bitmap_from_pixmap(self, ht)
  24388. def fz_new_bitmap_from_pixmap_band(self, ht, band_start):
  24389. r"""
  24390. Class-aware wrapper for `::fz_new_bitmap_from_pixmap_band()`.
  24391. Make a bitmap from a pixmap and a
  24392. halftone, allowing for the position of the pixmap within an
  24393. overall banded rendering.
  24394. pix: The pixmap to generate from. Currently must be a single
  24395. color component with no alpha.
  24396. ht: The halftone to use. NULL implies the default halftone.
  24397. band_start: Vertical offset within the overall banded rendering
  24398. (in pixels)
  24399. Returns the resultant bitmap. Throws exceptions in the case of
  24400. failure to allocate.
  24401. """
  24402. return _mupdf.FzPixmap_fz_new_bitmap_from_pixmap_band(self, ht, band_start)
  24403. def fz_new_buffer_from_pixmap_as_jpeg(self, color_params, quality, invert_cmyk):
  24404. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_jpeg()`."""
  24405. return _mupdf.FzPixmap_fz_new_buffer_from_pixmap_as_jpeg(self, color_params, quality, invert_cmyk)
  24406. def fz_new_buffer_from_pixmap_as_jpx(self, color_params, quality):
  24407. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_jpx()`."""
  24408. return _mupdf.FzPixmap_fz_new_buffer_from_pixmap_as_jpx(self, color_params, quality)
  24409. def fz_new_buffer_from_pixmap_as_pam(self, color_params):
  24410. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pam()`."""
  24411. return _mupdf.FzPixmap_fz_new_buffer_from_pixmap_as_pam(self, color_params)
  24412. def fz_new_buffer_from_pixmap_as_pbm(self, color_params):
  24413. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pbm()`."""
  24414. return _mupdf.FzPixmap_fz_new_buffer_from_pixmap_as_pbm(self, color_params)
  24415. def fz_new_buffer_from_pixmap_as_pkm(self, color_params):
  24416. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pkm()`."""
  24417. return _mupdf.FzPixmap_fz_new_buffer_from_pixmap_as_pkm(self, color_params)
  24418. def fz_new_buffer_from_pixmap_as_png(self, color_params):
  24419. r"""
  24420. Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_png()`.
  24421. Re-encode a given pixmap as a PNG into a buffer.
  24422. Ownership of the buffer is returned.
  24423. """
  24424. return _mupdf.FzPixmap_fz_new_buffer_from_pixmap_as_png(self, color_params)
  24425. def fz_new_buffer_from_pixmap_as_pnm(self, color_params):
  24426. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pnm()`."""
  24427. return _mupdf.FzPixmap_fz_new_buffer_from_pixmap_as_pnm(self, color_params)
  24428. def fz_new_buffer_from_pixmap_as_psd(self, color_params):
  24429. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_psd()`."""
  24430. return _mupdf.FzPixmap_fz_new_buffer_from_pixmap_as_psd(self, color_params)
  24431. def fz_new_image_from_pixmap(self, mask):
  24432. r"""
  24433. Class-aware wrapper for `::fz_new_image_from_pixmap()`.
  24434. Create an image from the given
  24435. pixmap.
  24436. pixmap: The pixmap to base the image upon. A new reference
  24437. to this is taken.
  24438. mask: NULL, or another image to use as a mask for this one.
  24439. A new reference is taken to this image. Supplying a masked
  24440. image as a mask to another image is illegal!
  24441. """
  24442. return _mupdf.FzPixmap_fz_new_image_from_pixmap(self, mask)
  24443. def fz_new_pixmap_from_alpha_channel(self):
  24444. r"""Class-aware wrapper for `::fz_new_pixmap_from_alpha_channel()`."""
  24445. return _mupdf.FzPixmap_fz_new_pixmap_from_alpha_channel(self)
  24446. def fz_new_pixmap_from_color_and_mask(self, mask):
  24447. r"""Class-aware wrapper for `::fz_new_pixmap_from_color_and_mask()`."""
  24448. return _mupdf.FzPixmap_fz_new_pixmap_from_color_and_mask(self, mask)
  24449. def fz_new_pixmap_from_pixmap(self, rect):
  24450. r"""
  24451. Class-aware wrapper for `::fz_new_pixmap_from_pixmap()`.
  24452. Create a new pixmap that represents a subarea of the specified
  24453. pixmap. A reference is taken to this pixmap that will be dropped
  24454. on destruction.
  24455. The supplied rectangle must be wholly contained within the
  24456. original pixmap.
  24457. Returns a pointer to the new pixmap. Throws exception on failure
  24458. to allocate.
  24459. """
  24460. return _mupdf.FzPixmap_fz_new_pixmap_from_pixmap(self, rect)
  24461. def fz_pixmap_alpha(self):
  24462. r"""
  24463. Class-aware wrapper for `::fz_pixmap_alpha()`.
  24464. Return the number of alpha planes in a pixmap.
  24465. Returns the number of alphas. Does not throw exceptions.
  24466. """
  24467. return _mupdf.FzPixmap_fz_pixmap_alpha(self)
  24468. def fz_pixmap_bbox(self):
  24469. r"""
  24470. Class-aware wrapper for `::fz_pixmap_bbox()`.
  24471. Return the bounding box for a pixmap.
  24472. """
  24473. return _mupdf.FzPixmap_fz_pixmap_bbox(self)
  24474. def fz_pixmap_colorants(self):
  24475. r"""
  24476. Class-aware wrapper for `::fz_pixmap_colorants()`.
  24477. Return the number of colorants in a pixmap.
  24478. Returns the number of colorants (components, less any spots and
  24479. alpha).
  24480. """
  24481. return _mupdf.FzPixmap_fz_pixmap_colorants(self)
  24482. def fz_pixmap_colorspace(self):
  24483. r"""
  24484. Class-aware wrapper for `::fz_pixmap_colorspace()`.
  24485. Return the colorspace of a pixmap
  24486. Returns colorspace.
  24487. """
  24488. return _mupdf.FzPixmap_fz_pixmap_colorspace(self)
  24489. def fz_pixmap_components(self):
  24490. r"""
  24491. Class-aware wrapper for `::fz_pixmap_components()`.
  24492. Return the number of components in a pixmap.
  24493. Returns the number of components (including spots and alpha).
  24494. """
  24495. return _mupdf.FzPixmap_fz_pixmap_components(self)
  24496. def fz_pixmap_height(self):
  24497. r"""
  24498. Class-aware wrapper for `::fz_pixmap_height()`.
  24499. Return the height of the pixmap in pixels.
  24500. """
  24501. return _mupdf.FzPixmap_fz_pixmap_height(self)
  24502. def fz_pixmap_samples(self):
  24503. r"""
  24504. Class-aware wrapper for `::fz_pixmap_samples()`.
  24505. Returns a pointer to the pixel data of a pixmap.
  24506. Returns the pointer.
  24507. """
  24508. return _mupdf.FzPixmap_fz_pixmap_samples(self)
  24509. def fz_pixmap_samples_int(self):
  24510. r"""Class-aware wrapper for `::fz_pixmap_samples_int()`."""
  24511. return _mupdf.FzPixmap_fz_pixmap_samples_int(self)
  24512. def fz_pixmap_size(self):
  24513. r"""
  24514. Class-aware wrapper for `::fz_pixmap_size()`.
  24515. Return sizeof fz_pixmap plus size of data, in bytes.
  24516. """
  24517. return _mupdf.FzPixmap_fz_pixmap_size(self)
  24518. def fz_pixmap_spots(self):
  24519. r"""
  24520. Class-aware wrapper for `::fz_pixmap_spots()`.
  24521. Return the number of spots in a pixmap.
  24522. Returns the number of spots (components, less colorants and
  24523. alpha). Does not throw exceptions.
  24524. """
  24525. return _mupdf.FzPixmap_fz_pixmap_spots(self)
  24526. def fz_pixmap_stride(self):
  24527. r"""
  24528. Class-aware wrapper for `::fz_pixmap_stride()`.
  24529. Return the number of bytes in a row in the pixmap.
  24530. """
  24531. return _mupdf.FzPixmap_fz_pixmap_stride(self)
  24532. def fz_pixmap_width(self):
  24533. r"""
  24534. Class-aware wrapper for `::fz_pixmap_width()`.
  24535. Return the width of the pixmap in pixels.
  24536. """
  24537. return _mupdf.FzPixmap_fz_pixmap_width(self)
  24538. def fz_pixmap_x(self):
  24539. r"""
  24540. Class-aware wrapper for `::fz_pixmap_x()`.
  24541. Return the x value of the pixmap in pixels.
  24542. """
  24543. return _mupdf.FzPixmap_fz_pixmap_x(self)
  24544. def fz_pixmap_y(self):
  24545. r"""
  24546. Class-aware wrapper for `::fz_pixmap_y()`.
  24547. Return the y value of the pixmap in pixels.
  24548. """
  24549. return _mupdf.FzPixmap_fz_pixmap_y(self)
  24550. def fz_samples_get(self, offset):
  24551. r"""
  24552. Class-aware wrapper for `::fz_samples_get()`.
  24553. Provides simple (but slow) access to pixmap data from Python and C#.
  24554. """
  24555. return _mupdf.FzPixmap_fz_samples_get(self, offset)
  24556. def fz_samples_set(self, offset, value):
  24557. r"""
  24558. Class-aware wrapper for `::fz_samples_set()`.
  24559. Provides simple (but slow) write access to pixmap data from Python and
  24560. C#.
  24561. """
  24562. return _mupdf.FzPixmap_fz_samples_set(self, offset, value)
  24563. def fz_save_pixmap_as_jpeg(self, filename, quality):
  24564. r"""
  24565. Class-aware wrapper for `::fz_save_pixmap_as_jpeg()`.
  24566. Save a pixmap as a JPEG.
  24567. """
  24568. return _mupdf.FzPixmap_fz_save_pixmap_as_jpeg(self, filename, quality)
  24569. def fz_save_pixmap_as_jpx(self, filename, q):
  24570. r"""
  24571. Class-aware wrapper for `::fz_save_pixmap_as_jpx()`.
  24572. Save pixmap data as JP2K with no subsampling.
  24573. quality = 100 = lossless
  24574. otherwise for a factor of x compression use 100-x. (so 80 is 1:20 compression)
  24575. """
  24576. return _mupdf.FzPixmap_fz_save_pixmap_as_jpx(self, filename, q)
  24577. def fz_save_pixmap_as_pam(self, filename):
  24578. r"""
  24579. Class-aware wrapper for `::fz_save_pixmap_as_pam()`.
  24580. Save a pixmap as a pnm (greyscale, rgb or cmyk, with or without
  24581. alpha).
  24582. """
  24583. return _mupdf.FzPixmap_fz_save_pixmap_as_pam(self, filename)
  24584. def fz_save_pixmap_as_pbm(self, filename):
  24585. r"""
  24586. Class-aware wrapper for `::fz_save_pixmap_as_pbm()`.
  24587. Save a pixmap as a pbm. (Performing halftoning).
  24588. """
  24589. return _mupdf.FzPixmap_fz_save_pixmap_as_pbm(self, filename)
  24590. def fz_save_pixmap_as_pcl(self, filename, append, pcl):
  24591. r"""
  24592. Class-aware wrapper for `::fz_save_pixmap_as_pcl()`.
  24593. Save an (RGB) pixmap as color PCL.
  24594. """
  24595. return _mupdf.FzPixmap_fz_save_pixmap_as_pcl(self, filename, append, pcl)
  24596. def fz_save_pixmap_as_pclm(self, filename, append, options):
  24597. r"""
  24598. Class-aware wrapper for `::fz_save_pixmap_as_pclm()`.
  24599. Save a (Greyscale or RGB) pixmap as pclm.
  24600. """
  24601. return _mupdf.FzPixmap_fz_save_pixmap_as_pclm(self, filename, append, options)
  24602. def fz_save_pixmap_as_pdfocr(self, filename, append, options):
  24603. r"""
  24604. Class-aware wrapper for `::fz_save_pixmap_as_pdfocr()`.
  24605. Save a (Greyscale or RGB) pixmap as pdfocr.
  24606. """
  24607. return _mupdf.FzPixmap_fz_save_pixmap_as_pdfocr(self, filename, append, options)
  24608. def fz_save_pixmap_as_pkm(self, filename):
  24609. r"""
  24610. Class-aware wrapper for `::fz_save_pixmap_as_pkm()`.
  24611. Save a CMYK pixmap as a pkm. (Performing halftoning).
  24612. """
  24613. return _mupdf.FzPixmap_fz_save_pixmap_as_pkm(self, filename)
  24614. def fz_save_pixmap_as_png(self, filename):
  24615. r"""
  24616. Class-aware wrapper for `::fz_save_pixmap_as_png()`.
  24617. Save a (Greyscale or RGB) pixmap as a png.
  24618. """
  24619. return _mupdf.FzPixmap_fz_save_pixmap_as_png(self, filename)
  24620. def fz_save_pixmap_as_pnm(self, filename):
  24621. r"""
  24622. Class-aware wrapper for `::fz_save_pixmap_as_pnm()`.
  24623. Save a pixmap as a pnm (greyscale or rgb, no alpha).
  24624. """
  24625. return _mupdf.FzPixmap_fz_save_pixmap_as_pnm(self, filename)
  24626. def fz_save_pixmap_as_ps(self, filename, append):
  24627. r"""
  24628. Class-aware wrapper for `::fz_save_pixmap_as_ps()`.
  24629. Save a (gray, rgb, or cmyk, no alpha) pixmap out as postscript.
  24630. """
  24631. return _mupdf.FzPixmap_fz_save_pixmap_as_ps(self, filename, append)
  24632. def fz_save_pixmap_as_psd(self, filename):
  24633. r"""
  24634. Class-aware wrapper for `::fz_save_pixmap_as_psd()`.
  24635. Save a pixmap as a PSD file.
  24636. """
  24637. return _mupdf.FzPixmap_fz_save_pixmap_as_psd(self, filename)
  24638. def fz_save_pixmap_as_pwg(self, filename, append, pwg):
  24639. r"""
  24640. Class-aware wrapper for `::fz_save_pixmap_as_pwg()`.
  24641. Save a pixmap as a PWG.
  24642. """
  24643. return _mupdf.FzPixmap_fz_save_pixmap_as_pwg(self, filename, append, pwg)
  24644. def fz_scale_pixmap(self, x, y, w, h, clip):
  24645. r"""Class-aware wrapper for `::fz_scale_pixmap()`."""
  24646. return _mupdf.FzPixmap_fz_scale_pixmap(self, x, y, w, h, clip)
  24647. def fz_set_pixmap_resolution(self, xres, yres):
  24648. r"""
  24649. Class-aware wrapper for `::fz_set_pixmap_resolution()`.
  24650. Set the pixels per inch resolution of the pixmap.
  24651. """
  24652. return _mupdf.FzPixmap_fz_set_pixmap_resolution(self, xres, yres)
  24653. def fz_subsample_pixmap(self, factor):
  24654. r"""Class-aware wrapper for `::fz_subsample_pixmap()`."""
  24655. return _mupdf.FzPixmap_fz_subsample_pixmap(self, factor)
  24656. def fz_tint_pixmap(self, black, white):
  24657. r"""
  24658. Class-aware wrapper for `::fz_tint_pixmap()`.
  24659. Tint all the pixels in an RGB, BGR, or Gray pixmap.
  24660. black: Map black to this hexadecimal RGB color.
  24661. white: Map white to this hexadecimal RGB color.
  24662. """
  24663. return _mupdf.FzPixmap_fz_tint_pixmap(self, black, white)
  24664. def fz_warp_pixmap(self, points, width, height):
  24665. r"""Class-aware wrapper for `::fz_warp_pixmap()`."""
  24666. return _mupdf.FzPixmap_fz_warp_pixmap(self, points, width, height)
  24667. def __init__(self, *args):
  24668. r"""
  24669. *Overload 1:*
  24670. == Constructors. Constructor using `fz_new_barcode_pixmap()`.
  24671. Create an fz_pixmap from a barcode definition.
  24672. type: The type of barcode to create.
  24673. value: The value of the barcode.
  24674. size: The size of the barcode.
  24675. ec_level: error correction level 0-8.
  24676. quiet: whether to include quiet zones (0 or 1).
  24677. hrt: whether to include human readable text below the barcode (0 or 1).
  24678. returns a created fz_pixmap.
  24679. |
  24680. *Overload 2:*
  24681. Constructor using `fz_new_pixmap()`.
  24682. Create a new pixmap, with its origin at (0,0)
  24683. cs: The colorspace to use for the pixmap, or NULL for an alpha
  24684. plane/mask.
  24685. w: The width of the pixmap (in pixels)
  24686. h: The height of the pixmap (in pixels)
  24687. seps: Details of separations.
  24688. alpha: 0 for no alpha, 1 for alpha.
  24689. Returns a pointer to the new pixmap. Throws exception on failure
  24690. to allocate.
  24691. |
  24692. *Overload 3:*
  24693. Constructor using `fz_new_pixmap_from_color_and_mask()`.
  24694. |
  24695. *Overload 4:*
  24696. Constructor using `fz_new_pixmap_from_display_list()`.
  24697. Render the page to a pixmap using the transform and colorspace.
  24698. Ownership of the pixmap is returned to the caller.
  24699. |
  24700. *Overload 5:*
  24701. Constructor using `fz_new_pixmap_from_display_list_with_separations()`.
  24702. Render the page contents with control over spot colors.
  24703. Ownership of the pixmap is returned to the caller.
  24704. |
  24705. *Overload 6:*
  24706. Constructor using `fz_new_pixmap_from_page()`.
  24707. |
  24708. *Overload 7:*
  24709. Constructor using `fz_new_pixmap_from_page_number()`.
  24710. |
  24711. *Overload 8:*
  24712. Constructor using `fz_new_pixmap_from_page_number_with_separations()`.
  24713. |
  24714. *Overload 9:*
  24715. Constructor using `fz_new_pixmap_from_page_with_separations()`.
  24716. |
  24717. *Overload 10:*
  24718. Constructor using `fz_new_pixmap_from_pixmap()`.
  24719. Create a new pixmap that represents a subarea of the specified
  24720. pixmap. A reference is taken to this pixmap that will be dropped
  24721. on destruction.
  24722. The supplied rectangle must be wholly contained within the
  24723. original pixmap.
  24724. Returns a pointer to the new pixmap. Throws exception on failure
  24725. to allocate.
  24726. |
  24727. *Overload 11:*
  24728. Constructor using `fz_new_pixmap_with_bbox()`.
  24729. Create a pixmap of a given size, location and pixel format.
  24730. The bounding box specifies the size of the created pixmap and
  24731. where it will be located. The colorspace determines the number
  24732. of components per pixel. Alpha is always present. Pixmaps are
  24733. reference counted, so drop references using fz_drop_pixmap.
  24734. colorspace: Colorspace format used for the created pixmap. The
  24735. pixmap will keep a reference to the colorspace.
  24736. bbox: Bounding box specifying location/size of created pixmap.
  24737. seps: Details of separations.
  24738. alpha: 0 for no alpha, 1 for alpha.
  24739. Returns a pointer to the new pixmap. Throws exception on failure
  24740. to allocate.
  24741. |
  24742. *Overload 12:*
  24743. Constructor using `fz_new_pixmap_with_bbox_and_data()`.
  24744. Create a pixmap of a given size, location and pixel format,
  24745. using the supplied data block.
  24746. The bounding box specifies the size of the created pixmap and
  24747. where it will be located. The colorspace determines the number
  24748. of components per pixel. Alpha is always present. Pixmaps are
  24749. reference counted, so drop references using fz_drop_pixmap.
  24750. colorspace: Colorspace format used for the created pixmap. The
  24751. pixmap will keep a reference to the colorspace.
  24752. rect: Bounding box specifying location/size of created pixmap.
  24753. seps: Details of separations.
  24754. alpha: Number of alpha planes (0 or 1).
  24755. samples: The data block to keep the samples in.
  24756. Returns a pointer to the new pixmap. Throws exception on failure
  24757. to allocate.
  24758. |
  24759. *Overload 13:*
  24760. Constructor using `fz_new_pixmap_with_data()`.
  24761. Create a new pixmap, with its origin at
  24762. (0,0) using the supplied data block.
  24763. cs: The colorspace to use for the pixmap, or NULL for an alpha
  24764. plane/mask.
  24765. w: The width of the pixmap (in pixels)
  24766. h: The height of the pixmap (in pixels)
  24767. seps: Details of separations.
  24768. alpha: 0 for no alpha, 1 for alpha.
  24769. stride: The byte offset from the pixel data in a row to the
  24770. pixel data in the next row.
  24771. samples: The data block to keep the samples in.
  24772. Returns a pointer to the new pixmap. Throws exception on failure to
  24773. allocate.
  24774. |
  24775. *Overload 14:*
  24776. Constructor using `pdf_new_pixmap_from_annot()`.
  24777. |
  24778. *Overload 15:*
  24779. Constructor using `pdf_new_pixmap_from_page_contents_with_separations_and_usage()`.
  24780. |
  24781. *Overload 16:*
  24782. Constructor using `pdf_new_pixmap_from_page_contents_with_usage()`.
  24783. |
  24784. *Overload 17:*
  24785. Copy constructor using `fz_keep_pixmap()`.
  24786. |
  24787. *Overload 18:*
  24788. Default constructor, sets `m_internal` to null.
  24789. |
  24790. *Overload 19:*
  24791. Constructor using raw copy of pre-existing `::fz_pixmap`.
  24792. """
  24793. _mupdf.FzPixmap_swiginit(self, _mupdf.new_FzPixmap(*args))
  24794. def storable(self):
  24795. return _mupdf.FzPixmap_storable(self)
  24796. def x(self):
  24797. return _mupdf.FzPixmap_x(self)
  24798. def y(self):
  24799. return _mupdf.FzPixmap_y(self)
  24800. def w(self):
  24801. return _mupdf.FzPixmap_w(self)
  24802. def h(self):
  24803. return _mupdf.FzPixmap_h(self)
  24804. def n(self):
  24805. return _mupdf.FzPixmap_n(self)
  24806. def s(self):
  24807. return _mupdf.FzPixmap_s(self)
  24808. def alpha(self):
  24809. return _mupdf.FzPixmap_alpha(self)
  24810. def flags(self):
  24811. return _mupdf.FzPixmap_flags(self)
  24812. def stride(self):
  24813. return _mupdf.FzPixmap_stride(self)
  24814. def seps(self):
  24815. return _mupdf.FzPixmap_seps(self)
  24816. def xres(self):
  24817. return _mupdf.FzPixmap_xres(self)
  24818. def yres(self):
  24819. return _mupdf.FzPixmap_yres(self)
  24820. def colorspace(self):
  24821. return _mupdf.FzPixmap_colorspace(self)
  24822. def samples(self):
  24823. return _mupdf.FzPixmap_samples(self)
  24824. def underlying(self):
  24825. return _mupdf.FzPixmap_underlying(self)
  24826. __swig_destroy__ = _mupdf.delete_FzPixmap
  24827. def m_internal_value(self):
  24828. r"""Return numerical value of .m_internal; helps with Python debugging."""
  24829. return _mupdf.FzPixmap_m_internal_value(self)
  24830. def __nonzero__(self):
  24831. return _mupdf.FzPixmap___nonzero__(self)
  24832. __bool__ = __nonzero__
  24833. m_internal = property(_mupdf.FzPixmap_m_internal_get, _mupdf.FzPixmap_m_internal_set, doc=r"""Pointer to wrapped data.""")
  24834. s_num_instances = property(_mupdf.FzPixmap_s_num_instances_get, _mupdf.FzPixmap_s_num_instances_set)
  24835. # Register FzPixmap in _mupdf:
  24836. _mupdf.FzPixmap_swigregister(FzPixmap)
  24837. class FzPixmapImage(object):
  24838. r"""Wrapper class for struct `fz_pixmap_image`. Not copyable or assignable."""
  24839. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  24840. __repr__ = _swig_repr
  24841. def fz_pixmap_image_tile(self):
  24842. r"""
  24843. Class-aware wrapper for `::fz_pixmap_image_tile()`.
  24844. Retrieve the underlying fz_pixmap for an image.
  24845. Returns a pointer to the underlying fz_pixmap for an image,
  24846. or NULL if this image is not based upon an fz_pixmap.
  24847. No reference is returned. Lifespan is limited to that of
  24848. the image itself. If required, use fz_keep_pixmap to take
  24849. a reference to keep it longer.
  24850. """
  24851. return _mupdf.FzPixmapImage_fz_pixmap_image_tile(self)
  24852. def fz_set_pixmap_image_tile(self, pix):
  24853. r"""Class-aware wrapper for `::fz_set_pixmap_image_tile()`."""
  24854. return _mupdf.FzPixmapImage_fz_set_pixmap_image_tile(self, pix)
  24855. def __init__(self, *args):
  24856. r"""
  24857. *Overload 1:*
  24858. Default constructor, sets `m_internal` to null.
  24859. |
  24860. *Overload 2:*
  24861. Constructor using raw copy of pre-existing `::fz_pixmap_image`.
  24862. """
  24863. _mupdf.FzPixmapImage_swiginit(self, _mupdf.new_FzPixmapImage(*args))
  24864. __swig_destroy__ = _mupdf.delete_FzPixmapImage
  24865. def m_internal_value(self):
  24866. r"""Return numerical value of .m_internal; helps with Python debugging."""
  24867. return _mupdf.FzPixmapImage_m_internal_value(self)
  24868. def __nonzero__(self):
  24869. return _mupdf.FzPixmapImage___nonzero__(self)
  24870. __bool__ = __nonzero__
  24871. m_internal = property(_mupdf.FzPixmapImage_m_internal_get, _mupdf.FzPixmapImage_m_internal_set, doc=r"""Pointer to wrapped data.""")
  24872. s_num_instances = property(_mupdf.FzPixmapImage_s_num_instances_get, _mupdf.FzPixmapImage_s_num_instances_set)
  24873. # Register FzPixmapImage in _mupdf:
  24874. _mupdf.FzPixmapImage_swigregister(FzPixmapImage)
  24875. class FzPoint(object):
  24876. r"""
  24877. Wrapper class for struct `fz_point`.
  24878. fz_point is a point in a two-dimensional space.
  24879. """
  24880. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  24881. __repr__ = _swig_repr
  24882. @staticmethod
  24883. def fz_transform_point_xy(x, y, m):
  24884. r"""Class-aware wrapper for `::fz_transform_point_xy()`."""
  24885. return _mupdf.FzPoint_fz_transform_point_xy(x, y, m)
  24886. def fz_is_point_inside_quad(self, q):
  24887. r"""
  24888. Class-aware wrapper for `::fz_is_point_inside_quad()`.
  24889. Inclusion test for quads.
  24890. """
  24891. return _mupdf.FzPoint_fz_is_point_inside_quad(self, q)
  24892. def fz_is_point_inside_rect(self, r):
  24893. r"""
  24894. Class-aware wrapper for `::fz_is_point_inside_rect()`.
  24895. Inclusion test for rects. (Rect is assumed to be open, i.e.
  24896. top right corner is not included).
  24897. """
  24898. return _mupdf.FzPoint_fz_is_point_inside_rect(self, r)
  24899. def fz_normalize_vector(self):
  24900. r"""
  24901. Class-aware wrapper for `::fz_normalize_vector()`.
  24902. Normalize a vector to length one.
  24903. """
  24904. return _mupdf.FzPoint_fz_normalize_vector(self)
  24905. def fz_transform_point(self, *args):
  24906. r"""
  24907. *Overload 1:*
  24908. Class-aware wrapper for `::fz_transform_point()`.
  24909. Apply a transformation to a point.
  24910. transform: Transformation matrix to apply. See fz_concat,
  24911. fz_scale, fz_rotate and fz_translate for how to create a
  24912. matrix.
  24913. point: Pointer to point to update.
  24914. Returns transform (unchanged).
  24915. |
  24916. *Overload 2:*
  24917. Class-aware wrapper for `::fz_transform_point()`.
  24918. Apply a transformation to a point.
  24919. transform: Transformation matrix to apply. See fz_concat,
  24920. fz_scale, fz_rotate and fz_translate for how to create a
  24921. matrix.
  24922. point: Pointer to point to update.
  24923. Returns transform (unchanged).
  24924. """
  24925. return _mupdf.FzPoint_fz_transform_point(self, *args)
  24926. def fz_transform_vector(self, *args):
  24927. r"""
  24928. *Overload 1:*
  24929. Class-aware wrapper for `::fz_transform_vector()`.
  24930. Apply a transformation to a vector.
  24931. transform: Transformation matrix to apply. See fz_concat,
  24932. fz_scale and fz_rotate for how to create a matrix. Any
  24933. translation will be ignored.
  24934. vector: Pointer to vector to update.
  24935. |
  24936. *Overload 2:*
  24937. Class-aware wrapper for `::fz_transform_vector()`.
  24938. Apply a transformation to a vector.
  24939. transform: Transformation matrix to apply. See fz_concat,
  24940. fz_scale and fz_rotate for how to create a matrix. Any
  24941. translation will be ignored.
  24942. vector: Pointer to vector to update.
  24943. """
  24944. return _mupdf.FzPoint_fz_transform_vector(self, *args)
  24945. def transform(self, m):
  24946. r"""Post-multiply *this by <m> and return *this."""
  24947. return _mupdf.FzPoint_transform(self, m)
  24948. def __init__(self, *args):
  24949. r"""
  24950. *Overload 1:*
  24951. Construct using specified values.
  24952. |
  24953. *Overload 2:*
  24954. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  24955. |
  24956. *Overload 3:*
  24957. Constructor using raw copy of pre-existing `::fz_point`.
  24958. |
  24959. *Overload 4:*
  24960. Constructor using raw copy of pre-existing `::fz_point`.
  24961. """
  24962. _mupdf.FzPoint_swiginit(self, _mupdf.new_FzPoint(*args))
  24963. def internal(self, *args):
  24964. r"""
  24965. *Overload 1:*
  24966. Access as underlying struct.
  24967. |
  24968. *Overload 2:*
  24969. Access as underlying struct.
  24970. """
  24971. return _mupdf.FzPoint_internal(self, *args)
  24972. __swig_destroy__ = _mupdf.delete_FzPoint
  24973. x = property(_mupdf.FzPoint_x_get, _mupdf.FzPoint_x_set)
  24974. y = property(_mupdf.FzPoint_y_get, _mupdf.FzPoint_y_set)
  24975. s_num_instances = property(_mupdf.FzPoint_s_num_instances_get, _mupdf.FzPoint_s_num_instances_set)
  24976. def to_string(self):
  24977. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  24978. return _mupdf.FzPoint_to_string(self)
  24979. def __eq__(self, rhs):
  24980. r"""Comparison method."""
  24981. return _mupdf.FzPoint___eq__(self, rhs)
  24982. def __ne__(self, rhs):
  24983. r"""Comparison method."""
  24984. return _mupdf.FzPoint___ne__(self, rhs)
  24985. # Register FzPoint in _mupdf:
  24986. _mupdf.FzPoint_swigregister(FzPoint)
  24987. class FzPool(object):
  24988. r"""
  24989. Wrapper class for struct `fz_pool`. Not copyable or assignable.
  24990. Simple pool allocators.
  24991. Allocate from the pool, which can then be freed at once.
  24992. """
  24993. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  24994. __repr__ = _swig_repr
  24995. def fz_json_array_push(self, array, item):
  24996. r"""Class-aware wrapper for `::fz_json_array_push()`."""
  24997. return _mupdf.FzPool_fz_json_array_push(self, array, item)
  24998. def fz_json_object_set(self, object, key, item):
  24999. r"""Class-aware wrapper for `::fz_json_object_set()`."""
  25000. return _mupdf.FzPool_fz_json_object_set(self, object, key, item)
  25001. def fz_pool_alloc(self, size):
  25002. r"""
  25003. Class-aware wrapper for `::fz_pool_alloc()`.
  25004. Allocate a block of size bytes from the pool.
  25005. """
  25006. return _mupdf.FzPool_fz_pool_alloc(self, size)
  25007. def fz_pool_size(self):
  25008. r"""
  25009. Class-aware wrapper for `::fz_pool_size()`.
  25010. The current size of the pool.
  25011. The number of bytes of storage currently allocated to the pool.
  25012. This is the total of the storage used for the blocks making
  25013. up the pool, rather then total of the allocated blocks so far,
  25014. so it will increase in 'lumps'.
  25015. from the pool, then the pool size may still be X
  25016. """
  25017. return _mupdf.FzPool_fz_pool_size(self)
  25018. def fz_pool_strdup(self, s):
  25019. r"""
  25020. Class-aware wrapper for `::fz_pool_strdup()`.
  25021. strdup equivalent allocating from the pool.
  25022. """
  25023. return _mupdf.FzPool_fz_pool_strdup(self, s)
  25024. def fz_xml_add_att(self, node, key, val):
  25025. r"""
  25026. Class-aware wrapper for `::fz_xml_add_att()`.
  25027. Add an attribute to an XML node.
  25028. """
  25029. return _mupdf.FzPool_fz_xml_add_att(self, node, key, val)
  25030. def __init__(self, *args):
  25031. r"""
  25032. *Overload 1:*
  25033. == Constructors. Constructor using `fz_new_pool()`.
  25034. Create a new pool to allocate from.
  25035. |
  25036. *Overload 2:*
  25037. Constructor using raw copy of pre-existing `::fz_pool`.
  25038. """
  25039. _mupdf.FzPool_swiginit(self, _mupdf.new_FzPool(*args))
  25040. __swig_destroy__ = _mupdf.delete_FzPool
  25041. def m_internal_value(self):
  25042. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25043. return _mupdf.FzPool_m_internal_value(self)
  25044. def __nonzero__(self):
  25045. return _mupdf.FzPool___nonzero__(self)
  25046. __bool__ = __nonzero__
  25047. m_internal = property(_mupdf.FzPool_m_internal_get, _mupdf.FzPool_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25048. s_num_instances = property(_mupdf.FzPool_s_num_instances_get, _mupdf.FzPool_s_num_instances_set)
  25049. # Register FzPool in _mupdf:
  25050. _mupdf.FzPool_swigregister(FzPool)
  25051. class FzPoolArray(object):
  25052. r"""
  25053. Wrapper class for struct `fz_pool_array`. Not copyable or assignable.
  25054. Routines to handle a 'variable length array' within the pool.
  25055. Appending to the array, and looking up items within the array
  25056. are O(log n) operations.
  25057. """
  25058. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25059. __repr__ = _swig_repr
  25060. def fz_pool_array_append(self, idx):
  25061. r"""
  25062. Class-aware wrapper for `::fz_pool_array_append()`.
  25063. This method has out-params. Python/C# wrappers look like:
  25064. `fz_pool_array_append()` => `(void *, size_t idx)`
  25065. Append an element to the end of the array.
  25066. Returns a pointer to the new element (initially all 0's), and
  25067. (optionally) the index of that element.
  25068. """
  25069. return _mupdf.FzPoolArray_fz_pool_array_append(self, idx)
  25070. def fz_pool_array_len(self):
  25071. r"""
  25072. Class-aware wrapper for `::fz_pool_array_len()`.
  25073. Get the length of the array.
  25074. """
  25075. return _mupdf.FzPoolArray_fz_pool_array_len(self)
  25076. def fz_pool_array_lookup(self, idx):
  25077. r"""
  25078. Class-aware wrapper for `::fz_pool_array_lookup()`.
  25079. Lookup an element in the array.
  25080. """
  25081. return _mupdf.FzPoolArray_fz_pool_array_lookup(self, idx)
  25082. def __init__(self, *args):
  25083. r"""
  25084. *Overload 1:*
  25085. == Constructors. Constructor using `fz_new_pool_array_imp()`.
  25086. |
  25087. *Overload 2:*
  25088. Default constructor, sets `m_internal` to null.
  25089. |
  25090. *Overload 3:*
  25091. Constructor using raw copy of pre-existing `::fz_pool_array`.
  25092. """
  25093. _mupdf.FzPoolArray_swiginit(self, _mupdf.new_FzPoolArray(*args))
  25094. __swig_destroy__ = _mupdf.delete_FzPoolArray
  25095. def m_internal_value(self):
  25096. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25097. return _mupdf.FzPoolArray_m_internal_value(self)
  25098. def __nonzero__(self):
  25099. return _mupdf.FzPoolArray___nonzero__(self)
  25100. __bool__ = __nonzero__
  25101. m_internal = property(_mupdf.FzPoolArray_m_internal_get, _mupdf.FzPoolArray_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25102. s_num_instances = property(_mupdf.FzPoolArray_s_num_instances_get, _mupdf.FzPoolArray_s_num_instances_set)
  25103. # Register FzPoolArray in _mupdf:
  25104. _mupdf.FzPoolArray_swigregister(FzPoolArray)
  25105. class FzPtrHeap(object):
  25106. r"""Wrapper class for struct `fz_ptr_heap`. Not copyable or assignable."""
  25107. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25108. __repr__ = _swig_repr
  25109. def fz_ptr_heap_insert(self, v, HEAP_CMP):
  25110. r"""Class-aware wrapper for `::fz_ptr_heap_insert()`."""
  25111. return _mupdf.FzPtrHeap_fz_ptr_heap_insert(self, v, HEAP_CMP)
  25112. def fz_ptr_heap_sort(self, HEAP_CMP):
  25113. r"""Class-aware wrapper for `::fz_ptr_heap_sort()`."""
  25114. return _mupdf.FzPtrHeap_fz_ptr_heap_sort(self, HEAP_CMP)
  25115. def fz_ptr_heap_uniq(self, HEAP_CMP):
  25116. r"""Class-aware wrapper for `::fz_ptr_heap_uniq()`."""
  25117. return _mupdf.FzPtrHeap_fz_ptr_heap_uniq(self, HEAP_CMP)
  25118. def __init__(self, *args):
  25119. r"""
  25120. *Overload 1:*
  25121. Default constructor, sets `m_internal` to null.
  25122. |
  25123. *Overload 2:*
  25124. Constructor using raw copy of pre-existing `::fz_ptr_heap`.
  25125. """
  25126. _mupdf.FzPtrHeap_swiginit(self, _mupdf.new_FzPtrHeap(*args))
  25127. __swig_destroy__ = _mupdf.delete_FzPtrHeap
  25128. def m_internal_value(self):
  25129. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25130. return _mupdf.FzPtrHeap_m_internal_value(self)
  25131. def __nonzero__(self):
  25132. return _mupdf.FzPtrHeap___nonzero__(self)
  25133. __bool__ = __nonzero__
  25134. m_internal = property(_mupdf.FzPtrHeap_m_internal_get, _mupdf.FzPtrHeap_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25135. s_num_instances = property(_mupdf.FzPtrHeap_s_num_instances_get, _mupdf.FzPtrHeap_s_num_instances_set)
  25136. # Register FzPtrHeap in _mupdf:
  25137. _mupdf.FzPtrHeap_swigregister(FzPtrHeap)
  25138. class FzPwgOptions(object):
  25139. r"""Wrapper class for struct `fz_pwg_options`."""
  25140. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25141. __repr__ = _swig_repr
  25142. def __init__(self, *args):
  25143. r"""
  25144. *Overload 1:*
  25145. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  25146. |
  25147. *Overload 2:*
  25148. Constructor using raw copy of pre-existing `::fz_pwg_options`.
  25149. """
  25150. _mupdf.FzPwgOptions_swiginit(self, _mupdf.new_FzPwgOptions(*args))
  25151. def media_class(self):
  25152. return _mupdf.FzPwgOptions_media_class(self)
  25153. def media_color(self):
  25154. return _mupdf.FzPwgOptions_media_color(self)
  25155. def media_type(self):
  25156. return _mupdf.FzPwgOptions_media_type(self)
  25157. def output_type(self):
  25158. return _mupdf.FzPwgOptions_output_type(self)
  25159. def advance_distance(self):
  25160. return _mupdf.FzPwgOptions_advance_distance(self)
  25161. def advance_media(self):
  25162. return _mupdf.FzPwgOptions_advance_media(self)
  25163. def collate(self):
  25164. return _mupdf.FzPwgOptions_collate(self)
  25165. def cut_media(self):
  25166. return _mupdf.FzPwgOptions_cut_media(self)
  25167. def duplex(self):
  25168. return _mupdf.FzPwgOptions_duplex(self)
  25169. def insert_sheet(self):
  25170. return _mupdf.FzPwgOptions_insert_sheet(self)
  25171. def jog(self):
  25172. return _mupdf.FzPwgOptions_jog(self)
  25173. def leading_edge(self):
  25174. return _mupdf.FzPwgOptions_leading_edge(self)
  25175. def manual_feed(self):
  25176. return _mupdf.FzPwgOptions_manual_feed(self)
  25177. def media_position(self):
  25178. return _mupdf.FzPwgOptions_media_position(self)
  25179. def media_weight(self):
  25180. return _mupdf.FzPwgOptions_media_weight(self)
  25181. def mirror_print(self):
  25182. return _mupdf.FzPwgOptions_mirror_print(self)
  25183. def negative_print(self):
  25184. return _mupdf.FzPwgOptions_negative_print(self)
  25185. def num_copies(self):
  25186. return _mupdf.FzPwgOptions_num_copies(self)
  25187. def orientation(self):
  25188. return _mupdf.FzPwgOptions_orientation(self)
  25189. def output_face_up(self):
  25190. return _mupdf.FzPwgOptions_output_face_up(self)
  25191. def PageSize(self):
  25192. return _mupdf.FzPwgOptions_PageSize(self)
  25193. def separations(self):
  25194. return _mupdf.FzPwgOptions_separations(self)
  25195. def tray_switch(self):
  25196. return _mupdf.FzPwgOptions_tray_switch(self)
  25197. def tumble(self):
  25198. return _mupdf.FzPwgOptions_tumble(self)
  25199. def media_type_num(self):
  25200. return _mupdf.FzPwgOptions_media_type_num(self)
  25201. def compression(self):
  25202. return _mupdf.FzPwgOptions_compression(self)
  25203. def row_count(self):
  25204. return _mupdf.FzPwgOptions_row_count(self)
  25205. def row_feed(self):
  25206. return _mupdf.FzPwgOptions_row_feed(self)
  25207. def row_step(self):
  25208. return _mupdf.FzPwgOptions_row_step(self)
  25209. def rendering_intent(self):
  25210. return _mupdf.FzPwgOptions_rendering_intent(self)
  25211. def page_size_name(self):
  25212. return _mupdf.FzPwgOptions_page_size_name(self)
  25213. __swig_destroy__ = _mupdf.delete_FzPwgOptions
  25214. m_internal = property(_mupdf.FzPwgOptions_m_internal_get, _mupdf.FzPwgOptions_m_internal_set)
  25215. s_num_instances = property(_mupdf.FzPwgOptions_s_num_instances_get, _mupdf.FzPwgOptions_s_num_instances_set, doc=r"""Wrapped data is held by value.""")
  25216. def to_string(self):
  25217. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  25218. return _mupdf.FzPwgOptions_to_string(self)
  25219. def __eq__(self, rhs):
  25220. r"""Comparison method."""
  25221. return _mupdf.FzPwgOptions___eq__(self, rhs)
  25222. def __ne__(self, rhs):
  25223. r"""Comparison method."""
  25224. return _mupdf.FzPwgOptions___ne__(self, rhs)
  25225. # Register FzPwgOptions in _mupdf:
  25226. _mupdf.FzPwgOptions_swigregister(FzPwgOptions)
  25227. class FzQuad(object):
  25228. r"""
  25229. Wrapper class for struct `fz_quad`.
  25230. A representation for a region defined by 4 points.
  25231. The significant difference between quads and rects is that
  25232. the edges of quads are not axis aligned.
  25233. """
  25234. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25235. __repr__ = _swig_repr
  25236. def fz_detect_document(self, src):
  25237. r"""Class-aware wrapper for `::fz_detect_document()`."""
  25238. return _mupdf.FzQuad_fz_detect_document(self, src)
  25239. def fz_is_empty_quad(self):
  25240. r"""
  25241. Class-aware wrapper for `::fz_is_empty_quad()`.
  25242. Is a quad empty?
  25243. """
  25244. return _mupdf.FzQuad_fz_is_empty_quad(self)
  25245. def fz_is_infinite_quad(self):
  25246. r"""
  25247. Class-aware wrapper for `::fz_is_infinite_quad()`.
  25248. Is a quad infinite?
  25249. """
  25250. return _mupdf.FzQuad_fz_is_infinite_quad(self)
  25251. def fz_is_quad_inside_quad(self, haystack):
  25252. r"""
  25253. Class-aware wrapper for `::fz_is_quad_inside_quad()`.
  25254. Inclusion test for quad in quad.
  25255. This may break down if quads are not 'well formed'.
  25256. """
  25257. return _mupdf.FzQuad_fz_is_quad_inside_quad(self, haystack)
  25258. def fz_is_quad_intersecting_quad(self, b):
  25259. r"""
  25260. Class-aware wrapper for `::fz_is_quad_intersecting_quad()`.
  25261. Intersection test for quads.
  25262. This may break down if quads are not 'well formed'.
  25263. """
  25264. return _mupdf.FzQuad_fz_is_quad_intersecting_quad(self, b)
  25265. def fz_is_valid_quad(self):
  25266. r"""
  25267. Class-aware wrapper for `::fz_is_valid_quad()`.
  25268. Is a quad valid?
  25269. """
  25270. return _mupdf.FzQuad_fz_is_valid_quad(self)
  25271. def fz_rect_from_quad(self):
  25272. r"""
  25273. Class-aware wrapper for `::fz_rect_from_quad()`.
  25274. Convert a quad to the smallest rect that covers it.
  25275. """
  25276. return _mupdf.FzQuad_fz_rect_from_quad(self)
  25277. def fz_transform_quad(self, m):
  25278. r"""
  25279. Class-aware wrapper for `::fz_transform_quad()`.
  25280. Transform a quad by a matrix.
  25281. """
  25282. return _mupdf.FzQuad_fz_transform_quad(self, m)
  25283. def __init__(self, *args):
  25284. r"""
  25285. *Overload 1:*
  25286. == Constructors. Constructor using `fz_quad_from_rect()`.
  25287. Convert a rect to a quad (losslessly).
  25288. |
  25289. *Overload 2:*
  25290. Constructor using `fz_transform_quad()`.
  25291. Transform a quad by a matrix.
  25292. |
  25293. *Overload 3:*
  25294. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  25295. |
  25296. *Overload 4:*
  25297. Constructor using raw copy of pre-existing `::fz_quad`.
  25298. |
  25299. *Overload 5:*
  25300. Constructor using raw copy of pre-existing `::fz_quad`.
  25301. """
  25302. _mupdf.FzQuad_swiginit(self, _mupdf.new_FzQuad(*args))
  25303. def internal(self, *args):
  25304. r"""
  25305. *Overload 1:*
  25306. Access as underlying struct.
  25307. |
  25308. *Overload 2:*
  25309. Access as underlying struct.
  25310. """
  25311. return _mupdf.FzQuad_internal(self, *args)
  25312. __swig_destroy__ = _mupdf.delete_FzQuad
  25313. ul = property(_mupdf.FzQuad_ul_get, _mupdf.FzQuad_ul_set)
  25314. ur = property(_mupdf.FzQuad_ur_get, _mupdf.FzQuad_ur_set)
  25315. ll = property(_mupdf.FzQuad_ll_get, _mupdf.FzQuad_ll_set)
  25316. lr = property(_mupdf.FzQuad_lr_get, _mupdf.FzQuad_lr_set)
  25317. s_num_instances = property(_mupdf.FzQuad_s_num_instances_get, _mupdf.FzQuad_s_num_instances_set)
  25318. def to_string(self):
  25319. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  25320. return _mupdf.FzQuad_to_string(self)
  25321. def __eq__(self, rhs):
  25322. r"""Comparison method."""
  25323. return _mupdf.FzQuad___eq__(self, rhs)
  25324. def __ne__(self, rhs):
  25325. r"""Comparison method."""
  25326. return _mupdf.FzQuad___ne__(self, rhs)
  25327. # Register FzQuad in _mupdf:
  25328. _mupdf.FzQuad_swigregister(FzQuad)
  25329. class FzRange(object):
  25330. r"""Wrapper class for struct `fz_range`. Not copyable or assignable."""
  25331. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25332. __repr__ = _swig_repr
  25333. def __init__(self, *args):
  25334. r"""
  25335. *Overload 1:*
  25336. Default constructor, sets `m_internal` to null.
  25337. |
  25338. *Overload 2:*
  25339. Constructor using raw copy of pre-existing `::fz_range`.
  25340. """
  25341. _mupdf.FzRange_swiginit(self, _mupdf.new_FzRange(*args))
  25342. __swig_destroy__ = _mupdf.delete_FzRange
  25343. def m_internal_value(self):
  25344. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25345. return _mupdf.FzRange_m_internal_value(self)
  25346. def __nonzero__(self):
  25347. return _mupdf.FzRange___nonzero__(self)
  25348. __bool__ = __nonzero__
  25349. m_internal = property(_mupdf.FzRange_m_internal_get, _mupdf.FzRange_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25350. s_num_instances = property(_mupdf.FzRange_s_num_instances_get, _mupdf.FzRange_s_num_instances_set)
  25351. # Register FzRange in _mupdf:
  25352. _mupdf.FzRange_swigregister(FzRange)
  25353. class FzRect(object):
  25354. r"""Wrapper class for struct `fz_rect`."""
  25355. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25356. __repr__ = _swig_repr
  25357. Fixed_UNIT = _mupdf.FzRect_Fixed_UNIT
  25358. Fixed_EMPTY = _mupdf.FzRect_Fixed_EMPTY
  25359. Fixed_INFINITE = _mupdf.FzRect_Fixed_INFINITE
  25360. def fz_adjust_rect_for_stroke(self, stroke, ctm):
  25361. r"""
  25362. Class-aware wrapper for `::fz_adjust_rect_for_stroke()`.
  25363. Given a rectangle (assumed to be the bounding box for a path),
  25364. expand it to allow for the expansion of the bbox that would be
  25365. seen by stroking the path with the given stroke state and
  25366. transform.
  25367. """
  25368. return _mupdf.FzRect_fz_adjust_rect_for_stroke(self, stroke, ctm)
  25369. def fz_contains_rect(self, b):
  25370. r"""
  25371. Class-aware wrapper for `::fz_contains_rect()`.
  25372. Test rectangle inclusion.
  25373. Return true if a entirely contains b.
  25374. """
  25375. return _mupdf.FzRect_fz_contains_rect(self, b)
  25376. def fz_expand_rect(self, expand):
  25377. r"""
  25378. Class-aware wrapper for `::fz_expand_rect()`.
  25379. Expand a bbox by a given amount in all directions.
  25380. """
  25381. return _mupdf.FzRect_fz_expand_rect(self, expand)
  25382. def fz_include_point_in_rect(self, p):
  25383. r"""
  25384. Class-aware wrapper for `::fz_include_point_in_rect()`.
  25385. Expand a bbox to include a given point.
  25386. To create a rectangle that encompasses a sequence of points, the
  25387. rectangle must first be set to be the empty rectangle at one of
  25388. the points before including the others.
  25389. """
  25390. return _mupdf.FzRect_fz_include_point_in_rect(self, p)
  25391. def fz_intersect_rect(self, *args):
  25392. r"""
  25393. *Overload 1:*
  25394. Class-aware wrapper for `::fz_intersect_rect()`.
  25395. Compute intersection of two rectangles.
  25396. Given two rectangles, update the first to be the smallest
  25397. axis-aligned rectangle that covers the area covered by both
  25398. given rectangles. If either rectangle is empty then the
  25399. intersection is also empty. If either rectangle is infinite
  25400. then the intersection is simply the non-infinite rectangle.
  25401. Should both rectangles be infinite, then the intersection is
  25402. also infinite.
  25403. |
  25404. *Overload 2:*
  25405. Class-aware wrapper for `::fz_intersect_rect()`.
  25406. Compute intersection of two rectangles.
  25407. Given two rectangles, update the first to be the smallest
  25408. axis-aligned rectangle that covers the area covered by both
  25409. given rectangles. If either rectangle is empty then the
  25410. intersection is also empty. If either rectangle is infinite
  25411. then the intersection is simply the non-infinite rectangle.
  25412. Should both rectangles be infinite, then the intersection is
  25413. also infinite.
  25414. """
  25415. return _mupdf.FzRect_fz_intersect_rect(self, *args)
  25416. def fz_irect_from_rect(self):
  25417. r"""
  25418. Class-aware wrapper for `::fz_irect_from_rect()`.
  25419. Convert a rect into the minimal bounding box
  25420. that covers the rectangle.
  25421. Coordinates in a bounding box are integers, so rounding of the
  25422. rects coordinates takes place. The top left corner is rounded
  25423. upwards and left while the bottom right corner is rounded
  25424. downwards and to the right.
  25425. """
  25426. return _mupdf.FzRect_fz_irect_from_rect(self)
  25427. def fz_is_empty_rect(self):
  25428. r"""
  25429. Class-aware wrapper for `::fz_is_empty_rect()`.
  25430. Check if rectangle is empty.
  25431. An empty rectangle is defined as one whose area is zero.
  25432. All invalid rectangles are empty.
  25433. """
  25434. return _mupdf.FzRect_fz_is_empty_rect(self)
  25435. def fz_is_infinite_rect(self):
  25436. r"""
  25437. Class-aware wrapper for `::fz_is_infinite_rect()`.
  25438. Check if rectangle is infinite.
  25439. """
  25440. return _mupdf.FzRect_fz_is_infinite_rect(self)
  25441. def fz_is_rect_inside_rect(self, outer):
  25442. r"""
  25443. Class-aware wrapper for `::fz_is_rect_inside_rect()`.
  25444. Inclusion test for rects.
  25445. rects are assumed to be both open or both closed.
  25446. No invalid rect can include any other rect.
  25447. No invalid rect can be included by any rect.
  25448. Empty (point) rects can include themselves.
  25449. Empty (line) rects can include many (subline) rects.
  25450. """
  25451. return _mupdf.FzRect_fz_is_rect_inside_rect(self, outer)
  25452. def fz_is_valid_rect(self):
  25453. r"""
  25454. Class-aware wrapper for `::fz_is_valid_rect()`.
  25455. Check if rectangle is valid.
  25456. """
  25457. return _mupdf.FzRect_fz_is_valid_rect(self)
  25458. def fz_new_bbox_device(self):
  25459. r"""
  25460. Class-aware wrapper for `::fz_new_bbox_device()`.
  25461. Create a device to compute the bounding
  25462. box of all marks on a page.
  25463. The returned bounding box will be the union of all bounding
  25464. boxes of all objects on a page.
  25465. """
  25466. return _mupdf.FzRect_fz_new_bbox_device(self)
  25467. def fz_new_display_list(self):
  25468. r"""
  25469. Class-aware wrapper for `::fz_new_display_list()`.
  25470. Create an empty display list.
  25471. A display list contains drawing commands (text, images, etc.).
  25472. Use fz_new_list_device for populating the list.
  25473. mediabox: Bounds of the page (in points) represented by the
  25474. display list.
  25475. """
  25476. return _mupdf.FzRect_fz_new_display_list(self)
  25477. def fz_overlaps_rect(self, b):
  25478. r"""
  25479. Class-aware wrapper for `::fz_overlaps_rect()`.
  25480. Test rectangle overlap.
  25481. Returns true if the area of the overlap is
  25482. non zero.
  25483. """
  25484. return _mupdf.FzRect_fz_overlaps_rect(self, b)
  25485. def fz_quad_from_rect(self):
  25486. r"""
  25487. Class-aware wrapper for `::fz_quad_from_rect()`.
  25488. Convert a rect to a quad (losslessly).
  25489. """
  25490. return _mupdf.FzRect_fz_quad_from_rect(self)
  25491. def fz_round_rect(self):
  25492. r"""
  25493. Class-aware wrapper for `::fz_round_rect()`.
  25494. Round rectangle coordinates.
  25495. Coordinates in a bounding box are integers, so rounding of the
  25496. rects coordinates takes place. The top left corner is rounded
  25497. upwards and left while the bottom right corner is rounded
  25498. downwards and to the right.
  25499. This differs from fz_irect_from_rect, in that fz_irect_from_rect
  25500. slavishly follows the numbers (i.e any slight over/under
  25501. calculations can cause whole extra pixels to be added).
  25502. fz_round_rect allows for a small amount of rounding error when
  25503. calculating the bbox.
  25504. """
  25505. return _mupdf.FzRect_fz_round_rect(self)
  25506. def fz_transform_page(self, resolution, rotate):
  25507. r"""
  25508. Class-aware wrapper for `::fz_transform_page()`.
  25509. Create transform matrix to draw page
  25510. at a given resolution and rotation. Adjusts the scaling
  25511. factors so that the page covers whole number of
  25512. pixels and adjust the page origin to be at 0,0.
  25513. """
  25514. return _mupdf.FzRect_fz_transform_page(self, resolution, rotate)
  25515. def fz_transform_rect(self, m):
  25516. r"""
  25517. Class-aware wrapper for `::fz_transform_rect()`.
  25518. Apply a transform to a rectangle.
  25519. After the four corner points of the axis-aligned rectangle
  25520. have been transformed it may not longer be axis-aligned. So a
  25521. new axis-aligned rectangle is created covering at least the
  25522. area of the transformed rectangle.
  25523. transform: Transformation matrix to apply. See fz_concat,
  25524. fz_scale and fz_rotate for how to create a matrix.
  25525. rect: Rectangle to be transformed. The two special cases
  25526. fz_empty_rect and fz_infinite_rect, may be used but are
  25527. returned unchanged as expected.
  25528. """
  25529. return _mupdf.FzRect_fz_transform_rect(self, m)
  25530. def fz_translate_rect(self, xoff, yoff):
  25531. r"""
  25532. Class-aware wrapper for `::fz_translate_rect()`.
  25533. Translate bounding box.
  25534. Translate a bbox by a given x and y offset. Allows for overflow.
  25535. """
  25536. return _mupdf.FzRect_fz_translate_rect(self, xoff, yoff)
  25537. def fz_union_rect(self, *args):
  25538. r"""
  25539. *Overload 1:*
  25540. Class-aware wrapper for `::fz_union_rect()`.
  25541. Compute union of two rectangles.
  25542. Given two rectangles, update the first to be the smallest
  25543. axis-aligned rectangle that encompasses both given rectangles.
  25544. If either rectangle is infinite then the union is also infinite.
  25545. If either rectangle is empty then the union is simply the
  25546. non-empty rectangle. Should both rectangles be empty, then the
  25547. union is also empty.
  25548. |
  25549. *Overload 2:*
  25550. Class-aware wrapper for `::fz_union_rect()`.
  25551. Compute union of two rectangles.
  25552. Given two rectangles, update the first to be the smallest
  25553. axis-aligned rectangle that encompasses both given rectangles.
  25554. If either rectangle is infinite then the union is also infinite.
  25555. If either rectangle is empty then the union is simply the
  25556. non-empty rectangle. Should both rectangles be empty, then the
  25557. union is also empty.
  25558. """
  25559. return _mupdf.FzRect_fz_union_rect(self, *args)
  25560. def pdf_signature_appearance_signed(self, lang, img, left_text, right_text, include_logo):
  25561. r"""Class-aware wrapper for `::pdf_signature_appearance_signed()`."""
  25562. return _mupdf.FzRect_pdf_signature_appearance_signed(self, lang, img, left_text, right_text, include_logo)
  25563. def pdf_signature_appearance_unsigned(self, lang):
  25564. r"""Class-aware wrapper for `::pdf_signature_appearance_unsigned()`."""
  25565. return _mupdf.FzRect_pdf_signature_appearance_unsigned(self, lang)
  25566. def transform(self, m):
  25567. r"""Transforms *this using fz_transform_rect() with <m>."""
  25568. return _mupdf.FzRect_transform(self, m)
  25569. def contains(self, *args):
  25570. r"""
  25571. *Overload 1:*
  25572. Convenience method using fz_contains_rect().
  25573. |
  25574. *Overload 2:*
  25575. Uses fz_contains_rect(*this, rhs).
  25576. """
  25577. return _mupdf.FzRect_contains(self, *args)
  25578. def is_empty(self):
  25579. r"""Uses fz_is_empty_rect()."""
  25580. return _mupdf.FzRect_is_empty(self)
  25581. def union_(self, rhs):
  25582. r"""Updates *this using fz_union_rect()."""
  25583. return _mupdf.FzRect_union_(self, rhs)
  25584. def __init__(self, *args):
  25585. r"""
  25586. *Overload 1:*
  25587. == Constructors. Constructor using `fz_bound_display_list()`.
  25588. Return the bounding box of the page recorded in a display list.
  25589. |
  25590. *Overload 2:*
  25591. Constructor using `fz_rect_from_irect()`.
  25592. Convert a bbox into a rect.
  25593. For our purposes, a rect can represent all the values we meet in
  25594. a bbox, so nothing can go wrong.
  25595. rect: A place to store the generated rectangle.
  25596. bbox: The bbox to convert.
  25597. Returns rect (updated).
  25598. |
  25599. *Overload 3:*
  25600. Constructor using `fz_rect_from_quad()`.
  25601. Convert a quad to the smallest rect that covers it.
  25602. |
  25603. *Overload 4:*
  25604. Constructor using `fz_transform_rect()`.
  25605. Apply a transform to a rectangle.
  25606. After the four corner points of the axis-aligned rectangle
  25607. have been transformed it may not longer be axis-aligned. So a
  25608. new axis-aligned rectangle is created covering at least the
  25609. area of the transformed rectangle.
  25610. transform: Transformation matrix to apply. See fz_concat,
  25611. fz_scale and fz_rotate for how to create a matrix.
  25612. rect: Rectangle to be transformed. The two special cases
  25613. fz_empty_rect and fz_infinite_rect, may be used but are
  25614. returned unchanged as expected.
  25615. |
  25616. *Overload 5:*
  25617. Construct from specified values.
  25618. |
  25619. *Overload 6:*
  25620. Copy constructor using plain copy.
  25621. |
  25622. *Overload 7:*
  25623. Construct from fz_unit_rect, fz_empty_rect or fz_infinite_rect.
  25624. |
  25625. *Overload 8:*
  25626. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  25627. |
  25628. *Overload 9:*
  25629. Constructor using raw copy of pre-existing `::fz_rect`.
  25630. |
  25631. *Overload 10:*
  25632. Constructor using raw copy of pre-existing `::fz_rect`.
  25633. """
  25634. _mupdf.FzRect_swiginit(self, _mupdf.new_FzRect(*args))
  25635. def internal(self, *args):
  25636. r"""
  25637. *Overload 1:*
  25638. Access as underlying struct.
  25639. |
  25640. *Overload 2:*
  25641. Access as underlying struct.
  25642. """
  25643. return _mupdf.FzRect_internal(self, *args)
  25644. __swig_destroy__ = _mupdf.delete_FzRect
  25645. x0 = property(_mupdf.FzRect_x0_get, _mupdf.FzRect_x0_set)
  25646. y0 = property(_mupdf.FzRect_y0_get, _mupdf.FzRect_y0_set)
  25647. x1 = property(_mupdf.FzRect_x1_get, _mupdf.FzRect_x1_set)
  25648. y1 = property(_mupdf.FzRect_y1_get, _mupdf.FzRect_y1_set)
  25649. s_num_instances = property(_mupdf.FzRect_s_num_instances_get, _mupdf.FzRect_s_num_instances_set)
  25650. def to_string(self):
  25651. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  25652. return _mupdf.FzRect_to_string(self)
  25653. def __eq__(self, rhs):
  25654. r"""Comparison method."""
  25655. return _mupdf.FzRect___eq__(self, rhs)
  25656. def __ne__(self, rhs):
  25657. r"""Comparison method."""
  25658. return _mupdf.FzRect___ne__(self, rhs)
  25659. # Register FzRect in _mupdf:
  25660. _mupdf.FzRect_swigregister(FzRect)
  25661. class FzSeparations(object):
  25662. r"""Wrapper class for struct `fz_separations`."""
  25663. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25664. __repr__ = _swig_repr
  25665. def fz_add_separation(self, name, cs, cs_channel):
  25666. r"""
  25667. Class-aware wrapper for `::fz_add_separation()`.
  25668. Add a separation (null terminated name, colorspace)
  25669. """
  25670. return _mupdf.FzSeparations_fz_add_separation(self, name, cs, cs_channel)
  25671. def fz_add_separation_equivalents(self, rgba, cmyk, name):
  25672. r"""
  25673. Class-aware wrapper for `::fz_add_separation_equivalents()`.
  25674. Add a separation with equivalents (null terminated name,
  25675. colorspace)
  25676. (old, deprecated)
  25677. """
  25678. return _mupdf.FzSeparations_fz_add_separation_equivalents(self, rgba, cmyk, name)
  25679. def fz_clone_separations_for_overprint(self):
  25680. r"""
  25681. Class-aware wrapper for `::fz_clone_separations_for_overprint()`.
  25682. Return a separations object with all the spots in the input
  25683. separations object that are set to composite, reset to be
  25684. enabled. If there ARE no spots in the object, this returns
  25685. NULL. If the object already has all its spots enabled, then
  25686. just returns another handle on the same object.
  25687. """
  25688. return _mupdf.FzSeparations_fz_clone_separations_for_overprint(self)
  25689. def fz_compare_separations(self, sep2):
  25690. r"""
  25691. Class-aware wrapper for `::fz_compare_separations()`.
  25692. Compare 2 separations structures (or NULLs).
  25693. Return 0 if identical, non-zero if not identical.
  25694. """
  25695. return _mupdf.FzSeparations_fz_compare_separations(self, sep2)
  25696. def fz_count_active_separations(self):
  25697. r"""
  25698. Class-aware wrapper for `::fz_count_active_separations()`.
  25699. Return the number of active separations.
  25700. """
  25701. return _mupdf.FzSeparations_fz_count_active_separations(self)
  25702. def fz_count_separations(self):
  25703. r"""Class-aware wrapper for `::fz_count_separations()`."""
  25704. return _mupdf.FzSeparations_fz_count_separations(self)
  25705. def fz_separation_equivalent(self, idx, dst_cs, dst_color, prf, color_params):
  25706. r"""
  25707. Class-aware wrapper for `::fz_separation_equivalent()`.
  25708. This method has out-params. Python/C# wrappers look like:
  25709. `fz_separation_equivalent(int idx, ::fz_colorspace *dst_cs, ::fz_colorspace *prf, ::fz_color_params color_params)` => float dst_color
  25710. Get the equivalent separation color in a given colorspace.
  25711. """
  25712. return _mupdf.FzSeparations_fz_separation_equivalent(self, idx, dst_cs, dst_color, prf, color_params)
  25713. def fz_separation_name(self, separation):
  25714. r"""Class-aware wrapper for `::fz_separation_name()`."""
  25715. return _mupdf.FzSeparations_fz_separation_name(self, separation)
  25716. def fz_set_separation_behavior(self, separation, behavior):
  25717. r"""
  25718. Class-aware wrapper for `::fz_set_separation_behavior()`.
  25719. Control the rendering of a given separation.
  25720. """
  25721. return _mupdf.FzSeparations_fz_set_separation_behavior(self, separation, behavior)
  25722. def __init__(self, *args):
  25723. r"""
  25724. *Overload 1:*
  25725. == Constructors. Constructor using `fz_new_separations()`.
  25726. Create a new separations structure (initially empty)
  25727. |
  25728. *Overload 2:*
  25729. Copy constructor using `fz_keep_separations()`.
  25730. |
  25731. *Overload 3:*
  25732. Constructor using raw copy of pre-existing `::fz_separations`.
  25733. |
  25734. *Overload 4:*
  25735. Constructor using raw copy of pre-existing `::fz_separations`.
  25736. """
  25737. _mupdf.FzSeparations_swiginit(self, _mupdf.new_FzSeparations(*args))
  25738. __swig_destroy__ = _mupdf.delete_FzSeparations
  25739. def m_internal_value(self):
  25740. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25741. return _mupdf.FzSeparations_m_internal_value(self)
  25742. def __nonzero__(self):
  25743. return _mupdf.FzSeparations___nonzero__(self)
  25744. __bool__ = __nonzero__
  25745. m_internal = property(_mupdf.FzSeparations_m_internal_get, _mupdf.FzSeparations_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25746. s_num_instances = property(_mupdf.FzSeparations_s_num_instances_get, _mupdf.FzSeparations_s_num_instances_set)
  25747. # Register FzSeparations in _mupdf:
  25748. _mupdf.FzSeparations_swigregister(FzSeparations)
  25749. class FzSha256(object):
  25750. r"""
  25751. Wrapper class for struct `fz_sha256`. Not copyable or assignable.
  25752. Structure definition is public to enable stack
  25753. based allocation. Do not access the members directly.
  25754. """
  25755. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25756. __repr__ = _swig_repr
  25757. def fz_sha256_final(self, digest):
  25758. r"""
  25759. Class-aware wrapper for `::fz_sha256_final()`.
  25760. MD5 finalization. Ends an MD5 message-digest operation, writing
  25761. the message digest and zeroizing the context.
  25762. Never throws an exception.
  25763. """
  25764. return _mupdf.FzSha256_fz_sha256_final(self, digest)
  25765. def fz_sha256_init(self):
  25766. r"""
  25767. Class-aware wrapper for `::fz_sha256_init()`.
  25768. SHA256 initialization. Begins an SHA256 operation, initialising
  25769. the supplied context.
  25770. Never throws an exception.
  25771. """
  25772. return _mupdf.FzSha256_fz_sha256_init(self)
  25773. def fz_sha256_update(self, input, inlen):
  25774. r"""
  25775. Class-aware wrapper for `::fz_sha256_update()`.
  25776. SHA256 block update operation. Continues an SHA256 message-
  25777. digest operation, processing another message block, and updating
  25778. the context.
  25779. Never throws an exception.
  25780. """
  25781. return _mupdf.FzSha256_fz_sha256_update(self, input, inlen)
  25782. def __init__(self, *args):
  25783. r"""
  25784. *Overload 1:*
  25785. Default constructor, sets `m_internal` to null.
  25786. |
  25787. *Overload 2:*
  25788. Constructor using raw copy of pre-existing `::fz_sha256`.
  25789. """
  25790. _mupdf.FzSha256_swiginit(self, _mupdf.new_FzSha256(*args))
  25791. __swig_destroy__ = _mupdf.delete_FzSha256
  25792. def m_internal_value(self):
  25793. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25794. return _mupdf.FzSha256_m_internal_value(self)
  25795. def __nonzero__(self):
  25796. return _mupdf.FzSha256___nonzero__(self)
  25797. __bool__ = __nonzero__
  25798. m_internal = property(_mupdf.FzSha256_m_internal_get, _mupdf.FzSha256_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25799. s_num_instances = property(_mupdf.FzSha256_s_num_instances_get, _mupdf.FzSha256_s_num_instances_set)
  25800. # Register FzSha256 in _mupdf:
  25801. _mupdf.FzSha256_swigregister(FzSha256)
  25802. class FzSha384(object):
  25803. r"""Wrapper class for struct `fz_sha384`. Not copyable or assignable."""
  25804. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25805. __repr__ = _swig_repr
  25806. def __init__(self, *args):
  25807. r"""
  25808. *Overload 1:*
  25809. Default constructor, sets `m_internal` to null.
  25810. |
  25811. *Overload 2:*
  25812. Constructor using raw copy of pre-existing `::fz_sha384`.
  25813. """
  25814. _mupdf.FzSha384_swiginit(self, _mupdf.new_FzSha384(*args))
  25815. __swig_destroy__ = _mupdf.delete_FzSha384
  25816. def m_internal_value(self):
  25817. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25818. return _mupdf.FzSha384_m_internal_value(self)
  25819. def __nonzero__(self):
  25820. return _mupdf.FzSha384___nonzero__(self)
  25821. __bool__ = __nonzero__
  25822. m_internal = property(_mupdf.FzSha384_m_internal_get, _mupdf.FzSha384_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25823. s_num_instances = property(_mupdf.FzSha384_s_num_instances_get, _mupdf.FzSha384_s_num_instances_set)
  25824. # Register FzSha384 in _mupdf:
  25825. _mupdf.FzSha384_swigregister(FzSha384)
  25826. class FzSha512(object):
  25827. r"""
  25828. Wrapper class for struct `fz_sha512`. Not copyable or assignable.
  25829. Structure definition is public to enable stack
  25830. based allocation. Do not access the members directly.
  25831. """
  25832. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25833. __repr__ = _swig_repr
  25834. def fz_sha384_final(self, digest):
  25835. r"""
  25836. Class-aware wrapper for `::fz_sha384_final()`.
  25837. SHA384 finalization. Ends an SHA384 message-digest operation,
  25838. writing the message digest and zeroizing the context.
  25839. Never throws an exception.
  25840. """
  25841. return _mupdf.FzSha512_fz_sha384_final(self, digest)
  25842. def fz_sha384_init(self):
  25843. r"""
  25844. Class-aware wrapper for `::fz_sha384_init()`.
  25845. SHA384 initialization. Begins an SHA384 operation, initialising
  25846. the supplied context.
  25847. Never throws an exception.
  25848. """
  25849. return _mupdf.FzSha512_fz_sha384_init(self)
  25850. def fz_sha384_update(self, input, inlen):
  25851. r"""
  25852. Class-aware wrapper for `::fz_sha384_update()`.
  25853. SHA384 block update operation. Continues an SHA384 message-
  25854. digest operation, processing another message block, and updating
  25855. the context.
  25856. Never throws an exception.
  25857. """
  25858. return _mupdf.FzSha512_fz_sha384_update(self, input, inlen)
  25859. def fz_sha512_final(self, digest):
  25860. r"""
  25861. Class-aware wrapper for `::fz_sha512_final()`.
  25862. SHA512 finalization. Ends an SHA512 message-digest operation,
  25863. writing the message digest and zeroizing the context.
  25864. Never throws an exception.
  25865. """
  25866. return _mupdf.FzSha512_fz_sha512_final(self, digest)
  25867. def fz_sha512_init(self):
  25868. r"""
  25869. Class-aware wrapper for `::fz_sha512_init()`.
  25870. SHA512 initialization. Begins an SHA512 operation, initialising
  25871. the supplied context.
  25872. Never throws an exception.
  25873. """
  25874. return _mupdf.FzSha512_fz_sha512_init(self)
  25875. def fz_sha512_update(self, input, inlen):
  25876. r"""
  25877. Class-aware wrapper for `::fz_sha512_update()`.
  25878. SHA512 block update operation. Continues an SHA512 message-
  25879. digest operation, processing another message block, and updating
  25880. the context.
  25881. Never throws an exception.
  25882. """
  25883. return _mupdf.FzSha512_fz_sha512_update(self, input, inlen)
  25884. def __init__(self, *args):
  25885. r"""
  25886. *Overload 1:*
  25887. Default constructor, sets `m_internal` to null.
  25888. |
  25889. *Overload 2:*
  25890. Constructor using raw copy of pre-existing `::fz_sha512`.
  25891. """
  25892. _mupdf.FzSha512_swiginit(self, _mupdf.new_FzSha512(*args))
  25893. __swig_destroy__ = _mupdf.delete_FzSha512
  25894. def m_internal_value(self):
  25895. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25896. return _mupdf.FzSha512_m_internal_value(self)
  25897. def __nonzero__(self):
  25898. return _mupdf.FzSha512___nonzero__(self)
  25899. __bool__ = __nonzero__
  25900. m_internal = property(_mupdf.FzSha512_m_internal_get, _mupdf.FzSha512_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25901. s_num_instances = property(_mupdf.FzSha512_s_num_instances_get, _mupdf.FzSha512_s_num_instances_set)
  25902. # Register FzSha512 in _mupdf:
  25903. _mupdf.FzSha512_swigregister(FzSha512)
  25904. class FzShade(object):
  25905. r"""
  25906. Wrapper class for struct `fz_shade`.
  25907. Structure is public to allow derived classes. Do not
  25908. access the members directly.
  25909. """
  25910. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25911. __repr__ = _swig_repr
  25912. def fz_bound_shade(self, ctm):
  25913. r"""
  25914. Class-aware wrapper for `::fz_bound_shade()`.
  25915. Bound a given shading.
  25916. shade: The shade to bound.
  25917. ctm: The transform to apply to the shade before bounding.
  25918. r: Pointer to storage to put the bounds in.
  25919. Returns r, updated to contain the bounds for the shading.
  25920. """
  25921. return _mupdf.FzShade_fz_bound_shade(self, ctm)
  25922. def fz_paint_shade(self, override_cs, ctm, dest, color_params, bbox, eop, cache):
  25923. r"""
  25924. Class-aware wrapper for `::fz_paint_shade()`.
  25925. This method has out-params. Python/C# wrappers look like:
  25926. `fz_paint_shade(::fz_colorspace *override_cs, ::fz_matrix ctm, ::fz_pixmap *dest, ::fz_color_params color_params, ::fz_irect bbox, const ::fz_overprint *eop, ::fz_shade_color_cache **cache)` =>
  25927. Render a shade to a given pixmap.
  25928. shade: The shade to paint.
  25929. override_cs: NULL, or colorspace to override the shades
  25930. inbuilt colorspace.
  25931. ctm: The transform to apply.
  25932. dest: The pixmap to render into.
  25933. color_params: The color rendering settings
  25934. bbox: Pointer to a bounding box to limit the rendering
  25935. of the shade.
  25936. eop: NULL, or pointer to overprint bitmap.
  25937. cache: *cache is used to cache color information. If *cache is NULL it
  25938. is set to point to a new fz_shade_color_cache. If cache is NULL it is
  25939. ignored.
  25940. """
  25941. return _mupdf.FzShade_fz_paint_shade(self, override_cs, ctm, dest, color_params, bbox, eop, cache)
  25942. def fz_process_shade(self, ctm, scissor, prepare, process, process_arg):
  25943. r"""
  25944. Class-aware wrapper for `::fz_process_shade()`.
  25945. Process a shade, using supplied callback functions. This
  25946. decomposes the shading to a mesh (even ones that are not
  25947. natively meshes, such as linear or radial shadings), and
  25948. processes triangles from those meshes.
  25949. shade: The shade to process.
  25950. ctm: The transform to use
  25951. prepare: Callback function to 'prepare' each vertex.
  25952. This function is passed an array of floats, and populates
  25953. a fz_vertex structure.
  25954. process: This function is passed 3 pointers to vertex
  25955. structures, and actually performs the processing (typically
  25956. filling the area between the vertices).
  25957. process_arg: An opaque argument passed through from caller
  25958. to callback functions.
  25959. """
  25960. return _mupdf.FzShade_fz_process_shade(self, ctm, scissor, prepare, process, process_arg)
  25961. def fz_paint_shade_no_cache(self, override_cs, ctm, dest, color_params, bbox, eop):
  25962. r"""Extra wrapper for fz_paint_shade(), passing cache=NULL."""
  25963. return _mupdf.FzShade_fz_paint_shade_no_cache(self, override_cs, ctm, dest, color_params, bbox, eop)
  25964. def __init__(self, *args):
  25965. r"""
  25966. *Overload 1:*
  25967. Copy constructor using `fz_keep_shade()`.
  25968. |
  25969. *Overload 2:*
  25970. Default constructor, sets `m_internal` to null.
  25971. |
  25972. *Overload 3:*
  25973. Constructor using raw copy of pre-existing `::fz_shade`.
  25974. """
  25975. _mupdf.FzShade_swiginit(self, _mupdf.new_FzShade(*args))
  25976. __swig_destroy__ = _mupdf.delete_FzShade
  25977. def m_internal_value(self):
  25978. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25979. return _mupdf.FzShade_m_internal_value(self)
  25980. def __nonzero__(self):
  25981. return _mupdf.FzShade___nonzero__(self)
  25982. __bool__ = __nonzero__
  25983. m_internal = property(_mupdf.FzShade_m_internal_get, _mupdf.FzShade_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25984. s_num_instances = property(_mupdf.FzShade_s_num_instances_get, _mupdf.FzShade_s_num_instances_set)
  25985. # Register FzShade in _mupdf:
  25986. _mupdf.FzShade_swigregister(FzShade)
  25987. class FzShadeColorCache(object):
  25988. r"""Wrapper class for struct `fz_shade_color_cache`. Not copyable or assignable."""
  25989. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25990. __repr__ = _swig_repr
  25991. def __init__(self, *args):
  25992. r"""
  25993. *Overload 1:*
  25994. Default constructor, sets `m_internal` to null.
  25995. |
  25996. *Overload 2:*
  25997. Constructor using raw copy of pre-existing `::fz_shade_color_cache`.
  25998. """
  25999. _mupdf.FzShadeColorCache_swiginit(self, _mupdf.new_FzShadeColorCache(*args))
  26000. __swig_destroy__ = _mupdf.delete_FzShadeColorCache
  26001. def m_internal_value(self):
  26002. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26003. return _mupdf.FzShadeColorCache_m_internal_value(self)
  26004. def __nonzero__(self):
  26005. return _mupdf.FzShadeColorCache___nonzero__(self)
  26006. __bool__ = __nonzero__
  26007. m_internal = property(_mupdf.FzShadeColorCache_m_internal_get, _mupdf.FzShadeColorCache_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26008. s_num_instances = property(_mupdf.FzShadeColorCache_s_num_instances_get, _mupdf.FzShadeColorCache_s_num_instances_set)
  26009. # Register FzShadeColorCache in _mupdf:
  26010. _mupdf.FzShadeColorCache_swigregister(FzShadeColorCache)
  26011. class FzShaperDataT(object):
  26012. r"""
  26013. Wrapper class for struct `fz_shaper_data_t`. Not copyable or assignable.
  26014. In order to shape a given font, we need to
  26015. declare it to a shaper library (harfbuzz, by default, but others
  26016. are possible). To avoid redeclaring it every time we need to
  26017. shape, we hold a shaper handle and the destructor for it within
  26018. the font itself. The handle is initialised by the caller when
  26019. first required and the destructor is called when the fz_font is
  26020. destroyed.
  26021. """
  26022. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26023. __repr__ = _swig_repr
  26024. def __init__(self, *args):
  26025. r"""
  26026. *Overload 1:*
  26027. Default constructor, sets `m_internal` to null.
  26028. |
  26029. *Overload 2:*
  26030. Constructor using raw copy of pre-existing `::fz_shaper_data_t`.
  26031. """
  26032. _mupdf.FzShaperDataT_swiginit(self, _mupdf.new_FzShaperDataT(*args))
  26033. __swig_destroy__ = _mupdf.delete_FzShaperDataT
  26034. def m_internal_value(self):
  26035. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26036. return _mupdf.FzShaperDataT_m_internal_value(self)
  26037. def __nonzero__(self):
  26038. return _mupdf.FzShaperDataT___nonzero__(self)
  26039. __bool__ = __nonzero__
  26040. m_internal = property(_mupdf.FzShaperDataT_m_internal_get, _mupdf.FzShaperDataT_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26041. s_num_instances = property(_mupdf.FzShaperDataT_s_num_instances_get, _mupdf.FzShaperDataT_s_num_instances_set)
  26042. # Register FzShaperDataT in _mupdf:
  26043. _mupdf.FzShaperDataT_swigregister(FzShaperDataT)
  26044. class FzStextBlock(object):
  26045. r"""Wrapper class for struct `fz_stext_block`."""
  26046. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26047. __repr__ = _swig_repr
  26048. def i_transform(self):
  26049. r"""Returns m_internal.u.i.transform if m_internal->type is FZ_STEXT_BLOCK_IMAGE, else throws."""
  26050. return _mupdf.FzStextBlock_i_transform(self)
  26051. def i_image(self):
  26052. r"""Returns m_internal.u.i.image if m_internal->type is FZ_STEXT_BLOCK_IMAGE, else throws."""
  26053. return _mupdf.FzStextBlock_i_image(self)
  26054. def begin(self):
  26055. r"""Used for iteration over linked list of FzStextLine items starting at fz_stext_line::u.t.first_line."""
  26056. return _mupdf.FzStextBlock_begin(self)
  26057. def end(self):
  26058. r"""Used for iteration over linked list of FzStextLine items starting at fz_stext_line::u.t.first_line."""
  26059. return _mupdf.FzStextBlock_end(self)
  26060. def __init__(self, *args):
  26061. r"""
  26062. *Overload 1:*
  26063. == Constructors. Constructor using `fz_new_stext_struct()`.
  26064. |
  26065. *Overload 2:*
  26066. We use default copy constructor and operator=. Default constructor, sets `m_internal` to null.
  26067. |
  26068. *Overload 3:*
  26069. Constructor using raw copy of pre-existing `::fz_stext_block`.
  26070. """
  26071. _mupdf.FzStextBlock_swiginit(self, _mupdf.new_FzStextBlock(*args))
  26072. __swig_destroy__ = _mupdf.delete_FzStextBlock
  26073. def m_internal_value(self):
  26074. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26075. return _mupdf.FzStextBlock_m_internal_value(self)
  26076. def __nonzero__(self):
  26077. return _mupdf.FzStextBlock___nonzero__(self)
  26078. __bool__ = __nonzero__
  26079. m_internal = property(_mupdf.FzStextBlock_m_internal_get, _mupdf.FzStextBlock_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26080. s_num_instances = property(_mupdf.FzStextBlock_s_num_instances_get, _mupdf.FzStextBlock_s_num_instances_set)
  26081. # Register FzStextBlock in _mupdf:
  26082. _mupdf.FzStextBlock_swigregister(FzStextBlock)
  26083. class FzStextChar(object):
  26084. r"""
  26085. Wrapper class for struct `fz_stext_char`.
  26086. Text extraction device: Used for searching, format conversion etc.
  26087. (In development - Subject to change in future versions)
  26088. """
  26089. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26090. __repr__ = _swig_repr
  26091. def __init__(self, *args):
  26092. r"""
  26093. *Overload 1:*
  26094. We use default copy constructor and operator=. Default constructor, sets `m_internal` to null.
  26095. |
  26096. *Overload 2:*
  26097. Constructor using raw copy of pre-existing `::fz_stext_char`.
  26098. """
  26099. _mupdf.FzStextChar_swiginit(self, _mupdf.new_FzStextChar(*args))
  26100. __swig_destroy__ = _mupdf.delete_FzStextChar
  26101. def m_internal_value(self):
  26102. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26103. return _mupdf.FzStextChar_m_internal_value(self)
  26104. def __nonzero__(self):
  26105. return _mupdf.FzStextChar___nonzero__(self)
  26106. __bool__ = __nonzero__
  26107. m_internal = property(_mupdf.FzStextChar_m_internal_get, _mupdf.FzStextChar_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26108. s_num_instances = property(_mupdf.FzStextChar_s_num_instances_get, _mupdf.FzStextChar_s_num_instances_set)
  26109. # Register FzStextChar in _mupdf:
  26110. _mupdf.FzStextChar_swigregister(FzStextChar)
  26111. class FzStextGridPositions(object):
  26112. r"""Wrapper class for struct `fz_stext_grid_positions`. Not copyable or assignable."""
  26113. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26114. __repr__ = _swig_repr
  26115. def __init__(self, *args):
  26116. r"""
  26117. *Overload 1:*
  26118. Default constructor, sets `m_internal` to null.
  26119. |
  26120. *Overload 2:*
  26121. Constructor using raw copy of pre-existing `::fz_stext_grid_positions`.
  26122. """
  26123. _mupdf.FzStextGridPositions_swiginit(self, _mupdf.new_FzStextGridPositions(*args))
  26124. __swig_destroy__ = _mupdf.delete_FzStextGridPositions
  26125. def m_internal_value(self):
  26126. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26127. return _mupdf.FzStextGridPositions_m_internal_value(self)
  26128. def __nonzero__(self):
  26129. return _mupdf.FzStextGridPositions___nonzero__(self)
  26130. __bool__ = __nonzero__
  26131. m_internal = property(_mupdf.FzStextGridPositions_m_internal_get, _mupdf.FzStextGridPositions_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26132. s_num_instances = property(_mupdf.FzStextGridPositions_s_num_instances_get, _mupdf.FzStextGridPositions_s_num_instances_set)
  26133. # Register FzStextGridPositions in _mupdf:
  26134. _mupdf.FzStextGridPositions_swigregister(FzStextGridPositions)
  26135. class FzStextLine(object):
  26136. r"""Wrapper class for struct `fz_stext_line`."""
  26137. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26138. __repr__ = _swig_repr
  26139. def begin(self):
  26140. r"""Used for iteration over linked list of FzStextChar items starting at fz_stext_char::first_char."""
  26141. return _mupdf.FzStextLine_begin(self)
  26142. def end(self):
  26143. r"""Used for iteration over linked list of FzStextChar items starting at fz_stext_char::first_char."""
  26144. return _mupdf.FzStextLine_end(self)
  26145. def __init__(self, *args):
  26146. r"""
  26147. *Overload 1:*
  26148. We use default copy constructor and operator=. Default constructor, sets `m_internal` to null.
  26149. |
  26150. *Overload 2:*
  26151. Constructor using raw copy of pre-existing `::fz_stext_line`.
  26152. """
  26153. _mupdf.FzStextLine_swiginit(self, _mupdf.new_FzStextLine(*args))
  26154. __swig_destroy__ = _mupdf.delete_FzStextLine
  26155. def m_internal_value(self):
  26156. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26157. return _mupdf.FzStextLine_m_internal_value(self)
  26158. def __nonzero__(self):
  26159. return _mupdf.FzStextLine___nonzero__(self)
  26160. __bool__ = __nonzero__
  26161. m_internal = property(_mupdf.FzStextLine_m_internal_get, _mupdf.FzStextLine_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26162. s_num_instances = property(_mupdf.FzStextLine_s_num_instances_get, _mupdf.FzStextLine_s_num_instances_set)
  26163. # Register FzStextLine in _mupdf:
  26164. _mupdf.FzStextLine_swigregister(FzStextLine)
  26165. class FzStextOptions(object):
  26166. r"""
  26167. Wrapper class for struct `fz_stext_options`.
  26168. Options for creating structured text.
  26169. """
  26170. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26171. __repr__ = _swig_repr
  26172. def fz_parse_stext_options(self, string):
  26173. r"""
  26174. Class-aware wrapper for `::fz_parse_stext_options()`.
  26175. Parse stext device options from a comma separated key-value
  26176. string.
  26177. """
  26178. return _mupdf.FzStextOptions_fz_parse_stext_options(self, string)
  26179. def __init__(self, *args):
  26180. r"""
  26181. *Overload 1:*
  26182. Construct with .flags, .scale but no clip.
  26183. |
  26184. *Overload 2:*
  26185. Construct with .flags, .scale and .clip; FZ_STEXT_CLIP_RECT
  26186. is automatically set in .flags.
  26187. |
  26188. *Overload 3:*
  26189. Construct with .flags, .scale and .clip; FZ_STEXT_CLIP_RECT
  26190. is automatically set in .flags.
  26191. |
  26192. *Overload 4:*
  26193. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  26194. |
  26195. *Overload 5:*
  26196. Constructor using raw copy of pre-existing `::fz_stext_options`.
  26197. |
  26198. *Overload 6:*
  26199. Constructor using raw copy of pre-existing `::fz_stext_options`.
  26200. """
  26201. _mupdf.FzStextOptions_swiginit(self, _mupdf.new_FzStextOptions(*args))
  26202. def internal(self, *args):
  26203. r"""
  26204. *Overload 1:*
  26205. Access as underlying struct.
  26206. |
  26207. *Overload 2:*
  26208. Access as underlying struct.
  26209. """
  26210. return _mupdf.FzStextOptions_internal(self, *args)
  26211. __swig_destroy__ = _mupdf.delete_FzStextOptions
  26212. flags = property(_mupdf.FzStextOptions_flags_get, _mupdf.FzStextOptions_flags_set)
  26213. scale = property(_mupdf.FzStextOptions_scale_get, _mupdf.FzStextOptions_scale_set)
  26214. clip = property(_mupdf.FzStextOptions_clip_get, _mupdf.FzStextOptions_clip_set)
  26215. s_num_instances = property(_mupdf.FzStextOptions_s_num_instances_get, _mupdf.FzStextOptions_s_num_instances_set)
  26216. def to_string(self):
  26217. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  26218. return _mupdf.FzStextOptions_to_string(self)
  26219. def __eq__(self, rhs):
  26220. r"""Comparison method."""
  26221. return _mupdf.FzStextOptions___eq__(self, rhs)
  26222. def __ne__(self, rhs):
  26223. r"""Comparison method."""
  26224. return _mupdf.FzStextOptions___ne__(self, rhs)
  26225. # Register FzStextOptions in _mupdf:
  26226. _mupdf.FzStextOptions_swigregister(FzStextOptions)
  26227. class FzStextPage(object):
  26228. r"""
  26229. Wrapper class for struct `fz_stext_page`. Not copyable or assignable.
  26230. A text page is a list of blocks, together with an overall
  26231. bounding box.
  26232. The name of this structure is now slightly out of date. It
  26233. should really be fz_stext_document, cos it can contain
  26234. content from multiple pages.
  26235. """
  26236. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26237. __repr__ = _swig_repr
  26238. def fz_classify_stext_rect(self, classification, rect):
  26239. r"""Class-aware wrapper for `::fz_classify_stext_rect()`."""
  26240. return _mupdf.FzStextPage_fz_classify_stext_rect(self, classification, rect)
  26241. def fz_find_table_within_bounds(self, bounds):
  26242. r"""
  26243. Class-aware wrapper for `::fz_find_table_within_bounds()`.
  26244. Interpret the bounded contents of a given stext page as
  26245. a table.
  26246. The page contents will be rewritten to contain a Table
  26247. structure with the identified content in it.
  26248. This uses the same logic as for fz_table_hunt, without the
  26249. actual hunting. fz_table_hunt hunts to find possible bounds
  26250. for multiple tables on the page; this routine just finds a
  26251. single table contained within the given rectangle.
  26252. Returns the stext_block list that contains the content of
  26253. the table.
  26254. """
  26255. return _mupdf.FzStextPage_fz_find_table_within_bounds(self, bounds)
  26256. def fz_highlight_selection(self, a, b, quads, max_quads):
  26257. r"""
  26258. Class-aware wrapper for `::fz_highlight_selection()`.
  26259. Return a list of quads to highlight lines inside the selection
  26260. points.
  26261. """
  26262. return _mupdf.FzStextPage_fz_highlight_selection(self, a, b, quads, max_quads)
  26263. def fz_highlight_selection2(self, a, b, max_quads):
  26264. r"""
  26265. Class-aware wrapper for `::fz_highlight_selection2()`.
  26266. C++ alternative to fz_highlight_selection() that returns quads in a
  26267. std::vector.
  26268. """
  26269. return _mupdf.FzStextPage_fz_highlight_selection2(self, a, b, max_quads)
  26270. def fz_new_buffer_from_stext_page(self):
  26271. r"""
  26272. Class-aware wrapper for `::fz_new_buffer_from_stext_page()`.
  26273. Convert structured text into plain text.
  26274. """
  26275. return _mupdf.FzStextPage_fz_new_buffer_from_stext_page(self)
  26276. def fz_new_stext_device(self, options):
  26277. r"""
  26278. Class-aware wrapper for `::fz_new_stext_device()`.
  26279. Create a device to extract the text on a page.
  26280. Gather the text on a page into blocks and lines.
  26281. The reading order is taken from the order the text is drawn in
  26282. the source file, so may not be accurate.
  26283. page: The text page to which content should be added. This will
  26284. usually be a newly created (empty) text page, but it can be one
  26285. containing data already (for example when merging multiple
  26286. pages, or watermarking).
  26287. options: Options to configure the stext device.
  26288. """
  26289. return _mupdf.FzStextPage_fz_new_stext_device(self, options)
  26290. def fz_new_stext_device_for_page(self, opts, chapter_num, page_num, mediabox):
  26291. r"""
  26292. Class-aware wrapper for `::fz_new_stext_device_for_page()`.
  26293. Create a device to extract the text on a page into an existing
  26294. fz_stext_page structure.
  26295. Gather the text on a page into blocks and lines.
  26296. The reading order is taken from the order the text is drawn in
  26297. the source file, so may not be accurate.
  26298. stext_page: The text page to which content should be added. This will
  26299. usually be a newly created (empty) text page, but it can be one
  26300. containing data already (for example when merging multiple
  26301. pages, or watermarking).
  26302. options: Options to configure the stext device.
  26303. The next 2 parameters are copied into the fz_stext_page structure's
  26304. ids section, so only have to be valid if you expect to interrogate
  26305. that section later.
  26306. chapter_num: The chapter number that this page came from.
  26307. page_num: The page number that this page came from.
  26308. The final parameter is copied into the fz_stext_page structure's
  26309. ids section. The mediabox for the enture fz_stext_page is unioned
  26310. with this, so pass fz_empty_bbox if you don't care about getting
  26311. a valid value back from the ids section, but you don't want to
  26312. upset the value in the page->mediabox field.
  26313. mediabox: The mediabox for this page.
  26314. """
  26315. return _mupdf.FzStextPage_fz_new_stext_device_for_page(self, opts, chapter_num, page_num, mediabox)
  26316. def fz_new_stext_struct(self, standard, raw, index):
  26317. r"""Class-aware wrapper for `::fz_new_stext_struct()`."""
  26318. return _mupdf.FzStextPage_fz_new_stext_struct(self, standard, raw, index)
  26319. def fz_paragraph_break(self):
  26320. r"""
  26321. Class-aware wrapper for `::fz_paragraph_break()`.
  26322. Attempt to break paragraphs at plausible places.
  26323. """
  26324. return _mupdf.FzStextPage_fz_paragraph_break(self)
  26325. def fz_search_stext_page(self, needle, hit_mark, hit_bbox, hit_max):
  26326. r"""
  26327. Class-aware wrapper for `::fz_search_stext_page()`.
  26328. This method has out-params. Python/C# wrappers look like:
  26329. `fz_search_stext_page(const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  26330. Search for occurrence of 'needle' in text page.
  26331. Return the number of quads and store hit quads in the passed in
  26332. array.
  26333. NOTE: This is an experimental interface and subject to change
  26334. without notice.
  26335. """
  26336. return _mupdf.FzStextPage_fz_search_stext_page(self, needle, hit_mark, hit_bbox, hit_max)
  26337. def fz_search_stext_page_cb(self, needle, cb, opaque):
  26338. r"""
  26339. Class-aware wrapper for `::fz_search_stext_page_cb()`.
  26340. Search for occurrence of 'needle' in text page.
  26341. Call callback once for each hit. This callback will receive
  26342. (potentially) multiple quads for each hit.
  26343. Returns the number of hits - note that this is potentially
  26344. different from (i.e. is not greater than) the number of quads
  26345. as returned by the non callback API.
  26346. NOTE: This is an experimental interface and subject to change
  26347. without notice.
  26348. """
  26349. return _mupdf.FzStextPage_fz_search_stext_page_cb(self, needle, cb, opaque)
  26350. def fz_segment_stext_page(self):
  26351. r"""
  26352. Class-aware wrapper for `::fz_segment_stext_page()`.
  26353. Perform segmentation analysis on an (unstructured) page to look for
  26354. recursive subdivisions.
  26355. Essentially this code attempts to split the page horizontally and/or
  26356. vertically repeatedly into smaller and smaller "segments" (divisions).
  26357. This minimises the reordering of the content, but some reordering
  26358. may be unavoidable.
  26359. Returns 0 if no changes were made to the document.
  26360. This is experimental code, and may change (or be removed) in future
  26361. versions!
  26362. """
  26363. return _mupdf.FzStextPage_fz_segment_stext_page(self)
  26364. def fz_segment_stext_rect(self, rect):
  26365. r"""
  26366. Class-aware wrapper for `::fz_segment_stext_rect()`.
  26367. Perform segmentation analysis on a rectangle of a given
  26368. stext page.
  26369. Like fz_segment_stext_page, this attempts to split the given page
  26370. region horizontally and/or vertically repeatedly into smaller and
  26371. smaller "segments".
  26372. This works for pages with structure too, but splitting with
  26373. rectangles that cut across structure blocks may not behave as
  26374. expected.
  26375. This minimises the reordering of the content (as viewed from the
  26376. perspective of a depth first traversal), but some reordering may
  26377. be unavoidable.
  26378. This function accepts smaller gaps for segmentation than the full
  26379. page segmentation does.
  26380. Returns 0 if no changes were made to the document.
  26381. This is experimental code, and may change (or be removed) in future
  26382. versions!
  26383. """
  26384. return _mupdf.FzStextPage_fz_segment_stext_rect(self, rect)
  26385. def fz_snap_selection(self, ap, bp, mode):
  26386. r"""Class-aware wrapper for `::fz_snap_selection()`."""
  26387. return _mupdf.FzStextPage_fz_snap_selection(self, ap, bp, mode)
  26388. def fz_stext_remove_page_fill(self):
  26389. r"""Class-aware wrapper for `::fz_stext_remove_page_fill()`."""
  26390. return _mupdf.FzStextPage_fz_stext_remove_page_fill(self)
  26391. def fz_table_hunt(self):
  26392. r"""
  26393. Class-aware wrapper for `::fz_table_hunt()`.
  26394. Hunt for possible tables on a page, and update the stext with
  26395. information.
  26396. """
  26397. return _mupdf.FzStextPage_fz_table_hunt(self)
  26398. def fz_table_hunt_within_bounds(self, bounds):
  26399. r"""
  26400. Class-aware wrapper for `::fz_table_hunt_within_bounds()`.
  26401. Hunt for possible tables within a specific rect on a page, and
  26402. update the stext with information.
  26403. """
  26404. return _mupdf.FzStextPage_fz_table_hunt_within_bounds(self, bounds)
  26405. def fz_copy_selection(self, a, b, crlf):
  26406. r"""Wrapper for fz_copy_selection() that returns std::string."""
  26407. return _mupdf.FzStextPage_fz_copy_selection(self, a, b, crlf)
  26408. def fz_copy_rectangle(self, area, crlf):
  26409. r"""Wrapper for fz_copy_rectangle() that returns a std::string."""
  26410. return _mupdf.FzStextPage_fz_copy_rectangle(self, area, crlf)
  26411. def search_stext_page(self, needle, hit_mark, max_quads):
  26412. r"""Wrapper for fz_search_stext_page() that returns std::vector of Quads."""
  26413. return _mupdf.FzStextPage_search_stext_page(self, needle, hit_mark, max_quads)
  26414. def begin(self):
  26415. r"""Used for iteration over linked list of FzStextBlock items starting at fz_stext_block::first_block."""
  26416. return _mupdf.FzStextPage_begin(self)
  26417. def end(self):
  26418. r"""Used for iteration over linked list of FzStextBlock items starting at fz_stext_block::first_block."""
  26419. return _mupdf.FzStextPage_end(self)
  26420. def __init__(self, *args):
  26421. r"""
  26422. *Overload 1:*
  26423. == Constructors. Constructor using `fz_new_stext_page()`.
  26424. Create an empty text page.
  26425. The text page is filled out by the text device to contain the
  26426. blocks and lines of text on the page.
  26427. mediabox: optional mediabox information.
  26428. |
  26429. *Overload 2:*
  26430. Constructor using `fz_new_stext_page_from_chapter_page_number()`.
  26431. |
  26432. *Overload 3:*
  26433. Constructor using `fz_new_stext_page_from_display_list()`.
  26434. |
  26435. *Overload 4:*
  26436. Constructor using `fz_new_stext_page_from_page()`.
  26437. Extract text from page.
  26438. Ownership of the fz_stext_page is returned to the caller.
  26439. |
  26440. *Overload 5:*
  26441. Constructor using `fz_new_stext_page_from_page_number()`.
  26442. |
  26443. *Overload 6:*
  26444. Constructor using `pdf_new_stext_page_from_annot()`.
  26445. |
  26446. *Overload 7:*
  26447. Default constructor, sets `m_internal` to null.
  26448. |
  26449. *Overload 8:*
  26450. Constructor using raw copy of pre-existing `::fz_stext_page`.
  26451. """
  26452. _mupdf.FzStextPage_swiginit(self, _mupdf.new_FzStextPage(*args))
  26453. __swig_destroy__ = _mupdf.delete_FzStextPage
  26454. def m_internal_value(self):
  26455. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26456. return _mupdf.FzStextPage_m_internal_value(self)
  26457. def __nonzero__(self):
  26458. return _mupdf.FzStextPage___nonzero__(self)
  26459. __bool__ = __nonzero__
  26460. m_internal = property(_mupdf.FzStextPage_m_internal_get, _mupdf.FzStextPage_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26461. s_num_instances = property(_mupdf.FzStextPage_s_num_instances_get, _mupdf.FzStextPage_s_num_instances_set)
  26462. # Register FzStextPage in _mupdf:
  26463. _mupdf.FzStextPage_swigregister(FzStextPage)
  26464. class FzStextPageBlockIterator(object):
  26465. r"""Wrapper class for struct `fz_stext_page_block_iterator`. Not copyable or assignable."""
  26466. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26467. __repr__ = _swig_repr
  26468. def fz_stext_page_block_iterator_eod(self):
  26469. r"""Class-aware wrapper for `::fz_stext_page_block_iterator_eod()`."""
  26470. return _mupdf.FzStextPageBlockIterator_fz_stext_page_block_iterator_eod(self)
  26471. def fz_stext_page_block_iterator_eod_dfs(self):
  26472. r"""Class-aware wrapper for `::fz_stext_page_block_iterator_eod_dfs()`."""
  26473. return _mupdf.FzStextPageBlockIterator_fz_stext_page_block_iterator_eod_dfs(self)
  26474. def __init__(self, *args):
  26475. r"""
  26476. *Overload 1:*
  26477. Default constructor, sets `m_internal` to null.
  26478. |
  26479. *Overload 2:*
  26480. Constructor using raw copy of pre-existing `::fz_stext_page_block_iterator`.
  26481. """
  26482. _mupdf.FzStextPageBlockIterator_swiginit(self, _mupdf.new_FzStextPageBlockIterator(*args))
  26483. __swig_destroy__ = _mupdf.delete_FzStextPageBlockIterator
  26484. def m_internal_value(self):
  26485. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26486. return _mupdf.FzStextPageBlockIterator_m_internal_value(self)
  26487. def __nonzero__(self):
  26488. return _mupdf.FzStextPageBlockIterator___nonzero__(self)
  26489. __bool__ = __nonzero__
  26490. m_internal = property(_mupdf.FzStextPageBlockIterator_m_internal_get, _mupdf.FzStextPageBlockIterator_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26491. s_num_instances = property(_mupdf.FzStextPageBlockIterator_s_num_instances_get, _mupdf.FzStextPageBlockIterator_s_num_instances_set)
  26492. # Register FzStextPageBlockIterator in _mupdf:
  26493. _mupdf.FzStextPageBlockIterator_swigregister(FzStextPageBlockIterator)
  26494. class FzStextPageDetails(object):
  26495. r"""
  26496. Wrapper class for struct `fz_stext_page_details`. Not copyable or assignable.
  26497. A note on stext's handling of structure.
  26498. A PDF document can contain a structure tree. This gives the
  26499. structure of a document in its entirety as a tree. e.g.
  26500. Tree MCID INDEX
  26501. -------------------------------------
  26502. DOC 0 0
  26503. TOC 1 0
  26504. TOC_ITEM 2 0
  26505. TOC_ITEM 3 1
  26506. TOC_ITEM 4 2
  26507. ...
  26508. STORY 100 1
  26509. SECTION 101 0
  26510. HEADING 102 0
  26511. SUBSECTION 103 1
  26512. PARAGRAPH 104 0
  26513. PARAGRAPH 105 1
  26514. PARAGRAPH 106 2
  26515. SUBSECTION 107 2
  26516. PARAGRAPH 108 0
  26517. PARAGRAPH 109 1
  26518. PARAGRAPH 110 2
  26519. ...
  26520. SECTION 200 1
  26521. ...
  26522. Each different section of the tree is identified as part of an
  26523. MCID by a number (this is a slight simplification, but makes the
  26524. explanation easier).
  26525. The PDF document contains markings that say "Entering MCID 0"
  26526. and "Leaving MCID 0". Any content within that region is therefore
  26527. identified as appearing in that particular structural region.
  26528. This means that content can be sent in the document in a different
  26529. order to which it appears 'logically' in the tree.
  26530. MuPDF converts this tree form into a nested series of calls to
  26531. begin_structure and end_structure.
  26532. For instance, if the document started out with MCID 100, then
  26533. we'd send:
  26534. begin_structure("DOC")
  26535. begin_structure("STORY")
  26536. The problem with this is that if we send:
  26537. begin_structure("DOC")
  26538. begin_structure("STORY")
  26539. begin_structure("SECTION")
  26540. begin_structure("SUBSECTION")
  26541. or
  26542. begin_structure("DOC")
  26543. begin_structure("STORY")
  26544. begin_structure("SECTION")
  26545. begin_structure("HEADING")
  26546. How do I know what order the SECTION and HEADING should appear in?
  26547. Are they even in the same STORY? Or the same DOC?
  26548. Accordingly, every begin_structure is accompanied not only with the
  26549. node type, but with an index. The index is the number of this node
  26550. within this level of the tree. Hence:
  26551. begin_structure("DOC", 0)
  26552. begin_structure("STORY", 0)
  26553. begin_structure("SECTION", 0)
  26554. begin_structure("HEADING", 0)
  26555. and
  26556. begin_structure("DOC", 0)
  26557. begin_structure("STORY", 0)
  26558. begin_structure("SECTION", 0)
  26559. begin_structure("SUBSECTION", 1)
  26560. are now unambiguous in their describing of the tree.
  26561. MuPDF automatically sends the minimal end_structure/begin_structure
  26562. pairs to move us between nodes in the tree.
  26563. In order to accommodate this information within the structured text
  26564. data structures an additional block type is used. Previously a
  26565. "page" was just a list of blocks, either text or images. e.g.
  26566. [BLOCK:TEXT] <-> [BLOCK:IMG] <-> [BLOCK:TEXT] <-> [BLOCK:TEXT] ...
  26567. We now introduce a new type of block, STRUCT, that turns this into
  26568. a tree:
  26569. [BLOCK:TEXT] <-> [BLOCK:STRUCT(IDX=0)] <-> [BLOCK:TEXT] <-> ...
  26570. /|
  26571. [STRUCT:TYPE=DOC] <----
  26572. |
  26573. [BLOCK:TEXT] <-> [BLOCK:STRUCT(IDX=0)] <-> [BLOCK:TEXT] <-> ...
  26574. /|
  26575. [STRUCT:TYPE=STORY] <--
  26576. |
  26577. ...
  26578. Rather than doing a simple linear traversal of the list to extract
  26579. the logical data, a caller now has to do a depth-first traversal.
  26580. """
  26581. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26582. __repr__ = _swig_repr
  26583. def __init__(self, *args):
  26584. r"""
  26585. *Overload 1:*
  26586. Default constructor, sets `m_internal` to null.
  26587. |
  26588. *Overload 2:*
  26589. Constructor using raw copy of pre-existing `::fz_stext_page_details`.
  26590. """
  26591. _mupdf.FzStextPageDetails_swiginit(self, _mupdf.new_FzStextPageDetails(*args))
  26592. __swig_destroy__ = _mupdf.delete_FzStextPageDetails
  26593. def m_internal_value(self):
  26594. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26595. return _mupdf.FzStextPageDetails_m_internal_value(self)
  26596. def __nonzero__(self):
  26597. return _mupdf.FzStextPageDetails___nonzero__(self)
  26598. __bool__ = __nonzero__
  26599. m_internal = property(_mupdf.FzStextPageDetails_m_internal_get, _mupdf.FzStextPageDetails_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26600. s_num_instances = property(_mupdf.FzStextPageDetails_s_num_instances_get, _mupdf.FzStextPageDetails_s_num_instances_set)
  26601. # Register FzStextPageDetails in _mupdf:
  26602. _mupdf.FzStextPageDetails_swigregister(FzStextPageDetails)
  26603. class FzStextStruct(object):
  26604. r"""Wrapper class for struct `fz_stext_struct`. Not copyable or assignable."""
  26605. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26606. __repr__ = _swig_repr
  26607. def __init__(self, *args):
  26608. r"""
  26609. *Overload 1:*
  26610. Default constructor, sets `m_internal` to null.
  26611. |
  26612. *Overload 2:*
  26613. Constructor using raw copy of pre-existing `::fz_stext_struct`.
  26614. """
  26615. _mupdf.FzStextStruct_swiginit(self, _mupdf.new_FzStextStruct(*args))
  26616. __swig_destroy__ = _mupdf.delete_FzStextStruct
  26617. def m_internal_value(self):
  26618. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26619. return _mupdf.FzStextStruct_m_internal_value(self)
  26620. def __nonzero__(self):
  26621. return _mupdf.FzStextStruct___nonzero__(self)
  26622. __bool__ = __nonzero__
  26623. m_internal = property(_mupdf.FzStextStruct_m_internal_get, _mupdf.FzStextStruct_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26624. s_num_instances = property(_mupdf.FzStextStruct_s_num_instances_get, _mupdf.FzStextStruct_s_num_instances_set)
  26625. # Register FzStextStruct in _mupdf:
  26626. _mupdf.FzStextStruct_swigregister(FzStextStruct)
  26627. class FzStorable(object):
  26628. r"""
  26629. Wrapper class for struct `fz_storable`.
  26630. Resource store
  26631. MuPDF stores decoded "objects" into a store for potential reuse.
  26632. If the size of the store gets too big, objects stored within it
  26633. can be evicted and freed to recover space. When MuPDF comes to
  26634. decode such an object, it will check to see if a version of this
  26635. object is already in the store - if it is, it will simply reuse
  26636. it. If not, it will decode it and place it into the store.
  26637. All objects that can be placed into the store are derived from
  26638. the fz_storable type (i.e. this should be the first component of
  26639. the objects structure). This allows for consistent (thread safe)
  26640. reference counting, and includes a function that will be called
  26641. to free the object as soon as the reference count reaches zero.
  26642. Most objects offer fz_keep_XXXX/fz_drop_XXXX functions derived
  26643. from fz_keep_storable/fz_drop_storable. Creation of such objects
  26644. includes a call to FZ_INIT_STORABLE to set up the fz_storable
  26645. header.
  26646. """
  26647. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26648. __repr__ = _swig_repr
  26649. def __init__(self, *args):
  26650. r"""
  26651. *Overload 1:*
  26652. Copy constructor using `fz_keep_storable()`.
  26653. |
  26654. *Overload 2:*
  26655. Default constructor, sets `m_internal` to null.
  26656. |
  26657. *Overload 3:*
  26658. Constructor using raw copy of pre-existing `::fz_storable`.
  26659. """
  26660. _mupdf.FzStorable_swiginit(self, _mupdf.new_FzStorable(*args))
  26661. __swig_destroy__ = _mupdf.delete_FzStorable
  26662. def m_internal_value(self):
  26663. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26664. return _mupdf.FzStorable_m_internal_value(self)
  26665. def __nonzero__(self):
  26666. return _mupdf.FzStorable___nonzero__(self)
  26667. __bool__ = __nonzero__
  26668. m_internal = property(_mupdf.FzStorable_m_internal_get, _mupdf.FzStorable_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26669. s_num_instances = property(_mupdf.FzStorable_s_num_instances_get, _mupdf.FzStorable_s_num_instances_set)
  26670. # Register FzStorable in _mupdf:
  26671. _mupdf.FzStorable_swigregister(FzStorable)
  26672. class FzStore(object):
  26673. r"""Wrapper class for struct `fz_store`. Not copyable or assignable."""
  26674. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26675. __repr__ = _swig_repr
  26676. def __init__(self, *args):
  26677. r"""
  26678. *Overload 1:*
  26679. Default constructor, sets `m_internal` to null.
  26680. |
  26681. *Overload 2:*
  26682. Constructor using raw copy of pre-existing `::fz_store`.
  26683. """
  26684. _mupdf.FzStore_swiginit(self, _mupdf.new_FzStore(*args))
  26685. __swig_destroy__ = _mupdf.delete_FzStore
  26686. def m_internal_value(self):
  26687. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26688. return _mupdf.FzStore_m_internal_value(self)
  26689. def __nonzero__(self):
  26690. return _mupdf.FzStore___nonzero__(self)
  26691. __bool__ = __nonzero__
  26692. m_internal = property(_mupdf.FzStore_m_internal_get, _mupdf.FzStore_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26693. s_num_instances = property(_mupdf.FzStore_s_num_instances_get, _mupdf.FzStore_s_num_instances_set)
  26694. # Register FzStore in _mupdf:
  26695. _mupdf.FzStore_swigregister(FzStore)
  26696. class FzStoreHash(object):
  26697. r"""
  26698. Wrapper class for struct `fz_store_hash`. Not copyable or assignable.
  26699. The store can be seen as a dictionary that maps keys to
  26700. fz_storable values. In order to allow keys of different types to
  26701. be stored, we have a structure full of functions for each key
  26702. 'type'; this fz_store_type pointer is stored with each key, and
  26703. tells the store how to perform certain operations (like taking/
  26704. dropping a reference, comparing two keys, outputting details for
  26705. debugging etc).
  26706. The store uses a hash table internally for speed where possible.
  26707. In order for this to work, we need a mechanism for turning a
  26708. generic 'key' into 'a hashable string'. For this purpose the
  26709. type structure contains a make_hash_key function pointer that
  26710. maps from a void * to a fz_store_hash structure. If
  26711. make_hash_key function returns 0, then the key is determined not
  26712. to be hashable, and the value is not stored in the hash table.
  26713. Some objects can be used both as values within the store, and as
  26714. a component of keys within the store. We refer to these objects
  26715. as "key storable" objects. In this case, we need to take
  26716. additional care to ensure that we do not end up keeping an item
  26717. within the store, purely because its value is referred to by
  26718. another key in the store.
  26719. An example of this are fz_images in PDF files. Each fz_image is
  26720. placed into the store to enable it to be easily reused. When the
  26721. image is rendered, a pixmap is generated from the image, and the
  26722. pixmap is placed into the store so it can be reused on
  26723. subsequent renders. The image forms part of the key for the
  26724. pixmap.
  26725. When we close the pdf document (and any associated pages/display
  26726. lists etc), we drop the images from the store. This may leave us
  26727. in the position of the images having non-zero reference counts
  26728. purely because they are used as part of the keys for the
  26729. pixmaps.
  26730. We therefore use special reference counting functions to keep
  26731. track of these "key storable" items, and hence store the number
  26732. of references to these items that are used in keys.
  26733. When the number of references to an object == the number of
  26734. references to an object from keys in the store, we know that we
  26735. can remove all the items which have that object as part of the
  26736. key. This is done by running a pass over the store, 'reaping'
  26737. those items.
  26738. Reap passes are slower than we would like as they touch every
  26739. item in the store. We therefore provide a way to 'batch' such
  26740. reap passes together, using fz_defer_reap_start/
  26741. fz_defer_reap_end to bracket a region in which many may be
  26742. triggered.
  26743. """
  26744. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26745. __repr__ = _swig_repr
  26746. def __init__(self, *args):
  26747. r"""
  26748. *Overload 1:*
  26749. Default constructor, sets `m_internal` to null.
  26750. |
  26751. *Overload 2:*
  26752. Constructor using raw copy of pre-existing `::fz_store_hash`.
  26753. """
  26754. _mupdf.FzStoreHash_swiginit(self, _mupdf.new_FzStoreHash(*args))
  26755. __swig_destroy__ = _mupdf.delete_FzStoreHash
  26756. def m_internal_value(self):
  26757. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26758. return _mupdf.FzStoreHash_m_internal_value(self)
  26759. def __nonzero__(self):
  26760. return _mupdf.FzStoreHash___nonzero__(self)
  26761. __bool__ = __nonzero__
  26762. m_internal = property(_mupdf.FzStoreHash_m_internal_get, _mupdf.FzStoreHash_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26763. s_num_instances = property(_mupdf.FzStoreHash_s_num_instances_get, _mupdf.FzStoreHash_s_num_instances_set)
  26764. # Register FzStoreHash in _mupdf:
  26765. _mupdf.FzStoreHash_swigregister(FzStoreHash)
  26766. class FzStoreType(object):
  26767. r"""
  26768. Wrapper class for struct `fz_store_type`. Not copyable or assignable.
  26769. Every type of object to be placed into the store defines an
  26770. fz_store_type. This contains the pointers to functions to
  26771. make hashes, manipulate keys, and check for needing reaping.
  26772. """
  26773. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26774. __repr__ = _swig_repr
  26775. def __init__(self, *args):
  26776. r"""
  26777. *Overload 1:*
  26778. Default constructor, sets `m_internal` to null.
  26779. |
  26780. *Overload 2:*
  26781. Constructor using raw copy of pre-existing `::fz_store_type`.
  26782. """
  26783. _mupdf.FzStoreType_swiginit(self, _mupdf.new_FzStoreType(*args))
  26784. __swig_destroy__ = _mupdf.delete_FzStoreType
  26785. def m_internal_value(self):
  26786. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26787. return _mupdf.FzStoreType_m_internal_value(self)
  26788. def __nonzero__(self):
  26789. return _mupdf.FzStoreType___nonzero__(self)
  26790. __bool__ = __nonzero__
  26791. m_internal = property(_mupdf.FzStoreType_m_internal_get, _mupdf.FzStoreType_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26792. s_num_instances = property(_mupdf.FzStoreType_s_num_instances_get, _mupdf.FzStoreType_s_num_instances_set)
  26793. # Register FzStoreType in _mupdf:
  26794. _mupdf.FzStoreType_swigregister(FzStoreType)
  26795. class FzStory(object):
  26796. r"""Wrapper class for struct `fz_story`. Not copyable or assignable."""
  26797. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26798. __repr__ = _swig_repr
  26799. def fz_draw_story(self, dev, ctm):
  26800. r"""Class-aware wrapper for `::fz_draw_story()`."""
  26801. return _mupdf.FzStory_fz_draw_story(self, dev, ctm)
  26802. def fz_place_story(self, where, filled):
  26803. r"""Class-aware wrapper for `::fz_place_story()`."""
  26804. return _mupdf.FzStory_fz_place_story(self, where, filled)
  26805. def fz_place_story_flags(self, where, filled, flags):
  26806. r"""Class-aware wrapper for `::fz_place_story_flags()`."""
  26807. return _mupdf.FzStory_fz_place_story_flags(self, where, filled, flags)
  26808. def fz_reset_story(self):
  26809. r"""Class-aware wrapper for `::fz_reset_story()`."""
  26810. return _mupdf.FzStory_fz_reset_story(self)
  26811. def fz_story_document(self):
  26812. r"""Class-aware wrapper for `::fz_story_document()`."""
  26813. return _mupdf.FzStory_fz_story_document(self)
  26814. def fz_story_positions(self, cb, arg):
  26815. r"""Class-aware wrapper for `::fz_story_positions()`."""
  26816. return _mupdf.FzStory_fz_story_positions(self, cb, arg)
  26817. def fz_story_warnings(self):
  26818. r"""Class-aware wrapper for `::fz_story_warnings()`."""
  26819. return _mupdf.FzStory_fz_story_warnings(self)
  26820. def __init__(self, *args):
  26821. r"""
  26822. *Overload 1:*
  26823. == Constructors. Constructor using `fz_new_story()`.
  26824. |
  26825. *Overload 2:*
  26826. Default constructor, sets `m_internal` to null.
  26827. |
  26828. *Overload 3:*
  26829. Constructor using raw copy of pre-existing `::fz_story`.
  26830. """
  26831. _mupdf.FzStory_swiginit(self, _mupdf.new_FzStory(*args))
  26832. __swig_destroy__ = _mupdf.delete_FzStory
  26833. def m_internal_value(self):
  26834. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26835. return _mupdf.FzStory_m_internal_value(self)
  26836. def __nonzero__(self):
  26837. return _mupdf.FzStory___nonzero__(self)
  26838. __bool__ = __nonzero__
  26839. m_internal = property(_mupdf.FzStory_m_internal_get, _mupdf.FzStory_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26840. s_num_instances = property(_mupdf.FzStory_s_num_instances_get, _mupdf.FzStory_s_num_instances_set)
  26841. # Register FzStory in _mupdf:
  26842. _mupdf.FzStory_swigregister(FzStory)
  26843. class FzStoryElementPosition(object):
  26844. r"""Wrapper class for struct `fz_story_element_position`."""
  26845. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26846. __repr__ = _swig_repr
  26847. def __init__(self, *args):
  26848. r"""
  26849. *Overload 1:*
  26850. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  26851. |
  26852. *Overload 2:*
  26853. Constructor using raw copy of pre-existing `::fz_story_element_position`.
  26854. |
  26855. *Overload 3:*
  26856. Constructor using raw copy of pre-existing `::fz_story_element_position`.
  26857. """
  26858. _mupdf.FzStoryElementPosition_swiginit(self, _mupdf.new_FzStoryElementPosition(*args))
  26859. def internal(self, *args):
  26860. r"""
  26861. *Overload 1:*
  26862. Access as underlying struct.
  26863. |
  26864. *Overload 2:*
  26865. Access as underlying struct.
  26866. """
  26867. return _mupdf.FzStoryElementPosition_internal(self, *args)
  26868. __swig_destroy__ = _mupdf.delete_FzStoryElementPosition
  26869. depth = property(_mupdf.FzStoryElementPosition_depth_get, _mupdf.FzStoryElementPosition_depth_set)
  26870. heading = property(_mupdf.FzStoryElementPosition_heading_get, _mupdf.FzStoryElementPosition_heading_set)
  26871. id = property(_mupdf.FzStoryElementPosition_id_get, _mupdf.FzStoryElementPosition_id_set)
  26872. href = property(_mupdf.FzStoryElementPosition_href_get, _mupdf.FzStoryElementPosition_href_set)
  26873. rect = property(_mupdf.FzStoryElementPosition_rect_get, _mupdf.FzStoryElementPosition_rect_set)
  26874. text = property(_mupdf.FzStoryElementPosition_text_get, _mupdf.FzStoryElementPosition_text_set)
  26875. open_close = property(_mupdf.FzStoryElementPosition_open_close_get, _mupdf.FzStoryElementPosition_open_close_set)
  26876. rectangle_num = property(_mupdf.FzStoryElementPosition_rectangle_num_get, _mupdf.FzStoryElementPosition_rectangle_num_set)
  26877. s_num_instances = property(_mupdf.FzStoryElementPosition_s_num_instances_get, _mupdf.FzStoryElementPosition_s_num_instances_set)
  26878. def to_string(self):
  26879. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  26880. return _mupdf.FzStoryElementPosition_to_string(self)
  26881. def __eq__(self, rhs):
  26882. r"""Comparison method."""
  26883. return _mupdf.FzStoryElementPosition___eq__(self, rhs)
  26884. def __ne__(self, rhs):
  26885. r"""Comparison method."""
  26886. return _mupdf.FzStoryElementPosition___ne__(self, rhs)
  26887. # Register FzStoryElementPosition in _mupdf:
  26888. _mupdf.FzStoryElementPosition_swigregister(FzStoryElementPosition)
  26889. class FzStream(object):
  26890. r"""
  26891. Wrapper class for struct `fz_stream`.
  26892. fz_stream is a buffered reader capable of seeking in both
  26893. directions.
  26894. Streams are reference counted, so references must be dropped
  26895. by a call to fz_drop_stream.
  26896. Only the data between rp and wp is valid.
  26897. """
  26898. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26899. __repr__ = _swig_repr
  26900. @staticmethod
  26901. def fz_open_file_autodelete(filename):
  26902. r"""
  26903. Class-aware wrapper for `::fz_open_file_autodelete()`.
  26904. Do the same as fz_open_file, but delete the file upon close.
  26905. """
  26906. return _mupdf.FzStream_fz_open_file_autodelete(filename)
  26907. def fz_available(self, max):
  26908. r"""
  26909. Class-aware wrapper for `::fz_available()`.
  26910. Ask how many bytes are available immediately from
  26911. a given stream.
  26912. stm: The stream to read from.
  26913. max: A hint for the underlying stream; the maximum number of
  26914. bytes that we are sure we will want to read. If you do not know
  26915. this number, give 1.
  26916. Returns the number of bytes immediately available between the
  26917. read and write pointers. This number is guaranteed only to be 0
  26918. if we have hit EOF. The number of bytes returned here need have
  26919. no relation to max (could be larger, could be smaller).
  26920. """
  26921. return _mupdf.FzStream_fz_available(self, max)
  26922. def fz_decomp_image_from_stream(self, image, subarea, indexed, l2factor, l2extra):
  26923. r"""
  26924. Class-aware wrapper for `::fz_decomp_image_from_stream()`.
  26925. This method has out-params. Python/C# wrappers look like:
  26926. `fz_decomp_image_from_stream(::fz_compressed_image *image, ::fz_irect *subarea, int indexed, int l2factor)` => `(fz_pixmap *, int l2extra)`
  26927. Decode a subarea of a compressed image. l2factor is the amount
  26928. of subsampling inbuilt to the stream (i.e. performed by the
  26929. decoder). If non NULL, l2extra is the extra amount of
  26930. subsampling that should be performed by this routine. This will
  26931. be updated on exit to the amount of subsampling that is still
  26932. required to be done.
  26933. Returns a kept reference.
  26934. """
  26935. return _mupdf.FzStream_fz_decomp_image_from_stream(self, image, subarea, indexed, l2factor, l2extra)
  26936. def fz_is_cfb_archive(self):
  26937. r"""
  26938. Class-aware wrapper for `::fz_is_cfb_archive()`.
  26939. Detect if stream object is a cfb archive.
  26940. Assumes that the stream object is seekable.
  26941. """
  26942. return _mupdf.FzStream_fz_is_cfb_archive(self)
  26943. def fz_is_eof(self):
  26944. r"""
  26945. Class-aware wrapper for `::fz_is_eof()`.
  26946. Query if the stream has reached EOF (during normal bytewise
  26947. reading).
  26948. See fz_is_eof_bits for the equivalent function for bitwise
  26949. reading.
  26950. """
  26951. return _mupdf.FzStream_fz_is_eof(self)
  26952. def fz_is_eof_bits(self):
  26953. r"""
  26954. Class-aware wrapper for `::fz_is_eof_bits()`.
  26955. Query if the stream has reached EOF (during bitwise
  26956. reading).
  26957. See fz_is_eof for the equivalent function for bytewise
  26958. reading.
  26959. """
  26960. return _mupdf.FzStream_fz_is_eof_bits(self)
  26961. def fz_is_libarchive_archive(self):
  26962. r"""
  26963. Class-aware wrapper for `::fz_is_libarchive_archive()`.
  26964. Detect if stream object is an archive supported by libarchive.
  26965. Assumes that the stream object is seekable.
  26966. """
  26967. return _mupdf.FzStream_fz_is_libarchive_archive(self)
  26968. def fz_is_tar_archive(self):
  26969. r"""
  26970. Class-aware wrapper for `::fz_is_tar_archive()`.
  26971. Detect if stream object is a tar archive.
  26972. Assumes that the stream object is seekable.
  26973. """
  26974. return _mupdf.FzStream_fz_is_tar_archive(self)
  26975. def fz_is_zip_archive(self):
  26976. r"""
  26977. Class-aware wrapper for `::fz_is_zip_archive()`.
  26978. Detect if stream object is a zip archive.
  26979. Assumes that the stream object is seekable.
  26980. """
  26981. return _mupdf.FzStream_fz_is_zip_archive(self)
  26982. def fz_new_archive_of_size(self, size):
  26983. r"""Class-aware wrapper for `::fz_new_archive_of_size()`."""
  26984. return _mupdf.FzStream_fz_new_archive_of_size(self, size)
  26985. def fz_open_a85d(self):
  26986. r"""
  26987. Class-aware wrapper for `::fz_open_a85d()`.
  26988. a85d filter performs ASCII 85 Decoding of data read
  26989. from the chained filter.
  26990. """
  26991. return _mupdf.FzStream_fz_open_a85d(self)
  26992. def fz_open_aesd(self, key, keylen):
  26993. r"""
  26994. Class-aware wrapper for `::fz_open_aesd()`.
  26995. aesd filter performs AES decoding of data read from the chained
  26996. filter using the supplied key.
  26997. """
  26998. return _mupdf.FzStream_fz_open_aesd(self, key, keylen)
  26999. def fz_open_ahxd(self):
  27000. r"""
  27001. Class-aware wrapper for `::fz_open_ahxd()`.
  27002. ahxd filter performs ASCII Hex decoding of data read
  27003. from the chained filter.
  27004. """
  27005. return _mupdf.FzStream_fz_open_ahxd(self)
  27006. def fz_open_arc4(self, key, keylen):
  27007. r"""
  27008. Class-aware wrapper for `::fz_open_arc4()`.
  27009. arc4 filter performs RC4 decoding of data read from the chained
  27010. filter using the supplied key.
  27011. """
  27012. return _mupdf.FzStream_fz_open_arc4(self, key, keylen)
  27013. def fz_open_archive_with_stream(self):
  27014. r"""
  27015. Class-aware wrapper for `::fz_open_archive_with_stream()`.
  27016. Open zip or tar archive stream.
  27017. Open an archive using a seekable stream object rather than
  27018. opening a file or directory on disk.
  27019. """
  27020. return _mupdf.FzStream_fz_open_archive_with_stream(self)
  27021. def fz_open_brotlid(self):
  27022. r"""
  27023. Class-aware wrapper for `::fz_open_brotlid()`.
  27024. brotlid filter performs Brotli decoding of data read
  27025. from the chained filter.
  27026. """
  27027. return _mupdf.FzStream_fz_open_brotlid(self)
  27028. def fz_open_cfb_archive_with_stream(self):
  27029. r"""
  27030. Class-aware wrapper for `::fz_open_cfb_archive_with_stream()`.
  27031. Open a cfb file as an archive.
  27032. Open an archive using a seekable stream object rather than
  27033. opening a file or directory on disk.
  27034. An exception is thrown if the file is not recognised as a chm.
  27035. """
  27036. return _mupdf.FzStream_fz_open_cfb_archive_with_stream(self)
  27037. def fz_open_dctd(self, color_transform, invert_cmyk, l2factor, jpegtables):
  27038. r"""
  27039. Class-aware wrapper for `::fz_open_dctd()`.
  27040. dctd filter performs DCT (JPEG) decoding of data read
  27041. from the chained filter.
  27042. color_transform implements the PDF color_transform option
  27043. use -1 for default behavior
  27044. use 0 to disable YUV-RGB / YCCK-CMYK transforms
  27045. use 1 to enable YUV-RGB / YCCK-CMYK transforms
  27046. invert_cmyk implements the necessary inversion for Photoshop CMYK images
  27047. use 0 if embedded in PDF
  27048. use 1 if not embedded in PDF
  27049. For subsampling on decode, set l2factor to the log2 of the
  27050. reduction required (therefore 0 = full size decode).
  27051. jpegtables is an optional stream from which the JPEG tables
  27052. can be read. Use NULL if not required.
  27053. """
  27054. return _mupdf.FzStream_fz_open_dctd(self, color_transform, invert_cmyk, l2factor, jpegtables)
  27055. def fz_open_endstream_filter(self, len, offset):
  27056. r"""
  27057. Class-aware wrapper for `::fz_open_endstream_filter()`.
  27058. The endstream filter reads a PDF substream, and starts to look
  27059. for an 'endstream' token after the specified length.
  27060. """
  27061. return _mupdf.FzStream_fz_open_endstream_filter(self, len, offset)
  27062. def fz_open_faxd(self, k, end_of_line, encoded_byte_align, columns, rows, end_of_block, black_is_1):
  27063. r"""
  27064. Class-aware wrapper for `::fz_open_faxd()`.
  27065. faxd filter performs FAX decoding of data read from
  27066. the chained filter.
  27067. k: see fax specification (fax default is 0).
  27068. end_of_line: whether we expect end of line markers (fax default
  27069. is 0).
  27070. encoded_byte_align: whether we align to bytes after each line
  27071. (fax default is 0).
  27072. columns: how many columns in the image (fax default is 1728).
  27073. rows: 0 for unspecified or the number of rows of data to expect.
  27074. end_of_block: whether we expect end of block markers (fax
  27075. default is 1).
  27076. black_is_1: determines the polarity of the image (fax default is
  27077. 0).
  27078. """
  27079. return _mupdf.FzStream_fz_open_faxd(self, k, end_of_line, encoded_byte_align, columns, rows, end_of_block, black_is_1)
  27080. def fz_open_flated(self, window_bits):
  27081. r"""
  27082. Class-aware wrapper for `::fz_open_flated()`.
  27083. flated filter performs LZ77 decoding (inflating) of data read
  27084. from the chained filter.
  27085. window_bits: How large a decompression window to use. Typically
  27086. 15. A negative number, -n, means to use n bits, but to expect
  27087. raw data with no header.
  27088. """
  27089. return _mupdf.FzStream_fz_open_flated(self, window_bits)
  27090. def fz_open_image_decomp_stream(self, arg_1, l2factor):
  27091. r"""
  27092. Class-aware wrapper for `::fz_open_image_decomp_stream()`.
  27093. This method has out-params. Python/C# wrappers look like:
  27094. `fz_open_image_decomp_stream(::fz_compression_params *arg_1)` => `(fz_stream *, int l2factor)`
  27095. Open a stream to read the decompressed version of another stream
  27096. with optional log2 subsampling.
  27097. """
  27098. return _mupdf.FzStream_fz_open_image_decomp_stream(self, arg_1, l2factor)
  27099. def fz_open_jbig2d(self, globals, embedded):
  27100. r"""
  27101. Class-aware wrapper for `::fz_open_jbig2d()`.
  27102. Open a filter that performs jbig2 decompression on the chained
  27103. stream, using the optional globals record.
  27104. """
  27105. return _mupdf.FzStream_fz_open_jbig2d(self, globals, embedded)
  27106. def fz_open_leecher(self, buf):
  27107. r"""
  27108. Class-aware wrapper for `::fz_open_leecher()`.
  27109. Attach a filter to a stream that will store any
  27110. characters read from the stream into the supplied buffer.
  27111. chain: The underlying stream to leech from.
  27112. buf: The buffer into which the read data should be appended.
  27113. The buffer will be resized as required.
  27114. Returns pointer to newly created stream. May throw exceptions on
  27115. failure to allocate.
  27116. """
  27117. return _mupdf.FzStream_fz_open_leecher(self, buf)
  27118. def fz_open_libarchive_archive_with_stream(self):
  27119. r"""
  27120. Class-aware wrapper for `::fz_open_libarchive_archive_with_stream()`.
  27121. Open an archive using libarchive.
  27122. Open an archive using a seekable stream object rather than
  27123. opening a file or directory on disk.
  27124. An exception is thrown if the stream is not supported by libarchive.
  27125. """
  27126. return _mupdf.FzStream_fz_open_libarchive_archive_with_stream(self)
  27127. def fz_open_libarchived(self):
  27128. r"""
  27129. Class-aware wrapper for `::fz_open_libarchived()`.
  27130. libarchived filter performs generic compressed decoding of data
  27131. in any format understood by libarchive from the chained filter.
  27132. This will throw an exception if libarchive is not built in, or
  27133. if the compression format is not recognised.
  27134. """
  27135. return _mupdf.FzStream_fz_open_libarchived(self)
  27136. def fz_open_lzwd(self, early_change, min_bits, reverse_bits, old_tiff):
  27137. r"""
  27138. Class-aware wrapper for `::fz_open_lzwd()`.
  27139. lzwd filter performs LZW decoding of data read from the chained
  27140. filter.
  27141. early_change: (Default 1) specifies whether to change codes 1
  27142. bit early.
  27143. min_bits: (Default 9) specifies the minimum number of bits to
  27144. use.
  27145. reverse_bits: (Default 0) allows for compatibility with gif and
  27146. old style tiffs (1).
  27147. old_tiff: (Default 0) allows for different handling of the clear
  27148. code, as found in old style tiffs.
  27149. """
  27150. return _mupdf.FzStream_fz_open_lzwd(self, early_change, min_bits, reverse_bits, old_tiff)
  27151. def fz_open_null_filter(self, len, offset):
  27152. r"""
  27153. Class-aware wrapper for `::fz_open_null_filter()`.
  27154. The null filter reads a specified amount of data from the
  27155. substream.
  27156. """
  27157. return _mupdf.FzStream_fz_open_null_filter(self, len, offset)
  27158. def fz_open_predict(self, predictor, columns, colors, bpc):
  27159. r"""
  27160. Class-aware wrapper for `::fz_open_predict()`.
  27161. predict filter performs pixel prediction on data read from
  27162. the chained filter.
  27163. predictor: 1 = copy, 2 = tiff, other = inline PNG predictor
  27164. columns: width of image in pixels
  27165. colors: number of components.
  27166. bpc: bits per component (typically 8)
  27167. """
  27168. return _mupdf.FzStream_fz_open_predict(self, predictor, columns, colors, bpc)
  27169. def fz_open_range_filter(self, ranges, nranges):
  27170. r"""
  27171. Class-aware wrapper for `::fz_open_range_filter()`.
  27172. The range filter copies data from specified ranges of the
  27173. chained stream.
  27174. """
  27175. return _mupdf.FzStream_fz_open_range_filter(self, ranges, nranges)
  27176. def fz_open_rld(self):
  27177. r"""
  27178. Class-aware wrapper for `::fz_open_rld()`.
  27179. rld filter performs Run Length Decoding of data read
  27180. from the chained filter.
  27181. """
  27182. return _mupdf.FzStream_fz_open_rld(self)
  27183. def fz_open_sgilog16(self, w):
  27184. r"""
  27185. Class-aware wrapper for `::fz_open_sgilog16()`.
  27186. SGI Log 16bit (greyscale) decode from the chained filter.
  27187. Decodes lines of w pixels to 8bpp greyscale.
  27188. """
  27189. return _mupdf.FzStream_fz_open_sgilog16(self, w)
  27190. def fz_open_sgilog24(self, w):
  27191. r"""
  27192. Class-aware wrapper for `::fz_open_sgilog24()`.
  27193. SGI Log 24bit (LUV) decode from the chained filter.
  27194. Decodes lines of w pixels to 8bpc rgb.
  27195. """
  27196. return _mupdf.FzStream_fz_open_sgilog24(self, w)
  27197. def fz_open_sgilog32(self, w):
  27198. r"""
  27199. Class-aware wrapper for `::fz_open_sgilog32()`.
  27200. SGI Log 32bit (LUV) decode from the chained filter.
  27201. Decodes lines of w pixels to 8bpc rgb.
  27202. """
  27203. return _mupdf.FzStream_fz_open_sgilog32(self, w)
  27204. def fz_open_tar_archive_with_stream(self):
  27205. r"""
  27206. Class-aware wrapper for `::fz_open_tar_archive_with_stream()`.
  27207. Open a tar archive stream.
  27208. Open an archive using a seekable stream object rather than
  27209. opening a file or directory on disk.
  27210. An exception is thrown if the stream is not a tar archive as
  27211. indicated by the presence of a tar signature.
  27212. """
  27213. return _mupdf.FzStream_fz_open_tar_archive_with_stream(self)
  27214. def fz_open_thunder(self, w):
  27215. r"""
  27216. Class-aware wrapper for `::fz_open_thunder()`.
  27217. 4bit greyscale Thunderscan decoding from the chained filter.
  27218. Decodes lines of w pixels to 8bpp greyscale.
  27219. """
  27220. return _mupdf.FzStream_fz_open_thunder(self, w)
  27221. def fz_open_zip_archive_with_stream(self):
  27222. r"""
  27223. Class-aware wrapper for `::fz_open_zip_archive_with_stream()`.
  27224. Open a zip archive stream.
  27225. Open an archive using a seekable stream object rather than
  27226. opening a file or directory on disk.
  27227. An exception is thrown if the stream is not a zip archive as
  27228. indicated by the presence of a zip signature.
  27229. """
  27230. return _mupdf.FzStream_fz_open_zip_archive_with_stream(self)
  27231. def fz_parse_xml_stream(self, preserve_white):
  27232. r"""
  27233. Class-aware wrapper for `::fz_parse_xml_stream()`.
  27234. Parse the contents of buffer into a tree of xml nodes.
  27235. preserve_white: whether to keep or delete all-whitespace nodes.
  27236. """
  27237. return _mupdf.FzStream_fz_parse_xml_stream(self, preserve_white)
  27238. def fz_peek_byte(self):
  27239. r"""
  27240. Class-aware wrapper for `::fz_peek_byte()`.
  27241. Peek at the next byte in a stream.
  27242. stm: The stream to peek at.
  27243. Returns -1 for EOF, or the next byte that will be read.
  27244. """
  27245. return _mupdf.FzStream_fz_peek_byte(self)
  27246. def fz_read(self, data, len):
  27247. r"""
  27248. Class-aware wrapper for `::fz_read()`.
  27249. Read from a stream into a given data block.
  27250. stm: The stream to read from.
  27251. data: The data block to read into.
  27252. len: The length of the data block (in bytes).
  27253. Returns the number of bytes read. May throw exceptions.
  27254. """
  27255. return _mupdf.FzStream_fz_read(self, data, len)
  27256. def fz_read_all(self, initial):
  27257. r"""
  27258. Class-aware wrapper for `::fz_read_all()`.
  27259. Read all of a stream into a buffer.
  27260. stm: The stream to read from
  27261. initial: Suggested initial size for the buffer.
  27262. Returns a buffer created from reading from the stream. May throw
  27263. exceptions on failure to allocate.
  27264. """
  27265. return _mupdf.FzStream_fz_read_all(self, initial)
  27266. def fz_read_best(self, initial, truncated, worst_case):
  27267. r"""
  27268. Class-aware wrapper for `::fz_read_best()`.
  27269. This method has out-params. Python/C# wrappers look like:
  27270. `fz_read_best(size_t initial, size_t worst_case)` => `(fz_buffer *, int truncated)`
  27271. Attempt to read a stream into a buffer. If truncated
  27272. is NULL behaves as fz_read_all, sets a truncated flag in case of
  27273. error.
  27274. stm: The stream to read from.
  27275. initial: Suggested initial size for the buffer.
  27276. truncated: Flag to store success/failure indication in.
  27277. worst_case: 0 for unknown, otherwise an upper bound for the
  27278. size of the stream.
  27279. Returns a buffer created from reading from the stream.
  27280. """
  27281. return _mupdf.FzStream_fz_read_best(self, initial, truncated, worst_case)
  27282. def fz_read_bits(self, n):
  27283. r"""
  27284. Class-aware wrapper for `::fz_read_bits()`.
  27285. Read the next n bits from a stream (assumed to
  27286. be packed most significant bit first).
  27287. stm: The stream to read from.
  27288. n: The number of bits to read, between 1 and 8*sizeof(int)
  27289. inclusive.
  27290. Returns -1 for EOF, or the required number of bits.
  27291. """
  27292. return _mupdf.FzStream_fz_read_bits(self, n)
  27293. def fz_read_byte(self):
  27294. r"""
  27295. Class-aware wrapper for `::fz_read_byte()`.
  27296. Read the next byte from a stream.
  27297. stm: The stream t read from.
  27298. Returns -1 for end of stream, or the next byte. May
  27299. throw exceptions.
  27300. """
  27301. return _mupdf.FzStream_fz_read_byte(self)
  27302. def fz_read_float(self):
  27303. r"""Class-aware wrapper for `::fz_read_float()`."""
  27304. return _mupdf.FzStream_fz_read_float(self)
  27305. def fz_read_float_le(self):
  27306. r"""Class-aware wrapper for `::fz_read_float_le()`."""
  27307. return _mupdf.FzStream_fz_read_float_le(self)
  27308. def fz_read_int16(self):
  27309. r"""Class-aware wrapper for `::fz_read_int16()`."""
  27310. return _mupdf.FzStream_fz_read_int16(self)
  27311. def fz_read_int16_le(self):
  27312. r"""Class-aware wrapper for `::fz_read_int16_le()`."""
  27313. return _mupdf.FzStream_fz_read_int16_le(self)
  27314. def fz_read_int32(self):
  27315. r"""Class-aware wrapper for `::fz_read_int32()`."""
  27316. return _mupdf.FzStream_fz_read_int32(self)
  27317. def fz_read_int32_le(self):
  27318. r"""Class-aware wrapper for `::fz_read_int32_le()`."""
  27319. return _mupdf.FzStream_fz_read_int32_le(self)
  27320. def fz_read_int64(self):
  27321. r"""Class-aware wrapper for `::fz_read_int64()`."""
  27322. return _mupdf.FzStream_fz_read_int64(self)
  27323. def fz_read_int64_le(self):
  27324. r"""Class-aware wrapper for `::fz_read_int64_le()`."""
  27325. return _mupdf.FzStream_fz_read_int64_le(self)
  27326. def fz_read_line(self, buf, max):
  27327. r"""
  27328. Class-aware wrapper for `::fz_read_line()`.
  27329. Read a line from stream into the buffer until either a
  27330. terminating newline or EOF, which it replaces with a null byte
  27331. ('').
  27332. Returns buf on success, and NULL when end of file occurs while
  27333. no characters have been read.
  27334. """
  27335. return _mupdf.FzStream_fz_read_line(self, buf, max)
  27336. def fz_read_rbits(self, n):
  27337. r"""
  27338. Class-aware wrapper for `::fz_read_rbits()`.
  27339. Read the next n bits from a stream (assumed to
  27340. be packed least significant bit first).
  27341. stm: The stream to read from.
  27342. n: The number of bits to read, between 1 and 8*sizeof(int)
  27343. inclusive.
  27344. Returns (unsigned int)-1 for EOF, or the required number of bits.
  27345. """
  27346. return _mupdf.FzStream_fz_read_rbits(self, n)
  27347. def fz_read_rune(self):
  27348. r"""
  27349. Class-aware wrapper for `::fz_read_rune()`.
  27350. Read a utf-8 rune from a stream.
  27351. In the event of encountering badly formatted utf-8 codes
  27352. (such as a leading code with an unexpected number of following
  27353. codes) no error/exception is given, but undefined values may be
  27354. returned.
  27355. """
  27356. return _mupdf.FzStream_fz_read_rune(self)
  27357. def fz_read_string(self, buffer, len):
  27358. r"""
  27359. Class-aware wrapper for `::fz_read_string()`.
  27360. Read a null terminated string from the stream into
  27361. a buffer of a given length. The buffer will be null terminated.
  27362. Throws on failure (including the failure to fit the entire
  27363. string including the terminator into the buffer).
  27364. """
  27365. return _mupdf.FzStream_fz_read_string(self, buffer, len)
  27366. def fz_read_uint16(self):
  27367. r"""
  27368. Class-aware wrapper for `::fz_read_uint16()`.
  27369. fz_read_[u]int(16|24|32|64)(_le)?
  27370. Read a 16/32/64 bit signed/unsigned integer from stream,
  27371. in big or little-endian byte orders.
  27372. Throws an exception if EOF is encountered.
  27373. """
  27374. return _mupdf.FzStream_fz_read_uint16(self)
  27375. def fz_read_uint16_le(self):
  27376. r"""Class-aware wrapper for `::fz_read_uint16_le()`."""
  27377. return _mupdf.FzStream_fz_read_uint16_le(self)
  27378. def fz_read_uint24(self):
  27379. r"""Class-aware wrapper for `::fz_read_uint24()`."""
  27380. return _mupdf.FzStream_fz_read_uint24(self)
  27381. def fz_read_uint24_le(self):
  27382. r"""Class-aware wrapper for `::fz_read_uint24_le()`."""
  27383. return _mupdf.FzStream_fz_read_uint24_le(self)
  27384. def fz_read_uint32(self):
  27385. r"""Class-aware wrapper for `::fz_read_uint32()`."""
  27386. return _mupdf.FzStream_fz_read_uint32(self)
  27387. def fz_read_uint32_le(self):
  27388. r"""Class-aware wrapper for `::fz_read_uint32_le()`."""
  27389. return _mupdf.FzStream_fz_read_uint32_le(self)
  27390. def fz_read_uint64(self):
  27391. r"""Class-aware wrapper for `::fz_read_uint64()`."""
  27392. return _mupdf.FzStream_fz_read_uint64(self)
  27393. def fz_read_uint64_le(self):
  27394. r"""Class-aware wrapper for `::fz_read_uint64_le()`."""
  27395. return _mupdf.FzStream_fz_read_uint64_le(self)
  27396. def fz_read_utf16_be(self):
  27397. r"""Class-aware wrapper for `::fz_read_utf16_be()`."""
  27398. return _mupdf.FzStream_fz_read_utf16_be(self)
  27399. def fz_read_utf16_le(self):
  27400. r"""
  27401. Class-aware wrapper for `::fz_read_utf16_le()`.
  27402. Read a utf-16 rune from a stream. (little endian and
  27403. big endian respectively).
  27404. In the event of encountering badly formatted utf-16 codes
  27405. (mismatched surrogates) no error/exception is given, but
  27406. undefined values may be returned.
  27407. """
  27408. return _mupdf.FzStream_fz_read_utf16_le(self)
  27409. def fz_seek(self, offset, whence):
  27410. r"""
  27411. Class-aware wrapper for `::fz_seek()`.
  27412. Seek within a stream.
  27413. stm: The stream to seek within.
  27414. offset: The offset to seek to.
  27415. whence: From where the offset is measured (see fseek).
  27416. SEEK_SET - start of stream.
  27417. SEEK_CUR - current position.
  27418. SEEK_END - end of stream.
  27419. """
  27420. return _mupdf.FzStream_fz_seek(self, offset, whence)
  27421. def fz_skip(self, len):
  27422. r"""
  27423. Class-aware wrapper for `::fz_skip()`.
  27424. Read from a stream discarding data.
  27425. stm: The stream to read from.
  27426. len: The number of bytes to read.
  27427. Returns the number of bytes read. May throw exceptions.
  27428. """
  27429. return _mupdf.FzStream_fz_skip(self, len)
  27430. def fz_skip_space(self):
  27431. r"""
  27432. Class-aware wrapper for `::fz_skip_space()`.
  27433. Skip over whitespace (bytes <= 32) in a stream.
  27434. """
  27435. return _mupdf.FzStream_fz_skip_space(self)
  27436. def fz_skip_string(self, str):
  27437. r"""
  27438. Class-aware wrapper for `::fz_skip_string()`.
  27439. Skip over a given string in a stream. Return 0 if successfully
  27440. skipped, non-zero otherwise. As many characters will be skipped
  27441. over as matched in the string.
  27442. """
  27443. return _mupdf.FzStream_fz_skip_string(self, str)
  27444. def fz_stream_filename(self):
  27445. r"""
  27446. Class-aware wrapper for `::fz_stream_filename()`.
  27447. Return the filename (UTF-8 encoded) from which a stream was opened.
  27448. Returns NULL if the filename is not available (or the stream was
  27449. opened from a source other than a file).
  27450. """
  27451. return _mupdf.FzStream_fz_stream_filename(self)
  27452. def fz_sync_bits(self):
  27453. r"""
  27454. Class-aware wrapper for `::fz_sync_bits()`.
  27455. Called after reading bits to tell the stream
  27456. that we are about to return to reading bytewise. Resyncs
  27457. the stream to whole byte boundaries.
  27458. """
  27459. return _mupdf.FzStream_fz_sync_bits(self)
  27460. def fz_tell(self):
  27461. r"""
  27462. Class-aware wrapper for `::fz_tell()`.
  27463. return the current reading position within a stream
  27464. """
  27465. return _mupdf.FzStream_fz_tell(self)
  27466. def fz_try_open_archive_with_stream(self):
  27467. r"""
  27468. Class-aware wrapper for `::fz_try_open_archive_with_stream()`.
  27469. Open zip or tar archive stream.
  27470. Does the same as fz_open_archive_with_stream, but will not throw
  27471. an error in the event of failing to recognise the format. Will
  27472. still throw errors in other cases though!
  27473. """
  27474. return _mupdf.FzStream_fz_try_open_archive_with_stream(self)
  27475. def fz_unpack_stream(self, depth, w, h, n, indexed, pad, skip):
  27476. r"""Class-aware wrapper for `::fz_unpack_stream()`."""
  27477. return _mupdf.FzStream_fz_unpack_stream(self, depth, w, h, n, indexed, pad, skip)
  27478. def fz_unread_byte(self):
  27479. r"""
  27480. Class-aware wrapper for `::fz_unread_byte()`.
  27481. Unread the single last byte successfully
  27482. read from a stream. Do not call this without having
  27483. successfully read a byte.
  27484. stm: The stream to operate upon.
  27485. """
  27486. return _mupdf.FzStream_fz_unread_byte(self)
  27487. def pdf_load_cmap(self):
  27488. r"""Class-aware wrapper for `::pdf_load_cmap()`."""
  27489. return _mupdf.FzStream_pdf_load_cmap(self)
  27490. def pdf_open_crypt(self, crypt, num, gen):
  27491. r"""Class-aware wrapper for `::pdf_open_crypt()`."""
  27492. return _mupdf.FzStream_pdf_open_crypt(self, crypt, num, gen)
  27493. def pdf_open_crypt_with_filter(self, crypt, name, num, gen):
  27494. r"""Class-aware wrapper for `::pdf_open_crypt_with_filter()`."""
  27495. return _mupdf.FzStream_pdf_open_crypt_with_filter(self, crypt, name, num, gen)
  27496. def pdf_open_document_with_stream(self):
  27497. r"""Class-aware wrapper for `::pdf_open_document_with_stream()`."""
  27498. return _mupdf.FzStream_pdf_open_document_with_stream(self)
  27499. def __init__(self, *args):
  27500. r"""
  27501. *Overload 1:*
  27502. == Constructors. Constructor using `fz_new_stream()`.
  27503. Create a new stream object with the given
  27504. internal state and function pointers.
  27505. state: Internal state (opaque to everything but implementation).
  27506. next: Should provide the next set of bytes (up to max) of stream
  27507. data. Return the number of bytes read, or EOF when there is no
  27508. more data.
  27509. drop: Should clean up and free the internal state. May not
  27510. throw exceptions.
  27511. |
  27512. *Overload 2:*
  27513. Constructor using `fz_open_file()`.
  27514. Open the named file and wrap it in a stream.
  27515. filename: Path to a file. On non-Windows machines the filename
  27516. should be exactly as it would be passed to fopen(2). On Windows
  27517. machines, the path should be UTF-8 encoded so that non-ASCII
  27518. characters can be represented. Other platforms do the encoding
  27519. as standard anyway (and in most cases, particularly for MacOS
  27520. and Linux, the encoding they use is UTF-8 anyway).
  27521. |
  27522. *Overload 3:*
  27523. Constructor using `fz_open_file_ptr_no_close()`.
  27524. Create a stream from a FILE * that will not be closed
  27525. when the stream is dropped.
  27526. |
  27527. *Overload 4:*
  27528. Constructor using `fz_open_memory()`.
  27529. Open a block of memory as a stream.
  27530. data: Pointer to start of data block. Ownership of the data
  27531. block is NOT passed in.
  27532. len: Number of bytes in data block.
  27533. Returns pointer to newly created stream. May throw exceptions on
  27534. failure to allocate.
  27535. |
  27536. *Overload 5:*
  27537. Construct using fz_open_file().
  27538. |
  27539. *Overload 6:*
  27540. Copy constructor using `fz_keep_stream()`.
  27541. |
  27542. *Overload 7:*
  27543. Default constructor, sets `m_internal` to null.
  27544. |
  27545. *Overload 8:*
  27546. Constructor using raw copy of pre-existing `::fz_stream`.
  27547. """
  27548. _mupdf.FzStream_swiginit(self, _mupdf.new_FzStream(*args))
  27549. __swig_destroy__ = _mupdf.delete_FzStream
  27550. def m_internal_value(self):
  27551. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27552. return _mupdf.FzStream_m_internal_value(self)
  27553. def __nonzero__(self):
  27554. return _mupdf.FzStream___nonzero__(self)
  27555. __bool__ = __nonzero__
  27556. m_internal = property(_mupdf.FzStream_m_internal_get, _mupdf.FzStream_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27557. s_num_instances = property(_mupdf.FzStream_s_num_instances_get, _mupdf.FzStream_s_num_instances_set)
  27558. # Register FzStream in _mupdf:
  27559. _mupdf.FzStream_swigregister(FzStream)
  27560. class FzString(object):
  27561. r"""Wrapper class for struct `fz_string`."""
  27562. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27563. __repr__ = _swig_repr
  27564. def __init__(self, *args):
  27565. r"""
  27566. *Overload 1:*
  27567. == Constructors. Constructor using `fz_new_string()`.
  27568. |
  27569. *Overload 2:*
  27570. Copy constructor using `fz_keep_string()`.
  27571. |
  27572. *Overload 3:*
  27573. Default constructor, sets `m_internal` to null.
  27574. |
  27575. *Overload 4:*
  27576. Constructor using raw copy of pre-existing `::fz_string`.
  27577. """
  27578. _mupdf.FzString_swiginit(self, _mupdf.new_FzString(*args))
  27579. __swig_destroy__ = _mupdf.delete_FzString
  27580. def m_internal_value(self):
  27581. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27582. return _mupdf.FzString_m_internal_value(self)
  27583. def __nonzero__(self):
  27584. return _mupdf.FzString___nonzero__(self)
  27585. __bool__ = __nonzero__
  27586. m_internal = property(_mupdf.FzString_m_internal_get, _mupdf.FzString_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27587. s_num_instances = property(_mupdf.FzString_s_num_instances_get, _mupdf.FzString_s_num_instances_set)
  27588. # Register FzString in _mupdf:
  27589. _mupdf.FzString_swigregister(FzString)
  27590. class FzStrokeState(object):
  27591. r"""Wrapper class for struct `fz_stroke_state`."""
  27592. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27593. __repr__ = _swig_repr
  27594. def fz_clone_stroke_state(self):
  27595. r"""
  27596. Class-aware wrapper for `::fz_clone_stroke_state()`.
  27597. Create an identical stroke_state structure and return a
  27598. reference to it.
  27599. stroke: The stroke state reference to clone.
  27600. Exceptions may be thrown in the event of a failure to
  27601. allocate.
  27602. """
  27603. return _mupdf.FzStrokeState_fz_clone_stroke_state(self)
  27604. def fz_stroke_state_eq(self, b):
  27605. r"""Class-aware wrapper for `::fz_stroke_state_eq()`."""
  27606. return _mupdf.FzStrokeState_fz_stroke_state_eq(self, b)
  27607. def fz_unshare_stroke_state(self):
  27608. r"""
  27609. Class-aware wrapper for `::fz_unshare_stroke_state()`.
  27610. Given a reference to a (possibly) shared stroke_state structure,
  27611. return a reference to an equivalent stroke_state structure
  27612. that is guaranteed to be unshared (i.e. one that can
  27613. safely be modified).
  27614. shared: The reference to a (possibly) shared structure
  27615. to unshare. Ownership of this reference is passed in
  27616. to this function, even in the case of exceptions being
  27617. thrown.
  27618. Exceptions may be thrown in the event of failure to
  27619. allocate if required.
  27620. """
  27621. return _mupdf.FzStrokeState_fz_unshare_stroke_state(self)
  27622. def fz_unshare_stroke_state_with_dash_len(self, len):
  27623. r"""
  27624. Class-aware wrapper for `::fz_unshare_stroke_state_with_dash_len()`.
  27625. Given a reference to a (possibly) shared stroke_state structure,
  27626. return a reference to a stroke_state structure (with room for a
  27627. given amount of dash data) that is guaranteed to be unshared
  27628. (i.e. one that can safely be modified).
  27629. shared: The reference to a (possibly) shared structure
  27630. to unshare. Ownership of this reference is passed in
  27631. to this function, even in the case of exceptions being
  27632. thrown.
  27633. Exceptions may be thrown in the event of failure to
  27634. allocate if required.
  27635. """
  27636. return _mupdf.FzStrokeState_fz_unshare_stroke_state_with_dash_len(self, len)
  27637. def __init__(self, *args):
  27638. r"""
  27639. *Overload 1:*
  27640. == Constructors. Constructor using `fz_new_stroke_state()`.
  27641. Create a new (empty) stroke state structure (with no dash
  27642. data) and return a reference to it.
  27643. Throws exception on failure to allocate.
  27644. |
  27645. *Overload 2:*
  27646. Constructor using `fz_new_stroke_state_with_dash_len()`.
  27647. Create a new (empty) stroke state structure, with room for
  27648. dash data of the given length, and return a reference to it.
  27649. len: The number of dash elements to allow room for.
  27650. Throws exception on failure to allocate.
  27651. |
  27652. *Overload 3:*
  27653. Copy constructor using `fz_keep_stroke_state()`.
  27654. |
  27655. *Overload 4:*
  27656. Constructor using raw copy of pre-existing `::fz_stroke_state`.
  27657. """
  27658. _mupdf.FzStrokeState_swiginit(self, _mupdf.new_FzStrokeState(*args))
  27659. __swig_destroy__ = _mupdf.delete_FzStrokeState
  27660. def m_internal_value(self):
  27661. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27662. return _mupdf.FzStrokeState_m_internal_value(self)
  27663. def __nonzero__(self):
  27664. return _mupdf.FzStrokeState___nonzero__(self)
  27665. __bool__ = __nonzero__
  27666. m_internal = property(_mupdf.FzStrokeState_m_internal_get, _mupdf.FzStrokeState_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27667. s_num_instances = property(_mupdf.FzStrokeState_s_num_instances_get, _mupdf.FzStrokeState_s_num_instances_set)
  27668. # Register FzStrokeState in _mupdf:
  27669. _mupdf.FzStrokeState_swigregister(FzStrokeState)
  27670. class FzStyleContext(object):
  27671. r"""Wrapper class for struct `fz_style_context`. Not copyable or assignable."""
  27672. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27673. __repr__ = _swig_repr
  27674. def __init__(self, *args):
  27675. r"""
  27676. *Overload 1:*
  27677. Default constructor, sets `m_internal` to null.
  27678. |
  27679. *Overload 2:*
  27680. Constructor using raw copy of pre-existing `::fz_style_context`.
  27681. """
  27682. _mupdf.FzStyleContext_swiginit(self, _mupdf.new_FzStyleContext(*args))
  27683. __swig_destroy__ = _mupdf.delete_FzStyleContext
  27684. def m_internal_value(self):
  27685. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27686. return _mupdf.FzStyleContext_m_internal_value(self)
  27687. def __nonzero__(self):
  27688. return _mupdf.FzStyleContext___nonzero__(self)
  27689. __bool__ = __nonzero__
  27690. m_internal = property(_mupdf.FzStyleContext_m_internal_get, _mupdf.FzStyleContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27691. s_num_instances = property(_mupdf.FzStyleContext_s_num_instances_get, _mupdf.FzStyleContext_s_num_instances_set)
  27692. # Register FzStyleContext in _mupdf:
  27693. _mupdf.FzStyleContext_swigregister(FzStyleContext)
  27694. class FzText(object):
  27695. r"""Wrapper class for struct `fz_text`."""
  27696. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27697. __repr__ = _swig_repr
  27698. def fz_bound_text(self, stroke, ctm):
  27699. r"""
  27700. Class-aware wrapper for `::fz_bound_text()`.
  27701. Find the bounds of a given text object.
  27702. text: The text object to find the bounds of.
  27703. stroke: Pointer to the stroke attributes (for stroked
  27704. text), or NULL (for filled text).
  27705. ctm: The matrix in use.
  27706. r: pointer to storage for the bounds.
  27707. Returns a pointer to r, which is updated to contain the
  27708. bounding box for the text object.
  27709. """
  27710. return _mupdf.FzText_fz_bound_text(self, stroke, ctm)
  27711. def fz_show_glyph(self, font, trm, glyph, unicode, wmode, bidi_level, markup_dir, language):
  27712. r"""
  27713. Class-aware wrapper for `::fz_show_glyph()`.
  27714. Add a glyph/unicode value to a text object.
  27715. text: Text object to add to.
  27716. font: The font the glyph should be added in.
  27717. trm: The transform to use for the glyph.
  27718. glyph: The glyph id to add.
  27719. unicode: The unicode character for the glyph.
  27720. cid: The CJK CID value or raw character code.
  27721. wmode: 1 for vertical mode, 0 for horizontal.
  27722. bidi_level: The bidirectional level for this glyph.
  27723. markup_dir: The direction of the text as specified in the
  27724. markup.
  27725. language: The language in use (if known, 0 otherwise)
  27726. (e.g. FZ_LANG_zh_Hans).
  27727. Throws exception on failure to allocate.
  27728. """
  27729. return _mupdf.FzText_fz_show_glyph(self, font, trm, glyph, unicode, wmode, bidi_level, markup_dir, language)
  27730. def fz_show_glyph_aux(self, font, trm, adv, glyph, unicode, cid, wmode, bidi_level, markup_dir, lang):
  27731. r"""Class-aware wrapper for `::fz_show_glyph_aux()`."""
  27732. return _mupdf.FzText_fz_show_glyph_aux(self, font, trm, adv, glyph, unicode, cid, wmode, bidi_level, markup_dir, lang)
  27733. def fz_show_string(self, font, trm, s, wmode, bidi_level, markup_dir, language):
  27734. r"""
  27735. Class-aware wrapper for `::fz_show_string()`.
  27736. Add a UTF8 string to a text object.
  27737. text: Text object to add to.
  27738. font: The font the string should be added in.
  27739. trm: The transform to use.
  27740. s: The utf-8 string to add.
  27741. wmode: 1 for vertical mode, 0 for horizontal.
  27742. bidi_level: The bidirectional level for this glyph.
  27743. markup_dir: The direction of the text as specified in the markup.
  27744. language: The language in use (if known, 0 otherwise)
  27745. (e.g. FZ_LANG_zh_Hans).
  27746. Returns the transform updated with the advance width of the
  27747. string.
  27748. """
  27749. return _mupdf.FzText_fz_show_string(self, font, trm, s, wmode, bidi_level, markup_dir, language)
  27750. def __init__(self, *args):
  27751. r"""
  27752. *Overload 1:*
  27753. == Constructors. Constructor using `fz_new_text()`.
  27754. Create a new empty fz_text object.
  27755. Throws exception on failure to allocate.
  27756. |
  27757. *Overload 2:*
  27758. Copy constructor using `fz_keep_text()`.
  27759. |
  27760. *Overload 3:*
  27761. Constructor using raw copy of pre-existing `::fz_text`.
  27762. """
  27763. _mupdf.FzText_swiginit(self, _mupdf.new_FzText(*args))
  27764. __swig_destroy__ = _mupdf.delete_FzText
  27765. def m_internal_value(self):
  27766. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27767. return _mupdf.FzText_m_internal_value(self)
  27768. def __nonzero__(self):
  27769. return _mupdf.FzText___nonzero__(self)
  27770. __bool__ = __nonzero__
  27771. m_internal = property(_mupdf.FzText_m_internal_get, _mupdf.FzText_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27772. s_num_instances = property(_mupdf.FzText_s_num_instances_get, _mupdf.FzText_s_num_instances_set)
  27773. # Register FzText in _mupdf:
  27774. _mupdf.FzText_swigregister(FzText)
  27775. class FzTextDecoder(object):
  27776. r"""
  27777. Wrapper class for struct `fz_text_decoder`. Not copyable or assignable.
  27778. A text decoder (to read arbitrary encodings and convert to unicode).
  27779. """
  27780. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27781. __repr__ = _swig_repr
  27782. def fz_init_text_decoder(self, encoding):
  27783. r"""Class-aware wrapper for `::fz_init_text_decoder()`."""
  27784. return _mupdf.FzTextDecoder_fz_init_text_decoder(self, encoding)
  27785. def __init__(self, *args):
  27786. r"""
  27787. *Overload 1:*
  27788. Default constructor, sets `m_internal` to null.
  27789. |
  27790. *Overload 2:*
  27791. Constructor using raw copy of pre-existing `::fz_text_decoder`.
  27792. """
  27793. _mupdf.FzTextDecoder_swiginit(self, _mupdf.new_FzTextDecoder(*args))
  27794. __swig_destroy__ = _mupdf.delete_FzTextDecoder
  27795. def m_internal_value(self):
  27796. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27797. return _mupdf.FzTextDecoder_m_internal_value(self)
  27798. def __nonzero__(self):
  27799. return _mupdf.FzTextDecoder___nonzero__(self)
  27800. __bool__ = __nonzero__
  27801. m_internal = property(_mupdf.FzTextDecoder_m_internal_get, _mupdf.FzTextDecoder_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27802. s_num_instances = property(_mupdf.FzTextDecoder_s_num_instances_get, _mupdf.FzTextDecoder_s_num_instances_set)
  27803. # Register FzTextDecoder in _mupdf:
  27804. _mupdf.FzTextDecoder_swigregister(FzTextDecoder)
  27805. class FzTextItem(object):
  27806. r"""
  27807. Wrapper class for struct `fz_text_item`. Not copyable or assignable.
  27808. Text buffer.
  27809. The trm field contains the a, b, c and d coefficients.
  27810. The e and f coefficients come from the individual elements,
  27811. together they form the transform matrix for the glyph.
  27812. Glyphs are referenced by glyph ID.
  27813. The Unicode text equivalent is kept in a separate array
  27814. with indexes into the glyph array.
  27815. """
  27816. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27817. __repr__ = _swig_repr
  27818. def __init__(self, *args):
  27819. r"""
  27820. *Overload 1:*
  27821. Default constructor, sets `m_internal` to null.
  27822. |
  27823. *Overload 2:*
  27824. Constructor using raw copy of pre-existing `::fz_text_item`.
  27825. """
  27826. _mupdf.FzTextItem_swiginit(self, _mupdf.new_FzTextItem(*args))
  27827. __swig_destroy__ = _mupdf.delete_FzTextItem
  27828. def m_internal_value(self):
  27829. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27830. return _mupdf.FzTextItem_m_internal_value(self)
  27831. def __nonzero__(self):
  27832. return _mupdf.FzTextItem___nonzero__(self)
  27833. __bool__ = __nonzero__
  27834. m_internal = property(_mupdf.FzTextItem_m_internal_get, _mupdf.FzTextItem_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27835. s_num_instances = property(_mupdf.FzTextItem_s_num_instances_get, _mupdf.FzTextItem_s_num_instances_set)
  27836. # Register FzTextItem in _mupdf:
  27837. _mupdf.FzTextItem_swigregister(FzTextItem)
  27838. class FzTextSpan(object):
  27839. r"""Wrapper class for struct `fz_text_span`. Not copyable or assignable."""
  27840. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27841. __repr__ = _swig_repr
  27842. def font(self):
  27843. r"""Gives class-aware access to m_internal->font."""
  27844. return _mupdf.FzTextSpan_font(self)
  27845. def trm(self):
  27846. r"""Gives class-aware access to m_internal->trm."""
  27847. return _mupdf.FzTextSpan_trm(self)
  27848. def items(self, i):
  27849. r"""
  27850. Gives access to m_internal->items[i].
  27851. Returned reference is only valid as long as `this`.
  27852. Provided mainly for use by SWIG bindings.
  27853. """
  27854. return _mupdf.FzTextSpan_items(self, i)
  27855. def __init__(self, *args):
  27856. r"""
  27857. *Overload 1:*
  27858. Default constructor, sets `m_internal` to null.
  27859. |
  27860. *Overload 2:*
  27861. Constructor using raw copy of pre-existing `::fz_text_span`.
  27862. """
  27863. _mupdf.FzTextSpan_swiginit(self, _mupdf.new_FzTextSpan(*args))
  27864. __swig_destroy__ = _mupdf.delete_FzTextSpan
  27865. def m_internal_value(self):
  27866. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27867. return _mupdf.FzTextSpan_m_internal_value(self)
  27868. def __nonzero__(self):
  27869. return _mupdf.FzTextSpan___nonzero__(self)
  27870. __bool__ = __nonzero__
  27871. m_internal = property(_mupdf.FzTextSpan_m_internal_get, _mupdf.FzTextSpan_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27872. s_num_instances = property(_mupdf.FzTextSpan_s_num_instances_get, _mupdf.FzTextSpan_s_num_instances_set)
  27873. # Register FzTextSpan in _mupdf:
  27874. _mupdf.FzTextSpan_swigregister(FzTextSpan)
  27875. class FzTransition(object):
  27876. r"""Wrapper class for struct `fz_transition`."""
  27877. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27878. __repr__ = _swig_repr
  27879. def __init__(self, *args):
  27880. r"""
  27881. *Overload 1:*
  27882. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  27883. |
  27884. *Overload 2:*
  27885. Constructor using raw copy of pre-existing `::fz_transition`.
  27886. |
  27887. *Overload 3:*
  27888. Constructor using raw copy of pre-existing `::fz_transition`.
  27889. """
  27890. _mupdf.FzTransition_swiginit(self, _mupdf.new_FzTransition(*args))
  27891. def internal(self, *args):
  27892. r"""
  27893. *Overload 1:*
  27894. Access as underlying struct.
  27895. |
  27896. *Overload 2:*
  27897. Access as underlying struct.
  27898. """
  27899. return _mupdf.FzTransition_internal(self, *args)
  27900. __swig_destroy__ = _mupdf.delete_FzTransition
  27901. type = property(_mupdf.FzTransition_type_get, _mupdf.FzTransition_type_set)
  27902. duration = property(_mupdf.FzTransition_duration_get, _mupdf.FzTransition_duration_set)
  27903. vertical = property(_mupdf.FzTransition_vertical_get, _mupdf.FzTransition_vertical_set)
  27904. outwards = property(_mupdf.FzTransition_outwards_get, _mupdf.FzTransition_outwards_set)
  27905. direction = property(_mupdf.FzTransition_direction_get, _mupdf.FzTransition_direction_set)
  27906. state0 = property(_mupdf.FzTransition_state0_get, _mupdf.FzTransition_state0_set)
  27907. state1 = property(_mupdf.FzTransition_state1_get, _mupdf.FzTransition_state1_set)
  27908. s_num_instances = property(_mupdf.FzTransition_s_num_instances_get, _mupdf.FzTransition_s_num_instances_set)
  27909. def to_string(self):
  27910. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  27911. return _mupdf.FzTransition_to_string(self)
  27912. def __eq__(self, rhs):
  27913. r"""Comparison method."""
  27914. return _mupdf.FzTransition___eq__(self, rhs)
  27915. def __ne__(self, rhs):
  27916. r"""Comparison method."""
  27917. return _mupdf.FzTransition___ne__(self, rhs)
  27918. # Register FzTransition in _mupdf:
  27919. _mupdf.FzTransition_swigregister(FzTransition)
  27920. class FzTree(object):
  27921. r"""
  27922. Wrapper class for struct `fz_tree`. Not copyable or assignable.
  27923. AA-tree to look up things by strings.
  27924. """
  27925. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27926. __repr__ = _swig_repr
  27927. def fz_new_tree_archive(self):
  27928. r"""
  27929. Class-aware wrapper for `::fz_new_tree_archive()`.
  27930. Create an archive that holds named buffers.
  27931. tree can either be a preformed tree with fz_buffers as values,
  27932. or it can be NULL for an empty tree.
  27933. """
  27934. return _mupdf.FzTree_fz_new_tree_archive(self)
  27935. def fz_tree_lookup(self, key):
  27936. r"""
  27937. Class-aware wrapper for `::fz_tree_lookup()`.
  27938. Look for the value of a node in the tree with the given key.
  27939. Simple pointer equivalence is used for key.
  27940. Returns NULL for no match.
  27941. """
  27942. return _mupdf.FzTree_fz_tree_lookup(self, key)
  27943. def __init__(self, *args):
  27944. r"""
  27945. *Overload 1:*
  27946. Default constructor, sets `m_internal` to null.
  27947. |
  27948. *Overload 2:*
  27949. Constructor using raw copy of pre-existing `::fz_tree`.
  27950. """
  27951. _mupdf.FzTree_swiginit(self, _mupdf.new_FzTree(*args))
  27952. __swig_destroy__ = _mupdf.delete_FzTree
  27953. def m_internal_value(self):
  27954. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27955. return _mupdf.FzTree_m_internal_value(self)
  27956. def __nonzero__(self):
  27957. return _mupdf.FzTree___nonzero__(self)
  27958. __bool__ = __nonzero__
  27959. m_internal = property(_mupdf.FzTree_m_internal_get, _mupdf.FzTree_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27960. s_num_instances = property(_mupdf.FzTree_s_num_instances_get, _mupdf.FzTree_s_num_instances_set)
  27961. # Register FzTree in _mupdf:
  27962. _mupdf.FzTree_swigregister(FzTree)
  27963. class FzTuningContext(object):
  27964. r"""Wrapper class for struct `fz_tuning_context`. Not copyable or assignable."""
  27965. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27966. __repr__ = _swig_repr
  27967. def __init__(self, *args):
  27968. r"""
  27969. *Overload 1:*
  27970. Default constructor, sets `m_internal` to null.
  27971. |
  27972. *Overload 2:*
  27973. Constructor using raw copy of pre-existing `::fz_tuning_context`.
  27974. """
  27975. _mupdf.FzTuningContext_swiginit(self, _mupdf.new_FzTuningContext(*args))
  27976. __swig_destroy__ = _mupdf.delete_FzTuningContext
  27977. def m_internal_value(self):
  27978. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27979. return _mupdf.FzTuningContext_m_internal_value(self)
  27980. def __nonzero__(self):
  27981. return _mupdf.FzTuningContext___nonzero__(self)
  27982. __bool__ = __nonzero__
  27983. m_internal = property(_mupdf.FzTuningContext_m_internal_get, _mupdf.FzTuningContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27984. s_num_instances = property(_mupdf.FzTuningContext_s_num_instances_get, _mupdf.FzTuningContext_s_num_instances_set)
  27985. # Register FzTuningContext in _mupdf:
  27986. _mupdf.FzTuningContext_swigregister(FzTuningContext)
  27987. class FzVertex(object):
  27988. r"""
  27989. Wrapper class for struct `fz_vertex`. Not copyable or assignable.
  27990. Handy routine for processing mesh based shades
  27991. """
  27992. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27993. __repr__ = _swig_repr
  27994. def __init__(self, *args):
  27995. r"""
  27996. *Overload 1:*
  27997. Default constructor, sets `m_internal` to null.
  27998. |
  27999. *Overload 2:*
  28000. Constructor using raw copy of pre-existing `::fz_vertex`.
  28001. """
  28002. _mupdf.FzVertex_swiginit(self, _mupdf.new_FzVertex(*args))
  28003. __swig_destroy__ = _mupdf.delete_FzVertex
  28004. def m_internal_value(self):
  28005. r"""Return numerical value of .m_internal; helps with Python debugging."""
  28006. return _mupdf.FzVertex_m_internal_value(self)
  28007. def __nonzero__(self):
  28008. return _mupdf.FzVertex___nonzero__(self)
  28009. __bool__ = __nonzero__
  28010. m_internal = property(_mupdf.FzVertex_m_internal_get, _mupdf.FzVertex_m_internal_set, doc=r"""Pointer to wrapped data.""")
  28011. s_num_instances = property(_mupdf.FzVertex_s_num_instances_get, _mupdf.FzVertex_s_num_instances_set)
  28012. # Register FzVertex in _mupdf:
  28013. _mupdf.FzVertex_swigregister(FzVertex)
  28014. class FzWarnContext(object):
  28015. r"""Wrapper class for struct `fz_warn_context`. Not copyable or assignable."""
  28016. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  28017. __repr__ = _swig_repr
  28018. def __init__(self, *args):
  28019. r"""
  28020. *Overload 1:*
  28021. Default constructor, sets `m_internal` to null.
  28022. |
  28023. *Overload 2:*
  28024. Constructor using raw copy of pre-existing `::fz_warn_context`.
  28025. """
  28026. _mupdf.FzWarnContext_swiginit(self, _mupdf.new_FzWarnContext(*args))
  28027. __swig_destroy__ = _mupdf.delete_FzWarnContext
  28028. def m_internal_value(self):
  28029. r"""Return numerical value of .m_internal; helps with Python debugging."""
  28030. return _mupdf.FzWarnContext_m_internal_value(self)
  28031. def __nonzero__(self):
  28032. return _mupdf.FzWarnContext___nonzero__(self)
  28033. __bool__ = __nonzero__
  28034. m_internal = property(_mupdf.FzWarnContext_m_internal_get, _mupdf.FzWarnContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  28035. s_num_instances = property(_mupdf.FzWarnContext_s_num_instances_get, _mupdf.FzWarnContext_s_num_instances_set)
  28036. # Register FzWarnContext in _mupdf:
  28037. _mupdf.FzWarnContext_swigregister(FzWarnContext)
  28038. class FzWriteStoryPosition(object):
  28039. r"""Wrapper class for struct `fz_write_story_position`. Not copyable or assignable."""
  28040. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  28041. __repr__ = _swig_repr
  28042. def __init__(self, *args):
  28043. r"""
  28044. *Overload 1:*
  28045. Default constructor, sets `m_internal` to null.
  28046. |
  28047. *Overload 2:*
  28048. Constructor using raw copy of pre-existing `::fz_write_story_position`.
  28049. """
  28050. _mupdf.FzWriteStoryPosition_swiginit(self, _mupdf.new_FzWriteStoryPosition(*args))
  28051. __swig_destroy__ = _mupdf.delete_FzWriteStoryPosition
  28052. def m_internal_value(self):
  28053. r"""Return numerical value of .m_internal; helps with Python debugging."""
  28054. return _mupdf.FzWriteStoryPosition_m_internal_value(self)
  28055. def __nonzero__(self):
  28056. return _mupdf.FzWriteStoryPosition___nonzero__(self)
  28057. __bool__ = __nonzero__
  28058. m_internal = property(_mupdf.FzWriteStoryPosition_m_internal_get, _mupdf.FzWriteStoryPosition_m_internal_set, doc=r"""Pointer to wrapped data.""")
  28059. s_num_instances = property(_mupdf.FzWriteStoryPosition_s_num_instances_get, _mupdf.FzWriteStoryPosition_s_num_instances_set)
  28060. # Register FzWriteStoryPosition in _mupdf:
  28061. _mupdf.FzWriteStoryPosition_swigregister(FzWriteStoryPosition)
  28062. class FzWriteStoryPositions(object):
  28063. r"""Wrapper class for struct `fz_write_story_positions`. Not copyable or assignable."""
  28064. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  28065. __repr__ = _swig_repr
  28066. def __init__(self, *args):
  28067. r"""
  28068. *Overload 1:*
  28069. Default constructor, sets `m_internal` to null.
  28070. |
  28071. *Overload 2:*
  28072. Constructor using raw copy of pre-existing `::fz_write_story_positions`.
  28073. """
  28074. _mupdf.FzWriteStoryPositions_swiginit(self, _mupdf.new_FzWriteStoryPositions(*args))
  28075. __swig_destroy__ = _mupdf.delete_FzWriteStoryPositions
  28076. def m_internal_value(self):
  28077. r"""Return numerical value of .m_internal; helps with Python debugging."""
  28078. return _mupdf.FzWriteStoryPositions_m_internal_value(self)
  28079. def __nonzero__(self):
  28080. return _mupdf.FzWriteStoryPositions___nonzero__(self)
  28081. __bool__ = __nonzero__
  28082. m_internal = property(_mupdf.FzWriteStoryPositions_m_internal_get, _mupdf.FzWriteStoryPositions_m_internal_set, doc=r"""Pointer to wrapped data.""")
  28083. s_num_instances = property(_mupdf.FzWriteStoryPositions_s_num_instances_get, _mupdf.FzWriteStoryPositions_s_num_instances_set)
  28084. # Register FzWriteStoryPositions in _mupdf:
  28085. _mupdf.FzWriteStoryPositions_swigregister(FzWriteStoryPositions)
  28086. class FzXml(object):
  28087. r"""
  28088. Wrapper class for struct `fz_xml`.
  28089. XML document model
  28090. """
  28091. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  28092. __repr__ = _swig_repr
  28093. def fz_debug_xml(self, level):
  28094. r"""
  28095. Class-aware wrapper for `::fz_debug_xml()`.
  28096. Pretty-print an XML tree to stdout. (Deprecated, use
  28097. fz_output_xml in preference).
  28098. """
  28099. return _mupdf.FzXml_fz_debug_xml(self, level)
  28100. def fz_detach_xml(self):
  28101. r"""
  28102. Class-aware wrapper for `::fz_detach_xml()`.
  28103. Detach a node from the tree, unlinking it from its parent,
  28104. and setting the document root to the node.
  28105. """
  28106. return _mupdf.FzXml_fz_detach_xml(self)
  28107. def fz_dom_add_attribute(self, att, value):
  28108. r"""
  28109. Class-aware wrapper for `::fz_dom_add_attribute()`.
  28110. Add an attribute to an element.
  28111. Ownership of att and value remain with the caller.
  28112. """
  28113. return _mupdf.FzXml_fz_dom_add_attribute(self, att, value)
  28114. def fz_dom_append_child(self, child):
  28115. r"""
  28116. Class-aware wrapper for `::fz_dom_append_child()`.
  28117. Insert an element as the last child of a parent, unlinking the
  28118. child from its current position if required.
  28119. """
  28120. return _mupdf.FzXml_fz_dom_append_child(self, child)
  28121. def fz_dom_attribute(self, att):
  28122. r"""
  28123. Class-aware wrapper for `::fz_dom_attribute()`.
  28124. Retrieve the value of a given attribute from a given element.
  28125. Returns a borrowed pointer to the value or NULL if not found.
  28126. """
  28127. return _mupdf.FzXml_fz_dom_attribute(self, att)
  28128. def fz_dom_body(self):
  28129. r"""
  28130. Class-aware wrapper for `::fz_dom_body()`.
  28131. Return a borrowed reference for the 'body' element of
  28132. the given DOM.
  28133. """
  28134. return _mupdf.FzXml_fz_dom_body(self)
  28135. def fz_dom_clone(self):
  28136. r"""
  28137. Class-aware wrapper for `::fz_dom_clone()`.
  28138. Clone an element (and its children).
  28139. A borrowed reference to the clone is returned. The clone is not
  28140. yet linked into the DOM.
  28141. """
  28142. return _mupdf.FzXml_fz_dom_clone(self)
  28143. def fz_dom_create_element(self, tag):
  28144. r"""
  28145. Class-aware wrapper for `::fz_dom_create_element()`.
  28146. Create an element of a given tag type for the given DOM.
  28147. The element is not linked into the DOM yet.
  28148. """
  28149. return _mupdf.FzXml_fz_dom_create_element(self, tag)
  28150. def fz_dom_create_text_node(self, text):
  28151. r"""
  28152. Class-aware wrapper for `::fz_dom_create_text_node()`.
  28153. Create a text node for the given DOM.
  28154. The element is not linked into the DOM yet.
  28155. """
  28156. return _mupdf.FzXml_fz_dom_create_text_node(self, text)
  28157. def fz_dom_document_element(self):
  28158. r"""
  28159. Class-aware wrapper for `::fz_dom_document_element()`.
  28160. Return a borrowed reference for the document (the top
  28161. level element) of the DOM.
  28162. """
  28163. return _mupdf.FzXml_fz_dom_document_element(self)
  28164. def fz_dom_find(self, tag, att, match):
  28165. r"""
  28166. Class-aware wrapper for `::fz_dom_find()`.
  28167. Find the first element matching the requirements in a depth first traversal from elt.
  28168. The tagname must match tag, unless tag is NULL, when all tag names are considered to match.
  28169. If att is NULL, then all tags match.
  28170. Otherwise:
  28171. If match is NULL, then only nodes that have an att attribute match.
  28172. If match is non-NULL, then only nodes that have an att attribute that matches match match.
  28173. Returns NULL (if no match found), or a borrowed reference to the first matching element.
  28174. """
  28175. return _mupdf.FzXml_fz_dom_find(self, tag, att, match)
  28176. def fz_dom_find_next(self, tag, att, match):
  28177. r"""
  28178. Class-aware wrapper for `::fz_dom_find_next()`.
  28179. Find the next element matching the requirements.
  28180. """
  28181. return _mupdf.FzXml_fz_dom_find_next(self, tag, att, match)
  28182. def fz_dom_first_child(self):
  28183. r"""
  28184. Class-aware wrapper for `::fz_dom_first_child()`.
  28185. Return a borrowed reference to the first child of a node,
  28186. or NULL if there isn't one.
  28187. """
  28188. return _mupdf.FzXml_fz_dom_first_child(self)
  28189. def fz_dom_get_attribute(self, i, att):
  28190. r"""
  28191. Class-aware wrapper for `::fz_dom_get_attribute()`.
  28192. This method has out-params. Python/C# wrappers look like:
  28193. `fz_dom_get_attribute(int i)` => `(const char *, const char *att)`
  28194. Enumerate through the attributes of an element.
  28195. Call with i=0,1,2,3... to enumerate attributes.
  28196. On return *att and the return value will be NULL if there are not
  28197. that many attributes to read. Otherwise, *att will be filled in
  28198. with a borrowed pointer to the attribute name, and the return
  28199. value will be a borrowed pointer to the value.
  28200. """
  28201. return _mupdf.FzXml_fz_dom_get_attribute(self, i, att)
  28202. def fz_dom_insert_after(self, new_elt):
  28203. r"""
  28204. Class-aware wrapper for `::fz_dom_insert_after()`.
  28205. Insert an element (new_elt), after another element (node),
  28206. unlinking the new_elt from its current position if required.
  28207. """
  28208. return _mupdf.FzXml_fz_dom_insert_after(self, new_elt)
  28209. def fz_dom_insert_before(self, new_elt):
  28210. r"""
  28211. Class-aware wrapper for `::fz_dom_insert_before()`.
  28212. Insert an element (new_elt), before another element (node),
  28213. unlinking the new_elt from its current position if required.
  28214. """
  28215. return _mupdf.FzXml_fz_dom_insert_before(self, new_elt)
  28216. def fz_dom_next(self):
  28217. r"""
  28218. Class-aware wrapper for `::fz_dom_next()`.
  28219. Return a borrowed reference to the next sibling of a node,
  28220. or NULL if there isn't one.
  28221. """
  28222. return _mupdf.FzXml_fz_dom_next(self)
  28223. def fz_dom_parent(self):
  28224. r"""
  28225. Class-aware wrapper for `::fz_dom_parent()`.
  28226. Return a borrowed reference to the parent of a node,
  28227. or NULL if there isn't one.
  28228. """
  28229. return _mupdf.FzXml_fz_dom_parent(self)
  28230. def fz_dom_previous(self):
  28231. r"""
  28232. Class-aware wrapper for `::fz_dom_previous()`.
  28233. Return a borrowed reference to the previous sibling of a node,
  28234. or NULL if there isn't one.
  28235. """
  28236. return _mupdf.FzXml_fz_dom_previous(self)
  28237. def fz_dom_remove(self):
  28238. r"""
  28239. Class-aware wrapper for `::fz_dom_remove()`.
  28240. Remove an element from the DOM. The element can be added back elsewhere
  28241. if required.
  28242. No reference counting changes for the element.
  28243. """
  28244. return _mupdf.FzXml_fz_dom_remove(self)
  28245. def fz_dom_remove_attribute(self, att):
  28246. r"""
  28247. Class-aware wrapper for `::fz_dom_remove_attribute()`.
  28248. Remove an attribute from an element.
  28249. """
  28250. return _mupdf.FzXml_fz_dom_remove_attribute(self, att)
  28251. def fz_new_display_list_from_svg_xml(self, xml, base_uri, dir, w, h):
  28252. r"""
  28253. Class-aware wrapper for `::fz_new_display_list_from_svg_xml()`.
  28254. This method has out-params. Python/C# wrappers look like:
  28255. `fz_new_display_list_from_svg_xml(::fz_xml *xml, const char *base_uri, ::fz_archive *dir)` => `(fz_display_list *, float w, float h)`
  28256. Parse an SVG document into a display-list.
  28257. """
  28258. return _mupdf.FzXml_fz_new_display_list_from_svg_xml(self, xml, base_uri, dir, w, h)
  28259. def fz_new_dom_node(self, tag):
  28260. r"""
  28261. Class-aware wrapper for `::fz_new_dom_node()`.
  28262. Create a new dom node.
  28263. This will NOT be linked in yet.
  28264. """
  28265. return _mupdf.FzXml_fz_new_dom_node(self, tag)
  28266. def fz_new_dom_text_node(self, *args):
  28267. r"""
  28268. *Overload 1:*
  28269. Class-aware wrapper for `::fz_new_dom_text_node()`.
  28270. Create a new dom text node.
  28271. This will NOT be linked in yet.
  28272. |
  28273. *Overload 2:*
  28274. Class-aware wrapper for `::fz_new_dom_text_node()`.
  28275. Create a new dom text node.
  28276. This will NOT be linked in yet.
  28277. """
  28278. return _mupdf.FzXml_fz_new_dom_text_node(self, *args)
  28279. def fz_new_image_from_svg_xml(self, xml, base_uri, dir):
  28280. r"""
  28281. Class-aware wrapper for `::fz_new_image_from_svg_xml()`.
  28282. Create a scalable image from an SVG document.
  28283. """
  28284. return _mupdf.FzXml_fz_new_image_from_svg_xml(self, xml, base_uri, dir)
  28285. def fz_save_xml(self, path, indented):
  28286. r"""
  28287. Class-aware wrapper for `::fz_save_xml()`.
  28288. As for fz_write_xml, but direct to a file.
  28289. """
  28290. return _mupdf.FzXml_fz_save_xml(self, path, indented)
  28291. def fz_write_xml(self, out, indented):
  28292. r"""
  28293. Class-aware wrapper for `::fz_write_xml()`.
  28294. Write our xml structure out to an xml stream.
  28295. Properly formatted XML is only allowed to have a single top-level node
  28296. under which everything must sit. Our structures allow for multiple
  28297. top level nodes. If required, we will output an extra 'ROOT' node
  28298. at the top so that the xml is well-formed.
  28299. If 'indented' is non-zero then additional whitespace will be added to
  28300. make the XML easier to read in a text editor. It will NOT be properly
  28301. compliant.
  28302. """
  28303. return _mupdf.FzXml_fz_write_xml(self, out, indented)
  28304. def fz_xml_att(self, att):
  28305. r"""
  28306. Class-aware wrapper for `::fz_xml_att()`.
  28307. Return the value of an attribute of an XML node.
  28308. NULL if the attribute doesn't exist.
  28309. """
  28310. return _mupdf.FzXml_fz_xml_att(self, att)
  28311. def fz_xml_att_alt(self, one, two):
  28312. r"""
  28313. Class-aware wrapper for `::fz_xml_att_alt()`.
  28314. Return the value of an attribute of an XML node.
  28315. If the first attribute doesn't exist, try the second.
  28316. NULL if neither attribute exists.
  28317. """
  28318. return _mupdf.FzXml_fz_xml_att_alt(self, one, two)
  28319. def fz_xml_att_eq(self, name, match):
  28320. r"""
  28321. Class-aware wrapper for `::fz_xml_att_eq()`.
  28322. Check for a matching attribute on an XML node.
  28323. If the node has the requested attribute (name), and the value
  28324. matches (match) then return 1. Otherwise, 0.
  28325. """
  28326. return _mupdf.FzXml_fz_xml_att_eq(self, name, match)
  28327. def fz_xml_down(self):
  28328. r"""
  28329. Class-aware wrapper for `::fz_xml_down()`.
  28330. Return first child of XML node.
  28331. """
  28332. return _mupdf.FzXml_fz_xml_down(self)
  28333. def fz_xml_find(self, tag):
  28334. r"""
  28335. Class-aware wrapper for `::fz_xml_find()`.
  28336. Search the siblings of XML nodes starting with item looking for
  28337. the first with the given tag.
  28338. Return NULL if none found.
  28339. """
  28340. return _mupdf.FzXml_fz_xml_find(self, tag)
  28341. def fz_xml_find_dfs(self, tag, att, match):
  28342. r"""
  28343. Class-aware wrapper for `::fz_xml_find_dfs()`.
  28344. Perform a depth first search from item, returning the first
  28345. child that matches the given tag (or any tag if tag is NULL),
  28346. with the given attribute (if att is non NULL), that matches
  28347. match (if match is non NULL).
  28348. """
  28349. return _mupdf.FzXml_fz_xml_find_dfs(self, tag, att, match)
  28350. def fz_xml_find_dfs_top(self, tag, att, match, top):
  28351. r"""
  28352. Class-aware wrapper for `::fz_xml_find_dfs_top()`.
  28353. Perform a depth first search from item, returning the first
  28354. child that matches the given tag (or any tag if tag is NULL),
  28355. with the given attribute (if att is non NULL), that matches
  28356. match (if match is non NULL). The search stops if it ever
  28357. reaches the top of the tree, or the declared 'top' item.
  28358. """
  28359. return _mupdf.FzXml_fz_xml_find_dfs_top(self, tag, att, match, top)
  28360. def fz_xml_find_down(self, tag):
  28361. r"""
  28362. Class-aware wrapper for `::fz_xml_find_down()`.
  28363. Search the siblings of XML nodes starting with the first child
  28364. of item looking for the first with the given tag.
  28365. Return NULL if none found.
  28366. """
  28367. return _mupdf.FzXml_fz_xml_find_down(self, tag)
  28368. def fz_xml_find_down_match(self, tag, att, match):
  28369. r"""
  28370. Class-aware wrapper for `::fz_xml_find_down_match()`.
  28371. Search the siblings of XML nodes starting with the first child
  28372. of item looking for the first with the given tag (or any tag if
  28373. tag is NULL), and with a matching attribute.
  28374. Return NULL if none found.
  28375. """
  28376. return _mupdf.FzXml_fz_xml_find_down_match(self, tag, att, match)
  28377. def fz_xml_find_match(self, tag, att, match):
  28378. r"""
  28379. Class-aware wrapper for `::fz_xml_find_match()`.
  28380. Search the siblings of XML nodes starting with item looking for
  28381. the first with the given tag (or any tag if tag is NULL), and
  28382. with a matching attribute.
  28383. Return NULL if none found.
  28384. """
  28385. return _mupdf.FzXml_fz_xml_find_match(self, tag, att, match)
  28386. def fz_xml_find_next(self, tag):
  28387. r"""
  28388. Class-aware wrapper for `::fz_xml_find_next()`.
  28389. Search the siblings of XML nodes starting with the first sibling
  28390. of item looking for the first with the given tag.
  28391. Return NULL if none found.
  28392. """
  28393. return _mupdf.FzXml_fz_xml_find_next(self, tag)
  28394. def fz_xml_find_next_dfs(self, tag, att, match):
  28395. r"""
  28396. Class-aware wrapper for `::fz_xml_find_next_dfs()`.
  28397. Perform a depth first search onwards from item, returning the first
  28398. child that matches the given tag (or any tag if tag is NULL),
  28399. with the given attribute (if att is non NULL), that matches
  28400. match (if match is non NULL).
  28401. """
  28402. return _mupdf.FzXml_fz_xml_find_next_dfs(self, tag, att, match)
  28403. def fz_xml_find_next_dfs_top(self, tag, att, match, top):
  28404. r"""
  28405. Class-aware wrapper for `::fz_xml_find_next_dfs_top()`.
  28406. Perform a depth first search onwards from item, returning the first
  28407. child that matches the given tag (or any tag if tag is NULL),
  28408. with the given attribute (if att is non NULL), that matches
  28409. match (if match is non NULL). The search stops if it ever reaches
  28410. the top of the tree, or the declared 'top' item.
  28411. """
  28412. return _mupdf.FzXml_fz_xml_find_next_dfs_top(self, tag, att, match, top)
  28413. def fz_xml_find_next_match(self, tag, att, match):
  28414. r"""
  28415. Class-aware wrapper for `::fz_xml_find_next_match()`.
  28416. Search the siblings of XML nodes starting with the first sibling
  28417. of item looking for the first with the given tag (or any tag if tag
  28418. is NULL), and with a matching attribute.
  28419. Return NULL if none found.
  28420. """
  28421. return _mupdf.FzXml_fz_xml_find_next_match(self, tag, att, match)
  28422. def fz_xml_is_tag(self, name):
  28423. r"""
  28424. Class-aware wrapper for `::fz_xml_is_tag()`.
  28425. Return true if the tag name matches.
  28426. """
  28427. return _mupdf.FzXml_fz_xml_is_tag(self, name)
  28428. def fz_xml_next(self):
  28429. r"""
  28430. Class-aware wrapper for `::fz_xml_next()`.
  28431. Return next sibling of XML node.
  28432. """
  28433. return _mupdf.FzXml_fz_xml_next(self)
  28434. def fz_xml_prev(self):
  28435. r"""
  28436. Class-aware wrapper for `::fz_xml_prev()`.
  28437. Return previous sibling of XML node.
  28438. """
  28439. return _mupdf.FzXml_fz_xml_prev(self)
  28440. def fz_xml_root(self):
  28441. r"""
  28442. Class-aware wrapper for `::fz_xml_root()`.
  28443. Return the topmost XML node of a document.
  28444. """
  28445. return _mupdf.FzXml_fz_xml_root(self)
  28446. def fz_xml_tag(self):
  28447. r"""
  28448. Class-aware wrapper for `::fz_xml_tag()`.
  28449. Return tag of XML node. Return NULL for text nodes.
  28450. """
  28451. return _mupdf.FzXml_fz_xml_tag(self)
  28452. def fz_xml_text(self):
  28453. r"""
  28454. Class-aware wrapper for `::fz_xml_text()`.
  28455. Return the text content of an XML node.
  28456. Return NULL if the node is a tag.
  28457. """
  28458. return _mupdf.FzXml_fz_xml_text(self)
  28459. def fz_xml_up(self):
  28460. r"""
  28461. Class-aware wrapper for `::fz_xml_up()`.
  28462. Return parent of XML node.
  28463. """
  28464. return _mupdf.FzXml_fz_xml_up(self)
  28465. def __init__(self, *args):
  28466. r"""
  28467. *Overload 1:*
  28468. == Constructors. Constructor using `fz_new_dom()`.
  28469. Make new xml dom root element.
  28470. |
  28471. *Overload 2:*
  28472. Constructor using `fz_new_dom_node()`.
  28473. Create a new dom node.
  28474. This will NOT be linked in yet.
  28475. |
  28476. *Overload 3:*
  28477. Copy constructor using `fz_keep_xml()`.
  28478. |
  28479. *Overload 4:*
  28480. Default constructor, sets `m_internal` to null.
  28481. |
  28482. *Overload 5:*
  28483. Constructor using raw copy of pre-existing `::fz_xml`.
  28484. """
  28485. _mupdf.FzXml_swiginit(self, _mupdf.new_FzXml(*args))
  28486. __swig_destroy__ = _mupdf.delete_FzXml
  28487. def m_internal_value(self):
  28488. r"""Return numerical value of .m_internal; helps with Python debugging."""
  28489. return _mupdf.FzXml_m_internal_value(self)
  28490. def __nonzero__(self):
  28491. return _mupdf.FzXml___nonzero__(self)
  28492. __bool__ = __nonzero__
  28493. m_internal = property(_mupdf.FzXml_m_internal_get, _mupdf.FzXml_m_internal_set, doc=r"""Pointer to wrapped data.""")
  28494. s_num_instances = property(_mupdf.FzXml_s_num_instances_get, _mupdf.FzXml_s_num_instances_set)
  28495. # Register FzXml in _mupdf:
  28496. _mupdf.FzXml_swigregister(FzXml)
  28497. class FzXmlDoc(object):
  28498. r"""Wrapper class for struct `fz_xml_doc`. Not copyable or assignable."""
  28499. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  28500. __repr__ = _swig_repr
  28501. def __init__(self, *args):
  28502. r"""
  28503. *Overload 1:*
  28504. Default constructor, sets `m_internal` to null.
  28505. |
  28506. *Overload 2:*
  28507. Constructor using raw copy of pre-existing `::fz_xml_doc`.
  28508. """
  28509. _mupdf.FzXmlDoc_swiginit(self, _mupdf.new_FzXmlDoc(*args))
  28510. __swig_destroy__ = _mupdf.delete_FzXmlDoc
  28511. def m_internal_value(self):
  28512. r"""Return numerical value of .m_internal; helps with Python debugging."""
  28513. return _mupdf.FzXmlDoc_m_internal_value(self)
  28514. def __nonzero__(self):
  28515. return _mupdf.FzXmlDoc___nonzero__(self)
  28516. __bool__ = __nonzero__
  28517. m_internal = property(_mupdf.FzXmlDoc_m_internal_get, _mupdf.FzXmlDoc_m_internal_set, doc=r"""Pointer to wrapped data.""")
  28518. s_num_instances = property(_mupdf.FzXmlDoc_s_num_instances_get, _mupdf.FzXmlDoc_s_num_instances_set)
  28519. # Register FzXmlDoc in _mupdf:
  28520. _mupdf.FzXmlDoc_swigregister(FzXmlDoc)
  28521. class FzZipWriter(object):
  28522. r"""
  28523. Wrapper class for struct `fz_zip_writer`. Not copyable or assignable.
  28524. fz_zip_writer offers methods for creating and writing zip files.
  28525. It can be seen as the reverse of the fz_archive zip
  28526. implementation.
  28527. """
  28528. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  28529. __repr__ = _swig_repr
  28530. def fz_close_zip_writer(self):
  28531. r"""
  28532. Class-aware wrapper for `::fz_close_zip_writer()`.
  28533. Close the zip file for writing.
  28534. This flushes any pending data to the file. This can throw
  28535. exceptions.
  28536. """
  28537. return _mupdf.FzZipWriter_fz_close_zip_writer(self)
  28538. def fz_write_zip_entry(self, name, buf, compress):
  28539. r"""
  28540. Class-aware wrapper for `::fz_write_zip_entry()`.
  28541. Given a buffer of data, (optionally) compress it, and add it to
  28542. the zip file with the given name.
  28543. """
  28544. return _mupdf.FzZipWriter_fz_write_zip_entry(self, name, buf, compress)
  28545. def __init__(self, *args):
  28546. r"""
  28547. *Overload 1:*
  28548. == Constructors. Constructor using `fz_new_zip_writer()`.
  28549. Create a new zip writer that writes to a given file.
  28550. Open an archive using a seekable stream object rather than
  28551. opening a file or directory on disk.
  28552. |
  28553. *Overload 2:*
  28554. Constructor using `fz_new_zip_writer_with_output()`.
  28555. Create a new zip writer that writes to a given output stream.
  28556. Ownership of out passes in immediately upon calling this function.
  28557. The caller should never drop the fz_output, even if this function throws
  28558. an exception.
  28559. |
  28560. *Overload 3:*
  28561. Default constructor, sets `m_internal` to null.
  28562. |
  28563. *Overload 4:*
  28564. Constructor using raw copy of pre-existing `::fz_zip_writer`.
  28565. """
  28566. _mupdf.FzZipWriter_swiginit(self, _mupdf.new_FzZipWriter(*args))
  28567. __swig_destroy__ = _mupdf.delete_FzZipWriter
  28568. def m_internal_value(self):
  28569. r"""Return numerical value of .m_internal; helps with Python debugging."""
  28570. return _mupdf.FzZipWriter_m_internal_value(self)
  28571. def __nonzero__(self):
  28572. return _mupdf.FzZipWriter___nonzero__(self)
  28573. __bool__ = __nonzero__
  28574. m_internal = property(_mupdf.FzZipWriter_m_internal_get, _mupdf.FzZipWriter_m_internal_set, doc=r"""Pointer to wrapped data.""")
  28575. s_num_instances = property(_mupdf.FzZipWriter_s_num_instances_get, _mupdf.FzZipWriter_s_num_instances_set)
  28576. # Register FzZipWriter in _mupdf:
  28577. _mupdf.FzZipWriter_swigregister(FzZipWriter)
  28578. class PdfAlertEvent(object):
  28579. r"""Wrapper class for struct `pdf_alert_event`. Not copyable or assignable."""
  28580. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  28581. __repr__ = _swig_repr
  28582. def __init__(self, *args):
  28583. r"""
  28584. *Overload 1:*
  28585. Default constructor, sets `m_internal` to null.
  28586. |
  28587. *Overload 2:*
  28588. Constructor using raw copy of pre-existing `::pdf_alert_event`.
  28589. """
  28590. _mupdf.PdfAlertEvent_swiginit(self, _mupdf.new_PdfAlertEvent(*args))
  28591. __swig_destroy__ = _mupdf.delete_PdfAlertEvent
  28592. def m_internal_value(self):
  28593. r"""Return numerical value of .m_internal; helps with Python debugging."""
  28594. return _mupdf.PdfAlertEvent_m_internal_value(self)
  28595. def __nonzero__(self):
  28596. return _mupdf.PdfAlertEvent___nonzero__(self)
  28597. __bool__ = __nonzero__
  28598. m_internal = property(_mupdf.PdfAlertEvent_m_internal_get, _mupdf.PdfAlertEvent_m_internal_set, doc=r"""Pointer to wrapped data.""")
  28599. s_num_instances = property(_mupdf.PdfAlertEvent_s_num_instances_get, _mupdf.PdfAlertEvent_s_num_instances_set)
  28600. # Register PdfAlertEvent in _mupdf:
  28601. _mupdf.PdfAlertEvent_swigregister(PdfAlertEvent)
  28602. class PdfAnnot(object):
  28603. r"""Wrapper class for struct `pdf_annot`."""
  28604. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  28605. __repr__ = _swig_repr
  28606. def pdf_add_annot_border_dash_item(self, length):
  28607. r"""Class-aware wrapper for `::pdf_add_annot_border_dash_item()`."""
  28608. return _mupdf.PdfAnnot_pdf_add_annot_border_dash_item(self, length)
  28609. def pdf_add_annot_ink_list_stroke(self):
  28610. r"""Class-aware wrapper for `::pdf_add_annot_ink_list_stroke()`."""
  28611. return _mupdf.PdfAnnot_pdf_add_annot_ink_list_stroke(self)
  28612. def pdf_add_annot_ink_list_stroke_vertex(self, p):
  28613. r"""Class-aware wrapper for `::pdf_add_annot_ink_list_stroke_vertex()`."""
  28614. return _mupdf.PdfAnnot_pdf_add_annot_ink_list_stroke_vertex(self, p)
  28615. def pdf_add_annot_quad_point(self, quad):
  28616. r"""Class-aware wrapper for `::pdf_add_annot_quad_point()`."""
  28617. return _mupdf.PdfAnnot_pdf_add_annot_quad_point(self, quad)
  28618. def pdf_add_annot_vertex(self, p):
  28619. r"""Class-aware wrapper for `::pdf_add_annot_vertex()`."""
  28620. return _mupdf.PdfAnnot_pdf_add_annot_vertex(self, p)
  28621. def pdf_annot_MK_BC(self, n, color):
  28622. r"""
  28623. Class-aware wrapper for `::pdf_annot_MK_BC()`.
  28624. This method has out-params. Python/C# wrappers look like:
  28625. `pdf_annot_MK_BC(float color[4])` => int n
  28626. """
  28627. return _mupdf.PdfAnnot_pdf_annot_MK_BC(self, n, color)
  28628. def pdf_annot_MK_BC_rgb(self, rgb):
  28629. r"""Class-aware wrapper for `::pdf_annot_MK_BC_rgb()`."""
  28630. return _mupdf.PdfAnnot_pdf_annot_MK_BC_rgb(self, rgb)
  28631. def pdf_annot_MK_BG(self, n, color):
  28632. r"""
  28633. Class-aware wrapper for `::pdf_annot_MK_BG()`.
  28634. This method has out-params. Python/C# wrappers look like:
  28635. `pdf_annot_MK_BG(float color[4])` => int n
  28636. """
  28637. return _mupdf.PdfAnnot_pdf_annot_MK_BG(self, n, color)
  28638. def pdf_annot_MK_BG_rgb(self, rgb):
  28639. r"""Class-aware wrapper for `::pdf_annot_MK_BG_rgb()`."""
  28640. return _mupdf.PdfAnnot_pdf_annot_MK_BG_rgb(self, rgb)
  28641. def pdf_annot_active(self):
  28642. r"""Class-aware wrapper for `::pdf_annot_active()`."""
  28643. return _mupdf.PdfAnnot_pdf_annot_active(self)
  28644. def pdf_annot_ap(self):
  28645. r"""Class-aware wrapper for `::pdf_annot_ap()`."""
  28646. return _mupdf.PdfAnnot_pdf_annot_ap(self)
  28647. def pdf_annot_author(self):
  28648. r"""Class-aware wrapper for `::pdf_annot_author()`."""
  28649. return _mupdf.PdfAnnot_pdf_annot_author(self)
  28650. def pdf_annot_border(self):
  28651. r"""Class-aware wrapper for `::pdf_annot_border()`."""
  28652. return _mupdf.PdfAnnot_pdf_annot_border(self)
  28653. def pdf_annot_border_dash_count(self):
  28654. r"""Class-aware wrapper for `::pdf_annot_border_dash_count()`."""
  28655. return _mupdf.PdfAnnot_pdf_annot_border_dash_count(self)
  28656. def pdf_annot_border_dash_item(self, i):
  28657. r"""Class-aware wrapper for `::pdf_annot_border_dash_item()`."""
  28658. return _mupdf.PdfAnnot_pdf_annot_border_dash_item(self, i)
  28659. def pdf_annot_border_effect(self):
  28660. r"""Class-aware wrapper for `::pdf_annot_border_effect()`."""
  28661. return _mupdf.PdfAnnot_pdf_annot_border_effect(self)
  28662. def pdf_annot_border_effect_intensity(self):
  28663. r"""Class-aware wrapper for `::pdf_annot_border_effect_intensity()`."""
  28664. return _mupdf.PdfAnnot_pdf_annot_border_effect_intensity(self)
  28665. def pdf_annot_border_style(self):
  28666. r"""Class-aware wrapper for `::pdf_annot_border_style()`."""
  28667. return _mupdf.PdfAnnot_pdf_annot_border_style(self)
  28668. def pdf_annot_border_width(self):
  28669. r"""Class-aware wrapper for `::pdf_annot_border_width()`."""
  28670. return _mupdf.PdfAnnot_pdf_annot_border_width(self)
  28671. def pdf_annot_callout_point(self):
  28672. r"""Class-aware wrapper for `::pdf_annot_callout_point()`."""
  28673. return _mupdf.PdfAnnot_pdf_annot_callout_point(self)
  28674. def pdf_annot_callout_style(self):
  28675. r"""Class-aware wrapper for `::pdf_annot_callout_style()`."""
  28676. return _mupdf.PdfAnnot_pdf_annot_callout_style(self)
  28677. def pdf_annot_color(self, n, color):
  28678. r"""
  28679. Class-aware wrapper for `::pdf_annot_color()`.
  28680. This method has out-params. Python/C# wrappers look like:
  28681. `pdf_annot_color(float color[4])` => int n
  28682. """
  28683. return _mupdf.PdfAnnot_pdf_annot_color(self, n, color)
  28684. def pdf_annot_contents(self):
  28685. r"""Class-aware wrapper for `::pdf_annot_contents()`."""
  28686. return _mupdf.PdfAnnot_pdf_annot_contents(self)
  28687. def pdf_annot_creation_date(self):
  28688. r"""Class-aware wrapper for `::pdf_annot_creation_date()`."""
  28689. return _mupdf.PdfAnnot_pdf_annot_creation_date(self)
  28690. def pdf_annot_default_appearance(self, font, size, n, color):
  28691. r"""
  28692. Class-aware wrapper for `::pdf_annot_default_appearance()`.
  28693. This method has out-params. Python/C# wrappers look like:
  28694. `pdf_annot_default_appearance(float color[4])` => `(const char *font, float size, int n)`
  28695. """
  28696. return _mupdf.PdfAnnot_pdf_annot_default_appearance(self, font, size, n, color)
  28697. def pdf_annot_default_appearance_unmapped(self, font_name, font_name_len, size, n, color):
  28698. r"""
  28699. Class-aware wrapper for `::pdf_annot_default_appearance_unmapped()`.
  28700. This method has out-params. Python/C# wrappers look like:
  28701. `pdf_annot_default_appearance_unmapped(char *font_name, int font_name_len, float color[4])` => `(float size, int n)`
  28702. """
  28703. return _mupdf.PdfAnnot_pdf_annot_default_appearance_unmapped(self, font_name, font_name_len, size, n, color)
  28704. def pdf_annot_ensure_local_xref(self):
  28705. r"""Class-aware wrapper for `::pdf_annot_ensure_local_xref()`."""
  28706. return _mupdf.PdfAnnot_pdf_annot_ensure_local_xref(self)
  28707. def pdf_annot_event_blur(self):
  28708. r"""Class-aware wrapper for `::pdf_annot_event_blur()`."""
  28709. return _mupdf.PdfAnnot_pdf_annot_event_blur(self)
  28710. def pdf_annot_event_down(self):
  28711. r"""Class-aware wrapper for `::pdf_annot_event_down()`."""
  28712. return _mupdf.PdfAnnot_pdf_annot_event_down(self)
  28713. def pdf_annot_event_enter(self):
  28714. r"""Class-aware wrapper for `::pdf_annot_event_enter()`."""
  28715. return _mupdf.PdfAnnot_pdf_annot_event_enter(self)
  28716. def pdf_annot_event_exit(self):
  28717. r"""Class-aware wrapper for `::pdf_annot_event_exit()`."""
  28718. return _mupdf.PdfAnnot_pdf_annot_event_exit(self)
  28719. def pdf_annot_event_focus(self):
  28720. r"""Class-aware wrapper for `::pdf_annot_event_focus()`."""
  28721. return _mupdf.PdfAnnot_pdf_annot_event_focus(self)
  28722. def pdf_annot_event_page_close(self):
  28723. r"""Class-aware wrapper for `::pdf_annot_event_page_close()`."""
  28724. return _mupdf.PdfAnnot_pdf_annot_event_page_close(self)
  28725. def pdf_annot_event_page_invisible(self):
  28726. r"""Class-aware wrapper for `::pdf_annot_event_page_invisible()`."""
  28727. return _mupdf.PdfAnnot_pdf_annot_event_page_invisible(self)
  28728. def pdf_annot_event_page_open(self):
  28729. r"""Class-aware wrapper for `::pdf_annot_event_page_open()`."""
  28730. return _mupdf.PdfAnnot_pdf_annot_event_page_open(self)
  28731. def pdf_annot_event_page_visible(self):
  28732. r"""Class-aware wrapper for `::pdf_annot_event_page_visible()`."""
  28733. return _mupdf.PdfAnnot_pdf_annot_event_page_visible(self)
  28734. def pdf_annot_event_up(self):
  28735. r"""Class-aware wrapper for `::pdf_annot_event_up()`."""
  28736. return _mupdf.PdfAnnot_pdf_annot_event_up(self)
  28737. def pdf_annot_field_flags(self):
  28738. r"""Class-aware wrapper for `::pdf_annot_field_flags()`."""
  28739. return _mupdf.PdfAnnot_pdf_annot_field_flags(self)
  28740. def pdf_annot_field_label(self):
  28741. r"""Class-aware wrapper for `::pdf_annot_field_label()`."""
  28742. return _mupdf.PdfAnnot_pdf_annot_field_label(self)
  28743. def pdf_annot_field_value(self):
  28744. r"""Class-aware wrapper for `::pdf_annot_field_value()`."""
  28745. return _mupdf.PdfAnnot_pdf_annot_field_value(self)
  28746. def pdf_annot_filespec(self):
  28747. r"""Class-aware wrapper for `::pdf_annot_filespec()`."""
  28748. return _mupdf.PdfAnnot_pdf_annot_filespec(self)
  28749. def pdf_annot_flags(self):
  28750. r"""Class-aware wrapper for `::pdf_annot_flags()`."""
  28751. return _mupdf.PdfAnnot_pdf_annot_flags(self)
  28752. def pdf_annot_has_author(self):
  28753. r"""Class-aware wrapper for `::pdf_annot_has_author()`."""
  28754. return _mupdf.PdfAnnot_pdf_annot_has_author(self)
  28755. def pdf_annot_has_border(self):
  28756. r"""Class-aware wrapper for `::pdf_annot_has_border()`."""
  28757. return _mupdf.PdfAnnot_pdf_annot_has_border(self)
  28758. def pdf_annot_has_border_effect(self):
  28759. r"""Class-aware wrapper for `::pdf_annot_has_border_effect()`."""
  28760. return _mupdf.PdfAnnot_pdf_annot_has_border_effect(self)
  28761. def pdf_annot_has_callout(self):
  28762. r"""Class-aware wrapper for `::pdf_annot_has_callout()`."""
  28763. return _mupdf.PdfAnnot_pdf_annot_has_callout(self)
  28764. def pdf_annot_has_default_appearance(self):
  28765. r"""Class-aware wrapper for `::pdf_annot_has_default_appearance()`."""
  28766. return _mupdf.PdfAnnot_pdf_annot_has_default_appearance(self)
  28767. def pdf_annot_has_filespec(self):
  28768. r"""Class-aware wrapper for `::pdf_annot_has_filespec()`."""
  28769. return _mupdf.PdfAnnot_pdf_annot_has_filespec(self)
  28770. def pdf_annot_has_icon_name(self):
  28771. r"""Class-aware wrapper for `::pdf_annot_has_icon_name()`."""
  28772. return _mupdf.PdfAnnot_pdf_annot_has_icon_name(self)
  28773. def pdf_annot_has_ink_list(self):
  28774. r"""Class-aware wrapper for `::pdf_annot_has_ink_list()`."""
  28775. return _mupdf.PdfAnnot_pdf_annot_has_ink_list(self)
  28776. def pdf_annot_has_intent(self):
  28777. r"""Class-aware wrapper for `::pdf_annot_has_intent()`."""
  28778. return _mupdf.PdfAnnot_pdf_annot_has_intent(self)
  28779. def pdf_annot_has_interior_color(self):
  28780. r"""Class-aware wrapper for `::pdf_annot_has_interior_color()`."""
  28781. return _mupdf.PdfAnnot_pdf_annot_has_interior_color(self)
  28782. def pdf_annot_has_line(self):
  28783. r"""Class-aware wrapper for `::pdf_annot_has_line()`."""
  28784. return _mupdf.PdfAnnot_pdf_annot_has_line(self)
  28785. def pdf_annot_has_line_ending_styles(self):
  28786. r"""Class-aware wrapper for `::pdf_annot_has_line_ending_styles()`."""
  28787. return _mupdf.PdfAnnot_pdf_annot_has_line_ending_styles(self)
  28788. def pdf_annot_has_open(self):
  28789. r"""Class-aware wrapper for `::pdf_annot_has_open()`."""
  28790. return _mupdf.PdfAnnot_pdf_annot_has_open(self)
  28791. def pdf_annot_has_popup(self):
  28792. r"""Class-aware wrapper for `::pdf_annot_has_popup()`."""
  28793. return _mupdf.PdfAnnot_pdf_annot_has_popup(self)
  28794. def pdf_annot_has_quad_points(self):
  28795. r"""Class-aware wrapper for `::pdf_annot_has_quad_points()`."""
  28796. return _mupdf.PdfAnnot_pdf_annot_has_quad_points(self)
  28797. def pdf_annot_has_quadding(self):
  28798. r"""Class-aware wrapper for `::pdf_annot_has_quadding()`."""
  28799. return _mupdf.PdfAnnot_pdf_annot_has_quadding(self)
  28800. def pdf_annot_has_rect(self):
  28801. r"""Class-aware wrapper for `::pdf_annot_has_rect()`."""
  28802. return _mupdf.PdfAnnot_pdf_annot_has_rect(self)
  28803. def pdf_annot_has_rich_contents(self):
  28804. r"""Class-aware wrapper for `::pdf_annot_has_rich_contents()`."""
  28805. return _mupdf.PdfAnnot_pdf_annot_has_rich_contents(self)
  28806. def pdf_annot_has_rich_defaults(self):
  28807. r"""Class-aware wrapper for `::pdf_annot_has_rich_defaults()`."""
  28808. return _mupdf.PdfAnnot_pdf_annot_has_rich_defaults(self)
  28809. def pdf_annot_has_vertices(self):
  28810. r"""Class-aware wrapper for `::pdf_annot_has_vertices()`."""
  28811. return _mupdf.PdfAnnot_pdf_annot_has_vertices(self)
  28812. def pdf_annot_hidden_for_editing(self):
  28813. r"""Class-aware wrapper for `::pdf_annot_hidden_for_editing()`."""
  28814. return _mupdf.PdfAnnot_pdf_annot_hidden_for_editing(self)
  28815. def pdf_annot_hot(self):
  28816. r"""Class-aware wrapper for `::pdf_annot_hot()`."""
  28817. return _mupdf.PdfAnnot_pdf_annot_hot(self)
  28818. def pdf_annot_icon_name(self):
  28819. r"""Class-aware wrapper for `::pdf_annot_icon_name()`."""
  28820. return _mupdf.PdfAnnot_pdf_annot_icon_name(self)
  28821. def pdf_annot_ink_list_count(self):
  28822. r"""Class-aware wrapper for `::pdf_annot_ink_list_count()`."""
  28823. return _mupdf.PdfAnnot_pdf_annot_ink_list_count(self)
  28824. def pdf_annot_ink_list_stroke_count(self, i):
  28825. r"""Class-aware wrapper for `::pdf_annot_ink_list_stroke_count()`."""
  28826. return _mupdf.PdfAnnot_pdf_annot_ink_list_stroke_count(self, i)
  28827. def pdf_annot_ink_list_stroke_vertex(self, i, k):
  28828. r"""Class-aware wrapper for `::pdf_annot_ink_list_stroke_vertex()`."""
  28829. return _mupdf.PdfAnnot_pdf_annot_ink_list_stroke_vertex(self, i, k)
  28830. def pdf_annot_intent(self):
  28831. r"""Class-aware wrapper for `::pdf_annot_intent()`."""
  28832. return _mupdf.PdfAnnot_pdf_annot_intent(self)
  28833. def pdf_annot_interior_color(self, n, color):
  28834. r"""
  28835. Class-aware wrapper for `::pdf_annot_interior_color()`.
  28836. This method has out-params. Python/C# wrappers look like:
  28837. `pdf_annot_interior_color(float color[4])` => int n
  28838. """
  28839. return _mupdf.PdfAnnot_pdf_annot_interior_color(self, n, color)
  28840. def pdf_annot_is_open(self):
  28841. r"""Class-aware wrapper for `::pdf_annot_is_open()`."""
  28842. return _mupdf.PdfAnnot_pdf_annot_is_open(self)
  28843. def pdf_annot_is_standard_stamp(self):
  28844. r"""Class-aware wrapper for `::pdf_annot_is_standard_stamp()`."""
  28845. return _mupdf.PdfAnnot_pdf_annot_is_standard_stamp(self)
  28846. def pdf_annot_line(self, a, b):
  28847. r"""Class-aware wrapper for `::pdf_annot_line()`."""
  28848. return _mupdf.PdfAnnot_pdf_annot_line(self, a, b)
  28849. def pdf_annot_line_caption(self):
  28850. r"""Class-aware wrapper for `::pdf_annot_line_caption()`."""
  28851. return _mupdf.PdfAnnot_pdf_annot_line_caption(self)
  28852. def pdf_annot_line_caption_offset(self):
  28853. r"""Class-aware wrapper for `::pdf_annot_line_caption_offset()`."""
  28854. return _mupdf.PdfAnnot_pdf_annot_line_caption_offset(self)
  28855. def pdf_annot_line_end_style(self):
  28856. r"""Class-aware wrapper for `::pdf_annot_line_end_style()`."""
  28857. return _mupdf.PdfAnnot_pdf_annot_line_end_style(self)
  28858. def pdf_annot_line_ending_styles(self, start_style, end_style):
  28859. r"""
  28860. Class-aware wrapper for `::pdf_annot_line_ending_styles()`.
  28861. This method has out-params. Python/C# wrappers look like:
  28862. `pdf_annot_line_ending_styles()` => `(enum pdf_line_ending start_style, enum pdf_line_ending end_style)`
  28863. """
  28864. return _mupdf.PdfAnnot_pdf_annot_line_ending_styles(self, start_style, end_style)
  28865. def pdf_annot_line_leader(self):
  28866. r"""Class-aware wrapper for `::pdf_annot_line_leader()`."""
  28867. return _mupdf.PdfAnnot_pdf_annot_line_leader(self)
  28868. def pdf_annot_line_leader_extension(self):
  28869. r"""Class-aware wrapper for `::pdf_annot_line_leader_extension()`."""
  28870. return _mupdf.PdfAnnot_pdf_annot_line_leader_extension(self)
  28871. def pdf_annot_line_leader_offset(self):
  28872. r"""Class-aware wrapper for `::pdf_annot_line_leader_offset()`."""
  28873. return _mupdf.PdfAnnot_pdf_annot_line_leader_offset(self)
  28874. def pdf_annot_line_start_style(self):
  28875. r"""Class-aware wrapper for `::pdf_annot_line_start_style()`."""
  28876. return _mupdf.PdfAnnot_pdf_annot_line_start_style(self)
  28877. def pdf_annot_modification_date(self):
  28878. r"""Class-aware wrapper for `::pdf_annot_modification_date()`."""
  28879. return _mupdf.PdfAnnot_pdf_annot_modification_date(self)
  28880. def pdf_annot_needs_resynthesis(self):
  28881. r"""Class-aware wrapper for `::pdf_annot_needs_resynthesis()`."""
  28882. return _mupdf.PdfAnnot_pdf_annot_needs_resynthesis(self)
  28883. def pdf_annot_obj(self):
  28884. r"""Class-aware wrapper for `::pdf_annot_obj()`."""
  28885. return _mupdf.PdfAnnot_pdf_annot_obj(self)
  28886. def pdf_annot_opacity(self):
  28887. r"""Class-aware wrapper for `::pdf_annot_opacity()`."""
  28888. return _mupdf.PdfAnnot_pdf_annot_opacity(self)
  28889. def pdf_annot_page(self):
  28890. r"""Class-aware wrapper for `::pdf_annot_page()`."""
  28891. return _mupdf.PdfAnnot_pdf_annot_page(self)
  28892. def pdf_annot_pop_and_discard_local_xref(self):
  28893. r"""Class-aware wrapper for `::pdf_annot_pop_and_discard_local_xref()`."""
  28894. return _mupdf.PdfAnnot_pdf_annot_pop_and_discard_local_xref(self)
  28895. def pdf_annot_pop_local_xref(self):
  28896. r"""Class-aware wrapper for `::pdf_annot_pop_local_xref()`."""
  28897. return _mupdf.PdfAnnot_pdf_annot_pop_local_xref(self)
  28898. def pdf_annot_popup(self):
  28899. r"""Class-aware wrapper for `::pdf_annot_popup()`."""
  28900. return _mupdf.PdfAnnot_pdf_annot_popup(self)
  28901. def pdf_annot_push_local_xref(self):
  28902. r"""Class-aware wrapper for `::pdf_annot_push_local_xref()`."""
  28903. return _mupdf.PdfAnnot_pdf_annot_push_local_xref(self)
  28904. def pdf_annot_quad_point(self, i):
  28905. r"""Class-aware wrapper for `::pdf_annot_quad_point()`."""
  28906. return _mupdf.PdfAnnot_pdf_annot_quad_point(self, i)
  28907. def pdf_annot_quad_point_count(self):
  28908. r"""Class-aware wrapper for `::pdf_annot_quad_point_count()`."""
  28909. return _mupdf.PdfAnnot_pdf_annot_quad_point_count(self)
  28910. def pdf_annot_quadding(self):
  28911. r"""Class-aware wrapper for `::pdf_annot_quadding()`."""
  28912. return _mupdf.PdfAnnot_pdf_annot_quadding(self)
  28913. def pdf_annot_rect(self):
  28914. r"""Class-aware wrapper for `::pdf_annot_rect()`."""
  28915. return _mupdf.PdfAnnot_pdf_annot_rect(self)
  28916. def pdf_annot_request_resynthesis(self):
  28917. r"""Class-aware wrapper for `::pdf_annot_request_resynthesis()`."""
  28918. return _mupdf.PdfAnnot_pdf_annot_request_resynthesis(self)
  28919. def pdf_annot_request_synthesis(self):
  28920. r"""Class-aware wrapper for `::pdf_annot_request_synthesis()`."""
  28921. return _mupdf.PdfAnnot_pdf_annot_request_synthesis(self)
  28922. def pdf_annot_rich_contents(self):
  28923. r"""Class-aware wrapper for `::pdf_annot_rich_contents()`."""
  28924. return _mupdf.PdfAnnot_pdf_annot_rich_contents(self)
  28925. def pdf_annot_rich_defaults(self):
  28926. r"""Class-aware wrapper for `::pdf_annot_rich_defaults()`."""
  28927. return _mupdf.PdfAnnot_pdf_annot_rich_defaults(self)
  28928. def pdf_annot_stamp_image_obj(self):
  28929. r"""Class-aware wrapper for `::pdf_annot_stamp_image_obj()`."""
  28930. return _mupdf.PdfAnnot_pdf_annot_stamp_image_obj(self)
  28931. def pdf_annot_transform(self):
  28932. r"""Class-aware wrapper for `::pdf_annot_transform()`."""
  28933. return _mupdf.PdfAnnot_pdf_annot_transform(self)
  28934. def pdf_annot_type(self):
  28935. r"""Class-aware wrapper for `::pdf_annot_type()`."""
  28936. return _mupdf.PdfAnnot_pdf_annot_type(self)
  28937. def pdf_annot_vertex(self, i):
  28938. r"""Class-aware wrapper for `::pdf_annot_vertex()`."""
  28939. return _mupdf.PdfAnnot_pdf_annot_vertex(self, i)
  28940. def pdf_annot_vertex_count(self):
  28941. r"""Class-aware wrapper for `::pdf_annot_vertex_count()`."""
  28942. return _mupdf.PdfAnnot_pdf_annot_vertex_count(self)
  28943. def pdf_apply_redaction(self, opts):
  28944. r"""Class-aware wrapper for `::pdf_apply_redaction()`."""
  28945. return _mupdf.PdfAnnot_pdf_apply_redaction(self, opts)
  28946. def pdf_bound_annot(self):
  28947. r"""Class-aware wrapper for `::pdf_bound_annot()`."""
  28948. return _mupdf.PdfAnnot_pdf_bound_annot(self)
  28949. def pdf_bound_widget(self):
  28950. r"""Class-aware wrapper for `::pdf_bound_widget()`."""
  28951. return _mupdf.PdfAnnot_pdf_bound_widget(self)
  28952. def pdf_choice_widget_is_multiselect(self):
  28953. r"""Class-aware wrapper for `::pdf_choice_widget_is_multiselect()`."""
  28954. return _mupdf.PdfAnnot_pdf_choice_widget_is_multiselect(self)
  28955. def pdf_choice_widget_options(self, exportval, opts):
  28956. r"""Class-aware wrapper for `::pdf_choice_widget_options()`."""
  28957. return _mupdf.PdfAnnot_pdf_choice_widget_options(self, exportval, opts)
  28958. def pdf_choice_widget_options2(self, exportval):
  28959. r"""
  28960. Class-aware wrapper for `::pdf_choice_widget_options2()`. Swig-friendly wrapper for pdf_choice_widget_options(), returns the
  28961. options directly in a vector.
  28962. """
  28963. return _mupdf.PdfAnnot_pdf_choice_widget_options2(self, exportval)
  28964. def pdf_choice_widget_set_value(self, n, opts):
  28965. r"""Class-aware wrapper for `::pdf_choice_widget_set_value()`."""
  28966. return _mupdf.PdfAnnot_pdf_choice_widget_set_value(self, n, opts)
  28967. def pdf_choice_widget_value(self, opts):
  28968. r"""Class-aware wrapper for `::pdf_choice_widget_value()`."""
  28969. return _mupdf.PdfAnnot_pdf_choice_widget_value(self, opts)
  28970. def pdf_clear_annot_border_dash(self):
  28971. r"""Class-aware wrapper for `::pdf_clear_annot_border_dash()`."""
  28972. return _mupdf.PdfAnnot_pdf_clear_annot_border_dash(self)
  28973. def pdf_clear_annot_ink_list(self):
  28974. r"""Class-aware wrapper for `::pdf_clear_annot_ink_list()`."""
  28975. return _mupdf.PdfAnnot_pdf_clear_annot_ink_list(self)
  28976. def pdf_clear_annot_quad_points(self):
  28977. r"""Class-aware wrapper for `::pdf_clear_annot_quad_points()`."""
  28978. return _mupdf.PdfAnnot_pdf_clear_annot_quad_points(self)
  28979. def pdf_clear_annot_vertices(self):
  28980. r"""Class-aware wrapper for `::pdf_clear_annot_vertices()`."""
  28981. return _mupdf.PdfAnnot_pdf_clear_annot_vertices(self)
  28982. def pdf_clear_signature(self):
  28983. r"""Class-aware wrapper for `::pdf_clear_signature()`."""
  28984. return _mupdf.PdfAnnot_pdf_clear_signature(self)
  28985. def pdf_dirty_annot(self):
  28986. r"""Class-aware wrapper for `::pdf_dirty_annot()`."""
  28987. return _mupdf.PdfAnnot_pdf_dirty_annot(self)
  28988. def pdf_edit_text_field_value(self, value, change, selStart, selEnd, newvalue):
  28989. r"""
  28990. Class-aware wrapper for `::pdf_edit_text_field_value()`.
  28991. This method has out-params. Python/C# wrappers look like:
  28992. `pdf_edit_text_field_value(const char *value, const char *change)` => `(int, int selStart, int selEnd, char *newvalue)`
  28993. """
  28994. return _mupdf.PdfAnnot_pdf_edit_text_field_value(self, value, change, selStart, selEnd, newvalue)
  28995. def pdf_get_widget_editing_state(self):
  28996. r"""Class-aware wrapper for `::pdf_get_widget_editing_state()`."""
  28997. return _mupdf.PdfAnnot_pdf_get_widget_editing_state(self)
  28998. def pdf_incremental_change_since_signing_widget(self):
  28999. r"""Class-aware wrapper for `::pdf_incremental_change_since_signing_widget()`."""
  29000. return _mupdf.PdfAnnot_pdf_incremental_change_since_signing_widget(self)
  29001. def pdf_new_display_list_from_annot(self):
  29002. r"""Class-aware wrapper for `::pdf_new_display_list_from_annot()`."""
  29003. return _mupdf.PdfAnnot_pdf_new_display_list_from_annot(self)
  29004. def pdf_new_pixmap_from_annot(self, ctm, cs, seps, alpha):
  29005. r"""Class-aware wrapper for `::pdf_new_pixmap_from_annot()`."""
  29006. return _mupdf.PdfAnnot_pdf_new_pixmap_from_annot(self, ctm, cs, seps, alpha)
  29007. def pdf_next_annot(self):
  29008. r"""Class-aware wrapper for `::pdf_next_annot()`."""
  29009. return _mupdf.PdfAnnot_pdf_next_annot(self)
  29010. def pdf_next_widget(self):
  29011. r"""Class-aware wrapper for `::pdf_next_widget()`."""
  29012. return _mupdf.PdfAnnot_pdf_next_widget(self)
  29013. def pdf_run_annot(self, dev, ctm, cookie):
  29014. r"""Class-aware wrapper for `::pdf_run_annot()`."""
  29015. return _mupdf.PdfAnnot_pdf_run_annot(self, dev, ctm, cookie)
  29016. def pdf_set_annot_active(self, active):
  29017. r"""Class-aware wrapper for `::pdf_set_annot_active()`."""
  29018. return _mupdf.PdfAnnot_pdf_set_annot_active(self, active)
  29019. def pdf_set_annot_appearance(self, appearance, state, ctm, bbox, res, contents):
  29020. r"""Class-aware wrapper for `::pdf_set_annot_appearance()`."""
  29021. return _mupdf.PdfAnnot_pdf_set_annot_appearance(self, appearance, state, ctm, bbox, res, contents)
  29022. def pdf_set_annot_appearance_from_display_list(self, appearance, state, ctm, list):
  29023. r"""Class-aware wrapper for `::pdf_set_annot_appearance_from_display_list()`."""
  29024. return _mupdf.PdfAnnot_pdf_set_annot_appearance_from_display_list(self, appearance, state, ctm, list)
  29025. def pdf_set_annot_author(self, author):
  29026. r"""Class-aware wrapper for `::pdf_set_annot_author()`."""
  29027. return _mupdf.PdfAnnot_pdf_set_annot_author(self, author)
  29028. def pdf_set_annot_border(self, width):
  29029. r"""Class-aware wrapper for `::pdf_set_annot_border()`."""
  29030. return _mupdf.PdfAnnot_pdf_set_annot_border(self, width)
  29031. def pdf_set_annot_border_effect(self, effect):
  29032. r"""Class-aware wrapper for `::pdf_set_annot_border_effect()`."""
  29033. return _mupdf.PdfAnnot_pdf_set_annot_border_effect(self, effect)
  29034. def pdf_set_annot_border_effect_intensity(self, intensity):
  29035. r"""Class-aware wrapper for `::pdf_set_annot_border_effect_intensity()`."""
  29036. return _mupdf.PdfAnnot_pdf_set_annot_border_effect_intensity(self, intensity)
  29037. def pdf_set_annot_border_style(self, style):
  29038. r"""Class-aware wrapper for `::pdf_set_annot_border_style()`."""
  29039. return _mupdf.PdfAnnot_pdf_set_annot_border_style(self, style)
  29040. def pdf_set_annot_border_width(self, width):
  29041. r"""Class-aware wrapper for `::pdf_set_annot_border_width()`."""
  29042. return _mupdf.PdfAnnot_pdf_set_annot_border_width(self, width)
  29043. def pdf_set_annot_callout_line2(self, callout):
  29044. r"""Class-aware wrapper for `::pdf_set_annot_callout_line2()`. SWIG-friendly wrapper for pdf_set_annot_callout_line()."""
  29045. return _mupdf.PdfAnnot_pdf_set_annot_callout_line2(self, callout)
  29046. def pdf_set_annot_callout_point(self, p):
  29047. r"""Class-aware wrapper for `::pdf_set_annot_callout_point()`."""
  29048. return _mupdf.PdfAnnot_pdf_set_annot_callout_point(self, p)
  29049. def pdf_set_annot_callout_style(self, style):
  29050. r"""Class-aware wrapper for `::pdf_set_annot_callout_style()`."""
  29051. return _mupdf.PdfAnnot_pdf_set_annot_callout_style(self, style)
  29052. def pdf_set_annot_color(self, n, color):
  29053. r"""Class-aware wrapper for `::pdf_set_annot_color()`."""
  29054. return _mupdf.PdfAnnot_pdf_set_annot_color(self, n, color)
  29055. def pdf_set_annot_contents(self, text):
  29056. r"""Class-aware wrapper for `::pdf_set_annot_contents()`."""
  29057. return _mupdf.PdfAnnot_pdf_set_annot_contents(self, text)
  29058. def pdf_set_annot_creation_date(self, time):
  29059. r"""Class-aware wrapper for `::pdf_set_annot_creation_date()`."""
  29060. return _mupdf.PdfAnnot_pdf_set_annot_creation_date(self, time)
  29061. def pdf_set_annot_default_appearance(self, font, size, n, color):
  29062. r"""Class-aware wrapper for `::pdf_set_annot_default_appearance()`."""
  29063. return _mupdf.PdfAnnot_pdf_set_annot_default_appearance(self, font, size, n, color)
  29064. def pdf_set_annot_filespec(self, obj):
  29065. r"""Class-aware wrapper for `::pdf_set_annot_filespec()`."""
  29066. return _mupdf.PdfAnnot_pdf_set_annot_filespec(self, obj)
  29067. def pdf_set_annot_flags(self, flags):
  29068. r"""Class-aware wrapper for `::pdf_set_annot_flags()`."""
  29069. return _mupdf.PdfAnnot_pdf_set_annot_flags(self, flags)
  29070. def pdf_set_annot_hidden_for_editing(self, hidden):
  29071. r"""Class-aware wrapper for `::pdf_set_annot_hidden_for_editing()`."""
  29072. return _mupdf.PdfAnnot_pdf_set_annot_hidden_for_editing(self, hidden)
  29073. def pdf_set_annot_hot(self, hot):
  29074. r"""Class-aware wrapper for `::pdf_set_annot_hot()`."""
  29075. return _mupdf.PdfAnnot_pdf_set_annot_hot(self, hot)
  29076. def pdf_set_annot_icon_name(self, name):
  29077. r"""Class-aware wrapper for `::pdf_set_annot_icon_name()`."""
  29078. return _mupdf.PdfAnnot_pdf_set_annot_icon_name(self, name)
  29079. def pdf_set_annot_ink_list(self, n, count, v):
  29080. r"""Class-aware wrapper for `::pdf_set_annot_ink_list()`."""
  29081. return _mupdf.PdfAnnot_pdf_set_annot_ink_list(self, n, count, v)
  29082. def pdf_set_annot_intent(self, it):
  29083. r"""Class-aware wrapper for `::pdf_set_annot_intent()`."""
  29084. return _mupdf.PdfAnnot_pdf_set_annot_intent(self, it)
  29085. def pdf_set_annot_interior_color(self, n, color):
  29086. r"""Class-aware wrapper for `::pdf_set_annot_interior_color()`."""
  29087. return _mupdf.PdfAnnot_pdf_set_annot_interior_color(self, n, color)
  29088. def pdf_set_annot_is_open(self, is_open):
  29089. r"""Class-aware wrapper for `::pdf_set_annot_is_open()`."""
  29090. return _mupdf.PdfAnnot_pdf_set_annot_is_open(self, is_open)
  29091. def pdf_set_annot_language(self, lang):
  29092. r"""Class-aware wrapper for `::pdf_set_annot_language()`."""
  29093. return _mupdf.PdfAnnot_pdf_set_annot_language(self, lang)
  29094. def pdf_set_annot_line(self, a, b):
  29095. r"""Class-aware wrapper for `::pdf_set_annot_line()`."""
  29096. return _mupdf.PdfAnnot_pdf_set_annot_line(self, a, b)
  29097. def pdf_set_annot_line_caption(self, cap):
  29098. r"""Class-aware wrapper for `::pdf_set_annot_line_caption()`."""
  29099. return _mupdf.PdfAnnot_pdf_set_annot_line_caption(self, cap)
  29100. def pdf_set_annot_line_caption_offset(self, offset):
  29101. r"""Class-aware wrapper for `::pdf_set_annot_line_caption_offset()`."""
  29102. return _mupdf.PdfAnnot_pdf_set_annot_line_caption_offset(self, offset)
  29103. def pdf_set_annot_line_end_style(self, e):
  29104. r"""Class-aware wrapper for `::pdf_set_annot_line_end_style()`."""
  29105. return _mupdf.PdfAnnot_pdf_set_annot_line_end_style(self, e)
  29106. def pdf_set_annot_line_ending_styles(self, start_style, end_style):
  29107. r"""Class-aware wrapper for `::pdf_set_annot_line_ending_styles()`."""
  29108. return _mupdf.PdfAnnot_pdf_set_annot_line_ending_styles(self, start_style, end_style)
  29109. def pdf_set_annot_line_leader(self, ll):
  29110. r"""Class-aware wrapper for `::pdf_set_annot_line_leader()`."""
  29111. return _mupdf.PdfAnnot_pdf_set_annot_line_leader(self, ll)
  29112. def pdf_set_annot_line_leader_extension(self, lle):
  29113. r"""Class-aware wrapper for `::pdf_set_annot_line_leader_extension()`."""
  29114. return _mupdf.PdfAnnot_pdf_set_annot_line_leader_extension(self, lle)
  29115. def pdf_set_annot_line_leader_offset(self, llo):
  29116. r"""Class-aware wrapper for `::pdf_set_annot_line_leader_offset()`."""
  29117. return _mupdf.PdfAnnot_pdf_set_annot_line_leader_offset(self, llo)
  29118. def pdf_set_annot_line_start_style(self, s):
  29119. r"""Class-aware wrapper for `::pdf_set_annot_line_start_style()`."""
  29120. return _mupdf.PdfAnnot_pdf_set_annot_line_start_style(self, s)
  29121. def pdf_set_annot_modification_date(self, time):
  29122. r"""Class-aware wrapper for `::pdf_set_annot_modification_date()`."""
  29123. return _mupdf.PdfAnnot_pdf_set_annot_modification_date(self, time)
  29124. def pdf_set_annot_opacity(self, opacity):
  29125. r"""Class-aware wrapper for `::pdf_set_annot_opacity()`."""
  29126. return _mupdf.PdfAnnot_pdf_set_annot_opacity(self, opacity)
  29127. def pdf_set_annot_popup(self, rect):
  29128. r"""Class-aware wrapper for `::pdf_set_annot_popup()`."""
  29129. return _mupdf.PdfAnnot_pdf_set_annot_popup(self, rect)
  29130. def pdf_set_annot_quad_points(self, n, qv):
  29131. r"""Class-aware wrapper for `::pdf_set_annot_quad_points()`."""
  29132. return _mupdf.PdfAnnot_pdf_set_annot_quad_points(self, n, qv)
  29133. def pdf_set_annot_quadding(self, q):
  29134. r"""Class-aware wrapper for `::pdf_set_annot_quadding()`."""
  29135. return _mupdf.PdfAnnot_pdf_set_annot_quadding(self, q)
  29136. def pdf_set_annot_rect(self, rect):
  29137. r"""Class-aware wrapper for `::pdf_set_annot_rect()`."""
  29138. return _mupdf.PdfAnnot_pdf_set_annot_rect(self, rect)
  29139. def pdf_set_annot_resynthesised(self):
  29140. r"""Class-aware wrapper for `::pdf_set_annot_resynthesised()`."""
  29141. return _mupdf.PdfAnnot_pdf_set_annot_resynthesised(self)
  29142. def pdf_set_annot_rich_contents(self, plain, rich):
  29143. r"""Class-aware wrapper for `::pdf_set_annot_rich_contents()`."""
  29144. return _mupdf.PdfAnnot_pdf_set_annot_rich_contents(self, plain, rich)
  29145. def pdf_set_annot_rich_defaults(self, style):
  29146. r"""Class-aware wrapper for `::pdf_set_annot_rich_defaults()`."""
  29147. return _mupdf.PdfAnnot_pdf_set_annot_rich_defaults(self, style)
  29148. def pdf_set_annot_stamp_image(self, image):
  29149. r"""Class-aware wrapper for `::pdf_set_annot_stamp_image()`."""
  29150. return _mupdf.PdfAnnot_pdf_set_annot_stamp_image(self, image)
  29151. def pdf_set_annot_stamp_image_obj(self, ref):
  29152. r"""Class-aware wrapper for `::pdf_set_annot_stamp_image_obj()`."""
  29153. return _mupdf.PdfAnnot_pdf_set_annot_stamp_image_obj(self, ref)
  29154. def pdf_set_annot_vertex(self, i, p):
  29155. r"""Class-aware wrapper for `::pdf_set_annot_vertex()`."""
  29156. return _mupdf.PdfAnnot_pdf_set_annot_vertex(self, i, p)
  29157. def pdf_set_annot_vertices(self, n, v):
  29158. r"""Class-aware wrapper for `::pdf_set_annot_vertices()`."""
  29159. return _mupdf.PdfAnnot_pdf_set_annot_vertices(self, n, v)
  29160. def pdf_set_choice_field_value(self, value):
  29161. r"""Class-aware wrapper for `::pdf_set_choice_field_value()`."""
  29162. return _mupdf.PdfAnnot_pdf_set_choice_field_value(self, value)
  29163. def pdf_set_text_field_value(self, value):
  29164. r"""Class-aware wrapper for `::pdf_set_text_field_value()`."""
  29165. return _mupdf.PdfAnnot_pdf_set_text_field_value(self, value)
  29166. def pdf_set_widget_editing_state(self, editing):
  29167. r"""Class-aware wrapper for `::pdf_set_widget_editing_state()`."""
  29168. return _mupdf.PdfAnnot_pdf_set_widget_editing_state(self, editing)
  29169. def pdf_sign_signature(self, signer, appearance_flags, graphic, reason, location):
  29170. r"""Class-aware wrapper for `::pdf_sign_signature()`."""
  29171. return _mupdf.PdfAnnot_pdf_sign_signature(self, signer, appearance_flags, graphic, reason, location)
  29172. def pdf_sign_signature_with_appearance(self, signer, date, disp_list):
  29173. r"""Class-aware wrapper for `::pdf_sign_signature_with_appearance()`."""
  29174. return _mupdf.PdfAnnot_pdf_sign_signature_with_appearance(self, signer, date, disp_list)
  29175. def pdf_text_widget_format(self):
  29176. r"""Class-aware wrapper for `::pdf_text_widget_format()`."""
  29177. return _mupdf.PdfAnnot_pdf_text_widget_format(self)
  29178. def pdf_text_widget_max_len(self):
  29179. r"""Class-aware wrapper for `::pdf_text_widget_max_len()`."""
  29180. return _mupdf.PdfAnnot_pdf_text_widget_max_len(self)
  29181. def pdf_toggle_widget(self):
  29182. r"""Class-aware wrapper for `::pdf_toggle_widget()`."""
  29183. return _mupdf.PdfAnnot_pdf_toggle_widget(self)
  29184. def pdf_update_annot(self):
  29185. r"""Class-aware wrapper for `::pdf_update_annot()`."""
  29186. return _mupdf.PdfAnnot_pdf_update_annot(self)
  29187. def pdf_update_widget(self):
  29188. r"""Class-aware wrapper for `::pdf_update_widget()`."""
  29189. return _mupdf.PdfAnnot_pdf_update_widget(self)
  29190. def pdf_validate_signature(self):
  29191. r"""Class-aware wrapper for `::pdf_validate_signature()`."""
  29192. return _mupdf.PdfAnnot_pdf_validate_signature(self)
  29193. def pdf_widget_is_readonly(self):
  29194. r"""Class-aware wrapper for `::pdf_widget_is_readonly()`."""
  29195. return _mupdf.PdfAnnot_pdf_widget_is_readonly(self)
  29196. def pdf_widget_is_signed(self):
  29197. r"""Class-aware wrapper for `::pdf_widget_is_signed()`."""
  29198. return _mupdf.PdfAnnot_pdf_widget_is_signed(self)
  29199. def pdf_widget_type(self):
  29200. r"""Class-aware wrapper for `::pdf_widget_type()`."""
  29201. return _mupdf.PdfAnnot_pdf_widget_type(self)
  29202. def __init__(self, *args):
  29203. r"""
  29204. *Overload 1:*
  29205. Copy constructor using `pdf_keep_annot()`.
  29206. |
  29207. *Overload 2:*
  29208. Constructor using raw copy of pre-existing `::pdf_annot`.
  29209. |
  29210. *Overload 3:*
  29211. Constructor using raw copy of pre-existing `::pdf_annot`.
  29212. """
  29213. _mupdf.PdfAnnot_swiginit(self, _mupdf.new_PdfAnnot(*args))
  29214. __swig_destroy__ = _mupdf.delete_PdfAnnot
  29215. def m_internal_value(self):
  29216. r"""Return numerical value of .m_internal; helps with Python debugging."""
  29217. return _mupdf.PdfAnnot_m_internal_value(self)
  29218. def __nonzero__(self):
  29219. return _mupdf.PdfAnnot___nonzero__(self)
  29220. __bool__ = __nonzero__
  29221. m_internal = property(_mupdf.PdfAnnot_m_internal_get, _mupdf.PdfAnnot_m_internal_set, doc=r"""Pointer to wrapped data.""")
  29222. s_num_instances = property(_mupdf.PdfAnnot_s_num_instances_get, _mupdf.PdfAnnot_s_num_instances_set)
  29223. # Register PdfAnnot in _mupdf:
  29224. _mupdf.PdfAnnot_swigregister(PdfAnnot)
  29225. class PdfCleanOptions(object):
  29226. r"""Wrapper class for struct `pdf_clean_options`."""
  29227. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  29228. __repr__ = _swig_repr
  29229. def write_opwd_utf8_set(self, text):
  29230. r"""Copies <text> into write.opwd_utf8[]."""
  29231. return _mupdf.PdfCleanOptions_write_opwd_utf8_set(self, text)
  29232. def write_upwd_utf8_set(self, text):
  29233. r"""Copies <text> into upwd_utf8[]."""
  29234. return _mupdf.PdfCleanOptions_write_upwd_utf8_set(self, text)
  29235. def __init__(self, *args):
  29236. r"""
  29237. *Overload 1:*
  29238. Default constructor, makes copy of pdf_default_write_options.
  29239. |
  29240. *Overload 2:*
  29241. Copy constructor using raw memcopy().
  29242. |
  29243. *Overload 3:*
  29244. Constructor using raw copy of pre-existing `::pdf_clean_options`.
  29245. |
  29246. *Overload 4:*
  29247. Constructor using raw copy of pre-existing `::pdf_clean_options`.
  29248. """
  29249. _mupdf.PdfCleanOptions_swiginit(self, _mupdf.new_PdfCleanOptions(*args))
  29250. def internal(self, *args):
  29251. r"""
  29252. *Overload 1:*
  29253. Access as underlying struct.
  29254. |
  29255. *Overload 2:*
  29256. Access as underlying struct.
  29257. """
  29258. return _mupdf.PdfCleanOptions_internal(self, *args)
  29259. __swig_destroy__ = _mupdf.delete_PdfCleanOptions
  29260. write = property(_mupdf.PdfCleanOptions_write_get, _mupdf.PdfCleanOptions_write_set)
  29261. image = property(_mupdf.PdfCleanOptions_image_get, _mupdf.PdfCleanOptions_image_set)
  29262. subset_fonts = property(_mupdf.PdfCleanOptions_subset_fonts_get, _mupdf.PdfCleanOptions_subset_fonts_set)
  29263. structure = property(_mupdf.PdfCleanOptions_structure_get, _mupdf.PdfCleanOptions_structure_set)
  29264. s_num_instances = property(_mupdf.PdfCleanOptions_s_num_instances_get, _mupdf.PdfCleanOptions_s_num_instances_set)
  29265. def to_string(self):
  29266. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  29267. return _mupdf.PdfCleanOptions_to_string(self)
  29268. def __eq__(self, rhs):
  29269. r"""Comparison method."""
  29270. return _mupdf.PdfCleanOptions___eq__(self, rhs)
  29271. def __ne__(self, rhs):
  29272. r"""Comparison method."""
  29273. return _mupdf.PdfCleanOptions___ne__(self, rhs)
  29274. # Register PdfCleanOptions in _mupdf:
  29275. _mupdf.PdfCleanOptions_swigregister(PdfCleanOptions)
  29276. class PdfCmap(object):
  29277. r"""Wrapper class for struct `pdf_cmap`."""
  29278. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  29279. __repr__ = _swig_repr
  29280. def pdf_add_codespace(self, low, high, n):
  29281. r"""Class-aware wrapper for `::pdf_add_codespace()`."""
  29282. return _mupdf.PdfCmap_pdf_add_codespace(self, low, high, n)
  29283. def pdf_cmap_size(self):
  29284. r"""Class-aware wrapper for `::pdf_cmap_size()`."""
  29285. return _mupdf.PdfCmap_pdf_cmap_size(self)
  29286. def pdf_cmap_wmode(self):
  29287. r"""Class-aware wrapper for `::pdf_cmap_wmode()`."""
  29288. return _mupdf.PdfCmap_pdf_cmap_wmode(self)
  29289. def pdf_decode_cmap(self, s, e, cpt):
  29290. r"""
  29291. Class-aware wrapper for `::pdf_decode_cmap()`.
  29292. This method has out-params. Python/C# wrappers look like:
  29293. `pdf_decode_cmap(unsigned char *s, unsigned char *e)` => `(int, unsigned int cpt)`
  29294. """
  29295. return _mupdf.PdfCmap_pdf_decode_cmap(self, s, e, cpt)
  29296. def pdf_lookup_cmap(self, cpt):
  29297. r"""Class-aware wrapper for `::pdf_lookup_cmap()`."""
  29298. return _mupdf.PdfCmap_pdf_lookup_cmap(self, cpt)
  29299. def pdf_lookup_cmap_full(self, cpt, out):
  29300. r"""
  29301. Class-aware wrapper for `::pdf_lookup_cmap_full()`.
  29302. This method has out-params. Python/C# wrappers look like:
  29303. `pdf_lookup_cmap_full(unsigned int cpt)` => `(int, int out)`
  29304. """
  29305. return _mupdf.PdfCmap_pdf_lookup_cmap_full(self, cpt, out)
  29306. def pdf_map_one_to_many(self, one, many, len):
  29307. r"""
  29308. Class-aware wrapper for `::pdf_map_one_to_many()`.
  29309. This method has out-params. Python/C# wrappers look like:
  29310. `pdf_map_one_to_many(unsigned int one, size_t len)` => int many
  29311. """
  29312. return _mupdf.PdfCmap_pdf_map_one_to_many(self, one, many, len)
  29313. def pdf_map_range_to_range(self, srclo, srchi, dstlo):
  29314. r"""Class-aware wrapper for `::pdf_map_range_to_range()`."""
  29315. return _mupdf.PdfCmap_pdf_map_range_to_range(self, srclo, srchi, dstlo)
  29316. def pdf_set_cmap_wmode(self, wmode):
  29317. r"""Class-aware wrapper for `::pdf_set_cmap_wmode()`."""
  29318. return _mupdf.PdfCmap_pdf_set_cmap_wmode(self, wmode)
  29319. def pdf_set_usecmap(self, usecmap):
  29320. r"""Class-aware wrapper for `::pdf_set_usecmap()`."""
  29321. return _mupdf.PdfCmap_pdf_set_usecmap(self, usecmap)
  29322. def pdf_sort_cmap(self):
  29323. r"""Class-aware wrapper for `::pdf_sort_cmap()`."""
  29324. return _mupdf.PdfCmap_pdf_sort_cmap(self)
  29325. def __init__(self, *args):
  29326. r"""
  29327. *Overload 1:*
  29328. == Constructors. Constructor using `pdf_new_cmap()`.
  29329. |
  29330. *Overload 2:*
  29331. Constructor using `pdf_new_identity_cmap()`.
  29332. |
  29333. *Overload 3:*
  29334. Copy constructor using `pdf_keep_cmap()`.
  29335. |
  29336. *Overload 4:*
  29337. Constructor using raw copy of pre-existing `::pdf_cmap`.
  29338. """
  29339. _mupdf.PdfCmap_swiginit(self, _mupdf.new_PdfCmap(*args))
  29340. __swig_destroy__ = _mupdf.delete_PdfCmap
  29341. def m_internal_value(self):
  29342. r"""Return numerical value of .m_internal; helps with Python debugging."""
  29343. return _mupdf.PdfCmap_m_internal_value(self)
  29344. def __nonzero__(self):
  29345. return _mupdf.PdfCmap___nonzero__(self)
  29346. __bool__ = __nonzero__
  29347. m_internal = property(_mupdf.PdfCmap_m_internal_get, _mupdf.PdfCmap_m_internal_set, doc=r"""Pointer to wrapped data.""")
  29348. s_num_instances = property(_mupdf.PdfCmap_s_num_instances_get, _mupdf.PdfCmap_s_num_instances_set)
  29349. # Register PdfCmap in _mupdf:
  29350. _mupdf.PdfCmap_swigregister(PdfCmap)
  29351. class PdfColorFilterOptions(object):
  29352. r"""Wrapper class for struct `pdf_color_filter_options`. Not copyable or assignable."""
  29353. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  29354. __repr__ = _swig_repr
  29355. def __init__(self, *args):
  29356. r"""
  29357. *Overload 1:*
  29358. Default constructor, sets `m_internal` to null.
  29359. |
  29360. *Overload 2:*
  29361. Constructor using raw copy of pre-existing `::pdf_color_filter_options`.
  29362. """
  29363. _mupdf.PdfColorFilterOptions_swiginit(self, _mupdf.new_PdfColorFilterOptions(*args))
  29364. __swig_destroy__ = _mupdf.delete_PdfColorFilterOptions
  29365. def m_internal_value(self):
  29366. r"""Return numerical value of .m_internal; helps with Python debugging."""
  29367. return _mupdf.PdfColorFilterOptions_m_internal_value(self)
  29368. def __nonzero__(self):
  29369. return _mupdf.PdfColorFilterOptions___nonzero__(self)
  29370. __bool__ = __nonzero__
  29371. m_internal = property(_mupdf.PdfColorFilterOptions_m_internal_get, _mupdf.PdfColorFilterOptions_m_internal_set, doc=r"""Pointer to wrapped data.""")
  29372. s_num_instances = property(_mupdf.PdfColorFilterOptions_s_num_instances_get, _mupdf.PdfColorFilterOptions_s_num_instances_set)
  29373. # Register PdfColorFilterOptions in _mupdf:
  29374. _mupdf.PdfColorFilterOptions_swigregister(PdfColorFilterOptions)
  29375. class PdfColorspaceResourceKey(object):
  29376. r"""Wrapper class for struct `pdf_colorspace_resource_key`. Not copyable or assignable."""
  29377. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  29378. __repr__ = _swig_repr
  29379. def __init__(self, *args):
  29380. r"""
  29381. *Overload 1:*
  29382. Default constructor, sets `m_internal` to null.
  29383. |
  29384. *Overload 2:*
  29385. Constructor using raw copy of pre-existing `::pdf_colorspace_resource_key`.
  29386. """
  29387. _mupdf.PdfColorspaceResourceKey_swiginit(self, _mupdf.new_PdfColorspaceResourceKey(*args))
  29388. __swig_destroy__ = _mupdf.delete_PdfColorspaceResourceKey
  29389. def m_internal_value(self):
  29390. r"""Return numerical value of .m_internal; helps with Python debugging."""
  29391. return _mupdf.PdfColorspaceResourceKey_m_internal_value(self)
  29392. def __nonzero__(self):
  29393. return _mupdf.PdfColorspaceResourceKey___nonzero__(self)
  29394. __bool__ = __nonzero__
  29395. m_internal = property(_mupdf.PdfColorspaceResourceKey_m_internal_get, _mupdf.PdfColorspaceResourceKey_m_internal_set, doc=r"""Pointer to wrapped data.""")
  29396. s_num_instances = property(_mupdf.PdfColorspaceResourceKey_s_num_instances_get, _mupdf.PdfColorspaceResourceKey_s_num_instances_set)
  29397. # Register PdfColorspaceResourceKey in _mupdf:
  29398. _mupdf.PdfColorspaceResourceKey_swigregister(PdfColorspaceResourceKey)
  29399. class PdfCrypt(object):
  29400. r"""Wrapper class for struct `pdf_crypt`. Not copyable or assignable."""
  29401. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  29402. __repr__ = _swig_repr
  29403. def pdf_crypt_encrypt_metadata(self):
  29404. r"""Class-aware wrapper for `::pdf_crypt_encrypt_metadata()`."""
  29405. return _mupdf.PdfCrypt_pdf_crypt_encrypt_metadata(self)
  29406. def pdf_crypt_key(self):
  29407. r"""Class-aware wrapper for `::pdf_crypt_key()`."""
  29408. return _mupdf.PdfCrypt_pdf_crypt_key(self)
  29409. def pdf_crypt_length(self):
  29410. r"""Class-aware wrapper for `::pdf_crypt_length()`."""
  29411. return _mupdf.PdfCrypt_pdf_crypt_length(self)
  29412. def pdf_crypt_method(self):
  29413. r"""Class-aware wrapper for `::pdf_crypt_method()`."""
  29414. return _mupdf.PdfCrypt_pdf_crypt_method(self)
  29415. def pdf_crypt_obj(self, obj, num, gen):
  29416. r"""Class-aware wrapper for `::pdf_crypt_obj()`."""
  29417. return _mupdf.PdfCrypt_pdf_crypt_obj(self, obj, num, gen)
  29418. def pdf_crypt_owner_encryption(self):
  29419. r"""Class-aware wrapper for `::pdf_crypt_owner_encryption()`."""
  29420. return _mupdf.PdfCrypt_pdf_crypt_owner_encryption(self)
  29421. def pdf_crypt_owner_password(self):
  29422. r"""Class-aware wrapper for `::pdf_crypt_owner_password()`."""
  29423. return _mupdf.PdfCrypt_pdf_crypt_owner_password(self)
  29424. def pdf_crypt_permissions(self):
  29425. r"""Class-aware wrapper for `::pdf_crypt_permissions()`."""
  29426. return _mupdf.PdfCrypt_pdf_crypt_permissions(self)
  29427. def pdf_crypt_permissions_encryption(self):
  29428. r"""Class-aware wrapper for `::pdf_crypt_permissions_encryption()`."""
  29429. return _mupdf.PdfCrypt_pdf_crypt_permissions_encryption(self)
  29430. def pdf_crypt_revision(self):
  29431. r"""Class-aware wrapper for `::pdf_crypt_revision()`."""
  29432. return _mupdf.PdfCrypt_pdf_crypt_revision(self)
  29433. def pdf_crypt_stream_method(self):
  29434. r"""Class-aware wrapper for `::pdf_crypt_stream_method()`."""
  29435. return _mupdf.PdfCrypt_pdf_crypt_stream_method(self)
  29436. def pdf_crypt_string_method(self):
  29437. r"""Class-aware wrapper for `::pdf_crypt_string_method()`."""
  29438. return _mupdf.PdfCrypt_pdf_crypt_string_method(self)
  29439. def pdf_crypt_user_encryption(self):
  29440. r"""Class-aware wrapper for `::pdf_crypt_user_encryption()`."""
  29441. return _mupdf.PdfCrypt_pdf_crypt_user_encryption(self)
  29442. def pdf_crypt_user_password(self):
  29443. r"""Class-aware wrapper for `::pdf_crypt_user_password()`."""
  29444. return _mupdf.PdfCrypt_pdf_crypt_user_password(self)
  29445. def pdf_crypt_version(self):
  29446. r"""Class-aware wrapper for `::pdf_crypt_version()`."""
  29447. return _mupdf.PdfCrypt_pdf_crypt_version(self)
  29448. def pdf_encrypt_data(self, num, gen, fmt_str_out, arg, s, n):
  29449. r"""Class-aware wrapper for `::pdf_encrypt_data()`."""
  29450. return _mupdf.PdfCrypt_pdf_encrypt_data(self, num, gen, fmt_str_out, arg, s, n)
  29451. def pdf_encrypted_len(self, num, gen, len):
  29452. r"""Class-aware wrapper for `::pdf_encrypted_len()`."""
  29453. return _mupdf.PdfCrypt_pdf_encrypted_len(self, num, gen, len)
  29454. def __init__(self, *args):
  29455. r"""
  29456. *Overload 1:*
  29457. == Constructors. Constructor using `pdf_new_crypt()`.
  29458. |
  29459. *Overload 2:*
  29460. Constructor using `pdf_new_encrypt()`.
  29461. |
  29462. *Overload 3:*
  29463. Default constructor, sets `m_internal` to null.
  29464. |
  29465. *Overload 4:*
  29466. Constructor using raw copy of pre-existing `::pdf_crypt`.
  29467. """
  29468. _mupdf.PdfCrypt_swiginit(self, _mupdf.new_PdfCrypt(*args))
  29469. __swig_destroy__ = _mupdf.delete_PdfCrypt
  29470. def m_internal_value(self):
  29471. r"""Return numerical value of .m_internal; helps with Python debugging."""
  29472. return _mupdf.PdfCrypt_m_internal_value(self)
  29473. def __nonzero__(self):
  29474. return _mupdf.PdfCrypt___nonzero__(self)
  29475. __bool__ = __nonzero__
  29476. m_internal = property(_mupdf.PdfCrypt_m_internal_get, _mupdf.PdfCrypt_m_internal_set, doc=r"""Pointer to wrapped data.""")
  29477. s_num_instances = property(_mupdf.PdfCrypt_s_num_instances_get, _mupdf.PdfCrypt_s_num_instances_set)
  29478. # Register PdfCrypt in _mupdf:
  29479. _mupdf.PdfCrypt_swigregister(PdfCrypt)
  29480. class PdfCsi(object):
  29481. r"""Wrapper class for struct `pdf_csi`. Not copyable or assignable."""
  29482. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  29483. __repr__ = _swig_repr
  29484. def __init__(self, *args):
  29485. r"""
  29486. *Overload 1:*
  29487. Default constructor, sets `m_internal` to null.
  29488. |
  29489. *Overload 2:*
  29490. Constructor using raw copy of pre-existing `::pdf_csi`.
  29491. """
  29492. _mupdf.PdfCsi_swiginit(self, _mupdf.new_PdfCsi(*args))
  29493. __swig_destroy__ = _mupdf.delete_PdfCsi
  29494. def m_internal_value(self):
  29495. r"""Return numerical value of .m_internal; helps with Python debugging."""
  29496. return _mupdf.PdfCsi_m_internal_value(self)
  29497. def __nonzero__(self):
  29498. return _mupdf.PdfCsi___nonzero__(self)
  29499. __bool__ = __nonzero__
  29500. m_internal = property(_mupdf.PdfCsi_m_internal_get, _mupdf.PdfCsi_m_internal_set, doc=r"""Pointer to wrapped data.""")
  29501. s_num_instances = property(_mupdf.PdfCsi_s_num_instances_get, _mupdf.PdfCsi_s_num_instances_set)
  29502. # Register PdfCsi in _mupdf:
  29503. _mupdf.PdfCsi_swigregister(PdfCsi)
  29504. class PdfCycleList(object):
  29505. r"""Wrapper class for struct `pdf_cycle_list`. Not copyable or assignable."""
  29506. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  29507. __repr__ = _swig_repr
  29508. def pdf_cycle(self, prev, obj):
  29509. r"""Class-aware wrapper for `::pdf_cycle()`."""
  29510. return _mupdf.PdfCycleList_pdf_cycle(self, prev, obj)
  29511. def __init__(self, *args):
  29512. r"""
  29513. *Overload 1:*
  29514. Default constructor, sets `m_internal` to null.
  29515. |
  29516. *Overload 2:*
  29517. Constructor using raw copy of pre-existing `::pdf_cycle_list`.
  29518. """
  29519. _mupdf.PdfCycleList_swiginit(self, _mupdf.new_PdfCycleList(*args))
  29520. __swig_destroy__ = _mupdf.delete_PdfCycleList
  29521. def m_internal_value(self):
  29522. r"""Return numerical value of .m_internal; helps with Python debugging."""
  29523. return _mupdf.PdfCycleList_m_internal_value(self)
  29524. def __nonzero__(self):
  29525. return _mupdf.PdfCycleList___nonzero__(self)
  29526. __bool__ = __nonzero__
  29527. m_internal = property(_mupdf.PdfCycleList_m_internal_get, _mupdf.PdfCycleList_m_internal_set, doc=r"""Pointer to wrapped data.""")
  29528. s_num_instances = property(_mupdf.PdfCycleList_s_num_instances_get, _mupdf.PdfCycleList_s_num_instances_set)
  29529. # Register PdfCycleList in _mupdf:
  29530. _mupdf.PdfCycleList_swigregister(PdfCycleList)
  29531. class PdfDocEvent(object):
  29532. r"""Wrapper class for struct `pdf_doc_event`. Not copyable or assignable."""
  29533. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  29534. __repr__ = _swig_repr
  29535. def pdf_access_exec_menu_item_event(self):
  29536. r"""Class-aware wrapper for `::pdf_access_exec_menu_item_event()`."""
  29537. return _mupdf.PdfDocEvent_pdf_access_exec_menu_item_event(self)
  29538. def __init__(self, *args):
  29539. r"""
  29540. *Overload 1:*
  29541. Default constructor, sets `m_internal` to null.
  29542. |
  29543. *Overload 2:*
  29544. Constructor using raw copy of pre-existing `::pdf_doc_event`.
  29545. """
  29546. _mupdf.PdfDocEvent_swiginit(self, _mupdf.new_PdfDocEvent(*args))
  29547. __swig_destroy__ = _mupdf.delete_PdfDocEvent
  29548. def m_internal_value(self):
  29549. r"""Return numerical value of .m_internal; helps with Python debugging."""
  29550. return _mupdf.PdfDocEvent_m_internal_value(self)
  29551. def __nonzero__(self):
  29552. return _mupdf.PdfDocEvent___nonzero__(self)
  29553. __bool__ = __nonzero__
  29554. m_internal = property(_mupdf.PdfDocEvent_m_internal_get, _mupdf.PdfDocEvent_m_internal_set, doc=r"""Pointer to wrapped data.""")
  29555. s_num_instances = property(_mupdf.PdfDocEvent_s_num_instances_get, _mupdf.PdfDocEvent_s_num_instances_set)
  29556. # Register PdfDocEvent in _mupdf:
  29557. _mupdf.PdfDocEvent_swigregister(PdfDocEvent)
  29558. class PdfDocument(object):
  29559. r"""Wrapper class for struct `pdf_document`."""
  29560. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  29561. __repr__ = _swig_repr
  29562. def pdf_abandon_operation(self):
  29563. r"""Class-aware wrapper for `::pdf_abandon_operation()`."""
  29564. return _mupdf.PdfDocument_pdf_abandon_operation(self)
  29565. def pdf_add_cid_font(self, font):
  29566. r"""Class-aware wrapper for `::pdf_add_cid_font()`."""
  29567. return _mupdf.PdfDocument_pdf_add_cid_font(self, font)
  29568. def pdf_add_cjk_font(self, font, script, wmode, serif):
  29569. r"""Class-aware wrapper for `::pdf_add_cjk_font()`."""
  29570. return _mupdf.PdfDocument_pdf_add_cjk_font(self, font, script, wmode, serif)
  29571. def pdf_add_colorspace(self, cs):
  29572. r"""Class-aware wrapper for `::pdf_add_colorspace()`."""
  29573. return _mupdf.PdfDocument_pdf_add_colorspace(self, cs)
  29574. def pdf_add_embedded_file(self, filename, mimetype, contents, created, modified, add_checksum):
  29575. r"""Class-aware wrapper for `::pdf_add_embedded_file()`."""
  29576. return _mupdf.PdfDocument_pdf_add_embedded_file(self, filename, mimetype, contents, created, modified, add_checksum)
  29577. def pdf_add_image(self, image):
  29578. r"""Class-aware wrapper for `::pdf_add_image()`."""
  29579. return _mupdf.PdfDocument_pdf_add_image(self, image)
  29580. def pdf_add_journal_fragment(self, parent, copy, copy_stream, newobj):
  29581. r"""Class-aware wrapper for `::pdf_add_journal_fragment()`."""
  29582. return _mupdf.PdfDocument_pdf_add_journal_fragment(self, parent, copy, copy_stream, newobj)
  29583. def pdf_add_new_array(self, initial):
  29584. r"""Class-aware wrapper for `::pdf_add_new_array()`."""
  29585. return _mupdf.PdfDocument_pdf_add_new_array(self, initial)
  29586. def pdf_add_new_dict(self, initial):
  29587. r"""Class-aware wrapper for `::pdf_add_new_dict()`."""
  29588. return _mupdf.PdfDocument_pdf_add_new_dict(self, initial)
  29589. def pdf_add_object(self, obj):
  29590. r"""Class-aware wrapper for `::pdf_add_object()`."""
  29591. return _mupdf.PdfDocument_pdf_add_object(self, obj)
  29592. def pdf_add_page(self, mediabox, rotate, resources, contents):
  29593. r"""Class-aware wrapper for `::pdf_add_page()`."""
  29594. return _mupdf.PdfDocument_pdf_add_page(self, mediabox, rotate, resources, contents)
  29595. def pdf_add_simple_font(self, font, encoding):
  29596. r"""Class-aware wrapper for `::pdf_add_simple_font()`."""
  29597. return _mupdf.PdfDocument_pdf_add_simple_font(self, font, encoding)
  29598. def pdf_add_stream(self, buf, obj, compressed):
  29599. r"""Class-aware wrapper for `::pdf_add_stream()`."""
  29600. return _mupdf.PdfDocument_pdf_add_stream(self, buf, obj, compressed)
  29601. def pdf_add_substitute_font(self, font):
  29602. r"""Class-aware wrapper for `::pdf_add_substitute_font()`."""
  29603. return _mupdf.PdfDocument_pdf_add_substitute_font(self, font)
  29604. def pdf_annot_field_event_keystroke(self, annot, evt):
  29605. r"""Class-aware wrapper for `::pdf_annot_field_event_keystroke()`."""
  29606. return _mupdf.PdfDocument_pdf_annot_field_event_keystroke(self, annot, evt)
  29607. def pdf_authenticate_password(self, pw):
  29608. r"""Class-aware wrapper for `::pdf_authenticate_password()`."""
  29609. return _mupdf.PdfDocument_pdf_authenticate_password(self, pw)
  29610. def pdf_bake_document(self, bake_annots, bake_widgets):
  29611. r"""Class-aware wrapper for `::pdf_bake_document()`."""
  29612. return _mupdf.PdfDocument_pdf_bake_document(self, bake_annots, bake_widgets)
  29613. def pdf_begin_implicit_operation(self):
  29614. r"""Class-aware wrapper for `::pdf_begin_implicit_operation()`."""
  29615. return _mupdf.PdfDocument_pdf_begin_implicit_operation(self)
  29616. def pdf_begin_operation(self, operation):
  29617. r"""Class-aware wrapper for `::pdf_begin_operation()`."""
  29618. return _mupdf.PdfDocument_pdf_begin_operation(self, operation)
  29619. def pdf_calculate_form(self):
  29620. r"""Class-aware wrapper for `::pdf_calculate_form()`."""
  29621. return _mupdf.PdfDocument_pdf_calculate_form(self)
  29622. def pdf_can_be_saved_incrementally(self):
  29623. r"""Class-aware wrapper for `::pdf_can_be_saved_incrementally()`."""
  29624. return _mupdf.PdfDocument_pdf_can_be_saved_incrementally(self)
  29625. def pdf_can_redo(self):
  29626. r"""Class-aware wrapper for `::pdf_can_redo()`."""
  29627. return _mupdf.PdfDocument_pdf_can_redo(self)
  29628. def pdf_can_undo(self):
  29629. r"""Class-aware wrapper for `::pdf_can_undo()`."""
  29630. return _mupdf.PdfDocument_pdf_can_undo(self)
  29631. def pdf_clear_xref(self):
  29632. r"""Class-aware wrapper for `::pdf_clear_xref()`."""
  29633. return _mupdf.PdfDocument_pdf_clear_xref(self)
  29634. def pdf_clear_xref_to_mark(self):
  29635. r"""Class-aware wrapper for `::pdf_clear_xref_to_mark()`."""
  29636. return _mupdf.PdfDocument_pdf_clear_xref_to_mark(self)
  29637. def pdf_count_document_associated_files(self):
  29638. r"""Class-aware wrapper for `::pdf_count_document_associated_files()`."""
  29639. return _mupdf.PdfDocument_pdf_count_document_associated_files(self)
  29640. def pdf_count_layer_config_ui(self):
  29641. r"""Class-aware wrapper for `::pdf_count_layer_config_ui()`."""
  29642. return _mupdf.PdfDocument_pdf_count_layer_config_ui(self)
  29643. def pdf_count_layer_configs(self):
  29644. r"""Class-aware wrapper for `::pdf_count_layer_configs()`."""
  29645. return _mupdf.PdfDocument_pdf_count_layer_configs(self)
  29646. def pdf_count_layers(self):
  29647. r"""Class-aware wrapper for `::pdf_count_layers()`."""
  29648. return _mupdf.PdfDocument_pdf_count_layers(self)
  29649. def pdf_count_objects(self):
  29650. r"""Class-aware wrapper for `::pdf_count_objects()`."""
  29651. return _mupdf.PdfDocument_pdf_count_objects(self)
  29652. def pdf_count_pages(self):
  29653. r"""Class-aware wrapper for `::pdf_count_pages()`."""
  29654. return _mupdf.PdfDocument_pdf_count_pages(self)
  29655. def pdf_count_q_balance(self, res, stm, prepend, append):
  29656. r"""
  29657. Class-aware wrapper for `::pdf_count_q_balance()`.
  29658. This method has out-params. Python/C# wrappers look like:
  29659. `pdf_count_q_balance(::pdf_obj *res, ::pdf_obj *stm)` => `(int prepend, int append)`
  29660. """
  29661. return _mupdf.PdfDocument_pdf_count_q_balance(self, res, stm, prepend, append)
  29662. def pdf_count_signatures(self):
  29663. r"""Class-aware wrapper for `::pdf_count_signatures()`."""
  29664. return _mupdf.PdfDocument_pdf_count_signatures(self)
  29665. def pdf_count_unsaved_versions(self):
  29666. r"""Class-aware wrapper for `::pdf_count_unsaved_versions()`."""
  29667. return _mupdf.PdfDocument_pdf_count_unsaved_versions(self)
  29668. def pdf_count_versions(self):
  29669. r"""Class-aware wrapper for `::pdf_count_versions()`."""
  29670. return _mupdf.PdfDocument_pdf_count_versions(self)
  29671. def pdf_create_field_name(self, prefix, buf, len):
  29672. r"""Class-aware wrapper for `::pdf_create_field_name()`."""
  29673. return _mupdf.PdfDocument_pdf_create_field_name(self, prefix, buf, len)
  29674. def pdf_create_object(self):
  29675. r"""Class-aware wrapper for `::pdf_create_object()`."""
  29676. return _mupdf.PdfDocument_pdf_create_object(self)
  29677. def pdf_debug_doc_changes(self):
  29678. r"""Class-aware wrapper for `::pdf_debug_doc_changes()`."""
  29679. return _mupdf.PdfDocument_pdf_debug_doc_changes(self)
  29680. def pdf_delete_object(self, num):
  29681. r"""Class-aware wrapper for `::pdf_delete_object()`."""
  29682. return _mupdf.PdfDocument_pdf_delete_object(self, num)
  29683. def pdf_delete_page(self, number):
  29684. r"""Class-aware wrapper for `::pdf_delete_page()`."""
  29685. return _mupdf.PdfDocument_pdf_delete_page(self, number)
  29686. def pdf_delete_page_labels(self, index):
  29687. r"""Class-aware wrapper for `::pdf_delete_page_labels()`."""
  29688. return _mupdf.PdfDocument_pdf_delete_page_labels(self, index)
  29689. def pdf_delete_page_range(self, start, end):
  29690. r"""Class-aware wrapper for `::pdf_delete_page_range()`."""
  29691. return _mupdf.PdfDocument_pdf_delete_page_range(self, start, end)
  29692. def pdf_deselect_layer_config_ui(self, ui):
  29693. r"""Class-aware wrapper for `::pdf_deselect_layer_config_ui()`."""
  29694. return _mupdf.PdfDocument_pdf_deselect_layer_config_ui(self, ui)
  29695. def pdf_deserialise_journal(self, stm):
  29696. r"""Class-aware wrapper for `::pdf_deserialise_journal()`."""
  29697. return _mupdf.PdfDocument_pdf_deserialise_journal(self, stm)
  29698. def pdf_disable_js(self):
  29699. r"""Class-aware wrapper for `::pdf_disable_js()`."""
  29700. return _mupdf.PdfDocument_pdf_disable_js(self)
  29701. def pdf_doc_was_linearized(self):
  29702. r"""Class-aware wrapper for `::pdf_doc_was_linearized()`."""
  29703. return _mupdf.PdfDocument_pdf_doc_was_linearized(self)
  29704. def pdf_document_associated_file(self, idx):
  29705. r"""Class-aware wrapper for `::pdf_document_associated_file()`."""
  29706. return _mupdf.PdfDocument_pdf_document_associated_file(self, idx)
  29707. def pdf_document_event_did_print(self):
  29708. r"""Class-aware wrapper for `::pdf_document_event_did_print()`."""
  29709. return _mupdf.PdfDocument_pdf_document_event_did_print(self)
  29710. def pdf_document_event_did_save(self):
  29711. r"""Class-aware wrapper for `::pdf_document_event_did_save()`."""
  29712. return _mupdf.PdfDocument_pdf_document_event_did_save(self)
  29713. def pdf_document_event_will_close(self):
  29714. r"""Class-aware wrapper for `::pdf_document_event_will_close()`."""
  29715. return _mupdf.PdfDocument_pdf_document_event_will_close(self)
  29716. def pdf_document_event_will_print(self):
  29717. r"""Class-aware wrapper for `::pdf_document_event_will_print()`."""
  29718. return _mupdf.PdfDocument_pdf_document_event_will_print(self)
  29719. def pdf_document_event_will_save(self):
  29720. r"""Class-aware wrapper for `::pdf_document_event_will_save()`."""
  29721. return _mupdf.PdfDocument_pdf_document_event_will_save(self)
  29722. def pdf_document_output_intent(self):
  29723. r"""Class-aware wrapper for `::pdf_document_output_intent()`."""
  29724. return _mupdf.PdfDocument_pdf_document_output_intent(self)
  29725. def pdf_document_permissions(self):
  29726. r"""Class-aware wrapper for `::pdf_document_permissions()`."""
  29727. return _mupdf.PdfDocument_pdf_document_permissions(self)
  29728. def pdf_empty_store(self):
  29729. r"""Class-aware wrapper for `::pdf_empty_store()`."""
  29730. return _mupdf.PdfDocument_pdf_empty_store(self)
  29731. def pdf_enable_journal(self):
  29732. r"""Class-aware wrapper for `::pdf_enable_journal()`."""
  29733. return _mupdf.PdfDocument_pdf_enable_journal(self)
  29734. def pdf_enable_js(self):
  29735. r"""Class-aware wrapper for `::pdf_enable_js()`."""
  29736. return _mupdf.PdfDocument_pdf_enable_js(self)
  29737. def pdf_enable_layer(self, layer, enabled):
  29738. r"""Class-aware wrapper for `::pdf_enable_layer()`."""
  29739. return _mupdf.PdfDocument_pdf_enable_layer(self, layer, enabled)
  29740. def pdf_end_operation(self):
  29741. r"""Class-aware wrapper for `::pdf_end_operation()`."""
  29742. return _mupdf.PdfDocument_pdf_end_operation(self)
  29743. def pdf_ensure_solid_xref(self, num):
  29744. r"""Class-aware wrapper for `::pdf_ensure_solid_xref()`."""
  29745. return _mupdf.PdfDocument_pdf_ensure_solid_xref(self, num)
  29746. def pdf_event_issue_alert(self, evt):
  29747. r"""Class-aware wrapper for `::pdf_event_issue_alert()`."""
  29748. return _mupdf.PdfDocument_pdf_event_issue_alert(self, evt)
  29749. def pdf_event_issue_exec_menu_item(self, item):
  29750. r"""Class-aware wrapper for `::pdf_event_issue_exec_menu_item()`."""
  29751. return _mupdf.PdfDocument_pdf_event_issue_exec_menu_item(self, item)
  29752. def pdf_event_issue_launch_url(self, url, new_frame):
  29753. r"""Class-aware wrapper for `::pdf_event_issue_launch_url()`."""
  29754. return _mupdf.PdfDocument_pdf_event_issue_launch_url(self, url, new_frame)
  29755. def pdf_event_issue_mail_doc(self, evt):
  29756. r"""Class-aware wrapper for `::pdf_event_issue_mail_doc()`."""
  29757. return _mupdf.PdfDocument_pdf_event_issue_mail_doc(self, evt)
  29758. def pdf_event_issue_print(self):
  29759. r"""Class-aware wrapper for `::pdf_event_issue_print()`."""
  29760. return _mupdf.PdfDocument_pdf_event_issue_print(self)
  29761. def pdf_field_event_calculate(self, field):
  29762. r"""Class-aware wrapper for `::pdf_field_event_calculate()`."""
  29763. return _mupdf.PdfDocument_pdf_field_event_calculate(self, field)
  29764. def pdf_field_event_format(self, field):
  29765. r"""Class-aware wrapper for `::pdf_field_event_format()`."""
  29766. return _mupdf.PdfDocument_pdf_field_event_format(self, field)
  29767. def pdf_field_event_keystroke(self, field, evt):
  29768. r"""Class-aware wrapper for `::pdf_field_event_keystroke()`."""
  29769. return _mupdf.PdfDocument_pdf_field_event_keystroke(self, field, evt)
  29770. def pdf_field_event_validate(self, field, value, newvalue):
  29771. r"""
  29772. Class-aware wrapper for `::pdf_field_event_validate()`.
  29773. This method has out-params. Python/C# wrappers look like:
  29774. `pdf_field_event_validate(::pdf_obj *field, const char *value)` => `(int, char *newvalue)`
  29775. """
  29776. return _mupdf.PdfDocument_pdf_field_event_validate(self, field, value, newvalue)
  29777. def pdf_field_reset(self, field):
  29778. r"""Class-aware wrapper for `::pdf_field_reset()`."""
  29779. return _mupdf.PdfDocument_pdf_field_reset(self, field)
  29780. def pdf_filter_annot_contents(self, annot, options):
  29781. r"""Class-aware wrapper for `::pdf_filter_annot_contents()`."""
  29782. return _mupdf.PdfDocument_pdf_filter_annot_contents(self, annot, options)
  29783. def pdf_filter_page_contents(self, page, options):
  29784. r"""Class-aware wrapper for `::pdf_filter_page_contents()`."""
  29785. return _mupdf.PdfDocument_pdf_filter_page_contents(self, page, options)
  29786. def pdf_find_colorspace_resource(self, item, key):
  29787. r"""Class-aware wrapper for `::pdf_find_colorspace_resource()`."""
  29788. return _mupdf.PdfDocument_pdf_find_colorspace_resource(self, item, key)
  29789. def pdf_find_font_resource(self, type, encoding, item, key):
  29790. r"""Class-aware wrapper for `::pdf_find_font_resource()`."""
  29791. return _mupdf.PdfDocument_pdf_find_font_resource(self, type, encoding, item, key)
  29792. def pdf_find_version_for_obj(self, obj):
  29793. r"""Class-aware wrapper for `::pdf_find_version_for_obj()`."""
  29794. return _mupdf.PdfDocument_pdf_find_version_for_obj(self, obj)
  29795. def pdf_forget_xref(self):
  29796. r"""Class-aware wrapper for `::pdf_forget_xref()`."""
  29797. return _mupdf.PdfDocument_pdf_forget_xref(self)
  29798. def pdf_get_doc_event_callback_data(self):
  29799. r"""Class-aware wrapper for `::pdf_get_doc_event_callback_data()`."""
  29800. return _mupdf.PdfDocument_pdf_get_doc_event_callback_data(self)
  29801. def pdf_graft_object(self, obj):
  29802. r"""Class-aware wrapper for `::pdf_graft_object()`."""
  29803. return _mupdf.PdfDocument_pdf_graft_object(self, obj)
  29804. def pdf_graft_page(self, page_to, src, page_from):
  29805. r"""Class-aware wrapper for `::pdf_graft_page()`."""
  29806. return _mupdf.PdfDocument_pdf_graft_page(self, page_to, src, page_from)
  29807. def pdf_has_permission(self, p):
  29808. r"""Class-aware wrapper for `::pdf_has_permission()`."""
  29809. return _mupdf.PdfDocument_pdf_has_permission(self, p)
  29810. def pdf_has_unsaved_changes(self):
  29811. r"""Class-aware wrapper for `::pdf_has_unsaved_changes()`."""
  29812. return _mupdf.PdfDocument_pdf_has_unsaved_changes(self)
  29813. def pdf_has_unsaved_sigs(self):
  29814. r"""Class-aware wrapper for `::pdf_has_unsaved_sigs()`."""
  29815. return _mupdf.PdfDocument_pdf_has_unsaved_sigs(self)
  29816. def pdf_insert_colorspace_resource(self, key, obj):
  29817. r"""Class-aware wrapper for `::pdf_insert_colorspace_resource()`."""
  29818. return _mupdf.PdfDocument_pdf_insert_colorspace_resource(self, key, obj)
  29819. def pdf_insert_font_resource(self, key, obj):
  29820. r"""Class-aware wrapper for `::pdf_insert_font_resource()`."""
  29821. return _mupdf.PdfDocument_pdf_insert_font_resource(self, key, obj)
  29822. def pdf_insert_page(self, at, page):
  29823. r"""Class-aware wrapper for `::pdf_insert_page()`."""
  29824. return _mupdf.PdfDocument_pdf_insert_page(self, at, page)
  29825. def pdf_invalidate_xfa(self):
  29826. r"""Class-aware wrapper for `::pdf_invalidate_xfa()`."""
  29827. return _mupdf.PdfDocument_pdf_invalidate_xfa(self)
  29828. def pdf_is_local_object(self, obj):
  29829. r"""Class-aware wrapper for `::pdf_is_local_object()`."""
  29830. return _mupdf.PdfDocument_pdf_is_local_object(self, obj)
  29831. def pdf_is_ocg_hidden(self, rdb, usage, ocg):
  29832. r"""Class-aware wrapper for `::pdf_is_ocg_hidden()`."""
  29833. return _mupdf.PdfDocument_pdf_is_ocg_hidden(self, rdb, usage, ocg)
  29834. def pdf_js_set_console(self, console, user):
  29835. r"""Class-aware wrapper for `::pdf_js_set_console()`."""
  29836. return _mupdf.PdfDocument_pdf_js_set_console(self, console, user)
  29837. def pdf_js_supported(self):
  29838. r"""Class-aware wrapper for `::pdf_js_supported()`."""
  29839. return _mupdf.PdfDocument_pdf_js_supported(self)
  29840. def pdf_layer_config_info(self, config_num, info):
  29841. r"""Class-aware wrapper for `::pdf_layer_config_info()`."""
  29842. return _mupdf.PdfDocument_pdf_layer_config_info(self, config_num, info)
  29843. def pdf_layer_config_ui_info(self, ui, info):
  29844. r"""Class-aware wrapper for `::pdf_layer_config_ui_info()`."""
  29845. return _mupdf.PdfDocument_pdf_layer_config_ui_info(self, ui, info)
  29846. def pdf_layer_is_enabled(self, layer):
  29847. r"""Class-aware wrapper for `::pdf_layer_is_enabled()`."""
  29848. return _mupdf.PdfDocument_pdf_layer_is_enabled(self, layer)
  29849. def pdf_layer_name(self, layer):
  29850. r"""Class-aware wrapper for `::pdf_layer_name()`."""
  29851. return _mupdf.PdfDocument_pdf_layer_name(self, layer)
  29852. def pdf_load_compressed_inline_image(self, dict, length, cstm, indexed, image):
  29853. r"""Class-aware wrapper for `::pdf_load_compressed_inline_image()`."""
  29854. return _mupdf.PdfDocument_pdf_load_compressed_inline_image(self, dict, length, cstm, indexed, image)
  29855. def pdf_load_compressed_stream(self, num, worst_case):
  29856. r"""Class-aware wrapper for `::pdf_load_compressed_stream()`."""
  29857. return _mupdf.PdfDocument_pdf_load_compressed_stream(self, num, worst_case)
  29858. def pdf_load_default_colorspaces(self, page):
  29859. r"""Class-aware wrapper for `::pdf_load_default_colorspaces()`."""
  29860. return _mupdf.PdfDocument_pdf_load_default_colorspaces(self, page)
  29861. def pdf_load_embedded_cmap(self, ref):
  29862. r"""Class-aware wrapper for `::pdf_load_embedded_cmap()`."""
  29863. return _mupdf.PdfDocument_pdf_load_embedded_cmap(self, ref)
  29864. def pdf_load_image(self, obj):
  29865. r"""Class-aware wrapper for `::pdf_load_image()`."""
  29866. return _mupdf.PdfDocument_pdf_load_image(self, obj)
  29867. def pdf_load_inline_image(self, rdb, dict, file):
  29868. r"""Class-aware wrapper for `::pdf_load_inline_image()`."""
  29869. return _mupdf.PdfDocument_pdf_load_inline_image(self, rdb, dict, file)
  29870. def pdf_load_journal(self, filename):
  29871. r"""Class-aware wrapper for `::pdf_load_journal()`."""
  29872. return _mupdf.PdfDocument_pdf_load_journal(self, filename)
  29873. def pdf_load_link_annots(self, arg_1, annots, pagenum, page_ctm):
  29874. r"""Class-aware wrapper for `::pdf_load_link_annots()`."""
  29875. return _mupdf.PdfDocument_pdf_load_link_annots(self, arg_1, annots, pagenum, page_ctm)
  29876. def pdf_load_name_tree(self, which):
  29877. r"""Class-aware wrapper for `::pdf_load_name_tree()`."""
  29878. return _mupdf.PdfDocument_pdf_load_name_tree(self, which)
  29879. def pdf_load_object(self, num):
  29880. r"""
  29881. Class-aware wrapper for `::pdf_load_object()`.
  29882. Load a given object.
  29883. This can cause xref reorganisations (solidifications etc) due to
  29884. repairs, so all held pdf_xref_entries should be considered
  29885. invalid after this call (other than the returned one).
  29886. """
  29887. return _mupdf.PdfDocument_pdf_load_object(self, num)
  29888. def pdf_load_outline(self):
  29889. r"""Class-aware wrapper for `::pdf_load_outline()`."""
  29890. return _mupdf.PdfDocument_pdf_load_outline(self)
  29891. def pdf_load_page(self, number):
  29892. r"""Class-aware wrapper for `::pdf_load_page()`."""
  29893. return _mupdf.PdfDocument_pdf_load_page(self, number)
  29894. def pdf_load_page_tree(self):
  29895. r"""Class-aware wrapper for `::pdf_load_page_tree()`."""
  29896. return _mupdf.PdfDocument_pdf_load_page_tree(self)
  29897. def pdf_load_pattern(self, obj):
  29898. r"""Class-aware wrapper for `::pdf_load_pattern()`."""
  29899. return _mupdf.PdfDocument_pdf_load_pattern(self, obj)
  29900. def pdf_load_raw_stream_number(self, num):
  29901. r"""Class-aware wrapper for `::pdf_load_raw_stream_number()`."""
  29902. return _mupdf.PdfDocument_pdf_load_raw_stream_number(self, num)
  29903. def pdf_load_shading(self, obj):
  29904. r"""Class-aware wrapper for `::pdf_load_shading()`."""
  29905. return _mupdf.PdfDocument_pdf_load_shading(self, obj)
  29906. def pdf_load_stream_number(self, num):
  29907. r"""Class-aware wrapper for `::pdf_load_stream_number()`."""
  29908. return _mupdf.PdfDocument_pdf_load_stream_number(self, num)
  29909. def pdf_load_to_unicode(self, font, strings, collection, cmapstm):
  29910. r"""
  29911. Class-aware wrapper for `::pdf_load_to_unicode()`.
  29912. This method has out-params. Python/C# wrappers look like:
  29913. `pdf_load_to_unicode(::pdf_font_desc *font, char *collection, ::pdf_obj *cmapstm)` => const char *strings
  29914. """
  29915. return _mupdf.PdfDocument_pdf_load_to_unicode(self, font, strings, collection, cmapstm)
  29916. def pdf_load_type3_glyphs(self, fontdesc):
  29917. r"""Class-aware wrapper for `::pdf_load_type3_glyphs()`."""
  29918. return _mupdf.PdfDocument_pdf_load_type3_glyphs(self, fontdesc)
  29919. def pdf_load_unencrypted_object(self, num):
  29920. r"""Class-aware wrapper for `::pdf_load_unencrypted_object()`."""
  29921. return _mupdf.PdfDocument_pdf_load_unencrypted_object(self, num)
  29922. def pdf_lookup_dest(self, needle):
  29923. r"""Class-aware wrapper for `::pdf_lookup_dest()`."""
  29924. return _mupdf.PdfDocument_pdf_lookup_dest(self, needle)
  29925. def pdf_lookup_metadata(self, key, ptr, size):
  29926. r"""Class-aware wrapper for `::pdf_lookup_metadata()`."""
  29927. return _mupdf.PdfDocument_pdf_lookup_metadata(self, key, ptr, size)
  29928. def pdf_lookup_metadata2(self, key):
  29929. r"""
  29930. Class-aware wrapper for `::pdf_lookup_metadata2()`.
  29931. C++ alternative to `pdf_lookup_metadata()` that returns a `std::string`
  29932. or calls `fz_throw()` if not found.
  29933. """
  29934. return _mupdf.PdfDocument_pdf_lookup_metadata2(self, key)
  29935. def pdf_lookup_name(self, which, needle):
  29936. r"""Class-aware wrapper for `::pdf_lookup_name()`."""
  29937. return _mupdf.PdfDocument_pdf_lookup_name(self, which, needle)
  29938. def pdf_lookup_page_loc(self, needle, parentp, indexp):
  29939. r"""
  29940. Class-aware wrapper for `::pdf_lookup_page_loc()`.
  29941. This method has out-params. Python/C# wrappers look like:
  29942. `pdf_lookup_page_loc(int needle, ::pdf_obj **parentp)` => `(pdf_obj *, int indexp)`
  29943. """
  29944. return _mupdf.PdfDocument_pdf_lookup_page_loc(self, needle, parentp, indexp)
  29945. def pdf_lookup_page_number(self, pageobj):
  29946. r"""Class-aware wrapper for `::pdf_lookup_page_number()`."""
  29947. return _mupdf.PdfDocument_pdf_lookup_page_number(self, pageobj)
  29948. def pdf_lookup_page_obj(self, needle):
  29949. r"""Class-aware wrapper for `::pdf_lookup_page_obj()`."""
  29950. return _mupdf.PdfDocument_pdf_lookup_page_obj(self, needle)
  29951. def pdf_mark_xref(self):
  29952. r"""Class-aware wrapper for `::pdf_mark_xref()`."""
  29953. return _mupdf.PdfDocument_pdf_mark_xref(self)
  29954. def pdf_metadata(self):
  29955. r"""Class-aware wrapper for `::pdf_metadata()`."""
  29956. return _mupdf.PdfDocument_pdf_metadata(self)
  29957. def pdf_minimize_document(self):
  29958. r"""Class-aware wrapper for `::pdf_minimize_document()`."""
  29959. return _mupdf.PdfDocument_pdf_minimize_document(self)
  29960. def pdf_needs_password(self):
  29961. r"""Class-aware wrapper for `::pdf_needs_password()`."""
  29962. return _mupdf.PdfDocument_pdf_needs_password(self)
  29963. def pdf_new_action_from_link(self, uri):
  29964. r"""Class-aware wrapper for `::pdf_new_action_from_link()`."""
  29965. return _mupdf.PdfDocument_pdf_new_action_from_link(self, uri)
  29966. def pdf_new_array(self, initialcap):
  29967. r"""Class-aware wrapper for `::pdf_new_array()`."""
  29968. return _mupdf.PdfDocument_pdf_new_array(self, initialcap)
  29969. def pdf_new_color_filter(self, chain, struct_parents, transform, options, copts):
  29970. r"""Class-aware wrapper for `::pdf_new_color_filter()`."""
  29971. return _mupdf.PdfDocument_pdf_new_color_filter(self, chain, struct_parents, transform, options, copts)
  29972. def pdf_new_date(self, time):
  29973. r"""Class-aware wrapper for `::pdf_new_date()`."""
  29974. return _mupdf.PdfDocument_pdf_new_date(self, time)
  29975. def pdf_new_dest_from_link(self, uri, is_remote):
  29976. r"""Class-aware wrapper for `::pdf_new_dest_from_link()`."""
  29977. return _mupdf.PdfDocument_pdf_new_dest_from_link(self, uri, is_remote)
  29978. def pdf_new_dict(self, initialcap):
  29979. r"""Class-aware wrapper for `::pdf_new_dict()`."""
  29980. return _mupdf.PdfDocument_pdf_new_dict(self, initialcap)
  29981. def pdf_new_graft_map(self):
  29982. r"""Class-aware wrapper for `::pdf_new_graft_map()`."""
  29983. return _mupdf.PdfDocument_pdf_new_graft_map(self)
  29984. def pdf_new_indirect(self, num, gen):
  29985. r"""Class-aware wrapper for `::pdf_new_indirect()`."""
  29986. return _mupdf.PdfDocument_pdf_new_indirect(self, num, gen)
  29987. def pdf_new_matrix(self, mtx):
  29988. r"""Class-aware wrapper for `::pdf_new_matrix()`."""
  29989. return _mupdf.PdfDocument_pdf_new_matrix(self, mtx)
  29990. def pdf_new_pdf_device(self, topctm, resources, contents):
  29991. r"""Class-aware wrapper for `::pdf_new_pdf_device()`."""
  29992. return _mupdf.PdfDocument_pdf_new_pdf_device(self, topctm, resources, contents)
  29993. def pdf_new_point(self, point):
  29994. r"""Class-aware wrapper for `::pdf_new_point()`."""
  29995. return _mupdf.PdfDocument_pdf_new_point(self, point)
  29996. def pdf_new_rect(self, rect):
  29997. r"""Class-aware wrapper for `::pdf_new_rect()`."""
  29998. return _mupdf.PdfDocument_pdf_new_rect(self, rect)
  29999. def pdf_new_run_processor(self, dev, ctm, struct_parent, usage, gstate, default_cs, cookie, fill_gstate, stroke_gstate):
  30000. r"""Class-aware wrapper for `::pdf_new_run_processor()`."""
  30001. return _mupdf.PdfDocument_pdf_new_run_processor(self, dev, ctm, struct_parent, usage, gstate, default_cs, cookie, fill_gstate, stroke_gstate)
  30002. def pdf_new_sanitize_filter(self, chain, struct_parents, transform, options, sopts):
  30003. r"""Class-aware wrapper for `::pdf_new_sanitize_filter()`."""
  30004. return _mupdf.PdfDocument_pdf_new_sanitize_filter(self, chain, struct_parents, transform, options, sopts)
  30005. def pdf_new_xobject(self, bbox, matrix, res, buffer):
  30006. r"""Class-aware wrapper for `::pdf_new_xobject()`."""
  30007. return _mupdf.PdfDocument_pdf_new_xobject(self, bbox, matrix, res, buffer)
  30008. def pdf_obj_num_is_stream(self, num):
  30009. r"""Class-aware wrapper for `::pdf_obj_num_is_stream()`."""
  30010. return _mupdf.PdfDocument_pdf_obj_num_is_stream(self, num)
  30011. def pdf_object_exists(self, num):
  30012. r"""Class-aware wrapper for `::pdf_object_exists()`."""
  30013. return _mupdf.PdfDocument_pdf_object_exists(self, num)
  30014. def pdf_open_contents_stream(self, obj):
  30015. r"""Class-aware wrapper for `::pdf_open_contents_stream()`."""
  30016. return _mupdf.PdfDocument_pdf_open_contents_stream(self, obj)
  30017. def pdf_open_inline_stream(self, stmobj, length, chain, params):
  30018. r"""Class-aware wrapper for `::pdf_open_inline_stream()`."""
  30019. return _mupdf.PdfDocument_pdf_open_inline_stream(self, stmobj, length, chain, params)
  30020. def pdf_open_raw_stream_number(self, num):
  30021. r"""Class-aware wrapper for `::pdf_open_raw_stream_number()`."""
  30022. return _mupdf.PdfDocument_pdf_open_raw_stream_number(self, num)
  30023. def pdf_open_stream_number(self, num):
  30024. r"""Class-aware wrapper for `::pdf_open_stream_number()`."""
  30025. return _mupdf.PdfDocument_pdf_open_stream_number(self, num)
  30026. def pdf_open_stream_with_offset(self, num, dict, stm_ofs):
  30027. r"""Class-aware wrapper for `::pdf_open_stream_with_offset()`."""
  30028. return _mupdf.PdfDocument_pdf_open_stream_with_offset(self, num, dict, stm_ofs)
  30029. def pdf_page_label(self, page, buf, size):
  30030. r"""Class-aware wrapper for `::pdf_page_label()`."""
  30031. return _mupdf.PdfDocument_pdf_page_label(self, page, buf, size)
  30032. def pdf_page_write(self, mediabox, presources, pcontents):
  30033. r"""
  30034. Class-aware wrapper for `::pdf_page_write()`.
  30035. This method has out-params. Python/C# wrappers look like:
  30036. `pdf_page_write(::fz_rect mediabox, ::pdf_obj **presources, ::fz_buffer **pcontents)` => `(fz_device *)`
  30037. """
  30038. return _mupdf.PdfDocument_pdf_page_write(self, mediabox, presources, pcontents)
  30039. def pdf_parse_array(self, f, buf):
  30040. r"""Class-aware wrapper for `::pdf_parse_array()`."""
  30041. return _mupdf.PdfDocument_pdf_parse_array(self, f, buf)
  30042. def pdf_parse_dict(self, f, buf):
  30043. r"""Class-aware wrapper for `::pdf_parse_dict()`."""
  30044. return _mupdf.PdfDocument_pdf_parse_dict(self, f, buf)
  30045. def pdf_parse_ind_obj(self, f, num, gen, stm_ofs, try_repair):
  30046. r"""
  30047. Class-aware wrapper for `::pdf_parse_ind_obj()`.
  30048. This method has out-params. Python/C# wrappers look like:
  30049. `pdf_parse_ind_obj(::fz_stream *f)` => `(pdf_obj *, int num, int gen, int64_t stm_ofs, int try_repair)`
  30050. """
  30051. return _mupdf.PdfDocument_pdf_parse_ind_obj(self, f, num, gen, stm_ofs, try_repair)
  30052. def pdf_parse_journal_obj(self, stm, onum, ostm, newobj):
  30053. r"""
  30054. Class-aware wrapper for `::pdf_parse_journal_obj()`.
  30055. This method has out-params. Python/C# wrappers look like:
  30056. `pdf_parse_journal_obj(::fz_stream *stm, ::fz_buffer **ostm)` => `(pdf_obj *, int onum, int newobj)`
  30057. """
  30058. return _mupdf.PdfDocument_pdf_parse_journal_obj(self, stm, onum, ostm, newobj)
  30059. def pdf_parse_stm_obj(self, f, buf):
  30060. r"""Class-aware wrapper for `::pdf_parse_stm_obj()`."""
  30061. return _mupdf.PdfDocument_pdf_parse_stm_obj(self, f, buf)
  30062. def pdf_progressive_advance(self, pagenum):
  30063. r"""Class-aware wrapper for `::pdf_progressive_advance()`."""
  30064. return _mupdf.PdfDocument_pdf_progressive_advance(self, pagenum)
  30065. def pdf_purge_local_resources(self):
  30066. r"""Class-aware wrapper for `::pdf_purge_local_resources()`."""
  30067. return _mupdf.PdfDocument_pdf_purge_local_resources(self)
  30068. def pdf_purge_locals_from_store(self):
  30069. r"""Class-aware wrapper for `::pdf_purge_locals_from_store()`."""
  30070. return _mupdf.PdfDocument_pdf_purge_locals_from_store(self)
  30071. def pdf_purge_object_from_store(self, num):
  30072. r"""Class-aware wrapper for `::pdf_purge_object_from_store()`."""
  30073. return _mupdf.PdfDocument_pdf_purge_object_from_store(self, num)
  30074. def pdf_read_journal(self, stm):
  30075. r"""Class-aware wrapper for `::pdf_read_journal()`."""
  30076. return _mupdf.PdfDocument_pdf_read_journal(self, stm)
  30077. def pdf_rearrange_pages(self, count, pages, structure):
  30078. r"""Class-aware wrapper for `::pdf_rearrange_pages()`."""
  30079. return _mupdf.PdfDocument_pdf_rearrange_pages(self, count, pages, structure)
  30080. def pdf_rearrange_pages2(self, pages, structure):
  30081. r"""Class-aware wrapper for `::pdf_rearrange_pages2()`. Swig-friendly wrapper for pdf_rearrange_pages()."""
  30082. return _mupdf.PdfDocument_pdf_rearrange_pages2(self, pages, structure)
  30083. def pdf_recolor_page(self, pagenum, opts):
  30084. r"""Class-aware wrapper for `::pdf_recolor_page()`."""
  30085. return _mupdf.PdfDocument_pdf_recolor_page(self, pagenum, opts)
  30086. def pdf_redact_page(self, page, opts):
  30087. r"""Class-aware wrapper for `::pdf_redact_page()`."""
  30088. return _mupdf.PdfDocument_pdf_redact_page(self, page, opts)
  30089. def pdf_redo(self):
  30090. r"""Class-aware wrapper for `::pdf_redo()`."""
  30091. return _mupdf.PdfDocument_pdf_redo(self)
  30092. def pdf_remove_output_intents(self):
  30093. r"""Class-aware wrapper for `::pdf_remove_output_intents()`."""
  30094. return _mupdf.PdfDocument_pdf_remove_output_intents(self)
  30095. def pdf_repair_obj(self, buf, stmofsp, stmlenp, encrypt, id, page, tmpofs, root):
  30096. r"""
  30097. Class-aware wrapper for `::pdf_repair_obj()`.
  30098. This method has out-params. Python/C# wrappers look like:
  30099. `pdf_repair_obj(::pdf_lexbuf *buf, ::pdf_obj **encrypt, ::pdf_obj **id, ::pdf_obj **page, ::pdf_obj **root)` => `(int, int64_t stmofsp, int64_t stmlenp, int64_t tmpofs)`
  30100. """
  30101. return _mupdf.PdfDocument_pdf_repair_obj(self, buf, stmofsp, stmlenp, encrypt, id, page, tmpofs, root)
  30102. def pdf_repair_xref(self):
  30103. r"""Class-aware wrapper for `::pdf_repair_xref()`."""
  30104. return _mupdf.PdfDocument_pdf_repair_xref(self)
  30105. def pdf_replace_xref(self, entries, n):
  30106. r"""Class-aware wrapper for `::pdf_replace_xref()`."""
  30107. return _mupdf.PdfDocument_pdf_replace_xref(self, entries, n)
  30108. def pdf_reset_form(self, fields, exclude):
  30109. r"""Class-aware wrapper for `::pdf_reset_form()`."""
  30110. return _mupdf.PdfDocument_pdf_reset_form(self, fields, exclude)
  30111. def pdf_resolve_link(self, uri, xp, yp):
  30112. r"""
  30113. Class-aware wrapper for `::pdf_resolve_link()`.
  30114. This method has out-params. Python/C# wrappers look like:
  30115. `pdf_resolve_link(const char *uri)` => `(int, float xp, float yp)`
  30116. """
  30117. return _mupdf.PdfDocument_pdf_resolve_link(self, uri, xp, yp)
  30118. def pdf_rewrite_images(self, opts):
  30119. r"""Class-aware wrapper for `::pdf_rewrite_images()`."""
  30120. return _mupdf.PdfDocument_pdf_rewrite_images(self, opts)
  30121. def pdf_run_document_structure(self, dev, cookie):
  30122. r"""Class-aware wrapper for `::pdf_run_document_structure()`."""
  30123. return _mupdf.PdfDocument_pdf_run_document_structure(self, dev, cookie)
  30124. def pdf_run_glyph(self, resources, contents, dev, ctm, gstate, default_cs, fill_gstate, stroke_gstate):
  30125. r"""Class-aware wrapper for `::pdf_run_glyph()`."""
  30126. return _mupdf.PdfDocument_pdf_run_glyph(self, resources, contents, dev, ctm, gstate, default_cs, fill_gstate, stroke_gstate)
  30127. def pdf_save_document(self, filename, opts):
  30128. r"""Class-aware wrapper for `::pdf_save_document()`."""
  30129. return _mupdf.PdfDocument_pdf_save_document(self, filename, opts)
  30130. def pdf_save_journal(self, filename):
  30131. r"""Class-aware wrapper for `::pdf_save_journal()`."""
  30132. return _mupdf.PdfDocument_pdf_save_journal(self, filename)
  30133. def pdf_save_snapshot(self, filename):
  30134. r"""Class-aware wrapper for `::pdf_save_snapshot()`."""
  30135. return _mupdf.PdfDocument_pdf_save_snapshot(self, filename)
  30136. def pdf_select_layer_config(self, config_num):
  30137. r"""Class-aware wrapper for `::pdf_select_layer_config()`."""
  30138. return _mupdf.PdfDocument_pdf_select_layer_config(self, config_num)
  30139. def pdf_select_layer_config_ui(self, ui):
  30140. r"""Class-aware wrapper for `::pdf_select_layer_config_ui()`."""
  30141. return _mupdf.PdfDocument_pdf_select_layer_config_ui(self, ui)
  30142. def pdf_serialise_journal(self, out):
  30143. r"""Class-aware wrapper for `::pdf_serialise_journal()`."""
  30144. return _mupdf.PdfDocument_pdf_serialise_journal(self, out)
  30145. def pdf_set_annot_field_value(self, widget, text, ignore_trigger_events):
  30146. r"""Class-aware wrapper for `::pdf_set_annot_field_value()`."""
  30147. return _mupdf.PdfDocument_pdf_set_annot_field_value(self, widget, text, ignore_trigger_events)
  30148. def pdf_set_doc_event_callback(self, event_cb, free_event_data_cb, data):
  30149. r"""Class-aware wrapper for `::pdf_set_doc_event_callback()`."""
  30150. return _mupdf.PdfDocument_pdf_set_doc_event_callback(self, event_cb, free_event_data_cb, data)
  30151. def pdf_set_document_language(self, lang):
  30152. r"""Class-aware wrapper for `::pdf_set_document_language()`."""
  30153. return _mupdf.PdfDocument_pdf_set_document_language(self, lang)
  30154. def pdf_set_field_value(self, field, text, ignore_trigger_events):
  30155. r"""Class-aware wrapper for `::pdf_set_field_value()`."""
  30156. return _mupdf.PdfDocument_pdf_set_field_value(self, field, text, ignore_trigger_events)
  30157. def pdf_set_layer_config_as_default(self):
  30158. r"""Class-aware wrapper for `::pdf_set_layer_config_as_default()`."""
  30159. return _mupdf.PdfDocument_pdf_set_layer_config_as_default(self)
  30160. def pdf_set_page_labels(self, index, style, prefix, start):
  30161. r"""Class-aware wrapper for `::pdf_set_page_labels()`."""
  30162. return _mupdf.PdfDocument_pdf_set_page_labels(self, index, style, prefix, start)
  30163. def pdf_set_populating_xref_trailer(self, trailer):
  30164. r"""Class-aware wrapper for `::pdf_set_populating_xref_trailer()`."""
  30165. return _mupdf.PdfDocument_pdf_set_populating_xref_trailer(self, trailer)
  30166. def pdf_signature_byte_range(self, signature, byte_range):
  30167. r"""Class-aware wrapper for `::pdf_signature_byte_range()`."""
  30168. return _mupdf.PdfDocument_pdf_signature_byte_range(self, signature, byte_range)
  30169. def pdf_signature_contents(self, signature, contents):
  30170. r"""
  30171. Class-aware wrapper for `::pdf_signature_contents()`.
  30172. This method has out-params. Python/C# wrappers look like:
  30173. `pdf_signature_contents(::pdf_obj *signature)` => `(size_t, char *contents)`
  30174. """
  30175. return _mupdf.PdfDocument_pdf_signature_contents(self, signature, contents)
  30176. def pdf_signature_hash_bytes(self, signature):
  30177. r"""Class-aware wrapper for `::pdf_signature_hash_bytes()`."""
  30178. return _mupdf.PdfDocument_pdf_signature_hash_bytes(self, signature)
  30179. def pdf_signature_incremental_change_since_signing(self, signature):
  30180. r"""Class-aware wrapper for `::pdf_signature_incremental_change_since_signing()`."""
  30181. return _mupdf.PdfDocument_pdf_signature_incremental_change_since_signing(self, signature)
  30182. def pdf_signature_is_signed(self, field):
  30183. r"""Class-aware wrapper for `::pdf_signature_is_signed()`."""
  30184. return _mupdf.PdfDocument_pdf_signature_is_signed(self, field)
  30185. def pdf_signature_set_value(self, field, signer, stime):
  30186. r"""Class-aware wrapper for `::pdf_signature_set_value()`."""
  30187. return _mupdf.PdfDocument_pdf_signature_set_value(self, field, signer, stime)
  30188. def pdf_subset_fonts(self, pages_len, pages):
  30189. r"""Class-aware wrapper for `::pdf_subset_fonts()`."""
  30190. return _mupdf.PdfDocument_pdf_subset_fonts(self, pages_len, pages)
  30191. def pdf_subset_fonts2(self, pages):
  30192. r"""Class-aware wrapper for `::pdf_subset_fonts2()`. Swig-friendly wrapper for pdf_subset_fonts()."""
  30193. return _mupdf.PdfDocument_pdf_subset_fonts2(self, pages)
  30194. def pdf_sync_open_pages(self):
  30195. r"""Class-aware wrapper for `::pdf_sync_open_pages()`."""
  30196. return _mupdf.PdfDocument_pdf_sync_open_pages(self)
  30197. def pdf_toggle_layer_config_ui(self, ui):
  30198. r"""Class-aware wrapper for `::pdf_toggle_layer_config_ui()`."""
  30199. return _mupdf.PdfDocument_pdf_toggle_layer_config_ui(self, ui)
  30200. def pdf_trailer(self):
  30201. r"""Class-aware wrapper for `::pdf_trailer()`."""
  30202. return _mupdf.PdfDocument_pdf_trailer(self)
  30203. def pdf_undo(self):
  30204. r"""Class-aware wrapper for `::pdf_undo()`."""
  30205. return _mupdf.PdfDocument_pdf_undo(self)
  30206. def pdf_undoredo_state(self, steps):
  30207. r"""
  30208. Class-aware wrapper for `::pdf_undoredo_state()`.
  30209. This method has out-params. Python/C# wrappers look like:
  30210. `pdf_undoredo_state()` => `(int, int steps)`
  30211. """
  30212. return _mupdf.PdfDocument_pdf_undoredo_state(self, steps)
  30213. def pdf_undoredo_step(self, step):
  30214. r"""Class-aware wrapper for `::pdf_undoredo_step()`."""
  30215. return _mupdf.PdfDocument_pdf_undoredo_step(self, step)
  30216. def pdf_update_object(self, num, obj):
  30217. r"""Class-aware wrapper for `::pdf_update_object()`."""
  30218. return _mupdf.PdfDocument_pdf_update_object(self, num, obj)
  30219. def pdf_update_stream(self, ref, buf, compressed):
  30220. r"""Class-aware wrapper for `::pdf_update_stream()`."""
  30221. return _mupdf.PdfDocument_pdf_update_stream(self, ref, buf, compressed)
  30222. def pdf_update_xobject(self, xobj, bbox, mat, res, buffer):
  30223. r"""Class-aware wrapper for `::pdf_update_xobject()`."""
  30224. return _mupdf.PdfDocument_pdf_update_xobject(self, xobj, bbox, mat, res, buffer)
  30225. def pdf_validate_change_history(self):
  30226. r"""Class-aware wrapper for `::pdf_validate_change_history()`."""
  30227. return _mupdf.PdfDocument_pdf_validate_change_history(self)
  30228. def pdf_validate_changes(self, version):
  30229. r"""Class-aware wrapper for `::pdf_validate_changes()`."""
  30230. return _mupdf.PdfDocument_pdf_validate_changes(self, version)
  30231. def pdf_version(self):
  30232. r"""Class-aware wrapper for `::pdf_version()`."""
  30233. return _mupdf.PdfDocument_pdf_version(self)
  30234. def pdf_was_pure_xfa(self):
  30235. r"""Class-aware wrapper for `::pdf_was_pure_xfa()`."""
  30236. return _mupdf.PdfDocument_pdf_was_pure_xfa(self)
  30237. def pdf_was_repaired(self):
  30238. r"""Class-aware wrapper for `::pdf_was_repaired()`."""
  30239. return _mupdf.PdfDocument_pdf_was_repaired(self)
  30240. def pdf_write_document(self, out, opts):
  30241. r"""Class-aware wrapper for `::pdf_write_document()`."""
  30242. return _mupdf.PdfDocument_pdf_write_document(self, out, opts)
  30243. def pdf_write_journal(self, out):
  30244. r"""Class-aware wrapper for `::pdf_write_journal()`."""
  30245. return _mupdf.PdfDocument_pdf_write_journal(self, out)
  30246. def pdf_write_snapshot(self, out):
  30247. r"""Class-aware wrapper for `::pdf_write_snapshot()`."""
  30248. return _mupdf.PdfDocument_pdf_write_snapshot(self, out)
  30249. def pdf_xref_ensure_incremental_object(self, num):
  30250. r"""Class-aware wrapper for `::pdf_xref_ensure_incremental_object()`."""
  30251. return _mupdf.PdfDocument_pdf_xref_ensure_incremental_object(self, num)
  30252. def pdf_xref_ensure_local_object(self, num):
  30253. r"""Class-aware wrapper for `::pdf_xref_ensure_local_object()`."""
  30254. return _mupdf.PdfDocument_pdf_xref_ensure_local_object(self, num)
  30255. def pdf_xref_entry_map(self, fn, arg):
  30256. r"""Class-aware wrapper for `::pdf_xref_entry_map()`."""
  30257. return _mupdf.PdfDocument_pdf_xref_entry_map(self, fn, arg)
  30258. def pdf_xref_is_incremental(self, num):
  30259. r"""Class-aware wrapper for `::pdf_xref_is_incremental()`."""
  30260. return _mupdf.PdfDocument_pdf_xref_is_incremental(self, num)
  30261. def pdf_xref_len(self):
  30262. r"""Class-aware wrapper for `::pdf_xref_len()`."""
  30263. return _mupdf.PdfDocument_pdf_xref_len(self)
  30264. def pdf_xref_obj_is_unsaved_signature(self, obj):
  30265. r"""Class-aware wrapper for `::pdf_xref_obj_is_unsaved_signature()`."""
  30266. return _mupdf.PdfDocument_pdf_xref_obj_is_unsaved_signature(self, obj)
  30267. def pdf_xref_remove_unsaved_signature(self, field):
  30268. r"""Class-aware wrapper for `::pdf_xref_remove_unsaved_signature()`."""
  30269. return _mupdf.PdfDocument_pdf_xref_remove_unsaved_signature(self, field)
  30270. def pdf_xref_store_unsaved_signature(self, field, signer):
  30271. r"""Class-aware wrapper for `::pdf_xref_store_unsaved_signature()`."""
  30272. return _mupdf.PdfDocument_pdf_xref_store_unsaved_signature(self, field, signer)
  30273. def pdf_zugferd_profile(self, version):
  30274. r"""
  30275. Class-aware wrapper for `::pdf_zugferd_profile()`.
  30276. This method has out-params. Python/C# wrappers look like:
  30277. `pdf_zugferd_profile()` => `(enum pdf_zugferd_profile, float version)`
  30278. """
  30279. return _mupdf.PdfDocument_pdf_zugferd_profile(self, version)
  30280. def pdf_zugferd_xml(self):
  30281. r"""Class-aware wrapper for `::pdf_zugferd_xml()`."""
  30282. return _mupdf.PdfDocument_pdf_zugferd_xml(self)
  30283. def super(self):
  30284. r"""Returns wrapper for .super member."""
  30285. return _mupdf.PdfDocument_super(self)
  30286. def __init__(self, *args):
  30287. r"""
  30288. *Overload 1:*
  30289. == Constructors. Constructor using `pdf_create_document()`.
  30290. |
  30291. *Overload 2:*
  30292. Constructor using `pdf_document_from_fz_document()`.
  30293. |
  30294. *Overload 3:*
  30295. Constructor using `pdf_open_document()`.
  30296. |
  30297. *Overload 4:*
  30298. Constructor using `pdf_open_document_with_stream()`.
  30299. |
  30300. *Overload 5:*
  30301. Copy constructor using `pdf_keep_document()`.
  30302. |
  30303. *Overload 6:*
  30304. Constructor using raw copy of pre-existing `::pdf_document`.
  30305. """
  30306. _mupdf.PdfDocument_swiginit(self, _mupdf.new_PdfDocument(*args))
  30307. __swig_destroy__ = _mupdf.delete_PdfDocument
  30308. def m_internal_value(self):
  30309. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30310. return _mupdf.PdfDocument_m_internal_value(self)
  30311. def __nonzero__(self):
  30312. return _mupdf.PdfDocument___nonzero__(self)
  30313. __bool__ = __nonzero__
  30314. m_internal = property(_mupdf.PdfDocument_m_internal_get, _mupdf.PdfDocument_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30315. s_num_instances = property(_mupdf.PdfDocument_s_num_instances_get, _mupdf.PdfDocument_s_num_instances_set)
  30316. # Register PdfDocument in _mupdf:
  30317. _mupdf.PdfDocument_swigregister(PdfDocument)
  30318. class PdfFilespecParams(object):
  30319. r"""Wrapper class for struct `pdf_filespec_params`. Not copyable or assignable."""
  30320. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30321. __repr__ = _swig_repr
  30322. def __init__(self, *args):
  30323. r"""
  30324. *Overload 1:*
  30325. Default constructor, sets `m_internal` to null.
  30326. |
  30327. *Overload 2:*
  30328. Constructor using raw copy of pre-existing `::pdf_filespec_params`.
  30329. """
  30330. _mupdf.PdfFilespecParams_swiginit(self, _mupdf.new_PdfFilespecParams(*args))
  30331. __swig_destroy__ = _mupdf.delete_PdfFilespecParams
  30332. def m_internal_value(self):
  30333. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30334. return _mupdf.PdfFilespecParams_m_internal_value(self)
  30335. def __nonzero__(self):
  30336. return _mupdf.PdfFilespecParams___nonzero__(self)
  30337. __bool__ = __nonzero__
  30338. m_internal = property(_mupdf.PdfFilespecParams_m_internal_get, _mupdf.PdfFilespecParams_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30339. s_num_instances = property(_mupdf.PdfFilespecParams_s_num_instances_get, _mupdf.PdfFilespecParams_s_num_instances_set)
  30340. # Register PdfFilespecParams in _mupdf:
  30341. _mupdf.PdfFilespecParams_swigregister(PdfFilespecParams)
  30342. class PdfFilterFactory(object):
  30343. r"""Wrapper class for struct `pdf_filter_factory`."""
  30344. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30345. __repr__ = _swig_repr
  30346. def __init__(self, *args):
  30347. r"""
  30348. *Overload 1:*
  30349. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  30350. |
  30351. *Overload 2:*
  30352. Constructor using raw copy of pre-existing `::pdf_filter_factory`.
  30353. |
  30354. *Overload 3:*
  30355. Constructor using raw copy of pre-existing `::pdf_filter_factory`.
  30356. """
  30357. _mupdf.PdfFilterFactory_swiginit(self, _mupdf.new_PdfFilterFactory(*args))
  30358. def internal(self, *args):
  30359. r"""
  30360. *Overload 1:*
  30361. Access as underlying struct.
  30362. |
  30363. *Overload 2:*
  30364. Access as underlying struct.
  30365. """
  30366. return _mupdf.PdfFilterFactory_internal(self, *args)
  30367. __swig_destroy__ = _mupdf.delete_PdfFilterFactory
  30368. filter = property(_mupdf.PdfFilterFactory_filter_get, _mupdf.PdfFilterFactory_filter_set)
  30369. options = property(_mupdf.PdfFilterFactory_options_get, _mupdf.PdfFilterFactory_options_set)
  30370. s_num_instances = property(_mupdf.PdfFilterFactory_s_num_instances_get, _mupdf.PdfFilterFactory_s_num_instances_set)
  30371. def to_string(self):
  30372. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  30373. return _mupdf.PdfFilterFactory_to_string(self)
  30374. def __eq__(self, rhs):
  30375. r"""Comparison method."""
  30376. return _mupdf.PdfFilterFactory___eq__(self, rhs)
  30377. def __ne__(self, rhs):
  30378. r"""Comparison method."""
  30379. return _mupdf.PdfFilterFactory___ne__(self, rhs)
  30380. # Register PdfFilterFactory in _mupdf:
  30381. _mupdf.PdfFilterFactory_swigregister(PdfFilterFactory)
  30382. class PdfFilterFactory2(PdfFilterFactory):
  30383. r"""Wrapper class for struct pdf_filter_factory with virtual fns for each fnptr; this is for use as a SWIG Director class."""
  30384. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30385. __repr__ = _swig_repr
  30386. def __init__(self):
  30387. r"""== Constructor."""
  30388. if self.__class__ == PdfFilterFactory2:
  30389. _self = None
  30390. else:
  30391. _self = self
  30392. _mupdf.PdfFilterFactory2_swiginit(self, _mupdf.new_PdfFilterFactory2(_self, ))
  30393. __swig_destroy__ = _mupdf.delete_PdfFilterFactory2
  30394. def use_virtual_filter(self, use=True):
  30395. r"""
  30396. These methods set the function pointers in *m_internal
  30397. to point to internal callbacks that call our virtual methods.
  30398. """
  30399. return _mupdf.PdfFilterFactory2_use_virtual_filter(self, use)
  30400. def filter(self, arg_0, arg_1, arg_2, arg_3, arg_4, arg_5):
  30401. r"""Default virtual method implementations; these all throw an exception."""
  30402. return _mupdf.PdfFilterFactory2_filter(self, arg_0, arg_1, arg_2, arg_3, arg_4, arg_5)
  30403. def __disown__(self):
  30404. self.this.disown()
  30405. _mupdf.disown_PdfFilterFactory2(self)
  30406. return weakref.proxy(self)
  30407. # Register PdfFilterFactory2 in _mupdf:
  30408. _mupdf.PdfFilterFactory2_swigregister(PdfFilterFactory2)
  30409. class PdfFilterOptions(object):
  30410. r"""Wrapper class for struct `pdf_filter_options`."""
  30411. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30412. __repr__ = _swig_repr
  30413. def add_factory(self, factory):
  30414. r"""We use default copy constructor and operator=. Appends `factory` to internal vector and updates this->filters."""
  30415. return _mupdf.PdfFilterOptions_add_factory(self, factory)
  30416. def __init__(self, *args):
  30417. r"""
  30418. *Overload 1:*
  30419. Default constructor initialises all fields to null/zero.
  30420. |
  30421. *Overload 2:*
  30422. Constructor using raw copy of pre-existing `::pdf_filter_options`.
  30423. |
  30424. *Overload 3:*
  30425. Constructor using raw copy of pre-existing `::pdf_filter_options`.
  30426. """
  30427. _mupdf.PdfFilterOptions_swiginit(self, _mupdf.new_PdfFilterOptions(*args))
  30428. def internal(self, *args):
  30429. r"""
  30430. *Overload 1:*
  30431. Access as underlying struct.
  30432. |
  30433. *Overload 2:*
  30434. Access as underlying struct.
  30435. """
  30436. return _mupdf.PdfFilterOptions_internal(self, *args)
  30437. __swig_destroy__ = _mupdf.delete_PdfFilterOptions
  30438. recurse = property(_mupdf.PdfFilterOptions_recurse_get, _mupdf.PdfFilterOptions_recurse_set)
  30439. instance_forms = property(_mupdf.PdfFilterOptions_instance_forms_get, _mupdf.PdfFilterOptions_instance_forms_set)
  30440. ascii = property(_mupdf.PdfFilterOptions_ascii_get, _mupdf.PdfFilterOptions_ascii_set)
  30441. no_update = property(_mupdf.PdfFilterOptions_no_update_get, _mupdf.PdfFilterOptions_no_update_set)
  30442. opaque = property(_mupdf.PdfFilterOptions_opaque_get, _mupdf.PdfFilterOptions_opaque_set)
  30443. complete = property(_mupdf.PdfFilterOptions_complete_get, _mupdf.PdfFilterOptions_complete_set)
  30444. filters = property(_mupdf.PdfFilterOptions_filters_get, _mupdf.PdfFilterOptions_filters_set)
  30445. newlines = property(_mupdf.PdfFilterOptions_newlines_get, _mupdf.PdfFilterOptions_newlines_set)
  30446. s_num_instances = property(_mupdf.PdfFilterOptions_s_num_instances_get, _mupdf.PdfFilterOptions_s_num_instances_set)
  30447. def to_string(self):
  30448. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  30449. return _mupdf.PdfFilterOptions_to_string(self)
  30450. def __eq__(self, rhs):
  30451. r"""Comparison method."""
  30452. return _mupdf.PdfFilterOptions___eq__(self, rhs)
  30453. def __ne__(self, rhs):
  30454. r"""Comparison method."""
  30455. return _mupdf.PdfFilterOptions___ne__(self, rhs)
  30456. m_filters = property(_mupdf.PdfFilterOptions_m_filters_get, _mupdf.PdfFilterOptions_m_filters_set)
  30457. # Register PdfFilterOptions in _mupdf:
  30458. _mupdf.PdfFilterOptions_swigregister(PdfFilterOptions)
  30459. class PdfFilterOptions2(PdfFilterOptions):
  30460. r"""Wrapper class for struct pdf_filter_options with virtual fns for each fnptr; this is for use as a SWIG Director class."""
  30461. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30462. __repr__ = _swig_repr
  30463. def __init__(self):
  30464. r"""== Constructor."""
  30465. if self.__class__ == PdfFilterOptions2:
  30466. _self = None
  30467. else:
  30468. _self = self
  30469. _mupdf.PdfFilterOptions2_swiginit(self, _mupdf.new_PdfFilterOptions2(_self, ))
  30470. __swig_destroy__ = _mupdf.delete_PdfFilterOptions2
  30471. def use_virtual_complete(self, use=True):
  30472. r"""
  30473. These methods set the function pointers in *m_internal
  30474. to point to internal callbacks that call our virtual methods.
  30475. """
  30476. return _mupdf.PdfFilterOptions2_use_virtual_complete(self, use)
  30477. def complete(self, arg_0, arg_1):
  30478. r"""Default virtual method implementations; these all throw an exception."""
  30479. return _mupdf.PdfFilterOptions2_complete(self, arg_0, arg_1)
  30480. def __disown__(self):
  30481. self.this.disown()
  30482. _mupdf.disown_PdfFilterOptions2(self)
  30483. return weakref.proxy(self)
  30484. # Register PdfFilterOptions2 in _mupdf:
  30485. _mupdf.PdfFilterOptions2_swigregister(PdfFilterOptions2)
  30486. class PdfFontDesc(object):
  30487. r"""Wrapper class for struct `pdf_font_desc`. Not copyable or assignable."""
  30488. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30489. __repr__ = _swig_repr
  30490. def pdf_add_hmtx(self, lo, hi, w):
  30491. r"""Class-aware wrapper for `::pdf_add_hmtx()`."""
  30492. return _mupdf.PdfFontDesc_pdf_add_hmtx(self, lo, hi, w)
  30493. def pdf_add_vmtx(self, lo, hi, x, y, w):
  30494. r"""Class-aware wrapper for `::pdf_add_vmtx()`."""
  30495. return _mupdf.PdfFontDesc_pdf_add_vmtx(self, lo, hi, x, y, w)
  30496. def pdf_end_hmtx(self):
  30497. r"""Class-aware wrapper for `::pdf_end_hmtx()`."""
  30498. return _mupdf.PdfFontDesc_pdf_end_hmtx(self)
  30499. def pdf_end_vmtx(self):
  30500. r"""Class-aware wrapper for `::pdf_end_vmtx()`."""
  30501. return _mupdf.PdfFontDesc_pdf_end_vmtx(self)
  30502. def pdf_font_cid_to_gid(self, cid):
  30503. r"""Class-aware wrapper for `::pdf_font_cid_to_gid()`."""
  30504. return _mupdf.PdfFontDesc_pdf_font_cid_to_gid(self, cid)
  30505. def pdf_set_default_hmtx(self, w):
  30506. r"""Class-aware wrapper for `::pdf_set_default_hmtx()`."""
  30507. return _mupdf.PdfFontDesc_pdf_set_default_hmtx(self, w)
  30508. def pdf_set_default_vmtx(self, y, w):
  30509. r"""Class-aware wrapper for `::pdf_set_default_vmtx()`."""
  30510. return _mupdf.PdfFontDesc_pdf_set_default_vmtx(self, y, w)
  30511. def pdf_set_font_wmode(self, wmode):
  30512. r"""Class-aware wrapper for `::pdf_set_font_wmode()`."""
  30513. return _mupdf.PdfFontDesc_pdf_set_font_wmode(self, wmode)
  30514. def __init__(self, *args):
  30515. r"""
  30516. *Overload 1:*
  30517. == Constructors. Constructor using `pdf_new_font_desc()`.
  30518. |
  30519. *Overload 2:*
  30520. Constructor using raw copy of pre-existing `::pdf_font_desc`.
  30521. """
  30522. _mupdf.PdfFontDesc_swiginit(self, _mupdf.new_PdfFontDesc(*args))
  30523. __swig_destroy__ = _mupdf.delete_PdfFontDesc
  30524. def m_internal_value(self):
  30525. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30526. return _mupdf.PdfFontDesc_m_internal_value(self)
  30527. def __nonzero__(self):
  30528. return _mupdf.PdfFontDesc___nonzero__(self)
  30529. __bool__ = __nonzero__
  30530. m_internal = property(_mupdf.PdfFontDesc_m_internal_get, _mupdf.PdfFontDesc_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30531. s_num_instances = property(_mupdf.PdfFontDesc_s_num_instances_get, _mupdf.PdfFontDesc_s_num_instances_set)
  30532. # Register PdfFontDesc in _mupdf:
  30533. _mupdf.PdfFontDesc_swigregister(PdfFontDesc)
  30534. class PdfFontResourceKey(object):
  30535. r"""Wrapper class for struct `pdf_font_resource_key`. Not copyable or assignable."""
  30536. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30537. __repr__ = _swig_repr
  30538. def __init__(self, *args):
  30539. r"""
  30540. *Overload 1:*
  30541. Default constructor, sets `m_internal` to null.
  30542. |
  30543. *Overload 2:*
  30544. Constructor using raw copy of pre-existing `::pdf_font_resource_key`.
  30545. """
  30546. _mupdf.PdfFontResourceKey_swiginit(self, _mupdf.new_PdfFontResourceKey(*args))
  30547. __swig_destroy__ = _mupdf.delete_PdfFontResourceKey
  30548. def m_internal_value(self):
  30549. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30550. return _mupdf.PdfFontResourceKey_m_internal_value(self)
  30551. def __nonzero__(self):
  30552. return _mupdf.PdfFontResourceKey___nonzero__(self)
  30553. __bool__ = __nonzero__
  30554. m_internal = property(_mupdf.PdfFontResourceKey_m_internal_get, _mupdf.PdfFontResourceKey_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30555. s_num_instances = property(_mupdf.PdfFontResourceKey_s_num_instances_get, _mupdf.PdfFontResourceKey_s_num_instances_set)
  30556. # Register PdfFontResourceKey in _mupdf:
  30557. _mupdf.PdfFontResourceKey_swigregister(PdfFontResourceKey)
  30558. class PdfFunction(object):
  30559. r"""Wrapper class for struct `pdf_function`."""
  30560. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30561. __repr__ = _swig_repr
  30562. def pdf_eval_function(self, _in, inlen, out, outlen):
  30563. r"""
  30564. Class-aware wrapper for `::pdf_eval_function()`.
  30565. This method has out-params. Python/C# wrappers look like:
  30566. `pdf_eval_function(const float *in, int inlen, int outlen)` => float out
  30567. """
  30568. return _mupdf.PdfFunction_pdf_eval_function(self, _in, inlen, out, outlen)
  30569. def pdf_function_size(self):
  30570. r"""Class-aware wrapper for `::pdf_function_size()`."""
  30571. return _mupdf.PdfFunction_pdf_function_size(self)
  30572. def __init__(self, *args):
  30573. r"""
  30574. *Overload 1:*
  30575. Copy constructor using `pdf_keep_function()`.
  30576. |
  30577. *Overload 2:*
  30578. Default constructor, sets `m_internal` to null.
  30579. |
  30580. *Overload 3:*
  30581. Constructor using raw copy of pre-existing `::pdf_function`.
  30582. """
  30583. _mupdf.PdfFunction_swiginit(self, _mupdf.new_PdfFunction(*args))
  30584. __swig_destroy__ = _mupdf.delete_PdfFunction
  30585. def m_internal_value(self):
  30586. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30587. return _mupdf.PdfFunction_m_internal_value(self)
  30588. def __nonzero__(self):
  30589. return _mupdf.PdfFunction___nonzero__(self)
  30590. __bool__ = __nonzero__
  30591. m_internal = property(_mupdf.PdfFunction_m_internal_get, _mupdf.PdfFunction_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30592. s_num_instances = property(_mupdf.PdfFunction_s_num_instances_get, _mupdf.PdfFunction_s_num_instances_set)
  30593. # Register PdfFunction in _mupdf:
  30594. _mupdf.PdfFunction_swigregister(PdfFunction)
  30595. class PdfGraftMap(object):
  30596. r"""Wrapper class for struct `pdf_graft_map`."""
  30597. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30598. __repr__ = _swig_repr
  30599. def pdf_graft_mapped_object(self, obj):
  30600. r"""Class-aware wrapper for `::pdf_graft_mapped_object()`."""
  30601. return _mupdf.PdfGraftMap_pdf_graft_mapped_object(self, obj)
  30602. def pdf_graft_mapped_page(self, page_to, src, page_from):
  30603. r"""Class-aware wrapper for `::pdf_graft_mapped_page()`."""
  30604. return _mupdf.PdfGraftMap_pdf_graft_mapped_page(self, page_to, src, page_from)
  30605. def __init__(self, *args):
  30606. r"""
  30607. *Overload 1:*
  30608. == Constructors. Constructor using `pdf_new_graft_map()`.
  30609. |
  30610. *Overload 2:*
  30611. Copy constructor using `pdf_keep_graft_map()`.
  30612. |
  30613. *Overload 3:*
  30614. Default constructor, sets `m_internal` to null.
  30615. |
  30616. *Overload 4:*
  30617. Constructor using raw copy of pre-existing `::pdf_graft_map`.
  30618. """
  30619. _mupdf.PdfGraftMap_swiginit(self, _mupdf.new_PdfGraftMap(*args))
  30620. __swig_destroy__ = _mupdf.delete_PdfGraftMap
  30621. def m_internal_value(self):
  30622. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30623. return _mupdf.PdfGraftMap_m_internal_value(self)
  30624. def __nonzero__(self):
  30625. return _mupdf.PdfGraftMap___nonzero__(self)
  30626. __bool__ = __nonzero__
  30627. m_internal = property(_mupdf.PdfGraftMap_m_internal_get, _mupdf.PdfGraftMap_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30628. s_num_instances = property(_mupdf.PdfGraftMap_s_num_instances_get, _mupdf.PdfGraftMap_s_num_instances_set)
  30629. # Register PdfGraftMap in _mupdf:
  30630. _mupdf.PdfGraftMap_swigregister(PdfGraftMap)
  30631. class PdfGstate(object):
  30632. r"""Wrapper class for struct `pdf_gstate`. Not copyable or assignable."""
  30633. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30634. __repr__ = _swig_repr
  30635. def __init__(self, *args):
  30636. r"""
  30637. *Overload 1:*
  30638. Default constructor, sets `m_internal` to null.
  30639. |
  30640. *Overload 2:*
  30641. Constructor using raw copy of pre-existing `::pdf_gstate`.
  30642. """
  30643. _mupdf.PdfGstate_swiginit(self, _mupdf.new_PdfGstate(*args))
  30644. __swig_destroy__ = _mupdf.delete_PdfGstate
  30645. def m_internal_value(self):
  30646. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30647. return _mupdf.PdfGstate_m_internal_value(self)
  30648. def __nonzero__(self):
  30649. return _mupdf.PdfGstate___nonzero__(self)
  30650. __bool__ = __nonzero__
  30651. m_internal = property(_mupdf.PdfGstate_m_internal_get, _mupdf.PdfGstate_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30652. s_num_instances = property(_mupdf.PdfGstate_s_num_instances_get, _mupdf.PdfGstate_s_num_instances_set)
  30653. # Register PdfGstate in _mupdf:
  30654. _mupdf.PdfGstate_swigregister(PdfGstate)
  30655. class PdfHintPage(object):
  30656. r"""Wrapper class for struct `pdf_hint_page`. Not copyable or assignable."""
  30657. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30658. __repr__ = _swig_repr
  30659. def __init__(self, *args):
  30660. r"""
  30661. *Overload 1:*
  30662. Default constructor, sets `m_internal` to null.
  30663. |
  30664. *Overload 2:*
  30665. Constructor using raw copy of pre-existing `::pdf_hint_page`.
  30666. """
  30667. _mupdf.PdfHintPage_swiginit(self, _mupdf.new_PdfHintPage(*args))
  30668. __swig_destroy__ = _mupdf.delete_PdfHintPage
  30669. def m_internal_value(self):
  30670. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30671. return _mupdf.PdfHintPage_m_internal_value(self)
  30672. def __nonzero__(self):
  30673. return _mupdf.PdfHintPage___nonzero__(self)
  30674. __bool__ = __nonzero__
  30675. m_internal = property(_mupdf.PdfHintPage_m_internal_get, _mupdf.PdfHintPage_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30676. s_num_instances = property(_mupdf.PdfHintPage_s_num_instances_get, _mupdf.PdfHintPage_s_num_instances_set)
  30677. # Register PdfHintPage in _mupdf:
  30678. _mupdf.PdfHintPage_swigregister(PdfHintPage)
  30679. class PdfHintShared(object):
  30680. r"""Wrapper class for struct `pdf_hint_shared`. Not copyable or assignable."""
  30681. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30682. __repr__ = _swig_repr
  30683. def __init__(self, *args):
  30684. r"""
  30685. *Overload 1:*
  30686. Default constructor, sets `m_internal` to null.
  30687. |
  30688. *Overload 2:*
  30689. Constructor using raw copy of pre-existing `::pdf_hint_shared`.
  30690. """
  30691. _mupdf.PdfHintShared_swiginit(self, _mupdf.new_PdfHintShared(*args))
  30692. __swig_destroy__ = _mupdf.delete_PdfHintShared
  30693. def m_internal_value(self):
  30694. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30695. return _mupdf.PdfHintShared_m_internal_value(self)
  30696. def __nonzero__(self):
  30697. return _mupdf.PdfHintShared___nonzero__(self)
  30698. __bool__ = __nonzero__
  30699. m_internal = property(_mupdf.PdfHintShared_m_internal_get, _mupdf.PdfHintShared_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30700. s_num_instances = property(_mupdf.PdfHintShared_s_num_instances_get, _mupdf.PdfHintShared_s_num_instances_set)
  30701. # Register PdfHintShared in _mupdf:
  30702. _mupdf.PdfHintShared_swigregister(PdfHintShared)
  30703. class PdfHmtx(object):
  30704. r"""Wrapper class for struct `pdf_hmtx`. Not copyable or assignable."""
  30705. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30706. __repr__ = _swig_repr
  30707. def __init__(self, *args):
  30708. r"""
  30709. *Overload 1:*
  30710. Default constructor, sets `m_internal` to null.
  30711. |
  30712. *Overload 2:*
  30713. Constructor using raw copy of pre-existing `::pdf_hmtx`.
  30714. """
  30715. _mupdf.PdfHmtx_swiginit(self, _mupdf.new_PdfHmtx(*args))
  30716. __swig_destroy__ = _mupdf.delete_PdfHmtx
  30717. def m_internal_value(self):
  30718. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30719. return _mupdf.PdfHmtx_m_internal_value(self)
  30720. def __nonzero__(self):
  30721. return _mupdf.PdfHmtx___nonzero__(self)
  30722. __bool__ = __nonzero__
  30723. m_internal = property(_mupdf.PdfHmtx_m_internal_get, _mupdf.PdfHmtx_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30724. s_num_instances = property(_mupdf.PdfHmtx_s_num_instances_get, _mupdf.PdfHmtx_s_num_instances_set)
  30725. # Register PdfHmtx in _mupdf:
  30726. _mupdf.PdfHmtx_swigregister(PdfHmtx)
  30727. class PdfImageRewriterOptions(object):
  30728. r"""Wrapper class for struct `pdf_image_rewriter_options`."""
  30729. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30730. __repr__ = _swig_repr
  30731. def __init__(self, *args):
  30732. r"""
  30733. *Overload 1:*
  30734. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  30735. |
  30736. *Overload 2:*
  30737. Constructor using raw copy of pre-existing `::pdf_image_rewriter_options`.
  30738. |
  30739. *Overload 3:*
  30740. Constructor using raw copy of pre-existing `::pdf_image_rewriter_options`.
  30741. """
  30742. _mupdf.PdfImageRewriterOptions_swiginit(self, _mupdf.new_PdfImageRewriterOptions(*args))
  30743. def internal(self, *args):
  30744. r"""
  30745. *Overload 1:*
  30746. Access as underlying struct.
  30747. |
  30748. *Overload 2:*
  30749. Access as underlying struct.
  30750. """
  30751. return _mupdf.PdfImageRewriterOptions_internal(self, *args)
  30752. __swig_destroy__ = _mupdf.delete_PdfImageRewriterOptions
  30753. color_lossless_image_subsample_method = property(_mupdf.PdfImageRewriterOptions_color_lossless_image_subsample_method_get, _mupdf.PdfImageRewriterOptions_color_lossless_image_subsample_method_set)
  30754. color_lossy_image_subsample_method = property(_mupdf.PdfImageRewriterOptions_color_lossy_image_subsample_method_get, _mupdf.PdfImageRewriterOptions_color_lossy_image_subsample_method_set)
  30755. color_lossless_image_subsample_threshold = property(_mupdf.PdfImageRewriterOptions_color_lossless_image_subsample_threshold_get, _mupdf.PdfImageRewriterOptions_color_lossless_image_subsample_threshold_set)
  30756. color_lossless_image_subsample_to = property(_mupdf.PdfImageRewriterOptions_color_lossless_image_subsample_to_get, _mupdf.PdfImageRewriterOptions_color_lossless_image_subsample_to_set)
  30757. color_lossy_image_subsample_threshold = property(_mupdf.PdfImageRewriterOptions_color_lossy_image_subsample_threshold_get, _mupdf.PdfImageRewriterOptions_color_lossy_image_subsample_threshold_set)
  30758. color_lossy_image_subsample_to = property(_mupdf.PdfImageRewriterOptions_color_lossy_image_subsample_to_get, _mupdf.PdfImageRewriterOptions_color_lossy_image_subsample_to_set)
  30759. color_lossless_image_recompress_method = property(_mupdf.PdfImageRewriterOptions_color_lossless_image_recompress_method_get, _mupdf.PdfImageRewriterOptions_color_lossless_image_recompress_method_set)
  30760. color_lossy_image_recompress_method = property(_mupdf.PdfImageRewriterOptions_color_lossy_image_recompress_method_get, _mupdf.PdfImageRewriterOptions_color_lossy_image_recompress_method_set)
  30761. color_lossy_image_recompress_quality = property(_mupdf.PdfImageRewriterOptions_color_lossy_image_recompress_quality_get, _mupdf.PdfImageRewriterOptions_color_lossy_image_recompress_quality_set)
  30762. color_lossless_image_recompress_quality = property(_mupdf.PdfImageRewriterOptions_color_lossless_image_recompress_quality_get, _mupdf.PdfImageRewriterOptions_color_lossless_image_recompress_quality_set)
  30763. gray_lossless_image_subsample_method = property(_mupdf.PdfImageRewriterOptions_gray_lossless_image_subsample_method_get, _mupdf.PdfImageRewriterOptions_gray_lossless_image_subsample_method_set)
  30764. gray_lossy_image_subsample_method = property(_mupdf.PdfImageRewriterOptions_gray_lossy_image_subsample_method_get, _mupdf.PdfImageRewriterOptions_gray_lossy_image_subsample_method_set)
  30765. gray_lossless_image_subsample_threshold = property(_mupdf.PdfImageRewriterOptions_gray_lossless_image_subsample_threshold_get, _mupdf.PdfImageRewriterOptions_gray_lossless_image_subsample_threshold_set)
  30766. gray_lossless_image_subsample_to = property(_mupdf.PdfImageRewriterOptions_gray_lossless_image_subsample_to_get, _mupdf.PdfImageRewriterOptions_gray_lossless_image_subsample_to_set)
  30767. gray_lossy_image_subsample_threshold = property(_mupdf.PdfImageRewriterOptions_gray_lossy_image_subsample_threshold_get, _mupdf.PdfImageRewriterOptions_gray_lossy_image_subsample_threshold_set)
  30768. gray_lossy_image_subsample_to = property(_mupdf.PdfImageRewriterOptions_gray_lossy_image_subsample_to_get, _mupdf.PdfImageRewriterOptions_gray_lossy_image_subsample_to_set)
  30769. gray_lossless_image_recompress_method = property(_mupdf.PdfImageRewriterOptions_gray_lossless_image_recompress_method_get, _mupdf.PdfImageRewriterOptions_gray_lossless_image_recompress_method_set)
  30770. gray_lossy_image_recompress_method = property(_mupdf.PdfImageRewriterOptions_gray_lossy_image_recompress_method_get, _mupdf.PdfImageRewriterOptions_gray_lossy_image_recompress_method_set)
  30771. gray_lossy_image_recompress_quality = property(_mupdf.PdfImageRewriterOptions_gray_lossy_image_recompress_quality_get, _mupdf.PdfImageRewriterOptions_gray_lossy_image_recompress_quality_set)
  30772. gray_lossless_image_recompress_quality = property(_mupdf.PdfImageRewriterOptions_gray_lossless_image_recompress_quality_get, _mupdf.PdfImageRewriterOptions_gray_lossless_image_recompress_quality_set)
  30773. bitonal_image_subsample_method = property(_mupdf.PdfImageRewriterOptions_bitonal_image_subsample_method_get, _mupdf.PdfImageRewriterOptions_bitonal_image_subsample_method_set)
  30774. bitonal_image_subsample_threshold = property(_mupdf.PdfImageRewriterOptions_bitonal_image_subsample_threshold_get, _mupdf.PdfImageRewriterOptions_bitonal_image_subsample_threshold_set)
  30775. bitonal_image_subsample_to = property(_mupdf.PdfImageRewriterOptions_bitonal_image_subsample_to_get, _mupdf.PdfImageRewriterOptions_bitonal_image_subsample_to_set)
  30776. bitonal_image_recompress_method = property(_mupdf.PdfImageRewriterOptions_bitonal_image_recompress_method_get, _mupdf.PdfImageRewriterOptions_bitonal_image_recompress_method_set)
  30777. bitonal_image_recompress_quality = property(_mupdf.PdfImageRewriterOptions_bitonal_image_recompress_quality_get, _mupdf.PdfImageRewriterOptions_bitonal_image_recompress_quality_set)
  30778. s_num_instances = property(_mupdf.PdfImageRewriterOptions_s_num_instances_get, _mupdf.PdfImageRewriterOptions_s_num_instances_set)
  30779. def to_string(self):
  30780. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  30781. return _mupdf.PdfImageRewriterOptions_to_string(self)
  30782. def __eq__(self, rhs):
  30783. r"""Comparison method."""
  30784. return _mupdf.PdfImageRewriterOptions___eq__(self, rhs)
  30785. def __ne__(self, rhs):
  30786. r"""Comparison method."""
  30787. return _mupdf.PdfImageRewriterOptions___ne__(self, rhs)
  30788. # Register PdfImageRewriterOptions in _mupdf:
  30789. _mupdf.PdfImageRewriterOptions_swigregister(PdfImageRewriterOptions)
  30790. class PdfJournal(object):
  30791. r"""Wrapper class for struct `pdf_journal`. Not copyable or assignable."""
  30792. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30793. __repr__ = _swig_repr
  30794. def pdf_discard_journal(self):
  30795. r"""Class-aware wrapper for `::pdf_discard_journal()`."""
  30796. return _mupdf.PdfJournal_pdf_discard_journal(self)
  30797. def __init__(self, *args):
  30798. r"""
  30799. *Overload 1:*
  30800. Default constructor, sets `m_internal` to null.
  30801. |
  30802. *Overload 2:*
  30803. Constructor using raw copy of pre-existing `::pdf_journal`.
  30804. """
  30805. _mupdf.PdfJournal_swiginit(self, _mupdf.new_PdfJournal(*args))
  30806. __swig_destroy__ = _mupdf.delete_PdfJournal
  30807. def m_internal_value(self):
  30808. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30809. return _mupdf.PdfJournal_m_internal_value(self)
  30810. def __nonzero__(self):
  30811. return _mupdf.PdfJournal___nonzero__(self)
  30812. __bool__ = __nonzero__
  30813. m_internal = property(_mupdf.PdfJournal_m_internal_get, _mupdf.PdfJournal_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30814. s_num_instances = property(_mupdf.PdfJournal_s_num_instances_get, _mupdf.PdfJournal_s_num_instances_set)
  30815. # Register PdfJournal in _mupdf:
  30816. _mupdf.PdfJournal_swigregister(PdfJournal)
  30817. class PdfJs(object):
  30818. r"""Wrapper class for struct `pdf_js`. Not copyable or assignable."""
  30819. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30820. __repr__ = _swig_repr
  30821. def pdf_js_event_init(self, target, value, willCommit):
  30822. r"""Class-aware wrapper for `::pdf_js_event_init()`."""
  30823. return _mupdf.PdfJs_pdf_js_event_init(self, target, value, willCommit)
  30824. def pdf_js_event_init_keystroke(self, target, evt):
  30825. r"""Class-aware wrapper for `::pdf_js_event_init_keystroke()`."""
  30826. return _mupdf.PdfJs_pdf_js_event_init_keystroke(self, target, evt)
  30827. def pdf_js_event_result(self):
  30828. r"""Class-aware wrapper for `::pdf_js_event_result()`."""
  30829. return _mupdf.PdfJs_pdf_js_event_result(self)
  30830. def pdf_js_event_result_keystroke(self, evt):
  30831. r"""Class-aware wrapper for `::pdf_js_event_result_keystroke()`."""
  30832. return _mupdf.PdfJs_pdf_js_event_result_keystroke(self, evt)
  30833. def pdf_js_event_result_validate(self, newvalue):
  30834. r"""
  30835. Class-aware wrapper for `::pdf_js_event_result_validate()`.
  30836. This method has out-params. Python/C# wrappers look like:
  30837. `pdf_js_event_result_validate()` => `(int, char *newvalue)`
  30838. """
  30839. return _mupdf.PdfJs_pdf_js_event_result_validate(self, newvalue)
  30840. def pdf_js_event_value(self):
  30841. r"""Class-aware wrapper for `::pdf_js_event_value()`."""
  30842. return _mupdf.PdfJs_pdf_js_event_value(self)
  30843. def pdf_js_execute(self, name, code, result):
  30844. r"""
  30845. Class-aware wrapper for `::pdf_js_execute()`.
  30846. This method has out-params. Python/C# wrappers look like:
  30847. `pdf_js_execute(const char *name, const char *code)` => char *result
  30848. """
  30849. return _mupdf.PdfJs_pdf_js_execute(self, name, code, result)
  30850. def __init__(self, *args):
  30851. r"""
  30852. *Overload 1:*
  30853. Default constructor, sets `m_internal` to null.
  30854. |
  30855. *Overload 2:*
  30856. Constructor using raw copy of pre-existing `::pdf_js`.
  30857. """
  30858. _mupdf.PdfJs_swiginit(self, _mupdf.new_PdfJs(*args))
  30859. __swig_destroy__ = _mupdf.delete_PdfJs
  30860. def m_internal_value(self):
  30861. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30862. return _mupdf.PdfJs_m_internal_value(self)
  30863. def __nonzero__(self):
  30864. return _mupdf.PdfJs___nonzero__(self)
  30865. __bool__ = __nonzero__
  30866. m_internal = property(_mupdf.PdfJs_m_internal_get, _mupdf.PdfJs_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30867. s_num_instances = property(_mupdf.PdfJs_s_num_instances_get, _mupdf.PdfJs_s_num_instances_set)
  30868. # Register PdfJs in _mupdf:
  30869. _mupdf.PdfJs_swigregister(PdfJs)
  30870. class PdfJsConsole(object):
  30871. r"""Wrapper class for struct `pdf_js_console`. Not copyable or assignable."""
  30872. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30873. __repr__ = _swig_repr
  30874. def __init__(self, *args):
  30875. r"""
  30876. *Overload 1:*
  30877. Default constructor, sets `m_internal` to null.
  30878. |
  30879. *Overload 2:*
  30880. Constructor using raw copy of pre-existing `::pdf_js_console`.
  30881. """
  30882. _mupdf.PdfJsConsole_swiginit(self, _mupdf.new_PdfJsConsole(*args))
  30883. __swig_destroy__ = _mupdf.delete_PdfJsConsole
  30884. def m_internal_value(self):
  30885. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30886. return _mupdf.PdfJsConsole_m_internal_value(self)
  30887. def __nonzero__(self):
  30888. return _mupdf.PdfJsConsole___nonzero__(self)
  30889. __bool__ = __nonzero__
  30890. m_internal = property(_mupdf.PdfJsConsole_m_internal_get, _mupdf.PdfJsConsole_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30891. s_num_instances = property(_mupdf.PdfJsConsole_s_num_instances_get, _mupdf.PdfJsConsole_s_num_instances_set)
  30892. # Register PdfJsConsole in _mupdf:
  30893. _mupdf.PdfJsConsole_swigregister(PdfJsConsole)
  30894. class PdfKeystrokeEvent(object):
  30895. r"""Wrapper class for struct `pdf_keystroke_event`. Not copyable or assignable."""
  30896. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30897. __repr__ = _swig_repr
  30898. def __init__(self, *args):
  30899. r"""
  30900. *Overload 1:*
  30901. Default constructor, sets `m_internal` to null.
  30902. |
  30903. *Overload 2:*
  30904. Constructor using raw copy of pre-existing `::pdf_keystroke_event`.
  30905. """
  30906. _mupdf.PdfKeystrokeEvent_swiginit(self, _mupdf.new_PdfKeystrokeEvent(*args))
  30907. __swig_destroy__ = _mupdf.delete_PdfKeystrokeEvent
  30908. def m_internal_value(self):
  30909. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30910. return _mupdf.PdfKeystrokeEvent_m_internal_value(self)
  30911. def __nonzero__(self):
  30912. return _mupdf.PdfKeystrokeEvent___nonzero__(self)
  30913. __bool__ = __nonzero__
  30914. m_internal = property(_mupdf.PdfKeystrokeEvent_m_internal_get, _mupdf.PdfKeystrokeEvent_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30915. s_num_instances = property(_mupdf.PdfKeystrokeEvent_s_num_instances_get, _mupdf.PdfKeystrokeEvent_s_num_instances_set)
  30916. # Register PdfKeystrokeEvent in _mupdf:
  30917. _mupdf.PdfKeystrokeEvent_swigregister(PdfKeystrokeEvent)
  30918. class PdfLaunchUrlEvent(object):
  30919. r"""Wrapper class for struct `pdf_launch_url_event`. Not copyable or assignable."""
  30920. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30921. __repr__ = _swig_repr
  30922. def __init__(self, *args):
  30923. r"""
  30924. *Overload 1:*
  30925. Default constructor, sets `m_internal` to null.
  30926. |
  30927. *Overload 2:*
  30928. Constructor using raw copy of pre-existing `::pdf_launch_url_event`.
  30929. """
  30930. _mupdf.PdfLaunchUrlEvent_swiginit(self, _mupdf.new_PdfLaunchUrlEvent(*args))
  30931. __swig_destroy__ = _mupdf.delete_PdfLaunchUrlEvent
  30932. def m_internal_value(self):
  30933. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30934. return _mupdf.PdfLaunchUrlEvent_m_internal_value(self)
  30935. def __nonzero__(self):
  30936. return _mupdf.PdfLaunchUrlEvent___nonzero__(self)
  30937. __bool__ = __nonzero__
  30938. m_internal = property(_mupdf.PdfLaunchUrlEvent_m_internal_get, _mupdf.PdfLaunchUrlEvent_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30939. s_num_instances = property(_mupdf.PdfLaunchUrlEvent_s_num_instances_get, _mupdf.PdfLaunchUrlEvent_s_num_instances_set)
  30940. # Register PdfLaunchUrlEvent in _mupdf:
  30941. _mupdf.PdfLaunchUrlEvent_swigregister(PdfLaunchUrlEvent)
  30942. class PdfLayerConfig(object):
  30943. r"""Wrapper class for struct `pdf_layer_config`."""
  30944. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30945. __repr__ = _swig_repr
  30946. def __init__(self, *args):
  30947. r"""
  30948. *Overload 1:*
  30949. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  30950. |
  30951. *Overload 2:*
  30952. Constructor using raw copy of pre-existing `::pdf_layer_config`.
  30953. |
  30954. *Overload 3:*
  30955. Constructor using raw copy of pre-existing `::pdf_layer_config`.
  30956. """
  30957. _mupdf.PdfLayerConfig_swiginit(self, _mupdf.new_PdfLayerConfig(*args))
  30958. def internal(self, *args):
  30959. r"""
  30960. *Overload 1:*
  30961. Access as underlying struct.
  30962. |
  30963. *Overload 2:*
  30964. Access as underlying struct.
  30965. """
  30966. return _mupdf.PdfLayerConfig_internal(self, *args)
  30967. __swig_destroy__ = _mupdf.delete_PdfLayerConfig
  30968. name = property(_mupdf.PdfLayerConfig_name_get, _mupdf.PdfLayerConfig_name_set)
  30969. creator = property(_mupdf.PdfLayerConfig_creator_get, _mupdf.PdfLayerConfig_creator_set)
  30970. s_num_instances = property(_mupdf.PdfLayerConfig_s_num_instances_get, _mupdf.PdfLayerConfig_s_num_instances_set)
  30971. def to_string(self):
  30972. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  30973. return _mupdf.PdfLayerConfig_to_string(self)
  30974. def __eq__(self, rhs):
  30975. r"""Comparison method."""
  30976. return _mupdf.PdfLayerConfig___eq__(self, rhs)
  30977. def __ne__(self, rhs):
  30978. r"""Comparison method."""
  30979. return _mupdf.PdfLayerConfig___ne__(self, rhs)
  30980. # Register PdfLayerConfig in _mupdf:
  30981. _mupdf.PdfLayerConfig_swigregister(PdfLayerConfig)
  30982. class PdfLayerConfigUi(object):
  30983. r"""Wrapper class for struct `pdf_layer_config_ui`."""
  30984. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30985. __repr__ = _swig_repr
  30986. def __init__(self, *args):
  30987. r"""
  30988. *Overload 1:*
  30989. Default constructor sets .text to null, .type to PDF_LAYER_UI_LABEL, and other fields to zero.
  30990. |
  30991. *Overload 2:*
  30992. We use default copy constructor and operator=. Constructor using raw copy of pre-existing `::pdf_layer_config_ui`.
  30993. |
  30994. *Overload 3:*
  30995. Constructor using raw copy of pre-existing `::pdf_layer_config_ui`.
  30996. """
  30997. _mupdf.PdfLayerConfigUi_swiginit(self, _mupdf.new_PdfLayerConfigUi(*args))
  30998. def internal(self, *args):
  30999. r"""
  31000. *Overload 1:*
  31001. Access as underlying struct.
  31002. |
  31003. *Overload 2:*
  31004. Access as underlying struct.
  31005. """
  31006. return _mupdf.PdfLayerConfigUi_internal(self, *args)
  31007. __swig_destroy__ = _mupdf.delete_PdfLayerConfigUi
  31008. text = property(_mupdf.PdfLayerConfigUi_text_get, _mupdf.PdfLayerConfigUi_text_set)
  31009. depth = property(_mupdf.PdfLayerConfigUi_depth_get, _mupdf.PdfLayerConfigUi_depth_set)
  31010. type = property(_mupdf.PdfLayerConfigUi_type_get, _mupdf.PdfLayerConfigUi_type_set)
  31011. selected = property(_mupdf.PdfLayerConfigUi_selected_get, _mupdf.PdfLayerConfigUi_selected_set)
  31012. locked = property(_mupdf.PdfLayerConfigUi_locked_get, _mupdf.PdfLayerConfigUi_locked_set)
  31013. s_num_instances = property(_mupdf.PdfLayerConfigUi_s_num_instances_get, _mupdf.PdfLayerConfigUi_s_num_instances_set)
  31014. def to_string(self):
  31015. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  31016. return _mupdf.PdfLayerConfigUi_to_string(self)
  31017. def __eq__(self, rhs):
  31018. r"""Comparison method."""
  31019. return _mupdf.PdfLayerConfigUi___eq__(self, rhs)
  31020. def __ne__(self, rhs):
  31021. r"""Comparison method."""
  31022. return _mupdf.PdfLayerConfigUi___ne__(self, rhs)
  31023. # Register PdfLayerConfigUi in _mupdf:
  31024. _mupdf.PdfLayerConfigUi_swigregister(PdfLayerConfigUi)
  31025. class PdfLexbuf(object):
  31026. r"""Wrapper class for struct `pdf_lexbuf`. Not copyable or assignable."""
  31027. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  31028. __repr__ = _swig_repr
  31029. def pdf_lexbuf_fin(self):
  31030. r"""Class-aware wrapper for `::pdf_lexbuf_fin()`."""
  31031. return _mupdf.PdfLexbuf_pdf_lexbuf_fin(self)
  31032. def pdf_lexbuf_grow(self):
  31033. r"""Class-aware wrapper for `::pdf_lexbuf_grow()`."""
  31034. return _mupdf.PdfLexbuf_pdf_lexbuf_grow(self)
  31035. def pdf_lexbuf_init(self, size):
  31036. r"""Class-aware wrapper for `::pdf_lexbuf_init()`."""
  31037. return _mupdf.PdfLexbuf_pdf_lexbuf_init(self, size)
  31038. __swig_destroy__ = _mupdf.delete_PdfLexbuf
  31039. def __init__(self, *args):
  31040. r"""
  31041. *Overload 1:*
  31042. Constructor that calls pdf_lexbuf_init(size).
  31043. |
  31044. *Overload 2:*
  31045. Default constructor, sets `m_internal` to null.
  31046. |
  31047. *Overload 3:*
  31048. Constructor using raw copy of pre-existing `::pdf_lexbuf`.
  31049. """
  31050. _mupdf.PdfLexbuf_swiginit(self, _mupdf.new_PdfLexbuf(*args))
  31051. def m_internal_value(self):
  31052. r"""Return numerical value of .m_internal; helps with Python debugging."""
  31053. return _mupdf.PdfLexbuf_m_internal_value(self)
  31054. def __nonzero__(self):
  31055. return _mupdf.PdfLexbuf___nonzero__(self)
  31056. __bool__ = __nonzero__
  31057. m_internal = property(_mupdf.PdfLexbuf_m_internal_get, _mupdf.PdfLexbuf_m_internal_set, doc=r"""Pointer to wrapped data.""")
  31058. s_num_instances = property(_mupdf.PdfLexbuf_s_num_instances_get, _mupdf.PdfLexbuf_s_num_instances_set)
  31059. # Register PdfLexbuf in _mupdf:
  31060. _mupdf.PdfLexbuf_swigregister(PdfLexbuf)
  31061. class PdfLexbufLarge(object):
  31062. r"""Wrapper class for struct `pdf_lexbuf_large`. Not copyable or assignable."""
  31063. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  31064. __repr__ = _swig_repr
  31065. def __init__(self, *args):
  31066. r"""
  31067. *Overload 1:*
  31068. Default constructor, sets `m_internal` to null.
  31069. |
  31070. *Overload 2:*
  31071. Constructor using raw copy of pre-existing `::pdf_lexbuf_large`.
  31072. """
  31073. _mupdf.PdfLexbufLarge_swiginit(self, _mupdf.new_PdfLexbufLarge(*args))
  31074. __swig_destroy__ = _mupdf.delete_PdfLexbufLarge
  31075. def m_internal_value(self):
  31076. r"""Return numerical value of .m_internal; helps with Python debugging."""
  31077. return _mupdf.PdfLexbufLarge_m_internal_value(self)
  31078. def __nonzero__(self):
  31079. return _mupdf.PdfLexbufLarge___nonzero__(self)
  31080. __bool__ = __nonzero__
  31081. m_internal = property(_mupdf.PdfLexbufLarge_m_internal_get, _mupdf.PdfLexbufLarge_m_internal_set, doc=r"""Pointer to wrapped data.""")
  31082. s_num_instances = property(_mupdf.PdfLexbufLarge_s_num_instances_get, _mupdf.PdfLexbufLarge_s_num_instances_set)
  31083. # Register PdfLexbufLarge in _mupdf:
  31084. _mupdf.PdfLexbufLarge_swigregister(PdfLexbufLarge)
  31085. class PdfLockedFields(object):
  31086. r"""Wrapper class for struct `pdf_locked_fields`. Not copyable or assignable."""
  31087. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  31088. __repr__ = _swig_repr
  31089. def pdf_is_field_locked(self, name):
  31090. r"""Class-aware wrapper for `::pdf_is_field_locked()`."""
  31091. return _mupdf.PdfLockedFields_pdf_is_field_locked(self, name)
  31092. def __init__(self, *args):
  31093. r"""
  31094. *Overload 1:*
  31095. Default constructor, sets `m_internal` to null.
  31096. |
  31097. *Overload 2:*
  31098. Constructor using raw copy of pre-existing `::pdf_locked_fields`.
  31099. """
  31100. _mupdf.PdfLockedFields_swiginit(self, _mupdf.new_PdfLockedFields(*args))
  31101. __swig_destroy__ = _mupdf.delete_PdfLockedFields
  31102. def m_internal_value(self):
  31103. r"""Return numerical value of .m_internal; helps with Python debugging."""
  31104. return _mupdf.PdfLockedFields_m_internal_value(self)
  31105. def __nonzero__(self):
  31106. return _mupdf.PdfLockedFields___nonzero__(self)
  31107. __bool__ = __nonzero__
  31108. m_internal = property(_mupdf.PdfLockedFields_m_internal_get, _mupdf.PdfLockedFields_m_internal_set, doc=r"""Pointer to wrapped data.""")
  31109. s_num_instances = property(_mupdf.PdfLockedFields_s_num_instances_get, _mupdf.PdfLockedFields_s_num_instances_set)
  31110. # Register PdfLockedFields in _mupdf:
  31111. _mupdf.PdfLockedFields_swigregister(PdfLockedFields)
  31112. class PdfMailDocEvent(object):
  31113. r"""Wrapper class for struct `pdf_mail_doc_event`. Not copyable or assignable."""
  31114. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  31115. __repr__ = _swig_repr
  31116. def __init__(self, *args):
  31117. r"""
  31118. *Overload 1:*
  31119. Default constructor, sets `m_internal` to null.
  31120. |
  31121. *Overload 2:*
  31122. Constructor using raw copy of pre-existing `::pdf_mail_doc_event`.
  31123. """
  31124. _mupdf.PdfMailDocEvent_swiginit(self, _mupdf.new_PdfMailDocEvent(*args))
  31125. __swig_destroy__ = _mupdf.delete_PdfMailDocEvent
  31126. def m_internal_value(self):
  31127. r"""Return numerical value of .m_internal; helps with Python debugging."""
  31128. return _mupdf.PdfMailDocEvent_m_internal_value(self)
  31129. def __nonzero__(self):
  31130. return _mupdf.PdfMailDocEvent___nonzero__(self)
  31131. __bool__ = __nonzero__
  31132. m_internal = property(_mupdf.PdfMailDocEvent_m_internal_get, _mupdf.PdfMailDocEvent_m_internal_set, doc=r"""Pointer to wrapped data.""")
  31133. s_num_instances = property(_mupdf.PdfMailDocEvent_s_num_instances_get, _mupdf.PdfMailDocEvent_s_num_instances_set)
  31134. # Register PdfMailDocEvent in _mupdf:
  31135. _mupdf.PdfMailDocEvent_swigregister(PdfMailDocEvent)
  31136. class PdfMarkBits(object):
  31137. r"""Wrapper class for struct `pdf_mark_bits`. Not copyable or assignable."""
  31138. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  31139. __repr__ = _swig_repr
  31140. def pdf_mark_bits_reset(self):
  31141. r"""Class-aware wrapper for `::pdf_mark_bits_reset()`."""
  31142. return _mupdf.PdfMarkBits_pdf_mark_bits_reset(self)
  31143. def pdf_mark_bits_set(self, obj):
  31144. r"""Class-aware wrapper for `::pdf_mark_bits_set()`."""
  31145. return _mupdf.PdfMarkBits_pdf_mark_bits_set(self, obj)
  31146. def __init__(self, *args):
  31147. r"""
  31148. *Overload 1:*
  31149. == Constructors. Constructor using `pdf_new_mark_bits()`.
  31150. |
  31151. *Overload 2:*
  31152. Default constructor, sets `m_internal` to null.
  31153. |
  31154. *Overload 3:*
  31155. Constructor using raw copy of pre-existing `::pdf_mark_bits`.
  31156. """
  31157. _mupdf.PdfMarkBits_swiginit(self, _mupdf.new_PdfMarkBits(*args))
  31158. __swig_destroy__ = _mupdf.delete_PdfMarkBits
  31159. def m_internal_value(self):
  31160. r"""Return numerical value of .m_internal; helps with Python debugging."""
  31161. return _mupdf.PdfMarkBits_m_internal_value(self)
  31162. def __nonzero__(self):
  31163. return _mupdf.PdfMarkBits___nonzero__(self)
  31164. __bool__ = __nonzero__
  31165. m_internal = property(_mupdf.PdfMarkBits_m_internal_get, _mupdf.PdfMarkBits_m_internal_set, doc=r"""Pointer to wrapped data.""")
  31166. s_num_instances = property(_mupdf.PdfMarkBits_s_num_instances_get, _mupdf.PdfMarkBits_s_num_instances_set)
  31167. # Register PdfMarkBits in _mupdf:
  31168. _mupdf.PdfMarkBits_swigregister(PdfMarkBits)
  31169. class PdfMarkList(object):
  31170. r"""Wrapper class for struct `pdf_mark_list`. Not copyable or assignable."""
  31171. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  31172. __repr__ = _swig_repr
  31173. def pdf_mark_list_check(self, obj):
  31174. r"""Class-aware wrapper for `::pdf_mark_list_check()`."""
  31175. return _mupdf.PdfMarkList_pdf_mark_list_check(self, obj)
  31176. def pdf_mark_list_free(self):
  31177. r"""Class-aware wrapper for `::pdf_mark_list_free()`."""
  31178. return _mupdf.PdfMarkList_pdf_mark_list_free(self)
  31179. def pdf_mark_list_init(self):
  31180. r"""Class-aware wrapper for `::pdf_mark_list_init()`."""
  31181. return _mupdf.PdfMarkList_pdf_mark_list_init(self)
  31182. def pdf_mark_list_pop(self):
  31183. r"""Class-aware wrapper for `::pdf_mark_list_pop()`."""
  31184. return _mupdf.PdfMarkList_pdf_mark_list_pop(self)
  31185. def pdf_mark_list_push(self, obj):
  31186. r"""Class-aware wrapper for `::pdf_mark_list_push()`."""
  31187. return _mupdf.PdfMarkList_pdf_mark_list_push(self, obj)
  31188. def __init__(self, *args):
  31189. r"""
  31190. *Overload 1:*
  31191. Default constructor, sets `m_internal` to null.
  31192. |
  31193. *Overload 2:*
  31194. Constructor using raw copy of pre-existing `::pdf_mark_list`.
  31195. """
  31196. _mupdf.PdfMarkList_swiginit(self, _mupdf.new_PdfMarkList(*args))
  31197. __swig_destroy__ = _mupdf.delete_PdfMarkList
  31198. def m_internal_value(self):
  31199. r"""Return numerical value of .m_internal; helps with Python debugging."""
  31200. return _mupdf.PdfMarkList_m_internal_value(self)
  31201. def __nonzero__(self):
  31202. return _mupdf.PdfMarkList___nonzero__(self)
  31203. __bool__ = __nonzero__
  31204. m_internal = property(_mupdf.PdfMarkList_m_internal_get, _mupdf.PdfMarkList_m_internal_set, doc=r"""Pointer to wrapped data.""")
  31205. s_num_instances = property(_mupdf.PdfMarkList_s_num_instances_get, _mupdf.PdfMarkList_s_num_instances_set)
  31206. # Register PdfMarkList in _mupdf:
  31207. _mupdf.PdfMarkList_swigregister(PdfMarkList)
  31208. class PdfMrange(object):
  31209. r"""Wrapper class for struct `pdf_mrange`. Not copyable or assignable."""
  31210. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  31211. __repr__ = _swig_repr
  31212. def __init__(self, *args):
  31213. r"""
  31214. *Overload 1:*
  31215. Default constructor, sets `m_internal` to null.
  31216. |
  31217. *Overload 2:*
  31218. Constructor using raw copy of pre-existing `::pdf_mrange`.
  31219. """
  31220. _mupdf.PdfMrange_swiginit(self, _mupdf.new_PdfMrange(*args))
  31221. __swig_destroy__ = _mupdf.delete_PdfMrange
  31222. def m_internal_value(self):
  31223. r"""Return numerical value of .m_internal; helps with Python debugging."""
  31224. return _mupdf.PdfMrange_m_internal_value(self)
  31225. def __nonzero__(self):
  31226. return _mupdf.PdfMrange___nonzero__(self)
  31227. __bool__ = __nonzero__
  31228. m_internal = property(_mupdf.PdfMrange_m_internal_get, _mupdf.PdfMrange_m_internal_set, doc=r"""Pointer to wrapped data.""")
  31229. s_num_instances = property(_mupdf.PdfMrange_s_num_instances_get, _mupdf.PdfMrange_s_num_instances_set)
  31230. # Register PdfMrange in _mupdf:
  31231. _mupdf.PdfMrange_swigregister(PdfMrange)
  31232. class PdfObj(object):
  31233. r"""Wrapper class for struct `pdf_obj`."""
  31234. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  31235. __repr__ = _swig_repr
  31236. @staticmethod
  31237. def pdf_new_text_string(s):
  31238. r"""Class-aware wrapper for `::pdf_new_text_string()`."""
  31239. return _mupdf.PdfObj_pdf_new_text_string(s)
  31240. @staticmethod
  31241. def pdf_new_dict(doc, initialcap):
  31242. r"""Class-aware wrapper for `::pdf_new_dict()`."""
  31243. return _mupdf.PdfObj_pdf_new_dict(doc, initialcap)
  31244. def pdf_array_contains(self, obj):
  31245. r"""Class-aware wrapper for `::pdf_array_contains()`."""
  31246. return _mupdf.PdfObj_pdf_array_contains(self, obj)
  31247. def pdf_array_delete(self, index):
  31248. r"""Class-aware wrapper for `::pdf_array_delete()`."""
  31249. return _mupdf.PdfObj_pdf_array_delete(self, index)
  31250. def pdf_array_find(self, obj):
  31251. r"""Class-aware wrapper for `::pdf_array_find()`."""
  31252. return _mupdf.PdfObj_pdf_array_find(self, obj)
  31253. def pdf_array_get(self, i):
  31254. r"""Class-aware wrapper for `::pdf_array_get()`."""
  31255. return _mupdf.PdfObj_pdf_array_get(self, i)
  31256. def pdf_array_get_bool(self, index):
  31257. r"""Class-aware wrapper for `::pdf_array_get_bool()`."""
  31258. return _mupdf.PdfObj_pdf_array_get_bool(self, index)
  31259. def pdf_array_get_int(self, index):
  31260. r"""Class-aware wrapper for `::pdf_array_get_int()`."""
  31261. return _mupdf.PdfObj_pdf_array_get_int(self, index)
  31262. def pdf_array_get_matrix(self, index):
  31263. r"""Class-aware wrapper for `::pdf_array_get_matrix()`."""
  31264. return _mupdf.PdfObj_pdf_array_get_matrix(self, index)
  31265. def pdf_array_get_name(self, index):
  31266. r"""Class-aware wrapper for `::pdf_array_get_name()`."""
  31267. return _mupdf.PdfObj_pdf_array_get_name(self, index)
  31268. def pdf_array_get_real(self, index):
  31269. r"""Class-aware wrapper for `::pdf_array_get_real()`."""
  31270. return _mupdf.PdfObj_pdf_array_get_real(self, index)
  31271. def pdf_array_get_rect(self, index):
  31272. r"""Class-aware wrapper for `::pdf_array_get_rect()`."""
  31273. return _mupdf.PdfObj_pdf_array_get_rect(self, index)
  31274. def pdf_array_get_string(self, index, sizep):
  31275. r"""
  31276. Class-aware wrapper for `::pdf_array_get_string()`.
  31277. This method has out-params. Python/C# wrappers look like:
  31278. `pdf_array_get_string(int index)` => `(const char *, size_t sizep)`
  31279. """
  31280. return _mupdf.PdfObj_pdf_array_get_string(self, index, sizep)
  31281. def pdf_array_get_text_string(self, index):
  31282. r"""Class-aware wrapper for `::pdf_array_get_text_string()`."""
  31283. return _mupdf.PdfObj_pdf_array_get_text_string(self, index)
  31284. def pdf_array_insert(self, obj, index):
  31285. r"""Class-aware wrapper for `::pdf_array_insert()`."""
  31286. return _mupdf.PdfObj_pdf_array_insert(self, obj, index)
  31287. def pdf_array_len(self):
  31288. r"""Class-aware wrapper for `::pdf_array_len()`."""
  31289. return _mupdf.PdfObj_pdf_array_len(self)
  31290. def pdf_array_push(self, obj):
  31291. r"""Class-aware wrapper for `::pdf_array_push()`."""
  31292. return _mupdf.PdfObj_pdf_array_push(self, obj)
  31293. def pdf_array_push_array(self, initial):
  31294. r"""Class-aware wrapper for `::pdf_array_push_array()`."""
  31295. return _mupdf.PdfObj_pdf_array_push_array(self, initial)
  31296. def pdf_array_push_bool(self, x):
  31297. r"""Class-aware wrapper for `::pdf_array_push_bool()`."""
  31298. return _mupdf.PdfObj_pdf_array_push_bool(self, x)
  31299. def pdf_array_push_dict(self, initial):
  31300. r"""Class-aware wrapper for `::pdf_array_push_dict()`."""
  31301. return _mupdf.PdfObj_pdf_array_push_dict(self, initial)
  31302. def pdf_array_push_int(self, x):
  31303. r"""Class-aware wrapper for `::pdf_array_push_int()`."""
  31304. return _mupdf.PdfObj_pdf_array_push_int(self, x)
  31305. def pdf_array_push_name(self, x):
  31306. r"""Class-aware wrapper for `::pdf_array_push_name()`."""
  31307. return _mupdf.PdfObj_pdf_array_push_name(self, x)
  31308. def pdf_array_push_real(self, x):
  31309. r"""Class-aware wrapper for `::pdf_array_push_real()`."""
  31310. return _mupdf.PdfObj_pdf_array_push_real(self, x)
  31311. def pdf_array_push_string(self, x, n):
  31312. r"""Class-aware wrapper for `::pdf_array_push_string()`."""
  31313. return _mupdf.PdfObj_pdf_array_push_string(self, x, n)
  31314. def pdf_array_push_text_string(self, x):
  31315. r"""Class-aware wrapper for `::pdf_array_push_text_string()`."""
  31316. return _mupdf.PdfObj_pdf_array_push_text_string(self, x)
  31317. def pdf_array_put(self, i, obj):
  31318. r"""Class-aware wrapper for `::pdf_array_put()`."""
  31319. return _mupdf.PdfObj_pdf_array_put(self, i, obj)
  31320. def pdf_array_put_array(self, i, initial):
  31321. r"""Class-aware wrapper for `::pdf_array_put_array()`."""
  31322. return _mupdf.PdfObj_pdf_array_put_array(self, i, initial)
  31323. def pdf_array_put_bool(self, i, x):
  31324. r"""Class-aware wrapper for `::pdf_array_put_bool()`."""
  31325. return _mupdf.PdfObj_pdf_array_put_bool(self, i, x)
  31326. def pdf_array_put_dict(self, i, initial):
  31327. r"""Class-aware wrapper for `::pdf_array_put_dict()`."""
  31328. return _mupdf.PdfObj_pdf_array_put_dict(self, i, initial)
  31329. def pdf_array_put_int(self, i, x):
  31330. r"""Class-aware wrapper for `::pdf_array_put_int()`."""
  31331. return _mupdf.PdfObj_pdf_array_put_int(self, i, x)
  31332. def pdf_array_put_name(self, i, x):
  31333. r"""Class-aware wrapper for `::pdf_array_put_name()`."""
  31334. return _mupdf.PdfObj_pdf_array_put_name(self, i, x)
  31335. def pdf_array_put_real(self, i, x):
  31336. r"""Class-aware wrapper for `::pdf_array_put_real()`."""
  31337. return _mupdf.PdfObj_pdf_array_put_real(self, i, x)
  31338. def pdf_array_put_string(self, i, x, n):
  31339. r"""Class-aware wrapper for `::pdf_array_put_string()`."""
  31340. return _mupdf.PdfObj_pdf_array_put_string(self, i, x, n)
  31341. def pdf_array_put_text_string(self, i, x):
  31342. r"""Class-aware wrapper for `::pdf_array_put_text_string()`."""
  31343. return _mupdf.PdfObj_pdf_array_put_text_string(self, i, x)
  31344. def pdf_button_field_on_state(self):
  31345. r"""Class-aware wrapper for `::pdf_button_field_on_state()`."""
  31346. return _mupdf.PdfObj_pdf_button_field_on_state(self)
  31347. def pdf_choice_field_option(self, exportval, i):
  31348. r"""Class-aware wrapper for `::pdf_choice_field_option()`."""
  31349. return _mupdf.PdfObj_pdf_choice_field_option(self, exportval, i)
  31350. def pdf_choice_field_option_count(self):
  31351. r"""Class-aware wrapper for `::pdf_choice_field_option_count()`."""
  31352. return _mupdf.PdfObj_pdf_choice_field_option_count(self)
  31353. def pdf_clean_obj(self):
  31354. r"""Class-aware wrapper for `::pdf_clean_obj()`."""
  31355. return _mupdf.PdfObj_pdf_clean_obj(self)
  31356. def pdf_copy_array(self):
  31357. r"""Class-aware wrapper for `::pdf_copy_array()`."""
  31358. return _mupdf.PdfObj_pdf_copy_array(self)
  31359. def pdf_copy_dict(self):
  31360. r"""Class-aware wrapper for `::pdf_copy_dict()`."""
  31361. return _mupdf.PdfObj_pdf_copy_dict(self)
  31362. def pdf_debug_obj(self):
  31363. r"""Class-aware wrapper for `::pdf_debug_obj()`."""
  31364. return _mupdf.PdfObj_pdf_debug_obj(self)
  31365. def pdf_debug_ref(self):
  31366. r"""Class-aware wrapper for `::pdf_debug_ref()`."""
  31367. return _mupdf.PdfObj_pdf_debug_ref(self)
  31368. def pdf_deep_copy_obj(self):
  31369. r"""Class-aware wrapper for `::pdf_deep_copy_obj()`."""
  31370. return _mupdf.PdfObj_pdf_deep_copy_obj(self)
  31371. def pdf_dict_del(self, key):
  31372. r"""Class-aware wrapper for `::pdf_dict_del()`."""
  31373. return _mupdf.PdfObj_pdf_dict_del(self, key)
  31374. def pdf_dict_dels(self, key):
  31375. r"""Class-aware wrapper for `::pdf_dict_dels()`."""
  31376. return _mupdf.PdfObj_pdf_dict_dels(self, key)
  31377. def pdf_dict_get_bool(self, key):
  31378. r"""Class-aware wrapper for `::pdf_dict_get_bool()`."""
  31379. return _mupdf.PdfObj_pdf_dict_get_bool(self, key)
  31380. def pdf_dict_get_bool_default(self, key, _def):
  31381. r"""Class-aware wrapper for `::pdf_dict_get_bool_default()`."""
  31382. return _mupdf.PdfObj_pdf_dict_get_bool_default(self, key, _def)
  31383. def pdf_dict_get_date(self, key):
  31384. r"""Class-aware wrapper for `::pdf_dict_get_date()`."""
  31385. return _mupdf.PdfObj_pdf_dict_get_date(self, key)
  31386. def pdf_dict_get_inheritable(self, key):
  31387. r"""Class-aware wrapper for `::pdf_dict_get_inheritable()`."""
  31388. return _mupdf.PdfObj_pdf_dict_get_inheritable(self, key)
  31389. def pdf_dict_get_inheritable_bool(self, key):
  31390. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_bool()`."""
  31391. return _mupdf.PdfObj_pdf_dict_get_inheritable_bool(self, key)
  31392. def pdf_dict_get_inheritable_date(self, key):
  31393. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_date()`."""
  31394. return _mupdf.PdfObj_pdf_dict_get_inheritable_date(self, key)
  31395. def pdf_dict_get_inheritable_int(self, key):
  31396. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_int()`."""
  31397. return _mupdf.PdfObj_pdf_dict_get_inheritable_int(self, key)
  31398. def pdf_dict_get_inheritable_int64(self, key):
  31399. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_int64()`."""
  31400. return _mupdf.PdfObj_pdf_dict_get_inheritable_int64(self, key)
  31401. def pdf_dict_get_inheritable_matrix(self, key):
  31402. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_matrix()`."""
  31403. return _mupdf.PdfObj_pdf_dict_get_inheritable_matrix(self, key)
  31404. def pdf_dict_get_inheritable_name(self, key):
  31405. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_name()`."""
  31406. return _mupdf.PdfObj_pdf_dict_get_inheritable_name(self, key)
  31407. def pdf_dict_get_inheritable_real(self, key):
  31408. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_real()`."""
  31409. return _mupdf.PdfObj_pdf_dict_get_inheritable_real(self, key)
  31410. def pdf_dict_get_inheritable_rect(self, key):
  31411. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_rect()`."""
  31412. return _mupdf.PdfObj_pdf_dict_get_inheritable_rect(self, key)
  31413. def pdf_dict_get_inheritable_string(self, key, sizep):
  31414. r"""
  31415. Class-aware wrapper for `::pdf_dict_get_inheritable_string()`.
  31416. This method has out-params. Python/C# wrappers look like:
  31417. `pdf_dict_get_inheritable_string(::pdf_obj *key)` => `(const char *, size_t sizep)`
  31418. """
  31419. return _mupdf.PdfObj_pdf_dict_get_inheritable_string(self, key, sizep)
  31420. def pdf_dict_get_inheritable_text_string(self, key):
  31421. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_text_string()`."""
  31422. return _mupdf.PdfObj_pdf_dict_get_inheritable_text_string(self, key)
  31423. def pdf_dict_get_int(self, key):
  31424. r"""Class-aware wrapper for `::pdf_dict_get_int()`."""
  31425. return _mupdf.PdfObj_pdf_dict_get_int(self, key)
  31426. def pdf_dict_get_int64(self, key):
  31427. r"""Class-aware wrapper for `::pdf_dict_get_int64()`."""
  31428. return _mupdf.PdfObj_pdf_dict_get_int64(self, key)
  31429. def pdf_dict_get_int_default(self, key, _def):
  31430. r"""Class-aware wrapper for `::pdf_dict_get_int_default()`."""
  31431. return _mupdf.PdfObj_pdf_dict_get_int_default(self, key, _def)
  31432. def pdf_dict_get_key(self, idx):
  31433. r"""Class-aware wrapper for `::pdf_dict_get_key()`."""
  31434. return _mupdf.PdfObj_pdf_dict_get_key(self, idx)
  31435. def pdf_dict_get_matrix(self, key):
  31436. r"""Class-aware wrapper for `::pdf_dict_get_matrix()`."""
  31437. return _mupdf.PdfObj_pdf_dict_get_matrix(self, key)
  31438. def pdf_dict_get_name(self, key):
  31439. r"""Class-aware wrapper for `::pdf_dict_get_name()`."""
  31440. return _mupdf.PdfObj_pdf_dict_get_name(self, key)
  31441. def pdf_dict_get_point(self, key):
  31442. r"""Class-aware wrapper for `::pdf_dict_get_point()`."""
  31443. return _mupdf.PdfObj_pdf_dict_get_point(self, key)
  31444. def pdf_dict_get_real(self, key):
  31445. r"""Class-aware wrapper for `::pdf_dict_get_real()`."""
  31446. return _mupdf.PdfObj_pdf_dict_get_real(self, key)
  31447. def pdf_dict_get_real_default(self, key, _def):
  31448. r"""Class-aware wrapper for `::pdf_dict_get_real_default()`."""
  31449. return _mupdf.PdfObj_pdf_dict_get_real_default(self, key, _def)
  31450. def pdf_dict_get_rect(self, key):
  31451. r"""Class-aware wrapper for `::pdf_dict_get_rect()`."""
  31452. return _mupdf.PdfObj_pdf_dict_get_rect(self, key)
  31453. def pdf_dict_get_string(self, key, sizep):
  31454. r"""
  31455. Class-aware wrapper for `::pdf_dict_get_string()`.
  31456. This method has out-params. Python/C# wrappers look like:
  31457. `pdf_dict_get_string(::pdf_obj *key)` => `(const char *, size_t sizep)`
  31458. """
  31459. return _mupdf.PdfObj_pdf_dict_get_string(self, key, sizep)
  31460. def pdf_dict_get_text_string(self, key):
  31461. r"""Class-aware wrapper for `::pdf_dict_get_text_string()`."""
  31462. return _mupdf.PdfObj_pdf_dict_get_text_string(self, key)
  31463. def pdf_dict_get_text_string_opt(self, key):
  31464. r"""Class-aware wrapper for `::pdf_dict_get_text_string_opt()`."""
  31465. return _mupdf.PdfObj_pdf_dict_get_text_string_opt(self, key)
  31466. def pdf_dict_get_val(self, idx):
  31467. r"""Class-aware wrapper for `::pdf_dict_get_val()`."""
  31468. return _mupdf.PdfObj_pdf_dict_get_val(self, idx)
  31469. def pdf_dict_geta(self, key, abbrev):
  31470. r"""Class-aware wrapper for `::pdf_dict_geta()`."""
  31471. return _mupdf.PdfObj_pdf_dict_geta(self, key, abbrev)
  31472. def pdf_dict_getp(self, path):
  31473. r"""Class-aware wrapper for `::pdf_dict_getp()`."""
  31474. return _mupdf.PdfObj_pdf_dict_getp(self, path)
  31475. def pdf_dict_getp_inheritable(self, path):
  31476. r"""Class-aware wrapper for `::pdf_dict_getp_inheritable()`."""
  31477. return _mupdf.PdfObj_pdf_dict_getp_inheritable(self, path)
  31478. def pdf_dict_gets(self, key):
  31479. r"""Class-aware wrapper for `::pdf_dict_gets()`."""
  31480. return _mupdf.PdfObj_pdf_dict_gets(self, key)
  31481. def pdf_dict_gets_inheritable(self, key):
  31482. r"""Class-aware wrapper for `::pdf_dict_gets_inheritable()`."""
  31483. return _mupdf.PdfObj_pdf_dict_gets_inheritable(self, key)
  31484. def pdf_dict_getsa(self, key, abbrev):
  31485. r"""Class-aware wrapper for `::pdf_dict_getsa()`."""
  31486. return _mupdf.PdfObj_pdf_dict_getsa(self, key, abbrev)
  31487. def pdf_dict_len(self):
  31488. r"""Class-aware wrapper for `::pdf_dict_len()`."""
  31489. return _mupdf.PdfObj_pdf_dict_len(self)
  31490. def pdf_dict_put(self, key, val):
  31491. r"""Class-aware wrapper for `::pdf_dict_put()`."""
  31492. return _mupdf.PdfObj_pdf_dict_put(self, key, val)
  31493. def pdf_dict_put_array(self, key, initial):
  31494. r"""Class-aware wrapper for `::pdf_dict_put_array()`."""
  31495. return _mupdf.PdfObj_pdf_dict_put_array(self, key, initial)
  31496. def pdf_dict_put_bool(self, key, x):
  31497. r"""Class-aware wrapper for `::pdf_dict_put_bool()`."""
  31498. return _mupdf.PdfObj_pdf_dict_put_bool(self, key, x)
  31499. def pdf_dict_put_date(self, key, time):
  31500. r"""Class-aware wrapper for `::pdf_dict_put_date()`."""
  31501. return _mupdf.PdfObj_pdf_dict_put_date(self, key, time)
  31502. def pdf_dict_put_dict(self, key, initial):
  31503. r"""Class-aware wrapper for `::pdf_dict_put_dict()`."""
  31504. return _mupdf.PdfObj_pdf_dict_put_dict(self, key, initial)
  31505. def pdf_dict_put_indirect(self, key, num):
  31506. r"""Class-aware wrapper for `::pdf_dict_put_indirect()`."""
  31507. return _mupdf.PdfObj_pdf_dict_put_indirect(self, key, num)
  31508. def pdf_dict_put_int(self, key, x):
  31509. r"""Class-aware wrapper for `::pdf_dict_put_int()`."""
  31510. return _mupdf.PdfObj_pdf_dict_put_int(self, key, x)
  31511. def pdf_dict_put_matrix(self, key, x):
  31512. r"""Class-aware wrapper for `::pdf_dict_put_matrix()`."""
  31513. return _mupdf.PdfObj_pdf_dict_put_matrix(self, key, x)
  31514. def pdf_dict_put_name(self, key, x):
  31515. r"""Class-aware wrapper for `::pdf_dict_put_name()`."""
  31516. return _mupdf.PdfObj_pdf_dict_put_name(self, key, x)
  31517. def pdf_dict_put_point(self, key, x):
  31518. r"""Class-aware wrapper for `::pdf_dict_put_point()`."""
  31519. return _mupdf.PdfObj_pdf_dict_put_point(self, key, x)
  31520. def pdf_dict_put_real(self, key, x):
  31521. r"""Class-aware wrapper for `::pdf_dict_put_real()`."""
  31522. return _mupdf.PdfObj_pdf_dict_put_real(self, key, x)
  31523. def pdf_dict_put_rect(self, key, x):
  31524. r"""Class-aware wrapper for `::pdf_dict_put_rect()`."""
  31525. return _mupdf.PdfObj_pdf_dict_put_rect(self, key, x)
  31526. def pdf_dict_put_string(self, key, x, n):
  31527. r"""Class-aware wrapper for `::pdf_dict_put_string()`."""
  31528. return _mupdf.PdfObj_pdf_dict_put_string(self, key, x, n)
  31529. def pdf_dict_put_text_string(self, key, x):
  31530. r"""Class-aware wrapper for `::pdf_dict_put_text_string()`."""
  31531. return _mupdf.PdfObj_pdf_dict_put_text_string(self, key, x)
  31532. def pdf_dict_put_val_null(self, idx):
  31533. r"""Class-aware wrapper for `::pdf_dict_put_val_null()`."""
  31534. return _mupdf.PdfObj_pdf_dict_put_val_null(self, idx)
  31535. def pdf_dict_putp(self, path, val):
  31536. r"""Class-aware wrapper for `::pdf_dict_putp()`."""
  31537. return _mupdf.PdfObj_pdf_dict_putp(self, path, val)
  31538. def pdf_dict_puts(self, key, val):
  31539. r"""Class-aware wrapper for `::pdf_dict_puts()`."""
  31540. return _mupdf.PdfObj_pdf_dict_puts(self, key, val)
  31541. def pdf_dict_puts_dict(self, key, initial):
  31542. r"""Class-aware wrapper for `::pdf_dict_puts_dict()`."""
  31543. return _mupdf.PdfObj_pdf_dict_puts_dict(self, key, initial)
  31544. def pdf_dirty_obj(self):
  31545. r"""Class-aware wrapper for `::pdf_dirty_obj()`."""
  31546. return _mupdf.PdfObj_pdf_dirty_obj(self)
  31547. def pdf_field_border_style(self):
  31548. r"""Class-aware wrapper for `::pdf_field_border_style()`."""
  31549. return _mupdf.PdfObj_pdf_field_border_style(self)
  31550. def pdf_field_display(self):
  31551. r"""Class-aware wrapper for `::pdf_field_display()`."""
  31552. return _mupdf.PdfObj_pdf_field_display(self)
  31553. def pdf_field_flags(self):
  31554. r"""Class-aware wrapper for `::pdf_field_flags()`."""
  31555. return _mupdf.PdfObj_pdf_field_flags(self)
  31556. def pdf_field_label(self):
  31557. r"""Class-aware wrapper for `::pdf_field_label()`."""
  31558. return _mupdf.PdfObj_pdf_field_label(self)
  31559. def pdf_field_set_border_style(self, text):
  31560. r"""Class-aware wrapper for `::pdf_field_set_border_style()`."""
  31561. return _mupdf.PdfObj_pdf_field_set_border_style(self, text)
  31562. def pdf_field_set_button_caption(self, text):
  31563. r"""Class-aware wrapper for `::pdf_field_set_button_caption()`."""
  31564. return _mupdf.PdfObj_pdf_field_set_button_caption(self, text)
  31565. def pdf_field_set_display(self, d):
  31566. r"""Class-aware wrapper for `::pdf_field_set_display()`."""
  31567. return _mupdf.PdfObj_pdf_field_set_display(self, d)
  31568. def pdf_field_set_fill_color(self, col):
  31569. r"""Class-aware wrapper for `::pdf_field_set_fill_color()`."""
  31570. return _mupdf.PdfObj_pdf_field_set_fill_color(self, col)
  31571. def pdf_field_set_text_color(self, col):
  31572. r"""Class-aware wrapper for `::pdf_field_set_text_color()`."""
  31573. return _mupdf.PdfObj_pdf_field_set_text_color(self, col)
  31574. def pdf_field_type(self):
  31575. r"""Class-aware wrapper for `::pdf_field_type()`."""
  31576. return _mupdf.PdfObj_pdf_field_type(self)
  31577. def pdf_field_type_string(self):
  31578. r"""Class-aware wrapper for `::pdf_field_type_string()`."""
  31579. return _mupdf.PdfObj_pdf_field_type_string(self)
  31580. def pdf_field_value(self):
  31581. r"""Class-aware wrapper for `::pdf_field_value()`."""
  31582. return _mupdf.PdfObj_pdf_field_value(self)
  31583. def pdf_filter_xobject_instance(self, page_res, ctm, options, cycle_up):
  31584. r"""Class-aware wrapper for `::pdf_filter_xobject_instance()`."""
  31585. return _mupdf.PdfObj_pdf_filter_xobject_instance(self, page_res, ctm, options, cycle_up)
  31586. def pdf_flatten_inheritable_page_items(self):
  31587. r"""Class-aware wrapper for `::pdf_flatten_inheritable_page_items()`."""
  31588. return _mupdf.PdfObj_pdf_flatten_inheritable_page_items(self)
  31589. def pdf_get_bound_document(self):
  31590. r"""Class-aware wrapper for `::pdf_get_bound_document()`."""
  31591. return _mupdf.PdfObj_pdf_get_bound_document(self)
  31592. def pdf_get_filespec_params(self, out):
  31593. r"""Class-aware wrapper for `::pdf_get_filespec_params()`."""
  31594. return _mupdf.PdfObj_pdf_get_filespec_params(self, out)
  31595. def pdf_get_indirect_document(self):
  31596. r"""Class-aware wrapper for `::pdf_get_indirect_document()`."""
  31597. return _mupdf.PdfObj_pdf_get_indirect_document(self)
  31598. def pdf_intent_from_name(self):
  31599. r"""Class-aware wrapper for `::pdf_intent_from_name()`."""
  31600. return _mupdf.PdfObj_pdf_intent_from_name(self)
  31601. def pdf_is_array(self):
  31602. r"""Class-aware wrapper for `::pdf_is_array()`."""
  31603. return _mupdf.PdfObj_pdf_is_array(self)
  31604. def pdf_is_bool(self):
  31605. r"""Class-aware wrapper for `::pdf_is_bool()`."""
  31606. return _mupdf.PdfObj_pdf_is_bool(self)
  31607. def pdf_is_dict(self):
  31608. r"""Class-aware wrapper for `::pdf_is_dict()`."""
  31609. return _mupdf.PdfObj_pdf_is_dict(self)
  31610. def pdf_is_embedded_file(self):
  31611. r"""Class-aware wrapper for `::pdf_is_embedded_file()`."""
  31612. return _mupdf.PdfObj_pdf_is_embedded_file(self)
  31613. def pdf_is_filespec(self):
  31614. r"""Class-aware wrapper for `::pdf_is_filespec()`."""
  31615. return _mupdf.PdfObj_pdf_is_filespec(self)
  31616. def pdf_is_image_stream(self):
  31617. r"""Class-aware wrapper for `::pdf_is_image_stream()`."""
  31618. return _mupdf.PdfObj_pdf_is_image_stream(self)
  31619. def pdf_is_indirect(self):
  31620. r"""Class-aware wrapper for `::pdf_is_indirect()`."""
  31621. return _mupdf.PdfObj_pdf_is_indirect(self)
  31622. def pdf_is_int(self):
  31623. r"""Class-aware wrapper for `::pdf_is_int()`."""
  31624. return _mupdf.PdfObj_pdf_is_int(self)
  31625. def pdf_is_jpx_image(self):
  31626. r"""Class-aware wrapper for `::pdf_is_jpx_image()`."""
  31627. return _mupdf.PdfObj_pdf_is_jpx_image(self)
  31628. def pdf_is_name(self):
  31629. r"""Class-aware wrapper for `::pdf_is_name()`."""
  31630. return _mupdf.PdfObj_pdf_is_name(self)
  31631. def pdf_is_null(self):
  31632. r"""Class-aware wrapper for `::pdf_is_null()`."""
  31633. return _mupdf.PdfObj_pdf_is_null(self)
  31634. def pdf_is_number(self):
  31635. r"""Class-aware wrapper for `::pdf_is_number()`."""
  31636. return _mupdf.PdfObj_pdf_is_number(self)
  31637. def pdf_is_real(self):
  31638. r"""Class-aware wrapper for `::pdf_is_real()`."""
  31639. return _mupdf.PdfObj_pdf_is_real(self)
  31640. def pdf_is_stream(self):
  31641. r"""Class-aware wrapper for `::pdf_is_stream()`."""
  31642. return _mupdf.PdfObj_pdf_is_stream(self)
  31643. def pdf_is_string(self):
  31644. r"""Class-aware wrapper for `::pdf_is_string()`."""
  31645. return _mupdf.PdfObj_pdf_is_string(self)
  31646. def pdf_line_ending_from_name(self):
  31647. r"""Class-aware wrapper for `::pdf_line_ending_from_name()`."""
  31648. return _mupdf.PdfObj_pdf_line_ending_from_name(self)
  31649. def pdf_load_colorspace(self):
  31650. r"""Class-aware wrapper for `::pdf_load_colorspace()`."""
  31651. return _mupdf.PdfObj_pdf_load_colorspace(self)
  31652. def pdf_load_embedded_file_contents(self):
  31653. r"""Class-aware wrapper for `::pdf_load_embedded_file_contents()`."""
  31654. return _mupdf.PdfObj_pdf_load_embedded_file_contents(self)
  31655. def pdf_load_field_name(self):
  31656. r"""Class-aware wrapper for `::pdf_load_field_name()`."""
  31657. return _mupdf.PdfObj_pdf_load_field_name(self)
  31658. def pdf_load_function(self, _in, out):
  31659. r"""Class-aware wrapper for `::pdf_load_function()`."""
  31660. return _mupdf.PdfObj_pdf_load_function(self, _in, out)
  31661. def pdf_load_raw_stream(self):
  31662. r"""Class-aware wrapper for `::pdf_load_raw_stream()`."""
  31663. return _mupdf.PdfObj_pdf_load_raw_stream(self)
  31664. def pdf_load_stream(self):
  31665. r"""Class-aware wrapper for `::pdf_load_stream()`."""
  31666. return _mupdf.PdfObj_pdf_load_stream(self)
  31667. def pdf_load_stream_or_string_as_utf8(self):
  31668. r"""Class-aware wrapper for `::pdf_load_stream_or_string_as_utf8()`."""
  31669. return _mupdf.PdfObj_pdf_load_stream_or_string_as_utf8(self)
  31670. def pdf_lookup_field(self, name):
  31671. r"""Class-aware wrapper for `::pdf_lookup_field()`."""
  31672. return _mupdf.PdfObj_pdf_lookup_field(self, name)
  31673. def pdf_lookup_number(self, needle):
  31674. r"""Class-aware wrapper for `::pdf_lookup_number()`."""
  31675. return _mupdf.PdfObj_pdf_lookup_number(self, needle)
  31676. def pdf_mark_obj(self):
  31677. r"""Class-aware wrapper for `::pdf_mark_obj()`."""
  31678. return _mupdf.PdfObj_pdf_mark_obj(self)
  31679. def pdf_name_eq(self, b):
  31680. r"""Class-aware wrapper for `::pdf_name_eq()`."""
  31681. return _mupdf.PdfObj_pdf_name_eq(self, b)
  31682. def pdf_new_utf8_from_pdf_stream_obj(self):
  31683. r"""Class-aware wrapper for `::pdf_new_utf8_from_pdf_stream_obj()`."""
  31684. return _mupdf.PdfObj_pdf_new_utf8_from_pdf_stream_obj(self)
  31685. def pdf_new_utf8_from_pdf_string_obj(self):
  31686. r"""Class-aware wrapper for `::pdf_new_utf8_from_pdf_string_obj()`."""
  31687. return _mupdf.PdfObj_pdf_new_utf8_from_pdf_string_obj(self)
  31688. def pdf_obj_is_dirty(self):
  31689. r"""Class-aware wrapper for `::pdf_obj_is_dirty()`."""
  31690. return _mupdf.PdfObj_pdf_obj_is_dirty(self)
  31691. def pdf_obj_is_incremental(self):
  31692. r"""Class-aware wrapper for `::pdf_obj_is_incremental()`."""
  31693. return _mupdf.PdfObj_pdf_obj_is_incremental(self)
  31694. def pdf_obj_marked(self):
  31695. r"""Class-aware wrapper for `::pdf_obj_marked()`."""
  31696. return _mupdf.PdfObj_pdf_obj_marked(self)
  31697. def pdf_obj_memo(self, bit, memo):
  31698. r"""
  31699. Class-aware wrapper for `::pdf_obj_memo()`.
  31700. This method has out-params. Python/C# wrappers look like:
  31701. `pdf_obj_memo(int bit)` => `(int, int memo)`
  31702. """
  31703. return _mupdf.PdfObj_pdf_obj_memo(self, bit, memo)
  31704. def pdf_obj_parent_num(self):
  31705. r"""Class-aware wrapper for `::pdf_obj_parent_num()`."""
  31706. return _mupdf.PdfObj_pdf_obj_parent_num(self)
  31707. def pdf_obj_refs(self):
  31708. r"""Class-aware wrapper for `::pdf_obj_refs()`."""
  31709. return _mupdf.PdfObj_pdf_obj_refs(self)
  31710. def pdf_objcmp(self, b):
  31711. r"""Class-aware wrapper for `::pdf_objcmp()`."""
  31712. return _mupdf.PdfObj_pdf_objcmp(self, b)
  31713. def pdf_objcmp_deep(self, b):
  31714. r"""Class-aware wrapper for `::pdf_objcmp_deep()`."""
  31715. return _mupdf.PdfObj_pdf_objcmp_deep(self, b)
  31716. def pdf_objcmp_resolve(self, b):
  31717. r"""Class-aware wrapper for `::pdf_objcmp_resolve()`."""
  31718. return _mupdf.PdfObj_pdf_objcmp_resolve(self, b)
  31719. def pdf_open_raw_stream(self):
  31720. r"""Class-aware wrapper for `::pdf_open_raw_stream()`."""
  31721. return _mupdf.PdfObj_pdf_open_raw_stream(self)
  31722. def pdf_open_stream(self):
  31723. r"""Class-aware wrapper for `::pdf_open_stream()`."""
  31724. return _mupdf.PdfObj_pdf_open_stream(self)
  31725. def pdf_page_obj_transform(self, outbox, outctm):
  31726. r"""Class-aware wrapper for `::pdf_page_obj_transform()`."""
  31727. return _mupdf.PdfObj_pdf_page_obj_transform(self, outbox, outctm)
  31728. def pdf_page_obj_transform_box(self, outbox, out, box):
  31729. r"""Class-aware wrapper for `::pdf_page_obj_transform_box()`."""
  31730. return _mupdf.PdfObj_pdf_page_obj_transform_box(self, outbox, out, box)
  31731. def pdf_pin_document(self):
  31732. r"""Class-aware wrapper for `::pdf_pin_document()`."""
  31733. return _mupdf.PdfObj_pdf_pin_document(self)
  31734. def pdf_recolor_shade(self, reshade, opaque):
  31735. r"""
  31736. Class-aware wrapper for `::pdf_recolor_shade()`.
  31737. Recolor a shade.
  31738. """
  31739. return _mupdf.PdfObj_pdf_recolor_shade(self, reshade, opaque)
  31740. def pdf_resolve_indirect(self):
  31741. r"""
  31742. Class-aware wrapper for `::pdf_resolve_indirect()`.
  31743. Resolve an indirect object (or chain of objects).
  31744. This can cause xref reorganisations (solidifications etc) due to
  31745. repairs, so all held pdf_xref_entries should be considered
  31746. invalid after this call (other than the returned one).
  31747. """
  31748. return _mupdf.PdfObj_pdf_resolve_indirect(self)
  31749. def pdf_resolve_indirect_chain(self):
  31750. r"""Class-aware wrapper for `::pdf_resolve_indirect_chain()`."""
  31751. return _mupdf.PdfObj_pdf_resolve_indirect_chain(self)
  31752. def pdf_set_int(self, i):
  31753. r"""Class-aware wrapper for `::pdf_set_int()`."""
  31754. return _mupdf.PdfObj_pdf_set_int(self, i)
  31755. def pdf_set_obj_memo(self, bit, memo):
  31756. r"""Class-aware wrapper for `::pdf_set_obj_memo()`."""
  31757. return _mupdf.PdfObj_pdf_set_obj_memo(self, bit, memo)
  31758. def pdf_set_obj_parent(self, num):
  31759. r"""Class-aware wrapper for `::pdf_set_obj_parent()`."""
  31760. return _mupdf.PdfObj_pdf_set_obj_parent(self, num)
  31761. def pdf_set_str_len(self, newlen):
  31762. r"""Class-aware wrapper for `::pdf_set_str_len()`."""
  31763. return _mupdf.PdfObj_pdf_set_str_len(self, newlen)
  31764. def pdf_sort_dict(self):
  31765. r"""Class-aware wrapper for `::pdf_sort_dict()`."""
  31766. return _mupdf.PdfObj_pdf_sort_dict(self)
  31767. def pdf_store_item(self, val, itemsize):
  31768. r"""Class-aware wrapper for `::pdf_store_item()`."""
  31769. return _mupdf.PdfObj_pdf_store_item(self, val, itemsize)
  31770. def pdf_to_bool(self):
  31771. r"""Class-aware wrapper for `::pdf_to_bool()`."""
  31772. return _mupdf.PdfObj_pdf_to_bool(self)
  31773. def pdf_to_bool_default(self, _def):
  31774. r"""Class-aware wrapper for `::pdf_to_bool_default()`."""
  31775. return _mupdf.PdfObj_pdf_to_bool_default(self, _def)
  31776. def pdf_to_date(self):
  31777. r"""Class-aware wrapper for `::pdf_to_date()`."""
  31778. return _mupdf.PdfObj_pdf_to_date(self)
  31779. def pdf_to_gen(self):
  31780. r"""Class-aware wrapper for `::pdf_to_gen()`."""
  31781. return _mupdf.PdfObj_pdf_to_gen(self)
  31782. def pdf_to_int(self):
  31783. r"""Class-aware wrapper for `::pdf_to_int()`."""
  31784. return _mupdf.PdfObj_pdf_to_int(self)
  31785. def pdf_to_int64(self):
  31786. r"""Class-aware wrapper for `::pdf_to_int64()`."""
  31787. return _mupdf.PdfObj_pdf_to_int64(self)
  31788. def pdf_to_int_default(self, _def):
  31789. r"""Class-aware wrapper for `::pdf_to_int_default()`."""
  31790. return _mupdf.PdfObj_pdf_to_int_default(self, _def)
  31791. def pdf_to_matrix(self):
  31792. r"""Class-aware wrapper for `::pdf_to_matrix()`."""
  31793. return _mupdf.PdfObj_pdf_to_matrix(self)
  31794. def pdf_to_name(self):
  31795. r"""Class-aware wrapper for `::pdf_to_name()`."""
  31796. return _mupdf.PdfObj_pdf_to_name(self)
  31797. def pdf_to_num(self):
  31798. r"""Class-aware wrapper for `::pdf_to_num()`."""
  31799. return _mupdf.PdfObj_pdf_to_num(self)
  31800. def pdf_to_point(self, offset):
  31801. r"""Class-aware wrapper for `::pdf_to_point()`."""
  31802. return _mupdf.PdfObj_pdf_to_point(self, offset)
  31803. def pdf_to_quad(self, offset):
  31804. r"""Class-aware wrapper for `::pdf_to_quad()`."""
  31805. return _mupdf.PdfObj_pdf_to_quad(self, offset)
  31806. def pdf_to_real(self):
  31807. r"""Class-aware wrapper for `::pdf_to_real()`."""
  31808. return _mupdf.PdfObj_pdf_to_real(self)
  31809. def pdf_to_real_default(self, _def):
  31810. r"""Class-aware wrapper for `::pdf_to_real_default()`."""
  31811. return _mupdf.PdfObj_pdf_to_real_default(self, _def)
  31812. def pdf_to_rect(self):
  31813. r"""Class-aware wrapper for `::pdf_to_rect()`."""
  31814. return _mupdf.PdfObj_pdf_to_rect(self)
  31815. def pdf_to_str_buf(self):
  31816. r"""Class-aware wrapper for `::pdf_to_str_buf()`."""
  31817. return _mupdf.PdfObj_pdf_to_str_buf(self)
  31818. def pdf_to_str_len(self):
  31819. r"""Class-aware wrapper for `::pdf_to_str_len()`."""
  31820. return _mupdf.PdfObj_pdf_to_str_len(self)
  31821. def pdf_to_string(self, sizep):
  31822. r"""
  31823. Class-aware wrapper for `::pdf_to_string()`.
  31824. This method has out-params. Python/C# wrappers look like:
  31825. `pdf_to_string()` => `(const char *, size_t sizep)`
  31826. """
  31827. return _mupdf.PdfObj_pdf_to_string(self, sizep)
  31828. def pdf_to_text_string(self):
  31829. r"""Class-aware wrapper for `::pdf_to_text_string()`."""
  31830. return _mupdf.PdfObj_pdf_to_text_string(self)
  31831. def pdf_unmark_obj(self):
  31832. r"""Class-aware wrapper for `::pdf_unmark_obj()`."""
  31833. return _mupdf.PdfObj_pdf_unmark_obj(self)
  31834. def pdf_verify_embedded_file_checksum(self):
  31835. r"""Class-aware wrapper for `::pdf_verify_embedded_file_checksum()`."""
  31836. return _mupdf.PdfObj_pdf_verify_embedded_file_checksum(self)
  31837. def pdf_walk_tree(self, kid_name, arrive, leave, arg, names, values):
  31838. r"""
  31839. Class-aware wrapper for `::pdf_walk_tree()`.
  31840. This method has out-params. Python/C# wrappers look like:
  31841. `pdf_walk_tree(::pdf_obj *kid_name, void (*arrive)(::fz_context *, ::pdf_obj *, void *, ::pdf_obj **), void (*leave)(::fz_context *, ::pdf_obj *, void *), void *arg, ::pdf_obj **names, ::pdf_obj **values)` => `()`
  31842. """
  31843. return _mupdf.PdfObj_pdf_walk_tree(self, kid_name, arrive, leave, arg, names, values)
  31844. def pdf_xobject_bbox(self):
  31845. r"""Class-aware wrapper for `::pdf_xobject_bbox()`."""
  31846. return _mupdf.PdfObj_pdf_xobject_bbox(self)
  31847. def pdf_xobject_colorspace(self):
  31848. r"""Class-aware wrapper for `::pdf_xobject_colorspace()`."""
  31849. return _mupdf.PdfObj_pdf_xobject_colorspace(self)
  31850. def pdf_xobject_isolated(self):
  31851. r"""Class-aware wrapper for `::pdf_xobject_isolated()`."""
  31852. return _mupdf.PdfObj_pdf_xobject_isolated(self)
  31853. def pdf_xobject_knockout(self):
  31854. r"""Class-aware wrapper for `::pdf_xobject_knockout()`."""
  31855. return _mupdf.PdfObj_pdf_xobject_knockout(self)
  31856. def pdf_xobject_matrix(self):
  31857. r"""Class-aware wrapper for `::pdf_xobject_matrix()`."""
  31858. return _mupdf.PdfObj_pdf_xobject_matrix(self)
  31859. def pdf_xobject_resources(self):
  31860. r"""Class-aware wrapper for `::pdf_xobject_resources()`."""
  31861. return _mupdf.PdfObj_pdf_xobject_resources(self)
  31862. def pdf_xobject_transparency(self):
  31863. r"""Class-aware wrapper for `::pdf_xobject_transparency()`."""
  31864. return _mupdf.PdfObj_pdf_xobject_transparency(self)
  31865. def pdf_dict_get(self, *args):
  31866. r"""
  31867. *Overload 1:*
  31868. Class-aware wrapper for `::pdf_dict_get()`.
  31869. |
  31870. *Overload 2:*
  31871. Typesafe wrapper for looking up things such as PDF_ENUM_NAME_Annots.
  31872. """
  31873. return _mupdf.PdfObj_pdf_dict_get(self, *args)
  31874. def pdf_load_field_name2(self):
  31875. r"""Alternative to `pdf_load_field_name()` that returns a std::string."""
  31876. return _mupdf.PdfObj_pdf_load_field_name2(self)
  31877. def __init__(self, *args):
  31878. r"""
  31879. *Overload 1:*
  31880. == Constructors. Constructor using `pdf_new_action_from_link()`.
  31881. |
  31882. *Overload 2:*
  31883. Constructor using `pdf_new_array()`.
  31884. |
  31885. *Overload 3:*
  31886. Constructor using `pdf_new_date()`.
  31887. |
  31888. *Overload 4:*
  31889. Constructor using `pdf_new_dest_from_link()`.
  31890. |
  31891. *Overload 5:*
  31892. Constructor using `pdf_new_indirect()`.
  31893. |
  31894. *Overload 6:*
  31895. Constructor using `pdf_new_int()`.
  31896. |
  31897. *Overload 7:*
  31898. Constructor using `pdf_new_matrix()`.
  31899. |
  31900. *Overload 8:*
  31901. Constructor using `pdf_new_name()`.
  31902. |
  31903. *Overload 9:*
  31904. Constructor using `pdf_new_point()`.
  31905. |
  31906. *Overload 10:*
  31907. Constructor using `pdf_new_real()`.
  31908. |
  31909. *Overload 11:*
  31910. Constructor using `pdf_new_rect()`.
  31911. |
  31912. *Overload 12:*
  31913. Constructor using `pdf_new_string()`.
  31914. |
  31915. *Overload 13:*
  31916. Constructor using `pdf_new_xobject()`.
  31917. |
  31918. *Overload 14:*
  31919. Copy constructor using `pdf_keep_obj()`.
  31920. |
  31921. *Overload 15:*
  31922. Constructor using raw copy of pre-existing `::pdf_obj`.
  31923. |
  31924. *Overload 16:*
  31925. Constructor using raw copy of pre-existing `::pdf_obj`.
  31926. """
  31927. _mupdf.PdfObj_swiginit(self, _mupdf.new_PdfObj(*args))
  31928. __swig_destroy__ = _mupdf.delete_PdfObj
  31929. def m_internal_value(self):
  31930. r"""Return numerical value of .m_internal; helps with Python debugging."""
  31931. return _mupdf.PdfObj_m_internal_value(self)
  31932. def __nonzero__(self):
  31933. return _mupdf.PdfObj___nonzero__(self)
  31934. __bool__ = __nonzero__
  31935. m_internal = property(_mupdf.PdfObj_m_internal_get, _mupdf.PdfObj_m_internal_set, doc=r"""Pointer to wrapped data.""")
  31936. s_num_instances = property(_mupdf.PdfObj_s_num_instances_get, _mupdf.PdfObj_s_num_instances_set)
  31937. # Register PdfObj in _mupdf:
  31938. _mupdf.PdfObj_swigregister(PdfObj)
  31939. class PdfObjectLabels(object):
  31940. r"""Wrapper class for struct `pdf_object_labels`. Not copyable or assignable."""
  31941. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  31942. __repr__ = _swig_repr
  31943. def pdf_label_object(self, num, callback, arg):
  31944. r"""Class-aware wrapper for `::pdf_label_object()`."""
  31945. return _mupdf.PdfObjectLabels_pdf_label_object(self, num, callback, arg)
  31946. def __init__(self, *args):
  31947. r"""
  31948. *Overload 1:*
  31949. Default constructor, sets `m_internal` to null.
  31950. |
  31951. *Overload 2:*
  31952. Constructor using raw copy of pre-existing `::pdf_object_labels`.
  31953. """
  31954. _mupdf.PdfObjectLabels_swiginit(self, _mupdf.new_PdfObjectLabels(*args))
  31955. __swig_destroy__ = _mupdf.delete_PdfObjectLabels
  31956. def m_internal_value(self):
  31957. r"""Return numerical value of .m_internal; helps with Python debugging."""
  31958. return _mupdf.PdfObjectLabels_m_internal_value(self)
  31959. def __nonzero__(self):
  31960. return _mupdf.PdfObjectLabels___nonzero__(self)
  31961. __bool__ = __nonzero__
  31962. m_internal = property(_mupdf.PdfObjectLabels_m_internal_get, _mupdf.PdfObjectLabels_m_internal_set, doc=r"""Pointer to wrapped data.""")
  31963. s_num_instances = property(_mupdf.PdfObjectLabels_s_num_instances_get, _mupdf.PdfObjectLabels_s_num_instances_set)
  31964. # Register PdfObjectLabels in _mupdf:
  31965. _mupdf.PdfObjectLabels_swigregister(PdfObjectLabels)
  31966. class PdfOcgDescriptor(object):
  31967. r"""Wrapper class for struct `pdf_ocg_descriptor`. Not copyable or assignable."""
  31968. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  31969. __repr__ = _swig_repr
  31970. def __init__(self, *args):
  31971. r"""
  31972. *Overload 1:*
  31973. Default constructor, sets `m_internal` to null.
  31974. |
  31975. *Overload 2:*
  31976. Constructor using raw copy of pre-existing `::pdf_ocg_descriptor`.
  31977. """
  31978. _mupdf.PdfOcgDescriptor_swiginit(self, _mupdf.new_PdfOcgDescriptor(*args))
  31979. __swig_destroy__ = _mupdf.delete_PdfOcgDescriptor
  31980. def m_internal_value(self):
  31981. r"""Return numerical value of .m_internal; helps with Python debugging."""
  31982. return _mupdf.PdfOcgDescriptor_m_internal_value(self)
  31983. def __nonzero__(self):
  31984. return _mupdf.PdfOcgDescriptor___nonzero__(self)
  31985. __bool__ = __nonzero__
  31986. m_internal = property(_mupdf.PdfOcgDescriptor_m_internal_get, _mupdf.PdfOcgDescriptor_m_internal_set, doc=r"""Pointer to wrapped data.""")
  31987. s_num_instances = property(_mupdf.PdfOcgDescriptor_s_num_instances_get, _mupdf.PdfOcgDescriptor_s_num_instances_set)
  31988. # Register PdfOcgDescriptor in _mupdf:
  31989. _mupdf.PdfOcgDescriptor_swigregister(PdfOcgDescriptor)
  31990. class PdfPage(object):
  31991. r"""Wrapper class for struct `pdf_page`."""
  31992. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  31993. __repr__ = _swig_repr
  31994. def pdf_bound_page(self, box):
  31995. r"""Class-aware wrapper for `::pdf_bound_page()`."""
  31996. return _mupdf.PdfPage_pdf_bound_page(self, box)
  31997. def pdf_clip_page(self, clip):
  31998. r"""Class-aware wrapper for `::pdf_clip_page()`."""
  31999. return _mupdf.PdfPage_pdf_clip_page(self, clip)
  32000. def pdf_count_page_associated_files(self):
  32001. r"""Class-aware wrapper for `::pdf_count_page_associated_files()`."""
  32002. return _mupdf.PdfPage_pdf_count_page_associated_files(self)
  32003. def pdf_create_annot(self, type):
  32004. r"""Class-aware wrapper for `::pdf_create_annot()`."""
  32005. return _mupdf.PdfPage_pdf_create_annot(self, type)
  32006. def pdf_create_annot_raw(self, type):
  32007. r"""Class-aware wrapper for `::pdf_create_annot_raw()`."""
  32008. return _mupdf.PdfPage_pdf_create_annot_raw(self, type)
  32009. def pdf_create_link(self, bbox, uri):
  32010. r"""Class-aware wrapper for `::pdf_create_link()`."""
  32011. return _mupdf.PdfPage_pdf_create_link(self, bbox, uri)
  32012. def pdf_create_signature_widget(self, name):
  32013. r"""Class-aware wrapper for `::pdf_create_signature_widget()`."""
  32014. return _mupdf.PdfPage_pdf_create_signature_widget(self, name)
  32015. def pdf_delete_annot(self, annot):
  32016. r"""Class-aware wrapper for `::pdf_delete_annot()`."""
  32017. return _mupdf.PdfPage_pdf_delete_annot(self, annot)
  32018. def pdf_delete_link(self, link):
  32019. r"""Class-aware wrapper for `::pdf_delete_link()`."""
  32020. return _mupdf.PdfPage_pdf_delete_link(self, link)
  32021. def pdf_first_annot(self):
  32022. r"""Class-aware wrapper for `::pdf_first_annot()`."""
  32023. return _mupdf.PdfPage_pdf_first_annot(self)
  32024. def pdf_first_widget(self):
  32025. r"""Class-aware wrapper for `::pdf_first_widget()`."""
  32026. return _mupdf.PdfPage_pdf_first_widget(self)
  32027. def pdf_load_links(self):
  32028. r"""Class-aware wrapper for `::pdf_load_links()`."""
  32029. return _mupdf.PdfPage_pdf_load_links(self)
  32030. def pdf_new_link(self, rect, uri, obj):
  32031. r"""Class-aware wrapper for `::pdf_new_link()`."""
  32032. return _mupdf.PdfPage_pdf_new_link(self, rect, uri, obj)
  32033. def pdf_new_pixmap_from_page_contents_with_separations_and_usage(self, ctm, cs, seps, alpha, usage, box):
  32034. r"""Class-aware wrapper for `::pdf_new_pixmap_from_page_contents_with_separations_and_usage()`."""
  32035. return _mupdf.PdfPage_pdf_new_pixmap_from_page_contents_with_separations_and_usage(self, ctm, cs, seps, alpha, usage, box)
  32036. def pdf_new_pixmap_from_page_contents_with_usage(self, ctm, cs, alpha, usage, box):
  32037. r"""Class-aware wrapper for `::pdf_new_pixmap_from_page_contents_with_usage()`."""
  32038. return _mupdf.PdfPage_pdf_new_pixmap_from_page_contents_with_usage(self, ctm, cs, alpha, usage, box)
  32039. def pdf_new_pixmap_from_page_with_separations_and_usage(self, ctm, cs, seps, alpha, usage, box):
  32040. r"""Class-aware wrapper for `::pdf_new_pixmap_from_page_with_separations_and_usage()`."""
  32041. return _mupdf.PdfPage_pdf_new_pixmap_from_page_with_separations_and_usage(self, ctm, cs, seps, alpha, usage, box)
  32042. def pdf_new_pixmap_from_page_with_usage(self, ctm, cs, alpha, usage, box):
  32043. r"""Class-aware wrapper for `::pdf_new_pixmap_from_page_with_usage()`."""
  32044. return _mupdf.PdfPage_pdf_new_pixmap_from_page_with_usage(self, ctm, cs, alpha, usage, box)
  32045. def pdf_nuke_annots(self):
  32046. r"""Class-aware wrapper for `::pdf_nuke_annots()`."""
  32047. return _mupdf.PdfPage_pdf_nuke_annots(self)
  32048. def pdf_nuke_links(self):
  32049. r"""Class-aware wrapper for `::pdf_nuke_links()`."""
  32050. return _mupdf.PdfPage_pdf_nuke_links(self)
  32051. def pdf_nuke_page(self):
  32052. r"""Class-aware wrapper for `::pdf_nuke_page()`."""
  32053. return _mupdf.PdfPage_pdf_nuke_page(self)
  32054. def pdf_page_associated_file(self, idx):
  32055. r"""Class-aware wrapper for `::pdf_page_associated_file()`."""
  32056. return _mupdf.PdfPage_pdf_page_associated_file(self, idx)
  32057. def pdf_page_contents(self):
  32058. r"""Class-aware wrapper for `::pdf_page_contents()`."""
  32059. return _mupdf.PdfPage_pdf_page_contents(self)
  32060. def pdf_page_event_close(self):
  32061. r"""Class-aware wrapper for `::pdf_page_event_close()`."""
  32062. return _mupdf.PdfPage_pdf_page_event_close(self)
  32063. def pdf_page_event_open(self):
  32064. r"""Class-aware wrapper for `::pdf_page_event_open()`."""
  32065. return _mupdf.PdfPage_pdf_page_event_open(self)
  32066. def pdf_page_group(self):
  32067. r"""Class-aware wrapper for `::pdf_page_group()`."""
  32068. return _mupdf.PdfPage_pdf_page_group(self)
  32069. def pdf_page_has_transparency(self):
  32070. r"""Class-aware wrapper for `::pdf_page_has_transparency()`."""
  32071. return _mupdf.PdfPage_pdf_page_has_transparency(self)
  32072. def pdf_page_presentation(self, transition, duration):
  32073. r"""
  32074. Class-aware wrapper for `::pdf_page_presentation()`.
  32075. This method has out-params. Python/C# wrappers look like:
  32076. `pdf_page_presentation(::fz_transition *transition)` => `(fz_transition *, float duration)`
  32077. """
  32078. return _mupdf.PdfPage_pdf_page_presentation(self, transition, duration)
  32079. def pdf_page_resources(self):
  32080. r"""Class-aware wrapper for `::pdf_page_resources()`."""
  32081. return _mupdf.PdfPage_pdf_page_resources(self)
  32082. def pdf_page_separations(self):
  32083. r"""Class-aware wrapper for `::pdf_page_separations()`."""
  32084. return _mupdf.PdfPage_pdf_page_separations(self)
  32085. def pdf_page_transform(self, mediabox, ctm):
  32086. r"""Class-aware wrapper for `::pdf_page_transform()`."""
  32087. return _mupdf.PdfPage_pdf_page_transform(self, mediabox, ctm)
  32088. def pdf_page_transform_box(self, mediabox, ctm, box):
  32089. r"""Class-aware wrapper for `::pdf_page_transform_box()`."""
  32090. return _mupdf.PdfPage_pdf_page_transform_box(self, mediabox, ctm, box)
  32091. def pdf_run_page(self, dev, ctm, cookie):
  32092. r"""Class-aware wrapper for `::pdf_run_page()`."""
  32093. return _mupdf.PdfPage_pdf_run_page(self, dev, ctm, cookie)
  32094. def pdf_run_page_annots(self, dev, ctm, cookie):
  32095. r"""Class-aware wrapper for `::pdf_run_page_annots()`."""
  32096. return _mupdf.PdfPage_pdf_run_page_annots(self, dev, ctm, cookie)
  32097. def pdf_run_page_annots_with_usage(self, dev, ctm, usage, cookie):
  32098. r"""Class-aware wrapper for `::pdf_run_page_annots_with_usage()`."""
  32099. return _mupdf.PdfPage_pdf_run_page_annots_with_usage(self, dev, ctm, usage, cookie)
  32100. def pdf_run_page_contents(self, dev, ctm, cookie):
  32101. r"""Class-aware wrapper for `::pdf_run_page_contents()`."""
  32102. return _mupdf.PdfPage_pdf_run_page_contents(self, dev, ctm, cookie)
  32103. def pdf_run_page_contents_with_usage(self, dev, ctm, usage, cookie):
  32104. r"""Class-aware wrapper for `::pdf_run_page_contents_with_usage()`."""
  32105. return _mupdf.PdfPage_pdf_run_page_contents_with_usage(self, dev, ctm, usage, cookie)
  32106. def pdf_run_page_widgets(self, dev, ctm, cookie):
  32107. r"""Class-aware wrapper for `::pdf_run_page_widgets()`."""
  32108. return _mupdf.PdfPage_pdf_run_page_widgets(self, dev, ctm, cookie)
  32109. def pdf_run_page_widgets_with_usage(self, dev, ctm, usage, cookie):
  32110. r"""Class-aware wrapper for `::pdf_run_page_widgets_with_usage()`."""
  32111. return _mupdf.PdfPage_pdf_run_page_widgets_with_usage(self, dev, ctm, usage, cookie)
  32112. def pdf_run_page_with_usage(self, dev, ctm, usage, cookie):
  32113. r"""Class-aware wrapper for `::pdf_run_page_with_usage()`."""
  32114. return _mupdf.PdfPage_pdf_run_page_with_usage(self, dev, ctm, usage, cookie)
  32115. def pdf_set_page_box(self, box, rect):
  32116. r"""Class-aware wrapper for `::pdf_set_page_box()`."""
  32117. return _mupdf.PdfPage_pdf_set_page_box(self, box, rect)
  32118. def pdf_sync_annots(self):
  32119. r"""Class-aware wrapper for `::pdf_sync_annots()`."""
  32120. return _mupdf.PdfPage_pdf_sync_annots(self)
  32121. def pdf_sync_links(self):
  32122. r"""Class-aware wrapper for `::pdf_sync_links()`."""
  32123. return _mupdf.PdfPage_pdf_sync_links(self)
  32124. def pdf_sync_page(self):
  32125. r"""Class-aware wrapper for `::pdf_sync_page()`."""
  32126. return _mupdf.PdfPage_pdf_sync_page(self)
  32127. def pdf_update_page(self):
  32128. r"""Class-aware wrapper for `::pdf_update_page()`."""
  32129. return _mupdf.PdfPage_pdf_update_page(self)
  32130. def super(self):
  32131. r"""Returns wrapper for .super member."""
  32132. return _mupdf.PdfPage_super(self)
  32133. def doc(self):
  32134. r"""Returns wrapper for .doc member."""
  32135. return _mupdf.PdfPage_doc(self)
  32136. def obj(self):
  32137. r"""Returns wrapper for .obj member."""
  32138. return _mupdf.PdfPage_obj(self)
  32139. def __init__(self, *args):
  32140. r"""
  32141. *Overload 1:*
  32142. Copy constructor using `pdf_keep_page()`.
  32143. |
  32144. *Overload 2:*
  32145. Default constructor, sets `m_internal` to null.
  32146. |
  32147. *Overload 3:*
  32148. Constructor using raw copy of pre-existing `::pdf_page`.
  32149. """
  32150. _mupdf.PdfPage_swiginit(self, _mupdf.new_PdfPage(*args))
  32151. __swig_destroy__ = _mupdf.delete_PdfPage
  32152. def m_internal_value(self):
  32153. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32154. return _mupdf.PdfPage_m_internal_value(self)
  32155. def __nonzero__(self):
  32156. return _mupdf.PdfPage___nonzero__(self)
  32157. __bool__ = __nonzero__
  32158. m_internal = property(_mupdf.PdfPage_m_internal_get, _mupdf.PdfPage_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32159. s_num_instances = property(_mupdf.PdfPage_s_num_instances_get, _mupdf.PdfPage_s_num_instances_set)
  32160. # Register PdfPage in _mupdf:
  32161. _mupdf.PdfPage_swigregister(PdfPage)
  32162. class PdfPattern(object):
  32163. r"""Wrapper class for struct `pdf_pattern`."""
  32164. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32165. __repr__ = _swig_repr
  32166. def __init__(self, *args):
  32167. r"""
  32168. *Overload 1:*
  32169. Copy constructor using `pdf_keep_pattern()`.
  32170. |
  32171. *Overload 2:*
  32172. Default constructor, sets `m_internal` to null.
  32173. |
  32174. *Overload 3:*
  32175. Constructor using raw copy of pre-existing `::pdf_pattern`.
  32176. """
  32177. _mupdf.PdfPattern_swiginit(self, _mupdf.new_PdfPattern(*args))
  32178. __swig_destroy__ = _mupdf.delete_PdfPattern
  32179. def m_internal_value(self):
  32180. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32181. return _mupdf.PdfPattern_m_internal_value(self)
  32182. def __nonzero__(self):
  32183. return _mupdf.PdfPattern___nonzero__(self)
  32184. __bool__ = __nonzero__
  32185. m_internal = property(_mupdf.PdfPattern_m_internal_get, _mupdf.PdfPattern_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32186. s_num_instances = property(_mupdf.PdfPattern_s_num_instances_get, _mupdf.PdfPattern_s_num_instances_set)
  32187. # Register PdfPattern in _mupdf:
  32188. _mupdf.PdfPattern_swigregister(PdfPattern)
  32189. class PdfPkcs7DistinguishedName(object):
  32190. r"""Wrapper class for struct `pdf_pkcs7_distinguished_name`. Not copyable or assignable."""
  32191. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32192. __repr__ = _swig_repr
  32193. def pdf_signature_drop_distinguished_name(self):
  32194. r"""Class-aware wrapper for `::pdf_signature_drop_distinguished_name()`."""
  32195. return _mupdf.PdfPkcs7DistinguishedName_pdf_signature_drop_distinguished_name(self)
  32196. def pdf_signature_format_distinguished_name(self):
  32197. r"""Class-aware wrapper for `::pdf_signature_format_distinguished_name()`."""
  32198. return _mupdf.PdfPkcs7DistinguishedName_pdf_signature_format_distinguished_name(self)
  32199. def __init__(self, *args):
  32200. r"""
  32201. *Overload 1:*
  32202. Default constructor, sets `m_internal` to null.
  32203. |
  32204. *Overload 2:*
  32205. Constructor using raw copy of pre-existing `::pdf_pkcs7_distinguished_name`.
  32206. """
  32207. _mupdf.PdfPkcs7DistinguishedName_swiginit(self, _mupdf.new_PdfPkcs7DistinguishedName(*args))
  32208. __swig_destroy__ = _mupdf.delete_PdfPkcs7DistinguishedName
  32209. def m_internal_value(self):
  32210. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32211. return _mupdf.PdfPkcs7DistinguishedName_m_internal_value(self)
  32212. def __nonzero__(self):
  32213. return _mupdf.PdfPkcs7DistinguishedName___nonzero__(self)
  32214. __bool__ = __nonzero__
  32215. m_internal = property(_mupdf.PdfPkcs7DistinguishedName_m_internal_get, _mupdf.PdfPkcs7DistinguishedName_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32216. s_num_instances = property(_mupdf.PdfPkcs7DistinguishedName_s_num_instances_get, _mupdf.PdfPkcs7DistinguishedName_s_num_instances_set)
  32217. # Register PdfPkcs7DistinguishedName in _mupdf:
  32218. _mupdf.PdfPkcs7DistinguishedName_swigregister(PdfPkcs7DistinguishedName)
  32219. class PdfPkcs7Signer(object):
  32220. r"""Wrapper class for struct `pdf_pkcs7_signer`. Not copyable or assignable."""
  32221. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32222. __repr__ = _swig_repr
  32223. def __init__(self, *args):
  32224. r"""
  32225. *Overload 1:*
  32226. Default constructor, sets `m_internal` to null.
  32227. |
  32228. *Overload 2:*
  32229. Constructor using raw copy of pre-existing `::pdf_pkcs7_signer`.
  32230. """
  32231. _mupdf.PdfPkcs7Signer_swiginit(self, _mupdf.new_PdfPkcs7Signer(*args))
  32232. __swig_destroy__ = _mupdf.delete_PdfPkcs7Signer
  32233. def m_internal_value(self):
  32234. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32235. return _mupdf.PdfPkcs7Signer_m_internal_value(self)
  32236. def __nonzero__(self):
  32237. return _mupdf.PdfPkcs7Signer___nonzero__(self)
  32238. __bool__ = __nonzero__
  32239. m_internal = property(_mupdf.PdfPkcs7Signer_m_internal_get, _mupdf.PdfPkcs7Signer_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32240. s_num_instances = property(_mupdf.PdfPkcs7Signer_s_num_instances_get, _mupdf.PdfPkcs7Signer_s_num_instances_set)
  32241. # Register PdfPkcs7Signer in _mupdf:
  32242. _mupdf.PdfPkcs7Signer_swigregister(PdfPkcs7Signer)
  32243. class PdfPkcs7Verifier(object):
  32244. r"""Wrapper class for struct `pdf_pkcs7_verifier`. Not copyable or assignable."""
  32245. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32246. __repr__ = _swig_repr
  32247. def __init__(self, *args):
  32248. r"""
  32249. *Overload 1:*
  32250. Default constructor, sets `m_internal` to null.
  32251. |
  32252. *Overload 2:*
  32253. Constructor using raw copy of pre-existing `::pdf_pkcs7_verifier`.
  32254. """
  32255. _mupdf.PdfPkcs7Verifier_swiginit(self, _mupdf.new_PdfPkcs7Verifier(*args))
  32256. __swig_destroy__ = _mupdf.delete_PdfPkcs7Verifier
  32257. def m_internal_value(self):
  32258. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32259. return _mupdf.PdfPkcs7Verifier_m_internal_value(self)
  32260. def __nonzero__(self):
  32261. return _mupdf.PdfPkcs7Verifier___nonzero__(self)
  32262. __bool__ = __nonzero__
  32263. m_internal = property(_mupdf.PdfPkcs7Verifier_m_internal_get, _mupdf.PdfPkcs7Verifier_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32264. s_num_instances = property(_mupdf.PdfPkcs7Verifier_s_num_instances_get, _mupdf.PdfPkcs7Verifier_s_num_instances_set)
  32265. # Register PdfPkcs7Verifier in _mupdf:
  32266. _mupdf.PdfPkcs7Verifier_swigregister(PdfPkcs7Verifier)
  32267. class PdfProcessor(object):
  32268. r"""Wrapper class for struct `pdf_processor`."""
  32269. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32270. __repr__ = _swig_repr
  32271. @staticmethod
  32272. def pdf_new_color_filter(doc, chain, struct_parents, transform, options, copts):
  32273. r"""Class-aware wrapper for `::pdf_new_color_filter()`."""
  32274. return _mupdf.PdfProcessor_pdf_new_color_filter(doc, chain, struct_parents, transform, options, copts)
  32275. def pdf_close_processor(self):
  32276. r"""Class-aware wrapper for `::pdf_close_processor()`."""
  32277. return _mupdf.PdfProcessor_pdf_close_processor(self)
  32278. def pdf_process_annot(self, annot, cookie):
  32279. r"""Class-aware wrapper for `::pdf_process_annot()`."""
  32280. return _mupdf.PdfProcessor_pdf_process_annot(self, annot, cookie)
  32281. def pdf_process_contents(self, doc, res, stm, cookie, out_res):
  32282. r"""
  32283. Class-aware wrapper for `::pdf_process_contents()`.
  32284. This method has out-params. Python/C# wrappers look like:
  32285. `pdf_process_contents(::pdf_document *doc, ::pdf_obj *res, ::pdf_obj *stm, ::fz_cookie *cookie, ::pdf_obj **out_res)` =>
  32286. """
  32287. return _mupdf.PdfProcessor_pdf_process_contents(self, doc, res, stm, cookie, out_res)
  32288. def pdf_process_glyph(self, doc, resources, contents):
  32289. r"""Class-aware wrapper for `::pdf_process_glyph()`."""
  32290. return _mupdf.PdfProcessor_pdf_process_glyph(self, doc, resources, contents)
  32291. def pdf_process_raw_contents(self, doc, stmobj, cookie):
  32292. r"""Class-aware wrapper for `::pdf_process_raw_contents()`."""
  32293. return _mupdf.PdfProcessor_pdf_process_raw_contents(self, doc, stmobj, cookie)
  32294. def pdf_processor_pop_resources(self):
  32295. r"""Class-aware wrapper for `::pdf_processor_pop_resources()`."""
  32296. return _mupdf.PdfProcessor_pdf_processor_pop_resources(self)
  32297. def pdf_processor_push_resources(self, res):
  32298. r"""Class-aware wrapper for `::pdf_processor_push_resources()`."""
  32299. return _mupdf.PdfProcessor_pdf_processor_push_resources(self, res)
  32300. def pdf_reset_processor(self):
  32301. r"""Class-aware wrapper for `::pdf_reset_processor()`."""
  32302. return _mupdf.PdfProcessor_pdf_reset_processor(self)
  32303. def __init__(self, *args):
  32304. r"""
  32305. *Overload 1:*
  32306. == Constructors. Constructor using `pdf_new_buffer_processor()`.
  32307. |
  32308. *Overload 2:*
  32309. Constructor using `pdf_new_output_processor()`.
  32310. |
  32311. *Overload 3:*
  32312. Constructor using `pdf_new_run_processor()`.
  32313. |
  32314. *Overload 4:*
  32315. Constructor using `pdf_new_sanitize_filter()`.
  32316. |
  32317. *Overload 5:*
  32318. Copy constructor using `pdf_keep_processor()`.
  32319. |
  32320. *Overload 6:*
  32321. Default constructor, sets `m_internal` to null.
  32322. |
  32323. *Overload 7:*
  32324. Constructor using raw copy of pre-existing `::pdf_processor`.
  32325. """
  32326. _mupdf.PdfProcessor_swiginit(self, _mupdf.new_PdfProcessor(*args))
  32327. __swig_destroy__ = _mupdf.delete_PdfProcessor
  32328. def m_internal_value(self):
  32329. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32330. return _mupdf.PdfProcessor_m_internal_value(self)
  32331. def __nonzero__(self):
  32332. return _mupdf.PdfProcessor___nonzero__(self)
  32333. __bool__ = __nonzero__
  32334. m_internal = property(_mupdf.PdfProcessor_m_internal_get, _mupdf.PdfProcessor_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32335. s_num_instances = property(_mupdf.PdfProcessor_s_num_instances_get, _mupdf.PdfProcessor_s_num_instances_set)
  32336. # Register PdfProcessor in _mupdf:
  32337. _mupdf.PdfProcessor_swigregister(PdfProcessor)
  32338. class PdfProcessor2(PdfProcessor):
  32339. r"""Wrapper class for struct pdf_processor with virtual fns for each fnptr; this is for use as a SWIG Director class."""
  32340. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32341. __repr__ = _swig_repr
  32342. def __init__(self):
  32343. r"""== Constructor."""
  32344. if self.__class__ == PdfProcessor2:
  32345. _self = None
  32346. else:
  32347. _self = self
  32348. _mupdf.PdfProcessor2_swiginit(self, _mupdf.new_PdfProcessor2(_self, ))
  32349. __swig_destroy__ = _mupdf.delete_PdfProcessor2
  32350. def use_virtual_close_processor(self, use=True):
  32351. r"""
  32352. These methods set the function pointers in *m_internal
  32353. to point to internal callbacks that call our virtual methods.
  32354. """
  32355. return _mupdf.PdfProcessor2_use_virtual_close_processor(self, use)
  32356. def use_virtual_drop_processor(self, use=True):
  32357. return _mupdf.PdfProcessor2_use_virtual_drop_processor(self, use)
  32358. def use_virtual_reset_processor(self, use=True):
  32359. return _mupdf.PdfProcessor2_use_virtual_reset_processor(self, use)
  32360. def use_virtual_push_resources(self, use=True):
  32361. return _mupdf.PdfProcessor2_use_virtual_push_resources(self, use)
  32362. def use_virtual_pop_resources(self, use=True):
  32363. return _mupdf.PdfProcessor2_use_virtual_pop_resources(self, use)
  32364. def use_virtual_op_w(self, use=True):
  32365. return _mupdf.PdfProcessor2_use_virtual_op_w(self, use)
  32366. def use_virtual_op_j(self, use=True):
  32367. return _mupdf.PdfProcessor2_use_virtual_op_j(self, use)
  32368. def use_virtual_op_J(self, use=True):
  32369. return _mupdf.PdfProcessor2_use_virtual_op_J(self, use)
  32370. def use_virtual_op_M(self, use=True):
  32371. return _mupdf.PdfProcessor2_use_virtual_op_M(self, use)
  32372. def use_virtual_op_d(self, use=True):
  32373. return _mupdf.PdfProcessor2_use_virtual_op_d(self, use)
  32374. def use_virtual_op_ri(self, use=True):
  32375. return _mupdf.PdfProcessor2_use_virtual_op_ri(self, use)
  32376. def use_virtual_op_i(self, use=True):
  32377. return _mupdf.PdfProcessor2_use_virtual_op_i(self, use)
  32378. def use_virtual_op_gs_begin(self, use=True):
  32379. return _mupdf.PdfProcessor2_use_virtual_op_gs_begin(self, use)
  32380. def use_virtual_op_gs_BM(self, use=True):
  32381. return _mupdf.PdfProcessor2_use_virtual_op_gs_BM(self, use)
  32382. def use_virtual_op_gs_ca(self, use=True):
  32383. return _mupdf.PdfProcessor2_use_virtual_op_gs_ca(self, use)
  32384. def use_virtual_op_gs_CA(self, use=True):
  32385. return _mupdf.PdfProcessor2_use_virtual_op_gs_CA(self, use)
  32386. def use_virtual_op_gs_SMask(self, use=True):
  32387. return _mupdf.PdfProcessor2_use_virtual_op_gs_SMask(self, use)
  32388. def use_virtual_op_gs_end(self, use=True):
  32389. return _mupdf.PdfProcessor2_use_virtual_op_gs_end(self, use)
  32390. def use_virtual_op_q(self, use=True):
  32391. return _mupdf.PdfProcessor2_use_virtual_op_q(self, use)
  32392. def use_virtual_op_Q(self, use=True):
  32393. return _mupdf.PdfProcessor2_use_virtual_op_Q(self, use)
  32394. def use_virtual_op_cm(self, use=True):
  32395. return _mupdf.PdfProcessor2_use_virtual_op_cm(self, use)
  32396. def use_virtual_op_m(self, use=True):
  32397. return _mupdf.PdfProcessor2_use_virtual_op_m(self, use)
  32398. def use_virtual_op_l(self, use=True):
  32399. return _mupdf.PdfProcessor2_use_virtual_op_l(self, use)
  32400. def use_virtual_op_c(self, use=True):
  32401. return _mupdf.PdfProcessor2_use_virtual_op_c(self, use)
  32402. def use_virtual_op_v(self, use=True):
  32403. return _mupdf.PdfProcessor2_use_virtual_op_v(self, use)
  32404. def use_virtual_op_y(self, use=True):
  32405. return _mupdf.PdfProcessor2_use_virtual_op_y(self, use)
  32406. def use_virtual_op_h(self, use=True):
  32407. return _mupdf.PdfProcessor2_use_virtual_op_h(self, use)
  32408. def use_virtual_op_re(self, use=True):
  32409. return _mupdf.PdfProcessor2_use_virtual_op_re(self, use)
  32410. def use_virtual_op_S(self, use=True):
  32411. return _mupdf.PdfProcessor2_use_virtual_op_S(self, use)
  32412. def use_virtual_op_s(self, use=True):
  32413. return _mupdf.PdfProcessor2_use_virtual_op_s(self, use)
  32414. def use_virtual_op_F(self, use=True):
  32415. return _mupdf.PdfProcessor2_use_virtual_op_F(self, use)
  32416. def use_virtual_op_f(self, use=True):
  32417. return _mupdf.PdfProcessor2_use_virtual_op_f(self, use)
  32418. def use_virtual_op_fstar(self, use=True):
  32419. return _mupdf.PdfProcessor2_use_virtual_op_fstar(self, use)
  32420. def use_virtual_op_B(self, use=True):
  32421. return _mupdf.PdfProcessor2_use_virtual_op_B(self, use)
  32422. def use_virtual_op_Bstar(self, use=True):
  32423. return _mupdf.PdfProcessor2_use_virtual_op_Bstar(self, use)
  32424. def use_virtual_op_b(self, use=True):
  32425. return _mupdf.PdfProcessor2_use_virtual_op_b(self, use)
  32426. def use_virtual_op_bstar(self, use=True):
  32427. return _mupdf.PdfProcessor2_use_virtual_op_bstar(self, use)
  32428. def use_virtual_op_n(self, use=True):
  32429. return _mupdf.PdfProcessor2_use_virtual_op_n(self, use)
  32430. def use_virtual_op_W(self, use=True):
  32431. return _mupdf.PdfProcessor2_use_virtual_op_W(self, use)
  32432. def use_virtual_op_Wstar(self, use=True):
  32433. return _mupdf.PdfProcessor2_use_virtual_op_Wstar(self, use)
  32434. def use_virtual_op_BT(self, use=True):
  32435. return _mupdf.PdfProcessor2_use_virtual_op_BT(self, use)
  32436. def use_virtual_op_ET(self, use=True):
  32437. return _mupdf.PdfProcessor2_use_virtual_op_ET(self, use)
  32438. def use_virtual_op_Tc(self, use=True):
  32439. return _mupdf.PdfProcessor2_use_virtual_op_Tc(self, use)
  32440. def use_virtual_op_Tw(self, use=True):
  32441. return _mupdf.PdfProcessor2_use_virtual_op_Tw(self, use)
  32442. def use_virtual_op_Tz(self, use=True):
  32443. return _mupdf.PdfProcessor2_use_virtual_op_Tz(self, use)
  32444. def use_virtual_op_TL(self, use=True):
  32445. return _mupdf.PdfProcessor2_use_virtual_op_TL(self, use)
  32446. def use_virtual_op_Tf(self, use=True):
  32447. return _mupdf.PdfProcessor2_use_virtual_op_Tf(self, use)
  32448. def use_virtual_op_Tr(self, use=True):
  32449. return _mupdf.PdfProcessor2_use_virtual_op_Tr(self, use)
  32450. def use_virtual_op_Ts(self, use=True):
  32451. return _mupdf.PdfProcessor2_use_virtual_op_Ts(self, use)
  32452. def use_virtual_op_Td(self, use=True):
  32453. return _mupdf.PdfProcessor2_use_virtual_op_Td(self, use)
  32454. def use_virtual_op_TD(self, use=True):
  32455. return _mupdf.PdfProcessor2_use_virtual_op_TD(self, use)
  32456. def use_virtual_op_Tm(self, use=True):
  32457. return _mupdf.PdfProcessor2_use_virtual_op_Tm(self, use)
  32458. def use_virtual_op_Tstar(self, use=True):
  32459. return _mupdf.PdfProcessor2_use_virtual_op_Tstar(self, use)
  32460. def use_virtual_op_TJ(self, use=True):
  32461. return _mupdf.PdfProcessor2_use_virtual_op_TJ(self, use)
  32462. def use_virtual_op_Tj(self, use=True):
  32463. return _mupdf.PdfProcessor2_use_virtual_op_Tj(self, use)
  32464. def use_virtual_op_squote(self, use=True):
  32465. return _mupdf.PdfProcessor2_use_virtual_op_squote(self, use)
  32466. def use_virtual_op_dquote(self, use=True):
  32467. return _mupdf.PdfProcessor2_use_virtual_op_dquote(self, use)
  32468. def use_virtual_op_d0(self, use=True):
  32469. return _mupdf.PdfProcessor2_use_virtual_op_d0(self, use)
  32470. def use_virtual_op_d1(self, use=True):
  32471. return _mupdf.PdfProcessor2_use_virtual_op_d1(self, use)
  32472. def use_virtual_op_CS(self, use=True):
  32473. return _mupdf.PdfProcessor2_use_virtual_op_CS(self, use)
  32474. def use_virtual_op_cs(self, use=True):
  32475. return _mupdf.PdfProcessor2_use_virtual_op_cs(self, use)
  32476. def use_virtual_op_SC_pattern(self, use=True):
  32477. return _mupdf.PdfProcessor2_use_virtual_op_SC_pattern(self, use)
  32478. def use_virtual_op_sc_pattern(self, use=True):
  32479. return _mupdf.PdfProcessor2_use_virtual_op_sc_pattern(self, use)
  32480. def use_virtual_op_SC_shade(self, use=True):
  32481. return _mupdf.PdfProcessor2_use_virtual_op_SC_shade(self, use)
  32482. def use_virtual_op_sc_shade(self, use=True):
  32483. return _mupdf.PdfProcessor2_use_virtual_op_sc_shade(self, use)
  32484. def use_virtual_op_SC_color(self, use=True):
  32485. return _mupdf.PdfProcessor2_use_virtual_op_SC_color(self, use)
  32486. def use_virtual_op_sc_color(self, use=True):
  32487. return _mupdf.PdfProcessor2_use_virtual_op_sc_color(self, use)
  32488. def use_virtual_op_G(self, use=True):
  32489. return _mupdf.PdfProcessor2_use_virtual_op_G(self, use)
  32490. def use_virtual_op_g(self, use=True):
  32491. return _mupdf.PdfProcessor2_use_virtual_op_g(self, use)
  32492. def use_virtual_op_RG(self, use=True):
  32493. return _mupdf.PdfProcessor2_use_virtual_op_RG(self, use)
  32494. def use_virtual_op_rg(self, use=True):
  32495. return _mupdf.PdfProcessor2_use_virtual_op_rg(self, use)
  32496. def use_virtual_op_K(self, use=True):
  32497. return _mupdf.PdfProcessor2_use_virtual_op_K(self, use)
  32498. def use_virtual_op_k(self, use=True):
  32499. return _mupdf.PdfProcessor2_use_virtual_op_k(self, use)
  32500. def use_virtual_op_BI(self, use=True):
  32501. return _mupdf.PdfProcessor2_use_virtual_op_BI(self, use)
  32502. def use_virtual_op_sh(self, use=True):
  32503. return _mupdf.PdfProcessor2_use_virtual_op_sh(self, use)
  32504. def use_virtual_op_Do_image(self, use=True):
  32505. return _mupdf.PdfProcessor2_use_virtual_op_Do_image(self, use)
  32506. def use_virtual_op_Do_form(self, use=True):
  32507. return _mupdf.PdfProcessor2_use_virtual_op_Do_form(self, use)
  32508. def use_virtual_op_MP(self, use=True):
  32509. return _mupdf.PdfProcessor2_use_virtual_op_MP(self, use)
  32510. def use_virtual_op_DP(self, use=True):
  32511. return _mupdf.PdfProcessor2_use_virtual_op_DP(self, use)
  32512. def use_virtual_op_BMC(self, use=True):
  32513. return _mupdf.PdfProcessor2_use_virtual_op_BMC(self, use)
  32514. def use_virtual_op_BDC(self, use=True):
  32515. return _mupdf.PdfProcessor2_use_virtual_op_BDC(self, use)
  32516. def use_virtual_op_EMC(self, use=True):
  32517. return _mupdf.PdfProcessor2_use_virtual_op_EMC(self, use)
  32518. def use_virtual_op_BX(self, use=True):
  32519. return _mupdf.PdfProcessor2_use_virtual_op_BX(self, use)
  32520. def use_virtual_op_EX(self, use=True):
  32521. return _mupdf.PdfProcessor2_use_virtual_op_EX(self, use)
  32522. def use_virtual_op_gs_OP(self, use=True):
  32523. return _mupdf.PdfProcessor2_use_virtual_op_gs_OP(self, use)
  32524. def use_virtual_op_gs_op(self, use=True):
  32525. return _mupdf.PdfProcessor2_use_virtual_op_gs_op(self, use)
  32526. def use_virtual_op_gs_OPM(self, use=True):
  32527. return _mupdf.PdfProcessor2_use_virtual_op_gs_OPM(self, use)
  32528. def use_virtual_op_gs_UseBlackPtComp(self, use=True):
  32529. return _mupdf.PdfProcessor2_use_virtual_op_gs_UseBlackPtComp(self, use)
  32530. def use_virtual_op_EOD(self, use=True):
  32531. return _mupdf.PdfProcessor2_use_virtual_op_EOD(self, use)
  32532. def use_virtual_op_END(self, use=True):
  32533. return _mupdf.PdfProcessor2_use_virtual_op_END(self, use)
  32534. def close_processor(self, arg_0):
  32535. r"""Default virtual method implementations; these all throw an exception."""
  32536. return _mupdf.PdfProcessor2_close_processor(self, arg_0)
  32537. def drop_processor(self, arg_0):
  32538. return _mupdf.PdfProcessor2_drop_processor(self, arg_0)
  32539. def reset_processor(self, arg_0):
  32540. return _mupdf.PdfProcessor2_reset_processor(self, arg_0)
  32541. def push_resources(self, arg_0, arg_2):
  32542. return _mupdf.PdfProcessor2_push_resources(self, arg_0, arg_2)
  32543. def pop_resources(self, arg_0):
  32544. return _mupdf.PdfProcessor2_pop_resources(self, arg_0)
  32545. def op_w(self, arg_0, arg_2):
  32546. return _mupdf.PdfProcessor2_op_w(self, arg_0, arg_2)
  32547. def op_j(self, arg_0, arg_2):
  32548. return _mupdf.PdfProcessor2_op_j(self, arg_0, arg_2)
  32549. def op_J(self, arg_0, arg_2):
  32550. return _mupdf.PdfProcessor2_op_J(self, arg_0, arg_2)
  32551. def op_M(self, arg_0, arg_2):
  32552. return _mupdf.PdfProcessor2_op_M(self, arg_0, arg_2)
  32553. def op_d(self, arg_0, arg_2, arg_3):
  32554. return _mupdf.PdfProcessor2_op_d(self, arg_0, arg_2, arg_3)
  32555. def op_ri(self, arg_0, arg_2):
  32556. return _mupdf.PdfProcessor2_op_ri(self, arg_0, arg_2)
  32557. def op_i(self, arg_0, arg_2):
  32558. return _mupdf.PdfProcessor2_op_i(self, arg_0, arg_2)
  32559. def op_gs_begin(self, arg_0, arg_2, arg_3):
  32560. return _mupdf.PdfProcessor2_op_gs_begin(self, arg_0, arg_2, arg_3)
  32561. def op_gs_BM(self, arg_0, arg_2):
  32562. return _mupdf.PdfProcessor2_op_gs_BM(self, arg_0, arg_2)
  32563. def op_gs_ca(self, arg_0, arg_2):
  32564. return _mupdf.PdfProcessor2_op_gs_ca(self, arg_0, arg_2)
  32565. def op_gs_CA(self, arg_0, arg_2):
  32566. return _mupdf.PdfProcessor2_op_gs_CA(self, arg_0, arg_2)
  32567. def op_gs_SMask(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6):
  32568. return _mupdf.PdfProcessor2_op_gs_SMask(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6)
  32569. def op_gs_end(self, arg_0):
  32570. return _mupdf.PdfProcessor2_op_gs_end(self, arg_0)
  32571. def op_q(self, arg_0):
  32572. return _mupdf.PdfProcessor2_op_q(self, arg_0)
  32573. def op_Q(self, arg_0):
  32574. return _mupdf.PdfProcessor2_op_Q(self, arg_0)
  32575. def op_cm(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7):
  32576. return _mupdf.PdfProcessor2_op_cm(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7)
  32577. def op_m(self, arg_0, arg_2, arg_3):
  32578. return _mupdf.PdfProcessor2_op_m(self, arg_0, arg_2, arg_3)
  32579. def op_l(self, arg_0, arg_2, arg_3):
  32580. return _mupdf.PdfProcessor2_op_l(self, arg_0, arg_2, arg_3)
  32581. def op_c(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7):
  32582. return _mupdf.PdfProcessor2_op_c(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7)
  32583. def op_v(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  32584. return _mupdf.PdfProcessor2_op_v(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  32585. def op_y(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  32586. return _mupdf.PdfProcessor2_op_y(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  32587. def op_h(self, arg_0):
  32588. return _mupdf.PdfProcessor2_op_h(self, arg_0)
  32589. def op_re(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  32590. return _mupdf.PdfProcessor2_op_re(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  32591. def op_S(self, arg_0):
  32592. return _mupdf.PdfProcessor2_op_S(self, arg_0)
  32593. def op_s(self, arg_0):
  32594. return _mupdf.PdfProcessor2_op_s(self, arg_0)
  32595. def op_F(self, arg_0):
  32596. return _mupdf.PdfProcessor2_op_F(self, arg_0)
  32597. def op_f(self, arg_0):
  32598. return _mupdf.PdfProcessor2_op_f(self, arg_0)
  32599. def op_fstar(self, arg_0):
  32600. return _mupdf.PdfProcessor2_op_fstar(self, arg_0)
  32601. def op_B(self, arg_0):
  32602. return _mupdf.PdfProcessor2_op_B(self, arg_0)
  32603. def op_Bstar(self, arg_0):
  32604. return _mupdf.PdfProcessor2_op_Bstar(self, arg_0)
  32605. def op_b(self, arg_0):
  32606. return _mupdf.PdfProcessor2_op_b(self, arg_0)
  32607. def op_bstar(self, arg_0):
  32608. return _mupdf.PdfProcessor2_op_bstar(self, arg_0)
  32609. def op_n(self, arg_0):
  32610. return _mupdf.PdfProcessor2_op_n(self, arg_0)
  32611. def op_W(self, arg_0):
  32612. return _mupdf.PdfProcessor2_op_W(self, arg_0)
  32613. def op_Wstar(self, arg_0):
  32614. return _mupdf.PdfProcessor2_op_Wstar(self, arg_0)
  32615. def op_BT(self, arg_0):
  32616. return _mupdf.PdfProcessor2_op_BT(self, arg_0)
  32617. def op_ET(self, arg_0):
  32618. return _mupdf.PdfProcessor2_op_ET(self, arg_0)
  32619. def op_Tc(self, arg_0, arg_2):
  32620. return _mupdf.PdfProcessor2_op_Tc(self, arg_0, arg_2)
  32621. def op_Tw(self, arg_0, arg_2):
  32622. return _mupdf.PdfProcessor2_op_Tw(self, arg_0, arg_2)
  32623. def op_Tz(self, arg_0, arg_2):
  32624. return _mupdf.PdfProcessor2_op_Tz(self, arg_0, arg_2)
  32625. def op_TL(self, arg_0, arg_2):
  32626. return _mupdf.PdfProcessor2_op_TL(self, arg_0, arg_2)
  32627. def op_Tf(self, arg_0, arg_2, arg_3, arg_4):
  32628. return _mupdf.PdfProcessor2_op_Tf(self, arg_0, arg_2, arg_3, arg_4)
  32629. def op_Tr(self, arg_0, arg_2):
  32630. return _mupdf.PdfProcessor2_op_Tr(self, arg_0, arg_2)
  32631. def op_Ts(self, arg_0, arg_2):
  32632. return _mupdf.PdfProcessor2_op_Ts(self, arg_0, arg_2)
  32633. def op_Td(self, arg_0, arg_2, arg_3):
  32634. return _mupdf.PdfProcessor2_op_Td(self, arg_0, arg_2, arg_3)
  32635. def op_TD(self, arg_0, arg_2, arg_3):
  32636. return _mupdf.PdfProcessor2_op_TD(self, arg_0, arg_2, arg_3)
  32637. def op_Tm(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7):
  32638. return _mupdf.PdfProcessor2_op_Tm(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7)
  32639. def op_Tstar(self, arg_0):
  32640. return _mupdf.PdfProcessor2_op_Tstar(self, arg_0)
  32641. def op_TJ(self, arg_0, arg_2):
  32642. return _mupdf.PdfProcessor2_op_TJ(self, arg_0, arg_2)
  32643. def op_Tj(self, arg_0, arg_2, arg_3):
  32644. return _mupdf.PdfProcessor2_op_Tj(self, arg_0, arg_2, arg_3)
  32645. def op_squote(self, arg_0, arg_2, arg_3):
  32646. return _mupdf.PdfProcessor2_op_squote(self, arg_0, arg_2, arg_3)
  32647. def op_dquote(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  32648. return _mupdf.PdfProcessor2_op_dquote(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  32649. def op_d0(self, arg_0, arg_2, arg_3):
  32650. return _mupdf.PdfProcessor2_op_d0(self, arg_0, arg_2, arg_3)
  32651. def op_d1(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7):
  32652. return _mupdf.PdfProcessor2_op_d1(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7)
  32653. def op_CS(self, arg_0, arg_2, arg_3):
  32654. return _mupdf.PdfProcessor2_op_CS(self, arg_0, arg_2, arg_3)
  32655. def op_cs(self, arg_0, arg_2, arg_3):
  32656. return _mupdf.PdfProcessor2_op_cs(self, arg_0, arg_2, arg_3)
  32657. def op_SC_pattern(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  32658. return _mupdf.PdfProcessor2_op_SC_pattern(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  32659. def op_sc_pattern(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  32660. return _mupdf.PdfProcessor2_op_sc_pattern(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  32661. def op_SC_shade(self, arg_0, arg_2, arg_3):
  32662. return _mupdf.PdfProcessor2_op_SC_shade(self, arg_0, arg_2, arg_3)
  32663. def op_sc_shade(self, arg_0, arg_2, arg_3):
  32664. return _mupdf.PdfProcessor2_op_sc_shade(self, arg_0, arg_2, arg_3)
  32665. def op_SC_color(self, arg_0, arg_2, arg_3):
  32666. return _mupdf.PdfProcessor2_op_SC_color(self, arg_0, arg_2, arg_3)
  32667. def op_sc_color(self, arg_0, arg_2, arg_3):
  32668. return _mupdf.PdfProcessor2_op_sc_color(self, arg_0, arg_2, arg_3)
  32669. def op_G(self, arg_0, arg_2):
  32670. return _mupdf.PdfProcessor2_op_G(self, arg_0, arg_2)
  32671. def op_g(self, arg_0, arg_2):
  32672. return _mupdf.PdfProcessor2_op_g(self, arg_0, arg_2)
  32673. def op_RG(self, arg_0, arg_2, arg_3, arg_4):
  32674. return _mupdf.PdfProcessor2_op_RG(self, arg_0, arg_2, arg_3, arg_4)
  32675. def op_rg(self, arg_0, arg_2, arg_3, arg_4):
  32676. return _mupdf.PdfProcessor2_op_rg(self, arg_0, arg_2, arg_3, arg_4)
  32677. def op_K(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  32678. return _mupdf.PdfProcessor2_op_K(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  32679. def op_k(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  32680. return _mupdf.PdfProcessor2_op_k(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  32681. def op_BI(self, arg_0, arg_2, arg_3):
  32682. return _mupdf.PdfProcessor2_op_BI(self, arg_0, arg_2, arg_3)
  32683. def op_sh(self, arg_0, arg_2, arg_3):
  32684. return _mupdf.PdfProcessor2_op_sh(self, arg_0, arg_2, arg_3)
  32685. def op_Do_image(self, arg_0, arg_2, arg_3):
  32686. return _mupdf.PdfProcessor2_op_Do_image(self, arg_0, arg_2, arg_3)
  32687. def op_Do_form(self, arg_0, arg_2, arg_3):
  32688. return _mupdf.PdfProcessor2_op_Do_form(self, arg_0, arg_2, arg_3)
  32689. def op_MP(self, arg_0, arg_2):
  32690. return _mupdf.PdfProcessor2_op_MP(self, arg_0, arg_2)
  32691. def op_DP(self, arg_0, arg_2, arg_3, arg_4):
  32692. return _mupdf.PdfProcessor2_op_DP(self, arg_0, arg_2, arg_3, arg_4)
  32693. def op_BMC(self, arg_0, arg_2):
  32694. return _mupdf.PdfProcessor2_op_BMC(self, arg_0, arg_2)
  32695. def op_BDC(self, arg_0, arg_2, arg_3, arg_4):
  32696. return _mupdf.PdfProcessor2_op_BDC(self, arg_0, arg_2, arg_3, arg_4)
  32697. def op_EMC(self, arg_0):
  32698. return _mupdf.PdfProcessor2_op_EMC(self, arg_0)
  32699. def op_BX(self, arg_0):
  32700. return _mupdf.PdfProcessor2_op_BX(self, arg_0)
  32701. def op_EX(self, arg_0):
  32702. return _mupdf.PdfProcessor2_op_EX(self, arg_0)
  32703. def op_gs_OP(self, arg_0, arg_2):
  32704. return _mupdf.PdfProcessor2_op_gs_OP(self, arg_0, arg_2)
  32705. def op_gs_op(self, arg_0, arg_2):
  32706. return _mupdf.PdfProcessor2_op_gs_op(self, arg_0, arg_2)
  32707. def op_gs_OPM(self, arg_0, arg_2):
  32708. return _mupdf.PdfProcessor2_op_gs_OPM(self, arg_0, arg_2)
  32709. def op_gs_UseBlackPtComp(self, arg_0, arg_2):
  32710. return _mupdf.PdfProcessor2_op_gs_UseBlackPtComp(self, arg_0, arg_2)
  32711. def op_EOD(self, arg_0):
  32712. return _mupdf.PdfProcessor2_op_EOD(self, arg_0)
  32713. def op_END(self, arg_0):
  32714. return _mupdf.PdfProcessor2_op_END(self, arg_0)
  32715. def __disown__(self):
  32716. self.this.disown()
  32717. _mupdf.disown_PdfProcessor2(self)
  32718. return weakref.proxy(self)
  32719. # Register PdfProcessor2 in _mupdf:
  32720. _mupdf.PdfProcessor2_swigregister(PdfProcessor2)
  32721. class PdfRange(object):
  32722. r"""Wrapper class for struct `pdf_range`. Not copyable or assignable."""
  32723. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32724. __repr__ = _swig_repr
  32725. def __init__(self, *args):
  32726. r"""
  32727. *Overload 1:*
  32728. Default constructor, sets `m_internal` to null.
  32729. |
  32730. *Overload 2:*
  32731. Constructor using raw copy of pre-existing `::pdf_range`.
  32732. """
  32733. _mupdf.PdfRange_swiginit(self, _mupdf.new_PdfRange(*args))
  32734. __swig_destroy__ = _mupdf.delete_PdfRange
  32735. def m_internal_value(self):
  32736. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32737. return _mupdf.PdfRange_m_internal_value(self)
  32738. def __nonzero__(self):
  32739. return _mupdf.PdfRange___nonzero__(self)
  32740. __bool__ = __nonzero__
  32741. m_internal = property(_mupdf.PdfRange_m_internal_get, _mupdf.PdfRange_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32742. s_num_instances = property(_mupdf.PdfRange_s_num_instances_get, _mupdf.PdfRange_s_num_instances_set)
  32743. # Register PdfRange in _mupdf:
  32744. _mupdf.PdfRange_swigregister(PdfRange)
  32745. class PdfRecolorOptions(object):
  32746. r"""Wrapper class for struct `pdf_recolor_options`."""
  32747. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32748. __repr__ = _swig_repr
  32749. def __init__(self, *args):
  32750. r"""
  32751. *Overload 1:*
  32752. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  32753. |
  32754. *Overload 2:*
  32755. Constructor using raw copy of pre-existing `::pdf_recolor_options`.
  32756. |
  32757. *Overload 3:*
  32758. Constructor using raw copy of pre-existing `::pdf_recolor_options`.
  32759. """
  32760. _mupdf.PdfRecolorOptions_swiginit(self, _mupdf.new_PdfRecolorOptions(*args))
  32761. def internal(self, *args):
  32762. r"""
  32763. *Overload 1:*
  32764. Access as underlying struct.
  32765. |
  32766. *Overload 2:*
  32767. Access as underlying struct.
  32768. """
  32769. return _mupdf.PdfRecolorOptions_internal(self, *args)
  32770. __swig_destroy__ = _mupdf.delete_PdfRecolorOptions
  32771. num_comp = property(_mupdf.PdfRecolorOptions_num_comp_get, _mupdf.PdfRecolorOptions_num_comp_set)
  32772. s_num_instances = property(_mupdf.PdfRecolorOptions_s_num_instances_get, _mupdf.PdfRecolorOptions_s_num_instances_set)
  32773. def to_string(self):
  32774. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  32775. return _mupdf.PdfRecolorOptions_to_string(self)
  32776. def __eq__(self, rhs):
  32777. r"""Comparison method."""
  32778. return _mupdf.PdfRecolorOptions___eq__(self, rhs)
  32779. def __ne__(self, rhs):
  32780. r"""Comparison method."""
  32781. return _mupdf.PdfRecolorOptions___ne__(self, rhs)
  32782. # Register PdfRecolorOptions in _mupdf:
  32783. _mupdf.PdfRecolorOptions_swigregister(PdfRecolorOptions)
  32784. class PdfRedactOptions(object):
  32785. r"""Wrapper class for struct `pdf_redact_options`."""
  32786. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32787. __repr__ = _swig_repr
  32788. def __init__(self, *args):
  32789. r"""
  32790. *Overload 1:*
  32791. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  32792. |
  32793. *Overload 2:*
  32794. Constructor using raw copy of pre-existing `::pdf_redact_options`.
  32795. |
  32796. *Overload 3:*
  32797. Constructor using raw copy of pre-existing `::pdf_redact_options`.
  32798. """
  32799. _mupdf.PdfRedactOptions_swiginit(self, _mupdf.new_PdfRedactOptions(*args))
  32800. def internal(self, *args):
  32801. r"""
  32802. *Overload 1:*
  32803. Access as underlying struct.
  32804. |
  32805. *Overload 2:*
  32806. Access as underlying struct.
  32807. """
  32808. return _mupdf.PdfRedactOptions_internal(self, *args)
  32809. __swig_destroy__ = _mupdf.delete_PdfRedactOptions
  32810. black_boxes = property(_mupdf.PdfRedactOptions_black_boxes_get, _mupdf.PdfRedactOptions_black_boxes_set)
  32811. image_method = property(_mupdf.PdfRedactOptions_image_method_get, _mupdf.PdfRedactOptions_image_method_set)
  32812. line_art = property(_mupdf.PdfRedactOptions_line_art_get, _mupdf.PdfRedactOptions_line_art_set)
  32813. text = property(_mupdf.PdfRedactOptions_text_get, _mupdf.PdfRedactOptions_text_set)
  32814. s_num_instances = property(_mupdf.PdfRedactOptions_s_num_instances_get, _mupdf.PdfRedactOptions_s_num_instances_set)
  32815. def to_string(self):
  32816. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  32817. return _mupdf.PdfRedactOptions_to_string(self)
  32818. def __eq__(self, rhs):
  32819. r"""Comparison method."""
  32820. return _mupdf.PdfRedactOptions___eq__(self, rhs)
  32821. def __ne__(self, rhs):
  32822. r"""Comparison method."""
  32823. return _mupdf.PdfRedactOptions___ne__(self, rhs)
  32824. # Register PdfRedactOptions in _mupdf:
  32825. _mupdf.PdfRedactOptions_swigregister(PdfRedactOptions)
  32826. class PdfResourceStack(object):
  32827. r"""Wrapper class for struct `pdf_resource_stack`. Not copyable or assignable."""
  32828. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32829. __repr__ = _swig_repr
  32830. def pdf_lookup_resource(self, type, name):
  32831. r"""Class-aware wrapper for `::pdf_lookup_resource()`."""
  32832. return _mupdf.PdfResourceStack_pdf_lookup_resource(self, type, name)
  32833. def __init__(self, *args):
  32834. r"""
  32835. *Overload 1:*
  32836. Default constructor, sets `m_internal` to null.
  32837. |
  32838. *Overload 2:*
  32839. Constructor using raw copy of pre-existing `::pdf_resource_stack`.
  32840. """
  32841. _mupdf.PdfResourceStack_swiginit(self, _mupdf.new_PdfResourceStack(*args))
  32842. __swig_destroy__ = _mupdf.delete_PdfResourceStack
  32843. def m_internal_value(self):
  32844. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32845. return _mupdf.PdfResourceStack_m_internal_value(self)
  32846. def __nonzero__(self):
  32847. return _mupdf.PdfResourceStack___nonzero__(self)
  32848. __bool__ = __nonzero__
  32849. m_internal = property(_mupdf.PdfResourceStack_m_internal_get, _mupdf.PdfResourceStack_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32850. s_num_instances = property(_mupdf.PdfResourceStack_s_num_instances_get, _mupdf.PdfResourceStack_s_num_instances_set)
  32851. # Register PdfResourceStack in _mupdf:
  32852. _mupdf.PdfResourceStack_swigregister(PdfResourceStack)
  32853. class PdfRevPageMap(object):
  32854. r"""Wrapper class for struct `pdf_rev_page_map`. Not copyable or assignable."""
  32855. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32856. __repr__ = _swig_repr
  32857. def __init__(self, *args):
  32858. r"""
  32859. *Overload 1:*
  32860. Default constructor, sets `m_internal` to null.
  32861. |
  32862. *Overload 2:*
  32863. Constructor using raw copy of pre-existing `::pdf_rev_page_map`.
  32864. """
  32865. _mupdf.PdfRevPageMap_swiginit(self, _mupdf.new_PdfRevPageMap(*args))
  32866. __swig_destroy__ = _mupdf.delete_PdfRevPageMap
  32867. def m_internal_value(self):
  32868. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32869. return _mupdf.PdfRevPageMap_m_internal_value(self)
  32870. def __nonzero__(self):
  32871. return _mupdf.PdfRevPageMap___nonzero__(self)
  32872. __bool__ = __nonzero__
  32873. m_internal = property(_mupdf.PdfRevPageMap_m_internal_get, _mupdf.PdfRevPageMap_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32874. s_num_instances = property(_mupdf.PdfRevPageMap_s_num_instances_get, _mupdf.PdfRevPageMap_s_num_instances_set)
  32875. # Register PdfRevPageMap in _mupdf:
  32876. _mupdf.PdfRevPageMap_swigregister(PdfRevPageMap)
  32877. class PdfSanitizeFilterOptions(object):
  32878. r"""Wrapper class for struct `pdf_sanitize_filter_options`."""
  32879. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32880. __repr__ = _swig_repr
  32881. def __init__(self, *args):
  32882. r"""
  32883. *Overload 1:*
  32884. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  32885. |
  32886. *Overload 2:*
  32887. Constructor using raw copy of pre-existing `::pdf_sanitize_filter_options`.
  32888. |
  32889. *Overload 3:*
  32890. Constructor using raw copy of pre-existing `::pdf_sanitize_filter_options`.
  32891. """
  32892. _mupdf.PdfSanitizeFilterOptions_swiginit(self, _mupdf.new_PdfSanitizeFilterOptions(*args))
  32893. def internal(self, *args):
  32894. r"""
  32895. *Overload 1:*
  32896. Access as underlying struct.
  32897. |
  32898. *Overload 2:*
  32899. Access as underlying struct.
  32900. """
  32901. return _mupdf.PdfSanitizeFilterOptions_internal(self, *args)
  32902. __swig_destroy__ = _mupdf.delete_PdfSanitizeFilterOptions
  32903. opaque = property(_mupdf.PdfSanitizeFilterOptions_opaque_get, _mupdf.PdfSanitizeFilterOptions_opaque_set)
  32904. image_filter = property(_mupdf.PdfSanitizeFilterOptions_image_filter_get, _mupdf.PdfSanitizeFilterOptions_image_filter_set)
  32905. text_filter = property(_mupdf.PdfSanitizeFilterOptions_text_filter_get, _mupdf.PdfSanitizeFilterOptions_text_filter_set)
  32906. after_text_object = property(_mupdf.PdfSanitizeFilterOptions_after_text_object_get, _mupdf.PdfSanitizeFilterOptions_after_text_object_set)
  32907. culler = property(_mupdf.PdfSanitizeFilterOptions_culler_get, _mupdf.PdfSanitizeFilterOptions_culler_set)
  32908. s_num_instances = property(_mupdf.PdfSanitizeFilterOptions_s_num_instances_get, _mupdf.PdfSanitizeFilterOptions_s_num_instances_set)
  32909. def to_string(self):
  32910. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  32911. return _mupdf.PdfSanitizeFilterOptions_to_string(self)
  32912. def __eq__(self, rhs):
  32913. r"""Comparison method."""
  32914. return _mupdf.PdfSanitizeFilterOptions___eq__(self, rhs)
  32915. def __ne__(self, rhs):
  32916. r"""Comparison method."""
  32917. return _mupdf.PdfSanitizeFilterOptions___ne__(self, rhs)
  32918. # Register PdfSanitizeFilterOptions in _mupdf:
  32919. _mupdf.PdfSanitizeFilterOptions_swigregister(PdfSanitizeFilterOptions)
  32920. class PdfSanitizeFilterOptions2(PdfSanitizeFilterOptions):
  32921. r"""Wrapper class for struct pdf_sanitize_filter_options with virtual fns for each fnptr; this is for use as a SWIG Director class."""
  32922. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32923. __repr__ = _swig_repr
  32924. def __init__(self):
  32925. r"""== Constructor."""
  32926. if self.__class__ == PdfSanitizeFilterOptions2:
  32927. _self = None
  32928. else:
  32929. _self = self
  32930. _mupdf.PdfSanitizeFilterOptions2_swiginit(self, _mupdf.new_PdfSanitizeFilterOptions2(_self, ))
  32931. __swig_destroy__ = _mupdf.delete_PdfSanitizeFilterOptions2
  32932. def use_virtual_image_filter(self, use=True):
  32933. r"""
  32934. These methods set the function pointers in *m_internal
  32935. to point to internal callbacks that call our virtual methods.
  32936. """
  32937. return _mupdf.PdfSanitizeFilterOptions2_use_virtual_image_filter(self, use)
  32938. def use_virtual_text_filter(self, use=True):
  32939. return _mupdf.PdfSanitizeFilterOptions2_use_virtual_text_filter(self, use)
  32940. def use_virtual_after_text_object(self, use=True):
  32941. return _mupdf.PdfSanitizeFilterOptions2_use_virtual_after_text_object(self, use)
  32942. def use_virtual_culler(self, use=True):
  32943. return _mupdf.PdfSanitizeFilterOptions2_use_virtual_culler(self, use)
  32944. def image_filter(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  32945. r"""Default virtual method implementations; these all throw an exception."""
  32946. return _mupdf.PdfSanitizeFilterOptions2_image_filter(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  32947. def text_filter(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6):
  32948. return _mupdf.PdfSanitizeFilterOptions2_text_filter(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6)
  32949. def after_text_object(self, arg_0, arg_2, arg_3, arg_4):
  32950. return _mupdf.PdfSanitizeFilterOptions2_after_text_object(self, arg_0, arg_2, arg_3, arg_4)
  32951. def culler(self, arg_0, arg_2, arg_3):
  32952. return _mupdf.PdfSanitizeFilterOptions2_culler(self, arg_0, arg_2, arg_3)
  32953. def __disown__(self):
  32954. self.this.disown()
  32955. _mupdf.disown_PdfSanitizeFilterOptions2(self)
  32956. return weakref.proxy(self)
  32957. # Register PdfSanitizeFilterOptions2 in _mupdf:
  32958. _mupdf.PdfSanitizeFilterOptions2_swigregister(PdfSanitizeFilterOptions2)
  32959. class PdfTextObjectState(object):
  32960. r"""Wrapper class for struct `pdf_text_object_state`. Not copyable or assignable."""
  32961. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32962. __repr__ = _swig_repr
  32963. def pdf_tos_get_text(self):
  32964. r"""Class-aware wrapper for `::pdf_tos_get_text()`."""
  32965. return _mupdf.PdfTextObjectState_pdf_tos_get_text(self)
  32966. def pdf_tos_make_trm(self, text, fontdesc, cid, trm, adv):
  32967. r"""
  32968. Class-aware wrapper for `::pdf_tos_make_trm()`.
  32969. This method has out-params. Python/C# wrappers look like:
  32970. `pdf_tos_make_trm(::pdf_text_state *text, ::pdf_font_desc *fontdesc, int cid, ::fz_matrix *trm)` => `(int, float adv)`
  32971. """
  32972. return _mupdf.PdfTextObjectState_pdf_tos_make_trm(self, text, fontdesc, cid, trm, adv)
  32973. def pdf_tos_move_after_char(self):
  32974. r"""Class-aware wrapper for `::pdf_tos_move_after_char()`."""
  32975. return _mupdf.PdfTextObjectState_pdf_tos_move_after_char(self)
  32976. def pdf_tos_newline(self, leading):
  32977. r"""Class-aware wrapper for `::pdf_tos_newline()`."""
  32978. return _mupdf.PdfTextObjectState_pdf_tos_newline(self, leading)
  32979. def pdf_tos_reset(self, render):
  32980. r"""Class-aware wrapper for `::pdf_tos_reset()`."""
  32981. return _mupdf.PdfTextObjectState_pdf_tos_reset(self, render)
  32982. def pdf_tos_set_matrix(self, a, b, c, d, e, f):
  32983. r"""Class-aware wrapper for `::pdf_tos_set_matrix()`."""
  32984. return _mupdf.PdfTextObjectState_pdf_tos_set_matrix(self, a, b, c, d, e, f)
  32985. def pdf_tos_translate(self, tx, ty):
  32986. r"""Class-aware wrapper for `::pdf_tos_translate()`."""
  32987. return _mupdf.PdfTextObjectState_pdf_tos_translate(self, tx, ty)
  32988. def __init__(self, *args):
  32989. r"""
  32990. *Overload 1:*
  32991. Default constructor, sets `m_internal` to null.
  32992. |
  32993. *Overload 2:*
  32994. Constructor using raw copy of pre-existing `::pdf_text_object_state`.
  32995. """
  32996. _mupdf.PdfTextObjectState_swiginit(self, _mupdf.new_PdfTextObjectState(*args))
  32997. __swig_destroy__ = _mupdf.delete_PdfTextObjectState
  32998. def m_internal_value(self):
  32999. r"""Return numerical value of .m_internal; helps with Python debugging."""
  33000. return _mupdf.PdfTextObjectState_m_internal_value(self)
  33001. def __nonzero__(self):
  33002. return _mupdf.PdfTextObjectState___nonzero__(self)
  33003. __bool__ = __nonzero__
  33004. m_internal = property(_mupdf.PdfTextObjectState_m_internal_get, _mupdf.PdfTextObjectState_m_internal_set, doc=r"""Pointer to wrapped data.""")
  33005. s_num_instances = property(_mupdf.PdfTextObjectState_s_num_instances_get, _mupdf.PdfTextObjectState_s_num_instances_set)
  33006. # Register PdfTextObjectState in _mupdf:
  33007. _mupdf.PdfTextObjectState_swigregister(PdfTextObjectState)
  33008. class PdfTextState(object):
  33009. r"""Wrapper class for struct `pdf_text_state`. Not copyable or assignable."""
  33010. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  33011. __repr__ = _swig_repr
  33012. def __init__(self, *args):
  33013. r"""
  33014. *Overload 1:*
  33015. Default constructor, sets `m_internal` to null.
  33016. |
  33017. *Overload 2:*
  33018. Constructor using raw copy of pre-existing `::pdf_text_state`.
  33019. """
  33020. _mupdf.PdfTextState_swiginit(self, _mupdf.new_PdfTextState(*args))
  33021. __swig_destroy__ = _mupdf.delete_PdfTextState
  33022. def m_internal_value(self):
  33023. r"""Return numerical value of .m_internal; helps with Python debugging."""
  33024. return _mupdf.PdfTextState_m_internal_value(self)
  33025. def __nonzero__(self):
  33026. return _mupdf.PdfTextState___nonzero__(self)
  33027. __bool__ = __nonzero__
  33028. m_internal = property(_mupdf.PdfTextState_m_internal_get, _mupdf.PdfTextState_m_internal_set, doc=r"""Pointer to wrapped data.""")
  33029. s_num_instances = property(_mupdf.PdfTextState_s_num_instances_get, _mupdf.PdfTextState_s_num_instances_set)
  33030. # Register PdfTextState in _mupdf:
  33031. _mupdf.PdfTextState_swigregister(PdfTextState)
  33032. class PdfUnsavedSig(object):
  33033. r"""Wrapper class for struct `pdf_unsaved_sig`. Not copyable or assignable."""
  33034. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  33035. __repr__ = _swig_repr
  33036. def __init__(self, *args):
  33037. r"""
  33038. *Overload 1:*
  33039. Default constructor, sets `m_internal` to null.
  33040. |
  33041. *Overload 2:*
  33042. Constructor using raw copy of pre-existing `::pdf_unsaved_sig`.
  33043. """
  33044. _mupdf.PdfUnsavedSig_swiginit(self, _mupdf.new_PdfUnsavedSig(*args))
  33045. __swig_destroy__ = _mupdf.delete_PdfUnsavedSig
  33046. def m_internal_value(self):
  33047. r"""Return numerical value of .m_internal; helps with Python debugging."""
  33048. return _mupdf.PdfUnsavedSig_m_internal_value(self)
  33049. def __nonzero__(self):
  33050. return _mupdf.PdfUnsavedSig___nonzero__(self)
  33051. __bool__ = __nonzero__
  33052. m_internal = property(_mupdf.PdfUnsavedSig_m_internal_get, _mupdf.PdfUnsavedSig_m_internal_set, doc=r"""Pointer to wrapped data.""")
  33053. s_num_instances = property(_mupdf.PdfUnsavedSig_s_num_instances_get, _mupdf.PdfUnsavedSig_s_num_instances_set)
  33054. # Register PdfUnsavedSig in _mupdf:
  33055. _mupdf.PdfUnsavedSig_swigregister(PdfUnsavedSig)
  33056. class PdfVmtx(object):
  33057. r"""Wrapper class for struct `pdf_vmtx`. Not copyable or assignable."""
  33058. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  33059. __repr__ = _swig_repr
  33060. def __init__(self, *args):
  33061. r"""
  33062. *Overload 1:*
  33063. Default constructor, sets `m_internal` to null.
  33064. |
  33065. *Overload 2:*
  33066. Constructor using raw copy of pre-existing `::pdf_vmtx`.
  33067. """
  33068. _mupdf.PdfVmtx_swiginit(self, _mupdf.new_PdfVmtx(*args))
  33069. __swig_destroy__ = _mupdf.delete_PdfVmtx
  33070. def m_internal_value(self):
  33071. r"""Return numerical value of .m_internal; helps with Python debugging."""
  33072. return _mupdf.PdfVmtx_m_internal_value(self)
  33073. def __nonzero__(self):
  33074. return _mupdf.PdfVmtx___nonzero__(self)
  33075. __bool__ = __nonzero__
  33076. m_internal = property(_mupdf.PdfVmtx_m_internal_get, _mupdf.PdfVmtx_m_internal_set, doc=r"""Pointer to wrapped data.""")
  33077. s_num_instances = property(_mupdf.PdfVmtx_s_num_instances_get, _mupdf.PdfVmtx_s_num_instances_set)
  33078. # Register PdfVmtx in _mupdf:
  33079. _mupdf.PdfVmtx_swigregister(PdfVmtx)
  33080. class PdfWriteOptions(object):
  33081. r"""Wrapper class for struct `pdf_write_options`."""
  33082. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  33083. __repr__ = _swig_repr
  33084. def pdf_parse_write_options(self, args):
  33085. r"""We use default copy constructor and operator=. Class-aware wrapper for `::pdf_parse_write_options()`."""
  33086. return _mupdf.PdfWriteOptions_pdf_parse_write_options(self, args)
  33087. def opwd_utf8_set_value(self, text):
  33088. r"""Copies <text> into opwd_utf8[]."""
  33089. return _mupdf.PdfWriteOptions_opwd_utf8_set_value(self, text)
  33090. def upwd_utf8_set_value(self, text):
  33091. r"""Copies <text> into upwd_utf8[]."""
  33092. return _mupdf.PdfWriteOptions_upwd_utf8_set_value(self, text)
  33093. def __init__(self, *args):
  33094. r"""
  33095. *Overload 1:*
  33096. Default constructor, makes copy of pdf_default_write_options.
  33097. |
  33098. *Overload 2:*
  33099. Copy constructor using raw memcopy().
  33100. |
  33101. *Overload 3:*
  33102. Constructor using raw copy of pre-existing `::pdf_write_options`.
  33103. |
  33104. *Overload 4:*
  33105. Constructor using raw copy of pre-existing `::pdf_write_options`.
  33106. """
  33107. _mupdf.PdfWriteOptions_swiginit(self, _mupdf.new_PdfWriteOptions(*args))
  33108. def internal(self, *args):
  33109. r"""
  33110. *Overload 1:*
  33111. Access as underlying struct.
  33112. |
  33113. *Overload 2:*
  33114. Access as underlying struct.
  33115. """
  33116. return _mupdf.PdfWriteOptions_internal(self, *args)
  33117. __swig_destroy__ = _mupdf.delete_PdfWriteOptions
  33118. do_incremental = property(_mupdf.PdfWriteOptions_do_incremental_get, _mupdf.PdfWriteOptions_do_incremental_set)
  33119. do_pretty = property(_mupdf.PdfWriteOptions_do_pretty_get, _mupdf.PdfWriteOptions_do_pretty_set)
  33120. do_ascii = property(_mupdf.PdfWriteOptions_do_ascii_get, _mupdf.PdfWriteOptions_do_ascii_set)
  33121. do_compress = property(_mupdf.PdfWriteOptions_do_compress_get, _mupdf.PdfWriteOptions_do_compress_set)
  33122. do_compress_images = property(_mupdf.PdfWriteOptions_do_compress_images_get, _mupdf.PdfWriteOptions_do_compress_images_set)
  33123. do_compress_fonts = property(_mupdf.PdfWriteOptions_do_compress_fonts_get, _mupdf.PdfWriteOptions_do_compress_fonts_set)
  33124. do_decompress = property(_mupdf.PdfWriteOptions_do_decompress_get, _mupdf.PdfWriteOptions_do_decompress_set)
  33125. do_garbage = property(_mupdf.PdfWriteOptions_do_garbage_get, _mupdf.PdfWriteOptions_do_garbage_set)
  33126. do_linear = property(_mupdf.PdfWriteOptions_do_linear_get, _mupdf.PdfWriteOptions_do_linear_set)
  33127. do_clean = property(_mupdf.PdfWriteOptions_do_clean_get, _mupdf.PdfWriteOptions_do_clean_set)
  33128. do_sanitize = property(_mupdf.PdfWriteOptions_do_sanitize_get, _mupdf.PdfWriteOptions_do_sanitize_set)
  33129. do_appearance = property(_mupdf.PdfWriteOptions_do_appearance_get, _mupdf.PdfWriteOptions_do_appearance_set)
  33130. do_encrypt = property(_mupdf.PdfWriteOptions_do_encrypt_get, _mupdf.PdfWriteOptions_do_encrypt_set)
  33131. dont_regenerate_id = property(_mupdf.PdfWriteOptions_dont_regenerate_id_get, _mupdf.PdfWriteOptions_dont_regenerate_id_set)
  33132. permissions = property(_mupdf.PdfWriteOptions_permissions_get, _mupdf.PdfWriteOptions_permissions_set)
  33133. opwd_utf8 = property(_mupdf.PdfWriteOptions_opwd_utf8_get, _mupdf.PdfWriteOptions_opwd_utf8_set)
  33134. upwd_utf8 = property(_mupdf.PdfWriteOptions_upwd_utf8_get, _mupdf.PdfWriteOptions_upwd_utf8_set)
  33135. do_snapshot = property(_mupdf.PdfWriteOptions_do_snapshot_get, _mupdf.PdfWriteOptions_do_snapshot_set)
  33136. do_preserve_metadata = property(_mupdf.PdfWriteOptions_do_preserve_metadata_get, _mupdf.PdfWriteOptions_do_preserve_metadata_set)
  33137. do_use_objstms = property(_mupdf.PdfWriteOptions_do_use_objstms_get, _mupdf.PdfWriteOptions_do_use_objstms_set)
  33138. compression_effort = property(_mupdf.PdfWriteOptions_compression_effort_get, _mupdf.PdfWriteOptions_compression_effort_set)
  33139. do_labels = property(_mupdf.PdfWriteOptions_do_labels_get, _mupdf.PdfWriteOptions_do_labels_set)
  33140. s_num_instances = property(_mupdf.PdfWriteOptions_s_num_instances_get, _mupdf.PdfWriteOptions_s_num_instances_set)
  33141. def to_string(self):
  33142. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  33143. return _mupdf.PdfWriteOptions_to_string(self)
  33144. def __eq__(self, rhs):
  33145. r"""Comparison method."""
  33146. return _mupdf.PdfWriteOptions___eq__(self, rhs)
  33147. def __ne__(self, rhs):
  33148. r"""Comparison method."""
  33149. return _mupdf.PdfWriteOptions___ne__(self, rhs)
  33150. # Register PdfWriteOptions in _mupdf:
  33151. _mupdf.PdfWriteOptions_swigregister(PdfWriteOptions)
  33152. class PdfXrange(object):
  33153. r"""Wrapper class for struct `pdf_xrange`. Not copyable or assignable."""
  33154. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  33155. __repr__ = _swig_repr
  33156. def __init__(self, *args):
  33157. r"""
  33158. *Overload 1:*
  33159. Default constructor, sets `m_internal` to null.
  33160. |
  33161. *Overload 2:*
  33162. Constructor using raw copy of pre-existing `::pdf_xrange`.
  33163. """
  33164. _mupdf.PdfXrange_swiginit(self, _mupdf.new_PdfXrange(*args))
  33165. __swig_destroy__ = _mupdf.delete_PdfXrange
  33166. def m_internal_value(self):
  33167. r"""Return numerical value of .m_internal; helps with Python debugging."""
  33168. return _mupdf.PdfXrange_m_internal_value(self)
  33169. def __nonzero__(self):
  33170. return _mupdf.PdfXrange___nonzero__(self)
  33171. __bool__ = __nonzero__
  33172. m_internal = property(_mupdf.PdfXrange_m_internal_get, _mupdf.PdfXrange_m_internal_set, doc=r"""Pointer to wrapped data.""")
  33173. s_num_instances = property(_mupdf.PdfXrange_s_num_instances_get, _mupdf.PdfXrange_s_num_instances_set)
  33174. # Register PdfXrange in _mupdf:
  33175. _mupdf.PdfXrange_swigregister(PdfXrange)
  33176. class PdfXref(object):
  33177. r"""Wrapper class for struct `pdf_xref`. Not copyable or assignable."""
  33178. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  33179. __repr__ = _swig_repr
  33180. def __init__(self, *args):
  33181. r"""
  33182. *Overload 1:*
  33183. == Constructors. Constructor using `pdf_new_local_xref()`.
  33184. |
  33185. *Overload 2:*
  33186. Default constructor, sets `m_internal` to null.
  33187. |
  33188. *Overload 3:*
  33189. Constructor using raw copy of pre-existing `::pdf_xref`.
  33190. """
  33191. _mupdf.PdfXref_swiginit(self, _mupdf.new_PdfXref(*args))
  33192. __swig_destroy__ = _mupdf.delete_PdfXref
  33193. def m_internal_value(self):
  33194. r"""Return numerical value of .m_internal; helps with Python debugging."""
  33195. return _mupdf.PdfXref_m_internal_value(self)
  33196. def __nonzero__(self):
  33197. return _mupdf.PdfXref___nonzero__(self)
  33198. __bool__ = __nonzero__
  33199. m_internal = property(_mupdf.PdfXref_m_internal_get, _mupdf.PdfXref_m_internal_set, doc=r"""Pointer to wrapped data.""")
  33200. s_num_instances = property(_mupdf.PdfXref_s_num_instances_get, _mupdf.PdfXref_s_num_instances_set)
  33201. # Register PdfXref in _mupdf:
  33202. _mupdf.PdfXref_swigregister(PdfXref)
  33203. class PdfXrefEntry(object):
  33204. r"""Wrapper class for struct `pdf_xref_entry`. Not copyable or assignable."""
  33205. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  33206. __repr__ = _swig_repr
  33207. def __init__(self, *args):
  33208. r"""
  33209. *Overload 1:*
  33210. Default constructor, sets `m_internal` to null.
  33211. |
  33212. *Overload 2:*
  33213. Constructor using raw copy of pre-existing `::pdf_xref_entry`.
  33214. """
  33215. _mupdf.PdfXrefEntry_swiginit(self, _mupdf.new_PdfXrefEntry(*args))
  33216. __swig_destroy__ = _mupdf.delete_PdfXrefEntry
  33217. def m_internal_value(self):
  33218. r"""Return numerical value of .m_internal; helps with Python debugging."""
  33219. return _mupdf.PdfXrefEntry_m_internal_value(self)
  33220. def __nonzero__(self):
  33221. return _mupdf.PdfXrefEntry___nonzero__(self)
  33222. __bool__ = __nonzero__
  33223. m_internal = property(_mupdf.PdfXrefEntry_m_internal_get, _mupdf.PdfXrefEntry_m_internal_set, doc=r"""Pointer to wrapped data.""")
  33224. s_num_instances = property(_mupdf.PdfXrefEntry_s_num_instances_get, _mupdf.PdfXrefEntry_s_num_instances_set)
  33225. # Register PdfXrefEntry in _mupdf:
  33226. _mupdf.PdfXrefEntry_swigregister(PdfXrefEntry)
  33227. class PdfXrefSubsec(object):
  33228. r"""Wrapper class for struct `pdf_xref_subsec`. Not copyable or assignable."""
  33229. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  33230. __repr__ = _swig_repr
  33231. def __init__(self, *args):
  33232. r"""
  33233. *Overload 1:*
  33234. Default constructor, sets `m_internal` to null.
  33235. |
  33236. *Overload 2:*
  33237. Constructor using raw copy of pre-existing `::pdf_xref_subsec`.
  33238. """
  33239. _mupdf.PdfXrefSubsec_swiginit(self, _mupdf.new_PdfXrefSubsec(*args))
  33240. __swig_destroy__ = _mupdf.delete_PdfXrefSubsec
  33241. def m_internal_value(self):
  33242. r"""Return numerical value of .m_internal; helps with Python debugging."""
  33243. return _mupdf.PdfXrefSubsec_m_internal_value(self)
  33244. def __nonzero__(self):
  33245. return _mupdf.PdfXrefSubsec___nonzero__(self)
  33246. __bool__ = __nonzero__
  33247. m_internal = property(_mupdf.PdfXrefSubsec_m_internal_get, _mupdf.PdfXrefSubsec_m_internal_set, doc=r"""Pointer to wrapped data.""")
  33248. s_num_instances = property(_mupdf.PdfXrefSubsec_s_num_instances_get, _mupdf.PdfXrefSubsec_s_num_instances_set)
  33249. # Register PdfXrefSubsec in _mupdf:
  33250. _mupdf.PdfXrefSubsec_swigregister(PdfXrefSubsec)
  33251. def num_instances():
  33252. r"""Returns map from class name (for example FzDocument) to s_num_instances."""
  33253. return _mupdf.num_instances()
  33254. class FzLinkIterator(object):
  33255. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  33256. __repr__ = _swig_repr
  33257. def __init__(self, item):
  33258. _mupdf.FzLinkIterator_swiginit(self, _mupdf.new_FzLinkIterator(item))
  33259. def __increment__(self):
  33260. return _mupdf.FzLinkIterator___increment__(self)
  33261. def __eq__(self, rhs):
  33262. return _mupdf.FzLinkIterator___eq__(self, rhs)
  33263. def __ne__(self, rhs):
  33264. return _mupdf.FzLinkIterator___ne__(self, rhs)
  33265. def __ref__(self):
  33266. return _mupdf.FzLinkIterator___ref__(self)
  33267. def __deref__(self):
  33268. return _mupdf.FzLinkIterator___deref__(self)
  33269. __swig_destroy__ = _mupdf.delete_FzLinkIterator
  33270. def fz_set_link_rect(self, rect):
  33271. r"""Class-aware wrapper for `::fz_set_link_rect()`."""
  33272. return _mupdf.FzLinkIterator_fz_set_link_rect(self, rect)
  33273. def fz_set_link_uri(self, uri):
  33274. r"""Class-aware wrapper for `::fz_set_link_uri()`."""
  33275. return _mupdf.FzLinkIterator_fz_set_link_uri(self, uri)
  33276. def begin(self):
  33277. r"""Used for iteration over linked list of FzLink items starting at fz_link::."""
  33278. return _mupdf.FzLinkIterator_begin(self)
  33279. def end(self):
  33280. r"""Used for iteration over linked list of FzLink items starting at fz_link::."""
  33281. return _mupdf.FzLinkIterator_end(self)
  33282. def refs(self):
  33283. return _mupdf.FzLinkIterator_refs(self)
  33284. def next(self):
  33285. return _mupdf.FzLinkIterator_next(self)
  33286. def rect(self):
  33287. return _mupdf.FzLinkIterator_rect(self)
  33288. def uri(self):
  33289. return _mupdf.FzLinkIterator_uri(self)
  33290. def m_internal_value(self):
  33291. r"""Return numerical value of .m_internal; helps with Python debugging."""
  33292. return _mupdf.FzLinkIterator_m_internal_value(self)
  33293. def __nonzero__(self):
  33294. return _mupdf.FzLinkIterator___nonzero__(self)
  33295. __bool__ = __nonzero__
  33296. m_internal = property(_mupdf.FzLinkIterator_m_internal_get, _mupdf.FzLinkIterator_m_internal_set, doc=r"""Pointer to wrapped data.""")
  33297. s_num_instances = property(_mupdf.FzLinkIterator_s_num_instances_get, _mupdf.FzLinkIterator_s_num_instances_set)
  33298. # Register FzLinkIterator in _mupdf:
  33299. _mupdf.FzLinkIterator_swigregister(FzLinkIterator)
  33300. class FzStextBlockIterator(object):
  33301. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  33302. __repr__ = _swig_repr
  33303. def __init__(self, item):
  33304. _mupdf.FzStextBlockIterator_swiginit(self, _mupdf.new_FzStextBlockIterator(item))
  33305. def __increment__(self):
  33306. return _mupdf.FzStextBlockIterator___increment__(self)
  33307. def __eq__(self, rhs):
  33308. return _mupdf.FzStextBlockIterator___eq__(self, rhs)
  33309. def __ne__(self, rhs):
  33310. return _mupdf.FzStextBlockIterator___ne__(self, rhs)
  33311. def __ref__(self):
  33312. return _mupdf.FzStextBlockIterator___ref__(self)
  33313. def __deref__(self):
  33314. return _mupdf.FzStextBlockIterator___deref__(self)
  33315. __swig_destroy__ = _mupdf.delete_FzStextBlockIterator
  33316. def begin(self):
  33317. r"""Used for iteration over linked list of FzStextChar items starting at fz_stext_char::first_char."""
  33318. return _mupdf.FzStextBlockIterator_begin(self)
  33319. def end(self):
  33320. r"""Used for iteration over linked list of FzStextChar items starting at fz_stext_char::first_char."""
  33321. return _mupdf.FzStextBlockIterator_end(self)
  33322. def m_internal_value(self):
  33323. r"""Return numerical value of .m_internal; helps with Python debugging."""
  33324. return _mupdf.FzStextBlockIterator_m_internal_value(self)
  33325. def __nonzero__(self):
  33326. return _mupdf.FzStextBlockIterator___nonzero__(self)
  33327. __bool__ = __nonzero__
  33328. m_internal = property(_mupdf.FzStextBlockIterator_m_internal_get, _mupdf.FzStextBlockIterator_m_internal_set, doc=r"""Pointer to wrapped data.""")
  33329. s_num_instances = property(_mupdf.FzStextBlockIterator_s_num_instances_get, _mupdf.FzStextBlockIterator_s_num_instances_set)
  33330. # Register FzStextBlockIterator in _mupdf:
  33331. _mupdf.FzStextBlockIterator_swigregister(FzStextBlockIterator)
  33332. class FzStextLineIterator(object):
  33333. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  33334. __repr__ = _swig_repr
  33335. def __init__(self, item):
  33336. _mupdf.FzStextLineIterator_swiginit(self, _mupdf.new_FzStextLineIterator(item))
  33337. def __increment__(self):
  33338. return _mupdf.FzStextLineIterator___increment__(self)
  33339. def __eq__(self, rhs):
  33340. return _mupdf.FzStextLineIterator___eq__(self, rhs)
  33341. def __ne__(self, rhs):
  33342. return _mupdf.FzStextLineIterator___ne__(self, rhs)
  33343. def __ref__(self):
  33344. return _mupdf.FzStextLineIterator___ref__(self)
  33345. def __deref__(self):
  33346. return _mupdf.FzStextLineIterator___deref__(self)
  33347. __swig_destroy__ = _mupdf.delete_FzStextLineIterator
  33348. def m_internal_value(self):
  33349. r"""Return numerical value of .m_internal; helps with Python debugging."""
  33350. return _mupdf.FzStextLineIterator_m_internal_value(self)
  33351. def __nonzero__(self):
  33352. return _mupdf.FzStextLineIterator___nonzero__(self)
  33353. __bool__ = __nonzero__
  33354. m_internal = property(_mupdf.FzStextLineIterator_m_internal_get, _mupdf.FzStextLineIterator_m_internal_set, doc=r"""Pointer to wrapped data.""")
  33355. s_num_instances = property(_mupdf.FzStextLineIterator_s_num_instances_get, _mupdf.FzStextLineIterator_s_num_instances_set)
  33356. # Register FzStextLineIterator in _mupdf:
  33357. _mupdf.FzStextLineIterator_swigregister(FzStextLineIterator)
  33358. class FzStextPageIterator(object):
  33359. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  33360. __repr__ = _swig_repr
  33361. def __init__(self, item):
  33362. _mupdf.FzStextPageIterator_swiginit(self, _mupdf.new_FzStextPageIterator(item))
  33363. def __increment__(self):
  33364. return _mupdf.FzStextPageIterator___increment__(self)
  33365. def __eq__(self, rhs):
  33366. return _mupdf.FzStextPageIterator___eq__(self, rhs)
  33367. def __ne__(self, rhs):
  33368. return _mupdf.FzStextPageIterator___ne__(self, rhs)
  33369. def __ref__(self):
  33370. return _mupdf.FzStextPageIterator___ref__(self)
  33371. def __deref__(self):
  33372. return _mupdf.FzStextPageIterator___deref__(self)
  33373. __swig_destroy__ = _mupdf.delete_FzStextPageIterator
  33374. def i_transform(self):
  33375. r"""Returns m_internal.u.i.transform if m_internal->type is FZ_STEXT_BLOCK_IMAGE, else throws."""
  33376. return _mupdf.FzStextPageIterator_i_transform(self)
  33377. def i_image(self):
  33378. r"""Returns m_internal.u.i.image if m_internal->type is FZ_STEXT_BLOCK_IMAGE, else throws."""
  33379. return _mupdf.FzStextPageIterator_i_image(self)
  33380. def begin(self):
  33381. r"""Used for iteration over linked list of FzStextLine items starting at fz_stext_line::u.t.first_line."""
  33382. return _mupdf.FzStextPageIterator_begin(self)
  33383. def end(self):
  33384. r"""Used for iteration over linked list of FzStextLine items starting at fz_stext_line::u.t.first_line."""
  33385. return _mupdf.FzStextPageIterator_end(self)
  33386. def m_internal_value(self):
  33387. r"""Return numerical value of .m_internal; helps with Python debugging."""
  33388. return _mupdf.FzStextPageIterator_m_internal_value(self)
  33389. def __nonzero__(self):
  33390. return _mupdf.FzStextPageIterator___nonzero__(self)
  33391. __bool__ = __nonzero__
  33392. m_internal = property(_mupdf.FzStextPageIterator_m_internal_get, _mupdf.FzStextPageIterator_m_internal_set, doc=r"""Pointer to wrapped data.""")
  33393. s_num_instances = property(_mupdf.FzStextPageIterator_s_num_instances_get, _mupdf.FzStextPageIterator_s_num_instances_set)
  33394. # Register FzStextPageIterator in _mupdf:
  33395. _mupdf.FzStextPageIterator_swigregister(FzStextPageIterator)
  33396. def fz_aa_level():
  33397. r"""
  33398. Class-aware wrapper for `::fz_aa_level()`.
  33399. Get the number of bits of antialiasing we are
  33400. using (for graphics). Between 0 and 8.
  33401. """
  33402. return _mupdf.fz_aa_level()
  33403. def fz_abs(f):
  33404. r"""
  33405. Class-aware wrapper for `::fz_abs()`.
  33406. Some standard math functions, done as static inlines for speed.
  33407. People with compilers that do not adequately implement inline
  33408. may like to reimplement these using macros.
  33409. """
  33410. return _mupdf.fz_abs(f)
  33411. def fz_absi(i):
  33412. r"""Class-aware wrapper for `::fz_absi()`."""
  33413. return _mupdf.fz_absi(i)
  33414. def fz_add_layout_char(block, x, w, p):
  33415. r"""
  33416. Class-aware wrapper for `::fz_add_layout_char()`.
  33417. Add a new char to the line at the end of the layout block.
  33418. """
  33419. return _mupdf.fz_add_layout_char(block, x, w, p)
  33420. def fz_add_layout_line(block, x, y, h, p):
  33421. r"""
  33422. Class-aware wrapper for `::fz_add_layout_line()`.
  33423. Add a new line to the end of the layout block.
  33424. """
  33425. return _mupdf.fz_add_layout_line(block, x, y, h, p)
  33426. def fz_add_separation(sep, name, cs, cs_channel):
  33427. r"""
  33428. Class-aware wrapper for `::fz_add_separation()`.
  33429. Add a separation (null terminated name, colorspace)
  33430. """
  33431. return _mupdf.fz_add_separation(sep, name, cs, cs_channel)
  33432. def fz_add_separation_equivalents(sep, rgba, cmyk, name):
  33433. r"""
  33434. Class-aware wrapper for `::fz_add_separation_equivalents()`.
  33435. Add a separation with equivalents (null terminated name,
  33436. colorspace)
  33437. (old, deprecated)
  33438. """
  33439. return _mupdf.fz_add_separation_equivalents(sep, rgba, cmyk, name)
  33440. def fz_adjust_rect_for_stroke(rect, stroke, ctm):
  33441. r"""
  33442. Class-aware wrapper for `::fz_adjust_rect_for_stroke()`.
  33443. Given a rectangle (assumed to be the bounding box for a path),
  33444. expand it to allow for the expansion of the bbox that would be
  33445. seen by stroking the path with the given stroke state and
  33446. transform.
  33447. """
  33448. return _mupdf.fz_adjust_rect_for_stroke(rect, stroke, ctm)
  33449. def fz_advance_glyph(font, glyph, wmode):
  33450. r"""
  33451. Class-aware wrapper for `::fz_advance_glyph()`.
  33452. Return the advance for a given glyph.
  33453. font: The font to look for the glyph in.
  33454. glyph: The glyph to find the advance for.
  33455. wmode: 1 for vertical mode, 0 for horizontal.
  33456. Returns the advance for the glyph.
  33457. """
  33458. return _mupdf.fz_advance_glyph(font, glyph, wmode)
  33459. def fz_aes_crypt_cbc(ctx, mode, length, iv, input, output):
  33460. r"""
  33461. Class-aware wrapper for `::fz_aes_crypt_cbc()`.
  33462. AES block processing. Encrypts or Decrypts (according to mode,
  33463. which must match what was initially set up) length bytes (which
  33464. must be a multiple of 16), using (and modifying) the insertion
  33465. vector iv, reading from input, and writing to output.
  33466. Never throws an exception.
  33467. """
  33468. return _mupdf.fz_aes_crypt_cbc(ctx, mode, length, iv, input, output)
  33469. def fz_aes_setkey_dec(ctx, key, keysize):
  33470. r"""
  33471. Class-aware wrapper for `::fz_aes_setkey_dec()`.
  33472. AES decryption initialization. Fills in the supplied context
  33473. and prepares for decryption using the given key.
  33474. Returns non-zero for error (key size other than 128/192/256).
  33475. Never throws an exception.
  33476. """
  33477. return _mupdf.fz_aes_setkey_dec(ctx, key, keysize)
  33478. def fz_aes_setkey_enc(ctx, key, keysize):
  33479. r"""
  33480. Class-aware wrapper for `::fz_aes_setkey_enc()`.
  33481. AES encryption initialization. Fills in the supplied context
  33482. and prepares for encryption using the given key.
  33483. Returns non-zero for error (key size other than 128/192/256).
  33484. Never throws an exception.
  33485. """
  33486. return _mupdf.fz_aes_setkey_enc(ctx, key, keysize)
  33487. def fz_alpha_from_gray(gray):
  33488. r"""Class-aware wrapper for `::fz_alpha_from_gray()`."""
  33489. return _mupdf.fz_alpha_from_gray(gray)
  33490. def fz_append_base64(out, data, size, newline):
  33491. r"""
  33492. Class-aware wrapper for `::fz_append_base64()`.
  33493. Write a base64 encoded data block, optionally with periodic newlines.
  33494. """
  33495. return _mupdf.fz_append_base64(out, data, size, newline)
  33496. def fz_append_base64_buffer(out, data, newline):
  33497. r"""
  33498. Class-aware wrapper for `::fz_append_base64_buffer()`.
  33499. Append a base64 encoded fz_buffer, optionally with periodic newlines.
  33500. """
  33501. return _mupdf.fz_append_base64_buffer(out, data, newline)
  33502. def fz_append_bits(buf, value, count):
  33503. r"""Class-aware wrapper for `::fz_append_bits()`."""
  33504. return _mupdf.fz_append_bits(buf, value, count)
  33505. def fz_append_bits_pad(buf):
  33506. r"""Class-aware wrapper for `::fz_append_bits_pad()`."""
  33507. return _mupdf.fz_append_bits_pad(buf)
  33508. def fz_append_buffer(destination, source):
  33509. r"""
  33510. Class-aware wrapper for `::fz_append_buffer()`.
  33511. Append the contents of the source buffer onto the end of the
  33512. destination buffer, extending automatically as required.
  33513. Ownership of buffers does not change.
  33514. """
  33515. return _mupdf.fz_append_buffer(destination, source)
  33516. def fz_append_byte(buf, c):
  33517. r"""Class-aware wrapper for `::fz_append_byte()`."""
  33518. return _mupdf.fz_append_byte(buf, c)
  33519. def fz_append_data(buf, data, len):
  33520. r"""
  33521. Class-aware wrapper for `::fz_append_data()`.
  33522. fz_append_*: Append data to a buffer.
  33523. The buffer will automatically grow as required.
  33524. """
  33525. return _mupdf.fz_append_data(buf, data, len)
  33526. def fz_append_image_as_data_uri(out, image):
  33527. r"""Class-aware wrapper for `::fz_append_image_as_data_uri()`."""
  33528. return _mupdf.fz_append_image_as_data_uri(out, image)
  33529. def fz_append_int16_be(buf, x):
  33530. r"""Class-aware wrapper for `::fz_append_int16_be()`."""
  33531. return _mupdf.fz_append_int16_be(buf, x)
  33532. def fz_append_int16_le(buf, x):
  33533. r"""Class-aware wrapper for `::fz_append_int16_le()`."""
  33534. return _mupdf.fz_append_int16_le(buf, x)
  33535. def fz_append_int32_be(buf, x):
  33536. r"""Class-aware wrapper for `::fz_append_int32_be()`."""
  33537. return _mupdf.fz_append_int32_be(buf, x)
  33538. def fz_append_int32_le(buf, x):
  33539. r"""Class-aware wrapper for `::fz_append_int32_le()`."""
  33540. return _mupdf.fz_append_int32_le(buf, x)
  33541. def fz_append_json(buf, value):
  33542. r"""Class-aware wrapper for `::fz_append_json()`."""
  33543. return _mupdf.fz_append_json(buf, value)
  33544. def fz_append_pdf_string(buffer, text):
  33545. r"""
  33546. Class-aware wrapper for `::fz_append_pdf_string()`.
  33547. fz_append_pdf_string: Append a string with PDF syntax quotes and
  33548. escapes.
  33549. The buffer will automatically grow as required.
  33550. """
  33551. return _mupdf.fz_append_pdf_string(buffer, text)
  33552. def fz_append_pixmap_as_data_uri(out, pixmap):
  33553. r"""Class-aware wrapper for `::fz_append_pixmap_as_data_uri()`."""
  33554. return _mupdf.fz_append_pixmap_as_data_uri(out, pixmap)
  33555. def fz_append_rune(buf, c):
  33556. r"""Class-aware wrapper for `::fz_append_rune()`."""
  33557. return _mupdf.fz_append_rune(buf, c)
  33558. def fz_append_string(buf, data):
  33559. r"""Class-aware wrapper for `::fz_append_string()`."""
  33560. return _mupdf.fz_append_string(buf, data)
  33561. def fz_arc4_encrypt(state, dest, src, len):
  33562. r"""
  33563. Class-aware wrapper for `::fz_arc4_encrypt()`.
  33564. RC4 block encrypt operation; encrypt src into dst (both of
  33565. length len) updating the RC4 state as we go.
  33566. Never throws an exception.
  33567. """
  33568. return _mupdf.fz_arc4_encrypt(state, dest, src, len)
  33569. def fz_arc4_final(state):
  33570. r"""
  33571. Class-aware wrapper for `::fz_arc4_final()`.
  33572. RC4 finalization. Zero the context.
  33573. Never throws an exception.
  33574. """
  33575. return _mupdf.fz_arc4_final(state)
  33576. def fz_arc4_init(state, key, len):
  33577. r"""
  33578. Class-aware wrapper for `::fz_arc4_init()`.
  33579. RC4 initialization. Begins an RC4 operation, writing a new
  33580. context.
  33581. Never throws an exception.
  33582. """
  33583. return _mupdf.fz_arc4_init(state, key, len)
  33584. def fz_archive_format(arch):
  33585. r"""
  33586. Class-aware wrapper for `::fz_archive_format()`.
  33587. Return a pointer to a string describing the format of the
  33588. archive.
  33589. The lifetime of the string is unspecified (in current
  33590. implementations the string will persist until the archive
  33591. is closed, but this is not guaranteed).
  33592. """
  33593. return _mupdf.fz_archive_format(arch)
  33594. def fz_atof(s):
  33595. r"""
  33596. Class-aware wrapper for `::fz_atof()`.
  33597. Range checking atof
  33598. """
  33599. return _mupdf.fz_atof(s)
  33600. def fz_atoi(s):
  33601. r"""
  33602. Class-aware wrapper for `::fz_atoi()`.
  33603. atoi that copes with NULL
  33604. """
  33605. return _mupdf.fz_atoi(s)
  33606. def fz_atoi64(s):
  33607. r"""
  33608. Class-aware wrapper for `::fz_atoi64()`.
  33609. 64bit atoi that copes with NULL
  33610. """
  33611. return _mupdf.fz_atoi64(s)
  33612. def fz_atoz(s):
  33613. r"""
  33614. Class-aware wrapper for `::fz_atoz()`.
  33615. size_t atoi that copes with NULL.
  33616. NOTE: limited to 63bits. Negative numbers
  33617. are returned as 0.
  33618. """
  33619. return _mupdf.fz_atoz(s)
  33620. def fz_authenticate_password(doc, password):
  33621. r"""
  33622. Class-aware wrapper for `::fz_authenticate_password()`.
  33623. Test if the given password can decrypt the document.
  33624. password: The password string to be checked. Some document
  33625. specifications do not specify any particular text encoding, so
  33626. neither do we.
  33627. Returns 0 for failure to authenticate, non-zero for success.
  33628. For PDF documents, further information can be given by examining
  33629. the bits in the return code.
  33630. Bit 0 => No password required
  33631. Bit 1 => User password authenticated
  33632. Bit 2 => Owner password authenticated
  33633. """
  33634. return _mupdf.fz_authenticate_password(doc, password)
  33635. def fz_autowarp_pixmap(src, points):
  33636. r"""Class-aware wrapper for `::fz_autowarp_pixmap()`."""
  33637. return _mupdf.fz_autowarp_pixmap(src, points)
  33638. def fz_available(stm, max):
  33639. r"""
  33640. Class-aware wrapper for `::fz_available()`.
  33641. Ask how many bytes are available immediately from
  33642. a given stream.
  33643. stm: The stream to read from.
  33644. max: A hint for the underlying stream; the maximum number of
  33645. bytes that we are sure we will want to read. If you do not know
  33646. this number, give 1.
  33647. Returns the number of bytes immediately available between the
  33648. read and write pointers. This number is guaranteed only to be 0
  33649. if we have hit EOF. The number of bytes returned here need have
  33650. no relation to max (could be larger, could be smaller).
  33651. """
  33652. return _mupdf.fz_available(stm, max)
  33653. def fz_barcode_type_from_string(str):
  33654. r"""
  33655. Class-aware wrapper for `::fz_barcode_type_from_string()`.
  33656. Helper function to search the above list (case insensitively)
  33657. for an exact match. Returns FZ_BARCODE_NONE if no match found.
  33658. """
  33659. return _mupdf.fz_barcode_type_from_string(str)
  33660. def fz_base_colorspace(cs):
  33661. r"""
  33662. Class-aware wrapper for `::fz_base_colorspace()`.
  33663. Get the 'base' colorspace for a colorspace.
  33664. For indexed colorspaces, this is the colorspace the index
  33665. decodes into. For all other colorspaces, it is the colorspace
  33666. itself.
  33667. The returned colorspace is 'borrowed' (i.e. no additional
  33668. references are taken or dropped).
  33669. """
  33670. return _mupdf.fz_base_colorspace(cs)
  33671. def fz_basename(path):
  33672. r"""
  33673. Class-aware wrapper for `::fz_basename()`.
  33674. Find the filename component in a path.
  33675. """
  33676. return _mupdf.fz_basename(path)
  33677. def fz_begin_group(dev, area, cs, isolated, knockout, blendmode, alpha):
  33678. r"""Class-aware wrapper for `::fz_begin_group()`."""
  33679. return _mupdf.fz_begin_group(dev, area, cs, isolated, knockout, blendmode, alpha)
  33680. def fz_begin_layer(dev, layer_name):
  33681. r"""Class-aware wrapper for `::fz_begin_layer()`."""
  33682. return _mupdf.fz_begin_layer(dev, layer_name)
  33683. def fz_begin_mask(dev, area, luminosity, colorspace, bc, color_params):
  33684. r"""Class-aware wrapper for `::fz_begin_mask()`."""
  33685. return _mupdf.fz_begin_mask(dev, area, luminosity, colorspace, bc, color_params)
  33686. def fz_begin_metatext(dev, meta, text):
  33687. r"""Class-aware wrapper for `::fz_begin_metatext()`."""
  33688. return _mupdf.fz_begin_metatext(dev, meta, text)
  33689. def fz_begin_page(wri, mediabox):
  33690. r"""
  33691. Class-aware wrapper for `::fz_begin_page()`.
  33692. Called to start the process of writing a page to
  33693. a document.
  33694. mediabox: page size rectangle in points.
  33695. Returns a borrowed fz_device to write page contents to. This
  33696. should be kept if required, and only dropped if it was kept.
  33697. """
  33698. return _mupdf.fz_begin_page(wri, mediabox)
  33699. def fz_begin_structure(dev, standard, raw, idx):
  33700. r"""Class-aware wrapper for `::fz_begin_structure()`."""
  33701. return _mupdf.fz_begin_structure(dev, standard, raw, idx)
  33702. def fz_begin_tile(dev, area, view, xstep, ystep, ctm):
  33703. r"""Class-aware wrapper for `::fz_begin_tile()`."""
  33704. return _mupdf.fz_begin_tile(dev, area, view, xstep, ystep, ctm)
  33705. def fz_begin_tile_id(dev, area, view, xstep, ystep, ctm, id):
  33706. r"""Class-aware wrapper for `::fz_begin_tile_id()`."""
  33707. return _mupdf.fz_begin_tile_id(dev, area, view, xstep, ystep, ctm, id)
  33708. def fz_begin_tile_tid(dev, area, view, xstep, ystep, ctm, id, doc_id):
  33709. r"""Class-aware wrapper for `::fz_begin_tile_tid()`."""
  33710. return _mupdf.fz_begin_tile_tid(dev, area, view, xstep, ystep, ctm, id, doc_id)
  33711. def fz_bidi_fragment_text(text, textlen, baseDir, callback, arg, flags):
  33712. r"""
  33713. Class-aware wrapper for `::fz_bidi_fragment_text()`.
  33714. This function has out-params. Python/C# wrappers look like:
  33715. `fz_bidi_fragment_text(const uint32_t *text, size_t textlen, ::fz_bidi_fragment_fn *callback, void *arg, int flags)` => ::fz_bidi_direction baseDir
  33716. Partitions the given Unicode sequence into one or more
  33717. unidirectional fragments and invokes the given callback
  33718. function for each fragment.
  33719. For example, if directionality of text is:
  33720. 0123456789
  33721. rrlllrrrrr,
  33722. we'll invoke callback with:
  33723. &text[0], length == 2
  33724. &text[2], length == 3
  33725. &text[5], length == 5
  33726. :type text: int, in
  33727. :param text: start of Unicode sequence
  33728. :type textlen: int, in
  33729. :param textlen: number of Unicodes to analyse
  33730. :type baseDir: int, in
  33731. :param baseDir: direction of paragraph (specify FZ_BIDI_NEUTRAL to force auto-detection)
  33732. :type callback: ::fz_bidi_fragment_fn, in
  33733. :param callback: function to be called for each fragment
  33734. :type arg: void, in
  33735. :param arg: data to be passed to the callback function
  33736. :type flags: int, in
  33737. :param flags: flags to control operation (see fz_bidi_flags above)
  33738. """
  33739. return _mupdf.fz_bidi_fragment_text(text, textlen, baseDir, callback, arg, flags)
  33740. def fz_bitmap_details(bitmap, w, h, n, stride):
  33741. r"""
  33742. Class-aware wrapper for `::fz_bitmap_details()`.
  33743. This function has out-params. Python/C# wrappers look like:
  33744. `fz_bitmap_details(::fz_bitmap *bitmap)` => `(int w, int h, int n, int stride)`
  33745. Retrieve details of a given bitmap.
  33746. bitmap: The bitmap to query.
  33747. w: Pointer to storage to retrieve width (or NULL).
  33748. h: Pointer to storage to retrieve height (or NULL).
  33749. n: Pointer to storage to retrieve number of color components (or
  33750. NULL).
  33751. stride: Pointer to storage to retrieve bitmap stride (or NULL).
  33752. """
  33753. return _mupdf.fz_bitmap_details(bitmap, w, h, n, stride)
  33754. def fz_blendmode_name(blendmode):
  33755. r"""
  33756. Class-aware wrapper for `::fz_blendmode_name()`.
  33757. Map from enumeration to blend mode string.
  33758. The string is static, with arbitrary lifespan.
  33759. """
  33760. return _mupdf.fz_blendmode_name(blendmode)
  33761. def fz_bound_display_list(list):
  33762. r"""
  33763. Class-aware wrapper for `::fz_bound_display_list()`.
  33764. Return the bounding box of the page recorded in a display list.
  33765. """
  33766. return _mupdf.fz_bound_display_list(list)
  33767. def fz_bound_glyph(font, gid, trm):
  33768. r"""
  33769. Class-aware wrapper for `::fz_bound_glyph()`.
  33770. Return a bbox for a given glyph in a font.
  33771. font: The font to look for the glyph in.
  33772. gid: The glyph to bound.
  33773. trm: The matrix to apply to the glyph before bounding.
  33774. Returns rectangle by value containing the bounds of the given
  33775. glyph.
  33776. """
  33777. return _mupdf.fz_bound_glyph(font, gid, trm)
  33778. def fz_bound_page(page):
  33779. r"""
  33780. Class-aware wrapper for `::fz_bound_page()`.
  33781. Determine the size of a page at 72 dpi.
  33782. """
  33783. return _mupdf.fz_bound_page(page)
  33784. def fz_bound_page_box(page, box):
  33785. r"""Class-aware wrapper for `::fz_bound_page_box()`."""
  33786. return _mupdf.fz_bound_page_box(page, box)
  33787. def fz_bound_path(path, stroke, ctm):
  33788. r"""
  33789. Class-aware wrapper for `::fz_bound_path()`.
  33790. Return a bounding rectangle for a path.
  33791. path: The path to bound.
  33792. stroke: If NULL, the bounding rectangle given is for
  33793. the filled path. If non-NULL the bounding rectangle
  33794. given is for the path stroked with the given attributes.
  33795. ctm: The matrix to apply to the path during stroking.
  33796. r: Pointer to a fz_rect which will be used to hold
  33797. the result.
  33798. Returns r, updated to contain the bounding rectangle.
  33799. """
  33800. return _mupdf.fz_bound_path(path, stroke, ctm)
  33801. def fz_bound_shade(shade, ctm):
  33802. r"""
  33803. Class-aware wrapper for `::fz_bound_shade()`.
  33804. Bound a given shading.
  33805. shade: The shade to bound.
  33806. ctm: The transform to apply to the shade before bounding.
  33807. r: Pointer to storage to put the bounds in.
  33808. Returns r, updated to contain the bounds for the shading.
  33809. """
  33810. return _mupdf.fz_bound_shade(shade, ctm)
  33811. def fz_bound_text(text, stroke, ctm):
  33812. r"""
  33813. Class-aware wrapper for `::fz_bound_text()`.
  33814. Find the bounds of a given text object.
  33815. text: The text object to find the bounds of.
  33816. stroke: Pointer to the stroke attributes (for stroked
  33817. text), or NULL (for filled text).
  33818. ctm: The matrix in use.
  33819. r: pointer to storage for the bounds.
  33820. Returns a pointer to r, which is updated to contain the
  33821. bounding box for the text object.
  33822. """
  33823. return _mupdf.fz_bound_text(text, stroke, ctm)
  33824. def fz_box_type_from_string(name):
  33825. r"""Class-aware wrapper for `::fz_box_type_from_string()`."""
  33826. return _mupdf.fz_box_type_from_string(name)
  33827. def fz_brotli_bound(size):
  33828. r"""
  33829. Class-aware wrapper for `::fz_brotli_bound()`.
  33830. Returns the upper bound on the
  33831. size of brotli compressed data of length size.
  33832. """
  33833. return _mupdf.fz_brotli_bound(size)
  33834. def fz_buffer_extract(buf, data):
  33835. r"""
  33836. Class-aware wrapper for `::fz_buffer_extract()`.
  33837. This function has out-params. Python/C# wrappers look like:
  33838. `fz_buffer_extract(::fz_buffer *buf)` => `(size_t, unsigned char *data)`
  33839. Take ownership of buffer contents.
  33840. Performs the same task as fz_buffer_storage, but ownership of
  33841. the data buffer returns with this call. The buffer is left
  33842. empty.
  33843. Note: Bad things may happen if this is called on a buffer with
  33844. multiple references that is being used from multiple threads.
  33845. data: Pointer to place to retrieve data pointer.
  33846. Returns length of stream.
  33847. """
  33848. return _mupdf.fz_buffer_extract(buf, data)
  33849. def fz_buffer_storage(buf, datap):
  33850. r"""
  33851. Class-aware wrapper for `::fz_buffer_storage()`.
  33852. This function has out-params. Python/C# wrappers look like:
  33853. `fz_buffer_storage(::fz_buffer *buf)` => `(size_t, unsigned char *datap)`
  33854. Retrieve internal memory of buffer.
  33855. datap: Output parameter that will be pointed to the data.
  33856. Returns the current size of the data in bytes.
  33857. """
  33858. return _mupdf.fz_buffer_storage(buf, datap)
  33859. def fz_calculate_font_ascender_descender(font):
  33860. r"""
  33861. Class-aware wrapper for `::fz_calculate_font_ascender_descender()`.
  33862. Ensure that a font has its ascender/descender values calculated
  33863. from the actual bbox of the glyphs.
  33864. Note, that we combine the declared values from the font (or the
  33865. default values if those are not present) with the actual bbox to
  33866. get the final result. So this can only cause ascender/descender
  33867. to move further apart!
  33868. """
  33869. return _mupdf.fz_calculate_font_ascender_descender(font)
  33870. def fz_calloc(count, size):
  33871. r"""
  33872. Class-aware wrapper for `::fz_calloc()`.
  33873. Allocate array of memory of count entries of size bytes.
  33874. Clears the memory to zero.
  33875. Throws exception in the event of failure to allocate.
  33876. """
  33877. return _mupdf.fz_calloc(count, size)
  33878. def fz_calloc_no_throw(count, size):
  33879. r"""
  33880. Class-aware wrapper for `::fz_calloc_no_throw()`.
  33881. fz_calloc equivalent that returns NULL rather than throwing
  33882. exceptions.
  33883. """
  33884. return _mupdf.fz_calloc_no_throw(count, size)
  33885. def fz_caught():
  33886. r"""
  33887. Class-aware wrapper for `::fz_caught()`.
  33888. Within an fz_catch() block, retrieve the error code for
  33889. the current exception.
  33890. This assumes no intervening use of fz_try/fz_catch.
  33891. """
  33892. return _mupdf.fz_caught()
  33893. def fz_caught_errno():
  33894. r"""Class-aware wrapper for `::fz_caught_errno()`."""
  33895. return _mupdf.fz_caught_errno()
  33896. def fz_caught_message():
  33897. r"""
  33898. Class-aware wrapper for `::fz_caught_message()`.
  33899. Within an fz_catch() block, retrieve the formatted message
  33900. string for the current exception.
  33901. This assumes no intervening use of fz_try/fz_catch.
  33902. """
  33903. return _mupdf.fz_caught_message()
  33904. def fz_chartorune(rune, str):
  33905. r"""
  33906. Class-aware wrapper for `::fz_chartorune()`.
  33907. This function has out-params. Python/C# wrappers look like:
  33908. `fz_chartorune(const char *str)` => `(int, int rune)`
  33909. UTF8 decode a single rune from a sequence of chars.
  33910. rune: Pointer to an int to assign the decoded 'rune' to.
  33911. (0xFFFD on error).
  33912. str: Pointer to a UTF8 encoded string.
  33913. Returns the number of bytes consumed.
  33914. """
  33915. return _mupdf.fz_chartorune(rune, str)
  33916. def fz_chartorunen(rune, str, n):
  33917. r"""
  33918. Class-aware wrapper for `::fz_chartorunen()`.
  33919. This function has out-params. Python/C# wrappers look like:
  33920. `fz_chartorunen(const char *str, size_t n)` => `(int, int rune)`
  33921. UTF8 decode a single rune from a sequence of chars
  33922. of given length.
  33923. rune: Pointer to an int to assign the decoded 'rune' to.
  33924. (0xFFFD on error).
  33925. str: Pointer to a UTF8 encoded string.
  33926. n: The number of bytes available at str.
  33927. Returns the number of bytes consumed.
  33928. """
  33929. return _mupdf.fz_chartorunen(rune, str, n)
  33930. def fz_clamp(x, min, max):
  33931. r"""Class-aware wrapper for `::fz_clamp()`."""
  33932. return _mupdf.fz_clamp(x, min, max)
  33933. def fz_clamp64(x, min, max):
  33934. r"""Class-aware wrapper for `::fz_clamp64()`."""
  33935. return _mupdf.fz_clamp64(x, min, max)
  33936. def fz_clamp_color(cs, _in, out):
  33937. r"""
  33938. Class-aware wrapper for `::fz_clamp_color()`.
  33939. This function has out-params. Python/C# wrappers look like:
  33940. `fz_clamp_color(::fz_colorspace *cs, const float *in)` => float out
  33941. Clamp the samples in a color to the correct ranges for a
  33942. given colorspace.
  33943. """
  33944. return _mupdf.fz_clamp_color(cs, _in, out)
  33945. def fz_clamp_location(doc, loc):
  33946. r"""
  33947. Class-aware wrapper for `::fz_clamp_location()`.
  33948. Clamps a location into valid chapter/page range. (First clamps
  33949. the chapter into range, then the page into range).
  33950. """
  33951. return _mupdf.fz_clamp_location(doc, loc)
  33952. def fz_clampd(x, min, max):
  33953. r"""Class-aware wrapper for `::fz_clampd()`."""
  33954. return _mupdf.fz_clampd(x, min, max)
  33955. def fz_clampi(x, min, max):
  33956. r"""Class-aware wrapper for `::fz_clampi()`."""
  33957. return _mupdf.fz_clampi(x, min, max)
  33958. def fz_clampp(x, min, max):
  33959. r"""Class-aware wrapper for `::fz_clampp()`."""
  33960. return _mupdf.fz_clampp(x, min, max)
  33961. def fz_classify_stext_rect(page, classification, rect):
  33962. r"""Class-aware wrapper for `::fz_classify_stext_rect()`."""
  33963. return _mupdf.fz_classify_stext_rect(page, classification, rect)
  33964. def fz_cleanname(name):
  33965. r"""
  33966. Class-aware wrapper for `::fz_cleanname()`.
  33967. rewrite path to the shortest string that names the same path.
  33968. Eliminates multiple and trailing slashes, interprets "." and
  33969. "..". Overwrites the string in place.
  33970. """
  33971. return _mupdf.fz_cleanname(name)
  33972. def fz_cleanname_strdup(name):
  33973. r"""
  33974. Class-aware wrapper for `::fz_cleanname_strdup()`.
  33975. rewrite path to the shortest string that names the same path.
  33976. Eliminates multiple and trailing slashes, interprets "." and
  33977. "..". Allocates a new string that the caller must free.
  33978. """
  33979. return _mupdf.fz_cleanname_strdup(name)
  33980. def fz_clear_bitmap(bit):
  33981. r"""
  33982. Class-aware wrapper for `::fz_clear_bitmap()`.
  33983. Set the entire bitmap to 0.
  33984. Never throws exceptions.
  33985. """
  33986. return _mupdf.fz_clear_bitmap(bit)
  33987. def fz_clear_buffer(buf):
  33988. r"""
  33989. Class-aware wrapper for `::fz_clear_buffer()`.
  33990. Empties the buffer. Storage is not freed, but is held ready
  33991. to be reused as the buffer is refilled.
  33992. Never throws exceptions.
  33993. """
  33994. return _mupdf.fz_clear_buffer(buf)
  33995. def fz_clear_pixmap(pix):
  33996. r"""
  33997. Class-aware wrapper for `::fz_clear_pixmap()`.
  33998. Sets all components (including alpha) of
  33999. all pixels in a pixmap to 0.
  34000. pix: The pixmap to clear.
  34001. """
  34002. return _mupdf.fz_clear_pixmap(pix)
  34003. def fz_clear_pixmap_rect_with_value(pix, value, r):
  34004. r"""
  34005. Class-aware wrapper for `::fz_clear_pixmap_rect_with_value()`.
  34006. Clears a subrect of a pixmap with the given value.
  34007. pix: The pixmap to clear.
  34008. value: Values in the range 0 to 255 are valid. Each component
  34009. sample for each pixel in the pixmap will be set to this value,
  34010. while alpha will always be set to 255 (non-transparent).
  34011. r: the rectangle.
  34012. """
  34013. return _mupdf.fz_clear_pixmap_rect_with_value(pix, value, r)
  34014. def fz_clear_pixmap_with_value(pix, value):
  34015. r"""
  34016. Class-aware wrapper for `::fz_clear_pixmap_with_value()`.
  34017. Clears a pixmap with the given value.
  34018. pix: The pixmap to clear.
  34019. value: Values in the range 0 to 255 are valid. Each component
  34020. sample for each pixel in the pixmap will be set to this value,
  34021. while alpha will always be set to 255 (non-transparent).
  34022. This function is horrible, and should be removed from the
  34023. API and replaced with a less magic one.
  34024. """
  34025. return _mupdf.fz_clear_pixmap_with_value(pix, value)
  34026. def fz_clip_image_mask(dev, image, ctm, scissor):
  34027. r"""Class-aware wrapper for `::fz_clip_image_mask()`."""
  34028. return _mupdf.fz_clip_image_mask(dev, image, ctm, scissor)
  34029. def fz_clip_path(dev, path, even_odd, ctm, scissor):
  34030. r"""Class-aware wrapper for `::fz_clip_path()`."""
  34031. return _mupdf.fz_clip_path(dev, path, even_odd, ctm, scissor)
  34032. def fz_clip_stroke_path(dev, path, stroke, ctm, scissor):
  34033. r"""Class-aware wrapper for `::fz_clip_stroke_path()`."""
  34034. return _mupdf.fz_clip_stroke_path(dev, path, stroke, ctm, scissor)
  34035. def fz_clip_stroke_text(dev, text, stroke, ctm, scissor):
  34036. r"""Class-aware wrapper for `::fz_clip_stroke_text()`."""
  34037. return _mupdf.fz_clip_stroke_text(dev, text, stroke, ctm, scissor)
  34038. def fz_clip_text(dev, text, ctm, scissor):
  34039. r"""Class-aware wrapper for `::fz_clip_text()`."""
  34040. return _mupdf.fz_clip_text(dev, text, ctm, scissor)
  34041. def fz_clone_buffer(buf):
  34042. r"""
  34043. Class-aware wrapper for `::fz_clone_buffer()`.
  34044. Make a new buffer, containing a copy of the data used in
  34045. the original.
  34046. """
  34047. return _mupdf.fz_clone_buffer(buf)
  34048. def fz_clone_default_colorspaces(base):
  34049. r"""
  34050. Class-aware wrapper for `::fz_clone_default_colorspaces()`.
  34051. Returns a reference to a newly cloned default colorspaces
  34052. structure.
  34053. The new clone may safely be altered without fear of race
  34054. conditions as the caller is the only reference holder.
  34055. """
  34056. return _mupdf.fz_clone_default_colorspaces(base)
  34057. def fz_clone_path(path):
  34058. r"""
  34059. Class-aware wrapper for `::fz_clone_path()`.
  34060. Clone the data for a path.
  34061. This is used in preference to fz_keep_path when a whole
  34062. new copy of a path is required, rather than just a shared
  34063. pointer. This probably indicates that the path is about to
  34064. be modified.
  34065. path: path to clone.
  34066. Throws exceptions on failure to allocate.
  34067. """
  34068. return _mupdf.fz_clone_path(path)
  34069. def fz_clone_pixmap(old):
  34070. r"""
  34071. Class-aware wrapper for `::fz_clone_pixmap()`.
  34072. Clone a pixmap, copying the pixels and associated data to new
  34073. storage.
  34074. The reference count of 'old' is unchanged.
  34075. """
  34076. return _mupdf.fz_clone_pixmap(old)
  34077. def fz_clone_pixmap_area_with_different_seps(src, bbox, dcs, seps, color_params, default_cs):
  34078. r"""Class-aware wrapper for `::fz_clone_pixmap_area_with_different_seps()`."""
  34079. return _mupdf.fz_clone_pixmap_area_with_different_seps(src, bbox, dcs, seps, color_params, default_cs)
  34080. def fz_clone_separations_for_overprint(seps):
  34081. r"""
  34082. Class-aware wrapper for `::fz_clone_separations_for_overprint()`.
  34083. Return a separations object with all the spots in the input
  34084. separations object that are set to composite, reset to be
  34085. enabled. If there ARE no spots in the object, this returns
  34086. NULL. If the object already has all its spots enabled, then
  34087. just returns another handle on the same object.
  34088. """
  34089. return _mupdf.fz_clone_separations_for_overprint(seps)
  34090. def fz_clone_stroke_state(stroke):
  34091. r"""
  34092. Class-aware wrapper for `::fz_clone_stroke_state()`.
  34093. Create an identical stroke_state structure and return a
  34094. reference to it.
  34095. stroke: The stroke state reference to clone.
  34096. Exceptions may be thrown in the event of a failure to
  34097. allocate.
  34098. """
  34099. return _mupdf.fz_clone_stroke_state(stroke)
  34100. def fz_close_band_writer(writer):
  34101. r"""
  34102. Class-aware wrapper for `::fz_close_band_writer()`.
  34103. Finishes up the output and closes the band writer. After this
  34104. call no more headers or bands may be written.
  34105. """
  34106. return _mupdf.fz_close_band_writer(writer)
  34107. def fz_close_device(dev):
  34108. r"""
  34109. Class-aware wrapper for `::fz_close_device()`.
  34110. Signal the end of input, and flush any buffered output.
  34111. This is NOT called implicitly on fz_drop_device. This
  34112. may throw exceptions.
  34113. """
  34114. return _mupdf.fz_close_device(dev)
  34115. def fz_close_document_writer(wri):
  34116. r"""
  34117. Class-aware wrapper for `::fz_close_document_writer()`.
  34118. Called to end the process of writing
  34119. pages to a document.
  34120. This writes any file level trailers required. After this
  34121. completes successfully the file is up to date and complete.
  34122. """
  34123. return _mupdf.fz_close_document_writer(wri)
  34124. def fz_close_output(arg_0):
  34125. r"""
  34126. Class-aware wrapper for `::fz_close_output()`.
  34127. Flush pending output and close an output stream.
  34128. """
  34129. return _mupdf.fz_close_output(arg_0)
  34130. def fz_close_zip_writer(zip):
  34131. r"""
  34132. Class-aware wrapper for `::fz_close_zip_writer()`.
  34133. Close the zip file for writing.
  34134. This flushes any pending data to the file. This can throw
  34135. exceptions.
  34136. """
  34137. return _mupdf.fz_close_zip_writer(zip)
  34138. def fz_closepath(path):
  34139. r"""
  34140. Class-aware wrapper for `::fz_closepath()`.
  34141. Close the current subpath.
  34142. path: The path to modify.
  34143. Throws exceptions on failure to allocate, attempting to modify
  34144. a packed path, and illegal path closes (i.e. closing a non open
  34145. path).
  34146. """
  34147. return _mupdf.fz_closepath(path)
  34148. def fz_colorspace_colorant(cs, n):
  34149. r"""
  34150. Class-aware wrapper for `::fz_colorspace_colorant()`.
  34151. Retrieve a the name for a colorant.
  34152. Returns a pointer with the same lifespan as the colorspace.
  34153. """
  34154. return _mupdf.fz_colorspace_colorant(cs, n)
  34155. def fz_colorspace_device_n_has_cmyk(cs):
  34156. r"""
  34157. Class-aware wrapper for `::fz_colorspace_device_n_has_cmyk()`.
  34158. True if DeviceN color space has cyan magenta yellow or black as
  34159. one of its colorants.
  34160. """
  34161. return _mupdf.fz_colorspace_device_n_has_cmyk(cs)
  34162. def fz_colorspace_device_n_has_only_cmyk(cs):
  34163. r"""
  34164. Class-aware wrapper for `::fz_colorspace_device_n_has_only_cmyk()`.
  34165. True if DeviceN color space has only colorants from the CMYK set.
  34166. """
  34167. return _mupdf.fz_colorspace_device_n_has_only_cmyk(cs)
  34168. def fz_colorspace_digest(cs, digest):
  34169. r"""
  34170. Class-aware wrapper for `::fz_colorspace_digest()`.
  34171. Get checksum of underlying ICC profile.
  34172. """
  34173. return _mupdf.fz_colorspace_digest(cs, digest)
  34174. def fz_colorspace_is_cmyk(cs):
  34175. r"""Class-aware wrapper for `::fz_colorspace_is_cmyk()`."""
  34176. return _mupdf.fz_colorspace_is_cmyk(cs)
  34177. def fz_colorspace_is_device(cs):
  34178. r"""Class-aware wrapper for `::fz_colorspace_is_device()`."""
  34179. return _mupdf.fz_colorspace_is_device(cs)
  34180. def fz_colorspace_is_device_cmyk(cs):
  34181. r"""Class-aware wrapper for `::fz_colorspace_is_device_cmyk()`."""
  34182. return _mupdf.fz_colorspace_is_device_cmyk(cs)
  34183. def fz_colorspace_is_device_gray(cs):
  34184. r"""Class-aware wrapper for `::fz_colorspace_is_device_gray()`."""
  34185. return _mupdf.fz_colorspace_is_device_gray(cs)
  34186. def fz_colorspace_is_device_n(cs):
  34187. r"""Class-aware wrapper for `::fz_colorspace_is_device_n()`."""
  34188. return _mupdf.fz_colorspace_is_device_n(cs)
  34189. def fz_colorspace_is_gray(cs):
  34190. r"""
  34191. Class-aware wrapper for `::fz_colorspace_is_gray()`.
  34192. Tests for particular types of colorspaces
  34193. """
  34194. return _mupdf.fz_colorspace_is_gray(cs)
  34195. def fz_colorspace_is_icc(cs):
  34196. r"""Class-aware wrapper for `::fz_colorspace_is_icc()`."""
  34197. return _mupdf.fz_colorspace_is_icc(cs)
  34198. def fz_colorspace_is_indexed(cs):
  34199. r"""Class-aware wrapper for `::fz_colorspace_is_indexed()`."""
  34200. return _mupdf.fz_colorspace_is_indexed(cs)
  34201. def fz_colorspace_is_lab(cs):
  34202. r"""Class-aware wrapper for `::fz_colorspace_is_lab()`."""
  34203. return _mupdf.fz_colorspace_is_lab(cs)
  34204. def fz_colorspace_is_lab_icc(cs):
  34205. r"""Class-aware wrapper for `::fz_colorspace_is_lab_icc()`."""
  34206. return _mupdf.fz_colorspace_is_lab_icc(cs)
  34207. def fz_colorspace_is_rgb(cs):
  34208. r"""Class-aware wrapper for `::fz_colorspace_is_rgb()`."""
  34209. return _mupdf.fz_colorspace_is_rgb(cs)
  34210. def fz_colorspace_is_subtractive(cs):
  34211. r"""
  34212. Class-aware wrapper for `::fz_colorspace_is_subtractive()`.
  34213. True for CMYK, Separation and DeviceN colorspaces.
  34214. """
  34215. return _mupdf.fz_colorspace_is_subtractive(cs)
  34216. def fz_colorspace_n(cs):
  34217. r"""
  34218. Class-aware wrapper for `::fz_colorspace_n()`.
  34219. Query the number of colorants in a colorspace.
  34220. """
  34221. return _mupdf.fz_colorspace_n(cs)
  34222. def fz_colorspace_name(cs):
  34223. r"""
  34224. Class-aware wrapper for `::fz_colorspace_name()`.
  34225. Query the name of a colorspace.
  34226. The returned string has the same lifespan as the colorspace
  34227. does. Caller should not free it.
  34228. """
  34229. return _mupdf.fz_colorspace_name(cs)
  34230. def fz_colorspace_name_colorant(cs, n, name):
  34231. r"""
  34232. Class-aware wrapper for `::fz_colorspace_name_colorant()`.
  34233. Assign a name for a given colorant in a colorspace.
  34234. Used while initially setting up a colorspace. The string is
  34235. copied into local storage, so need not be retained by the
  34236. caller.
  34237. """
  34238. return _mupdf.fz_colorspace_name_colorant(cs, n, name)
  34239. def fz_colorspace_type(cs):
  34240. r"""
  34241. Class-aware wrapper for `::fz_colorspace_type()`.
  34242. Query the type of colorspace.
  34243. """
  34244. return _mupdf.fz_colorspace_type(cs)
  34245. def fz_compare_separations(sep1, sep2):
  34246. r"""
  34247. Class-aware wrapper for `::fz_compare_separations()`.
  34248. Compare 2 separations structures (or NULLs).
  34249. Return 0 if identical, non-zero if not identical.
  34250. """
  34251. return _mupdf.fz_compare_separations(sep1, sep2)
  34252. def fz_compress_brotli(dest, compressed_length, source, source_length, level):
  34253. r"""
  34254. Class-aware wrapper for `::fz_compress_brotli()`.
  34255. This function has out-params. Python/C# wrappers look like:
  34256. `fz_compress_brotli(unsigned char *dest, const unsigned char *source, size_t source_length, ::fz_brotli_level level)` => size_t compressed_length
  34257. Compress source_length bytes of data starting
  34258. at source, into a buffer of length *destLen, starting at dest.
  34259. compressed_length will be updated on exit to contain the size
  34260. actually used.
  34261. """
  34262. return _mupdf.fz_compress_brotli(dest, compressed_length, source, source_length, level)
  34263. def fz_compress_ccitt_fax_g3(data, columns, rows, stride):
  34264. r"""
  34265. Class-aware wrapper for `::fz_compress_ccitt_fax_g3()`.
  34266. Compress bitmap data as CCITT Group 3 1D fax image.
  34267. Creates a stream assuming the default PDF parameters,
  34268. except the number of columns.
  34269. """
  34270. return _mupdf.fz_compress_ccitt_fax_g3(data, columns, rows, stride)
  34271. def fz_compress_ccitt_fax_g4(data, columns, rows, stride):
  34272. r"""
  34273. Class-aware wrapper for `::fz_compress_ccitt_fax_g4()`.
  34274. Compress bitmap data as CCITT Group 4 2D fax image.
  34275. Creates a stream assuming the default PDF parameters, except
  34276. K=-1 and the number of columns.
  34277. """
  34278. return _mupdf.fz_compress_ccitt_fax_g4(data, columns, rows, stride)
  34279. def fz_compressed_buffer_size(buffer):
  34280. r"""
  34281. Class-aware wrapper for `::fz_compressed_buffer_size()`.
  34282. Return the storage size used for a buffer and its data.
  34283. Used in implementing store handling.
  34284. Never throws exceptions.
  34285. """
  34286. return _mupdf.fz_compressed_buffer_size(buffer)
  34287. def fz_compressed_image_buffer(image):
  34288. r"""
  34289. Class-aware wrapper for `::fz_compressed_image_buffer()`.
  34290. Retrieve the underlying compressed data for an image.
  34291. Returns a pointer to the underlying data buffer for an image,
  34292. or NULL if this image is not based upon a compressed data
  34293. buffer.
  34294. This is not a reference counted structure, so no reference is
  34295. returned. Lifespan is limited to that of the image itself.
  34296. """
  34297. return _mupdf.fz_compressed_image_buffer(image)
  34298. def fz_compressed_image_type(image):
  34299. r"""
  34300. Class-aware wrapper for `::fz_compressed_image_type()`.
  34301. Return the type of a compressed image.
  34302. Any non-compressed image will have the type returned as UNKNOWN.
  34303. """
  34304. return _mupdf.fz_compressed_image_type(image)
  34305. def fz_concat(left, right):
  34306. r"""
  34307. Class-aware wrapper for `::fz_concat()`.
  34308. Multiply two matrices.
  34309. The order of the two matrices are important since matrix
  34310. multiplication is not commutative.
  34311. Returns result.
  34312. """
  34313. return _mupdf.fz_concat(left, right)
  34314. def fz_contains_rect(a, b):
  34315. r"""
  34316. Class-aware wrapper for `::fz_contains_rect()`.
  34317. Test rectangle inclusion.
  34318. Return true if a entirely contains b.
  34319. """
  34320. return _mupdf.fz_contains_rect(a, b)
  34321. def fz_convert_color(ss, sv, ds, dv, _is, params):
  34322. r"""
  34323. Class-aware wrapper for `::fz_convert_color()`.
  34324. This function has out-params. Python/C# wrappers look like:
  34325. `fz_convert_color(::fz_colorspace *ss, const float *sv, ::fz_colorspace *ds, ::fz_colorspace *is, ::fz_color_params params)` => float dv
  34326. Convert color values sv from colorspace ss into colorvalues dv
  34327. for colorspace ds, via an optional intervening space is,
  34328. respecting the given color_params.
  34329. """
  34330. return _mupdf.fz_convert_color(ss, sv, ds, dv, _is, params)
  34331. def fz_convert_error(code):
  34332. r"""
  34333. Class-aware wrapper for `::fz_convert_error()`.
  34334. This function has out-params. Python/C# wrappers look like:
  34335. `fz_convert_error()` => `(const char *, int code)`
  34336. """
  34337. return _mupdf.fz_convert_error(code)
  34338. def fz_convert_indexed_pixmap_to_base(src):
  34339. r"""
  34340. Class-aware wrapper for `::fz_convert_indexed_pixmap_to_base()`.
  34341. Convert pixmap from indexed to base colorspace.
  34342. This creates a new bitmap containing the converted pixmap data.
  34343. """
  34344. return _mupdf.fz_convert_indexed_pixmap_to_base(src)
  34345. def fz_convert_pixmap(pix, cs_des, prf, default_cs, color_params, keep_alpha):
  34346. r"""
  34347. Class-aware wrapper for `::fz_convert_pixmap()`.
  34348. Convert an existing pixmap to a desired
  34349. colorspace. Other properties of the pixmap, such as resolution
  34350. and position are copied to the converted pixmap.
  34351. pix: The pixmap to convert.
  34352. default_cs: If NULL pix->colorspace is used. It is possible that
  34353. the data may need to be interpreted as one of the color spaces
  34354. in default_cs.
  34355. cs_des: Desired colorspace, may be NULL to denote alpha-only.
  34356. prf: Proofing color space through which we need to convert.
  34357. color_params: Parameters that may be used in conversion (e.g.
  34358. ri).
  34359. keep_alpha: If 0 any alpha component is removed, otherwise
  34360. alpha is kept if present in the pixmap.
  34361. """
  34362. return _mupdf.fz_convert_pixmap(pix, cs_des, prf, default_cs, color_params, keep_alpha)
  34363. def fz_convert_separation_colors(src_cs, src_color, dst_seps, dst_cs, dst_color, color_params):
  34364. r"""
  34365. Class-aware wrapper for `::fz_convert_separation_colors()`.
  34366. This function has out-params. Python/C# wrappers look like:
  34367. `fz_convert_separation_colors(::fz_colorspace *src_cs, const float *src_color, ::fz_separations *dst_seps, ::fz_colorspace *dst_cs, ::fz_color_params color_params)` => float dst_color
  34368. Convert a color given in terms of one colorspace,
  34369. to a color in terms of another colorspace/separations.
  34370. """
  34371. return _mupdf.fz_convert_separation_colors(src_cs, src_color, dst_seps, dst_cs, dst_color, color_params)
  34372. def fz_convert_separation_pixmap_to_base(src):
  34373. r"""
  34374. Class-aware wrapper for `::fz_convert_separation_pixmap_to_base()`.
  34375. Convert pixmap from DeviceN/Separation to base colorspace.
  34376. This creates a new bitmap containing the converted pixmap data.
  34377. """
  34378. return _mupdf.fz_convert_separation_pixmap_to_base(src)
  34379. def fz_copy_option(val, dest, maxlen):
  34380. r"""
  34381. Class-aware wrapper for `::fz_copy_option()`.
  34382. Copy an option (val) into a destination buffer (dest), of maxlen
  34383. bytes.
  34384. Returns the number of bytes (including terminator) that did not
  34385. fit. If val is maxlen or greater bytes in size, it will be left
  34386. unterminated.
  34387. """
  34388. return _mupdf.fz_copy_option(val, dest, maxlen)
  34389. def fz_copy_pixmap_rect(dest, src, r, default_cs):
  34390. r"""Class-aware wrapper for `::fz_copy_pixmap_rect()`."""
  34391. return _mupdf.fz_copy_pixmap_rect(dest, src, r, default_cs)
  34392. def fz_copy_rectangle(page, area, crlf):
  34393. r"""
  34394. Class-aware wrapper for `::fz_copy_rectangle()`.
  34395. Return a newly allocated UTF-8 string with the text for a given
  34396. selection rectangle.
  34397. crlf: If true, write "\r\n" style line endings (otherwise "\n"
  34398. only).
  34399. """
  34400. return _mupdf.fz_copy_rectangle(page, area, crlf)
  34401. def fz_copy_selection(page, a, b, crlf):
  34402. r"""
  34403. Class-aware wrapper for `::fz_copy_selection()`.
  34404. Return a newly allocated UTF-8 string with the text for a given
  34405. selection.
  34406. crlf: If true, write "\r\n" style line endings (otherwise "\n"
  34407. only).
  34408. """
  34409. return _mupdf.fz_copy_selection(page, a, b, crlf)
  34410. def fz_count_active_separations(seps):
  34411. r"""
  34412. Class-aware wrapper for `::fz_count_active_separations()`.
  34413. Return the number of active separations.
  34414. """
  34415. return _mupdf.fz_count_active_separations(seps)
  34416. def fz_count_archive_entries(arch):
  34417. r"""
  34418. Class-aware wrapper for `::fz_count_archive_entries()`.
  34419. Number of entries in archive.
  34420. Will always return a value >= 0.
  34421. May throw an exception if this type of archive cannot count the
  34422. entries (such as a directory).
  34423. """
  34424. return _mupdf.fz_count_archive_entries(arch)
  34425. def fz_count_chapter_pages(doc, chapter):
  34426. r"""
  34427. Class-aware wrapper for `::fz_count_chapter_pages()`.
  34428. Return the number of pages in a chapter.
  34429. May return 0.
  34430. """
  34431. return _mupdf.fz_count_chapter_pages(doc, chapter)
  34432. def fz_count_chapters(doc):
  34433. r"""
  34434. Class-aware wrapper for `::fz_count_chapters()`.
  34435. Return the number of chapters in the document.
  34436. At least 1.
  34437. """
  34438. return _mupdf.fz_count_chapters(doc)
  34439. def fz_count_pages(doc):
  34440. r"""
  34441. Class-aware wrapper for `::fz_count_pages()`.
  34442. Return the number of pages in document
  34443. May return 0 for documents with no pages.
  34444. """
  34445. return _mupdf.fz_count_pages(doc)
  34446. def fz_count_separations(sep):
  34447. r"""Class-aware wrapper for `::fz_count_separations()`."""
  34448. return _mupdf.fz_count_separations(sep)
  34449. def fz_create_link(page, bbox, uri):
  34450. r"""
  34451. Class-aware wrapper for `::fz_create_link()`.
  34452. Create a new link on a page.
  34453. """
  34454. return _mupdf.fz_create_link(page, bbox, uri)
  34455. def fz_currentpoint(path):
  34456. r"""
  34457. Class-aware wrapper for `::fz_currentpoint()`.
  34458. Return the current point that a path has
  34459. reached or (0,0) if empty.
  34460. path: path to return the current point of.
  34461. """
  34462. return _mupdf.fz_currentpoint(path)
  34463. def fz_curveto(path, x0, y0, x1, y1, x2, y2):
  34464. r"""
  34465. Class-aware wrapper for `::fz_curveto()`.
  34466. Append a 'curveto' command to an open path. (For a
  34467. cubic bezier).
  34468. path: The path to modify.
  34469. x0, y0: The coordinates of the first control point for the
  34470. curve.
  34471. x1, y1: The coordinates of the second control point for the
  34472. curve.
  34473. x2, y2: The end coordinates for the curve.
  34474. Throws exceptions on failure to allocate, or attempting to
  34475. modify a packed path.
  34476. """
  34477. return _mupdf.fz_curveto(path, x0, y0, x1, y1, x2, y2)
  34478. def fz_curvetov(path, x1, y1, x2, y2):
  34479. r"""
  34480. Class-aware wrapper for `::fz_curvetov()`.
  34481. Append a 'curvetov' command to an open path. (For a
  34482. cubic bezier with the first control coordinate equal to
  34483. the start point).
  34484. path: The path to modify.
  34485. x1, y1: The coordinates of the second control point for the
  34486. curve.
  34487. x2, y2: The end coordinates for the curve.
  34488. Throws exceptions on failure to allocate, or attempting to
  34489. modify a packed path.
  34490. """
  34491. return _mupdf.fz_curvetov(path, x1, y1, x2, y2)
  34492. def fz_curvetoy(path, x0, y0, x2, y2):
  34493. r"""
  34494. Class-aware wrapper for `::fz_curvetoy()`.
  34495. Append a 'curvetoy' command to an open path. (For a
  34496. cubic bezier with the second control coordinate equal to
  34497. the end point).
  34498. path: The path to modify.
  34499. x0, y0: The coordinates of the first control point for the
  34500. curve.
  34501. x2, y2: The end coordinates for the curve (and the second
  34502. control coordinate).
  34503. Throws exceptions on failure to allocate, or attempting to
  34504. modify a packed path.
  34505. """
  34506. return _mupdf.fz_curvetoy(path, x0, y0, x2, y2)
  34507. def fz_debug_store(out):
  34508. r"""
  34509. Class-aware wrapper for `::fz_debug_store()`.
  34510. Output debugging information for the current state of the store
  34511. to the given output channel.
  34512. """
  34513. return _mupdf.fz_debug_store(out)
  34514. def fz_debug_xml(item, level):
  34515. r"""
  34516. Class-aware wrapper for `::fz_debug_xml()`.
  34517. Pretty-print an XML tree to stdout. (Deprecated, use
  34518. fz_output_xml in preference).
  34519. """
  34520. return _mupdf.fz_debug_xml(item, level)
  34521. def fz_decode_barcode_from_display_list(type, list, subarea, rotate):
  34522. r"""
  34523. Class-aware wrapper for `::fz_decode_barcode_from_display_list()`.
  34524. This function has out-params. Python/C# wrappers look like:
  34525. `fz_decode_barcode_from_display_list(::fz_display_list *list, ::fz_rect subarea, int rotate)` => `(char *, ::fz_barcode_type type)`
  34526. Decode a barcode from a display list.
  34527. type: NULL, or a pointer to recieve the barcode type decoded.
  34528. list: The display list to render to get the barcode.
  34529. subarea: subarea of the page to decode.
  34530. rotate: 0, 90, 180, or 270.
  34531. returns the decoded value.
  34532. """
  34533. return _mupdf.fz_decode_barcode_from_display_list(type, list, subarea, rotate)
  34534. def fz_decode_barcode_from_display_list2(type, list, subarea, rotate):
  34535. r"""
  34536. Class-aware wrapper for `::fz_decode_barcode_from_display_list2()`.
  34537. This function has out-params. Python/C# wrappers look like:
  34538. `fz_decode_barcode_from_display_list2(::fz_display_list *list, ::fz_rect subarea, int rotate)` => `(std::string, ::fz_barcode_type type)`
  34539. SWIG-friendly wrapper for fz_decode_barcode_from_display_list(),
  34540. avoiding leak of the returned string.
  34541. """
  34542. return _mupdf.fz_decode_barcode_from_display_list2(type, list, subarea, rotate)
  34543. def fz_decode_barcode_from_page(type, page, subarea, rotate):
  34544. r"""
  34545. Class-aware wrapper for `::fz_decode_barcode_from_page()`.
  34546. This function has out-params. Python/C# wrappers look like:
  34547. `fz_decode_barcode_from_page(::fz_page *page, ::fz_rect subarea, int rotate)` => `(char *, ::fz_barcode_type type)`
  34548. Decode a barcode from a page.
  34549. type: NULL, or a pointer to recieve the barcode type decoded.
  34550. page: The page to decode.
  34551. subarea: subarea of the page to decode.
  34552. rotate: 0, 90, 180, or 270.
  34553. returns the decoded value.
  34554. """
  34555. return _mupdf.fz_decode_barcode_from_page(type, page, subarea, rotate)
  34556. def fz_decode_barcode_from_page2(type, page, subarea, rotate):
  34557. r"""
  34558. Class-aware wrapper for `::fz_decode_barcode_from_page2()`.
  34559. This function has out-params. Python/C# wrappers look like:
  34560. `fz_decode_barcode_from_page2(::fz_page *page, ::fz_rect subarea, int rotate)` => `(std::string, ::fz_barcode_type type)`
  34561. SWIG-friendly wrapper for fz_decode_barcode_from_page(), avoiding
  34562. leak of the returned string.
  34563. """
  34564. return _mupdf.fz_decode_barcode_from_page2(type, page, subarea, rotate)
  34565. def fz_decode_barcode_from_pixmap(type, pix, rotate):
  34566. r"""
  34567. Class-aware wrapper for `::fz_decode_barcode_from_pixmap()`.
  34568. This function has out-params. Python/C# wrappers look like:
  34569. `fz_decode_barcode_from_pixmap(::fz_pixmap *pix, int rotate)` => `(char *, ::fz_barcode_type type)`
  34570. Decode a barcode from a pixmap.
  34571. type: NULL, or a pointer to recieve the barcode type decoded.
  34572. pix: The pixmap to decode.
  34573. rotate: 0, 90, 180, or 270.
  34574. returns the decoded value as an fz_malloced block. Should
  34575. be fz_free'd by the caller.
  34576. """
  34577. return _mupdf.fz_decode_barcode_from_pixmap(type, pix, rotate)
  34578. def fz_decode_barcode_from_pixmap2(type, pix, rotate):
  34579. r"""
  34580. Class-aware wrapper for `::fz_decode_barcode_from_pixmap2()`.
  34581. This function has out-params. Python/C# wrappers look like:
  34582. `fz_decode_barcode_from_pixmap2(::fz_pixmap *pix, int rotate)` => `(std::string, ::fz_barcode_type type)`
  34583. SWIG-friendly wrapper for fz_decode_barcode_from_pixmap(), avoiding
  34584. leak of the returned string.
  34585. """
  34586. return _mupdf.fz_decode_barcode_from_pixmap2(type, pix, rotate)
  34587. def fz_decode_tile(pix, decode):
  34588. r"""Class-aware wrapper for `::fz_decode_tile()`."""
  34589. return _mupdf.fz_decode_tile(pix, decode)
  34590. def fz_decode_uri(s):
  34591. r"""
  34592. Class-aware wrapper for `::fz_decode_uri()`.
  34593. Return a new string representing the unencoded version of the given URI.
  34594. This decodes all escape sequences except those that would result in a reserved
  34595. character that are part of the URI syntax (; / ? : @ & = + $ , #).
  34596. """
  34597. return _mupdf.fz_decode_uri(s)
  34598. def fz_decode_uri_component(s):
  34599. r"""
  34600. Class-aware wrapper for `::fz_decode_uri_component()`.
  34601. Return a new string representing the unencoded version of the given URI component.
  34602. This decodes all escape sequences!
  34603. """
  34604. return _mupdf.fz_decode_uri_component(s)
  34605. def fz_decomp_image_from_stream(stm, image, subarea, indexed, l2factor, l2extra):
  34606. r"""
  34607. Class-aware wrapper for `::fz_decomp_image_from_stream()`.
  34608. This function has out-params. Python/C# wrappers look like:
  34609. `fz_decomp_image_from_stream(::fz_stream *stm, ::fz_compressed_image *image, ::fz_irect *subarea, int indexed, int l2factor)` => `(fz_pixmap *, int l2extra)`
  34610. Decode a subarea of a compressed image. l2factor is the amount
  34611. of subsampling inbuilt to the stream (i.e. performed by the
  34612. decoder). If non NULL, l2extra is the extra amount of
  34613. subsampling that should be performed by this routine. This will
  34614. be updated on exit to the amount of subsampling that is still
  34615. required to be done.
  34616. Returns a kept reference.
  34617. """
  34618. return _mupdf.fz_decomp_image_from_stream(stm, image, subarea, indexed, l2factor, l2extra)
  34619. def fz_decouple_type3_font(font, t3doc):
  34620. r"""Class-aware wrapper for `::fz_decouple_type3_font()`."""
  34621. return _mupdf.fz_decouple_type3_font(font, t3doc)
  34622. def fz_default_cmyk(default_cs):
  34623. r"""Class-aware wrapper for `::fz_default_cmyk()`."""
  34624. return _mupdf.fz_default_cmyk(default_cs)
  34625. def fz_default_error_callback(user, message):
  34626. r"""
  34627. Class-aware wrapper for `::fz_default_error_callback()`.
  34628. FIXME: Better not to expose fz_default_error_callback, and
  34629. fz_default_warning callback and to allow 'NULL' to be used
  34630. int fz_set_xxxx_callback to mean "defaults".
  34631. FIXME: Do we need/want functions like
  34632. fz_error_callback(ctx, message) to allow callers to inject
  34633. stuff into the error/warning streams?
  34634. The default error callback. Declared publicly just so that the
  34635. error callback can be set back to this after it has been
  34636. overridden.
  34637. """
  34638. return _mupdf.fz_default_error_callback(user, message)
  34639. def fz_default_gray(default_cs):
  34640. r"""
  34641. Class-aware wrapper for `::fz_default_gray()`.
  34642. Retrieve default colorspaces (typically page local).
  34643. If default_cs is non NULL, the default is retrieved from there,
  34644. otherwise the global default is retrieved.
  34645. These return borrowed references that should not be dropped,
  34646. unless they are kept first.
  34647. """
  34648. return _mupdf.fz_default_gray(default_cs)
  34649. def fz_default_halftone(num_comps):
  34650. r"""
  34651. Class-aware wrapper for `::fz_default_halftone()`.
  34652. Create a 'default' halftone structure
  34653. for the given number of components.
  34654. num_comps: The number of components to use.
  34655. Returns a simple default halftone. The default halftone uses
  34656. the same halftone tile for each plane, which may not be ideal
  34657. for all purposes.
  34658. """
  34659. return _mupdf.fz_default_halftone(num_comps)
  34660. def fz_default_output_intent(default_cs):
  34661. r"""Class-aware wrapper for `::fz_default_output_intent()`."""
  34662. return _mupdf.fz_default_output_intent(default_cs)
  34663. def fz_default_rgb(default_cs):
  34664. r"""Class-aware wrapper for `::fz_default_rgb()`."""
  34665. return _mupdf.fz_default_rgb(default_cs)
  34666. def fz_default_warning_callback(user, message):
  34667. r"""
  34668. Class-aware wrapper for `::fz_default_warning_callback()`.
  34669. The default warning callback. Declared publicly just so that
  34670. the warning callback can be set back to this after it has been
  34671. overridden.
  34672. """
  34673. return _mupdf.fz_default_warning_callback(user, message)
  34674. def fz_defer_reap_end():
  34675. r"""
  34676. Class-aware wrapper for `::fz_defer_reap_end()`.
  34677. Decrement the defer reap count.
  34678. If the defer reap count returns to 0, and the store
  34679. has reapable objects in, a reap pass will begin.
  34680. Call this at the end of a process during which you
  34681. potentially might drop many reapable objects.
  34682. It is vital that every fz_defer_reap_start is matched
  34683. by a fz_defer_reap_end call.
  34684. """
  34685. return _mupdf.fz_defer_reap_end()
  34686. def fz_defer_reap_start():
  34687. r"""
  34688. Class-aware wrapper for `::fz_defer_reap_start()`.
  34689. Increment the defer reap count.
  34690. No reap operations will take place (except for those
  34691. triggered by an immediate failed malloc) until the
  34692. defer reap count returns to 0.
  34693. Call this at the start of a process during which you
  34694. potentially might drop many reapable objects.
  34695. It is vital that every fz_defer_reap_start is matched
  34696. by a fz_defer_reap_end call.
  34697. """
  34698. return _mupdf.fz_defer_reap_start()
  34699. def fz_deflate(dest, compressed_length, source, source_length, level):
  34700. r"""
  34701. Class-aware wrapper for `::fz_deflate()`.
  34702. This function has out-params. Python/C# wrappers look like:
  34703. `fz_deflate(unsigned char *dest, const unsigned char *source, size_t source_length, ::fz_deflate_level level)` => size_t compressed_length
  34704. Compress source_length bytes of data starting
  34705. at source, into a buffer of length *compressed_length, starting at
  34706. dest. *compressed_length will be updated on exit to contain the size
  34707. actually used.
  34708. """
  34709. return _mupdf.fz_deflate(dest, compressed_length, source, source_length, level)
  34710. def fz_deflate_bound(size):
  34711. r"""
  34712. Class-aware wrapper for `::fz_deflate_bound()`.
  34713. Returns the upper bound on the
  34714. size of flated data of length size.
  34715. """
  34716. return _mupdf.fz_deflate_bound(size)
  34717. def fz_delete_link(page, link):
  34718. r"""
  34719. Class-aware wrapper for `::fz_delete_link()`.
  34720. Delete an existing link on a page.
  34721. """
  34722. return _mupdf.fz_delete_link(page, link)
  34723. def fz_deskew_pixmap(src, degrees, border):
  34724. r"""Class-aware wrapper for `::fz_deskew_pixmap()`."""
  34725. return _mupdf.fz_deskew_pixmap(src, degrees, border)
  34726. def fz_detach_xml(node):
  34727. r"""
  34728. Class-aware wrapper for `::fz_detach_xml()`.
  34729. Detach a node from the tree, unlinking it from its parent,
  34730. and setting the document root to the node.
  34731. """
  34732. return _mupdf.fz_detach_xml(node)
  34733. def fz_detect_document(points, src):
  34734. r"""Class-aware wrapper for `::fz_detect_document()`."""
  34735. return _mupdf.fz_detect_document(points, src)
  34736. def fz_detect_skew(pixmap):
  34737. r"""Class-aware wrapper for `::fz_detect_skew()`."""
  34738. return _mupdf.fz_detect_skew(pixmap)
  34739. def fz_device_bgr():
  34740. r"""Class-aware wrapper for `::fz_device_bgr()`."""
  34741. return _mupdf.fz_device_bgr()
  34742. def fz_device_cmyk():
  34743. r"""Class-aware wrapper for `::fz_device_cmyk()`."""
  34744. return _mupdf.fz_device_cmyk()
  34745. def fz_device_current_scissor(dev):
  34746. r"""
  34747. Class-aware wrapper for `::fz_device_current_scissor()`.
  34748. Find current scissor region as tracked by the device.
  34749. """
  34750. return _mupdf.fz_device_current_scissor(dev)
  34751. def fz_device_gray():
  34752. r"""
  34753. Class-aware wrapper for `::fz_device_gray()`.
  34754. Retrieve global default colorspaces.
  34755. These return borrowed references that should not be dropped,
  34756. unless they are kept first.
  34757. """
  34758. return _mupdf.fz_device_gray()
  34759. def fz_device_lab():
  34760. r"""Class-aware wrapper for `::fz_device_lab()`."""
  34761. return _mupdf.fz_device_lab()
  34762. def fz_device_rgb():
  34763. r"""Class-aware wrapper for `::fz_device_rgb()`."""
  34764. return _mupdf.fz_device_rgb()
  34765. def fz_dirname(dir, path, dirsize):
  34766. r"""
  34767. Class-aware wrapper for `::fz_dirname()`.
  34768. extract the directory component from a path.
  34769. """
  34770. return _mupdf.fz_dirname(dir, path, dirsize)
  34771. def fz_disable_device_hints(dev, hints):
  34772. r"""
  34773. Class-aware wrapper for `::fz_disable_device_hints()`.
  34774. Disable (clear) hint bits within the hint bitfield for a device.
  34775. """
  34776. return _mupdf.fz_disable_device_hints(dev, hints)
  34777. def fz_disable_icc():
  34778. r"""
  34779. Class-aware wrapper for `::fz_disable_icc()`.
  34780. Disable icc profile based operation.
  34781. """
  34782. return _mupdf.fz_disable_icc()
  34783. def fz_display_list_is_empty(list):
  34784. r"""
  34785. Class-aware wrapper for `::fz_display_list_is_empty()`.
  34786. Check for a display list being empty
  34787. list: The list to check.
  34788. Returns true if empty, false otherwise.
  34789. """
  34790. return _mupdf.fz_display_list_is_empty(list)
  34791. def fz_div255(c, a):
  34792. r"""
  34793. Class-aware wrapper for `::fz_div255()`.
  34794. Undo alpha premultiplication.
  34795. """
  34796. return _mupdf.fz_div255(c, a)
  34797. def fz_do_always():
  34798. r"""Class-aware wrapper for `::fz_do_always()`."""
  34799. return _mupdf.fz_do_always()
  34800. def fz_do_catch():
  34801. r"""Class-aware wrapper for `::fz_do_catch()`."""
  34802. return _mupdf.fz_do_catch()
  34803. def fz_do_try():
  34804. r"""Class-aware wrapper for `::fz_do_try()`."""
  34805. return _mupdf.fz_do_try()
  34806. def fz_document_handler_open(handler, stream, accel, dir, recognize_state):
  34807. r"""
  34808. Class-aware wrapper for `::fz_document_handler_open()`. Helper for calling `fz_document_handler::open` function pointer via
  34809. Swig from Python/C#.
  34810. """
  34811. return _mupdf.fz_document_handler_open(handler, stream, accel, dir, recognize_state)
  34812. def fz_document_handler_recognize(handler, magic):
  34813. r"""
  34814. Class-aware wrapper for `::fz_document_handler_recognize()`. Helper for calling a `fz_document_handler::recognize` function
  34815. pointer via Swig from Python/C#.
  34816. """
  34817. return _mupdf.fz_document_handler_recognize(handler, magic)
  34818. def fz_document_output_intent(doc):
  34819. r"""
  34820. Class-aware wrapper for `::fz_document_output_intent()`.
  34821. Find the output intent colorspace if the document has defined
  34822. one.
  34823. Returns a borrowed reference that should not be dropped, unless
  34824. it is kept first.
  34825. """
  34826. return _mupdf.fz_document_output_intent(doc)
  34827. def fz_document_supports_accelerator(doc):
  34828. r"""
  34829. Class-aware wrapper for `::fz_document_supports_accelerator()`.
  34830. Query if the document supports the saving of accelerator data.
  34831. """
  34832. return _mupdf.fz_document_supports_accelerator(doc)
  34833. def fz_dom_add_attribute(elt, att, value):
  34834. r"""
  34835. Class-aware wrapper for `::fz_dom_add_attribute()`.
  34836. Add an attribute to an element.
  34837. Ownership of att and value remain with the caller.
  34838. """
  34839. return _mupdf.fz_dom_add_attribute(elt, att, value)
  34840. def fz_dom_append_child(parent, child):
  34841. r"""
  34842. Class-aware wrapper for `::fz_dom_append_child()`.
  34843. Insert an element as the last child of a parent, unlinking the
  34844. child from its current position if required.
  34845. """
  34846. return _mupdf.fz_dom_append_child(parent, child)
  34847. def fz_dom_attribute(elt, att):
  34848. r"""
  34849. Class-aware wrapper for `::fz_dom_attribute()`.
  34850. Retrieve the value of a given attribute from a given element.
  34851. Returns a borrowed pointer to the value or NULL if not found.
  34852. """
  34853. return _mupdf.fz_dom_attribute(elt, att)
  34854. def fz_dom_body(dom):
  34855. r"""
  34856. Class-aware wrapper for `::fz_dom_body()`.
  34857. Return a borrowed reference for the 'body' element of
  34858. the given DOM.
  34859. """
  34860. return _mupdf.fz_dom_body(dom)
  34861. def fz_dom_clone(elt):
  34862. r"""
  34863. Class-aware wrapper for `::fz_dom_clone()`.
  34864. Clone an element (and its children).
  34865. A borrowed reference to the clone is returned. The clone is not
  34866. yet linked into the DOM.
  34867. """
  34868. return _mupdf.fz_dom_clone(elt)
  34869. def fz_dom_create_element(dom, tag):
  34870. r"""
  34871. Class-aware wrapper for `::fz_dom_create_element()`.
  34872. Create an element of a given tag type for the given DOM.
  34873. The element is not linked into the DOM yet.
  34874. """
  34875. return _mupdf.fz_dom_create_element(dom, tag)
  34876. def fz_dom_create_text_node(dom, text):
  34877. r"""
  34878. Class-aware wrapper for `::fz_dom_create_text_node()`.
  34879. Create a text node for the given DOM.
  34880. The element is not linked into the DOM yet.
  34881. """
  34882. return _mupdf.fz_dom_create_text_node(dom, text)
  34883. def fz_dom_document_element(dom):
  34884. r"""
  34885. Class-aware wrapper for `::fz_dom_document_element()`.
  34886. Return a borrowed reference for the document (the top
  34887. level element) of the DOM.
  34888. """
  34889. return _mupdf.fz_dom_document_element(dom)
  34890. def fz_dom_find(elt, tag, att, match):
  34891. r"""
  34892. Class-aware wrapper for `::fz_dom_find()`.
  34893. Find the first element matching the requirements in a depth first traversal from elt.
  34894. The tagname must match tag, unless tag is NULL, when all tag names are considered to match.
  34895. If att is NULL, then all tags match.
  34896. Otherwise:
  34897. If match is NULL, then only nodes that have an att attribute match.
  34898. If match is non-NULL, then only nodes that have an att attribute that matches match match.
  34899. Returns NULL (if no match found), or a borrowed reference to the first matching element.
  34900. """
  34901. return _mupdf.fz_dom_find(elt, tag, att, match)
  34902. def fz_dom_find_next(elt, tag, att, match):
  34903. r"""
  34904. Class-aware wrapper for `::fz_dom_find_next()`.
  34905. Find the next element matching the requirements.
  34906. """
  34907. return _mupdf.fz_dom_find_next(elt, tag, att, match)
  34908. def fz_dom_first_child(elt):
  34909. r"""
  34910. Class-aware wrapper for `::fz_dom_first_child()`.
  34911. Return a borrowed reference to the first child of a node,
  34912. or NULL if there isn't one.
  34913. """
  34914. return _mupdf.fz_dom_first_child(elt)
  34915. def fz_dom_get_attribute(elt, i, att):
  34916. r"""
  34917. Class-aware wrapper for `::fz_dom_get_attribute()`.
  34918. This function has out-params. Python/C# wrappers look like:
  34919. `fz_dom_get_attribute(::fz_xml *elt, int i)` => `(const char *, const char *att)`
  34920. Enumerate through the attributes of an element.
  34921. Call with i=0,1,2,3... to enumerate attributes.
  34922. On return *att and the return value will be NULL if there are not
  34923. that many attributes to read. Otherwise, *att will be filled in
  34924. with a borrowed pointer to the attribute name, and the return
  34925. value will be a borrowed pointer to the value.
  34926. """
  34927. return _mupdf.fz_dom_get_attribute(elt, i, att)
  34928. def fz_dom_insert_after(node, new_elt):
  34929. r"""
  34930. Class-aware wrapper for `::fz_dom_insert_after()`.
  34931. Insert an element (new_elt), after another element (node),
  34932. unlinking the new_elt from its current position if required.
  34933. """
  34934. return _mupdf.fz_dom_insert_after(node, new_elt)
  34935. def fz_dom_insert_before(node, new_elt):
  34936. r"""
  34937. Class-aware wrapper for `::fz_dom_insert_before()`.
  34938. Insert an element (new_elt), before another element (node),
  34939. unlinking the new_elt from its current position if required.
  34940. """
  34941. return _mupdf.fz_dom_insert_before(node, new_elt)
  34942. def fz_dom_next(elt):
  34943. r"""
  34944. Class-aware wrapper for `::fz_dom_next()`.
  34945. Return a borrowed reference to the next sibling of a node,
  34946. or NULL if there isn't one.
  34947. """
  34948. return _mupdf.fz_dom_next(elt)
  34949. def fz_dom_parent(elt):
  34950. r"""
  34951. Class-aware wrapper for `::fz_dom_parent()`.
  34952. Return a borrowed reference to the parent of a node,
  34953. or NULL if there isn't one.
  34954. """
  34955. return _mupdf.fz_dom_parent(elt)
  34956. def fz_dom_previous(elt):
  34957. r"""
  34958. Class-aware wrapper for `::fz_dom_previous()`.
  34959. Return a borrowed reference to the previous sibling of a node,
  34960. or NULL if there isn't one.
  34961. """
  34962. return _mupdf.fz_dom_previous(elt)
  34963. def fz_dom_remove(elt):
  34964. r"""
  34965. Class-aware wrapper for `::fz_dom_remove()`.
  34966. Remove an element from the DOM. The element can be added back elsewhere
  34967. if required.
  34968. No reference counting changes for the element.
  34969. """
  34970. return _mupdf.fz_dom_remove(elt)
  34971. def fz_dom_remove_attribute(elt, att):
  34972. r"""
  34973. Class-aware wrapper for `::fz_dom_remove_attribute()`.
  34974. Remove an attribute from an element.
  34975. """
  34976. return _mupdf.fz_dom_remove_attribute(elt, att)
  34977. def fz_draw_story(story, dev, ctm):
  34978. r"""Class-aware wrapper for `::fz_draw_story()`."""
  34979. return _mupdf.fz_draw_story(story, dev, ctm)
  34980. def fz_dump_glyph_cache_stats(out):
  34981. r"""
  34982. Class-aware wrapper for `::fz_dump_glyph_cache_stats()`.
  34983. Dump debug statistics for the glyph cache.
  34984. """
  34985. return _mupdf.fz_dump_glyph_cache_stats(out)
  34986. def fz_duplicate_glyph_names_from_unicode(unicode):
  34987. r"""Class-aware wrapper for `::fz_duplicate_glyph_names_from_unicode()`."""
  34988. return _mupdf.fz_duplicate_glyph_names_from_unicode(unicode)
  34989. def fz_empty_store():
  34990. r"""
  34991. Class-aware wrapper for `::fz_empty_store()`.
  34992. Evict every item from the store.
  34993. """
  34994. return _mupdf.fz_empty_store()
  34995. def fz_enable_device_hints(dev, hints):
  34996. r"""
  34997. Class-aware wrapper for `::fz_enable_device_hints()`.
  34998. Enable (set) hint bits within the hint bitfield for a device.
  34999. """
  35000. return _mupdf.fz_enable_device_hints(dev, hints)
  35001. def fz_enable_icc():
  35002. r"""
  35003. Class-aware wrapper for `::fz_enable_icc()`.
  35004. Enable icc profile based operation.
  35005. """
  35006. return _mupdf.fz_enable_icc()
  35007. def fz_encode_character(font, unicode):
  35008. r"""
  35009. Class-aware wrapper for `::fz_encode_character()`.
  35010. Find the glyph id for a given unicode
  35011. character within a font.
  35012. font: The font to look for the unicode character in.
  35013. unicode: The unicode character to encode.
  35014. Returns the glyph id for the given unicode value, or 0 if
  35015. unknown.
  35016. """
  35017. return _mupdf.fz_encode_character(font, unicode)
  35018. def fz_encode_character_by_glyph_name(font, glyphname):
  35019. r"""
  35020. Class-aware wrapper for `::fz_encode_character_by_glyph_name()`.
  35021. Encode character.
  35022. Either by direct lookup of glyphname within a font, or, failing
  35023. that, by mapping glyphname to unicode and thence to the glyph
  35024. index within the given font.
  35025. Returns zero for type3 fonts.
  35026. """
  35027. return _mupdf.fz_encode_character_by_glyph_name(font, glyphname)
  35028. def fz_encode_character_sc(font, unicode):
  35029. r"""
  35030. Class-aware wrapper for `::fz_encode_character_sc()`.
  35031. Encode character, preferring small-caps variant if available.
  35032. font: The font to look for the unicode character in.
  35033. unicode: The unicode character to encode.
  35034. Returns the glyph id for the given unicode value, or 0 if
  35035. unknown.
  35036. """
  35037. return _mupdf.fz_encode_character_sc(font, unicode)
  35038. def fz_encode_character_with_fallback(font, unicode, script, language, out_font):
  35039. r"""
  35040. Class-aware wrapper for `::fz_encode_character_with_fallback()`.
  35041. This function has out-params. Python/C# wrappers look like:
  35042. `fz_encode_character_with_fallback(::fz_font *font, int unicode, int script, int language, ::fz_font **out_font)` => `(int)`
  35043. Find the glyph id for
  35044. a given unicode character within a font, falling back to
  35045. an alternative if not found.
  35046. font: The font to look for the unicode character in.
  35047. unicode: The unicode character to encode.
  35048. script: The script in use.
  35049. language: The language in use.
  35050. out_font: The font handle in which the given glyph represents
  35051. the requested unicode character. The caller does not own the
  35052. reference it is passed, so should call fz_keep_font if it is
  35053. not simply to be used immediately.
  35054. Returns the glyph id for the given unicode value in the supplied
  35055. font (and sets *out_font to font) if it is present. Otherwise
  35056. an alternative fallback font (based on script/language) is
  35057. searched for. If the glyph is found therein, *out_font is set
  35058. to this reference, and the glyph reference is returned. If it
  35059. cannot be found anywhere, the function returns 0.
  35060. """
  35061. return _mupdf.fz_encode_character_with_fallback(font, unicode, script, language, out_font)
  35062. def fz_encode_uri(s):
  35063. r"""
  35064. Class-aware wrapper for `::fz_encode_uri()`.
  35065. Return a new string representing the provided string encoded as a URI.
  35066. """
  35067. return _mupdf.fz_encode_uri(s)
  35068. def fz_encode_uri_component(s):
  35069. r"""
  35070. Class-aware wrapper for `::fz_encode_uri_component()`.
  35071. Return a new string representing the provided string encoded as an URI component.
  35072. This also encodes the special reserved characters (; / ? : @ & = + $ , #).
  35073. """
  35074. return _mupdf.fz_encode_uri_component(s)
  35075. def fz_encode_uri_pathname(s):
  35076. r"""
  35077. Class-aware wrapper for `::fz_encode_uri_pathname()`.
  35078. Return a new string representing the provided string encoded as an URI path name.
  35079. This also encodes the special reserved characters except /.
  35080. """
  35081. return _mupdf.fz_encode_uri_pathname(s)
  35082. def fz_end_group(dev):
  35083. r"""Class-aware wrapper for `::fz_end_group()`."""
  35084. return _mupdf.fz_end_group(dev)
  35085. def fz_end_layer(dev):
  35086. r"""Class-aware wrapper for `::fz_end_layer()`."""
  35087. return _mupdf.fz_end_layer(dev)
  35088. def fz_end_mask(dev):
  35089. r"""Class-aware wrapper for `::fz_end_mask()`."""
  35090. return _mupdf.fz_end_mask(dev)
  35091. def fz_end_mask_tr(dev, fn):
  35092. r"""Class-aware wrapper for `::fz_end_mask_tr()`."""
  35093. return _mupdf.fz_end_mask_tr(dev, fn)
  35094. def fz_end_metatext(dev):
  35095. r"""Class-aware wrapper for `::fz_end_metatext()`."""
  35096. return _mupdf.fz_end_metatext(dev)
  35097. def fz_end_page(wri):
  35098. r"""
  35099. Class-aware wrapper for `::fz_end_page()`.
  35100. Called to end the process of writing a page to a
  35101. document.
  35102. """
  35103. return _mupdf.fz_end_page(wri)
  35104. def fz_end_structure(dev):
  35105. r"""Class-aware wrapper for `::fz_end_structure()`."""
  35106. return _mupdf.fz_end_structure(dev)
  35107. def fz_end_throw_on_repair():
  35108. r"""Class-aware wrapper for `::fz_end_throw_on_repair()`."""
  35109. return _mupdf.fz_end_throw_on_repair()
  35110. def fz_end_tile(dev):
  35111. r"""Class-aware wrapper for `::fz_end_tile()`."""
  35112. return _mupdf.fz_end_tile(dev)
  35113. def fz_enumerate_font_cmap(font, cb, opaque):
  35114. r"""
  35115. Class-aware wrapper for `::fz_enumerate_font_cmap()`.
  35116. Enumerate a cmap using a callback.
  35117. """
  35118. return _mupdf.fz_enumerate_font_cmap(font, cb, opaque)
  35119. def fz_enumerate_font_cmap2(font):
  35120. r"""Class-aware wrapper for `::fz_enumerate_font_cmap2()`. SWIG-friendly wrapper for fz_enumerate_font_cmap()."""
  35121. return _mupdf.fz_enumerate_font_cmap2(font)
  35122. def fz_error_callback(user):
  35123. r"""
  35124. Class-aware wrapper for `::fz_error_callback()`.
  35125. This function has out-params. Python/C# wrappers look like:
  35126. `fz_error_callback()` => `(fz_error_cb *, void *user)`
  35127. Retrieve the currently set error callback, or NULL if none
  35128. has been set. Optionally, if user is non-NULL, the user pointer
  35129. given when the warning callback was set is also passed back to
  35130. the caller.
  35131. """
  35132. return _mupdf.fz_error_callback(user)
  35133. def fz_eval_function(func, _in, inlen, out, outlen):
  35134. r"""
  35135. Class-aware wrapper for `::fz_eval_function()`.
  35136. This function has out-params. Python/C# wrappers look like:
  35137. `fz_eval_function(::fz_function *func, const float *in, int inlen, int outlen)` => float out
  35138. """
  35139. return _mupdf.fz_eval_function(func, _in, inlen, out, outlen)
  35140. def fz_expand_irect(a, expand):
  35141. r"""Class-aware wrapper for `::fz_expand_irect()`."""
  35142. return _mupdf.fz_expand_irect(a, expand)
  35143. def fz_expand_rect(b, expand):
  35144. r"""
  35145. Class-aware wrapper for `::fz_expand_rect()`.
  35146. Expand a bbox by a given amount in all directions.
  35147. """
  35148. return _mupdf.fz_expand_rect(b, expand)
  35149. def fz_extract_ttf_from_ttc(font):
  35150. r"""Class-aware wrapper for `::fz_extract_ttf_from_ttc()`."""
  35151. return _mupdf.fz_extract_ttf_from_ttc(font)
  35152. def fz_file_exists(path):
  35153. r"""
  35154. Class-aware wrapper for `::fz_file_exists()`.
  35155. Return true if the named file exists and is readable.
  35156. """
  35157. return _mupdf.fz_file_exists(path)
  35158. def fz_fill_image(dev, image, ctm, alpha, color_params):
  35159. r"""Class-aware wrapper for `::fz_fill_image()`."""
  35160. return _mupdf.fz_fill_image(dev, image, ctm, alpha, color_params)
  35161. def fz_fill_image_mask(dev, image, ctm, colorspace, color, alpha, color_params):
  35162. r"""Class-aware wrapper for `::fz_fill_image_mask()`."""
  35163. return _mupdf.fz_fill_image_mask(dev, image, ctm, colorspace, color, alpha, color_params)
  35164. def fz_fill_path(dev, path, even_odd, ctm, colorspace, color, alpha, color_params):
  35165. r"""
  35166. Class-aware wrapper for `::fz_fill_path()`.
  35167. Device calls; graphics primitives and containers.
  35168. """
  35169. return _mupdf.fz_fill_path(dev, path, even_odd, ctm, colorspace, color, alpha, color_params)
  35170. def fz_fill_pixmap_from_display_list(list, ctm, pix):
  35171. r"""Class-aware wrapper for `::fz_fill_pixmap_from_display_list()`."""
  35172. return _mupdf.fz_fill_pixmap_from_display_list(list, ctm, pix)
  35173. def fz_fill_pixmap_with_color(pix, colorspace, color, color_params):
  35174. r"""
  35175. Class-aware wrapper for `::fz_fill_pixmap_with_color()`.
  35176. This function has out-params. Python/C# wrappers look like:
  35177. `fz_fill_pixmap_with_color(::fz_pixmap *pix, ::fz_colorspace *colorspace, ::fz_color_params color_params)` => float color
  35178. Fill pixmap with solid color.
  35179. """
  35180. return _mupdf.fz_fill_pixmap_with_color(pix, colorspace, color, color_params)
  35181. def fz_fill_shade(dev, shade, ctm, alpha, color_params):
  35182. r"""Class-aware wrapper for `::fz_fill_shade()`."""
  35183. return _mupdf.fz_fill_shade(dev, shade, ctm, alpha, color_params)
  35184. def fz_fill_text(dev, text, ctm, colorspace, color, alpha, color_params):
  35185. r"""Class-aware wrapper for `::fz_fill_text()`."""
  35186. return _mupdf.fz_fill_text(dev, text, ctm, colorspace, color, alpha, color_params)
  35187. def fz_filter_store(fn, arg, type):
  35188. r"""
  35189. Class-aware wrapper for `::fz_filter_store()`.
  35190. Filter every element in the store with a matching type with the
  35191. given function.
  35192. If the function returns 1 for an element, drop the element.
  35193. """
  35194. return _mupdf.fz_filter_store(fn, arg, type)
  35195. def fz_find_item(drop, key, type):
  35196. r"""
  35197. Class-aware wrapper for `::fz_find_item()`.
  35198. Find an item within the store.
  35199. drop: The function used to free the value (to ensure we get a
  35200. value of the correct type).
  35201. key: The key used to index the item.
  35202. type: Functions used to manipulate the key.
  35203. Returns NULL for not found, otherwise returns a pointer to the
  35204. value indexed by key to which a reference has been taken.
  35205. """
  35206. return _mupdf.fz_find_item(drop, key, type)
  35207. def fz_find_table_within_bounds(page, bounds):
  35208. r"""
  35209. Class-aware wrapper for `::fz_find_table_within_bounds()`.
  35210. Interpret the bounded contents of a given stext page as
  35211. a table.
  35212. The page contents will be rewritten to contain a Table
  35213. structure with the identified content in it.
  35214. This uses the same logic as for fz_table_hunt, without the
  35215. actual hunting. fz_table_hunt hunts to find possible bounds
  35216. for multiple tables on the page; this routine just finds a
  35217. single table contained within the given rectangle.
  35218. Returns the stext_block list that contains the content of
  35219. the table.
  35220. """
  35221. return _mupdf.fz_find_table_within_bounds(page, bounds)
  35222. def fz_flush_output(out):
  35223. r"""
  35224. Class-aware wrapper for `::fz_flush_output()`.
  35225. Flush unwritten data.
  35226. """
  35227. return _mupdf.fz_flush_output(out)
  35228. def fz_flush_warnings():
  35229. r"""
  35230. Class-aware wrapper for `::fz_flush_warnings()`.
  35231. Flush any repeated warnings.
  35232. Repeated warnings are buffered, counted and eventually printed
  35233. along with the number of repetitions. Call fz_flush_warnings
  35234. to force printing of the latest buffered warning and the
  35235. number of repetitions, for example to make sure that all
  35236. warnings are printed before exiting an application.
  35237. """
  35238. return _mupdf.fz_flush_warnings()
  35239. def fz_font_ascender(font):
  35240. r"""
  35241. Class-aware wrapper for `::fz_font_ascender()`.
  35242. Retrieve font ascender in ems.
  35243. """
  35244. return _mupdf.fz_font_ascender(font)
  35245. def fz_font_bbox(font):
  35246. r"""
  35247. Class-aware wrapper for `::fz_font_bbox()`.
  35248. Retrieve the font bbox.
  35249. font: The font to query.
  35250. Returns the font bbox by value; it is valid only if
  35251. fz_font_flags(font)->invalid_bbox is zero.
  35252. """
  35253. return _mupdf.fz_font_bbox(font)
  35254. def fz_font_descender(font):
  35255. r"""
  35256. Class-aware wrapper for `::fz_font_descender()`.
  35257. Retrieve font descender in ems.
  35258. """
  35259. return _mupdf.fz_font_descender(font)
  35260. def fz_font_digest(font, digest):
  35261. r"""
  35262. Class-aware wrapper for `::fz_font_digest()`.
  35263. Retrieve the MD5 digest for the font's data.
  35264. """
  35265. return _mupdf.fz_font_digest(font, digest)
  35266. def fz_font_ft_face(font):
  35267. r"""
  35268. Class-aware wrapper for `::fz_font_ft_face()`.
  35269. Retrieve the FT_Face handle
  35270. for the font.
  35271. font: The font to query
  35272. Returns the FT_Face handle for the font, or NULL
  35273. if not a freetype handled font. (Cast to void *
  35274. to avoid nasty header exposure).
  35275. """
  35276. return _mupdf.fz_font_ft_face(font)
  35277. def fz_font_is_bold(font):
  35278. r"""
  35279. Class-aware wrapper for `::fz_font_is_bold()`.
  35280. Query whether the font flags say that this font is bold.
  35281. """
  35282. return _mupdf.fz_font_is_bold(font)
  35283. def fz_font_is_italic(font):
  35284. r"""
  35285. Class-aware wrapper for `::fz_font_is_italic()`.
  35286. Query whether the font flags say that this font is italic.
  35287. """
  35288. return _mupdf.fz_font_is_italic(font)
  35289. def fz_font_is_monospaced(font):
  35290. r"""
  35291. Class-aware wrapper for `::fz_font_is_monospaced()`.
  35292. Query whether the font flags say that this font is monospaced.
  35293. """
  35294. return _mupdf.fz_font_is_monospaced(font)
  35295. def fz_font_is_serif(font):
  35296. r"""
  35297. Class-aware wrapper for `::fz_font_is_serif()`.
  35298. Query whether the font flags say that this font is serif.
  35299. """
  35300. return _mupdf.fz_font_is_serif(font)
  35301. def fz_font_name(font):
  35302. r"""
  35303. Class-aware wrapper for `::fz_font_name()`.
  35304. Retrieve a pointer to the name of the font.
  35305. font: The font to query.
  35306. Returns a pointer to an internal copy of the font name.
  35307. Will never be NULL, but may be the empty string.
  35308. """
  35309. return _mupdf.fz_font_name(font)
  35310. def fz_font_t3_procs(font):
  35311. r"""
  35312. Class-aware wrapper for `::fz_font_t3_procs()`.
  35313. Retrieve the Type3 procs
  35314. for a font.
  35315. font: The font to query
  35316. Returns the t3_procs pointer. Will be NULL for a
  35317. non type-3 font.
  35318. """
  35319. return _mupdf.fz_font_t3_procs(font)
  35320. def fz_format_double(fmt, value):
  35321. r"""
  35322. Class-aware wrapper for `::fz_format_double()`. Swig-friendly and typesafe way to do fz_snprintf(fmt, value). `fmt`
  35323. must end with one of 'efg' otherwise we throw an exception.
  35324. """
  35325. return _mupdf.fz_format_double(fmt, value)
  35326. def fz_format_link_uri(doc, dest):
  35327. r"""
  35328. Class-aware wrapper for `::fz_format_link_uri()`.
  35329. Format an internal link to a page number, location, and possible viewing parameters,
  35330. suitable for use with fz_create_link.
  35331. Returns a newly allocated string that the caller must free.
  35332. """
  35333. return _mupdf.fz_format_link_uri(doc, dest)
  35334. def fz_format_output_path(path, size, fmt, page):
  35335. r"""
  35336. Class-aware wrapper for `::fz_format_output_path()`.
  35337. create output file name using a template.
  35338. If the path contains %[0-9]*d, the first such pattern will be
  35339. replaced with the page number. If the template does not contain
  35340. such a pattern, the page number will be inserted before the
  35341. filename extension. If the template does not have a filename
  35342. extension, the page number will be added to the end.
  35343. """
  35344. return _mupdf.fz_format_output_path(path, size, fmt, page)
  35345. def fz_free(p):
  35346. r"""
  35347. Class-aware wrapper for `::fz_free()`.
  35348. Free a previously allocated block of memory.
  35349. fz_free(ctx, NULL) does nothing.
  35350. Never throws exceptions.
  35351. """
  35352. return _mupdf.fz_free(p)
  35353. def fz_free_aligned(p):
  35354. r"""
  35355. Class-aware wrapper for `::fz_free_aligned()`.
  35356. fz_free equivalent, for blocks allocated via fz_malloc_aligned.
  35357. """
  35358. return _mupdf.fz_free_aligned(p)
  35359. def fz_ft_lock():
  35360. r"""Class-aware wrapper for `::fz_ft_lock()`."""
  35361. return _mupdf.fz_ft_lock()
  35362. def fz_ft_lock_held():
  35363. r"""Class-aware wrapper for `::fz_ft_lock_held()`."""
  35364. return _mupdf.fz_ft_lock_held()
  35365. def fz_ft_unlock():
  35366. r"""Class-aware wrapper for `::fz_ft_unlock()`."""
  35367. return _mupdf.fz_ft_unlock()
  35368. def fz_function_size(func):
  35369. r"""Class-aware wrapper for `::fz_function_size()`."""
  35370. return _mupdf.fz_function_size(func)
  35371. def fz_gamma_pixmap(pix, gamma):
  35372. r"""
  35373. Class-aware wrapper for `::fz_gamma_pixmap()`.
  35374. Apply gamma correction to a pixmap. All components
  35375. of all pixels are modified (except alpha, which is unchanged).
  35376. gamma: The gamma value to apply; 1.0 for no change.
  35377. """
  35378. return _mupdf.fz_gamma_pixmap(pix, gamma)
  35379. def fz_generate_transition(tpix, opix, npix, time, trans):
  35380. r"""
  35381. Class-aware wrapper for `::fz_generate_transition()`.
  35382. Generate a frame of a transition.
  35383. tpix: Target pixmap
  35384. opix: Old pixmap
  35385. npix: New pixmap
  35386. time: Position within the transition (0 to 256)
  35387. trans: Transition details
  35388. Returns 1 if successfully generated a frame.
  35389. Note: Pixmaps must include alpha.
  35390. """
  35391. return _mupdf.fz_generate_transition(tpix, opix, npix, time, trans)
  35392. def fz_get_glyph_name(font, glyph, buf, size):
  35393. r"""
  35394. Class-aware wrapper for `::fz_get_glyph_name()`.
  35395. Find the name of a glyph
  35396. font: The font to look for the glyph in.
  35397. glyph: The glyph id to look for.
  35398. buf: Pointer to a buffer for the name to be inserted into.
  35399. size: The size of the buffer.
  35400. If a font contains a name table, then the name of the glyph
  35401. will be returned in the supplied buffer. Otherwise a name
  35402. is synthesised. The name will be truncated to fit in
  35403. the buffer.
  35404. """
  35405. return _mupdf.fz_get_glyph_name(font, glyph, buf, size)
  35406. def fz_get_glyph_name2(font, glyph):
  35407. r"""
  35408. Class-aware wrapper for `::fz_get_glyph_name2()`.
  35409. C++ alternative to fz_get_glyph_name() that returns information in a std::string.
  35410. """
  35411. return _mupdf.fz_get_glyph_name2(font, glyph)
  35412. def fz_get_pixmap_from_image(image, subarea, ctm, w, h):
  35413. r"""
  35414. Class-aware wrapper for `::fz_get_pixmap_from_image()`.
  35415. This function has out-params. Python/C# wrappers look like:
  35416. `fz_get_pixmap_from_image(::fz_image *image, const ::fz_irect *subarea, ::fz_matrix *ctm)` => `(fz_pixmap *, int w, int h)`
  35417. Called to get a handle to a pixmap from an image.
  35418. image: The image to retrieve a pixmap from.
  35419. subarea: The subarea of the image that we actually care about
  35420. (or NULL to indicate the whole image).
  35421. ctm: Optional, unless subarea is given. If given, then on
  35422. entry this is the transform that will be applied to the complete
  35423. image. It should be updated on exit to the transform to apply to
  35424. the given subarea of the image. This is used to calculate the
  35425. desired width/height for subsampling.
  35426. w: If non-NULL, a pointer to an int to be updated on exit to the
  35427. width (in pixels) that the scaled output will cover.
  35428. h: If non-NULL, a pointer to an int to be updated on exit to the
  35429. height (in pixels) that the scaled output will cover.
  35430. Returns a non NULL kept pixmap pointer. May throw exceptions.
  35431. """
  35432. return _mupdf.fz_get_pixmap_from_image(image, subarea, ctm, w, h)
  35433. def fz_get_unscaled_pixmap_from_image(image):
  35434. r"""
  35435. Class-aware wrapper for `::fz_get_unscaled_pixmap_from_image()`.
  35436. Calls fz_get_pixmap_from_image() with ctm, subarea, w and h all set to NULL.
  35437. """
  35438. return _mupdf.fz_get_unscaled_pixmap_from_image(image)
  35439. def fz_getopt(nargc, nargv, ostr):
  35440. r"""
  35441. Class-aware wrapper for `::fz_getopt()`.
  35442. This function has out-params. Python/C# wrappers look like:
  35443. `fz_getopt(int nargc, const char *ostr)` => `(int, char *nargv)`
  35444. Identical to fz_getopt_long, but with a NULL longopts field, signifying no long
  35445. options.
  35446. """
  35447. return _mupdf.fz_getopt(nargc, nargv, ostr)
  35448. def fz_getopt_long(nargc, nargv, ostr, longopts):
  35449. r"""
  35450. Class-aware wrapper for `::fz_getopt_long()`.
  35451. This function has out-params. Python/C# wrappers look like:
  35452. `fz_getopt_long(int nargc, const char *ostr, const ::fz_getopt_long_options *longopts)` => `(int, char *nargv)`
  35453. Simple functions/variables for use in tools.
  35454. ostr = option string. Comprises single letter options, followed by : if there
  35455. is an argument to the option.
  35456. longopts: NULL (indicating no long options), or a pointer to an array of
  35457. longoptions, terminated by an entry with option == NULL.
  35458. In the event of matching a single char option, this function will normally
  35459. return the char. The exception to this is when the option requires an
  35460. argument and none is supplied; in this case we return ':'.
  35461. In the event of matching a long option, this function returns 0, with fz_optlong
  35462. set to point to the matching option.
  35463. A long option entry may be followed with : to indicate there is an argument to the
  35464. option. If the need for an argument is specified in this way, and no argument is
  35465. given, an error will be displayed and argument processing will stop. If an argument
  35466. is given, and the long option record contains a non-null flag pointer, then the code
  35467. will decode the argument and fill in that flag pointer. Specifically,
  35468. case-insensitive matches to 'yes', 'no', 'true' and 'false' will cause a value of 0
  35469. or 1 as appropriate to be written; failing this the arg will be interpreted as a
  35470. decimal integer using atoi.
  35471. A long option entry may be followed by an list of options (e.g. myoption=foo|bar|baz)
  35472. and the option will be passed to fz_opt_from_list. The return value of that will be
  35473. placed in fz_optitem. If the return value of that function is -1, then an error will
  35474. be displayed and argument processing will stop.
  35475. In the event of reaching the end of the arg list or '--', this function returns EOF.
  35476. In the event of failing to match anything, an error is printed, and we return '?'.
  35477. If an argument is expected for the option, then fz_optarg will be returned pointing
  35478. at the start of the argument. Examples of supported argument formats: '-r500', '-r 500',
  35479. '--resolution 500', '--resolution=500'.
  35480. """
  35481. return _mupdf.fz_getopt_long(nargc, nargv, ostr, longopts)
  35482. def fz_glyph_bbox(glyph):
  35483. r"""
  35484. Class-aware wrapper for `::fz_glyph_bbox()`.
  35485. Return the bounding box of the glyph in pixels.
  35486. """
  35487. return _mupdf.fz_glyph_bbox(glyph)
  35488. def fz_glyph_bbox_no_ctx(src):
  35489. r"""Class-aware wrapper for `::fz_glyph_bbox_no_ctx()`."""
  35490. return _mupdf.fz_glyph_bbox_no_ctx(src)
  35491. def fz_glyph_cacheable(font, gid):
  35492. r"""
  35493. Class-aware wrapper for `::fz_glyph_cacheable()`.
  35494. Determine if a given glyph in a font
  35495. is cacheable. Certain glyphs in a type 3 font cannot safely
  35496. be cached, as their appearance depends on the enclosing
  35497. graphic state.
  35498. font: The font to look for the glyph in.
  35499. gif: The glyph to query.
  35500. Returns non-zero if cacheable, 0 if not.
  35501. """
  35502. return _mupdf.fz_glyph_cacheable(font, gid)
  35503. def fz_glyph_height(glyph):
  35504. r"""
  35505. Class-aware wrapper for `::fz_glyph_height()`.
  35506. Return the height of the glyph in pixels.
  35507. """
  35508. return _mupdf.fz_glyph_height(glyph)
  35509. def fz_glyph_name_from_unicode_sc(unicode):
  35510. r"""Class-aware wrapper for `::fz_glyph_name_from_unicode_sc()`."""
  35511. return _mupdf.fz_glyph_name_from_unicode_sc(unicode)
  35512. def fz_glyph_width(glyph):
  35513. r"""
  35514. Class-aware wrapper for `::fz_glyph_width()`.
  35515. Return the width of the glyph in pixels.
  35516. """
  35517. return _mupdf.fz_glyph_width(glyph)
  35518. def fz_graphics_aa_level():
  35519. r"""
  35520. Class-aware wrapper for `::fz_graphics_aa_level()`.
  35521. Get the number of bits of antialiasing we are
  35522. using for graphics. Between 0 and 8.
  35523. """
  35524. return _mupdf.fz_graphics_aa_level()
  35525. def fz_graphics_min_line_width():
  35526. r"""
  35527. Class-aware wrapper for `::fz_graphics_min_line_width()`.
  35528. Get the minimum line width to be
  35529. used for stroked lines.
  35530. min_line_width: The minimum line width to use (in pixels).
  35531. """
  35532. return _mupdf.fz_graphics_min_line_width()
  35533. def fz_gridfit_matrix(as_tiled, m):
  35534. r"""
  35535. Class-aware wrapper for `::fz_gridfit_matrix()`.
  35536. Grid fit a matrix.
  35537. as_tiled = 0 => adjust the matrix so that the image of the unit
  35538. square completely covers any pixel that was touched by the
  35539. image of the unit square under the original matrix.
  35540. as_tiled = 1 => adjust the matrix so that the corners of the
  35541. image of the unit square align with the closest integer corner
  35542. of the image of the unit square under the original matrix.
  35543. """
  35544. return _mupdf.fz_gridfit_matrix(as_tiled, m)
  35545. def fz_grisu(f, s, exp):
  35546. r"""
  35547. Class-aware wrapper for `::fz_grisu()`.
  35548. This function has out-params. Python/C# wrappers look like:
  35549. `fz_grisu(float f, char *s)` => `(int, int exp)`
  35550. """
  35551. return _mupdf.fz_grisu(f, s, exp)
  35552. def fz_grow_buffer(buf):
  35553. r"""
  35554. Class-aware wrapper for `::fz_grow_buffer()`.
  35555. Make some space within a buffer (i.e. ensure that
  35556. capacity > size).
  35557. """
  35558. return _mupdf.fz_grow_buffer(buf)
  35559. def fz_has_archive_entry(arch, name):
  35560. r"""
  35561. Class-aware wrapper for `::fz_has_archive_entry()`.
  35562. Check if entry by given name exists.
  35563. If named entry does not exist 0 will be returned, if it does
  35564. exist 1 is returned.
  35565. name: Entry name to look for, this must be an exact match to
  35566. the entry name in the archive.
  35567. """
  35568. return _mupdf.fz_has_archive_entry(arch, name)
  35569. def fz_has_option(opts, key, val):
  35570. r"""
  35571. Class-aware wrapper for `::fz_has_option()`.
  35572. This function has out-params. Python/C# wrappers look like:
  35573. `fz_has_option(const char *opts, const char *key)` => `(int, const char *val)`
  35574. Look for a given option (key) in the opts string. Return 1 if
  35575. it has it, and update *val to point to the value within opts.
  35576. """
  35577. return _mupdf.fz_has_option(opts, key, val)
  35578. def fz_has_permission(doc, p):
  35579. r"""
  35580. Class-aware wrapper for `::fz_has_permission()`.
  35581. Check permission flags on document.
  35582. """
  35583. return _mupdf.fz_has_permission(doc, p)
  35584. def fz_hash_filter(table, state, callback):
  35585. r"""
  35586. Class-aware wrapper for `::fz_hash_filter()`.
  35587. Iterate over the entries in a hash table, removing all the ones where callback returns true.
  35588. Does NOT free the value of the entry, so the caller is expected to take care of this.
  35589. """
  35590. return _mupdf.fz_hash_filter(table, state, callback)
  35591. def fz_hash_find(table, key):
  35592. r"""
  35593. Class-aware wrapper for `::fz_hash_find()`.
  35594. Search for a matching hash within the table, and return the
  35595. associated value.
  35596. """
  35597. return _mupdf.fz_hash_find(table, key)
  35598. def fz_hash_for_each(table, state, callback):
  35599. r"""
  35600. Class-aware wrapper for `::fz_hash_for_each()`.
  35601. Iterate over the entries in a hash table.
  35602. """
  35603. return _mupdf.fz_hash_for_each(table, state, callback)
  35604. def fz_hash_insert(table, key, val):
  35605. r"""
  35606. Class-aware wrapper for `::fz_hash_insert()`.
  35607. Insert a new key/value pair into the hash table.
  35608. If an existing entry with the same key is found, no change is
  35609. made to the hash table, and a pointer to the existing value is
  35610. returned.
  35611. If no existing entry with the same key is found, ownership of
  35612. val passes in, key is copied, and NULL is returned.
  35613. """
  35614. return _mupdf.fz_hash_insert(table, key, val)
  35615. def fz_hash_remove(table, key):
  35616. r"""
  35617. Class-aware wrapper for `::fz_hash_remove()`.
  35618. Remove the entry for a given key.
  35619. The value is NOT freed, so the caller is expected to take care
  35620. of this.
  35621. """
  35622. return _mupdf.fz_hash_remove(table, key)
  35623. def fz_hb_lock():
  35624. r"""
  35625. Class-aware wrapper for `::fz_hb_lock()`.
  35626. Lock against Harfbuzz being called
  35627. simultaneously in several threads. This reuses
  35628. FZ_LOCK_FREETYPE.
  35629. """
  35630. return _mupdf.fz_hb_lock()
  35631. def fz_hb_unlock():
  35632. r"""
  35633. Class-aware wrapper for `::fz_hb_unlock()`.
  35634. Unlock after a Harfbuzz call. This reuses
  35635. FZ_LOCK_FREETYPE.
  35636. """
  35637. return _mupdf.fz_hb_unlock()
  35638. def fz_highlight_selection(page, a, b, quads, max_quads):
  35639. r"""
  35640. Class-aware wrapper for `::fz_highlight_selection()`.
  35641. Return a list of quads to highlight lines inside the selection
  35642. points.
  35643. """
  35644. return _mupdf.fz_highlight_selection(page, a, b, quads, max_quads)
  35645. def fz_highlight_selection2(page, a, b, max_quads):
  35646. r"""
  35647. Class-aware wrapper for `::fz_highlight_selection2()`.
  35648. C++ alternative to fz_highlight_selection() that returns quads in a
  35649. std::vector.
  35650. """
  35651. return _mupdf.fz_highlight_selection2(page, a, b, max_quads)
  35652. def fz_ignore_error():
  35653. r"""Class-aware wrapper for `::fz_ignore_error()`."""
  35654. return _mupdf.fz_ignore_error()
  35655. def fz_ignore_text(dev, text, ctm):
  35656. r"""Class-aware wrapper for `::fz_ignore_text()`."""
  35657. return _mupdf.fz_ignore_text(dev, text, ctm)
  35658. def fz_image_orientation(image):
  35659. r"""
  35660. Class-aware wrapper for `::fz_image_orientation()`.
  35661. Request the natural orientation of an image.
  35662. This is for images (such as JPEG) that can contain internal
  35663. specifications of rotation/flips. This is ignored by all the
  35664. internal decode/rendering routines, but can be used by callers
  35665. (such as the image document handler) to respect such
  35666. specifications.
  35667. The values used by MuPDF are as follows, with the equivalent
  35668. Exif specifications given for information:
  35669. 0: Undefined
  35670. 1: 0 degree ccw rotation. (Exif = 1)
  35671. 2: 90 degree ccw rotation. (Exif = 8)
  35672. 3: 180 degree ccw rotation. (Exif = 3)
  35673. 4: 270 degree ccw rotation. (Exif = 6)
  35674. 5: flip on X. (Exif = 2)
  35675. 6: flip on X, then rotate ccw by 90 degrees. (Exif = 5)
  35676. 7: flip on X, then rotate ccw by 180 degrees. (Exif = 4)
  35677. 8: flip on X, then rotate ccw by 270 degrees. (Exif = 7)
  35678. """
  35679. return _mupdf.fz_image_orientation(image)
  35680. def fz_image_orientation_matrix(image):
  35681. r"""Class-aware wrapper for `::fz_image_orientation_matrix()`."""
  35682. return _mupdf.fz_image_orientation_matrix(image)
  35683. def fz_image_resolution(image, xres, yres):
  35684. r"""
  35685. Class-aware wrapper for `::fz_image_resolution()`.
  35686. This function has out-params. Python/C# wrappers look like:
  35687. `fz_image_resolution(::fz_image *image)` => `(int xres, int yres)`
  35688. Request the natural resolution
  35689. of an image.
  35690. xres, yres: Pointers to ints to be updated with the
  35691. natural resolution of an image (or a sensible default
  35692. if not encoded).
  35693. """
  35694. return _mupdf.fz_image_resolution(image, xres, yres)
  35695. def fz_image_size(im):
  35696. r"""
  35697. Class-aware wrapper for `::fz_image_size()`.
  35698. Return the size of the storage used by an image.
  35699. """
  35700. return _mupdf.fz_image_size(im)
  35701. def fz_image_type_name(type):
  35702. r"""
  35703. Class-aware wrapper for `::fz_image_type_name()`.
  35704. Map from FZ_IMAGE_* value to string.
  35705. The returned string is static and therefore must not be freed.
  35706. """
  35707. return _mupdf.fz_image_type_name(type)
  35708. def fz_include_point_in_rect(r, p):
  35709. r"""
  35710. Class-aware wrapper for `::fz_include_point_in_rect()`.
  35711. Expand a bbox to include a given point.
  35712. To create a rectangle that encompasses a sequence of points, the
  35713. rectangle must first be set to be the empty rectangle at one of
  35714. the points before including the others.
  35715. """
  35716. return _mupdf.fz_include_point_in_rect(r, p)
  35717. def fz_init_text_decoder(dec, encoding):
  35718. r"""Class-aware wrapper for `::fz_init_text_decoder()`."""
  35719. return _mupdf.fz_init_text_decoder(dec, encoding)
  35720. def fz_install_load_system_font_funcs(f, f_cjk, f_fallback):
  35721. r"""
  35722. Class-aware wrapper for `::fz_install_load_system_font_funcs()`.
  35723. Install functions to allow MuPDF to request fonts from the
  35724. system.
  35725. Only one set of hooks can be in use at a time.
  35726. """
  35727. return _mupdf.fz_install_load_system_font_funcs(f, f_cjk, f_fallback)
  35728. def fz_install_load_system_font_funcs2(args):
  35729. r"""
  35730. Class-aware wrapper for `::fz_install_load_system_font_funcs2()`.
  35731. Alternative to fz_install_load_system_font_funcs() that takes args in a
  35732. struct, to allow use from Python/C# via Swig Directors.
  35733. """
  35734. return _mupdf.fz_install_load_system_font_funcs2(args)
  35735. def fz_int2_heap_debug(heap):
  35736. r"""Class-aware wrapper for `::fz_int2_heap_debug()`."""
  35737. return _mupdf.fz_int2_heap_debug(heap)
  35738. def fz_int2_heap_dump(out, heap):
  35739. r"""Class-aware wrapper for `::fz_int2_heap_dump()`."""
  35740. return _mupdf.fz_int2_heap_dump(out, heap)
  35741. def fz_int2_heap_insert(heap, v):
  35742. r"""Class-aware wrapper for `::fz_int2_heap_insert()`."""
  35743. return _mupdf.fz_int2_heap_insert(heap, v)
  35744. def fz_int2_heap_sort(heap):
  35745. r"""Class-aware wrapper for `::fz_int2_heap_sort()`."""
  35746. return _mupdf.fz_int2_heap_sort(heap)
  35747. def fz_int2_heap_uniq(heap):
  35748. r"""Class-aware wrapper for `::fz_int2_heap_uniq()`."""
  35749. return _mupdf.fz_int2_heap_uniq(heap)
  35750. def fz_int_heap_debug(heap):
  35751. r"""Class-aware wrapper for `::fz_int_heap_debug()`."""
  35752. return _mupdf.fz_int_heap_debug(heap)
  35753. def fz_int_heap_dump(out, heap):
  35754. r"""Class-aware wrapper for `::fz_int_heap_dump()`."""
  35755. return _mupdf.fz_int_heap_dump(out, heap)
  35756. def fz_int_heap_insert(heap, v):
  35757. r"""Class-aware wrapper for `::fz_int_heap_insert()`."""
  35758. return _mupdf.fz_int_heap_insert(heap, v)
  35759. def fz_int_heap_sort(heap):
  35760. r"""Class-aware wrapper for `::fz_int_heap_sort()`."""
  35761. return _mupdf.fz_int_heap_sort(heap)
  35762. def fz_int_heap_uniq(heap):
  35763. r"""Class-aware wrapper for `::fz_int_heap_uniq()`."""
  35764. return _mupdf.fz_int_heap_uniq(heap)
  35765. def fz_intersect_irect(a, b):
  35766. r"""
  35767. Class-aware wrapper for `::fz_intersect_irect()`.
  35768. Compute intersection of two bounding boxes.
  35769. Similar to fz_intersect_rect but operates on two bounding
  35770. boxes instead of two rectangles.
  35771. """
  35772. return _mupdf.fz_intersect_irect(a, b)
  35773. def fz_intersect_rect(a, b):
  35774. r"""
  35775. Class-aware wrapper for `::fz_intersect_rect()`.
  35776. Compute intersection of two rectangles.
  35777. Given two rectangles, update the first to be the smallest
  35778. axis-aligned rectangle that covers the area covered by both
  35779. given rectangles. If either rectangle is empty then the
  35780. intersection is also empty. If either rectangle is infinite
  35781. then the intersection is simply the non-infinite rectangle.
  35782. Should both rectangles be infinite, then the intersection is
  35783. also infinite.
  35784. """
  35785. return _mupdf.fz_intersect_rect(a, b)
  35786. def fz_intptr_heap_debug(heap):
  35787. r"""Class-aware wrapper for `::fz_intptr_heap_debug()`."""
  35788. return _mupdf.fz_intptr_heap_debug(heap)
  35789. def fz_intptr_heap_dump(out, heap):
  35790. r"""Class-aware wrapper for `::fz_intptr_heap_dump()`."""
  35791. return _mupdf.fz_intptr_heap_dump(out, heap)
  35792. def fz_intptr_heap_insert(heap, v):
  35793. r"""Class-aware wrapper for `::fz_intptr_heap_insert()`."""
  35794. return _mupdf.fz_intptr_heap_insert(heap, v)
  35795. def fz_intptr_heap_sort(heap):
  35796. r"""Class-aware wrapper for `::fz_intptr_heap_sort()`."""
  35797. return _mupdf.fz_intptr_heap_sort(heap)
  35798. def fz_intptr_heap_uniq(heap):
  35799. r"""Class-aware wrapper for `::fz_intptr_heap_uniq()`."""
  35800. return _mupdf.fz_intptr_heap_uniq(heap)
  35801. def fz_invert_bitmap(bmp):
  35802. r"""
  35803. Class-aware wrapper for `::fz_invert_bitmap()`.
  35804. Invert bitmap.
  35805. Never throws exceptions.
  35806. """
  35807. return _mupdf.fz_invert_bitmap(bmp)
  35808. def fz_invert_matrix(matrix):
  35809. r"""
  35810. Class-aware wrapper for `::fz_invert_matrix()`.
  35811. Create an inverse matrix.
  35812. matrix: Matrix to invert. A degenerate matrix, where the
  35813. determinant is equal to zero, can not be inverted and the
  35814. original matrix is returned instead.
  35815. Returns inverse.
  35816. """
  35817. return _mupdf.fz_invert_matrix(matrix)
  35818. def fz_invert_pixmap(pix):
  35819. r"""
  35820. Class-aware wrapper for `::fz_invert_pixmap()`.
  35821. Invert all the pixels in a pixmap. All components (process and
  35822. spots) of all pixels are inverted (except alpha, which is
  35823. unchanged).
  35824. """
  35825. return _mupdf.fz_invert_pixmap(pix)
  35826. def fz_invert_pixmap_alpha(pix):
  35827. r"""
  35828. Class-aware wrapper for `::fz_invert_pixmap_alpha()`.
  35829. Invert the alpha of all the pixels in a pixmap.
  35830. """
  35831. return _mupdf.fz_invert_pixmap_alpha(pix)
  35832. def fz_invert_pixmap_luminance(pix):
  35833. r"""
  35834. Class-aware wrapper for `::fz_invert_pixmap_luminance()`.
  35835. Transform the pixels in a pixmap so that luminance of each
  35836. pixel is inverted, and the chrominance remains unchanged (as
  35837. much as accuracy allows).
  35838. All components of all pixels are inverted (except alpha, which
  35839. is unchanged). Only supports Grey and RGB bitmaps.
  35840. """
  35841. return _mupdf.fz_invert_pixmap_luminance(pix)
  35842. def fz_invert_pixmap_raw(pix):
  35843. r"""
  35844. Class-aware wrapper for `::fz_invert_pixmap_raw()`.
  35845. Invert all the pixels in a non-premultiplied pixmap in a
  35846. very naive manner.
  35847. """
  35848. return _mupdf.fz_invert_pixmap_raw(pix)
  35849. def fz_invert_pixmap_rect(image, rect):
  35850. r"""
  35851. Class-aware wrapper for `::fz_invert_pixmap_rect()`.
  35852. Invert all the pixels in a given rectangle of a (premultiplied)
  35853. pixmap. All components of all pixels in the rectangle are
  35854. inverted (except alpha, which is unchanged).
  35855. """
  35856. return _mupdf.fz_invert_pixmap_rect(image, rect)
  35857. def fz_irect_from_rect(rect):
  35858. r"""
  35859. Class-aware wrapper for `::fz_irect_from_rect()`.
  35860. Convert a rect into the minimal bounding box
  35861. that covers the rectangle.
  35862. Coordinates in a bounding box are integers, so rounding of the
  35863. rects coordinates takes place. The top left corner is rounded
  35864. upwards and left while the bottom right corner is rounded
  35865. downwards and to the right.
  35866. """
  35867. return _mupdf.fz_irect_from_rect(rect)
  35868. def fz_irect_height(r):
  35869. r"""
  35870. Class-aware wrapper for `::fz_irect_height()`.
  35871. Return the height of an irect. Invalid irects return 0.
  35872. """
  35873. return _mupdf.fz_irect_height(r)
  35874. def fz_irect_width(r):
  35875. r"""
  35876. Class-aware wrapper for `::fz_irect_width()`.
  35877. Return the width of an irect. Invalid irects return 0.
  35878. """
  35879. return _mupdf.fz_irect_width(r)
  35880. def fz_is_cfb_archive(file):
  35881. r"""
  35882. Class-aware wrapper for `::fz_is_cfb_archive()`.
  35883. Detect if stream object is a cfb archive.
  35884. Assumes that the stream object is seekable.
  35885. """
  35886. return _mupdf.fz_is_cfb_archive(file)
  35887. def fz_is_directory(path):
  35888. r"""
  35889. Class-aware wrapper for `::fz_is_directory()`.
  35890. Determine if a given path is a directory.
  35891. In the case of the path not existing, or having no access
  35892. we will return 0.
  35893. """
  35894. return _mupdf.fz_is_directory(path)
  35895. def fz_is_document_reflowable(doc):
  35896. r"""
  35897. Class-aware wrapper for `::fz_is_document_reflowable()`.
  35898. Is the document reflowable.
  35899. Returns 1 to indicate reflowable documents, otherwise 0.
  35900. """
  35901. return _mupdf.fz_is_document_reflowable(doc)
  35902. def fz_is_empty_irect(r):
  35903. r"""Class-aware wrapper for `::fz_is_empty_irect()`."""
  35904. return _mupdf.fz_is_empty_irect(r)
  35905. def fz_is_empty_quad(q):
  35906. r"""
  35907. Class-aware wrapper for `::fz_is_empty_quad()`.
  35908. Is a quad empty?
  35909. """
  35910. return _mupdf.fz_is_empty_quad(q)
  35911. def fz_is_empty_rect(r):
  35912. r"""
  35913. Class-aware wrapper for `::fz_is_empty_rect()`.
  35914. Check if rectangle is empty.
  35915. An empty rectangle is defined as one whose area is zero.
  35916. All invalid rectangles are empty.
  35917. """
  35918. return _mupdf.fz_is_empty_rect(r)
  35919. def fz_is_eof(stm):
  35920. r"""
  35921. Class-aware wrapper for `::fz_is_eof()`.
  35922. Query if the stream has reached EOF (during normal bytewise
  35923. reading).
  35924. See fz_is_eof_bits for the equivalent function for bitwise
  35925. reading.
  35926. """
  35927. return _mupdf.fz_is_eof(stm)
  35928. def fz_is_eof_bits(stm):
  35929. r"""
  35930. Class-aware wrapper for `::fz_is_eof_bits()`.
  35931. Query if the stream has reached EOF (during bitwise
  35932. reading).
  35933. See fz_is_eof for the equivalent function for bytewise
  35934. reading.
  35935. """
  35936. return _mupdf.fz_is_eof_bits(stm)
  35937. def fz_is_external_link(uri):
  35938. r"""
  35939. Class-aware wrapper for `::fz_is_external_link()`.
  35940. Query whether a link is external to a document (determined by
  35941. uri containing a ':', intended to match with '://' which
  35942. separates the scheme from the scheme specific parts in URIs).
  35943. """
  35944. return _mupdf.fz_is_external_link(uri)
  35945. def fz_is_identity(m):
  35946. r"""Class-aware wrapper for `::fz_is_identity()`."""
  35947. return _mupdf.fz_is_identity(m)
  35948. def fz_is_infinite_irect(r):
  35949. r"""
  35950. Class-aware wrapper for `::fz_is_infinite_irect()`.
  35951. Check if an integer rectangle
  35952. is infinite.
  35953. """
  35954. return _mupdf.fz_is_infinite_irect(r)
  35955. def fz_is_infinite_quad(q):
  35956. r"""
  35957. Class-aware wrapper for `::fz_is_infinite_quad()`.
  35958. Is a quad infinite?
  35959. """
  35960. return _mupdf.fz_is_infinite_quad(q)
  35961. def fz_is_infinite_rect(r):
  35962. r"""
  35963. Class-aware wrapper for `::fz_is_infinite_rect()`.
  35964. Check if rectangle is infinite.
  35965. """
  35966. return _mupdf.fz_is_infinite_rect(r)
  35967. def fz_is_irect_inside_irect(inner, outer):
  35968. r"""
  35969. Class-aware wrapper for `::fz_is_irect_inside_irect()`.
  35970. Inclusion test for irects.
  35971. rects are assumed to be both open or both closed.
  35972. No invalid rect can include any other rect.
  35973. No invalid rect can be included by any rect.
  35974. Empty (point) rects can include themselves.
  35975. Empty (line) rects can include many (subline) rects.
  35976. """
  35977. return _mupdf.fz_is_irect_inside_irect(inner, outer)
  35978. def fz_is_libarchive_archive(file):
  35979. r"""
  35980. Class-aware wrapper for `::fz_is_libarchive_archive()`.
  35981. Detect if stream object is an archive supported by libarchive.
  35982. Assumes that the stream object is seekable.
  35983. """
  35984. return _mupdf.fz_is_libarchive_archive(file)
  35985. def fz_is_lossy_image(image):
  35986. r"""Class-aware wrapper for `::fz_is_lossy_image()`."""
  35987. return _mupdf.fz_is_lossy_image(image)
  35988. def fz_is_page_range(s):
  35989. r"""
  35990. Class-aware wrapper for `::fz_is_page_range()`.
  35991. Check and parse string into page ranges:
  35992. ,?(-?+|N)(-(-?+|N))?/
  35993. """
  35994. return _mupdf.fz_is_page_range(s)
  35995. def fz_is_pixmap_monochrome(pixmap):
  35996. r"""
  35997. Class-aware wrapper for `::fz_is_pixmap_monochrome()`.
  35998. Check if the pixmap is a 1-channel image containing samples with
  35999. only values 0 and 255
  36000. """
  36001. return _mupdf.fz_is_pixmap_monochrome(pixmap)
  36002. def fz_is_point_inside_irect(x, y, r):
  36003. r"""
  36004. Class-aware wrapper for `::fz_is_point_inside_irect()`.
  36005. Inclusion test for irects. (Rect is assumed to be open, i.e.
  36006. top right corner is not included).
  36007. """
  36008. return _mupdf.fz_is_point_inside_irect(x, y, r)
  36009. def fz_is_point_inside_quad(p, q):
  36010. r"""
  36011. Class-aware wrapper for `::fz_is_point_inside_quad()`.
  36012. Inclusion test for quads.
  36013. """
  36014. return _mupdf.fz_is_point_inside_quad(p, q)
  36015. def fz_is_point_inside_rect(p, r):
  36016. r"""
  36017. Class-aware wrapper for `::fz_is_point_inside_rect()`.
  36018. Inclusion test for rects. (Rect is assumed to be open, i.e.
  36019. top right corner is not included).
  36020. """
  36021. return _mupdf.fz_is_point_inside_rect(p, r)
  36022. def fz_is_pow2(a):
  36023. r"""Class-aware wrapper for `::fz_is_pow2()`."""
  36024. return _mupdf.fz_is_pow2(a)
  36025. def fz_is_quad_inside_quad(needle, haystack):
  36026. r"""
  36027. Class-aware wrapper for `::fz_is_quad_inside_quad()`.
  36028. Inclusion test for quad in quad.
  36029. This may break down if quads are not 'well formed'.
  36030. """
  36031. return _mupdf.fz_is_quad_inside_quad(needle, haystack)
  36032. def fz_is_quad_intersecting_quad(a, b):
  36033. r"""
  36034. Class-aware wrapper for `::fz_is_quad_intersecting_quad()`.
  36035. Intersection test for quads.
  36036. This may break down if quads are not 'well formed'.
  36037. """
  36038. return _mupdf.fz_is_quad_intersecting_quad(a, b)
  36039. def fz_is_rect_inside_rect(inner, outer):
  36040. r"""
  36041. Class-aware wrapper for `::fz_is_rect_inside_rect()`.
  36042. Inclusion test for rects.
  36043. rects are assumed to be both open or both closed.
  36044. No invalid rect can include any other rect.
  36045. No invalid rect can be included by any rect.
  36046. Empty (point) rects can include themselves.
  36047. Empty (line) rects can include many (subline) rects.
  36048. """
  36049. return _mupdf.fz_is_rect_inside_rect(inner, outer)
  36050. def fz_is_rectilinear(m):
  36051. r"""
  36052. Class-aware wrapper for `::fz_is_rectilinear()`.
  36053. Check if a transformation is rectilinear.
  36054. Rectilinear means that no shearing is present and that any
  36055. rotations present are a multiple of 90 degrees. Usually this
  36056. is used to make sure that axis-aligned rectangles before the
  36057. transformation are still axis-aligned rectangles afterwards.
  36058. """
  36059. return _mupdf.fz_is_rectilinear(m)
  36060. def fz_is_tar_archive(file):
  36061. r"""
  36062. Class-aware wrapper for `::fz_is_tar_archive()`.
  36063. Detect if stream object is a tar archive.
  36064. Assumes that the stream object is seekable.
  36065. """
  36066. return _mupdf.fz_is_tar_archive(file)
  36067. def fz_is_valid_blend_colorspace(cs):
  36068. r"""
  36069. Class-aware wrapper for `::fz_is_valid_blend_colorspace()`.
  36070. Check to see that a colorspace is appropriate to be used as
  36071. a blending space (i.e. only grey, rgb or cmyk).
  36072. """
  36073. return _mupdf.fz_is_valid_blend_colorspace(cs)
  36074. def fz_is_valid_irect(r):
  36075. r"""
  36076. Class-aware wrapper for `::fz_is_valid_irect()`.
  36077. Check if an integer rectangle is valid.
  36078. """
  36079. return _mupdf.fz_is_valid_irect(r)
  36080. def fz_is_valid_quad(q):
  36081. r"""
  36082. Class-aware wrapper for `::fz_is_valid_quad()`.
  36083. Is a quad valid?
  36084. """
  36085. return _mupdf.fz_is_valid_quad(q)
  36086. def fz_is_valid_rect(r):
  36087. r"""
  36088. Class-aware wrapper for `::fz_is_valid_rect()`.
  36089. Check if rectangle is valid.
  36090. """
  36091. return _mupdf.fz_is_valid_rect(r)
  36092. def fz_is_valid_xml_char(c):
  36093. r"""Class-aware wrapper for `::fz_is_valid_xml_char()`."""
  36094. return _mupdf.fz_is_valid_xml_char(c)
  36095. def fz_is_valid_xml_string(s):
  36096. r"""Class-aware wrapper for `::fz_is_valid_xml_string()`."""
  36097. return _mupdf.fz_is_valid_xml_string(s)
  36098. def fz_is_zip_archive(file):
  36099. r"""
  36100. Class-aware wrapper for `::fz_is_zip_archive()`.
  36101. Detect if stream object is a zip archive.
  36102. Assumes that the stream object is seekable.
  36103. """
  36104. return _mupdf.fz_is_zip_archive(file)
  36105. def fz_iso8859_1_from_unicode(u):
  36106. r"""Class-aware wrapper for `::fz_iso8859_1_from_unicode()`."""
  36107. return _mupdf.fz_iso8859_1_from_unicode(u)
  36108. def fz_iso8859_7_from_unicode(u):
  36109. r"""Class-aware wrapper for `::fz_iso8859_7_from_unicode()`."""
  36110. return _mupdf.fz_iso8859_7_from_unicode(u)
  36111. def fz_jbig2_globals_data(globals):
  36112. r"""
  36113. Class-aware wrapper for `::fz_jbig2_globals_data()`.
  36114. Return buffer containing jbig2 globals data stream.
  36115. """
  36116. return _mupdf.fz_jbig2_globals_data(globals)
  36117. def fz_json_array_length(array):
  36118. r"""Class-aware wrapper for `::fz_json_array_length()`."""
  36119. return _mupdf.fz_json_array_length(array)
  36120. def fz_json_array_push(pool, array, item):
  36121. r"""Class-aware wrapper for `::fz_json_array_push()`."""
  36122. return _mupdf.fz_json_array_push(pool, array, item)
  36123. def fz_json_is_array(json):
  36124. r"""Class-aware wrapper for `::fz_json_is_array()`."""
  36125. return _mupdf.fz_json_is_array(json)
  36126. def fz_json_is_boolean(json):
  36127. r"""Class-aware wrapper for `::fz_json_is_boolean()`."""
  36128. return _mupdf.fz_json_is_boolean(json)
  36129. def fz_json_is_null(json):
  36130. r"""Class-aware wrapper for `::fz_json_is_null()`."""
  36131. return _mupdf.fz_json_is_null(json)
  36132. def fz_json_is_number(json):
  36133. r"""Class-aware wrapper for `::fz_json_is_number()`."""
  36134. return _mupdf.fz_json_is_number(json)
  36135. def fz_json_is_object(json):
  36136. r"""Class-aware wrapper for `::fz_json_is_object()`."""
  36137. return _mupdf.fz_json_is_object(json)
  36138. def fz_json_is_string(json):
  36139. r"""Class-aware wrapper for `::fz_json_is_string()`."""
  36140. return _mupdf.fz_json_is_string(json)
  36141. def fz_json_object_set(pool, object, key, item):
  36142. r"""Class-aware wrapper for `::fz_json_object_set()`."""
  36143. return _mupdf.fz_json_object_set(pool, object, key, item)
  36144. def fz_json_to_boolean(json):
  36145. r"""Class-aware wrapper for `::fz_json_to_boolean()`."""
  36146. return _mupdf.fz_json_to_boolean(json)
  36147. def fz_json_to_number(json):
  36148. r"""Class-aware wrapper for `::fz_json_to_number()`."""
  36149. return _mupdf.fz_json_to_number(json)
  36150. def fz_json_to_string(json):
  36151. r"""Class-aware wrapper for `::fz_json_to_string()`."""
  36152. return _mupdf.fz_json_to_string(json)
  36153. def fz_koi8u_from_unicode(u):
  36154. r"""Class-aware wrapper for `::fz_koi8u_from_unicode()`."""
  36155. return _mupdf.fz_koi8u_from_unicode(u)
  36156. def fz_last_page(doc):
  36157. r"""
  36158. Class-aware wrapper for `::fz_last_page()`.
  36159. Function to get the location for the last page in the document.
  36160. Using this can be far more efficient in some cases than calling
  36161. fz_count_pages and using the page number.
  36162. """
  36163. return _mupdf.fz_last_page(doc)
  36164. def fz_layout_document(doc, w, h, em):
  36165. r"""
  36166. Class-aware wrapper for `::fz_layout_document()`.
  36167. Layout reflowable document types.
  36168. w, h: Page size in points.
  36169. em: Default font size in points.
  36170. """
  36171. return _mupdf.fz_layout_document(doc, w, h, em)
  36172. def fz_linecap_from_string(s):
  36173. r"""Class-aware wrapper for `::fz_linecap_from_string()`."""
  36174. return _mupdf.fz_linecap_from_string(s)
  36175. def fz_linejoin_from_string(s):
  36176. r"""Class-aware wrapper for `::fz_linejoin_from_string()`."""
  36177. return _mupdf.fz_linejoin_from_string(s)
  36178. def fz_lineto(path, x, y):
  36179. r"""
  36180. Class-aware wrapper for `::fz_lineto()`.
  36181. Append a 'lineto' command to an open path.
  36182. path: The path to modify.
  36183. x, y: The coordinate to line to.
  36184. Throws exceptions on failure to allocate, or attempting to
  36185. modify a packed path.
  36186. """
  36187. return _mupdf.fz_lineto(path, x, y)
  36188. def fz_list_archive_entry(arch, idx):
  36189. r"""
  36190. Class-aware wrapper for `::fz_list_archive_entry()`.
  36191. Get listed name of entry position idx.
  36192. idx: Must be a value >= 0 < return value from
  36193. fz_count_archive_entries. If not in range NULL will be
  36194. returned.
  36195. May throw an exception if this type of archive cannot list the
  36196. entries (such as a directory).
  36197. """
  36198. return _mupdf.fz_list_archive_entry(arch, idx)
  36199. def fz_load_bmp_subimage(buf, len, subimage):
  36200. r"""Class-aware wrapper for `::fz_load_bmp_subimage()`."""
  36201. return _mupdf.fz_load_bmp_subimage(buf, len, subimage)
  36202. def fz_load_bmp_subimage_count(buf, len):
  36203. r"""Class-aware wrapper for `::fz_load_bmp_subimage_count()`."""
  36204. return _mupdf.fz_load_bmp_subimage_count(buf, len)
  36205. def fz_load_chapter_page(doc, chapter, page):
  36206. r"""
  36207. Class-aware wrapper for `::fz_load_chapter_page()`.
  36208. Load a page.
  36209. After fz_load_page is it possible to retrieve the size of the
  36210. page using fz_bound_page, or to render the page using
  36211. fz_run_page_*. Free the page by calling fz_drop_page.
  36212. chapter: chapter number, 0 is the first chapter of the document.
  36213. number: page number, 0 is the first page of the chapter.
  36214. """
  36215. return _mupdf.fz_load_chapter_page(doc, chapter, page)
  36216. def fz_load_fallback_font(script, language, serif, bold, italic):
  36217. r"""
  36218. Class-aware wrapper for `::fz_load_fallback_font()`.
  36219. Try to load a fallback font for the
  36220. given combination of font attributes. Whether a font is
  36221. present or not will depend on the configuration in which
  36222. MuPDF is built.
  36223. script: The script desired (e.g. UCDN_SCRIPT_KATAKANA).
  36224. language: The language desired (e.g. FZ_LANG_ja).
  36225. serif: 1 if serif desired, 0 otherwise.
  36226. bold: 1 if bold desired, 0 otherwise.
  36227. italic: 1 if italic desired, 0 otherwise.
  36228. Returns a new font handle, or NULL if not available.
  36229. """
  36230. return _mupdf.fz_load_fallback_font(script, language, serif, bold, italic)
  36231. def fz_load_jbig2_globals(buf):
  36232. r"""
  36233. Class-aware wrapper for `::fz_load_jbig2_globals()`.
  36234. Create a jbig2 globals record from a buffer.
  36235. Immutable once created.
  36236. """
  36237. return _mupdf.fz_load_jbig2_globals(buf)
  36238. def fz_load_jbig2_subimage(buf, len, subimage):
  36239. r"""Class-aware wrapper for `::fz_load_jbig2_subimage()`."""
  36240. return _mupdf.fz_load_jbig2_subimage(buf, len, subimage)
  36241. def fz_load_jbig2_subimage_count(buf, len):
  36242. r"""Class-aware wrapper for `::fz_load_jbig2_subimage_count()`."""
  36243. return _mupdf.fz_load_jbig2_subimage_count(buf, len)
  36244. def fz_load_jpx(data, size, cs):
  36245. r"""
  36246. Class-aware wrapper for `::fz_load_jpx()`.
  36247. Exposed for PDF.
  36248. """
  36249. return _mupdf.fz_load_jpx(data, size, cs)
  36250. def fz_load_links(page):
  36251. r"""
  36252. Class-aware wrapper for `::fz_load_links()`.
  36253. Load the list of links for a page.
  36254. Returns a linked list of all the links on the page, each with
  36255. its clickable region and link destination. Each link is
  36256. reference counted so drop and free the list of links by
  36257. calling fz_drop_link on the pointer return from fz_load_links.
  36258. page: Page obtained from fz_load_page.
  36259. """
  36260. return _mupdf.fz_load_links(page)
  36261. def fz_load_outline(doc):
  36262. r"""
  36263. Class-aware wrapper for `::fz_load_outline()`.
  36264. Load the hierarchical document outline.
  36265. Should be freed by fz_drop_outline.
  36266. """
  36267. return _mupdf.fz_load_outline(doc)
  36268. def fz_load_outline_from_iterator(iter):
  36269. r"""
  36270. Class-aware wrapper for `::fz_load_outline_from_iterator()`.
  36271. Routine to implement the old Structure based API from an iterator.
  36272. """
  36273. return _mupdf.fz_load_outline_from_iterator(iter)
  36274. def fz_load_page(doc, number):
  36275. r"""
  36276. Class-aware wrapper for `::fz_load_page()`.
  36277. Load a given page number from a document. This may be much less
  36278. efficient than loading by location (chapter+page) for some
  36279. document types.
  36280. """
  36281. return _mupdf.fz_load_page(doc, number)
  36282. def fz_load_pnm_subimage(buf, len, subimage):
  36283. r"""Class-aware wrapper for `::fz_load_pnm_subimage()`."""
  36284. return _mupdf.fz_load_pnm_subimage(buf, len, subimage)
  36285. def fz_load_pnm_subimage_count(buf, len):
  36286. r"""Class-aware wrapper for `::fz_load_pnm_subimage_count()`."""
  36287. return _mupdf.fz_load_pnm_subimage_count(buf, len)
  36288. def fz_load_system_cjk_font(name, ordering, serif):
  36289. r"""
  36290. Class-aware wrapper for `::fz_load_system_cjk_font()`.
  36291. Attempt to load a given font from
  36292. the system.
  36293. name: The name of the desired font.
  36294. ordering: The ordering to load the font from (e.g. FZ_ADOBE_KOREA)
  36295. serif: 1 if serif desired, 0 otherwise.
  36296. Returns a new font handle, or NULL if no matching font was found
  36297. (or on error).
  36298. """
  36299. return _mupdf.fz_load_system_cjk_font(name, ordering, serif)
  36300. def fz_load_system_font(name, bold, italic, needs_exact_metrics):
  36301. r"""
  36302. Class-aware wrapper for `::fz_load_system_font()`.
  36303. Attempt to load a given font from the system.
  36304. name: The name of the desired font.
  36305. bold: 1 if bold desired, 0 otherwise.
  36306. italic: 1 if italic desired, 0 otherwise.
  36307. needs_exact_metrics: 1 if an exact metrical match is required,
  36308. 0 otherwise.
  36309. Returns a new font handle, or NULL if no matching font was found
  36310. (or on error).
  36311. """
  36312. return _mupdf.fz_load_system_font(name, bold, italic, needs_exact_metrics)
  36313. def fz_load_tiff_subimage(buf, len, subimage):
  36314. r"""Class-aware wrapper for `::fz_load_tiff_subimage()`."""
  36315. return _mupdf.fz_load_tiff_subimage(buf, len, subimage)
  36316. def fz_load_tiff_subimage_count(buf, len):
  36317. r"""
  36318. Class-aware wrapper for `::fz_load_tiff_subimage_count()`.
  36319. Exposed for CBZ.
  36320. """
  36321. return _mupdf.fz_load_tiff_subimage_count(buf, len)
  36322. def fz_load_user_css(filename):
  36323. r"""
  36324. Class-aware wrapper for `::fz_load_user_css()`.
  36325. Set the user stylesheet by loading the source from a file.
  36326. If the file is missing, do nothing.
  36327. """
  36328. return _mupdf.fz_load_user_css(filename)
  36329. def fz_location_from_page_number(doc, number):
  36330. r"""
  36331. Class-aware wrapper for `::fz_location_from_page_number()`.
  36332. Converts from page number to chapter+page. This may cause many
  36333. chapters to be laid out in order to calculate the number of
  36334. pages within those chapters.
  36335. """
  36336. return _mupdf.fz_location_from_page_number(doc, number)
  36337. def fz_lock(lock):
  36338. r"""
  36339. Class-aware wrapper for `::fz_lock()`.
  36340. Lock one of the user supplied mutexes.
  36341. """
  36342. return _mupdf.fz_lock(lock)
  36343. def fz_log_error(str):
  36344. r"""
  36345. Class-aware wrapper for `::fz_log_error()`.
  36346. Log a (preformatted) string to the registered
  36347. error stream (stderr by default).
  36348. """
  36349. return _mupdf.fz_log_error(str)
  36350. def fz_lookup_base14_font(name, len):
  36351. r"""
  36352. Class-aware wrapper for `::fz_lookup_base14_font()`.
  36353. This function has out-params. Python/C# wrappers look like:
  36354. `fz_lookup_base14_font(const char *name)` => `(const unsigned char *, int len)`
  36355. Search the builtin base14 fonts for a match.
  36356. Whether a given font is present or not will depend on the
  36357. configuration in which MuPDF is built.
  36358. name: The name of the font desired.
  36359. len: Pointer to a place to receive the length of the discovered
  36360. font buffer.
  36361. Returns a pointer to the font file data, or NULL if not present.
  36362. """
  36363. return _mupdf.fz_lookup_base14_font(name, len)
  36364. def fz_lookup_blendmode(name):
  36365. r"""
  36366. Class-aware wrapper for `::fz_lookup_blendmode()`.
  36367. Map from (case sensitive) blend mode string to enumeration.
  36368. """
  36369. return _mupdf.fz_lookup_blendmode(name)
  36370. def fz_lookup_bookmark(doc, mark):
  36371. r"""
  36372. Class-aware wrapper for `::fz_lookup_bookmark()`.
  36373. Find a bookmark and return its page number.
  36374. """
  36375. return _mupdf.fz_lookup_bookmark(doc, mark)
  36376. def fz_lookup_builtin_font(name, bold, italic, len):
  36377. r"""
  36378. Class-aware wrapper for `::fz_lookup_builtin_font()`.
  36379. This function has out-params. Python/C# wrappers look like:
  36380. `fz_lookup_builtin_font(const char *name, int bold, int italic)` => `(const unsigned char *, int len)`
  36381. Search the builtin fonts for a match.
  36382. Whether a given font is present or not will depend on the
  36383. configuration in which MuPDF is built.
  36384. name: The name of the font desired.
  36385. bold: 1 if bold desired, 0 otherwise.
  36386. italic: 1 if italic desired, 0 otherwise.
  36387. len: Pointer to a place to receive the length of the discovered
  36388. font buffer.
  36389. Returns a pointer to the font file data, or NULL if not present.
  36390. """
  36391. return _mupdf.fz_lookup_builtin_font(name, bold, italic, len)
  36392. def fz_lookup_cjk_font(ordering, len, index):
  36393. r"""
  36394. Class-aware wrapper for `::fz_lookup_cjk_font()`.
  36395. This function has out-params. Python/C# wrappers look like:
  36396. `fz_lookup_cjk_font(int ordering)` => `(const unsigned char *, int len, int index)`
  36397. Search the builtin cjk fonts for a match.
  36398. Whether a font is present or not will depend on the
  36399. configuration in which MuPDF is built.
  36400. ordering: The desired ordering of the font (e.g. FZ_ADOBE_KOREA).
  36401. len: Pointer to a place to receive the length of the discovered
  36402. font buffer.
  36403. Returns a pointer to the font file data, or NULL if not present.
  36404. """
  36405. return _mupdf.fz_lookup_cjk_font(ordering, len, index)
  36406. def fz_lookup_cjk_font_by_language(lang, len, subfont):
  36407. r"""
  36408. Class-aware wrapper for `::fz_lookup_cjk_font_by_language()`.
  36409. This function has out-params. Python/C# wrappers look like:
  36410. `fz_lookup_cjk_font_by_language(const char *lang)` => `(const unsigned char *, int len, int subfont)`
  36411. Search the builtin cjk fonts for a match for a given language.
  36412. Whether a font is present or not will depend on the
  36413. configuration in which MuPDF is built.
  36414. lang: Pointer to a (case sensitive) language string (e.g.
  36415. "ja", "ko", "zh-Hant" etc).
  36416. len: Pointer to a place to receive the length of the discovered
  36417. font buffer.
  36418. subfont: Pointer to a place to store the subfont index of the
  36419. discovered font.
  36420. Returns a pointer to the font file data, or NULL if not present.
  36421. """
  36422. return _mupdf.fz_lookup_cjk_font_by_language(lang, len, subfont)
  36423. def fz_lookup_cjk_ordering_by_language(name):
  36424. r"""
  36425. Class-aware wrapper for `::fz_lookup_cjk_ordering_by_language()`.
  36426. Return the matching FZ_ADOBE_* ordering
  36427. for the given language tag, such as "zh-Hant", "zh-Hans", "ja", or "ko".
  36428. """
  36429. return _mupdf.fz_lookup_cjk_ordering_by_language(name)
  36430. def fz_lookup_image_type(type):
  36431. r"""
  36432. Class-aware wrapper for `::fz_lookup_image_type()`.
  36433. Map from (case sensitive) image type string to FZ_IMAGE_*
  36434. type value.
  36435. """
  36436. return _mupdf.fz_lookup_image_type(type)
  36437. def fz_lookup_metadata(doc, key, buf, size):
  36438. r"""
  36439. Class-aware wrapper for `::fz_lookup_metadata()`.
  36440. Retrieve document meta data strings.
  36441. doc: The document to query.
  36442. key: Which meta data key to retrieve...
  36443. Basic information:
  36444. 'format' -- Document format and version.
  36445. 'encryption' -- Description of the encryption used.
  36446. From the document information dictionary:
  36447. 'info:Title'
  36448. 'info:Author'
  36449. 'info:Subject'
  36450. 'info:Keywords'
  36451. 'info:Creator'
  36452. 'info:Producer'
  36453. 'info:CreationDate'
  36454. 'info:ModDate'
  36455. buf: The buffer to hold the results (a nul-terminated UTF-8
  36456. string).
  36457. size: Size of 'buf'.
  36458. Returns the number of bytes need to store the string plus terminator
  36459. (will be larger than 'size' if the output was truncated), or -1 if the
  36460. key is not recognized or found.
  36461. """
  36462. return _mupdf.fz_lookup_metadata(doc, key, buf, size)
  36463. def fz_lookup_metadata2(doc, key):
  36464. r"""
  36465. Class-aware wrapper for `::fz_lookup_metadata2()`.
  36466. C++ alternative to `fz_lookup_metadata()` that returns a `std::string`
  36467. or calls `fz_throw()` if not found.
  36468. """
  36469. return _mupdf.fz_lookup_metadata2(doc, key)
  36470. def fz_lookup_noto_boxes_font(len):
  36471. r"""
  36472. Class-aware wrapper for `::fz_lookup_noto_boxes_font()`.
  36473. This function has out-params. Python/C# wrappers look like:
  36474. `fz_lookup_noto_boxes_font()` => `(const unsigned char *, int len)`
  36475. """
  36476. return _mupdf.fz_lookup_noto_boxes_font(len)
  36477. def fz_lookup_noto_emoji_font(len):
  36478. r"""
  36479. Class-aware wrapper for `::fz_lookup_noto_emoji_font()`.
  36480. This function has out-params. Python/C# wrappers look like:
  36481. `fz_lookup_noto_emoji_font()` => `(const unsigned char *, int len)`
  36482. """
  36483. return _mupdf.fz_lookup_noto_emoji_font(len)
  36484. def fz_lookup_noto_font(script, lang, len, subfont):
  36485. r"""
  36486. Class-aware wrapper for `::fz_lookup_noto_font()`.
  36487. This function has out-params. Python/C# wrappers look like:
  36488. `fz_lookup_noto_font(int script, int lang)` => `(const unsigned char *, int len, int subfont)`
  36489. Search the builtin noto fonts for a match.
  36490. Whether a font is present or not will depend on the
  36491. configuration in which MuPDF is built.
  36492. script: The script desired (e.g. UCDN_SCRIPT_KATAKANA).
  36493. lang: The language desired (e.g. FZ_LANG_ja).
  36494. len: Pointer to a place to receive the length of the discovered
  36495. font buffer.
  36496. Returns a pointer to the font file data, or NULL if not present.
  36497. """
  36498. return _mupdf.fz_lookup_noto_font(script, lang, len, subfont)
  36499. def fz_lookup_noto_math_font(len):
  36500. r"""
  36501. Class-aware wrapper for `::fz_lookup_noto_math_font()`.
  36502. This function has out-params. Python/C# wrappers look like:
  36503. `fz_lookup_noto_math_font()` => `(const unsigned char *, int len)`
  36504. Search the builtin noto fonts specific symbol fonts.
  36505. Whether a font is present or not will depend on the
  36506. configuration in which MuPDF is built.
  36507. """
  36508. return _mupdf.fz_lookup_noto_math_font(len)
  36509. def fz_lookup_noto_music_font(len):
  36510. r"""
  36511. Class-aware wrapper for `::fz_lookup_noto_music_font()`.
  36512. This function has out-params. Python/C# wrappers look like:
  36513. `fz_lookup_noto_music_font()` => `(const unsigned char *, int len)`
  36514. """
  36515. return _mupdf.fz_lookup_noto_music_font(len)
  36516. def fz_lookup_noto_stem_from_script(script, language):
  36517. r"""
  36518. Class-aware wrapper for `::fz_lookup_noto_stem_from_script()`.
  36519. Look up the Noto font file name for a given script.
  36520. From the returned font stem, you can look for Noto fonts on the system in the form:
  36521. Noto(Sans|Serif)${STEM}-Regular.(otf|ttf)
  36522. """
  36523. return _mupdf.fz_lookup_noto_stem_from_script(script, language)
  36524. def fz_lookup_noto_symbol1_font(len):
  36525. r"""
  36526. Class-aware wrapper for `::fz_lookup_noto_symbol1_font()`.
  36527. This function has out-params. Python/C# wrappers look like:
  36528. `fz_lookup_noto_symbol1_font()` => `(const unsigned char *, int len)`
  36529. """
  36530. return _mupdf.fz_lookup_noto_symbol1_font(len)
  36531. def fz_lookup_noto_symbol2_font(len):
  36532. r"""
  36533. Class-aware wrapper for `::fz_lookup_noto_symbol2_font()`.
  36534. This function has out-params. Python/C# wrappers look like:
  36535. `fz_lookup_noto_symbol2_font()` => `(const unsigned char *, int len)`
  36536. """
  36537. return _mupdf.fz_lookup_noto_symbol2_font(len)
  36538. def fz_lookup_rendering_intent(name):
  36539. r"""
  36540. Class-aware wrapper for `::fz_lookup_rendering_intent()`.
  36541. Map from (case sensitive) rendering intent string to enumeration
  36542. value.
  36543. """
  36544. return _mupdf.fz_lookup_rendering_intent(name)
  36545. def fz_lookup_script_name(script, language):
  36546. r"""Class-aware wrapper for `::fz_lookup_script_name()`."""
  36547. return _mupdf.fz_lookup_script_name(script, language)
  36548. def fz_make_bookmark(doc, loc):
  36549. r"""
  36550. Class-aware wrapper for `::fz_make_bookmark()`.
  36551. Create a bookmark for the given page, which can be used to find
  36552. the same location after the document has been laid out with
  36553. different parameters.
  36554. """
  36555. return _mupdf.fz_make_bookmark(doc, loc)
  36556. def fz_make_irect(x0, y0, x1, y1):
  36557. r"""Class-aware wrapper for `::fz_make_irect()`."""
  36558. return _mupdf.fz_make_irect(x0, y0, x1, y1)
  36559. def fz_make_location(chapter, page):
  36560. r"""
  36561. Class-aware wrapper for `::fz_make_location()`.
  36562. Simple constructor for fz_locations.
  36563. """
  36564. return _mupdf.fz_make_location(chapter, page)
  36565. def fz_make_matrix(a, b, c, d, e, f):
  36566. r"""Class-aware wrapper for `::fz_make_matrix()`."""
  36567. return _mupdf.fz_make_matrix(a, b, c, d, e, f)
  36568. def fz_make_point(x, y):
  36569. r"""Class-aware wrapper for `::fz_make_point()`."""
  36570. return _mupdf.fz_make_point(x, y)
  36571. def fz_make_quad(ul_x, ul_y, ur_x, ur_y, ll_x, ll_y, lr_x, lr_y):
  36572. r"""
  36573. Class-aware wrapper for `::fz_make_quad()`.
  36574. Inline convenience construction function.
  36575. """
  36576. return _mupdf.fz_make_quad(ul_x, ul_y, ur_x, ur_y, ll_x, ll_y, lr_x, lr_y)
  36577. def fz_make_rect(x0, y0, x1, y1):
  36578. r"""Class-aware wrapper for `::fz_make_rect()`."""
  36579. return _mupdf.fz_make_rect(x0, y0, x1, y1)
  36580. def fz_malloc(size):
  36581. r"""
  36582. Class-aware wrapper for `::fz_malloc()`.
  36583. Allocate uninitialized memory of a given size.
  36584. Does NOT clear the memory!
  36585. May return NULL for size = 0.
  36586. Throws exception in the event of failure to allocate.
  36587. """
  36588. return _mupdf.fz_malloc(size)
  36589. def fz_malloc_aligned(size, align):
  36590. r"""
  36591. Class-aware wrapper for `::fz_malloc_aligned()`.
  36592. fz_malloc equivalent, except that the block is guaranteed aligned.
  36593. Block must be freed later using fz_free_aligned.
  36594. """
  36595. return _mupdf.fz_malloc_aligned(size, align)
  36596. def fz_malloc_no_throw(size):
  36597. r"""
  36598. Class-aware wrapper for `::fz_malloc_no_throw()`.
  36599. fz_malloc equivalent that returns NULL rather than throwing
  36600. exceptions.
  36601. """
  36602. return _mupdf.fz_malloc_no_throw(size)
  36603. def fz_matrix_expansion(m):
  36604. r"""
  36605. Class-aware wrapper for `::fz_matrix_expansion()`.
  36606. Calculate average scaling factor of matrix.
  36607. """
  36608. return _mupdf.fz_matrix_expansion(m)
  36609. def fz_matrix_max_expansion(m):
  36610. r"""
  36611. Class-aware wrapper for `::fz_matrix_max_expansion()`.
  36612. Find the largest expansion performed by this matrix.
  36613. (i.e. max(abs(m.a),abs(m.b),abs(m.c),abs(m.d))
  36614. """
  36615. return _mupdf.fz_matrix_max_expansion(m)
  36616. def fz_max(a, b):
  36617. r"""Class-aware wrapper for `::fz_max()`."""
  36618. return _mupdf.fz_max(a, b)
  36619. def fz_maxi(a, b):
  36620. r"""Class-aware wrapper for `::fz_maxi()`."""
  36621. return _mupdf.fz_maxi(a, b)
  36622. def fz_maxi64(a, b):
  36623. r"""Class-aware wrapper for `::fz_maxi64()`."""
  36624. return _mupdf.fz_maxi64(a, b)
  36625. def fz_maxz(a, b):
  36626. r"""Class-aware wrapper for `::fz_maxz()`."""
  36627. return _mupdf.fz_maxz(a, b)
  36628. def fz_md5_buffer(buffer, digest):
  36629. r"""
  36630. Class-aware wrapper for `::fz_md5_buffer()`.
  36631. Create an MD5 digest from buffer contents.
  36632. Never throws exceptions.
  36633. """
  36634. return _mupdf.fz_md5_buffer(buffer, digest)
  36635. def fz_md5_final(state, digest):
  36636. r"""
  36637. Class-aware wrapper for `::fz_md5_final()`.
  36638. MD5 finalization. Ends an MD5 message-digest operation, writing
  36639. the message digest and zeroizing the context.
  36640. Never throws an exception.
  36641. """
  36642. return _mupdf.fz_md5_final(state, digest)
  36643. def fz_md5_final2(md5):
  36644. r"""
  36645. Class-aware wrapper for `::fz_md5_final2()`.
  36646. C++ alternative to fz_md5_final() that returns the digest by value.
  36647. """
  36648. return _mupdf.fz_md5_final2(md5)
  36649. def fz_md5_init(state):
  36650. r"""
  36651. Class-aware wrapper for `::fz_md5_init()`.
  36652. MD5 initialization. Begins an MD5 operation, writing a new
  36653. context.
  36654. Never throws an exception.
  36655. """
  36656. return _mupdf.fz_md5_init(state)
  36657. def fz_md5_pixmap(pixmap, digest):
  36658. r"""Class-aware wrapper for `::fz_md5_pixmap()`."""
  36659. return _mupdf.fz_md5_pixmap(pixmap, digest)
  36660. def fz_md5_pixmap2(pixmap):
  36661. r"""
  36662. Class-aware wrapper for `::fz_md5_pixmap2()`.
  36663. C++ alternative to `fz_md5_pixmap()` that returns the digest by value.
  36664. """
  36665. return _mupdf.fz_md5_pixmap2(pixmap)
  36666. def fz_md5_update(state, input, inlen):
  36667. r"""
  36668. Class-aware wrapper for `::fz_md5_update()`.
  36669. MD5 block update operation. Continues an MD5 message-digest
  36670. operation, processing another message block, and updating the
  36671. context.
  36672. Never throws an exception.
  36673. """
  36674. return _mupdf.fz_md5_update(state, input, inlen)
  36675. def fz_md5_update_int64(state, i):
  36676. r"""
  36677. Class-aware wrapper for `::fz_md5_update_int64()`.
  36678. MD5 block update operation. Continues an MD5 message-digest
  36679. operation, processing an int64, and updating the context.
  36680. Never throws an exception.
  36681. """
  36682. return _mupdf.fz_md5_update_int64(state, i)
  36683. def fz_measure_string(user_font, trm, s, wmode, bidi_level, markup_dir, language):
  36684. r"""
  36685. Class-aware wrapper for `::fz_measure_string()`.
  36686. Measure the advance width of a UTF8 string should it be added to a text object.
  36687. This uses the same layout algorithms as fz_show_string, and can be used
  36688. to calculate text alignment adjustments.
  36689. """
  36690. return _mupdf.fz_measure_string(user_font, trm, s, wmode, bidi_level, markup_dir, language)
  36691. def fz_memmem(haystack, haystacklen, needle, needlelen):
  36692. r"""
  36693. Class-aware wrapper for `::fz_memmem()`.
  36694. Find the start of the first occurrence of the substring needle in haystack.
  36695. """
  36696. return _mupdf.fz_memmem(haystack, haystacklen, needle, needlelen)
  36697. def fz_memrnd(block, len):
  36698. r"""
  36699. Class-aware wrapper for `::fz_memrnd()`.
  36700. Fill block with len bytes of pseudo-randomness.
  36701. """
  36702. return _mupdf.fz_memrnd(block, len)
  36703. def fz_min(a, b):
  36704. r"""Class-aware wrapper for `::fz_min()`."""
  36705. return _mupdf.fz_min(a, b)
  36706. def fz_mini(a, b):
  36707. r"""Class-aware wrapper for `::fz_mini()`."""
  36708. return _mupdf.fz_mini(a, b)
  36709. def fz_mini64(a, b):
  36710. r"""Class-aware wrapper for `::fz_mini64()`."""
  36711. return _mupdf.fz_mini64(a, b)
  36712. def fz_minz(a, b):
  36713. r"""Class-aware wrapper for `::fz_minz()`."""
  36714. return _mupdf.fz_minz(a, b)
  36715. def fz_mkdir(path):
  36716. r"""Class-aware wrapper for `::fz_mkdir()`."""
  36717. return _mupdf.fz_mkdir(path)
  36718. def fz_morph_error(fromcode, tocode):
  36719. r"""
  36720. Class-aware wrapper for `::fz_morph_error()`.
  36721. Called within a catch block this modifies the current
  36722. exception's code. If it's of type 'fromcode' it is
  36723. modified to 'tocode'. Typically used for 'downgrading'
  36724. exception severity.
  36725. """
  36726. return _mupdf.fz_morph_error(fromcode, tocode)
  36727. def fz_mount_multi_archive(arch_, sub, path):
  36728. r"""
  36729. Class-aware wrapper for `::fz_mount_multi_archive()`.
  36730. Add an archive to the set of archives handled by a multi
  36731. archive.
  36732. If path is NULL, then the archive contents will appear at the
  36733. top level, otherwise, the archives contents will appear prefixed
  36734. by path.
  36735. """
  36736. return _mupdf.fz_mount_multi_archive(arch_, sub, path)
  36737. def fz_moveto(path, x, y):
  36738. r"""
  36739. Class-aware wrapper for `::fz_moveto()`.
  36740. Append a 'moveto' command to a path.
  36741. This 'opens' a path.
  36742. path: The path to modify.
  36743. x, y: The coordinate to move to.
  36744. Throws exceptions on failure to allocate, or attempting to
  36745. modify a packed path.
  36746. """
  36747. return _mupdf.fz_moveto(path, x, y)
  36748. def fz_mul255(a, b):
  36749. r"""
  36750. Class-aware wrapper for `::fz_mul255()`.
  36751. Multiply scaled two integers in the 0..255 range
  36752. """
  36753. return _mupdf.fz_mul255(a, b)
  36754. def fz_needs_password(doc):
  36755. r"""
  36756. Class-aware wrapper for `::fz_needs_password()`.
  36757. Check if a document is encrypted with a
  36758. non-blank password.
  36759. """
  36760. return _mupdf.fz_needs_password(doc)
  36761. def fz_new_archive_of_size(file, size):
  36762. r"""Class-aware wrapper for `::fz_new_archive_of_size()`."""
  36763. return _mupdf.fz_new_archive_of_size(file, size)
  36764. def fz_new_barcode_image(type, value, size, ec_level, quiet, hrt):
  36765. r"""
  36766. Class-aware wrapper for `::fz_new_barcode_image()`.
  36767. Create an fz_image from a barcode definition.
  36768. type: The type of barcode to create.
  36769. value: The value of the barcode.
  36770. size: The size of the barcode.
  36771. ec_level: error correction level 0-8.
  36772. quiet: whether to include quiet zones (0 or 1).
  36773. hrt: whether to include human readable text below the barcode (0 or 1).
  36774. returns a created fz_image.
  36775. """
  36776. return _mupdf.fz_new_barcode_image(type, value, size, ec_level, quiet, hrt)
  36777. def fz_new_barcode_pixmap(type, value, size, ec_level, quiet, hrt):
  36778. r"""
  36779. Class-aware wrapper for `::fz_new_barcode_pixmap()`.
  36780. Create an fz_pixmap from a barcode definition.
  36781. type: The type of barcode to create.
  36782. value: The value of the barcode.
  36783. size: The size of the barcode.
  36784. ec_level: error correction level 0-8.
  36785. quiet: whether to include quiet zones (0 or 1).
  36786. hrt: whether to include human readable text below the barcode (0 or 1).
  36787. returns a created fz_pixmap.
  36788. """
  36789. return _mupdf.fz_new_barcode_pixmap(type, value, size, ec_level, quiet, hrt)
  36790. def fz_new_base14_font(name):
  36791. r"""
  36792. Class-aware wrapper for `::fz_new_base14_font()`.
  36793. Create a new font from one of the built-in fonts.
  36794. """
  36795. return _mupdf.fz_new_base14_font(name)
  36796. def fz_new_bbox_device(rectp):
  36797. r"""
  36798. Class-aware wrapper for `::fz_new_bbox_device()`.
  36799. Create a device to compute the bounding
  36800. box of all marks on a page.
  36801. The returned bounding box will be the union of all bounding
  36802. boxes of all objects on a page.
  36803. """
  36804. return _mupdf.fz_new_bbox_device(rectp)
  36805. def fz_new_bitmap(w, h, n, xres, yres):
  36806. r"""
  36807. Class-aware wrapper for `::fz_new_bitmap()`.
  36808. Create a new bitmap.
  36809. w, h: Width and Height for the bitmap
  36810. n: Number of color components (assumed to be a divisor of 8)
  36811. xres, yres: X and Y resolutions (in pixels per inch).
  36812. Returns pointer to created bitmap structure. The bitmap
  36813. data is uninitialised.
  36814. """
  36815. return _mupdf.fz_new_bitmap(w, h, n, xres, yres)
  36816. def fz_new_bitmap_from_image(img, ht):
  36817. r"""
  36818. Class-aware wrapper for `::fz_new_bitmap_from_image()`.
  36819. Make a bitmap from a pixmap and a halftone.
  36820. img: The image to generate from. Currently must be a single
  36821. color component with no alpha.
  36822. ht: The halftone to use. NULL implies the default halftone.
  36823. Returns the resultant bitmap. Throws exceptions in the case of
  36824. failure to allocate.
  36825. """
  36826. return _mupdf.fz_new_bitmap_from_image(img, ht)
  36827. def fz_new_bitmap_from_pixmap(pix, ht):
  36828. r"""
  36829. Class-aware wrapper for `::fz_new_bitmap_from_pixmap()`.
  36830. Make a bitmap from a pixmap and a halftone.
  36831. pix: The pixmap to generate from. Currently must be a single
  36832. color component with no alpha.
  36833. ht: The halftone to use. NULL implies the default halftone.
  36834. Returns the resultant bitmap. Throws exceptions in the case of
  36835. failure to allocate.
  36836. """
  36837. return _mupdf.fz_new_bitmap_from_pixmap(pix, ht)
  36838. def fz_new_bitmap_from_pixmap_band(pix, ht, band_start):
  36839. r"""
  36840. Class-aware wrapper for `::fz_new_bitmap_from_pixmap_band()`.
  36841. Make a bitmap from a pixmap and a
  36842. halftone, allowing for the position of the pixmap within an
  36843. overall banded rendering.
  36844. pix: The pixmap to generate from. Currently must be a single
  36845. color component with no alpha.
  36846. ht: The halftone to use. NULL implies the default halftone.
  36847. band_start: Vertical offset within the overall banded rendering
  36848. (in pixels)
  36849. Returns the resultant bitmap. Throws exceptions in the case of
  36850. failure to allocate.
  36851. """
  36852. return _mupdf.fz_new_bitmap_from_pixmap_band(pix, ht, band_start)
  36853. def fz_new_brotli_data(compressed_length, source, source_length, level):
  36854. r"""
  36855. Class-aware wrapper for `::fz_new_brotli_data()`.
  36856. This function has out-params. Python/C# wrappers look like:
  36857. `fz_new_brotli_data(const unsigned char *source, size_t source_length, ::fz_brotli_level level)` => `(unsigned char *, size_t compressed_length)`
  36858. Compress source_length bytes of data starting
  36859. at source, into a new memory block malloced for that purpose.
  36860. compressed_length is updated on exit to contain the size used.
  36861. Ownership of the block is returned from this function, and the
  36862. caller is therefore responsible for freeing it. The block may be
  36863. considerably larger than is actually required. The caller is
  36864. free to fz_realloc it down if it wants to.
  36865. """
  36866. return _mupdf.fz_new_brotli_data(compressed_length, source, source_length, level)
  36867. def fz_new_brotli_data_from_buffer(compressed_length, buffer, level):
  36868. r"""
  36869. Class-aware wrapper for `::fz_new_brotli_data_from_buffer()`.
  36870. This function has out-params. Python/C# wrappers look like:
  36871. `fz_new_brotli_data_from_buffer(::fz_buffer *buffer, ::fz_brotli_level level)` => `(unsigned char *, size_t compressed_length)`
  36872. Compress the contents of a fz_buffer into a
  36873. new block malloced for that purpose. *compressed_length is
  36874. updated on exit to contain the size used. Ownership of the block
  36875. is returned from this function, and the caller is therefore
  36876. responsible for freeing it. The block may be considerably larger
  36877. than is actually required. The caller is free to fz_realloc it
  36878. down if it wants to.
  36879. """
  36880. return _mupdf.fz_new_brotli_data_from_buffer(compressed_length, buffer, level)
  36881. def fz_new_buffer(capacity):
  36882. r"""Class-aware wrapper for `::fz_new_buffer()`."""
  36883. return _mupdf.fz_new_buffer(capacity)
  36884. def fz_new_buffer_from_base64(data, size):
  36885. r"""
  36886. Class-aware wrapper for `::fz_new_buffer_from_base64()`.
  36887. Create a new buffer with data decoded from a base64 input string.
  36888. """
  36889. return _mupdf.fz_new_buffer_from_base64(data, size)
  36890. def fz_new_buffer_from_copied_data(data, size):
  36891. r"""
  36892. Class-aware wrapper for `::fz_new_buffer_from_copied_data()`.
  36893. Create a new buffer containing a copy of the passed data.
  36894. """
  36895. return _mupdf.fz_new_buffer_from_copied_data(data, size)
  36896. def fz_new_buffer_from_data(data, size):
  36897. r"""
  36898. Class-aware wrapper for `::fz_new_buffer_from_data()`.
  36899. Create a new buffer with existing data.
  36900. data: Pointer to existing data.
  36901. size: Size of existing data.
  36902. Takes ownership of data. Does not make a copy. Calls fz_free on
  36903. the data when the buffer is deallocated. Do not use 'data' after
  36904. passing to this function.
  36905. Returns pointer to new buffer. Throws exception on allocation
  36906. failure.
  36907. """
  36908. return _mupdf.fz_new_buffer_from_data(data, size)
  36909. def fz_new_buffer_from_display_list(list, options):
  36910. r"""Class-aware wrapper for `::fz_new_buffer_from_display_list()`."""
  36911. return _mupdf.fz_new_buffer_from_display_list(list, options)
  36912. def fz_new_buffer_from_image_as_jpeg(image, color_params, quality, invert_cmyk):
  36913. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_jpeg()`."""
  36914. return _mupdf.fz_new_buffer_from_image_as_jpeg(image, color_params, quality, invert_cmyk)
  36915. def fz_new_buffer_from_image_as_jpx(image, color_params, quality):
  36916. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_jpx()`."""
  36917. return _mupdf.fz_new_buffer_from_image_as_jpx(image, color_params, quality)
  36918. def fz_new_buffer_from_image_as_pam(image, color_params):
  36919. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pam()`."""
  36920. return _mupdf.fz_new_buffer_from_image_as_pam(image, color_params)
  36921. def fz_new_buffer_from_image_as_pbm(image, color_params):
  36922. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pbm()`."""
  36923. return _mupdf.fz_new_buffer_from_image_as_pbm(image, color_params)
  36924. def fz_new_buffer_from_image_as_pkm(image, color_params):
  36925. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pkm()`."""
  36926. return _mupdf.fz_new_buffer_from_image_as_pkm(image, color_params)
  36927. def fz_new_buffer_from_image_as_png(image, color_params):
  36928. r"""
  36929. Class-aware wrapper for `::fz_new_buffer_from_image_as_png()`.
  36930. Re-encode a given image as a PNG into a buffer.
  36931. Ownership of the buffer is returned.
  36932. """
  36933. return _mupdf.fz_new_buffer_from_image_as_png(image, color_params)
  36934. def fz_new_buffer_from_image_as_pnm(image, color_params):
  36935. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pnm()`."""
  36936. return _mupdf.fz_new_buffer_from_image_as_pnm(image, color_params)
  36937. def fz_new_buffer_from_image_as_psd(image, color_params):
  36938. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_psd()`."""
  36939. return _mupdf.fz_new_buffer_from_image_as_psd(image, color_params)
  36940. def fz_new_buffer_from_page(page, options):
  36941. r"""Class-aware wrapper for `::fz_new_buffer_from_page()`."""
  36942. return _mupdf.fz_new_buffer_from_page(page, options)
  36943. def fz_new_buffer_from_page_number(doc, number, options):
  36944. r"""Class-aware wrapper for `::fz_new_buffer_from_page_number()`."""
  36945. return _mupdf.fz_new_buffer_from_page_number(doc, number, options)
  36946. def fz_new_buffer_from_page_with_format(page, format, options, transform, cookie):
  36947. r"""
  36948. Class-aware wrapper for `::fz_new_buffer_from_page_with_format()`.
  36949. Returns an fz_buffer containing a page after conversion to specified format.
  36950. page: The page to convert.
  36951. format, options: Passed to fz_new_document_writer_with_output() internally.
  36952. transform, cookie: Passed to fz_run_page() internally.
  36953. """
  36954. return _mupdf.fz_new_buffer_from_page_with_format(page, format, options, transform, cookie)
  36955. def fz_new_buffer_from_pixmap_as_jpeg(pixmap, color_params, quality, invert_cmyk):
  36956. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_jpeg()`."""
  36957. return _mupdf.fz_new_buffer_from_pixmap_as_jpeg(pixmap, color_params, quality, invert_cmyk)
  36958. def fz_new_buffer_from_pixmap_as_jpx(pix, color_params, quality):
  36959. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_jpx()`."""
  36960. return _mupdf.fz_new_buffer_from_pixmap_as_jpx(pix, color_params, quality)
  36961. def fz_new_buffer_from_pixmap_as_pam(pixmap, color_params):
  36962. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pam()`."""
  36963. return _mupdf.fz_new_buffer_from_pixmap_as_pam(pixmap, color_params)
  36964. def fz_new_buffer_from_pixmap_as_pbm(pixmap, color_params):
  36965. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pbm()`."""
  36966. return _mupdf.fz_new_buffer_from_pixmap_as_pbm(pixmap, color_params)
  36967. def fz_new_buffer_from_pixmap_as_pkm(pixmap, color_params):
  36968. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pkm()`."""
  36969. return _mupdf.fz_new_buffer_from_pixmap_as_pkm(pixmap, color_params)
  36970. def fz_new_buffer_from_pixmap_as_png(pixmap, color_params):
  36971. r"""
  36972. Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_png()`.
  36973. Re-encode a given pixmap as a PNG into a buffer.
  36974. Ownership of the buffer is returned.
  36975. """
  36976. return _mupdf.fz_new_buffer_from_pixmap_as_png(pixmap, color_params)
  36977. def fz_new_buffer_from_pixmap_as_pnm(pixmap, color_params):
  36978. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pnm()`."""
  36979. return _mupdf.fz_new_buffer_from_pixmap_as_pnm(pixmap, color_params)
  36980. def fz_new_buffer_from_pixmap_as_psd(pix, color_params):
  36981. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_psd()`."""
  36982. return _mupdf.fz_new_buffer_from_pixmap_as_psd(pix, color_params)
  36983. def fz_new_buffer_from_shared_data(data, size):
  36984. r"""
  36985. Class-aware wrapper for `::fz_new_buffer_from_shared_data()`.
  36986. Like fz_new_buffer, but does not take ownership.
  36987. """
  36988. return _mupdf.fz_new_buffer_from_shared_data(data, size)
  36989. def fz_new_buffer_from_stext_page(text):
  36990. r"""
  36991. Class-aware wrapper for `::fz_new_buffer_from_stext_page()`.
  36992. Convert structured text into plain text.
  36993. """
  36994. return _mupdf.fz_new_buffer_from_stext_page(text)
  36995. def fz_new_builtin_font(name, is_bold, is_italic):
  36996. r"""Class-aware wrapper for `::fz_new_builtin_font()`."""
  36997. return _mupdf.fz_new_builtin_font(name, is_bold, is_italic)
  36998. def fz_new_cal_gray_colorspace(wp, bp, gamma):
  36999. r"""
  37000. Class-aware wrapper for `::fz_new_cal_gray_colorspace()`.
  37001. Create a calibrated gray colorspace.
  37002. The returned reference should be dropped when it is finished
  37003. with.
  37004. Colorspaces are immutable once created.
  37005. """
  37006. return _mupdf.fz_new_cal_gray_colorspace(wp, bp, gamma)
  37007. def fz_new_cal_rgb_colorspace(wp, bp, gamma, matrix):
  37008. r"""
  37009. Class-aware wrapper for `::fz_new_cal_rgb_colorspace()`.
  37010. Create a calibrated rgb colorspace.
  37011. The returned reference should be dropped when it is finished
  37012. with.
  37013. Colorspaces are immutable once created.
  37014. """
  37015. return _mupdf.fz_new_cal_rgb_colorspace(wp, bp, gamma, matrix)
  37016. def fz_new_cjk_font(ordering):
  37017. r"""Class-aware wrapper for `::fz_new_cjk_font()`."""
  37018. return _mupdf.fz_new_cjk_font(ordering)
  37019. def fz_new_colorspace(type, flags, n, name):
  37020. r"""
  37021. Class-aware wrapper for `::fz_new_colorspace()`.
  37022. Creates a new colorspace instance and returns a reference.
  37023. No internal checking is done that the colorspace type (e.g.
  37024. CMYK) matches with the flags (e.g. FZ_COLORSPACE_HAS_CMYK) or
  37025. colorant count (n) or name.
  37026. The reference should be dropped when it is finished with.
  37027. Colorspaces are immutable once created (with the exception of
  37028. setting up colorant names for separation spaces).
  37029. """
  37030. return _mupdf.fz_new_colorspace(type, flags, n, name)
  37031. def fz_new_compressed_buffer():
  37032. r"""
  37033. Class-aware wrapper for `::fz_new_compressed_buffer()`.
  37034. Create a new, UNKNOWN format, compressed_buffer.
  37035. """
  37036. return _mupdf.fz_new_compressed_buffer()
  37037. def fz_new_default_colorspaces():
  37038. r"""
  37039. Class-aware wrapper for `::fz_new_default_colorspaces()`.
  37040. Create a new default colorspace structure with values inherited
  37041. from the context, and return a reference to it.
  37042. These can be overridden using fz_set_default_xxxx.
  37043. These should not be overridden while more than one caller has
  37044. the reference for fear of race conditions.
  37045. The caller should drop this reference once finished with it.
  37046. """
  37047. return _mupdf.fz_new_default_colorspaces()
  37048. def fz_new_deflated_data(compressed_length, source, source_length, level):
  37049. r"""
  37050. Class-aware wrapper for `::fz_new_deflated_data()`.
  37051. This function has out-params. Python/C# wrappers look like:
  37052. `fz_new_deflated_data(const unsigned char *source, size_t source_length, ::fz_deflate_level level)` => `(unsigned char *, size_t compressed_length)`
  37053. Compress source_length bytes of data starting
  37054. at source, into a new memory block malloced for that purpose.
  37055. compressed_length is updated on exit to contain the size used.
  37056. Ownership of the block is returned from this function, and the
  37057. caller is therefore responsible for freeing it. The block may be
  37058. considerably larger than is actually required. The caller is
  37059. free to fz_realloc it down if it wants to.
  37060. """
  37061. return _mupdf.fz_new_deflated_data(compressed_length, source, source_length, level)
  37062. def fz_new_deflated_data_from_buffer(compressed_length, buffer, level):
  37063. r"""
  37064. Class-aware wrapper for `::fz_new_deflated_data_from_buffer()`.
  37065. This function has out-params. Python/C# wrappers look like:
  37066. `fz_new_deflated_data_from_buffer(::fz_buffer *buffer, ::fz_deflate_level level)` => `(unsigned char *, size_t compressed_length)`
  37067. Compress the contents of a fz_buffer into a
  37068. new block malloced for that purpose. *compressed_length is
  37069. updated on exit to contain the size used. Ownership of the block
  37070. is returned from this function, and the caller is therefore
  37071. responsible for freeing it. The block may be considerably larger
  37072. than is actually required. The caller is free to fz_realloc it
  37073. down if it wants to.
  37074. """
  37075. return _mupdf.fz_new_deflated_data_from_buffer(compressed_length, buffer, level)
  37076. def fz_new_device_of_size(size):
  37077. r"""
  37078. Class-aware wrapper for `::fz_new_device_of_size()`.
  37079. Devices are created by calls to device implementations, for
  37080. instance: foo_new_device(). These will be implemented by calling
  37081. fz_new_derived_device(ctx, foo_device) where foo_device is a
  37082. structure "derived from" fz_device, for instance
  37083. typedef struct { fz_device base; ...extras...} foo_device;
  37084. """
  37085. return _mupdf.fz_new_device_of_size(size)
  37086. def fz_new_display_list(mediabox):
  37087. r"""
  37088. Class-aware wrapper for `::fz_new_display_list()`.
  37089. Create an empty display list.
  37090. A display list contains drawing commands (text, images, etc.).
  37091. Use fz_new_list_device for populating the list.
  37092. mediabox: Bounds of the page (in points) represented by the
  37093. display list.
  37094. """
  37095. return _mupdf.fz_new_display_list(mediabox)
  37096. def fz_new_display_list_from_page(page):
  37097. r"""
  37098. Class-aware wrapper for `::fz_new_display_list_from_page()`.
  37099. Create a display list.
  37100. Ownership of the display list is returned to the caller.
  37101. """
  37102. return _mupdf.fz_new_display_list_from_page(page)
  37103. def fz_new_display_list_from_page_contents(page):
  37104. r"""
  37105. Class-aware wrapper for `::fz_new_display_list_from_page_contents()`.
  37106. Create a display list from page contents (no annotations).
  37107. Ownership of the display list is returned to the caller.
  37108. """
  37109. return _mupdf.fz_new_display_list_from_page_contents(page)
  37110. def fz_new_display_list_from_page_number(doc, number):
  37111. r"""Class-aware wrapper for `::fz_new_display_list_from_page_number()`."""
  37112. return _mupdf.fz_new_display_list_from_page_number(doc, number)
  37113. def fz_new_display_list_from_svg(buf, base_uri, dir, w, h):
  37114. r"""
  37115. Class-aware wrapper for `::fz_new_display_list_from_svg()`.
  37116. This function has out-params. Python/C# wrappers look like:
  37117. `fz_new_display_list_from_svg(::fz_buffer *buf, const char *base_uri, ::fz_archive *dir)` => `(fz_display_list *, float w, float h)`
  37118. Parse an SVG document into a display-list.
  37119. """
  37120. return _mupdf.fz_new_display_list_from_svg(buf, base_uri, dir, w, h)
  37121. def fz_new_display_list_from_svg_xml(xmldoc, xml, base_uri, dir, w, h):
  37122. r"""
  37123. Class-aware wrapper for `::fz_new_display_list_from_svg_xml()`.
  37124. This function has out-params. Python/C# wrappers look like:
  37125. `fz_new_display_list_from_svg_xml(::fz_xml_doc *xmldoc, ::fz_xml *xml, const char *base_uri, ::fz_archive *dir)` => `(fz_display_list *, float w, float h)`
  37126. Parse an SVG document into a display-list.
  37127. """
  37128. return _mupdf.fz_new_display_list_from_svg_xml(xmldoc, xml, base_uri, dir, w, h)
  37129. def fz_new_document_of_size(size):
  37130. r"""
  37131. Class-aware wrapper for `::fz_new_document_of_size()`.
  37132. New documents are typically created by calls like
  37133. foo_new_document(fz_context *ctx, ...). These work by
  37134. deriving a new document type from fz_document, for instance:
  37135. typedef struct { fz_document base; ...extras... } foo_document;
  37136. These are allocated by calling
  37137. fz_new_derived_document(ctx, foo_document)
  37138. """
  37139. return _mupdf.fz_new_document_of_size(size)
  37140. def fz_new_dom(tag):
  37141. r"""
  37142. Class-aware wrapper for `::fz_new_dom()`.
  37143. Make new xml dom root element.
  37144. """
  37145. return _mupdf.fz_new_dom(tag)
  37146. def fz_new_dom_node(dom, tag):
  37147. r"""
  37148. Class-aware wrapper for `::fz_new_dom_node()`.
  37149. Create a new dom node.
  37150. This will NOT be linked in yet.
  37151. """
  37152. return _mupdf.fz_new_dom_node(dom, tag)
  37153. def fz_new_dom_text_node(dom, text):
  37154. r"""
  37155. Class-aware wrapper for `::fz_new_dom_text_node()`.
  37156. Create a new dom text node.
  37157. This will NOT be linked in yet.
  37158. """
  37159. return _mupdf.fz_new_dom_text_node(dom, text)
  37160. def fz_new_draw_device(transform, dest):
  37161. r"""
  37162. Class-aware wrapper for `::fz_new_draw_device()`.
  37163. Create a device to draw on a pixmap.
  37164. dest: Target pixmap for the draw device. See fz_new_pixmap*
  37165. for how to obtain a pixmap. The pixmap is not cleared by the
  37166. draw device, see fz_clear_pixmap* for how to clear it prior to
  37167. calling fz_new_draw_device. Free the device by calling
  37168. fz_drop_device.
  37169. transform: Transform from user space in points to device space
  37170. in pixels.
  37171. """
  37172. return _mupdf.fz_new_draw_device(transform, dest)
  37173. def fz_new_draw_device_type3(transform, dest):
  37174. r"""Class-aware wrapper for `::fz_new_draw_device_type3()`."""
  37175. return _mupdf.fz_new_draw_device_type3(transform, dest)
  37176. def fz_new_draw_device_with_bbox(transform, dest, clip):
  37177. r"""
  37178. Class-aware wrapper for `::fz_new_draw_device_with_bbox()`.
  37179. Create a device to draw on a pixmap.
  37180. dest: Target pixmap for the draw device. See fz_new_pixmap*
  37181. for how to obtain a pixmap. The pixmap is not cleared by the
  37182. draw device, see fz_clear_pixmap* for how to clear it prior to
  37183. calling fz_new_draw_device. Free the device by calling
  37184. fz_drop_device.
  37185. transform: Transform from user space in points to device space
  37186. in pixels.
  37187. clip: Bounding box to restrict any marking operations of the
  37188. draw device.
  37189. """
  37190. return _mupdf.fz_new_draw_device_with_bbox(transform, dest, clip)
  37191. def fz_new_draw_device_with_bbox_proof(transform, dest, clip, cs):
  37192. r"""
  37193. Class-aware wrapper for `::fz_new_draw_device_with_bbox_proof()`.
  37194. Create a device to draw on a pixmap.
  37195. dest: Target pixmap for the draw device. See fz_new_pixmap*
  37196. for how to obtain a pixmap. The pixmap is not cleared by the
  37197. draw device, see fz_clear_pixmap* for how to clear it prior to
  37198. calling fz_new_draw_device. Free the device by calling
  37199. fz_drop_device.
  37200. transform: Transform from user space in points to device space
  37201. in pixels.
  37202. clip: Bounding box to restrict any marking operations of the
  37203. draw device.
  37204. proof_cs: Color space to render to prior to mapping to color
  37205. space defined by pixmap.
  37206. """
  37207. return _mupdf.fz_new_draw_device_with_bbox_proof(transform, dest, clip, cs)
  37208. def fz_new_draw_device_with_options(options, mediabox, pixmap):
  37209. r"""
  37210. Class-aware wrapper for `::fz_new_draw_device_with_options()`.
  37211. This function has out-params. Python/C# wrappers look like:
  37212. `fz_new_draw_device_with_options(const ::fz_draw_options *options, ::fz_rect mediabox, ::fz_pixmap **pixmap)` => `(fz_device *)`
  37213. Create a new pixmap and draw device, using the specified options.
  37214. options: Options to configure the draw device, and choose the
  37215. resolution and colorspace.
  37216. mediabox: The bounds of the page in points.
  37217. pixmap: An out parameter containing the newly created pixmap.
  37218. """
  37219. return _mupdf.fz_new_draw_device_with_options(options, mediabox, pixmap)
  37220. def fz_new_draw_device_with_proof(transform, dest, proof_cs):
  37221. r"""
  37222. Class-aware wrapper for `::fz_new_draw_device_with_proof()`.
  37223. Create a device to draw on a pixmap.
  37224. dest: Target pixmap for the draw device. See fz_new_pixmap*
  37225. for how to obtain a pixmap. The pixmap is not cleared by the
  37226. draw device, see fz_clear_pixmap* for how to clear it prior to
  37227. calling fz_new_draw_device. Free the device by calling
  37228. fz_drop_device.
  37229. transform: Transform from user space in points to device space
  37230. in pixels.
  37231. proof_cs: Intermediate color space to map though when mapping to
  37232. color space defined by pixmap.
  37233. """
  37234. return _mupdf.fz_new_draw_device_with_proof(transform, dest, proof_cs)
  37235. def fz_new_font_from_buffer(name, buffer, index, use_glyph_bbox):
  37236. r"""
  37237. Class-aware wrapper for `::fz_new_font_from_buffer()`.
  37238. Create a new font from a font file in a fz_buffer.
  37239. Fonts created in this way, will be eligible for embedding by default.
  37240. name: Name of font (leave NULL to use name from font).
  37241. buffer: Buffer to load from.
  37242. index: Which font from the file to load (0 for default).
  37243. use_glyph_box: 1 if we should use the glyph bbox, 0 otherwise.
  37244. Returns new font handle, or throws exception on error.
  37245. """
  37246. return _mupdf.fz_new_font_from_buffer(name, buffer, index, use_glyph_bbox)
  37247. def fz_new_font_from_file(name, path, index, use_glyph_bbox):
  37248. r"""
  37249. Class-aware wrapper for `::fz_new_font_from_file()`.
  37250. Create a new font from a font file.
  37251. Fonts created in this way, will be eligible for embedding by default.
  37252. name: Name of font (leave NULL to use name from font).
  37253. path: File path to load from.
  37254. index: Which font from the file to load (0 for default).
  37255. use_glyph_box: 1 if we should use the glyph bbox, 0 otherwise.
  37256. Returns new font handle, or throws exception on error.
  37257. """
  37258. return _mupdf.fz_new_font_from_file(name, path, index, use_glyph_bbox)
  37259. def fz_new_font_from_memory(name, data, len, index, use_glyph_bbox):
  37260. r"""
  37261. Class-aware wrapper for `::fz_new_font_from_memory()`.
  37262. Create a new font from a font file in memory.
  37263. Fonts created in this way, will be eligible for embedding by default.
  37264. name: Name of font (leave NULL to use name from font).
  37265. data: Pointer to the font file data.
  37266. len: Length of the font file data.
  37267. index: Which font from the file to load (0 for default).
  37268. use_glyph_box: 1 if we should use the glyph bbox, 0 otherwise.
  37269. Returns new font handle, or throws exception on error.
  37270. """
  37271. return _mupdf.fz_new_font_from_memory(name, data, len, index, use_glyph_bbox)
  37272. def fz_new_function_of_size(size, size2, m, n, eval, drop):
  37273. r"""Class-aware wrapper for `::fz_new_function_of_size()`."""
  37274. return _mupdf.fz_new_function_of_size(size, size2, m, n, eval, drop)
  37275. def fz_new_icc_colorspace(type, flags, name, buf):
  37276. r"""
  37277. Class-aware wrapper for `::fz_new_icc_colorspace()`.
  37278. Create a colorspace from an ICC profile supplied in buf.
  37279. Limited checking is done to ensure that the colorspace type is
  37280. appropriate for the supplied ICC profile.
  37281. An additional reference is taken to buf, which will be dropped
  37282. on destruction. Ownership is NOT passed in.
  37283. The returned reference should be dropped when it is finished
  37284. with.
  37285. Colorspaces are immutable once created.
  37286. """
  37287. return _mupdf.fz_new_icc_colorspace(type, flags, name, buf)
  37288. def fz_new_image_from_buffer(buffer):
  37289. r"""
  37290. Class-aware wrapper for `::fz_new_image_from_buffer()`.
  37291. Create a new image from a
  37292. buffer of data, inferring its type from the format
  37293. of the data.
  37294. """
  37295. return _mupdf.fz_new_image_from_buffer(buffer)
  37296. def fz_new_image_from_compressed_buffer(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, buffer, mask):
  37297. r"""
  37298. Class-aware wrapper for `::fz_new_image_from_compressed_buffer()`.
  37299. Create an image based on
  37300. the data in the supplied compressed buffer.
  37301. w,h: Width and height of the created image.
  37302. bpc: Bits per component.
  37303. colorspace: The colorspace (determines the number of components,
  37304. and any color conversions required while decoding).
  37305. xres, yres: The X and Y resolutions respectively.
  37306. interpolate: 1 if interpolation should be used when decoding
  37307. this image, 0 otherwise.
  37308. imagemask: 1 if this is an imagemask (i.e. transparency bitmap
  37309. mask), 0 otherwise.
  37310. decode: NULL, or a pointer to to a decode array. The default
  37311. decode array is [0 1] (repeated n times, for n color components).
  37312. colorkey: NULL, or a pointer to a colorkey array. The default
  37313. colorkey array is [0 255] (repeated n times, for n color
  37314. components).
  37315. buffer: Buffer of compressed data and compression parameters.
  37316. Ownership of this reference is passed in.
  37317. mask: NULL, or another image to use as a mask for this one.
  37318. A new reference is taken to this image. Supplying a masked
  37319. image as a mask to another image is illegal!
  37320. """
  37321. return _mupdf.fz_new_image_from_compressed_buffer(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, buffer, mask)
  37322. def fz_new_image_from_compressed_buffer2(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, buffer, mask):
  37323. r"""
  37324. Class-aware wrapper for `::fz_new_image_from_compressed_buffer2()`. Swig-friendly wrapper for fz_new_image_from_compressed_buffer(),
  37325. uses specified `decode` and `colorkey` if they are not null (in which
  37326. case we assert that they have size `2*fz_colorspace_n(colorspace)`).
  37327. """
  37328. return _mupdf.fz_new_image_from_compressed_buffer2(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, buffer, mask)
  37329. def fz_new_image_from_display_list(w, h, list):
  37330. r"""
  37331. Class-aware wrapper for `::fz_new_image_from_display_list()`.
  37332. Create a new image from a display list.
  37333. w, h: The conceptual width/height of the image.
  37334. transform: The matrix that needs to be applied to the given
  37335. list to make it render to the unit square.
  37336. list: The display list.
  37337. """
  37338. return _mupdf.fz_new_image_from_display_list(w, h, list)
  37339. def fz_new_image_from_file(path):
  37340. r"""
  37341. Class-aware wrapper for `::fz_new_image_from_file()`.
  37342. Create a new image from the contents
  37343. of a file, inferring its type from the format of the
  37344. data.
  37345. """
  37346. return _mupdf.fz_new_image_from_file(path)
  37347. def fz_new_image_from_pixmap(pixmap, mask):
  37348. r"""
  37349. Class-aware wrapper for `::fz_new_image_from_pixmap()`.
  37350. Create an image from the given
  37351. pixmap.
  37352. pixmap: The pixmap to base the image upon. A new reference
  37353. to this is taken.
  37354. mask: NULL, or another image to use as a mask for this one.
  37355. A new reference is taken to this image. Supplying a masked
  37356. image as a mask to another image is illegal!
  37357. """
  37358. return _mupdf.fz_new_image_from_pixmap(pixmap, mask)
  37359. def fz_new_image_from_svg(buf, base_uri, dir):
  37360. r"""
  37361. Class-aware wrapper for `::fz_new_image_from_svg()`.
  37362. Create a scalable image from an SVG document.
  37363. """
  37364. return _mupdf.fz_new_image_from_svg(buf, base_uri, dir)
  37365. def fz_new_image_from_svg_xml(xmldoc, xml, base_uri, dir):
  37366. r"""
  37367. Class-aware wrapper for `::fz_new_image_from_svg_xml()`.
  37368. Create a scalable image from an SVG document.
  37369. """
  37370. return _mupdf.fz_new_image_from_svg_xml(xmldoc, xml, base_uri, dir)
  37371. def fz_new_image_of_size(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, mask, size, get_pixmap, get_size, drop):
  37372. r"""
  37373. Class-aware wrapper for `::fz_new_image_of_size()`.
  37374. Internal function to make a new fz_image structure
  37375. for a derived class.
  37376. w,h: Width and height of the created image.
  37377. bpc: Bits per component.
  37378. colorspace: The colorspace (determines the number of components,
  37379. and any color conversions required while decoding).
  37380. xres, yres: The X and Y resolutions respectively.
  37381. interpolate: 1 if interpolation should be used when decoding
  37382. this image, 0 otherwise.
  37383. imagemask: 1 if this is an imagemask (i.e. transparent), 0
  37384. otherwise.
  37385. decode: NULL, or a pointer to to a decode array. The default
  37386. decode array is [0 1] (repeated n times, for n color components).
  37387. colorkey: NULL, or a pointer to a colorkey array. The default
  37388. colorkey array is [0 255] (repeated n times, for n color
  37389. components).
  37390. mask: NULL, or another image to use as a mask for this one.
  37391. A new reference is taken to this image. Supplying a masked
  37392. image as a mask to another image is illegal!
  37393. size: The size of the required allocated structure (the size of
  37394. the derived structure).
  37395. get: The function to be called to obtain a decoded pixmap.
  37396. get_size: The function to be called to return the storage size
  37397. used by this image.
  37398. drop: The function to be called to dispose of this image once
  37399. the last reference is dropped.
  37400. Returns a pointer to an allocated structure of the required size,
  37401. with the first sizeof(fz_image) bytes initialised as appropriate
  37402. given the supplied parameters, and the other bytes set to zero.
  37403. """
  37404. return _mupdf.fz_new_image_of_size(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, mask, size, get_pixmap, get_size, drop)
  37405. def fz_new_indexed_colorspace(base, high, lookup):
  37406. r"""
  37407. Class-aware wrapper for `::fz_new_indexed_colorspace()`.
  37408. Create an indexed colorspace.
  37409. The supplied lookup table is high palette entries long. Each
  37410. entry is n bytes long, where n is given by the number of
  37411. colorants in the base colorspace, one byte per colorant.
  37412. Ownership of lookup is passed it; it will be freed on
  37413. destruction, so must be heap allocated.
  37414. The colorspace will keep an additional reference to the base
  37415. colorspace that will be dropped on destruction.
  37416. The returned reference should be dropped when it is finished
  37417. with.
  37418. Colorspaces are immutable once created.
  37419. """
  37420. return _mupdf.fz_new_indexed_colorspace(base, high, lookup)
  37421. def fz_new_link_of_size(size, rect, uri):
  37422. r"""
  37423. Class-aware wrapper for `::fz_new_link_of_size()`.
  37424. Create a new link record.
  37425. next is set to NULL with the expectation that the caller will
  37426. handle the linked list setup. Internal function.
  37427. Different document types will be implemented by deriving from
  37428. fz_link. This macro allocates such derived structures, and
  37429. initialises the base sections.
  37430. """
  37431. return _mupdf.fz_new_link_of_size(size, rect, uri)
  37432. def fz_new_list_device(list):
  37433. r"""
  37434. Class-aware wrapper for `::fz_new_list_device()`.
  37435. Create a rendering device for a display list.
  37436. When the device is rendering a page it will populate the
  37437. display list with drawing commands (text, images, etc.). The
  37438. display list can later be reused to render a page many times
  37439. without having to re-interpret the page from the document file
  37440. for each rendering. Once the device is no longer needed, free
  37441. it with fz_drop_device.
  37442. list: A display list that the list device takes a reference to.
  37443. """
  37444. return _mupdf.fz_new_list_device(list)
  37445. def fz_new_multi_archive():
  37446. r"""
  37447. Class-aware wrapper for `::fz_new_multi_archive()`.
  37448. Create a new multi archive (initially empty).
  37449. """
  37450. return _mupdf.fz_new_multi_archive()
  37451. def fz_new_ocr_device(target, ctm, mediabox, with_list, language, datadir, progress, progress_arg):
  37452. r"""
  37453. Class-aware wrapper for `::fz_new_ocr_device()`.
  37454. Create a device to OCR the text on the page.
  37455. Renders the page internally to a bitmap that is then OCRd. Text
  37456. is then forwarded onto the target device.
  37457. target: The target device to receive the OCRd text.
  37458. ctm: The transform to apply to the mediabox to get the size for
  37459. the rendered page image. Also used to calculate the resolution
  37460. for the page image. In general, this will be the same as the CTM
  37461. that you pass to fz_run_page (or fz_run_display_list) to feed
  37462. this device.
  37463. mediabox: The mediabox (in points). Combined with the CTM to get
  37464. the bounds of the pixmap used internally for the rendered page
  37465. image.
  37466. with_list: If with_list is false, then all non-text operations
  37467. are forwarded instantly to the target device. This results in
  37468. the target device seeing all NON-text operations, followed by
  37469. all the text operations (derived from OCR).
  37470. If with_list is true, then all the marking operations are
  37471. collated into a display list which is then replayed to the
  37472. target device at the end.
  37473. language: NULL (for "eng"), or a pointer to a string to describe
  37474. the languages/scripts that should be used for OCR (e.g.
  37475. "eng,ara").
  37476. datadir: NULL (for ""), or a pointer to a path string otherwise
  37477. provided to Tesseract in the TESSDATA_PREFIX environment variable.
  37478. progress: NULL, or function to be called periodically to indicate
  37479. progress. Return 0 to continue, or 1 to cancel. progress_arg is
  37480. returned as the void *. The int is a value between 0 and 100 to
  37481. indicate progress.
  37482. progress_arg: A void * value to be parrotted back to the progress
  37483. function.
  37484. """
  37485. return _mupdf.fz_new_ocr_device(target, ctm, mediabox, with_list, language, datadir, progress, progress_arg)
  37486. def fz_new_outline():
  37487. r"""
  37488. Class-aware wrapper for `::fz_new_outline()`.
  37489. Create a new outline entry with zeroed fields for the caller
  37490. to fill in.
  37491. """
  37492. return _mupdf.fz_new_outline()
  37493. def fz_new_page_of_size(size, doc):
  37494. r"""
  37495. Class-aware wrapper for `::fz_new_page_of_size()`.
  37496. Different document types will be implemented by deriving from
  37497. fz_page. This macro allocates such derived structures, and
  37498. initialises the base sections.
  37499. """
  37500. return _mupdf.fz_new_page_of_size(size, doc)
  37501. def fz_new_path():
  37502. r"""
  37503. Class-aware wrapper for `::fz_new_path()`.
  37504. Create a new (empty) path structure.
  37505. """
  37506. return _mupdf.fz_new_path()
  37507. def fz_new_pdf_document_from_fz_document(ptr):
  37508. r"""Class-aware wrapper for `::fz_new_pdf_document_from_fz_document()`."""
  37509. return _mupdf.fz_new_pdf_document_from_fz_document(ptr)
  37510. def fz_new_pixmap(cs, w, h, seps, alpha):
  37511. r"""
  37512. Class-aware wrapper for `::fz_new_pixmap()`.
  37513. Create a new pixmap, with its origin at (0,0)
  37514. cs: The colorspace to use for the pixmap, or NULL for an alpha
  37515. plane/mask.
  37516. w: The width of the pixmap (in pixels)
  37517. h: The height of the pixmap (in pixels)
  37518. seps: Details of separations.
  37519. alpha: 0 for no alpha, 1 for alpha.
  37520. Returns a pointer to the new pixmap. Throws exception on failure
  37521. to allocate.
  37522. """
  37523. return _mupdf.fz_new_pixmap(cs, w, h, seps, alpha)
  37524. def fz_new_pixmap_from_alpha_channel(src):
  37525. r"""Class-aware wrapper for `::fz_new_pixmap_from_alpha_channel()`."""
  37526. return _mupdf.fz_new_pixmap_from_alpha_channel(src)
  37527. def fz_new_pixmap_from_color_and_mask(color, mask):
  37528. r"""Class-aware wrapper for `::fz_new_pixmap_from_color_and_mask()`."""
  37529. return _mupdf.fz_new_pixmap_from_color_and_mask(color, mask)
  37530. def fz_new_pixmap_from_display_list(list, ctm, cs, alpha):
  37531. r"""
  37532. Class-aware wrapper for `::fz_new_pixmap_from_display_list()`.
  37533. Render the page to a pixmap using the transform and colorspace.
  37534. Ownership of the pixmap is returned to the caller.
  37535. """
  37536. return _mupdf.fz_new_pixmap_from_display_list(list, ctm, cs, alpha)
  37537. def fz_new_pixmap_from_display_list_with_separations(list, ctm, cs, seps, alpha):
  37538. r"""
  37539. Class-aware wrapper for `::fz_new_pixmap_from_display_list_with_separations()`.
  37540. Render the page contents with control over spot colors.
  37541. Ownership of the pixmap is returned to the caller.
  37542. """
  37543. return _mupdf.fz_new_pixmap_from_display_list_with_separations(list, ctm, cs, seps, alpha)
  37544. def fz_new_pixmap_from_page(page, ctm, cs, alpha):
  37545. r"""Class-aware wrapper for `::fz_new_pixmap_from_page()`."""
  37546. return _mupdf.fz_new_pixmap_from_page(page, ctm, cs, alpha)
  37547. def fz_new_pixmap_from_page_contents(page, ctm, cs, alpha):
  37548. r"""
  37549. Class-aware wrapper for `::fz_new_pixmap_from_page_contents()`.
  37550. Render the page contents without annotations.
  37551. Ownership of the pixmap is returned to the caller.
  37552. """
  37553. return _mupdf.fz_new_pixmap_from_page_contents(page, ctm, cs, alpha)
  37554. def fz_new_pixmap_from_page_contents_with_separations(page, ctm, cs, seps, alpha):
  37555. r"""Class-aware wrapper for `::fz_new_pixmap_from_page_contents_with_separations()`."""
  37556. return _mupdf.fz_new_pixmap_from_page_contents_with_separations(page, ctm, cs, seps, alpha)
  37557. def fz_new_pixmap_from_page_number(doc, number, ctm, cs, alpha):
  37558. r"""Class-aware wrapper for `::fz_new_pixmap_from_page_number()`."""
  37559. return _mupdf.fz_new_pixmap_from_page_number(doc, number, ctm, cs, alpha)
  37560. def fz_new_pixmap_from_page_number_with_separations(doc, number, ctm, cs, seps, alpha):
  37561. r"""Class-aware wrapper for `::fz_new_pixmap_from_page_number_with_separations()`."""
  37562. return _mupdf.fz_new_pixmap_from_page_number_with_separations(doc, number, ctm, cs, seps, alpha)
  37563. def fz_new_pixmap_from_page_with_separations(page, ctm, cs, seps, alpha):
  37564. r"""Class-aware wrapper for `::fz_new_pixmap_from_page_with_separations()`."""
  37565. return _mupdf.fz_new_pixmap_from_page_with_separations(page, ctm, cs, seps, alpha)
  37566. def fz_new_pixmap_from_pixmap(pixmap, rect):
  37567. r"""
  37568. Class-aware wrapper for `::fz_new_pixmap_from_pixmap()`.
  37569. Create a new pixmap that represents a subarea of the specified
  37570. pixmap. A reference is taken to this pixmap that will be dropped
  37571. on destruction.
  37572. The supplied rectangle must be wholly contained within the
  37573. original pixmap.
  37574. Returns a pointer to the new pixmap. Throws exception on failure
  37575. to allocate.
  37576. """
  37577. return _mupdf.fz_new_pixmap_from_pixmap(pixmap, rect)
  37578. def fz_new_pixmap_with_bbox(colorspace, bbox, seps, alpha):
  37579. r"""
  37580. Class-aware wrapper for `::fz_new_pixmap_with_bbox()`.
  37581. Create a pixmap of a given size, location and pixel format.
  37582. The bounding box specifies the size of the created pixmap and
  37583. where it will be located. The colorspace determines the number
  37584. of components per pixel. Alpha is always present. Pixmaps are
  37585. reference counted, so drop references using fz_drop_pixmap.
  37586. colorspace: Colorspace format used for the created pixmap. The
  37587. pixmap will keep a reference to the colorspace.
  37588. bbox: Bounding box specifying location/size of created pixmap.
  37589. seps: Details of separations.
  37590. alpha: 0 for no alpha, 1 for alpha.
  37591. Returns a pointer to the new pixmap. Throws exception on failure
  37592. to allocate.
  37593. """
  37594. return _mupdf.fz_new_pixmap_with_bbox(colorspace, bbox, seps, alpha)
  37595. def fz_new_pixmap_with_bbox_and_data(colorspace, rect, seps, alpha, samples):
  37596. r"""
  37597. Class-aware wrapper for `::fz_new_pixmap_with_bbox_and_data()`.
  37598. Create a pixmap of a given size, location and pixel format,
  37599. using the supplied data block.
  37600. The bounding box specifies the size of the created pixmap and
  37601. where it will be located. The colorspace determines the number
  37602. of components per pixel. Alpha is always present. Pixmaps are
  37603. reference counted, so drop references using fz_drop_pixmap.
  37604. colorspace: Colorspace format used for the created pixmap. The
  37605. pixmap will keep a reference to the colorspace.
  37606. rect: Bounding box specifying location/size of created pixmap.
  37607. seps: Details of separations.
  37608. alpha: Number of alpha planes (0 or 1).
  37609. samples: The data block to keep the samples in.
  37610. Returns a pointer to the new pixmap. Throws exception on failure
  37611. to allocate.
  37612. """
  37613. return _mupdf.fz_new_pixmap_with_bbox_and_data(colorspace, rect, seps, alpha, samples)
  37614. def fz_new_pixmap_with_data(colorspace, w, h, seps, alpha, stride, samples):
  37615. r"""
  37616. Class-aware wrapper for `::fz_new_pixmap_with_data()`.
  37617. Create a new pixmap, with its origin at
  37618. (0,0) using the supplied data block.
  37619. cs: The colorspace to use for the pixmap, or NULL for an alpha
  37620. plane/mask.
  37621. w: The width of the pixmap (in pixels)
  37622. h: The height of the pixmap (in pixels)
  37623. seps: Details of separations.
  37624. alpha: 0 for no alpha, 1 for alpha.
  37625. stride: The byte offset from the pixel data in a row to the
  37626. pixel data in the next row.
  37627. samples: The data block to keep the samples in.
  37628. Returns a pointer to the new pixmap. Throws exception on failure to
  37629. allocate.
  37630. """
  37631. return _mupdf.fz_new_pixmap_with_data(colorspace, w, h, seps, alpha, stride, samples)
  37632. def fz_new_separations(controllable):
  37633. r"""
  37634. Class-aware wrapper for `::fz_new_separations()`.
  37635. Create a new separations structure (initially empty)
  37636. """
  37637. return _mupdf.fz_new_separations(controllable)
  37638. def fz_new_stext_device(page, options):
  37639. r"""
  37640. Class-aware wrapper for `::fz_new_stext_device()`.
  37641. Create a device to extract the text on a page.
  37642. Gather the text on a page into blocks and lines.
  37643. The reading order is taken from the order the text is drawn in
  37644. the source file, so may not be accurate.
  37645. page: The text page to which content should be added. This will
  37646. usually be a newly created (empty) text page, but it can be one
  37647. containing data already (for example when merging multiple
  37648. pages, or watermarking).
  37649. options: Options to configure the stext device.
  37650. """
  37651. return _mupdf.fz_new_stext_device(page, options)
  37652. def fz_new_stext_device_for_page(stext_page, opts, chapter_num, page_num, mediabox):
  37653. r"""
  37654. Class-aware wrapper for `::fz_new_stext_device_for_page()`.
  37655. Create a device to extract the text on a page into an existing
  37656. fz_stext_page structure.
  37657. Gather the text on a page into blocks and lines.
  37658. The reading order is taken from the order the text is drawn in
  37659. the source file, so may not be accurate.
  37660. stext_page: The text page to which content should be added. This will
  37661. usually be a newly created (empty) text page, but it can be one
  37662. containing data already (for example when merging multiple
  37663. pages, or watermarking).
  37664. options: Options to configure the stext device.
  37665. The next 2 parameters are copied into the fz_stext_page structure's
  37666. ids section, so only have to be valid if you expect to interrogate
  37667. that section later.
  37668. chapter_num: The chapter number that this page came from.
  37669. page_num: The page number that this page came from.
  37670. The final parameter is copied into the fz_stext_page structure's
  37671. ids section. The mediabox for the enture fz_stext_page is unioned
  37672. with this, so pass fz_empty_bbox if you don't care about getting
  37673. a valid value back from the ids section, but you don't want to
  37674. upset the value in the page->mediabox field.
  37675. mediabox: The mediabox for this page.
  37676. """
  37677. return _mupdf.fz_new_stext_device_for_page(stext_page, opts, chapter_num, page_num, mediabox)
  37678. def fz_new_stext_struct(page, standard, raw, index):
  37679. r"""Class-aware wrapper for `::fz_new_stext_struct()`."""
  37680. return _mupdf.fz_new_stext_struct(page, standard, raw, index)
  37681. def fz_new_store_context(max):
  37682. r"""
  37683. Class-aware wrapper for `::fz_new_store_context()`.
  37684. Create a new store inside the context
  37685. max: The maximum size (in bytes) that the store is allowed to
  37686. grow to. FZ_STORE_UNLIMITED means no limit.
  37687. """
  37688. return _mupdf.fz_new_store_context(max)
  37689. def fz_new_stream(state, next, drop):
  37690. r"""
  37691. Class-aware wrapper for `::fz_new_stream()`.
  37692. Create a new stream object with the given
  37693. internal state and function pointers.
  37694. state: Internal state (opaque to everything but implementation).
  37695. next: Should provide the next set of bytes (up to max) of stream
  37696. data. Return the number of bytes read, or EOF when there is no
  37697. more data.
  37698. drop: Should clean up and free the internal state. May not
  37699. throw exceptions.
  37700. """
  37701. return _mupdf.fz_new_stream(state, next, drop)
  37702. def fz_new_string(str):
  37703. r"""Class-aware wrapper for `::fz_new_string()`."""
  37704. return _mupdf.fz_new_string(str)
  37705. def fz_new_stroke_state():
  37706. r"""
  37707. Class-aware wrapper for `::fz_new_stroke_state()`.
  37708. Create a new (empty) stroke state structure (with no dash
  37709. data) and return a reference to it.
  37710. Throws exception on failure to allocate.
  37711. """
  37712. return _mupdf.fz_new_stroke_state()
  37713. def fz_new_stroke_state_with_dash_len(len):
  37714. r"""
  37715. Class-aware wrapper for `::fz_new_stroke_state_with_dash_len()`.
  37716. Create a new (empty) stroke state structure, with room for
  37717. dash data of the given length, and return a reference to it.
  37718. len: The number of dash elements to allow room for.
  37719. Throws exception on failure to allocate.
  37720. """
  37721. return _mupdf.fz_new_stroke_state_with_dash_len(len)
  37722. def fz_new_svg_device(out, page_width, page_height, text_format, reuse_images):
  37723. r"""
  37724. Class-aware wrapper for `::fz_new_svg_device()`.
  37725. Create a device that outputs (single page) SVG files to
  37726. the given output stream.
  37727. Equivalent to fz_new_svg_device_with_id passing id = NULL.
  37728. """
  37729. return _mupdf.fz_new_svg_device(out, page_width, page_height, text_format, reuse_images)
  37730. def fz_new_svg_device_with_id(out, page_width, page_height, text_format, reuse_images, id):
  37731. r"""
  37732. Class-aware wrapper for `::fz_new_svg_device_with_id()`.
  37733. This function has out-params. Python/C# wrappers look like:
  37734. `fz_new_svg_device_with_id(::fz_output *out, float page_width, float page_height, int text_format, int reuse_images)` => `(fz_device *, int id)`
  37735. Create a device that outputs (single page) SVG files to
  37736. the given output stream.
  37737. output: The output stream to send the constructed SVG page to.
  37738. page_width, page_height: The page dimensions to use (in points).
  37739. text_format: How to emit text. One of the following values:
  37740. FZ_SVG_TEXT_AS_TEXT: As <text> elements with possible
  37741. layout errors and mismatching fonts.
  37742. FZ_SVG_TEXT_AS_PATH: As <path> elements with exact
  37743. visual appearance.
  37744. reuse_images: Share image resources using <symbol> definitions.
  37745. id: ID parameter to keep generated IDs unique across SVG files.
  37746. """
  37747. return _mupdf.fz_new_svg_device_with_id(out, page_width, page_height, text_format, reuse_images, id)
  37748. def fz_new_test_device(is_color, threshold, options, passthrough):
  37749. r"""
  37750. Class-aware wrapper for `::fz_new_test_device()`.
  37751. This function has out-params. Python/C# wrappers look like:
  37752. `fz_new_test_device(float threshold, int options, ::fz_device *passthrough)` => `(fz_device *, int is_color)`
  37753. Create a device to test for features.
  37754. Currently only tests for the presence of non-grayscale colors.
  37755. is_color: Possible values returned:
  37756. 0: Definitely greyscale
  37757. 1: Probably color (all colors were grey, but there
  37758. were images or shadings in a non grey colorspace).
  37759. 2: Definitely color
  37760. threshold: The difference from grayscale that will be tolerated.
  37761. Typical values to use are either 0 (be exact) and 0.02 (allow an
  37762. imperceptible amount of slop).
  37763. options: A set of bitfield options, from the FZ_TEST_OPT set.
  37764. passthrough: A device to pass all calls through to, or NULL.
  37765. If set, then the test device can both test and pass through to
  37766. an underlying device (like, say, the display list device). This
  37767. means that a display list can be created and at the end we'll
  37768. know if it's colored or not.
  37769. In the absence of a passthrough device, the device will throw
  37770. an exception to stop page interpretation when color is found.
  37771. """
  37772. return _mupdf.fz_new_test_device(is_color, threshold, options, passthrough)
  37773. def fz_new_text():
  37774. r"""
  37775. Class-aware wrapper for `::fz_new_text()`.
  37776. Create a new empty fz_text object.
  37777. Throws exception on failure to allocate.
  37778. """
  37779. return _mupdf.fz_new_text()
  37780. def fz_new_trace_device(out):
  37781. r"""
  37782. Class-aware wrapper for `::fz_new_trace_device()`.
  37783. Create a device to print a debug trace of all device calls.
  37784. """
  37785. return _mupdf.fz_new_trace_device(out)
  37786. def fz_new_tree_archive(tree):
  37787. r"""
  37788. Class-aware wrapper for `::fz_new_tree_archive()`.
  37789. Create an archive that holds named buffers.
  37790. tree can either be a preformed tree with fz_buffers as values,
  37791. or it can be NULL for an empty tree.
  37792. """
  37793. return _mupdf.fz_new_tree_archive(tree)
  37794. def fz_new_type3_font(name, matrix):
  37795. r"""
  37796. Class-aware wrapper for `::fz_new_type3_font()`.
  37797. Create a new (empty) type3 font.
  37798. name: Name of font (or NULL).
  37799. matrix: Font matrix.
  37800. Returns a new font handle, or throws exception on
  37801. allocation failure.
  37802. """
  37803. return _mupdf.fz_new_type3_font(name, matrix)
  37804. def fz_new_xhtml_document_from_document(old_doc, opts):
  37805. r"""
  37806. Class-aware wrapper for `::fz_new_xhtml_document_from_document()`.
  37807. Use text extraction to convert the input document into XHTML,
  37808. then open the result as a new document that can be reflowed.
  37809. """
  37810. return _mupdf.fz_new_xhtml_document_from_document(old_doc, opts)
  37811. def fz_new_xmltext_device(out):
  37812. r"""
  37813. Class-aware wrapper for `::fz_new_xmltext_device()`.
  37814. Create a device to output raw information.
  37815. """
  37816. return _mupdf.fz_new_xmltext_device(out)
  37817. def fz_next_page(doc, loc):
  37818. r"""
  37819. Class-aware wrapper for `::fz_next_page()`.
  37820. Function to get the location of the next page (allowing for the
  37821. end of chapters etc). If at the end of the document, returns the
  37822. current location.
  37823. """
  37824. return _mupdf.fz_next_page(doc, loc)
  37825. def fz_normalize_vector(p):
  37826. r"""
  37827. Class-aware wrapper for `::fz_normalize_vector()`.
  37828. Normalize a vector to length one.
  37829. """
  37830. return _mupdf.fz_normalize_vector(p)
  37831. def fz_open_a85d(chain):
  37832. r"""
  37833. Class-aware wrapper for `::fz_open_a85d()`.
  37834. a85d filter performs ASCII 85 Decoding of data read
  37835. from the chained filter.
  37836. """
  37837. return _mupdf.fz_open_a85d(chain)
  37838. def fz_open_accelerated_document(filename, accel):
  37839. r"""
  37840. Class-aware wrapper for `::fz_open_accelerated_document()`.
  37841. Open a document file and read its basic structure so pages and
  37842. objects can be located. MuPDF will try to repair broken
  37843. documents (without actually changing the file contents).
  37844. The returned fz_document is used when calling most other
  37845. document related functions.
  37846. filename: a path to a file as it would be given to open(2).
  37847. """
  37848. return _mupdf.fz_open_accelerated_document(filename, accel)
  37849. def fz_open_accelerated_document_with_stream(magic, stream, accel):
  37850. r"""
  37851. Class-aware wrapper for `::fz_open_accelerated_document_with_stream()`.
  37852. Open a document using the specified stream object rather than
  37853. opening a file on disk.
  37854. magic: a string used to detect document type; either a file name
  37855. or mime-type.
  37856. stream: a stream of the document contents.
  37857. accel: NULL, or a stream of the 'accelerator' contents for this document.
  37858. NOTE: The caller retains ownership of 'stream' and 'accel' - the document will
  37859. take its own references if required.
  37860. """
  37861. return _mupdf.fz_open_accelerated_document_with_stream(magic, stream, accel)
  37862. def fz_open_accelerated_document_with_stream_and_dir(magic, stream, accel, dir):
  37863. r"""
  37864. Class-aware wrapper for `::fz_open_accelerated_document_with_stream_and_dir()`.
  37865. Open a document using the specified stream object rather than
  37866. opening a file on disk.
  37867. magic: a string used to detect document type; either a file name
  37868. or mime-type.
  37869. stream: a stream of the document contents.
  37870. accel: NULL, or a stream of the 'accelerator' contents for this document.
  37871. dir: NULL, or the 'directory context' for the stream contents.
  37872. NOTE: The caller retains ownership of 'stream', 'accel' and 'dir' - the document will
  37873. take its own references if required.
  37874. """
  37875. return _mupdf.fz_open_accelerated_document_with_stream_and_dir(magic, stream, accel, dir)
  37876. def fz_open_aesd(chain, key, keylen):
  37877. r"""
  37878. Class-aware wrapper for `::fz_open_aesd()`.
  37879. aesd filter performs AES decoding of data read from the chained
  37880. filter using the supplied key.
  37881. """
  37882. return _mupdf.fz_open_aesd(chain, key, keylen)
  37883. def fz_open_ahxd(chain):
  37884. r"""
  37885. Class-aware wrapper for `::fz_open_ahxd()`.
  37886. ahxd filter performs ASCII Hex decoding of data read
  37887. from the chained filter.
  37888. """
  37889. return _mupdf.fz_open_ahxd(chain)
  37890. def fz_open_arc4(chain, key, keylen):
  37891. r"""
  37892. Class-aware wrapper for `::fz_open_arc4()`.
  37893. arc4 filter performs RC4 decoding of data read from the chained
  37894. filter using the supplied key.
  37895. """
  37896. return _mupdf.fz_open_arc4(chain, key, keylen)
  37897. def fz_open_archive(filename):
  37898. r"""
  37899. Class-aware wrapper for `::fz_open_archive()`.
  37900. Open a zip or tar archive
  37901. Open a file and identify its archive type based on the archive
  37902. signature contained inside.
  37903. filename: a path to a file as it would be given to open(2).
  37904. """
  37905. return _mupdf.fz_open_archive(filename)
  37906. def fz_open_archive_entry(arch, name):
  37907. r"""
  37908. Class-aware wrapper for `::fz_open_archive_entry()`.
  37909. Opens an archive entry as a stream.
  37910. name: Entry name to look for, this must be an exact match to
  37911. the entry name in the archive.
  37912. Throws an exception if a matching entry cannot be found.
  37913. """
  37914. return _mupdf.fz_open_archive_entry(arch, name)
  37915. def fz_open_archive_with_stream(file):
  37916. r"""
  37917. Class-aware wrapper for `::fz_open_archive_with_stream()`.
  37918. Open zip or tar archive stream.
  37919. Open an archive using a seekable stream object rather than
  37920. opening a file or directory on disk.
  37921. """
  37922. return _mupdf.fz_open_archive_with_stream(file)
  37923. def fz_open_brotlid(chain):
  37924. r"""
  37925. Class-aware wrapper for `::fz_open_brotlid()`.
  37926. brotlid filter performs Brotli decoding of data read
  37927. from the chained filter.
  37928. """
  37929. return _mupdf.fz_open_brotlid(chain)
  37930. def fz_open_buffer(buf):
  37931. r"""
  37932. Class-aware wrapper for `::fz_open_buffer()`.
  37933. Open a buffer as a stream.
  37934. buf: The buffer to open. Ownership of the buffer is NOT passed
  37935. in (this function takes its own reference).
  37936. Returns pointer to newly created stream. May throw exceptions on
  37937. failure to allocate.
  37938. """
  37939. return _mupdf.fz_open_buffer(buf)
  37940. def fz_open_cfb_archive(filename):
  37941. r"""
  37942. Class-aware wrapper for `::fz_open_cfb_archive()`.
  37943. Open a cfb file as an archive.
  37944. An exception is thrown if the file is not recognised as a cfb.
  37945. filename: a path to an archive file as it would be given to
  37946. open(2).
  37947. """
  37948. return _mupdf.fz_open_cfb_archive(filename)
  37949. def fz_open_cfb_archive_with_stream(file):
  37950. r"""
  37951. Class-aware wrapper for `::fz_open_cfb_archive_with_stream()`.
  37952. Open a cfb file as an archive.
  37953. Open an archive using a seekable stream object rather than
  37954. opening a file or directory on disk.
  37955. An exception is thrown if the file is not recognised as a chm.
  37956. """
  37957. return _mupdf.fz_open_cfb_archive_with_stream(file)
  37958. def fz_open_compressed_buffer(arg_0):
  37959. r"""
  37960. Class-aware wrapper for `::fz_open_compressed_buffer()`.
  37961. Open a stream to read the decompressed version of a buffer.
  37962. """
  37963. return _mupdf.fz_open_compressed_buffer(arg_0)
  37964. def fz_open_concat(max, pad):
  37965. r"""
  37966. Class-aware wrapper for `::fz_open_concat()`.
  37967. Concat filter concatenates several streams into one.
  37968. """
  37969. return _mupdf.fz_open_concat(max, pad)
  37970. def fz_open_dctd(chain, color_transform, invert_cmyk, l2factor, jpegtables):
  37971. r"""
  37972. Class-aware wrapper for `::fz_open_dctd()`.
  37973. dctd filter performs DCT (JPEG) decoding of data read
  37974. from the chained filter.
  37975. color_transform implements the PDF color_transform option
  37976. use -1 for default behavior
  37977. use 0 to disable YUV-RGB / YCCK-CMYK transforms
  37978. use 1 to enable YUV-RGB / YCCK-CMYK transforms
  37979. invert_cmyk implements the necessary inversion for Photoshop CMYK images
  37980. use 0 if embedded in PDF
  37981. use 1 if not embedded in PDF
  37982. For subsampling on decode, set l2factor to the log2 of the
  37983. reduction required (therefore 0 = full size decode).
  37984. jpegtables is an optional stream from which the JPEG tables
  37985. can be read. Use NULL if not required.
  37986. """
  37987. return _mupdf.fz_open_dctd(chain, color_transform, invert_cmyk, l2factor, jpegtables)
  37988. def fz_open_directory(path):
  37989. r"""
  37990. Class-aware wrapper for `::fz_open_directory()`.
  37991. Open a directory as if it was an archive.
  37992. A special case where a directory is opened as if it was an
  37993. archive.
  37994. Note that for directories it is not possible to retrieve the
  37995. number of entries or list the entries. It is however possible
  37996. to check if the archive has a particular entry.
  37997. path: a path to a directory as it would be given to opendir(3).
  37998. """
  37999. return _mupdf.fz_open_directory(path)
  38000. def fz_open_document(filename):
  38001. r"""
  38002. Class-aware wrapper for `::fz_open_document()`.
  38003. Open a document file and read its basic structure so pages and
  38004. objects can be located. MuPDF will try to repair broken
  38005. documents (without actually changing the file contents).
  38006. The returned fz_document is used when calling most other
  38007. document related functions.
  38008. filename: a path to a file as it would be given to open(2).
  38009. """
  38010. return _mupdf.fz_open_document(filename)
  38011. def fz_open_document_with_buffer(magic, buffer):
  38012. r"""
  38013. Class-aware wrapper for `::fz_open_document_with_buffer()`.
  38014. Open a document using a buffer rather than opening a file on disk.
  38015. """
  38016. return _mupdf.fz_open_document_with_buffer(magic, buffer)
  38017. def fz_open_document_with_stream(magic, stream):
  38018. r"""
  38019. Class-aware wrapper for `::fz_open_document_with_stream()`.
  38020. Open a document using the specified stream object rather than
  38021. opening a file on disk.
  38022. magic: a string used to detect document type; either a file name
  38023. or mime-type.
  38024. stream: a stream representing the contents of the document file.
  38025. NOTE: The caller retains ownership of 'stream' - the document will take its
  38026. own reference if required.
  38027. """
  38028. return _mupdf.fz_open_document_with_stream(magic, stream)
  38029. def fz_open_document_with_stream_and_dir(magic, stream, dir):
  38030. r"""
  38031. Class-aware wrapper for `::fz_open_document_with_stream_and_dir()`.
  38032. Open a document using the specified stream object rather than
  38033. opening a file on disk.
  38034. magic: a string used to detect document type; either a file name
  38035. or mime-type.
  38036. stream: a stream representing the contents of the document file.
  38037. dir: a 'directory context' for those filetypes that need it.
  38038. NOTE: The caller retains ownership of 'stream' and 'dir' - the document will
  38039. take its own references if required.
  38040. """
  38041. return _mupdf.fz_open_document_with_stream_and_dir(magic, stream, dir)
  38042. def fz_open_endstream_filter(chain, len, offset):
  38043. r"""
  38044. Class-aware wrapper for `::fz_open_endstream_filter()`.
  38045. The endstream filter reads a PDF substream, and starts to look
  38046. for an 'endstream' token after the specified length.
  38047. """
  38048. return _mupdf.fz_open_endstream_filter(chain, len, offset)
  38049. def fz_open_faxd(chain, k, end_of_line, encoded_byte_align, columns, rows, end_of_block, black_is_1):
  38050. r"""
  38051. Class-aware wrapper for `::fz_open_faxd()`.
  38052. faxd filter performs FAX decoding of data read from
  38053. the chained filter.
  38054. k: see fax specification (fax default is 0).
  38055. end_of_line: whether we expect end of line markers (fax default
  38056. is 0).
  38057. encoded_byte_align: whether we align to bytes after each line
  38058. (fax default is 0).
  38059. columns: how many columns in the image (fax default is 1728).
  38060. rows: 0 for unspecified or the number of rows of data to expect.
  38061. end_of_block: whether we expect end of block markers (fax
  38062. default is 1).
  38063. black_is_1: determines the polarity of the image (fax default is
  38064. 0).
  38065. """
  38066. return _mupdf.fz_open_faxd(chain, k, end_of_line, encoded_byte_align, columns, rows, end_of_block, black_is_1)
  38067. def fz_open_file(filename):
  38068. r"""
  38069. Class-aware wrapper for `::fz_open_file()`.
  38070. Open the named file and wrap it in a stream.
  38071. filename: Path to a file. On non-Windows machines the filename
  38072. should be exactly as it would be passed to fopen(2). On Windows
  38073. machines, the path should be UTF-8 encoded so that non-ASCII
  38074. characters can be represented. Other platforms do the encoding
  38075. as standard anyway (and in most cases, particularly for MacOS
  38076. and Linux, the encoding they use is UTF-8 anyway).
  38077. """
  38078. return _mupdf.fz_open_file(filename)
  38079. def fz_open_file_autodelete(filename):
  38080. r"""
  38081. Class-aware wrapper for `::fz_open_file_autodelete()`.
  38082. Do the same as fz_open_file, but delete the file upon close.
  38083. """
  38084. return _mupdf.fz_open_file_autodelete(filename)
  38085. def fz_open_file_ptr_no_close(file):
  38086. r"""
  38087. Class-aware wrapper for `::fz_open_file_ptr_no_close()`.
  38088. Create a stream from a FILE * that will not be closed
  38089. when the stream is dropped.
  38090. """
  38091. return _mupdf.fz_open_file_ptr_no_close(file)
  38092. def fz_open_flated(chain, window_bits):
  38093. r"""
  38094. Class-aware wrapper for `::fz_open_flated()`.
  38095. flated filter performs LZ77 decoding (inflating) of data read
  38096. from the chained filter.
  38097. window_bits: How large a decompression window to use. Typically
  38098. 15. A negative number, -n, means to use n bits, but to expect
  38099. raw data with no header.
  38100. """
  38101. return _mupdf.fz_open_flated(chain, window_bits)
  38102. def fz_open_image_decomp_stream(arg_0, arg_1, l2factor):
  38103. r"""
  38104. Class-aware wrapper for `::fz_open_image_decomp_stream()`.
  38105. This function has out-params. Python/C# wrappers look like:
  38106. `fz_open_image_decomp_stream(::fz_stream *arg_0, ::fz_compression_params *arg_1)` => `(fz_stream *, int l2factor)`
  38107. Open a stream to read the decompressed version of another stream
  38108. with optional log2 subsampling.
  38109. """
  38110. return _mupdf.fz_open_image_decomp_stream(arg_0, arg_1, l2factor)
  38111. def fz_open_image_decomp_stream_from_buffer(arg_0, l2factor):
  38112. r"""
  38113. Class-aware wrapper for `::fz_open_image_decomp_stream_from_buffer()`.
  38114. This function has out-params. Python/C# wrappers look like:
  38115. `fz_open_image_decomp_stream_from_buffer(::fz_compressed_buffer *arg_0)` => `(fz_stream *, int l2factor)`
  38116. Open a stream to read the decompressed version of a buffer,
  38117. with optional log2 subsampling.
  38118. l2factor = NULL for no subsampling, or a pointer to an integer
  38119. containing the maximum log2 subsample factor acceptable (0 =
  38120. none, 1 = halve dimensions, 2 = quarter dimensions etc). If
  38121. non-NULL, then *l2factor will be updated on exit with the actual
  38122. log2 subsample factor achieved.
  38123. """
  38124. return _mupdf.fz_open_image_decomp_stream_from_buffer(arg_0, l2factor)
  38125. def fz_open_jbig2d(chain, globals, embedded):
  38126. r"""
  38127. Class-aware wrapper for `::fz_open_jbig2d()`.
  38128. Open a filter that performs jbig2 decompression on the chained
  38129. stream, using the optional globals record.
  38130. """
  38131. return _mupdf.fz_open_jbig2d(chain, globals, embedded)
  38132. def fz_open_leecher(chain, buf):
  38133. r"""
  38134. Class-aware wrapper for `::fz_open_leecher()`.
  38135. Attach a filter to a stream that will store any
  38136. characters read from the stream into the supplied buffer.
  38137. chain: The underlying stream to leech from.
  38138. buf: The buffer into which the read data should be appended.
  38139. The buffer will be resized as required.
  38140. Returns pointer to newly created stream. May throw exceptions on
  38141. failure to allocate.
  38142. """
  38143. return _mupdf.fz_open_leecher(chain, buf)
  38144. def fz_open_libarchive_archive(filename):
  38145. r"""
  38146. Class-aware wrapper for `::fz_open_libarchive_archive()`.
  38147. Open an archive using libarchive.
  38148. An exception is thrown if the file is not supported by libarchive.
  38149. filename: a path to an archive file as it would be given to
  38150. open(2).
  38151. """
  38152. return _mupdf.fz_open_libarchive_archive(filename)
  38153. def fz_open_libarchive_archive_with_stream(file):
  38154. r"""
  38155. Class-aware wrapper for `::fz_open_libarchive_archive_with_stream()`.
  38156. Open an archive using libarchive.
  38157. Open an archive using a seekable stream object rather than
  38158. opening a file or directory on disk.
  38159. An exception is thrown if the stream is not supported by libarchive.
  38160. """
  38161. return _mupdf.fz_open_libarchive_archive_with_stream(file)
  38162. def fz_open_libarchived(chain):
  38163. r"""
  38164. Class-aware wrapper for `::fz_open_libarchived()`.
  38165. libarchived filter performs generic compressed decoding of data
  38166. in any format understood by libarchive from the chained filter.
  38167. This will throw an exception if libarchive is not built in, or
  38168. if the compression format is not recognised.
  38169. """
  38170. return _mupdf.fz_open_libarchived(chain)
  38171. def fz_open_lzwd(chain, early_change, min_bits, reverse_bits, old_tiff):
  38172. r"""
  38173. Class-aware wrapper for `::fz_open_lzwd()`.
  38174. lzwd filter performs LZW decoding of data read from the chained
  38175. filter.
  38176. early_change: (Default 1) specifies whether to change codes 1
  38177. bit early.
  38178. min_bits: (Default 9) specifies the minimum number of bits to
  38179. use.
  38180. reverse_bits: (Default 0) allows for compatibility with gif and
  38181. old style tiffs (1).
  38182. old_tiff: (Default 0) allows for different handling of the clear
  38183. code, as found in old style tiffs.
  38184. """
  38185. return _mupdf.fz_open_lzwd(chain, early_change, min_bits, reverse_bits, old_tiff)
  38186. def fz_open_memory(data, len):
  38187. r"""
  38188. Class-aware wrapper for `::fz_open_memory()`.
  38189. Open a block of memory as a stream.
  38190. data: Pointer to start of data block. Ownership of the data
  38191. block is NOT passed in.
  38192. len: Number of bytes in data block.
  38193. Returns pointer to newly created stream. May throw exceptions on
  38194. failure to allocate.
  38195. """
  38196. return _mupdf.fz_open_memory(data, len)
  38197. def fz_open_null_filter(chain, len, offset):
  38198. r"""
  38199. Class-aware wrapper for `::fz_open_null_filter()`.
  38200. The null filter reads a specified amount of data from the
  38201. substream.
  38202. """
  38203. return _mupdf.fz_open_null_filter(chain, len, offset)
  38204. def fz_open_predict(chain, predictor, columns, colors, bpc):
  38205. r"""
  38206. Class-aware wrapper for `::fz_open_predict()`.
  38207. predict filter performs pixel prediction on data read from
  38208. the chained filter.
  38209. predictor: 1 = copy, 2 = tiff, other = inline PNG predictor
  38210. columns: width of image in pixels
  38211. colors: number of components.
  38212. bpc: bits per component (typically 8)
  38213. """
  38214. return _mupdf.fz_open_predict(chain, predictor, columns, colors, bpc)
  38215. def fz_open_range_filter(chain, ranges, nranges):
  38216. r"""
  38217. Class-aware wrapper for `::fz_open_range_filter()`.
  38218. The range filter copies data from specified ranges of the
  38219. chained stream.
  38220. """
  38221. return _mupdf.fz_open_range_filter(chain, ranges, nranges)
  38222. def fz_open_reflowed_document(underdoc, opts):
  38223. r"""Class-aware wrapper for `::fz_open_reflowed_document()`."""
  38224. return _mupdf.fz_open_reflowed_document(underdoc, opts)
  38225. def fz_open_rld(chain):
  38226. r"""
  38227. Class-aware wrapper for `::fz_open_rld()`.
  38228. rld filter performs Run Length Decoding of data read
  38229. from the chained filter.
  38230. """
  38231. return _mupdf.fz_open_rld(chain)
  38232. def fz_open_sgilog16(chain, w):
  38233. r"""
  38234. Class-aware wrapper for `::fz_open_sgilog16()`.
  38235. SGI Log 16bit (greyscale) decode from the chained filter.
  38236. Decodes lines of w pixels to 8bpp greyscale.
  38237. """
  38238. return _mupdf.fz_open_sgilog16(chain, w)
  38239. def fz_open_sgilog24(chain, w):
  38240. r"""
  38241. Class-aware wrapper for `::fz_open_sgilog24()`.
  38242. SGI Log 24bit (LUV) decode from the chained filter.
  38243. Decodes lines of w pixels to 8bpc rgb.
  38244. """
  38245. return _mupdf.fz_open_sgilog24(chain, w)
  38246. def fz_open_sgilog32(chain, w):
  38247. r"""
  38248. Class-aware wrapper for `::fz_open_sgilog32()`.
  38249. SGI Log 32bit (LUV) decode from the chained filter.
  38250. Decodes lines of w pixels to 8bpc rgb.
  38251. """
  38252. return _mupdf.fz_open_sgilog32(chain, w)
  38253. def fz_open_tar_archive(filename):
  38254. r"""
  38255. Class-aware wrapper for `::fz_open_tar_archive()`.
  38256. Open a tar archive file.
  38257. An exception is thrown if the file is not a tar archive as
  38258. indicated by the presence of a tar signature.
  38259. filename: a path to a tar archive file as it would be given to
  38260. open(2).
  38261. """
  38262. return _mupdf.fz_open_tar_archive(filename)
  38263. def fz_open_tar_archive_with_stream(file):
  38264. r"""
  38265. Class-aware wrapper for `::fz_open_tar_archive_with_stream()`.
  38266. Open a tar archive stream.
  38267. Open an archive using a seekable stream object rather than
  38268. opening a file or directory on disk.
  38269. An exception is thrown if the stream is not a tar archive as
  38270. indicated by the presence of a tar signature.
  38271. """
  38272. return _mupdf.fz_open_tar_archive_with_stream(file)
  38273. def fz_open_thunder(chain, w):
  38274. r"""
  38275. Class-aware wrapper for `::fz_open_thunder()`.
  38276. 4bit greyscale Thunderscan decoding from the chained filter.
  38277. Decodes lines of w pixels to 8bpp greyscale.
  38278. """
  38279. return _mupdf.fz_open_thunder(chain, w)
  38280. def fz_open_zip_archive(path):
  38281. r"""
  38282. Class-aware wrapper for `::fz_open_zip_archive()`.
  38283. Open a zip archive file.
  38284. An exception is thrown if the file is not a zip archive as
  38285. indicated by the presence of a zip signature.
  38286. filename: a path to a zip archive file as it would be given to
  38287. open(2).
  38288. """
  38289. return _mupdf.fz_open_zip_archive(path)
  38290. def fz_open_zip_archive_with_stream(file):
  38291. r"""
  38292. Class-aware wrapper for `::fz_open_zip_archive_with_stream()`.
  38293. Open a zip archive stream.
  38294. Open an archive using a seekable stream object rather than
  38295. opening a file or directory on disk.
  38296. An exception is thrown if the stream is not a zip archive as
  38297. indicated by the presence of a zip signature.
  38298. """
  38299. return _mupdf.fz_open_zip_archive_with_stream(file)
  38300. def fz_opt_from_list(opt, optlist):
  38301. r"""
  38302. Class-aware wrapper for `::fz_opt_from_list()`.
  38303. Return the index of a (case-insensitive) option within an optlist.
  38304. For instance for optlist = "Foo|Bar|Baz", and opt = "bar",
  38305. this would return 1.
  38306. If the optlist ends with "|*" then that is a catch all case and
  38307. matches all options allowing the caller to process it itself.
  38308. fz_optarg will be set to point to the option, and the return
  38309. value will be the index of the '*' option within that list.
  38310. If an optlist entry ends with ':' (e.g. "Foo:") then that option
  38311. may have suboptions appended to it (for example "JPG:80") and
  38312. fz_optarg will be set to point at "80". Otherwise fz_optarg will
  38313. be set to NULL.
  38314. In the event of no-match found, prints an error and returns -1.
  38315. """
  38316. return _mupdf.fz_opt_from_list(opt, optlist)
  38317. def fz_option_eq(a, b):
  38318. r"""
  38319. Class-aware wrapper for `::fz_option_eq()`.
  38320. Check to see if an option, a, from a string matches a reference
  38321. option, b.
  38322. (i.e. a could be 'foo' or 'foo,bar...' etc, but b can only be
  38323. 'foo'.)
  38324. """
  38325. return _mupdf.fz_option_eq(a, b)
  38326. def fz_optpath(opt):
  38327. r"""
  38328. Class-aware wrapper for `::fz_optpath()`.
  38329. Convert "-" to "/dev/stdout" for use with command lines.
  38330. Also converts "nul" and "con" on Windows.
  38331. """
  38332. return _mupdf.fz_optpath(opt)
  38333. def fz_outline_glyph(font, gid, ctm):
  38334. r"""
  38335. Class-aware wrapper for `::fz_outline_glyph()`.
  38336. Look a glyph up from a font, and return the outline of the
  38337. glyph using the given transform.
  38338. The caller owns the returned path, and so is responsible for
  38339. ensuring that it eventually gets dropped.
  38340. """
  38341. return _mupdf.fz_outline_glyph(font, gid, ctm)
  38342. def fz_outline_iterator_delete(iter):
  38343. r"""
  38344. Class-aware wrapper for `::fz_outline_iterator_delete()`.
  38345. Delete the current item.
  38346. This implicitly moves us to the 'next' item, and the return code is as for fz_outline_iterator_next.
  38347. """
  38348. return _mupdf.fz_outline_iterator_delete(iter)
  38349. def fz_outline_iterator_down(iter):
  38350. r"""Class-aware wrapper for `::fz_outline_iterator_down()`."""
  38351. return _mupdf.fz_outline_iterator_down(iter)
  38352. def fz_outline_iterator_item(iter):
  38353. r"""
  38354. Class-aware wrapper for `::fz_outline_iterator_item()`.
  38355. Call to get the current outline item.
  38356. Can return NULL. The item is only valid until the next call.
  38357. """
  38358. return _mupdf.fz_outline_iterator_item(iter)
  38359. def fz_outline_iterator_next(iter):
  38360. r"""
  38361. Class-aware wrapper for `::fz_outline_iterator_next()`.
  38362. Calls to move the iterator position.
  38363. A negative return value means we could not move as requested. Otherwise:
  38364. 0 = the final position has a valid item.
  38365. 1 = not a valid item, but we can insert an item here.
  38366. """
  38367. return _mupdf.fz_outline_iterator_next(iter)
  38368. def fz_outline_iterator_prev(iter):
  38369. r"""Class-aware wrapper for `::fz_outline_iterator_prev()`."""
  38370. return _mupdf.fz_outline_iterator_prev(iter)
  38371. def fz_outline_iterator_up(iter):
  38372. r"""Class-aware wrapper for `::fz_outline_iterator_up()`."""
  38373. return _mupdf.fz_outline_iterator_up(iter)
  38374. def fz_output_accelerator(doc, accel):
  38375. r"""
  38376. Class-aware wrapper for `::fz_output_accelerator()`.
  38377. Output accelerator data for the document to a given output
  38378. stream.
  38379. """
  38380. return _mupdf.fz_output_accelerator(doc, accel)
  38381. def fz_output_supports_stream(out):
  38382. r"""
  38383. Class-aware wrapper for `::fz_output_supports_stream()`.
  38384. Query whether a given fz_output supports fz_stream_from_output.
  38385. """
  38386. return _mupdf.fz_output_supports_stream(out)
  38387. def fz_output_xml(out, item, level):
  38388. r"""
  38389. Class-aware wrapper for `::fz_output_xml()`.
  38390. Pretty-print an XML tree to given output.
  38391. """
  38392. return _mupdf.fz_output_xml(out, item, level)
  38393. def fz_overlaps_rect(a, b):
  38394. r"""
  38395. Class-aware wrapper for `::fz_overlaps_rect()`.
  38396. Test rectangle overlap.
  38397. Returns true if the area of the overlap is
  38398. non zero.
  38399. """
  38400. return _mupdf.fz_overlaps_rect(a, b)
  38401. def fz_pack_path(pack, path):
  38402. r"""
  38403. Class-aware wrapper for `::fz_pack_path()`.
  38404. Pack a path into the given block.
  38405. To minimise the size of paths, this function allows them to be
  38406. packed into a buffer with other information. Paths can be used
  38407. interchangeably regardless of how they are packed.
  38408. pack: Pointer to a block of data to pack the path into. Should
  38409. be aligned by the caller to the same alignment as required for
  38410. a fz_path pointer.
  38411. path: The path to pack.
  38412. Returns the number of bytes within the block used. Callers can
  38413. access the packed path data by casting the value of pack on
  38414. entry to be a fz_path *.
  38415. Throws exceptions on failure to allocate.
  38416. Implementation details: Paths can be 'unpacked', 'flat', or
  38417. 'open'. Standard paths, as created are 'unpacked'. Paths
  38418. will be packed as 'flat', unless they are too large
  38419. (where large indicates that they exceed some private
  38420. implementation defined limits, currently including having
  38421. more than 256 coordinates or commands).
  38422. Large paths are 'open' packed as a header into the given block,
  38423. plus pointers to other data blocks.
  38424. Users should not have to care about whether paths are 'open'
  38425. or 'flat' packed. Simply pack a path (if required), and then
  38426. forget about the details.
  38427. """
  38428. return _mupdf.fz_pack_path(pack, path)
  38429. def fz_packed_path_size(path):
  38430. r"""
  38431. Class-aware wrapper for `::fz_packed_path_size()`.
  38432. Return the number of bytes required to pack a path.
  38433. """
  38434. return _mupdf.fz_packed_path_size(path)
  38435. def fz_page_label(page, buf, size):
  38436. r"""
  38437. Class-aware wrapper for `::fz_page_label()`.
  38438. Get page label for a given page.
  38439. """
  38440. return _mupdf.fz_page_label(page, buf, size)
  38441. def fz_page_number_from_location(doc, loc):
  38442. r"""
  38443. Class-aware wrapper for `::fz_page_number_from_location()`.
  38444. Converts from chapter+page to page number. This may cause many
  38445. chapters to be laid out in order to calculate the number of
  38446. pages within those chapters.
  38447. """
  38448. return _mupdf.fz_page_number_from_location(doc, loc)
  38449. def fz_page_presentation(page, transition, duration):
  38450. r"""
  38451. Class-aware wrapper for `::fz_page_presentation()`.
  38452. This function has out-params. Python/C# wrappers look like:
  38453. `fz_page_presentation(::fz_page *page, ::fz_transition *transition)` => `(fz_transition *, float duration)`
  38454. Get the presentation details for a given page.
  38455. transition: A pointer to a transition struct to fill out.
  38456. duration: A pointer to a place to set the page duration in
  38457. seconds. Will be set to 0 if no transition is specified for the
  38458. page.
  38459. Returns: a pointer to the transition structure, or NULL if there
  38460. is no transition specified for the page.
  38461. """
  38462. return _mupdf.fz_page_presentation(page, transition, duration)
  38463. def fz_page_separations(page):
  38464. r"""
  38465. Class-aware wrapper for `::fz_page_separations()`.
  38466. Get the separations details for a page.
  38467. This will be NULL, unless the format specifically supports
  38468. separations (such as PDF files). May be NULL even
  38469. so, if there are no separations on a page.
  38470. Returns a reference that must be dropped.
  38471. """
  38472. return _mupdf.fz_page_separations(page)
  38473. def fz_page_uses_overprint(page):
  38474. r"""
  38475. Class-aware wrapper for `::fz_page_uses_overprint()`.
  38476. Query if a given page requires overprint.
  38477. """
  38478. return _mupdf.fz_page_uses_overprint(page)
  38479. def fz_paint_shade(shade, override_cs, ctm, dest, color_params, bbox, eop, cache):
  38480. r"""
  38481. Class-aware wrapper for `::fz_paint_shade()`.
  38482. This function has out-params. Python/C# wrappers look like:
  38483. `fz_paint_shade(::fz_shade *shade, ::fz_colorspace *override_cs, ::fz_matrix ctm, ::fz_pixmap *dest, ::fz_color_params color_params, ::fz_irect bbox, const ::fz_overprint *eop, ::fz_shade_color_cache **cache)` =>
  38484. Render a shade to a given pixmap.
  38485. shade: The shade to paint.
  38486. override_cs: NULL, or colorspace to override the shades
  38487. inbuilt colorspace.
  38488. ctm: The transform to apply.
  38489. dest: The pixmap to render into.
  38490. color_params: The color rendering settings
  38491. bbox: Pointer to a bounding box to limit the rendering
  38492. of the shade.
  38493. eop: NULL, or pointer to overprint bitmap.
  38494. cache: *cache is used to cache color information. If *cache is NULL it
  38495. is set to point to a new fz_shade_color_cache. If cache is NULL it is
  38496. ignored.
  38497. """
  38498. return _mupdf.fz_paint_shade(shade, override_cs, ctm, dest, color_params, bbox, eop, cache)
  38499. def fz_paragraph_break(page):
  38500. r"""
  38501. Class-aware wrapper for `::fz_paragraph_break()`.
  38502. Attempt to break paragraphs at plausible places.
  38503. """
  38504. return _mupdf.fz_paragraph_break(page)
  38505. def fz_parse_page_range(s, a, b, n):
  38506. r"""
  38507. Class-aware wrapper for `::fz_parse_page_range()`.
  38508. This function has out-params. Python/C# wrappers look like:
  38509. `fz_parse_page_range(const char *s, int n)` => `(const char *, int a, int b)`
  38510. """
  38511. return _mupdf.fz_parse_page_range(s, a, b, n)
  38512. def fz_parse_pdfocr_options(opts, args):
  38513. r"""
  38514. Class-aware wrapper for `::fz_parse_pdfocr_options()`.
  38515. Parse PDFOCR options.
  38516. Currently defined options and values are as follows:
  38517. compression=none: No compression
  38518. compression=flate: Flate compression
  38519. strip-height=n: Strip height (default 16)
  38520. ocr-language=<lang>: OCR Language (default eng)
  38521. ocr-datadir=<datadir>: OCR data path (default rely on TESSDATA_PREFIX)
  38522. """
  38523. return _mupdf.fz_parse_pdfocr_options(opts, args)
  38524. def fz_parse_stext_options(opts, string):
  38525. r"""
  38526. Class-aware wrapper for `::fz_parse_stext_options()`.
  38527. Parse stext device options from a comma separated key-value
  38528. string.
  38529. """
  38530. return _mupdf.fz_parse_stext_options(opts, string)
  38531. def fz_parse_xml(buf, preserve_white):
  38532. r"""
  38533. Class-aware wrapper for `::fz_parse_xml()`.
  38534. Parse the contents of buffer into a tree of xml nodes.
  38535. preserve_white: whether to keep or delete all-whitespace nodes.
  38536. """
  38537. return _mupdf.fz_parse_xml(buf, preserve_white)
  38538. def fz_parse_xml_archive_entry(dir, filename, preserve_white):
  38539. r"""
  38540. Class-aware wrapper for `::fz_parse_xml_archive_entry()`.
  38541. Parse the contents of an archive entry into a tree of xml nodes.
  38542. preserve_white: whether to keep or delete all-whitespace nodes.
  38543. """
  38544. return _mupdf.fz_parse_xml_archive_entry(dir, filename, preserve_white)
  38545. def fz_parse_xml_from_html5(buf):
  38546. r"""
  38547. Class-aware wrapper for `::fz_parse_xml_from_html5()`.
  38548. Parse the contents of a buffer into a tree of XML nodes,
  38549. using the HTML5 parsing algorithm.
  38550. """
  38551. return _mupdf.fz_parse_xml_from_html5(buf)
  38552. def fz_parse_xml_stream(stream, preserve_white):
  38553. r"""
  38554. Class-aware wrapper for `::fz_parse_xml_stream()`.
  38555. Parse the contents of buffer into a tree of xml nodes.
  38556. preserve_white: whether to keep or delete all-whitespace nodes.
  38557. """
  38558. return _mupdf.fz_parse_xml_stream(stream, preserve_white)
  38559. def fz_path_is_rect(path, ctm):
  38560. r"""
  38561. Class-aware wrapper for `::fz_path_is_rect()`.
  38562. Check whether a given path, under the given transform
  38563. is an axis-aligned rectangle.
  38564. We accept zero width or height rectangles, so
  38565. "move 100, 100; line 200, 100" would count as
  38566. a rectangle too.
  38567. """
  38568. return _mupdf.fz_path_is_rect(path, ctm)
  38569. def fz_path_is_rect_with_bounds(path, ctm, bounds):
  38570. r"""
  38571. Class-aware wrapper for `::fz_path_is_rect_with_bounds()`.
  38572. Check whether a given path, under the given transform
  38573. is an axis-aligned rectangle.
  38574. We accept zero width or height rectangles, so
  38575. "move 100, 100; line 200, 100" would count as
  38576. a rectangle too.
  38577. bounds = NULL, or place to return the rectangle
  38578. bounds if the path is a rectangle.
  38579. """
  38580. return _mupdf.fz_path_is_rect_with_bounds(path, ctm, bounds)
  38581. def fz_pcl_preset(opts, preset):
  38582. r"""
  38583. Class-aware wrapper for `::fz_pcl_preset()`.
  38584. Initialize PCL option struct for a given preset.
  38585. Currently defined presets include:
  38586. generic Generic PCL printer
  38587. ljet4 HP DeskJet
  38588. dj500 HP DeskJet 500
  38589. fs600 Kyocera FS-600
  38590. lj HP LaserJet, HP LaserJet Plus
  38591. lj2 HP LaserJet IIp, HP LaserJet IId
  38592. lj3 HP LaserJet III
  38593. lj3d HP LaserJet IIId
  38594. lj4 HP LaserJet 4
  38595. lj4pl HP LaserJet 4 PL
  38596. lj4d HP LaserJet 4d
  38597. lp2563b HP 2563B line printer
  38598. oce9050 Oce 9050 Line printer
  38599. """
  38600. return _mupdf.fz_pcl_preset(opts, preset)
  38601. def fz_pdfocr_band_writer_set_progress(writer, progress_fn, progress_arg):
  38602. r"""
  38603. Class-aware wrapper for `::fz_pdfocr_band_writer_set_progress()`.
  38604. Set the progress callback for a pdfocr bandwriter.
  38605. """
  38606. return _mupdf.fz_pdfocr_band_writer_set_progress(writer, progress_fn, progress_arg)
  38607. def fz_pdfocr_writer_set_progress(writer, progress, arg_2):
  38608. r"""Class-aware wrapper for `::fz_pdfocr_writer_set_progress()`."""
  38609. return _mupdf.fz_pdfocr_writer_set_progress(writer, progress, arg_2)
  38610. def fz_peek_byte(stm):
  38611. r"""
  38612. Class-aware wrapper for `::fz_peek_byte()`.
  38613. Peek at the next byte in a stream.
  38614. stm: The stream to peek at.
  38615. Returns -1 for EOF, or the next byte that will be read.
  38616. """
  38617. return _mupdf.fz_peek_byte(stm)
  38618. def fz_pixmap_alpha(pix):
  38619. r"""
  38620. Class-aware wrapper for `::fz_pixmap_alpha()`.
  38621. Return the number of alpha planes in a pixmap.
  38622. Returns the number of alphas. Does not throw exceptions.
  38623. """
  38624. return _mupdf.fz_pixmap_alpha(pix)
  38625. def fz_pixmap_bbox(pix):
  38626. r"""
  38627. Class-aware wrapper for `::fz_pixmap_bbox()`.
  38628. Return the bounding box for a pixmap.
  38629. """
  38630. return _mupdf.fz_pixmap_bbox(pix)
  38631. def fz_pixmap_colorants(pix):
  38632. r"""
  38633. Class-aware wrapper for `::fz_pixmap_colorants()`.
  38634. Return the number of colorants in a pixmap.
  38635. Returns the number of colorants (components, less any spots and
  38636. alpha).
  38637. """
  38638. return _mupdf.fz_pixmap_colorants(pix)
  38639. def fz_pixmap_colorspace(pix):
  38640. r"""
  38641. Class-aware wrapper for `::fz_pixmap_colorspace()`.
  38642. Return the colorspace of a pixmap
  38643. Returns colorspace.
  38644. """
  38645. return _mupdf.fz_pixmap_colorspace(pix)
  38646. def fz_pixmap_components(pix):
  38647. r"""
  38648. Class-aware wrapper for `::fz_pixmap_components()`.
  38649. Return the number of components in a pixmap.
  38650. Returns the number of components (including spots and alpha).
  38651. """
  38652. return _mupdf.fz_pixmap_components(pix)
  38653. def fz_pixmap_height(pix):
  38654. r"""
  38655. Class-aware wrapper for `::fz_pixmap_height()`.
  38656. Return the height of the pixmap in pixels.
  38657. """
  38658. return _mupdf.fz_pixmap_height(pix)
  38659. def fz_pixmap_image_tile(cimg):
  38660. r"""
  38661. Class-aware wrapper for `::fz_pixmap_image_tile()`.
  38662. Retrieve the underlying fz_pixmap for an image.
  38663. Returns a pointer to the underlying fz_pixmap for an image,
  38664. or NULL if this image is not based upon an fz_pixmap.
  38665. No reference is returned. Lifespan is limited to that of
  38666. the image itself. If required, use fz_keep_pixmap to take
  38667. a reference to keep it longer.
  38668. """
  38669. return _mupdf.fz_pixmap_image_tile(cimg)
  38670. def fz_pixmap_samples(pix):
  38671. r"""
  38672. Class-aware wrapper for `::fz_pixmap_samples()`.
  38673. Returns a pointer to the pixel data of a pixmap.
  38674. Returns the pointer.
  38675. """
  38676. return _mupdf.fz_pixmap_samples(pix)
  38677. def fz_pixmap_samples_int(pixmap):
  38678. r"""Class-aware wrapper for `::fz_pixmap_samples_int()`."""
  38679. return _mupdf.fz_pixmap_samples_int(pixmap)
  38680. def fz_pixmap_size(pix):
  38681. r"""
  38682. Class-aware wrapper for `::fz_pixmap_size()`.
  38683. Return sizeof fz_pixmap plus size of data, in bytes.
  38684. """
  38685. return _mupdf.fz_pixmap_size(pix)
  38686. def fz_pixmap_spots(pix):
  38687. r"""
  38688. Class-aware wrapper for `::fz_pixmap_spots()`.
  38689. Return the number of spots in a pixmap.
  38690. Returns the number of spots (components, less colorants and
  38691. alpha). Does not throw exceptions.
  38692. """
  38693. return _mupdf.fz_pixmap_spots(pix)
  38694. def fz_pixmap_stride(pix):
  38695. r"""
  38696. Class-aware wrapper for `::fz_pixmap_stride()`.
  38697. Return the number of bytes in a row in the pixmap.
  38698. """
  38699. return _mupdf.fz_pixmap_stride(pix)
  38700. def fz_pixmap_width(pix):
  38701. r"""
  38702. Class-aware wrapper for `::fz_pixmap_width()`.
  38703. Return the width of the pixmap in pixels.
  38704. """
  38705. return _mupdf.fz_pixmap_width(pix)
  38706. def fz_pixmap_x(pix):
  38707. r"""
  38708. Class-aware wrapper for `::fz_pixmap_x()`.
  38709. Return the x value of the pixmap in pixels.
  38710. """
  38711. return _mupdf.fz_pixmap_x(pix)
  38712. def fz_pixmap_y(pix):
  38713. r"""
  38714. Class-aware wrapper for `::fz_pixmap_y()`.
  38715. Return the y value of the pixmap in pixels.
  38716. """
  38717. return _mupdf.fz_pixmap_y(pix)
  38718. def fz_place_story(story, where, filled):
  38719. r"""Class-aware wrapper for `::fz_place_story()`."""
  38720. return _mupdf.fz_place_story(story, where, filled)
  38721. def fz_place_story_flags(story, where, filled, flags):
  38722. r"""Class-aware wrapper for `::fz_place_story_flags()`."""
  38723. return _mupdf.fz_place_story_flags(story, where, filled, flags)
  38724. def fz_pool_alloc(pool, size):
  38725. r"""
  38726. Class-aware wrapper for `::fz_pool_alloc()`.
  38727. Allocate a block of size bytes from the pool.
  38728. """
  38729. return _mupdf.fz_pool_alloc(pool, size)
  38730. def fz_pool_array_append(arr, idx):
  38731. r"""
  38732. Class-aware wrapper for `::fz_pool_array_append()`.
  38733. This function has out-params. Python/C# wrappers look like:
  38734. `fz_pool_array_append(::fz_pool_array *arr)` => `(void *, size_t idx)`
  38735. Append an element to the end of the array.
  38736. Returns a pointer to the new element (initially all 0's), and
  38737. (optionally) the index of that element.
  38738. """
  38739. return _mupdf.fz_pool_array_append(arr, idx)
  38740. def fz_pool_array_len(arr):
  38741. r"""
  38742. Class-aware wrapper for `::fz_pool_array_len()`.
  38743. Get the length of the array.
  38744. """
  38745. return _mupdf.fz_pool_array_len(arr)
  38746. def fz_pool_array_lookup(arr, idx):
  38747. r"""
  38748. Class-aware wrapper for `::fz_pool_array_lookup()`.
  38749. Lookup an element in the array.
  38750. """
  38751. return _mupdf.fz_pool_array_lookup(arr, idx)
  38752. def fz_pool_size(pool):
  38753. r"""
  38754. Class-aware wrapper for `::fz_pool_size()`.
  38755. The current size of the pool.
  38756. The number of bytes of storage currently allocated to the pool.
  38757. This is the total of the storage used for the blocks making
  38758. up the pool, rather then total of the allocated blocks so far,
  38759. so it will increase in 'lumps'.
  38760. from the pool, then the pool size may still be X
  38761. """
  38762. return _mupdf.fz_pool_size(pool)
  38763. def fz_pool_strdup(pool, s):
  38764. r"""
  38765. Class-aware wrapper for `::fz_pool_strdup()`.
  38766. strdup equivalent allocating from the pool.
  38767. """
  38768. return _mupdf.fz_pool_strdup(pool, s)
  38769. def fz_pop_clip(dev):
  38770. r"""Class-aware wrapper for `::fz_pop_clip()`."""
  38771. return _mupdf.fz_pop_clip(dev)
  38772. def fz_post_scale(m, sx, sy):
  38773. r"""
  38774. Class-aware wrapper for `::fz_post_scale()`.
  38775. Scale a matrix by postmultiplication.
  38776. m: Pointer to the matrix to scale
  38777. sx, sy: Scaling factors along the X- and Y-axes. A scaling
  38778. factor of 1.0 will not cause any scaling along the relevant
  38779. axis.
  38780. Returns m (updated).
  38781. """
  38782. return _mupdf.fz_post_scale(m, sx, sy)
  38783. def fz_pre_rotate(m, degrees):
  38784. r"""
  38785. Class-aware wrapper for `::fz_pre_rotate()`.
  38786. Rotate a transformation by premultiplying.
  38787. The premultiplied matrix is of the form
  38788. [ cos(deg) sin(deg) -sin(deg) cos(deg) 0 0 ].
  38789. m: Pointer to matrix to premultiply.
  38790. degrees: Degrees of counter clockwise rotation. Values less
  38791. than zero and greater than 360 are handled as expected.
  38792. Returns m (updated).
  38793. """
  38794. return _mupdf.fz_pre_rotate(m, degrees)
  38795. def fz_pre_scale(m, sx, sy):
  38796. r"""
  38797. Class-aware wrapper for `::fz_pre_scale()`.
  38798. Scale a matrix by premultiplication.
  38799. m: Pointer to the matrix to scale
  38800. sx, sy: Scaling factors along the X- and Y-axes. A scaling
  38801. factor of 1.0 will not cause any scaling along the relevant
  38802. axis.
  38803. Returns m (updated).
  38804. """
  38805. return _mupdf.fz_pre_scale(m, sx, sy)
  38806. def fz_pre_shear(m, sx, sy):
  38807. r"""
  38808. Class-aware wrapper for `::fz_pre_shear()`.
  38809. Premultiply a matrix with a shearing matrix.
  38810. The shearing matrix is of the form [ 1 sy sx 1 0 0 ].
  38811. m: pointer to matrix to premultiply
  38812. sx, sy: Shearing factors. A shearing factor of 0.0 will not
  38813. cause any shearing along the relevant axis.
  38814. Returns m (updated).
  38815. """
  38816. return _mupdf.fz_pre_shear(m, sx, sy)
  38817. def fz_pre_translate(m, tx, ty):
  38818. r"""
  38819. Class-aware wrapper for `::fz_pre_translate()`.
  38820. Translate a matrix by premultiplication.
  38821. m: The matrix to translate
  38822. tx, ty: Translation distances along the X- and Y-axes. A
  38823. translation of 0 will not cause any translation along the
  38824. relevant axis.
  38825. Returns m.
  38826. """
  38827. return _mupdf.fz_pre_translate(m, tx, ty)
  38828. def fz_prepare_t3_glyph(font, gid):
  38829. r"""
  38830. Class-aware wrapper for `::fz_prepare_t3_glyph()`.
  38831. Force a type3 font to cache the displaylist for a given glyph
  38832. id.
  38833. This caching can involve reading the underlying file, so must
  38834. happen ahead of time, so we aren't suddenly forced to read the
  38835. file while playing a displaylist back.
  38836. """
  38837. return _mupdf.fz_prepare_t3_glyph(font, gid)
  38838. def fz_previous_page(doc, loc):
  38839. r"""
  38840. Class-aware wrapper for `::fz_previous_page()`.
  38841. Function to get the location of the previous page (allowing for
  38842. the end of chapters etc). If already at the start of the
  38843. document, returns the current page.
  38844. """
  38845. return _mupdf.fz_previous_page(doc, loc)
  38846. def fz_print_stext_header_as_html(out):
  38847. r"""Class-aware wrapper for `::fz_print_stext_header_as_html()`."""
  38848. return _mupdf.fz_print_stext_header_as_html(out)
  38849. def fz_print_stext_header_as_xhtml(out):
  38850. r"""Class-aware wrapper for `::fz_print_stext_header_as_xhtml()`."""
  38851. return _mupdf.fz_print_stext_header_as_xhtml(out)
  38852. def fz_print_stext_page_as_html(out, page, id):
  38853. r"""
  38854. Class-aware wrapper for `::fz_print_stext_page_as_html()`.
  38855. Output structured text to a file in HTML (visual) format.
  38856. """
  38857. return _mupdf.fz_print_stext_page_as_html(out, page, id)
  38858. def fz_print_stext_page_as_json(out, page, scale):
  38859. r"""
  38860. Class-aware wrapper for `::fz_print_stext_page_as_json()`.
  38861. Output structured text to a file in JSON format.
  38862. """
  38863. return _mupdf.fz_print_stext_page_as_json(out, page, scale)
  38864. def fz_print_stext_page_as_text(out, page):
  38865. r"""
  38866. Class-aware wrapper for `::fz_print_stext_page_as_text()`.
  38867. Output structured text to a file in plain-text UTF-8 format.
  38868. """
  38869. return _mupdf.fz_print_stext_page_as_text(out, page)
  38870. def fz_print_stext_page_as_xhtml(out, page, id):
  38871. r"""
  38872. Class-aware wrapper for `::fz_print_stext_page_as_xhtml()`.
  38873. Output structured text to a file in XHTML (semantic) format.
  38874. """
  38875. return _mupdf.fz_print_stext_page_as_xhtml(out, page, id)
  38876. def fz_print_stext_page_as_xml(out, page, id):
  38877. r"""
  38878. Class-aware wrapper for `::fz_print_stext_page_as_xml()`.
  38879. Output structured text to a file in XML format.
  38880. """
  38881. return _mupdf.fz_print_stext_page_as_xml(out, page, id)
  38882. def fz_print_stext_trailer_as_html(out):
  38883. r"""Class-aware wrapper for `::fz_print_stext_trailer_as_html()`."""
  38884. return _mupdf.fz_print_stext_trailer_as_html(out)
  38885. def fz_print_stext_trailer_as_xhtml(out):
  38886. r"""Class-aware wrapper for `::fz_print_stext_trailer_as_xhtml()`."""
  38887. return _mupdf.fz_print_stext_trailer_as_xhtml(out)
  38888. def fz_process_opened_pages(doc, process_openend_page, state):
  38889. r"""
  38890. Class-aware wrapper for `::fz_process_opened_pages()`.
  38891. Iterates over all opened pages of the document, calling the
  38892. provided callback for each page for processing. If the callback
  38893. returns non-NULL then the iteration stops and that value is returned
  38894. to the called of fz_process_opened_pages().
  38895. The state pointer provided to fz_process_opened_pages() is
  38896. passed on to the callback but is owned by the caller.
  38897. Returns the first non-NULL value returned by the callback,
  38898. or NULL if the callback returned NULL for all opened pages.
  38899. """
  38900. return _mupdf.fz_process_opened_pages(doc, process_openend_page, state)
  38901. def fz_process_shade(shade, ctm, scissor, prepare, process, process_arg):
  38902. r"""
  38903. Class-aware wrapper for `::fz_process_shade()`.
  38904. Process a shade, using supplied callback functions. This
  38905. decomposes the shading to a mesh (even ones that are not
  38906. natively meshes, such as linear or radial shadings), and
  38907. processes triangles from those meshes.
  38908. shade: The shade to process.
  38909. ctm: The transform to use
  38910. prepare: Callback function to 'prepare' each vertex.
  38911. This function is passed an array of floats, and populates
  38912. a fz_vertex structure.
  38913. process: This function is passed 3 pointers to vertex
  38914. structures, and actually performs the processing (typically
  38915. filling the area between the vertices).
  38916. process_arg: An opaque argument passed through from caller
  38917. to callback functions.
  38918. """
  38919. return _mupdf.fz_process_shade(shade, ctm, scissor, prepare, process, process_arg)
  38920. def fz_ptr_heap_insert(heap, v, HEAP_CMP):
  38921. r"""Class-aware wrapper for `::fz_ptr_heap_insert()`."""
  38922. return _mupdf.fz_ptr_heap_insert(heap, v, HEAP_CMP)
  38923. def fz_ptr_heap_sort(heap, HEAP_CMP):
  38924. r"""Class-aware wrapper for `::fz_ptr_heap_sort()`."""
  38925. return _mupdf.fz_ptr_heap_sort(heap, HEAP_CMP)
  38926. def fz_ptr_heap_uniq(heap, HEAP_CMP):
  38927. r"""Class-aware wrapper for `::fz_ptr_heap_uniq()`."""
  38928. return _mupdf.fz_ptr_heap_uniq(heap, HEAP_CMP)
  38929. def fz_purge_glyph_cache():
  38930. r"""
  38931. Class-aware wrapper for `::fz_purge_glyph_cache()`.
  38932. Purge all the glyphs from the cache.
  38933. """
  38934. return _mupdf.fz_purge_glyph_cache()
  38935. def fz_quad_from_rect(r):
  38936. r"""
  38937. Class-aware wrapper for `::fz_quad_from_rect()`.
  38938. Convert a rect to a quad (losslessly).
  38939. """
  38940. return _mupdf.fz_quad_from_rect(r)
  38941. def fz_quadto(path, x0, y0, x1, y1):
  38942. r"""
  38943. Class-aware wrapper for `::fz_quadto()`.
  38944. Append a 'quadto' command to an open path. (For a
  38945. quadratic bezier).
  38946. path: The path to modify.
  38947. x0, y0: The control coordinates for the quadratic curve.
  38948. x1, y1: The end coordinates for the quadratic curve.
  38949. Throws exceptions on failure to allocate, or attempting to
  38950. modify a packed path.
  38951. """
  38952. return _mupdf.fz_quadto(path, x0, y0, x1, y1)
  38953. def fz_range_limit_xml_char(c):
  38954. r"""Class-aware wrapper for `::fz_range_limit_xml_char()`."""
  38955. return _mupdf.fz_range_limit_xml_char(c)
  38956. def fz_read(stm, data, len):
  38957. r"""
  38958. Class-aware wrapper for `::fz_read()`.
  38959. Read from a stream into a given data block.
  38960. stm: The stream to read from.
  38961. data: The data block to read into.
  38962. len: The length of the data block (in bytes).
  38963. Returns the number of bytes read. May throw exceptions.
  38964. """
  38965. return _mupdf.fz_read(stm, data, len)
  38966. def fz_read_all(stm, initial):
  38967. r"""
  38968. Class-aware wrapper for `::fz_read_all()`.
  38969. Read all of a stream into a buffer.
  38970. stm: The stream to read from
  38971. initial: Suggested initial size for the buffer.
  38972. Returns a buffer created from reading from the stream. May throw
  38973. exceptions on failure to allocate.
  38974. """
  38975. return _mupdf.fz_read_all(stm, initial)
  38976. def fz_read_archive_entry(arch, name):
  38977. r"""
  38978. Class-aware wrapper for `::fz_read_archive_entry()`.
  38979. Reads all bytes in an archive entry
  38980. into a buffer.
  38981. name: Entry name to look for, this must be an exact match to
  38982. the entry name in the archive.
  38983. Throws an exception if a matching entry cannot be found.
  38984. """
  38985. return _mupdf.fz_read_archive_entry(arch, name)
  38986. def fz_read_best(stm, initial, truncated, worst_case):
  38987. r"""
  38988. Class-aware wrapper for `::fz_read_best()`.
  38989. This function has out-params. Python/C# wrappers look like:
  38990. `fz_read_best(::fz_stream *stm, size_t initial, size_t worst_case)` => `(fz_buffer *, int truncated)`
  38991. Attempt to read a stream into a buffer. If truncated
  38992. is NULL behaves as fz_read_all, sets a truncated flag in case of
  38993. error.
  38994. stm: The stream to read from.
  38995. initial: Suggested initial size for the buffer.
  38996. truncated: Flag to store success/failure indication in.
  38997. worst_case: 0 for unknown, otherwise an upper bound for the
  38998. size of the stream.
  38999. Returns a buffer created from reading from the stream.
  39000. """
  39001. return _mupdf.fz_read_best(stm, initial, truncated, worst_case)
  39002. def fz_read_bits(stm, n):
  39003. r"""
  39004. Class-aware wrapper for `::fz_read_bits()`.
  39005. Read the next n bits from a stream (assumed to
  39006. be packed most significant bit first).
  39007. stm: The stream to read from.
  39008. n: The number of bits to read, between 1 and 8*sizeof(int)
  39009. inclusive.
  39010. Returns -1 for EOF, or the required number of bits.
  39011. """
  39012. return _mupdf.fz_read_bits(stm, n)
  39013. def fz_read_byte(stm):
  39014. r"""
  39015. Class-aware wrapper for `::fz_read_byte()`.
  39016. Read the next byte from a stream.
  39017. stm: The stream t read from.
  39018. Returns -1 for end of stream, or the next byte. May
  39019. throw exceptions.
  39020. """
  39021. return _mupdf.fz_read_byte(stm)
  39022. def fz_read_file(filename):
  39023. r"""
  39024. Class-aware wrapper for `::fz_read_file()`.
  39025. Read all the contents of a file into a buffer.
  39026. """
  39027. return _mupdf.fz_read_file(filename)
  39028. def fz_read_float(stm):
  39029. r"""Class-aware wrapper for `::fz_read_float()`."""
  39030. return _mupdf.fz_read_float(stm)
  39031. def fz_read_float_le(stm):
  39032. r"""Class-aware wrapper for `::fz_read_float_le()`."""
  39033. return _mupdf.fz_read_float_le(stm)
  39034. def fz_read_int16(stm):
  39035. r"""Class-aware wrapper for `::fz_read_int16()`."""
  39036. return _mupdf.fz_read_int16(stm)
  39037. def fz_read_int16_le(stm):
  39038. r"""Class-aware wrapper for `::fz_read_int16_le()`."""
  39039. return _mupdf.fz_read_int16_le(stm)
  39040. def fz_read_int32(stm):
  39041. r"""Class-aware wrapper for `::fz_read_int32()`."""
  39042. return _mupdf.fz_read_int32(stm)
  39043. def fz_read_int32_le(stm):
  39044. r"""Class-aware wrapper for `::fz_read_int32_le()`."""
  39045. return _mupdf.fz_read_int32_le(stm)
  39046. def fz_read_int64(stm):
  39047. r"""Class-aware wrapper for `::fz_read_int64()`."""
  39048. return _mupdf.fz_read_int64(stm)
  39049. def fz_read_int64_le(stm):
  39050. r"""Class-aware wrapper for `::fz_read_int64_le()`."""
  39051. return _mupdf.fz_read_int64_le(stm)
  39052. def fz_read_line(stm, buf, max):
  39053. r"""
  39054. Class-aware wrapper for `::fz_read_line()`.
  39055. Read a line from stream into the buffer until either a
  39056. terminating newline or EOF, which it replaces with a null byte
  39057. ('').
  39058. Returns buf on success, and NULL when end of file occurs while
  39059. no characters have been read.
  39060. """
  39061. return _mupdf.fz_read_line(stm, buf, max)
  39062. def fz_read_rbits(stm, n):
  39063. r"""
  39064. Class-aware wrapper for `::fz_read_rbits()`.
  39065. Read the next n bits from a stream (assumed to
  39066. be packed least significant bit first).
  39067. stm: The stream to read from.
  39068. n: The number of bits to read, between 1 and 8*sizeof(int)
  39069. inclusive.
  39070. Returns (unsigned int)-1 for EOF, or the required number of bits.
  39071. """
  39072. return _mupdf.fz_read_rbits(stm, n)
  39073. def fz_read_rune(_in):
  39074. r"""
  39075. Class-aware wrapper for `::fz_read_rune()`.
  39076. Read a utf-8 rune from a stream.
  39077. In the event of encountering badly formatted utf-8 codes
  39078. (such as a leading code with an unexpected number of following
  39079. codes) no error/exception is given, but undefined values may be
  39080. returned.
  39081. """
  39082. return _mupdf.fz_read_rune(_in)
  39083. def fz_read_string(stm, buffer, len):
  39084. r"""
  39085. Class-aware wrapper for `::fz_read_string()`.
  39086. Read a null terminated string from the stream into
  39087. a buffer of a given length. The buffer will be null terminated.
  39088. Throws on failure (including the failure to fit the entire
  39089. string including the terminator into the buffer).
  39090. """
  39091. return _mupdf.fz_read_string(stm, buffer, len)
  39092. def fz_read_uint16(stm):
  39093. r"""
  39094. Class-aware wrapper for `::fz_read_uint16()`.
  39095. fz_read_[u]int(16|24|32|64)(_le)?
  39096. Read a 16/32/64 bit signed/unsigned integer from stream,
  39097. in big or little-endian byte orders.
  39098. Throws an exception if EOF is encountered.
  39099. """
  39100. return _mupdf.fz_read_uint16(stm)
  39101. def fz_read_uint16_le(stm):
  39102. r"""Class-aware wrapper for `::fz_read_uint16_le()`."""
  39103. return _mupdf.fz_read_uint16_le(stm)
  39104. def fz_read_uint24(stm):
  39105. r"""Class-aware wrapper for `::fz_read_uint24()`."""
  39106. return _mupdf.fz_read_uint24(stm)
  39107. def fz_read_uint24_le(stm):
  39108. r"""Class-aware wrapper for `::fz_read_uint24_le()`."""
  39109. return _mupdf.fz_read_uint24_le(stm)
  39110. def fz_read_uint32(stm):
  39111. r"""Class-aware wrapper for `::fz_read_uint32()`."""
  39112. return _mupdf.fz_read_uint32(stm)
  39113. def fz_read_uint32_le(stm):
  39114. r"""Class-aware wrapper for `::fz_read_uint32_le()`."""
  39115. return _mupdf.fz_read_uint32_le(stm)
  39116. def fz_read_uint64(stm):
  39117. r"""Class-aware wrapper for `::fz_read_uint64()`."""
  39118. return _mupdf.fz_read_uint64(stm)
  39119. def fz_read_uint64_le(stm):
  39120. r"""Class-aware wrapper for `::fz_read_uint64_le()`."""
  39121. return _mupdf.fz_read_uint64_le(stm)
  39122. def fz_read_utf16_be(stm):
  39123. r"""Class-aware wrapper for `::fz_read_utf16_be()`."""
  39124. return _mupdf.fz_read_utf16_be(stm)
  39125. def fz_read_utf16_le(stm):
  39126. r"""
  39127. Class-aware wrapper for `::fz_read_utf16_le()`.
  39128. Read a utf-16 rune from a stream. (little endian and
  39129. big endian respectively).
  39130. In the event of encountering badly formatted utf-16 codes
  39131. (mismatched surrogates) no error/exception is given, but
  39132. undefined values may be returned.
  39133. """
  39134. return _mupdf.fz_read_utf16_le(stm)
  39135. def fz_realloc(p, size):
  39136. r"""
  39137. Class-aware wrapper for `::fz_realloc()`.
  39138. Reallocates a block of memory to given size. Existing contents
  39139. up to min(old_size,new_size) are maintained. The rest of the
  39140. block is uninitialised.
  39141. fz_realloc(ctx, NULL, size) behaves like fz_malloc(ctx, size).
  39142. fz_realloc(ctx, p, 0); behaves like fz_free(ctx, p).
  39143. Throws exception in the event of failure to allocate.
  39144. """
  39145. return _mupdf.fz_realloc(p, size)
  39146. def fz_realloc_no_throw(p, size):
  39147. r"""
  39148. Class-aware wrapper for `::fz_realloc_no_throw()`.
  39149. fz_realloc equivalent that returns NULL rather than throwing
  39150. exceptions.
  39151. """
  39152. return _mupdf.fz_realloc_no_throw(p, size)
  39153. def fz_realpath(path, resolved_path):
  39154. r"""
  39155. Class-aware wrapper for `::fz_realpath()`.
  39156. Resolve a path to an absolute file name.
  39157. The resolved path buffer must be of at least PATH_MAX size.
  39158. """
  39159. return _mupdf.fz_realpath(path, resolved_path)
  39160. def fz_recognize_image_format(p):
  39161. r"""
  39162. Class-aware wrapper for `::fz_recognize_image_format()`.
  39163. Recognise image format strings in the first 8 bytes from image
  39164. data.
  39165. """
  39166. return _mupdf.fz_recognize_image_format(p)
  39167. def fz_rect_from_irect(bbox):
  39168. r"""
  39169. Class-aware wrapper for `::fz_rect_from_irect()`.
  39170. Convert a bbox into a rect.
  39171. For our purposes, a rect can represent all the values we meet in
  39172. a bbox, so nothing can go wrong.
  39173. rect: A place to store the generated rectangle.
  39174. bbox: The bbox to convert.
  39175. Returns rect (updated).
  39176. """
  39177. return _mupdf.fz_rect_from_irect(bbox)
  39178. def fz_rect_from_quad(q):
  39179. r"""
  39180. Class-aware wrapper for `::fz_rect_from_quad()`.
  39181. Convert a quad to the smallest rect that covers it.
  39182. """
  39183. return _mupdf.fz_rect_from_quad(q)
  39184. def fz_rectto(path, x0, y0, x1, y1):
  39185. r"""
  39186. Class-aware wrapper for `::fz_rectto()`.
  39187. Append a 'rectto' command to an open path.
  39188. The rectangle is equivalent to:
  39189. moveto x0 y0
  39190. lineto x1 y0
  39191. lineto x1 y1
  39192. lineto x0 y1
  39193. closepath
  39194. path: The path to modify.
  39195. x0, y0: First corner of the rectangle.
  39196. x1, y1: Second corner of the rectangle.
  39197. Throws exceptions on failure to allocate, or attempting to
  39198. modify a packed path.
  39199. """
  39200. return _mupdf.fz_rectto(path, x0, y0, x1, y1)
  39201. def fz_register_activity_logger(activity, opaque):
  39202. r"""Class-aware wrapper for `::fz_register_activity_logger()`."""
  39203. return _mupdf.fz_register_activity_logger(activity, opaque)
  39204. def fz_register_archive_handler(handler):
  39205. r"""Class-aware wrapper for `::fz_register_archive_handler()`."""
  39206. return _mupdf.fz_register_archive_handler(handler)
  39207. def fz_register_document_handler(handler):
  39208. r"""
  39209. Class-aware wrapper for `::fz_register_document_handler()`.
  39210. Register a handler for a document type.
  39211. handler: The handler to register. This must live on for the duration of the
  39212. use of this handler. It will be passed back to the handler for calls so
  39213. the caller can use it to retrieve state.
  39214. """
  39215. return _mupdf.fz_register_document_handler(handler)
  39216. def fz_register_document_handlers():
  39217. r"""
  39218. Class-aware wrapper for `::fz_register_document_handlers()`.
  39219. Register handlers for all the standard document types supported in
  39220. this build.
  39221. """
  39222. return _mupdf.fz_register_document_handlers()
  39223. def fz_remove_item(drop, key, type):
  39224. r"""
  39225. Class-aware wrapper for `::fz_remove_item()`.
  39226. Remove an item from the store.
  39227. If an item indexed by the given key exists in the store, remove
  39228. it.
  39229. drop: The function used to free the value (to ensure we get a
  39230. value of the correct type).
  39231. key: The key used to find the item to remove.
  39232. type: Functions used to manipulate the key.
  39233. """
  39234. return _mupdf.fz_remove_item(drop, key, type)
  39235. def fz_render_flags(dev, set, clear):
  39236. r"""Class-aware wrapper for `::fz_render_flags()`."""
  39237. return _mupdf.fz_render_flags(dev, set, clear)
  39238. def fz_render_glyph_pixmap(font, gid, ctm, scissor, aa):
  39239. r"""
  39240. Class-aware wrapper for `::fz_render_glyph_pixmap()`.
  39241. Create a pixmap containing a rendered glyph.
  39242. Lookup gid from font, clip it with scissor, and rendering it
  39243. with aa bits of antialiasing into a new pixmap.
  39244. The caller takes ownership of the pixmap and so must free it.
  39245. Note: This function is no longer used for normal rendering
  39246. operations, and is kept around just because we use it in the
  39247. app. It should be considered "at risk" of removal from the API.
  39248. """
  39249. return _mupdf.fz_render_glyph_pixmap(font, gid, ctm, scissor, aa)
  39250. def fz_render_t3_glyph_direct(dev, font, gid, trm, gstate, def_cs, fill_gstate, stroke_gstate):
  39251. r"""
  39252. Class-aware wrapper for `::fz_render_t3_glyph_direct()`.
  39253. Nasty PDF interpreter specific hernia, required to allow the
  39254. interpreter to replay glyphs from a type3 font directly into
  39255. the target device.
  39256. This is only used in exceptional circumstances (such as type3
  39257. glyphs that inherit current graphics state, or nested type3
  39258. glyphs).
  39259. """
  39260. return _mupdf.fz_render_t3_glyph_direct(dev, font, gid, trm, gstate, def_cs, fill_gstate, stroke_gstate)
  39261. def fz_rendering_intent_name(ri):
  39262. r"""
  39263. Class-aware wrapper for `::fz_rendering_intent_name()`.
  39264. Map from enumerated rendering intent to string.
  39265. The returned string is static and therefore must not be freed.
  39266. """
  39267. return _mupdf.fz_rendering_intent_name(ri)
  39268. def fz_report_error():
  39269. r"""Class-aware wrapper for `::fz_report_error()`."""
  39270. return _mupdf.fz_report_error()
  39271. def fz_reset_output(arg_0):
  39272. r"""
  39273. Class-aware wrapper for `::fz_reset_output()`.
  39274. Reset a closed output stream. Returns state to
  39275. (broadly) that which it was in when opened. Not
  39276. all outputs can be reset, so this may throw an
  39277. exception.
  39278. """
  39279. return _mupdf.fz_reset_output(arg_0)
  39280. def fz_reset_story(story):
  39281. r"""Class-aware wrapper for `::fz_reset_story()`."""
  39282. return _mupdf.fz_reset_story(story)
  39283. def fz_resize_buffer(buf, capacity):
  39284. r"""
  39285. Class-aware wrapper for `::fz_resize_buffer()`.
  39286. Ensure that a buffer has a given capacity,
  39287. truncating data if required.
  39288. capacity: The desired capacity for the buffer. If the current
  39289. size of the buffer contents is smaller than capacity, it is
  39290. truncated.
  39291. """
  39292. return _mupdf.fz_resize_buffer(buf, capacity)
  39293. def fz_resolve_link(doc, uri, xp, yp):
  39294. r"""
  39295. Class-aware wrapper for `::fz_resolve_link()`.
  39296. This function has out-params. Python/C# wrappers look like:
  39297. `fz_resolve_link(::fz_document *doc, const char *uri)` => `(fz_location, float xp, float yp)`
  39298. Resolve an internal link to a page number.
  39299. xp, yp: Pointer to store coordinate of destination on the page.
  39300. Returns (-1,-1) if the URI cannot be resolved.
  39301. """
  39302. return _mupdf.fz_resolve_link(doc, uri, xp, yp)
  39303. def fz_rethrow():
  39304. r"""Class-aware wrapper for `::fz_rethrow()`."""
  39305. return _mupdf.fz_rethrow()
  39306. def fz_rethrow_if(errcode):
  39307. r"""
  39308. Class-aware wrapper for `::fz_rethrow_if()`.
  39309. Within an fz_catch() block, rethrow the current exception
  39310. if the errcode of the current exception matches.
  39311. This assumes no intervening use of fz_try/fz_catch.
  39312. """
  39313. return _mupdf.fz_rethrow_if(errcode)
  39314. def fz_rethrow_unless(errcode):
  39315. r"""Class-aware wrapper for `::fz_rethrow_unless()`."""
  39316. return _mupdf.fz_rethrow_unless(errcode)
  39317. def fz_rotate(degrees):
  39318. r"""
  39319. Class-aware wrapper for `::fz_rotate()`.
  39320. Create a rotation matrix.
  39321. The returned matrix is of the form
  39322. [ cos(deg) sin(deg) -sin(deg) cos(deg) 0 0 ].
  39323. m: Pointer to place to store matrix
  39324. degrees: Degrees of counter clockwise rotation. Values less
  39325. than zero and greater than 360 are handled as expected.
  39326. Returns m.
  39327. """
  39328. return _mupdf.fz_rotate(degrees)
  39329. def fz_round_rect(rect):
  39330. r"""
  39331. Class-aware wrapper for `::fz_round_rect()`.
  39332. Round rectangle coordinates.
  39333. Coordinates in a bounding box are integers, so rounding of the
  39334. rects coordinates takes place. The top left corner is rounded
  39335. upwards and left while the bottom right corner is rounded
  39336. downwards and to the right.
  39337. This differs from fz_irect_from_rect, in that fz_irect_from_rect
  39338. slavishly follows the numbers (i.e any slight over/under
  39339. calculations can cause whole extra pixels to be added).
  39340. fz_round_rect allows for a small amount of rounding error when
  39341. calculating the bbox.
  39342. """
  39343. return _mupdf.fz_round_rect(rect)
  39344. def fz_run_display_list(list, dev, ctm, scissor, cookie):
  39345. r"""
  39346. Class-aware wrapper for `::fz_run_display_list()`.
  39347. (Re)-run a display list through a device.
  39348. list: A display list, created by fz_new_display_list and
  39349. populated with objects from a page by running fz_run_page on a
  39350. device obtained from fz_new_list_device.
  39351. ctm: Transform to apply to display list contents. May include
  39352. for example scaling and rotation, see fz_scale, fz_rotate and
  39353. fz_concat. Set to fz_identity if no transformation is desired.
  39354. scissor: Only the part of the contents of the display list
  39355. visible within this area will be considered when the list is
  39356. run through the device. This does not imply for tile objects
  39357. contained in the display list.
  39358. cookie: Communication mechanism between caller and library
  39359. running the page. Intended for multi-threaded applications,
  39360. while single-threaded applications set cookie to NULL. The
  39361. caller may abort an ongoing page run. Cookie also communicates
  39362. progress information back to the caller. The fields inside
  39363. cookie are continually updated while the page is being run.
  39364. """
  39365. return _mupdf.fz_run_display_list(list, dev, ctm, scissor, cookie)
  39366. def fz_run_document_structure(doc, dev, cookie):
  39367. r"""
  39368. Class-aware wrapper for `::fz_run_document_structure()`.
  39369. Run the document structure through a device.
  39370. doc: Document in question.
  39371. dev: Device obtained from fz_new_*_device.
  39372. cookie: Communication mechanism between caller and library.
  39373. Intended for multi-threaded applications, while
  39374. single-threaded applications set cookie to NULL. The
  39375. caller may abort an ongoing rendering of a page. Cookie also
  39376. communicates progress information back to the caller. The
  39377. fields inside cookie are continually updated while the page is
  39378. rendering.
  39379. """
  39380. return _mupdf.fz_run_document_structure(doc, dev, cookie)
  39381. def fz_run_page(page, dev, transform, cookie):
  39382. r"""
  39383. Class-aware wrapper for `::fz_run_page()`.
  39384. Run a page through a device.
  39385. page: Page obtained from fz_load_page.
  39386. dev: Device obtained from fz_new_*_device.
  39387. transform: Transform to apply to page. May include for example
  39388. scaling and rotation, see fz_scale, fz_rotate and fz_concat.
  39389. Set to fz_identity if no transformation is desired.
  39390. cookie: Communication mechanism between caller and library
  39391. rendering the page. Intended for multi-threaded applications,
  39392. while single-threaded applications set cookie to NULL. The
  39393. caller may abort an ongoing rendering of a page. Cookie also
  39394. communicates progress information back to the caller. The
  39395. fields inside cookie are continually updated while the page is
  39396. rendering.
  39397. """
  39398. return _mupdf.fz_run_page(page, dev, transform, cookie)
  39399. def fz_run_page_annots(page, dev, transform, cookie):
  39400. r"""
  39401. Class-aware wrapper for `::fz_run_page_annots()`.
  39402. Run the annotations on a page through a device.
  39403. """
  39404. return _mupdf.fz_run_page_annots(page, dev, transform, cookie)
  39405. def fz_run_page_contents(page, dev, transform, cookie):
  39406. r"""
  39407. Class-aware wrapper for `::fz_run_page_contents()`.
  39408. Run a page through a device. Just the main
  39409. page content, without the annotations, if any.
  39410. page: Page obtained from fz_load_page.
  39411. dev: Device obtained from fz_new_*_device.
  39412. transform: Transform to apply to page. May include for example
  39413. scaling and rotation, see fz_scale, fz_rotate and fz_concat.
  39414. Set to fz_identity if no transformation is desired.
  39415. cookie: Communication mechanism between caller and library
  39416. rendering the page. Intended for multi-threaded applications,
  39417. while single-threaded applications set cookie to NULL. The
  39418. caller may abort an ongoing rendering of a page. Cookie also
  39419. communicates progress information back to the caller. The
  39420. fields inside cookie are continually updated while the page is
  39421. rendering.
  39422. """
  39423. return _mupdf.fz_run_page_contents(page, dev, transform, cookie)
  39424. def fz_run_page_widgets(page, dev, transform, cookie):
  39425. r"""
  39426. Class-aware wrapper for `::fz_run_page_widgets()`.
  39427. Run the widgets on a page through a device.
  39428. """
  39429. return _mupdf.fz_run_page_widgets(page, dev, transform, cookie)
  39430. def fz_run_t3_glyph(font, gid, trm, dev):
  39431. r"""
  39432. Class-aware wrapper for `::fz_run_t3_glyph()`.
  39433. Run a glyph from a Type3 font to
  39434. a given device.
  39435. font: The font to find the glyph in.
  39436. gid: The glyph to run.
  39437. trm: The transform to apply.
  39438. dev: The device to render onto.
  39439. """
  39440. return _mupdf.fz_run_t3_glyph(font, gid, trm, dev)
  39441. def fz_runeidx(str, p):
  39442. r"""
  39443. Class-aware wrapper for `::fz_runeidx()`.
  39444. Compute the index of a rune in a string.
  39445. str: Pointer to beginning of a string.
  39446. p: Pointer to a char in str.
  39447. Returns the index of the rune pointed to by p in str.
  39448. """
  39449. return _mupdf.fz_runeidx(str, p)
  39450. def fz_runelen(rune):
  39451. r"""
  39452. Class-aware wrapper for `::fz_runelen()`.
  39453. Count how many chars are required to represent a rune.
  39454. rune: The rune to encode.
  39455. Returns the number of bytes required to represent this run in
  39456. UTF8.
  39457. """
  39458. return _mupdf.fz_runelen(rune)
  39459. def fz_runeptr(str, idx):
  39460. r"""
  39461. Class-aware wrapper for `::fz_runeptr()`.
  39462. Obtain a pointer to the char representing the rune
  39463. at a given index.
  39464. str: Pointer to beginning of a string.
  39465. idx: Index of a rune to return a char pointer to.
  39466. Returns a pointer to the char where the desired rune starts,
  39467. or NULL if the string ends before the index is reached.
  39468. """
  39469. return _mupdf.fz_runeptr(str, idx)
  39470. def fz_runetochar(str, rune):
  39471. r"""
  39472. Class-aware wrapper for `::fz_runetochar()`.
  39473. UTF8 encode a rune to a sequence of chars.
  39474. str: Pointer to a place to put the UTF8 encoded character.
  39475. rune: Pointer to a 'rune'.
  39476. Returns the number of bytes the rune took to output.
  39477. """
  39478. return _mupdf.fz_runetochar(str, rune)
  39479. def fz_samples_get(pixmap, offset):
  39480. r"""
  39481. Class-aware wrapper for `::fz_samples_get()`.
  39482. Provides simple (but slow) access to pixmap data from Python and C#.
  39483. """
  39484. return _mupdf.fz_samples_get(pixmap, offset)
  39485. def fz_samples_set(pixmap, offset, value):
  39486. r"""
  39487. Class-aware wrapper for `::fz_samples_set()`.
  39488. Provides simple (but slow) write access to pixmap data from Python and
  39489. C#.
  39490. """
  39491. return _mupdf.fz_samples_set(pixmap, offset, value)
  39492. def fz_save_accelerator(doc, accel):
  39493. r"""
  39494. Class-aware wrapper for `::fz_save_accelerator()`.
  39495. Save accelerator data for the document to a given file.
  39496. """
  39497. return _mupdf.fz_save_accelerator(doc, accel)
  39498. def fz_save_bitmap_as_pbm(bitmap, filename):
  39499. r"""
  39500. Class-aware wrapper for `::fz_save_bitmap_as_pbm()`.
  39501. Save a bitmap as a pbm.
  39502. """
  39503. return _mupdf.fz_save_bitmap_as_pbm(bitmap, filename)
  39504. def fz_save_bitmap_as_pcl(bitmap, filename, append, pcl):
  39505. r"""
  39506. Class-aware wrapper for `::fz_save_bitmap_as_pcl()`.
  39507. Save a bitmap as mono PCL.
  39508. """
  39509. return _mupdf.fz_save_bitmap_as_pcl(bitmap, filename, append, pcl)
  39510. def fz_save_bitmap_as_pkm(bitmap, filename):
  39511. r"""
  39512. Class-aware wrapper for `::fz_save_bitmap_as_pkm()`.
  39513. Save a CMYK bitmap as a pkm.
  39514. """
  39515. return _mupdf.fz_save_bitmap_as_pkm(bitmap, filename)
  39516. def fz_save_bitmap_as_pwg(bitmap, filename, append, pwg):
  39517. r"""
  39518. Class-aware wrapper for `::fz_save_bitmap_as_pwg()`.
  39519. Save a bitmap as a PWG.
  39520. """
  39521. return _mupdf.fz_save_bitmap_as_pwg(bitmap, filename, append, pwg)
  39522. def fz_save_buffer(buf, filename):
  39523. r"""
  39524. Class-aware wrapper for `::fz_save_buffer()`.
  39525. Save the contents of a buffer to a file.
  39526. """
  39527. return _mupdf.fz_save_buffer(buf, filename)
  39528. def fz_save_pixmap_as_jpeg(pixmap, filename, quality):
  39529. r"""
  39530. Class-aware wrapper for `::fz_save_pixmap_as_jpeg()`.
  39531. Save a pixmap as a JPEG.
  39532. """
  39533. return _mupdf.fz_save_pixmap_as_jpeg(pixmap, filename, quality)
  39534. def fz_save_pixmap_as_jpx(pixmap, filename, q):
  39535. r"""
  39536. Class-aware wrapper for `::fz_save_pixmap_as_jpx()`.
  39537. Save pixmap data as JP2K with no subsampling.
  39538. quality = 100 = lossless
  39539. otherwise for a factor of x compression use 100-x. (so 80 is 1:20 compression)
  39540. """
  39541. return _mupdf.fz_save_pixmap_as_jpx(pixmap, filename, q)
  39542. def fz_save_pixmap_as_pam(pixmap, filename):
  39543. r"""
  39544. Class-aware wrapper for `::fz_save_pixmap_as_pam()`.
  39545. Save a pixmap as a pnm (greyscale, rgb or cmyk, with or without
  39546. alpha).
  39547. """
  39548. return _mupdf.fz_save_pixmap_as_pam(pixmap, filename)
  39549. def fz_save_pixmap_as_pbm(pixmap, filename):
  39550. r"""
  39551. Class-aware wrapper for `::fz_save_pixmap_as_pbm()`.
  39552. Save a pixmap as a pbm. (Performing halftoning).
  39553. """
  39554. return _mupdf.fz_save_pixmap_as_pbm(pixmap, filename)
  39555. def fz_save_pixmap_as_pcl(pixmap, filename, append, pcl):
  39556. r"""
  39557. Class-aware wrapper for `::fz_save_pixmap_as_pcl()`.
  39558. Save an (RGB) pixmap as color PCL.
  39559. """
  39560. return _mupdf.fz_save_pixmap_as_pcl(pixmap, filename, append, pcl)
  39561. def fz_save_pixmap_as_pclm(pixmap, filename, append, options):
  39562. r"""
  39563. Class-aware wrapper for `::fz_save_pixmap_as_pclm()`.
  39564. Save a (Greyscale or RGB) pixmap as pclm.
  39565. """
  39566. return _mupdf.fz_save_pixmap_as_pclm(pixmap, filename, append, options)
  39567. def fz_save_pixmap_as_pdfocr(pixmap, filename, append, options):
  39568. r"""
  39569. Class-aware wrapper for `::fz_save_pixmap_as_pdfocr()`.
  39570. Save a (Greyscale or RGB) pixmap as pdfocr.
  39571. """
  39572. return _mupdf.fz_save_pixmap_as_pdfocr(pixmap, filename, append, options)
  39573. def fz_save_pixmap_as_pkm(pixmap, filename):
  39574. r"""
  39575. Class-aware wrapper for `::fz_save_pixmap_as_pkm()`.
  39576. Save a CMYK pixmap as a pkm. (Performing halftoning).
  39577. """
  39578. return _mupdf.fz_save_pixmap_as_pkm(pixmap, filename)
  39579. def fz_save_pixmap_as_png(pixmap, filename):
  39580. r"""
  39581. Class-aware wrapper for `::fz_save_pixmap_as_png()`.
  39582. Save a (Greyscale or RGB) pixmap as a png.
  39583. """
  39584. return _mupdf.fz_save_pixmap_as_png(pixmap, filename)
  39585. def fz_save_pixmap_as_pnm(pixmap, filename):
  39586. r"""
  39587. Class-aware wrapper for `::fz_save_pixmap_as_pnm()`.
  39588. Save a pixmap as a pnm (greyscale or rgb, no alpha).
  39589. """
  39590. return _mupdf.fz_save_pixmap_as_pnm(pixmap, filename)
  39591. def fz_save_pixmap_as_ps(pixmap, filename, append):
  39592. r"""
  39593. Class-aware wrapper for `::fz_save_pixmap_as_ps()`.
  39594. Save a (gray, rgb, or cmyk, no alpha) pixmap out as postscript.
  39595. """
  39596. return _mupdf.fz_save_pixmap_as_ps(pixmap, filename, append)
  39597. def fz_save_pixmap_as_psd(pixmap, filename):
  39598. r"""
  39599. Class-aware wrapper for `::fz_save_pixmap_as_psd()`.
  39600. Save a pixmap as a PSD file.
  39601. """
  39602. return _mupdf.fz_save_pixmap_as_psd(pixmap, filename)
  39603. def fz_save_pixmap_as_pwg(pixmap, filename, append, pwg):
  39604. r"""
  39605. Class-aware wrapper for `::fz_save_pixmap_as_pwg()`.
  39606. Save a pixmap as a PWG.
  39607. """
  39608. return _mupdf.fz_save_pixmap_as_pwg(pixmap, filename, append, pwg)
  39609. def fz_save_xml(root, path, indented):
  39610. r"""
  39611. Class-aware wrapper for `::fz_save_xml()`.
  39612. As for fz_write_xml, but direct to a file.
  39613. """
  39614. return _mupdf.fz_save_xml(root, path, indented)
  39615. def fz_scale(sx, sy):
  39616. r"""
  39617. Class-aware wrapper for `::fz_scale()`.
  39618. Create a scaling matrix.
  39619. The returned matrix is of the form [ sx 0 0 sy 0 0 ].
  39620. m: Pointer to the matrix to populate
  39621. sx, sy: Scaling factors along the X- and Y-axes. A scaling
  39622. factor of 1.0 will not cause any scaling along the relevant
  39623. axis.
  39624. Returns m.
  39625. """
  39626. return _mupdf.fz_scale(sx, sy)
  39627. def fz_scale_pixmap(src, x, y, w, h, clip):
  39628. r"""Class-aware wrapper for `::fz_scale_pixmap()`."""
  39629. return _mupdf.fz_scale_pixmap(src, x, y, w, h, clip)
  39630. def fz_search_chapter_page_number(doc, chapter, page, needle, hit_mark, hit_bbox, hit_max):
  39631. r"""
  39632. Class-aware wrapper for `::fz_search_chapter_page_number()`.
  39633. This function has out-params. Python/C# wrappers look like:
  39634. `fz_search_chapter_page_number(::fz_document *doc, int chapter, int page, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  39635. """
  39636. return _mupdf.fz_search_chapter_page_number(doc, chapter, page, needle, hit_mark, hit_bbox, hit_max)
  39637. def fz_search_chapter_page_number_cb(doc, chapter, page, needle, cb, opaque):
  39638. r"""Class-aware wrapper for `::fz_search_chapter_page_number_cb()`."""
  39639. return _mupdf.fz_search_chapter_page_number_cb(doc, chapter, page, needle, cb, opaque)
  39640. def fz_search_display_list(list, needle, hit_mark, hit_bbox, hit_max):
  39641. r"""
  39642. Class-aware wrapper for `::fz_search_display_list()`.
  39643. This function has out-params. Python/C# wrappers look like:
  39644. `fz_search_display_list(::fz_display_list *list, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  39645. """
  39646. return _mupdf.fz_search_display_list(list, needle, hit_mark, hit_bbox, hit_max)
  39647. def fz_search_display_list_cb(list, needle, cb, opaque):
  39648. r"""Class-aware wrapper for `::fz_search_display_list_cb()`."""
  39649. return _mupdf.fz_search_display_list_cb(list, needle, cb, opaque)
  39650. def fz_search_page(page, needle, hit_mark, hit_bbox, hit_max):
  39651. r"""
  39652. Class-aware wrapper for `::fz_search_page()`.
  39653. This function has out-params. Python/C# wrappers look like:
  39654. `fz_search_page(::fz_page *page, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  39655. Search for the 'needle' text on the page.
  39656. Record the hits in the hit_bbox array and return the number of
  39657. hits. Will stop looking once it has filled hit_max rectangles.
  39658. """
  39659. return _mupdf.fz_search_page(page, needle, hit_mark, hit_bbox, hit_max)
  39660. def fz_search_page2(doc, number, needle, hit_max):
  39661. r"""
  39662. Class-aware wrapper for `::fz_search_page2()`.
  39663. C++ alternative to fz_search_page() that returns information in a std::vector.
  39664. """
  39665. return _mupdf.fz_search_page2(doc, number, needle, hit_max)
  39666. def fz_search_page_cb(page, needle, cb, opaque):
  39667. r"""
  39668. Class-aware wrapper for `::fz_search_page_cb()`.
  39669. Search for the 'needle' text on the page.
  39670. """
  39671. return _mupdf.fz_search_page_cb(page, needle, cb, opaque)
  39672. def fz_search_page_number(doc, number, needle, hit_mark, hit_bbox, hit_max):
  39673. r"""
  39674. Class-aware wrapper for `::fz_search_page_number()`.
  39675. This function has out-params. Python/C# wrappers look like:
  39676. `fz_search_page_number(::fz_document *doc, int number, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  39677. """
  39678. return _mupdf.fz_search_page_number(doc, number, needle, hit_mark, hit_bbox, hit_max)
  39679. def fz_search_page_number_cb(doc, number, needle, cb, opaque):
  39680. r"""Class-aware wrapper for `::fz_search_page_number_cb()`."""
  39681. return _mupdf.fz_search_page_number_cb(doc, number, needle, cb, opaque)
  39682. def fz_search_stext_page(text, needle, hit_mark, hit_bbox, hit_max):
  39683. r"""
  39684. Class-aware wrapper for `::fz_search_stext_page()`.
  39685. This function has out-params. Python/C# wrappers look like:
  39686. `fz_search_stext_page(::fz_stext_page *text, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  39687. Search for occurrence of 'needle' in text page.
  39688. Return the number of quads and store hit quads in the passed in
  39689. array.
  39690. NOTE: This is an experimental interface and subject to change
  39691. without notice.
  39692. """
  39693. return _mupdf.fz_search_stext_page(text, needle, hit_mark, hit_bbox, hit_max)
  39694. def fz_search_stext_page_cb(text, needle, cb, opaque):
  39695. r"""
  39696. Class-aware wrapper for `::fz_search_stext_page_cb()`.
  39697. Search for occurrence of 'needle' in text page.
  39698. Call callback once for each hit. This callback will receive
  39699. (potentially) multiple quads for each hit.
  39700. Returns the number of hits - note that this is potentially
  39701. different from (i.e. is not greater than) the number of quads
  39702. as returned by the non callback API.
  39703. NOTE: This is an experimental interface and subject to change
  39704. without notice.
  39705. """
  39706. return _mupdf.fz_search_stext_page_cb(text, needle, cb, opaque)
  39707. def fz_seek(stm, offset, whence):
  39708. r"""
  39709. Class-aware wrapper for `::fz_seek()`.
  39710. Seek within a stream.
  39711. stm: The stream to seek within.
  39712. offset: The offset to seek to.
  39713. whence: From where the offset is measured (see fseek).
  39714. SEEK_SET - start of stream.
  39715. SEEK_CUR - current position.
  39716. SEEK_END - end of stream.
  39717. """
  39718. return _mupdf.fz_seek(stm, offset, whence)
  39719. def fz_seek_output(out, off, whence):
  39720. r"""
  39721. Class-aware wrapper for `::fz_seek_output()`.
  39722. Seek to the specified file position.
  39723. See fseek for arguments.
  39724. Throw an error on unseekable outputs.
  39725. """
  39726. return _mupdf.fz_seek_output(out, off, whence)
  39727. def fz_segment_stext_page(page):
  39728. r"""
  39729. Class-aware wrapper for `::fz_segment_stext_page()`.
  39730. Perform segmentation analysis on an (unstructured) page to look for
  39731. recursive subdivisions.
  39732. Essentially this code attempts to split the page horizontally and/or
  39733. vertically repeatedly into smaller and smaller "segments" (divisions).
  39734. This minimises the reordering of the content, but some reordering
  39735. may be unavoidable.
  39736. Returns 0 if no changes were made to the document.
  39737. This is experimental code, and may change (or be removed) in future
  39738. versions!
  39739. """
  39740. return _mupdf.fz_segment_stext_page(page)
  39741. def fz_segment_stext_rect(page, rect):
  39742. r"""
  39743. Class-aware wrapper for `::fz_segment_stext_rect()`.
  39744. Perform segmentation analysis on a rectangle of a given
  39745. stext page.
  39746. Like fz_segment_stext_page, this attempts to split the given page
  39747. region horizontally and/or vertically repeatedly into smaller and
  39748. smaller "segments".
  39749. This works for pages with structure too, but splitting with
  39750. rectangles that cut across structure blocks may not behave as
  39751. expected.
  39752. This minimises the reordering of the content (as viewed from the
  39753. perspective of a depth first traversal), but some reordering may
  39754. be unavoidable.
  39755. This function accepts smaller gaps for segmentation than the full
  39756. page segmentation does.
  39757. Returns 0 if no changes were made to the document.
  39758. This is experimental code, and may change (or be removed) in future
  39759. versions!
  39760. """
  39761. return _mupdf.fz_segment_stext_rect(page, rect)
  39762. def fz_separation_current_behavior(sep, separation):
  39763. r"""
  39764. Class-aware wrapper for `::fz_separation_current_behavior()`.
  39765. Test for the current behavior of a separation.
  39766. """
  39767. return _mupdf.fz_separation_current_behavior(sep, separation)
  39768. def fz_separation_equivalent(seps, idx, dst_cs, dst_color, prf, color_params):
  39769. r"""
  39770. Class-aware wrapper for `::fz_separation_equivalent()`.
  39771. This function has out-params. Python/C# wrappers look like:
  39772. `fz_separation_equivalent(const ::fz_separations *seps, int idx, ::fz_colorspace *dst_cs, ::fz_colorspace *prf, ::fz_color_params color_params)` => float dst_color
  39773. Get the equivalent separation color in a given colorspace.
  39774. """
  39775. return _mupdf.fz_separation_equivalent(seps, idx, dst_cs, dst_color, prf, color_params)
  39776. def fz_separation_name(sep, separation):
  39777. r"""Class-aware wrapper for `::fz_separation_name()`."""
  39778. return _mupdf.fz_separation_name(sep, separation)
  39779. def fz_set_aa_level(bits):
  39780. r"""
  39781. Class-aware wrapper for `::fz_set_aa_level()`.
  39782. Set the number of bits of antialiasing we should
  39783. use (for both text and graphics).
  39784. bits: The number of bits of antialiasing to use (values are
  39785. clamped to within the 0 to 8 range).
  39786. """
  39787. return _mupdf.fz_set_aa_level(bits)
  39788. def fz_set_compressed_image_buffer(cimg, buf):
  39789. r"""Class-aware wrapper for `::fz_set_compressed_image_buffer()`."""
  39790. return _mupdf.fz_set_compressed_image_buffer(cimg, buf)
  39791. def fz_set_default_cmyk(default_cs, cs):
  39792. r"""Class-aware wrapper for `::fz_set_default_cmyk()`."""
  39793. return _mupdf.fz_set_default_cmyk(default_cs, cs)
  39794. def fz_set_default_colorspaces(dev, default_cs):
  39795. r"""Class-aware wrapper for `::fz_set_default_colorspaces()`."""
  39796. return _mupdf.fz_set_default_colorspaces(dev, default_cs)
  39797. def fz_set_default_gray(default_cs, cs):
  39798. r"""
  39799. Class-aware wrapper for `::fz_set_default_gray()`.
  39800. Set new defaults within the default colorspace structure.
  39801. New references are taken to the new default, and references to
  39802. the old defaults dropped.
  39803. Never throws exceptions.
  39804. """
  39805. return _mupdf.fz_set_default_gray(default_cs, cs)
  39806. def fz_set_default_output_intent(default_cs, cs):
  39807. r"""Class-aware wrapper for `::fz_set_default_output_intent()`."""
  39808. return _mupdf.fz_set_default_output_intent(default_cs, cs)
  39809. def fz_set_default_rgb(default_cs, cs):
  39810. r"""Class-aware wrapper for `::fz_set_default_rgb()`."""
  39811. return _mupdf.fz_set_default_rgb(default_cs, cs)
  39812. def fz_set_error_callback(error_cb, user):
  39813. r"""
  39814. Class-aware wrapper for `::fz_set_error_callback()`.
  39815. Set the error callback. This will be called as part of the
  39816. exception handling.
  39817. The callback must not throw exceptions!
  39818. """
  39819. return _mupdf.fz_set_error_callback(error_cb, user)
  39820. def fz_set_font_bbox(font, xmin, ymin, xmax, ymax):
  39821. r"""
  39822. Class-aware wrapper for `::fz_set_font_bbox()`.
  39823. Set the font bbox.
  39824. font: The font to set the bbox for.
  39825. xmin, ymin, xmax, ymax: The bounding box.
  39826. """
  39827. return _mupdf.fz_set_font_bbox(font, xmin, ymin, xmax, ymax)
  39828. def fz_set_font_embedding(font, embed):
  39829. r"""
  39830. Class-aware wrapper for `::fz_set_font_embedding()`.
  39831. Control whether a given font should be embedded or not when writing.
  39832. """
  39833. return _mupdf.fz_set_font_embedding(font, embed)
  39834. def fz_set_graphics_aa_level(bits):
  39835. r"""
  39836. Class-aware wrapper for `::fz_set_graphics_aa_level()`.
  39837. Set the number of bits of antialiasing we
  39838. should use for graphics.
  39839. bits: The number of bits of antialiasing to use (values are
  39840. clamped to within the 0 to 8 range).
  39841. """
  39842. return _mupdf.fz_set_graphics_aa_level(bits)
  39843. def fz_set_graphics_min_line_width(min_line_width):
  39844. r"""
  39845. Class-aware wrapper for `::fz_set_graphics_min_line_width()`.
  39846. Set the minimum line width to be
  39847. used for stroked lines.
  39848. min_line_width: The minimum line width to use (in pixels).
  39849. """
  39850. return _mupdf.fz_set_graphics_min_line_width(min_line_width)
  39851. def fz_set_link_rect(link, rect):
  39852. r"""Class-aware wrapper for `::fz_set_link_rect()`."""
  39853. return _mupdf.fz_set_link_rect(link, rect)
  39854. def fz_set_link_uri(link, uri):
  39855. r"""Class-aware wrapper for `::fz_set_link_uri()`."""
  39856. return _mupdf.fz_set_link_uri(link, uri)
  39857. def fz_set_metadata(doc, key, value):
  39858. r"""Class-aware wrapper for `::fz_set_metadata()`."""
  39859. return _mupdf.fz_set_metadata(doc, key, value)
  39860. def fz_set_pixmap_image_tile(cimg, pix):
  39861. r"""Class-aware wrapper for `::fz_set_pixmap_image_tile()`."""
  39862. return _mupdf.fz_set_pixmap_image_tile(cimg, pix)
  39863. def fz_set_pixmap_resolution(pix, xres, yres):
  39864. r"""
  39865. Class-aware wrapper for `::fz_set_pixmap_resolution()`.
  39866. Set the pixels per inch resolution of the pixmap.
  39867. """
  39868. return _mupdf.fz_set_pixmap_resolution(pix, xres, yres)
  39869. def fz_set_separation_behavior(sep, separation, behavior):
  39870. r"""
  39871. Class-aware wrapper for `::fz_set_separation_behavior()`.
  39872. Control the rendering of a given separation.
  39873. """
  39874. return _mupdf.fz_set_separation_behavior(sep, separation, behavior)
  39875. def fz_set_stddbg(out):
  39876. r"""
  39877. Class-aware wrapper for `::fz_set_stddbg()`.
  39878. Set the output stream to be used for fz_stddbg. Set to NULL to
  39879. reset to default (stderr).
  39880. """
  39881. return _mupdf.fz_set_stddbg(out)
  39882. def fz_set_text_aa_level(bits):
  39883. r"""
  39884. Class-aware wrapper for `::fz_set_text_aa_level()`.
  39885. Set the number of bits of antialiasing we
  39886. should use for text.
  39887. bits: The number of bits of antialiasing to use (values are
  39888. clamped to within the 0 to 8 range).
  39889. """
  39890. return _mupdf.fz_set_text_aa_level(bits)
  39891. def fz_set_use_document_css(use):
  39892. r"""
  39893. Class-aware wrapper for `::fz_set_use_document_css()`.
  39894. Toggle whether to respect document styles in HTML and EPUB.
  39895. """
  39896. return _mupdf.fz_set_use_document_css(use)
  39897. def fz_set_user_context(user):
  39898. r"""
  39899. Class-aware wrapper for `::fz_set_user_context()`.
  39900. Set the user field in the context.
  39901. NULL initially, this field can be set to any opaque value
  39902. required by the user. It is copied on clones.
  39903. """
  39904. return _mupdf.fz_set_user_context(user)
  39905. def fz_set_user_css(text):
  39906. r"""
  39907. Class-aware wrapper for `::fz_set_user_css()`.
  39908. Set the user stylesheet source text for use with HTML and EPUB.
  39909. """
  39910. return _mupdf.fz_set_user_css(text)
  39911. def fz_set_warning_callback(warning_cb, user):
  39912. r"""
  39913. Class-aware wrapper for `::fz_set_warning_callback()`.
  39914. Set the warning callback. This will be called as part of the
  39915. exception handling.
  39916. The callback must not throw exceptions!
  39917. """
  39918. return _mupdf.fz_set_warning_callback(warning_cb, user)
  39919. def fz_sha256_final(state, digest):
  39920. r"""
  39921. Class-aware wrapper for `::fz_sha256_final()`.
  39922. MD5 finalization. Ends an MD5 message-digest operation, writing
  39923. the message digest and zeroizing the context.
  39924. Never throws an exception.
  39925. """
  39926. return _mupdf.fz_sha256_final(state, digest)
  39927. def fz_sha256_init(state):
  39928. r"""
  39929. Class-aware wrapper for `::fz_sha256_init()`.
  39930. SHA256 initialization. Begins an SHA256 operation, initialising
  39931. the supplied context.
  39932. Never throws an exception.
  39933. """
  39934. return _mupdf.fz_sha256_init(state)
  39935. def fz_sha256_update(state, input, inlen):
  39936. r"""
  39937. Class-aware wrapper for `::fz_sha256_update()`.
  39938. SHA256 block update operation. Continues an SHA256 message-
  39939. digest operation, processing another message block, and updating
  39940. the context.
  39941. Never throws an exception.
  39942. """
  39943. return _mupdf.fz_sha256_update(state, input, inlen)
  39944. def fz_sha384_final(state, digest):
  39945. r"""
  39946. Class-aware wrapper for `::fz_sha384_final()`.
  39947. SHA384 finalization. Ends an SHA384 message-digest operation,
  39948. writing the message digest and zeroizing the context.
  39949. Never throws an exception.
  39950. """
  39951. return _mupdf.fz_sha384_final(state, digest)
  39952. def fz_sha384_init(state):
  39953. r"""
  39954. Class-aware wrapper for `::fz_sha384_init()`.
  39955. SHA384 initialization. Begins an SHA384 operation, initialising
  39956. the supplied context.
  39957. Never throws an exception.
  39958. """
  39959. return _mupdf.fz_sha384_init(state)
  39960. def fz_sha384_update(state, input, inlen):
  39961. r"""
  39962. Class-aware wrapper for `::fz_sha384_update()`.
  39963. SHA384 block update operation. Continues an SHA384 message-
  39964. digest operation, processing another message block, and updating
  39965. the context.
  39966. Never throws an exception.
  39967. """
  39968. return _mupdf.fz_sha384_update(state, input, inlen)
  39969. def fz_sha512_final(state, digest):
  39970. r"""
  39971. Class-aware wrapper for `::fz_sha512_final()`.
  39972. SHA512 finalization. Ends an SHA512 message-digest operation,
  39973. writing the message digest and zeroizing the context.
  39974. Never throws an exception.
  39975. """
  39976. return _mupdf.fz_sha512_final(state, digest)
  39977. def fz_sha512_init(state):
  39978. r"""
  39979. Class-aware wrapper for `::fz_sha512_init()`.
  39980. SHA512 initialization. Begins an SHA512 operation, initialising
  39981. the supplied context.
  39982. Never throws an exception.
  39983. """
  39984. return _mupdf.fz_sha512_init(state)
  39985. def fz_sha512_update(state, input, inlen):
  39986. r"""
  39987. Class-aware wrapper for `::fz_sha512_update()`.
  39988. SHA512 block update operation. Continues an SHA512 message-
  39989. digest operation, processing another message block, and updating
  39990. the context.
  39991. Never throws an exception.
  39992. """
  39993. return _mupdf.fz_sha512_update(state, input, inlen)
  39994. def fz_shear(sx, sy):
  39995. r"""
  39996. Class-aware wrapper for `::fz_shear()`.
  39997. Create a shearing matrix.
  39998. The returned matrix is of the form [ 1 sy sx 1 0 0 ].
  39999. m: pointer to place to store returned matrix
  40000. sx, sy: Shearing factors. A shearing factor of 0.0 will not
  40001. cause any shearing along the relevant axis.
  40002. Returns m.
  40003. """
  40004. return _mupdf.fz_shear(sx, sy)
  40005. def fz_show_glyph(text, font, trm, glyph, unicode, wmode, bidi_level, markup_dir, language):
  40006. r"""
  40007. Class-aware wrapper for `::fz_show_glyph()`.
  40008. Add a glyph/unicode value to a text object.
  40009. text: Text object to add to.
  40010. font: The font the glyph should be added in.
  40011. trm: The transform to use for the glyph.
  40012. glyph: The glyph id to add.
  40013. unicode: The unicode character for the glyph.
  40014. cid: The CJK CID value or raw character code.
  40015. wmode: 1 for vertical mode, 0 for horizontal.
  40016. bidi_level: The bidirectional level for this glyph.
  40017. markup_dir: The direction of the text as specified in the
  40018. markup.
  40019. language: The language in use (if known, 0 otherwise)
  40020. (e.g. FZ_LANG_zh_Hans).
  40021. Throws exception on failure to allocate.
  40022. """
  40023. return _mupdf.fz_show_glyph(text, font, trm, glyph, unicode, wmode, bidi_level, markup_dir, language)
  40024. def fz_show_glyph_aux(text, font, trm, adv, glyph, unicode, cid, wmode, bidi_level, markup_dir, lang):
  40025. r"""Class-aware wrapper for `::fz_show_glyph_aux()`."""
  40026. return _mupdf.fz_show_glyph_aux(text, font, trm, adv, glyph, unicode, cid, wmode, bidi_level, markup_dir, lang)
  40027. def fz_show_string(text, font, trm, s, wmode, bidi_level, markup_dir, language):
  40028. r"""
  40029. Class-aware wrapper for `::fz_show_string()`.
  40030. Add a UTF8 string to a text object.
  40031. text: Text object to add to.
  40032. font: The font the string should be added in.
  40033. trm: The transform to use.
  40034. s: The utf-8 string to add.
  40035. wmode: 1 for vertical mode, 0 for horizontal.
  40036. bidi_level: The bidirectional level for this glyph.
  40037. markup_dir: The direction of the text as specified in the markup.
  40038. language: The language in use (if known, 0 otherwise)
  40039. (e.g. FZ_LANG_zh_Hans).
  40040. Returns the transform updated with the advance width of the
  40041. string.
  40042. """
  40043. return _mupdf.fz_show_string(text, font, trm, s, wmode, bidi_level, markup_dir, language)
  40044. def fz_shrink_store(percent):
  40045. r"""
  40046. Class-aware wrapper for `::fz_shrink_store()`.
  40047. Evict items from the store until the total size of
  40048. the objects in the store is reduced to a given percentage of its
  40049. current size.
  40050. percent: %age of current size to reduce the store to.
  40051. Returns non zero if we managed to free enough memory, zero
  40052. otherwise.
  40053. """
  40054. return _mupdf.fz_shrink_store(percent)
  40055. def fz_skip(stm, len):
  40056. r"""
  40057. Class-aware wrapper for `::fz_skip()`.
  40058. Read from a stream discarding data.
  40059. stm: The stream to read from.
  40060. len: The number of bytes to read.
  40061. Returns the number of bytes read. May throw exceptions.
  40062. """
  40063. return _mupdf.fz_skip(stm, len)
  40064. def fz_skip_space(stm):
  40065. r"""
  40066. Class-aware wrapper for `::fz_skip_space()`.
  40067. Skip over whitespace (bytes <= 32) in a stream.
  40068. """
  40069. return _mupdf.fz_skip_space(stm)
  40070. def fz_skip_string(stm, str):
  40071. r"""
  40072. Class-aware wrapper for `::fz_skip_string()`.
  40073. Skip over a given string in a stream. Return 0 if successfully
  40074. skipped, non-zero otherwise. As many characters will be skipped
  40075. over as matched in the string.
  40076. """
  40077. return _mupdf.fz_skip_string(stm, str)
  40078. def fz_slice_buffer(buf, start, end):
  40079. r"""
  40080. Class-aware wrapper for `::fz_slice_buffer()`.
  40081. Create a new buffer with a (subset of) the data from the buffer.
  40082. start: if >= 0, offset from start of buffer, if < 0 offset from end of buffer.
  40083. end: if >= 0, offset from start of buffer, if < 0 offset from end of buffer.
  40084. """
  40085. return _mupdf.fz_slice_buffer(buf, start, end)
  40086. def fz_snap_selection(page, ap, bp, mode):
  40087. r"""Class-aware wrapper for `::fz_snap_selection()`."""
  40088. return _mupdf.fz_snap_selection(page, ap, bp, mode)
  40089. def fz_start_throw_on_repair():
  40090. r"""Class-aware wrapper for `::fz_start_throw_on_repair()`."""
  40091. return _mupdf.fz_start_throw_on_repair()
  40092. def fz_stat_ctime(path):
  40093. r"""Class-aware wrapper for `::fz_stat_ctime()`."""
  40094. return _mupdf.fz_stat_ctime(path)
  40095. def fz_stat_mtime(path):
  40096. r"""Class-aware wrapper for `::fz_stat_mtime()`."""
  40097. return _mupdf.fz_stat_mtime(path)
  40098. def fz_stext_page_block_iterator_eod(pos):
  40099. r"""Class-aware wrapper for `::fz_stext_page_block_iterator_eod()`."""
  40100. return _mupdf.fz_stext_page_block_iterator_eod(pos)
  40101. def fz_stext_page_block_iterator_eod_dfs(pos):
  40102. r"""Class-aware wrapper for `::fz_stext_page_block_iterator_eod_dfs()`."""
  40103. return _mupdf.fz_stext_page_block_iterator_eod_dfs(pos)
  40104. def fz_stext_remove_page_fill(page):
  40105. r"""Class-aware wrapper for `::fz_stext_remove_page_fill()`."""
  40106. return _mupdf.fz_stext_remove_page_fill(page)
  40107. def fz_store_item(key, val, itemsize, type):
  40108. r"""
  40109. Class-aware wrapper for `::fz_store_item()`.
  40110. Add an item to the store.
  40111. Add an item into the store, returning NULL for success. If an
  40112. item with the same key is found in the store, then our item will
  40113. not be inserted, and the function will return a pointer to that
  40114. value instead. This function takes its own reference to val, as
  40115. required (i.e. the caller maintains ownership of its own
  40116. reference).
  40117. key: The key used to index the item.
  40118. val: The value to store.
  40119. itemsize: The size in bytes of the value (as counted towards the
  40120. store size).
  40121. type: Functions used to manipulate the key.
  40122. """
  40123. return _mupdf.fz_store_item(key, val, itemsize, type)
  40124. def fz_store_scavenge(size, phase):
  40125. r"""
  40126. Class-aware wrapper for `::fz_store_scavenge()`.
  40127. This function has out-params. Python/C# wrappers look like:
  40128. `fz_store_scavenge(size_t size)` => `(int, int phase)`
  40129. Internal function used as part of the scavenging
  40130. allocator; when we fail to allocate memory, before returning a
  40131. failure to the caller, we try to scavenge space within the store
  40132. by evicting at least 'size' bytes. The allocator then retries.
  40133. size: The number of bytes we are trying to have free.
  40134. phase: What phase of the scavenge we are in. Updated on exit.
  40135. Returns non zero if we managed to free any memory.
  40136. """
  40137. return _mupdf.fz_store_scavenge(size, phase)
  40138. def fz_store_scavenge_external(size, phase):
  40139. r"""
  40140. Class-aware wrapper for `::fz_store_scavenge_external()`.
  40141. This function has out-params. Python/C# wrappers look like:
  40142. `fz_store_scavenge_external(size_t size)` => `(int, int phase)`
  40143. External function for callers to use
  40144. to scavenge while trying allocations.
  40145. size: The number of bytes we are trying to have free.
  40146. phase: What phase of the scavenge we are in. Updated on exit.
  40147. Returns non zero if we managed to free any memory.
  40148. """
  40149. return _mupdf.fz_store_scavenge_external(size, phase)
  40150. def fz_story_document(story):
  40151. r"""Class-aware wrapper for `::fz_story_document()`."""
  40152. return _mupdf.fz_story_document(story)
  40153. def fz_story_positions(story, cb, arg):
  40154. r"""Class-aware wrapper for `::fz_story_positions()`."""
  40155. return _mupdf.fz_story_positions(story, cb, arg)
  40156. def fz_story_warnings(story):
  40157. r"""Class-aware wrapper for `::fz_story_warnings()`."""
  40158. return _mupdf.fz_story_warnings(story)
  40159. def fz_strcasecmp(a, b):
  40160. r"""
  40161. Class-aware wrapper for `::fz_strcasecmp()`.
  40162. Case insensitive (UTF8) string comparison.
  40163. """
  40164. return _mupdf.fz_strcasecmp(a, b)
  40165. def fz_strdup(s):
  40166. r"""
  40167. Class-aware wrapper for `::fz_strdup()`.
  40168. Portable strdup implementation, using fz allocators.
  40169. """
  40170. return _mupdf.fz_strdup(s)
  40171. def fz_stream_filename(stm):
  40172. r"""
  40173. Class-aware wrapper for `::fz_stream_filename()`.
  40174. Return the filename (UTF-8 encoded) from which a stream was opened.
  40175. Returns NULL if the filename is not available (or the stream was
  40176. opened from a source other than a file).
  40177. """
  40178. return _mupdf.fz_stream_filename(stm)
  40179. def fz_stream_from_output(arg_0):
  40180. r"""
  40181. Class-aware wrapper for `::fz_stream_from_output()`.
  40182. Obtain the fz_output in the form of a fz_stream.
  40183. This allows data to be read back from some forms of fz_output
  40184. object. When finished reading, the fz_stream should be released
  40185. by calling fz_drop_stream. Until the fz_stream is dropped, no
  40186. further operations should be performed on the fz_output object.
  40187. """
  40188. return _mupdf.fz_stream_from_output(arg_0)
  40189. def fz_string_from_barcode_type(type):
  40190. r"""
  40191. Class-aware wrapper for `::fz_string_from_barcode_type()`.
  40192. Return barcode string matching one of the above barcode types.
  40193. All lowercase, e.g. "none", "aztec" etc.
  40194. """
  40195. return _mupdf.fz_string_from_barcode_type(type)
  40196. def fz_string_from_box_type(box):
  40197. r"""Class-aware wrapper for `::fz_string_from_box_type()`."""
  40198. return _mupdf.fz_string_from_box_type(box)
  40199. def fz_string_from_buffer(buf):
  40200. r"""
  40201. Class-aware wrapper for `::fz_string_from_buffer()`.
  40202. Ensure that a buffer's data ends in a
  40203. 0 byte, and return a pointer to it.
  40204. """
  40205. return _mupdf.fz_string_from_buffer(buf)
  40206. def fz_string_from_linecap(cap):
  40207. r"""Class-aware wrapper for `::fz_string_from_linecap()`."""
  40208. return _mupdf.fz_string_from_linecap(cap)
  40209. def fz_string_from_linejoin(join):
  40210. r"""Class-aware wrapper for `::fz_string_from_linejoin()`."""
  40211. return _mupdf.fz_string_from_linejoin(join)
  40212. def fz_string_from_text_language(str, lang):
  40213. r"""
  40214. Class-aware wrapper for `::fz_string_from_text_language()`.
  40215. Recover ISO 639 (639-{1,2,3,5}) language specification
  40216. strings losslessly from a 15 bit fz_text_language code.
  40217. No validation is carried out. See note above.
  40218. """
  40219. return _mupdf.fz_string_from_text_language(str, lang)
  40220. def fz_string_from_text_language2(lang):
  40221. r"""
  40222. Class-aware wrapper for `::fz_string_from_text_language2()`.
  40223. C++ alternative to fz_string_from_text_language() that returns information in a std::string.
  40224. """
  40225. return _mupdf.fz_string_from_text_language2(lang)
  40226. def fz_strlcat(dst, src, n):
  40227. r"""
  40228. Class-aware wrapper for `::fz_strlcat()`.
  40229. Concatenate 2 strings, with a maximum length.
  40230. dst: pointer to first string in a buffer of n bytes.
  40231. src: pointer to string to concatenate.
  40232. n: Size (in bytes) of buffer that dst is in.
  40233. Returns the real length that a concatenated dst + src would have
  40234. been (not including terminator).
  40235. """
  40236. return _mupdf.fz_strlcat(dst, src, n)
  40237. def fz_strlcpy(dst, src, n):
  40238. r"""
  40239. Class-aware wrapper for `::fz_strlcpy()`.
  40240. Copy at most n-1 chars of a string into a destination
  40241. buffer with null termination, returning the real length of the
  40242. initial string (excluding terminator).
  40243. dst: Destination buffer, at least n bytes long.
  40244. src: C string (non-NULL).
  40245. n: Size of dst buffer in bytes.
  40246. Returns the length (excluding terminator) of src.
  40247. """
  40248. return _mupdf.fz_strlcpy(dst, src, n)
  40249. def fz_strncasecmp(a, b, n):
  40250. r"""
  40251. Class-aware wrapper for `::fz_strncasecmp()`.
  40252. Case insensitive (UTF8) string comparison.
  40253. n = maximum number of bytes to read from either a or b.
  40254. """
  40255. return _mupdf.fz_strncasecmp(a, b, n)
  40256. def fz_strnlen(s, maxlen):
  40257. r"""
  40258. Class-aware wrapper for `::fz_strnlen()`.
  40259. Return strlen(s), if that is less than maxlen, or maxlen if
  40260. there is no null byte ('') among the first maxlen bytes.
  40261. """
  40262. return _mupdf.fz_strnlen(s, maxlen)
  40263. def fz_stroke_path(dev, path, stroke, ctm, colorspace, color, alpha, color_params):
  40264. r"""Class-aware wrapper for `::fz_stroke_path()`."""
  40265. return _mupdf.fz_stroke_path(dev, path, stroke, ctm, colorspace, color, alpha, color_params)
  40266. def fz_stroke_state_eq(a, b):
  40267. r"""Class-aware wrapper for `::fz_stroke_state_eq()`."""
  40268. return _mupdf.fz_stroke_state_eq(a, b)
  40269. def fz_stroke_text(dev, text, stroke, ctm, colorspace, color, alpha, color_params):
  40270. r"""Class-aware wrapper for `::fz_stroke_text()`."""
  40271. return _mupdf.fz_stroke_text(dev, text, stroke, ctm, colorspace, color, alpha, color_params)
  40272. def fz_strsep(stringp, delim):
  40273. r"""
  40274. Class-aware wrapper for `::fz_strsep()`.
  40275. This function has out-params. Python/C# wrappers look like:
  40276. `fz_strsep(const char *delim)` => `(char *, char *stringp)`
  40277. Given a pointer to a C string (or a pointer to NULL) break
  40278. it at the first occurrence of a delimiter char (from a given
  40279. set).
  40280. stringp: Pointer to a C string pointer (or NULL). Updated on
  40281. exit to point to the first char of the string after the
  40282. delimiter that was found. The string pointed to by stringp will
  40283. be corrupted by this call (as the found delimiter will be
  40284. overwritten by 0).
  40285. delim: A C string of acceptable delimiter characters.
  40286. Returns a pointer to a C string containing the chars of stringp
  40287. up to the first delimiter char (or the end of the string), or
  40288. NULL.
  40289. """
  40290. return _mupdf.fz_strsep(stringp, delim)
  40291. def fz_strstr(haystack, needle):
  40292. r"""
  40293. Class-aware wrapper for `::fz_strstr()`.
  40294. Safe strstr function.
  40295. haystack: Where to look (may be NULL).
  40296. needled: What to look for.
  40297. Returns NULL if unmatched, or pointer to start of match.
  40298. """
  40299. return _mupdf.fz_strstr(haystack, needle)
  40300. def fz_strstrcase(haystack, needle):
  40301. r"""
  40302. Class-aware wrapper for `::fz_strstrcase()`.
  40303. Safe case-insensitive strstr function. (Accepts UTF-8).
  40304. haystack: Where to look (may be NULL).
  40305. needled: What to look for.
  40306. Returns NULL if unmatched, or pointer to start of match.
  40307. """
  40308. return _mupdf.fz_strstrcase(haystack, needle)
  40309. def fz_strtof(s, es):
  40310. r"""
  40311. Class-aware wrapper for `::fz_strtof()`.
  40312. This function has out-params. Python/C# wrappers look like:
  40313. `fz_strtof(const char *s)` => `(float, char *es)`
  40314. Locale-independent decimal to binary conversion. On overflow
  40315. return (-)INFINITY and set errno to ERANGE. On underflow return
  40316. 0 and set errno to ERANGE. Special inputs (case insensitive):
  40317. "NAN", "INF" or "INFINITY".
  40318. """
  40319. return _mupdf.fz_strtof(s, es)
  40320. def fz_structure_from_string(str):
  40321. r"""Class-aware wrapper for `::fz_structure_from_string()`."""
  40322. return _mupdf.fz_structure_from_string(str)
  40323. def fz_structure_to_string(type):
  40324. r"""Class-aware wrapper for `::fz_structure_to_string()`."""
  40325. return _mupdf.fz_structure_to_string(type)
  40326. def fz_strverscmp(s1, s2):
  40327. r"""
  40328. Class-aware wrapper for `::fz_strverscmp()`.
  40329. portable strverscmp(3) function
  40330. """
  40331. return _mupdf.fz_strverscmp(s1, s2)
  40332. def fz_subpixel_adjust(ctm, subpix_ctm, qe, qf):
  40333. r"""
  40334. Class-aware wrapper for `::fz_subpixel_adjust()`.
  40335. Perform subpixel quantisation and adjustment on a glyph matrix.
  40336. ctm: On entry, the desired 'ideal' transformation for a glyph.
  40337. On exit, adjusted to a (very similar) transformation quantised
  40338. for subpixel caching.
  40339. subpix_ctm: Initialised by the routine to the transform that
  40340. should be used to render the glyph.
  40341. qe, qf: which subpixel position we quantised to.
  40342. Returns: the size of the glyph.
  40343. Note: This is currently only exposed for use in our app. It
  40344. should be considered "at risk" of removal from the API.
  40345. """
  40346. return _mupdf.fz_subpixel_adjust(ctm, subpix_ctm, qe, qf)
  40347. def fz_subsample_pixmap(tile, factor):
  40348. r"""Class-aware wrapper for `::fz_subsample_pixmap()`."""
  40349. return _mupdf.fz_subsample_pixmap(tile, factor)
  40350. def fz_subset_cff_for_gids(orig, gids, num_gids, symbolic, cidfont):
  40351. r"""
  40352. Class-aware wrapper for `::fz_subset_cff_for_gids()`.
  40353. This function has out-params. Python/C# wrappers look like:
  40354. `fz_subset_cff_for_gids(::fz_buffer *orig, int num_gids, int symbolic, int cidfont)` => `(fz_buffer *, int gids)`
  40355. """
  40356. return _mupdf.fz_subset_cff_for_gids(orig, gids, num_gids, symbolic, cidfont)
  40357. def fz_subset_ttf_for_gids(orig, gids, num_gids, symbolic, cidfont):
  40358. r"""
  40359. Class-aware wrapper for `::fz_subset_ttf_for_gids()`.
  40360. This function has out-params. Python/C# wrappers look like:
  40361. `fz_subset_ttf_for_gids(::fz_buffer *orig, int num_gids, int symbolic, int cidfont)` => `(fz_buffer *, int gids)`
  40362. """
  40363. return _mupdf.fz_subset_ttf_for_gids(orig, gids, num_gids, symbolic, cidfont)
  40364. def fz_sync_bits(stm):
  40365. r"""
  40366. Class-aware wrapper for `::fz_sync_bits()`.
  40367. Called after reading bits to tell the stream
  40368. that we are about to return to reading bytewise. Resyncs
  40369. the stream to whole byte boundaries.
  40370. """
  40371. return _mupdf.fz_sync_bits(stm)
  40372. def fz_table_hunt(page):
  40373. r"""
  40374. Class-aware wrapper for `::fz_table_hunt()`.
  40375. Hunt for possible tables on a page, and update the stext with
  40376. information.
  40377. """
  40378. return _mupdf.fz_table_hunt(page)
  40379. def fz_table_hunt_within_bounds(page, bounds):
  40380. r"""
  40381. Class-aware wrapper for `::fz_table_hunt_within_bounds()`.
  40382. Hunt for possible tables within a specific rect on a page, and
  40383. update the stext with information.
  40384. """
  40385. return _mupdf.fz_table_hunt_within_bounds(page, bounds)
  40386. def fz_tell(stm):
  40387. r"""
  40388. Class-aware wrapper for `::fz_tell()`.
  40389. return the current reading position within a stream
  40390. """
  40391. return _mupdf.fz_tell(stm)
  40392. def fz_tell_output(out):
  40393. r"""
  40394. Class-aware wrapper for `::fz_tell_output()`.
  40395. Return the current file position.
  40396. Throw an error on untellable outputs.
  40397. """
  40398. return _mupdf.fz_tell_output(out)
  40399. def fz_terminate_buffer(buf):
  40400. r"""
  40401. Class-aware wrapper for `::fz_terminate_buffer()`.
  40402. Zero-terminate buffer in order to use as a C string.
  40403. This byte is invisible and does not affect the length of the
  40404. buffer as returned by fz_buffer_storage. The zero byte is
  40405. written *after* the data, and subsequent writes will overwrite
  40406. the terminating byte.
  40407. Subsequent changes to the size of the buffer (such as by
  40408. fz_buffer_trim, fz_buffer_grow, fz_resize_buffer, etc) may
  40409. invalidate this.
  40410. """
  40411. return _mupdf.fz_terminate_buffer(buf)
  40412. def fz_text_aa_level():
  40413. r"""
  40414. Class-aware wrapper for `::fz_text_aa_level()`.
  40415. Get the number of bits of antialiasing we are
  40416. using for text. Between 0 and 8.
  40417. """
  40418. return _mupdf.fz_text_aa_level()
  40419. def fz_text_language_from_string(str):
  40420. r"""
  40421. Class-aware wrapper for `::fz_text_language_from_string()`.
  40422. Convert ISO 639 (639-{1,2,3,5}) language specification
  40423. strings losslessly to a 15 bit fz_text_language code.
  40424. No validation is carried out. Obviously invalid (out
  40425. of spec) codes will be mapped to FZ_LANG_UNSET, but
  40426. well-formed (but undefined) codes will be blithely
  40427. accepted.
  40428. """
  40429. return _mupdf.fz_text_language_from_string(str)
  40430. def fz_tint_pixmap(pix, black, white):
  40431. r"""
  40432. Class-aware wrapper for `::fz_tint_pixmap()`.
  40433. Tint all the pixels in an RGB, BGR, or Gray pixmap.
  40434. black: Map black to this hexadecimal RGB color.
  40435. white: Map white to this hexadecimal RGB color.
  40436. """
  40437. return _mupdf.fz_tint_pixmap(pix, black, white)
  40438. def fz_tolower(c):
  40439. r"""
  40440. Class-aware wrapper for `::fz_tolower()`.
  40441. Unicode aware tolower and toupper functions.
  40442. """
  40443. return _mupdf.fz_tolower(c)
  40444. def fz_toupper(c):
  40445. r"""Class-aware wrapper for `::fz_toupper()`."""
  40446. return _mupdf.fz_toupper(c)
  40447. def fz_transform_page(mediabox, resolution, rotate):
  40448. r"""
  40449. Class-aware wrapper for `::fz_transform_page()`.
  40450. Create transform matrix to draw page
  40451. at a given resolution and rotation. Adjusts the scaling
  40452. factors so that the page covers whole number of
  40453. pixels and adjust the page origin to be at 0,0.
  40454. """
  40455. return _mupdf.fz_transform_page(mediabox, resolution, rotate)
  40456. def fz_transform_path(path, transform):
  40457. r"""
  40458. Class-aware wrapper for `::fz_transform_path()`.
  40459. Transform a path by a given
  40460. matrix.
  40461. path: The path to modify (must not be a packed path).
  40462. transform: The transform to apply.
  40463. Throws exceptions if the path is packed, or on failure
  40464. to allocate.
  40465. """
  40466. return _mupdf.fz_transform_path(path, transform)
  40467. def fz_transform_point(point, m):
  40468. r"""
  40469. Class-aware wrapper for `::fz_transform_point()`.
  40470. Apply a transformation to a point.
  40471. transform: Transformation matrix to apply. See fz_concat,
  40472. fz_scale, fz_rotate and fz_translate for how to create a
  40473. matrix.
  40474. point: Pointer to point to update.
  40475. Returns transform (unchanged).
  40476. """
  40477. return _mupdf.fz_transform_point(point, m)
  40478. def fz_transform_point_xy(x, y, m):
  40479. r"""Class-aware wrapper for `::fz_transform_point_xy()`."""
  40480. return _mupdf.fz_transform_point_xy(x, y, m)
  40481. def fz_transform_quad(q, m):
  40482. r"""
  40483. Class-aware wrapper for `::fz_transform_quad()`.
  40484. Transform a quad by a matrix.
  40485. """
  40486. return _mupdf.fz_transform_quad(q, m)
  40487. def fz_transform_rect(rect, m):
  40488. r"""
  40489. Class-aware wrapper for `::fz_transform_rect()`.
  40490. Apply a transform to a rectangle.
  40491. After the four corner points of the axis-aligned rectangle
  40492. have been transformed it may not longer be axis-aligned. So a
  40493. new axis-aligned rectangle is created covering at least the
  40494. area of the transformed rectangle.
  40495. transform: Transformation matrix to apply. See fz_concat,
  40496. fz_scale and fz_rotate for how to create a matrix.
  40497. rect: Rectangle to be transformed. The two special cases
  40498. fz_empty_rect and fz_infinite_rect, may be used but are
  40499. returned unchanged as expected.
  40500. """
  40501. return _mupdf.fz_transform_rect(rect, m)
  40502. def fz_transform_vector(vector, m):
  40503. r"""
  40504. Class-aware wrapper for `::fz_transform_vector()`.
  40505. Apply a transformation to a vector.
  40506. transform: Transformation matrix to apply. See fz_concat,
  40507. fz_scale and fz_rotate for how to create a matrix. Any
  40508. translation will be ignored.
  40509. vector: Pointer to vector to update.
  40510. """
  40511. return _mupdf.fz_transform_vector(vector, m)
  40512. def fz_translate(tx, ty):
  40513. r"""
  40514. Class-aware wrapper for `::fz_translate()`.
  40515. Create a translation matrix.
  40516. The returned matrix is of the form [ 1 0 0 1 tx ty ].
  40517. m: A place to store the created matrix.
  40518. tx, ty: Translation distances along the X- and Y-axes. A
  40519. translation of 0 will not cause any translation along the
  40520. relevant axis.
  40521. Returns m.
  40522. """
  40523. return _mupdf.fz_translate(tx, ty)
  40524. def fz_translate_irect(a, xoff, yoff):
  40525. r"""Class-aware wrapper for `::fz_translate_irect()`."""
  40526. return _mupdf.fz_translate_irect(a, xoff, yoff)
  40527. def fz_translate_rect(a, xoff, yoff):
  40528. r"""
  40529. Class-aware wrapper for `::fz_translate_rect()`.
  40530. Translate bounding box.
  40531. Translate a bbox by a given x and y offset. Allows for overflow.
  40532. """
  40533. return _mupdf.fz_translate_rect(a, xoff, yoff)
  40534. def fz_tree_archive_add_buffer(arch_, name, buf):
  40535. r"""
  40536. Class-aware wrapper for `::fz_tree_archive_add_buffer()`.
  40537. Add a named buffer to an existing tree archive.
  40538. The tree will take a new reference to the buffer. Ownership
  40539. is not transferred.
  40540. """
  40541. return _mupdf.fz_tree_archive_add_buffer(arch_, name, buf)
  40542. def fz_tree_archive_add_data(arch_, name, data, size):
  40543. r"""
  40544. Class-aware wrapper for `::fz_tree_archive_add_data()`.
  40545. Add a named block of data to an existing tree archive.
  40546. The data will be copied into a buffer, and so the caller
  40547. may free it as soon as this returns.
  40548. """
  40549. return _mupdf.fz_tree_archive_add_data(arch_, name, data, size)
  40550. def fz_tree_lookup(node, key):
  40551. r"""
  40552. Class-aware wrapper for `::fz_tree_lookup()`.
  40553. Look for the value of a node in the tree with the given key.
  40554. Simple pointer equivalence is used for key.
  40555. Returns NULL for no match.
  40556. """
  40557. return _mupdf.fz_tree_lookup(node, key)
  40558. def fz_trim_buffer(buf):
  40559. r"""
  40560. Class-aware wrapper for `::fz_trim_buffer()`.
  40561. Trim wasted capacity from a buffer by resizing internal memory.
  40562. """
  40563. return _mupdf.fz_trim_buffer(buf)
  40564. def fz_trim_path(path):
  40565. r"""
  40566. Class-aware wrapper for `::fz_trim_path()`.
  40567. Minimise the internal storage used by a path.
  40568. As paths are constructed, the internal buffers
  40569. grow. To avoid repeated reallocations they
  40570. grow with some spare space. Once a path has
  40571. been fully constructed, this call allows the
  40572. excess space to be trimmed.
  40573. """
  40574. return _mupdf.fz_trim_path(path)
  40575. def fz_truncate_output(arg_0):
  40576. r"""
  40577. Class-aware wrapper for `::fz_truncate_output()`.
  40578. Truncate the output at the current position.
  40579. This allows output streams which have seeked back from the end
  40580. of their storage to be truncated at the current point.
  40581. """
  40582. return _mupdf.fz_truncate_output(arg_0)
  40583. def fz_try_invert_matrix(inv, src):
  40584. r"""
  40585. Class-aware wrapper for `::fz_try_invert_matrix()`.
  40586. Attempt to create an inverse matrix.
  40587. inv: Place to store inverse matrix.
  40588. src: Matrix to invert. A degenerate matrix, where the
  40589. determinant is equal to zero, can not be inverted.
  40590. Returns 1 if matrix is degenerate (singular), or 0 otherwise.
  40591. """
  40592. return _mupdf.fz_try_invert_matrix(inv, src)
  40593. def fz_try_open_archive_entry(arch, name):
  40594. r"""
  40595. Class-aware wrapper for `::fz_try_open_archive_entry()`.
  40596. Opens an archive entry as a stream.
  40597. Returns NULL if a matching entry cannot be found, otherwise
  40598. behaves exactly as fz_open_archive_entry.
  40599. """
  40600. return _mupdf.fz_try_open_archive_entry(arch, name)
  40601. def fz_try_open_archive_with_stream(file):
  40602. r"""
  40603. Class-aware wrapper for `::fz_try_open_archive_with_stream()`.
  40604. Open zip or tar archive stream.
  40605. Does the same as fz_open_archive_with_stream, but will not throw
  40606. an error in the event of failing to recognise the format. Will
  40607. still throw errors in other cases though!
  40608. """
  40609. return _mupdf.fz_try_open_archive_with_stream(file)
  40610. def fz_try_open_file(name):
  40611. r"""
  40612. Class-aware wrapper for `::fz_try_open_file()`.
  40613. Open the named file and wrap it in a stream.
  40614. Does the same as fz_open_file, but in the event the file
  40615. does not open, it will return NULL rather than throw an
  40616. exception.
  40617. """
  40618. return _mupdf.fz_try_open_file(name)
  40619. def fz_try_parse_xml_archive_entry(dir, filename, preserve_white):
  40620. r"""
  40621. Class-aware wrapper for `::fz_try_parse_xml_archive_entry()`.
  40622. Try and parse the contents of an archive entry into a tree of xml nodes.
  40623. preserve_white: whether to keep or delete all-whitespace nodes.
  40624. Will return NULL if the archive entry can't be found. Otherwise behaves
  40625. the same as fz_parse_xml_archive_entry. May throw exceptions.
  40626. """
  40627. return _mupdf.fz_try_parse_xml_archive_entry(dir, filename, preserve_white)
  40628. def fz_try_read_archive_entry(arch, name):
  40629. r"""
  40630. Class-aware wrapper for `::fz_try_read_archive_entry()`.
  40631. Reads all bytes in an archive entry
  40632. into a buffer.
  40633. name: Entry name to look for, this must be an exact match to
  40634. the entry name in the archive.
  40635. Returns NULL if a matching entry cannot be found. Otherwise behaves
  40636. the same as fz_read_archive_entry. Exceptions may be thrown.
  40637. """
  40638. return _mupdf.fz_try_read_archive_entry(arch, name)
  40639. def fz_try_read_file(filename):
  40640. r"""
  40641. Class-aware wrapper for `::fz_try_read_file()`.
  40642. Read all the contents of a file into a buffer.
  40643. Returns NULL if the file does not exist, otherwise
  40644. behaves exactly as fz_read_file.
  40645. """
  40646. return _mupdf.fz_try_read_file(filename)
  40647. def fz_tune_image_decode(image_decode, arg):
  40648. r"""
  40649. Class-aware wrapper for `::fz_tune_image_decode()`.
  40650. Set the tuning function to use for
  40651. image decode.
  40652. image_decode: Function to use.
  40653. arg: Opaque argument to be passed to tuning function.
  40654. """
  40655. return _mupdf.fz_tune_image_decode(image_decode, arg)
  40656. def fz_tune_image_scale(image_scale, arg):
  40657. r"""
  40658. Class-aware wrapper for `::fz_tune_image_scale()`.
  40659. Set the tuning function to use for
  40660. image scaling.
  40661. image_scale: Function to use.
  40662. arg: Opaque argument to be passed to tuning function.
  40663. """
  40664. return _mupdf.fz_tune_image_scale(image_scale, arg)
  40665. def fz_unicode_from_glyph_name(name):
  40666. r"""Class-aware wrapper for `::fz_unicode_from_glyph_name()`."""
  40667. return _mupdf.fz_unicode_from_glyph_name(name)
  40668. def fz_unicode_from_glyph_name_strict(name):
  40669. r"""Class-aware wrapper for `::fz_unicode_from_glyph_name_strict()`."""
  40670. return _mupdf.fz_unicode_from_glyph_name_strict(name)
  40671. def fz_union_rect(a, b):
  40672. r"""
  40673. Class-aware wrapper for `::fz_union_rect()`.
  40674. Compute union of two rectangles.
  40675. Given two rectangles, update the first to be the smallest
  40676. axis-aligned rectangle that encompasses both given rectangles.
  40677. If either rectangle is infinite then the union is also infinite.
  40678. If either rectangle is empty then the union is simply the
  40679. non-empty rectangle. Should both rectangles be empty, then the
  40680. union is also empty.
  40681. """
  40682. return _mupdf.fz_union_rect(a, b)
  40683. def fz_unlock(lock):
  40684. r"""
  40685. Class-aware wrapper for `::fz_unlock()`.
  40686. Unlock one of the user supplied mutexes.
  40687. """
  40688. return _mupdf.fz_unlock(lock)
  40689. def fz_unpack_stream(src, depth, w, h, n, indexed, pad, skip):
  40690. r"""Class-aware wrapper for `::fz_unpack_stream()`."""
  40691. return _mupdf.fz_unpack_stream(src, depth, w, h, n, indexed, pad, skip)
  40692. def fz_unread_byte(stm):
  40693. r"""
  40694. Class-aware wrapper for `::fz_unread_byte()`.
  40695. Unread the single last byte successfully
  40696. read from a stream. Do not call this without having
  40697. successfully read a byte.
  40698. stm: The stream to operate upon.
  40699. """
  40700. return _mupdf.fz_unread_byte(stm)
  40701. def fz_unshare_stroke_state(shared):
  40702. r"""
  40703. Class-aware wrapper for `::fz_unshare_stroke_state()`.
  40704. Given a reference to a (possibly) shared stroke_state structure,
  40705. return a reference to an equivalent stroke_state structure
  40706. that is guaranteed to be unshared (i.e. one that can
  40707. safely be modified).
  40708. shared: The reference to a (possibly) shared structure
  40709. to unshare. Ownership of this reference is passed in
  40710. to this function, even in the case of exceptions being
  40711. thrown.
  40712. Exceptions may be thrown in the event of failure to
  40713. allocate if required.
  40714. """
  40715. return _mupdf.fz_unshare_stroke_state(shared)
  40716. def fz_unshare_stroke_state_with_dash_len(shared, len):
  40717. r"""
  40718. Class-aware wrapper for `::fz_unshare_stroke_state_with_dash_len()`.
  40719. Given a reference to a (possibly) shared stroke_state structure,
  40720. return a reference to a stroke_state structure (with room for a
  40721. given amount of dash data) that is guaranteed to be unshared
  40722. (i.e. one that can safely be modified).
  40723. shared: The reference to a (possibly) shared structure
  40724. to unshare. Ownership of this reference is passed in
  40725. to this function, even in the case of exceptions being
  40726. thrown.
  40727. Exceptions may be thrown in the event of failure to
  40728. allocate if required.
  40729. """
  40730. return _mupdf.fz_unshare_stroke_state_with_dash_len(shared, len)
  40731. def fz_urldecode(url):
  40732. r"""
  40733. Class-aware wrapper for `::fz_urldecode()`.
  40734. Like fz_decode_uri_component but in-place.
  40735. """
  40736. return _mupdf.fz_urldecode(url)
  40737. def fz_use_document_css():
  40738. r"""
  40739. Class-aware wrapper for `::fz_use_document_css()`.
  40740. Return whether to respect document styles in HTML and EPUB.
  40741. """
  40742. return _mupdf.fz_use_document_css()
  40743. def fz_user_context():
  40744. r"""
  40745. Class-aware wrapper for `::fz_user_context()`.
  40746. Read the user field from the context.
  40747. """
  40748. return _mupdf.fz_user_context()
  40749. def fz_user_css():
  40750. r"""
  40751. Class-aware wrapper for `::fz_user_css()`.
  40752. Get the user stylesheet source text.
  40753. """
  40754. return _mupdf.fz_user_css()
  40755. def fz_utflen(s):
  40756. r"""
  40757. Class-aware wrapper for `::fz_utflen()`.
  40758. Count how many runes the UTF-8 encoded string
  40759. consists of.
  40760. s: The UTF-8 encoded, NUL-terminated text string.
  40761. Returns the number of runes in the string.
  40762. """
  40763. return _mupdf.fz_utflen(s)
  40764. def fz_var_imp(arg_0):
  40765. r"""Class-aware wrapper for `::fz_var_imp()`."""
  40766. return _mupdf.fz_var_imp(arg_0)
  40767. def fz_walk_path(path, walker, arg):
  40768. r"""
  40769. Class-aware wrapper for `::fz_walk_path()`.
  40770. Walk the segments of a path, calling the
  40771. appropriate callback function from a given set for each
  40772. segment of the path.
  40773. path: The path to walk.
  40774. walker: The set of callback functions to use. The first
  40775. 4 callback pointers in the set must be non-NULL. The
  40776. subsequent ones can either be supplied, or can be left
  40777. as NULL, in which case the top 4 functions will be
  40778. called as appropriate to simulate them.
  40779. arg: An opaque argument passed in to each callback.
  40780. Exceptions will only be thrown if the underlying callback
  40781. functions throw them.
  40782. """
  40783. return _mupdf.fz_walk_path(path, walker, arg)
  40784. def fz_warn(*args):
  40785. r"""Class-aware wrapper for `::fz_warn()`."""
  40786. return _mupdf.fz_warn(*args)
  40787. def fz_warning_callback(user):
  40788. r"""
  40789. Class-aware wrapper for `::fz_warning_callback()`.
  40790. This function has out-params. Python/C# wrappers look like:
  40791. `fz_warning_callback()` => `(fz_warning_cb *, void *user)`
  40792. Retrieve the currently set warning callback, or NULL if none
  40793. has been set. Optionally, if user is non-NULL, the user pointer
  40794. given when the warning callback was set is also passed back to
  40795. the caller.
  40796. """
  40797. return _mupdf.fz_warning_callback(user)
  40798. def fz_warp_pixmap(src, points, width, height):
  40799. r"""Class-aware wrapper for `::fz_warp_pixmap()`."""
  40800. return _mupdf.fz_warp_pixmap(src, points, width, height)
  40801. def fz_windows_1250_from_unicode(u):
  40802. r"""Class-aware wrapper for `::fz_windows_1250_from_unicode()`."""
  40803. return _mupdf.fz_windows_1250_from_unicode(u)
  40804. def fz_windows_1251_from_unicode(u):
  40805. r"""Class-aware wrapper for `::fz_windows_1251_from_unicode()`."""
  40806. return _mupdf.fz_windows_1251_from_unicode(u)
  40807. def fz_windows_1252_from_unicode(u):
  40808. r"""Class-aware wrapper for `::fz_windows_1252_from_unicode()`."""
  40809. return _mupdf.fz_windows_1252_from_unicode(u)
  40810. def fz_write_band(writer, stride, band_height, samples):
  40811. r"""
  40812. Class-aware wrapper for `::fz_write_band()`.
  40813. Cause a band writer to write the next band
  40814. of data for an image.
  40815. stride: The byte offset from the first byte of the data
  40816. for a pixel to the first byte of the data for the same pixel
  40817. on the row below.
  40818. band_height: The number of lines in this band.
  40819. samples: Pointer to first byte of the data.
  40820. """
  40821. return _mupdf.fz_write_band(writer, stride, band_height, samples)
  40822. def fz_write_base64(out, data, size, newline):
  40823. r"""
  40824. Class-aware wrapper for `::fz_write_base64()`.
  40825. Write a base64 encoded data block, optionally with periodic
  40826. newlines.
  40827. """
  40828. return _mupdf.fz_write_base64(out, data, size, newline)
  40829. def fz_write_base64_buffer(out, data, newline):
  40830. r"""
  40831. Class-aware wrapper for `::fz_write_base64_buffer()`.
  40832. Write a base64 encoded fz_buffer, optionally with periodic
  40833. newlines.
  40834. """
  40835. return _mupdf.fz_write_base64_buffer(out, data, newline)
  40836. def fz_write_bitmap_as_pbm(out, bitmap):
  40837. r"""
  40838. Class-aware wrapper for `::fz_write_bitmap_as_pbm()`.
  40839. Write a bitmap as a pbm.
  40840. """
  40841. return _mupdf.fz_write_bitmap_as_pbm(out, bitmap)
  40842. def fz_write_bitmap_as_pcl(out, bitmap, pcl):
  40843. r"""
  40844. Class-aware wrapper for `::fz_write_bitmap_as_pcl()`.
  40845. Write a bitmap as mono PCL.
  40846. """
  40847. return _mupdf.fz_write_bitmap_as_pcl(out, bitmap, pcl)
  40848. def fz_write_bitmap_as_pkm(out, bitmap):
  40849. r"""
  40850. Class-aware wrapper for `::fz_write_bitmap_as_pkm()`.
  40851. Write a CMYK bitmap as a pkm.
  40852. """
  40853. return _mupdf.fz_write_bitmap_as_pkm(out, bitmap)
  40854. def fz_write_bitmap_as_pwg(out, bitmap, pwg):
  40855. r"""
  40856. Class-aware wrapper for `::fz_write_bitmap_as_pwg()`.
  40857. Write a bitmap as a PWG.
  40858. """
  40859. return _mupdf.fz_write_bitmap_as_pwg(out, bitmap, pwg)
  40860. def fz_write_bitmap_as_pwg_page(out, bitmap, pwg):
  40861. r"""
  40862. Class-aware wrapper for `::fz_write_bitmap_as_pwg_page()`.
  40863. Write a bitmap as a PWG page.
  40864. Caller should provide a file header by calling
  40865. fz_write_pwg_file_header, but can then write several pages to
  40866. the same file.
  40867. """
  40868. return _mupdf.fz_write_bitmap_as_pwg_page(out, bitmap, pwg)
  40869. def fz_write_bits(out, data, num_bits):
  40870. r"""
  40871. Class-aware wrapper for `::fz_write_bits()`.
  40872. Write num_bits of data to the end of the output stream, assumed to be packed
  40873. most significant bits first.
  40874. """
  40875. return _mupdf.fz_write_bits(out, data, num_bits)
  40876. def fz_write_bits_sync(out):
  40877. r"""
  40878. Class-aware wrapper for `::fz_write_bits_sync()`.
  40879. Sync to byte boundary after writing bits.
  40880. """
  40881. return _mupdf.fz_write_bits_sync(out)
  40882. def fz_write_buffer(out, data):
  40883. r"""Class-aware wrapper for `::fz_write_buffer()`."""
  40884. return _mupdf.fz_write_buffer(out, data)
  40885. def fz_write_byte(out, x):
  40886. r"""Class-aware wrapper for `::fz_write_byte()`."""
  40887. return _mupdf.fz_write_byte(out, x)
  40888. def fz_write_char(out, x):
  40889. r"""Class-aware wrapper for `::fz_write_char()`."""
  40890. return _mupdf.fz_write_char(out, x)
  40891. def fz_write_data(out, data, size):
  40892. r"""
  40893. Class-aware wrapper for `::fz_write_data()`.
  40894. Write data to output.
  40895. data: Pointer to data to write.
  40896. size: Size of data to write in bytes.
  40897. """
  40898. return _mupdf.fz_write_data(out, data, size)
  40899. def fz_write_document(wri, doc):
  40900. r"""
  40901. Class-aware wrapper for `::fz_write_document()`.
  40902. Convenience function to feed all the pages of a document to
  40903. fz_begin_page/fz_run_page/fz_end_page.
  40904. """
  40905. return _mupdf.fz_write_document(wri, doc)
  40906. def fz_write_float_be(out, f):
  40907. r"""Class-aware wrapper for `::fz_write_float_be()`."""
  40908. return _mupdf.fz_write_float_be(out, f)
  40909. def fz_write_float_le(out, f):
  40910. r"""Class-aware wrapper for `::fz_write_float_le()`."""
  40911. return _mupdf.fz_write_float_le(out, f)
  40912. def fz_write_header(writer, w, h, n, alpha, xres, yres, pagenum, cs, seps):
  40913. r"""
  40914. Class-aware wrapper for `::fz_write_header()`.
  40915. Cause a band writer to write the header for
  40916. a banded image with the given properties/dimensions etc. This
  40917. also configures the bandwriter for the format of the data to be
  40918. passed in future calls.
  40919. w, h: Width and Height of the entire page.
  40920. n: Number of components (including spots and alphas).
  40921. alpha: Number of alpha components.
  40922. xres, yres: X and Y resolutions in dpi.
  40923. cs: Colorspace (NULL for bitmaps)
  40924. seps: Separation details (or NULL).
  40925. """
  40926. return _mupdf.fz_write_header(writer, w, h, n, alpha, xres, yres, pagenum, cs, seps)
  40927. def fz_write_image_as_data_uri(out, image):
  40928. r"""
  40929. Class-aware wrapper for `::fz_write_image_as_data_uri()`.
  40930. Write image as a data URI (for HTML and SVG output).
  40931. """
  40932. return _mupdf.fz_write_image_as_data_uri(out, image)
  40933. def fz_write_int16_be(out, x):
  40934. r"""Class-aware wrapper for `::fz_write_int16_be()`."""
  40935. return _mupdf.fz_write_int16_be(out, x)
  40936. def fz_write_int16_le(out, x):
  40937. r"""Class-aware wrapper for `::fz_write_int16_le()`."""
  40938. return _mupdf.fz_write_int16_le(out, x)
  40939. def fz_write_int32_be(out, x):
  40940. r"""
  40941. Class-aware wrapper for `::fz_write_int32_be()`.
  40942. Write different sized data to an output stream.
  40943. """
  40944. return _mupdf.fz_write_int32_be(out, x)
  40945. def fz_write_int32_le(out, x):
  40946. r"""Class-aware wrapper for `::fz_write_int32_le()`."""
  40947. return _mupdf.fz_write_int32_le(out, x)
  40948. def fz_write_json(out, value):
  40949. r"""Class-aware wrapper for `::fz_write_json()`."""
  40950. return _mupdf.fz_write_json(out, value)
  40951. def fz_write_pixmap_as_data_uri(out, pixmap):
  40952. r"""Class-aware wrapper for `::fz_write_pixmap_as_data_uri()`."""
  40953. return _mupdf.fz_write_pixmap_as_data_uri(out, pixmap)
  40954. def fz_write_pixmap_as_jpeg(out, pix, quality, invert_cmyk):
  40955. r"""
  40956. Class-aware wrapper for `::fz_write_pixmap_as_jpeg()`.
  40957. Write a pixmap as a JPEG.
  40958. """
  40959. return _mupdf.fz_write_pixmap_as_jpeg(out, pix, quality, invert_cmyk)
  40960. def fz_write_pixmap_as_jpx(out, pix, quality):
  40961. r"""
  40962. Class-aware wrapper for `::fz_write_pixmap_as_jpx()`.
  40963. Pixmap data as JP2K with no subsampling.
  40964. quality = 100 = lossless
  40965. otherwise for a factor of x compression use 100-x. (so 80 is 1:20 compression)
  40966. """
  40967. return _mupdf.fz_write_pixmap_as_jpx(out, pix, quality)
  40968. def fz_write_pixmap_as_pam(out, pixmap):
  40969. r"""
  40970. Class-aware wrapper for `::fz_write_pixmap_as_pam()`.
  40971. Write a pixmap as a pnm (greyscale, rgb or cmyk, with or without
  40972. alpha).
  40973. """
  40974. return _mupdf.fz_write_pixmap_as_pam(out, pixmap)
  40975. def fz_write_pixmap_as_pcl(out, pixmap, pcl):
  40976. r"""
  40977. Class-aware wrapper for `::fz_write_pixmap_as_pcl()`.
  40978. Write an (RGB) pixmap as color PCL.
  40979. """
  40980. return _mupdf.fz_write_pixmap_as_pcl(out, pixmap, pcl)
  40981. def fz_write_pixmap_as_pclm(out, pixmap, options):
  40982. r"""
  40983. Class-aware wrapper for `::fz_write_pixmap_as_pclm()`.
  40984. Write a (Greyscale or RGB) pixmap as pclm.
  40985. """
  40986. return _mupdf.fz_write_pixmap_as_pclm(out, pixmap, options)
  40987. def fz_write_pixmap_as_pdfocr(out, pixmap, options):
  40988. r"""
  40989. Class-aware wrapper for `::fz_write_pixmap_as_pdfocr()`.
  40990. Write a (Greyscale or RGB) pixmap as pdfocr.
  40991. """
  40992. return _mupdf.fz_write_pixmap_as_pdfocr(out, pixmap, options)
  40993. def fz_write_pixmap_as_png(out, pixmap):
  40994. r"""
  40995. Class-aware wrapper for `::fz_write_pixmap_as_png()`.
  40996. Write a (Greyscale or RGB) pixmap as a png.
  40997. """
  40998. return _mupdf.fz_write_pixmap_as_png(out, pixmap)
  40999. def fz_write_pixmap_as_pnm(out, pixmap):
  41000. r"""
  41001. Class-aware wrapper for `::fz_write_pixmap_as_pnm()`.
  41002. Write a pixmap as a pnm (greyscale or rgb, no alpha).
  41003. """
  41004. return _mupdf.fz_write_pixmap_as_pnm(out, pixmap)
  41005. def fz_write_pixmap_as_ps(out, pixmap):
  41006. r"""
  41007. Class-aware wrapper for `::fz_write_pixmap_as_ps()`.
  41008. Write a (gray, rgb, or cmyk, no alpha) pixmap out as postscript.
  41009. """
  41010. return _mupdf.fz_write_pixmap_as_ps(out, pixmap)
  41011. def fz_write_pixmap_as_psd(out, pixmap):
  41012. r"""
  41013. Class-aware wrapper for `::fz_write_pixmap_as_psd()`.
  41014. Write a pixmap as a PSD file.
  41015. """
  41016. return _mupdf.fz_write_pixmap_as_psd(out, pixmap)
  41017. def fz_write_pixmap_as_pwg(out, pixmap, pwg):
  41018. r"""
  41019. Class-aware wrapper for `::fz_write_pixmap_as_pwg()`.
  41020. Write a pixmap as a PWG.
  41021. """
  41022. return _mupdf.fz_write_pixmap_as_pwg(out, pixmap, pwg)
  41023. def fz_write_pixmap_as_pwg_page(out, pixmap, pwg):
  41024. r"""
  41025. Class-aware wrapper for `::fz_write_pixmap_as_pwg_page()`.
  41026. Write a pixmap as a PWG page.
  41027. Caller should provide a file header by calling
  41028. fz_write_pwg_file_header, but can then write several pages to
  41029. the same file.
  41030. """
  41031. return _mupdf.fz_write_pixmap_as_pwg_page(out, pixmap, pwg)
  41032. def fz_write_ps_file_header(out):
  41033. r"""
  41034. Class-aware wrapper for `::fz_write_ps_file_header()`.
  41035. Write the file level header for ps band writer output.
  41036. """
  41037. return _mupdf.fz_write_ps_file_header(out)
  41038. def fz_write_ps_file_trailer(out, pages):
  41039. r"""
  41040. Class-aware wrapper for `::fz_write_ps_file_trailer()`.
  41041. Write the file level trailer for ps band writer output.
  41042. """
  41043. return _mupdf.fz_write_ps_file_trailer(out, pages)
  41044. def fz_write_pwg_file_header(out):
  41045. r"""
  41046. Class-aware wrapper for `::fz_write_pwg_file_header()`.
  41047. Output the file header to a pwg stream, ready for pages to follow it.
  41048. """
  41049. return _mupdf.fz_write_pwg_file_header(out)
  41050. def fz_write_rune(out, rune):
  41051. r"""
  41052. Class-aware wrapper for `::fz_write_rune()`.
  41053. Write a UTF-8 encoded unicode character.
  41054. """
  41055. return _mupdf.fz_write_rune(out, rune)
  41056. def fz_write_stabilized_story(writer, user_css, em, contentfn, contentfn_ref, rectfn, rectfn_ref, pagefn, pagefn_ref, dir):
  41057. r"""Class-aware wrapper for `::fz_write_stabilized_story()`."""
  41058. return _mupdf.fz_write_stabilized_story(writer, user_css, em, contentfn, contentfn_ref, rectfn, rectfn_ref, pagefn, pagefn_ref, dir)
  41059. def fz_write_story(writer, story, rectfn, rectfn_ref, positionfn, positionfn_ref, pagefn, pagefn_ref):
  41060. r"""Class-aware wrapper for `::fz_write_story()`."""
  41061. return _mupdf.fz_write_story(writer, story, rectfn, rectfn_ref, positionfn, positionfn_ref, pagefn, pagefn_ref)
  41062. def fz_write_stream(out, _in):
  41063. r"""
  41064. Class-aware wrapper for `::fz_write_stream()`.
  41065. Copy the stream contents to the output.
  41066. """
  41067. return _mupdf.fz_write_stream(out, _in)
  41068. def fz_write_string(out, s):
  41069. r"""
  41070. Class-aware wrapper for `::fz_write_string()`.
  41071. Write a string. Does not write zero terminator.
  41072. """
  41073. return _mupdf.fz_write_string(out, s)
  41074. def fz_write_uint16_be(out, x):
  41075. r"""Class-aware wrapper for `::fz_write_uint16_be()`."""
  41076. return _mupdf.fz_write_uint16_be(out, x)
  41077. def fz_write_uint16_le(out, x):
  41078. r"""Class-aware wrapper for `::fz_write_uint16_le()`."""
  41079. return _mupdf.fz_write_uint16_le(out, x)
  41080. def fz_write_uint32_be(out, x):
  41081. r"""Class-aware wrapper for `::fz_write_uint32_be()`."""
  41082. return _mupdf.fz_write_uint32_be(out, x)
  41083. def fz_write_uint32_le(out, x):
  41084. r"""Class-aware wrapper for `::fz_write_uint32_le()`."""
  41085. return _mupdf.fz_write_uint32_le(out, x)
  41086. def fz_write_xml(root, out, indented):
  41087. r"""
  41088. Class-aware wrapper for `::fz_write_xml()`.
  41089. Write our xml structure out to an xml stream.
  41090. Properly formatted XML is only allowed to have a single top-level node
  41091. under which everything must sit. Our structures allow for multiple
  41092. top level nodes. If required, we will output an extra 'ROOT' node
  41093. at the top so that the xml is well-formed.
  41094. If 'indented' is non-zero then additional whitespace will be added to
  41095. make the XML easier to read in a text editor. It will NOT be properly
  41096. compliant.
  41097. """
  41098. return _mupdf.fz_write_xml(root, out, indented)
  41099. def fz_write_zip_entry(zip, name, buf, compress):
  41100. r"""
  41101. Class-aware wrapper for `::fz_write_zip_entry()`.
  41102. Given a buffer of data, (optionally) compress it, and add it to
  41103. the zip file with the given name.
  41104. """
  41105. return _mupdf.fz_write_zip_entry(zip, name, buf, compress)
  41106. def fz_xml_add_att(pool, node, key, val):
  41107. r"""
  41108. Class-aware wrapper for `::fz_xml_add_att()`.
  41109. Add an attribute to an XML node.
  41110. """
  41111. return _mupdf.fz_xml_add_att(pool, node, key, val)
  41112. def fz_xml_att(item, att):
  41113. r"""
  41114. Class-aware wrapper for `::fz_xml_att()`.
  41115. Return the value of an attribute of an XML node.
  41116. NULL if the attribute doesn't exist.
  41117. """
  41118. return _mupdf.fz_xml_att(item, att)
  41119. def fz_xml_att_alt(item, one, two):
  41120. r"""
  41121. Class-aware wrapper for `::fz_xml_att_alt()`.
  41122. Return the value of an attribute of an XML node.
  41123. If the first attribute doesn't exist, try the second.
  41124. NULL if neither attribute exists.
  41125. """
  41126. return _mupdf.fz_xml_att_alt(item, one, two)
  41127. def fz_xml_att_eq(item, name, match):
  41128. r"""
  41129. Class-aware wrapper for `::fz_xml_att_eq()`.
  41130. Check for a matching attribute on an XML node.
  41131. If the node has the requested attribute (name), and the value
  41132. matches (match) then return 1. Otherwise, 0.
  41133. """
  41134. return _mupdf.fz_xml_att_eq(item, name, match)
  41135. def fz_xml_down(item):
  41136. r"""
  41137. Class-aware wrapper for `::fz_xml_down()`.
  41138. Return first child of XML node.
  41139. """
  41140. return _mupdf.fz_xml_down(item)
  41141. def fz_xml_find(item, tag):
  41142. r"""
  41143. Class-aware wrapper for `::fz_xml_find()`.
  41144. Search the siblings of XML nodes starting with item looking for
  41145. the first with the given tag.
  41146. Return NULL if none found.
  41147. """
  41148. return _mupdf.fz_xml_find(item, tag)
  41149. def fz_xml_find_dfs(item, tag, att, match):
  41150. r"""
  41151. Class-aware wrapper for `::fz_xml_find_dfs()`.
  41152. Perform a depth first search from item, returning the first
  41153. child that matches the given tag (or any tag if tag is NULL),
  41154. with the given attribute (if att is non NULL), that matches
  41155. match (if match is non NULL).
  41156. """
  41157. return _mupdf.fz_xml_find_dfs(item, tag, att, match)
  41158. def fz_xml_find_dfs_top(item, tag, att, match, top):
  41159. r"""
  41160. Class-aware wrapper for `::fz_xml_find_dfs_top()`.
  41161. Perform a depth first search from item, returning the first
  41162. child that matches the given tag (or any tag if tag is NULL),
  41163. with the given attribute (if att is non NULL), that matches
  41164. match (if match is non NULL). The search stops if it ever
  41165. reaches the top of the tree, or the declared 'top' item.
  41166. """
  41167. return _mupdf.fz_xml_find_dfs_top(item, tag, att, match, top)
  41168. def fz_xml_find_down(item, tag):
  41169. r"""
  41170. Class-aware wrapper for `::fz_xml_find_down()`.
  41171. Search the siblings of XML nodes starting with the first child
  41172. of item looking for the first with the given tag.
  41173. Return NULL if none found.
  41174. """
  41175. return _mupdf.fz_xml_find_down(item, tag)
  41176. def fz_xml_find_down_match(item, tag, att, match):
  41177. r"""
  41178. Class-aware wrapper for `::fz_xml_find_down_match()`.
  41179. Search the siblings of XML nodes starting with the first child
  41180. of item looking for the first with the given tag (or any tag if
  41181. tag is NULL), and with a matching attribute.
  41182. Return NULL if none found.
  41183. """
  41184. return _mupdf.fz_xml_find_down_match(item, tag, att, match)
  41185. def fz_xml_find_match(item, tag, att, match):
  41186. r"""
  41187. Class-aware wrapper for `::fz_xml_find_match()`.
  41188. Search the siblings of XML nodes starting with item looking for
  41189. the first with the given tag (or any tag if tag is NULL), and
  41190. with a matching attribute.
  41191. Return NULL if none found.
  41192. """
  41193. return _mupdf.fz_xml_find_match(item, tag, att, match)
  41194. def fz_xml_find_next(item, tag):
  41195. r"""
  41196. Class-aware wrapper for `::fz_xml_find_next()`.
  41197. Search the siblings of XML nodes starting with the first sibling
  41198. of item looking for the first with the given tag.
  41199. Return NULL if none found.
  41200. """
  41201. return _mupdf.fz_xml_find_next(item, tag)
  41202. def fz_xml_find_next_dfs(item, tag, att, match):
  41203. r"""
  41204. Class-aware wrapper for `::fz_xml_find_next_dfs()`.
  41205. Perform a depth first search onwards from item, returning the first
  41206. child that matches the given tag (or any tag if tag is NULL),
  41207. with the given attribute (if att is non NULL), that matches
  41208. match (if match is non NULL).
  41209. """
  41210. return _mupdf.fz_xml_find_next_dfs(item, tag, att, match)
  41211. def fz_xml_find_next_dfs_top(item, tag, att, match, top):
  41212. r"""
  41213. Class-aware wrapper for `::fz_xml_find_next_dfs_top()`.
  41214. Perform a depth first search onwards from item, returning the first
  41215. child that matches the given tag (or any tag if tag is NULL),
  41216. with the given attribute (if att is non NULL), that matches
  41217. match (if match is non NULL). The search stops if it ever reaches
  41218. the top of the tree, or the declared 'top' item.
  41219. """
  41220. return _mupdf.fz_xml_find_next_dfs_top(item, tag, att, match, top)
  41221. def fz_xml_find_next_match(item, tag, att, match):
  41222. r"""
  41223. Class-aware wrapper for `::fz_xml_find_next_match()`.
  41224. Search the siblings of XML nodes starting with the first sibling
  41225. of item looking for the first with the given tag (or any tag if tag
  41226. is NULL), and with a matching attribute.
  41227. Return NULL if none found.
  41228. """
  41229. return _mupdf.fz_xml_find_next_match(item, tag, att, match)
  41230. def fz_xml_is_tag(item, name):
  41231. r"""
  41232. Class-aware wrapper for `::fz_xml_is_tag()`.
  41233. Return true if the tag name matches.
  41234. """
  41235. return _mupdf.fz_xml_is_tag(item, name)
  41236. def fz_xml_next(item):
  41237. r"""
  41238. Class-aware wrapper for `::fz_xml_next()`.
  41239. Return next sibling of XML node.
  41240. """
  41241. return _mupdf.fz_xml_next(item)
  41242. def fz_xml_prev(item):
  41243. r"""
  41244. Class-aware wrapper for `::fz_xml_prev()`.
  41245. Return previous sibling of XML node.
  41246. """
  41247. return _mupdf.fz_xml_prev(item)
  41248. def fz_xml_root(xml):
  41249. r"""
  41250. Class-aware wrapper for `::fz_xml_root()`.
  41251. Return the topmost XML node of a document.
  41252. """
  41253. return _mupdf.fz_xml_root(xml)
  41254. def fz_xml_tag(item):
  41255. r"""
  41256. Class-aware wrapper for `::fz_xml_tag()`.
  41257. Return tag of XML node. Return NULL for text nodes.
  41258. """
  41259. return _mupdf.fz_xml_tag(item)
  41260. def fz_xml_text(item):
  41261. r"""
  41262. Class-aware wrapper for `::fz_xml_text()`.
  41263. Return the text content of an XML node.
  41264. Return NULL if the node is a tag.
  41265. """
  41266. return _mupdf.fz_xml_text(item)
  41267. def fz_xml_up(item):
  41268. r"""
  41269. Class-aware wrapper for `::fz_xml_up()`.
  41270. Return parent of XML node.
  41271. """
  41272. return _mupdf.fz_xml_up(item)
  41273. def pdf_abandon_operation(doc):
  41274. r"""Class-aware wrapper for `::pdf_abandon_operation()`."""
  41275. return _mupdf.pdf_abandon_operation(doc)
  41276. def pdf_access_exec_menu_item_event(evt):
  41277. r"""Class-aware wrapper for `::pdf_access_exec_menu_item_event()`."""
  41278. return _mupdf.pdf_access_exec_menu_item_event(evt)
  41279. def pdf_add_annot_border_dash_item(annot, length):
  41280. r"""Class-aware wrapper for `::pdf_add_annot_border_dash_item()`."""
  41281. return _mupdf.pdf_add_annot_border_dash_item(annot, length)
  41282. def pdf_add_annot_ink_list(annot, n, stroke):
  41283. r"""Class-aware wrapper for `::pdf_add_annot_ink_list()`."""
  41284. return _mupdf.pdf_add_annot_ink_list(annot, n, stroke)
  41285. def pdf_add_annot_ink_list_stroke(annot):
  41286. r"""Class-aware wrapper for `::pdf_add_annot_ink_list_stroke()`."""
  41287. return _mupdf.pdf_add_annot_ink_list_stroke(annot)
  41288. def pdf_add_annot_ink_list_stroke_vertex(annot, p):
  41289. r"""Class-aware wrapper for `::pdf_add_annot_ink_list_stroke_vertex()`."""
  41290. return _mupdf.pdf_add_annot_ink_list_stroke_vertex(annot, p)
  41291. def pdf_add_annot_quad_point(annot, quad):
  41292. r"""Class-aware wrapper for `::pdf_add_annot_quad_point()`."""
  41293. return _mupdf.pdf_add_annot_quad_point(annot, quad)
  41294. def pdf_add_annot_vertex(annot, p):
  41295. r"""Class-aware wrapper for `::pdf_add_annot_vertex()`."""
  41296. return _mupdf.pdf_add_annot_vertex(annot, p)
  41297. def pdf_add_cid_font(doc, font):
  41298. r"""Class-aware wrapper for `::pdf_add_cid_font()`."""
  41299. return _mupdf.pdf_add_cid_font(doc, font)
  41300. def pdf_add_cjk_font(doc, font, script, wmode, serif):
  41301. r"""Class-aware wrapper for `::pdf_add_cjk_font()`."""
  41302. return _mupdf.pdf_add_cjk_font(doc, font, script, wmode, serif)
  41303. def pdf_add_codespace(cmap, low, high, n):
  41304. r"""Class-aware wrapper for `::pdf_add_codespace()`."""
  41305. return _mupdf.pdf_add_codespace(cmap, low, high, n)
  41306. def pdf_add_colorspace(doc, cs):
  41307. r"""Class-aware wrapper for `::pdf_add_colorspace()`."""
  41308. return _mupdf.pdf_add_colorspace(doc, cs)
  41309. def pdf_add_embedded_file(doc, filename, mimetype, contents, created, modified, add_checksum):
  41310. r"""Class-aware wrapper for `::pdf_add_embedded_file()`."""
  41311. return _mupdf.pdf_add_embedded_file(doc, filename, mimetype, contents, created, modified, add_checksum)
  41312. def pdf_add_hmtx(font, lo, hi, w):
  41313. r"""Class-aware wrapper for `::pdf_add_hmtx()`."""
  41314. return _mupdf.pdf_add_hmtx(font, lo, hi, w)
  41315. def pdf_add_image(doc, image):
  41316. r"""Class-aware wrapper for `::pdf_add_image()`."""
  41317. return _mupdf.pdf_add_image(doc, image)
  41318. def pdf_add_journal_fragment(doc, parent, copy, copy_stream, newobj):
  41319. r"""Class-aware wrapper for `::pdf_add_journal_fragment()`."""
  41320. return _mupdf.pdf_add_journal_fragment(doc, parent, copy, copy_stream, newobj)
  41321. def pdf_add_new_array(doc, initial):
  41322. r"""Class-aware wrapper for `::pdf_add_new_array()`."""
  41323. return _mupdf.pdf_add_new_array(doc, initial)
  41324. def pdf_add_new_dict(doc, initial):
  41325. r"""Class-aware wrapper for `::pdf_add_new_dict()`."""
  41326. return _mupdf.pdf_add_new_dict(doc, initial)
  41327. def pdf_add_object(doc, obj):
  41328. r"""Class-aware wrapper for `::pdf_add_object()`."""
  41329. return _mupdf.pdf_add_object(doc, obj)
  41330. def pdf_add_page(doc, mediabox, rotate, resources, contents):
  41331. r"""Class-aware wrapper for `::pdf_add_page()`."""
  41332. return _mupdf.pdf_add_page(doc, mediabox, rotate, resources, contents)
  41333. def pdf_add_simple_font(doc, font, encoding):
  41334. r"""Class-aware wrapper for `::pdf_add_simple_font()`."""
  41335. return _mupdf.pdf_add_simple_font(doc, font, encoding)
  41336. def pdf_add_stream(doc, buf, obj, compressed):
  41337. r"""Class-aware wrapper for `::pdf_add_stream()`."""
  41338. return _mupdf.pdf_add_stream(doc, buf, obj, compressed)
  41339. def pdf_add_substitute_font(doc, font):
  41340. r"""Class-aware wrapper for `::pdf_add_substitute_font()`."""
  41341. return _mupdf.pdf_add_substitute_font(doc, font)
  41342. def pdf_add_vmtx(font, lo, hi, x, y, w):
  41343. r"""Class-aware wrapper for `::pdf_add_vmtx()`."""
  41344. return _mupdf.pdf_add_vmtx(font, lo, hi, x, y, w)
  41345. def pdf_annot_MK_BC(annot, n, color):
  41346. r"""
  41347. Class-aware wrapper for `::pdf_annot_MK_BC()`.
  41348. This function has out-params. Python/C# wrappers look like:
  41349. `pdf_annot_MK_BC(::pdf_annot *annot, float color[4])` => int n
  41350. """
  41351. return _mupdf.pdf_annot_MK_BC(annot, n, color)
  41352. def pdf_annot_MK_BC_rgb(annot, rgb):
  41353. r"""Class-aware wrapper for `::pdf_annot_MK_BC_rgb()`."""
  41354. return _mupdf.pdf_annot_MK_BC_rgb(annot, rgb)
  41355. def pdf_annot_MK_BG(annot, n, color):
  41356. r"""
  41357. Class-aware wrapper for `::pdf_annot_MK_BG()`.
  41358. This function has out-params. Python/C# wrappers look like:
  41359. `pdf_annot_MK_BG(::pdf_annot *annot, float color[4])` => int n
  41360. """
  41361. return _mupdf.pdf_annot_MK_BG(annot, n, color)
  41362. def pdf_annot_MK_BG_rgb(annot, rgb):
  41363. r"""Class-aware wrapper for `::pdf_annot_MK_BG_rgb()`."""
  41364. return _mupdf.pdf_annot_MK_BG_rgb(annot, rgb)
  41365. def pdf_annot_active(annot):
  41366. r"""Class-aware wrapper for `::pdf_annot_active()`."""
  41367. return _mupdf.pdf_annot_active(annot)
  41368. def pdf_annot_ap(annot):
  41369. r"""Class-aware wrapper for `::pdf_annot_ap()`."""
  41370. return _mupdf.pdf_annot_ap(annot)
  41371. def pdf_annot_author(annot):
  41372. r"""Class-aware wrapper for `::pdf_annot_author()`."""
  41373. return _mupdf.pdf_annot_author(annot)
  41374. def pdf_annot_border(annot):
  41375. r"""Class-aware wrapper for `::pdf_annot_border()`."""
  41376. return _mupdf.pdf_annot_border(annot)
  41377. def pdf_annot_border_dash_count(annot):
  41378. r"""Class-aware wrapper for `::pdf_annot_border_dash_count()`."""
  41379. return _mupdf.pdf_annot_border_dash_count(annot)
  41380. def pdf_annot_border_dash_item(annot, i):
  41381. r"""Class-aware wrapper for `::pdf_annot_border_dash_item()`."""
  41382. return _mupdf.pdf_annot_border_dash_item(annot, i)
  41383. def pdf_annot_border_effect(annot):
  41384. r"""Class-aware wrapper for `::pdf_annot_border_effect()`."""
  41385. return _mupdf.pdf_annot_border_effect(annot)
  41386. def pdf_annot_border_effect_intensity(annot):
  41387. r"""Class-aware wrapper for `::pdf_annot_border_effect_intensity()`."""
  41388. return _mupdf.pdf_annot_border_effect_intensity(annot)
  41389. def pdf_annot_border_style(annot):
  41390. r"""Class-aware wrapper for `::pdf_annot_border_style()`."""
  41391. return _mupdf.pdf_annot_border_style(annot)
  41392. def pdf_annot_border_width(annot):
  41393. r"""Class-aware wrapper for `::pdf_annot_border_width()`."""
  41394. return _mupdf.pdf_annot_border_width(annot)
  41395. def pdf_annot_callout_line(annot, callout, n):
  41396. r"""
  41397. Class-aware wrapper for `::pdf_annot_callout_line()`.
  41398. This function has out-params. Python/C# wrappers look like:
  41399. `pdf_annot_callout_line(::pdf_annot *annot, ::fz_point callout[3])` => int n
  41400. """
  41401. return _mupdf.pdf_annot_callout_line(annot, callout, n)
  41402. def pdf_annot_callout_point(annot):
  41403. r"""Class-aware wrapper for `::pdf_annot_callout_point()`."""
  41404. return _mupdf.pdf_annot_callout_point(annot)
  41405. def pdf_annot_callout_style(annot):
  41406. r"""Class-aware wrapper for `::pdf_annot_callout_style()`."""
  41407. return _mupdf.pdf_annot_callout_style(annot)
  41408. def pdf_annot_color(annot, n, color):
  41409. r"""
  41410. Class-aware wrapper for `::pdf_annot_color()`.
  41411. This function has out-params. Python/C# wrappers look like:
  41412. `pdf_annot_color(::pdf_annot *annot, float color[4])` => int n
  41413. """
  41414. return _mupdf.pdf_annot_color(annot, n, color)
  41415. def pdf_annot_contents(annot):
  41416. r"""Class-aware wrapper for `::pdf_annot_contents()`."""
  41417. return _mupdf.pdf_annot_contents(annot)
  41418. def pdf_annot_creation_date(annot):
  41419. r"""Class-aware wrapper for `::pdf_annot_creation_date()`."""
  41420. return _mupdf.pdf_annot_creation_date(annot)
  41421. def pdf_annot_default_appearance(annot, font, size, n, color):
  41422. r"""
  41423. Class-aware wrapper for `::pdf_annot_default_appearance()`.
  41424. This function has out-params. Python/C# wrappers look like:
  41425. `pdf_annot_default_appearance(::pdf_annot *annot, float color[4])` => `(const char *font, float size, int n)`
  41426. """
  41427. return _mupdf.pdf_annot_default_appearance(annot, font, size, n, color)
  41428. def pdf_annot_default_appearance_unmapped(annot, font_name, font_name_len, size, n, color):
  41429. r"""
  41430. Class-aware wrapper for `::pdf_annot_default_appearance_unmapped()`.
  41431. This function has out-params. Python/C# wrappers look like:
  41432. `pdf_annot_default_appearance_unmapped(::pdf_annot *annot, char *font_name, int font_name_len, float color[4])` => `(float size, int n)`
  41433. """
  41434. return _mupdf.pdf_annot_default_appearance_unmapped(annot, font_name, font_name_len, size, n, color)
  41435. def pdf_annot_ensure_local_xref(annot):
  41436. r"""Class-aware wrapper for `::pdf_annot_ensure_local_xref()`."""
  41437. return _mupdf.pdf_annot_ensure_local_xref(annot)
  41438. def pdf_annot_event_blur(annot):
  41439. r"""Class-aware wrapper for `::pdf_annot_event_blur()`."""
  41440. return _mupdf.pdf_annot_event_blur(annot)
  41441. def pdf_annot_event_down(annot):
  41442. r"""Class-aware wrapper for `::pdf_annot_event_down()`."""
  41443. return _mupdf.pdf_annot_event_down(annot)
  41444. def pdf_annot_event_enter(annot):
  41445. r"""Class-aware wrapper for `::pdf_annot_event_enter()`."""
  41446. return _mupdf.pdf_annot_event_enter(annot)
  41447. def pdf_annot_event_exit(annot):
  41448. r"""Class-aware wrapper for `::pdf_annot_event_exit()`."""
  41449. return _mupdf.pdf_annot_event_exit(annot)
  41450. def pdf_annot_event_focus(annot):
  41451. r"""Class-aware wrapper for `::pdf_annot_event_focus()`."""
  41452. return _mupdf.pdf_annot_event_focus(annot)
  41453. def pdf_annot_event_page_close(annot):
  41454. r"""Class-aware wrapper for `::pdf_annot_event_page_close()`."""
  41455. return _mupdf.pdf_annot_event_page_close(annot)
  41456. def pdf_annot_event_page_invisible(annot):
  41457. r"""Class-aware wrapper for `::pdf_annot_event_page_invisible()`."""
  41458. return _mupdf.pdf_annot_event_page_invisible(annot)
  41459. def pdf_annot_event_page_open(annot):
  41460. r"""Class-aware wrapper for `::pdf_annot_event_page_open()`."""
  41461. return _mupdf.pdf_annot_event_page_open(annot)
  41462. def pdf_annot_event_page_visible(annot):
  41463. r"""Class-aware wrapper for `::pdf_annot_event_page_visible()`."""
  41464. return _mupdf.pdf_annot_event_page_visible(annot)
  41465. def pdf_annot_event_up(annot):
  41466. r"""Class-aware wrapper for `::pdf_annot_event_up()`."""
  41467. return _mupdf.pdf_annot_event_up(annot)
  41468. def pdf_annot_field_event_keystroke(doc, annot, evt):
  41469. r"""Class-aware wrapper for `::pdf_annot_field_event_keystroke()`."""
  41470. return _mupdf.pdf_annot_field_event_keystroke(doc, annot, evt)
  41471. def pdf_annot_field_flags(annot):
  41472. r"""Class-aware wrapper for `::pdf_annot_field_flags()`."""
  41473. return _mupdf.pdf_annot_field_flags(annot)
  41474. def pdf_annot_field_label(widget):
  41475. r"""Class-aware wrapper for `::pdf_annot_field_label()`."""
  41476. return _mupdf.pdf_annot_field_label(widget)
  41477. def pdf_annot_field_value(annot):
  41478. r"""Class-aware wrapper for `::pdf_annot_field_value()`."""
  41479. return _mupdf.pdf_annot_field_value(annot)
  41480. def pdf_annot_filespec(annot):
  41481. r"""Class-aware wrapper for `::pdf_annot_filespec()`."""
  41482. return _mupdf.pdf_annot_filespec(annot)
  41483. def pdf_annot_flags(annot):
  41484. r"""Class-aware wrapper for `::pdf_annot_flags()`."""
  41485. return _mupdf.pdf_annot_flags(annot)
  41486. def pdf_annot_has_author(annot):
  41487. r"""Class-aware wrapper for `::pdf_annot_has_author()`."""
  41488. return _mupdf.pdf_annot_has_author(annot)
  41489. def pdf_annot_has_border(annot):
  41490. r"""Class-aware wrapper for `::pdf_annot_has_border()`."""
  41491. return _mupdf.pdf_annot_has_border(annot)
  41492. def pdf_annot_has_border_effect(annot):
  41493. r"""Class-aware wrapper for `::pdf_annot_has_border_effect()`."""
  41494. return _mupdf.pdf_annot_has_border_effect(annot)
  41495. def pdf_annot_has_callout(annot):
  41496. r"""Class-aware wrapper for `::pdf_annot_has_callout()`."""
  41497. return _mupdf.pdf_annot_has_callout(annot)
  41498. def pdf_annot_has_default_appearance(annot):
  41499. r"""Class-aware wrapper for `::pdf_annot_has_default_appearance()`."""
  41500. return _mupdf.pdf_annot_has_default_appearance(annot)
  41501. def pdf_annot_has_filespec(annot):
  41502. r"""Class-aware wrapper for `::pdf_annot_has_filespec()`."""
  41503. return _mupdf.pdf_annot_has_filespec(annot)
  41504. def pdf_annot_has_icon_name(annot):
  41505. r"""Class-aware wrapper for `::pdf_annot_has_icon_name()`."""
  41506. return _mupdf.pdf_annot_has_icon_name(annot)
  41507. def pdf_annot_has_ink_list(annot):
  41508. r"""Class-aware wrapper for `::pdf_annot_has_ink_list()`."""
  41509. return _mupdf.pdf_annot_has_ink_list(annot)
  41510. def pdf_annot_has_intent(annot):
  41511. r"""Class-aware wrapper for `::pdf_annot_has_intent()`."""
  41512. return _mupdf.pdf_annot_has_intent(annot)
  41513. def pdf_annot_has_interior_color(annot):
  41514. r"""Class-aware wrapper for `::pdf_annot_has_interior_color()`."""
  41515. return _mupdf.pdf_annot_has_interior_color(annot)
  41516. def pdf_annot_has_line(annot):
  41517. r"""Class-aware wrapper for `::pdf_annot_has_line()`."""
  41518. return _mupdf.pdf_annot_has_line(annot)
  41519. def pdf_annot_has_line_ending_styles(annot):
  41520. r"""Class-aware wrapper for `::pdf_annot_has_line_ending_styles()`."""
  41521. return _mupdf.pdf_annot_has_line_ending_styles(annot)
  41522. def pdf_annot_has_open(annot):
  41523. r"""Class-aware wrapper for `::pdf_annot_has_open()`."""
  41524. return _mupdf.pdf_annot_has_open(annot)
  41525. def pdf_annot_has_popup(annot):
  41526. r"""Class-aware wrapper for `::pdf_annot_has_popup()`."""
  41527. return _mupdf.pdf_annot_has_popup(annot)
  41528. def pdf_annot_has_quad_points(annot):
  41529. r"""Class-aware wrapper for `::pdf_annot_has_quad_points()`."""
  41530. return _mupdf.pdf_annot_has_quad_points(annot)
  41531. def pdf_annot_has_quadding(annot):
  41532. r"""Class-aware wrapper for `::pdf_annot_has_quadding()`."""
  41533. return _mupdf.pdf_annot_has_quadding(annot)
  41534. def pdf_annot_has_rect(annot):
  41535. r"""Class-aware wrapper for `::pdf_annot_has_rect()`."""
  41536. return _mupdf.pdf_annot_has_rect(annot)
  41537. def pdf_annot_has_rich_contents(annot):
  41538. r"""Class-aware wrapper for `::pdf_annot_has_rich_contents()`."""
  41539. return _mupdf.pdf_annot_has_rich_contents(annot)
  41540. def pdf_annot_has_rich_defaults(annot):
  41541. r"""Class-aware wrapper for `::pdf_annot_has_rich_defaults()`."""
  41542. return _mupdf.pdf_annot_has_rich_defaults(annot)
  41543. def pdf_annot_has_vertices(annot):
  41544. r"""Class-aware wrapper for `::pdf_annot_has_vertices()`."""
  41545. return _mupdf.pdf_annot_has_vertices(annot)
  41546. def pdf_annot_hidden_for_editing(annot):
  41547. r"""Class-aware wrapper for `::pdf_annot_hidden_for_editing()`."""
  41548. return _mupdf.pdf_annot_hidden_for_editing(annot)
  41549. def pdf_annot_hot(annot):
  41550. r"""Class-aware wrapper for `::pdf_annot_hot()`."""
  41551. return _mupdf.pdf_annot_hot(annot)
  41552. def pdf_annot_icon_name(annot):
  41553. r"""Class-aware wrapper for `::pdf_annot_icon_name()`."""
  41554. return _mupdf.pdf_annot_icon_name(annot)
  41555. def pdf_annot_ink_list_count(annot):
  41556. r"""Class-aware wrapper for `::pdf_annot_ink_list_count()`."""
  41557. return _mupdf.pdf_annot_ink_list_count(annot)
  41558. def pdf_annot_ink_list_stroke_count(annot, i):
  41559. r"""Class-aware wrapper for `::pdf_annot_ink_list_stroke_count()`."""
  41560. return _mupdf.pdf_annot_ink_list_stroke_count(annot, i)
  41561. def pdf_annot_ink_list_stroke_vertex(annot, i, k):
  41562. r"""Class-aware wrapper for `::pdf_annot_ink_list_stroke_vertex()`."""
  41563. return _mupdf.pdf_annot_ink_list_stroke_vertex(annot, i, k)
  41564. def pdf_annot_intent(annot):
  41565. r"""Class-aware wrapper for `::pdf_annot_intent()`."""
  41566. return _mupdf.pdf_annot_intent(annot)
  41567. def pdf_annot_interior_color(annot, n, color):
  41568. r"""
  41569. Class-aware wrapper for `::pdf_annot_interior_color()`.
  41570. This function has out-params. Python/C# wrappers look like:
  41571. `pdf_annot_interior_color(::pdf_annot *annot, float color[4])` => int n
  41572. """
  41573. return _mupdf.pdf_annot_interior_color(annot, n, color)
  41574. def pdf_annot_is_open(annot):
  41575. r"""Class-aware wrapper for `::pdf_annot_is_open()`."""
  41576. return _mupdf.pdf_annot_is_open(annot)
  41577. def pdf_annot_is_standard_stamp(annot):
  41578. r"""Class-aware wrapper for `::pdf_annot_is_standard_stamp()`."""
  41579. return _mupdf.pdf_annot_is_standard_stamp(annot)
  41580. def pdf_annot_language(annot):
  41581. r"""Class-aware wrapper for `::pdf_annot_language()`."""
  41582. return _mupdf.pdf_annot_language(annot)
  41583. def pdf_annot_line(annot, a, b):
  41584. r"""Class-aware wrapper for `::pdf_annot_line()`."""
  41585. return _mupdf.pdf_annot_line(annot, a, b)
  41586. def pdf_annot_line_caption(annot):
  41587. r"""Class-aware wrapper for `::pdf_annot_line_caption()`."""
  41588. return _mupdf.pdf_annot_line_caption(annot)
  41589. def pdf_annot_line_caption_offset(annot):
  41590. r"""Class-aware wrapper for `::pdf_annot_line_caption_offset()`."""
  41591. return _mupdf.pdf_annot_line_caption_offset(annot)
  41592. def pdf_annot_line_end_style(annot):
  41593. r"""Class-aware wrapper for `::pdf_annot_line_end_style()`."""
  41594. return _mupdf.pdf_annot_line_end_style(annot)
  41595. def pdf_annot_line_ending_styles(annot, start_style, end_style):
  41596. r"""
  41597. Class-aware wrapper for `::pdf_annot_line_ending_styles()`.
  41598. This function has out-params. Python/C# wrappers look like:
  41599. `pdf_annot_line_ending_styles(::pdf_annot *annot)` => `(enum pdf_line_ending start_style, enum pdf_line_ending end_style)`
  41600. """
  41601. return _mupdf.pdf_annot_line_ending_styles(annot, start_style, end_style)
  41602. def pdf_annot_line_leader(annot):
  41603. r"""Class-aware wrapper for `::pdf_annot_line_leader()`."""
  41604. return _mupdf.pdf_annot_line_leader(annot)
  41605. def pdf_annot_line_leader_extension(annot):
  41606. r"""Class-aware wrapper for `::pdf_annot_line_leader_extension()`."""
  41607. return _mupdf.pdf_annot_line_leader_extension(annot)
  41608. def pdf_annot_line_leader_offset(annot):
  41609. r"""Class-aware wrapper for `::pdf_annot_line_leader_offset()`."""
  41610. return _mupdf.pdf_annot_line_leader_offset(annot)
  41611. def pdf_annot_line_start_style(annot):
  41612. r"""Class-aware wrapper for `::pdf_annot_line_start_style()`."""
  41613. return _mupdf.pdf_annot_line_start_style(annot)
  41614. def pdf_annot_modification_date(annot):
  41615. r"""Class-aware wrapper for `::pdf_annot_modification_date()`."""
  41616. return _mupdf.pdf_annot_modification_date(annot)
  41617. def pdf_annot_needs_resynthesis(annot):
  41618. r"""Class-aware wrapper for `::pdf_annot_needs_resynthesis()`."""
  41619. return _mupdf.pdf_annot_needs_resynthesis(annot)
  41620. def pdf_annot_obj(annot):
  41621. r"""Class-aware wrapper for `::pdf_annot_obj()`."""
  41622. return _mupdf.pdf_annot_obj(annot)
  41623. def pdf_annot_opacity(annot):
  41624. r"""Class-aware wrapper for `::pdf_annot_opacity()`."""
  41625. return _mupdf.pdf_annot_opacity(annot)
  41626. def pdf_annot_page(annot):
  41627. r"""Class-aware wrapper for `::pdf_annot_page()`."""
  41628. return _mupdf.pdf_annot_page(annot)
  41629. def pdf_annot_pop_and_discard_local_xref(annot):
  41630. r"""Class-aware wrapper for `::pdf_annot_pop_and_discard_local_xref()`."""
  41631. return _mupdf.pdf_annot_pop_and_discard_local_xref(annot)
  41632. def pdf_annot_pop_local_xref(annot):
  41633. r"""Class-aware wrapper for `::pdf_annot_pop_local_xref()`."""
  41634. return _mupdf.pdf_annot_pop_local_xref(annot)
  41635. def pdf_annot_popup(annot):
  41636. r"""Class-aware wrapper for `::pdf_annot_popup()`."""
  41637. return _mupdf.pdf_annot_popup(annot)
  41638. def pdf_annot_push_local_xref(annot):
  41639. r"""Class-aware wrapper for `::pdf_annot_push_local_xref()`."""
  41640. return _mupdf.pdf_annot_push_local_xref(annot)
  41641. def pdf_annot_quad_point(annot, i):
  41642. r"""Class-aware wrapper for `::pdf_annot_quad_point()`."""
  41643. return _mupdf.pdf_annot_quad_point(annot, i)
  41644. def pdf_annot_quad_point_count(annot):
  41645. r"""Class-aware wrapper for `::pdf_annot_quad_point_count()`."""
  41646. return _mupdf.pdf_annot_quad_point_count(annot)
  41647. def pdf_annot_quadding(annot):
  41648. r"""Class-aware wrapper for `::pdf_annot_quadding()`."""
  41649. return _mupdf.pdf_annot_quadding(annot)
  41650. def pdf_annot_rect(annot):
  41651. r"""Class-aware wrapper for `::pdf_annot_rect()`."""
  41652. return _mupdf.pdf_annot_rect(annot)
  41653. def pdf_annot_request_resynthesis(annot):
  41654. r"""Class-aware wrapper for `::pdf_annot_request_resynthesis()`."""
  41655. return _mupdf.pdf_annot_request_resynthesis(annot)
  41656. def pdf_annot_request_synthesis(annot):
  41657. r"""Class-aware wrapper for `::pdf_annot_request_synthesis()`."""
  41658. return _mupdf.pdf_annot_request_synthesis(annot)
  41659. def pdf_annot_rich_contents(annot):
  41660. r"""Class-aware wrapper for `::pdf_annot_rich_contents()`."""
  41661. return _mupdf.pdf_annot_rich_contents(annot)
  41662. def pdf_annot_rich_defaults(annot):
  41663. r"""Class-aware wrapper for `::pdf_annot_rich_defaults()`."""
  41664. return _mupdf.pdf_annot_rich_defaults(annot)
  41665. def pdf_annot_stamp_image_obj(annot):
  41666. r"""Class-aware wrapper for `::pdf_annot_stamp_image_obj()`."""
  41667. return _mupdf.pdf_annot_stamp_image_obj(annot)
  41668. def pdf_annot_transform(annot):
  41669. r"""Class-aware wrapper for `::pdf_annot_transform()`."""
  41670. return _mupdf.pdf_annot_transform(annot)
  41671. def pdf_annot_type(annot):
  41672. r"""Class-aware wrapper for `::pdf_annot_type()`."""
  41673. return _mupdf.pdf_annot_type(annot)
  41674. def pdf_annot_type_from_string(subtype):
  41675. r"""Class-aware wrapper for `::pdf_annot_type_from_string()`."""
  41676. return _mupdf.pdf_annot_type_from_string(subtype)
  41677. def pdf_annot_vertex(annot, i):
  41678. r"""Class-aware wrapper for `::pdf_annot_vertex()`."""
  41679. return _mupdf.pdf_annot_vertex(annot, i)
  41680. def pdf_annot_vertex_count(annot):
  41681. r"""Class-aware wrapper for `::pdf_annot_vertex_count()`."""
  41682. return _mupdf.pdf_annot_vertex_count(annot)
  41683. def pdf_append_explicit_dest_to_uri(url, dest):
  41684. r"""Class-aware wrapper for `::pdf_append_explicit_dest_to_uri()`."""
  41685. return _mupdf.pdf_append_explicit_dest_to_uri(url, dest)
  41686. def pdf_append_named_dest_to_uri(url, name):
  41687. r"""Class-aware wrapper for `::pdf_append_named_dest_to_uri()`."""
  41688. return _mupdf.pdf_append_named_dest_to_uri(url, name)
  41689. def pdf_append_token(buf, tok, lex):
  41690. r"""Class-aware wrapper for `::pdf_append_token()`."""
  41691. return _mupdf.pdf_append_token(buf, tok, lex)
  41692. def pdf_apply_redaction(annot, opts):
  41693. r"""Class-aware wrapper for `::pdf_apply_redaction()`."""
  41694. return _mupdf.pdf_apply_redaction(annot, opts)
  41695. def pdf_array_contains(array, obj):
  41696. r"""Class-aware wrapper for `::pdf_array_contains()`."""
  41697. return _mupdf.pdf_array_contains(array, obj)
  41698. def pdf_array_delete(array, index):
  41699. r"""Class-aware wrapper for `::pdf_array_delete()`."""
  41700. return _mupdf.pdf_array_delete(array, index)
  41701. def pdf_array_find(array, obj):
  41702. r"""Class-aware wrapper for `::pdf_array_find()`."""
  41703. return _mupdf.pdf_array_find(array, obj)
  41704. def pdf_array_get(array, i):
  41705. r"""Class-aware wrapper for `::pdf_array_get()`."""
  41706. return _mupdf.pdf_array_get(array, i)
  41707. def pdf_array_get_bool(array, index):
  41708. r"""Class-aware wrapper for `::pdf_array_get_bool()`."""
  41709. return _mupdf.pdf_array_get_bool(array, index)
  41710. def pdf_array_get_int(array, index):
  41711. r"""Class-aware wrapper for `::pdf_array_get_int()`."""
  41712. return _mupdf.pdf_array_get_int(array, index)
  41713. def pdf_array_get_matrix(array, index):
  41714. r"""Class-aware wrapper for `::pdf_array_get_matrix()`."""
  41715. return _mupdf.pdf_array_get_matrix(array, index)
  41716. def pdf_array_get_name(array, index):
  41717. r"""Class-aware wrapper for `::pdf_array_get_name()`."""
  41718. return _mupdf.pdf_array_get_name(array, index)
  41719. def pdf_array_get_real(array, index):
  41720. r"""Class-aware wrapper for `::pdf_array_get_real()`."""
  41721. return _mupdf.pdf_array_get_real(array, index)
  41722. def pdf_array_get_rect(array, index):
  41723. r"""Class-aware wrapper for `::pdf_array_get_rect()`."""
  41724. return _mupdf.pdf_array_get_rect(array, index)
  41725. def pdf_array_get_string(array, index, sizep):
  41726. r"""
  41727. Class-aware wrapper for `::pdf_array_get_string()`.
  41728. This function has out-params. Python/C# wrappers look like:
  41729. `pdf_array_get_string(::pdf_obj *array, int index)` => `(const char *, size_t sizep)`
  41730. """
  41731. return _mupdf.pdf_array_get_string(array, index, sizep)
  41732. def pdf_array_get_text_string(array, index):
  41733. r"""Class-aware wrapper for `::pdf_array_get_text_string()`."""
  41734. return _mupdf.pdf_array_get_text_string(array, index)
  41735. def pdf_array_insert(array, obj, index):
  41736. r"""Class-aware wrapper for `::pdf_array_insert()`."""
  41737. return _mupdf.pdf_array_insert(array, obj, index)
  41738. def pdf_array_len(array):
  41739. r"""Class-aware wrapper for `::pdf_array_len()`."""
  41740. return _mupdf.pdf_array_len(array)
  41741. def pdf_array_push(array, obj):
  41742. r"""Class-aware wrapper for `::pdf_array_push()`."""
  41743. return _mupdf.pdf_array_push(array, obj)
  41744. def pdf_array_push_array(array, initial):
  41745. r"""Class-aware wrapper for `::pdf_array_push_array()`."""
  41746. return _mupdf.pdf_array_push_array(array, initial)
  41747. def pdf_array_push_bool(array, x):
  41748. r"""Class-aware wrapper for `::pdf_array_push_bool()`."""
  41749. return _mupdf.pdf_array_push_bool(array, x)
  41750. def pdf_array_push_dict(array, initial):
  41751. r"""Class-aware wrapper for `::pdf_array_push_dict()`."""
  41752. return _mupdf.pdf_array_push_dict(array, initial)
  41753. def pdf_array_push_int(array, x):
  41754. r"""Class-aware wrapper for `::pdf_array_push_int()`."""
  41755. return _mupdf.pdf_array_push_int(array, x)
  41756. def pdf_array_push_name(array, x):
  41757. r"""Class-aware wrapper for `::pdf_array_push_name()`."""
  41758. return _mupdf.pdf_array_push_name(array, x)
  41759. def pdf_array_push_real(array, x):
  41760. r"""Class-aware wrapper for `::pdf_array_push_real()`."""
  41761. return _mupdf.pdf_array_push_real(array, x)
  41762. def pdf_array_push_string(array, x, n):
  41763. r"""Class-aware wrapper for `::pdf_array_push_string()`."""
  41764. return _mupdf.pdf_array_push_string(array, x, n)
  41765. def pdf_array_push_text_string(array, x):
  41766. r"""Class-aware wrapper for `::pdf_array_push_text_string()`."""
  41767. return _mupdf.pdf_array_push_text_string(array, x)
  41768. def pdf_array_put(array, i, obj):
  41769. r"""Class-aware wrapper for `::pdf_array_put()`."""
  41770. return _mupdf.pdf_array_put(array, i, obj)
  41771. def pdf_array_put_array(array, i, initial):
  41772. r"""Class-aware wrapper for `::pdf_array_put_array()`."""
  41773. return _mupdf.pdf_array_put_array(array, i, initial)
  41774. def pdf_array_put_bool(array, i, x):
  41775. r"""Class-aware wrapper for `::pdf_array_put_bool()`."""
  41776. return _mupdf.pdf_array_put_bool(array, i, x)
  41777. def pdf_array_put_dict(array, i, initial):
  41778. r"""Class-aware wrapper for `::pdf_array_put_dict()`."""
  41779. return _mupdf.pdf_array_put_dict(array, i, initial)
  41780. def pdf_array_put_int(array, i, x):
  41781. r"""Class-aware wrapper for `::pdf_array_put_int()`."""
  41782. return _mupdf.pdf_array_put_int(array, i, x)
  41783. def pdf_array_put_name(array, i, x):
  41784. r"""Class-aware wrapper for `::pdf_array_put_name()`."""
  41785. return _mupdf.pdf_array_put_name(array, i, x)
  41786. def pdf_array_put_real(array, i, x):
  41787. r"""Class-aware wrapper for `::pdf_array_put_real()`."""
  41788. return _mupdf.pdf_array_put_real(array, i, x)
  41789. def pdf_array_put_string(array, i, x, n):
  41790. r"""Class-aware wrapper for `::pdf_array_put_string()`."""
  41791. return _mupdf.pdf_array_put_string(array, i, x, n)
  41792. def pdf_array_put_text_string(array, i, x):
  41793. r"""Class-aware wrapper for `::pdf_array_put_text_string()`."""
  41794. return _mupdf.pdf_array_put_text_string(array, i, x)
  41795. def pdf_authenticate_password(doc, pw):
  41796. r"""Class-aware wrapper for `::pdf_authenticate_password()`."""
  41797. return _mupdf.pdf_authenticate_password(doc, pw)
  41798. def pdf_bake_document(doc, bake_annots, bake_widgets):
  41799. r"""Class-aware wrapper for `::pdf_bake_document()`."""
  41800. return _mupdf.pdf_bake_document(doc, bake_annots, bake_widgets)
  41801. def pdf_begin_implicit_operation(doc):
  41802. r"""Class-aware wrapper for `::pdf_begin_implicit_operation()`."""
  41803. return _mupdf.pdf_begin_implicit_operation(doc)
  41804. def pdf_begin_operation(doc, operation):
  41805. r"""Class-aware wrapper for `::pdf_begin_operation()`."""
  41806. return _mupdf.pdf_begin_operation(doc, operation)
  41807. def pdf_bound_annot(annot):
  41808. r"""Class-aware wrapper for `::pdf_bound_annot()`."""
  41809. return _mupdf.pdf_bound_annot(annot)
  41810. def pdf_bound_page(page, box):
  41811. r"""Class-aware wrapper for `::pdf_bound_page()`."""
  41812. return _mupdf.pdf_bound_page(page, box)
  41813. def pdf_bound_widget(widget):
  41814. r"""Class-aware wrapper for `::pdf_bound_widget()`."""
  41815. return _mupdf.pdf_bound_widget(widget)
  41816. def pdf_button_field_on_state(field):
  41817. r"""Class-aware wrapper for `::pdf_button_field_on_state()`."""
  41818. return _mupdf.pdf_button_field_on_state(field)
  41819. def pdf_calculate_form(doc):
  41820. r"""Class-aware wrapper for `::pdf_calculate_form()`."""
  41821. return _mupdf.pdf_calculate_form(doc)
  41822. def pdf_can_be_saved_incrementally(doc):
  41823. r"""Class-aware wrapper for `::pdf_can_be_saved_incrementally()`."""
  41824. return _mupdf.pdf_can_be_saved_incrementally(doc)
  41825. def pdf_can_redo(doc):
  41826. r"""Class-aware wrapper for `::pdf_can_redo()`."""
  41827. return _mupdf.pdf_can_redo(doc)
  41828. def pdf_can_undo(doc):
  41829. r"""Class-aware wrapper for `::pdf_can_undo()`."""
  41830. return _mupdf.pdf_can_undo(doc)
  41831. def pdf_check_certificate(verifier, doc, signature):
  41832. r"""Class-aware wrapper for `::pdf_check_certificate()`."""
  41833. return _mupdf.pdf_check_certificate(verifier, doc, signature)
  41834. def pdf_check_digest(verifier, doc, signature):
  41835. r"""Class-aware wrapper for `::pdf_check_digest()`."""
  41836. return _mupdf.pdf_check_digest(verifier, doc, signature)
  41837. def pdf_check_widget_certificate(verifier, widget):
  41838. r"""Class-aware wrapper for `::pdf_check_widget_certificate()`."""
  41839. return _mupdf.pdf_check_widget_certificate(verifier, widget)
  41840. def pdf_check_widget_digest(verifier, widget):
  41841. r"""Class-aware wrapper for `::pdf_check_widget_digest()`."""
  41842. return _mupdf.pdf_check_widget_digest(verifier, widget)
  41843. def pdf_choice_field_option(field, exportval, i):
  41844. r"""Class-aware wrapper for `::pdf_choice_field_option()`."""
  41845. return _mupdf.pdf_choice_field_option(field, exportval, i)
  41846. def pdf_choice_field_option_count(field):
  41847. r"""Class-aware wrapper for `::pdf_choice_field_option_count()`."""
  41848. return _mupdf.pdf_choice_field_option_count(field)
  41849. def pdf_choice_widget_is_multiselect(tw):
  41850. r"""Class-aware wrapper for `::pdf_choice_widget_is_multiselect()`."""
  41851. return _mupdf.pdf_choice_widget_is_multiselect(tw)
  41852. def pdf_choice_widget_options(tw, exportval, opts):
  41853. r"""Class-aware wrapper for `::pdf_choice_widget_options()`."""
  41854. return _mupdf.pdf_choice_widget_options(tw, exportval, opts)
  41855. def pdf_choice_widget_options2(tw, exportval):
  41856. r"""
  41857. Class-aware wrapper for `::pdf_choice_widget_options2()`. Swig-friendly wrapper for pdf_choice_widget_options(), returns the
  41858. options directly in a vector.
  41859. """
  41860. return _mupdf.pdf_choice_widget_options2(tw, exportval)
  41861. def pdf_choice_widget_set_value(tw, n, opts):
  41862. r"""Class-aware wrapper for `::pdf_choice_widget_set_value()`."""
  41863. return _mupdf.pdf_choice_widget_set_value(tw, n, opts)
  41864. def pdf_choice_widget_value(tw, opts):
  41865. r"""Class-aware wrapper for `::pdf_choice_widget_value()`."""
  41866. return _mupdf.pdf_choice_widget_value(tw, opts)
  41867. def pdf_clean_file(infile, outfile, password, opts, retainlen):
  41868. r"""Class-aware wrapper for `::pdf_clean_file()`."""
  41869. return _mupdf.pdf_clean_file(infile, outfile, password, opts, retainlen)
  41870. def pdf_clean_font_name(fontname):
  41871. r"""Class-aware wrapper for `::pdf_clean_font_name()`."""
  41872. return _mupdf.pdf_clean_font_name(fontname)
  41873. def pdf_clean_obj(obj):
  41874. r"""Class-aware wrapper for `::pdf_clean_obj()`."""
  41875. return _mupdf.pdf_clean_obj(obj)
  41876. def pdf_clear_annot_border_dash(annot):
  41877. r"""Class-aware wrapper for `::pdf_clear_annot_border_dash()`."""
  41878. return _mupdf.pdf_clear_annot_border_dash(annot)
  41879. def pdf_clear_annot_ink_list(annot):
  41880. r"""Class-aware wrapper for `::pdf_clear_annot_ink_list()`."""
  41881. return _mupdf.pdf_clear_annot_ink_list(annot)
  41882. def pdf_clear_annot_quad_points(annot):
  41883. r"""Class-aware wrapper for `::pdf_clear_annot_quad_points()`."""
  41884. return _mupdf.pdf_clear_annot_quad_points(annot)
  41885. def pdf_clear_annot_vertices(annot):
  41886. r"""Class-aware wrapper for `::pdf_clear_annot_vertices()`."""
  41887. return _mupdf.pdf_clear_annot_vertices(annot)
  41888. def pdf_clear_signature(widget):
  41889. r"""Class-aware wrapper for `::pdf_clear_signature()`."""
  41890. return _mupdf.pdf_clear_signature(widget)
  41891. def pdf_clear_xref(doc):
  41892. r"""Class-aware wrapper for `::pdf_clear_xref()`."""
  41893. return _mupdf.pdf_clear_xref(doc)
  41894. def pdf_clear_xref_to_mark(doc):
  41895. r"""Class-aware wrapper for `::pdf_clear_xref_to_mark()`."""
  41896. return _mupdf.pdf_clear_xref_to_mark(doc)
  41897. def pdf_clip_page(page, clip):
  41898. r"""Class-aware wrapper for `::pdf_clip_page()`."""
  41899. return _mupdf.pdf_clip_page(page, clip)
  41900. def pdf_close_processor(proc):
  41901. r"""Class-aware wrapper for `::pdf_close_processor()`."""
  41902. return _mupdf.pdf_close_processor(proc)
  41903. def pdf_cmap_size(cmap):
  41904. r"""Class-aware wrapper for `::pdf_cmap_size()`."""
  41905. return _mupdf.pdf_cmap_size(cmap)
  41906. def pdf_cmap_wmode(cmap):
  41907. r"""Class-aware wrapper for `::pdf_cmap_wmode()`."""
  41908. return _mupdf.pdf_cmap_wmode(cmap)
  41909. def pdf_copy_array(array):
  41910. r"""Class-aware wrapper for `::pdf_copy_array()`."""
  41911. return _mupdf.pdf_copy_array(array)
  41912. def pdf_copy_dict(dict):
  41913. r"""Class-aware wrapper for `::pdf_copy_dict()`."""
  41914. return _mupdf.pdf_copy_dict(dict)
  41915. def pdf_count_document_associated_files(doc):
  41916. r"""Class-aware wrapper for `::pdf_count_document_associated_files()`."""
  41917. return _mupdf.pdf_count_document_associated_files(doc)
  41918. def pdf_count_layer_config_ui(doc):
  41919. r"""Class-aware wrapper for `::pdf_count_layer_config_ui()`."""
  41920. return _mupdf.pdf_count_layer_config_ui(doc)
  41921. def pdf_count_layer_configs(doc):
  41922. r"""Class-aware wrapper for `::pdf_count_layer_configs()`."""
  41923. return _mupdf.pdf_count_layer_configs(doc)
  41924. def pdf_count_layers(doc):
  41925. r"""Class-aware wrapper for `::pdf_count_layers()`."""
  41926. return _mupdf.pdf_count_layers(doc)
  41927. def pdf_count_objects(doc):
  41928. r"""Class-aware wrapper for `::pdf_count_objects()`."""
  41929. return _mupdf.pdf_count_objects(doc)
  41930. def pdf_count_page_associated_files(page):
  41931. r"""Class-aware wrapper for `::pdf_count_page_associated_files()`."""
  41932. return _mupdf.pdf_count_page_associated_files(page)
  41933. def pdf_count_pages(doc):
  41934. r"""Class-aware wrapper for `::pdf_count_pages()`."""
  41935. return _mupdf.pdf_count_pages(doc)
  41936. def pdf_count_pages_imp(doc, chapter):
  41937. r"""Class-aware wrapper for `::pdf_count_pages_imp()`."""
  41938. return _mupdf.pdf_count_pages_imp(doc, chapter)
  41939. def pdf_count_q_balance(doc, res, stm, prepend, append):
  41940. r"""
  41941. Class-aware wrapper for `::pdf_count_q_balance()`.
  41942. This function has out-params. Python/C# wrappers look like:
  41943. `pdf_count_q_balance(::pdf_document *doc, ::pdf_obj *res, ::pdf_obj *stm)` => `(int prepend, int append)`
  41944. """
  41945. return _mupdf.pdf_count_q_balance(doc, res, stm, prepend, append)
  41946. def pdf_count_signatures(doc):
  41947. r"""Class-aware wrapper for `::pdf_count_signatures()`."""
  41948. return _mupdf.pdf_count_signatures(doc)
  41949. def pdf_count_unsaved_versions(doc):
  41950. r"""Class-aware wrapper for `::pdf_count_unsaved_versions()`."""
  41951. return _mupdf.pdf_count_unsaved_versions(doc)
  41952. def pdf_count_versions(doc):
  41953. r"""Class-aware wrapper for `::pdf_count_versions()`."""
  41954. return _mupdf.pdf_count_versions(doc)
  41955. def pdf_create_annot(page, type):
  41956. r"""Class-aware wrapper for `::pdf_create_annot()`."""
  41957. return _mupdf.pdf_create_annot(page, type)
  41958. def pdf_create_annot_raw(page, type):
  41959. r"""Class-aware wrapper for `::pdf_create_annot_raw()`."""
  41960. return _mupdf.pdf_create_annot_raw(page, type)
  41961. def pdf_create_document():
  41962. r"""Class-aware wrapper for `::pdf_create_document()`."""
  41963. return _mupdf.pdf_create_document()
  41964. def pdf_create_field_name(doc, prefix, buf, len):
  41965. r"""Class-aware wrapper for `::pdf_create_field_name()`."""
  41966. return _mupdf.pdf_create_field_name(doc, prefix, buf, len)
  41967. def pdf_create_link(page, bbox, uri):
  41968. r"""Class-aware wrapper for `::pdf_create_link()`."""
  41969. return _mupdf.pdf_create_link(page, bbox, uri)
  41970. def pdf_create_object(doc):
  41971. r"""Class-aware wrapper for `::pdf_create_object()`."""
  41972. return _mupdf.pdf_create_object(doc)
  41973. def pdf_create_signature_widget(page, name):
  41974. r"""Class-aware wrapper for `::pdf_create_signature_widget()`."""
  41975. return _mupdf.pdf_create_signature_widget(page, name)
  41976. def pdf_crypt_encrypt_metadata(crypt):
  41977. r"""Class-aware wrapper for `::pdf_crypt_encrypt_metadata()`."""
  41978. return _mupdf.pdf_crypt_encrypt_metadata(crypt)
  41979. def pdf_crypt_key(crypt):
  41980. r"""Class-aware wrapper for `::pdf_crypt_key()`."""
  41981. return _mupdf.pdf_crypt_key(crypt)
  41982. def pdf_crypt_length(crypt):
  41983. r"""Class-aware wrapper for `::pdf_crypt_length()`."""
  41984. return _mupdf.pdf_crypt_length(crypt)
  41985. def pdf_crypt_method(crypt):
  41986. r"""Class-aware wrapper for `::pdf_crypt_method()`."""
  41987. return _mupdf.pdf_crypt_method(crypt)
  41988. def pdf_crypt_obj(crypt, obj, num, gen):
  41989. r"""Class-aware wrapper for `::pdf_crypt_obj()`."""
  41990. return _mupdf.pdf_crypt_obj(crypt, obj, num, gen)
  41991. def pdf_crypt_owner_encryption(crypt):
  41992. r"""Class-aware wrapper for `::pdf_crypt_owner_encryption()`."""
  41993. return _mupdf.pdf_crypt_owner_encryption(crypt)
  41994. def pdf_crypt_owner_password(crypt):
  41995. r"""Class-aware wrapper for `::pdf_crypt_owner_password()`."""
  41996. return _mupdf.pdf_crypt_owner_password(crypt)
  41997. def pdf_crypt_permissions(crypt):
  41998. r"""Class-aware wrapper for `::pdf_crypt_permissions()`."""
  41999. return _mupdf.pdf_crypt_permissions(crypt)
  42000. def pdf_crypt_permissions_encryption(crypt):
  42001. r"""Class-aware wrapper for `::pdf_crypt_permissions_encryption()`."""
  42002. return _mupdf.pdf_crypt_permissions_encryption(crypt)
  42003. def pdf_crypt_revision(crypt):
  42004. r"""Class-aware wrapper for `::pdf_crypt_revision()`."""
  42005. return _mupdf.pdf_crypt_revision(crypt)
  42006. def pdf_crypt_stream_method(crypt):
  42007. r"""Class-aware wrapper for `::pdf_crypt_stream_method()`."""
  42008. return _mupdf.pdf_crypt_stream_method(crypt)
  42009. def pdf_crypt_string_method(crypt):
  42010. r"""Class-aware wrapper for `::pdf_crypt_string_method()`."""
  42011. return _mupdf.pdf_crypt_string_method(crypt)
  42012. def pdf_crypt_user_encryption(crypt):
  42013. r"""Class-aware wrapper for `::pdf_crypt_user_encryption()`."""
  42014. return _mupdf.pdf_crypt_user_encryption(crypt)
  42015. def pdf_crypt_user_password(crypt):
  42016. r"""Class-aware wrapper for `::pdf_crypt_user_password()`."""
  42017. return _mupdf.pdf_crypt_user_password(crypt)
  42018. def pdf_crypt_version(crypt):
  42019. r"""Class-aware wrapper for `::pdf_crypt_version()`."""
  42020. return _mupdf.pdf_crypt_version(crypt)
  42021. def pdf_cycle(here, prev, obj):
  42022. r"""Class-aware wrapper for `::pdf_cycle()`."""
  42023. return _mupdf.pdf_cycle(here, prev, obj)
  42024. def pdf_debug_doc_changes(doc):
  42025. r"""Class-aware wrapper for `::pdf_debug_doc_changes()`."""
  42026. return _mupdf.pdf_debug_doc_changes(doc)
  42027. def pdf_debug_obj(obj):
  42028. r"""Class-aware wrapper for `::pdf_debug_obj()`."""
  42029. return _mupdf.pdf_debug_obj(obj)
  42030. def pdf_debug_ref(obj):
  42031. r"""Class-aware wrapper for `::pdf_debug_ref()`."""
  42032. return _mupdf.pdf_debug_ref(obj)
  42033. def pdf_decode_cmap(cmap, s, e, cpt):
  42034. r"""
  42035. Class-aware wrapper for `::pdf_decode_cmap()`.
  42036. This function has out-params. Python/C# wrappers look like:
  42037. `pdf_decode_cmap(::pdf_cmap *cmap, unsigned char *s, unsigned char *e)` => `(int, unsigned int cpt)`
  42038. """
  42039. return _mupdf.pdf_decode_cmap(cmap, s, e, cpt)
  42040. def pdf_deep_copy_obj(obj):
  42041. r"""Class-aware wrapper for `::pdf_deep_copy_obj()`."""
  42042. return _mupdf.pdf_deep_copy_obj(obj)
  42043. def pdf_delete_annot(page, annot):
  42044. r"""Class-aware wrapper for `::pdf_delete_annot()`."""
  42045. return _mupdf.pdf_delete_annot(page, annot)
  42046. def pdf_delete_link(page, link):
  42047. r"""Class-aware wrapper for `::pdf_delete_link()`."""
  42048. return _mupdf.pdf_delete_link(page, link)
  42049. def pdf_delete_object(doc, num):
  42050. r"""Class-aware wrapper for `::pdf_delete_object()`."""
  42051. return _mupdf.pdf_delete_object(doc, num)
  42052. def pdf_delete_page(doc, number):
  42053. r"""Class-aware wrapper for `::pdf_delete_page()`."""
  42054. return _mupdf.pdf_delete_page(doc, number)
  42055. def pdf_delete_page_labels(doc, index):
  42056. r"""Class-aware wrapper for `::pdf_delete_page_labels()`."""
  42057. return _mupdf.pdf_delete_page_labels(doc, index)
  42058. def pdf_delete_page_range(doc, start, end):
  42059. r"""Class-aware wrapper for `::pdf_delete_page_range()`."""
  42060. return _mupdf.pdf_delete_page_range(doc, start, end)
  42061. def pdf_deselect_layer_config_ui(doc, ui):
  42062. r"""Class-aware wrapper for `::pdf_deselect_layer_config_ui()`."""
  42063. return _mupdf.pdf_deselect_layer_config_ui(doc, ui)
  42064. def pdf_deserialise_journal(doc, stm):
  42065. r"""Class-aware wrapper for `::pdf_deserialise_journal()`."""
  42066. return _mupdf.pdf_deserialise_journal(doc, stm)
  42067. def pdf_dict_del(dict, key):
  42068. r"""Class-aware wrapper for `::pdf_dict_del()`."""
  42069. return _mupdf.pdf_dict_del(dict, key)
  42070. def pdf_dict_dels(dict, key):
  42071. r"""Class-aware wrapper for `::pdf_dict_dels()`."""
  42072. return _mupdf.pdf_dict_dels(dict, key)
  42073. def pdf_dict_get(dict, key):
  42074. r"""Class-aware wrapper for `::pdf_dict_get()`."""
  42075. return _mupdf.pdf_dict_get(dict, key)
  42076. def pdf_dict_get_bool(dict, key):
  42077. r"""Class-aware wrapper for `::pdf_dict_get_bool()`."""
  42078. return _mupdf.pdf_dict_get_bool(dict, key)
  42079. def pdf_dict_get_bool_default(dict, key, _def):
  42080. r"""Class-aware wrapper for `::pdf_dict_get_bool_default()`."""
  42081. return _mupdf.pdf_dict_get_bool_default(dict, key, _def)
  42082. def pdf_dict_get_date(dict, key):
  42083. r"""Class-aware wrapper for `::pdf_dict_get_date()`."""
  42084. return _mupdf.pdf_dict_get_date(dict, key)
  42085. def pdf_dict_get_inheritable(dict, key):
  42086. r"""Class-aware wrapper for `::pdf_dict_get_inheritable()`."""
  42087. return _mupdf.pdf_dict_get_inheritable(dict, key)
  42088. def pdf_dict_get_inheritable_bool(dict, key):
  42089. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_bool()`."""
  42090. return _mupdf.pdf_dict_get_inheritable_bool(dict, key)
  42091. def pdf_dict_get_inheritable_date(dict, key):
  42092. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_date()`."""
  42093. return _mupdf.pdf_dict_get_inheritable_date(dict, key)
  42094. def pdf_dict_get_inheritable_int(dict, key):
  42095. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_int()`."""
  42096. return _mupdf.pdf_dict_get_inheritable_int(dict, key)
  42097. def pdf_dict_get_inheritable_int64(dict, key):
  42098. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_int64()`."""
  42099. return _mupdf.pdf_dict_get_inheritable_int64(dict, key)
  42100. def pdf_dict_get_inheritable_matrix(dict, key):
  42101. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_matrix()`."""
  42102. return _mupdf.pdf_dict_get_inheritable_matrix(dict, key)
  42103. def pdf_dict_get_inheritable_name(dict, key):
  42104. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_name()`."""
  42105. return _mupdf.pdf_dict_get_inheritable_name(dict, key)
  42106. def pdf_dict_get_inheritable_real(dict, key):
  42107. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_real()`."""
  42108. return _mupdf.pdf_dict_get_inheritable_real(dict, key)
  42109. def pdf_dict_get_inheritable_rect(dict, key):
  42110. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_rect()`."""
  42111. return _mupdf.pdf_dict_get_inheritable_rect(dict, key)
  42112. def pdf_dict_get_inheritable_string(dict, key, sizep):
  42113. r"""
  42114. Class-aware wrapper for `::pdf_dict_get_inheritable_string()`.
  42115. This function has out-params. Python/C# wrappers look like:
  42116. `pdf_dict_get_inheritable_string(::pdf_obj *dict, ::pdf_obj *key)` => `(const char *, size_t sizep)`
  42117. """
  42118. return _mupdf.pdf_dict_get_inheritable_string(dict, key, sizep)
  42119. def pdf_dict_get_inheritable_text_string(dict, key):
  42120. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_text_string()`."""
  42121. return _mupdf.pdf_dict_get_inheritable_text_string(dict, key)
  42122. def pdf_dict_get_int(dict, key):
  42123. r"""Class-aware wrapper for `::pdf_dict_get_int()`."""
  42124. return _mupdf.pdf_dict_get_int(dict, key)
  42125. def pdf_dict_get_int64(dict, key):
  42126. r"""Class-aware wrapper for `::pdf_dict_get_int64()`."""
  42127. return _mupdf.pdf_dict_get_int64(dict, key)
  42128. def pdf_dict_get_int_default(dict, key, _def):
  42129. r"""Class-aware wrapper for `::pdf_dict_get_int_default()`."""
  42130. return _mupdf.pdf_dict_get_int_default(dict, key, _def)
  42131. def pdf_dict_get_key(dict, idx):
  42132. r"""Class-aware wrapper for `::pdf_dict_get_key()`."""
  42133. return _mupdf.pdf_dict_get_key(dict, idx)
  42134. def pdf_dict_get_matrix(dict, key):
  42135. r"""Class-aware wrapper for `::pdf_dict_get_matrix()`."""
  42136. return _mupdf.pdf_dict_get_matrix(dict, key)
  42137. def pdf_dict_get_name(dict, key):
  42138. r"""Class-aware wrapper for `::pdf_dict_get_name()`."""
  42139. return _mupdf.pdf_dict_get_name(dict, key)
  42140. def pdf_dict_get_point(dict, key):
  42141. r"""Class-aware wrapper for `::pdf_dict_get_point()`."""
  42142. return _mupdf.pdf_dict_get_point(dict, key)
  42143. def pdf_dict_get_real(dict, key):
  42144. r"""Class-aware wrapper for `::pdf_dict_get_real()`."""
  42145. return _mupdf.pdf_dict_get_real(dict, key)
  42146. def pdf_dict_get_real_default(dict, key, _def):
  42147. r"""Class-aware wrapper for `::pdf_dict_get_real_default()`."""
  42148. return _mupdf.pdf_dict_get_real_default(dict, key, _def)
  42149. def pdf_dict_get_rect(dict, key):
  42150. r"""Class-aware wrapper for `::pdf_dict_get_rect()`."""
  42151. return _mupdf.pdf_dict_get_rect(dict, key)
  42152. def pdf_dict_get_string(dict, key, sizep):
  42153. r"""
  42154. Class-aware wrapper for `::pdf_dict_get_string()`.
  42155. This function has out-params. Python/C# wrappers look like:
  42156. `pdf_dict_get_string(::pdf_obj *dict, ::pdf_obj *key)` => `(const char *, size_t sizep)`
  42157. """
  42158. return _mupdf.pdf_dict_get_string(dict, key, sizep)
  42159. def pdf_dict_get_text_string(dict, key):
  42160. r"""Class-aware wrapper for `::pdf_dict_get_text_string()`."""
  42161. return _mupdf.pdf_dict_get_text_string(dict, key)
  42162. def pdf_dict_get_text_string_opt(dict, key):
  42163. r"""Class-aware wrapper for `::pdf_dict_get_text_string_opt()`."""
  42164. return _mupdf.pdf_dict_get_text_string_opt(dict, key)
  42165. def pdf_dict_get_val(dict, idx):
  42166. r"""Class-aware wrapper for `::pdf_dict_get_val()`."""
  42167. return _mupdf.pdf_dict_get_val(dict, idx)
  42168. def pdf_dict_geta(dict, key, abbrev):
  42169. r"""Class-aware wrapper for `::pdf_dict_geta()`."""
  42170. return _mupdf.pdf_dict_geta(dict, key, abbrev)
  42171. def pdf_dict_getp(dict, path):
  42172. r"""Class-aware wrapper for `::pdf_dict_getp()`."""
  42173. return _mupdf.pdf_dict_getp(dict, path)
  42174. def pdf_dict_getp_inheritable(dict, path):
  42175. r"""Class-aware wrapper for `::pdf_dict_getp_inheritable()`."""
  42176. return _mupdf.pdf_dict_getp_inheritable(dict, path)
  42177. def pdf_dict_gets(dict, key):
  42178. r"""Class-aware wrapper for `::pdf_dict_gets()`."""
  42179. return _mupdf.pdf_dict_gets(dict, key)
  42180. def pdf_dict_gets_inheritable(dict, key):
  42181. r"""Class-aware wrapper for `::pdf_dict_gets_inheritable()`."""
  42182. return _mupdf.pdf_dict_gets_inheritable(dict, key)
  42183. def pdf_dict_getsa(dict, key, abbrev):
  42184. r"""Class-aware wrapper for `::pdf_dict_getsa()`."""
  42185. return _mupdf.pdf_dict_getsa(dict, key, abbrev)
  42186. def pdf_dict_len(dict):
  42187. r"""Class-aware wrapper for `::pdf_dict_len()`."""
  42188. return _mupdf.pdf_dict_len(dict)
  42189. def pdf_dict_put(dict, key, val):
  42190. r"""Class-aware wrapper for `::pdf_dict_put()`."""
  42191. return _mupdf.pdf_dict_put(dict, key, val)
  42192. def pdf_dict_put_array(dict, key, initial):
  42193. r"""Class-aware wrapper for `::pdf_dict_put_array()`."""
  42194. return _mupdf.pdf_dict_put_array(dict, key, initial)
  42195. def pdf_dict_put_bool(dict, key, x):
  42196. r"""Class-aware wrapper for `::pdf_dict_put_bool()`."""
  42197. return _mupdf.pdf_dict_put_bool(dict, key, x)
  42198. def pdf_dict_put_date(dict, key, time):
  42199. r"""Class-aware wrapper for `::pdf_dict_put_date()`."""
  42200. return _mupdf.pdf_dict_put_date(dict, key, time)
  42201. def pdf_dict_put_dict(dict, key, initial):
  42202. r"""Class-aware wrapper for `::pdf_dict_put_dict()`."""
  42203. return _mupdf.pdf_dict_put_dict(dict, key, initial)
  42204. def pdf_dict_put_indirect(dict, key, num):
  42205. r"""Class-aware wrapper for `::pdf_dict_put_indirect()`."""
  42206. return _mupdf.pdf_dict_put_indirect(dict, key, num)
  42207. def pdf_dict_put_int(dict, key, x):
  42208. r"""Class-aware wrapper for `::pdf_dict_put_int()`."""
  42209. return _mupdf.pdf_dict_put_int(dict, key, x)
  42210. def pdf_dict_put_matrix(dict, key, x):
  42211. r"""Class-aware wrapper for `::pdf_dict_put_matrix()`."""
  42212. return _mupdf.pdf_dict_put_matrix(dict, key, x)
  42213. def pdf_dict_put_name(dict, key, x):
  42214. r"""Class-aware wrapper for `::pdf_dict_put_name()`."""
  42215. return _mupdf.pdf_dict_put_name(dict, key, x)
  42216. def pdf_dict_put_point(dict, key, x):
  42217. r"""Class-aware wrapper for `::pdf_dict_put_point()`."""
  42218. return _mupdf.pdf_dict_put_point(dict, key, x)
  42219. def pdf_dict_put_real(dict, key, x):
  42220. r"""Class-aware wrapper for `::pdf_dict_put_real()`."""
  42221. return _mupdf.pdf_dict_put_real(dict, key, x)
  42222. def pdf_dict_put_rect(dict, key, x):
  42223. r"""Class-aware wrapper for `::pdf_dict_put_rect()`."""
  42224. return _mupdf.pdf_dict_put_rect(dict, key, x)
  42225. def pdf_dict_put_string(dict, key, x, n):
  42226. r"""Class-aware wrapper for `::pdf_dict_put_string()`."""
  42227. return _mupdf.pdf_dict_put_string(dict, key, x, n)
  42228. def pdf_dict_put_text_string(dict, key, x):
  42229. r"""Class-aware wrapper for `::pdf_dict_put_text_string()`."""
  42230. return _mupdf.pdf_dict_put_text_string(dict, key, x)
  42231. def pdf_dict_put_val_null(obj, idx):
  42232. r"""Class-aware wrapper for `::pdf_dict_put_val_null()`."""
  42233. return _mupdf.pdf_dict_put_val_null(obj, idx)
  42234. def pdf_dict_putp(dict, path, val):
  42235. r"""Class-aware wrapper for `::pdf_dict_putp()`."""
  42236. return _mupdf.pdf_dict_putp(dict, path, val)
  42237. def pdf_dict_puts(dict, key, val):
  42238. r"""Class-aware wrapper for `::pdf_dict_puts()`."""
  42239. return _mupdf.pdf_dict_puts(dict, key, val)
  42240. def pdf_dict_puts_dict(dict, key, initial):
  42241. r"""Class-aware wrapper for `::pdf_dict_puts_dict()`."""
  42242. return _mupdf.pdf_dict_puts_dict(dict, key, initial)
  42243. def pdf_dirty_annot(annot):
  42244. r"""Class-aware wrapper for `::pdf_dirty_annot()`."""
  42245. return _mupdf.pdf_dirty_annot(annot)
  42246. def pdf_dirty_obj(obj):
  42247. r"""Class-aware wrapper for `::pdf_dirty_obj()`."""
  42248. return _mupdf.pdf_dirty_obj(obj)
  42249. def pdf_disable_js(doc):
  42250. r"""Class-aware wrapper for `::pdf_disable_js()`."""
  42251. return _mupdf.pdf_disable_js(doc)
  42252. def pdf_discard_journal(journal):
  42253. r"""Class-aware wrapper for `::pdf_discard_journal()`."""
  42254. return _mupdf.pdf_discard_journal(journal)
  42255. def pdf_doc_was_linearized(doc):
  42256. r"""Class-aware wrapper for `::pdf_doc_was_linearized()`."""
  42257. return _mupdf.pdf_doc_was_linearized(doc)
  42258. def pdf_document_associated_file(doc, idx):
  42259. r"""Class-aware wrapper for `::pdf_document_associated_file()`."""
  42260. return _mupdf.pdf_document_associated_file(doc, idx)
  42261. def pdf_document_event_did_print(doc):
  42262. r"""Class-aware wrapper for `::pdf_document_event_did_print()`."""
  42263. return _mupdf.pdf_document_event_did_print(doc)
  42264. def pdf_document_event_did_save(doc):
  42265. r"""Class-aware wrapper for `::pdf_document_event_did_save()`."""
  42266. return _mupdf.pdf_document_event_did_save(doc)
  42267. def pdf_document_event_will_close(doc):
  42268. r"""Class-aware wrapper for `::pdf_document_event_will_close()`."""
  42269. return _mupdf.pdf_document_event_will_close(doc)
  42270. def pdf_document_event_will_print(doc):
  42271. r"""Class-aware wrapper for `::pdf_document_event_will_print()`."""
  42272. return _mupdf.pdf_document_event_will_print(doc)
  42273. def pdf_document_event_will_save(doc):
  42274. r"""Class-aware wrapper for `::pdf_document_event_will_save()`."""
  42275. return _mupdf.pdf_document_event_will_save(doc)
  42276. def pdf_document_from_fz_document(ptr):
  42277. r"""Class-aware wrapper for `::pdf_document_from_fz_document()`."""
  42278. return _mupdf.pdf_document_from_fz_document(ptr)
  42279. def pdf_document_language(doc):
  42280. r"""Class-aware wrapper for `::pdf_document_language()`."""
  42281. return _mupdf.pdf_document_language(doc)
  42282. def pdf_document_output_intent(doc):
  42283. r"""Class-aware wrapper for `::pdf_document_output_intent()`."""
  42284. return _mupdf.pdf_document_output_intent(doc)
  42285. def pdf_document_permissions(doc):
  42286. r"""Class-aware wrapper for `::pdf_document_permissions()`."""
  42287. return _mupdf.pdf_document_permissions(doc)
  42288. def pdf_edit_text_field_value(widget, value, change, selStart, selEnd, newvalue):
  42289. r"""
  42290. Class-aware wrapper for `::pdf_edit_text_field_value()`.
  42291. This function has out-params. Python/C# wrappers look like:
  42292. `pdf_edit_text_field_value(::pdf_annot *widget, const char *value, const char *change)` => `(int, int selStart, int selEnd, char *newvalue)`
  42293. """
  42294. return _mupdf.pdf_edit_text_field_value(widget, value, change, selStart, selEnd, newvalue)
  42295. def pdf_empty_store(doc):
  42296. r"""Class-aware wrapper for `::pdf_empty_store()`."""
  42297. return _mupdf.pdf_empty_store(doc)
  42298. def pdf_enable_journal(doc):
  42299. r"""Class-aware wrapper for `::pdf_enable_journal()`."""
  42300. return _mupdf.pdf_enable_journal(doc)
  42301. def pdf_enable_js(doc):
  42302. r"""Class-aware wrapper for `::pdf_enable_js()`."""
  42303. return _mupdf.pdf_enable_js(doc)
  42304. def pdf_enable_layer(doc, layer, enabled):
  42305. r"""Class-aware wrapper for `::pdf_enable_layer()`."""
  42306. return _mupdf.pdf_enable_layer(doc, layer, enabled)
  42307. def pdf_encrypt_data(crypt, num, gen, fmt_str_out, arg, s, n):
  42308. r"""Class-aware wrapper for `::pdf_encrypt_data()`."""
  42309. return _mupdf.pdf_encrypt_data(crypt, num, gen, fmt_str_out, arg, s, n)
  42310. def pdf_encrypted_len(crypt, num, gen, len):
  42311. r"""Class-aware wrapper for `::pdf_encrypted_len()`."""
  42312. return _mupdf.pdf_encrypted_len(crypt, num, gen, len)
  42313. def pdf_end_hmtx(font):
  42314. r"""Class-aware wrapper for `::pdf_end_hmtx()`."""
  42315. return _mupdf.pdf_end_hmtx(font)
  42316. def pdf_end_operation(doc):
  42317. r"""Class-aware wrapper for `::pdf_end_operation()`."""
  42318. return _mupdf.pdf_end_operation(doc)
  42319. def pdf_end_vmtx(font):
  42320. r"""Class-aware wrapper for `::pdf_end_vmtx()`."""
  42321. return _mupdf.pdf_end_vmtx(font)
  42322. def pdf_ensure_solid_xref(doc, num):
  42323. r"""Class-aware wrapper for `::pdf_ensure_solid_xref()`."""
  42324. return _mupdf.pdf_ensure_solid_xref(doc, num)
  42325. def pdf_eval_function(func, _in, inlen, out, outlen):
  42326. r"""
  42327. Class-aware wrapper for `::pdf_eval_function()`.
  42328. This function has out-params. Python/C# wrappers look like:
  42329. `pdf_eval_function(::pdf_function *func, const float *in, int inlen, int outlen)` => float out
  42330. """
  42331. return _mupdf.pdf_eval_function(func, _in, inlen, out, outlen)
  42332. def pdf_event_issue_alert(doc, evt):
  42333. r"""Class-aware wrapper for `::pdf_event_issue_alert()`."""
  42334. return _mupdf.pdf_event_issue_alert(doc, evt)
  42335. def pdf_event_issue_exec_menu_item(doc, item):
  42336. r"""Class-aware wrapper for `::pdf_event_issue_exec_menu_item()`."""
  42337. return _mupdf.pdf_event_issue_exec_menu_item(doc, item)
  42338. def pdf_event_issue_launch_url(doc, url, new_frame):
  42339. r"""Class-aware wrapper for `::pdf_event_issue_launch_url()`."""
  42340. return _mupdf.pdf_event_issue_launch_url(doc, url, new_frame)
  42341. def pdf_event_issue_mail_doc(doc, evt):
  42342. r"""Class-aware wrapper for `::pdf_event_issue_mail_doc()`."""
  42343. return _mupdf.pdf_event_issue_mail_doc(doc, evt)
  42344. def pdf_event_issue_print(doc):
  42345. r"""Class-aware wrapper for `::pdf_event_issue_print()`."""
  42346. return _mupdf.pdf_event_issue_print(doc)
  42347. def pdf_field_border_style(field):
  42348. r"""Class-aware wrapper for `::pdf_field_border_style()`."""
  42349. return _mupdf.pdf_field_border_style(field)
  42350. def pdf_field_display(field):
  42351. r"""Class-aware wrapper for `::pdf_field_display()`."""
  42352. return _mupdf.pdf_field_display(field)
  42353. def pdf_field_event_calculate(doc, field):
  42354. r"""Class-aware wrapper for `::pdf_field_event_calculate()`."""
  42355. return _mupdf.pdf_field_event_calculate(doc, field)
  42356. def pdf_field_event_format(doc, field):
  42357. r"""Class-aware wrapper for `::pdf_field_event_format()`."""
  42358. return _mupdf.pdf_field_event_format(doc, field)
  42359. def pdf_field_event_keystroke(doc, field, evt):
  42360. r"""Class-aware wrapper for `::pdf_field_event_keystroke()`."""
  42361. return _mupdf.pdf_field_event_keystroke(doc, field, evt)
  42362. def pdf_field_event_validate(doc, field, value, newvalue):
  42363. r"""
  42364. Class-aware wrapper for `::pdf_field_event_validate()`.
  42365. This function has out-params. Python/C# wrappers look like:
  42366. `pdf_field_event_validate(::pdf_document *doc, ::pdf_obj *field, const char *value)` => `(int, char *newvalue)`
  42367. """
  42368. return _mupdf.pdf_field_event_validate(doc, field, value, newvalue)
  42369. def pdf_field_flags(field):
  42370. r"""Class-aware wrapper for `::pdf_field_flags()`."""
  42371. return _mupdf.pdf_field_flags(field)
  42372. def pdf_field_label(field):
  42373. r"""Class-aware wrapper for `::pdf_field_label()`."""
  42374. return _mupdf.pdf_field_label(field)
  42375. def pdf_field_reset(doc, field):
  42376. r"""Class-aware wrapper for `::pdf_field_reset()`."""
  42377. return _mupdf.pdf_field_reset(doc, field)
  42378. def pdf_field_set_border_style(field, text):
  42379. r"""Class-aware wrapper for `::pdf_field_set_border_style()`."""
  42380. return _mupdf.pdf_field_set_border_style(field, text)
  42381. def pdf_field_set_button_caption(field, text):
  42382. r"""Class-aware wrapper for `::pdf_field_set_button_caption()`."""
  42383. return _mupdf.pdf_field_set_button_caption(field, text)
  42384. def pdf_field_set_display(field, d):
  42385. r"""Class-aware wrapper for `::pdf_field_set_display()`."""
  42386. return _mupdf.pdf_field_set_display(field, d)
  42387. def pdf_field_set_fill_color(field, col):
  42388. r"""Class-aware wrapper for `::pdf_field_set_fill_color()`."""
  42389. return _mupdf.pdf_field_set_fill_color(field, col)
  42390. def pdf_field_set_text_color(field, col):
  42391. r"""Class-aware wrapper for `::pdf_field_set_text_color()`."""
  42392. return _mupdf.pdf_field_set_text_color(field, col)
  42393. def pdf_field_type(field):
  42394. r"""Class-aware wrapper for `::pdf_field_type()`."""
  42395. return _mupdf.pdf_field_type(field)
  42396. def pdf_field_type_string(field):
  42397. r"""Class-aware wrapper for `::pdf_field_type_string()`."""
  42398. return _mupdf.pdf_field_type_string(field)
  42399. def pdf_field_value(field):
  42400. r"""Class-aware wrapper for `::pdf_field_value()`."""
  42401. return _mupdf.pdf_field_value(field)
  42402. def pdf_filter_annot_contents(doc, annot, options):
  42403. r"""Class-aware wrapper for `::pdf_filter_annot_contents()`."""
  42404. return _mupdf.pdf_filter_annot_contents(doc, annot, options)
  42405. def pdf_filter_page_contents(doc, page, options):
  42406. r"""Class-aware wrapper for `::pdf_filter_page_contents()`."""
  42407. return _mupdf.pdf_filter_page_contents(doc, page, options)
  42408. def pdf_filter_xobject_instance(old_xobj, page_res, ctm, options, cycle_up):
  42409. r"""Class-aware wrapper for `::pdf_filter_xobject_instance()`."""
  42410. return _mupdf.pdf_filter_xobject_instance(old_xobj, page_res, ctm, options, cycle_up)
  42411. def pdf_find_colorspace_resource(doc, item, key):
  42412. r"""Class-aware wrapper for `::pdf_find_colorspace_resource()`."""
  42413. return _mupdf.pdf_find_colorspace_resource(doc, item, key)
  42414. def pdf_find_font_resource(doc, type, encoding, item, key):
  42415. r"""Class-aware wrapper for `::pdf_find_font_resource()`."""
  42416. return _mupdf.pdf_find_font_resource(doc, type, encoding, item, key)
  42417. def pdf_find_item(drop, key):
  42418. r"""Class-aware wrapper for `::pdf_find_item()`."""
  42419. return _mupdf.pdf_find_item(drop, key)
  42420. def pdf_find_version_for_obj(doc, obj):
  42421. r"""Class-aware wrapper for `::pdf_find_version_for_obj()`."""
  42422. return _mupdf.pdf_find_version_for_obj(doc, obj)
  42423. def pdf_first_annot(page):
  42424. r"""Class-aware wrapper for `::pdf_first_annot()`."""
  42425. return _mupdf.pdf_first_annot(page)
  42426. def pdf_first_widget(page):
  42427. r"""Class-aware wrapper for `::pdf_first_widget()`."""
  42428. return _mupdf.pdf_first_widget(page)
  42429. def pdf_flatten_inheritable_page_items(page):
  42430. r"""Class-aware wrapper for `::pdf_flatten_inheritable_page_items()`."""
  42431. return _mupdf.pdf_flatten_inheritable_page_items(page)
  42432. def pdf_font_cid_to_gid(fontdesc, cid):
  42433. r"""Class-aware wrapper for `::pdf_font_cid_to_gid()`."""
  42434. return _mupdf.pdf_font_cid_to_gid(fontdesc, cid)
  42435. def pdf_font_writing_supported(font):
  42436. r"""Class-aware wrapper for `::pdf_font_writing_supported()`."""
  42437. return _mupdf.pdf_font_writing_supported(font)
  42438. def pdf_forget_xref(doc):
  42439. r"""Class-aware wrapper for `::pdf_forget_xref()`."""
  42440. return _mupdf.pdf_forget_xref(doc)
  42441. def pdf_format_date(time, s, n):
  42442. r"""Class-aware wrapper for `::pdf_format_date()`."""
  42443. return _mupdf.pdf_format_date(time, s, n)
  42444. def pdf_format_write_options(buffer, buffer_len, opts):
  42445. r"""Class-aware wrapper for `::pdf_format_write_options()`."""
  42446. return _mupdf.pdf_format_write_options(buffer, buffer_len, opts)
  42447. def pdf_function_size(func):
  42448. r"""Class-aware wrapper for `::pdf_function_size()`."""
  42449. return _mupdf.pdf_function_size(func)
  42450. def pdf_get_bound_document(obj):
  42451. r"""Class-aware wrapper for `::pdf_get_bound_document()`."""
  42452. return _mupdf.pdf_get_bound_document(obj)
  42453. def pdf_get_doc_event_callback_data(doc):
  42454. r"""Class-aware wrapper for `::pdf_get_doc_event_callback_data()`."""
  42455. return _mupdf.pdf_get_doc_event_callback_data(doc)
  42456. def pdf_get_filespec_params(fs, out):
  42457. r"""Class-aware wrapper for `::pdf_get_filespec_params()`."""
  42458. return _mupdf.pdf_get_filespec_params(fs, out)
  42459. def pdf_get_indirect_document(obj):
  42460. r"""Class-aware wrapper for `::pdf_get_indirect_document()`."""
  42461. return _mupdf.pdf_get_indirect_document(obj)
  42462. def pdf_get_widget_editing_state(widget):
  42463. r"""Class-aware wrapper for `::pdf_get_widget_editing_state()`."""
  42464. return _mupdf.pdf_get_widget_editing_state(widget)
  42465. def pdf_graft_mapped_object(map, obj):
  42466. r"""Class-aware wrapper for `::pdf_graft_mapped_object()`."""
  42467. return _mupdf.pdf_graft_mapped_object(map, obj)
  42468. def pdf_graft_mapped_page(map, page_to, src, page_from):
  42469. r"""Class-aware wrapper for `::pdf_graft_mapped_page()`."""
  42470. return _mupdf.pdf_graft_mapped_page(map, page_to, src, page_from)
  42471. def pdf_graft_object(dst, obj):
  42472. r"""Class-aware wrapper for `::pdf_graft_object()`."""
  42473. return _mupdf.pdf_graft_object(dst, obj)
  42474. def pdf_graft_page(dst, page_to, src, page_from):
  42475. r"""Class-aware wrapper for `::pdf_graft_page()`."""
  42476. return _mupdf.pdf_graft_page(dst, page_to, src, page_from)
  42477. def pdf_has_permission(doc, p):
  42478. r"""Class-aware wrapper for `::pdf_has_permission()`."""
  42479. return _mupdf.pdf_has_permission(doc, p)
  42480. def pdf_has_unsaved_changes(doc):
  42481. r"""Class-aware wrapper for `::pdf_has_unsaved_changes()`."""
  42482. return _mupdf.pdf_has_unsaved_changes(doc)
  42483. def pdf_has_unsaved_sigs(doc):
  42484. r"""Class-aware wrapper for `::pdf_has_unsaved_sigs()`."""
  42485. return _mupdf.pdf_has_unsaved_sigs(doc)
  42486. def pdf_incremental_change_since_signing_widget(widget):
  42487. r"""Class-aware wrapper for `::pdf_incremental_change_since_signing_widget()`."""
  42488. return _mupdf.pdf_incremental_change_since_signing_widget(widget)
  42489. def pdf_insert_colorspace_resource(doc, key, obj):
  42490. r"""Class-aware wrapper for `::pdf_insert_colorspace_resource()`."""
  42491. return _mupdf.pdf_insert_colorspace_resource(doc, key, obj)
  42492. def pdf_insert_font_resource(doc, key, obj):
  42493. r"""Class-aware wrapper for `::pdf_insert_font_resource()`."""
  42494. return _mupdf.pdf_insert_font_resource(doc, key, obj)
  42495. def pdf_insert_page(doc, at, page):
  42496. r"""Class-aware wrapper for `::pdf_insert_page()`."""
  42497. return _mupdf.pdf_insert_page(doc, at, page)
  42498. def pdf_intent_from_name(obj):
  42499. r"""Class-aware wrapper for `::pdf_intent_from_name()`."""
  42500. return _mupdf.pdf_intent_from_name(obj)
  42501. def pdf_intent_from_string(str):
  42502. r"""Class-aware wrapper for `::pdf_intent_from_string()`."""
  42503. return _mupdf.pdf_intent_from_string(str)
  42504. def pdf_invalidate_xfa(doc):
  42505. r"""Class-aware wrapper for `::pdf_invalidate_xfa()`."""
  42506. return _mupdf.pdf_invalidate_xfa(doc)
  42507. def pdf_is_array(obj):
  42508. r"""Class-aware wrapper for `::pdf_is_array()`."""
  42509. return _mupdf.pdf_is_array(obj)
  42510. def pdf_is_bool(obj):
  42511. r"""Class-aware wrapper for `::pdf_is_bool()`."""
  42512. return _mupdf.pdf_is_bool(obj)
  42513. def pdf_is_dict(obj):
  42514. r"""Class-aware wrapper for `::pdf_is_dict()`."""
  42515. return _mupdf.pdf_is_dict(obj)
  42516. def pdf_is_embedded_file(fs):
  42517. r"""Class-aware wrapper for `::pdf_is_embedded_file()`."""
  42518. return _mupdf.pdf_is_embedded_file(fs)
  42519. def pdf_is_field_locked(locked, name):
  42520. r"""Class-aware wrapper for `::pdf_is_field_locked()`."""
  42521. return _mupdf.pdf_is_field_locked(locked, name)
  42522. def pdf_is_filespec(fs):
  42523. r"""Class-aware wrapper for `::pdf_is_filespec()`."""
  42524. return _mupdf.pdf_is_filespec(fs)
  42525. def pdf_is_image_stream(obj):
  42526. r"""Class-aware wrapper for `::pdf_is_image_stream()`."""
  42527. return _mupdf.pdf_is_image_stream(obj)
  42528. def pdf_is_indirect(obj):
  42529. r"""Class-aware wrapper for `::pdf_is_indirect()`."""
  42530. return _mupdf.pdf_is_indirect(obj)
  42531. def pdf_is_int(obj):
  42532. r"""Class-aware wrapper for `::pdf_is_int()`."""
  42533. return _mupdf.pdf_is_int(obj)
  42534. def pdf_is_jpx_image(dict):
  42535. r"""Class-aware wrapper for `::pdf_is_jpx_image()`."""
  42536. return _mupdf.pdf_is_jpx_image(dict)
  42537. def pdf_is_local_object(doc, obj):
  42538. r"""Class-aware wrapper for `::pdf_is_local_object()`."""
  42539. return _mupdf.pdf_is_local_object(doc, obj)
  42540. def pdf_is_name(obj):
  42541. r"""Class-aware wrapper for `::pdf_is_name()`."""
  42542. return _mupdf.pdf_is_name(obj)
  42543. def pdf_is_null(obj):
  42544. r"""Class-aware wrapper for `::pdf_is_null()`."""
  42545. return _mupdf.pdf_is_null(obj)
  42546. def pdf_is_number(obj):
  42547. r"""Class-aware wrapper for `::pdf_is_number()`."""
  42548. return _mupdf.pdf_is_number(obj)
  42549. def pdf_is_ocg_hidden(doc, rdb, usage, ocg):
  42550. r"""Class-aware wrapper for `::pdf_is_ocg_hidden()`."""
  42551. return _mupdf.pdf_is_ocg_hidden(doc, rdb, usage, ocg)
  42552. def pdf_is_real(obj):
  42553. r"""Class-aware wrapper for `::pdf_is_real()`."""
  42554. return _mupdf.pdf_is_real(obj)
  42555. def pdf_is_stream(obj):
  42556. r"""Class-aware wrapper for `::pdf_is_stream()`."""
  42557. return _mupdf.pdf_is_stream(obj)
  42558. def pdf_is_string(obj):
  42559. r"""Class-aware wrapper for `::pdf_is_string()`."""
  42560. return _mupdf.pdf_is_string(obj)
  42561. def pdf_is_tint_colorspace(cs):
  42562. r"""Class-aware wrapper for `::pdf_is_tint_colorspace()`."""
  42563. return _mupdf.pdf_is_tint_colorspace(cs)
  42564. def pdf_js_event_init(js, target, value, willCommit):
  42565. r"""Class-aware wrapper for `::pdf_js_event_init()`."""
  42566. return _mupdf.pdf_js_event_init(js, target, value, willCommit)
  42567. def pdf_js_event_init_keystroke(js, target, evt):
  42568. r"""Class-aware wrapper for `::pdf_js_event_init_keystroke()`."""
  42569. return _mupdf.pdf_js_event_init_keystroke(js, target, evt)
  42570. def pdf_js_event_result(js):
  42571. r"""Class-aware wrapper for `::pdf_js_event_result()`."""
  42572. return _mupdf.pdf_js_event_result(js)
  42573. def pdf_js_event_result_keystroke(js, evt):
  42574. r"""Class-aware wrapper for `::pdf_js_event_result_keystroke()`."""
  42575. return _mupdf.pdf_js_event_result_keystroke(js, evt)
  42576. def pdf_js_event_result_validate(js, newvalue):
  42577. r"""
  42578. Class-aware wrapper for `::pdf_js_event_result_validate()`.
  42579. This function has out-params. Python/C# wrappers look like:
  42580. `pdf_js_event_result_validate(::pdf_js *js)` => `(int, char *newvalue)`
  42581. """
  42582. return _mupdf.pdf_js_event_result_validate(js, newvalue)
  42583. def pdf_js_event_value(js):
  42584. r"""Class-aware wrapper for `::pdf_js_event_value()`."""
  42585. return _mupdf.pdf_js_event_value(js)
  42586. def pdf_js_execute(js, name, code, result):
  42587. r"""
  42588. Class-aware wrapper for `::pdf_js_execute()`.
  42589. This function has out-params. Python/C# wrappers look like:
  42590. `pdf_js_execute(::pdf_js *js, const char *name, const char *code)` => char *result
  42591. """
  42592. return _mupdf.pdf_js_execute(js, name, code, result)
  42593. def pdf_js_set_console(doc, console, user):
  42594. r"""Class-aware wrapper for `::pdf_js_set_console()`."""
  42595. return _mupdf.pdf_js_set_console(doc, console, user)
  42596. def pdf_js_supported(doc):
  42597. r"""Class-aware wrapper for `::pdf_js_supported()`."""
  42598. return _mupdf.pdf_js_supported(doc)
  42599. def pdf_label_object(g, num, callback, arg):
  42600. r"""Class-aware wrapper for `::pdf_label_object()`."""
  42601. return _mupdf.pdf_label_object(g, num, callback, arg)
  42602. def pdf_layer_config_info(doc, config_num, info):
  42603. r"""Class-aware wrapper for `::pdf_layer_config_info()`."""
  42604. return _mupdf.pdf_layer_config_info(doc, config_num, info)
  42605. def pdf_layer_config_ui_info(doc, ui, info):
  42606. r"""Class-aware wrapper for `::pdf_layer_config_ui_info()`."""
  42607. return _mupdf.pdf_layer_config_ui_info(doc, ui, info)
  42608. def pdf_layer_is_enabled(doc, layer):
  42609. r"""Class-aware wrapper for `::pdf_layer_is_enabled()`."""
  42610. return _mupdf.pdf_layer_is_enabled(doc, layer)
  42611. def pdf_layer_name(doc, layer):
  42612. r"""Class-aware wrapper for `::pdf_layer_name()`."""
  42613. return _mupdf.pdf_layer_name(doc, layer)
  42614. def pdf_layout_fit_text(font, lang, str, bounds):
  42615. r"""Class-aware wrapper for `::pdf_layout_fit_text()`."""
  42616. return _mupdf.pdf_layout_fit_text(font, lang, str, bounds)
  42617. def pdf_lex(f, lexbuf):
  42618. r"""Class-aware wrapper for `::pdf_lex()`."""
  42619. return _mupdf.pdf_lex(f, lexbuf)
  42620. def pdf_lex_no_string(f, lexbuf):
  42621. r"""Class-aware wrapper for `::pdf_lex_no_string()`."""
  42622. return _mupdf.pdf_lex_no_string(f, lexbuf)
  42623. def pdf_lexbuf_fin(lexbuf):
  42624. r"""Class-aware wrapper for `::pdf_lexbuf_fin()`."""
  42625. return _mupdf.pdf_lexbuf_fin(lexbuf)
  42626. def pdf_lexbuf_grow(lexbuf):
  42627. r"""Class-aware wrapper for `::pdf_lexbuf_grow()`."""
  42628. return _mupdf.pdf_lexbuf_grow(lexbuf)
  42629. def pdf_lexbuf_init(lexbuf, size):
  42630. r"""Class-aware wrapper for `::pdf_lexbuf_init()`."""
  42631. return _mupdf.pdf_lexbuf_init(lexbuf, size)
  42632. def pdf_line_ending_from_name(end):
  42633. r"""Class-aware wrapper for `::pdf_line_ending_from_name()`."""
  42634. return _mupdf.pdf_line_ending_from_name(end)
  42635. def pdf_line_ending_from_string(end):
  42636. r"""Class-aware wrapper for `::pdf_line_ending_from_string()`."""
  42637. return _mupdf.pdf_line_ending_from_string(end)
  42638. def pdf_load_builtin_cmap(name):
  42639. r"""Class-aware wrapper for `::pdf_load_builtin_cmap()`."""
  42640. return _mupdf.pdf_load_builtin_cmap(name)
  42641. def pdf_load_cmap(file):
  42642. r"""Class-aware wrapper for `::pdf_load_cmap()`."""
  42643. return _mupdf.pdf_load_cmap(file)
  42644. def pdf_load_colorspace(obj):
  42645. r"""Class-aware wrapper for `::pdf_load_colorspace()`."""
  42646. return _mupdf.pdf_load_colorspace(obj)
  42647. def pdf_load_compressed_inline_image(doc, dict, length, cstm, indexed, image):
  42648. r"""Class-aware wrapper for `::pdf_load_compressed_inline_image()`."""
  42649. return _mupdf.pdf_load_compressed_inline_image(doc, dict, length, cstm, indexed, image)
  42650. def pdf_load_compressed_stream(doc, num, worst_case):
  42651. r"""Class-aware wrapper for `::pdf_load_compressed_stream()`."""
  42652. return _mupdf.pdf_load_compressed_stream(doc, num, worst_case)
  42653. def pdf_load_default_colorspaces(doc, page):
  42654. r"""Class-aware wrapper for `::pdf_load_default_colorspaces()`."""
  42655. return _mupdf.pdf_load_default_colorspaces(doc, page)
  42656. def pdf_load_embedded_cmap(doc, ref):
  42657. r"""Class-aware wrapper for `::pdf_load_embedded_cmap()`."""
  42658. return _mupdf.pdf_load_embedded_cmap(doc, ref)
  42659. def pdf_load_embedded_file_contents(fs):
  42660. r"""Class-aware wrapper for `::pdf_load_embedded_file_contents()`."""
  42661. return _mupdf.pdf_load_embedded_file_contents(fs)
  42662. def pdf_load_encoding(estrings, encoding):
  42663. r"""
  42664. Class-aware wrapper for `::pdf_load_encoding()`.
  42665. This function has out-params. Python/C# wrappers look like:
  42666. `pdf_load_encoding(const char *encoding)` => const char *estrings
  42667. """
  42668. return _mupdf.pdf_load_encoding(estrings, encoding)
  42669. def pdf_load_field_name(field):
  42670. r"""Class-aware wrapper for `::pdf_load_field_name()`."""
  42671. return _mupdf.pdf_load_field_name(field)
  42672. def pdf_load_field_name2(field):
  42673. r"""Alternative to `pdf_load_field_name()` that returns a std::string."""
  42674. return _mupdf.pdf_load_field_name2(field)
  42675. def pdf_load_function(ref, _in, out):
  42676. r"""Class-aware wrapper for `::pdf_load_function()`."""
  42677. return _mupdf.pdf_load_function(ref, _in, out)
  42678. def pdf_load_image(doc, obj):
  42679. r"""Class-aware wrapper for `::pdf_load_image()`."""
  42680. return _mupdf.pdf_load_image(doc, obj)
  42681. def pdf_load_inline_image(doc, rdb, dict, file):
  42682. r"""Class-aware wrapper for `::pdf_load_inline_image()`."""
  42683. return _mupdf.pdf_load_inline_image(doc, rdb, dict, file)
  42684. def pdf_load_journal(doc, filename):
  42685. r"""Class-aware wrapper for `::pdf_load_journal()`."""
  42686. return _mupdf.pdf_load_journal(doc, filename)
  42687. def pdf_load_link_annots(arg_0, arg_1, annots, pagenum, page_ctm):
  42688. r"""Class-aware wrapper for `::pdf_load_link_annots()`."""
  42689. return _mupdf.pdf_load_link_annots(arg_0, arg_1, annots, pagenum, page_ctm)
  42690. def pdf_load_links(page):
  42691. r"""Class-aware wrapper for `::pdf_load_links()`."""
  42692. return _mupdf.pdf_load_links(page)
  42693. def pdf_load_name_tree(doc, which):
  42694. r"""Class-aware wrapper for `::pdf_load_name_tree()`."""
  42695. return _mupdf.pdf_load_name_tree(doc, which)
  42696. def pdf_load_object(doc, num):
  42697. r"""
  42698. Class-aware wrapper for `::pdf_load_object()`.
  42699. Load a given object.
  42700. This can cause xref reorganisations (solidifications etc) due to
  42701. repairs, so all held pdf_xref_entries should be considered
  42702. invalid after this call (other than the returned one).
  42703. """
  42704. return _mupdf.pdf_load_object(doc, num)
  42705. def pdf_load_outline(doc):
  42706. r"""Class-aware wrapper for `::pdf_load_outline()`."""
  42707. return _mupdf.pdf_load_outline(doc)
  42708. def pdf_load_page(doc, number):
  42709. r"""Class-aware wrapper for `::pdf_load_page()`."""
  42710. return _mupdf.pdf_load_page(doc, number)
  42711. def pdf_load_page_imp(doc, chapter, number):
  42712. r"""Class-aware wrapper for `::pdf_load_page_imp()`."""
  42713. return _mupdf.pdf_load_page_imp(doc, chapter, number)
  42714. def pdf_load_page_tree(doc):
  42715. r"""Class-aware wrapper for `::pdf_load_page_tree()`."""
  42716. return _mupdf.pdf_load_page_tree(doc)
  42717. def pdf_load_pattern(doc, obj):
  42718. r"""Class-aware wrapper for `::pdf_load_pattern()`."""
  42719. return _mupdf.pdf_load_pattern(doc, obj)
  42720. def pdf_load_raw_stream(ref):
  42721. r"""Class-aware wrapper for `::pdf_load_raw_stream()`."""
  42722. return _mupdf.pdf_load_raw_stream(ref)
  42723. def pdf_load_raw_stream_number(doc, num):
  42724. r"""Class-aware wrapper for `::pdf_load_raw_stream_number()`."""
  42725. return _mupdf.pdf_load_raw_stream_number(doc, num)
  42726. def pdf_load_shading(doc, obj):
  42727. r"""Class-aware wrapper for `::pdf_load_shading()`."""
  42728. return _mupdf.pdf_load_shading(doc, obj)
  42729. def pdf_load_stream(ref):
  42730. r"""Class-aware wrapper for `::pdf_load_stream()`."""
  42731. return _mupdf.pdf_load_stream(ref)
  42732. def pdf_load_stream_number(doc, num):
  42733. r"""Class-aware wrapper for `::pdf_load_stream_number()`."""
  42734. return _mupdf.pdf_load_stream_number(doc, num)
  42735. def pdf_load_stream_or_string_as_utf8(src):
  42736. r"""Class-aware wrapper for `::pdf_load_stream_or_string_as_utf8()`."""
  42737. return _mupdf.pdf_load_stream_or_string_as_utf8(src)
  42738. def pdf_load_system_cmap(name):
  42739. r"""Class-aware wrapper for `::pdf_load_system_cmap()`."""
  42740. return _mupdf.pdf_load_system_cmap(name)
  42741. def pdf_load_to_unicode(doc, font, strings, collection, cmapstm):
  42742. r"""
  42743. Class-aware wrapper for `::pdf_load_to_unicode()`.
  42744. This function has out-params. Python/C# wrappers look like:
  42745. `pdf_load_to_unicode(::pdf_document *doc, ::pdf_font_desc *font, char *collection, ::pdf_obj *cmapstm)` => const char *strings
  42746. """
  42747. return _mupdf.pdf_load_to_unicode(doc, font, strings, collection, cmapstm)
  42748. def pdf_load_type3_glyphs(doc, fontdesc):
  42749. r"""Class-aware wrapper for `::pdf_load_type3_glyphs()`."""
  42750. return _mupdf.pdf_load_type3_glyphs(doc, fontdesc)
  42751. def pdf_load_unencrypted_object(doc, num):
  42752. r"""Class-aware wrapper for `::pdf_load_unencrypted_object()`."""
  42753. return _mupdf.pdf_load_unencrypted_object(doc, num)
  42754. def pdf_lookup_cmap(cmap, cpt):
  42755. r"""Class-aware wrapper for `::pdf_lookup_cmap()`."""
  42756. return _mupdf.pdf_lookup_cmap(cmap, cpt)
  42757. def pdf_lookup_cmap_full(cmap, cpt, out):
  42758. r"""
  42759. Class-aware wrapper for `::pdf_lookup_cmap_full()`.
  42760. This function has out-params. Python/C# wrappers look like:
  42761. `pdf_lookup_cmap_full(::pdf_cmap *cmap, unsigned int cpt)` => `(int, int out)`
  42762. """
  42763. return _mupdf.pdf_lookup_cmap_full(cmap, cpt, out)
  42764. def pdf_lookup_dest(doc, needle):
  42765. r"""Class-aware wrapper for `::pdf_lookup_dest()`."""
  42766. return _mupdf.pdf_lookup_dest(doc, needle)
  42767. def pdf_lookup_field(form, name):
  42768. r"""Class-aware wrapper for `::pdf_lookup_field()`."""
  42769. return _mupdf.pdf_lookup_field(form, name)
  42770. def pdf_lookup_metadata(doc, key, ptr, size):
  42771. r"""Class-aware wrapper for `::pdf_lookup_metadata()`."""
  42772. return _mupdf.pdf_lookup_metadata(doc, key, ptr, size)
  42773. def pdf_lookup_metadata2(doc, key):
  42774. r"""
  42775. Class-aware wrapper for `::pdf_lookup_metadata2()`.
  42776. C++ alternative to `pdf_lookup_metadata()` that returns a `std::string`
  42777. or calls `fz_throw()` if not found.
  42778. """
  42779. return _mupdf.pdf_lookup_metadata2(doc, key)
  42780. def pdf_lookup_name(doc, which, needle):
  42781. r"""Class-aware wrapper for `::pdf_lookup_name()`."""
  42782. return _mupdf.pdf_lookup_name(doc, which, needle)
  42783. def pdf_lookup_number(root, needle):
  42784. r"""Class-aware wrapper for `::pdf_lookup_number()`."""
  42785. return _mupdf.pdf_lookup_number(root, needle)
  42786. def pdf_lookup_page_loc(doc, needle, parentp, indexp):
  42787. r"""
  42788. Class-aware wrapper for `::pdf_lookup_page_loc()`.
  42789. This function has out-params. Python/C# wrappers look like:
  42790. `pdf_lookup_page_loc(::pdf_document *doc, int needle, ::pdf_obj **parentp)` => `(pdf_obj *, int indexp)`
  42791. """
  42792. return _mupdf.pdf_lookup_page_loc(doc, needle, parentp, indexp)
  42793. def pdf_lookup_page_number(doc, pageobj):
  42794. r"""Class-aware wrapper for `::pdf_lookup_page_number()`."""
  42795. return _mupdf.pdf_lookup_page_number(doc, pageobj)
  42796. def pdf_lookup_page_obj(doc, needle):
  42797. r"""Class-aware wrapper for `::pdf_lookup_page_obj()`."""
  42798. return _mupdf.pdf_lookup_page_obj(doc, needle)
  42799. def pdf_lookup_resource(stack, type, name):
  42800. r"""Class-aware wrapper for `::pdf_lookup_resource()`."""
  42801. return _mupdf.pdf_lookup_resource(stack, type, name)
  42802. def pdf_lookup_substitute_font(mono, serif, bold, italic, len):
  42803. r"""
  42804. Class-aware wrapper for `::pdf_lookup_substitute_font()`.
  42805. This function has out-params. Python/C# wrappers look like:
  42806. `pdf_lookup_substitute_font(int mono, int serif, int bold, int italic)` => `(const unsigned char *, int len)`
  42807. """
  42808. return _mupdf.pdf_lookup_substitute_font(mono, serif, bold, italic, len)
  42809. def pdf_map_one_to_many(cmap, one, many, len):
  42810. r"""
  42811. Class-aware wrapper for `::pdf_map_one_to_many()`.
  42812. This function has out-params. Python/C# wrappers look like:
  42813. `pdf_map_one_to_many(::pdf_cmap *cmap, unsigned int one, size_t len)` => int many
  42814. """
  42815. return _mupdf.pdf_map_one_to_many(cmap, one, many, len)
  42816. def pdf_map_range_to_range(cmap, srclo, srchi, dstlo):
  42817. r"""Class-aware wrapper for `::pdf_map_range_to_range()`."""
  42818. return _mupdf.pdf_map_range_to_range(cmap, srclo, srchi, dstlo)
  42819. def pdf_mark_bits_reset(marks):
  42820. r"""Class-aware wrapper for `::pdf_mark_bits_reset()`."""
  42821. return _mupdf.pdf_mark_bits_reset(marks)
  42822. def pdf_mark_bits_set(marks, obj):
  42823. r"""Class-aware wrapper for `::pdf_mark_bits_set()`."""
  42824. return _mupdf.pdf_mark_bits_set(marks, obj)
  42825. def pdf_mark_list_check(list, obj):
  42826. r"""Class-aware wrapper for `::pdf_mark_list_check()`."""
  42827. return _mupdf.pdf_mark_list_check(list, obj)
  42828. def pdf_mark_list_free(list):
  42829. r"""Class-aware wrapper for `::pdf_mark_list_free()`."""
  42830. return _mupdf.pdf_mark_list_free(list)
  42831. def pdf_mark_list_init(list):
  42832. r"""Class-aware wrapper for `::pdf_mark_list_init()`."""
  42833. return _mupdf.pdf_mark_list_init(list)
  42834. def pdf_mark_list_pop(list):
  42835. r"""Class-aware wrapper for `::pdf_mark_list_pop()`."""
  42836. return _mupdf.pdf_mark_list_pop(list)
  42837. def pdf_mark_list_push(list, obj):
  42838. r"""Class-aware wrapper for `::pdf_mark_list_push()`."""
  42839. return _mupdf.pdf_mark_list_push(list, obj)
  42840. def pdf_mark_obj(obj):
  42841. r"""Class-aware wrapper for `::pdf_mark_obj()`."""
  42842. return _mupdf.pdf_mark_obj(obj)
  42843. def pdf_mark_xref(doc):
  42844. r"""Class-aware wrapper for `::pdf_mark_xref()`."""
  42845. return _mupdf.pdf_mark_xref(doc)
  42846. def pdf_metadata(doc):
  42847. r"""Class-aware wrapper for `::pdf_metadata()`."""
  42848. return _mupdf.pdf_metadata(doc)
  42849. def pdf_minimize_document(doc):
  42850. r"""Class-aware wrapper for `::pdf_minimize_document()`."""
  42851. return _mupdf.pdf_minimize_document(doc)
  42852. def pdf_name_eq(a, b):
  42853. r"""Class-aware wrapper for `::pdf_name_eq()`."""
  42854. return _mupdf.pdf_name_eq(a, b)
  42855. def pdf_name_from_intent(intent):
  42856. r"""Class-aware wrapper for `::pdf_name_from_intent()`."""
  42857. return _mupdf.pdf_name_from_intent(intent)
  42858. def pdf_name_from_line_ending(end):
  42859. r"""Class-aware wrapper for `::pdf_name_from_line_ending()`."""
  42860. return _mupdf.pdf_name_from_line_ending(end)
  42861. def pdf_needs_password(doc):
  42862. r"""Class-aware wrapper for `::pdf_needs_password()`."""
  42863. return _mupdf.pdf_needs_password(doc)
  42864. def pdf_new_action_from_link(doc, uri):
  42865. r"""Class-aware wrapper for `::pdf_new_action_from_link()`."""
  42866. return _mupdf.pdf_new_action_from_link(doc, uri)
  42867. def pdf_new_array(doc, initialcap):
  42868. r"""Class-aware wrapper for `::pdf_new_array()`."""
  42869. return _mupdf.pdf_new_array(doc, initialcap)
  42870. def pdf_new_buffer_processor(buffer, ahxencode, newlines):
  42871. r"""Class-aware wrapper for `::pdf_new_buffer_processor()`."""
  42872. return _mupdf.pdf_new_buffer_processor(buffer, ahxencode, newlines)
  42873. def pdf_new_cmap():
  42874. r"""Class-aware wrapper for `::pdf_new_cmap()`."""
  42875. return _mupdf.pdf_new_cmap()
  42876. def pdf_new_color_filter(doc, chain, struct_parents, transform, options, copts):
  42877. r"""Class-aware wrapper for `::pdf_new_color_filter()`."""
  42878. return _mupdf.pdf_new_color_filter(doc, chain, struct_parents, transform, options, copts)
  42879. def pdf_new_date(doc, time):
  42880. r"""Class-aware wrapper for `::pdf_new_date()`."""
  42881. return _mupdf.pdf_new_date(doc, time)
  42882. def pdf_new_dest_from_link(doc, uri, is_remote):
  42883. r"""Class-aware wrapper for `::pdf_new_dest_from_link()`."""
  42884. return _mupdf.pdf_new_dest_from_link(doc, uri, is_remote)
  42885. def pdf_new_dict(doc, initialcap):
  42886. r"""Class-aware wrapper for `::pdf_new_dict()`."""
  42887. return _mupdf.pdf_new_dict(doc, initialcap)
  42888. def pdf_new_display_list_from_annot(annot):
  42889. r"""Class-aware wrapper for `::pdf_new_display_list_from_annot()`."""
  42890. return _mupdf.pdf_new_display_list_from_annot(annot)
  42891. def pdf_new_graft_map(dst):
  42892. r"""Class-aware wrapper for `::pdf_new_graft_map()`."""
  42893. return _mupdf.pdf_new_graft_map(dst)
  42894. def pdf_new_identity_cmap(wmode, bytes):
  42895. r"""Class-aware wrapper for `::pdf_new_identity_cmap()`."""
  42896. return _mupdf.pdf_new_identity_cmap(wmode, bytes)
  42897. def pdf_new_indirect(doc, num, gen):
  42898. r"""Class-aware wrapper for `::pdf_new_indirect()`."""
  42899. return _mupdf.pdf_new_indirect(doc, num, gen)
  42900. def pdf_new_int(i):
  42901. r"""Class-aware wrapper for `::pdf_new_int()`."""
  42902. return _mupdf.pdf_new_int(i)
  42903. def pdf_new_link(page, rect, uri, obj):
  42904. r"""Class-aware wrapper for `::pdf_new_link()`."""
  42905. return _mupdf.pdf_new_link(page, rect, uri, obj)
  42906. def pdf_new_matrix(doc, mtx):
  42907. r"""Class-aware wrapper for `::pdf_new_matrix()`."""
  42908. return _mupdf.pdf_new_matrix(doc, mtx)
  42909. def pdf_new_name(str):
  42910. r"""Class-aware wrapper for `::pdf_new_name()`."""
  42911. return _mupdf.pdf_new_name(str)
  42912. def pdf_new_output_processor(out, ahxencode, newlines):
  42913. r"""Class-aware wrapper for `::pdf_new_output_processor()`."""
  42914. return _mupdf.pdf_new_output_processor(out, ahxencode, newlines)
  42915. def pdf_new_pdf_device(doc, topctm, resources, contents):
  42916. r"""Class-aware wrapper for `::pdf_new_pdf_device()`."""
  42917. return _mupdf.pdf_new_pdf_device(doc, topctm, resources, contents)
  42918. def pdf_new_pixmap_from_annot(annot, ctm, cs, seps, alpha):
  42919. r"""Class-aware wrapper for `::pdf_new_pixmap_from_annot()`."""
  42920. return _mupdf.pdf_new_pixmap_from_annot(annot, ctm, cs, seps, alpha)
  42921. def pdf_new_pixmap_from_page_contents_with_separations_and_usage(page, ctm, cs, seps, alpha, usage, box):
  42922. r"""Class-aware wrapper for `::pdf_new_pixmap_from_page_contents_with_separations_and_usage()`."""
  42923. return _mupdf.pdf_new_pixmap_from_page_contents_with_separations_and_usage(page, ctm, cs, seps, alpha, usage, box)
  42924. def pdf_new_pixmap_from_page_contents_with_usage(page, ctm, cs, alpha, usage, box):
  42925. r"""Class-aware wrapper for `::pdf_new_pixmap_from_page_contents_with_usage()`."""
  42926. return _mupdf.pdf_new_pixmap_from_page_contents_with_usage(page, ctm, cs, alpha, usage, box)
  42927. def pdf_new_pixmap_from_page_with_separations_and_usage(page, ctm, cs, seps, alpha, usage, box):
  42928. r"""Class-aware wrapper for `::pdf_new_pixmap_from_page_with_separations_and_usage()`."""
  42929. return _mupdf.pdf_new_pixmap_from_page_with_separations_and_usage(page, ctm, cs, seps, alpha, usage, box)
  42930. def pdf_new_pixmap_from_page_with_usage(page, ctm, cs, alpha, usage, box):
  42931. r"""Class-aware wrapper for `::pdf_new_pixmap_from_page_with_usage()`."""
  42932. return _mupdf.pdf_new_pixmap_from_page_with_usage(page, ctm, cs, alpha, usage, box)
  42933. def pdf_new_point(doc, point):
  42934. r"""Class-aware wrapper for `::pdf_new_point()`."""
  42935. return _mupdf.pdf_new_point(doc, point)
  42936. def pdf_new_processor(size):
  42937. r"""Class-aware wrapper for `::pdf_new_processor()`."""
  42938. return _mupdf.pdf_new_processor(size)
  42939. def pdf_new_real(f):
  42940. r"""Class-aware wrapper for `::pdf_new_real()`."""
  42941. return _mupdf.pdf_new_real(f)
  42942. def pdf_new_rect(doc, rect):
  42943. r"""Class-aware wrapper for `::pdf_new_rect()`."""
  42944. return _mupdf.pdf_new_rect(doc, rect)
  42945. def pdf_new_run_processor(doc, dev, ctm, struct_parent, usage, gstate, default_cs, cookie, fill_gstate, stroke_gstate):
  42946. r"""Class-aware wrapper for `::pdf_new_run_processor()`."""
  42947. return _mupdf.pdf_new_run_processor(doc, dev, ctm, struct_parent, usage, gstate, default_cs, cookie, fill_gstate, stroke_gstate)
  42948. def pdf_new_sanitize_filter(doc, chain, struct_parents, transform, options, sopts):
  42949. r"""Class-aware wrapper for `::pdf_new_sanitize_filter()`."""
  42950. return _mupdf.pdf_new_sanitize_filter(doc, chain, struct_parents, transform, options, sopts)
  42951. def pdf_new_string(str, len):
  42952. r"""Class-aware wrapper for `::pdf_new_string()`."""
  42953. return _mupdf.pdf_new_string(str, len)
  42954. def pdf_new_text_string(s):
  42955. r"""Class-aware wrapper for `::pdf_new_text_string()`."""
  42956. return _mupdf.pdf_new_text_string(s)
  42957. def pdf_new_uri_from_explicit_dest(dest):
  42958. r"""Class-aware wrapper for `::pdf_new_uri_from_explicit_dest()`."""
  42959. return _mupdf.pdf_new_uri_from_explicit_dest(dest)
  42960. def pdf_new_uri_from_path_and_explicit_dest(path, dest):
  42961. r"""Class-aware wrapper for `::pdf_new_uri_from_path_and_explicit_dest()`."""
  42962. return _mupdf.pdf_new_uri_from_path_and_explicit_dest(path, dest)
  42963. def pdf_new_uri_from_path_and_named_dest(path, name):
  42964. r"""Class-aware wrapper for `::pdf_new_uri_from_path_and_named_dest()`."""
  42965. return _mupdf.pdf_new_uri_from_path_and_named_dest(path, name)
  42966. def pdf_new_utf8_from_pdf_stream_obj(src):
  42967. r"""Class-aware wrapper for `::pdf_new_utf8_from_pdf_stream_obj()`."""
  42968. return _mupdf.pdf_new_utf8_from_pdf_stream_obj(src)
  42969. def pdf_new_utf8_from_pdf_string(srcptr, srclen):
  42970. r"""Class-aware wrapper for `::pdf_new_utf8_from_pdf_string()`."""
  42971. return _mupdf.pdf_new_utf8_from_pdf_string(srcptr, srclen)
  42972. def pdf_new_utf8_from_pdf_string_obj(src):
  42973. r"""Class-aware wrapper for `::pdf_new_utf8_from_pdf_string_obj()`."""
  42974. return _mupdf.pdf_new_utf8_from_pdf_string_obj(src)
  42975. def pdf_new_xobject(doc, bbox, matrix, res, buffer):
  42976. r"""Class-aware wrapper for `::pdf_new_xobject()`."""
  42977. return _mupdf.pdf_new_xobject(doc, bbox, matrix, res, buffer)
  42978. def pdf_next_annot(annot):
  42979. r"""Class-aware wrapper for `::pdf_next_annot()`."""
  42980. return _mupdf.pdf_next_annot(annot)
  42981. def pdf_next_widget(previous):
  42982. r"""Class-aware wrapper for `::pdf_next_widget()`."""
  42983. return _mupdf.pdf_next_widget(previous)
  42984. def pdf_nuke_annots(page):
  42985. r"""Class-aware wrapper for `::pdf_nuke_annots()`."""
  42986. return _mupdf.pdf_nuke_annots(page)
  42987. def pdf_nuke_links(page):
  42988. r"""Class-aware wrapper for `::pdf_nuke_links()`."""
  42989. return _mupdf.pdf_nuke_links(page)
  42990. def pdf_nuke_page(page):
  42991. r"""Class-aware wrapper for `::pdf_nuke_page()`."""
  42992. return _mupdf.pdf_nuke_page(page)
  42993. def pdf_obj_is_dirty(obj):
  42994. r"""Class-aware wrapper for `::pdf_obj_is_dirty()`."""
  42995. return _mupdf.pdf_obj_is_dirty(obj)
  42996. def pdf_obj_is_incremental(obj):
  42997. r"""Class-aware wrapper for `::pdf_obj_is_incremental()`."""
  42998. return _mupdf.pdf_obj_is_incremental(obj)
  42999. def pdf_obj_marked(obj):
  43000. r"""Class-aware wrapper for `::pdf_obj_marked()`."""
  43001. return _mupdf.pdf_obj_marked(obj)
  43002. def pdf_obj_memo(obj, bit, memo):
  43003. r"""
  43004. Class-aware wrapper for `::pdf_obj_memo()`.
  43005. This function has out-params. Python/C# wrappers look like:
  43006. `pdf_obj_memo(::pdf_obj *obj, int bit)` => `(int, int memo)`
  43007. """
  43008. return _mupdf.pdf_obj_memo(obj, bit, memo)
  43009. def pdf_obj_num_is_stream(doc, num):
  43010. r"""Class-aware wrapper for `::pdf_obj_num_is_stream()`."""
  43011. return _mupdf.pdf_obj_num_is_stream(doc, num)
  43012. def pdf_obj_parent_num(obj):
  43013. r"""Class-aware wrapper for `::pdf_obj_parent_num()`."""
  43014. return _mupdf.pdf_obj_parent_num(obj)
  43015. def pdf_obj_refs(ref):
  43016. r"""Class-aware wrapper for `::pdf_obj_refs()`."""
  43017. return _mupdf.pdf_obj_refs(ref)
  43018. def pdf_objcmp(a, b):
  43019. r"""Class-aware wrapper for `::pdf_objcmp()`."""
  43020. return _mupdf.pdf_objcmp(a, b)
  43021. def pdf_objcmp_deep(a, b):
  43022. r"""Class-aware wrapper for `::pdf_objcmp_deep()`."""
  43023. return _mupdf.pdf_objcmp_deep(a, b)
  43024. def pdf_objcmp_resolve(a, b):
  43025. r"""Class-aware wrapper for `::pdf_objcmp_resolve()`."""
  43026. return _mupdf.pdf_objcmp_resolve(a, b)
  43027. def pdf_object_exists(doc, num):
  43028. r"""Class-aware wrapper for `::pdf_object_exists()`."""
  43029. return _mupdf.pdf_object_exists(doc, num)
  43030. def pdf_open_contents_stream(doc, obj):
  43031. r"""Class-aware wrapper for `::pdf_open_contents_stream()`."""
  43032. return _mupdf.pdf_open_contents_stream(doc, obj)
  43033. def pdf_open_crypt(chain, crypt, num, gen):
  43034. r"""Class-aware wrapper for `::pdf_open_crypt()`."""
  43035. return _mupdf.pdf_open_crypt(chain, crypt, num, gen)
  43036. def pdf_open_crypt_with_filter(chain, crypt, name, num, gen):
  43037. r"""Class-aware wrapper for `::pdf_open_crypt_with_filter()`."""
  43038. return _mupdf.pdf_open_crypt_with_filter(chain, crypt, name, num, gen)
  43039. def pdf_open_document(filename):
  43040. r"""Class-aware wrapper for `::pdf_open_document()`."""
  43041. return _mupdf.pdf_open_document(filename)
  43042. def pdf_open_document_with_stream(file):
  43043. r"""Class-aware wrapper for `::pdf_open_document_with_stream()`."""
  43044. return _mupdf.pdf_open_document_with_stream(file)
  43045. def pdf_open_inline_stream(doc, stmobj, length, chain, params):
  43046. r"""Class-aware wrapper for `::pdf_open_inline_stream()`."""
  43047. return _mupdf.pdf_open_inline_stream(doc, stmobj, length, chain, params)
  43048. def pdf_open_raw_stream(ref):
  43049. r"""Class-aware wrapper for `::pdf_open_raw_stream()`."""
  43050. return _mupdf.pdf_open_raw_stream(ref)
  43051. def pdf_open_raw_stream_number(doc, num):
  43052. r"""Class-aware wrapper for `::pdf_open_raw_stream_number()`."""
  43053. return _mupdf.pdf_open_raw_stream_number(doc, num)
  43054. def pdf_open_stream(ref):
  43055. r"""Class-aware wrapper for `::pdf_open_stream()`."""
  43056. return _mupdf.pdf_open_stream(ref)
  43057. def pdf_open_stream_number(doc, num):
  43058. r"""Class-aware wrapper for `::pdf_open_stream_number()`."""
  43059. return _mupdf.pdf_open_stream_number(doc, num)
  43060. def pdf_open_stream_with_offset(doc, num, dict, stm_ofs):
  43061. r"""Class-aware wrapper for `::pdf_open_stream_with_offset()`."""
  43062. return _mupdf.pdf_open_stream_with_offset(doc, num, dict, stm_ofs)
  43063. def pdf_page_associated_file(page, idx):
  43064. r"""Class-aware wrapper for `::pdf_page_associated_file()`."""
  43065. return _mupdf.pdf_page_associated_file(page, idx)
  43066. def pdf_page_contents(page):
  43067. r"""Class-aware wrapper for `::pdf_page_contents()`."""
  43068. return _mupdf.pdf_page_contents(page)
  43069. def pdf_page_event_close(page):
  43070. r"""Class-aware wrapper for `::pdf_page_event_close()`."""
  43071. return _mupdf.pdf_page_event_close(page)
  43072. def pdf_page_event_open(page):
  43073. r"""Class-aware wrapper for `::pdf_page_event_open()`."""
  43074. return _mupdf.pdf_page_event_open(page)
  43075. def pdf_page_from_fz_page(ptr):
  43076. r"""Class-aware wrapper for `::pdf_page_from_fz_page()`."""
  43077. return _mupdf.pdf_page_from_fz_page(ptr)
  43078. def pdf_page_group(page):
  43079. r"""Class-aware wrapper for `::pdf_page_group()`."""
  43080. return _mupdf.pdf_page_group(page)
  43081. def pdf_page_has_transparency(page):
  43082. r"""Class-aware wrapper for `::pdf_page_has_transparency()`."""
  43083. return _mupdf.pdf_page_has_transparency(page)
  43084. def pdf_page_label(doc, page, buf, size):
  43085. r"""Class-aware wrapper for `::pdf_page_label()`."""
  43086. return _mupdf.pdf_page_label(doc, page, buf, size)
  43087. def pdf_page_label_imp(doc, chapter, page, buf, size):
  43088. r"""Class-aware wrapper for `::pdf_page_label_imp()`."""
  43089. return _mupdf.pdf_page_label_imp(doc, chapter, page, buf, size)
  43090. def pdf_page_obj_transform(pageobj, outbox, outctm):
  43091. r"""Class-aware wrapper for `::pdf_page_obj_transform()`."""
  43092. return _mupdf.pdf_page_obj_transform(pageobj, outbox, outctm)
  43093. def pdf_page_obj_transform_box(pageobj, outbox, out, box):
  43094. r"""Class-aware wrapper for `::pdf_page_obj_transform_box()`."""
  43095. return _mupdf.pdf_page_obj_transform_box(pageobj, outbox, out, box)
  43096. def pdf_page_presentation(page, transition, duration):
  43097. r"""
  43098. Class-aware wrapper for `::pdf_page_presentation()`.
  43099. This function has out-params. Python/C# wrappers look like:
  43100. `pdf_page_presentation(::pdf_page *page, ::fz_transition *transition)` => `(fz_transition *, float duration)`
  43101. """
  43102. return _mupdf.pdf_page_presentation(page, transition, duration)
  43103. def pdf_page_resources(page):
  43104. r"""Class-aware wrapper for `::pdf_page_resources()`."""
  43105. return _mupdf.pdf_page_resources(page)
  43106. def pdf_page_separations(page):
  43107. r"""Class-aware wrapper for `::pdf_page_separations()`."""
  43108. return _mupdf.pdf_page_separations(page)
  43109. def pdf_page_transform(page, mediabox, ctm):
  43110. r"""Class-aware wrapper for `::pdf_page_transform()`."""
  43111. return _mupdf.pdf_page_transform(page, mediabox, ctm)
  43112. def pdf_page_transform_box(page, mediabox, ctm, box):
  43113. r"""Class-aware wrapper for `::pdf_page_transform_box()`."""
  43114. return _mupdf.pdf_page_transform_box(page, mediabox, ctm, box)
  43115. def pdf_page_write(doc, mediabox, presources, pcontents):
  43116. r"""
  43117. Class-aware wrapper for `::pdf_page_write()`.
  43118. This function has out-params. Python/C# wrappers look like:
  43119. `pdf_page_write(::pdf_document *doc, ::fz_rect mediabox, ::pdf_obj **presources, ::fz_buffer **pcontents)` => `(fz_device *)`
  43120. """
  43121. return _mupdf.pdf_page_write(doc, mediabox, presources, pcontents)
  43122. def pdf_parse_array(doc, f, buf):
  43123. r"""Class-aware wrapper for `::pdf_parse_array()`."""
  43124. return _mupdf.pdf_parse_array(doc, f, buf)
  43125. def pdf_parse_date(s):
  43126. r"""Class-aware wrapper for `::pdf_parse_date()`."""
  43127. return _mupdf.pdf_parse_date(s)
  43128. def pdf_parse_default_appearance(da, font, size, n, color):
  43129. r"""
  43130. Class-aware wrapper for `::pdf_parse_default_appearance()`.
  43131. This function has out-params. Python/C# wrappers look like:
  43132. `pdf_parse_default_appearance(const char *da, float color[4])` => `(const char *font, float size, int n)`
  43133. """
  43134. return _mupdf.pdf_parse_default_appearance(da, font, size, n, color)
  43135. def pdf_parse_default_appearance_unmapped(da, font_name, font_name_len, size, n, color):
  43136. r"""
  43137. Class-aware wrapper for `::pdf_parse_default_appearance_unmapped()`.
  43138. This function has out-params. Python/C# wrappers look like:
  43139. `pdf_parse_default_appearance_unmapped(const char *da, char *font_name, int font_name_len, float color[4])` => `(float size, int n)`
  43140. """
  43141. return _mupdf.pdf_parse_default_appearance_unmapped(da, font_name, font_name_len, size, n, color)
  43142. def pdf_parse_dict(doc, f, buf):
  43143. r"""Class-aware wrapper for `::pdf_parse_dict()`."""
  43144. return _mupdf.pdf_parse_dict(doc, f, buf)
  43145. def pdf_parse_ind_obj(doc, f, num, gen, stm_ofs, try_repair):
  43146. r"""
  43147. Class-aware wrapper for `::pdf_parse_ind_obj()`.
  43148. This function has out-params. Python/C# wrappers look like:
  43149. `pdf_parse_ind_obj(::pdf_document *doc, ::fz_stream *f)` => `(pdf_obj *, int num, int gen, int64_t stm_ofs, int try_repair)`
  43150. """
  43151. return _mupdf.pdf_parse_ind_obj(doc, f, num, gen, stm_ofs, try_repair)
  43152. def pdf_parse_journal_obj(doc, stm, onum, ostm, newobj):
  43153. r"""
  43154. Class-aware wrapper for `::pdf_parse_journal_obj()`.
  43155. This function has out-params. Python/C# wrappers look like:
  43156. `pdf_parse_journal_obj(::pdf_document *doc, ::fz_stream *stm, ::fz_buffer **ostm)` => `(pdf_obj *, int onum, int newobj)`
  43157. """
  43158. return _mupdf.pdf_parse_journal_obj(doc, stm, onum, ostm, newobj)
  43159. def pdf_parse_stm_obj(doc, f, buf):
  43160. r"""Class-aware wrapper for `::pdf_parse_stm_obj()`."""
  43161. return _mupdf.pdf_parse_stm_obj(doc, f, buf)
  43162. def pdf_parse_write_options(opts, args):
  43163. r"""Class-aware wrapper for `::pdf_parse_write_options()`."""
  43164. return _mupdf.pdf_parse_write_options(opts, args)
  43165. def pdf_pin_document(obj):
  43166. r"""Class-aware wrapper for `::pdf_pin_document()`."""
  43167. return _mupdf.pdf_pin_document(obj)
  43168. def pdf_preview_signature_as_display_list(w, h, lang, signer, appearance_flags, graphic, reason, location):
  43169. r"""Class-aware wrapper for `::pdf_preview_signature_as_display_list()`."""
  43170. return _mupdf.pdf_preview_signature_as_display_list(w, h, lang, signer, appearance_flags, graphic, reason, location)
  43171. def pdf_preview_signature_as_pixmap(w, h, lang, signer, appearance_flags, graphic, reason, location):
  43172. r"""Class-aware wrapper for `::pdf_preview_signature_as_pixmap()`."""
  43173. return _mupdf.pdf_preview_signature_as_pixmap(w, h, lang, signer, appearance_flags, graphic, reason, location)
  43174. def pdf_print_crypt(out, crypt):
  43175. r"""Class-aware wrapper for `::pdf_print_crypt()`."""
  43176. return _mupdf.pdf_print_crypt(out, crypt)
  43177. def pdf_print_default_appearance(buf, nbuf, font, size, n, color):
  43178. r"""Class-aware wrapper for `::pdf_print_default_appearance()`."""
  43179. return _mupdf.pdf_print_default_appearance(buf, nbuf, font, size, n, color)
  43180. def pdf_print_encrypted_obj(out, obj, tight, ascii, crypt, num, gen, sep):
  43181. r"""
  43182. Class-aware wrapper for `::pdf_print_encrypted_obj()`.
  43183. This function has out-params. Python/C# wrappers look like:
  43184. `pdf_print_encrypted_obj(::fz_output *out, ::pdf_obj *obj, int tight, int ascii, ::pdf_crypt *crypt, int num, int gen)` => int sep
  43185. """
  43186. return _mupdf.pdf_print_encrypted_obj(out, obj, tight, ascii, crypt, num, gen, sep)
  43187. def pdf_print_font(out, fontdesc):
  43188. r"""Class-aware wrapper for `::pdf_print_font()`."""
  43189. return _mupdf.pdf_print_font(out, fontdesc)
  43190. def pdf_print_obj(out, obj, tight, ascii):
  43191. r"""Class-aware wrapper for `::pdf_print_obj()`."""
  43192. return _mupdf.pdf_print_obj(out, obj, tight, ascii)
  43193. def pdf_process_annot(proc, annot, cookie):
  43194. r"""Class-aware wrapper for `::pdf_process_annot()`."""
  43195. return _mupdf.pdf_process_annot(proc, annot, cookie)
  43196. def pdf_process_contents(proc, doc, res, stm, cookie, out_res):
  43197. r"""
  43198. Class-aware wrapper for `::pdf_process_contents()`.
  43199. This function has out-params. Python/C# wrappers look like:
  43200. `pdf_process_contents(::pdf_processor *proc, ::pdf_document *doc, ::pdf_obj *res, ::pdf_obj *stm, ::fz_cookie *cookie, ::pdf_obj **out_res)` =>
  43201. """
  43202. return _mupdf.pdf_process_contents(proc, doc, res, stm, cookie, out_res)
  43203. def pdf_process_glyph(proc, doc, resources, contents):
  43204. r"""Class-aware wrapper for `::pdf_process_glyph()`."""
  43205. return _mupdf.pdf_process_glyph(proc, doc, resources, contents)
  43206. def pdf_process_raw_contents(proc, doc, stmobj, cookie):
  43207. r"""Class-aware wrapper for `::pdf_process_raw_contents()`."""
  43208. return _mupdf.pdf_process_raw_contents(proc, doc, stmobj, cookie)
  43209. def pdf_processor_pop_resources(proc):
  43210. r"""Class-aware wrapper for `::pdf_processor_pop_resources()`."""
  43211. return _mupdf.pdf_processor_pop_resources(proc)
  43212. def pdf_processor_push_resources(proc, res):
  43213. r"""Class-aware wrapper for `::pdf_processor_push_resources()`."""
  43214. return _mupdf.pdf_processor_push_resources(proc, res)
  43215. def pdf_progressive_advance(doc, pagenum):
  43216. r"""Class-aware wrapper for `::pdf_progressive_advance()`."""
  43217. return _mupdf.pdf_progressive_advance(doc, pagenum)
  43218. def pdf_purge_local_resources(doc):
  43219. r"""Class-aware wrapper for `::pdf_purge_local_resources()`."""
  43220. return _mupdf.pdf_purge_local_resources(doc)
  43221. def pdf_purge_locals_from_store(doc):
  43222. r"""Class-aware wrapper for `::pdf_purge_locals_from_store()`."""
  43223. return _mupdf.pdf_purge_locals_from_store(doc)
  43224. def pdf_purge_object_from_store(doc, num):
  43225. r"""Class-aware wrapper for `::pdf_purge_object_from_store()`."""
  43226. return _mupdf.pdf_purge_object_from_store(doc, num)
  43227. def pdf_read_journal(doc, stm):
  43228. r"""Class-aware wrapper for `::pdf_read_journal()`."""
  43229. return _mupdf.pdf_read_journal(doc, stm)
  43230. def pdf_rearrange_pages(doc, count, pages, structure):
  43231. r"""Class-aware wrapper for `::pdf_rearrange_pages()`."""
  43232. return _mupdf.pdf_rearrange_pages(doc, count, pages, structure)
  43233. def pdf_rearrange_pages2(doc, pages, structure):
  43234. r"""Class-aware wrapper for `::pdf_rearrange_pages2()`. Swig-friendly wrapper for pdf_rearrange_pages()."""
  43235. return _mupdf.pdf_rearrange_pages2(doc, pages, structure)
  43236. def pdf_recolor_page(doc, pagenum, opts):
  43237. r"""Class-aware wrapper for `::pdf_recolor_page()`."""
  43238. return _mupdf.pdf_recolor_page(doc, pagenum, opts)
  43239. def pdf_recolor_shade(shade, reshade, opaque):
  43240. r"""
  43241. Class-aware wrapper for `::pdf_recolor_shade()`.
  43242. Recolor a shade.
  43243. """
  43244. return _mupdf.pdf_recolor_shade(shade, reshade, opaque)
  43245. def pdf_redact_page(doc, page, opts):
  43246. r"""Class-aware wrapper for `::pdf_redact_page()`."""
  43247. return _mupdf.pdf_redact_page(doc, page, opts)
  43248. def pdf_redo(doc):
  43249. r"""Class-aware wrapper for `::pdf_redo()`."""
  43250. return _mupdf.pdf_redo(doc)
  43251. def pdf_remove_item(drop, key):
  43252. r"""Class-aware wrapper for `::pdf_remove_item()`."""
  43253. return _mupdf.pdf_remove_item(drop, key)
  43254. def pdf_remove_output_intents(doc):
  43255. r"""Class-aware wrapper for `::pdf_remove_output_intents()`."""
  43256. return _mupdf.pdf_remove_output_intents(doc)
  43257. def pdf_repair_obj(doc, buf, stmofsp, stmlenp, encrypt, id, page, tmpofs, root):
  43258. r"""
  43259. Class-aware wrapper for `::pdf_repair_obj()`.
  43260. This function has out-params. Python/C# wrappers look like:
  43261. `pdf_repair_obj(::pdf_document *doc, ::pdf_lexbuf *buf, ::pdf_obj **encrypt, ::pdf_obj **id, ::pdf_obj **page, ::pdf_obj **root)` => `(int, int64_t stmofsp, int64_t stmlenp, int64_t tmpofs)`
  43262. """
  43263. return _mupdf.pdf_repair_obj(doc, buf, stmofsp, stmlenp, encrypt, id, page, tmpofs, root)
  43264. def pdf_repair_xref(doc):
  43265. r"""Class-aware wrapper for `::pdf_repair_xref()`."""
  43266. return _mupdf.pdf_repair_xref(doc)
  43267. def pdf_replace_xref(doc, entries, n):
  43268. r"""Class-aware wrapper for `::pdf_replace_xref()`."""
  43269. return _mupdf.pdf_replace_xref(doc, entries, n)
  43270. def pdf_reset_form(doc, fields, exclude):
  43271. r"""Class-aware wrapper for `::pdf_reset_form()`."""
  43272. return _mupdf.pdf_reset_form(doc, fields, exclude)
  43273. def pdf_reset_processor(proc):
  43274. r"""Class-aware wrapper for `::pdf_reset_processor()`."""
  43275. return _mupdf.pdf_reset_processor(proc)
  43276. def pdf_resolve_indirect(ref):
  43277. r"""
  43278. Class-aware wrapper for `::pdf_resolve_indirect()`.
  43279. Resolve an indirect object (or chain of objects).
  43280. This can cause xref reorganisations (solidifications etc) due to
  43281. repairs, so all held pdf_xref_entries should be considered
  43282. invalid after this call (other than the returned one).
  43283. """
  43284. return _mupdf.pdf_resolve_indirect(ref)
  43285. def pdf_resolve_indirect_chain(ref):
  43286. r"""Class-aware wrapper for `::pdf_resolve_indirect_chain()`."""
  43287. return _mupdf.pdf_resolve_indirect_chain(ref)
  43288. def pdf_resolve_link(doc, uri, xp, yp):
  43289. r"""
  43290. Class-aware wrapper for `::pdf_resolve_link()`.
  43291. This function has out-params. Python/C# wrappers look like:
  43292. `pdf_resolve_link(::pdf_document *doc, const char *uri)` => `(int, float xp, float yp)`
  43293. """
  43294. return _mupdf.pdf_resolve_link(doc, uri, xp, yp)
  43295. def pdf_rewrite_images(doc, opts):
  43296. r"""Class-aware wrapper for `::pdf_rewrite_images()`."""
  43297. return _mupdf.pdf_rewrite_images(doc, opts)
  43298. def pdf_run_annot(annot, dev, ctm, cookie):
  43299. r"""Class-aware wrapper for `::pdf_run_annot()`."""
  43300. return _mupdf.pdf_run_annot(annot, dev, ctm, cookie)
  43301. def pdf_run_document_structure(doc, dev, cookie):
  43302. r"""Class-aware wrapper for `::pdf_run_document_structure()`."""
  43303. return _mupdf.pdf_run_document_structure(doc, dev, cookie)
  43304. def pdf_run_glyph(doc, resources, contents, dev, ctm, gstate, default_cs, fill_gstate, stroke_gstate):
  43305. r"""Class-aware wrapper for `::pdf_run_glyph()`."""
  43306. return _mupdf.pdf_run_glyph(doc, resources, contents, dev, ctm, gstate, default_cs, fill_gstate, stroke_gstate)
  43307. def pdf_run_page(page, dev, ctm, cookie):
  43308. r"""Class-aware wrapper for `::pdf_run_page()`."""
  43309. return _mupdf.pdf_run_page(page, dev, ctm, cookie)
  43310. def pdf_run_page_annots(page, dev, ctm, cookie):
  43311. r"""Class-aware wrapper for `::pdf_run_page_annots()`."""
  43312. return _mupdf.pdf_run_page_annots(page, dev, ctm, cookie)
  43313. def pdf_run_page_annots_with_usage(page, dev, ctm, usage, cookie):
  43314. r"""Class-aware wrapper for `::pdf_run_page_annots_with_usage()`."""
  43315. return _mupdf.pdf_run_page_annots_with_usage(page, dev, ctm, usage, cookie)
  43316. def pdf_run_page_contents(page, dev, ctm, cookie):
  43317. r"""Class-aware wrapper for `::pdf_run_page_contents()`."""
  43318. return _mupdf.pdf_run_page_contents(page, dev, ctm, cookie)
  43319. def pdf_run_page_contents_with_usage(page, dev, ctm, usage, cookie):
  43320. r"""Class-aware wrapper for `::pdf_run_page_contents_with_usage()`."""
  43321. return _mupdf.pdf_run_page_contents_with_usage(page, dev, ctm, usage, cookie)
  43322. def pdf_run_page_widgets(page, dev, ctm, cookie):
  43323. r"""Class-aware wrapper for `::pdf_run_page_widgets()`."""
  43324. return _mupdf.pdf_run_page_widgets(page, dev, ctm, cookie)
  43325. def pdf_run_page_widgets_with_usage(page, dev, ctm, usage, cookie):
  43326. r"""Class-aware wrapper for `::pdf_run_page_widgets_with_usage()`."""
  43327. return _mupdf.pdf_run_page_widgets_with_usage(page, dev, ctm, usage, cookie)
  43328. def pdf_run_page_with_usage(page, dev, ctm, usage, cookie):
  43329. r"""Class-aware wrapper for `::pdf_run_page_with_usage()`."""
  43330. return _mupdf.pdf_run_page_with_usage(page, dev, ctm, usage, cookie)
  43331. def pdf_sample_shade_function(samples, n, funcs, func, t0, t1):
  43332. r"""
  43333. Class-aware wrapper for `::pdf_sample_shade_function()`.
  43334. This function has out-params. Python/C# wrappers look like:
  43335. `pdf_sample_shade_function(int n, int funcs, ::pdf_function **func, float t0, float t1)` => `(float samples)`
  43336. """
  43337. return _mupdf.pdf_sample_shade_function(samples, n, funcs, func, t0, t1)
  43338. def pdf_save_document(doc, filename, opts):
  43339. r"""Class-aware wrapper for `::pdf_save_document()`."""
  43340. return _mupdf.pdf_save_document(doc, filename, opts)
  43341. def pdf_save_journal(doc, filename):
  43342. r"""Class-aware wrapper for `::pdf_save_journal()`."""
  43343. return _mupdf.pdf_save_journal(doc, filename)
  43344. def pdf_save_snapshot(doc, filename):
  43345. r"""Class-aware wrapper for `::pdf_save_snapshot()`."""
  43346. return _mupdf.pdf_save_snapshot(doc, filename)
  43347. def pdf_select_layer_config(doc, config_num):
  43348. r"""Class-aware wrapper for `::pdf_select_layer_config()`."""
  43349. return _mupdf.pdf_select_layer_config(doc, config_num)
  43350. def pdf_select_layer_config_ui(doc, ui):
  43351. r"""Class-aware wrapper for `::pdf_select_layer_config_ui()`."""
  43352. return _mupdf.pdf_select_layer_config_ui(doc, ui)
  43353. def pdf_serialise_journal(doc, out):
  43354. r"""Class-aware wrapper for `::pdf_serialise_journal()`."""
  43355. return _mupdf.pdf_serialise_journal(doc, out)
  43356. def pdf_set_annot_active(annot, active):
  43357. r"""Class-aware wrapper for `::pdf_set_annot_active()`."""
  43358. return _mupdf.pdf_set_annot_active(annot, active)
  43359. def pdf_set_annot_appearance(annot, appearance, state, ctm, bbox, res, contents):
  43360. r"""Class-aware wrapper for `::pdf_set_annot_appearance()`."""
  43361. return _mupdf.pdf_set_annot_appearance(annot, appearance, state, ctm, bbox, res, contents)
  43362. def pdf_set_annot_appearance_from_display_list(annot, appearance, state, ctm, list):
  43363. r"""Class-aware wrapper for `::pdf_set_annot_appearance_from_display_list()`."""
  43364. return _mupdf.pdf_set_annot_appearance_from_display_list(annot, appearance, state, ctm, list)
  43365. def pdf_set_annot_author(annot, author):
  43366. r"""Class-aware wrapper for `::pdf_set_annot_author()`."""
  43367. return _mupdf.pdf_set_annot_author(annot, author)
  43368. def pdf_set_annot_border(annot, width):
  43369. r"""Class-aware wrapper for `::pdf_set_annot_border()`."""
  43370. return _mupdf.pdf_set_annot_border(annot, width)
  43371. def pdf_set_annot_border_effect(annot, effect):
  43372. r"""Class-aware wrapper for `::pdf_set_annot_border_effect()`."""
  43373. return _mupdf.pdf_set_annot_border_effect(annot, effect)
  43374. def pdf_set_annot_border_effect_intensity(annot, intensity):
  43375. r"""Class-aware wrapper for `::pdf_set_annot_border_effect_intensity()`."""
  43376. return _mupdf.pdf_set_annot_border_effect_intensity(annot, intensity)
  43377. def pdf_set_annot_border_style(annot, style):
  43378. r"""Class-aware wrapper for `::pdf_set_annot_border_style()`."""
  43379. return _mupdf.pdf_set_annot_border_style(annot, style)
  43380. def pdf_set_annot_border_width(annot, width):
  43381. r"""Class-aware wrapper for `::pdf_set_annot_border_width()`."""
  43382. return _mupdf.pdf_set_annot_border_width(annot, width)
  43383. def pdf_set_annot_callout_line(annot, callout, n):
  43384. r"""Class-aware wrapper for `::pdf_set_annot_callout_line()`."""
  43385. return _mupdf.pdf_set_annot_callout_line(annot, callout, n)
  43386. def pdf_set_annot_callout_line2(annot, callout):
  43387. r"""Class-aware wrapper for `::pdf_set_annot_callout_line2()`. SWIG-friendly wrapper for pdf_set_annot_callout_line()."""
  43388. return _mupdf.pdf_set_annot_callout_line2(annot, callout)
  43389. def pdf_set_annot_callout_point(annot, p):
  43390. r"""Class-aware wrapper for `::pdf_set_annot_callout_point()`."""
  43391. return _mupdf.pdf_set_annot_callout_point(annot, p)
  43392. def pdf_set_annot_callout_style(annot, style):
  43393. r"""Class-aware wrapper for `::pdf_set_annot_callout_style()`."""
  43394. return _mupdf.pdf_set_annot_callout_style(annot, style)
  43395. def pdf_set_annot_color(annot, n, color):
  43396. r"""Class-aware wrapper for `::pdf_set_annot_color()`."""
  43397. return _mupdf.pdf_set_annot_color(annot, n, color)
  43398. def pdf_set_annot_contents(annot, text):
  43399. r"""Class-aware wrapper for `::pdf_set_annot_contents()`."""
  43400. return _mupdf.pdf_set_annot_contents(annot, text)
  43401. def pdf_set_annot_creation_date(annot, time):
  43402. r"""Class-aware wrapper for `::pdf_set_annot_creation_date()`."""
  43403. return _mupdf.pdf_set_annot_creation_date(annot, time)
  43404. def pdf_set_annot_default_appearance(annot, font, size, n, color):
  43405. r"""Class-aware wrapper for `::pdf_set_annot_default_appearance()`."""
  43406. return _mupdf.pdf_set_annot_default_appearance(annot, font, size, n, color)
  43407. def pdf_set_annot_field_value(doc, widget, text, ignore_trigger_events):
  43408. r"""Class-aware wrapper for `::pdf_set_annot_field_value()`."""
  43409. return _mupdf.pdf_set_annot_field_value(doc, widget, text, ignore_trigger_events)
  43410. def pdf_set_annot_filespec(annot, obj):
  43411. r"""Class-aware wrapper for `::pdf_set_annot_filespec()`."""
  43412. return _mupdf.pdf_set_annot_filespec(annot, obj)
  43413. def pdf_set_annot_flags(annot, flags):
  43414. r"""Class-aware wrapper for `::pdf_set_annot_flags()`."""
  43415. return _mupdf.pdf_set_annot_flags(annot, flags)
  43416. def pdf_set_annot_hidden_for_editing(annot, hidden):
  43417. r"""Class-aware wrapper for `::pdf_set_annot_hidden_for_editing()`."""
  43418. return _mupdf.pdf_set_annot_hidden_for_editing(annot, hidden)
  43419. def pdf_set_annot_hot(annot, hot):
  43420. r"""Class-aware wrapper for `::pdf_set_annot_hot()`."""
  43421. return _mupdf.pdf_set_annot_hot(annot, hot)
  43422. def pdf_set_annot_icon_name(annot, name):
  43423. r"""Class-aware wrapper for `::pdf_set_annot_icon_name()`."""
  43424. return _mupdf.pdf_set_annot_icon_name(annot, name)
  43425. def pdf_set_annot_ink_list(annot, n, count, v):
  43426. r"""Class-aware wrapper for `::pdf_set_annot_ink_list()`."""
  43427. return _mupdf.pdf_set_annot_ink_list(annot, n, count, v)
  43428. def pdf_set_annot_intent(annot, it):
  43429. r"""Class-aware wrapper for `::pdf_set_annot_intent()`."""
  43430. return _mupdf.pdf_set_annot_intent(annot, it)
  43431. def pdf_set_annot_interior_color(annot, n, color):
  43432. r"""Class-aware wrapper for `::pdf_set_annot_interior_color()`."""
  43433. return _mupdf.pdf_set_annot_interior_color(annot, n, color)
  43434. def pdf_set_annot_is_open(annot, is_open):
  43435. r"""Class-aware wrapper for `::pdf_set_annot_is_open()`."""
  43436. return _mupdf.pdf_set_annot_is_open(annot, is_open)
  43437. def pdf_set_annot_language(annot, lang):
  43438. r"""Class-aware wrapper for `::pdf_set_annot_language()`."""
  43439. return _mupdf.pdf_set_annot_language(annot, lang)
  43440. def pdf_set_annot_line(annot, a, b):
  43441. r"""Class-aware wrapper for `::pdf_set_annot_line()`."""
  43442. return _mupdf.pdf_set_annot_line(annot, a, b)
  43443. def pdf_set_annot_line_caption(annot, cap):
  43444. r"""Class-aware wrapper for `::pdf_set_annot_line_caption()`."""
  43445. return _mupdf.pdf_set_annot_line_caption(annot, cap)
  43446. def pdf_set_annot_line_caption_offset(annot, offset):
  43447. r"""Class-aware wrapper for `::pdf_set_annot_line_caption_offset()`."""
  43448. return _mupdf.pdf_set_annot_line_caption_offset(annot, offset)
  43449. def pdf_set_annot_line_end_style(annot, e):
  43450. r"""Class-aware wrapper for `::pdf_set_annot_line_end_style()`."""
  43451. return _mupdf.pdf_set_annot_line_end_style(annot, e)
  43452. def pdf_set_annot_line_ending_styles(annot, start_style, end_style):
  43453. r"""Class-aware wrapper for `::pdf_set_annot_line_ending_styles()`."""
  43454. return _mupdf.pdf_set_annot_line_ending_styles(annot, start_style, end_style)
  43455. def pdf_set_annot_line_leader(annot, ll):
  43456. r"""Class-aware wrapper for `::pdf_set_annot_line_leader()`."""
  43457. return _mupdf.pdf_set_annot_line_leader(annot, ll)
  43458. def pdf_set_annot_line_leader_extension(annot, lle):
  43459. r"""Class-aware wrapper for `::pdf_set_annot_line_leader_extension()`."""
  43460. return _mupdf.pdf_set_annot_line_leader_extension(annot, lle)
  43461. def pdf_set_annot_line_leader_offset(annot, llo):
  43462. r"""Class-aware wrapper for `::pdf_set_annot_line_leader_offset()`."""
  43463. return _mupdf.pdf_set_annot_line_leader_offset(annot, llo)
  43464. def pdf_set_annot_line_start_style(annot, s):
  43465. r"""Class-aware wrapper for `::pdf_set_annot_line_start_style()`."""
  43466. return _mupdf.pdf_set_annot_line_start_style(annot, s)
  43467. def pdf_set_annot_modification_date(annot, time):
  43468. r"""Class-aware wrapper for `::pdf_set_annot_modification_date()`."""
  43469. return _mupdf.pdf_set_annot_modification_date(annot, time)
  43470. def pdf_set_annot_opacity(annot, opacity):
  43471. r"""Class-aware wrapper for `::pdf_set_annot_opacity()`."""
  43472. return _mupdf.pdf_set_annot_opacity(annot, opacity)
  43473. def pdf_set_annot_popup(annot, rect):
  43474. r"""Class-aware wrapper for `::pdf_set_annot_popup()`."""
  43475. return _mupdf.pdf_set_annot_popup(annot, rect)
  43476. def pdf_set_annot_quad_points(annot, n, qv):
  43477. r"""Class-aware wrapper for `::pdf_set_annot_quad_points()`."""
  43478. return _mupdf.pdf_set_annot_quad_points(annot, n, qv)
  43479. def pdf_set_annot_quadding(annot, q):
  43480. r"""Class-aware wrapper for `::pdf_set_annot_quadding()`."""
  43481. return _mupdf.pdf_set_annot_quadding(annot, q)
  43482. def pdf_set_annot_rect(annot, rect):
  43483. r"""Class-aware wrapper for `::pdf_set_annot_rect()`."""
  43484. return _mupdf.pdf_set_annot_rect(annot, rect)
  43485. def pdf_set_annot_resynthesised(annot):
  43486. r"""Class-aware wrapper for `::pdf_set_annot_resynthesised()`."""
  43487. return _mupdf.pdf_set_annot_resynthesised(annot)
  43488. def pdf_set_annot_rich_contents(annot, plain, rich):
  43489. r"""Class-aware wrapper for `::pdf_set_annot_rich_contents()`."""
  43490. return _mupdf.pdf_set_annot_rich_contents(annot, plain, rich)
  43491. def pdf_set_annot_rich_defaults(annot, style):
  43492. r"""Class-aware wrapper for `::pdf_set_annot_rich_defaults()`."""
  43493. return _mupdf.pdf_set_annot_rich_defaults(annot, style)
  43494. def pdf_set_annot_stamp_image(annot, image):
  43495. r"""Class-aware wrapper for `::pdf_set_annot_stamp_image()`."""
  43496. return _mupdf.pdf_set_annot_stamp_image(annot, image)
  43497. def pdf_set_annot_stamp_image_obj(annot, ref):
  43498. r"""Class-aware wrapper for `::pdf_set_annot_stamp_image_obj()`."""
  43499. return _mupdf.pdf_set_annot_stamp_image_obj(annot, ref)
  43500. def pdf_set_annot_vertex(annot, i, p):
  43501. r"""Class-aware wrapper for `::pdf_set_annot_vertex()`."""
  43502. return _mupdf.pdf_set_annot_vertex(annot, i, p)
  43503. def pdf_set_annot_vertices(annot, n, v):
  43504. r"""Class-aware wrapper for `::pdf_set_annot_vertices()`."""
  43505. return _mupdf.pdf_set_annot_vertices(annot, n, v)
  43506. def pdf_set_choice_field_value(widget, value):
  43507. r"""Class-aware wrapper for `::pdf_set_choice_field_value()`."""
  43508. return _mupdf.pdf_set_choice_field_value(widget, value)
  43509. def pdf_set_cmap_wmode(cmap, wmode):
  43510. r"""Class-aware wrapper for `::pdf_set_cmap_wmode()`."""
  43511. return _mupdf.pdf_set_cmap_wmode(cmap, wmode)
  43512. def pdf_set_default_hmtx(font, w):
  43513. r"""Class-aware wrapper for `::pdf_set_default_hmtx()`."""
  43514. return _mupdf.pdf_set_default_hmtx(font, w)
  43515. def pdf_set_default_vmtx(font, y, w):
  43516. r"""Class-aware wrapper for `::pdf_set_default_vmtx()`."""
  43517. return _mupdf.pdf_set_default_vmtx(font, y, w)
  43518. def pdf_set_doc_event_callback(doc, event_cb, free_event_data_cb, data):
  43519. r"""Class-aware wrapper for `::pdf_set_doc_event_callback()`."""
  43520. return _mupdf.pdf_set_doc_event_callback(doc, event_cb, free_event_data_cb, data)
  43521. def pdf_set_document_language(doc, lang):
  43522. r"""Class-aware wrapper for `::pdf_set_document_language()`."""
  43523. return _mupdf.pdf_set_document_language(doc, lang)
  43524. def pdf_set_field_value(doc, field, text, ignore_trigger_events):
  43525. r"""Class-aware wrapper for `::pdf_set_field_value()`."""
  43526. return _mupdf.pdf_set_field_value(doc, field, text, ignore_trigger_events)
  43527. def pdf_set_font_wmode(font, wmode):
  43528. r"""Class-aware wrapper for `::pdf_set_font_wmode()`."""
  43529. return _mupdf.pdf_set_font_wmode(font, wmode)
  43530. def pdf_set_int(obj, i):
  43531. r"""Class-aware wrapper for `::pdf_set_int()`."""
  43532. return _mupdf.pdf_set_int(obj, i)
  43533. def pdf_set_layer_config_as_default(doc):
  43534. r"""Class-aware wrapper for `::pdf_set_layer_config_as_default()`."""
  43535. return _mupdf.pdf_set_layer_config_as_default(doc)
  43536. def pdf_set_obj_memo(obj, bit, memo):
  43537. r"""Class-aware wrapper for `::pdf_set_obj_memo()`."""
  43538. return _mupdf.pdf_set_obj_memo(obj, bit, memo)
  43539. def pdf_set_obj_parent(obj, num):
  43540. r"""Class-aware wrapper for `::pdf_set_obj_parent()`."""
  43541. return _mupdf.pdf_set_obj_parent(obj, num)
  43542. def pdf_set_page_box(page, box, rect):
  43543. r"""Class-aware wrapper for `::pdf_set_page_box()`."""
  43544. return _mupdf.pdf_set_page_box(page, box, rect)
  43545. def pdf_set_page_labels(doc, index, style, prefix, start):
  43546. r"""Class-aware wrapper for `::pdf_set_page_labels()`."""
  43547. return _mupdf.pdf_set_page_labels(doc, index, style, prefix, start)
  43548. def pdf_set_populating_xref_trailer(doc, trailer):
  43549. r"""Class-aware wrapper for `::pdf_set_populating_xref_trailer()`."""
  43550. return _mupdf.pdf_set_populating_xref_trailer(doc, trailer)
  43551. def pdf_set_str_len(obj, newlen):
  43552. r"""Class-aware wrapper for `::pdf_set_str_len()`."""
  43553. return _mupdf.pdf_set_str_len(obj, newlen)
  43554. def pdf_set_text_field_value(widget, value):
  43555. r"""Class-aware wrapper for `::pdf_set_text_field_value()`."""
  43556. return _mupdf.pdf_set_text_field_value(widget, value)
  43557. def pdf_set_usecmap(cmap, usecmap):
  43558. r"""Class-aware wrapper for `::pdf_set_usecmap()`."""
  43559. return _mupdf.pdf_set_usecmap(cmap, usecmap)
  43560. def pdf_set_widget_editing_state(widget, editing):
  43561. r"""Class-aware wrapper for `::pdf_set_widget_editing_state()`."""
  43562. return _mupdf.pdf_set_widget_editing_state(widget, editing)
  43563. def pdf_sign_signature(widget, signer, appearance_flags, graphic, reason, location):
  43564. r"""Class-aware wrapper for `::pdf_sign_signature()`."""
  43565. return _mupdf.pdf_sign_signature(widget, signer, appearance_flags, graphic, reason, location)
  43566. def pdf_sign_signature_with_appearance(widget, signer, date, disp_list):
  43567. r"""Class-aware wrapper for `::pdf_sign_signature_with_appearance()`."""
  43568. return _mupdf.pdf_sign_signature_with_appearance(widget, signer, date, disp_list)
  43569. def pdf_signature_appearance_signed(rect, lang, img, left_text, right_text, include_logo):
  43570. r"""Class-aware wrapper for `::pdf_signature_appearance_signed()`."""
  43571. return _mupdf.pdf_signature_appearance_signed(rect, lang, img, left_text, right_text, include_logo)
  43572. def pdf_signature_appearance_unsigned(rect, lang):
  43573. r"""Class-aware wrapper for `::pdf_signature_appearance_unsigned()`."""
  43574. return _mupdf.pdf_signature_appearance_unsigned(rect, lang)
  43575. def pdf_signature_byte_range(doc, signature, byte_range):
  43576. r"""Class-aware wrapper for `::pdf_signature_byte_range()`."""
  43577. return _mupdf.pdf_signature_byte_range(doc, signature, byte_range)
  43578. def pdf_signature_contents(doc, signature, contents):
  43579. r"""
  43580. Class-aware wrapper for `::pdf_signature_contents()`.
  43581. This function has out-params. Python/C# wrappers look like:
  43582. `pdf_signature_contents(::pdf_document *doc, ::pdf_obj *signature)` => `(size_t, char *contents)`
  43583. """
  43584. return _mupdf.pdf_signature_contents(doc, signature, contents)
  43585. def pdf_signature_drop_distinguished_name(name):
  43586. r"""Class-aware wrapper for `::pdf_signature_drop_distinguished_name()`."""
  43587. return _mupdf.pdf_signature_drop_distinguished_name(name)
  43588. def pdf_signature_error_description(err):
  43589. r"""Class-aware wrapper for `::pdf_signature_error_description()`."""
  43590. return _mupdf.pdf_signature_error_description(err)
  43591. def pdf_signature_format_distinguished_name(name):
  43592. r"""Class-aware wrapper for `::pdf_signature_format_distinguished_name()`."""
  43593. return _mupdf.pdf_signature_format_distinguished_name(name)
  43594. def pdf_signature_hash_bytes(doc, signature):
  43595. r"""Class-aware wrapper for `::pdf_signature_hash_bytes()`."""
  43596. return _mupdf.pdf_signature_hash_bytes(doc, signature)
  43597. def pdf_signature_incremental_change_since_signing(doc, signature):
  43598. r"""Class-aware wrapper for `::pdf_signature_incremental_change_since_signing()`."""
  43599. return _mupdf.pdf_signature_incremental_change_since_signing(doc, signature)
  43600. def pdf_signature_info(name, dn, reason, location, date, include_labels):
  43601. r"""Class-aware wrapper for `::pdf_signature_info()`."""
  43602. return _mupdf.pdf_signature_info(name, dn, reason, location, date, include_labels)
  43603. def pdf_signature_is_signed(doc, field):
  43604. r"""Class-aware wrapper for `::pdf_signature_is_signed()`."""
  43605. return _mupdf.pdf_signature_is_signed(doc, field)
  43606. def pdf_signature_set_value(doc, field, signer, stime):
  43607. r"""Class-aware wrapper for `::pdf_signature_set_value()`."""
  43608. return _mupdf.pdf_signature_set_value(doc, field, signer, stime)
  43609. def pdf_sort_cmap(cmap):
  43610. r"""Class-aware wrapper for `::pdf_sort_cmap()`."""
  43611. return _mupdf.pdf_sort_cmap(cmap)
  43612. def pdf_sort_dict(dict):
  43613. r"""Class-aware wrapper for `::pdf_sort_dict()`."""
  43614. return _mupdf.pdf_sort_dict(dict)
  43615. def pdf_specifics(doc):
  43616. r"""Class-aware wrapper for `::pdf_specifics()`."""
  43617. return _mupdf.pdf_specifics(doc)
  43618. def pdf_sprint_obj(buf, cap, len, obj, tight, ascii):
  43619. r"""
  43620. Class-aware wrapper for `::pdf_sprint_obj()`.
  43621. This function has out-params. Python/C# wrappers look like:
  43622. `pdf_sprint_obj(char *buf, size_t cap, ::pdf_obj *obj, int tight, int ascii)` => `(char *, size_t len)`
  43623. """
  43624. return _mupdf.pdf_sprint_obj(buf, cap, len, obj, tight, ascii)
  43625. def pdf_store_item(key, val, itemsize):
  43626. r"""Class-aware wrapper for `::pdf_store_item()`."""
  43627. return _mupdf.pdf_store_item(key, val, itemsize)
  43628. def pdf_string_from_annot_type(type):
  43629. r"""Class-aware wrapper for `::pdf_string_from_annot_type()`."""
  43630. return _mupdf.pdf_string_from_annot_type(type)
  43631. def pdf_string_from_intent(intent):
  43632. r"""Class-aware wrapper for `::pdf_string_from_intent()`."""
  43633. return _mupdf.pdf_string_from_intent(intent)
  43634. def pdf_string_from_line_ending(end):
  43635. r"""Class-aware wrapper for `::pdf_string_from_line_ending()`."""
  43636. return _mupdf.pdf_string_from_line_ending(end)
  43637. def pdf_structure_type(role_map, tag):
  43638. r"""Class-aware wrapper for `::pdf_structure_type()`."""
  43639. return _mupdf.pdf_structure_type(role_map, tag)
  43640. def pdf_subset_fonts(doc, pages_len, pages):
  43641. r"""Class-aware wrapper for `::pdf_subset_fonts()`."""
  43642. return _mupdf.pdf_subset_fonts(doc, pages_len, pages)
  43643. def pdf_subset_fonts2(doc, pages):
  43644. r"""Class-aware wrapper for `::pdf_subset_fonts2()`. Swig-friendly wrapper for pdf_subset_fonts()."""
  43645. return _mupdf.pdf_subset_fonts2(doc, pages)
  43646. def pdf_sync_annots(page):
  43647. r"""Class-aware wrapper for `::pdf_sync_annots()`."""
  43648. return _mupdf.pdf_sync_annots(page)
  43649. def pdf_sync_links(page):
  43650. r"""Class-aware wrapper for `::pdf_sync_links()`."""
  43651. return _mupdf.pdf_sync_links(page)
  43652. def pdf_sync_open_pages(doc):
  43653. r"""Class-aware wrapper for `::pdf_sync_open_pages()`."""
  43654. return _mupdf.pdf_sync_open_pages(doc)
  43655. def pdf_sync_page(page):
  43656. r"""Class-aware wrapper for `::pdf_sync_page()`."""
  43657. return _mupdf.pdf_sync_page(page)
  43658. def pdf_text_widget_format(tw):
  43659. r"""Class-aware wrapper for `::pdf_text_widget_format()`."""
  43660. return _mupdf.pdf_text_widget_format(tw)
  43661. def pdf_text_widget_max_len(tw):
  43662. r"""Class-aware wrapper for `::pdf_text_widget_max_len()`."""
  43663. return _mupdf.pdf_text_widget_max_len(tw)
  43664. def pdf_to_bool(obj):
  43665. r"""Class-aware wrapper for `::pdf_to_bool()`."""
  43666. return _mupdf.pdf_to_bool(obj)
  43667. def pdf_to_bool_default(obj, _def):
  43668. r"""Class-aware wrapper for `::pdf_to_bool_default()`."""
  43669. return _mupdf.pdf_to_bool_default(obj, _def)
  43670. def pdf_to_date(time):
  43671. r"""Class-aware wrapper for `::pdf_to_date()`."""
  43672. return _mupdf.pdf_to_date(time)
  43673. def pdf_to_gen(obj):
  43674. r"""Class-aware wrapper for `::pdf_to_gen()`."""
  43675. return _mupdf.pdf_to_gen(obj)
  43676. def pdf_to_int(obj):
  43677. r"""Class-aware wrapper for `::pdf_to_int()`."""
  43678. return _mupdf.pdf_to_int(obj)
  43679. def pdf_to_int64(obj):
  43680. r"""Class-aware wrapper for `::pdf_to_int64()`."""
  43681. return _mupdf.pdf_to_int64(obj)
  43682. def pdf_to_int_default(obj, _def):
  43683. r"""Class-aware wrapper for `::pdf_to_int_default()`."""
  43684. return _mupdf.pdf_to_int_default(obj, _def)
  43685. def pdf_to_matrix(array):
  43686. r"""Class-aware wrapper for `::pdf_to_matrix()`."""
  43687. return _mupdf.pdf_to_matrix(array)
  43688. def pdf_to_name(obj):
  43689. r"""Class-aware wrapper for `::pdf_to_name()`."""
  43690. return _mupdf.pdf_to_name(obj)
  43691. def pdf_to_num(obj):
  43692. r"""Class-aware wrapper for `::pdf_to_num()`."""
  43693. return _mupdf.pdf_to_num(obj)
  43694. def pdf_to_point(array, offset):
  43695. r"""Class-aware wrapper for `::pdf_to_point()`."""
  43696. return _mupdf.pdf_to_point(array, offset)
  43697. def pdf_to_quad(array, offset):
  43698. r"""Class-aware wrapper for `::pdf_to_quad()`."""
  43699. return _mupdf.pdf_to_quad(array, offset)
  43700. def pdf_to_real(obj):
  43701. r"""Class-aware wrapper for `::pdf_to_real()`."""
  43702. return _mupdf.pdf_to_real(obj)
  43703. def pdf_to_real_default(obj, _def):
  43704. r"""Class-aware wrapper for `::pdf_to_real_default()`."""
  43705. return _mupdf.pdf_to_real_default(obj, _def)
  43706. def pdf_to_rect(array):
  43707. r"""Class-aware wrapper for `::pdf_to_rect()`."""
  43708. return _mupdf.pdf_to_rect(array)
  43709. def pdf_to_str_buf(obj):
  43710. r"""Class-aware wrapper for `::pdf_to_str_buf()`."""
  43711. return _mupdf.pdf_to_str_buf(obj)
  43712. def pdf_to_str_len(obj):
  43713. r"""Class-aware wrapper for `::pdf_to_str_len()`."""
  43714. return _mupdf.pdf_to_str_len(obj)
  43715. def pdf_to_string(obj, sizep):
  43716. r"""
  43717. Class-aware wrapper for `::pdf_to_string()`.
  43718. This function has out-params. Python/C# wrappers look like:
  43719. `pdf_to_string(::pdf_obj *obj)` => `(const char *, size_t sizep)`
  43720. """
  43721. return _mupdf.pdf_to_string(obj, sizep)
  43722. def pdf_to_text_string(obj):
  43723. r"""Class-aware wrapper for `::pdf_to_text_string()`."""
  43724. return _mupdf.pdf_to_text_string(obj)
  43725. def pdf_toggle_layer_config_ui(doc, ui):
  43726. r"""Class-aware wrapper for `::pdf_toggle_layer_config_ui()`."""
  43727. return _mupdf.pdf_toggle_layer_config_ui(doc, ui)
  43728. def pdf_toggle_widget(widget):
  43729. r"""Class-aware wrapper for `::pdf_toggle_widget()`."""
  43730. return _mupdf.pdf_toggle_widget(widget)
  43731. def pdf_tos_get_text(tos):
  43732. r"""Class-aware wrapper for `::pdf_tos_get_text()`."""
  43733. return _mupdf.pdf_tos_get_text(tos)
  43734. def pdf_tos_make_trm(tos, text, fontdesc, cid, trm, adv):
  43735. r"""
  43736. Class-aware wrapper for `::pdf_tos_make_trm()`.
  43737. This function has out-params. Python/C# wrappers look like:
  43738. `pdf_tos_make_trm(::pdf_text_object_state *tos, ::pdf_text_state *text, ::pdf_font_desc *fontdesc, int cid, ::fz_matrix *trm)` => `(int, float adv)`
  43739. """
  43740. return _mupdf.pdf_tos_make_trm(tos, text, fontdesc, cid, trm, adv)
  43741. def pdf_tos_move_after_char(tos):
  43742. r"""Class-aware wrapper for `::pdf_tos_move_after_char()`."""
  43743. return _mupdf.pdf_tos_move_after_char(tos)
  43744. def pdf_tos_newline(tos, leading):
  43745. r"""Class-aware wrapper for `::pdf_tos_newline()`."""
  43746. return _mupdf.pdf_tos_newline(tos, leading)
  43747. def pdf_tos_reset(tos, render):
  43748. r"""Class-aware wrapper for `::pdf_tos_reset()`."""
  43749. return _mupdf.pdf_tos_reset(tos, render)
  43750. def pdf_tos_restore(tos, save):
  43751. r"""Class-aware wrapper for `::pdf_tos_restore()`."""
  43752. return _mupdf.pdf_tos_restore(tos, save)
  43753. def pdf_tos_save(tos, save):
  43754. r"""Class-aware wrapper for `::pdf_tos_save()`."""
  43755. return _mupdf.pdf_tos_save(tos, save)
  43756. def pdf_tos_set_matrix(tos, a, b, c, d, e, f):
  43757. r"""Class-aware wrapper for `::pdf_tos_set_matrix()`."""
  43758. return _mupdf.pdf_tos_set_matrix(tos, a, b, c, d, e, f)
  43759. def pdf_tos_translate(tos, tx, ty):
  43760. r"""Class-aware wrapper for `::pdf_tos_translate()`."""
  43761. return _mupdf.pdf_tos_translate(tos, tx, ty)
  43762. def pdf_trailer(doc):
  43763. r"""Class-aware wrapper for `::pdf_trailer()`."""
  43764. return _mupdf.pdf_trailer(doc)
  43765. def pdf_undo(doc):
  43766. r"""Class-aware wrapper for `::pdf_undo()`."""
  43767. return _mupdf.pdf_undo(doc)
  43768. def pdf_undoredo_state(doc, steps):
  43769. r"""
  43770. Class-aware wrapper for `::pdf_undoredo_state()`.
  43771. This function has out-params. Python/C# wrappers look like:
  43772. `pdf_undoredo_state(::pdf_document *doc)` => `(int, int steps)`
  43773. """
  43774. return _mupdf.pdf_undoredo_state(doc, steps)
  43775. def pdf_undoredo_step(doc, step):
  43776. r"""Class-aware wrapper for `::pdf_undoredo_step()`."""
  43777. return _mupdf.pdf_undoredo_step(doc, step)
  43778. def pdf_unmark_obj(obj):
  43779. r"""Class-aware wrapper for `::pdf_unmark_obj()`."""
  43780. return _mupdf.pdf_unmark_obj(obj)
  43781. def pdf_update_annot(annot):
  43782. r"""Class-aware wrapper for `::pdf_update_annot()`."""
  43783. return _mupdf.pdf_update_annot(annot)
  43784. def pdf_update_default_colorspaces(old_cs, res):
  43785. r"""Class-aware wrapper for `::pdf_update_default_colorspaces()`."""
  43786. return _mupdf.pdf_update_default_colorspaces(old_cs, res)
  43787. def pdf_update_object(doc, num, obj):
  43788. r"""Class-aware wrapper for `::pdf_update_object()`."""
  43789. return _mupdf.pdf_update_object(doc, num, obj)
  43790. def pdf_update_page(page):
  43791. r"""Class-aware wrapper for `::pdf_update_page()`."""
  43792. return _mupdf.pdf_update_page(page)
  43793. def pdf_update_stream(doc, ref, buf, compressed):
  43794. r"""Class-aware wrapper for `::pdf_update_stream()`."""
  43795. return _mupdf.pdf_update_stream(doc, ref, buf, compressed)
  43796. def pdf_update_widget(widget):
  43797. r"""Class-aware wrapper for `::pdf_update_widget()`."""
  43798. return _mupdf.pdf_update_widget(widget)
  43799. def pdf_update_xobject(doc, xobj, bbox, mat, res, buffer):
  43800. r"""Class-aware wrapper for `::pdf_update_xobject()`."""
  43801. return _mupdf.pdf_update_xobject(doc, xobj, bbox, mat, res, buffer)
  43802. def pdf_validate_change_history(doc):
  43803. r"""Class-aware wrapper for `::pdf_validate_change_history()`."""
  43804. return _mupdf.pdf_validate_change_history(doc)
  43805. def pdf_validate_changes(doc, version):
  43806. r"""Class-aware wrapper for `::pdf_validate_changes()`."""
  43807. return _mupdf.pdf_validate_changes(doc, version)
  43808. def pdf_validate_signature(widget):
  43809. r"""Class-aware wrapper for `::pdf_validate_signature()`."""
  43810. return _mupdf.pdf_validate_signature(widget)
  43811. def pdf_verify_embedded_file_checksum(fs):
  43812. r"""Class-aware wrapper for `::pdf_verify_embedded_file_checksum()`."""
  43813. return _mupdf.pdf_verify_embedded_file_checksum(fs)
  43814. def pdf_version(doc):
  43815. r"""Class-aware wrapper for `::pdf_version()`."""
  43816. return _mupdf.pdf_version(doc)
  43817. def pdf_walk_tree(tree, kid_name, arrive, leave, arg, names, values):
  43818. r"""
  43819. Class-aware wrapper for `::pdf_walk_tree()`.
  43820. This function has out-params. Python/C# wrappers look like:
  43821. `pdf_walk_tree(::pdf_obj *tree, ::pdf_obj *kid_name, void (*arrive)(::fz_context *, ::pdf_obj *, void *, ::pdf_obj **), void (*leave)(::fz_context *, ::pdf_obj *, void *), void *arg, ::pdf_obj **names, ::pdf_obj **values)` => `()`
  43822. """
  43823. return _mupdf.pdf_walk_tree(tree, kid_name, arrive, leave, arg, names, values)
  43824. def pdf_was_pure_xfa(doc):
  43825. r"""Class-aware wrapper for `::pdf_was_pure_xfa()`."""
  43826. return _mupdf.pdf_was_pure_xfa(doc)
  43827. def pdf_was_repaired(doc):
  43828. r"""Class-aware wrapper for `::pdf_was_repaired()`."""
  43829. return _mupdf.pdf_was_repaired(doc)
  43830. def pdf_widget_is_readonly(widget):
  43831. r"""Class-aware wrapper for `::pdf_widget_is_readonly()`."""
  43832. return _mupdf.pdf_widget_is_readonly(widget)
  43833. def pdf_widget_is_signed(widget):
  43834. r"""Class-aware wrapper for `::pdf_widget_is_signed()`."""
  43835. return _mupdf.pdf_widget_is_signed(widget)
  43836. def pdf_widget_type(widget):
  43837. r"""Class-aware wrapper for `::pdf_widget_type()`."""
  43838. return _mupdf.pdf_widget_type(widget)
  43839. def pdf_write_digest(out, byte_range, field, digest_offset, digest_length, signer):
  43840. r"""Class-aware wrapper for `::pdf_write_digest()`."""
  43841. return _mupdf.pdf_write_digest(out, byte_range, field, digest_offset, digest_length, signer)
  43842. def pdf_write_document(doc, out, opts):
  43843. r"""Class-aware wrapper for `::pdf_write_document()`."""
  43844. return _mupdf.pdf_write_document(doc, out, opts)
  43845. def pdf_write_journal(doc, out):
  43846. r"""Class-aware wrapper for `::pdf_write_journal()`."""
  43847. return _mupdf.pdf_write_journal(doc, out)
  43848. def pdf_write_snapshot(doc, out):
  43849. r"""Class-aware wrapper for `::pdf_write_snapshot()`."""
  43850. return _mupdf.pdf_write_snapshot(doc, out)
  43851. def pdf_xobject_bbox(xobj):
  43852. r"""Class-aware wrapper for `::pdf_xobject_bbox()`."""
  43853. return _mupdf.pdf_xobject_bbox(xobj)
  43854. def pdf_xobject_colorspace(xobj):
  43855. r"""Class-aware wrapper for `::pdf_xobject_colorspace()`."""
  43856. return _mupdf.pdf_xobject_colorspace(xobj)
  43857. def pdf_xobject_isolated(xobj):
  43858. r"""Class-aware wrapper for `::pdf_xobject_isolated()`."""
  43859. return _mupdf.pdf_xobject_isolated(xobj)
  43860. def pdf_xobject_knockout(xobj):
  43861. r"""Class-aware wrapper for `::pdf_xobject_knockout()`."""
  43862. return _mupdf.pdf_xobject_knockout(xobj)
  43863. def pdf_xobject_matrix(xobj):
  43864. r"""Class-aware wrapper for `::pdf_xobject_matrix()`."""
  43865. return _mupdf.pdf_xobject_matrix(xobj)
  43866. def pdf_xobject_resources(xobj):
  43867. r"""Class-aware wrapper for `::pdf_xobject_resources()`."""
  43868. return _mupdf.pdf_xobject_resources(xobj)
  43869. def pdf_xobject_transparency(xobj):
  43870. r"""Class-aware wrapper for `::pdf_xobject_transparency()`."""
  43871. return _mupdf.pdf_xobject_transparency(xobj)
  43872. def pdf_xref_ensure_incremental_object(doc, num):
  43873. r"""Class-aware wrapper for `::pdf_xref_ensure_incremental_object()`."""
  43874. return _mupdf.pdf_xref_ensure_incremental_object(doc, num)
  43875. def pdf_xref_ensure_local_object(doc, num):
  43876. r"""Class-aware wrapper for `::pdf_xref_ensure_local_object()`."""
  43877. return _mupdf.pdf_xref_ensure_local_object(doc, num)
  43878. def pdf_xref_entry_map(doc, fn, arg):
  43879. r"""Class-aware wrapper for `::pdf_xref_entry_map()`."""
  43880. return _mupdf.pdf_xref_entry_map(doc, fn, arg)
  43881. def pdf_xref_is_incremental(doc, num):
  43882. r"""Class-aware wrapper for `::pdf_xref_is_incremental()`."""
  43883. return _mupdf.pdf_xref_is_incremental(doc, num)
  43884. def pdf_xref_len(doc):
  43885. r"""Class-aware wrapper for `::pdf_xref_len()`."""
  43886. return _mupdf.pdf_xref_len(doc)
  43887. def pdf_xref_obj_is_unsaved_signature(doc, obj):
  43888. r"""Class-aware wrapper for `::pdf_xref_obj_is_unsaved_signature()`."""
  43889. return _mupdf.pdf_xref_obj_is_unsaved_signature(doc, obj)
  43890. def pdf_xref_remove_unsaved_signature(doc, field):
  43891. r"""Class-aware wrapper for `::pdf_xref_remove_unsaved_signature()`."""
  43892. return _mupdf.pdf_xref_remove_unsaved_signature(doc, field)
  43893. def pdf_xref_store_unsaved_signature(doc, field, signer):
  43894. r"""Class-aware wrapper for `::pdf_xref_store_unsaved_signature()`."""
  43895. return _mupdf.pdf_xref_store_unsaved_signature(doc, field, signer)
  43896. def pdf_zugferd_profile(doc, version):
  43897. r"""
  43898. Class-aware wrapper for `::pdf_zugferd_profile()`.
  43899. This function has out-params. Python/C# wrappers look like:
  43900. `pdf_zugferd_profile(::pdf_document *doc)` => `(enum pdf_zugferd_profile, float version)`
  43901. """
  43902. return _mupdf.pdf_zugferd_profile(doc, version)
  43903. def pdf_zugferd_profile_to_string(profile):
  43904. r"""Class-aware wrapper for `::pdf_zugferd_profile_to_string()`."""
  43905. return _mupdf.pdf_zugferd_profile_to_string(profile)
  43906. def pdf_zugferd_xml(doc):
  43907. r"""Class-aware wrapper for `::pdf_zugferd_xml()`."""
  43908. return _mupdf.pdf_zugferd_xml(doc)
  43909. def internal_assert_fail(file, line, fn, expression):
  43910. r"""This file was auto-generated by mupdfwrap.py."""
  43911. return _mupdf.internal_assert_fail(file, line, fn, expression)
  43912. def internal_env_flag(name):
  43913. r"""Internal use only. Looks at environmental variable <name>; returns 0 if unset else int value."""
  43914. return _mupdf.internal_env_flag(name)
  43915. def internal_env_flag_check_unset(if_, name):
  43916. r"""Internal use only. Looks at environmental variable <name>; returns 0 if unset else int value."""
  43917. return _mupdf.internal_env_flag_check_unset(if_, name)
  43918. def internal_context_get():
  43919. r"""Internal use only. Returns `fz_context*` for use by current thread."""
  43920. return _mupdf.internal_context_get()
  43921. class FzErrorBase(Exception):
  43922. r"""Base class for exceptions."""
  43923. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43924. __repr__ = _swig_repr
  43925. m_code = property(_mupdf.FzErrorBase_m_code_get, _mupdf.FzErrorBase_m_code_set)
  43926. m_text = property(_mupdf.FzErrorBase_m_text_get, _mupdf.FzErrorBase_m_text_set)
  43927. m_what = property(_mupdf.FzErrorBase_m_what_get, _mupdf.FzErrorBase_m_what_set)
  43928. def what(self):
  43929. return _mupdf.FzErrorBase_what(self)
  43930. def __init__(self, code, text):
  43931. _mupdf.FzErrorBase_swiginit(self, _mupdf.new_FzErrorBase(code, text))
  43932. __swig_destroy__ = _mupdf.delete_FzErrorBase
  43933. # Register FzErrorBase in _mupdf:
  43934. _mupdf.FzErrorBase_swigregister(FzErrorBase)
  43935. class FzErrorNone(FzErrorBase):
  43936. r"""For `FZ_ERROR_NONE`."""
  43937. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43938. __repr__ = _swig_repr
  43939. def __init__(self, message):
  43940. _mupdf.FzErrorNone_swiginit(self, _mupdf.new_FzErrorNone(message))
  43941. __swig_destroy__ = _mupdf.delete_FzErrorNone
  43942. # Register FzErrorNone in _mupdf:
  43943. _mupdf.FzErrorNone_swigregister(FzErrorNone)
  43944. class FzErrorGeneric(FzErrorBase):
  43945. r"""For `FZ_ERROR_GENERIC`."""
  43946. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43947. __repr__ = _swig_repr
  43948. def __init__(self, message):
  43949. _mupdf.FzErrorGeneric_swiginit(self, _mupdf.new_FzErrorGeneric(message))
  43950. __swig_destroy__ = _mupdf.delete_FzErrorGeneric
  43951. # Register FzErrorGeneric in _mupdf:
  43952. _mupdf.FzErrorGeneric_swigregister(FzErrorGeneric)
  43953. class FzErrorSystem(FzErrorBase):
  43954. r"""For `FZ_ERROR_SYSTEM`."""
  43955. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43956. __repr__ = _swig_repr
  43957. def __init__(self, message):
  43958. _mupdf.FzErrorSystem_swiginit(self, _mupdf.new_FzErrorSystem(message))
  43959. __swig_destroy__ = _mupdf.delete_FzErrorSystem
  43960. # Register FzErrorSystem in _mupdf:
  43961. _mupdf.FzErrorSystem_swigregister(FzErrorSystem)
  43962. class FzErrorLibrary(FzErrorBase):
  43963. r"""For `FZ_ERROR_LIBRARY`."""
  43964. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43965. __repr__ = _swig_repr
  43966. def __init__(self, message):
  43967. _mupdf.FzErrorLibrary_swiginit(self, _mupdf.new_FzErrorLibrary(message))
  43968. __swig_destroy__ = _mupdf.delete_FzErrorLibrary
  43969. # Register FzErrorLibrary in _mupdf:
  43970. _mupdf.FzErrorLibrary_swigregister(FzErrorLibrary)
  43971. class FzErrorArgument(FzErrorBase):
  43972. r"""For `FZ_ERROR_ARGUMENT`."""
  43973. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43974. __repr__ = _swig_repr
  43975. def __init__(self, message):
  43976. _mupdf.FzErrorArgument_swiginit(self, _mupdf.new_FzErrorArgument(message))
  43977. __swig_destroy__ = _mupdf.delete_FzErrorArgument
  43978. # Register FzErrorArgument in _mupdf:
  43979. _mupdf.FzErrorArgument_swigregister(FzErrorArgument)
  43980. class FzErrorLimit(FzErrorBase):
  43981. r"""For `FZ_ERROR_LIMIT`."""
  43982. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43983. __repr__ = _swig_repr
  43984. def __init__(self, message):
  43985. _mupdf.FzErrorLimit_swiginit(self, _mupdf.new_FzErrorLimit(message))
  43986. __swig_destroy__ = _mupdf.delete_FzErrorLimit
  43987. # Register FzErrorLimit in _mupdf:
  43988. _mupdf.FzErrorLimit_swigregister(FzErrorLimit)
  43989. class FzErrorUnsupported(FzErrorBase):
  43990. r"""For `FZ_ERROR_UNSUPPORTED`."""
  43991. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43992. __repr__ = _swig_repr
  43993. def __init__(self, message):
  43994. _mupdf.FzErrorUnsupported_swiginit(self, _mupdf.new_FzErrorUnsupported(message))
  43995. __swig_destroy__ = _mupdf.delete_FzErrorUnsupported
  43996. # Register FzErrorUnsupported in _mupdf:
  43997. _mupdf.FzErrorUnsupported_swigregister(FzErrorUnsupported)
  43998. class FzErrorFormat(FzErrorBase):
  43999. r"""For `FZ_ERROR_FORMAT`."""
  44000. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44001. __repr__ = _swig_repr
  44002. def __init__(self, message):
  44003. _mupdf.FzErrorFormat_swiginit(self, _mupdf.new_FzErrorFormat(message))
  44004. __swig_destroy__ = _mupdf.delete_FzErrorFormat
  44005. # Register FzErrorFormat in _mupdf:
  44006. _mupdf.FzErrorFormat_swigregister(FzErrorFormat)
  44007. class FzErrorSyntax(FzErrorBase):
  44008. r"""For `FZ_ERROR_SYNTAX`."""
  44009. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44010. __repr__ = _swig_repr
  44011. def __init__(self, message):
  44012. _mupdf.FzErrorSyntax_swiginit(self, _mupdf.new_FzErrorSyntax(message))
  44013. __swig_destroy__ = _mupdf.delete_FzErrorSyntax
  44014. # Register FzErrorSyntax in _mupdf:
  44015. _mupdf.FzErrorSyntax_swigregister(FzErrorSyntax)
  44016. class FzErrorTrylater(FzErrorBase):
  44017. r"""For `FZ_ERROR_TRYLATER`."""
  44018. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44019. __repr__ = _swig_repr
  44020. def __init__(self, message):
  44021. _mupdf.FzErrorTrylater_swiginit(self, _mupdf.new_FzErrorTrylater(message))
  44022. __swig_destroy__ = _mupdf.delete_FzErrorTrylater
  44023. # Register FzErrorTrylater in _mupdf:
  44024. _mupdf.FzErrorTrylater_swigregister(FzErrorTrylater)
  44025. class FzErrorAbort(FzErrorBase):
  44026. r"""For `FZ_ERROR_ABORT`."""
  44027. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44028. __repr__ = _swig_repr
  44029. def __init__(self, message):
  44030. _mupdf.FzErrorAbort_swiginit(self, _mupdf.new_FzErrorAbort(message))
  44031. __swig_destroy__ = _mupdf.delete_FzErrorAbort
  44032. # Register FzErrorAbort in _mupdf:
  44033. _mupdf.FzErrorAbort_swigregister(FzErrorAbort)
  44034. class FzErrorRepaired(FzErrorBase):
  44035. r"""For `FZ_ERROR_REPAIRED`."""
  44036. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44037. __repr__ = _swig_repr
  44038. def __init__(self, message):
  44039. _mupdf.FzErrorRepaired_swiginit(self, _mupdf.new_FzErrorRepaired(message))
  44040. __swig_destroy__ = _mupdf.delete_FzErrorRepaired
  44041. # Register FzErrorRepaired in _mupdf:
  44042. _mupdf.FzErrorRepaired_swigregister(FzErrorRepaired)
  44043. def internal_throw_exception(ctx):
  44044. r"""Throw exception appropriate for error in `ctx`."""
  44045. return _mupdf.internal_throw_exception(ctx)
  44046. def to_stdstring(s):
  44047. return _mupdf.to_stdstring(s)
  44048. def py_repr(x):
  44049. return _mupdf.py_repr(x)
  44050. def py_str(x):
  44051. return _mupdf.py_str(x)
  44052. def ll_fz_buffer_to_bytes_internal(buffer, clear):
  44053. return _mupdf.ll_fz_buffer_to_bytes_internal(buffer, clear)
  44054. def python_memoryview_from_memory(data, size, writable):
  44055. return _mupdf.python_memoryview_from_memory(data, size, writable)
  44056. def ll_fz_buffer_storage_memoryview(buffer, writable):
  44057. return _mupdf.ll_fz_buffer_storage_memoryview(buffer, writable)
  44058. def raw_to_python_bytes(*args):
  44059. return _mupdf.raw_to_python_bytes(*args)
  44060. def python_buffer_data(PYTHON_BUFFER_DATA):
  44061. return _mupdf.python_buffer_data(PYTHON_BUFFER_DATA)
  44062. def python_mutable_buffer_data(PYTHON_BUFFER_MUTABLE_DATA):
  44063. return _mupdf.python_mutable_buffer_data(PYTHON_BUFFER_MUTABLE_DATA)
  44064. def obj_enum_to_obj(n):
  44065. return _mupdf.obj_enum_to_obj(n)
  44066. def ll_pdf_set_annot_color2(annot, n, color0, color1, color2, color3):
  44067. return _mupdf.ll_pdf_set_annot_color2(annot, n, color0, color1, color2, color3)
  44068. def ll_pdf_set_annot_interior_color2(annot, n, color0, color1, color2, color3):
  44069. return _mupdf.ll_pdf_set_annot_interior_color2(annot, n, color0, color1, color2, color3)
  44070. def ll_fz_fill_text2(dev, text, ctm, colorspace, color0, color1, color2, color3, alpha, color_params):
  44071. return _mupdf.ll_fz_fill_text2(dev, text, ctm, colorspace, color0, color1, color2, color3, alpha, color_params)
  44072. def fz_memrnd2(length):
  44073. return _mupdf.fz_memrnd2(length)
  44074. def ll_fz_pixmap_copy_raw(pm, samples):
  44075. return _mupdf.ll_fz_pixmap_copy_raw(pm, samples)
  44076. def fz_runetochar2(rune):
  44077. return _mupdf.fz_runetochar2(rune)
  44078. def ll_fz_make_bookmark2(doc, loc):
  44079. return _mupdf.ll_fz_make_bookmark2(doc, loc)
  44080. def ll_fz_lookup_bookmark2(doc, mark):
  44081. return _mupdf.ll_fz_lookup_bookmark2(doc, mark)
  44082. def fz_lookup_bookmark2(doc, mark):
  44083. return _mupdf.fz_lookup_bookmark2(doc, mark)
  44084. class fz_convert_color2_v(object):
  44085. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44086. __repr__ = _swig_repr
  44087. v0 = property(_mupdf.fz_convert_color2_v_v0_get, _mupdf.fz_convert_color2_v_v0_set)
  44088. v1 = property(_mupdf.fz_convert_color2_v_v1_get, _mupdf.fz_convert_color2_v_v1_set)
  44089. v2 = property(_mupdf.fz_convert_color2_v_v2_get, _mupdf.fz_convert_color2_v_v2_set)
  44090. v3 = property(_mupdf.fz_convert_color2_v_v3_get, _mupdf.fz_convert_color2_v_v3_set)
  44091. def __init__(self):
  44092. _mupdf.fz_convert_color2_v_swiginit(self, _mupdf.new_fz_convert_color2_v())
  44093. __swig_destroy__ = _mupdf.delete_fz_convert_color2_v
  44094. # Register fz_convert_color2_v in _mupdf:
  44095. _mupdf.fz_convert_color2_v_swigregister(fz_convert_color2_v)
  44096. def ll_fz_convert_color2(*args):
  44097. return _mupdf.ll_fz_convert_color2(*args)
  44098. class DiagnosticCallback(object):
  44099. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44100. __repr__ = _swig_repr
  44101. def __init__(self, description):
  44102. if self.__class__ == DiagnosticCallback:
  44103. _self = None
  44104. else:
  44105. _self = self
  44106. _mupdf.DiagnosticCallback_swiginit(self, _mupdf.new_DiagnosticCallback(_self, description))
  44107. def _print(self, message):
  44108. return _mupdf.DiagnosticCallback__print(self, message)
  44109. __swig_destroy__ = _mupdf.delete_DiagnosticCallback
  44110. @staticmethod
  44111. def s_print(self0, message):
  44112. return _mupdf.DiagnosticCallback_s_print(self0, message)
  44113. m_description = property(_mupdf.DiagnosticCallback_m_description_get, _mupdf.DiagnosticCallback_m_description_set)
  44114. def __disown__(self):
  44115. self.this.disown()
  44116. _mupdf.disown_DiagnosticCallback(self)
  44117. return weakref.proxy(self)
  44118. # Register DiagnosticCallback in _mupdf:
  44119. _mupdf.DiagnosticCallback_swigregister(DiagnosticCallback)
  44120. class StoryPositionsCallback(object):
  44121. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44122. __repr__ = _swig_repr
  44123. def __init__(self):
  44124. if self.__class__ == StoryPositionsCallback:
  44125. _self = None
  44126. else:
  44127. _self = self
  44128. _mupdf.StoryPositionsCallback_swiginit(self, _mupdf.new_StoryPositionsCallback(_self, ))
  44129. def call(self, position):
  44130. return _mupdf.StoryPositionsCallback_call(self, position)
  44131. @staticmethod
  44132. def s_call(ctx, self0, position):
  44133. return _mupdf.StoryPositionsCallback_s_call(ctx, self0, position)
  44134. __swig_destroy__ = _mupdf.delete_StoryPositionsCallback
  44135. def __disown__(self):
  44136. self.this.disown()
  44137. _mupdf.disown_StoryPositionsCallback(self)
  44138. return weakref.proxy(self)
  44139. # Register StoryPositionsCallback in _mupdf:
  44140. _mupdf.StoryPositionsCallback_swigregister(StoryPositionsCallback)
  44141. def ll_fz_story_positions_director(story, cb):
  44142. return _mupdf.ll_fz_story_positions_director(story, cb)
  44143. def Pixmap_set_alpha_helper(balen, n, data_len, zero_out, data, pix, premultiply, bground, colors, bgcolor):
  44144. return _mupdf.Pixmap_set_alpha_helper(balen, n, data_len, zero_out, data, pix, premultiply, bground, colors, bgcolor)
  44145. def page_merge_helper(old_annots, graft_map, doc_des, new_annots, n):
  44146. return _mupdf.page_merge_helper(old_annots, graft_map, doc_des, new_annots, n)
  44147. class ll_fz_bidi_fragment_text_outparams(object):
  44148. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44149. __repr__ = _swig_repr
  44150. baseDir = property(_mupdf.ll_fz_bidi_fragment_text_outparams_baseDir_get, _mupdf.ll_fz_bidi_fragment_text_outparams_baseDir_set)
  44151. def __init__(self):
  44152. _mupdf.ll_fz_bidi_fragment_text_outparams_swiginit(self, _mupdf.new_ll_fz_bidi_fragment_text_outparams())
  44153. __swig_destroy__ = _mupdf.delete_ll_fz_bidi_fragment_text_outparams
  44154. # Register ll_fz_bidi_fragment_text_outparams in _mupdf:
  44155. _mupdf.ll_fz_bidi_fragment_text_outparams_swigregister(ll_fz_bidi_fragment_text_outparams)
  44156. def ll_fz_bidi_fragment_text_outparams_fn(text, textlen, callback, arg, flags, outparams):
  44157. return _mupdf.ll_fz_bidi_fragment_text_outparams_fn(text, textlen, callback, arg, flags, outparams)
  44158. class ll_fz_bitmap_details_outparams(object):
  44159. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44160. __repr__ = _swig_repr
  44161. w = property(_mupdf.ll_fz_bitmap_details_outparams_w_get, _mupdf.ll_fz_bitmap_details_outparams_w_set)
  44162. h = property(_mupdf.ll_fz_bitmap_details_outparams_h_get, _mupdf.ll_fz_bitmap_details_outparams_h_set)
  44163. n = property(_mupdf.ll_fz_bitmap_details_outparams_n_get, _mupdf.ll_fz_bitmap_details_outparams_n_set)
  44164. stride = property(_mupdf.ll_fz_bitmap_details_outparams_stride_get, _mupdf.ll_fz_bitmap_details_outparams_stride_set)
  44165. def __init__(self):
  44166. _mupdf.ll_fz_bitmap_details_outparams_swiginit(self, _mupdf.new_ll_fz_bitmap_details_outparams())
  44167. __swig_destroy__ = _mupdf.delete_ll_fz_bitmap_details_outparams
  44168. # Register ll_fz_bitmap_details_outparams in _mupdf:
  44169. _mupdf.ll_fz_bitmap_details_outparams_swigregister(ll_fz_bitmap_details_outparams)
  44170. def ll_fz_bitmap_details_outparams_fn(bitmap, outparams):
  44171. return _mupdf.ll_fz_bitmap_details_outparams_fn(bitmap, outparams)
  44172. class ll_fz_buffer_extract_outparams(object):
  44173. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44174. __repr__ = _swig_repr
  44175. data = property(_mupdf.ll_fz_buffer_extract_outparams_data_get, _mupdf.ll_fz_buffer_extract_outparams_data_set)
  44176. def __init__(self):
  44177. _mupdf.ll_fz_buffer_extract_outparams_swiginit(self, _mupdf.new_ll_fz_buffer_extract_outparams())
  44178. __swig_destroy__ = _mupdf.delete_ll_fz_buffer_extract_outparams
  44179. # Register ll_fz_buffer_extract_outparams in _mupdf:
  44180. _mupdf.ll_fz_buffer_extract_outparams_swigregister(ll_fz_buffer_extract_outparams)
  44181. def ll_fz_buffer_extract_outparams_fn(buf, outparams):
  44182. return _mupdf.ll_fz_buffer_extract_outparams_fn(buf, outparams)
  44183. class ll_fz_buffer_storage_outparams(object):
  44184. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44185. __repr__ = _swig_repr
  44186. datap = property(_mupdf.ll_fz_buffer_storage_outparams_datap_get, _mupdf.ll_fz_buffer_storage_outparams_datap_set)
  44187. def __init__(self):
  44188. _mupdf.ll_fz_buffer_storage_outparams_swiginit(self, _mupdf.new_ll_fz_buffer_storage_outparams())
  44189. __swig_destroy__ = _mupdf.delete_ll_fz_buffer_storage_outparams
  44190. # Register ll_fz_buffer_storage_outparams in _mupdf:
  44191. _mupdf.ll_fz_buffer_storage_outparams_swigregister(ll_fz_buffer_storage_outparams)
  44192. def ll_fz_buffer_storage_outparams_fn(buf, outparams):
  44193. return _mupdf.ll_fz_buffer_storage_outparams_fn(buf, outparams)
  44194. class ll_fz_chartorune_outparams(object):
  44195. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44196. __repr__ = _swig_repr
  44197. rune = property(_mupdf.ll_fz_chartorune_outparams_rune_get, _mupdf.ll_fz_chartorune_outparams_rune_set)
  44198. def __init__(self):
  44199. _mupdf.ll_fz_chartorune_outparams_swiginit(self, _mupdf.new_ll_fz_chartorune_outparams())
  44200. __swig_destroy__ = _mupdf.delete_ll_fz_chartorune_outparams
  44201. # Register ll_fz_chartorune_outparams in _mupdf:
  44202. _mupdf.ll_fz_chartorune_outparams_swigregister(ll_fz_chartorune_outparams)
  44203. def ll_fz_chartorune_outparams_fn(str, outparams):
  44204. return _mupdf.ll_fz_chartorune_outparams_fn(str, outparams)
  44205. class ll_fz_chartorunen_outparams(object):
  44206. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44207. __repr__ = _swig_repr
  44208. rune = property(_mupdf.ll_fz_chartorunen_outparams_rune_get, _mupdf.ll_fz_chartorunen_outparams_rune_set)
  44209. def __init__(self):
  44210. _mupdf.ll_fz_chartorunen_outparams_swiginit(self, _mupdf.new_ll_fz_chartorunen_outparams())
  44211. __swig_destroy__ = _mupdf.delete_ll_fz_chartorunen_outparams
  44212. # Register ll_fz_chartorunen_outparams in _mupdf:
  44213. _mupdf.ll_fz_chartorunen_outparams_swigregister(ll_fz_chartorunen_outparams)
  44214. def ll_fz_chartorunen_outparams_fn(str, n, outparams):
  44215. return _mupdf.ll_fz_chartorunen_outparams_fn(str, n, outparams)
  44216. class ll_fz_clamp_color_outparams(object):
  44217. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44218. __repr__ = _swig_repr
  44219. out = property(_mupdf.ll_fz_clamp_color_outparams_out_get, _mupdf.ll_fz_clamp_color_outparams_out_set)
  44220. def __init__(self):
  44221. _mupdf.ll_fz_clamp_color_outparams_swiginit(self, _mupdf.new_ll_fz_clamp_color_outparams())
  44222. __swig_destroy__ = _mupdf.delete_ll_fz_clamp_color_outparams
  44223. # Register ll_fz_clamp_color_outparams in _mupdf:
  44224. _mupdf.ll_fz_clamp_color_outparams_swigregister(ll_fz_clamp_color_outparams)
  44225. def ll_fz_clamp_color_outparams_fn(cs, _in, outparams):
  44226. return _mupdf.ll_fz_clamp_color_outparams_fn(cs, _in, outparams)
  44227. class ll_fz_compress_brotli_outparams(object):
  44228. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44229. __repr__ = _swig_repr
  44230. compressed_length = property(_mupdf.ll_fz_compress_brotli_outparams_compressed_length_get, _mupdf.ll_fz_compress_brotli_outparams_compressed_length_set)
  44231. def __init__(self):
  44232. _mupdf.ll_fz_compress_brotli_outparams_swiginit(self, _mupdf.new_ll_fz_compress_brotli_outparams())
  44233. __swig_destroy__ = _mupdf.delete_ll_fz_compress_brotli_outparams
  44234. # Register ll_fz_compress_brotli_outparams in _mupdf:
  44235. _mupdf.ll_fz_compress_brotli_outparams_swigregister(ll_fz_compress_brotli_outparams)
  44236. def ll_fz_compress_brotli_outparams_fn(dest, source, source_length, level, outparams):
  44237. return _mupdf.ll_fz_compress_brotli_outparams_fn(dest, source, source_length, level, outparams)
  44238. class ll_fz_convert_color_outparams(object):
  44239. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44240. __repr__ = _swig_repr
  44241. dv = property(_mupdf.ll_fz_convert_color_outparams_dv_get, _mupdf.ll_fz_convert_color_outparams_dv_set)
  44242. def __init__(self):
  44243. _mupdf.ll_fz_convert_color_outparams_swiginit(self, _mupdf.new_ll_fz_convert_color_outparams())
  44244. __swig_destroy__ = _mupdf.delete_ll_fz_convert_color_outparams
  44245. # Register ll_fz_convert_color_outparams in _mupdf:
  44246. _mupdf.ll_fz_convert_color_outparams_swigregister(ll_fz_convert_color_outparams)
  44247. def ll_fz_convert_color_outparams_fn(ss, sv, ds, _is, params, outparams):
  44248. return _mupdf.ll_fz_convert_color_outparams_fn(ss, sv, ds, _is, params, outparams)
  44249. class ll_fz_convert_error_outparams(object):
  44250. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44251. __repr__ = _swig_repr
  44252. code = property(_mupdf.ll_fz_convert_error_outparams_code_get, _mupdf.ll_fz_convert_error_outparams_code_set)
  44253. def __init__(self):
  44254. _mupdf.ll_fz_convert_error_outparams_swiginit(self, _mupdf.new_ll_fz_convert_error_outparams())
  44255. __swig_destroy__ = _mupdf.delete_ll_fz_convert_error_outparams
  44256. # Register ll_fz_convert_error_outparams in _mupdf:
  44257. _mupdf.ll_fz_convert_error_outparams_swigregister(ll_fz_convert_error_outparams)
  44258. def ll_fz_convert_error_outparams_fn(outparams):
  44259. return _mupdf.ll_fz_convert_error_outparams_fn(outparams)
  44260. class ll_fz_convert_separation_colors_outparams(object):
  44261. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44262. __repr__ = _swig_repr
  44263. dst_color = property(_mupdf.ll_fz_convert_separation_colors_outparams_dst_color_get, _mupdf.ll_fz_convert_separation_colors_outparams_dst_color_set)
  44264. def __init__(self):
  44265. _mupdf.ll_fz_convert_separation_colors_outparams_swiginit(self, _mupdf.new_ll_fz_convert_separation_colors_outparams())
  44266. __swig_destroy__ = _mupdf.delete_ll_fz_convert_separation_colors_outparams
  44267. # Register ll_fz_convert_separation_colors_outparams in _mupdf:
  44268. _mupdf.ll_fz_convert_separation_colors_outparams_swigregister(ll_fz_convert_separation_colors_outparams)
  44269. def ll_fz_convert_separation_colors_outparams_fn(src_cs, src_color, dst_seps, dst_cs, color_params, outparams):
  44270. return _mupdf.ll_fz_convert_separation_colors_outparams_fn(src_cs, src_color, dst_seps, dst_cs, color_params, outparams)
  44271. class ll_fz_decode_barcode_from_display_list_outparams(object):
  44272. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44273. __repr__ = _swig_repr
  44274. type = property(_mupdf.ll_fz_decode_barcode_from_display_list_outparams_type_get, _mupdf.ll_fz_decode_barcode_from_display_list_outparams_type_set)
  44275. def __init__(self):
  44276. _mupdf.ll_fz_decode_barcode_from_display_list_outparams_swiginit(self, _mupdf.new_ll_fz_decode_barcode_from_display_list_outparams())
  44277. __swig_destroy__ = _mupdf.delete_ll_fz_decode_barcode_from_display_list_outparams
  44278. # Register ll_fz_decode_barcode_from_display_list_outparams in _mupdf:
  44279. _mupdf.ll_fz_decode_barcode_from_display_list_outparams_swigregister(ll_fz_decode_barcode_from_display_list_outparams)
  44280. def ll_fz_decode_barcode_from_display_list_outparams_fn(list, subarea, rotate, outparams):
  44281. return _mupdf.ll_fz_decode_barcode_from_display_list_outparams_fn(list, subarea, rotate, outparams)
  44282. class ll_fz_decode_barcode_from_display_list2_outparams(object):
  44283. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44284. __repr__ = _swig_repr
  44285. type = property(_mupdf.ll_fz_decode_barcode_from_display_list2_outparams_type_get, _mupdf.ll_fz_decode_barcode_from_display_list2_outparams_type_set)
  44286. def __init__(self):
  44287. _mupdf.ll_fz_decode_barcode_from_display_list2_outparams_swiginit(self, _mupdf.new_ll_fz_decode_barcode_from_display_list2_outparams())
  44288. __swig_destroy__ = _mupdf.delete_ll_fz_decode_barcode_from_display_list2_outparams
  44289. # Register ll_fz_decode_barcode_from_display_list2_outparams in _mupdf:
  44290. _mupdf.ll_fz_decode_barcode_from_display_list2_outparams_swigregister(ll_fz_decode_barcode_from_display_list2_outparams)
  44291. def ll_fz_decode_barcode_from_display_list2_outparams_fn(list, subarea, rotate, outparams):
  44292. return _mupdf.ll_fz_decode_barcode_from_display_list2_outparams_fn(list, subarea, rotate, outparams)
  44293. class ll_fz_decode_barcode_from_page_outparams(object):
  44294. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44295. __repr__ = _swig_repr
  44296. type = property(_mupdf.ll_fz_decode_barcode_from_page_outparams_type_get, _mupdf.ll_fz_decode_barcode_from_page_outparams_type_set)
  44297. def __init__(self):
  44298. _mupdf.ll_fz_decode_barcode_from_page_outparams_swiginit(self, _mupdf.new_ll_fz_decode_barcode_from_page_outparams())
  44299. __swig_destroy__ = _mupdf.delete_ll_fz_decode_barcode_from_page_outparams
  44300. # Register ll_fz_decode_barcode_from_page_outparams in _mupdf:
  44301. _mupdf.ll_fz_decode_barcode_from_page_outparams_swigregister(ll_fz_decode_barcode_from_page_outparams)
  44302. def ll_fz_decode_barcode_from_page_outparams_fn(page, subarea, rotate, outparams):
  44303. return _mupdf.ll_fz_decode_barcode_from_page_outparams_fn(page, subarea, rotate, outparams)
  44304. class ll_fz_decode_barcode_from_page2_outparams(object):
  44305. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44306. __repr__ = _swig_repr
  44307. type = property(_mupdf.ll_fz_decode_barcode_from_page2_outparams_type_get, _mupdf.ll_fz_decode_barcode_from_page2_outparams_type_set)
  44308. def __init__(self):
  44309. _mupdf.ll_fz_decode_barcode_from_page2_outparams_swiginit(self, _mupdf.new_ll_fz_decode_barcode_from_page2_outparams())
  44310. __swig_destroy__ = _mupdf.delete_ll_fz_decode_barcode_from_page2_outparams
  44311. # Register ll_fz_decode_barcode_from_page2_outparams in _mupdf:
  44312. _mupdf.ll_fz_decode_barcode_from_page2_outparams_swigregister(ll_fz_decode_barcode_from_page2_outparams)
  44313. def ll_fz_decode_barcode_from_page2_outparams_fn(page, subarea, rotate, outparams):
  44314. return _mupdf.ll_fz_decode_barcode_from_page2_outparams_fn(page, subarea, rotate, outparams)
  44315. class ll_fz_decode_barcode_from_pixmap_outparams(object):
  44316. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44317. __repr__ = _swig_repr
  44318. type = property(_mupdf.ll_fz_decode_barcode_from_pixmap_outparams_type_get, _mupdf.ll_fz_decode_barcode_from_pixmap_outparams_type_set)
  44319. def __init__(self):
  44320. _mupdf.ll_fz_decode_barcode_from_pixmap_outparams_swiginit(self, _mupdf.new_ll_fz_decode_barcode_from_pixmap_outparams())
  44321. __swig_destroy__ = _mupdf.delete_ll_fz_decode_barcode_from_pixmap_outparams
  44322. # Register ll_fz_decode_barcode_from_pixmap_outparams in _mupdf:
  44323. _mupdf.ll_fz_decode_barcode_from_pixmap_outparams_swigregister(ll_fz_decode_barcode_from_pixmap_outparams)
  44324. def ll_fz_decode_barcode_from_pixmap_outparams_fn(pix, rotate, outparams):
  44325. return _mupdf.ll_fz_decode_barcode_from_pixmap_outparams_fn(pix, rotate, outparams)
  44326. class ll_fz_decode_barcode_from_pixmap2_outparams(object):
  44327. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44328. __repr__ = _swig_repr
  44329. type = property(_mupdf.ll_fz_decode_barcode_from_pixmap2_outparams_type_get, _mupdf.ll_fz_decode_barcode_from_pixmap2_outparams_type_set)
  44330. def __init__(self):
  44331. _mupdf.ll_fz_decode_barcode_from_pixmap2_outparams_swiginit(self, _mupdf.new_ll_fz_decode_barcode_from_pixmap2_outparams())
  44332. __swig_destroy__ = _mupdf.delete_ll_fz_decode_barcode_from_pixmap2_outparams
  44333. # Register ll_fz_decode_barcode_from_pixmap2_outparams in _mupdf:
  44334. _mupdf.ll_fz_decode_barcode_from_pixmap2_outparams_swigregister(ll_fz_decode_barcode_from_pixmap2_outparams)
  44335. def ll_fz_decode_barcode_from_pixmap2_outparams_fn(pix, rotate, outparams):
  44336. return _mupdf.ll_fz_decode_barcode_from_pixmap2_outparams_fn(pix, rotate, outparams)
  44337. class ll_fz_decomp_image_from_stream_outparams(object):
  44338. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44339. __repr__ = _swig_repr
  44340. l2extra = property(_mupdf.ll_fz_decomp_image_from_stream_outparams_l2extra_get, _mupdf.ll_fz_decomp_image_from_stream_outparams_l2extra_set)
  44341. def __init__(self):
  44342. _mupdf.ll_fz_decomp_image_from_stream_outparams_swiginit(self, _mupdf.new_ll_fz_decomp_image_from_stream_outparams())
  44343. __swig_destroy__ = _mupdf.delete_ll_fz_decomp_image_from_stream_outparams
  44344. # Register ll_fz_decomp_image_from_stream_outparams in _mupdf:
  44345. _mupdf.ll_fz_decomp_image_from_stream_outparams_swigregister(ll_fz_decomp_image_from_stream_outparams)
  44346. def ll_fz_decomp_image_from_stream_outparams_fn(stm, image, subarea, indexed, l2factor, outparams):
  44347. return _mupdf.ll_fz_decomp_image_from_stream_outparams_fn(stm, image, subarea, indexed, l2factor, outparams)
  44348. class ll_fz_deflate_outparams(object):
  44349. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44350. __repr__ = _swig_repr
  44351. compressed_length = property(_mupdf.ll_fz_deflate_outparams_compressed_length_get, _mupdf.ll_fz_deflate_outparams_compressed_length_set)
  44352. def __init__(self):
  44353. _mupdf.ll_fz_deflate_outparams_swiginit(self, _mupdf.new_ll_fz_deflate_outparams())
  44354. __swig_destroy__ = _mupdf.delete_ll_fz_deflate_outparams
  44355. # Register ll_fz_deflate_outparams in _mupdf:
  44356. _mupdf.ll_fz_deflate_outparams_swigregister(ll_fz_deflate_outparams)
  44357. def ll_fz_deflate_outparams_fn(dest, source, source_length, level, outparams):
  44358. return _mupdf.ll_fz_deflate_outparams_fn(dest, source, source_length, level, outparams)
  44359. class ll_fz_dom_get_attribute_outparams(object):
  44360. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44361. __repr__ = _swig_repr
  44362. att = property(_mupdf.ll_fz_dom_get_attribute_outparams_att_get, _mupdf.ll_fz_dom_get_attribute_outparams_att_set)
  44363. def __init__(self):
  44364. _mupdf.ll_fz_dom_get_attribute_outparams_swiginit(self, _mupdf.new_ll_fz_dom_get_attribute_outparams())
  44365. __swig_destroy__ = _mupdf.delete_ll_fz_dom_get_attribute_outparams
  44366. # Register ll_fz_dom_get_attribute_outparams in _mupdf:
  44367. _mupdf.ll_fz_dom_get_attribute_outparams_swigregister(ll_fz_dom_get_attribute_outparams)
  44368. def ll_fz_dom_get_attribute_outparams_fn(elt, i, outparams):
  44369. return _mupdf.ll_fz_dom_get_attribute_outparams_fn(elt, i, outparams)
  44370. class ll_fz_drop_imp_outparams(object):
  44371. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44372. __repr__ = _swig_repr
  44373. refs = property(_mupdf.ll_fz_drop_imp_outparams_refs_get, _mupdf.ll_fz_drop_imp_outparams_refs_set)
  44374. def __init__(self):
  44375. _mupdf.ll_fz_drop_imp_outparams_swiginit(self, _mupdf.new_ll_fz_drop_imp_outparams())
  44376. __swig_destroy__ = _mupdf.delete_ll_fz_drop_imp_outparams
  44377. # Register ll_fz_drop_imp_outparams in _mupdf:
  44378. _mupdf.ll_fz_drop_imp_outparams_swigregister(ll_fz_drop_imp_outparams)
  44379. def ll_fz_drop_imp_outparams_fn(p, outparams):
  44380. return _mupdf.ll_fz_drop_imp_outparams_fn(p, outparams)
  44381. class ll_fz_drop_imp16_outparams(object):
  44382. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44383. __repr__ = _swig_repr
  44384. refs = property(_mupdf.ll_fz_drop_imp16_outparams_refs_get, _mupdf.ll_fz_drop_imp16_outparams_refs_set)
  44385. def __init__(self):
  44386. _mupdf.ll_fz_drop_imp16_outparams_swiginit(self, _mupdf.new_ll_fz_drop_imp16_outparams())
  44387. __swig_destroy__ = _mupdf.delete_ll_fz_drop_imp16_outparams
  44388. # Register ll_fz_drop_imp16_outparams in _mupdf:
  44389. _mupdf.ll_fz_drop_imp16_outparams_swigregister(ll_fz_drop_imp16_outparams)
  44390. def ll_fz_drop_imp16_outparams_fn(p, outparams):
  44391. return _mupdf.ll_fz_drop_imp16_outparams_fn(p, outparams)
  44392. class ll_fz_encode_character_with_fallback_outparams(object):
  44393. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44394. __repr__ = _swig_repr
  44395. out_font = property(_mupdf.ll_fz_encode_character_with_fallback_outparams_out_font_get, _mupdf.ll_fz_encode_character_with_fallback_outparams_out_font_set)
  44396. def __init__(self):
  44397. _mupdf.ll_fz_encode_character_with_fallback_outparams_swiginit(self, _mupdf.new_ll_fz_encode_character_with_fallback_outparams())
  44398. __swig_destroy__ = _mupdf.delete_ll_fz_encode_character_with_fallback_outparams
  44399. # Register ll_fz_encode_character_with_fallback_outparams in _mupdf:
  44400. _mupdf.ll_fz_encode_character_with_fallback_outparams_swigregister(ll_fz_encode_character_with_fallback_outparams)
  44401. def ll_fz_encode_character_with_fallback_outparams_fn(font, unicode, script, language, outparams):
  44402. return _mupdf.ll_fz_encode_character_with_fallback_outparams_fn(font, unicode, script, language, outparams)
  44403. class ll_fz_error_callback_outparams(object):
  44404. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44405. __repr__ = _swig_repr
  44406. user = property(_mupdf.ll_fz_error_callback_outparams_user_get, _mupdf.ll_fz_error_callback_outparams_user_set)
  44407. def __init__(self):
  44408. _mupdf.ll_fz_error_callback_outparams_swiginit(self, _mupdf.new_ll_fz_error_callback_outparams())
  44409. __swig_destroy__ = _mupdf.delete_ll_fz_error_callback_outparams
  44410. # Register ll_fz_error_callback_outparams in _mupdf:
  44411. _mupdf.ll_fz_error_callback_outparams_swigregister(ll_fz_error_callback_outparams)
  44412. def ll_fz_error_callback_outparams_fn(outparams):
  44413. return _mupdf.ll_fz_error_callback_outparams_fn(outparams)
  44414. class ll_fz_eval_function_outparams(object):
  44415. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44416. __repr__ = _swig_repr
  44417. out = property(_mupdf.ll_fz_eval_function_outparams_out_get, _mupdf.ll_fz_eval_function_outparams_out_set)
  44418. def __init__(self):
  44419. _mupdf.ll_fz_eval_function_outparams_swiginit(self, _mupdf.new_ll_fz_eval_function_outparams())
  44420. __swig_destroy__ = _mupdf.delete_ll_fz_eval_function_outparams
  44421. # Register ll_fz_eval_function_outparams in _mupdf:
  44422. _mupdf.ll_fz_eval_function_outparams_swigregister(ll_fz_eval_function_outparams)
  44423. def ll_fz_eval_function_outparams_fn(func, _in, inlen, outlen, outparams):
  44424. return _mupdf.ll_fz_eval_function_outparams_fn(func, _in, inlen, outlen, outparams)
  44425. class ll_fz_fill_pixmap_with_color_outparams(object):
  44426. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44427. __repr__ = _swig_repr
  44428. color = property(_mupdf.ll_fz_fill_pixmap_with_color_outparams_color_get, _mupdf.ll_fz_fill_pixmap_with_color_outparams_color_set)
  44429. def __init__(self):
  44430. _mupdf.ll_fz_fill_pixmap_with_color_outparams_swiginit(self, _mupdf.new_ll_fz_fill_pixmap_with_color_outparams())
  44431. __swig_destroy__ = _mupdf.delete_ll_fz_fill_pixmap_with_color_outparams
  44432. # Register ll_fz_fill_pixmap_with_color_outparams in _mupdf:
  44433. _mupdf.ll_fz_fill_pixmap_with_color_outparams_swigregister(ll_fz_fill_pixmap_with_color_outparams)
  44434. def ll_fz_fill_pixmap_with_color_outparams_fn(pix, colorspace, color_params, outparams):
  44435. return _mupdf.ll_fz_fill_pixmap_with_color_outparams_fn(pix, colorspace, color_params, outparams)
  44436. class ll_fz_get_pixmap_from_image_outparams(object):
  44437. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44438. __repr__ = _swig_repr
  44439. w = property(_mupdf.ll_fz_get_pixmap_from_image_outparams_w_get, _mupdf.ll_fz_get_pixmap_from_image_outparams_w_set)
  44440. h = property(_mupdf.ll_fz_get_pixmap_from_image_outparams_h_get, _mupdf.ll_fz_get_pixmap_from_image_outparams_h_set)
  44441. def __init__(self):
  44442. _mupdf.ll_fz_get_pixmap_from_image_outparams_swiginit(self, _mupdf.new_ll_fz_get_pixmap_from_image_outparams())
  44443. __swig_destroy__ = _mupdf.delete_ll_fz_get_pixmap_from_image_outparams
  44444. # Register ll_fz_get_pixmap_from_image_outparams in _mupdf:
  44445. _mupdf.ll_fz_get_pixmap_from_image_outparams_swigregister(ll_fz_get_pixmap_from_image_outparams)
  44446. def ll_fz_get_pixmap_from_image_outparams_fn(image, subarea, ctm, outparams):
  44447. return _mupdf.ll_fz_get_pixmap_from_image_outparams_fn(image, subarea, ctm, outparams)
  44448. class ll_fz_getopt_outparams(object):
  44449. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44450. __repr__ = _swig_repr
  44451. nargv = property(_mupdf.ll_fz_getopt_outparams_nargv_get, _mupdf.ll_fz_getopt_outparams_nargv_set)
  44452. def __init__(self):
  44453. _mupdf.ll_fz_getopt_outparams_swiginit(self, _mupdf.new_ll_fz_getopt_outparams())
  44454. __swig_destroy__ = _mupdf.delete_ll_fz_getopt_outparams
  44455. # Register ll_fz_getopt_outparams in _mupdf:
  44456. _mupdf.ll_fz_getopt_outparams_swigregister(ll_fz_getopt_outparams)
  44457. def ll_fz_getopt_outparams_fn(nargc, ostr, outparams):
  44458. return _mupdf.ll_fz_getopt_outparams_fn(nargc, ostr, outparams)
  44459. class ll_fz_getopt_long_outparams(object):
  44460. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44461. __repr__ = _swig_repr
  44462. nargv = property(_mupdf.ll_fz_getopt_long_outparams_nargv_get, _mupdf.ll_fz_getopt_long_outparams_nargv_set)
  44463. def __init__(self):
  44464. _mupdf.ll_fz_getopt_long_outparams_swiginit(self, _mupdf.new_ll_fz_getopt_long_outparams())
  44465. __swig_destroy__ = _mupdf.delete_ll_fz_getopt_long_outparams
  44466. # Register ll_fz_getopt_long_outparams in _mupdf:
  44467. _mupdf.ll_fz_getopt_long_outparams_swigregister(ll_fz_getopt_long_outparams)
  44468. def ll_fz_getopt_long_outparams_fn(nargc, ostr, longopts, outparams):
  44469. return _mupdf.ll_fz_getopt_long_outparams_fn(nargc, ostr, longopts, outparams)
  44470. class ll_fz_grisu_outparams(object):
  44471. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44472. __repr__ = _swig_repr
  44473. exp = property(_mupdf.ll_fz_grisu_outparams_exp_get, _mupdf.ll_fz_grisu_outparams_exp_set)
  44474. def __init__(self):
  44475. _mupdf.ll_fz_grisu_outparams_swiginit(self, _mupdf.new_ll_fz_grisu_outparams())
  44476. __swig_destroy__ = _mupdf.delete_ll_fz_grisu_outparams
  44477. # Register ll_fz_grisu_outparams in _mupdf:
  44478. _mupdf.ll_fz_grisu_outparams_swigregister(ll_fz_grisu_outparams)
  44479. def ll_fz_grisu_outparams_fn(f, s, outparams):
  44480. return _mupdf.ll_fz_grisu_outparams_fn(f, s, outparams)
  44481. class ll_fz_has_option_outparams(object):
  44482. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44483. __repr__ = _swig_repr
  44484. val = property(_mupdf.ll_fz_has_option_outparams_val_get, _mupdf.ll_fz_has_option_outparams_val_set)
  44485. def __init__(self):
  44486. _mupdf.ll_fz_has_option_outparams_swiginit(self, _mupdf.new_ll_fz_has_option_outparams())
  44487. __swig_destroy__ = _mupdf.delete_ll_fz_has_option_outparams
  44488. # Register ll_fz_has_option_outparams in _mupdf:
  44489. _mupdf.ll_fz_has_option_outparams_swigregister(ll_fz_has_option_outparams)
  44490. def ll_fz_has_option_outparams_fn(opts, key, outparams):
  44491. return _mupdf.ll_fz_has_option_outparams_fn(opts, key, outparams)
  44492. class ll_fz_image_resolution_outparams(object):
  44493. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44494. __repr__ = _swig_repr
  44495. xres = property(_mupdf.ll_fz_image_resolution_outparams_xres_get, _mupdf.ll_fz_image_resolution_outparams_xres_set)
  44496. yres = property(_mupdf.ll_fz_image_resolution_outparams_yres_get, _mupdf.ll_fz_image_resolution_outparams_yres_set)
  44497. def __init__(self):
  44498. _mupdf.ll_fz_image_resolution_outparams_swiginit(self, _mupdf.new_ll_fz_image_resolution_outparams())
  44499. __swig_destroy__ = _mupdf.delete_ll_fz_image_resolution_outparams
  44500. # Register ll_fz_image_resolution_outparams in _mupdf:
  44501. _mupdf.ll_fz_image_resolution_outparams_swigregister(ll_fz_image_resolution_outparams)
  44502. def ll_fz_image_resolution_outparams_fn(image, outparams):
  44503. return _mupdf.ll_fz_image_resolution_outparams_fn(image, outparams)
  44504. class ll_fz_keep_imp_outparams(object):
  44505. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44506. __repr__ = _swig_repr
  44507. refs = property(_mupdf.ll_fz_keep_imp_outparams_refs_get, _mupdf.ll_fz_keep_imp_outparams_refs_set)
  44508. def __init__(self):
  44509. _mupdf.ll_fz_keep_imp_outparams_swiginit(self, _mupdf.new_ll_fz_keep_imp_outparams())
  44510. __swig_destroy__ = _mupdf.delete_ll_fz_keep_imp_outparams
  44511. # Register ll_fz_keep_imp_outparams in _mupdf:
  44512. _mupdf.ll_fz_keep_imp_outparams_swigregister(ll_fz_keep_imp_outparams)
  44513. def ll_fz_keep_imp_outparams_fn(p, outparams):
  44514. return _mupdf.ll_fz_keep_imp_outparams_fn(p, outparams)
  44515. class ll_fz_keep_imp16_outparams(object):
  44516. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44517. __repr__ = _swig_repr
  44518. refs = property(_mupdf.ll_fz_keep_imp16_outparams_refs_get, _mupdf.ll_fz_keep_imp16_outparams_refs_set)
  44519. def __init__(self):
  44520. _mupdf.ll_fz_keep_imp16_outparams_swiginit(self, _mupdf.new_ll_fz_keep_imp16_outparams())
  44521. __swig_destroy__ = _mupdf.delete_ll_fz_keep_imp16_outparams
  44522. # Register ll_fz_keep_imp16_outparams in _mupdf:
  44523. _mupdf.ll_fz_keep_imp16_outparams_swigregister(ll_fz_keep_imp16_outparams)
  44524. def ll_fz_keep_imp16_outparams_fn(p, outparams):
  44525. return _mupdf.ll_fz_keep_imp16_outparams_fn(p, outparams)
  44526. class ll_fz_keep_imp_locked_outparams(object):
  44527. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44528. __repr__ = _swig_repr
  44529. refs = property(_mupdf.ll_fz_keep_imp_locked_outparams_refs_get, _mupdf.ll_fz_keep_imp_locked_outparams_refs_set)
  44530. def __init__(self):
  44531. _mupdf.ll_fz_keep_imp_locked_outparams_swiginit(self, _mupdf.new_ll_fz_keep_imp_locked_outparams())
  44532. __swig_destroy__ = _mupdf.delete_ll_fz_keep_imp_locked_outparams
  44533. # Register ll_fz_keep_imp_locked_outparams in _mupdf:
  44534. _mupdf.ll_fz_keep_imp_locked_outparams_swigregister(ll_fz_keep_imp_locked_outparams)
  44535. def ll_fz_keep_imp_locked_outparams_fn(p, outparams):
  44536. return _mupdf.ll_fz_keep_imp_locked_outparams_fn(p, outparams)
  44537. class ll_fz_lookup_base14_font_outparams(object):
  44538. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44539. __repr__ = _swig_repr
  44540. len = property(_mupdf.ll_fz_lookup_base14_font_outparams_len_get, _mupdf.ll_fz_lookup_base14_font_outparams_len_set)
  44541. def __init__(self):
  44542. _mupdf.ll_fz_lookup_base14_font_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_base14_font_outparams())
  44543. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_base14_font_outparams
  44544. # Register ll_fz_lookup_base14_font_outparams in _mupdf:
  44545. _mupdf.ll_fz_lookup_base14_font_outparams_swigregister(ll_fz_lookup_base14_font_outparams)
  44546. def ll_fz_lookup_base14_font_outparams_fn(name, outparams):
  44547. return _mupdf.ll_fz_lookup_base14_font_outparams_fn(name, outparams)
  44548. class ll_fz_lookup_builtin_font_outparams(object):
  44549. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44550. __repr__ = _swig_repr
  44551. len = property(_mupdf.ll_fz_lookup_builtin_font_outparams_len_get, _mupdf.ll_fz_lookup_builtin_font_outparams_len_set)
  44552. def __init__(self):
  44553. _mupdf.ll_fz_lookup_builtin_font_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_builtin_font_outparams())
  44554. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_builtin_font_outparams
  44555. # Register ll_fz_lookup_builtin_font_outparams in _mupdf:
  44556. _mupdf.ll_fz_lookup_builtin_font_outparams_swigregister(ll_fz_lookup_builtin_font_outparams)
  44557. def ll_fz_lookup_builtin_font_outparams_fn(name, bold, italic, outparams):
  44558. return _mupdf.ll_fz_lookup_builtin_font_outparams_fn(name, bold, italic, outparams)
  44559. class ll_fz_lookup_cjk_font_outparams(object):
  44560. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44561. __repr__ = _swig_repr
  44562. len = property(_mupdf.ll_fz_lookup_cjk_font_outparams_len_get, _mupdf.ll_fz_lookup_cjk_font_outparams_len_set)
  44563. index = property(_mupdf.ll_fz_lookup_cjk_font_outparams_index_get, _mupdf.ll_fz_lookup_cjk_font_outparams_index_set)
  44564. def __init__(self):
  44565. _mupdf.ll_fz_lookup_cjk_font_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_cjk_font_outparams())
  44566. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_cjk_font_outparams
  44567. # Register ll_fz_lookup_cjk_font_outparams in _mupdf:
  44568. _mupdf.ll_fz_lookup_cjk_font_outparams_swigregister(ll_fz_lookup_cjk_font_outparams)
  44569. def ll_fz_lookup_cjk_font_outparams_fn(ordering, outparams):
  44570. return _mupdf.ll_fz_lookup_cjk_font_outparams_fn(ordering, outparams)
  44571. class ll_fz_lookup_cjk_font_by_language_outparams(object):
  44572. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44573. __repr__ = _swig_repr
  44574. len = property(_mupdf.ll_fz_lookup_cjk_font_by_language_outparams_len_get, _mupdf.ll_fz_lookup_cjk_font_by_language_outparams_len_set)
  44575. subfont = property(_mupdf.ll_fz_lookup_cjk_font_by_language_outparams_subfont_get, _mupdf.ll_fz_lookup_cjk_font_by_language_outparams_subfont_set)
  44576. def __init__(self):
  44577. _mupdf.ll_fz_lookup_cjk_font_by_language_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_cjk_font_by_language_outparams())
  44578. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_cjk_font_by_language_outparams
  44579. # Register ll_fz_lookup_cjk_font_by_language_outparams in _mupdf:
  44580. _mupdf.ll_fz_lookup_cjk_font_by_language_outparams_swigregister(ll_fz_lookup_cjk_font_by_language_outparams)
  44581. def ll_fz_lookup_cjk_font_by_language_outparams_fn(lang, outparams):
  44582. return _mupdf.ll_fz_lookup_cjk_font_by_language_outparams_fn(lang, outparams)
  44583. class ll_fz_lookup_noto_boxes_font_outparams(object):
  44584. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44585. __repr__ = _swig_repr
  44586. len = property(_mupdf.ll_fz_lookup_noto_boxes_font_outparams_len_get, _mupdf.ll_fz_lookup_noto_boxes_font_outparams_len_set)
  44587. def __init__(self):
  44588. _mupdf.ll_fz_lookup_noto_boxes_font_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_noto_boxes_font_outparams())
  44589. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_noto_boxes_font_outparams
  44590. # Register ll_fz_lookup_noto_boxes_font_outparams in _mupdf:
  44591. _mupdf.ll_fz_lookup_noto_boxes_font_outparams_swigregister(ll_fz_lookup_noto_boxes_font_outparams)
  44592. def ll_fz_lookup_noto_boxes_font_outparams_fn(outparams):
  44593. return _mupdf.ll_fz_lookup_noto_boxes_font_outparams_fn(outparams)
  44594. class ll_fz_lookup_noto_emoji_font_outparams(object):
  44595. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44596. __repr__ = _swig_repr
  44597. len = property(_mupdf.ll_fz_lookup_noto_emoji_font_outparams_len_get, _mupdf.ll_fz_lookup_noto_emoji_font_outparams_len_set)
  44598. def __init__(self):
  44599. _mupdf.ll_fz_lookup_noto_emoji_font_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_noto_emoji_font_outparams())
  44600. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_noto_emoji_font_outparams
  44601. # Register ll_fz_lookup_noto_emoji_font_outparams in _mupdf:
  44602. _mupdf.ll_fz_lookup_noto_emoji_font_outparams_swigregister(ll_fz_lookup_noto_emoji_font_outparams)
  44603. def ll_fz_lookup_noto_emoji_font_outparams_fn(outparams):
  44604. return _mupdf.ll_fz_lookup_noto_emoji_font_outparams_fn(outparams)
  44605. class ll_fz_lookup_noto_font_outparams(object):
  44606. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44607. __repr__ = _swig_repr
  44608. len = property(_mupdf.ll_fz_lookup_noto_font_outparams_len_get, _mupdf.ll_fz_lookup_noto_font_outparams_len_set)
  44609. subfont = property(_mupdf.ll_fz_lookup_noto_font_outparams_subfont_get, _mupdf.ll_fz_lookup_noto_font_outparams_subfont_set)
  44610. def __init__(self):
  44611. _mupdf.ll_fz_lookup_noto_font_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_noto_font_outparams())
  44612. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_noto_font_outparams
  44613. # Register ll_fz_lookup_noto_font_outparams in _mupdf:
  44614. _mupdf.ll_fz_lookup_noto_font_outparams_swigregister(ll_fz_lookup_noto_font_outparams)
  44615. def ll_fz_lookup_noto_font_outparams_fn(script, lang, outparams):
  44616. return _mupdf.ll_fz_lookup_noto_font_outparams_fn(script, lang, outparams)
  44617. class ll_fz_lookup_noto_math_font_outparams(object):
  44618. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44619. __repr__ = _swig_repr
  44620. len = property(_mupdf.ll_fz_lookup_noto_math_font_outparams_len_get, _mupdf.ll_fz_lookup_noto_math_font_outparams_len_set)
  44621. def __init__(self):
  44622. _mupdf.ll_fz_lookup_noto_math_font_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_noto_math_font_outparams())
  44623. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_noto_math_font_outparams
  44624. # Register ll_fz_lookup_noto_math_font_outparams in _mupdf:
  44625. _mupdf.ll_fz_lookup_noto_math_font_outparams_swigregister(ll_fz_lookup_noto_math_font_outparams)
  44626. def ll_fz_lookup_noto_math_font_outparams_fn(outparams):
  44627. return _mupdf.ll_fz_lookup_noto_math_font_outparams_fn(outparams)
  44628. class ll_fz_lookup_noto_music_font_outparams(object):
  44629. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44630. __repr__ = _swig_repr
  44631. len = property(_mupdf.ll_fz_lookup_noto_music_font_outparams_len_get, _mupdf.ll_fz_lookup_noto_music_font_outparams_len_set)
  44632. def __init__(self):
  44633. _mupdf.ll_fz_lookup_noto_music_font_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_noto_music_font_outparams())
  44634. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_noto_music_font_outparams
  44635. # Register ll_fz_lookup_noto_music_font_outparams in _mupdf:
  44636. _mupdf.ll_fz_lookup_noto_music_font_outparams_swigregister(ll_fz_lookup_noto_music_font_outparams)
  44637. def ll_fz_lookup_noto_music_font_outparams_fn(outparams):
  44638. return _mupdf.ll_fz_lookup_noto_music_font_outparams_fn(outparams)
  44639. class ll_fz_lookup_noto_symbol1_font_outparams(object):
  44640. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44641. __repr__ = _swig_repr
  44642. len = property(_mupdf.ll_fz_lookup_noto_symbol1_font_outparams_len_get, _mupdf.ll_fz_lookup_noto_symbol1_font_outparams_len_set)
  44643. def __init__(self):
  44644. _mupdf.ll_fz_lookup_noto_symbol1_font_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_noto_symbol1_font_outparams())
  44645. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_noto_symbol1_font_outparams
  44646. # Register ll_fz_lookup_noto_symbol1_font_outparams in _mupdf:
  44647. _mupdf.ll_fz_lookup_noto_symbol1_font_outparams_swigregister(ll_fz_lookup_noto_symbol1_font_outparams)
  44648. def ll_fz_lookup_noto_symbol1_font_outparams_fn(outparams):
  44649. return _mupdf.ll_fz_lookup_noto_symbol1_font_outparams_fn(outparams)
  44650. class ll_fz_lookup_noto_symbol2_font_outparams(object):
  44651. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44652. __repr__ = _swig_repr
  44653. len = property(_mupdf.ll_fz_lookup_noto_symbol2_font_outparams_len_get, _mupdf.ll_fz_lookup_noto_symbol2_font_outparams_len_set)
  44654. def __init__(self):
  44655. _mupdf.ll_fz_lookup_noto_symbol2_font_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_noto_symbol2_font_outparams())
  44656. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_noto_symbol2_font_outparams
  44657. # Register ll_fz_lookup_noto_symbol2_font_outparams in _mupdf:
  44658. _mupdf.ll_fz_lookup_noto_symbol2_font_outparams_swigregister(ll_fz_lookup_noto_symbol2_font_outparams)
  44659. def ll_fz_lookup_noto_symbol2_font_outparams_fn(outparams):
  44660. return _mupdf.ll_fz_lookup_noto_symbol2_font_outparams_fn(outparams)
  44661. class ll_fz_new_brotli_data_outparams(object):
  44662. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44663. __repr__ = _swig_repr
  44664. compressed_length = property(_mupdf.ll_fz_new_brotli_data_outparams_compressed_length_get, _mupdf.ll_fz_new_brotli_data_outparams_compressed_length_set)
  44665. def __init__(self):
  44666. _mupdf.ll_fz_new_brotli_data_outparams_swiginit(self, _mupdf.new_ll_fz_new_brotli_data_outparams())
  44667. __swig_destroy__ = _mupdf.delete_ll_fz_new_brotli_data_outparams
  44668. # Register ll_fz_new_brotli_data_outparams in _mupdf:
  44669. _mupdf.ll_fz_new_brotli_data_outparams_swigregister(ll_fz_new_brotli_data_outparams)
  44670. def ll_fz_new_brotli_data_outparams_fn(source, source_length, level, outparams):
  44671. return _mupdf.ll_fz_new_brotli_data_outparams_fn(source, source_length, level, outparams)
  44672. class ll_fz_new_brotli_data_from_buffer_outparams(object):
  44673. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44674. __repr__ = _swig_repr
  44675. compressed_length = property(_mupdf.ll_fz_new_brotli_data_from_buffer_outparams_compressed_length_get, _mupdf.ll_fz_new_brotli_data_from_buffer_outparams_compressed_length_set)
  44676. def __init__(self):
  44677. _mupdf.ll_fz_new_brotli_data_from_buffer_outparams_swiginit(self, _mupdf.new_ll_fz_new_brotli_data_from_buffer_outparams())
  44678. __swig_destroy__ = _mupdf.delete_ll_fz_new_brotli_data_from_buffer_outparams
  44679. # Register ll_fz_new_brotli_data_from_buffer_outparams in _mupdf:
  44680. _mupdf.ll_fz_new_brotli_data_from_buffer_outparams_swigregister(ll_fz_new_brotli_data_from_buffer_outparams)
  44681. def ll_fz_new_brotli_data_from_buffer_outparams_fn(buffer, level, outparams):
  44682. return _mupdf.ll_fz_new_brotli_data_from_buffer_outparams_fn(buffer, level, outparams)
  44683. class ll_fz_new_deflated_data_outparams(object):
  44684. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44685. __repr__ = _swig_repr
  44686. compressed_length = property(_mupdf.ll_fz_new_deflated_data_outparams_compressed_length_get, _mupdf.ll_fz_new_deflated_data_outparams_compressed_length_set)
  44687. def __init__(self):
  44688. _mupdf.ll_fz_new_deflated_data_outparams_swiginit(self, _mupdf.new_ll_fz_new_deflated_data_outparams())
  44689. __swig_destroy__ = _mupdf.delete_ll_fz_new_deflated_data_outparams
  44690. # Register ll_fz_new_deflated_data_outparams in _mupdf:
  44691. _mupdf.ll_fz_new_deflated_data_outparams_swigregister(ll_fz_new_deflated_data_outparams)
  44692. def ll_fz_new_deflated_data_outparams_fn(source, source_length, level, outparams):
  44693. return _mupdf.ll_fz_new_deflated_data_outparams_fn(source, source_length, level, outparams)
  44694. class ll_fz_new_deflated_data_from_buffer_outparams(object):
  44695. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44696. __repr__ = _swig_repr
  44697. compressed_length = property(_mupdf.ll_fz_new_deflated_data_from_buffer_outparams_compressed_length_get, _mupdf.ll_fz_new_deflated_data_from_buffer_outparams_compressed_length_set)
  44698. def __init__(self):
  44699. _mupdf.ll_fz_new_deflated_data_from_buffer_outparams_swiginit(self, _mupdf.new_ll_fz_new_deflated_data_from_buffer_outparams())
  44700. __swig_destroy__ = _mupdf.delete_ll_fz_new_deflated_data_from_buffer_outparams
  44701. # Register ll_fz_new_deflated_data_from_buffer_outparams in _mupdf:
  44702. _mupdf.ll_fz_new_deflated_data_from_buffer_outparams_swigregister(ll_fz_new_deflated_data_from_buffer_outparams)
  44703. def ll_fz_new_deflated_data_from_buffer_outparams_fn(buffer, level, outparams):
  44704. return _mupdf.ll_fz_new_deflated_data_from_buffer_outparams_fn(buffer, level, outparams)
  44705. class ll_fz_new_display_list_from_svg_outparams(object):
  44706. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44707. __repr__ = _swig_repr
  44708. w = property(_mupdf.ll_fz_new_display_list_from_svg_outparams_w_get, _mupdf.ll_fz_new_display_list_from_svg_outparams_w_set)
  44709. h = property(_mupdf.ll_fz_new_display_list_from_svg_outparams_h_get, _mupdf.ll_fz_new_display_list_from_svg_outparams_h_set)
  44710. def __init__(self):
  44711. _mupdf.ll_fz_new_display_list_from_svg_outparams_swiginit(self, _mupdf.new_ll_fz_new_display_list_from_svg_outparams())
  44712. __swig_destroy__ = _mupdf.delete_ll_fz_new_display_list_from_svg_outparams
  44713. # Register ll_fz_new_display_list_from_svg_outparams in _mupdf:
  44714. _mupdf.ll_fz_new_display_list_from_svg_outparams_swigregister(ll_fz_new_display_list_from_svg_outparams)
  44715. def ll_fz_new_display_list_from_svg_outparams_fn(buf, base_uri, dir, outparams):
  44716. return _mupdf.ll_fz_new_display_list_from_svg_outparams_fn(buf, base_uri, dir, outparams)
  44717. class ll_fz_new_display_list_from_svg_xml_outparams(object):
  44718. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44719. __repr__ = _swig_repr
  44720. w = property(_mupdf.ll_fz_new_display_list_from_svg_xml_outparams_w_get, _mupdf.ll_fz_new_display_list_from_svg_xml_outparams_w_set)
  44721. h = property(_mupdf.ll_fz_new_display_list_from_svg_xml_outparams_h_get, _mupdf.ll_fz_new_display_list_from_svg_xml_outparams_h_set)
  44722. def __init__(self):
  44723. _mupdf.ll_fz_new_display_list_from_svg_xml_outparams_swiginit(self, _mupdf.new_ll_fz_new_display_list_from_svg_xml_outparams())
  44724. __swig_destroy__ = _mupdf.delete_ll_fz_new_display_list_from_svg_xml_outparams
  44725. # Register ll_fz_new_display_list_from_svg_xml_outparams in _mupdf:
  44726. _mupdf.ll_fz_new_display_list_from_svg_xml_outparams_swigregister(ll_fz_new_display_list_from_svg_xml_outparams)
  44727. def ll_fz_new_display_list_from_svg_xml_outparams_fn(xmldoc, xml, base_uri, dir, outparams):
  44728. return _mupdf.ll_fz_new_display_list_from_svg_xml_outparams_fn(xmldoc, xml, base_uri, dir, outparams)
  44729. class ll_fz_new_draw_device_with_options_outparams(object):
  44730. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44731. __repr__ = _swig_repr
  44732. pixmap = property(_mupdf.ll_fz_new_draw_device_with_options_outparams_pixmap_get, _mupdf.ll_fz_new_draw_device_with_options_outparams_pixmap_set)
  44733. def __init__(self):
  44734. _mupdf.ll_fz_new_draw_device_with_options_outparams_swiginit(self, _mupdf.new_ll_fz_new_draw_device_with_options_outparams())
  44735. __swig_destroy__ = _mupdf.delete_ll_fz_new_draw_device_with_options_outparams
  44736. # Register ll_fz_new_draw_device_with_options_outparams in _mupdf:
  44737. _mupdf.ll_fz_new_draw_device_with_options_outparams_swigregister(ll_fz_new_draw_device_with_options_outparams)
  44738. def ll_fz_new_draw_device_with_options_outparams_fn(options, mediabox, outparams):
  44739. return _mupdf.ll_fz_new_draw_device_with_options_outparams_fn(options, mediabox, outparams)
  44740. class ll_fz_new_svg_device_with_id_outparams(object):
  44741. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44742. __repr__ = _swig_repr
  44743. id = property(_mupdf.ll_fz_new_svg_device_with_id_outparams_id_get, _mupdf.ll_fz_new_svg_device_with_id_outparams_id_set)
  44744. def __init__(self):
  44745. _mupdf.ll_fz_new_svg_device_with_id_outparams_swiginit(self, _mupdf.new_ll_fz_new_svg_device_with_id_outparams())
  44746. __swig_destroy__ = _mupdf.delete_ll_fz_new_svg_device_with_id_outparams
  44747. # Register ll_fz_new_svg_device_with_id_outparams in _mupdf:
  44748. _mupdf.ll_fz_new_svg_device_with_id_outparams_swigregister(ll_fz_new_svg_device_with_id_outparams)
  44749. def ll_fz_new_svg_device_with_id_outparams_fn(out, page_width, page_height, text_format, reuse_images, outparams):
  44750. return _mupdf.ll_fz_new_svg_device_with_id_outparams_fn(out, page_width, page_height, text_format, reuse_images, outparams)
  44751. class ll_fz_new_test_device_outparams(object):
  44752. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44753. __repr__ = _swig_repr
  44754. is_color = property(_mupdf.ll_fz_new_test_device_outparams_is_color_get, _mupdf.ll_fz_new_test_device_outparams_is_color_set)
  44755. def __init__(self):
  44756. _mupdf.ll_fz_new_test_device_outparams_swiginit(self, _mupdf.new_ll_fz_new_test_device_outparams())
  44757. __swig_destroy__ = _mupdf.delete_ll_fz_new_test_device_outparams
  44758. # Register ll_fz_new_test_device_outparams in _mupdf:
  44759. _mupdf.ll_fz_new_test_device_outparams_swigregister(ll_fz_new_test_device_outparams)
  44760. def ll_fz_new_test_device_outparams_fn(threshold, options, passthrough, outparams):
  44761. return _mupdf.ll_fz_new_test_device_outparams_fn(threshold, options, passthrough, outparams)
  44762. class ll_fz_open_image_decomp_stream_outparams(object):
  44763. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44764. __repr__ = _swig_repr
  44765. l2factor = property(_mupdf.ll_fz_open_image_decomp_stream_outparams_l2factor_get, _mupdf.ll_fz_open_image_decomp_stream_outparams_l2factor_set)
  44766. def __init__(self):
  44767. _mupdf.ll_fz_open_image_decomp_stream_outparams_swiginit(self, _mupdf.new_ll_fz_open_image_decomp_stream_outparams())
  44768. __swig_destroy__ = _mupdf.delete_ll_fz_open_image_decomp_stream_outparams
  44769. # Register ll_fz_open_image_decomp_stream_outparams in _mupdf:
  44770. _mupdf.ll_fz_open_image_decomp_stream_outparams_swigregister(ll_fz_open_image_decomp_stream_outparams)
  44771. def ll_fz_open_image_decomp_stream_outparams_fn(arg_0, arg_1, outparams):
  44772. return _mupdf.ll_fz_open_image_decomp_stream_outparams_fn(arg_0, arg_1, outparams)
  44773. class ll_fz_open_image_decomp_stream_from_buffer_outparams(object):
  44774. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44775. __repr__ = _swig_repr
  44776. l2factor = property(_mupdf.ll_fz_open_image_decomp_stream_from_buffer_outparams_l2factor_get, _mupdf.ll_fz_open_image_decomp_stream_from_buffer_outparams_l2factor_set)
  44777. def __init__(self):
  44778. _mupdf.ll_fz_open_image_decomp_stream_from_buffer_outparams_swiginit(self, _mupdf.new_ll_fz_open_image_decomp_stream_from_buffer_outparams())
  44779. __swig_destroy__ = _mupdf.delete_ll_fz_open_image_decomp_stream_from_buffer_outparams
  44780. # Register ll_fz_open_image_decomp_stream_from_buffer_outparams in _mupdf:
  44781. _mupdf.ll_fz_open_image_decomp_stream_from_buffer_outparams_swigregister(ll_fz_open_image_decomp_stream_from_buffer_outparams)
  44782. def ll_fz_open_image_decomp_stream_from_buffer_outparams_fn(arg_0, outparams):
  44783. return _mupdf.ll_fz_open_image_decomp_stream_from_buffer_outparams_fn(arg_0, outparams)
  44784. class ll_fz_page_presentation_outparams(object):
  44785. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44786. __repr__ = _swig_repr
  44787. duration = property(_mupdf.ll_fz_page_presentation_outparams_duration_get, _mupdf.ll_fz_page_presentation_outparams_duration_set)
  44788. def __init__(self):
  44789. _mupdf.ll_fz_page_presentation_outparams_swiginit(self, _mupdf.new_ll_fz_page_presentation_outparams())
  44790. __swig_destroy__ = _mupdf.delete_ll_fz_page_presentation_outparams
  44791. # Register ll_fz_page_presentation_outparams in _mupdf:
  44792. _mupdf.ll_fz_page_presentation_outparams_swigregister(ll_fz_page_presentation_outparams)
  44793. def ll_fz_page_presentation_outparams_fn(page, transition, outparams):
  44794. return _mupdf.ll_fz_page_presentation_outparams_fn(page, transition, outparams)
  44795. class ll_fz_paint_shade_outparams(object):
  44796. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44797. __repr__ = _swig_repr
  44798. cache = property(_mupdf.ll_fz_paint_shade_outparams_cache_get, _mupdf.ll_fz_paint_shade_outparams_cache_set)
  44799. def __init__(self):
  44800. _mupdf.ll_fz_paint_shade_outparams_swiginit(self, _mupdf.new_ll_fz_paint_shade_outparams())
  44801. __swig_destroy__ = _mupdf.delete_ll_fz_paint_shade_outparams
  44802. # Register ll_fz_paint_shade_outparams in _mupdf:
  44803. _mupdf.ll_fz_paint_shade_outparams_swigregister(ll_fz_paint_shade_outparams)
  44804. def ll_fz_paint_shade_outparams_fn(shade, override_cs, ctm, dest, color_params, bbox, eop, outparams):
  44805. return _mupdf.ll_fz_paint_shade_outparams_fn(shade, override_cs, ctm, dest, color_params, bbox, eop, outparams)
  44806. class ll_fz_parse_page_range_outparams(object):
  44807. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44808. __repr__ = _swig_repr
  44809. a = property(_mupdf.ll_fz_parse_page_range_outparams_a_get, _mupdf.ll_fz_parse_page_range_outparams_a_set)
  44810. b = property(_mupdf.ll_fz_parse_page_range_outparams_b_get, _mupdf.ll_fz_parse_page_range_outparams_b_set)
  44811. def __init__(self):
  44812. _mupdf.ll_fz_parse_page_range_outparams_swiginit(self, _mupdf.new_ll_fz_parse_page_range_outparams())
  44813. __swig_destroy__ = _mupdf.delete_ll_fz_parse_page_range_outparams
  44814. # Register ll_fz_parse_page_range_outparams in _mupdf:
  44815. _mupdf.ll_fz_parse_page_range_outparams_swigregister(ll_fz_parse_page_range_outparams)
  44816. def ll_fz_parse_page_range_outparams_fn(s, n, outparams):
  44817. return _mupdf.ll_fz_parse_page_range_outparams_fn(s, n, outparams)
  44818. class ll_fz_pool_array_append_outparams(object):
  44819. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44820. __repr__ = _swig_repr
  44821. idx = property(_mupdf.ll_fz_pool_array_append_outparams_idx_get, _mupdf.ll_fz_pool_array_append_outparams_idx_set)
  44822. def __init__(self):
  44823. _mupdf.ll_fz_pool_array_append_outparams_swiginit(self, _mupdf.new_ll_fz_pool_array_append_outparams())
  44824. __swig_destroy__ = _mupdf.delete_ll_fz_pool_array_append_outparams
  44825. # Register ll_fz_pool_array_append_outparams in _mupdf:
  44826. _mupdf.ll_fz_pool_array_append_outparams_swigregister(ll_fz_pool_array_append_outparams)
  44827. def ll_fz_pool_array_append_outparams_fn(arr, outparams):
  44828. return _mupdf.ll_fz_pool_array_append_outparams_fn(arr, outparams)
  44829. class ll_fz_read_best_outparams(object):
  44830. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44831. __repr__ = _swig_repr
  44832. truncated = property(_mupdf.ll_fz_read_best_outparams_truncated_get, _mupdf.ll_fz_read_best_outparams_truncated_set)
  44833. def __init__(self):
  44834. _mupdf.ll_fz_read_best_outparams_swiginit(self, _mupdf.new_ll_fz_read_best_outparams())
  44835. __swig_destroy__ = _mupdf.delete_ll_fz_read_best_outparams
  44836. # Register ll_fz_read_best_outparams in _mupdf:
  44837. _mupdf.ll_fz_read_best_outparams_swigregister(ll_fz_read_best_outparams)
  44838. def ll_fz_read_best_outparams_fn(stm, initial, worst_case, outparams):
  44839. return _mupdf.ll_fz_read_best_outparams_fn(stm, initial, worst_case, outparams)
  44840. class ll_fz_resolve_link_outparams(object):
  44841. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44842. __repr__ = _swig_repr
  44843. xp = property(_mupdf.ll_fz_resolve_link_outparams_xp_get, _mupdf.ll_fz_resolve_link_outparams_xp_set)
  44844. yp = property(_mupdf.ll_fz_resolve_link_outparams_yp_get, _mupdf.ll_fz_resolve_link_outparams_yp_set)
  44845. def __init__(self):
  44846. _mupdf.ll_fz_resolve_link_outparams_swiginit(self, _mupdf.new_ll_fz_resolve_link_outparams())
  44847. __swig_destroy__ = _mupdf.delete_ll_fz_resolve_link_outparams
  44848. # Register ll_fz_resolve_link_outparams in _mupdf:
  44849. _mupdf.ll_fz_resolve_link_outparams_swigregister(ll_fz_resolve_link_outparams)
  44850. def ll_fz_resolve_link_outparams_fn(doc, uri, outparams):
  44851. return _mupdf.ll_fz_resolve_link_outparams_fn(doc, uri, outparams)
  44852. class ll_fz_search_chapter_page_number_outparams(object):
  44853. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44854. __repr__ = _swig_repr
  44855. hit_mark = property(_mupdf.ll_fz_search_chapter_page_number_outparams_hit_mark_get, _mupdf.ll_fz_search_chapter_page_number_outparams_hit_mark_set)
  44856. def __init__(self):
  44857. _mupdf.ll_fz_search_chapter_page_number_outparams_swiginit(self, _mupdf.new_ll_fz_search_chapter_page_number_outparams())
  44858. __swig_destroy__ = _mupdf.delete_ll_fz_search_chapter_page_number_outparams
  44859. # Register ll_fz_search_chapter_page_number_outparams in _mupdf:
  44860. _mupdf.ll_fz_search_chapter_page_number_outparams_swigregister(ll_fz_search_chapter_page_number_outparams)
  44861. def ll_fz_search_chapter_page_number_outparams_fn(doc, chapter, page, needle, hit_bbox, hit_max, outparams):
  44862. return _mupdf.ll_fz_search_chapter_page_number_outparams_fn(doc, chapter, page, needle, hit_bbox, hit_max, outparams)
  44863. class ll_fz_search_display_list_outparams(object):
  44864. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44865. __repr__ = _swig_repr
  44866. hit_mark = property(_mupdf.ll_fz_search_display_list_outparams_hit_mark_get, _mupdf.ll_fz_search_display_list_outparams_hit_mark_set)
  44867. def __init__(self):
  44868. _mupdf.ll_fz_search_display_list_outparams_swiginit(self, _mupdf.new_ll_fz_search_display_list_outparams())
  44869. __swig_destroy__ = _mupdf.delete_ll_fz_search_display_list_outparams
  44870. # Register ll_fz_search_display_list_outparams in _mupdf:
  44871. _mupdf.ll_fz_search_display_list_outparams_swigregister(ll_fz_search_display_list_outparams)
  44872. def ll_fz_search_display_list_outparams_fn(list, needle, hit_bbox, hit_max, outparams):
  44873. return _mupdf.ll_fz_search_display_list_outparams_fn(list, needle, hit_bbox, hit_max, outparams)
  44874. class ll_fz_search_page_outparams(object):
  44875. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44876. __repr__ = _swig_repr
  44877. hit_mark = property(_mupdf.ll_fz_search_page_outparams_hit_mark_get, _mupdf.ll_fz_search_page_outparams_hit_mark_set)
  44878. def __init__(self):
  44879. _mupdf.ll_fz_search_page_outparams_swiginit(self, _mupdf.new_ll_fz_search_page_outparams())
  44880. __swig_destroy__ = _mupdf.delete_ll_fz_search_page_outparams
  44881. # Register ll_fz_search_page_outparams in _mupdf:
  44882. _mupdf.ll_fz_search_page_outparams_swigregister(ll_fz_search_page_outparams)
  44883. def ll_fz_search_page_outparams_fn(page, needle, hit_bbox, hit_max, outparams):
  44884. return _mupdf.ll_fz_search_page_outparams_fn(page, needle, hit_bbox, hit_max, outparams)
  44885. class ll_fz_search_page_number_outparams(object):
  44886. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44887. __repr__ = _swig_repr
  44888. hit_mark = property(_mupdf.ll_fz_search_page_number_outparams_hit_mark_get, _mupdf.ll_fz_search_page_number_outparams_hit_mark_set)
  44889. def __init__(self):
  44890. _mupdf.ll_fz_search_page_number_outparams_swiginit(self, _mupdf.new_ll_fz_search_page_number_outparams())
  44891. __swig_destroy__ = _mupdf.delete_ll_fz_search_page_number_outparams
  44892. # Register ll_fz_search_page_number_outparams in _mupdf:
  44893. _mupdf.ll_fz_search_page_number_outparams_swigregister(ll_fz_search_page_number_outparams)
  44894. def ll_fz_search_page_number_outparams_fn(doc, number, needle, hit_bbox, hit_max, outparams):
  44895. return _mupdf.ll_fz_search_page_number_outparams_fn(doc, number, needle, hit_bbox, hit_max, outparams)
  44896. class ll_fz_search_stext_page_outparams(object):
  44897. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44898. __repr__ = _swig_repr
  44899. hit_mark = property(_mupdf.ll_fz_search_stext_page_outparams_hit_mark_get, _mupdf.ll_fz_search_stext_page_outparams_hit_mark_set)
  44900. def __init__(self):
  44901. _mupdf.ll_fz_search_stext_page_outparams_swiginit(self, _mupdf.new_ll_fz_search_stext_page_outparams())
  44902. __swig_destroy__ = _mupdf.delete_ll_fz_search_stext_page_outparams
  44903. # Register ll_fz_search_stext_page_outparams in _mupdf:
  44904. _mupdf.ll_fz_search_stext_page_outparams_swigregister(ll_fz_search_stext_page_outparams)
  44905. def ll_fz_search_stext_page_outparams_fn(text, needle, hit_bbox, hit_max, outparams):
  44906. return _mupdf.ll_fz_search_stext_page_outparams_fn(text, needle, hit_bbox, hit_max, outparams)
  44907. class ll_fz_separation_equivalent_outparams(object):
  44908. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44909. __repr__ = _swig_repr
  44910. dst_color = property(_mupdf.ll_fz_separation_equivalent_outparams_dst_color_get, _mupdf.ll_fz_separation_equivalent_outparams_dst_color_set)
  44911. def __init__(self):
  44912. _mupdf.ll_fz_separation_equivalent_outparams_swiginit(self, _mupdf.new_ll_fz_separation_equivalent_outparams())
  44913. __swig_destroy__ = _mupdf.delete_ll_fz_separation_equivalent_outparams
  44914. # Register ll_fz_separation_equivalent_outparams in _mupdf:
  44915. _mupdf.ll_fz_separation_equivalent_outparams_swigregister(ll_fz_separation_equivalent_outparams)
  44916. def ll_fz_separation_equivalent_outparams_fn(seps, idx, dst_cs, prf, color_params, outparams):
  44917. return _mupdf.ll_fz_separation_equivalent_outparams_fn(seps, idx, dst_cs, prf, color_params, outparams)
  44918. class ll_fz_store_scavenge_outparams(object):
  44919. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44920. __repr__ = _swig_repr
  44921. phase = property(_mupdf.ll_fz_store_scavenge_outparams_phase_get, _mupdf.ll_fz_store_scavenge_outparams_phase_set)
  44922. def __init__(self):
  44923. _mupdf.ll_fz_store_scavenge_outparams_swiginit(self, _mupdf.new_ll_fz_store_scavenge_outparams())
  44924. __swig_destroy__ = _mupdf.delete_ll_fz_store_scavenge_outparams
  44925. # Register ll_fz_store_scavenge_outparams in _mupdf:
  44926. _mupdf.ll_fz_store_scavenge_outparams_swigregister(ll_fz_store_scavenge_outparams)
  44927. def ll_fz_store_scavenge_outparams_fn(size, outparams):
  44928. return _mupdf.ll_fz_store_scavenge_outparams_fn(size, outparams)
  44929. class ll_fz_store_scavenge_external_outparams(object):
  44930. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44931. __repr__ = _swig_repr
  44932. phase = property(_mupdf.ll_fz_store_scavenge_external_outparams_phase_get, _mupdf.ll_fz_store_scavenge_external_outparams_phase_set)
  44933. def __init__(self):
  44934. _mupdf.ll_fz_store_scavenge_external_outparams_swiginit(self, _mupdf.new_ll_fz_store_scavenge_external_outparams())
  44935. __swig_destroy__ = _mupdf.delete_ll_fz_store_scavenge_external_outparams
  44936. # Register ll_fz_store_scavenge_external_outparams in _mupdf:
  44937. _mupdf.ll_fz_store_scavenge_external_outparams_swigregister(ll_fz_store_scavenge_external_outparams)
  44938. def ll_fz_store_scavenge_external_outparams_fn(size, outparams):
  44939. return _mupdf.ll_fz_store_scavenge_external_outparams_fn(size, outparams)
  44940. class ll_fz_strsep_outparams(object):
  44941. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44942. __repr__ = _swig_repr
  44943. stringp = property(_mupdf.ll_fz_strsep_outparams_stringp_get, _mupdf.ll_fz_strsep_outparams_stringp_set)
  44944. def __init__(self):
  44945. _mupdf.ll_fz_strsep_outparams_swiginit(self, _mupdf.new_ll_fz_strsep_outparams())
  44946. __swig_destroy__ = _mupdf.delete_ll_fz_strsep_outparams
  44947. # Register ll_fz_strsep_outparams in _mupdf:
  44948. _mupdf.ll_fz_strsep_outparams_swigregister(ll_fz_strsep_outparams)
  44949. def ll_fz_strsep_outparams_fn(delim, outparams):
  44950. return _mupdf.ll_fz_strsep_outparams_fn(delim, outparams)
  44951. class ll_fz_strtof_outparams(object):
  44952. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44953. __repr__ = _swig_repr
  44954. es = property(_mupdf.ll_fz_strtof_outparams_es_get, _mupdf.ll_fz_strtof_outparams_es_set)
  44955. def __init__(self):
  44956. _mupdf.ll_fz_strtof_outparams_swiginit(self, _mupdf.new_ll_fz_strtof_outparams())
  44957. __swig_destroy__ = _mupdf.delete_ll_fz_strtof_outparams
  44958. # Register ll_fz_strtof_outparams in _mupdf:
  44959. _mupdf.ll_fz_strtof_outparams_swigregister(ll_fz_strtof_outparams)
  44960. def ll_fz_strtof_outparams_fn(s, outparams):
  44961. return _mupdf.ll_fz_strtof_outparams_fn(s, outparams)
  44962. class ll_fz_subset_cff_for_gids_outparams(object):
  44963. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44964. __repr__ = _swig_repr
  44965. gids = property(_mupdf.ll_fz_subset_cff_for_gids_outparams_gids_get, _mupdf.ll_fz_subset_cff_for_gids_outparams_gids_set)
  44966. def __init__(self):
  44967. _mupdf.ll_fz_subset_cff_for_gids_outparams_swiginit(self, _mupdf.new_ll_fz_subset_cff_for_gids_outparams())
  44968. __swig_destroy__ = _mupdf.delete_ll_fz_subset_cff_for_gids_outparams
  44969. # Register ll_fz_subset_cff_for_gids_outparams in _mupdf:
  44970. _mupdf.ll_fz_subset_cff_for_gids_outparams_swigregister(ll_fz_subset_cff_for_gids_outparams)
  44971. def ll_fz_subset_cff_for_gids_outparams_fn(orig, num_gids, symbolic, cidfont, outparams):
  44972. return _mupdf.ll_fz_subset_cff_for_gids_outparams_fn(orig, num_gids, symbolic, cidfont, outparams)
  44973. class ll_fz_subset_ttf_for_gids_outparams(object):
  44974. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44975. __repr__ = _swig_repr
  44976. gids = property(_mupdf.ll_fz_subset_ttf_for_gids_outparams_gids_get, _mupdf.ll_fz_subset_ttf_for_gids_outparams_gids_set)
  44977. def __init__(self):
  44978. _mupdf.ll_fz_subset_ttf_for_gids_outparams_swiginit(self, _mupdf.new_ll_fz_subset_ttf_for_gids_outparams())
  44979. __swig_destroy__ = _mupdf.delete_ll_fz_subset_ttf_for_gids_outparams
  44980. # Register ll_fz_subset_ttf_for_gids_outparams in _mupdf:
  44981. _mupdf.ll_fz_subset_ttf_for_gids_outparams_swigregister(ll_fz_subset_ttf_for_gids_outparams)
  44982. def ll_fz_subset_ttf_for_gids_outparams_fn(orig, num_gids, symbolic, cidfont, outparams):
  44983. return _mupdf.ll_fz_subset_ttf_for_gids_outparams_fn(orig, num_gids, symbolic, cidfont, outparams)
  44984. class ll_fz_warning_callback_outparams(object):
  44985. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44986. __repr__ = _swig_repr
  44987. user = property(_mupdf.ll_fz_warning_callback_outparams_user_get, _mupdf.ll_fz_warning_callback_outparams_user_set)
  44988. def __init__(self):
  44989. _mupdf.ll_fz_warning_callback_outparams_swiginit(self, _mupdf.new_ll_fz_warning_callback_outparams())
  44990. __swig_destroy__ = _mupdf.delete_ll_fz_warning_callback_outparams
  44991. # Register ll_fz_warning_callback_outparams in _mupdf:
  44992. _mupdf.ll_fz_warning_callback_outparams_swigregister(ll_fz_warning_callback_outparams)
  44993. def ll_fz_warning_callback_outparams_fn(outparams):
  44994. return _mupdf.ll_fz_warning_callback_outparams_fn(outparams)
  44995. class ll_pdf_annot_MK_BC_outparams(object):
  44996. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44997. __repr__ = _swig_repr
  44998. n = property(_mupdf.ll_pdf_annot_MK_BC_outparams_n_get, _mupdf.ll_pdf_annot_MK_BC_outparams_n_set)
  44999. def __init__(self):
  45000. _mupdf.ll_pdf_annot_MK_BC_outparams_swiginit(self, _mupdf.new_ll_pdf_annot_MK_BC_outparams())
  45001. __swig_destroy__ = _mupdf.delete_ll_pdf_annot_MK_BC_outparams
  45002. # Register ll_pdf_annot_MK_BC_outparams in _mupdf:
  45003. _mupdf.ll_pdf_annot_MK_BC_outparams_swigregister(ll_pdf_annot_MK_BC_outparams)
  45004. def ll_pdf_annot_MK_BC_outparams_fn(annot, color, outparams):
  45005. return _mupdf.ll_pdf_annot_MK_BC_outparams_fn(annot, color, outparams)
  45006. class ll_pdf_annot_MK_BG_outparams(object):
  45007. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45008. __repr__ = _swig_repr
  45009. n = property(_mupdf.ll_pdf_annot_MK_BG_outparams_n_get, _mupdf.ll_pdf_annot_MK_BG_outparams_n_set)
  45010. def __init__(self):
  45011. _mupdf.ll_pdf_annot_MK_BG_outparams_swiginit(self, _mupdf.new_ll_pdf_annot_MK_BG_outparams())
  45012. __swig_destroy__ = _mupdf.delete_ll_pdf_annot_MK_BG_outparams
  45013. # Register ll_pdf_annot_MK_BG_outparams in _mupdf:
  45014. _mupdf.ll_pdf_annot_MK_BG_outparams_swigregister(ll_pdf_annot_MK_BG_outparams)
  45015. def ll_pdf_annot_MK_BG_outparams_fn(annot, color, outparams):
  45016. return _mupdf.ll_pdf_annot_MK_BG_outparams_fn(annot, color, outparams)
  45017. class ll_pdf_annot_callout_line_outparams(object):
  45018. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45019. __repr__ = _swig_repr
  45020. n = property(_mupdf.ll_pdf_annot_callout_line_outparams_n_get, _mupdf.ll_pdf_annot_callout_line_outparams_n_set)
  45021. def __init__(self):
  45022. _mupdf.ll_pdf_annot_callout_line_outparams_swiginit(self, _mupdf.new_ll_pdf_annot_callout_line_outparams())
  45023. __swig_destroy__ = _mupdf.delete_ll_pdf_annot_callout_line_outparams
  45024. # Register ll_pdf_annot_callout_line_outparams in _mupdf:
  45025. _mupdf.ll_pdf_annot_callout_line_outparams_swigregister(ll_pdf_annot_callout_line_outparams)
  45026. def ll_pdf_annot_callout_line_outparams_fn(annot, callout, outparams):
  45027. return _mupdf.ll_pdf_annot_callout_line_outparams_fn(annot, callout, outparams)
  45028. class ll_pdf_annot_color_outparams(object):
  45029. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45030. __repr__ = _swig_repr
  45031. n = property(_mupdf.ll_pdf_annot_color_outparams_n_get, _mupdf.ll_pdf_annot_color_outparams_n_set)
  45032. def __init__(self):
  45033. _mupdf.ll_pdf_annot_color_outparams_swiginit(self, _mupdf.new_ll_pdf_annot_color_outparams())
  45034. __swig_destroy__ = _mupdf.delete_ll_pdf_annot_color_outparams
  45035. # Register ll_pdf_annot_color_outparams in _mupdf:
  45036. _mupdf.ll_pdf_annot_color_outparams_swigregister(ll_pdf_annot_color_outparams)
  45037. def ll_pdf_annot_color_outparams_fn(annot, color, outparams):
  45038. return _mupdf.ll_pdf_annot_color_outparams_fn(annot, color, outparams)
  45039. class ll_pdf_annot_default_appearance_outparams(object):
  45040. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45041. __repr__ = _swig_repr
  45042. font = property(_mupdf.ll_pdf_annot_default_appearance_outparams_font_get, _mupdf.ll_pdf_annot_default_appearance_outparams_font_set)
  45043. size = property(_mupdf.ll_pdf_annot_default_appearance_outparams_size_get, _mupdf.ll_pdf_annot_default_appearance_outparams_size_set)
  45044. n = property(_mupdf.ll_pdf_annot_default_appearance_outparams_n_get, _mupdf.ll_pdf_annot_default_appearance_outparams_n_set)
  45045. def __init__(self):
  45046. _mupdf.ll_pdf_annot_default_appearance_outparams_swiginit(self, _mupdf.new_ll_pdf_annot_default_appearance_outparams())
  45047. __swig_destroy__ = _mupdf.delete_ll_pdf_annot_default_appearance_outparams
  45048. # Register ll_pdf_annot_default_appearance_outparams in _mupdf:
  45049. _mupdf.ll_pdf_annot_default_appearance_outparams_swigregister(ll_pdf_annot_default_appearance_outparams)
  45050. def ll_pdf_annot_default_appearance_outparams_fn(annot, color, outparams):
  45051. return _mupdf.ll_pdf_annot_default_appearance_outparams_fn(annot, color, outparams)
  45052. class ll_pdf_annot_default_appearance_unmapped_outparams(object):
  45053. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45054. __repr__ = _swig_repr
  45055. size = property(_mupdf.ll_pdf_annot_default_appearance_unmapped_outparams_size_get, _mupdf.ll_pdf_annot_default_appearance_unmapped_outparams_size_set)
  45056. n = property(_mupdf.ll_pdf_annot_default_appearance_unmapped_outparams_n_get, _mupdf.ll_pdf_annot_default_appearance_unmapped_outparams_n_set)
  45057. def __init__(self):
  45058. _mupdf.ll_pdf_annot_default_appearance_unmapped_outparams_swiginit(self, _mupdf.new_ll_pdf_annot_default_appearance_unmapped_outparams())
  45059. __swig_destroy__ = _mupdf.delete_ll_pdf_annot_default_appearance_unmapped_outparams
  45060. # Register ll_pdf_annot_default_appearance_unmapped_outparams in _mupdf:
  45061. _mupdf.ll_pdf_annot_default_appearance_unmapped_outparams_swigregister(ll_pdf_annot_default_appearance_unmapped_outparams)
  45062. def ll_pdf_annot_default_appearance_unmapped_outparams_fn(annot, font_name, font_name_len, color, outparams):
  45063. return _mupdf.ll_pdf_annot_default_appearance_unmapped_outparams_fn(annot, font_name, font_name_len, color, outparams)
  45064. class ll_pdf_annot_interior_color_outparams(object):
  45065. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45066. __repr__ = _swig_repr
  45067. n = property(_mupdf.ll_pdf_annot_interior_color_outparams_n_get, _mupdf.ll_pdf_annot_interior_color_outparams_n_set)
  45068. def __init__(self):
  45069. _mupdf.ll_pdf_annot_interior_color_outparams_swiginit(self, _mupdf.new_ll_pdf_annot_interior_color_outparams())
  45070. __swig_destroy__ = _mupdf.delete_ll_pdf_annot_interior_color_outparams
  45071. # Register ll_pdf_annot_interior_color_outparams in _mupdf:
  45072. _mupdf.ll_pdf_annot_interior_color_outparams_swigregister(ll_pdf_annot_interior_color_outparams)
  45073. def ll_pdf_annot_interior_color_outparams_fn(annot, color, outparams):
  45074. return _mupdf.ll_pdf_annot_interior_color_outparams_fn(annot, color, outparams)
  45075. class ll_pdf_annot_line_ending_styles_outparams(object):
  45076. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45077. __repr__ = _swig_repr
  45078. start_style = property(_mupdf.ll_pdf_annot_line_ending_styles_outparams_start_style_get, _mupdf.ll_pdf_annot_line_ending_styles_outparams_start_style_set)
  45079. end_style = property(_mupdf.ll_pdf_annot_line_ending_styles_outparams_end_style_get, _mupdf.ll_pdf_annot_line_ending_styles_outparams_end_style_set)
  45080. def __init__(self):
  45081. _mupdf.ll_pdf_annot_line_ending_styles_outparams_swiginit(self, _mupdf.new_ll_pdf_annot_line_ending_styles_outparams())
  45082. __swig_destroy__ = _mupdf.delete_ll_pdf_annot_line_ending_styles_outparams
  45083. # Register ll_pdf_annot_line_ending_styles_outparams in _mupdf:
  45084. _mupdf.ll_pdf_annot_line_ending_styles_outparams_swigregister(ll_pdf_annot_line_ending_styles_outparams)
  45085. def ll_pdf_annot_line_ending_styles_outparams_fn(annot, outparams):
  45086. return _mupdf.ll_pdf_annot_line_ending_styles_outparams_fn(annot, outparams)
  45087. class ll_pdf_array_get_string_outparams(object):
  45088. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45089. __repr__ = _swig_repr
  45090. sizep = property(_mupdf.ll_pdf_array_get_string_outparams_sizep_get, _mupdf.ll_pdf_array_get_string_outparams_sizep_set)
  45091. def __init__(self):
  45092. _mupdf.ll_pdf_array_get_string_outparams_swiginit(self, _mupdf.new_ll_pdf_array_get_string_outparams())
  45093. __swig_destroy__ = _mupdf.delete_ll_pdf_array_get_string_outparams
  45094. # Register ll_pdf_array_get_string_outparams in _mupdf:
  45095. _mupdf.ll_pdf_array_get_string_outparams_swigregister(ll_pdf_array_get_string_outparams)
  45096. def ll_pdf_array_get_string_outparams_fn(array, index, outparams):
  45097. return _mupdf.ll_pdf_array_get_string_outparams_fn(array, index, outparams)
  45098. class ll_pdf_count_q_balance_outparams(object):
  45099. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45100. __repr__ = _swig_repr
  45101. prepend = property(_mupdf.ll_pdf_count_q_balance_outparams_prepend_get, _mupdf.ll_pdf_count_q_balance_outparams_prepend_set)
  45102. append = property(_mupdf.ll_pdf_count_q_balance_outparams_append_get, _mupdf.ll_pdf_count_q_balance_outparams_append_set)
  45103. def __init__(self):
  45104. _mupdf.ll_pdf_count_q_balance_outparams_swiginit(self, _mupdf.new_ll_pdf_count_q_balance_outparams())
  45105. __swig_destroy__ = _mupdf.delete_ll_pdf_count_q_balance_outparams
  45106. # Register ll_pdf_count_q_balance_outparams in _mupdf:
  45107. _mupdf.ll_pdf_count_q_balance_outparams_swigregister(ll_pdf_count_q_balance_outparams)
  45108. def ll_pdf_count_q_balance_outparams_fn(doc, res, stm, outparams):
  45109. return _mupdf.ll_pdf_count_q_balance_outparams_fn(doc, res, stm, outparams)
  45110. class ll_pdf_decode_cmap_outparams(object):
  45111. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45112. __repr__ = _swig_repr
  45113. cpt = property(_mupdf.ll_pdf_decode_cmap_outparams_cpt_get, _mupdf.ll_pdf_decode_cmap_outparams_cpt_set)
  45114. def __init__(self):
  45115. _mupdf.ll_pdf_decode_cmap_outparams_swiginit(self, _mupdf.new_ll_pdf_decode_cmap_outparams())
  45116. __swig_destroy__ = _mupdf.delete_ll_pdf_decode_cmap_outparams
  45117. # Register ll_pdf_decode_cmap_outparams in _mupdf:
  45118. _mupdf.ll_pdf_decode_cmap_outparams_swigregister(ll_pdf_decode_cmap_outparams)
  45119. def ll_pdf_decode_cmap_outparams_fn(cmap, s, e, outparams):
  45120. return _mupdf.ll_pdf_decode_cmap_outparams_fn(cmap, s, e, outparams)
  45121. class ll_pdf_dict_get_inheritable_string_outparams(object):
  45122. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45123. __repr__ = _swig_repr
  45124. sizep = property(_mupdf.ll_pdf_dict_get_inheritable_string_outparams_sizep_get, _mupdf.ll_pdf_dict_get_inheritable_string_outparams_sizep_set)
  45125. def __init__(self):
  45126. _mupdf.ll_pdf_dict_get_inheritable_string_outparams_swiginit(self, _mupdf.new_ll_pdf_dict_get_inheritable_string_outparams())
  45127. __swig_destroy__ = _mupdf.delete_ll_pdf_dict_get_inheritable_string_outparams
  45128. # Register ll_pdf_dict_get_inheritable_string_outparams in _mupdf:
  45129. _mupdf.ll_pdf_dict_get_inheritable_string_outparams_swigregister(ll_pdf_dict_get_inheritable_string_outparams)
  45130. def ll_pdf_dict_get_inheritable_string_outparams_fn(dict, key, outparams):
  45131. return _mupdf.ll_pdf_dict_get_inheritable_string_outparams_fn(dict, key, outparams)
  45132. class ll_pdf_dict_get_put_drop_outparams(object):
  45133. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45134. __repr__ = _swig_repr
  45135. old_val = property(_mupdf.ll_pdf_dict_get_put_drop_outparams_old_val_get, _mupdf.ll_pdf_dict_get_put_drop_outparams_old_val_set)
  45136. def __init__(self):
  45137. _mupdf.ll_pdf_dict_get_put_drop_outparams_swiginit(self, _mupdf.new_ll_pdf_dict_get_put_drop_outparams())
  45138. __swig_destroy__ = _mupdf.delete_ll_pdf_dict_get_put_drop_outparams
  45139. # Register ll_pdf_dict_get_put_drop_outparams in _mupdf:
  45140. _mupdf.ll_pdf_dict_get_put_drop_outparams_swigregister(ll_pdf_dict_get_put_drop_outparams)
  45141. def ll_pdf_dict_get_put_drop_outparams_fn(dict, key, val, outparams):
  45142. return _mupdf.ll_pdf_dict_get_put_drop_outparams_fn(dict, key, val, outparams)
  45143. class ll_pdf_dict_get_string_outparams(object):
  45144. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45145. __repr__ = _swig_repr
  45146. sizep = property(_mupdf.ll_pdf_dict_get_string_outparams_sizep_get, _mupdf.ll_pdf_dict_get_string_outparams_sizep_set)
  45147. def __init__(self):
  45148. _mupdf.ll_pdf_dict_get_string_outparams_swiginit(self, _mupdf.new_ll_pdf_dict_get_string_outparams())
  45149. __swig_destroy__ = _mupdf.delete_ll_pdf_dict_get_string_outparams
  45150. # Register ll_pdf_dict_get_string_outparams in _mupdf:
  45151. _mupdf.ll_pdf_dict_get_string_outparams_swigregister(ll_pdf_dict_get_string_outparams)
  45152. def ll_pdf_dict_get_string_outparams_fn(dict, key, outparams):
  45153. return _mupdf.ll_pdf_dict_get_string_outparams_fn(dict, key, outparams)
  45154. class ll_pdf_edit_text_field_value_outparams(object):
  45155. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45156. __repr__ = _swig_repr
  45157. selStart = property(_mupdf.ll_pdf_edit_text_field_value_outparams_selStart_get, _mupdf.ll_pdf_edit_text_field_value_outparams_selStart_set)
  45158. selEnd = property(_mupdf.ll_pdf_edit_text_field_value_outparams_selEnd_get, _mupdf.ll_pdf_edit_text_field_value_outparams_selEnd_set)
  45159. newvalue = property(_mupdf.ll_pdf_edit_text_field_value_outparams_newvalue_get, _mupdf.ll_pdf_edit_text_field_value_outparams_newvalue_set)
  45160. def __init__(self):
  45161. _mupdf.ll_pdf_edit_text_field_value_outparams_swiginit(self, _mupdf.new_ll_pdf_edit_text_field_value_outparams())
  45162. __swig_destroy__ = _mupdf.delete_ll_pdf_edit_text_field_value_outparams
  45163. # Register ll_pdf_edit_text_field_value_outparams in _mupdf:
  45164. _mupdf.ll_pdf_edit_text_field_value_outparams_swigregister(ll_pdf_edit_text_field_value_outparams)
  45165. def ll_pdf_edit_text_field_value_outparams_fn(widget, value, change, outparams):
  45166. return _mupdf.ll_pdf_edit_text_field_value_outparams_fn(widget, value, change, outparams)
  45167. class ll_pdf_eval_function_outparams(object):
  45168. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45169. __repr__ = _swig_repr
  45170. out = property(_mupdf.ll_pdf_eval_function_outparams_out_get, _mupdf.ll_pdf_eval_function_outparams_out_set)
  45171. def __init__(self):
  45172. _mupdf.ll_pdf_eval_function_outparams_swiginit(self, _mupdf.new_ll_pdf_eval_function_outparams())
  45173. __swig_destroy__ = _mupdf.delete_ll_pdf_eval_function_outparams
  45174. # Register ll_pdf_eval_function_outparams in _mupdf:
  45175. _mupdf.ll_pdf_eval_function_outparams_swigregister(ll_pdf_eval_function_outparams)
  45176. def ll_pdf_eval_function_outparams_fn(func, _in, inlen, outlen, outparams):
  45177. return _mupdf.ll_pdf_eval_function_outparams_fn(func, _in, inlen, outlen, outparams)
  45178. class ll_pdf_field_event_validate_outparams(object):
  45179. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45180. __repr__ = _swig_repr
  45181. newvalue = property(_mupdf.ll_pdf_field_event_validate_outparams_newvalue_get, _mupdf.ll_pdf_field_event_validate_outparams_newvalue_set)
  45182. def __init__(self):
  45183. _mupdf.ll_pdf_field_event_validate_outparams_swiginit(self, _mupdf.new_ll_pdf_field_event_validate_outparams())
  45184. __swig_destroy__ = _mupdf.delete_ll_pdf_field_event_validate_outparams
  45185. # Register ll_pdf_field_event_validate_outparams in _mupdf:
  45186. _mupdf.ll_pdf_field_event_validate_outparams_swigregister(ll_pdf_field_event_validate_outparams)
  45187. def ll_pdf_field_event_validate_outparams_fn(doc, field, value, outparams):
  45188. return _mupdf.ll_pdf_field_event_validate_outparams_fn(doc, field, value, outparams)
  45189. class ll_pdf_js_event_result_validate_outparams(object):
  45190. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45191. __repr__ = _swig_repr
  45192. newvalue = property(_mupdf.ll_pdf_js_event_result_validate_outparams_newvalue_get, _mupdf.ll_pdf_js_event_result_validate_outparams_newvalue_set)
  45193. def __init__(self):
  45194. _mupdf.ll_pdf_js_event_result_validate_outparams_swiginit(self, _mupdf.new_ll_pdf_js_event_result_validate_outparams())
  45195. __swig_destroy__ = _mupdf.delete_ll_pdf_js_event_result_validate_outparams
  45196. # Register ll_pdf_js_event_result_validate_outparams in _mupdf:
  45197. _mupdf.ll_pdf_js_event_result_validate_outparams_swigregister(ll_pdf_js_event_result_validate_outparams)
  45198. def ll_pdf_js_event_result_validate_outparams_fn(js, outparams):
  45199. return _mupdf.ll_pdf_js_event_result_validate_outparams_fn(js, outparams)
  45200. class ll_pdf_js_execute_outparams(object):
  45201. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45202. __repr__ = _swig_repr
  45203. result = property(_mupdf.ll_pdf_js_execute_outparams_result_get, _mupdf.ll_pdf_js_execute_outparams_result_set)
  45204. def __init__(self):
  45205. _mupdf.ll_pdf_js_execute_outparams_swiginit(self, _mupdf.new_ll_pdf_js_execute_outparams())
  45206. __swig_destroy__ = _mupdf.delete_ll_pdf_js_execute_outparams
  45207. # Register ll_pdf_js_execute_outparams in _mupdf:
  45208. _mupdf.ll_pdf_js_execute_outparams_swigregister(ll_pdf_js_execute_outparams)
  45209. def ll_pdf_js_execute_outparams_fn(js, name, code, outparams):
  45210. return _mupdf.ll_pdf_js_execute_outparams_fn(js, name, code, outparams)
  45211. class ll_pdf_load_encoding_outparams(object):
  45212. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45213. __repr__ = _swig_repr
  45214. estrings = property(_mupdf.ll_pdf_load_encoding_outparams_estrings_get, _mupdf.ll_pdf_load_encoding_outparams_estrings_set)
  45215. def __init__(self):
  45216. _mupdf.ll_pdf_load_encoding_outparams_swiginit(self, _mupdf.new_ll_pdf_load_encoding_outparams())
  45217. __swig_destroy__ = _mupdf.delete_ll_pdf_load_encoding_outparams
  45218. # Register ll_pdf_load_encoding_outparams in _mupdf:
  45219. _mupdf.ll_pdf_load_encoding_outparams_swigregister(ll_pdf_load_encoding_outparams)
  45220. def ll_pdf_load_encoding_outparams_fn(encoding, outparams):
  45221. return _mupdf.ll_pdf_load_encoding_outparams_fn(encoding, outparams)
  45222. class ll_pdf_load_to_unicode_outparams(object):
  45223. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45224. __repr__ = _swig_repr
  45225. strings = property(_mupdf.ll_pdf_load_to_unicode_outparams_strings_get, _mupdf.ll_pdf_load_to_unicode_outparams_strings_set)
  45226. def __init__(self):
  45227. _mupdf.ll_pdf_load_to_unicode_outparams_swiginit(self, _mupdf.new_ll_pdf_load_to_unicode_outparams())
  45228. __swig_destroy__ = _mupdf.delete_ll_pdf_load_to_unicode_outparams
  45229. # Register ll_pdf_load_to_unicode_outparams in _mupdf:
  45230. _mupdf.ll_pdf_load_to_unicode_outparams_swigregister(ll_pdf_load_to_unicode_outparams)
  45231. def ll_pdf_load_to_unicode_outparams_fn(doc, font, collection, cmapstm, outparams):
  45232. return _mupdf.ll_pdf_load_to_unicode_outparams_fn(doc, font, collection, cmapstm, outparams)
  45233. class ll_pdf_lookup_cmap_full_outparams(object):
  45234. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45235. __repr__ = _swig_repr
  45236. out = property(_mupdf.ll_pdf_lookup_cmap_full_outparams_out_get, _mupdf.ll_pdf_lookup_cmap_full_outparams_out_set)
  45237. def __init__(self):
  45238. _mupdf.ll_pdf_lookup_cmap_full_outparams_swiginit(self, _mupdf.new_ll_pdf_lookup_cmap_full_outparams())
  45239. __swig_destroy__ = _mupdf.delete_ll_pdf_lookup_cmap_full_outparams
  45240. # Register ll_pdf_lookup_cmap_full_outparams in _mupdf:
  45241. _mupdf.ll_pdf_lookup_cmap_full_outparams_swigregister(ll_pdf_lookup_cmap_full_outparams)
  45242. def ll_pdf_lookup_cmap_full_outparams_fn(cmap, cpt, outparams):
  45243. return _mupdf.ll_pdf_lookup_cmap_full_outparams_fn(cmap, cpt, outparams)
  45244. class ll_pdf_lookup_page_loc_outparams(object):
  45245. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45246. __repr__ = _swig_repr
  45247. parentp = property(_mupdf.ll_pdf_lookup_page_loc_outparams_parentp_get, _mupdf.ll_pdf_lookup_page_loc_outparams_parentp_set)
  45248. indexp = property(_mupdf.ll_pdf_lookup_page_loc_outparams_indexp_get, _mupdf.ll_pdf_lookup_page_loc_outparams_indexp_set)
  45249. def __init__(self):
  45250. _mupdf.ll_pdf_lookup_page_loc_outparams_swiginit(self, _mupdf.new_ll_pdf_lookup_page_loc_outparams())
  45251. __swig_destroy__ = _mupdf.delete_ll_pdf_lookup_page_loc_outparams
  45252. # Register ll_pdf_lookup_page_loc_outparams in _mupdf:
  45253. _mupdf.ll_pdf_lookup_page_loc_outparams_swigregister(ll_pdf_lookup_page_loc_outparams)
  45254. def ll_pdf_lookup_page_loc_outparams_fn(doc, needle, outparams):
  45255. return _mupdf.ll_pdf_lookup_page_loc_outparams_fn(doc, needle, outparams)
  45256. class ll_pdf_lookup_substitute_font_outparams(object):
  45257. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45258. __repr__ = _swig_repr
  45259. len = property(_mupdf.ll_pdf_lookup_substitute_font_outparams_len_get, _mupdf.ll_pdf_lookup_substitute_font_outparams_len_set)
  45260. def __init__(self):
  45261. _mupdf.ll_pdf_lookup_substitute_font_outparams_swiginit(self, _mupdf.new_ll_pdf_lookup_substitute_font_outparams())
  45262. __swig_destroy__ = _mupdf.delete_ll_pdf_lookup_substitute_font_outparams
  45263. # Register ll_pdf_lookup_substitute_font_outparams in _mupdf:
  45264. _mupdf.ll_pdf_lookup_substitute_font_outparams_swigregister(ll_pdf_lookup_substitute_font_outparams)
  45265. def ll_pdf_lookup_substitute_font_outparams_fn(mono, serif, bold, italic, outparams):
  45266. return _mupdf.ll_pdf_lookup_substitute_font_outparams_fn(mono, serif, bold, italic, outparams)
  45267. class ll_pdf_map_one_to_many_outparams(object):
  45268. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45269. __repr__ = _swig_repr
  45270. many = property(_mupdf.ll_pdf_map_one_to_many_outparams_many_get, _mupdf.ll_pdf_map_one_to_many_outparams_many_set)
  45271. def __init__(self):
  45272. _mupdf.ll_pdf_map_one_to_many_outparams_swiginit(self, _mupdf.new_ll_pdf_map_one_to_many_outparams())
  45273. __swig_destroy__ = _mupdf.delete_ll_pdf_map_one_to_many_outparams
  45274. # Register ll_pdf_map_one_to_many_outparams in _mupdf:
  45275. _mupdf.ll_pdf_map_one_to_many_outparams_swigregister(ll_pdf_map_one_to_many_outparams)
  45276. def ll_pdf_map_one_to_many_outparams_fn(cmap, one, len, outparams):
  45277. return _mupdf.ll_pdf_map_one_to_many_outparams_fn(cmap, one, len, outparams)
  45278. class ll_pdf_obj_memo_outparams(object):
  45279. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45280. __repr__ = _swig_repr
  45281. memo = property(_mupdf.ll_pdf_obj_memo_outparams_memo_get, _mupdf.ll_pdf_obj_memo_outparams_memo_set)
  45282. def __init__(self):
  45283. _mupdf.ll_pdf_obj_memo_outparams_swiginit(self, _mupdf.new_ll_pdf_obj_memo_outparams())
  45284. __swig_destroy__ = _mupdf.delete_ll_pdf_obj_memo_outparams
  45285. # Register ll_pdf_obj_memo_outparams in _mupdf:
  45286. _mupdf.ll_pdf_obj_memo_outparams_swigregister(ll_pdf_obj_memo_outparams)
  45287. def ll_pdf_obj_memo_outparams_fn(obj, bit, outparams):
  45288. return _mupdf.ll_pdf_obj_memo_outparams_fn(obj, bit, outparams)
  45289. class ll_pdf_page_presentation_outparams(object):
  45290. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45291. __repr__ = _swig_repr
  45292. duration = property(_mupdf.ll_pdf_page_presentation_outparams_duration_get, _mupdf.ll_pdf_page_presentation_outparams_duration_set)
  45293. def __init__(self):
  45294. _mupdf.ll_pdf_page_presentation_outparams_swiginit(self, _mupdf.new_ll_pdf_page_presentation_outparams())
  45295. __swig_destroy__ = _mupdf.delete_ll_pdf_page_presentation_outparams
  45296. # Register ll_pdf_page_presentation_outparams in _mupdf:
  45297. _mupdf.ll_pdf_page_presentation_outparams_swigregister(ll_pdf_page_presentation_outparams)
  45298. def ll_pdf_page_presentation_outparams_fn(page, transition, outparams):
  45299. return _mupdf.ll_pdf_page_presentation_outparams_fn(page, transition, outparams)
  45300. class ll_pdf_page_write_outparams(object):
  45301. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45302. __repr__ = _swig_repr
  45303. presources = property(_mupdf.ll_pdf_page_write_outparams_presources_get, _mupdf.ll_pdf_page_write_outparams_presources_set)
  45304. pcontents = property(_mupdf.ll_pdf_page_write_outparams_pcontents_get, _mupdf.ll_pdf_page_write_outparams_pcontents_set)
  45305. def __init__(self):
  45306. _mupdf.ll_pdf_page_write_outparams_swiginit(self, _mupdf.new_ll_pdf_page_write_outparams())
  45307. __swig_destroy__ = _mupdf.delete_ll_pdf_page_write_outparams
  45308. # Register ll_pdf_page_write_outparams in _mupdf:
  45309. _mupdf.ll_pdf_page_write_outparams_swigregister(ll_pdf_page_write_outparams)
  45310. def ll_pdf_page_write_outparams_fn(doc, mediabox, outparams):
  45311. return _mupdf.ll_pdf_page_write_outparams_fn(doc, mediabox, outparams)
  45312. class ll_pdf_parse_default_appearance_outparams(object):
  45313. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45314. __repr__ = _swig_repr
  45315. font = property(_mupdf.ll_pdf_parse_default_appearance_outparams_font_get, _mupdf.ll_pdf_parse_default_appearance_outparams_font_set)
  45316. size = property(_mupdf.ll_pdf_parse_default_appearance_outparams_size_get, _mupdf.ll_pdf_parse_default_appearance_outparams_size_set)
  45317. n = property(_mupdf.ll_pdf_parse_default_appearance_outparams_n_get, _mupdf.ll_pdf_parse_default_appearance_outparams_n_set)
  45318. def __init__(self):
  45319. _mupdf.ll_pdf_parse_default_appearance_outparams_swiginit(self, _mupdf.new_ll_pdf_parse_default_appearance_outparams())
  45320. __swig_destroy__ = _mupdf.delete_ll_pdf_parse_default_appearance_outparams
  45321. # Register ll_pdf_parse_default_appearance_outparams in _mupdf:
  45322. _mupdf.ll_pdf_parse_default_appearance_outparams_swigregister(ll_pdf_parse_default_appearance_outparams)
  45323. def ll_pdf_parse_default_appearance_outparams_fn(da, color, outparams):
  45324. return _mupdf.ll_pdf_parse_default_appearance_outparams_fn(da, color, outparams)
  45325. class ll_pdf_parse_default_appearance_unmapped_outparams(object):
  45326. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45327. __repr__ = _swig_repr
  45328. size = property(_mupdf.ll_pdf_parse_default_appearance_unmapped_outparams_size_get, _mupdf.ll_pdf_parse_default_appearance_unmapped_outparams_size_set)
  45329. n = property(_mupdf.ll_pdf_parse_default_appearance_unmapped_outparams_n_get, _mupdf.ll_pdf_parse_default_appearance_unmapped_outparams_n_set)
  45330. def __init__(self):
  45331. _mupdf.ll_pdf_parse_default_appearance_unmapped_outparams_swiginit(self, _mupdf.new_ll_pdf_parse_default_appearance_unmapped_outparams())
  45332. __swig_destroy__ = _mupdf.delete_ll_pdf_parse_default_appearance_unmapped_outparams
  45333. # Register ll_pdf_parse_default_appearance_unmapped_outparams in _mupdf:
  45334. _mupdf.ll_pdf_parse_default_appearance_unmapped_outparams_swigregister(ll_pdf_parse_default_appearance_unmapped_outparams)
  45335. def ll_pdf_parse_default_appearance_unmapped_outparams_fn(da, font_name, font_name_len, color, outparams):
  45336. return _mupdf.ll_pdf_parse_default_appearance_unmapped_outparams_fn(da, font_name, font_name_len, color, outparams)
  45337. class ll_pdf_parse_ind_obj_outparams(object):
  45338. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45339. __repr__ = _swig_repr
  45340. num = property(_mupdf.ll_pdf_parse_ind_obj_outparams_num_get, _mupdf.ll_pdf_parse_ind_obj_outparams_num_set)
  45341. gen = property(_mupdf.ll_pdf_parse_ind_obj_outparams_gen_get, _mupdf.ll_pdf_parse_ind_obj_outparams_gen_set)
  45342. stm_ofs = property(_mupdf.ll_pdf_parse_ind_obj_outparams_stm_ofs_get, _mupdf.ll_pdf_parse_ind_obj_outparams_stm_ofs_set)
  45343. try_repair = property(_mupdf.ll_pdf_parse_ind_obj_outparams_try_repair_get, _mupdf.ll_pdf_parse_ind_obj_outparams_try_repair_set)
  45344. def __init__(self):
  45345. _mupdf.ll_pdf_parse_ind_obj_outparams_swiginit(self, _mupdf.new_ll_pdf_parse_ind_obj_outparams())
  45346. __swig_destroy__ = _mupdf.delete_ll_pdf_parse_ind_obj_outparams
  45347. # Register ll_pdf_parse_ind_obj_outparams in _mupdf:
  45348. _mupdf.ll_pdf_parse_ind_obj_outparams_swigregister(ll_pdf_parse_ind_obj_outparams)
  45349. def ll_pdf_parse_ind_obj_outparams_fn(doc, f, outparams):
  45350. return _mupdf.ll_pdf_parse_ind_obj_outparams_fn(doc, f, outparams)
  45351. class ll_pdf_parse_journal_obj_outparams(object):
  45352. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45353. __repr__ = _swig_repr
  45354. onum = property(_mupdf.ll_pdf_parse_journal_obj_outparams_onum_get, _mupdf.ll_pdf_parse_journal_obj_outparams_onum_set)
  45355. ostm = property(_mupdf.ll_pdf_parse_journal_obj_outparams_ostm_get, _mupdf.ll_pdf_parse_journal_obj_outparams_ostm_set)
  45356. newobj = property(_mupdf.ll_pdf_parse_journal_obj_outparams_newobj_get, _mupdf.ll_pdf_parse_journal_obj_outparams_newobj_set)
  45357. def __init__(self):
  45358. _mupdf.ll_pdf_parse_journal_obj_outparams_swiginit(self, _mupdf.new_ll_pdf_parse_journal_obj_outparams())
  45359. __swig_destroy__ = _mupdf.delete_ll_pdf_parse_journal_obj_outparams
  45360. # Register ll_pdf_parse_journal_obj_outparams in _mupdf:
  45361. _mupdf.ll_pdf_parse_journal_obj_outparams_swigregister(ll_pdf_parse_journal_obj_outparams)
  45362. def ll_pdf_parse_journal_obj_outparams_fn(doc, stm, outparams):
  45363. return _mupdf.ll_pdf_parse_journal_obj_outparams_fn(doc, stm, outparams)
  45364. class ll_pdf_print_encrypted_obj_outparams(object):
  45365. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45366. __repr__ = _swig_repr
  45367. sep = property(_mupdf.ll_pdf_print_encrypted_obj_outparams_sep_get, _mupdf.ll_pdf_print_encrypted_obj_outparams_sep_set)
  45368. def __init__(self):
  45369. _mupdf.ll_pdf_print_encrypted_obj_outparams_swiginit(self, _mupdf.new_ll_pdf_print_encrypted_obj_outparams())
  45370. __swig_destroy__ = _mupdf.delete_ll_pdf_print_encrypted_obj_outparams
  45371. # Register ll_pdf_print_encrypted_obj_outparams in _mupdf:
  45372. _mupdf.ll_pdf_print_encrypted_obj_outparams_swigregister(ll_pdf_print_encrypted_obj_outparams)
  45373. def ll_pdf_print_encrypted_obj_outparams_fn(out, obj, tight, ascii, crypt, num, gen, outparams):
  45374. return _mupdf.ll_pdf_print_encrypted_obj_outparams_fn(out, obj, tight, ascii, crypt, num, gen, outparams)
  45375. class ll_pdf_process_contents_outparams(object):
  45376. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45377. __repr__ = _swig_repr
  45378. out_res = property(_mupdf.ll_pdf_process_contents_outparams_out_res_get, _mupdf.ll_pdf_process_contents_outparams_out_res_set)
  45379. def __init__(self):
  45380. _mupdf.ll_pdf_process_contents_outparams_swiginit(self, _mupdf.new_ll_pdf_process_contents_outparams())
  45381. __swig_destroy__ = _mupdf.delete_ll_pdf_process_contents_outparams
  45382. # Register ll_pdf_process_contents_outparams in _mupdf:
  45383. _mupdf.ll_pdf_process_contents_outparams_swigregister(ll_pdf_process_contents_outparams)
  45384. def ll_pdf_process_contents_outparams_fn(proc, doc, res, stm, cookie, outparams):
  45385. return _mupdf.ll_pdf_process_contents_outparams_fn(proc, doc, res, stm, cookie, outparams)
  45386. class ll_pdf_repair_obj_outparams(object):
  45387. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45388. __repr__ = _swig_repr
  45389. stmofsp = property(_mupdf.ll_pdf_repair_obj_outparams_stmofsp_get, _mupdf.ll_pdf_repair_obj_outparams_stmofsp_set)
  45390. stmlenp = property(_mupdf.ll_pdf_repair_obj_outparams_stmlenp_get, _mupdf.ll_pdf_repair_obj_outparams_stmlenp_set)
  45391. encrypt = property(_mupdf.ll_pdf_repair_obj_outparams_encrypt_get, _mupdf.ll_pdf_repair_obj_outparams_encrypt_set)
  45392. id = property(_mupdf.ll_pdf_repair_obj_outparams_id_get, _mupdf.ll_pdf_repair_obj_outparams_id_set)
  45393. page = property(_mupdf.ll_pdf_repair_obj_outparams_page_get, _mupdf.ll_pdf_repair_obj_outparams_page_set)
  45394. tmpofs = property(_mupdf.ll_pdf_repair_obj_outparams_tmpofs_get, _mupdf.ll_pdf_repair_obj_outparams_tmpofs_set)
  45395. root = property(_mupdf.ll_pdf_repair_obj_outparams_root_get, _mupdf.ll_pdf_repair_obj_outparams_root_set)
  45396. def __init__(self):
  45397. _mupdf.ll_pdf_repair_obj_outparams_swiginit(self, _mupdf.new_ll_pdf_repair_obj_outparams())
  45398. __swig_destroy__ = _mupdf.delete_ll_pdf_repair_obj_outparams
  45399. # Register ll_pdf_repair_obj_outparams in _mupdf:
  45400. _mupdf.ll_pdf_repair_obj_outparams_swigregister(ll_pdf_repair_obj_outparams)
  45401. def ll_pdf_repair_obj_outparams_fn(doc, buf, outparams):
  45402. return _mupdf.ll_pdf_repair_obj_outparams_fn(doc, buf, outparams)
  45403. class ll_pdf_resolve_link_outparams(object):
  45404. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45405. __repr__ = _swig_repr
  45406. xp = property(_mupdf.ll_pdf_resolve_link_outparams_xp_get, _mupdf.ll_pdf_resolve_link_outparams_xp_set)
  45407. yp = property(_mupdf.ll_pdf_resolve_link_outparams_yp_get, _mupdf.ll_pdf_resolve_link_outparams_yp_set)
  45408. def __init__(self):
  45409. _mupdf.ll_pdf_resolve_link_outparams_swiginit(self, _mupdf.new_ll_pdf_resolve_link_outparams())
  45410. __swig_destroy__ = _mupdf.delete_ll_pdf_resolve_link_outparams
  45411. # Register ll_pdf_resolve_link_outparams in _mupdf:
  45412. _mupdf.ll_pdf_resolve_link_outparams_swigregister(ll_pdf_resolve_link_outparams)
  45413. def ll_pdf_resolve_link_outparams_fn(doc, uri, outparams):
  45414. return _mupdf.ll_pdf_resolve_link_outparams_fn(doc, uri, outparams)
  45415. class ll_pdf_sample_shade_function_outparams(object):
  45416. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45417. __repr__ = _swig_repr
  45418. samples = property(_mupdf.ll_pdf_sample_shade_function_outparams_samples_get, _mupdf.ll_pdf_sample_shade_function_outparams_samples_set)
  45419. func = property(_mupdf.ll_pdf_sample_shade_function_outparams_func_get, _mupdf.ll_pdf_sample_shade_function_outparams_func_set)
  45420. def __init__(self):
  45421. _mupdf.ll_pdf_sample_shade_function_outparams_swiginit(self, _mupdf.new_ll_pdf_sample_shade_function_outparams())
  45422. __swig_destroy__ = _mupdf.delete_ll_pdf_sample_shade_function_outparams
  45423. # Register ll_pdf_sample_shade_function_outparams in _mupdf:
  45424. _mupdf.ll_pdf_sample_shade_function_outparams_swigregister(ll_pdf_sample_shade_function_outparams)
  45425. def ll_pdf_sample_shade_function_outparams_fn(n, funcs, t0, t1, outparams):
  45426. return _mupdf.ll_pdf_sample_shade_function_outparams_fn(n, funcs, t0, t1, outparams)
  45427. class ll_pdf_signature_contents_outparams(object):
  45428. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45429. __repr__ = _swig_repr
  45430. contents = property(_mupdf.ll_pdf_signature_contents_outparams_contents_get, _mupdf.ll_pdf_signature_contents_outparams_contents_set)
  45431. def __init__(self):
  45432. _mupdf.ll_pdf_signature_contents_outparams_swiginit(self, _mupdf.new_ll_pdf_signature_contents_outparams())
  45433. __swig_destroy__ = _mupdf.delete_ll_pdf_signature_contents_outparams
  45434. # Register ll_pdf_signature_contents_outparams in _mupdf:
  45435. _mupdf.ll_pdf_signature_contents_outparams_swigregister(ll_pdf_signature_contents_outparams)
  45436. def ll_pdf_signature_contents_outparams_fn(doc, signature, outparams):
  45437. return _mupdf.ll_pdf_signature_contents_outparams_fn(doc, signature, outparams)
  45438. class ll_pdf_sprint_obj_outparams(object):
  45439. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45440. __repr__ = _swig_repr
  45441. len = property(_mupdf.ll_pdf_sprint_obj_outparams_len_get, _mupdf.ll_pdf_sprint_obj_outparams_len_set)
  45442. def __init__(self):
  45443. _mupdf.ll_pdf_sprint_obj_outparams_swiginit(self, _mupdf.new_ll_pdf_sprint_obj_outparams())
  45444. __swig_destroy__ = _mupdf.delete_ll_pdf_sprint_obj_outparams
  45445. # Register ll_pdf_sprint_obj_outparams in _mupdf:
  45446. _mupdf.ll_pdf_sprint_obj_outparams_swigregister(ll_pdf_sprint_obj_outparams)
  45447. def ll_pdf_sprint_obj_outparams_fn(buf, cap, obj, tight, ascii, outparams):
  45448. return _mupdf.ll_pdf_sprint_obj_outparams_fn(buf, cap, obj, tight, ascii, outparams)
  45449. class ll_pdf_to_string_outparams(object):
  45450. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45451. __repr__ = _swig_repr
  45452. sizep = property(_mupdf.ll_pdf_to_string_outparams_sizep_get, _mupdf.ll_pdf_to_string_outparams_sizep_set)
  45453. def __init__(self):
  45454. _mupdf.ll_pdf_to_string_outparams_swiginit(self, _mupdf.new_ll_pdf_to_string_outparams())
  45455. __swig_destroy__ = _mupdf.delete_ll_pdf_to_string_outparams
  45456. # Register ll_pdf_to_string_outparams in _mupdf:
  45457. _mupdf.ll_pdf_to_string_outparams_swigregister(ll_pdf_to_string_outparams)
  45458. def ll_pdf_to_string_outparams_fn(obj, outparams):
  45459. return _mupdf.ll_pdf_to_string_outparams_fn(obj, outparams)
  45460. class ll_pdf_tos_make_trm_outparams(object):
  45461. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45462. __repr__ = _swig_repr
  45463. adv = property(_mupdf.ll_pdf_tos_make_trm_outparams_adv_get, _mupdf.ll_pdf_tos_make_trm_outparams_adv_set)
  45464. def __init__(self):
  45465. _mupdf.ll_pdf_tos_make_trm_outparams_swiginit(self, _mupdf.new_ll_pdf_tos_make_trm_outparams())
  45466. __swig_destroy__ = _mupdf.delete_ll_pdf_tos_make_trm_outparams
  45467. # Register ll_pdf_tos_make_trm_outparams in _mupdf:
  45468. _mupdf.ll_pdf_tos_make_trm_outparams_swigregister(ll_pdf_tos_make_trm_outparams)
  45469. def ll_pdf_tos_make_trm_outparams_fn(tos, text, fontdesc, cid, trm, outparams):
  45470. return _mupdf.ll_pdf_tos_make_trm_outparams_fn(tos, text, fontdesc, cid, trm, outparams)
  45471. class ll_pdf_undoredo_state_outparams(object):
  45472. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45473. __repr__ = _swig_repr
  45474. steps = property(_mupdf.ll_pdf_undoredo_state_outparams_steps_get, _mupdf.ll_pdf_undoredo_state_outparams_steps_set)
  45475. def __init__(self):
  45476. _mupdf.ll_pdf_undoredo_state_outparams_swiginit(self, _mupdf.new_ll_pdf_undoredo_state_outparams())
  45477. __swig_destroy__ = _mupdf.delete_ll_pdf_undoredo_state_outparams
  45478. # Register ll_pdf_undoredo_state_outparams in _mupdf:
  45479. _mupdf.ll_pdf_undoredo_state_outparams_swigregister(ll_pdf_undoredo_state_outparams)
  45480. def ll_pdf_undoredo_state_outparams_fn(doc, outparams):
  45481. return _mupdf.ll_pdf_undoredo_state_outparams_fn(doc, outparams)
  45482. class ll_pdf_walk_tree_outparams(object):
  45483. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45484. __repr__ = _swig_repr
  45485. names = property(_mupdf.ll_pdf_walk_tree_outparams_names_get, _mupdf.ll_pdf_walk_tree_outparams_names_set)
  45486. values = property(_mupdf.ll_pdf_walk_tree_outparams_values_get, _mupdf.ll_pdf_walk_tree_outparams_values_set)
  45487. def __init__(self):
  45488. _mupdf.ll_pdf_walk_tree_outparams_swiginit(self, _mupdf.new_ll_pdf_walk_tree_outparams())
  45489. __swig_destroy__ = _mupdf.delete_ll_pdf_walk_tree_outparams
  45490. # Register ll_pdf_walk_tree_outparams in _mupdf:
  45491. _mupdf.ll_pdf_walk_tree_outparams_swigregister(ll_pdf_walk_tree_outparams)
  45492. def ll_pdf_walk_tree_outparams_fn(tree, kid_name, arrive, leave, arg, outparams):
  45493. return _mupdf.ll_pdf_walk_tree_outparams_fn(tree, kid_name, arrive, leave, arg, outparams)
  45494. class ll_pdf_zugferd_profile_outparams(object):
  45495. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  45496. __repr__ = _swig_repr
  45497. version = property(_mupdf.ll_pdf_zugferd_profile_outparams_version_get, _mupdf.ll_pdf_zugferd_profile_outparams_version_set)
  45498. def __init__(self):
  45499. _mupdf.ll_pdf_zugferd_profile_outparams_swiginit(self, _mupdf.new_ll_pdf_zugferd_profile_outparams())
  45500. __swig_destroy__ = _mupdf.delete_ll_pdf_zugferd_profile_outparams
  45501. # Register ll_pdf_zugferd_profile_outparams in _mupdf:
  45502. _mupdf.ll_pdf_zugferd_profile_outparams_swigregister(ll_pdf_zugferd_profile_outparams)
  45503. def ll_pdf_zugferd_profile_outparams_fn(doc, outparams):
  45504. return _mupdf.ll_pdf_zugferd_profile_outparams_fn(doc, outparams)
  45505. UCDN_EAST_ASIAN_F = _mupdf.UCDN_EAST_ASIAN_F
  45506. UCDN_EAST_ASIAN_H = _mupdf.UCDN_EAST_ASIAN_H
  45507. UCDN_EAST_ASIAN_W = _mupdf.UCDN_EAST_ASIAN_W
  45508. UCDN_EAST_ASIAN_NA = _mupdf.UCDN_EAST_ASIAN_NA
  45509. UCDN_EAST_ASIAN_A = _mupdf.UCDN_EAST_ASIAN_A
  45510. UCDN_EAST_ASIAN_N = _mupdf.UCDN_EAST_ASIAN_N
  45511. UCDN_SCRIPT_COMMON = _mupdf.UCDN_SCRIPT_COMMON
  45512. UCDN_SCRIPT_LATIN = _mupdf.UCDN_SCRIPT_LATIN
  45513. UCDN_SCRIPT_GREEK = _mupdf.UCDN_SCRIPT_GREEK
  45514. UCDN_SCRIPT_CYRILLIC = _mupdf.UCDN_SCRIPT_CYRILLIC
  45515. UCDN_SCRIPT_ARMENIAN = _mupdf.UCDN_SCRIPT_ARMENIAN
  45516. UCDN_SCRIPT_HEBREW = _mupdf.UCDN_SCRIPT_HEBREW
  45517. UCDN_SCRIPT_ARABIC = _mupdf.UCDN_SCRIPT_ARABIC
  45518. UCDN_SCRIPT_SYRIAC = _mupdf.UCDN_SCRIPT_SYRIAC
  45519. UCDN_SCRIPT_THAANA = _mupdf.UCDN_SCRIPT_THAANA
  45520. UCDN_SCRIPT_DEVANAGARI = _mupdf.UCDN_SCRIPT_DEVANAGARI
  45521. UCDN_SCRIPT_BENGALI = _mupdf.UCDN_SCRIPT_BENGALI
  45522. UCDN_SCRIPT_GURMUKHI = _mupdf.UCDN_SCRIPT_GURMUKHI
  45523. UCDN_SCRIPT_GUJARATI = _mupdf.UCDN_SCRIPT_GUJARATI
  45524. UCDN_SCRIPT_ORIYA = _mupdf.UCDN_SCRIPT_ORIYA
  45525. UCDN_SCRIPT_TAMIL = _mupdf.UCDN_SCRIPT_TAMIL
  45526. UCDN_SCRIPT_TELUGU = _mupdf.UCDN_SCRIPT_TELUGU
  45527. UCDN_SCRIPT_KANNADA = _mupdf.UCDN_SCRIPT_KANNADA
  45528. UCDN_SCRIPT_MALAYALAM = _mupdf.UCDN_SCRIPT_MALAYALAM
  45529. UCDN_SCRIPT_SINHALA = _mupdf.UCDN_SCRIPT_SINHALA
  45530. UCDN_SCRIPT_THAI = _mupdf.UCDN_SCRIPT_THAI
  45531. UCDN_SCRIPT_LAO = _mupdf.UCDN_SCRIPT_LAO
  45532. UCDN_SCRIPT_TIBETAN = _mupdf.UCDN_SCRIPT_TIBETAN
  45533. UCDN_SCRIPT_MYANMAR = _mupdf.UCDN_SCRIPT_MYANMAR
  45534. UCDN_SCRIPT_GEORGIAN = _mupdf.UCDN_SCRIPT_GEORGIAN
  45535. UCDN_SCRIPT_HANGUL = _mupdf.UCDN_SCRIPT_HANGUL
  45536. UCDN_SCRIPT_ETHIOPIC = _mupdf.UCDN_SCRIPT_ETHIOPIC
  45537. UCDN_SCRIPT_CHEROKEE = _mupdf.UCDN_SCRIPT_CHEROKEE
  45538. UCDN_SCRIPT_CANADIAN_ABORIGINAL = _mupdf.UCDN_SCRIPT_CANADIAN_ABORIGINAL
  45539. UCDN_SCRIPT_OGHAM = _mupdf.UCDN_SCRIPT_OGHAM
  45540. UCDN_SCRIPT_RUNIC = _mupdf.UCDN_SCRIPT_RUNIC
  45541. UCDN_SCRIPT_KHMER = _mupdf.UCDN_SCRIPT_KHMER
  45542. UCDN_SCRIPT_MONGOLIAN = _mupdf.UCDN_SCRIPT_MONGOLIAN
  45543. UCDN_SCRIPT_HIRAGANA = _mupdf.UCDN_SCRIPT_HIRAGANA
  45544. UCDN_SCRIPT_KATAKANA = _mupdf.UCDN_SCRIPT_KATAKANA
  45545. UCDN_SCRIPT_BOPOMOFO = _mupdf.UCDN_SCRIPT_BOPOMOFO
  45546. UCDN_SCRIPT_HAN = _mupdf.UCDN_SCRIPT_HAN
  45547. UCDN_SCRIPT_YI = _mupdf.UCDN_SCRIPT_YI
  45548. UCDN_SCRIPT_OLD_ITALIC = _mupdf.UCDN_SCRIPT_OLD_ITALIC
  45549. UCDN_SCRIPT_GOTHIC = _mupdf.UCDN_SCRIPT_GOTHIC
  45550. UCDN_SCRIPT_DESERET = _mupdf.UCDN_SCRIPT_DESERET
  45551. UCDN_SCRIPT_INHERITED = _mupdf.UCDN_SCRIPT_INHERITED
  45552. UCDN_SCRIPT_TAGALOG = _mupdf.UCDN_SCRIPT_TAGALOG
  45553. UCDN_SCRIPT_HANUNOO = _mupdf.UCDN_SCRIPT_HANUNOO
  45554. UCDN_SCRIPT_BUHID = _mupdf.UCDN_SCRIPT_BUHID
  45555. UCDN_SCRIPT_TAGBANWA = _mupdf.UCDN_SCRIPT_TAGBANWA
  45556. UCDN_SCRIPT_LIMBU = _mupdf.UCDN_SCRIPT_LIMBU
  45557. UCDN_SCRIPT_TAI_LE = _mupdf.UCDN_SCRIPT_TAI_LE
  45558. UCDN_SCRIPT_LINEAR_B = _mupdf.UCDN_SCRIPT_LINEAR_B
  45559. UCDN_SCRIPT_UGARITIC = _mupdf.UCDN_SCRIPT_UGARITIC
  45560. UCDN_SCRIPT_SHAVIAN = _mupdf.UCDN_SCRIPT_SHAVIAN
  45561. UCDN_SCRIPT_OSMANYA = _mupdf.UCDN_SCRIPT_OSMANYA
  45562. UCDN_SCRIPT_CYPRIOT = _mupdf.UCDN_SCRIPT_CYPRIOT
  45563. UCDN_SCRIPT_BRAILLE = _mupdf.UCDN_SCRIPT_BRAILLE
  45564. UCDN_SCRIPT_BUGINESE = _mupdf.UCDN_SCRIPT_BUGINESE
  45565. UCDN_SCRIPT_COPTIC = _mupdf.UCDN_SCRIPT_COPTIC
  45566. UCDN_SCRIPT_NEW_TAI_LUE = _mupdf.UCDN_SCRIPT_NEW_TAI_LUE
  45567. UCDN_SCRIPT_GLAGOLITIC = _mupdf.UCDN_SCRIPT_GLAGOLITIC
  45568. UCDN_SCRIPT_TIFINAGH = _mupdf.UCDN_SCRIPT_TIFINAGH
  45569. UCDN_SCRIPT_SYLOTI_NAGRI = _mupdf.UCDN_SCRIPT_SYLOTI_NAGRI
  45570. UCDN_SCRIPT_OLD_PERSIAN = _mupdf.UCDN_SCRIPT_OLD_PERSIAN
  45571. UCDN_SCRIPT_KHAROSHTHI = _mupdf.UCDN_SCRIPT_KHAROSHTHI
  45572. UCDN_SCRIPT_BALINESE = _mupdf.UCDN_SCRIPT_BALINESE
  45573. UCDN_SCRIPT_CUNEIFORM = _mupdf.UCDN_SCRIPT_CUNEIFORM
  45574. UCDN_SCRIPT_PHOENICIAN = _mupdf.UCDN_SCRIPT_PHOENICIAN
  45575. UCDN_SCRIPT_PHAGS_PA = _mupdf.UCDN_SCRIPT_PHAGS_PA
  45576. UCDN_SCRIPT_NKO = _mupdf.UCDN_SCRIPT_NKO
  45577. UCDN_SCRIPT_SUNDANESE = _mupdf.UCDN_SCRIPT_SUNDANESE
  45578. UCDN_SCRIPT_LEPCHA = _mupdf.UCDN_SCRIPT_LEPCHA
  45579. UCDN_SCRIPT_OL_CHIKI = _mupdf.UCDN_SCRIPT_OL_CHIKI
  45580. UCDN_SCRIPT_VAI = _mupdf.UCDN_SCRIPT_VAI
  45581. UCDN_SCRIPT_SAURASHTRA = _mupdf.UCDN_SCRIPT_SAURASHTRA
  45582. UCDN_SCRIPT_KAYAH_LI = _mupdf.UCDN_SCRIPT_KAYAH_LI
  45583. UCDN_SCRIPT_REJANG = _mupdf.UCDN_SCRIPT_REJANG
  45584. UCDN_SCRIPT_LYCIAN = _mupdf.UCDN_SCRIPT_LYCIAN
  45585. UCDN_SCRIPT_CARIAN = _mupdf.UCDN_SCRIPT_CARIAN
  45586. UCDN_SCRIPT_LYDIAN = _mupdf.UCDN_SCRIPT_LYDIAN
  45587. UCDN_SCRIPT_CHAM = _mupdf.UCDN_SCRIPT_CHAM
  45588. UCDN_SCRIPT_TAI_THAM = _mupdf.UCDN_SCRIPT_TAI_THAM
  45589. UCDN_SCRIPT_TAI_VIET = _mupdf.UCDN_SCRIPT_TAI_VIET
  45590. UCDN_SCRIPT_AVESTAN = _mupdf.UCDN_SCRIPT_AVESTAN
  45591. UCDN_SCRIPT_EGYPTIAN_HIEROGLYPHS = _mupdf.UCDN_SCRIPT_EGYPTIAN_HIEROGLYPHS
  45592. UCDN_SCRIPT_SAMARITAN = _mupdf.UCDN_SCRIPT_SAMARITAN
  45593. UCDN_SCRIPT_LISU = _mupdf.UCDN_SCRIPT_LISU
  45594. UCDN_SCRIPT_BAMUM = _mupdf.UCDN_SCRIPT_BAMUM
  45595. UCDN_SCRIPT_JAVANESE = _mupdf.UCDN_SCRIPT_JAVANESE
  45596. UCDN_SCRIPT_MEETEI_MAYEK = _mupdf.UCDN_SCRIPT_MEETEI_MAYEK
  45597. UCDN_SCRIPT_IMPERIAL_ARAMAIC = _mupdf.UCDN_SCRIPT_IMPERIAL_ARAMAIC
  45598. UCDN_SCRIPT_OLD_SOUTH_ARABIAN = _mupdf.UCDN_SCRIPT_OLD_SOUTH_ARABIAN
  45599. UCDN_SCRIPT_INSCRIPTIONAL_PARTHIAN = _mupdf.UCDN_SCRIPT_INSCRIPTIONAL_PARTHIAN
  45600. UCDN_SCRIPT_INSCRIPTIONAL_PAHLAVI = _mupdf.UCDN_SCRIPT_INSCRIPTIONAL_PAHLAVI
  45601. UCDN_SCRIPT_OLD_TURKIC = _mupdf.UCDN_SCRIPT_OLD_TURKIC
  45602. UCDN_SCRIPT_KAITHI = _mupdf.UCDN_SCRIPT_KAITHI
  45603. UCDN_SCRIPT_BATAK = _mupdf.UCDN_SCRIPT_BATAK
  45604. UCDN_SCRIPT_BRAHMI = _mupdf.UCDN_SCRIPT_BRAHMI
  45605. UCDN_SCRIPT_MANDAIC = _mupdf.UCDN_SCRIPT_MANDAIC
  45606. UCDN_SCRIPT_CHAKMA = _mupdf.UCDN_SCRIPT_CHAKMA
  45607. UCDN_SCRIPT_MEROITIC_CURSIVE = _mupdf.UCDN_SCRIPT_MEROITIC_CURSIVE
  45608. UCDN_SCRIPT_MEROITIC_HIEROGLYPHS = _mupdf.UCDN_SCRIPT_MEROITIC_HIEROGLYPHS
  45609. UCDN_SCRIPT_MIAO = _mupdf.UCDN_SCRIPT_MIAO
  45610. UCDN_SCRIPT_SHARADA = _mupdf.UCDN_SCRIPT_SHARADA
  45611. UCDN_SCRIPT_SORA_SOMPENG = _mupdf.UCDN_SCRIPT_SORA_SOMPENG
  45612. UCDN_SCRIPT_TAKRI = _mupdf.UCDN_SCRIPT_TAKRI
  45613. UCDN_SCRIPT_UNKNOWN = _mupdf.UCDN_SCRIPT_UNKNOWN
  45614. UCDN_SCRIPT_BASSA_VAH = _mupdf.UCDN_SCRIPT_BASSA_VAH
  45615. UCDN_SCRIPT_CAUCASIAN_ALBANIAN = _mupdf.UCDN_SCRIPT_CAUCASIAN_ALBANIAN
  45616. UCDN_SCRIPT_DUPLOYAN = _mupdf.UCDN_SCRIPT_DUPLOYAN
  45617. UCDN_SCRIPT_ELBASAN = _mupdf.UCDN_SCRIPT_ELBASAN
  45618. UCDN_SCRIPT_GRANTHA = _mupdf.UCDN_SCRIPT_GRANTHA
  45619. UCDN_SCRIPT_KHOJKI = _mupdf.UCDN_SCRIPT_KHOJKI
  45620. UCDN_SCRIPT_KHUDAWADI = _mupdf.UCDN_SCRIPT_KHUDAWADI
  45621. UCDN_SCRIPT_LINEAR_A = _mupdf.UCDN_SCRIPT_LINEAR_A
  45622. UCDN_SCRIPT_MAHAJANI = _mupdf.UCDN_SCRIPT_MAHAJANI
  45623. UCDN_SCRIPT_MANICHAEAN = _mupdf.UCDN_SCRIPT_MANICHAEAN
  45624. UCDN_SCRIPT_MENDE_KIKAKUI = _mupdf.UCDN_SCRIPT_MENDE_KIKAKUI
  45625. UCDN_SCRIPT_MODI = _mupdf.UCDN_SCRIPT_MODI
  45626. UCDN_SCRIPT_MRO = _mupdf.UCDN_SCRIPT_MRO
  45627. UCDN_SCRIPT_NABATAEAN = _mupdf.UCDN_SCRIPT_NABATAEAN
  45628. UCDN_SCRIPT_OLD_NORTH_ARABIAN = _mupdf.UCDN_SCRIPT_OLD_NORTH_ARABIAN
  45629. UCDN_SCRIPT_OLD_PERMIC = _mupdf.UCDN_SCRIPT_OLD_PERMIC
  45630. UCDN_SCRIPT_PAHAWH_HMONG = _mupdf.UCDN_SCRIPT_PAHAWH_HMONG
  45631. UCDN_SCRIPT_PALMYRENE = _mupdf.UCDN_SCRIPT_PALMYRENE
  45632. UCDN_SCRIPT_PAU_CIN_HAU = _mupdf.UCDN_SCRIPT_PAU_CIN_HAU
  45633. UCDN_SCRIPT_PSALTER_PAHLAVI = _mupdf.UCDN_SCRIPT_PSALTER_PAHLAVI
  45634. UCDN_SCRIPT_SIDDHAM = _mupdf.UCDN_SCRIPT_SIDDHAM
  45635. UCDN_SCRIPT_TIRHUTA = _mupdf.UCDN_SCRIPT_TIRHUTA
  45636. UCDN_SCRIPT_WARANG_CITI = _mupdf.UCDN_SCRIPT_WARANG_CITI
  45637. UCDN_SCRIPT_AHOM = _mupdf.UCDN_SCRIPT_AHOM
  45638. UCDN_SCRIPT_ANATOLIAN_HIEROGLYPHS = _mupdf.UCDN_SCRIPT_ANATOLIAN_HIEROGLYPHS
  45639. UCDN_SCRIPT_HATRAN = _mupdf.UCDN_SCRIPT_HATRAN
  45640. UCDN_SCRIPT_MULTANI = _mupdf.UCDN_SCRIPT_MULTANI
  45641. UCDN_SCRIPT_OLD_HUNGARIAN = _mupdf.UCDN_SCRIPT_OLD_HUNGARIAN
  45642. UCDN_SCRIPT_SIGNWRITING = _mupdf.UCDN_SCRIPT_SIGNWRITING
  45643. UCDN_SCRIPT_ADLAM = _mupdf.UCDN_SCRIPT_ADLAM
  45644. UCDN_SCRIPT_BHAIKSUKI = _mupdf.UCDN_SCRIPT_BHAIKSUKI
  45645. UCDN_SCRIPT_MARCHEN = _mupdf.UCDN_SCRIPT_MARCHEN
  45646. UCDN_SCRIPT_NEWA = _mupdf.UCDN_SCRIPT_NEWA
  45647. UCDN_SCRIPT_OSAGE = _mupdf.UCDN_SCRIPT_OSAGE
  45648. UCDN_SCRIPT_TANGUT = _mupdf.UCDN_SCRIPT_TANGUT
  45649. UCDN_SCRIPT_MASARAM_GONDI = _mupdf.UCDN_SCRIPT_MASARAM_GONDI
  45650. UCDN_SCRIPT_NUSHU = _mupdf.UCDN_SCRIPT_NUSHU
  45651. UCDN_SCRIPT_SOYOMBO = _mupdf.UCDN_SCRIPT_SOYOMBO
  45652. UCDN_SCRIPT_ZANABAZAR_SQUARE = _mupdf.UCDN_SCRIPT_ZANABAZAR_SQUARE
  45653. UCDN_SCRIPT_DOGRA = _mupdf.UCDN_SCRIPT_DOGRA
  45654. UCDN_SCRIPT_GUNJALA_GONDI = _mupdf.UCDN_SCRIPT_GUNJALA_GONDI
  45655. UCDN_SCRIPT_HANIFI_ROHINGYA = _mupdf.UCDN_SCRIPT_HANIFI_ROHINGYA
  45656. UCDN_SCRIPT_MAKASAR = _mupdf.UCDN_SCRIPT_MAKASAR
  45657. UCDN_SCRIPT_MEDEFAIDRIN = _mupdf.UCDN_SCRIPT_MEDEFAIDRIN
  45658. UCDN_SCRIPT_OLD_SOGDIAN = _mupdf.UCDN_SCRIPT_OLD_SOGDIAN
  45659. UCDN_SCRIPT_SOGDIAN = _mupdf.UCDN_SCRIPT_SOGDIAN
  45660. UCDN_SCRIPT_ELYMAIC = _mupdf.UCDN_SCRIPT_ELYMAIC
  45661. UCDN_SCRIPT_NANDINAGARI = _mupdf.UCDN_SCRIPT_NANDINAGARI
  45662. UCDN_SCRIPT_NYIAKENG_PUACHUE_HMONG = _mupdf.UCDN_SCRIPT_NYIAKENG_PUACHUE_HMONG
  45663. UCDN_SCRIPT_WANCHO = _mupdf.UCDN_SCRIPT_WANCHO
  45664. UCDN_SCRIPT_CHORASMIAN = _mupdf.UCDN_SCRIPT_CHORASMIAN
  45665. UCDN_SCRIPT_DIVES_AKURU = _mupdf.UCDN_SCRIPT_DIVES_AKURU
  45666. UCDN_SCRIPT_KHITAN_SMALL_SCRIPT = _mupdf.UCDN_SCRIPT_KHITAN_SMALL_SCRIPT
  45667. UCDN_SCRIPT_YEZIDI = _mupdf.UCDN_SCRIPT_YEZIDI
  45668. UCDN_SCRIPT_VITHKUQI = _mupdf.UCDN_SCRIPT_VITHKUQI
  45669. UCDN_SCRIPT_OLD_UYGHUR = _mupdf.UCDN_SCRIPT_OLD_UYGHUR
  45670. UCDN_SCRIPT_CYPRO_MINOAN = _mupdf.UCDN_SCRIPT_CYPRO_MINOAN
  45671. UCDN_SCRIPT_TANGSA = _mupdf.UCDN_SCRIPT_TANGSA
  45672. UCDN_SCRIPT_TOTO = _mupdf.UCDN_SCRIPT_TOTO
  45673. UCDN_SCRIPT_KAWI = _mupdf.UCDN_SCRIPT_KAWI
  45674. UCDN_SCRIPT_NAG_MUNDARI = _mupdf.UCDN_SCRIPT_NAG_MUNDARI
  45675. UCDN_SCRIPT_TODHRI = _mupdf.UCDN_SCRIPT_TODHRI
  45676. UCDN_SCRIPT_GARAY = _mupdf.UCDN_SCRIPT_GARAY
  45677. UCDN_SCRIPT_TULU_TIGALARI = _mupdf.UCDN_SCRIPT_TULU_TIGALARI
  45678. UCDN_SCRIPT_SUNUWAR = _mupdf.UCDN_SCRIPT_SUNUWAR
  45679. UCDN_SCRIPT_GURUNG_KHEMA = _mupdf.UCDN_SCRIPT_GURUNG_KHEMA
  45680. UCDN_SCRIPT_KIRAT_RAI = _mupdf.UCDN_SCRIPT_KIRAT_RAI
  45681. UCDN_SCRIPT_OL_ONAL = _mupdf.UCDN_SCRIPT_OL_ONAL
  45682. UCDN_LAST_SCRIPT = _mupdf.UCDN_LAST_SCRIPT
  45683. UCDN_LINEBREAK_CLASS_OP = _mupdf.UCDN_LINEBREAK_CLASS_OP
  45684. UCDN_LINEBREAK_CLASS_CL = _mupdf.UCDN_LINEBREAK_CLASS_CL
  45685. UCDN_LINEBREAK_CLASS_CP = _mupdf.UCDN_LINEBREAK_CLASS_CP
  45686. UCDN_LINEBREAK_CLASS_QU = _mupdf.UCDN_LINEBREAK_CLASS_QU
  45687. UCDN_LINEBREAK_CLASS_GL = _mupdf.UCDN_LINEBREAK_CLASS_GL
  45688. UCDN_LINEBREAK_CLASS_NS = _mupdf.UCDN_LINEBREAK_CLASS_NS
  45689. UCDN_LINEBREAK_CLASS_EX = _mupdf.UCDN_LINEBREAK_CLASS_EX
  45690. UCDN_LINEBREAK_CLASS_SY = _mupdf.UCDN_LINEBREAK_CLASS_SY
  45691. UCDN_LINEBREAK_CLASS_IS = _mupdf.UCDN_LINEBREAK_CLASS_IS
  45692. UCDN_LINEBREAK_CLASS_PR = _mupdf.UCDN_LINEBREAK_CLASS_PR
  45693. UCDN_LINEBREAK_CLASS_PO = _mupdf.UCDN_LINEBREAK_CLASS_PO
  45694. UCDN_LINEBREAK_CLASS_NU = _mupdf.UCDN_LINEBREAK_CLASS_NU
  45695. UCDN_LINEBREAK_CLASS_AL = _mupdf.UCDN_LINEBREAK_CLASS_AL
  45696. UCDN_LINEBREAK_CLASS_HL = _mupdf.UCDN_LINEBREAK_CLASS_HL
  45697. UCDN_LINEBREAK_CLASS_ID = _mupdf.UCDN_LINEBREAK_CLASS_ID
  45698. UCDN_LINEBREAK_CLASS_IN = _mupdf.UCDN_LINEBREAK_CLASS_IN
  45699. UCDN_LINEBREAK_CLASS_HY = _mupdf.UCDN_LINEBREAK_CLASS_HY
  45700. UCDN_LINEBREAK_CLASS_BA = _mupdf.UCDN_LINEBREAK_CLASS_BA
  45701. UCDN_LINEBREAK_CLASS_BB = _mupdf.UCDN_LINEBREAK_CLASS_BB
  45702. UCDN_LINEBREAK_CLASS_B2 = _mupdf.UCDN_LINEBREAK_CLASS_B2
  45703. UCDN_LINEBREAK_CLASS_ZW = _mupdf.UCDN_LINEBREAK_CLASS_ZW
  45704. UCDN_LINEBREAK_CLASS_CM = _mupdf.UCDN_LINEBREAK_CLASS_CM
  45705. UCDN_LINEBREAK_CLASS_WJ = _mupdf.UCDN_LINEBREAK_CLASS_WJ
  45706. UCDN_LINEBREAK_CLASS_H2 = _mupdf.UCDN_LINEBREAK_CLASS_H2
  45707. UCDN_LINEBREAK_CLASS_H3 = _mupdf.UCDN_LINEBREAK_CLASS_H3
  45708. UCDN_LINEBREAK_CLASS_JL = _mupdf.UCDN_LINEBREAK_CLASS_JL
  45709. UCDN_LINEBREAK_CLASS_JV = _mupdf.UCDN_LINEBREAK_CLASS_JV
  45710. UCDN_LINEBREAK_CLASS_JT = _mupdf.UCDN_LINEBREAK_CLASS_JT
  45711. UCDN_LINEBREAK_CLASS_RI = _mupdf.UCDN_LINEBREAK_CLASS_RI
  45712. UCDN_LINEBREAK_CLASS_EB = _mupdf.UCDN_LINEBREAK_CLASS_EB
  45713. UCDN_LINEBREAK_CLASS_EM = _mupdf.UCDN_LINEBREAK_CLASS_EM
  45714. UCDN_LINEBREAK_CLASS_ZWJ = _mupdf.UCDN_LINEBREAK_CLASS_ZWJ
  45715. UCDN_LINEBREAK_CLASS_AI = _mupdf.UCDN_LINEBREAK_CLASS_AI
  45716. UCDN_LINEBREAK_CLASS_BK = _mupdf.UCDN_LINEBREAK_CLASS_BK
  45717. UCDN_LINEBREAK_CLASS_CB = _mupdf.UCDN_LINEBREAK_CLASS_CB
  45718. UCDN_LINEBREAK_CLASS_CJ = _mupdf.UCDN_LINEBREAK_CLASS_CJ
  45719. UCDN_LINEBREAK_CLASS_CR = _mupdf.UCDN_LINEBREAK_CLASS_CR
  45720. UCDN_LINEBREAK_CLASS_LF = _mupdf.UCDN_LINEBREAK_CLASS_LF
  45721. UCDN_LINEBREAK_CLASS_NL = _mupdf.UCDN_LINEBREAK_CLASS_NL
  45722. UCDN_LINEBREAK_CLASS_SA = _mupdf.UCDN_LINEBREAK_CLASS_SA
  45723. UCDN_LINEBREAK_CLASS_SG = _mupdf.UCDN_LINEBREAK_CLASS_SG
  45724. UCDN_LINEBREAK_CLASS_SP = _mupdf.UCDN_LINEBREAK_CLASS_SP
  45725. UCDN_LINEBREAK_CLASS_XX = _mupdf.UCDN_LINEBREAK_CLASS_XX
  45726. UCDN_LINEBREAK_CLASS_AK = _mupdf.UCDN_LINEBREAK_CLASS_AK
  45727. UCDN_LINEBREAK_CLASS_AP = _mupdf.UCDN_LINEBREAK_CLASS_AP
  45728. UCDN_LINEBREAK_CLASS_AS = _mupdf.UCDN_LINEBREAK_CLASS_AS
  45729. UCDN_LINEBREAK_CLASS_VF = _mupdf.UCDN_LINEBREAK_CLASS_VF
  45730. UCDN_LINEBREAK_CLASS_VI = _mupdf.UCDN_LINEBREAK_CLASS_VI
  45731. UCDN_GENERAL_CATEGORY_CC = _mupdf.UCDN_GENERAL_CATEGORY_CC
  45732. UCDN_GENERAL_CATEGORY_CF = _mupdf.UCDN_GENERAL_CATEGORY_CF
  45733. UCDN_GENERAL_CATEGORY_CN = _mupdf.UCDN_GENERAL_CATEGORY_CN
  45734. UCDN_GENERAL_CATEGORY_CO = _mupdf.UCDN_GENERAL_CATEGORY_CO
  45735. UCDN_GENERAL_CATEGORY_CS = _mupdf.UCDN_GENERAL_CATEGORY_CS
  45736. UCDN_GENERAL_CATEGORY_LL = _mupdf.UCDN_GENERAL_CATEGORY_LL
  45737. UCDN_GENERAL_CATEGORY_LM = _mupdf.UCDN_GENERAL_CATEGORY_LM
  45738. UCDN_GENERAL_CATEGORY_LO = _mupdf.UCDN_GENERAL_CATEGORY_LO
  45739. UCDN_GENERAL_CATEGORY_LT = _mupdf.UCDN_GENERAL_CATEGORY_LT
  45740. UCDN_GENERAL_CATEGORY_LU = _mupdf.UCDN_GENERAL_CATEGORY_LU
  45741. UCDN_GENERAL_CATEGORY_MC = _mupdf.UCDN_GENERAL_CATEGORY_MC
  45742. UCDN_GENERAL_CATEGORY_ME = _mupdf.UCDN_GENERAL_CATEGORY_ME
  45743. UCDN_GENERAL_CATEGORY_MN = _mupdf.UCDN_GENERAL_CATEGORY_MN
  45744. UCDN_GENERAL_CATEGORY_ND = _mupdf.UCDN_GENERAL_CATEGORY_ND
  45745. UCDN_GENERAL_CATEGORY_NL = _mupdf.UCDN_GENERAL_CATEGORY_NL
  45746. UCDN_GENERAL_CATEGORY_NO = _mupdf.UCDN_GENERAL_CATEGORY_NO
  45747. UCDN_GENERAL_CATEGORY_PC = _mupdf.UCDN_GENERAL_CATEGORY_PC
  45748. UCDN_GENERAL_CATEGORY_PD = _mupdf.UCDN_GENERAL_CATEGORY_PD
  45749. UCDN_GENERAL_CATEGORY_PE = _mupdf.UCDN_GENERAL_CATEGORY_PE
  45750. UCDN_GENERAL_CATEGORY_PF = _mupdf.UCDN_GENERAL_CATEGORY_PF
  45751. UCDN_GENERAL_CATEGORY_PI = _mupdf.UCDN_GENERAL_CATEGORY_PI
  45752. UCDN_GENERAL_CATEGORY_PO = _mupdf.UCDN_GENERAL_CATEGORY_PO
  45753. UCDN_GENERAL_CATEGORY_PS = _mupdf.UCDN_GENERAL_CATEGORY_PS
  45754. UCDN_GENERAL_CATEGORY_SC = _mupdf.UCDN_GENERAL_CATEGORY_SC
  45755. UCDN_GENERAL_CATEGORY_SK = _mupdf.UCDN_GENERAL_CATEGORY_SK
  45756. UCDN_GENERAL_CATEGORY_SM = _mupdf.UCDN_GENERAL_CATEGORY_SM
  45757. UCDN_GENERAL_CATEGORY_SO = _mupdf.UCDN_GENERAL_CATEGORY_SO
  45758. UCDN_GENERAL_CATEGORY_ZL = _mupdf.UCDN_GENERAL_CATEGORY_ZL
  45759. UCDN_GENERAL_CATEGORY_ZP = _mupdf.UCDN_GENERAL_CATEGORY_ZP
  45760. UCDN_GENERAL_CATEGORY_ZS = _mupdf.UCDN_GENERAL_CATEGORY_ZS
  45761. UCDN_BIDI_CLASS_L = _mupdf.UCDN_BIDI_CLASS_L
  45762. UCDN_BIDI_CLASS_LRE = _mupdf.UCDN_BIDI_CLASS_LRE
  45763. UCDN_BIDI_CLASS_LRO = _mupdf.UCDN_BIDI_CLASS_LRO
  45764. UCDN_BIDI_CLASS_R = _mupdf.UCDN_BIDI_CLASS_R
  45765. UCDN_BIDI_CLASS_AL = _mupdf.UCDN_BIDI_CLASS_AL
  45766. UCDN_BIDI_CLASS_RLE = _mupdf.UCDN_BIDI_CLASS_RLE
  45767. UCDN_BIDI_CLASS_RLO = _mupdf.UCDN_BIDI_CLASS_RLO
  45768. UCDN_BIDI_CLASS_PDF = _mupdf.UCDN_BIDI_CLASS_PDF
  45769. UCDN_BIDI_CLASS_EN = _mupdf.UCDN_BIDI_CLASS_EN
  45770. UCDN_BIDI_CLASS_ES = _mupdf.UCDN_BIDI_CLASS_ES
  45771. UCDN_BIDI_CLASS_ET = _mupdf.UCDN_BIDI_CLASS_ET
  45772. UCDN_BIDI_CLASS_AN = _mupdf.UCDN_BIDI_CLASS_AN
  45773. UCDN_BIDI_CLASS_CS = _mupdf.UCDN_BIDI_CLASS_CS
  45774. UCDN_BIDI_CLASS_NSM = _mupdf.UCDN_BIDI_CLASS_NSM
  45775. UCDN_BIDI_CLASS_BN = _mupdf.UCDN_BIDI_CLASS_BN
  45776. UCDN_BIDI_CLASS_B = _mupdf.UCDN_BIDI_CLASS_B
  45777. UCDN_BIDI_CLASS_S = _mupdf.UCDN_BIDI_CLASS_S
  45778. UCDN_BIDI_CLASS_WS = _mupdf.UCDN_BIDI_CLASS_WS
  45779. UCDN_BIDI_CLASS_ON = _mupdf.UCDN_BIDI_CLASS_ON
  45780. UCDN_BIDI_CLASS_LRI = _mupdf.UCDN_BIDI_CLASS_LRI
  45781. UCDN_BIDI_CLASS_RLI = _mupdf.UCDN_BIDI_CLASS_RLI
  45782. UCDN_BIDI_CLASS_FSI = _mupdf.UCDN_BIDI_CLASS_FSI
  45783. UCDN_BIDI_CLASS_PDI = _mupdf.UCDN_BIDI_CLASS_PDI
  45784. UCDN_BIDI_PAIRED_BRACKET_TYPE_OPEN = _mupdf.UCDN_BIDI_PAIRED_BRACKET_TYPE_OPEN
  45785. UCDN_BIDI_PAIRED_BRACKET_TYPE_CLOSE = _mupdf.UCDN_BIDI_PAIRED_BRACKET_TYPE_CLOSE
  45786. UCDN_BIDI_PAIRED_BRACKET_TYPE_NONE = _mupdf.UCDN_BIDI_PAIRED_BRACKET_TYPE_NONE
  45787. def new_pint():
  45788. return _mupdf.new_pint()
  45789. def copy_pint(value):
  45790. return _mupdf.copy_pint(value)
  45791. def delete_pint(obj):
  45792. return _mupdf.delete_pint(obj)
  45793. def pint_assign(obj, value):
  45794. return _mupdf.pint_assign(obj, value)
  45795. def pint_value(obj):
  45796. return _mupdf.pint_value(obj)
  45797. import inspect
  45798. import os
  45799. import re
  45800. import sys
  45801. import traceback
  45802. def log( text):
  45803. print( text, file=sys.stderr)
  45804. g_mupdf_trace_director = (os.environ.get('MUPDF_trace_director') == '1')
  45805. def fz_lookup_metadata(document, key):
  45806. """
  45807. Like fz_lookup_metadata2() but returns None on error
  45808. instead of raising exception.
  45809. """
  45810. try:
  45811. return fz_lookup_metadata2(document, key)
  45812. except Exception:
  45813. return
  45814. FzDocument.fz_lookup_metadata = fz_lookup_metadata
  45815. def pdf_lookup_metadata(document, key):
  45816. """
  45817. Likepsd_lookup_metadata2() but returns None on error
  45818. instead of raising exception.
  45819. """
  45820. try:
  45821. return pdf_lookup_metadata2(document, key)
  45822. except Exception:
  45823. return
  45824. PdfDocument.pdf_lookup_metadata = pdf_lookup_metadata
  45825. import inspect
  45826. import io
  45827. import os
  45828. import sys
  45829. import traceback
  45830. import types
  45831. def exception_info(
  45832. exception_or_traceback=None,
  45833. limit=None,
  45834. file=None,
  45835. chain=True,
  45836. outer=True,
  45837. show_exception_type=True,
  45838. _filelinefn=True,
  45839. ):
  45840. '''
  45841. Shows an exception and/or backtrace.
  45842. Alternative to `traceback.*` functions that print/return information about
  45843. exceptions and backtraces, such as:
  45844. * `traceback.format_exc()`
  45845. * `traceback.format_exception()`
  45846. * `traceback.print_exc()`
  45847. * `traceback.print_exception()`
  45848. Install as system default with:
  45849. `sys.excepthook = lambda type_, exception, traceback: jlib.exception_info( exception)`
  45850. Returns `None`, or the generated text if `file` is 'return'.
  45851. Args:
  45852. exception_or_traceback:
  45853. `None`, a `BaseException`, a `types.TracebackType` (typically from
  45854. an exception's `.__traceback__` member) or an `inspect.FrameInfo`.
  45855. If `None` we use current exception from `sys.exc_info()` if set,
  45856. otherwise the current backtrace from `inspect.stack()`.
  45857. limit:
  45858. As in `traceback.*` functions: `None` to show all frames, positive
  45859. to show last `limit` frames, negative to exclude outermost `-limit`
  45860. frames. Zero to not show any backtraces.
  45861. file:
  45862. As in `traceback.*` functions: file-like object to which we write
  45863. output, or `sys.stderr` if `None`. Special value 'return' makes us
  45864. return our output as a string.
  45865. chain:
  45866. As in `traceback.*` functions: if true (the default) we show
  45867. chained exceptions as described in PEP-3134. Special value
  45868. 'because' reverses the usual ordering, showing higher-level
  45869. exceptions first and joining with 'Because:' text.
  45870. outer:
  45871. If true (the default) we also show an exception's outer frames
  45872. above the `catch` block (see next section for details). We
  45873. use `outer=false` internally for chained exceptions to avoid
  45874. duplication.
  45875. show_exception_type:
  45876. Controls whether exception text is prefixed by
  45877. `f'{type(exception)}: '`. If callable we only include this prefix
  45878. if `show_exception_type(exception)` is true. Otherwise if true (the
  45879. default) we include the prefix for all exceptions (this mimcs the
  45880. behaviour of `traceback.*` functions). Otherwise we exclude the
  45881. prefix for all exceptions.
  45882. _filelinefn:
  45883. Internal only; makes us omit file:line: information to allow simple
  45884. doctest comparison with expected output.
  45885. Differences from `traceback.*` functions:
  45886. Frames are displayed as one line in the form::
  45887. <file>:<line>:<function>: <text>
  45888. Filenames are displayed as relative to the current directory if
  45889. applicable.
  45890. Inclusion of outer frames:
  45891. Unlike `traceback.*` functions, stack traces for exceptions include
  45892. outer stack frames above the point at which an exception was caught
  45893. - i.e. frames from the top-level <module> or thread creation to the
  45894. catch block. [Search for 'sys.exc_info backtrace incomplete' for
  45895. more details.]
  45896. We separate the two parts of the backtrace using a marker line
  45897. '^except raise:' where '^except' points upwards to the frame that
  45898. caught the exception and 'raise:' refers downwards to the frame
  45899. that raised the exception.
  45900. So the backtrace for an exception looks like this::
  45901. <file>:<line>:<fn>: <text> [in root module.]
  45902. ... [... other frames]
  45903. <file>:<line>:<fn>: <text> [in except: block where exception was caught.]
  45904. ^except raise: [marker line]
  45905. <file>:<line>:<fn>: <text> [in try: block.]
  45906. ... [... other frames]
  45907. <file>:<line>:<fn>: <text> [where the exception was raised.]
  45908. Examples:
  45909. In these examples we use `file=sys.stdout` so we can check the output
  45910. with `doctest`, and set `_filelinefn=0` so that the output can be
  45911. matched easily. We also use `+ELLIPSIS` and `...` to match arbitrary
  45912. outer frames from the doctest code itself.
  45913. Basic handling of an exception:
  45914. >>> def c():
  45915. ... raise Exception( 'c() failed')
  45916. >>> def b():
  45917. ... try:
  45918. ... c()
  45919. ... except Exception as e:
  45920. ... exception_info( e, file=sys.stdout, _filelinefn=0)
  45921. >>> def a():
  45922. ... b()
  45923. >>> a() # doctest: +REPORT_UDIFF +ELLIPSIS
  45924. Traceback (most recent call last):
  45925. ...
  45926. a(): b()
  45927. b(): exception_info( e, file=sys.stdout, _filelinefn=0)
  45928. ^except raise:
  45929. b(): c()
  45930. c(): raise Exception( 'c() failed')
  45931. Exception: c() failed
  45932. Handling of chained exceptions:
  45933. >>> def e():
  45934. ... raise Exception( 'e(): deliberate error')
  45935. >>> def d():
  45936. ... e()
  45937. >>> def c():
  45938. ... try:
  45939. ... d()
  45940. ... except Exception as e:
  45941. ... raise Exception( 'c: d() failed') from e
  45942. >>> def b():
  45943. ... try:
  45944. ... c()
  45945. ... except Exception as e:
  45946. ... exception_info( file=sys.stdout, chain=g_chain, _filelinefn=0)
  45947. >>> def a():
  45948. ... b()
  45949. With `chain=True` (the default), we output low-level exceptions
  45950. first, matching the behaviour of `traceback.*` functions:
  45951. >>> g_chain = True
  45952. >>> a() # doctest: +REPORT_UDIFF +ELLIPSIS
  45953. Traceback (most recent call last):
  45954. c(): d()
  45955. d(): e()
  45956. e(): raise Exception( 'e(): deliberate error')
  45957. Exception: e(): deliberate error
  45958. <BLANKLINE>
  45959. The above exception was the direct cause of the following exception:
  45960. Traceback (most recent call last):
  45961. ...
  45962. <module>(): a() # doctest: +REPORT_UDIFF +ELLIPSIS
  45963. a(): b()
  45964. b(): exception_info( file=sys.stdout, chain=g_chain, _filelinefn=0)
  45965. ^except raise:
  45966. b(): c()
  45967. c(): raise Exception( 'c: d() failed') from e
  45968. Exception: c: d() failed
  45969. With `chain='because'`, we output high-level exceptions first:
  45970. >>> g_chain = 'because'
  45971. >>> a() # doctest: +REPORT_UDIFF +ELLIPSIS
  45972. Traceback (most recent call last):
  45973. ...
  45974. <module>(): a() # doctest: +REPORT_UDIFF +ELLIPSIS
  45975. a(): b()
  45976. b(): exception_info( file=sys.stdout, chain=g_chain, _filelinefn=0)
  45977. ^except raise:
  45978. b(): c()
  45979. c(): raise Exception( 'c: d() failed') from e
  45980. Exception: c: d() failed
  45981. <BLANKLINE>
  45982. Because:
  45983. Traceback (most recent call last):
  45984. c(): d()
  45985. d(): e()
  45986. e(): raise Exception( 'e(): deliberate error')
  45987. Exception: e(): deliberate error
  45988. Show current backtrace by passing `exception_or_traceback=None`:
  45989. >>> def c():
  45990. ... exception_info( None, file=sys.stdout, _filelinefn=0)
  45991. >>> def b():
  45992. ... return c()
  45993. >>> def a():
  45994. ... return b()
  45995. >>> a() # doctest: +REPORT_UDIFF +ELLIPSIS
  45996. Traceback (most recent call last):
  45997. ...
  45998. <module>(): a() # doctest: +REPORT_UDIFF +ELLIPSIS
  45999. a(): return b()
  46000. b(): return c()
  46001. c(): exception_info( None, file=sys.stdout, _filelinefn=0)
  46002. Show an exception's `.__traceback__` backtrace:
  46003. >>> def c():
  46004. ... raise Exception( 'foo') # raise
  46005. >>> def b():
  46006. ... return c() # call c
  46007. >>> def a():
  46008. ... try:
  46009. ... b() # call b
  46010. ... except Exception as e:
  46011. ... exception_info( e.__traceback__, file=sys.stdout, _filelinefn=0)
  46012. >>> a() # doctest: +REPORT_UDIFF +ELLIPSIS
  46013. Traceback (most recent call last):
  46014. ...
  46015. a(): b() # call b
  46016. b(): return c() # call c
  46017. c(): raise Exception( 'foo') # raise
  46018. '''
  46019. # Set exactly one of <exception> and <tb>.
  46020. #
  46021. if isinstance( exception_or_traceback, (types.TracebackType, inspect.FrameInfo)):
  46022. # Simple backtrace, no Exception information.
  46023. exception = None
  46024. tb = exception_or_traceback
  46025. elif isinstance( exception_or_traceback, BaseException):
  46026. exception = exception_or_traceback
  46027. tb = None
  46028. elif exception_or_traceback is None:
  46029. # Show exception if available, else backtrace.
  46030. _, exception, tb = sys.exc_info()
  46031. tb = None if exception else inspect.stack()[1:]
  46032. else:
  46033. assert 0, f'Unrecognised exception_or_traceback type: {type(exception_or_traceback)}'
  46034. if file == 'return':
  46035. out = io.StringIO()
  46036. else:
  46037. out = file if file else sys.stderr
  46038. def do_chain( exception):
  46039. exception_info(
  46040. exception,
  46041. limit,
  46042. out,
  46043. chain,
  46044. outer=False,
  46045. show_exception_type=show_exception_type,
  46046. _filelinefn=_filelinefn,
  46047. )
  46048. if exception and chain and chain != 'because' and chain != 'because-compact':
  46049. # Output current exception first.
  46050. if exception.__cause__:
  46051. do_chain( exception.__cause__)
  46052. out.write( '\nThe above exception was the direct cause of the following exception:\n')
  46053. elif exception.__context__:
  46054. do_chain( exception.__context__)
  46055. out.write( '\nDuring handling of the above exception, another exception occurred:\n')
  46056. cwd = os.getcwd() + os.sep
  46057. def output_frames( frames, reverse, limit):
  46058. if limit == 0:
  46059. return
  46060. if reverse:
  46061. assert isinstance( frames, list)
  46062. frames = reversed( frames)
  46063. if limit is not None:
  46064. frames = list( frames)
  46065. frames = frames[ -limit:]
  46066. for frame in frames:
  46067. f, filename, line, fnname, text, index = frame
  46068. text = text[0].strip() if text else ''
  46069. if filename.startswith( cwd):
  46070. filename = filename[ len(cwd):]
  46071. if filename.startswith( f'.{os.sep}'):
  46072. filename = filename[ 2:]
  46073. if _filelinefn:
  46074. out.write( f' {filename}:{line}:{fnname}(): {text}\n')
  46075. else:
  46076. out.write( f' {fnname}(): {text}\n')
  46077. if limit != 0:
  46078. out.write( 'Traceback (most recent call last):\n')
  46079. if exception:
  46080. tb = exception.__traceback__
  46081. assert tb
  46082. if outer:
  46083. output_frames( inspect.getouterframes( tb.tb_frame), reverse=True, limit=limit)
  46084. out.write( ' ^except raise:\n')
  46085. limit2 = 0 if limit == 0 else None
  46086. output_frames( inspect.getinnerframes( tb), reverse=False, limit=limit2)
  46087. else:
  46088. if not isinstance( tb, list):
  46089. inner = inspect.getinnerframes(tb)
  46090. outer = inspect.getouterframes(tb.tb_frame)
  46091. tb = outer + inner
  46092. tb.reverse()
  46093. output_frames( tb, reverse=True, limit=limit)
  46094. if exception:
  46095. if callable(show_exception_type):
  46096. show_exception_type2 = show_exception_type( exception)
  46097. else:
  46098. show_exception_type2 = show_exception_type
  46099. if show_exception_type2:
  46100. lines = traceback.format_exception_only( type(exception), exception)
  46101. for line in lines:
  46102. out.write( line)
  46103. else:
  46104. out.write( str( exception) + '\n')
  46105. if exception and (chain == 'because' or chain == 'because-compact'):
  46106. # Output current exception afterwards.
  46107. pre, post = ('\n', '\n') if chain == 'because' else ('', ' ')
  46108. if exception.__cause__:
  46109. out.write( f'{pre}Because:{post}')
  46110. do_chain( exception.__cause__)
  46111. elif exception.__context__:
  46112. out.write( f'{pre}Because: error occurred handling this exception:{post}')
  46113. do_chain( exception.__context__)
  46114. if file == 'return':
  46115. return out.getvalue()
  46116. def ll_fz_bidi_fragment_text(text, textlen, callback, arg, flags):
  46117. """
  46118. Wrapper for out-params of fz_bidi_fragment_text().
  46119. Returns: ::fz_bidi_direction baseDir
  46120. """
  46121. outparams = ll_fz_bidi_fragment_text_outparams()
  46122. ret = ll_fz_bidi_fragment_text_outparams_fn(text, textlen, callback, arg, flags, outparams)
  46123. return outparams.baseDir
  46124. def fz_bidi_fragment_text_outparams_fn(text, textlen, callback, arg, flags):
  46125. """
  46126. Class-aware helper for out-params of fz_bidi_fragment_text() [fz_bidi_fragment_text()].
  46127. """
  46128. baseDir = ll_fz_bidi_fragment_text(text, textlen, callback, arg, flags)
  46129. return baseDir
  46130. fz_bidi_fragment_text = fz_bidi_fragment_text_outparams_fn
  46131. def ll_fz_bitmap_details(bitmap):
  46132. """
  46133. Wrapper for out-params of fz_bitmap_details().
  46134. Returns: int w, int h, int n, int stride
  46135. """
  46136. outparams = ll_fz_bitmap_details_outparams()
  46137. ret = ll_fz_bitmap_details_outparams_fn(bitmap, outparams)
  46138. return outparams.w, outparams.h, outparams.n, outparams.stride
  46139. def fz_bitmap_details_outparams_fn(bitmap):
  46140. """
  46141. Class-aware helper for out-params of fz_bitmap_details() [fz_bitmap_details()].
  46142. """
  46143. w, h, n, stride = ll_fz_bitmap_details(bitmap.m_internal)
  46144. return w, h, n, stride
  46145. fz_bitmap_details = fz_bitmap_details_outparams_fn
  46146. def ll_fz_buffer_extract(buf):
  46147. """
  46148. Wrapper for out-params of fz_buffer_extract().
  46149. Returns: size_t, unsigned char *data
  46150. """
  46151. outparams = ll_fz_buffer_extract_outparams()
  46152. ret = ll_fz_buffer_extract_outparams_fn(buf, outparams)
  46153. return ret, outparams.data
  46154. def fz_buffer_extract_outparams_fn(buf):
  46155. """
  46156. Class-aware helper for out-params of fz_buffer_extract() [fz_buffer_extract()].
  46157. """
  46158. ret, data = ll_fz_buffer_extract(buf.m_internal)
  46159. return ret, data
  46160. fz_buffer_extract = fz_buffer_extract_outparams_fn
  46161. def ll_fz_buffer_storage(buf):
  46162. """
  46163. Wrapper for out-params of fz_buffer_storage().
  46164. Returns: size_t, unsigned char *datap
  46165. """
  46166. outparams = ll_fz_buffer_storage_outparams()
  46167. ret = ll_fz_buffer_storage_outparams_fn(buf, outparams)
  46168. return ret, outparams.datap
  46169. def fz_buffer_storage_outparams_fn(buf):
  46170. """
  46171. Class-aware helper for out-params of fz_buffer_storage() [fz_buffer_storage()].
  46172. """
  46173. ret, datap = ll_fz_buffer_storage(buf.m_internal)
  46174. return ret, datap
  46175. fz_buffer_storage = fz_buffer_storage_outparams_fn
  46176. def ll_fz_chartorune(str):
  46177. """
  46178. Wrapper for out-params of fz_chartorune().
  46179. Returns: int, int rune
  46180. """
  46181. outparams = ll_fz_chartorune_outparams()
  46182. ret = ll_fz_chartorune_outparams_fn(str, outparams)
  46183. return ret, outparams.rune
  46184. def fz_chartorune_outparams_fn(str):
  46185. """
  46186. Class-aware helper for out-params of fz_chartorune() [fz_chartorune()].
  46187. """
  46188. ret, rune = ll_fz_chartorune(str)
  46189. return ret, rune
  46190. fz_chartorune = fz_chartorune_outparams_fn
  46191. def ll_fz_chartorunen(str, n):
  46192. """
  46193. Wrapper for out-params of fz_chartorunen().
  46194. Returns: int, int rune
  46195. """
  46196. outparams = ll_fz_chartorunen_outparams()
  46197. ret = ll_fz_chartorunen_outparams_fn(str, n, outparams)
  46198. return ret, outparams.rune
  46199. def fz_chartorunen_outparams_fn(str, n):
  46200. """
  46201. Class-aware helper for out-params of fz_chartorunen() [fz_chartorunen()].
  46202. """
  46203. ret, rune = ll_fz_chartorunen(str, n)
  46204. return ret, rune
  46205. fz_chartorunen = fz_chartorunen_outparams_fn
  46206. def ll_fz_clamp_color(cs, in_):
  46207. """
  46208. Wrapper for out-params of fz_clamp_color().
  46209. Returns: float out
  46210. """
  46211. outparams = ll_fz_clamp_color_outparams()
  46212. ret = ll_fz_clamp_color_outparams_fn(cs, in_, outparams)
  46213. return outparams.out
  46214. def fz_clamp_color_outparams_fn(cs, in_):
  46215. """
  46216. Class-aware helper for out-params of fz_clamp_color() [fz_clamp_color()].
  46217. """
  46218. out = ll_fz_clamp_color(cs.m_internal, in_)
  46219. return out
  46220. fz_clamp_color = fz_clamp_color_outparams_fn
  46221. def ll_fz_compress_brotli(dest, source, source_length, level):
  46222. """
  46223. Wrapper for out-params of fz_compress_brotli().
  46224. Returns: size_t compressed_length
  46225. """
  46226. outparams = ll_fz_compress_brotli_outparams()
  46227. ret = ll_fz_compress_brotli_outparams_fn(dest, source, source_length, level, outparams)
  46228. return outparams.compressed_length
  46229. def fz_compress_brotli_outparams_fn(dest, source, source_length, level):
  46230. """
  46231. Class-aware helper for out-params of fz_compress_brotli() [fz_compress_brotli()].
  46232. """
  46233. compressed_length = ll_fz_compress_brotli(dest, source, source_length, level)
  46234. return compressed_length
  46235. fz_compress_brotli = fz_compress_brotli_outparams_fn
  46236. def ll_fz_convert_color(ss, sv, ds, is_, params):
  46237. """
  46238. Wrapper for out-params of fz_convert_color().
  46239. Returns: float dv
  46240. """
  46241. outparams = ll_fz_convert_color_outparams()
  46242. ret = ll_fz_convert_color_outparams_fn(ss, sv, ds, is_, params, outparams)
  46243. return outparams.dv
  46244. def fz_convert_color_outparams_fn(ss, sv, ds, is_, params):
  46245. """
  46246. Class-aware helper for out-params of fz_convert_color() [fz_convert_color()].
  46247. """
  46248. dv = ll_fz_convert_color(ss.m_internal, sv, ds.m_internal, is_.m_internal, params.internal())
  46249. return dv
  46250. fz_convert_color = fz_convert_color_outparams_fn
  46251. def ll_fz_convert_error():
  46252. """
  46253. Wrapper for out-params of fz_convert_error().
  46254. Returns: const char *, int code
  46255. """
  46256. outparams = ll_fz_convert_error_outparams()
  46257. ret = ll_fz_convert_error_outparams_fn(outparams)
  46258. return ret, outparams.code
  46259. def fz_convert_error_outparams_fn():
  46260. """
  46261. Class-aware helper for out-params of fz_convert_error() [fz_convert_error()].
  46262. """
  46263. ret, code = ll_fz_convert_error()
  46264. return ret, code
  46265. fz_convert_error = fz_convert_error_outparams_fn
  46266. def ll_fz_convert_separation_colors(src_cs, src_color, dst_seps, dst_cs, color_params):
  46267. """
  46268. Wrapper for out-params of fz_convert_separation_colors().
  46269. Returns: float dst_color
  46270. """
  46271. outparams = ll_fz_convert_separation_colors_outparams()
  46272. ret = ll_fz_convert_separation_colors_outparams_fn(src_cs, src_color, dst_seps, dst_cs, color_params, outparams)
  46273. return outparams.dst_color
  46274. def fz_convert_separation_colors_outparams_fn(src_cs, src_color, dst_seps, dst_cs, color_params):
  46275. """
  46276. Class-aware helper for out-params of fz_convert_separation_colors() [fz_convert_separation_colors()].
  46277. """
  46278. dst_color = ll_fz_convert_separation_colors(src_cs.m_internal, src_color, dst_seps.m_internal, dst_cs.m_internal, color_params.internal())
  46279. return dst_color
  46280. fz_convert_separation_colors = fz_convert_separation_colors_outparams_fn
  46281. def ll_fz_decode_barcode_from_display_list(list, subarea, rotate):
  46282. """
  46283. Wrapper for out-params of fz_decode_barcode_from_display_list().
  46284. Returns: char *, ::fz_barcode_type type
  46285. """
  46286. outparams = ll_fz_decode_barcode_from_display_list_outparams()
  46287. ret = ll_fz_decode_barcode_from_display_list_outparams_fn(list, subarea, rotate, outparams)
  46288. return ret, outparams.type
  46289. def fz_decode_barcode_from_display_list_outparams_fn(list, subarea, rotate):
  46290. """
  46291. Class-aware helper for out-params of fz_decode_barcode_from_display_list() [fz_decode_barcode_from_display_list()].
  46292. """
  46293. ret, type = ll_fz_decode_barcode_from_display_list(list.m_internal, subarea.internal(), rotate)
  46294. return ret, type
  46295. fz_decode_barcode_from_display_list = fz_decode_barcode_from_display_list_outparams_fn
  46296. def ll_fz_decode_barcode_from_display_list2(list, subarea, rotate):
  46297. """
  46298. Wrapper for out-params of fz_decode_barcode_from_display_list2().
  46299. Returns: std::string, ::fz_barcode_type type
  46300. """
  46301. outparams = ll_fz_decode_barcode_from_display_list2_outparams()
  46302. ret = ll_fz_decode_barcode_from_display_list2_outparams_fn(list, subarea, rotate, outparams)
  46303. return ret, outparams.type
  46304. def fz_decode_barcode_from_display_list2_outparams_fn(list, subarea, rotate):
  46305. """
  46306. Class-aware helper for out-params of fz_decode_barcode_from_display_list2() [fz_decode_barcode_from_display_list2()].
  46307. """
  46308. ret, type = ll_fz_decode_barcode_from_display_list2(list.m_internal, subarea.internal(), rotate)
  46309. return ret, type
  46310. fz_decode_barcode_from_display_list2 = fz_decode_barcode_from_display_list2_outparams_fn
  46311. def ll_fz_decode_barcode_from_page(page, subarea, rotate):
  46312. """
  46313. Wrapper for out-params of fz_decode_barcode_from_page().
  46314. Returns: char *, ::fz_barcode_type type
  46315. """
  46316. outparams = ll_fz_decode_barcode_from_page_outparams()
  46317. ret = ll_fz_decode_barcode_from_page_outparams_fn(page, subarea, rotate, outparams)
  46318. return ret, outparams.type
  46319. def fz_decode_barcode_from_page_outparams_fn(page, subarea, rotate):
  46320. """
  46321. Class-aware helper for out-params of fz_decode_barcode_from_page() [fz_decode_barcode_from_page()].
  46322. """
  46323. ret, type = ll_fz_decode_barcode_from_page(page.m_internal, subarea.internal(), rotate)
  46324. return ret, type
  46325. fz_decode_barcode_from_page = fz_decode_barcode_from_page_outparams_fn
  46326. def ll_fz_decode_barcode_from_page2(page, subarea, rotate):
  46327. """
  46328. Wrapper for out-params of fz_decode_barcode_from_page2().
  46329. Returns: std::string, ::fz_barcode_type type
  46330. """
  46331. outparams = ll_fz_decode_barcode_from_page2_outparams()
  46332. ret = ll_fz_decode_barcode_from_page2_outparams_fn(page, subarea, rotate, outparams)
  46333. return ret, outparams.type
  46334. def fz_decode_barcode_from_page2_outparams_fn(page, subarea, rotate):
  46335. """
  46336. Class-aware helper for out-params of fz_decode_barcode_from_page2() [fz_decode_barcode_from_page2()].
  46337. """
  46338. ret, type = ll_fz_decode_barcode_from_page2(page.m_internal, subarea.internal(), rotate)
  46339. return ret, type
  46340. fz_decode_barcode_from_page2 = fz_decode_barcode_from_page2_outparams_fn
  46341. def ll_fz_decode_barcode_from_pixmap(pix, rotate):
  46342. """
  46343. Wrapper for out-params of fz_decode_barcode_from_pixmap().
  46344. Returns: char *, ::fz_barcode_type type
  46345. """
  46346. outparams = ll_fz_decode_barcode_from_pixmap_outparams()
  46347. ret = ll_fz_decode_barcode_from_pixmap_outparams_fn(pix, rotate, outparams)
  46348. return ret, outparams.type
  46349. def fz_decode_barcode_from_pixmap_outparams_fn(pix, rotate):
  46350. """
  46351. Class-aware helper for out-params of fz_decode_barcode_from_pixmap() [fz_decode_barcode_from_pixmap()].
  46352. """
  46353. ret, type = ll_fz_decode_barcode_from_pixmap(pix.m_internal, rotate)
  46354. return ret, type
  46355. fz_decode_barcode_from_pixmap = fz_decode_barcode_from_pixmap_outparams_fn
  46356. def ll_fz_decode_barcode_from_pixmap2(pix, rotate):
  46357. """
  46358. Wrapper for out-params of fz_decode_barcode_from_pixmap2().
  46359. Returns: std::string, ::fz_barcode_type type
  46360. """
  46361. outparams = ll_fz_decode_barcode_from_pixmap2_outparams()
  46362. ret = ll_fz_decode_barcode_from_pixmap2_outparams_fn(pix, rotate, outparams)
  46363. return ret, outparams.type
  46364. def fz_decode_barcode_from_pixmap2_outparams_fn(pix, rotate):
  46365. """
  46366. Class-aware helper for out-params of fz_decode_barcode_from_pixmap2() [fz_decode_barcode_from_pixmap2()].
  46367. """
  46368. ret, type = ll_fz_decode_barcode_from_pixmap2(pix.m_internal, rotate)
  46369. return ret, type
  46370. fz_decode_barcode_from_pixmap2 = fz_decode_barcode_from_pixmap2_outparams_fn
  46371. def ll_fz_decomp_image_from_stream(stm, image, subarea, indexed, l2factor):
  46372. """
  46373. Wrapper for out-params of fz_decomp_image_from_stream().
  46374. Returns: fz_pixmap *, int l2extra
  46375. """
  46376. outparams = ll_fz_decomp_image_from_stream_outparams()
  46377. ret = ll_fz_decomp_image_from_stream_outparams_fn(stm, image, subarea, indexed, l2factor, outparams)
  46378. return ret, outparams.l2extra
  46379. def fz_decomp_image_from_stream_outparams_fn(stm, image, subarea, indexed, l2factor):
  46380. """
  46381. Class-aware helper for out-params of fz_decomp_image_from_stream() [fz_decomp_image_from_stream()].
  46382. """
  46383. ret, l2extra = ll_fz_decomp_image_from_stream(stm.m_internal, image.m_internal, subarea.internal(), indexed, l2factor)
  46384. return FzPixmap(ret), l2extra
  46385. fz_decomp_image_from_stream = fz_decomp_image_from_stream_outparams_fn
  46386. def ll_fz_deflate(dest, source, source_length, level):
  46387. """
  46388. Wrapper for out-params of fz_deflate().
  46389. Returns: size_t compressed_length
  46390. """
  46391. outparams = ll_fz_deflate_outparams()
  46392. ret = ll_fz_deflate_outparams_fn(dest, source, source_length, level, outparams)
  46393. return outparams.compressed_length
  46394. def fz_deflate_outparams_fn(dest, source, source_length, level):
  46395. """
  46396. Class-aware helper for out-params of fz_deflate() [fz_deflate()].
  46397. """
  46398. compressed_length = ll_fz_deflate(dest, source, source_length, level)
  46399. return compressed_length
  46400. fz_deflate = fz_deflate_outparams_fn
  46401. def ll_fz_dom_get_attribute(elt, i):
  46402. """
  46403. Wrapper for out-params of fz_dom_get_attribute().
  46404. Returns: const char *, const char *att
  46405. """
  46406. outparams = ll_fz_dom_get_attribute_outparams()
  46407. ret = ll_fz_dom_get_attribute_outparams_fn(elt, i, outparams)
  46408. return ret, outparams.att
  46409. def fz_dom_get_attribute_outparams_fn(elt, i):
  46410. """
  46411. Class-aware helper for out-params of fz_dom_get_attribute() [fz_dom_get_attribute()].
  46412. """
  46413. ret, att = ll_fz_dom_get_attribute(elt.m_internal, i)
  46414. return ret, att
  46415. fz_dom_get_attribute = fz_dom_get_attribute_outparams_fn
  46416. def ll_fz_drop_imp(p):
  46417. """
  46418. Wrapper for out-params of fz_drop_imp().
  46419. Returns: int, int refs
  46420. """
  46421. outparams = ll_fz_drop_imp_outparams()
  46422. ret = ll_fz_drop_imp_outparams_fn(p, outparams)
  46423. return ret, outparams.refs
  46424. def ll_fz_drop_imp16(p):
  46425. """
  46426. Wrapper for out-params of fz_drop_imp16().
  46427. Returns: int, int16_t refs
  46428. """
  46429. outparams = ll_fz_drop_imp16_outparams()
  46430. ret = ll_fz_drop_imp16_outparams_fn(p, outparams)
  46431. return ret, outparams.refs
  46432. def ll_fz_encode_character_with_fallback(font, unicode, script, language):
  46433. """
  46434. Wrapper for out-params of fz_encode_character_with_fallback().
  46435. Returns: int, ::fz_font *out_font
  46436. """
  46437. outparams = ll_fz_encode_character_with_fallback_outparams()
  46438. ret = ll_fz_encode_character_with_fallback_outparams_fn(font, unicode, script, language, outparams)
  46439. return ret, outparams.out_font
  46440. def fz_encode_character_with_fallback_outparams_fn(font, unicode, script, language):
  46441. """
  46442. Class-aware helper for out-params of fz_encode_character_with_fallback() [fz_encode_character_with_fallback()].
  46443. """
  46444. ret, out_font = ll_fz_encode_character_with_fallback(font.m_internal, unicode, script, language)
  46445. return ret, FzFont(ll_fz_keep_font( out_font))
  46446. fz_encode_character_with_fallback = fz_encode_character_with_fallback_outparams_fn
  46447. def ll_fz_error_callback():
  46448. """
  46449. Wrapper for out-params of fz_error_callback().
  46450. Returns: fz_error_cb *, void *user
  46451. """
  46452. outparams = ll_fz_error_callback_outparams()
  46453. ret = ll_fz_error_callback_outparams_fn(outparams)
  46454. return ret, outparams.user
  46455. def fz_error_callback_outparams_fn():
  46456. """
  46457. Class-aware helper for out-params of fz_error_callback() [fz_error_callback()].
  46458. """
  46459. ret, user = ll_fz_error_callback()
  46460. return ret, user
  46461. fz_error_callback = fz_error_callback_outparams_fn
  46462. def ll_fz_eval_function(func, in_, inlen, outlen):
  46463. """
  46464. Wrapper for out-params of fz_eval_function().
  46465. Returns: float out
  46466. """
  46467. outparams = ll_fz_eval_function_outparams()
  46468. ret = ll_fz_eval_function_outparams_fn(func, in_, inlen, outlen, outparams)
  46469. return outparams.out
  46470. def fz_eval_function_outparams_fn(func, in_, inlen, outlen):
  46471. """
  46472. Class-aware helper for out-params of fz_eval_function() [fz_eval_function()].
  46473. """
  46474. out = ll_fz_eval_function(func.m_internal, in_, inlen, outlen)
  46475. return out
  46476. fz_eval_function = fz_eval_function_outparams_fn
  46477. def ll_fz_fill_pixmap_with_color(pix, colorspace, color_params):
  46478. """
  46479. Wrapper for out-params of fz_fill_pixmap_with_color().
  46480. Returns: float color
  46481. """
  46482. outparams = ll_fz_fill_pixmap_with_color_outparams()
  46483. ret = ll_fz_fill_pixmap_with_color_outparams_fn(pix, colorspace, color_params, outparams)
  46484. return outparams.color
  46485. def fz_fill_pixmap_with_color_outparams_fn(pix, colorspace, color_params):
  46486. """
  46487. Class-aware helper for out-params of fz_fill_pixmap_with_color() [fz_fill_pixmap_with_color()].
  46488. """
  46489. color = ll_fz_fill_pixmap_with_color(pix.m_internal, colorspace.m_internal, color_params.internal())
  46490. return color
  46491. fz_fill_pixmap_with_color = fz_fill_pixmap_with_color_outparams_fn
  46492. def ll_fz_get_pixmap_from_image(image, subarea, ctm):
  46493. """
  46494. Wrapper for out-params of fz_get_pixmap_from_image().
  46495. Returns: fz_pixmap *, int w, int h
  46496. """
  46497. outparams = ll_fz_get_pixmap_from_image_outparams()
  46498. ret = ll_fz_get_pixmap_from_image_outparams_fn(image, subarea, ctm, outparams)
  46499. return ret, outparams.w, outparams.h
  46500. def fz_get_pixmap_from_image_outparams_fn(image, subarea, ctm):
  46501. """
  46502. Class-aware helper for out-params of fz_get_pixmap_from_image() [fz_get_pixmap_from_image()].
  46503. """
  46504. ret, w, h = ll_fz_get_pixmap_from_image(image.m_internal, subarea.internal(), ctm.internal())
  46505. return FzPixmap(ret), w, h
  46506. fz_get_pixmap_from_image = fz_get_pixmap_from_image_outparams_fn
  46507. def ll_fz_getopt(nargc, ostr):
  46508. """
  46509. Wrapper for out-params of fz_getopt().
  46510. Returns: int, char *nargv
  46511. """
  46512. outparams = ll_fz_getopt_outparams()
  46513. ret = ll_fz_getopt_outparams_fn(nargc, ostr, outparams)
  46514. return ret, outparams.nargv
  46515. def fz_getopt_outparams_fn(nargc, ostr):
  46516. """
  46517. Class-aware helper for out-params of fz_getopt() [fz_getopt()].
  46518. """
  46519. ret, nargv = ll_fz_getopt(nargc, ostr)
  46520. return ret, nargv
  46521. fz_getopt = fz_getopt_outparams_fn
  46522. def ll_fz_getopt_long(nargc, ostr, longopts):
  46523. """
  46524. Wrapper for out-params of fz_getopt_long().
  46525. Returns: int, char *nargv
  46526. """
  46527. outparams = ll_fz_getopt_long_outparams()
  46528. ret = ll_fz_getopt_long_outparams_fn(nargc, ostr, longopts, outparams)
  46529. return ret, outparams.nargv
  46530. def fz_getopt_long_outparams_fn(nargc, ostr, longopts):
  46531. """
  46532. Class-aware helper for out-params of fz_getopt_long() [fz_getopt_long()].
  46533. """
  46534. ret, nargv = ll_fz_getopt_long(nargc, ostr, longopts.m_internal)
  46535. return ret, nargv
  46536. fz_getopt_long = fz_getopt_long_outparams_fn
  46537. def ll_fz_grisu(f, s):
  46538. """
  46539. Wrapper for out-params of fz_grisu().
  46540. Returns: int, int exp
  46541. """
  46542. outparams = ll_fz_grisu_outparams()
  46543. ret = ll_fz_grisu_outparams_fn(f, s, outparams)
  46544. return ret, outparams.exp
  46545. def fz_grisu_outparams_fn(f, s):
  46546. """
  46547. Class-aware helper for out-params of fz_grisu() [fz_grisu()].
  46548. """
  46549. ret, exp = ll_fz_grisu(f, s)
  46550. return ret, exp
  46551. fz_grisu = fz_grisu_outparams_fn
  46552. def ll_fz_has_option(opts, key):
  46553. """
  46554. Wrapper for out-params of fz_has_option().
  46555. Returns: int, const char *val
  46556. """
  46557. outparams = ll_fz_has_option_outparams()
  46558. ret = ll_fz_has_option_outparams_fn(opts, key, outparams)
  46559. return ret, outparams.val
  46560. def fz_has_option_outparams_fn(opts, key):
  46561. """
  46562. Class-aware helper for out-params of fz_has_option() [fz_has_option()].
  46563. """
  46564. ret, val = ll_fz_has_option(opts, key)
  46565. return ret, val
  46566. fz_has_option = fz_has_option_outparams_fn
  46567. def ll_fz_image_resolution(image):
  46568. """
  46569. Wrapper for out-params of fz_image_resolution().
  46570. Returns: int xres, int yres
  46571. """
  46572. outparams = ll_fz_image_resolution_outparams()
  46573. ret = ll_fz_image_resolution_outparams_fn(image, outparams)
  46574. return outparams.xres, outparams.yres
  46575. def fz_image_resolution_outparams_fn(image):
  46576. """
  46577. Class-aware helper for out-params of fz_image_resolution() [fz_image_resolution()].
  46578. """
  46579. xres, yres = ll_fz_image_resolution(image.m_internal)
  46580. return xres, yres
  46581. fz_image_resolution = fz_image_resolution_outparams_fn
  46582. def ll_fz_keep_imp(p):
  46583. """
  46584. Wrapper for out-params of fz_keep_imp().
  46585. Returns: void *, int refs
  46586. """
  46587. outparams = ll_fz_keep_imp_outparams()
  46588. ret = ll_fz_keep_imp_outparams_fn(p, outparams)
  46589. return ret, outparams.refs
  46590. def ll_fz_keep_imp16(p):
  46591. """
  46592. Wrapper for out-params of fz_keep_imp16().
  46593. Returns: void *, int16_t refs
  46594. """
  46595. outparams = ll_fz_keep_imp16_outparams()
  46596. ret = ll_fz_keep_imp16_outparams_fn(p, outparams)
  46597. return ret, outparams.refs
  46598. def ll_fz_keep_imp_locked(p):
  46599. """
  46600. Wrapper for out-params of fz_keep_imp_locked().
  46601. Returns: void *, int refs
  46602. """
  46603. outparams = ll_fz_keep_imp_locked_outparams()
  46604. ret = ll_fz_keep_imp_locked_outparams_fn(p, outparams)
  46605. return ret, outparams.refs
  46606. def ll_fz_lookup_base14_font(name):
  46607. """
  46608. Wrapper for out-params of fz_lookup_base14_font().
  46609. Returns: const unsigned char *, int len
  46610. """
  46611. outparams = ll_fz_lookup_base14_font_outparams()
  46612. ret = ll_fz_lookup_base14_font_outparams_fn(name, outparams)
  46613. return ret, outparams.len
  46614. def fz_lookup_base14_font_outparams_fn(name):
  46615. """
  46616. Class-aware helper for out-params of fz_lookup_base14_font() [fz_lookup_base14_font()].
  46617. """
  46618. ret, len = ll_fz_lookup_base14_font(name)
  46619. return ret, len
  46620. fz_lookup_base14_font = fz_lookup_base14_font_outparams_fn
  46621. def ll_fz_lookup_builtin_font(name, bold, italic):
  46622. """
  46623. Wrapper for out-params of fz_lookup_builtin_font().
  46624. Returns: const unsigned char *, int len
  46625. """
  46626. outparams = ll_fz_lookup_builtin_font_outparams()
  46627. ret = ll_fz_lookup_builtin_font_outparams_fn(name, bold, italic, outparams)
  46628. return ret, outparams.len
  46629. def fz_lookup_builtin_font_outparams_fn(name, bold, italic):
  46630. """
  46631. Class-aware helper for out-params of fz_lookup_builtin_font() [fz_lookup_builtin_font()].
  46632. """
  46633. ret, len = ll_fz_lookup_builtin_font(name, bold, italic)
  46634. return ret, len
  46635. fz_lookup_builtin_font = fz_lookup_builtin_font_outparams_fn
  46636. def ll_fz_lookup_cjk_font(ordering):
  46637. """
  46638. Wrapper for out-params of fz_lookup_cjk_font().
  46639. Returns: const unsigned char *, int len, int index
  46640. """
  46641. outparams = ll_fz_lookup_cjk_font_outparams()
  46642. ret = ll_fz_lookup_cjk_font_outparams_fn(ordering, outparams)
  46643. return ret, outparams.len, outparams.index
  46644. def fz_lookup_cjk_font_outparams_fn(ordering):
  46645. """
  46646. Class-aware helper for out-params of fz_lookup_cjk_font() [fz_lookup_cjk_font()].
  46647. """
  46648. ret, len, index = ll_fz_lookup_cjk_font(ordering)
  46649. return ret, len, index
  46650. fz_lookup_cjk_font = fz_lookup_cjk_font_outparams_fn
  46651. def ll_fz_lookup_cjk_font_by_language(lang):
  46652. """
  46653. Wrapper for out-params of fz_lookup_cjk_font_by_language().
  46654. Returns: const unsigned char *, int len, int subfont
  46655. """
  46656. outparams = ll_fz_lookup_cjk_font_by_language_outparams()
  46657. ret = ll_fz_lookup_cjk_font_by_language_outparams_fn(lang, outparams)
  46658. return ret, outparams.len, outparams.subfont
  46659. def fz_lookup_cjk_font_by_language_outparams_fn(lang):
  46660. """
  46661. Class-aware helper for out-params of fz_lookup_cjk_font_by_language() [fz_lookup_cjk_font_by_language()].
  46662. """
  46663. ret, len, subfont = ll_fz_lookup_cjk_font_by_language(lang)
  46664. return ret, len, subfont
  46665. fz_lookup_cjk_font_by_language = fz_lookup_cjk_font_by_language_outparams_fn
  46666. def ll_fz_lookup_noto_boxes_font():
  46667. """
  46668. Wrapper for out-params of fz_lookup_noto_boxes_font().
  46669. Returns: const unsigned char *, int len
  46670. """
  46671. outparams = ll_fz_lookup_noto_boxes_font_outparams()
  46672. ret = ll_fz_lookup_noto_boxes_font_outparams_fn(outparams)
  46673. return ret, outparams.len
  46674. def fz_lookup_noto_boxes_font_outparams_fn():
  46675. """
  46676. Class-aware helper for out-params of fz_lookup_noto_boxes_font() [fz_lookup_noto_boxes_font()].
  46677. """
  46678. ret, len = ll_fz_lookup_noto_boxes_font()
  46679. return ret, len
  46680. fz_lookup_noto_boxes_font = fz_lookup_noto_boxes_font_outparams_fn
  46681. def ll_fz_lookup_noto_emoji_font():
  46682. """
  46683. Wrapper for out-params of fz_lookup_noto_emoji_font().
  46684. Returns: const unsigned char *, int len
  46685. """
  46686. outparams = ll_fz_lookup_noto_emoji_font_outparams()
  46687. ret = ll_fz_lookup_noto_emoji_font_outparams_fn(outparams)
  46688. return ret, outparams.len
  46689. def fz_lookup_noto_emoji_font_outparams_fn():
  46690. """
  46691. Class-aware helper for out-params of fz_lookup_noto_emoji_font() [fz_lookup_noto_emoji_font()].
  46692. """
  46693. ret, len = ll_fz_lookup_noto_emoji_font()
  46694. return ret, len
  46695. fz_lookup_noto_emoji_font = fz_lookup_noto_emoji_font_outparams_fn
  46696. def ll_fz_lookup_noto_font(script, lang):
  46697. """
  46698. Wrapper for out-params of fz_lookup_noto_font().
  46699. Returns: const unsigned char *, int len, int subfont
  46700. """
  46701. outparams = ll_fz_lookup_noto_font_outparams()
  46702. ret = ll_fz_lookup_noto_font_outparams_fn(script, lang, outparams)
  46703. return ret, outparams.len, outparams.subfont
  46704. def fz_lookup_noto_font_outparams_fn(script, lang):
  46705. """
  46706. Class-aware helper for out-params of fz_lookup_noto_font() [fz_lookup_noto_font()].
  46707. """
  46708. ret, len, subfont = ll_fz_lookup_noto_font(script, lang)
  46709. return ret, len, subfont
  46710. fz_lookup_noto_font = fz_lookup_noto_font_outparams_fn
  46711. def ll_fz_lookup_noto_math_font():
  46712. """
  46713. Wrapper for out-params of fz_lookup_noto_math_font().
  46714. Returns: const unsigned char *, int len
  46715. """
  46716. outparams = ll_fz_lookup_noto_math_font_outparams()
  46717. ret = ll_fz_lookup_noto_math_font_outparams_fn(outparams)
  46718. return ret, outparams.len
  46719. def fz_lookup_noto_math_font_outparams_fn():
  46720. """
  46721. Class-aware helper for out-params of fz_lookup_noto_math_font() [fz_lookup_noto_math_font()].
  46722. """
  46723. ret, len = ll_fz_lookup_noto_math_font()
  46724. return ret, len
  46725. fz_lookup_noto_math_font = fz_lookup_noto_math_font_outparams_fn
  46726. def ll_fz_lookup_noto_music_font():
  46727. """
  46728. Wrapper for out-params of fz_lookup_noto_music_font().
  46729. Returns: const unsigned char *, int len
  46730. """
  46731. outparams = ll_fz_lookup_noto_music_font_outparams()
  46732. ret = ll_fz_lookup_noto_music_font_outparams_fn(outparams)
  46733. return ret, outparams.len
  46734. def fz_lookup_noto_music_font_outparams_fn():
  46735. """
  46736. Class-aware helper for out-params of fz_lookup_noto_music_font() [fz_lookup_noto_music_font()].
  46737. """
  46738. ret, len = ll_fz_lookup_noto_music_font()
  46739. return ret, len
  46740. fz_lookup_noto_music_font = fz_lookup_noto_music_font_outparams_fn
  46741. def ll_fz_lookup_noto_symbol1_font():
  46742. """
  46743. Wrapper for out-params of fz_lookup_noto_symbol1_font().
  46744. Returns: const unsigned char *, int len
  46745. """
  46746. outparams = ll_fz_lookup_noto_symbol1_font_outparams()
  46747. ret = ll_fz_lookup_noto_symbol1_font_outparams_fn(outparams)
  46748. return ret, outparams.len
  46749. def fz_lookup_noto_symbol1_font_outparams_fn():
  46750. """
  46751. Class-aware helper for out-params of fz_lookup_noto_symbol1_font() [fz_lookup_noto_symbol1_font()].
  46752. """
  46753. ret, len = ll_fz_lookup_noto_symbol1_font()
  46754. return ret, len
  46755. fz_lookup_noto_symbol1_font = fz_lookup_noto_symbol1_font_outparams_fn
  46756. def ll_fz_lookup_noto_symbol2_font():
  46757. """
  46758. Wrapper for out-params of fz_lookup_noto_symbol2_font().
  46759. Returns: const unsigned char *, int len
  46760. """
  46761. outparams = ll_fz_lookup_noto_symbol2_font_outparams()
  46762. ret = ll_fz_lookup_noto_symbol2_font_outparams_fn(outparams)
  46763. return ret, outparams.len
  46764. def fz_lookup_noto_symbol2_font_outparams_fn():
  46765. """
  46766. Class-aware helper for out-params of fz_lookup_noto_symbol2_font() [fz_lookup_noto_symbol2_font()].
  46767. """
  46768. ret, len = ll_fz_lookup_noto_symbol2_font()
  46769. return ret, len
  46770. fz_lookup_noto_symbol2_font = fz_lookup_noto_symbol2_font_outparams_fn
  46771. def ll_fz_new_brotli_data(source, source_length, level):
  46772. """
  46773. Wrapper for out-params of fz_new_brotli_data().
  46774. Returns: unsigned char *, size_t compressed_length
  46775. """
  46776. outparams = ll_fz_new_brotli_data_outparams()
  46777. ret = ll_fz_new_brotli_data_outparams_fn(source, source_length, level, outparams)
  46778. return ret, outparams.compressed_length
  46779. def fz_new_brotli_data_outparams_fn(source, source_length, level):
  46780. """
  46781. Class-aware helper for out-params of fz_new_brotli_data() [fz_new_brotli_data()].
  46782. """
  46783. ret, compressed_length = ll_fz_new_brotli_data(source, source_length, level)
  46784. return ret, compressed_length
  46785. fz_new_brotli_data = fz_new_brotli_data_outparams_fn
  46786. def ll_fz_new_brotli_data_from_buffer(buffer, level):
  46787. """
  46788. Wrapper for out-params of fz_new_brotli_data_from_buffer().
  46789. Returns: unsigned char *, size_t compressed_length
  46790. """
  46791. outparams = ll_fz_new_brotli_data_from_buffer_outparams()
  46792. ret = ll_fz_new_brotli_data_from_buffer_outparams_fn(buffer, level, outparams)
  46793. return ret, outparams.compressed_length
  46794. def fz_new_brotli_data_from_buffer_outparams_fn(buffer, level):
  46795. """
  46796. Class-aware helper for out-params of fz_new_brotli_data_from_buffer() [fz_new_brotli_data_from_buffer()].
  46797. """
  46798. ret, compressed_length = ll_fz_new_brotli_data_from_buffer(buffer.m_internal, level)
  46799. return ret, compressed_length
  46800. fz_new_brotli_data_from_buffer = fz_new_brotli_data_from_buffer_outparams_fn
  46801. def ll_fz_new_deflated_data(source, source_length, level):
  46802. """
  46803. Wrapper for out-params of fz_new_deflated_data().
  46804. Returns: unsigned char *, size_t compressed_length
  46805. """
  46806. outparams = ll_fz_new_deflated_data_outparams()
  46807. ret = ll_fz_new_deflated_data_outparams_fn(source, source_length, level, outparams)
  46808. return ret, outparams.compressed_length
  46809. def fz_new_deflated_data_outparams_fn(source, source_length, level):
  46810. """
  46811. Class-aware helper for out-params of fz_new_deflated_data() [fz_new_deflated_data()].
  46812. """
  46813. ret, compressed_length = ll_fz_new_deflated_data(source, source_length, level)
  46814. return ret, compressed_length
  46815. fz_new_deflated_data = fz_new_deflated_data_outparams_fn
  46816. def ll_fz_new_deflated_data_from_buffer(buffer, level):
  46817. """
  46818. Wrapper for out-params of fz_new_deflated_data_from_buffer().
  46819. Returns: unsigned char *, size_t compressed_length
  46820. """
  46821. outparams = ll_fz_new_deflated_data_from_buffer_outparams()
  46822. ret = ll_fz_new_deflated_data_from_buffer_outparams_fn(buffer, level, outparams)
  46823. return ret, outparams.compressed_length
  46824. def fz_new_deflated_data_from_buffer_outparams_fn(buffer, level):
  46825. """
  46826. Class-aware helper for out-params of fz_new_deflated_data_from_buffer() [fz_new_deflated_data_from_buffer()].
  46827. """
  46828. ret, compressed_length = ll_fz_new_deflated_data_from_buffer(buffer.m_internal, level)
  46829. return ret, compressed_length
  46830. fz_new_deflated_data_from_buffer = fz_new_deflated_data_from_buffer_outparams_fn
  46831. def ll_fz_new_display_list_from_svg(buf, base_uri, dir):
  46832. """
  46833. Wrapper for out-params of fz_new_display_list_from_svg().
  46834. Returns: fz_display_list *, float w, float h
  46835. """
  46836. outparams = ll_fz_new_display_list_from_svg_outparams()
  46837. ret = ll_fz_new_display_list_from_svg_outparams_fn(buf, base_uri, dir, outparams)
  46838. return ret, outparams.w, outparams.h
  46839. def fz_new_display_list_from_svg_outparams_fn(buf, base_uri, dir):
  46840. """
  46841. Class-aware helper for out-params of fz_new_display_list_from_svg() [fz_new_display_list_from_svg()].
  46842. """
  46843. ret, w, h = ll_fz_new_display_list_from_svg(buf.m_internal, base_uri, dir.m_internal)
  46844. return FzDisplayList(ret), w, h
  46845. fz_new_display_list_from_svg = fz_new_display_list_from_svg_outparams_fn
  46846. def ll_fz_new_display_list_from_svg_xml(xmldoc, xml, base_uri, dir):
  46847. """
  46848. Wrapper for out-params of fz_new_display_list_from_svg_xml().
  46849. Returns: fz_display_list *, float w, float h
  46850. """
  46851. outparams = ll_fz_new_display_list_from_svg_xml_outparams()
  46852. ret = ll_fz_new_display_list_from_svg_xml_outparams_fn(xmldoc, xml, base_uri, dir, outparams)
  46853. return ret, outparams.w, outparams.h
  46854. def fz_new_display_list_from_svg_xml_outparams_fn(xmldoc, xml, base_uri, dir):
  46855. """
  46856. Class-aware helper for out-params of fz_new_display_list_from_svg_xml() [fz_new_display_list_from_svg_xml()].
  46857. """
  46858. ret, w, h = ll_fz_new_display_list_from_svg_xml(xmldoc.m_internal, xml.m_internal, base_uri, dir.m_internal)
  46859. return FzDisplayList(ret), w, h
  46860. fz_new_display_list_from_svg_xml = fz_new_display_list_from_svg_xml_outparams_fn
  46861. def ll_fz_new_draw_device_with_options(options, mediabox):
  46862. """
  46863. Wrapper for out-params of fz_new_draw_device_with_options().
  46864. Returns: fz_device *, ::fz_pixmap *pixmap
  46865. """
  46866. outparams = ll_fz_new_draw_device_with_options_outparams()
  46867. ret = ll_fz_new_draw_device_with_options_outparams_fn(options, mediabox, outparams)
  46868. return ret, outparams.pixmap
  46869. def fz_new_draw_device_with_options_outparams_fn(options, mediabox):
  46870. """
  46871. Class-aware helper for out-params of fz_new_draw_device_with_options() [fz_new_draw_device_with_options()].
  46872. """
  46873. ret, pixmap = ll_fz_new_draw_device_with_options(options.internal(), mediabox.internal())
  46874. return FzDevice(ret), FzPixmap( pixmap)
  46875. fz_new_draw_device_with_options = fz_new_draw_device_with_options_outparams_fn
  46876. def ll_fz_new_svg_device_with_id(out, page_width, page_height, text_format, reuse_images):
  46877. """
  46878. Wrapper for out-params of fz_new_svg_device_with_id().
  46879. Returns: fz_device *, int id
  46880. """
  46881. outparams = ll_fz_new_svg_device_with_id_outparams()
  46882. ret = ll_fz_new_svg_device_with_id_outparams_fn(out, page_width, page_height, text_format, reuse_images, outparams)
  46883. return ret, outparams.id
  46884. def fz_new_svg_device_with_id_outparams_fn(out, page_width, page_height, text_format, reuse_images):
  46885. """
  46886. Class-aware helper for out-params of fz_new_svg_device_with_id() [fz_new_svg_device_with_id()].
  46887. """
  46888. ret, id = ll_fz_new_svg_device_with_id(out.m_internal, page_width, page_height, text_format, reuse_images)
  46889. return FzDevice(ret), id
  46890. fz_new_svg_device_with_id = fz_new_svg_device_with_id_outparams_fn
  46891. def ll_fz_new_test_device(threshold, options, passthrough):
  46892. """
  46893. Wrapper for out-params of fz_new_test_device().
  46894. Returns: fz_device *, int is_color
  46895. """
  46896. outparams = ll_fz_new_test_device_outparams()
  46897. ret = ll_fz_new_test_device_outparams_fn(threshold, options, passthrough, outparams)
  46898. return ret, outparams.is_color
  46899. def fz_new_test_device_outparams_fn(threshold, options, passthrough):
  46900. """
  46901. Class-aware helper for out-params of fz_new_test_device() [fz_new_test_device()].
  46902. """
  46903. ret, is_color = ll_fz_new_test_device(threshold, options, passthrough.m_internal)
  46904. return FzDevice(ret), is_color
  46905. fz_new_test_device = fz_new_test_device_outparams_fn
  46906. def ll_fz_open_image_decomp_stream(arg_0, arg_1):
  46907. """
  46908. Wrapper for out-params of fz_open_image_decomp_stream().
  46909. Returns: fz_stream *, int l2factor
  46910. """
  46911. outparams = ll_fz_open_image_decomp_stream_outparams()
  46912. ret = ll_fz_open_image_decomp_stream_outparams_fn(arg_0, arg_1, outparams)
  46913. return ret, outparams.l2factor
  46914. def fz_open_image_decomp_stream_outparams_fn(arg_0, arg_1):
  46915. """
  46916. Class-aware helper for out-params of fz_open_image_decomp_stream() [fz_open_image_decomp_stream()].
  46917. """
  46918. ret, l2factor = ll_fz_open_image_decomp_stream(arg_0.m_internal, arg_1.m_internal)
  46919. return FzStream(ret), l2factor
  46920. fz_open_image_decomp_stream = fz_open_image_decomp_stream_outparams_fn
  46921. def ll_fz_open_image_decomp_stream_from_buffer(arg_0):
  46922. """
  46923. Wrapper for out-params of fz_open_image_decomp_stream_from_buffer().
  46924. Returns: fz_stream *, int l2factor
  46925. """
  46926. outparams = ll_fz_open_image_decomp_stream_from_buffer_outparams()
  46927. ret = ll_fz_open_image_decomp_stream_from_buffer_outparams_fn(arg_0, outparams)
  46928. return ret, outparams.l2factor
  46929. def fz_open_image_decomp_stream_from_buffer_outparams_fn(arg_0):
  46930. """
  46931. Class-aware helper for out-params of fz_open_image_decomp_stream_from_buffer() [fz_open_image_decomp_stream_from_buffer()].
  46932. """
  46933. ret, l2factor = ll_fz_open_image_decomp_stream_from_buffer(arg_0.m_internal)
  46934. return FzStream(ret), l2factor
  46935. fz_open_image_decomp_stream_from_buffer = fz_open_image_decomp_stream_from_buffer_outparams_fn
  46936. def ll_fz_page_presentation(page, transition):
  46937. """
  46938. Wrapper for out-params of fz_page_presentation().
  46939. Returns: fz_transition *, float duration
  46940. """
  46941. outparams = ll_fz_page_presentation_outparams()
  46942. ret = ll_fz_page_presentation_outparams_fn(page, transition, outparams)
  46943. return ret, outparams.duration
  46944. def fz_page_presentation_outparams_fn(page, transition):
  46945. """
  46946. Class-aware helper for out-params of fz_page_presentation() [fz_page_presentation()].
  46947. """
  46948. ret, duration = ll_fz_page_presentation(page.m_internal, transition.internal())
  46949. return FzTransition(ret), duration
  46950. fz_page_presentation = fz_page_presentation_outparams_fn
  46951. def ll_fz_paint_shade(shade, override_cs, ctm, dest, color_params, bbox, eop):
  46952. """
  46953. Wrapper for out-params of fz_paint_shade().
  46954. Returns: ::fz_shade_color_cache *cache
  46955. """
  46956. outparams = ll_fz_paint_shade_outparams()
  46957. ret = ll_fz_paint_shade_outparams_fn(shade, override_cs, ctm, dest, color_params, bbox, eop, outparams)
  46958. return outparams.cache
  46959. def fz_paint_shade_outparams_fn(shade, override_cs, ctm, dest, color_params, bbox, eop):
  46960. """
  46961. Class-aware helper for out-params of fz_paint_shade() [fz_paint_shade()].
  46962. """
  46963. cache = ll_fz_paint_shade(shade.m_internal, override_cs.m_internal, ctm.internal(), dest.m_internal, color_params.internal(), bbox.internal(), eop.m_internal)
  46964. return FzShadeColorCache(ll_fz_keep_shade_color_cache( cache))
  46965. fz_paint_shade = fz_paint_shade_outparams_fn
  46966. def ll_fz_parse_page_range(s, n):
  46967. """
  46968. Wrapper for out-params of fz_parse_page_range().
  46969. Returns: const char *, int a, int b
  46970. """
  46971. outparams = ll_fz_parse_page_range_outparams()
  46972. ret = ll_fz_parse_page_range_outparams_fn(s, n, outparams)
  46973. return ret, outparams.a, outparams.b
  46974. def fz_parse_page_range_outparams_fn(s, n):
  46975. """
  46976. Class-aware helper for out-params of fz_parse_page_range() [fz_parse_page_range()].
  46977. """
  46978. ret, a, b = ll_fz_parse_page_range(s, n)
  46979. return ret, a, b
  46980. fz_parse_page_range = fz_parse_page_range_outparams_fn
  46981. def ll_fz_pool_array_append(arr):
  46982. """
  46983. Wrapper for out-params of fz_pool_array_append().
  46984. Returns: void *, size_t idx
  46985. """
  46986. outparams = ll_fz_pool_array_append_outparams()
  46987. ret = ll_fz_pool_array_append_outparams_fn(arr, outparams)
  46988. return ret, outparams.idx
  46989. def fz_pool_array_append_outparams_fn(arr):
  46990. """
  46991. Class-aware helper for out-params of fz_pool_array_append() [fz_pool_array_append()].
  46992. """
  46993. ret, idx = ll_fz_pool_array_append(arr.m_internal)
  46994. return ret, idx
  46995. fz_pool_array_append = fz_pool_array_append_outparams_fn
  46996. def ll_fz_read_best(stm, initial, worst_case):
  46997. """
  46998. Wrapper for out-params of fz_read_best().
  46999. Returns: fz_buffer *, int truncated
  47000. """
  47001. outparams = ll_fz_read_best_outparams()
  47002. ret = ll_fz_read_best_outparams_fn(stm, initial, worst_case, outparams)
  47003. return ret, outparams.truncated
  47004. def fz_read_best_outparams_fn(stm, initial, worst_case):
  47005. """
  47006. Class-aware helper for out-params of fz_read_best() [fz_read_best()].
  47007. """
  47008. ret, truncated = ll_fz_read_best(stm.m_internal, initial, worst_case)
  47009. return FzBuffer(ret), truncated
  47010. fz_read_best = fz_read_best_outparams_fn
  47011. def ll_fz_resolve_link(doc, uri):
  47012. """
  47013. Wrapper for out-params of fz_resolve_link().
  47014. Returns: fz_location, float xp, float yp
  47015. """
  47016. outparams = ll_fz_resolve_link_outparams()
  47017. ret = ll_fz_resolve_link_outparams_fn(doc, uri, outparams)
  47018. return ret, outparams.xp, outparams.yp
  47019. def fz_resolve_link_outparams_fn(doc, uri):
  47020. """
  47021. Class-aware helper for out-params of fz_resolve_link() [fz_resolve_link()].
  47022. """
  47023. ret, xp, yp = ll_fz_resolve_link(doc.m_internal, uri)
  47024. return FzLocation(ret), xp, yp
  47025. fz_resolve_link = fz_resolve_link_outparams_fn
  47026. def ll_fz_search_chapter_page_number(doc, chapter, page, needle, hit_bbox, hit_max):
  47027. """
  47028. Wrapper for out-params of fz_search_chapter_page_number().
  47029. Returns: int, int hit_mark
  47030. """
  47031. outparams = ll_fz_search_chapter_page_number_outparams()
  47032. ret = ll_fz_search_chapter_page_number_outparams_fn(doc, chapter, page, needle, hit_bbox, hit_max, outparams)
  47033. return ret, outparams.hit_mark
  47034. def fz_search_chapter_page_number_outparams_fn(doc, chapter, page, needle, hit_bbox, hit_max):
  47035. """
  47036. Class-aware helper for out-params of fz_search_chapter_page_number() [fz_search_chapter_page_number()].
  47037. """
  47038. ret, hit_mark = ll_fz_search_chapter_page_number(doc.m_internal, chapter, page, needle, hit_bbox.internal(), hit_max)
  47039. return ret, hit_mark
  47040. fz_search_chapter_page_number = fz_search_chapter_page_number_outparams_fn
  47041. def ll_fz_search_display_list(list, needle, hit_bbox, hit_max):
  47042. """
  47043. Wrapper for out-params of fz_search_display_list().
  47044. Returns: int, int hit_mark
  47045. """
  47046. outparams = ll_fz_search_display_list_outparams()
  47047. ret = ll_fz_search_display_list_outparams_fn(list, needle, hit_bbox, hit_max, outparams)
  47048. return ret, outparams.hit_mark
  47049. def fz_search_display_list_outparams_fn(list, needle, hit_bbox, hit_max):
  47050. """
  47051. Class-aware helper for out-params of fz_search_display_list() [fz_search_display_list()].
  47052. """
  47053. ret, hit_mark = ll_fz_search_display_list(list.m_internal, needle, hit_bbox.internal(), hit_max)
  47054. return ret, hit_mark
  47055. fz_search_display_list = fz_search_display_list_outparams_fn
  47056. def ll_fz_search_page(page, needle, hit_bbox, hit_max):
  47057. """
  47058. Wrapper for out-params of fz_search_page().
  47059. Returns: int, int hit_mark
  47060. """
  47061. outparams = ll_fz_search_page_outparams()
  47062. ret = ll_fz_search_page_outparams_fn(page, needle, hit_bbox, hit_max, outparams)
  47063. return ret, outparams.hit_mark
  47064. def fz_search_page_outparams_fn(page, needle, hit_bbox, hit_max):
  47065. """
  47066. Class-aware helper for out-params of fz_search_page() [fz_search_page()].
  47067. """
  47068. ret, hit_mark = ll_fz_search_page(page.m_internal, needle, hit_bbox.internal(), hit_max)
  47069. return ret, hit_mark
  47070. fz_search_page = fz_search_page_outparams_fn
  47071. def ll_fz_search_page_number(doc, number, needle, hit_bbox, hit_max):
  47072. """
  47073. Wrapper for out-params of fz_search_page_number().
  47074. Returns: int, int hit_mark
  47075. """
  47076. outparams = ll_fz_search_page_number_outparams()
  47077. ret = ll_fz_search_page_number_outparams_fn(doc, number, needle, hit_bbox, hit_max, outparams)
  47078. return ret, outparams.hit_mark
  47079. def fz_search_page_number_outparams_fn(doc, number, needle, hit_bbox, hit_max):
  47080. """
  47081. Class-aware helper for out-params of fz_search_page_number() [fz_search_page_number()].
  47082. """
  47083. ret, hit_mark = ll_fz_search_page_number(doc.m_internal, number, needle, hit_bbox.internal(), hit_max)
  47084. return ret, hit_mark
  47085. fz_search_page_number = fz_search_page_number_outparams_fn
  47086. def ll_fz_search_stext_page(text, needle, hit_bbox, hit_max):
  47087. """
  47088. Wrapper for out-params of fz_search_stext_page().
  47089. Returns: int, int hit_mark
  47090. """
  47091. outparams = ll_fz_search_stext_page_outparams()
  47092. ret = ll_fz_search_stext_page_outparams_fn(text, needle, hit_bbox, hit_max, outparams)
  47093. return ret, outparams.hit_mark
  47094. def fz_search_stext_page_outparams_fn(text, needle, hit_bbox, hit_max):
  47095. """
  47096. Class-aware helper for out-params of fz_search_stext_page() [fz_search_stext_page()].
  47097. """
  47098. ret, hit_mark = ll_fz_search_stext_page(text.m_internal, needle, hit_bbox.internal(), hit_max)
  47099. return ret, hit_mark
  47100. fz_search_stext_page = fz_search_stext_page_outparams_fn
  47101. def ll_fz_separation_equivalent(seps, idx, dst_cs, prf, color_params):
  47102. """
  47103. Wrapper for out-params of fz_separation_equivalent().
  47104. Returns: float dst_color
  47105. """
  47106. outparams = ll_fz_separation_equivalent_outparams()
  47107. ret = ll_fz_separation_equivalent_outparams_fn(seps, idx, dst_cs, prf, color_params, outparams)
  47108. return outparams.dst_color
  47109. def fz_separation_equivalent_outparams_fn(seps, idx, dst_cs, prf, color_params):
  47110. """
  47111. Class-aware helper for out-params of fz_separation_equivalent() [fz_separation_equivalent()].
  47112. """
  47113. dst_color = ll_fz_separation_equivalent(seps.m_internal, idx, dst_cs.m_internal, prf.m_internal, color_params.internal())
  47114. return dst_color
  47115. fz_separation_equivalent = fz_separation_equivalent_outparams_fn
  47116. def ll_fz_store_scavenge(size):
  47117. """
  47118. Wrapper for out-params of fz_store_scavenge().
  47119. Returns: int, int phase
  47120. """
  47121. outparams = ll_fz_store_scavenge_outparams()
  47122. ret = ll_fz_store_scavenge_outparams_fn(size, outparams)
  47123. return ret, outparams.phase
  47124. def fz_store_scavenge_outparams_fn(size):
  47125. """
  47126. Class-aware helper for out-params of fz_store_scavenge() [fz_store_scavenge()].
  47127. """
  47128. ret, phase = ll_fz_store_scavenge(size)
  47129. return ret, phase
  47130. fz_store_scavenge = fz_store_scavenge_outparams_fn
  47131. def ll_fz_store_scavenge_external(size):
  47132. """
  47133. Wrapper for out-params of fz_store_scavenge_external().
  47134. Returns: int, int phase
  47135. """
  47136. outparams = ll_fz_store_scavenge_external_outparams()
  47137. ret = ll_fz_store_scavenge_external_outparams_fn(size, outparams)
  47138. return ret, outparams.phase
  47139. def fz_store_scavenge_external_outparams_fn(size):
  47140. """
  47141. Class-aware helper for out-params of fz_store_scavenge_external() [fz_store_scavenge_external()].
  47142. """
  47143. ret, phase = ll_fz_store_scavenge_external(size)
  47144. return ret, phase
  47145. fz_store_scavenge_external = fz_store_scavenge_external_outparams_fn
  47146. def ll_fz_strsep(delim):
  47147. """
  47148. Wrapper for out-params of fz_strsep().
  47149. Returns: char *, char *stringp
  47150. """
  47151. outparams = ll_fz_strsep_outparams()
  47152. ret = ll_fz_strsep_outparams_fn(delim, outparams)
  47153. return ret, outparams.stringp
  47154. def fz_strsep_outparams_fn(delim):
  47155. """
  47156. Class-aware helper for out-params of fz_strsep() [fz_strsep()].
  47157. """
  47158. ret, stringp = ll_fz_strsep(delim)
  47159. return ret, stringp
  47160. fz_strsep = fz_strsep_outparams_fn
  47161. def ll_fz_strtof(s):
  47162. """
  47163. Wrapper for out-params of fz_strtof().
  47164. Returns: float, char *es
  47165. """
  47166. outparams = ll_fz_strtof_outparams()
  47167. ret = ll_fz_strtof_outparams_fn(s, outparams)
  47168. return ret, outparams.es
  47169. def fz_strtof_outparams_fn(s):
  47170. """
  47171. Class-aware helper for out-params of fz_strtof() [fz_strtof()].
  47172. """
  47173. ret, es = ll_fz_strtof(s)
  47174. return ret, es
  47175. fz_strtof = fz_strtof_outparams_fn
  47176. def ll_fz_subset_cff_for_gids(orig, num_gids, symbolic, cidfont):
  47177. """
  47178. Wrapper for out-params of fz_subset_cff_for_gids().
  47179. Returns: fz_buffer *, int gids
  47180. """
  47181. outparams = ll_fz_subset_cff_for_gids_outparams()
  47182. ret = ll_fz_subset_cff_for_gids_outparams_fn(orig, num_gids, symbolic, cidfont, outparams)
  47183. return ret, outparams.gids
  47184. def fz_subset_cff_for_gids_outparams_fn(orig, num_gids, symbolic, cidfont):
  47185. """
  47186. Class-aware helper for out-params of fz_subset_cff_for_gids() [fz_subset_cff_for_gids()].
  47187. """
  47188. ret, gids = ll_fz_subset_cff_for_gids(orig.m_internal, num_gids, symbolic, cidfont)
  47189. return FzBuffer( ll_fz_keep_buffer( ret)), gids
  47190. fz_subset_cff_for_gids = fz_subset_cff_for_gids_outparams_fn
  47191. def ll_fz_subset_ttf_for_gids(orig, num_gids, symbolic, cidfont):
  47192. """
  47193. Wrapper for out-params of fz_subset_ttf_for_gids().
  47194. Returns: fz_buffer *, int gids
  47195. """
  47196. outparams = ll_fz_subset_ttf_for_gids_outparams()
  47197. ret = ll_fz_subset_ttf_for_gids_outparams_fn(orig, num_gids, symbolic, cidfont, outparams)
  47198. return ret, outparams.gids
  47199. def fz_subset_ttf_for_gids_outparams_fn(orig, num_gids, symbolic, cidfont):
  47200. """
  47201. Class-aware helper for out-params of fz_subset_ttf_for_gids() [fz_subset_ttf_for_gids()].
  47202. """
  47203. ret, gids = ll_fz_subset_ttf_for_gids(orig.m_internal, num_gids, symbolic, cidfont)
  47204. return FzBuffer( ll_fz_keep_buffer( ret)), gids
  47205. fz_subset_ttf_for_gids = fz_subset_ttf_for_gids_outparams_fn
  47206. def ll_fz_warning_callback():
  47207. """
  47208. Wrapper for out-params of fz_warning_callback().
  47209. Returns: fz_warning_cb *, void *user
  47210. """
  47211. outparams = ll_fz_warning_callback_outparams()
  47212. ret = ll_fz_warning_callback_outparams_fn(outparams)
  47213. return ret, outparams.user
  47214. def fz_warning_callback_outparams_fn():
  47215. """
  47216. Class-aware helper for out-params of fz_warning_callback() [fz_warning_callback()].
  47217. """
  47218. ret, user = ll_fz_warning_callback()
  47219. return ret, user
  47220. fz_warning_callback = fz_warning_callback_outparams_fn
  47221. def ll_pdf_annot_MK_BC(annot, color):
  47222. """
  47223. Wrapper for out-params of pdf_annot_MK_BC().
  47224. Returns: int n
  47225. """
  47226. outparams = ll_pdf_annot_MK_BC_outparams()
  47227. ret = ll_pdf_annot_MK_BC_outparams_fn(annot, color, outparams)
  47228. return outparams.n
  47229. def pdf_annot_MK_BC_outparams_fn(annot, color):
  47230. """
  47231. Class-aware helper for out-params of pdf_annot_MK_BC() [pdf_annot_MK_BC()].
  47232. """
  47233. n = ll_pdf_annot_MK_BC(annot.m_internal, color)
  47234. return n
  47235. pdf_annot_MK_BC = pdf_annot_MK_BC_outparams_fn
  47236. def ll_pdf_annot_MK_BG(annot, color):
  47237. """
  47238. Wrapper for out-params of pdf_annot_MK_BG().
  47239. Returns: int n
  47240. """
  47241. outparams = ll_pdf_annot_MK_BG_outparams()
  47242. ret = ll_pdf_annot_MK_BG_outparams_fn(annot, color, outparams)
  47243. return outparams.n
  47244. def pdf_annot_MK_BG_outparams_fn(annot, color):
  47245. """
  47246. Class-aware helper for out-params of pdf_annot_MK_BG() [pdf_annot_MK_BG()].
  47247. """
  47248. n = ll_pdf_annot_MK_BG(annot.m_internal, color)
  47249. return n
  47250. pdf_annot_MK_BG = pdf_annot_MK_BG_outparams_fn
  47251. def ll_pdf_annot_callout_line(annot, callout):
  47252. """
  47253. Wrapper for out-params of pdf_annot_callout_line().
  47254. Returns: int n
  47255. """
  47256. outparams = ll_pdf_annot_callout_line_outparams()
  47257. ret = ll_pdf_annot_callout_line_outparams_fn(annot, callout, outparams)
  47258. return outparams.n
  47259. def pdf_annot_callout_line_outparams_fn(annot, callout):
  47260. """
  47261. Class-aware helper for out-params of pdf_annot_callout_line() [pdf_annot_callout_line()].
  47262. """
  47263. n = ll_pdf_annot_callout_line(annot.m_internal, callout)
  47264. return n
  47265. pdf_annot_callout_line = pdf_annot_callout_line_outparams_fn
  47266. def ll_pdf_annot_color(annot, color):
  47267. """
  47268. Wrapper for out-params of pdf_annot_color().
  47269. Returns: int n
  47270. """
  47271. outparams = ll_pdf_annot_color_outparams()
  47272. ret = ll_pdf_annot_color_outparams_fn(annot, color, outparams)
  47273. return outparams.n
  47274. def pdf_annot_color_outparams_fn(annot, color):
  47275. """
  47276. Class-aware helper for out-params of pdf_annot_color() [pdf_annot_color()].
  47277. """
  47278. n = ll_pdf_annot_color(annot.m_internal, color)
  47279. return n
  47280. pdf_annot_color = pdf_annot_color_outparams_fn
  47281. def ll_pdf_annot_default_appearance(annot, color):
  47282. """
  47283. Wrapper for out-params of pdf_annot_default_appearance().
  47284. Returns: const char *font, float size, int n
  47285. """
  47286. outparams = ll_pdf_annot_default_appearance_outparams()
  47287. ret = ll_pdf_annot_default_appearance_outparams_fn(annot, color, outparams)
  47288. return outparams.font, outparams.size, outparams.n
  47289. def pdf_annot_default_appearance_outparams_fn(annot, color):
  47290. """
  47291. Class-aware helper for out-params of pdf_annot_default_appearance() [pdf_annot_default_appearance()].
  47292. """
  47293. font, size, n = ll_pdf_annot_default_appearance(annot.m_internal, color)
  47294. return font, size, n
  47295. pdf_annot_default_appearance = pdf_annot_default_appearance_outparams_fn
  47296. def ll_pdf_annot_default_appearance_unmapped(annot, font_name, font_name_len, color):
  47297. """
  47298. Wrapper for out-params of pdf_annot_default_appearance_unmapped().
  47299. Returns: float size, int n
  47300. """
  47301. outparams = ll_pdf_annot_default_appearance_unmapped_outparams()
  47302. ret = ll_pdf_annot_default_appearance_unmapped_outparams_fn(annot, font_name, font_name_len, color, outparams)
  47303. return outparams.size, outparams.n
  47304. def pdf_annot_default_appearance_unmapped_outparams_fn(annot, font_name, font_name_len, color):
  47305. """
  47306. Class-aware helper for out-params of pdf_annot_default_appearance_unmapped() [pdf_annot_default_appearance_unmapped()].
  47307. """
  47308. size, n = ll_pdf_annot_default_appearance_unmapped(annot.m_internal, font_name, font_name_len, color)
  47309. return size, n
  47310. pdf_annot_default_appearance_unmapped = pdf_annot_default_appearance_unmapped_outparams_fn
  47311. def ll_pdf_annot_interior_color(annot, color):
  47312. """
  47313. Wrapper for out-params of pdf_annot_interior_color().
  47314. Returns: int n
  47315. """
  47316. outparams = ll_pdf_annot_interior_color_outparams()
  47317. ret = ll_pdf_annot_interior_color_outparams_fn(annot, color, outparams)
  47318. return outparams.n
  47319. def pdf_annot_interior_color_outparams_fn(annot, color):
  47320. """
  47321. Class-aware helper for out-params of pdf_annot_interior_color() [pdf_annot_interior_color()].
  47322. """
  47323. n = ll_pdf_annot_interior_color(annot.m_internal, color)
  47324. return n
  47325. pdf_annot_interior_color = pdf_annot_interior_color_outparams_fn
  47326. def ll_pdf_annot_line_ending_styles(annot):
  47327. """
  47328. Wrapper for out-params of pdf_annot_line_ending_styles().
  47329. Returns: enum pdf_line_ending start_style, enum pdf_line_ending end_style
  47330. """
  47331. outparams = ll_pdf_annot_line_ending_styles_outparams()
  47332. ret = ll_pdf_annot_line_ending_styles_outparams_fn(annot, outparams)
  47333. return outparams.start_style, outparams.end_style
  47334. def pdf_annot_line_ending_styles_outparams_fn(annot):
  47335. """
  47336. Class-aware helper for out-params of pdf_annot_line_ending_styles() [pdf_annot_line_ending_styles()].
  47337. """
  47338. start_style, end_style = ll_pdf_annot_line_ending_styles(annot.m_internal)
  47339. return start_style, end_style
  47340. pdf_annot_line_ending_styles = pdf_annot_line_ending_styles_outparams_fn
  47341. def ll_pdf_array_get_string(array, index):
  47342. """
  47343. Wrapper for out-params of pdf_array_get_string().
  47344. Returns: const char *, size_t sizep
  47345. """
  47346. outparams = ll_pdf_array_get_string_outparams()
  47347. ret = ll_pdf_array_get_string_outparams_fn(array, index, outparams)
  47348. return ret, outparams.sizep
  47349. def pdf_array_get_string_outparams_fn(array, index):
  47350. """
  47351. Class-aware helper for out-params of pdf_array_get_string() [pdf_array_get_string()].
  47352. """
  47353. ret, sizep = ll_pdf_array_get_string(array.m_internal, index)
  47354. return ret, sizep
  47355. pdf_array_get_string = pdf_array_get_string_outparams_fn
  47356. def ll_pdf_count_q_balance(doc, res, stm):
  47357. """
  47358. Wrapper for out-params of pdf_count_q_balance().
  47359. Returns: int prepend, int append
  47360. """
  47361. outparams = ll_pdf_count_q_balance_outparams()
  47362. ret = ll_pdf_count_q_balance_outparams_fn(doc, res, stm, outparams)
  47363. return outparams.prepend, outparams.append
  47364. def pdf_count_q_balance_outparams_fn(doc, res, stm):
  47365. """
  47366. Class-aware helper for out-params of pdf_count_q_balance() [pdf_count_q_balance()].
  47367. """
  47368. prepend, append = ll_pdf_count_q_balance(doc.m_internal, res.m_internal, stm.m_internal)
  47369. return prepend, append
  47370. pdf_count_q_balance = pdf_count_q_balance_outparams_fn
  47371. def ll_pdf_decode_cmap(cmap, s, e):
  47372. """
  47373. Wrapper for out-params of pdf_decode_cmap().
  47374. Returns: int, unsigned int cpt
  47375. """
  47376. outparams = ll_pdf_decode_cmap_outparams()
  47377. ret = ll_pdf_decode_cmap_outparams_fn(cmap, s, e, outparams)
  47378. return ret, outparams.cpt
  47379. def pdf_decode_cmap_outparams_fn(cmap, s, e):
  47380. """
  47381. Class-aware helper for out-params of pdf_decode_cmap() [pdf_decode_cmap()].
  47382. """
  47383. ret, cpt = ll_pdf_decode_cmap(cmap.m_internal, s, e)
  47384. return ret, cpt
  47385. pdf_decode_cmap = pdf_decode_cmap_outparams_fn
  47386. def ll_pdf_dict_get_inheritable_string(dict, key):
  47387. """
  47388. Wrapper for out-params of pdf_dict_get_inheritable_string().
  47389. Returns: const char *, size_t sizep
  47390. """
  47391. outparams = ll_pdf_dict_get_inheritable_string_outparams()
  47392. ret = ll_pdf_dict_get_inheritable_string_outparams_fn(dict, key, outparams)
  47393. return ret, outparams.sizep
  47394. def pdf_dict_get_inheritable_string_outparams_fn(dict, key):
  47395. """
  47396. Class-aware helper for out-params of pdf_dict_get_inheritable_string() [pdf_dict_get_inheritable_string()].
  47397. """
  47398. ret, sizep = ll_pdf_dict_get_inheritable_string(dict.m_internal, key.m_internal)
  47399. return ret, sizep
  47400. pdf_dict_get_inheritable_string = pdf_dict_get_inheritable_string_outparams_fn
  47401. def ll_pdf_dict_get_put_drop(dict, key, val):
  47402. """
  47403. Wrapper for out-params of pdf_dict_get_put_drop().
  47404. Returns: ::pdf_obj *old_val
  47405. """
  47406. outparams = ll_pdf_dict_get_put_drop_outparams()
  47407. ret = ll_pdf_dict_get_put_drop_outparams_fn(dict, key, val, outparams)
  47408. return outparams.old_val
  47409. def ll_pdf_dict_get_string(dict, key):
  47410. """
  47411. Wrapper for out-params of pdf_dict_get_string().
  47412. Returns: const char *, size_t sizep
  47413. """
  47414. outparams = ll_pdf_dict_get_string_outparams()
  47415. ret = ll_pdf_dict_get_string_outparams_fn(dict, key, outparams)
  47416. return ret, outparams.sizep
  47417. def pdf_dict_get_string_outparams_fn(dict, key):
  47418. """
  47419. Class-aware helper for out-params of pdf_dict_get_string() [pdf_dict_get_string()].
  47420. """
  47421. ret, sizep = ll_pdf_dict_get_string(dict.m_internal, key.m_internal)
  47422. return ret, sizep
  47423. pdf_dict_get_string = pdf_dict_get_string_outparams_fn
  47424. def ll_pdf_edit_text_field_value(widget, value, change):
  47425. """
  47426. Wrapper for out-params of pdf_edit_text_field_value().
  47427. Returns: int, int selStart, int selEnd, char *newvalue
  47428. """
  47429. outparams = ll_pdf_edit_text_field_value_outparams()
  47430. ret = ll_pdf_edit_text_field_value_outparams_fn(widget, value, change, outparams)
  47431. return ret, outparams.selStart, outparams.selEnd, outparams.newvalue
  47432. def pdf_edit_text_field_value_outparams_fn(widget, value, change):
  47433. """
  47434. Class-aware helper for out-params of pdf_edit_text_field_value() [pdf_edit_text_field_value()].
  47435. """
  47436. ret, selStart, selEnd, newvalue = ll_pdf_edit_text_field_value(widget.m_internal, value, change)
  47437. return ret, selStart, selEnd, newvalue
  47438. pdf_edit_text_field_value = pdf_edit_text_field_value_outparams_fn
  47439. def ll_pdf_eval_function(func, in_, inlen, outlen):
  47440. """
  47441. Wrapper for out-params of pdf_eval_function().
  47442. Returns: float out
  47443. """
  47444. outparams = ll_pdf_eval_function_outparams()
  47445. ret = ll_pdf_eval_function_outparams_fn(func, in_, inlen, outlen, outparams)
  47446. return outparams.out
  47447. def pdf_eval_function_outparams_fn(func, in_, inlen, outlen):
  47448. """
  47449. Class-aware helper for out-params of pdf_eval_function() [pdf_eval_function()].
  47450. """
  47451. out = ll_pdf_eval_function(func.m_internal, in_, inlen, outlen)
  47452. return out
  47453. pdf_eval_function = pdf_eval_function_outparams_fn
  47454. def ll_pdf_field_event_validate(doc, field, value):
  47455. """
  47456. Wrapper for out-params of pdf_field_event_validate().
  47457. Returns: int, char *newvalue
  47458. """
  47459. outparams = ll_pdf_field_event_validate_outparams()
  47460. ret = ll_pdf_field_event_validate_outparams_fn(doc, field, value, outparams)
  47461. return ret, outparams.newvalue
  47462. def pdf_field_event_validate_outparams_fn(doc, field, value):
  47463. """
  47464. Class-aware helper for out-params of pdf_field_event_validate() [pdf_field_event_validate()].
  47465. """
  47466. ret, newvalue = ll_pdf_field_event_validate(doc.m_internal, field.m_internal, value)
  47467. return ret, newvalue
  47468. pdf_field_event_validate = pdf_field_event_validate_outparams_fn
  47469. def ll_pdf_js_event_result_validate(js):
  47470. """
  47471. Wrapper for out-params of pdf_js_event_result_validate().
  47472. Returns: int, char *newvalue
  47473. """
  47474. outparams = ll_pdf_js_event_result_validate_outparams()
  47475. ret = ll_pdf_js_event_result_validate_outparams_fn(js, outparams)
  47476. return ret, outparams.newvalue
  47477. def pdf_js_event_result_validate_outparams_fn(js):
  47478. """
  47479. Class-aware helper for out-params of pdf_js_event_result_validate() [pdf_js_event_result_validate()].
  47480. """
  47481. ret, newvalue = ll_pdf_js_event_result_validate(js.m_internal)
  47482. return ret, newvalue
  47483. pdf_js_event_result_validate = pdf_js_event_result_validate_outparams_fn
  47484. def ll_pdf_js_execute(js, name, code):
  47485. """
  47486. Wrapper for out-params of pdf_js_execute().
  47487. Returns: char *result
  47488. """
  47489. outparams = ll_pdf_js_execute_outparams()
  47490. ret = ll_pdf_js_execute_outparams_fn(js, name, code, outparams)
  47491. return outparams.result
  47492. def pdf_js_execute_outparams_fn(js, name, code):
  47493. """
  47494. Class-aware helper for out-params of pdf_js_execute() [pdf_js_execute()].
  47495. """
  47496. result = ll_pdf_js_execute(js.m_internal, name, code)
  47497. return result
  47498. pdf_js_execute = pdf_js_execute_outparams_fn
  47499. def ll_pdf_load_encoding(encoding):
  47500. """
  47501. Wrapper for out-params of pdf_load_encoding().
  47502. Returns: const char *estrings
  47503. """
  47504. outparams = ll_pdf_load_encoding_outparams()
  47505. ret = ll_pdf_load_encoding_outparams_fn(encoding, outparams)
  47506. return outparams.estrings
  47507. def pdf_load_encoding_outparams_fn(encoding):
  47508. """
  47509. Class-aware helper for out-params of pdf_load_encoding() [pdf_load_encoding()].
  47510. """
  47511. estrings = ll_pdf_load_encoding(encoding)
  47512. return estrings
  47513. pdf_load_encoding = pdf_load_encoding_outparams_fn
  47514. def ll_pdf_load_to_unicode(doc, font, collection, cmapstm):
  47515. """
  47516. Wrapper for out-params of pdf_load_to_unicode().
  47517. Returns: const char *strings
  47518. """
  47519. outparams = ll_pdf_load_to_unicode_outparams()
  47520. ret = ll_pdf_load_to_unicode_outparams_fn(doc, font, collection, cmapstm, outparams)
  47521. return outparams.strings
  47522. def pdf_load_to_unicode_outparams_fn(doc, font, collection, cmapstm):
  47523. """
  47524. Class-aware helper for out-params of pdf_load_to_unicode() [pdf_load_to_unicode()].
  47525. """
  47526. strings = ll_pdf_load_to_unicode(doc.m_internal, font.m_internal, collection, cmapstm.m_internal)
  47527. return strings
  47528. pdf_load_to_unicode = pdf_load_to_unicode_outparams_fn
  47529. def ll_pdf_lookup_cmap_full(cmap, cpt):
  47530. """
  47531. Wrapper for out-params of pdf_lookup_cmap_full().
  47532. Returns: int, int out
  47533. """
  47534. outparams = ll_pdf_lookup_cmap_full_outparams()
  47535. ret = ll_pdf_lookup_cmap_full_outparams_fn(cmap, cpt, outparams)
  47536. return ret, outparams.out
  47537. def pdf_lookup_cmap_full_outparams_fn(cmap, cpt):
  47538. """
  47539. Class-aware helper for out-params of pdf_lookup_cmap_full() [pdf_lookup_cmap_full()].
  47540. """
  47541. ret, out = ll_pdf_lookup_cmap_full(cmap.m_internal, cpt)
  47542. return ret, out
  47543. pdf_lookup_cmap_full = pdf_lookup_cmap_full_outparams_fn
  47544. def ll_pdf_lookup_page_loc(doc, needle):
  47545. """
  47546. Wrapper for out-params of pdf_lookup_page_loc().
  47547. Returns: pdf_obj *, ::pdf_obj *parentp, int indexp
  47548. """
  47549. outparams = ll_pdf_lookup_page_loc_outparams()
  47550. ret = ll_pdf_lookup_page_loc_outparams_fn(doc, needle, outparams)
  47551. return ret, outparams.parentp, outparams.indexp
  47552. def pdf_lookup_page_loc_outparams_fn(doc, needle):
  47553. """
  47554. Class-aware helper for out-params of pdf_lookup_page_loc() [pdf_lookup_page_loc()].
  47555. """
  47556. ret, parentp, indexp = ll_pdf_lookup_page_loc(doc.m_internal, needle)
  47557. return PdfObj( ll_pdf_keep_obj( ret)), PdfObj(ll_pdf_keep_obj( parentp)), indexp
  47558. pdf_lookup_page_loc = pdf_lookup_page_loc_outparams_fn
  47559. def ll_pdf_lookup_substitute_font(mono, serif, bold, italic):
  47560. """
  47561. Wrapper for out-params of pdf_lookup_substitute_font().
  47562. Returns: const unsigned char *, int len
  47563. """
  47564. outparams = ll_pdf_lookup_substitute_font_outparams()
  47565. ret = ll_pdf_lookup_substitute_font_outparams_fn(mono, serif, bold, italic, outparams)
  47566. return ret, outparams.len
  47567. def pdf_lookup_substitute_font_outparams_fn(mono, serif, bold, italic):
  47568. """
  47569. Class-aware helper for out-params of pdf_lookup_substitute_font() [pdf_lookup_substitute_font()].
  47570. """
  47571. ret, len = ll_pdf_lookup_substitute_font(mono, serif, bold, italic)
  47572. return ret, len
  47573. pdf_lookup_substitute_font = pdf_lookup_substitute_font_outparams_fn
  47574. def ll_pdf_map_one_to_many(cmap, one, len):
  47575. """
  47576. Wrapper for out-params of pdf_map_one_to_many().
  47577. Returns: int many
  47578. """
  47579. outparams = ll_pdf_map_one_to_many_outparams()
  47580. ret = ll_pdf_map_one_to_many_outparams_fn(cmap, one, len, outparams)
  47581. return outparams.many
  47582. def pdf_map_one_to_many_outparams_fn(cmap, one, len):
  47583. """
  47584. Class-aware helper for out-params of pdf_map_one_to_many() [pdf_map_one_to_many()].
  47585. """
  47586. many = ll_pdf_map_one_to_many(cmap.m_internal, one, len)
  47587. return many
  47588. pdf_map_one_to_many = pdf_map_one_to_many_outparams_fn
  47589. def ll_pdf_obj_memo(obj, bit):
  47590. """
  47591. Wrapper for out-params of pdf_obj_memo().
  47592. Returns: int, int memo
  47593. """
  47594. outparams = ll_pdf_obj_memo_outparams()
  47595. ret = ll_pdf_obj_memo_outparams_fn(obj, bit, outparams)
  47596. return ret, outparams.memo
  47597. def pdf_obj_memo_outparams_fn(obj, bit):
  47598. """
  47599. Class-aware helper for out-params of pdf_obj_memo() [pdf_obj_memo()].
  47600. """
  47601. ret, memo = ll_pdf_obj_memo(obj.m_internal, bit)
  47602. return ret, memo
  47603. pdf_obj_memo = pdf_obj_memo_outparams_fn
  47604. def ll_pdf_page_presentation(page, transition):
  47605. """
  47606. Wrapper for out-params of pdf_page_presentation().
  47607. Returns: fz_transition *, float duration
  47608. """
  47609. outparams = ll_pdf_page_presentation_outparams()
  47610. ret = ll_pdf_page_presentation_outparams_fn(page, transition, outparams)
  47611. return ret, outparams.duration
  47612. def pdf_page_presentation_outparams_fn(page, transition):
  47613. """
  47614. Class-aware helper for out-params of pdf_page_presentation() [pdf_page_presentation()].
  47615. """
  47616. ret, duration = ll_pdf_page_presentation(page.m_internal, transition.internal())
  47617. return FzTransition(ret), duration
  47618. pdf_page_presentation = pdf_page_presentation_outparams_fn
  47619. def ll_pdf_page_write(doc, mediabox):
  47620. """
  47621. Wrapper for out-params of pdf_page_write().
  47622. Returns: fz_device *, ::pdf_obj *presources, ::fz_buffer *pcontents
  47623. """
  47624. outparams = ll_pdf_page_write_outparams()
  47625. ret = ll_pdf_page_write_outparams_fn(doc, mediabox, outparams)
  47626. return ret, outparams.presources, outparams.pcontents
  47627. def pdf_page_write_outparams_fn(doc, mediabox):
  47628. """
  47629. Class-aware helper for out-params of pdf_page_write() [pdf_page_write()].
  47630. """
  47631. ret, presources, pcontents = ll_pdf_page_write(doc.m_internal, mediabox.internal())
  47632. return FzDevice(ret), PdfObj( presources), FzBuffer( pcontents)
  47633. pdf_page_write = pdf_page_write_outparams_fn
  47634. def ll_pdf_parse_default_appearance(da, color):
  47635. """
  47636. Wrapper for out-params of pdf_parse_default_appearance().
  47637. Returns: const char *font, float size, int n
  47638. """
  47639. outparams = ll_pdf_parse_default_appearance_outparams()
  47640. ret = ll_pdf_parse_default_appearance_outparams_fn(da, color, outparams)
  47641. return outparams.font, outparams.size, outparams.n
  47642. def pdf_parse_default_appearance_outparams_fn(da, color):
  47643. """
  47644. Class-aware helper for out-params of pdf_parse_default_appearance() [pdf_parse_default_appearance()].
  47645. """
  47646. font, size, n = ll_pdf_parse_default_appearance(da, color)
  47647. return font, size, n
  47648. pdf_parse_default_appearance = pdf_parse_default_appearance_outparams_fn
  47649. def ll_pdf_parse_default_appearance_unmapped(da, font_name, font_name_len, color):
  47650. """
  47651. Wrapper for out-params of pdf_parse_default_appearance_unmapped().
  47652. Returns: float size, int n
  47653. """
  47654. outparams = ll_pdf_parse_default_appearance_unmapped_outparams()
  47655. ret = ll_pdf_parse_default_appearance_unmapped_outparams_fn(da, font_name, font_name_len, color, outparams)
  47656. return outparams.size, outparams.n
  47657. def pdf_parse_default_appearance_unmapped_outparams_fn(da, font_name, font_name_len, color):
  47658. """
  47659. Class-aware helper for out-params of pdf_parse_default_appearance_unmapped() [pdf_parse_default_appearance_unmapped()].
  47660. """
  47661. size, n = ll_pdf_parse_default_appearance_unmapped(da, font_name, font_name_len, color)
  47662. return size, n
  47663. pdf_parse_default_appearance_unmapped = pdf_parse_default_appearance_unmapped_outparams_fn
  47664. def ll_pdf_parse_ind_obj(doc, f):
  47665. """
  47666. Wrapper for out-params of pdf_parse_ind_obj().
  47667. Returns: pdf_obj *, int num, int gen, int64_t stm_ofs, int try_repair
  47668. """
  47669. outparams = ll_pdf_parse_ind_obj_outparams()
  47670. ret = ll_pdf_parse_ind_obj_outparams_fn(doc, f, outparams)
  47671. return ret, outparams.num, outparams.gen, outparams.stm_ofs, outparams.try_repair
  47672. def pdf_parse_ind_obj_outparams_fn(doc, f):
  47673. """
  47674. Class-aware helper for out-params of pdf_parse_ind_obj() [pdf_parse_ind_obj()].
  47675. """
  47676. ret, num, gen, stm_ofs, try_repair = ll_pdf_parse_ind_obj(doc.m_internal, f.m_internal)
  47677. return PdfObj(ret), num, gen, stm_ofs, try_repair
  47678. pdf_parse_ind_obj = pdf_parse_ind_obj_outparams_fn
  47679. def ll_pdf_parse_journal_obj(doc, stm):
  47680. """
  47681. Wrapper for out-params of pdf_parse_journal_obj().
  47682. Returns: pdf_obj *, int onum, ::fz_buffer *ostm, int newobj
  47683. """
  47684. outparams = ll_pdf_parse_journal_obj_outparams()
  47685. ret = ll_pdf_parse_journal_obj_outparams_fn(doc, stm, outparams)
  47686. return ret, outparams.onum, outparams.ostm, outparams.newobj
  47687. def pdf_parse_journal_obj_outparams_fn(doc, stm):
  47688. """
  47689. Class-aware helper for out-params of pdf_parse_journal_obj() [pdf_parse_journal_obj()].
  47690. """
  47691. ret, onum, ostm, newobj = ll_pdf_parse_journal_obj(doc.m_internal, stm.m_internal)
  47692. return PdfObj(ret), onum, FzBuffer( ostm), newobj
  47693. pdf_parse_journal_obj = pdf_parse_journal_obj_outparams_fn
  47694. def ll_pdf_print_encrypted_obj(out, obj, tight, ascii, crypt, num, gen):
  47695. """
  47696. Wrapper for out-params of pdf_print_encrypted_obj().
  47697. Returns: int sep
  47698. """
  47699. outparams = ll_pdf_print_encrypted_obj_outparams()
  47700. ret = ll_pdf_print_encrypted_obj_outparams_fn(out, obj, tight, ascii, crypt, num, gen, outparams)
  47701. return outparams.sep
  47702. def pdf_print_encrypted_obj_outparams_fn(out, obj, tight, ascii, crypt, num, gen):
  47703. """
  47704. Class-aware helper for out-params of pdf_print_encrypted_obj() [pdf_print_encrypted_obj()].
  47705. """
  47706. sep = ll_pdf_print_encrypted_obj(out.m_internal, obj.m_internal, tight, ascii, crypt.m_internal, num, gen)
  47707. return sep
  47708. pdf_print_encrypted_obj = pdf_print_encrypted_obj_outparams_fn
  47709. def ll_pdf_process_contents(proc, doc, res, stm, cookie):
  47710. """
  47711. Wrapper for out-params of pdf_process_contents().
  47712. Returns: ::pdf_obj *out_res
  47713. """
  47714. outparams = ll_pdf_process_contents_outparams()
  47715. ret = ll_pdf_process_contents_outparams_fn(proc, doc, res, stm, cookie, outparams)
  47716. return outparams.out_res
  47717. def pdf_process_contents_outparams_fn(proc, doc, res, stm, cookie):
  47718. """
  47719. Class-aware helper for out-params of pdf_process_contents() [pdf_process_contents()].
  47720. """
  47721. out_res = ll_pdf_process_contents(proc.m_internal, doc.m_internal, res.m_internal, stm.m_internal, cookie.m_internal)
  47722. return PdfObj(ll_pdf_keep_obj( out_res))
  47723. pdf_process_contents = pdf_process_contents_outparams_fn
  47724. def ll_pdf_repair_obj(doc, buf):
  47725. """
  47726. Wrapper for out-params of pdf_repair_obj().
  47727. Returns: int, int64_t stmofsp, int64_t stmlenp, ::pdf_obj *encrypt, ::pdf_obj *id, ::pdf_obj *page, int64_t tmpofs, ::pdf_obj *root
  47728. """
  47729. outparams = ll_pdf_repair_obj_outparams()
  47730. ret = ll_pdf_repair_obj_outparams_fn(doc, buf, outparams)
  47731. return ret, outparams.stmofsp, outparams.stmlenp, outparams.encrypt, outparams.id, outparams.page, outparams.tmpofs, outparams.root
  47732. def pdf_repair_obj_outparams_fn(doc, buf):
  47733. """
  47734. Class-aware helper for out-params of pdf_repair_obj() [pdf_repair_obj()].
  47735. """
  47736. ret, stmofsp, stmlenp, encrypt, id, page, tmpofs, root = ll_pdf_repair_obj(doc.m_internal, buf.m_internal)
  47737. return ret, stmofsp, stmlenp, PdfObj(ll_pdf_keep_obj( encrypt)), PdfObj(ll_pdf_keep_obj( id)), PdfObj(ll_pdf_keep_obj( page)), tmpofs, PdfObj(ll_pdf_keep_obj( root))
  47738. pdf_repair_obj = pdf_repair_obj_outparams_fn
  47739. def ll_pdf_resolve_link(doc, uri):
  47740. """
  47741. Wrapper for out-params of pdf_resolve_link().
  47742. Returns: int, float xp, float yp
  47743. """
  47744. outparams = ll_pdf_resolve_link_outparams()
  47745. ret = ll_pdf_resolve_link_outparams_fn(doc, uri, outparams)
  47746. return ret, outparams.xp, outparams.yp
  47747. def pdf_resolve_link_outparams_fn(doc, uri):
  47748. """
  47749. Class-aware helper for out-params of pdf_resolve_link() [pdf_resolve_link()].
  47750. """
  47751. ret, xp, yp = ll_pdf_resolve_link(doc.m_internal, uri)
  47752. return ret, xp, yp
  47753. pdf_resolve_link = pdf_resolve_link_outparams_fn
  47754. def ll_pdf_sample_shade_function(n, funcs, t0, t1):
  47755. """
  47756. Wrapper for out-params of pdf_sample_shade_function().
  47757. Returns: float samples, ::pdf_function *func
  47758. """
  47759. outparams = ll_pdf_sample_shade_function_outparams()
  47760. ret = ll_pdf_sample_shade_function_outparams_fn(n, funcs, t0, t1, outparams)
  47761. return outparams.samples, outparams.func
  47762. def pdf_sample_shade_function_outparams_fn(n, funcs, t0, t1):
  47763. """
  47764. Class-aware helper for out-params of pdf_sample_shade_function() [pdf_sample_shade_function()].
  47765. """
  47766. samples, func = ll_pdf_sample_shade_function(n, funcs, t0, t1)
  47767. return samples, PdfFunction(ll_pdf_keep_function( func))
  47768. pdf_sample_shade_function = pdf_sample_shade_function_outparams_fn
  47769. def ll_pdf_signature_contents(doc, signature):
  47770. """
  47771. Wrapper for out-params of pdf_signature_contents().
  47772. Returns: size_t, char *contents
  47773. """
  47774. outparams = ll_pdf_signature_contents_outparams()
  47775. ret = ll_pdf_signature_contents_outparams_fn(doc, signature, outparams)
  47776. return ret, outparams.contents
  47777. def pdf_signature_contents_outparams_fn(doc, signature):
  47778. """
  47779. Class-aware helper for out-params of pdf_signature_contents() [pdf_signature_contents()].
  47780. """
  47781. ret, contents = ll_pdf_signature_contents(doc.m_internal, signature.m_internal)
  47782. return ret, contents
  47783. pdf_signature_contents = pdf_signature_contents_outparams_fn
  47784. def ll_pdf_sprint_obj(buf, cap, obj, tight, ascii):
  47785. """
  47786. Wrapper for out-params of pdf_sprint_obj().
  47787. Returns: char *, size_t len
  47788. """
  47789. outparams = ll_pdf_sprint_obj_outparams()
  47790. ret = ll_pdf_sprint_obj_outparams_fn(buf, cap, obj, tight, ascii, outparams)
  47791. return ret, outparams.len
  47792. def pdf_sprint_obj_outparams_fn(buf, cap, obj, tight, ascii):
  47793. """
  47794. Class-aware helper for out-params of pdf_sprint_obj() [pdf_sprint_obj()].
  47795. """
  47796. ret, len = ll_pdf_sprint_obj(buf, cap, obj.m_internal, tight, ascii)
  47797. return ret, len
  47798. pdf_sprint_obj = pdf_sprint_obj_outparams_fn
  47799. def ll_pdf_to_string(obj):
  47800. """
  47801. Wrapper for out-params of pdf_to_string().
  47802. Returns: const char *, size_t sizep
  47803. """
  47804. outparams = ll_pdf_to_string_outparams()
  47805. ret = ll_pdf_to_string_outparams_fn(obj, outparams)
  47806. return ret, outparams.sizep
  47807. def pdf_to_string_outparams_fn(obj):
  47808. """
  47809. Class-aware helper for out-params of pdf_to_string() [pdf_to_string()].
  47810. """
  47811. ret, sizep = ll_pdf_to_string(obj.m_internal)
  47812. return ret, sizep
  47813. pdf_to_string = pdf_to_string_outparams_fn
  47814. def ll_pdf_tos_make_trm(tos, text, fontdesc, cid, trm):
  47815. """
  47816. Wrapper for out-params of pdf_tos_make_trm().
  47817. Returns: int, float adv
  47818. """
  47819. outparams = ll_pdf_tos_make_trm_outparams()
  47820. ret = ll_pdf_tos_make_trm_outparams_fn(tos, text, fontdesc, cid, trm, outparams)
  47821. return ret, outparams.adv
  47822. def pdf_tos_make_trm_outparams_fn(tos, text, fontdesc, cid, trm):
  47823. """
  47824. Class-aware helper for out-params of pdf_tos_make_trm() [pdf_tos_make_trm()].
  47825. """
  47826. ret, adv = ll_pdf_tos_make_trm(tos.m_internal, text.m_internal, fontdesc.m_internal, cid, trm.internal())
  47827. return ret, adv
  47828. pdf_tos_make_trm = pdf_tos_make_trm_outparams_fn
  47829. def ll_pdf_undoredo_state(doc):
  47830. """
  47831. Wrapper for out-params of pdf_undoredo_state().
  47832. Returns: int, int steps
  47833. """
  47834. outparams = ll_pdf_undoredo_state_outparams()
  47835. ret = ll_pdf_undoredo_state_outparams_fn(doc, outparams)
  47836. return ret, outparams.steps
  47837. def pdf_undoredo_state_outparams_fn(doc):
  47838. """
  47839. Class-aware helper for out-params of pdf_undoredo_state() [pdf_undoredo_state()].
  47840. """
  47841. ret, steps = ll_pdf_undoredo_state(doc.m_internal)
  47842. return ret, steps
  47843. pdf_undoredo_state = pdf_undoredo_state_outparams_fn
  47844. def ll_pdf_walk_tree(tree, kid_name, arrive, leave, arg):
  47845. """
  47846. Wrapper for out-params of pdf_walk_tree().
  47847. Returns: ::pdf_obj *names, ::pdf_obj *values
  47848. """
  47849. outparams = ll_pdf_walk_tree_outparams()
  47850. ret = ll_pdf_walk_tree_outparams_fn(tree, kid_name, arrive, leave, arg, outparams)
  47851. return outparams.names, outparams.values
  47852. def pdf_walk_tree_outparams_fn(tree, kid_name, arrive, leave, arg):
  47853. """
  47854. Class-aware helper for out-params of pdf_walk_tree() [pdf_walk_tree()].
  47855. """
  47856. names, values = ll_pdf_walk_tree(tree.m_internal, kid_name.m_internal, arrive, leave, arg)
  47857. return PdfObj(ll_pdf_keep_obj( names)), PdfObj(ll_pdf_keep_obj( values))
  47858. pdf_walk_tree = pdf_walk_tree_outparams_fn
  47859. def ll_pdf_zugferd_profile(doc):
  47860. """
  47861. Wrapper for out-params of pdf_zugferd_profile().
  47862. Returns: enum pdf_zugferd_profile, float version
  47863. """
  47864. outparams = ll_pdf_zugferd_profile_outparams()
  47865. ret = ll_pdf_zugferd_profile_outparams_fn(doc, outparams)
  47866. return ret, outparams.version
  47867. def pdf_zugferd_profile_outparams_fn(doc):
  47868. """
  47869. Class-aware helper for out-params of pdf_zugferd_profile() [pdf_zugferd_profile()].
  47870. """
  47871. ret, version = ll_pdf_zugferd_profile(doc.m_internal)
  47872. return ret, version
  47873. pdf_zugferd_profile = pdf_zugferd_profile_outparams_fn
  47874. def FzBitmap_fz_bitmap_details_outparams_fn( self):
  47875. """
  47876. Helper for out-params of class method fz_bitmap::ll_fz_bitmap_details() [fz_bitmap_details()].
  47877. """
  47878. w, h, n, stride = ll_fz_bitmap_details( self.m_internal)
  47879. return w, h, n, stride
  47880. FzBitmap.fz_bitmap_details = FzBitmap_fz_bitmap_details_outparams_fn
  47881. def FzBuffer_fz_buffer_extract_outparams_fn( self):
  47882. """
  47883. Helper for out-params of class method fz_buffer::ll_fz_buffer_extract() [fz_buffer_extract()].
  47884. """
  47885. ret, data = ll_fz_buffer_extract( self.m_internal)
  47886. return ret, data
  47887. FzBuffer.fz_buffer_extract = FzBuffer_fz_buffer_extract_outparams_fn
  47888. def FzBuffer_fz_buffer_storage_outparams_fn( self):
  47889. """
  47890. Helper for out-params of class method fz_buffer::ll_fz_buffer_storage() [fz_buffer_storage()].
  47891. """
  47892. ret, datap = ll_fz_buffer_storage( self.m_internal)
  47893. return ret, datap
  47894. FzBuffer.fz_buffer_storage = FzBuffer_fz_buffer_storage_outparams_fn
  47895. def FzBuffer_fz_new_display_list_from_svg_outparams_fn( self, base_uri, dir):
  47896. """
  47897. Helper for out-params of class method fz_buffer::ll_fz_new_display_list_from_svg() [fz_new_display_list_from_svg()].
  47898. """
  47899. ret, w, h = ll_fz_new_display_list_from_svg( self.m_internal, base_uri, dir.m_internal)
  47900. return FzDisplayList(ret), w, h
  47901. FzBuffer.fz_new_display_list_from_svg = FzBuffer_fz_new_display_list_from_svg_outparams_fn
  47902. def FzBuffer_fz_subset_cff_for_gids_outparams_fn( self, num_gids, symbolic, cidfont):
  47903. """
  47904. Helper for out-params of class method fz_buffer::ll_fz_subset_cff_for_gids() [fz_subset_cff_for_gids()].
  47905. """
  47906. ret, gids = ll_fz_subset_cff_for_gids( self.m_internal, num_gids, symbolic, cidfont)
  47907. return FzBuffer( ll_fz_keep_buffer( ret)), gids
  47908. FzBuffer.fz_subset_cff_for_gids = FzBuffer_fz_subset_cff_for_gids_outparams_fn
  47909. def FzBuffer_fz_subset_ttf_for_gids_outparams_fn( self, num_gids, symbolic, cidfont):
  47910. """
  47911. Helper for out-params of class method fz_buffer::ll_fz_subset_ttf_for_gids() [fz_subset_ttf_for_gids()].
  47912. """
  47913. ret, gids = ll_fz_subset_ttf_for_gids( self.m_internal, num_gids, symbolic, cidfont)
  47914. return FzBuffer( ll_fz_keep_buffer( ret)), gids
  47915. FzBuffer.fz_subset_ttf_for_gids = FzBuffer_fz_subset_ttf_for_gids_outparams_fn
  47916. def FzColorspace_fz_clamp_color_outparams_fn( self, in_):
  47917. """
  47918. Helper for out-params of class method fz_colorspace::ll_fz_clamp_color() [fz_clamp_color()].
  47919. """
  47920. out = ll_fz_clamp_color( self.m_internal, in_)
  47921. return out
  47922. FzColorspace.fz_clamp_color = FzColorspace_fz_clamp_color_outparams_fn
  47923. def FzColorspace_fz_convert_color_outparams_fn( self, sv, params):
  47924. """
  47925. Helper for out-params of class method fz_colorspace::ll_fz_convert_color() [fz_convert_color()].
  47926. """
  47927. dv = ll_fz_convert_color( self.m_internal, sv, params.internal())
  47928. return dv
  47929. FzColorspace.fz_convert_color = FzColorspace_fz_convert_color_outparams_fn
  47930. def FzColorspace_fz_convert_separation_colors_outparams_fn( self, src_color, dst_seps, color_params):
  47931. """
  47932. Helper for out-params of class method fz_colorspace::ll_fz_convert_separation_colors() [fz_convert_separation_colors()].
  47933. """
  47934. dst_color = ll_fz_convert_separation_colors( self.m_internal, src_color, dst_seps.m_internal, color_params.internal())
  47935. return dst_color
  47936. FzColorspace.fz_convert_separation_colors = FzColorspace_fz_convert_separation_colors_outparams_fn
  47937. def FzCompressedBuffer_fz_open_image_decomp_stream_from_buffer_outparams_fn( self):
  47938. """
  47939. Helper for out-params of class method fz_compressed_buffer::ll_fz_open_image_decomp_stream_from_buffer() [fz_open_image_decomp_stream_from_buffer()].
  47940. """
  47941. ret, l2factor = ll_fz_open_image_decomp_stream_from_buffer( self.m_internal)
  47942. return FzStream(ret), l2factor
  47943. FzCompressedBuffer.fz_open_image_decomp_stream_from_buffer = FzCompressedBuffer_fz_open_image_decomp_stream_from_buffer_outparams_fn
  47944. def FzDisplayList_fz_search_display_list_outparams_fn( self, needle, hit_bbox, hit_max):
  47945. """
  47946. Helper for out-params of class method fz_display_list::ll_fz_search_display_list() [fz_search_display_list()].
  47947. """
  47948. ret, hit_mark = ll_fz_search_display_list( self.m_internal, needle, hit_bbox.internal(), hit_max)
  47949. return ret, hit_mark
  47950. FzDisplayList.fz_search_display_list = FzDisplayList_fz_search_display_list_outparams_fn
  47951. def FzDocument_fz_resolve_link_outparams_fn( self, uri):
  47952. """
  47953. Helper for out-params of class method fz_document::ll_fz_resolve_link() [fz_resolve_link()].
  47954. """
  47955. ret, xp, yp = ll_fz_resolve_link( self.m_internal, uri)
  47956. return FzLocation(ret), xp, yp
  47957. FzDocument.fz_resolve_link = FzDocument_fz_resolve_link_outparams_fn
  47958. def FzDocument_fz_search_chapter_page_number_outparams_fn( self, chapter, page, needle, hit_bbox, hit_max):
  47959. """
  47960. Helper for out-params of class method fz_document::ll_fz_search_chapter_page_number() [fz_search_chapter_page_number()].
  47961. """
  47962. ret, hit_mark = ll_fz_search_chapter_page_number( self.m_internal, chapter, page, needle, hit_bbox.internal(), hit_max)
  47963. return ret, hit_mark
  47964. FzDocument.fz_search_chapter_page_number = FzDocument_fz_search_chapter_page_number_outparams_fn
  47965. def FzDocument_fz_search_page_number_outparams_fn( self, number, needle, hit_bbox, hit_max):
  47966. """
  47967. Helper for out-params of class method fz_document::ll_fz_search_page_number() [fz_search_page_number()].
  47968. """
  47969. ret, hit_mark = ll_fz_search_page_number( self.m_internal, number, needle, hit_bbox.internal(), hit_max)
  47970. return ret, hit_mark
  47971. FzDocument.fz_search_page_number = FzDocument_fz_search_page_number_outparams_fn
  47972. def FzFont_fz_encode_character_with_fallback_outparams_fn( self, unicode, script, language):
  47973. """
  47974. Helper for out-params of class method fz_font::ll_fz_encode_character_with_fallback() [fz_encode_character_with_fallback()].
  47975. """
  47976. ret, out_font = ll_fz_encode_character_with_fallback( self.m_internal, unicode, script, language)
  47977. return ret, FzFont(ll_fz_keep_font( out_font))
  47978. FzFont.fz_encode_character_with_fallback = FzFont_fz_encode_character_with_fallback_outparams_fn
  47979. def FzFunction_fz_eval_function_outparams_fn( self, in_, inlen, outlen):
  47980. """
  47981. Helper for out-params of class method fz_function::ll_fz_eval_function() [fz_eval_function()].
  47982. """
  47983. out = ll_fz_eval_function( self.m_internal, in_, inlen, outlen)
  47984. return out
  47985. FzFunction.fz_eval_function = FzFunction_fz_eval_function_outparams_fn
  47986. def FzImage_fz_get_pixmap_from_image_outparams_fn( self, subarea, ctm):
  47987. """
  47988. Helper for out-params of class method fz_image::ll_fz_get_pixmap_from_image() [fz_get_pixmap_from_image()].
  47989. """
  47990. ret, w, h = ll_fz_get_pixmap_from_image( self.m_internal, subarea.internal(), ctm.internal())
  47991. return FzPixmap(ret), w, h
  47992. FzImage.fz_get_pixmap_from_image = FzImage_fz_get_pixmap_from_image_outparams_fn
  47993. def FzImage_fz_image_resolution_outparams_fn( self):
  47994. """
  47995. Helper for out-params of class method fz_image::ll_fz_image_resolution() [fz_image_resolution()].
  47996. """
  47997. xres, yres = ll_fz_image_resolution( self.m_internal)
  47998. return xres, yres
  47999. FzImage.fz_image_resolution = FzImage_fz_image_resolution_outparams_fn
  48000. def FzOutput_fz_new_svg_device_with_id_outparams_fn( self, page_width, page_height, text_format, reuse_images):
  48001. """
  48002. Helper for out-params of class method fz_output::ll_fz_new_svg_device_with_id() [fz_new_svg_device_with_id()].
  48003. """
  48004. ret, id = ll_fz_new_svg_device_with_id( self.m_internal, page_width, page_height, text_format, reuse_images)
  48005. return FzDevice(ret), id
  48006. FzOutput.fz_new_svg_device_with_id = FzOutput_fz_new_svg_device_with_id_outparams_fn
  48007. def FzOutput_pdf_print_encrypted_obj_outparams_fn( self, obj, tight, ascii, crypt, num, gen):
  48008. """
  48009. Helper for out-params of class method fz_output::ll_pdf_print_encrypted_obj() [pdf_print_encrypted_obj()].
  48010. """
  48011. sep = ll_pdf_print_encrypted_obj( self.m_internal, obj.m_internal, tight, ascii, crypt.m_internal, num, gen)
  48012. return sep
  48013. FzOutput.pdf_print_encrypted_obj = FzOutput_pdf_print_encrypted_obj_outparams_fn
  48014. def FzPage_fz_page_presentation_outparams_fn( self, transition):
  48015. """
  48016. Helper for out-params of class method fz_page::ll_fz_page_presentation() [fz_page_presentation()].
  48017. """
  48018. ret, duration = ll_fz_page_presentation( self.m_internal, transition.internal())
  48019. return FzTransition(ret), duration
  48020. FzPage.fz_page_presentation = FzPage_fz_page_presentation_outparams_fn
  48021. def FzPage_fz_search_page_outparams_fn( self, needle, hit_bbox, hit_max):
  48022. """
  48023. Helper for out-params of class method fz_page::ll_fz_search_page() [fz_search_page()].
  48024. """
  48025. ret, hit_mark = ll_fz_search_page( self.m_internal, needle, hit_bbox.internal(), hit_max)
  48026. return ret, hit_mark
  48027. FzPage.fz_search_page = FzPage_fz_search_page_outparams_fn
  48028. def FzPixmap_fz_fill_pixmap_with_color_outparams_fn( self, colorspace, color_params):
  48029. """
  48030. Helper for out-params of class method fz_pixmap::ll_fz_fill_pixmap_with_color() [fz_fill_pixmap_with_color()].
  48031. """
  48032. color = ll_fz_fill_pixmap_with_color( self.m_internal, colorspace.m_internal, color_params.internal())
  48033. return color
  48034. FzPixmap.fz_fill_pixmap_with_color = FzPixmap_fz_fill_pixmap_with_color_outparams_fn
  48035. def FzPoolArray_fz_pool_array_append_outparams_fn( self):
  48036. """
  48037. Helper for out-params of class method fz_pool_array::ll_fz_pool_array_append() [fz_pool_array_append()].
  48038. """
  48039. ret, idx = ll_fz_pool_array_append( self.m_internal)
  48040. return ret, idx
  48041. FzPoolArray.fz_pool_array_append = FzPoolArray_fz_pool_array_append_outparams_fn
  48042. def FzSeparations_fz_separation_equivalent_outparams_fn( self, idx, dst_cs, prf, color_params):
  48043. """
  48044. Helper for out-params of class method fz_separations::ll_fz_separation_equivalent() [fz_separation_equivalent()].
  48045. """
  48046. dst_color = ll_fz_separation_equivalent( self.m_internal, idx, dst_cs.m_internal, prf.m_internal, color_params.internal())
  48047. return dst_color
  48048. FzSeparations.fz_separation_equivalent = FzSeparations_fz_separation_equivalent_outparams_fn
  48049. def FzShade_fz_paint_shade_outparams_fn( self, override_cs, ctm, dest, color_params, bbox, eop):
  48050. """
  48051. Helper for out-params of class method fz_shade::ll_fz_paint_shade() [fz_paint_shade()].
  48052. """
  48053. cache = ll_fz_paint_shade( self.m_internal, override_cs.m_internal, ctm.internal(), dest.m_internal, color_params.internal(), bbox.internal(), eop.m_internal)
  48054. return FzShadeColorCache(ll_fz_keep_shade_color_cache( cache))
  48055. FzShade.fz_paint_shade = FzShade_fz_paint_shade_outparams_fn
  48056. def FzStextPage_fz_search_stext_page_outparams_fn( self, needle, hit_bbox, hit_max):
  48057. """
  48058. Helper for out-params of class method fz_stext_page::ll_fz_search_stext_page() [fz_search_stext_page()].
  48059. """
  48060. ret, hit_mark = ll_fz_search_stext_page( self.m_internal, needle, hit_bbox.internal(), hit_max)
  48061. return ret, hit_mark
  48062. FzStextPage.fz_search_stext_page = FzStextPage_fz_search_stext_page_outparams_fn
  48063. def FzStream_fz_decomp_image_from_stream_outparams_fn( self, image, subarea, indexed, l2factor):
  48064. """
  48065. Helper for out-params of class method fz_stream::ll_fz_decomp_image_from_stream() [fz_decomp_image_from_stream()].
  48066. """
  48067. ret, l2extra = ll_fz_decomp_image_from_stream( self.m_internal, image.m_internal, subarea.internal(), indexed, l2factor)
  48068. return FzPixmap(ret), l2extra
  48069. FzStream.fz_decomp_image_from_stream = FzStream_fz_decomp_image_from_stream_outparams_fn
  48070. def FzStream_fz_open_image_decomp_stream_outparams_fn( self, arg_1):
  48071. """
  48072. Helper for out-params of class method fz_stream::ll_fz_open_image_decomp_stream() [fz_open_image_decomp_stream()].
  48073. """
  48074. ret, l2factor = ll_fz_open_image_decomp_stream( self.m_internal, arg_1.m_internal)
  48075. return FzStream(ret), l2factor
  48076. FzStream.fz_open_image_decomp_stream = FzStream_fz_open_image_decomp_stream_outparams_fn
  48077. def FzStream_fz_read_best_outparams_fn( self, initial, worst_case):
  48078. """
  48079. Helper for out-params of class method fz_stream::ll_fz_read_best() [fz_read_best()].
  48080. """
  48081. ret, truncated = ll_fz_read_best( self.m_internal, initial, worst_case)
  48082. return FzBuffer(ret), truncated
  48083. FzStream.fz_read_best = FzStream_fz_read_best_outparams_fn
  48084. def FzXml_fz_dom_get_attribute_outparams_fn( self, i):
  48085. """
  48086. Helper for out-params of class method fz_xml::ll_fz_dom_get_attribute() [fz_dom_get_attribute()].
  48087. """
  48088. ret, att = ll_fz_dom_get_attribute( self.m_internal, i)
  48089. return ret, att
  48090. FzXml.fz_dom_get_attribute = FzXml_fz_dom_get_attribute_outparams_fn
  48091. def FzXml_fz_new_display_list_from_svg_xml_outparams_fn( self, xmldoc, base_uri, dir):
  48092. """
  48093. Helper for out-params of class method fz_xml::ll_fz_new_display_list_from_svg_xml() [fz_new_display_list_from_svg_xml()].
  48094. """
  48095. ret, w, h = ll_fz_new_display_list_from_svg_xml( self.m_internal, xmldoc.m_internal, base_uri, dir.m_internal)
  48096. return FzDisplayList(ret), w, h
  48097. FzXml.fz_new_display_list_from_svg_xml = FzXml_fz_new_display_list_from_svg_xml_outparams_fn
  48098. def PdfAnnot_pdf_annot_MK_BC_outparams_fn( self, color):
  48099. """
  48100. Helper for out-params of class method pdf_annot::ll_pdf_annot_MK_BC() [pdf_annot_MK_BC()].
  48101. """
  48102. n = ll_pdf_annot_MK_BC( self.m_internal, color)
  48103. return n
  48104. PdfAnnot.pdf_annot_MK_BC = PdfAnnot_pdf_annot_MK_BC_outparams_fn
  48105. def PdfAnnot_pdf_annot_MK_BG_outparams_fn( self, color):
  48106. """
  48107. Helper for out-params of class method pdf_annot::ll_pdf_annot_MK_BG() [pdf_annot_MK_BG()].
  48108. """
  48109. n = ll_pdf_annot_MK_BG( self.m_internal, color)
  48110. return n
  48111. PdfAnnot.pdf_annot_MK_BG = PdfAnnot_pdf_annot_MK_BG_outparams_fn
  48112. def PdfAnnot_pdf_annot_color_outparams_fn( self, color):
  48113. """
  48114. Helper for out-params of class method pdf_annot::ll_pdf_annot_color() [pdf_annot_color()].
  48115. """
  48116. n = ll_pdf_annot_color( self.m_internal, color)
  48117. return n
  48118. PdfAnnot.pdf_annot_color = PdfAnnot_pdf_annot_color_outparams_fn
  48119. def PdfAnnot_pdf_annot_default_appearance_outparams_fn( self, color):
  48120. """
  48121. Helper for out-params of class method pdf_annot::ll_pdf_annot_default_appearance() [pdf_annot_default_appearance()].
  48122. """
  48123. font, size, n = ll_pdf_annot_default_appearance( self.m_internal, color)
  48124. return font, size, n
  48125. PdfAnnot.pdf_annot_default_appearance = PdfAnnot_pdf_annot_default_appearance_outparams_fn
  48126. def PdfAnnot_pdf_annot_default_appearance_unmapped_outparams_fn( self, font_name, font_name_len, color):
  48127. """
  48128. Helper for out-params of class method pdf_annot::ll_pdf_annot_default_appearance_unmapped() [pdf_annot_default_appearance_unmapped()].
  48129. """
  48130. size, n = ll_pdf_annot_default_appearance_unmapped( self.m_internal, font_name, font_name_len, color)
  48131. return size, n
  48132. PdfAnnot.pdf_annot_default_appearance_unmapped = PdfAnnot_pdf_annot_default_appearance_unmapped_outparams_fn
  48133. def PdfAnnot_pdf_annot_interior_color_outparams_fn( self, color):
  48134. """
  48135. Helper for out-params of class method pdf_annot::ll_pdf_annot_interior_color() [pdf_annot_interior_color()].
  48136. """
  48137. n = ll_pdf_annot_interior_color( self.m_internal, color)
  48138. return n
  48139. PdfAnnot.pdf_annot_interior_color = PdfAnnot_pdf_annot_interior_color_outparams_fn
  48140. def PdfAnnot_pdf_annot_line_ending_styles_outparams_fn( self):
  48141. """
  48142. Helper for out-params of class method pdf_annot::ll_pdf_annot_line_ending_styles() [pdf_annot_line_ending_styles()].
  48143. """
  48144. start_style, end_style = ll_pdf_annot_line_ending_styles( self.m_internal)
  48145. return start_style, end_style
  48146. PdfAnnot.pdf_annot_line_ending_styles = PdfAnnot_pdf_annot_line_ending_styles_outparams_fn
  48147. def PdfAnnot_pdf_edit_text_field_value_outparams_fn( self, value, change):
  48148. """
  48149. Helper for out-params of class method pdf_annot::ll_pdf_edit_text_field_value() [pdf_edit_text_field_value()].
  48150. """
  48151. ret, selStart, selEnd, newvalue = ll_pdf_edit_text_field_value( self.m_internal, value, change)
  48152. return ret, selStart, selEnd, newvalue
  48153. PdfAnnot.pdf_edit_text_field_value = PdfAnnot_pdf_edit_text_field_value_outparams_fn
  48154. def PdfCmap_pdf_decode_cmap_outparams_fn( self, s, e):
  48155. """
  48156. Helper for out-params of class method pdf_cmap::ll_pdf_decode_cmap() [pdf_decode_cmap()].
  48157. """
  48158. ret, cpt = ll_pdf_decode_cmap( self.m_internal, s, e)
  48159. return ret, cpt
  48160. PdfCmap.pdf_decode_cmap = PdfCmap_pdf_decode_cmap_outparams_fn
  48161. def PdfCmap_pdf_lookup_cmap_full_outparams_fn( self, cpt):
  48162. """
  48163. Helper for out-params of class method pdf_cmap::ll_pdf_lookup_cmap_full() [pdf_lookup_cmap_full()].
  48164. """
  48165. ret, out = ll_pdf_lookup_cmap_full( self.m_internal, cpt)
  48166. return ret, out
  48167. PdfCmap.pdf_lookup_cmap_full = PdfCmap_pdf_lookup_cmap_full_outparams_fn
  48168. def PdfCmap_pdf_map_one_to_many_outparams_fn( self, one, len):
  48169. """
  48170. Helper for out-params of class method pdf_cmap::ll_pdf_map_one_to_many() [pdf_map_one_to_many()].
  48171. """
  48172. many = ll_pdf_map_one_to_many( self.m_internal, one, len)
  48173. return many
  48174. PdfCmap.pdf_map_one_to_many = PdfCmap_pdf_map_one_to_many_outparams_fn
  48175. def PdfDocument_pdf_count_q_balance_outparams_fn( self, res, stm):
  48176. """
  48177. Helper for out-params of class method pdf_document::ll_pdf_count_q_balance() [pdf_count_q_balance()].
  48178. """
  48179. prepend, append = ll_pdf_count_q_balance( self.m_internal, res.m_internal, stm.m_internal)
  48180. return prepend, append
  48181. PdfDocument.pdf_count_q_balance = PdfDocument_pdf_count_q_balance_outparams_fn
  48182. def PdfDocument_pdf_field_event_validate_outparams_fn( self, field, value):
  48183. """
  48184. Helper for out-params of class method pdf_document::ll_pdf_field_event_validate() [pdf_field_event_validate()].
  48185. """
  48186. ret, newvalue = ll_pdf_field_event_validate( self.m_internal, field.m_internal, value)
  48187. return ret, newvalue
  48188. PdfDocument.pdf_field_event_validate = PdfDocument_pdf_field_event_validate_outparams_fn
  48189. def PdfDocument_pdf_load_to_unicode_outparams_fn( self, font, collection, cmapstm):
  48190. """
  48191. Helper for out-params of class method pdf_document::ll_pdf_load_to_unicode() [pdf_load_to_unicode()].
  48192. """
  48193. strings = ll_pdf_load_to_unicode( self.m_internal, font.m_internal, collection, cmapstm.m_internal)
  48194. return strings
  48195. PdfDocument.pdf_load_to_unicode = PdfDocument_pdf_load_to_unicode_outparams_fn
  48196. def PdfDocument_pdf_lookup_page_loc_outparams_fn( self, needle):
  48197. """
  48198. Helper for out-params of class method pdf_document::ll_pdf_lookup_page_loc() [pdf_lookup_page_loc()].
  48199. """
  48200. ret, parentp, indexp = ll_pdf_lookup_page_loc( self.m_internal, needle)
  48201. return PdfObj( ll_pdf_keep_obj( ret)), PdfObj(ll_pdf_keep_obj( parentp)), indexp
  48202. PdfDocument.pdf_lookup_page_loc = PdfDocument_pdf_lookup_page_loc_outparams_fn
  48203. def PdfDocument_pdf_page_write_outparams_fn( self, mediabox):
  48204. """
  48205. Helper for out-params of class method pdf_document::ll_pdf_page_write() [pdf_page_write()].
  48206. """
  48207. ret, presources, pcontents = ll_pdf_page_write( self.m_internal, mediabox.internal())
  48208. return FzDevice(ret), PdfObj( presources), FzBuffer( pcontents)
  48209. PdfDocument.pdf_page_write = PdfDocument_pdf_page_write_outparams_fn
  48210. def PdfDocument_pdf_parse_ind_obj_outparams_fn( self, f):
  48211. """
  48212. Helper for out-params of class method pdf_document::ll_pdf_parse_ind_obj() [pdf_parse_ind_obj()].
  48213. """
  48214. ret, num, gen, stm_ofs, try_repair = ll_pdf_parse_ind_obj( self.m_internal, f.m_internal)
  48215. return PdfObj(ret), num, gen, stm_ofs, try_repair
  48216. PdfDocument.pdf_parse_ind_obj = PdfDocument_pdf_parse_ind_obj_outparams_fn
  48217. def PdfDocument_pdf_parse_journal_obj_outparams_fn( self, stm):
  48218. """
  48219. Helper for out-params of class method pdf_document::ll_pdf_parse_journal_obj() [pdf_parse_journal_obj()].
  48220. """
  48221. ret, onum, ostm, newobj = ll_pdf_parse_journal_obj( self.m_internal, stm.m_internal)
  48222. return PdfObj(ret), onum, FzBuffer( ostm), newobj
  48223. PdfDocument.pdf_parse_journal_obj = PdfDocument_pdf_parse_journal_obj_outparams_fn
  48224. def PdfDocument_pdf_repair_obj_outparams_fn( self, buf):
  48225. """
  48226. Helper for out-params of class method pdf_document::ll_pdf_repair_obj() [pdf_repair_obj()].
  48227. """
  48228. ret, stmofsp, stmlenp, encrypt, id, page, tmpofs, root = ll_pdf_repair_obj( self.m_internal, buf.m_internal)
  48229. return ret, stmofsp, stmlenp, PdfObj(ll_pdf_keep_obj( encrypt)), PdfObj(ll_pdf_keep_obj( id)), PdfObj(ll_pdf_keep_obj( page)), tmpofs, PdfObj(ll_pdf_keep_obj( root))
  48230. PdfDocument.pdf_repair_obj = PdfDocument_pdf_repair_obj_outparams_fn
  48231. def PdfDocument_pdf_resolve_link_outparams_fn( self, uri):
  48232. """
  48233. Helper for out-params of class method pdf_document::ll_pdf_resolve_link() [pdf_resolve_link()].
  48234. """
  48235. ret, xp, yp = ll_pdf_resolve_link( self.m_internal, uri)
  48236. return ret, xp, yp
  48237. PdfDocument.pdf_resolve_link = PdfDocument_pdf_resolve_link_outparams_fn
  48238. def PdfDocument_pdf_signature_contents_outparams_fn( self, signature):
  48239. """
  48240. Helper for out-params of class method pdf_document::ll_pdf_signature_contents() [pdf_signature_contents()].
  48241. """
  48242. ret, contents = ll_pdf_signature_contents( self.m_internal, signature.m_internal)
  48243. return ret, contents
  48244. PdfDocument.pdf_signature_contents = PdfDocument_pdf_signature_contents_outparams_fn
  48245. def PdfDocument_pdf_undoredo_state_outparams_fn( self):
  48246. """
  48247. Helper for out-params of class method pdf_document::ll_pdf_undoredo_state() [pdf_undoredo_state()].
  48248. """
  48249. ret, steps = ll_pdf_undoredo_state( self.m_internal)
  48250. return ret, steps
  48251. PdfDocument.pdf_undoredo_state = PdfDocument_pdf_undoredo_state_outparams_fn
  48252. def PdfDocument_pdf_zugferd_profile_outparams_fn( self):
  48253. """
  48254. Helper for out-params of class method pdf_document::ll_pdf_zugferd_profile() [pdf_zugferd_profile()].
  48255. """
  48256. ret, version = ll_pdf_zugferd_profile( self.m_internal)
  48257. return ret, version
  48258. PdfDocument.pdf_zugferd_profile = PdfDocument_pdf_zugferd_profile_outparams_fn
  48259. def PdfFunction_pdf_eval_function_outparams_fn( self, in_, inlen, outlen):
  48260. """
  48261. Helper for out-params of class method pdf_function::ll_pdf_eval_function() [pdf_eval_function()].
  48262. """
  48263. out = ll_pdf_eval_function( self.m_internal, in_, inlen, outlen)
  48264. return out
  48265. PdfFunction.pdf_eval_function = PdfFunction_pdf_eval_function_outparams_fn
  48266. def PdfJs_pdf_js_event_result_validate_outparams_fn( self):
  48267. """
  48268. Helper for out-params of class method pdf_js::ll_pdf_js_event_result_validate() [pdf_js_event_result_validate()].
  48269. """
  48270. ret, newvalue = ll_pdf_js_event_result_validate( self.m_internal)
  48271. return ret, newvalue
  48272. PdfJs.pdf_js_event_result_validate = PdfJs_pdf_js_event_result_validate_outparams_fn
  48273. def PdfJs_pdf_js_execute_outparams_fn( self, name, code):
  48274. """
  48275. Helper for out-params of class method pdf_js::ll_pdf_js_execute() [pdf_js_execute()].
  48276. """
  48277. result = ll_pdf_js_execute( self.m_internal, name, code)
  48278. return result
  48279. PdfJs.pdf_js_execute = PdfJs_pdf_js_execute_outparams_fn
  48280. def PdfObj_pdf_array_get_string_outparams_fn( self, index):
  48281. """
  48282. Helper for out-params of class method pdf_obj::ll_pdf_array_get_string() [pdf_array_get_string()].
  48283. """
  48284. ret, sizep = ll_pdf_array_get_string( self.m_internal, index)
  48285. return ret, sizep
  48286. PdfObj.pdf_array_get_string = PdfObj_pdf_array_get_string_outparams_fn
  48287. def PdfObj_pdf_dict_get_inheritable_string_outparams_fn( self):
  48288. """
  48289. Helper for out-params of class method pdf_obj::ll_pdf_dict_get_inheritable_string() [pdf_dict_get_inheritable_string()].
  48290. """
  48291. ret, sizep = ll_pdf_dict_get_inheritable_string( self.m_internal)
  48292. return ret, sizep
  48293. PdfObj.pdf_dict_get_inheritable_string = PdfObj_pdf_dict_get_inheritable_string_outparams_fn
  48294. def PdfObj_pdf_dict_get_string_outparams_fn( self):
  48295. """
  48296. Helper for out-params of class method pdf_obj::ll_pdf_dict_get_string() [pdf_dict_get_string()].
  48297. """
  48298. ret, sizep = ll_pdf_dict_get_string( self.m_internal)
  48299. return ret, sizep
  48300. PdfObj.pdf_dict_get_string = PdfObj_pdf_dict_get_string_outparams_fn
  48301. def PdfObj_pdf_obj_memo_outparams_fn( self, bit):
  48302. """
  48303. Helper for out-params of class method pdf_obj::ll_pdf_obj_memo() [pdf_obj_memo()].
  48304. """
  48305. ret, memo = ll_pdf_obj_memo( self.m_internal, bit)
  48306. return ret, memo
  48307. PdfObj.pdf_obj_memo = PdfObj_pdf_obj_memo_outparams_fn
  48308. def PdfObj_pdf_to_string_outparams_fn( self):
  48309. """
  48310. Helper for out-params of class method pdf_obj::ll_pdf_to_string() [pdf_to_string()].
  48311. """
  48312. ret, sizep = ll_pdf_to_string( self.m_internal)
  48313. return ret, sizep
  48314. PdfObj.pdf_to_string = PdfObj_pdf_to_string_outparams_fn
  48315. def PdfObj_pdf_walk_tree_outparams_fn( self, arrive, leave, arg):
  48316. """
  48317. Helper for out-params of class method pdf_obj::ll_pdf_walk_tree() [pdf_walk_tree()].
  48318. """
  48319. names, values = ll_pdf_walk_tree( self.m_internal, arrive, leave, arg)
  48320. return PdfObj(ll_pdf_keep_obj( names)), PdfObj(ll_pdf_keep_obj( values))
  48321. PdfObj.pdf_walk_tree = PdfObj_pdf_walk_tree_outparams_fn
  48322. def PdfPage_pdf_page_presentation_outparams_fn( self, transition):
  48323. """
  48324. Helper for out-params of class method pdf_page::ll_pdf_page_presentation() [pdf_page_presentation()].
  48325. """
  48326. ret, duration = ll_pdf_page_presentation( self.m_internal, transition.internal())
  48327. return FzTransition(ret), duration
  48328. PdfPage.pdf_page_presentation = PdfPage_pdf_page_presentation_outparams_fn
  48329. def PdfProcessor_pdf_process_contents_outparams_fn( self, doc, res, stm, cookie):
  48330. """
  48331. Helper for out-params of class method pdf_processor::ll_pdf_process_contents() [pdf_process_contents()].
  48332. """
  48333. out_res = ll_pdf_process_contents( self.m_internal, doc.m_internal, res.m_internal, stm.m_internal, cookie.m_internal)
  48334. return PdfObj(ll_pdf_keep_obj( out_res))
  48335. PdfProcessor.pdf_process_contents = PdfProcessor_pdf_process_contents_outparams_fn
  48336. def PdfTextObjectState_pdf_tos_make_trm_outparams_fn( self, text, fontdesc, cid, trm):
  48337. """
  48338. Helper for out-params of class method pdf_text_object_state::ll_pdf_tos_make_trm() [pdf_tos_make_trm()].
  48339. """
  48340. ret, adv = ll_pdf_tos_make_trm( self.m_internal, text.m_internal, fontdesc.m_internal, cid, trm.internal())
  48341. return ret, adv
  48342. PdfTextObjectState.pdf_tos_make_trm = PdfTextObjectState_pdf_tos_make_trm_outparams_fn
  48343. # Define __str()__ for each error/exception class, to use self.what().
  48344. FzErrorBase.__str__ = lambda self: self.what()
  48345. FzErrorNone.__str__ = lambda self: self.what()
  48346. FzErrorGeneric.__str__ = lambda self: self.what()
  48347. FzErrorSystem.__str__ = lambda self: self.what()
  48348. FzErrorLibrary.__str__ = lambda self: self.what()
  48349. FzErrorArgument.__str__ = lambda self: self.what()
  48350. FzErrorLimit.__str__ = lambda self: self.what()
  48351. FzErrorUnsupported.__str__ = lambda self: self.what()
  48352. FzErrorFormat.__str__ = lambda self: self.what()
  48353. FzErrorSyntax.__str__ = lambda self: self.what()
  48354. FzErrorTrylater.__str__ = lambda self: self.what()
  48355. FzErrorAbort.__str__ = lambda self: self.what()
  48356. FzErrorRepaired.__str__ = lambda self: self.what()
  48357. # This must be after the declaration of mupdf::FzError*
  48358. # classes in mupdf/exceptions.h and declaration of
  48359. # `internal_set_error_classes()`, otherwise generated code is
  48360. # before the declaration of the Python class or similar. */
  48361. internal_set_error_classes([
  48362. FzErrorNone,
  48363. FzErrorGeneric,
  48364. FzErrorSystem,
  48365. FzErrorLibrary,
  48366. FzErrorArgument,
  48367. FzErrorLimit,
  48368. FzErrorUnsupported,
  48369. FzErrorFormat,
  48370. FzErrorSyntax,
  48371. FzErrorTrylater,
  48372. FzErrorAbort,
  48373. FzErrorRepaired,
  48374. FzErrorBase,
  48375. ])
  48376. # Wrap fz_parse_page_range() to fix SWIG bug where a NULL return
  48377. # value seems to mess up the returned list - we end up with ret
  48378. # containing two elements rather than three, e.g. [0, 2]. This
  48379. # occurs with SWIG-3.0; maybe fixed in SWIG-4?
  48380. #
  48381. ll_fz_parse_page_range_orig = ll_fz_parse_page_range
  48382. def ll_fz_parse_page_range(s, n):
  48383. ret = ll_fz_parse_page_range_orig(s, n)
  48384. if len(ret) == 2:
  48385. return None, 0, 0
  48386. else:
  48387. return ret[0], ret[1], ret[2]
  48388. fz_parse_page_range = ll_fz_parse_page_range
  48389. # Provide native python implementation of format_output_path() (->
  48390. # fz_format_output_path).
  48391. #
  48392. def ll_fz_format_output_path( format, page):
  48393. m = re.search( '(%[0-9]*d)', format)
  48394. if m:
  48395. ret = format[ :m.start(1)] + str(page) + format[ m.end(1):]
  48396. else:
  48397. dot = format.rfind( '.')
  48398. if dot < 0:
  48399. dot = len( format)
  48400. ret = format[:dot] + str(page) + format[dot:]
  48401. return ret
  48402. fz_format_output_path = ll_fz_format_output_path
  48403. class IteratorWrap:
  48404. """
  48405. This is a Python iterator for containers that have C++-style
  48406. begin() and end() methods that return iterators.
  48407. Iterators must have the following methods:
  48408. __increment__(): move to next item in the container.
  48409. __ref__(): return reference to item in the container.
  48410. Must also be able to compare two iterators for equality.
  48411. """
  48412. def __init__( self, container):
  48413. self.container = container
  48414. self.pos = None
  48415. self.end = container.end()
  48416. def __iter__( self):
  48417. return self
  48418. def __next__( self): # for python2.
  48419. if self.pos is None:
  48420. self.pos = self.container.begin()
  48421. else:
  48422. self.pos.__increment__()
  48423. if self.pos == self.end:
  48424. raise StopIteration()
  48425. return self.pos.__ref__()
  48426. def next( self): # for python3.
  48427. return self.__next__()
  48428. # The auto-generated Python class method
  48429. # FzBuffer.fz_buffer_extract() returns (size, data).
  48430. #
  48431. # But these raw values aren't particularly useful to
  48432. # Python code so we change the method to return a Python
  48433. # bytes instance instead, using the special C function
  48434. # buffer_extract_bytes() defined above.
  48435. #
  48436. # The raw values for a buffer are available via
  48437. # fz_buffer_storage().
  48438. def ll_fz_buffer_extract(buffer):
  48439. """
  48440. Returns buffer data as a Python bytes instance, leaving the
  48441. buffer empty.
  48442. """
  48443. assert isinstance( buffer, fz_buffer)
  48444. return ll_fz_buffer_to_bytes_internal(buffer, clear=1)
  48445. def fz_buffer_extract(buffer):
  48446. """
  48447. Returns buffer data as a Python bytes instance, leaving the
  48448. buffer empty.
  48449. """
  48450. assert isinstance( buffer, FzBuffer)
  48451. return ll_fz_buffer_extract(buffer.m_internal)
  48452. FzBuffer.fz_buffer_extract = fz_buffer_extract
  48453. def ll_fz_buffer_extract_copy( buffer):
  48454. """
  48455. Returns buffer data as a Python bytes instance, leaving the
  48456. buffer unchanged.
  48457. """
  48458. assert isinstance( buffer, fz_buffer)
  48459. return ll_fz_buffer_to_bytes_internal(buffer, clear=0)
  48460. def fz_buffer_extract_copy( buffer):
  48461. """
  48462. Returns buffer data as a Python bytes instance, leaving the
  48463. buffer unchanged.
  48464. """
  48465. assert isinstance( buffer, FzBuffer)
  48466. return ll_fz_buffer_extract_copy(buffer.m_internal)
  48467. FzBuffer.fz_buffer_extract_copy = fz_buffer_extract_copy
  48468. # [ll_fz_buffer_storage_memoryview() is implemented in C.]
  48469. def fz_buffer_storage_memoryview( buffer, writable=False):
  48470. """
  48471. Returns a read-only or writable Python `memoryview` onto
  48472. `fz_buffer` data. This relies on `buffer` existing and
  48473. not changing size while the `memoryview` is used.
  48474. """
  48475. assert isinstance( buffer, FzBuffer)
  48476. return ll_fz_buffer_storage_memoryview( buffer.m_internal, writable)
  48477. FzBuffer.fz_buffer_storage_memoryview = fz_buffer_storage_memoryview
  48478. # Overwrite wrappers for fz_new_buffer_from_copied_data() to
  48479. # take Python buffer.
  48480. #
  48481. ll_fz_new_buffer_from_copied_data_orig = ll_fz_new_buffer_from_copied_data
  48482. def ll_fz_new_buffer_from_copied_data(data):
  48483. """
  48484. Returns fz_buffer containing copy of `data`, which should
  48485. be a `bytes` or similar Python buffer instance.
  48486. """
  48487. buffer_ = ll_fz_new_buffer_from_copied_data_orig(python_buffer_data(data), len(data))
  48488. return buffer_
  48489. def fz_new_buffer_from_copied_data(data):
  48490. """
  48491. Returns FzBuffer containing copy of `data`, which should be
  48492. a `bytes` or similar Python buffer instance.
  48493. """
  48494. return FzBuffer( ll_fz_new_buffer_from_copied_data( data))
  48495. FzBuffer.fz_new_buffer_from_copied_data = fz_new_buffer_from_copied_data
  48496. def ll_pdf_dict_getl(obj, *tail):
  48497. """
  48498. Python implementation of ll_pdf_dict_getl(), because SWIG
  48499. doesn't handle variadic args. Each item in `tail` should be
  48500. `mupdf.pdf_obj`.
  48501. """
  48502. for key in tail:
  48503. if not obj:
  48504. break
  48505. obj = ll_pdf_dict_get(obj, key)
  48506. assert isinstance(obj, pdf_obj)
  48507. return obj
  48508. def pdf_dict_getl(obj, *tail):
  48509. """
  48510. Python implementation of pdf_dict_getl(), because SWIG
  48511. doesn't handle variadic args. Each item in `tail` should be
  48512. a `mupdf.PdfObj`.
  48513. """
  48514. for key in tail:
  48515. if not obj.m_internal:
  48516. break
  48517. obj = pdf_dict_get(obj, key)
  48518. assert isinstance(obj, PdfObj)
  48519. return obj
  48520. PdfObj.pdf_dict_getl = pdf_dict_getl
  48521. def ll_pdf_dict_putl(obj, val, *tail):
  48522. """
  48523. Python implementation of ll_pdf_dict_putl() because SWIG
  48524. doesn't handle variadic args. Each item in `tail` should
  48525. be a SWIG wrapper for a `pdf_obj`.
  48526. """
  48527. if ll_pdf_is_indirect( obj):
  48528. obj = ll_pdf_resolve_indirect_chain( obj)
  48529. if not pdf_is_dict( obj):
  48530. raise Exception(f'not a dict: {obj}')
  48531. if not tail:
  48532. return
  48533. doc = ll_pdf_get_bound_document( obj)
  48534. for i, key in enumerate( tail[:-1]):
  48535. assert isinstance( key, PdfObj), f'Item {i} in `tail` should be a pdf_obj but is a {type(key)}.'
  48536. next_obj = ll_pdf_dict_get( obj, key)
  48537. if not next_obj:
  48538. # We have to create entries
  48539. next_obj = ll_pdf_new_dict( doc, 1)
  48540. ll_pdf_dict_put( obj, key, next_obj)
  48541. obj = next_obj
  48542. key = tail[-1]
  48543. ll_pdf_dict_put( obj, key, val)
  48544. def pdf_dict_putl(obj, val, *tail):
  48545. """
  48546. Python implementation of pdf_dict_putl(fz_context *ctx,
  48547. pdf_obj *obj, pdf_obj *val, ...) because SWIG doesn't
  48548. handle variadic args. Each item in `tail` should
  48549. be a SWIG wrapper for a `PdfObj`.
  48550. """
  48551. if pdf_is_indirect( obj):
  48552. obj = pdf_resolve_indirect_chain( obj)
  48553. if not pdf_is_dict( obj):
  48554. raise Exception(f'not a dict: {obj}')
  48555. if not tail:
  48556. return
  48557. doc = pdf_get_bound_document( obj)
  48558. for i, key in enumerate( tail[:-1]):
  48559. assert isinstance( key, PdfObj), f'item {i} in `tail` should be a PdfObj but is a {type(key)}.'
  48560. next_obj = pdf_dict_get( obj, key)
  48561. if not next_obj.m_internal:
  48562. # We have to create entries
  48563. next_obj = pdf_new_dict( doc, 1)
  48564. pdf_dict_put( obj, key, next_obj)
  48565. obj = next_obj
  48566. key = tail[-1]
  48567. pdf_dict_put( obj, key, val)
  48568. PdfObj.pdf_dict_putl = pdf_dict_putl
  48569. def pdf_dict_putl_drop(obj, *tail):
  48570. raise Exception('mupdf.pdf_dict_putl_drop() is unsupported and unnecessary in Python because reference counting is automatic. Instead use mupdf.pdf_dict_putl().')
  48571. PdfObj.pdf_dict_putl_drop = pdf_dict_putl_drop
  48572. def ll_pdf_set_annot_color(annot, color):
  48573. """
  48574. Low-level Python implementation of pdf_set_annot_color()
  48575. using ll_pdf_set_annot_color2().
  48576. """
  48577. if isinstance(color, float):
  48578. ll_pdf_set_annot_color2(annot, 1, color, 0, 0, 0)
  48579. elif len(color) == 1:
  48580. ll_pdf_set_annot_color2(annot, 1, color[0], 0, 0, 0)
  48581. elif len(color) == 2:
  48582. ll_pdf_set_annot_color2(annot, 2, color[0], color[1], 0, 0)
  48583. elif len(color) == 3:
  48584. ll_pdf_set_annot_color2(annot, 3, color[0], color[1], color[2], 0)
  48585. elif len(color) == 4:
  48586. ll_pdf_set_annot_color2(annot, 4, color[0], color[1], color[2], color[3])
  48587. else:
  48588. raise Exception( f'Unexpected color should be float or list of 1-4 floats: {color}')
  48589. def pdf_set_annot_color(self, color):
  48590. return ll_pdf_set_annot_color(self.m_internal, color)
  48591. PdfAnnot.pdf_set_annot_color = pdf_set_annot_color
  48592. def ll_pdf_set_annot_interior_color(annot, color):
  48593. """
  48594. Low-level Python version of pdf_set_annot_color() using
  48595. pdf_set_annot_color2().
  48596. """
  48597. if isinstance(color, float):
  48598. ll_pdf_set_annot_interior_color2(annot, 1, color, 0, 0, 0)
  48599. elif len(color) == 1:
  48600. ll_pdf_set_annot_interior_color2(annot, 1, color[0], 0, 0, 0)
  48601. elif len(color) == 2:
  48602. ll_pdf_set_annot_interior_color2(annot, 2, color[0], color[1], 0, 0)
  48603. elif len(color) == 3:
  48604. ll_pdf_set_annot_interior_color2(annot, 3, color[0], color[1], color[2], 0)
  48605. elif len(color) == 4:
  48606. ll_pdf_set_annot_interior_color2(annot, 4, color[0], color[1], color[2], color[3])
  48607. else:
  48608. raise Exception( f'Unexpected color should be float or list of 1-4 floats: {color}')
  48609. def pdf_set_annot_interior_color(self, color):
  48610. """
  48611. Python version of pdf_set_annot_color() using
  48612. pdf_set_annot_color2().
  48613. """
  48614. return ll_pdf_set_annot_interior_color(self.m_internal, color)
  48615. PdfAnnot.pdf_set_annot_interior_color = pdf_set_annot_interior_color
  48616. def ll_fz_fill_text( dev, text, ctm, colorspace, color, alpha, color_params):
  48617. """
  48618. Low-level Python version of fz_fill_text() taking list/tuple for `color`.
  48619. """
  48620. color = tuple(color) + (0,) * (4-len(color))
  48621. assert len(color) == 4, f'color not len 4: len={len(color)}: {color}'
  48622. return ll_fz_fill_text2(dev, text, ctm, colorspace, *color, alpha, color_params)
  48623. def fz_fill_text(dev, text, ctm, colorspace, color, alpha, color_params):
  48624. """
  48625. Python version of fz_fill_text() taking list/tuple for `color`.
  48626. """
  48627. return ll_fz_fill_text(
  48628. dev.m_internal,
  48629. text.m_internal,
  48630. ctm.internal(),
  48631. colorspace.m_internal,
  48632. color,
  48633. alpha,
  48634. color_params.internal(),
  48635. )
  48636. FzDevice.fz_fill_text = fz_fill_text
  48637. # Override mupdf_convert_color() to return (rgb0, rgb1, rgb2, rgb3).
  48638. def ll_fz_convert_color( ss, sv, ds, is_, params):
  48639. """
  48640. Low-level Python version of fz_convert_color().
  48641. `sv` should be a float or list of 1-4 floats or a SWIG
  48642. representation of a float*.
  48643. Returns (dv0, dv1, dv2, dv3).
  48644. """
  48645. dv = fz_convert_color2_v()
  48646. if isinstance( sv, float):
  48647. ll_fz_convert_color2( ss, sv, 0.0, 0.0, 0.0, ds, dv, is_, params)
  48648. elif isinstance( sv, (tuple, list)):
  48649. sv2 = tuple(sv) + (0,) * (4-len(sv))
  48650. ll_fz_convert_color2( ss, *sv2, ds, dv, is_, params)
  48651. else:
  48652. # Assume `sv` is SWIG representation of a `float*`.
  48653. ll_fz_convert_color2( ss, sv, ds, dv, is_, params)
  48654. return dv.v0, dv.v1, dv.v2, dv.v3
  48655. def fz_convert_color( ss, sv, ds, is_, params):
  48656. """
  48657. Python version of fz_convert_color().
  48658. `sv` should be a float or list of 1-4 floats or a SWIG
  48659. representation of a float*.
  48660. Returns (dv0, dv1, dv2, dv3).
  48661. """
  48662. return ll_fz_convert_color( ss.m_internal, sv, ds.m_internal, is_.m_internal, params.internal())
  48663. FzColorspace.fz_convert_color = fz_convert_color
  48664. # Override fz_set_warning_callback() and
  48665. # fz_set_error_callback() to use Python classes derived from
  48666. # our SWIG Director class DiagnosticCallback (defined in C), so
  48667. # that fnptrs can call Python code.
  48668. #
  48669. # We store DiagnosticCallbackPython instances in these
  48670. # globals to ensure they continue to exist after
  48671. # set_diagnostic_callback() returns.
  48672. #
  48673. set_warning_callback_s = None
  48674. set_error_callback_s = None
  48675. # Override set_error_callback().
  48676. class DiagnosticCallbackPython( DiagnosticCallback):
  48677. """
  48678. Overrides Director class DiagnosticCallback's virtual
  48679. `_print()` method in Python.
  48680. """
  48681. def __init__( self, description, printfn):
  48682. super().__init__( description)
  48683. self.printfn = printfn
  48684. if g_mupdf_trace_director:
  48685. log( f'DiagnosticCallbackPython[{self.m_description}].__init__() self={self!r} printfn={printfn!r}')
  48686. def __del__( self):
  48687. if g_mupdf_trace_director:
  48688. log( f'DiagnosticCallbackPython[{self.m_description}].__del__() destructor called.')
  48689. def _print( self, message):
  48690. if g_mupdf_trace_director:
  48691. log( f'DiagnosticCallbackPython[{self.m_description}]._print(): Calling self.printfn={self.printfn!r} with message={message!r}')
  48692. try:
  48693. self.printfn( message)
  48694. except Exception as e:
  48695. # This shouldn't happen, so always output a diagnostic.
  48696. log( f'DiagnosticCallbackPython[{self.m_description}]._print(): Warning: exception from self.printfn={self.printfn!r}: e={e!r}')
  48697. # Calling `raise` here serves to test
  48698. # `DiagnosticCallback()`'s swallowing of what will
  48699. # be a C++ exception. But we could swallow the
  48700. # exception here instead.
  48701. raise
  48702. def set_diagnostic_callback( description, printfn):
  48703. if g_mupdf_trace_director:
  48704. log( f'set_diagnostic_callback() description={description!r} printfn={printfn!r}')
  48705. if printfn:
  48706. ret = DiagnosticCallbackPython( description, printfn)
  48707. return ret
  48708. else:
  48709. if g_mupdf_trace_director:
  48710. log( f'Calling ll_fz_set_{description}_callback() with (None, None)')
  48711. if description == 'error':
  48712. ll_fz_set_error_callback( None, None)
  48713. elif description == 'warning':
  48714. ll_fz_set_warning_callback( None, None)
  48715. else:
  48716. assert 0, f'Unrecognised description={description!r}'
  48717. return None
  48718. def fz_set_error_callback( printfn):
  48719. global set_error_callback_s
  48720. set_error_callback_s = set_diagnostic_callback( 'error', printfn)
  48721. def fz_set_warning_callback( printfn):
  48722. global set_warning_callback_s
  48723. set_warning_callback_s = set_diagnostic_callback( 'warning', printfn)
  48724. # Direct access to fz_pixmap samples.
  48725. def ll_fz_pixmap_samples_memoryview( pixmap):
  48726. """
  48727. Returns a writable Python `memoryview` for a `fz_pixmap`.
  48728. """
  48729. assert isinstance( pixmap, fz_pixmap)
  48730. ret = python_memoryview_from_memory(
  48731. ll_fz_pixmap_samples( pixmap),
  48732. ll_fz_pixmap_stride( pixmap) * ll_fz_pixmap_height( pixmap),
  48733. 1, # writable
  48734. )
  48735. return ret
  48736. def fz_pixmap_samples_memoryview( pixmap):
  48737. """
  48738. Returns a writable Python `memoryview` for a `FzPixmap`.
  48739. """
  48740. return ll_fz_pixmap_samples_memoryview( pixmap.m_internal)
  48741. FzPixmap.fz_pixmap_samples_memoryview = fz_pixmap_samples_memoryview
  48742. # Avoid potential unsafe use of variadic args by forcing a
  48743. # single arg and escaping all '%' characters. (Passing ('%s',
  48744. # text) does not work - results in "(null)" being output.)
  48745. #
  48746. ll_fz_warn_original = ll_fz_warn
  48747. def ll_fz_warn( text):
  48748. assert isinstance( text, str), f'text={text!r} str={str!r}'
  48749. text = text.replace( '%', '%%')
  48750. return ll_fz_warn_original( text)
  48751. fz_warn = ll_fz_warn
  48752. # Force use of pdf_load_field_name2() instead of
  48753. # pdf_load_field_name() because the latter returns a char*
  48754. # buffer that must be freed by the caller.
  48755. ll_pdf_load_field_name = ll_pdf_load_field_name2
  48756. pdf_load_field_name = pdf_load_field_name2
  48757. PdfObj.pdf_load_field_name = pdf_load_field_name
  48758. # It's important that when we create class derived
  48759. # from StoryPositionsCallback, we ensure that
  48760. # StoryPositionsCallback's constructor is called. Otherwise
  48761. # the new instance doesn't seem to be an instance of
  48762. # StoryPositionsCallback.
  48763. #
  48764. class StoryPositionsCallback_python( StoryPositionsCallback):
  48765. def __init__( self, python_callback):
  48766. super().__init__()
  48767. self.python_callback = python_callback
  48768. def call( self, position):
  48769. self.python_callback( position)
  48770. ll_fz_story_positions_orig = ll_fz_story_positions
  48771. def ll_fz_story_positions( story, python_callback):
  48772. """
  48773. Custom replacement for `ll_fz_story_positions()` that takes
  48774. a Python callable `python_callback`.
  48775. """
  48776. #log( f'll_fz_story_positions() type(story)={type(story)!r} type(python_callback)={type(python_callback)!r}')
  48777. python_callback_instance = StoryPositionsCallback_python( python_callback)
  48778. ll_fz_story_positions_director( story, python_callback_instance)
  48779. def fz_story_positions( story, python_callback):
  48780. #log( f'fz_story_positions() type(story)={type(story)!r} type(python_callback)={type(python_callback)!r}')
  48781. assert isinstance( story, FzStory)
  48782. assert callable( python_callback)
  48783. def python_callback2( position):
  48784. position2 = FzStoryElementPosition( position)
  48785. python_callback( position2)
  48786. ll_fz_story_positions( story.m_internal, python_callback2)
  48787. FzStory.fz_story_positions = fz_story_positions
  48788. # Monkey-patch `FzDocumentWriter.__init__()` to set `self._out`
  48789. # to any `FzOutput2` arg. This ensures that the Python part of
  48790. # the derived `FzOutput2` instance is kept alive for use by the
  48791. # `FzDocumentWriter`, otherwise Python can delete it, then get
  48792. # a SEGV if C++ tries to call the derived Python methods.
  48793. #
  48794. # [We don't patch equivalent class-aware functions such
  48795. # as `fz_new_pdf_writer_with_output()` because they are
  48796. # not available to C++/Python, because FzDocumentWriter is
  48797. # non-copyable.]
  48798. #
  48799. FzDocumentWriter__init__0 = FzDocumentWriter.__init__
  48800. def FzDocumentWriter__init__1(self, *args):
  48801. out = None
  48802. for arg in args:
  48803. if isinstance( arg, FzOutput2):
  48804. assert not out, "More than one FzOutput2 passed to FzDocumentWriter.__init__()"
  48805. out = arg
  48806. if out is not None:
  48807. self._out = out
  48808. return FzDocumentWriter__init__0(self, *args)
  48809. FzDocumentWriter.__init__ = FzDocumentWriter__init__1
  48810. # Create class derived from
  48811. # fz_install_load_system_font_funcs_args class wrapper with
  48812. # overrides of the virtual functions to allow calling of Python
  48813. # callbacks.
  48814. #
  48815. class fz_install_load_system_font_funcs_args3(FzInstallLoadSystemFontFuncsArgs2):
  48816. """
  48817. Class derived from Swig Director class
  48818. fz_install_load_system_font_funcs_args2, to allow
  48819. implementation of fz_install_load_system_font_funcs with
  48820. Python callbacks.
  48821. """
  48822. def __init__(self, f=None, f_cjk=None, f_fallback=None):
  48823. super().__init__()
  48824. self.f3 = f
  48825. self.f_cjk3 = f_cjk
  48826. self.f_fallback3 = f_fallback
  48827. self.use_virtual_f(True if f else False)
  48828. self.use_virtual_f_cjk(True if f_cjk else False)
  48829. self.use_virtual_f_fallback(True if f_fallback else False)
  48830. def ret_font(self, font):
  48831. if font is None:
  48832. return None
  48833. elif isinstance(font, FzFont):
  48834. return ll_fz_keep_font(font.m_internal)
  48835. elif isinstance(font, fz_font):
  48836. return font
  48837. else:
  48838. assert 0, f'Expected FzFont or fz_font, but fz_install_load_system_font_funcs() callback returned {type(font)=}'
  48839. def f(self, ctx, name, bold, italic, needs_exact_metrics):
  48840. font = self.f3(name, bold, italic, needs_exact_metrics)
  48841. return self.ret_font(font)
  48842. def f_cjk(self, ctx, name, ordering, serif):
  48843. font = self.f_cjk3(name, ordering, serif)
  48844. return self.ret_font(font)
  48845. def f_fallback(self, ctx, script, language, serif, bold, italic):
  48846. font = self.f_fallback3(script, language, serif, bold, italic)
  48847. return self.ret_font(font)
  48848. # We store the most recently created
  48849. # fz_install_load_system_font_funcs_args in this global so that
  48850. # it is not cleaned up by Python.
  48851. g_fz_install_load_system_font_funcs_args = None
  48852. def fz_install_load_system_font_funcs(f=None, f_cjk=None, f_fallback=None):
  48853. """
  48854. Python override for MuPDF
  48855. fz_install_load_system_font_funcs() using Swig Director
  48856. support. Python callbacks are not passed a `ctx` arg, and
  48857. can return None, a mupdf.fz_font or a mupdf.FzFont.
  48858. """
  48859. global g_fz_install_load_system_font_funcs_args
  48860. g_fz_install_load_system_font_funcs_args = fz_install_load_system_font_funcs_args3(
  48861. f,
  48862. f_cjk,
  48863. f_fallback,
  48864. )
  48865. fz_install_load_system_font_funcs2(g_fz_install_load_system_font_funcs_args)
  48866. Py_LIMITED_API = '0x030a0000'
  48867. FzLink.__iter__ = lambda self: IteratorWrap( self)
  48868. FzStextBlock.__iter__ = lambda self: IteratorWrap( self)
  48869. FzStextLine.__iter__ = lambda self: IteratorWrap( self)
  48870. FzStextPage.__iter__ = lambda self: IteratorWrap( self)
  48871. fz_aa_context.__str__ = lambda s: to_string_fz_aa_context(s)
  48872. fz_aa_context.__repr__ = lambda s: to_string_fz_aa_context(s)
  48873. fz_color_params.__str__ = lambda s: to_string_fz_color_params(s)
  48874. fz_color_params.__repr__ = lambda s: to_string_fz_color_params(s)
  48875. fz_cookie.__str__ = lambda s: to_string_fz_cookie(s)
  48876. fz_cookie.__repr__ = lambda s: to_string_fz_cookie(s)
  48877. fz_draw_options.__str__ = lambda s: to_string_fz_draw_options(s)
  48878. fz_draw_options.__repr__ = lambda s: to_string_fz_draw_options(s)
  48879. fz_install_load_system_font_funcs_args.__str__ = lambda s: to_string_fz_install_load_system_font_funcs_args(s)
  48880. fz_install_load_system_font_funcs_args.__repr__ = lambda s: to_string_fz_install_load_system_font_funcs_args(s)
  48881. fz_irect.__str__ = lambda s: to_string_fz_irect(s)
  48882. fz_irect.__repr__ = lambda s: to_string_fz_irect(s)
  48883. fz_location.__str__ = lambda s: to_string_fz_location(s)
  48884. fz_location.__repr__ = lambda s: to_string_fz_location(s)
  48885. fz_matrix.__str__ = lambda s: to_string_fz_matrix(s)
  48886. fz_matrix.__repr__ = lambda s: to_string_fz_matrix(s)
  48887. fz_md5.__str__ = lambda s: to_string_fz_md5(s)
  48888. fz_md5.__repr__ = lambda s: to_string_fz_md5(s)
  48889. fz_pdfocr_options.__str__ = lambda s: to_string_fz_pdfocr_options(s)
  48890. fz_pdfocr_options.__repr__ = lambda s: to_string_fz_pdfocr_options(s)
  48891. fz_point.__str__ = lambda s: to_string_fz_point(s)
  48892. fz_point.__repr__ = lambda s: to_string_fz_point(s)
  48893. fz_pwg_options.__str__ = lambda s: to_string_fz_pwg_options(s)
  48894. fz_pwg_options.__repr__ = lambda s: to_string_fz_pwg_options(s)
  48895. fz_quad.__str__ = lambda s: to_string_fz_quad(s)
  48896. fz_quad.__repr__ = lambda s: to_string_fz_quad(s)
  48897. fz_rect.__str__ = lambda s: to_string_fz_rect(s)
  48898. fz_rect.__repr__ = lambda s: to_string_fz_rect(s)
  48899. fz_stext_options.__str__ = lambda s: to_string_fz_stext_options(s)
  48900. fz_stext_options.__repr__ = lambda s: to_string_fz_stext_options(s)
  48901. fz_story_element_position.__str__ = lambda s: to_string_fz_story_element_position(s)
  48902. fz_story_element_position.__repr__ = lambda s: to_string_fz_story_element_position(s)
  48903. fz_transition.__str__ = lambda s: to_string_fz_transition(s)
  48904. fz_transition.__repr__ = lambda s: to_string_fz_transition(s)
  48905. pdf_clean_options.__str__ = lambda s: to_string_pdf_clean_options(s)
  48906. pdf_clean_options.__repr__ = lambda s: to_string_pdf_clean_options(s)
  48907. pdf_filter_factory.__str__ = lambda s: to_string_pdf_filter_factory(s)
  48908. pdf_filter_factory.__repr__ = lambda s: to_string_pdf_filter_factory(s)
  48909. pdf_filter_options.__str__ = lambda s: to_string_pdf_filter_options(s)
  48910. pdf_filter_options.__repr__ = lambda s: to_string_pdf_filter_options(s)
  48911. pdf_image_rewriter_options.__str__ = lambda s: to_string_pdf_image_rewriter_options(s)
  48912. pdf_image_rewriter_options.__repr__ = lambda s: to_string_pdf_image_rewriter_options(s)
  48913. pdf_layer_config.__str__ = lambda s: to_string_pdf_layer_config(s)
  48914. pdf_layer_config.__repr__ = lambda s: to_string_pdf_layer_config(s)
  48915. pdf_layer_config_ui.__str__ = lambda s: to_string_pdf_layer_config_ui(s)
  48916. pdf_layer_config_ui.__repr__ = lambda s: to_string_pdf_layer_config_ui(s)
  48917. pdf_recolor_options.__str__ = lambda s: to_string_pdf_recolor_options(s)
  48918. pdf_recolor_options.__repr__ = lambda s: to_string_pdf_recolor_options(s)
  48919. pdf_redact_options.__str__ = lambda s: to_string_pdf_redact_options(s)
  48920. pdf_redact_options.__repr__ = lambda s: to_string_pdf_redact_options(s)
  48921. pdf_sanitize_filter_options.__str__ = lambda s: to_string_pdf_sanitize_filter_options(s)
  48922. pdf_sanitize_filter_options.__repr__ = lambda s: to_string_pdf_sanitize_filter_options(s)
  48923. pdf_write_options.__str__ = lambda s: to_string_pdf_write_options(s)
  48924. pdf_write_options.__repr__ = lambda s: to_string_pdf_write_options(s)
  48925. FzAaContext.__str__ = lambda self: self.to_string()
  48926. FzAaContext.__repr__ = lambda self: self.to_string()
  48927. FzColorParams.__str__ = lambda self: self.to_string()
  48928. FzColorParams.__repr__ = lambda self: self.to_string()
  48929. FzCookie.__str__ = lambda self: self.to_string()
  48930. FzCookie.__repr__ = lambda self: self.to_string()
  48931. FzDrawOptions.__str__ = lambda self: self.to_string()
  48932. FzDrawOptions.__repr__ = lambda self: self.to_string()
  48933. FzInstallLoadSystemFontFuncsArgs.__str__ = lambda self: self.to_string()
  48934. FzInstallLoadSystemFontFuncsArgs.__repr__ = lambda self: self.to_string()
  48935. FzIrect.__str__ = lambda self: self.to_string()
  48936. FzIrect.__repr__ = lambda self: self.to_string()
  48937. FzLocation.__str__ = lambda self: self.to_string()
  48938. FzLocation.__repr__ = lambda self: self.to_string()
  48939. FzMatrix.__str__ = lambda self: self.to_string()
  48940. FzMatrix.__repr__ = lambda self: self.to_string()
  48941. FzMd5.__str__ = lambda self: self.to_string()
  48942. FzMd5.__repr__ = lambda self: self.to_string()
  48943. FzPdfocrOptions.__str__ = lambda self: self.to_string()
  48944. FzPdfocrOptions.__repr__ = lambda self: self.to_string()
  48945. FzPoint.__str__ = lambda self: self.to_string()
  48946. FzPoint.__repr__ = lambda self: self.to_string()
  48947. FzPwgOptions.__str__ = lambda self: self.to_string()
  48948. FzPwgOptions.__repr__ = lambda self: self.to_string()
  48949. FzQuad.__str__ = lambda self: self.to_string()
  48950. FzQuad.__repr__ = lambda self: self.to_string()
  48951. FzRect.__str__ = lambda self: self.to_string()
  48952. FzRect.__repr__ = lambda self: self.to_string()
  48953. FzStextOptions.__str__ = lambda self: self.to_string()
  48954. FzStextOptions.__repr__ = lambda self: self.to_string()
  48955. FzStoryElementPosition.__str__ = lambda self: self.to_string()
  48956. FzStoryElementPosition.__repr__ = lambda self: self.to_string()
  48957. FzTransition.__str__ = lambda self: self.to_string()
  48958. FzTransition.__repr__ = lambda self: self.to_string()
  48959. PdfCleanOptions.__str__ = lambda self: self.to_string()
  48960. PdfCleanOptions.__repr__ = lambda self: self.to_string()
  48961. PdfFilterFactory.__str__ = lambda self: self.to_string()
  48962. PdfFilterFactory.__repr__ = lambda self: self.to_string()
  48963. PdfFilterOptions.__str__ = lambda self: self.to_string()
  48964. PdfFilterOptions.__repr__ = lambda self: self.to_string()
  48965. PdfImageRewriterOptions.__str__ = lambda self: self.to_string()
  48966. PdfImageRewriterOptions.__repr__ = lambda self: self.to_string()
  48967. PdfLayerConfig.__str__ = lambda self: self.to_string()
  48968. PdfLayerConfig.__repr__ = lambda self: self.to_string()
  48969. PdfLayerConfigUi.__str__ = lambda self: self.to_string()
  48970. PdfLayerConfigUi.__repr__ = lambda self: self.to_string()
  48971. PdfRecolorOptions.__str__ = lambda self: self.to_string()
  48972. PdfRecolorOptions.__repr__ = lambda self: self.to_string()
  48973. PdfRedactOptions.__str__ = lambda self: self.to_string()
  48974. PdfRedactOptions.__repr__ = lambda self: self.to_string()
  48975. PdfSanitizeFilterOptions.__str__ = lambda self: self.to_string()
  48976. PdfSanitizeFilterOptions.__repr__ = lambda self: self.to_string()
  48977. PdfWriteOptions.__str__ = lambda self: self.to_string()
  48978. PdfWriteOptions.__repr__ = lambda self: self.to_string()
  48979. PDF_ENUM_NAME_1_2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_1_2))
  48980. PDF_ENUM_NAME_1_5 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_1_5))
  48981. PDF_ENUM_NAME_3D = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_3D))
  48982. PDF_ENUM_NAME_A = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_A))
  48983. PDF_ENUM_NAME_A85 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_A85))
  48984. PDF_ENUM_NAME_AA = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AA))
  48985. PDF_ENUM_NAME_AC = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AC))
  48986. PDF_ENUM_NAME_AESV2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AESV2))
  48987. PDF_ENUM_NAME_AESV3 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AESV3))
  48988. PDF_ENUM_NAME_AF = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AF))
  48989. PDF_ENUM_NAME_AFRelationship = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AFRelationship))
  48990. PDF_ENUM_NAME_AHx = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AHx))
  48991. PDF_ENUM_NAME_AP = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AP))
  48992. PDF_ENUM_NAME_AS = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AS))
  48993. PDF_ENUM_NAME_ASCII85Decode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ASCII85Decode))
  48994. PDF_ENUM_NAME_ASCIIHexDecode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ASCIIHexDecode))
  48995. PDF_ENUM_NAME_AbsoluteColorimetric = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AbsoluteColorimetric))
  48996. PDF_ENUM_NAME_AcroForm = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AcroForm))
  48997. PDF_ENUM_NAME_Action = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Action))
  48998. PDF_ENUM_NAME_ActualText = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ActualText))
  48999. PDF_ENUM_NAME_Adobe_PPKLite = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Adobe_PPKLite))
  49000. PDF_ENUM_NAME_All = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_All))
  49001. PDF_ENUM_NAME_AllOff = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AllOff))
  49002. PDF_ENUM_NAME_AllOn = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AllOn))
  49003. PDF_ENUM_NAME_Alpha = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Alpha))
  49004. PDF_ENUM_NAME_Alt = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Alt))
  49005. PDF_ENUM_NAME_Alternate = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Alternate))
  49006. PDF_ENUM_NAME_Alternative = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Alternative))
  49007. PDF_ENUM_NAME_Annot = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Annot))
  49008. PDF_ENUM_NAME_Annots = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Annots))
  49009. PDF_ENUM_NAME_AnyOff = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AnyOff))
  49010. PDF_ENUM_NAME_App = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_App))
  49011. PDF_ENUM_NAME_Approved = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Approved))
  49012. PDF_ENUM_NAME_Art = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Art))
  49013. PDF_ENUM_NAME_ArtBox = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ArtBox))
  49014. PDF_ENUM_NAME_Artifact = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Artifact))
  49015. PDF_ENUM_NAME_AsIs = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AsIs))
  49016. PDF_ENUM_NAME_Ascent = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Ascent))
  49017. PDF_ENUM_NAME_Aside = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Aside))
  49018. PDF_ENUM_NAME_AuthEvent = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AuthEvent))
  49019. PDF_ENUM_NAME_Author = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Author))
  49020. PDF_ENUM_NAME_B = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_B))
  49021. PDF_ENUM_NAME_BBox = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BBox))
  49022. PDF_ENUM_NAME_BC = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BC))
  49023. PDF_ENUM_NAME_BE = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BE))
  49024. PDF_ENUM_NAME_BG = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BG))
  49025. PDF_ENUM_NAME_BM = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BM))
  49026. PDF_ENUM_NAME_BPC = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BPC))
  49027. PDF_ENUM_NAME_BS = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BS))
  49028. PDF_ENUM_NAME_Background = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Background))
  49029. PDF_ENUM_NAME_BaseEncoding = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BaseEncoding))
  49030. PDF_ENUM_NAME_BaseFont = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BaseFont))
  49031. PDF_ENUM_NAME_BaseState = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BaseState))
  49032. PDF_ENUM_NAME_BibEntry = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BibEntry))
  49033. PDF_ENUM_NAME_BitsPerComponent = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BitsPerComponent))
  49034. PDF_ENUM_NAME_BitsPerCoordinate = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BitsPerCoordinate))
  49035. PDF_ENUM_NAME_BitsPerFlag = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BitsPerFlag))
  49036. PDF_ENUM_NAME_BitsPerSample = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BitsPerSample))
  49037. PDF_ENUM_NAME_BlackIs1 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BlackIs1))
  49038. PDF_ENUM_NAME_BlackPoint = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BlackPoint))
  49039. PDF_ENUM_NAME_BleedBox = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BleedBox))
  49040. PDF_ENUM_NAME_Blinds = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Blinds))
  49041. PDF_ENUM_NAME_BlockQuote = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BlockQuote))
  49042. PDF_ENUM_NAME_Border = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Border))
  49043. PDF_ENUM_NAME_Bounds = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Bounds))
  49044. PDF_ENUM_NAME_Box = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Box))
  49045. PDF_ENUM_NAME_Br = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Br))
  49046. PDF_ENUM_NAME_BrotliDecode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BrotliDecode))
  49047. PDF_ENUM_NAME_Bt = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Bt))
  49048. PDF_ENUM_NAME_Btn = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Btn))
  49049. PDF_ENUM_NAME_Butt = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Butt))
  49050. PDF_ENUM_NAME_ByteRange = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ByteRange))
  49051. PDF_ENUM_NAME_C = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_C))
  49052. PDF_ENUM_NAME_C0 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_C0))
  49053. PDF_ENUM_NAME_C1 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_C1))
  49054. PDF_ENUM_NAME_CA = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CA))
  49055. PDF_ENUM_NAME_CCF = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CCF))
  49056. PDF_ENUM_NAME_CCITTFaxDecode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CCITTFaxDecode))
  49057. PDF_ENUM_NAME_CF = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CF))
  49058. PDF_ENUM_NAME_CFM = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CFM))
  49059. PDF_ENUM_NAME_CI = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CI))
  49060. PDF_ENUM_NAME_CIDFontType0 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CIDFontType0))
  49061. PDF_ENUM_NAME_CIDFontType0C = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CIDFontType0C))
  49062. PDF_ENUM_NAME_CIDFontType2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CIDFontType2))
  49063. PDF_ENUM_NAME_CIDSystemInfo = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CIDSystemInfo))
  49064. PDF_ENUM_NAME_CIDToGIDMap = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CIDToGIDMap))
  49065. PDF_ENUM_NAME_CL = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CL))
  49066. PDF_ENUM_NAME_CMYK = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CMYK))
  49067. PDF_ENUM_NAME_CO = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CO))
  49068. PDF_ENUM_NAME_CP = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CP))
  49069. PDF_ENUM_NAME_CS = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CS))
  49070. PDF_ENUM_NAME_CalCMYK = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CalCMYK))
  49071. PDF_ENUM_NAME_CalGray = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CalGray))
  49072. PDF_ENUM_NAME_CalRGB = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CalRGB))
  49073. PDF_ENUM_NAME_Cap = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Cap))
  49074. PDF_ENUM_NAME_CapHeight = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CapHeight))
  49075. PDF_ENUM_NAME_Caption = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Caption))
  49076. PDF_ENUM_NAME_Caret = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Caret))
  49077. PDF_ENUM_NAME_Catalog = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Catalog))
  49078. PDF_ENUM_NAME_Cert = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Cert))
  49079. PDF_ENUM_NAME_Ch = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Ch))
  49080. PDF_ENUM_NAME_Changes = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Changes))
  49081. PDF_ENUM_NAME_CharProcs = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CharProcs))
  49082. PDF_ENUM_NAME_CheckSum = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CheckSum))
  49083. PDF_ENUM_NAME_Circle = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Circle))
  49084. PDF_ENUM_NAME_ClosedArrow = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ClosedArrow))
  49085. PDF_ENUM_NAME_Code = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Code))
  49086. PDF_ENUM_NAME_Collection = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Collection))
  49087. PDF_ENUM_NAME_ColorSpace = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ColorSpace))
  49088. PDF_ENUM_NAME_ColorTransform = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ColorTransform))
  49089. PDF_ENUM_NAME_Colorants = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Colorants))
  49090. PDF_ENUM_NAME_Colors = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Colors))
  49091. PDF_ENUM_NAME_Columns = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Columns))
  49092. PDF_ENUM_NAME_Confidential = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Confidential))
  49093. PDF_ENUM_NAME_Configs = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Configs))
  49094. PDF_ENUM_NAME_ContactInfo = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ContactInfo))
  49095. PDF_ENUM_NAME_Contents = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Contents))
  49096. PDF_ENUM_NAME_Coords = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Coords))
  49097. PDF_ENUM_NAME_Count = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Count))
  49098. PDF_ENUM_NAME_Cover = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Cover))
  49099. PDF_ENUM_NAME_CreationDate = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CreationDate))
  49100. PDF_ENUM_NAME_Creator = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Creator))
  49101. PDF_ENUM_NAME_CropBox = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CropBox))
  49102. PDF_ENUM_NAME_Crypt = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Crypt))
  49103. PDF_ENUM_NAME_D = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_D))
  49104. PDF_ENUM_NAME_DA = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DA))
  49105. PDF_ENUM_NAME_DC = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DC))
  49106. PDF_ENUM_NAME_DCT = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DCT))
  49107. PDF_ENUM_NAME_DCTDecode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DCTDecode))
  49108. PDF_ENUM_NAME_DL = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DL))
  49109. PDF_ENUM_NAME_DOS = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DOS))
  49110. PDF_ENUM_NAME_DP = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DP))
  49111. PDF_ENUM_NAME_DR = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DR))
  49112. PDF_ENUM_NAME_DS = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DS))
  49113. PDF_ENUM_NAME_DV = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DV))
  49114. PDF_ENUM_NAME_DW = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DW))
  49115. PDF_ENUM_NAME_DW2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DW2))
  49116. PDF_ENUM_NAME_DamagedRowsBeforeError = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DamagedRowsBeforeError))
  49117. PDF_ENUM_NAME_Data = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Data))
  49118. PDF_ENUM_NAME_Date = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Date))
  49119. PDF_ENUM_NAME_Decode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Decode))
  49120. PDF_ENUM_NAME_DecodeParms = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DecodeParms))
  49121. PDF_ENUM_NAME_Default = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Default))
  49122. PDF_ENUM_NAME_DefaultCMYK = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DefaultCMYK))
  49123. PDF_ENUM_NAME_DefaultGray = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DefaultGray))
  49124. PDF_ENUM_NAME_DefaultRGB = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DefaultRGB))
  49125. PDF_ENUM_NAME_Departmental = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Departmental))
  49126. PDF_ENUM_NAME_Desc = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Desc))
  49127. PDF_ENUM_NAME_DescendantFonts = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DescendantFonts))
  49128. PDF_ENUM_NAME_Descent = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Descent))
  49129. PDF_ENUM_NAME_Design = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Design))
  49130. PDF_ENUM_NAME_Dest = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Dest))
  49131. PDF_ENUM_NAME_DestOutputProfile = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DestOutputProfile))
  49132. PDF_ENUM_NAME_Dests = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Dests))
  49133. PDF_ENUM_NAME_DeviceCMYK = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DeviceCMYK))
  49134. PDF_ENUM_NAME_DeviceGray = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DeviceGray))
  49135. PDF_ENUM_NAME_DeviceN = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DeviceN))
  49136. PDF_ENUM_NAME_DeviceRGB = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DeviceRGB))
  49137. PDF_ENUM_NAME_Di = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Di))
  49138. PDF_ENUM_NAME_Diamond = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Diamond))
  49139. PDF_ENUM_NAME_Differences = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Differences))
  49140. PDF_ENUM_NAME_DigestLocation = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DigestLocation))
  49141. PDF_ENUM_NAME_DigestMethod = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DigestMethod))
  49142. PDF_ENUM_NAME_DigestValue = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DigestValue))
  49143. PDF_ENUM_NAME_Dissolve = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Dissolve))
  49144. PDF_ENUM_NAME_Div = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Div))
  49145. PDF_ENUM_NAME_Dm = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Dm))
  49146. PDF_ENUM_NAME_DocMDP = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DocMDP))
  49147. PDF_ENUM_NAME_Document = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Document))
  49148. PDF_ENUM_NAME_DocumentFragment = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DocumentFragment))
  49149. PDF_ENUM_NAME_Domain = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Domain))
  49150. PDF_ENUM_NAME_Draft = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Draft))
  49151. PDF_ENUM_NAME_Dur = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Dur))
  49152. PDF_ENUM_NAME_E = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_E))
  49153. PDF_ENUM_NAME_EF = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_EF))
  49154. PDF_ENUM_NAME_EarlyChange = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_EarlyChange))
  49155. PDF_ENUM_NAME_Em = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Em))
  49156. PDF_ENUM_NAME_EmbeddedFile = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_EmbeddedFile))
  49157. PDF_ENUM_NAME_EmbeddedFiles = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_EmbeddedFiles))
  49158. PDF_ENUM_NAME_Encode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Encode))
  49159. PDF_ENUM_NAME_EncodedByteAlign = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_EncodedByteAlign))
  49160. PDF_ENUM_NAME_Encoding = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Encoding))
  49161. PDF_ENUM_NAME_Encrypt = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Encrypt))
  49162. PDF_ENUM_NAME_EncryptMetadata = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_EncryptMetadata))
  49163. PDF_ENUM_NAME_EncryptedPayload = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_EncryptedPayload))
  49164. PDF_ENUM_NAME_EndOfBlock = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_EndOfBlock))
  49165. PDF_ENUM_NAME_EndOfLine = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_EndOfLine))
  49166. PDF_ENUM_NAME_Exclude = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Exclude))
  49167. PDF_ENUM_NAME_Experimental = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Experimental))
  49168. PDF_ENUM_NAME_Expired = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Expired))
  49169. PDF_ENUM_NAME_ExtGState = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ExtGState))
  49170. PDF_ENUM_NAME_Extend = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Extend))
  49171. PDF_ENUM_NAME_F = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_F))
  49172. PDF_ENUM_NAME_FENote = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FENote))
  49173. PDF_ENUM_NAME_FL = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FL))
  49174. PDF_ENUM_NAME_FRM = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FRM))
  49175. PDF_ENUM_NAME_FS = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FS))
  49176. PDF_ENUM_NAME_FT = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FT))
  49177. PDF_ENUM_NAME_Fade = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Fade))
  49178. PDF_ENUM_NAME_Ff = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Ff))
  49179. PDF_ENUM_NAME_FieldMDP = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FieldMDP))
  49180. PDF_ENUM_NAME_Fields = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Fields))
  49181. PDF_ENUM_NAME_Figure = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Figure))
  49182. PDF_ENUM_NAME_FileAttachment = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FileAttachment))
  49183. PDF_ENUM_NAME_FileSize = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FileSize))
  49184. PDF_ENUM_NAME_Filespec = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Filespec))
  49185. PDF_ENUM_NAME_Filter = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Filter))
  49186. PDF_ENUM_NAME_Final = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Final))
  49187. PDF_ENUM_NAME_Fingerprint = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Fingerprint))
  49188. PDF_ENUM_NAME_First = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_First))
  49189. PDF_ENUM_NAME_FirstChar = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FirstChar))
  49190. PDF_ENUM_NAME_FirstPage = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FirstPage))
  49191. PDF_ENUM_NAME_Fit = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Fit))
  49192. PDF_ENUM_NAME_FitB = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FitB))
  49193. PDF_ENUM_NAME_FitBH = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FitBH))
  49194. PDF_ENUM_NAME_FitBV = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FitBV))
  49195. PDF_ENUM_NAME_FitH = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FitH))
  49196. PDF_ENUM_NAME_FitR = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FitR))
  49197. PDF_ENUM_NAME_FitV = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FitV))
  49198. PDF_ENUM_NAME_Fl = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Fl))
  49199. PDF_ENUM_NAME_Flags = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Flags))
  49200. PDF_ENUM_NAME_FlateDecode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FlateDecode))
  49201. PDF_ENUM_NAME_Fly = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Fly))
  49202. PDF_ENUM_NAME_Font = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Font))
  49203. PDF_ENUM_NAME_FontBBox = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FontBBox))
  49204. PDF_ENUM_NAME_FontDescriptor = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FontDescriptor))
  49205. PDF_ENUM_NAME_FontFile = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FontFile))
  49206. PDF_ENUM_NAME_FontFile2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FontFile2))
  49207. PDF_ENUM_NAME_FontFile3 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FontFile3))
  49208. PDF_ENUM_NAME_FontMatrix = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FontMatrix))
  49209. PDF_ENUM_NAME_FontName = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FontName))
  49210. PDF_ENUM_NAME_ForComment = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ForComment))
  49211. PDF_ENUM_NAME_ForPublicRelease = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ForPublicRelease))
  49212. PDF_ENUM_NAME_Form = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Form))
  49213. PDF_ENUM_NAME_FormData = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FormData))
  49214. PDF_ENUM_NAME_FormEx = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FormEx))
  49215. PDF_ENUM_NAME_FormType = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FormType))
  49216. PDF_ENUM_NAME_Formula = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Formula))
  49217. PDF_ENUM_NAME_FreeText = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FreeText))
  49218. PDF_ENUM_NAME_FreeTextCallout = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FreeTextCallout))
  49219. PDF_ENUM_NAME_FreeTextTypeWriter = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FreeTextTypeWriter))
  49220. PDF_ENUM_NAME_Function = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Function))
  49221. PDF_ENUM_NAME_FunctionType = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FunctionType))
  49222. PDF_ENUM_NAME_Functions = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Functions))
  49223. PDF_ENUM_NAME_G = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_G))
  49224. PDF_ENUM_NAME_GTS_PDFX = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_GTS_PDFX))
  49225. PDF_ENUM_NAME_Gamma = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Gamma))
  49226. PDF_ENUM_NAME_Glitter = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Glitter))
  49227. PDF_ENUM_NAME_GoTo = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_GoTo))
  49228. PDF_ENUM_NAME_GoToR = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_GoToR))
  49229. PDF_ENUM_NAME_Group = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Group))
  49230. PDF_ENUM_NAME_H = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_H))
  49231. PDF_ENUM_NAME_H1 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_H1))
  49232. PDF_ENUM_NAME_H2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_H2))
  49233. PDF_ENUM_NAME_H3 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_H3))
  49234. PDF_ENUM_NAME_H4 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_H4))
  49235. PDF_ENUM_NAME_H5 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_H5))
  49236. PDF_ENUM_NAME_H6 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_H6))
  49237. PDF_ENUM_NAME_Height = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Height))
  49238. PDF_ENUM_NAME_Helv = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Helv))
  49239. PDF_ENUM_NAME_Highlight = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Highlight))
  49240. PDF_ENUM_NAME_HistoryPos = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_HistoryPos))
  49241. PDF_ENUM_NAME_I = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_I))
  49242. PDF_ENUM_NAME_IC = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_IC))
  49243. PDF_ENUM_NAME_ICCBased = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ICCBased))
  49244. PDF_ENUM_NAME_ID = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ID))
  49245. PDF_ENUM_NAME_IM = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_IM))
  49246. PDF_ENUM_NAME_IRT = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_IRT))
  49247. PDF_ENUM_NAME_IT = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_IT))
  49248. PDF_ENUM_NAME_Identity = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Identity))
  49249. PDF_ENUM_NAME_Identity_H = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Identity_H))
  49250. PDF_ENUM_NAME_Identity_V = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Identity_V))
  49251. PDF_ENUM_NAME_Image = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Image))
  49252. PDF_ENUM_NAME_ImageB = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ImageB))
  49253. PDF_ENUM_NAME_ImageC = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ImageC))
  49254. PDF_ENUM_NAME_ImageI = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ImageI))
  49255. PDF_ENUM_NAME_ImageMask = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ImageMask))
  49256. PDF_ENUM_NAME_Include = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Include))
  49257. PDF_ENUM_NAME_Index = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Index))
  49258. PDF_ENUM_NAME_Indexed = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Indexed))
  49259. PDF_ENUM_NAME_Info = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Info))
  49260. PDF_ENUM_NAME_Ink = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Ink))
  49261. PDF_ENUM_NAME_InkList = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_InkList))
  49262. PDF_ENUM_NAME_Intent = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Intent))
  49263. PDF_ENUM_NAME_Interpolate = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Interpolate))
  49264. PDF_ENUM_NAME_IsMap = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_IsMap))
  49265. PDF_ENUM_NAME_ItalicAngle = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ItalicAngle))
  49266. PDF_ENUM_NAME_JBIG2Decode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_JBIG2Decode))
  49267. PDF_ENUM_NAME_JBIG2Globals = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_JBIG2Globals))
  49268. PDF_ENUM_NAME_JPXDecode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_JPXDecode))
  49269. PDF_ENUM_NAME_JS = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_JS))
  49270. PDF_ENUM_NAME_JavaScript = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_JavaScript))
  49271. PDF_ENUM_NAME_K = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_K))
  49272. PDF_ENUM_NAME_Keywords = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Keywords))
  49273. PDF_ENUM_NAME_Kids = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Kids))
  49274. PDF_ENUM_NAME_L = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_L))
  49275. PDF_ENUM_NAME_LBody = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LBody))
  49276. PDF_ENUM_NAME_LC = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LC))
  49277. PDF_ENUM_NAME_LE = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LE))
  49278. PDF_ENUM_NAME_LI = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LI))
  49279. PDF_ENUM_NAME_LJ = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LJ))
  49280. PDF_ENUM_NAME_LL = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LL))
  49281. PDF_ENUM_NAME_LLE = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LLE))
  49282. PDF_ENUM_NAME_LLO = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LLO))
  49283. PDF_ENUM_NAME_LW = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LW))
  49284. PDF_ENUM_NAME_LZ = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LZ))
  49285. PDF_ENUM_NAME_LZW = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LZW))
  49286. PDF_ENUM_NAME_LZWDecode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LZWDecode))
  49287. PDF_ENUM_NAME_Lab = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Lab))
  49288. PDF_ENUM_NAME_Label = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Label))
  49289. PDF_ENUM_NAME_Lang = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Lang))
  49290. PDF_ENUM_NAME_Last = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Last))
  49291. PDF_ENUM_NAME_LastChar = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LastChar))
  49292. PDF_ENUM_NAME_LastPage = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LastPage))
  49293. PDF_ENUM_NAME_Launch = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Launch))
  49294. PDF_ENUM_NAME_Layer = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Layer))
  49295. PDF_ENUM_NAME_Lbl = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Lbl))
  49296. PDF_ENUM_NAME_Length = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Length))
  49297. PDF_ENUM_NAME_Length1 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Length1))
  49298. PDF_ENUM_NAME_Length2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Length2))
  49299. PDF_ENUM_NAME_Length3 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Length3))
  49300. PDF_ENUM_NAME_Limits = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Limits))
  49301. PDF_ENUM_NAME_Line = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Line))
  49302. PDF_ENUM_NAME_LineArrow = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LineArrow))
  49303. PDF_ENUM_NAME_LineDimension = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LineDimension))
  49304. PDF_ENUM_NAME_Linearized = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Linearized))
  49305. PDF_ENUM_NAME_Link = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Link))
  49306. PDF_ENUM_NAME_List = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_List))
  49307. PDF_ENUM_NAME_Location = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Location))
  49308. PDF_ENUM_NAME_Lock = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Lock))
  49309. PDF_ENUM_NAME_Locked = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Locked))
  49310. PDF_ENUM_NAME_Luminosity = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Luminosity))
  49311. PDF_ENUM_NAME_M = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_M))
  49312. PDF_ENUM_NAME_MCID = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_MCID))
  49313. PDF_ENUM_NAME_MK = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_MK))
  49314. PDF_ENUM_NAME_ML = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ML))
  49315. PDF_ENUM_NAME_MMType1 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_MMType1))
  49316. PDF_ENUM_NAME_Mac = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Mac))
  49317. PDF_ENUM_NAME_Mask = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Mask))
  49318. PDF_ENUM_NAME_Matrix = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Matrix))
  49319. PDF_ENUM_NAME_Matte = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Matte))
  49320. PDF_ENUM_NAME_MaxLen = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_MaxLen))
  49321. PDF_ENUM_NAME_MediaBox = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_MediaBox))
  49322. PDF_ENUM_NAME_Metadata = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Metadata))
  49323. PDF_ENUM_NAME_MissingWidth = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_MissingWidth))
  49324. PDF_ENUM_NAME_ModDate = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ModDate))
  49325. PDF_ENUM_NAME_Movie = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Movie))
  49326. PDF_ENUM_NAME_Msg = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Msg))
  49327. PDF_ENUM_NAME_Multiply = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Multiply))
  49328. PDF_ENUM_NAME_N = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_N))
  49329. PDF_ENUM_NAME_Name = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Name))
  49330. PDF_ENUM_NAME_Named = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Named))
  49331. PDF_ENUM_NAME_Names = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Names))
  49332. PDF_ENUM_NAME_NewWindow = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_NewWindow))
  49333. PDF_ENUM_NAME_Next = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Next))
  49334. PDF_ENUM_NAME_NextPage = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_NextPage))
  49335. PDF_ENUM_NAME_NonEFontNoWarn = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_NonEFontNoWarn))
  49336. PDF_ENUM_NAME_NonStruct = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_NonStruct))
  49337. PDF_ENUM_NAME_None = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_None))
  49338. PDF_ENUM_NAME_Normal = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Normal))
  49339. PDF_ENUM_NAME_NotApproved = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_NotApproved))
  49340. PDF_ENUM_NAME_NotForPublicRelease = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_NotForPublicRelease))
  49341. PDF_ENUM_NAME_Note = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Note))
  49342. PDF_ENUM_NAME_NumSections = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_NumSections))
  49343. PDF_ENUM_NAME_Nums = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Nums))
  49344. PDF_ENUM_NAME_O = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_O))
  49345. PDF_ENUM_NAME_OC = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OC))
  49346. PDF_ENUM_NAME_OCG = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OCG))
  49347. PDF_ENUM_NAME_OCGs = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OCGs))
  49348. PDF_ENUM_NAME_OCMD = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OCMD))
  49349. PDF_ENUM_NAME_OCProperties = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OCProperties))
  49350. PDF_ENUM_NAME_OE = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OE))
  49351. PDF_ENUM_NAME_OFF = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OFF))
  49352. PDF_ENUM_NAME_ON = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ON))
  49353. PDF_ENUM_NAME_OP = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OP))
  49354. PDF_ENUM_NAME_OPM = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OPM))
  49355. PDF_ENUM_NAME_OS = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OS))
  49356. PDF_ENUM_NAME_ObjStm = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ObjStm))
  49357. PDF_ENUM_NAME_Of = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Of))
  49358. PDF_ENUM_NAME_Off = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Off))
  49359. PDF_ENUM_NAME_Open = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Open))
  49360. PDF_ENUM_NAME_OpenArrow = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OpenArrow))
  49361. PDF_ENUM_NAME_OpenType = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OpenType))
  49362. PDF_ENUM_NAME_Opt = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Opt))
  49363. PDF_ENUM_NAME_Order = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Order))
  49364. PDF_ENUM_NAME_Ordering = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Ordering))
  49365. PDF_ENUM_NAME_Outlines = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Outlines))
  49366. PDF_ENUM_NAME_OutputCondition = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OutputCondition))
  49367. PDF_ENUM_NAME_OutputConditionIdentifier = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OutputConditionIdentifier))
  49368. PDF_ENUM_NAME_OutputIntent = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OutputIntent))
  49369. PDF_ENUM_NAME_OutputIntents = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OutputIntents))
  49370. PDF_ENUM_NAME_P = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_P))
  49371. PDF_ENUM_NAME_PDF = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PDF))
  49372. PDF_ENUM_NAME_PS = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PS))
  49373. PDF_ENUM_NAME_Page = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Page))
  49374. PDF_ENUM_NAME_PageLabels = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PageLabels))
  49375. PDF_ENUM_NAME_PageMode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PageMode))
  49376. PDF_ENUM_NAME_Pages = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Pages))
  49377. PDF_ENUM_NAME_PaintType = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PaintType))
  49378. PDF_ENUM_NAME_Params = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Params))
  49379. PDF_ENUM_NAME_Parent = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Parent))
  49380. PDF_ENUM_NAME_ParentTree = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ParentTree))
  49381. PDF_ENUM_NAME_Part = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Part))
  49382. PDF_ENUM_NAME_Pattern = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Pattern))
  49383. PDF_ENUM_NAME_PatternType = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PatternType))
  49384. PDF_ENUM_NAME_Perceptual = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Perceptual))
  49385. PDF_ENUM_NAME_Perms = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Perms))
  49386. PDF_ENUM_NAME_PieceInfo = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PieceInfo))
  49387. PDF_ENUM_NAME_PolyLine = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PolyLine))
  49388. PDF_ENUM_NAME_PolyLineDimension = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PolyLineDimension))
  49389. PDF_ENUM_NAME_Polygon = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Polygon))
  49390. PDF_ENUM_NAME_PolygonCloud = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PolygonCloud))
  49391. PDF_ENUM_NAME_PolygonDimension = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PolygonDimension))
  49392. PDF_ENUM_NAME_Popup = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Popup))
  49393. PDF_ENUM_NAME_PreRelease = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PreRelease))
  49394. PDF_ENUM_NAME_Predictor = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Predictor))
  49395. PDF_ENUM_NAME_Prev = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Prev))
  49396. PDF_ENUM_NAME_PrevPage = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PrevPage))
  49397. PDF_ENUM_NAME_Preview = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Preview))
  49398. PDF_ENUM_NAME_Print = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Print))
  49399. PDF_ENUM_NAME_PrinterMark = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PrinterMark))
  49400. PDF_ENUM_NAME_Private = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Private))
  49401. PDF_ENUM_NAME_ProcSet = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ProcSet))
  49402. PDF_ENUM_NAME_Producer = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Producer))
  49403. PDF_ENUM_NAME_Prop_AuthTime = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Prop_AuthTime))
  49404. PDF_ENUM_NAME_Prop_AuthType = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Prop_AuthType))
  49405. PDF_ENUM_NAME_Prop_Build = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Prop_Build))
  49406. PDF_ENUM_NAME_Properties = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Properties))
  49407. PDF_ENUM_NAME_PubSec = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PubSec))
  49408. PDF_ENUM_NAME_Push = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Push))
  49409. PDF_ENUM_NAME_Q = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Q))
  49410. PDF_ENUM_NAME_QuadPoints = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_QuadPoints))
  49411. PDF_ENUM_NAME_Quote = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Quote))
  49412. PDF_ENUM_NAME_R = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_R))
  49413. PDF_ENUM_NAME_RB = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RB))
  49414. PDF_ENUM_NAME_RBGroups = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RBGroups))
  49415. PDF_ENUM_NAME_RC = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RC))
  49416. PDF_ENUM_NAME_RClosedArrow = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RClosedArrow))
  49417. PDF_ENUM_NAME_RD = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RD))
  49418. PDF_ENUM_NAME_REx = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_REx))
  49419. PDF_ENUM_NAME_RGB = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RGB))
  49420. PDF_ENUM_NAME_RI = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RI))
  49421. PDF_ENUM_NAME_RL = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RL))
  49422. PDF_ENUM_NAME_RO = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RO))
  49423. PDF_ENUM_NAME_ROpenArrow = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ROpenArrow))
  49424. PDF_ENUM_NAME_RP = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RP))
  49425. PDF_ENUM_NAME_RT = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RT))
  49426. PDF_ENUM_NAME_RV = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RV))
  49427. PDF_ENUM_NAME_Range = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Range))
  49428. PDF_ENUM_NAME_Reason = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Reason))
  49429. PDF_ENUM_NAME_Rect = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Rect))
  49430. PDF_ENUM_NAME_Redact = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Redact))
  49431. PDF_ENUM_NAME_Ref = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Ref))
  49432. PDF_ENUM_NAME_Reference = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Reference))
  49433. PDF_ENUM_NAME_Registry = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Registry))
  49434. PDF_ENUM_NAME_RelativeColorimetric = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RelativeColorimetric))
  49435. PDF_ENUM_NAME_ResetForm = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ResetForm))
  49436. PDF_ENUM_NAME_Resources = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Resources))
  49437. PDF_ENUM_NAME_RoleMap = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RoleMap))
  49438. PDF_ENUM_NAME_Root = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Root))
  49439. PDF_ENUM_NAME_Rotate = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Rotate))
  49440. PDF_ENUM_NAME_Rows = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Rows))
  49441. PDF_ENUM_NAME_Ruby = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Ruby))
  49442. PDF_ENUM_NAME_RunLengthDecode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RunLengthDecode))
  49443. PDF_ENUM_NAME_S = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_S))
  49444. PDF_ENUM_NAME_SMask = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_SMask))
  49445. PDF_ENUM_NAME_SMaskInData = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_SMaskInData))
  49446. PDF_ENUM_NAME_Saturation = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Saturation))
  49447. PDF_ENUM_NAME_Schema = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Schema))
  49448. PDF_ENUM_NAME_Screen = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Screen))
  49449. PDF_ENUM_NAME_Sect = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Sect))
  49450. PDF_ENUM_NAME_Separation = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Separation))
  49451. PDF_ENUM_NAME_Shading = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Shading))
  49452. PDF_ENUM_NAME_ShadingType = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ShadingType))
  49453. PDF_ENUM_NAME_Si = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Si))
  49454. PDF_ENUM_NAME_Sig = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Sig))
  49455. PDF_ENUM_NAME_SigFlags = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_SigFlags))
  49456. PDF_ENUM_NAME_SigQ = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_SigQ))
  49457. PDF_ENUM_NAME_SigRef = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_SigRef))
  49458. PDF_ENUM_NAME_Size = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Size))
  49459. PDF_ENUM_NAME_Slash = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Slash))
  49460. PDF_ENUM_NAME_Sold = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Sold))
  49461. PDF_ENUM_NAME_Sound = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Sound))
  49462. PDF_ENUM_NAME_Source = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Source))
  49463. PDF_ENUM_NAME_Span = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Span))
  49464. PDF_ENUM_NAME_Split = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Split))
  49465. PDF_ENUM_NAME_Square = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Square))
  49466. PDF_ENUM_NAME_Squiggly = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Squiggly))
  49467. PDF_ENUM_NAME_St = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_St))
  49468. PDF_ENUM_NAME_Stamp = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Stamp))
  49469. PDF_ENUM_NAME_StampImage = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_StampImage))
  49470. PDF_ENUM_NAME_StampSnapshot = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_StampSnapshot))
  49471. PDF_ENUM_NAME_Standard = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Standard))
  49472. PDF_ENUM_NAME_StdCF = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_StdCF))
  49473. PDF_ENUM_NAME_StemV = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_StemV))
  49474. PDF_ENUM_NAME_StmF = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_StmF))
  49475. PDF_ENUM_NAME_StrF = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_StrF))
  49476. PDF_ENUM_NAME_StrikeOut = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_StrikeOut))
  49477. PDF_ENUM_NAME_Strong = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Strong))
  49478. PDF_ENUM_NAME_StructParent = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_StructParent))
  49479. PDF_ENUM_NAME_StructParents = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_StructParents))
  49480. PDF_ENUM_NAME_StructTreeRoot = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_StructTreeRoot))
  49481. PDF_ENUM_NAME_Sub = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Sub))
  49482. PDF_ENUM_NAME_SubFilter = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_SubFilter))
  49483. PDF_ENUM_NAME_Subject = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Subject))
  49484. PDF_ENUM_NAME_Subtype = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Subtype))
  49485. PDF_ENUM_NAME_Subtype2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Subtype2))
  49486. PDF_ENUM_NAME_Supplement = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Supplement))
  49487. PDF_ENUM_NAME_Symb = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Symb))
  49488. PDF_ENUM_NAME_T = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_T))
  49489. PDF_ENUM_NAME_TBody = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TBody))
  49490. PDF_ENUM_NAME_TD = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TD))
  49491. PDF_ENUM_NAME_TFoot = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TFoot))
  49492. PDF_ENUM_NAME_TH = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TH))
  49493. PDF_ENUM_NAME_THead = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_THead))
  49494. PDF_ENUM_NAME_TI = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TI))
  49495. PDF_ENUM_NAME_TOC = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TOC))
  49496. PDF_ENUM_NAME_TOCI = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TOCI))
  49497. PDF_ENUM_NAME_TR = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TR))
  49498. PDF_ENUM_NAME_TR2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TR2))
  49499. PDF_ENUM_NAME_TU = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TU))
  49500. PDF_ENUM_NAME_Table = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Table))
  49501. PDF_ENUM_NAME_Text = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Text))
  49502. PDF_ENUM_NAME_Thumb = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Thumb))
  49503. PDF_ENUM_NAME_TilingType = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TilingType))
  49504. PDF_ENUM_NAME_Times = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Times))
  49505. PDF_ENUM_NAME_Title = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Title))
  49506. PDF_ENUM_NAME_ToUnicode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ToUnicode))
  49507. PDF_ENUM_NAME_Top = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Top))
  49508. PDF_ENUM_NAME_TopSecret = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TopSecret))
  49509. PDF_ENUM_NAME_Trans = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Trans))
  49510. PDF_ENUM_NAME_TransformMethod = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TransformMethod))
  49511. PDF_ENUM_NAME_TransformParams = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TransformParams))
  49512. PDF_ENUM_NAME_Transparency = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Transparency))
  49513. PDF_ENUM_NAME_TrapNet = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TrapNet))
  49514. PDF_ENUM_NAME_TrimBox = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TrimBox))
  49515. PDF_ENUM_NAME_TrueType = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TrueType))
  49516. PDF_ENUM_NAME_TrustedMode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TrustedMode))
  49517. PDF_ENUM_NAME_Tx = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Tx))
  49518. PDF_ENUM_NAME_Type = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Type))
  49519. PDF_ENUM_NAME_Type0 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Type0))
  49520. PDF_ENUM_NAME_Type1 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Type1))
  49521. PDF_ENUM_NAME_Type1C = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Type1C))
  49522. PDF_ENUM_NAME_Type3 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Type3))
  49523. PDF_ENUM_NAME_U = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_U))
  49524. PDF_ENUM_NAME_UE = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_UE))
  49525. PDF_ENUM_NAME_UF = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_UF))
  49526. PDF_ENUM_NAME_URI = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_URI))
  49527. PDF_ENUM_NAME_URL = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_URL))
  49528. PDF_ENUM_NAME_Unchanged = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Unchanged))
  49529. PDF_ENUM_NAME_Uncover = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Uncover))
  49530. PDF_ENUM_NAME_Underline = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Underline))
  49531. PDF_ENUM_NAME_Unix = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Unix))
  49532. PDF_ENUM_NAME_Unspecified = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Unspecified))
  49533. PDF_ENUM_NAME_Usage = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Usage))
  49534. PDF_ENUM_NAME_UseBlackPtComp = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_UseBlackPtComp))
  49535. PDF_ENUM_NAME_UseCMap = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_UseCMap))
  49536. PDF_ENUM_NAME_UseOutlines = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_UseOutlines))
  49537. PDF_ENUM_NAME_UserUnit = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_UserUnit))
  49538. PDF_ENUM_NAME_V = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_V))
  49539. PDF_ENUM_NAME_V2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_V2))
  49540. PDF_ENUM_NAME_VE = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_VE))
  49541. PDF_ENUM_NAME_Version = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Version))
  49542. PDF_ENUM_NAME_Vertices = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Vertices))
  49543. PDF_ENUM_NAME_VerticesPerRow = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_VerticesPerRow))
  49544. PDF_ENUM_NAME_View = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_View))
  49545. PDF_ENUM_NAME_W = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_W))
  49546. PDF_ENUM_NAME_W2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_W2))
  49547. PDF_ENUM_NAME_WMode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_WMode))
  49548. PDF_ENUM_NAME_WP = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_WP))
  49549. PDF_ENUM_NAME_WT = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_WT))
  49550. PDF_ENUM_NAME_Warichu = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Warichu))
  49551. PDF_ENUM_NAME_Watermark = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Watermark))
  49552. PDF_ENUM_NAME_WhitePoint = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_WhitePoint))
  49553. PDF_ENUM_NAME_Widget = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Widget))
  49554. PDF_ENUM_NAME_Width = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Width))
  49555. PDF_ENUM_NAME_Widths = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Widths))
  49556. PDF_ENUM_NAME_WinAnsiEncoding = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_WinAnsiEncoding))
  49557. PDF_ENUM_NAME_Wipe = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Wipe))
  49558. PDF_ENUM_NAME_XFA = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_XFA))
  49559. PDF_ENUM_NAME_XHeight = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_XHeight))
  49560. PDF_ENUM_NAME_XML = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_XML))
  49561. PDF_ENUM_NAME_XObject = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_XObject))
  49562. PDF_ENUM_NAME_XRef = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_XRef))
  49563. PDF_ENUM_NAME_XRefStm = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_XRefStm))
  49564. PDF_ENUM_NAME_XStep = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_XStep))
  49565. PDF_ENUM_NAME_XYZ = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_XYZ))
  49566. PDF_ENUM_NAME_YStep = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_YStep))
  49567. PDF_ENUM_NAME_Yes = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Yes))
  49568. PDF_ENUM_NAME_ZaDb = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ZaDb))
  49569. PDF_ENUM_NAME_a = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_a))
  49570. PDF_ENUM_NAME_adbe_pkcs7_detached = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_adbe_pkcs7_detached))
  49571. PDF_ENUM_NAME_ca = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ca))
  49572. PDF_ENUM_NAME_n0 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_n0))
  49573. PDF_ENUM_NAME_n1 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_n1))
  49574. PDF_ENUM_NAME_n2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_n2))
  49575. PDF_ENUM_NAME_op = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_op))
  49576. PDF_ENUM_NAME_r = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_r))
  49577. PDF_NULL = PdfObj( obj_enum_to_obj( PDF_ENUM_NULL))
  49578. PDF_TRUE = PdfObj( obj_enum_to_obj( PDF_ENUM_TRUE))
  49579. PDF_FALSE = PdfObj( obj_enum_to_obj( PDF_ENUM_FALSE))