mupdf.py 2.3 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835
  1. # This file was automatically generated by SWIG (https://www.swig.org).
  2. # Version 4.3.1
  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 __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. FZ_ENABLE_SPOT_RENDERING = _mupdf.FZ_ENABLE_SPOT_RENDERING
  860. r"""
  861. Enable the following for spot (and hence overprint/overprint
  862. simulation) capable rendering. This forces FZ_PLOTTERS_N on.
  863. Choose which plotters we need.
  864. By default we build all the plotters in. To avoid building
  865. plotters in that aren't needed, define the unwanted
  866. FZ_PLOTTERS_... define to 0.
  867. Choose which document agents to include.
  868. By default all are enabled. To avoid building unwanted
  869. ones, define FZ_ENABLE_... to 0.
  870. Some of those document agents rely on the HTML
  871. engine. This will be enabled if required based upon
  872. those engines, but can be enabled independently of
  873. them so that other features (such as the fz_story
  874. mechanism or PDF Annotation rich content) can work.
  875. Choose which document writers to include.
  876. By default all are enabled. To avoid building unwanted
  877. ones, define FZ_ENABLE_..._OUTPUT to 0.
  878. Choose whether to enable ICC color profiles.
  879. Choose whether to enable JPEG2000 decoding.
  880. By default, it is enabled, but due to frequent security
  881. issues with the third party libraries we support disabling
  882. it with this flag.
  883. Choose whether to enable Brotli compression support.
  884. By default, it is enabled.
  885. Choose whether to enable JavaScript.
  886. By default JavaScript is enabled both for mutool and PDF
  887. interactivity.
  888. Choose whether to enable barcode functionality.
  889. It is enabled by default, unless disabled by the build
  890. system.
  891. Choose which fonts to include.
  892. By default we include the base 14 PDF fonts,
  893. DroidSansFallback from Android for CJK, and
  894. Charis SIL from SIL for epub/html.
  895. Enable the following defines to AVOID including
  896. unwanted fonts.
  897. """
  898. FZ_PLOTTERS_N = _mupdf.FZ_PLOTTERS_N
  899. FZ_PLOTTERS_G = _mupdf.FZ_PLOTTERS_G
  900. FZ_PLOTTERS_RGB = _mupdf.FZ_PLOTTERS_RGB
  901. FZ_PLOTTERS_CMYK = _mupdf.FZ_PLOTTERS_CMYK
  902. FZ_ENABLE_PDF = _mupdf.FZ_ENABLE_PDF
  903. FZ_ENABLE_XPS = _mupdf.FZ_ENABLE_XPS
  904. FZ_ENABLE_SVG = _mupdf.FZ_ENABLE_SVG
  905. FZ_ENABLE_CBZ = _mupdf.FZ_ENABLE_CBZ
  906. FZ_ENABLE_IMG = _mupdf.FZ_ENABLE_IMG
  907. FZ_ENABLE_HTML = _mupdf.FZ_ENABLE_HTML
  908. FZ_ENABLE_EPUB = _mupdf.FZ_ENABLE_EPUB
  909. FZ_ENABLE_FB2 = _mupdf.FZ_ENABLE_FB2
  910. FZ_ENABLE_MOBI = _mupdf.FZ_ENABLE_MOBI
  911. FZ_ENABLE_TXT = _mupdf.FZ_ENABLE_TXT
  912. FZ_ENABLE_OFFICE = _mupdf.FZ_ENABLE_OFFICE
  913. FZ_ENABLE_OCR_OUTPUT = _mupdf.FZ_ENABLE_OCR_OUTPUT
  914. FZ_ENABLE_ODT_OUTPUT = _mupdf.FZ_ENABLE_ODT_OUTPUT
  915. FZ_ENABLE_DOCX_OUTPUT = _mupdf.FZ_ENABLE_DOCX_OUTPUT
  916. FZ_ENABLE_JPX = _mupdf.FZ_ENABLE_JPX
  917. FZ_ENABLE_BROTLI = _mupdf.FZ_ENABLE_BROTLI
  918. FZ_ENABLE_JS = _mupdf.FZ_ENABLE_JS
  919. FZ_ENABLE_ICC = _mupdf.FZ_ENABLE_ICC
  920. FZ_ENABLE_HTML_ENGINE = _mupdf.FZ_ENABLE_HTML_ENGINE
  921. FZ_ENABLE_BARCODE = _mupdf.FZ_ENABLE_BARCODE
  922. FZ_FLEXIBLE_ARRAY = _mupdf.FZ_FLEXIBLE_ARRAY
  923. r"""Include the standard libc headers."""
  924. MEMENTO_PREFILL = _mupdf.MEMENTO_PREFILL
  925. MEMENTO_POSTFILL = _mupdf.MEMENTO_POSTFILL
  926. MEMENTO_ALLOCFILL = _mupdf.MEMENTO_ALLOCFILL
  927. MEMENTO_FREEFILL = _mupdf.MEMENTO_FREEFILL
  928. def Memento_checkBlock(arg1):
  929. return _mupdf.Memento_checkBlock(arg1)
  930. def Memento_checkAllMemory():
  931. return _mupdf.Memento_checkAllMemory()
  932. def Memento_check():
  933. return _mupdf.Memento_check()
  934. def Memento_setParanoia(arg1):
  935. return _mupdf.Memento_setParanoia(arg1)
  936. def Memento_paranoidAt(arg1):
  937. return _mupdf.Memento_paranoidAt(arg1)
  938. def Memento_breakAt(arg1):
  939. return _mupdf.Memento_breakAt(arg1)
  940. def Memento_breakOnFree(a):
  941. return _mupdf.Memento_breakOnFree(a)
  942. def Memento_breakOnRealloc(a):
  943. return _mupdf.Memento_breakOnRealloc(a)
  944. def Memento_getBlockNum(arg1):
  945. return _mupdf.Memento_getBlockNum(arg1)
  946. def Memento_find(a):
  947. return _mupdf.Memento_find(a)
  948. def Memento_breakpoint():
  949. return _mupdf.Memento_breakpoint()
  950. def Memento_failAt(arg1):
  951. return _mupdf.Memento_failAt(arg1)
  952. def Memento_failThisEvent():
  953. return _mupdf.Memento_failThisEvent()
  954. def Memento_listBlocks():
  955. return _mupdf.Memento_listBlocks()
  956. def Memento_listNewBlocks():
  957. return _mupdf.Memento_listNewBlocks()
  958. def Memento_listLargeBlocks():
  959. return _mupdf.Memento_listLargeBlocks()
  960. def Memento_listPhasedBlocks():
  961. return _mupdf.Memento_listPhasedBlocks()
  962. def Memento_setMax(arg1):
  963. return _mupdf.Memento_setMax(arg1)
  964. def Memento_stats():
  965. return _mupdf.Memento_stats()
  966. def Memento_label(arg1, arg2):
  967. return _mupdf.Memento_label(arg1, arg2)
  968. def Memento_tick():
  969. return _mupdf.Memento_tick()
  970. def Memento_setVerbose(arg1):
  971. return _mupdf.Memento_setVerbose(arg1)
  972. def Memento_addBacktraceLimitFnname(fnname):
  973. return _mupdf.Memento_addBacktraceLimitFnname(fnname)
  974. def Memento_setAtexitFin(atexitfin):
  975. return _mupdf.Memento_setAtexitFin(atexitfin)
  976. def Memento_setIgnoreNewDelete(ignore):
  977. return _mupdf.Memento_setIgnoreNewDelete(ignore)
  978. def Memento_malloc(s):
  979. return _mupdf.Memento_malloc(s)
  980. def Memento_realloc(arg1, s):
  981. return _mupdf.Memento_realloc(arg1, s)
  982. def Memento_free(arg1):
  983. return _mupdf.Memento_free(arg1)
  984. def Memento_calloc(arg1, arg2):
  985. return _mupdf.Memento_calloc(arg1, arg2)
  986. def Memento_strdup(arg1):
  987. return _mupdf.Memento_strdup(arg1)
  988. def Memento_info(addr):
  989. return _mupdf.Memento_info(addr)
  990. def Memento_listBlockInfo():
  991. return _mupdf.Memento_listBlockInfo()
  992. def Memento_blockInfo(blk):
  993. return _mupdf.Memento_blockInfo(blk)
  994. def Memento_takeByteRef(blk):
  995. return _mupdf.Memento_takeByteRef(blk)
  996. def Memento_dropByteRef(blk):
  997. return _mupdf.Memento_dropByteRef(blk)
  998. def Memento_takeShortRef(blk):
  999. return _mupdf.Memento_takeShortRef(blk)
  1000. def Memento_dropShortRef(blk):
  1001. return _mupdf.Memento_dropShortRef(blk)
  1002. def Memento_takeIntRef(blk):
  1003. return _mupdf.Memento_takeIntRef(blk)
  1004. def Memento_dropIntRef(blk):
  1005. return _mupdf.Memento_dropIntRef(blk)
  1006. def Memento_takeRef(blk):
  1007. return _mupdf.Memento_takeRef(blk)
  1008. def Memento_dropRef(blk):
  1009. return _mupdf.Memento_dropRef(blk)
  1010. def Memento_adjustRef(blk, adjust):
  1011. return _mupdf.Memento_adjustRef(blk, adjust)
  1012. def Memento_reference(blk):
  1013. return _mupdf.Memento_reference(blk)
  1014. def Memento_checkPointerOrNull(blk):
  1015. return _mupdf.Memento_checkPointerOrNull(blk)
  1016. def Memento_checkBytePointerOrNull(blk):
  1017. return _mupdf.Memento_checkBytePointerOrNull(blk)
  1018. def Memento_checkShortPointerOrNull(blk):
  1019. return _mupdf.Memento_checkShortPointerOrNull(blk)
  1020. def Memento_checkIntPointerOrNull(blk):
  1021. return _mupdf.Memento_checkIntPointerOrNull(blk)
  1022. def Memento_startLeaking():
  1023. return _mupdf.Memento_startLeaking()
  1024. def Memento_stopLeaking():
  1025. return _mupdf.Memento_stopLeaking()
  1026. def Memento_sequence():
  1027. return _mupdf.Memento_sequence()
  1028. def Memento_squeezing():
  1029. return _mupdf.Memento_squeezing()
  1030. def Memento_fin():
  1031. return _mupdf.Memento_fin()
  1032. def Memento_bt():
  1033. return _mupdf.Memento_bt()
  1034. PATH_MAX = _mupdf.PATH_MAX
  1035. FZ_PI = _mupdf.FZ_PI
  1036. FZ_RADIAN = _mupdf.FZ_RADIAN
  1037. FZ_DEGREE = _mupdf.FZ_DEGREE
  1038. FZ_SQRT2 = _mupdf.FZ_SQRT2
  1039. FZ_LN2 = _mupdf.FZ_LN2
  1040. ARCH_HAS_NEON = _mupdf.ARCH_HAS_NEON
  1041. r"""Spot architectures where we have optimisations."""
  1042. ARCH_HAS_SSE = _mupdf.ARCH_HAS_SSE
  1043. HAVE_SIGSETJMP = _mupdf.HAVE_SIGSETJMP
  1044. r"""Some differences in libc can be smoothed over"""
  1045. EOF = _mupdf.EOF
  1046. SEEK_SET = _mupdf.SEEK_SET
  1047. SEEK_CUR = _mupdf.SEEK_CUR
  1048. SEEK_END = _mupdf.SEEK_END
  1049. M_PI = _mupdf.M_PI
  1050. class fz_point(object):
  1051. r"""fz_point is a point in a two-dimensional space."""
  1052. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1053. __repr__ = _swig_repr
  1054. x = property(_mupdf.fz_point_x_get, _mupdf.fz_point_x_set)
  1055. y = property(_mupdf.fz_point_y_get, _mupdf.fz_point_y_set)
  1056. def __init__(self):
  1057. _mupdf.fz_point_swiginit(self, _mupdf.new_fz_point())
  1058. __swig_destroy__ = _mupdf.delete_fz_point
  1059. # Register fz_point in _mupdf:
  1060. _mupdf.fz_point_swigregister(fz_point)
  1061. class fz_rect(object):
  1062. r"""
  1063. fz_rect is a rectangle represented by two diagonally opposite
  1064. corners at arbitrary coordinates.
  1065. Rectangles are always axis-aligned with the X- and Y- axes. We
  1066. wish to distinguish rectangles in 3 categories; infinite, finite,
  1067. and invalid. Zero area rectangles are a sub-category of finite
  1068. ones.
  1069. For all valid rectangles, x0 <= x1 and y0 <= y1 in all cases.
  1070. Infinite rectangles have x0 = y0 = FZ_MIN_INF_RECT,
  1071. x1 = y1 = FZ_MAX_INF_RECT. For any non infinite valid rectangle,
  1072. the area is defined as (x1 - x0) * (y1 - y0).
  1073. To check for empty or infinite rectangles use fz_is_empty_rect
  1074. and fz_is_infinite_rect. To check for valid rectangles use
  1075. fz_is_valid_rect.
  1076. We choose this representation, so that we can easily distinguish
  1077. the difference between intersecting 2 valid rectangles and
  1078. getting an invalid one, as opposed to getting a zero area one
  1079. (which nonetheless has valid bounds within the plane).
  1080. x0, y0: The top left corner.
  1081. x1, y1: The bottom right corner.
  1082. We choose FZ_{MIN,MAX}_INF_RECT to be the largest 32bit signed
  1083. integer values that survive roundtripping to floats.
  1084. """
  1085. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1086. __repr__ = _swig_repr
  1087. x0 = property(_mupdf.fz_rect_x0_get, _mupdf.fz_rect_x0_set)
  1088. y0 = property(_mupdf.fz_rect_y0_get, _mupdf.fz_rect_y0_set)
  1089. x1 = property(_mupdf.fz_rect_x1_get, _mupdf.fz_rect_x1_set)
  1090. y1 = property(_mupdf.fz_rect_y1_get, _mupdf.fz_rect_y1_set)
  1091. def __init__(self):
  1092. _mupdf.fz_rect_swiginit(self, _mupdf.new_fz_rect())
  1093. __swig_destroy__ = _mupdf.delete_fz_rect
  1094. # Register fz_rect in _mupdf:
  1095. _mupdf.fz_rect_swigregister(fz_rect)
  1096. class fz_irect(object):
  1097. r"""
  1098. fz_irect is a rectangle using integers instead of floats.
  1099. It's used in the draw device and for pixmap dimensions.
  1100. """
  1101. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1102. __repr__ = _swig_repr
  1103. x0 = property(_mupdf.fz_irect_x0_get, _mupdf.fz_irect_x0_set)
  1104. y0 = property(_mupdf.fz_irect_y0_get, _mupdf.fz_irect_y0_set)
  1105. x1 = property(_mupdf.fz_irect_x1_get, _mupdf.fz_irect_x1_set)
  1106. y1 = property(_mupdf.fz_irect_y1_get, _mupdf.fz_irect_y1_set)
  1107. def __init__(self):
  1108. _mupdf.fz_irect_swiginit(self, _mupdf.new_fz_irect())
  1109. __swig_destroy__ = _mupdf.delete_fz_irect
  1110. # Register fz_irect in _mupdf:
  1111. _mupdf.fz_irect_swigregister(fz_irect)
  1112. class fz_matrix(object):
  1113. r"""
  1114. fz_matrix is a row-major 3x3 matrix used for representing
  1115. transformations of coordinates throughout MuPDF.
  1116. Since all points reside in a two-dimensional space, one vector
  1117. is always a constant unit vector; hence only some elements may
  1118. vary in a matrix. Below is how the elements map between
  1119. different representations.
  1120. a b 0
  1121. | c d 0 | normally represented as [ a b c d e f ].
  1122. \ e f 1 /
  1123. """
  1124. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1125. __repr__ = _swig_repr
  1126. a = property(_mupdf.fz_matrix_a_get, _mupdf.fz_matrix_a_set)
  1127. b = property(_mupdf.fz_matrix_b_get, _mupdf.fz_matrix_b_set)
  1128. c = property(_mupdf.fz_matrix_c_get, _mupdf.fz_matrix_c_set)
  1129. d = property(_mupdf.fz_matrix_d_get, _mupdf.fz_matrix_d_set)
  1130. e = property(_mupdf.fz_matrix_e_get, _mupdf.fz_matrix_e_set)
  1131. f = property(_mupdf.fz_matrix_f_get, _mupdf.fz_matrix_f_set)
  1132. def __init__(self):
  1133. _mupdf.fz_matrix_swiginit(self, _mupdf.new_fz_matrix())
  1134. __swig_destroy__ = _mupdf.delete_fz_matrix
  1135. # Register fz_matrix in _mupdf:
  1136. _mupdf.fz_matrix_swigregister(fz_matrix)
  1137. cvar = _mupdf.cvar
  1138. fz_unit_rect = cvar.fz_unit_rect
  1139. fz_empty_rect = cvar.fz_empty_rect
  1140. fz_empty_irect = cvar.fz_empty_irect
  1141. fz_infinite_rect = cvar.fz_infinite_rect
  1142. fz_infinite_irect = cvar.fz_infinite_irect
  1143. fz_invalid_rect = cvar.fz_invalid_rect
  1144. fz_invalid_irect = cvar.fz_invalid_irect
  1145. class fz_quad(object):
  1146. r"""
  1147. A representation for a region defined by 4 points.
  1148. The significant difference between quads and rects is that
  1149. the edges of quads are not axis aligned.
  1150. """
  1151. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1152. __repr__ = _swig_repr
  1153. ul = property(_mupdf.fz_quad_ul_get, _mupdf.fz_quad_ul_set)
  1154. ur = property(_mupdf.fz_quad_ur_get, _mupdf.fz_quad_ur_set)
  1155. ll = property(_mupdf.fz_quad_ll_get, _mupdf.fz_quad_ll_set)
  1156. lr = property(_mupdf.fz_quad_lr_get, _mupdf.fz_quad_lr_set)
  1157. def __init__(self):
  1158. _mupdf.fz_quad_swiginit(self, _mupdf.new_fz_quad())
  1159. __swig_destroy__ = _mupdf.delete_fz_quad
  1160. # Register fz_quad in _mupdf:
  1161. _mupdf.fz_quad_swigregister(fz_quad)
  1162. fz_identity = cvar.fz_identity
  1163. FZ_VERBOSE_EXCEPTIONS = _mupdf.FZ_VERBOSE_EXCEPTIONS
  1164. class fz_alloc_context(object):
  1165. r"""Allocator structure; holds callbacks and private data pointer."""
  1166. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1167. __repr__ = _swig_repr
  1168. user = property(_mupdf.fz_alloc_context_user_get, _mupdf.fz_alloc_context_user_set)
  1169. malloc = property(_mupdf.fz_alloc_context_malloc_get, _mupdf.fz_alloc_context_malloc_set)
  1170. realloc = property(_mupdf.fz_alloc_context_realloc_get, _mupdf.fz_alloc_context_realloc_set)
  1171. free = property(_mupdf.fz_alloc_context_free_get, _mupdf.fz_alloc_context_free_set)
  1172. def __init__(self):
  1173. _mupdf.fz_alloc_context_swiginit(self, _mupdf.new_fz_alloc_context())
  1174. __swig_destroy__ = _mupdf.delete_fz_alloc_context
  1175. # Register fz_alloc_context in _mupdf:
  1176. _mupdf.fz_alloc_context_swigregister(fz_alloc_context)
  1177. fz_invalid_quad = cvar.fz_invalid_quad
  1178. fz_infinite_quad = cvar.fz_infinite_quad
  1179. FZ_ERROR_NONE = _mupdf.FZ_ERROR_NONE
  1180. FZ_ERROR_GENERIC = _mupdf.FZ_ERROR_GENERIC
  1181. FZ_ERROR_SYSTEM = _mupdf.FZ_ERROR_SYSTEM
  1182. FZ_ERROR_LIBRARY = _mupdf.FZ_ERROR_LIBRARY
  1183. FZ_ERROR_ARGUMENT = _mupdf.FZ_ERROR_ARGUMENT
  1184. FZ_ERROR_LIMIT = _mupdf.FZ_ERROR_LIMIT
  1185. FZ_ERROR_UNSUPPORTED = _mupdf.FZ_ERROR_UNSUPPORTED
  1186. FZ_ERROR_FORMAT = _mupdf.FZ_ERROR_FORMAT
  1187. FZ_ERROR_SYNTAX = _mupdf.FZ_ERROR_SYNTAX
  1188. FZ_ERROR_TRYLATER = _mupdf.FZ_ERROR_TRYLATER
  1189. FZ_ERROR_ABORT = _mupdf.FZ_ERROR_ABORT
  1190. FZ_ERROR_REPAIRED = _mupdf.FZ_ERROR_REPAIRED
  1191. class fz_locks_context(object):
  1192. r"""
  1193. Locking functions
  1194. MuPDF is kept deliberately free of any knowledge of particular
  1195. threading systems. As such, in order for safe multi-threaded
  1196. operation, we rely on callbacks to client provided functions.
  1197. A client is expected to provide FZ_LOCK_MAX number of mutexes,
  1198. and a function to lock/unlock each of them. These may be
  1199. recursive mutexes, but do not have to be.
  1200. If a client does not intend to use multiple threads, then it
  1201. may pass NULL instead of a lock structure.
  1202. In order to avoid deadlocks, we have one simple rule
  1203. internally as to how we use locks: We can never take lock n
  1204. when we already hold any lock i, where 0 <= i <= n. In order
  1205. to verify this, we have some debugging code, that can be
  1206. enabled by defining FITZ_DEBUG_LOCKING.
  1207. """
  1208. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1209. __repr__ = _swig_repr
  1210. user = property(_mupdf.fz_locks_context_user_get, _mupdf.fz_locks_context_user_set)
  1211. lock = property(_mupdf.fz_locks_context_lock_get, _mupdf.fz_locks_context_lock_set)
  1212. unlock = property(_mupdf.fz_locks_context_unlock_get, _mupdf.fz_locks_context_unlock_set)
  1213. def __init__(self):
  1214. _mupdf.fz_locks_context_swiginit(self, _mupdf.new_fz_locks_context())
  1215. __swig_destroy__ = _mupdf.delete_fz_locks_context
  1216. # Register fz_locks_context in _mupdf:
  1217. _mupdf.fz_locks_context_swigregister(fz_locks_context)
  1218. FZ_LOCK_ALLOC = _mupdf.FZ_LOCK_ALLOC
  1219. FZ_LOCK_FREETYPE = _mupdf.FZ_LOCK_FREETYPE
  1220. FZ_LOCK_GLYPHCACHE = _mupdf.FZ_LOCK_GLYPHCACHE
  1221. FZ_LOCK_MAX = _mupdf.FZ_LOCK_MAX
  1222. FZ_STORE_UNLIMITED = _mupdf.FZ_STORE_UNLIMITED
  1223. FZ_STORE_DEFAULT = _mupdf.FZ_STORE_DEFAULT
  1224. class fz_string(object):
  1225. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1226. __repr__ = _swig_repr
  1227. refs = property(_mupdf.fz_string_refs_get, _mupdf.fz_string_refs_set)
  1228. str = property(_mupdf.fz_string_str_get, _mupdf.fz_string_str_set)
  1229. def __init__(self):
  1230. _mupdf.fz_string_swiginit(self, _mupdf.new_fz_string())
  1231. __swig_destroy__ = _mupdf.delete_fz_string
  1232. # Register fz_string in _mupdf:
  1233. _mupdf.fz_string_swigregister(fz_string)
  1234. FZ_JMPBUF_ALIGN = _mupdf.FZ_JMPBUF_ALIGN
  1235. class fz_error_context(object):
  1236. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1237. __repr__ = _swig_repr
  1238. top = property(_mupdf.fz_error_context_top_get, _mupdf.fz_error_context_top_set)
  1239. stack = property(_mupdf.fz_error_context_stack_get, _mupdf.fz_error_context_stack_set)
  1240. padding = property(_mupdf.fz_error_context_padding_get, _mupdf.fz_error_context_padding_set)
  1241. stack_base = property(_mupdf.fz_error_context_stack_base_get, _mupdf.fz_error_context_stack_base_set)
  1242. errcode = property(_mupdf.fz_error_context_errcode_get, _mupdf.fz_error_context_errcode_set)
  1243. errnum = property(_mupdf.fz_error_context_errnum_get, _mupdf.fz_error_context_errnum_set)
  1244. print_user = property(_mupdf.fz_error_context_print_user_get, _mupdf.fz_error_context_print_user_set)
  1245. _print = property(_mupdf.fz_error_context__print_get, _mupdf.fz_error_context__print_set)
  1246. message = property(_mupdf.fz_error_context_message_get, _mupdf.fz_error_context_message_set)
  1247. def __init__(self):
  1248. _mupdf.fz_error_context_swiginit(self, _mupdf.new_fz_error_context())
  1249. __swig_destroy__ = _mupdf.delete_fz_error_context
  1250. # Register fz_error_context in _mupdf:
  1251. _mupdf.fz_error_context_swigregister(fz_error_context)
  1252. class fz_warn_context(object):
  1253. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1254. __repr__ = _swig_repr
  1255. print_user = property(_mupdf.fz_warn_context_print_user_get, _mupdf.fz_warn_context_print_user_set)
  1256. _print = property(_mupdf.fz_warn_context__print_get, _mupdf.fz_warn_context__print_set)
  1257. count = property(_mupdf.fz_warn_context_count_get, _mupdf.fz_warn_context_count_set)
  1258. message = property(_mupdf.fz_warn_context_message_get, _mupdf.fz_warn_context_message_set)
  1259. def __init__(self):
  1260. _mupdf.fz_warn_context_swiginit(self, _mupdf.new_fz_warn_context())
  1261. __swig_destroy__ = _mupdf.delete_fz_warn_context
  1262. # Register fz_warn_context in _mupdf:
  1263. _mupdf.fz_warn_context_swigregister(fz_warn_context)
  1264. class fz_aa_context(object):
  1265. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1266. __repr__ = _swig_repr
  1267. hscale = property(_mupdf.fz_aa_context_hscale_get, _mupdf.fz_aa_context_hscale_set)
  1268. vscale = property(_mupdf.fz_aa_context_vscale_get, _mupdf.fz_aa_context_vscale_set)
  1269. scale = property(_mupdf.fz_aa_context_scale_get, _mupdf.fz_aa_context_scale_set)
  1270. bits = property(_mupdf.fz_aa_context_bits_get, _mupdf.fz_aa_context_bits_set)
  1271. text_bits = property(_mupdf.fz_aa_context_text_bits_get, _mupdf.fz_aa_context_text_bits_set)
  1272. min_line_width = property(_mupdf.fz_aa_context_min_line_width_get, _mupdf.fz_aa_context_min_line_width_set)
  1273. def __init__(self):
  1274. _mupdf.fz_aa_context_swiginit(self, _mupdf.new_fz_aa_context())
  1275. __swig_destroy__ = _mupdf.delete_fz_aa_context
  1276. # Register fz_aa_context in _mupdf:
  1277. _mupdf.fz_aa_context_swigregister(fz_aa_context)
  1278. FZ_ACTIVITY_NEW_DOC = _mupdf.FZ_ACTIVITY_NEW_DOC
  1279. FZ_ACTIVITY_SHUTDOWN = _mupdf.FZ_ACTIVITY_SHUTDOWN
  1280. class fz_activity_context(object):
  1281. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1282. __repr__ = _swig_repr
  1283. opaque = property(_mupdf.fz_activity_context_opaque_get, _mupdf.fz_activity_context_opaque_set)
  1284. activity = property(_mupdf.fz_activity_context_activity_get, _mupdf.fz_activity_context_activity_set)
  1285. def __init__(self):
  1286. _mupdf.fz_activity_context_swiginit(self, _mupdf.new_fz_activity_context())
  1287. __swig_destroy__ = _mupdf.delete_fz_activity_context
  1288. # Register fz_activity_context in _mupdf:
  1289. _mupdf.fz_activity_context_swigregister(fz_activity_context)
  1290. class fz_context(object):
  1291. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1292. __repr__ = _swig_repr
  1293. user = property(_mupdf.fz_context_user_get, _mupdf.fz_context_user_set)
  1294. master = property(_mupdf.fz_context_master_get, _mupdf.fz_context_master_set)
  1295. context_count = property(_mupdf.fz_context_context_count_get, _mupdf.fz_context_context_count_set)
  1296. next_document_id = property(_mupdf.fz_context_next_document_id_get, _mupdf.fz_context_next_document_id_set)
  1297. alloc = property(_mupdf.fz_context_alloc_get, _mupdf.fz_context_alloc_set)
  1298. locks = property(_mupdf.fz_context_locks_get, _mupdf.fz_context_locks_set)
  1299. error = property(_mupdf.fz_context_error_get, _mupdf.fz_context_error_set)
  1300. warn = property(_mupdf.fz_context_warn_get, _mupdf.fz_context_warn_set)
  1301. activity = property(_mupdf.fz_context_activity_get, _mupdf.fz_context_activity_set)
  1302. aa = property(_mupdf.fz_context_aa_get, _mupdf.fz_context_aa_set)
  1303. seed48 = property(_mupdf.fz_context_seed48_get, _mupdf.fz_context_seed48_set)
  1304. icc_enabled = property(_mupdf.fz_context_icc_enabled_get, _mupdf.fz_context_icc_enabled_set)
  1305. throw_on_repair = property(_mupdf.fz_context_throw_on_repair_get, _mupdf.fz_context_throw_on_repair_set)
  1306. handler = property(_mupdf.fz_context_handler_get, _mupdf.fz_context_handler_set)
  1307. archive = property(_mupdf.fz_context_archive_get, _mupdf.fz_context_archive_set)
  1308. style = property(_mupdf.fz_context_style_get, _mupdf.fz_context_style_set)
  1309. tuning = property(_mupdf.fz_context_tuning_get, _mupdf.fz_context_tuning_set)
  1310. stddbg = property(_mupdf.fz_context_stddbg_get, _mupdf.fz_context_stddbg_set)
  1311. font = property(_mupdf.fz_context_font_get, _mupdf.fz_context_font_set)
  1312. colorspace = property(_mupdf.fz_context_colorspace_get, _mupdf.fz_context_colorspace_set)
  1313. store = property(_mupdf.fz_context_store_get, _mupdf.fz_context_store_set)
  1314. glyph_cache = property(_mupdf.fz_context_glyph_cache_get, _mupdf.fz_context_glyph_cache_set)
  1315. def __init__(self):
  1316. _mupdf.fz_context_swiginit(self, _mupdf.new_fz_context())
  1317. __swig_destroy__ = _mupdf.delete_fz_context
  1318. # Register fz_context in _mupdf:
  1319. _mupdf.fz_context_swigregister(fz_context)
  1320. class fz_buffer(object):
  1321. r"""
  1322. fz_buffer is a wrapper around a dynamically allocated array of
  1323. bytes.
  1324. Buffers have a capacity (the number of bytes storage immediately
  1325. available) and a current size.
  1326. The contents of the structure are considered implementation
  1327. details and are subject to change. Users should use the accessor
  1328. functions in preference.
  1329. """
  1330. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1331. __repr__ = _swig_repr
  1332. refs = property(_mupdf.fz_buffer_refs_get, _mupdf.fz_buffer_refs_set)
  1333. data = property(_mupdf.fz_buffer_data_get, _mupdf.fz_buffer_data_set)
  1334. cap = property(_mupdf.fz_buffer_cap_get, _mupdf.fz_buffer_cap_set)
  1335. len = property(_mupdf.fz_buffer_len_get, _mupdf.fz_buffer_len_set)
  1336. unused_bits = property(_mupdf.fz_buffer_unused_bits_get, _mupdf.fz_buffer_unused_bits_set)
  1337. shared = property(_mupdf.fz_buffer_shared_get, _mupdf.fz_buffer_shared_set)
  1338. def __init__(self):
  1339. _mupdf.fz_buffer_swiginit(self, _mupdf.new_fz_buffer())
  1340. __swig_destroy__ = _mupdf.delete_fz_buffer
  1341. # Register fz_buffer in _mupdf:
  1342. _mupdf.fz_buffer_swigregister(fz_buffer)
  1343. FZ_REPLACEMENT_CHARACTER = _mupdf.FZ_REPLACEMENT_CHARACTER
  1344. FZ_UTFMAX = _mupdf.FZ_UTFMAX
  1345. class fz_stream(object):
  1346. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1347. __repr__ = _swig_repr
  1348. refs = property(_mupdf.fz_stream_refs_get, _mupdf.fz_stream_refs_set)
  1349. error = property(_mupdf.fz_stream_error_get, _mupdf.fz_stream_error_set)
  1350. eof = property(_mupdf.fz_stream_eof_get, _mupdf.fz_stream_eof_set)
  1351. progressive = property(_mupdf.fz_stream_progressive_get, _mupdf.fz_stream_progressive_set)
  1352. pos = property(_mupdf.fz_stream_pos_get, _mupdf.fz_stream_pos_set)
  1353. avail = property(_mupdf.fz_stream_avail_get, _mupdf.fz_stream_avail_set)
  1354. bits = property(_mupdf.fz_stream_bits_get, _mupdf.fz_stream_bits_set)
  1355. rp = property(_mupdf.fz_stream_rp_get, _mupdf.fz_stream_rp_set)
  1356. wp = property(_mupdf.fz_stream_wp_get, _mupdf.fz_stream_wp_set)
  1357. state = property(_mupdf.fz_stream_state_get, _mupdf.fz_stream_state_set)
  1358. next = property(_mupdf.fz_stream_next_get, _mupdf.fz_stream_next_set)
  1359. drop = property(_mupdf.fz_stream_drop_get, _mupdf.fz_stream_drop_set)
  1360. seek = property(_mupdf.fz_stream_seek_get, _mupdf.fz_stream_seek_set)
  1361. def __init__(self):
  1362. _mupdf.fz_stream_swiginit(self, _mupdf.new_fz_stream())
  1363. __swig_destroy__ = _mupdf.delete_fz_stream
  1364. # Register fz_stream in _mupdf:
  1365. _mupdf.fz_stream_swigregister(fz_stream)
  1366. class fz_output(object):
  1367. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1368. __repr__ = _swig_repr
  1369. state = property(_mupdf.fz_output_state_get, _mupdf.fz_output_state_set)
  1370. write = property(_mupdf.fz_output_write_get, _mupdf.fz_output_write_set)
  1371. seek = property(_mupdf.fz_output_seek_get, _mupdf.fz_output_seek_set)
  1372. tell = property(_mupdf.fz_output_tell_get, _mupdf.fz_output_tell_set)
  1373. close = property(_mupdf.fz_output_close_get, _mupdf.fz_output_close_set)
  1374. drop = property(_mupdf.fz_output_drop_get, _mupdf.fz_output_drop_set)
  1375. reset = property(_mupdf.fz_output_reset_get, _mupdf.fz_output_reset_set)
  1376. as_stream = property(_mupdf.fz_output_as_stream_get, _mupdf.fz_output_as_stream_set)
  1377. truncate = property(_mupdf.fz_output_truncate_get, _mupdf.fz_output_truncate_set)
  1378. closed = property(_mupdf.fz_output_closed_get, _mupdf.fz_output_closed_set)
  1379. bp = property(_mupdf.fz_output_bp_get, _mupdf.fz_output_bp_set)
  1380. wp = property(_mupdf.fz_output_wp_get, _mupdf.fz_output_wp_set)
  1381. ep = property(_mupdf.fz_output_ep_get, _mupdf.fz_output_ep_set)
  1382. buffered = property(_mupdf.fz_output_buffered_get, _mupdf.fz_output_buffered_set)
  1383. bits = property(_mupdf.fz_output_bits_get, _mupdf.fz_output_bits_set)
  1384. def __init__(self):
  1385. _mupdf.fz_output_swiginit(self, _mupdf.new_fz_output())
  1386. __swig_destroy__ = _mupdf.delete_fz_output
  1387. # Register fz_output in _mupdf:
  1388. _mupdf.fz_output_swigregister(fz_output)
  1389. class fz_md5(object):
  1390. r"""
  1391. Structure definition is public to enable stack
  1392. based allocation. Do not access the members directly.
  1393. """
  1394. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1395. __repr__ = _swig_repr
  1396. lo = property(_mupdf.fz_md5_lo_get, _mupdf.fz_md5_lo_set)
  1397. hi = property(_mupdf.fz_md5_hi_get, _mupdf.fz_md5_hi_set)
  1398. a = property(_mupdf.fz_md5_a_get, _mupdf.fz_md5_a_set)
  1399. b = property(_mupdf.fz_md5_b_get, _mupdf.fz_md5_b_set)
  1400. c = property(_mupdf.fz_md5_c_get, _mupdf.fz_md5_c_set)
  1401. d = property(_mupdf.fz_md5_d_get, _mupdf.fz_md5_d_set)
  1402. buffer = property(_mupdf.fz_md5_buffer_get, _mupdf.fz_md5_buffer_set)
  1403. def __init__(self):
  1404. _mupdf.fz_md5_swiginit(self, _mupdf.new_fz_md5())
  1405. __swig_destroy__ = _mupdf.delete_fz_md5
  1406. # Register fz_md5 in _mupdf:
  1407. _mupdf.fz_md5_swigregister(fz_md5)
  1408. class fz_sha256(object):
  1409. r"""
  1410. Structure definition is public to enable stack
  1411. based allocation. Do not access the members directly.
  1412. """
  1413. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1414. __repr__ = _swig_repr
  1415. state = property(_mupdf.fz_sha256_state_get, _mupdf.fz_sha256_state_set)
  1416. count = property(_mupdf.fz_sha256_count_get, _mupdf.fz_sha256_count_set)
  1417. def __init__(self):
  1418. _mupdf.fz_sha256_swiginit(self, _mupdf.new_fz_sha256())
  1419. __swig_destroy__ = _mupdf.delete_fz_sha256
  1420. # Register fz_sha256 in _mupdf:
  1421. _mupdf.fz_sha256_swigregister(fz_sha256)
  1422. class fz_sha512(object):
  1423. r"""
  1424. Structure definition is public to enable stack
  1425. based allocation. Do not access the members directly.
  1426. """
  1427. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1428. __repr__ = _swig_repr
  1429. state = property(_mupdf.fz_sha512_state_get, _mupdf.fz_sha512_state_set)
  1430. count = property(_mupdf.fz_sha512_count_get, _mupdf.fz_sha512_count_set)
  1431. def __init__(self):
  1432. _mupdf.fz_sha512_swiginit(self, _mupdf.new_fz_sha512())
  1433. __swig_destroy__ = _mupdf.delete_fz_sha512
  1434. # Register fz_sha512 in _mupdf:
  1435. _mupdf.fz_sha512_swigregister(fz_sha512)
  1436. class fz_arc4(object):
  1437. r"""
  1438. Structure definition is public to enable stack
  1439. based allocation. Do not access the members directly.
  1440. """
  1441. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1442. __repr__ = _swig_repr
  1443. x = property(_mupdf.fz_arc4_x_get, _mupdf.fz_arc4_x_set)
  1444. y = property(_mupdf.fz_arc4_y_get, _mupdf.fz_arc4_y_set)
  1445. state = property(_mupdf.fz_arc4_state_get, _mupdf.fz_arc4_state_set)
  1446. def __init__(self):
  1447. _mupdf.fz_arc4_swiginit(self, _mupdf.new_fz_arc4())
  1448. __swig_destroy__ = _mupdf.delete_fz_arc4
  1449. # Register fz_arc4 in _mupdf:
  1450. _mupdf.fz_arc4_swigregister(fz_arc4)
  1451. class fz_aes(object):
  1452. r"""
  1453. Structure definitions are public to enable stack
  1454. based allocation. Do not access the members directly.
  1455. """
  1456. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1457. __repr__ = _swig_repr
  1458. nr = property(_mupdf.fz_aes_nr_get, _mupdf.fz_aes_nr_set)
  1459. rk = property(_mupdf.fz_aes_rk_get, _mupdf.fz_aes_rk_set)
  1460. buf = property(_mupdf.fz_aes_buf_get, _mupdf.fz_aes_buf_set)
  1461. def __init__(self):
  1462. _mupdf.fz_aes_swiginit(self, _mupdf.new_fz_aes())
  1463. __swig_destroy__ = _mupdf.delete_fz_aes
  1464. # Register fz_aes in _mupdf:
  1465. _mupdf.fz_aes_swigregister(fz_aes)
  1466. FZ_AES_DECRYPT = _mupdf.FZ_AES_DECRYPT
  1467. FZ_AES_ENCRYPT = _mupdf.FZ_AES_ENCRYPT
  1468. class fz_getopt_long_options(object):
  1469. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1470. __repr__ = _swig_repr
  1471. option = property(_mupdf.fz_getopt_long_options_option_get, _mupdf.fz_getopt_long_options_option_set)
  1472. flag = property(_mupdf.fz_getopt_long_options_flag_get, _mupdf.fz_getopt_long_options_flag_set)
  1473. opaque = property(_mupdf.fz_getopt_long_options_opaque_get, _mupdf.fz_getopt_long_options_opaque_set)
  1474. def __init__(self):
  1475. _mupdf.fz_getopt_long_options_swiginit(self, _mupdf.new_fz_getopt_long_options())
  1476. __swig_destroy__ = _mupdf.delete_fz_getopt_long_options
  1477. # Register fz_getopt_long_options in _mupdf:
  1478. _mupdf.fz_getopt_long_options_swigregister(fz_getopt_long_options)
  1479. FZ_HASH_TABLE_KEY_LENGTH = _mupdf.FZ_HASH_TABLE_KEY_LENGTH
  1480. FZ_BIDI_LTR = _mupdf.FZ_BIDI_LTR
  1481. FZ_BIDI_RTL = _mupdf.FZ_BIDI_RTL
  1482. FZ_BIDI_NEUTRAL = _mupdf.FZ_BIDI_NEUTRAL
  1483. FZ_BIDI_CLASSIFY_WHITE_SPACE = _mupdf.FZ_BIDI_CLASSIFY_WHITE_SPACE
  1484. FZ_BIDI_REPLACE_TAB = _mupdf.FZ_BIDI_REPLACE_TAB
  1485. class fz_archive_handler(object):
  1486. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1487. __repr__ = _swig_repr
  1488. recognize = property(_mupdf.fz_archive_handler_recognize_get, _mupdf.fz_archive_handler_recognize_set)
  1489. open = property(_mupdf.fz_archive_handler_open_get, _mupdf.fz_archive_handler_open_set)
  1490. def __init__(self):
  1491. _mupdf.fz_archive_handler_swiginit(self, _mupdf.new_fz_archive_handler())
  1492. __swig_destroy__ = _mupdf.delete_fz_archive_handler
  1493. # Register fz_archive_handler in _mupdf:
  1494. _mupdf.fz_archive_handler_swigregister(fz_archive_handler)
  1495. class fz_archive(object):
  1496. r"""Implementation details: Subject to change."""
  1497. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1498. __repr__ = _swig_repr
  1499. refs = property(_mupdf.fz_archive_refs_get, _mupdf.fz_archive_refs_set)
  1500. file = property(_mupdf.fz_archive_file_get, _mupdf.fz_archive_file_set)
  1501. format = property(_mupdf.fz_archive_format_get, _mupdf.fz_archive_format_set)
  1502. drop_archive = property(_mupdf.fz_archive_drop_archive_get, _mupdf.fz_archive_drop_archive_set)
  1503. count_entries = property(_mupdf.fz_archive_count_entries_get, _mupdf.fz_archive_count_entries_set)
  1504. list_entry = property(_mupdf.fz_archive_list_entry_get, _mupdf.fz_archive_list_entry_set)
  1505. has_entry = property(_mupdf.fz_archive_has_entry_get, _mupdf.fz_archive_has_entry_set)
  1506. read_entry = property(_mupdf.fz_archive_read_entry_get, _mupdf.fz_archive_read_entry_set)
  1507. open_entry = property(_mupdf.fz_archive_open_entry_get, _mupdf.fz_archive_open_entry_set)
  1508. def __init__(self):
  1509. _mupdf.fz_archive_swiginit(self, _mupdf.new_fz_archive())
  1510. __swig_destroy__ = _mupdf.delete_fz_archive
  1511. # Register fz_archive in _mupdf:
  1512. _mupdf.fz_archive_swigregister(fz_archive)
  1513. fz_libarchive_archive_handler = cvar.fz_libarchive_archive_handler
  1514. FZ_JSON_NULL = _mupdf.FZ_JSON_NULL
  1515. FZ_JSON_TRUE = _mupdf.FZ_JSON_TRUE
  1516. FZ_JSON_FALSE = _mupdf.FZ_JSON_FALSE
  1517. FZ_JSON_NUMBER = _mupdf.FZ_JSON_NUMBER
  1518. FZ_JSON_STRING = _mupdf.FZ_JSON_STRING
  1519. FZ_JSON_ARRAY = _mupdf.FZ_JSON_ARRAY
  1520. FZ_JSON_OBJECT = _mupdf.FZ_JSON_OBJECT
  1521. class fz_json(object):
  1522. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1523. __repr__ = _swig_repr
  1524. type = property(_mupdf.fz_json_type_get, _mupdf.fz_json_type_set)
  1525. def __init__(self):
  1526. _mupdf.fz_json_swiginit(self, _mupdf.new_fz_json())
  1527. __swig_destroy__ = _mupdf.delete_fz_json
  1528. # Register fz_json in _mupdf:
  1529. _mupdf.fz_json_swigregister(fz_json)
  1530. class fz_json_array(object):
  1531. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1532. __repr__ = _swig_repr
  1533. value = property(_mupdf.fz_json_array_value_get, _mupdf.fz_json_array_value_set)
  1534. next = property(_mupdf.fz_json_array_next_get, _mupdf.fz_json_array_next_set)
  1535. def __init__(self):
  1536. _mupdf.fz_json_array_swiginit(self, _mupdf.new_fz_json_array())
  1537. __swig_destroy__ = _mupdf.delete_fz_json_array
  1538. # Register fz_json_array in _mupdf:
  1539. _mupdf.fz_json_array_swigregister(fz_json_array)
  1540. class fz_json_object(object):
  1541. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1542. __repr__ = _swig_repr
  1543. key = property(_mupdf.fz_json_object_key_get, _mupdf.fz_json_object_key_set)
  1544. value = property(_mupdf.fz_json_object_value_get, _mupdf.fz_json_object_value_set)
  1545. next = property(_mupdf.fz_json_object_next_get, _mupdf.fz_json_object_next_set)
  1546. def __init__(self):
  1547. _mupdf.fz_json_object_swiginit(self, _mupdf.new_fz_json_object())
  1548. __swig_destroy__ = _mupdf.delete_fz_json_object
  1549. # Register fz_json_object in _mupdf:
  1550. _mupdf.fz_json_object_swigregister(fz_json_object)
  1551. class fz_location(object):
  1552. r"""
  1553. Locations within the document are referred to in terms of
  1554. chapter and page, rather than just a page number. For some
  1555. documents (such as epub documents with large numbers of pages
  1556. broken into many chapters) this can make navigation much faster
  1557. as only the required chapter needs to be decoded at a time.
  1558. """
  1559. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1560. __repr__ = _swig_repr
  1561. chapter = property(_mupdf.fz_location_chapter_get, _mupdf.fz_location_chapter_set)
  1562. page = property(_mupdf.fz_location_page_get, _mupdf.fz_location_page_set)
  1563. def __init__(self):
  1564. _mupdf.fz_location_swiginit(self, _mupdf.new_fz_location())
  1565. __swig_destroy__ = _mupdf.delete_fz_location
  1566. # Register fz_location in _mupdf:
  1567. _mupdf.fz_location_swigregister(fz_location)
  1568. class fz_storable(object):
  1569. r"""
  1570. Any storable object should include an fz_storable structure
  1571. at the start (by convention at least) of their structure.
  1572. (Unless it starts with an fz_key_storable, see below).
  1573. """
  1574. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1575. __repr__ = _swig_repr
  1576. refs = property(_mupdf.fz_storable_refs_get, _mupdf.fz_storable_refs_set)
  1577. drop = property(_mupdf.fz_storable_drop_get, _mupdf.fz_storable_drop_set)
  1578. droppable = property(_mupdf.fz_storable_droppable_get, _mupdf.fz_storable_droppable_set)
  1579. def __init__(self):
  1580. _mupdf.fz_storable_swiginit(self, _mupdf.new_fz_storable())
  1581. __swig_destroy__ = _mupdf.delete_fz_storable
  1582. # Register fz_storable in _mupdf:
  1583. _mupdf.fz_storable_swigregister(fz_storable)
  1584. class fz_key_storable(object):
  1585. r"""
  1586. Any storable object that can appear in the key of another
  1587. storable object should include an fz_key_storable structure
  1588. at the start (by convention at least) of their structure.
  1589. """
  1590. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1591. __repr__ = _swig_repr
  1592. storable = property(_mupdf.fz_key_storable_storable_get, _mupdf.fz_key_storable_storable_set)
  1593. store_key_refs = property(_mupdf.fz_key_storable_store_key_refs_get, _mupdf.fz_key_storable_store_key_refs_set)
  1594. def __init__(self):
  1595. _mupdf.fz_key_storable_swiginit(self, _mupdf.new_fz_key_storable())
  1596. __swig_destroy__ = _mupdf.delete_fz_key_storable
  1597. # Register fz_key_storable in _mupdf:
  1598. _mupdf.fz_key_storable_swigregister(fz_key_storable)
  1599. class fz_store_hash(object):
  1600. r"""
  1601. The store can be seen as a dictionary that maps keys to
  1602. fz_storable values. In order to allow keys of different types to
  1603. be stored, we have a structure full of functions for each key
  1604. 'type'; this fz_store_type pointer is stored with each key, and
  1605. tells the store how to perform certain operations (like taking/
  1606. dropping a reference, comparing two keys, outputting details for
  1607. debugging etc).
  1608. The store uses a hash table internally for speed where possible.
  1609. In order for this to work, we need a mechanism for turning a
  1610. generic 'key' into 'a hashable string'. For this purpose the
  1611. type structure contains a make_hash_key function pointer that
  1612. maps from a void * to a fz_store_hash structure. If
  1613. make_hash_key function returns 0, then the key is determined not
  1614. to be hashable, and the value is not stored in the hash table.
  1615. Some objects can be used both as values within the store, and as
  1616. a component of keys within the store. We refer to these objects
  1617. as "key storable" objects. In this case, we need to take
  1618. additional care to ensure that we do not end up keeping an item
  1619. within the store, purely because its value is referred to by
  1620. another key in the store.
  1621. An example of this are fz_images in PDF files. Each fz_image is
  1622. placed into the store to enable it to be easily reused. When the
  1623. image is rendered, a pixmap is generated from the image, and the
  1624. pixmap is placed into the store so it can be reused on
  1625. subsequent renders. The image forms part of the key for the
  1626. pixmap.
  1627. When we close the pdf document (and any associated pages/display
  1628. lists etc), we drop the images from the store. This may leave us
  1629. in the position of the images having non-zero reference counts
  1630. purely because they are used as part of the keys for the
  1631. pixmaps.
  1632. We therefore use special reference counting functions to keep
  1633. track of these "key storable" items, and hence store the number
  1634. of references to these items that are used in keys.
  1635. When the number of references to an object == the number of
  1636. references to an object from keys in the store, we know that we
  1637. can remove all the items which have that object as part of the
  1638. key. This is done by running a pass over the store, 'reaping'
  1639. those items.
  1640. Reap passes are slower than we would like as they touch every
  1641. item in the store. We therefore provide a way to 'batch' such
  1642. reap passes together, using fz_defer_reap_start/
  1643. fz_defer_reap_end to bracket a region in which many may be
  1644. triggered.
  1645. """
  1646. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1647. __repr__ = _swig_repr
  1648. drop = property(_mupdf.fz_store_hash_drop_get, _mupdf.fz_store_hash_drop_set)
  1649. def __init__(self):
  1650. _mupdf.fz_store_hash_swiginit(self, _mupdf.new_fz_store_hash())
  1651. __swig_destroy__ = _mupdf.delete_fz_store_hash
  1652. # Register fz_store_hash in _mupdf:
  1653. _mupdf.fz_store_hash_swigregister(fz_store_hash)
  1654. class fz_store_type(object):
  1655. r"""
  1656. Every type of object to be placed into the store defines an
  1657. fz_store_type. This contains the pointers to functions to
  1658. make hashes, manipulate keys, and check for needing reaping.
  1659. """
  1660. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1661. __repr__ = _swig_repr
  1662. name = property(_mupdf.fz_store_type_name_get, _mupdf.fz_store_type_name_set)
  1663. make_hash_key = property(_mupdf.fz_store_type_make_hash_key_get, _mupdf.fz_store_type_make_hash_key_set)
  1664. keep_key = property(_mupdf.fz_store_type_keep_key_get, _mupdf.fz_store_type_keep_key_set)
  1665. drop_key = property(_mupdf.fz_store_type_drop_key_get, _mupdf.fz_store_type_drop_key_set)
  1666. cmp_key = property(_mupdf.fz_store_type_cmp_key_get, _mupdf.fz_store_type_cmp_key_set)
  1667. format_key = property(_mupdf.fz_store_type_format_key_get, _mupdf.fz_store_type_format_key_set)
  1668. needs_reap = property(_mupdf.fz_store_type_needs_reap_get, _mupdf.fz_store_type_needs_reap_set)
  1669. def __init__(self):
  1670. _mupdf.fz_store_type_swiginit(self, _mupdf.new_fz_store_type())
  1671. __swig_destroy__ = _mupdf.delete_fz_store_type
  1672. # Register fz_store_type in _mupdf:
  1673. _mupdf.fz_store_type_swigregister(fz_store_type)
  1674. FZ_RI_PERCEPTUAL = _mupdf.FZ_RI_PERCEPTUAL
  1675. FZ_RI_RELATIVE_COLORIMETRIC = _mupdf.FZ_RI_RELATIVE_COLORIMETRIC
  1676. FZ_RI_SATURATION = _mupdf.FZ_RI_SATURATION
  1677. FZ_RI_ABSOLUTE_COLORIMETRIC = _mupdf.FZ_RI_ABSOLUTE_COLORIMETRIC
  1678. class fz_color_params(object):
  1679. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1680. __repr__ = _swig_repr
  1681. ri = property(_mupdf.fz_color_params_ri_get, _mupdf.fz_color_params_ri_set)
  1682. bp = property(_mupdf.fz_color_params_bp_get, _mupdf.fz_color_params_bp_set)
  1683. op = property(_mupdf.fz_color_params_op_get, _mupdf.fz_color_params_op_set)
  1684. opm = property(_mupdf.fz_color_params_opm_get, _mupdf.fz_color_params_opm_set)
  1685. def __init__(self):
  1686. _mupdf.fz_color_params_swiginit(self, _mupdf.new_fz_color_params())
  1687. __swig_destroy__ = _mupdf.delete_fz_color_params
  1688. # Register fz_color_params in _mupdf:
  1689. _mupdf.fz_color_params_swigregister(fz_color_params)
  1690. FZ_MAX_COLORS = _mupdf.FZ_MAX_COLORS
  1691. FZ_COLORSPACE_IS_DEVICE = _mupdf.FZ_COLORSPACE_IS_DEVICE
  1692. FZ_COLORSPACE_IS_ICC = _mupdf.FZ_COLORSPACE_IS_ICC
  1693. FZ_COLORSPACE_HAS_CMYK = _mupdf.FZ_COLORSPACE_HAS_CMYK
  1694. FZ_COLORSPACE_HAS_SPOTS = _mupdf.FZ_COLORSPACE_HAS_SPOTS
  1695. FZ_COLORSPACE_HAS_CMYK_AND_SPOTS = _mupdf.FZ_COLORSPACE_HAS_CMYK_AND_SPOTS
  1696. class fz_default_colorspaces(object):
  1697. r"""Structure to hold default colorspaces."""
  1698. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1699. __repr__ = _swig_repr
  1700. refs = property(_mupdf.fz_default_colorspaces_refs_get, _mupdf.fz_default_colorspaces_refs_set)
  1701. gray = property(_mupdf.fz_default_colorspaces_gray_get, _mupdf.fz_default_colorspaces_gray_set)
  1702. rgb = property(_mupdf.fz_default_colorspaces_rgb_get, _mupdf.fz_default_colorspaces_rgb_set)
  1703. cmyk = property(_mupdf.fz_default_colorspaces_cmyk_get, _mupdf.fz_default_colorspaces_cmyk_set)
  1704. oi = property(_mupdf.fz_default_colorspaces_oi_get, _mupdf.fz_default_colorspaces_oi_set)
  1705. def __init__(self):
  1706. _mupdf.fz_default_colorspaces_swiginit(self, _mupdf.new_fz_default_colorspaces())
  1707. __swig_destroy__ = _mupdf.delete_fz_default_colorspaces
  1708. # Register fz_default_colorspaces in _mupdf:
  1709. _mupdf.fz_default_colorspaces_swigregister(fz_default_colorspaces)
  1710. fz_default_color_params = cvar.fz_default_color_params
  1711. class fz_colorspace(object):
  1712. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1713. __repr__ = _swig_repr
  1714. key_storable = property(_mupdf.fz_colorspace_key_storable_get, _mupdf.fz_colorspace_key_storable_set)
  1715. type = property(_mupdf.fz_colorspace_type_get, _mupdf.fz_colorspace_type_set)
  1716. flags = property(_mupdf.fz_colorspace_flags_get, _mupdf.fz_colorspace_flags_set)
  1717. n = property(_mupdf.fz_colorspace_n_get, _mupdf.fz_colorspace_n_set)
  1718. name = property(_mupdf.fz_colorspace_name_get, _mupdf.fz_colorspace_name_set)
  1719. def __init__(self):
  1720. _mupdf.fz_colorspace_swiginit(self, _mupdf.new_fz_colorspace())
  1721. __swig_destroy__ = _mupdf.delete_fz_colorspace
  1722. # Register fz_colorspace in _mupdf:
  1723. _mupdf.fz_colorspace_swigregister(fz_colorspace)
  1724. FZ_MAX_SEPARATIONS = _mupdf.FZ_MAX_SEPARATIONS
  1725. FZ_SEPARATION_COMPOSITE = _mupdf.FZ_SEPARATION_COMPOSITE
  1726. FZ_SEPARATION_SPOT = _mupdf.FZ_SEPARATION_SPOT
  1727. FZ_SEPARATION_DISABLED = _mupdf.FZ_SEPARATION_DISABLED
  1728. class fz_pixmap(object):
  1729. r"""
  1730. Pixmaps represent a set of pixels for a 2 dimensional region of
  1731. a plane. Each pixel has n components per pixel. The components
  1732. are in the order process-components, spot-colors, alpha, where
  1733. there can be 0 of any of those types. The data is in
  1734. premultiplied alpha when rendering, but non-premultiplied for
  1735. colorspace conversions and rescaling.
  1736. x, y: The minimum x and y coord of the region in pixels.
  1737. w, h: The width and height of the region in pixels.
  1738. n: The number of color components in the image.
  1739. n = num composite colors + num spots + num alphas
  1740. s: The number of spot channels in the image.
  1741. alpha: 0 for no alpha, 1 for alpha present.
  1742. flags: flag bits.
  1743. Bit 0: If set, draw the image with linear interpolation.
  1744. Bit 1: If set, free the samples buffer when the pixmap
  1745. is destroyed.
  1746. stride: The byte offset from the data for any given pixel
  1747. to the data for the same pixel on the row below.
  1748. seps: NULL, or a pointer to a separations structure. If NULL,
  1749. s should be 0.
  1750. xres, yres: Image resolution in dpi. Default is 96 dpi.
  1751. colorspace: Pointer to a colorspace object describing the
  1752. colorspace the pixmap is in. If NULL, the image is a mask.
  1753. samples: Pointer to the first byte of the pixmap sample data.
  1754. This is typically a simple block of memory w * h * n bytes of
  1755. memory in which the components are stored linearly, but with the
  1756. use of appropriate stride values, scanlines can be stored in
  1757. different orders, and have different amounts of padding. The
  1758. first n bytes are components 0 to n-1 for the pixel at (x,y).
  1759. Each successive n bytes gives another pixel in scanline order
  1760. as we move across the line. The start of each scanline is offset
  1761. the start of the previous one by stride bytes.
  1762. """
  1763. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1764. __repr__ = _swig_repr
  1765. storable = property(_mupdf.fz_pixmap_storable_get, _mupdf.fz_pixmap_storable_set)
  1766. x = property(_mupdf.fz_pixmap_x_get, _mupdf.fz_pixmap_x_set)
  1767. y = property(_mupdf.fz_pixmap_y_get, _mupdf.fz_pixmap_y_set)
  1768. w = property(_mupdf.fz_pixmap_w_get, _mupdf.fz_pixmap_w_set)
  1769. h = property(_mupdf.fz_pixmap_h_get, _mupdf.fz_pixmap_h_set)
  1770. n = property(_mupdf.fz_pixmap_n_get, _mupdf.fz_pixmap_n_set)
  1771. s = property(_mupdf.fz_pixmap_s_get, _mupdf.fz_pixmap_s_set)
  1772. alpha = property(_mupdf.fz_pixmap_alpha_get, _mupdf.fz_pixmap_alpha_set)
  1773. flags = property(_mupdf.fz_pixmap_flags_get, _mupdf.fz_pixmap_flags_set)
  1774. stride = property(_mupdf.fz_pixmap_stride_get, _mupdf.fz_pixmap_stride_set)
  1775. seps = property(_mupdf.fz_pixmap_seps_get, _mupdf.fz_pixmap_seps_set)
  1776. xres = property(_mupdf.fz_pixmap_xres_get, _mupdf.fz_pixmap_xres_set)
  1777. yres = property(_mupdf.fz_pixmap_yres_get, _mupdf.fz_pixmap_yres_set)
  1778. colorspace = property(_mupdf.fz_pixmap_colorspace_get, _mupdf.fz_pixmap_colorspace_set)
  1779. samples = property(_mupdf.fz_pixmap_samples_get, _mupdf.fz_pixmap_samples_set)
  1780. underlying = property(_mupdf.fz_pixmap_underlying_get, _mupdf.fz_pixmap_underlying_set)
  1781. def __init__(self):
  1782. _mupdf.fz_pixmap_swiginit(self, _mupdf.new_fz_pixmap())
  1783. __swig_destroy__ = _mupdf.delete_fz_pixmap
  1784. # Register fz_pixmap in _mupdf:
  1785. _mupdf.fz_pixmap_swigregister(fz_pixmap)
  1786. FZ_PIXMAP_FLAG_INTERPOLATE = _mupdf.FZ_PIXMAP_FLAG_INTERPOLATE
  1787. FZ_PIXMAP_FLAG_FREE_SAMPLES = _mupdf.FZ_PIXMAP_FLAG_FREE_SAMPLES
  1788. FZ_DEFLATE_NONE = _mupdf.FZ_DEFLATE_NONE
  1789. FZ_DEFLATE_BEST_SPEED = _mupdf.FZ_DEFLATE_BEST_SPEED
  1790. FZ_DEFLATE_BEST = _mupdf.FZ_DEFLATE_BEST
  1791. FZ_DEFLATE_DEFAULT = _mupdf.FZ_DEFLATE_DEFAULT
  1792. FZ_BROTLI_NONE = _mupdf.FZ_BROTLI_NONE
  1793. FZ_BROTLI_BEST_SPEED = _mupdf.FZ_BROTLI_BEST_SPEED
  1794. FZ_BROTLI_BEST = _mupdf.FZ_BROTLI_BEST
  1795. FZ_BROTLI_DEFAULT = _mupdf.FZ_BROTLI_DEFAULT
  1796. class fz_range(object):
  1797. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1798. __repr__ = _swig_repr
  1799. offset = property(_mupdf.fz_range_offset_get, _mupdf.fz_range_offset_set)
  1800. length = property(_mupdf.fz_range_length_get, _mupdf.fz_range_length_set)
  1801. def __init__(self):
  1802. _mupdf.fz_range_swiginit(self, _mupdf.new_fz_range())
  1803. __swig_destroy__ = _mupdf.delete_fz_range
  1804. # Register fz_range in _mupdf:
  1805. _mupdf.fz_range_swigregister(fz_range)
  1806. class fz_compression_params(object):
  1807. r"""
  1808. Compression parameters used for buffers of compressed data;
  1809. typically for the source data for images.
  1810. """
  1811. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1812. __repr__ = _swig_repr
  1813. type = property(_mupdf.fz_compression_params_type_get, _mupdf.fz_compression_params_type_set)
  1814. def __init__(self):
  1815. _mupdf.fz_compression_params_swiginit(self, _mupdf.new_fz_compression_params())
  1816. __swig_destroy__ = _mupdf.delete_fz_compression_params
  1817. # Register fz_compression_params in _mupdf:
  1818. _mupdf.fz_compression_params_swigregister(fz_compression_params)
  1819. class fz_compressed_buffer(object):
  1820. r"""
  1821. Buffers of compressed data; typically for the source data
  1822. for images.
  1823. """
  1824. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1825. __repr__ = _swig_repr
  1826. refs = property(_mupdf.fz_compressed_buffer_refs_get, _mupdf.fz_compressed_buffer_refs_set)
  1827. params = property(_mupdf.fz_compressed_buffer_params_get, _mupdf.fz_compressed_buffer_params_set)
  1828. buffer = property(_mupdf.fz_compressed_buffer_buffer_get, _mupdf.fz_compressed_buffer_buffer_set)
  1829. def __init__(self):
  1830. _mupdf.fz_compressed_buffer_swiginit(self, _mupdf.new_fz_compressed_buffer())
  1831. __swig_destroy__ = _mupdf.delete_fz_compressed_buffer
  1832. # Register fz_compressed_buffer in _mupdf:
  1833. _mupdf.fz_compressed_buffer_swigregister(fz_compressed_buffer)
  1834. FZ_IMAGE_UNKNOWN = _mupdf.FZ_IMAGE_UNKNOWN
  1835. FZ_IMAGE_RAW = _mupdf.FZ_IMAGE_RAW
  1836. FZ_IMAGE_FAX = _mupdf.FZ_IMAGE_FAX
  1837. FZ_IMAGE_FLATE = _mupdf.FZ_IMAGE_FLATE
  1838. FZ_IMAGE_LZW = _mupdf.FZ_IMAGE_LZW
  1839. FZ_IMAGE_RLD = _mupdf.FZ_IMAGE_RLD
  1840. FZ_IMAGE_BROTLI = _mupdf.FZ_IMAGE_BROTLI
  1841. FZ_IMAGE_BMP = _mupdf.FZ_IMAGE_BMP
  1842. FZ_IMAGE_GIF = _mupdf.FZ_IMAGE_GIF
  1843. FZ_IMAGE_JBIG2 = _mupdf.FZ_IMAGE_JBIG2
  1844. FZ_IMAGE_JPEG = _mupdf.FZ_IMAGE_JPEG
  1845. FZ_IMAGE_JPX = _mupdf.FZ_IMAGE_JPX
  1846. FZ_IMAGE_JXR = _mupdf.FZ_IMAGE_JXR
  1847. FZ_IMAGE_PNG = _mupdf.FZ_IMAGE_PNG
  1848. FZ_IMAGE_PNM = _mupdf.FZ_IMAGE_PNM
  1849. FZ_IMAGE_TIFF = _mupdf.FZ_IMAGE_TIFF
  1850. FZ_IMAGE_PSD = _mupdf.FZ_IMAGE_PSD
  1851. class fz_image(object):
  1852. r"""
  1853. Structure is public to allow other structures to
  1854. be derived from it. Do not access members directly.
  1855. """
  1856. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1857. __repr__ = _swig_repr
  1858. key_storable = property(_mupdf.fz_image_key_storable_get, _mupdf.fz_image_key_storable_set)
  1859. w = property(_mupdf.fz_image_w_get, _mupdf.fz_image_w_set)
  1860. h = property(_mupdf.fz_image_h_get, _mupdf.fz_image_h_set)
  1861. n = property(_mupdf.fz_image_n_get, _mupdf.fz_image_n_set)
  1862. bpc = property(_mupdf.fz_image_bpc_get, _mupdf.fz_image_bpc_set)
  1863. imagemask = property(_mupdf.fz_image_imagemask_get, _mupdf.fz_image_imagemask_set)
  1864. interpolate = property(_mupdf.fz_image_interpolate_get, _mupdf.fz_image_interpolate_set)
  1865. use_colorkey = property(_mupdf.fz_image_use_colorkey_get, _mupdf.fz_image_use_colorkey_set)
  1866. use_decode = property(_mupdf.fz_image_use_decode_get, _mupdf.fz_image_use_decode_set)
  1867. decoded = property(_mupdf.fz_image_decoded_get, _mupdf.fz_image_decoded_set)
  1868. scalable = property(_mupdf.fz_image_scalable_get, _mupdf.fz_image_scalable_set)
  1869. intent = property(_mupdf.fz_image_intent_get, _mupdf.fz_image_intent_set)
  1870. has_intent = property(_mupdf.fz_image_has_intent_get, _mupdf.fz_image_has_intent_set)
  1871. orientation = property(_mupdf.fz_image_orientation_get, _mupdf.fz_image_orientation_set)
  1872. mask = property(_mupdf.fz_image_mask_get, _mupdf.fz_image_mask_set)
  1873. xres = property(_mupdf.fz_image_xres_get, _mupdf.fz_image_xres_set)
  1874. yres = property(_mupdf.fz_image_yres_get, _mupdf.fz_image_yres_set)
  1875. colorspace = property(_mupdf.fz_image_colorspace_get, _mupdf.fz_image_colorspace_set)
  1876. drop_image = property(_mupdf.fz_image_drop_image_get, _mupdf.fz_image_drop_image_set)
  1877. get_pixmap = property(_mupdf.fz_image_get_pixmap_get, _mupdf.fz_image_get_pixmap_set)
  1878. get_size = property(_mupdf.fz_image_get_size_get, _mupdf.fz_image_get_size_set)
  1879. colorkey = property(_mupdf.fz_image_colorkey_get, _mupdf.fz_image_colorkey_set)
  1880. decode = property(_mupdf.fz_image_decode_get, _mupdf.fz_image_decode_set)
  1881. def __init__(self):
  1882. _mupdf.fz_image_swiginit(self, _mupdf.new_fz_image())
  1883. __swig_destroy__ = _mupdf.delete_fz_image
  1884. # Register fz_image in _mupdf:
  1885. _mupdf.fz_image_swigregister(fz_image)
  1886. class fz_bitmap(object):
  1887. r"""
  1888. Bitmaps have 1 bit per component. Only used for creating
  1889. halftoned versions of contone buffers, and saving out. Samples
  1890. are stored msb first, akin to pbms.
  1891. The internals of this struct are considered implementation
  1892. details and subject to change. Where possible, accessor
  1893. functions should be used in preference.
  1894. """
  1895. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1896. __repr__ = _swig_repr
  1897. refs = property(_mupdf.fz_bitmap_refs_get, _mupdf.fz_bitmap_refs_set)
  1898. w = property(_mupdf.fz_bitmap_w_get, _mupdf.fz_bitmap_w_set)
  1899. h = property(_mupdf.fz_bitmap_h_get, _mupdf.fz_bitmap_h_set)
  1900. stride = property(_mupdf.fz_bitmap_stride_get, _mupdf.fz_bitmap_stride_set)
  1901. n = property(_mupdf.fz_bitmap_n_get, _mupdf.fz_bitmap_n_set)
  1902. xres = property(_mupdf.fz_bitmap_xres_get, _mupdf.fz_bitmap_xres_set)
  1903. yres = property(_mupdf.fz_bitmap_yres_get, _mupdf.fz_bitmap_yres_set)
  1904. samples = property(_mupdf.fz_bitmap_samples_get, _mupdf.fz_bitmap_samples_set)
  1905. def __init__(self):
  1906. _mupdf.fz_bitmap_swiginit(self, _mupdf.new_fz_bitmap())
  1907. __swig_destroy__ = _mupdf.delete_fz_bitmap
  1908. # Register fz_bitmap in _mupdf:
  1909. _mupdf.fz_bitmap_swigregister(fz_bitmap)
  1910. FZ_FUNCTION_BASED = _mupdf.FZ_FUNCTION_BASED
  1911. FZ_LINEAR = _mupdf.FZ_LINEAR
  1912. FZ_RADIAL = _mupdf.FZ_RADIAL
  1913. FZ_MESH_TYPE4 = _mupdf.FZ_MESH_TYPE4
  1914. FZ_MESH_TYPE5 = _mupdf.FZ_MESH_TYPE5
  1915. FZ_MESH_TYPE6 = _mupdf.FZ_MESH_TYPE6
  1916. FZ_MESH_TYPE7 = _mupdf.FZ_MESH_TYPE7
  1917. class fz_shade(object):
  1918. r"""
  1919. Structure is public to allow derived classes. Do not
  1920. access the members directly.
  1921. """
  1922. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1923. __repr__ = _swig_repr
  1924. storable = property(_mupdf.fz_shade_storable_get, _mupdf.fz_shade_storable_set)
  1925. bbox = property(_mupdf.fz_shade_bbox_get, _mupdf.fz_shade_bbox_set)
  1926. colorspace = property(_mupdf.fz_shade_colorspace_get, _mupdf.fz_shade_colorspace_set)
  1927. matrix = property(_mupdf.fz_shade_matrix_get, _mupdf.fz_shade_matrix_set)
  1928. use_background = property(_mupdf.fz_shade_use_background_get, _mupdf.fz_shade_use_background_set)
  1929. background = property(_mupdf.fz_shade_background_get, _mupdf.fz_shade_background_set)
  1930. function_stride = property(_mupdf.fz_shade_function_stride_get, _mupdf.fz_shade_function_stride_set)
  1931. function = property(_mupdf.fz_shade_function_get, _mupdf.fz_shade_function_set)
  1932. type = property(_mupdf.fz_shade_type_get, _mupdf.fz_shade_type_set)
  1933. buffer = property(_mupdf.fz_shade_buffer_get, _mupdf.fz_shade_buffer_set)
  1934. def __init__(self):
  1935. _mupdf.fz_shade_swiginit(self, _mupdf.new_fz_shade())
  1936. __swig_destroy__ = _mupdf.delete_fz_shade
  1937. # Register fz_shade in _mupdf:
  1938. _mupdf.fz_shade_swigregister(fz_shade)
  1939. class fz_vertex(object):
  1940. r"""Handy routine for processing mesh based shades"""
  1941. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1942. __repr__ = _swig_repr
  1943. p = property(_mupdf.fz_vertex_p_get, _mupdf.fz_vertex_p_set)
  1944. c = property(_mupdf.fz_vertex_c_get, _mupdf.fz_vertex_c_set)
  1945. def __init__(self):
  1946. _mupdf.fz_vertex_swiginit(self, _mupdf.new_fz_vertex())
  1947. __swig_destroy__ = _mupdf.delete_fz_vertex
  1948. # Register fz_vertex in _mupdf:
  1949. _mupdf.fz_vertex_swigregister(fz_vertex)
  1950. class fz_text_decoder(object):
  1951. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1952. __repr__ = _swig_repr
  1953. decode_bound = property(_mupdf.fz_text_decoder_decode_bound_get, _mupdf.fz_text_decoder_decode_bound_set)
  1954. decode_size = property(_mupdf.fz_text_decoder_decode_size_get, _mupdf.fz_text_decoder_decode_size_set)
  1955. decode = property(_mupdf.fz_text_decoder_decode_get, _mupdf.fz_text_decoder_decode_set)
  1956. table1 = property(_mupdf.fz_text_decoder_table1_get, _mupdf.fz_text_decoder_table1_set)
  1957. table2 = property(_mupdf.fz_text_decoder_table2_get, _mupdf.fz_text_decoder_table2_set)
  1958. def __init__(self):
  1959. _mupdf.fz_text_decoder_swiginit(self, _mupdf.new_fz_text_decoder())
  1960. __swig_destroy__ = _mupdf.delete_fz_text_decoder
  1961. # Register fz_text_decoder in _mupdf:
  1962. _mupdf.fz_text_decoder_swigregister(fz_text_decoder)
  1963. fz_unicode_from_iso8859_1 = cvar.fz_unicode_from_iso8859_1
  1964. fz_unicode_from_iso8859_7 = cvar.fz_unicode_from_iso8859_7
  1965. fz_unicode_from_koi8u = cvar.fz_unicode_from_koi8u
  1966. fz_unicode_from_pdf_doc_encoding = cvar.fz_unicode_from_pdf_doc_encoding
  1967. fz_unicode_from_windows_1250 = cvar.fz_unicode_from_windows_1250
  1968. fz_unicode_from_windows_1251 = cvar.fz_unicode_from_windows_1251
  1969. fz_unicode_from_windows_1252 = cvar.fz_unicode_from_windows_1252
  1970. FZ_ADOBE_CNS = _mupdf.FZ_ADOBE_CNS
  1971. FZ_ADOBE_GB = _mupdf.FZ_ADOBE_GB
  1972. FZ_ADOBE_JAPAN = _mupdf.FZ_ADOBE_JAPAN
  1973. FZ_ADOBE_KOREA = _mupdf.FZ_ADOBE_KOREA
  1974. class fz_font_flags_t(object):
  1975. r"""
  1976. Every fz_font carries a set of flags
  1977. within it, in a fz_font_flags_t structure.
  1978. """
  1979. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  1980. __repr__ = _swig_repr
  1981. is_mono = property(_mupdf.fz_font_flags_t_is_mono_get, _mupdf.fz_font_flags_t_is_mono_set)
  1982. is_serif = property(_mupdf.fz_font_flags_t_is_serif_get, _mupdf.fz_font_flags_t_is_serif_set)
  1983. is_bold = property(_mupdf.fz_font_flags_t_is_bold_get, _mupdf.fz_font_flags_t_is_bold_set)
  1984. is_italic = property(_mupdf.fz_font_flags_t_is_italic_get, _mupdf.fz_font_flags_t_is_italic_set)
  1985. ft_substitute = property(_mupdf.fz_font_flags_t_ft_substitute_get, _mupdf.fz_font_flags_t_ft_substitute_set)
  1986. ft_stretch = property(_mupdf.fz_font_flags_t_ft_stretch_get, _mupdf.fz_font_flags_t_ft_stretch_set)
  1987. fake_bold = property(_mupdf.fz_font_flags_t_fake_bold_get, _mupdf.fz_font_flags_t_fake_bold_set)
  1988. fake_italic = property(_mupdf.fz_font_flags_t_fake_italic_get, _mupdf.fz_font_flags_t_fake_italic_set)
  1989. has_opentype = property(_mupdf.fz_font_flags_t_has_opentype_get, _mupdf.fz_font_flags_t_has_opentype_set)
  1990. invalid_bbox = property(_mupdf.fz_font_flags_t_invalid_bbox_get, _mupdf.fz_font_flags_t_invalid_bbox_set)
  1991. cjk = property(_mupdf.fz_font_flags_t_cjk_get, _mupdf.fz_font_flags_t_cjk_set)
  1992. cjk_lang = property(_mupdf.fz_font_flags_t_cjk_lang_get, _mupdf.fz_font_flags_t_cjk_lang_set)
  1993. embed = property(_mupdf.fz_font_flags_t_embed_get, _mupdf.fz_font_flags_t_embed_set)
  1994. never_embed = property(_mupdf.fz_font_flags_t_never_embed_get, _mupdf.fz_font_flags_t_never_embed_set)
  1995. def __init__(self):
  1996. _mupdf.fz_font_flags_t_swiginit(self, _mupdf.new_fz_font_flags_t())
  1997. __swig_destroy__ = _mupdf.delete_fz_font_flags_t
  1998. # Register fz_font_flags_t in _mupdf:
  1999. _mupdf.fz_font_flags_t_swigregister(fz_font_flags_t)
  2000. class fz_shaper_data_t(object):
  2001. r"""
  2002. In order to shape a given font, we need to
  2003. declare it to a shaper library (harfbuzz, by default, but others
  2004. are possible). To avoid redeclaring it every time we need to
  2005. shape, we hold a shaper handle and the destructor for it within
  2006. the font itself. The handle is initialised by the caller when
  2007. first required and the destructor is called when the fz_font is
  2008. destroyed.
  2009. """
  2010. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2011. __repr__ = _swig_repr
  2012. shaper_handle = property(_mupdf.fz_shaper_data_t_shaper_handle_get, _mupdf.fz_shaper_data_t_shaper_handle_set)
  2013. destroy = property(_mupdf.fz_shaper_data_t_destroy_get, _mupdf.fz_shaper_data_t_destroy_set)
  2014. def __init__(self):
  2015. _mupdf.fz_shaper_data_t_swiginit(self, _mupdf.new_fz_shaper_data_t())
  2016. __swig_destroy__ = _mupdf.delete_fz_shaper_data_t
  2017. # Register fz_shaper_data_t in _mupdf:
  2018. _mupdf.fz_shaper_data_t_swigregister(fz_shaper_data_t)
  2019. FZ_ASCDESC_FROM_FONT = _mupdf.FZ_ASCDESC_FROM_FONT
  2020. FZ_ASCDESC_DEFAULT = _mupdf.FZ_ASCDESC_DEFAULT
  2021. FZ_ASCDESC_FROM_BOUNDS = _mupdf.FZ_ASCDESC_FROM_BOUNDS
  2022. FZ_MAX_TRUSTWORTHY_ASCENT = _mupdf.FZ_MAX_TRUSTWORTHY_ASCENT
  2023. FZ_MAX_TRUSTWORTHY_DESCENT = _mupdf.FZ_MAX_TRUSTWORTHY_DESCENT
  2024. class fz_font(object):
  2025. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2026. __repr__ = _swig_repr
  2027. refs = property(_mupdf.fz_font_refs_get, _mupdf.fz_font_refs_set)
  2028. name = property(_mupdf.fz_font_name_get, _mupdf.fz_font_name_set)
  2029. buffer = property(_mupdf.fz_font_buffer_get, _mupdf.fz_font_buffer_set)
  2030. flags = property(_mupdf.fz_font_flags_get, _mupdf.fz_font_flags_set)
  2031. ft_face = property(_mupdf.fz_font_ft_face_get, _mupdf.fz_font_ft_face_set)
  2032. shaper_data = property(_mupdf.fz_font_shaper_data_get, _mupdf.fz_font_shaper_data_set)
  2033. t3matrix = property(_mupdf.fz_font_t3matrix_get, _mupdf.fz_font_t3matrix_set)
  2034. t3resources = property(_mupdf.fz_font_t3resources_get, _mupdf.fz_font_t3resources_set)
  2035. t3procs = property(_mupdf.fz_font_t3procs_get, _mupdf.fz_font_t3procs_set)
  2036. t3lists = property(_mupdf.fz_font_t3lists_get, _mupdf.fz_font_t3lists_set)
  2037. t3widths = property(_mupdf.fz_font_t3widths_get, _mupdf.fz_font_t3widths_set)
  2038. t3flags = property(_mupdf.fz_font_t3flags_get, _mupdf.fz_font_t3flags_set)
  2039. t3doc = property(_mupdf.fz_font_t3doc_get, _mupdf.fz_font_t3doc_set)
  2040. t3run = property(_mupdf.fz_font_t3run_get, _mupdf.fz_font_t3run_set)
  2041. t3freeres = property(_mupdf.fz_font_t3freeres_get, _mupdf.fz_font_t3freeres_set)
  2042. bbox = property(_mupdf.fz_font_bbox_get, _mupdf.fz_font_bbox_set)
  2043. ascender = property(_mupdf.fz_font_ascender_get, _mupdf.fz_font_ascender_set)
  2044. descender = property(_mupdf.fz_font_descender_get, _mupdf.fz_font_descender_set)
  2045. ascdesc_src = property(_mupdf.fz_font_ascdesc_src_get, _mupdf.fz_font_ascdesc_src_set)
  2046. glyph_count = property(_mupdf.fz_font_glyph_count_get, _mupdf.fz_font_glyph_count_set)
  2047. bbox_table = property(_mupdf.fz_font_bbox_table_get, _mupdf.fz_font_bbox_table_set)
  2048. use_glyph_bbox = property(_mupdf.fz_font_use_glyph_bbox_get, _mupdf.fz_font_use_glyph_bbox_set)
  2049. width_count = property(_mupdf.fz_font_width_count_get, _mupdf.fz_font_width_count_set)
  2050. width_default = property(_mupdf.fz_font_width_default_get, _mupdf.fz_font_width_default_set)
  2051. width_table = property(_mupdf.fz_font_width_table_get, _mupdf.fz_font_width_table_set)
  2052. advance_cache = property(_mupdf.fz_font_advance_cache_get, _mupdf.fz_font_advance_cache_set)
  2053. encoding_cache = property(_mupdf.fz_font_encoding_cache_get, _mupdf.fz_font_encoding_cache_set)
  2054. has_digest = property(_mupdf.fz_font_has_digest_get, _mupdf.fz_font_has_digest_set)
  2055. digest = property(_mupdf.fz_font_digest_get, _mupdf.fz_font_digest_set)
  2056. subfont = property(_mupdf.fz_font_subfont_get, _mupdf.fz_font_subfont_set)
  2057. def __init__(self):
  2058. _mupdf.fz_font_swiginit(self, _mupdf.new_fz_font())
  2059. __swig_destroy__ = _mupdf.delete_fz_font
  2060. # Register fz_font in _mupdf:
  2061. _mupdf.fz_font_swigregister(fz_font)
  2062. FZ_LINECAP_BUTT = _mupdf.FZ_LINECAP_BUTT
  2063. FZ_LINECAP_ROUND = _mupdf.FZ_LINECAP_ROUND
  2064. FZ_LINECAP_SQUARE = _mupdf.FZ_LINECAP_SQUARE
  2065. FZ_LINECAP_TRIANGLE = _mupdf.FZ_LINECAP_TRIANGLE
  2066. FZ_LINEJOIN_MITER = _mupdf.FZ_LINEJOIN_MITER
  2067. FZ_LINEJOIN_ROUND = _mupdf.FZ_LINEJOIN_ROUND
  2068. FZ_LINEJOIN_BEVEL = _mupdf.FZ_LINEJOIN_BEVEL
  2069. FZ_LINEJOIN_MITER_XPS = _mupdf.FZ_LINEJOIN_MITER_XPS
  2070. class fz_stroke_state(object):
  2071. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2072. __repr__ = _swig_repr
  2073. refs = property(_mupdf.fz_stroke_state_refs_get, _mupdf.fz_stroke_state_refs_set)
  2074. start_cap = property(_mupdf.fz_stroke_state_start_cap_get, _mupdf.fz_stroke_state_start_cap_set)
  2075. dash_cap = property(_mupdf.fz_stroke_state_dash_cap_get, _mupdf.fz_stroke_state_dash_cap_set)
  2076. end_cap = property(_mupdf.fz_stroke_state_end_cap_get, _mupdf.fz_stroke_state_end_cap_set)
  2077. linejoin = property(_mupdf.fz_stroke_state_linejoin_get, _mupdf.fz_stroke_state_linejoin_set)
  2078. linewidth = property(_mupdf.fz_stroke_state_linewidth_get, _mupdf.fz_stroke_state_linewidth_set)
  2079. miterlimit = property(_mupdf.fz_stroke_state_miterlimit_get, _mupdf.fz_stroke_state_miterlimit_set)
  2080. dash_phase = property(_mupdf.fz_stroke_state_dash_phase_get, _mupdf.fz_stroke_state_dash_phase_set)
  2081. dash_len = property(_mupdf.fz_stroke_state_dash_len_get, _mupdf.fz_stroke_state_dash_len_set)
  2082. dash_list = property(_mupdf.fz_stroke_state_dash_list_get, _mupdf.fz_stroke_state_dash_list_set)
  2083. def __init__(self):
  2084. _mupdf.fz_stroke_state_swiginit(self, _mupdf.new_fz_stroke_state())
  2085. __swig_destroy__ = _mupdf.delete_fz_stroke_state
  2086. # Register fz_stroke_state in _mupdf:
  2087. _mupdf.fz_stroke_state_swigregister(fz_stroke_state)
  2088. class fz_path_walker(object):
  2089. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2090. __repr__ = _swig_repr
  2091. moveto = property(_mupdf.fz_path_walker_moveto_get, _mupdf.fz_path_walker_moveto_set)
  2092. lineto = property(_mupdf.fz_path_walker_lineto_get, _mupdf.fz_path_walker_lineto_set)
  2093. curveto = property(_mupdf.fz_path_walker_curveto_get, _mupdf.fz_path_walker_curveto_set)
  2094. closepath = property(_mupdf.fz_path_walker_closepath_get, _mupdf.fz_path_walker_closepath_set)
  2095. quadto = property(_mupdf.fz_path_walker_quadto_get, _mupdf.fz_path_walker_quadto_set)
  2096. curvetov = property(_mupdf.fz_path_walker_curvetov_get, _mupdf.fz_path_walker_curvetov_set)
  2097. curvetoy = property(_mupdf.fz_path_walker_curvetoy_get, _mupdf.fz_path_walker_curvetoy_set)
  2098. rectto = property(_mupdf.fz_path_walker_rectto_get, _mupdf.fz_path_walker_rectto_set)
  2099. def __init__(self):
  2100. _mupdf.fz_path_walker_swiginit(self, _mupdf.new_fz_path_walker())
  2101. __swig_destroy__ = _mupdf.delete_fz_path_walker
  2102. # Register fz_path_walker in _mupdf:
  2103. _mupdf.fz_path_walker_swigregister(fz_path_walker)
  2104. class fz_text_item(object):
  2105. r"""
  2106. Text buffer.
  2107. The trm field contains the a, b, c and d coefficients.
  2108. The e and f coefficients come from the individual elements,
  2109. together they form the transform matrix for the glyph.
  2110. Glyphs are referenced by glyph ID.
  2111. The Unicode text equivalent is kept in a separate array
  2112. with indexes into the glyph array.
  2113. """
  2114. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2115. __repr__ = _swig_repr
  2116. x = property(_mupdf.fz_text_item_x_get, _mupdf.fz_text_item_x_set)
  2117. y = property(_mupdf.fz_text_item_y_get, _mupdf.fz_text_item_y_set)
  2118. adv = property(_mupdf.fz_text_item_adv_get, _mupdf.fz_text_item_adv_set)
  2119. gid = property(_mupdf.fz_text_item_gid_get, _mupdf.fz_text_item_gid_set)
  2120. ucs = property(_mupdf.fz_text_item_ucs_get, _mupdf.fz_text_item_ucs_set)
  2121. cid = property(_mupdf.fz_text_item_cid_get, _mupdf.fz_text_item_cid_set)
  2122. def __init__(self):
  2123. _mupdf.fz_text_item_swiginit(self, _mupdf.new_fz_text_item())
  2124. __swig_destroy__ = _mupdf.delete_fz_text_item
  2125. # Register fz_text_item in _mupdf:
  2126. _mupdf.fz_text_item_swigregister(fz_text_item)
  2127. fz_default_stroke_state = cvar.fz_default_stroke_state
  2128. FZ_LANG_UNSET = _mupdf.FZ_LANG_UNSET
  2129. FZ_LANG_ur = _mupdf.FZ_LANG_ur
  2130. FZ_LANG_urd = _mupdf.FZ_LANG_urd
  2131. FZ_LANG_ko = _mupdf.FZ_LANG_ko
  2132. FZ_LANG_ja = _mupdf.FZ_LANG_ja
  2133. FZ_LANG_zh = _mupdf.FZ_LANG_zh
  2134. FZ_LANG_zh_Hans = _mupdf.FZ_LANG_zh_Hans
  2135. FZ_LANG_zh_Hant = _mupdf.FZ_LANG_zh_Hant
  2136. class fz_text_span(object):
  2137. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2138. __repr__ = _swig_repr
  2139. font = property(_mupdf.fz_text_span_font_get, _mupdf.fz_text_span_font_set)
  2140. trm = property(_mupdf.fz_text_span_trm_get, _mupdf.fz_text_span_trm_set)
  2141. wmode = property(_mupdf.fz_text_span_wmode_get, _mupdf.fz_text_span_wmode_set)
  2142. bidi_level = property(_mupdf.fz_text_span_bidi_level_get, _mupdf.fz_text_span_bidi_level_set)
  2143. markup_dir = property(_mupdf.fz_text_span_markup_dir_get, _mupdf.fz_text_span_markup_dir_set)
  2144. language = property(_mupdf.fz_text_span_language_get, _mupdf.fz_text_span_language_set)
  2145. len = property(_mupdf.fz_text_span_len_get, _mupdf.fz_text_span_len_set)
  2146. cap = property(_mupdf.fz_text_span_cap_get, _mupdf.fz_text_span_cap_set)
  2147. items = property(_mupdf.fz_text_span_items_get, _mupdf.fz_text_span_items_set)
  2148. next = property(_mupdf.fz_text_span_next_get, _mupdf.fz_text_span_next_set)
  2149. def __init__(self):
  2150. _mupdf.fz_text_span_swiginit(self, _mupdf.new_fz_text_span())
  2151. __swig_destroy__ = _mupdf.delete_fz_text_span
  2152. # Register fz_text_span in _mupdf:
  2153. _mupdf.fz_text_span_swigregister(fz_text_span)
  2154. class fz_text(object):
  2155. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2156. __repr__ = _swig_repr
  2157. refs = property(_mupdf.fz_text_refs_get, _mupdf.fz_text_refs_set)
  2158. head = property(_mupdf.fz_text_head_get, _mupdf.fz_text_head_set)
  2159. tail = property(_mupdf.fz_text_tail_get, _mupdf.fz_text_tail_set)
  2160. def __init__(self):
  2161. _mupdf.fz_text_swiginit(self, _mupdf.new_fz_text())
  2162. __swig_destroy__ = _mupdf.delete_fz_text
  2163. # Register fz_text in _mupdf:
  2164. _mupdf.fz_text_swigregister(fz_text)
  2165. FZ_DEVFLAG_MASK = _mupdf.FZ_DEVFLAG_MASK
  2166. FZ_DEVFLAG_COLOR = _mupdf.FZ_DEVFLAG_COLOR
  2167. FZ_DEVFLAG_UNCACHEABLE = _mupdf.FZ_DEVFLAG_UNCACHEABLE
  2168. FZ_DEVFLAG_FILLCOLOR_UNDEFINED = _mupdf.FZ_DEVFLAG_FILLCOLOR_UNDEFINED
  2169. FZ_DEVFLAG_STROKECOLOR_UNDEFINED = _mupdf.FZ_DEVFLAG_STROKECOLOR_UNDEFINED
  2170. FZ_DEVFLAG_STARTCAP_UNDEFINED = _mupdf.FZ_DEVFLAG_STARTCAP_UNDEFINED
  2171. FZ_DEVFLAG_DASHCAP_UNDEFINED = _mupdf.FZ_DEVFLAG_DASHCAP_UNDEFINED
  2172. FZ_DEVFLAG_ENDCAP_UNDEFINED = _mupdf.FZ_DEVFLAG_ENDCAP_UNDEFINED
  2173. FZ_DEVFLAG_LINEJOIN_UNDEFINED = _mupdf.FZ_DEVFLAG_LINEJOIN_UNDEFINED
  2174. FZ_DEVFLAG_MITERLIMIT_UNDEFINED = _mupdf.FZ_DEVFLAG_MITERLIMIT_UNDEFINED
  2175. FZ_DEVFLAG_LINEWIDTH_UNDEFINED = _mupdf.FZ_DEVFLAG_LINEWIDTH_UNDEFINED
  2176. FZ_DEVFLAG_BBOX_DEFINED = _mupdf.FZ_DEVFLAG_BBOX_DEFINED
  2177. FZ_DEVFLAG_GRIDFIT_AS_TILED = _mupdf.FZ_DEVFLAG_GRIDFIT_AS_TILED
  2178. FZ_DEVFLAG_DASH_PATTERN_UNDEFINED = _mupdf.FZ_DEVFLAG_DASH_PATTERN_UNDEFINED
  2179. FZ_BLEND_NORMAL = _mupdf.FZ_BLEND_NORMAL
  2180. FZ_BLEND_MULTIPLY = _mupdf.FZ_BLEND_MULTIPLY
  2181. FZ_BLEND_SCREEN = _mupdf.FZ_BLEND_SCREEN
  2182. FZ_BLEND_OVERLAY = _mupdf.FZ_BLEND_OVERLAY
  2183. FZ_BLEND_DARKEN = _mupdf.FZ_BLEND_DARKEN
  2184. FZ_BLEND_LIGHTEN = _mupdf.FZ_BLEND_LIGHTEN
  2185. FZ_BLEND_COLOR_DODGE = _mupdf.FZ_BLEND_COLOR_DODGE
  2186. FZ_BLEND_COLOR_BURN = _mupdf.FZ_BLEND_COLOR_BURN
  2187. FZ_BLEND_HARD_LIGHT = _mupdf.FZ_BLEND_HARD_LIGHT
  2188. FZ_BLEND_SOFT_LIGHT = _mupdf.FZ_BLEND_SOFT_LIGHT
  2189. FZ_BLEND_DIFFERENCE = _mupdf.FZ_BLEND_DIFFERENCE
  2190. FZ_BLEND_EXCLUSION = _mupdf.FZ_BLEND_EXCLUSION
  2191. FZ_BLEND_HUE = _mupdf.FZ_BLEND_HUE
  2192. FZ_BLEND_SATURATION = _mupdf.FZ_BLEND_SATURATION
  2193. FZ_BLEND_COLOR = _mupdf.FZ_BLEND_COLOR
  2194. FZ_BLEND_LUMINOSITY = _mupdf.FZ_BLEND_LUMINOSITY
  2195. FZ_BLEND_MODEMASK = _mupdf.FZ_BLEND_MODEMASK
  2196. FZ_BLEND_ISOLATED = _mupdf.FZ_BLEND_ISOLATED
  2197. FZ_BLEND_KNOCKOUT = _mupdf.FZ_BLEND_KNOCKOUT
  2198. FZ_FUNCTION_MAX_N = _mupdf.FZ_FUNCTION_MAX_N
  2199. FZ_FUNCTION_MAX_M = _mupdf.FZ_FUNCTION_MAX_M
  2200. class fz_function(object):
  2201. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2202. __repr__ = _swig_repr
  2203. storable = property(_mupdf.fz_function_storable_get, _mupdf.fz_function_storable_set)
  2204. size = property(_mupdf.fz_function_size_get, _mupdf.fz_function_size_set)
  2205. m = property(_mupdf.fz_function_m_get, _mupdf.fz_function_m_set)
  2206. n = property(_mupdf.fz_function_n_get, _mupdf.fz_function_n_set)
  2207. eval = property(_mupdf.fz_function_eval_get, _mupdf.fz_function_eval_set)
  2208. def __init__(self):
  2209. _mupdf.fz_function_swiginit(self, _mupdf.new_fz_function())
  2210. __swig_destroy__ = _mupdf.delete_fz_function
  2211. # Register fz_function in _mupdf:
  2212. _mupdf.fz_function_swigregister(fz_function)
  2213. class fz_device_container_stack(object):
  2214. r"""
  2215. The device structure is public to allow devices to be
  2216. implemented outside of fitz.
  2217. Device methods should always be called using e.g.
  2218. fz_fill_path(ctx, dev, ...) rather than
  2219. dev->fill_path(ctx, dev, ...)
  2220. Devices can keep track of containers (clips/masks/groups/tiles)
  2221. as they go to save callers having to do it.
  2222. """
  2223. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2224. __repr__ = _swig_repr
  2225. scissor = property(_mupdf.fz_device_container_stack_scissor_get, _mupdf.fz_device_container_stack_scissor_set)
  2226. type = property(_mupdf.fz_device_container_stack_type_get, _mupdf.fz_device_container_stack_type_set)
  2227. user = property(_mupdf.fz_device_container_stack_user_get, _mupdf.fz_device_container_stack_user_set)
  2228. def __init__(self):
  2229. _mupdf.fz_device_container_stack_swiginit(self, _mupdf.new_fz_device_container_stack())
  2230. __swig_destroy__ = _mupdf.delete_fz_device_container_stack
  2231. # Register fz_device_container_stack in _mupdf:
  2232. _mupdf.fz_device_container_stack_swigregister(fz_device_container_stack)
  2233. fz_device_container_stack_is_clip = _mupdf.fz_device_container_stack_is_clip
  2234. fz_device_container_stack_is_mask = _mupdf.fz_device_container_stack_is_mask
  2235. fz_device_container_stack_is_group = _mupdf.fz_device_container_stack_is_group
  2236. fz_device_container_stack_is_tile = _mupdf.fz_device_container_stack_is_tile
  2237. FZ_STRUCTURE_INVALID = _mupdf.FZ_STRUCTURE_INVALID
  2238. FZ_STRUCTURE_DOCUMENT = _mupdf.FZ_STRUCTURE_DOCUMENT
  2239. FZ_STRUCTURE_PART = _mupdf.FZ_STRUCTURE_PART
  2240. FZ_STRUCTURE_ART = _mupdf.FZ_STRUCTURE_ART
  2241. FZ_STRUCTURE_SECT = _mupdf.FZ_STRUCTURE_SECT
  2242. FZ_STRUCTURE_DIV = _mupdf.FZ_STRUCTURE_DIV
  2243. FZ_STRUCTURE_BLOCKQUOTE = _mupdf.FZ_STRUCTURE_BLOCKQUOTE
  2244. FZ_STRUCTURE_CAPTION = _mupdf.FZ_STRUCTURE_CAPTION
  2245. FZ_STRUCTURE_TOC = _mupdf.FZ_STRUCTURE_TOC
  2246. FZ_STRUCTURE_TOCI = _mupdf.FZ_STRUCTURE_TOCI
  2247. FZ_STRUCTURE_INDEX = _mupdf.FZ_STRUCTURE_INDEX
  2248. FZ_STRUCTURE_NONSTRUCT = _mupdf.FZ_STRUCTURE_NONSTRUCT
  2249. FZ_STRUCTURE_PRIVATE = _mupdf.FZ_STRUCTURE_PRIVATE
  2250. FZ_STRUCTURE_DOCUMENTFRAGMENT = _mupdf.FZ_STRUCTURE_DOCUMENTFRAGMENT
  2251. FZ_STRUCTURE_ASIDE = _mupdf.FZ_STRUCTURE_ASIDE
  2252. FZ_STRUCTURE_TITLE = _mupdf.FZ_STRUCTURE_TITLE
  2253. FZ_STRUCTURE_FENOTE = _mupdf.FZ_STRUCTURE_FENOTE
  2254. FZ_STRUCTURE_SUB = _mupdf.FZ_STRUCTURE_SUB
  2255. FZ_STRUCTURE_P = _mupdf.FZ_STRUCTURE_P
  2256. FZ_STRUCTURE_H = _mupdf.FZ_STRUCTURE_H
  2257. FZ_STRUCTURE_H1 = _mupdf.FZ_STRUCTURE_H1
  2258. FZ_STRUCTURE_H2 = _mupdf.FZ_STRUCTURE_H2
  2259. FZ_STRUCTURE_H3 = _mupdf.FZ_STRUCTURE_H3
  2260. FZ_STRUCTURE_H4 = _mupdf.FZ_STRUCTURE_H4
  2261. FZ_STRUCTURE_H5 = _mupdf.FZ_STRUCTURE_H5
  2262. FZ_STRUCTURE_H6 = _mupdf.FZ_STRUCTURE_H6
  2263. FZ_STRUCTURE_LIST = _mupdf.FZ_STRUCTURE_LIST
  2264. FZ_STRUCTURE_LISTITEM = _mupdf.FZ_STRUCTURE_LISTITEM
  2265. FZ_STRUCTURE_LABEL = _mupdf.FZ_STRUCTURE_LABEL
  2266. FZ_STRUCTURE_LISTBODY = _mupdf.FZ_STRUCTURE_LISTBODY
  2267. FZ_STRUCTURE_TABLE = _mupdf.FZ_STRUCTURE_TABLE
  2268. FZ_STRUCTURE_TR = _mupdf.FZ_STRUCTURE_TR
  2269. FZ_STRUCTURE_TH = _mupdf.FZ_STRUCTURE_TH
  2270. FZ_STRUCTURE_TD = _mupdf.FZ_STRUCTURE_TD
  2271. FZ_STRUCTURE_THEAD = _mupdf.FZ_STRUCTURE_THEAD
  2272. FZ_STRUCTURE_TBODY = _mupdf.FZ_STRUCTURE_TBODY
  2273. FZ_STRUCTURE_TFOOT = _mupdf.FZ_STRUCTURE_TFOOT
  2274. FZ_STRUCTURE_SPAN = _mupdf.FZ_STRUCTURE_SPAN
  2275. FZ_STRUCTURE_QUOTE = _mupdf.FZ_STRUCTURE_QUOTE
  2276. FZ_STRUCTURE_NOTE = _mupdf.FZ_STRUCTURE_NOTE
  2277. FZ_STRUCTURE_REFERENCE = _mupdf.FZ_STRUCTURE_REFERENCE
  2278. FZ_STRUCTURE_BIBENTRY = _mupdf.FZ_STRUCTURE_BIBENTRY
  2279. FZ_STRUCTURE_CODE = _mupdf.FZ_STRUCTURE_CODE
  2280. FZ_STRUCTURE_LINK = _mupdf.FZ_STRUCTURE_LINK
  2281. FZ_STRUCTURE_ANNOT = _mupdf.FZ_STRUCTURE_ANNOT
  2282. FZ_STRUCTURE_EM = _mupdf.FZ_STRUCTURE_EM
  2283. FZ_STRUCTURE_STRONG = _mupdf.FZ_STRUCTURE_STRONG
  2284. FZ_STRUCTURE_RUBY = _mupdf.FZ_STRUCTURE_RUBY
  2285. FZ_STRUCTURE_RB = _mupdf.FZ_STRUCTURE_RB
  2286. FZ_STRUCTURE_RT = _mupdf.FZ_STRUCTURE_RT
  2287. FZ_STRUCTURE_RP = _mupdf.FZ_STRUCTURE_RP
  2288. FZ_STRUCTURE_WARICHU = _mupdf.FZ_STRUCTURE_WARICHU
  2289. FZ_STRUCTURE_WT = _mupdf.FZ_STRUCTURE_WT
  2290. FZ_STRUCTURE_WP = _mupdf.FZ_STRUCTURE_WP
  2291. FZ_STRUCTURE_FIGURE = _mupdf.FZ_STRUCTURE_FIGURE
  2292. FZ_STRUCTURE_FORMULA = _mupdf.FZ_STRUCTURE_FORMULA
  2293. FZ_STRUCTURE_FORM = _mupdf.FZ_STRUCTURE_FORM
  2294. FZ_STRUCTURE_ARTIFACT = _mupdf.FZ_STRUCTURE_ARTIFACT
  2295. FZ_METATEXT_ACTUALTEXT = _mupdf.FZ_METATEXT_ACTUALTEXT
  2296. FZ_METATEXT_ALT = _mupdf.FZ_METATEXT_ALT
  2297. FZ_METATEXT_ABBREVIATION = _mupdf.FZ_METATEXT_ABBREVIATION
  2298. FZ_METATEXT_TITLE = _mupdf.FZ_METATEXT_TITLE
  2299. class fz_device(object):
  2300. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2301. __repr__ = _swig_repr
  2302. refs = property(_mupdf.fz_device_refs_get, _mupdf.fz_device_refs_set)
  2303. hints = property(_mupdf.fz_device_hints_get, _mupdf.fz_device_hints_set)
  2304. flags = property(_mupdf.fz_device_flags_get, _mupdf.fz_device_flags_set)
  2305. close_device = property(_mupdf.fz_device_close_device_get, _mupdf.fz_device_close_device_set)
  2306. drop_device = property(_mupdf.fz_device_drop_device_get, _mupdf.fz_device_drop_device_set)
  2307. fill_path = property(_mupdf.fz_device_fill_path_get, _mupdf.fz_device_fill_path_set)
  2308. stroke_path = property(_mupdf.fz_device_stroke_path_get, _mupdf.fz_device_stroke_path_set)
  2309. clip_path = property(_mupdf.fz_device_clip_path_get, _mupdf.fz_device_clip_path_set)
  2310. clip_stroke_path = property(_mupdf.fz_device_clip_stroke_path_get, _mupdf.fz_device_clip_stroke_path_set)
  2311. fill_text = property(_mupdf.fz_device_fill_text_get, _mupdf.fz_device_fill_text_set)
  2312. stroke_text = property(_mupdf.fz_device_stroke_text_get, _mupdf.fz_device_stroke_text_set)
  2313. clip_text = property(_mupdf.fz_device_clip_text_get, _mupdf.fz_device_clip_text_set)
  2314. clip_stroke_text = property(_mupdf.fz_device_clip_stroke_text_get, _mupdf.fz_device_clip_stroke_text_set)
  2315. ignore_text = property(_mupdf.fz_device_ignore_text_get, _mupdf.fz_device_ignore_text_set)
  2316. fill_shade = property(_mupdf.fz_device_fill_shade_get, _mupdf.fz_device_fill_shade_set)
  2317. fill_image = property(_mupdf.fz_device_fill_image_get, _mupdf.fz_device_fill_image_set)
  2318. fill_image_mask = property(_mupdf.fz_device_fill_image_mask_get, _mupdf.fz_device_fill_image_mask_set)
  2319. clip_image_mask = property(_mupdf.fz_device_clip_image_mask_get, _mupdf.fz_device_clip_image_mask_set)
  2320. pop_clip = property(_mupdf.fz_device_pop_clip_get, _mupdf.fz_device_pop_clip_set)
  2321. begin_mask = property(_mupdf.fz_device_begin_mask_get, _mupdf.fz_device_begin_mask_set)
  2322. end_mask = property(_mupdf.fz_device_end_mask_get, _mupdf.fz_device_end_mask_set)
  2323. begin_group = property(_mupdf.fz_device_begin_group_get, _mupdf.fz_device_begin_group_set)
  2324. end_group = property(_mupdf.fz_device_end_group_get, _mupdf.fz_device_end_group_set)
  2325. begin_tile = property(_mupdf.fz_device_begin_tile_get, _mupdf.fz_device_begin_tile_set)
  2326. end_tile = property(_mupdf.fz_device_end_tile_get, _mupdf.fz_device_end_tile_set)
  2327. render_flags = property(_mupdf.fz_device_render_flags_get, _mupdf.fz_device_render_flags_set)
  2328. set_default_colorspaces = property(_mupdf.fz_device_set_default_colorspaces_get, _mupdf.fz_device_set_default_colorspaces_set)
  2329. begin_layer = property(_mupdf.fz_device_begin_layer_get, _mupdf.fz_device_begin_layer_set)
  2330. end_layer = property(_mupdf.fz_device_end_layer_get, _mupdf.fz_device_end_layer_set)
  2331. begin_structure = property(_mupdf.fz_device_begin_structure_get, _mupdf.fz_device_begin_structure_set)
  2332. end_structure = property(_mupdf.fz_device_end_structure_get, _mupdf.fz_device_end_structure_set)
  2333. begin_metatext = property(_mupdf.fz_device_begin_metatext_get, _mupdf.fz_device_begin_metatext_set)
  2334. end_metatext = property(_mupdf.fz_device_end_metatext_get, _mupdf.fz_device_end_metatext_set)
  2335. d1_rect = property(_mupdf.fz_device_d1_rect_get, _mupdf.fz_device_d1_rect_set)
  2336. container_len = property(_mupdf.fz_device_container_len_get, _mupdf.fz_device_container_len_set)
  2337. container_cap = property(_mupdf.fz_device_container_cap_get, _mupdf.fz_device_container_cap_set)
  2338. container = property(_mupdf.fz_device_container_get, _mupdf.fz_device_container_set)
  2339. def __init__(self):
  2340. _mupdf.fz_device_swiginit(self, _mupdf.new_fz_device())
  2341. __swig_destroy__ = _mupdf.delete_fz_device
  2342. # Register fz_device in _mupdf:
  2343. _mupdf.fz_device_swigregister(fz_device)
  2344. FZ_DONT_INTERPOLATE_IMAGES = _mupdf.FZ_DONT_INTERPOLATE_IMAGES
  2345. FZ_NO_CACHE = _mupdf.FZ_NO_CACHE
  2346. FZ_DONT_DECODE_IMAGES = _mupdf.FZ_DONT_DECODE_IMAGES
  2347. class fz_cookie(object):
  2348. r"""
  2349. Cookie support - simple communication channel between app/library.
  2350. Provide two-way communication between application and library.
  2351. Intended for multi-threaded applications where one thread is
  2352. rendering pages and another thread wants to read progress
  2353. feedback or abort a job that takes a long time to finish. The
  2354. communication is unsynchronized without locking.
  2355. abort: The application should set this field to 0 before
  2356. calling fz_run_page to render a page. At any point when the
  2357. page is being rendered the application my set this field to 1
  2358. which will cause the rendering to finish soon. This field is
  2359. checked periodically when the page is rendered, but exactly
  2360. when is not known, therefore there is no upper bound on
  2361. exactly when the rendering will abort. If the application
  2362. did not provide a set of locks to fz_new_context, it must also
  2363. await the completion of fz_run_page before issuing another
  2364. call to fz_run_page. Note that once the application has set
  2365. this field to 1 after it called fz_run_page it may not change
  2366. the value again.
  2367. progress: Communicates rendering progress back to the
  2368. application and is read only. Increments as a page is being
  2369. rendered. The value starts out at 0 and is limited to less
  2370. than or equal to progress_max, unless progress_max is -1.
  2371. progress_max: Communicates the known upper bound of rendering
  2372. back to the application and is read only. The maximum value
  2373. that the progress field may take. If there is no known upper
  2374. bound on how long the rendering may take this value is -1 and
  2375. progress is not limited. Note that the value of progress_max
  2376. may change from -1 to a positive value once an upper bound is
  2377. known, so take this into consideration when comparing the
  2378. value of progress to that of progress_max.
  2379. errors: count of errors during current rendering.
  2380. incomplete: Initially should be set to 0. Will be set to
  2381. non-zero if a TRYLATER error is thrown during rendering.
  2382. """
  2383. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2384. __repr__ = _swig_repr
  2385. abort = property(_mupdf.fz_cookie_abort_get, _mupdf.fz_cookie_abort_set)
  2386. progress = property(_mupdf.fz_cookie_progress_get, _mupdf.fz_cookie_progress_set)
  2387. progress_max = property(_mupdf.fz_cookie_progress_max_get, _mupdf.fz_cookie_progress_max_set)
  2388. errors = property(_mupdf.fz_cookie_errors_get, _mupdf.fz_cookie_errors_set)
  2389. incomplete = property(_mupdf.fz_cookie_incomplete_get, _mupdf.fz_cookie_incomplete_set)
  2390. def __init__(self):
  2391. _mupdf.fz_cookie_swiginit(self, _mupdf.new_fz_cookie())
  2392. __swig_destroy__ = _mupdf.delete_fz_cookie
  2393. # Register fz_cookie in _mupdf:
  2394. _mupdf.fz_cookie_swigregister(fz_cookie)
  2395. FZ_TEST_OPT_IMAGES = _mupdf.FZ_TEST_OPT_IMAGES
  2396. FZ_TEST_OPT_SHADINGS = _mupdf.FZ_TEST_OPT_SHADINGS
  2397. class fz_draw_options(object):
  2398. r"""
  2399. struct fz_draw_options: Options for creating a pixmap and draw
  2400. device.
  2401. """
  2402. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2403. __repr__ = _swig_repr
  2404. rotate = property(_mupdf.fz_draw_options_rotate_get, _mupdf.fz_draw_options_rotate_set)
  2405. x_resolution = property(_mupdf.fz_draw_options_x_resolution_get, _mupdf.fz_draw_options_x_resolution_set)
  2406. y_resolution = property(_mupdf.fz_draw_options_y_resolution_get, _mupdf.fz_draw_options_y_resolution_set)
  2407. width = property(_mupdf.fz_draw_options_width_get, _mupdf.fz_draw_options_width_set)
  2408. height = property(_mupdf.fz_draw_options_height_get, _mupdf.fz_draw_options_height_set)
  2409. colorspace = property(_mupdf.fz_draw_options_colorspace_get, _mupdf.fz_draw_options_colorspace_set)
  2410. alpha = property(_mupdf.fz_draw_options_alpha_get, _mupdf.fz_draw_options_alpha_set)
  2411. graphics = property(_mupdf.fz_draw_options_graphics_get, _mupdf.fz_draw_options_graphics_set)
  2412. text = property(_mupdf.fz_draw_options_text_get, _mupdf.fz_draw_options_text_set)
  2413. def __init__(self):
  2414. _mupdf.fz_draw_options_swiginit(self, _mupdf.new_fz_draw_options())
  2415. __swig_destroy__ = _mupdf.delete_fz_draw_options
  2416. # Register fz_draw_options in _mupdf:
  2417. _mupdf.fz_draw_options_swigregister(fz_draw_options)
  2418. class fz_layout_char(object):
  2419. r"""Simple text layout (for use with annotation editing primarily)."""
  2420. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2421. __repr__ = _swig_repr
  2422. x = property(_mupdf.fz_layout_char_x_get, _mupdf.fz_layout_char_x_set)
  2423. advance = property(_mupdf.fz_layout_char_advance_get, _mupdf.fz_layout_char_advance_set)
  2424. p = property(_mupdf.fz_layout_char_p_get, _mupdf.fz_layout_char_p_set)
  2425. next = property(_mupdf.fz_layout_char_next_get, _mupdf.fz_layout_char_next_set)
  2426. def __init__(self):
  2427. _mupdf.fz_layout_char_swiginit(self, _mupdf.new_fz_layout_char())
  2428. __swig_destroy__ = _mupdf.delete_fz_layout_char
  2429. # Register fz_layout_char in _mupdf:
  2430. _mupdf.fz_layout_char_swigregister(fz_layout_char)
  2431. class fz_layout_line(object):
  2432. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2433. __repr__ = _swig_repr
  2434. x = property(_mupdf.fz_layout_line_x_get, _mupdf.fz_layout_line_x_set)
  2435. y = property(_mupdf.fz_layout_line_y_get, _mupdf.fz_layout_line_y_set)
  2436. font_size = property(_mupdf.fz_layout_line_font_size_get, _mupdf.fz_layout_line_font_size_set)
  2437. p = property(_mupdf.fz_layout_line_p_get, _mupdf.fz_layout_line_p_set)
  2438. text = property(_mupdf.fz_layout_line_text_get, _mupdf.fz_layout_line_text_set)
  2439. next = property(_mupdf.fz_layout_line_next_get, _mupdf.fz_layout_line_next_set)
  2440. def __init__(self):
  2441. _mupdf.fz_layout_line_swiginit(self, _mupdf.new_fz_layout_line())
  2442. __swig_destroy__ = _mupdf.delete_fz_layout_line
  2443. # Register fz_layout_line in _mupdf:
  2444. _mupdf.fz_layout_line_swigregister(fz_layout_line)
  2445. class fz_layout_block(object):
  2446. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2447. __repr__ = _swig_repr
  2448. pool = property(_mupdf.fz_layout_block_pool_get, _mupdf.fz_layout_block_pool_set)
  2449. matrix = property(_mupdf.fz_layout_block_matrix_get, _mupdf.fz_layout_block_matrix_set)
  2450. inv_matrix = property(_mupdf.fz_layout_block_inv_matrix_get, _mupdf.fz_layout_block_inv_matrix_set)
  2451. head = property(_mupdf.fz_layout_block_head_get, _mupdf.fz_layout_block_head_set)
  2452. tailp = property(_mupdf.fz_layout_block_tailp_get, _mupdf.fz_layout_block_tailp_set)
  2453. text_tailp = property(_mupdf.fz_layout_block_text_tailp_get, _mupdf.fz_layout_block_text_tailp_set)
  2454. def __init__(self):
  2455. _mupdf.fz_layout_block_swiginit(self, _mupdf.new_fz_layout_block())
  2456. __swig_destroy__ = _mupdf.delete_fz_layout_block
  2457. # Register fz_layout_block in _mupdf:
  2458. _mupdf.fz_layout_block_swigregister(fz_layout_block)
  2459. FZ_STEXT_PRESERVE_LIGATURES = _mupdf.FZ_STEXT_PRESERVE_LIGATURES
  2460. FZ_STEXT_PRESERVE_WHITESPACE = _mupdf.FZ_STEXT_PRESERVE_WHITESPACE
  2461. FZ_STEXT_PRESERVE_IMAGES = _mupdf.FZ_STEXT_PRESERVE_IMAGES
  2462. FZ_STEXT_INHIBIT_SPACES = _mupdf.FZ_STEXT_INHIBIT_SPACES
  2463. FZ_STEXT_DEHYPHENATE = _mupdf.FZ_STEXT_DEHYPHENATE
  2464. FZ_STEXT_PRESERVE_SPANS = _mupdf.FZ_STEXT_PRESERVE_SPANS
  2465. FZ_STEXT_CLIP = _mupdf.FZ_STEXT_CLIP
  2466. FZ_STEXT_USE_CID_FOR_UNKNOWN_UNICODE = _mupdf.FZ_STEXT_USE_CID_FOR_UNKNOWN_UNICODE
  2467. FZ_STEXT_COLLECT_STRUCTURE = _mupdf.FZ_STEXT_COLLECT_STRUCTURE
  2468. FZ_STEXT_ACCURATE_BBOXES = _mupdf.FZ_STEXT_ACCURATE_BBOXES
  2469. FZ_STEXT_COLLECT_VECTORS = _mupdf.FZ_STEXT_COLLECT_VECTORS
  2470. FZ_STEXT_IGNORE_ACTUALTEXT = _mupdf.FZ_STEXT_IGNORE_ACTUALTEXT
  2471. FZ_STEXT_SEGMENT = _mupdf.FZ_STEXT_SEGMENT
  2472. FZ_STEXT_PARAGRAPH_BREAK = _mupdf.FZ_STEXT_PARAGRAPH_BREAK
  2473. FZ_STEXT_TABLE_HUNT = _mupdf.FZ_STEXT_TABLE_HUNT
  2474. FZ_STEXT_COLLECT_STYLES = _mupdf.FZ_STEXT_COLLECT_STYLES
  2475. FZ_STEXT_USE_GID_FOR_UNKNOWN_UNICODE = _mupdf.FZ_STEXT_USE_GID_FOR_UNKNOWN_UNICODE
  2476. FZ_STEXT_CLIP_RECT = _mupdf.FZ_STEXT_CLIP_RECT
  2477. FZ_STEXT_ACCURATE_ASCENDERS = _mupdf.FZ_STEXT_ACCURATE_ASCENDERS
  2478. FZ_STEXT_ACCURATE_SIDE_BEARINGS = _mupdf.FZ_STEXT_ACCURATE_SIDE_BEARINGS
  2479. FZ_STEXT_MEDIABOX_CLIP = _mupdf.FZ_STEXT_MEDIABOX_CLIP
  2480. class fz_stext_page(object):
  2481. r"""
  2482. A note on stext's handling of structure.
  2483. A PDF document can contain a structure tree. This gives the
  2484. structure of a document in its entirety as a tree. e.g.
  2485. Tree MCID INDEX
  2486. -------------------------------------
  2487. DOC 0 0
  2488. TOC 1 0
  2489. TOC_ITEM 2 0
  2490. TOC_ITEM 3 1
  2491. TOC_ITEM 4 2
  2492. ...
  2493. STORY 100 1
  2494. SECTION 101 0
  2495. HEADING 102 0
  2496. SUBSECTION 103 1
  2497. PARAGRAPH 104 0
  2498. PARAGRAPH 105 1
  2499. PARAGRAPH 106 2
  2500. SUBSECTION 107 2
  2501. PARAGRAPH 108 0
  2502. PARAGRAPH 109 1
  2503. PARAGRAPH 110 2
  2504. ...
  2505. SECTION 200 1
  2506. ...
  2507. Each different section of the tree is identified as part of an
  2508. MCID by a number (this is a slight simplification, but makes the
  2509. explanation easier).
  2510. The PDF document contains markings that say "Entering MCID 0"
  2511. and "Leaving MCID 0". Any content within that region is therefore
  2512. identified as appearing in that particular structural region.
  2513. This means that content can be sent in the document in a different
  2514. order to which it appears 'logically' in the tree.
  2515. MuPDF converts this tree form into a nested series of calls to
  2516. begin_structure and end_structure.
  2517. For instance, if the document started out with MCID 100, then
  2518. we'd send:
  2519. begin_structure("DOC")
  2520. begin_structure("STORY")
  2521. The problem with this is that if we send:
  2522. begin_structure("DOC")
  2523. begin_structure("STORY")
  2524. begin_structure("SECTION")
  2525. begin_structure("SUBSECTION")
  2526. or
  2527. begin_structure("DOC")
  2528. begin_structure("STORY")
  2529. begin_structure("SECTION")
  2530. begin_structure("HEADING")
  2531. How do I know what order the SECTION and HEADING should appear in?
  2532. Are they even in the same STORY? Or the same DOC?
  2533. Accordingly, every begin_structure is accompanied not only with the
  2534. node type, but with an index. The index is the number of this node
  2535. within this level of the tree. Hence:
  2536. begin_structure("DOC", 0)
  2537. begin_structure("STORY", 0)
  2538. begin_structure("SECTION", 0)
  2539. begin_structure("HEADING", 0)
  2540. and
  2541. begin_structure("DOC", 0)
  2542. begin_structure("STORY", 0)
  2543. begin_structure("SECTION", 0)
  2544. begin_structure("SUBSECTION", 1)
  2545. are now unambiguous in their describing of the tree.
  2546. MuPDF automatically sends the minimal end_structure/begin_structure
  2547. pairs to move us between nodes in the tree.
  2548. In order to accommodate this information within the structured text
  2549. data structures an additional block type is used. Previously a
  2550. "page" was just a list of blocks, either text or images. e.g.
  2551. [BLOCK:TEXT] <-> [BLOCK:IMG] <-> [BLOCK:TEXT] <-> [BLOCK:TEXT] ...
  2552. We now introduce a new type of block, STRUCT, that turns this into
  2553. a tree:
  2554. [BLOCK:TEXT] <-> [BLOCK:STRUCT(IDX=0)] <-> [BLOCK:TEXT] <-> ...
  2555. /|
  2556. [STRUCT:TYPE=DOC] <----
  2557. |
  2558. [BLOCK:TEXT] <-> [BLOCK:STRUCT(IDX=0)] <-> [BLOCK:TEXT] <-> ...
  2559. /|
  2560. [STRUCT:TYPE=STORY] <--
  2561. |
  2562. ...
  2563. Rather than doing a simple linear traversal of the list to extract
  2564. the logical data, a caller now has to do a depth-first traversal.
  2565. A text page is a list of blocks, together with an overall
  2566. bounding box.
  2567. """
  2568. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2569. __repr__ = _swig_repr
  2570. pool = property(_mupdf.fz_stext_page_pool_get, _mupdf.fz_stext_page_pool_set)
  2571. mediabox = property(_mupdf.fz_stext_page_mediabox_get, _mupdf.fz_stext_page_mediabox_set)
  2572. first_block = property(_mupdf.fz_stext_page_first_block_get, _mupdf.fz_stext_page_first_block_set)
  2573. last_block = property(_mupdf.fz_stext_page_last_block_get, _mupdf.fz_stext_page_last_block_set)
  2574. last_struct = property(_mupdf.fz_stext_page_last_struct_get, _mupdf.fz_stext_page_last_struct_set)
  2575. def __init__(self):
  2576. _mupdf.fz_stext_page_swiginit(self, _mupdf.new_fz_stext_page())
  2577. __swig_destroy__ = _mupdf.delete_fz_stext_page
  2578. # Register fz_stext_page in _mupdf:
  2579. _mupdf.fz_stext_page_swigregister(fz_stext_page)
  2580. FZ_STEXT_BLOCK_TEXT = _mupdf.FZ_STEXT_BLOCK_TEXT
  2581. FZ_STEXT_BLOCK_IMAGE = _mupdf.FZ_STEXT_BLOCK_IMAGE
  2582. FZ_STEXT_BLOCK_STRUCT = _mupdf.FZ_STEXT_BLOCK_STRUCT
  2583. FZ_STEXT_BLOCK_VECTOR = _mupdf.FZ_STEXT_BLOCK_VECTOR
  2584. FZ_STEXT_BLOCK_GRID = _mupdf.FZ_STEXT_BLOCK_GRID
  2585. FZ_STEXT_TEXT_JUSTIFY_UNKNOWN = _mupdf.FZ_STEXT_TEXT_JUSTIFY_UNKNOWN
  2586. FZ_STEXT_TEXT_JUSTIFY_LEFT = _mupdf.FZ_STEXT_TEXT_JUSTIFY_LEFT
  2587. FZ_STEXT_TEXT_JUSTIFY_CENTRE = _mupdf.FZ_STEXT_TEXT_JUSTIFY_CENTRE
  2588. FZ_STEXT_TEXT_JUSTIFY_RIGHT = _mupdf.FZ_STEXT_TEXT_JUSTIFY_RIGHT
  2589. FZ_STEXT_TEXT_JUSTIFY_FULL = _mupdf.FZ_STEXT_TEXT_JUSTIFY_FULL
  2590. FZ_STEXT_VECTOR_IS_STROKED = _mupdf.FZ_STEXT_VECTOR_IS_STROKED
  2591. FZ_STEXT_VECTOR_IS_RECTANGLE = _mupdf.FZ_STEXT_VECTOR_IS_RECTANGLE
  2592. FZ_STEXT_VECTOR_CONTINUES = _mupdf.FZ_STEXT_VECTOR_CONTINUES
  2593. class fz_stext_block(object):
  2594. r"""
  2595. A text block is a list of lines of text (typically a paragraph),
  2596. or an image.
  2597. """
  2598. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2599. __repr__ = _swig_repr
  2600. type = property(_mupdf.fz_stext_block_type_get, _mupdf.fz_stext_block_type_set)
  2601. bbox = property(_mupdf.fz_stext_block_bbox_get, _mupdf.fz_stext_block_bbox_set)
  2602. prev = property(_mupdf.fz_stext_block_prev_get, _mupdf.fz_stext_block_prev_set)
  2603. next = property(_mupdf.fz_stext_block_next_get, _mupdf.fz_stext_block_next_set)
  2604. def __init__(self):
  2605. _mupdf.fz_stext_block_swiginit(self, _mupdf.new_fz_stext_block())
  2606. __swig_destroy__ = _mupdf.delete_fz_stext_block
  2607. # Register fz_stext_block in _mupdf:
  2608. _mupdf.fz_stext_block_swigregister(fz_stext_block)
  2609. class fz_stext_line(object):
  2610. r"""A text line is a list of characters that share a common baseline."""
  2611. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2612. __repr__ = _swig_repr
  2613. wmode = property(_mupdf.fz_stext_line_wmode_get, _mupdf.fz_stext_line_wmode_set)
  2614. dir = property(_mupdf.fz_stext_line_dir_get, _mupdf.fz_stext_line_dir_set)
  2615. bbox = property(_mupdf.fz_stext_line_bbox_get, _mupdf.fz_stext_line_bbox_set)
  2616. first_char = property(_mupdf.fz_stext_line_first_char_get, _mupdf.fz_stext_line_first_char_set)
  2617. last_char = property(_mupdf.fz_stext_line_last_char_get, _mupdf.fz_stext_line_last_char_set)
  2618. prev = property(_mupdf.fz_stext_line_prev_get, _mupdf.fz_stext_line_prev_set)
  2619. next = property(_mupdf.fz_stext_line_next_get, _mupdf.fz_stext_line_next_set)
  2620. def __init__(self):
  2621. _mupdf.fz_stext_line_swiginit(self, _mupdf.new_fz_stext_line())
  2622. __swig_destroy__ = _mupdf.delete_fz_stext_line
  2623. # Register fz_stext_line in _mupdf:
  2624. _mupdf.fz_stext_line_swigregister(fz_stext_line)
  2625. class fz_stext_char(object):
  2626. r"""
  2627. A text char is a unicode character, the style in which is
  2628. appears, and the point at which it is positioned.
  2629. """
  2630. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2631. __repr__ = _swig_repr
  2632. c = property(_mupdf.fz_stext_char_c_get, _mupdf.fz_stext_char_c_set)
  2633. bidi = property(_mupdf.fz_stext_char_bidi_get, _mupdf.fz_stext_char_bidi_set)
  2634. flags = property(_mupdf.fz_stext_char_flags_get, _mupdf.fz_stext_char_flags_set)
  2635. argb = property(_mupdf.fz_stext_char_argb_get, _mupdf.fz_stext_char_argb_set)
  2636. origin = property(_mupdf.fz_stext_char_origin_get, _mupdf.fz_stext_char_origin_set)
  2637. quad = property(_mupdf.fz_stext_char_quad_get, _mupdf.fz_stext_char_quad_set)
  2638. size = property(_mupdf.fz_stext_char_size_get, _mupdf.fz_stext_char_size_set)
  2639. font = property(_mupdf.fz_stext_char_font_get, _mupdf.fz_stext_char_font_set)
  2640. next = property(_mupdf.fz_stext_char_next_get, _mupdf.fz_stext_char_next_set)
  2641. def __init__(self):
  2642. _mupdf.fz_stext_char_swiginit(self, _mupdf.new_fz_stext_char())
  2643. __swig_destroy__ = _mupdf.delete_fz_stext_char
  2644. # Register fz_stext_char in _mupdf:
  2645. _mupdf.fz_stext_char_swigregister(fz_stext_char)
  2646. FZ_STEXT_STRIKEOUT = _mupdf.FZ_STEXT_STRIKEOUT
  2647. FZ_STEXT_UNDERLINE = _mupdf.FZ_STEXT_UNDERLINE
  2648. FZ_STEXT_SYNTHETIC = _mupdf.FZ_STEXT_SYNTHETIC
  2649. FZ_STEXT_BOLD = _mupdf.FZ_STEXT_BOLD
  2650. FZ_STEXT_FILLED = _mupdf.FZ_STEXT_FILLED
  2651. FZ_STEXT_STROKED = _mupdf.FZ_STEXT_STROKED
  2652. FZ_STEXT_CLIPPED = _mupdf.FZ_STEXT_CLIPPED
  2653. FZ_STEXT_UNICODE_IS_CID = _mupdf.FZ_STEXT_UNICODE_IS_CID
  2654. FZ_STEXT_UNICODE_IS_GID = _mupdf.FZ_STEXT_UNICODE_IS_GID
  2655. class fz_stext_struct(object):
  2656. r"""
  2657. When we are collecting the structure information from
  2658. PDF structure trees/tags, we end up with a tree of
  2659. nodes. The structure should be walked in depth-first
  2660. traversal order to extract the content.
  2661. An fz_stext_struct pointer can be NULL to indicate that
  2662. we know there is a child there within the complete tree,
  2663. but we don't know what it is yet.
  2664. """
  2665. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2666. __repr__ = _swig_repr
  2667. up = property(_mupdf.fz_stext_struct_up_get, _mupdf.fz_stext_struct_up_set)
  2668. parent = property(_mupdf.fz_stext_struct_parent_get, _mupdf.fz_stext_struct_parent_set)
  2669. first_block = property(_mupdf.fz_stext_struct_first_block_get, _mupdf.fz_stext_struct_first_block_set)
  2670. last_block = property(_mupdf.fz_stext_struct_last_block_get, _mupdf.fz_stext_struct_last_block_set)
  2671. standard = property(_mupdf.fz_stext_struct_standard_get, _mupdf.fz_stext_struct_standard_set)
  2672. raw = property(_mupdf.fz_stext_struct_raw_get, _mupdf.fz_stext_struct_raw_set)
  2673. def __init__(self):
  2674. _mupdf.fz_stext_struct_swiginit(self, _mupdf.new_fz_stext_struct())
  2675. __swig_destroy__ = _mupdf.delete_fz_stext_struct
  2676. # Register fz_stext_struct in _mupdf:
  2677. _mupdf.fz_stext_struct_swigregister(fz_stext_struct)
  2678. class fz_stext_grid_positions(object):
  2679. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2680. __repr__ = _swig_repr
  2681. len = property(_mupdf.fz_stext_grid_positions_len_get, _mupdf.fz_stext_grid_positions_len_set)
  2682. max_uncertainty = property(_mupdf.fz_stext_grid_positions_max_uncertainty_get, _mupdf.fz_stext_grid_positions_max_uncertainty_set)
  2683. def __init__(self):
  2684. _mupdf.fz_stext_grid_positions_swiginit(self, _mupdf.new_fz_stext_grid_positions())
  2685. __swig_destroy__ = _mupdf.delete_fz_stext_grid_positions
  2686. # Register fz_stext_grid_positions in _mupdf:
  2687. _mupdf.fz_stext_grid_positions_swigregister(fz_stext_grid_positions)
  2688. FZ_SELECT_CHARS = _mupdf.FZ_SELECT_CHARS
  2689. FZ_SELECT_WORDS = _mupdf.FZ_SELECT_WORDS
  2690. FZ_SELECT_LINES = _mupdf.FZ_SELECT_LINES
  2691. class fz_stext_options(object):
  2692. r"""Options for creating structured text."""
  2693. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2694. __repr__ = _swig_repr
  2695. flags = property(_mupdf.fz_stext_options_flags_get, _mupdf.fz_stext_options_flags_set)
  2696. scale = property(_mupdf.fz_stext_options_scale_get, _mupdf.fz_stext_options_scale_set)
  2697. clip = property(_mupdf.fz_stext_options_clip_get, _mupdf.fz_stext_options_clip_set)
  2698. def __init__(self):
  2699. _mupdf.fz_stext_options_swiginit(self, _mupdf.new_fz_stext_options())
  2700. __swig_destroy__ = _mupdf.delete_fz_stext_options
  2701. # Register fz_stext_options in _mupdf:
  2702. _mupdf.fz_stext_options_swigregister(fz_stext_options)
  2703. FZ_TRANSITION_NONE = _mupdf.FZ_TRANSITION_NONE
  2704. FZ_TRANSITION_SPLIT = _mupdf.FZ_TRANSITION_SPLIT
  2705. FZ_TRANSITION_BLINDS = _mupdf.FZ_TRANSITION_BLINDS
  2706. FZ_TRANSITION_BOX = _mupdf.FZ_TRANSITION_BOX
  2707. FZ_TRANSITION_WIPE = _mupdf.FZ_TRANSITION_WIPE
  2708. FZ_TRANSITION_DISSOLVE = _mupdf.FZ_TRANSITION_DISSOLVE
  2709. FZ_TRANSITION_GLITTER = _mupdf.FZ_TRANSITION_GLITTER
  2710. FZ_TRANSITION_FLY = _mupdf.FZ_TRANSITION_FLY
  2711. FZ_TRANSITION_PUSH = _mupdf.FZ_TRANSITION_PUSH
  2712. FZ_TRANSITION_COVER = _mupdf.FZ_TRANSITION_COVER
  2713. FZ_TRANSITION_UNCOVER = _mupdf.FZ_TRANSITION_UNCOVER
  2714. FZ_TRANSITION_FADE = _mupdf.FZ_TRANSITION_FADE
  2715. class fz_transition(object):
  2716. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2717. __repr__ = _swig_repr
  2718. type = property(_mupdf.fz_transition_type_get, _mupdf.fz_transition_type_set)
  2719. duration = property(_mupdf.fz_transition_duration_get, _mupdf.fz_transition_duration_set)
  2720. vertical = property(_mupdf.fz_transition_vertical_get, _mupdf.fz_transition_vertical_set)
  2721. outwards = property(_mupdf.fz_transition_outwards_get, _mupdf.fz_transition_outwards_set)
  2722. direction = property(_mupdf.fz_transition_direction_get, _mupdf.fz_transition_direction_set)
  2723. state0 = property(_mupdf.fz_transition_state0_get, _mupdf.fz_transition_state0_set)
  2724. state1 = property(_mupdf.fz_transition_state1_get, _mupdf.fz_transition_state1_set)
  2725. def __init__(self):
  2726. _mupdf.fz_transition_swiginit(self, _mupdf.new_fz_transition())
  2727. __swig_destroy__ = _mupdf.delete_fz_transition
  2728. # Register fz_transition in _mupdf:
  2729. _mupdf.fz_transition_swigregister(fz_transition)
  2730. class fz_link(object):
  2731. r"""
  2732. fz_link is a list of interactive links on a page.
  2733. There is no relation between the order of the links in the
  2734. list and the order they appear on the page. The list of links
  2735. for a given page can be obtained from fz_load_links.
  2736. A link is reference counted. Dropping a reference to a link is
  2737. done by calling fz_drop_link.
  2738. rect: The hot zone. The area that can be clicked in
  2739. untransformed coordinates.
  2740. uri: Link destinations come in two forms: internal and external.
  2741. Internal links refer to other pages in the same document.
  2742. External links are URLs to other documents.
  2743. next: A pointer to the next link on the same page.
  2744. """
  2745. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2746. __repr__ = _swig_repr
  2747. refs = property(_mupdf.fz_link_refs_get, _mupdf.fz_link_refs_set)
  2748. next = property(_mupdf.fz_link_next_get, _mupdf.fz_link_next_set)
  2749. rect = property(_mupdf.fz_link_rect_get, _mupdf.fz_link_rect_set)
  2750. uri = property(_mupdf.fz_link_uri_get, _mupdf.fz_link_uri_set)
  2751. set_rect_fn = property(_mupdf.fz_link_set_rect_fn_get, _mupdf.fz_link_set_rect_fn_set)
  2752. set_uri_fn = property(_mupdf.fz_link_set_uri_fn_get, _mupdf.fz_link_set_uri_fn_set)
  2753. drop = property(_mupdf.fz_link_drop_get, _mupdf.fz_link_drop_set)
  2754. def __init__(self):
  2755. _mupdf.fz_link_swiginit(self, _mupdf.new_fz_link())
  2756. __swig_destroy__ = _mupdf.delete_fz_link
  2757. # Register fz_link in _mupdf:
  2758. _mupdf.fz_link_swigregister(fz_link)
  2759. FZ_LINK_DEST_FIT = _mupdf.FZ_LINK_DEST_FIT
  2760. FZ_LINK_DEST_FIT_B = _mupdf.FZ_LINK_DEST_FIT_B
  2761. FZ_LINK_DEST_FIT_H = _mupdf.FZ_LINK_DEST_FIT_H
  2762. FZ_LINK_DEST_FIT_BH = _mupdf.FZ_LINK_DEST_FIT_BH
  2763. FZ_LINK_DEST_FIT_V = _mupdf.FZ_LINK_DEST_FIT_V
  2764. FZ_LINK_DEST_FIT_BV = _mupdf.FZ_LINK_DEST_FIT_BV
  2765. FZ_LINK_DEST_FIT_R = _mupdf.FZ_LINK_DEST_FIT_R
  2766. FZ_LINK_DEST_XYZ = _mupdf.FZ_LINK_DEST_XYZ
  2767. class fz_link_dest(object):
  2768. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2769. __repr__ = _swig_repr
  2770. loc = property(_mupdf.fz_link_dest_loc_get, _mupdf.fz_link_dest_loc_set)
  2771. type = property(_mupdf.fz_link_dest_type_get, _mupdf.fz_link_dest_type_set)
  2772. x = property(_mupdf.fz_link_dest_x_get, _mupdf.fz_link_dest_x_set)
  2773. y = property(_mupdf.fz_link_dest_y_get, _mupdf.fz_link_dest_y_set)
  2774. w = property(_mupdf.fz_link_dest_w_get, _mupdf.fz_link_dest_w_set)
  2775. h = property(_mupdf.fz_link_dest_h_get, _mupdf.fz_link_dest_h_set)
  2776. zoom = property(_mupdf.fz_link_dest_zoom_get, _mupdf.fz_link_dest_zoom_set)
  2777. def __init__(self):
  2778. _mupdf.fz_link_dest_swiginit(self, _mupdf.new_fz_link_dest())
  2779. __swig_destroy__ = _mupdf.delete_fz_link_dest
  2780. # Register fz_link_dest in _mupdf:
  2781. _mupdf.fz_link_dest_swigregister(fz_link_dest)
  2782. class fz_outline_item(object):
  2783. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2784. __repr__ = _swig_repr
  2785. title = property(_mupdf.fz_outline_item_title_get, _mupdf.fz_outline_item_title_set)
  2786. uri = property(_mupdf.fz_outline_item_uri_get, _mupdf.fz_outline_item_uri_set)
  2787. is_open = property(_mupdf.fz_outline_item_is_open_get, _mupdf.fz_outline_item_is_open_set)
  2788. flags = property(_mupdf.fz_outline_item_flags_get, _mupdf.fz_outline_item_flags_set)
  2789. r = property(_mupdf.fz_outline_item_r_get, _mupdf.fz_outline_item_r_set)
  2790. g = property(_mupdf.fz_outline_item_g_get, _mupdf.fz_outline_item_g_set)
  2791. b = property(_mupdf.fz_outline_item_b_get, _mupdf.fz_outline_item_b_set)
  2792. def __init__(self):
  2793. _mupdf.fz_outline_item_swiginit(self, _mupdf.new_fz_outline_item())
  2794. __swig_destroy__ = _mupdf.delete_fz_outline_item
  2795. # Register fz_outline_item in _mupdf:
  2796. _mupdf.fz_outline_item_swigregister(fz_outline_item)
  2797. FZ_OUTLINE_FLAG_BOLD = _mupdf.FZ_OUTLINE_FLAG_BOLD
  2798. FZ_OUTLINE_FLAG_ITALIC = _mupdf.FZ_OUTLINE_FLAG_ITALIC
  2799. class fz_outline(object):
  2800. r"""
  2801. Structure based API
  2802. fz_outline is a tree of the outline of a document (also known
  2803. as table of contents).
  2804. title: Title of outline item using UTF-8 encoding. May be NULL
  2805. if the outline item has no text string.
  2806. uri: Destination in the document to be displayed when this
  2807. outline item is activated. May be an internal or external
  2808. link, or NULL if the outline item does not have a destination.
  2809. page: The page number of an internal link, or -1 for external
  2810. links or links with no destination.
  2811. next: The next outline item at the same level as this outline
  2812. item. May be NULL if no more outline items exist at this level.
  2813. down: The outline items immediate children in the hierarchy.
  2814. May be NULL if no children exist.
  2815. is_open: If zero, the outline element is closed in the UI. If
  2816. 1, it should be open, showing any child elements.
  2817. flags: Bit 0 set -> Bold, Bit 1 set -> Italic. All other bits
  2818. reserved.
  2819. r, g, b: The RGB components of the color of this entry.
  2820. """
  2821. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2822. __repr__ = _swig_repr
  2823. refs = property(_mupdf.fz_outline_refs_get, _mupdf.fz_outline_refs_set)
  2824. title = property(_mupdf.fz_outline_title_get, _mupdf.fz_outline_title_set)
  2825. uri = property(_mupdf.fz_outline_uri_get, _mupdf.fz_outline_uri_set)
  2826. page = property(_mupdf.fz_outline_page_get, _mupdf.fz_outline_page_set)
  2827. x = property(_mupdf.fz_outline_x_get, _mupdf.fz_outline_x_set)
  2828. y = property(_mupdf.fz_outline_y_get, _mupdf.fz_outline_y_set)
  2829. next = property(_mupdf.fz_outline_next_get, _mupdf.fz_outline_next_set)
  2830. down = property(_mupdf.fz_outline_down_get, _mupdf.fz_outline_down_set)
  2831. is_open = property(_mupdf.fz_outline_is_open_get, _mupdf.fz_outline_is_open_set)
  2832. flags = property(_mupdf.fz_outline_flags_get, _mupdf.fz_outline_flags_set)
  2833. r = property(_mupdf.fz_outline_r_get, _mupdf.fz_outline_r_set)
  2834. g = property(_mupdf.fz_outline_g_get, _mupdf.fz_outline_g_set)
  2835. b = property(_mupdf.fz_outline_b_get, _mupdf.fz_outline_b_set)
  2836. def __init__(self):
  2837. _mupdf.fz_outline_swiginit(self, _mupdf.new_fz_outline())
  2838. __swig_destroy__ = _mupdf.delete_fz_outline
  2839. # Register fz_outline in _mupdf:
  2840. _mupdf.fz_outline_swigregister(fz_outline)
  2841. class fz_outline_iterator(object):
  2842. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2843. __repr__ = _swig_repr
  2844. drop = property(_mupdf.fz_outline_iterator_drop_get, _mupdf.fz_outline_iterator_drop_set)
  2845. item = property(_mupdf.fz_outline_iterator_item_get, _mupdf.fz_outline_iterator_item_set)
  2846. next = property(_mupdf.fz_outline_iterator_next_get, _mupdf.fz_outline_iterator_next_set)
  2847. prev = property(_mupdf.fz_outline_iterator_prev_get, _mupdf.fz_outline_iterator_prev_set)
  2848. up = property(_mupdf.fz_outline_iterator_up_get, _mupdf.fz_outline_iterator_up_set)
  2849. down = property(_mupdf.fz_outline_iterator_down_get, _mupdf.fz_outline_iterator_down_set)
  2850. insert = property(_mupdf.fz_outline_iterator_insert_get, _mupdf.fz_outline_iterator_insert_set)
  2851. update = property(_mupdf.fz_outline_iterator_update_get, _mupdf.fz_outline_iterator_update_set)
  2852. _del = property(_mupdf.fz_outline_iterator__del_get, _mupdf.fz_outline_iterator__del_set)
  2853. doc = property(_mupdf.fz_outline_iterator_doc_get, _mupdf.fz_outline_iterator_doc_set)
  2854. def __init__(self):
  2855. _mupdf.fz_outline_iterator_swiginit(self, _mupdf.new_fz_outline_iterator())
  2856. __swig_destroy__ = _mupdf.delete_fz_outline_iterator
  2857. # Register fz_outline_iterator in _mupdf:
  2858. _mupdf.fz_outline_iterator_swigregister(fz_outline_iterator)
  2859. FZ_MEDIA_BOX = _mupdf.FZ_MEDIA_BOX
  2860. FZ_CROP_BOX = _mupdf.FZ_CROP_BOX
  2861. FZ_BLEED_BOX = _mupdf.FZ_BLEED_BOX
  2862. FZ_TRIM_BOX = _mupdf.FZ_TRIM_BOX
  2863. FZ_ART_BOX = _mupdf.FZ_ART_BOX
  2864. FZ_UNKNOWN_BOX = _mupdf.FZ_UNKNOWN_BOX
  2865. FZ_LAYOUT_KINDLE_W = _mupdf.FZ_LAYOUT_KINDLE_W
  2866. FZ_LAYOUT_KINDLE_H = _mupdf.FZ_LAYOUT_KINDLE_H
  2867. FZ_LAYOUT_KINDLE_EM = _mupdf.FZ_LAYOUT_KINDLE_EM
  2868. FZ_LAYOUT_US_POCKET_W = _mupdf.FZ_LAYOUT_US_POCKET_W
  2869. FZ_LAYOUT_US_POCKET_H = _mupdf.FZ_LAYOUT_US_POCKET_H
  2870. FZ_LAYOUT_US_POCKET_EM = _mupdf.FZ_LAYOUT_US_POCKET_EM
  2871. FZ_LAYOUT_US_TRADE_W = _mupdf.FZ_LAYOUT_US_TRADE_W
  2872. FZ_LAYOUT_US_TRADE_H = _mupdf.FZ_LAYOUT_US_TRADE_H
  2873. FZ_LAYOUT_US_TRADE_EM = _mupdf.FZ_LAYOUT_US_TRADE_EM
  2874. FZ_LAYOUT_UK_A_FORMAT_W = _mupdf.FZ_LAYOUT_UK_A_FORMAT_W
  2875. FZ_LAYOUT_UK_A_FORMAT_H = _mupdf.FZ_LAYOUT_UK_A_FORMAT_H
  2876. FZ_LAYOUT_UK_A_FORMAT_EM = _mupdf.FZ_LAYOUT_UK_A_FORMAT_EM
  2877. FZ_LAYOUT_UK_B_FORMAT_W = _mupdf.FZ_LAYOUT_UK_B_FORMAT_W
  2878. FZ_LAYOUT_UK_B_FORMAT_H = _mupdf.FZ_LAYOUT_UK_B_FORMAT_H
  2879. FZ_LAYOUT_UK_B_FORMAT_EM = _mupdf.FZ_LAYOUT_UK_B_FORMAT_EM
  2880. FZ_LAYOUT_UK_C_FORMAT_W = _mupdf.FZ_LAYOUT_UK_C_FORMAT_W
  2881. FZ_LAYOUT_UK_C_FORMAT_H = _mupdf.FZ_LAYOUT_UK_C_FORMAT_H
  2882. FZ_LAYOUT_UK_C_FORMAT_EM = _mupdf.FZ_LAYOUT_UK_C_FORMAT_EM
  2883. FZ_LAYOUT_A5_W = _mupdf.FZ_LAYOUT_A5_W
  2884. FZ_LAYOUT_A5_H = _mupdf.FZ_LAYOUT_A5_H
  2885. FZ_LAYOUT_A5_EM = _mupdf.FZ_LAYOUT_A5_EM
  2886. FZ_DEFAULT_LAYOUT_W = _mupdf.FZ_DEFAULT_LAYOUT_W
  2887. FZ_DEFAULT_LAYOUT_H = _mupdf.FZ_DEFAULT_LAYOUT_H
  2888. FZ_DEFAULT_LAYOUT_EM = _mupdf.FZ_DEFAULT_LAYOUT_EM
  2889. FZ_PERMISSION_PRINT = _mupdf.FZ_PERMISSION_PRINT
  2890. FZ_PERMISSION_COPY = _mupdf.FZ_PERMISSION_COPY
  2891. FZ_PERMISSION_EDIT = _mupdf.FZ_PERMISSION_EDIT
  2892. FZ_PERMISSION_ANNOTATE = _mupdf.FZ_PERMISSION_ANNOTATE
  2893. FZ_PERMISSION_FORM = _mupdf.FZ_PERMISSION_FORM
  2894. FZ_PERMISSION_ACCESSIBILITY = _mupdf.FZ_PERMISSION_ACCESSIBILITY
  2895. FZ_PERMISSION_ASSEMBLE = _mupdf.FZ_PERMISSION_ASSEMBLE
  2896. FZ_PERMISSION_PRINT_HQ = _mupdf.FZ_PERMISSION_PRINT_HQ
  2897. FZ_META_FORMAT = _mupdf.FZ_META_FORMAT
  2898. FZ_META_ENCRYPTION = _mupdf.FZ_META_ENCRYPTION
  2899. FZ_META_INFO = _mupdf.FZ_META_INFO
  2900. FZ_META_INFO_TITLE = _mupdf.FZ_META_INFO_TITLE
  2901. FZ_META_INFO_AUTHOR = _mupdf.FZ_META_INFO_AUTHOR
  2902. FZ_META_INFO_SUBJECT = _mupdf.FZ_META_INFO_SUBJECT
  2903. FZ_META_INFO_KEYWORDS = _mupdf.FZ_META_INFO_KEYWORDS
  2904. FZ_META_INFO_CREATOR = _mupdf.FZ_META_INFO_CREATOR
  2905. FZ_META_INFO_PRODUCER = _mupdf.FZ_META_INFO_PRODUCER
  2906. FZ_META_INFO_CREATIONDATE = _mupdf.FZ_META_INFO_CREATIONDATE
  2907. FZ_META_INFO_MODIFICATIONDATE = _mupdf.FZ_META_INFO_MODIFICATIONDATE
  2908. class fz_page(object):
  2909. r"""
  2910. Structure definition is public so other classes can
  2911. derive from it. Do not access the members directly.
  2912. """
  2913. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2914. __repr__ = _swig_repr
  2915. refs = property(_mupdf.fz_page_refs_get, _mupdf.fz_page_refs_set)
  2916. doc = property(_mupdf.fz_page_doc_get, _mupdf.fz_page_doc_set)
  2917. chapter = property(_mupdf.fz_page_chapter_get, _mupdf.fz_page_chapter_set)
  2918. number = property(_mupdf.fz_page_number_get, _mupdf.fz_page_number_set)
  2919. incomplete = property(_mupdf.fz_page_incomplete_get, _mupdf.fz_page_incomplete_set)
  2920. in_doc = property(_mupdf.fz_page_in_doc_get, _mupdf.fz_page_in_doc_set)
  2921. drop_page = property(_mupdf.fz_page_drop_page_get, _mupdf.fz_page_drop_page_set)
  2922. bound_page = property(_mupdf.fz_page_bound_page_get, _mupdf.fz_page_bound_page_set)
  2923. run_page_contents = property(_mupdf.fz_page_run_page_contents_get, _mupdf.fz_page_run_page_contents_set)
  2924. run_page_annots = property(_mupdf.fz_page_run_page_annots_get, _mupdf.fz_page_run_page_annots_set)
  2925. run_page_widgets = property(_mupdf.fz_page_run_page_widgets_get, _mupdf.fz_page_run_page_widgets_set)
  2926. load_links = property(_mupdf.fz_page_load_links_get, _mupdf.fz_page_load_links_set)
  2927. page_presentation = property(_mupdf.fz_page_page_presentation_get, _mupdf.fz_page_page_presentation_set)
  2928. control_separation = property(_mupdf.fz_page_control_separation_get, _mupdf.fz_page_control_separation_set)
  2929. separation_disabled = property(_mupdf.fz_page_separation_disabled_get, _mupdf.fz_page_separation_disabled_set)
  2930. separations = property(_mupdf.fz_page_separations_get, _mupdf.fz_page_separations_set)
  2931. overprint = property(_mupdf.fz_page_overprint_get, _mupdf.fz_page_overprint_set)
  2932. create_link = property(_mupdf.fz_page_create_link_get, _mupdf.fz_page_create_link_set)
  2933. delete_link = property(_mupdf.fz_page_delete_link_get, _mupdf.fz_page_delete_link_set)
  2934. prev = property(_mupdf.fz_page_prev_get, _mupdf.fz_page_prev_set)
  2935. next = property(_mupdf.fz_page_next_get, _mupdf.fz_page_next_set)
  2936. def __init__(self):
  2937. _mupdf.fz_page_swiginit(self, _mupdf.new_fz_page())
  2938. __swig_destroy__ = _mupdf.delete_fz_page
  2939. # Register fz_page in _mupdf:
  2940. _mupdf.fz_page_swigregister(fz_page)
  2941. class fz_document(object):
  2942. r"""
  2943. Structure definition is public so other classes can
  2944. derive from it. Callers should not access the members
  2945. directly, though implementations will need initialize
  2946. functions directly.
  2947. """
  2948. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2949. __repr__ = _swig_repr
  2950. refs = property(_mupdf.fz_document_refs_get, _mupdf.fz_document_refs_set)
  2951. drop_document = property(_mupdf.fz_document_drop_document_get, _mupdf.fz_document_drop_document_set)
  2952. needs_password = property(_mupdf.fz_document_needs_password_get, _mupdf.fz_document_needs_password_set)
  2953. authenticate_password = property(_mupdf.fz_document_authenticate_password_get, _mupdf.fz_document_authenticate_password_set)
  2954. has_permission = property(_mupdf.fz_document_has_permission_get, _mupdf.fz_document_has_permission_set)
  2955. load_outline = property(_mupdf.fz_document_load_outline_get, _mupdf.fz_document_load_outline_set)
  2956. outline_iterator = property(_mupdf.fz_document_outline_iterator_get, _mupdf.fz_document_outline_iterator_set)
  2957. layout = property(_mupdf.fz_document_layout_get, _mupdf.fz_document_layout_set)
  2958. make_bookmark = property(_mupdf.fz_document_make_bookmark_get, _mupdf.fz_document_make_bookmark_set)
  2959. lookup_bookmark = property(_mupdf.fz_document_lookup_bookmark_get, _mupdf.fz_document_lookup_bookmark_set)
  2960. resolve_link_dest = property(_mupdf.fz_document_resolve_link_dest_get, _mupdf.fz_document_resolve_link_dest_set)
  2961. format_link_uri = property(_mupdf.fz_document_format_link_uri_get, _mupdf.fz_document_format_link_uri_set)
  2962. count_chapters = property(_mupdf.fz_document_count_chapters_get, _mupdf.fz_document_count_chapters_set)
  2963. count_pages = property(_mupdf.fz_document_count_pages_get, _mupdf.fz_document_count_pages_set)
  2964. load_page = property(_mupdf.fz_document_load_page_get, _mupdf.fz_document_load_page_set)
  2965. page_label = property(_mupdf.fz_document_page_label_get, _mupdf.fz_document_page_label_set)
  2966. lookup_metadata = property(_mupdf.fz_document_lookup_metadata_get, _mupdf.fz_document_lookup_metadata_set)
  2967. set_metadata = property(_mupdf.fz_document_set_metadata_get, _mupdf.fz_document_set_metadata_set)
  2968. get_output_intent = property(_mupdf.fz_document_get_output_intent_get, _mupdf.fz_document_get_output_intent_set)
  2969. output_accelerator = property(_mupdf.fz_document_output_accelerator_get, _mupdf.fz_document_output_accelerator_set)
  2970. run_structure = property(_mupdf.fz_document_run_structure_get, _mupdf.fz_document_run_structure_set)
  2971. as_pdf = property(_mupdf.fz_document_as_pdf_get, _mupdf.fz_document_as_pdf_set)
  2972. did_layout = property(_mupdf.fz_document_did_layout_get, _mupdf.fz_document_did_layout_set)
  2973. is_reflowable = property(_mupdf.fz_document_is_reflowable_get, _mupdf.fz_document_is_reflowable_set)
  2974. id = property(_mupdf.fz_document_id_get, _mupdf.fz_document_id_set)
  2975. open = property(_mupdf.fz_document_open_get, _mupdf.fz_document_open_set)
  2976. def __init__(self):
  2977. _mupdf.fz_document_swiginit(self, _mupdf.new_fz_document())
  2978. __swig_destroy__ = _mupdf.delete_fz_document
  2979. # Register fz_document in _mupdf:
  2980. _mupdf.fz_document_swigregister(fz_document)
  2981. class fz_document_handler(object):
  2982. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  2983. __repr__ = _swig_repr
  2984. recognize = property(_mupdf.fz_document_handler_recognize_get, _mupdf.fz_document_handler_recognize_set)
  2985. open = property(_mupdf.fz_document_handler_open_get, _mupdf.fz_document_handler_open_set)
  2986. extensions = property(_mupdf.fz_document_handler_extensions_get, _mupdf.fz_document_handler_extensions_set)
  2987. mimetypes = property(_mupdf.fz_document_handler_mimetypes_get, _mupdf.fz_document_handler_mimetypes_set)
  2988. recognize_content = property(_mupdf.fz_document_handler_recognize_content_get, _mupdf.fz_document_handler_recognize_content_set)
  2989. wants_dir = property(_mupdf.fz_document_handler_wants_dir_get, _mupdf.fz_document_handler_wants_dir_set)
  2990. wants_file = property(_mupdf.fz_document_handler_wants_file_get, _mupdf.fz_document_handler_wants_file_set)
  2991. fin = property(_mupdf.fz_document_handler_fin_get, _mupdf.fz_document_handler_fin_set)
  2992. def __init__(self):
  2993. _mupdf.fz_document_handler_swiginit(self, _mupdf.new_fz_document_handler())
  2994. __swig_destroy__ = _mupdf.delete_fz_document_handler
  2995. # Register fz_document_handler in _mupdf:
  2996. _mupdf.fz_document_handler_swigregister(fz_document_handler)
  2997. class fz_document_writer(object):
  2998. r"""
  2999. Structure is public to allow other structures to
  3000. be derived from it. Do not access members directly.
  3001. """
  3002. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3003. __repr__ = _swig_repr
  3004. begin_page = property(_mupdf.fz_document_writer_begin_page_get, _mupdf.fz_document_writer_begin_page_set)
  3005. end_page = property(_mupdf.fz_document_writer_end_page_get, _mupdf.fz_document_writer_end_page_set)
  3006. close_writer = property(_mupdf.fz_document_writer_close_writer_get, _mupdf.fz_document_writer_close_writer_set)
  3007. drop_writer = property(_mupdf.fz_document_writer_drop_writer_get, _mupdf.fz_document_writer_drop_writer_set)
  3008. dev = property(_mupdf.fz_document_writer_dev_get, _mupdf.fz_document_writer_dev_set)
  3009. def __init__(self):
  3010. _mupdf.fz_document_writer_swiginit(self, _mupdf.new_fz_document_writer())
  3011. __swig_destroy__ = _mupdf.delete_fz_document_writer
  3012. # Register fz_document_writer in _mupdf:
  3013. _mupdf.fz_document_writer_swigregister(fz_document_writer)
  3014. class fz_band_writer(object):
  3015. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3016. __repr__ = _swig_repr
  3017. drop = property(_mupdf.fz_band_writer_drop_get, _mupdf.fz_band_writer_drop_set)
  3018. close = property(_mupdf.fz_band_writer_close_get, _mupdf.fz_band_writer_close_set)
  3019. header = property(_mupdf.fz_band_writer_header_get, _mupdf.fz_band_writer_header_set)
  3020. band = property(_mupdf.fz_band_writer_band_get, _mupdf.fz_band_writer_band_set)
  3021. trailer = property(_mupdf.fz_band_writer_trailer_get, _mupdf.fz_band_writer_trailer_set)
  3022. out = property(_mupdf.fz_band_writer_out_get, _mupdf.fz_band_writer_out_set)
  3023. w = property(_mupdf.fz_band_writer_w_get, _mupdf.fz_band_writer_w_set)
  3024. h = property(_mupdf.fz_band_writer_h_get, _mupdf.fz_band_writer_h_set)
  3025. n = property(_mupdf.fz_band_writer_n_get, _mupdf.fz_band_writer_n_set)
  3026. s = property(_mupdf.fz_band_writer_s_get, _mupdf.fz_band_writer_s_set)
  3027. alpha = property(_mupdf.fz_band_writer_alpha_get, _mupdf.fz_band_writer_alpha_set)
  3028. xres = property(_mupdf.fz_band_writer_xres_get, _mupdf.fz_band_writer_xres_set)
  3029. yres = property(_mupdf.fz_band_writer_yres_get, _mupdf.fz_band_writer_yres_set)
  3030. pagenum = property(_mupdf.fz_band_writer_pagenum_get, _mupdf.fz_band_writer_pagenum_set)
  3031. line = property(_mupdf.fz_band_writer_line_get, _mupdf.fz_band_writer_line_set)
  3032. seps = property(_mupdf.fz_band_writer_seps_get, _mupdf.fz_band_writer_seps_set)
  3033. def __init__(self):
  3034. _mupdf.fz_band_writer_swiginit(self, _mupdf.new_fz_band_writer())
  3035. __swig_destroy__ = _mupdf.delete_fz_band_writer
  3036. # Register fz_band_writer in _mupdf:
  3037. _mupdf.fz_band_writer_swigregister(fz_band_writer)
  3038. class fz_pcl_options(object):
  3039. r"""PCL output"""
  3040. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3041. __repr__ = _swig_repr
  3042. features = property(_mupdf.fz_pcl_options_features_get, _mupdf.fz_pcl_options_features_set)
  3043. odd_page_init = property(_mupdf.fz_pcl_options_odd_page_init_get, _mupdf.fz_pcl_options_odd_page_init_set)
  3044. even_page_init = property(_mupdf.fz_pcl_options_even_page_init_get, _mupdf.fz_pcl_options_even_page_init_set)
  3045. tumble = property(_mupdf.fz_pcl_options_tumble_get, _mupdf.fz_pcl_options_tumble_set)
  3046. duplex_set = property(_mupdf.fz_pcl_options_duplex_set_get, _mupdf.fz_pcl_options_duplex_set_set)
  3047. duplex = property(_mupdf.fz_pcl_options_duplex_get, _mupdf.fz_pcl_options_duplex_set)
  3048. paper_size = property(_mupdf.fz_pcl_options_paper_size_get, _mupdf.fz_pcl_options_paper_size_set)
  3049. manual_feed_set = property(_mupdf.fz_pcl_options_manual_feed_set_get, _mupdf.fz_pcl_options_manual_feed_set_set)
  3050. manual_feed = property(_mupdf.fz_pcl_options_manual_feed_get, _mupdf.fz_pcl_options_manual_feed_set)
  3051. media_position_set = property(_mupdf.fz_pcl_options_media_position_set_get, _mupdf.fz_pcl_options_media_position_set_set)
  3052. media_position = property(_mupdf.fz_pcl_options_media_position_get, _mupdf.fz_pcl_options_media_position_set)
  3053. orientation = property(_mupdf.fz_pcl_options_orientation_get, _mupdf.fz_pcl_options_orientation_set)
  3054. page_count = property(_mupdf.fz_pcl_options_page_count_get, _mupdf.fz_pcl_options_page_count_set)
  3055. def __init__(self):
  3056. _mupdf.fz_pcl_options_swiginit(self, _mupdf.new_fz_pcl_options())
  3057. __swig_destroy__ = _mupdf.delete_fz_pcl_options
  3058. # Register fz_pcl_options in _mupdf:
  3059. _mupdf.fz_pcl_options_swigregister(fz_pcl_options)
  3060. class fz_pclm_options(object):
  3061. r"""PCLm output"""
  3062. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3063. __repr__ = _swig_repr
  3064. compress = property(_mupdf.fz_pclm_options_compress_get, _mupdf.fz_pclm_options_compress_set)
  3065. strip_height = property(_mupdf.fz_pclm_options_strip_height_get, _mupdf.fz_pclm_options_strip_height_set)
  3066. page_count = property(_mupdf.fz_pclm_options_page_count_get, _mupdf.fz_pclm_options_page_count_set)
  3067. def __init__(self):
  3068. _mupdf.fz_pclm_options_swiginit(self, _mupdf.new_fz_pclm_options())
  3069. __swig_destroy__ = _mupdf.delete_fz_pclm_options
  3070. # Register fz_pclm_options in _mupdf:
  3071. _mupdf.fz_pclm_options_swigregister(fz_pclm_options)
  3072. class fz_pdfocr_options(object):
  3073. r"""PDFOCR output"""
  3074. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3075. __repr__ = _swig_repr
  3076. compress = property(_mupdf.fz_pdfocr_options_compress_get, _mupdf.fz_pdfocr_options_compress_set)
  3077. strip_height = property(_mupdf.fz_pdfocr_options_strip_height_get, _mupdf.fz_pdfocr_options_strip_height_set)
  3078. language = property(_mupdf.fz_pdfocr_options_language_get, _mupdf.fz_pdfocr_options_language_set)
  3079. datadir = property(_mupdf.fz_pdfocr_options_datadir_get, _mupdf.fz_pdfocr_options_datadir_set)
  3080. skew_correct = property(_mupdf.fz_pdfocr_options_skew_correct_get, _mupdf.fz_pdfocr_options_skew_correct_set)
  3081. skew_angle = property(_mupdf.fz_pdfocr_options_skew_angle_get, _mupdf.fz_pdfocr_options_skew_angle_set)
  3082. skew_border = property(_mupdf.fz_pdfocr_options_skew_border_get, _mupdf.fz_pdfocr_options_skew_border_set)
  3083. page_count = property(_mupdf.fz_pdfocr_options_page_count_get, _mupdf.fz_pdfocr_options_page_count_set)
  3084. def __init__(self):
  3085. _mupdf.fz_pdfocr_options_swiginit(self, _mupdf.new_fz_pdfocr_options())
  3086. __swig_destroy__ = _mupdf.delete_fz_pdfocr_options
  3087. # Register fz_pdfocr_options in _mupdf:
  3088. _mupdf.fz_pdfocr_options_swigregister(fz_pdfocr_options)
  3089. class fz_pwg_options(object):
  3090. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3091. __repr__ = _swig_repr
  3092. media_class = property(_mupdf.fz_pwg_options_media_class_get, _mupdf.fz_pwg_options_media_class_set)
  3093. media_color = property(_mupdf.fz_pwg_options_media_color_get, _mupdf.fz_pwg_options_media_color_set)
  3094. media_type = property(_mupdf.fz_pwg_options_media_type_get, _mupdf.fz_pwg_options_media_type_set)
  3095. output_type = property(_mupdf.fz_pwg_options_output_type_get, _mupdf.fz_pwg_options_output_type_set)
  3096. advance_distance = property(_mupdf.fz_pwg_options_advance_distance_get, _mupdf.fz_pwg_options_advance_distance_set)
  3097. advance_media = property(_mupdf.fz_pwg_options_advance_media_get, _mupdf.fz_pwg_options_advance_media_set)
  3098. collate = property(_mupdf.fz_pwg_options_collate_get, _mupdf.fz_pwg_options_collate_set)
  3099. cut_media = property(_mupdf.fz_pwg_options_cut_media_get, _mupdf.fz_pwg_options_cut_media_set)
  3100. duplex = property(_mupdf.fz_pwg_options_duplex_get, _mupdf.fz_pwg_options_duplex_set)
  3101. insert_sheet = property(_mupdf.fz_pwg_options_insert_sheet_get, _mupdf.fz_pwg_options_insert_sheet_set)
  3102. jog = property(_mupdf.fz_pwg_options_jog_get, _mupdf.fz_pwg_options_jog_set)
  3103. leading_edge = property(_mupdf.fz_pwg_options_leading_edge_get, _mupdf.fz_pwg_options_leading_edge_set)
  3104. manual_feed = property(_mupdf.fz_pwg_options_manual_feed_get, _mupdf.fz_pwg_options_manual_feed_set)
  3105. media_position = property(_mupdf.fz_pwg_options_media_position_get, _mupdf.fz_pwg_options_media_position_set)
  3106. media_weight = property(_mupdf.fz_pwg_options_media_weight_get, _mupdf.fz_pwg_options_media_weight_set)
  3107. mirror_print = property(_mupdf.fz_pwg_options_mirror_print_get, _mupdf.fz_pwg_options_mirror_print_set)
  3108. negative_print = property(_mupdf.fz_pwg_options_negative_print_get, _mupdf.fz_pwg_options_negative_print_set)
  3109. num_copies = property(_mupdf.fz_pwg_options_num_copies_get, _mupdf.fz_pwg_options_num_copies_set)
  3110. orientation = property(_mupdf.fz_pwg_options_orientation_get, _mupdf.fz_pwg_options_orientation_set)
  3111. output_face_up = property(_mupdf.fz_pwg_options_output_face_up_get, _mupdf.fz_pwg_options_output_face_up_set)
  3112. PageSize = property(_mupdf.fz_pwg_options_PageSize_get, _mupdf.fz_pwg_options_PageSize_set)
  3113. separations = property(_mupdf.fz_pwg_options_separations_get, _mupdf.fz_pwg_options_separations_set)
  3114. tray_switch = property(_mupdf.fz_pwg_options_tray_switch_get, _mupdf.fz_pwg_options_tray_switch_set)
  3115. tumble = property(_mupdf.fz_pwg_options_tumble_get, _mupdf.fz_pwg_options_tumble_set)
  3116. media_type_num = property(_mupdf.fz_pwg_options_media_type_num_get, _mupdf.fz_pwg_options_media_type_num_set)
  3117. compression = property(_mupdf.fz_pwg_options_compression_get, _mupdf.fz_pwg_options_compression_set)
  3118. row_count = property(_mupdf.fz_pwg_options_row_count_get, _mupdf.fz_pwg_options_row_count_set)
  3119. row_feed = property(_mupdf.fz_pwg_options_row_feed_get, _mupdf.fz_pwg_options_row_feed_set)
  3120. row_step = property(_mupdf.fz_pwg_options_row_step_get, _mupdf.fz_pwg_options_row_step_set)
  3121. rendering_intent = property(_mupdf.fz_pwg_options_rendering_intent_get, _mupdf.fz_pwg_options_rendering_intent_set)
  3122. page_size_name = property(_mupdf.fz_pwg_options_page_size_name_get, _mupdf.fz_pwg_options_page_size_name_set)
  3123. def __init__(self):
  3124. _mupdf.fz_pwg_options_swiginit(self, _mupdf.new_fz_pwg_options())
  3125. __swig_destroy__ = _mupdf.delete_fz_pwg_options
  3126. # Register fz_pwg_options in _mupdf:
  3127. _mupdf.fz_pwg_options_swigregister(fz_pwg_options)
  3128. FZ_SVG_TEXT_AS_PATH = _mupdf.FZ_SVG_TEXT_AS_PATH
  3129. FZ_SVG_TEXT_AS_TEXT = _mupdf.FZ_SVG_TEXT_AS_TEXT
  3130. FZ_PLACE_STORY_FLAG_NO_OVERFLOW = _mupdf.FZ_PLACE_STORY_FLAG_NO_OVERFLOW
  3131. FZ_PLACE_STORY_RETURN_ALL_FITTED = _mupdf.FZ_PLACE_STORY_RETURN_ALL_FITTED
  3132. FZ_PLACE_STORY_RETURN_OVERFLOW_WIDTH = _mupdf.FZ_PLACE_STORY_RETURN_OVERFLOW_WIDTH
  3133. class fz_story_element_position(object):
  3134. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3135. __repr__ = _swig_repr
  3136. depth = property(_mupdf.fz_story_element_position_depth_get, _mupdf.fz_story_element_position_depth_set)
  3137. heading = property(_mupdf.fz_story_element_position_heading_get, _mupdf.fz_story_element_position_heading_set)
  3138. id = property(_mupdf.fz_story_element_position_id_get, _mupdf.fz_story_element_position_id_set)
  3139. href = property(_mupdf.fz_story_element_position_href_get, _mupdf.fz_story_element_position_href_set)
  3140. rect = property(_mupdf.fz_story_element_position_rect_get, _mupdf.fz_story_element_position_rect_set)
  3141. text = property(_mupdf.fz_story_element_position_text_get, _mupdf.fz_story_element_position_text_set)
  3142. open_close = property(_mupdf.fz_story_element_position_open_close_get, _mupdf.fz_story_element_position_open_close_set)
  3143. rectangle_num = property(_mupdf.fz_story_element_position_rectangle_num_get, _mupdf.fz_story_element_position_rectangle_num_set)
  3144. def __init__(self):
  3145. _mupdf.fz_story_element_position_swiginit(self, _mupdf.new_fz_story_element_position())
  3146. __swig_destroy__ = _mupdf.delete_fz_story_element_position
  3147. # Register fz_story_element_position in _mupdf:
  3148. _mupdf.fz_story_element_position_swigregister(fz_story_element_position)
  3149. class fz_write_story_position(object):
  3150. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3151. __repr__ = _swig_repr
  3152. element = property(_mupdf.fz_write_story_position_element_get, _mupdf.fz_write_story_position_element_set)
  3153. page_num = property(_mupdf.fz_write_story_position_page_num_get, _mupdf.fz_write_story_position_page_num_set)
  3154. def __init__(self):
  3155. _mupdf.fz_write_story_position_swiginit(self, _mupdf.new_fz_write_story_position())
  3156. __swig_destroy__ = _mupdf.delete_fz_write_story_position
  3157. # Register fz_write_story_position in _mupdf:
  3158. _mupdf.fz_write_story_position_swigregister(fz_write_story_position)
  3159. class fz_write_story_positions(object):
  3160. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3161. __repr__ = _swig_repr
  3162. positions = property(_mupdf.fz_write_story_positions_positions_get, _mupdf.fz_write_story_positions_positions_set)
  3163. num = property(_mupdf.fz_write_story_positions_num_get, _mupdf.fz_write_story_positions_num_set)
  3164. def __init__(self):
  3165. _mupdf.fz_write_story_positions_swiginit(self, _mupdf.new_fz_write_story_positions())
  3166. __swig_destroy__ = _mupdf.delete_fz_write_story_positions
  3167. # Register fz_write_story_positions in _mupdf:
  3168. _mupdf.fz_write_story_positions_swigregister(fz_write_story_positions)
  3169. FZ_DESKEW_BORDER_INCREASE = _mupdf.FZ_DESKEW_BORDER_INCREASE
  3170. FZ_DESKEW_BORDER_MAINTAIN = _mupdf.FZ_DESKEW_BORDER_MAINTAIN
  3171. FZ_DESKEW_BORDER_DECREASE = _mupdf.FZ_DESKEW_BORDER_DECREASE
  3172. FZ_BARCODE_NONE = _mupdf.FZ_BARCODE_NONE
  3173. FZ_BARCODE_AZTEC = _mupdf.FZ_BARCODE_AZTEC
  3174. FZ_BARCODE_CODABAR = _mupdf.FZ_BARCODE_CODABAR
  3175. FZ_BARCODE_CODE39 = _mupdf.FZ_BARCODE_CODE39
  3176. FZ_BARCODE_CODE93 = _mupdf.FZ_BARCODE_CODE93
  3177. FZ_BARCODE_CODE128 = _mupdf.FZ_BARCODE_CODE128
  3178. FZ_BARCODE_DATABAR = _mupdf.FZ_BARCODE_DATABAR
  3179. FZ_BARCODE_DATABAREXPANDED = _mupdf.FZ_BARCODE_DATABAREXPANDED
  3180. FZ_BARCODE_DATAMATRIX = _mupdf.FZ_BARCODE_DATAMATRIX
  3181. FZ_BARCODE_EAN8 = _mupdf.FZ_BARCODE_EAN8
  3182. FZ_BARCODE_EAN13 = _mupdf.FZ_BARCODE_EAN13
  3183. FZ_BARCODE_ITF = _mupdf.FZ_BARCODE_ITF
  3184. FZ_BARCODE_MAXICODE = _mupdf.FZ_BARCODE_MAXICODE
  3185. FZ_BARCODE_PDF417 = _mupdf.FZ_BARCODE_PDF417
  3186. FZ_BARCODE_QRCODE = _mupdf.FZ_BARCODE_QRCODE
  3187. FZ_BARCODE_UPCA = _mupdf.FZ_BARCODE_UPCA
  3188. FZ_BARCODE_UPCE = _mupdf.FZ_BARCODE_UPCE
  3189. FZ_BARCODE_MICROQRCODE = _mupdf.FZ_BARCODE_MICROQRCODE
  3190. FZ_BARCODE_RMQRCODE = _mupdf.FZ_BARCODE_RMQRCODE
  3191. FZ_BARCODE_DXFILMEDGE = _mupdf.FZ_BARCODE_DXFILMEDGE
  3192. FZ_BARCODE_DATABARLIMITED = _mupdf.FZ_BARCODE_DATABARLIMITED
  3193. FZ_BARCODE__LIMIT = _mupdf.FZ_BARCODE__LIMIT
  3194. PDF_MAX_OBJECT_NUMBER = _mupdf.PDF_MAX_OBJECT_NUMBER
  3195. PDF_MAX_GEN_NUMBER = _mupdf.PDF_MAX_GEN_NUMBER
  3196. class pdf_cycle_list(object):
  3197. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3198. __repr__ = _swig_repr
  3199. up = property(_mupdf.pdf_cycle_list_up_get, _mupdf.pdf_cycle_list_up_set)
  3200. num = property(_mupdf.pdf_cycle_list_num_get, _mupdf.pdf_cycle_list_num_set)
  3201. def __init__(self):
  3202. _mupdf.pdf_cycle_list_swiginit(self, _mupdf.new_pdf_cycle_list())
  3203. __swig_destroy__ = _mupdf.delete_pdf_cycle_list
  3204. # Register pdf_cycle_list in _mupdf:
  3205. _mupdf.pdf_cycle_list_swigregister(pdf_cycle_list)
  3206. class pdf_mark_bits(object):
  3207. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3208. __repr__ = _swig_repr
  3209. len = property(_mupdf.pdf_mark_bits_len_get, _mupdf.pdf_mark_bits_len_set)
  3210. bits = property(_mupdf.pdf_mark_bits_bits_get, _mupdf.pdf_mark_bits_bits_set)
  3211. def __init__(self):
  3212. _mupdf.pdf_mark_bits_swiginit(self, _mupdf.new_pdf_mark_bits())
  3213. __swig_destroy__ = _mupdf.delete_pdf_mark_bits
  3214. # Register pdf_mark_bits in _mupdf:
  3215. _mupdf.pdf_mark_bits_swigregister(pdf_mark_bits)
  3216. class pdf_mark_list(object):
  3217. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3218. __repr__ = _swig_repr
  3219. len = property(_mupdf.pdf_mark_list_len_get, _mupdf.pdf_mark_list_len_set)
  3220. max = property(_mupdf.pdf_mark_list_max_get, _mupdf.pdf_mark_list_max_set)
  3221. list = property(_mupdf.pdf_mark_list_list_get, _mupdf.pdf_mark_list_list_set)
  3222. local_list = property(_mupdf.pdf_mark_list_local_list_get, _mupdf.pdf_mark_list_local_list_set)
  3223. def __init__(self):
  3224. _mupdf.pdf_mark_list_swiginit(self, _mupdf.new_pdf_mark_list())
  3225. __swig_destroy__ = _mupdf.delete_pdf_mark_list
  3226. # Register pdf_mark_list in _mupdf:
  3227. _mupdf.pdf_mark_list_swigregister(pdf_mark_list)
  3228. PDF_ENUM_NULL = _mupdf.PDF_ENUM_NULL
  3229. PDF_ENUM_TRUE = _mupdf.PDF_ENUM_TRUE
  3230. PDF_ENUM_FALSE = _mupdf.PDF_ENUM_FALSE
  3231. PDF_ENUM_NAME_1_2 = _mupdf.PDF_ENUM_NAME_1_2
  3232. PDF_ENUM_NAME_1_5 = _mupdf.PDF_ENUM_NAME_1_5
  3233. PDF_ENUM_NAME_3D = _mupdf.PDF_ENUM_NAME_3D
  3234. PDF_ENUM_NAME_A = _mupdf.PDF_ENUM_NAME_A
  3235. PDF_ENUM_NAME_A85 = _mupdf.PDF_ENUM_NAME_A85
  3236. PDF_ENUM_NAME_AA = _mupdf.PDF_ENUM_NAME_AA
  3237. PDF_ENUM_NAME_AC = _mupdf.PDF_ENUM_NAME_AC
  3238. PDF_ENUM_NAME_AESV2 = _mupdf.PDF_ENUM_NAME_AESV2
  3239. PDF_ENUM_NAME_AESV3 = _mupdf.PDF_ENUM_NAME_AESV3
  3240. PDF_ENUM_NAME_AF = _mupdf.PDF_ENUM_NAME_AF
  3241. PDF_ENUM_NAME_AFRelationship = _mupdf.PDF_ENUM_NAME_AFRelationship
  3242. PDF_ENUM_NAME_AHx = _mupdf.PDF_ENUM_NAME_AHx
  3243. PDF_ENUM_NAME_AP = _mupdf.PDF_ENUM_NAME_AP
  3244. PDF_ENUM_NAME_AS = _mupdf.PDF_ENUM_NAME_AS
  3245. PDF_ENUM_NAME_ASCII85Decode = _mupdf.PDF_ENUM_NAME_ASCII85Decode
  3246. PDF_ENUM_NAME_ASCIIHexDecode = _mupdf.PDF_ENUM_NAME_ASCIIHexDecode
  3247. PDF_ENUM_NAME_AbsoluteColorimetric = _mupdf.PDF_ENUM_NAME_AbsoluteColorimetric
  3248. PDF_ENUM_NAME_AcroForm = _mupdf.PDF_ENUM_NAME_AcroForm
  3249. PDF_ENUM_NAME_Action = _mupdf.PDF_ENUM_NAME_Action
  3250. PDF_ENUM_NAME_ActualText = _mupdf.PDF_ENUM_NAME_ActualText
  3251. PDF_ENUM_NAME_Adobe_PPKLite = _mupdf.PDF_ENUM_NAME_Adobe_PPKLite
  3252. PDF_ENUM_NAME_All = _mupdf.PDF_ENUM_NAME_All
  3253. PDF_ENUM_NAME_AllOff = _mupdf.PDF_ENUM_NAME_AllOff
  3254. PDF_ENUM_NAME_AllOn = _mupdf.PDF_ENUM_NAME_AllOn
  3255. PDF_ENUM_NAME_Alpha = _mupdf.PDF_ENUM_NAME_Alpha
  3256. PDF_ENUM_NAME_Alt = _mupdf.PDF_ENUM_NAME_Alt
  3257. PDF_ENUM_NAME_Alternate = _mupdf.PDF_ENUM_NAME_Alternate
  3258. PDF_ENUM_NAME_Alternative = _mupdf.PDF_ENUM_NAME_Alternative
  3259. PDF_ENUM_NAME_Annot = _mupdf.PDF_ENUM_NAME_Annot
  3260. PDF_ENUM_NAME_Annots = _mupdf.PDF_ENUM_NAME_Annots
  3261. PDF_ENUM_NAME_AnyOff = _mupdf.PDF_ENUM_NAME_AnyOff
  3262. PDF_ENUM_NAME_App = _mupdf.PDF_ENUM_NAME_App
  3263. PDF_ENUM_NAME_Approved = _mupdf.PDF_ENUM_NAME_Approved
  3264. PDF_ENUM_NAME_Art = _mupdf.PDF_ENUM_NAME_Art
  3265. PDF_ENUM_NAME_ArtBox = _mupdf.PDF_ENUM_NAME_ArtBox
  3266. PDF_ENUM_NAME_Artifact = _mupdf.PDF_ENUM_NAME_Artifact
  3267. PDF_ENUM_NAME_AsIs = _mupdf.PDF_ENUM_NAME_AsIs
  3268. PDF_ENUM_NAME_Ascent = _mupdf.PDF_ENUM_NAME_Ascent
  3269. PDF_ENUM_NAME_Aside = _mupdf.PDF_ENUM_NAME_Aside
  3270. PDF_ENUM_NAME_AuthEvent = _mupdf.PDF_ENUM_NAME_AuthEvent
  3271. PDF_ENUM_NAME_Author = _mupdf.PDF_ENUM_NAME_Author
  3272. PDF_ENUM_NAME_B = _mupdf.PDF_ENUM_NAME_B
  3273. PDF_ENUM_NAME_BBox = _mupdf.PDF_ENUM_NAME_BBox
  3274. PDF_ENUM_NAME_BC = _mupdf.PDF_ENUM_NAME_BC
  3275. PDF_ENUM_NAME_BE = _mupdf.PDF_ENUM_NAME_BE
  3276. PDF_ENUM_NAME_BG = _mupdf.PDF_ENUM_NAME_BG
  3277. PDF_ENUM_NAME_BM = _mupdf.PDF_ENUM_NAME_BM
  3278. PDF_ENUM_NAME_BPC = _mupdf.PDF_ENUM_NAME_BPC
  3279. PDF_ENUM_NAME_BS = _mupdf.PDF_ENUM_NAME_BS
  3280. PDF_ENUM_NAME_Background = _mupdf.PDF_ENUM_NAME_Background
  3281. PDF_ENUM_NAME_BaseEncoding = _mupdf.PDF_ENUM_NAME_BaseEncoding
  3282. PDF_ENUM_NAME_BaseFont = _mupdf.PDF_ENUM_NAME_BaseFont
  3283. PDF_ENUM_NAME_BaseState = _mupdf.PDF_ENUM_NAME_BaseState
  3284. PDF_ENUM_NAME_BibEntry = _mupdf.PDF_ENUM_NAME_BibEntry
  3285. PDF_ENUM_NAME_BitsPerComponent = _mupdf.PDF_ENUM_NAME_BitsPerComponent
  3286. PDF_ENUM_NAME_BitsPerCoordinate = _mupdf.PDF_ENUM_NAME_BitsPerCoordinate
  3287. PDF_ENUM_NAME_BitsPerFlag = _mupdf.PDF_ENUM_NAME_BitsPerFlag
  3288. PDF_ENUM_NAME_BitsPerSample = _mupdf.PDF_ENUM_NAME_BitsPerSample
  3289. PDF_ENUM_NAME_BlackIs1 = _mupdf.PDF_ENUM_NAME_BlackIs1
  3290. PDF_ENUM_NAME_BlackPoint = _mupdf.PDF_ENUM_NAME_BlackPoint
  3291. PDF_ENUM_NAME_BleedBox = _mupdf.PDF_ENUM_NAME_BleedBox
  3292. PDF_ENUM_NAME_Blinds = _mupdf.PDF_ENUM_NAME_Blinds
  3293. PDF_ENUM_NAME_BlockQuote = _mupdf.PDF_ENUM_NAME_BlockQuote
  3294. PDF_ENUM_NAME_Border = _mupdf.PDF_ENUM_NAME_Border
  3295. PDF_ENUM_NAME_Bounds = _mupdf.PDF_ENUM_NAME_Bounds
  3296. PDF_ENUM_NAME_Box = _mupdf.PDF_ENUM_NAME_Box
  3297. PDF_ENUM_NAME_Br = _mupdf.PDF_ENUM_NAME_Br
  3298. PDF_ENUM_NAME_BrotliDecode = _mupdf.PDF_ENUM_NAME_BrotliDecode
  3299. PDF_ENUM_NAME_Bt = _mupdf.PDF_ENUM_NAME_Bt
  3300. PDF_ENUM_NAME_Btn = _mupdf.PDF_ENUM_NAME_Btn
  3301. PDF_ENUM_NAME_Butt = _mupdf.PDF_ENUM_NAME_Butt
  3302. PDF_ENUM_NAME_ByteRange = _mupdf.PDF_ENUM_NAME_ByteRange
  3303. PDF_ENUM_NAME_C = _mupdf.PDF_ENUM_NAME_C
  3304. PDF_ENUM_NAME_C0 = _mupdf.PDF_ENUM_NAME_C0
  3305. PDF_ENUM_NAME_C1 = _mupdf.PDF_ENUM_NAME_C1
  3306. PDF_ENUM_NAME_CA = _mupdf.PDF_ENUM_NAME_CA
  3307. PDF_ENUM_NAME_CCF = _mupdf.PDF_ENUM_NAME_CCF
  3308. PDF_ENUM_NAME_CCITTFaxDecode = _mupdf.PDF_ENUM_NAME_CCITTFaxDecode
  3309. PDF_ENUM_NAME_CF = _mupdf.PDF_ENUM_NAME_CF
  3310. PDF_ENUM_NAME_CFM = _mupdf.PDF_ENUM_NAME_CFM
  3311. PDF_ENUM_NAME_CI = _mupdf.PDF_ENUM_NAME_CI
  3312. PDF_ENUM_NAME_CIDFontType0 = _mupdf.PDF_ENUM_NAME_CIDFontType0
  3313. PDF_ENUM_NAME_CIDFontType0C = _mupdf.PDF_ENUM_NAME_CIDFontType0C
  3314. PDF_ENUM_NAME_CIDFontType2 = _mupdf.PDF_ENUM_NAME_CIDFontType2
  3315. PDF_ENUM_NAME_CIDSystemInfo = _mupdf.PDF_ENUM_NAME_CIDSystemInfo
  3316. PDF_ENUM_NAME_CIDToGIDMap = _mupdf.PDF_ENUM_NAME_CIDToGIDMap
  3317. PDF_ENUM_NAME_CL = _mupdf.PDF_ENUM_NAME_CL
  3318. PDF_ENUM_NAME_CMYK = _mupdf.PDF_ENUM_NAME_CMYK
  3319. PDF_ENUM_NAME_CO = _mupdf.PDF_ENUM_NAME_CO
  3320. PDF_ENUM_NAME_CP = _mupdf.PDF_ENUM_NAME_CP
  3321. PDF_ENUM_NAME_CS = _mupdf.PDF_ENUM_NAME_CS
  3322. PDF_ENUM_NAME_CalCMYK = _mupdf.PDF_ENUM_NAME_CalCMYK
  3323. PDF_ENUM_NAME_CalGray = _mupdf.PDF_ENUM_NAME_CalGray
  3324. PDF_ENUM_NAME_CalRGB = _mupdf.PDF_ENUM_NAME_CalRGB
  3325. PDF_ENUM_NAME_Cap = _mupdf.PDF_ENUM_NAME_Cap
  3326. PDF_ENUM_NAME_CapHeight = _mupdf.PDF_ENUM_NAME_CapHeight
  3327. PDF_ENUM_NAME_Caption = _mupdf.PDF_ENUM_NAME_Caption
  3328. PDF_ENUM_NAME_Caret = _mupdf.PDF_ENUM_NAME_Caret
  3329. PDF_ENUM_NAME_Catalog = _mupdf.PDF_ENUM_NAME_Catalog
  3330. PDF_ENUM_NAME_Cert = _mupdf.PDF_ENUM_NAME_Cert
  3331. PDF_ENUM_NAME_Ch = _mupdf.PDF_ENUM_NAME_Ch
  3332. PDF_ENUM_NAME_Changes = _mupdf.PDF_ENUM_NAME_Changes
  3333. PDF_ENUM_NAME_CharProcs = _mupdf.PDF_ENUM_NAME_CharProcs
  3334. PDF_ENUM_NAME_CheckSum = _mupdf.PDF_ENUM_NAME_CheckSum
  3335. PDF_ENUM_NAME_Circle = _mupdf.PDF_ENUM_NAME_Circle
  3336. PDF_ENUM_NAME_ClosedArrow = _mupdf.PDF_ENUM_NAME_ClosedArrow
  3337. PDF_ENUM_NAME_Code = _mupdf.PDF_ENUM_NAME_Code
  3338. PDF_ENUM_NAME_Collection = _mupdf.PDF_ENUM_NAME_Collection
  3339. PDF_ENUM_NAME_ColorSpace = _mupdf.PDF_ENUM_NAME_ColorSpace
  3340. PDF_ENUM_NAME_ColorTransform = _mupdf.PDF_ENUM_NAME_ColorTransform
  3341. PDF_ENUM_NAME_Colorants = _mupdf.PDF_ENUM_NAME_Colorants
  3342. PDF_ENUM_NAME_Colors = _mupdf.PDF_ENUM_NAME_Colors
  3343. PDF_ENUM_NAME_Columns = _mupdf.PDF_ENUM_NAME_Columns
  3344. PDF_ENUM_NAME_Confidential = _mupdf.PDF_ENUM_NAME_Confidential
  3345. PDF_ENUM_NAME_Configs = _mupdf.PDF_ENUM_NAME_Configs
  3346. PDF_ENUM_NAME_ContactInfo = _mupdf.PDF_ENUM_NAME_ContactInfo
  3347. PDF_ENUM_NAME_Contents = _mupdf.PDF_ENUM_NAME_Contents
  3348. PDF_ENUM_NAME_Coords = _mupdf.PDF_ENUM_NAME_Coords
  3349. PDF_ENUM_NAME_Count = _mupdf.PDF_ENUM_NAME_Count
  3350. PDF_ENUM_NAME_Cover = _mupdf.PDF_ENUM_NAME_Cover
  3351. PDF_ENUM_NAME_CreationDate = _mupdf.PDF_ENUM_NAME_CreationDate
  3352. PDF_ENUM_NAME_Creator = _mupdf.PDF_ENUM_NAME_Creator
  3353. PDF_ENUM_NAME_CropBox = _mupdf.PDF_ENUM_NAME_CropBox
  3354. PDF_ENUM_NAME_Crypt = _mupdf.PDF_ENUM_NAME_Crypt
  3355. PDF_ENUM_NAME_D = _mupdf.PDF_ENUM_NAME_D
  3356. PDF_ENUM_NAME_DA = _mupdf.PDF_ENUM_NAME_DA
  3357. PDF_ENUM_NAME_DC = _mupdf.PDF_ENUM_NAME_DC
  3358. PDF_ENUM_NAME_DCT = _mupdf.PDF_ENUM_NAME_DCT
  3359. PDF_ENUM_NAME_DCTDecode = _mupdf.PDF_ENUM_NAME_DCTDecode
  3360. PDF_ENUM_NAME_DL = _mupdf.PDF_ENUM_NAME_DL
  3361. PDF_ENUM_NAME_DOS = _mupdf.PDF_ENUM_NAME_DOS
  3362. PDF_ENUM_NAME_DP = _mupdf.PDF_ENUM_NAME_DP
  3363. PDF_ENUM_NAME_DR = _mupdf.PDF_ENUM_NAME_DR
  3364. PDF_ENUM_NAME_DS = _mupdf.PDF_ENUM_NAME_DS
  3365. PDF_ENUM_NAME_DV = _mupdf.PDF_ENUM_NAME_DV
  3366. PDF_ENUM_NAME_DW = _mupdf.PDF_ENUM_NAME_DW
  3367. PDF_ENUM_NAME_DW2 = _mupdf.PDF_ENUM_NAME_DW2
  3368. PDF_ENUM_NAME_DamagedRowsBeforeError = _mupdf.PDF_ENUM_NAME_DamagedRowsBeforeError
  3369. PDF_ENUM_NAME_Data = _mupdf.PDF_ENUM_NAME_Data
  3370. PDF_ENUM_NAME_Date = _mupdf.PDF_ENUM_NAME_Date
  3371. PDF_ENUM_NAME_Decode = _mupdf.PDF_ENUM_NAME_Decode
  3372. PDF_ENUM_NAME_DecodeParms = _mupdf.PDF_ENUM_NAME_DecodeParms
  3373. PDF_ENUM_NAME_Default = _mupdf.PDF_ENUM_NAME_Default
  3374. PDF_ENUM_NAME_DefaultCMYK = _mupdf.PDF_ENUM_NAME_DefaultCMYK
  3375. PDF_ENUM_NAME_DefaultGray = _mupdf.PDF_ENUM_NAME_DefaultGray
  3376. PDF_ENUM_NAME_DefaultRGB = _mupdf.PDF_ENUM_NAME_DefaultRGB
  3377. PDF_ENUM_NAME_Departmental = _mupdf.PDF_ENUM_NAME_Departmental
  3378. PDF_ENUM_NAME_Desc = _mupdf.PDF_ENUM_NAME_Desc
  3379. PDF_ENUM_NAME_DescendantFonts = _mupdf.PDF_ENUM_NAME_DescendantFonts
  3380. PDF_ENUM_NAME_Descent = _mupdf.PDF_ENUM_NAME_Descent
  3381. PDF_ENUM_NAME_Design = _mupdf.PDF_ENUM_NAME_Design
  3382. PDF_ENUM_NAME_Dest = _mupdf.PDF_ENUM_NAME_Dest
  3383. PDF_ENUM_NAME_DestOutputProfile = _mupdf.PDF_ENUM_NAME_DestOutputProfile
  3384. PDF_ENUM_NAME_Dests = _mupdf.PDF_ENUM_NAME_Dests
  3385. PDF_ENUM_NAME_DeviceCMYK = _mupdf.PDF_ENUM_NAME_DeviceCMYK
  3386. PDF_ENUM_NAME_DeviceGray = _mupdf.PDF_ENUM_NAME_DeviceGray
  3387. PDF_ENUM_NAME_DeviceN = _mupdf.PDF_ENUM_NAME_DeviceN
  3388. PDF_ENUM_NAME_DeviceRGB = _mupdf.PDF_ENUM_NAME_DeviceRGB
  3389. PDF_ENUM_NAME_Di = _mupdf.PDF_ENUM_NAME_Di
  3390. PDF_ENUM_NAME_Diamond = _mupdf.PDF_ENUM_NAME_Diamond
  3391. PDF_ENUM_NAME_Differences = _mupdf.PDF_ENUM_NAME_Differences
  3392. PDF_ENUM_NAME_DigestLocation = _mupdf.PDF_ENUM_NAME_DigestLocation
  3393. PDF_ENUM_NAME_DigestMethod = _mupdf.PDF_ENUM_NAME_DigestMethod
  3394. PDF_ENUM_NAME_DigestValue = _mupdf.PDF_ENUM_NAME_DigestValue
  3395. PDF_ENUM_NAME_Dissolve = _mupdf.PDF_ENUM_NAME_Dissolve
  3396. PDF_ENUM_NAME_Div = _mupdf.PDF_ENUM_NAME_Div
  3397. PDF_ENUM_NAME_Dm = _mupdf.PDF_ENUM_NAME_Dm
  3398. PDF_ENUM_NAME_DocMDP = _mupdf.PDF_ENUM_NAME_DocMDP
  3399. PDF_ENUM_NAME_Document = _mupdf.PDF_ENUM_NAME_Document
  3400. PDF_ENUM_NAME_DocumentFragment = _mupdf.PDF_ENUM_NAME_DocumentFragment
  3401. PDF_ENUM_NAME_Domain = _mupdf.PDF_ENUM_NAME_Domain
  3402. PDF_ENUM_NAME_Draft = _mupdf.PDF_ENUM_NAME_Draft
  3403. PDF_ENUM_NAME_Dur = _mupdf.PDF_ENUM_NAME_Dur
  3404. PDF_ENUM_NAME_E = _mupdf.PDF_ENUM_NAME_E
  3405. PDF_ENUM_NAME_EF = _mupdf.PDF_ENUM_NAME_EF
  3406. PDF_ENUM_NAME_EarlyChange = _mupdf.PDF_ENUM_NAME_EarlyChange
  3407. PDF_ENUM_NAME_Em = _mupdf.PDF_ENUM_NAME_Em
  3408. PDF_ENUM_NAME_EmbeddedFile = _mupdf.PDF_ENUM_NAME_EmbeddedFile
  3409. PDF_ENUM_NAME_EmbeddedFiles = _mupdf.PDF_ENUM_NAME_EmbeddedFiles
  3410. PDF_ENUM_NAME_Encode = _mupdf.PDF_ENUM_NAME_Encode
  3411. PDF_ENUM_NAME_EncodedByteAlign = _mupdf.PDF_ENUM_NAME_EncodedByteAlign
  3412. PDF_ENUM_NAME_Encoding = _mupdf.PDF_ENUM_NAME_Encoding
  3413. PDF_ENUM_NAME_Encrypt = _mupdf.PDF_ENUM_NAME_Encrypt
  3414. PDF_ENUM_NAME_EncryptMetadata = _mupdf.PDF_ENUM_NAME_EncryptMetadata
  3415. PDF_ENUM_NAME_EncryptedPayload = _mupdf.PDF_ENUM_NAME_EncryptedPayload
  3416. PDF_ENUM_NAME_EndOfBlock = _mupdf.PDF_ENUM_NAME_EndOfBlock
  3417. PDF_ENUM_NAME_EndOfLine = _mupdf.PDF_ENUM_NAME_EndOfLine
  3418. PDF_ENUM_NAME_Exclude = _mupdf.PDF_ENUM_NAME_Exclude
  3419. PDF_ENUM_NAME_Experimental = _mupdf.PDF_ENUM_NAME_Experimental
  3420. PDF_ENUM_NAME_Expired = _mupdf.PDF_ENUM_NAME_Expired
  3421. PDF_ENUM_NAME_ExtGState = _mupdf.PDF_ENUM_NAME_ExtGState
  3422. PDF_ENUM_NAME_Extend = _mupdf.PDF_ENUM_NAME_Extend
  3423. PDF_ENUM_NAME_F = _mupdf.PDF_ENUM_NAME_F
  3424. PDF_ENUM_NAME_FENote = _mupdf.PDF_ENUM_NAME_FENote
  3425. PDF_ENUM_NAME_FL = _mupdf.PDF_ENUM_NAME_FL
  3426. PDF_ENUM_NAME_FRM = _mupdf.PDF_ENUM_NAME_FRM
  3427. PDF_ENUM_NAME_FS = _mupdf.PDF_ENUM_NAME_FS
  3428. PDF_ENUM_NAME_FT = _mupdf.PDF_ENUM_NAME_FT
  3429. PDF_ENUM_NAME_Fade = _mupdf.PDF_ENUM_NAME_Fade
  3430. PDF_ENUM_NAME_Ff = _mupdf.PDF_ENUM_NAME_Ff
  3431. PDF_ENUM_NAME_FieldMDP = _mupdf.PDF_ENUM_NAME_FieldMDP
  3432. PDF_ENUM_NAME_Fields = _mupdf.PDF_ENUM_NAME_Fields
  3433. PDF_ENUM_NAME_Figure = _mupdf.PDF_ENUM_NAME_Figure
  3434. PDF_ENUM_NAME_FileAttachment = _mupdf.PDF_ENUM_NAME_FileAttachment
  3435. PDF_ENUM_NAME_FileSize = _mupdf.PDF_ENUM_NAME_FileSize
  3436. PDF_ENUM_NAME_Filespec = _mupdf.PDF_ENUM_NAME_Filespec
  3437. PDF_ENUM_NAME_Filter = _mupdf.PDF_ENUM_NAME_Filter
  3438. PDF_ENUM_NAME_Final = _mupdf.PDF_ENUM_NAME_Final
  3439. PDF_ENUM_NAME_Fingerprint = _mupdf.PDF_ENUM_NAME_Fingerprint
  3440. PDF_ENUM_NAME_First = _mupdf.PDF_ENUM_NAME_First
  3441. PDF_ENUM_NAME_FirstChar = _mupdf.PDF_ENUM_NAME_FirstChar
  3442. PDF_ENUM_NAME_FirstPage = _mupdf.PDF_ENUM_NAME_FirstPage
  3443. PDF_ENUM_NAME_Fit = _mupdf.PDF_ENUM_NAME_Fit
  3444. PDF_ENUM_NAME_FitB = _mupdf.PDF_ENUM_NAME_FitB
  3445. PDF_ENUM_NAME_FitBH = _mupdf.PDF_ENUM_NAME_FitBH
  3446. PDF_ENUM_NAME_FitBV = _mupdf.PDF_ENUM_NAME_FitBV
  3447. PDF_ENUM_NAME_FitH = _mupdf.PDF_ENUM_NAME_FitH
  3448. PDF_ENUM_NAME_FitR = _mupdf.PDF_ENUM_NAME_FitR
  3449. PDF_ENUM_NAME_FitV = _mupdf.PDF_ENUM_NAME_FitV
  3450. PDF_ENUM_NAME_Fl = _mupdf.PDF_ENUM_NAME_Fl
  3451. PDF_ENUM_NAME_Flags = _mupdf.PDF_ENUM_NAME_Flags
  3452. PDF_ENUM_NAME_FlateDecode = _mupdf.PDF_ENUM_NAME_FlateDecode
  3453. PDF_ENUM_NAME_Fly = _mupdf.PDF_ENUM_NAME_Fly
  3454. PDF_ENUM_NAME_Font = _mupdf.PDF_ENUM_NAME_Font
  3455. PDF_ENUM_NAME_FontBBox = _mupdf.PDF_ENUM_NAME_FontBBox
  3456. PDF_ENUM_NAME_FontDescriptor = _mupdf.PDF_ENUM_NAME_FontDescriptor
  3457. PDF_ENUM_NAME_FontFile = _mupdf.PDF_ENUM_NAME_FontFile
  3458. PDF_ENUM_NAME_FontFile2 = _mupdf.PDF_ENUM_NAME_FontFile2
  3459. PDF_ENUM_NAME_FontFile3 = _mupdf.PDF_ENUM_NAME_FontFile3
  3460. PDF_ENUM_NAME_FontMatrix = _mupdf.PDF_ENUM_NAME_FontMatrix
  3461. PDF_ENUM_NAME_FontName = _mupdf.PDF_ENUM_NAME_FontName
  3462. PDF_ENUM_NAME_ForComment = _mupdf.PDF_ENUM_NAME_ForComment
  3463. PDF_ENUM_NAME_ForPublicRelease = _mupdf.PDF_ENUM_NAME_ForPublicRelease
  3464. PDF_ENUM_NAME_Form = _mupdf.PDF_ENUM_NAME_Form
  3465. PDF_ENUM_NAME_FormData = _mupdf.PDF_ENUM_NAME_FormData
  3466. PDF_ENUM_NAME_FormEx = _mupdf.PDF_ENUM_NAME_FormEx
  3467. PDF_ENUM_NAME_FormType = _mupdf.PDF_ENUM_NAME_FormType
  3468. PDF_ENUM_NAME_Formula = _mupdf.PDF_ENUM_NAME_Formula
  3469. PDF_ENUM_NAME_FreeText = _mupdf.PDF_ENUM_NAME_FreeText
  3470. PDF_ENUM_NAME_FreeTextCallout = _mupdf.PDF_ENUM_NAME_FreeTextCallout
  3471. PDF_ENUM_NAME_FreeTextTypeWriter = _mupdf.PDF_ENUM_NAME_FreeTextTypeWriter
  3472. PDF_ENUM_NAME_Function = _mupdf.PDF_ENUM_NAME_Function
  3473. PDF_ENUM_NAME_FunctionType = _mupdf.PDF_ENUM_NAME_FunctionType
  3474. PDF_ENUM_NAME_Functions = _mupdf.PDF_ENUM_NAME_Functions
  3475. PDF_ENUM_NAME_G = _mupdf.PDF_ENUM_NAME_G
  3476. PDF_ENUM_NAME_GTS_PDFX = _mupdf.PDF_ENUM_NAME_GTS_PDFX
  3477. PDF_ENUM_NAME_Gamma = _mupdf.PDF_ENUM_NAME_Gamma
  3478. PDF_ENUM_NAME_Glitter = _mupdf.PDF_ENUM_NAME_Glitter
  3479. PDF_ENUM_NAME_GoTo = _mupdf.PDF_ENUM_NAME_GoTo
  3480. PDF_ENUM_NAME_GoToR = _mupdf.PDF_ENUM_NAME_GoToR
  3481. PDF_ENUM_NAME_Group = _mupdf.PDF_ENUM_NAME_Group
  3482. PDF_ENUM_NAME_H = _mupdf.PDF_ENUM_NAME_H
  3483. PDF_ENUM_NAME_H1 = _mupdf.PDF_ENUM_NAME_H1
  3484. PDF_ENUM_NAME_H2 = _mupdf.PDF_ENUM_NAME_H2
  3485. PDF_ENUM_NAME_H3 = _mupdf.PDF_ENUM_NAME_H3
  3486. PDF_ENUM_NAME_H4 = _mupdf.PDF_ENUM_NAME_H4
  3487. PDF_ENUM_NAME_H5 = _mupdf.PDF_ENUM_NAME_H5
  3488. PDF_ENUM_NAME_H6 = _mupdf.PDF_ENUM_NAME_H6
  3489. PDF_ENUM_NAME_Height = _mupdf.PDF_ENUM_NAME_Height
  3490. PDF_ENUM_NAME_Helv = _mupdf.PDF_ENUM_NAME_Helv
  3491. PDF_ENUM_NAME_Highlight = _mupdf.PDF_ENUM_NAME_Highlight
  3492. PDF_ENUM_NAME_HistoryPos = _mupdf.PDF_ENUM_NAME_HistoryPos
  3493. PDF_ENUM_NAME_I = _mupdf.PDF_ENUM_NAME_I
  3494. PDF_ENUM_NAME_IC = _mupdf.PDF_ENUM_NAME_IC
  3495. PDF_ENUM_NAME_ICCBased = _mupdf.PDF_ENUM_NAME_ICCBased
  3496. PDF_ENUM_NAME_ID = _mupdf.PDF_ENUM_NAME_ID
  3497. PDF_ENUM_NAME_IM = _mupdf.PDF_ENUM_NAME_IM
  3498. PDF_ENUM_NAME_IRT = _mupdf.PDF_ENUM_NAME_IRT
  3499. PDF_ENUM_NAME_IT = _mupdf.PDF_ENUM_NAME_IT
  3500. PDF_ENUM_NAME_Identity = _mupdf.PDF_ENUM_NAME_Identity
  3501. PDF_ENUM_NAME_Identity_H = _mupdf.PDF_ENUM_NAME_Identity_H
  3502. PDF_ENUM_NAME_Identity_V = _mupdf.PDF_ENUM_NAME_Identity_V
  3503. PDF_ENUM_NAME_Image = _mupdf.PDF_ENUM_NAME_Image
  3504. PDF_ENUM_NAME_ImageB = _mupdf.PDF_ENUM_NAME_ImageB
  3505. PDF_ENUM_NAME_ImageC = _mupdf.PDF_ENUM_NAME_ImageC
  3506. PDF_ENUM_NAME_ImageI = _mupdf.PDF_ENUM_NAME_ImageI
  3507. PDF_ENUM_NAME_ImageMask = _mupdf.PDF_ENUM_NAME_ImageMask
  3508. PDF_ENUM_NAME_Include = _mupdf.PDF_ENUM_NAME_Include
  3509. PDF_ENUM_NAME_Index = _mupdf.PDF_ENUM_NAME_Index
  3510. PDF_ENUM_NAME_Indexed = _mupdf.PDF_ENUM_NAME_Indexed
  3511. PDF_ENUM_NAME_Info = _mupdf.PDF_ENUM_NAME_Info
  3512. PDF_ENUM_NAME_Ink = _mupdf.PDF_ENUM_NAME_Ink
  3513. PDF_ENUM_NAME_InkList = _mupdf.PDF_ENUM_NAME_InkList
  3514. PDF_ENUM_NAME_Intent = _mupdf.PDF_ENUM_NAME_Intent
  3515. PDF_ENUM_NAME_Interpolate = _mupdf.PDF_ENUM_NAME_Interpolate
  3516. PDF_ENUM_NAME_IsMap = _mupdf.PDF_ENUM_NAME_IsMap
  3517. PDF_ENUM_NAME_ItalicAngle = _mupdf.PDF_ENUM_NAME_ItalicAngle
  3518. PDF_ENUM_NAME_JBIG2Decode = _mupdf.PDF_ENUM_NAME_JBIG2Decode
  3519. PDF_ENUM_NAME_JBIG2Globals = _mupdf.PDF_ENUM_NAME_JBIG2Globals
  3520. PDF_ENUM_NAME_JPXDecode = _mupdf.PDF_ENUM_NAME_JPXDecode
  3521. PDF_ENUM_NAME_JS = _mupdf.PDF_ENUM_NAME_JS
  3522. PDF_ENUM_NAME_JavaScript = _mupdf.PDF_ENUM_NAME_JavaScript
  3523. PDF_ENUM_NAME_K = _mupdf.PDF_ENUM_NAME_K
  3524. PDF_ENUM_NAME_Keywords = _mupdf.PDF_ENUM_NAME_Keywords
  3525. PDF_ENUM_NAME_Kids = _mupdf.PDF_ENUM_NAME_Kids
  3526. PDF_ENUM_NAME_L = _mupdf.PDF_ENUM_NAME_L
  3527. PDF_ENUM_NAME_LBody = _mupdf.PDF_ENUM_NAME_LBody
  3528. PDF_ENUM_NAME_LC = _mupdf.PDF_ENUM_NAME_LC
  3529. PDF_ENUM_NAME_LE = _mupdf.PDF_ENUM_NAME_LE
  3530. PDF_ENUM_NAME_LI = _mupdf.PDF_ENUM_NAME_LI
  3531. PDF_ENUM_NAME_LJ = _mupdf.PDF_ENUM_NAME_LJ
  3532. PDF_ENUM_NAME_LL = _mupdf.PDF_ENUM_NAME_LL
  3533. PDF_ENUM_NAME_LLE = _mupdf.PDF_ENUM_NAME_LLE
  3534. PDF_ENUM_NAME_LLO = _mupdf.PDF_ENUM_NAME_LLO
  3535. PDF_ENUM_NAME_LW = _mupdf.PDF_ENUM_NAME_LW
  3536. PDF_ENUM_NAME_LZ = _mupdf.PDF_ENUM_NAME_LZ
  3537. PDF_ENUM_NAME_LZW = _mupdf.PDF_ENUM_NAME_LZW
  3538. PDF_ENUM_NAME_LZWDecode = _mupdf.PDF_ENUM_NAME_LZWDecode
  3539. PDF_ENUM_NAME_Lab = _mupdf.PDF_ENUM_NAME_Lab
  3540. PDF_ENUM_NAME_Label = _mupdf.PDF_ENUM_NAME_Label
  3541. PDF_ENUM_NAME_Lang = _mupdf.PDF_ENUM_NAME_Lang
  3542. PDF_ENUM_NAME_Last = _mupdf.PDF_ENUM_NAME_Last
  3543. PDF_ENUM_NAME_LastChar = _mupdf.PDF_ENUM_NAME_LastChar
  3544. PDF_ENUM_NAME_LastPage = _mupdf.PDF_ENUM_NAME_LastPage
  3545. PDF_ENUM_NAME_Launch = _mupdf.PDF_ENUM_NAME_Launch
  3546. PDF_ENUM_NAME_Layer = _mupdf.PDF_ENUM_NAME_Layer
  3547. PDF_ENUM_NAME_Lbl = _mupdf.PDF_ENUM_NAME_Lbl
  3548. PDF_ENUM_NAME_Length = _mupdf.PDF_ENUM_NAME_Length
  3549. PDF_ENUM_NAME_Length1 = _mupdf.PDF_ENUM_NAME_Length1
  3550. PDF_ENUM_NAME_Length2 = _mupdf.PDF_ENUM_NAME_Length2
  3551. PDF_ENUM_NAME_Length3 = _mupdf.PDF_ENUM_NAME_Length3
  3552. PDF_ENUM_NAME_Limits = _mupdf.PDF_ENUM_NAME_Limits
  3553. PDF_ENUM_NAME_Line = _mupdf.PDF_ENUM_NAME_Line
  3554. PDF_ENUM_NAME_LineArrow = _mupdf.PDF_ENUM_NAME_LineArrow
  3555. PDF_ENUM_NAME_LineDimension = _mupdf.PDF_ENUM_NAME_LineDimension
  3556. PDF_ENUM_NAME_Linearized = _mupdf.PDF_ENUM_NAME_Linearized
  3557. PDF_ENUM_NAME_Link = _mupdf.PDF_ENUM_NAME_Link
  3558. PDF_ENUM_NAME_List = _mupdf.PDF_ENUM_NAME_List
  3559. PDF_ENUM_NAME_Location = _mupdf.PDF_ENUM_NAME_Location
  3560. PDF_ENUM_NAME_Lock = _mupdf.PDF_ENUM_NAME_Lock
  3561. PDF_ENUM_NAME_Locked = _mupdf.PDF_ENUM_NAME_Locked
  3562. PDF_ENUM_NAME_Luminosity = _mupdf.PDF_ENUM_NAME_Luminosity
  3563. PDF_ENUM_NAME_M = _mupdf.PDF_ENUM_NAME_M
  3564. PDF_ENUM_NAME_MCID = _mupdf.PDF_ENUM_NAME_MCID
  3565. PDF_ENUM_NAME_MK = _mupdf.PDF_ENUM_NAME_MK
  3566. PDF_ENUM_NAME_ML = _mupdf.PDF_ENUM_NAME_ML
  3567. PDF_ENUM_NAME_MMType1 = _mupdf.PDF_ENUM_NAME_MMType1
  3568. PDF_ENUM_NAME_Mac = _mupdf.PDF_ENUM_NAME_Mac
  3569. PDF_ENUM_NAME_Mask = _mupdf.PDF_ENUM_NAME_Mask
  3570. PDF_ENUM_NAME_Matrix = _mupdf.PDF_ENUM_NAME_Matrix
  3571. PDF_ENUM_NAME_Matte = _mupdf.PDF_ENUM_NAME_Matte
  3572. PDF_ENUM_NAME_MaxLen = _mupdf.PDF_ENUM_NAME_MaxLen
  3573. PDF_ENUM_NAME_MediaBox = _mupdf.PDF_ENUM_NAME_MediaBox
  3574. PDF_ENUM_NAME_Metadata = _mupdf.PDF_ENUM_NAME_Metadata
  3575. PDF_ENUM_NAME_MissingWidth = _mupdf.PDF_ENUM_NAME_MissingWidth
  3576. PDF_ENUM_NAME_ModDate = _mupdf.PDF_ENUM_NAME_ModDate
  3577. PDF_ENUM_NAME_Movie = _mupdf.PDF_ENUM_NAME_Movie
  3578. PDF_ENUM_NAME_Msg = _mupdf.PDF_ENUM_NAME_Msg
  3579. PDF_ENUM_NAME_Multiply = _mupdf.PDF_ENUM_NAME_Multiply
  3580. PDF_ENUM_NAME_N = _mupdf.PDF_ENUM_NAME_N
  3581. PDF_ENUM_NAME_Name = _mupdf.PDF_ENUM_NAME_Name
  3582. PDF_ENUM_NAME_Named = _mupdf.PDF_ENUM_NAME_Named
  3583. PDF_ENUM_NAME_Names = _mupdf.PDF_ENUM_NAME_Names
  3584. PDF_ENUM_NAME_NewWindow = _mupdf.PDF_ENUM_NAME_NewWindow
  3585. PDF_ENUM_NAME_Next = _mupdf.PDF_ENUM_NAME_Next
  3586. PDF_ENUM_NAME_NextPage = _mupdf.PDF_ENUM_NAME_NextPage
  3587. PDF_ENUM_NAME_NonEFontNoWarn = _mupdf.PDF_ENUM_NAME_NonEFontNoWarn
  3588. PDF_ENUM_NAME_NonStruct = _mupdf.PDF_ENUM_NAME_NonStruct
  3589. PDF_ENUM_NAME_None = _mupdf.PDF_ENUM_NAME_None
  3590. PDF_ENUM_NAME_Normal = _mupdf.PDF_ENUM_NAME_Normal
  3591. PDF_ENUM_NAME_NotApproved = _mupdf.PDF_ENUM_NAME_NotApproved
  3592. PDF_ENUM_NAME_NotForPublicRelease = _mupdf.PDF_ENUM_NAME_NotForPublicRelease
  3593. PDF_ENUM_NAME_Note = _mupdf.PDF_ENUM_NAME_Note
  3594. PDF_ENUM_NAME_NumSections = _mupdf.PDF_ENUM_NAME_NumSections
  3595. PDF_ENUM_NAME_Nums = _mupdf.PDF_ENUM_NAME_Nums
  3596. PDF_ENUM_NAME_O = _mupdf.PDF_ENUM_NAME_O
  3597. PDF_ENUM_NAME_OC = _mupdf.PDF_ENUM_NAME_OC
  3598. PDF_ENUM_NAME_OCG = _mupdf.PDF_ENUM_NAME_OCG
  3599. PDF_ENUM_NAME_OCGs = _mupdf.PDF_ENUM_NAME_OCGs
  3600. PDF_ENUM_NAME_OCMD = _mupdf.PDF_ENUM_NAME_OCMD
  3601. PDF_ENUM_NAME_OCProperties = _mupdf.PDF_ENUM_NAME_OCProperties
  3602. PDF_ENUM_NAME_OE = _mupdf.PDF_ENUM_NAME_OE
  3603. PDF_ENUM_NAME_OFF = _mupdf.PDF_ENUM_NAME_OFF
  3604. PDF_ENUM_NAME_ON = _mupdf.PDF_ENUM_NAME_ON
  3605. PDF_ENUM_NAME_OP = _mupdf.PDF_ENUM_NAME_OP
  3606. PDF_ENUM_NAME_OPM = _mupdf.PDF_ENUM_NAME_OPM
  3607. PDF_ENUM_NAME_OS = _mupdf.PDF_ENUM_NAME_OS
  3608. PDF_ENUM_NAME_ObjStm = _mupdf.PDF_ENUM_NAME_ObjStm
  3609. PDF_ENUM_NAME_Of = _mupdf.PDF_ENUM_NAME_Of
  3610. PDF_ENUM_NAME_Off = _mupdf.PDF_ENUM_NAME_Off
  3611. PDF_ENUM_NAME_Open = _mupdf.PDF_ENUM_NAME_Open
  3612. PDF_ENUM_NAME_OpenArrow = _mupdf.PDF_ENUM_NAME_OpenArrow
  3613. PDF_ENUM_NAME_OpenType = _mupdf.PDF_ENUM_NAME_OpenType
  3614. PDF_ENUM_NAME_Opt = _mupdf.PDF_ENUM_NAME_Opt
  3615. PDF_ENUM_NAME_Order = _mupdf.PDF_ENUM_NAME_Order
  3616. PDF_ENUM_NAME_Ordering = _mupdf.PDF_ENUM_NAME_Ordering
  3617. PDF_ENUM_NAME_Outlines = _mupdf.PDF_ENUM_NAME_Outlines
  3618. PDF_ENUM_NAME_OutputCondition = _mupdf.PDF_ENUM_NAME_OutputCondition
  3619. PDF_ENUM_NAME_OutputConditionIdentifier = _mupdf.PDF_ENUM_NAME_OutputConditionIdentifier
  3620. PDF_ENUM_NAME_OutputIntent = _mupdf.PDF_ENUM_NAME_OutputIntent
  3621. PDF_ENUM_NAME_OutputIntents = _mupdf.PDF_ENUM_NAME_OutputIntents
  3622. PDF_ENUM_NAME_P = _mupdf.PDF_ENUM_NAME_P
  3623. PDF_ENUM_NAME_PDF = _mupdf.PDF_ENUM_NAME_PDF
  3624. PDF_ENUM_NAME_PS = _mupdf.PDF_ENUM_NAME_PS
  3625. PDF_ENUM_NAME_Page = _mupdf.PDF_ENUM_NAME_Page
  3626. PDF_ENUM_NAME_PageLabels = _mupdf.PDF_ENUM_NAME_PageLabels
  3627. PDF_ENUM_NAME_PageMode = _mupdf.PDF_ENUM_NAME_PageMode
  3628. PDF_ENUM_NAME_Pages = _mupdf.PDF_ENUM_NAME_Pages
  3629. PDF_ENUM_NAME_PaintType = _mupdf.PDF_ENUM_NAME_PaintType
  3630. PDF_ENUM_NAME_Params = _mupdf.PDF_ENUM_NAME_Params
  3631. PDF_ENUM_NAME_Parent = _mupdf.PDF_ENUM_NAME_Parent
  3632. PDF_ENUM_NAME_ParentTree = _mupdf.PDF_ENUM_NAME_ParentTree
  3633. PDF_ENUM_NAME_Part = _mupdf.PDF_ENUM_NAME_Part
  3634. PDF_ENUM_NAME_Pattern = _mupdf.PDF_ENUM_NAME_Pattern
  3635. PDF_ENUM_NAME_PatternType = _mupdf.PDF_ENUM_NAME_PatternType
  3636. PDF_ENUM_NAME_Perceptual = _mupdf.PDF_ENUM_NAME_Perceptual
  3637. PDF_ENUM_NAME_Perms = _mupdf.PDF_ENUM_NAME_Perms
  3638. PDF_ENUM_NAME_PieceInfo = _mupdf.PDF_ENUM_NAME_PieceInfo
  3639. PDF_ENUM_NAME_PolyLine = _mupdf.PDF_ENUM_NAME_PolyLine
  3640. PDF_ENUM_NAME_PolyLineDimension = _mupdf.PDF_ENUM_NAME_PolyLineDimension
  3641. PDF_ENUM_NAME_Polygon = _mupdf.PDF_ENUM_NAME_Polygon
  3642. PDF_ENUM_NAME_PolygonCloud = _mupdf.PDF_ENUM_NAME_PolygonCloud
  3643. PDF_ENUM_NAME_PolygonDimension = _mupdf.PDF_ENUM_NAME_PolygonDimension
  3644. PDF_ENUM_NAME_Popup = _mupdf.PDF_ENUM_NAME_Popup
  3645. PDF_ENUM_NAME_PreRelease = _mupdf.PDF_ENUM_NAME_PreRelease
  3646. PDF_ENUM_NAME_Predictor = _mupdf.PDF_ENUM_NAME_Predictor
  3647. PDF_ENUM_NAME_Prev = _mupdf.PDF_ENUM_NAME_Prev
  3648. PDF_ENUM_NAME_PrevPage = _mupdf.PDF_ENUM_NAME_PrevPage
  3649. PDF_ENUM_NAME_Preview = _mupdf.PDF_ENUM_NAME_Preview
  3650. PDF_ENUM_NAME_Print = _mupdf.PDF_ENUM_NAME_Print
  3651. PDF_ENUM_NAME_PrinterMark = _mupdf.PDF_ENUM_NAME_PrinterMark
  3652. PDF_ENUM_NAME_Private = _mupdf.PDF_ENUM_NAME_Private
  3653. PDF_ENUM_NAME_ProcSet = _mupdf.PDF_ENUM_NAME_ProcSet
  3654. PDF_ENUM_NAME_Producer = _mupdf.PDF_ENUM_NAME_Producer
  3655. PDF_ENUM_NAME_Prop_AuthTime = _mupdf.PDF_ENUM_NAME_Prop_AuthTime
  3656. PDF_ENUM_NAME_Prop_AuthType = _mupdf.PDF_ENUM_NAME_Prop_AuthType
  3657. PDF_ENUM_NAME_Prop_Build = _mupdf.PDF_ENUM_NAME_Prop_Build
  3658. PDF_ENUM_NAME_Properties = _mupdf.PDF_ENUM_NAME_Properties
  3659. PDF_ENUM_NAME_PubSec = _mupdf.PDF_ENUM_NAME_PubSec
  3660. PDF_ENUM_NAME_Push = _mupdf.PDF_ENUM_NAME_Push
  3661. PDF_ENUM_NAME_Q = _mupdf.PDF_ENUM_NAME_Q
  3662. PDF_ENUM_NAME_QuadPoints = _mupdf.PDF_ENUM_NAME_QuadPoints
  3663. PDF_ENUM_NAME_Quote = _mupdf.PDF_ENUM_NAME_Quote
  3664. PDF_ENUM_NAME_R = _mupdf.PDF_ENUM_NAME_R
  3665. PDF_ENUM_NAME_RB = _mupdf.PDF_ENUM_NAME_RB
  3666. PDF_ENUM_NAME_RBGroups = _mupdf.PDF_ENUM_NAME_RBGroups
  3667. PDF_ENUM_NAME_RC = _mupdf.PDF_ENUM_NAME_RC
  3668. PDF_ENUM_NAME_RClosedArrow = _mupdf.PDF_ENUM_NAME_RClosedArrow
  3669. PDF_ENUM_NAME_RD = _mupdf.PDF_ENUM_NAME_RD
  3670. PDF_ENUM_NAME_REx = _mupdf.PDF_ENUM_NAME_REx
  3671. PDF_ENUM_NAME_RGB = _mupdf.PDF_ENUM_NAME_RGB
  3672. PDF_ENUM_NAME_RI = _mupdf.PDF_ENUM_NAME_RI
  3673. PDF_ENUM_NAME_RL = _mupdf.PDF_ENUM_NAME_RL
  3674. PDF_ENUM_NAME_RO = _mupdf.PDF_ENUM_NAME_RO
  3675. PDF_ENUM_NAME_ROpenArrow = _mupdf.PDF_ENUM_NAME_ROpenArrow
  3676. PDF_ENUM_NAME_RP = _mupdf.PDF_ENUM_NAME_RP
  3677. PDF_ENUM_NAME_RT = _mupdf.PDF_ENUM_NAME_RT
  3678. PDF_ENUM_NAME_RV = _mupdf.PDF_ENUM_NAME_RV
  3679. PDF_ENUM_NAME_Range = _mupdf.PDF_ENUM_NAME_Range
  3680. PDF_ENUM_NAME_Reason = _mupdf.PDF_ENUM_NAME_Reason
  3681. PDF_ENUM_NAME_Rect = _mupdf.PDF_ENUM_NAME_Rect
  3682. PDF_ENUM_NAME_Redact = _mupdf.PDF_ENUM_NAME_Redact
  3683. PDF_ENUM_NAME_Ref = _mupdf.PDF_ENUM_NAME_Ref
  3684. PDF_ENUM_NAME_Reference = _mupdf.PDF_ENUM_NAME_Reference
  3685. PDF_ENUM_NAME_Registry = _mupdf.PDF_ENUM_NAME_Registry
  3686. PDF_ENUM_NAME_RelativeColorimetric = _mupdf.PDF_ENUM_NAME_RelativeColorimetric
  3687. PDF_ENUM_NAME_ResetForm = _mupdf.PDF_ENUM_NAME_ResetForm
  3688. PDF_ENUM_NAME_Resources = _mupdf.PDF_ENUM_NAME_Resources
  3689. PDF_ENUM_NAME_RoleMap = _mupdf.PDF_ENUM_NAME_RoleMap
  3690. PDF_ENUM_NAME_Root = _mupdf.PDF_ENUM_NAME_Root
  3691. PDF_ENUM_NAME_Rotate = _mupdf.PDF_ENUM_NAME_Rotate
  3692. PDF_ENUM_NAME_Rows = _mupdf.PDF_ENUM_NAME_Rows
  3693. PDF_ENUM_NAME_Ruby = _mupdf.PDF_ENUM_NAME_Ruby
  3694. PDF_ENUM_NAME_RunLengthDecode = _mupdf.PDF_ENUM_NAME_RunLengthDecode
  3695. PDF_ENUM_NAME_S = _mupdf.PDF_ENUM_NAME_S
  3696. PDF_ENUM_NAME_SMask = _mupdf.PDF_ENUM_NAME_SMask
  3697. PDF_ENUM_NAME_SMaskInData = _mupdf.PDF_ENUM_NAME_SMaskInData
  3698. PDF_ENUM_NAME_Saturation = _mupdf.PDF_ENUM_NAME_Saturation
  3699. PDF_ENUM_NAME_Schema = _mupdf.PDF_ENUM_NAME_Schema
  3700. PDF_ENUM_NAME_Screen = _mupdf.PDF_ENUM_NAME_Screen
  3701. PDF_ENUM_NAME_Sect = _mupdf.PDF_ENUM_NAME_Sect
  3702. PDF_ENUM_NAME_Separation = _mupdf.PDF_ENUM_NAME_Separation
  3703. PDF_ENUM_NAME_Shading = _mupdf.PDF_ENUM_NAME_Shading
  3704. PDF_ENUM_NAME_ShadingType = _mupdf.PDF_ENUM_NAME_ShadingType
  3705. PDF_ENUM_NAME_Si = _mupdf.PDF_ENUM_NAME_Si
  3706. PDF_ENUM_NAME_Sig = _mupdf.PDF_ENUM_NAME_Sig
  3707. PDF_ENUM_NAME_SigFlags = _mupdf.PDF_ENUM_NAME_SigFlags
  3708. PDF_ENUM_NAME_SigQ = _mupdf.PDF_ENUM_NAME_SigQ
  3709. PDF_ENUM_NAME_SigRef = _mupdf.PDF_ENUM_NAME_SigRef
  3710. PDF_ENUM_NAME_Size = _mupdf.PDF_ENUM_NAME_Size
  3711. PDF_ENUM_NAME_Slash = _mupdf.PDF_ENUM_NAME_Slash
  3712. PDF_ENUM_NAME_Sold = _mupdf.PDF_ENUM_NAME_Sold
  3713. PDF_ENUM_NAME_Sound = _mupdf.PDF_ENUM_NAME_Sound
  3714. PDF_ENUM_NAME_Source = _mupdf.PDF_ENUM_NAME_Source
  3715. PDF_ENUM_NAME_Span = _mupdf.PDF_ENUM_NAME_Span
  3716. PDF_ENUM_NAME_Split = _mupdf.PDF_ENUM_NAME_Split
  3717. PDF_ENUM_NAME_Square = _mupdf.PDF_ENUM_NAME_Square
  3718. PDF_ENUM_NAME_Squiggly = _mupdf.PDF_ENUM_NAME_Squiggly
  3719. PDF_ENUM_NAME_St = _mupdf.PDF_ENUM_NAME_St
  3720. PDF_ENUM_NAME_Stamp = _mupdf.PDF_ENUM_NAME_Stamp
  3721. PDF_ENUM_NAME_StampImage = _mupdf.PDF_ENUM_NAME_StampImage
  3722. PDF_ENUM_NAME_StampSnapshot = _mupdf.PDF_ENUM_NAME_StampSnapshot
  3723. PDF_ENUM_NAME_Standard = _mupdf.PDF_ENUM_NAME_Standard
  3724. PDF_ENUM_NAME_StdCF = _mupdf.PDF_ENUM_NAME_StdCF
  3725. PDF_ENUM_NAME_StemV = _mupdf.PDF_ENUM_NAME_StemV
  3726. PDF_ENUM_NAME_StmF = _mupdf.PDF_ENUM_NAME_StmF
  3727. PDF_ENUM_NAME_StrF = _mupdf.PDF_ENUM_NAME_StrF
  3728. PDF_ENUM_NAME_StrikeOut = _mupdf.PDF_ENUM_NAME_StrikeOut
  3729. PDF_ENUM_NAME_Strong = _mupdf.PDF_ENUM_NAME_Strong
  3730. PDF_ENUM_NAME_StructParent = _mupdf.PDF_ENUM_NAME_StructParent
  3731. PDF_ENUM_NAME_StructParents = _mupdf.PDF_ENUM_NAME_StructParents
  3732. PDF_ENUM_NAME_StructTreeRoot = _mupdf.PDF_ENUM_NAME_StructTreeRoot
  3733. PDF_ENUM_NAME_Sub = _mupdf.PDF_ENUM_NAME_Sub
  3734. PDF_ENUM_NAME_SubFilter = _mupdf.PDF_ENUM_NAME_SubFilter
  3735. PDF_ENUM_NAME_Subject = _mupdf.PDF_ENUM_NAME_Subject
  3736. PDF_ENUM_NAME_Subtype = _mupdf.PDF_ENUM_NAME_Subtype
  3737. PDF_ENUM_NAME_Subtype2 = _mupdf.PDF_ENUM_NAME_Subtype2
  3738. PDF_ENUM_NAME_Supplement = _mupdf.PDF_ENUM_NAME_Supplement
  3739. PDF_ENUM_NAME_Symb = _mupdf.PDF_ENUM_NAME_Symb
  3740. PDF_ENUM_NAME_T = _mupdf.PDF_ENUM_NAME_T
  3741. PDF_ENUM_NAME_TBody = _mupdf.PDF_ENUM_NAME_TBody
  3742. PDF_ENUM_NAME_TD = _mupdf.PDF_ENUM_NAME_TD
  3743. PDF_ENUM_NAME_TFoot = _mupdf.PDF_ENUM_NAME_TFoot
  3744. PDF_ENUM_NAME_TH = _mupdf.PDF_ENUM_NAME_TH
  3745. PDF_ENUM_NAME_THead = _mupdf.PDF_ENUM_NAME_THead
  3746. PDF_ENUM_NAME_TI = _mupdf.PDF_ENUM_NAME_TI
  3747. PDF_ENUM_NAME_TOC = _mupdf.PDF_ENUM_NAME_TOC
  3748. PDF_ENUM_NAME_TOCI = _mupdf.PDF_ENUM_NAME_TOCI
  3749. PDF_ENUM_NAME_TR = _mupdf.PDF_ENUM_NAME_TR
  3750. PDF_ENUM_NAME_TR2 = _mupdf.PDF_ENUM_NAME_TR2
  3751. PDF_ENUM_NAME_TU = _mupdf.PDF_ENUM_NAME_TU
  3752. PDF_ENUM_NAME_Table = _mupdf.PDF_ENUM_NAME_Table
  3753. PDF_ENUM_NAME_Text = _mupdf.PDF_ENUM_NAME_Text
  3754. PDF_ENUM_NAME_Thumb = _mupdf.PDF_ENUM_NAME_Thumb
  3755. PDF_ENUM_NAME_TilingType = _mupdf.PDF_ENUM_NAME_TilingType
  3756. PDF_ENUM_NAME_Times = _mupdf.PDF_ENUM_NAME_Times
  3757. PDF_ENUM_NAME_Title = _mupdf.PDF_ENUM_NAME_Title
  3758. PDF_ENUM_NAME_ToUnicode = _mupdf.PDF_ENUM_NAME_ToUnicode
  3759. PDF_ENUM_NAME_Top = _mupdf.PDF_ENUM_NAME_Top
  3760. PDF_ENUM_NAME_TopSecret = _mupdf.PDF_ENUM_NAME_TopSecret
  3761. PDF_ENUM_NAME_Trans = _mupdf.PDF_ENUM_NAME_Trans
  3762. PDF_ENUM_NAME_TransformMethod = _mupdf.PDF_ENUM_NAME_TransformMethod
  3763. PDF_ENUM_NAME_TransformParams = _mupdf.PDF_ENUM_NAME_TransformParams
  3764. PDF_ENUM_NAME_Transparency = _mupdf.PDF_ENUM_NAME_Transparency
  3765. PDF_ENUM_NAME_TrapNet = _mupdf.PDF_ENUM_NAME_TrapNet
  3766. PDF_ENUM_NAME_TrimBox = _mupdf.PDF_ENUM_NAME_TrimBox
  3767. PDF_ENUM_NAME_TrueType = _mupdf.PDF_ENUM_NAME_TrueType
  3768. PDF_ENUM_NAME_TrustedMode = _mupdf.PDF_ENUM_NAME_TrustedMode
  3769. PDF_ENUM_NAME_Tx = _mupdf.PDF_ENUM_NAME_Tx
  3770. PDF_ENUM_NAME_Type = _mupdf.PDF_ENUM_NAME_Type
  3771. PDF_ENUM_NAME_Type0 = _mupdf.PDF_ENUM_NAME_Type0
  3772. PDF_ENUM_NAME_Type1 = _mupdf.PDF_ENUM_NAME_Type1
  3773. PDF_ENUM_NAME_Type1C = _mupdf.PDF_ENUM_NAME_Type1C
  3774. PDF_ENUM_NAME_Type3 = _mupdf.PDF_ENUM_NAME_Type3
  3775. PDF_ENUM_NAME_U = _mupdf.PDF_ENUM_NAME_U
  3776. PDF_ENUM_NAME_UE = _mupdf.PDF_ENUM_NAME_UE
  3777. PDF_ENUM_NAME_UF = _mupdf.PDF_ENUM_NAME_UF
  3778. PDF_ENUM_NAME_URI = _mupdf.PDF_ENUM_NAME_URI
  3779. PDF_ENUM_NAME_URL = _mupdf.PDF_ENUM_NAME_URL
  3780. PDF_ENUM_NAME_Unchanged = _mupdf.PDF_ENUM_NAME_Unchanged
  3781. PDF_ENUM_NAME_Uncover = _mupdf.PDF_ENUM_NAME_Uncover
  3782. PDF_ENUM_NAME_Underline = _mupdf.PDF_ENUM_NAME_Underline
  3783. PDF_ENUM_NAME_Unix = _mupdf.PDF_ENUM_NAME_Unix
  3784. PDF_ENUM_NAME_Unspecified = _mupdf.PDF_ENUM_NAME_Unspecified
  3785. PDF_ENUM_NAME_Usage = _mupdf.PDF_ENUM_NAME_Usage
  3786. PDF_ENUM_NAME_UseBlackPtComp = _mupdf.PDF_ENUM_NAME_UseBlackPtComp
  3787. PDF_ENUM_NAME_UseCMap = _mupdf.PDF_ENUM_NAME_UseCMap
  3788. PDF_ENUM_NAME_UseOutlines = _mupdf.PDF_ENUM_NAME_UseOutlines
  3789. PDF_ENUM_NAME_UserUnit = _mupdf.PDF_ENUM_NAME_UserUnit
  3790. PDF_ENUM_NAME_V = _mupdf.PDF_ENUM_NAME_V
  3791. PDF_ENUM_NAME_V2 = _mupdf.PDF_ENUM_NAME_V2
  3792. PDF_ENUM_NAME_VE = _mupdf.PDF_ENUM_NAME_VE
  3793. PDF_ENUM_NAME_Version = _mupdf.PDF_ENUM_NAME_Version
  3794. PDF_ENUM_NAME_Vertices = _mupdf.PDF_ENUM_NAME_Vertices
  3795. PDF_ENUM_NAME_VerticesPerRow = _mupdf.PDF_ENUM_NAME_VerticesPerRow
  3796. PDF_ENUM_NAME_View = _mupdf.PDF_ENUM_NAME_View
  3797. PDF_ENUM_NAME_W = _mupdf.PDF_ENUM_NAME_W
  3798. PDF_ENUM_NAME_W2 = _mupdf.PDF_ENUM_NAME_W2
  3799. PDF_ENUM_NAME_WMode = _mupdf.PDF_ENUM_NAME_WMode
  3800. PDF_ENUM_NAME_WP = _mupdf.PDF_ENUM_NAME_WP
  3801. PDF_ENUM_NAME_WT = _mupdf.PDF_ENUM_NAME_WT
  3802. PDF_ENUM_NAME_Warichu = _mupdf.PDF_ENUM_NAME_Warichu
  3803. PDF_ENUM_NAME_Watermark = _mupdf.PDF_ENUM_NAME_Watermark
  3804. PDF_ENUM_NAME_WhitePoint = _mupdf.PDF_ENUM_NAME_WhitePoint
  3805. PDF_ENUM_NAME_Widget = _mupdf.PDF_ENUM_NAME_Widget
  3806. PDF_ENUM_NAME_Width = _mupdf.PDF_ENUM_NAME_Width
  3807. PDF_ENUM_NAME_Widths = _mupdf.PDF_ENUM_NAME_Widths
  3808. PDF_ENUM_NAME_WinAnsiEncoding = _mupdf.PDF_ENUM_NAME_WinAnsiEncoding
  3809. PDF_ENUM_NAME_Wipe = _mupdf.PDF_ENUM_NAME_Wipe
  3810. PDF_ENUM_NAME_XFA = _mupdf.PDF_ENUM_NAME_XFA
  3811. PDF_ENUM_NAME_XHeight = _mupdf.PDF_ENUM_NAME_XHeight
  3812. PDF_ENUM_NAME_XML = _mupdf.PDF_ENUM_NAME_XML
  3813. PDF_ENUM_NAME_XObject = _mupdf.PDF_ENUM_NAME_XObject
  3814. PDF_ENUM_NAME_XRef = _mupdf.PDF_ENUM_NAME_XRef
  3815. PDF_ENUM_NAME_XRefStm = _mupdf.PDF_ENUM_NAME_XRefStm
  3816. PDF_ENUM_NAME_XStep = _mupdf.PDF_ENUM_NAME_XStep
  3817. PDF_ENUM_NAME_XYZ = _mupdf.PDF_ENUM_NAME_XYZ
  3818. PDF_ENUM_NAME_YStep = _mupdf.PDF_ENUM_NAME_YStep
  3819. PDF_ENUM_NAME_Yes = _mupdf.PDF_ENUM_NAME_Yes
  3820. PDF_ENUM_NAME_ZaDb = _mupdf.PDF_ENUM_NAME_ZaDb
  3821. PDF_ENUM_NAME_a = _mupdf.PDF_ENUM_NAME_a
  3822. PDF_ENUM_NAME_adbe_pkcs7_detached = _mupdf.PDF_ENUM_NAME_adbe_pkcs7_detached
  3823. PDF_ENUM_NAME_ca = _mupdf.PDF_ENUM_NAME_ca
  3824. PDF_ENUM_NAME_n0 = _mupdf.PDF_ENUM_NAME_n0
  3825. PDF_ENUM_NAME_n1 = _mupdf.PDF_ENUM_NAME_n1
  3826. PDF_ENUM_NAME_n2 = _mupdf.PDF_ENUM_NAME_n2
  3827. PDF_ENUM_NAME_op = _mupdf.PDF_ENUM_NAME_op
  3828. PDF_ENUM_NAME_r = _mupdf.PDF_ENUM_NAME_r
  3829. PDF_ENUM_LIMIT = _mupdf.PDF_ENUM_LIMIT
  3830. PDF_LEXBUF_SMALL = _mupdf.PDF_LEXBUF_SMALL
  3831. PDF_LEXBUF_LARGE = _mupdf.PDF_LEXBUF_LARGE
  3832. class pdf_lexbuf(object):
  3833. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3834. __repr__ = _swig_repr
  3835. size = property(_mupdf.pdf_lexbuf_size_get, _mupdf.pdf_lexbuf_size_set)
  3836. base_size = property(_mupdf.pdf_lexbuf_base_size_get, _mupdf.pdf_lexbuf_base_size_set)
  3837. len = property(_mupdf.pdf_lexbuf_len_get, _mupdf.pdf_lexbuf_len_set)
  3838. i = property(_mupdf.pdf_lexbuf_i_get, _mupdf.pdf_lexbuf_i_set)
  3839. f = property(_mupdf.pdf_lexbuf_f_get, _mupdf.pdf_lexbuf_f_set)
  3840. scratch = property(_mupdf.pdf_lexbuf_scratch_get, _mupdf.pdf_lexbuf_scratch_set)
  3841. buffer = property(_mupdf.pdf_lexbuf_buffer_get, _mupdf.pdf_lexbuf_buffer_set)
  3842. def __init__(self):
  3843. _mupdf.pdf_lexbuf_swiginit(self, _mupdf.new_pdf_lexbuf())
  3844. __swig_destroy__ = _mupdf.delete_pdf_lexbuf
  3845. # Register pdf_lexbuf in _mupdf:
  3846. _mupdf.pdf_lexbuf_swigregister(pdf_lexbuf)
  3847. class pdf_lexbuf_large(object):
  3848. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3849. __repr__ = _swig_repr
  3850. base = property(_mupdf.pdf_lexbuf_large_base_get, _mupdf.pdf_lexbuf_large_base_set)
  3851. buffer = property(_mupdf.pdf_lexbuf_large_buffer_get, _mupdf.pdf_lexbuf_large_buffer_set)
  3852. def __init__(self):
  3853. _mupdf.pdf_lexbuf_large_swiginit(self, _mupdf.new_pdf_lexbuf_large())
  3854. __swig_destroy__ = _mupdf.delete_pdf_lexbuf_large
  3855. # Register pdf_lexbuf_large in _mupdf:
  3856. _mupdf.pdf_lexbuf_large_swigregister(pdf_lexbuf_large)
  3857. class pdf_js_console(object):
  3858. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3859. __repr__ = _swig_repr
  3860. drop = property(_mupdf.pdf_js_console_drop_get, _mupdf.pdf_js_console_drop_set)
  3861. show = property(_mupdf.pdf_js_console_show_get, _mupdf.pdf_js_console_show_set)
  3862. hide = property(_mupdf.pdf_js_console_hide_get, _mupdf.pdf_js_console_hide_set)
  3863. clear = property(_mupdf.pdf_js_console_clear_get, _mupdf.pdf_js_console_clear_set)
  3864. write = property(_mupdf.pdf_js_console_write_get, _mupdf.pdf_js_console_write_set)
  3865. def __init__(self):
  3866. _mupdf.pdf_js_console_swiginit(self, _mupdf.new_pdf_js_console())
  3867. __swig_destroy__ = _mupdf.delete_pdf_js_console
  3868. # Register pdf_js_console in _mupdf:
  3869. _mupdf.pdf_js_console_swigregister(pdf_js_console)
  3870. class pdf_layer_config(object):
  3871. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3872. __repr__ = _swig_repr
  3873. name = property(_mupdf.pdf_layer_config_name_get, _mupdf.pdf_layer_config_name_set)
  3874. creator = property(_mupdf.pdf_layer_config_creator_get, _mupdf.pdf_layer_config_creator_set)
  3875. def __init__(self):
  3876. _mupdf.pdf_layer_config_swiginit(self, _mupdf.new_pdf_layer_config())
  3877. __swig_destroy__ = _mupdf.delete_pdf_layer_config
  3878. # Register pdf_layer_config in _mupdf:
  3879. _mupdf.pdf_layer_config_swigregister(pdf_layer_config)
  3880. PDF_LAYER_UI_LABEL = _mupdf.PDF_LAYER_UI_LABEL
  3881. PDF_LAYER_UI_CHECKBOX = _mupdf.PDF_LAYER_UI_CHECKBOX
  3882. PDF_LAYER_UI_RADIOBOX = _mupdf.PDF_LAYER_UI_RADIOBOX
  3883. class pdf_layer_config_ui(object):
  3884. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3885. __repr__ = _swig_repr
  3886. text = property(_mupdf.pdf_layer_config_ui_text_get, _mupdf.pdf_layer_config_ui_text_set)
  3887. depth = property(_mupdf.pdf_layer_config_ui_depth_get, _mupdf.pdf_layer_config_ui_depth_set)
  3888. type = property(_mupdf.pdf_layer_config_ui_type_get, _mupdf.pdf_layer_config_ui_type_set)
  3889. selected = property(_mupdf.pdf_layer_config_ui_selected_get, _mupdf.pdf_layer_config_ui_selected_set)
  3890. locked = property(_mupdf.pdf_layer_config_ui_locked_get, _mupdf.pdf_layer_config_ui_locked_set)
  3891. def __init__(self):
  3892. _mupdf.pdf_layer_config_ui_swiginit(self, _mupdf.new_pdf_layer_config_ui())
  3893. __swig_destroy__ = _mupdf.delete_pdf_layer_config_ui
  3894. # Register pdf_layer_config_ui in _mupdf:
  3895. _mupdf.pdf_layer_config_ui_swigregister(pdf_layer_config_ui)
  3896. class pdf_unsaved_sig(object):
  3897. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3898. __repr__ = _swig_repr
  3899. field = property(_mupdf.pdf_unsaved_sig_field_get, _mupdf.pdf_unsaved_sig_field_set)
  3900. byte_range_start = property(_mupdf.pdf_unsaved_sig_byte_range_start_get, _mupdf.pdf_unsaved_sig_byte_range_start_set)
  3901. byte_range_end = property(_mupdf.pdf_unsaved_sig_byte_range_end_get, _mupdf.pdf_unsaved_sig_byte_range_end_set)
  3902. contents_start = property(_mupdf.pdf_unsaved_sig_contents_start_get, _mupdf.pdf_unsaved_sig_contents_start_set)
  3903. contents_end = property(_mupdf.pdf_unsaved_sig_contents_end_get, _mupdf.pdf_unsaved_sig_contents_end_set)
  3904. signer = property(_mupdf.pdf_unsaved_sig_signer_get, _mupdf.pdf_unsaved_sig_signer_set)
  3905. next = property(_mupdf.pdf_unsaved_sig_next_get, _mupdf.pdf_unsaved_sig_next_set)
  3906. def __init__(self):
  3907. _mupdf.pdf_unsaved_sig_swiginit(self, _mupdf.new_pdf_unsaved_sig())
  3908. __swig_destroy__ = _mupdf.delete_pdf_unsaved_sig
  3909. # Register pdf_unsaved_sig in _mupdf:
  3910. _mupdf.pdf_unsaved_sig_swigregister(pdf_unsaved_sig)
  3911. class pdf_rev_page_map(object):
  3912. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3913. __repr__ = _swig_repr
  3914. page = property(_mupdf.pdf_rev_page_map_page_get, _mupdf.pdf_rev_page_map_page_set)
  3915. object = property(_mupdf.pdf_rev_page_map_object_get, _mupdf.pdf_rev_page_map_object_set)
  3916. def __init__(self):
  3917. _mupdf.pdf_rev_page_map_swiginit(self, _mupdf.new_pdf_rev_page_map())
  3918. __swig_destroy__ = _mupdf.delete_pdf_rev_page_map
  3919. # Register pdf_rev_page_map in _mupdf:
  3920. _mupdf.pdf_rev_page_map_swigregister(pdf_rev_page_map)
  3921. class pdf_hint_page(object):
  3922. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3923. __repr__ = _swig_repr
  3924. number = property(_mupdf.pdf_hint_page_number_get, _mupdf.pdf_hint_page_number_set)
  3925. offset = property(_mupdf.pdf_hint_page_offset_get, _mupdf.pdf_hint_page_offset_set)
  3926. index = property(_mupdf.pdf_hint_page_index_get, _mupdf.pdf_hint_page_index_set)
  3927. def __init__(self):
  3928. _mupdf.pdf_hint_page_swiginit(self, _mupdf.new_pdf_hint_page())
  3929. __swig_destroy__ = _mupdf.delete_pdf_hint_page
  3930. # Register pdf_hint_page in _mupdf:
  3931. _mupdf.pdf_hint_page_swigregister(pdf_hint_page)
  3932. class pdf_hint_shared(object):
  3933. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  3934. __repr__ = _swig_repr
  3935. number = property(_mupdf.pdf_hint_shared_number_get, _mupdf.pdf_hint_shared_number_set)
  3936. offset = property(_mupdf.pdf_hint_shared_offset_get, _mupdf.pdf_hint_shared_offset_set)
  3937. def __init__(self):
  3938. _mupdf.pdf_hint_shared_swiginit(self, _mupdf.new_pdf_hint_shared())
  3939. __swig_destroy__ = _mupdf.delete_pdf_hint_shared
  3940. # Register pdf_hint_shared in _mupdf:
  3941. _mupdf.pdf_hint_shared_swigregister(pdf_hint_shared)
  3942. class pdf_document(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. super = property(_mupdf.pdf_document_super_get, _mupdf.pdf_document_super_set)
  3946. file = property(_mupdf.pdf_document_file_get, _mupdf.pdf_document_file_set)
  3947. version = property(_mupdf.pdf_document_version_get, _mupdf.pdf_document_version_set)
  3948. is_fdf = property(_mupdf.pdf_document_is_fdf_get, _mupdf.pdf_document_is_fdf_set)
  3949. bias = property(_mupdf.pdf_document_bias_get, _mupdf.pdf_document_bias_set)
  3950. startxref = property(_mupdf.pdf_document_startxref_get, _mupdf.pdf_document_startxref_set)
  3951. file_size = property(_mupdf.pdf_document_file_size_get, _mupdf.pdf_document_file_size_set)
  3952. crypt = property(_mupdf.pdf_document_crypt_get, _mupdf.pdf_document_crypt_set)
  3953. ocg = property(_mupdf.pdf_document_ocg_get, _mupdf.pdf_document_ocg_set)
  3954. oi = property(_mupdf.pdf_document_oi_get, _mupdf.pdf_document_oi_set)
  3955. max_xref_len = property(_mupdf.pdf_document_max_xref_len_get, _mupdf.pdf_document_max_xref_len_set)
  3956. num_xref_sections = property(_mupdf.pdf_document_num_xref_sections_get, _mupdf.pdf_document_num_xref_sections_set)
  3957. saved_num_xref_sections = property(_mupdf.pdf_document_saved_num_xref_sections_get, _mupdf.pdf_document_saved_num_xref_sections_set)
  3958. num_incremental_sections = property(_mupdf.pdf_document_num_incremental_sections_get, _mupdf.pdf_document_num_incremental_sections_set)
  3959. xref_base = property(_mupdf.pdf_document_xref_base_get, _mupdf.pdf_document_xref_base_set)
  3960. disallow_new_increments = property(_mupdf.pdf_document_disallow_new_increments_get, _mupdf.pdf_document_disallow_new_increments_set)
  3961. local_xref = property(_mupdf.pdf_document_local_xref_get, _mupdf.pdf_document_local_xref_set)
  3962. local_xref_nesting = property(_mupdf.pdf_document_local_xref_nesting_get, _mupdf.pdf_document_local_xref_nesting_set)
  3963. xref_sections = property(_mupdf.pdf_document_xref_sections_get, _mupdf.pdf_document_xref_sections_set)
  3964. saved_xref_sections = property(_mupdf.pdf_document_saved_xref_sections_get, _mupdf.pdf_document_saved_xref_sections_set)
  3965. xref_index = property(_mupdf.pdf_document_xref_index_get, _mupdf.pdf_document_xref_index_set)
  3966. save_in_progress = property(_mupdf.pdf_document_save_in_progress_get, _mupdf.pdf_document_save_in_progress_set)
  3967. last_xref_was_old_style = property(_mupdf.pdf_document_last_xref_was_old_style_get, _mupdf.pdf_document_last_xref_was_old_style_set)
  3968. has_linearization_object = property(_mupdf.pdf_document_has_linearization_object_get, _mupdf.pdf_document_has_linearization_object_set)
  3969. map_page_count = property(_mupdf.pdf_document_map_page_count_get, _mupdf.pdf_document_map_page_count_set)
  3970. rev_page_map = property(_mupdf.pdf_document_rev_page_map_get, _mupdf.pdf_document_rev_page_map_set)
  3971. fwd_page_map = property(_mupdf.pdf_document_fwd_page_map_get, _mupdf.pdf_document_fwd_page_map_set)
  3972. page_tree_broken = property(_mupdf.pdf_document_page_tree_broken_get, _mupdf.pdf_document_page_tree_broken_set)
  3973. repair_attempted = property(_mupdf.pdf_document_repair_attempted_get, _mupdf.pdf_document_repair_attempted_set)
  3974. repair_in_progress = property(_mupdf.pdf_document_repair_in_progress_get, _mupdf.pdf_document_repair_in_progress_set)
  3975. non_structural_change = property(_mupdf.pdf_document_non_structural_change_get, _mupdf.pdf_document_non_structural_change_set)
  3976. file_reading_linearly = property(_mupdf.pdf_document_file_reading_linearly_get, _mupdf.pdf_document_file_reading_linearly_set)
  3977. file_length = property(_mupdf.pdf_document_file_length_get, _mupdf.pdf_document_file_length_set)
  3978. linear_page_count = property(_mupdf.pdf_document_linear_page_count_get, _mupdf.pdf_document_linear_page_count_set)
  3979. linear_obj = property(_mupdf.pdf_document_linear_obj_get, _mupdf.pdf_document_linear_obj_set)
  3980. linear_page_refs = property(_mupdf.pdf_document_linear_page_refs_get, _mupdf.pdf_document_linear_page_refs_set)
  3981. linear_page1_obj_num = property(_mupdf.pdf_document_linear_page1_obj_num_get, _mupdf.pdf_document_linear_page1_obj_num_set)
  3982. linear_pos = property(_mupdf.pdf_document_linear_pos_get, _mupdf.pdf_document_linear_pos_set)
  3983. linear_page_num = property(_mupdf.pdf_document_linear_page_num_get, _mupdf.pdf_document_linear_page_num_set)
  3984. hint_object_offset = property(_mupdf.pdf_document_hint_object_offset_get, _mupdf.pdf_document_hint_object_offset_set)
  3985. hint_object_length = property(_mupdf.pdf_document_hint_object_length_get, _mupdf.pdf_document_hint_object_length_set)
  3986. hints_loaded = property(_mupdf.pdf_document_hints_loaded_get, _mupdf.pdf_document_hints_loaded_set)
  3987. hint_page = property(_mupdf.pdf_document_hint_page_get, _mupdf.pdf_document_hint_page_set)
  3988. hint_shared_ref = property(_mupdf.pdf_document_hint_shared_ref_get, _mupdf.pdf_document_hint_shared_ref_set)
  3989. hint_shared = property(_mupdf.pdf_document_hint_shared_get, _mupdf.pdf_document_hint_shared_set)
  3990. hint_obj_offsets_max = property(_mupdf.pdf_document_hint_obj_offsets_max_get, _mupdf.pdf_document_hint_obj_offsets_max_set)
  3991. hint_obj_offsets = property(_mupdf.pdf_document_hint_obj_offsets_get, _mupdf.pdf_document_hint_obj_offsets_set)
  3992. lexbuf = property(_mupdf.pdf_document_lexbuf_get, _mupdf.pdf_document_lexbuf_set)
  3993. js = property(_mupdf.pdf_document_js_get, _mupdf.pdf_document_js_set)
  3994. recalculate = property(_mupdf.pdf_document_recalculate_get, _mupdf.pdf_document_recalculate_set)
  3995. redacted = property(_mupdf.pdf_document_redacted_get, _mupdf.pdf_document_redacted_set)
  3996. resynth_required = property(_mupdf.pdf_document_resynth_required_get, _mupdf.pdf_document_resynth_required_set)
  3997. event_cb = property(_mupdf.pdf_document_event_cb_get, _mupdf.pdf_document_event_cb_set)
  3998. free_event_data_cb = property(_mupdf.pdf_document_free_event_data_cb_get, _mupdf.pdf_document_free_event_data_cb_set)
  3999. event_cb_data = property(_mupdf.pdf_document_event_cb_data_get, _mupdf.pdf_document_event_cb_data_set)
  4000. num_type3_fonts = property(_mupdf.pdf_document_num_type3_fonts_get, _mupdf.pdf_document_num_type3_fonts_set)
  4001. max_type3_fonts = property(_mupdf.pdf_document_max_type3_fonts_get, _mupdf.pdf_document_max_type3_fonts_set)
  4002. type3_fonts = property(_mupdf.pdf_document_type3_fonts_get, _mupdf.pdf_document_type3_fonts_set)
  4003. orphans_max = property(_mupdf.pdf_document_orphans_max_get, _mupdf.pdf_document_orphans_max_set)
  4004. orphans_count = property(_mupdf.pdf_document_orphans_count_get, _mupdf.pdf_document_orphans_count_set)
  4005. orphans = property(_mupdf.pdf_document_orphans_get, _mupdf.pdf_document_orphans_set)
  4006. xfa = property(_mupdf.pdf_document_xfa_get, _mupdf.pdf_document_xfa_set)
  4007. journal = property(_mupdf.pdf_document_journal_get, _mupdf.pdf_document_journal_set)
  4008. def __init__(self):
  4009. _mupdf.pdf_document_swiginit(self, _mupdf.new_pdf_document())
  4010. __swig_destroy__ = _mupdf.delete_pdf_document
  4011. # Register pdf_document in _mupdf:
  4012. _mupdf.pdf_document_swigregister(pdf_document)
  4013. PDF_PAGE_LABEL_NONE = _mupdf.PDF_PAGE_LABEL_NONE
  4014. PDF_PAGE_LABEL_DECIMAL = _mupdf.PDF_PAGE_LABEL_DECIMAL
  4015. PDF_PAGE_LABEL_ROMAN_UC = _mupdf.PDF_PAGE_LABEL_ROMAN_UC
  4016. PDF_PAGE_LABEL_ROMAN_LC = _mupdf.PDF_PAGE_LABEL_ROMAN_LC
  4017. PDF_PAGE_LABEL_ALPHA_UC = _mupdf.PDF_PAGE_LABEL_ALPHA_UC
  4018. PDF_PAGE_LABEL_ALPHA_LC = _mupdf.PDF_PAGE_LABEL_ALPHA_LC
  4019. class pdf_write_options(object):
  4020. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4021. __repr__ = _swig_repr
  4022. do_incremental = property(_mupdf.pdf_write_options_do_incremental_get, _mupdf.pdf_write_options_do_incremental_set)
  4023. do_pretty = property(_mupdf.pdf_write_options_do_pretty_get, _mupdf.pdf_write_options_do_pretty_set)
  4024. do_ascii = property(_mupdf.pdf_write_options_do_ascii_get, _mupdf.pdf_write_options_do_ascii_set)
  4025. do_compress = property(_mupdf.pdf_write_options_do_compress_get, _mupdf.pdf_write_options_do_compress_set)
  4026. do_compress_images = property(_mupdf.pdf_write_options_do_compress_images_get, _mupdf.pdf_write_options_do_compress_images_set)
  4027. do_compress_fonts = property(_mupdf.pdf_write_options_do_compress_fonts_get, _mupdf.pdf_write_options_do_compress_fonts_set)
  4028. do_decompress = property(_mupdf.pdf_write_options_do_decompress_get, _mupdf.pdf_write_options_do_decompress_set)
  4029. do_garbage = property(_mupdf.pdf_write_options_do_garbage_get, _mupdf.pdf_write_options_do_garbage_set)
  4030. do_linear = property(_mupdf.pdf_write_options_do_linear_get, _mupdf.pdf_write_options_do_linear_set)
  4031. do_clean = property(_mupdf.pdf_write_options_do_clean_get, _mupdf.pdf_write_options_do_clean_set)
  4032. do_sanitize = property(_mupdf.pdf_write_options_do_sanitize_get, _mupdf.pdf_write_options_do_sanitize_set)
  4033. do_appearance = property(_mupdf.pdf_write_options_do_appearance_get, _mupdf.pdf_write_options_do_appearance_set)
  4034. do_encrypt = property(_mupdf.pdf_write_options_do_encrypt_get, _mupdf.pdf_write_options_do_encrypt_set)
  4035. dont_regenerate_id = property(_mupdf.pdf_write_options_dont_regenerate_id_get, _mupdf.pdf_write_options_dont_regenerate_id_set)
  4036. permissions = property(_mupdf.pdf_write_options_permissions_get, _mupdf.pdf_write_options_permissions_set)
  4037. opwd_utf8 = property(_mupdf.pdf_write_options_opwd_utf8_get, _mupdf.pdf_write_options_opwd_utf8_set)
  4038. upwd_utf8 = property(_mupdf.pdf_write_options_upwd_utf8_get, _mupdf.pdf_write_options_upwd_utf8_set)
  4039. do_snapshot = property(_mupdf.pdf_write_options_do_snapshot_get, _mupdf.pdf_write_options_do_snapshot_set)
  4040. do_preserve_metadata = property(_mupdf.pdf_write_options_do_preserve_metadata_get, _mupdf.pdf_write_options_do_preserve_metadata_set)
  4041. do_use_objstms = property(_mupdf.pdf_write_options_do_use_objstms_get, _mupdf.pdf_write_options_do_use_objstms_set)
  4042. compression_effort = property(_mupdf.pdf_write_options_compression_effort_get, _mupdf.pdf_write_options_compression_effort_set)
  4043. do_labels = property(_mupdf.pdf_write_options_do_labels_get, _mupdf.pdf_write_options_do_labels_set)
  4044. def __init__(self):
  4045. _mupdf.pdf_write_options_swiginit(self, _mupdf.new_pdf_write_options())
  4046. __swig_destroy__ = _mupdf.delete_pdf_write_options
  4047. # Register pdf_write_options in _mupdf:
  4048. _mupdf.pdf_write_options_swigregister(pdf_write_options)
  4049. PDF_TOK_ERROR = _mupdf.PDF_TOK_ERROR
  4050. PDF_TOK_EOF = _mupdf.PDF_TOK_EOF
  4051. PDF_TOK_OPEN_ARRAY = _mupdf.PDF_TOK_OPEN_ARRAY
  4052. PDF_TOK_CLOSE_ARRAY = _mupdf.PDF_TOK_CLOSE_ARRAY
  4053. PDF_TOK_OPEN_DICT = _mupdf.PDF_TOK_OPEN_DICT
  4054. PDF_TOK_CLOSE_DICT = _mupdf.PDF_TOK_CLOSE_DICT
  4055. PDF_TOK_OPEN_BRACE = _mupdf.PDF_TOK_OPEN_BRACE
  4056. PDF_TOK_CLOSE_BRACE = _mupdf.PDF_TOK_CLOSE_BRACE
  4057. PDF_TOK_NAME = _mupdf.PDF_TOK_NAME
  4058. PDF_TOK_INT = _mupdf.PDF_TOK_INT
  4059. PDF_TOK_REAL = _mupdf.PDF_TOK_REAL
  4060. PDF_TOK_STRING = _mupdf.PDF_TOK_STRING
  4061. PDF_TOK_KEYWORD = _mupdf.PDF_TOK_KEYWORD
  4062. PDF_TOK_R = _mupdf.PDF_TOK_R
  4063. PDF_TOK_TRUE = _mupdf.PDF_TOK_TRUE
  4064. PDF_TOK_FALSE = _mupdf.PDF_TOK_FALSE
  4065. PDF_TOK_NULL = _mupdf.PDF_TOK_NULL
  4066. PDF_TOK_OBJ = _mupdf.PDF_TOK_OBJ
  4067. PDF_TOK_ENDOBJ = _mupdf.PDF_TOK_ENDOBJ
  4068. PDF_TOK_STREAM = _mupdf.PDF_TOK_STREAM
  4069. PDF_TOK_ENDSTREAM = _mupdf.PDF_TOK_ENDSTREAM
  4070. PDF_TOK_XREF = _mupdf.PDF_TOK_XREF
  4071. PDF_TOK_TRAILER = _mupdf.PDF_TOK_TRAILER
  4072. PDF_TOK_STARTXREF = _mupdf.PDF_TOK_STARTXREF
  4073. PDF_TOK_NEWOBJ = _mupdf.PDF_TOK_NEWOBJ
  4074. PDF_NUM_TOKENS = _mupdf.PDF_NUM_TOKENS
  4075. class pdf_xref_entry(object):
  4076. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4077. __repr__ = _swig_repr
  4078. type = property(_mupdf.pdf_xref_entry_type_get, _mupdf.pdf_xref_entry_type_set)
  4079. marked = property(_mupdf.pdf_xref_entry_marked_get, _mupdf.pdf_xref_entry_marked_set)
  4080. gen = property(_mupdf.pdf_xref_entry_gen_get, _mupdf.pdf_xref_entry_gen_set)
  4081. num = property(_mupdf.pdf_xref_entry_num_get, _mupdf.pdf_xref_entry_num_set)
  4082. ofs = property(_mupdf.pdf_xref_entry_ofs_get, _mupdf.pdf_xref_entry_ofs_set)
  4083. stm_ofs = property(_mupdf.pdf_xref_entry_stm_ofs_get, _mupdf.pdf_xref_entry_stm_ofs_set)
  4084. stm_buf = property(_mupdf.pdf_xref_entry_stm_buf_get, _mupdf.pdf_xref_entry_stm_buf_set)
  4085. obj = property(_mupdf.pdf_xref_entry_obj_get, _mupdf.pdf_xref_entry_obj_set)
  4086. def __init__(self):
  4087. _mupdf.pdf_xref_entry_swiginit(self, _mupdf.new_pdf_xref_entry())
  4088. __swig_destroy__ = _mupdf.delete_pdf_xref_entry
  4089. # Register pdf_xref_entry in _mupdf:
  4090. _mupdf.pdf_xref_entry_swigregister(pdf_xref_entry)
  4091. pdf_default_write_options = cvar.pdf_default_write_options
  4092. class pdf_xref_subsec(object):
  4093. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4094. __repr__ = _swig_repr
  4095. next = property(_mupdf.pdf_xref_subsec_next_get, _mupdf.pdf_xref_subsec_next_set)
  4096. len = property(_mupdf.pdf_xref_subsec_len_get, _mupdf.pdf_xref_subsec_len_set)
  4097. start = property(_mupdf.pdf_xref_subsec_start_get, _mupdf.pdf_xref_subsec_start_set)
  4098. table = property(_mupdf.pdf_xref_subsec_table_get, _mupdf.pdf_xref_subsec_table_set)
  4099. def __init__(self):
  4100. _mupdf.pdf_xref_subsec_swiginit(self, _mupdf.new_pdf_xref_subsec())
  4101. __swig_destroy__ = _mupdf.delete_pdf_xref_subsec
  4102. # Register pdf_xref_subsec in _mupdf:
  4103. _mupdf.pdf_xref_subsec_swigregister(pdf_xref_subsec)
  4104. class pdf_xref(object):
  4105. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4106. __repr__ = _swig_repr
  4107. num_objects = property(_mupdf.pdf_xref_num_objects_get, _mupdf.pdf_xref_num_objects_set)
  4108. subsec = property(_mupdf.pdf_xref_subsec_get, _mupdf.pdf_xref_subsec_set)
  4109. trailer = property(_mupdf.pdf_xref_trailer_get, _mupdf.pdf_xref_trailer_set)
  4110. pre_repair_trailer = property(_mupdf.pdf_xref_pre_repair_trailer_get, _mupdf.pdf_xref_pre_repair_trailer_set)
  4111. unsaved_sigs = property(_mupdf.pdf_xref_unsaved_sigs_get, _mupdf.pdf_xref_unsaved_sigs_set)
  4112. unsaved_sigs_end = property(_mupdf.pdf_xref_unsaved_sigs_end_get, _mupdf.pdf_xref_unsaved_sigs_end_set)
  4113. end_ofs = property(_mupdf.pdf_xref_end_ofs_get, _mupdf.pdf_xref_end_ofs_set)
  4114. def __init__(self):
  4115. _mupdf.pdf_xref_swiginit(self, _mupdf.new_pdf_xref())
  4116. __swig_destroy__ = _mupdf.delete_pdf_xref
  4117. # Register pdf_xref in _mupdf:
  4118. _mupdf.pdf_xref_swigregister(pdf_xref)
  4119. PDF_ENCRYPT_KEEP = _mupdf.PDF_ENCRYPT_KEEP
  4120. PDF_ENCRYPT_NONE = _mupdf.PDF_ENCRYPT_NONE
  4121. PDF_ENCRYPT_RC4_40 = _mupdf.PDF_ENCRYPT_RC4_40
  4122. PDF_ENCRYPT_RC4_128 = _mupdf.PDF_ENCRYPT_RC4_128
  4123. PDF_ENCRYPT_AES_128 = _mupdf.PDF_ENCRYPT_AES_128
  4124. PDF_ENCRYPT_AES_256 = _mupdf.PDF_ENCRYPT_AES_256
  4125. PDF_ENCRYPT_UNKNOWN = _mupdf.PDF_ENCRYPT_UNKNOWN
  4126. PDF_PERM_PRINT = _mupdf.PDF_PERM_PRINT
  4127. PDF_PERM_MODIFY = _mupdf.PDF_PERM_MODIFY
  4128. PDF_PERM_COPY = _mupdf.PDF_PERM_COPY
  4129. PDF_PERM_ANNOTATE = _mupdf.PDF_PERM_ANNOTATE
  4130. PDF_PERM_FORM = _mupdf.PDF_PERM_FORM
  4131. PDF_PERM_ACCESSIBILITY = _mupdf.PDF_PERM_ACCESSIBILITY
  4132. PDF_PERM_ASSEMBLE = _mupdf.PDF_PERM_ASSEMBLE
  4133. PDF_PERM_PRINT_HQ = _mupdf.PDF_PERM_PRINT_HQ
  4134. PDF_MRANGE_CAP = _mupdf.PDF_MRANGE_CAP
  4135. class pdf_range(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. low = property(_mupdf.pdf_range_low_get, _mupdf.pdf_range_low_set)
  4139. high = property(_mupdf.pdf_range_high_get, _mupdf.pdf_range_high_set)
  4140. out = property(_mupdf.pdf_range_out_get, _mupdf.pdf_range_out_set)
  4141. def __init__(self):
  4142. _mupdf.pdf_range_swiginit(self, _mupdf.new_pdf_range())
  4143. __swig_destroy__ = _mupdf.delete_pdf_range
  4144. # Register pdf_range in _mupdf:
  4145. _mupdf.pdf_range_swigregister(pdf_range)
  4146. class pdf_xrange(object):
  4147. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4148. __repr__ = _swig_repr
  4149. low = property(_mupdf.pdf_xrange_low_get, _mupdf.pdf_xrange_low_set)
  4150. high = property(_mupdf.pdf_xrange_high_get, _mupdf.pdf_xrange_high_set)
  4151. out = property(_mupdf.pdf_xrange_out_get, _mupdf.pdf_xrange_out_set)
  4152. def __init__(self):
  4153. _mupdf.pdf_xrange_swiginit(self, _mupdf.new_pdf_xrange())
  4154. __swig_destroy__ = _mupdf.delete_pdf_xrange
  4155. # Register pdf_xrange in _mupdf:
  4156. _mupdf.pdf_xrange_swigregister(pdf_xrange)
  4157. class pdf_mrange(object):
  4158. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4159. __repr__ = _swig_repr
  4160. low = property(_mupdf.pdf_mrange_low_get, _mupdf.pdf_mrange_low_set)
  4161. out = property(_mupdf.pdf_mrange_out_get, _mupdf.pdf_mrange_out_set)
  4162. def __init__(self):
  4163. _mupdf.pdf_mrange_swiginit(self, _mupdf.new_pdf_mrange())
  4164. __swig_destroy__ = _mupdf.delete_pdf_mrange
  4165. # Register pdf_mrange in _mupdf:
  4166. _mupdf.pdf_mrange_swigregister(pdf_mrange)
  4167. class pdf_cmap(object):
  4168. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4169. __repr__ = _swig_repr
  4170. storable = property(_mupdf.pdf_cmap_storable_get, _mupdf.pdf_cmap_storable_set)
  4171. cmap_name = property(_mupdf.pdf_cmap_cmap_name_get, _mupdf.pdf_cmap_cmap_name_set)
  4172. usecmap_name = property(_mupdf.pdf_cmap_usecmap_name_get, _mupdf.pdf_cmap_usecmap_name_set)
  4173. usecmap = property(_mupdf.pdf_cmap_usecmap_get, _mupdf.pdf_cmap_usecmap_set)
  4174. wmode = property(_mupdf.pdf_cmap_wmode_get, _mupdf.pdf_cmap_wmode_set)
  4175. codespace_len = property(_mupdf.pdf_cmap_codespace_len_get, _mupdf.pdf_cmap_codespace_len_set)
  4176. rlen = property(_mupdf.pdf_cmap_rlen_get, _mupdf.pdf_cmap_rlen_set)
  4177. rcap = property(_mupdf.pdf_cmap_rcap_get, _mupdf.pdf_cmap_rcap_set)
  4178. ranges = property(_mupdf.pdf_cmap_ranges_get, _mupdf.pdf_cmap_ranges_set)
  4179. xlen = property(_mupdf.pdf_cmap_xlen_get, _mupdf.pdf_cmap_xlen_set)
  4180. xcap = property(_mupdf.pdf_cmap_xcap_get, _mupdf.pdf_cmap_xcap_set)
  4181. xranges = property(_mupdf.pdf_cmap_xranges_get, _mupdf.pdf_cmap_xranges_set)
  4182. mlen = property(_mupdf.pdf_cmap_mlen_get, _mupdf.pdf_cmap_mlen_set)
  4183. mcap = property(_mupdf.pdf_cmap_mcap_get, _mupdf.pdf_cmap_mcap_set)
  4184. mranges = property(_mupdf.pdf_cmap_mranges_get, _mupdf.pdf_cmap_mranges_set)
  4185. dlen = property(_mupdf.pdf_cmap_dlen_get, _mupdf.pdf_cmap_dlen_set)
  4186. dcap = property(_mupdf.pdf_cmap_dcap_get, _mupdf.pdf_cmap_dcap_set)
  4187. dict = property(_mupdf.pdf_cmap_dict_get, _mupdf.pdf_cmap_dict_set)
  4188. tlen = property(_mupdf.pdf_cmap_tlen_get, _mupdf.pdf_cmap_tlen_set)
  4189. tcap = property(_mupdf.pdf_cmap_tcap_get, _mupdf.pdf_cmap_tcap_set)
  4190. ttop = property(_mupdf.pdf_cmap_ttop_get, _mupdf.pdf_cmap_ttop_set)
  4191. tree = property(_mupdf.pdf_cmap_tree_get, _mupdf.pdf_cmap_tree_set)
  4192. def __init__(self):
  4193. _mupdf.pdf_cmap_swiginit(self, _mupdf.new_pdf_cmap())
  4194. __swig_destroy__ = _mupdf.delete_pdf_cmap
  4195. # Register pdf_cmap in _mupdf:
  4196. _mupdf.pdf_cmap_swigregister(pdf_cmap)
  4197. PDF_FD_FIXED_PITCH = _mupdf.PDF_FD_FIXED_PITCH
  4198. PDF_FD_SERIF = _mupdf.PDF_FD_SERIF
  4199. PDF_FD_SYMBOLIC = _mupdf.PDF_FD_SYMBOLIC
  4200. PDF_FD_SCRIPT = _mupdf.PDF_FD_SCRIPT
  4201. PDF_FD_NONSYMBOLIC = _mupdf.PDF_FD_NONSYMBOLIC
  4202. PDF_FD_ITALIC = _mupdf.PDF_FD_ITALIC
  4203. PDF_FD_ALL_CAP = _mupdf.PDF_FD_ALL_CAP
  4204. PDF_FD_SMALL_CAP = _mupdf.PDF_FD_SMALL_CAP
  4205. PDF_FD_FORCE_BOLD = _mupdf.PDF_FD_FORCE_BOLD
  4206. class pdf_hmtx(object):
  4207. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4208. __repr__ = _swig_repr
  4209. lo = property(_mupdf.pdf_hmtx_lo_get, _mupdf.pdf_hmtx_lo_set)
  4210. hi = property(_mupdf.pdf_hmtx_hi_get, _mupdf.pdf_hmtx_hi_set)
  4211. w = property(_mupdf.pdf_hmtx_w_get, _mupdf.pdf_hmtx_w_set)
  4212. def __init__(self):
  4213. _mupdf.pdf_hmtx_swiginit(self, _mupdf.new_pdf_hmtx())
  4214. __swig_destroy__ = _mupdf.delete_pdf_hmtx
  4215. # Register pdf_hmtx in _mupdf:
  4216. _mupdf.pdf_hmtx_swigregister(pdf_hmtx)
  4217. class pdf_vmtx(object):
  4218. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4219. __repr__ = _swig_repr
  4220. lo = property(_mupdf.pdf_vmtx_lo_get, _mupdf.pdf_vmtx_lo_set)
  4221. hi = property(_mupdf.pdf_vmtx_hi_get, _mupdf.pdf_vmtx_hi_set)
  4222. x = property(_mupdf.pdf_vmtx_x_get, _mupdf.pdf_vmtx_x_set)
  4223. y = property(_mupdf.pdf_vmtx_y_get, _mupdf.pdf_vmtx_y_set)
  4224. w = property(_mupdf.pdf_vmtx_w_get, _mupdf.pdf_vmtx_w_set)
  4225. def __init__(self):
  4226. _mupdf.pdf_vmtx_swiginit(self, _mupdf.new_pdf_vmtx())
  4227. __swig_destroy__ = _mupdf.delete_pdf_vmtx
  4228. # Register pdf_vmtx in _mupdf:
  4229. _mupdf.pdf_vmtx_swigregister(pdf_vmtx)
  4230. class pdf_font_desc(object):
  4231. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4232. __repr__ = _swig_repr
  4233. storable = property(_mupdf.pdf_font_desc_storable_get, _mupdf.pdf_font_desc_storable_set)
  4234. size = property(_mupdf.pdf_font_desc_size_get, _mupdf.pdf_font_desc_size_set)
  4235. font = property(_mupdf.pdf_font_desc_font_get, _mupdf.pdf_font_desc_font_set)
  4236. flags = property(_mupdf.pdf_font_desc_flags_get, _mupdf.pdf_font_desc_flags_set)
  4237. italic_angle = property(_mupdf.pdf_font_desc_italic_angle_get, _mupdf.pdf_font_desc_italic_angle_set)
  4238. ascent = property(_mupdf.pdf_font_desc_ascent_get, _mupdf.pdf_font_desc_ascent_set)
  4239. descent = property(_mupdf.pdf_font_desc_descent_get, _mupdf.pdf_font_desc_descent_set)
  4240. cap_height = property(_mupdf.pdf_font_desc_cap_height_get, _mupdf.pdf_font_desc_cap_height_set)
  4241. x_height = property(_mupdf.pdf_font_desc_x_height_get, _mupdf.pdf_font_desc_x_height_set)
  4242. missing_width = property(_mupdf.pdf_font_desc_missing_width_get, _mupdf.pdf_font_desc_missing_width_set)
  4243. encoding = property(_mupdf.pdf_font_desc_encoding_get, _mupdf.pdf_font_desc_encoding_set)
  4244. to_ttf_cmap = property(_mupdf.pdf_font_desc_to_ttf_cmap_get, _mupdf.pdf_font_desc_to_ttf_cmap_set)
  4245. cid_to_gid_len = property(_mupdf.pdf_font_desc_cid_to_gid_len_get, _mupdf.pdf_font_desc_cid_to_gid_len_set)
  4246. cid_to_gid = property(_mupdf.pdf_font_desc_cid_to_gid_get, _mupdf.pdf_font_desc_cid_to_gid_set)
  4247. to_unicode = property(_mupdf.pdf_font_desc_to_unicode_get, _mupdf.pdf_font_desc_to_unicode_set)
  4248. cid_to_ucs_len = property(_mupdf.pdf_font_desc_cid_to_ucs_len_get, _mupdf.pdf_font_desc_cid_to_ucs_len_set)
  4249. cid_to_ucs = property(_mupdf.pdf_font_desc_cid_to_ucs_get, _mupdf.pdf_font_desc_cid_to_ucs_set)
  4250. wmode = property(_mupdf.pdf_font_desc_wmode_get, _mupdf.pdf_font_desc_wmode_set)
  4251. hmtx_len = property(_mupdf.pdf_font_desc_hmtx_len_get, _mupdf.pdf_font_desc_hmtx_len_set)
  4252. hmtx_cap = property(_mupdf.pdf_font_desc_hmtx_cap_get, _mupdf.pdf_font_desc_hmtx_cap_set)
  4253. dhmtx = property(_mupdf.pdf_font_desc_dhmtx_get, _mupdf.pdf_font_desc_dhmtx_set)
  4254. hmtx = property(_mupdf.pdf_font_desc_hmtx_get, _mupdf.pdf_font_desc_hmtx_set)
  4255. vmtx_len = property(_mupdf.pdf_font_desc_vmtx_len_get, _mupdf.pdf_font_desc_vmtx_len_set)
  4256. vmtx_cap = property(_mupdf.pdf_font_desc_vmtx_cap_get, _mupdf.pdf_font_desc_vmtx_cap_set)
  4257. dvmtx = property(_mupdf.pdf_font_desc_dvmtx_get, _mupdf.pdf_font_desc_dvmtx_set)
  4258. vmtx = property(_mupdf.pdf_font_desc_vmtx_get, _mupdf.pdf_font_desc_vmtx_set)
  4259. is_embedded = property(_mupdf.pdf_font_desc_is_embedded_get, _mupdf.pdf_font_desc_is_embedded_set)
  4260. t3loading = property(_mupdf.pdf_font_desc_t3loading_get, _mupdf.pdf_font_desc_t3loading_set)
  4261. def __init__(self):
  4262. _mupdf.pdf_font_desc_swiginit(self, _mupdf.new_pdf_font_desc())
  4263. __swig_destroy__ = _mupdf.delete_pdf_font_desc
  4264. # Register pdf_font_desc in _mupdf:
  4265. _mupdf.pdf_font_desc_swigregister(pdf_font_desc)
  4266. PDF_SIMPLE_FONT_RESOURCE = _mupdf.PDF_SIMPLE_FONT_RESOURCE
  4267. PDF_CID_FONT_RESOURCE = _mupdf.PDF_CID_FONT_RESOURCE
  4268. PDF_CJK_FONT_RESOURCE = _mupdf.PDF_CJK_FONT_RESOURCE
  4269. PDF_SIMPLE_ENCODING_LATIN = _mupdf.PDF_SIMPLE_ENCODING_LATIN
  4270. PDF_SIMPLE_ENCODING_GREEK = _mupdf.PDF_SIMPLE_ENCODING_GREEK
  4271. PDF_SIMPLE_ENCODING_CYRILLIC = _mupdf.PDF_SIMPLE_ENCODING_CYRILLIC
  4272. class pdf_font_resource_key(object):
  4273. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4274. __repr__ = _swig_repr
  4275. digest = property(_mupdf.pdf_font_resource_key_digest_get, _mupdf.pdf_font_resource_key_digest_set)
  4276. type = property(_mupdf.pdf_font_resource_key_type_get, _mupdf.pdf_font_resource_key_type_set)
  4277. encoding = property(_mupdf.pdf_font_resource_key_encoding_get, _mupdf.pdf_font_resource_key_encoding_set)
  4278. local_xref = property(_mupdf.pdf_font_resource_key_local_xref_get, _mupdf.pdf_font_resource_key_local_xref_set)
  4279. def __init__(self):
  4280. _mupdf.pdf_font_resource_key_swiginit(self, _mupdf.new_pdf_font_resource_key())
  4281. __swig_destroy__ = _mupdf.delete_pdf_font_resource_key
  4282. # Register pdf_font_resource_key in _mupdf:
  4283. _mupdf.pdf_font_resource_key_swigregister(pdf_font_resource_key)
  4284. class pdf_colorspace_resource_key(object):
  4285. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4286. __repr__ = _swig_repr
  4287. digest = property(_mupdf.pdf_colorspace_resource_key_digest_get, _mupdf.pdf_colorspace_resource_key_digest_set)
  4288. local_xref = property(_mupdf.pdf_colorspace_resource_key_local_xref_get, _mupdf.pdf_colorspace_resource_key_local_xref_set)
  4289. def __init__(self):
  4290. _mupdf.pdf_colorspace_resource_key_swiginit(self, _mupdf.new_pdf_colorspace_resource_key())
  4291. __swig_destroy__ = _mupdf.delete_pdf_colorspace_resource_key
  4292. # Register pdf_colorspace_resource_key in _mupdf:
  4293. _mupdf.pdf_colorspace_resource_key_swigregister(pdf_colorspace_resource_key)
  4294. class pdf_pattern(object):
  4295. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4296. __repr__ = _swig_repr
  4297. storable = property(_mupdf.pdf_pattern_storable_get, _mupdf.pdf_pattern_storable_set)
  4298. ismask = property(_mupdf.pdf_pattern_ismask_get, _mupdf.pdf_pattern_ismask_set)
  4299. xstep = property(_mupdf.pdf_pattern_xstep_get, _mupdf.pdf_pattern_xstep_set)
  4300. ystep = property(_mupdf.pdf_pattern_ystep_get, _mupdf.pdf_pattern_ystep_set)
  4301. matrix = property(_mupdf.pdf_pattern_matrix_get, _mupdf.pdf_pattern_matrix_set)
  4302. bbox = property(_mupdf.pdf_pattern_bbox_get, _mupdf.pdf_pattern_bbox_set)
  4303. document = property(_mupdf.pdf_pattern_document_get, _mupdf.pdf_pattern_document_set)
  4304. resources = property(_mupdf.pdf_pattern_resources_get, _mupdf.pdf_pattern_resources_set)
  4305. contents = property(_mupdf.pdf_pattern_contents_get, _mupdf.pdf_pattern_contents_set)
  4306. id = property(_mupdf.pdf_pattern_id_get, _mupdf.pdf_pattern_id_set)
  4307. def __init__(self):
  4308. _mupdf.pdf_pattern_swiginit(self, _mupdf.new_pdf_pattern())
  4309. __swig_destroy__ = _mupdf.delete_pdf_pattern
  4310. # Register pdf_pattern in _mupdf:
  4311. _mupdf.pdf_pattern_swigregister(pdf_pattern)
  4312. PDF_PROCESSOR_REQUIRES_DECODED_IMAGES = _mupdf.PDF_PROCESSOR_REQUIRES_DECODED_IMAGES
  4313. class pdf_processor(object):
  4314. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4315. __repr__ = _swig_repr
  4316. refs = property(_mupdf.pdf_processor_refs_get, _mupdf.pdf_processor_refs_set)
  4317. closed = property(_mupdf.pdf_processor_closed_get, _mupdf.pdf_processor_closed_set)
  4318. close_processor = property(_mupdf.pdf_processor_close_processor_get, _mupdf.pdf_processor_close_processor_set)
  4319. drop_processor = property(_mupdf.pdf_processor_drop_processor_get, _mupdf.pdf_processor_drop_processor_set)
  4320. reset_processor = property(_mupdf.pdf_processor_reset_processor_get, _mupdf.pdf_processor_reset_processor_set)
  4321. push_resources = property(_mupdf.pdf_processor_push_resources_get, _mupdf.pdf_processor_push_resources_set)
  4322. pop_resources = property(_mupdf.pdf_processor_pop_resources_get, _mupdf.pdf_processor_pop_resources_set)
  4323. op_w = property(_mupdf.pdf_processor_op_w_get, _mupdf.pdf_processor_op_w_set)
  4324. op_j = property(_mupdf.pdf_processor_op_j_get, _mupdf.pdf_processor_op_j_set)
  4325. op_J = property(_mupdf.pdf_processor_op_J_get, _mupdf.pdf_processor_op_J_set)
  4326. op_M = property(_mupdf.pdf_processor_op_M_get, _mupdf.pdf_processor_op_M_set)
  4327. op_d = property(_mupdf.pdf_processor_op_d_get, _mupdf.pdf_processor_op_d_set)
  4328. op_ri = property(_mupdf.pdf_processor_op_ri_get, _mupdf.pdf_processor_op_ri_set)
  4329. op_i = property(_mupdf.pdf_processor_op_i_get, _mupdf.pdf_processor_op_i_set)
  4330. op_gs_begin = property(_mupdf.pdf_processor_op_gs_begin_get, _mupdf.pdf_processor_op_gs_begin_set)
  4331. op_gs_BM = property(_mupdf.pdf_processor_op_gs_BM_get, _mupdf.pdf_processor_op_gs_BM_set)
  4332. op_gs_ca = property(_mupdf.pdf_processor_op_gs_ca_get, _mupdf.pdf_processor_op_gs_ca_set)
  4333. op_gs_CA = property(_mupdf.pdf_processor_op_gs_CA_get, _mupdf.pdf_processor_op_gs_CA_set)
  4334. op_gs_SMask = property(_mupdf.pdf_processor_op_gs_SMask_get, _mupdf.pdf_processor_op_gs_SMask_set)
  4335. op_gs_end = property(_mupdf.pdf_processor_op_gs_end_get, _mupdf.pdf_processor_op_gs_end_set)
  4336. op_q = property(_mupdf.pdf_processor_op_q_get, _mupdf.pdf_processor_op_q_set)
  4337. op_Q = property(_mupdf.pdf_processor_op_Q_get, _mupdf.pdf_processor_op_Q_set)
  4338. op_cm = property(_mupdf.pdf_processor_op_cm_get, _mupdf.pdf_processor_op_cm_set)
  4339. op_m = property(_mupdf.pdf_processor_op_m_get, _mupdf.pdf_processor_op_m_set)
  4340. op_l = property(_mupdf.pdf_processor_op_l_get, _mupdf.pdf_processor_op_l_set)
  4341. op_c = property(_mupdf.pdf_processor_op_c_get, _mupdf.pdf_processor_op_c_set)
  4342. op_v = property(_mupdf.pdf_processor_op_v_get, _mupdf.pdf_processor_op_v_set)
  4343. op_y = property(_mupdf.pdf_processor_op_y_get, _mupdf.pdf_processor_op_y_set)
  4344. op_h = property(_mupdf.pdf_processor_op_h_get, _mupdf.pdf_processor_op_h_set)
  4345. op_re = property(_mupdf.pdf_processor_op_re_get, _mupdf.pdf_processor_op_re_set)
  4346. op_S = property(_mupdf.pdf_processor_op_S_get, _mupdf.pdf_processor_op_S_set)
  4347. op_s = property(_mupdf.pdf_processor_op_s_get, _mupdf.pdf_processor_op_s_set)
  4348. op_F = property(_mupdf.pdf_processor_op_F_get, _mupdf.pdf_processor_op_F_set)
  4349. op_f = property(_mupdf.pdf_processor_op_f_get, _mupdf.pdf_processor_op_f_set)
  4350. op_fstar = property(_mupdf.pdf_processor_op_fstar_get, _mupdf.pdf_processor_op_fstar_set)
  4351. op_B = property(_mupdf.pdf_processor_op_B_get, _mupdf.pdf_processor_op_B_set)
  4352. op_Bstar = property(_mupdf.pdf_processor_op_Bstar_get, _mupdf.pdf_processor_op_Bstar_set)
  4353. op_b = property(_mupdf.pdf_processor_op_b_get, _mupdf.pdf_processor_op_b_set)
  4354. op_bstar = property(_mupdf.pdf_processor_op_bstar_get, _mupdf.pdf_processor_op_bstar_set)
  4355. op_n = property(_mupdf.pdf_processor_op_n_get, _mupdf.pdf_processor_op_n_set)
  4356. op_W = property(_mupdf.pdf_processor_op_W_get, _mupdf.pdf_processor_op_W_set)
  4357. op_Wstar = property(_mupdf.pdf_processor_op_Wstar_get, _mupdf.pdf_processor_op_Wstar_set)
  4358. op_BT = property(_mupdf.pdf_processor_op_BT_get, _mupdf.pdf_processor_op_BT_set)
  4359. op_ET = property(_mupdf.pdf_processor_op_ET_get, _mupdf.pdf_processor_op_ET_set)
  4360. op_Tc = property(_mupdf.pdf_processor_op_Tc_get, _mupdf.pdf_processor_op_Tc_set)
  4361. op_Tw = property(_mupdf.pdf_processor_op_Tw_get, _mupdf.pdf_processor_op_Tw_set)
  4362. op_Tz = property(_mupdf.pdf_processor_op_Tz_get, _mupdf.pdf_processor_op_Tz_set)
  4363. op_TL = property(_mupdf.pdf_processor_op_TL_get, _mupdf.pdf_processor_op_TL_set)
  4364. op_Tf = property(_mupdf.pdf_processor_op_Tf_get, _mupdf.pdf_processor_op_Tf_set)
  4365. op_Tr = property(_mupdf.pdf_processor_op_Tr_get, _mupdf.pdf_processor_op_Tr_set)
  4366. op_Ts = property(_mupdf.pdf_processor_op_Ts_get, _mupdf.pdf_processor_op_Ts_set)
  4367. op_Td = property(_mupdf.pdf_processor_op_Td_get, _mupdf.pdf_processor_op_Td_set)
  4368. op_TD = property(_mupdf.pdf_processor_op_TD_get, _mupdf.pdf_processor_op_TD_set)
  4369. op_Tm = property(_mupdf.pdf_processor_op_Tm_get, _mupdf.pdf_processor_op_Tm_set)
  4370. op_Tstar = property(_mupdf.pdf_processor_op_Tstar_get, _mupdf.pdf_processor_op_Tstar_set)
  4371. op_TJ = property(_mupdf.pdf_processor_op_TJ_get, _mupdf.pdf_processor_op_TJ_set)
  4372. op_Tj = property(_mupdf.pdf_processor_op_Tj_get, _mupdf.pdf_processor_op_Tj_set)
  4373. op_squote = property(_mupdf.pdf_processor_op_squote_get, _mupdf.pdf_processor_op_squote_set)
  4374. op_dquote = property(_mupdf.pdf_processor_op_dquote_get, _mupdf.pdf_processor_op_dquote_set)
  4375. op_d0 = property(_mupdf.pdf_processor_op_d0_get, _mupdf.pdf_processor_op_d0_set)
  4376. op_d1 = property(_mupdf.pdf_processor_op_d1_get, _mupdf.pdf_processor_op_d1_set)
  4377. op_CS = property(_mupdf.pdf_processor_op_CS_get, _mupdf.pdf_processor_op_CS_set)
  4378. op_cs = property(_mupdf.pdf_processor_op_cs_get, _mupdf.pdf_processor_op_cs_set)
  4379. op_SC_pattern = property(_mupdf.pdf_processor_op_SC_pattern_get, _mupdf.pdf_processor_op_SC_pattern_set)
  4380. op_sc_pattern = property(_mupdf.pdf_processor_op_sc_pattern_get, _mupdf.pdf_processor_op_sc_pattern_set)
  4381. op_SC_shade = property(_mupdf.pdf_processor_op_SC_shade_get, _mupdf.pdf_processor_op_SC_shade_set)
  4382. op_sc_shade = property(_mupdf.pdf_processor_op_sc_shade_get, _mupdf.pdf_processor_op_sc_shade_set)
  4383. op_SC_color = property(_mupdf.pdf_processor_op_SC_color_get, _mupdf.pdf_processor_op_SC_color_set)
  4384. op_sc_color = property(_mupdf.pdf_processor_op_sc_color_get, _mupdf.pdf_processor_op_sc_color_set)
  4385. op_G = property(_mupdf.pdf_processor_op_G_get, _mupdf.pdf_processor_op_G_set)
  4386. op_g = property(_mupdf.pdf_processor_op_g_get, _mupdf.pdf_processor_op_g_set)
  4387. op_RG = property(_mupdf.pdf_processor_op_RG_get, _mupdf.pdf_processor_op_RG_set)
  4388. op_rg = property(_mupdf.pdf_processor_op_rg_get, _mupdf.pdf_processor_op_rg_set)
  4389. op_K = property(_mupdf.pdf_processor_op_K_get, _mupdf.pdf_processor_op_K_set)
  4390. op_k = property(_mupdf.pdf_processor_op_k_get, _mupdf.pdf_processor_op_k_set)
  4391. op_BI = property(_mupdf.pdf_processor_op_BI_get, _mupdf.pdf_processor_op_BI_set)
  4392. op_sh = property(_mupdf.pdf_processor_op_sh_get, _mupdf.pdf_processor_op_sh_set)
  4393. op_Do_image = property(_mupdf.pdf_processor_op_Do_image_get, _mupdf.pdf_processor_op_Do_image_set)
  4394. op_Do_form = property(_mupdf.pdf_processor_op_Do_form_get, _mupdf.pdf_processor_op_Do_form_set)
  4395. op_MP = property(_mupdf.pdf_processor_op_MP_get, _mupdf.pdf_processor_op_MP_set)
  4396. op_DP = property(_mupdf.pdf_processor_op_DP_get, _mupdf.pdf_processor_op_DP_set)
  4397. op_BMC = property(_mupdf.pdf_processor_op_BMC_get, _mupdf.pdf_processor_op_BMC_set)
  4398. op_BDC = property(_mupdf.pdf_processor_op_BDC_get, _mupdf.pdf_processor_op_BDC_set)
  4399. op_EMC = property(_mupdf.pdf_processor_op_EMC_get, _mupdf.pdf_processor_op_EMC_set)
  4400. op_BX = property(_mupdf.pdf_processor_op_BX_get, _mupdf.pdf_processor_op_BX_set)
  4401. op_EX = property(_mupdf.pdf_processor_op_EX_get, _mupdf.pdf_processor_op_EX_set)
  4402. op_gs_OP = property(_mupdf.pdf_processor_op_gs_OP_get, _mupdf.pdf_processor_op_gs_OP_set)
  4403. op_gs_op = property(_mupdf.pdf_processor_op_gs_op_get, _mupdf.pdf_processor_op_gs_op_set)
  4404. op_gs_OPM = property(_mupdf.pdf_processor_op_gs_OPM_get, _mupdf.pdf_processor_op_gs_OPM_set)
  4405. op_gs_UseBlackPtComp = property(_mupdf.pdf_processor_op_gs_UseBlackPtComp_get, _mupdf.pdf_processor_op_gs_UseBlackPtComp_set)
  4406. op_EOD = property(_mupdf.pdf_processor_op_EOD_get, _mupdf.pdf_processor_op_EOD_set)
  4407. op_END = property(_mupdf.pdf_processor_op_END_get, _mupdf.pdf_processor_op_END_set)
  4408. usage = property(_mupdf.pdf_processor_usage_get, _mupdf.pdf_processor_usage_set)
  4409. hidden = property(_mupdf.pdf_processor_hidden_get, _mupdf.pdf_processor_hidden_set)
  4410. requirements = property(_mupdf.pdf_processor_requirements_get, _mupdf.pdf_processor_requirements_set)
  4411. def __init__(self):
  4412. _mupdf.pdf_processor_swiginit(self, _mupdf.new_pdf_processor())
  4413. __swig_destroy__ = _mupdf.delete_pdf_processor
  4414. # Register pdf_processor in _mupdf:
  4415. _mupdf.pdf_processor_swigregister(pdf_processor)
  4416. class pdf_csi(object):
  4417. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4418. __repr__ = _swig_repr
  4419. doc = property(_mupdf.pdf_csi_doc_get, _mupdf.pdf_csi_doc_set)
  4420. rdb = property(_mupdf.pdf_csi_rdb_get, _mupdf.pdf_csi_rdb_set)
  4421. buf = property(_mupdf.pdf_csi_buf_get, _mupdf.pdf_csi_buf_set)
  4422. cookie = property(_mupdf.pdf_csi_cookie_get, _mupdf.pdf_csi_cookie_set)
  4423. gstate = property(_mupdf.pdf_csi_gstate_get, _mupdf.pdf_csi_gstate_set)
  4424. xbalance = property(_mupdf.pdf_csi_xbalance_get, _mupdf.pdf_csi_xbalance_set)
  4425. in_text = property(_mupdf.pdf_csi_in_text_get, _mupdf.pdf_csi_in_text_set)
  4426. d1_rect = property(_mupdf.pdf_csi_d1_rect_get, _mupdf.pdf_csi_d1_rect_set)
  4427. obj = property(_mupdf.pdf_csi_obj_get, _mupdf.pdf_csi_obj_set)
  4428. name = property(_mupdf.pdf_csi_name_get, _mupdf.pdf_csi_name_set)
  4429. string = property(_mupdf.pdf_csi_string_get, _mupdf.pdf_csi_string_set)
  4430. string_len = property(_mupdf.pdf_csi_string_len_get, _mupdf.pdf_csi_string_len_set)
  4431. top = property(_mupdf.pdf_csi_top_get, _mupdf.pdf_csi_top_set)
  4432. stack = property(_mupdf.pdf_csi_stack_get, _mupdf.pdf_csi_stack_set)
  4433. def __init__(self):
  4434. _mupdf.pdf_csi_swiginit(self, _mupdf.new_pdf_csi())
  4435. __swig_destroy__ = _mupdf.delete_pdf_csi
  4436. # Register pdf_csi in _mupdf:
  4437. _mupdf.pdf_csi_swigregister(pdf_csi)
  4438. class pdf_filter_factory(object):
  4439. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4440. __repr__ = _swig_repr
  4441. filter = property(_mupdf.pdf_filter_factory_filter_get, _mupdf.pdf_filter_factory_filter_set)
  4442. options = property(_mupdf.pdf_filter_factory_options_get, _mupdf.pdf_filter_factory_options_set)
  4443. def __init__(self):
  4444. _mupdf.pdf_filter_factory_swiginit(self, _mupdf.new_pdf_filter_factory())
  4445. __swig_destroy__ = _mupdf.delete_pdf_filter_factory
  4446. # Register pdf_filter_factory in _mupdf:
  4447. _mupdf.pdf_filter_factory_swigregister(pdf_filter_factory)
  4448. class pdf_filter_options(object):
  4449. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4450. __repr__ = _swig_repr
  4451. recurse = property(_mupdf.pdf_filter_options_recurse_get, _mupdf.pdf_filter_options_recurse_set)
  4452. instance_forms = property(_mupdf.pdf_filter_options_instance_forms_get, _mupdf.pdf_filter_options_instance_forms_set)
  4453. ascii = property(_mupdf.pdf_filter_options_ascii_get, _mupdf.pdf_filter_options_ascii_set)
  4454. no_update = property(_mupdf.pdf_filter_options_no_update_get, _mupdf.pdf_filter_options_no_update_set)
  4455. opaque = property(_mupdf.pdf_filter_options_opaque_get, _mupdf.pdf_filter_options_opaque_set)
  4456. complete = property(_mupdf.pdf_filter_options_complete_get, _mupdf.pdf_filter_options_complete_set)
  4457. filters = property(_mupdf.pdf_filter_options_filters_get, _mupdf.pdf_filter_options_filters_set)
  4458. newlines = property(_mupdf.pdf_filter_options_newlines_get, _mupdf.pdf_filter_options_newlines_set)
  4459. def __init__(self):
  4460. _mupdf.pdf_filter_options_swiginit(self, _mupdf.new_pdf_filter_options())
  4461. __swig_destroy__ = _mupdf.delete_pdf_filter_options
  4462. # Register pdf_filter_options in _mupdf:
  4463. _mupdf.pdf_filter_options_swigregister(pdf_filter_options)
  4464. FZ_CULL_PATH_DROP = _mupdf.FZ_CULL_PATH_DROP
  4465. FZ_CULL_PATH_FILL = _mupdf.FZ_CULL_PATH_FILL
  4466. FZ_CULL_PATH_STROKE = _mupdf.FZ_CULL_PATH_STROKE
  4467. FZ_CULL_PATH_FILL_STROKE = _mupdf.FZ_CULL_PATH_FILL_STROKE
  4468. FZ_CULL_CLIP_PATH_DROP = _mupdf.FZ_CULL_CLIP_PATH_DROP
  4469. FZ_CULL_CLIP_PATH_FILL = _mupdf.FZ_CULL_CLIP_PATH_FILL
  4470. FZ_CULL_CLIP_PATH_STROKE = _mupdf.FZ_CULL_CLIP_PATH_STROKE
  4471. FZ_CULL_CLIP_PATH_FILL_STROKE = _mupdf.FZ_CULL_CLIP_PATH_FILL_STROKE
  4472. FZ_CULL_GLYPH = _mupdf.FZ_CULL_GLYPH
  4473. FZ_CULL_IMAGE = _mupdf.FZ_CULL_IMAGE
  4474. FZ_CULL_SHADING = _mupdf.FZ_CULL_SHADING
  4475. class pdf_sanitize_filter_options(object):
  4476. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4477. __repr__ = _swig_repr
  4478. opaque = property(_mupdf.pdf_sanitize_filter_options_opaque_get, _mupdf.pdf_sanitize_filter_options_opaque_set)
  4479. image_filter = property(_mupdf.pdf_sanitize_filter_options_image_filter_get, _mupdf.pdf_sanitize_filter_options_image_filter_set)
  4480. text_filter = property(_mupdf.pdf_sanitize_filter_options_text_filter_get, _mupdf.pdf_sanitize_filter_options_text_filter_set)
  4481. after_text_object = property(_mupdf.pdf_sanitize_filter_options_after_text_object_get, _mupdf.pdf_sanitize_filter_options_after_text_object_set)
  4482. culler = property(_mupdf.pdf_sanitize_filter_options_culler_get, _mupdf.pdf_sanitize_filter_options_culler_set)
  4483. def __init__(self):
  4484. _mupdf.pdf_sanitize_filter_options_swiginit(self, _mupdf.new_pdf_sanitize_filter_options())
  4485. __swig_destroy__ = _mupdf.delete_pdf_sanitize_filter_options
  4486. # Register pdf_sanitize_filter_options in _mupdf:
  4487. _mupdf.pdf_sanitize_filter_options_swigregister(pdf_sanitize_filter_options)
  4488. class pdf_color_filter_options(object):
  4489. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4490. __repr__ = _swig_repr
  4491. opaque = property(_mupdf.pdf_color_filter_options_opaque_get, _mupdf.pdf_color_filter_options_opaque_set)
  4492. color_rewrite = property(_mupdf.pdf_color_filter_options_color_rewrite_get, _mupdf.pdf_color_filter_options_color_rewrite_set)
  4493. image_rewrite = property(_mupdf.pdf_color_filter_options_image_rewrite_get, _mupdf.pdf_color_filter_options_image_rewrite_set)
  4494. shade_rewrite = property(_mupdf.pdf_color_filter_options_shade_rewrite_get, _mupdf.pdf_color_filter_options_shade_rewrite_set)
  4495. repeated_image_rewrite = property(_mupdf.pdf_color_filter_options_repeated_image_rewrite_get, _mupdf.pdf_color_filter_options_repeated_image_rewrite_set)
  4496. def __init__(self):
  4497. _mupdf.pdf_color_filter_options_swiginit(self, _mupdf.new_pdf_color_filter_options())
  4498. __swig_destroy__ = _mupdf.delete_pdf_color_filter_options
  4499. # Register pdf_color_filter_options in _mupdf:
  4500. _mupdf.pdf_color_filter_options_swigregister(pdf_color_filter_options)
  4501. class pdf_text_state(object):
  4502. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4503. __repr__ = _swig_repr
  4504. char_space = property(_mupdf.pdf_text_state_char_space_get, _mupdf.pdf_text_state_char_space_set)
  4505. word_space = property(_mupdf.pdf_text_state_word_space_get, _mupdf.pdf_text_state_word_space_set)
  4506. scale = property(_mupdf.pdf_text_state_scale_get, _mupdf.pdf_text_state_scale_set)
  4507. leading = property(_mupdf.pdf_text_state_leading_get, _mupdf.pdf_text_state_leading_set)
  4508. font = property(_mupdf.pdf_text_state_font_get, _mupdf.pdf_text_state_font_set)
  4509. fontname = property(_mupdf.pdf_text_state_fontname_get, _mupdf.pdf_text_state_fontname_set)
  4510. size = property(_mupdf.pdf_text_state_size_get, _mupdf.pdf_text_state_size_set)
  4511. render = property(_mupdf.pdf_text_state_render_get, _mupdf.pdf_text_state_render_set)
  4512. rise = property(_mupdf.pdf_text_state_rise_get, _mupdf.pdf_text_state_rise_set)
  4513. def __init__(self):
  4514. _mupdf.pdf_text_state_swiginit(self, _mupdf.new_pdf_text_state())
  4515. __swig_destroy__ = _mupdf.delete_pdf_text_state
  4516. # Register pdf_text_state in _mupdf:
  4517. _mupdf.pdf_text_state_swigregister(pdf_text_state)
  4518. class pdf_text_object_state(object):
  4519. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4520. __repr__ = _swig_repr
  4521. text = property(_mupdf.pdf_text_object_state_text_get, _mupdf.pdf_text_object_state_text_set)
  4522. text_bbox = property(_mupdf.pdf_text_object_state_text_bbox_get, _mupdf.pdf_text_object_state_text_bbox_set)
  4523. tlm = property(_mupdf.pdf_text_object_state_tlm_get, _mupdf.pdf_text_object_state_tlm_set)
  4524. tm = property(_mupdf.pdf_text_object_state_tm_get, _mupdf.pdf_text_object_state_tm_set)
  4525. text_mode = property(_mupdf.pdf_text_object_state_text_mode_get, _mupdf.pdf_text_object_state_text_mode_set)
  4526. cid = property(_mupdf.pdf_text_object_state_cid_get, _mupdf.pdf_text_object_state_cid_set)
  4527. gid = property(_mupdf.pdf_text_object_state_gid_get, _mupdf.pdf_text_object_state_gid_set)
  4528. char_bbox = property(_mupdf.pdf_text_object_state_char_bbox_get, _mupdf.pdf_text_object_state_char_bbox_set)
  4529. fontdesc = property(_mupdf.pdf_text_object_state_fontdesc_get, _mupdf.pdf_text_object_state_fontdesc_set)
  4530. char_tx = property(_mupdf.pdf_text_object_state_char_tx_get, _mupdf.pdf_text_object_state_char_tx_set)
  4531. char_ty = property(_mupdf.pdf_text_object_state_char_ty_get, _mupdf.pdf_text_object_state_char_ty_set)
  4532. def __init__(self):
  4533. _mupdf.pdf_text_object_state_swiginit(self, _mupdf.new_pdf_text_object_state())
  4534. __swig_destroy__ = _mupdf.delete_pdf_text_object_state
  4535. # Register pdf_text_object_state in _mupdf:
  4536. _mupdf.pdf_text_object_state_swigregister(pdf_text_object_state)
  4537. PDF_REDACT_IMAGE_NONE = _mupdf.PDF_REDACT_IMAGE_NONE
  4538. PDF_REDACT_IMAGE_REMOVE = _mupdf.PDF_REDACT_IMAGE_REMOVE
  4539. PDF_REDACT_IMAGE_PIXELS = _mupdf.PDF_REDACT_IMAGE_PIXELS
  4540. PDF_REDACT_IMAGE_REMOVE_UNLESS_INVISIBLE = _mupdf.PDF_REDACT_IMAGE_REMOVE_UNLESS_INVISIBLE
  4541. PDF_REDACT_LINE_ART_NONE = _mupdf.PDF_REDACT_LINE_ART_NONE
  4542. PDF_REDACT_LINE_ART_REMOVE_IF_COVERED = _mupdf.PDF_REDACT_LINE_ART_REMOVE_IF_COVERED
  4543. PDF_REDACT_LINE_ART_REMOVE_IF_TOUCHED = _mupdf.PDF_REDACT_LINE_ART_REMOVE_IF_TOUCHED
  4544. PDF_REDACT_TEXT_REMOVE = _mupdf.PDF_REDACT_TEXT_REMOVE
  4545. PDF_REDACT_TEXT_NONE = _mupdf.PDF_REDACT_TEXT_NONE
  4546. class pdf_redact_options(object):
  4547. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4548. __repr__ = _swig_repr
  4549. black_boxes = property(_mupdf.pdf_redact_options_black_boxes_get, _mupdf.pdf_redact_options_black_boxes_set)
  4550. image_method = property(_mupdf.pdf_redact_options_image_method_get, _mupdf.pdf_redact_options_image_method_set)
  4551. line_art = property(_mupdf.pdf_redact_options_line_art_get, _mupdf.pdf_redact_options_line_art_set)
  4552. text = property(_mupdf.pdf_redact_options_text_get, _mupdf.pdf_redact_options_text_set)
  4553. def __init__(self):
  4554. _mupdf.pdf_redact_options_swiginit(self, _mupdf.new_pdf_redact_options())
  4555. __swig_destroy__ = _mupdf.delete_pdf_redact_options
  4556. # Register pdf_redact_options in _mupdf:
  4557. _mupdf.pdf_redact_options_swigregister(pdf_redact_options)
  4558. class pdf_page(object):
  4559. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4560. __repr__ = _swig_repr
  4561. super = property(_mupdf.pdf_page_super_get, _mupdf.pdf_page_super_set)
  4562. doc = property(_mupdf.pdf_page_doc_get, _mupdf.pdf_page_doc_set)
  4563. obj = property(_mupdf.pdf_page_obj_get, _mupdf.pdf_page_obj_set)
  4564. transparency = property(_mupdf.pdf_page_transparency_get, _mupdf.pdf_page_transparency_set)
  4565. overprint = property(_mupdf.pdf_page_overprint_get, _mupdf.pdf_page_overprint_set)
  4566. links = property(_mupdf.pdf_page_links_get, _mupdf.pdf_page_links_set)
  4567. annots = property(_mupdf.pdf_page_annots_get, _mupdf.pdf_page_annots_set)
  4568. annot_tailp = property(_mupdf.pdf_page_annot_tailp_get, _mupdf.pdf_page_annot_tailp_set)
  4569. widgets = property(_mupdf.pdf_page_widgets_get, _mupdf.pdf_page_widgets_set)
  4570. widget_tailp = property(_mupdf.pdf_page_widget_tailp_get, _mupdf.pdf_page_widget_tailp_set)
  4571. def __init__(self):
  4572. _mupdf.pdf_page_swiginit(self, _mupdf.new_pdf_page())
  4573. __swig_destroy__ = _mupdf.delete_pdf_page
  4574. # Register pdf_page in _mupdf:
  4575. _mupdf.pdf_page_swigregister(pdf_page)
  4576. PDF_ANNOT_TEXT = _mupdf.PDF_ANNOT_TEXT
  4577. PDF_ANNOT_LINK = _mupdf.PDF_ANNOT_LINK
  4578. PDF_ANNOT_FREE_TEXT = _mupdf.PDF_ANNOT_FREE_TEXT
  4579. PDF_ANNOT_LINE = _mupdf.PDF_ANNOT_LINE
  4580. PDF_ANNOT_SQUARE = _mupdf.PDF_ANNOT_SQUARE
  4581. PDF_ANNOT_CIRCLE = _mupdf.PDF_ANNOT_CIRCLE
  4582. PDF_ANNOT_POLYGON = _mupdf.PDF_ANNOT_POLYGON
  4583. PDF_ANNOT_POLY_LINE = _mupdf.PDF_ANNOT_POLY_LINE
  4584. PDF_ANNOT_HIGHLIGHT = _mupdf.PDF_ANNOT_HIGHLIGHT
  4585. PDF_ANNOT_UNDERLINE = _mupdf.PDF_ANNOT_UNDERLINE
  4586. PDF_ANNOT_SQUIGGLY = _mupdf.PDF_ANNOT_SQUIGGLY
  4587. PDF_ANNOT_STRIKE_OUT = _mupdf.PDF_ANNOT_STRIKE_OUT
  4588. PDF_ANNOT_REDACT = _mupdf.PDF_ANNOT_REDACT
  4589. PDF_ANNOT_STAMP = _mupdf.PDF_ANNOT_STAMP
  4590. PDF_ANNOT_CARET = _mupdf.PDF_ANNOT_CARET
  4591. PDF_ANNOT_INK = _mupdf.PDF_ANNOT_INK
  4592. PDF_ANNOT_POPUP = _mupdf.PDF_ANNOT_POPUP
  4593. PDF_ANNOT_FILE_ATTACHMENT = _mupdf.PDF_ANNOT_FILE_ATTACHMENT
  4594. PDF_ANNOT_SOUND = _mupdf.PDF_ANNOT_SOUND
  4595. PDF_ANNOT_MOVIE = _mupdf.PDF_ANNOT_MOVIE
  4596. PDF_ANNOT_RICH_MEDIA = _mupdf.PDF_ANNOT_RICH_MEDIA
  4597. PDF_ANNOT_WIDGET = _mupdf.PDF_ANNOT_WIDGET
  4598. PDF_ANNOT_SCREEN = _mupdf.PDF_ANNOT_SCREEN
  4599. PDF_ANNOT_PRINTER_MARK = _mupdf.PDF_ANNOT_PRINTER_MARK
  4600. PDF_ANNOT_TRAP_NET = _mupdf.PDF_ANNOT_TRAP_NET
  4601. PDF_ANNOT_WATERMARK = _mupdf.PDF_ANNOT_WATERMARK
  4602. PDF_ANNOT_3D = _mupdf.PDF_ANNOT_3D
  4603. PDF_ANNOT_PROJECTION = _mupdf.PDF_ANNOT_PROJECTION
  4604. PDF_ANNOT_UNKNOWN = _mupdf.PDF_ANNOT_UNKNOWN
  4605. PDF_ANNOT_IS_INVISIBLE = _mupdf.PDF_ANNOT_IS_INVISIBLE
  4606. PDF_ANNOT_IS_HIDDEN = _mupdf.PDF_ANNOT_IS_HIDDEN
  4607. PDF_ANNOT_IS_PRINT = _mupdf.PDF_ANNOT_IS_PRINT
  4608. PDF_ANNOT_IS_NO_ZOOM = _mupdf.PDF_ANNOT_IS_NO_ZOOM
  4609. PDF_ANNOT_IS_NO_ROTATE = _mupdf.PDF_ANNOT_IS_NO_ROTATE
  4610. PDF_ANNOT_IS_NO_VIEW = _mupdf.PDF_ANNOT_IS_NO_VIEW
  4611. PDF_ANNOT_IS_READ_ONLY = _mupdf.PDF_ANNOT_IS_READ_ONLY
  4612. PDF_ANNOT_IS_LOCKED = _mupdf.PDF_ANNOT_IS_LOCKED
  4613. PDF_ANNOT_IS_TOGGLE_NO_VIEW = _mupdf.PDF_ANNOT_IS_TOGGLE_NO_VIEW
  4614. PDF_ANNOT_IS_LOCKED_CONTENTS = _mupdf.PDF_ANNOT_IS_LOCKED_CONTENTS
  4615. PDF_ANNOT_LE_NONE = _mupdf.PDF_ANNOT_LE_NONE
  4616. PDF_ANNOT_LE_SQUARE = _mupdf.PDF_ANNOT_LE_SQUARE
  4617. PDF_ANNOT_LE_CIRCLE = _mupdf.PDF_ANNOT_LE_CIRCLE
  4618. PDF_ANNOT_LE_DIAMOND = _mupdf.PDF_ANNOT_LE_DIAMOND
  4619. PDF_ANNOT_LE_OPEN_ARROW = _mupdf.PDF_ANNOT_LE_OPEN_ARROW
  4620. PDF_ANNOT_LE_CLOSED_ARROW = _mupdf.PDF_ANNOT_LE_CLOSED_ARROW
  4621. PDF_ANNOT_LE_BUTT = _mupdf.PDF_ANNOT_LE_BUTT
  4622. PDF_ANNOT_LE_R_OPEN_ARROW = _mupdf.PDF_ANNOT_LE_R_OPEN_ARROW
  4623. PDF_ANNOT_LE_R_CLOSED_ARROW = _mupdf.PDF_ANNOT_LE_R_CLOSED_ARROW
  4624. PDF_ANNOT_LE_SLASH = _mupdf.PDF_ANNOT_LE_SLASH
  4625. PDF_ANNOT_Q_LEFT = _mupdf.PDF_ANNOT_Q_LEFT
  4626. PDF_ANNOT_Q_CENTER = _mupdf.PDF_ANNOT_Q_CENTER
  4627. PDF_ANNOT_Q_RIGHT = _mupdf.PDF_ANNOT_Q_RIGHT
  4628. PDF_ANNOT_IT_DEFAULT = _mupdf.PDF_ANNOT_IT_DEFAULT
  4629. PDF_ANNOT_IT_FREETEXT_CALLOUT = _mupdf.PDF_ANNOT_IT_FREETEXT_CALLOUT
  4630. PDF_ANNOT_IT_FREETEXT_TYPEWRITER = _mupdf.PDF_ANNOT_IT_FREETEXT_TYPEWRITER
  4631. PDF_ANNOT_IT_LINE_ARROW = _mupdf.PDF_ANNOT_IT_LINE_ARROW
  4632. PDF_ANNOT_IT_LINE_DIMENSION = _mupdf.PDF_ANNOT_IT_LINE_DIMENSION
  4633. PDF_ANNOT_IT_POLYLINE_DIMENSION = _mupdf.PDF_ANNOT_IT_POLYLINE_DIMENSION
  4634. PDF_ANNOT_IT_POLYGON_CLOUD = _mupdf.PDF_ANNOT_IT_POLYGON_CLOUD
  4635. PDF_ANNOT_IT_POLYGON_DIMENSION = _mupdf.PDF_ANNOT_IT_POLYGON_DIMENSION
  4636. PDF_ANNOT_IT_STAMP_IMAGE = _mupdf.PDF_ANNOT_IT_STAMP_IMAGE
  4637. PDF_ANNOT_IT_STAMP_SNAPSHOT = _mupdf.PDF_ANNOT_IT_STAMP_SNAPSHOT
  4638. PDF_ANNOT_IT_UNKNOWN = _mupdf.PDF_ANNOT_IT_UNKNOWN
  4639. PDF_BORDER_STYLE_SOLID = _mupdf.PDF_BORDER_STYLE_SOLID
  4640. PDF_BORDER_STYLE_DASHED = _mupdf.PDF_BORDER_STYLE_DASHED
  4641. PDF_BORDER_STYLE_BEVELED = _mupdf.PDF_BORDER_STYLE_BEVELED
  4642. PDF_BORDER_STYLE_INSET = _mupdf.PDF_BORDER_STYLE_INSET
  4643. PDF_BORDER_STYLE_UNDERLINE = _mupdf.PDF_BORDER_STYLE_UNDERLINE
  4644. PDF_BORDER_EFFECT_NONE = _mupdf.PDF_BORDER_EFFECT_NONE
  4645. PDF_BORDER_EFFECT_CLOUDY = _mupdf.PDF_BORDER_EFFECT_CLOUDY
  4646. class pdf_filespec_params(object):
  4647. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4648. __repr__ = _swig_repr
  4649. filename = property(_mupdf.pdf_filespec_params_filename_get, _mupdf.pdf_filespec_params_filename_set)
  4650. mimetype = property(_mupdf.pdf_filespec_params_mimetype_get, _mupdf.pdf_filespec_params_mimetype_set)
  4651. size = property(_mupdf.pdf_filespec_params_size_get, _mupdf.pdf_filespec_params_size_set)
  4652. created = property(_mupdf.pdf_filespec_params_created_get, _mupdf.pdf_filespec_params_created_set)
  4653. modified = property(_mupdf.pdf_filespec_params_modified_get, _mupdf.pdf_filespec_params_modified_set)
  4654. def __init__(self):
  4655. _mupdf.pdf_filespec_params_swiginit(self, _mupdf.new_pdf_filespec_params())
  4656. __swig_destroy__ = _mupdf.delete_pdf_filespec_params
  4657. # Register pdf_filespec_params in _mupdf:
  4658. _mupdf.pdf_filespec_params_swigregister(pdf_filespec_params)
  4659. PDF_WIDGET_TYPE_UNKNOWN = _mupdf.PDF_WIDGET_TYPE_UNKNOWN
  4660. PDF_WIDGET_TYPE_BUTTON = _mupdf.PDF_WIDGET_TYPE_BUTTON
  4661. PDF_WIDGET_TYPE_CHECKBOX = _mupdf.PDF_WIDGET_TYPE_CHECKBOX
  4662. PDF_WIDGET_TYPE_COMBOBOX = _mupdf.PDF_WIDGET_TYPE_COMBOBOX
  4663. PDF_WIDGET_TYPE_LISTBOX = _mupdf.PDF_WIDGET_TYPE_LISTBOX
  4664. PDF_WIDGET_TYPE_RADIOBUTTON = _mupdf.PDF_WIDGET_TYPE_RADIOBUTTON
  4665. PDF_WIDGET_TYPE_SIGNATURE = _mupdf.PDF_WIDGET_TYPE_SIGNATURE
  4666. PDF_WIDGET_TYPE_TEXT = _mupdf.PDF_WIDGET_TYPE_TEXT
  4667. PDF_WIDGET_TX_FORMAT_NONE = _mupdf.PDF_WIDGET_TX_FORMAT_NONE
  4668. PDF_WIDGET_TX_FORMAT_NUMBER = _mupdf.PDF_WIDGET_TX_FORMAT_NUMBER
  4669. PDF_WIDGET_TX_FORMAT_SPECIAL = _mupdf.PDF_WIDGET_TX_FORMAT_SPECIAL
  4670. PDF_WIDGET_TX_FORMAT_DATE = _mupdf.PDF_WIDGET_TX_FORMAT_DATE
  4671. PDF_WIDGET_TX_FORMAT_TIME = _mupdf.PDF_WIDGET_TX_FORMAT_TIME
  4672. PDF_FIELD_IS_READ_ONLY = _mupdf.PDF_FIELD_IS_READ_ONLY
  4673. PDF_FIELD_IS_REQUIRED = _mupdf.PDF_FIELD_IS_REQUIRED
  4674. PDF_FIELD_IS_NO_EXPORT = _mupdf.PDF_FIELD_IS_NO_EXPORT
  4675. PDF_TX_FIELD_IS_MULTILINE = _mupdf.PDF_TX_FIELD_IS_MULTILINE
  4676. PDF_TX_FIELD_IS_PASSWORD = _mupdf.PDF_TX_FIELD_IS_PASSWORD
  4677. PDF_TX_FIELD_IS_FILE_SELECT = _mupdf.PDF_TX_FIELD_IS_FILE_SELECT
  4678. PDF_TX_FIELD_IS_DO_NOT_SPELL_CHECK = _mupdf.PDF_TX_FIELD_IS_DO_NOT_SPELL_CHECK
  4679. PDF_TX_FIELD_IS_DO_NOT_SCROLL = _mupdf.PDF_TX_FIELD_IS_DO_NOT_SCROLL
  4680. PDF_TX_FIELD_IS_COMB = _mupdf.PDF_TX_FIELD_IS_COMB
  4681. PDF_TX_FIELD_IS_RICH_TEXT = _mupdf.PDF_TX_FIELD_IS_RICH_TEXT
  4682. PDF_BTN_FIELD_IS_NO_TOGGLE_TO_OFF = _mupdf.PDF_BTN_FIELD_IS_NO_TOGGLE_TO_OFF
  4683. PDF_BTN_FIELD_IS_RADIO = _mupdf.PDF_BTN_FIELD_IS_RADIO
  4684. PDF_BTN_FIELD_IS_PUSHBUTTON = _mupdf.PDF_BTN_FIELD_IS_PUSHBUTTON
  4685. PDF_BTN_FIELD_IS_RADIOS_IN_UNISON = _mupdf.PDF_BTN_FIELD_IS_RADIOS_IN_UNISON
  4686. PDF_CH_FIELD_IS_COMBO = _mupdf.PDF_CH_FIELD_IS_COMBO
  4687. PDF_CH_FIELD_IS_EDIT = _mupdf.PDF_CH_FIELD_IS_EDIT
  4688. PDF_CH_FIELD_IS_SORT = _mupdf.PDF_CH_FIELD_IS_SORT
  4689. PDF_CH_FIELD_IS_MULTI_SELECT = _mupdf.PDF_CH_FIELD_IS_MULTI_SELECT
  4690. PDF_CH_FIELD_IS_DO_NOT_SPELL_CHECK = _mupdf.PDF_CH_FIELD_IS_DO_NOT_SPELL_CHECK
  4691. PDF_CH_FIELD_IS_COMMIT_ON_SEL_CHANGE = _mupdf.PDF_CH_FIELD_IS_COMMIT_ON_SEL_CHANGE
  4692. class pdf_pkcs7_distinguished_name(object):
  4693. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4694. __repr__ = _swig_repr
  4695. cn = property(_mupdf.pdf_pkcs7_distinguished_name_cn_get, _mupdf.pdf_pkcs7_distinguished_name_cn_set)
  4696. o = property(_mupdf.pdf_pkcs7_distinguished_name_o_get, _mupdf.pdf_pkcs7_distinguished_name_o_set)
  4697. ou = property(_mupdf.pdf_pkcs7_distinguished_name_ou_get, _mupdf.pdf_pkcs7_distinguished_name_ou_set)
  4698. email = property(_mupdf.pdf_pkcs7_distinguished_name_email_get, _mupdf.pdf_pkcs7_distinguished_name_email_set)
  4699. c = property(_mupdf.pdf_pkcs7_distinguished_name_c_get, _mupdf.pdf_pkcs7_distinguished_name_c_set)
  4700. def __init__(self):
  4701. _mupdf.pdf_pkcs7_distinguished_name_swiginit(self, _mupdf.new_pdf_pkcs7_distinguished_name())
  4702. __swig_destroy__ = _mupdf.delete_pdf_pkcs7_distinguished_name
  4703. # Register pdf_pkcs7_distinguished_name in _mupdf:
  4704. _mupdf.pdf_pkcs7_distinguished_name_swigregister(pdf_pkcs7_distinguished_name)
  4705. PDF_SIGNATURE_ERROR_OKAY = _mupdf.PDF_SIGNATURE_ERROR_OKAY
  4706. PDF_SIGNATURE_ERROR_NO_SIGNATURES = _mupdf.PDF_SIGNATURE_ERROR_NO_SIGNATURES
  4707. PDF_SIGNATURE_ERROR_NO_CERTIFICATE = _mupdf.PDF_SIGNATURE_ERROR_NO_CERTIFICATE
  4708. PDF_SIGNATURE_ERROR_DIGEST_FAILURE = _mupdf.PDF_SIGNATURE_ERROR_DIGEST_FAILURE
  4709. PDF_SIGNATURE_ERROR_SELF_SIGNED = _mupdf.PDF_SIGNATURE_ERROR_SELF_SIGNED
  4710. PDF_SIGNATURE_ERROR_SELF_SIGNED_IN_CHAIN = _mupdf.PDF_SIGNATURE_ERROR_SELF_SIGNED_IN_CHAIN
  4711. PDF_SIGNATURE_ERROR_NOT_TRUSTED = _mupdf.PDF_SIGNATURE_ERROR_NOT_TRUSTED
  4712. PDF_SIGNATURE_ERROR_NOT_SIGNED = _mupdf.PDF_SIGNATURE_ERROR_NOT_SIGNED
  4713. PDF_SIGNATURE_ERROR_UNKNOWN = _mupdf.PDF_SIGNATURE_ERROR_UNKNOWN
  4714. class pdf_pkcs7_signer(object):
  4715. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4716. __repr__ = _swig_repr
  4717. keep = property(_mupdf.pdf_pkcs7_signer_keep_get, _mupdf.pdf_pkcs7_signer_keep_set)
  4718. drop = property(_mupdf.pdf_pkcs7_signer_drop_get, _mupdf.pdf_pkcs7_signer_drop_set)
  4719. get_signing_name = property(_mupdf.pdf_pkcs7_signer_get_signing_name_get, _mupdf.pdf_pkcs7_signer_get_signing_name_set)
  4720. max_digest_size = property(_mupdf.pdf_pkcs7_signer_max_digest_size_get, _mupdf.pdf_pkcs7_signer_max_digest_size_set)
  4721. create_digest = property(_mupdf.pdf_pkcs7_signer_create_digest_get, _mupdf.pdf_pkcs7_signer_create_digest_set)
  4722. def __init__(self):
  4723. _mupdf.pdf_pkcs7_signer_swiginit(self, _mupdf.new_pdf_pkcs7_signer())
  4724. __swig_destroy__ = _mupdf.delete_pdf_pkcs7_signer
  4725. # Register pdf_pkcs7_signer in _mupdf:
  4726. _mupdf.pdf_pkcs7_signer_swigregister(pdf_pkcs7_signer)
  4727. class pdf_pkcs7_verifier(object):
  4728. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4729. __repr__ = _swig_repr
  4730. drop = property(_mupdf.pdf_pkcs7_verifier_drop_get, _mupdf.pdf_pkcs7_verifier_drop_set)
  4731. check_certificate = property(_mupdf.pdf_pkcs7_verifier_check_certificate_get, _mupdf.pdf_pkcs7_verifier_check_certificate_set)
  4732. check_digest = property(_mupdf.pdf_pkcs7_verifier_check_digest_get, _mupdf.pdf_pkcs7_verifier_check_digest_set)
  4733. get_signatory = property(_mupdf.pdf_pkcs7_verifier_get_signatory_get, _mupdf.pdf_pkcs7_verifier_get_signatory_set)
  4734. def __init__(self):
  4735. _mupdf.pdf_pkcs7_verifier_swiginit(self, _mupdf.new_pdf_pkcs7_verifier())
  4736. __swig_destroy__ = _mupdf.delete_pdf_pkcs7_verifier
  4737. # Register pdf_pkcs7_verifier in _mupdf:
  4738. _mupdf.pdf_pkcs7_verifier_swigregister(pdf_pkcs7_verifier)
  4739. PDF_SIGNATURE_SHOW_LABELS = _mupdf.PDF_SIGNATURE_SHOW_LABELS
  4740. PDF_SIGNATURE_SHOW_DN = _mupdf.PDF_SIGNATURE_SHOW_DN
  4741. PDF_SIGNATURE_SHOW_DATE = _mupdf.PDF_SIGNATURE_SHOW_DATE
  4742. PDF_SIGNATURE_SHOW_TEXT_NAME = _mupdf.PDF_SIGNATURE_SHOW_TEXT_NAME
  4743. PDF_SIGNATURE_SHOW_GRAPHIC_NAME = _mupdf.PDF_SIGNATURE_SHOW_GRAPHIC_NAME
  4744. PDF_SIGNATURE_SHOW_LOGO = _mupdf.PDF_SIGNATURE_SHOW_LOGO
  4745. class pdf_keystroke_event(object):
  4746. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4747. __repr__ = _swig_repr
  4748. value = property(_mupdf.pdf_keystroke_event_value_get, _mupdf.pdf_keystroke_event_value_set)
  4749. change = property(_mupdf.pdf_keystroke_event_change_get, _mupdf.pdf_keystroke_event_change_set)
  4750. selStart = property(_mupdf.pdf_keystroke_event_selStart_get, _mupdf.pdf_keystroke_event_selStart_set)
  4751. selEnd = property(_mupdf.pdf_keystroke_event_selEnd_get, _mupdf.pdf_keystroke_event_selEnd_set)
  4752. willCommit = property(_mupdf.pdf_keystroke_event_willCommit_get, _mupdf.pdf_keystroke_event_willCommit_set)
  4753. newChange = property(_mupdf.pdf_keystroke_event_newChange_get, _mupdf.pdf_keystroke_event_newChange_set)
  4754. newValue = property(_mupdf.pdf_keystroke_event_newValue_get, _mupdf.pdf_keystroke_event_newValue_set)
  4755. def __init__(self):
  4756. _mupdf.pdf_keystroke_event_swiginit(self, _mupdf.new_pdf_keystroke_event())
  4757. __swig_destroy__ = _mupdf.delete_pdf_keystroke_event
  4758. # Register pdf_keystroke_event in _mupdf:
  4759. _mupdf.pdf_keystroke_event_swigregister(pdf_keystroke_event)
  4760. class pdf_doc_event(object):
  4761. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4762. __repr__ = _swig_repr
  4763. type = property(_mupdf.pdf_doc_event_type_get, _mupdf.pdf_doc_event_type_set)
  4764. def __init__(self):
  4765. _mupdf.pdf_doc_event_swiginit(self, _mupdf.new_pdf_doc_event())
  4766. __swig_destroy__ = _mupdf.delete_pdf_doc_event
  4767. # Register pdf_doc_event in _mupdf:
  4768. _mupdf.pdf_doc_event_swigregister(pdf_doc_event)
  4769. PDF_DOCUMENT_EVENT_ALERT = _mupdf.PDF_DOCUMENT_EVENT_ALERT
  4770. PDF_DOCUMENT_EVENT_PRINT = _mupdf.PDF_DOCUMENT_EVENT_PRINT
  4771. PDF_DOCUMENT_EVENT_LAUNCH_URL = _mupdf.PDF_DOCUMENT_EVENT_LAUNCH_URL
  4772. PDF_DOCUMENT_EVENT_MAIL_DOC = _mupdf.PDF_DOCUMENT_EVENT_MAIL_DOC
  4773. PDF_DOCUMENT_EVENT_SUBMIT = _mupdf.PDF_DOCUMENT_EVENT_SUBMIT
  4774. PDF_DOCUMENT_EVENT_EXEC_MENU_ITEM = _mupdf.PDF_DOCUMENT_EVENT_EXEC_MENU_ITEM
  4775. class pdf_alert_event(object):
  4776. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4777. __repr__ = _swig_repr
  4778. doc = property(_mupdf.pdf_alert_event_doc_get, _mupdf.pdf_alert_event_doc_set)
  4779. message = property(_mupdf.pdf_alert_event_message_get, _mupdf.pdf_alert_event_message_set)
  4780. icon_type = property(_mupdf.pdf_alert_event_icon_type_get, _mupdf.pdf_alert_event_icon_type_set)
  4781. button_group_type = property(_mupdf.pdf_alert_event_button_group_type_get, _mupdf.pdf_alert_event_button_group_type_set)
  4782. title = property(_mupdf.pdf_alert_event_title_get, _mupdf.pdf_alert_event_title_set)
  4783. has_check_box = property(_mupdf.pdf_alert_event_has_check_box_get, _mupdf.pdf_alert_event_has_check_box_set)
  4784. check_box_message = property(_mupdf.pdf_alert_event_check_box_message_get, _mupdf.pdf_alert_event_check_box_message_set)
  4785. initially_checked = property(_mupdf.pdf_alert_event_initially_checked_get, _mupdf.pdf_alert_event_initially_checked_set)
  4786. finally_checked = property(_mupdf.pdf_alert_event_finally_checked_get, _mupdf.pdf_alert_event_finally_checked_set)
  4787. button_pressed = property(_mupdf.pdf_alert_event_button_pressed_get, _mupdf.pdf_alert_event_button_pressed_set)
  4788. def __init__(self):
  4789. _mupdf.pdf_alert_event_swiginit(self, _mupdf.new_pdf_alert_event())
  4790. __swig_destroy__ = _mupdf.delete_pdf_alert_event
  4791. # Register pdf_alert_event in _mupdf:
  4792. _mupdf.pdf_alert_event_swigregister(pdf_alert_event)
  4793. PDF_ALERT_ICON_ERROR = _mupdf.PDF_ALERT_ICON_ERROR
  4794. PDF_ALERT_ICON_WARNING = _mupdf.PDF_ALERT_ICON_WARNING
  4795. PDF_ALERT_ICON_QUESTION = _mupdf.PDF_ALERT_ICON_QUESTION
  4796. PDF_ALERT_ICON_STATUS = _mupdf.PDF_ALERT_ICON_STATUS
  4797. PDF_ALERT_BUTTON_GROUP_OK = _mupdf.PDF_ALERT_BUTTON_GROUP_OK
  4798. PDF_ALERT_BUTTON_GROUP_OK_CANCEL = _mupdf.PDF_ALERT_BUTTON_GROUP_OK_CANCEL
  4799. PDF_ALERT_BUTTON_GROUP_YES_NO = _mupdf.PDF_ALERT_BUTTON_GROUP_YES_NO
  4800. PDF_ALERT_BUTTON_GROUP_YES_NO_CANCEL = _mupdf.PDF_ALERT_BUTTON_GROUP_YES_NO_CANCEL
  4801. PDF_ALERT_BUTTON_NONE = _mupdf.PDF_ALERT_BUTTON_NONE
  4802. PDF_ALERT_BUTTON_OK = _mupdf.PDF_ALERT_BUTTON_OK
  4803. PDF_ALERT_BUTTON_CANCEL = _mupdf.PDF_ALERT_BUTTON_CANCEL
  4804. PDF_ALERT_BUTTON_NO = _mupdf.PDF_ALERT_BUTTON_NO
  4805. PDF_ALERT_BUTTON_YES = _mupdf.PDF_ALERT_BUTTON_YES
  4806. class pdf_launch_url_event(object):
  4807. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4808. __repr__ = _swig_repr
  4809. url = property(_mupdf.pdf_launch_url_event_url_get, _mupdf.pdf_launch_url_event_url_set)
  4810. new_frame = property(_mupdf.pdf_launch_url_event_new_frame_get, _mupdf.pdf_launch_url_event_new_frame_set)
  4811. def __init__(self):
  4812. _mupdf.pdf_launch_url_event_swiginit(self, _mupdf.new_pdf_launch_url_event())
  4813. __swig_destroy__ = _mupdf.delete_pdf_launch_url_event
  4814. # Register pdf_launch_url_event in _mupdf:
  4815. _mupdf.pdf_launch_url_event_swigregister(pdf_launch_url_event)
  4816. class pdf_mail_doc_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. ask_user = property(_mupdf.pdf_mail_doc_event_ask_user_get, _mupdf.pdf_mail_doc_event_ask_user_set)
  4820. to = property(_mupdf.pdf_mail_doc_event_to_get, _mupdf.pdf_mail_doc_event_to_set)
  4821. cc = property(_mupdf.pdf_mail_doc_event_cc_get, _mupdf.pdf_mail_doc_event_cc_set)
  4822. bcc = property(_mupdf.pdf_mail_doc_event_bcc_get, _mupdf.pdf_mail_doc_event_bcc_set)
  4823. subject = property(_mupdf.pdf_mail_doc_event_subject_get, _mupdf.pdf_mail_doc_event_subject_set)
  4824. message = property(_mupdf.pdf_mail_doc_event_message_get, _mupdf.pdf_mail_doc_event_message_set)
  4825. def __init__(self):
  4826. _mupdf.pdf_mail_doc_event_swiginit(self, _mupdf.new_pdf_mail_doc_event())
  4827. __swig_destroy__ = _mupdf.delete_pdf_mail_doc_event
  4828. # Register pdf_mail_doc_event in _mupdf:
  4829. _mupdf.pdf_mail_doc_event_swigregister(pdf_mail_doc_event)
  4830. FZ_SUBSAMPLE_AVERAGE = _mupdf.FZ_SUBSAMPLE_AVERAGE
  4831. FZ_SUBSAMPLE_BICUBIC = _mupdf.FZ_SUBSAMPLE_BICUBIC
  4832. FZ_RECOMPRESS_NEVER = _mupdf.FZ_RECOMPRESS_NEVER
  4833. FZ_RECOMPRESS_SAME = _mupdf.FZ_RECOMPRESS_SAME
  4834. FZ_RECOMPRESS_LOSSLESS = _mupdf.FZ_RECOMPRESS_LOSSLESS
  4835. FZ_RECOMPRESS_JPEG = _mupdf.FZ_RECOMPRESS_JPEG
  4836. FZ_RECOMPRESS_J2K = _mupdf.FZ_RECOMPRESS_J2K
  4837. FZ_RECOMPRESS_FAX = _mupdf.FZ_RECOMPRESS_FAX
  4838. class pdf_image_rewriter_options(object):
  4839. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4840. __repr__ = _swig_repr
  4841. 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)
  4842. 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)
  4843. 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)
  4844. 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)
  4845. 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)
  4846. 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)
  4847. 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)
  4848. 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)
  4849. 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)
  4850. 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)
  4851. 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)
  4852. 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)
  4853. 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)
  4854. 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)
  4855. 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)
  4856. 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)
  4857. 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)
  4858. 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)
  4859. 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)
  4860. 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)
  4861. 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)
  4862. 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)
  4863. 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)
  4864. 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)
  4865. 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)
  4866. def __init__(self):
  4867. _mupdf.pdf_image_rewriter_options_swiginit(self, _mupdf.new_pdf_image_rewriter_options())
  4868. __swig_destroy__ = _mupdf.delete_pdf_image_rewriter_options
  4869. # Register pdf_image_rewriter_options in _mupdf:
  4870. _mupdf.pdf_image_rewriter_options_swigregister(pdf_image_rewriter_options)
  4871. PDF_CLEAN_STRUCTURE_DROP = _mupdf.PDF_CLEAN_STRUCTURE_DROP
  4872. PDF_CLEAN_STRUCTURE_KEEP = _mupdf.PDF_CLEAN_STRUCTURE_KEEP
  4873. class pdf_clean_options(object):
  4874. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4875. __repr__ = _swig_repr
  4876. write = property(_mupdf.pdf_clean_options_write_get, _mupdf.pdf_clean_options_write_set)
  4877. image = property(_mupdf.pdf_clean_options_image_get, _mupdf.pdf_clean_options_image_set)
  4878. subset_fonts = property(_mupdf.pdf_clean_options_subset_fonts_get, _mupdf.pdf_clean_options_subset_fonts_set)
  4879. structure = property(_mupdf.pdf_clean_options_structure_get, _mupdf.pdf_clean_options_structure_set)
  4880. def __init__(self):
  4881. _mupdf.pdf_clean_options_swiginit(self, _mupdf.new_pdf_clean_options())
  4882. __swig_destroy__ = _mupdf.delete_pdf_clean_options
  4883. # Register pdf_clean_options in _mupdf:
  4884. _mupdf.pdf_clean_options_swigregister(pdf_clean_options)
  4885. class pdf_recolor_options(object):
  4886. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4887. __repr__ = _swig_repr
  4888. num_comp = property(_mupdf.pdf_recolor_options_num_comp_get, _mupdf.pdf_recolor_options_num_comp_set)
  4889. def __init__(self):
  4890. _mupdf.pdf_recolor_options_swiginit(self, _mupdf.new_pdf_recolor_options())
  4891. __swig_destroy__ = _mupdf.delete_pdf_recolor_options
  4892. # Register pdf_recolor_options in _mupdf:
  4893. _mupdf.pdf_recolor_options_swigregister(pdf_recolor_options)
  4894. PDF_NOT_ZUGFERD = _mupdf.PDF_NOT_ZUGFERD
  4895. PDF_ZUGFERD_COMFORT = _mupdf.PDF_ZUGFERD_COMFORT
  4896. PDF_ZUGFERD_BASIC = _mupdf.PDF_ZUGFERD_BASIC
  4897. PDF_ZUGFERD_EXTENDED = _mupdf.PDF_ZUGFERD_EXTENDED
  4898. PDF_ZUGFERD_BASIC_WL = _mupdf.PDF_ZUGFERD_BASIC_WL
  4899. PDF_ZUGFERD_MINIMUM = _mupdf.PDF_ZUGFERD_MINIMUM
  4900. PDF_ZUGFERD_XRECHNUNG = _mupdf.PDF_ZUGFERD_XRECHNUNG
  4901. PDF_ZUGFERD_UNKNOWN = _mupdf.PDF_ZUGFERD_UNKNOWN
  4902. class fz_search_page2_hit(object):
  4903. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4904. __repr__ = _swig_repr
  4905. quad = property(_mupdf.fz_search_page2_hit_quad_get, _mupdf.fz_search_page2_hit_quad_set)
  4906. mark = property(_mupdf.fz_search_page2_hit_mark_get, _mupdf.fz_search_page2_hit_mark_set)
  4907. def __init__(self):
  4908. _mupdf.fz_search_page2_hit_swiginit(self, _mupdf.new_fz_search_page2_hit())
  4909. __swig_destroy__ = _mupdf.delete_fz_search_page2_hit
  4910. # Register fz_search_page2_hit in _mupdf:
  4911. _mupdf.fz_search_page2_hit_swigregister(fz_search_page2_hit)
  4912. class fz_install_load_system_font_funcs_args(object):
  4913. r"""
  4914. Extra struct containing fz_install_load_system_font_funcs()'s args,
  4915. which we wrap with virtual_fnptrs set to allow use from Python/C# via
  4916. Swig Directors.
  4917. """
  4918. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4919. __repr__ = _swig_repr
  4920. f = property(_mupdf.fz_install_load_system_font_funcs_args_f_get, _mupdf.fz_install_load_system_font_funcs_args_f_set)
  4921. 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)
  4922. 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)
  4923. def __init__(self):
  4924. _mupdf.fz_install_load_system_font_funcs_args_swiginit(self, _mupdf.new_fz_install_load_system_font_funcs_args())
  4925. __swig_destroy__ = _mupdf.delete_fz_install_load_system_font_funcs_args
  4926. # Register fz_install_load_system_font_funcs_args in _mupdf:
  4927. _mupdf.fz_install_load_system_font_funcs_args_swigregister(fz_install_load_system_font_funcs_args)
  4928. class fz_font_ucs_gid(object):
  4929. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  4930. __repr__ = _swig_repr
  4931. ucs = property(_mupdf.fz_font_ucs_gid_ucs_get, _mupdf.fz_font_ucs_gid_ucs_set)
  4932. gid = property(_mupdf.fz_font_ucs_gid_gid_get, _mupdf.fz_font_ucs_gid_gid_set)
  4933. def __init__(self):
  4934. _mupdf.fz_font_ucs_gid_swiginit(self, _mupdf.new_fz_font_ucs_gid())
  4935. __swig_destroy__ = _mupdf.delete_fz_font_ucs_gid
  4936. # Register fz_font_ucs_gid in _mupdf:
  4937. _mupdf.fz_font_ucs_gid_swigregister(fz_font_ucs_gid)
  4938. def ll_fz_aa_level():
  4939. r"""
  4940. Low-level wrapper for `::fz_aa_level()`.
  4941. Get the number of bits of antialiasing we are
  4942. using (for graphics). Between 0 and 8.
  4943. """
  4944. return _mupdf.ll_fz_aa_level()
  4945. def ll_fz_abs(f):
  4946. r"""
  4947. Low-level wrapper for `::fz_abs()`.
  4948. Some standard math functions, done as static inlines for speed.
  4949. People with compilers that do not adequately implement inline
  4950. may like to reimplement these using macros.
  4951. """
  4952. return _mupdf.ll_fz_abs(f)
  4953. def ll_fz_absi(i):
  4954. r"""Low-level wrapper for `::fz_absi()`."""
  4955. return _mupdf.ll_fz_absi(i)
  4956. def ll_fz_add_layout_char(block, x, w, p):
  4957. r"""
  4958. Low-level wrapper for `::fz_add_layout_char()`.
  4959. Add a new char to the line at the end of the layout block.
  4960. """
  4961. return _mupdf.ll_fz_add_layout_char(block, x, w, p)
  4962. def ll_fz_add_layout_line(block, x, y, h, p):
  4963. r"""
  4964. Low-level wrapper for `::fz_add_layout_line()`.
  4965. Add a new line to the end of the layout block.
  4966. """
  4967. return _mupdf.ll_fz_add_layout_line(block, x, y, h, p)
  4968. def ll_fz_add_separation(sep, name, cs, cs_channel):
  4969. r"""
  4970. Low-level wrapper for `::fz_add_separation()`.
  4971. Add a separation (null terminated name, colorspace)
  4972. """
  4973. return _mupdf.ll_fz_add_separation(sep, name, cs, cs_channel)
  4974. def ll_fz_add_separation_equivalents(sep, rgba, cmyk, name):
  4975. r"""
  4976. Low-level wrapper for `::fz_add_separation_equivalents()`.
  4977. Add a separation with equivalents (null terminated name,
  4978. colorspace)
  4979. (old, deprecated)
  4980. """
  4981. return _mupdf.ll_fz_add_separation_equivalents(sep, rgba, cmyk, name)
  4982. def ll_fz_adjust_rect_for_stroke(rect, stroke, ctm):
  4983. r"""
  4984. Low-level wrapper for `::fz_adjust_rect_for_stroke()`.
  4985. Given a rectangle (assumed to be the bounding box for a path),
  4986. expand it to allow for the expansion of the bbox that would be
  4987. seen by stroking the path with the given stroke state and
  4988. transform.
  4989. """
  4990. return _mupdf.ll_fz_adjust_rect_for_stroke(rect, stroke, ctm)
  4991. def ll_fz_advance_glyph(font, glyph, wmode):
  4992. r"""
  4993. Low-level wrapper for `::fz_advance_glyph()`.
  4994. Return the advance for a given glyph.
  4995. font: The font to look for the glyph in.
  4996. glyph: The glyph to find the advance for.
  4997. wmode: 1 for vertical mode, 0 for horizontal.
  4998. Returns the advance for the glyph.
  4999. """
  5000. return _mupdf.ll_fz_advance_glyph(font, glyph, wmode)
  5001. def ll_fz_aes_crypt_cbc(ctx, mode, length, iv, input, output):
  5002. r"""
  5003. Low-level wrapper for `::fz_aes_crypt_cbc()`.
  5004. AES block processing. Encrypts or Decrypts (according to mode,
  5005. which must match what was initially set up) length bytes (which
  5006. must be a multiple of 16), using (and modifying) the insertion
  5007. vector iv, reading from input, and writing to output.
  5008. Never throws an exception.
  5009. """
  5010. return _mupdf.ll_fz_aes_crypt_cbc(ctx, mode, length, iv, input, output)
  5011. def ll_fz_aes_setkey_dec(ctx, key, keysize):
  5012. r"""
  5013. Low-level wrapper for `::fz_aes_setkey_dec()`.
  5014. AES decryption initialization. Fills in the supplied context
  5015. and prepares for decryption using the given key.
  5016. Returns non-zero for error (key size other than 128/192/256).
  5017. Never throws an exception.
  5018. """
  5019. return _mupdf.ll_fz_aes_setkey_dec(ctx, key, keysize)
  5020. def ll_fz_aes_setkey_enc(ctx, key, keysize):
  5021. r"""
  5022. Low-level wrapper for `::fz_aes_setkey_enc()`.
  5023. AES encryption initialization. Fills in the supplied context
  5024. and prepares for encryption using the given key.
  5025. Returns non-zero for error (key size other than 128/192/256).
  5026. Never throws an exception.
  5027. """
  5028. return _mupdf.ll_fz_aes_setkey_enc(ctx, key, keysize)
  5029. def ll_fz_alpha_from_gray(gray):
  5030. r"""Low-level wrapper for `::fz_alpha_from_gray()`."""
  5031. return _mupdf.ll_fz_alpha_from_gray(gray)
  5032. def ll_fz_append_base64(out, data, size, newline):
  5033. r"""
  5034. Low-level wrapper for `::fz_append_base64()`.
  5035. Write a base64 encoded data block, optionally with periodic newlines.
  5036. """
  5037. return _mupdf.ll_fz_append_base64(out, data, size, newline)
  5038. def ll_fz_append_base64_buffer(out, data, newline):
  5039. r"""
  5040. Low-level wrapper for `::fz_append_base64_buffer()`.
  5041. Append a base64 encoded fz_buffer, optionally with periodic newlines.
  5042. """
  5043. return _mupdf.ll_fz_append_base64_buffer(out, data, newline)
  5044. def ll_fz_append_bits(buf, value, count):
  5045. r"""Low-level wrapper for `::fz_append_bits()`."""
  5046. return _mupdf.ll_fz_append_bits(buf, value, count)
  5047. def ll_fz_append_bits_pad(buf):
  5048. r"""Low-level wrapper for `::fz_append_bits_pad()`."""
  5049. return _mupdf.ll_fz_append_bits_pad(buf)
  5050. def ll_fz_append_buffer(destination, source):
  5051. r"""
  5052. Low-level wrapper for `::fz_append_buffer()`.
  5053. Append the contents of the source buffer onto the end of the
  5054. destination buffer, extending automatically as required.
  5055. Ownership of buffers does not change.
  5056. """
  5057. return _mupdf.ll_fz_append_buffer(destination, source)
  5058. def ll_fz_append_byte(buf, c):
  5059. r"""Low-level wrapper for `::fz_append_byte()`."""
  5060. return _mupdf.ll_fz_append_byte(buf, c)
  5061. def ll_fz_append_data(buf, data, len):
  5062. r"""
  5063. Low-level wrapper for `::fz_append_data()`.
  5064. fz_append_*: Append data to a buffer.
  5065. The buffer will automatically grow as required.
  5066. """
  5067. return _mupdf.ll_fz_append_data(buf, data, len)
  5068. def ll_fz_append_image_as_data_uri(out, image):
  5069. r"""Low-level wrapper for `::fz_append_image_as_data_uri()`."""
  5070. return _mupdf.ll_fz_append_image_as_data_uri(out, image)
  5071. def ll_fz_append_int16_be(buf, x):
  5072. r"""Low-level wrapper for `::fz_append_int16_be()`."""
  5073. return _mupdf.ll_fz_append_int16_be(buf, x)
  5074. def ll_fz_append_int16_le(buf, x):
  5075. r"""Low-level wrapper for `::fz_append_int16_le()`."""
  5076. return _mupdf.ll_fz_append_int16_le(buf, x)
  5077. def ll_fz_append_int32_be(buf, x):
  5078. r"""Low-level wrapper for `::fz_append_int32_be()`."""
  5079. return _mupdf.ll_fz_append_int32_be(buf, x)
  5080. def ll_fz_append_int32_le(buf, x):
  5081. r"""Low-level wrapper for `::fz_append_int32_le()`."""
  5082. return _mupdf.ll_fz_append_int32_le(buf, x)
  5083. def ll_fz_append_json(buf, value):
  5084. r"""Low-level wrapper for `::fz_append_json()`."""
  5085. return _mupdf.ll_fz_append_json(buf, value)
  5086. def ll_fz_append_pdf_string(buffer, text):
  5087. r"""
  5088. Low-level wrapper for `::fz_append_pdf_string()`.
  5089. fz_append_pdf_string: Append a string with PDF syntax quotes and
  5090. escapes.
  5091. The buffer will automatically grow as required.
  5092. """
  5093. return _mupdf.ll_fz_append_pdf_string(buffer, text)
  5094. def ll_fz_append_pixmap_as_data_uri(out, pixmap):
  5095. r"""Low-level wrapper for `::fz_append_pixmap_as_data_uri()`."""
  5096. return _mupdf.ll_fz_append_pixmap_as_data_uri(out, pixmap)
  5097. def ll_fz_append_rune(buf, c):
  5098. r"""Low-level wrapper for `::fz_append_rune()`."""
  5099. return _mupdf.ll_fz_append_rune(buf, c)
  5100. def ll_fz_append_string(buf, data):
  5101. r"""Low-level wrapper for `::fz_append_string()`."""
  5102. return _mupdf.ll_fz_append_string(buf, data)
  5103. def ll_fz_arc4_encrypt(state, dest, src, len):
  5104. r"""
  5105. Low-level wrapper for `::fz_arc4_encrypt()`.
  5106. RC4 block encrypt operation; encrypt src into dst (both of
  5107. length len) updating the RC4 state as we go.
  5108. Never throws an exception.
  5109. """
  5110. return _mupdf.ll_fz_arc4_encrypt(state, dest, src, len)
  5111. def ll_fz_arc4_final(state):
  5112. r"""
  5113. Low-level wrapper for `::fz_arc4_final()`.
  5114. RC4 finalization. Zero the context.
  5115. Never throws an exception.
  5116. """
  5117. return _mupdf.ll_fz_arc4_final(state)
  5118. def ll_fz_arc4_init(state, key, len):
  5119. r"""
  5120. Low-level wrapper for `::fz_arc4_init()`.
  5121. RC4 initialization. Begins an RC4 operation, writing a new
  5122. context.
  5123. Never throws an exception.
  5124. """
  5125. return _mupdf.ll_fz_arc4_init(state, key, len)
  5126. def ll_fz_archive_format(arch):
  5127. r"""
  5128. Low-level wrapper for `::fz_archive_format()`.
  5129. Return a pointer to a string describing the format of the
  5130. archive.
  5131. The lifetime of the string is unspecified (in current
  5132. implementations the string will persist until the archive
  5133. is closed, but this is not guaranteed).
  5134. """
  5135. return _mupdf.ll_fz_archive_format(arch)
  5136. def ll_fz_atof(s):
  5137. r"""
  5138. Low-level wrapper for `::fz_atof()`.
  5139. Range checking atof
  5140. """
  5141. return _mupdf.ll_fz_atof(s)
  5142. def ll_fz_atoi(s):
  5143. r"""
  5144. Low-level wrapper for `::fz_atoi()`.
  5145. atoi that copes with NULL
  5146. """
  5147. return _mupdf.ll_fz_atoi(s)
  5148. def ll_fz_atoi64(s):
  5149. r"""
  5150. Low-level wrapper for `::fz_atoi64()`.
  5151. 64bit atoi that copes with NULL
  5152. """
  5153. return _mupdf.ll_fz_atoi64(s)
  5154. def ll_fz_atoz(s):
  5155. r"""
  5156. Low-level wrapper for `::fz_atoz()`.
  5157. size_t atoi that copes with NULL.
  5158. NOTE: limited to 63bits. Negative numbers
  5159. are returned as 0.
  5160. """
  5161. return _mupdf.ll_fz_atoz(s)
  5162. def ll_fz_authenticate_password(doc, password):
  5163. r"""
  5164. Low-level wrapper for `::fz_authenticate_password()`.
  5165. Test if the given password can decrypt the document.
  5166. password: The password string to be checked. Some document
  5167. specifications do not specify any particular text encoding, so
  5168. neither do we.
  5169. Returns 0 for failure to authenticate, non-zero for success.
  5170. For PDF documents, further information can be given by examining
  5171. the bits in the return code.
  5172. Bit 0 => No password required
  5173. Bit 1 => User password authenticated
  5174. Bit 2 => Owner password authenticated
  5175. """
  5176. return _mupdf.ll_fz_authenticate_password(doc, password)
  5177. def ll_fz_autowarp_pixmap(src, points):
  5178. r"""Low-level wrapper for `::fz_autowarp_pixmap()`."""
  5179. return _mupdf.ll_fz_autowarp_pixmap(src, points)
  5180. def ll_fz_available(stm, max):
  5181. r"""
  5182. Low-level wrapper for `::fz_available()`.
  5183. Ask how many bytes are available immediately from
  5184. a given stream.
  5185. stm: The stream to read from.
  5186. max: A hint for the underlying stream; the maximum number of
  5187. bytes that we are sure we will want to read. If you do not know
  5188. this number, give 1.
  5189. Returns the number of bytes immediately available between the
  5190. read and write pointers. This number is guaranteed only to be 0
  5191. if we have hit EOF. The number of bytes returned here need have
  5192. no relation to max (could be larger, could be smaller).
  5193. """
  5194. return _mupdf.ll_fz_available(stm, max)
  5195. def ll_fz_barcode_type_from_string(str):
  5196. r"""
  5197. Low-level wrapper for `::fz_barcode_type_from_string()`.
  5198. Helper function to search the above list (case insensitively)
  5199. for an exact match. Returns FZ_BARCODE_NONE if no match found.
  5200. """
  5201. return _mupdf.ll_fz_barcode_type_from_string(str)
  5202. def ll_fz_base_colorspace(cs):
  5203. r"""
  5204. Low-level wrapper for `::fz_base_colorspace()`.
  5205. Get the 'base' colorspace for a colorspace.
  5206. For indexed colorspaces, this is the colorspace the index
  5207. decodes into. For all other colorspaces, it is the colorspace
  5208. itself.
  5209. The returned colorspace is 'borrowed' (i.e. no additional
  5210. references are taken or dropped).
  5211. """
  5212. return _mupdf.ll_fz_base_colorspace(cs)
  5213. def ll_fz_basename(path):
  5214. r"""
  5215. Low-level wrapper for `::fz_basename()`.
  5216. Find the filename component in a path.
  5217. """
  5218. return _mupdf.ll_fz_basename(path)
  5219. def ll_fz_begin_group(dev, area, cs, isolated, knockout, blendmode, alpha):
  5220. r"""Low-level wrapper for `::fz_begin_group()`."""
  5221. return _mupdf.ll_fz_begin_group(dev, area, cs, isolated, knockout, blendmode, alpha)
  5222. def ll_fz_begin_layer(dev, layer_name):
  5223. r"""Low-level wrapper for `::fz_begin_layer()`."""
  5224. return _mupdf.ll_fz_begin_layer(dev, layer_name)
  5225. def ll_fz_begin_mask(dev, area, luminosity, colorspace, bc, color_params):
  5226. r"""Low-level wrapper for `::fz_begin_mask()`."""
  5227. return _mupdf.ll_fz_begin_mask(dev, area, luminosity, colorspace, bc, color_params)
  5228. def ll_fz_begin_metatext(dev, meta, text):
  5229. r"""Low-level wrapper for `::fz_begin_metatext()`."""
  5230. return _mupdf.ll_fz_begin_metatext(dev, meta, text)
  5231. def ll_fz_begin_page(wri, mediabox):
  5232. r"""
  5233. Low-level wrapper for `::fz_begin_page()`.
  5234. Called to start the process of writing a page to
  5235. a document.
  5236. mediabox: page size rectangle in points.
  5237. Returns a borrowed fz_device to write page contents to. This
  5238. should be kept if required, and only dropped if it was kept.
  5239. """
  5240. return _mupdf.ll_fz_begin_page(wri, mediabox)
  5241. def ll_fz_begin_structure(dev, standard, raw, idx):
  5242. r"""Low-level wrapper for `::fz_begin_structure()`."""
  5243. return _mupdf.ll_fz_begin_structure(dev, standard, raw, idx)
  5244. def ll_fz_begin_tile(dev, area, view, xstep, ystep, ctm):
  5245. r"""Low-level wrapper for `::fz_begin_tile()`."""
  5246. return _mupdf.ll_fz_begin_tile(dev, area, view, xstep, ystep, ctm)
  5247. def ll_fz_begin_tile_id(dev, area, view, xstep, ystep, ctm, id):
  5248. r"""Low-level wrapper for `::fz_begin_tile_id()`."""
  5249. return _mupdf.ll_fz_begin_tile_id(dev, area, view, xstep, ystep, ctm, id)
  5250. def ll_fz_begin_tile_tid(dev, area, view, xstep, ystep, ctm, id, doc_id):
  5251. r"""Low-level wrapper for `::fz_begin_tile_tid()`."""
  5252. return _mupdf.ll_fz_begin_tile_tid(dev, area, view, xstep, ystep, ctm, id, doc_id)
  5253. def ll_fz_bidi_fragment_text(text, textlen, baseDir, callback, arg, flags):
  5254. r"""
  5255. Low-level wrapper for `::fz_bidi_fragment_text()`.
  5256. This function has out-params. Python/C# wrappers look like:
  5257. `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
  5258. Partitions the given Unicode sequence into one or more
  5259. unidirectional fragments and invokes the given callback
  5260. function for each fragment.
  5261. For example, if directionality of text is:
  5262. 0123456789
  5263. rrlllrrrrr,
  5264. we'll invoke callback with:
  5265. &text[0], length == 2
  5266. &text[2], length == 3
  5267. &text[5], length == 5
  5268. :type text: int, in
  5269. :param text: start of Unicode sequence
  5270. :type textlen: int, in
  5271. :param textlen: number of Unicodes to analyse
  5272. :type baseDir: int, in
  5273. :param baseDir: direction of paragraph (specify FZ_BIDI_NEUTRAL to force auto-detection)
  5274. :type callback: ::fz_bidi_fragment_fn, in
  5275. :param callback: function to be called for each fragment
  5276. :type arg: void, in
  5277. :param arg: data to be passed to the callback function
  5278. :type flags: int, in
  5279. :param flags: flags to control operation (see fz_bidi_flags above)
  5280. """
  5281. return _mupdf.ll_fz_bidi_fragment_text(text, textlen, baseDir, callback, arg, flags)
  5282. def ll_fz_bitmap_details(bitmap, w, h, n, stride):
  5283. r"""
  5284. Low-level wrapper for `::fz_bitmap_details()`.
  5285. This function has out-params. Python/C# wrappers look like:
  5286. `ll_fz_bitmap_details(::fz_bitmap *bitmap)` => `(int w, int h, int n, int stride)`
  5287. Retrieve details of a given bitmap.
  5288. bitmap: The bitmap to query.
  5289. w: Pointer to storage to retrieve width (or NULL).
  5290. h: Pointer to storage to retrieve height (or NULL).
  5291. n: Pointer to storage to retrieve number of color components (or
  5292. NULL).
  5293. stride: Pointer to storage to retrieve bitmap stride (or NULL).
  5294. """
  5295. return _mupdf.ll_fz_bitmap_details(bitmap, w, h, n, stride)
  5296. def ll_fz_blendmode_name(blendmode):
  5297. r"""
  5298. Low-level wrapper for `::fz_blendmode_name()`.
  5299. Map from enumeration to blend mode string.
  5300. The string is static, with arbitrary lifespan.
  5301. """
  5302. return _mupdf.ll_fz_blendmode_name(blendmode)
  5303. def ll_fz_bound_display_list(list):
  5304. r"""
  5305. Low-level wrapper for `::fz_bound_display_list()`.
  5306. Return the bounding box of the page recorded in a display list.
  5307. """
  5308. return _mupdf.ll_fz_bound_display_list(list)
  5309. def ll_fz_bound_glyph(font, gid, trm):
  5310. r"""
  5311. Low-level wrapper for `::fz_bound_glyph()`.
  5312. Return a bbox for a given glyph in a font.
  5313. font: The font to look for the glyph in.
  5314. gid: The glyph to bound.
  5315. trm: The matrix to apply to the glyph before bounding.
  5316. Returns rectangle by value containing the bounds of the given
  5317. glyph.
  5318. """
  5319. return _mupdf.ll_fz_bound_glyph(font, gid, trm)
  5320. def ll_fz_bound_page(page):
  5321. r"""
  5322. Low-level wrapper for `::fz_bound_page()`.
  5323. Determine the size of a page at 72 dpi.
  5324. """
  5325. return _mupdf.ll_fz_bound_page(page)
  5326. def ll_fz_bound_page_box(page, box):
  5327. r"""Low-level wrapper for `::fz_bound_page_box()`."""
  5328. return _mupdf.ll_fz_bound_page_box(page, box)
  5329. def ll_fz_bound_path(path, stroke, ctm):
  5330. r"""
  5331. Low-level wrapper for `::fz_bound_path()`.
  5332. Return a bounding rectangle for a path.
  5333. path: The path to bound.
  5334. stroke: If NULL, the bounding rectangle given is for
  5335. the filled path. If non-NULL the bounding rectangle
  5336. given is for the path stroked with the given attributes.
  5337. ctm: The matrix to apply to the path during stroking.
  5338. r: Pointer to a fz_rect which will be used to hold
  5339. the result.
  5340. Returns r, updated to contain the bounding rectangle.
  5341. """
  5342. return _mupdf.ll_fz_bound_path(path, stroke, ctm)
  5343. def ll_fz_bound_shade(shade, ctm):
  5344. r"""
  5345. Low-level wrapper for `::fz_bound_shade()`.
  5346. Bound a given shading.
  5347. shade: The shade to bound.
  5348. ctm: The transform to apply to the shade before bounding.
  5349. r: Pointer to storage to put the bounds in.
  5350. Returns r, updated to contain the bounds for the shading.
  5351. """
  5352. return _mupdf.ll_fz_bound_shade(shade, ctm)
  5353. def ll_fz_bound_text(text, stroke, ctm):
  5354. r"""
  5355. Low-level wrapper for `::fz_bound_text()`.
  5356. Find the bounds of a given text object.
  5357. text: The text object to find the bounds of.
  5358. stroke: Pointer to the stroke attributes (for stroked
  5359. text), or NULL (for filled text).
  5360. ctm: The matrix in use.
  5361. r: pointer to storage for the bounds.
  5362. Returns a pointer to r, which is updated to contain the
  5363. bounding box for the text object.
  5364. """
  5365. return _mupdf.ll_fz_bound_text(text, stroke, ctm)
  5366. def ll_fz_box_type_from_string(name):
  5367. r"""Low-level wrapper for `::fz_box_type_from_string()`."""
  5368. return _mupdf.ll_fz_box_type_from_string(name)
  5369. def ll_fz_brotli_bound(size):
  5370. r"""
  5371. Low-level wrapper for `::fz_brotli_bound()`.
  5372. Returns the upper bound on the
  5373. size of brotli compressed data of length size.
  5374. """
  5375. return _mupdf.ll_fz_brotli_bound(size)
  5376. def ll_fz_buffer_extract(buf, data):
  5377. r"""
  5378. Low-level wrapper for `::fz_buffer_extract()`.
  5379. This function has out-params. Python/C# wrappers look like:
  5380. `ll_fz_buffer_extract(::fz_buffer *buf)` => `(size_t, unsigned char *data)`
  5381. Take ownership of buffer contents.
  5382. Performs the same task as fz_buffer_storage, but ownership of
  5383. the data buffer returns with this call. The buffer is left
  5384. empty.
  5385. Note: Bad things may happen if this is called on a buffer with
  5386. multiple references that is being used from multiple threads.
  5387. data: Pointer to place to retrieve data pointer.
  5388. Returns length of stream.
  5389. """
  5390. return _mupdf.ll_fz_buffer_extract(buf, data)
  5391. def ll_fz_buffer_storage(buf, datap):
  5392. r"""
  5393. Low-level wrapper for `::fz_buffer_storage()`.
  5394. This function has out-params. Python/C# wrappers look like:
  5395. `ll_fz_buffer_storage(::fz_buffer *buf)` => `(size_t, unsigned char *datap)`
  5396. Retrieve internal memory of buffer.
  5397. datap: Output parameter that will be pointed to the data.
  5398. Returns the current size of the data in bytes.
  5399. """
  5400. return _mupdf.ll_fz_buffer_storage(buf, datap)
  5401. def ll_fz_calculate_font_ascender_descender(font):
  5402. r"""
  5403. Low-level wrapper for `::fz_calculate_font_ascender_descender()`.
  5404. Ensure that a font has its ascender/descender values calculated
  5405. from the actual bbox of the glyphs.
  5406. Note, that we combine the declared values from the font (or the
  5407. default values if those are not present) with the actual bbox to
  5408. get the final result. So this can only cause ascender/descender
  5409. to move further apart!
  5410. """
  5411. return _mupdf.ll_fz_calculate_font_ascender_descender(font)
  5412. def ll_fz_calloc(count, size):
  5413. r"""
  5414. Low-level wrapper for `::fz_calloc()`.
  5415. Allocate array of memory of count entries of size bytes.
  5416. Clears the memory to zero.
  5417. Throws exception in the event of failure to allocate.
  5418. """
  5419. return _mupdf.ll_fz_calloc(count, size)
  5420. def ll_fz_calloc_no_throw(count, size):
  5421. r"""
  5422. Low-level wrapper for `::fz_calloc_no_throw()`.
  5423. fz_calloc equivalent that returns NULL rather than throwing
  5424. exceptions.
  5425. """
  5426. return _mupdf.ll_fz_calloc_no_throw(count, size)
  5427. def ll_fz_caught():
  5428. r"""
  5429. Low-level wrapper for `::fz_caught()`.
  5430. Within an fz_catch() block, retrieve the error code for
  5431. the current exception.
  5432. This assumes no intervening use of fz_try/fz_catch.
  5433. """
  5434. return _mupdf.ll_fz_caught()
  5435. def ll_fz_caught_errno():
  5436. r"""Low-level wrapper for `::fz_caught_errno()`."""
  5437. return _mupdf.ll_fz_caught_errno()
  5438. def ll_fz_caught_message():
  5439. r"""
  5440. Low-level wrapper for `::fz_caught_message()`.
  5441. Within an fz_catch() block, retrieve the formatted message
  5442. string for the current exception.
  5443. This assumes no intervening use of fz_try/fz_catch.
  5444. """
  5445. return _mupdf.ll_fz_caught_message()
  5446. def ll_fz_chartorune(rune, str):
  5447. r"""
  5448. Low-level wrapper for `::fz_chartorune()`.
  5449. This function has out-params. Python/C# wrappers look like:
  5450. `ll_fz_chartorune(const char *str)` => `(int, int rune)`
  5451. UTF8 decode a single rune from a sequence of chars.
  5452. rune: Pointer to an int to assign the decoded 'rune' to.
  5453. (0xFFFD on error).
  5454. str: Pointer to a UTF8 encoded string.
  5455. Returns the number of bytes consumed.
  5456. """
  5457. return _mupdf.ll_fz_chartorune(rune, str)
  5458. def ll_fz_chartorunen(rune, str, n):
  5459. r"""
  5460. Low-level wrapper for `::fz_chartorunen()`.
  5461. This function has out-params. Python/C# wrappers look like:
  5462. `ll_fz_chartorunen(const char *str, size_t n)` => `(int, int rune)`
  5463. UTF8 decode a single rune from a sequence of chars
  5464. of given length.
  5465. rune: Pointer to an int to assign the decoded 'rune' to.
  5466. (0xFFFD on error).
  5467. str: Pointer to a UTF8 encoded string.
  5468. n: The number of bytes available at str.
  5469. Returns the number of bytes consumed.
  5470. """
  5471. return _mupdf.ll_fz_chartorunen(rune, str, n)
  5472. def ll_fz_clamp(x, min, max):
  5473. r"""Low-level wrapper for `::fz_clamp()`."""
  5474. return _mupdf.ll_fz_clamp(x, min, max)
  5475. def ll_fz_clamp64(x, min, max):
  5476. r"""Low-level wrapper for `::fz_clamp64()`."""
  5477. return _mupdf.ll_fz_clamp64(x, min, max)
  5478. def ll_fz_clamp_color(cs, _in, out):
  5479. r"""
  5480. Low-level wrapper for `::fz_clamp_color()`.
  5481. This function has out-params. Python/C# wrappers look like:
  5482. `ll_fz_clamp_color(::fz_colorspace *cs, const float *in)` => float out
  5483. Clamp the samples in a color to the correct ranges for a
  5484. given colorspace.
  5485. """
  5486. return _mupdf.ll_fz_clamp_color(cs, _in, out)
  5487. def ll_fz_clamp_location(doc, loc):
  5488. r"""
  5489. Low-level wrapper for `::fz_clamp_location()`.
  5490. Clamps a location into valid chapter/page range. (First clamps
  5491. the chapter into range, then the page into range).
  5492. """
  5493. return _mupdf.ll_fz_clamp_location(doc, loc)
  5494. def ll_fz_clampd(x, min, max):
  5495. r"""Low-level wrapper for `::fz_clampd()`."""
  5496. return _mupdf.ll_fz_clampd(x, min, max)
  5497. def ll_fz_clampi(x, min, max):
  5498. r"""Low-level wrapper for `::fz_clampi()`."""
  5499. return _mupdf.ll_fz_clampi(x, min, max)
  5500. def ll_fz_clampp(x, min, max):
  5501. r"""Low-level wrapper for `::fz_clampp()`."""
  5502. return _mupdf.ll_fz_clampp(x, min, max)
  5503. def ll_fz_cleanname(name):
  5504. r"""
  5505. Low-level wrapper for `::fz_cleanname()`.
  5506. rewrite path to the shortest string that names the same path.
  5507. Eliminates multiple and trailing slashes, interprets "." and
  5508. "..". Overwrites the string in place.
  5509. """
  5510. return _mupdf.ll_fz_cleanname(name)
  5511. def ll_fz_cleanname_strdup(name):
  5512. r"""
  5513. Low-level wrapper for `::fz_cleanname_strdup()`.
  5514. rewrite path to the shortest string that names the same path.
  5515. Eliminates multiple and trailing slashes, interprets "." and
  5516. "..". Allocates a new string that the caller must free.
  5517. """
  5518. return _mupdf.ll_fz_cleanname_strdup(name)
  5519. def ll_fz_clear_bitmap(bit):
  5520. r"""
  5521. Low-level wrapper for `::fz_clear_bitmap()`.
  5522. Set the entire bitmap to 0.
  5523. Never throws exceptions.
  5524. """
  5525. return _mupdf.ll_fz_clear_bitmap(bit)
  5526. def ll_fz_clear_buffer(buf):
  5527. r"""
  5528. Low-level wrapper for `::fz_clear_buffer()`.
  5529. Empties the buffer. Storage is not freed, but is held ready
  5530. to be reused as the buffer is refilled.
  5531. Never throws exceptions.
  5532. """
  5533. return _mupdf.ll_fz_clear_buffer(buf)
  5534. def ll_fz_clear_pixmap(pix):
  5535. r"""
  5536. Low-level wrapper for `::fz_clear_pixmap()`.
  5537. Sets all components (including alpha) of
  5538. all pixels in a pixmap to 0.
  5539. pix: The pixmap to clear.
  5540. """
  5541. return _mupdf.ll_fz_clear_pixmap(pix)
  5542. def ll_fz_clear_pixmap_rect_with_value(pix, value, r):
  5543. r"""
  5544. Low-level wrapper for `::fz_clear_pixmap_rect_with_value()`.
  5545. Clears a subrect of a pixmap with the given value.
  5546. pix: The pixmap to clear.
  5547. value: Values in the range 0 to 255 are valid. Each component
  5548. sample for each pixel in the pixmap will be set to this value,
  5549. while alpha will always be set to 255 (non-transparent).
  5550. r: the rectangle.
  5551. """
  5552. return _mupdf.ll_fz_clear_pixmap_rect_with_value(pix, value, r)
  5553. def ll_fz_clear_pixmap_with_value(pix, value):
  5554. r"""
  5555. Low-level wrapper for `::fz_clear_pixmap_with_value()`.
  5556. Clears a pixmap with the given value.
  5557. pix: The pixmap to clear.
  5558. value: Values in the range 0 to 255 are valid. Each component
  5559. sample for each pixel in the pixmap will be set to this value,
  5560. while alpha will always be set to 255 (non-transparent).
  5561. This function is horrible, and should be removed from the
  5562. API and replaced with a less magic one.
  5563. """
  5564. return _mupdf.ll_fz_clear_pixmap_with_value(pix, value)
  5565. def ll_fz_clip_image_mask(dev, image, ctm, scissor):
  5566. r"""Low-level wrapper for `::fz_clip_image_mask()`."""
  5567. return _mupdf.ll_fz_clip_image_mask(dev, image, ctm, scissor)
  5568. def ll_fz_clip_path(dev, path, even_odd, ctm, scissor):
  5569. r"""Low-level wrapper for `::fz_clip_path()`."""
  5570. return _mupdf.ll_fz_clip_path(dev, path, even_odd, ctm, scissor)
  5571. def ll_fz_clip_stroke_path(dev, path, stroke, ctm, scissor):
  5572. r"""Low-level wrapper for `::fz_clip_stroke_path()`."""
  5573. return _mupdf.ll_fz_clip_stroke_path(dev, path, stroke, ctm, scissor)
  5574. def ll_fz_clip_stroke_text(dev, text, stroke, ctm, scissor):
  5575. r"""Low-level wrapper for `::fz_clip_stroke_text()`."""
  5576. return _mupdf.ll_fz_clip_stroke_text(dev, text, stroke, ctm, scissor)
  5577. def ll_fz_clip_text(dev, text, ctm, scissor):
  5578. r"""Low-level wrapper for `::fz_clip_text()`."""
  5579. return _mupdf.ll_fz_clip_text(dev, text, ctm, scissor)
  5580. def ll_fz_clone_buffer(buf):
  5581. r"""
  5582. Low-level wrapper for `::fz_clone_buffer()`.
  5583. Make a new buffer, containing a copy of the data used in
  5584. the original.
  5585. """
  5586. return _mupdf.ll_fz_clone_buffer(buf)
  5587. def ll_fz_clone_context():
  5588. r"""
  5589. Low-level wrapper for `::fz_clone_context()`.
  5590. Make a clone of an existing context.
  5591. This function is meant to be used in multi-threaded
  5592. applications where each thread requires its own context, yet
  5593. parts of the global state, for example caching, are shared.
  5594. ctx: Context obtained from fz_new_context to make a copy of.
  5595. ctx must have had locks and lock/functions setup when created.
  5596. The two contexts will share the memory allocator, resource
  5597. store, locks and lock/unlock functions. They will each have
  5598. their own exception stacks though.
  5599. May return NULL.
  5600. """
  5601. return _mupdf.ll_fz_clone_context()
  5602. def ll_fz_clone_default_colorspaces(base):
  5603. r"""
  5604. Low-level wrapper for `::fz_clone_default_colorspaces()`.
  5605. Returns a reference to a newly cloned default colorspaces
  5606. structure.
  5607. The new clone may safely be altered without fear of race
  5608. conditions as the caller is the only reference holder.
  5609. """
  5610. return _mupdf.ll_fz_clone_default_colorspaces(base)
  5611. def ll_fz_clone_path(path):
  5612. r"""
  5613. Low-level wrapper for `::fz_clone_path()`.
  5614. Clone the data for a path.
  5615. This is used in preference to fz_keep_path when a whole
  5616. new copy of a path is required, rather than just a shared
  5617. pointer. This probably indicates that the path is about to
  5618. be modified.
  5619. path: path to clone.
  5620. Throws exceptions on failure to allocate.
  5621. """
  5622. return _mupdf.ll_fz_clone_path(path)
  5623. def ll_fz_clone_pixmap(old):
  5624. r"""
  5625. Low-level wrapper for `::fz_clone_pixmap()`.
  5626. Clone a pixmap, copying the pixels and associated data to new
  5627. storage.
  5628. The reference count of 'old' is unchanged.
  5629. """
  5630. return _mupdf.ll_fz_clone_pixmap(old)
  5631. def ll_fz_clone_pixmap_area_with_different_seps(src, bbox, dcs, seps, color_params, default_cs):
  5632. r"""Low-level wrapper for `::fz_clone_pixmap_area_with_different_seps()`."""
  5633. return _mupdf.ll_fz_clone_pixmap_area_with_different_seps(src, bbox, dcs, seps, color_params, default_cs)
  5634. def ll_fz_clone_separations_for_overprint(seps):
  5635. r"""
  5636. Low-level wrapper for `::fz_clone_separations_for_overprint()`.
  5637. Return a separations object with all the spots in the input
  5638. separations object that are set to composite, reset to be
  5639. enabled. If there ARE no spots in the object, this returns
  5640. NULL. If the object already has all its spots enabled, then
  5641. just returns another handle on the same object.
  5642. """
  5643. return _mupdf.ll_fz_clone_separations_for_overprint(seps)
  5644. def ll_fz_clone_stroke_state(stroke):
  5645. r"""
  5646. Low-level wrapper for `::fz_clone_stroke_state()`.
  5647. Create an identical stroke_state structure and return a
  5648. reference to it.
  5649. stroke: The stroke state reference to clone.
  5650. Exceptions may be thrown in the event of a failure to
  5651. allocate.
  5652. """
  5653. return _mupdf.ll_fz_clone_stroke_state(stroke)
  5654. def ll_fz_close_band_writer(writer):
  5655. r"""
  5656. Low-level wrapper for `::fz_close_band_writer()`.
  5657. Finishes up the output and closes the band writer. After this
  5658. call no more headers or bands may be written.
  5659. """
  5660. return _mupdf.ll_fz_close_band_writer(writer)
  5661. def ll_fz_close_device(dev):
  5662. r"""
  5663. Low-level wrapper for `::fz_close_device()`.
  5664. Signal the end of input, and flush any buffered output.
  5665. This is NOT called implicitly on fz_drop_device. This
  5666. may throw exceptions.
  5667. """
  5668. return _mupdf.ll_fz_close_device(dev)
  5669. def ll_fz_close_document_writer(wri):
  5670. r"""
  5671. Low-level wrapper for `::fz_close_document_writer()`.
  5672. Called to end the process of writing
  5673. pages to a document.
  5674. This writes any file level trailers required. After this
  5675. completes successfully the file is up to date and complete.
  5676. """
  5677. return _mupdf.ll_fz_close_document_writer(wri)
  5678. def ll_fz_close_output(arg_1):
  5679. r"""
  5680. Low-level wrapper for `::fz_close_output()`.
  5681. Flush pending output and close an output stream.
  5682. """
  5683. return _mupdf.ll_fz_close_output(arg_1)
  5684. def ll_fz_close_zip_writer(zip):
  5685. r"""
  5686. Low-level wrapper for `::fz_close_zip_writer()`.
  5687. Close the zip file for writing.
  5688. This flushes any pending data to the file. This can throw
  5689. exceptions.
  5690. """
  5691. return _mupdf.ll_fz_close_zip_writer(zip)
  5692. def ll_fz_closepath(path):
  5693. r"""
  5694. Low-level wrapper for `::fz_closepath()`.
  5695. Close the current subpath.
  5696. path: The path to modify.
  5697. Throws exceptions on failure to allocate, attempting to modify
  5698. a packed path, and illegal path closes (i.e. closing a non open
  5699. path).
  5700. """
  5701. return _mupdf.ll_fz_closepath(path)
  5702. def ll_fz_colorspace_colorant(cs, n):
  5703. r"""
  5704. Low-level wrapper for `::fz_colorspace_colorant()`.
  5705. Retrieve a the name for a colorant.
  5706. Returns a pointer with the same lifespan as the colorspace.
  5707. """
  5708. return _mupdf.ll_fz_colorspace_colorant(cs, n)
  5709. def ll_fz_colorspace_device_n_has_cmyk(cs):
  5710. r"""
  5711. Low-level wrapper for `::fz_colorspace_device_n_has_cmyk()`.
  5712. True if DeviceN color space has cyan magenta yellow or black as
  5713. one of its colorants.
  5714. """
  5715. return _mupdf.ll_fz_colorspace_device_n_has_cmyk(cs)
  5716. def ll_fz_colorspace_device_n_has_only_cmyk(cs):
  5717. r"""
  5718. Low-level wrapper for `::fz_colorspace_device_n_has_only_cmyk()`.
  5719. True if DeviceN color space has only colorants from the CMYK set.
  5720. """
  5721. return _mupdf.ll_fz_colorspace_device_n_has_only_cmyk(cs)
  5722. def ll_fz_colorspace_digest(cs, digest):
  5723. r"""
  5724. Low-level wrapper for `::fz_colorspace_digest()`.
  5725. Get checksum of underlying ICC profile.
  5726. """
  5727. return _mupdf.ll_fz_colorspace_digest(cs, digest)
  5728. def ll_fz_colorspace_is_cmyk(cs):
  5729. r"""Low-level wrapper for `::fz_colorspace_is_cmyk()`."""
  5730. return _mupdf.ll_fz_colorspace_is_cmyk(cs)
  5731. def ll_fz_colorspace_is_device(cs):
  5732. r"""Low-level wrapper for `::fz_colorspace_is_device()`."""
  5733. return _mupdf.ll_fz_colorspace_is_device(cs)
  5734. def ll_fz_colorspace_is_device_cmyk(cs):
  5735. r"""Low-level wrapper for `::fz_colorspace_is_device_cmyk()`."""
  5736. return _mupdf.ll_fz_colorspace_is_device_cmyk(cs)
  5737. def ll_fz_colorspace_is_device_gray(cs):
  5738. r"""Low-level wrapper for `::fz_colorspace_is_device_gray()`."""
  5739. return _mupdf.ll_fz_colorspace_is_device_gray(cs)
  5740. def ll_fz_colorspace_is_device_n(cs):
  5741. r"""Low-level wrapper for `::fz_colorspace_is_device_n()`."""
  5742. return _mupdf.ll_fz_colorspace_is_device_n(cs)
  5743. def ll_fz_colorspace_is_gray(cs):
  5744. r"""
  5745. Low-level wrapper for `::fz_colorspace_is_gray()`.
  5746. Tests for particular types of colorspaces
  5747. """
  5748. return _mupdf.ll_fz_colorspace_is_gray(cs)
  5749. def ll_fz_colorspace_is_icc(cs):
  5750. r"""Low-level wrapper for `::fz_colorspace_is_icc()`."""
  5751. return _mupdf.ll_fz_colorspace_is_icc(cs)
  5752. def ll_fz_colorspace_is_indexed(cs):
  5753. r"""Low-level wrapper for `::fz_colorspace_is_indexed()`."""
  5754. return _mupdf.ll_fz_colorspace_is_indexed(cs)
  5755. def ll_fz_colorspace_is_lab(cs):
  5756. r"""Low-level wrapper for `::fz_colorspace_is_lab()`."""
  5757. return _mupdf.ll_fz_colorspace_is_lab(cs)
  5758. def ll_fz_colorspace_is_lab_icc(cs):
  5759. r"""Low-level wrapper for `::fz_colorspace_is_lab_icc()`."""
  5760. return _mupdf.ll_fz_colorspace_is_lab_icc(cs)
  5761. def ll_fz_colorspace_is_rgb(cs):
  5762. r"""Low-level wrapper for `::fz_colorspace_is_rgb()`."""
  5763. return _mupdf.ll_fz_colorspace_is_rgb(cs)
  5764. def ll_fz_colorspace_is_subtractive(cs):
  5765. r"""
  5766. Low-level wrapper for `::fz_colorspace_is_subtractive()`.
  5767. True for CMYK, Separation and DeviceN colorspaces.
  5768. """
  5769. return _mupdf.ll_fz_colorspace_is_subtractive(cs)
  5770. def ll_fz_colorspace_n(cs):
  5771. r"""
  5772. Low-level wrapper for `::fz_colorspace_n()`.
  5773. Query the number of colorants in a colorspace.
  5774. """
  5775. return _mupdf.ll_fz_colorspace_n(cs)
  5776. def ll_fz_colorspace_name(cs):
  5777. r"""
  5778. Low-level wrapper for `::fz_colorspace_name()`.
  5779. Query the name of a colorspace.
  5780. The returned string has the same lifespan as the colorspace
  5781. does. Caller should not free it.
  5782. """
  5783. return _mupdf.ll_fz_colorspace_name(cs)
  5784. def ll_fz_colorspace_name_colorant(cs, n, name):
  5785. r"""
  5786. Low-level wrapper for `::fz_colorspace_name_colorant()`.
  5787. Assign a name for a given colorant in a colorspace.
  5788. Used while initially setting up a colorspace. The string is
  5789. copied into local storage, so need not be retained by the
  5790. caller.
  5791. """
  5792. return _mupdf.ll_fz_colorspace_name_colorant(cs, n, name)
  5793. def ll_fz_colorspace_type(cs):
  5794. r"""
  5795. Low-level wrapper for `::fz_colorspace_type()`.
  5796. Query the type of colorspace.
  5797. """
  5798. return _mupdf.ll_fz_colorspace_type(cs)
  5799. def ll_fz_compare_separations(sep1, sep2):
  5800. r"""
  5801. Low-level wrapper for `::fz_compare_separations()`.
  5802. Compare 2 separations structures (or NULLs).
  5803. Return 0 if identical, non-zero if not identical.
  5804. """
  5805. return _mupdf.ll_fz_compare_separations(sep1, sep2)
  5806. def ll_fz_compress_brotli(dest, compressed_length, source, source_length, level):
  5807. r"""
  5808. Low-level wrapper for `::fz_compress_brotli()`.
  5809. This function has out-params. Python/C# wrappers look like:
  5810. `ll_fz_compress_brotli(unsigned char *dest, const unsigned char *source, size_t source_length, ::fz_brotli_level level)` => size_t compressed_length
  5811. Compress source_length bytes of data starting
  5812. at source, into a buffer of length *destLen, starting at dest.
  5813. compressed_length will be updated on exit to contain the size
  5814. actually used.
  5815. """
  5816. return _mupdf.ll_fz_compress_brotli(dest, compressed_length, source, source_length, level)
  5817. def ll_fz_compress_ccitt_fax_g3(data, columns, rows, stride):
  5818. r"""
  5819. Low-level wrapper for `::fz_compress_ccitt_fax_g3()`.
  5820. Compress bitmap data as CCITT Group 3 1D fax image.
  5821. Creates a stream assuming the default PDF parameters,
  5822. except the number of columns.
  5823. """
  5824. return _mupdf.ll_fz_compress_ccitt_fax_g3(data, columns, rows, stride)
  5825. def ll_fz_compress_ccitt_fax_g4(data, columns, rows, stride):
  5826. r"""
  5827. Low-level wrapper for `::fz_compress_ccitt_fax_g4()`.
  5828. Compress bitmap data as CCITT Group 4 2D fax image.
  5829. Creates a stream assuming the default PDF parameters, except
  5830. K=-1 and the number of columns.
  5831. """
  5832. return _mupdf.ll_fz_compress_ccitt_fax_g4(data, columns, rows, stride)
  5833. def ll_fz_compressed_buffer_size(buffer):
  5834. r"""
  5835. Low-level wrapper for `::fz_compressed_buffer_size()`.
  5836. Return the storage size used for a buffer and its data.
  5837. Used in implementing store handling.
  5838. Never throws exceptions.
  5839. """
  5840. return _mupdf.ll_fz_compressed_buffer_size(buffer)
  5841. def ll_fz_compressed_image_buffer(image):
  5842. r"""
  5843. Low-level wrapper for `::fz_compressed_image_buffer()`.
  5844. Retrieve the underlying compressed data for an image.
  5845. Returns a pointer to the underlying data buffer for an image,
  5846. or NULL if this image is not based upon a compressed data
  5847. buffer.
  5848. This is not a reference counted structure, so no reference is
  5849. returned. Lifespan is limited to that of the image itself.
  5850. """
  5851. return _mupdf.ll_fz_compressed_image_buffer(image)
  5852. def ll_fz_compressed_image_type(image):
  5853. r"""
  5854. Low-level wrapper for `::fz_compressed_image_type()`.
  5855. Return the type of a compressed image.
  5856. Any non-compressed image will have the type returned as UNKNOWN.
  5857. """
  5858. return _mupdf.ll_fz_compressed_image_type(image)
  5859. def ll_fz_concat(left, right):
  5860. r"""
  5861. Low-level wrapper for `::fz_concat()`.
  5862. Multiply two matrices.
  5863. The order of the two matrices are important since matrix
  5864. multiplication is not commutative.
  5865. Returns result.
  5866. """
  5867. return _mupdf.ll_fz_concat(left, right)
  5868. def ll_fz_concat_push_drop(concat, chain):
  5869. r"""
  5870. Low-level wrapper for `::fz_concat_push_drop()`.
  5871. Add a chained stream to the end of the concatenate filter.
  5872. Ownership of chain is passed in.
  5873. """
  5874. return _mupdf.ll_fz_concat_push_drop(concat, chain)
  5875. def ll_fz_contains_rect(a, b):
  5876. r"""
  5877. Low-level wrapper for `::fz_contains_rect()`.
  5878. Test rectangle inclusion.
  5879. Return true if a entirely contains b.
  5880. """
  5881. return _mupdf.ll_fz_contains_rect(a, b)
  5882. def ll_fz_convert_color(ss, sv, ds, dv, _is, params):
  5883. r"""
  5884. Low-level wrapper for `::fz_convert_color()`.
  5885. This function has out-params. Python/C# wrappers look like:
  5886. `ll_fz_convert_color(::fz_colorspace *ss, const float *sv, ::fz_colorspace *ds, ::fz_colorspace *is, ::fz_color_params params)` => float dv
  5887. Convert color values sv from colorspace ss into colorvalues dv
  5888. for colorspace ds, via an optional intervening space is,
  5889. respecting the given color_params.
  5890. """
  5891. return _mupdf.ll_fz_convert_color(ss, sv, ds, dv, _is, params)
  5892. def ll_fz_convert_error(code):
  5893. r"""
  5894. Low-level wrapper for `::fz_convert_error()`.
  5895. This function has out-params. Python/C# wrappers look like:
  5896. `ll_fz_convert_error()` => `(const char *, int code)`
  5897. """
  5898. return _mupdf.ll_fz_convert_error(code)
  5899. def ll_fz_convert_indexed_pixmap_to_base(src):
  5900. r"""
  5901. Low-level wrapper for `::fz_convert_indexed_pixmap_to_base()`.
  5902. Convert pixmap from indexed to base colorspace.
  5903. This creates a new bitmap containing the converted pixmap data.
  5904. """
  5905. return _mupdf.ll_fz_convert_indexed_pixmap_to_base(src)
  5906. def ll_fz_convert_pixmap(pix, cs_des, prf, default_cs, color_params, keep_alpha):
  5907. r"""
  5908. Low-level wrapper for `::fz_convert_pixmap()`.
  5909. Convert an existing pixmap to a desired
  5910. colorspace. Other properties of the pixmap, such as resolution
  5911. and position are copied to the converted pixmap.
  5912. pix: The pixmap to convert.
  5913. default_cs: If NULL pix->colorspace is used. It is possible that
  5914. the data may need to be interpreted as one of the color spaces
  5915. in default_cs.
  5916. cs_des: Desired colorspace, may be NULL to denote alpha-only.
  5917. prf: Proofing color space through which we need to convert.
  5918. color_params: Parameters that may be used in conversion (e.g.
  5919. ri).
  5920. keep_alpha: If 0 any alpha component is removed, otherwise
  5921. alpha is kept if present in the pixmap.
  5922. """
  5923. return _mupdf.ll_fz_convert_pixmap(pix, cs_des, prf, default_cs, color_params, keep_alpha)
  5924. def ll_fz_convert_separation_colors(src_cs, src_color, dst_seps, dst_cs, dst_color, color_params):
  5925. r"""
  5926. Low-level wrapper for `::fz_convert_separation_colors()`.
  5927. This function has out-params. Python/C# wrappers look like:
  5928. `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
  5929. Convert a color given in terms of one colorspace,
  5930. to a color in terms of another colorspace/separations.
  5931. """
  5932. return _mupdf.ll_fz_convert_separation_colors(src_cs, src_color, dst_seps, dst_cs, dst_color, color_params)
  5933. def ll_fz_convert_separation_pixmap_to_base(src):
  5934. r"""
  5935. Low-level wrapper for `::fz_convert_separation_pixmap_to_base()`.
  5936. Convert pixmap from DeviceN/Separation to base colorspace.
  5937. This creates a new bitmap containing the converted pixmap data.
  5938. """
  5939. return _mupdf.ll_fz_convert_separation_pixmap_to_base(src)
  5940. def ll_fz_copy_option(val, dest, maxlen):
  5941. r"""
  5942. Low-level wrapper for `::fz_copy_option()`.
  5943. Copy an option (val) into a destination buffer (dest), of maxlen
  5944. bytes.
  5945. Returns the number of bytes (including terminator) that did not
  5946. fit. If val is maxlen or greater bytes in size, it will be left
  5947. unterminated.
  5948. """
  5949. return _mupdf.ll_fz_copy_option(val, dest, maxlen)
  5950. def ll_fz_copy_pixmap_rect(dest, src, r, default_cs):
  5951. r"""Low-level wrapper for `::fz_copy_pixmap_rect()`."""
  5952. return _mupdf.ll_fz_copy_pixmap_rect(dest, src, r, default_cs)
  5953. def ll_fz_copy_rectangle(page, area, crlf):
  5954. r"""
  5955. Low-level wrapper for `::fz_copy_rectangle()`.
  5956. Return a newly allocated UTF-8 string with the text for a given
  5957. selection rectangle.
  5958. crlf: If true, write "\r\n" style line endings (otherwise "\n"
  5959. only).
  5960. """
  5961. return _mupdf.ll_fz_copy_rectangle(page, area, crlf)
  5962. def ll_fz_copy_selection(page, a, b, crlf):
  5963. r"""
  5964. Low-level wrapper for `::fz_copy_selection()`.
  5965. Return a newly allocated UTF-8 string with the text for a given
  5966. selection.
  5967. crlf: If true, write "\r\n" style line endings (otherwise "\n"
  5968. only).
  5969. """
  5970. return _mupdf.ll_fz_copy_selection(page, a, b, crlf)
  5971. def ll_fz_count_active_separations(seps):
  5972. r"""
  5973. Low-level wrapper for `::fz_count_active_separations()`.
  5974. Return the number of active separations.
  5975. """
  5976. return _mupdf.ll_fz_count_active_separations(seps)
  5977. def ll_fz_count_archive_entries(arch):
  5978. r"""
  5979. Low-level wrapper for `::fz_count_archive_entries()`.
  5980. Number of entries in archive.
  5981. Will always return a value >= 0.
  5982. May throw an exception if this type of archive cannot count the
  5983. entries (such as a directory).
  5984. """
  5985. return _mupdf.ll_fz_count_archive_entries(arch)
  5986. def ll_fz_count_chapter_pages(doc, chapter):
  5987. r"""
  5988. Low-level wrapper for `::fz_count_chapter_pages()`.
  5989. Return the number of pages in a chapter.
  5990. May return 0.
  5991. """
  5992. return _mupdf.ll_fz_count_chapter_pages(doc, chapter)
  5993. def ll_fz_count_chapters(doc):
  5994. r"""
  5995. Low-level wrapper for `::fz_count_chapters()`.
  5996. Return the number of chapters in the document.
  5997. At least 1.
  5998. """
  5999. return _mupdf.ll_fz_count_chapters(doc)
  6000. def ll_fz_count_pages(doc):
  6001. r"""
  6002. Low-level wrapper for `::fz_count_pages()`.
  6003. Return the number of pages in document
  6004. May return 0 for documents with no pages.
  6005. """
  6006. return _mupdf.ll_fz_count_pages(doc)
  6007. def ll_fz_count_separations(sep):
  6008. r"""Low-level wrapper for `::fz_count_separations()`."""
  6009. return _mupdf.ll_fz_count_separations(sep)
  6010. def ll_fz_create_link(page, bbox, uri):
  6011. r"""
  6012. Low-level wrapper for `::fz_create_link()`.
  6013. Create a new link on a page.
  6014. """
  6015. return _mupdf.ll_fz_create_link(page, bbox, uri)
  6016. def ll_fz_currentpoint(path):
  6017. r"""
  6018. Low-level wrapper for `::fz_currentpoint()`.
  6019. Return the current point that a path has
  6020. reached or (0,0) if empty.
  6021. path: path to return the current point of.
  6022. """
  6023. return _mupdf.ll_fz_currentpoint(path)
  6024. def ll_fz_curveto(path, x0, y0, x1, y1, x2, y2):
  6025. r"""
  6026. Low-level wrapper for `::fz_curveto()`.
  6027. Append a 'curveto' command to an open path. (For a
  6028. cubic bezier).
  6029. path: The path to modify.
  6030. x0, y0: The coordinates of the first control point for the
  6031. curve.
  6032. x1, y1: The coordinates of the second control point for the
  6033. curve.
  6034. x2, y2: The end coordinates for the curve.
  6035. Throws exceptions on failure to allocate, or attempting to
  6036. modify a packed path.
  6037. """
  6038. return _mupdf.ll_fz_curveto(path, x0, y0, x1, y1, x2, y2)
  6039. def ll_fz_curvetov(path, x1, y1, x2, y2):
  6040. r"""
  6041. Low-level wrapper for `::fz_curvetov()`.
  6042. Append a 'curvetov' command to an open path. (For a
  6043. cubic bezier with the first control coordinate equal to
  6044. the start point).
  6045. path: The path to modify.
  6046. x1, y1: The coordinates of the second control point for the
  6047. curve.
  6048. x2, y2: The end coordinates for the curve.
  6049. Throws exceptions on failure to allocate, or attempting to
  6050. modify a packed path.
  6051. """
  6052. return _mupdf.ll_fz_curvetov(path, x1, y1, x2, y2)
  6053. def ll_fz_curvetoy(path, x0, y0, x2, y2):
  6054. r"""
  6055. Low-level wrapper for `::fz_curvetoy()`.
  6056. Append a 'curvetoy' command to an open path. (For a
  6057. cubic bezier with the second control coordinate equal to
  6058. the end point).
  6059. path: The path to modify.
  6060. x0, y0: The coordinates of the first control point for the
  6061. curve.
  6062. x2, y2: The end coordinates for the curve (and the second
  6063. control coordinate).
  6064. Throws exceptions on failure to allocate, or attempting to
  6065. modify a packed path.
  6066. """
  6067. return _mupdf.ll_fz_curvetoy(path, x0, y0, x2, y2)
  6068. def ll_fz_debug_store(out):
  6069. r"""
  6070. Low-level wrapper for `::fz_debug_store()`.
  6071. Output debugging information for the current state of the store
  6072. to the given output channel.
  6073. """
  6074. return _mupdf.ll_fz_debug_store(out)
  6075. def ll_fz_debug_xml(item, level):
  6076. r"""
  6077. Low-level wrapper for `::fz_debug_xml()`.
  6078. Pretty-print an XML tree to stdout. (Deprecated, use
  6079. fz_output_xml in preference).
  6080. """
  6081. return _mupdf.ll_fz_debug_xml(item, level)
  6082. def ll_fz_decode_barcode_from_display_list(type, list, subarea, rotate):
  6083. r"""
  6084. Low-level wrapper for `::fz_decode_barcode_from_display_list()`.
  6085. This function has out-params. Python/C# wrappers look like:
  6086. `ll_fz_decode_barcode_from_display_list(::fz_display_list *list, ::fz_rect subarea, int rotate)` => `(char *, ::fz_barcode_type type)`
  6087. Decode a barcode from a display list.
  6088. type: NULL, or a pointer to recieve the barcode type decoded.
  6089. list: The display list to render to get the barcode.
  6090. subarea: subarea of the page to decode.
  6091. rotate: 0, 90, 180, or 270.
  6092. returns the decoded value.
  6093. """
  6094. return _mupdf.ll_fz_decode_barcode_from_display_list(type, list, subarea, rotate)
  6095. def ll_fz_decode_barcode_from_display_list2(type, list, subarea, rotate):
  6096. r"""
  6097. Low-level wrapper for `::fz_decode_barcode_from_display_list2()`.
  6098. This function has out-params. Python/C# wrappers look like:
  6099. `ll_fz_decode_barcode_from_display_list2(::fz_display_list *list, ::fz_rect subarea, int rotate)` => `(std::string, ::fz_barcode_type type)`
  6100. SWIG-friendly wrapper for fz_decode_barcode_from_display_list(),
  6101. avoiding leak of the returned string.
  6102. """
  6103. return _mupdf.ll_fz_decode_barcode_from_display_list2(type, list, subarea, rotate)
  6104. def ll_fz_decode_barcode_from_page(type, page, subarea, rotate):
  6105. r"""
  6106. Low-level wrapper for `::fz_decode_barcode_from_page()`.
  6107. This function has out-params. Python/C# wrappers look like:
  6108. `ll_fz_decode_barcode_from_page(::fz_page *page, ::fz_rect subarea, int rotate)` => `(char *, ::fz_barcode_type type)`
  6109. Decode a barcode from a page.
  6110. type: NULL, or a pointer to recieve the barcode type decoded.
  6111. page: The page to decode.
  6112. subarea: subarea of the page to decode.
  6113. rotate: 0, 90, 180, or 270.
  6114. returns the decoded value.
  6115. """
  6116. return _mupdf.ll_fz_decode_barcode_from_page(type, page, subarea, rotate)
  6117. def ll_fz_decode_barcode_from_page2(type, page, subarea, rotate):
  6118. r"""
  6119. Low-level wrapper for `::fz_decode_barcode_from_page2()`.
  6120. This function has out-params. Python/C# wrappers look like:
  6121. `ll_fz_decode_barcode_from_page2(::fz_page *page, ::fz_rect subarea, int rotate)` => `(std::string, ::fz_barcode_type type)`
  6122. SWIG-friendly wrapper for fz_decode_barcode_from_page(), avoiding
  6123. leak of the returned string.
  6124. """
  6125. return _mupdf.ll_fz_decode_barcode_from_page2(type, page, subarea, rotate)
  6126. def ll_fz_decode_barcode_from_pixmap(type, pix, rotate):
  6127. r"""
  6128. Low-level wrapper for `::fz_decode_barcode_from_pixmap()`.
  6129. This function has out-params. Python/C# wrappers look like:
  6130. `ll_fz_decode_barcode_from_pixmap(::fz_pixmap *pix, int rotate)` => `(char *, ::fz_barcode_type type)`
  6131. Decode a barcode from a pixmap.
  6132. type: NULL, or a pointer to recieve the barcode type decoded.
  6133. pix: The pixmap to decode.
  6134. rotate: 0, 90, 180, or 270.
  6135. returns the decoded value as an fz_malloced block. Should
  6136. be fz_free'd by the caller.
  6137. """
  6138. return _mupdf.ll_fz_decode_barcode_from_pixmap(type, pix, rotate)
  6139. def ll_fz_decode_barcode_from_pixmap2(type, pix, rotate):
  6140. r"""
  6141. Low-level wrapper for `::fz_decode_barcode_from_pixmap2()`.
  6142. This function has out-params. Python/C# wrappers look like:
  6143. `ll_fz_decode_barcode_from_pixmap2(::fz_pixmap *pix, int rotate)` => `(std::string, ::fz_barcode_type type)`
  6144. SWIG-friendly wrapper for fz_decode_barcode_from_pixmap(), avoiding
  6145. leak of the returned string.
  6146. """
  6147. return _mupdf.ll_fz_decode_barcode_from_pixmap2(type, pix, rotate)
  6148. def ll_fz_decode_tile(pix, decode):
  6149. r"""Low-level wrapper for `::fz_decode_tile()`."""
  6150. return _mupdf.ll_fz_decode_tile(pix, decode)
  6151. def ll_fz_decode_uri(s):
  6152. r"""
  6153. Low-level wrapper for `::fz_decode_uri()`.
  6154. Return a new string representing the unencoded version of the given URI.
  6155. This decodes all escape sequences except those that would result in a reserved
  6156. character that are part of the URI syntax (; / ? : @ & = + $ , #).
  6157. """
  6158. return _mupdf.ll_fz_decode_uri(s)
  6159. def ll_fz_decode_uri_component(s):
  6160. r"""
  6161. Low-level wrapper for `::fz_decode_uri_component()`.
  6162. Return a new string representing the unencoded version of the given URI component.
  6163. This decodes all escape sequences!
  6164. """
  6165. return _mupdf.ll_fz_decode_uri_component(s)
  6166. def ll_fz_decomp_image_from_stream(stm, image, subarea, indexed, l2factor, l2extra):
  6167. r"""
  6168. Low-level wrapper for `::fz_decomp_image_from_stream()`.
  6169. This function has out-params. Python/C# wrappers look like:
  6170. `ll_fz_decomp_image_from_stream(::fz_stream *stm, ::fz_compressed_image *image, ::fz_irect *subarea, int indexed, int l2factor)` => `(fz_pixmap *, int l2extra)`
  6171. Decode a subarea of a compressed image. l2factor is the amount
  6172. of subsampling inbuilt to the stream (i.e. performed by the
  6173. decoder). If non NULL, l2extra is the extra amount of
  6174. subsampling that should be performed by this routine. This will
  6175. be updated on exit to the amount of subsampling that is still
  6176. required to be done.
  6177. Returns a kept reference.
  6178. """
  6179. return _mupdf.ll_fz_decomp_image_from_stream(stm, image, subarea, indexed, l2factor, l2extra)
  6180. def ll_fz_decouple_type3_font(font, t3doc):
  6181. r"""Low-level wrapper for `::fz_decouple_type3_font()`."""
  6182. return _mupdf.ll_fz_decouple_type3_font(font, t3doc)
  6183. def ll_fz_default_cmyk(default_cs):
  6184. r"""Low-level wrapper for `::fz_default_cmyk()`."""
  6185. return _mupdf.ll_fz_default_cmyk(default_cs)
  6186. def ll_fz_default_error_callback(user, message):
  6187. r"""
  6188. Low-level wrapper for `::fz_default_error_callback()`.
  6189. FIXME: Better not to expose fz_default_error_callback, and
  6190. fz_default_warning callback and to allow 'NULL' to be used
  6191. int fz_set_xxxx_callback to mean "defaults".
  6192. FIXME: Do we need/want functions like
  6193. fz_error_callback(ctx, message) to allow callers to inject
  6194. stuff into the error/warning streams?
  6195. The default error callback. Declared publicly just so that the
  6196. error callback can be set back to this after it has been
  6197. overridden.
  6198. """
  6199. return _mupdf.ll_fz_default_error_callback(user, message)
  6200. def ll_fz_default_gray(default_cs):
  6201. r"""
  6202. Low-level wrapper for `::fz_default_gray()`.
  6203. Retrieve default colorspaces (typically page local).
  6204. If default_cs is non NULL, the default is retrieved from there,
  6205. otherwise the global default is retrieved.
  6206. These return borrowed references that should not be dropped,
  6207. unless they are kept first.
  6208. """
  6209. return _mupdf.ll_fz_default_gray(default_cs)
  6210. def ll_fz_default_halftone(num_comps):
  6211. r"""
  6212. Low-level wrapper for `::fz_default_halftone()`.
  6213. Create a 'default' halftone structure
  6214. for the given number of components.
  6215. num_comps: The number of components to use.
  6216. Returns a simple default halftone. The default halftone uses
  6217. the same halftone tile for each plane, which may not be ideal
  6218. for all purposes.
  6219. """
  6220. return _mupdf.ll_fz_default_halftone(num_comps)
  6221. def ll_fz_default_output_intent(default_cs):
  6222. r"""Low-level wrapper for `::fz_default_output_intent()`."""
  6223. return _mupdf.ll_fz_default_output_intent(default_cs)
  6224. def ll_fz_default_rgb(default_cs):
  6225. r"""Low-level wrapper for `::fz_default_rgb()`."""
  6226. return _mupdf.ll_fz_default_rgb(default_cs)
  6227. def ll_fz_default_warning_callback(user, message):
  6228. r"""
  6229. Low-level wrapper for `::fz_default_warning_callback()`.
  6230. The default warning callback. Declared publicly just so that
  6231. the warning callback can be set back to this after it has been
  6232. overridden.
  6233. """
  6234. return _mupdf.ll_fz_default_warning_callback(user, message)
  6235. def ll_fz_defer_reap_end():
  6236. r"""
  6237. Low-level wrapper for `::fz_defer_reap_end()`.
  6238. Decrement the defer reap count.
  6239. If the defer reap count returns to 0, and the store
  6240. has reapable objects in, a reap pass will begin.
  6241. Call this at the end of a process during which you
  6242. potentially might drop many reapable objects.
  6243. It is vital that every fz_defer_reap_start is matched
  6244. by a fz_defer_reap_end call.
  6245. """
  6246. return _mupdf.ll_fz_defer_reap_end()
  6247. def ll_fz_defer_reap_start():
  6248. r"""
  6249. Low-level wrapper for `::fz_defer_reap_start()`.
  6250. Increment the defer reap count.
  6251. No reap operations will take place (except for those
  6252. triggered by an immediate failed malloc) until the
  6253. defer reap count returns to 0.
  6254. Call this at the start of a process during which you
  6255. potentially might drop many reapable objects.
  6256. It is vital that every fz_defer_reap_start is matched
  6257. by a fz_defer_reap_end call.
  6258. """
  6259. return _mupdf.ll_fz_defer_reap_start()
  6260. def ll_fz_deflate(dest, compressed_length, source, source_length, level):
  6261. r"""
  6262. Low-level wrapper for `::fz_deflate()`.
  6263. This function has out-params. Python/C# wrappers look like:
  6264. `ll_fz_deflate(unsigned char *dest, const unsigned char *source, size_t source_length, ::fz_deflate_level level)` => size_t compressed_length
  6265. Compress source_length bytes of data starting
  6266. at source, into a buffer of length *compressed_length, starting at
  6267. dest. *compressed_length will be updated on exit to contain the size
  6268. actually used.
  6269. """
  6270. return _mupdf.ll_fz_deflate(dest, compressed_length, source, source_length, level)
  6271. def ll_fz_deflate_bound(size):
  6272. r"""
  6273. Low-level wrapper for `::fz_deflate_bound()`.
  6274. Returns the upper bound on the
  6275. size of flated data of length size.
  6276. """
  6277. return _mupdf.ll_fz_deflate_bound(size)
  6278. def ll_fz_delete_link(page, link):
  6279. r"""
  6280. Low-level wrapper for `::fz_delete_link()`.
  6281. Delete an existing link on a page.
  6282. """
  6283. return _mupdf.ll_fz_delete_link(page, link)
  6284. def ll_fz_deskew_pixmap(src, degrees, border):
  6285. r"""Low-level wrapper for `::fz_deskew_pixmap()`."""
  6286. return _mupdf.ll_fz_deskew_pixmap(src, degrees, border)
  6287. def ll_fz_detach_xml(node):
  6288. r"""
  6289. Low-level wrapper for `::fz_detach_xml()`.
  6290. Detach a node from the tree, unlinking it from its parent,
  6291. and setting the document root to the node.
  6292. """
  6293. return _mupdf.ll_fz_detach_xml(node)
  6294. def ll_fz_detect_document(points, src):
  6295. r"""Low-level wrapper for `::fz_detect_document()`."""
  6296. return _mupdf.ll_fz_detect_document(points, src)
  6297. def ll_fz_detect_skew(pixmap):
  6298. r"""Low-level wrapper for `::fz_detect_skew()`."""
  6299. return _mupdf.ll_fz_detect_skew(pixmap)
  6300. def ll_fz_device_bgr():
  6301. r"""Low-level wrapper for `::fz_device_bgr()`."""
  6302. return _mupdf.ll_fz_device_bgr()
  6303. def ll_fz_device_cmyk():
  6304. r"""Low-level wrapper for `::fz_device_cmyk()`."""
  6305. return _mupdf.ll_fz_device_cmyk()
  6306. def ll_fz_device_current_scissor(dev):
  6307. r"""
  6308. Low-level wrapper for `::fz_device_current_scissor()`.
  6309. Find current scissor region as tracked by the device.
  6310. """
  6311. return _mupdf.ll_fz_device_current_scissor(dev)
  6312. def ll_fz_device_gray():
  6313. r"""
  6314. Low-level wrapper for `::fz_device_gray()`.
  6315. Retrieve global default colorspaces.
  6316. These return borrowed references that should not be dropped,
  6317. unless they are kept first.
  6318. """
  6319. return _mupdf.ll_fz_device_gray()
  6320. def ll_fz_device_lab():
  6321. r"""Low-level wrapper for `::fz_device_lab()`."""
  6322. return _mupdf.ll_fz_device_lab()
  6323. def ll_fz_device_rgb():
  6324. r"""Low-level wrapper for `::fz_device_rgb()`."""
  6325. return _mupdf.ll_fz_device_rgb()
  6326. def ll_fz_dirname(dir, path, dirsize):
  6327. r"""
  6328. Low-level wrapper for `::fz_dirname()`.
  6329. extract the directory component from a path.
  6330. """
  6331. return _mupdf.ll_fz_dirname(dir, path, dirsize)
  6332. def ll_fz_disable_device_hints(dev, hints):
  6333. r"""
  6334. Low-level wrapper for `::fz_disable_device_hints()`.
  6335. Disable (clear) hint bits within the hint bitfield for a device.
  6336. """
  6337. return _mupdf.ll_fz_disable_device_hints(dev, hints)
  6338. def ll_fz_disable_icc():
  6339. r"""
  6340. Low-level wrapper for `::fz_disable_icc()`.
  6341. Disable icc profile based operation.
  6342. """
  6343. return _mupdf.ll_fz_disable_icc()
  6344. def ll_fz_display_list_is_empty(list):
  6345. r"""
  6346. Low-level wrapper for `::fz_display_list_is_empty()`.
  6347. Check for a display list being empty
  6348. list: The list to check.
  6349. Returns true if empty, false otherwise.
  6350. """
  6351. return _mupdf.ll_fz_display_list_is_empty(list)
  6352. def ll_fz_div255(c, a):
  6353. r"""
  6354. Low-level wrapper for `::fz_div255()`.
  6355. Undo alpha premultiplication.
  6356. """
  6357. return _mupdf.ll_fz_div255(c, a)
  6358. def ll_fz_do_always():
  6359. r"""Low-level wrapper for `::fz_do_always()`."""
  6360. return _mupdf.ll_fz_do_always()
  6361. def ll_fz_do_catch():
  6362. r"""Low-level wrapper for `::fz_do_catch()`."""
  6363. return _mupdf.ll_fz_do_catch()
  6364. def ll_fz_do_try():
  6365. r"""Low-level wrapper for `::fz_do_try()`."""
  6366. return _mupdf.ll_fz_do_try()
  6367. def ll_fz_document_handler_open(handler, stream, accel, dir, recognize_state):
  6368. r"""
  6369. Low-level wrapper for `::fz_document_handler_open()`. Helper for calling `fz_document_handler::open` function pointer via
  6370. Swig from Python/C#.
  6371. """
  6372. return _mupdf.ll_fz_document_handler_open(handler, stream, accel, dir, recognize_state)
  6373. def ll_fz_document_handler_recognize(handler, magic):
  6374. r"""
  6375. Low-level wrapper for `::fz_document_handler_recognize()`. Helper for calling a `fz_document_handler::recognize` function
  6376. pointer via Swig from Python/C#.
  6377. """
  6378. return _mupdf.ll_fz_document_handler_recognize(handler, magic)
  6379. def ll_fz_document_output_intent(doc):
  6380. r"""
  6381. Low-level wrapper for `::fz_document_output_intent()`.
  6382. Find the output intent colorspace if the document has defined
  6383. one.
  6384. Returns a borrowed reference that should not be dropped, unless
  6385. it is kept first.
  6386. """
  6387. return _mupdf.ll_fz_document_output_intent(doc)
  6388. def ll_fz_document_supports_accelerator(doc):
  6389. r"""
  6390. Low-level wrapper for `::fz_document_supports_accelerator()`.
  6391. Query if the document supports the saving of accelerator data.
  6392. """
  6393. return _mupdf.ll_fz_document_supports_accelerator(doc)
  6394. def ll_fz_dom_add_attribute(elt, att, value):
  6395. r"""
  6396. Low-level wrapper for `::fz_dom_add_attribute()`.
  6397. Add an attribute to an element.
  6398. Ownership of att and value remain with the caller.
  6399. """
  6400. return _mupdf.ll_fz_dom_add_attribute(elt, att, value)
  6401. def ll_fz_dom_append_child(parent, child):
  6402. r"""
  6403. Low-level wrapper for `::fz_dom_append_child()`.
  6404. Insert an element as the last child of a parent, unlinking the
  6405. child from its current position if required.
  6406. """
  6407. return _mupdf.ll_fz_dom_append_child(parent, child)
  6408. def ll_fz_dom_attribute(elt, att):
  6409. r"""
  6410. Low-level wrapper for `::fz_dom_attribute()`.
  6411. Retrieve the value of a given attribute from a given element.
  6412. Returns a borrowed pointer to the value or NULL if not found.
  6413. """
  6414. return _mupdf.ll_fz_dom_attribute(elt, att)
  6415. def ll_fz_dom_body(dom):
  6416. r"""
  6417. Low-level wrapper for `::fz_dom_body()`.
  6418. Return a borrowed reference for the 'body' element of
  6419. the given DOM.
  6420. """
  6421. return _mupdf.ll_fz_dom_body(dom)
  6422. def ll_fz_dom_clone(elt):
  6423. r"""
  6424. Low-level wrapper for `::fz_dom_clone()`.
  6425. Clone an element (and its children).
  6426. A borrowed reference to the clone is returned. The clone is not
  6427. yet linked into the DOM.
  6428. """
  6429. return _mupdf.ll_fz_dom_clone(elt)
  6430. def ll_fz_dom_create_element(dom, tag):
  6431. r"""
  6432. Low-level wrapper for `::fz_dom_create_element()`.
  6433. Create an element of a given tag type for the given DOM.
  6434. The element is not linked into the DOM yet.
  6435. """
  6436. return _mupdf.ll_fz_dom_create_element(dom, tag)
  6437. def ll_fz_dom_create_text_node(dom, text):
  6438. r"""
  6439. Low-level wrapper for `::fz_dom_create_text_node()`.
  6440. Create a text node for the given DOM.
  6441. The element is not linked into the DOM yet.
  6442. """
  6443. return _mupdf.ll_fz_dom_create_text_node(dom, text)
  6444. def ll_fz_dom_document_element(dom):
  6445. r"""
  6446. Low-level wrapper for `::fz_dom_document_element()`.
  6447. Return a borrowed reference for the document (the top
  6448. level element) of the DOM.
  6449. """
  6450. return _mupdf.ll_fz_dom_document_element(dom)
  6451. def ll_fz_dom_find(elt, tag, att, match):
  6452. r"""
  6453. Low-level wrapper for `::fz_dom_find()`.
  6454. Find the first element matching the requirements in a depth first traversal from elt.
  6455. The tagname must match tag, unless tag is NULL, when all tag names are considered to match.
  6456. If att is NULL, then all tags match.
  6457. Otherwise:
  6458. If match is NULL, then only nodes that have an att attribute match.
  6459. If match is non-NULL, then only nodes that have an att attribute that matches match match.
  6460. Returns NULL (if no match found), or a borrowed reference to the first matching element.
  6461. """
  6462. return _mupdf.ll_fz_dom_find(elt, tag, att, match)
  6463. def ll_fz_dom_find_next(elt, tag, att, match):
  6464. r"""
  6465. Low-level wrapper for `::fz_dom_find_next()`.
  6466. Find the next element matching the requirements.
  6467. """
  6468. return _mupdf.ll_fz_dom_find_next(elt, tag, att, match)
  6469. def ll_fz_dom_first_child(elt):
  6470. r"""
  6471. Low-level wrapper for `::fz_dom_first_child()`.
  6472. Return a borrowed reference to the first child of a node,
  6473. or NULL if there isn't one.
  6474. """
  6475. return _mupdf.ll_fz_dom_first_child(elt)
  6476. def ll_fz_dom_get_attribute(elt, i, att):
  6477. r"""
  6478. Low-level wrapper for `::fz_dom_get_attribute()`.
  6479. This function has out-params. Python/C# wrappers look like:
  6480. `ll_fz_dom_get_attribute(::fz_xml *elt, int i)` => `(const char *, const char *att)`
  6481. Enumerate through the attributes of an element.
  6482. Call with i=0,1,2,3... to enumerate attributes.
  6483. On return *att and the return value will be NULL if there are not
  6484. that many attributes to read. Otherwise, *att will be filled in
  6485. with a borrowed pointer to the attribute name, and the return
  6486. value will be a borrowed pointer to the value.
  6487. """
  6488. return _mupdf.ll_fz_dom_get_attribute(elt, i, att)
  6489. def ll_fz_dom_insert_after(node, new_elt):
  6490. r"""
  6491. Low-level wrapper for `::fz_dom_insert_after()`.
  6492. Insert an element (new_elt), after another element (node),
  6493. unlinking the new_elt from its current position if required.
  6494. """
  6495. return _mupdf.ll_fz_dom_insert_after(node, new_elt)
  6496. def ll_fz_dom_insert_before(node, new_elt):
  6497. r"""
  6498. Low-level wrapper for `::fz_dom_insert_before()`.
  6499. Insert an element (new_elt), before another element (node),
  6500. unlinking the new_elt from its current position if required.
  6501. """
  6502. return _mupdf.ll_fz_dom_insert_before(node, new_elt)
  6503. def ll_fz_dom_next(elt):
  6504. r"""
  6505. Low-level wrapper for `::fz_dom_next()`.
  6506. Return a borrowed reference to the next sibling of a node,
  6507. or NULL if there isn't one.
  6508. """
  6509. return _mupdf.ll_fz_dom_next(elt)
  6510. def ll_fz_dom_parent(elt):
  6511. r"""
  6512. Low-level wrapper for `::fz_dom_parent()`.
  6513. Return a borrowed reference to the parent of a node,
  6514. or NULL if there isn't one.
  6515. """
  6516. return _mupdf.ll_fz_dom_parent(elt)
  6517. def ll_fz_dom_previous(elt):
  6518. r"""
  6519. Low-level wrapper for `::fz_dom_previous()`.
  6520. Return a borrowed reference to the previous sibling of a node,
  6521. or NULL if there isn't one.
  6522. """
  6523. return _mupdf.ll_fz_dom_previous(elt)
  6524. def ll_fz_dom_remove(elt):
  6525. r"""
  6526. Low-level wrapper for `::fz_dom_remove()`.
  6527. Remove an element from the DOM. The element can be added back elsewhere
  6528. if required.
  6529. No reference counting changes for the element.
  6530. """
  6531. return _mupdf.ll_fz_dom_remove(elt)
  6532. def ll_fz_dom_remove_attribute(elt, att):
  6533. r"""
  6534. Low-level wrapper for `::fz_dom_remove_attribute()`.
  6535. Remove an attribute from an element.
  6536. """
  6537. return _mupdf.ll_fz_dom_remove_attribute(elt, att)
  6538. def ll_fz_draw_story(story, dev, ctm):
  6539. r"""Low-level wrapper for `::fz_draw_story()`."""
  6540. return _mupdf.ll_fz_draw_story(story, dev, ctm)
  6541. def ll_fz_drop_archive(arch):
  6542. r"""
  6543. Low-level wrapper for `::fz_drop_archive()`.
  6544. Drop a reference to an archive.
  6545. When the last reference is dropped, this closes and releases
  6546. any memory or filehandles associated with the archive.
  6547. """
  6548. return _mupdf.ll_fz_drop_archive(arch)
  6549. def ll_fz_drop_band_writer(writer):
  6550. r"""
  6551. Low-level wrapper for `::fz_drop_band_writer()`.
  6552. Drop the reference to the band writer, causing it to be
  6553. destroyed.
  6554. Never throws an exception.
  6555. """
  6556. return _mupdf.ll_fz_drop_band_writer(writer)
  6557. def ll_fz_drop_bitmap(bit):
  6558. r"""
  6559. Low-level wrapper for `::fz_drop_bitmap()`.
  6560. Drop a reference to the bitmap. When the reference count reaches
  6561. zero, the bitmap will be destroyed.
  6562. Never throws exceptions.
  6563. """
  6564. return _mupdf.ll_fz_drop_bitmap(bit)
  6565. def ll_fz_drop_buffer(buf):
  6566. r"""
  6567. Low-level wrapper for `::fz_drop_buffer()`.
  6568. Drop a reference to the buffer. When the reference count reaches
  6569. zero, the buffer is destroyed.
  6570. Never throws exceptions.
  6571. """
  6572. return _mupdf.ll_fz_drop_buffer(buf)
  6573. def ll_fz_drop_colorspace(colorspace):
  6574. r"""
  6575. Low-level wrapper for `::fz_drop_colorspace()`.
  6576. Drops a reference to the colorspace.
  6577. When the reference count reaches zero, the colorspace is
  6578. destroyed.
  6579. """
  6580. return _mupdf.ll_fz_drop_colorspace(colorspace)
  6581. def ll_fz_drop_colorspace_imp(cs_):
  6582. r"""Low-level wrapper for `::fz_drop_colorspace_imp()`."""
  6583. return _mupdf.ll_fz_drop_colorspace_imp(cs_)
  6584. def ll_fz_drop_compressed_buffer(buf):
  6585. r"""
  6586. Low-level wrapper for `::fz_drop_compressed_buffer()`.
  6587. Drop a reference to a compressed buffer. Destroys the buffer
  6588. and frees any storage/other references held by it.
  6589. Never throws exceptions.
  6590. """
  6591. return _mupdf.ll_fz_drop_compressed_buffer(buf)
  6592. def ll_fz_drop_context():
  6593. r"""
  6594. Low-level wrapper for `::fz_drop_context()`.
  6595. Free a context and its global state.
  6596. The context and all of its global state is freed, and any
  6597. buffered warnings are flushed (see fz_flush_warnings). If NULL
  6598. is passed in nothing will happen.
  6599. Must not be called for a context that is being used in an active
  6600. fz_try(), fz_always() or fz_catch() block.
  6601. """
  6602. return _mupdf.ll_fz_drop_context()
  6603. def ll_fz_drop_default_colorspaces(default_cs):
  6604. r"""
  6605. Low-level wrapper for `::fz_drop_default_colorspaces()`.
  6606. Drop a reference to the default colorspaces structure. When the
  6607. reference count reaches 0, the references it holds internally
  6608. to the underlying colorspaces will be dropped, and the structure
  6609. will be destroyed.
  6610. Never throws exceptions.
  6611. """
  6612. return _mupdf.ll_fz_drop_default_colorspaces(default_cs)
  6613. def ll_fz_drop_device(dev):
  6614. r"""
  6615. Low-level wrapper for `::fz_drop_device()`.
  6616. Reduce the reference count on a device. When the reference count
  6617. reaches zero, the device and its resources will be freed.
  6618. Don't forget to call fz_close_device before dropping the device,
  6619. or you may get incomplete output!
  6620. Never throws exceptions.
  6621. """
  6622. return _mupdf.ll_fz_drop_device(dev)
  6623. def ll_fz_drop_display_list(list):
  6624. r"""
  6625. Low-level wrapper for `::fz_drop_display_list()`.
  6626. Decrement the reference count for a display list. When the
  6627. reference count reaches zero, all the references in the display
  6628. list itself are dropped, and the display list is freed.
  6629. Never throws exceptions.
  6630. """
  6631. return _mupdf.ll_fz_drop_display_list(list)
  6632. def ll_fz_drop_document(doc):
  6633. r"""
  6634. Low-level wrapper for `::fz_drop_document()`.
  6635. Decrement the document reference count. When the reference
  6636. count reaches 0, the document and all it's references are
  6637. freed.
  6638. Never throws exceptions.
  6639. """
  6640. return _mupdf.ll_fz_drop_document(doc)
  6641. def ll_fz_drop_document_writer(wri):
  6642. r"""
  6643. Low-level wrapper for `::fz_drop_document_writer()`.
  6644. Called to discard a fz_document_writer.
  6645. This may be called at any time during the process to release all
  6646. the resources owned by the writer.
  6647. Calling drop without having previously called close may leave
  6648. the file in an inconsistent state.
  6649. """
  6650. return _mupdf.ll_fz_drop_document_writer(wri)
  6651. def ll_fz_drop_drawn_tiles_for_document(doc):
  6652. r"""
  6653. Low-level wrapper for `::fz_drop_drawn_tiles_for_document()`.
  6654. Filter the store and throw away any stored tiles drawn for a
  6655. given document.
  6656. """
  6657. return _mupdf.ll_fz_drop_drawn_tiles_for_document(doc)
  6658. def ll_fz_drop_font(font):
  6659. r"""
  6660. Low-level wrapper for `::fz_drop_font()`.
  6661. Drop a reference to a fz_font, destroying the
  6662. font when the last reference is dropped.
  6663. font: The font to drop a reference to.
  6664. """
  6665. return _mupdf.ll_fz_drop_font(font)
  6666. def ll_fz_drop_function(func):
  6667. r"""Low-level wrapper for `::fz_drop_function()`."""
  6668. return _mupdf.ll_fz_drop_function(func)
  6669. def ll_fz_drop_glyph(pix):
  6670. r"""
  6671. Low-level wrapper for `::fz_drop_glyph()`.
  6672. Drop a reference and free a glyph.
  6673. Decrement the reference count for the glyph. When no
  6674. references remain the glyph will be freed.
  6675. """
  6676. return _mupdf.ll_fz_drop_glyph(pix)
  6677. def ll_fz_drop_halftone(ht):
  6678. r"""
  6679. Low-level wrapper for `::fz_drop_halftone()`.
  6680. Drop a reference to the halftone. When the reference count
  6681. reaches zero, the halftone is destroyed.
  6682. Never throws exceptions.
  6683. """
  6684. return _mupdf.ll_fz_drop_halftone(ht)
  6685. def ll_fz_drop_hash_table(table):
  6686. r"""
  6687. Low-level wrapper for `::fz_drop_hash_table()`.
  6688. Destroy the hash table.
  6689. Values are dropped using the drop function.
  6690. """
  6691. return _mupdf.ll_fz_drop_hash_table(table)
  6692. def ll_fz_drop_image(image):
  6693. r"""
  6694. Low-level wrapper for `::fz_drop_image()`.
  6695. Decrement the (normal) reference count for an image. When the
  6696. total (normal + key) reference count reaches zero, the image and
  6697. its resources are freed.
  6698. Never throws exceptions.
  6699. """
  6700. return _mupdf.ll_fz_drop_image(image)
  6701. def ll_fz_drop_image_base(image):
  6702. r"""
  6703. Low-level wrapper for `::fz_drop_image_base()`.
  6704. Internal destructor for the base image class members.
  6705. Exposed to allow derived image classes to be written.
  6706. """
  6707. return _mupdf.ll_fz_drop_image_base(image)
  6708. def ll_fz_drop_image_imp(image):
  6709. r"""
  6710. Low-level wrapper for `::fz_drop_image_imp()`.
  6711. Internal destructor exposed for fz_store integration.
  6712. """
  6713. return _mupdf.ll_fz_drop_image_imp(image)
  6714. def ll_fz_drop_image_store_key(image):
  6715. r"""
  6716. Low-level wrapper for `::fz_drop_image_store_key()`.
  6717. Decrement the store key reference count for an image. When the
  6718. total (normal + key) reference count reaches zero, the image and
  6719. its resources are freed.
  6720. Never throws exceptions.
  6721. """
  6722. return _mupdf.ll_fz_drop_image_store_key(image)
  6723. def ll_fz_drop_imp(p, refs):
  6724. r"""
  6725. Low-level wrapper for `::fz_drop_imp()`.
  6726. This function has out-params. Python/C# wrappers look like:
  6727. `ll_fz_drop_imp(void *p)` => `(int, int refs)`
  6728. """
  6729. return _mupdf.ll_fz_drop_imp(p, refs)
  6730. def ll_fz_drop_imp16(p, refs):
  6731. r"""
  6732. Low-level wrapper for `::fz_drop_imp16()`.
  6733. This function has out-params. Python/C# wrappers look like:
  6734. `ll_fz_drop_imp16(void *p)` => `(int, int16_t refs)`
  6735. """
  6736. return _mupdf.ll_fz_drop_imp16(p, refs)
  6737. def ll_fz_drop_imp8(p, refs):
  6738. r"""Low-level wrapper for `::fz_drop_imp8()`."""
  6739. return _mupdf.ll_fz_drop_imp8(p, refs)
  6740. def ll_fz_drop_jbig2_globals(globals):
  6741. r"""
  6742. Low-level wrapper for `::fz_drop_jbig2_globals()`.
  6743. Decrement the reference count for a jbig2 globals record.
  6744. When the reference count hits zero, the record is freed.
  6745. Never throws an exception.
  6746. """
  6747. return _mupdf.ll_fz_drop_jbig2_globals(globals)
  6748. def ll_fz_drop_jbig2_globals_imp(globals):
  6749. r"""
  6750. Low-level wrapper for `::fz_drop_jbig2_globals_imp()`.
  6751. Special jbig2 globals drop function for use in implementing
  6752. store support.
  6753. """
  6754. return _mupdf.ll_fz_drop_jbig2_globals_imp(globals)
  6755. def ll_fz_drop_key_storable(arg_1):
  6756. r"""
  6757. Low-level wrapper for `::fz_drop_key_storable()`.
  6758. Decrement the (normal) reference count for a storable object.
  6759. When the total reference count hits zero, the drop function for
  6760. that object is called to free the object.
  6761. Never throws exceptions.
  6762. """
  6763. return _mupdf.ll_fz_drop_key_storable(arg_1)
  6764. def ll_fz_drop_key_storable_key(arg_1):
  6765. r"""
  6766. Low-level wrapper for `::fz_drop_key_storable_key()`.
  6767. Decrement the (key) reference count for a storable object.
  6768. When the total reference count hits zero, the drop function for
  6769. that object is called to free the object.
  6770. Never throws exceptions.
  6771. """
  6772. return _mupdf.ll_fz_drop_key_storable_key(arg_1)
  6773. def ll_fz_drop_layout(block):
  6774. r"""
  6775. Low-level wrapper for `::fz_drop_layout()`.
  6776. Drop layout block. Free the pool, and linked blocks.
  6777. Never throws exceptions.
  6778. """
  6779. return _mupdf.ll_fz_drop_layout(block)
  6780. def ll_fz_drop_link(link):
  6781. r"""
  6782. Low-level wrapper for `::fz_drop_link()`.
  6783. Decrement the reference count for a link. When the reference
  6784. count reaches zero, the link is destroyed.
  6785. When a link is freed, the reference for any linked link (next)
  6786. is dropped too, thus an entire linked list of fz_link's can be
  6787. freed by just dropping the head.
  6788. """
  6789. return _mupdf.ll_fz_drop_link(link)
  6790. def ll_fz_drop_outline(outline):
  6791. r"""
  6792. Low-level wrapper for `::fz_drop_outline()`.
  6793. Decrements the reference count. When the reference point
  6794. reaches zero, the outline is freed.
  6795. When freed, it will drop linked outline entries (next and down)
  6796. too, thus a whole outline structure can be dropped by dropping
  6797. the top entry.
  6798. Never throws exceptions.
  6799. """
  6800. return _mupdf.ll_fz_drop_outline(outline)
  6801. def ll_fz_drop_outline_iterator(iter):
  6802. r"""
  6803. Low-level wrapper for `::fz_drop_outline_iterator()`.
  6804. Drop the current iterator.
  6805. """
  6806. return _mupdf.ll_fz_drop_outline_iterator(iter)
  6807. def ll_fz_drop_output(arg_1):
  6808. r"""
  6809. Low-level wrapper for `::fz_drop_output()`.
  6810. Free an output stream. Don't forget to close it first!
  6811. """
  6812. return _mupdf.ll_fz_drop_output(arg_1)
  6813. def ll_fz_drop_page(page):
  6814. r"""
  6815. Low-level wrapper for `::fz_drop_page()`.
  6816. Decrements the reference count for the page. When the reference
  6817. count hits 0, the page and its references are freed.
  6818. Never throws exceptions.
  6819. """
  6820. return _mupdf.ll_fz_drop_page(page)
  6821. def ll_fz_drop_path(path):
  6822. r"""
  6823. Low-level wrapper for `::fz_drop_path()`.
  6824. Decrement the reference count. When the reference count hits
  6825. zero, free the path.
  6826. All paths can be dropped, regardless of their packing type.
  6827. Packed paths do not own the blocks into which they are packed
  6828. so dropping them does not free those blocks.
  6829. Never throws exceptions.
  6830. """
  6831. return _mupdf.ll_fz_drop_path(path)
  6832. def ll_fz_drop_pixmap(pix):
  6833. r"""
  6834. Low-level wrapper for `::fz_drop_pixmap()`.
  6835. Decrement the reference count for the pixmap. When the
  6836. reference count hits 0, the pixmap is freed.
  6837. Never throws exceptions.
  6838. """
  6839. return _mupdf.ll_fz_drop_pixmap(pix)
  6840. def ll_fz_drop_pool(pool):
  6841. r"""
  6842. Low-level wrapper for `::fz_drop_pool()`.
  6843. Drop a pool, freeing and invalidating all storage returned from
  6844. the pool.
  6845. """
  6846. return _mupdf.ll_fz_drop_pool(pool)
  6847. def ll_fz_drop_separations(sep):
  6848. r"""
  6849. Low-level wrapper for `::fz_drop_separations()`.
  6850. Decrement the reference count for a separations structure.
  6851. When the reference count hits zero, the separations structure
  6852. is freed.
  6853. Never throws exceptions.
  6854. """
  6855. return _mupdf.ll_fz_drop_separations(sep)
  6856. def ll_fz_drop_shade(shade):
  6857. r"""
  6858. Low-level wrapper for `::fz_drop_shade()`.
  6859. Decrement the reference count for the shade structure. When
  6860. the reference count hits zero, the structure is freed.
  6861. Never throws exceptions.
  6862. """
  6863. return _mupdf.ll_fz_drop_shade(shade)
  6864. def ll_fz_drop_shade_color_cache(cache):
  6865. r"""Low-level wrapper for `::fz_drop_shade_color_cache()`."""
  6866. return _mupdf.ll_fz_drop_shade_color_cache(cache)
  6867. def ll_fz_drop_shade_imp(shade):
  6868. r"""
  6869. Low-level wrapper for `::fz_drop_shade_imp()`.
  6870. Internal function to destroy a
  6871. shade. Only exposed for use with the fz_store.
  6872. shade: The reference to destroy.
  6873. """
  6874. return _mupdf.ll_fz_drop_shade_imp(shade)
  6875. def ll_fz_drop_stext_page(page):
  6876. r"""Low-level wrapper for `::fz_drop_stext_page()`."""
  6877. return _mupdf.ll_fz_drop_stext_page(page)
  6878. def ll_fz_drop_storable(arg_1):
  6879. r"""
  6880. Low-level wrapper for `::fz_drop_storable()`.
  6881. Decrement the reference count for a storable object. When the
  6882. reference count hits zero, the drop function for that object
  6883. is called to free the object.
  6884. Never throws exceptions.
  6885. """
  6886. return _mupdf.ll_fz_drop_storable(arg_1)
  6887. def ll_fz_drop_store_context():
  6888. r"""
  6889. Low-level wrapper for `::fz_drop_store_context()`.
  6890. Decrement the reference count for the store context. When the
  6891. reference count hits zero, the store context is freed.
  6892. Never throws exceptions.
  6893. """
  6894. return _mupdf.ll_fz_drop_store_context()
  6895. def ll_fz_drop_story(story):
  6896. r"""Low-level wrapper for `::fz_drop_story()`."""
  6897. return _mupdf.ll_fz_drop_story(story)
  6898. def ll_fz_drop_stream(stm):
  6899. r"""
  6900. Low-level wrapper for `::fz_drop_stream()`.
  6901. Decrements the reference count for a stream.
  6902. When the reference count for the stream hits zero, frees the
  6903. storage used for the fz_stream itself, and (usually)
  6904. releases the underlying resources that the stream is based upon
  6905. (depends on the method used to open the stream initially).
  6906. """
  6907. return _mupdf.ll_fz_drop_stream(stm)
  6908. def ll_fz_drop_string(str):
  6909. r"""Low-level wrapper for `::fz_drop_string()`."""
  6910. return _mupdf.ll_fz_drop_string(str)
  6911. def ll_fz_drop_stroke_state(stroke):
  6912. r"""
  6913. Low-level wrapper for `::fz_drop_stroke_state()`.
  6914. Drop a reference to a stroke state structure, destroying the
  6915. structure if it is the last reference.
  6916. """
  6917. return _mupdf.ll_fz_drop_stroke_state(stroke)
  6918. def ll_fz_drop_text(text):
  6919. r"""
  6920. Low-level wrapper for `::fz_drop_text()`.
  6921. Decrement the reference count for the text object. When the
  6922. reference count hits zero, the text object is freed.
  6923. Never throws exceptions.
  6924. """
  6925. return _mupdf.ll_fz_drop_text(text)
  6926. def ll_fz_drop_tree(node, dropfunc):
  6927. r"""
  6928. Low-level wrapper for `::fz_drop_tree()`.
  6929. Drop the tree.
  6930. The storage used by the tree is freed, and each value has
  6931. dropfunc called on it.
  6932. """
  6933. return _mupdf.ll_fz_drop_tree(node, dropfunc)
  6934. def ll_fz_drop_xml(xml):
  6935. r"""
  6936. Low-level wrapper for `::fz_drop_xml()`.
  6937. Drop a reference to the XML. When the last reference is
  6938. dropped, the node and all its children and siblings will
  6939. be freed.
  6940. """
  6941. return _mupdf.ll_fz_drop_xml(xml)
  6942. def ll_fz_drop_zip_writer(zip):
  6943. r"""
  6944. Low-level wrapper for `::fz_drop_zip_writer()`.
  6945. Drop the reference to the zipfile.
  6946. In common with other 'drop' methods, this will never throw an
  6947. exception.
  6948. """
  6949. return _mupdf.ll_fz_drop_zip_writer(zip)
  6950. def ll_fz_dump_glyph_cache_stats(out):
  6951. r"""
  6952. Low-level wrapper for `::fz_dump_glyph_cache_stats()`.
  6953. Dump debug statistics for the glyph cache.
  6954. """
  6955. return _mupdf.ll_fz_dump_glyph_cache_stats(out)
  6956. def ll_fz_duplicate_glyph_names_from_unicode(unicode):
  6957. r"""Low-level wrapper for `::fz_duplicate_glyph_names_from_unicode()`."""
  6958. return _mupdf.ll_fz_duplicate_glyph_names_from_unicode(unicode)
  6959. def ll_fz_empty_store():
  6960. r"""
  6961. Low-level wrapper for `::fz_empty_store()`.
  6962. Evict every item from the store.
  6963. """
  6964. return _mupdf.ll_fz_empty_store()
  6965. def ll_fz_enable_device_hints(dev, hints):
  6966. r"""
  6967. Low-level wrapper for `::fz_enable_device_hints()`.
  6968. Enable (set) hint bits within the hint bitfield for a device.
  6969. """
  6970. return _mupdf.ll_fz_enable_device_hints(dev, hints)
  6971. def ll_fz_enable_icc():
  6972. r"""
  6973. Low-level wrapper for `::fz_enable_icc()`.
  6974. Enable icc profile based operation.
  6975. """
  6976. return _mupdf.ll_fz_enable_icc()
  6977. def ll_fz_encode_character(font, unicode):
  6978. r"""
  6979. Low-level wrapper for `::fz_encode_character()`.
  6980. Find the glyph id for a given unicode
  6981. character within a font.
  6982. font: The font to look for the unicode character in.
  6983. unicode: The unicode character to encode.
  6984. Returns the glyph id for the given unicode value, or 0 if
  6985. unknown.
  6986. """
  6987. return _mupdf.ll_fz_encode_character(font, unicode)
  6988. def ll_fz_encode_character_by_glyph_name(font, glyphname):
  6989. r"""
  6990. Low-level wrapper for `::fz_encode_character_by_glyph_name()`.
  6991. Encode character.
  6992. Either by direct lookup of glyphname within a font, or, failing
  6993. that, by mapping glyphname to unicode and thence to the glyph
  6994. index within the given font.
  6995. Returns zero for type3 fonts.
  6996. """
  6997. return _mupdf.ll_fz_encode_character_by_glyph_name(font, glyphname)
  6998. def ll_fz_encode_character_sc(font, unicode):
  6999. r"""
  7000. Low-level wrapper for `::fz_encode_character_sc()`.
  7001. Encode character, preferring small-caps variant if available.
  7002. font: The font to look for the unicode character in.
  7003. unicode: The unicode character to encode.
  7004. Returns the glyph id for the given unicode value, or 0 if
  7005. unknown.
  7006. """
  7007. return _mupdf.ll_fz_encode_character_sc(font, unicode)
  7008. def ll_fz_encode_character_with_fallback(font, unicode, script, language, out_font):
  7009. r"""
  7010. Low-level wrapper for `::fz_encode_character_with_fallback()`.
  7011. This function has out-params. Python/C# wrappers look like:
  7012. `ll_fz_encode_character_with_fallback(::fz_font *font, int unicode, int script, int language, ::fz_font **out_font)` => `(int)`
  7013. Find the glyph id for
  7014. a given unicode character within a font, falling back to
  7015. an alternative if not found.
  7016. font: The font to look for the unicode character in.
  7017. unicode: The unicode character to encode.
  7018. script: The script in use.
  7019. language: The language in use.
  7020. out_font: The font handle in which the given glyph represents
  7021. the requested unicode character. The caller does not own the
  7022. reference it is passed, so should call fz_keep_font if it is
  7023. not simply to be used immediately.
  7024. Returns the glyph id for the given unicode value in the supplied
  7025. font (and sets *out_font to font) if it is present. Otherwise
  7026. an alternative fallback font (based on script/language) is
  7027. searched for. If the glyph is found therein, *out_font is set
  7028. to this reference, and the glyph reference is returned. If it
  7029. cannot be found anywhere, the function returns 0.
  7030. """
  7031. return _mupdf.ll_fz_encode_character_with_fallback(font, unicode, script, language, out_font)
  7032. def ll_fz_encode_uri(s):
  7033. r"""
  7034. Low-level wrapper for `::fz_encode_uri()`.
  7035. Return a new string representing the provided string encoded as a URI.
  7036. """
  7037. return _mupdf.ll_fz_encode_uri(s)
  7038. def ll_fz_encode_uri_component(s):
  7039. r"""
  7040. Low-level wrapper for `::fz_encode_uri_component()`.
  7041. Return a new string representing the provided string encoded as an URI component.
  7042. This also encodes the special reserved characters (; / ? : @ & = + $ , #).
  7043. """
  7044. return _mupdf.ll_fz_encode_uri_component(s)
  7045. def ll_fz_encode_uri_pathname(s):
  7046. r"""
  7047. Low-level wrapper for `::fz_encode_uri_pathname()`.
  7048. Return a new string representing the provided string encoded as an URI path name.
  7049. This also encodes the special reserved characters except /.
  7050. """
  7051. return _mupdf.ll_fz_encode_uri_pathname(s)
  7052. def ll_fz_end_group(dev):
  7053. r"""Low-level wrapper for `::fz_end_group()`."""
  7054. return _mupdf.ll_fz_end_group(dev)
  7055. def ll_fz_end_layer(dev):
  7056. r"""Low-level wrapper for `::fz_end_layer()`."""
  7057. return _mupdf.ll_fz_end_layer(dev)
  7058. def ll_fz_end_mask(dev):
  7059. r"""Low-level wrapper for `::fz_end_mask()`."""
  7060. return _mupdf.ll_fz_end_mask(dev)
  7061. def ll_fz_end_mask_tr(dev, fn):
  7062. r"""Low-level wrapper for `::fz_end_mask_tr()`."""
  7063. return _mupdf.ll_fz_end_mask_tr(dev, fn)
  7064. def ll_fz_end_metatext(dev):
  7065. r"""Low-level wrapper for `::fz_end_metatext()`."""
  7066. return _mupdf.ll_fz_end_metatext(dev)
  7067. def ll_fz_end_page(wri):
  7068. r"""
  7069. Low-level wrapper for `::fz_end_page()`.
  7070. Called to end the process of writing a page to a
  7071. document.
  7072. """
  7073. return _mupdf.ll_fz_end_page(wri)
  7074. def ll_fz_end_structure(dev):
  7075. r"""Low-level wrapper for `::fz_end_structure()`."""
  7076. return _mupdf.ll_fz_end_structure(dev)
  7077. def ll_fz_end_throw_on_repair():
  7078. r"""Low-level wrapper for `::fz_end_throw_on_repair()`."""
  7079. return _mupdf.ll_fz_end_throw_on_repair()
  7080. def ll_fz_end_tile(dev):
  7081. r"""Low-level wrapper for `::fz_end_tile()`."""
  7082. return _mupdf.ll_fz_end_tile(dev)
  7083. def ll_fz_enumerate_font_cmap(font, cb, opaque):
  7084. r"""
  7085. Low-level wrapper for `::fz_enumerate_font_cmap()`.
  7086. Enumerate a cmap using a callback.
  7087. """
  7088. return _mupdf.ll_fz_enumerate_font_cmap(font, cb, opaque)
  7089. def ll_fz_enumerate_font_cmap2(font):
  7090. r"""Low-level wrapper for `::fz_enumerate_font_cmap2()`. SWIG-friendly wrapper for fz_enumerate_font_cmap()."""
  7091. return _mupdf.ll_fz_enumerate_font_cmap2(font)
  7092. def ll_fz_error_callback(user):
  7093. r"""
  7094. Low-level wrapper for `::fz_error_callback()`.
  7095. This function has out-params. Python/C# wrappers look like:
  7096. `ll_fz_error_callback()` => `(fz_error_cb *, void *user)`
  7097. Retrieve the currently set error callback, or NULL if none
  7098. has been set. Optionally, if user is non-NULL, the user pointer
  7099. given when the warning callback was set is also passed back to
  7100. the caller.
  7101. """
  7102. return _mupdf.ll_fz_error_callback(user)
  7103. def ll_fz_eval_function(func, _in, inlen, out, outlen):
  7104. r"""
  7105. Low-level wrapper for `::fz_eval_function()`.
  7106. This function has out-params. Python/C# wrappers look like:
  7107. `ll_fz_eval_function(::fz_function *func, const float *in, int inlen, int outlen)` => float out
  7108. """
  7109. return _mupdf.ll_fz_eval_function(func, _in, inlen, out, outlen)
  7110. def ll_fz_expand_irect(a, expand):
  7111. r"""Low-level wrapper for `::fz_expand_irect()`."""
  7112. return _mupdf.ll_fz_expand_irect(a, expand)
  7113. def ll_fz_expand_rect(b, expand):
  7114. r"""
  7115. Low-level wrapper for `::fz_expand_rect()`.
  7116. Expand a bbox by a given amount in all directions.
  7117. """
  7118. return _mupdf.ll_fz_expand_rect(b, expand)
  7119. def ll_fz_extract_ttf_from_ttc(font):
  7120. r"""Low-level wrapper for `::fz_extract_ttf_from_ttc()`."""
  7121. return _mupdf.ll_fz_extract_ttf_from_ttc(font)
  7122. def ll_fz_file_exists(path):
  7123. r"""
  7124. Low-level wrapper for `::fz_file_exists()`.
  7125. Return true if the named file exists and is readable.
  7126. """
  7127. return _mupdf.ll_fz_file_exists(path)
  7128. def ll_fz_fill_image(dev, image, ctm, alpha, color_params):
  7129. r"""Low-level wrapper for `::fz_fill_image()`."""
  7130. return _mupdf.ll_fz_fill_image(dev, image, ctm, alpha, color_params)
  7131. def ll_fz_fill_image_mask(dev, image, ctm, colorspace, color, alpha, color_params):
  7132. r"""Low-level wrapper for `::fz_fill_image_mask()`."""
  7133. return _mupdf.ll_fz_fill_image_mask(dev, image, ctm, colorspace, color, alpha, color_params)
  7134. def ll_fz_fill_path(dev, path, even_odd, ctm, colorspace, color, alpha, color_params):
  7135. r"""
  7136. Low-level wrapper for `::fz_fill_path()`.
  7137. Device calls; graphics primitives and containers.
  7138. """
  7139. return _mupdf.ll_fz_fill_path(dev, path, even_odd, ctm, colorspace, color, alpha, color_params)
  7140. def ll_fz_fill_pixmap_from_display_list(list, ctm, pix):
  7141. r"""Low-level wrapper for `::fz_fill_pixmap_from_display_list()`."""
  7142. return _mupdf.ll_fz_fill_pixmap_from_display_list(list, ctm, pix)
  7143. def ll_fz_fill_pixmap_with_color(pix, colorspace, color, color_params):
  7144. r"""
  7145. Low-level wrapper for `::fz_fill_pixmap_with_color()`.
  7146. This function has out-params. Python/C# wrappers look like:
  7147. `ll_fz_fill_pixmap_with_color(::fz_pixmap *pix, ::fz_colorspace *colorspace, ::fz_color_params color_params)` => float color
  7148. Fill pixmap with solid color.
  7149. """
  7150. return _mupdf.ll_fz_fill_pixmap_with_color(pix, colorspace, color, color_params)
  7151. def ll_fz_fill_shade(dev, shade, ctm, alpha, color_params):
  7152. r"""Low-level wrapper for `::fz_fill_shade()`."""
  7153. return _mupdf.ll_fz_fill_shade(dev, shade, ctm, alpha, color_params)
  7154. def ll_fz_fill_text(dev, text, ctm, colorspace, color, alpha, color_params):
  7155. r"""Low-level wrapper for `::fz_fill_text()`."""
  7156. return _mupdf.ll_fz_fill_text(dev, text, ctm, colorspace, color, alpha, color_params)
  7157. def ll_fz_filter_store(fn, arg, type):
  7158. r"""
  7159. Low-level wrapper for `::fz_filter_store()`.
  7160. Filter every element in the store with a matching type with the
  7161. given function.
  7162. If the function returns 1 for an element, drop the element.
  7163. """
  7164. return _mupdf.ll_fz_filter_store(fn, arg, type)
  7165. def ll_fz_find_item(drop, key, type):
  7166. r"""
  7167. Low-level wrapper for `::fz_find_item()`.
  7168. Find an item within the store.
  7169. drop: The function used to free the value (to ensure we get a
  7170. value of the correct type).
  7171. key: The key used to index the item.
  7172. type: Functions used to manipulate the key.
  7173. Returns NULL for not found, otherwise returns a pointer to the
  7174. value indexed by key to which a reference has been taken.
  7175. """
  7176. return _mupdf.ll_fz_find_item(drop, key, type)
  7177. def ll_fz_find_table_within_bounds(page, bounds):
  7178. r"""
  7179. Low-level wrapper for `::fz_find_table_within_bounds()`.
  7180. Interpret the bounded contents of a given stext page as
  7181. a table.
  7182. The page contents will be rewritten to contain a Table
  7183. structure with the identified content in it.
  7184. This uses the same logic as for fz_table_hunt, without the
  7185. actual hunting. fz_table_hunt hunts to find possible bounds
  7186. for multiple tables on the page; this routine just finds a
  7187. single table contained within the given rectangle.
  7188. Returns the stext_block list that contains the content of
  7189. the table.
  7190. """
  7191. return _mupdf.ll_fz_find_table_within_bounds(page, bounds)
  7192. def ll_fz_flush_output(out):
  7193. r"""
  7194. Low-level wrapper for `::fz_flush_output()`.
  7195. Flush unwritten data.
  7196. """
  7197. return _mupdf.ll_fz_flush_output(out)
  7198. def ll_fz_flush_warnings():
  7199. r"""
  7200. Low-level wrapper for `::fz_flush_warnings()`.
  7201. Flush any repeated warnings.
  7202. Repeated warnings are buffered, counted and eventually printed
  7203. along with the number of repetitions. Call fz_flush_warnings
  7204. to force printing of the latest buffered warning and the
  7205. number of repetitions, for example to make sure that all
  7206. warnings are printed before exiting an application.
  7207. """
  7208. return _mupdf.ll_fz_flush_warnings()
  7209. def ll_fz_font_ascender(font):
  7210. r"""
  7211. Low-level wrapper for `::fz_font_ascender()`.
  7212. Retrieve font ascender in ems.
  7213. """
  7214. return _mupdf.ll_fz_font_ascender(font)
  7215. def ll_fz_font_bbox(font):
  7216. r"""
  7217. Low-level wrapper for `::fz_font_bbox()`.
  7218. Retrieve the font bbox.
  7219. font: The font to query.
  7220. Returns the font bbox by value; it is valid only if
  7221. fz_font_flags(font)->invalid_bbox is zero.
  7222. """
  7223. return _mupdf.ll_fz_font_bbox(font)
  7224. def ll_fz_font_descender(font):
  7225. r"""
  7226. Low-level wrapper for `::fz_font_descender()`.
  7227. Retrieve font descender in ems.
  7228. """
  7229. return _mupdf.ll_fz_font_descender(font)
  7230. def ll_fz_font_digest(font, digest):
  7231. r"""
  7232. Low-level wrapper for `::fz_font_digest()`.
  7233. Retrieve the MD5 digest for the font's data.
  7234. """
  7235. return _mupdf.ll_fz_font_digest(font, digest)
  7236. def ll_fz_font_flags(font):
  7237. r"""
  7238. Low-level wrapper for `::fz_font_flags()`.
  7239. Retrieve a pointer to the font flags
  7240. for a given font. These can then be updated as required.
  7241. font: The font to query
  7242. Returns a pointer to the flags structure (or NULL, if
  7243. the font is NULL).
  7244. """
  7245. return _mupdf.ll_fz_font_flags(font)
  7246. def ll_fz_font_ft_face(font):
  7247. r"""
  7248. Low-level wrapper for `::fz_font_ft_face()`.
  7249. Retrieve the FT_Face handle
  7250. for the font.
  7251. font: The font to query
  7252. Returns the FT_Face handle for the font, or NULL
  7253. if not a freetype handled font. (Cast to void *
  7254. to avoid nasty header exposure).
  7255. """
  7256. return _mupdf.ll_fz_font_ft_face(font)
  7257. def ll_fz_font_is_bold(font):
  7258. r"""
  7259. Low-level wrapper for `::fz_font_is_bold()`.
  7260. Query whether the font flags say that this font is bold.
  7261. """
  7262. return _mupdf.ll_fz_font_is_bold(font)
  7263. def ll_fz_font_is_italic(font):
  7264. r"""
  7265. Low-level wrapper for `::fz_font_is_italic()`.
  7266. Query whether the font flags say that this font is italic.
  7267. """
  7268. return _mupdf.ll_fz_font_is_italic(font)
  7269. def ll_fz_font_is_monospaced(font):
  7270. r"""
  7271. Low-level wrapper for `::fz_font_is_monospaced()`.
  7272. Query whether the font flags say that this font is monospaced.
  7273. """
  7274. return _mupdf.ll_fz_font_is_monospaced(font)
  7275. def ll_fz_font_is_serif(font):
  7276. r"""
  7277. Low-level wrapper for `::fz_font_is_serif()`.
  7278. Query whether the font flags say that this font is serif.
  7279. """
  7280. return _mupdf.ll_fz_font_is_serif(font)
  7281. def ll_fz_font_name(font):
  7282. r"""
  7283. Low-level wrapper for `::fz_font_name()`.
  7284. Retrieve a pointer to the name of the font.
  7285. font: The font to query.
  7286. Returns a pointer to an internal copy of the font name.
  7287. Will never be NULL, but may be the empty string.
  7288. """
  7289. return _mupdf.ll_fz_font_name(font)
  7290. def ll_fz_font_shaper_data(font):
  7291. r"""
  7292. Low-level wrapper for `::fz_font_shaper_data()`.
  7293. Retrieve a pointer to the shaper data
  7294. structure for the given font.
  7295. font: The font to query.
  7296. Returns a pointer to the shaper data structure (or NULL if
  7297. font is NULL).
  7298. """
  7299. return _mupdf.ll_fz_font_shaper_data(font)
  7300. def ll_fz_font_t3_procs(font):
  7301. r"""
  7302. Low-level wrapper for `::fz_font_t3_procs()`.
  7303. Retrieve the Type3 procs
  7304. for a font.
  7305. font: The font to query
  7306. Returns the t3_procs pointer. Will be NULL for a
  7307. non type-3 font.
  7308. """
  7309. return _mupdf.ll_fz_font_t3_procs(font)
  7310. def ll_fz_format_double(fmt, value):
  7311. r"""
  7312. Low-level wrapper for `::fz_format_double()`. Swig-friendly and typesafe way to do fz_snprintf(fmt, value). `fmt`
  7313. must end with one of 'efg' otherwise we throw an exception.
  7314. """
  7315. return _mupdf.ll_fz_format_double(fmt, value)
  7316. def ll_fz_format_link_uri(doc, dest):
  7317. r"""
  7318. Low-level wrapper for `::fz_format_link_uri()`.
  7319. Format an internal link to a page number, location, and possible viewing parameters,
  7320. suitable for use with fz_create_link.
  7321. Returns a newly allocated string that the caller must free.
  7322. """
  7323. return _mupdf.ll_fz_format_link_uri(doc, dest)
  7324. def ll_fz_format_output_path(path, size, fmt, page):
  7325. r"""
  7326. Low-level wrapper for `::fz_format_output_path()`.
  7327. create output file name using a template.
  7328. If the path contains %[0-9]*d, the first such pattern will be
  7329. replaced with the page number. If the template does not contain
  7330. such a pattern, the page number will be inserted before the
  7331. filename extension. If the template does not have a filename
  7332. extension, the page number will be added to the end.
  7333. """
  7334. return _mupdf.ll_fz_format_output_path(path, size, fmt, page)
  7335. def ll_fz_free(p):
  7336. r"""
  7337. Low-level wrapper for `::fz_free()`.
  7338. Free a previously allocated block of memory.
  7339. fz_free(ctx, NULL) does nothing.
  7340. Never throws exceptions.
  7341. """
  7342. return _mupdf.ll_fz_free(p)
  7343. def ll_fz_free_aligned(p):
  7344. r"""
  7345. Low-level wrapper for `::fz_free_aligned()`.
  7346. fz_free equivalent, for blocks allocated via fz_malloc_aligned.
  7347. """
  7348. return _mupdf.ll_fz_free_aligned(p)
  7349. def ll_fz_ft_lock():
  7350. r"""Low-level wrapper for `::fz_ft_lock()`."""
  7351. return _mupdf.ll_fz_ft_lock()
  7352. def ll_fz_ft_lock_held():
  7353. r"""Low-level wrapper for `::fz_ft_lock_held()`."""
  7354. return _mupdf.ll_fz_ft_lock_held()
  7355. def ll_fz_ft_unlock():
  7356. r"""Low-level wrapper for `::fz_ft_unlock()`."""
  7357. return _mupdf.ll_fz_ft_unlock()
  7358. def ll_fz_function_size(func):
  7359. r"""Low-level wrapper for `::fz_function_size()`."""
  7360. return _mupdf.ll_fz_function_size(func)
  7361. def ll_fz_gamma_pixmap(pix, gamma):
  7362. r"""
  7363. Low-level wrapper for `::fz_gamma_pixmap()`.
  7364. Apply gamma correction to a pixmap. All components
  7365. of all pixels are modified (except alpha, which is unchanged).
  7366. gamma: The gamma value to apply; 1.0 for no change.
  7367. """
  7368. return _mupdf.ll_fz_gamma_pixmap(pix, gamma)
  7369. def ll_fz_generate_transition(tpix, opix, npix, time, trans):
  7370. r"""
  7371. Low-level wrapper for `::fz_generate_transition()`.
  7372. Generate a frame of a transition.
  7373. tpix: Target pixmap
  7374. opix: Old pixmap
  7375. npix: New pixmap
  7376. time: Position within the transition (0 to 256)
  7377. trans: Transition details
  7378. Returns 1 if successfully generated a frame.
  7379. Note: Pixmaps must include alpha.
  7380. """
  7381. return _mupdf.ll_fz_generate_transition(tpix, opix, npix, time, trans)
  7382. def ll_fz_get_glyph_name(font, glyph, buf, size):
  7383. r"""
  7384. Low-level wrapper for `::fz_get_glyph_name()`.
  7385. Find the name of a glyph
  7386. font: The font to look for the glyph in.
  7387. glyph: The glyph id to look for.
  7388. buf: Pointer to a buffer for the name to be inserted into.
  7389. size: The size of the buffer.
  7390. If a font contains a name table, then the name of the glyph
  7391. will be returned in the supplied buffer. Otherwise a name
  7392. is synthesised. The name will be truncated to fit in
  7393. the buffer.
  7394. """
  7395. return _mupdf.ll_fz_get_glyph_name(font, glyph, buf, size)
  7396. def ll_fz_get_glyph_name2(font, glyph):
  7397. r"""
  7398. Low-level wrapper for `::fz_get_glyph_name2()`.
  7399. C++ alternative to fz_get_glyph_name() that returns information in a std::string.
  7400. """
  7401. return _mupdf.ll_fz_get_glyph_name2(font, glyph)
  7402. def ll_fz_get_pixmap_from_image(image, subarea, ctm, w, h):
  7403. r"""
  7404. Low-level wrapper for `::fz_get_pixmap_from_image()`.
  7405. This function has out-params. Python/C# wrappers look like:
  7406. `ll_fz_get_pixmap_from_image(::fz_image *image, const ::fz_irect *subarea, ::fz_matrix *ctm)` => `(fz_pixmap *, int w, int h)`
  7407. Called to get a handle to a pixmap from an image.
  7408. image: The image to retrieve a pixmap from.
  7409. subarea: The subarea of the image that we actually care about
  7410. (or NULL to indicate the whole image).
  7411. ctm: Optional, unless subarea is given. If given, then on
  7412. entry this is the transform that will be applied to the complete
  7413. image. It should be updated on exit to the transform to apply to
  7414. the given subarea of the image. This is used to calculate the
  7415. desired width/height for subsampling.
  7416. w: If non-NULL, a pointer to an int to be updated on exit to the
  7417. width (in pixels) that the scaled output will cover.
  7418. h: If non-NULL, a pointer to an int to be updated on exit to the
  7419. height (in pixels) that the scaled output will cover.
  7420. Returns a non NULL kept pixmap pointer. May throw exceptions.
  7421. """
  7422. return _mupdf.ll_fz_get_pixmap_from_image(image, subarea, ctm, w, h)
  7423. def ll_fz_get_unscaled_pixmap_from_image(image):
  7424. r"""
  7425. Low-level wrapper for `::fz_get_unscaled_pixmap_from_image()`.
  7426. Calls fz_get_pixmap_from_image() with ctm, subarea, w and h all set to NULL.
  7427. """
  7428. return _mupdf.ll_fz_get_unscaled_pixmap_from_image(image)
  7429. def ll_fz_getopt(nargc, nargv, ostr):
  7430. r"""
  7431. Low-level wrapper for `::fz_getopt()`.
  7432. This function has out-params. Python/C# wrappers look like:
  7433. `ll_fz_getopt(int nargc, const char *ostr)` => `(int, char *nargv)`
  7434. Identical to fz_getopt_long, but with a NULL longopts field, signifying no long
  7435. options.
  7436. """
  7437. return _mupdf.ll_fz_getopt(nargc, nargv, ostr)
  7438. def ll_fz_getopt_long(nargc, nargv, ostr, longopts):
  7439. r"""
  7440. Low-level wrapper for `::fz_getopt_long()`.
  7441. This function has out-params. Python/C# wrappers look like:
  7442. `ll_fz_getopt_long(int nargc, const char *ostr, const ::fz_getopt_long_options *longopts)` => `(int, char *nargv)`
  7443. Simple functions/variables for use in tools.
  7444. ostr = option string. Comprises single letter options, followed by : if there
  7445. is an argument to the option.
  7446. longopts: NULL (indicating no long options), or a pointer to an array of
  7447. longoptions, terminated by an entry with option == NULL.
  7448. In the event of matching a single char option, this function will normally
  7449. return the char. The exception to this is when the option requires an
  7450. argument and none is supplied; in this case we return ':'.
  7451. In the event of matching a long option, this function returns 0, with fz_optlong
  7452. set to point to the matching option.
  7453. A long option entry may be followed with : to indicate there is an argument to the
  7454. option. If the need for an argument is specified in this way, and no argument is
  7455. given, an error will be displayed and argument processing will stop. If an argument
  7456. is given, and the long option record contains a non-null flag pointer, then the code
  7457. will decode the argument and fill in that flag pointer. Specifically,
  7458. case-insensitive matches to 'yes', 'no', 'true' and 'false' will cause a value of 0
  7459. or 1 as appropriate to be written; failing this the arg will be interpreted as a
  7460. decimal integer using atoi.
  7461. A long option entry may be followed by an list of options (e.g. myoption=foo|bar|baz)
  7462. and the option will be passed to fz_opt_from_list. The return value of that will be
  7463. placed in fz_optitem. If the return value of that function is -1, then an error will
  7464. be displayed and argument processing will stop.
  7465. In the event of reaching the end of the arg list or '--', this function returns EOF.
  7466. In the event of failing to match anything, an error is printed, and we return '?'.
  7467. If an argument is expected for the option, then fz_optarg will be returned pointing
  7468. at the start of the argument. Examples of supported argument formats: '-r500', '-r 500',
  7469. '--resolution 500', '--resolution=500'.
  7470. """
  7471. return _mupdf.ll_fz_getopt_long(nargc, nargv, ostr, longopts)
  7472. def ll_fz_glyph_bbox(glyph):
  7473. r"""
  7474. Low-level wrapper for `::fz_glyph_bbox()`.
  7475. Return the bounding box of the glyph in pixels.
  7476. """
  7477. return _mupdf.ll_fz_glyph_bbox(glyph)
  7478. def ll_fz_glyph_bbox_no_ctx(src):
  7479. r"""Low-level wrapper for `::fz_glyph_bbox_no_ctx()`."""
  7480. return _mupdf.ll_fz_glyph_bbox_no_ctx(src)
  7481. def ll_fz_glyph_cacheable(font, gid):
  7482. r"""
  7483. Low-level wrapper for `::fz_glyph_cacheable()`.
  7484. Determine if a given glyph in a font
  7485. is cacheable. Certain glyphs in a type 3 font cannot safely
  7486. be cached, as their appearance depends on the enclosing
  7487. graphic state.
  7488. font: The font to look for the glyph in.
  7489. gif: The glyph to query.
  7490. Returns non-zero if cacheable, 0 if not.
  7491. """
  7492. return _mupdf.ll_fz_glyph_cacheable(font, gid)
  7493. def ll_fz_glyph_height(glyph):
  7494. r"""
  7495. Low-level wrapper for `::fz_glyph_height()`.
  7496. Return the height of the glyph in pixels.
  7497. """
  7498. return _mupdf.ll_fz_glyph_height(glyph)
  7499. def ll_fz_glyph_name_from_unicode_sc(unicode):
  7500. r"""Low-level wrapper for `::fz_glyph_name_from_unicode_sc()`."""
  7501. return _mupdf.ll_fz_glyph_name_from_unicode_sc(unicode)
  7502. def ll_fz_glyph_width(glyph):
  7503. r"""
  7504. Low-level wrapper for `::fz_glyph_width()`.
  7505. Return the width of the glyph in pixels.
  7506. """
  7507. return _mupdf.ll_fz_glyph_width(glyph)
  7508. def ll_fz_graphics_aa_level():
  7509. r"""
  7510. Low-level wrapper for `::fz_graphics_aa_level()`.
  7511. Get the number of bits of antialiasing we are
  7512. using for graphics. Between 0 and 8.
  7513. """
  7514. return _mupdf.ll_fz_graphics_aa_level()
  7515. def ll_fz_graphics_min_line_width():
  7516. r"""
  7517. Low-level wrapper for `::fz_graphics_min_line_width()`.
  7518. Get the minimum line width to be
  7519. used for stroked lines.
  7520. min_line_width: The minimum line width to use (in pixels).
  7521. """
  7522. return _mupdf.ll_fz_graphics_min_line_width()
  7523. def ll_fz_gridfit_matrix(as_tiled, m):
  7524. r"""
  7525. Low-level wrapper for `::fz_gridfit_matrix()`.
  7526. Grid fit a matrix.
  7527. as_tiled = 0 => adjust the matrix so that the image of the unit
  7528. square completely covers any pixel that was touched by the
  7529. image of the unit square under the original matrix.
  7530. as_tiled = 1 => adjust the matrix so that the corners of the
  7531. image of the unit square align with the closest integer corner
  7532. of the image of the unit square under the original matrix.
  7533. """
  7534. return _mupdf.ll_fz_gridfit_matrix(as_tiled, m)
  7535. def ll_fz_grisu(f, s, exp):
  7536. r"""
  7537. Low-level wrapper for `::fz_grisu()`.
  7538. This function has out-params. Python/C# wrappers look like:
  7539. `ll_fz_grisu(float f, char *s)` => `(int, int exp)`
  7540. """
  7541. return _mupdf.ll_fz_grisu(f, s, exp)
  7542. def ll_fz_grow_buffer(buf):
  7543. r"""
  7544. Low-level wrapper for `::fz_grow_buffer()`.
  7545. Make some space within a buffer (i.e. ensure that
  7546. capacity > size).
  7547. """
  7548. return _mupdf.ll_fz_grow_buffer(buf)
  7549. def ll_fz_has_archive_entry(arch, name):
  7550. r"""
  7551. Low-level wrapper for `::fz_has_archive_entry()`.
  7552. Check if entry by given name exists.
  7553. If named entry does not exist 0 will be returned, if it does
  7554. exist 1 is returned.
  7555. name: Entry name to look for, this must be an exact match to
  7556. the entry name in the archive.
  7557. """
  7558. return _mupdf.ll_fz_has_archive_entry(arch, name)
  7559. def ll_fz_has_option(opts, key, val):
  7560. r"""
  7561. Low-level wrapper for `::fz_has_option()`.
  7562. This function has out-params. Python/C# wrappers look like:
  7563. `ll_fz_has_option(const char *opts, const char *key)` => `(int, const char *val)`
  7564. Look for a given option (key) in the opts string. Return 1 if
  7565. it has it, and update *val to point to the value within opts.
  7566. """
  7567. return _mupdf.ll_fz_has_option(opts, key, val)
  7568. def ll_fz_has_permission(doc, p):
  7569. r"""
  7570. Low-level wrapper for `::fz_has_permission()`.
  7571. Check permission flags on document.
  7572. """
  7573. return _mupdf.ll_fz_has_permission(doc, p)
  7574. def ll_fz_hash_filter(table, state, callback):
  7575. r"""
  7576. Low-level wrapper for `::fz_hash_filter()`.
  7577. Iterate over the entries in a hash table, removing all the ones where callback returns true.
  7578. Does NOT free the value of the entry, so the caller is expected to take care of this.
  7579. """
  7580. return _mupdf.ll_fz_hash_filter(table, state, callback)
  7581. def ll_fz_hash_find(table, key):
  7582. r"""
  7583. Low-level wrapper for `::fz_hash_find()`.
  7584. Search for a matching hash within the table, and return the
  7585. associated value.
  7586. """
  7587. return _mupdf.ll_fz_hash_find(table, key)
  7588. def ll_fz_hash_for_each(table, state, callback):
  7589. r"""
  7590. Low-level wrapper for `::fz_hash_for_each()`.
  7591. Iterate over the entries in a hash table.
  7592. """
  7593. return _mupdf.ll_fz_hash_for_each(table, state, callback)
  7594. def ll_fz_hash_insert(table, key, val):
  7595. r"""
  7596. Low-level wrapper for `::fz_hash_insert()`.
  7597. Insert a new key/value pair into the hash table.
  7598. If an existing entry with the same key is found, no change is
  7599. made to the hash table, and a pointer to the existing value is
  7600. returned.
  7601. If no existing entry with the same key is found, ownership of
  7602. val passes in, key is copied, and NULL is returned.
  7603. """
  7604. return _mupdf.ll_fz_hash_insert(table, key, val)
  7605. def ll_fz_hash_remove(table, key):
  7606. r"""
  7607. Low-level wrapper for `::fz_hash_remove()`.
  7608. Remove the entry for a given key.
  7609. The value is NOT freed, so the caller is expected to take care
  7610. of this.
  7611. """
  7612. return _mupdf.ll_fz_hash_remove(table, key)
  7613. def ll_fz_hb_lock():
  7614. r"""
  7615. Low-level wrapper for `::fz_hb_lock()`.
  7616. Lock against Harfbuzz being called
  7617. simultaneously in several threads. This reuses
  7618. FZ_LOCK_FREETYPE.
  7619. """
  7620. return _mupdf.ll_fz_hb_lock()
  7621. def ll_fz_hb_unlock():
  7622. r"""
  7623. Low-level wrapper for `::fz_hb_unlock()`.
  7624. Unlock after a Harfbuzz call. This reuses
  7625. FZ_LOCK_FREETYPE.
  7626. """
  7627. return _mupdf.ll_fz_hb_unlock()
  7628. def ll_fz_highlight_selection(page, a, b, quads, max_quads):
  7629. r"""
  7630. Low-level wrapper for `::fz_highlight_selection()`.
  7631. Return a list of quads to highlight lines inside the selection
  7632. points.
  7633. """
  7634. return _mupdf.ll_fz_highlight_selection(page, a, b, quads, max_quads)
  7635. def ll_fz_highlight_selection2(page, a, b, max_quads):
  7636. r"""
  7637. Low-level wrapper for `::fz_highlight_selection2()`.
  7638. C++ alternative to fz_highlight_selection() that returns quads in a
  7639. std::vector.
  7640. """
  7641. return _mupdf.ll_fz_highlight_selection2(page, a, b, max_quads)
  7642. def ll_fz_ignore_error():
  7643. r"""Low-level wrapper for `::fz_ignore_error()`."""
  7644. return _mupdf.ll_fz_ignore_error()
  7645. def ll_fz_ignore_text(dev, text, ctm):
  7646. r"""Low-level wrapper for `::fz_ignore_text()`."""
  7647. return _mupdf.ll_fz_ignore_text(dev, text, ctm)
  7648. def ll_fz_image_orientation(image):
  7649. r"""
  7650. Low-level wrapper for `::fz_image_orientation()`.
  7651. Request the natural orientation of an image.
  7652. This is for images (such as JPEG) that can contain internal
  7653. specifications of rotation/flips. This is ignored by all the
  7654. internal decode/rendering routines, but can be used by callers
  7655. (such as the image document handler) to respect such
  7656. specifications.
  7657. The values used by MuPDF are as follows, with the equivalent
  7658. Exif specifications given for information:
  7659. 0: Undefined
  7660. 1: 0 degree ccw rotation. (Exif = 1)
  7661. 2: 90 degree ccw rotation. (Exif = 8)
  7662. 3: 180 degree ccw rotation. (Exif = 3)
  7663. 4: 270 degree ccw rotation. (Exif = 6)
  7664. 5: flip on X. (Exif = 2)
  7665. 6: flip on X, then rotate ccw by 90 degrees. (Exif = 5)
  7666. 7: flip on X, then rotate ccw by 180 degrees. (Exif = 4)
  7667. 8: flip on X, then rotate ccw by 270 degrees. (Exif = 7)
  7668. """
  7669. return _mupdf.ll_fz_image_orientation(image)
  7670. def ll_fz_image_orientation_matrix(image):
  7671. r"""Low-level wrapper for `::fz_image_orientation_matrix()`."""
  7672. return _mupdf.ll_fz_image_orientation_matrix(image)
  7673. def ll_fz_image_resolution(image, xres, yres):
  7674. r"""
  7675. Low-level wrapper for `::fz_image_resolution()`.
  7676. This function has out-params. Python/C# wrappers look like:
  7677. `ll_fz_image_resolution(::fz_image *image)` => `(int xres, int yres)`
  7678. Request the natural resolution
  7679. of an image.
  7680. xres, yres: Pointers to ints to be updated with the
  7681. natural resolution of an image (or a sensible default
  7682. if not encoded).
  7683. """
  7684. return _mupdf.ll_fz_image_resolution(image, xres, yres)
  7685. def ll_fz_image_size(im):
  7686. r"""
  7687. Low-level wrapper for `::fz_image_size()`.
  7688. Return the size of the storage used by an image.
  7689. """
  7690. return _mupdf.ll_fz_image_size(im)
  7691. def ll_fz_image_type_name(type):
  7692. r"""
  7693. Low-level wrapper for `::fz_image_type_name()`.
  7694. Map from FZ_IMAGE_* value to string.
  7695. The returned string is static and therefore must not be freed.
  7696. """
  7697. return _mupdf.ll_fz_image_type_name(type)
  7698. def ll_fz_include_point_in_rect(r, p):
  7699. r"""
  7700. Low-level wrapper for `::fz_include_point_in_rect()`.
  7701. Expand a bbox to include a given point.
  7702. To create a rectangle that encompasses a sequence of points, the
  7703. rectangle must first be set to be the empty rectangle at one of
  7704. the points before including the others.
  7705. """
  7706. return _mupdf.ll_fz_include_point_in_rect(r, p)
  7707. def ll_fz_init_text_decoder(dec, encoding):
  7708. r"""Low-level wrapper for `::fz_init_text_decoder()`."""
  7709. return _mupdf.ll_fz_init_text_decoder(dec, encoding)
  7710. def ll_fz_install_load_system_font_funcs(f, f_cjk, f_fallback):
  7711. r"""
  7712. Low-level wrapper for `::fz_install_load_system_font_funcs()`.
  7713. Install functions to allow MuPDF to request fonts from the
  7714. system.
  7715. Only one set of hooks can be in use at a time.
  7716. """
  7717. return _mupdf.ll_fz_install_load_system_font_funcs(f, f_cjk, f_fallback)
  7718. def ll_fz_install_load_system_font_funcs2(args):
  7719. r"""
  7720. Low-level wrapper for `::fz_install_load_system_font_funcs2()`.
  7721. Alternative to fz_install_load_system_font_funcs() that takes args in a
  7722. struct, to allow use from Python/C# via Swig Directors.
  7723. """
  7724. return _mupdf.ll_fz_install_load_system_font_funcs2(args)
  7725. def ll_fz_int2_heap_debug(heap):
  7726. r"""Low-level wrapper for `::fz_int2_heap_debug()`."""
  7727. return _mupdf.ll_fz_int2_heap_debug(heap)
  7728. def ll_fz_int2_heap_dump(out, heap):
  7729. r"""Low-level wrapper for `::fz_int2_heap_dump()`."""
  7730. return _mupdf.ll_fz_int2_heap_dump(out, heap)
  7731. def ll_fz_int2_heap_insert(heap, v):
  7732. r"""Low-level wrapper for `::fz_int2_heap_insert()`."""
  7733. return _mupdf.ll_fz_int2_heap_insert(heap, v)
  7734. def ll_fz_int2_heap_sort(heap):
  7735. r"""Low-level wrapper for `::fz_int2_heap_sort()`."""
  7736. return _mupdf.ll_fz_int2_heap_sort(heap)
  7737. def ll_fz_int2_heap_uniq(heap):
  7738. r"""Low-level wrapper for `::fz_int2_heap_uniq()`."""
  7739. return _mupdf.ll_fz_int2_heap_uniq(heap)
  7740. def ll_fz_int_heap_debug(heap):
  7741. r"""Low-level wrapper for `::fz_int_heap_debug()`."""
  7742. return _mupdf.ll_fz_int_heap_debug(heap)
  7743. def ll_fz_int_heap_dump(out, heap):
  7744. r"""Low-level wrapper for `::fz_int_heap_dump()`."""
  7745. return _mupdf.ll_fz_int_heap_dump(out, heap)
  7746. def ll_fz_int_heap_insert(heap, v):
  7747. r"""Low-level wrapper for `::fz_int_heap_insert()`."""
  7748. return _mupdf.ll_fz_int_heap_insert(heap, v)
  7749. def ll_fz_int_heap_sort(heap):
  7750. r"""Low-level wrapper for `::fz_int_heap_sort()`."""
  7751. return _mupdf.ll_fz_int_heap_sort(heap)
  7752. def ll_fz_int_heap_uniq(heap):
  7753. r"""Low-level wrapper for `::fz_int_heap_uniq()`."""
  7754. return _mupdf.ll_fz_int_heap_uniq(heap)
  7755. def ll_fz_intersect_irect(a, b):
  7756. r"""
  7757. Low-level wrapper for `::fz_intersect_irect()`.
  7758. Compute intersection of two bounding boxes.
  7759. Similar to fz_intersect_rect but operates on two bounding
  7760. boxes instead of two rectangles.
  7761. """
  7762. return _mupdf.ll_fz_intersect_irect(a, b)
  7763. def ll_fz_intersect_rect(a, b):
  7764. r"""
  7765. Low-level wrapper for `::fz_intersect_rect()`.
  7766. Compute intersection of two rectangles.
  7767. Given two rectangles, update the first to be the smallest
  7768. axis-aligned rectangle that covers the area covered by both
  7769. given rectangles. If either rectangle is empty then the
  7770. intersection is also empty. If either rectangle is infinite
  7771. then the intersection is simply the non-infinite rectangle.
  7772. Should both rectangles be infinite, then the intersection is
  7773. also infinite.
  7774. """
  7775. return _mupdf.ll_fz_intersect_rect(a, b)
  7776. def ll_fz_intptr_heap_debug(heap):
  7777. r"""Low-level wrapper for `::fz_intptr_heap_debug()`."""
  7778. return _mupdf.ll_fz_intptr_heap_debug(heap)
  7779. def ll_fz_intptr_heap_dump(out, heap):
  7780. r"""Low-level wrapper for `::fz_intptr_heap_dump()`."""
  7781. return _mupdf.ll_fz_intptr_heap_dump(out, heap)
  7782. def ll_fz_intptr_heap_insert(heap, v):
  7783. r"""Low-level wrapper for `::fz_intptr_heap_insert()`."""
  7784. return _mupdf.ll_fz_intptr_heap_insert(heap, v)
  7785. def ll_fz_intptr_heap_sort(heap):
  7786. r"""Low-level wrapper for `::fz_intptr_heap_sort()`."""
  7787. return _mupdf.ll_fz_intptr_heap_sort(heap)
  7788. def ll_fz_intptr_heap_uniq(heap):
  7789. r"""Low-level wrapper for `::fz_intptr_heap_uniq()`."""
  7790. return _mupdf.ll_fz_intptr_heap_uniq(heap)
  7791. def ll_fz_invert_bitmap(bmp):
  7792. r"""
  7793. Low-level wrapper for `::fz_invert_bitmap()`.
  7794. Invert bitmap.
  7795. Never throws exceptions.
  7796. """
  7797. return _mupdf.ll_fz_invert_bitmap(bmp)
  7798. def ll_fz_invert_matrix(matrix):
  7799. r"""
  7800. Low-level wrapper for `::fz_invert_matrix()`.
  7801. Create an inverse matrix.
  7802. matrix: Matrix to invert. A degenerate matrix, where the
  7803. determinant is equal to zero, can not be inverted and the
  7804. original matrix is returned instead.
  7805. Returns inverse.
  7806. """
  7807. return _mupdf.ll_fz_invert_matrix(matrix)
  7808. def ll_fz_invert_pixmap(pix):
  7809. r"""
  7810. Low-level wrapper for `::fz_invert_pixmap()`.
  7811. Invert all the pixels in a pixmap. All components (process and
  7812. spots) of all pixels are inverted (except alpha, which is
  7813. unchanged).
  7814. """
  7815. return _mupdf.ll_fz_invert_pixmap(pix)
  7816. def ll_fz_invert_pixmap_alpha(pix):
  7817. r"""
  7818. Low-level wrapper for `::fz_invert_pixmap_alpha()`.
  7819. Invert the alpha of all the pixels in a pixmap.
  7820. """
  7821. return _mupdf.ll_fz_invert_pixmap_alpha(pix)
  7822. def ll_fz_invert_pixmap_luminance(pix):
  7823. r"""
  7824. Low-level wrapper for `::fz_invert_pixmap_luminance()`.
  7825. Transform the pixels in a pixmap so that luminance of each
  7826. pixel is inverted, and the chrominance remains unchanged (as
  7827. much as accuracy allows).
  7828. All components of all pixels are inverted (except alpha, which
  7829. is unchanged). Only supports Grey and RGB bitmaps.
  7830. """
  7831. return _mupdf.ll_fz_invert_pixmap_luminance(pix)
  7832. def ll_fz_invert_pixmap_raw(pix):
  7833. r"""
  7834. Low-level wrapper for `::fz_invert_pixmap_raw()`.
  7835. Invert all the pixels in a non-premultiplied pixmap in a
  7836. very naive manner.
  7837. """
  7838. return _mupdf.ll_fz_invert_pixmap_raw(pix)
  7839. def ll_fz_invert_pixmap_rect(image, rect):
  7840. r"""
  7841. Low-level wrapper for `::fz_invert_pixmap_rect()`.
  7842. Invert all the pixels in a given rectangle of a (premultiplied)
  7843. pixmap. All components of all pixels in the rectangle are
  7844. inverted (except alpha, which is unchanged).
  7845. """
  7846. return _mupdf.ll_fz_invert_pixmap_rect(image, rect)
  7847. def ll_fz_irect_from_rect(rect):
  7848. r"""
  7849. Low-level wrapper for `::fz_irect_from_rect()`.
  7850. Convert a rect into the minimal bounding box
  7851. that covers the rectangle.
  7852. Coordinates in a bounding box are integers, so rounding of the
  7853. rects coordinates takes place. The top left corner is rounded
  7854. upwards and left while the bottom right corner is rounded
  7855. downwards and to the right.
  7856. """
  7857. return _mupdf.ll_fz_irect_from_rect(rect)
  7858. def ll_fz_irect_height(r):
  7859. r"""
  7860. Low-level wrapper for `::fz_irect_height()`.
  7861. Return the height of an irect. Invalid irects return 0.
  7862. """
  7863. return _mupdf.ll_fz_irect_height(r)
  7864. def ll_fz_irect_width(r):
  7865. r"""
  7866. Low-level wrapper for `::fz_irect_width()`.
  7867. Return the width of an irect. Invalid irects return 0.
  7868. """
  7869. return _mupdf.ll_fz_irect_width(r)
  7870. def ll_fz_is_cfb_archive(file):
  7871. r"""
  7872. Low-level wrapper for `::fz_is_cfb_archive()`.
  7873. Detect if stream object is a cfb archive.
  7874. Assumes that the stream object is seekable.
  7875. """
  7876. return _mupdf.ll_fz_is_cfb_archive(file)
  7877. def ll_fz_is_directory(path):
  7878. r"""
  7879. Low-level wrapper for `::fz_is_directory()`.
  7880. Determine if a given path is a directory.
  7881. In the case of the path not existing, or having no access
  7882. we will return 0.
  7883. """
  7884. return _mupdf.ll_fz_is_directory(path)
  7885. def ll_fz_is_document_reflowable(doc):
  7886. r"""
  7887. Low-level wrapper for `::fz_is_document_reflowable()`.
  7888. Is the document reflowable.
  7889. Returns 1 to indicate reflowable documents, otherwise 0.
  7890. """
  7891. return _mupdf.ll_fz_is_document_reflowable(doc)
  7892. def ll_fz_is_empty_irect(r):
  7893. r"""Low-level wrapper for `::fz_is_empty_irect()`."""
  7894. return _mupdf.ll_fz_is_empty_irect(r)
  7895. def ll_fz_is_empty_quad(q):
  7896. r"""
  7897. Low-level wrapper for `::fz_is_empty_quad()`.
  7898. Is a quad empty?
  7899. """
  7900. return _mupdf.ll_fz_is_empty_quad(q)
  7901. def ll_fz_is_empty_rect(r):
  7902. r"""
  7903. Low-level wrapper for `::fz_is_empty_rect()`.
  7904. Check if rectangle is empty.
  7905. An empty rectangle is defined as one whose area is zero.
  7906. All invalid rectangles are empty.
  7907. """
  7908. return _mupdf.ll_fz_is_empty_rect(r)
  7909. def ll_fz_is_eof(stm):
  7910. r"""
  7911. Low-level wrapper for `::fz_is_eof()`.
  7912. Query if the stream has reached EOF (during normal bytewise
  7913. reading).
  7914. See fz_is_eof_bits for the equivalent function for bitwise
  7915. reading.
  7916. """
  7917. return _mupdf.ll_fz_is_eof(stm)
  7918. def ll_fz_is_eof_bits(stm):
  7919. r"""
  7920. Low-level wrapper for `::fz_is_eof_bits()`.
  7921. Query if the stream has reached EOF (during bitwise
  7922. reading).
  7923. See fz_is_eof for the equivalent function for bytewise
  7924. reading.
  7925. """
  7926. return _mupdf.ll_fz_is_eof_bits(stm)
  7927. def ll_fz_is_external_link(uri):
  7928. r"""
  7929. Low-level wrapper for `::fz_is_external_link()`.
  7930. Query whether a link is external to a document (determined by
  7931. uri containing a ':', intended to match with '://' which
  7932. separates the scheme from the scheme specific parts in URIs).
  7933. """
  7934. return _mupdf.ll_fz_is_external_link(uri)
  7935. def ll_fz_is_identity(m):
  7936. r"""Low-level wrapper for `::fz_is_identity()`."""
  7937. return _mupdf.ll_fz_is_identity(m)
  7938. def ll_fz_is_infinite_irect(r):
  7939. r"""
  7940. Low-level wrapper for `::fz_is_infinite_irect()`.
  7941. Check if an integer rectangle
  7942. is infinite.
  7943. """
  7944. return _mupdf.ll_fz_is_infinite_irect(r)
  7945. def ll_fz_is_infinite_quad(q):
  7946. r"""
  7947. Low-level wrapper for `::fz_is_infinite_quad()`.
  7948. Is a quad infinite?
  7949. """
  7950. return _mupdf.ll_fz_is_infinite_quad(q)
  7951. def ll_fz_is_infinite_rect(r):
  7952. r"""
  7953. Low-level wrapper for `::fz_is_infinite_rect()`.
  7954. Check if rectangle is infinite.
  7955. """
  7956. return _mupdf.ll_fz_is_infinite_rect(r)
  7957. def ll_fz_is_irect_inside_irect(inner, outer):
  7958. r"""
  7959. Low-level wrapper for `::fz_is_irect_inside_irect()`.
  7960. Inclusion test for irects.
  7961. rects are assumed to be both open or both closed.
  7962. No invalid rect can include any other rect.
  7963. No invalid rect can be included by any rect.
  7964. Empty (point) rects can include themselves.
  7965. Empty (line) rects can include many (subline) rects.
  7966. """
  7967. return _mupdf.ll_fz_is_irect_inside_irect(inner, outer)
  7968. def ll_fz_is_libarchive_archive(file):
  7969. r"""
  7970. Low-level wrapper for `::fz_is_libarchive_archive()`.
  7971. Detect if stream object is an archive supported by libarchive.
  7972. Assumes that the stream object is seekable.
  7973. """
  7974. return _mupdf.ll_fz_is_libarchive_archive(file)
  7975. def ll_fz_is_lossy_image(image):
  7976. r"""Low-level wrapper for `::fz_is_lossy_image()`."""
  7977. return _mupdf.ll_fz_is_lossy_image(image)
  7978. def ll_fz_is_page_range(s):
  7979. r"""
  7980. Low-level wrapper for `::fz_is_page_range()`.
  7981. Check and parse string into page ranges:
  7982. ,?(-?+|N)(-(-?+|N))?/
  7983. """
  7984. return _mupdf.ll_fz_is_page_range(s)
  7985. def ll_fz_is_pixmap_monochrome(pixmap):
  7986. r"""
  7987. Low-level wrapper for `::fz_is_pixmap_monochrome()`.
  7988. Check if the pixmap is a 1-channel image containing samples with
  7989. only values 0 and 255
  7990. """
  7991. return _mupdf.ll_fz_is_pixmap_monochrome(pixmap)
  7992. def ll_fz_is_point_inside_irect(x, y, r):
  7993. r"""
  7994. Low-level wrapper for `::fz_is_point_inside_irect()`.
  7995. Inclusion test for irects. (Rect is assumed to be open, i.e.
  7996. top right corner is not included).
  7997. """
  7998. return _mupdf.ll_fz_is_point_inside_irect(x, y, r)
  7999. def ll_fz_is_point_inside_quad(p, q):
  8000. r"""
  8001. Low-level wrapper for `::fz_is_point_inside_quad()`.
  8002. Inclusion test for quads.
  8003. """
  8004. return _mupdf.ll_fz_is_point_inside_quad(p, q)
  8005. def ll_fz_is_point_inside_rect(p, r):
  8006. r"""
  8007. Low-level wrapper for `::fz_is_point_inside_rect()`.
  8008. Inclusion test for rects. (Rect is assumed to be open, i.e.
  8009. top right corner is not included).
  8010. """
  8011. return _mupdf.ll_fz_is_point_inside_rect(p, r)
  8012. def ll_fz_is_pow2(a):
  8013. r"""Low-level wrapper for `::fz_is_pow2()`."""
  8014. return _mupdf.ll_fz_is_pow2(a)
  8015. def ll_fz_is_quad_inside_quad(needle, haystack):
  8016. r"""
  8017. Low-level wrapper for `::fz_is_quad_inside_quad()`.
  8018. Inclusion test for quad in quad.
  8019. This may break down if quads are not 'well formed'.
  8020. """
  8021. return _mupdf.ll_fz_is_quad_inside_quad(needle, haystack)
  8022. def ll_fz_is_quad_intersecting_quad(a, b):
  8023. r"""
  8024. Low-level wrapper for `::fz_is_quad_intersecting_quad()`.
  8025. Intersection test for quads.
  8026. This may break down if quads are not 'well formed'.
  8027. """
  8028. return _mupdf.ll_fz_is_quad_intersecting_quad(a, b)
  8029. def ll_fz_is_rect_inside_rect(inner, outer):
  8030. r"""
  8031. Low-level wrapper for `::fz_is_rect_inside_rect()`.
  8032. Inclusion test for rects.
  8033. rects are assumed to be both open or both closed.
  8034. No invalid rect can include any other rect.
  8035. No invalid rect can be included by any rect.
  8036. Empty (point) rects can include themselves.
  8037. Empty (line) rects can include many (subline) rects.
  8038. """
  8039. return _mupdf.ll_fz_is_rect_inside_rect(inner, outer)
  8040. def ll_fz_is_rectilinear(m):
  8041. r"""
  8042. Low-level wrapper for `::fz_is_rectilinear()`.
  8043. Check if a transformation is rectilinear.
  8044. Rectilinear means that no shearing is present and that any
  8045. rotations present are a multiple of 90 degrees. Usually this
  8046. is used to make sure that axis-aligned rectangles before the
  8047. transformation are still axis-aligned rectangles afterwards.
  8048. """
  8049. return _mupdf.ll_fz_is_rectilinear(m)
  8050. def ll_fz_is_tar_archive(file):
  8051. r"""
  8052. Low-level wrapper for `::fz_is_tar_archive()`.
  8053. Detect if stream object is a tar archive.
  8054. Assumes that the stream object is seekable.
  8055. """
  8056. return _mupdf.ll_fz_is_tar_archive(file)
  8057. def ll_fz_is_valid_blend_colorspace(cs):
  8058. r"""
  8059. Low-level wrapper for `::fz_is_valid_blend_colorspace()`.
  8060. Check to see that a colorspace is appropriate to be used as
  8061. a blending space (i.e. only grey, rgb or cmyk).
  8062. """
  8063. return _mupdf.ll_fz_is_valid_blend_colorspace(cs)
  8064. def ll_fz_is_valid_irect(r):
  8065. r"""
  8066. Low-level wrapper for `::fz_is_valid_irect()`.
  8067. Check if an integer rectangle is valid.
  8068. """
  8069. return _mupdf.ll_fz_is_valid_irect(r)
  8070. def ll_fz_is_valid_quad(q):
  8071. r"""
  8072. Low-level wrapper for `::fz_is_valid_quad()`.
  8073. Is a quad valid?
  8074. """
  8075. return _mupdf.ll_fz_is_valid_quad(q)
  8076. def ll_fz_is_valid_rect(r):
  8077. r"""
  8078. Low-level wrapper for `::fz_is_valid_rect()`.
  8079. Check if rectangle is valid.
  8080. """
  8081. return _mupdf.ll_fz_is_valid_rect(r)
  8082. def ll_fz_is_valid_xml_char(c):
  8083. r"""Low-level wrapper for `::fz_is_valid_xml_char()`."""
  8084. return _mupdf.ll_fz_is_valid_xml_char(c)
  8085. def ll_fz_is_valid_xml_string(s):
  8086. r"""Low-level wrapper for `::fz_is_valid_xml_string()`."""
  8087. return _mupdf.ll_fz_is_valid_xml_string(s)
  8088. def ll_fz_is_zip_archive(file):
  8089. r"""
  8090. Low-level wrapper for `::fz_is_zip_archive()`.
  8091. Detect if stream object is a zip archive.
  8092. Assumes that the stream object is seekable.
  8093. """
  8094. return _mupdf.ll_fz_is_zip_archive(file)
  8095. def ll_fz_iso8859_1_from_unicode(u):
  8096. r"""Low-level wrapper for `::fz_iso8859_1_from_unicode()`."""
  8097. return _mupdf.ll_fz_iso8859_1_from_unicode(u)
  8098. def ll_fz_iso8859_7_from_unicode(u):
  8099. r"""Low-level wrapper for `::fz_iso8859_7_from_unicode()`."""
  8100. return _mupdf.ll_fz_iso8859_7_from_unicode(u)
  8101. def ll_fz_jbig2_globals_data(globals):
  8102. r"""
  8103. Low-level wrapper for `::fz_jbig2_globals_data()`.
  8104. Return buffer containing jbig2 globals data stream.
  8105. """
  8106. return _mupdf.ll_fz_jbig2_globals_data(globals)
  8107. def ll_fz_json_array_get(array, ix):
  8108. r"""Low-level wrapper for `::fz_json_array_get()`."""
  8109. return _mupdf.ll_fz_json_array_get(array, ix)
  8110. def ll_fz_json_array_length(array):
  8111. r"""Low-level wrapper for `::fz_json_array_length()`."""
  8112. return _mupdf.ll_fz_json_array_length(array)
  8113. def ll_fz_json_array_push(pool, array, item):
  8114. r"""Low-level wrapper for `::fz_json_array_push()`."""
  8115. return _mupdf.ll_fz_json_array_push(pool, array, item)
  8116. def ll_fz_json_is_array(json):
  8117. r"""Low-level wrapper for `::fz_json_is_array()`."""
  8118. return _mupdf.ll_fz_json_is_array(json)
  8119. def ll_fz_json_is_boolean(json):
  8120. r"""Low-level wrapper for `::fz_json_is_boolean()`."""
  8121. return _mupdf.ll_fz_json_is_boolean(json)
  8122. def ll_fz_json_is_null(json):
  8123. r"""Low-level wrapper for `::fz_json_is_null()`."""
  8124. return _mupdf.ll_fz_json_is_null(json)
  8125. def ll_fz_json_is_number(json):
  8126. r"""Low-level wrapper for `::fz_json_is_number()`."""
  8127. return _mupdf.ll_fz_json_is_number(json)
  8128. def ll_fz_json_is_object(json):
  8129. r"""Low-level wrapper for `::fz_json_is_object()`."""
  8130. return _mupdf.ll_fz_json_is_object(json)
  8131. def ll_fz_json_is_string(json):
  8132. r"""Low-level wrapper for `::fz_json_is_string()`."""
  8133. return _mupdf.ll_fz_json_is_string(json)
  8134. def ll_fz_json_new_array(pool):
  8135. r"""Low-level wrapper for `::fz_json_new_array()`."""
  8136. return _mupdf.ll_fz_json_new_array(pool)
  8137. def ll_fz_json_new_boolean(pool, x):
  8138. r"""Low-level wrapper for `::fz_json_new_boolean()`."""
  8139. return _mupdf.ll_fz_json_new_boolean(pool, x)
  8140. def ll_fz_json_new_null(pool):
  8141. r"""Low-level wrapper for `::fz_json_new_null()`."""
  8142. return _mupdf.ll_fz_json_new_null(pool)
  8143. def ll_fz_json_new_number(pool, number):
  8144. r"""Low-level wrapper for `::fz_json_new_number()`."""
  8145. return _mupdf.ll_fz_json_new_number(pool, number)
  8146. def ll_fz_json_new_object(pool):
  8147. r"""Low-level wrapper for `::fz_json_new_object()`."""
  8148. return _mupdf.ll_fz_json_new_object(pool)
  8149. def ll_fz_json_new_string(pool, string):
  8150. r"""Low-level wrapper for `::fz_json_new_string()`."""
  8151. return _mupdf.ll_fz_json_new_string(pool, string)
  8152. def ll_fz_json_object_get(object, key):
  8153. r"""Low-level wrapper for `::fz_json_object_get()`."""
  8154. return _mupdf.ll_fz_json_object_get(object, key)
  8155. def ll_fz_json_object_set(pool, object, key, item):
  8156. r"""Low-level wrapper for `::fz_json_object_set()`."""
  8157. return _mupdf.ll_fz_json_object_set(pool, object, key, item)
  8158. def ll_fz_json_to_boolean(json):
  8159. r"""Low-level wrapper for `::fz_json_to_boolean()`."""
  8160. return _mupdf.ll_fz_json_to_boolean(json)
  8161. def ll_fz_json_to_number(json):
  8162. r"""Low-level wrapper for `::fz_json_to_number()`."""
  8163. return _mupdf.ll_fz_json_to_number(json)
  8164. def ll_fz_json_to_string(json):
  8165. r"""Low-level wrapper for `::fz_json_to_string()`."""
  8166. return _mupdf.ll_fz_json_to_string(json)
  8167. def ll_fz_keep_archive(arch):
  8168. r"""
  8169. Low-level wrapper for `::fz_keep_archive()`.
  8170. Keep a reference to an archive.
  8171. """
  8172. return _mupdf.ll_fz_keep_archive(arch)
  8173. def ll_fz_keep_bitmap(bit):
  8174. r"""
  8175. Low-level wrapper for `::fz_keep_bitmap()`.
  8176. Take an additional reference to the bitmap. The same pointer
  8177. is returned.
  8178. Never throws exceptions.
  8179. """
  8180. return _mupdf.ll_fz_keep_bitmap(bit)
  8181. def ll_fz_keep_buffer(buf):
  8182. r"""
  8183. Low-level wrapper for `::fz_keep_buffer()`.
  8184. Take an additional reference to the buffer. The same pointer
  8185. is returned.
  8186. Never throws exceptions.
  8187. """
  8188. return _mupdf.ll_fz_keep_buffer(buf)
  8189. def ll_fz_keep_colorspace(colorspace):
  8190. r"""
  8191. Low-level wrapper for `::fz_keep_colorspace()`.
  8192. Increment the reference count for the colorspace.
  8193. Returns the same pointer. Never throws an exception.
  8194. """
  8195. return _mupdf.ll_fz_keep_colorspace(colorspace)
  8196. def ll_fz_keep_compressed_buffer(cbuf):
  8197. r"""
  8198. Low-level wrapper for `::fz_keep_compressed_buffer()`.
  8199. Take a reference to an fz_compressed_buffer.
  8200. """
  8201. return _mupdf.ll_fz_keep_compressed_buffer(cbuf)
  8202. def ll_fz_keep_default_colorspaces(default_cs):
  8203. r"""
  8204. Low-level wrapper for `::fz_keep_default_colorspaces()`.
  8205. Keep an additional reference to the default colorspaces
  8206. structure.
  8207. Never throws exceptions.
  8208. """
  8209. return _mupdf.ll_fz_keep_default_colorspaces(default_cs)
  8210. def ll_fz_keep_device(dev):
  8211. r"""
  8212. Low-level wrapper for `::fz_keep_device()`.
  8213. Increment the reference count for a device. Returns the same
  8214. pointer.
  8215. Never throws exceptions.
  8216. """
  8217. return _mupdf.ll_fz_keep_device(dev)
  8218. def ll_fz_keep_display_list(list):
  8219. r"""
  8220. Low-level wrapper for `::fz_keep_display_list()`.
  8221. Increment the reference count for a display list. Returns the
  8222. same pointer.
  8223. Never throws exceptions.
  8224. """
  8225. return _mupdf.ll_fz_keep_display_list(list)
  8226. def ll_fz_keep_document(doc):
  8227. r"""
  8228. Low-level wrapper for `::fz_keep_document()`.
  8229. Increment the document reference count. The same pointer is
  8230. returned.
  8231. Never throws exceptions.
  8232. """
  8233. return _mupdf.ll_fz_keep_document(doc)
  8234. def ll_fz_keep_font(font):
  8235. r"""
  8236. Low-level wrapper for `::fz_keep_font()`.
  8237. Add a reference to an existing fz_font.
  8238. font: The font to add a reference to.
  8239. Returns the same font.
  8240. """
  8241. return _mupdf.ll_fz_keep_font(font)
  8242. def ll_fz_keep_function(func):
  8243. r"""Low-level wrapper for `::fz_keep_function()`."""
  8244. return _mupdf.ll_fz_keep_function(func)
  8245. def ll_fz_keep_glyph(pix):
  8246. r"""
  8247. Low-level wrapper for `::fz_keep_glyph()`.
  8248. Take a reference to a glyph.
  8249. pix: The glyph to increment the reference for.
  8250. Returns pix.
  8251. """
  8252. return _mupdf.ll_fz_keep_glyph(pix)
  8253. def ll_fz_keep_halftone(half):
  8254. r"""
  8255. Low-level wrapper for `::fz_keep_halftone()`.
  8256. Take an additional reference to the halftone. The same pointer
  8257. is returned.
  8258. Never throws exceptions.
  8259. """
  8260. return _mupdf.ll_fz_keep_halftone(half)
  8261. def ll_fz_keep_image(image):
  8262. r"""
  8263. Low-level wrapper for `::fz_keep_image()`.
  8264. Increment the (normal) reference count for an image. Returns the
  8265. same pointer.
  8266. Never throws exceptions.
  8267. """
  8268. return _mupdf.ll_fz_keep_image(image)
  8269. def ll_fz_keep_image_store_key(image):
  8270. r"""
  8271. Low-level wrapper for `::fz_keep_image_store_key()`.
  8272. Increment the store key reference for an image. Returns the same
  8273. pointer. (This is the count of references for an image held by
  8274. keys in the image store).
  8275. Never throws exceptions.
  8276. """
  8277. return _mupdf.ll_fz_keep_image_store_key(image)
  8278. def ll_fz_keep_imp(p, refs):
  8279. r"""
  8280. Low-level wrapper for `::fz_keep_imp()`.
  8281. This function has out-params. Python/C# wrappers look like:
  8282. `ll_fz_keep_imp(void *p)` => `(void *, int refs)`
  8283. """
  8284. return _mupdf.ll_fz_keep_imp(p, refs)
  8285. def ll_fz_keep_imp16(p, refs):
  8286. r"""
  8287. Low-level wrapper for `::fz_keep_imp16()`.
  8288. This function has out-params. Python/C# wrappers look like:
  8289. `ll_fz_keep_imp16(void *p)` => `(void *, int16_t refs)`
  8290. """
  8291. return _mupdf.ll_fz_keep_imp16(p, refs)
  8292. def ll_fz_keep_imp8(p, refs):
  8293. r"""Low-level wrapper for `::fz_keep_imp8()`."""
  8294. return _mupdf.ll_fz_keep_imp8(p, refs)
  8295. def ll_fz_keep_imp8_locked(p, refs):
  8296. r"""Low-level wrapper for `::fz_keep_imp8_locked()`."""
  8297. return _mupdf.ll_fz_keep_imp8_locked(p, refs)
  8298. def ll_fz_keep_imp_locked(p, refs):
  8299. r"""
  8300. Low-level wrapper for `::fz_keep_imp_locked()`.
  8301. This function has out-params. Python/C# wrappers look like:
  8302. `ll_fz_keep_imp_locked(void *p)` => `(void *, int refs)`
  8303. """
  8304. return _mupdf.ll_fz_keep_imp_locked(p, refs)
  8305. def ll_fz_keep_jbig2_globals(globals):
  8306. r"""
  8307. Low-level wrapper for `::fz_keep_jbig2_globals()`.
  8308. Increment the reference count for a jbig2 globals record.
  8309. Never throws an exception.
  8310. """
  8311. return _mupdf.ll_fz_keep_jbig2_globals(globals)
  8312. def ll_fz_keep_key_storable(arg_1):
  8313. r"""
  8314. Low-level wrapper for `::fz_keep_key_storable()`.
  8315. Increment the (normal) reference count for a key storable
  8316. object. Returns the same pointer.
  8317. Never throws exceptions.
  8318. """
  8319. return _mupdf.ll_fz_keep_key_storable(arg_1)
  8320. def ll_fz_keep_key_storable_key(arg_1):
  8321. r"""
  8322. Low-level wrapper for `::fz_keep_key_storable_key()`.
  8323. Increment the (key) reference count for a key storable
  8324. object. Returns the same pointer.
  8325. Never throws exceptions.
  8326. """
  8327. return _mupdf.ll_fz_keep_key_storable_key(arg_1)
  8328. def ll_fz_keep_link(link):
  8329. r"""
  8330. Low-level wrapper for `::fz_keep_link()`.
  8331. Increment the reference count for a link. The same pointer is
  8332. returned.
  8333. Never throws exceptions.
  8334. """
  8335. return _mupdf.ll_fz_keep_link(link)
  8336. def ll_fz_keep_outline(outline):
  8337. r"""
  8338. Low-level wrapper for `::fz_keep_outline()`.
  8339. Increment the reference count. Returns the same pointer.
  8340. Never throws exceptions.
  8341. """
  8342. return _mupdf.ll_fz_keep_outline(outline)
  8343. def ll_fz_keep_page(page):
  8344. r"""
  8345. Low-level wrapper for `::fz_keep_page()`.
  8346. Increment the reference count for the page. Returns the same
  8347. pointer.
  8348. Never throws exceptions.
  8349. """
  8350. return _mupdf.ll_fz_keep_page(page)
  8351. def ll_fz_keep_path(path):
  8352. r"""
  8353. Low-level wrapper for `::fz_keep_path()`.
  8354. Increment the reference count. Returns the same pointer.
  8355. All paths can be kept, regardless of their packing type.
  8356. Never throws exceptions.
  8357. """
  8358. return _mupdf.ll_fz_keep_path(path)
  8359. def ll_fz_keep_pixmap(pix):
  8360. r"""
  8361. Low-level wrapper for `::fz_keep_pixmap()`.
  8362. Increment the reference count for the pixmap. The same pointer
  8363. is returned.
  8364. Never throws exceptions.
  8365. """
  8366. return _mupdf.ll_fz_keep_pixmap(pix)
  8367. def ll_fz_keep_separations(sep):
  8368. r"""
  8369. Low-level wrapper for `::fz_keep_separations()`.
  8370. Increment the reference count for a separations structure.
  8371. Returns the same pointer.
  8372. Never throws exceptions.
  8373. """
  8374. return _mupdf.ll_fz_keep_separations(sep)
  8375. def ll_fz_keep_shade(shade):
  8376. r"""
  8377. Low-level wrapper for `::fz_keep_shade()`.
  8378. Increment the reference count for the shade structure. The
  8379. same pointer is returned.
  8380. Never throws exceptions.
  8381. """
  8382. return _mupdf.ll_fz_keep_shade(shade)
  8383. def ll_fz_keep_storable(arg_1):
  8384. r"""
  8385. Low-level wrapper for `::fz_keep_storable()`.
  8386. Increment the reference count for a storable object.
  8387. Returns the same pointer.
  8388. Never throws exceptions.
  8389. """
  8390. return _mupdf.ll_fz_keep_storable(arg_1)
  8391. def ll_fz_keep_store_context():
  8392. r"""
  8393. Low-level wrapper for `::fz_keep_store_context()`.
  8394. Increment the reference count for the store context. Returns
  8395. the same pointer.
  8396. Never throws exceptions.
  8397. """
  8398. return _mupdf.ll_fz_keep_store_context()
  8399. def ll_fz_keep_stream(stm):
  8400. r"""
  8401. Low-level wrapper for `::fz_keep_stream()`.
  8402. Increments the reference count for a stream. Returns the same
  8403. pointer.
  8404. Never throws exceptions.
  8405. """
  8406. return _mupdf.ll_fz_keep_stream(stm)
  8407. def ll_fz_keep_string(str):
  8408. r"""Low-level wrapper for `::fz_keep_string()`."""
  8409. return _mupdf.ll_fz_keep_string(str)
  8410. def ll_fz_keep_stroke_state(stroke):
  8411. r"""
  8412. Low-level wrapper for `::fz_keep_stroke_state()`.
  8413. Take an additional reference to a stroke state structure.
  8414. No modifications should be carried out on a stroke
  8415. state to which more than one reference is held, as
  8416. this can cause race conditions.
  8417. """
  8418. return _mupdf.ll_fz_keep_stroke_state(stroke)
  8419. def ll_fz_keep_text(text):
  8420. r"""
  8421. Low-level wrapper for `::fz_keep_text()`.
  8422. Increment the reference count for the text object. The same
  8423. pointer is returned.
  8424. Never throws exceptions.
  8425. """
  8426. return _mupdf.ll_fz_keep_text(text)
  8427. def ll_fz_keep_xml(xml):
  8428. r"""
  8429. Low-level wrapper for `::fz_keep_xml()`.
  8430. Add a reference to the XML.
  8431. """
  8432. return _mupdf.ll_fz_keep_xml(xml)
  8433. def ll_fz_koi8u_from_unicode(u):
  8434. r"""Low-level wrapper for `::fz_koi8u_from_unicode()`."""
  8435. return _mupdf.ll_fz_koi8u_from_unicode(u)
  8436. def ll_fz_last_page(doc):
  8437. r"""
  8438. Low-level wrapper for `::fz_last_page()`.
  8439. Function to get the location for the last page in the document.
  8440. Using this can be far more efficient in some cases than calling
  8441. fz_count_pages and using the page number.
  8442. """
  8443. return _mupdf.ll_fz_last_page(doc)
  8444. def ll_fz_layout_document(doc, w, h, em):
  8445. r"""
  8446. Low-level wrapper for `::fz_layout_document()`.
  8447. Layout reflowable document types.
  8448. w, h: Page size in points.
  8449. em: Default font size in points.
  8450. """
  8451. return _mupdf.ll_fz_layout_document(doc, w, h, em)
  8452. def ll_fz_linecap_from_string(s):
  8453. r"""Low-level wrapper for `::fz_linecap_from_string()`."""
  8454. return _mupdf.ll_fz_linecap_from_string(s)
  8455. def ll_fz_linejoin_from_string(s):
  8456. r"""Low-level wrapper for `::fz_linejoin_from_string()`."""
  8457. return _mupdf.ll_fz_linejoin_from_string(s)
  8458. def ll_fz_lineto(path, x, y):
  8459. r"""
  8460. Low-level wrapper for `::fz_lineto()`.
  8461. Append a 'lineto' command to an open path.
  8462. path: The path to modify.
  8463. x, y: The coordinate to line to.
  8464. Throws exceptions on failure to allocate, or attempting to
  8465. modify a packed path.
  8466. """
  8467. return _mupdf.ll_fz_lineto(path, x, y)
  8468. def ll_fz_list_archive_entry(arch, idx):
  8469. r"""
  8470. Low-level wrapper for `::fz_list_archive_entry()`.
  8471. Get listed name of entry position idx.
  8472. idx: Must be a value >= 0 < return value from
  8473. fz_count_archive_entries. If not in range NULL will be
  8474. returned.
  8475. May throw an exception if this type of archive cannot list the
  8476. entries (such as a directory).
  8477. """
  8478. return _mupdf.ll_fz_list_archive_entry(arch, idx)
  8479. def ll_fz_load_bmp_subimage(buf, len, subimage):
  8480. r"""Low-level wrapper for `::fz_load_bmp_subimage()`."""
  8481. return _mupdf.ll_fz_load_bmp_subimage(buf, len, subimage)
  8482. def ll_fz_load_bmp_subimage_count(buf, len):
  8483. r"""Low-level wrapper for `::fz_load_bmp_subimage_count()`."""
  8484. return _mupdf.ll_fz_load_bmp_subimage_count(buf, len)
  8485. def ll_fz_load_chapter_page(doc, chapter, page):
  8486. r"""
  8487. Low-level wrapper for `::fz_load_chapter_page()`.
  8488. Load a page.
  8489. After fz_load_page is it possible to retrieve the size of the
  8490. page using fz_bound_page, or to render the page using
  8491. fz_run_page_*. Free the page by calling fz_drop_page.
  8492. chapter: chapter number, 0 is the first chapter of the document.
  8493. number: page number, 0 is the first page of the chapter.
  8494. """
  8495. return _mupdf.ll_fz_load_chapter_page(doc, chapter, page)
  8496. def ll_fz_load_fallback_font(script, language, serif, bold, italic):
  8497. r"""
  8498. Low-level wrapper for `::fz_load_fallback_font()`.
  8499. Try to load a fallback font for the
  8500. given combination of font attributes. Whether a font is
  8501. present or not will depend on the configuration in which
  8502. MuPDF is built.
  8503. script: The script desired (e.g. UCDN_SCRIPT_KATAKANA).
  8504. language: The language desired (e.g. FZ_LANG_ja).
  8505. serif: 1 if serif desired, 0 otherwise.
  8506. bold: 1 if bold desired, 0 otherwise.
  8507. italic: 1 if italic desired, 0 otherwise.
  8508. Returns a new font handle, or NULL if not available.
  8509. """
  8510. return _mupdf.ll_fz_load_fallback_font(script, language, serif, bold, italic)
  8511. def ll_fz_load_jbig2_globals(buf):
  8512. r"""
  8513. Low-level wrapper for `::fz_load_jbig2_globals()`.
  8514. Create a jbig2 globals record from a buffer.
  8515. Immutable once created.
  8516. """
  8517. return _mupdf.ll_fz_load_jbig2_globals(buf)
  8518. def ll_fz_load_jbig2_subimage(buf, len, subimage):
  8519. r"""Low-level wrapper for `::fz_load_jbig2_subimage()`."""
  8520. return _mupdf.ll_fz_load_jbig2_subimage(buf, len, subimage)
  8521. def ll_fz_load_jbig2_subimage_count(buf, len):
  8522. r"""Low-level wrapper for `::fz_load_jbig2_subimage_count()`."""
  8523. return _mupdf.ll_fz_load_jbig2_subimage_count(buf, len)
  8524. def ll_fz_load_jpx(data, size, cs):
  8525. r"""
  8526. Low-level wrapper for `::fz_load_jpx()`.
  8527. Exposed for PDF.
  8528. """
  8529. return _mupdf.ll_fz_load_jpx(data, size, cs)
  8530. def ll_fz_load_links(page):
  8531. r"""
  8532. Low-level wrapper for `::fz_load_links()`.
  8533. Load the list of links for a page.
  8534. Returns a linked list of all the links on the page, each with
  8535. its clickable region and link destination. Each link is
  8536. reference counted so drop and free the list of links by
  8537. calling fz_drop_link on the pointer return from fz_load_links.
  8538. page: Page obtained from fz_load_page.
  8539. """
  8540. return _mupdf.ll_fz_load_links(page)
  8541. def ll_fz_load_outline(doc):
  8542. r"""
  8543. Low-level wrapper for `::fz_load_outline()`.
  8544. Load the hierarchical document outline.
  8545. Should be freed by fz_drop_outline.
  8546. """
  8547. return _mupdf.ll_fz_load_outline(doc)
  8548. def ll_fz_load_outline_from_iterator(iter):
  8549. r"""
  8550. Low-level wrapper for `::fz_load_outline_from_iterator()`.
  8551. Routine to implement the old Structure based API from an iterator.
  8552. """
  8553. return _mupdf.ll_fz_load_outline_from_iterator(iter)
  8554. def ll_fz_load_page(doc, number):
  8555. r"""
  8556. Low-level wrapper for `::fz_load_page()`.
  8557. Load a given page number from a document. This may be much less
  8558. efficient than loading by location (chapter+page) for some
  8559. document types.
  8560. """
  8561. return _mupdf.ll_fz_load_page(doc, number)
  8562. def ll_fz_load_pnm_subimage(buf, len, subimage):
  8563. r"""Low-level wrapper for `::fz_load_pnm_subimage()`."""
  8564. return _mupdf.ll_fz_load_pnm_subimage(buf, len, subimage)
  8565. def ll_fz_load_pnm_subimage_count(buf, len):
  8566. r"""Low-level wrapper for `::fz_load_pnm_subimage_count()`."""
  8567. return _mupdf.ll_fz_load_pnm_subimage_count(buf, len)
  8568. def ll_fz_load_system_cjk_font(name, ordering, serif):
  8569. r"""
  8570. Low-level wrapper for `::fz_load_system_cjk_font()`.
  8571. Attempt to load a given font from
  8572. the system.
  8573. name: The name of the desired font.
  8574. ordering: The ordering to load the font from (e.g. FZ_ADOBE_KOREA)
  8575. serif: 1 if serif desired, 0 otherwise.
  8576. Returns a new font handle, or NULL if no matching font was found
  8577. (or on error).
  8578. """
  8579. return _mupdf.ll_fz_load_system_cjk_font(name, ordering, serif)
  8580. def ll_fz_load_system_font(name, bold, italic, needs_exact_metrics):
  8581. r"""
  8582. Low-level wrapper for `::fz_load_system_font()`.
  8583. Attempt to load a given font from the system.
  8584. name: The name of the desired font.
  8585. bold: 1 if bold desired, 0 otherwise.
  8586. italic: 1 if italic desired, 0 otherwise.
  8587. needs_exact_metrics: 1 if an exact metrical match is required,
  8588. 0 otherwise.
  8589. Returns a new font handle, or NULL if no matching font was found
  8590. (or on error).
  8591. """
  8592. return _mupdf.ll_fz_load_system_font(name, bold, italic, needs_exact_metrics)
  8593. def ll_fz_load_tiff_subimage(buf, len, subimage):
  8594. r"""Low-level wrapper for `::fz_load_tiff_subimage()`."""
  8595. return _mupdf.ll_fz_load_tiff_subimage(buf, len, subimage)
  8596. def ll_fz_load_tiff_subimage_count(buf, len):
  8597. r"""
  8598. Low-level wrapper for `::fz_load_tiff_subimage_count()`.
  8599. Exposed for CBZ.
  8600. """
  8601. return _mupdf.ll_fz_load_tiff_subimage_count(buf, len)
  8602. def ll_fz_load_user_css(filename):
  8603. r"""
  8604. Low-level wrapper for `::fz_load_user_css()`.
  8605. Set the user stylesheet by loading the source from a file.
  8606. If the file is missing, do nothing.
  8607. """
  8608. return _mupdf.ll_fz_load_user_css(filename)
  8609. def ll_fz_location_from_page_number(doc, number):
  8610. r"""
  8611. Low-level wrapper for `::fz_location_from_page_number()`.
  8612. Converts from page number to chapter+page. This may cause many
  8613. chapters to be laid out in order to calculate the number of
  8614. pages within those chapters.
  8615. """
  8616. return _mupdf.ll_fz_location_from_page_number(doc, number)
  8617. def ll_fz_lock(lock):
  8618. r"""
  8619. Low-level wrapper for `::fz_lock()`.
  8620. Lock one of the user supplied mutexes.
  8621. """
  8622. return _mupdf.ll_fz_lock(lock)
  8623. def ll_fz_log_error(str):
  8624. r"""
  8625. Low-level wrapper for `::fz_log_error()`.
  8626. Log a (preformatted) string to the registered
  8627. error stream (stderr by default).
  8628. """
  8629. return _mupdf.ll_fz_log_error(str)
  8630. def ll_fz_lookup_base14_font(name, len):
  8631. r"""
  8632. Low-level wrapper for `::fz_lookup_base14_font()`.
  8633. This function has out-params. Python/C# wrappers look like:
  8634. `ll_fz_lookup_base14_font(const char *name)` => `(const unsigned char *, int len)`
  8635. Search the builtin base14 fonts for a match.
  8636. Whether a given font is present or not will depend on the
  8637. configuration in which MuPDF is built.
  8638. name: The name of the font desired.
  8639. len: Pointer to a place to receive the length of the discovered
  8640. font buffer.
  8641. Returns a pointer to the font file data, or NULL if not present.
  8642. """
  8643. return _mupdf.ll_fz_lookup_base14_font(name, len)
  8644. def ll_fz_lookup_blendmode(name):
  8645. r"""
  8646. Low-level wrapper for `::fz_lookup_blendmode()`.
  8647. Map from (case sensitive) blend mode string to enumeration.
  8648. """
  8649. return _mupdf.ll_fz_lookup_blendmode(name)
  8650. def ll_fz_lookup_bookmark(doc, mark):
  8651. r"""
  8652. Low-level wrapper for `::fz_lookup_bookmark()`.
  8653. Find a bookmark and return its page number.
  8654. """
  8655. return _mupdf.ll_fz_lookup_bookmark(doc, mark)
  8656. def ll_fz_lookup_builtin_font(name, bold, italic, len):
  8657. r"""
  8658. Low-level wrapper for `::fz_lookup_builtin_font()`.
  8659. This function has out-params. Python/C# wrappers look like:
  8660. `ll_fz_lookup_builtin_font(const char *name, int bold, int italic)` => `(const unsigned char *, int len)`
  8661. Search the builtin fonts for a match.
  8662. Whether a given font is present or not will depend on the
  8663. configuration in which MuPDF is built.
  8664. name: The name of the font desired.
  8665. bold: 1 if bold desired, 0 otherwise.
  8666. italic: 1 if italic desired, 0 otherwise.
  8667. len: Pointer to a place to receive the length of the discovered
  8668. font buffer.
  8669. Returns a pointer to the font file data, or NULL if not present.
  8670. """
  8671. return _mupdf.ll_fz_lookup_builtin_font(name, bold, italic, len)
  8672. def ll_fz_lookup_cjk_font(ordering, len, index):
  8673. r"""
  8674. Low-level wrapper for `::fz_lookup_cjk_font()`.
  8675. This function has out-params. Python/C# wrappers look like:
  8676. `ll_fz_lookup_cjk_font(int ordering)` => `(const unsigned char *, int len, int index)`
  8677. Search the builtin cjk fonts for a match.
  8678. Whether a font is present or not will depend on the
  8679. configuration in which MuPDF is built.
  8680. ordering: The desired ordering of the font (e.g. FZ_ADOBE_KOREA).
  8681. len: Pointer to a place to receive the length of the discovered
  8682. font buffer.
  8683. Returns a pointer to the font file data, or NULL if not present.
  8684. """
  8685. return _mupdf.ll_fz_lookup_cjk_font(ordering, len, index)
  8686. def ll_fz_lookup_cjk_font_by_language(lang, len, subfont):
  8687. r"""
  8688. Low-level wrapper for `::fz_lookup_cjk_font_by_language()`.
  8689. This function has out-params. Python/C# wrappers look like:
  8690. `ll_fz_lookup_cjk_font_by_language(const char *lang)` => `(const unsigned char *, int len, int subfont)`
  8691. Search the builtin cjk fonts for a match for a given language.
  8692. Whether a font is present or not will depend on the
  8693. configuration in which MuPDF is built.
  8694. lang: Pointer to a (case sensitive) language string (e.g.
  8695. "ja", "ko", "zh-Hant" etc).
  8696. len: Pointer to a place to receive the length of the discovered
  8697. font buffer.
  8698. subfont: Pointer to a place to store the subfont index of the
  8699. discovered font.
  8700. Returns a pointer to the font file data, or NULL if not present.
  8701. """
  8702. return _mupdf.ll_fz_lookup_cjk_font_by_language(lang, len, subfont)
  8703. def ll_fz_lookup_cjk_ordering_by_language(name):
  8704. r"""
  8705. Low-level wrapper for `::fz_lookup_cjk_ordering_by_language()`.
  8706. Return the matching FZ_ADOBE_* ordering
  8707. for the given language tag, such as "zh-Hant", "zh-Hans", "ja", or "ko".
  8708. """
  8709. return _mupdf.ll_fz_lookup_cjk_ordering_by_language(name)
  8710. def ll_fz_lookup_image_type(type):
  8711. r"""
  8712. Low-level wrapper for `::fz_lookup_image_type()`.
  8713. Map from (case sensitive) image type string to FZ_IMAGE_*
  8714. type value.
  8715. """
  8716. return _mupdf.ll_fz_lookup_image_type(type)
  8717. def ll_fz_lookup_metadata(doc, key, buf, size):
  8718. r"""
  8719. Low-level wrapper for `::fz_lookup_metadata()`.
  8720. Retrieve document meta data strings.
  8721. doc: The document to query.
  8722. key: Which meta data key to retrieve...
  8723. Basic information:
  8724. 'format' -- Document format and version.
  8725. 'encryption' -- Description of the encryption used.
  8726. From the document information dictionary:
  8727. 'info:Title'
  8728. 'info:Author'
  8729. 'info:Subject'
  8730. 'info:Keywords'
  8731. 'info:Creator'
  8732. 'info:Producer'
  8733. 'info:CreationDate'
  8734. 'info:ModDate'
  8735. buf: The buffer to hold the results (a nul-terminated UTF-8
  8736. string).
  8737. size: Size of 'buf'.
  8738. Returns the number of bytes need to store the string plus terminator
  8739. (will be larger than 'size' if the output was truncated), or -1 if the
  8740. key is not recognized or found.
  8741. """
  8742. return _mupdf.ll_fz_lookup_metadata(doc, key, buf, size)
  8743. def ll_fz_lookup_metadata2(doc, key):
  8744. r"""
  8745. Low-level wrapper for `::fz_lookup_metadata2()`.
  8746. C++ alternative to `fz_lookup_metadata()` that returns a `std::string`
  8747. or calls `fz_throw()` if not found.
  8748. """
  8749. return _mupdf.ll_fz_lookup_metadata2(doc, key)
  8750. def ll_fz_lookup_noto_boxes_font(len):
  8751. r"""
  8752. Low-level wrapper for `::fz_lookup_noto_boxes_font()`.
  8753. This function has out-params. Python/C# wrappers look like:
  8754. `ll_fz_lookup_noto_boxes_font()` => `(const unsigned char *, int len)`
  8755. """
  8756. return _mupdf.ll_fz_lookup_noto_boxes_font(len)
  8757. def ll_fz_lookup_noto_emoji_font(len):
  8758. r"""
  8759. Low-level wrapper for `::fz_lookup_noto_emoji_font()`.
  8760. This function has out-params. Python/C# wrappers look like:
  8761. `ll_fz_lookup_noto_emoji_font()` => `(const unsigned char *, int len)`
  8762. """
  8763. return _mupdf.ll_fz_lookup_noto_emoji_font(len)
  8764. def ll_fz_lookup_noto_font(script, lang, len, subfont):
  8765. r"""
  8766. Low-level wrapper for `::fz_lookup_noto_font()`.
  8767. This function has out-params. Python/C# wrappers look like:
  8768. `ll_fz_lookup_noto_font(int script, int lang)` => `(const unsigned char *, int len, int subfont)`
  8769. Search the builtin noto fonts for a match.
  8770. Whether a font is present or not will depend on the
  8771. configuration in which MuPDF is built.
  8772. script: The script desired (e.g. UCDN_SCRIPT_KATAKANA).
  8773. lang: The language desired (e.g. FZ_LANG_ja).
  8774. len: Pointer to a place to receive the length of the discovered
  8775. font buffer.
  8776. Returns a pointer to the font file data, or NULL if not present.
  8777. """
  8778. return _mupdf.ll_fz_lookup_noto_font(script, lang, len, subfont)
  8779. def ll_fz_lookup_noto_math_font(len):
  8780. r"""
  8781. Low-level wrapper for `::fz_lookup_noto_math_font()`.
  8782. This function has out-params. Python/C# wrappers look like:
  8783. `ll_fz_lookup_noto_math_font()` => `(const unsigned char *, int len)`
  8784. Search the builtin noto fonts specific symbol fonts.
  8785. Whether a font is present or not will depend on the
  8786. configuration in which MuPDF is built.
  8787. """
  8788. return _mupdf.ll_fz_lookup_noto_math_font(len)
  8789. def ll_fz_lookup_noto_music_font(len):
  8790. r"""
  8791. Low-level wrapper for `::fz_lookup_noto_music_font()`.
  8792. This function has out-params. Python/C# wrappers look like:
  8793. `ll_fz_lookup_noto_music_font()` => `(const unsigned char *, int len)`
  8794. """
  8795. return _mupdf.ll_fz_lookup_noto_music_font(len)
  8796. def ll_fz_lookup_noto_stem_from_script(script, language):
  8797. r"""
  8798. Low-level wrapper for `::fz_lookup_noto_stem_from_script()`.
  8799. Look up the Noto font file name for a given script.
  8800. From the returned font stem, you can look for Noto fonts on the system in the form:
  8801. Noto(Sans|Serif)${STEM}-Regular.(otf|ttf)
  8802. """
  8803. return _mupdf.ll_fz_lookup_noto_stem_from_script(script, language)
  8804. def ll_fz_lookup_noto_symbol1_font(len):
  8805. r"""
  8806. Low-level wrapper for `::fz_lookup_noto_symbol1_font()`.
  8807. This function has out-params. Python/C# wrappers look like:
  8808. `ll_fz_lookup_noto_symbol1_font()` => `(const unsigned char *, int len)`
  8809. """
  8810. return _mupdf.ll_fz_lookup_noto_symbol1_font(len)
  8811. def ll_fz_lookup_noto_symbol2_font(len):
  8812. r"""
  8813. Low-level wrapper for `::fz_lookup_noto_symbol2_font()`.
  8814. This function has out-params. Python/C# wrappers look like:
  8815. `ll_fz_lookup_noto_symbol2_font()` => `(const unsigned char *, int len)`
  8816. """
  8817. return _mupdf.ll_fz_lookup_noto_symbol2_font(len)
  8818. def ll_fz_lookup_rendering_intent(name):
  8819. r"""
  8820. Low-level wrapper for `::fz_lookup_rendering_intent()`.
  8821. Map from (case sensitive) rendering intent string to enumeration
  8822. value.
  8823. """
  8824. return _mupdf.ll_fz_lookup_rendering_intent(name)
  8825. def ll_fz_lookup_script_name(script, language):
  8826. r"""Low-level wrapper for `::fz_lookup_script_name()`."""
  8827. return _mupdf.ll_fz_lookup_script_name(script, language)
  8828. def ll_fz_make_bookmark(doc, loc):
  8829. r"""
  8830. Low-level wrapper for `::fz_make_bookmark()`.
  8831. Create a bookmark for the given page, which can be used to find
  8832. the same location after the document has been laid out with
  8833. different parameters.
  8834. """
  8835. return _mupdf.ll_fz_make_bookmark(doc, loc)
  8836. def ll_fz_make_irect(x0, y0, x1, y1):
  8837. r"""Low-level wrapper for `::fz_make_irect()`."""
  8838. return _mupdf.ll_fz_make_irect(x0, y0, x1, y1)
  8839. def ll_fz_make_link_dest_none():
  8840. r"""Low-level wrapper for `::fz_make_link_dest_none()`."""
  8841. return _mupdf.ll_fz_make_link_dest_none()
  8842. def ll_fz_make_link_dest_xyz(chapter, page, x, y, z):
  8843. r"""Low-level wrapper for `::fz_make_link_dest_xyz()`."""
  8844. return _mupdf.ll_fz_make_link_dest_xyz(chapter, page, x, y, z)
  8845. def ll_fz_make_location(chapter, page):
  8846. r"""
  8847. Low-level wrapper for `::fz_make_location()`.
  8848. Simple constructor for fz_locations.
  8849. """
  8850. return _mupdf.ll_fz_make_location(chapter, page)
  8851. def ll_fz_make_matrix(a, b, c, d, e, f):
  8852. r"""Low-level wrapper for `::fz_make_matrix()`."""
  8853. return _mupdf.ll_fz_make_matrix(a, b, c, d, e, f)
  8854. def ll_fz_make_point(x, y):
  8855. r"""Low-level wrapper for `::fz_make_point()`."""
  8856. return _mupdf.ll_fz_make_point(x, y)
  8857. def ll_fz_make_quad(ul_x, ul_y, ur_x, ur_y, ll_x, ll_y, lr_x, lr_y):
  8858. r"""
  8859. Low-level wrapper for `::fz_make_quad()`.
  8860. Inline convenience construction function.
  8861. """
  8862. return _mupdf.ll_fz_make_quad(ul_x, ul_y, ur_x, ur_y, ll_x, ll_y, lr_x, lr_y)
  8863. def ll_fz_make_rect(x0, y0, x1, y1):
  8864. r"""Low-level wrapper for `::fz_make_rect()`."""
  8865. return _mupdf.ll_fz_make_rect(x0, y0, x1, y1)
  8866. def ll_fz_malloc(size):
  8867. r"""
  8868. Low-level wrapper for `::fz_malloc()`.
  8869. Allocate uninitialized memory of a given size.
  8870. Does NOT clear the memory!
  8871. May return NULL for size = 0.
  8872. Throws exception in the event of failure to allocate.
  8873. """
  8874. return _mupdf.ll_fz_malloc(size)
  8875. def ll_fz_malloc_aligned(size, align):
  8876. r"""
  8877. Low-level wrapper for `::fz_malloc_aligned()`.
  8878. fz_malloc equivalent, except that the block is guaranteed aligned.
  8879. Block must be freed later using fz_free_aligned.
  8880. """
  8881. return _mupdf.ll_fz_malloc_aligned(size, align)
  8882. def ll_fz_malloc_no_throw(size):
  8883. r"""
  8884. Low-level wrapper for `::fz_malloc_no_throw()`.
  8885. fz_malloc equivalent that returns NULL rather than throwing
  8886. exceptions.
  8887. """
  8888. return _mupdf.ll_fz_malloc_no_throw(size)
  8889. def ll_fz_matrix_expansion(m):
  8890. r"""
  8891. Low-level wrapper for `::fz_matrix_expansion()`.
  8892. Calculate average scaling factor of matrix.
  8893. """
  8894. return _mupdf.ll_fz_matrix_expansion(m)
  8895. def ll_fz_matrix_max_expansion(m):
  8896. r"""
  8897. Low-level wrapper for `::fz_matrix_max_expansion()`.
  8898. Find the largest expansion performed by this matrix.
  8899. (i.e. max(abs(m.a),abs(m.b),abs(m.c),abs(m.d))
  8900. """
  8901. return _mupdf.ll_fz_matrix_max_expansion(m)
  8902. def ll_fz_max(a, b):
  8903. r"""Low-level wrapper for `::fz_max()`."""
  8904. return _mupdf.ll_fz_max(a, b)
  8905. def ll_fz_maxi(a, b):
  8906. r"""Low-level wrapper for `::fz_maxi()`."""
  8907. return _mupdf.ll_fz_maxi(a, b)
  8908. def ll_fz_maxi64(a, b):
  8909. r"""Low-level wrapper for `::fz_maxi64()`."""
  8910. return _mupdf.ll_fz_maxi64(a, b)
  8911. def ll_fz_maxz(a, b):
  8912. r"""Low-level wrapper for `::fz_maxz()`."""
  8913. return _mupdf.ll_fz_maxz(a, b)
  8914. def ll_fz_md5_buffer(buffer, digest):
  8915. r"""
  8916. Low-level wrapper for `::fz_md5_buffer()`.
  8917. Create an MD5 digest from buffer contents.
  8918. Never throws exceptions.
  8919. """
  8920. return _mupdf.ll_fz_md5_buffer(buffer, digest)
  8921. def ll_fz_md5_final(state, digest):
  8922. r"""
  8923. Low-level wrapper for `::fz_md5_final()`.
  8924. MD5 finalization. Ends an MD5 message-digest operation, writing
  8925. the message digest and zeroizing the context.
  8926. Never throws an exception.
  8927. """
  8928. return _mupdf.ll_fz_md5_final(state, digest)
  8929. def ll_fz_md5_final2(md5):
  8930. r"""
  8931. Low-level wrapper for `::fz_md5_final2()`.
  8932. C++ alternative to fz_md5_final() that returns the digest by value.
  8933. """
  8934. return _mupdf.ll_fz_md5_final2(md5)
  8935. def ll_fz_md5_init(state):
  8936. r"""
  8937. Low-level wrapper for `::fz_md5_init()`.
  8938. MD5 initialization. Begins an MD5 operation, writing a new
  8939. context.
  8940. Never throws an exception.
  8941. """
  8942. return _mupdf.ll_fz_md5_init(state)
  8943. def ll_fz_md5_pixmap(pixmap, digest):
  8944. r"""Low-level wrapper for `::fz_md5_pixmap()`."""
  8945. return _mupdf.ll_fz_md5_pixmap(pixmap, digest)
  8946. def ll_fz_md5_pixmap2(pixmap):
  8947. r"""
  8948. Low-level wrapper for `::fz_md5_pixmap2()`.
  8949. C++ alternative to `fz_md5_pixmap()` that returns the digest by value.
  8950. """
  8951. return _mupdf.ll_fz_md5_pixmap2(pixmap)
  8952. def ll_fz_md5_update(state, input, inlen):
  8953. r"""
  8954. Low-level wrapper for `::fz_md5_update()`.
  8955. MD5 block update operation. Continues an MD5 message-digest
  8956. operation, processing another message block, and updating the
  8957. context.
  8958. Never throws an exception.
  8959. """
  8960. return _mupdf.ll_fz_md5_update(state, input, inlen)
  8961. def ll_fz_md5_update_int64(state, i):
  8962. r"""
  8963. Low-level wrapper for `::fz_md5_update_int64()`.
  8964. MD5 block update operation. Continues an MD5 message-digest
  8965. operation, processing an int64, and updating the context.
  8966. Never throws an exception.
  8967. """
  8968. return _mupdf.ll_fz_md5_update_int64(state, i)
  8969. def ll_fz_measure_string(user_font, trm, s, wmode, bidi_level, markup_dir, language):
  8970. r"""
  8971. Low-level wrapper for `::fz_measure_string()`.
  8972. Measure the advance width of a UTF8 string should it be added to a text object.
  8973. This uses the same layout algorithms as fz_show_string, and can be used
  8974. to calculate text alignment adjustments.
  8975. """
  8976. return _mupdf.ll_fz_measure_string(user_font, trm, s, wmode, bidi_level, markup_dir, language)
  8977. def ll_fz_memmem(haystack, haystacklen, needle, needlelen):
  8978. r"""
  8979. Low-level wrapper for `::fz_memmem()`.
  8980. Find the start of the first occurrence of the substring needle in haystack.
  8981. """
  8982. return _mupdf.ll_fz_memmem(haystack, haystacklen, needle, needlelen)
  8983. def ll_fz_memrnd(block, len):
  8984. r"""
  8985. Low-level wrapper for `::fz_memrnd()`.
  8986. Fill block with len bytes of pseudo-randomness.
  8987. """
  8988. return _mupdf.ll_fz_memrnd(block, len)
  8989. def ll_fz_min(a, b):
  8990. r"""Low-level wrapper for `::fz_min()`."""
  8991. return _mupdf.ll_fz_min(a, b)
  8992. def ll_fz_mini(a, b):
  8993. r"""Low-level wrapper for `::fz_mini()`."""
  8994. return _mupdf.ll_fz_mini(a, b)
  8995. def ll_fz_mini64(a, b):
  8996. r"""Low-level wrapper for `::fz_mini64()`."""
  8997. return _mupdf.ll_fz_mini64(a, b)
  8998. def ll_fz_minz(a, b):
  8999. r"""Low-level wrapper for `::fz_minz()`."""
  9000. return _mupdf.ll_fz_minz(a, b)
  9001. def ll_fz_mkdir(path):
  9002. r"""Low-level wrapper for `::fz_mkdir()`."""
  9003. return _mupdf.ll_fz_mkdir(path)
  9004. def ll_fz_morph_error(fromcode, tocode):
  9005. r"""
  9006. Low-level wrapper for `::fz_morph_error()`.
  9007. Called within a catch block this modifies the current
  9008. exception's code. If it's of type 'fromcode' it is
  9009. modified to 'tocode'. Typically used for 'downgrading'
  9010. exception severity.
  9011. """
  9012. return _mupdf.ll_fz_morph_error(fromcode, tocode)
  9013. def ll_fz_mount_multi_archive(arch_, sub, path):
  9014. r"""
  9015. Low-level wrapper for `::fz_mount_multi_archive()`.
  9016. Add an archive to the set of archives handled by a multi
  9017. archive.
  9018. If path is NULL, then the archive contents will appear at the
  9019. top level, otherwise, the archives contents will appear prefixed
  9020. by path.
  9021. """
  9022. return _mupdf.ll_fz_mount_multi_archive(arch_, sub, path)
  9023. def ll_fz_moveto(path, x, y):
  9024. r"""
  9025. Low-level wrapper for `::fz_moveto()`.
  9026. Append a 'moveto' command to a path.
  9027. This 'opens' a path.
  9028. path: The path to modify.
  9029. x, y: The coordinate to move to.
  9030. Throws exceptions on failure to allocate, or attempting to
  9031. modify a packed path.
  9032. """
  9033. return _mupdf.ll_fz_moveto(path, x, y)
  9034. def ll_fz_mul255(a, b):
  9035. r"""
  9036. Low-level wrapper for `::fz_mul255()`.
  9037. Multiply scaled two integers in the 0..255 range
  9038. """
  9039. return _mupdf.ll_fz_mul255(a, b)
  9040. def ll_fz_needs_password(doc):
  9041. r"""
  9042. Low-level wrapper for `::fz_needs_password()`.
  9043. Check if a document is encrypted with a
  9044. non-blank password.
  9045. """
  9046. return _mupdf.ll_fz_needs_password(doc)
  9047. def ll_fz_new_arc4_output(chain, key, keylen):
  9048. r"""Low-level wrapper for `::fz_new_arc4_output()`."""
  9049. return _mupdf.ll_fz_new_arc4_output(chain, key, keylen)
  9050. def ll_fz_new_archive_of_size(file, size):
  9051. r"""Low-level wrapper for `::fz_new_archive_of_size()`."""
  9052. return _mupdf.ll_fz_new_archive_of_size(file, size)
  9053. def ll_fz_new_ascii85_output(chain):
  9054. r"""Low-level wrapper for `::fz_new_ascii85_output()`."""
  9055. return _mupdf.ll_fz_new_ascii85_output(chain)
  9056. def ll_fz_new_asciihex_output(chain):
  9057. r"""
  9058. Low-level wrapper for `::fz_new_asciihex_output()`.
  9059. Compression and other filtering outputs.
  9060. These outputs write encoded data to another output. Create a
  9061. filter output with the destination, write to the filter, then
  9062. close and drop it when you're done. These can also be chained
  9063. together, for example to write ASCII Hex encoded, Deflate
  9064. compressed, and RC4 encrypted data to a buffer output.
  9065. Output streams don't use reference counting, so make sure to
  9066. close all of the filters in the reverse order of creation so
  9067. that data is flushed properly.
  9068. Accordingly, ownership of 'chain' is never passed into the
  9069. following functions, but remains with the caller, whose
  9070. responsibility it is to ensure they exist at least until
  9071. the returned fz_output is dropped.
  9072. """
  9073. return _mupdf.ll_fz_new_asciihex_output(chain)
  9074. def ll_fz_new_band_writer_of_size(size, out):
  9075. r"""Low-level wrapper for `::fz_new_band_writer_of_size()`."""
  9076. return _mupdf.ll_fz_new_band_writer_of_size(size, out)
  9077. def ll_fz_new_barcode_image(type, value, size, ec_level, quiet, hrt):
  9078. r"""
  9079. Low-level wrapper for `::fz_new_barcode_image()`.
  9080. Create an fz_image from a barcode definition.
  9081. type: The type of barcode to create.
  9082. value: The value of the barcode.
  9083. size: The size of the barcode.
  9084. ec_level: error correction level 0-8.
  9085. quiet: whether to include quiet zones (0 or 1).
  9086. hrt: whether to include human readable text below the barcode (0 or 1).
  9087. returns a created fz_image.
  9088. """
  9089. return _mupdf.ll_fz_new_barcode_image(type, value, size, ec_level, quiet, hrt)
  9090. def ll_fz_new_barcode_pixmap(type, value, size, ec_level, quiet, hrt):
  9091. r"""
  9092. Low-level wrapper for `::fz_new_barcode_pixmap()`.
  9093. Create an fz_pixmap from a barcode definition.
  9094. type: The type of barcode to create.
  9095. value: The value of the barcode.
  9096. size: The size of the barcode.
  9097. ec_level: error correction level 0-8.
  9098. quiet: whether to include quiet zones (0 or 1).
  9099. hrt: whether to include human readable text below the barcode (0 or 1).
  9100. returns a created fz_pixmap.
  9101. """
  9102. return _mupdf.ll_fz_new_barcode_pixmap(type, value, size, ec_level, quiet, hrt)
  9103. def ll_fz_new_base14_font(name):
  9104. r"""
  9105. Low-level wrapper for `::fz_new_base14_font()`.
  9106. Create a new font from one of the built-in fonts.
  9107. """
  9108. return _mupdf.ll_fz_new_base14_font(name)
  9109. def ll_fz_new_bbox_device(rectp):
  9110. r"""
  9111. Low-level wrapper for `::fz_new_bbox_device()`.
  9112. Create a device to compute the bounding
  9113. box of all marks on a page.
  9114. The returned bounding box will be the union of all bounding
  9115. boxes of all objects on a page.
  9116. """
  9117. return _mupdf.ll_fz_new_bbox_device(rectp)
  9118. def ll_fz_new_bitmap(w, h, n, xres, yres):
  9119. r"""
  9120. Low-level wrapper for `::fz_new_bitmap()`.
  9121. Create a new bitmap.
  9122. w, h: Width and Height for the bitmap
  9123. n: Number of color components (assumed to be a divisor of 8)
  9124. xres, yres: X and Y resolutions (in pixels per inch).
  9125. Returns pointer to created bitmap structure. The bitmap
  9126. data is uninitialised.
  9127. """
  9128. return _mupdf.ll_fz_new_bitmap(w, h, n, xres, yres)
  9129. def ll_fz_new_bitmap_from_image(img, ht):
  9130. r"""
  9131. Low-level wrapper for `::fz_new_bitmap_from_image()`.
  9132. Make a bitmap from a pixmap and a halftone.
  9133. img: The image to generate from. Currently must be a single
  9134. color component with no alpha.
  9135. ht: The halftone to use. NULL implies the default halftone.
  9136. Returns the resultant bitmap. Throws exceptions in the case of
  9137. failure to allocate.
  9138. """
  9139. return _mupdf.ll_fz_new_bitmap_from_image(img, ht)
  9140. def ll_fz_new_bitmap_from_pixmap(pix, ht):
  9141. r"""
  9142. Low-level wrapper for `::fz_new_bitmap_from_pixmap()`.
  9143. Make a bitmap from a pixmap and a halftone.
  9144. pix: The pixmap to generate from. Currently must be a single
  9145. color component with no alpha.
  9146. ht: The halftone to use. NULL implies the default halftone.
  9147. Returns the resultant bitmap. Throws exceptions in the case of
  9148. failure to allocate.
  9149. """
  9150. return _mupdf.ll_fz_new_bitmap_from_pixmap(pix, ht)
  9151. def ll_fz_new_bitmap_from_pixmap_band(pix, ht, band_start):
  9152. r"""
  9153. Low-level wrapper for `::fz_new_bitmap_from_pixmap_band()`.
  9154. Make a bitmap from a pixmap and a
  9155. halftone, allowing for the position of the pixmap within an
  9156. overall banded rendering.
  9157. pix: The pixmap to generate from. Currently must be a single
  9158. color component with no alpha.
  9159. ht: The halftone to use. NULL implies the default halftone.
  9160. band_start: Vertical offset within the overall banded rendering
  9161. (in pixels)
  9162. Returns the resultant bitmap. Throws exceptions in the case of
  9163. failure to allocate.
  9164. """
  9165. return _mupdf.ll_fz_new_bitmap_from_pixmap_band(pix, ht, band_start)
  9166. def ll_fz_new_brotli_data(compressed_length, source, source_length, level):
  9167. r"""
  9168. Low-level wrapper for `::fz_new_brotli_data()`.
  9169. This function has out-params. Python/C# wrappers look like:
  9170. `ll_fz_new_brotli_data(const unsigned char *source, size_t source_length, ::fz_brotli_level level)` => `(unsigned char *, size_t compressed_length)`
  9171. Compress source_length bytes of data starting
  9172. at source, into a new memory block malloced for that purpose.
  9173. compressed_length is updated on exit to contain the size used.
  9174. Ownership of the block is returned from this function, and the
  9175. caller is therefore responsible for freeing it. The block may be
  9176. considerably larger than is actually required. The caller is
  9177. free to fz_realloc it down if it wants to.
  9178. """
  9179. return _mupdf.ll_fz_new_brotli_data(compressed_length, source, source_length, level)
  9180. def ll_fz_new_brotli_data_from_buffer(compressed_length, buffer, level):
  9181. r"""
  9182. Low-level wrapper for `::fz_new_brotli_data_from_buffer()`.
  9183. This function has out-params. Python/C# wrappers look like:
  9184. `ll_fz_new_brotli_data_from_buffer(::fz_buffer *buffer, ::fz_brotli_level level)` => `(unsigned char *, size_t compressed_length)`
  9185. Compress the contents of a fz_buffer into a
  9186. new block malloced for that purpose. *compressed_length is
  9187. updated on exit to contain the size used. Ownership of the block
  9188. is returned from this function, and the caller is therefore
  9189. responsible for freeing it. The block may be considerably larger
  9190. than is actually required. The caller is free to fz_realloc it
  9191. down if it wants to.
  9192. """
  9193. return _mupdf.ll_fz_new_brotli_data_from_buffer(compressed_length, buffer, level)
  9194. def ll_fz_new_buffer(capacity):
  9195. r"""Low-level wrapper for `::fz_new_buffer()`."""
  9196. return _mupdf.ll_fz_new_buffer(capacity)
  9197. def ll_fz_new_buffer_from_base64(data, size):
  9198. r"""
  9199. Low-level wrapper for `::fz_new_buffer_from_base64()`.
  9200. Create a new buffer with data decoded from a base64 input string.
  9201. """
  9202. return _mupdf.ll_fz_new_buffer_from_base64(data, size)
  9203. def ll_fz_new_buffer_from_copied_data(data, size):
  9204. r"""
  9205. Low-level wrapper for `::fz_new_buffer_from_copied_data()`.
  9206. Create a new buffer containing a copy of the passed data.
  9207. """
  9208. return _mupdf.ll_fz_new_buffer_from_copied_data(data, size)
  9209. def ll_fz_new_buffer_from_data(data, size):
  9210. r"""
  9211. Low-level wrapper for `::fz_new_buffer_from_data()`.
  9212. Create a new buffer with existing data.
  9213. data: Pointer to existing data.
  9214. size: Size of existing data.
  9215. Takes ownership of data. Does not make a copy. Calls fz_free on
  9216. the data when the buffer is deallocated. Do not use 'data' after
  9217. passing to this function.
  9218. Returns pointer to new buffer. Throws exception on allocation
  9219. failure.
  9220. """
  9221. return _mupdf.ll_fz_new_buffer_from_data(data, size)
  9222. def ll_fz_new_buffer_from_display_list(list, options):
  9223. r"""Low-level wrapper for `::fz_new_buffer_from_display_list()`."""
  9224. return _mupdf.ll_fz_new_buffer_from_display_list(list, options)
  9225. def ll_fz_new_buffer_from_image_as_jpeg(image, color_params, quality, invert_cmyk):
  9226. r"""Low-level wrapper for `::fz_new_buffer_from_image_as_jpeg()`."""
  9227. return _mupdf.ll_fz_new_buffer_from_image_as_jpeg(image, color_params, quality, invert_cmyk)
  9228. def ll_fz_new_buffer_from_image_as_jpx(image, color_params, quality):
  9229. r"""Low-level wrapper for `::fz_new_buffer_from_image_as_jpx()`."""
  9230. return _mupdf.ll_fz_new_buffer_from_image_as_jpx(image, color_params, quality)
  9231. def ll_fz_new_buffer_from_image_as_pam(image, color_params):
  9232. r"""Low-level wrapper for `::fz_new_buffer_from_image_as_pam()`."""
  9233. return _mupdf.ll_fz_new_buffer_from_image_as_pam(image, color_params)
  9234. def ll_fz_new_buffer_from_image_as_pbm(image, color_params):
  9235. r"""Low-level wrapper for `::fz_new_buffer_from_image_as_pbm()`."""
  9236. return _mupdf.ll_fz_new_buffer_from_image_as_pbm(image, color_params)
  9237. def ll_fz_new_buffer_from_image_as_pkm(image, color_params):
  9238. r"""Low-level wrapper for `::fz_new_buffer_from_image_as_pkm()`."""
  9239. return _mupdf.ll_fz_new_buffer_from_image_as_pkm(image, color_params)
  9240. def ll_fz_new_buffer_from_image_as_png(image, color_params):
  9241. r"""
  9242. Low-level wrapper for `::fz_new_buffer_from_image_as_png()`.
  9243. Re-encode a given image as a PNG into a buffer.
  9244. Ownership of the buffer is returned.
  9245. """
  9246. return _mupdf.ll_fz_new_buffer_from_image_as_png(image, color_params)
  9247. def ll_fz_new_buffer_from_image_as_pnm(image, color_params):
  9248. r"""Low-level wrapper for `::fz_new_buffer_from_image_as_pnm()`."""
  9249. return _mupdf.ll_fz_new_buffer_from_image_as_pnm(image, color_params)
  9250. def ll_fz_new_buffer_from_image_as_psd(image, color_params):
  9251. r"""Low-level wrapper for `::fz_new_buffer_from_image_as_psd()`."""
  9252. return _mupdf.ll_fz_new_buffer_from_image_as_psd(image, color_params)
  9253. def ll_fz_new_buffer_from_page(page, options):
  9254. r"""Low-level wrapper for `::fz_new_buffer_from_page()`."""
  9255. return _mupdf.ll_fz_new_buffer_from_page(page, options)
  9256. def ll_fz_new_buffer_from_page_number(doc, number, options):
  9257. r"""Low-level wrapper for `::fz_new_buffer_from_page_number()`."""
  9258. return _mupdf.ll_fz_new_buffer_from_page_number(doc, number, options)
  9259. def ll_fz_new_buffer_from_page_with_format(page, format, options, transform, cookie):
  9260. r"""
  9261. Low-level wrapper for `::fz_new_buffer_from_page_with_format()`.
  9262. Returns an fz_buffer containing a page after conversion to specified format.
  9263. page: The page to convert.
  9264. format, options: Passed to fz_new_document_writer_with_output() internally.
  9265. transform, cookie: Passed to fz_run_page() internally.
  9266. """
  9267. return _mupdf.ll_fz_new_buffer_from_page_with_format(page, format, options, transform, cookie)
  9268. def ll_fz_new_buffer_from_pixmap_as_jpeg(pixmap, color_params, quality, invert_cmyk):
  9269. r"""Low-level wrapper for `::fz_new_buffer_from_pixmap_as_jpeg()`."""
  9270. return _mupdf.ll_fz_new_buffer_from_pixmap_as_jpeg(pixmap, color_params, quality, invert_cmyk)
  9271. def ll_fz_new_buffer_from_pixmap_as_jpx(pix, color_params, quality):
  9272. r"""Low-level wrapper for `::fz_new_buffer_from_pixmap_as_jpx()`."""
  9273. return _mupdf.ll_fz_new_buffer_from_pixmap_as_jpx(pix, color_params, quality)
  9274. def ll_fz_new_buffer_from_pixmap_as_pam(pixmap, color_params):
  9275. r"""Low-level wrapper for `::fz_new_buffer_from_pixmap_as_pam()`."""
  9276. return _mupdf.ll_fz_new_buffer_from_pixmap_as_pam(pixmap, color_params)
  9277. def ll_fz_new_buffer_from_pixmap_as_pbm(pixmap, color_params):
  9278. r"""Low-level wrapper for `::fz_new_buffer_from_pixmap_as_pbm()`."""
  9279. return _mupdf.ll_fz_new_buffer_from_pixmap_as_pbm(pixmap, color_params)
  9280. def ll_fz_new_buffer_from_pixmap_as_pkm(pixmap, color_params):
  9281. r"""Low-level wrapper for `::fz_new_buffer_from_pixmap_as_pkm()`."""
  9282. return _mupdf.ll_fz_new_buffer_from_pixmap_as_pkm(pixmap, color_params)
  9283. def ll_fz_new_buffer_from_pixmap_as_png(pixmap, color_params):
  9284. r"""
  9285. Low-level wrapper for `::fz_new_buffer_from_pixmap_as_png()`.
  9286. Re-encode a given pixmap as a PNG into a buffer.
  9287. Ownership of the buffer is returned.
  9288. """
  9289. return _mupdf.ll_fz_new_buffer_from_pixmap_as_png(pixmap, color_params)
  9290. def ll_fz_new_buffer_from_pixmap_as_pnm(pixmap, color_params):
  9291. r"""Low-level wrapper for `::fz_new_buffer_from_pixmap_as_pnm()`."""
  9292. return _mupdf.ll_fz_new_buffer_from_pixmap_as_pnm(pixmap, color_params)
  9293. def ll_fz_new_buffer_from_pixmap_as_psd(pix, color_params):
  9294. r"""Low-level wrapper for `::fz_new_buffer_from_pixmap_as_psd()`."""
  9295. return _mupdf.ll_fz_new_buffer_from_pixmap_as_psd(pix, color_params)
  9296. def ll_fz_new_buffer_from_shared_data(data, size):
  9297. r"""
  9298. Low-level wrapper for `::fz_new_buffer_from_shared_data()`.
  9299. Like fz_new_buffer, but does not take ownership.
  9300. """
  9301. return _mupdf.ll_fz_new_buffer_from_shared_data(data, size)
  9302. def ll_fz_new_buffer_from_stext_page(text):
  9303. r"""
  9304. Low-level wrapper for `::fz_new_buffer_from_stext_page()`.
  9305. Convert structured text into plain text.
  9306. """
  9307. return _mupdf.ll_fz_new_buffer_from_stext_page(text)
  9308. def ll_fz_new_builtin_font(name, is_bold, is_italic):
  9309. r"""Low-level wrapper for `::fz_new_builtin_font()`."""
  9310. return _mupdf.ll_fz_new_builtin_font(name, is_bold, is_italic)
  9311. def ll_fz_new_cal_gray_colorspace(wp, bp, gamma):
  9312. r"""
  9313. Low-level wrapper for `::fz_new_cal_gray_colorspace()`.
  9314. Create a calibrated gray colorspace.
  9315. The returned reference should be dropped when it is finished
  9316. with.
  9317. Colorspaces are immutable once created.
  9318. """
  9319. return _mupdf.ll_fz_new_cal_gray_colorspace(wp, bp, gamma)
  9320. def ll_fz_new_cal_rgb_colorspace(wp, bp, gamma, matrix):
  9321. r"""
  9322. Low-level wrapper for `::fz_new_cal_rgb_colorspace()`.
  9323. Create a calibrated rgb colorspace.
  9324. The returned reference should be dropped when it is finished
  9325. with.
  9326. Colorspaces are immutable once created.
  9327. """
  9328. return _mupdf.ll_fz_new_cal_rgb_colorspace(wp, bp, gamma, matrix)
  9329. def ll_fz_new_cbz_writer(path, options):
  9330. r"""Low-level wrapper for `::fz_new_cbz_writer()`."""
  9331. return _mupdf.ll_fz_new_cbz_writer(path, options)
  9332. def ll_fz_new_cbz_writer_with_output(out, options):
  9333. r"""Low-level wrapper for `::fz_new_cbz_writer_with_output()`."""
  9334. return _mupdf.ll_fz_new_cbz_writer_with_output(out, options)
  9335. def ll_fz_new_cjk_font(ordering):
  9336. r"""Low-level wrapper for `::fz_new_cjk_font()`."""
  9337. return _mupdf.ll_fz_new_cjk_font(ordering)
  9338. def ll_fz_new_color_pcl_band_writer(out, options):
  9339. r"""
  9340. Low-level wrapper for `::fz_new_color_pcl_band_writer()`.
  9341. Create a new band writer, outputting color pcl.
  9342. """
  9343. return _mupdf.ll_fz_new_color_pcl_band_writer(out, options)
  9344. def ll_fz_new_colorspace(type, flags, n, name):
  9345. r"""
  9346. Low-level wrapper for `::fz_new_colorspace()`.
  9347. Creates a new colorspace instance and returns a reference.
  9348. No internal checking is done that the colorspace type (e.g.
  9349. CMYK) matches with the flags (e.g. FZ_COLORSPACE_HAS_CMYK) or
  9350. colorant count (n) or name.
  9351. The reference should be dropped when it is finished with.
  9352. Colorspaces are immutable once created (with the exception of
  9353. setting up colorant names for separation spaces).
  9354. """
  9355. return _mupdf.ll_fz_new_colorspace(type, flags, n, name)
  9356. def ll_fz_new_compressed_buffer():
  9357. r"""
  9358. Low-level wrapper for `::fz_new_compressed_buffer()`.
  9359. Create a new, UNKNOWN format, compressed_buffer.
  9360. """
  9361. return _mupdf.ll_fz_new_compressed_buffer()
  9362. def ll_fz_new_context_imp(alloc, locks, max_store, version):
  9363. r"""Low-level wrapper for `::fz_new_context_imp()`."""
  9364. return _mupdf.ll_fz_new_context_imp(alloc, locks, max_store, version)
  9365. def ll_fz_new_csv_writer(path, options):
  9366. r"""Low-level wrapper for `::fz_new_csv_writer()`."""
  9367. return _mupdf.ll_fz_new_csv_writer(path, options)
  9368. def ll_fz_new_csv_writer_with_output(out, options):
  9369. r"""Low-level wrapper for `::fz_new_csv_writer_with_output()`."""
  9370. return _mupdf.ll_fz_new_csv_writer_with_output(out, options)
  9371. def ll_fz_new_default_colorspaces():
  9372. r"""
  9373. Low-level wrapper for `::fz_new_default_colorspaces()`.
  9374. Create a new default colorspace structure with values inherited
  9375. from the context, and return a reference to it.
  9376. These can be overridden using fz_set_default_xxxx.
  9377. These should not be overridden while more than one caller has
  9378. the reference for fear of race conditions.
  9379. The caller should drop this reference once finished with it.
  9380. """
  9381. return _mupdf.ll_fz_new_default_colorspaces()
  9382. def ll_fz_new_deflate_output(chain, effort, raw):
  9383. r"""Low-level wrapper for `::fz_new_deflate_output()`."""
  9384. return _mupdf.ll_fz_new_deflate_output(chain, effort, raw)
  9385. def ll_fz_new_deflated_data(compressed_length, source, source_length, level):
  9386. r"""
  9387. Low-level wrapper for `::fz_new_deflated_data()`.
  9388. This function has out-params. Python/C# wrappers look like:
  9389. `ll_fz_new_deflated_data(const unsigned char *source, size_t source_length, ::fz_deflate_level level)` => `(unsigned char *, size_t compressed_length)`
  9390. Compress source_length bytes of data starting
  9391. at source, into a new memory block malloced for that purpose.
  9392. compressed_length is updated on exit to contain the size used.
  9393. Ownership of the block is returned from this function, and the
  9394. caller is therefore responsible for freeing it. The block may be
  9395. considerably larger than is actually required. The caller is
  9396. free to fz_realloc it down if it wants to.
  9397. """
  9398. return _mupdf.ll_fz_new_deflated_data(compressed_length, source, source_length, level)
  9399. def ll_fz_new_deflated_data_from_buffer(compressed_length, buffer, level):
  9400. r"""
  9401. Low-level wrapper for `::fz_new_deflated_data_from_buffer()`.
  9402. This function has out-params. Python/C# wrappers look like:
  9403. `ll_fz_new_deflated_data_from_buffer(::fz_buffer *buffer, ::fz_deflate_level level)` => `(unsigned char *, size_t compressed_length)`
  9404. Compress the contents of a fz_buffer into a
  9405. new block malloced for that purpose. *compressed_length is
  9406. updated on exit to contain the size used. Ownership of the block
  9407. is returned from this function, and the caller is therefore
  9408. responsible for freeing it. The block may be considerably larger
  9409. than is actually required. The caller is free to fz_realloc it
  9410. down if it wants to.
  9411. """
  9412. return _mupdf.ll_fz_new_deflated_data_from_buffer(compressed_length, buffer, level)
  9413. def ll_fz_new_device_of_size(size):
  9414. r"""
  9415. Low-level wrapper for `::fz_new_device_of_size()`.
  9416. Devices are created by calls to device implementations, for
  9417. instance: foo_new_device(). These will be implemented by calling
  9418. fz_new_derived_device(ctx, foo_device) where foo_device is a
  9419. structure "derived from" fz_device, for instance
  9420. typedef struct { fz_device base; ...extras...} foo_device;
  9421. """
  9422. return _mupdf.ll_fz_new_device_of_size(size)
  9423. def ll_fz_new_display_list(mediabox):
  9424. r"""
  9425. Low-level wrapper for `::fz_new_display_list()`.
  9426. Create an empty display list.
  9427. A display list contains drawing commands (text, images, etc.).
  9428. Use fz_new_list_device for populating the list.
  9429. mediabox: Bounds of the page (in points) represented by the
  9430. display list.
  9431. """
  9432. return _mupdf.ll_fz_new_display_list(mediabox)
  9433. def ll_fz_new_display_list_from_page(page):
  9434. r"""
  9435. Low-level wrapper for `::fz_new_display_list_from_page()`.
  9436. Create a display list.
  9437. Ownership of the display list is returned to the caller.
  9438. """
  9439. return _mupdf.ll_fz_new_display_list_from_page(page)
  9440. def ll_fz_new_display_list_from_page_contents(page):
  9441. r"""
  9442. Low-level wrapper for `::fz_new_display_list_from_page_contents()`.
  9443. Create a display list from page contents (no annotations).
  9444. Ownership of the display list is returned to the caller.
  9445. """
  9446. return _mupdf.ll_fz_new_display_list_from_page_contents(page)
  9447. def ll_fz_new_display_list_from_page_number(doc, number):
  9448. r"""Low-level wrapper for `::fz_new_display_list_from_page_number()`."""
  9449. return _mupdf.ll_fz_new_display_list_from_page_number(doc, number)
  9450. def ll_fz_new_display_list_from_svg(buf, base_uri, dir, w, h):
  9451. r"""
  9452. Low-level wrapper for `::fz_new_display_list_from_svg()`.
  9453. This function has out-params. Python/C# wrappers look like:
  9454. `ll_fz_new_display_list_from_svg(::fz_buffer *buf, const char *base_uri, ::fz_archive *dir)` => `(fz_display_list *, float w, float h)`
  9455. Parse an SVG document into a display-list.
  9456. """
  9457. return _mupdf.ll_fz_new_display_list_from_svg(buf, base_uri, dir, w, h)
  9458. def ll_fz_new_display_list_from_svg_xml(xmldoc, xml, base_uri, dir, w, h):
  9459. r"""
  9460. Low-level wrapper for `::fz_new_display_list_from_svg_xml()`.
  9461. This function has out-params. Python/C# wrappers look like:
  9462. `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)`
  9463. Parse an SVG document into a display-list.
  9464. """
  9465. return _mupdf.ll_fz_new_display_list_from_svg_xml(xmldoc, xml, base_uri, dir, w, h)
  9466. def ll_fz_new_document_of_size(size):
  9467. r"""
  9468. Low-level wrapper for `::fz_new_document_of_size()`.
  9469. New documents are typically created by calls like
  9470. foo_new_document(fz_context *ctx, ...). These work by
  9471. deriving a new document type from fz_document, for instance:
  9472. typedef struct { fz_document base; ...extras... } foo_document;
  9473. These are allocated by calling
  9474. fz_new_derived_document(ctx, foo_document)
  9475. """
  9476. return _mupdf.ll_fz_new_document_of_size(size)
  9477. def ll_fz_new_document_writer(path, format, options):
  9478. r"""
  9479. Low-level wrapper for `::fz_new_document_writer()`.
  9480. Create a new fz_document_writer, for a
  9481. file of the given type.
  9482. path: The document name to write (or NULL for default)
  9483. format: Which format to write (currently cbz, html, pdf, pam,
  9484. pbm, pgm, pkm, png, ppm, pnm, svg, text, xhtml, docx, odt)
  9485. options: NULL, or pointer to comma separated string to control
  9486. file generation.
  9487. """
  9488. return _mupdf.ll_fz_new_document_writer(path, format, options)
  9489. def ll_fz_new_document_writer_of_size(size, begin_page, end_page, close, drop):
  9490. r"""
  9491. Low-level wrapper for `::fz_new_document_writer_of_size()`.
  9492. Internal function to allocate a
  9493. block for a derived document_writer structure, with the base
  9494. structure's function pointers populated correctly, and the extra
  9495. space zero initialised.
  9496. """
  9497. return _mupdf.ll_fz_new_document_writer_of_size(size, begin_page, end_page, close, drop)
  9498. def ll_fz_new_document_writer_with_buffer(buf, format, options):
  9499. r"""Low-level wrapper for `::fz_new_document_writer_with_buffer()`."""
  9500. return _mupdf.ll_fz_new_document_writer_with_buffer(buf, format, options)
  9501. def ll_fz_new_document_writer_with_output(out, format, options):
  9502. r"""
  9503. Low-level wrapper for `::fz_new_document_writer_with_output()`.
  9504. Like fz_new_document_writer but takes a fz_output for writing
  9505. the result. Only works for multi-page formats.
  9506. """
  9507. return _mupdf.ll_fz_new_document_writer_with_output(out, format, options)
  9508. def ll_fz_new_docx_writer(path, options):
  9509. r"""Low-level wrapper for `::fz_new_docx_writer()`."""
  9510. return _mupdf.ll_fz_new_docx_writer(path, options)
  9511. def ll_fz_new_docx_writer_with_output(out, options):
  9512. r"""Low-level wrapper for `::fz_new_docx_writer_with_output()`."""
  9513. return _mupdf.ll_fz_new_docx_writer_with_output(out, options)
  9514. def ll_fz_new_dom(tag):
  9515. r"""
  9516. Low-level wrapper for `::fz_new_dom()`.
  9517. Make new xml dom root element.
  9518. """
  9519. return _mupdf.ll_fz_new_dom(tag)
  9520. def ll_fz_new_dom_node(dom, tag):
  9521. r"""
  9522. Low-level wrapper for `::fz_new_dom_node()`.
  9523. Create a new dom node.
  9524. This will NOT be linked in yet.
  9525. """
  9526. return _mupdf.ll_fz_new_dom_node(dom, tag)
  9527. def ll_fz_new_dom_text_node(dom, text):
  9528. r"""
  9529. Low-level wrapper for `::fz_new_dom_text_node()`.
  9530. Create a new dom text node.
  9531. This will NOT be linked in yet.
  9532. """
  9533. return _mupdf.ll_fz_new_dom_text_node(dom, text)
  9534. def ll_fz_new_draw_device(transform, dest):
  9535. r"""
  9536. Low-level wrapper for `::fz_new_draw_device()`.
  9537. Create a device to draw on a pixmap.
  9538. dest: Target pixmap for the draw device. See fz_new_pixmap*
  9539. for how to obtain a pixmap. The pixmap is not cleared by the
  9540. draw device, see fz_clear_pixmap* for how to clear it prior to
  9541. calling fz_new_draw_device. Free the device by calling
  9542. fz_drop_device.
  9543. transform: Transform from user space in points to device space
  9544. in pixels.
  9545. """
  9546. return _mupdf.ll_fz_new_draw_device(transform, dest)
  9547. def ll_fz_new_draw_device_type3(transform, dest):
  9548. r"""Low-level wrapper for `::fz_new_draw_device_type3()`."""
  9549. return _mupdf.ll_fz_new_draw_device_type3(transform, dest)
  9550. def ll_fz_new_draw_device_with_bbox(transform, dest, clip):
  9551. r"""
  9552. Low-level wrapper for `::fz_new_draw_device_with_bbox()`.
  9553. Create a device to draw on a pixmap.
  9554. dest: Target pixmap for the draw device. See fz_new_pixmap*
  9555. for how to obtain a pixmap. The pixmap is not cleared by the
  9556. draw device, see fz_clear_pixmap* for how to clear it prior to
  9557. calling fz_new_draw_device. Free the device by calling
  9558. fz_drop_device.
  9559. transform: Transform from user space in points to device space
  9560. in pixels.
  9561. clip: Bounding box to restrict any marking operations of the
  9562. draw device.
  9563. """
  9564. return _mupdf.ll_fz_new_draw_device_with_bbox(transform, dest, clip)
  9565. def ll_fz_new_draw_device_with_bbox_proof(transform, dest, clip, cs):
  9566. r"""
  9567. Low-level wrapper for `::fz_new_draw_device_with_bbox_proof()`.
  9568. Create a device to draw on a pixmap.
  9569. dest: Target pixmap for the draw device. See fz_new_pixmap*
  9570. for how to obtain a pixmap. The pixmap is not cleared by the
  9571. draw device, see fz_clear_pixmap* for how to clear it prior to
  9572. calling fz_new_draw_device. Free the device by calling
  9573. fz_drop_device.
  9574. transform: Transform from user space in points to device space
  9575. in pixels.
  9576. clip: Bounding box to restrict any marking operations of the
  9577. draw device.
  9578. proof_cs: Color space to render to prior to mapping to color
  9579. space defined by pixmap.
  9580. """
  9581. return _mupdf.ll_fz_new_draw_device_with_bbox_proof(transform, dest, clip, cs)
  9582. def ll_fz_new_draw_device_with_options(options, mediabox, pixmap):
  9583. r"""
  9584. Low-level wrapper for `::fz_new_draw_device_with_options()`.
  9585. This function has out-params. Python/C# wrappers look like:
  9586. `ll_fz_new_draw_device_with_options(const ::fz_draw_options *options, ::fz_rect mediabox, ::fz_pixmap **pixmap)` => `(fz_device *)`
  9587. Create a new pixmap and draw device, using the specified options.
  9588. options: Options to configure the draw device, and choose the
  9589. resolution and colorspace.
  9590. mediabox: The bounds of the page in points.
  9591. pixmap: An out parameter containing the newly created pixmap.
  9592. """
  9593. return _mupdf.ll_fz_new_draw_device_with_options(options, mediabox, pixmap)
  9594. def ll_fz_new_draw_device_with_proof(transform, dest, proof_cs):
  9595. r"""
  9596. Low-level wrapper for `::fz_new_draw_device_with_proof()`.
  9597. Create a device to draw on a pixmap.
  9598. dest: Target pixmap for the draw device. See fz_new_pixmap*
  9599. for how to obtain a pixmap. The pixmap is not cleared by the
  9600. draw device, see fz_clear_pixmap* for how to clear it prior to
  9601. calling fz_new_draw_device. Free the device by calling
  9602. fz_drop_device.
  9603. transform: Transform from user space in points to device space
  9604. in pixels.
  9605. proof_cs: Intermediate color space to map though when mapping to
  9606. color space defined by pixmap.
  9607. """
  9608. return _mupdf.ll_fz_new_draw_device_with_proof(transform, dest, proof_cs)
  9609. def ll_fz_new_font_from_buffer(name, buffer, index, use_glyph_bbox):
  9610. r"""
  9611. Low-level wrapper for `::fz_new_font_from_buffer()`.
  9612. Create a new font from a font file in a fz_buffer.
  9613. Fonts created in this way, will be eligible for embedding by default.
  9614. name: Name of font (leave NULL to use name from font).
  9615. buffer: Buffer to load from.
  9616. index: Which font from the file to load (0 for default).
  9617. use_glyph_box: 1 if we should use the glyph bbox, 0 otherwise.
  9618. Returns new font handle, or throws exception on error.
  9619. """
  9620. return _mupdf.ll_fz_new_font_from_buffer(name, buffer, index, use_glyph_bbox)
  9621. def ll_fz_new_font_from_file(name, path, index, use_glyph_bbox):
  9622. r"""
  9623. Low-level wrapper for `::fz_new_font_from_file()`.
  9624. Create a new font from a font file.
  9625. Fonts created in this way, will be eligible for embedding by default.
  9626. name: Name of font (leave NULL to use name from font).
  9627. path: File path to load from.
  9628. index: Which font from the file to load (0 for default).
  9629. use_glyph_box: 1 if we should use the glyph bbox, 0 otherwise.
  9630. Returns new font handle, or throws exception on error.
  9631. """
  9632. return _mupdf.ll_fz_new_font_from_file(name, path, index, use_glyph_bbox)
  9633. def ll_fz_new_font_from_memory(name, data, len, index, use_glyph_bbox):
  9634. r"""
  9635. Low-level wrapper for `::fz_new_font_from_memory()`.
  9636. Create a new font from a font file in memory.
  9637. Fonts created in this way, will be eligible for embedding by default.
  9638. name: Name of font (leave NULL to use name from font).
  9639. data: Pointer to the font file data.
  9640. len: Length of the font file data.
  9641. index: Which font from the file to load (0 for default).
  9642. use_glyph_box: 1 if we should use the glyph bbox, 0 otherwise.
  9643. Returns new font handle, or throws exception on error.
  9644. """
  9645. return _mupdf.ll_fz_new_font_from_memory(name, data, len, index, use_glyph_bbox)
  9646. def ll_fz_new_function_of_size(size, size2, m, n, eval, drop):
  9647. r"""Low-level wrapper for `::fz_new_function_of_size()`."""
  9648. return _mupdf.ll_fz_new_function_of_size(size, size2, m, n, eval, drop)
  9649. def ll_fz_new_hash_table(initialsize, keylen, lock, drop_val):
  9650. r"""
  9651. Low-level wrapper for `::fz_new_hash_table()`.
  9652. Create a new hash table.
  9653. initialsize: The initial size of the hashtable. The hashtable
  9654. may grow (double in size) if it starts to get crowded (80%
  9655. full).
  9656. keylen: byte length for each key.
  9657. lock: -1 for no lock, otherwise the FZ_LOCK to use to protect
  9658. this table.
  9659. drop_val: Function to use to destroy values on table drop.
  9660. """
  9661. return _mupdf.ll_fz_new_hash_table(initialsize, keylen, lock, drop_val)
  9662. def ll_fz_new_icc_colorspace(type, flags, name, buf):
  9663. r"""
  9664. Low-level wrapper for `::fz_new_icc_colorspace()`.
  9665. Create a colorspace from an ICC profile supplied in buf.
  9666. Limited checking is done to ensure that the colorspace type is
  9667. appropriate for the supplied ICC profile.
  9668. An additional reference is taken to buf, which will be dropped
  9669. on destruction. Ownership is NOT passed in.
  9670. The returned reference should be dropped when it is finished
  9671. with.
  9672. Colorspaces are immutable once created.
  9673. """
  9674. return _mupdf.ll_fz_new_icc_colorspace(type, flags, name, buf)
  9675. def ll_fz_new_image_from_buffer(buffer):
  9676. r"""
  9677. Low-level wrapper for `::fz_new_image_from_buffer()`.
  9678. Create a new image from a
  9679. buffer of data, inferring its type from the format
  9680. of the data.
  9681. """
  9682. return _mupdf.ll_fz_new_image_from_buffer(buffer)
  9683. def ll_fz_new_image_from_compressed_buffer(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, buffer, mask):
  9684. r"""
  9685. Low-level wrapper for `::fz_new_image_from_compressed_buffer()`.
  9686. Create an image based on
  9687. the data in the supplied compressed buffer.
  9688. w,h: Width and height of the created image.
  9689. bpc: Bits per component.
  9690. colorspace: The colorspace (determines the number of components,
  9691. and any color conversions required while decoding).
  9692. xres, yres: The X and Y resolutions respectively.
  9693. interpolate: 1 if interpolation should be used when decoding
  9694. this image, 0 otherwise.
  9695. imagemask: 1 if this is an imagemask (i.e. transparency bitmap
  9696. mask), 0 otherwise.
  9697. decode: NULL, or a pointer to to a decode array. The default
  9698. decode array is [0 1] (repeated n times, for n color components).
  9699. colorkey: NULL, or a pointer to a colorkey array. The default
  9700. colorkey array is [0 255] (repeated n times, for n color
  9701. components).
  9702. buffer: Buffer of compressed data and compression parameters.
  9703. Ownership of this reference is passed in.
  9704. mask: NULL, or another image to use as a mask for this one.
  9705. A new reference is taken to this image. Supplying a masked
  9706. image as a mask to another image is illegal!
  9707. """
  9708. return _mupdf.ll_fz_new_image_from_compressed_buffer(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, buffer, mask)
  9709. def ll_fz_new_image_from_compressed_buffer2(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, buffer, mask):
  9710. r"""
  9711. Low-level wrapper for `::fz_new_image_from_compressed_buffer2()`. Swig-friendly wrapper for fz_new_image_from_compressed_buffer(),
  9712. uses specified `decode` and `colorkey` if they are not null (in which
  9713. case we assert that they have size `2*fz_colorspace_n(colorspace)`).
  9714. """
  9715. return _mupdf.ll_fz_new_image_from_compressed_buffer2(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, buffer, mask)
  9716. def ll_fz_new_image_from_display_list(w, h, list):
  9717. r"""
  9718. Low-level wrapper for `::fz_new_image_from_display_list()`.
  9719. Create a new image from a display list.
  9720. w, h: The conceptual width/height of the image.
  9721. transform: The matrix that needs to be applied to the given
  9722. list to make it render to the unit square.
  9723. list: The display list.
  9724. """
  9725. return _mupdf.ll_fz_new_image_from_display_list(w, h, list)
  9726. def ll_fz_new_image_from_file(path):
  9727. r"""
  9728. Low-level wrapper for `::fz_new_image_from_file()`.
  9729. Create a new image from the contents
  9730. of a file, inferring its type from the format of the
  9731. data.
  9732. """
  9733. return _mupdf.ll_fz_new_image_from_file(path)
  9734. def ll_fz_new_image_from_pixmap(pixmap, mask):
  9735. r"""
  9736. Low-level wrapper for `::fz_new_image_from_pixmap()`.
  9737. Create an image from the given
  9738. pixmap.
  9739. pixmap: The pixmap to base the image upon. A new reference
  9740. to this is taken.
  9741. mask: NULL, or another image to use as a mask for this one.
  9742. A new reference is taken to this image. Supplying a masked
  9743. image as a mask to another image is illegal!
  9744. """
  9745. return _mupdf.ll_fz_new_image_from_pixmap(pixmap, mask)
  9746. def ll_fz_new_image_from_svg(buf, base_uri, dir):
  9747. r"""
  9748. Low-level wrapper for `::fz_new_image_from_svg()`.
  9749. Create a scalable image from an SVG document.
  9750. """
  9751. return _mupdf.ll_fz_new_image_from_svg(buf, base_uri, dir)
  9752. def ll_fz_new_image_from_svg_xml(xmldoc, xml, base_uri, dir):
  9753. r"""
  9754. Low-level wrapper for `::fz_new_image_from_svg_xml()`.
  9755. Create a scalable image from an SVG document.
  9756. """
  9757. return _mupdf.ll_fz_new_image_from_svg_xml(xmldoc, xml, base_uri, dir)
  9758. def ll_fz_new_image_of_size(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, mask, size, get_pixmap, get_size, drop):
  9759. r"""
  9760. Low-level wrapper for `::fz_new_image_of_size()`.
  9761. Internal function to make a new fz_image structure
  9762. for a derived class.
  9763. w,h: Width and height of the created image.
  9764. bpc: Bits per component.
  9765. colorspace: The colorspace (determines the number of components,
  9766. and any color conversions required while decoding).
  9767. xres, yres: The X and Y resolutions respectively.
  9768. interpolate: 1 if interpolation should be used when decoding
  9769. this image, 0 otherwise.
  9770. imagemask: 1 if this is an imagemask (i.e. transparent), 0
  9771. otherwise.
  9772. decode: NULL, or a pointer to to a decode array. The default
  9773. decode array is [0 1] (repeated n times, for n color components).
  9774. colorkey: NULL, or a pointer to a colorkey array. The default
  9775. colorkey array is [0 255] (repeated n times, for n color
  9776. components).
  9777. mask: NULL, or another image to use as a mask for this one.
  9778. A new reference is taken to this image. Supplying a masked
  9779. image as a mask to another image is illegal!
  9780. size: The size of the required allocated structure (the size of
  9781. the derived structure).
  9782. get: The function to be called to obtain a decoded pixmap.
  9783. get_size: The function to be called to return the storage size
  9784. used by this image.
  9785. drop: The function to be called to dispose of this image once
  9786. the last reference is dropped.
  9787. Returns a pointer to an allocated structure of the required size,
  9788. with the first sizeof(fz_image) bytes initialised as appropriate
  9789. given the supplied parameters, and the other bytes set to zero.
  9790. """
  9791. 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)
  9792. def ll_fz_new_indexed_colorspace(base, high, lookup):
  9793. r"""
  9794. Low-level wrapper for `::fz_new_indexed_colorspace()`.
  9795. Create an indexed colorspace.
  9796. The supplied lookup table is high palette entries long. Each
  9797. entry is n bytes long, where n is given by the number of
  9798. colorants in the base colorspace, one byte per colorant.
  9799. Ownership of lookup is passed it; it will be freed on
  9800. destruction, so must be heap allocated.
  9801. The colorspace will keep an additional reference to the base
  9802. colorspace that will be dropped on destruction.
  9803. The returned reference should be dropped when it is finished
  9804. with.
  9805. Colorspaces are immutable once created.
  9806. """
  9807. return _mupdf.ll_fz_new_indexed_colorspace(base, high, lookup)
  9808. def ll_fz_new_jpeg_pixmap_writer(path, options):
  9809. r"""Low-level wrapper for `::fz_new_jpeg_pixmap_writer()`."""
  9810. return _mupdf.ll_fz_new_jpeg_pixmap_writer(path, options)
  9811. def ll_fz_new_layout():
  9812. r"""
  9813. Low-level wrapper for `::fz_new_layout()`.
  9814. Create a new layout block, with new allocation pool, zero
  9815. matrices, and initialise linked pointers.
  9816. """
  9817. return _mupdf.ll_fz_new_layout()
  9818. def ll_fz_new_link_of_size(size, rect, uri):
  9819. r"""
  9820. Low-level wrapper for `::fz_new_link_of_size()`.
  9821. Create a new link record.
  9822. next is set to NULL with the expectation that the caller will
  9823. handle the linked list setup. Internal function.
  9824. Different document types will be implemented by deriving from
  9825. fz_link. This macro allocates such derived structures, and
  9826. initialises the base sections.
  9827. """
  9828. return _mupdf.ll_fz_new_link_of_size(size, rect, uri)
  9829. def ll_fz_new_list_device(list):
  9830. r"""
  9831. Low-level wrapper for `::fz_new_list_device()`.
  9832. Create a rendering device for a display list.
  9833. When the device is rendering a page it will populate the
  9834. display list with drawing commands (text, images, etc.). The
  9835. display list can later be reused to render a page many times
  9836. without having to re-interpret the page from the document file
  9837. for each rendering. Once the device is no longer needed, free
  9838. it with fz_drop_device.
  9839. list: A display list that the list device takes a reference to.
  9840. """
  9841. return _mupdf.ll_fz_new_list_device(list)
  9842. def ll_fz_new_log_for_module(module):
  9843. r"""
  9844. Low-level wrapper for `::fz_new_log_for_module()`.
  9845. Internal function to actually do the opening of the logfile.
  9846. Caller should close/drop the output when finished with it.
  9847. """
  9848. return _mupdf.ll_fz_new_log_for_module(module)
  9849. def ll_fz_new_mono_pcl_band_writer(out, options):
  9850. r"""
  9851. Low-level wrapper for `::fz_new_mono_pcl_band_writer()`.
  9852. Create a new band writer, outputting monochrome pcl.
  9853. """
  9854. return _mupdf.ll_fz_new_mono_pcl_band_writer(out, options)
  9855. def ll_fz_new_mono_pwg_band_writer(out, pwg):
  9856. r"""
  9857. Low-level wrapper for `::fz_new_mono_pwg_band_writer()`.
  9858. Create a new monochrome pwg band writer.
  9859. """
  9860. return _mupdf.ll_fz_new_mono_pwg_band_writer(out, pwg)
  9861. def ll_fz_new_multi_archive():
  9862. r"""
  9863. Low-level wrapper for `::fz_new_multi_archive()`.
  9864. Create a new multi archive (initially empty).
  9865. """
  9866. return _mupdf.ll_fz_new_multi_archive()
  9867. def ll_fz_new_ocr_device(target, ctm, mediabox, with_list, language, datadir, progress, progress_arg):
  9868. r"""
  9869. Low-level wrapper for `::fz_new_ocr_device()`.
  9870. Create a device to OCR the text on the page.
  9871. Renders the page internally to a bitmap that is then OCRd. Text
  9872. is then forwarded onto the target device.
  9873. target: The target device to receive the OCRd text.
  9874. ctm: The transform to apply to the mediabox to get the size for
  9875. the rendered page image. Also used to calculate the resolution
  9876. for the page image. In general, this will be the same as the CTM
  9877. that you pass to fz_run_page (or fz_run_display_list) to feed
  9878. this device.
  9879. mediabox: The mediabox (in points). Combined with the CTM to get
  9880. the bounds of the pixmap used internally for the rendered page
  9881. image.
  9882. with_list: If with_list is false, then all non-text operations
  9883. are forwarded instantly to the target device. This results in
  9884. the target device seeing all NON-text operations, followed by
  9885. all the text operations (derived from OCR).
  9886. If with_list is true, then all the marking operations are
  9887. collated into a display list which is then replayed to the
  9888. target device at the end.
  9889. language: NULL (for "eng"), or a pointer to a string to describe
  9890. the languages/scripts that should be used for OCR (e.g.
  9891. "eng,ara").
  9892. datadir: NULL (for ""), or a pointer to a path string otherwise
  9893. provided to Tesseract in the TESSDATA_PREFIX environment variable.
  9894. progress: NULL, or function to be called periodically to indicate
  9895. progress. Return 0 to continue, or 1 to cancel. progress_arg is
  9896. returned as the void *. The int is a value between 0 and 100 to
  9897. indicate progress.
  9898. progress_arg: A void * value to be parrotted back to the progress
  9899. function.
  9900. """
  9901. return _mupdf.ll_fz_new_ocr_device(target, ctm, mediabox, with_list, language, datadir, progress, progress_arg)
  9902. def ll_fz_new_odt_writer(path, options):
  9903. r"""Low-level wrapper for `::fz_new_odt_writer()`."""
  9904. return _mupdf.ll_fz_new_odt_writer(path, options)
  9905. def ll_fz_new_odt_writer_with_output(out, options):
  9906. r"""Low-level wrapper for `::fz_new_odt_writer_with_output()`."""
  9907. return _mupdf.ll_fz_new_odt_writer_with_output(out, options)
  9908. def ll_fz_new_outline():
  9909. r"""
  9910. Low-level wrapper for `::fz_new_outline()`.
  9911. Create a new outline entry with zeroed fields for the caller
  9912. to fill in.
  9913. """
  9914. return _mupdf.ll_fz_new_outline()
  9915. def ll_fz_new_outline_iterator(doc):
  9916. r"""
  9917. Low-level wrapper for `::fz_new_outline_iterator()`.
  9918. Get an iterator for the document outline.
  9919. Should be freed by fz_drop_outline_iterator.
  9920. """
  9921. return _mupdf.ll_fz_new_outline_iterator(doc)
  9922. def ll_fz_new_outline_iterator_of_size(size, doc):
  9923. r"""Low-level wrapper for `::fz_new_outline_iterator_of_size()`."""
  9924. return _mupdf.ll_fz_new_outline_iterator_of_size(size, doc)
  9925. def ll_fz_new_output(bufsiz, state, write, close, drop):
  9926. r"""
  9927. Low-level wrapper for `::fz_new_output()`.
  9928. Create a new output object with the given
  9929. internal state and function pointers.
  9930. state: Internal state (opaque to everything but implementation).
  9931. write: Function to output a given buffer.
  9932. close: Cleanup function to destroy state when output closed.
  9933. May permissibly be null.
  9934. """
  9935. return _mupdf.ll_fz_new_output(bufsiz, state, write, close, drop)
  9936. def ll_fz_new_output_with_buffer(buf):
  9937. r"""
  9938. Low-level wrapper for `::fz_new_output_with_buffer()`.
  9939. Open an output stream that appends
  9940. to a buffer.
  9941. buf: The buffer to append to.
  9942. """
  9943. return _mupdf.ll_fz_new_output_with_buffer(buf)
  9944. def ll_fz_new_output_with_file_ptr(file):
  9945. r"""
  9946. Low-level wrapper for `::fz_new_output_with_file_ptr()`.
  9947. Open an output stream that writes to a
  9948. given FILE *.
  9949. file: The file pointers to write to. NULL is interpreted as effectively
  9950. meaning /dev/null or similar.
  9951. """
  9952. return _mupdf.ll_fz_new_output_with_file_ptr(file)
  9953. def ll_fz_new_output_with_path(filename, append):
  9954. r"""
  9955. Low-level wrapper for `::fz_new_output_with_path()`.
  9956. Open an output stream that writes to a
  9957. given path.
  9958. filename: The filename to write to (specified in UTF-8).
  9959. append: non-zero if we should append to the file, rather than
  9960. overwriting it.
  9961. """
  9962. return _mupdf.ll_fz_new_output_with_path(filename, append)
  9963. def ll_fz_new_page_of_size(size, doc):
  9964. r"""
  9965. Low-level wrapper for `::fz_new_page_of_size()`.
  9966. Different document types will be implemented by deriving from
  9967. fz_page. This macro allocates such derived structures, and
  9968. initialises the base sections.
  9969. """
  9970. return _mupdf.ll_fz_new_page_of_size(size, doc)
  9971. def ll_fz_new_pam_band_writer(out):
  9972. r"""
  9973. Low-level wrapper for `::fz_new_pam_band_writer()`.
  9974. Create a band writer targeting pnm (greyscale, rgb or cmyk,
  9975. with or without alpha).
  9976. """
  9977. return _mupdf.ll_fz_new_pam_band_writer(out)
  9978. def ll_fz_new_pam_pixmap_writer(path, options):
  9979. r"""Low-level wrapper for `::fz_new_pam_pixmap_writer()`."""
  9980. return _mupdf.ll_fz_new_pam_pixmap_writer(path, options)
  9981. def ll_fz_new_path():
  9982. r"""
  9983. Low-level wrapper for `::fz_new_path()`.
  9984. Create a new (empty) path structure.
  9985. """
  9986. return _mupdf.ll_fz_new_path()
  9987. def ll_fz_new_pbm_band_writer(out):
  9988. r"""
  9989. Low-level wrapper for `::fz_new_pbm_band_writer()`.
  9990. Create a new band writer, targeting pbm.
  9991. """
  9992. return _mupdf.ll_fz_new_pbm_band_writer(out)
  9993. def ll_fz_new_pbm_pixmap_writer(path, options):
  9994. r"""Low-level wrapper for `::fz_new_pbm_pixmap_writer()`."""
  9995. return _mupdf.ll_fz_new_pbm_pixmap_writer(path, options)
  9996. def ll_fz_new_pcl_writer(path, options):
  9997. r"""Low-level wrapper for `::fz_new_pcl_writer()`."""
  9998. return _mupdf.ll_fz_new_pcl_writer(path, options)
  9999. def ll_fz_new_pcl_writer_with_output(out, options):
  10000. r"""Low-level wrapper for `::fz_new_pcl_writer_with_output()`."""
  10001. return _mupdf.ll_fz_new_pcl_writer_with_output(out, options)
  10002. def ll_fz_new_pclm_band_writer(out, options):
  10003. r"""
  10004. Low-level wrapper for `::fz_new_pclm_band_writer()`.
  10005. Create a new band writer, outputting pclm
  10006. """
  10007. return _mupdf.ll_fz_new_pclm_band_writer(out, options)
  10008. def ll_fz_new_pclm_writer(path, options):
  10009. r"""Low-level wrapper for `::fz_new_pclm_writer()`."""
  10010. return _mupdf.ll_fz_new_pclm_writer(path, options)
  10011. def ll_fz_new_pclm_writer_with_output(out, options):
  10012. r"""Low-level wrapper for `::fz_new_pclm_writer_with_output()`."""
  10013. return _mupdf.ll_fz_new_pclm_writer_with_output(out, options)
  10014. def ll_fz_new_pdf_document_from_fz_document(ptr):
  10015. r"""Low-level wrapper for `::fz_new_pdf_document_from_fz_document()`."""
  10016. return _mupdf.ll_fz_new_pdf_document_from_fz_document(ptr)
  10017. def ll_fz_new_pdf_writer(path, options):
  10018. r"""
  10019. Low-level wrapper for `::fz_new_pdf_writer()`.
  10020. Document writers for various possible output formats.
  10021. All of the "_with_output" variants pass the ownership of out in
  10022. immediately upon calling. The writers are responsible for
  10023. dropping the fz_output when they are finished with it (even
  10024. if they throw an exception during creation).
  10025. """
  10026. return _mupdf.ll_fz_new_pdf_writer(path, options)
  10027. def ll_fz_new_pdf_writer_with_output(out, options):
  10028. r"""Low-level wrapper for `::fz_new_pdf_writer_with_output()`."""
  10029. return _mupdf.ll_fz_new_pdf_writer_with_output(out, options)
  10030. def ll_fz_new_pdfocr_band_writer(out, options):
  10031. r"""
  10032. Low-level wrapper for `::fz_new_pdfocr_band_writer()`.
  10033. Create a new band writer, outputting pdfocr.
  10034. Ownership of output stays with the caller, the band writer
  10035. borrows the reference. The caller must keep the output around
  10036. for the duration of the band writer, and then close/drop as
  10037. appropriate.
  10038. """
  10039. return _mupdf.ll_fz_new_pdfocr_band_writer(out, options)
  10040. def ll_fz_new_pdfocr_writer(path, options):
  10041. r"""Low-level wrapper for `::fz_new_pdfocr_writer()`."""
  10042. return _mupdf.ll_fz_new_pdfocr_writer(path, options)
  10043. def ll_fz_new_pdfocr_writer_with_output(out, options):
  10044. r"""Low-level wrapper for `::fz_new_pdfocr_writer_with_output()`."""
  10045. return _mupdf.ll_fz_new_pdfocr_writer_with_output(out, options)
  10046. def ll_fz_new_pgm_pixmap_writer(path, options):
  10047. r"""Low-level wrapper for `::fz_new_pgm_pixmap_writer()`."""
  10048. return _mupdf.ll_fz_new_pgm_pixmap_writer(path, options)
  10049. def ll_fz_new_pixmap(cs, w, h, seps, alpha):
  10050. r"""
  10051. Low-level wrapper for `::fz_new_pixmap()`.
  10052. Create a new pixmap, with its origin at (0,0)
  10053. cs: The colorspace to use for the pixmap, or NULL for an alpha
  10054. plane/mask.
  10055. w: The width of the pixmap (in pixels)
  10056. h: The height of the pixmap (in pixels)
  10057. seps: Details of separations.
  10058. alpha: 0 for no alpha, 1 for alpha.
  10059. Returns a pointer to the new pixmap. Throws exception on failure
  10060. to allocate.
  10061. """
  10062. return _mupdf.ll_fz_new_pixmap(cs, w, h, seps, alpha)
  10063. def ll_fz_new_pixmap_from_alpha_channel(src):
  10064. r"""Low-level wrapper for `::fz_new_pixmap_from_alpha_channel()`."""
  10065. return _mupdf.ll_fz_new_pixmap_from_alpha_channel(src)
  10066. def ll_fz_new_pixmap_from_color_and_mask(color, mask):
  10067. r"""Low-level wrapper for `::fz_new_pixmap_from_color_and_mask()`."""
  10068. return _mupdf.ll_fz_new_pixmap_from_color_and_mask(color, mask)
  10069. def ll_fz_new_pixmap_from_display_list(list, ctm, cs, alpha):
  10070. r"""
  10071. Low-level wrapper for `::fz_new_pixmap_from_display_list()`.
  10072. Render the page to a pixmap using the transform and colorspace.
  10073. Ownership of the pixmap is returned to the caller.
  10074. """
  10075. return _mupdf.ll_fz_new_pixmap_from_display_list(list, ctm, cs, alpha)
  10076. def ll_fz_new_pixmap_from_display_list_with_separations(list, ctm, cs, seps, alpha):
  10077. r"""
  10078. Low-level wrapper for `::fz_new_pixmap_from_display_list_with_separations()`.
  10079. Render the page contents with control over spot colors.
  10080. Ownership of the pixmap is returned to the caller.
  10081. """
  10082. return _mupdf.ll_fz_new_pixmap_from_display_list_with_separations(list, ctm, cs, seps, alpha)
  10083. def ll_fz_new_pixmap_from_page(page, ctm, cs, alpha):
  10084. r"""Low-level wrapper for `::fz_new_pixmap_from_page()`."""
  10085. return _mupdf.ll_fz_new_pixmap_from_page(page, ctm, cs, alpha)
  10086. def ll_fz_new_pixmap_from_page_contents(page, ctm, cs, alpha):
  10087. r"""
  10088. Low-level wrapper for `::fz_new_pixmap_from_page_contents()`.
  10089. Render the page contents without annotations.
  10090. Ownership of the pixmap is returned to the caller.
  10091. """
  10092. return _mupdf.ll_fz_new_pixmap_from_page_contents(page, ctm, cs, alpha)
  10093. def ll_fz_new_pixmap_from_page_contents_with_separations(page, ctm, cs, seps, alpha):
  10094. r"""Low-level wrapper for `::fz_new_pixmap_from_page_contents_with_separations()`."""
  10095. return _mupdf.ll_fz_new_pixmap_from_page_contents_with_separations(page, ctm, cs, seps, alpha)
  10096. def ll_fz_new_pixmap_from_page_number(doc, number, ctm, cs, alpha):
  10097. r"""Low-level wrapper for `::fz_new_pixmap_from_page_number()`."""
  10098. return _mupdf.ll_fz_new_pixmap_from_page_number(doc, number, ctm, cs, alpha)
  10099. def ll_fz_new_pixmap_from_page_number_with_separations(doc, number, ctm, cs, seps, alpha):
  10100. r"""Low-level wrapper for `::fz_new_pixmap_from_page_number_with_separations()`."""
  10101. return _mupdf.ll_fz_new_pixmap_from_page_number_with_separations(doc, number, ctm, cs, seps, alpha)
  10102. def ll_fz_new_pixmap_from_page_with_separations(page, ctm, cs, seps, alpha):
  10103. r"""Low-level wrapper for `::fz_new_pixmap_from_page_with_separations()`."""
  10104. return _mupdf.ll_fz_new_pixmap_from_page_with_separations(page, ctm, cs, seps, alpha)
  10105. def ll_fz_new_pixmap_from_pixmap(pixmap, rect):
  10106. r"""
  10107. Low-level wrapper for `::fz_new_pixmap_from_pixmap()`.
  10108. Create a new pixmap that represents a subarea of the specified
  10109. pixmap. A reference is taken to this pixmap that will be dropped
  10110. on destruction.
  10111. The supplied rectangle must be wholly contained within the
  10112. original pixmap.
  10113. Returns a pointer to the new pixmap. Throws exception on failure
  10114. to allocate.
  10115. """
  10116. return _mupdf.ll_fz_new_pixmap_from_pixmap(pixmap, rect)
  10117. def ll_fz_new_pixmap_with_bbox(colorspace, bbox, seps, alpha):
  10118. r"""
  10119. Low-level wrapper for `::fz_new_pixmap_with_bbox()`.
  10120. Create a pixmap of a given size, location and pixel format.
  10121. The bounding box specifies the size of the created pixmap and
  10122. where it will be located. The colorspace determines the number
  10123. of components per pixel. Alpha is always present. Pixmaps are
  10124. reference counted, so drop references using fz_drop_pixmap.
  10125. colorspace: Colorspace format used for the created pixmap. The
  10126. pixmap will keep a reference to the colorspace.
  10127. bbox: Bounding box specifying location/size of created pixmap.
  10128. seps: Details of separations.
  10129. alpha: 0 for no alpha, 1 for alpha.
  10130. Returns a pointer to the new pixmap. Throws exception on failure
  10131. to allocate.
  10132. """
  10133. return _mupdf.ll_fz_new_pixmap_with_bbox(colorspace, bbox, seps, alpha)
  10134. def ll_fz_new_pixmap_with_bbox_and_data(colorspace, rect, seps, alpha, samples):
  10135. r"""
  10136. Low-level wrapper for `::fz_new_pixmap_with_bbox_and_data()`.
  10137. Create a pixmap of a given size, location and pixel format,
  10138. using the supplied data block.
  10139. The bounding box specifies the size of the created pixmap and
  10140. where it will be located. The colorspace determines the number
  10141. of components per pixel. Alpha is always present. Pixmaps are
  10142. reference counted, so drop references using fz_drop_pixmap.
  10143. colorspace: Colorspace format used for the created pixmap. The
  10144. pixmap will keep a reference to the colorspace.
  10145. rect: Bounding box specifying location/size of created pixmap.
  10146. seps: Details of separations.
  10147. alpha: Number of alpha planes (0 or 1).
  10148. samples: The data block to keep the samples in.
  10149. Returns a pointer to the new pixmap. Throws exception on failure
  10150. to allocate.
  10151. """
  10152. return _mupdf.ll_fz_new_pixmap_with_bbox_and_data(colorspace, rect, seps, alpha, samples)
  10153. def ll_fz_new_pixmap_with_data(colorspace, w, h, seps, alpha, stride, samples):
  10154. r"""
  10155. Low-level wrapper for `::fz_new_pixmap_with_data()`.
  10156. Create a new pixmap, with its origin at
  10157. (0,0) using the supplied data block.
  10158. cs: The colorspace to use for the pixmap, or NULL for an alpha
  10159. plane/mask.
  10160. w: The width of the pixmap (in pixels)
  10161. h: The height of the pixmap (in pixels)
  10162. seps: Details of separations.
  10163. alpha: 0 for no alpha, 1 for alpha.
  10164. stride: The byte offset from the pixel data in a row to the
  10165. pixel data in the next row.
  10166. samples: The data block to keep the samples in.
  10167. Returns a pointer to the new pixmap. Throws exception on failure to
  10168. allocate.
  10169. """
  10170. return _mupdf.ll_fz_new_pixmap_with_data(colorspace, w, h, seps, alpha, stride, samples)
  10171. def ll_fz_new_pixmap_writer(path, options, default_path, n, save):
  10172. r"""Low-level wrapper for `::fz_new_pixmap_writer()`."""
  10173. return _mupdf.ll_fz_new_pixmap_writer(path, options, default_path, n, save)
  10174. def ll_fz_new_pkm_band_writer(out):
  10175. r"""
  10176. Low-level wrapper for `::fz_new_pkm_band_writer()`.
  10177. Create a new pkm band writer for CMYK pixmaps.
  10178. """
  10179. return _mupdf.ll_fz_new_pkm_band_writer(out)
  10180. def ll_fz_new_pkm_pixmap_writer(path, options):
  10181. r"""Low-level wrapper for `::fz_new_pkm_pixmap_writer()`."""
  10182. return _mupdf.ll_fz_new_pkm_pixmap_writer(path, options)
  10183. def ll_fz_new_png_band_writer(out):
  10184. r"""
  10185. Low-level wrapper for `::fz_new_png_band_writer()`.
  10186. Create a new png band writer (greyscale or RGB, with or without
  10187. alpha).
  10188. """
  10189. return _mupdf.ll_fz_new_png_band_writer(out)
  10190. def ll_fz_new_png_pixmap_writer(path, options):
  10191. r"""Low-level wrapper for `::fz_new_png_pixmap_writer()`."""
  10192. return _mupdf.ll_fz_new_png_pixmap_writer(path, options)
  10193. def ll_fz_new_pnm_band_writer(out):
  10194. r"""
  10195. Low-level wrapper for `::fz_new_pnm_band_writer()`.
  10196. Create a band writer targeting pnm (greyscale or rgb, no
  10197. alpha).
  10198. """
  10199. return _mupdf.ll_fz_new_pnm_band_writer(out)
  10200. def ll_fz_new_pnm_pixmap_writer(path, options):
  10201. r"""Low-level wrapper for `::fz_new_pnm_pixmap_writer()`."""
  10202. return _mupdf.ll_fz_new_pnm_pixmap_writer(path, options)
  10203. def ll_fz_new_pool():
  10204. r"""
  10205. Low-level wrapper for `::fz_new_pool()`.
  10206. Create a new pool to allocate from.
  10207. """
  10208. return _mupdf.ll_fz_new_pool()
  10209. def ll_fz_new_ppm_pixmap_writer(path, options):
  10210. r"""Low-level wrapper for `::fz_new_ppm_pixmap_writer()`."""
  10211. return _mupdf.ll_fz_new_ppm_pixmap_writer(path, options)
  10212. def ll_fz_new_ps_band_writer(out):
  10213. r"""
  10214. Low-level wrapper for `::fz_new_ps_band_writer()`.
  10215. Create a postscript band writer for gray, rgb, or cmyk, no
  10216. alpha.
  10217. """
  10218. return _mupdf.ll_fz_new_ps_band_writer(out)
  10219. def ll_fz_new_ps_writer(path, options):
  10220. r"""Low-level wrapper for `::fz_new_ps_writer()`."""
  10221. return _mupdf.ll_fz_new_ps_writer(path, options)
  10222. def ll_fz_new_ps_writer_with_output(out, options):
  10223. r"""Low-level wrapper for `::fz_new_ps_writer_with_output()`."""
  10224. return _mupdf.ll_fz_new_ps_writer_with_output(out, options)
  10225. def ll_fz_new_psd_band_writer(out):
  10226. r"""
  10227. Low-level wrapper for `::fz_new_psd_band_writer()`.
  10228. Open a PSD band writer.
  10229. """
  10230. return _mupdf.ll_fz_new_psd_band_writer(out)
  10231. def ll_fz_new_pwg_band_writer(out, pwg):
  10232. r"""
  10233. Low-level wrapper for `::fz_new_pwg_band_writer()`.
  10234. Create a new color pwg band writer.
  10235. """
  10236. return _mupdf.ll_fz_new_pwg_band_writer(out, pwg)
  10237. def ll_fz_new_pwg_writer(path, options):
  10238. r"""Low-level wrapper for `::fz_new_pwg_writer()`."""
  10239. return _mupdf.ll_fz_new_pwg_writer(path, options)
  10240. def ll_fz_new_pwg_writer_with_output(out, options):
  10241. r"""Low-level wrapper for `::fz_new_pwg_writer_with_output()`."""
  10242. return _mupdf.ll_fz_new_pwg_writer_with_output(out, options)
  10243. def ll_fz_new_rle_output(chain):
  10244. r"""Low-level wrapper for `::fz_new_rle_output()`."""
  10245. return _mupdf.ll_fz_new_rle_output(chain)
  10246. def ll_fz_new_separations(controllable):
  10247. r"""
  10248. Low-level wrapper for `::fz_new_separations()`.
  10249. Create a new separations structure (initially empty)
  10250. """
  10251. return _mupdf.ll_fz_new_separations(controllable)
  10252. def ll_fz_new_stext_device(page, options):
  10253. r"""
  10254. Low-level wrapper for `::fz_new_stext_device()`.
  10255. Create a device to extract the text on a page.
  10256. Gather the text on a page into blocks and lines.
  10257. The reading order is taken from the order the text is drawn in
  10258. the source file, so may not be accurate.
  10259. page: The text page to which content should be added. This will
  10260. usually be a newly created (empty) text page, but it can be one
  10261. containing data already (for example when merging multiple
  10262. pages, or watermarking).
  10263. options: Options to configure the stext device.
  10264. """
  10265. return _mupdf.ll_fz_new_stext_device(page, options)
  10266. def ll_fz_new_stext_page(mediabox):
  10267. r"""
  10268. Low-level wrapper for `::fz_new_stext_page()`.
  10269. Create an empty text page.
  10270. The text page is filled out by the text device to contain the
  10271. blocks and lines of text on the page.
  10272. mediabox: optional mediabox information.
  10273. """
  10274. return _mupdf.ll_fz_new_stext_page(mediabox)
  10275. def ll_fz_new_stext_page_from_chapter_page_number(doc, chapter, number, options):
  10276. r"""Low-level wrapper for `::fz_new_stext_page_from_chapter_page_number()`."""
  10277. return _mupdf.ll_fz_new_stext_page_from_chapter_page_number(doc, chapter, number, options)
  10278. def ll_fz_new_stext_page_from_display_list(list, options):
  10279. r"""Low-level wrapper for `::fz_new_stext_page_from_display_list()`."""
  10280. return _mupdf.ll_fz_new_stext_page_from_display_list(list, options)
  10281. def ll_fz_new_stext_page_from_page(page, options):
  10282. r"""
  10283. Low-level wrapper for `::fz_new_stext_page_from_page()`.
  10284. Extract text from page.
  10285. Ownership of the fz_stext_page is returned to the caller.
  10286. """
  10287. return _mupdf.ll_fz_new_stext_page_from_page(page, options)
  10288. def ll_fz_new_stext_page_from_page_number(doc, number, options):
  10289. r"""Low-level wrapper for `::fz_new_stext_page_from_page_number()`."""
  10290. return _mupdf.ll_fz_new_stext_page_from_page_number(doc, number, options)
  10291. def ll_fz_new_store_context(max):
  10292. r"""
  10293. Low-level wrapper for `::fz_new_store_context()`.
  10294. Create a new store inside the context
  10295. max: The maximum size (in bytes) that the store is allowed to
  10296. grow to. FZ_STORE_UNLIMITED means no limit.
  10297. """
  10298. return _mupdf.ll_fz_new_store_context(max)
  10299. def ll_fz_new_story(buf, user_css, em, dir):
  10300. r"""Low-level wrapper for `::fz_new_story()`."""
  10301. return _mupdf.ll_fz_new_story(buf, user_css, em, dir)
  10302. def ll_fz_new_stream(state, next, drop):
  10303. r"""
  10304. Low-level wrapper for `::fz_new_stream()`.
  10305. Create a new stream object with the given
  10306. internal state and function pointers.
  10307. state: Internal state (opaque to everything but implementation).
  10308. next: Should provide the next set of bytes (up to max) of stream
  10309. data. Return the number of bytes read, or EOF when there is no
  10310. more data.
  10311. drop: Should clean up and free the internal state. May not
  10312. throw exceptions.
  10313. """
  10314. return _mupdf.ll_fz_new_stream(state, next, drop)
  10315. def ll_fz_new_string(str):
  10316. r"""Low-level wrapper for `::fz_new_string()`."""
  10317. return _mupdf.ll_fz_new_string(str)
  10318. def ll_fz_new_stroke_state():
  10319. r"""
  10320. Low-level wrapper for `::fz_new_stroke_state()`.
  10321. Create a new (empty) stroke state structure (with no dash
  10322. data) and return a reference to it.
  10323. Throws exception on failure to allocate.
  10324. """
  10325. return _mupdf.ll_fz_new_stroke_state()
  10326. def ll_fz_new_stroke_state_with_dash_len(len):
  10327. r"""
  10328. Low-level wrapper for `::fz_new_stroke_state_with_dash_len()`.
  10329. Create a new (empty) stroke state structure, with room for
  10330. dash data of the given length, and return a reference to it.
  10331. len: The number of dash elements to allow room for.
  10332. Throws exception on failure to allocate.
  10333. """
  10334. return _mupdf.ll_fz_new_stroke_state_with_dash_len(len)
  10335. def ll_fz_new_svg_device(out, page_width, page_height, text_format, reuse_images):
  10336. r"""
  10337. Low-level wrapper for `::fz_new_svg_device()`.
  10338. Create a device that outputs (single page) SVG files to
  10339. the given output stream.
  10340. Equivalent to fz_new_svg_device_with_id passing id = NULL.
  10341. """
  10342. return _mupdf.ll_fz_new_svg_device(out, page_width, page_height, text_format, reuse_images)
  10343. def ll_fz_new_svg_device_with_id(out, page_width, page_height, text_format, reuse_images, id):
  10344. r"""
  10345. Low-level wrapper for `::fz_new_svg_device_with_id()`.
  10346. This function has out-params. Python/C# wrappers look like:
  10347. `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)`
  10348. Create a device that outputs (single page) SVG files to
  10349. the given output stream.
  10350. output: The output stream to send the constructed SVG page to.
  10351. page_width, page_height: The page dimensions to use (in points).
  10352. text_format: How to emit text. One of the following values:
  10353. FZ_SVG_TEXT_AS_TEXT: As <text> elements with possible
  10354. layout errors and mismatching fonts.
  10355. FZ_SVG_TEXT_AS_PATH: As <path> elements with exact
  10356. visual appearance.
  10357. reuse_images: Share image resources using <symbol> definitions.
  10358. id: ID parameter to keep generated IDs unique across SVG files.
  10359. """
  10360. return _mupdf.ll_fz_new_svg_device_with_id(out, page_width, page_height, text_format, reuse_images, id)
  10361. def ll_fz_new_svg_writer(path, options):
  10362. r"""Low-level wrapper for `::fz_new_svg_writer()`."""
  10363. return _mupdf.ll_fz_new_svg_writer(path, options)
  10364. def ll_fz_new_svg_writer_with_output(out, options):
  10365. r"""Low-level wrapper for `::fz_new_svg_writer_with_output()`."""
  10366. return _mupdf.ll_fz_new_svg_writer_with_output(out, options)
  10367. def ll_fz_new_test_device(is_color, threshold, options, passthrough):
  10368. r"""
  10369. Low-level wrapper for `::fz_new_test_device()`.
  10370. This function has out-params. Python/C# wrappers look like:
  10371. `ll_fz_new_test_device(float threshold, int options, ::fz_device *passthrough)` => `(fz_device *, int is_color)`
  10372. Create a device to test for features.
  10373. Currently only tests for the presence of non-grayscale colors.
  10374. is_color: Possible values returned:
  10375. 0: Definitely greyscale
  10376. 1: Probably color (all colors were grey, but there
  10377. were images or shadings in a non grey colorspace).
  10378. 2: Definitely color
  10379. threshold: The difference from grayscale that will be tolerated.
  10380. Typical values to use are either 0 (be exact) and 0.02 (allow an
  10381. imperceptible amount of slop).
  10382. options: A set of bitfield options, from the FZ_TEST_OPT set.
  10383. passthrough: A device to pass all calls through to, or NULL.
  10384. If set, then the test device can both test and pass through to
  10385. an underlying device (like, say, the display list device). This
  10386. means that a display list can be created and at the end we'll
  10387. know if it's colored or not.
  10388. In the absence of a passthrough device, the device will throw
  10389. an exception to stop page interpretation when color is found.
  10390. """
  10391. return _mupdf.ll_fz_new_test_device(is_color, threshold, options, passthrough)
  10392. def ll_fz_new_text():
  10393. r"""
  10394. Low-level wrapper for `::fz_new_text()`.
  10395. Create a new empty fz_text object.
  10396. Throws exception on failure to allocate.
  10397. """
  10398. return _mupdf.ll_fz_new_text()
  10399. def ll_fz_new_text_writer(format, path, options):
  10400. r"""Low-level wrapper for `::fz_new_text_writer()`."""
  10401. return _mupdf.ll_fz_new_text_writer(format, path, options)
  10402. def ll_fz_new_text_writer_with_output(format, out, options):
  10403. r"""Low-level wrapper for `::fz_new_text_writer_with_output()`."""
  10404. return _mupdf.ll_fz_new_text_writer_with_output(format, out, options)
  10405. def ll_fz_new_trace_device(out):
  10406. r"""
  10407. Low-level wrapper for `::fz_new_trace_device()`.
  10408. Create a device to print a debug trace of all device calls.
  10409. """
  10410. return _mupdf.ll_fz_new_trace_device(out)
  10411. def ll_fz_new_tree_archive(tree):
  10412. r"""
  10413. Low-level wrapper for `::fz_new_tree_archive()`.
  10414. Create an archive that holds named buffers.
  10415. tree can either be a preformed tree with fz_buffers as values,
  10416. or it can be NULL for an empty tree.
  10417. """
  10418. return _mupdf.ll_fz_new_tree_archive(tree)
  10419. def ll_fz_new_type3_font(name, matrix):
  10420. r"""
  10421. Low-level wrapper for `::fz_new_type3_font()`.
  10422. Create a new (empty) type3 font.
  10423. name: Name of font (or NULL).
  10424. matrix: Font matrix.
  10425. Returns a new font handle, or throws exception on
  10426. allocation failure.
  10427. """
  10428. return _mupdf.ll_fz_new_type3_font(name, matrix)
  10429. def ll_fz_new_xhtml_document_from_document(old_doc, opts):
  10430. r"""
  10431. Low-level wrapper for `::fz_new_xhtml_document_from_document()`.
  10432. Use text extraction to convert the input document into XHTML,
  10433. then open the result as a new document that can be reflowed.
  10434. """
  10435. return _mupdf.ll_fz_new_xhtml_document_from_document(old_doc, opts)
  10436. def ll_fz_new_xmltext_device(out):
  10437. r"""
  10438. Low-level wrapper for `::fz_new_xmltext_device()`.
  10439. Create a device to output raw information.
  10440. """
  10441. return _mupdf.ll_fz_new_xmltext_device(out)
  10442. def ll_fz_new_zip_writer(filename):
  10443. r"""
  10444. Low-level wrapper for `::fz_new_zip_writer()`.
  10445. Create a new zip writer that writes to a given file.
  10446. Open an archive using a seekable stream object rather than
  10447. opening a file or directory on disk.
  10448. """
  10449. return _mupdf.ll_fz_new_zip_writer(filename)
  10450. def ll_fz_new_zip_writer_with_output(out):
  10451. r"""
  10452. Low-level wrapper for `::fz_new_zip_writer_with_output()`.
  10453. Create a new zip writer that writes to a given output stream.
  10454. Ownership of out passes in immediately upon calling this function.
  10455. The caller should never drop the fz_output, even if this function throws
  10456. an exception.
  10457. """
  10458. return _mupdf.ll_fz_new_zip_writer_with_output(out)
  10459. def ll_fz_next_page(doc, loc):
  10460. r"""
  10461. Low-level wrapper for `::fz_next_page()`.
  10462. Function to get the location of the next page (allowing for the
  10463. end of chapters etc). If at the end of the document, returns the
  10464. current location.
  10465. """
  10466. return _mupdf.ll_fz_next_page(doc, loc)
  10467. def ll_fz_normalize_vector(p):
  10468. r"""
  10469. Low-level wrapper for `::fz_normalize_vector()`.
  10470. Normalize a vector to length one.
  10471. """
  10472. return _mupdf.ll_fz_normalize_vector(p)
  10473. def ll_fz_open_a85d(chain):
  10474. r"""
  10475. Low-level wrapper for `::fz_open_a85d()`.
  10476. a85d filter performs ASCII 85 Decoding of data read
  10477. from the chained filter.
  10478. """
  10479. return _mupdf.ll_fz_open_a85d(chain)
  10480. def ll_fz_open_accelerated_document(filename, accel):
  10481. r"""
  10482. Low-level wrapper for `::fz_open_accelerated_document()`.
  10483. Open a document file and read its basic structure so pages and
  10484. objects can be located. MuPDF will try to repair broken
  10485. documents (without actually changing the file contents).
  10486. The returned fz_document is used when calling most other
  10487. document related functions.
  10488. filename: a path to a file as it would be given to open(2).
  10489. """
  10490. return _mupdf.ll_fz_open_accelerated_document(filename, accel)
  10491. def ll_fz_open_accelerated_document_with_stream(magic, stream, accel):
  10492. r"""
  10493. Low-level wrapper for `::fz_open_accelerated_document_with_stream()`.
  10494. Open a document using the specified stream object rather than
  10495. opening a file on disk.
  10496. magic: a string used to detect document type; either a file name
  10497. or mime-type.
  10498. stream: a stream of the document contents.
  10499. accel: NULL, or a stream of the 'accelerator' contents for this document.
  10500. NOTE: The caller retains ownership of 'stream' and 'accel' - the document will
  10501. take its own references if required.
  10502. """
  10503. return _mupdf.ll_fz_open_accelerated_document_with_stream(magic, stream, accel)
  10504. def ll_fz_open_accelerated_document_with_stream_and_dir(magic, stream, accel, dir):
  10505. r"""
  10506. Low-level wrapper for `::fz_open_accelerated_document_with_stream_and_dir()`.
  10507. Open a document using the specified stream object rather than
  10508. opening a file on disk.
  10509. magic: a string used to detect document type; either a file name
  10510. or mime-type.
  10511. stream: a stream of the document contents.
  10512. accel: NULL, or a stream of the 'accelerator' contents for this document.
  10513. dir: NULL, or the 'directory context' for the stream contents.
  10514. NOTE: The caller retains ownership of 'stream', 'accel' and 'dir' - the document will
  10515. take its own references if required.
  10516. """
  10517. return _mupdf.ll_fz_open_accelerated_document_with_stream_and_dir(magic, stream, accel, dir)
  10518. def ll_fz_open_aesd(chain, key, keylen):
  10519. r"""
  10520. Low-level wrapper for `::fz_open_aesd()`.
  10521. aesd filter performs AES decoding of data read from the chained
  10522. filter using the supplied key.
  10523. """
  10524. return _mupdf.ll_fz_open_aesd(chain, key, keylen)
  10525. def ll_fz_open_ahxd(chain):
  10526. r"""
  10527. Low-level wrapper for `::fz_open_ahxd()`.
  10528. ahxd filter performs ASCII Hex decoding of data read
  10529. from the chained filter.
  10530. """
  10531. return _mupdf.ll_fz_open_ahxd(chain)
  10532. def ll_fz_open_arc4(chain, key, keylen):
  10533. r"""
  10534. Low-level wrapper for `::fz_open_arc4()`.
  10535. arc4 filter performs RC4 decoding of data read from the chained
  10536. filter using the supplied key.
  10537. """
  10538. return _mupdf.ll_fz_open_arc4(chain, key, keylen)
  10539. def ll_fz_open_archive(filename):
  10540. r"""
  10541. Low-level wrapper for `::fz_open_archive()`.
  10542. Open a zip or tar archive
  10543. Open a file and identify its archive type based on the archive
  10544. signature contained inside.
  10545. filename: a path to a file as it would be given to open(2).
  10546. """
  10547. return _mupdf.ll_fz_open_archive(filename)
  10548. def ll_fz_open_archive_entry(arch, name):
  10549. r"""
  10550. Low-level wrapper for `::fz_open_archive_entry()`.
  10551. Opens an archive entry as a stream.
  10552. name: Entry name to look for, this must be an exact match to
  10553. the entry name in the archive.
  10554. Throws an exception if a matching entry cannot be found.
  10555. """
  10556. return _mupdf.ll_fz_open_archive_entry(arch, name)
  10557. def ll_fz_open_archive_with_stream(file):
  10558. r"""
  10559. Low-level wrapper for `::fz_open_archive_with_stream()`.
  10560. Open zip or tar archive stream.
  10561. Open an archive using a seekable stream object rather than
  10562. opening a file or directory on disk.
  10563. """
  10564. return _mupdf.ll_fz_open_archive_with_stream(file)
  10565. def ll_fz_open_brotlid(chain):
  10566. r"""
  10567. Low-level wrapper for `::fz_open_brotlid()`.
  10568. brotlid filter performs Brotli decoding of data read
  10569. from the chained filter.
  10570. """
  10571. return _mupdf.ll_fz_open_brotlid(chain)
  10572. def ll_fz_open_buffer(buf):
  10573. r"""
  10574. Low-level wrapper for `::fz_open_buffer()`.
  10575. Open a buffer as a stream.
  10576. buf: The buffer to open. Ownership of the buffer is NOT passed
  10577. in (this function takes its own reference).
  10578. Returns pointer to newly created stream. May throw exceptions on
  10579. failure to allocate.
  10580. """
  10581. return _mupdf.ll_fz_open_buffer(buf)
  10582. def ll_fz_open_cfb_archive(filename):
  10583. r"""
  10584. Low-level wrapper for `::fz_open_cfb_archive()`.
  10585. Open a cfb file as an archive.
  10586. An exception is thrown if the file is not recognised as a cfb.
  10587. filename: a path to an archive file as it would be given to
  10588. open(2).
  10589. """
  10590. return _mupdf.ll_fz_open_cfb_archive(filename)
  10591. def ll_fz_open_cfb_archive_with_stream(file):
  10592. r"""
  10593. Low-level wrapper for `::fz_open_cfb_archive_with_stream()`.
  10594. Open a cfb file as an archive.
  10595. Open an archive using a seekable stream object rather than
  10596. opening a file or directory on disk.
  10597. An exception is thrown if the file is not recognised as a chm.
  10598. """
  10599. return _mupdf.ll_fz_open_cfb_archive_with_stream(file)
  10600. def ll_fz_open_compressed_buffer(arg_1):
  10601. r"""
  10602. Low-level wrapper for `::fz_open_compressed_buffer()`.
  10603. Open a stream to read the decompressed version of a buffer.
  10604. """
  10605. return _mupdf.ll_fz_open_compressed_buffer(arg_1)
  10606. def ll_fz_open_concat(max, pad):
  10607. r"""
  10608. Low-level wrapper for `::fz_open_concat()`.
  10609. Concat filter concatenates several streams into one.
  10610. """
  10611. return _mupdf.ll_fz_open_concat(max, pad)
  10612. def ll_fz_open_dctd(chain, color_transform, invert_cmyk, l2factor, jpegtables):
  10613. r"""
  10614. Low-level wrapper for `::fz_open_dctd()`.
  10615. dctd filter performs DCT (JPEG) decoding of data read
  10616. from the chained filter.
  10617. color_transform implements the PDF color_transform option
  10618. use -1 for default behavior
  10619. use 0 to disable YUV-RGB / YCCK-CMYK transforms
  10620. use 1 to enable YUV-RGB / YCCK-CMYK transforms
  10621. invert_cmyk implements the necessary inversion for Photoshop CMYK images
  10622. use 0 if embedded in PDF
  10623. use 1 if not embedded in PDF
  10624. For subsampling on decode, set l2factor to the log2 of the
  10625. reduction required (therefore 0 = full size decode).
  10626. jpegtables is an optional stream from which the JPEG tables
  10627. can be read. Use NULL if not required.
  10628. """
  10629. return _mupdf.ll_fz_open_dctd(chain, color_transform, invert_cmyk, l2factor, jpegtables)
  10630. def ll_fz_open_directory(path):
  10631. r"""
  10632. Low-level wrapper for `::fz_open_directory()`.
  10633. Open a directory as if it was an archive.
  10634. A special case where a directory is opened as if it was an
  10635. archive.
  10636. Note that for directories it is not possible to retrieve the
  10637. number of entries or list the entries. It is however possible
  10638. to check if the archive has a particular entry.
  10639. path: a path to a directory as it would be given to opendir(3).
  10640. """
  10641. return _mupdf.ll_fz_open_directory(path)
  10642. def ll_fz_open_document(filename):
  10643. r"""
  10644. Low-level wrapper for `::fz_open_document()`.
  10645. Open a document file and read its basic structure so pages and
  10646. objects can be located. MuPDF will try to repair broken
  10647. documents (without actually changing the file contents).
  10648. The returned fz_document is used when calling most other
  10649. document related functions.
  10650. filename: a path to a file as it would be given to open(2).
  10651. """
  10652. return _mupdf.ll_fz_open_document(filename)
  10653. def ll_fz_open_document_with_buffer(magic, buffer):
  10654. r"""
  10655. Low-level wrapper for `::fz_open_document_with_buffer()`.
  10656. Open a document using a buffer rather than opening a file on disk.
  10657. """
  10658. return _mupdf.ll_fz_open_document_with_buffer(magic, buffer)
  10659. def ll_fz_open_document_with_stream(magic, stream):
  10660. r"""
  10661. Low-level wrapper for `::fz_open_document_with_stream()`.
  10662. Open a document using the specified stream object rather than
  10663. opening a file on disk.
  10664. magic: a string used to detect document type; either a file name
  10665. or mime-type.
  10666. stream: a stream representing the contents of the document file.
  10667. NOTE: The caller retains ownership of 'stream' - the document will take its
  10668. own reference if required.
  10669. """
  10670. return _mupdf.ll_fz_open_document_with_stream(magic, stream)
  10671. def ll_fz_open_document_with_stream_and_dir(magic, stream, dir):
  10672. r"""
  10673. Low-level wrapper for `::fz_open_document_with_stream_and_dir()`.
  10674. Open a document using the specified stream object rather than
  10675. opening a file on disk.
  10676. magic: a string used to detect document type; either a file name
  10677. or mime-type.
  10678. stream: a stream representing the contents of the document file.
  10679. dir: a 'directory context' for those filetypes that need it.
  10680. NOTE: The caller retains ownership of 'stream' and 'dir' - the document will
  10681. take its own references if required.
  10682. """
  10683. return _mupdf.ll_fz_open_document_with_stream_and_dir(magic, stream, dir)
  10684. def ll_fz_open_endstream_filter(chain, len, offset):
  10685. r"""
  10686. Low-level wrapper for `::fz_open_endstream_filter()`.
  10687. The endstream filter reads a PDF substream, and starts to look
  10688. for an 'endstream' token after the specified length.
  10689. """
  10690. return _mupdf.ll_fz_open_endstream_filter(chain, len, offset)
  10691. def ll_fz_open_faxd(chain, k, end_of_line, encoded_byte_align, columns, rows, end_of_block, black_is_1):
  10692. r"""
  10693. Low-level wrapper for `::fz_open_faxd()`.
  10694. faxd filter performs FAX decoding of data read from
  10695. the chained filter.
  10696. k: see fax specification (fax default is 0).
  10697. end_of_line: whether we expect end of line markers (fax default
  10698. is 0).
  10699. encoded_byte_align: whether we align to bytes after each line
  10700. (fax default is 0).
  10701. columns: how many columns in the image (fax default is 1728).
  10702. rows: 0 for unspecified or the number of rows of data to expect.
  10703. end_of_block: whether we expect end of block markers (fax
  10704. default is 1).
  10705. black_is_1: determines the polarity of the image (fax default is
  10706. 0).
  10707. """
  10708. return _mupdf.ll_fz_open_faxd(chain, k, end_of_line, encoded_byte_align, columns, rows, end_of_block, black_is_1)
  10709. def ll_fz_open_file(filename):
  10710. r"""
  10711. Low-level wrapper for `::fz_open_file()`.
  10712. Open the named file and wrap it in a stream.
  10713. filename: Path to a file. On non-Windows machines the filename
  10714. should be exactly as it would be passed to fopen(2). On Windows
  10715. machines, the path should be UTF-8 encoded so that non-ASCII
  10716. characters can be represented. Other platforms do the encoding
  10717. as standard anyway (and in most cases, particularly for MacOS
  10718. and Linux, the encoding they use is UTF-8 anyway).
  10719. """
  10720. return _mupdf.ll_fz_open_file(filename)
  10721. def ll_fz_open_file_autodelete(filename):
  10722. r"""
  10723. Low-level wrapper for `::fz_open_file_autodelete()`.
  10724. Do the same as fz_open_file, but delete the file upon close.
  10725. """
  10726. return _mupdf.ll_fz_open_file_autodelete(filename)
  10727. def ll_fz_open_file_ptr_no_close(file):
  10728. r"""
  10729. Low-level wrapper for `::fz_open_file_ptr_no_close()`.
  10730. Create a stream from a FILE * that will not be closed
  10731. when the stream is dropped.
  10732. """
  10733. return _mupdf.ll_fz_open_file_ptr_no_close(file)
  10734. def ll_fz_open_flated(chain, window_bits):
  10735. r"""
  10736. Low-level wrapper for `::fz_open_flated()`.
  10737. flated filter performs LZ77 decoding (inflating) of data read
  10738. from the chained filter.
  10739. window_bits: How large a decompression window to use. Typically
  10740. 15. A negative number, -n, means to use n bits, but to expect
  10741. raw data with no header.
  10742. """
  10743. return _mupdf.ll_fz_open_flated(chain, window_bits)
  10744. def ll_fz_open_image_decomp_stream(arg_1, arg_2, l2factor):
  10745. r"""
  10746. Low-level wrapper for `::fz_open_image_decomp_stream()`.
  10747. This function has out-params. Python/C# wrappers look like:
  10748. `ll_fz_open_image_decomp_stream(::fz_stream *arg_0, ::fz_compression_params *arg_1)` => `(fz_stream *, int l2factor)`
  10749. Open a stream to read the decompressed version of another stream
  10750. with optional log2 subsampling.
  10751. """
  10752. return _mupdf.ll_fz_open_image_decomp_stream(arg_1, arg_2, l2factor)
  10753. def ll_fz_open_image_decomp_stream_from_buffer(arg_1, l2factor):
  10754. r"""
  10755. Low-level wrapper for `::fz_open_image_decomp_stream_from_buffer()`.
  10756. This function has out-params. Python/C# wrappers look like:
  10757. `ll_fz_open_image_decomp_stream_from_buffer(::fz_compressed_buffer *arg_0)` => `(fz_stream *, int l2factor)`
  10758. Open a stream to read the decompressed version of a buffer,
  10759. with optional log2 subsampling.
  10760. l2factor = NULL for no subsampling, or a pointer to an integer
  10761. containing the maximum log2 subsample factor acceptable (0 =
  10762. none, 1 = halve dimensions, 2 = quarter dimensions etc). If
  10763. non-NULL, then *l2factor will be updated on exit with the actual
  10764. log2 subsample factor achieved.
  10765. """
  10766. return _mupdf.ll_fz_open_image_decomp_stream_from_buffer(arg_1, l2factor)
  10767. def ll_fz_open_jbig2d(chain, globals, embedded):
  10768. r"""
  10769. Low-level wrapper for `::fz_open_jbig2d()`.
  10770. Open a filter that performs jbig2 decompression on the chained
  10771. stream, using the optional globals record.
  10772. """
  10773. return _mupdf.ll_fz_open_jbig2d(chain, globals, embedded)
  10774. def ll_fz_open_leecher(chain, buf):
  10775. r"""
  10776. Low-level wrapper for `::fz_open_leecher()`.
  10777. Attach a filter to a stream that will store any
  10778. characters read from the stream into the supplied buffer.
  10779. chain: The underlying stream to leech from.
  10780. buf: The buffer into which the read data should be appended.
  10781. The buffer will be resized as required.
  10782. Returns pointer to newly created stream. May throw exceptions on
  10783. failure to allocate.
  10784. """
  10785. return _mupdf.ll_fz_open_leecher(chain, buf)
  10786. def ll_fz_open_libarchive_archive(filename):
  10787. r"""
  10788. Low-level wrapper for `::fz_open_libarchive_archive()`.
  10789. Open an archive using libarchive.
  10790. An exception is thrown if the file is not supported by libarchive.
  10791. filename: a path to an archive file as it would be given to
  10792. open(2).
  10793. """
  10794. return _mupdf.ll_fz_open_libarchive_archive(filename)
  10795. def ll_fz_open_libarchive_archive_with_stream(file):
  10796. r"""
  10797. Low-level wrapper for `::fz_open_libarchive_archive_with_stream()`.
  10798. Open an archive using libarchive.
  10799. Open an archive using a seekable stream object rather than
  10800. opening a file or directory on disk.
  10801. An exception is thrown if the stream is not supported by libarchive.
  10802. """
  10803. return _mupdf.ll_fz_open_libarchive_archive_with_stream(file)
  10804. def ll_fz_open_libarchived(chain):
  10805. r"""
  10806. Low-level wrapper for `::fz_open_libarchived()`.
  10807. libarchived filter performs generic compressed decoding of data
  10808. in any format understood by libarchive from the chained filter.
  10809. This will throw an exception if libarchive is not built in, or
  10810. if the compression format is not recognised.
  10811. """
  10812. return _mupdf.ll_fz_open_libarchived(chain)
  10813. def ll_fz_open_lzwd(chain, early_change, min_bits, reverse_bits, old_tiff):
  10814. r"""
  10815. Low-level wrapper for `::fz_open_lzwd()`.
  10816. lzwd filter performs LZW decoding of data read from the chained
  10817. filter.
  10818. early_change: (Default 1) specifies whether to change codes 1
  10819. bit early.
  10820. min_bits: (Default 9) specifies the minimum number of bits to
  10821. use.
  10822. reverse_bits: (Default 0) allows for compatibility with gif and
  10823. old style tiffs (1).
  10824. old_tiff: (Default 0) allows for different handling of the clear
  10825. code, as found in old style tiffs.
  10826. """
  10827. return _mupdf.ll_fz_open_lzwd(chain, early_change, min_bits, reverse_bits, old_tiff)
  10828. def ll_fz_open_memory(data, len):
  10829. r"""
  10830. Low-level wrapper for `::fz_open_memory()`.
  10831. Open a block of memory as a stream.
  10832. data: Pointer to start of data block. Ownership of the data
  10833. block is NOT passed in.
  10834. len: Number of bytes in data block.
  10835. Returns pointer to newly created stream. May throw exceptions on
  10836. failure to allocate.
  10837. """
  10838. return _mupdf.ll_fz_open_memory(data, len)
  10839. def ll_fz_open_null_filter(chain, len, offset):
  10840. r"""
  10841. Low-level wrapper for `::fz_open_null_filter()`.
  10842. The null filter reads a specified amount of data from the
  10843. substream.
  10844. """
  10845. return _mupdf.ll_fz_open_null_filter(chain, len, offset)
  10846. def ll_fz_open_predict(chain, predictor, columns, colors, bpc):
  10847. r"""
  10848. Low-level wrapper for `::fz_open_predict()`.
  10849. predict filter performs pixel prediction on data read from
  10850. the chained filter.
  10851. predictor: 1 = copy, 2 = tiff, other = inline PNG predictor
  10852. columns: width of image in pixels
  10853. colors: number of components.
  10854. bpc: bits per component (typically 8)
  10855. """
  10856. return _mupdf.ll_fz_open_predict(chain, predictor, columns, colors, bpc)
  10857. def ll_fz_open_range_filter(chain, ranges, nranges):
  10858. r"""
  10859. Low-level wrapper for `::fz_open_range_filter()`.
  10860. The range filter copies data from specified ranges of the
  10861. chained stream.
  10862. """
  10863. return _mupdf.ll_fz_open_range_filter(chain, ranges, nranges)
  10864. def ll_fz_open_reflowed_document(underdoc, opts):
  10865. r"""Low-level wrapper for `::fz_open_reflowed_document()`."""
  10866. return _mupdf.ll_fz_open_reflowed_document(underdoc, opts)
  10867. def ll_fz_open_rld(chain):
  10868. r"""
  10869. Low-level wrapper for `::fz_open_rld()`.
  10870. rld filter performs Run Length Decoding of data read
  10871. from the chained filter.
  10872. """
  10873. return _mupdf.ll_fz_open_rld(chain)
  10874. def ll_fz_open_sgilog16(chain, w):
  10875. r"""
  10876. Low-level wrapper for `::fz_open_sgilog16()`.
  10877. SGI Log 16bit (greyscale) decode from the chained filter.
  10878. Decodes lines of w pixels to 8bpp greyscale.
  10879. """
  10880. return _mupdf.ll_fz_open_sgilog16(chain, w)
  10881. def ll_fz_open_sgilog24(chain, w):
  10882. r"""
  10883. Low-level wrapper for `::fz_open_sgilog24()`.
  10884. SGI Log 24bit (LUV) decode from the chained filter.
  10885. Decodes lines of w pixels to 8bpc rgb.
  10886. """
  10887. return _mupdf.ll_fz_open_sgilog24(chain, w)
  10888. def ll_fz_open_sgilog32(chain, w):
  10889. r"""
  10890. Low-level wrapper for `::fz_open_sgilog32()`.
  10891. SGI Log 32bit (LUV) decode from the chained filter.
  10892. Decodes lines of w pixels to 8bpc rgb.
  10893. """
  10894. return _mupdf.ll_fz_open_sgilog32(chain, w)
  10895. def ll_fz_open_tar_archive(filename):
  10896. r"""
  10897. Low-level wrapper for `::fz_open_tar_archive()`.
  10898. Open a tar archive file.
  10899. An exception is thrown if the file is not a tar archive as
  10900. indicated by the presence of a tar signature.
  10901. filename: a path to a tar archive file as it would be given to
  10902. open(2).
  10903. """
  10904. return _mupdf.ll_fz_open_tar_archive(filename)
  10905. def ll_fz_open_tar_archive_with_stream(file):
  10906. r"""
  10907. Low-level wrapper for `::fz_open_tar_archive_with_stream()`.
  10908. Open a tar archive stream.
  10909. Open an archive using a seekable stream object rather than
  10910. opening a file or directory on disk.
  10911. An exception is thrown if the stream is not a tar archive as
  10912. indicated by the presence of a tar signature.
  10913. """
  10914. return _mupdf.ll_fz_open_tar_archive_with_stream(file)
  10915. def ll_fz_open_thunder(chain, w):
  10916. r"""
  10917. Low-level wrapper for `::fz_open_thunder()`.
  10918. 4bit greyscale Thunderscan decoding from the chained filter.
  10919. Decodes lines of w pixels to 8bpp greyscale.
  10920. """
  10921. return _mupdf.ll_fz_open_thunder(chain, w)
  10922. def ll_fz_open_zip_archive(path):
  10923. r"""
  10924. Low-level wrapper for `::fz_open_zip_archive()`.
  10925. Open a zip archive file.
  10926. An exception is thrown if the file is not a zip archive as
  10927. indicated by the presence of a zip signature.
  10928. filename: a path to a zip archive file as it would be given to
  10929. open(2).
  10930. """
  10931. return _mupdf.ll_fz_open_zip_archive(path)
  10932. def ll_fz_open_zip_archive_with_stream(file):
  10933. r"""
  10934. Low-level wrapper for `::fz_open_zip_archive_with_stream()`.
  10935. Open a zip archive stream.
  10936. Open an archive using a seekable stream object rather than
  10937. opening a file or directory on disk.
  10938. An exception is thrown if the stream is not a zip archive as
  10939. indicated by the presence of a zip signature.
  10940. """
  10941. return _mupdf.ll_fz_open_zip_archive_with_stream(file)
  10942. def ll_fz_opt_from_list(opt, optlist):
  10943. r"""
  10944. Low-level wrapper for `::fz_opt_from_list()`.
  10945. Return the index of a (case-insensitive) option within an optlist.
  10946. For instance for optlist = "Foo|Bar|Baz", and opt = "bar",
  10947. this would return 1.
  10948. If the optlist ends with "|*" then that is a catch all case and
  10949. matches all options allowing the caller to process it itself.
  10950. fz_optarg will be set to point to the option, and the return
  10951. value will be the index of the '*' option within that list.
  10952. If an optlist entry ends with ':' (e.g. "Foo:") then that option
  10953. may have suboptions appended to it (for example "JPG:80") and
  10954. fz_optarg will be set to point at "80". Otherwise fz_optarg will
  10955. be set to NULL.
  10956. In the event of no-match found, prints an error and returns -1.
  10957. """
  10958. return _mupdf.ll_fz_opt_from_list(opt, optlist)
  10959. def ll_fz_option_eq(a, b):
  10960. r"""
  10961. Low-level wrapper for `::fz_option_eq()`.
  10962. Check to see if an option, a, from a string matches a reference
  10963. option, b.
  10964. (i.e. a could be 'foo' or 'foo,bar...' etc, but b can only be
  10965. 'foo'.)
  10966. """
  10967. return _mupdf.ll_fz_option_eq(a, b)
  10968. def ll_fz_optpath(opt):
  10969. r"""
  10970. Low-level wrapper for `::fz_optpath()`.
  10971. Convert "-" to "/dev/stdout" for use with command lines.
  10972. Also converts "nul" and "con" on Windows.
  10973. """
  10974. return _mupdf.ll_fz_optpath(opt)
  10975. def ll_fz_outline_glyph(font, gid, ctm):
  10976. r"""
  10977. Low-level wrapper for `::fz_outline_glyph()`.
  10978. Look a glyph up from a font, and return the outline of the
  10979. glyph using the given transform.
  10980. The caller owns the returned path, and so is responsible for
  10981. ensuring that it eventually gets dropped.
  10982. """
  10983. return _mupdf.ll_fz_outline_glyph(font, gid, ctm)
  10984. def ll_fz_outline_iterator_delete(iter):
  10985. r"""
  10986. Low-level wrapper for `::fz_outline_iterator_delete()`.
  10987. Delete the current item.
  10988. This implicitly moves us to the 'next' item, and the return code is as for fz_outline_iterator_next.
  10989. """
  10990. return _mupdf.ll_fz_outline_iterator_delete(iter)
  10991. def ll_fz_outline_iterator_down(iter):
  10992. r"""Low-level wrapper for `::fz_outline_iterator_down()`."""
  10993. return _mupdf.ll_fz_outline_iterator_down(iter)
  10994. def ll_fz_outline_iterator_from_outline(outline):
  10995. r"""Low-level wrapper for `::fz_outline_iterator_from_outline()`."""
  10996. return _mupdf.ll_fz_outline_iterator_from_outline(outline)
  10997. def ll_fz_outline_iterator_insert(iter, item):
  10998. r"""
  10999. Low-level wrapper for `::fz_outline_iterator_insert()`.
  11000. Call to insert a new item BEFORE the current point.
  11001. Ownership of pointers are retained by the caller. The item data will be copied.
  11002. After an insert, we do not change where we are pointing.
  11003. The return code is the same as for next, it indicates the current iterator position.
  11004. Note that for PDF documents at least, the is_open field is ignored. All childless
  11005. nodes are considered closed by PDF, hence (given every newly inserted node is
  11006. childless by definition) all new nodes are inserted with is_open == false.
  11007. """
  11008. return _mupdf.ll_fz_outline_iterator_insert(iter, item)
  11009. def ll_fz_outline_iterator_item(iter):
  11010. r"""
  11011. Low-level wrapper for `::fz_outline_iterator_item()`.
  11012. Call to get the current outline item.
  11013. Can return NULL. The item is only valid until the next call.
  11014. """
  11015. return _mupdf.ll_fz_outline_iterator_item(iter)
  11016. def ll_fz_outline_iterator_next(iter):
  11017. r"""
  11018. Low-level wrapper for `::fz_outline_iterator_next()`.
  11019. Calls to move the iterator position.
  11020. A negative return value means we could not move as requested. Otherwise:
  11021. 0 = the final position has a valid item.
  11022. 1 = not a valid item, but we can insert an item here.
  11023. """
  11024. return _mupdf.ll_fz_outline_iterator_next(iter)
  11025. def ll_fz_outline_iterator_prev(iter):
  11026. r"""Low-level wrapper for `::fz_outline_iterator_prev()`."""
  11027. return _mupdf.ll_fz_outline_iterator_prev(iter)
  11028. def ll_fz_outline_iterator_up(iter):
  11029. r"""Low-level wrapper for `::fz_outline_iterator_up()`."""
  11030. return _mupdf.ll_fz_outline_iterator_up(iter)
  11031. def ll_fz_outline_iterator_update(iter, item):
  11032. r"""
  11033. Low-level wrapper for `::fz_outline_iterator_update()`.
  11034. Update the current item properties according to the given item.
  11035. """
  11036. return _mupdf.ll_fz_outline_iterator_update(iter, item)
  11037. def ll_fz_output_accelerator(doc, accel):
  11038. r"""
  11039. Low-level wrapper for `::fz_output_accelerator()`.
  11040. Output accelerator data for the document to a given output
  11041. stream.
  11042. """
  11043. return _mupdf.ll_fz_output_accelerator(doc, accel)
  11044. def ll_fz_output_supports_stream(out):
  11045. r"""
  11046. Low-level wrapper for `::fz_output_supports_stream()`.
  11047. Query whether a given fz_output supports fz_stream_from_output.
  11048. """
  11049. return _mupdf.ll_fz_output_supports_stream(out)
  11050. def ll_fz_output_xml(out, item, level):
  11051. r"""
  11052. Low-level wrapper for `::fz_output_xml()`.
  11053. Pretty-print an XML tree to given output.
  11054. """
  11055. return _mupdf.ll_fz_output_xml(out, item, level)
  11056. def ll_fz_pack_path(pack, path):
  11057. r"""
  11058. Low-level wrapper for `::fz_pack_path()`.
  11059. Pack a path into the given block.
  11060. To minimise the size of paths, this function allows them to be
  11061. packed into a buffer with other information. Paths can be used
  11062. interchangeably regardless of how they are packed.
  11063. pack: Pointer to a block of data to pack the path into. Should
  11064. be aligned by the caller to the same alignment as required for
  11065. a fz_path pointer.
  11066. path: The path to pack.
  11067. Returns the number of bytes within the block used. Callers can
  11068. access the packed path data by casting the value of pack on
  11069. entry to be a fz_path *.
  11070. Throws exceptions on failure to allocate.
  11071. Implementation details: Paths can be 'unpacked', 'flat', or
  11072. 'open'. Standard paths, as created are 'unpacked'. Paths
  11073. will be packed as 'flat', unless they are too large
  11074. (where large indicates that they exceed some private
  11075. implementation defined limits, currently including having
  11076. more than 256 coordinates or commands).
  11077. Large paths are 'open' packed as a header into the given block,
  11078. plus pointers to other data blocks.
  11079. Users should not have to care about whether paths are 'open'
  11080. or 'flat' packed. Simply pack a path (if required), and then
  11081. forget about the details.
  11082. """
  11083. return _mupdf.ll_fz_pack_path(pack, path)
  11084. def ll_fz_packed_path_size(path):
  11085. r"""
  11086. Low-level wrapper for `::fz_packed_path_size()`.
  11087. Return the number of bytes required to pack a path.
  11088. """
  11089. return _mupdf.ll_fz_packed_path_size(path)
  11090. def ll_fz_page_label(page, buf, size):
  11091. r"""
  11092. Low-level wrapper for `::fz_page_label()`.
  11093. Get page label for a given page.
  11094. """
  11095. return _mupdf.ll_fz_page_label(page, buf, size)
  11096. def ll_fz_page_number_from_location(doc, loc):
  11097. r"""
  11098. Low-level wrapper for `::fz_page_number_from_location()`.
  11099. Converts from chapter+page to page number. This may cause many
  11100. chapters to be laid out in order to calculate the number of
  11101. pages within those chapters.
  11102. """
  11103. return _mupdf.ll_fz_page_number_from_location(doc, loc)
  11104. def ll_fz_page_presentation(page, transition, duration):
  11105. r"""
  11106. Low-level wrapper for `::fz_page_presentation()`.
  11107. This function has out-params. Python/C# wrappers look like:
  11108. `ll_fz_page_presentation(::fz_page *page, ::fz_transition *transition)` => `(fz_transition *, float duration)`
  11109. Get the presentation details for a given page.
  11110. transition: A pointer to a transition struct to fill out.
  11111. duration: A pointer to a place to set the page duration in
  11112. seconds. Will be set to 0 if no transition is specified for the
  11113. page.
  11114. Returns: a pointer to the transition structure, or NULL if there
  11115. is no transition specified for the page.
  11116. """
  11117. return _mupdf.ll_fz_page_presentation(page, transition, duration)
  11118. def ll_fz_page_separations(page):
  11119. r"""
  11120. Low-level wrapper for `::fz_page_separations()`.
  11121. Get the separations details for a page.
  11122. This will be NULL, unless the format specifically supports
  11123. separations (such as PDF files). May be NULL even
  11124. so, if there are no separations on a page.
  11125. Returns a reference that must be dropped.
  11126. """
  11127. return _mupdf.ll_fz_page_separations(page)
  11128. def ll_fz_page_uses_overprint(page):
  11129. r"""
  11130. Low-level wrapper for `::fz_page_uses_overprint()`.
  11131. Query if a given page requires overprint.
  11132. """
  11133. return _mupdf.ll_fz_page_uses_overprint(page)
  11134. def ll_fz_paint_shade(shade, override_cs, ctm, dest, color_params, bbox, eop, cache):
  11135. r"""
  11136. Low-level wrapper for `::fz_paint_shade()`.
  11137. This function has out-params. Python/C# wrappers look like:
  11138. `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)` =>
  11139. Render a shade to a given pixmap.
  11140. shade: The shade to paint.
  11141. override_cs: NULL, or colorspace to override the shades
  11142. inbuilt colorspace.
  11143. ctm: The transform to apply.
  11144. dest: The pixmap to render into.
  11145. color_params: The color rendering settings
  11146. bbox: Pointer to a bounding box to limit the rendering
  11147. of the shade.
  11148. eop: NULL, or pointer to overprint bitmap.
  11149. cache: *cache is used to cache color information. If *cache is NULL it
  11150. is set to point to a new fz_shade_color_cache. If cache is NULL it is
  11151. ignored.
  11152. """
  11153. return _mupdf.ll_fz_paint_shade(shade, override_cs, ctm, dest, color_params, bbox, eop, cache)
  11154. def ll_fz_paragraph_break(page):
  11155. r"""
  11156. Low-level wrapper for `::fz_paragraph_break()`.
  11157. Attempt to break paragraphs at plausible places.
  11158. """
  11159. return _mupdf.ll_fz_paragraph_break(page)
  11160. def ll_fz_parse_draw_options(options, string):
  11161. r"""
  11162. Low-level wrapper for `::fz_parse_draw_options()`.
  11163. Parse draw device options from a comma separated key-value string.
  11164. """
  11165. return _mupdf.ll_fz_parse_draw_options(options, string)
  11166. def ll_fz_parse_json(pool, s):
  11167. r"""Low-level wrapper for `::fz_parse_json()`."""
  11168. return _mupdf.ll_fz_parse_json(pool, s)
  11169. def ll_fz_parse_page_range(s, a, b, n):
  11170. r"""
  11171. Low-level wrapper for `::fz_parse_page_range()`.
  11172. This function has out-params. Python/C# wrappers look like:
  11173. `ll_fz_parse_page_range(const char *s, int n)` => `(const char *, int a, int b)`
  11174. """
  11175. return _mupdf.ll_fz_parse_page_range(s, a, b, n)
  11176. def ll_fz_parse_pcl_options(opts, args):
  11177. r"""
  11178. Low-level wrapper for `::fz_parse_pcl_options()`.
  11179. Parse PCL options.
  11180. Currently defined options and values are as follows:
  11181. preset=X Either "generic" or one of the presets as for fz_pcl_preset.
  11182. spacing=0 No vertical spacing capability
  11183. spacing=1 PCL 3 spacing (<ESC>*p+<n>Y)
  11184. spacing=2 PCL 4 spacing (<ESC>*b<n>Y)
  11185. spacing=3 PCL 5 spacing (<ESC>*b<n>Y and clear seed row)
  11186. mode2 Disable/Enable mode 2 graphics compression
  11187. mode3 Disable/Enable mode 3 graphics compression
  11188. eog_reset End of graphics (<ESC>*rB) resets all parameters
  11189. has_duplex Duplex supported (<ESC>&l<duplex>S)
  11190. has_papersize Papersize setting supported (<ESC>&l<sizecode>A)
  11191. has_copies Number of copies supported (<ESC>&l<copies>X)
  11192. is_ljet4pjl Disable/Enable HP 4PJL model-specific output
  11193. is_oce9050 Disable/Enable Oce 9050 model-specific output
  11194. """
  11195. return _mupdf.ll_fz_parse_pcl_options(opts, args)
  11196. def ll_fz_parse_pclm_options(opts, args):
  11197. r"""
  11198. Low-level wrapper for `::fz_parse_pclm_options()`.
  11199. Parse PCLm options.
  11200. Currently defined options and values are as follows:
  11201. compression=none: No compression
  11202. compression=flate: Flate compression
  11203. strip-height=n: Strip height (default 16)
  11204. """
  11205. return _mupdf.ll_fz_parse_pclm_options(opts, args)
  11206. def ll_fz_parse_pdfocr_options(opts, args):
  11207. r"""
  11208. Low-level wrapper for `::fz_parse_pdfocr_options()`.
  11209. Parse PDFOCR options.
  11210. Currently defined options and values are as follows:
  11211. compression=none: No compression
  11212. compression=flate: Flate compression
  11213. strip-height=n: Strip height (default 16)
  11214. ocr-language=<lang>: OCR Language (default eng)
  11215. ocr-datadir=<datadir>: OCR data path (default rely on TESSDATA_PREFIX)
  11216. """
  11217. return _mupdf.ll_fz_parse_pdfocr_options(opts, args)
  11218. def ll_fz_parse_stext_options(opts, string):
  11219. r"""
  11220. Low-level wrapper for `::fz_parse_stext_options()`.
  11221. Parse stext device options from a comma separated key-value
  11222. string.
  11223. """
  11224. return _mupdf.ll_fz_parse_stext_options(opts, string)
  11225. def ll_fz_parse_xml(buf, preserve_white):
  11226. r"""
  11227. Low-level wrapper for `::fz_parse_xml()`.
  11228. Parse the contents of buffer into a tree of xml nodes.
  11229. preserve_white: whether to keep or delete all-whitespace nodes.
  11230. """
  11231. return _mupdf.ll_fz_parse_xml(buf, preserve_white)
  11232. def ll_fz_parse_xml_archive_entry(dir, filename, preserve_white):
  11233. r"""
  11234. Low-level wrapper for `::fz_parse_xml_archive_entry()`.
  11235. Parse the contents of an archive entry into a tree of xml nodes.
  11236. preserve_white: whether to keep or delete all-whitespace nodes.
  11237. """
  11238. return _mupdf.ll_fz_parse_xml_archive_entry(dir, filename, preserve_white)
  11239. def ll_fz_parse_xml_from_html5(buf):
  11240. r"""
  11241. Low-level wrapper for `::fz_parse_xml_from_html5()`.
  11242. Parse the contents of a buffer into a tree of XML nodes,
  11243. using the HTML5 parsing algorithm.
  11244. """
  11245. return _mupdf.ll_fz_parse_xml_from_html5(buf)
  11246. def ll_fz_parse_xml_stream(stream, preserve_white):
  11247. r"""
  11248. Low-level wrapper for `::fz_parse_xml_stream()`.
  11249. Parse the contents of buffer into a tree of xml nodes.
  11250. preserve_white: whether to keep or delete all-whitespace nodes.
  11251. """
  11252. return _mupdf.ll_fz_parse_xml_stream(stream, preserve_white)
  11253. def ll_fz_path_is_rect(path, ctm):
  11254. r"""
  11255. Low-level wrapper for `::fz_path_is_rect()`.
  11256. Check whether a given path, under the given transform
  11257. is an axis-aligned rectangle.
  11258. We accept zero width or height rectangles, so
  11259. "move 100, 100; line 200, 100" would count as
  11260. a rectangle too.
  11261. """
  11262. return _mupdf.ll_fz_path_is_rect(path, ctm)
  11263. def ll_fz_path_is_rect_with_bounds(path, ctm, bounds):
  11264. r"""
  11265. Low-level wrapper for `::fz_path_is_rect_with_bounds()`.
  11266. Check whether a given path, under the given transform
  11267. is an axis-aligned rectangle.
  11268. We accept zero width or height rectangles, so
  11269. "move 100, 100; line 200, 100" would count as
  11270. a rectangle too.
  11271. bounds = NULL, or place to return the rectangle
  11272. bounds if the path is a rectangle.
  11273. """
  11274. return _mupdf.ll_fz_path_is_rect_with_bounds(path, ctm, bounds)
  11275. def ll_fz_pcl_preset(opts, preset):
  11276. r"""
  11277. Low-level wrapper for `::fz_pcl_preset()`.
  11278. Initialize PCL option struct for a given preset.
  11279. Currently defined presets include:
  11280. generic Generic PCL printer
  11281. ljet4 HP DeskJet
  11282. dj500 HP DeskJet 500
  11283. fs600 Kyocera FS-600
  11284. lj HP LaserJet, HP LaserJet Plus
  11285. lj2 HP LaserJet IIp, HP LaserJet IId
  11286. lj3 HP LaserJet III
  11287. lj3d HP LaserJet IIId
  11288. lj4 HP LaserJet 4
  11289. lj4pl HP LaserJet 4 PL
  11290. lj4d HP LaserJet 4d
  11291. lp2563b HP 2563B line printer
  11292. oce9050 Oce 9050 Line printer
  11293. """
  11294. return _mupdf.ll_fz_pcl_preset(opts, preset)
  11295. def ll_fz_pdfocr_band_writer_set_progress(writer, progress_fn, progress_arg):
  11296. r"""
  11297. Low-level wrapper for `::fz_pdfocr_band_writer_set_progress()`.
  11298. Set the progress callback for a pdfocr bandwriter.
  11299. """
  11300. return _mupdf.ll_fz_pdfocr_band_writer_set_progress(writer, progress_fn, progress_arg)
  11301. def ll_fz_pdfocr_writer_set_progress(writer, progress, arg_3):
  11302. r"""Low-level wrapper for `::fz_pdfocr_writer_set_progress()`."""
  11303. return _mupdf.ll_fz_pdfocr_writer_set_progress(writer, progress, arg_3)
  11304. def ll_fz_peek_byte(stm):
  11305. r"""
  11306. Low-level wrapper for `::fz_peek_byte()`.
  11307. Peek at the next byte in a stream.
  11308. stm: The stream to peek at.
  11309. Returns -1 for EOF, or the next byte that will be read.
  11310. """
  11311. return _mupdf.ll_fz_peek_byte(stm)
  11312. def ll_fz_pixmap_alpha(pix):
  11313. r"""
  11314. Low-level wrapper for `::fz_pixmap_alpha()`.
  11315. Return the number of alpha planes in a pixmap.
  11316. Returns the number of alphas. Does not throw exceptions.
  11317. """
  11318. return _mupdf.ll_fz_pixmap_alpha(pix)
  11319. def ll_fz_pixmap_bbox(pix):
  11320. r"""
  11321. Low-level wrapper for `::fz_pixmap_bbox()`.
  11322. Return the bounding box for a pixmap.
  11323. """
  11324. return _mupdf.ll_fz_pixmap_bbox(pix)
  11325. def ll_fz_pixmap_colorants(pix):
  11326. r"""
  11327. Low-level wrapper for `::fz_pixmap_colorants()`.
  11328. Return the number of colorants in a pixmap.
  11329. Returns the number of colorants (components, less any spots and
  11330. alpha).
  11331. """
  11332. return _mupdf.ll_fz_pixmap_colorants(pix)
  11333. def ll_fz_pixmap_colorspace(pix):
  11334. r"""
  11335. Low-level wrapper for `::fz_pixmap_colorspace()`.
  11336. Return the colorspace of a pixmap
  11337. Returns colorspace.
  11338. """
  11339. return _mupdf.ll_fz_pixmap_colorspace(pix)
  11340. def ll_fz_pixmap_components(pix):
  11341. r"""
  11342. Low-level wrapper for `::fz_pixmap_components()`.
  11343. Return the number of components in a pixmap.
  11344. Returns the number of components (including spots and alpha).
  11345. """
  11346. return _mupdf.ll_fz_pixmap_components(pix)
  11347. def ll_fz_pixmap_height(pix):
  11348. r"""
  11349. Low-level wrapper for `::fz_pixmap_height()`.
  11350. Return the height of the pixmap in pixels.
  11351. """
  11352. return _mupdf.ll_fz_pixmap_height(pix)
  11353. def ll_fz_pixmap_image_tile(cimg):
  11354. r"""
  11355. Low-level wrapper for `::fz_pixmap_image_tile()`.
  11356. Retrieve the underlying fz_pixmap for an image.
  11357. Returns a pointer to the underlying fz_pixmap for an image,
  11358. or NULL if this image is not based upon an fz_pixmap.
  11359. No reference is returned. Lifespan is limited to that of
  11360. the image itself. If required, use fz_keep_pixmap to take
  11361. a reference to keep it longer.
  11362. """
  11363. return _mupdf.ll_fz_pixmap_image_tile(cimg)
  11364. def ll_fz_pixmap_samples(pix):
  11365. r"""
  11366. Low-level wrapper for `::fz_pixmap_samples()`.
  11367. Returns a pointer to the pixel data of a pixmap.
  11368. Returns the pointer.
  11369. """
  11370. return _mupdf.ll_fz_pixmap_samples(pix)
  11371. def ll_fz_pixmap_samples_int(pixmap):
  11372. r"""Low-level wrapper for `::fz_pixmap_samples_int()`."""
  11373. return _mupdf.ll_fz_pixmap_samples_int(pixmap)
  11374. def ll_fz_pixmap_size(pix):
  11375. r"""
  11376. Low-level wrapper for `::fz_pixmap_size()`.
  11377. Return sizeof fz_pixmap plus size of data, in bytes.
  11378. """
  11379. return _mupdf.ll_fz_pixmap_size(pix)
  11380. def ll_fz_pixmap_spots(pix):
  11381. r"""
  11382. Low-level wrapper for `::fz_pixmap_spots()`.
  11383. Return the number of spots in a pixmap.
  11384. Returns the number of spots (components, less colorants and
  11385. alpha). Does not throw exceptions.
  11386. """
  11387. return _mupdf.ll_fz_pixmap_spots(pix)
  11388. def ll_fz_pixmap_stride(pix):
  11389. r"""
  11390. Low-level wrapper for `::fz_pixmap_stride()`.
  11391. Return the number of bytes in a row in the pixmap.
  11392. """
  11393. return _mupdf.ll_fz_pixmap_stride(pix)
  11394. def ll_fz_pixmap_width(pix):
  11395. r"""
  11396. Low-level wrapper for `::fz_pixmap_width()`.
  11397. Return the width of the pixmap in pixels.
  11398. """
  11399. return _mupdf.ll_fz_pixmap_width(pix)
  11400. def ll_fz_pixmap_x(pix):
  11401. r"""
  11402. Low-level wrapper for `::fz_pixmap_x()`.
  11403. Return the x value of the pixmap in pixels.
  11404. """
  11405. return _mupdf.ll_fz_pixmap_x(pix)
  11406. def ll_fz_pixmap_y(pix):
  11407. r"""
  11408. Low-level wrapper for `::fz_pixmap_y()`.
  11409. Return the y value of the pixmap in pixels.
  11410. """
  11411. return _mupdf.ll_fz_pixmap_y(pix)
  11412. def ll_fz_place_story(story, where, filled):
  11413. r"""Low-level wrapper for `::fz_place_story()`."""
  11414. return _mupdf.ll_fz_place_story(story, where, filled)
  11415. def ll_fz_place_story_flags(story, where, filled, flags):
  11416. r"""Low-level wrapper for `::fz_place_story_flags()`."""
  11417. return _mupdf.ll_fz_place_story_flags(story, where, filled, flags)
  11418. def ll_fz_pool_alloc(pool, size):
  11419. r"""
  11420. Low-level wrapper for `::fz_pool_alloc()`.
  11421. Allocate a block of size bytes from the pool.
  11422. """
  11423. return _mupdf.ll_fz_pool_alloc(pool, size)
  11424. def ll_fz_pool_size(pool):
  11425. r"""
  11426. Low-level wrapper for `::fz_pool_size()`.
  11427. The current size of the pool.
  11428. The number of bytes of storage currently allocated to the pool.
  11429. This is the total of the storage used for the blocks making
  11430. up the pool, rather then total of the allocated blocks so far,
  11431. so it will increase in 'lumps'.
  11432. from the pool, then the pool size may still be X
  11433. """
  11434. return _mupdf.ll_fz_pool_size(pool)
  11435. def ll_fz_pool_strdup(pool, s):
  11436. r"""
  11437. Low-level wrapper for `::fz_pool_strdup()`.
  11438. strdup equivalent allocating from the pool.
  11439. """
  11440. return _mupdf.ll_fz_pool_strdup(pool, s)
  11441. def ll_fz_pop_clip(dev):
  11442. r"""Low-level wrapper for `::fz_pop_clip()`."""
  11443. return _mupdf.ll_fz_pop_clip(dev)
  11444. def ll_fz_post_scale(m, sx, sy):
  11445. r"""
  11446. Low-level wrapper for `::fz_post_scale()`.
  11447. Scale a matrix by postmultiplication.
  11448. m: Pointer to the matrix to scale
  11449. sx, sy: Scaling factors along the X- and Y-axes. A scaling
  11450. factor of 1.0 will not cause any scaling along the relevant
  11451. axis.
  11452. Returns m (updated).
  11453. """
  11454. return _mupdf.ll_fz_post_scale(m, sx, sy)
  11455. def ll_fz_pre_rotate(m, degrees):
  11456. r"""
  11457. Low-level wrapper for `::fz_pre_rotate()`.
  11458. Rotate a transformation by premultiplying.
  11459. The premultiplied matrix is of the form
  11460. [ cos(deg) sin(deg) -sin(deg) cos(deg) 0 0 ].
  11461. m: Pointer to matrix to premultiply.
  11462. degrees: Degrees of counter clockwise rotation. Values less
  11463. than zero and greater than 360 are handled as expected.
  11464. Returns m (updated).
  11465. """
  11466. return _mupdf.ll_fz_pre_rotate(m, degrees)
  11467. def ll_fz_pre_scale(m, sx, sy):
  11468. r"""
  11469. Low-level wrapper for `::fz_pre_scale()`.
  11470. Scale a matrix by premultiplication.
  11471. m: Pointer to the matrix to scale
  11472. sx, sy: Scaling factors along the X- and Y-axes. A scaling
  11473. factor of 1.0 will not cause any scaling along the relevant
  11474. axis.
  11475. Returns m (updated).
  11476. """
  11477. return _mupdf.ll_fz_pre_scale(m, sx, sy)
  11478. def ll_fz_pre_shear(m, sx, sy):
  11479. r"""
  11480. Low-level wrapper for `::fz_pre_shear()`.
  11481. Premultiply a matrix with a shearing matrix.
  11482. The shearing matrix is of the form [ 1 sy sx 1 0 0 ].
  11483. m: pointer to matrix to premultiply
  11484. sx, sy: Shearing factors. A shearing factor of 0.0 will not
  11485. cause any shearing along the relevant axis.
  11486. Returns m (updated).
  11487. """
  11488. return _mupdf.ll_fz_pre_shear(m, sx, sy)
  11489. def ll_fz_pre_translate(m, tx, ty):
  11490. r"""
  11491. Low-level wrapper for `::fz_pre_translate()`.
  11492. Translate a matrix by premultiplication.
  11493. m: The matrix to translate
  11494. tx, ty: Translation distances along the X- and Y-axes. A
  11495. translation of 0 will not cause any translation along the
  11496. relevant axis.
  11497. Returns m.
  11498. """
  11499. return _mupdf.ll_fz_pre_translate(m, tx, ty)
  11500. def ll_fz_prepare_t3_glyph(font, gid):
  11501. r"""
  11502. Low-level wrapper for `::fz_prepare_t3_glyph()`.
  11503. Force a type3 font to cache the displaylist for a given glyph
  11504. id.
  11505. This caching can involve reading the underlying file, so must
  11506. happen ahead of time, so we aren't suddenly forced to read the
  11507. file while playing a displaylist back.
  11508. """
  11509. return _mupdf.ll_fz_prepare_t3_glyph(font, gid)
  11510. def ll_fz_previous_page(doc, loc):
  11511. r"""
  11512. Low-level wrapper for `::fz_previous_page()`.
  11513. Function to get the location of the previous page (allowing for
  11514. the end of chapters etc). If already at the start of the
  11515. document, returns the current page.
  11516. """
  11517. return _mupdf.ll_fz_previous_page(doc, loc)
  11518. def ll_fz_print_stext_header_as_html(out):
  11519. r"""Low-level wrapper for `::fz_print_stext_header_as_html()`."""
  11520. return _mupdf.ll_fz_print_stext_header_as_html(out)
  11521. def ll_fz_print_stext_header_as_xhtml(out):
  11522. r"""Low-level wrapper for `::fz_print_stext_header_as_xhtml()`."""
  11523. return _mupdf.ll_fz_print_stext_header_as_xhtml(out)
  11524. def ll_fz_print_stext_page_as_html(out, page, id):
  11525. r"""
  11526. Low-level wrapper for `::fz_print_stext_page_as_html()`.
  11527. Output structured text to a file in HTML (visual) format.
  11528. """
  11529. return _mupdf.ll_fz_print_stext_page_as_html(out, page, id)
  11530. def ll_fz_print_stext_page_as_json(out, page, scale):
  11531. r"""
  11532. Low-level wrapper for `::fz_print_stext_page_as_json()`.
  11533. Output structured text to a file in JSON format.
  11534. """
  11535. return _mupdf.ll_fz_print_stext_page_as_json(out, page, scale)
  11536. def ll_fz_print_stext_page_as_text(out, page):
  11537. r"""
  11538. Low-level wrapper for `::fz_print_stext_page_as_text()`.
  11539. Output structured text to a file in plain-text UTF-8 format.
  11540. """
  11541. return _mupdf.ll_fz_print_stext_page_as_text(out, page)
  11542. def ll_fz_print_stext_page_as_xhtml(out, page, id):
  11543. r"""
  11544. Low-level wrapper for `::fz_print_stext_page_as_xhtml()`.
  11545. Output structured text to a file in XHTML (semantic) format.
  11546. """
  11547. return _mupdf.ll_fz_print_stext_page_as_xhtml(out, page, id)
  11548. def ll_fz_print_stext_page_as_xml(out, page, id):
  11549. r"""
  11550. Low-level wrapper for `::fz_print_stext_page_as_xml()`.
  11551. Output structured text to a file in XML format.
  11552. """
  11553. return _mupdf.ll_fz_print_stext_page_as_xml(out, page, id)
  11554. def ll_fz_print_stext_trailer_as_html(out):
  11555. r"""Low-level wrapper for `::fz_print_stext_trailer_as_html()`."""
  11556. return _mupdf.ll_fz_print_stext_trailer_as_html(out)
  11557. def ll_fz_print_stext_trailer_as_xhtml(out):
  11558. r"""Low-level wrapper for `::fz_print_stext_trailer_as_xhtml()`."""
  11559. return _mupdf.ll_fz_print_stext_trailer_as_xhtml(out)
  11560. def ll_fz_process_opened_pages(doc, process_openend_page, state):
  11561. r"""
  11562. Low-level wrapper for `::fz_process_opened_pages()`.
  11563. Iterates over all opened pages of the document, calling the
  11564. provided callback for each page for processing. If the callback
  11565. returns non-NULL then the iteration stops and that value is returned
  11566. to the called of fz_process_opened_pages().
  11567. The state pointer provided to fz_process_opened_pages() is
  11568. passed on to the callback but is owned by the caller.
  11569. Returns the first non-NULL value returned by the callback,
  11570. or NULL if the callback returned NULL for all opened pages.
  11571. """
  11572. return _mupdf.ll_fz_process_opened_pages(doc, process_openend_page, state)
  11573. def ll_fz_process_shade(shade, ctm, scissor, prepare, process, process_arg):
  11574. r"""
  11575. Low-level wrapper for `::fz_process_shade()`.
  11576. Process a shade, using supplied callback functions. This
  11577. decomposes the shading to a mesh (even ones that are not
  11578. natively meshes, such as linear or radial shadings), and
  11579. processes triangles from those meshes.
  11580. shade: The shade to process.
  11581. ctm: The transform to use
  11582. prepare: Callback function to 'prepare' each vertex.
  11583. This function is passed an array of floats, and populates
  11584. a fz_vertex structure.
  11585. process: This function is passed 3 pointers to vertex
  11586. structures, and actually performs the processing (typically
  11587. filling the area between the vertices).
  11588. process_arg: An opaque argument passed through from caller
  11589. to callback functions.
  11590. """
  11591. return _mupdf.ll_fz_process_shade(shade, ctm, scissor, prepare, process, process_arg)
  11592. def ll_fz_ptr_heap_insert(heap, v, HEAP_CMP):
  11593. r"""Low-level wrapper for `::fz_ptr_heap_insert()`."""
  11594. return _mupdf.ll_fz_ptr_heap_insert(heap, v, HEAP_CMP)
  11595. def ll_fz_ptr_heap_sort(heap, HEAP_CMP):
  11596. r"""Low-level wrapper for `::fz_ptr_heap_sort()`."""
  11597. return _mupdf.ll_fz_ptr_heap_sort(heap, HEAP_CMP)
  11598. def ll_fz_ptr_heap_uniq(heap, HEAP_CMP):
  11599. r"""Low-level wrapper for `::fz_ptr_heap_uniq()`."""
  11600. return _mupdf.ll_fz_ptr_heap_uniq(heap, HEAP_CMP)
  11601. def ll_fz_purge_glyph_cache():
  11602. r"""
  11603. Low-level wrapper for `::fz_purge_glyph_cache()`.
  11604. Purge all the glyphs from the cache.
  11605. """
  11606. return _mupdf.ll_fz_purge_glyph_cache()
  11607. def ll_fz_quad_from_rect(r):
  11608. r"""
  11609. Low-level wrapper for `::fz_quad_from_rect()`.
  11610. Convert a rect to a quad (losslessly).
  11611. """
  11612. return _mupdf.ll_fz_quad_from_rect(r)
  11613. def ll_fz_quadto(path, x0, y0, x1, y1):
  11614. r"""
  11615. Low-level wrapper for `::fz_quadto()`.
  11616. Append a 'quadto' command to an open path. (For a
  11617. quadratic bezier).
  11618. path: The path to modify.
  11619. x0, y0: The control coordinates for the quadratic curve.
  11620. x1, y1: The end coordinates for the quadratic curve.
  11621. Throws exceptions on failure to allocate, or attempting to
  11622. modify a packed path.
  11623. """
  11624. return _mupdf.ll_fz_quadto(path, x0, y0, x1, y1)
  11625. def ll_fz_range_limit_xml_char(c):
  11626. r"""Low-level wrapper for `::fz_range_limit_xml_char()`."""
  11627. return _mupdf.ll_fz_range_limit_xml_char(c)
  11628. def ll_fz_read(stm, data, len):
  11629. r"""
  11630. Low-level wrapper for `::fz_read()`.
  11631. Read from a stream into a given data block.
  11632. stm: The stream to read from.
  11633. data: The data block to read into.
  11634. len: The length of the data block (in bytes).
  11635. Returns the number of bytes read. May throw exceptions.
  11636. """
  11637. return _mupdf.ll_fz_read(stm, data, len)
  11638. def ll_fz_read_all(stm, initial):
  11639. r"""
  11640. Low-level wrapper for `::fz_read_all()`.
  11641. Read all of a stream into a buffer.
  11642. stm: The stream to read from
  11643. initial: Suggested initial size for the buffer.
  11644. Returns a buffer created from reading from the stream. May throw
  11645. exceptions on failure to allocate.
  11646. """
  11647. return _mupdf.ll_fz_read_all(stm, initial)
  11648. def ll_fz_read_archive_entry(arch, name):
  11649. r"""
  11650. Low-level wrapper for `::fz_read_archive_entry()`.
  11651. Reads all bytes in an archive entry
  11652. into a buffer.
  11653. name: Entry name to look for, this must be an exact match to
  11654. the entry name in the archive.
  11655. Throws an exception if a matching entry cannot be found.
  11656. """
  11657. return _mupdf.ll_fz_read_archive_entry(arch, name)
  11658. def ll_fz_read_best(stm, initial, truncated, worst_case):
  11659. r"""
  11660. Low-level wrapper for `::fz_read_best()`.
  11661. This function has out-params. Python/C# wrappers look like:
  11662. `ll_fz_read_best(::fz_stream *stm, size_t initial, size_t worst_case)` => `(fz_buffer *, int truncated)`
  11663. Attempt to read a stream into a buffer. If truncated
  11664. is NULL behaves as fz_read_all, sets a truncated flag in case of
  11665. error.
  11666. stm: The stream to read from.
  11667. initial: Suggested initial size for the buffer.
  11668. truncated: Flag to store success/failure indication in.
  11669. worst_case: 0 for unknown, otherwise an upper bound for the
  11670. size of the stream.
  11671. Returns a buffer created from reading from the stream.
  11672. """
  11673. return _mupdf.ll_fz_read_best(stm, initial, truncated, worst_case)
  11674. def ll_fz_read_bits(stm, n):
  11675. r"""
  11676. Low-level wrapper for `::fz_read_bits()`.
  11677. Read the next n bits from a stream (assumed to
  11678. be packed most significant bit first).
  11679. stm: The stream to read from.
  11680. n: The number of bits to read, between 1 and 8*sizeof(int)
  11681. inclusive.
  11682. Returns -1 for EOF, or the required number of bits.
  11683. """
  11684. return _mupdf.ll_fz_read_bits(stm, n)
  11685. def ll_fz_read_byte(stm):
  11686. r"""
  11687. Low-level wrapper for `::fz_read_byte()`.
  11688. Read the next byte from a stream.
  11689. stm: The stream t read from.
  11690. Returns -1 for end of stream, or the next byte. May
  11691. throw exceptions.
  11692. """
  11693. return _mupdf.ll_fz_read_byte(stm)
  11694. def ll_fz_read_file(filename):
  11695. r"""
  11696. Low-level wrapper for `::fz_read_file()`.
  11697. Read all the contents of a file into a buffer.
  11698. """
  11699. return _mupdf.ll_fz_read_file(filename)
  11700. def ll_fz_read_float(stm):
  11701. r"""Low-level wrapper for `::fz_read_float()`."""
  11702. return _mupdf.ll_fz_read_float(stm)
  11703. def ll_fz_read_float_le(stm):
  11704. r"""Low-level wrapper for `::fz_read_float_le()`."""
  11705. return _mupdf.ll_fz_read_float_le(stm)
  11706. def ll_fz_read_int16(stm):
  11707. r"""Low-level wrapper for `::fz_read_int16()`."""
  11708. return _mupdf.ll_fz_read_int16(stm)
  11709. def ll_fz_read_int16_le(stm):
  11710. r"""Low-level wrapper for `::fz_read_int16_le()`."""
  11711. return _mupdf.ll_fz_read_int16_le(stm)
  11712. def ll_fz_read_int32(stm):
  11713. r"""Low-level wrapper for `::fz_read_int32()`."""
  11714. return _mupdf.ll_fz_read_int32(stm)
  11715. def ll_fz_read_int32_le(stm):
  11716. r"""Low-level wrapper for `::fz_read_int32_le()`."""
  11717. return _mupdf.ll_fz_read_int32_le(stm)
  11718. def ll_fz_read_int64(stm):
  11719. r"""Low-level wrapper for `::fz_read_int64()`."""
  11720. return _mupdf.ll_fz_read_int64(stm)
  11721. def ll_fz_read_int64_le(stm):
  11722. r"""Low-level wrapper for `::fz_read_int64_le()`."""
  11723. return _mupdf.ll_fz_read_int64_le(stm)
  11724. def ll_fz_read_line(stm, buf, max):
  11725. r"""
  11726. Low-level wrapper for `::fz_read_line()`.
  11727. Read a line from stream into the buffer until either a
  11728. terminating newline or EOF, which it replaces with a null byte
  11729. ('').
  11730. Returns buf on success, and NULL when end of file occurs while
  11731. no characters have been read.
  11732. """
  11733. return _mupdf.ll_fz_read_line(stm, buf, max)
  11734. def ll_fz_read_rbits(stm, n):
  11735. r"""
  11736. Low-level wrapper for `::fz_read_rbits()`.
  11737. Read the next n bits from a stream (assumed to
  11738. be packed least significant bit first).
  11739. stm: The stream to read from.
  11740. n: The number of bits to read, between 1 and 8*sizeof(int)
  11741. inclusive.
  11742. Returns (unsigned int)-1 for EOF, or the required number of bits.
  11743. """
  11744. return _mupdf.ll_fz_read_rbits(stm, n)
  11745. def ll_fz_read_rune(_in):
  11746. r"""
  11747. Low-level wrapper for `::fz_read_rune()`.
  11748. Read a utf-8 rune from a stream.
  11749. In the event of encountering badly formatted utf-8 codes
  11750. (such as a leading code with an unexpected number of following
  11751. codes) no error/exception is given, but undefined values may be
  11752. returned.
  11753. """
  11754. return _mupdf.ll_fz_read_rune(_in)
  11755. def ll_fz_read_string(stm, buffer, len):
  11756. r"""
  11757. Low-level wrapper for `::fz_read_string()`.
  11758. Read a null terminated string from the stream into
  11759. a buffer of a given length. The buffer will be null terminated.
  11760. Throws on failure (including the failure to fit the entire
  11761. string including the terminator into the buffer).
  11762. """
  11763. return _mupdf.ll_fz_read_string(stm, buffer, len)
  11764. def ll_fz_read_uint16(stm):
  11765. r"""
  11766. Low-level wrapper for `::fz_read_uint16()`.
  11767. fz_read_[u]int(16|24|32|64)(_le)?
  11768. Read a 16/32/64 bit signed/unsigned integer from stream,
  11769. in big or little-endian byte orders.
  11770. Throws an exception if EOF is encountered.
  11771. """
  11772. return _mupdf.ll_fz_read_uint16(stm)
  11773. def ll_fz_read_uint16_le(stm):
  11774. r"""Low-level wrapper for `::fz_read_uint16_le()`."""
  11775. return _mupdf.ll_fz_read_uint16_le(stm)
  11776. def ll_fz_read_uint24(stm):
  11777. r"""Low-level wrapper for `::fz_read_uint24()`."""
  11778. return _mupdf.ll_fz_read_uint24(stm)
  11779. def ll_fz_read_uint24_le(stm):
  11780. r"""Low-level wrapper for `::fz_read_uint24_le()`."""
  11781. return _mupdf.ll_fz_read_uint24_le(stm)
  11782. def ll_fz_read_uint32(stm):
  11783. r"""Low-level wrapper for `::fz_read_uint32()`."""
  11784. return _mupdf.ll_fz_read_uint32(stm)
  11785. def ll_fz_read_uint32_le(stm):
  11786. r"""Low-level wrapper for `::fz_read_uint32_le()`."""
  11787. return _mupdf.ll_fz_read_uint32_le(stm)
  11788. def ll_fz_read_uint64(stm):
  11789. r"""Low-level wrapper for `::fz_read_uint64()`."""
  11790. return _mupdf.ll_fz_read_uint64(stm)
  11791. def ll_fz_read_uint64_le(stm):
  11792. r"""Low-level wrapper for `::fz_read_uint64_le()`."""
  11793. return _mupdf.ll_fz_read_uint64_le(stm)
  11794. def ll_fz_read_utf16_be(stm):
  11795. r"""Low-level wrapper for `::fz_read_utf16_be()`."""
  11796. return _mupdf.ll_fz_read_utf16_be(stm)
  11797. def ll_fz_read_utf16_le(stm):
  11798. r"""
  11799. Low-level wrapper for `::fz_read_utf16_le()`.
  11800. Read a utf-16 rune from a stream. (little endian and
  11801. big endian respectively).
  11802. In the event of encountering badly formatted utf-16 codes
  11803. (mismatched surrogates) no error/exception is given, but
  11804. undefined values may be returned.
  11805. """
  11806. return _mupdf.ll_fz_read_utf16_le(stm)
  11807. def ll_fz_realloc(p, size):
  11808. r"""
  11809. Low-level wrapper for `::fz_realloc()`.
  11810. Reallocates a block of memory to given size. Existing contents
  11811. up to min(old_size,new_size) are maintained. The rest of the
  11812. block is uninitialised.
  11813. fz_realloc(ctx, NULL, size) behaves like fz_malloc(ctx, size).
  11814. fz_realloc(ctx, p, 0); behaves like fz_free(ctx, p).
  11815. Throws exception in the event of failure to allocate.
  11816. """
  11817. return _mupdf.ll_fz_realloc(p, size)
  11818. def ll_fz_realloc_no_throw(p, size):
  11819. r"""
  11820. Low-level wrapper for `::fz_realloc_no_throw()`.
  11821. fz_realloc equivalent that returns NULL rather than throwing
  11822. exceptions.
  11823. """
  11824. return _mupdf.ll_fz_realloc_no_throw(p, size)
  11825. def ll_fz_realpath(path, resolved_path):
  11826. r"""
  11827. Low-level wrapper for `::fz_realpath()`.
  11828. Resolve a path to an absolute file name.
  11829. The resolved path buffer must be of at least PATH_MAX size.
  11830. """
  11831. return _mupdf.ll_fz_realpath(path, resolved_path)
  11832. def ll_fz_recognize_document(magic):
  11833. r"""
  11834. Low-level wrapper for `::fz_recognize_document()`.
  11835. Given a magic find a document handler that can handle a
  11836. document of this type.
  11837. magic: Can be a filename extension (including initial period) or
  11838. a mimetype.
  11839. """
  11840. return _mupdf.ll_fz_recognize_document(magic)
  11841. def ll_fz_recognize_document_content(filename):
  11842. r"""
  11843. Low-level wrapper for `::fz_recognize_document_content()`.
  11844. Given a filename find a document handler that can handle a
  11845. document of this type.
  11846. filename: The filename of the document. This will be opened and sampled
  11847. to check data.
  11848. """
  11849. return _mupdf.ll_fz_recognize_document_content(filename)
  11850. def ll_fz_recognize_document_stream_and_dir_content(stream, dir, magic):
  11851. r"""
  11852. Low-level wrapper for `::fz_recognize_document_stream_and_dir_content()`.
  11853. Given a magic find a document handler that can handle a
  11854. document of this type.
  11855. stream: the file stream to sample. May be NULL if the document is
  11856. a directory.
  11857. dir: an fz_archive representing the directory from which the
  11858. stream was opened (or NULL).
  11859. magic: Can be a filename extension (including initial period) or
  11860. a mimetype.
  11861. """
  11862. return _mupdf.ll_fz_recognize_document_stream_and_dir_content(stream, dir, magic)
  11863. def ll_fz_recognize_document_stream_content(stream, magic):
  11864. r"""
  11865. Low-level wrapper for `::fz_recognize_document_stream_content()`.
  11866. Given a magic find a document handler that can handle a
  11867. document of this type.
  11868. stream: the file stream to sample. May be NULL if the document is
  11869. a directory.
  11870. magic: Can be a filename extension (including initial period) or
  11871. a mimetype.
  11872. """
  11873. return _mupdf.ll_fz_recognize_document_stream_content(stream, magic)
  11874. def ll_fz_recognize_image_format(p):
  11875. r"""
  11876. Low-level wrapper for `::fz_recognize_image_format()`.
  11877. Recognise image format strings in the first 8 bytes from image
  11878. data.
  11879. """
  11880. return _mupdf.ll_fz_recognize_image_format(p)
  11881. def ll_fz_rect_from_irect(bbox):
  11882. r"""
  11883. Low-level wrapper for `::fz_rect_from_irect()`.
  11884. Convert a bbox into a rect.
  11885. For our purposes, a rect can represent all the values we meet in
  11886. a bbox, so nothing can go wrong.
  11887. rect: A place to store the generated rectangle.
  11888. bbox: The bbox to convert.
  11889. Returns rect (updated).
  11890. """
  11891. return _mupdf.ll_fz_rect_from_irect(bbox)
  11892. def ll_fz_rect_from_quad(q):
  11893. r"""
  11894. Low-level wrapper for `::fz_rect_from_quad()`.
  11895. Convert a quad to the smallest rect that covers it.
  11896. """
  11897. return _mupdf.ll_fz_rect_from_quad(q)
  11898. def ll_fz_rectto(path, x0, y0, x1, y1):
  11899. r"""
  11900. Low-level wrapper for `::fz_rectto()`.
  11901. Append a 'rectto' command to an open path.
  11902. The rectangle is equivalent to:
  11903. moveto x0 y0
  11904. lineto x1 y0
  11905. lineto x1 y1
  11906. lineto x0 y1
  11907. closepath
  11908. path: The path to modify.
  11909. x0, y0: First corner of the rectangle.
  11910. x1, y1: Second corner of the rectangle.
  11911. Throws exceptions on failure to allocate, or attempting to
  11912. modify a packed path.
  11913. """
  11914. return _mupdf.ll_fz_rectto(path, x0, y0, x1, y1)
  11915. def ll_fz_register_activity_logger(activity, opaque):
  11916. r"""Low-level wrapper for `::fz_register_activity_logger()`."""
  11917. return _mupdf.ll_fz_register_activity_logger(activity, opaque)
  11918. def ll_fz_register_archive_handler(handler):
  11919. r"""Low-level wrapper for `::fz_register_archive_handler()`."""
  11920. return _mupdf.ll_fz_register_archive_handler(handler)
  11921. def ll_fz_register_document_handler(handler):
  11922. r"""
  11923. Low-level wrapper for `::fz_register_document_handler()`.
  11924. Register a handler for a document type.
  11925. handler: The handler to register. This must live on for the duration of the
  11926. use of this handler. It will be passed back to the handler for calls so
  11927. the caller can use it to retrieve state.
  11928. """
  11929. return _mupdf.ll_fz_register_document_handler(handler)
  11930. def ll_fz_register_document_handlers():
  11931. r"""
  11932. Low-level wrapper for `::fz_register_document_handlers()`.
  11933. Register handlers for all the standard document types supported in
  11934. this build.
  11935. """
  11936. return _mupdf.ll_fz_register_document_handlers()
  11937. def ll_fz_remove_item(drop, key, type):
  11938. r"""
  11939. Low-level wrapper for `::fz_remove_item()`.
  11940. Remove an item from the store.
  11941. If an item indexed by the given key exists in the store, remove
  11942. it.
  11943. drop: The function used to free the value (to ensure we get a
  11944. value of the correct type).
  11945. key: The key used to find the item to remove.
  11946. type: Functions used to manipulate the key.
  11947. """
  11948. return _mupdf.ll_fz_remove_item(drop, key, type)
  11949. def ll_fz_render_flags(dev, set, clear):
  11950. r"""Low-level wrapper for `::fz_render_flags()`."""
  11951. return _mupdf.ll_fz_render_flags(dev, set, clear)
  11952. def ll_fz_render_glyph_pixmap(font, gid, ctm, scissor, aa):
  11953. r"""
  11954. Low-level wrapper for `::fz_render_glyph_pixmap()`.
  11955. Create a pixmap containing a rendered glyph.
  11956. Lookup gid from font, clip it with scissor, and rendering it
  11957. with aa bits of antialiasing into a new pixmap.
  11958. The caller takes ownership of the pixmap and so must free it.
  11959. Note: This function is no longer used for normal rendering
  11960. operations, and is kept around just because we use it in the
  11961. app. It should be considered "at risk" of removal from the API.
  11962. """
  11963. return _mupdf.ll_fz_render_glyph_pixmap(font, gid, ctm, scissor, aa)
  11964. def ll_fz_render_t3_glyph_direct(dev, font, gid, trm, gstate, def_cs, fill_gstate, stroke_gstate):
  11965. r"""
  11966. Low-level wrapper for `::fz_render_t3_glyph_direct()`.
  11967. Nasty PDF interpreter specific hernia, required to allow the
  11968. interpreter to replay glyphs from a type3 font directly into
  11969. the target device.
  11970. This is only used in exceptional circumstances (such as type3
  11971. glyphs that inherit current graphics state, or nested type3
  11972. glyphs).
  11973. """
  11974. return _mupdf.ll_fz_render_t3_glyph_direct(dev, font, gid, trm, gstate, def_cs, fill_gstate, stroke_gstate)
  11975. def ll_fz_rendering_intent_name(ri):
  11976. r"""
  11977. Low-level wrapper for `::fz_rendering_intent_name()`.
  11978. Map from enumerated rendering intent to string.
  11979. The returned string is static and therefore must not be freed.
  11980. """
  11981. return _mupdf.ll_fz_rendering_intent_name(ri)
  11982. def ll_fz_report_error():
  11983. r"""Low-level wrapper for `::fz_report_error()`."""
  11984. return _mupdf.ll_fz_report_error()
  11985. def ll_fz_reset_output(arg_1):
  11986. r"""
  11987. Low-level wrapper for `::fz_reset_output()`.
  11988. Reset a closed output stream. Returns state to
  11989. (broadly) that which it was in when opened. Not
  11990. all outputs can be reset, so this may throw an
  11991. exception.
  11992. """
  11993. return _mupdf.ll_fz_reset_output(arg_1)
  11994. def ll_fz_reset_story(story):
  11995. r"""Low-level wrapper for `::fz_reset_story()`."""
  11996. return _mupdf.ll_fz_reset_story(story)
  11997. def ll_fz_resize_buffer(buf, capacity):
  11998. r"""
  11999. Low-level wrapper for `::fz_resize_buffer()`.
  12000. Ensure that a buffer has a given capacity,
  12001. truncating data if required.
  12002. capacity: The desired capacity for the buffer. If the current
  12003. size of the buffer contents is smaller than capacity, it is
  12004. truncated.
  12005. """
  12006. return _mupdf.ll_fz_resize_buffer(buf, capacity)
  12007. def ll_fz_resolve_link(doc, uri, xp, yp):
  12008. r"""
  12009. Low-level wrapper for `::fz_resolve_link()`.
  12010. This function has out-params. Python/C# wrappers look like:
  12011. `ll_fz_resolve_link(::fz_document *doc, const char *uri)` => `(fz_location, float xp, float yp)`
  12012. Resolve an internal link to a page number.
  12013. xp, yp: Pointer to store coordinate of destination on the page.
  12014. Returns (-1,-1) if the URI cannot be resolved.
  12015. """
  12016. return _mupdf.ll_fz_resolve_link(doc, uri, xp, yp)
  12017. def ll_fz_resolve_link_dest(doc, uri):
  12018. r"""
  12019. Low-level wrapper for `::fz_resolve_link_dest()`.
  12020. Resolve an internal link to a page number, location, and possible viewing parameters.
  12021. Returns location (-1,-1) if the URI cannot be resolved.
  12022. """
  12023. return _mupdf.ll_fz_resolve_link_dest(doc, uri)
  12024. def ll_fz_rethrow():
  12025. r"""Low-level wrapper for `::fz_rethrow()`."""
  12026. return _mupdf.ll_fz_rethrow()
  12027. def ll_fz_rethrow_if(errcode):
  12028. r"""
  12029. Low-level wrapper for `::fz_rethrow_if()`.
  12030. Within an fz_catch() block, rethrow the current exception
  12031. if the errcode of the current exception matches.
  12032. This assumes no intervening use of fz_try/fz_catch.
  12033. """
  12034. return _mupdf.ll_fz_rethrow_if(errcode)
  12035. def ll_fz_rethrow_unless(errcode):
  12036. r"""Low-level wrapper for `::fz_rethrow_unless()`."""
  12037. return _mupdf.ll_fz_rethrow_unless(errcode)
  12038. def ll_fz_rotate(degrees):
  12039. r"""
  12040. Low-level wrapper for `::fz_rotate()`.
  12041. Create a rotation matrix.
  12042. The returned matrix is of the form
  12043. [ cos(deg) sin(deg) -sin(deg) cos(deg) 0 0 ].
  12044. m: Pointer to place to store matrix
  12045. degrees: Degrees of counter clockwise rotation. Values less
  12046. than zero and greater than 360 are handled as expected.
  12047. Returns m.
  12048. """
  12049. return _mupdf.ll_fz_rotate(degrees)
  12050. def ll_fz_round_rect(rect):
  12051. r"""
  12052. Low-level wrapper for `::fz_round_rect()`.
  12053. Round rectangle coordinates.
  12054. Coordinates in a bounding box are integers, so rounding of the
  12055. rects coordinates takes place. The top left corner is rounded
  12056. upwards and left while the bottom right corner is rounded
  12057. downwards and to the right.
  12058. This differs from fz_irect_from_rect, in that fz_irect_from_rect
  12059. slavishly follows the numbers (i.e any slight over/under
  12060. calculations can cause whole extra pixels to be added).
  12061. fz_round_rect allows for a small amount of rounding error when
  12062. calculating the bbox.
  12063. """
  12064. return _mupdf.ll_fz_round_rect(rect)
  12065. def ll_fz_run_display_list(list, dev, ctm, scissor, cookie):
  12066. r"""
  12067. Low-level wrapper for `::fz_run_display_list()`.
  12068. (Re)-run a display list through a device.
  12069. list: A display list, created by fz_new_display_list and
  12070. populated with objects from a page by running fz_run_page on a
  12071. device obtained from fz_new_list_device.
  12072. ctm: Transform to apply to display list contents. May include
  12073. for example scaling and rotation, see fz_scale, fz_rotate and
  12074. fz_concat. Set to fz_identity if no transformation is desired.
  12075. scissor: Only the part of the contents of the display list
  12076. visible within this area will be considered when the list is
  12077. run through the device. This does not imply for tile objects
  12078. contained in the display list.
  12079. cookie: Communication mechanism between caller and library
  12080. running the page. Intended for multi-threaded applications,
  12081. while single-threaded applications set cookie to NULL. The
  12082. caller may abort an ongoing page run. Cookie also communicates
  12083. progress information back to the caller. The fields inside
  12084. cookie are continually updated while the page is being run.
  12085. """
  12086. return _mupdf.ll_fz_run_display_list(list, dev, ctm, scissor, cookie)
  12087. def ll_fz_run_document_structure(doc, dev, cookie):
  12088. r"""
  12089. Low-level wrapper for `::fz_run_document_structure()`.
  12090. Run the document structure through a device.
  12091. doc: Document in question.
  12092. dev: Device obtained from fz_new_*_device.
  12093. cookie: Communication mechanism between caller and library.
  12094. Intended for multi-threaded applications, while
  12095. single-threaded applications set cookie to NULL. The
  12096. caller may abort an ongoing rendering of a page. Cookie also
  12097. communicates progress information back to the caller. The
  12098. fields inside cookie are continually updated while the page is
  12099. rendering.
  12100. """
  12101. return _mupdf.ll_fz_run_document_structure(doc, dev, cookie)
  12102. def ll_fz_run_page(page, dev, transform, cookie):
  12103. r"""
  12104. Low-level wrapper for `::fz_run_page()`.
  12105. Run a page through a device.
  12106. page: Page obtained from fz_load_page.
  12107. dev: Device obtained from fz_new_*_device.
  12108. transform: Transform to apply to page. May include for example
  12109. scaling and rotation, see fz_scale, fz_rotate and fz_concat.
  12110. Set to fz_identity if no transformation is desired.
  12111. cookie: Communication mechanism between caller and library
  12112. rendering the page. Intended for multi-threaded applications,
  12113. while single-threaded applications set cookie to NULL. The
  12114. caller may abort an ongoing rendering of a page. Cookie also
  12115. communicates progress information back to the caller. The
  12116. fields inside cookie are continually updated while the page is
  12117. rendering.
  12118. """
  12119. return _mupdf.ll_fz_run_page(page, dev, transform, cookie)
  12120. def ll_fz_run_page_annots(page, dev, transform, cookie):
  12121. r"""
  12122. Low-level wrapper for `::fz_run_page_annots()`.
  12123. Run the annotations on a page through a device.
  12124. """
  12125. return _mupdf.ll_fz_run_page_annots(page, dev, transform, cookie)
  12126. def ll_fz_run_page_contents(page, dev, transform, cookie):
  12127. r"""
  12128. Low-level wrapper for `::fz_run_page_contents()`.
  12129. Run a page through a device. Just the main
  12130. page content, without the annotations, if any.
  12131. page: Page obtained from fz_load_page.
  12132. dev: Device obtained from fz_new_*_device.
  12133. transform: Transform to apply to page. May include for example
  12134. scaling and rotation, see fz_scale, fz_rotate and fz_concat.
  12135. Set to fz_identity if no transformation is desired.
  12136. cookie: Communication mechanism between caller and library
  12137. rendering the page. Intended for multi-threaded applications,
  12138. while single-threaded applications set cookie to NULL. The
  12139. caller may abort an ongoing rendering of a page. Cookie also
  12140. communicates progress information back to the caller. The
  12141. fields inside cookie are continually updated while the page is
  12142. rendering.
  12143. """
  12144. return _mupdf.ll_fz_run_page_contents(page, dev, transform, cookie)
  12145. def ll_fz_run_page_widgets(page, dev, transform, cookie):
  12146. r"""
  12147. Low-level wrapper for `::fz_run_page_widgets()`.
  12148. Run the widgets on a page through a device.
  12149. """
  12150. return _mupdf.ll_fz_run_page_widgets(page, dev, transform, cookie)
  12151. def ll_fz_run_t3_glyph(font, gid, trm, dev):
  12152. r"""
  12153. Low-level wrapper for `::fz_run_t3_glyph()`.
  12154. Run a glyph from a Type3 font to
  12155. a given device.
  12156. font: The font to find the glyph in.
  12157. gid: The glyph to run.
  12158. trm: The transform to apply.
  12159. dev: The device to render onto.
  12160. """
  12161. return _mupdf.ll_fz_run_t3_glyph(font, gid, trm, dev)
  12162. def ll_fz_runeidx(str, p):
  12163. r"""
  12164. Low-level wrapper for `::fz_runeidx()`.
  12165. Compute the index of a rune in a string.
  12166. str: Pointer to beginning of a string.
  12167. p: Pointer to a char in str.
  12168. Returns the index of the rune pointed to by p in str.
  12169. """
  12170. return _mupdf.ll_fz_runeidx(str, p)
  12171. def ll_fz_runelen(rune):
  12172. r"""
  12173. Low-level wrapper for `::fz_runelen()`.
  12174. Count how many chars are required to represent a rune.
  12175. rune: The rune to encode.
  12176. Returns the number of bytes required to represent this run in
  12177. UTF8.
  12178. """
  12179. return _mupdf.ll_fz_runelen(rune)
  12180. def ll_fz_runeptr(str, idx):
  12181. r"""
  12182. Low-level wrapper for `::fz_runeptr()`.
  12183. Obtain a pointer to the char representing the rune
  12184. at a given index.
  12185. str: Pointer to beginning of a string.
  12186. idx: Index of a rune to return a char pointer to.
  12187. Returns a pointer to the char where the desired rune starts,
  12188. or NULL if the string ends before the index is reached.
  12189. """
  12190. return _mupdf.ll_fz_runeptr(str, idx)
  12191. def ll_fz_runetochar(str, rune):
  12192. r"""
  12193. Low-level wrapper for `::fz_runetochar()`.
  12194. UTF8 encode a rune to a sequence of chars.
  12195. str: Pointer to a place to put the UTF8 encoded character.
  12196. rune: Pointer to a 'rune'.
  12197. Returns the number of bytes the rune took to output.
  12198. """
  12199. return _mupdf.ll_fz_runetochar(str, rune)
  12200. def ll_fz_samples_get(pixmap, offset):
  12201. r"""
  12202. Low-level wrapper for `::fz_samples_get()`.
  12203. Provides simple (but slow) access to pixmap data from Python and C#.
  12204. """
  12205. return _mupdf.ll_fz_samples_get(pixmap, offset)
  12206. def ll_fz_samples_set(pixmap, offset, value):
  12207. r"""
  12208. Low-level wrapper for `::fz_samples_set()`.
  12209. Provides simple (but slow) write access to pixmap data from Python and
  12210. C#.
  12211. """
  12212. return _mupdf.ll_fz_samples_set(pixmap, offset, value)
  12213. def ll_fz_save_accelerator(doc, accel):
  12214. r"""
  12215. Low-level wrapper for `::fz_save_accelerator()`.
  12216. Save accelerator data for the document to a given file.
  12217. """
  12218. return _mupdf.ll_fz_save_accelerator(doc, accel)
  12219. def ll_fz_save_bitmap_as_pbm(bitmap, filename):
  12220. r"""
  12221. Low-level wrapper for `::fz_save_bitmap_as_pbm()`.
  12222. Save a bitmap as a pbm.
  12223. """
  12224. return _mupdf.ll_fz_save_bitmap_as_pbm(bitmap, filename)
  12225. def ll_fz_save_bitmap_as_pcl(bitmap, filename, append, pcl):
  12226. r"""
  12227. Low-level wrapper for `::fz_save_bitmap_as_pcl()`.
  12228. Save a bitmap as mono PCL.
  12229. """
  12230. return _mupdf.ll_fz_save_bitmap_as_pcl(bitmap, filename, append, pcl)
  12231. def ll_fz_save_bitmap_as_pkm(bitmap, filename):
  12232. r"""
  12233. Low-level wrapper for `::fz_save_bitmap_as_pkm()`.
  12234. Save a CMYK bitmap as a pkm.
  12235. """
  12236. return _mupdf.ll_fz_save_bitmap_as_pkm(bitmap, filename)
  12237. def ll_fz_save_bitmap_as_pwg(bitmap, filename, append, pwg):
  12238. r"""
  12239. Low-level wrapper for `::fz_save_bitmap_as_pwg()`.
  12240. Save a bitmap as a PWG.
  12241. """
  12242. return _mupdf.ll_fz_save_bitmap_as_pwg(bitmap, filename, append, pwg)
  12243. def ll_fz_save_buffer(buf, filename):
  12244. r"""
  12245. Low-level wrapper for `::fz_save_buffer()`.
  12246. Save the contents of a buffer to a file.
  12247. """
  12248. return _mupdf.ll_fz_save_buffer(buf, filename)
  12249. def ll_fz_save_pixmap_as_jpeg(pixmap, filename, quality):
  12250. r"""
  12251. Low-level wrapper for `::fz_save_pixmap_as_jpeg()`.
  12252. Save a pixmap as a JPEG.
  12253. """
  12254. return _mupdf.ll_fz_save_pixmap_as_jpeg(pixmap, filename, quality)
  12255. def ll_fz_save_pixmap_as_jpx(pixmap, filename, q):
  12256. r"""
  12257. Low-level wrapper for `::fz_save_pixmap_as_jpx()`.
  12258. Save pixmap data as JP2K with no subsampling.
  12259. quality = 100 = lossless
  12260. otherwise for a factor of x compression use 100-x. (so 80 is 1:20 compression)
  12261. """
  12262. return _mupdf.ll_fz_save_pixmap_as_jpx(pixmap, filename, q)
  12263. def ll_fz_save_pixmap_as_pam(pixmap, filename):
  12264. r"""
  12265. Low-level wrapper for `::fz_save_pixmap_as_pam()`.
  12266. Save a pixmap as a pnm (greyscale, rgb or cmyk, with or without
  12267. alpha).
  12268. """
  12269. return _mupdf.ll_fz_save_pixmap_as_pam(pixmap, filename)
  12270. def ll_fz_save_pixmap_as_pbm(pixmap, filename):
  12271. r"""
  12272. Low-level wrapper for `::fz_save_pixmap_as_pbm()`.
  12273. Save a pixmap as a pbm. (Performing halftoning).
  12274. """
  12275. return _mupdf.ll_fz_save_pixmap_as_pbm(pixmap, filename)
  12276. def ll_fz_save_pixmap_as_pcl(pixmap, filename, append, pcl):
  12277. r"""
  12278. Low-level wrapper for `::fz_save_pixmap_as_pcl()`.
  12279. Save an (RGB) pixmap as color PCL.
  12280. """
  12281. return _mupdf.ll_fz_save_pixmap_as_pcl(pixmap, filename, append, pcl)
  12282. def ll_fz_save_pixmap_as_pclm(pixmap, filename, append, options):
  12283. r"""
  12284. Low-level wrapper for `::fz_save_pixmap_as_pclm()`.
  12285. Save a (Greyscale or RGB) pixmap as pclm.
  12286. """
  12287. return _mupdf.ll_fz_save_pixmap_as_pclm(pixmap, filename, append, options)
  12288. def ll_fz_save_pixmap_as_pdfocr(pixmap, filename, append, options):
  12289. r"""
  12290. Low-level wrapper for `::fz_save_pixmap_as_pdfocr()`.
  12291. Save a (Greyscale or RGB) pixmap as pdfocr.
  12292. """
  12293. return _mupdf.ll_fz_save_pixmap_as_pdfocr(pixmap, filename, append, options)
  12294. def ll_fz_save_pixmap_as_pkm(pixmap, filename):
  12295. r"""
  12296. Low-level wrapper for `::fz_save_pixmap_as_pkm()`.
  12297. Save a CMYK pixmap as a pkm. (Performing halftoning).
  12298. """
  12299. return _mupdf.ll_fz_save_pixmap_as_pkm(pixmap, filename)
  12300. def ll_fz_save_pixmap_as_png(pixmap, filename):
  12301. r"""
  12302. Low-level wrapper for `::fz_save_pixmap_as_png()`.
  12303. Save a (Greyscale or RGB) pixmap as a png.
  12304. """
  12305. return _mupdf.ll_fz_save_pixmap_as_png(pixmap, filename)
  12306. def ll_fz_save_pixmap_as_pnm(pixmap, filename):
  12307. r"""
  12308. Low-level wrapper for `::fz_save_pixmap_as_pnm()`.
  12309. Save a pixmap as a pnm (greyscale or rgb, no alpha).
  12310. """
  12311. return _mupdf.ll_fz_save_pixmap_as_pnm(pixmap, filename)
  12312. def ll_fz_save_pixmap_as_ps(pixmap, filename, append):
  12313. r"""
  12314. Low-level wrapper for `::fz_save_pixmap_as_ps()`.
  12315. Save a (gray, rgb, or cmyk, no alpha) pixmap out as postscript.
  12316. """
  12317. return _mupdf.ll_fz_save_pixmap_as_ps(pixmap, filename, append)
  12318. def ll_fz_save_pixmap_as_psd(pixmap, filename):
  12319. r"""
  12320. Low-level wrapper for `::fz_save_pixmap_as_psd()`.
  12321. Save a pixmap as a PSD file.
  12322. """
  12323. return _mupdf.ll_fz_save_pixmap_as_psd(pixmap, filename)
  12324. def ll_fz_save_pixmap_as_pwg(pixmap, filename, append, pwg):
  12325. r"""
  12326. Low-level wrapper for `::fz_save_pixmap_as_pwg()`.
  12327. Save a pixmap as a PWG.
  12328. """
  12329. return _mupdf.ll_fz_save_pixmap_as_pwg(pixmap, filename, append, pwg)
  12330. def ll_fz_save_xml(root, path, indented):
  12331. r"""
  12332. Low-level wrapper for `::fz_save_xml()`.
  12333. As for fz_write_xml, but direct to a file.
  12334. """
  12335. return _mupdf.ll_fz_save_xml(root, path, indented)
  12336. def ll_fz_scale(sx, sy):
  12337. r"""
  12338. Low-level wrapper for `::fz_scale()`.
  12339. Create a scaling matrix.
  12340. The returned matrix is of the form [ sx 0 0 sy 0 0 ].
  12341. m: Pointer to the matrix to populate
  12342. sx, sy: Scaling factors along the X- and Y-axes. A scaling
  12343. factor of 1.0 will not cause any scaling along the relevant
  12344. axis.
  12345. Returns m.
  12346. """
  12347. return _mupdf.ll_fz_scale(sx, sy)
  12348. def ll_fz_scale_pixmap(src, x, y, w, h, clip):
  12349. r"""Low-level wrapper for `::fz_scale_pixmap()`."""
  12350. return _mupdf.ll_fz_scale_pixmap(src, x, y, w, h, clip)
  12351. def ll_fz_search_chapter_page_number(doc, chapter, page, needle, hit_mark, hit_bbox, hit_max):
  12352. r"""
  12353. Low-level wrapper for `::fz_search_chapter_page_number()`.
  12354. This function has out-params. Python/C# wrappers look like:
  12355. `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)`
  12356. """
  12357. return _mupdf.ll_fz_search_chapter_page_number(doc, chapter, page, needle, hit_mark, hit_bbox, hit_max)
  12358. def ll_fz_search_chapter_page_number_cb(doc, chapter, page, needle, cb, opaque):
  12359. r"""Low-level wrapper for `::fz_search_chapter_page_number_cb()`."""
  12360. return _mupdf.ll_fz_search_chapter_page_number_cb(doc, chapter, page, needle, cb, opaque)
  12361. def ll_fz_search_display_list(list, needle, hit_mark, hit_bbox, hit_max):
  12362. r"""
  12363. Low-level wrapper for `::fz_search_display_list()`.
  12364. This function has out-params. Python/C# wrappers look like:
  12365. `ll_fz_search_display_list(::fz_display_list *list, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  12366. """
  12367. return _mupdf.ll_fz_search_display_list(list, needle, hit_mark, hit_bbox, hit_max)
  12368. def ll_fz_search_display_list_cb(list, needle, cb, opaque):
  12369. r"""Low-level wrapper for `::fz_search_display_list_cb()`."""
  12370. return _mupdf.ll_fz_search_display_list_cb(list, needle, cb, opaque)
  12371. def ll_fz_search_page(page, needle, hit_mark, hit_bbox, hit_max):
  12372. r"""
  12373. Low-level wrapper for `::fz_search_page()`.
  12374. This function has out-params. Python/C# wrappers look like:
  12375. `ll_fz_search_page(::fz_page *page, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  12376. Search for the 'needle' text on the page.
  12377. Record the hits in the hit_bbox array and return the number of
  12378. hits. Will stop looking once it has filled hit_max rectangles.
  12379. """
  12380. return _mupdf.ll_fz_search_page(page, needle, hit_mark, hit_bbox, hit_max)
  12381. def ll_fz_search_page2(doc, number, needle, hit_max):
  12382. r"""
  12383. Low-level wrapper for `::fz_search_page2()`.
  12384. C++ alternative to fz_search_page() that returns information in a std::vector.
  12385. """
  12386. return _mupdf.ll_fz_search_page2(doc, number, needle, hit_max)
  12387. def ll_fz_search_page_cb(page, needle, cb, opaque):
  12388. r"""
  12389. Low-level wrapper for `::fz_search_page_cb()`.
  12390. Search for the 'needle' text on the page.
  12391. """
  12392. return _mupdf.ll_fz_search_page_cb(page, needle, cb, opaque)
  12393. def ll_fz_search_page_number(doc, number, needle, hit_mark, hit_bbox, hit_max):
  12394. r"""
  12395. Low-level wrapper for `::fz_search_page_number()`.
  12396. This function has out-params. Python/C# wrappers look like:
  12397. `ll_fz_search_page_number(::fz_document *doc, int number, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  12398. """
  12399. return _mupdf.ll_fz_search_page_number(doc, number, needle, hit_mark, hit_bbox, hit_max)
  12400. def ll_fz_search_page_number_cb(doc, number, needle, cb, opaque):
  12401. r"""Low-level wrapper for `::fz_search_page_number_cb()`."""
  12402. return _mupdf.ll_fz_search_page_number_cb(doc, number, needle, cb, opaque)
  12403. def ll_fz_search_stext_page(text, needle, hit_mark, hit_bbox, hit_max):
  12404. r"""
  12405. Low-level wrapper for `::fz_search_stext_page()`.
  12406. This function has out-params. Python/C# wrappers look like:
  12407. `ll_fz_search_stext_page(::fz_stext_page *text, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  12408. Search for occurrence of 'needle' in text page.
  12409. Return the number of quads and store hit quads in the passed in
  12410. array.
  12411. NOTE: This is an experimental interface and subject to change
  12412. without notice.
  12413. """
  12414. return _mupdf.ll_fz_search_stext_page(text, needle, hit_mark, hit_bbox, hit_max)
  12415. def ll_fz_search_stext_page_cb(text, needle, cb, opaque):
  12416. r"""
  12417. Low-level wrapper for `::fz_search_stext_page_cb()`.
  12418. Search for occurrence of 'needle' in text page.
  12419. Call callback once for each hit. This callback will receive
  12420. (potentially) multiple quads for each hit.
  12421. Returns the number of hits - note that this is potentially
  12422. different from (i.e. is not greater than) the number of quads
  12423. as returned by the non callback API.
  12424. NOTE: This is an experimental interface and subject to change
  12425. without notice.
  12426. """
  12427. return _mupdf.ll_fz_search_stext_page_cb(text, needle, cb, opaque)
  12428. def ll_fz_seek(stm, offset, whence):
  12429. r"""
  12430. Low-level wrapper for `::fz_seek()`.
  12431. Seek within a stream.
  12432. stm: The stream to seek within.
  12433. offset: The offset to seek to.
  12434. whence: From where the offset is measured (see fseek).
  12435. SEEK_SET - start of stream.
  12436. SEEK_CUR - current position.
  12437. SEEK_END - end of stream.
  12438. """
  12439. return _mupdf.ll_fz_seek(stm, offset, whence)
  12440. def ll_fz_seek_output(out, off, whence):
  12441. r"""
  12442. Low-level wrapper for `::fz_seek_output()`.
  12443. Seek to the specified file position.
  12444. See fseek for arguments.
  12445. Throw an error on unseekable outputs.
  12446. """
  12447. return _mupdf.ll_fz_seek_output(out, off, whence)
  12448. def ll_fz_segment_stext_page(page):
  12449. r"""
  12450. Low-level wrapper for `::fz_segment_stext_page()`.
  12451. Perform segmentation analysis on an (unstructured) page to look for
  12452. recursive subdivisions.
  12453. Essentially this code attempts to split the page horizontally and/or
  12454. vertically repeatedly into smaller and smaller "segments" (divisions).
  12455. Returns 0 if no changes were made to the document.
  12456. This is experimental code, and may change (or be removed) in future
  12457. versions!
  12458. """
  12459. return _mupdf.ll_fz_segment_stext_page(page)
  12460. def ll_fz_separation_current_behavior(sep, separation):
  12461. r"""
  12462. Low-level wrapper for `::fz_separation_current_behavior()`.
  12463. Test for the current behavior of a separation.
  12464. """
  12465. return _mupdf.ll_fz_separation_current_behavior(sep, separation)
  12466. def ll_fz_separation_equivalent(seps, idx, dst_cs, dst_color, prf, color_params):
  12467. r"""
  12468. Low-level wrapper for `::fz_separation_equivalent()`.
  12469. This function has out-params. Python/C# wrappers look like:
  12470. `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
  12471. Get the equivalent separation color in a given colorspace.
  12472. """
  12473. return _mupdf.ll_fz_separation_equivalent(seps, idx, dst_cs, dst_color, prf, color_params)
  12474. def ll_fz_separation_name(sep, separation):
  12475. r"""Low-level wrapper for `::fz_separation_name()`."""
  12476. return _mupdf.ll_fz_separation_name(sep, separation)
  12477. def ll_fz_set_aa_level(bits):
  12478. r"""
  12479. Low-level wrapper for `::fz_set_aa_level()`.
  12480. Set the number of bits of antialiasing we should
  12481. use (for both text and graphics).
  12482. bits: The number of bits of antialiasing to use (values are
  12483. clamped to within the 0 to 8 range).
  12484. """
  12485. return _mupdf.ll_fz_set_aa_level(bits)
  12486. def ll_fz_set_compressed_image_buffer(cimg, buf):
  12487. r"""Low-level wrapper for `::fz_set_compressed_image_buffer()`."""
  12488. return _mupdf.ll_fz_set_compressed_image_buffer(cimg, buf)
  12489. def ll_fz_set_default_cmyk(default_cs, cs):
  12490. r"""Low-level wrapper for `::fz_set_default_cmyk()`."""
  12491. return _mupdf.ll_fz_set_default_cmyk(default_cs, cs)
  12492. def ll_fz_set_default_colorspaces(dev, default_cs):
  12493. r"""Low-level wrapper for `::fz_set_default_colorspaces()`."""
  12494. return _mupdf.ll_fz_set_default_colorspaces(dev, default_cs)
  12495. def ll_fz_set_default_gray(default_cs, cs):
  12496. r"""
  12497. Low-level wrapper for `::fz_set_default_gray()`.
  12498. Set new defaults within the default colorspace structure.
  12499. New references are taken to the new default, and references to
  12500. the old defaults dropped.
  12501. Never throws exceptions.
  12502. """
  12503. return _mupdf.ll_fz_set_default_gray(default_cs, cs)
  12504. def ll_fz_set_default_output_intent(default_cs, cs):
  12505. r"""Low-level wrapper for `::fz_set_default_output_intent()`."""
  12506. return _mupdf.ll_fz_set_default_output_intent(default_cs, cs)
  12507. def ll_fz_set_default_rgb(default_cs, cs):
  12508. r"""Low-level wrapper for `::fz_set_default_rgb()`."""
  12509. return _mupdf.ll_fz_set_default_rgb(default_cs, cs)
  12510. def ll_fz_set_error_callback(error_cb, user):
  12511. r"""
  12512. Low-level wrapper for `::fz_set_error_callback()`.
  12513. Set the error callback. This will be called as part of the
  12514. exception handling.
  12515. The callback must not throw exceptions!
  12516. """
  12517. return _mupdf.ll_fz_set_error_callback(error_cb, user)
  12518. def ll_fz_set_font_bbox(font, xmin, ymin, xmax, ymax):
  12519. r"""
  12520. Low-level wrapper for `::fz_set_font_bbox()`.
  12521. Set the font bbox.
  12522. font: The font to set the bbox for.
  12523. xmin, ymin, xmax, ymax: The bounding box.
  12524. """
  12525. return _mupdf.ll_fz_set_font_bbox(font, xmin, ymin, xmax, ymax)
  12526. def ll_fz_set_font_embedding(font, embed):
  12527. r"""
  12528. Low-level wrapper for `::fz_set_font_embedding()`.
  12529. Control whether a given font should be embedded or not when writing.
  12530. """
  12531. return _mupdf.ll_fz_set_font_embedding(font, embed)
  12532. def ll_fz_set_graphics_aa_level(bits):
  12533. r"""
  12534. Low-level wrapper for `::fz_set_graphics_aa_level()`.
  12535. Set the number of bits of antialiasing we
  12536. should use for graphics.
  12537. bits: The number of bits of antialiasing to use (values are
  12538. clamped to within the 0 to 8 range).
  12539. """
  12540. return _mupdf.ll_fz_set_graphics_aa_level(bits)
  12541. def ll_fz_set_graphics_min_line_width(min_line_width):
  12542. r"""
  12543. Low-level wrapper for `::fz_set_graphics_min_line_width()`.
  12544. Set the minimum line width to be
  12545. used for stroked lines.
  12546. min_line_width: The minimum line width to use (in pixels).
  12547. """
  12548. return _mupdf.ll_fz_set_graphics_min_line_width(min_line_width)
  12549. def ll_fz_set_link_rect(link, rect):
  12550. r"""Low-level wrapper for `::fz_set_link_rect()`."""
  12551. return _mupdf.ll_fz_set_link_rect(link, rect)
  12552. def ll_fz_set_link_uri(link, uri):
  12553. r"""Low-level wrapper for `::fz_set_link_uri()`."""
  12554. return _mupdf.ll_fz_set_link_uri(link, uri)
  12555. def ll_fz_set_metadata(doc, key, value):
  12556. r"""Low-level wrapper for `::fz_set_metadata()`."""
  12557. return _mupdf.ll_fz_set_metadata(doc, key, value)
  12558. def ll_fz_set_pixmap_image_tile(cimg, pix):
  12559. r"""Low-level wrapper for `::fz_set_pixmap_image_tile()`."""
  12560. return _mupdf.ll_fz_set_pixmap_image_tile(cimg, pix)
  12561. def ll_fz_set_pixmap_resolution(pix, xres, yres):
  12562. r"""
  12563. Low-level wrapper for `::fz_set_pixmap_resolution()`.
  12564. Set the pixels per inch resolution of the pixmap.
  12565. """
  12566. return _mupdf.ll_fz_set_pixmap_resolution(pix, xres, yres)
  12567. def ll_fz_set_separation_behavior(sep, separation, behavior):
  12568. r"""
  12569. Low-level wrapper for `::fz_set_separation_behavior()`.
  12570. Control the rendering of a given separation.
  12571. """
  12572. return _mupdf.ll_fz_set_separation_behavior(sep, separation, behavior)
  12573. def ll_fz_set_stddbg(out):
  12574. r"""
  12575. Low-level wrapper for `::fz_set_stddbg()`.
  12576. Set the output stream to be used for fz_stddbg. Set to NULL to
  12577. reset to default (stderr).
  12578. """
  12579. return _mupdf.ll_fz_set_stddbg(out)
  12580. def ll_fz_set_text_aa_level(bits):
  12581. r"""
  12582. Low-level wrapper for `::fz_set_text_aa_level()`.
  12583. Set the number of bits of antialiasing we
  12584. should use for text.
  12585. bits: The number of bits of antialiasing to use (values are
  12586. clamped to within the 0 to 8 range).
  12587. """
  12588. return _mupdf.ll_fz_set_text_aa_level(bits)
  12589. def ll_fz_set_use_document_css(use):
  12590. r"""
  12591. Low-level wrapper for `::fz_set_use_document_css()`.
  12592. Toggle whether to respect document styles in HTML and EPUB.
  12593. """
  12594. return _mupdf.ll_fz_set_use_document_css(use)
  12595. def ll_fz_set_user_context(user):
  12596. r"""
  12597. Low-level wrapper for `::fz_set_user_context()`.
  12598. Set the user field in the context.
  12599. NULL initially, this field can be set to any opaque value
  12600. required by the user. It is copied on clones.
  12601. """
  12602. return _mupdf.ll_fz_set_user_context(user)
  12603. def ll_fz_set_user_css(text):
  12604. r"""
  12605. Low-level wrapper for `::fz_set_user_css()`.
  12606. Set the user stylesheet source text for use with HTML and EPUB.
  12607. """
  12608. return _mupdf.ll_fz_set_user_css(text)
  12609. def ll_fz_set_warning_callback(warning_cb, user):
  12610. r"""
  12611. Low-level wrapper for `::fz_set_warning_callback()`.
  12612. Set the warning callback. This will be called as part of the
  12613. exception handling.
  12614. The callback must not throw exceptions!
  12615. """
  12616. return _mupdf.ll_fz_set_warning_callback(warning_cb, user)
  12617. def ll_fz_sha256_final(state, digest):
  12618. r"""
  12619. Low-level wrapper for `::fz_sha256_final()`.
  12620. MD5 finalization. Ends an MD5 message-digest operation, writing
  12621. the message digest and zeroizing the context.
  12622. Never throws an exception.
  12623. """
  12624. return _mupdf.ll_fz_sha256_final(state, digest)
  12625. def ll_fz_sha256_init(state):
  12626. r"""
  12627. Low-level wrapper for `::fz_sha256_init()`.
  12628. SHA256 initialization. Begins an SHA256 operation, initialising
  12629. the supplied context.
  12630. Never throws an exception.
  12631. """
  12632. return _mupdf.ll_fz_sha256_init(state)
  12633. def ll_fz_sha256_update(state, input, inlen):
  12634. r"""
  12635. Low-level wrapper for `::fz_sha256_update()`.
  12636. SHA256 block update operation. Continues an SHA256 message-
  12637. digest operation, processing another message block, and updating
  12638. the context.
  12639. Never throws an exception.
  12640. """
  12641. return _mupdf.ll_fz_sha256_update(state, input, inlen)
  12642. def ll_fz_sha384_final(state, digest):
  12643. r"""
  12644. Low-level wrapper for `::fz_sha384_final()`.
  12645. SHA384 finalization. Ends an SHA384 message-digest operation,
  12646. writing the message digest and zeroizing the context.
  12647. Never throws an exception.
  12648. """
  12649. return _mupdf.ll_fz_sha384_final(state, digest)
  12650. def ll_fz_sha384_init(state):
  12651. r"""
  12652. Low-level wrapper for `::fz_sha384_init()`.
  12653. SHA384 initialization. Begins an SHA384 operation, initialising
  12654. the supplied context.
  12655. Never throws an exception.
  12656. """
  12657. return _mupdf.ll_fz_sha384_init(state)
  12658. def ll_fz_sha384_update(state, input, inlen):
  12659. r"""
  12660. Low-level wrapper for `::fz_sha384_update()`.
  12661. SHA384 block update operation. Continues an SHA384 message-
  12662. digest operation, processing another message block, and updating
  12663. the context.
  12664. Never throws an exception.
  12665. """
  12666. return _mupdf.ll_fz_sha384_update(state, input, inlen)
  12667. def ll_fz_sha512_final(state, digest):
  12668. r"""
  12669. Low-level wrapper for `::fz_sha512_final()`.
  12670. SHA512 finalization. Ends an SHA512 message-digest operation,
  12671. writing the message digest and zeroizing the context.
  12672. Never throws an exception.
  12673. """
  12674. return _mupdf.ll_fz_sha512_final(state, digest)
  12675. def ll_fz_sha512_init(state):
  12676. r"""
  12677. Low-level wrapper for `::fz_sha512_init()`.
  12678. SHA512 initialization. Begins an SHA512 operation, initialising
  12679. the supplied context.
  12680. Never throws an exception.
  12681. """
  12682. return _mupdf.ll_fz_sha512_init(state)
  12683. def ll_fz_sha512_update(state, input, inlen):
  12684. r"""
  12685. Low-level wrapper for `::fz_sha512_update()`.
  12686. SHA512 block update operation. Continues an SHA512 message-
  12687. digest operation, processing another message block, and updating
  12688. the context.
  12689. Never throws an exception.
  12690. """
  12691. return _mupdf.ll_fz_sha512_update(state, input, inlen)
  12692. def ll_fz_shear(sx, sy):
  12693. r"""
  12694. Low-level wrapper for `::fz_shear()`.
  12695. Create a shearing matrix.
  12696. The returned matrix is of the form [ 1 sy sx 1 0 0 ].
  12697. m: pointer to place to store returned matrix
  12698. sx, sy: Shearing factors. A shearing factor of 0.0 will not
  12699. cause any shearing along the relevant axis.
  12700. Returns m.
  12701. """
  12702. return _mupdf.ll_fz_shear(sx, sy)
  12703. def ll_fz_show_glyph(text, font, trm, glyph, unicode, wmode, bidi_level, markup_dir, language):
  12704. r"""
  12705. Low-level wrapper for `::fz_show_glyph()`.
  12706. Add a glyph/unicode value to a text object.
  12707. text: Text object to add to.
  12708. font: The font the glyph should be added in.
  12709. trm: The transform to use for the glyph.
  12710. glyph: The glyph id to add.
  12711. unicode: The unicode character for the glyph.
  12712. cid: The CJK CID value or raw character code.
  12713. wmode: 1 for vertical mode, 0 for horizontal.
  12714. bidi_level: The bidirectional level for this glyph.
  12715. markup_dir: The direction of the text as specified in the
  12716. markup.
  12717. language: The language in use (if known, 0 otherwise)
  12718. (e.g. FZ_LANG_zh_Hans).
  12719. Throws exception on failure to allocate.
  12720. """
  12721. return _mupdf.ll_fz_show_glyph(text, font, trm, glyph, unicode, wmode, bidi_level, markup_dir, language)
  12722. def ll_fz_show_glyph_aux(text, font, trm, adv, glyph, unicode, cid, wmode, bidi_level, markup_dir, lang):
  12723. r"""Low-level wrapper for `::fz_show_glyph_aux()`."""
  12724. return _mupdf.ll_fz_show_glyph_aux(text, font, trm, adv, glyph, unicode, cid, wmode, bidi_level, markup_dir, lang)
  12725. def ll_fz_show_string(text, font, trm, s, wmode, bidi_level, markup_dir, language):
  12726. r"""
  12727. Low-level wrapper for `::fz_show_string()`.
  12728. Add a UTF8 string to a text object.
  12729. text: Text object to add to.
  12730. font: The font the string should be added in.
  12731. trm: The transform to use.
  12732. s: The utf-8 string to add.
  12733. wmode: 1 for vertical mode, 0 for horizontal.
  12734. bidi_level: The bidirectional level for this glyph.
  12735. markup_dir: The direction of the text as specified in the markup.
  12736. language: The language in use (if known, 0 otherwise)
  12737. (e.g. FZ_LANG_zh_Hans).
  12738. Returns the transform updated with the advance width of the
  12739. string.
  12740. """
  12741. return _mupdf.ll_fz_show_string(text, font, trm, s, wmode, bidi_level, markup_dir, language)
  12742. def ll_fz_shrink_store(percent):
  12743. r"""
  12744. Low-level wrapper for `::fz_shrink_store()`.
  12745. Evict items from the store until the total size of
  12746. the objects in the store is reduced to a given percentage of its
  12747. current size.
  12748. percent: %age of current size to reduce the store to.
  12749. Returns non zero if we managed to free enough memory, zero
  12750. otherwise.
  12751. """
  12752. return _mupdf.ll_fz_shrink_store(percent)
  12753. def ll_fz_skip(stm, len):
  12754. r"""
  12755. Low-level wrapper for `::fz_skip()`.
  12756. Read from a stream discarding data.
  12757. stm: The stream to read from.
  12758. len: The number of bytes to read.
  12759. Returns the number of bytes read. May throw exceptions.
  12760. """
  12761. return _mupdf.ll_fz_skip(stm, len)
  12762. def ll_fz_skip_space(stm):
  12763. r"""
  12764. Low-level wrapper for `::fz_skip_space()`.
  12765. Skip over whitespace (bytes <= 32) in a stream.
  12766. """
  12767. return _mupdf.ll_fz_skip_space(stm)
  12768. def ll_fz_skip_string(stm, str):
  12769. r"""
  12770. Low-level wrapper for `::fz_skip_string()`.
  12771. Skip over a given string in a stream. Return 0 if successfully
  12772. skipped, non-zero otherwise. As many characters will be skipped
  12773. over as matched in the string.
  12774. """
  12775. return _mupdf.ll_fz_skip_string(stm, str)
  12776. def ll_fz_slice_buffer(buf, start, end):
  12777. r"""
  12778. Low-level wrapper for `::fz_slice_buffer()`.
  12779. Create a new buffer with a (subset of) the data from the buffer.
  12780. start: if >= 0, offset from start of buffer, if < 0 offset from end of buffer.
  12781. end: if >= 0, offset from start of buffer, if < 0 offset from end of buffer.
  12782. """
  12783. return _mupdf.ll_fz_slice_buffer(buf, start, end)
  12784. def ll_fz_snap_selection(page, ap, bp, mode):
  12785. r"""Low-level wrapper for `::fz_snap_selection()`."""
  12786. return _mupdf.ll_fz_snap_selection(page, ap, bp, mode)
  12787. def ll_fz_start_throw_on_repair():
  12788. r"""Low-level wrapper for `::fz_start_throw_on_repair()`."""
  12789. return _mupdf.ll_fz_start_throw_on_repair()
  12790. def ll_fz_stat_ctime(path):
  12791. r"""Low-level wrapper for `::fz_stat_ctime()`."""
  12792. return _mupdf.ll_fz_stat_ctime(path)
  12793. def ll_fz_stat_mtime(path):
  12794. r"""Low-level wrapper for `::fz_stat_mtime()`."""
  12795. return _mupdf.ll_fz_stat_mtime(path)
  12796. def ll_fz_stddbg():
  12797. r"""
  12798. Low-level wrapper for `::fz_stddbg()`.
  12799. Retrieve an fz_output for the default debugging stream. On
  12800. Windows this will be OutputDebugString for non-console apps.
  12801. Otherwise, it is always fz_stderr.
  12802. Optionally may be fz_dropped when finished with.
  12803. """
  12804. return _mupdf.ll_fz_stddbg()
  12805. def ll_fz_stderr():
  12806. r"""
  12807. Low-level wrapper for `::fz_stderr()`.
  12808. Retrieve an fz_output that directs to stdout.
  12809. Optionally may be fz_dropped when finished with.
  12810. """
  12811. return _mupdf.ll_fz_stderr()
  12812. def ll_fz_stdout():
  12813. r"""
  12814. Low-level wrapper for `::fz_stdout()`.
  12815. Retrieve an fz_output that directs to stdout.
  12816. Optionally may be fz_dropped when finished with.
  12817. """
  12818. return _mupdf.ll_fz_stdout()
  12819. def ll_fz_store_item(key, val, itemsize, type):
  12820. r"""
  12821. Low-level wrapper for `::fz_store_item()`.
  12822. Add an item to the store.
  12823. Add an item into the store, returning NULL for success. If an
  12824. item with the same key is found in the store, then our item will
  12825. not be inserted, and the function will return a pointer to that
  12826. value instead. This function takes its own reference to val, as
  12827. required (i.e. the caller maintains ownership of its own
  12828. reference).
  12829. key: The key used to index the item.
  12830. val: The value to store.
  12831. itemsize: The size in bytes of the value (as counted towards the
  12832. store size).
  12833. type: Functions used to manipulate the key.
  12834. """
  12835. return _mupdf.ll_fz_store_item(key, val, itemsize, type)
  12836. def ll_fz_store_scavenge(size, phase):
  12837. r"""
  12838. Low-level wrapper for `::fz_store_scavenge()`.
  12839. This function has out-params. Python/C# wrappers look like:
  12840. `ll_fz_store_scavenge(size_t size)` => `(int, int phase)`
  12841. Internal function used as part of the scavenging
  12842. allocator; when we fail to allocate memory, before returning a
  12843. failure to the caller, we try to scavenge space within the store
  12844. by evicting at least 'size' bytes. The allocator then retries.
  12845. size: The number of bytes we are trying to have free.
  12846. phase: What phase of the scavenge we are in. Updated on exit.
  12847. Returns non zero if we managed to free any memory.
  12848. """
  12849. return _mupdf.ll_fz_store_scavenge(size, phase)
  12850. def ll_fz_store_scavenge_external(size, phase):
  12851. r"""
  12852. Low-level wrapper for `::fz_store_scavenge_external()`.
  12853. This function has out-params. Python/C# wrappers look like:
  12854. `ll_fz_store_scavenge_external(size_t size)` => `(int, int phase)`
  12855. External function for callers to use
  12856. to scavenge while trying allocations.
  12857. size: The number of bytes we are trying to have free.
  12858. phase: What phase of the scavenge we are in. Updated on exit.
  12859. Returns non zero if we managed to free any memory.
  12860. """
  12861. return _mupdf.ll_fz_store_scavenge_external(size, phase)
  12862. def ll_fz_story_document(story):
  12863. r"""Low-level wrapper for `::fz_story_document()`."""
  12864. return _mupdf.ll_fz_story_document(story)
  12865. def ll_fz_story_positions(story, cb, arg):
  12866. r"""Low-level wrapper for `::fz_story_positions()`."""
  12867. return _mupdf.ll_fz_story_positions(story, cb, arg)
  12868. def ll_fz_story_warnings(story):
  12869. r"""Low-level wrapper for `::fz_story_warnings()`."""
  12870. return _mupdf.ll_fz_story_warnings(story)
  12871. def ll_fz_strcasecmp(a, b):
  12872. r"""
  12873. Low-level wrapper for `::fz_strcasecmp()`.
  12874. Case insensitive (UTF8) string comparison.
  12875. """
  12876. return _mupdf.ll_fz_strcasecmp(a, b)
  12877. def ll_fz_strdup(s):
  12878. r"""
  12879. Low-level wrapper for `::fz_strdup()`.
  12880. Portable strdup implementation, using fz allocators.
  12881. """
  12882. return _mupdf.ll_fz_strdup(s)
  12883. def ll_fz_stream_filename(stm):
  12884. r"""
  12885. Low-level wrapper for `::fz_stream_filename()`.
  12886. Return the filename (UTF-8 encoded) from which a stream was opened.
  12887. Returns NULL if the filename is not available (or the stream was
  12888. opened from a source other than a file).
  12889. """
  12890. return _mupdf.ll_fz_stream_filename(stm)
  12891. def ll_fz_stream_from_output(arg_1):
  12892. r"""
  12893. Low-level wrapper for `::fz_stream_from_output()`.
  12894. Obtain the fz_output in the form of a fz_stream.
  12895. This allows data to be read back from some forms of fz_output
  12896. object. When finished reading, the fz_stream should be released
  12897. by calling fz_drop_stream. Until the fz_stream is dropped, no
  12898. further operations should be performed on the fz_output object.
  12899. """
  12900. return _mupdf.ll_fz_stream_from_output(arg_1)
  12901. def ll_fz_string_from_barcode_type(type):
  12902. r"""
  12903. Low-level wrapper for `::fz_string_from_barcode_type()`.
  12904. Return barcode string matching one of the above barcode types.
  12905. All lowercase, e.g. "none", "aztec" etc.
  12906. """
  12907. return _mupdf.ll_fz_string_from_barcode_type(type)
  12908. def ll_fz_string_from_box_type(box):
  12909. r"""Low-level wrapper for `::fz_string_from_box_type()`."""
  12910. return _mupdf.ll_fz_string_from_box_type(box)
  12911. def ll_fz_string_from_buffer(buf):
  12912. r"""
  12913. Low-level wrapper for `::fz_string_from_buffer()`.
  12914. Ensure that a buffer's data ends in a
  12915. 0 byte, and return a pointer to it.
  12916. """
  12917. return _mupdf.ll_fz_string_from_buffer(buf)
  12918. def ll_fz_string_from_linecap(cap):
  12919. r"""Low-level wrapper for `::fz_string_from_linecap()`."""
  12920. return _mupdf.ll_fz_string_from_linecap(cap)
  12921. def ll_fz_string_from_linejoin(join):
  12922. r"""Low-level wrapper for `::fz_string_from_linejoin()`."""
  12923. return _mupdf.ll_fz_string_from_linejoin(join)
  12924. def ll_fz_string_from_text_language(str, lang):
  12925. r"""
  12926. Low-level wrapper for `::fz_string_from_text_language()`.
  12927. Recover ISO 639 (639-{1,2,3,5}) language specification
  12928. strings losslessly from a 15 bit fz_text_language code.
  12929. No validation is carried out. See note above.
  12930. """
  12931. return _mupdf.ll_fz_string_from_text_language(str, lang)
  12932. def ll_fz_string_from_text_language2(lang):
  12933. r"""
  12934. Low-level wrapper for `::fz_string_from_text_language2()`.
  12935. C++ alternative to fz_string_from_text_language() that returns information in a std::string.
  12936. """
  12937. return _mupdf.ll_fz_string_from_text_language2(lang)
  12938. def ll_fz_strlcat(dst, src, n):
  12939. r"""
  12940. Low-level wrapper for `::fz_strlcat()`.
  12941. Concatenate 2 strings, with a maximum length.
  12942. dst: pointer to first string in a buffer of n bytes.
  12943. src: pointer to string to concatenate.
  12944. n: Size (in bytes) of buffer that dst is in.
  12945. Returns the real length that a concatenated dst + src would have
  12946. been (not including terminator).
  12947. """
  12948. return _mupdf.ll_fz_strlcat(dst, src, n)
  12949. def ll_fz_strlcpy(dst, src, n):
  12950. r"""
  12951. Low-level wrapper for `::fz_strlcpy()`.
  12952. Copy at most n-1 chars of a string into a destination
  12953. buffer with null termination, returning the real length of the
  12954. initial string (excluding terminator).
  12955. dst: Destination buffer, at least n bytes long.
  12956. src: C string (non-NULL).
  12957. n: Size of dst buffer in bytes.
  12958. Returns the length (excluding terminator) of src.
  12959. """
  12960. return _mupdf.ll_fz_strlcpy(dst, src, n)
  12961. def ll_fz_strncasecmp(a, b, n):
  12962. r"""
  12963. Low-level wrapper for `::fz_strncasecmp()`.
  12964. Case insensitive (UTF8) string comparison.
  12965. n = maximum number of bytes to read from either a or b.
  12966. """
  12967. return _mupdf.ll_fz_strncasecmp(a, b, n)
  12968. def ll_fz_strnlen(s, maxlen):
  12969. r"""
  12970. Low-level wrapper for `::fz_strnlen()`.
  12971. Return strlen(s), if that is less than maxlen, or maxlen if
  12972. there is no null byte ('') among the first maxlen bytes.
  12973. """
  12974. return _mupdf.ll_fz_strnlen(s, maxlen)
  12975. def ll_fz_stroke_path(dev, path, stroke, ctm, colorspace, color, alpha, color_params):
  12976. r"""Low-level wrapper for `::fz_stroke_path()`."""
  12977. return _mupdf.ll_fz_stroke_path(dev, path, stroke, ctm, colorspace, color, alpha, color_params)
  12978. def ll_fz_stroke_state_eq(a, b):
  12979. r"""Low-level wrapper for `::fz_stroke_state_eq()`."""
  12980. return _mupdf.ll_fz_stroke_state_eq(a, b)
  12981. def ll_fz_stroke_text(dev, text, stroke, ctm, colorspace, color, alpha, color_params):
  12982. r"""Low-level wrapper for `::fz_stroke_text()`."""
  12983. return _mupdf.ll_fz_stroke_text(dev, text, stroke, ctm, colorspace, color, alpha, color_params)
  12984. def ll_fz_strsep(stringp, delim):
  12985. r"""
  12986. Low-level wrapper for `::fz_strsep()`.
  12987. This function has out-params. Python/C# wrappers look like:
  12988. `ll_fz_strsep(const char *delim)` => `(char *, char *stringp)`
  12989. Given a pointer to a C string (or a pointer to NULL) break
  12990. it at the first occurrence of a delimiter char (from a given
  12991. set).
  12992. stringp: Pointer to a C string pointer (or NULL). Updated on
  12993. exit to point to the first char of the string after the
  12994. delimiter that was found. The string pointed to by stringp will
  12995. be corrupted by this call (as the found delimiter will be
  12996. overwritten by 0).
  12997. delim: A C string of acceptable delimiter characters.
  12998. Returns a pointer to a C string containing the chars of stringp
  12999. up to the first delimiter char (or the end of the string), or
  13000. NULL.
  13001. """
  13002. return _mupdf.ll_fz_strsep(stringp, delim)
  13003. def ll_fz_strstr(haystack, needle):
  13004. r"""
  13005. Low-level wrapper for `::fz_strstr()`.
  13006. Safe strstr function.
  13007. haystack: Where to look (may be NULL).
  13008. needled: What to look for.
  13009. Returns NULL if unmatched, or pointer to start of match.
  13010. """
  13011. return _mupdf.ll_fz_strstr(haystack, needle)
  13012. def ll_fz_strstrcase(haystack, needle):
  13013. r"""
  13014. Low-level wrapper for `::fz_strstrcase()`.
  13015. Safe case-insensitive strstr function. (Accepts UTF-8).
  13016. haystack: Where to look (may be NULL).
  13017. needled: What to look for.
  13018. Returns NULL if unmatched, or pointer to start of match.
  13019. """
  13020. return _mupdf.ll_fz_strstrcase(haystack, needle)
  13021. def ll_fz_strtof(s, es):
  13022. r"""
  13023. Low-level wrapper for `::fz_strtof()`.
  13024. This function has out-params. Python/C# wrappers look like:
  13025. `ll_fz_strtof(const char *s)` => `(float, char *es)`
  13026. Locale-independent decimal to binary conversion. On overflow
  13027. return (-)INFINITY and set errno to ERANGE. On underflow return
  13028. 0 and set errno to ERANGE. Special inputs (case insensitive):
  13029. "NAN", "INF" or "INFINITY".
  13030. """
  13031. return _mupdf.ll_fz_strtof(s, es)
  13032. def ll_fz_structure_from_string(str):
  13033. r"""Low-level wrapper for `::fz_structure_from_string()`."""
  13034. return _mupdf.ll_fz_structure_from_string(str)
  13035. def ll_fz_structure_to_string(type):
  13036. r"""Low-level wrapper for `::fz_structure_to_string()`."""
  13037. return _mupdf.ll_fz_structure_to_string(type)
  13038. def ll_fz_strverscmp(s1, s2):
  13039. r"""
  13040. Low-level wrapper for `::fz_strverscmp()`.
  13041. portable strverscmp(3) function
  13042. """
  13043. return _mupdf.ll_fz_strverscmp(s1, s2)
  13044. def ll_fz_subpixel_adjust(ctm, subpix_ctm, qe, qf):
  13045. r"""
  13046. Low-level wrapper for `::fz_subpixel_adjust()`.
  13047. Perform subpixel quantisation and adjustment on a glyph matrix.
  13048. ctm: On entry, the desired 'ideal' transformation for a glyph.
  13049. On exit, adjusted to a (very similar) transformation quantised
  13050. for subpixel caching.
  13051. subpix_ctm: Initialised by the routine to the transform that
  13052. should be used to render the glyph.
  13053. qe, qf: which subpixel position we quantised to.
  13054. Returns: the size of the glyph.
  13055. Note: This is currently only exposed for use in our app. It
  13056. should be considered "at risk" of removal from the API.
  13057. """
  13058. return _mupdf.ll_fz_subpixel_adjust(ctm, subpix_ctm, qe, qf)
  13059. def ll_fz_subsample_pixmap(tile, factor):
  13060. r"""Low-level wrapper for `::fz_subsample_pixmap()`."""
  13061. return _mupdf.ll_fz_subsample_pixmap(tile, factor)
  13062. def ll_fz_subset_cff_for_gids(orig, gids, num_gids, symbolic, cidfont):
  13063. r"""
  13064. Low-level wrapper for `::fz_subset_cff_for_gids()`.
  13065. This function has out-params. Python/C# wrappers look like:
  13066. `ll_fz_subset_cff_for_gids(::fz_buffer *orig, int num_gids, int symbolic, int cidfont)` => `(fz_buffer *, int gids)`
  13067. """
  13068. return _mupdf.ll_fz_subset_cff_for_gids(orig, gids, num_gids, symbolic, cidfont)
  13069. def ll_fz_subset_ttf_for_gids(orig, gids, num_gids, symbolic, cidfont):
  13070. r"""
  13071. Low-level wrapper for `::fz_subset_ttf_for_gids()`.
  13072. This function has out-params. Python/C# wrappers look like:
  13073. `ll_fz_subset_ttf_for_gids(::fz_buffer *orig, int num_gids, int symbolic, int cidfont)` => `(fz_buffer *, int gids)`
  13074. """
  13075. return _mupdf.ll_fz_subset_ttf_for_gids(orig, gids, num_gids, symbolic, cidfont)
  13076. def ll_fz_sync_bits(stm):
  13077. r"""
  13078. Low-level wrapper for `::fz_sync_bits()`.
  13079. Called after reading bits to tell the stream
  13080. that we are about to return to reading bytewise. Resyncs
  13081. the stream to whole byte boundaries.
  13082. """
  13083. return _mupdf.ll_fz_sync_bits(stm)
  13084. def ll_fz_table_hunt(page):
  13085. r"""
  13086. Low-level wrapper for `::fz_table_hunt()`.
  13087. Hunt for possible tables on a page, and update the stext with
  13088. information.
  13089. """
  13090. return _mupdf.ll_fz_table_hunt(page)
  13091. def ll_fz_tell(stm):
  13092. r"""
  13093. Low-level wrapper for `::fz_tell()`.
  13094. return the current reading position within a stream
  13095. """
  13096. return _mupdf.ll_fz_tell(stm)
  13097. def ll_fz_tell_output(out):
  13098. r"""
  13099. Low-level wrapper for `::fz_tell_output()`.
  13100. Return the current file position.
  13101. Throw an error on untellable outputs.
  13102. """
  13103. return _mupdf.ll_fz_tell_output(out)
  13104. def ll_fz_terminate_buffer(buf):
  13105. r"""
  13106. Low-level wrapper for `::fz_terminate_buffer()`.
  13107. Zero-terminate buffer in order to use as a C string.
  13108. This byte is invisible and does not affect the length of the
  13109. buffer as returned by fz_buffer_storage. The zero byte is
  13110. written *after* the data, and subsequent writes will overwrite
  13111. the terminating byte.
  13112. Subsequent changes to the size of the buffer (such as by
  13113. fz_buffer_trim, fz_buffer_grow, fz_resize_buffer, etc) may
  13114. invalidate this.
  13115. """
  13116. return _mupdf.ll_fz_terminate_buffer(buf)
  13117. def ll_fz_text_aa_level():
  13118. r"""
  13119. Low-level wrapper for `::fz_text_aa_level()`.
  13120. Get the number of bits of antialiasing we are
  13121. using for text. Between 0 and 8.
  13122. """
  13123. return _mupdf.ll_fz_text_aa_level()
  13124. def ll_fz_text_language_from_string(str):
  13125. r"""
  13126. Low-level wrapper for `::fz_text_language_from_string()`.
  13127. Convert ISO 639 (639-{1,2,3,5}) language specification
  13128. strings losslessly to a 15 bit fz_text_language code.
  13129. No validation is carried out. Obviously invalid (out
  13130. of spec) codes will be mapped to FZ_LANG_UNSET, but
  13131. well-formed (but undefined) codes will be blithely
  13132. accepted.
  13133. """
  13134. return _mupdf.ll_fz_text_language_from_string(str)
  13135. def ll_fz_tint_pixmap(pix, black, white):
  13136. r"""
  13137. Low-level wrapper for `::fz_tint_pixmap()`.
  13138. Tint all the pixels in an RGB, BGR, or Gray pixmap.
  13139. black: Map black to this hexadecimal RGB color.
  13140. white: Map white to this hexadecimal RGB color.
  13141. """
  13142. return _mupdf.ll_fz_tint_pixmap(pix, black, white)
  13143. def ll_fz_tolower(c):
  13144. r"""
  13145. Low-level wrapper for `::fz_tolower()`.
  13146. Unicode aware tolower and toupper functions.
  13147. """
  13148. return _mupdf.ll_fz_tolower(c)
  13149. def ll_fz_toupper(c):
  13150. r"""Low-level wrapper for `::fz_toupper()`."""
  13151. return _mupdf.ll_fz_toupper(c)
  13152. def ll_fz_transform_page(mediabox, resolution, rotate):
  13153. r"""
  13154. Low-level wrapper for `::fz_transform_page()`.
  13155. Create transform matrix to draw page
  13156. at a given resolution and rotation. Adjusts the scaling
  13157. factors so that the page covers whole number of
  13158. pixels and adjust the page origin to be at 0,0.
  13159. """
  13160. return _mupdf.ll_fz_transform_page(mediabox, resolution, rotate)
  13161. def ll_fz_transform_path(path, transform):
  13162. r"""
  13163. Low-level wrapper for `::fz_transform_path()`.
  13164. Transform a path by a given
  13165. matrix.
  13166. path: The path to modify (must not be a packed path).
  13167. transform: The transform to apply.
  13168. Throws exceptions if the path is packed, or on failure
  13169. to allocate.
  13170. """
  13171. return _mupdf.ll_fz_transform_path(path, transform)
  13172. def ll_fz_transform_point(point, m):
  13173. r"""
  13174. Low-level wrapper for `::fz_transform_point()`.
  13175. Apply a transformation to a point.
  13176. transform: Transformation matrix to apply. See fz_concat,
  13177. fz_scale, fz_rotate and fz_translate for how to create a
  13178. matrix.
  13179. point: Pointer to point to update.
  13180. Returns transform (unchanged).
  13181. """
  13182. return _mupdf.ll_fz_transform_point(point, m)
  13183. def ll_fz_transform_point_xy(x, y, m):
  13184. r"""Low-level wrapper for `::fz_transform_point_xy()`."""
  13185. return _mupdf.ll_fz_transform_point_xy(x, y, m)
  13186. def ll_fz_transform_quad(q, m):
  13187. r"""
  13188. Low-level wrapper for `::fz_transform_quad()`.
  13189. Transform a quad by a matrix.
  13190. """
  13191. return _mupdf.ll_fz_transform_quad(q, m)
  13192. def ll_fz_transform_rect(rect, m):
  13193. r"""
  13194. Low-level wrapper for `::fz_transform_rect()`.
  13195. Apply a transform to a rectangle.
  13196. After the four corner points of the axis-aligned rectangle
  13197. have been transformed it may not longer be axis-aligned. So a
  13198. new axis-aligned rectangle is created covering at least the
  13199. area of the transformed rectangle.
  13200. transform: Transformation matrix to apply. See fz_concat,
  13201. fz_scale and fz_rotate for how to create a matrix.
  13202. rect: Rectangle to be transformed. The two special cases
  13203. fz_empty_rect and fz_infinite_rect, may be used but are
  13204. returned unchanged as expected.
  13205. """
  13206. return _mupdf.ll_fz_transform_rect(rect, m)
  13207. def ll_fz_transform_vector(vector, m):
  13208. r"""
  13209. Low-level wrapper for `::fz_transform_vector()`.
  13210. Apply a transformation to a vector.
  13211. transform: Transformation matrix to apply. See fz_concat,
  13212. fz_scale and fz_rotate for how to create a matrix. Any
  13213. translation will be ignored.
  13214. vector: Pointer to vector to update.
  13215. """
  13216. return _mupdf.ll_fz_transform_vector(vector, m)
  13217. def ll_fz_translate(tx, ty):
  13218. r"""
  13219. Low-level wrapper for `::fz_translate()`.
  13220. Create a translation matrix.
  13221. The returned matrix is of the form [ 1 0 0 1 tx ty ].
  13222. m: A place to store the created matrix.
  13223. tx, ty: Translation distances along the X- and Y-axes. A
  13224. translation of 0 will not cause any translation along the
  13225. relevant axis.
  13226. Returns m.
  13227. """
  13228. return _mupdf.ll_fz_translate(tx, ty)
  13229. def ll_fz_translate_irect(a, xoff, yoff):
  13230. r"""Low-level wrapper for `::fz_translate_irect()`."""
  13231. return _mupdf.ll_fz_translate_irect(a, xoff, yoff)
  13232. def ll_fz_translate_rect(a, xoff, yoff):
  13233. r"""
  13234. Low-level wrapper for `::fz_translate_rect()`.
  13235. Translate bounding box.
  13236. Translate a bbox by a given x and y offset. Allows for overflow.
  13237. """
  13238. return _mupdf.ll_fz_translate_rect(a, xoff, yoff)
  13239. def ll_fz_tree_archive_add_buffer(arch_, name, buf):
  13240. r"""
  13241. Low-level wrapper for `::fz_tree_archive_add_buffer()`.
  13242. Add a named buffer to an existing tree archive.
  13243. The tree will take a new reference to the buffer. Ownership
  13244. is not transferred.
  13245. """
  13246. return _mupdf.ll_fz_tree_archive_add_buffer(arch_, name, buf)
  13247. def ll_fz_tree_archive_add_data(arch_, name, data, size):
  13248. r"""
  13249. Low-level wrapper for `::fz_tree_archive_add_data()`.
  13250. Add a named block of data to an existing tree archive.
  13251. The data will be copied into a buffer, and so the caller
  13252. may free it as soon as this returns.
  13253. """
  13254. return _mupdf.ll_fz_tree_archive_add_data(arch_, name, data, size)
  13255. def ll_fz_tree_insert(root, key, value):
  13256. r"""
  13257. Low-level wrapper for `::fz_tree_insert()`.
  13258. Insert a new key/value pair and rebalance the tree.
  13259. Return the new root of the tree after inserting and rebalancing.
  13260. May be called with a NULL root to create a new tree.
  13261. No data is copied into the tree structure; key and value are
  13262. merely kept as pointers.
  13263. """
  13264. return _mupdf.ll_fz_tree_insert(root, key, value)
  13265. def ll_fz_tree_lookup(node, key):
  13266. r"""
  13267. Low-level wrapper for `::fz_tree_lookup()`.
  13268. Look for the value of a node in the tree with the given key.
  13269. Simple pointer equivalence is used for key.
  13270. Returns NULL for no match.
  13271. """
  13272. return _mupdf.ll_fz_tree_lookup(node, key)
  13273. def ll_fz_trim_buffer(buf):
  13274. r"""
  13275. Low-level wrapper for `::fz_trim_buffer()`.
  13276. Trim wasted capacity from a buffer by resizing internal memory.
  13277. """
  13278. return _mupdf.ll_fz_trim_buffer(buf)
  13279. def ll_fz_trim_path(path):
  13280. r"""
  13281. Low-level wrapper for `::fz_trim_path()`.
  13282. Minimise the internal storage used by a path.
  13283. As paths are constructed, the internal buffers
  13284. grow. To avoid repeated reallocations they
  13285. grow with some spare space. Once a path has
  13286. been fully constructed, this call allows the
  13287. excess space to be trimmed.
  13288. """
  13289. return _mupdf.ll_fz_trim_path(path)
  13290. def ll_fz_truncate_output(arg_1):
  13291. r"""
  13292. Low-level wrapper for `::fz_truncate_output()`.
  13293. Truncate the output at the current position.
  13294. This allows output streams which have seeked back from the end
  13295. of their storage to be truncated at the current point.
  13296. """
  13297. return _mupdf.ll_fz_truncate_output(arg_1)
  13298. def ll_fz_try_invert_matrix(inv, src):
  13299. r"""
  13300. Low-level wrapper for `::fz_try_invert_matrix()`.
  13301. Attempt to create an inverse matrix.
  13302. inv: Place to store inverse matrix.
  13303. src: Matrix to invert. A degenerate matrix, where the
  13304. determinant is equal to zero, can not be inverted.
  13305. Returns 1 if matrix is degenerate (singular), or 0 otherwise.
  13306. """
  13307. return _mupdf.ll_fz_try_invert_matrix(inv, src)
  13308. def ll_fz_try_open_archive_entry(arch, name):
  13309. r"""
  13310. Low-level wrapper for `::fz_try_open_archive_entry()`.
  13311. Opens an archive entry as a stream.
  13312. Returns NULL if a matching entry cannot be found, otherwise
  13313. behaves exactly as fz_open_archive_entry.
  13314. """
  13315. return _mupdf.ll_fz_try_open_archive_entry(arch, name)
  13316. def ll_fz_try_open_archive_with_stream(file):
  13317. r"""
  13318. Low-level wrapper for `::fz_try_open_archive_with_stream()`.
  13319. Open zip or tar archive stream.
  13320. Does the same as fz_open_archive_with_stream, but will not throw
  13321. an error in the event of failing to recognise the format. Will
  13322. still throw errors in other cases though!
  13323. """
  13324. return _mupdf.ll_fz_try_open_archive_with_stream(file)
  13325. def ll_fz_try_open_file(name):
  13326. r"""
  13327. Low-level wrapper for `::fz_try_open_file()`.
  13328. Open the named file and wrap it in a stream.
  13329. Does the same as fz_open_file, but in the event the file
  13330. does not open, it will return NULL rather than throw an
  13331. exception.
  13332. """
  13333. return _mupdf.ll_fz_try_open_file(name)
  13334. def ll_fz_try_parse_xml_archive_entry(dir, filename, preserve_white):
  13335. r"""
  13336. Low-level wrapper for `::fz_try_parse_xml_archive_entry()`.
  13337. Try and parse the contents of an archive entry into a tree of xml nodes.
  13338. preserve_white: whether to keep or delete all-whitespace nodes.
  13339. Will return NULL if the archive entry can't be found. Otherwise behaves
  13340. the same as fz_parse_xml_archive_entry. May throw exceptions.
  13341. """
  13342. return _mupdf.ll_fz_try_parse_xml_archive_entry(dir, filename, preserve_white)
  13343. def ll_fz_try_read_archive_entry(arch, name):
  13344. r"""
  13345. Low-level wrapper for `::fz_try_read_archive_entry()`.
  13346. Reads all bytes in an archive entry
  13347. into a buffer.
  13348. name: Entry name to look for, this must be an exact match to
  13349. the entry name in the archive.
  13350. Returns NULL if a matching entry cannot be found. Otherwise behaves
  13351. the same as fz_read_archive_entry. Exceptions may be thrown.
  13352. """
  13353. return _mupdf.ll_fz_try_read_archive_entry(arch, name)
  13354. def ll_fz_try_read_file(filename):
  13355. r"""
  13356. Low-level wrapper for `::fz_try_read_file()`.
  13357. Read all the contents of a file into a buffer.
  13358. Returns NULL if the file does not exist, otherwise
  13359. behaves exactly as fz_read_file.
  13360. """
  13361. return _mupdf.ll_fz_try_read_file(filename)
  13362. def ll_fz_tune_image_decode(image_decode, arg):
  13363. r"""
  13364. Low-level wrapper for `::fz_tune_image_decode()`.
  13365. Set the tuning function to use for
  13366. image decode.
  13367. image_decode: Function to use.
  13368. arg: Opaque argument to be passed to tuning function.
  13369. """
  13370. return _mupdf.ll_fz_tune_image_decode(image_decode, arg)
  13371. def ll_fz_tune_image_scale(image_scale, arg):
  13372. r"""
  13373. Low-level wrapper for `::fz_tune_image_scale()`.
  13374. Set the tuning function to use for
  13375. image scaling.
  13376. image_scale: Function to use.
  13377. arg: Opaque argument to be passed to tuning function.
  13378. """
  13379. return _mupdf.ll_fz_tune_image_scale(image_scale, arg)
  13380. def ll_fz_unicode_from_glyph_name(name):
  13381. r"""Low-level wrapper for `::fz_unicode_from_glyph_name()`."""
  13382. return _mupdf.ll_fz_unicode_from_glyph_name(name)
  13383. def ll_fz_unicode_from_glyph_name_strict(name):
  13384. r"""Low-level wrapper for `::fz_unicode_from_glyph_name_strict()`."""
  13385. return _mupdf.ll_fz_unicode_from_glyph_name_strict(name)
  13386. def ll_fz_union_rect(a, b):
  13387. r"""
  13388. Low-level wrapper for `::fz_union_rect()`.
  13389. Compute union of two rectangles.
  13390. Given two rectangles, update the first to be the smallest
  13391. axis-aligned rectangle that encompasses both given rectangles.
  13392. If either rectangle is infinite then the union is also infinite.
  13393. If either rectangle is empty then the union is simply the
  13394. non-empty rectangle. Should both rectangles be empty, then the
  13395. union is also empty.
  13396. """
  13397. return _mupdf.ll_fz_union_rect(a, b)
  13398. def ll_fz_unlock(lock):
  13399. r"""
  13400. Low-level wrapper for `::fz_unlock()`.
  13401. Unlock one of the user supplied mutexes.
  13402. """
  13403. return _mupdf.ll_fz_unlock(lock)
  13404. def ll_fz_unpack_stream(src, depth, w, h, n, indexed, pad, skip):
  13405. r"""Low-level wrapper for `::fz_unpack_stream()`."""
  13406. return _mupdf.ll_fz_unpack_stream(src, depth, w, h, n, indexed, pad, skip)
  13407. def ll_fz_unread_byte(stm):
  13408. r"""
  13409. Low-level wrapper for `::fz_unread_byte()`.
  13410. Unread the single last byte successfully
  13411. read from a stream. Do not call this without having
  13412. successfully read a byte.
  13413. stm: The stream to operate upon.
  13414. """
  13415. return _mupdf.ll_fz_unread_byte(stm)
  13416. def ll_fz_unshare_stroke_state(shared):
  13417. r"""
  13418. Low-level wrapper for `::fz_unshare_stroke_state()`.
  13419. Given a reference to a (possibly) shared stroke_state structure,
  13420. return a reference to an equivalent stroke_state structure
  13421. that is guaranteed to be unshared (i.e. one that can
  13422. safely be modified).
  13423. shared: The reference to a (possibly) shared structure
  13424. to unshare. Ownership of this reference is passed in
  13425. to this function, even in the case of exceptions being
  13426. thrown.
  13427. Exceptions may be thrown in the event of failure to
  13428. allocate if required.
  13429. """
  13430. return _mupdf.ll_fz_unshare_stroke_state(shared)
  13431. def ll_fz_unshare_stroke_state_with_dash_len(shared, len):
  13432. r"""
  13433. Low-level wrapper for `::fz_unshare_stroke_state_with_dash_len()`.
  13434. Given a reference to a (possibly) shared stroke_state structure,
  13435. return a reference to a stroke_state structure (with room for a
  13436. given amount of dash data) that is guaranteed to be unshared
  13437. (i.e. one that can safely be modified).
  13438. shared: The reference to a (possibly) shared structure
  13439. to unshare. Ownership of this reference is passed in
  13440. to this function, even in the case of exceptions being
  13441. thrown.
  13442. Exceptions may be thrown in the event of failure to
  13443. allocate if required.
  13444. """
  13445. return _mupdf.ll_fz_unshare_stroke_state_with_dash_len(shared, len)
  13446. def ll_fz_urldecode(url):
  13447. r"""
  13448. Low-level wrapper for `::fz_urldecode()`.
  13449. Like fz_decode_uri_component but in-place.
  13450. """
  13451. return _mupdf.ll_fz_urldecode(url)
  13452. def ll_fz_use_document_css():
  13453. r"""
  13454. Low-level wrapper for `::fz_use_document_css()`.
  13455. Return whether to respect document styles in HTML and EPUB.
  13456. """
  13457. return _mupdf.ll_fz_use_document_css()
  13458. def ll_fz_user_context():
  13459. r"""
  13460. Low-level wrapper for `::fz_user_context()`.
  13461. Read the user field from the context.
  13462. """
  13463. return _mupdf.ll_fz_user_context()
  13464. def ll_fz_user_css():
  13465. r"""
  13466. Low-level wrapper for `::fz_user_css()`.
  13467. Get the user stylesheet source text.
  13468. """
  13469. return _mupdf.ll_fz_user_css()
  13470. def ll_fz_utflen(s):
  13471. r"""
  13472. Low-level wrapper for `::fz_utflen()`.
  13473. Count how many runes the UTF-8 encoded string
  13474. consists of.
  13475. s: The UTF-8 encoded, NUL-terminated text string.
  13476. Returns the number of runes in the string.
  13477. """
  13478. return _mupdf.ll_fz_utflen(s)
  13479. def ll_fz_var_imp(arg_0):
  13480. r"""Low-level wrapper for `::fz_var_imp()`."""
  13481. return _mupdf.ll_fz_var_imp(arg_0)
  13482. def ll_fz_walk_path(path, walker, arg):
  13483. r"""
  13484. Low-level wrapper for `::fz_walk_path()`.
  13485. Walk the segments of a path, calling the
  13486. appropriate callback function from a given set for each
  13487. segment of the path.
  13488. path: The path to walk.
  13489. walker: The set of callback functions to use. The first
  13490. 4 callback pointers in the set must be non-NULL. The
  13491. subsequent ones can either be supplied, or can be left
  13492. as NULL, in which case the top 4 functions will be
  13493. called as appropriate to simulate them.
  13494. arg: An opaque argument passed in to each callback.
  13495. Exceptions will only be thrown if the underlying callback
  13496. functions throw them.
  13497. """
  13498. return _mupdf.ll_fz_walk_path(path, walker, arg)
  13499. def ll_fz_warn(*args):
  13500. r"""Low-level wrapper for `::fz_warn()`."""
  13501. return _mupdf.ll_fz_warn(*args)
  13502. def ll_fz_warning_callback(user):
  13503. r"""
  13504. Low-level wrapper for `::fz_warning_callback()`.
  13505. This function has out-params. Python/C# wrappers look like:
  13506. `ll_fz_warning_callback()` => `(fz_warning_cb *, void *user)`
  13507. Retrieve the currently set warning callback, or NULL if none
  13508. has been set. Optionally, if user is non-NULL, the user pointer
  13509. given when the warning callback was set is also passed back to
  13510. the caller.
  13511. """
  13512. return _mupdf.ll_fz_warning_callback(user)
  13513. def ll_fz_warp_pixmap(src, points, width, height):
  13514. r"""Low-level wrapper for `::fz_warp_pixmap()`."""
  13515. return _mupdf.ll_fz_warp_pixmap(src, points, width, height)
  13516. def ll_fz_windows_1250_from_unicode(u):
  13517. r"""Low-level wrapper for `::fz_windows_1250_from_unicode()`."""
  13518. return _mupdf.ll_fz_windows_1250_from_unicode(u)
  13519. def ll_fz_windows_1251_from_unicode(u):
  13520. r"""Low-level wrapper for `::fz_windows_1251_from_unicode()`."""
  13521. return _mupdf.ll_fz_windows_1251_from_unicode(u)
  13522. def ll_fz_windows_1252_from_unicode(u):
  13523. r"""Low-level wrapper for `::fz_windows_1252_from_unicode()`."""
  13524. return _mupdf.ll_fz_windows_1252_from_unicode(u)
  13525. def ll_fz_write_band(writer, stride, band_height, samples):
  13526. r"""
  13527. Low-level wrapper for `::fz_write_band()`.
  13528. Cause a band writer to write the next band
  13529. of data for an image.
  13530. stride: The byte offset from the first byte of the data
  13531. for a pixel to the first byte of the data for the same pixel
  13532. on the row below.
  13533. band_height: The number of lines in this band.
  13534. samples: Pointer to first byte of the data.
  13535. """
  13536. return _mupdf.ll_fz_write_band(writer, stride, band_height, samples)
  13537. def ll_fz_write_base64(out, data, size, newline):
  13538. r"""
  13539. Low-level wrapper for `::fz_write_base64()`.
  13540. Write a base64 encoded data block, optionally with periodic
  13541. newlines.
  13542. """
  13543. return _mupdf.ll_fz_write_base64(out, data, size, newline)
  13544. def ll_fz_write_base64_buffer(out, data, newline):
  13545. r"""
  13546. Low-level wrapper for `::fz_write_base64_buffer()`.
  13547. Write a base64 encoded fz_buffer, optionally with periodic
  13548. newlines.
  13549. """
  13550. return _mupdf.ll_fz_write_base64_buffer(out, data, newline)
  13551. def ll_fz_write_bitmap_as_pbm(out, bitmap):
  13552. r"""
  13553. Low-level wrapper for `::fz_write_bitmap_as_pbm()`.
  13554. Write a bitmap as a pbm.
  13555. """
  13556. return _mupdf.ll_fz_write_bitmap_as_pbm(out, bitmap)
  13557. def ll_fz_write_bitmap_as_pcl(out, bitmap, pcl):
  13558. r"""
  13559. Low-level wrapper for `::fz_write_bitmap_as_pcl()`.
  13560. Write a bitmap as mono PCL.
  13561. """
  13562. return _mupdf.ll_fz_write_bitmap_as_pcl(out, bitmap, pcl)
  13563. def ll_fz_write_bitmap_as_pkm(out, bitmap):
  13564. r"""
  13565. Low-level wrapper for `::fz_write_bitmap_as_pkm()`.
  13566. Write a CMYK bitmap as a pkm.
  13567. """
  13568. return _mupdf.ll_fz_write_bitmap_as_pkm(out, bitmap)
  13569. def ll_fz_write_bitmap_as_pwg(out, bitmap, pwg):
  13570. r"""
  13571. Low-level wrapper for `::fz_write_bitmap_as_pwg()`.
  13572. Write a bitmap as a PWG.
  13573. """
  13574. return _mupdf.ll_fz_write_bitmap_as_pwg(out, bitmap, pwg)
  13575. def ll_fz_write_bitmap_as_pwg_page(out, bitmap, pwg):
  13576. r"""
  13577. Low-level wrapper for `::fz_write_bitmap_as_pwg_page()`.
  13578. Write a bitmap as a PWG page.
  13579. Caller should provide a file header by calling
  13580. fz_write_pwg_file_header, but can then write several pages to
  13581. the same file.
  13582. """
  13583. return _mupdf.ll_fz_write_bitmap_as_pwg_page(out, bitmap, pwg)
  13584. def ll_fz_write_bits(out, data, num_bits):
  13585. r"""
  13586. Low-level wrapper for `::fz_write_bits()`.
  13587. Write num_bits of data to the end of the output stream, assumed to be packed
  13588. most significant bits first.
  13589. """
  13590. return _mupdf.ll_fz_write_bits(out, data, num_bits)
  13591. def ll_fz_write_bits_sync(out):
  13592. r"""
  13593. Low-level wrapper for `::fz_write_bits_sync()`.
  13594. Sync to byte boundary after writing bits.
  13595. """
  13596. return _mupdf.ll_fz_write_bits_sync(out)
  13597. def ll_fz_write_buffer(out, data):
  13598. r"""Low-level wrapper for `::fz_write_buffer()`."""
  13599. return _mupdf.ll_fz_write_buffer(out, data)
  13600. def ll_fz_write_byte(out, x):
  13601. r"""Low-level wrapper for `::fz_write_byte()`."""
  13602. return _mupdf.ll_fz_write_byte(out, x)
  13603. def ll_fz_write_char(out, x):
  13604. r"""Low-level wrapper for `::fz_write_char()`."""
  13605. return _mupdf.ll_fz_write_char(out, x)
  13606. def ll_fz_write_data(out, data, size):
  13607. r"""
  13608. Low-level wrapper for `::fz_write_data()`.
  13609. Write data to output.
  13610. data: Pointer to data to write.
  13611. size: Size of data to write in bytes.
  13612. """
  13613. return _mupdf.ll_fz_write_data(out, data, size)
  13614. def ll_fz_write_document(wri, doc):
  13615. r"""
  13616. Low-level wrapper for `::fz_write_document()`.
  13617. Convenience function to feed all the pages of a document to
  13618. fz_begin_page/fz_run_page/fz_end_page.
  13619. """
  13620. return _mupdf.ll_fz_write_document(wri, doc)
  13621. def ll_fz_write_float_be(out, f):
  13622. r"""Low-level wrapper for `::fz_write_float_be()`."""
  13623. return _mupdf.ll_fz_write_float_be(out, f)
  13624. def ll_fz_write_float_le(out, f):
  13625. r"""Low-level wrapper for `::fz_write_float_le()`."""
  13626. return _mupdf.ll_fz_write_float_le(out, f)
  13627. def ll_fz_write_header(writer, w, h, n, alpha, xres, yres, pagenum, cs, seps):
  13628. r"""
  13629. Low-level wrapper for `::fz_write_header()`.
  13630. Cause a band writer to write the header for
  13631. a banded image with the given properties/dimensions etc. This
  13632. also configures the bandwriter for the format of the data to be
  13633. passed in future calls.
  13634. w, h: Width and Height of the entire page.
  13635. n: Number of components (including spots and alphas).
  13636. alpha: Number of alpha components.
  13637. xres, yres: X and Y resolutions in dpi.
  13638. cs: Colorspace (NULL for bitmaps)
  13639. seps: Separation details (or NULL).
  13640. """
  13641. return _mupdf.ll_fz_write_header(writer, w, h, n, alpha, xres, yres, pagenum, cs, seps)
  13642. def ll_fz_write_image_as_data_uri(out, image):
  13643. r"""
  13644. Low-level wrapper for `::fz_write_image_as_data_uri()`.
  13645. Write image as a data URI (for HTML and SVG output).
  13646. """
  13647. return _mupdf.ll_fz_write_image_as_data_uri(out, image)
  13648. def ll_fz_write_int16_be(out, x):
  13649. r"""Low-level wrapper for `::fz_write_int16_be()`."""
  13650. return _mupdf.ll_fz_write_int16_be(out, x)
  13651. def ll_fz_write_int16_le(out, x):
  13652. r"""Low-level wrapper for `::fz_write_int16_le()`."""
  13653. return _mupdf.ll_fz_write_int16_le(out, x)
  13654. def ll_fz_write_int32_be(out, x):
  13655. r"""
  13656. Low-level wrapper for `::fz_write_int32_be()`.
  13657. Write different sized data to an output stream.
  13658. """
  13659. return _mupdf.ll_fz_write_int32_be(out, x)
  13660. def ll_fz_write_int32_le(out, x):
  13661. r"""Low-level wrapper for `::fz_write_int32_le()`."""
  13662. return _mupdf.ll_fz_write_int32_le(out, x)
  13663. def ll_fz_write_json(out, value):
  13664. r"""Low-level wrapper for `::fz_write_json()`."""
  13665. return _mupdf.ll_fz_write_json(out, value)
  13666. def ll_fz_write_pixmap_as_data_uri(out, pixmap):
  13667. r"""Low-level wrapper for `::fz_write_pixmap_as_data_uri()`."""
  13668. return _mupdf.ll_fz_write_pixmap_as_data_uri(out, pixmap)
  13669. def ll_fz_write_pixmap_as_jpeg(out, pix, quality, invert_cmyk):
  13670. r"""
  13671. Low-level wrapper for `::fz_write_pixmap_as_jpeg()`.
  13672. Write a pixmap as a JPEG.
  13673. """
  13674. return _mupdf.ll_fz_write_pixmap_as_jpeg(out, pix, quality, invert_cmyk)
  13675. def ll_fz_write_pixmap_as_jpx(out, pix, quality):
  13676. r"""
  13677. Low-level wrapper for `::fz_write_pixmap_as_jpx()`.
  13678. Pixmap data as JP2K with no subsampling.
  13679. quality = 100 = lossless
  13680. otherwise for a factor of x compression use 100-x. (so 80 is 1:20 compression)
  13681. """
  13682. return _mupdf.ll_fz_write_pixmap_as_jpx(out, pix, quality)
  13683. def ll_fz_write_pixmap_as_pam(out, pixmap):
  13684. r"""
  13685. Low-level wrapper for `::fz_write_pixmap_as_pam()`.
  13686. Write a pixmap as a pnm (greyscale, rgb or cmyk, with or without
  13687. alpha).
  13688. """
  13689. return _mupdf.ll_fz_write_pixmap_as_pam(out, pixmap)
  13690. def ll_fz_write_pixmap_as_pcl(out, pixmap, pcl):
  13691. r"""
  13692. Low-level wrapper for `::fz_write_pixmap_as_pcl()`.
  13693. Write an (RGB) pixmap as color PCL.
  13694. """
  13695. return _mupdf.ll_fz_write_pixmap_as_pcl(out, pixmap, pcl)
  13696. def ll_fz_write_pixmap_as_pclm(out, pixmap, options):
  13697. r"""
  13698. Low-level wrapper for `::fz_write_pixmap_as_pclm()`.
  13699. Write a (Greyscale or RGB) pixmap as pclm.
  13700. """
  13701. return _mupdf.ll_fz_write_pixmap_as_pclm(out, pixmap, options)
  13702. def ll_fz_write_pixmap_as_pdfocr(out, pixmap, options):
  13703. r"""
  13704. Low-level wrapper for `::fz_write_pixmap_as_pdfocr()`.
  13705. Write a (Greyscale or RGB) pixmap as pdfocr.
  13706. """
  13707. return _mupdf.ll_fz_write_pixmap_as_pdfocr(out, pixmap, options)
  13708. def ll_fz_write_pixmap_as_png(out, pixmap):
  13709. r"""
  13710. Low-level wrapper for `::fz_write_pixmap_as_png()`.
  13711. Write a (Greyscale or RGB) pixmap as a png.
  13712. """
  13713. return _mupdf.ll_fz_write_pixmap_as_png(out, pixmap)
  13714. def ll_fz_write_pixmap_as_pnm(out, pixmap):
  13715. r"""
  13716. Low-level wrapper for `::fz_write_pixmap_as_pnm()`.
  13717. Write a pixmap as a pnm (greyscale or rgb, no alpha).
  13718. """
  13719. return _mupdf.ll_fz_write_pixmap_as_pnm(out, pixmap)
  13720. def ll_fz_write_pixmap_as_ps(out, pixmap):
  13721. r"""
  13722. Low-level wrapper for `::fz_write_pixmap_as_ps()`.
  13723. Write a (gray, rgb, or cmyk, no alpha) pixmap out as postscript.
  13724. """
  13725. return _mupdf.ll_fz_write_pixmap_as_ps(out, pixmap)
  13726. def ll_fz_write_pixmap_as_psd(out, pixmap):
  13727. r"""
  13728. Low-level wrapper for `::fz_write_pixmap_as_psd()`.
  13729. Write a pixmap as a PSD file.
  13730. """
  13731. return _mupdf.ll_fz_write_pixmap_as_psd(out, pixmap)
  13732. def ll_fz_write_pixmap_as_pwg(out, pixmap, pwg):
  13733. r"""
  13734. Low-level wrapper for `::fz_write_pixmap_as_pwg()`.
  13735. Write a pixmap as a PWG.
  13736. """
  13737. return _mupdf.ll_fz_write_pixmap_as_pwg(out, pixmap, pwg)
  13738. def ll_fz_write_pixmap_as_pwg_page(out, pixmap, pwg):
  13739. r"""
  13740. Low-level wrapper for `::fz_write_pixmap_as_pwg_page()`.
  13741. Write a pixmap as a PWG page.
  13742. Caller should provide a file header by calling
  13743. fz_write_pwg_file_header, but can then write several pages to
  13744. the same file.
  13745. """
  13746. return _mupdf.ll_fz_write_pixmap_as_pwg_page(out, pixmap, pwg)
  13747. def ll_fz_write_ps_file_header(out):
  13748. r"""
  13749. Low-level wrapper for `::fz_write_ps_file_header()`.
  13750. Write the file level header for ps band writer output.
  13751. """
  13752. return _mupdf.ll_fz_write_ps_file_header(out)
  13753. def ll_fz_write_ps_file_trailer(out, pages):
  13754. r"""
  13755. Low-level wrapper for `::fz_write_ps_file_trailer()`.
  13756. Write the file level trailer for ps band writer output.
  13757. """
  13758. return _mupdf.ll_fz_write_ps_file_trailer(out, pages)
  13759. def ll_fz_write_pwg_file_header(out):
  13760. r"""
  13761. Low-level wrapper for `::fz_write_pwg_file_header()`.
  13762. Output the file header to a pwg stream, ready for pages to follow it.
  13763. """
  13764. return _mupdf.ll_fz_write_pwg_file_header(out)
  13765. def ll_fz_write_rune(out, rune):
  13766. r"""
  13767. Low-level wrapper for `::fz_write_rune()`.
  13768. Write a UTF-8 encoded unicode character.
  13769. """
  13770. return _mupdf.ll_fz_write_rune(out, rune)
  13771. def ll_fz_write_stabilized_story(writer, user_css, em, contentfn, contentfn_ref, rectfn, rectfn_ref, pagefn, pagefn_ref, dir):
  13772. r"""Low-level wrapper for `::fz_write_stabilized_story()`."""
  13773. return _mupdf.ll_fz_write_stabilized_story(writer, user_css, em, contentfn, contentfn_ref, rectfn, rectfn_ref, pagefn, pagefn_ref, dir)
  13774. def ll_fz_write_story(writer, story, rectfn, rectfn_ref, positionfn, positionfn_ref, pagefn, pagefn_ref):
  13775. r"""Low-level wrapper for `::fz_write_story()`."""
  13776. return _mupdf.ll_fz_write_story(writer, story, rectfn, rectfn_ref, positionfn, positionfn_ref, pagefn, pagefn_ref)
  13777. def ll_fz_write_stream(out, _in):
  13778. r"""
  13779. Low-level wrapper for `::fz_write_stream()`.
  13780. Copy the stream contents to the output.
  13781. """
  13782. return _mupdf.ll_fz_write_stream(out, _in)
  13783. def ll_fz_write_string(out, s):
  13784. r"""
  13785. Low-level wrapper for `::fz_write_string()`.
  13786. Write a string. Does not write zero terminator.
  13787. """
  13788. return _mupdf.ll_fz_write_string(out, s)
  13789. def ll_fz_write_uint16_be(out, x):
  13790. r"""Low-level wrapper for `::fz_write_uint16_be()`."""
  13791. return _mupdf.ll_fz_write_uint16_be(out, x)
  13792. def ll_fz_write_uint16_le(out, x):
  13793. r"""Low-level wrapper for `::fz_write_uint16_le()`."""
  13794. return _mupdf.ll_fz_write_uint16_le(out, x)
  13795. def ll_fz_write_uint32_be(out, x):
  13796. r"""Low-level wrapper for `::fz_write_uint32_be()`."""
  13797. return _mupdf.ll_fz_write_uint32_be(out, x)
  13798. def ll_fz_write_uint32_le(out, x):
  13799. r"""Low-level wrapper for `::fz_write_uint32_le()`."""
  13800. return _mupdf.ll_fz_write_uint32_le(out, x)
  13801. def ll_fz_write_xml(root, out, indented):
  13802. r"""
  13803. Low-level wrapper for `::fz_write_xml()`.
  13804. Write our xml structure out to an xml stream.
  13805. Properly formatted XML is only allowed to have a single top-level node
  13806. under which everything must sit. Our structures allow for multiple
  13807. top level nodes. If required, we will output an extra 'ROOT' node
  13808. at the top so that the xml is well-formed.
  13809. If 'indented' is non-zero then additional whitespace will be added to
  13810. make the XML easier to read in a text editor. It will NOT be properly
  13811. compliant.
  13812. """
  13813. return _mupdf.ll_fz_write_xml(root, out, indented)
  13814. def ll_fz_write_zip_entry(zip, name, buf, compress):
  13815. r"""
  13816. Low-level wrapper for `::fz_write_zip_entry()`.
  13817. Given a buffer of data, (optionally) compress it, and add it to
  13818. the zip file with the given name.
  13819. """
  13820. return _mupdf.ll_fz_write_zip_entry(zip, name, buf, compress)
  13821. def ll_fz_xml_add_att(pool, node, key, val):
  13822. r"""
  13823. Low-level wrapper for `::fz_xml_add_att()`.
  13824. Add an attribute to an XML node.
  13825. """
  13826. return _mupdf.ll_fz_xml_add_att(pool, node, key, val)
  13827. def ll_fz_xml_att(item, att):
  13828. r"""
  13829. Low-level wrapper for `::fz_xml_att()`.
  13830. Return the value of an attribute of an XML node.
  13831. NULL if the attribute doesn't exist.
  13832. """
  13833. return _mupdf.ll_fz_xml_att(item, att)
  13834. def ll_fz_xml_att_alt(item, one, two):
  13835. r"""
  13836. Low-level wrapper for `::fz_xml_att_alt()`.
  13837. Return the value of an attribute of an XML node.
  13838. If the first attribute doesn't exist, try the second.
  13839. NULL if neither attribute exists.
  13840. """
  13841. return _mupdf.ll_fz_xml_att_alt(item, one, two)
  13842. def ll_fz_xml_att_eq(item, name, match):
  13843. r"""
  13844. Low-level wrapper for `::fz_xml_att_eq()`.
  13845. Check for a matching attribute on an XML node.
  13846. If the node has the requested attribute (name), and the value
  13847. matches (match) then return 1. Otherwise, 0.
  13848. """
  13849. return _mupdf.ll_fz_xml_att_eq(item, name, match)
  13850. def ll_fz_xml_down(item):
  13851. r"""
  13852. Low-level wrapper for `::fz_xml_down()`.
  13853. Return first child of XML node.
  13854. """
  13855. return _mupdf.ll_fz_xml_down(item)
  13856. def ll_fz_xml_find(item, tag):
  13857. r"""
  13858. Low-level wrapper for `::fz_xml_find()`.
  13859. Search the siblings of XML nodes starting with item looking for
  13860. the first with the given tag.
  13861. Return NULL if none found.
  13862. """
  13863. return _mupdf.ll_fz_xml_find(item, tag)
  13864. def ll_fz_xml_find_dfs(item, tag, att, match):
  13865. r"""
  13866. Low-level wrapper for `::fz_xml_find_dfs()`.
  13867. Perform a depth first search from item, returning the first
  13868. child that matches the given tag (or any tag if tag is NULL),
  13869. with the given attribute (if att is non NULL), that matches
  13870. match (if match is non NULL).
  13871. """
  13872. return _mupdf.ll_fz_xml_find_dfs(item, tag, att, match)
  13873. def ll_fz_xml_find_dfs_top(item, tag, att, match, top):
  13874. r"""
  13875. Low-level wrapper for `::fz_xml_find_dfs_top()`.
  13876. Perform a depth first search from item, returning the first
  13877. child that matches the given tag (or any tag if tag is NULL),
  13878. with the given attribute (if att is non NULL), that matches
  13879. match (if match is non NULL). The search stops if it ever
  13880. reaches the top of the tree, or the declared 'top' item.
  13881. """
  13882. return _mupdf.ll_fz_xml_find_dfs_top(item, tag, att, match, top)
  13883. def ll_fz_xml_find_down(item, tag):
  13884. r"""
  13885. Low-level wrapper for `::fz_xml_find_down()`.
  13886. Search the siblings of XML nodes starting with the first child
  13887. of item looking for the first with the given tag.
  13888. Return NULL if none found.
  13889. """
  13890. return _mupdf.ll_fz_xml_find_down(item, tag)
  13891. def ll_fz_xml_find_down_match(item, tag, att, match):
  13892. r"""
  13893. Low-level wrapper for `::fz_xml_find_down_match()`.
  13894. Search the siblings of XML nodes starting with the first child
  13895. of item looking for the first with the given tag (or any tag if
  13896. tag is NULL), and with a matching attribute.
  13897. Return NULL if none found.
  13898. """
  13899. return _mupdf.ll_fz_xml_find_down_match(item, tag, att, match)
  13900. def ll_fz_xml_find_match(item, tag, att, match):
  13901. r"""
  13902. Low-level wrapper for `::fz_xml_find_match()`.
  13903. Search the siblings of XML nodes starting with item looking for
  13904. the first with the given tag (or any tag if tag is NULL), and
  13905. with a matching attribute.
  13906. Return NULL if none found.
  13907. """
  13908. return _mupdf.ll_fz_xml_find_match(item, tag, att, match)
  13909. def ll_fz_xml_find_next(item, tag):
  13910. r"""
  13911. Low-level wrapper for `::fz_xml_find_next()`.
  13912. Search the siblings of XML nodes starting with the first sibling
  13913. of item looking for the first with the given tag.
  13914. Return NULL if none found.
  13915. """
  13916. return _mupdf.ll_fz_xml_find_next(item, tag)
  13917. def ll_fz_xml_find_next_dfs(item, tag, att, match):
  13918. r"""
  13919. Low-level wrapper for `::fz_xml_find_next_dfs()`.
  13920. Perform a depth first search onwards from item, returning the first
  13921. child that matches the given tag (or any tag if tag is NULL),
  13922. with the given attribute (if att is non NULL), that matches
  13923. match (if match is non NULL).
  13924. """
  13925. return _mupdf.ll_fz_xml_find_next_dfs(item, tag, att, match)
  13926. def ll_fz_xml_find_next_dfs_top(item, tag, att, match, top):
  13927. r"""
  13928. Low-level wrapper for `::fz_xml_find_next_dfs_top()`.
  13929. Perform a depth first search onwards from item, returning the first
  13930. child that matches the given tag (or any tag if tag is NULL),
  13931. with the given attribute (if att is non NULL), that matches
  13932. match (if match is non NULL). The search stops if it ever reaches
  13933. the top of the tree, or the declared 'top' item.
  13934. """
  13935. return _mupdf.ll_fz_xml_find_next_dfs_top(item, tag, att, match, top)
  13936. def ll_fz_xml_find_next_match(item, tag, att, match):
  13937. r"""
  13938. Low-level wrapper for `::fz_xml_find_next_match()`.
  13939. Search the siblings of XML nodes starting with the first sibling
  13940. of item looking for the first with the given tag (or any tag if tag
  13941. is NULL), and with a matching attribute.
  13942. Return NULL if none found.
  13943. """
  13944. return _mupdf.ll_fz_xml_find_next_match(item, tag, att, match)
  13945. def ll_fz_xml_is_tag(item, name):
  13946. r"""
  13947. Low-level wrapper for `::fz_xml_is_tag()`.
  13948. Return true if the tag name matches.
  13949. """
  13950. return _mupdf.ll_fz_xml_is_tag(item, name)
  13951. def ll_fz_xml_next(item):
  13952. r"""
  13953. Low-level wrapper for `::fz_xml_next()`.
  13954. Return next sibling of XML node.
  13955. """
  13956. return _mupdf.ll_fz_xml_next(item)
  13957. def ll_fz_xml_prev(item):
  13958. r"""
  13959. Low-level wrapper for `::fz_xml_prev()`.
  13960. Return previous sibling of XML node.
  13961. """
  13962. return _mupdf.ll_fz_xml_prev(item)
  13963. def ll_fz_xml_root(xml):
  13964. r"""
  13965. Low-level wrapper for `::fz_xml_root()`.
  13966. Return the topmost XML node of a document.
  13967. """
  13968. return _mupdf.ll_fz_xml_root(xml)
  13969. def ll_fz_xml_tag(item):
  13970. r"""
  13971. Low-level wrapper for `::fz_xml_tag()`.
  13972. Return tag of XML node. Return NULL for text nodes.
  13973. """
  13974. return _mupdf.ll_fz_xml_tag(item)
  13975. def ll_fz_xml_text(item):
  13976. r"""
  13977. Low-level wrapper for `::fz_xml_text()`.
  13978. Return the text content of an XML node.
  13979. Return NULL if the node is a tag.
  13980. """
  13981. return _mupdf.ll_fz_xml_text(item)
  13982. def ll_fz_xml_up(item):
  13983. r"""
  13984. Low-level wrapper for `::fz_xml_up()`.
  13985. Return parent of XML node.
  13986. """
  13987. return _mupdf.ll_fz_xml_up(item)
  13988. def ll_pdf_abandon_operation(doc):
  13989. r"""Low-level wrapper for `::pdf_abandon_operation()`."""
  13990. return _mupdf.ll_pdf_abandon_operation(doc)
  13991. def ll_pdf_access_alert_event(evt):
  13992. r"""Low-level wrapper for `::pdf_access_alert_event()`."""
  13993. return _mupdf.ll_pdf_access_alert_event(evt)
  13994. def ll_pdf_access_exec_menu_item_event(evt):
  13995. r"""Low-level wrapper for `::pdf_access_exec_menu_item_event()`."""
  13996. return _mupdf.ll_pdf_access_exec_menu_item_event(evt)
  13997. def ll_pdf_access_launch_url_event(evt):
  13998. r"""Low-level wrapper for `::pdf_access_launch_url_event()`."""
  13999. return _mupdf.ll_pdf_access_launch_url_event(evt)
  14000. def ll_pdf_access_mail_doc_event(evt):
  14001. r"""Low-level wrapper for `::pdf_access_mail_doc_event()`."""
  14002. return _mupdf.ll_pdf_access_mail_doc_event(evt)
  14003. def ll_pdf_add_annot_border_dash_item(annot, length):
  14004. r"""Low-level wrapper for `::pdf_add_annot_border_dash_item()`."""
  14005. return _mupdf.ll_pdf_add_annot_border_dash_item(annot, length)
  14006. def ll_pdf_add_annot_ink_list(annot, n, stroke):
  14007. r"""Low-level wrapper for `::pdf_add_annot_ink_list()`."""
  14008. return _mupdf.ll_pdf_add_annot_ink_list(annot, n, stroke)
  14009. def ll_pdf_add_annot_ink_list_stroke(annot):
  14010. r"""Low-level wrapper for `::pdf_add_annot_ink_list_stroke()`."""
  14011. return _mupdf.ll_pdf_add_annot_ink_list_stroke(annot)
  14012. def ll_pdf_add_annot_ink_list_stroke_vertex(annot, p):
  14013. r"""Low-level wrapper for `::pdf_add_annot_ink_list_stroke_vertex()`."""
  14014. return _mupdf.ll_pdf_add_annot_ink_list_stroke_vertex(annot, p)
  14015. def ll_pdf_add_annot_quad_point(annot, quad):
  14016. r"""Low-level wrapper for `::pdf_add_annot_quad_point()`."""
  14017. return _mupdf.ll_pdf_add_annot_quad_point(annot, quad)
  14018. def ll_pdf_add_annot_vertex(annot, p):
  14019. r"""Low-level wrapper for `::pdf_add_annot_vertex()`."""
  14020. return _mupdf.ll_pdf_add_annot_vertex(annot, p)
  14021. def ll_pdf_add_cid_font(doc, font):
  14022. r"""Low-level wrapper for `::pdf_add_cid_font()`."""
  14023. return _mupdf.ll_pdf_add_cid_font(doc, font)
  14024. def ll_pdf_add_cjk_font(doc, font, script, wmode, serif):
  14025. r"""Low-level wrapper for `::pdf_add_cjk_font()`."""
  14026. return _mupdf.ll_pdf_add_cjk_font(doc, font, script, wmode, serif)
  14027. def ll_pdf_add_codespace(cmap, low, high, n):
  14028. r"""Low-level wrapper for `::pdf_add_codespace()`."""
  14029. return _mupdf.ll_pdf_add_codespace(cmap, low, high, n)
  14030. def ll_pdf_add_colorspace(doc, cs):
  14031. r"""Low-level wrapper for `::pdf_add_colorspace()`."""
  14032. return _mupdf.ll_pdf_add_colorspace(doc, cs)
  14033. def ll_pdf_add_embedded_file(doc, filename, mimetype, contents, created, modified, add_checksum):
  14034. r"""Low-level wrapper for `::pdf_add_embedded_file()`."""
  14035. return _mupdf.ll_pdf_add_embedded_file(doc, filename, mimetype, contents, created, modified, add_checksum)
  14036. def ll_pdf_add_hmtx(font, lo, hi, w):
  14037. r"""Low-level wrapper for `::pdf_add_hmtx()`."""
  14038. return _mupdf.ll_pdf_add_hmtx(font, lo, hi, w)
  14039. def ll_pdf_add_image(doc, image):
  14040. r"""Low-level wrapper for `::pdf_add_image()`."""
  14041. return _mupdf.ll_pdf_add_image(doc, image)
  14042. def ll_pdf_add_journal_fragment(doc, parent, copy, copy_stream, newobj):
  14043. r"""Low-level wrapper for `::pdf_add_journal_fragment()`."""
  14044. return _mupdf.ll_pdf_add_journal_fragment(doc, parent, copy, copy_stream, newobj)
  14045. def ll_pdf_add_new_array(doc, initial):
  14046. r"""Low-level wrapper for `::pdf_add_new_array()`."""
  14047. return _mupdf.ll_pdf_add_new_array(doc, initial)
  14048. def ll_pdf_add_new_dict(doc, initial):
  14049. r"""Low-level wrapper for `::pdf_add_new_dict()`."""
  14050. return _mupdf.ll_pdf_add_new_dict(doc, initial)
  14051. def ll_pdf_add_object(doc, obj):
  14052. r"""Low-level wrapper for `::pdf_add_object()`."""
  14053. return _mupdf.ll_pdf_add_object(doc, obj)
  14054. def ll_pdf_add_object_drop(doc, obj):
  14055. r"""Low-level wrapper for `::pdf_add_object_drop()`."""
  14056. return _mupdf.ll_pdf_add_object_drop(doc, obj)
  14057. def ll_pdf_add_page(doc, mediabox, rotate, resources, contents):
  14058. r"""Low-level wrapper for `::pdf_add_page()`."""
  14059. return _mupdf.ll_pdf_add_page(doc, mediabox, rotate, resources, contents)
  14060. def ll_pdf_add_simple_font(doc, font, encoding):
  14061. r"""Low-level wrapper for `::pdf_add_simple_font()`."""
  14062. return _mupdf.ll_pdf_add_simple_font(doc, font, encoding)
  14063. def ll_pdf_add_stream(doc, buf, obj, compressed):
  14064. r"""Low-level wrapper for `::pdf_add_stream()`."""
  14065. return _mupdf.ll_pdf_add_stream(doc, buf, obj, compressed)
  14066. def ll_pdf_add_substitute_font(doc, font):
  14067. r"""Low-level wrapper for `::pdf_add_substitute_font()`."""
  14068. return _mupdf.ll_pdf_add_substitute_font(doc, font)
  14069. def ll_pdf_add_vmtx(font, lo, hi, x, y, w):
  14070. r"""Low-level wrapper for `::pdf_add_vmtx()`."""
  14071. return _mupdf.ll_pdf_add_vmtx(font, lo, hi, x, y, w)
  14072. def ll_pdf_annot_MK_BC(annot, n, color):
  14073. r"""
  14074. Low-level wrapper for `::pdf_annot_MK_BC()`.
  14075. This function has out-params. Python/C# wrappers look like:
  14076. `ll_pdf_annot_MK_BC(::pdf_annot *annot, float color[4])` => int n
  14077. """
  14078. return _mupdf.ll_pdf_annot_MK_BC(annot, n, color)
  14079. def ll_pdf_annot_MK_BC_rgb(annot, rgb):
  14080. r"""Low-level wrapper for `::pdf_annot_MK_BC_rgb()`."""
  14081. return _mupdf.ll_pdf_annot_MK_BC_rgb(annot, rgb)
  14082. def ll_pdf_annot_MK_BG(annot, n, color):
  14083. r"""
  14084. Low-level wrapper for `::pdf_annot_MK_BG()`.
  14085. This function has out-params. Python/C# wrappers look like:
  14086. `ll_pdf_annot_MK_BG(::pdf_annot *annot, float color[4])` => int n
  14087. """
  14088. return _mupdf.ll_pdf_annot_MK_BG(annot, n, color)
  14089. def ll_pdf_annot_MK_BG_rgb(annot, rgb):
  14090. r"""Low-level wrapper for `::pdf_annot_MK_BG_rgb()`."""
  14091. return _mupdf.ll_pdf_annot_MK_BG_rgb(annot, rgb)
  14092. def ll_pdf_annot_active(annot):
  14093. r"""Low-level wrapper for `::pdf_annot_active()`."""
  14094. return _mupdf.ll_pdf_annot_active(annot)
  14095. def ll_pdf_annot_ap(annot):
  14096. r"""Low-level wrapper for `::pdf_annot_ap()`."""
  14097. return _mupdf.ll_pdf_annot_ap(annot)
  14098. def ll_pdf_annot_author(annot):
  14099. r"""Low-level wrapper for `::pdf_annot_author()`."""
  14100. return _mupdf.ll_pdf_annot_author(annot)
  14101. def ll_pdf_annot_border(annot):
  14102. r"""Low-level wrapper for `::pdf_annot_border()`."""
  14103. return _mupdf.ll_pdf_annot_border(annot)
  14104. def ll_pdf_annot_border_dash_count(annot):
  14105. r"""Low-level wrapper for `::pdf_annot_border_dash_count()`."""
  14106. return _mupdf.ll_pdf_annot_border_dash_count(annot)
  14107. def ll_pdf_annot_border_dash_item(annot, i):
  14108. r"""Low-level wrapper for `::pdf_annot_border_dash_item()`."""
  14109. return _mupdf.ll_pdf_annot_border_dash_item(annot, i)
  14110. def ll_pdf_annot_border_effect(annot):
  14111. r"""Low-level wrapper for `::pdf_annot_border_effect()`."""
  14112. return _mupdf.ll_pdf_annot_border_effect(annot)
  14113. def ll_pdf_annot_border_effect_intensity(annot):
  14114. r"""Low-level wrapper for `::pdf_annot_border_effect_intensity()`."""
  14115. return _mupdf.ll_pdf_annot_border_effect_intensity(annot)
  14116. def ll_pdf_annot_border_style(annot):
  14117. r"""Low-level wrapper for `::pdf_annot_border_style()`."""
  14118. return _mupdf.ll_pdf_annot_border_style(annot)
  14119. def ll_pdf_annot_border_width(annot):
  14120. r"""Low-level wrapper for `::pdf_annot_border_width()`."""
  14121. return _mupdf.ll_pdf_annot_border_width(annot)
  14122. def ll_pdf_annot_callout_line(annot, callout, n):
  14123. r"""
  14124. Low-level wrapper for `::pdf_annot_callout_line()`.
  14125. This function has out-params. Python/C# wrappers look like:
  14126. `ll_pdf_annot_callout_line(::pdf_annot *annot, ::fz_point callout[3])` => int n
  14127. """
  14128. return _mupdf.ll_pdf_annot_callout_line(annot, callout, n)
  14129. def ll_pdf_annot_callout_point(annot):
  14130. r"""Low-level wrapper for `::pdf_annot_callout_point()`."""
  14131. return _mupdf.ll_pdf_annot_callout_point(annot)
  14132. def ll_pdf_annot_callout_style(annot):
  14133. r"""Low-level wrapper for `::pdf_annot_callout_style()`."""
  14134. return _mupdf.ll_pdf_annot_callout_style(annot)
  14135. def ll_pdf_annot_color(annot, n, color):
  14136. r"""
  14137. Low-level wrapper for `::pdf_annot_color()`.
  14138. This function has out-params. Python/C# wrappers look like:
  14139. `ll_pdf_annot_color(::pdf_annot *annot, float color[4])` => int n
  14140. """
  14141. return _mupdf.ll_pdf_annot_color(annot, n, color)
  14142. def ll_pdf_annot_contents(annot):
  14143. r"""Low-level wrapper for `::pdf_annot_contents()`."""
  14144. return _mupdf.ll_pdf_annot_contents(annot)
  14145. def ll_pdf_annot_creation_date(annot):
  14146. r"""Low-level wrapper for `::pdf_annot_creation_date()`."""
  14147. return _mupdf.ll_pdf_annot_creation_date(annot)
  14148. def ll_pdf_annot_default_appearance(annot, font, size, n, color):
  14149. r"""
  14150. Low-level wrapper for `::pdf_annot_default_appearance()`.
  14151. This function has out-params. Python/C# wrappers look like:
  14152. `ll_pdf_annot_default_appearance(::pdf_annot *annot, float color[4])` => `(const char *font, float size, int n)`
  14153. """
  14154. return _mupdf.ll_pdf_annot_default_appearance(annot, font, size, n, color)
  14155. def ll_pdf_annot_default_appearance_unmapped(annot, font_name, font_name_len, size, n, color):
  14156. r"""
  14157. Low-level wrapper for `::pdf_annot_default_appearance_unmapped()`.
  14158. This function has out-params. Python/C# wrappers look like:
  14159. `ll_pdf_annot_default_appearance_unmapped(::pdf_annot *annot, char *font_name, int font_name_len, float color[4])` => `(float size, int n)`
  14160. """
  14161. return _mupdf.ll_pdf_annot_default_appearance_unmapped(annot, font_name, font_name_len, size, n, color)
  14162. def ll_pdf_annot_ensure_local_xref(annot):
  14163. r"""Low-level wrapper for `::pdf_annot_ensure_local_xref()`."""
  14164. return _mupdf.ll_pdf_annot_ensure_local_xref(annot)
  14165. def ll_pdf_annot_event_blur(annot):
  14166. r"""Low-level wrapper for `::pdf_annot_event_blur()`."""
  14167. return _mupdf.ll_pdf_annot_event_blur(annot)
  14168. def ll_pdf_annot_event_down(annot):
  14169. r"""Low-level wrapper for `::pdf_annot_event_down()`."""
  14170. return _mupdf.ll_pdf_annot_event_down(annot)
  14171. def ll_pdf_annot_event_enter(annot):
  14172. r"""Low-level wrapper for `::pdf_annot_event_enter()`."""
  14173. return _mupdf.ll_pdf_annot_event_enter(annot)
  14174. def ll_pdf_annot_event_exit(annot):
  14175. r"""Low-level wrapper for `::pdf_annot_event_exit()`."""
  14176. return _mupdf.ll_pdf_annot_event_exit(annot)
  14177. def ll_pdf_annot_event_focus(annot):
  14178. r"""Low-level wrapper for `::pdf_annot_event_focus()`."""
  14179. return _mupdf.ll_pdf_annot_event_focus(annot)
  14180. def ll_pdf_annot_event_page_close(annot):
  14181. r"""Low-level wrapper for `::pdf_annot_event_page_close()`."""
  14182. return _mupdf.ll_pdf_annot_event_page_close(annot)
  14183. def ll_pdf_annot_event_page_invisible(annot):
  14184. r"""Low-level wrapper for `::pdf_annot_event_page_invisible()`."""
  14185. return _mupdf.ll_pdf_annot_event_page_invisible(annot)
  14186. def ll_pdf_annot_event_page_open(annot):
  14187. r"""Low-level wrapper for `::pdf_annot_event_page_open()`."""
  14188. return _mupdf.ll_pdf_annot_event_page_open(annot)
  14189. def ll_pdf_annot_event_page_visible(annot):
  14190. r"""Low-level wrapper for `::pdf_annot_event_page_visible()`."""
  14191. return _mupdf.ll_pdf_annot_event_page_visible(annot)
  14192. def ll_pdf_annot_event_up(annot):
  14193. r"""Low-level wrapper for `::pdf_annot_event_up()`."""
  14194. return _mupdf.ll_pdf_annot_event_up(annot)
  14195. def ll_pdf_annot_field_event_keystroke(doc, annot, evt):
  14196. r"""Low-level wrapper for `::pdf_annot_field_event_keystroke()`."""
  14197. return _mupdf.ll_pdf_annot_field_event_keystroke(doc, annot, evt)
  14198. def ll_pdf_annot_field_flags(annot):
  14199. r"""Low-level wrapper for `::pdf_annot_field_flags()`."""
  14200. return _mupdf.ll_pdf_annot_field_flags(annot)
  14201. def ll_pdf_annot_field_label(widget):
  14202. r"""Low-level wrapper for `::pdf_annot_field_label()`."""
  14203. return _mupdf.ll_pdf_annot_field_label(widget)
  14204. def ll_pdf_annot_field_value(annot):
  14205. r"""Low-level wrapper for `::pdf_annot_field_value()`."""
  14206. return _mupdf.ll_pdf_annot_field_value(annot)
  14207. def ll_pdf_annot_filespec(annot):
  14208. r"""Low-level wrapper for `::pdf_annot_filespec()`."""
  14209. return _mupdf.ll_pdf_annot_filespec(annot)
  14210. def ll_pdf_annot_flags(annot):
  14211. r"""Low-level wrapper for `::pdf_annot_flags()`."""
  14212. return _mupdf.ll_pdf_annot_flags(annot)
  14213. def ll_pdf_annot_has_author(annot):
  14214. r"""Low-level wrapper for `::pdf_annot_has_author()`."""
  14215. return _mupdf.ll_pdf_annot_has_author(annot)
  14216. def ll_pdf_annot_has_border(annot):
  14217. r"""Low-level wrapper for `::pdf_annot_has_border()`."""
  14218. return _mupdf.ll_pdf_annot_has_border(annot)
  14219. def ll_pdf_annot_has_border_effect(annot):
  14220. r"""Low-level wrapper for `::pdf_annot_has_border_effect()`."""
  14221. return _mupdf.ll_pdf_annot_has_border_effect(annot)
  14222. def ll_pdf_annot_has_callout(annot):
  14223. r"""Low-level wrapper for `::pdf_annot_has_callout()`."""
  14224. return _mupdf.ll_pdf_annot_has_callout(annot)
  14225. def ll_pdf_annot_has_default_appearance(annot):
  14226. r"""Low-level wrapper for `::pdf_annot_has_default_appearance()`."""
  14227. return _mupdf.ll_pdf_annot_has_default_appearance(annot)
  14228. def ll_pdf_annot_has_filespec(annot):
  14229. r"""Low-level wrapper for `::pdf_annot_has_filespec()`."""
  14230. return _mupdf.ll_pdf_annot_has_filespec(annot)
  14231. def ll_pdf_annot_has_icon_name(annot):
  14232. r"""Low-level wrapper for `::pdf_annot_has_icon_name()`."""
  14233. return _mupdf.ll_pdf_annot_has_icon_name(annot)
  14234. def ll_pdf_annot_has_ink_list(annot):
  14235. r"""Low-level wrapper for `::pdf_annot_has_ink_list()`."""
  14236. return _mupdf.ll_pdf_annot_has_ink_list(annot)
  14237. def ll_pdf_annot_has_intent(annot):
  14238. r"""Low-level wrapper for `::pdf_annot_has_intent()`."""
  14239. return _mupdf.ll_pdf_annot_has_intent(annot)
  14240. def ll_pdf_annot_has_interior_color(annot):
  14241. r"""Low-level wrapper for `::pdf_annot_has_interior_color()`."""
  14242. return _mupdf.ll_pdf_annot_has_interior_color(annot)
  14243. def ll_pdf_annot_has_line(annot):
  14244. r"""Low-level wrapper for `::pdf_annot_has_line()`."""
  14245. return _mupdf.ll_pdf_annot_has_line(annot)
  14246. def ll_pdf_annot_has_line_ending_styles(annot):
  14247. r"""Low-level wrapper for `::pdf_annot_has_line_ending_styles()`."""
  14248. return _mupdf.ll_pdf_annot_has_line_ending_styles(annot)
  14249. def ll_pdf_annot_has_open(annot):
  14250. r"""Low-level wrapper for `::pdf_annot_has_open()`."""
  14251. return _mupdf.ll_pdf_annot_has_open(annot)
  14252. def ll_pdf_annot_has_popup(annot):
  14253. r"""Low-level wrapper for `::pdf_annot_has_popup()`."""
  14254. return _mupdf.ll_pdf_annot_has_popup(annot)
  14255. def ll_pdf_annot_has_quad_points(annot):
  14256. r"""Low-level wrapper for `::pdf_annot_has_quad_points()`."""
  14257. return _mupdf.ll_pdf_annot_has_quad_points(annot)
  14258. def ll_pdf_annot_has_quadding(annot):
  14259. r"""Low-level wrapper for `::pdf_annot_has_quadding()`."""
  14260. return _mupdf.ll_pdf_annot_has_quadding(annot)
  14261. def ll_pdf_annot_has_rect(annot):
  14262. r"""Low-level wrapper for `::pdf_annot_has_rect()`."""
  14263. return _mupdf.ll_pdf_annot_has_rect(annot)
  14264. def ll_pdf_annot_has_rich_contents(annot):
  14265. r"""Low-level wrapper for `::pdf_annot_has_rich_contents()`."""
  14266. return _mupdf.ll_pdf_annot_has_rich_contents(annot)
  14267. def ll_pdf_annot_has_rich_defaults(annot):
  14268. r"""Low-level wrapper for `::pdf_annot_has_rich_defaults()`."""
  14269. return _mupdf.ll_pdf_annot_has_rich_defaults(annot)
  14270. def ll_pdf_annot_has_vertices(annot):
  14271. r"""Low-level wrapper for `::pdf_annot_has_vertices()`."""
  14272. return _mupdf.ll_pdf_annot_has_vertices(annot)
  14273. def ll_pdf_annot_hidden_for_editing(annot):
  14274. r"""Low-level wrapper for `::pdf_annot_hidden_for_editing()`."""
  14275. return _mupdf.ll_pdf_annot_hidden_for_editing(annot)
  14276. def ll_pdf_annot_hot(annot):
  14277. r"""Low-level wrapper for `::pdf_annot_hot()`."""
  14278. return _mupdf.ll_pdf_annot_hot(annot)
  14279. def ll_pdf_annot_icon_name(annot):
  14280. r"""Low-level wrapper for `::pdf_annot_icon_name()`."""
  14281. return _mupdf.ll_pdf_annot_icon_name(annot)
  14282. def ll_pdf_annot_ink_list_count(annot):
  14283. r"""Low-level wrapper for `::pdf_annot_ink_list_count()`."""
  14284. return _mupdf.ll_pdf_annot_ink_list_count(annot)
  14285. def ll_pdf_annot_ink_list_stroke_count(annot, i):
  14286. r"""Low-level wrapper for `::pdf_annot_ink_list_stroke_count()`."""
  14287. return _mupdf.ll_pdf_annot_ink_list_stroke_count(annot, i)
  14288. def ll_pdf_annot_ink_list_stroke_vertex(annot, i, k):
  14289. r"""Low-level wrapper for `::pdf_annot_ink_list_stroke_vertex()`."""
  14290. return _mupdf.ll_pdf_annot_ink_list_stroke_vertex(annot, i, k)
  14291. def ll_pdf_annot_intent(annot):
  14292. r"""Low-level wrapper for `::pdf_annot_intent()`."""
  14293. return _mupdf.ll_pdf_annot_intent(annot)
  14294. def ll_pdf_annot_interior_color(annot, n, color):
  14295. r"""
  14296. Low-level wrapper for `::pdf_annot_interior_color()`.
  14297. This function has out-params. Python/C# wrappers look like:
  14298. `ll_pdf_annot_interior_color(::pdf_annot *annot, float color[4])` => int n
  14299. """
  14300. return _mupdf.ll_pdf_annot_interior_color(annot, n, color)
  14301. def ll_pdf_annot_is_open(annot):
  14302. r"""Low-level wrapper for `::pdf_annot_is_open()`."""
  14303. return _mupdf.ll_pdf_annot_is_open(annot)
  14304. def ll_pdf_annot_is_standard_stamp(annot):
  14305. r"""Low-level wrapper for `::pdf_annot_is_standard_stamp()`."""
  14306. return _mupdf.ll_pdf_annot_is_standard_stamp(annot)
  14307. def ll_pdf_annot_language(annot):
  14308. r"""Low-level wrapper for `::pdf_annot_language()`."""
  14309. return _mupdf.ll_pdf_annot_language(annot)
  14310. def ll_pdf_annot_line(annot, a, b):
  14311. r"""Low-level wrapper for `::pdf_annot_line()`."""
  14312. return _mupdf.ll_pdf_annot_line(annot, a, b)
  14313. def ll_pdf_annot_line_caption(annot):
  14314. r"""Low-level wrapper for `::pdf_annot_line_caption()`."""
  14315. return _mupdf.ll_pdf_annot_line_caption(annot)
  14316. def ll_pdf_annot_line_caption_offset(annot):
  14317. r"""Low-level wrapper for `::pdf_annot_line_caption_offset()`."""
  14318. return _mupdf.ll_pdf_annot_line_caption_offset(annot)
  14319. def ll_pdf_annot_line_end_style(annot):
  14320. r"""Low-level wrapper for `::pdf_annot_line_end_style()`."""
  14321. return _mupdf.ll_pdf_annot_line_end_style(annot)
  14322. def ll_pdf_annot_line_ending_styles(annot, start_style, end_style):
  14323. r"""
  14324. Low-level wrapper for `::pdf_annot_line_ending_styles()`.
  14325. This function has out-params. Python/C# wrappers look like:
  14326. `ll_pdf_annot_line_ending_styles(::pdf_annot *annot)` => `(enum pdf_line_ending start_style, enum pdf_line_ending end_style)`
  14327. """
  14328. return _mupdf.ll_pdf_annot_line_ending_styles(annot, start_style, end_style)
  14329. def ll_pdf_annot_line_leader(annot):
  14330. r"""Low-level wrapper for `::pdf_annot_line_leader()`."""
  14331. return _mupdf.ll_pdf_annot_line_leader(annot)
  14332. def ll_pdf_annot_line_leader_extension(annot):
  14333. r"""Low-level wrapper for `::pdf_annot_line_leader_extension()`."""
  14334. return _mupdf.ll_pdf_annot_line_leader_extension(annot)
  14335. def ll_pdf_annot_line_leader_offset(annot):
  14336. r"""Low-level wrapper for `::pdf_annot_line_leader_offset()`."""
  14337. return _mupdf.ll_pdf_annot_line_leader_offset(annot)
  14338. def ll_pdf_annot_line_start_style(annot):
  14339. r"""Low-level wrapper for `::pdf_annot_line_start_style()`."""
  14340. return _mupdf.ll_pdf_annot_line_start_style(annot)
  14341. def ll_pdf_annot_modification_date(annot):
  14342. r"""Low-level wrapper for `::pdf_annot_modification_date()`."""
  14343. return _mupdf.ll_pdf_annot_modification_date(annot)
  14344. def ll_pdf_annot_needs_resynthesis(annot):
  14345. r"""Low-level wrapper for `::pdf_annot_needs_resynthesis()`."""
  14346. return _mupdf.ll_pdf_annot_needs_resynthesis(annot)
  14347. def ll_pdf_annot_obj(annot):
  14348. r"""Low-level wrapper for `::pdf_annot_obj()`."""
  14349. return _mupdf.ll_pdf_annot_obj(annot)
  14350. def ll_pdf_annot_opacity(annot):
  14351. r"""Low-level wrapper for `::pdf_annot_opacity()`."""
  14352. return _mupdf.ll_pdf_annot_opacity(annot)
  14353. def ll_pdf_annot_page(annot):
  14354. r"""Low-level wrapper for `::pdf_annot_page()`."""
  14355. return _mupdf.ll_pdf_annot_page(annot)
  14356. def ll_pdf_annot_pop_and_discard_local_xref(annot):
  14357. r"""Low-level wrapper for `::pdf_annot_pop_and_discard_local_xref()`."""
  14358. return _mupdf.ll_pdf_annot_pop_and_discard_local_xref(annot)
  14359. def ll_pdf_annot_pop_local_xref(annot):
  14360. r"""Low-level wrapper for `::pdf_annot_pop_local_xref()`."""
  14361. return _mupdf.ll_pdf_annot_pop_local_xref(annot)
  14362. def ll_pdf_annot_popup(annot):
  14363. r"""Low-level wrapper for `::pdf_annot_popup()`."""
  14364. return _mupdf.ll_pdf_annot_popup(annot)
  14365. def ll_pdf_annot_push_local_xref(annot):
  14366. r"""Low-level wrapper for `::pdf_annot_push_local_xref()`."""
  14367. return _mupdf.ll_pdf_annot_push_local_xref(annot)
  14368. def ll_pdf_annot_quad_point(annot, i):
  14369. r"""Low-level wrapper for `::pdf_annot_quad_point()`."""
  14370. return _mupdf.ll_pdf_annot_quad_point(annot, i)
  14371. def ll_pdf_annot_quad_point_count(annot):
  14372. r"""Low-level wrapper for `::pdf_annot_quad_point_count()`."""
  14373. return _mupdf.ll_pdf_annot_quad_point_count(annot)
  14374. def ll_pdf_annot_quadding(annot):
  14375. r"""Low-level wrapper for `::pdf_annot_quadding()`."""
  14376. return _mupdf.ll_pdf_annot_quadding(annot)
  14377. def ll_pdf_annot_rect(annot):
  14378. r"""Low-level wrapper for `::pdf_annot_rect()`."""
  14379. return _mupdf.ll_pdf_annot_rect(annot)
  14380. def ll_pdf_annot_request_resynthesis(annot):
  14381. r"""Low-level wrapper for `::pdf_annot_request_resynthesis()`."""
  14382. return _mupdf.ll_pdf_annot_request_resynthesis(annot)
  14383. def ll_pdf_annot_request_synthesis(annot):
  14384. r"""Low-level wrapper for `::pdf_annot_request_synthesis()`."""
  14385. return _mupdf.ll_pdf_annot_request_synthesis(annot)
  14386. def ll_pdf_annot_rich_contents(annot):
  14387. r"""Low-level wrapper for `::pdf_annot_rich_contents()`."""
  14388. return _mupdf.ll_pdf_annot_rich_contents(annot)
  14389. def ll_pdf_annot_rich_defaults(annot):
  14390. r"""Low-level wrapper for `::pdf_annot_rich_defaults()`."""
  14391. return _mupdf.ll_pdf_annot_rich_defaults(annot)
  14392. def ll_pdf_annot_stamp_image_obj(annot):
  14393. r"""Low-level wrapper for `::pdf_annot_stamp_image_obj()`."""
  14394. return _mupdf.ll_pdf_annot_stamp_image_obj(annot)
  14395. def ll_pdf_annot_transform(annot):
  14396. r"""Low-level wrapper for `::pdf_annot_transform()`."""
  14397. return _mupdf.ll_pdf_annot_transform(annot)
  14398. def ll_pdf_annot_type(annot):
  14399. r"""Low-level wrapper for `::pdf_annot_type()`."""
  14400. return _mupdf.ll_pdf_annot_type(annot)
  14401. def ll_pdf_annot_type_from_string(subtype):
  14402. r"""Low-level wrapper for `::pdf_annot_type_from_string()`."""
  14403. return _mupdf.ll_pdf_annot_type_from_string(subtype)
  14404. def ll_pdf_annot_vertex(annot, i):
  14405. r"""Low-level wrapper for `::pdf_annot_vertex()`."""
  14406. return _mupdf.ll_pdf_annot_vertex(annot, i)
  14407. def ll_pdf_annot_vertex_count(annot):
  14408. r"""Low-level wrapper for `::pdf_annot_vertex_count()`."""
  14409. return _mupdf.ll_pdf_annot_vertex_count(annot)
  14410. def ll_pdf_append_explicit_dest_to_uri(url, dest):
  14411. r"""Low-level wrapper for `::pdf_append_explicit_dest_to_uri()`."""
  14412. return _mupdf.ll_pdf_append_explicit_dest_to_uri(url, dest)
  14413. def ll_pdf_append_named_dest_to_uri(url, name):
  14414. r"""Low-level wrapper for `::pdf_append_named_dest_to_uri()`."""
  14415. return _mupdf.ll_pdf_append_named_dest_to_uri(url, name)
  14416. def ll_pdf_append_token(buf, tok, lex):
  14417. r"""Low-level wrapper for `::pdf_append_token()`."""
  14418. return _mupdf.ll_pdf_append_token(buf, tok, lex)
  14419. def ll_pdf_apply_redaction(annot, opts):
  14420. r"""Low-level wrapper for `::pdf_apply_redaction()`."""
  14421. return _mupdf.ll_pdf_apply_redaction(annot, opts)
  14422. def ll_pdf_array_contains(array, obj):
  14423. r"""Low-level wrapper for `::pdf_array_contains()`."""
  14424. return _mupdf.ll_pdf_array_contains(array, obj)
  14425. def ll_pdf_array_delete(array, index):
  14426. r"""Low-level wrapper for `::pdf_array_delete()`."""
  14427. return _mupdf.ll_pdf_array_delete(array, index)
  14428. def ll_pdf_array_find(array, obj):
  14429. r"""Low-level wrapper for `::pdf_array_find()`."""
  14430. return _mupdf.ll_pdf_array_find(array, obj)
  14431. def ll_pdf_array_get(array, i):
  14432. r"""Low-level wrapper for `::pdf_array_get()`."""
  14433. return _mupdf.ll_pdf_array_get(array, i)
  14434. def ll_pdf_array_get_bool(array, index):
  14435. r"""Low-level wrapper for `::pdf_array_get_bool()`."""
  14436. return _mupdf.ll_pdf_array_get_bool(array, index)
  14437. def ll_pdf_array_get_int(array, index):
  14438. r"""Low-level wrapper for `::pdf_array_get_int()`."""
  14439. return _mupdf.ll_pdf_array_get_int(array, index)
  14440. def ll_pdf_array_get_matrix(array, index):
  14441. r"""Low-level wrapper for `::pdf_array_get_matrix()`."""
  14442. return _mupdf.ll_pdf_array_get_matrix(array, index)
  14443. def ll_pdf_array_get_name(array, index):
  14444. r"""Low-level wrapper for `::pdf_array_get_name()`."""
  14445. return _mupdf.ll_pdf_array_get_name(array, index)
  14446. def ll_pdf_array_get_real(array, index):
  14447. r"""Low-level wrapper for `::pdf_array_get_real()`."""
  14448. return _mupdf.ll_pdf_array_get_real(array, index)
  14449. def ll_pdf_array_get_rect(array, index):
  14450. r"""Low-level wrapper for `::pdf_array_get_rect()`."""
  14451. return _mupdf.ll_pdf_array_get_rect(array, index)
  14452. def ll_pdf_array_get_string(array, index, sizep):
  14453. r"""
  14454. Low-level wrapper for `::pdf_array_get_string()`.
  14455. This function has out-params. Python/C# wrappers look like:
  14456. `ll_pdf_array_get_string(::pdf_obj *array, int index)` => `(const char *, size_t sizep)`
  14457. """
  14458. return _mupdf.ll_pdf_array_get_string(array, index, sizep)
  14459. def ll_pdf_array_get_text_string(array, index):
  14460. r"""Low-level wrapper for `::pdf_array_get_text_string()`."""
  14461. return _mupdf.ll_pdf_array_get_text_string(array, index)
  14462. def ll_pdf_array_insert(array, obj, index):
  14463. r"""Low-level wrapper for `::pdf_array_insert()`."""
  14464. return _mupdf.ll_pdf_array_insert(array, obj, index)
  14465. def ll_pdf_array_insert_drop(array, obj, index):
  14466. r"""Low-level wrapper for `::pdf_array_insert_drop()`."""
  14467. return _mupdf.ll_pdf_array_insert_drop(array, obj, index)
  14468. def ll_pdf_array_len(array):
  14469. r"""Low-level wrapper for `::pdf_array_len()`."""
  14470. return _mupdf.ll_pdf_array_len(array)
  14471. def ll_pdf_array_push(array, obj):
  14472. r"""Low-level wrapper for `::pdf_array_push()`."""
  14473. return _mupdf.ll_pdf_array_push(array, obj)
  14474. def ll_pdf_array_push_array(array, initial):
  14475. r"""Low-level wrapper for `::pdf_array_push_array()`."""
  14476. return _mupdf.ll_pdf_array_push_array(array, initial)
  14477. def ll_pdf_array_push_bool(array, x):
  14478. r"""Low-level wrapper for `::pdf_array_push_bool()`."""
  14479. return _mupdf.ll_pdf_array_push_bool(array, x)
  14480. def ll_pdf_array_push_dict(array, initial):
  14481. r"""Low-level wrapper for `::pdf_array_push_dict()`."""
  14482. return _mupdf.ll_pdf_array_push_dict(array, initial)
  14483. def ll_pdf_array_push_drop(array, obj):
  14484. r"""Low-level wrapper for `::pdf_array_push_drop()`."""
  14485. return _mupdf.ll_pdf_array_push_drop(array, obj)
  14486. def ll_pdf_array_push_int(array, x):
  14487. r"""Low-level wrapper for `::pdf_array_push_int()`."""
  14488. return _mupdf.ll_pdf_array_push_int(array, x)
  14489. def ll_pdf_array_push_name(array, x):
  14490. r"""Low-level wrapper for `::pdf_array_push_name()`."""
  14491. return _mupdf.ll_pdf_array_push_name(array, x)
  14492. def ll_pdf_array_push_real(array, x):
  14493. r"""Low-level wrapper for `::pdf_array_push_real()`."""
  14494. return _mupdf.ll_pdf_array_push_real(array, x)
  14495. def ll_pdf_array_push_string(array, x, n):
  14496. r"""Low-level wrapper for `::pdf_array_push_string()`."""
  14497. return _mupdf.ll_pdf_array_push_string(array, x, n)
  14498. def ll_pdf_array_push_text_string(array, x):
  14499. r"""Low-level wrapper for `::pdf_array_push_text_string()`."""
  14500. return _mupdf.ll_pdf_array_push_text_string(array, x)
  14501. def ll_pdf_array_put(array, i, obj):
  14502. r"""Low-level wrapper for `::pdf_array_put()`."""
  14503. return _mupdf.ll_pdf_array_put(array, i, obj)
  14504. def ll_pdf_array_put_array(array, i, initial):
  14505. r"""Low-level wrapper for `::pdf_array_put_array()`."""
  14506. return _mupdf.ll_pdf_array_put_array(array, i, initial)
  14507. def ll_pdf_array_put_bool(array, i, x):
  14508. r"""Low-level wrapper for `::pdf_array_put_bool()`."""
  14509. return _mupdf.ll_pdf_array_put_bool(array, i, x)
  14510. def ll_pdf_array_put_dict(array, i, initial):
  14511. r"""Low-level wrapper for `::pdf_array_put_dict()`."""
  14512. return _mupdf.ll_pdf_array_put_dict(array, i, initial)
  14513. def ll_pdf_array_put_drop(array, i, obj):
  14514. r"""Low-level wrapper for `::pdf_array_put_drop()`."""
  14515. return _mupdf.ll_pdf_array_put_drop(array, i, obj)
  14516. def ll_pdf_array_put_int(array, i, x):
  14517. r"""Low-level wrapper for `::pdf_array_put_int()`."""
  14518. return _mupdf.ll_pdf_array_put_int(array, i, x)
  14519. def ll_pdf_array_put_name(array, i, x):
  14520. r"""Low-level wrapper for `::pdf_array_put_name()`."""
  14521. return _mupdf.ll_pdf_array_put_name(array, i, x)
  14522. def ll_pdf_array_put_real(array, i, x):
  14523. r"""Low-level wrapper for `::pdf_array_put_real()`."""
  14524. return _mupdf.ll_pdf_array_put_real(array, i, x)
  14525. def ll_pdf_array_put_string(array, i, x, n):
  14526. r"""Low-level wrapper for `::pdf_array_put_string()`."""
  14527. return _mupdf.ll_pdf_array_put_string(array, i, x, n)
  14528. def ll_pdf_array_put_text_string(array, i, x):
  14529. r"""Low-level wrapper for `::pdf_array_put_text_string()`."""
  14530. return _mupdf.ll_pdf_array_put_text_string(array, i, x)
  14531. def ll_pdf_authenticate_password(doc, pw):
  14532. r"""Low-level wrapper for `::pdf_authenticate_password()`."""
  14533. return _mupdf.ll_pdf_authenticate_password(doc, pw)
  14534. def ll_pdf_bake_document(doc, bake_annots, bake_widgets):
  14535. r"""Low-level wrapper for `::pdf_bake_document()`."""
  14536. return _mupdf.ll_pdf_bake_document(doc, bake_annots, bake_widgets)
  14537. def ll_pdf_begin_implicit_operation(doc):
  14538. r"""Low-level wrapper for `::pdf_begin_implicit_operation()`."""
  14539. return _mupdf.ll_pdf_begin_implicit_operation(doc)
  14540. def ll_pdf_begin_operation(doc, operation):
  14541. r"""Low-level wrapper for `::pdf_begin_operation()`."""
  14542. return _mupdf.ll_pdf_begin_operation(doc, operation)
  14543. def ll_pdf_bound_annot(annot):
  14544. r"""Low-level wrapper for `::pdf_bound_annot()`."""
  14545. return _mupdf.ll_pdf_bound_annot(annot)
  14546. def ll_pdf_bound_page(page, box):
  14547. r"""Low-level wrapper for `::pdf_bound_page()`."""
  14548. return _mupdf.ll_pdf_bound_page(page, box)
  14549. def ll_pdf_bound_widget(widget):
  14550. r"""Low-level wrapper for `::pdf_bound_widget()`."""
  14551. return _mupdf.ll_pdf_bound_widget(widget)
  14552. def ll_pdf_button_field_on_state(field):
  14553. r"""Low-level wrapper for `::pdf_button_field_on_state()`."""
  14554. return _mupdf.ll_pdf_button_field_on_state(field)
  14555. def ll_pdf_cache_object(doc, num):
  14556. r"""
  14557. Low-level wrapper for `::pdf_cache_object()`.
  14558. Retrieve the pdf_xref_entry for a given object.
  14559. This can cause xref reorganisations (solidifications etc) due to
  14560. repairs, so all held pdf_xref_entries should be considered
  14561. invalid after this call (other than the returned one).
  14562. """
  14563. return _mupdf.ll_pdf_cache_object(doc, num)
  14564. def ll_pdf_calculate_form(doc):
  14565. r"""Low-level wrapper for `::pdf_calculate_form()`."""
  14566. return _mupdf.ll_pdf_calculate_form(doc)
  14567. def ll_pdf_can_be_saved_incrementally(doc):
  14568. r"""Low-level wrapper for `::pdf_can_be_saved_incrementally()`."""
  14569. return _mupdf.ll_pdf_can_be_saved_incrementally(doc)
  14570. def ll_pdf_can_redo(doc):
  14571. r"""Low-level wrapper for `::pdf_can_redo()`."""
  14572. return _mupdf.ll_pdf_can_redo(doc)
  14573. def ll_pdf_can_undo(doc):
  14574. r"""Low-level wrapper for `::pdf_can_undo()`."""
  14575. return _mupdf.ll_pdf_can_undo(doc)
  14576. def ll_pdf_check_certificate(verifier, doc, signature):
  14577. r"""Low-level wrapper for `::pdf_check_certificate()`."""
  14578. return _mupdf.ll_pdf_check_certificate(verifier, doc, signature)
  14579. def ll_pdf_check_digest(verifier, doc, signature):
  14580. r"""Low-level wrapper for `::pdf_check_digest()`."""
  14581. return _mupdf.ll_pdf_check_digest(verifier, doc, signature)
  14582. def ll_pdf_check_widget_certificate(verifier, widget):
  14583. r"""Low-level wrapper for `::pdf_check_widget_certificate()`."""
  14584. return _mupdf.ll_pdf_check_widget_certificate(verifier, widget)
  14585. def ll_pdf_check_widget_digest(verifier, widget):
  14586. r"""Low-level wrapper for `::pdf_check_widget_digest()`."""
  14587. return _mupdf.ll_pdf_check_widget_digest(verifier, widget)
  14588. def ll_pdf_choice_field_option(field, exportval, i):
  14589. r"""Low-level wrapper for `::pdf_choice_field_option()`."""
  14590. return _mupdf.ll_pdf_choice_field_option(field, exportval, i)
  14591. def ll_pdf_choice_field_option_count(field):
  14592. r"""Low-level wrapper for `::pdf_choice_field_option_count()`."""
  14593. return _mupdf.ll_pdf_choice_field_option_count(field)
  14594. def ll_pdf_choice_widget_is_multiselect(tw):
  14595. r"""Low-level wrapper for `::pdf_choice_widget_is_multiselect()`."""
  14596. return _mupdf.ll_pdf_choice_widget_is_multiselect(tw)
  14597. def ll_pdf_choice_widget_options(tw, exportval, opts):
  14598. r"""Low-level wrapper for `::pdf_choice_widget_options()`."""
  14599. return _mupdf.ll_pdf_choice_widget_options(tw, exportval, opts)
  14600. def ll_pdf_choice_widget_options2(tw, exportval):
  14601. r"""
  14602. Low-level wrapper for `::pdf_choice_widget_options2()`. Swig-friendly wrapper for pdf_choice_widget_options(), returns the
  14603. options directly in a vector.
  14604. """
  14605. return _mupdf.ll_pdf_choice_widget_options2(tw, exportval)
  14606. def ll_pdf_choice_widget_set_value(tw, n, opts):
  14607. r"""Low-level wrapper for `::pdf_choice_widget_set_value()`."""
  14608. return _mupdf.ll_pdf_choice_widget_set_value(tw, n, opts)
  14609. def ll_pdf_choice_widget_value(tw, opts):
  14610. r"""Low-level wrapper for `::pdf_choice_widget_value()`."""
  14611. return _mupdf.ll_pdf_choice_widget_value(tw, opts)
  14612. def ll_pdf_clean_file(infile, outfile, password, opts, retainlen):
  14613. r"""Low-level wrapper for `::pdf_clean_file()`."""
  14614. return _mupdf.ll_pdf_clean_file(infile, outfile, password, opts, retainlen)
  14615. def ll_pdf_clean_font_name(fontname):
  14616. r"""Low-level wrapper for `::pdf_clean_font_name()`."""
  14617. return _mupdf.ll_pdf_clean_font_name(fontname)
  14618. def ll_pdf_clean_obj(obj):
  14619. r"""Low-level wrapper for `::pdf_clean_obj()`."""
  14620. return _mupdf.ll_pdf_clean_obj(obj)
  14621. def ll_pdf_clear_annot_border_dash(annot):
  14622. r"""Low-level wrapper for `::pdf_clear_annot_border_dash()`."""
  14623. return _mupdf.ll_pdf_clear_annot_border_dash(annot)
  14624. def ll_pdf_clear_annot_ink_list(annot):
  14625. r"""Low-level wrapper for `::pdf_clear_annot_ink_list()`."""
  14626. return _mupdf.ll_pdf_clear_annot_ink_list(annot)
  14627. def ll_pdf_clear_annot_quad_points(annot):
  14628. r"""Low-level wrapper for `::pdf_clear_annot_quad_points()`."""
  14629. return _mupdf.ll_pdf_clear_annot_quad_points(annot)
  14630. def ll_pdf_clear_annot_vertices(annot):
  14631. r"""Low-level wrapper for `::pdf_clear_annot_vertices()`."""
  14632. return _mupdf.ll_pdf_clear_annot_vertices(annot)
  14633. def ll_pdf_clear_signature(widget):
  14634. r"""Low-level wrapper for `::pdf_clear_signature()`."""
  14635. return _mupdf.ll_pdf_clear_signature(widget)
  14636. def ll_pdf_clear_xref(doc):
  14637. r"""Low-level wrapper for `::pdf_clear_xref()`."""
  14638. return _mupdf.ll_pdf_clear_xref(doc)
  14639. def ll_pdf_clear_xref_to_mark(doc):
  14640. r"""Low-level wrapper for `::pdf_clear_xref_to_mark()`."""
  14641. return _mupdf.ll_pdf_clear_xref_to_mark(doc)
  14642. def ll_pdf_clip_page(page, clip):
  14643. r"""Low-level wrapper for `::pdf_clip_page()`."""
  14644. return _mupdf.ll_pdf_clip_page(page, clip)
  14645. def ll_pdf_close_processor(proc):
  14646. r"""Low-level wrapper for `::pdf_close_processor()`."""
  14647. return _mupdf.ll_pdf_close_processor(proc)
  14648. def ll_pdf_cmap_size(cmap):
  14649. r"""Low-level wrapper for `::pdf_cmap_size()`."""
  14650. return _mupdf.ll_pdf_cmap_size(cmap)
  14651. def ll_pdf_cmap_wmode(cmap):
  14652. r"""Low-level wrapper for `::pdf_cmap_wmode()`."""
  14653. return _mupdf.ll_pdf_cmap_wmode(cmap)
  14654. def ll_pdf_copy_array(array):
  14655. r"""Low-level wrapper for `::pdf_copy_array()`."""
  14656. return _mupdf.ll_pdf_copy_array(array)
  14657. def ll_pdf_copy_dict(dict):
  14658. r"""Low-level wrapper for `::pdf_copy_dict()`."""
  14659. return _mupdf.ll_pdf_copy_dict(dict)
  14660. def ll_pdf_count_document_associated_files(doc):
  14661. r"""Low-level wrapper for `::pdf_count_document_associated_files()`."""
  14662. return _mupdf.ll_pdf_count_document_associated_files(doc)
  14663. def ll_pdf_count_layer_config_ui(doc):
  14664. r"""Low-level wrapper for `::pdf_count_layer_config_ui()`."""
  14665. return _mupdf.ll_pdf_count_layer_config_ui(doc)
  14666. def ll_pdf_count_layer_configs(doc):
  14667. r"""Low-level wrapper for `::pdf_count_layer_configs()`."""
  14668. return _mupdf.ll_pdf_count_layer_configs(doc)
  14669. def ll_pdf_count_layers(doc):
  14670. r"""Low-level wrapper for `::pdf_count_layers()`."""
  14671. return _mupdf.ll_pdf_count_layers(doc)
  14672. def ll_pdf_count_objects(doc):
  14673. r"""Low-level wrapper for `::pdf_count_objects()`."""
  14674. return _mupdf.ll_pdf_count_objects(doc)
  14675. def ll_pdf_count_page_associated_files(page):
  14676. r"""Low-level wrapper for `::pdf_count_page_associated_files()`."""
  14677. return _mupdf.ll_pdf_count_page_associated_files(page)
  14678. def ll_pdf_count_pages(doc):
  14679. r"""Low-level wrapper for `::pdf_count_pages()`."""
  14680. return _mupdf.ll_pdf_count_pages(doc)
  14681. def ll_pdf_count_pages_imp(doc, chapter):
  14682. r"""Low-level wrapper for `::pdf_count_pages_imp()`."""
  14683. return _mupdf.ll_pdf_count_pages_imp(doc, chapter)
  14684. def ll_pdf_count_q_balance(doc, res, stm, prepend, append):
  14685. r"""
  14686. Low-level wrapper for `::pdf_count_q_balance()`.
  14687. This function has out-params. Python/C# wrappers look like:
  14688. `ll_pdf_count_q_balance(::pdf_document *doc, ::pdf_obj *res, ::pdf_obj *stm)` => `(int prepend, int append)`
  14689. """
  14690. return _mupdf.ll_pdf_count_q_balance(doc, res, stm, prepend, append)
  14691. def ll_pdf_count_signatures(doc):
  14692. r"""Low-level wrapper for `::pdf_count_signatures()`."""
  14693. return _mupdf.ll_pdf_count_signatures(doc)
  14694. def ll_pdf_count_unsaved_versions(doc):
  14695. r"""Low-level wrapper for `::pdf_count_unsaved_versions()`."""
  14696. return _mupdf.ll_pdf_count_unsaved_versions(doc)
  14697. def ll_pdf_count_versions(doc):
  14698. r"""Low-level wrapper for `::pdf_count_versions()`."""
  14699. return _mupdf.ll_pdf_count_versions(doc)
  14700. def ll_pdf_create_annot(page, type):
  14701. r"""Low-level wrapper for `::pdf_create_annot()`."""
  14702. return _mupdf.ll_pdf_create_annot(page, type)
  14703. def ll_pdf_create_annot_raw(page, type):
  14704. r"""Low-level wrapper for `::pdf_create_annot_raw()`."""
  14705. return _mupdf.ll_pdf_create_annot_raw(page, type)
  14706. def ll_pdf_create_document():
  14707. r"""Low-level wrapper for `::pdf_create_document()`."""
  14708. return _mupdf.ll_pdf_create_document()
  14709. def ll_pdf_create_field_name(doc, prefix, buf, len):
  14710. r"""Low-level wrapper for `::pdf_create_field_name()`."""
  14711. return _mupdf.ll_pdf_create_field_name(doc, prefix, buf, len)
  14712. def ll_pdf_create_link(page, bbox, uri):
  14713. r"""Low-level wrapper for `::pdf_create_link()`."""
  14714. return _mupdf.ll_pdf_create_link(page, bbox, uri)
  14715. def ll_pdf_create_object(doc):
  14716. r"""Low-level wrapper for `::pdf_create_object()`."""
  14717. return _mupdf.ll_pdf_create_object(doc)
  14718. def ll_pdf_create_signature_widget(page, name):
  14719. r"""Low-level wrapper for `::pdf_create_signature_widget()`."""
  14720. return _mupdf.ll_pdf_create_signature_widget(page, name)
  14721. def ll_pdf_crypt_encrypt_metadata(crypt):
  14722. r"""Low-level wrapper for `::pdf_crypt_encrypt_metadata()`."""
  14723. return _mupdf.ll_pdf_crypt_encrypt_metadata(crypt)
  14724. def ll_pdf_crypt_key(crypt):
  14725. r"""Low-level wrapper for `::pdf_crypt_key()`."""
  14726. return _mupdf.ll_pdf_crypt_key(crypt)
  14727. def ll_pdf_crypt_length(crypt):
  14728. r"""Low-level wrapper for `::pdf_crypt_length()`."""
  14729. return _mupdf.ll_pdf_crypt_length(crypt)
  14730. def ll_pdf_crypt_method(crypt):
  14731. r"""Low-level wrapper for `::pdf_crypt_method()`."""
  14732. return _mupdf.ll_pdf_crypt_method(crypt)
  14733. def ll_pdf_crypt_obj(crypt, obj, num, gen):
  14734. r"""Low-level wrapper for `::pdf_crypt_obj()`."""
  14735. return _mupdf.ll_pdf_crypt_obj(crypt, obj, num, gen)
  14736. def ll_pdf_crypt_owner_encryption(crypt):
  14737. r"""Low-level wrapper for `::pdf_crypt_owner_encryption()`."""
  14738. return _mupdf.ll_pdf_crypt_owner_encryption(crypt)
  14739. def ll_pdf_crypt_owner_password(crypt):
  14740. r"""Low-level wrapper for `::pdf_crypt_owner_password()`."""
  14741. return _mupdf.ll_pdf_crypt_owner_password(crypt)
  14742. def ll_pdf_crypt_permissions(crypt):
  14743. r"""Low-level wrapper for `::pdf_crypt_permissions()`."""
  14744. return _mupdf.ll_pdf_crypt_permissions(crypt)
  14745. def ll_pdf_crypt_permissions_encryption(crypt):
  14746. r"""Low-level wrapper for `::pdf_crypt_permissions_encryption()`."""
  14747. return _mupdf.ll_pdf_crypt_permissions_encryption(crypt)
  14748. def ll_pdf_crypt_revision(crypt):
  14749. r"""Low-level wrapper for `::pdf_crypt_revision()`."""
  14750. return _mupdf.ll_pdf_crypt_revision(crypt)
  14751. def ll_pdf_crypt_stream_method(crypt):
  14752. r"""Low-level wrapper for `::pdf_crypt_stream_method()`."""
  14753. return _mupdf.ll_pdf_crypt_stream_method(crypt)
  14754. def ll_pdf_crypt_string_method(crypt):
  14755. r"""Low-level wrapper for `::pdf_crypt_string_method()`."""
  14756. return _mupdf.ll_pdf_crypt_string_method(crypt)
  14757. def ll_pdf_crypt_user_encryption(crypt):
  14758. r"""Low-level wrapper for `::pdf_crypt_user_encryption()`."""
  14759. return _mupdf.ll_pdf_crypt_user_encryption(crypt)
  14760. def ll_pdf_crypt_user_password(crypt):
  14761. r"""Low-level wrapper for `::pdf_crypt_user_password()`."""
  14762. return _mupdf.ll_pdf_crypt_user_password(crypt)
  14763. def ll_pdf_crypt_version(crypt):
  14764. r"""Low-level wrapper for `::pdf_crypt_version()`."""
  14765. return _mupdf.ll_pdf_crypt_version(crypt)
  14766. def ll_pdf_cycle(here, prev, obj):
  14767. r"""Low-level wrapper for `::pdf_cycle()`."""
  14768. return _mupdf.ll_pdf_cycle(here, prev, obj)
  14769. def ll_pdf_debug_doc_changes(doc):
  14770. r"""Low-level wrapper for `::pdf_debug_doc_changes()`."""
  14771. return _mupdf.ll_pdf_debug_doc_changes(doc)
  14772. def ll_pdf_debug_obj(obj):
  14773. r"""Low-level wrapper for `::pdf_debug_obj()`."""
  14774. return _mupdf.ll_pdf_debug_obj(obj)
  14775. def ll_pdf_debug_ref(obj):
  14776. r"""Low-level wrapper for `::pdf_debug_ref()`."""
  14777. return _mupdf.ll_pdf_debug_ref(obj)
  14778. def ll_pdf_decode_cmap(cmap, s, e, cpt):
  14779. r"""
  14780. Low-level wrapper for `::pdf_decode_cmap()`.
  14781. This function has out-params. Python/C# wrappers look like:
  14782. `ll_pdf_decode_cmap(::pdf_cmap *cmap, unsigned char *s, unsigned char *e)` => `(int, unsigned int cpt)`
  14783. """
  14784. return _mupdf.ll_pdf_decode_cmap(cmap, s, e, cpt)
  14785. def ll_pdf_deep_copy_obj(obj):
  14786. r"""Low-level wrapper for `::pdf_deep_copy_obj()`."""
  14787. return _mupdf.ll_pdf_deep_copy_obj(obj)
  14788. def ll_pdf_delete_annot(page, annot):
  14789. r"""Low-level wrapper for `::pdf_delete_annot()`."""
  14790. return _mupdf.ll_pdf_delete_annot(page, annot)
  14791. def ll_pdf_delete_link(page, link):
  14792. r"""Low-level wrapper for `::pdf_delete_link()`."""
  14793. return _mupdf.ll_pdf_delete_link(page, link)
  14794. def ll_pdf_delete_object(doc, num):
  14795. r"""Low-level wrapper for `::pdf_delete_object()`."""
  14796. return _mupdf.ll_pdf_delete_object(doc, num)
  14797. def ll_pdf_delete_page(doc, number):
  14798. r"""Low-level wrapper for `::pdf_delete_page()`."""
  14799. return _mupdf.ll_pdf_delete_page(doc, number)
  14800. def ll_pdf_delete_page_labels(doc, index):
  14801. r"""Low-level wrapper for `::pdf_delete_page_labels()`."""
  14802. return _mupdf.ll_pdf_delete_page_labels(doc, index)
  14803. def ll_pdf_delete_page_range(doc, start, end):
  14804. r"""Low-level wrapper for `::pdf_delete_page_range()`."""
  14805. return _mupdf.ll_pdf_delete_page_range(doc, start, end)
  14806. def ll_pdf_deselect_layer_config_ui(doc, ui):
  14807. r"""Low-level wrapper for `::pdf_deselect_layer_config_ui()`."""
  14808. return _mupdf.ll_pdf_deselect_layer_config_ui(doc, ui)
  14809. def ll_pdf_deserialise_journal(doc, stm):
  14810. r"""Low-level wrapper for `::pdf_deserialise_journal()`."""
  14811. return _mupdf.ll_pdf_deserialise_journal(doc, stm)
  14812. def ll_pdf_dict_del(dict, key):
  14813. r"""Low-level wrapper for `::pdf_dict_del()`."""
  14814. return _mupdf.ll_pdf_dict_del(dict, key)
  14815. def ll_pdf_dict_dels(dict, key):
  14816. r"""Low-level wrapper for `::pdf_dict_dels()`."""
  14817. return _mupdf.ll_pdf_dict_dels(dict, key)
  14818. def ll_pdf_dict_get(dict, key):
  14819. r"""Low-level wrapper for `::pdf_dict_get()`."""
  14820. return _mupdf.ll_pdf_dict_get(dict, key)
  14821. def ll_pdf_dict_get_bool(dict, key):
  14822. r"""Low-level wrapper for `::pdf_dict_get_bool()`."""
  14823. return _mupdf.ll_pdf_dict_get_bool(dict, key)
  14824. def ll_pdf_dict_get_bool_default(dict, key, _def):
  14825. r"""Low-level wrapper for `::pdf_dict_get_bool_default()`."""
  14826. return _mupdf.ll_pdf_dict_get_bool_default(dict, key, _def)
  14827. def ll_pdf_dict_get_date(dict, key):
  14828. r"""Low-level wrapper for `::pdf_dict_get_date()`."""
  14829. return _mupdf.ll_pdf_dict_get_date(dict, key)
  14830. def ll_pdf_dict_get_inheritable(dict, key):
  14831. r"""Low-level wrapper for `::pdf_dict_get_inheritable()`."""
  14832. return _mupdf.ll_pdf_dict_get_inheritable(dict, key)
  14833. def ll_pdf_dict_get_inheritable_bool(dict, key):
  14834. r"""Low-level wrapper for `::pdf_dict_get_inheritable_bool()`."""
  14835. return _mupdf.ll_pdf_dict_get_inheritable_bool(dict, key)
  14836. def ll_pdf_dict_get_inheritable_date(dict, key):
  14837. r"""Low-level wrapper for `::pdf_dict_get_inheritable_date()`."""
  14838. return _mupdf.ll_pdf_dict_get_inheritable_date(dict, key)
  14839. def ll_pdf_dict_get_inheritable_int(dict, key):
  14840. r"""Low-level wrapper for `::pdf_dict_get_inheritable_int()`."""
  14841. return _mupdf.ll_pdf_dict_get_inheritable_int(dict, key)
  14842. def ll_pdf_dict_get_inheritable_int64(dict, key):
  14843. r"""Low-level wrapper for `::pdf_dict_get_inheritable_int64()`."""
  14844. return _mupdf.ll_pdf_dict_get_inheritable_int64(dict, key)
  14845. def ll_pdf_dict_get_inheritable_matrix(dict, key):
  14846. r"""Low-level wrapper for `::pdf_dict_get_inheritable_matrix()`."""
  14847. return _mupdf.ll_pdf_dict_get_inheritable_matrix(dict, key)
  14848. def ll_pdf_dict_get_inheritable_name(dict, key):
  14849. r"""Low-level wrapper for `::pdf_dict_get_inheritable_name()`."""
  14850. return _mupdf.ll_pdf_dict_get_inheritable_name(dict, key)
  14851. def ll_pdf_dict_get_inheritable_real(dict, key):
  14852. r"""Low-level wrapper for `::pdf_dict_get_inheritable_real()`."""
  14853. return _mupdf.ll_pdf_dict_get_inheritable_real(dict, key)
  14854. def ll_pdf_dict_get_inheritable_rect(dict, key):
  14855. r"""Low-level wrapper for `::pdf_dict_get_inheritable_rect()`."""
  14856. return _mupdf.ll_pdf_dict_get_inheritable_rect(dict, key)
  14857. def ll_pdf_dict_get_inheritable_string(dict, key, sizep):
  14858. r"""
  14859. Low-level wrapper for `::pdf_dict_get_inheritable_string()`.
  14860. This function has out-params. Python/C# wrappers look like:
  14861. `ll_pdf_dict_get_inheritable_string(::pdf_obj *dict, ::pdf_obj *key)` => `(const char *, size_t sizep)`
  14862. """
  14863. return _mupdf.ll_pdf_dict_get_inheritable_string(dict, key, sizep)
  14864. def ll_pdf_dict_get_inheritable_text_string(dict, key):
  14865. r"""Low-level wrapper for `::pdf_dict_get_inheritable_text_string()`."""
  14866. return _mupdf.ll_pdf_dict_get_inheritable_text_string(dict, key)
  14867. def ll_pdf_dict_get_int(dict, key):
  14868. r"""Low-level wrapper for `::pdf_dict_get_int()`."""
  14869. return _mupdf.ll_pdf_dict_get_int(dict, key)
  14870. def ll_pdf_dict_get_int64(dict, key):
  14871. r"""Low-level wrapper for `::pdf_dict_get_int64()`."""
  14872. return _mupdf.ll_pdf_dict_get_int64(dict, key)
  14873. def ll_pdf_dict_get_int_default(dict, key, _def):
  14874. r"""Low-level wrapper for `::pdf_dict_get_int_default()`."""
  14875. return _mupdf.ll_pdf_dict_get_int_default(dict, key, _def)
  14876. def ll_pdf_dict_get_key(dict, idx):
  14877. r"""Low-level wrapper for `::pdf_dict_get_key()`."""
  14878. return _mupdf.ll_pdf_dict_get_key(dict, idx)
  14879. def ll_pdf_dict_get_matrix(dict, key):
  14880. r"""Low-level wrapper for `::pdf_dict_get_matrix()`."""
  14881. return _mupdf.ll_pdf_dict_get_matrix(dict, key)
  14882. def ll_pdf_dict_get_name(dict, key):
  14883. r"""Low-level wrapper for `::pdf_dict_get_name()`."""
  14884. return _mupdf.ll_pdf_dict_get_name(dict, key)
  14885. def ll_pdf_dict_get_point(dict, key):
  14886. r"""Low-level wrapper for `::pdf_dict_get_point()`."""
  14887. return _mupdf.ll_pdf_dict_get_point(dict, key)
  14888. def ll_pdf_dict_get_put_drop(dict, key, val, old_val):
  14889. r"""
  14890. Low-level wrapper for `::pdf_dict_get_put_drop()`.
  14891. This function has out-params. Python/C# wrappers look like:
  14892. `ll_pdf_dict_get_put_drop(::pdf_obj *dict, ::pdf_obj *key, ::pdf_obj *val, ::pdf_obj **old_val)` =>
  14893. """
  14894. return _mupdf.ll_pdf_dict_get_put_drop(dict, key, val, old_val)
  14895. def ll_pdf_dict_get_real(dict, key):
  14896. r"""Low-level wrapper for `::pdf_dict_get_real()`."""
  14897. return _mupdf.ll_pdf_dict_get_real(dict, key)
  14898. def ll_pdf_dict_get_real_default(dict, key, _def):
  14899. r"""Low-level wrapper for `::pdf_dict_get_real_default()`."""
  14900. return _mupdf.ll_pdf_dict_get_real_default(dict, key, _def)
  14901. def ll_pdf_dict_get_rect(dict, key):
  14902. r"""Low-level wrapper for `::pdf_dict_get_rect()`."""
  14903. return _mupdf.ll_pdf_dict_get_rect(dict, key)
  14904. def ll_pdf_dict_get_string(dict, key, sizep):
  14905. r"""
  14906. Low-level wrapper for `::pdf_dict_get_string()`.
  14907. This function has out-params. Python/C# wrappers look like:
  14908. `ll_pdf_dict_get_string(::pdf_obj *dict, ::pdf_obj *key)` => `(const char *, size_t sizep)`
  14909. """
  14910. return _mupdf.ll_pdf_dict_get_string(dict, key, sizep)
  14911. def ll_pdf_dict_get_text_string(dict, key):
  14912. r"""Low-level wrapper for `::pdf_dict_get_text_string()`."""
  14913. return _mupdf.ll_pdf_dict_get_text_string(dict, key)
  14914. def ll_pdf_dict_get_text_string_opt(dict, key):
  14915. r"""Low-level wrapper for `::pdf_dict_get_text_string_opt()`."""
  14916. return _mupdf.ll_pdf_dict_get_text_string_opt(dict, key)
  14917. def ll_pdf_dict_get_val(dict, idx):
  14918. r"""Low-level wrapper for `::pdf_dict_get_val()`."""
  14919. return _mupdf.ll_pdf_dict_get_val(dict, idx)
  14920. def ll_pdf_dict_geta(dict, key, abbrev):
  14921. r"""Low-level wrapper for `::pdf_dict_geta()`."""
  14922. return _mupdf.ll_pdf_dict_geta(dict, key, abbrev)
  14923. def ll_pdf_dict_getp(dict, path):
  14924. r"""Low-level wrapper for `::pdf_dict_getp()`."""
  14925. return _mupdf.ll_pdf_dict_getp(dict, path)
  14926. def ll_pdf_dict_getp_inheritable(dict, path):
  14927. r"""Low-level wrapper for `::pdf_dict_getp_inheritable()`."""
  14928. return _mupdf.ll_pdf_dict_getp_inheritable(dict, path)
  14929. def ll_pdf_dict_gets(dict, key):
  14930. r"""Low-level wrapper for `::pdf_dict_gets()`."""
  14931. return _mupdf.ll_pdf_dict_gets(dict, key)
  14932. def ll_pdf_dict_gets_inheritable(dict, key):
  14933. r"""Low-level wrapper for `::pdf_dict_gets_inheritable()`."""
  14934. return _mupdf.ll_pdf_dict_gets_inheritable(dict, key)
  14935. def ll_pdf_dict_getsa(dict, key, abbrev):
  14936. r"""Low-level wrapper for `::pdf_dict_getsa()`."""
  14937. return _mupdf.ll_pdf_dict_getsa(dict, key, abbrev)
  14938. def ll_pdf_dict_len(dict):
  14939. r"""Low-level wrapper for `::pdf_dict_len()`."""
  14940. return _mupdf.ll_pdf_dict_len(dict)
  14941. def ll_pdf_dict_put(dict, key, val):
  14942. r"""Low-level wrapper for `::pdf_dict_put()`."""
  14943. return _mupdf.ll_pdf_dict_put(dict, key, val)
  14944. def ll_pdf_dict_put_array(dict, key, initial):
  14945. r"""Low-level wrapper for `::pdf_dict_put_array()`."""
  14946. return _mupdf.ll_pdf_dict_put_array(dict, key, initial)
  14947. def ll_pdf_dict_put_bool(dict, key, x):
  14948. r"""Low-level wrapper for `::pdf_dict_put_bool()`."""
  14949. return _mupdf.ll_pdf_dict_put_bool(dict, key, x)
  14950. def ll_pdf_dict_put_date(dict, key, time):
  14951. r"""Low-level wrapper for `::pdf_dict_put_date()`."""
  14952. return _mupdf.ll_pdf_dict_put_date(dict, key, time)
  14953. def ll_pdf_dict_put_dict(dict, key, initial):
  14954. r"""Low-level wrapper for `::pdf_dict_put_dict()`."""
  14955. return _mupdf.ll_pdf_dict_put_dict(dict, key, initial)
  14956. def ll_pdf_dict_put_drop(dict, key, val):
  14957. r"""Low-level wrapper for `::pdf_dict_put_drop()`."""
  14958. return _mupdf.ll_pdf_dict_put_drop(dict, key, val)
  14959. def ll_pdf_dict_put_indirect(dict, key, num):
  14960. r"""Low-level wrapper for `::pdf_dict_put_indirect()`."""
  14961. return _mupdf.ll_pdf_dict_put_indirect(dict, key, num)
  14962. def ll_pdf_dict_put_int(dict, key, x):
  14963. r"""Low-level wrapper for `::pdf_dict_put_int()`."""
  14964. return _mupdf.ll_pdf_dict_put_int(dict, key, x)
  14965. def ll_pdf_dict_put_matrix(dict, key, x):
  14966. r"""Low-level wrapper for `::pdf_dict_put_matrix()`."""
  14967. return _mupdf.ll_pdf_dict_put_matrix(dict, key, x)
  14968. def ll_pdf_dict_put_name(dict, key, x):
  14969. r"""Low-level wrapper for `::pdf_dict_put_name()`."""
  14970. return _mupdf.ll_pdf_dict_put_name(dict, key, x)
  14971. def ll_pdf_dict_put_point(dict, key, x):
  14972. r"""Low-level wrapper for `::pdf_dict_put_point()`."""
  14973. return _mupdf.ll_pdf_dict_put_point(dict, key, x)
  14974. def ll_pdf_dict_put_real(dict, key, x):
  14975. r"""Low-level wrapper for `::pdf_dict_put_real()`."""
  14976. return _mupdf.ll_pdf_dict_put_real(dict, key, x)
  14977. def ll_pdf_dict_put_rect(dict, key, x):
  14978. r"""Low-level wrapper for `::pdf_dict_put_rect()`."""
  14979. return _mupdf.ll_pdf_dict_put_rect(dict, key, x)
  14980. def ll_pdf_dict_put_string(dict, key, x, n):
  14981. r"""Low-level wrapper for `::pdf_dict_put_string()`."""
  14982. return _mupdf.ll_pdf_dict_put_string(dict, key, x, n)
  14983. def ll_pdf_dict_put_text_string(dict, key, x):
  14984. r"""Low-level wrapper for `::pdf_dict_put_text_string()`."""
  14985. return _mupdf.ll_pdf_dict_put_text_string(dict, key, x)
  14986. def ll_pdf_dict_put_val_null(obj, idx):
  14987. r"""Low-level wrapper for `::pdf_dict_put_val_null()`."""
  14988. return _mupdf.ll_pdf_dict_put_val_null(obj, idx)
  14989. def ll_pdf_dict_putp(dict, path, val):
  14990. r"""Low-level wrapper for `::pdf_dict_putp()`."""
  14991. return _mupdf.ll_pdf_dict_putp(dict, path, val)
  14992. def ll_pdf_dict_putp_drop(dict, path, val):
  14993. r"""Low-level wrapper for `::pdf_dict_putp_drop()`."""
  14994. return _mupdf.ll_pdf_dict_putp_drop(dict, path, val)
  14995. def ll_pdf_dict_puts(dict, key, val):
  14996. r"""Low-level wrapper for `::pdf_dict_puts()`."""
  14997. return _mupdf.ll_pdf_dict_puts(dict, key, val)
  14998. def ll_pdf_dict_puts_dict(dict, key, initial):
  14999. r"""Low-level wrapper for `::pdf_dict_puts_dict()`."""
  15000. return _mupdf.ll_pdf_dict_puts_dict(dict, key, initial)
  15001. def ll_pdf_dict_puts_drop(dict, key, val):
  15002. r"""Low-level wrapper for `::pdf_dict_puts_drop()`."""
  15003. return _mupdf.ll_pdf_dict_puts_drop(dict, key, val)
  15004. def ll_pdf_dirty_annot(annot):
  15005. r"""Low-level wrapper for `::pdf_dirty_annot()`."""
  15006. return _mupdf.ll_pdf_dirty_annot(annot)
  15007. def ll_pdf_dirty_obj(obj):
  15008. r"""Low-level wrapper for `::pdf_dirty_obj()`."""
  15009. return _mupdf.ll_pdf_dirty_obj(obj)
  15010. def ll_pdf_disable_js(doc):
  15011. r"""Low-level wrapper for `::pdf_disable_js()`."""
  15012. return _mupdf.ll_pdf_disable_js(doc)
  15013. def ll_pdf_discard_journal(journal):
  15014. r"""Low-level wrapper for `::pdf_discard_journal()`."""
  15015. return _mupdf.ll_pdf_discard_journal(journal)
  15016. def ll_pdf_doc_was_linearized(doc):
  15017. r"""Low-level wrapper for `::pdf_doc_was_linearized()`."""
  15018. return _mupdf.ll_pdf_doc_was_linearized(doc)
  15019. def ll_pdf_document_associated_file(doc, idx):
  15020. r"""Low-level wrapper for `::pdf_document_associated_file()`."""
  15021. return _mupdf.ll_pdf_document_associated_file(doc, idx)
  15022. def ll_pdf_document_event_did_print(doc):
  15023. r"""Low-level wrapper for `::pdf_document_event_did_print()`."""
  15024. return _mupdf.ll_pdf_document_event_did_print(doc)
  15025. def ll_pdf_document_event_did_save(doc):
  15026. r"""Low-level wrapper for `::pdf_document_event_did_save()`."""
  15027. return _mupdf.ll_pdf_document_event_did_save(doc)
  15028. def ll_pdf_document_event_will_close(doc):
  15029. r"""Low-level wrapper for `::pdf_document_event_will_close()`."""
  15030. return _mupdf.ll_pdf_document_event_will_close(doc)
  15031. def ll_pdf_document_event_will_print(doc):
  15032. r"""Low-level wrapper for `::pdf_document_event_will_print()`."""
  15033. return _mupdf.ll_pdf_document_event_will_print(doc)
  15034. def ll_pdf_document_event_will_save(doc):
  15035. r"""Low-level wrapper for `::pdf_document_event_will_save()`."""
  15036. return _mupdf.ll_pdf_document_event_will_save(doc)
  15037. def ll_pdf_document_from_fz_document(ptr):
  15038. r"""Low-level wrapper for `::pdf_document_from_fz_document()`."""
  15039. return _mupdf.ll_pdf_document_from_fz_document(ptr)
  15040. def ll_pdf_document_language(doc):
  15041. r"""Low-level wrapper for `::pdf_document_language()`."""
  15042. return _mupdf.ll_pdf_document_language(doc)
  15043. def ll_pdf_document_output_intent(doc):
  15044. r"""Low-level wrapper for `::pdf_document_output_intent()`."""
  15045. return _mupdf.ll_pdf_document_output_intent(doc)
  15046. def ll_pdf_document_permissions(doc):
  15047. r"""Low-level wrapper for `::pdf_document_permissions()`."""
  15048. return _mupdf.ll_pdf_document_permissions(doc)
  15049. def ll_pdf_drop_annot(annot):
  15050. r"""Low-level wrapper for `::pdf_drop_annot()`."""
  15051. return _mupdf.ll_pdf_drop_annot(annot)
  15052. def ll_pdf_drop_cmap(cmap):
  15053. r"""Low-level wrapper for `::pdf_drop_cmap()`."""
  15054. return _mupdf.ll_pdf_drop_cmap(cmap)
  15055. def ll_pdf_drop_cmap_imp(cmap):
  15056. r"""Low-level wrapper for `::pdf_drop_cmap_imp()`."""
  15057. return _mupdf.ll_pdf_drop_cmap_imp(cmap)
  15058. def ll_pdf_drop_crypt(crypt):
  15059. r"""Low-level wrapper for `::pdf_drop_crypt()`."""
  15060. return _mupdf.ll_pdf_drop_crypt(crypt)
  15061. def ll_pdf_drop_document(doc):
  15062. r"""Low-level wrapper for `::pdf_drop_document()`."""
  15063. return _mupdf.ll_pdf_drop_document(doc)
  15064. def ll_pdf_drop_font(font):
  15065. r"""Low-level wrapper for `::pdf_drop_font()`."""
  15066. return _mupdf.ll_pdf_drop_font(font)
  15067. def ll_pdf_drop_function(func):
  15068. r"""Low-level wrapper for `::pdf_drop_function()`."""
  15069. return _mupdf.ll_pdf_drop_function(func)
  15070. def ll_pdf_drop_graft_map(map):
  15071. r"""Low-level wrapper for `::pdf_drop_graft_map()`."""
  15072. return _mupdf.ll_pdf_drop_graft_map(map)
  15073. def ll_pdf_drop_journal(journal):
  15074. r"""Low-level wrapper for `::pdf_drop_journal()`."""
  15075. return _mupdf.ll_pdf_drop_journal(journal)
  15076. def ll_pdf_drop_js(js):
  15077. r"""Low-level wrapper for `::pdf_drop_js()`."""
  15078. return _mupdf.ll_pdf_drop_js(js)
  15079. def ll_pdf_drop_local_xref(xref):
  15080. r"""Low-level wrapper for `::pdf_drop_local_xref()`."""
  15081. return _mupdf.ll_pdf_drop_local_xref(xref)
  15082. def ll_pdf_drop_local_xref_and_resources(doc):
  15083. r"""Low-level wrapper for `::pdf_drop_local_xref_and_resources()`."""
  15084. return _mupdf.ll_pdf_drop_local_xref_and_resources(doc)
  15085. def ll_pdf_drop_locked_fields(locked):
  15086. r"""Low-level wrapper for `::pdf_drop_locked_fields()`."""
  15087. return _mupdf.ll_pdf_drop_locked_fields(locked)
  15088. def ll_pdf_drop_mark_bits(marks):
  15089. r"""Low-level wrapper for `::pdf_drop_mark_bits()`."""
  15090. return _mupdf.ll_pdf_drop_mark_bits(marks)
  15091. def ll_pdf_drop_obj(obj):
  15092. r"""Low-level wrapper for `::pdf_drop_obj()`."""
  15093. return _mupdf.ll_pdf_drop_obj(obj)
  15094. def ll_pdf_drop_object_labels(g):
  15095. r"""Low-level wrapper for `::pdf_drop_object_labels()`."""
  15096. return _mupdf.ll_pdf_drop_object_labels(g)
  15097. def ll_pdf_drop_ocg(doc):
  15098. r"""Low-level wrapper for `::pdf_drop_ocg()`."""
  15099. return _mupdf.ll_pdf_drop_ocg(doc)
  15100. def ll_pdf_drop_page(page):
  15101. r"""Low-level wrapper for `::pdf_drop_page()`."""
  15102. return _mupdf.ll_pdf_drop_page(page)
  15103. def ll_pdf_drop_page_tree(doc):
  15104. r"""Low-level wrapper for `::pdf_drop_page_tree()`."""
  15105. return _mupdf.ll_pdf_drop_page_tree(doc)
  15106. def ll_pdf_drop_page_tree_internal(doc):
  15107. r"""Low-level wrapper for `::pdf_drop_page_tree_internal()`."""
  15108. return _mupdf.ll_pdf_drop_page_tree_internal(doc)
  15109. def ll_pdf_drop_pattern(pat):
  15110. r"""Low-level wrapper for `::pdf_drop_pattern()`."""
  15111. return _mupdf.ll_pdf_drop_pattern(pat)
  15112. def ll_pdf_drop_processor(proc):
  15113. r"""Low-level wrapper for `::pdf_drop_processor()`."""
  15114. return _mupdf.ll_pdf_drop_processor(proc)
  15115. def ll_pdf_drop_resource_tables(doc):
  15116. r"""Low-level wrapper for `::pdf_drop_resource_tables()`."""
  15117. return _mupdf.ll_pdf_drop_resource_tables(doc)
  15118. def ll_pdf_drop_signer(signer):
  15119. r"""Low-level wrapper for `::pdf_drop_signer()`."""
  15120. return _mupdf.ll_pdf_drop_signer(signer)
  15121. def ll_pdf_drop_singleton_obj(obj):
  15122. r"""Low-level wrapper for `::pdf_drop_singleton_obj()`."""
  15123. return _mupdf.ll_pdf_drop_singleton_obj(obj)
  15124. def ll_pdf_drop_verifier(verifier):
  15125. r"""Low-level wrapper for `::pdf_drop_verifier()`."""
  15126. return _mupdf.ll_pdf_drop_verifier(verifier)
  15127. def ll_pdf_drop_widget(widget):
  15128. r"""Low-level wrapper for `::pdf_drop_widget()`."""
  15129. return _mupdf.ll_pdf_drop_widget(widget)
  15130. def ll_pdf_edit_text_field_value(widget, value, change, selStart, selEnd, newvalue):
  15131. r"""
  15132. Low-level wrapper for `::pdf_edit_text_field_value()`.
  15133. This function has out-params. Python/C# wrappers look like:
  15134. `ll_pdf_edit_text_field_value(::pdf_annot *widget, const char *value, const char *change)` => `(int, int selStart, int selEnd, char *newvalue)`
  15135. """
  15136. return _mupdf.ll_pdf_edit_text_field_value(widget, value, change, selStart, selEnd, newvalue)
  15137. def ll_pdf_empty_store(doc):
  15138. r"""Low-level wrapper for `::pdf_empty_store()`."""
  15139. return _mupdf.ll_pdf_empty_store(doc)
  15140. def ll_pdf_enable_journal(doc):
  15141. r"""Low-level wrapper for `::pdf_enable_journal()`."""
  15142. return _mupdf.ll_pdf_enable_journal(doc)
  15143. def ll_pdf_enable_js(doc):
  15144. r"""Low-level wrapper for `::pdf_enable_js()`."""
  15145. return _mupdf.ll_pdf_enable_js(doc)
  15146. def ll_pdf_enable_layer(doc, layer, enabled):
  15147. r"""Low-level wrapper for `::pdf_enable_layer()`."""
  15148. return _mupdf.ll_pdf_enable_layer(doc, layer, enabled)
  15149. def ll_pdf_encrypt_data(crypt, num, gen, fmt_str_out, arg, s, n):
  15150. r"""Low-level wrapper for `::pdf_encrypt_data()`."""
  15151. return _mupdf.ll_pdf_encrypt_data(crypt, num, gen, fmt_str_out, arg, s, n)
  15152. def ll_pdf_encrypted_len(crypt, num, gen, len):
  15153. r"""Low-level wrapper for `::pdf_encrypted_len()`."""
  15154. return _mupdf.ll_pdf_encrypted_len(crypt, num, gen, len)
  15155. def ll_pdf_end_hmtx(font):
  15156. r"""Low-level wrapper for `::pdf_end_hmtx()`."""
  15157. return _mupdf.ll_pdf_end_hmtx(font)
  15158. def ll_pdf_end_operation(doc):
  15159. r"""Low-level wrapper for `::pdf_end_operation()`."""
  15160. return _mupdf.ll_pdf_end_operation(doc)
  15161. def ll_pdf_end_vmtx(font):
  15162. r"""Low-level wrapper for `::pdf_end_vmtx()`."""
  15163. return _mupdf.ll_pdf_end_vmtx(font)
  15164. def ll_pdf_ensure_solid_xref(doc, num):
  15165. r"""Low-level wrapper for `::pdf_ensure_solid_xref()`."""
  15166. return _mupdf.ll_pdf_ensure_solid_xref(doc, num)
  15167. def ll_pdf_eval_function(func, _in, inlen, out, outlen):
  15168. r"""
  15169. Low-level wrapper for `::pdf_eval_function()`.
  15170. This function has out-params. Python/C# wrappers look like:
  15171. `ll_pdf_eval_function(::pdf_function *func, const float *in, int inlen, int outlen)` => float out
  15172. """
  15173. return _mupdf.ll_pdf_eval_function(func, _in, inlen, out, outlen)
  15174. def ll_pdf_event_issue_alert(doc, evt):
  15175. r"""Low-level wrapper for `::pdf_event_issue_alert()`."""
  15176. return _mupdf.ll_pdf_event_issue_alert(doc, evt)
  15177. def ll_pdf_event_issue_exec_menu_item(doc, item):
  15178. r"""Low-level wrapper for `::pdf_event_issue_exec_menu_item()`."""
  15179. return _mupdf.ll_pdf_event_issue_exec_menu_item(doc, item)
  15180. def ll_pdf_event_issue_launch_url(doc, url, new_frame):
  15181. r"""Low-level wrapper for `::pdf_event_issue_launch_url()`."""
  15182. return _mupdf.ll_pdf_event_issue_launch_url(doc, url, new_frame)
  15183. def ll_pdf_event_issue_mail_doc(doc, evt):
  15184. r"""Low-level wrapper for `::pdf_event_issue_mail_doc()`."""
  15185. return _mupdf.ll_pdf_event_issue_mail_doc(doc, evt)
  15186. def ll_pdf_event_issue_print(doc):
  15187. r"""Low-level wrapper for `::pdf_event_issue_print()`."""
  15188. return _mupdf.ll_pdf_event_issue_print(doc)
  15189. def ll_pdf_field_border_style(field):
  15190. r"""Low-level wrapper for `::pdf_field_border_style()`."""
  15191. return _mupdf.ll_pdf_field_border_style(field)
  15192. def ll_pdf_field_display(field):
  15193. r"""Low-level wrapper for `::pdf_field_display()`."""
  15194. return _mupdf.ll_pdf_field_display(field)
  15195. def ll_pdf_field_event_calculate(doc, field):
  15196. r"""Low-level wrapper for `::pdf_field_event_calculate()`."""
  15197. return _mupdf.ll_pdf_field_event_calculate(doc, field)
  15198. def ll_pdf_field_event_format(doc, field):
  15199. r"""Low-level wrapper for `::pdf_field_event_format()`."""
  15200. return _mupdf.ll_pdf_field_event_format(doc, field)
  15201. def ll_pdf_field_event_keystroke(doc, field, evt):
  15202. r"""Low-level wrapper for `::pdf_field_event_keystroke()`."""
  15203. return _mupdf.ll_pdf_field_event_keystroke(doc, field, evt)
  15204. def ll_pdf_field_event_validate(doc, field, value, newvalue):
  15205. r"""
  15206. Low-level wrapper for `::pdf_field_event_validate()`.
  15207. This function has out-params. Python/C# wrappers look like:
  15208. `ll_pdf_field_event_validate(::pdf_document *doc, ::pdf_obj *field, const char *value)` => `(int, char *newvalue)`
  15209. """
  15210. return _mupdf.ll_pdf_field_event_validate(doc, field, value, newvalue)
  15211. def ll_pdf_field_flags(field):
  15212. r"""Low-level wrapper for `::pdf_field_flags()`."""
  15213. return _mupdf.ll_pdf_field_flags(field)
  15214. def ll_pdf_field_label(field):
  15215. r"""Low-level wrapper for `::pdf_field_label()`."""
  15216. return _mupdf.ll_pdf_field_label(field)
  15217. def ll_pdf_field_reset(doc, field):
  15218. r"""Low-level wrapper for `::pdf_field_reset()`."""
  15219. return _mupdf.ll_pdf_field_reset(doc, field)
  15220. def ll_pdf_field_set_border_style(field, text):
  15221. r"""Low-level wrapper for `::pdf_field_set_border_style()`."""
  15222. return _mupdf.ll_pdf_field_set_border_style(field, text)
  15223. def ll_pdf_field_set_button_caption(field, text):
  15224. r"""Low-level wrapper for `::pdf_field_set_button_caption()`."""
  15225. return _mupdf.ll_pdf_field_set_button_caption(field, text)
  15226. def ll_pdf_field_set_display(field, d):
  15227. r"""Low-level wrapper for `::pdf_field_set_display()`."""
  15228. return _mupdf.ll_pdf_field_set_display(field, d)
  15229. def ll_pdf_field_set_fill_color(field, col):
  15230. r"""Low-level wrapper for `::pdf_field_set_fill_color()`."""
  15231. return _mupdf.ll_pdf_field_set_fill_color(field, col)
  15232. def ll_pdf_field_set_text_color(field, col):
  15233. r"""Low-level wrapper for `::pdf_field_set_text_color()`."""
  15234. return _mupdf.ll_pdf_field_set_text_color(field, col)
  15235. def ll_pdf_field_type(field):
  15236. r"""Low-level wrapper for `::pdf_field_type()`."""
  15237. return _mupdf.ll_pdf_field_type(field)
  15238. def ll_pdf_field_type_string(field):
  15239. r"""Low-level wrapper for `::pdf_field_type_string()`."""
  15240. return _mupdf.ll_pdf_field_type_string(field)
  15241. def ll_pdf_field_value(field):
  15242. r"""Low-level wrapper for `::pdf_field_value()`."""
  15243. return _mupdf.ll_pdf_field_value(field)
  15244. def ll_pdf_filter_annot_contents(doc, annot, options):
  15245. r"""Low-level wrapper for `::pdf_filter_annot_contents()`."""
  15246. return _mupdf.ll_pdf_filter_annot_contents(doc, annot, options)
  15247. def ll_pdf_filter_page_contents(doc, page, options):
  15248. r"""Low-level wrapper for `::pdf_filter_page_contents()`."""
  15249. return _mupdf.ll_pdf_filter_page_contents(doc, page, options)
  15250. def ll_pdf_filter_xobject_instance(old_xobj, page_res, ctm, options, cycle_up):
  15251. r"""Low-level wrapper for `::pdf_filter_xobject_instance()`."""
  15252. return _mupdf.ll_pdf_filter_xobject_instance(old_xobj, page_res, ctm, options, cycle_up)
  15253. def ll_pdf_find_colorspace_resource(doc, item, key):
  15254. r"""Low-level wrapper for `::pdf_find_colorspace_resource()`."""
  15255. return _mupdf.ll_pdf_find_colorspace_resource(doc, item, key)
  15256. def ll_pdf_find_font_resource(doc, type, encoding, item, key):
  15257. r"""Low-level wrapper for `::pdf_find_font_resource()`."""
  15258. return _mupdf.ll_pdf_find_font_resource(doc, type, encoding, item, key)
  15259. def ll_pdf_find_item(drop, key):
  15260. r"""Low-level wrapper for `::pdf_find_item()`."""
  15261. return _mupdf.ll_pdf_find_item(drop, key)
  15262. def ll_pdf_find_locked_fields(doc, version):
  15263. r"""Low-level wrapper for `::pdf_find_locked_fields()`."""
  15264. return _mupdf.ll_pdf_find_locked_fields(doc, version)
  15265. def ll_pdf_find_locked_fields_for_sig(doc, sig):
  15266. r"""Low-level wrapper for `::pdf_find_locked_fields_for_sig()`."""
  15267. return _mupdf.ll_pdf_find_locked_fields_for_sig(doc, sig)
  15268. def ll_pdf_find_version_for_obj(doc, obj):
  15269. r"""Low-level wrapper for `::pdf_find_version_for_obj()`."""
  15270. return _mupdf.ll_pdf_find_version_for_obj(doc, obj)
  15271. def ll_pdf_first_annot(page):
  15272. r"""Low-level wrapper for `::pdf_first_annot()`."""
  15273. return _mupdf.ll_pdf_first_annot(page)
  15274. def ll_pdf_first_widget(page):
  15275. r"""Low-level wrapper for `::pdf_first_widget()`."""
  15276. return _mupdf.ll_pdf_first_widget(page)
  15277. def ll_pdf_flatten_inheritable_page_items(page):
  15278. r"""Low-level wrapper for `::pdf_flatten_inheritable_page_items()`."""
  15279. return _mupdf.ll_pdf_flatten_inheritable_page_items(page)
  15280. def ll_pdf_font_cid_to_gid(fontdesc, cid):
  15281. r"""Low-level wrapper for `::pdf_font_cid_to_gid()`."""
  15282. return _mupdf.ll_pdf_font_cid_to_gid(fontdesc, cid)
  15283. def ll_pdf_font_writing_supported(font):
  15284. r"""Low-level wrapper for `::pdf_font_writing_supported()`."""
  15285. return _mupdf.ll_pdf_font_writing_supported(font)
  15286. def ll_pdf_forget_xref(doc):
  15287. r"""Low-level wrapper for `::pdf_forget_xref()`."""
  15288. return _mupdf.ll_pdf_forget_xref(doc)
  15289. def ll_pdf_format_date(time, s, n):
  15290. r"""Low-level wrapper for `::pdf_format_date()`."""
  15291. return _mupdf.ll_pdf_format_date(time, s, n)
  15292. def ll_pdf_format_write_options(buffer, buffer_len, opts):
  15293. r"""Low-level wrapper for `::pdf_format_write_options()`."""
  15294. return _mupdf.ll_pdf_format_write_options(buffer, buffer_len, opts)
  15295. def ll_pdf_function_size(func):
  15296. r"""Low-level wrapper for `::pdf_function_size()`."""
  15297. return _mupdf.ll_pdf_function_size(func)
  15298. def ll_pdf_get_bound_document(obj):
  15299. r"""Low-level wrapper for `::pdf_get_bound_document()`."""
  15300. return _mupdf.ll_pdf_get_bound_document(obj)
  15301. def ll_pdf_get_doc_event_callback_data(doc):
  15302. r"""Low-level wrapper for `::pdf_get_doc_event_callback_data()`."""
  15303. return _mupdf.ll_pdf_get_doc_event_callback_data(doc)
  15304. def ll_pdf_get_filespec_params(fs, out):
  15305. r"""Low-level wrapper for `::pdf_get_filespec_params()`."""
  15306. return _mupdf.ll_pdf_get_filespec_params(fs, out)
  15307. def ll_pdf_get_incremental_xref_entry(doc, i):
  15308. r"""Low-level wrapper for `::pdf_get_incremental_xref_entry()`."""
  15309. return _mupdf.ll_pdf_get_incremental_xref_entry(doc, i)
  15310. def ll_pdf_get_indirect_document(obj):
  15311. r"""Low-level wrapper for `::pdf_get_indirect_document()`."""
  15312. return _mupdf.ll_pdf_get_indirect_document(obj)
  15313. def ll_pdf_get_populating_xref_entry(doc, i):
  15314. r"""Low-level wrapper for `::pdf_get_populating_xref_entry()`."""
  15315. return _mupdf.ll_pdf_get_populating_xref_entry(doc, i)
  15316. def ll_pdf_get_widget_editing_state(widget):
  15317. r"""Low-level wrapper for `::pdf_get_widget_editing_state()`."""
  15318. return _mupdf.ll_pdf_get_widget_editing_state(widget)
  15319. def ll_pdf_get_xref_entry(doc, i):
  15320. r"""Low-level wrapper for `::pdf_get_xref_entry()`."""
  15321. return _mupdf.ll_pdf_get_xref_entry(doc, i)
  15322. def ll_pdf_get_xref_entry_no_change(doc, i):
  15323. r"""Low-level wrapper for `::pdf_get_xref_entry_no_change()`."""
  15324. return _mupdf.ll_pdf_get_xref_entry_no_change(doc, i)
  15325. def ll_pdf_get_xref_entry_no_null(doc, i):
  15326. r"""Low-level wrapper for `::pdf_get_xref_entry_no_null()`."""
  15327. return _mupdf.ll_pdf_get_xref_entry_no_null(doc, i)
  15328. def ll_pdf_graft_mapped_object(map, obj):
  15329. r"""Low-level wrapper for `::pdf_graft_mapped_object()`."""
  15330. return _mupdf.ll_pdf_graft_mapped_object(map, obj)
  15331. def ll_pdf_graft_mapped_page(map, page_to, src, page_from):
  15332. r"""Low-level wrapper for `::pdf_graft_mapped_page()`."""
  15333. return _mupdf.ll_pdf_graft_mapped_page(map, page_to, src, page_from)
  15334. def ll_pdf_graft_object(dst, obj):
  15335. r"""Low-level wrapper for `::pdf_graft_object()`."""
  15336. return _mupdf.ll_pdf_graft_object(dst, obj)
  15337. def ll_pdf_graft_page(dst, page_to, src, page_from):
  15338. r"""Low-level wrapper for `::pdf_graft_page()`."""
  15339. return _mupdf.ll_pdf_graft_page(dst, page_to, src, page_from)
  15340. def ll_pdf_has_permission(doc, p):
  15341. r"""Low-level wrapper for `::pdf_has_permission()`."""
  15342. return _mupdf.ll_pdf_has_permission(doc, p)
  15343. def ll_pdf_has_unsaved_changes(doc):
  15344. r"""Low-level wrapper for `::pdf_has_unsaved_changes()`."""
  15345. return _mupdf.ll_pdf_has_unsaved_changes(doc)
  15346. def ll_pdf_has_unsaved_sigs(doc):
  15347. r"""Low-level wrapper for `::pdf_has_unsaved_sigs()`."""
  15348. return _mupdf.ll_pdf_has_unsaved_sigs(doc)
  15349. def ll_pdf_incremental_change_since_signing_widget(widget):
  15350. r"""Low-level wrapper for `::pdf_incremental_change_since_signing_widget()`."""
  15351. return _mupdf.ll_pdf_incremental_change_since_signing_widget(widget)
  15352. def ll_pdf_insert_colorspace_resource(doc, key, obj):
  15353. r"""Low-level wrapper for `::pdf_insert_colorspace_resource()`."""
  15354. return _mupdf.ll_pdf_insert_colorspace_resource(doc, key, obj)
  15355. def ll_pdf_insert_font_resource(doc, key, obj):
  15356. r"""Low-level wrapper for `::pdf_insert_font_resource()`."""
  15357. return _mupdf.ll_pdf_insert_font_resource(doc, key, obj)
  15358. def ll_pdf_insert_page(doc, at, page):
  15359. r"""Low-level wrapper for `::pdf_insert_page()`."""
  15360. return _mupdf.ll_pdf_insert_page(doc, at, page)
  15361. def ll_pdf_intent_from_name(obj):
  15362. r"""Low-level wrapper for `::pdf_intent_from_name()`."""
  15363. return _mupdf.ll_pdf_intent_from_name(obj)
  15364. def ll_pdf_intent_from_string(str):
  15365. r"""Low-level wrapper for `::pdf_intent_from_string()`."""
  15366. return _mupdf.ll_pdf_intent_from_string(str)
  15367. def ll_pdf_invalidate_xfa(doc):
  15368. r"""Low-level wrapper for `::pdf_invalidate_xfa()`."""
  15369. return _mupdf.ll_pdf_invalidate_xfa(doc)
  15370. def ll_pdf_is_array(obj):
  15371. r"""Low-level wrapper for `::pdf_is_array()`."""
  15372. return _mupdf.ll_pdf_is_array(obj)
  15373. def ll_pdf_is_bool(obj):
  15374. r"""Low-level wrapper for `::pdf_is_bool()`."""
  15375. return _mupdf.ll_pdf_is_bool(obj)
  15376. def ll_pdf_is_dict(obj):
  15377. r"""Low-level wrapper for `::pdf_is_dict()`."""
  15378. return _mupdf.ll_pdf_is_dict(obj)
  15379. def ll_pdf_is_embedded_file(fs):
  15380. r"""Low-level wrapper for `::pdf_is_embedded_file()`."""
  15381. return _mupdf.ll_pdf_is_embedded_file(fs)
  15382. def ll_pdf_is_field_locked(locked, name):
  15383. r"""Low-level wrapper for `::pdf_is_field_locked()`."""
  15384. return _mupdf.ll_pdf_is_field_locked(locked, name)
  15385. def ll_pdf_is_filespec(fs):
  15386. r"""Low-level wrapper for `::pdf_is_filespec()`."""
  15387. return _mupdf.ll_pdf_is_filespec(fs)
  15388. def ll_pdf_is_image_stream(obj):
  15389. r"""Low-level wrapper for `::pdf_is_image_stream()`."""
  15390. return _mupdf.ll_pdf_is_image_stream(obj)
  15391. def ll_pdf_is_indirect(obj):
  15392. r"""Low-level wrapper for `::pdf_is_indirect()`."""
  15393. return _mupdf.ll_pdf_is_indirect(obj)
  15394. def ll_pdf_is_int(obj):
  15395. r"""Low-level wrapper for `::pdf_is_int()`."""
  15396. return _mupdf.ll_pdf_is_int(obj)
  15397. def ll_pdf_is_jpx_image(dict):
  15398. r"""Low-level wrapper for `::pdf_is_jpx_image()`."""
  15399. return _mupdf.ll_pdf_is_jpx_image(dict)
  15400. def ll_pdf_is_local_object(doc, obj):
  15401. r"""Low-level wrapper for `::pdf_is_local_object()`."""
  15402. return _mupdf.ll_pdf_is_local_object(doc, obj)
  15403. def ll_pdf_is_name(obj):
  15404. r"""Low-level wrapper for `::pdf_is_name()`."""
  15405. return _mupdf.ll_pdf_is_name(obj)
  15406. def ll_pdf_is_null(obj):
  15407. r"""Low-level wrapper for `::pdf_is_null()`."""
  15408. return _mupdf.ll_pdf_is_null(obj)
  15409. def ll_pdf_is_number(obj):
  15410. r"""Low-level wrapper for `::pdf_is_number()`."""
  15411. return _mupdf.ll_pdf_is_number(obj)
  15412. def ll_pdf_is_ocg_hidden(doc, rdb, usage, ocg):
  15413. r"""Low-level wrapper for `::pdf_is_ocg_hidden()`."""
  15414. return _mupdf.ll_pdf_is_ocg_hidden(doc, rdb, usage, ocg)
  15415. def ll_pdf_is_real(obj):
  15416. r"""Low-level wrapper for `::pdf_is_real()`."""
  15417. return _mupdf.ll_pdf_is_real(obj)
  15418. def ll_pdf_is_stream(obj):
  15419. r"""Low-level wrapper for `::pdf_is_stream()`."""
  15420. return _mupdf.ll_pdf_is_stream(obj)
  15421. def ll_pdf_is_string(obj):
  15422. r"""Low-level wrapper for `::pdf_is_string()`."""
  15423. return _mupdf.ll_pdf_is_string(obj)
  15424. def ll_pdf_is_tint_colorspace(cs):
  15425. r"""Low-level wrapper for `::pdf_is_tint_colorspace()`."""
  15426. return _mupdf.ll_pdf_is_tint_colorspace(cs)
  15427. def ll_pdf_js_event_init(js, target, value, willCommit):
  15428. r"""Low-level wrapper for `::pdf_js_event_init()`."""
  15429. return _mupdf.ll_pdf_js_event_init(js, target, value, willCommit)
  15430. def ll_pdf_js_event_init_keystroke(js, target, evt):
  15431. r"""Low-level wrapper for `::pdf_js_event_init_keystroke()`."""
  15432. return _mupdf.ll_pdf_js_event_init_keystroke(js, target, evt)
  15433. def ll_pdf_js_event_result(js):
  15434. r"""Low-level wrapper for `::pdf_js_event_result()`."""
  15435. return _mupdf.ll_pdf_js_event_result(js)
  15436. def ll_pdf_js_event_result_keystroke(js, evt):
  15437. r"""Low-level wrapper for `::pdf_js_event_result_keystroke()`."""
  15438. return _mupdf.ll_pdf_js_event_result_keystroke(js, evt)
  15439. def ll_pdf_js_event_result_validate(js, newvalue):
  15440. r"""
  15441. Low-level wrapper for `::pdf_js_event_result_validate()`.
  15442. This function has out-params. Python/C# wrappers look like:
  15443. `ll_pdf_js_event_result_validate(::pdf_js *js)` => `(int, char *newvalue)`
  15444. """
  15445. return _mupdf.ll_pdf_js_event_result_validate(js, newvalue)
  15446. def ll_pdf_js_event_value(js):
  15447. r"""Low-level wrapper for `::pdf_js_event_value()`."""
  15448. return _mupdf.ll_pdf_js_event_value(js)
  15449. def ll_pdf_js_execute(js, name, code, result):
  15450. r"""
  15451. Low-level wrapper for `::pdf_js_execute()`.
  15452. This function has out-params. Python/C# wrappers look like:
  15453. `ll_pdf_js_execute(::pdf_js *js, const char *name, const char *code)` => char *result
  15454. """
  15455. return _mupdf.ll_pdf_js_execute(js, name, code, result)
  15456. def ll_pdf_js_get_console(doc):
  15457. r"""Low-level wrapper for `::pdf_js_get_console()`."""
  15458. return _mupdf.ll_pdf_js_get_console(doc)
  15459. def ll_pdf_js_set_console(doc, console, user):
  15460. r"""Low-level wrapper for `::pdf_js_set_console()`."""
  15461. return _mupdf.ll_pdf_js_set_console(doc, console, user)
  15462. def ll_pdf_js_supported(doc):
  15463. r"""Low-level wrapper for `::pdf_js_supported()`."""
  15464. return _mupdf.ll_pdf_js_supported(doc)
  15465. def ll_pdf_keep_annot(annot):
  15466. r"""Low-level wrapper for `::pdf_keep_annot()`."""
  15467. return _mupdf.ll_pdf_keep_annot(annot)
  15468. def ll_pdf_keep_cmap(cmap):
  15469. r"""Low-level wrapper for `::pdf_keep_cmap()`."""
  15470. return _mupdf.ll_pdf_keep_cmap(cmap)
  15471. def ll_pdf_keep_document(doc):
  15472. r"""Low-level wrapper for `::pdf_keep_document()`."""
  15473. return _mupdf.ll_pdf_keep_document(doc)
  15474. def ll_pdf_keep_font(fontdesc):
  15475. r"""Low-level wrapper for `::pdf_keep_font()`."""
  15476. return _mupdf.ll_pdf_keep_font(fontdesc)
  15477. def ll_pdf_keep_function(func):
  15478. r"""Low-level wrapper for `::pdf_keep_function()`."""
  15479. return _mupdf.ll_pdf_keep_function(func)
  15480. def ll_pdf_keep_graft_map(map):
  15481. r"""Low-level wrapper for `::pdf_keep_graft_map()`."""
  15482. return _mupdf.ll_pdf_keep_graft_map(map)
  15483. def ll_pdf_keep_obj(obj):
  15484. r"""Low-level wrapper for `::pdf_keep_obj()`."""
  15485. return _mupdf.ll_pdf_keep_obj(obj)
  15486. def ll_pdf_keep_page(page):
  15487. r"""Low-level wrapper for `::pdf_keep_page()`."""
  15488. return _mupdf.ll_pdf_keep_page(page)
  15489. def ll_pdf_keep_pattern(pat):
  15490. r"""Low-level wrapper for `::pdf_keep_pattern()`."""
  15491. return _mupdf.ll_pdf_keep_pattern(pat)
  15492. def ll_pdf_keep_processor(proc):
  15493. r"""Low-level wrapper for `::pdf_keep_processor()`."""
  15494. return _mupdf.ll_pdf_keep_processor(proc)
  15495. def ll_pdf_keep_widget(widget):
  15496. r"""Low-level wrapper for `::pdf_keep_widget()`."""
  15497. return _mupdf.ll_pdf_keep_widget(widget)
  15498. def ll_pdf_label_object(g, num, callback, arg):
  15499. r"""Low-level wrapper for `::pdf_label_object()`."""
  15500. return _mupdf.ll_pdf_label_object(g, num, callback, arg)
  15501. def ll_pdf_layer_config_info(doc, config_num, info):
  15502. r"""Low-level wrapper for `::pdf_layer_config_info()`."""
  15503. return _mupdf.ll_pdf_layer_config_info(doc, config_num, info)
  15504. def ll_pdf_layer_config_ui_info(doc, ui, info):
  15505. r"""Low-level wrapper for `::pdf_layer_config_ui_info()`."""
  15506. return _mupdf.ll_pdf_layer_config_ui_info(doc, ui, info)
  15507. def ll_pdf_layer_is_enabled(doc, layer):
  15508. r"""Low-level wrapper for `::pdf_layer_is_enabled()`."""
  15509. return _mupdf.ll_pdf_layer_is_enabled(doc, layer)
  15510. def ll_pdf_layer_name(doc, layer):
  15511. r"""Low-level wrapper for `::pdf_layer_name()`."""
  15512. return _mupdf.ll_pdf_layer_name(doc, layer)
  15513. def ll_pdf_layout_fit_text(font, lang, str, bounds):
  15514. r"""Low-level wrapper for `::pdf_layout_fit_text()`."""
  15515. return _mupdf.ll_pdf_layout_fit_text(font, lang, str, bounds)
  15516. def ll_pdf_layout_text_widget(annot):
  15517. r"""Low-level wrapper for `::pdf_layout_text_widget()`."""
  15518. return _mupdf.ll_pdf_layout_text_widget(annot)
  15519. def ll_pdf_lex(f, lexbuf):
  15520. r"""Low-level wrapper for `::pdf_lex()`."""
  15521. return _mupdf.ll_pdf_lex(f, lexbuf)
  15522. def ll_pdf_lex_no_string(f, lexbuf):
  15523. r"""Low-level wrapper for `::pdf_lex_no_string()`."""
  15524. return _mupdf.ll_pdf_lex_no_string(f, lexbuf)
  15525. def ll_pdf_lexbuf_fin(lexbuf):
  15526. r"""Low-level wrapper for `::pdf_lexbuf_fin()`."""
  15527. return _mupdf.ll_pdf_lexbuf_fin(lexbuf)
  15528. def ll_pdf_lexbuf_grow(lexbuf):
  15529. r"""Low-level wrapper for `::pdf_lexbuf_grow()`."""
  15530. return _mupdf.ll_pdf_lexbuf_grow(lexbuf)
  15531. def ll_pdf_lexbuf_init(lexbuf, size):
  15532. r"""Low-level wrapper for `::pdf_lexbuf_init()`."""
  15533. return _mupdf.ll_pdf_lexbuf_init(lexbuf, size)
  15534. def ll_pdf_line_ending_from_name(end):
  15535. r"""Low-level wrapper for `::pdf_line_ending_from_name()`."""
  15536. return _mupdf.ll_pdf_line_ending_from_name(end)
  15537. def ll_pdf_line_ending_from_string(end):
  15538. r"""Low-level wrapper for `::pdf_line_ending_from_string()`."""
  15539. return _mupdf.ll_pdf_line_ending_from_string(end)
  15540. def ll_pdf_load_builtin_cmap(name):
  15541. r"""Low-level wrapper for `::pdf_load_builtin_cmap()`."""
  15542. return _mupdf.ll_pdf_load_builtin_cmap(name)
  15543. def ll_pdf_load_cmap(file):
  15544. r"""Low-level wrapper for `::pdf_load_cmap()`."""
  15545. return _mupdf.ll_pdf_load_cmap(file)
  15546. def ll_pdf_load_colorspace(obj):
  15547. r"""Low-level wrapper for `::pdf_load_colorspace()`."""
  15548. return _mupdf.ll_pdf_load_colorspace(obj)
  15549. def ll_pdf_load_compressed_inline_image(doc, dict, length, cstm, indexed, image):
  15550. r"""Low-level wrapper for `::pdf_load_compressed_inline_image()`."""
  15551. return _mupdf.ll_pdf_load_compressed_inline_image(doc, dict, length, cstm, indexed, image)
  15552. def ll_pdf_load_compressed_stream(doc, num, worst_case):
  15553. r"""Low-level wrapper for `::pdf_load_compressed_stream()`."""
  15554. return _mupdf.ll_pdf_load_compressed_stream(doc, num, worst_case)
  15555. def ll_pdf_load_default_colorspaces(doc, page):
  15556. r"""Low-level wrapper for `::pdf_load_default_colorspaces()`."""
  15557. return _mupdf.ll_pdf_load_default_colorspaces(doc, page)
  15558. def ll_pdf_load_embedded_cmap(doc, ref):
  15559. r"""Low-level wrapper for `::pdf_load_embedded_cmap()`."""
  15560. return _mupdf.ll_pdf_load_embedded_cmap(doc, ref)
  15561. def ll_pdf_load_embedded_file_contents(fs):
  15562. r"""Low-level wrapper for `::pdf_load_embedded_file_contents()`."""
  15563. return _mupdf.ll_pdf_load_embedded_file_contents(fs)
  15564. def ll_pdf_load_encoding(estrings, encoding):
  15565. r"""
  15566. Low-level wrapper for `::pdf_load_encoding()`.
  15567. This function has out-params. Python/C# wrappers look like:
  15568. `ll_pdf_load_encoding(const char *encoding)` => const char *estrings
  15569. """
  15570. return _mupdf.ll_pdf_load_encoding(estrings, encoding)
  15571. def ll_pdf_load_field_name(field):
  15572. r"""Low-level wrapper for `::pdf_load_field_name()`."""
  15573. return _mupdf.ll_pdf_load_field_name(field)
  15574. def ll_pdf_load_field_name2(field):
  15575. r"""Alternative to `ll_pdf_load_field_name()` that returns a std::string."""
  15576. return _mupdf.ll_pdf_load_field_name2(field)
  15577. def ll_pdf_load_font(doc, rdb, obj):
  15578. r"""Low-level wrapper for `::pdf_load_font()`."""
  15579. return _mupdf.ll_pdf_load_font(doc, rdb, obj)
  15580. def ll_pdf_load_function(ref, _in, out):
  15581. r"""Low-level wrapper for `::pdf_load_function()`."""
  15582. return _mupdf.ll_pdf_load_function(ref, _in, out)
  15583. def ll_pdf_load_hail_mary_font(doc):
  15584. r"""Low-level wrapper for `::pdf_load_hail_mary_font()`."""
  15585. return _mupdf.ll_pdf_load_hail_mary_font(doc)
  15586. def ll_pdf_load_image(doc, obj):
  15587. r"""Low-level wrapper for `::pdf_load_image()`."""
  15588. return _mupdf.ll_pdf_load_image(doc, obj)
  15589. def ll_pdf_load_inline_image(doc, rdb, dict, file):
  15590. r"""Low-level wrapper for `::pdf_load_inline_image()`."""
  15591. return _mupdf.ll_pdf_load_inline_image(doc, rdb, dict, file)
  15592. def ll_pdf_load_journal(doc, filename):
  15593. r"""Low-level wrapper for `::pdf_load_journal()`."""
  15594. return _mupdf.ll_pdf_load_journal(doc, filename)
  15595. def ll_pdf_load_link_annots(arg_1, arg_2, annots, pagenum, page_ctm):
  15596. r"""Low-level wrapper for `::pdf_load_link_annots()`."""
  15597. return _mupdf.ll_pdf_load_link_annots(arg_1, arg_2, annots, pagenum, page_ctm)
  15598. def ll_pdf_load_links(page):
  15599. r"""Low-level wrapper for `::pdf_load_links()`."""
  15600. return _mupdf.ll_pdf_load_links(page)
  15601. def ll_pdf_load_name_tree(doc, which):
  15602. r"""Low-level wrapper for `::pdf_load_name_tree()`."""
  15603. return _mupdf.ll_pdf_load_name_tree(doc, which)
  15604. def ll_pdf_load_object(doc, num):
  15605. r"""
  15606. Low-level wrapper for `::pdf_load_object()`.
  15607. Load a given object.
  15608. This can cause xref reorganisations (solidifications etc) due to
  15609. repairs, so all held pdf_xref_entries should be considered
  15610. invalid after this call (other than the returned one).
  15611. """
  15612. return _mupdf.ll_pdf_load_object(doc, num)
  15613. def ll_pdf_load_object_labels(doc):
  15614. r"""Low-level wrapper for `::pdf_load_object_labels()`."""
  15615. return _mupdf.ll_pdf_load_object_labels(doc)
  15616. def ll_pdf_load_outline(doc):
  15617. r"""Low-level wrapper for `::pdf_load_outline()`."""
  15618. return _mupdf.ll_pdf_load_outline(doc)
  15619. def ll_pdf_load_page(doc, number):
  15620. r"""Low-level wrapper for `::pdf_load_page()`."""
  15621. return _mupdf.ll_pdf_load_page(doc, number)
  15622. def ll_pdf_load_page_imp(doc, chapter, number):
  15623. r"""Low-level wrapper for `::pdf_load_page_imp()`."""
  15624. return _mupdf.ll_pdf_load_page_imp(doc, chapter, number)
  15625. def ll_pdf_load_page_tree(doc):
  15626. r"""Low-level wrapper for `::pdf_load_page_tree()`."""
  15627. return _mupdf.ll_pdf_load_page_tree(doc)
  15628. def ll_pdf_load_pattern(doc, obj):
  15629. r"""Low-level wrapper for `::pdf_load_pattern()`."""
  15630. return _mupdf.ll_pdf_load_pattern(doc, obj)
  15631. def ll_pdf_load_raw_stream(ref):
  15632. r"""Low-level wrapper for `::pdf_load_raw_stream()`."""
  15633. return _mupdf.ll_pdf_load_raw_stream(ref)
  15634. def ll_pdf_load_raw_stream_number(doc, num):
  15635. r"""Low-level wrapper for `::pdf_load_raw_stream_number()`."""
  15636. return _mupdf.ll_pdf_load_raw_stream_number(doc, num)
  15637. def ll_pdf_load_shading(doc, obj):
  15638. r"""Low-level wrapper for `::pdf_load_shading()`."""
  15639. return _mupdf.ll_pdf_load_shading(doc, obj)
  15640. def ll_pdf_load_stream(ref):
  15641. r"""Low-level wrapper for `::pdf_load_stream()`."""
  15642. return _mupdf.ll_pdf_load_stream(ref)
  15643. def ll_pdf_load_stream_number(doc, num):
  15644. r"""Low-level wrapper for `::pdf_load_stream_number()`."""
  15645. return _mupdf.ll_pdf_load_stream_number(doc, num)
  15646. def ll_pdf_load_stream_or_string_as_utf8(src):
  15647. r"""Low-level wrapper for `::pdf_load_stream_or_string_as_utf8()`."""
  15648. return _mupdf.ll_pdf_load_stream_or_string_as_utf8(src)
  15649. def ll_pdf_load_system_cmap(name):
  15650. r"""Low-level wrapper for `::pdf_load_system_cmap()`."""
  15651. return _mupdf.ll_pdf_load_system_cmap(name)
  15652. def ll_pdf_load_to_unicode(doc, font, strings, collection, cmapstm):
  15653. r"""
  15654. Low-level wrapper for `::pdf_load_to_unicode()`.
  15655. This function has out-params. Python/C# wrappers look like:
  15656. `ll_pdf_load_to_unicode(::pdf_document *doc, ::pdf_font_desc *font, char *collection, ::pdf_obj *cmapstm)` => const char *strings
  15657. """
  15658. return _mupdf.ll_pdf_load_to_unicode(doc, font, strings, collection, cmapstm)
  15659. def ll_pdf_load_type3_font(doc, rdb, obj):
  15660. r"""Low-level wrapper for `::pdf_load_type3_font()`."""
  15661. return _mupdf.ll_pdf_load_type3_font(doc, rdb, obj)
  15662. def ll_pdf_load_type3_glyphs(doc, fontdesc):
  15663. r"""Low-level wrapper for `::pdf_load_type3_glyphs()`."""
  15664. return _mupdf.ll_pdf_load_type3_glyphs(doc, fontdesc)
  15665. def ll_pdf_load_unencrypted_object(doc, num):
  15666. r"""Low-level wrapper for `::pdf_load_unencrypted_object()`."""
  15667. return _mupdf.ll_pdf_load_unencrypted_object(doc, num)
  15668. def ll_pdf_lookup_cmap(cmap, cpt):
  15669. r"""Low-level wrapper for `::pdf_lookup_cmap()`."""
  15670. return _mupdf.ll_pdf_lookup_cmap(cmap, cpt)
  15671. def ll_pdf_lookup_cmap_full(cmap, cpt, out):
  15672. r"""
  15673. Low-level wrapper for `::pdf_lookup_cmap_full()`.
  15674. This function has out-params. Python/C# wrappers look like:
  15675. `ll_pdf_lookup_cmap_full(::pdf_cmap *cmap, unsigned int cpt)` => `(int, int out)`
  15676. """
  15677. return _mupdf.ll_pdf_lookup_cmap_full(cmap, cpt, out)
  15678. def ll_pdf_lookup_dest(doc, needle):
  15679. r"""Low-level wrapper for `::pdf_lookup_dest()`."""
  15680. return _mupdf.ll_pdf_lookup_dest(doc, needle)
  15681. def ll_pdf_lookup_field(form, name):
  15682. r"""Low-level wrapper for `::pdf_lookup_field()`."""
  15683. return _mupdf.ll_pdf_lookup_field(form, name)
  15684. def ll_pdf_lookup_hmtx(font, cid):
  15685. r"""Low-level wrapper for `::pdf_lookup_hmtx()`."""
  15686. return _mupdf.ll_pdf_lookup_hmtx(font, cid)
  15687. def ll_pdf_lookup_metadata(doc, key, ptr, size):
  15688. r"""Low-level wrapper for `::pdf_lookup_metadata()`."""
  15689. return _mupdf.ll_pdf_lookup_metadata(doc, key, ptr, size)
  15690. def ll_pdf_lookup_metadata2(doc, key):
  15691. r"""
  15692. Low-level wrapper for `::pdf_lookup_metadata2()`.
  15693. C++ alternative to `pdf_lookup_metadata()` that returns a `std::string`
  15694. or calls `fz_throw()` if not found.
  15695. """
  15696. return _mupdf.ll_pdf_lookup_metadata2(doc, key)
  15697. def ll_pdf_lookup_name(doc, which, needle):
  15698. r"""Low-level wrapper for `::pdf_lookup_name()`."""
  15699. return _mupdf.ll_pdf_lookup_name(doc, which, needle)
  15700. def ll_pdf_lookup_number(root, needle):
  15701. r"""Low-level wrapper for `::pdf_lookup_number()`."""
  15702. return _mupdf.ll_pdf_lookup_number(root, needle)
  15703. def ll_pdf_lookup_page_loc(doc, needle, parentp, indexp):
  15704. r"""
  15705. Low-level wrapper for `::pdf_lookup_page_loc()`.
  15706. This function has out-params. Python/C# wrappers look like:
  15707. `ll_pdf_lookup_page_loc(::pdf_document *doc, int needle, ::pdf_obj **parentp)` => `(pdf_obj *, int indexp)`
  15708. """
  15709. return _mupdf.ll_pdf_lookup_page_loc(doc, needle, parentp, indexp)
  15710. def ll_pdf_lookup_page_number(doc, pageobj):
  15711. r"""Low-level wrapper for `::pdf_lookup_page_number()`."""
  15712. return _mupdf.ll_pdf_lookup_page_number(doc, pageobj)
  15713. def ll_pdf_lookup_page_obj(doc, needle):
  15714. r"""Low-level wrapper for `::pdf_lookup_page_obj()`."""
  15715. return _mupdf.ll_pdf_lookup_page_obj(doc, needle)
  15716. def ll_pdf_lookup_substitute_font(mono, serif, bold, italic, len):
  15717. r"""
  15718. Low-level wrapper for `::pdf_lookup_substitute_font()`.
  15719. This function has out-params. Python/C# wrappers look like:
  15720. `ll_pdf_lookup_substitute_font(int mono, int serif, int bold, int italic)` => `(const unsigned char *, int len)`
  15721. """
  15722. return _mupdf.ll_pdf_lookup_substitute_font(mono, serif, bold, italic, len)
  15723. def ll_pdf_lookup_vmtx(font, cid):
  15724. r"""Low-level wrapper for `::pdf_lookup_vmtx()`."""
  15725. return _mupdf.ll_pdf_lookup_vmtx(font, cid)
  15726. def ll_pdf_map_one_to_many(cmap, one, many, len):
  15727. r"""
  15728. Low-level wrapper for `::pdf_map_one_to_many()`.
  15729. This function has out-params. Python/C# wrappers look like:
  15730. `ll_pdf_map_one_to_many(::pdf_cmap *cmap, unsigned int one, size_t len)` => int many
  15731. """
  15732. return _mupdf.ll_pdf_map_one_to_many(cmap, one, many, len)
  15733. def ll_pdf_map_range_to_range(cmap, srclo, srchi, dstlo):
  15734. r"""Low-level wrapper for `::pdf_map_range_to_range()`."""
  15735. return _mupdf.ll_pdf_map_range_to_range(cmap, srclo, srchi, dstlo)
  15736. def ll_pdf_mark_bits_reset(marks):
  15737. r"""Low-level wrapper for `::pdf_mark_bits_reset()`."""
  15738. return _mupdf.ll_pdf_mark_bits_reset(marks)
  15739. def ll_pdf_mark_bits_set(marks, obj):
  15740. r"""Low-level wrapper for `::pdf_mark_bits_set()`."""
  15741. return _mupdf.ll_pdf_mark_bits_set(marks, obj)
  15742. def ll_pdf_mark_list_check(list, obj):
  15743. r"""Low-level wrapper for `::pdf_mark_list_check()`."""
  15744. return _mupdf.ll_pdf_mark_list_check(list, obj)
  15745. def ll_pdf_mark_list_free(list):
  15746. r"""Low-level wrapper for `::pdf_mark_list_free()`."""
  15747. return _mupdf.ll_pdf_mark_list_free(list)
  15748. def ll_pdf_mark_list_init(list):
  15749. r"""Low-level wrapper for `::pdf_mark_list_init()`."""
  15750. return _mupdf.ll_pdf_mark_list_init(list)
  15751. def ll_pdf_mark_list_pop(list):
  15752. r"""Low-level wrapper for `::pdf_mark_list_pop()`."""
  15753. return _mupdf.ll_pdf_mark_list_pop(list)
  15754. def ll_pdf_mark_list_push(list, obj):
  15755. r"""Low-level wrapper for `::pdf_mark_list_push()`."""
  15756. return _mupdf.ll_pdf_mark_list_push(list, obj)
  15757. def ll_pdf_mark_obj(obj):
  15758. r"""Low-level wrapper for `::pdf_mark_obj()`."""
  15759. return _mupdf.ll_pdf_mark_obj(obj)
  15760. def ll_pdf_mark_xref(doc):
  15761. r"""Low-level wrapper for `::pdf_mark_xref()`."""
  15762. return _mupdf.ll_pdf_mark_xref(doc)
  15763. def ll_pdf_metadata(doc):
  15764. r"""Low-level wrapper for `::pdf_metadata()`."""
  15765. return _mupdf.ll_pdf_metadata(doc)
  15766. def ll_pdf_minimize_document(doc):
  15767. r"""Low-level wrapper for `::pdf_minimize_document()`."""
  15768. return _mupdf.ll_pdf_minimize_document(doc)
  15769. def ll_pdf_name_eq(a, b):
  15770. r"""Low-level wrapper for `::pdf_name_eq()`."""
  15771. return _mupdf.ll_pdf_name_eq(a, b)
  15772. def ll_pdf_name_from_intent(intent):
  15773. r"""Low-level wrapper for `::pdf_name_from_intent()`."""
  15774. return _mupdf.ll_pdf_name_from_intent(intent)
  15775. def ll_pdf_name_from_line_ending(end):
  15776. r"""Low-level wrapper for `::pdf_name_from_line_ending()`."""
  15777. return _mupdf.ll_pdf_name_from_line_ending(end)
  15778. def ll_pdf_needs_password(doc):
  15779. r"""Low-level wrapper for `::pdf_needs_password()`."""
  15780. return _mupdf.ll_pdf_needs_password(doc)
  15781. def ll_pdf_new_action_from_link(doc, uri):
  15782. r"""Low-level wrapper for `::pdf_new_action_from_link()`."""
  15783. return _mupdf.ll_pdf_new_action_from_link(doc, uri)
  15784. def ll_pdf_new_array(doc, initialcap):
  15785. r"""Low-level wrapper for `::pdf_new_array()`."""
  15786. return _mupdf.ll_pdf_new_array(doc, initialcap)
  15787. def ll_pdf_new_buffer_processor(buffer, ahxencode, newlines):
  15788. r"""Low-level wrapper for `::pdf_new_buffer_processor()`."""
  15789. return _mupdf.ll_pdf_new_buffer_processor(buffer, ahxencode, newlines)
  15790. def ll_pdf_new_cmap():
  15791. r"""Low-level wrapper for `::pdf_new_cmap()`."""
  15792. return _mupdf.ll_pdf_new_cmap()
  15793. def ll_pdf_new_color_filter(doc, chain, struct_parents, transform, options, copts):
  15794. r"""Low-level wrapper for `::pdf_new_color_filter()`."""
  15795. return _mupdf.ll_pdf_new_color_filter(doc, chain, struct_parents, transform, options, copts)
  15796. def ll_pdf_new_crypt(enc, id):
  15797. r"""Low-level wrapper for `::pdf_new_crypt()`."""
  15798. return _mupdf.ll_pdf_new_crypt(enc, id)
  15799. def ll_pdf_new_date(doc, time):
  15800. r"""Low-level wrapper for `::pdf_new_date()`."""
  15801. return _mupdf.ll_pdf_new_date(doc, time)
  15802. def ll_pdf_new_dest_from_link(doc, uri, is_remote):
  15803. r"""Low-level wrapper for `::pdf_new_dest_from_link()`."""
  15804. return _mupdf.ll_pdf_new_dest_from_link(doc, uri, is_remote)
  15805. def ll_pdf_new_dict(doc, initialcap):
  15806. r"""Low-level wrapper for `::pdf_new_dict()`."""
  15807. return _mupdf.ll_pdf_new_dict(doc, initialcap)
  15808. def ll_pdf_new_display_list_from_annot(annot):
  15809. r"""Low-level wrapper for `::pdf_new_display_list_from_annot()`."""
  15810. return _mupdf.ll_pdf_new_display_list_from_annot(annot)
  15811. def ll_pdf_new_encrypt(opwd_utf8, upwd_utf8, id, permissions, algorithm):
  15812. r"""Low-level wrapper for `::pdf_new_encrypt()`."""
  15813. return _mupdf.ll_pdf_new_encrypt(opwd_utf8, upwd_utf8, id, permissions, algorithm)
  15814. def ll_pdf_new_font_desc():
  15815. r"""Low-level wrapper for `::pdf_new_font_desc()`."""
  15816. return _mupdf.ll_pdf_new_font_desc()
  15817. def ll_pdf_new_graft_map(dst):
  15818. r"""Low-level wrapper for `::pdf_new_graft_map()`."""
  15819. return _mupdf.ll_pdf_new_graft_map(dst)
  15820. def ll_pdf_new_identity_cmap(wmode, bytes):
  15821. r"""Low-level wrapper for `::pdf_new_identity_cmap()`."""
  15822. return _mupdf.ll_pdf_new_identity_cmap(wmode, bytes)
  15823. def ll_pdf_new_indirect(doc, num, gen):
  15824. r"""Low-level wrapper for `::pdf_new_indirect()`."""
  15825. return _mupdf.ll_pdf_new_indirect(doc, num, gen)
  15826. def ll_pdf_new_int(i):
  15827. r"""Low-level wrapper for `::pdf_new_int()`."""
  15828. return _mupdf.ll_pdf_new_int(i)
  15829. def ll_pdf_new_link(page, rect, uri, obj):
  15830. r"""Low-level wrapper for `::pdf_new_link()`."""
  15831. return _mupdf.ll_pdf_new_link(page, rect, uri, obj)
  15832. def ll_pdf_new_local_xref(doc):
  15833. r"""Low-level wrapper for `::pdf_new_local_xref()`."""
  15834. return _mupdf.ll_pdf_new_local_xref(doc)
  15835. def ll_pdf_new_mark_bits(doc):
  15836. r"""Low-level wrapper for `::pdf_new_mark_bits()`."""
  15837. return _mupdf.ll_pdf_new_mark_bits(doc)
  15838. def ll_pdf_new_matrix(doc, mtx):
  15839. r"""Low-level wrapper for `::pdf_new_matrix()`."""
  15840. return _mupdf.ll_pdf_new_matrix(doc, mtx)
  15841. def ll_pdf_new_name(str):
  15842. r"""Low-level wrapper for `::pdf_new_name()`."""
  15843. return _mupdf.ll_pdf_new_name(str)
  15844. def ll_pdf_new_outline_iterator(doc):
  15845. r"""Low-level wrapper for `::pdf_new_outline_iterator()`."""
  15846. return _mupdf.ll_pdf_new_outline_iterator(doc)
  15847. def ll_pdf_new_output_processor(out, ahxencode, newlines):
  15848. r"""Low-level wrapper for `::pdf_new_output_processor()`."""
  15849. return _mupdf.ll_pdf_new_output_processor(out, ahxencode, newlines)
  15850. def ll_pdf_new_pdf_device(doc, topctm, resources, contents):
  15851. r"""Low-level wrapper for `::pdf_new_pdf_device()`."""
  15852. return _mupdf.ll_pdf_new_pdf_device(doc, topctm, resources, contents)
  15853. def ll_pdf_new_pixmap_from_annot(annot, ctm, cs, seps, alpha):
  15854. r"""Low-level wrapper for `::pdf_new_pixmap_from_annot()`."""
  15855. return _mupdf.ll_pdf_new_pixmap_from_annot(annot, ctm, cs, seps, alpha)
  15856. def ll_pdf_new_pixmap_from_page_contents_with_separations_and_usage(page, ctm, cs, seps, alpha, usage, box):
  15857. r"""Low-level wrapper for `::pdf_new_pixmap_from_page_contents_with_separations_and_usage()`."""
  15858. return _mupdf.ll_pdf_new_pixmap_from_page_contents_with_separations_and_usage(page, ctm, cs, seps, alpha, usage, box)
  15859. def ll_pdf_new_pixmap_from_page_contents_with_usage(page, ctm, cs, alpha, usage, box):
  15860. r"""Low-level wrapper for `::pdf_new_pixmap_from_page_contents_with_usage()`."""
  15861. return _mupdf.ll_pdf_new_pixmap_from_page_contents_with_usage(page, ctm, cs, alpha, usage, box)
  15862. def ll_pdf_new_pixmap_from_page_with_separations_and_usage(page, ctm, cs, seps, alpha, usage, box):
  15863. r"""Low-level wrapper for `::pdf_new_pixmap_from_page_with_separations_and_usage()`."""
  15864. return _mupdf.ll_pdf_new_pixmap_from_page_with_separations_and_usage(page, ctm, cs, seps, alpha, usage, box)
  15865. def ll_pdf_new_pixmap_from_page_with_usage(page, ctm, cs, alpha, usage, box):
  15866. r"""Low-level wrapper for `::pdf_new_pixmap_from_page_with_usage()`."""
  15867. return _mupdf.ll_pdf_new_pixmap_from_page_with_usage(page, ctm, cs, alpha, usage, box)
  15868. def ll_pdf_new_point(doc, point):
  15869. r"""Low-level wrapper for `::pdf_new_point()`."""
  15870. return _mupdf.ll_pdf_new_point(doc, point)
  15871. def ll_pdf_new_processor(size):
  15872. r"""Low-level wrapper for `::pdf_new_processor()`."""
  15873. return _mupdf.ll_pdf_new_processor(size)
  15874. def ll_pdf_new_real(f):
  15875. r"""Low-level wrapper for `::pdf_new_real()`."""
  15876. return _mupdf.ll_pdf_new_real(f)
  15877. def ll_pdf_new_rect(doc, rect):
  15878. r"""Low-level wrapper for `::pdf_new_rect()`."""
  15879. return _mupdf.ll_pdf_new_rect(doc, rect)
  15880. def ll_pdf_new_run_processor(doc, dev, ctm, struct_parent, usage, gstate, default_cs, cookie, fill_gstate, stroke_gstate):
  15881. r"""Low-level wrapper for `::pdf_new_run_processor()`."""
  15882. return _mupdf.ll_pdf_new_run_processor(doc, dev, ctm, struct_parent, usage, gstate, default_cs, cookie, fill_gstate, stroke_gstate)
  15883. def ll_pdf_new_sanitize_filter(doc, chain, struct_parents, transform, options, sopts):
  15884. r"""Low-level wrapper for `::pdf_new_sanitize_filter()`."""
  15885. return _mupdf.ll_pdf_new_sanitize_filter(doc, chain, struct_parents, transform, options, sopts)
  15886. def ll_pdf_new_stext_page_from_annot(annot, options):
  15887. r"""Low-level wrapper for `::pdf_new_stext_page_from_annot()`."""
  15888. return _mupdf.ll_pdf_new_stext_page_from_annot(annot, options)
  15889. def ll_pdf_new_string(str, len):
  15890. r"""Low-level wrapper for `::pdf_new_string()`."""
  15891. return _mupdf.ll_pdf_new_string(str, len)
  15892. def ll_pdf_new_text_string(s):
  15893. r"""Low-level wrapper for `::pdf_new_text_string()`."""
  15894. return _mupdf.ll_pdf_new_text_string(s)
  15895. def ll_pdf_new_uri_from_explicit_dest(dest):
  15896. r"""Low-level wrapper for `::pdf_new_uri_from_explicit_dest()`."""
  15897. return _mupdf.ll_pdf_new_uri_from_explicit_dest(dest)
  15898. def ll_pdf_new_uri_from_path_and_explicit_dest(path, dest):
  15899. r"""Low-level wrapper for `::pdf_new_uri_from_path_and_explicit_dest()`."""
  15900. return _mupdf.ll_pdf_new_uri_from_path_and_explicit_dest(path, dest)
  15901. def ll_pdf_new_uri_from_path_and_named_dest(path, name):
  15902. r"""Low-level wrapper for `::pdf_new_uri_from_path_and_named_dest()`."""
  15903. return _mupdf.ll_pdf_new_uri_from_path_and_named_dest(path, name)
  15904. def ll_pdf_new_utf8_from_pdf_stream_obj(src):
  15905. r"""Low-level wrapper for `::pdf_new_utf8_from_pdf_stream_obj()`."""
  15906. return _mupdf.ll_pdf_new_utf8_from_pdf_stream_obj(src)
  15907. def ll_pdf_new_utf8_from_pdf_string(srcptr, srclen):
  15908. r"""Low-level wrapper for `::pdf_new_utf8_from_pdf_string()`."""
  15909. return _mupdf.ll_pdf_new_utf8_from_pdf_string(srcptr, srclen)
  15910. def ll_pdf_new_utf8_from_pdf_string_obj(src):
  15911. r"""Low-level wrapper for `::pdf_new_utf8_from_pdf_string_obj()`."""
  15912. return _mupdf.ll_pdf_new_utf8_from_pdf_string_obj(src)
  15913. def ll_pdf_new_xobject(doc, bbox, matrix, res, buffer):
  15914. r"""Low-level wrapper for `::pdf_new_xobject()`."""
  15915. return _mupdf.ll_pdf_new_xobject(doc, bbox, matrix, res, buffer)
  15916. def ll_pdf_next_annot(annot):
  15917. r"""Low-level wrapper for `::pdf_next_annot()`."""
  15918. return _mupdf.ll_pdf_next_annot(annot)
  15919. def ll_pdf_next_widget(previous):
  15920. r"""Low-level wrapper for `::pdf_next_widget()`."""
  15921. return _mupdf.ll_pdf_next_widget(previous)
  15922. def ll_pdf_nuke_annots(page):
  15923. r"""Low-level wrapper for `::pdf_nuke_annots()`."""
  15924. return _mupdf.ll_pdf_nuke_annots(page)
  15925. def ll_pdf_nuke_links(page):
  15926. r"""Low-level wrapper for `::pdf_nuke_links()`."""
  15927. return _mupdf.ll_pdf_nuke_links(page)
  15928. def ll_pdf_nuke_page(page):
  15929. r"""Low-level wrapper for `::pdf_nuke_page()`."""
  15930. return _mupdf.ll_pdf_nuke_page(page)
  15931. def ll_pdf_obj_is_dirty(obj):
  15932. r"""Low-level wrapper for `::pdf_obj_is_dirty()`."""
  15933. return _mupdf.ll_pdf_obj_is_dirty(obj)
  15934. def ll_pdf_obj_is_incremental(obj):
  15935. r"""Low-level wrapper for `::pdf_obj_is_incremental()`."""
  15936. return _mupdf.ll_pdf_obj_is_incremental(obj)
  15937. def ll_pdf_obj_marked(obj):
  15938. r"""Low-level wrapper for `::pdf_obj_marked()`."""
  15939. return _mupdf.ll_pdf_obj_marked(obj)
  15940. def ll_pdf_obj_memo(obj, bit, memo):
  15941. r"""
  15942. Low-level wrapper for `::pdf_obj_memo()`.
  15943. This function has out-params. Python/C# wrappers look like:
  15944. `ll_pdf_obj_memo(::pdf_obj *obj, int bit)` => `(int, int memo)`
  15945. """
  15946. return _mupdf.ll_pdf_obj_memo(obj, bit, memo)
  15947. def ll_pdf_obj_num_is_stream(doc, num):
  15948. r"""Low-level wrapper for `::pdf_obj_num_is_stream()`."""
  15949. return _mupdf.ll_pdf_obj_num_is_stream(doc, num)
  15950. def ll_pdf_obj_parent_num(obj):
  15951. r"""Low-level wrapper for `::pdf_obj_parent_num()`."""
  15952. return _mupdf.ll_pdf_obj_parent_num(obj)
  15953. def ll_pdf_obj_refs(ref):
  15954. r"""Low-level wrapper for `::pdf_obj_refs()`."""
  15955. return _mupdf.ll_pdf_obj_refs(ref)
  15956. def ll_pdf_objcmp(a, b):
  15957. r"""Low-level wrapper for `::pdf_objcmp()`."""
  15958. return _mupdf.ll_pdf_objcmp(a, b)
  15959. def ll_pdf_objcmp_deep(a, b):
  15960. r"""Low-level wrapper for `::pdf_objcmp_deep()`."""
  15961. return _mupdf.ll_pdf_objcmp_deep(a, b)
  15962. def ll_pdf_objcmp_resolve(a, b):
  15963. r"""Low-level wrapper for `::pdf_objcmp_resolve()`."""
  15964. return _mupdf.ll_pdf_objcmp_resolve(a, b)
  15965. def ll_pdf_object_exists(doc, num):
  15966. r"""Low-level wrapper for `::pdf_object_exists()`."""
  15967. return _mupdf.ll_pdf_object_exists(doc, num)
  15968. def ll_pdf_open_contents_stream(doc, obj):
  15969. r"""Low-level wrapper for `::pdf_open_contents_stream()`."""
  15970. return _mupdf.ll_pdf_open_contents_stream(doc, obj)
  15971. def ll_pdf_open_crypt(chain, crypt, num, gen):
  15972. r"""Low-level wrapper for `::pdf_open_crypt()`."""
  15973. return _mupdf.ll_pdf_open_crypt(chain, crypt, num, gen)
  15974. def ll_pdf_open_crypt_with_filter(chain, crypt, name, num, gen):
  15975. r"""Low-level wrapper for `::pdf_open_crypt_with_filter()`."""
  15976. return _mupdf.ll_pdf_open_crypt_with_filter(chain, crypt, name, num, gen)
  15977. def ll_pdf_open_document(filename):
  15978. r"""Low-level wrapper for `::pdf_open_document()`."""
  15979. return _mupdf.ll_pdf_open_document(filename)
  15980. def ll_pdf_open_document_with_stream(file):
  15981. r"""Low-level wrapper for `::pdf_open_document_with_stream()`."""
  15982. return _mupdf.ll_pdf_open_document_with_stream(file)
  15983. def ll_pdf_open_inline_stream(doc, stmobj, length, chain, params):
  15984. r"""Low-level wrapper for `::pdf_open_inline_stream()`."""
  15985. return _mupdf.ll_pdf_open_inline_stream(doc, stmobj, length, chain, params)
  15986. def ll_pdf_open_raw_stream(ref):
  15987. r"""Low-level wrapper for `::pdf_open_raw_stream()`."""
  15988. return _mupdf.ll_pdf_open_raw_stream(ref)
  15989. def ll_pdf_open_raw_stream_number(doc, num):
  15990. r"""Low-level wrapper for `::pdf_open_raw_stream_number()`."""
  15991. return _mupdf.ll_pdf_open_raw_stream_number(doc, num)
  15992. def ll_pdf_open_stream(ref):
  15993. r"""Low-level wrapper for `::pdf_open_stream()`."""
  15994. return _mupdf.ll_pdf_open_stream(ref)
  15995. def ll_pdf_open_stream_number(doc, num):
  15996. r"""Low-level wrapper for `::pdf_open_stream_number()`."""
  15997. return _mupdf.ll_pdf_open_stream_number(doc, num)
  15998. def ll_pdf_open_stream_with_offset(doc, num, dict, stm_ofs):
  15999. r"""Low-level wrapper for `::pdf_open_stream_with_offset()`."""
  16000. return _mupdf.ll_pdf_open_stream_with_offset(doc, num, dict, stm_ofs)
  16001. def ll_pdf_page_associated_file(page, idx):
  16002. r"""Low-level wrapper for `::pdf_page_associated_file()`."""
  16003. return _mupdf.ll_pdf_page_associated_file(page, idx)
  16004. def ll_pdf_page_contents(page):
  16005. r"""Low-level wrapper for `::pdf_page_contents()`."""
  16006. return _mupdf.ll_pdf_page_contents(page)
  16007. def ll_pdf_page_event_close(page):
  16008. r"""Low-level wrapper for `::pdf_page_event_close()`."""
  16009. return _mupdf.ll_pdf_page_event_close(page)
  16010. def ll_pdf_page_event_open(page):
  16011. r"""Low-level wrapper for `::pdf_page_event_open()`."""
  16012. return _mupdf.ll_pdf_page_event_open(page)
  16013. def ll_pdf_page_from_fz_page(ptr):
  16014. r"""Low-level wrapper for `::pdf_page_from_fz_page()`."""
  16015. return _mupdf.ll_pdf_page_from_fz_page(ptr)
  16016. def ll_pdf_page_group(page):
  16017. r"""Low-level wrapper for `::pdf_page_group()`."""
  16018. return _mupdf.ll_pdf_page_group(page)
  16019. def ll_pdf_page_has_transparency(page):
  16020. r"""Low-level wrapper for `::pdf_page_has_transparency()`."""
  16021. return _mupdf.ll_pdf_page_has_transparency(page)
  16022. def ll_pdf_page_label(doc, page, buf, size):
  16023. r"""Low-level wrapper for `::pdf_page_label()`."""
  16024. return _mupdf.ll_pdf_page_label(doc, page, buf, size)
  16025. def ll_pdf_page_label_imp(doc, chapter, page, buf, size):
  16026. r"""Low-level wrapper for `::pdf_page_label_imp()`."""
  16027. return _mupdf.ll_pdf_page_label_imp(doc, chapter, page, buf, size)
  16028. def ll_pdf_page_obj_transform(pageobj, outbox, outctm):
  16029. r"""Low-level wrapper for `::pdf_page_obj_transform()`."""
  16030. return _mupdf.ll_pdf_page_obj_transform(pageobj, outbox, outctm)
  16031. def ll_pdf_page_obj_transform_box(pageobj, outbox, out, box):
  16032. r"""Low-level wrapper for `::pdf_page_obj_transform_box()`."""
  16033. return _mupdf.ll_pdf_page_obj_transform_box(pageobj, outbox, out, box)
  16034. def ll_pdf_page_presentation(page, transition, duration):
  16035. r"""
  16036. Low-level wrapper for `::pdf_page_presentation()`.
  16037. This function has out-params. Python/C# wrappers look like:
  16038. `ll_pdf_page_presentation(::pdf_page *page, ::fz_transition *transition)` => `(fz_transition *, float duration)`
  16039. """
  16040. return _mupdf.ll_pdf_page_presentation(page, transition, duration)
  16041. def ll_pdf_page_resources(page):
  16042. r"""Low-level wrapper for `::pdf_page_resources()`."""
  16043. return _mupdf.ll_pdf_page_resources(page)
  16044. def ll_pdf_page_separations(page):
  16045. r"""Low-level wrapper for `::pdf_page_separations()`."""
  16046. return _mupdf.ll_pdf_page_separations(page)
  16047. def ll_pdf_page_transform(page, mediabox, ctm):
  16048. r"""Low-level wrapper for `::pdf_page_transform()`."""
  16049. return _mupdf.ll_pdf_page_transform(page, mediabox, ctm)
  16050. def ll_pdf_page_transform_box(page, mediabox, ctm, box):
  16051. r"""Low-level wrapper for `::pdf_page_transform_box()`."""
  16052. return _mupdf.ll_pdf_page_transform_box(page, mediabox, ctm, box)
  16053. def ll_pdf_page_write(doc, mediabox, presources, pcontents):
  16054. r"""
  16055. Low-level wrapper for `::pdf_page_write()`.
  16056. This function has out-params. Python/C# wrappers look like:
  16057. `ll_pdf_page_write(::pdf_document *doc, ::fz_rect mediabox, ::pdf_obj **presources, ::fz_buffer **pcontents)` => `(fz_device *)`
  16058. """
  16059. return _mupdf.ll_pdf_page_write(doc, mediabox, presources, pcontents)
  16060. def ll_pdf_parse_array(doc, f, buf):
  16061. r"""Low-level wrapper for `::pdf_parse_array()`."""
  16062. return _mupdf.ll_pdf_parse_array(doc, f, buf)
  16063. def ll_pdf_parse_date(s):
  16064. r"""Low-level wrapper for `::pdf_parse_date()`."""
  16065. return _mupdf.ll_pdf_parse_date(s)
  16066. def ll_pdf_parse_default_appearance(da, font, size, n, color):
  16067. r"""
  16068. Low-level wrapper for `::pdf_parse_default_appearance()`.
  16069. This function has out-params. Python/C# wrappers look like:
  16070. `ll_pdf_parse_default_appearance(const char *da, float color[4])` => `(const char *font, float size, int n)`
  16071. """
  16072. return _mupdf.ll_pdf_parse_default_appearance(da, font, size, n, color)
  16073. def ll_pdf_parse_default_appearance_unmapped(da, font_name, font_name_len, size, n, color):
  16074. r"""
  16075. Low-level wrapper for `::pdf_parse_default_appearance_unmapped()`.
  16076. This function has out-params. Python/C# wrappers look like:
  16077. `ll_pdf_parse_default_appearance_unmapped(const char *da, char *font_name, int font_name_len, float color[4])` => `(float size, int n)`
  16078. """
  16079. return _mupdf.ll_pdf_parse_default_appearance_unmapped(da, font_name, font_name_len, size, n, color)
  16080. def ll_pdf_parse_dict(doc, f, buf):
  16081. r"""Low-level wrapper for `::pdf_parse_dict()`."""
  16082. return _mupdf.ll_pdf_parse_dict(doc, f, buf)
  16083. def ll_pdf_parse_ind_obj(doc, f, num, gen, stm_ofs, try_repair):
  16084. r"""
  16085. Low-level wrapper for `::pdf_parse_ind_obj()`.
  16086. This function has out-params. Python/C# wrappers look like:
  16087. `ll_pdf_parse_ind_obj(::pdf_document *doc, ::fz_stream *f)` => `(pdf_obj *, int num, int gen, int64_t stm_ofs, int try_repair)`
  16088. """
  16089. return _mupdf.ll_pdf_parse_ind_obj(doc, f, num, gen, stm_ofs, try_repair)
  16090. def ll_pdf_parse_journal_obj(doc, stm, onum, ostm, newobj):
  16091. r"""
  16092. Low-level wrapper for `::pdf_parse_journal_obj()`.
  16093. This function has out-params. Python/C# wrappers look like:
  16094. `ll_pdf_parse_journal_obj(::pdf_document *doc, ::fz_stream *stm, ::fz_buffer **ostm)` => `(pdf_obj *, int onum, int newobj)`
  16095. """
  16096. return _mupdf.ll_pdf_parse_journal_obj(doc, stm, onum, ostm, newobj)
  16097. def ll_pdf_parse_stm_obj(doc, f, buf):
  16098. r"""Low-level wrapper for `::pdf_parse_stm_obj()`."""
  16099. return _mupdf.ll_pdf_parse_stm_obj(doc, f, buf)
  16100. def ll_pdf_parse_write_options(opts, args):
  16101. r"""Low-level wrapper for `::pdf_parse_write_options()`."""
  16102. return _mupdf.ll_pdf_parse_write_options(opts, args)
  16103. def ll_pdf_pin_document(obj):
  16104. r"""Low-level wrapper for `::pdf_pin_document()`."""
  16105. return _mupdf.ll_pdf_pin_document(obj)
  16106. def ll_pdf_preview_signature_as_display_list(w, h, lang, signer, appearance_flags, graphic, reason, location):
  16107. r"""Low-level wrapper for `::pdf_preview_signature_as_display_list()`."""
  16108. return _mupdf.ll_pdf_preview_signature_as_display_list(w, h, lang, signer, appearance_flags, graphic, reason, location)
  16109. def ll_pdf_preview_signature_as_pixmap(w, h, lang, signer, appearance_flags, graphic, reason, location):
  16110. r"""Low-level wrapper for `::pdf_preview_signature_as_pixmap()`."""
  16111. return _mupdf.ll_pdf_preview_signature_as_pixmap(w, h, lang, signer, appearance_flags, graphic, reason, location)
  16112. def ll_pdf_print_crypt(out, crypt):
  16113. r"""Low-level wrapper for `::pdf_print_crypt()`."""
  16114. return _mupdf.ll_pdf_print_crypt(out, crypt)
  16115. def ll_pdf_print_default_appearance(buf, nbuf, font, size, n, color):
  16116. r"""Low-level wrapper for `::pdf_print_default_appearance()`."""
  16117. return _mupdf.ll_pdf_print_default_appearance(buf, nbuf, font, size, n, color)
  16118. def ll_pdf_print_encrypted_obj(out, obj, tight, ascii, crypt, num, gen, sep):
  16119. r"""
  16120. Low-level wrapper for `::pdf_print_encrypted_obj()`.
  16121. This function has out-params. Python/C# wrappers look like:
  16122. `ll_pdf_print_encrypted_obj(::fz_output *out, ::pdf_obj *obj, int tight, int ascii, ::pdf_crypt *crypt, int num, int gen)` => int sep
  16123. """
  16124. return _mupdf.ll_pdf_print_encrypted_obj(out, obj, tight, ascii, crypt, num, gen, sep)
  16125. def ll_pdf_print_font(out, fontdesc):
  16126. r"""Low-level wrapper for `::pdf_print_font()`."""
  16127. return _mupdf.ll_pdf_print_font(out, fontdesc)
  16128. def ll_pdf_print_obj(out, obj, tight, ascii):
  16129. r"""Low-level wrapper for `::pdf_print_obj()`."""
  16130. return _mupdf.ll_pdf_print_obj(out, obj, tight, ascii)
  16131. def ll_pdf_process_annot(proc, annot, cookie):
  16132. r"""Low-level wrapper for `::pdf_process_annot()`."""
  16133. return _mupdf.ll_pdf_process_annot(proc, annot, cookie)
  16134. def ll_pdf_process_contents(proc, doc, res, stm, cookie, out_res):
  16135. r"""
  16136. Low-level wrapper for `::pdf_process_contents()`.
  16137. This function has out-params. Python/C# wrappers look like:
  16138. `ll_pdf_process_contents(::pdf_processor *proc, ::pdf_document *doc, ::pdf_obj *res, ::pdf_obj *stm, ::fz_cookie *cookie, ::pdf_obj **out_res)` =>
  16139. """
  16140. return _mupdf.ll_pdf_process_contents(proc, doc, res, stm, cookie, out_res)
  16141. def ll_pdf_process_glyph(proc, doc, resources, contents):
  16142. r"""Low-level wrapper for `::pdf_process_glyph()`."""
  16143. return _mupdf.ll_pdf_process_glyph(proc, doc, resources, contents)
  16144. def ll_pdf_process_raw_contents(proc, doc, rdb, stmobj, cookie):
  16145. r"""Low-level wrapper for `::pdf_process_raw_contents()`."""
  16146. return _mupdf.ll_pdf_process_raw_contents(proc, doc, rdb, stmobj, cookie)
  16147. def ll_pdf_processor_pop_resources(proc):
  16148. r"""Low-level wrapper for `::pdf_processor_pop_resources()`."""
  16149. return _mupdf.ll_pdf_processor_pop_resources(proc)
  16150. def ll_pdf_processor_push_resources(proc, res):
  16151. r"""Low-level wrapper for `::pdf_processor_push_resources()`."""
  16152. return _mupdf.ll_pdf_processor_push_resources(proc, res)
  16153. def ll_pdf_progressive_advance(doc, pagenum):
  16154. r"""Low-level wrapper for `::pdf_progressive_advance()`."""
  16155. return _mupdf.ll_pdf_progressive_advance(doc, pagenum)
  16156. def ll_pdf_purge_local_resources(doc):
  16157. r"""Low-level wrapper for `::pdf_purge_local_resources()`."""
  16158. return _mupdf.ll_pdf_purge_local_resources(doc)
  16159. def ll_pdf_purge_locals_from_store(doc):
  16160. r"""Low-level wrapper for `::pdf_purge_locals_from_store()`."""
  16161. return _mupdf.ll_pdf_purge_locals_from_store(doc)
  16162. def ll_pdf_purge_object_from_store(doc, num):
  16163. r"""Low-level wrapper for `::pdf_purge_object_from_store()`."""
  16164. return _mupdf.ll_pdf_purge_object_from_store(doc, num)
  16165. def ll_pdf_read_journal(doc, stm):
  16166. r"""Low-level wrapper for `::pdf_read_journal()`."""
  16167. return _mupdf.ll_pdf_read_journal(doc, stm)
  16168. def ll_pdf_read_ocg(doc):
  16169. r"""Low-level wrapper for `::pdf_read_ocg()`."""
  16170. return _mupdf.ll_pdf_read_ocg(doc)
  16171. def ll_pdf_rearrange_pages(doc, count, pages, structure):
  16172. r"""Low-level wrapper for `::pdf_rearrange_pages()`."""
  16173. return _mupdf.ll_pdf_rearrange_pages(doc, count, pages, structure)
  16174. def ll_pdf_rearrange_pages2(doc, pages, structure):
  16175. r"""Low-level wrapper for `::pdf_rearrange_pages2()`. Swig-friendly wrapper for pdf_rearrange_pages()."""
  16176. return _mupdf.ll_pdf_rearrange_pages2(doc, pages, structure)
  16177. def ll_pdf_recolor_page(doc, pagenum, opts):
  16178. r"""Low-level wrapper for `::pdf_recolor_page()`."""
  16179. return _mupdf.ll_pdf_recolor_page(doc, pagenum, opts)
  16180. def ll_pdf_recolor_shade(shade, reshade, opaque):
  16181. r"""
  16182. Low-level wrapper for `::pdf_recolor_shade()`.
  16183. Recolor a shade.
  16184. """
  16185. return _mupdf.ll_pdf_recolor_shade(shade, reshade, opaque)
  16186. def ll_pdf_redact_page(doc, page, opts):
  16187. r"""Low-level wrapper for `::pdf_redact_page()`."""
  16188. return _mupdf.ll_pdf_redact_page(doc, page, opts)
  16189. def ll_pdf_redo(doc):
  16190. r"""Low-level wrapper for `::pdf_redo()`."""
  16191. return _mupdf.ll_pdf_redo(doc)
  16192. def ll_pdf_remove_item(drop, key):
  16193. r"""Low-level wrapper for `::pdf_remove_item()`."""
  16194. return _mupdf.ll_pdf_remove_item(drop, key)
  16195. def ll_pdf_remove_output_intents(doc):
  16196. r"""Low-level wrapper for `::pdf_remove_output_intents()`."""
  16197. return _mupdf.ll_pdf_remove_output_intents(doc)
  16198. def ll_pdf_repair_obj(doc, buf, stmofsp, stmlenp, encrypt, id, page, tmpofs, root):
  16199. r"""
  16200. Low-level wrapper for `::pdf_repair_obj()`.
  16201. This function has out-params. Python/C# wrappers look like:
  16202. `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)`
  16203. """
  16204. return _mupdf.ll_pdf_repair_obj(doc, buf, stmofsp, stmlenp, encrypt, id, page, tmpofs, root)
  16205. def ll_pdf_repair_xref(doc):
  16206. r"""Low-level wrapper for `::pdf_repair_xref()`."""
  16207. return _mupdf.ll_pdf_repair_xref(doc)
  16208. def ll_pdf_replace_xref(doc, entries, n):
  16209. r"""Low-level wrapper for `::pdf_replace_xref()`."""
  16210. return _mupdf.ll_pdf_replace_xref(doc, entries, n)
  16211. def ll_pdf_reset_form(doc, fields, exclude):
  16212. r"""Low-level wrapper for `::pdf_reset_form()`."""
  16213. return _mupdf.ll_pdf_reset_form(doc, fields, exclude)
  16214. def ll_pdf_reset_processor(proc):
  16215. r"""Low-level wrapper for `::pdf_reset_processor()`."""
  16216. return _mupdf.ll_pdf_reset_processor(proc)
  16217. def ll_pdf_resolve_indirect(ref):
  16218. r"""
  16219. Low-level wrapper for `::pdf_resolve_indirect()`.
  16220. Resolve an indirect object (or chain of objects).
  16221. This can cause xref reorganisations (solidifications etc) due to
  16222. repairs, so all held pdf_xref_entries should be considered
  16223. invalid after this call (other than the returned one).
  16224. """
  16225. return _mupdf.ll_pdf_resolve_indirect(ref)
  16226. def ll_pdf_resolve_indirect_chain(ref):
  16227. r"""Low-level wrapper for `::pdf_resolve_indirect_chain()`."""
  16228. return _mupdf.ll_pdf_resolve_indirect_chain(ref)
  16229. def ll_pdf_resolve_link(doc, uri, xp, yp):
  16230. r"""
  16231. Low-level wrapper for `::pdf_resolve_link()`.
  16232. This function has out-params. Python/C# wrappers look like:
  16233. `ll_pdf_resolve_link(::pdf_document *doc, const char *uri)` => `(int, float xp, float yp)`
  16234. """
  16235. return _mupdf.ll_pdf_resolve_link(doc, uri, xp, yp)
  16236. def ll_pdf_resolve_link_dest(doc, uri):
  16237. r"""Low-level wrapper for `::pdf_resolve_link_dest()`."""
  16238. return _mupdf.ll_pdf_resolve_link_dest(doc, uri)
  16239. def ll_pdf_rewrite_images(doc, opts):
  16240. r"""Low-level wrapper for `::pdf_rewrite_images()`."""
  16241. return _mupdf.ll_pdf_rewrite_images(doc, opts)
  16242. def ll_pdf_run_annot(annot, dev, ctm, cookie):
  16243. r"""Low-level wrapper for `::pdf_run_annot()`."""
  16244. return _mupdf.ll_pdf_run_annot(annot, dev, ctm, cookie)
  16245. def ll_pdf_run_document_structure(doc, dev, cookie):
  16246. r"""Low-level wrapper for `::pdf_run_document_structure()`."""
  16247. return _mupdf.ll_pdf_run_document_structure(doc, dev, cookie)
  16248. def ll_pdf_run_glyph(doc, resources, contents, dev, ctm, gstate, default_cs, fill_gstate, stroke_gstate):
  16249. r"""Low-level wrapper for `::pdf_run_glyph()`."""
  16250. return _mupdf.ll_pdf_run_glyph(doc, resources, contents, dev, ctm, gstate, default_cs, fill_gstate, stroke_gstate)
  16251. def ll_pdf_run_page(page, dev, ctm, cookie):
  16252. r"""Low-level wrapper for `::pdf_run_page()`."""
  16253. return _mupdf.ll_pdf_run_page(page, dev, ctm, cookie)
  16254. def ll_pdf_run_page_annots(page, dev, ctm, cookie):
  16255. r"""Low-level wrapper for `::pdf_run_page_annots()`."""
  16256. return _mupdf.ll_pdf_run_page_annots(page, dev, ctm, cookie)
  16257. def ll_pdf_run_page_annots_with_usage(page, dev, ctm, usage, cookie):
  16258. r"""Low-level wrapper for `::pdf_run_page_annots_with_usage()`."""
  16259. return _mupdf.ll_pdf_run_page_annots_with_usage(page, dev, ctm, usage, cookie)
  16260. def ll_pdf_run_page_contents(page, dev, ctm, cookie):
  16261. r"""Low-level wrapper for `::pdf_run_page_contents()`."""
  16262. return _mupdf.ll_pdf_run_page_contents(page, dev, ctm, cookie)
  16263. def ll_pdf_run_page_contents_with_usage(page, dev, ctm, usage, cookie):
  16264. r"""Low-level wrapper for `::pdf_run_page_contents_with_usage()`."""
  16265. return _mupdf.ll_pdf_run_page_contents_with_usage(page, dev, ctm, usage, cookie)
  16266. def ll_pdf_run_page_widgets(page, dev, ctm, cookie):
  16267. r"""Low-level wrapper for `::pdf_run_page_widgets()`."""
  16268. return _mupdf.ll_pdf_run_page_widgets(page, dev, ctm, cookie)
  16269. def ll_pdf_run_page_widgets_with_usage(page, dev, ctm, usage, cookie):
  16270. r"""Low-level wrapper for `::pdf_run_page_widgets_with_usage()`."""
  16271. return _mupdf.ll_pdf_run_page_widgets_with_usage(page, dev, ctm, usage, cookie)
  16272. def ll_pdf_run_page_with_usage(page, dev, ctm, usage, cookie):
  16273. r"""Low-level wrapper for `::pdf_run_page_with_usage()`."""
  16274. return _mupdf.ll_pdf_run_page_with_usage(page, dev, ctm, usage, cookie)
  16275. def ll_pdf_sample_shade_function(samples, n, funcs, func, t0, t1):
  16276. r"""
  16277. Low-level wrapper for `::pdf_sample_shade_function()`.
  16278. This function has out-params. Python/C# wrappers look like:
  16279. `ll_pdf_sample_shade_function(int n, int funcs, ::pdf_function **func, float t0, float t1)` => `(float samples)`
  16280. """
  16281. return _mupdf.ll_pdf_sample_shade_function(samples, n, funcs, func, t0, t1)
  16282. def ll_pdf_save_document(doc, filename, opts):
  16283. r"""Low-level wrapper for `::pdf_save_document()`."""
  16284. return _mupdf.ll_pdf_save_document(doc, filename, opts)
  16285. def ll_pdf_save_journal(doc, filename):
  16286. r"""Low-level wrapper for `::pdf_save_journal()`."""
  16287. return _mupdf.ll_pdf_save_journal(doc, filename)
  16288. def ll_pdf_save_snapshot(doc, filename):
  16289. r"""Low-level wrapper for `::pdf_save_snapshot()`."""
  16290. return _mupdf.ll_pdf_save_snapshot(doc, filename)
  16291. def ll_pdf_select_layer_config(doc, config_num):
  16292. r"""Low-level wrapper for `::pdf_select_layer_config()`."""
  16293. return _mupdf.ll_pdf_select_layer_config(doc, config_num)
  16294. def ll_pdf_select_layer_config_ui(doc, ui):
  16295. r"""Low-level wrapper for `::pdf_select_layer_config_ui()`."""
  16296. return _mupdf.ll_pdf_select_layer_config_ui(doc, ui)
  16297. def ll_pdf_serialise_journal(doc, out):
  16298. r"""Low-level wrapper for `::pdf_serialise_journal()`."""
  16299. return _mupdf.ll_pdf_serialise_journal(doc, out)
  16300. def ll_pdf_set_annot_active(annot, active):
  16301. r"""Low-level wrapper for `::pdf_set_annot_active()`."""
  16302. return _mupdf.ll_pdf_set_annot_active(annot, active)
  16303. def ll_pdf_set_annot_appearance(annot, appearance, state, ctm, bbox, res, contents):
  16304. r"""Low-level wrapper for `::pdf_set_annot_appearance()`."""
  16305. return _mupdf.ll_pdf_set_annot_appearance(annot, appearance, state, ctm, bbox, res, contents)
  16306. def ll_pdf_set_annot_appearance_from_display_list(annot, appearance, state, ctm, list):
  16307. r"""Low-level wrapper for `::pdf_set_annot_appearance_from_display_list()`."""
  16308. return _mupdf.ll_pdf_set_annot_appearance_from_display_list(annot, appearance, state, ctm, list)
  16309. def ll_pdf_set_annot_author(annot, author):
  16310. r"""Low-level wrapper for `::pdf_set_annot_author()`."""
  16311. return _mupdf.ll_pdf_set_annot_author(annot, author)
  16312. def ll_pdf_set_annot_border(annot, width):
  16313. r"""Low-level wrapper for `::pdf_set_annot_border()`."""
  16314. return _mupdf.ll_pdf_set_annot_border(annot, width)
  16315. def ll_pdf_set_annot_border_effect(annot, effect):
  16316. r"""Low-level wrapper for `::pdf_set_annot_border_effect()`."""
  16317. return _mupdf.ll_pdf_set_annot_border_effect(annot, effect)
  16318. def ll_pdf_set_annot_border_effect_intensity(annot, intensity):
  16319. r"""Low-level wrapper for `::pdf_set_annot_border_effect_intensity()`."""
  16320. return _mupdf.ll_pdf_set_annot_border_effect_intensity(annot, intensity)
  16321. def ll_pdf_set_annot_border_style(annot, style):
  16322. r"""Low-level wrapper for `::pdf_set_annot_border_style()`."""
  16323. return _mupdf.ll_pdf_set_annot_border_style(annot, style)
  16324. def ll_pdf_set_annot_border_width(annot, width):
  16325. r"""Low-level wrapper for `::pdf_set_annot_border_width()`."""
  16326. return _mupdf.ll_pdf_set_annot_border_width(annot, width)
  16327. def ll_pdf_set_annot_callout_line(annot, callout, n):
  16328. r"""Low-level wrapper for `::pdf_set_annot_callout_line()`."""
  16329. return _mupdf.ll_pdf_set_annot_callout_line(annot, callout, n)
  16330. def ll_pdf_set_annot_callout_line2(annot, callout):
  16331. r"""Low-level wrapper for `::pdf_set_annot_callout_line2()`. SWIG-friendly wrapper for pdf_set_annot_callout_line()."""
  16332. return _mupdf.ll_pdf_set_annot_callout_line2(annot, callout)
  16333. def ll_pdf_set_annot_callout_point(annot, p):
  16334. r"""Low-level wrapper for `::pdf_set_annot_callout_point()`."""
  16335. return _mupdf.ll_pdf_set_annot_callout_point(annot, p)
  16336. def ll_pdf_set_annot_callout_style(annot, style):
  16337. r"""Low-level wrapper for `::pdf_set_annot_callout_style()`."""
  16338. return _mupdf.ll_pdf_set_annot_callout_style(annot, style)
  16339. def ll_pdf_set_annot_color(annot, n, color):
  16340. r"""Low-level wrapper for `::pdf_set_annot_color()`."""
  16341. return _mupdf.ll_pdf_set_annot_color(annot, n, color)
  16342. def ll_pdf_set_annot_contents(annot, text):
  16343. r"""Low-level wrapper for `::pdf_set_annot_contents()`."""
  16344. return _mupdf.ll_pdf_set_annot_contents(annot, text)
  16345. def ll_pdf_set_annot_creation_date(annot, time):
  16346. r"""Low-level wrapper for `::pdf_set_annot_creation_date()`."""
  16347. return _mupdf.ll_pdf_set_annot_creation_date(annot, time)
  16348. def ll_pdf_set_annot_default_appearance(annot, font, size, n, color):
  16349. r"""Low-level wrapper for `::pdf_set_annot_default_appearance()`."""
  16350. return _mupdf.ll_pdf_set_annot_default_appearance(annot, font, size, n, color)
  16351. def ll_pdf_set_annot_field_value(doc, widget, text, ignore_trigger_events):
  16352. r"""Low-level wrapper for `::pdf_set_annot_field_value()`."""
  16353. return _mupdf.ll_pdf_set_annot_field_value(doc, widget, text, ignore_trigger_events)
  16354. def ll_pdf_set_annot_filespec(annot, obj):
  16355. r"""Low-level wrapper for `::pdf_set_annot_filespec()`."""
  16356. return _mupdf.ll_pdf_set_annot_filespec(annot, obj)
  16357. def ll_pdf_set_annot_flags(annot, flags):
  16358. r"""Low-level wrapper for `::pdf_set_annot_flags()`."""
  16359. return _mupdf.ll_pdf_set_annot_flags(annot, flags)
  16360. def ll_pdf_set_annot_hidden_for_editing(annot, hidden):
  16361. r"""Low-level wrapper for `::pdf_set_annot_hidden_for_editing()`."""
  16362. return _mupdf.ll_pdf_set_annot_hidden_for_editing(annot, hidden)
  16363. def ll_pdf_set_annot_hot(annot, hot):
  16364. r"""Low-level wrapper for `::pdf_set_annot_hot()`."""
  16365. return _mupdf.ll_pdf_set_annot_hot(annot, hot)
  16366. def ll_pdf_set_annot_icon_name(annot, name):
  16367. r"""Low-level wrapper for `::pdf_set_annot_icon_name()`."""
  16368. return _mupdf.ll_pdf_set_annot_icon_name(annot, name)
  16369. def ll_pdf_set_annot_ink_list(annot, n, count, v):
  16370. r"""Low-level wrapper for `::pdf_set_annot_ink_list()`."""
  16371. return _mupdf.ll_pdf_set_annot_ink_list(annot, n, count, v)
  16372. def ll_pdf_set_annot_intent(annot, it):
  16373. r"""Low-level wrapper for `::pdf_set_annot_intent()`."""
  16374. return _mupdf.ll_pdf_set_annot_intent(annot, it)
  16375. def ll_pdf_set_annot_interior_color(annot, n, color):
  16376. r"""Low-level wrapper for `::pdf_set_annot_interior_color()`."""
  16377. return _mupdf.ll_pdf_set_annot_interior_color(annot, n, color)
  16378. def ll_pdf_set_annot_is_open(annot, is_open):
  16379. r"""Low-level wrapper for `::pdf_set_annot_is_open()`."""
  16380. return _mupdf.ll_pdf_set_annot_is_open(annot, is_open)
  16381. def ll_pdf_set_annot_language(annot, lang):
  16382. r"""Low-level wrapper for `::pdf_set_annot_language()`."""
  16383. return _mupdf.ll_pdf_set_annot_language(annot, lang)
  16384. def ll_pdf_set_annot_line(annot, a, b):
  16385. r"""Low-level wrapper for `::pdf_set_annot_line()`."""
  16386. return _mupdf.ll_pdf_set_annot_line(annot, a, b)
  16387. def ll_pdf_set_annot_line_caption(annot, cap):
  16388. r"""Low-level wrapper for `::pdf_set_annot_line_caption()`."""
  16389. return _mupdf.ll_pdf_set_annot_line_caption(annot, cap)
  16390. def ll_pdf_set_annot_line_caption_offset(annot, offset):
  16391. r"""Low-level wrapper for `::pdf_set_annot_line_caption_offset()`."""
  16392. return _mupdf.ll_pdf_set_annot_line_caption_offset(annot, offset)
  16393. def ll_pdf_set_annot_line_end_style(annot, e):
  16394. r"""Low-level wrapper for `::pdf_set_annot_line_end_style()`."""
  16395. return _mupdf.ll_pdf_set_annot_line_end_style(annot, e)
  16396. def ll_pdf_set_annot_line_ending_styles(annot, start_style, end_style):
  16397. r"""Low-level wrapper for `::pdf_set_annot_line_ending_styles()`."""
  16398. return _mupdf.ll_pdf_set_annot_line_ending_styles(annot, start_style, end_style)
  16399. def ll_pdf_set_annot_line_leader(annot, ll):
  16400. r"""Low-level wrapper for `::pdf_set_annot_line_leader()`."""
  16401. return _mupdf.ll_pdf_set_annot_line_leader(annot, ll)
  16402. def ll_pdf_set_annot_line_leader_extension(annot, lle):
  16403. r"""Low-level wrapper for `::pdf_set_annot_line_leader_extension()`."""
  16404. return _mupdf.ll_pdf_set_annot_line_leader_extension(annot, lle)
  16405. def ll_pdf_set_annot_line_leader_offset(annot, llo):
  16406. r"""Low-level wrapper for `::pdf_set_annot_line_leader_offset()`."""
  16407. return _mupdf.ll_pdf_set_annot_line_leader_offset(annot, llo)
  16408. def ll_pdf_set_annot_line_start_style(annot, s):
  16409. r"""Low-level wrapper for `::pdf_set_annot_line_start_style()`."""
  16410. return _mupdf.ll_pdf_set_annot_line_start_style(annot, s)
  16411. def ll_pdf_set_annot_modification_date(annot, time):
  16412. r"""Low-level wrapper for `::pdf_set_annot_modification_date()`."""
  16413. return _mupdf.ll_pdf_set_annot_modification_date(annot, time)
  16414. def ll_pdf_set_annot_opacity(annot, opacity):
  16415. r"""Low-level wrapper for `::pdf_set_annot_opacity()`."""
  16416. return _mupdf.ll_pdf_set_annot_opacity(annot, opacity)
  16417. def ll_pdf_set_annot_popup(annot, rect):
  16418. r"""Low-level wrapper for `::pdf_set_annot_popup()`."""
  16419. return _mupdf.ll_pdf_set_annot_popup(annot, rect)
  16420. def ll_pdf_set_annot_quad_points(annot, n, qv):
  16421. r"""Low-level wrapper for `::pdf_set_annot_quad_points()`."""
  16422. return _mupdf.ll_pdf_set_annot_quad_points(annot, n, qv)
  16423. def ll_pdf_set_annot_quadding(annot, q):
  16424. r"""Low-level wrapper for `::pdf_set_annot_quadding()`."""
  16425. return _mupdf.ll_pdf_set_annot_quadding(annot, q)
  16426. def ll_pdf_set_annot_rect(annot, rect):
  16427. r"""Low-level wrapper for `::pdf_set_annot_rect()`."""
  16428. return _mupdf.ll_pdf_set_annot_rect(annot, rect)
  16429. def ll_pdf_set_annot_resynthesised(annot):
  16430. r"""Low-level wrapper for `::pdf_set_annot_resynthesised()`."""
  16431. return _mupdf.ll_pdf_set_annot_resynthesised(annot)
  16432. def ll_pdf_set_annot_rich_contents(annot, plain, rich):
  16433. r"""Low-level wrapper for `::pdf_set_annot_rich_contents()`."""
  16434. return _mupdf.ll_pdf_set_annot_rich_contents(annot, plain, rich)
  16435. def ll_pdf_set_annot_rich_defaults(annot, style):
  16436. r"""Low-level wrapper for `::pdf_set_annot_rich_defaults()`."""
  16437. return _mupdf.ll_pdf_set_annot_rich_defaults(annot, style)
  16438. def ll_pdf_set_annot_stamp_image(annot, image):
  16439. r"""Low-level wrapper for `::pdf_set_annot_stamp_image()`."""
  16440. return _mupdf.ll_pdf_set_annot_stamp_image(annot, image)
  16441. def ll_pdf_set_annot_stamp_image_obj(annot, ref):
  16442. r"""Low-level wrapper for `::pdf_set_annot_stamp_image_obj()`."""
  16443. return _mupdf.ll_pdf_set_annot_stamp_image_obj(annot, ref)
  16444. def ll_pdf_set_annot_vertex(annot, i, p):
  16445. r"""Low-level wrapper for `::pdf_set_annot_vertex()`."""
  16446. return _mupdf.ll_pdf_set_annot_vertex(annot, i, p)
  16447. def ll_pdf_set_annot_vertices(annot, n, v):
  16448. r"""Low-level wrapper for `::pdf_set_annot_vertices()`."""
  16449. return _mupdf.ll_pdf_set_annot_vertices(annot, n, v)
  16450. def ll_pdf_set_choice_field_value(widget, value):
  16451. r"""Low-level wrapper for `::pdf_set_choice_field_value()`."""
  16452. return _mupdf.ll_pdf_set_choice_field_value(widget, value)
  16453. def ll_pdf_set_cmap_wmode(cmap, wmode):
  16454. r"""Low-level wrapper for `::pdf_set_cmap_wmode()`."""
  16455. return _mupdf.ll_pdf_set_cmap_wmode(cmap, wmode)
  16456. def ll_pdf_set_default_hmtx(font, w):
  16457. r"""Low-level wrapper for `::pdf_set_default_hmtx()`."""
  16458. return _mupdf.ll_pdf_set_default_hmtx(font, w)
  16459. def ll_pdf_set_default_vmtx(font, y, w):
  16460. r"""Low-level wrapper for `::pdf_set_default_vmtx()`."""
  16461. return _mupdf.ll_pdf_set_default_vmtx(font, y, w)
  16462. def ll_pdf_set_doc_event_callback(doc, event_cb, free_event_data_cb, data):
  16463. r"""Low-level wrapper for `::pdf_set_doc_event_callback()`."""
  16464. return _mupdf.ll_pdf_set_doc_event_callback(doc, event_cb, free_event_data_cb, data)
  16465. def ll_pdf_set_document_language(doc, lang):
  16466. r"""Low-level wrapper for `::pdf_set_document_language()`."""
  16467. return _mupdf.ll_pdf_set_document_language(doc, lang)
  16468. def ll_pdf_set_field_value(doc, field, text, ignore_trigger_events):
  16469. r"""Low-level wrapper for `::pdf_set_field_value()`."""
  16470. return _mupdf.ll_pdf_set_field_value(doc, field, text, ignore_trigger_events)
  16471. def ll_pdf_set_font_wmode(font, wmode):
  16472. r"""Low-level wrapper for `::pdf_set_font_wmode()`."""
  16473. return _mupdf.ll_pdf_set_font_wmode(font, wmode)
  16474. def ll_pdf_set_int(obj, i):
  16475. r"""Low-level wrapper for `::pdf_set_int()`."""
  16476. return _mupdf.ll_pdf_set_int(obj, i)
  16477. def ll_pdf_set_layer_config_as_default(doc):
  16478. r"""Low-level wrapper for `::pdf_set_layer_config_as_default()`."""
  16479. return _mupdf.ll_pdf_set_layer_config_as_default(doc)
  16480. def ll_pdf_set_obj_memo(obj, bit, memo):
  16481. r"""Low-level wrapper for `::pdf_set_obj_memo()`."""
  16482. return _mupdf.ll_pdf_set_obj_memo(obj, bit, memo)
  16483. def ll_pdf_set_obj_parent(obj, num):
  16484. r"""Low-level wrapper for `::pdf_set_obj_parent()`."""
  16485. return _mupdf.ll_pdf_set_obj_parent(obj, num)
  16486. def ll_pdf_set_page_box(page, box, rect):
  16487. r"""Low-level wrapper for `::pdf_set_page_box()`."""
  16488. return _mupdf.ll_pdf_set_page_box(page, box, rect)
  16489. def ll_pdf_set_page_labels(doc, index, style, prefix, start):
  16490. r"""Low-level wrapper for `::pdf_set_page_labels()`."""
  16491. return _mupdf.ll_pdf_set_page_labels(doc, index, style, prefix, start)
  16492. def ll_pdf_set_populating_xref_trailer(doc, trailer):
  16493. r"""Low-level wrapper for `::pdf_set_populating_xref_trailer()`."""
  16494. return _mupdf.ll_pdf_set_populating_xref_trailer(doc, trailer)
  16495. def ll_pdf_set_str_len(obj, newlen):
  16496. r"""Low-level wrapper for `::pdf_set_str_len()`."""
  16497. return _mupdf.ll_pdf_set_str_len(obj, newlen)
  16498. def ll_pdf_set_text_field_value(widget, value):
  16499. r"""Low-level wrapper for `::pdf_set_text_field_value()`."""
  16500. return _mupdf.ll_pdf_set_text_field_value(widget, value)
  16501. def ll_pdf_set_usecmap(cmap, usecmap):
  16502. r"""Low-level wrapper for `::pdf_set_usecmap()`."""
  16503. return _mupdf.ll_pdf_set_usecmap(cmap, usecmap)
  16504. def ll_pdf_set_widget_editing_state(widget, editing):
  16505. r"""Low-level wrapper for `::pdf_set_widget_editing_state()`."""
  16506. return _mupdf.ll_pdf_set_widget_editing_state(widget, editing)
  16507. def ll_pdf_sign_signature(widget, signer, appearance_flags, graphic, reason, location):
  16508. r"""Low-level wrapper for `::pdf_sign_signature()`."""
  16509. return _mupdf.ll_pdf_sign_signature(widget, signer, appearance_flags, graphic, reason, location)
  16510. def ll_pdf_sign_signature_with_appearance(widget, signer, date, disp_list):
  16511. r"""Low-level wrapper for `::pdf_sign_signature_with_appearance()`."""
  16512. return _mupdf.ll_pdf_sign_signature_with_appearance(widget, signer, date, disp_list)
  16513. def ll_pdf_signature_appearance_signed(rect, lang, img, left_text, right_text, include_logo):
  16514. r"""Low-level wrapper for `::pdf_signature_appearance_signed()`."""
  16515. return _mupdf.ll_pdf_signature_appearance_signed(rect, lang, img, left_text, right_text, include_logo)
  16516. def ll_pdf_signature_appearance_unsigned(rect, lang):
  16517. r"""Low-level wrapper for `::pdf_signature_appearance_unsigned()`."""
  16518. return _mupdf.ll_pdf_signature_appearance_unsigned(rect, lang)
  16519. def ll_pdf_signature_byte_range(doc, signature, byte_range):
  16520. r"""Low-level wrapper for `::pdf_signature_byte_range()`."""
  16521. return _mupdf.ll_pdf_signature_byte_range(doc, signature, byte_range)
  16522. def ll_pdf_signature_contents(doc, signature, contents):
  16523. r"""
  16524. Low-level wrapper for `::pdf_signature_contents()`.
  16525. This function has out-params. Python/C# wrappers look like:
  16526. `ll_pdf_signature_contents(::pdf_document *doc, ::pdf_obj *signature)` => `(size_t, char *contents)`
  16527. """
  16528. return _mupdf.ll_pdf_signature_contents(doc, signature, contents)
  16529. def ll_pdf_signature_drop_distinguished_name(name):
  16530. r"""Low-level wrapper for `::pdf_signature_drop_distinguished_name()`."""
  16531. return _mupdf.ll_pdf_signature_drop_distinguished_name(name)
  16532. def ll_pdf_signature_error_description(err):
  16533. r"""Low-level wrapper for `::pdf_signature_error_description()`."""
  16534. return _mupdf.ll_pdf_signature_error_description(err)
  16535. def ll_pdf_signature_format_distinguished_name(name):
  16536. r"""Low-level wrapper for `::pdf_signature_format_distinguished_name()`."""
  16537. return _mupdf.ll_pdf_signature_format_distinguished_name(name)
  16538. def ll_pdf_signature_get_signatory(verifier, doc, signature):
  16539. r"""Low-level wrapper for `::pdf_signature_get_signatory()`."""
  16540. return _mupdf.ll_pdf_signature_get_signatory(verifier, doc, signature)
  16541. def ll_pdf_signature_get_widget_signatory(verifier, widget):
  16542. r"""Low-level wrapper for `::pdf_signature_get_widget_signatory()`."""
  16543. return _mupdf.ll_pdf_signature_get_widget_signatory(verifier, widget)
  16544. def ll_pdf_signature_hash_bytes(doc, signature):
  16545. r"""Low-level wrapper for `::pdf_signature_hash_bytes()`."""
  16546. return _mupdf.ll_pdf_signature_hash_bytes(doc, signature)
  16547. def ll_pdf_signature_incremental_change_since_signing(doc, signature):
  16548. r"""Low-level wrapper for `::pdf_signature_incremental_change_since_signing()`."""
  16549. return _mupdf.ll_pdf_signature_incremental_change_since_signing(doc, signature)
  16550. def ll_pdf_signature_info(name, dn, reason, location, date, include_labels):
  16551. r"""Low-level wrapper for `::pdf_signature_info()`."""
  16552. return _mupdf.ll_pdf_signature_info(name, dn, reason, location, date, include_labels)
  16553. def ll_pdf_signature_is_signed(doc, field):
  16554. r"""Low-level wrapper for `::pdf_signature_is_signed()`."""
  16555. return _mupdf.ll_pdf_signature_is_signed(doc, field)
  16556. def ll_pdf_signature_set_value(doc, field, signer, stime):
  16557. r"""Low-level wrapper for `::pdf_signature_set_value()`."""
  16558. return _mupdf.ll_pdf_signature_set_value(doc, field, signer, stime)
  16559. def ll_pdf_sort_cmap(cmap):
  16560. r"""Low-level wrapper for `::pdf_sort_cmap()`."""
  16561. return _mupdf.ll_pdf_sort_cmap(cmap)
  16562. def ll_pdf_sort_dict(dict):
  16563. r"""Low-level wrapper for `::pdf_sort_dict()`."""
  16564. return _mupdf.ll_pdf_sort_dict(dict)
  16565. def ll_pdf_specifics(doc):
  16566. r"""Low-level wrapper for `::pdf_specifics()`."""
  16567. return _mupdf.ll_pdf_specifics(doc)
  16568. def ll_pdf_sprint_obj(buf, cap, len, obj, tight, ascii):
  16569. r"""
  16570. Low-level wrapper for `::pdf_sprint_obj()`.
  16571. This function has out-params. Python/C# wrappers look like:
  16572. `ll_pdf_sprint_obj(char *buf, size_t cap, ::pdf_obj *obj, int tight, int ascii)` => `(char *, size_t len)`
  16573. """
  16574. return _mupdf.ll_pdf_sprint_obj(buf, cap, len, obj, tight, ascii)
  16575. def ll_pdf_store_item(key, val, itemsize):
  16576. r"""Low-level wrapper for `::pdf_store_item()`."""
  16577. return _mupdf.ll_pdf_store_item(key, val, itemsize)
  16578. def ll_pdf_string_from_annot_type(type):
  16579. r"""Low-level wrapper for `::pdf_string_from_annot_type()`."""
  16580. return _mupdf.ll_pdf_string_from_annot_type(type)
  16581. def ll_pdf_string_from_intent(intent):
  16582. r"""Low-level wrapper for `::pdf_string_from_intent()`."""
  16583. return _mupdf.ll_pdf_string_from_intent(intent)
  16584. def ll_pdf_string_from_line_ending(end):
  16585. r"""Low-level wrapper for `::pdf_string_from_line_ending()`."""
  16586. return _mupdf.ll_pdf_string_from_line_ending(end)
  16587. def ll_pdf_structure_type(role_map, tag):
  16588. r"""Low-level wrapper for `::pdf_structure_type()`."""
  16589. return _mupdf.ll_pdf_structure_type(role_map, tag)
  16590. def ll_pdf_subset_fonts(doc, pages_len, pages):
  16591. r"""Low-level wrapper for `::pdf_subset_fonts()`."""
  16592. return _mupdf.ll_pdf_subset_fonts(doc, pages_len, pages)
  16593. def ll_pdf_subset_fonts2(doc, pages):
  16594. r"""Low-level wrapper for `::pdf_subset_fonts2()`. Swig-friendly wrapper for pdf_subset_fonts()."""
  16595. return _mupdf.ll_pdf_subset_fonts2(doc, pages)
  16596. def ll_pdf_sync_annots(page):
  16597. r"""Low-level wrapper for `::pdf_sync_annots()`."""
  16598. return _mupdf.ll_pdf_sync_annots(page)
  16599. def ll_pdf_sync_links(page):
  16600. r"""Low-level wrapper for `::pdf_sync_links()`."""
  16601. return _mupdf.ll_pdf_sync_links(page)
  16602. def ll_pdf_sync_open_pages(doc):
  16603. r"""Low-level wrapper for `::pdf_sync_open_pages()`."""
  16604. return _mupdf.ll_pdf_sync_open_pages(doc)
  16605. def ll_pdf_sync_page(page):
  16606. r"""Low-level wrapper for `::pdf_sync_page()`."""
  16607. return _mupdf.ll_pdf_sync_page(page)
  16608. def ll_pdf_text_widget_format(tw):
  16609. r"""Low-level wrapper for `::pdf_text_widget_format()`."""
  16610. return _mupdf.ll_pdf_text_widget_format(tw)
  16611. def ll_pdf_text_widget_max_len(tw):
  16612. r"""Low-level wrapper for `::pdf_text_widget_max_len()`."""
  16613. return _mupdf.ll_pdf_text_widget_max_len(tw)
  16614. def ll_pdf_to_bool(obj):
  16615. r"""Low-level wrapper for `::pdf_to_bool()`."""
  16616. return _mupdf.ll_pdf_to_bool(obj)
  16617. def ll_pdf_to_bool_default(obj, _def):
  16618. r"""Low-level wrapper for `::pdf_to_bool_default()`."""
  16619. return _mupdf.ll_pdf_to_bool_default(obj, _def)
  16620. def ll_pdf_to_date(time):
  16621. r"""Low-level wrapper for `::pdf_to_date()`."""
  16622. return _mupdf.ll_pdf_to_date(time)
  16623. def ll_pdf_to_gen(obj):
  16624. r"""Low-level wrapper for `::pdf_to_gen()`."""
  16625. return _mupdf.ll_pdf_to_gen(obj)
  16626. def ll_pdf_to_int(obj):
  16627. r"""Low-level wrapper for `::pdf_to_int()`."""
  16628. return _mupdf.ll_pdf_to_int(obj)
  16629. def ll_pdf_to_int64(obj):
  16630. r"""Low-level wrapper for `::pdf_to_int64()`."""
  16631. return _mupdf.ll_pdf_to_int64(obj)
  16632. def ll_pdf_to_int_default(obj, _def):
  16633. r"""Low-level wrapper for `::pdf_to_int_default()`."""
  16634. return _mupdf.ll_pdf_to_int_default(obj, _def)
  16635. def ll_pdf_to_matrix(array):
  16636. r"""Low-level wrapper for `::pdf_to_matrix()`."""
  16637. return _mupdf.ll_pdf_to_matrix(array)
  16638. def ll_pdf_to_name(obj):
  16639. r"""Low-level wrapper for `::pdf_to_name()`."""
  16640. return _mupdf.ll_pdf_to_name(obj)
  16641. def ll_pdf_to_num(obj):
  16642. r"""Low-level wrapper for `::pdf_to_num()`."""
  16643. return _mupdf.ll_pdf_to_num(obj)
  16644. def ll_pdf_to_point(array, offset):
  16645. r"""Low-level wrapper for `::pdf_to_point()`."""
  16646. return _mupdf.ll_pdf_to_point(array, offset)
  16647. def ll_pdf_to_quad(array, offset):
  16648. r"""Low-level wrapper for `::pdf_to_quad()`."""
  16649. return _mupdf.ll_pdf_to_quad(array, offset)
  16650. def ll_pdf_to_real(obj):
  16651. r"""Low-level wrapper for `::pdf_to_real()`."""
  16652. return _mupdf.ll_pdf_to_real(obj)
  16653. def ll_pdf_to_real_default(obj, _def):
  16654. r"""Low-level wrapper for `::pdf_to_real_default()`."""
  16655. return _mupdf.ll_pdf_to_real_default(obj, _def)
  16656. def ll_pdf_to_rect(array):
  16657. r"""Low-level wrapper for `::pdf_to_rect()`."""
  16658. return _mupdf.ll_pdf_to_rect(array)
  16659. def ll_pdf_to_str_buf(obj):
  16660. r"""Low-level wrapper for `::pdf_to_str_buf()`."""
  16661. return _mupdf.ll_pdf_to_str_buf(obj)
  16662. def ll_pdf_to_str_len(obj):
  16663. r"""Low-level wrapper for `::pdf_to_str_len()`."""
  16664. return _mupdf.ll_pdf_to_str_len(obj)
  16665. def ll_pdf_to_string(obj, sizep):
  16666. r"""
  16667. Low-level wrapper for `::pdf_to_string()`.
  16668. This function has out-params. Python/C# wrappers look like:
  16669. `ll_pdf_to_string(::pdf_obj *obj)` => `(const char *, size_t sizep)`
  16670. """
  16671. return _mupdf.ll_pdf_to_string(obj, sizep)
  16672. def ll_pdf_to_text_string(obj):
  16673. r"""Low-level wrapper for `::pdf_to_text_string()`."""
  16674. return _mupdf.ll_pdf_to_text_string(obj)
  16675. def ll_pdf_toggle_layer_config_ui(doc, ui):
  16676. r"""Low-level wrapper for `::pdf_toggle_layer_config_ui()`."""
  16677. return _mupdf.ll_pdf_toggle_layer_config_ui(doc, ui)
  16678. def ll_pdf_toggle_widget(widget):
  16679. r"""Low-level wrapper for `::pdf_toggle_widget()`."""
  16680. return _mupdf.ll_pdf_toggle_widget(widget)
  16681. def ll_pdf_tos_get_text(tos):
  16682. r"""Low-level wrapper for `::pdf_tos_get_text()`."""
  16683. return _mupdf.ll_pdf_tos_get_text(tos)
  16684. def ll_pdf_tos_make_trm(tos, text, fontdesc, cid, trm, adv):
  16685. r"""
  16686. Low-level wrapper for `::pdf_tos_make_trm()`.
  16687. This function has out-params. Python/C# wrappers look like:
  16688. `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)`
  16689. """
  16690. return _mupdf.ll_pdf_tos_make_trm(tos, text, fontdesc, cid, trm, adv)
  16691. def ll_pdf_tos_move_after_char(tos):
  16692. r"""Low-level wrapper for `::pdf_tos_move_after_char()`."""
  16693. return _mupdf.ll_pdf_tos_move_after_char(tos)
  16694. def ll_pdf_tos_newline(tos, leading):
  16695. r"""Low-level wrapper for `::pdf_tos_newline()`."""
  16696. return _mupdf.ll_pdf_tos_newline(tos, leading)
  16697. def ll_pdf_tos_reset(tos, render):
  16698. r"""Low-level wrapper for `::pdf_tos_reset()`."""
  16699. return _mupdf.ll_pdf_tos_reset(tos, render)
  16700. def ll_pdf_tos_restore(tos, save):
  16701. r"""Low-level wrapper for `::pdf_tos_restore()`."""
  16702. return _mupdf.ll_pdf_tos_restore(tos, save)
  16703. def ll_pdf_tos_save(tos, save):
  16704. r"""Low-level wrapper for `::pdf_tos_save()`."""
  16705. return _mupdf.ll_pdf_tos_save(tos, save)
  16706. def ll_pdf_tos_set_matrix(tos, a, b, c, d, e, f):
  16707. r"""Low-level wrapper for `::pdf_tos_set_matrix()`."""
  16708. return _mupdf.ll_pdf_tos_set_matrix(tos, a, b, c, d, e, f)
  16709. def ll_pdf_tos_translate(tos, tx, ty):
  16710. r"""Low-level wrapper for `::pdf_tos_translate()`."""
  16711. return _mupdf.ll_pdf_tos_translate(tos, tx, ty)
  16712. def ll_pdf_trailer(doc):
  16713. r"""Low-level wrapper for `::pdf_trailer()`."""
  16714. return _mupdf.ll_pdf_trailer(doc)
  16715. def ll_pdf_undo(doc):
  16716. r"""Low-level wrapper for `::pdf_undo()`."""
  16717. return _mupdf.ll_pdf_undo(doc)
  16718. def ll_pdf_undoredo_state(doc, steps):
  16719. r"""
  16720. Low-level wrapper for `::pdf_undoredo_state()`.
  16721. This function has out-params. Python/C# wrappers look like:
  16722. `ll_pdf_undoredo_state(::pdf_document *doc)` => `(int, int steps)`
  16723. """
  16724. return _mupdf.ll_pdf_undoredo_state(doc, steps)
  16725. def ll_pdf_undoredo_step(doc, step):
  16726. r"""Low-level wrapper for `::pdf_undoredo_step()`."""
  16727. return _mupdf.ll_pdf_undoredo_step(doc, step)
  16728. def ll_pdf_unmark_obj(obj):
  16729. r"""Low-level wrapper for `::pdf_unmark_obj()`."""
  16730. return _mupdf.ll_pdf_unmark_obj(obj)
  16731. def ll_pdf_update_annot(annot):
  16732. r"""Low-level wrapper for `::pdf_update_annot()`."""
  16733. return _mupdf.ll_pdf_update_annot(annot)
  16734. def ll_pdf_update_default_colorspaces(old_cs, res):
  16735. r"""Low-level wrapper for `::pdf_update_default_colorspaces()`."""
  16736. return _mupdf.ll_pdf_update_default_colorspaces(old_cs, res)
  16737. def ll_pdf_update_object(doc, num, obj):
  16738. r"""Low-level wrapper for `::pdf_update_object()`."""
  16739. return _mupdf.ll_pdf_update_object(doc, num, obj)
  16740. def ll_pdf_update_page(page):
  16741. r"""Low-level wrapper for `::pdf_update_page()`."""
  16742. return _mupdf.ll_pdf_update_page(page)
  16743. def ll_pdf_update_stream(doc, ref, buf, compressed):
  16744. r"""Low-level wrapper for `::pdf_update_stream()`."""
  16745. return _mupdf.ll_pdf_update_stream(doc, ref, buf, compressed)
  16746. def ll_pdf_update_widget(widget):
  16747. r"""Low-level wrapper for `::pdf_update_widget()`."""
  16748. return _mupdf.ll_pdf_update_widget(widget)
  16749. def ll_pdf_update_xobject(doc, xobj, bbox, mat, res, buffer):
  16750. r"""Low-level wrapper for `::pdf_update_xobject()`."""
  16751. return _mupdf.ll_pdf_update_xobject(doc, xobj, bbox, mat, res, buffer)
  16752. def ll_pdf_validate_change_history(doc):
  16753. r"""Low-level wrapper for `::pdf_validate_change_history()`."""
  16754. return _mupdf.ll_pdf_validate_change_history(doc)
  16755. def ll_pdf_validate_changes(doc, version):
  16756. r"""Low-level wrapper for `::pdf_validate_changes()`."""
  16757. return _mupdf.ll_pdf_validate_changes(doc, version)
  16758. def ll_pdf_validate_signature(widget):
  16759. r"""Low-level wrapper for `::pdf_validate_signature()`."""
  16760. return _mupdf.ll_pdf_validate_signature(widget)
  16761. def ll_pdf_verify_embedded_file_checksum(fs):
  16762. r"""Low-level wrapper for `::pdf_verify_embedded_file_checksum()`."""
  16763. return _mupdf.ll_pdf_verify_embedded_file_checksum(fs)
  16764. def ll_pdf_version(doc):
  16765. r"""Low-level wrapper for `::pdf_version()`."""
  16766. return _mupdf.ll_pdf_version(doc)
  16767. def ll_pdf_walk_tree(tree, kid_name, arrive, leave, arg, names, values):
  16768. r"""
  16769. Low-level wrapper for `::pdf_walk_tree()`.
  16770. This function has out-params. Python/C# wrappers look like:
  16771. `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)` => `()`
  16772. """
  16773. return _mupdf.ll_pdf_walk_tree(tree, kid_name, arrive, leave, arg, names, values)
  16774. def ll_pdf_was_pure_xfa(doc):
  16775. r"""Low-level wrapper for `::pdf_was_pure_xfa()`."""
  16776. return _mupdf.ll_pdf_was_pure_xfa(doc)
  16777. def ll_pdf_was_repaired(doc):
  16778. r"""Low-level wrapper for `::pdf_was_repaired()`."""
  16779. return _mupdf.ll_pdf_was_repaired(doc)
  16780. def ll_pdf_widget_is_readonly(widget):
  16781. r"""Low-level wrapper for `::pdf_widget_is_readonly()`."""
  16782. return _mupdf.ll_pdf_widget_is_readonly(widget)
  16783. def ll_pdf_widget_is_signed(widget):
  16784. r"""Low-level wrapper for `::pdf_widget_is_signed()`."""
  16785. return _mupdf.ll_pdf_widget_is_signed(widget)
  16786. def ll_pdf_widget_type(widget):
  16787. r"""Low-level wrapper for `::pdf_widget_type()`."""
  16788. return _mupdf.ll_pdf_widget_type(widget)
  16789. def ll_pdf_write_digest(out, byte_range, field, digest_offset, digest_length, signer):
  16790. r"""Low-level wrapper for `::pdf_write_digest()`."""
  16791. return _mupdf.ll_pdf_write_digest(out, byte_range, field, digest_offset, digest_length, signer)
  16792. def ll_pdf_write_document(doc, out, opts):
  16793. r"""Low-level wrapper for `::pdf_write_document()`."""
  16794. return _mupdf.ll_pdf_write_document(doc, out, opts)
  16795. def ll_pdf_write_journal(doc, out):
  16796. r"""Low-level wrapper for `::pdf_write_journal()`."""
  16797. return _mupdf.ll_pdf_write_journal(doc, out)
  16798. def ll_pdf_write_snapshot(doc, out):
  16799. r"""Low-level wrapper for `::pdf_write_snapshot()`."""
  16800. return _mupdf.ll_pdf_write_snapshot(doc, out)
  16801. def ll_pdf_xobject_bbox(xobj):
  16802. r"""Low-level wrapper for `::pdf_xobject_bbox()`."""
  16803. return _mupdf.ll_pdf_xobject_bbox(xobj)
  16804. def ll_pdf_xobject_colorspace(xobj):
  16805. r"""Low-level wrapper for `::pdf_xobject_colorspace()`."""
  16806. return _mupdf.ll_pdf_xobject_colorspace(xobj)
  16807. def ll_pdf_xobject_isolated(xobj):
  16808. r"""Low-level wrapper for `::pdf_xobject_isolated()`."""
  16809. return _mupdf.ll_pdf_xobject_isolated(xobj)
  16810. def ll_pdf_xobject_knockout(xobj):
  16811. r"""Low-level wrapper for `::pdf_xobject_knockout()`."""
  16812. return _mupdf.ll_pdf_xobject_knockout(xobj)
  16813. def ll_pdf_xobject_matrix(xobj):
  16814. r"""Low-level wrapper for `::pdf_xobject_matrix()`."""
  16815. return _mupdf.ll_pdf_xobject_matrix(xobj)
  16816. def ll_pdf_xobject_resources(xobj):
  16817. r"""Low-level wrapper for `::pdf_xobject_resources()`."""
  16818. return _mupdf.ll_pdf_xobject_resources(xobj)
  16819. def ll_pdf_xobject_transparency(xobj):
  16820. r"""Low-level wrapper for `::pdf_xobject_transparency()`."""
  16821. return _mupdf.ll_pdf_xobject_transparency(xobj)
  16822. def ll_pdf_xref_ensure_incremental_object(doc, num):
  16823. r"""Low-level wrapper for `::pdf_xref_ensure_incremental_object()`."""
  16824. return _mupdf.ll_pdf_xref_ensure_incremental_object(doc, num)
  16825. def ll_pdf_xref_ensure_local_object(doc, num):
  16826. r"""Low-level wrapper for `::pdf_xref_ensure_local_object()`."""
  16827. return _mupdf.ll_pdf_xref_ensure_local_object(doc, num)
  16828. def ll_pdf_xref_entry_map(doc, fn, arg):
  16829. r"""Low-level wrapper for `::pdf_xref_entry_map()`."""
  16830. return _mupdf.ll_pdf_xref_entry_map(doc, fn, arg)
  16831. def ll_pdf_xref_is_incremental(doc, num):
  16832. r"""Low-level wrapper for `::pdf_xref_is_incremental()`."""
  16833. return _mupdf.ll_pdf_xref_is_incremental(doc, num)
  16834. def ll_pdf_xref_len(doc):
  16835. r"""Low-level wrapper for `::pdf_xref_len()`."""
  16836. return _mupdf.ll_pdf_xref_len(doc)
  16837. def ll_pdf_xref_obj_is_unsaved_signature(doc, obj):
  16838. r"""Low-level wrapper for `::pdf_xref_obj_is_unsaved_signature()`."""
  16839. return _mupdf.ll_pdf_xref_obj_is_unsaved_signature(doc, obj)
  16840. def ll_pdf_xref_remove_unsaved_signature(doc, field):
  16841. r"""Low-level wrapper for `::pdf_xref_remove_unsaved_signature()`."""
  16842. return _mupdf.ll_pdf_xref_remove_unsaved_signature(doc, field)
  16843. def ll_pdf_xref_store_unsaved_signature(doc, field, signer):
  16844. r"""Low-level wrapper for `::pdf_xref_store_unsaved_signature()`."""
  16845. return _mupdf.ll_pdf_xref_store_unsaved_signature(doc, field, signer)
  16846. def ll_pdf_zugferd_profile(doc, version):
  16847. r"""
  16848. Low-level wrapper for `::pdf_zugferd_profile()`.
  16849. This function has out-params. Python/C# wrappers look like:
  16850. `ll_pdf_zugferd_profile(::pdf_document *doc)` => `(enum pdf_zugferd_profile, float version)`
  16851. """
  16852. return _mupdf.ll_pdf_zugferd_profile(doc, version)
  16853. def ll_pdf_zugferd_profile_to_string(profile):
  16854. r"""Low-level wrapper for `::pdf_zugferd_profile_to_string()`."""
  16855. return _mupdf.ll_pdf_zugferd_profile_to_string(profile)
  16856. def ll_pdf_zugferd_xml(doc):
  16857. r"""Low-level wrapper for `::pdf_zugferd_xml()`."""
  16858. return _mupdf.ll_pdf_zugferd_xml(doc)
  16859. def to_string_fz_aa_context(s):
  16860. r"""Returns string containing a fz_aa_context's members, labelled and inside (...), using operator<<."""
  16861. return _mupdf.to_string_fz_aa_context(s)
  16862. def to_string_fz_color_params(s):
  16863. r"""Returns string containing a fz_color_params's members, labelled and inside (...), using operator<<."""
  16864. return _mupdf.to_string_fz_color_params(s)
  16865. def to_string_fz_cookie(s):
  16866. r"""Returns string containing a fz_cookie's members, labelled and inside (...), using operator<<."""
  16867. return _mupdf.to_string_fz_cookie(s)
  16868. def to_string_fz_draw_options(s):
  16869. r"""Returns string containing a fz_draw_options's members, labelled and inside (...), using operator<<."""
  16870. return _mupdf.to_string_fz_draw_options(s)
  16871. def to_string_fz_install_load_system_font_funcs_args(s):
  16872. r"""Returns string containing a fz_install_load_system_font_funcs_args's members, labelled and inside (...), using operator<<."""
  16873. return _mupdf.to_string_fz_install_load_system_font_funcs_args(s)
  16874. def to_string_fz_irect(s):
  16875. r"""Returns string containing a fz_irect's members, labelled and inside (...), using operator<<."""
  16876. return _mupdf.to_string_fz_irect(s)
  16877. def to_string_fz_location(s):
  16878. r"""Returns string containing a fz_location's members, labelled and inside (...), using operator<<."""
  16879. return _mupdf.to_string_fz_location(s)
  16880. def to_string_fz_matrix(s):
  16881. r"""Returns string containing a fz_matrix's members, labelled and inside (...), using operator<<."""
  16882. return _mupdf.to_string_fz_matrix(s)
  16883. def to_string_fz_md5(s):
  16884. r"""Returns string containing a fz_md5's members, labelled and inside (...), using operator<<."""
  16885. return _mupdf.to_string_fz_md5(s)
  16886. def to_string_fz_outline_item(s):
  16887. r"""Returns string containing a fz_outline_item's members, labelled and inside (...), using operator<<."""
  16888. return _mupdf.to_string_fz_outline_item(s)
  16889. def to_string_fz_pdfocr_options(s):
  16890. r"""Returns string containing a fz_pdfocr_options's members, labelled and inside (...), using operator<<."""
  16891. return _mupdf.to_string_fz_pdfocr_options(s)
  16892. def to_string_fz_point(s):
  16893. r"""Returns string containing a fz_point's members, labelled and inside (...), using operator<<."""
  16894. return _mupdf.to_string_fz_point(s)
  16895. def to_string_fz_pwg_options(s):
  16896. r"""Returns string containing a fz_pwg_options's members, labelled and inside (...), using operator<<."""
  16897. return _mupdf.to_string_fz_pwg_options(s)
  16898. def to_string_fz_quad(s):
  16899. r"""Returns string containing a fz_quad's members, labelled and inside (...), using operator<<."""
  16900. return _mupdf.to_string_fz_quad(s)
  16901. def to_string_fz_rect(s):
  16902. r"""Returns string containing a fz_rect's members, labelled and inside (...), using operator<<."""
  16903. return _mupdf.to_string_fz_rect(s)
  16904. def to_string_fz_stext_options(s):
  16905. r"""Returns string containing a fz_stext_options's members, labelled and inside (...), using operator<<."""
  16906. return _mupdf.to_string_fz_stext_options(s)
  16907. def to_string_fz_story_element_position(s):
  16908. r"""Returns string containing a fz_story_element_position's members, labelled and inside (...), using operator<<."""
  16909. return _mupdf.to_string_fz_story_element_position(s)
  16910. def to_string_fz_transition(s):
  16911. r"""Returns string containing a fz_transition's members, labelled and inside (...), using operator<<."""
  16912. return _mupdf.to_string_fz_transition(s)
  16913. def to_string_pdf_clean_options(s):
  16914. r"""Returns string containing a pdf_clean_options's members, labelled and inside (...), using operator<<."""
  16915. return _mupdf.to_string_pdf_clean_options(s)
  16916. def to_string_pdf_filter_factory(s):
  16917. r"""Returns string containing a pdf_filter_factory's members, labelled and inside (...), using operator<<."""
  16918. return _mupdf.to_string_pdf_filter_factory(s)
  16919. def to_string_pdf_filter_options(s):
  16920. r"""Returns string containing a pdf_filter_options's members, labelled and inside (...), using operator<<."""
  16921. return _mupdf.to_string_pdf_filter_options(s)
  16922. def to_string_pdf_image_rewriter_options(s):
  16923. r"""Returns string containing a pdf_image_rewriter_options's members, labelled and inside (...), using operator<<."""
  16924. return _mupdf.to_string_pdf_image_rewriter_options(s)
  16925. def to_string_pdf_layer_config(s):
  16926. r"""Returns string containing a pdf_layer_config's members, labelled and inside (...), using operator<<."""
  16927. return _mupdf.to_string_pdf_layer_config(s)
  16928. def to_string_pdf_layer_config_ui(s):
  16929. r"""Returns string containing a pdf_layer_config_ui's members, labelled and inside (...), using operator<<."""
  16930. return _mupdf.to_string_pdf_layer_config_ui(s)
  16931. def to_string_pdf_recolor_options(s):
  16932. r"""Returns string containing a pdf_recolor_options's members, labelled and inside (...), using operator<<."""
  16933. return _mupdf.to_string_pdf_recolor_options(s)
  16934. def to_string_pdf_redact_options(s):
  16935. r"""Returns string containing a pdf_redact_options's members, labelled and inside (...), using operator<<."""
  16936. return _mupdf.to_string_pdf_redact_options(s)
  16937. def to_string_pdf_sanitize_filter_options(s):
  16938. r"""Returns string containing a pdf_sanitize_filter_options's members, labelled and inside (...), using operator<<."""
  16939. return _mupdf.to_string_pdf_sanitize_filter_options(s)
  16940. def to_string_pdf_write_options(s):
  16941. r"""Returns string containing a pdf_write_options's members, labelled and inside (...), using operator<<."""
  16942. return _mupdf.to_string_pdf_write_options(s)
  16943. def to_string(*args):
  16944. r"""
  16945. *Overload 1:*
  16946. Returns string containing a fz_aa_context's members, labelled and inside (...), using operator<<.
  16947. (Convenience overload).
  16948. |
  16949. *Overload 2:*
  16950. Returns string containing a fz_color_params's members, labelled and inside (...), using operator<<.
  16951. (Convenience overload).
  16952. |
  16953. *Overload 3:*
  16954. Returns string containing a fz_cookie's members, labelled and inside (...), using operator<<.
  16955. (Convenience overload).
  16956. |
  16957. *Overload 4:*
  16958. Returns string containing a fz_draw_options's members, labelled and inside (...), using operator<<.
  16959. (Convenience overload).
  16960. |
  16961. *Overload 5:*
  16962. Returns string containing a fz_install_load_system_font_funcs_args's members, labelled and inside (...), using operator<<.
  16963. (Convenience overload).
  16964. |
  16965. *Overload 6:*
  16966. Returns string containing a fz_irect's members, labelled and inside (...), using operator<<.
  16967. (Convenience overload).
  16968. |
  16969. *Overload 7:*
  16970. Returns string containing a fz_location's members, labelled and inside (...), using operator<<.
  16971. (Convenience overload).
  16972. |
  16973. *Overload 8:*
  16974. Returns string containing a fz_matrix's members, labelled and inside (...), using operator<<.
  16975. (Convenience overload).
  16976. |
  16977. *Overload 9:*
  16978. Returns string containing a fz_md5's members, labelled and inside (...), using operator<<.
  16979. (Convenience overload).
  16980. |
  16981. *Overload 10:*
  16982. Returns string containing a fz_outline_item's members, labelled and inside (...), using operator<<.
  16983. (Convenience overload).
  16984. |
  16985. *Overload 11:*
  16986. Returns string containing a fz_pdfocr_options's members, labelled and inside (...), using operator<<.
  16987. (Convenience overload).
  16988. |
  16989. *Overload 12:*
  16990. Returns string containing a fz_point's members, labelled and inside (...), using operator<<.
  16991. (Convenience overload).
  16992. |
  16993. *Overload 13:*
  16994. Returns string containing a fz_pwg_options's members, labelled and inside (...), using operator<<.
  16995. (Convenience overload).
  16996. |
  16997. *Overload 14:*
  16998. Returns string containing a fz_quad's members, labelled and inside (...), using operator<<.
  16999. (Convenience overload).
  17000. |
  17001. *Overload 15:*
  17002. Returns string containing a fz_rect's members, labelled and inside (...), using operator<<.
  17003. (Convenience overload).
  17004. |
  17005. *Overload 16:*
  17006. Returns string containing a fz_stext_options's members, labelled and inside (...), using operator<<.
  17007. (Convenience overload).
  17008. |
  17009. *Overload 17:*
  17010. Returns string containing a fz_story_element_position's members, labelled and inside (...), using operator<<.
  17011. (Convenience overload).
  17012. |
  17013. *Overload 18:*
  17014. Returns string containing a fz_transition's members, labelled and inside (...), using operator<<.
  17015. (Convenience overload).
  17016. |
  17017. *Overload 19:*
  17018. Returns string containing a pdf_clean_options's members, labelled and inside (...), using operator<<.
  17019. (Convenience overload).
  17020. |
  17021. *Overload 20:*
  17022. Returns string containing a pdf_filter_factory's members, labelled and inside (...), using operator<<.
  17023. (Convenience overload).
  17024. |
  17025. *Overload 21:*
  17026. Returns string containing a pdf_filter_options's members, labelled and inside (...), using operator<<.
  17027. (Convenience overload).
  17028. |
  17029. *Overload 22:*
  17030. Returns string containing a pdf_image_rewriter_options's members, labelled and inside (...), using operator<<.
  17031. (Convenience overload).
  17032. |
  17033. *Overload 23:*
  17034. Returns string containing a pdf_layer_config's members, labelled and inside (...), using operator<<.
  17035. (Convenience overload).
  17036. |
  17037. *Overload 24:*
  17038. Returns string containing a pdf_layer_config_ui's members, labelled and inside (...), using operator<<.
  17039. (Convenience overload).
  17040. |
  17041. *Overload 25:*
  17042. Returns string containing a pdf_recolor_options's members, labelled and inside (...), using operator<<.
  17043. (Convenience overload).
  17044. |
  17045. *Overload 26:*
  17046. Returns string containing a pdf_redact_options's members, labelled and inside (...), using operator<<.
  17047. (Convenience overload).
  17048. |
  17049. *Overload 27:*
  17050. Returns string containing a pdf_sanitize_filter_options's members, labelled and inside (...), using operator<<.
  17051. (Convenience overload).
  17052. |
  17053. *Overload 28:*
  17054. Returns string containing a pdf_write_options's members, labelled and inside (...), using operator<<.
  17055. (Convenience overload).
  17056. """
  17057. return _mupdf.to_string(*args)
  17058. def reinit_singlethreaded():
  17059. r"""
  17060. Reinitializes the MuPDF context for single-threaded use, which
  17061. is slightly faster when calling code is single threaded.
  17062. This should be called before any other use of MuPDF.
  17063. """
  17064. return _mupdf.reinit_singlethreaded()
  17065. class FzAaContext(object):
  17066. r"""Wrapper class for struct `fz_aa_context`."""
  17067. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17068. __repr__ = _swig_repr
  17069. def __init__(self, *args):
  17070. r"""
  17071. *Overload 1:*
  17072. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  17073. |
  17074. *Overload 2:*
  17075. Constructor using raw copy of pre-existing `::fz_aa_context`.
  17076. |
  17077. *Overload 3:*
  17078. Constructor using raw copy of pre-existing `::fz_aa_context`.
  17079. """
  17080. _mupdf.FzAaContext_swiginit(self, _mupdf.new_FzAaContext(*args))
  17081. def internal(self, *args):
  17082. r"""
  17083. *Overload 1:*
  17084. Access as underlying struct.
  17085. |
  17086. *Overload 2:*
  17087. Access as underlying struct.
  17088. """
  17089. return _mupdf.FzAaContext_internal(self, *args)
  17090. __swig_destroy__ = _mupdf.delete_FzAaContext
  17091. hscale = property(_mupdf.FzAaContext_hscale_get, _mupdf.FzAaContext_hscale_set)
  17092. vscale = property(_mupdf.FzAaContext_vscale_get, _mupdf.FzAaContext_vscale_set)
  17093. scale = property(_mupdf.FzAaContext_scale_get, _mupdf.FzAaContext_scale_set)
  17094. bits = property(_mupdf.FzAaContext_bits_get, _mupdf.FzAaContext_bits_set)
  17095. text_bits = property(_mupdf.FzAaContext_text_bits_get, _mupdf.FzAaContext_text_bits_set)
  17096. min_line_width = property(_mupdf.FzAaContext_min_line_width_get, _mupdf.FzAaContext_min_line_width_set)
  17097. s_num_instances = property(_mupdf.FzAaContext_s_num_instances_get, _mupdf.FzAaContext_s_num_instances_set)
  17098. def to_string(self):
  17099. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  17100. return _mupdf.FzAaContext_to_string(self)
  17101. def __eq__(self, rhs):
  17102. r"""Comparison method."""
  17103. return _mupdf.FzAaContext___eq__(self, rhs)
  17104. def __ne__(self, rhs):
  17105. r"""Comparison method."""
  17106. return _mupdf.FzAaContext___ne__(self, rhs)
  17107. # Register FzAaContext in _mupdf:
  17108. _mupdf.FzAaContext_swigregister(FzAaContext)
  17109. metadata_keys = cvar.metadata_keys
  17110. class FzActivityContext(object):
  17111. r"""Wrapper class for struct `fz_activity_context`. Not copyable or assignable."""
  17112. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17113. __repr__ = _swig_repr
  17114. def __init__(self, *args):
  17115. r"""
  17116. *Overload 1:*
  17117. Default constructor, sets `m_internal` to null.
  17118. |
  17119. *Overload 2:*
  17120. Constructor using raw copy of pre-existing `::fz_activity_context`.
  17121. """
  17122. _mupdf.FzActivityContext_swiginit(self, _mupdf.new_FzActivityContext(*args))
  17123. __swig_destroy__ = _mupdf.delete_FzActivityContext
  17124. def m_internal_value(self):
  17125. r"""Return numerical value of .m_internal; helps with Python debugging."""
  17126. return _mupdf.FzActivityContext_m_internal_value(self)
  17127. def __nonzero__(self):
  17128. return _mupdf.FzActivityContext___nonzero__(self)
  17129. __bool__ = __nonzero__
  17130. m_internal = property(_mupdf.FzActivityContext_m_internal_get, _mupdf.FzActivityContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  17131. s_num_instances = property(_mupdf.FzActivityContext_s_num_instances_get, _mupdf.FzActivityContext_s_num_instances_set)
  17132. # Register FzActivityContext in _mupdf:
  17133. _mupdf.FzActivityContext_swigregister(FzActivityContext)
  17134. class FzAes(object):
  17135. r"""
  17136. Wrapper class for struct `fz_aes`. Not copyable or assignable.
  17137. Structure definitions are public to enable stack
  17138. based allocation. Do not access the members directly.
  17139. """
  17140. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17141. __repr__ = _swig_repr
  17142. def fz_aes_crypt_cbc(self, mode, length, iv, input, output):
  17143. r"""
  17144. Class-aware wrapper for `::fz_aes_crypt_cbc()`.
  17145. AES block processing. Encrypts or Decrypts (according to mode,
  17146. which must match what was initially set up) length bytes (which
  17147. must be a multiple of 16), using (and modifying) the insertion
  17148. vector iv, reading from input, and writing to output.
  17149. Never throws an exception.
  17150. """
  17151. return _mupdf.FzAes_fz_aes_crypt_cbc(self, mode, length, iv, input, output)
  17152. def fz_aes_setkey_dec(self, key, keysize):
  17153. r"""
  17154. Class-aware wrapper for `::fz_aes_setkey_dec()`.
  17155. AES decryption initialization. Fills in the supplied context
  17156. and prepares for decryption using the given key.
  17157. Returns non-zero for error (key size other than 128/192/256).
  17158. Never throws an exception.
  17159. """
  17160. return _mupdf.FzAes_fz_aes_setkey_dec(self, key, keysize)
  17161. def fz_aes_setkey_enc(self, key, keysize):
  17162. r"""
  17163. Class-aware wrapper for `::fz_aes_setkey_enc()`.
  17164. AES encryption initialization. Fills in the supplied context
  17165. and prepares for encryption using the given key.
  17166. Returns non-zero for error (key size other than 128/192/256).
  17167. Never throws an exception.
  17168. """
  17169. return _mupdf.FzAes_fz_aes_setkey_enc(self, key, keysize)
  17170. def __init__(self, *args):
  17171. r"""
  17172. *Overload 1:*
  17173. Default constructor, sets `m_internal` to null.
  17174. |
  17175. *Overload 2:*
  17176. Constructor using raw copy of pre-existing `::fz_aes`.
  17177. """
  17178. _mupdf.FzAes_swiginit(self, _mupdf.new_FzAes(*args))
  17179. __swig_destroy__ = _mupdf.delete_FzAes
  17180. def m_internal_value(self):
  17181. r"""Return numerical value of .m_internal; helps with Python debugging."""
  17182. return _mupdf.FzAes_m_internal_value(self)
  17183. def __nonzero__(self):
  17184. return _mupdf.FzAes___nonzero__(self)
  17185. __bool__ = __nonzero__
  17186. m_internal = property(_mupdf.FzAes_m_internal_get, _mupdf.FzAes_m_internal_set, doc=r"""Pointer to wrapped data.""")
  17187. s_num_instances = property(_mupdf.FzAes_s_num_instances_get, _mupdf.FzAes_s_num_instances_set)
  17188. # Register FzAes in _mupdf:
  17189. _mupdf.FzAes_swigregister(FzAes)
  17190. class FzAllocContext(object):
  17191. r"""
  17192. Wrapper class for struct `fz_alloc_context`. Not copyable or assignable.
  17193. Allocator structure; holds callbacks and private data pointer.
  17194. """
  17195. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17196. __repr__ = _swig_repr
  17197. def __init__(self, *args):
  17198. r"""
  17199. *Overload 1:*
  17200. Default constructor, sets `m_internal` to null.
  17201. |
  17202. *Overload 2:*
  17203. Constructor using raw copy of pre-existing `::fz_alloc_context`.
  17204. """
  17205. _mupdf.FzAllocContext_swiginit(self, _mupdf.new_FzAllocContext(*args))
  17206. __swig_destroy__ = _mupdf.delete_FzAllocContext
  17207. def m_internal_value(self):
  17208. r"""Return numerical value of .m_internal; helps with Python debugging."""
  17209. return _mupdf.FzAllocContext_m_internal_value(self)
  17210. def __nonzero__(self):
  17211. return _mupdf.FzAllocContext___nonzero__(self)
  17212. __bool__ = __nonzero__
  17213. m_internal = property(_mupdf.FzAllocContext_m_internal_get, _mupdf.FzAllocContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  17214. s_num_instances = property(_mupdf.FzAllocContext_s_num_instances_get, _mupdf.FzAllocContext_s_num_instances_set)
  17215. # Register FzAllocContext in _mupdf:
  17216. _mupdf.FzAllocContext_swigregister(FzAllocContext)
  17217. class FzArc4(object):
  17218. r"""
  17219. Wrapper class for struct `fz_arc4`. Not copyable or assignable.
  17220. Structure definition is public to enable stack
  17221. based allocation. Do not access the members directly.
  17222. """
  17223. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17224. __repr__ = _swig_repr
  17225. def fz_arc4_encrypt(self, dest, src, len):
  17226. r"""
  17227. Class-aware wrapper for `::fz_arc4_encrypt()`.
  17228. RC4 block encrypt operation; encrypt src into dst (both of
  17229. length len) updating the RC4 state as we go.
  17230. Never throws an exception.
  17231. """
  17232. return _mupdf.FzArc4_fz_arc4_encrypt(self, dest, src, len)
  17233. def fz_arc4_final(self):
  17234. r"""
  17235. Class-aware wrapper for `::fz_arc4_final()`.
  17236. RC4 finalization. Zero the context.
  17237. Never throws an exception.
  17238. """
  17239. return _mupdf.FzArc4_fz_arc4_final(self)
  17240. def fz_arc4_init(self, key, len):
  17241. r"""
  17242. Class-aware wrapper for `::fz_arc4_init()`.
  17243. RC4 initialization. Begins an RC4 operation, writing a new
  17244. context.
  17245. Never throws an exception.
  17246. """
  17247. return _mupdf.FzArc4_fz_arc4_init(self, key, len)
  17248. def __init__(self, *args):
  17249. r"""
  17250. *Overload 1:*
  17251. Default constructor, sets `m_internal` to null.
  17252. |
  17253. *Overload 2:*
  17254. Constructor using raw copy of pre-existing `::fz_arc4`.
  17255. """
  17256. _mupdf.FzArc4_swiginit(self, _mupdf.new_FzArc4(*args))
  17257. __swig_destroy__ = _mupdf.delete_FzArc4
  17258. def m_internal_value(self):
  17259. r"""Return numerical value of .m_internal; helps with Python debugging."""
  17260. return _mupdf.FzArc4_m_internal_value(self)
  17261. def __nonzero__(self):
  17262. return _mupdf.FzArc4___nonzero__(self)
  17263. __bool__ = __nonzero__
  17264. m_internal = property(_mupdf.FzArc4_m_internal_get, _mupdf.FzArc4_m_internal_set, doc=r"""Pointer to wrapped data.""")
  17265. s_num_instances = property(_mupdf.FzArc4_s_num_instances_get, _mupdf.FzArc4_s_num_instances_set)
  17266. # Register FzArc4 in _mupdf:
  17267. _mupdf.FzArc4_swigregister(FzArc4)
  17268. class FzArchive(object):
  17269. r"""
  17270. Wrapper class for struct `fz_archive`.
  17271. fz_archive:
  17272. fz_archive provides methods for accessing "archive" files.
  17273. An archive file is a conceptual entity that contains multiple
  17274. files, which can be counted, enumerated, and read.
  17275. Implementations of fz_archive based upon directories, zip
  17276. and tar files are included.
  17277. """
  17278. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17279. __repr__ = _swig_repr
  17280. def fz_archive_format(self):
  17281. r"""
  17282. Class-aware wrapper for `::fz_archive_format()`.
  17283. Return a pointer to a string describing the format of the
  17284. archive.
  17285. The lifetime of the string is unspecified (in current
  17286. implementations the string will persist until the archive
  17287. is closed, but this is not guaranteed).
  17288. """
  17289. return _mupdf.FzArchive_fz_archive_format(self)
  17290. def fz_count_archive_entries(self):
  17291. r"""
  17292. Class-aware wrapper for `::fz_count_archive_entries()`.
  17293. Number of entries in archive.
  17294. Will always return a value >= 0.
  17295. May throw an exception if this type of archive cannot count the
  17296. entries (such as a directory).
  17297. """
  17298. return _mupdf.FzArchive_fz_count_archive_entries(self)
  17299. def fz_has_archive_entry(self, name):
  17300. r"""
  17301. Class-aware wrapper for `::fz_has_archive_entry()`.
  17302. Check if entry by given name exists.
  17303. If named entry does not exist 0 will be returned, if it does
  17304. exist 1 is returned.
  17305. name: Entry name to look for, this must be an exact match to
  17306. the entry name in the archive.
  17307. """
  17308. return _mupdf.FzArchive_fz_has_archive_entry(self, name)
  17309. def fz_list_archive_entry(self, idx):
  17310. r"""
  17311. Class-aware wrapper for `::fz_list_archive_entry()`.
  17312. Get listed name of entry position idx.
  17313. idx: Must be a value >= 0 < return value from
  17314. fz_count_archive_entries. If not in range NULL will be
  17315. returned.
  17316. May throw an exception if this type of archive cannot list the
  17317. entries (such as a directory).
  17318. """
  17319. return _mupdf.FzArchive_fz_list_archive_entry(self, idx)
  17320. def fz_mount_multi_archive(self, sub, path):
  17321. r"""
  17322. Class-aware wrapper for `::fz_mount_multi_archive()`.
  17323. Add an archive to the set of archives handled by a multi
  17324. archive.
  17325. If path is NULL, then the archive contents will appear at the
  17326. top level, otherwise, the archives contents will appear prefixed
  17327. by path.
  17328. """
  17329. return _mupdf.FzArchive_fz_mount_multi_archive(self, sub, path)
  17330. def fz_open_archive_entry(self, name):
  17331. r"""
  17332. Class-aware wrapper for `::fz_open_archive_entry()`.
  17333. Opens an archive entry as a stream.
  17334. name: Entry name to look for, this must be an exact match to
  17335. the entry name in the archive.
  17336. Throws an exception if a matching entry cannot be found.
  17337. """
  17338. return _mupdf.FzArchive_fz_open_archive_entry(self, name)
  17339. def fz_parse_xml_archive_entry(self, filename, preserve_white):
  17340. r"""
  17341. Class-aware wrapper for `::fz_parse_xml_archive_entry()`.
  17342. Parse the contents of an archive entry into a tree of xml nodes.
  17343. preserve_white: whether to keep or delete all-whitespace nodes.
  17344. """
  17345. return _mupdf.FzArchive_fz_parse_xml_archive_entry(self, filename, preserve_white)
  17346. def fz_read_archive_entry(self, name):
  17347. r"""
  17348. Class-aware wrapper for `::fz_read_archive_entry()`.
  17349. Reads all bytes in an archive entry
  17350. into a buffer.
  17351. name: Entry name to look for, this must be an exact match to
  17352. the entry name in the archive.
  17353. Throws an exception if a matching entry cannot be found.
  17354. """
  17355. return _mupdf.FzArchive_fz_read_archive_entry(self, name)
  17356. def fz_tree_archive_add_buffer(self, name, buf):
  17357. r"""
  17358. Class-aware wrapper for `::fz_tree_archive_add_buffer()`.
  17359. Add a named buffer to an existing tree archive.
  17360. The tree will take a new reference to the buffer. Ownership
  17361. is not transferred.
  17362. """
  17363. return _mupdf.FzArchive_fz_tree_archive_add_buffer(self, name, buf)
  17364. def fz_tree_archive_add_data(self, name, data, size):
  17365. r"""
  17366. Class-aware wrapper for `::fz_tree_archive_add_data()`.
  17367. Add a named block of data to an existing tree archive.
  17368. The data will be copied into a buffer, and so the caller
  17369. may free it as soon as this returns.
  17370. """
  17371. return _mupdf.FzArchive_fz_tree_archive_add_data(self, name, data, size)
  17372. def fz_try_open_archive_entry(self, name):
  17373. r"""
  17374. Class-aware wrapper for `::fz_try_open_archive_entry()`.
  17375. Opens an archive entry as a stream.
  17376. Returns NULL if a matching entry cannot be found, otherwise
  17377. behaves exactly as fz_open_archive_entry.
  17378. """
  17379. return _mupdf.FzArchive_fz_try_open_archive_entry(self, name)
  17380. def fz_try_parse_xml_archive_entry(self, filename, preserve_white):
  17381. r"""
  17382. Class-aware wrapper for `::fz_try_parse_xml_archive_entry()`.
  17383. Try and parse the contents of an archive entry into a tree of xml nodes.
  17384. preserve_white: whether to keep or delete all-whitespace nodes.
  17385. Will return NULL if the archive entry can't be found. Otherwise behaves
  17386. the same as fz_parse_xml_archive_entry. May throw exceptions.
  17387. """
  17388. return _mupdf.FzArchive_fz_try_parse_xml_archive_entry(self, filename, preserve_white)
  17389. def fz_try_read_archive_entry(self, name):
  17390. r"""
  17391. Class-aware wrapper for `::fz_try_read_archive_entry()`.
  17392. Reads all bytes in an archive entry
  17393. into a buffer.
  17394. name: Entry name to look for, this must be an exact match to
  17395. the entry name in the archive.
  17396. Returns NULL if a matching entry cannot be found. Otherwise behaves
  17397. the same as fz_read_archive_entry. Exceptions may be thrown.
  17398. """
  17399. return _mupdf.FzArchive_fz_try_read_archive_entry(self, name)
  17400. def __init__(self, *args):
  17401. r"""
  17402. *Overload 1:*
  17403. == Constructors. Constructor using `fz_new_archive_of_size()`.
  17404. |
  17405. *Overload 2:*
  17406. Constructor using `fz_new_multi_archive()`.
  17407. Create a new multi archive (initially empty).
  17408. |
  17409. *Overload 3:*
  17410. Constructor using `fz_new_tree_archive()`.
  17411. Create an archive that holds named buffers.
  17412. tree can either be a preformed tree with fz_buffers as values,
  17413. or it can be NULL for an empty tree.
  17414. |
  17415. *Overload 4:*
  17416. Copy constructor using `fz_keep_archive()`.
  17417. |
  17418. *Overload 5:*
  17419. Constructor using raw copy of pre-existing `::fz_archive`.
  17420. """
  17421. _mupdf.FzArchive_swiginit(self, _mupdf.new_FzArchive(*args))
  17422. __swig_destroy__ = _mupdf.delete_FzArchive
  17423. def m_internal_value(self):
  17424. r"""Return numerical value of .m_internal; helps with Python debugging."""
  17425. return _mupdf.FzArchive_m_internal_value(self)
  17426. def __nonzero__(self):
  17427. return _mupdf.FzArchive___nonzero__(self)
  17428. __bool__ = __nonzero__
  17429. m_internal = property(_mupdf.FzArchive_m_internal_get, _mupdf.FzArchive_m_internal_set, doc=r"""Pointer to wrapped data.""")
  17430. s_num_instances = property(_mupdf.FzArchive_s_num_instances_get, _mupdf.FzArchive_s_num_instances_set)
  17431. # Register FzArchive in _mupdf:
  17432. _mupdf.FzArchive_swigregister(FzArchive)
  17433. class FzArchiveHandler(object):
  17434. r"""Wrapper class for struct `fz_archive_handler`. Not copyable or assignable."""
  17435. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17436. __repr__ = _swig_repr
  17437. def fz_register_archive_handler(self):
  17438. r"""Class-aware wrapper for `::fz_register_archive_handler()`."""
  17439. return _mupdf.FzArchiveHandler_fz_register_archive_handler(self)
  17440. def __init__(self, *args):
  17441. r"""
  17442. *Overload 1:*
  17443. Default constructor, sets `m_internal` to null.
  17444. |
  17445. *Overload 2:*
  17446. Constructor using raw copy of pre-existing `::fz_archive_handler`.
  17447. """
  17448. _mupdf.FzArchiveHandler_swiginit(self, _mupdf.new_FzArchiveHandler(*args))
  17449. __swig_destroy__ = _mupdf.delete_FzArchiveHandler
  17450. def m_internal_value(self):
  17451. r"""Return numerical value of .m_internal; helps with Python debugging."""
  17452. return _mupdf.FzArchiveHandler_m_internal_value(self)
  17453. def __nonzero__(self):
  17454. return _mupdf.FzArchiveHandler___nonzero__(self)
  17455. __bool__ = __nonzero__
  17456. m_internal = property(_mupdf.FzArchiveHandler_m_internal_get, _mupdf.FzArchiveHandler_m_internal_set, doc=r"""Pointer to wrapped data.""")
  17457. s_num_instances = property(_mupdf.FzArchiveHandler_s_num_instances_get, _mupdf.FzArchiveHandler_s_num_instances_set)
  17458. # Register FzArchiveHandler in _mupdf:
  17459. _mupdf.FzArchiveHandler_swigregister(FzArchiveHandler)
  17460. class FzArchiveHandlerContext(object):
  17461. r"""Wrapper class for struct `fz_archive_handler_context`. Not copyable or assignable."""
  17462. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17463. __repr__ = _swig_repr
  17464. def __init__(self, *args):
  17465. r"""
  17466. *Overload 1:*
  17467. Default constructor, sets `m_internal` to null.
  17468. |
  17469. *Overload 2:*
  17470. Constructor using raw copy of pre-existing `::fz_archive_handler_context`.
  17471. """
  17472. _mupdf.FzArchiveHandlerContext_swiginit(self, _mupdf.new_FzArchiveHandlerContext(*args))
  17473. __swig_destroy__ = _mupdf.delete_FzArchiveHandlerContext
  17474. def m_internal_value(self):
  17475. r"""Return numerical value of .m_internal; helps with Python debugging."""
  17476. return _mupdf.FzArchiveHandlerContext_m_internal_value(self)
  17477. def __nonzero__(self):
  17478. return _mupdf.FzArchiveHandlerContext___nonzero__(self)
  17479. __bool__ = __nonzero__
  17480. m_internal = property(_mupdf.FzArchiveHandlerContext_m_internal_get, _mupdf.FzArchiveHandlerContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  17481. s_num_instances = property(_mupdf.FzArchiveHandlerContext_s_num_instances_get, _mupdf.FzArchiveHandlerContext_s_num_instances_set)
  17482. # Register FzArchiveHandlerContext in _mupdf:
  17483. _mupdf.FzArchiveHandlerContext_swigregister(FzArchiveHandlerContext)
  17484. class FzBandWriter(object):
  17485. r"""
  17486. Wrapper class for struct `fz_band_writer`. Not copyable or assignable.
  17487. fz_band_writer
  17488. """
  17489. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17490. __repr__ = _swig_repr
  17491. MONO = _mupdf.FzBandWriter_MONO
  17492. COLOR = _mupdf.FzBandWriter_COLOR
  17493. PNG = _mupdf.FzBandWriter_PNG
  17494. PNM = _mupdf.FzBandWriter_PNM
  17495. PAM = _mupdf.FzBandWriter_PAM
  17496. PBM = _mupdf.FzBandWriter_PBM
  17497. PKM = _mupdf.FzBandWriter_PKM
  17498. PS = _mupdf.FzBandWriter_PS
  17499. PSD = _mupdf.FzBandWriter_PSD
  17500. def fz_close_band_writer(self):
  17501. r"""
  17502. Class-aware wrapper for `::fz_close_band_writer()`.
  17503. Finishes up the output and closes the band writer. After this
  17504. call no more headers or bands may be written.
  17505. """
  17506. return _mupdf.FzBandWriter_fz_close_band_writer(self)
  17507. def fz_pdfocr_band_writer_set_progress(self, progress_fn, progress_arg):
  17508. r"""
  17509. Class-aware wrapper for `::fz_pdfocr_band_writer_set_progress()`.
  17510. Set the progress callback for a pdfocr bandwriter.
  17511. """
  17512. return _mupdf.FzBandWriter_fz_pdfocr_band_writer_set_progress(self, progress_fn, progress_arg)
  17513. def fz_write_band(self, stride, band_height, samples):
  17514. r"""
  17515. Class-aware wrapper for `::fz_write_band()`.
  17516. Cause a band writer to write the next band
  17517. of data for an image.
  17518. stride: The byte offset from the first byte of the data
  17519. for a pixel to the first byte of the data for the same pixel
  17520. on the row below.
  17521. band_height: The number of lines in this band.
  17522. samples: Pointer to first byte of the data.
  17523. """
  17524. return _mupdf.FzBandWriter_fz_write_band(self, stride, band_height, samples)
  17525. def fz_write_header(self, w, h, n, alpha, xres, yres, pagenum, cs, seps):
  17526. r"""
  17527. Class-aware wrapper for `::fz_write_header()`.
  17528. Cause a band writer to write the header for
  17529. a banded image with the given properties/dimensions etc. This
  17530. also configures the bandwriter for the format of the data to be
  17531. passed in future calls.
  17532. w, h: Width and Height of the entire page.
  17533. n: Number of components (including spots and alphas).
  17534. alpha: Number of alpha components.
  17535. xres, yres: X and Y resolutions in dpi.
  17536. cs: Colorspace (NULL for bitmaps)
  17537. seps: Separation details (or NULL).
  17538. """
  17539. return _mupdf.FzBandWriter_fz_write_header(self, w, h, n, alpha, xres, yres, pagenum, cs, seps)
  17540. def __init__(self, *args):
  17541. r"""
  17542. *Overload 1:*
  17543. == Constructors. Constructor using `fz_new_band_writer_of_size()`.
  17544. |
  17545. *Overload 2:*
  17546. Constructor using `fz_new_color_pcl_band_writer()`.
  17547. Create a new band writer, outputting color pcl.
  17548. Constructor using `fz_new_mono_pcl_band_writer()`.
  17549. Create a new band writer, outputting monochrome pcl.
  17550. |
  17551. *Overload 3:*
  17552. Constructor using `fz_new_mono_pwg_band_writer()`.
  17553. Create a new monochrome pwg band writer.
  17554. |
  17555. *Overload 4:*
  17556. Constructor using `fz_new_pam_band_writer()`.
  17557. Create a band writer targeting pnm (greyscale, rgb or cmyk,
  17558. with or without alpha).
  17559. Constructor using `fz_new_pbm_band_writer()`.
  17560. Create a new band writer, targeting pbm.
  17561. Constructor using `fz_new_pclm_band_writer()`.
  17562. Create a new band writer, outputting pclm
  17563. |
  17564. *Overload 5:*
  17565. Constructor using `fz_new_pdfocr_band_writer()`.
  17566. Create a new band writer, outputting pdfocr.
  17567. Ownership of output stays with the caller, the band writer
  17568. borrows the reference. The caller must keep the output around
  17569. for the duration of the band writer, and then close/drop as
  17570. appropriate.
  17571. |
  17572. *Overload 6:*
  17573. Constructor using `fz_new_pkm_band_writer()`.
  17574. Create a new pkm band writer for CMYK pixmaps.
  17575. Constructor using `fz_new_png_band_writer()`.
  17576. Create a new png band writer (greyscale or RGB, with or without
  17577. alpha).
  17578. |
  17579. *Overload 7:*
  17580. Constructor using `fz_new_pnm_band_writer()`.
  17581. Create a band writer targeting pnm (greyscale or rgb, no
  17582. alpha).
  17583. Constructor using `fz_new_ps_band_writer()`.
  17584. Create a postscript band writer for gray, rgb, or cmyk, no
  17585. alpha.
  17586. Constructor using `fz_new_psd_band_writer()`.
  17587. Open a PSD band writer.
  17588. Constructor using `fz_new_pwg_band_writer()`.
  17589. Create a new color pwg band writer.
  17590. Constructor using fz_new_mono_pcl_band_writer() or fz_new_color_pcl_band_writer().
  17591. |
  17592. *Overload 8:*
  17593. Constructor using fz_new_p*_band_writer().
  17594. |
  17595. *Overload 9:*
  17596. Constructor using fz_new_mono_pwg_band_writer() or fz_new_pwg_band_writer().
  17597. |
  17598. *Overload 10:*
  17599. Default constructor, sets `m_internal` to null.
  17600. |
  17601. *Overload 11:*
  17602. Constructor using raw copy of pre-existing `::fz_band_writer`.
  17603. """
  17604. _mupdf.FzBandWriter_swiginit(self, _mupdf.new_FzBandWriter(*args))
  17605. __swig_destroy__ = _mupdf.delete_FzBandWriter
  17606. def m_internal_value(self):
  17607. r"""Return numerical value of .m_internal; helps with Python debugging."""
  17608. return _mupdf.FzBandWriter_m_internal_value(self)
  17609. def __nonzero__(self):
  17610. return _mupdf.FzBandWriter___nonzero__(self)
  17611. __bool__ = __nonzero__
  17612. m_internal = property(_mupdf.FzBandWriter_m_internal_get, _mupdf.FzBandWriter_m_internal_set, doc=r"""Pointer to wrapped data.""")
  17613. s_num_instances = property(_mupdf.FzBandWriter_s_num_instances_get, _mupdf.FzBandWriter_s_num_instances_set)
  17614. # Register FzBandWriter in _mupdf:
  17615. _mupdf.FzBandWriter_swigregister(FzBandWriter)
  17616. class FzBitmap(object):
  17617. r"""
  17618. Wrapper class for struct `fz_bitmap`.
  17619. Bitmaps have 1 bit per component. Only used for creating
  17620. halftoned versions of contone buffers, and saving out. Samples
  17621. are stored msb first, akin to pbms.
  17622. The internals of this struct are considered implementation
  17623. details and subject to change. Where possible, accessor
  17624. functions should be used in preference.
  17625. """
  17626. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17627. __repr__ = _swig_repr
  17628. def fz_bitmap_details(self, w, h, n, stride):
  17629. r"""
  17630. Class-aware wrapper for `::fz_bitmap_details()`.
  17631. This method has out-params. Python/C# wrappers look like:
  17632. `fz_bitmap_details()` => `(int w, int h, int n, int stride)`
  17633. Retrieve details of a given bitmap.
  17634. bitmap: The bitmap to query.
  17635. w: Pointer to storage to retrieve width (or NULL).
  17636. h: Pointer to storage to retrieve height (or NULL).
  17637. n: Pointer to storage to retrieve number of color components (or
  17638. NULL).
  17639. stride: Pointer to storage to retrieve bitmap stride (or NULL).
  17640. """
  17641. return _mupdf.FzBitmap_fz_bitmap_details(self, w, h, n, stride)
  17642. def fz_clear_bitmap(self):
  17643. r"""
  17644. Class-aware wrapper for `::fz_clear_bitmap()`.
  17645. Set the entire bitmap to 0.
  17646. Never throws exceptions.
  17647. """
  17648. return _mupdf.FzBitmap_fz_clear_bitmap(self)
  17649. def fz_invert_bitmap(self):
  17650. r"""
  17651. Class-aware wrapper for `::fz_invert_bitmap()`.
  17652. Invert bitmap.
  17653. Never throws exceptions.
  17654. """
  17655. return _mupdf.FzBitmap_fz_invert_bitmap(self)
  17656. def fz_save_bitmap_as_pbm(self, filename):
  17657. r"""
  17658. Class-aware wrapper for `::fz_save_bitmap_as_pbm()`.
  17659. Save a bitmap as a pbm.
  17660. """
  17661. return _mupdf.FzBitmap_fz_save_bitmap_as_pbm(self, filename)
  17662. def fz_save_bitmap_as_pcl(self, filename, append, pcl):
  17663. r"""
  17664. Class-aware wrapper for `::fz_save_bitmap_as_pcl()`.
  17665. Save a bitmap as mono PCL.
  17666. """
  17667. return _mupdf.FzBitmap_fz_save_bitmap_as_pcl(self, filename, append, pcl)
  17668. def fz_save_bitmap_as_pkm(self, filename):
  17669. r"""
  17670. Class-aware wrapper for `::fz_save_bitmap_as_pkm()`.
  17671. Save a CMYK bitmap as a pkm.
  17672. """
  17673. return _mupdf.FzBitmap_fz_save_bitmap_as_pkm(self, filename)
  17674. def fz_save_bitmap_as_pwg(self, filename, append, pwg):
  17675. r"""
  17676. Class-aware wrapper for `::fz_save_bitmap_as_pwg()`.
  17677. Save a bitmap as a PWG.
  17678. """
  17679. return _mupdf.FzBitmap_fz_save_bitmap_as_pwg(self, filename, append, pwg)
  17680. def __init__(self, *args):
  17681. r"""
  17682. *Overload 1:*
  17683. == Constructors. Constructor using `fz_new_bitmap()`.
  17684. Create a new bitmap.
  17685. w, h: Width and Height for the bitmap
  17686. n: Number of color components (assumed to be a divisor of 8)
  17687. xres, yres: X and Y resolutions (in pixels per inch).
  17688. Returns pointer to created bitmap structure. The bitmap
  17689. data is uninitialised.
  17690. |
  17691. *Overload 2:*
  17692. Constructor using `fz_new_bitmap_from_image()`.
  17693. Make a bitmap from a pixmap and a halftone.
  17694. img: The image to generate from. Currently must be a single
  17695. color component with no alpha.
  17696. ht: The halftone to use. NULL implies the default halftone.
  17697. Returns the resultant bitmap. Throws exceptions in the case of
  17698. failure to allocate.
  17699. |
  17700. *Overload 3:*
  17701. Constructor using `fz_new_bitmap_from_pixmap()`.
  17702. Make a bitmap from a pixmap and a halftone.
  17703. pix: The pixmap to generate from. Currently must be a single
  17704. color component with no alpha.
  17705. ht: The halftone to use. NULL implies the default halftone.
  17706. Returns the resultant bitmap. Throws exceptions in the case of
  17707. failure to allocate.
  17708. |
  17709. *Overload 4:*
  17710. Constructor using `fz_new_bitmap_from_pixmap_band()`.
  17711. Make a bitmap from a pixmap and a
  17712. halftone, allowing for the position of the pixmap within an
  17713. overall banded rendering.
  17714. pix: The pixmap to generate from. Currently must be a single
  17715. color component with no alpha.
  17716. ht: The halftone to use. NULL implies the default halftone.
  17717. band_start: Vertical offset within the overall banded rendering
  17718. (in pixels)
  17719. Returns the resultant bitmap. Throws exceptions in the case of
  17720. failure to allocate.
  17721. |
  17722. *Overload 5:*
  17723. Copy constructor using `fz_keep_bitmap()`.
  17724. |
  17725. *Overload 6:*
  17726. Default constructor, sets `m_internal` to null.
  17727. |
  17728. *Overload 7:*
  17729. Constructor using raw copy of pre-existing `::fz_bitmap`.
  17730. """
  17731. _mupdf.FzBitmap_swiginit(self, _mupdf.new_FzBitmap(*args))
  17732. def refs(self):
  17733. return _mupdf.FzBitmap_refs(self)
  17734. def w(self):
  17735. return _mupdf.FzBitmap_w(self)
  17736. def h(self):
  17737. return _mupdf.FzBitmap_h(self)
  17738. def stride(self):
  17739. return _mupdf.FzBitmap_stride(self)
  17740. def n(self):
  17741. return _mupdf.FzBitmap_n(self)
  17742. def xres(self):
  17743. return _mupdf.FzBitmap_xres(self)
  17744. def yres(self):
  17745. return _mupdf.FzBitmap_yres(self)
  17746. def samples(self):
  17747. return _mupdf.FzBitmap_samples(self)
  17748. __swig_destroy__ = _mupdf.delete_FzBitmap
  17749. def m_internal_value(self):
  17750. r"""Return numerical value of .m_internal; helps with Python debugging."""
  17751. return _mupdf.FzBitmap_m_internal_value(self)
  17752. def __nonzero__(self):
  17753. return _mupdf.FzBitmap___nonzero__(self)
  17754. __bool__ = __nonzero__
  17755. m_internal = property(_mupdf.FzBitmap_m_internal_get, _mupdf.FzBitmap_m_internal_set, doc=r"""Pointer to wrapped data.""")
  17756. s_num_instances = property(_mupdf.FzBitmap_s_num_instances_get, _mupdf.FzBitmap_s_num_instances_set)
  17757. # Register FzBitmap in _mupdf:
  17758. _mupdf.FzBitmap_swigregister(FzBitmap)
  17759. class FzBuffer(object):
  17760. r"""
  17761. Wrapper class for struct `fz_buffer`.
  17762. fz_buffer is a wrapper around a dynamically allocated array of
  17763. bytes.
  17764. Buffers have a capacity (the number of bytes storage immediately
  17765. available) and a current size.
  17766. The contents of the structure are considered implementation
  17767. details and are subject to change. Users should use the accessor
  17768. functions in preference.
  17769. """
  17770. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  17771. __repr__ = _swig_repr
  17772. @staticmethod
  17773. def fz_new_buffer_from_copied_data(data, size):
  17774. r"""
  17775. Class-aware wrapper for `::fz_new_buffer_from_copied_data()`.
  17776. Create a new buffer containing a copy of the passed data.
  17777. """
  17778. return _mupdf.FzBuffer_fz_new_buffer_from_copied_data(data, size)
  17779. @staticmethod
  17780. def fz_new_buffer_from_image_as_pbm(image, color_params):
  17781. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pbm()`."""
  17782. return _mupdf.FzBuffer_fz_new_buffer_from_image_as_pbm(image, color_params)
  17783. @staticmethod
  17784. def fz_new_buffer_from_image_as_pkm(image, color_params):
  17785. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pkm()`."""
  17786. return _mupdf.FzBuffer_fz_new_buffer_from_image_as_pkm(image, color_params)
  17787. @staticmethod
  17788. def fz_new_buffer_from_image_as_pnm(image, color_params):
  17789. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pnm()`."""
  17790. return _mupdf.FzBuffer_fz_new_buffer_from_image_as_pnm(image, color_params)
  17791. @staticmethod
  17792. def fz_new_buffer_from_image_as_pam(image, color_params):
  17793. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pam()`."""
  17794. return _mupdf.FzBuffer_fz_new_buffer_from_image_as_pam(image, color_params)
  17795. @staticmethod
  17796. def fz_new_buffer_from_image_as_psd(image, color_params):
  17797. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_psd()`."""
  17798. return _mupdf.FzBuffer_fz_new_buffer_from_image_as_psd(image, color_params)
  17799. @staticmethod
  17800. def fz_new_buffer_from_pixmap_as_pbm(pixmap, color_params):
  17801. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pbm()`."""
  17802. return _mupdf.FzBuffer_fz_new_buffer_from_pixmap_as_pbm(pixmap, color_params)
  17803. @staticmethod
  17804. def fz_new_buffer_from_pixmap_as_pkm(pixmap, color_params):
  17805. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pkm()`."""
  17806. return _mupdf.FzBuffer_fz_new_buffer_from_pixmap_as_pkm(pixmap, color_params)
  17807. @staticmethod
  17808. def fz_new_buffer_from_pixmap_as_pnm(pixmap, color_params):
  17809. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pnm()`."""
  17810. return _mupdf.FzBuffer_fz_new_buffer_from_pixmap_as_pnm(pixmap, color_params)
  17811. @staticmethod
  17812. def fz_new_buffer_from_pixmap_as_pam(pixmap, color_params):
  17813. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pam()`."""
  17814. return _mupdf.FzBuffer_fz_new_buffer_from_pixmap_as_pam(pixmap, color_params)
  17815. @staticmethod
  17816. def fz_new_buffer_from_pixmap_as_psd(pix, color_params):
  17817. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_psd()`."""
  17818. return _mupdf.FzBuffer_fz_new_buffer_from_pixmap_as_psd(pix, color_params)
  17819. def fz_append_base64(self, data, size, newline):
  17820. r"""
  17821. Class-aware wrapper for `::fz_append_base64()`.
  17822. Write a base64 encoded data block, optionally with periodic newlines.
  17823. """
  17824. return _mupdf.FzBuffer_fz_append_base64(self, data, size, newline)
  17825. def fz_append_base64_buffer(self, data, newline):
  17826. r"""
  17827. Class-aware wrapper for `::fz_append_base64_buffer()`.
  17828. Append a base64 encoded fz_buffer, optionally with periodic newlines.
  17829. """
  17830. return _mupdf.FzBuffer_fz_append_base64_buffer(self, data, newline)
  17831. def fz_append_bits(self, value, count):
  17832. r"""Class-aware wrapper for `::fz_append_bits()`."""
  17833. return _mupdf.FzBuffer_fz_append_bits(self, value, count)
  17834. def fz_append_bits_pad(self):
  17835. r"""Class-aware wrapper for `::fz_append_bits_pad()`."""
  17836. return _mupdf.FzBuffer_fz_append_bits_pad(self)
  17837. def fz_append_buffer(self, source):
  17838. r"""
  17839. Class-aware wrapper for `::fz_append_buffer()`.
  17840. Append the contents of the source buffer onto the end of the
  17841. destination buffer, extending automatically as required.
  17842. Ownership of buffers does not change.
  17843. """
  17844. return _mupdf.FzBuffer_fz_append_buffer(self, source)
  17845. def fz_append_byte(self, c):
  17846. r"""Class-aware wrapper for `::fz_append_byte()`."""
  17847. return _mupdf.FzBuffer_fz_append_byte(self, c)
  17848. def fz_append_data(self, data, len):
  17849. r"""
  17850. Class-aware wrapper for `::fz_append_data()`.
  17851. fz_append_*: Append data to a buffer.
  17852. The buffer will automatically grow as required.
  17853. """
  17854. return _mupdf.FzBuffer_fz_append_data(self, data, len)
  17855. def fz_append_image_as_data_uri(self, image):
  17856. r"""Class-aware wrapper for `::fz_append_image_as_data_uri()`."""
  17857. return _mupdf.FzBuffer_fz_append_image_as_data_uri(self, image)
  17858. def fz_append_int16_be(self, x):
  17859. r"""Class-aware wrapper for `::fz_append_int16_be()`."""
  17860. return _mupdf.FzBuffer_fz_append_int16_be(self, x)
  17861. def fz_append_int16_le(self, x):
  17862. r"""Class-aware wrapper for `::fz_append_int16_le()`."""
  17863. return _mupdf.FzBuffer_fz_append_int16_le(self, x)
  17864. def fz_append_int32_be(self, x):
  17865. r"""Class-aware wrapper for `::fz_append_int32_be()`."""
  17866. return _mupdf.FzBuffer_fz_append_int32_be(self, x)
  17867. def fz_append_int32_le(self, x):
  17868. r"""Class-aware wrapper for `::fz_append_int32_le()`."""
  17869. return _mupdf.FzBuffer_fz_append_int32_le(self, x)
  17870. def fz_append_json(self, value):
  17871. r"""Class-aware wrapper for `::fz_append_json()`."""
  17872. return _mupdf.FzBuffer_fz_append_json(self, value)
  17873. def fz_append_pdf_string(self, text):
  17874. r"""
  17875. Class-aware wrapper for `::fz_append_pdf_string()`.
  17876. fz_append_pdf_string: Append a string with PDF syntax quotes and
  17877. escapes.
  17878. The buffer will automatically grow as required.
  17879. """
  17880. return _mupdf.FzBuffer_fz_append_pdf_string(self, text)
  17881. def fz_append_pixmap_as_data_uri(self, pixmap):
  17882. r"""Class-aware wrapper for `::fz_append_pixmap_as_data_uri()`."""
  17883. return _mupdf.FzBuffer_fz_append_pixmap_as_data_uri(self, pixmap)
  17884. def fz_append_rune(self, c):
  17885. r"""Class-aware wrapper for `::fz_append_rune()`."""
  17886. return _mupdf.FzBuffer_fz_append_rune(self, c)
  17887. def fz_append_string(self, data):
  17888. r"""Class-aware wrapper for `::fz_append_string()`."""
  17889. return _mupdf.FzBuffer_fz_append_string(self, data)
  17890. def fz_buffer_extract(self, data):
  17891. r"""
  17892. Class-aware wrapper for `::fz_buffer_extract()`.
  17893. This method has out-params. Python/C# wrappers look like:
  17894. `fz_buffer_extract()` => `(size_t, unsigned char *data)`
  17895. Take ownership of buffer contents.
  17896. Performs the same task as fz_buffer_storage, but ownership of
  17897. the data buffer returns with this call. The buffer is left
  17898. empty.
  17899. Note: Bad things may happen if this is called on a buffer with
  17900. multiple references that is being used from multiple threads.
  17901. data: Pointer to place to retrieve data pointer.
  17902. Returns length of stream.
  17903. """
  17904. return _mupdf.FzBuffer_fz_buffer_extract(self, data)
  17905. def fz_buffer_storage(self, datap):
  17906. r"""
  17907. Class-aware wrapper for `::fz_buffer_storage()`.
  17908. This method has out-params. Python/C# wrappers look like:
  17909. `fz_buffer_storage()` => `(size_t, unsigned char *datap)`
  17910. Retrieve internal memory of buffer.
  17911. datap: Output parameter that will be pointed to the data.
  17912. Returns the current size of the data in bytes.
  17913. """
  17914. return _mupdf.FzBuffer_fz_buffer_storage(self, datap)
  17915. def fz_clear_buffer(self):
  17916. r"""
  17917. Class-aware wrapper for `::fz_clear_buffer()`.
  17918. Empties the buffer. Storage is not freed, but is held ready
  17919. to be reused as the buffer is refilled.
  17920. Never throws exceptions.
  17921. """
  17922. return _mupdf.FzBuffer_fz_clear_buffer(self)
  17923. def fz_clone_buffer(self):
  17924. r"""
  17925. Class-aware wrapper for `::fz_clone_buffer()`.
  17926. Make a new buffer, containing a copy of the data used in
  17927. the original.
  17928. """
  17929. return _mupdf.FzBuffer_fz_clone_buffer(self)
  17930. def fz_grow_buffer(self):
  17931. r"""
  17932. Class-aware wrapper for `::fz_grow_buffer()`.
  17933. Make some space within a buffer (i.e. ensure that
  17934. capacity > size).
  17935. """
  17936. return _mupdf.FzBuffer_fz_grow_buffer(self)
  17937. def fz_load_jbig2_globals(self):
  17938. r"""
  17939. Class-aware wrapper for `::fz_load_jbig2_globals()`.
  17940. Create a jbig2 globals record from a buffer.
  17941. Immutable once created.
  17942. """
  17943. return _mupdf.FzBuffer_fz_load_jbig2_globals(self)
  17944. def fz_md5_buffer(self, digest):
  17945. r"""
  17946. Class-aware wrapper for `::fz_md5_buffer()`.
  17947. Create an MD5 digest from buffer contents.
  17948. Never throws exceptions.
  17949. """
  17950. return _mupdf.FzBuffer_fz_md5_buffer(self, digest)
  17951. def fz_new_display_list_from_svg(self, base_uri, dir, w, h):
  17952. r"""
  17953. Class-aware wrapper for `::fz_new_display_list_from_svg()`.
  17954. This method has out-params. Python/C# wrappers look like:
  17955. `fz_new_display_list_from_svg(const char *base_uri, ::fz_archive *dir)` => `(fz_display_list *, float w, float h)`
  17956. Parse an SVG document into a display-list.
  17957. """
  17958. return _mupdf.FzBuffer_fz_new_display_list_from_svg(self, base_uri, dir, w, h)
  17959. def fz_new_image_from_buffer(self):
  17960. r"""
  17961. Class-aware wrapper for `::fz_new_image_from_buffer()`.
  17962. Create a new image from a
  17963. buffer of data, inferring its type from the format
  17964. of the data.
  17965. """
  17966. return _mupdf.FzBuffer_fz_new_image_from_buffer(self)
  17967. def fz_new_image_from_svg(self, base_uri, dir):
  17968. r"""
  17969. Class-aware wrapper for `::fz_new_image_from_svg()`.
  17970. Create a scalable image from an SVG document.
  17971. """
  17972. return _mupdf.FzBuffer_fz_new_image_from_svg(self, base_uri, dir)
  17973. def fz_open_buffer(self):
  17974. r"""
  17975. Class-aware wrapper for `::fz_open_buffer()`.
  17976. Open a buffer as a stream.
  17977. buf: The buffer to open. Ownership of the buffer is NOT passed
  17978. in (this function takes its own reference).
  17979. Returns pointer to newly created stream. May throw exceptions on
  17980. failure to allocate.
  17981. """
  17982. return _mupdf.FzBuffer_fz_open_buffer(self)
  17983. def fz_parse_xml(self, preserve_white):
  17984. r"""
  17985. Class-aware wrapper for `::fz_parse_xml()`.
  17986. Parse the contents of buffer into a tree of xml nodes.
  17987. preserve_white: whether to keep or delete all-whitespace nodes.
  17988. """
  17989. return _mupdf.FzBuffer_fz_parse_xml(self, preserve_white)
  17990. def fz_parse_xml_from_html5(self):
  17991. r"""
  17992. Class-aware wrapper for `::fz_parse_xml_from_html5()`.
  17993. Parse the contents of a buffer into a tree of XML nodes,
  17994. using the HTML5 parsing algorithm.
  17995. """
  17996. return _mupdf.FzBuffer_fz_parse_xml_from_html5(self)
  17997. def fz_resize_buffer(self, capacity):
  17998. r"""
  17999. Class-aware wrapper for `::fz_resize_buffer()`.
  18000. Ensure that a buffer has a given capacity,
  18001. truncating data if required.
  18002. capacity: The desired capacity for the buffer. If the current
  18003. size of the buffer contents is smaller than capacity, it is
  18004. truncated.
  18005. """
  18006. return _mupdf.FzBuffer_fz_resize_buffer(self, capacity)
  18007. def fz_save_buffer(self, filename):
  18008. r"""
  18009. Class-aware wrapper for `::fz_save_buffer()`.
  18010. Save the contents of a buffer to a file.
  18011. """
  18012. return _mupdf.FzBuffer_fz_save_buffer(self, filename)
  18013. def fz_slice_buffer(self, start, end):
  18014. r"""
  18015. Class-aware wrapper for `::fz_slice_buffer()`.
  18016. Create a new buffer with a (subset of) the data from the buffer.
  18017. start: if >= 0, offset from start of buffer, if < 0 offset from end of buffer.
  18018. end: if >= 0, offset from start of buffer, if < 0 offset from end of buffer.
  18019. """
  18020. return _mupdf.FzBuffer_fz_slice_buffer(self, start, end)
  18021. def fz_string_from_buffer(self):
  18022. r"""
  18023. Class-aware wrapper for `::fz_string_from_buffer()`.
  18024. Ensure that a buffer's data ends in a
  18025. 0 byte, and return a pointer to it.
  18026. """
  18027. return _mupdf.FzBuffer_fz_string_from_buffer(self)
  18028. def fz_subset_cff_for_gids(self, gids, num_gids, symbolic, cidfont):
  18029. r"""
  18030. Class-aware wrapper for `::fz_subset_cff_for_gids()`.
  18031. This method has out-params. Python/C# wrappers look like:
  18032. `fz_subset_cff_for_gids(int num_gids, int symbolic, int cidfont)` => `(fz_buffer *, int gids)`
  18033. """
  18034. return _mupdf.FzBuffer_fz_subset_cff_for_gids(self, gids, num_gids, symbolic, cidfont)
  18035. def fz_subset_ttf_for_gids(self, gids, num_gids, symbolic, cidfont):
  18036. r"""
  18037. Class-aware wrapper for `::fz_subset_ttf_for_gids()`.
  18038. This method has out-params. Python/C# wrappers look like:
  18039. `fz_subset_ttf_for_gids(int num_gids, int symbolic, int cidfont)` => `(fz_buffer *, int gids)`
  18040. """
  18041. return _mupdf.FzBuffer_fz_subset_ttf_for_gids(self, gids, num_gids, symbolic, cidfont)
  18042. def fz_terminate_buffer(self):
  18043. r"""
  18044. Class-aware wrapper for `::fz_terminate_buffer()`.
  18045. Zero-terminate buffer in order to use as a C string.
  18046. This byte is invisible and does not affect the length of the
  18047. buffer as returned by fz_buffer_storage. The zero byte is
  18048. written *after* the data, and subsequent writes will overwrite
  18049. the terminating byte.
  18050. Subsequent changes to the size of the buffer (such as by
  18051. fz_buffer_trim, fz_buffer_grow, fz_resize_buffer, etc) may
  18052. invalidate this.
  18053. """
  18054. return _mupdf.FzBuffer_fz_terminate_buffer(self)
  18055. def fz_trim_buffer(self):
  18056. r"""
  18057. Class-aware wrapper for `::fz_trim_buffer()`.
  18058. Trim wasted capacity from a buffer by resizing internal memory.
  18059. """
  18060. return _mupdf.FzBuffer_fz_trim_buffer(self)
  18061. def pdf_append_token(self, tok, lex):
  18062. r"""Class-aware wrapper for `::pdf_append_token()`."""
  18063. return _mupdf.FzBuffer_pdf_append_token(self, tok, lex)
  18064. def pdf_new_buffer_processor(self, ahxencode, newlines):
  18065. r"""Class-aware wrapper for `::pdf_new_buffer_processor()`."""
  18066. return _mupdf.FzBuffer_pdf_new_buffer_processor(self, ahxencode, newlines)
  18067. def __init__(self, *args):
  18068. r"""
  18069. *Overload 1:*
  18070. == Constructors. Constructor using `fz_new_buffer()`.
  18071. |
  18072. *Overload 2:*
  18073. Constructor using `fz_new_buffer_from_base64()`.
  18074. Create a new buffer with data decoded from a base64 input string.
  18075. |
  18076. *Overload 3:*
  18077. Constructor using `fz_new_buffer_from_data()`.
  18078. Create a new buffer with existing data.
  18079. data: Pointer to existing data.
  18080. size: Size of existing data.
  18081. Takes ownership of data. Does not make a copy. Calls fz_free on
  18082. the data when the buffer is deallocated. Do not use 'data' after
  18083. passing to this function.
  18084. Returns pointer to new buffer. Throws exception on allocation
  18085. failure.
  18086. |
  18087. *Overload 4:*
  18088. Constructor using `fz_new_buffer_from_display_list()`.
  18089. |
  18090. *Overload 5:*
  18091. Constructor using `fz_new_buffer_from_image_as_jpeg()`.
  18092. |
  18093. *Overload 6:*
  18094. Constructor using `fz_new_buffer_from_image_as_jpx()`.
  18095. |
  18096. *Overload 7:*
  18097. Constructor using `fz_new_buffer_from_image_as_png()`.
  18098. Re-encode a given image as a PNG into a buffer.
  18099. Ownership of the buffer is returned.
  18100. |
  18101. *Overload 8:*
  18102. Constructor using `fz_new_buffer_from_page()`.
  18103. |
  18104. *Overload 9:*
  18105. Constructor using `fz_new_buffer_from_page_number()`.
  18106. |
  18107. *Overload 10:*
  18108. Constructor using `fz_new_buffer_from_page_with_format()`.
  18109. Returns an fz_buffer containing a page after conversion to specified format.
  18110. page: The page to convert.
  18111. format, options: Passed to fz_new_document_writer_with_output() internally.
  18112. transform, cookie: Passed to fz_run_page() internally.
  18113. |
  18114. *Overload 11:*
  18115. Constructor using `fz_new_buffer_from_pixmap_as_jpeg()`.
  18116. |
  18117. *Overload 12:*
  18118. Constructor using `fz_new_buffer_from_pixmap_as_jpx()`.
  18119. |
  18120. *Overload 13:*
  18121. Constructor using `fz_new_buffer_from_pixmap_as_png()`.
  18122. Re-encode a given pixmap as a PNG into a buffer.
  18123. Ownership of the buffer is returned.
  18124. |
  18125. *Overload 14:*
  18126. Constructor using `fz_new_buffer_from_shared_data()`.
  18127. Like fz_new_buffer, but does not take ownership.
  18128. |
  18129. *Overload 15:*
  18130. Constructor using `fz_new_buffer_from_stext_page()`.
  18131. Convert structured text into plain text.
  18132. |
  18133. *Overload 16:*
  18134. Constructor using `fz_read_file()`.
  18135. Read all the contents of a file into a buffer.
  18136. |
  18137. *Overload 17:*
  18138. Copy constructor using `fz_keep_buffer()`.
  18139. |
  18140. *Overload 18:*
  18141. Constructor using raw copy of pre-existing `::fz_buffer`.
  18142. |
  18143. *Overload 19:*
  18144. Constructor using raw copy of pre-existing `::fz_buffer`.
  18145. """
  18146. _mupdf.FzBuffer_swiginit(self, _mupdf.new_FzBuffer(*args))
  18147. __swig_destroy__ = _mupdf.delete_FzBuffer
  18148. def m_internal_value(self):
  18149. r"""Return numerical value of .m_internal; helps with Python debugging."""
  18150. return _mupdf.FzBuffer_m_internal_value(self)
  18151. def __nonzero__(self):
  18152. return _mupdf.FzBuffer___nonzero__(self)
  18153. __bool__ = __nonzero__
  18154. m_internal = property(_mupdf.FzBuffer_m_internal_get, _mupdf.FzBuffer_m_internal_set, doc=r"""Pointer to wrapped data.""")
  18155. s_num_instances = property(_mupdf.FzBuffer_s_num_instances_get, _mupdf.FzBuffer_s_num_instances_set)
  18156. # Register FzBuffer in _mupdf:
  18157. _mupdf.FzBuffer_swigregister(FzBuffer)
  18158. class FzColorParams(object):
  18159. r"""Wrapper class for struct `fz_color_params`."""
  18160. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  18161. __repr__ = _swig_repr
  18162. def __init__(self, *args):
  18163. r"""
  18164. *Overload 1:*
  18165. Equivalent to fz_default_color_params.
  18166. |
  18167. *Overload 2:*
  18168. We use default copy constructor and operator=. Constructor using raw copy of pre-existing `::fz_color_params`.
  18169. |
  18170. *Overload 3:*
  18171. Constructor using raw copy of pre-existing `::fz_color_params`.
  18172. """
  18173. _mupdf.FzColorParams_swiginit(self, _mupdf.new_FzColorParams(*args))
  18174. def internal(self, *args):
  18175. r"""
  18176. *Overload 1:*
  18177. Access as underlying struct.
  18178. |
  18179. *Overload 2:*
  18180. Access as underlying struct.
  18181. """
  18182. return _mupdf.FzColorParams_internal(self, *args)
  18183. __swig_destroy__ = _mupdf.delete_FzColorParams
  18184. ri = property(_mupdf.FzColorParams_ri_get, _mupdf.FzColorParams_ri_set)
  18185. bp = property(_mupdf.FzColorParams_bp_get, _mupdf.FzColorParams_bp_set)
  18186. op = property(_mupdf.FzColorParams_op_get, _mupdf.FzColorParams_op_set)
  18187. opm = property(_mupdf.FzColorParams_opm_get, _mupdf.FzColorParams_opm_set)
  18188. s_num_instances = property(_mupdf.FzColorParams_s_num_instances_get, _mupdf.FzColorParams_s_num_instances_set)
  18189. def to_string(self):
  18190. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  18191. return _mupdf.FzColorParams_to_string(self)
  18192. def __eq__(self, rhs):
  18193. r"""Comparison method."""
  18194. return _mupdf.FzColorParams___eq__(self, rhs)
  18195. def __ne__(self, rhs):
  18196. r"""Comparison method."""
  18197. return _mupdf.FzColorParams___ne__(self, rhs)
  18198. # Register FzColorParams in _mupdf:
  18199. _mupdf.FzColorParams_swigregister(FzColorParams)
  18200. class FzColorspace(object):
  18201. r"""
  18202. Wrapper class for struct `fz_colorspace`.
  18203. Describes a given colorspace.
  18204. """
  18205. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  18206. __repr__ = _swig_repr
  18207. Fixed_GRAY = _mupdf.FzColorspace_Fixed_GRAY
  18208. Fixed_RGB = _mupdf.FzColorspace_Fixed_RGB
  18209. Fixed_BGR = _mupdf.FzColorspace_Fixed_BGR
  18210. Fixed_CMYK = _mupdf.FzColorspace_Fixed_CMYK
  18211. Fixed_LAB = _mupdf.FzColorspace_Fixed_LAB
  18212. def fz_base_colorspace(self):
  18213. r"""
  18214. Class-aware wrapper for `::fz_base_colorspace()`.
  18215. Get the 'base' colorspace for a colorspace.
  18216. For indexed colorspaces, this is the colorspace the index
  18217. decodes into. For all other colorspaces, it is the colorspace
  18218. itself.
  18219. The returned colorspace is 'borrowed' (i.e. no additional
  18220. references are taken or dropped).
  18221. """
  18222. return _mupdf.FzColorspace_fz_base_colorspace(self)
  18223. def fz_clamp_color(self, _in, out):
  18224. r"""
  18225. Class-aware wrapper for `::fz_clamp_color()`.
  18226. This method has out-params. Python/C# wrappers look like:
  18227. `fz_clamp_color(const float *in)` => float out
  18228. Clamp the samples in a color to the correct ranges for a
  18229. given colorspace.
  18230. """
  18231. return _mupdf.FzColorspace_fz_clamp_color(self, _in, out)
  18232. def fz_colorspace_colorant(self, n):
  18233. r"""
  18234. Class-aware wrapper for `::fz_colorspace_colorant()`.
  18235. Retrieve a the name for a colorant.
  18236. Returns a pointer with the same lifespan as the colorspace.
  18237. """
  18238. return _mupdf.FzColorspace_fz_colorspace_colorant(self, n)
  18239. def fz_colorspace_device_n_has_cmyk(self):
  18240. r"""
  18241. Class-aware wrapper for `::fz_colorspace_device_n_has_cmyk()`.
  18242. True if DeviceN color space has cyan magenta yellow or black as
  18243. one of its colorants.
  18244. """
  18245. return _mupdf.FzColorspace_fz_colorspace_device_n_has_cmyk(self)
  18246. def fz_colorspace_device_n_has_only_cmyk(self):
  18247. r"""
  18248. Class-aware wrapper for `::fz_colorspace_device_n_has_only_cmyk()`.
  18249. True if DeviceN color space has only colorants from the CMYK set.
  18250. """
  18251. return _mupdf.FzColorspace_fz_colorspace_device_n_has_only_cmyk(self)
  18252. def fz_colorspace_digest(self, digest):
  18253. r"""
  18254. Class-aware wrapper for `::fz_colorspace_digest()`.
  18255. Get checksum of underlying ICC profile.
  18256. """
  18257. return _mupdf.FzColorspace_fz_colorspace_digest(self, digest)
  18258. def fz_colorspace_is_cmyk(self):
  18259. r"""Class-aware wrapper for `::fz_colorspace_is_cmyk()`."""
  18260. return _mupdf.FzColorspace_fz_colorspace_is_cmyk(self)
  18261. def fz_colorspace_is_device(self):
  18262. r"""Class-aware wrapper for `::fz_colorspace_is_device()`."""
  18263. return _mupdf.FzColorspace_fz_colorspace_is_device(self)
  18264. def fz_colorspace_is_device_cmyk(self):
  18265. r"""Class-aware wrapper for `::fz_colorspace_is_device_cmyk()`."""
  18266. return _mupdf.FzColorspace_fz_colorspace_is_device_cmyk(self)
  18267. def fz_colorspace_is_device_gray(self):
  18268. r"""Class-aware wrapper for `::fz_colorspace_is_device_gray()`."""
  18269. return _mupdf.FzColorspace_fz_colorspace_is_device_gray(self)
  18270. def fz_colorspace_is_device_n(self):
  18271. r"""Class-aware wrapper for `::fz_colorspace_is_device_n()`."""
  18272. return _mupdf.FzColorspace_fz_colorspace_is_device_n(self)
  18273. def fz_colorspace_is_gray(self):
  18274. r"""
  18275. Class-aware wrapper for `::fz_colorspace_is_gray()`.
  18276. Tests for particular types of colorspaces
  18277. """
  18278. return _mupdf.FzColorspace_fz_colorspace_is_gray(self)
  18279. def fz_colorspace_is_icc(self):
  18280. r"""Class-aware wrapper for `::fz_colorspace_is_icc()`."""
  18281. return _mupdf.FzColorspace_fz_colorspace_is_icc(self)
  18282. def fz_colorspace_is_indexed(self):
  18283. r"""Class-aware wrapper for `::fz_colorspace_is_indexed()`."""
  18284. return _mupdf.FzColorspace_fz_colorspace_is_indexed(self)
  18285. def fz_colorspace_is_lab(self):
  18286. r"""Class-aware wrapper for `::fz_colorspace_is_lab()`."""
  18287. return _mupdf.FzColorspace_fz_colorspace_is_lab(self)
  18288. def fz_colorspace_is_lab_icc(self):
  18289. r"""Class-aware wrapper for `::fz_colorspace_is_lab_icc()`."""
  18290. return _mupdf.FzColorspace_fz_colorspace_is_lab_icc(self)
  18291. def fz_colorspace_is_rgb(self):
  18292. r"""Class-aware wrapper for `::fz_colorspace_is_rgb()`."""
  18293. return _mupdf.FzColorspace_fz_colorspace_is_rgb(self)
  18294. def fz_colorspace_is_subtractive(self):
  18295. r"""
  18296. Class-aware wrapper for `::fz_colorspace_is_subtractive()`.
  18297. True for CMYK, Separation and DeviceN colorspaces.
  18298. """
  18299. return _mupdf.FzColorspace_fz_colorspace_is_subtractive(self)
  18300. def fz_colorspace_n(self):
  18301. r"""
  18302. Class-aware wrapper for `::fz_colorspace_n()`.
  18303. Query the number of colorants in a colorspace.
  18304. """
  18305. return _mupdf.FzColorspace_fz_colorspace_n(self)
  18306. def fz_colorspace_name(self):
  18307. r"""
  18308. Class-aware wrapper for `::fz_colorspace_name()`.
  18309. Query the name of a colorspace.
  18310. The returned string has the same lifespan as the colorspace
  18311. does. Caller should not free it.
  18312. """
  18313. return _mupdf.FzColorspace_fz_colorspace_name(self)
  18314. def fz_colorspace_name_colorant(self, n, name):
  18315. r"""
  18316. Class-aware wrapper for `::fz_colorspace_name_colorant()`.
  18317. Assign a name for a given colorant in a colorspace.
  18318. Used while initially setting up a colorspace. The string is
  18319. copied into local storage, so need not be retained by the
  18320. caller.
  18321. """
  18322. return _mupdf.FzColorspace_fz_colorspace_name_colorant(self, n, name)
  18323. def fz_colorspace_type(self):
  18324. r"""
  18325. Class-aware wrapper for `::fz_colorspace_type()`.
  18326. Query the type of colorspace.
  18327. """
  18328. return _mupdf.FzColorspace_fz_colorspace_type(self)
  18329. def fz_convert_color(self, sv, ds, dv, _is, params):
  18330. r"""
  18331. Class-aware wrapper for `::fz_convert_color()`.
  18332. This method has out-params. Python/C# wrappers look like:
  18333. `fz_convert_color(const float *sv, ::fz_colorspace *ds, ::fz_colorspace *is, ::fz_color_params params)` => float dv
  18334. Convert color values sv from colorspace ss into colorvalues dv
  18335. for colorspace ds, via an optional intervening space is,
  18336. respecting the given color_params.
  18337. """
  18338. return _mupdf.FzColorspace_fz_convert_color(self, sv, ds, dv, _is, params)
  18339. def fz_convert_separation_colors(self, src_color, dst_seps, dst_cs, dst_color, color_params):
  18340. r"""
  18341. Class-aware wrapper for `::fz_convert_separation_colors()`.
  18342. This method has out-params. Python/C# wrappers look like:
  18343. `fz_convert_separation_colors(const float *src_color, ::fz_separations *dst_seps, ::fz_colorspace *dst_cs, ::fz_color_params color_params)` => float dst_color
  18344. Convert a color given in terms of one colorspace,
  18345. to a color in terms of another colorspace/separations.
  18346. """
  18347. return _mupdf.FzColorspace_fz_convert_separation_colors(self, src_color, dst_seps, dst_cs, dst_color, color_params)
  18348. def fz_is_valid_blend_colorspace(self):
  18349. r"""
  18350. Class-aware wrapper for `::fz_is_valid_blend_colorspace()`.
  18351. Check to see that a colorspace is appropriate to be used as
  18352. a blending space (i.e. only grey, rgb or cmyk).
  18353. """
  18354. return _mupdf.FzColorspace_fz_is_valid_blend_colorspace(self)
  18355. def fz_new_indexed_colorspace(self, high, lookup):
  18356. r"""
  18357. Class-aware wrapper for `::fz_new_indexed_colorspace()`.
  18358. Create an indexed colorspace.
  18359. The supplied lookup table is high palette entries long. Each
  18360. entry is n bytes long, where n is given by the number of
  18361. colorants in the base colorspace, one byte per colorant.
  18362. Ownership of lookup is passed it; it will be freed on
  18363. destruction, so must be heap allocated.
  18364. The colorspace will keep an additional reference to the base
  18365. colorspace that will be dropped on destruction.
  18366. The returned reference should be dropped when it is finished
  18367. with.
  18368. Colorspaces are immutable once created.
  18369. """
  18370. return _mupdf.FzColorspace_fz_new_indexed_colorspace(self, high, lookup)
  18371. def fz_new_pixmap(self, w, h, seps, alpha):
  18372. r"""
  18373. Class-aware wrapper for `::fz_new_pixmap()`.
  18374. Create a new pixmap, with its origin at (0,0)
  18375. cs: The colorspace to use for the pixmap, or NULL for an alpha
  18376. plane/mask.
  18377. w: The width of the pixmap (in pixels)
  18378. h: The height of the pixmap (in pixels)
  18379. seps: Details of separations.
  18380. alpha: 0 for no alpha, 1 for alpha.
  18381. Returns a pointer to the new pixmap. Throws exception on failure
  18382. to allocate.
  18383. """
  18384. return _mupdf.FzColorspace_fz_new_pixmap(self, w, h, seps, alpha)
  18385. def fz_new_pixmap_with_bbox(self, bbox, seps, alpha):
  18386. r"""
  18387. Class-aware wrapper for `::fz_new_pixmap_with_bbox()`.
  18388. Create a pixmap of a given size, location and pixel format.
  18389. The bounding box specifies the size of the created pixmap and
  18390. where it will be located. The colorspace determines the number
  18391. of components per pixel. Alpha is always present. Pixmaps are
  18392. reference counted, so drop references using fz_drop_pixmap.
  18393. colorspace: Colorspace format used for the created pixmap. The
  18394. pixmap will keep a reference to the colorspace.
  18395. bbox: Bounding box specifying location/size of created pixmap.
  18396. seps: Details of separations.
  18397. alpha: 0 for no alpha, 1 for alpha.
  18398. Returns a pointer to the new pixmap. Throws exception on failure
  18399. to allocate.
  18400. """
  18401. return _mupdf.FzColorspace_fz_new_pixmap_with_bbox(self, bbox, seps, alpha)
  18402. def fz_new_pixmap_with_bbox_and_data(self, rect, seps, alpha, samples):
  18403. r"""
  18404. Class-aware wrapper for `::fz_new_pixmap_with_bbox_and_data()`.
  18405. Create a pixmap of a given size, location and pixel format,
  18406. using the supplied data block.
  18407. The bounding box specifies the size of the created pixmap and
  18408. where it will be located. The colorspace determines the number
  18409. of components per pixel. Alpha is always present. Pixmaps are
  18410. reference counted, so drop references using fz_drop_pixmap.
  18411. colorspace: Colorspace format used for the created pixmap. The
  18412. pixmap will keep a reference to the colorspace.
  18413. rect: Bounding box specifying location/size of created pixmap.
  18414. seps: Details of separations.
  18415. alpha: Number of alpha planes (0 or 1).
  18416. samples: The data block to keep the samples in.
  18417. Returns a pointer to the new pixmap. Throws exception on failure
  18418. to allocate.
  18419. """
  18420. return _mupdf.FzColorspace_fz_new_pixmap_with_bbox_and_data(self, rect, seps, alpha, samples)
  18421. def fz_new_pixmap_with_data(self, w, h, seps, alpha, stride, samples):
  18422. r"""
  18423. Class-aware wrapper for `::fz_new_pixmap_with_data()`.
  18424. Create a new pixmap, with its origin at
  18425. (0,0) using the supplied data block.
  18426. cs: The colorspace to use for the pixmap, or NULL for an alpha
  18427. plane/mask.
  18428. w: The width of the pixmap (in pixels)
  18429. h: The height of the pixmap (in pixels)
  18430. seps: Details of separations.
  18431. alpha: 0 for no alpha, 1 for alpha.
  18432. stride: The byte offset from the pixel data in a row to the
  18433. pixel data in the next row.
  18434. samples: The data block to keep the samples in.
  18435. Returns a pointer to the new pixmap. Throws exception on failure to
  18436. allocate.
  18437. """
  18438. return _mupdf.FzColorspace_fz_new_pixmap_with_data(self, w, h, seps, alpha, stride, samples)
  18439. def pdf_is_tint_colorspace(self):
  18440. r"""Class-aware wrapper for `::pdf_is_tint_colorspace()`."""
  18441. return _mupdf.FzColorspace_pdf_is_tint_colorspace(self)
  18442. def __init__(self, *args):
  18443. r"""
  18444. *Overload 1:*
  18445. == Constructors. Constructor using `fz_new_cal_gray_colorspace()`.
  18446. Create a calibrated gray colorspace.
  18447. The returned reference should be dropped when it is finished
  18448. with.
  18449. Colorspaces are immutable once created.
  18450. |
  18451. *Overload 2:*
  18452. Constructor using `fz_new_cal_rgb_colorspace()`.
  18453. Create a calibrated rgb colorspace.
  18454. The returned reference should be dropped when it is finished
  18455. with.
  18456. Colorspaces are immutable once created.
  18457. |
  18458. *Overload 3:*
  18459. Constructor using `fz_new_colorspace()`.
  18460. Creates a new colorspace instance and returns a reference.
  18461. No internal checking is done that the colorspace type (e.g.
  18462. CMYK) matches with the flags (e.g. FZ_COLORSPACE_HAS_CMYK) or
  18463. colorant count (n) or name.
  18464. The reference should be dropped when it is finished with.
  18465. Colorspaces are immutable once created (with the exception of
  18466. setting up colorant names for separation spaces).
  18467. |
  18468. *Overload 4:*
  18469. Constructor using `fz_new_icc_colorspace()`.
  18470. Create a colorspace from an ICC profile supplied in buf.
  18471. Limited checking is done to ensure that the colorspace type is
  18472. appropriate for the supplied ICC profile.
  18473. An additional reference is taken to buf, which will be dropped
  18474. on destruction. Ownership is NOT passed in.
  18475. The returned reference should be dropped when it is finished
  18476. with.
  18477. Colorspaces are immutable once created.
  18478. |
  18479. *Overload 5:*
  18480. Constructor using `fz_new_indexed_colorspace()`.
  18481. Create an indexed colorspace.
  18482. The supplied lookup table is high palette entries long. Each
  18483. entry is n bytes long, where n is given by the number of
  18484. colorants in the base colorspace, one byte per colorant.
  18485. Ownership of lookup is passed it; it will be freed on
  18486. destruction, so must be heap allocated.
  18487. The colorspace will keep an additional reference to the base
  18488. colorspace that will be dropped on destruction.
  18489. The returned reference should be dropped when it is finished
  18490. with.
  18491. Colorspaces are immutable once created.
  18492. |
  18493. *Overload 6:*
  18494. Construct using one of: fz_device_gray(), fz_device_rgb(), fz_device_bgr(), fz_device_cmyk(), fz_device_lab().
  18495. |
  18496. *Overload 7:*
  18497. Copy constructor using `fz_keep_colorspace()`.
  18498. |
  18499. *Overload 8:*
  18500. Default constructor, sets `m_internal` to null.
  18501. |
  18502. *Overload 9:*
  18503. Constructor using raw copy of pre-existing `::fz_colorspace`.
  18504. """
  18505. _mupdf.FzColorspace_swiginit(self, _mupdf.new_FzColorspace(*args))
  18506. __swig_destroy__ = _mupdf.delete_FzColorspace
  18507. def m_internal_value(self):
  18508. r"""Return numerical value of .m_internal; helps with Python debugging."""
  18509. return _mupdf.FzColorspace_m_internal_value(self)
  18510. def __nonzero__(self):
  18511. return _mupdf.FzColorspace___nonzero__(self)
  18512. __bool__ = __nonzero__
  18513. m_internal = property(_mupdf.FzColorspace_m_internal_get, _mupdf.FzColorspace_m_internal_set, doc=r"""Pointer to wrapped data.""")
  18514. s_num_instances = property(_mupdf.FzColorspace_s_num_instances_get, _mupdf.FzColorspace_s_num_instances_set)
  18515. # Register FzColorspace in _mupdf:
  18516. _mupdf.FzColorspace_swigregister(FzColorspace)
  18517. class FzColorspaceContext(object):
  18518. r"""Wrapper class for struct `fz_colorspace_context`. Not copyable or assignable."""
  18519. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  18520. __repr__ = _swig_repr
  18521. def __init__(self, *args):
  18522. r"""
  18523. *Overload 1:*
  18524. Default constructor, sets `m_internal` to null.
  18525. |
  18526. *Overload 2:*
  18527. Constructor using raw copy of pre-existing `::fz_colorspace_context`.
  18528. """
  18529. _mupdf.FzColorspaceContext_swiginit(self, _mupdf.new_FzColorspaceContext(*args))
  18530. __swig_destroy__ = _mupdf.delete_FzColorspaceContext
  18531. def m_internal_value(self):
  18532. r"""Return numerical value of .m_internal; helps with Python debugging."""
  18533. return _mupdf.FzColorspaceContext_m_internal_value(self)
  18534. def __nonzero__(self):
  18535. return _mupdf.FzColorspaceContext___nonzero__(self)
  18536. __bool__ = __nonzero__
  18537. m_internal = property(_mupdf.FzColorspaceContext_m_internal_get, _mupdf.FzColorspaceContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  18538. s_num_instances = property(_mupdf.FzColorspaceContext_s_num_instances_get, _mupdf.FzColorspaceContext_s_num_instances_set)
  18539. # Register FzColorspaceContext in _mupdf:
  18540. _mupdf.FzColorspaceContext_swigregister(FzColorspaceContext)
  18541. class FzCompressedBuffer(object):
  18542. r"""
  18543. Wrapper class for struct `fz_compressed_buffer`.
  18544. Buffers of compressed data; typically for the source data
  18545. for images.
  18546. """
  18547. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  18548. __repr__ = _swig_repr
  18549. def fz_compressed_buffer_size(self):
  18550. r"""
  18551. Class-aware wrapper for `::fz_compressed_buffer_size()`.
  18552. Return the storage size used for a buffer and its data.
  18553. Used in implementing store handling.
  18554. Never throws exceptions.
  18555. """
  18556. return _mupdf.FzCompressedBuffer_fz_compressed_buffer_size(self)
  18557. def fz_open_compressed_buffer(self):
  18558. r"""
  18559. Class-aware wrapper for `::fz_open_compressed_buffer()`.
  18560. Open a stream to read the decompressed version of a buffer.
  18561. """
  18562. return _mupdf.FzCompressedBuffer_fz_open_compressed_buffer(self)
  18563. def fz_open_image_decomp_stream_from_buffer(self, l2factor):
  18564. r"""
  18565. Class-aware wrapper for `::fz_open_image_decomp_stream_from_buffer()`.
  18566. This method has out-params. Python/C# wrappers look like:
  18567. `fz_open_image_decomp_stream_from_buffer()` => `(fz_stream *, int l2factor)`
  18568. Open a stream to read the decompressed version of a buffer,
  18569. with optional log2 subsampling.
  18570. l2factor = NULL for no subsampling, or a pointer to an integer
  18571. containing the maximum log2 subsample factor acceptable (0 =
  18572. none, 1 = halve dimensions, 2 = quarter dimensions etc). If
  18573. non-NULL, then *l2factor will be updated on exit with the actual
  18574. log2 subsample factor achieved.
  18575. """
  18576. return _mupdf.FzCompressedBuffer_fz_open_image_decomp_stream_from_buffer(self, l2factor)
  18577. def get_buffer(self):
  18578. r"""Returns wrapper class for fz_buffer *m_internal.buffer."""
  18579. return _mupdf.FzCompressedBuffer_get_buffer(self)
  18580. def __init__(self, *args):
  18581. r"""
  18582. *Overload 1:*
  18583. == Constructors. Constructor using `fz_new_compressed_buffer()`.
  18584. Create a new, UNKNOWN format, compressed_buffer.
  18585. |
  18586. *Overload 2:*
  18587. Copy constructor using `fz_keep_compressed_buffer()`.
  18588. |
  18589. *Overload 3:*
  18590. Constructor using raw copy of pre-existing `::fz_compressed_buffer`.
  18591. """
  18592. _mupdf.FzCompressedBuffer_swiginit(self, _mupdf.new_FzCompressedBuffer(*args))
  18593. __swig_destroy__ = _mupdf.delete_FzCompressedBuffer
  18594. def m_internal_value(self):
  18595. r"""Return numerical value of .m_internal; helps with Python debugging."""
  18596. return _mupdf.FzCompressedBuffer_m_internal_value(self)
  18597. def __nonzero__(self):
  18598. return _mupdf.FzCompressedBuffer___nonzero__(self)
  18599. __bool__ = __nonzero__
  18600. m_internal = property(_mupdf.FzCompressedBuffer_m_internal_get, _mupdf.FzCompressedBuffer_m_internal_set, doc=r"""Pointer to wrapped data.""")
  18601. s_num_instances = property(_mupdf.FzCompressedBuffer_s_num_instances_get, _mupdf.FzCompressedBuffer_s_num_instances_set)
  18602. # Register FzCompressedBuffer in _mupdf:
  18603. _mupdf.FzCompressedBuffer_swigregister(FzCompressedBuffer)
  18604. class FzCompressedImage(object):
  18605. r"""Wrapper class for struct `fz_compressed_image`. Not copyable or assignable."""
  18606. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  18607. __repr__ = _swig_repr
  18608. def fz_set_compressed_image_buffer(self, buf):
  18609. r"""Class-aware wrapper for `::fz_set_compressed_image_buffer()`."""
  18610. return _mupdf.FzCompressedImage_fz_set_compressed_image_buffer(self, buf)
  18611. def __init__(self, *args):
  18612. r"""
  18613. *Overload 1:*
  18614. Default constructor, sets `m_internal` to null.
  18615. |
  18616. *Overload 2:*
  18617. Constructor using raw copy of pre-existing `::fz_compressed_image`.
  18618. """
  18619. _mupdf.FzCompressedImage_swiginit(self, _mupdf.new_FzCompressedImage(*args))
  18620. __swig_destroy__ = _mupdf.delete_FzCompressedImage
  18621. def m_internal_value(self):
  18622. r"""Return numerical value of .m_internal; helps with Python debugging."""
  18623. return _mupdf.FzCompressedImage_m_internal_value(self)
  18624. def __nonzero__(self):
  18625. return _mupdf.FzCompressedImage___nonzero__(self)
  18626. __bool__ = __nonzero__
  18627. m_internal = property(_mupdf.FzCompressedImage_m_internal_get, _mupdf.FzCompressedImage_m_internal_set, doc=r"""Pointer to wrapped data.""")
  18628. s_num_instances = property(_mupdf.FzCompressedImage_s_num_instances_get, _mupdf.FzCompressedImage_s_num_instances_set)
  18629. # Register FzCompressedImage in _mupdf:
  18630. _mupdf.FzCompressedImage_swigregister(FzCompressedImage)
  18631. class FzCompressionParams(object):
  18632. r"""
  18633. Wrapper class for struct `fz_compression_params`. Not copyable or assignable.
  18634. Compression parameters used for buffers of compressed data;
  18635. typically for the source data for images.
  18636. """
  18637. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  18638. __repr__ = _swig_repr
  18639. def __init__(self, *args):
  18640. r"""
  18641. *Overload 1:*
  18642. Default constructor, sets `m_internal` to null.
  18643. |
  18644. *Overload 2:*
  18645. Constructor using raw copy of pre-existing `::fz_compression_params`.
  18646. """
  18647. _mupdf.FzCompressionParams_swiginit(self, _mupdf.new_FzCompressionParams(*args))
  18648. __swig_destroy__ = _mupdf.delete_FzCompressionParams
  18649. def m_internal_value(self):
  18650. r"""Return numerical value of .m_internal; helps with Python debugging."""
  18651. return _mupdf.FzCompressionParams_m_internal_value(self)
  18652. def __nonzero__(self):
  18653. return _mupdf.FzCompressionParams___nonzero__(self)
  18654. __bool__ = __nonzero__
  18655. m_internal = property(_mupdf.FzCompressionParams_m_internal_get, _mupdf.FzCompressionParams_m_internal_set, doc=r"""Pointer to wrapped data.""")
  18656. s_num_instances = property(_mupdf.FzCompressionParams_s_num_instances_get, _mupdf.FzCompressionParams_s_num_instances_set)
  18657. # Register FzCompressionParams in _mupdf:
  18658. _mupdf.FzCompressionParams_swigregister(FzCompressionParams)
  18659. class FzContext(object):
  18660. r"""Wrapper class for struct `fz_context`. Not copyable or assignable."""
  18661. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  18662. __repr__ = _swig_repr
  18663. def __init__(self, *args):
  18664. r"""
  18665. *Overload 1:*
  18666. == Constructors. Constructor using `fz_new_context_imp()`.
  18667. |
  18668. *Overload 2:*
  18669. Default constructor, sets `m_internal` to null.
  18670. |
  18671. *Overload 3:*
  18672. Constructor using raw copy of pre-existing `::fz_context`.
  18673. """
  18674. _mupdf.FzContext_swiginit(self, _mupdf.new_FzContext(*args))
  18675. __swig_destroy__ = _mupdf.delete_FzContext
  18676. def m_internal_value(self):
  18677. r"""Return numerical value of .m_internal; helps with Python debugging."""
  18678. return _mupdf.FzContext_m_internal_value(self)
  18679. def __nonzero__(self):
  18680. return _mupdf.FzContext___nonzero__(self)
  18681. __bool__ = __nonzero__
  18682. m_internal = property(_mupdf.FzContext_m_internal_get, _mupdf.FzContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  18683. s_num_instances = property(_mupdf.FzContext_s_num_instances_get, _mupdf.FzContext_s_num_instances_set)
  18684. # Register FzContext in _mupdf:
  18685. _mupdf.FzContext_swigregister(FzContext)
  18686. class FzCookie(object):
  18687. r"""
  18688. Wrapper class for struct `fz_cookie`. Not copyable or assignable.
  18689. Provide two-way communication between application and library.
  18690. Intended for multi-threaded applications where one thread is
  18691. rendering pages and another thread wants to read progress
  18692. feedback or abort a job that takes a long time to finish. The
  18693. communication is unsynchronized without locking.
  18694. abort: The application should set this field to 0 before
  18695. calling fz_run_page to render a page. At any point when the
  18696. page is being rendered the application my set this field to 1
  18697. which will cause the rendering to finish soon. This field is
  18698. checked periodically when the page is rendered, but exactly
  18699. when is not known, therefore there is no upper bound on
  18700. exactly when the rendering will abort. If the application
  18701. did not provide a set of locks to fz_new_context, it must also
  18702. await the completion of fz_run_page before issuing another
  18703. call to fz_run_page. Note that once the application has set
  18704. this field to 1 after it called fz_run_page it may not change
  18705. the value again.
  18706. progress: Communicates rendering progress back to the
  18707. application and is read only. Increments as a page is being
  18708. rendered. The value starts out at 0 and is limited to less
  18709. than or equal to progress_max, unless progress_max is -1.
  18710. progress_max: Communicates the known upper bound of rendering
  18711. back to the application and is read only. The maximum value
  18712. that the progress field may take. If there is no known upper
  18713. bound on how long the rendering may take this value is -1 and
  18714. progress is not limited. Note that the value of progress_max
  18715. may change from -1 to a positive value once an upper bound is
  18716. known, so take this into consideration when comparing the
  18717. value of progress to that of progress_max.
  18718. errors: count of errors during current rendering.
  18719. incomplete: Initially should be set to 0. Will be set to
  18720. non-zero if a TRYLATER error is thrown during rendering.
  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 __init__(self):
  18725. r"""Default constructor sets all fields to default values."""
  18726. _mupdf.FzCookie_swiginit(self, _mupdf.new_FzCookie())
  18727. def set_abort(self):
  18728. r"""Sets m_internal.abort to 1."""
  18729. return _mupdf.FzCookie_set_abort(self)
  18730. def increment_errors(self, delta):
  18731. r"""Increments m_internal.errors by <delta>."""
  18732. return _mupdf.FzCookie_increment_errors(self, delta)
  18733. def abort(self):
  18734. return _mupdf.FzCookie_abort(self)
  18735. def progress(self):
  18736. return _mupdf.FzCookie_progress(self)
  18737. def progress_max(self):
  18738. return _mupdf.FzCookie_progress_max(self)
  18739. def errors(self):
  18740. return _mupdf.FzCookie_errors(self)
  18741. def incomplete(self):
  18742. return _mupdf.FzCookie_incomplete(self)
  18743. __swig_destroy__ = _mupdf.delete_FzCookie
  18744. m_internal = property(_mupdf.FzCookie_m_internal_get, _mupdf.FzCookie_m_internal_set)
  18745. s_num_instances = property(_mupdf.FzCookie_s_num_instances_get, _mupdf.FzCookie_s_num_instances_set, doc=r"""Wrapped data is held by value.""")
  18746. def to_string(self):
  18747. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  18748. return _mupdf.FzCookie_to_string(self)
  18749. def __eq__(self, rhs):
  18750. r"""Comparison method."""
  18751. return _mupdf.FzCookie___eq__(self, rhs)
  18752. def __ne__(self, rhs):
  18753. r"""Comparison method."""
  18754. return _mupdf.FzCookie___ne__(self, rhs)
  18755. # Register FzCookie in _mupdf:
  18756. _mupdf.FzCookie_swigregister(FzCookie)
  18757. class FzDefaultColorspaces(object):
  18758. r"""
  18759. Wrapper class for struct `fz_default_colorspaces`.
  18760. Structure to hold default colorspaces.
  18761. """
  18762. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  18763. __repr__ = _swig_repr
  18764. def fz_clone_default_colorspaces(self):
  18765. r"""
  18766. Class-aware wrapper for `::fz_clone_default_colorspaces()`.
  18767. Returns a reference to a newly cloned default colorspaces
  18768. structure.
  18769. The new clone may safely be altered without fear of race
  18770. conditions as the caller is the only reference holder.
  18771. """
  18772. return _mupdf.FzDefaultColorspaces_fz_clone_default_colorspaces(self)
  18773. def fz_default_cmyk(self):
  18774. r"""Class-aware wrapper for `::fz_default_cmyk()`."""
  18775. return _mupdf.FzDefaultColorspaces_fz_default_cmyk(self)
  18776. def fz_default_gray(self):
  18777. r"""
  18778. Class-aware wrapper for `::fz_default_gray()`.
  18779. Retrieve default colorspaces (typically page local).
  18780. If default_cs is non NULL, the default is retrieved from there,
  18781. otherwise the global default is retrieved.
  18782. These return borrowed references that should not be dropped,
  18783. unless they are kept first.
  18784. """
  18785. return _mupdf.FzDefaultColorspaces_fz_default_gray(self)
  18786. def fz_default_output_intent(self):
  18787. r"""Class-aware wrapper for `::fz_default_output_intent()`."""
  18788. return _mupdf.FzDefaultColorspaces_fz_default_output_intent(self)
  18789. def fz_default_rgb(self):
  18790. r"""Class-aware wrapper for `::fz_default_rgb()`."""
  18791. return _mupdf.FzDefaultColorspaces_fz_default_rgb(self)
  18792. def fz_set_default_cmyk(self, cs):
  18793. r"""Class-aware wrapper for `::fz_set_default_cmyk()`."""
  18794. return _mupdf.FzDefaultColorspaces_fz_set_default_cmyk(self, cs)
  18795. def fz_set_default_gray(self, cs):
  18796. r"""
  18797. Class-aware wrapper for `::fz_set_default_gray()`.
  18798. Set new defaults within the default colorspace structure.
  18799. New references are taken to the new default, and references to
  18800. the old defaults dropped.
  18801. Never throws exceptions.
  18802. """
  18803. return _mupdf.FzDefaultColorspaces_fz_set_default_gray(self, cs)
  18804. def fz_set_default_output_intent(self, cs):
  18805. r"""Class-aware wrapper for `::fz_set_default_output_intent()`."""
  18806. return _mupdf.FzDefaultColorspaces_fz_set_default_output_intent(self, cs)
  18807. def fz_set_default_rgb(self, cs):
  18808. r"""Class-aware wrapper for `::fz_set_default_rgb()`."""
  18809. return _mupdf.FzDefaultColorspaces_fz_set_default_rgb(self, cs)
  18810. def pdf_update_default_colorspaces(self, res):
  18811. r"""Class-aware wrapper for `::pdf_update_default_colorspaces()`."""
  18812. return _mupdf.FzDefaultColorspaces_pdf_update_default_colorspaces(self, res)
  18813. def __init__(self, *args):
  18814. r"""
  18815. *Overload 1:*
  18816. == Constructors. Constructor using `fz_new_default_colorspaces()`.
  18817. Create a new default colorspace structure with values inherited
  18818. from the context, and return a reference to it.
  18819. These can be overridden using fz_set_default_xxxx.
  18820. These should not be overridden while more than one caller has
  18821. the reference for fear of race conditions.
  18822. The caller should drop this reference once finished with it.
  18823. |
  18824. *Overload 2:*
  18825. Copy constructor using `fz_keep_default_colorspaces()`.
  18826. |
  18827. *Overload 3:*
  18828. Constructor using raw copy of pre-existing `::fz_default_colorspaces`.
  18829. """
  18830. _mupdf.FzDefaultColorspaces_swiginit(self, _mupdf.new_FzDefaultColorspaces(*args))
  18831. __swig_destroy__ = _mupdf.delete_FzDefaultColorspaces
  18832. def m_internal_value(self):
  18833. r"""Return numerical value of .m_internal; helps with Python debugging."""
  18834. return _mupdf.FzDefaultColorspaces_m_internal_value(self)
  18835. def __nonzero__(self):
  18836. return _mupdf.FzDefaultColorspaces___nonzero__(self)
  18837. __bool__ = __nonzero__
  18838. m_internal = property(_mupdf.FzDefaultColorspaces_m_internal_get, _mupdf.FzDefaultColorspaces_m_internal_set, doc=r"""Pointer to wrapped data.""")
  18839. s_num_instances = property(_mupdf.FzDefaultColorspaces_s_num_instances_get, _mupdf.FzDefaultColorspaces_s_num_instances_set)
  18840. # Register FzDefaultColorspaces in _mupdf:
  18841. _mupdf.FzDefaultColorspaces_swigregister(FzDefaultColorspaces)
  18842. class FzDevice(object):
  18843. r"""
  18844. Wrapper class for struct `fz_device`.
  18845. The different format handlers (pdf, xps etc) interpret pages to
  18846. a device. These devices can then process the stream of calls
  18847. they receive in various ways:
  18848. The trace device outputs debugging information for the calls.
  18849. The draw device will render them.
  18850. The list device stores them in a list to play back later.
  18851. The text device performs text extraction and searching.
  18852. The bbox device calculates the bounding box for the page.
  18853. Other devices can (and will) be written in the future.
  18854. """
  18855. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  18856. __repr__ = _swig_repr
  18857. @staticmethod
  18858. def fz_new_xmltext_device(out):
  18859. r"""
  18860. Class-aware wrapper for `::fz_new_xmltext_device()`.
  18861. Create a device to output raw information.
  18862. """
  18863. return _mupdf.FzDevice_fz_new_xmltext_device(out)
  18864. @staticmethod
  18865. def fz_new_draw_device_type3(transform, dest):
  18866. r"""Class-aware wrapper for `::fz_new_draw_device_type3()`."""
  18867. return _mupdf.FzDevice_fz_new_draw_device_type3(transform, dest)
  18868. def fz_begin_group(self, area, cs, isolated, knockout, blendmode, alpha):
  18869. r"""Class-aware wrapper for `::fz_begin_group()`."""
  18870. return _mupdf.FzDevice_fz_begin_group(self, area, cs, isolated, knockout, blendmode, alpha)
  18871. def fz_begin_layer(self, layer_name):
  18872. r"""Class-aware wrapper for `::fz_begin_layer()`."""
  18873. return _mupdf.FzDevice_fz_begin_layer(self, layer_name)
  18874. def fz_begin_mask(self, area, luminosity, colorspace, bc, color_params):
  18875. r"""Class-aware wrapper for `::fz_begin_mask()`."""
  18876. return _mupdf.FzDevice_fz_begin_mask(self, area, luminosity, colorspace, bc, color_params)
  18877. def fz_begin_metatext(self, meta, text):
  18878. r"""Class-aware wrapper for `::fz_begin_metatext()`."""
  18879. return _mupdf.FzDevice_fz_begin_metatext(self, meta, text)
  18880. def fz_begin_structure(self, standard, raw, idx):
  18881. r"""Class-aware wrapper for `::fz_begin_structure()`."""
  18882. return _mupdf.FzDevice_fz_begin_structure(self, standard, raw, idx)
  18883. def fz_begin_tile(self, area, view, xstep, ystep, ctm):
  18884. r"""Class-aware wrapper for `::fz_begin_tile()`."""
  18885. return _mupdf.FzDevice_fz_begin_tile(self, area, view, xstep, ystep, ctm)
  18886. def fz_begin_tile_id(self, area, view, xstep, ystep, ctm, id):
  18887. r"""Class-aware wrapper for `::fz_begin_tile_id()`."""
  18888. return _mupdf.FzDevice_fz_begin_tile_id(self, area, view, xstep, ystep, ctm, id)
  18889. def fz_begin_tile_tid(self, area, view, xstep, ystep, ctm, id, doc_id):
  18890. r"""Class-aware wrapper for `::fz_begin_tile_tid()`."""
  18891. return _mupdf.FzDevice_fz_begin_tile_tid(self, area, view, xstep, ystep, ctm, id, doc_id)
  18892. def fz_clip_image_mask(self, image, ctm, scissor):
  18893. r"""Class-aware wrapper for `::fz_clip_image_mask()`."""
  18894. return _mupdf.FzDevice_fz_clip_image_mask(self, image, ctm, scissor)
  18895. def fz_clip_path(self, path, even_odd, ctm, scissor):
  18896. r"""Class-aware wrapper for `::fz_clip_path()`."""
  18897. return _mupdf.FzDevice_fz_clip_path(self, path, even_odd, ctm, scissor)
  18898. def fz_clip_stroke_path(self, path, stroke, ctm, scissor):
  18899. r"""Class-aware wrapper for `::fz_clip_stroke_path()`."""
  18900. return _mupdf.FzDevice_fz_clip_stroke_path(self, path, stroke, ctm, scissor)
  18901. def fz_clip_stroke_text(self, text, stroke, ctm, scissor):
  18902. r"""Class-aware wrapper for `::fz_clip_stroke_text()`."""
  18903. return _mupdf.FzDevice_fz_clip_stroke_text(self, text, stroke, ctm, scissor)
  18904. def fz_clip_text(self, text, ctm, scissor):
  18905. r"""Class-aware wrapper for `::fz_clip_text()`."""
  18906. return _mupdf.FzDevice_fz_clip_text(self, text, ctm, scissor)
  18907. def fz_close_device(self):
  18908. r"""
  18909. Class-aware wrapper for `::fz_close_device()`.
  18910. Signal the end of input, and flush any buffered output.
  18911. This is NOT called implicitly on fz_drop_device. This
  18912. may throw exceptions.
  18913. """
  18914. return _mupdf.FzDevice_fz_close_device(self)
  18915. def fz_device_current_scissor(self):
  18916. r"""
  18917. Class-aware wrapper for `::fz_device_current_scissor()`.
  18918. Find current scissor region as tracked by the device.
  18919. """
  18920. return _mupdf.FzDevice_fz_device_current_scissor(self)
  18921. def fz_disable_device_hints(self, hints):
  18922. r"""
  18923. Class-aware wrapper for `::fz_disable_device_hints()`.
  18924. Disable (clear) hint bits within the hint bitfield for a device.
  18925. """
  18926. return _mupdf.FzDevice_fz_disable_device_hints(self, hints)
  18927. def fz_enable_device_hints(self, hints):
  18928. r"""
  18929. Class-aware wrapper for `::fz_enable_device_hints()`.
  18930. Enable (set) hint bits within the hint bitfield for a device.
  18931. """
  18932. return _mupdf.FzDevice_fz_enable_device_hints(self, hints)
  18933. def fz_end_group(self):
  18934. r"""Class-aware wrapper for `::fz_end_group()`."""
  18935. return _mupdf.FzDevice_fz_end_group(self)
  18936. def fz_end_layer(self):
  18937. r"""Class-aware wrapper for `::fz_end_layer()`."""
  18938. return _mupdf.FzDevice_fz_end_layer(self)
  18939. def fz_end_mask(self):
  18940. r"""Class-aware wrapper for `::fz_end_mask()`."""
  18941. return _mupdf.FzDevice_fz_end_mask(self)
  18942. def fz_end_mask_tr(self, fn):
  18943. r"""Class-aware wrapper for `::fz_end_mask_tr()`."""
  18944. return _mupdf.FzDevice_fz_end_mask_tr(self, fn)
  18945. def fz_end_metatext(self):
  18946. r"""Class-aware wrapper for `::fz_end_metatext()`."""
  18947. return _mupdf.FzDevice_fz_end_metatext(self)
  18948. def fz_end_structure(self):
  18949. r"""Class-aware wrapper for `::fz_end_structure()`."""
  18950. return _mupdf.FzDevice_fz_end_structure(self)
  18951. def fz_end_tile(self):
  18952. r"""Class-aware wrapper for `::fz_end_tile()`."""
  18953. return _mupdf.FzDevice_fz_end_tile(self)
  18954. def fz_fill_image(self, image, ctm, alpha, color_params):
  18955. r"""Class-aware wrapper for `::fz_fill_image()`."""
  18956. return _mupdf.FzDevice_fz_fill_image(self, image, ctm, alpha, color_params)
  18957. def fz_fill_image_mask(self, image, ctm, colorspace, color, alpha, color_params):
  18958. r"""Class-aware wrapper for `::fz_fill_image_mask()`."""
  18959. return _mupdf.FzDevice_fz_fill_image_mask(self, image, ctm, colorspace, color, alpha, color_params)
  18960. def fz_fill_path(self, path, even_odd, ctm, colorspace, color, alpha, color_params):
  18961. r"""
  18962. Class-aware wrapper for `::fz_fill_path()`.
  18963. Device calls; graphics primitives and containers.
  18964. """
  18965. return _mupdf.FzDevice_fz_fill_path(self, path, even_odd, ctm, colorspace, color, alpha, color_params)
  18966. def fz_fill_shade(self, shade, ctm, alpha, color_params):
  18967. r"""Class-aware wrapper for `::fz_fill_shade()`."""
  18968. return _mupdf.FzDevice_fz_fill_shade(self, shade, ctm, alpha, color_params)
  18969. def fz_fill_text(self, text, ctm, colorspace, color, alpha, color_params):
  18970. r"""Class-aware wrapper for `::fz_fill_text()`."""
  18971. return _mupdf.FzDevice_fz_fill_text(self, text, ctm, colorspace, color, alpha, color_params)
  18972. def fz_ignore_text(self, text, ctm):
  18973. r"""Class-aware wrapper for `::fz_ignore_text()`."""
  18974. return _mupdf.FzDevice_fz_ignore_text(self, text, ctm)
  18975. def fz_new_ocr_device(self, ctm, mediabox, with_list, language, datadir, progress, progress_arg):
  18976. r"""
  18977. Class-aware wrapper for `::fz_new_ocr_device()`.
  18978. Create a device to OCR the text on the page.
  18979. Renders the page internally to a bitmap that is then OCRd. Text
  18980. is then forwarded onto the target device.
  18981. target: The target device to receive the OCRd text.
  18982. ctm: The transform to apply to the mediabox to get the size for
  18983. the rendered page image. Also used to calculate the resolution
  18984. for the page image. In general, this will be the same as the CTM
  18985. that you pass to fz_run_page (or fz_run_display_list) to feed
  18986. this device.
  18987. mediabox: The mediabox (in points). Combined with the CTM to get
  18988. the bounds of the pixmap used internally for the rendered page
  18989. image.
  18990. with_list: If with_list is false, then all non-text operations
  18991. are forwarded instantly to the target device. This results in
  18992. the target device seeing all NON-text operations, followed by
  18993. all the text operations (derived from OCR).
  18994. If with_list is true, then all the marking operations are
  18995. collated into a display list which is then replayed to the
  18996. target device at the end.
  18997. language: NULL (for "eng"), or a pointer to a string to describe
  18998. the languages/scripts that should be used for OCR (e.g.
  18999. "eng,ara").
  19000. datadir: NULL (for ""), or a pointer to a path string otherwise
  19001. provided to Tesseract in the TESSDATA_PREFIX environment variable.
  19002. progress: NULL, or function to be called periodically to indicate
  19003. progress. Return 0 to continue, or 1 to cancel. progress_arg is
  19004. returned as the void *. The int is a value between 0 and 100 to
  19005. indicate progress.
  19006. progress_arg: A void * value to be parrotted back to the progress
  19007. function.
  19008. """
  19009. return _mupdf.FzDevice_fz_new_ocr_device(self, ctm, mediabox, with_list, language, datadir, progress, progress_arg)
  19010. def fz_pop_clip(self):
  19011. r"""Class-aware wrapper for `::fz_pop_clip()`."""
  19012. return _mupdf.FzDevice_fz_pop_clip(self)
  19013. def fz_render_flags(self, set, clear):
  19014. r"""Class-aware wrapper for `::fz_render_flags()`."""
  19015. return _mupdf.FzDevice_fz_render_flags(self, set, clear)
  19016. def fz_render_t3_glyph_direct(self, font, gid, trm, gstate, def_cs, fill_gstate, stroke_gstate):
  19017. r"""
  19018. Class-aware wrapper for `::fz_render_t3_glyph_direct()`.
  19019. Nasty PDF interpreter specific hernia, required to allow the
  19020. interpreter to replay glyphs from a type3 font directly into
  19021. the target device.
  19022. This is only used in exceptional circumstances (such as type3
  19023. glyphs that inherit current graphics state, or nested type3
  19024. glyphs).
  19025. """
  19026. return _mupdf.FzDevice_fz_render_t3_glyph_direct(self, font, gid, trm, gstate, def_cs, fill_gstate, stroke_gstate)
  19027. def fz_set_default_colorspaces(self, default_cs):
  19028. r"""Class-aware wrapper for `::fz_set_default_colorspaces()`."""
  19029. return _mupdf.FzDevice_fz_set_default_colorspaces(self, default_cs)
  19030. def fz_stroke_path(self, path, stroke, ctm, colorspace, color, alpha, color_params):
  19031. r"""Class-aware wrapper for `::fz_stroke_path()`."""
  19032. return _mupdf.FzDevice_fz_stroke_path(self, path, stroke, ctm, colorspace, color, alpha, color_params)
  19033. def fz_stroke_text(self, text, stroke, ctm, colorspace, color, alpha, color_params):
  19034. r"""Class-aware wrapper for `::fz_stroke_text()`."""
  19035. return _mupdf.FzDevice_fz_stroke_text(self, text, stroke, ctm, colorspace, color, alpha, color_params)
  19036. def __init__(self, *args):
  19037. r"""
  19038. *Overload 1:*
  19039. == Constructors. Constructor using `fz_new_bbox_device()`.
  19040. Create a device to compute the bounding
  19041. box of all marks on a page.
  19042. The returned bounding box will be the union of all bounding
  19043. boxes of all objects on a page.
  19044. |
  19045. *Overload 2:*
  19046. Constructor using `fz_new_device_of_size()`.
  19047. Devices are created by calls to device implementations, for
  19048. instance: foo_new_device(). These will be implemented by calling
  19049. fz_new_derived_device(ctx, foo_device) where foo_device is a
  19050. structure "derived from" fz_device, for instance
  19051. typedef struct { fz_device base; ...extras...} foo_device;
  19052. |
  19053. *Overload 3:*
  19054. Constructor using `fz_new_draw_device()`.
  19055. Create a device to draw on a pixmap.
  19056. dest: Target pixmap for the draw device. See fz_new_pixmap*
  19057. for how to obtain a pixmap. The pixmap is not cleared by the
  19058. draw device, see fz_clear_pixmap* for how to clear it prior to
  19059. calling fz_new_draw_device. Free the device by calling
  19060. fz_drop_device.
  19061. transform: Transform from user space in points to device space
  19062. in pixels.
  19063. |
  19064. *Overload 4:*
  19065. Constructor using `fz_new_draw_device_with_bbox()`.
  19066. Create a device to draw on a pixmap.
  19067. dest: Target pixmap for the draw device. See fz_new_pixmap*
  19068. for how to obtain a pixmap. The pixmap is not cleared by the
  19069. draw device, see fz_clear_pixmap* for how to clear it prior to
  19070. calling fz_new_draw_device. Free the device by calling
  19071. fz_drop_device.
  19072. transform: Transform from user space in points to device space
  19073. in pixels.
  19074. clip: Bounding box to restrict any marking operations of the
  19075. draw device.
  19076. |
  19077. *Overload 5:*
  19078. Constructor using `fz_new_draw_device_with_bbox_proof()`.
  19079. Create a device to draw on a pixmap.
  19080. dest: Target pixmap for the draw device. See fz_new_pixmap*
  19081. for how to obtain a pixmap. The pixmap is not cleared by the
  19082. draw device, see fz_clear_pixmap* for how to clear it prior to
  19083. calling fz_new_draw_device. Free the device by calling
  19084. fz_drop_device.
  19085. transform: Transform from user space in points to device space
  19086. in pixels.
  19087. clip: Bounding box to restrict any marking operations of the
  19088. draw device.
  19089. proof_cs: Color space to render to prior to mapping to color
  19090. space defined by pixmap.
  19091. |
  19092. *Overload 6:*
  19093. Constructor using `fz_new_draw_device_with_options()`.
  19094. Create a new pixmap and draw device, using the specified options.
  19095. options: Options to configure the draw device, and choose the
  19096. resolution and colorspace.
  19097. mediabox: The bounds of the page in points.
  19098. pixmap: An out parameter containing the newly created pixmap.
  19099. |
  19100. *Overload 7:*
  19101. Constructor using `fz_new_draw_device_with_proof()`.
  19102. Create a device to draw on a pixmap.
  19103. dest: Target pixmap for the draw device. See fz_new_pixmap*
  19104. for how to obtain a pixmap. The pixmap is not cleared by the
  19105. draw device, see fz_clear_pixmap* for how to clear it prior to
  19106. calling fz_new_draw_device. Free the device by calling
  19107. fz_drop_device.
  19108. transform: Transform from user space in points to device space
  19109. in pixels.
  19110. proof_cs: Intermediate color space to map though when mapping to
  19111. color space defined by pixmap.
  19112. |
  19113. *Overload 8:*
  19114. Constructor using `fz_new_list_device()`.
  19115. Create a rendering device for a display list.
  19116. When the device is rendering a page it will populate the
  19117. display list with drawing commands (text, images, etc.). The
  19118. display list can later be reused to render a page many times
  19119. without having to re-interpret the page from the document file
  19120. for each rendering. Once the device is no longer needed, free
  19121. it with fz_drop_device.
  19122. list: A display list that the list device takes a reference to.
  19123. |
  19124. *Overload 9:*
  19125. Constructor using `fz_new_ocr_device()`.
  19126. Create a device to OCR the text on the page.
  19127. Renders the page internally to a bitmap that is then OCRd. Text
  19128. is then forwarded onto the target device.
  19129. target: The target device to receive the OCRd text.
  19130. ctm: The transform to apply to the mediabox to get the size for
  19131. the rendered page image. Also used to calculate the resolution
  19132. for the page image. In general, this will be the same as the CTM
  19133. that you pass to fz_run_page (or fz_run_display_list) to feed
  19134. this device.
  19135. mediabox: The mediabox (in points). Combined with the CTM to get
  19136. the bounds of the pixmap used internally for the rendered page
  19137. image.
  19138. with_list: If with_list is false, then all non-text operations
  19139. are forwarded instantly to the target device. This results in
  19140. the target device seeing all NON-text operations, followed by
  19141. all the text operations (derived from OCR).
  19142. If with_list is true, then all the marking operations are
  19143. collated into a display list which is then replayed to the
  19144. target device at the end.
  19145. language: NULL (for "eng"), or a pointer to a string to describe
  19146. the languages/scripts that should be used for OCR (e.g.
  19147. "eng,ara").
  19148. datadir: NULL (for ""), or a pointer to a path string otherwise
  19149. provided to Tesseract in the TESSDATA_PREFIX environment variable.
  19150. progress: NULL, or function to be called periodically to indicate
  19151. progress. Return 0 to continue, or 1 to cancel. progress_arg is
  19152. returned as the void *. The int is a value between 0 and 100 to
  19153. indicate progress.
  19154. progress_arg: A void * value to be parrotted back to the progress
  19155. function.
  19156. |
  19157. *Overload 10:*
  19158. Constructor using `fz_new_stext_device()`.
  19159. Create a device to extract the text on a page.
  19160. Gather the text on a page into blocks and lines.
  19161. The reading order is taken from the order the text is drawn in
  19162. the source file, so may not be accurate.
  19163. page: The text page to which content should be added. This will
  19164. usually be a newly created (empty) text page, but it can be one
  19165. containing data already (for example when merging multiple
  19166. pages, or watermarking).
  19167. options: Options to configure the stext device.
  19168. |
  19169. *Overload 11:*
  19170. Constructor using `fz_new_svg_device()`.
  19171. Create a device that outputs (single page) SVG files to
  19172. the given output stream.
  19173. Equivalent to fz_new_svg_device_with_id passing id = NULL.
  19174. |
  19175. *Overload 12:*
  19176. Constructor using `fz_new_svg_device_with_id()`.
  19177. Create a device that outputs (single page) SVG files to
  19178. the given output stream.
  19179. output: The output stream to send the constructed SVG page to.
  19180. page_width, page_height: The page dimensions to use (in points).
  19181. text_format: How to emit text. One of the following values:
  19182. FZ_SVG_TEXT_AS_TEXT: As <text> elements with possible
  19183. layout errors and mismatching fonts.
  19184. FZ_SVG_TEXT_AS_PATH: As <path> elements with exact
  19185. visual appearance.
  19186. reuse_images: Share image resources using <symbol> definitions.
  19187. id: ID parameter to keep generated IDs unique across SVG files.
  19188. |
  19189. *Overload 13:*
  19190. Constructor using `fz_new_test_device()`.
  19191. Create a device to test for features.
  19192. Currently only tests for the presence of non-grayscale colors.
  19193. is_color: Possible values returned:
  19194. 0: Definitely greyscale
  19195. 1: Probably color (all colors were grey, but there
  19196. were images or shadings in a non grey colorspace).
  19197. 2: Definitely color
  19198. threshold: The difference from grayscale that will be tolerated.
  19199. Typical values to use are either 0 (be exact) and 0.02 (allow an
  19200. imperceptible amount of slop).
  19201. options: A set of bitfield options, from the FZ_TEST_OPT set.
  19202. passthrough: A device to pass all calls through to, or NULL.
  19203. If set, then the test device can both test and pass through to
  19204. an underlying device (like, say, the display list device). This
  19205. means that a display list can be created and at the end we'll
  19206. know if it's colored or not.
  19207. In the absence of a passthrough device, the device will throw
  19208. an exception to stop page interpretation when color is found.
  19209. |
  19210. *Overload 14:*
  19211. Constructor using `fz_new_trace_device()`.
  19212. Create a device to print a debug trace of all device calls.
  19213. |
  19214. *Overload 15:*
  19215. Constructor using `pdf_new_pdf_device()`.
  19216. |
  19217. *Overload 16:*
  19218. Copy constructor using `fz_keep_device()`.
  19219. |
  19220. *Overload 17:*
  19221. Default constructor, sets `m_internal` to null.
  19222. |
  19223. *Overload 18:*
  19224. Constructor using raw copy of pre-existing `::fz_device`.
  19225. """
  19226. _mupdf.FzDevice_swiginit(self, _mupdf.new_FzDevice(*args))
  19227. __swig_destroy__ = _mupdf.delete_FzDevice
  19228. def m_internal_value(self):
  19229. r"""Return numerical value of .m_internal; helps with Python debugging."""
  19230. return _mupdf.FzDevice_m_internal_value(self)
  19231. def __nonzero__(self):
  19232. return _mupdf.FzDevice___nonzero__(self)
  19233. __bool__ = __nonzero__
  19234. m_internal = property(_mupdf.FzDevice_m_internal_get, _mupdf.FzDevice_m_internal_set, doc=r"""Pointer to wrapped data.""")
  19235. s_num_instances = property(_mupdf.FzDevice_s_num_instances_get, _mupdf.FzDevice_s_num_instances_set)
  19236. # Register FzDevice in _mupdf:
  19237. _mupdf.FzDevice_swigregister(FzDevice)
  19238. class FzDevice2(FzDevice):
  19239. r"""Wrapper class for struct fz_device with virtual fns for each fnptr; this is for use as a SWIG Director class."""
  19240. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  19241. __repr__ = _swig_repr
  19242. def __init__(self):
  19243. r"""== Constructor."""
  19244. if self.__class__ == FzDevice2:
  19245. _self = None
  19246. else:
  19247. _self = self
  19248. _mupdf.FzDevice2_swiginit(self, _mupdf.new_FzDevice2(_self, ))
  19249. __swig_destroy__ = _mupdf.delete_FzDevice2
  19250. def use_virtual_close_device(self, use=True):
  19251. r"""
  19252. These methods set the function pointers in *m_internal
  19253. to point to internal callbacks that call our virtual methods.
  19254. """
  19255. return _mupdf.FzDevice2_use_virtual_close_device(self, use)
  19256. def use_virtual_drop_device(self, use=True):
  19257. return _mupdf.FzDevice2_use_virtual_drop_device(self, use)
  19258. def use_virtual_fill_path(self, use=True):
  19259. return _mupdf.FzDevice2_use_virtual_fill_path(self, use)
  19260. def use_virtual_stroke_path(self, use=True):
  19261. return _mupdf.FzDevice2_use_virtual_stroke_path(self, use)
  19262. def use_virtual_clip_path(self, use=True):
  19263. return _mupdf.FzDevice2_use_virtual_clip_path(self, use)
  19264. def use_virtual_clip_stroke_path(self, use=True):
  19265. return _mupdf.FzDevice2_use_virtual_clip_stroke_path(self, use)
  19266. def use_virtual_fill_text(self, use=True):
  19267. return _mupdf.FzDevice2_use_virtual_fill_text(self, use)
  19268. def use_virtual_stroke_text(self, use=True):
  19269. return _mupdf.FzDevice2_use_virtual_stroke_text(self, use)
  19270. def use_virtual_clip_text(self, use=True):
  19271. return _mupdf.FzDevice2_use_virtual_clip_text(self, use)
  19272. def use_virtual_clip_stroke_text(self, use=True):
  19273. return _mupdf.FzDevice2_use_virtual_clip_stroke_text(self, use)
  19274. def use_virtual_ignore_text(self, use=True):
  19275. return _mupdf.FzDevice2_use_virtual_ignore_text(self, use)
  19276. def use_virtual_fill_shade(self, use=True):
  19277. return _mupdf.FzDevice2_use_virtual_fill_shade(self, use)
  19278. def use_virtual_fill_image(self, use=True):
  19279. return _mupdf.FzDevice2_use_virtual_fill_image(self, use)
  19280. def use_virtual_fill_image_mask(self, use=True):
  19281. return _mupdf.FzDevice2_use_virtual_fill_image_mask(self, use)
  19282. def use_virtual_clip_image_mask(self, use=True):
  19283. return _mupdf.FzDevice2_use_virtual_clip_image_mask(self, use)
  19284. def use_virtual_pop_clip(self, use=True):
  19285. return _mupdf.FzDevice2_use_virtual_pop_clip(self, use)
  19286. def use_virtual_begin_mask(self, use=True):
  19287. return _mupdf.FzDevice2_use_virtual_begin_mask(self, use)
  19288. def use_virtual_end_mask(self, use=True):
  19289. return _mupdf.FzDevice2_use_virtual_end_mask(self, use)
  19290. def use_virtual_begin_group(self, use=True):
  19291. return _mupdf.FzDevice2_use_virtual_begin_group(self, use)
  19292. def use_virtual_end_group(self, use=True):
  19293. return _mupdf.FzDevice2_use_virtual_end_group(self, use)
  19294. def use_virtual_begin_tile(self, use=True):
  19295. return _mupdf.FzDevice2_use_virtual_begin_tile(self, use)
  19296. def use_virtual_end_tile(self, use=True):
  19297. return _mupdf.FzDevice2_use_virtual_end_tile(self, use)
  19298. def use_virtual_render_flags(self, use=True):
  19299. return _mupdf.FzDevice2_use_virtual_render_flags(self, use)
  19300. def use_virtual_set_default_colorspaces(self, use=True):
  19301. return _mupdf.FzDevice2_use_virtual_set_default_colorspaces(self, use)
  19302. def use_virtual_begin_layer(self, use=True):
  19303. return _mupdf.FzDevice2_use_virtual_begin_layer(self, use)
  19304. def use_virtual_end_layer(self, use=True):
  19305. return _mupdf.FzDevice2_use_virtual_end_layer(self, use)
  19306. def use_virtual_begin_structure(self, use=True):
  19307. return _mupdf.FzDevice2_use_virtual_begin_structure(self, use)
  19308. def use_virtual_end_structure(self, use=True):
  19309. return _mupdf.FzDevice2_use_virtual_end_structure(self, use)
  19310. def use_virtual_begin_metatext(self, use=True):
  19311. return _mupdf.FzDevice2_use_virtual_begin_metatext(self, use)
  19312. def use_virtual_end_metatext(self, use=True):
  19313. return _mupdf.FzDevice2_use_virtual_end_metatext(self, use)
  19314. def close_device(self, arg_0):
  19315. r"""Default virtual method implementations; these all throw an exception."""
  19316. return _mupdf.FzDevice2_close_device(self, arg_0)
  19317. def drop_device(self, arg_0):
  19318. return _mupdf.FzDevice2_drop_device(self, arg_0)
  19319. def fill_path(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7, arg_8):
  19320. return _mupdf.FzDevice2_fill_path(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7, arg_8)
  19321. def stroke_path(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7, arg_8):
  19322. return _mupdf.FzDevice2_stroke_path(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7, arg_8)
  19323. def clip_path(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  19324. return _mupdf.FzDevice2_clip_path(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  19325. def clip_stroke_path(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  19326. return _mupdf.FzDevice2_clip_stroke_path(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  19327. def fill_text(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7):
  19328. return _mupdf.FzDevice2_fill_text(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7)
  19329. def stroke_text(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7, arg_8):
  19330. return _mupdf.FzDevice2_stroke_text(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7, arg_8)
  19331. def clip_text(self, arg_0, arg_2, arg_3, arg_4):
  19332. return _mupdf.FzDevice2_clip_text(self, arg_0, arg_2, arg_3, arg_4)
  19333. def clip_stroke_text(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  19334. return _mupdf.FzDevice2_clip_stroke_text(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  19335. def ignore_text(self, arg_0, arg_2, arg_3):
  19336. return _mupdf.FzDevice2_ignore_text(self, arg_0, arg_2, arg_3)
  19337. def fill_shade(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  19338. return _mupdf.FzDevice2_fill_shade(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  19339. def fill_image(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  19340. return _mupdf.FzDevice2_fill_image(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  19341. def fill_image_mask(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7):
  19342. return _mupdf.FzDevice2_fill_image_mask(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7)
  19343. def clip_image_mask(self, arg_0, arg_2, arg_3, arg_4):
  19344. return _mupdf.FzDevice2_clip_image_mask(self, arg_0, arg_2, arg_3, arg_4)
  19345. def pop_clip(self, arg_0):
  19346. return _mupdf.FzDevice2_pop_clip(self, arg_0)
  19347. def begin_mask(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6):
  19348. return _mupdf.FzDevice2_begin_mask(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6)
  19349. def end_mask(self, arg_0, arg_2):
  19350. return _mupdf.FzDevice2_end_mask(self, arg_0, arg_2)
  19351. def begin_group(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7):
  19352. return _mupdf.FzDevice2_begin_group(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7)
  19353. def end_group(self, arg_0):
  19354. return _mupdf.FzDevice2_end_group(self, arg_0)
  19355. def begin_tile(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7, arg_8):
  19356. return _mupdf.FzDevice2_begin_tile(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7, arg_8)
  19357. def end_tile(self, arg_0):
  19358. return _mupdf.FzDevice2_end_tile(self, arg_0)
  19359. def render_flags(self, arg_0, arg_2, arg_3):
  19360. return _mupdf.FzDevice2_render_flags(self, arg_0, arg_2, arg_3)
  19361. def set_default_colorspaces(self, arg_0, arg_2):
  19362. return _mupdf.FzDevice2_set_default_colorspaces(self, arg_0, arg_2)
  19363. def begin_layer(self, arg_0, arg_2):
  19364. return _mupdf.FzDevice2_begin_layer(self, arg_0, arg_2)
  19365. def end_layer(self, arg_0):
  19366. return _mupdf.FzDevice2_end_layer(self, arg_0)
  19367. def begin_structure(self, arg_0, arg_2, arg_3, arg_4):
  19368. return _mupdf.FzDevice2_begin_structure(self, arg_0, arg_2, arg_3, arg_4)
  19369. def end_structure(self, arg_0):
  19370. return _mupdf.FzDevice2_end_structure(self, arg_0)
  19371. def begin_metatext(self, arg_0, arg_2, arg_3):
  19372. return _mupdf.FzDevice2_begin_metatext(self, arg_0, arg_2, arg_3)
  19373. def end_metatext(self, arg_0):
  19374. return _mupdf.FzDevice2_end_metatext(self, arg_0)
  19375. def __disown__(self):
  19376. self.this.disown()
  19377. _mupdf.disown_FzDevice2(self)
  19378. return weakref.proxy(self)
  19379. # Register FzDevice2 in _mupdf:
  19380. _mupdf.FzDevice2_swigregister(FzDevice2)
  19381. class FzDeviceContainerStack(object):
  19382. r"""
  19383. Wrapper class for struct `fz_device_container_stack`. Not copyable or assignable.
  19384. Devices can keep track of containers (clips/masks/groups/tiles)
  19385. as they go to save callers having to do it.
  19386. """
  19387. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  19388. __repr__ = _swig_repr
  19389. def __init__(self, *args):
  19390. r"""
  19391. *Overload 1:*
  19392. Default constructor, sets `m_internal` to null.
  19393. |
  19394. *Overload 2:*
  19395. Constructor using raw copy of pre-existing `::fz_device_container_stack`.
  19396. """
  19397. _mupdf.FzDeviceContainerStack_swiginit(self, _mupdf.new_FzDeviceContainerStack(*args))
  19398. __swig_destroy__ = _mupdf.delete_FzDeviceContainerStack
  19399. def m_internal_value(self):
  19400. r"""Return numerical value of .m_internal; helps with Python debugging."""
  19401. return _mupdf.FzDeviceContainerStack_m_internal_value(self)
  19402. def __nonzero__(self):
  19403. return _mupdf.FzDeviceContainerStack___nonzero__(self)
  19404. __bool__ = __nonzero__
  19405. m_internal = property(_mupdf.FzDeviceContainerStack_m_internal_get, _mupdf.FzDeviceContainerStack_m_internal_set, doc=r"""Pointer to wrapped data.""")
  19406. s_num_instances = property(_mupdf.FzDeviceContainerStack_s_num_instances_get, _mupdf.FzDeviceContainerStack_s_num_instances_set)
  19407. # Register FzDeviceContainerStack in _mupdf:
  19408. _mupdf.FzDeviceContainerStack_swigregister(FzDeviceContainerStack)
  19409. class FzDisplayList(object):
  19410. r"""
  19411. Wrapper class for struct `fz_display_list`.
  19412. fz_display_list is a list containing drawing commands (text,
  19413. images, etc.). The intent is two-fold: as a caching-mechanism
  19414. to reduce parsing of a page, and to be used as a data
  19415. structure in multi-threading where one thread parses the page
  19416. and another renders pages.
  19417. Create a display list with fz_new_display_list, hand it over to
  19418. fz_new_list_device to have it populated, and later replay the
  19419. list (once or many times) by calling fz_run_display_list. When
  19420. the list is no longer needed drop it with fz_drop_display_list.
  19421. """
  19422. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  19423. __repr__ = _swig_repr
  19424. @staticmethod
  19425. def fz_new_display_list_from_page_contents(page):
  19426. r"""
  19427. Class-aware wrapper for `::fz_new_display_list_from_page_contents()`.
  19428. Create a display list from page contents (no annotations).
  19429. Ownership of the display list is returned to the caller.
  19430. """
  19431. return _mupdf.FzDisplayList_fz_new_display_list_from_page_contents(page)
  19432. def fz_bound_display_list(self):
  19433. r"""
  19434. Class-aware wrapper for `::fz_bound_display_list()`.
  19435. Return the bounding box of the page recorded in a display list.
  19436. """
  19437. return _mupdf.FzDisplayList_fz_bound_display_list(self)
  19438. def fz_display_list_is_empty(self):
  19439. r"""
  19440. Class-aware wrapper for `::fz_display_list_is_empty()`.
  19441. Check for a display list being empty
  19442. list: The list to check.
  19443. Returns true if empty, false otherwise.
  19444. """
  19445. return _mupdf.FzDisplayList_fz_display_list_is_empty(self)
  19446. def fz_fill_pixmap_from_display_list(self, ctm, pix):
  19447. r"""Class-aware wrapper for `::fz_fill_pixmap_from_display_list()`."""
  19448. return _mupdf.FzDisplayList_fz_fill_pixmap_from_display_list(self, ctm, pix)
  19449. def fz_new_buffer_from_display_list(self, options):
  19450. r"""Class-aware wrapper for `::fz_new_buffer_from_display_list()`."""
  19451. return _mupdf.FzDisplayList_fz_new_buffer_from_display_list(self, options)
  19452. def fz_new_list_device(self):
  19453. r"""
  19454. Class-aware wrapper for `::fz_new_list_device()`.
  19455. Create a rendering device for a display list.
  19456. When the device is rendering a page it will populate the
  19457. display list with drawing commands (text, images, etc.). The
  19458. display list can later be reused to render a page many times
  19459. without having to re-interpret the page from the document file
  19460. for each rendering. Once the device is no longer needed, free
  19461. it with fz_drop_device.
  19462. list: A display list that the list device takes a reference to.
  19463. """
  19464. return _mupdf.FzDisplayList_fz_new_list_device(self)
  19465. def fz_new_pixmap_from_display_list(self, ctm, cs, alpha):
  19466. r"""
  19467. Class-aware wrapper for `::fz_new_pixmap_from_display_list()`.
  19468. Render the page to a pixmap using the transform and colorspace.
  19469. Ownership of the pixmap is returned to the caller.
  19470. """
  19471. return _mupdf.FzDisplayList_fz_new_pixmap_from_display_list(self, ctm, cs, alpha)
  19472. def fz_new_pixmap_from_display_list_with_separations(self, ctm, cs, seps, alpha):
  19473. r"""
  19474. Class-aware wrapper for `::fz_new_pixmap_from_display_list_with_separations()`.
  19475. Render the page contents with control over spot colors.
  19476. Ownership of the pixmap is returned to the caller.
  19477. """
  19478. return _mupdf.FzDisplayList_fz_new_pixmap_from_display_list_with_separations(self, ctm, cs, seps, alpha)
  19479. def fz_run_display_list(self, dev, ctm, scissor, cookie):
  19480. r"""
  19481. Class-aware wrapper for `::fz_run_display_list()`.
  19482. (Re)-run a display list through a device.
  19483. list: A display list, created by fz_new_display_list and
  19484. populated with objects from a page by running fz_run_page on a
  19485. device obtained from fz_new_list_device.
  19486. ctm: Transform to apply to display list contents. May include
  19487. for example scaling and rotation, see fz_scale, fz_rotate and
  19488. fz_concat. Set to fz_identity if no transformation is desired.
  19489. scissor: Only the part of the contents of the display list
  19490. visible within this area will be considered when the list is
  19491. run through the device. This does not imply for tile objects
  19492. contained in the display list.
  19493. cookie: Communication mechanism between caller and library
  19494. running the page. Intended for multi-threaded applications,
  19495. while single-threaded applications set cookie to NULL. The
  19496. caller may abort an ongoing page run. Cookie also communicates
  19497. progress information back to the caller. The fields inside
  19498. cookie are continually updated while the page is being run.
  19499. """
  19500. return _mupdf.FzDisplayList_fz_run_display_list(self, dev, ctm, scissor, cookie)
  19501. def fz_search_display_list(self, needle, hit_mark, hit_bbox, hit_max):
  19502. r"""
  19503. Class-aware wrapper for `::fz_search_display_list()`.
  19504. This method has out-params. Python/C# wrappers look like:
  19505. `fz_search_display_list(const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  19506. """
  19507. return _mupdf.FzDisplayList_fz_search_display_list(self, needle, hit_mark, hit_bbox, hit_max)
  19508. def fz_search_display_list_cb(self, needle, cb, opaque):
  19509. r"""Class-aware wrapper for `::fz_search_display_list_cb()`."""
  19510. return _mupdf.FzDisplayList_fz_search_display_list_cb(self, needle, cb, opaque)
  19511. def __init__(self, *args):
  19512. r"""
  19513. *Overload 1:*
  19514. == Constructors. Constructor using `fz_new_display_list()`.
  19515. Create an empty display list.
  19516. A display list contains drawing commands (text, images, etc.).
  19517. Use fz_new_list_device for populating the list.
  19518. mediabox: Bounds of the page (in points) represented by the
  19519. display list.
  19520. |
  19521. *Overload 2:*
  19522. Constructor using `fz_new_display_list_from_page()`.
  19523. Create a display list.
  19524. Ownership of the display list is returned to the caller.
  19525. |
  19526. *Overload 3:*
  19527. Constructor using `fz_new_display_list_from_page_number()`.
  19528. |
  19529. *Overload 4:*
  19530. Constructor using `fz_new_display_list_from_svg()`.
  19531. Parse an SVG document into a display-list.
  19532. |
  19533. *Overload 5:*
  19534. Constructor using `fz_new_display_list_from_svg_xml()`.
  19535. Parse an SVG document into a display-list.
  19536. |
  19537. *Overload 6:*
  19538. Constructor using `pdf_new_display_list_from_annot()`.
  19539. |
  19540. *Overload 7:*
  19541. Copy constructor using `fz_keep_display_list()`.
  19542. |
  19543. *Overload 8:*
  19544. Default constructor, sets `m_internal` to null.
  19545. |
  19546. *Overload 9:*
  19547. Constructor using raw copy of pre-existing `::fz_display_list`.
  19548. """
  19549. _mupdf.FzDisplayList_swiginit(self, _mupdf.new_FzDisplayList(*args))
  19550. __swig_destroy__ = _mupdf.delete_FzDisplayList
  19551. def m_internal_value(self):
  19552. r"""Return numerical value of .m_internal; helps with Python debugging."""
  19553. return _mupdf.FzDisplayList_m_internal_value(self)
  19554. def __nonzero__(self):
  19555. return _mupdf.FzDisplayList___nonzero__(self)
  19556. __bool__ = __nonzero__
  19557. m_internal = property(_mupdf.FzDisplayList_m_internal_get, _mupdf.FzDisplayList_m_internal_set, doc=r"""Pointer to wrapped data.""")
  19558. s_num_instances = property(_mupdf.FzDisplayList_s_num_instances_get, _mupdf.FzDisplayList_s_num_instances_set)
  19559. # Register FzDisplayList in _mupdf:
  19560. _mupdf.FzDisplayList_swigregister(FzDisplayList)
  19561. class FzDocument(object):
  19562. r"""Wrapper class for struct `fz_document`."""
  19563. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  19564. __repr__ = _swig_repr
  19565. def fz_authenticate_password(self, password):
  19566. r"""
  19567. Class-aware wrapper for `::fz_authenticate_password()`.
  19568. Test if the given password can decrypt the document.
  19569. password: The password string to be checked. Some document
  19570. specifications do not specify any particular text encoding, so
  19571. neither do we.
  19572. Returns 0 for failure to authenticate, non-zero for success.
  19573. For PDF documents, further information can be given by examining
  19574. the bits in the return code.
  19575. Bit 0 => No password required
  19576. Bit 1 => User password authenticated
  19577. Bit 2 => Owner password authenticated
  19578. """
  19579. return _mupdf.FzDocument_fz_authenticate_password(self, password)
  19580. def fz_clamp_location(self, loc):
  19581. r"""
  19582. Class-aware wrapper for `::fz_clamp_location()`.
  19583. Clamps a location into valid chapter/page range. (First clamps
  19584. the chapter into range, then the page into range).
  19585. """
  19586. return _mupdf.FzDocument_fz_clamp_location(self, loc)
  19587. def fz_count_chapter_pages(self, chapter):
  19588. r"""
  19589. Class-aware wrapper for `::fz_count_chapter_pages()`.
  19590. Return the number of pages in a chapter.
  19591. May return 0.
  19592. """
  19593. return _mupdf.FzDocument_fz_count_chapter_pages(self, chapter)
  19594. def fz_count_chapters(self):
  19595. r"""
  19596. Class-aware wrapper for `::fz_count_chapters()`.
  19597. Return the number of chapters in the document.
  19598. At least 1.
  19599. """
  19600. return _mupdf.FzDocument_fz_count_chapters(self)
  19601. def fz_count_pages(self):
  19602. r"""
  19603. Class-aware wrapper for `::fz_count_pages()`.
  19604. Return the number of pages in document
  19605. May return 0 for documents with no pages.
  19606. """
  19607. return _mupdf.FzDocument_fz_count_pages(self)
  19608. def fz_document_output_intent(self):
  19609. r"""
  19610. Class-aware wrapper for `::fz_document_output_intent()`.
  19611. Find the output intent colorspace if the document has defined
  19612. one.
  19613. Returns a borrowed reference that should not be dropped, unless
  19614. it is kept first.
  19615. """
  19616. return _mupdf.FzDocument_fz_document_output_intent(self)
  19617. def fz_document_supports_accelerator(self):
  19618. r"""
  19619. Class-aware wrapper for `::fz_document_supports_accelerator()`.
  19620. Query if the document supports the saving of accelerator data.
  19621. """
  19622. return _mupdf.FzDocument_fz_document_supports_accelerator(self)
  19623. def fz_format_link_uri(self, dest):
  19624. r"""
  19625. Class-aware wrapper for `::fz_format_link_uri()`.
  19626. Format an internal link to a page number, location, and possible viewing parameters,
  19627. suitable for use with fz_create_link.
  19628. Returns a newly allocated string that the caller must free.
  19629. """
  19630. return _mupdf.FzDocument_fz_format_link_uri(self, dest)
  19631. def fz_has_permission(self, p):
  19632. r"""
  19633. Class-aware wrapper for `::fz_has_permission()`.
  19634. Check permission flags on document.
  19635. """
  19636. return _mupdf.FzDocument_fz_has_permission(self, p)
  19637. def fz_is_document_reflowable(self):
  19638. r"""
  19639. Class-aware wrapper for `::fz_is_document_reflowable()`.
  19640. Is the document reflowable.
  19641. Returns 1 to indicate reflowable documents, otherwise 0.
  19642. """
  19643. return _mupdf.FzDocument_fz_is_document_reflowable(self)
  19644. def fz_last_page(self):
  19645. r"""
  19646. Class-aware wrapper for `::fz_last_page()`.
  19647. Function to get the location for the last page in the document.
  19648. Using this can be far more efficient in some cases than calling
  19649. fz_count_pages and using the page number.
  19650. """
  19651. return _mupdf.FzDocument_fz_last_page(self)
  19652. def fz_layout_document(self, w, h, em):
  19653. r"""
  19654. Class-aware wrapper for `::fz_layout_document()`.
  19655. Layout reflowable document types.
  19656. w, h: Page size in points.
  19657. em: Default font size in points.
  19658. """
  19659. return _mupdf.FzDocument_fz_layout_document(self, w, h, em)
  19660. def fz_load_chapter_page(self, chapter, page):
  19661. r"""
  19662. Class-aware wrapper for `::fz_load_chapter_page()`.
  19663. Load a page.
  19664. After fz_load_page is it possible to retrieve the size of the
  19665. page using fz_bound_page, or to render the page using
  19666. fz_run_page_*. Free the page by calling fz_drop_page.
  19667. chapter: chapter number, 0 is the first chapter of the document.
  19668. number: page number, 0 is the first page of the chapter.
  19669. """
  19670. return _mupdf.FzDocument_fz_load_chapter_page(self, chapter, page)
  19671. def fz_load_outline(self):
  19672. r"""
  19673. Class-aware wrapper for `::fz_load_outline()`.
  19674. Load the hierarchical document outline.
  19675. Should be freed by fz_drop_outline.
  19676. """
  19677. return _mupdf.FzDocument_fz_load_outline(self)
  19678. def fz_load_page(self, number):
  19679. r"""
  19680. Class-aware wrapper for `::fz_load_page()`.
  19681. Load a given page number from a document. This may be much less
  19682. efficient than loading by location (chapter+page) for some
  19683. document types.
  19684. """
  19685. return _mupdf.FzDocument_fz_load_page(self, number)
  19686. def fz_location_from_page_number(self, number):
  19687. r"""
  19688. Class-aware wrapper for `::fz_location_from_page_number()`.
  19689. Converts from page number to chapter+page. This may cause many
  19690. chapters to be laid out in order to calculate the number of
  19691. pages within those chapters.
  19692. """
  19693. return _mupdf.FzDocument_fz_location_from_page_number(self, number)
  19694. def fz_lookup_bookmark(self, mark):
  19695. r"""
  19696. Class-aware wrapper for `::fz_lookup_bookmark()`.
  19697. Find a bookmark and return its page number.
  19698. """
  19699. return _mupdf.FzDocument_fz_lookup_bookmark(self, mark)
  19700. def fz_lookup_metadata(self, key, buf, size):
  19701. r"""
  19702. Class-aware wrapper for `::fz_lookup_metadata()`.
  19703. Retrieve document meta data strings.
  19704. doc: The document to query.
  19705. key: Which meta data key to retrieve...
  19706. Basic information:
  19707. 'format' -- Document format and version.
  19708. 'encryption' -- Description of the encryption used.
  19709. From the document information dictionary:
  19710. 'info:Title'
  19711. 'info:Author'
  19712. 'info:Subject'
  19713. 'info:Keywords'
  19714. 'info:Creator'
  19715. 'info:Producer'
  19716. 'info:CreationDate'
  19717. 'info:ModDate'
  19718. buf: The buffer to hold the results (a nul-terminated UTF-8
  19719. string).
  19720. size: Size of 'buf'.
  19721. Returns the number of bytes need to store the string plus terminator
  19722. (will be larger than 'size' if the output was truncated), or -1 if the
  19723. key is not recognized or found.
  19724. """
  19725. return _mupdf.FzDocument_fz_lookup_metadata(self, key, buf, size)
  19726. def fz_lookup_metadata2(self, key):
  19727. r"""
  19728. Class-aware wrapper for `::fz_lookup_metadata2()`.
  19729. C++ alternative to `fz_lookup_metadata()` that returns a `std::string`
  19730. or calls `fz_throw()` if not found.
  19731. """
  19732. return _mupdf.FzDocument_fz_lookup_metadata2(self, key)
  19733. def fz_needs_password(self):
  19734. r"""
  19735. Class-aware wrapper for `::fz_needs_password()`.
  19736. Check if a document is encrypted with a
  19737. non-blank password.
  19738. """
  19739. return _mupdf.FzDocument_fz_needs_password(self)
  19740. def fz_new_buffer_from_page_number(self, number, options):
  19741. r"""Class-aware wrapper for `::fz_new_buffer_from_page_number()`."""
  19742. return _mupdf.FzDocument_fz_new_buffer_from_page_number(self, number, options)
  19743. def fz_new_display_list_from_page_number(self, number):
  19744. r"""Class-aware wrapper for `::fz_new_display_list_from_page_number()`."""
  19745. return _mupdf.FzDocument_fz_new_display_list_from_page_number(self, number)
  19746. def fz_new_pdf_document_from_fz_document(self):
  19747. r"""Class-aware wrapper for `::fz_new_pdf_document_from_fz_document()`."""
  19748. return _mupdf.FzDocument_fz_new_pdf_document_from_fz_document(self)
  19749. def fz_new_pixmap_from_page_number(self, number, ctm, cs, alpha):
  19750. r"""Class-aware wrapper for `::fz_new_pixmap_from_page_number()`."""
  19751. return _mupdf.FzDocument_fz_new_pixmap_from_page_number(self, number, ctm, cs, alpha)
  19752. def fz_new_pixmap_from_page_number_with_separations(self, number, ctm, cs, seps, alpha):
  19753. r"""Class-aware wrapper for `::fz_new_pixmap_from_page_number_with_separations()`."""
  19754. return _mupdf.FzDocument_fz_new_pixmap_from_page_number_with_separations(self, number, ctm, cs, seps, alpha)
  19755. def fz_new_xhtml_document_from_document(self, *args):
  19756. r"""
  19757. *Overload 1:*
  19758. Class-aware wrapper for `::fz_new_xhtml_document_from_document()`.
  19759. Use text extraction to convert the input document into XHTML,
  19760. then open the result as a new document that can be reflowed.
  19761. |
  19762. *Overload 2:*
  19763. Class-aware wrapper for `::fz_new_xhtml_document_from_document()`.
  19764. Use text extraction to convert the input document into XHTML,
  19765. then open the result as a new document that can be reflowed.
  19766. """
  19767. return _mupdf.FzDocument_fz_new_xhtml_document_from_document(self, *args)
  19768. def fz_next_page(self, loc):
  19769. r"""
  19770. Class-aware wrapper for `::fz_next_page()`.
  19771. Function to get the location of the next page (allowing for the
  19772. end of chapters etc). If at the end of the document, returns the
  19773. current location.
  19774. """
  19775. return _mupdf.FzDocument_fz_next_page(self, loc)
  19776. def fz_open_reflowed_document(self, opts):
  19777. r"""Class-aware wrapper for `::fz_open_reflowed_document()`."""
  19778. return _mupdf.FzDocument_fz_open_reflowed_document(self, opts)
  19779. def fz_output_accelerator(self, accel):
  19780. r"""
  19781. Class-aware wrapper for `::fz_output_accelerator()`.
  19782. Output accelerator data for the document to a given output
  19783. stream.
  19784. """
  19785. return _mupdf.FzDocument_fz_output_accelerator(self, accel)
  19786. def fz_page_number_from_location(self, loc):
  19787. r"""
  19788. Class-aware wrapper for `::fz_page_number_from_location()`.
  19789. Converts from chapter+page to page number. This may cause many
  19790. chapters to be laid out in order to calculate the number of
  19791. pages within those chapters.
  19792. """
  19793. return _mupdf.FzDocument_fz_page_number_from_location(self, loc)
  19794. def fz_previous_page(self, loc):
  19795. r"""
  19796. Class-aware wrapper for `::fz_previous_page()`.
  19797. Function to get the location of the previous page (allowing for
  19798. the end of chapters etc). If already at the start of the
  19799. document, returns the current page.
  19800. """
  19801. return _mupdf.FzDocument_fz_previous_page(self, loc)
  19802. def fz_process_opened_pages(self, process_openend_page, state):
  19803. r"""
  19804. Class-aware wrapper for `::fz_process_opened_pages()`.
  19805. Iterates over all opened pages of the document, calling the
  19806. provided callback for each page for processing. If the callback
  19807. returns non-NULL then the iteration stops and that value is returned
  19808. to the called of fz_process_opened_pages().
  19809. The state pointer provided to fz_process_opened_pages() is
  19810. passed on to the callback but is owned by the caller.
  19811. Returns the first non-NULL value returned by the callback,
  19812. or NULL if the callback returned NULL for all opened pages.
  19813. """
  19814. return _mupdf.FzDocument_fz_process_opened_pages(self, process_openend_page, state)
  19815. def fz_resolve_link(self, uri, xp, yp):
  19816. r"""
  19817. Class-aware wrapper for `::fz_resolve_link()`.
  19818. This method has out-params. Python/C# wrappers look like:
  19819. `fz_resolve_link(const char *uri)` => `(fz_location, float xp, float yp)`
  19820. Resolve an internal link to a page number.
  19821. xp, yp: Pointer to store coordinate of destination on the page.
  19822. Returns (-1,-1) if the URI cannot be resolved.
  19823. """
  19824. return _mupdf.FzDocument_fz_resolve_link(self, uri, xp, yp)
  19825. def fz_run_document_structure(self, dev, cookie):
  19826. r"""
  19827. Class-aware wrapper for `::fz_run_document_structure()`.
  19828. Run the document structure through a device.
  19829. doc: Document in question.
  19830. dev: Device obtained from fz_new_*_device.
  19831. cookie: Communication mechanism between caller and library.
  19832. Intended for multi-threaded applications, while
  19833. single-threaded applications set cookie to NULL. The
  19834. caller may abort an ongoing rendering of a page. Cookie also
  19835. communicates progress information back to the caller. The
  19836. fields inside cookie are continually updated while the page is
  19837. rendering.
  19838. """
  19839. return _mupdf.FzDocument_fz_run_document_structure(self, dev, cookie)
  19840. def fz_save_accelerator(self, accel):
  19841. r"""
  19842. Class-aware wrapper for `::fz_save_accelerator()`.
  19843. Save accelerator data for the document to a given file.
  19844. """
  19845. return _mupdf.FzDocument_fz_save_accelerator(self, accel)
  19846. def fz_search_chapter_page_number(self, chapter, page, needle, hit_mark, hit_bbox, hit_max):
  19847. r"""
  19848. Class-aware wrapper for `::fz_search_chapter_page_number()`.
  19849. This method has out-params. Python/C# wrappers look like:
  19850. `fz_search_chapter_page_number(int chapter, int page, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  19851. """
  19852. return _mupdf.FzDocument_fz_search_chapter_page_number(self, chapter, page, needle, hit_mark, hit_bbox, hit_max)
  19853. def fz_search_chapter_page_number_cb(self, chapter, page, needle, cb, opaque):
  19854. r"""Class-aware wrapper for `::fz_search_chapter_page_number_cb()`."""
  19855. return _mupdf.FzDocument_fz_search_chapter_page_number_cb(self, chapter, page, needle, cb, opaque)
  19856. def fz_search_page2(self, number, needle, hit_max):
  19857. r"""
  19858. Class-aware wrapper for `::fz_search_page2()`.
  19859. C++ alternative to fz_search_page() that returns information in a std::vector.
  19860. """
  19861. return _mupdf.FzDocument_fz_search_page2(self, number, needle, hit_max)
  19862. def fz_search_page_number(self, number, needle, hit_mark, hit_bbox, hit_max):
  19863. r"""
  19864. Class-aware wrapper for `::fz_search_page_number()`.
  19865. This method has out-params. Python/C# wrappers look like:
  19866. `fz_search_page_number(int number, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  19867. """
  19868. return _mupdf.FzDocument_fz_search_page_number(self, number, needle, hit_mark, hit_bbox, hit_max)
  19869. def fz_search_page_number_cb(self, number, needle, cb, opaque):
  19870. r"""Class-aware wrapper for `::fz_search_page_number_cb()`."""
  19871. return _mupdf.FzDocument_fz_search_page_number_cb(self, number, needle, cb, opaque)
  19872. def fz_set_metadata(self, key, value):
  19873. r"""Class-aware wrapper for `::fz_set_metadata()`."""
  19874. return _mupdf.FzDocument_fz_set_metadata(self, key, value)
  19875. def pdf_count_pages_imp(self, chapter):
  19876. r"""Class-aware wrapper for `::pdf_count_pages_imp()`."""
  19877. return _mupdf.FzDocument_pdf_count_pages_imp(self, chapter)
  19878. def pdf_document_from_fz_document(self):
  19879. r"""Class-aware wrapper for `::pdf_document_from_fz_document()`."""
  19880. return _mupdf.FzDocument_pdf_document_from_fz_document(self)
  19881. def pdf_load_page_imp(self, chapter, number):
  19882. r"""Class-aware wrapper for `::pdf_load_page_imp()`."""
  19883. return _mupdf.FzDocument_pdf_load_page_imp(self, chapter, number)
  19884. def pdf_page_label_imp(self, chapter, page, buf, size):
  19885. r"""Class-aware wrapper for `::pdf_page_label_imp()`."""
  19886. return _mupdf.FzDocument_pdf_page_label_imp(self, chapter, page, buf, size)
  19887. def pdf_specifics(self):
  19888. r"""Class-aware wrapper for `::pdf_specifics()`."""
  19889. return _mupdf.FzDocument_pdf_specifics(self)
  19890. def __init__(self, *args):
  19891. r"""
  19892. *Overload 1:*
  19893. == Constructors. Constructor using `fz_open_accelerated_document()`.
  19894. Open a document file and read its basic structure so pages and
  19895. objects can be located. MuPDF will try to repair broken
  19896. documents (without actually changing the file contents).
  19897. The returned fz_document is used when calling most other
  19898. document related functions.
  19899. filename: a path to a file as it would be given to open(2).
  19900. |
  19901. *Overload 2:*
  19902. Constructor using `fz_open_accelerated_document_with_stream()`.
  19903. Open a document using the specified stream object rather than
  19904. opening a file on disk.
  19905. magic: a string used to detect document type; either a file name
  19906. or mime-type.
  19907. stream: a stream of the document contents.
  19908. accel: NULL, or a stream of the 'accelerator' contents for this document.
  19909. NOTE: The caller retains ownership of 'stream' and 'accel' - the document will
  19910. take its own references if required.
  19911. |
  19912. *Overload 3:*
  19913. Constructor using `fz_open_accelerated_document_with_stream_and_dir()`.
  19914. Open a document using the specified stream object rather than
  19915. opening a file on disk.
  19916. magic: a string used to detect document type; either a file name
  19917. or mime-type.
  19918. stream: a stream of the document contents.
  19919. accel: NULL, or a stream of the 'accelerator' contents for this document.
  19920. dir: NULL, or the 'directory context' for the stream contents.
  19921. NOTE: The caller retains ownership of 'stream', 'accel' and 'dir' - the document will
  19922. take its own references if required.
  19923. |
  19924. *Overload 4:*
  19925. Constructor using `fz_open_document()`.
  19926. Open a document file and read its basic structure so pages and
  19927. objects can be located. MuPDF will try to repair broken
  19928. documents (without actually changing the file contents).
  19929. The returned fz_document is used when calling most other
  19930. document related functions.
  19931. filename: a path to a file as it would be given to open(2).
  19932. |
  19933. *Overload 5:*
  19934. Constructor using `fz_open_document_with_buffer()`.
  19935. Open a document using a buffer rather than opening a file on disk.
  19936. |
  19937. *Overload 6:*
  19938. Constructor using `fz_open_document_with_stream()`.
  19939. Open a document using the specified stream object rather than
  19940. opening a file on disk.
  19941. magic: a string used to detect document type; either a file name
  19942. or mime-type.
  19943. stream: a stream representing the contents of the document file.
  19944. NOTE: The caller retains ownership of 'stream' - the document will take its
  19945. own reference if required.
  19946. |
  19947. *Overload 7:*
  19948. Constructor using `fz_open_document_with_stream_and_dir()`.
  19949. Open a document using the specified stream object rather than
  19950. opening a file on disk.
  19951. magic: a string used to detect document type; either a file name
  19952. or mime-type.
  19953. stream: a stream representing the contents of the document file.
  19954. dir: a 'directory context' for those filetypes that need it.
  19955. NOTE: The caller retains ownership of 'stream' and 'dir' - the document will
  19956. take its own references if required.
  19957. |
  19958. *Overload 8:*
  19959. Returns a FzDocument for pdfdocument.m_internal.super.
  19960. |
  19961. *Overload 9:*
  19962. Copy constructor using `fz_keep_document()`.
  19963. |
  19964. *Overload 10:*
  19965. Constructor using raw copy of pre-existing `::fz_document`.
  19966. |
  19967. *Overload 11:*
  19968. Constructor using raw copy of pre-existing `::fz_document`.
  19969. """
  19970. _mupdf.FzDocument_swiginit(self, _mupdf.new_FzDocument(*args))
  19971. __swig_destroy__ = _mupdf.delete_FzDocument
  19972. def m_internal_value(self):
  19973. r"""Return numerical value of .m_internal; helps with Python debugging."""
  19974. return _mupdf.FzDocument_m_internal_value(self)
  19975. def __nonzero__(self):
  19976. return _mupdf.FzDocument___nonzero__(self)
  19977. __bool__ = __nonzero__
  19978. m_internal = property(_mupdf.FzDocument_m_internal_get, _mupdf.FzDocument_m_internal_set, doc=r"""Pointer to wrapped data.""")
  19979. s_num_instances = property(_mupdf.FzDocument_s_num_instances_get, _mupdf.FzDocument_s_num_instances_set)
  19980. # Register FzDocument in _mupdf:
  19981. _mupdf.FzDocument_swigregister(FzDocument)
  19982. class FzDocumentHandler(object):
  19983. r"""Wrapper class for struct `fz_document_handler`. Not copyable or assignable."""
  19984. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  19985. __repr__ = _swig_repr
  19986. def fz_document_handler_open(self, stream, accel, dir, recognize_state):
  19987. r"""
  19988. Class-aware wrapper for `::fz_document_handler_open()`. Helper for calling `fz_document_handler::open` function pointer via
  19989. Swig from Python/C#.
  19990. """
  19991. return _mupdf.FzDocumentHandler_fz_document_handler_open(self, stream, accel, dir, recognize_state)
  19992. def fz_document_handler_recognize(self, magic):
  19993. r"""
  19994. Class-aware wrapper for `::fz_document_handler_recognize()`. Helper for calling a `fz_document_handler::recognize` function
  19995. pointer via Swig from Python/C#.
  19996. """
  19997. return _mupdf.FzDocumentHandler_fz_document_handler_recognize(self, magic)
  19998. def fz_register_document_handler(self):
  19999. r"""
  20000. Class-aware wrapper for `::fz_register_document_handler()`.
  20001. Register a handler for a document type.
  20002. handler: The handler to register. This must live on for the duration of the
  20003. use of this handler. It will be passed back to the handler for calls so
  20004. the caller can use it to retrieve state.
  20005. """
  20006. return _mupdf.FzDocumentHandler_fz_register_document_handler(self)
  20007. def __init__(self, *args):
  20008. r"""
  20009. *Overload 1:*
  20010. Default constructor, sets `m_internal` to null.
  20011. |
  20012. *Overload 2:*
  20013. Constructor using raw copy of pre-existing `::fz_document_handler`.
  20014. """
  20015. _mupdf.FzDocumentHandler_swiginit(self, _mupdf.new_FzDocumentHandler(*args))
  20016. __swig_destroy__ = _mupdf.delete_FzDocumentHandler
  20017. def m_internal_value(self):
  20018. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20019. return _mupdf.FzDocumentHandler_m_internal_value(self)
  20020. def __nonzero__(self):
  20021. return _mupdf.FzDocumentHandler___nonzero__(self)
  20022. __bool__ = __nonzero__
  20023. m_internal = property(_mupdf.FzDocumentHandler_m_internal_get, _mupdf.FzDocumentHandler_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20024. s_num_instances = property(_mupdf.FzDocumentHandler_s_num_instances_get, _mupdf.FzDocumentHandler_s_num_instances_set)
  20025. # Register FzDocumentHandler in _mupdf:
  20026. _mupdf.FzDocumentHandler_swigregister(FzDocumentHandler)
  20027. class FzDocumentHandlerContext(object):
  20028. r"""Wrapper class for struct `fz_document_handler_context`. Not copyable or assignable."""
  20029. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20030. __repr__ = _swig_repr
  20031. def __init__(self, *args):
  20032. r"""
  20033. *Overload 1:*
  20034. Default constructor, sets `m_internal` to null.
  20035. |
  20036. *Overload 2:*
  20037. Constructor using raw copy of pre-existing `::fz_document_handler_context`.
  20038. """
  20039. _mupdf.FzDocumentHandlerContext_swiginit(self, _mupdf.new_FzDocumentHandlerContext(*args))
  20040. __swig_destroy__ = _mupdf.delete_FzDocumentHandlerContext
  20041. def m_internal_value(self):
  20042. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20043. return _mupdf.FzDocumentHandlerContext_m_internal_value(self)
  20044. def __nonzero__(self):
  20045. return _mupdf.FzDocumentHandlerContext___nonzero__(self)
  20046. __bool__ = __nonzero__
  20047. m_internal = property(_mupdf.FzDocumentHandlerContext_m_internal_get, _mupdf.FzDocumentHandlerContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20048. s_num_instances = property(_mupdf.FzDocumentHandlerContext_s_num_instances_get, _mupdf.FzDocumentHandlerContext_s_num_instances_set)
  20049. # Register FzDocumentHandlerContext in _mupdf:
  20050. _mupdf.FzDocumentHandlerContext_swigregister(FzDocumentHandlerContext)
  20051. class FzDocumentWriter(object):
  20052. r"""Wrapper class for struct `fz_document_writer`. Not copyable or assignable."""
  20053. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20054. __repr__ = _swig_repr
  20055. PathType_CBZ = _mupdf.FzDocumentWriter_PathType_CBZ
  20056. PathType_DOCX = _mupdf.FzDocumentWriter_PathType_DOCX
  20057. PathType_ODT = _mupdf.FzDocumentWriter_PathType_ODT
  20058. PathType_PAM_PIXMAP = _mupdf.FzDocumentWriter_PathType_PAM_PIXMAP
  20059. PathType_PBM_PIXMAP = _mupdf.FzDocumentWriter_PathType_PBM_PIXMAP
  20060. PathType_PCL = _mupdf.FzDocumentWriter_PathType_PCL
  20061. PathType_PCLM = _mupdf.FzDocumentWriter_PathType_PCLM
  20062. PathType_PDF = _mupdf.FzDocumentWriter_PathType_PDF
  20063. PathType_PDFOCR = _mupdf.FzDocumentWriter_PathType_PDFOCR
  20064. PathType_PGM_PIXMAP = _mupdf.FzDocumentWriter_PathType_PGM_PIXMAP
  20065. PathType_PKM_PIXMAP = _mupdf.FzDocumentWriter_PathType_PKM_PIXMAP
  20066. PathType_PNG_PIXMAP = _mupdf.FzDocumentWriter_PathType_PNG_PIXMAP
  20067. PathType_PNM_PIXMAP = _mupdf.FzDocumentWriter_PathType_PNM_PIXMAP
  20068. PathType_PPM_PIXMAP = _mupdf.FzDocumentWriter_PathType_PPM_PIXMAP
  20069. PathType_PS = _mupdf.FzDocumentWriter_PathType_PS
  20070. PathType_PWG = _mupdf.FzDocumentWriter_PathType_PWG
  20071. PathType_SVG = _mupdf.FzDocumentWriter_PathType_SVG
  20072. OutputType_CBZ = _mupdf.FzDocumentWriter_OutputType_CBZ
  20073. OutputType_DOCX = _mupdf.FzDocumentWriter_OutputType_DOCX
  20074. OutputType_ODT = _mupdf.FzDocumentWriter_OutputType_ODT
  20075. OutputType_PCL = _mupdf.FzDocumentWriter_OutputType_PCL
  20076. OutputType_PCLM = _mupdf.FzDocumentWriter_OutputType_PCLM
  20077. OutputType_PDF = _mupdf.FzDocumentWriter_OutputType_PDF
  20078. OutputType_PDFOCR = _mupdf.FzDocumentWriter_OutputType_PDFOCR
  20079. OutputType_PS = _mupdf.FzDocumentWriter_OutputType_PS
  20080. OutputType_PWG = _mupdf.FzDocumentWriter_OutputType_PWG
  20081. FormatPathType_DOCUMENT = _mupdf.FzDocumentWriter_FormatPathType_DOCUMENT
  20082. FormatPathType_TEXT = _mupdf.FzDocumentWriter_FormatPathType_TEXT
  20083. def fz_begin_page(self, mediabox):
  20084. r"""
  20085. Class-aware wrapper for `::fz_begin_page()`.
  20086. Called to start the process of writing a page to
  20087. a document.
  20088. mediabox: page size rectangle in points.
  20089. Returns a borrowed fz_device to write page contents to. This
  20090. should be kept if required, and only dropped if it was kept.
  20091. """
  20092. return _mupdf.FzDocumentWriter_fz_begin_page(self, mediabox)
  20093. def fz_close_document_writer(self):
  20094. r"""
  20095. Class-aware wrapper for `::fz_close_document_writer()`.
  20096. Called to end the process of writing
  20097. pages to a document.
  20098. This writes any file level trailers required. After this
  20099. completes successfully the file is up to date and complete.
  20100. """
  20101. return _mupdf.FzDocumentWriter_fz_close_document_writer(self)
  20102. def fz_end_page(self):
  20103. r"""
  20104. Class-aware wrapper for `::fz_end_page()`.
  20105. Called to end the process of writing a page to a
  20106. document.
  20107. """
  20108. return _mupdf.FzDocumentWriter_fz_end_page(self)
  20109. def fz_pdfocr_writer_set_progress(self, progress, arg_2):
  20110. r"""Class-aware wrapper for `::fz_pdfocr_writer_set_progress()`."""
  20111. return _mupdf.FzDocumentWriter_fz_pdfocr_writer_set_progress(self, progress, arg_2)
  20112. def fz_write_document(self, doc):
  20113. r"""
  20114. Class-aware wrapper for `::fz_write_document()`.
  20115. Convenience function to feed all the pages of a document to
  20116. fz_begin_page/fz_run_page/fz_end_page.
  20117. """
  20118. return _mupdf.FzDocumentWriter_fz_write_document(self, doc)
  20119. def fz_write_stabilized_story(self, user_css, em, contentfn, contentfn_ref, rectfn, rectfn_ref, pagefn, pagefn_ref, dir):
  20120. r"""Class-aware wrapper for `::fz_write_stabilized_story()`."""
  20121. return _mupdf.FzDocumentWriter_fz_write_stabilized_story(self, user_css, em, contentfn, contentfn_ref, rectfn, rectfn_ref, pagefn, pagefn_ref, dir)
  20122. def fz_write_story(self, story, rectfn, rectfn_ref, positionfn, positionfn_ref, pagefn, pagefn_ref):
  20123. r"""Class-aware wrapper for `::fz_write_story()`."""
  20124. return _mupdf.FzDocumentWriter_fz_write_story(self, story, rectfn, rectfn_ref, positionfn, positionfn_ref, pagefn, pagefn_ref)
  20125. def __init__(self, *args):
  20126. r"""
  20127. *Overload 1:*
  20128. == Constructors. Constructor using `fz_new_csv_writer()`.
  20129. |
  20130. *Overload 2:*
  20131. Constructor using `fz_new_csv_writer_with_output()`. Constructor using `fz_new_document_writer_of_size()`.
  20132. Internal function to allocate a
  20133. block for a derived document_writer structure, with the base
  20134. structure's function pointers populated correctly, and the extra
  20135. space zero initialised.
  20136. |
  20137. *Overload 3:*
  20138. Constructor using `fz_new_document_writer_with_buffer()`.
  20139. |
  20140. *Overload 4:*
  20141. Constructor using `fz_new_jpeg_pixmap_writer()`. Constructor using `fz_new_pixmap_writer()`.
  20142. |
  20143. *Overload 5:*
  20144. Constructor using `fz_new_svg_writer_with_output()`.
  20145. |
  20146. *Overload 6:*
  20147. Constructor using one of:
  20148. fz_new_cbz_writer()
  20149. fz_new_docx_writer()
  20150. fz_new_odt_writer()
  20151. fz_new_pam_pixmap_writer()
  20152. fz_new_pbm_pixmap_writer()
  20153. fz_new_pcl_writer()
  20154. fz_new_pclm_writer()
  20155. fz_new_pdf_writer()
  20156. fz_new_pdfocr_writer()
  20157. fz_new_pgm_pixmap_writer()
  20158. fz_new_pkm_pixmap_writer()
  20159. fz_new_png_pixmap_writer()
  20160. fz_new_pnm_pixmap_writer()
  20161. fz_new_ppm_pixmap_writer()
  20162. fz_new_ps_writer()
  20163. fz_new_pwg_writer()
  20164. fz_new_svg_writer()
  20165. |
  20166. *Overload 7:*
  20167. Constructor using one of:
  20168. fz_new_cbz_writer_with_output()
  20169. fz_new_docx_writer_with_output()
  20170. fz_new_odt_writer_with_output()
  20171. fz_new_pcl_writer_with_output()
  20172. fz_new_pclm_writer_with_output()
  20173. fz_new_pdf_writer_with_output()
  20174. fz_new_pdfocr_writer_with_output()
  20175. fz_new_ps_writer_with_output()
  20176. fz_new_pwg_writer_with_output()
  20177. This constructor takes ownership of <out> -
  20178. out.m_internal is set to NULL after this constructor
  20179. returns so <out> must not be used again.
  20180. |
  20181. *Overload 8:*
  20182. Constructor using one of:
  20183. fz_new_document_writer()
  20184. fz_new_text_writer()
  20185. |
  20186. *Overload 9:*
  20187. Constructor using fz_new_document_writer_with_output().
  20188. This constructor takes ownership of <out> -
  20189. out.m_internal is set to NULL after this constructor
  20190. returns so <out> must not be used again.
  20191. |
  20192. *Overload 10:*
  20193. Constructor using fz_new_text_writer_with_output().
  20194. This constructor takes ownership of <out> -
  20195. out.m_internal is set to NULL after this constructor
  20196. returns so <out> must not be used again.
  20197. |
  20198. *Overload 11:*
  20199. Default constructor, sets `m_internal` to null.
  20200. |
  20201. *Overload 12:*
  20202. Constructor using raw copy of pre-existing `::fz_document_writer`.
  20203. """
  20204. _mupdf.FzDocumentWriter_swiginit(self, _mupdf.new_FzDocumentWriter(*args))
  20205. __swig_destroy__ = _mupdf.delete_FzDocumentWriter
  20206. def m_internal_value(self):
  20207. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20208. return _mupdf.FzDocumentWriter_m_internal_value(self)
  20209. def __nonzero__(self):
  20210. return _mupdf.FzDocumentWriter___nonzero__(self)
  20211. __bool__ = __nonzero__
  20212. m_internal = property(_mupdf.FzDocumentWriter_m_internal_get, _mupdf.FzDocumentWriter_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20213. s_num_instances = property(_mupdf.FzDocumentWriter_s_num_instances_get, _mupdf.FzDocumentWriter_s_num_instances_set)
  20214. # Register FzDocumentWriter in _mupdf:
  20215. _mupdf.FzDocumentWriter_swigregister(FzDocumentWriter)
  20216. class FzDrawOptions(object):
  20217. r"""
  20218. Wrapper class for struct `fz_draw_options`. Not copyable or assignable.
  20219. struct fz_draw_options: Options for creating a pixmap and draw
  20220. device.
  20221. """
  20222. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20223. __repr__ = _swig_repr
  20224. def __init__(self, *args):
  20225. r"""
  20226. *Overload 1:*
  20227. == Constructors. Constructor using `fz_parse_draw_options()`.
  20228. Parse draw device options from a comma separated key-value string.
  20229. |
  20230. *Overload 2:*
  20231. Default constructor, sets each member to default value.
  20232. |
  20233. *Overload 3:*
  20234. Constructor using raw copy of pre-existing `::fz_draw_options`.
  20235. |
  20236. *Overload 4:*
  20237. Constructor using raw copy of pre-existing `::fz_draw_options`.
  20238. """
  20239. _mupdf.FzDrawOptions_swiginit(self, _mupdf.new_FzDrawOptions(*args))
  20240. def internal(self, *args):
  20241. r"""
  20242. *Overload 1:*
  20243. Access as underlying struct.
  20244. |
  20245. *Overload 2:*
  20246. Access as underlying struct.
  20247. """
  20248. return _mupdf.FzDrawOptions_internal(self, *args)
  20249. __swig_destroy__ = _mupdf.delete_FzDrawOptions
  20250. rotate = property(_mupdf.FzDrawOptions_rotate_get, _mupdf.FzDrawOptions_rotate_set)
  20251. x_resolution = property(_mupdf.FzDrawOptions_x_resolution_get, _mupdf.FzDrawOptions_x_resolution_set)
  20252. y_resolution = property(_mupdf.FzDrawOptions_y_resolution_get, _mupdf.FzDrawOptions_y_resolution_set)
  20253. width = property(_mupdf.FzDrawOptions_width_get, _mupdf.FzDrawOptions_width_set)
  20254. height = property(_mupdf.FzDrawOptions_height_get, _mupdf.FzDrawOptions_height_set)
  20255. colorspace = property(_mupdf.FzDrawOptions_colorspace_get, _mupdf.FzDrawOptions_colorspace_set)
  20256. alpha = property(_mupdf.FzDrawOptions_alpha_get, _mupdf.FzDrawOptions_alpha_set)
  20257. graphics = property(_mupdf.FzDrawOptions_graphics_get, _mupdf.FzDrawOptions_graphics_set)
  20258. text = property(_mupdf.FzDrawOptions_text_get, _mupdf.FzDrawOptions_text_set)
  20259. s_num_instances = property(_mupdf.FzDrawOptions_s_num_instances_get, _mupdf.FzDrawOptions_s_num_instances_set)
  20260. def to_string(self):
  20261. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  20262. return _mupdf.FzDrawOptions_to_string(self)
  20263. def __eq__(self, rhs):
  20264. r"""Comparison method."""
  20265. return _mupdf.FzDrawOptions___eq__(self, rhs)
  20266. def __ne__(self, rhs):
  20267. r"""Comparison method."""
  20268. return _mupdf.FzDrawOptions___ne__(self, rhs)
  20269. # Register FzDrawOptions in _mupdf:
  20270. _mupdf.FzDrawOptions_swigregister(FzDrawOptions)
  20271. class FzErrorContext(object):
  20272. r"""Wrapper class for struct `fz_error_context`. Not copyable or assignable."""
  20273. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20274. __repr__ = _swig_repr
  20275. def __init__(self, *args):
  20276. r"""
  20277. *Overload 1:*
  20278. Default constructor, sets `m_internal` to null.
  20279. |
  20280. *Overload 2:*
  20281. Constructor using raw copy of pre-existing `::fz_error_context`.
  20282. """
  20283. _mupdf.FzErrorContext_swiginit(self, _mupdf.new_FzErrorContext(*args))
  20284. __swig_destroy__ = _mupdf.delete_FzErrorContext
  20285. def m_internal_value(self):
  20286. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20287. return _mupdf.FzErrorContext_m_internal_value(self)
  20288. def __nonzero__(self):
  20289. return _mupdf.FzErrorContext___nonzero__(self)
  20290. __bool__ = __nonzero__
  20291. m_internal = property(_mupdf.FzErrorContext_m_internal_get, _mupdf.FzErrorContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20292. s_num_instances = property(_mupdf.FzErrorContext_s_num_instances_get, _mupdf.FzErrorContext_s_num_instances_set)
  20293. # Register FzErrorContext in _mupdf:
  20294. _mupdf.FzErrorContext_swigregister(FzErrorContext)
  20295. class FzErrorStackSlot(object):
  20296. r"""Wrapper class for struct `fz_error_stack_slot`. Not copyable or assignable."""
  20297. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20298. __repr__ = _swig_repr
  20299. def __init__(self, *args):
  20300. r"""
  20301. *Overload 1:*
  20302. Default constructor, sets `m_internal` to null.
  20303. |
  20304. *Overload 2:*
  20305. Constructor using raw copy of pre-existing `::fz_error_stack_slot`.
  20306. """
  20307. _mupdf.FzErrorStackSlot_swiginit(self, _mupdf.new_FzErrorStackSlot(*args))
  20308. __swig_destroy__ = _mupdf.delete_FzErrorStackSlot
  20309. def m_internal_value(self):
  20310. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20311. return _mupdf.FzErrorStackSlot_m_internal_value(self)
  20312. def __nonzero__(self):
  20313. return _mupdf.FzErrorStackSlot___nonzero__(self)
  20314. __bool__ = __nonzero__
  20315. m_internal = property(_mupdf.FzErrorStackSlot_m_internal_get, _mupdf.FzErrorStackSlot_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20316. s_num_instances = property(_mupdf.FzErrorStackSlot_s_num_instances_get, _mupdf.FzErrorStackSlot_s_num_instances_set)
  20317. # Register FzErrorStackSlot in _mupdf:
  20318. _mupdf.FzErrorStackSlot_swigregister(FzErrorStackSlot)
  20319. class FzFont(object):
  20320. r"""
  20321. Wrapper class for struct `fz_font`.
  20322. An abstract font handle.
  20323. """
  20324. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20325. __repr__ = _swig_repr
  20326. def fz_advance_glyph(self, glyph, wmode):
  20327. r"""
  20328. Class-aware wrapper for `::fz_advance_glyph()`.
  20329. Return the advance for a given glyph.
  20330. font: The font to look for the glyph in.
  20331. glyph: The glyph to find the advance for.
  20332. wmode: 1 for vertical mode, 0 for horizontal.
  20333. Returns the advance for the glyph.
  20334. """
  20335. return _mupdf.FzFont_fz_advance_glyph(self, glyph, wmode)
  20336. def fz_bound_glyph(self, gid, trm):
  20337. r"""
  20338. Class-aware wrapper for `::fz_bound_glyph()`.
  20339. Return a bbox for a given glyph in a font.
  20340. font: The font to look for the glyph in.
  20341. gid: The glyph to bound.
  20342. trm: The matrix to apply to the glyph before bounding.
  20343. Returns rectangle by value containing the bounds of the given
  20344. glyph.
  20345. """
  20346. return _mupdf.FzFont_fz_bound_glyph(self, gid, trm)
  20347. def fz_calculate_font_ascender_descender(self):
  20348. r"""
  20349. Class-aware wrapper for `::fz_calculate_font_ascender_descender()`.
  20350. Ensure that a font has its ascender/descender values calculated
  20351. from the actual bbox of the glyphs.
  20352. Note, that we combine the declared values from the font (or the
  20353. default values if those are not present) with the actual bbox to
  20354. get the final result. So this can only cause ascender/descender
  20355. to move further apart!
  20356. """
  20357. return _mupdf.FzFont_fz_calculate_font_ascender_descender(self)
  20358. def fz_decouple_type3_font(self, t3doc):
  20359. r"""Class-aware wrapper for `::fz_decouple_type3_font()`."""
  20360. return _mupdf.FzFont_fz_decouple_type3_font(self, t3doc)
  20361. def fz_encode_character(self, unicode):
  20362. r"""
  20363. Class-aware wrapper for `::fz_encode_character()`.
  20364. Find the glyph id for a given unicode
  20365. character within a font.
  20366. font: The font to look for the unicode character in.
  20367. unicode: The unicode character to encode.
  20368. Returns the glyph id for the given unicode value, or 0 if
  20369. unknown.
  20370. """
  20371. return _mupdf.FzFont_fz_encode_character(self, unicode)
  20372. def fz_encode_character_by_glyph_name(self, glyphname):
  20373. r"""
  20374. Class-aware wrapper for `::fz_encode_character_by_glyph_name()`.
  20375. Encode character.
  20376. Either by direct lookup of glyphname within a font, or, failing
  20377. that, by mapping glyphname to unicode and thence to the glyph
  20378. index within the given font.
  20379. Returns zero for type3 fonts.
  20380. """
  20381. return _mupdf.FzFont_fz_encode_character_by_glyph_name(self, glyphname)
  20382. def fz_encode_character_sc(self, unicode):
  20383. r"""
  20384. Class-aware wrapper for `::fz_encode_character_sc()`.
  20385. Encode character, preferring small-caps variant if available.
  20386. font: The font to look for the unicode character in.
  20387. unicode: The unicode character to encode.
  20388. Returns the glyph id for the given unicode value, or 0 if
  20389. unknown.
  20390. """
  20391. return _mupdf.FzFont_fz_encode_character_sc(self, unicode)
  20392. def fz_encode_character_with_fallback(self, unicode, script, language, out_font):
  20393. r"""
  20394. Class-aware wrapper for `::fz_encode_character_with_fallback()`.
  20395. This method has out-params. Python/C# wrappers look like:
  20396. `fz_encode_character_with_fallback(int unicode, int script, int language, ::fz_font **out_font)` => `(int)`
  20397. Find the glyph id for
  20398. a given unicode character within a font, falling back to
  20399. an alternative if not found.
  20400. font: The font to look for the unicode character in.
  20401. unicode: The unicode character to encode.
  20402. script: The script in use.
  20403. language: The language in use.
  20404. out_font: The font handle in which the given glyph represents
  20405. the requested unicode character. The caller does not own the
  20406. reference it is passed, so should call fz_keep_font if it is
  20407. not simply to be used immediately.
  20408. Returns the glyph id for the given unicode value in the supplied
  20409. font (and sets *out_font to font) if it is present. Otherwise
  20410. an alternative fallback font (based on script/language) is
  20411. searched for. If the glyph is found therein, *out_font is set
  20412. to this reference, and the glyph reference is returned. If it
  20413. cannot be found anywhere, the function returns 0.
  20414. """
  20415. return _mupdf.FzFont_fz_encode_character_with_fallback(self, unicode, script, language, out_font)
  20416. def fz_enumerate_font_cmap(self, cb, opaque):
  20417. r"""
  20418. Class-aware wrapper for `::fz_enumerate_font_cmap()`.
  20419. Enumerate a cmap using a callback.
  20420. """
  20421. return _mupdf.FzFont_fz_enumerate_font_cmap(self, cb, opaque)
  20422. def fz_enumerate_font_cmap2(self):
  20423. r"""Class-aware wrapper for `::fz_enumerate_font_cmap2()`. SWIG-friendly wrapper for fz_enumerate_font_cmap()."""
  20424. return _mupdf.FzFont_fz_enumerate_font_cmap2(self)
  20425. def fz_extract_ttf_from_ttc(self):
  20426. r"""Class-aware wrapper for `::fz_extract_ttf_from_ttc()`."""
  20427. return _mupdf.FzFont_fz_extract_ttf_from_ttc(self)
  20428. def fz_font_ascender(self):
  20429. r"""
  20430. Class-aware wrapper for `::fz_font_ascender()`.
  20431. Retrieve font ascender in ems.
  20432. """
  20433. return _mupdf.FzFont_fz_font_ascender(self)
  20434. def fz_font_bbox(self):
  20435. r"""
  20436. Class-aware wrapper for `::fz_font_bbox()`.
  20437. Retrieve the font bbox.
  20438. font: The font to query.
  20439. Returns the font bbox by value; it is valid only if
  20440. fz_font_flags(font)->invalid_bbox is zero.
  20441. """
  20442. return _mupdf.FzFont_fz_font_bbox(self)
  20443. def fz_font_descender(self):
  20444. r"""
  20445. Class-aware wrapper for `::fz_font_descender()`.
  20446. Retrieve font descender in ems.
  20447. """
  20448. return _mupdf.FzFont_fz_font_descender(self)
  20449. def fz_font_digest(self, digest):
  20450. r"""
  20451. Class-aware wrapper for `::fz_font_digest()`.
  20452. Retrieve the MD5 digest for the font's data.
  20453. """
  20454. return _mupdf.FzFont_fz_font_digest(self, digest)
  20455. def fz_font_ft_face(self):
  20456. r"""
  20457. Class-aware wrapper for `::fz_font_ft_face()`.
  20458. Retrieve the FT_Face handle
  20459. for the font.
  20460. font: The font to query
  20461. Returns the FT_Face handle for the font, or NULL
  20462. if not a freetype handled font. (Cast to void *
  20463. to avoid nasty header exposure).
  20464. """
  20465. return _mupdf.FzFont_fz_font_ft_face(self)
  20466. def fz_font_is_bold(self):
  20467. r"""
  20468. Class-aware wrapper for `::fz_font_is_bold()`.
  20469. Query whether the font flags say that this font is bold.
  20470. """
  20471. return _mupdf.FzFont_fz_font_is_bold(self)
  20472. def fz_font_is_italic(self):
  20473. r"""
  20474. Class-aware wrapper for `::fz_font_is_italic()`.
  20475. Query whether the font flags say that this font is italic.
  20476. """
  20477. return _mupdf.FzFont_fz_font_is_italic(self)
  20478. def fz_font_is_monospaced(self):
  20479. r"""
  20480. Class-aware wrapper for `::fz_font_is_monospaced()`.
  20481. Query whether the font flags say that this font is monospaced.
  20482. """
  20483. return _mupdf.FzFont_fz_font_is_monospaced(self)
  20484. def fz_font_is_serif(self):
  20485. r"""
  20486. Class-aware wrapper for `::fz_font_is_serif()`.
  20487. Query whether the font flags say that this font is serif.
  20488. """
  20489. return _mupdf.FzFont_fz_font_is_serif(self)
  20490. def fz_font_name(self):
  20491. r"""
  20492. Class-aware wrapper for `::fz_font_name()`.
  20493. Retrieve a pointer to the name of the font.
  20494. font: The font to query.
  20495. Returns a pointer to an internal copy of the font name.
  20496. Will never be NULL, but may be the empty string.
  20497. """
  20498. return _mupdf.FzFont_fz_font_name(self)
  20499. def fz_font_t3_procs(self):
  20500. r"""
  20501. Class-aware wrapper for `::fz_font_t3_procs()`.
  20502. Retrieve the Type3 procs
  20503. for a font.
  20504. font: The font to query
  20505. Returns the t3_procs pointer. Will be NULL for a
  20506. non type-3 font.
  20507. """
  20508. return _mupdf.FzFont_fz_font_t3_procs(self)
  20509. def fz_get_glyph_name(self, glyph, buf, size):
  20510. r"""
  20511. Class-aware wrapper for `::fz_get_glyph_name()`.
  20512. Find the name of a glyph
  20513. font: The font to look for the glyph in.
  20514. glyph: The glyph id to look for.
  20515. buf: Pointer to a buffer for the name to be inserted into.
  20516. size: The size of the buffer.
  20517. If a font contains a name table, then the name of the glyph
  20518. will be returned in the supplied buffer. Otherwise a name
  20519. is synthesised. The name will be truncated to fit in
  20520. the buffer.
  20521. """
  20522. return _mupdf.FzFont_fz_get_glyph_name(self, glyph, buf, size)
  20523. def fz_get_glyph_name2(self, glyph):
  20524. r"""
  20525. Class-aware wrapper for `::fz_get_glyph_name2()`.
  20526. C++ alternative to fz_get_glyph_name() that returns information in a std::string.
  20527. """
  20528. return _mupdf.FzFont_fz_get_glyph_name2(self, glyph)
  20529. def fz_glyph_cacheable(self, gid):
  20530. r"""
  20531. Class-aware wrapper for `::fz_glyph_cacheable()`.
  20532. Determine if a given glyph in a font
  20533. is cacheable. Certain glyphs in a type 3 font cannot safely
  20534. be cached, as their appearance depends on the enclosing
  20535. graphic state.
  20536. font: The font to look for the glyph in.
  20537. gif: The glyph to query.
  20538. Returns non-zero if cacheable, 0 if not.
  20539. """
  20540. return _mupdf.FzFont_fz_glyph_cacheable(self, gid)
  20541. def fz_measure_string(self, trm, s, wmode, bidi_level, markup_dir, language):
  20542. r"""
  20543. Class-aware wrapper for `::fz_measure_string()`.
  20544. Measure the advance width of a UTF8 string should it be added to a text object.
  20545. This uses the same layout algorithms as fz_show_string, and can be used
  20546. to calculate text alignment adjustments.
  20547. """
  20548. return _mupdf.FzFont_fz_measure_string(self, trm, s, wmode, bidi_level, markup_dir, language)
  20549. def fz_outline_glyph(self, gid, ctm):
  20550. r"""
  20551. Class-aware wrapper for `::fz_outline_glyph()`.
  20552. Look a glyph up from a font, and return the outline of the
  20553. glyph using the given transform.
  20554. The caller owns the returned path, and so is responsible for
  20555. ensuring that it eventually gets dropped.
  20556. """
  20557. return _mupdf.FzFont_fz_outline_glyph(self, gid, ctm)
  20558. def fz_prepare_t3_glyph(self, gid):
  20559. r"""
  20560. Class-aware wrapper for `::fz_prepare_t3_glyph()`.
  20561. Force a type3 font to cache the displaylist for a given glyph
  20562. id.
  20563. This caching can involve reading the underlying file, so must
  20564. happen ahead of time, so we aren't suddenly forced to read the
  20565. file while playing a displaylist back.
  20566. """
  20567. return _mupdf.FzFont_fz_prepare_t3_glyph(self, gid)
  20568. def fz_render_glyph_pixmap(self, gid, ctm, scissor, aa):
  20569. r"""
  20570. Class-aware wrapper for `::fz_render_glyph_pixmap()`.
  20571. Create a pixmap containing a rendered glyph.
  20572. Lookup gid from font, clip it with scissor, and rendering it
  20573. with aa bits of antialiasing into a new pixmap.
  20574. The caller takes ownership of the pixmap and so must free it.
  20575. Note: This function is no longer used for normal rendering
  20576. operations, and is kept around just because we use it in the
  20577. app. It should be considered "at risk" of removal from the API.
  20578. """
  20579. return _mupdf.FzFont_fz_render_glyph_pixmap(self, gid, ctm, scissor, aa)
  20580. def fz_run_t3_glyph(self, gid, trm, dev):
  20581. r"""
  20582. Class-aware wrapper for `::fz_run_t3_glyph()`.
  20583. Run a glyph from a Type3 font to
  20584. a given device.
  20585. font: The font to find the glyph in.
  20586. gid: The glyph to run.
  20587. trm: The transform to apply.
  20588. dev: The device to render onto.
  20589. """
  20590. return _mupdf.FzFont_fz_run_t3_glyph(self, gid, trm, dev)
  20591. def fz_set_font_bbox(self, xmin, ymin, xmax, ymax):
  20592. r"""
  20593. Class-aware wrapper for `::fz_set_font_bbox()`.
  20594. Set the font bbox.
  20595. font: The font to set the bbox for.
  20596. xmin, ymin, xmax, ymax: The bounding box.
  20597. """
  20598. return _mupdf.FzFont_fz_set_font_bbox(self, xmin, ymin, xmax, ymax)
  20599. def fz_set_font_embedding(self, embed):
  20600. r"""
  20601. Class-aware wrapper for `::fz_set_font_embedding()`.
  20602. Control whether a given font should be embedded or not when writing.
  20603. """
  20604. return _mupdf.FzFont_fz_set_font_embedding(self, embed)
  20605. def pdf_font_writing_supported(self):
  20606. r"""Class-aware wrapper for `::pdf_font_writing_supported()`."""
  20607. return _mupdf.FzFont_pdf_font_writing_supported(self)
  20608. def pdf_layout_fit_text(self, lang, str, bounds):
  20609. r"""Class-aware wrapper for `::pdf_layout_fit_text()`."""
  20610. return _mupdf.FzFont_pdf_layout_fit_text(self, lang, str, bounds)
  20611. def __init__(self, *args):
  20612. r"""
  20613. *Overload 1:*
  20614. == Constructors. Constructor using `fz_new_base14_font()`.
  20615. Create a new font from one of the built-in fonts.
  20616. |
  20617. *Overload 2:*
  20618. Constructor using `fz_new_builtin_font()`.
  20619. |
  20620. *Overload 3:*
  20621. Constructor using `fz_new_cjk_font()`.
  20622. |
  20623. *Overload 4:*
  20624. Constructor using `fz_new_font_from_buffer()`.
  20625. Create a new font from a font file in a fz_buffer.
  20626. Fonts created in this way, will be eligible for embedding by default.
  20627. name: Name of font (leave NULL to use name from font).
  20628. buffer: Buffer to load from.
  20629. index: Which font from the file to load (0 for default).
  20630. use_glyph_box: 1 if we should use the glyph bbox, 0 otherwise.
  20631. Returns new font handle, or throws exception on error.
  20632. |
  20633. *Overload 5:*
  20634. Constructor using `fz_new_font_from_file()`.
  20635. Create a new font from a font file.
  20636. Fonts created in this way, will be eligible for embedding by default.
  20637. name: Name of font (leave NULL to use name from font).
  20638. path: File path to load from.
  20639. index: Which font from the file to load (0 for default).
  20640. use_glyph_box: 1 if we should use the glyph bbox, 0 otherwise.
  20641. Returns new font handle, or throws exception on error.
  20642. |
  20643. *Overload 6:*
  20644. Constructor using `fz_new_font_from_memory()`.
  20645. Create a new font from a font file in memory.
  20646. Fonts created in this way, will be eligible for embedding by default.
  20647. name: Name of font (leave NULL to use name from font).
  20648. data: Pointer to the font file data.
  20649. len: Length of the font file data.
  20650. index: Which font from the file to load (0 for default).
  20651. use_glyph_box: 1 if we should use the glyph bbox, 0 otherwise.
  20652. Returns new font handle, or throws exception on error.
  20653. |
  20654. *Overload 7:*
  20655. Constructor using `fz_new_type3_font()`.
  20656. Create a new (empty) type3 font.
  20657. name: Name of font (or NULL).
  20658. matrix: Font matrix.
  20659. Returns a new font handle, or throws exception on
  20660. allocation failure.
  20661. |
  20662. *Overload 8:*
  20663. Copy constructor using `fz_keep_font()`.
  20664. |
  20665. *Overload 9:*
  20666. Default constructor, sets `m_internal` to null.
  20667. |
  20668. *Overload 10:*
  20669. Constructor using raw copy of pre-existing `::fz_font`.
  20670. """
  20671. _mupdf.FzFont_swiginit(self, _mupdf.new_FzFont(*args))
  20672. __swig_destroy__ = _mupdf.delete_FzFont
  20673. def m_internal_value(self):
  20674. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20675. return _mupdf.FzFont_m_internal_value(self)
  20676. def __nonzero__(self):
  20677. return _mupdf.FzFont___nonzero__(self)
  20678. __bool__ = __nonzero__
  20679. m_internal = property(_mupdf.FzFont_m_internal_get, _mupdf.FzFont_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20680. s_num_instances = property(_mupdf.FzFont_s_num_instances_get, _mupdf.FzFont_s_num_instances_set)
  20681. # Register FzFont in _mupdf:
  20682. _mupdf.FzFont_swigregister(FzFont)
  20683. class FzFontContext(object):
  20684. r"""Wrapper class for struct `fz_font_context`. Not copyable or assignable."""
  20685. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20686. __repr__ = _swig_repr
  20687. def __init__(self, *args):
  20688. r"""
  20689. *Overload 1:*
  20690. Default constructor, sets `m_internal` to null.
  20691. |
  20692. *Overload 2:*
  20693. Constructor using raw copy of pre-existing `::fz_font_context`.
  20694. """
  20695. _mupdf.FzFontContext_swiginit(self, _mupdf.new_FzFontContext(*args))
  20696. __swig_destroy__ = _mupdf.delete_FzFontContext
  20697. def m_internal_value(self):
  20698. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20699. return _mupdf.FzFontContext_m_internal_value(self)
  20700. def __nonzero__(self):
  20701. return _mupdf.FzFontContext___nonzero__(self)
  20702. __bool__ = __nonzero__
  20703. m_internal = property(_mupdf.FzFontContext_m_internal_get, _mupdf.FzFontContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20704. s_num_instances = property(_mupdf.FzFontContext_s_num_instances_get, _mupdf.FzFontContext_s_num_instances_set)
  20705. # Register FzFontContext in _mupdf:
  20706. _mupdf.FzFontContext_swigregister(FzFontContext)
  20707. class FzFontFlagsT(object):
  20708. r"""
  20709. Wrapper class for struct `fz_font_flags_t`. Not copyable or assignable.
  20710. Every fz_font carries a set of flags
  20711. within it, in a fz_font_flags_t structure.
  20712. """
  20713. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20714. __repr__ = _swig_repr
  20715. def __init__(self, *args):
  20716. r"""
  20717. *Overload 1:*
  20718. Default constructor, sets `m_internal` to null.
  20719. |
  20720. *Overload 2:*
  20721. Constructor using raw copy of pre-existing `::fz_font_flags_t`.
  20722. """
  20723. _mupdf.FzFontFlagsT_swiginit(self, _mupdf.new_FzFontFlagsT(*args))
  20724. __swig_destroy__ = _mupdf.delete_FzFontFlagsT
  20725. def m_internal_value(self):
  20726. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20727. return _mupdf.FzFontFlagsT_m_internal_value(self)
  20728. def __nonzero__(self):
  20729. return _mupdf.FzFontFlagsT___nonzero__(self)
  20730. __bool__ = __nonzero__
  20731. m_internal = property(_mupdf.FzFontFlagsT_m_internal_get, _mupdf.FzFontFlagsT_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20732. s_num_instances = property(_mupdf.FzFontFlagsT_s_num_instances_get, _mupdf.FzFontFlagsT_s_num_instances_set)
  20733. # Register FzFontFlagsT in _mupdf:
  20734. _mupdf.FzFontFlagsT_swigregister(FzFontFlagsT)
  20735. class FzFunction(object):
  20736. r"""Wrapper class for struct `fz_function`."""
  20737. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20738. __repr__ = _swig_repr
  20739. def fz_eval_function(self, _in, inlen, out, outlen):
  20740. r"""
  20741. Class-aware wrapper for `::fz_eval_function()`.
  20742. This method has out-params. Python/C# wrappers look like:
  20743. `fz_eval_function(const float *in, int inlen, int outlen)` => float out
  20744. """
  20745. return _mupdf.FzFunction_fz_eval_function(self, _in, inlen, out, outlen)
  20746. def fz_function_size(self):
  20747. r"""Class-aware wrapper for `::fz_function_size()`."""
  20748. return _mupdf.FzFunction_fz_function_size(self)
  20749. def __init__(self, *args):
  20750. r"""
  20751. *Overload 1:*
  20752. == Constructors. Constructor using `fz_new_function_of_size()`.
  20753. |
  20754. *Overload 2:*
  20755. Copy constructor using `fz_keep_function()`.
  20756. |
  20757. *Overload 3:*
  20758. Default constructor, sets `m_internal` to null.
  20759. |
  20760. *Overload 4:*
  20761. Constructor using raw copy of pre-existing `::fz_function`.
  20762. """
  20763. _mupdf.FzFunction_swiginit(self, _mupdf.new_FzFunction(*args))
  20764. __swig_destroy__ = _mupdf.delete_FzFunction
  20765. def m_internal_value(self):
  20766. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20767. return _mupdf.FzFunction_m_internal_value(self)
  20768. def __nonzero__(self):
  20769. return _mupdf.FzFunction___nonzero__(self)
  20770. __bool__ = __nonzero__
  20771. m_internal = property(_mupdf.FzFunction_m_internal_get, _mupdf.FzFunction_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20772. s_num_instances = property(_mupdf.FzFunction_s_num_instances_get, _mupdf.FzFunction_s_num_instances_set)
  20773. # Register FzFunction in _mupdf:
  20774. _mupdf.FzFunction_swigregister(FzFunction)
  20775. class FzGetoptLongOptions(object):
  20776. r"""Wrapper class for struct `fz_getopt_long_options`. Not copyable or assignable."""
  20777. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20778. __repr__ = _swig_repr
  20779. def __init__(self, *args):
  20780. r"""
  20781. *Overload 1:*
  20782. Default constructor, sets `m_internal` to null.
  20783. |
  20784. *Overload 2:*
  20785. Constructor using raw copy of pre-existing `::fz_getopt_long_options`.
  20786. """
  20787. _mupdf.FzGetoptLongOptions_swiginit(self, _mupdf.new_FzGetoptLongOptions(*args))
  20788. __swig_destroy__ = _mupdf.delete_FzGetoptLongOptions
  20789. def m_internal_value(self):
  20790. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20791. return _mupdf.FzGetoptLongOptions_m_internal_value(self)
  20792. def __nonzero__(self):
  20793. return _mupdf.FzGetoptLongOptions___nonzero__(self)
  20794. __bool__ = __nonzero__
  20795. m_internal = property(_mupdf.FzGetoptLongOptions_m_internal_get, _mupdf.FzGetoptLongOptions_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20796. s_num_instances = property(_mupdf.FzGetoptLongOptions_s_num_instances_get, _mupdf.FzGetoptLongOptions_s_num_instances_set)
  20797. # Register FzGetoptLongOptions in _mupdf:
  20798. _mupdf.FzGetoptLongOptions_swigregister(FzGetoptLongOptions)
  20799. class FzGlyph(object):
  20800. r"""
  20801. Wrapper class for struct `fz_glyph`.
  20802. Glyphs represent a run length encoded set of pixels for a 2
  20803. dimensional region of a plane.
  20804. """
  20805. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20806. __repr__ = _swig_repr
  20807. def fz_glyph_bbox(self):
  20808. r"""
  20809. Class-aware wrapper for `::fz_glyph_bbox()`.
  20810. Return the bounding box of the glyph in pixels.
  20811. """
  20812. return _mupdf.FzGlyph_fz_glyph_bbox(self)
  20813. def fz_glyph_bbox_no_ctx(self):
  20814. r"""Class-aware wrapper for `::fz_glyph_bbox_no_ctx()`."""
  20815. return _mupdf.FzGlyph_fz_glyph_bbox_no_ctx(self)
  20816. def fz_glyph_height(self):
  20817. r"""
  20818. Class-aware wrapper for `::fz_glyph_height()`.
  20819. Return the height of the glyph in pixels.
  20820. """
  20821. return _mupdf.FzGlyph_fz_glyph_height(self)
  20822. def fz_glyph_width(self):
  20823. r"""
  20824. Class-aware wrapper for `::fz_glyph_width()`.
  20825. Return the width of the glyph in pixels.
  20826. """
  20827. return _mupdf.FzGlyph_fz_glyph_width(self)
  20828. def __init__(self, *args):
  20829. r"""
  20830. *Overload 1:*
  20831. Copy constructor using `fz_keep_glyph()`.
  20832. |
  20833. *Overload 2:*
  20834. Default constructor, sets `m_internal` to null.
  20835. |
  20836. *Overload 3:*
  20837. Constructor using raw copy of pre-existing `::fz_glyph`.
  20838. """
  20839. _mupdf.FzGlyph_swiginit(self, _mupdf.new_FzGlyph(*args))
  20840. __swig_destroy__ = _mupdf.delete_FzGlyph
  20841. def m_internal_value(self):
  20842. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20843. return _mupdf.FzGlyph_m_internal_value(self)
  20844. def __nonzero__(self):
  20845. return _mupdf.FzGlyph___nonzero__(self)
  20846. __bool__ = __nonzero__
  20847. m_internal = property(_mupdf.FzGlyph_m_internal_get, _mupdf.FzGlyph_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20848. s_num_instances = property(_mupdf.FzGlyph_s_num_instances_get, _mupdf.FzGlyph_s_num_instances_set)
  20849. # Register FzGlyph in _mupdf:
  20850. _mupdf.FzGlyph_swigregister(FzGlyph)
  20851. class FzGlyphCache(object):
  20852. r"""Wrapper class for struct `fz_glyph_cache`. Not copyable or assignable."""
  20853. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20854. __repr__ = _swig_repr
  20855. def __init__(self, *args):
  20856. r"""
  20857. *Overload 1:*
  20858. Default constructor, sets `m_internal` to null.
  20859. |
  20860. *Overload 2:*
  20861. Constructor using raw copy of pre-existing `::fz_glyph_cache`.
  20862. """
  20863. _mupdf.FzGlyphCache_swiginit(self, _mupdf.new_FzGlyphCache(*args))
  20864. __swig_destroy__ = _mupdf.delete_FzGlyphCache
  20865. def m_internal_value(self):
  20866. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20867. return _mupdf.FzGlyphCache_m_internal_value(self)
  20868. def __nonzero__(self):
  20869. return _mupdf.FzGlyphCache___nonzero__(self)
  20870. __bool__ = __nonzero__
  20871. m_internal = property(_mupdf.FzGlyphCache_m_internal_get, _mupdf.FzGlyphCache_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20872. s_num_instances = property(_mupdf.FzGlyphCache_s_num_instances_get, _mupdf.FzGlyphCache_s_num_instances_set)
  20873. # Register FzGlyphCache in _mupdf:
  20874. _mupdf.FzGlyphCache_swigregister(FzGlyphCache)
  20875. class FzHalftone(object):
  20876. r"""
  20877. Wrapper class for struct `fz_halftone`.
  20878. A halftone is a set of threshold tiles, one per component. Each
  20879. threshold tile is a pixmap, possibly of varying sizes and
  20880. phases. Currently, we only provide one 'default' halftone tile
  20881. for operating on 1 component plus alpha pixmaps (where the alpha
  20882. is ignored). This is signified by a fz_halftone pointer to NULL.
  20883. """
  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. Copy constructor using `fz_keep_halftone()`.
  20890. |
  20891. *Overload 2:*
  20892. Constructor using raw copy of pre-existing `::fz_halftone`.
  20893. |
  20894. *Overload 3:*
  20895. Constructor using raw copy of pre-existing `::fz_halftone`.
  20896. """
  20897. _mupdf.FzHalftone_swiginit(self, _mupdf.new_FzHalftone(*args))
  20898. __swig_destroy__ = _mupdf.delete_FzHalftone
  20899. def m_internal_value(self):
  20900. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20901. return _mupdf.FzHalftone_m_internal_value(self)
  20902. def __nonzero__(self):
  20903. return _mupdf.FzHalftone___nonzero__(self)
  20904. __bool__ = __nonzero__
  20905. m_internal = property(_mupdf.FzHalftone_m_internal_get, _mupdf.FzHalftone_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20906. s_num_instances = property(_mupdf.FzHalftone_s_num_instances_get, _mupdf.FzHalftone_s_num_instances_set)
  20907. # Register FzHalftone in _mupdf:
  20908. _mupdf.FzHalftone_swigregister(FzHalftone)
  20909. class FzHashTable(object):
  20910. r"""
  20911. Wrapper class for struct `fz_hash_table`. Not copyable or assignable.
  20912. Generic hash-table with fixed-length keys.
  20913. The keys and values are NOT reference counted by the hash table.
  20914. Callers are responsible for taking care the reference counts are
  20915. correct. Inserting a duplicate entry will NOT overwrite the old
  20916. value, and will return the old value.
  20917. The drop_val callback function is only used to release values
  20918. when the hash table is destroyed.
  20919. """
  20920. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20921. __repr__ = _swig_repr
  20922. def fz_hash_filter(self, state, callback):
  20923. r"""
  20924. Class-aware wrapper for `::fz_hash_filter()`.
  20925. Iterate over the entries in a hash table, removing all the ones where callback returns true.
  20926. Does NOT free the value of the entry, so the caller is expected to take care of this.
  20927. """
  20928. return _mupdf.FzHashTable_fz_hash_filter(self, state, callback)
  20929. def fz_hash_find(self, key):
  20930. r"""
  20931. Class-aware wrapper for `::fz_hash_find()`.
  20932. Search for a matching hash within the table, and return the
  20933. associated value.
  20934. """
  20935. return _mupdf.FzHashTable_fz_hash_find(self, key)
  20936. def fz_hash_for_each(self, state, callback):
  20937. r"""
  20938. Class-aware wrapper for `::fz_hash_for_each()`.
  20939. Iterate over the entries in a hash table.
  20940. """
  20941. return _mupdf.FzHashTable_fz_hash_for_each(self, state, callback)
  20942. def fz_hash_insert(self, key, val):
  20943. r"""
  20944. Class-aware wrapper for `::fz_hash_insert()`.
  20945. Insert a new key/value pair into the hash table.
  20946. If an existing entry with the same key is found, no change is
  20947. made to the hash table, and a pointer to the existing value is
  20948. returned.
  20949. If no existing entry with the same key is found, ownership of
  20950. val passes in, key is copied, and NULL is returned.
  20951. """
  20952. return _mupdf.FzHashTable_fz_hash_insert(self, key, val)
  20953. def fz_hash_remove(self, key):
  20954. r"""
  20955. Class-aware wrapper for `::fz_hash_remove()`.
  20956. Remove the entry for a given key.
  20957. The value is NOT freed, so the caller is expected to take care
  20958. of this.
  20959. """
  20960. return _mupdf.FzHashTable_fz_hash_remove(self, key)
  20961. def __init__(self, *args):
  20962. r"""
  20963. *Overload 1:*
  20964. == Constructors. Constructor using `fz_new_hash_table()`.
  20965. Create a new hash table.
  20966. initialsize: The initial size of the hashtable. The hashtable
  20967. may grow (double in size) if it starts to get crowded (80%
  20968. full).
  20969. keylen: byte length for each key.
  20970. lock: -1 for no lock, otherwise the FZ_LOCK to use to protect
  20971. this table.
  20972. drop_val: Function to use to destroy values on table drop.
  20973. |
  20974. *Overload 2:*
  20975. Default constructor, sets `m_internal` to null.
  20976. |
  20977. *Overload 3:*
  20978. Constructor using raw copy of pre-existing `::fz_hash_table`.
  20979. """
  20980. _mupdf.FzHashTable_swiginit(self, _mupdf.new_FzHashTable(*args))
  20981. __swig_destroy__ = _mupdf.delete_FzHashTable
  20982. def m_internal_value(self):
  20983. r"""Return numerical value of .m_internal; helps with Python debugging."""
  20984. return _mupdf.FzHashTable_m_internal_value(self)
  20985. def __nonzero__(self):
  20986. return _mupdf.FzHashTable___nonzero__(self)
  20987. __bool__ = __nonzero__
  20988. m_internal = property(_mupdf.FzHashTable_m_internal_get, _mupdf.FzHashTable_m_internal_set, doc=r"""Pointer to wrapped data.""")
  20989. s_num_instances = property(_mupdf.FzHashTable_s_num_instances_get, _mupdf.FzHashTable_s_num_instances_set)
  20990. # Register FzHashTable in _mupdf:
  20991. _mupdf.FzHashTable_swigregister(FzHashTable)
  20992. class FzIccProfile(object):
  20993. r"""
  20994. Wrapper class for struct `fz_icc_profile`. Not copyable or assignable.
  20995. Opaque type for an ICC Profile.
  20996. """
  20997. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  20998. __repr__ = _swig_repr
  20999. def __init__(self, *args):
  21000. r"""
  21001. *Overload 1:*
  21002. Default constructor, sets `m_internal` to null.
  21003. |
  21004. *Overload 2:*
  21005. Constructor using raw copy of pre-existing `::fz_icc_profile`.
  21006. """
  21007. _mupdf.FzIccProfile_swiginit(self, _mupdf.new_FzIccProfile(*args))
  21008. __swig_destroy__ = _mupdf.delete_FzIccProfile
  21009. def m_internal_value(self):
  21010. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21011. return _mupdf.FzIccProfile_m_internal_value(self)
  21012. def __nonzero__(self):
  21013. return _mupdf.FzIccProfile___nonzero__(self)
  21014. __bool__ = __nonzero__
  21015. m_internal = property(_mupdf.FzIccProfile_m_internal_get, _mupdf.FzIccProfile_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21016. s_num_instances = property(_mupdf.FzIccProfile_s_num_instances_get, _mupdf.FzIccProfile_s_num_instances_set)
  21017. # Register FzIccProfile in _mupdf:
  21018. _mupdf.FzIccProfile_swigregister(FzIccProfile)
  21019. class FzImage(object):
  21020. r"""
  21021. Wrapper class for struct `fz_image`.
  21022. Images are storable objects from which we can obtain fz_pixmaps.
  21023. These may be implemented as simple wrappers around a pixmap, or
  21024. as more complex things that decode at different subsample
  21025. settings on demand.
  21026. """
  21027. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21028. __repr__ = _swig_repr
  21029. def fz_compressed_image_buffer(self):
  21030. r"""
  21031. Class-aware wrapper for `::fz_compressed_image_buffer()`.
  21032. Retrieve the underlying compressed data for an image.
  21033. Returns a pointer to the underlying data buffer for an image,
  21034. or NULL if this image is not based upon a compressed data
  21035. buffer.
  21036. This is not a reference counted structure, so no reference is
  21037. returned. Lifespan is limited to that of the image itself.
  21038. """
  21039. return _mupdf.FzImage_fz_compressed_image_buffer(self)
  21040. def fz_compressed_image_type(self):
  21041. r"""
  21042. Class-aware wrapper for `::fz_compressed_image_type()`.
  21043. Return the type of a compressed image.
  21044. Any non-compressed image will have the type returned as UNKNOWN.
  21045. """
  21046. return _mupdf.FzImage_fz_compressed_image_type(self)
  21047. def fz_get_pixmap_from_image(self, subarea, ctm, w, h):
  21048. r"""
  21049. Class-aware wrapper for `::fz_get_pixmap_from_image()`.
  21050. This method has out-params. Python/C# wrappers look like:
  21051. `fz_get_pixmap_from_image(const ::fz_irect *subarea, ::fz_matrix *ctm)` => `(fz_pixmap *, int w, int h)`
  21052. Called to get a handle to a pixmap from an image.
  21053. image: The image to retrieve a pixmap from.
  21054. subarea: The subarea of the image that we actually care about
  21055. (or NULL to indicate the whole image).
  21056. ctm: Optional, unless subarea is given. If given, then on
  21057. entry this is the transform that will be applied to the complete
  21058. image. It should be updated on exit to the transform to apply to
  21059. the given subarea of the image. This is used to calculate the
  21060. desired width/height for subsampling.
  21061. w: If non-NULL, a pointer to an int to be updated on exit to the
  21062. width (in pixels) that the scaled output will cover.
  21063. h: If non-NULL, a pointer to an int to be updated on exit to the
  21064. height (in pixels) that the scaled output will cover.
  21065. Returns a non NULL kept pixmap pointer. May throw exceptions.
  21066. """
  21067. return _mupdf.FzImage_fz_get_pixmap_from_image(self, subarea, ctm, w, h)
  21068. def fz_get_unscaled_pixmap_from_image(self):
  21069. r"""
  21070. Class-aware wrapper for `::fz_get_unscaled_pixmap_from_image()`.
  21071. Calls fz_get_pixmap_from_image() with ctm, subarea, w and h all set to NULL.
  21072. """
  21073. return _mupdf.FzImage_fz_get_unscaled_pixmap_from_image(self)
  21074. def fz_image_orientation(self):
  21075. r"""
  21076. Class-aware wrapper for `::fz_image_orientation()`.
  21077. Request the natural orientation of an image.
  21078. This is for images (such as JPEG) that can contain internal
  21079. specifications of rotation/flips. This is ignored by all the
  21080. internal decode/rendering routines, but can be used by callers
  21081. (such as the image document handler) to respect such
  21082. specifications.
  21083. The values used by MuPDF are as follows, with the equivalent
  21084. Exif specifications given for information:
  21085. 0: Undefined
  21086. 1: 0 degree ccw rotation. (Exif = 1)
  21087. 2: 90 degree ccw rotation. (Exif = 8)
  21088. 3: 180 degree ccw rotation. (Exif = 3)
  21089. 4: 270 degree ccw rotation. (Exif = 6)
  21090. 5: flip on X. (Exif = 2)
  21091. 6: flip on X, then rotate ccw by 90 degrees. (Exif = 5)
  21092. 7: flip on X, then rotate ccw by 180 degrees. (Exif = 4)
  21093. 8: flip on X, then rotate ccw by 270 degrees. (Exif = 7)
  21094. """
  21095. return _mupdf.FzImage_fz_image_orientation(self)
  21096. def fz_image_orientation_matrix(self):
  21097. r"""Class-aware wrapper for `::fz_image_orientation_matrix()`."""
  21098. return _mupdf.FzImage_fz_image_orientation_matrix(self)
  21099. def fz_image_resolution(self, xres, yres):
  21100. r"""
  21101. Class-aware wrapper for `::fz_image_resolution()`.
  21102. This method has out-params. Python/C# wrappers look like:
  21103. `fz_image_resolution()` => `(int xres, int yres)`
  21104. Request the natural resolution
  21105. of an image.
  21106. xres, yres: Pointers to ints to be updated with the
  21107. natural resolution of an image (or a sensible default
  21108. if not encoded).
  21109. """
  21110. return _mupdf.FzImage_fz_image_resolution(self, xres, yres)
  21111. def fz_image_size(self):
  21112. r"""
  21113. Class-aware wrapper for `::fz_image_size()`.
  21114. Return the size of the storage used by an image.
  21115. """
  21116. return _mupdf.FzImage_fz_image_size(self)
  21117. def fz_is_lossy_image(self):
  21118. r"""Class-aware wrapper for `::fz_is_lossy_image()`."""
  21119. return _mupdf.FzImage_fz_is_lossy_image(self)
  21120. def fz_new_bitmap_from_image(self, ht):
  21121. r"""
  21122. Class-aware wrapper for `::fz_new_bitmap_from_image()`.
  21123. Make a bitmap from a pixmap and a halftone.
  21124. img: The image to generate from. Currently must be a single
  21125. color component with no alpha.
  21126. ht: The halftone to use. NULL implies the default halftone.
  21127. Returns the resultant bitmap. Throws exceptions in the case of
  21128. failure to allocate.
  21129. """
  21130. return _mupdf.FzImage_fz_new_bitmap_from_image(self, ht)
  21131. def fz_new_buffer_from_image_as_jpeg(self, color_params, quality, invert_cmyk):
  21132. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_jpeg()`."""
  21133. return _mupdf.FzImage_fz_new_buffer_from_image_as_jpeg(self, color_params, quality, invert_cmyk)
  21134. def fz_new_buffer_from_image_as_jpx(self, color_params, quality):
  21135. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_jpx()`."""
  21136. return _mupdf.FzImage_fz_new_buffer_from_image_as_jpx(self, color_params, quality)
  21137. def fz_new_buffer_from_image_as_pam(self, color_params):
  21138. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pam()`."""
  21139. return _mupdf.FzImage_fz_new_buffer_from_image_as_pam(self, color_params)
  21140. def fz_new_buffer_from_image_as_pbm(self, color_params):
  21141. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pbm()`."""
  21142. return _mupdf.FzImage_fz_new_buffer_from_image_as_pbm(self, color_params)
  21143. def fz_new_buffer_from_image_as_pkm(self, color_params):
  21144. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pkm()`."""
  21145. return _mupdf.FzImage_fz_new_buffer_from_image_as_pkm(self, color_params)
  21146. def fz_new_buffer_from_image_as_png(self, color_params):
  21147. r"""
  21148. Class-aware wrapper for `::fz_new_buffer_from_image_as_png()`.
  21149. Re-encode a given image as a PNG into a buffer.
  21150. Ownership of the buffer is returned.
  21151. """
  21152. return _mupdf.FzImage_fz_new_buffer_from_image_as_png(self, color_params)
  21153. def fz_new_buffer_from_image_as_pnm(self, color_params):
  21154. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pnm()`."""
  21155. return _mupdf.FzImage_fz_new_buffer_from_image_as_pnm(self, color_params)
  21156. def fz_new_buffer_from_image_as_psd(self, color_params):
  21157. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_psd()`."""
  21158. return _mupdf.FzImage_fz_new_buffer_from_image_as_psd(self, color_params)
  21159. def __init__(self, *args):
  21160. r"""
  21161. *Overload 1:*
  21162. == Constructors. Constructor using `fz_new_barcode_image()`.
  21163. Create an fz_image from a barcode definition.
  21164. type: The type of barcode to create.
  21165. value: The value of the barcode.
  21166. size: The size of the barcode.
  21167. ec_level: error correction level 0-8.
  21168. quiet: whether to include quiet zones (0 or 1).
  21169. hrt: whether to include human readable text below the barcode (0 or 1).
  21170. returns a created fz_image.
  21171. |
  21172. *Overload 2:*
  21173. Constructor using `fz_new_image_from_buffer()`.
  21174. Create a new image from a
  21175. buffer of data, inferring its type from the format
  21176. of the data.
  21177. |
  21178. *Overload 3:*
  21179. Constructor using `fz_new_image_from_compressed_buffer()`.
  21180. Create an image based on
  21181. the data in the supplied compressed buffer.
  21182. w,h: Width and height of the created image.
  21183. bpc: Bits per component.
  21184. colorspace: The colorspace (determines the number of components,
  21185. and any color conversions required while decoding).
  21186. xres, yres: The X and Y resolutions respectively.
  21187. interpolate: 1 if interpolation should be used when decoding
  21188. this image, 0 otherwise.
  21189. imagemask: 1 if this is an imagemask (i.e. transparency bitmap
  21190. mask), 0 otherwise.
  21191. decode: NULL, or a pointer to to a decode array. The default
  21192. decode array is [0 1] (repeated n times, for n color components).
  21193. colorkey: NULL, or a pointer to a colorkey array. The default
  21194. colorkey array is [0 255] (repeated n times, for n color
  21195. components).
  21196. buffer: Buffer of compressed data and compression parameters.
  21197. Ownership of this reference is passed in.
  21198. mask: NULL, or another image to use as a mask for this one.
  21199. A new reference is taken to this image. Supplying a masked
  21200. image as a mask to another image is illegal!
  21201. |
  21202. *Overload 4:*
  21203. Constructor using `fz_new_image_from_compressed_buffer2()`. Swig-friendly wrapper for fz_new_image_from_compressed_buffer(),
  21204. uses specified `decode` and `colorkey` if they are not null (in which
  21205. case we assert that they have size `2*fz_colorspace_n(colorspace)`).
  21206. |
  21207. *Overload 5:*
  21208. Constructor using `fz_new_image_from_display_list()`.
  21209. Create a new image from a display list.
  21210. w, h: The conceptual width/height of the image.
  21211. transform: The matrix that needs to be applied to the given
  21212. list to make it render to the unit square.
  21213. list: The display list.
  21214. |
  21215. *Overload 6:*
  21216. Constructor using `fz_new_image_from_file()`.
  21217. Create a new image from the contents
  21218. of a file, inferring its type from the format of the
  21219. data.
  21220. |
  21221. *Overload 7:*
  21222. Constructor using `fz_new_image_from_pixmap()`.
  21223. Create an image from the given
  21224. pixmap.
  21225. pixmap: The pixmap to base the image upon. A new reference
  21226. to this is taken.
  21227. mask: NULL, or another image to use as a mask for this one.
  21228. A new reference is taken to this image. Supplying a masked
  21229. image as a mask to another image is illegal!
  21230. |
  21231. *Overload 8:*
  21232. Constructor using `fz_new_image_from_svg()`.
  21233. Create a scalable image from an SVG document.
  21234. |
  21235. *Overload 9:*
  21236. Constructor using `fz_new_image_from_svg_xml()`.
  21237. Create a scalable image from an SVG document.
  21238. |
  21239. *Overload 10:*
  21240. Constructor using `fz_new_image_of_size()`.
  21241. Internal function to make a new fz_image structure
  21242. for a derived class.
  21243. w,h: Width and height of the created image.
  21244. bpc: Bits per component.
  21245. colorspace: The colorspace (determines the number of components,
  21246. and any color conversions required while decoding).
  21247. xres, yres: The X and Y resolutions respectively.
  21248. interpolate: 1 if interpolation should be used when decoding
  21249. this image, 0 otherwise.
  21250. imagemask: 1 if this is an imagemask (i.e. transparent), 0
  21251. otherwise.
  21252. decode: NULL, or a pointer to to a decode array. The default
  21253. decode array is [0 1] (repeated n times, for n color components).
  21254. colorkey: NULL, or a pointer to a colorkey array. The default
  21255. colorkey array is [0 255] (repeated n times, for n color
  21256. components).
  21257. mask: NULL, or another image to use as a mask for this one.
  21258. A new reference is taken to this image. Supplying a masked
  21259. image as a mask to another image is illegal!
  21260. size: The size of the required allocated structure (the size of
  21261. the derived structure).
  21262. get: The function to be called to obtain a decoded pixmap.
  21263. get_size: The function to be called to return the storage size
  21264. used by this image.
  21265. drop: The function to be called to dispose of this image once
  21266. the last reference is dropped.
  21267. Returns a pointer to an allocated structure of the required size,
  21268. with the first sizeof(fz_image) bytes initialised as appropriate
  21269. given the supplied parameters, and the other bytes set to zero.
  21270. |
  21271. *Overload 11:*
  21272. Copy constructor using `fz_keep_image()`.
  21273. |
  21274. *Overload 12:*
  21275. Default constructor, sets `m_internal` to null.
  21276. |
  21277. *Overload 13:*
  21278. Constructor using raw copy of pre-existing `::fz_image`.
  21279. """
  21280. _mupdf.FzImage_swiginit(self, _mupdf.new_FzImage(*args))
  21281. def key_storable(self):
  21282. return _mupdf.FzImage_key_storable(self)
  21283. def w(self):
  21284. return _mupdf.FzImage_w(self)
  21285. def h(self):
  21286. return _mupdf.FzImage_h(self)
  21287. def n(self):
  21288. return _mupdf.FzImage_n(self)
  21289. def bpc(self):
  21290. return _mupdf.FzImage_bpc(self)
  21291. def imagemask(self):
  21292. return _mupdf.FzImage_imagemask(self)
  21293. def interpolate(self):
  21294. return _mupdf.FzImage_interpolate(self)
  21295. def use_colorkey(self):
  21296. return _mupdf.FzImage_use_colorkey(self)
  21297. def use_decode(self):
  21298. return _mupdf.FzImage_use_decode(self)
  21299. def decoded(self):
  21300. return _mupdf.FzImage_decoded(self)
  21301. def scalable(self):
  21302. return _mupdf.FzImage_scalable(self)
  21303. def intent(self):
  21304. return _mupdf.FzImage_intent(self)
  21305. def has_intent(self):
  21306. return _mupdf.FzImage_has_intent(self)
  21307. def orientation(self):
  21308. return _mupdf.FzImage_orientation(self)
  21309. def mask(self):
  21310. return _mupdf.FzImage_mask(self)
  21311. def xres(self):
  21312. return _mupdf.FzImage_xres(self)
  21313. def yres(self):
  21314. return _mupdf.FzImage_yres(self)
  21315. def colorspace(self):
  21316. return _mupdf.FzImage_colorspace(self)
  21317. def colorkey(self):
  21318. return _mupdf.FzImage_colorkey(self)
  21319. def decode(self):
  21320. return _mupdf.FzImage_decode(self)
  21321. __swig_destroy__ = _mupdf.delete_FzImage
  21322. def m_internal_value(self):
  21323. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21324. return _mupdf.FzImage_m_internal_value(self)
  21325. def __nonzero__(self):
  21326. return _mupdf.FzImage___nonzero__(self)
  21327. __bool__ = __nonzero__
  21328. m_internal = property(_mupdf.FzImage_m_internal_get, _mupdf.FzImage_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21329. s_num_instances = property(_mupdf.FzImage_s_num_instances_get, _mupdf.FzImage_s_num_instances_set)
  21330. # Register FzImage in _mupdf:
  21331. _mupdf.FzImage_swigregister(FzImage)
  21332. class FzInstallLoadSystemFontFuncsArgs(object):
  21333. r"""
  21334. Wrapper class for struct `fz_install_load_system_font_funcs_args`.
  21335. Extra struct containing fz_install_load_system_font_funcs()'s args,
  21336. which we wrap with virtual_fnptrs set to allow use from Python/C# via
  21337. Swig Directors.
  21338. """
  21339. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21340. __repr__ = _swig_repr
  21341. def fz_install_load_system_font_funcs2(self):
  21342. r"""
  21343. Class-aware wrapper for `::fz_install_load_system_font_funcs2()`.
  21344. Alternative to fz_install_load_system_font_funcs() that takes args in a
  21345. struct, to allow use from Python/C# via Swig Directors.
  21346. """
  21347. return _mupdf.FzInstallLoadSystemFontFuncsArgs_fz_install_load_system_font_funcs2(self)
  21348. def __init__(self, *args):
  21349. r"""
  21350. *Overload 1:*
  21351. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  21352. |
  21353. *Overload 2:*
  21354. Constructor using raw copy of pre-existing `::fz_install_load_system_font_funcs_args`.
  21355. """
  21356. _mupdf.FzInstallLoadSystemFontFuncsArgs_swiginit(self, _mupdf.new_FzInstallLoadSystemFontFuncsArgs(*args))
  21357. __swig_destroy__ = _mupdf.delete_FzInstallLoadSystemFontFuncsArgs
  21358. m_internal = property(_mupdf.FzInstallLoadSystemFontFuncsArgs_m_internal_get, _mupdf.FzInstallLoadSystemFontFuncsArgs_m_internal_set)
  21359. s_num_instances = property(_mupdf.FzInstallLoadSystemFontFuncsArgs_s_num_instances_get, _mupdf.FzInstallLoadSystemFontFuncsArgs_s_num_instances_set, doc=r"""Wrapped data is held by value.""")
  21360. def to_string(self):
  21361. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  21362. return _mupdf.FzInstallLoadSystemFontFuncsArgs_to_string(self)
  21363. def __eq__(self, rhs):
  21364. r"""Comparison method."""
  21365. return _mupdf.FzInstallLoadSystemFontFuncsArgs___eq__(self, rhs)
  21366. def __ne__(self, rhs):
  21367. r"""Comparison method."""
  21368. return _mupdf.FzInstallLoadSystemFontFuncsArgs___ne__(self, rhs)
  21369. # Register FzInstallLoadSystemFontFuncsArgs in _mupdf:
  21370. _mupdf.FzInstallLoadSystemFontFuncsArgs_swigregister(FzInstallLoadSystemFontFuncsArgs)
  21371. class FzInstallLoadSystemFontFuncsArgs2(FzInstallLoadSystemFontFuncsArgs):
  21372. 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."""
  21373. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21374. __repr__ = _swig_repr
  21375. def __init__(self):
  21376. r"""== Constructor."""
  21377. if self.__class__ == FzInstallLoadSystemFontFuncsArgs2:
  21378. _self = None
  21379. else:
  21380. _self = self
  21381. _mupdf.FzInstallLoadSystemFontFuncsArgs2_swiginit(self, _mupdf.new_FzInstallLoadSystemFontFuncsArgs2(_self, ))
  21382. __swig_destroy__ = _mupdf.delete_FzInstallLoadSystemFontFuncsArgs2
  21383. def use_virtual_f(self, use=True):
  21384. r"""
  21385. These methods set the function pointers in *m_internal
  21386. to point to internal callbacks that call our virtual methods.
  21387. """
  21388. return _mupdf.FzInstallLoadSystemFontFuncsArgs2_use_virtual_f(self, use)
  21389. def use_virtual_f_cjk(self, use=True):
  21390. return _mupdf.FzInstallLoadSystemFontFuncsArgs2_use_virtual_f_cjk(self, use)
  21391. def use_virtual_f_fallback(self, use=True):
  21392. return _mupdf.FzInstallLoadSystemFontFuncsArgs2_use_virtual_f_fallback(self, use)
  21393. def f(self, arg_0, arg_1, arg_2, arg_3, arg_4):
  21394. r"""Default virtual method implementations; these all throw an exception."""
  21395. return _mupdf.FzInstallLoadSystemFontFuncsArgs2_f(self, arg_0, arg_1, arg_2, arg_3, arg_4)
  21396. def f_cjk(self, arg_0, arg_1, arg_2, arg_3):
  21397. return _mupdf.FzInstallLoadSystemFontFuncsArgs2_f_cjk(self, arg_0, arg_1, arg_2, arg_3)
  21398. def f_fallback(self, arg_0, arg_1, arg_2, arg_3, arg_4, arg_5):
  21399. return _mupdf.FzInstallLoadSystemFontFuncsArgs2_f_fallback(self, arg_0, arg_1, arg_2, arg_3, arg_4, arg_5)
  21400. def __disown__(self):
  21401. self.this.disown()
  21402. _mupdf.disown_FzInstallLoadSystemFontFuncsArgs2(self)
  21403. return weakref.proxy(self)
  21404. # Register FzInstallLoadSystemFontFuncsArgs2 in _mupdf:
  21405. _mupdf.FzInstallLoadSystemFontFuncsArgs2_swigregister(FzInstallLoadSystemFontFuncsArgs2)
  21406. class FzInt2(object):
  21407. r"""Wrapper class for struct `fz_int2`. Not copyable or assignable."""
  21408. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21409. __repr__ = _swig_repr
  21410. def __init__(self, *args):
  21411. r"""
  21412. *Overload 1:*
  21413. Default constructor, sets `m_internal` to null.
  21414. |
  21415. *Overload 2:*
  21416. Constructor using raw copy of pre-existing `::fz_int2`.
  21417. """
  21418. _mupdf.FzInt2_swiginit(self, _mupdf.new_FzInt2(*args))
  21419. __swig_destroy__ = _mupdf.delete_FzInt2
  21420. def m_internal_value(self):
  21421. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21422. return _mupdf.FzInt2_m_internal_value(self)
  21423. def __nonzero__(self):
  21424. return _mupdf.FzInt2___nonzero__(self)
  21425. __bool__ = __nonzero__
  21426. m_internal = property(_mupdf.FzInt2_m_internal_get, _mupdf.FzInt2_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21427. s_num_instances = property(_mupdf.FzInt2_s_num_instances_get, _mupdf.FzInt2_s_num_instances_set)
  21428. # Register FzInt2 in _mupdf:
  21429. _mupdf.FzInt2_swigregister(FzInt2)
  21430. class FzInt2Heap(object):
  21431. r"""Wrapper class for struct `fz_int2_heap`. Not copyable or assignable."""
  21432. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21433. __repr__ = _swig_repr
  21434. def fz_int2_heap_debug(self):
  21435. r"""Class-aware wrapper for `::fz_int2_heap_debug()`."""
  21436. return _mupdf.FzInt2Heap_fz_int2_heap_debug(self)
  21437. def fz_int2_heap_insert(self, v):
  21438. r"""Class-aware wrapper for `::fz_int2_heap_insert()`."""
  21439. return _mupdf.FzInt2Heap_fz_int2_heap_insert(self, v)
  21440. def fz_int2_heap_sort(self):
  21441. r"""Class-aware wrapper for `::fz_int2_heap_sort()`."""
  21442. return _mupdf.FzInt2Heap_fz_int2_heap_sort(self)
  21443. def fz_int2_heap_uniq(self):
  21444. r"""Class-aware wrapper for `::fz_int2_heap_uniq()`."""
  21445. return _mupdf.FzInt2Heap_fz_int2_heap_uniq(self)
  21446. def __init__(self, *args):
  21447. r"""
  21448. *Overload 1:*
  21449. Default constructor, sets `m_internal` to null.
  21450. |
  21451. *Overload 2:*
  21452. Constructor using raw copy of pre-existing `::fz_int2_heap`.
  21453. """
  21454. _mupdf.FzInt2Heap_swiginit(self, _mupdf.new_FzInt2Heap(*args))
  21455. __swig_destroy__ = _mupdf.delete_FzInt2Heap
  21456. def m_internal_value(self):
  21457. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21458. return _mupdf.FzInt2Heap_m_internal_value(self)
  21459. def __nonzero__(self):
  21460. return _mupdf.FzInt2Heap___nonzero__(self)
  21461. __bool__ = __nonzero__
  21462. m_internal = property(_mupdf.FzInt2Heap_m_internal_get, _mupdf.FzInt2Heap_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21463. s_num_instances = property(_mupdf.FzInt2Heap_s_num_instances_get, _mupdf.FzInt2Heap_s_num_instances_set)
  21464. # Register FzInt2Heap in _mupdf:
  21465. _mupdf.FzInt2Heap_swigregister(FzInt2Heap)
  21466. class FzIntHeap(object):
  21467. r"""Wrapper class for struct `fz_int_heap`. Not copyable or assignable."""
  21468. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21469. __repr__ = _swig_repr
  21470. def fz_int_heap_debug(self):
  21471. r"""Class-aware wrapper for `::fz_int_heap_debug()`."""
  21472. return _mupdf.FzIntHeap_fz_int_heap_debug(self)
  21473. def fz_int_heap_insert(self, v):
  21474. r"""Class-aware wrapper for `::fz_int_heap_insert()`."""
  21475. return _mupdf.FzIntHeap_fz_int_heap_insert(self, v)
  21476. def fz_int_heap_sort(self):
  21477. r"""Class-aware wrapper for `::fz_int_heap_sort()`."""
  21478. return _mupdf.FzIntHeap_fz_int_heap_sort(self)
  21479. def fz_int_heap_uniq(self):
  21480. r"""Class-aware wrapper for `::fz_int_heap_uniq()`."""
  21481. return _mupdf.FzIntHeap_fz_int_heap_uniq(self)
  21482. def __init__(self, *args):
  21483. r"""
  21484. *Overload 1:*
  21485. Default constructor, sets `m_internal` to null.
  21486. |
  21487. *Overload 2:*
  21488. Constructor using raw copy of pre-existing `::fz_int_heap`.
  21489. """
  21490. _mupdf.FzIntHeap_swiginit(self, _mupdf.new_FzIntHeap(*args))
  21491. __swig_destroy__ = _mupdf.delete_FzIntHeap
  21492. def m_internal_value(self):
  21493. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21494. return _mupdf.FzIntHeap_m_internal_value(self)
  21495. def __nonzero__(self):
  21496. return _mupdf.FzIntHeap___nonzero__(self)
  21497. __bool__ = __nonzero__
  21498. m_internal = property(_mupdf.FzIntHeap_m_internal_get, _mupdf.FzIntHeap_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21499. s_num_instances = property(_mupdf.FzIntHeap_s_num_instances_get, _mupdf.FzIntHeap_s_num_instances_set)
  21500. # Register FzIntHeap in _mupdf:
  21501. _mupdf.FzIntHeap_swigregister(FzIntHeap)
  21502. class FzIntptr(object):
  21503. r"""Wrapper class for struct `fz_intptr`. Not copyable or assignable."""
  21504. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21505. __repr__ = _swig_repr
  21506. def __init__(self, *args):
  21507. r"""
  21508. *Overload 1:*
  21509. Default constructor, sets `m_internal` to null.
  21510. |
  21511. *Overload 2:*
  21512. Constructor using raw copy of pre-existing `::fz_intptr`.
  21513. """
  21514. _mupdf.FzIntptr_swiginit(self, _mupdf.new_FzIntptr(*args))
  21515. __swig_destroy__ = _mupdf.delete_FzIntptr
  21516. def m_internal_value(self):
  21517. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21518. return _mupdf.FzIntptr_m_internal_value(self)
  21519. def __nonzero__(self):
  21520. return _mupdf.FzIntptr___nonzero__(self)
  21521. __bool__ = __nonzero__
  21522. m_internal = property(_mupdf.FzIntptr_m_internal_get, _mupdf.FzIntptr_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21523. s_num_instances = property(_mupdf.FzIntptr_s_num_instances_get, _mupdf.FzIntptr_s_num_instances_set)
  21524. # Register FzIntptr in _mupdf:
  21525. _mupdf.FzIntptr_swigregister(FzIntptr)
  21526. class FzIntptrHeap(object):
  21527. r"""Wrapper class for struct `fz_intptr_heap`. Not copyable or assignable."""
  21528. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21529. __repr__ = _swig_repr
  21530. def fz_intptr_heap_debug(self):
  21531. r"""Class-aware wrapper for `::fz_intptr_heap_debug()`."""
  21532. return _mupdf.FzIntptrHeap_fz_intptr_heap_debug(self)
  21533. def fz_intptr_heap_insert(self, v):
  21534. r"""Class-aware wrapper for `::fz_intptr_heap_insert()`."""
  21535. return _mupdf.FzIntptrHeap_fz_intptr_heap_insert(self, v)
  21536. def fz_intptr_heap_sort(self):
  21537. r"""Class-aware wrapper for `::fz_intptr_heap_sort()`."""
  21538. return _mupdf.FzIntptrHeap_fz_intptr_heap_sort(self)
  21539. def fz_intptr_heap_uniq(self):
  21540. r"""Class-aware wrapper for `::fz_intptr_heap_uniq()`."""
  21541. return _mupdf.FzIntptrHeap_fz_intptr_heap_uniq(self)
  21542. def __init__(self, *args):
  21543. r"""
  21544. *Overload 1:*
  21545. Default constructor, sets `m_internal` to null.
  21546. |
  21547. *Overload 2:*
  21548. Constructor using raw copy of pre-existing `::fz_intptr_heap`.
  21549. """
  21550. _mupdf.FzIntptrHeap_swiginit(self, _mupdf.new_FzIntptrHeap(*args))
  21551. __swig_destroy__ = _mupdf.delete_FzIntptrHeap
  21552. def m_internal_value(self):
  21553. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21554. return _mupdf.FzIntptrHeap_m_internal_value(self)
  21555. def __nonzero__(self):
  21556. return _mupdf.FzIntptrHeap___nonzero__(self)
  21557. __bool__ = __nonzero__
  21558. m_internal = property(_mupdf.FzIntptrHeap_m_internal_get, _mupdf.FzIntptrHeap_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21559. s_num_instances = property(_mupdf.FzIntptrHeap_s_num_instances_get, _mupdf.FzIntptrHeap_s_num_instances_set)
  21560. # Register FzIntptrHeap in _mupdf:
  21561. _mupdf.FzIntptrHeap_swigregister(FzIntptrHeap)
  21562. class FzIrect(object):
  21563. r"""
  21564. Wrapper class for struct `fz_irect`.
  21565. fz_irect is a rectangle using integers instead of floats.
  21566. It's used in the draw device and for pixmap dimensions.
  21567. """
  21568. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21569. __repr__ = _swig_repr
  21570. def fz_expand_irect(self, expand):
  21571. r"""Class-aware wrapper for `::fz_expand_irect()`."""
  21572. return _mupdf.FzIrect_fz_expand_irect(self, expand)
  21573. def fz_intersect_irect(self, b):
  21574. r"""
  21575. Class-aware wrapper for `::fz_intersect_irect()`.
  21576. Compute intersection of two bounding boxes.
  21577. Similar to fz_intersect_rect but operates on two bounding
  21578. boxes instead of two rectangles.
  21579. """
  21580. return _mupdf.FzIrect_fz_intersect_irect(self, b)
  21581. def fz_irect_height(self):
  21582. r"""
  21583. Class-aware wrapper for `::fz_irect_height()`.
  21584. Return the height of an irect. Invalid irects return 0.
  21585. """
  21586. return _mupdf.FzIrect_fz_irect_height(self)
  21587. def fz_irect_width(self):
  21588. r"""
  21589. Class-aware wrapper for `::fz_irect_width()`.
  21590. Return the width of an irect. Invalid irects return 0.
  21591. """
  21592. return _mupdf.FzIrect_fz_irect_width(self)
  21593. def fz_is_empty_irect(self):
  21594. r"""Class-aware wrapper for `::fz_is_empty_irect()`."""
  21595. return _mupdf.FzIrect_fz_is_empty_irect(self)
  21596. def fz_is_infinite_irect(self):
  21597. r"""
  21598. Class-aware wrapper for `::fz_is_infinite_irect()`.
  21599. Check if an integer rectangle
  21600. is infinite.
  21601. """
  21602. return _mupdf.FzIrect_fz_is_infinite_irect(self)
  21603. def fz_is_irect_inside_irect(self, outer):
  21604. r"""
  21605. Class-aware wrapper for `::fz_is_irect_inside_irect()`.
  21606. Inclusion test for irects.
  21607. rects are assumed to be both open or both closed.
  21608. No invalid rect can include any other rect.
  21609. No invalid rect can be included by any rect.
  21610. Empty (point) rects can include themselves.
  21611. Empty (line) rects can include many (subline) rects.
  21612. """
  21613. return _mupdf.FzIrect_fz_is_irect_inside_irect(self, outer)
  21614. def fz_is_valid_irect(self):
  21615. r"""
  21616. Class-aware wrapper for `::fz_is_valid_irect()`.
  21617. Check if an integer rectangle is valid.
  21618. """
  21619. return _mupdf.FzIrect_fz_is_valid_irect(self)
  21620. def fz_rect_from_irect(self):
  21621. r"""
  21622. Class-aware wrapper for `::fz_rect_from_irect()`.
  21623. Convert a bbox into a rect.
  21624. For our purposes, a rect can represent all the values we meet in
  21625. a bbox, so nothing can go wrong.
  21626. rect: A place to store the generated rectangle.
  21627. bbox: The bbox to convert.
  21628. Returns rect (updated).
  21629. """
  21630. return _mupdf.FzIrect_fz_rect_from_irect(self)
  21631. def fz_translate_irect(self, xoff, yoff):
  21632. r"""Class-aware wrapper for `::fz_translate_irect()`."""
  21633. return _mupdf.FzIrect_fz_translate_irect(self, xoff, yoff)
  21634. def __init__(self, *args):
  21635. r"""
  21636. *Overload 1:*
  21637. == Constructors. Constructor using `fz_irect_from_rect()`.
  21638. Convert a rect into the minimal bounding box
  21639. that covers the rectangle.
  21640. Coordinates in a bounding box are integers, so rounding of the
  21641. rects coordinates takes place. The top left corner is rounded
  21642. upwards and left while the bottom right corner is rounded
  21643. downwards and to the right.
  21644. |
  21645. *Overload 2:*
  21646. Constructor using `fz_make_irect()`.
  21647. |
  21648. *Overload 3:*
  21649. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  21650. |
  21651. *Overload 4:*
  21652. Constructor using raw copy of pre-existing `::fz_irect`.
  21653. |
  21654. *Overload 5:*
  21655. Constructor using raw copy of pre-existing `::fz_irect`.
  21656. """
  21657. _mupdf.FzIrect_swiginit(self, _mupdf.new_FzIrect(*args))
  21658. def internal(self, *args):
  21659. r"""
  21660. *Overload 1:*
  21661. Access as underlying struct.
  21662. |
  21663. *Overload 2:*
  21664. Access as underlying struct.
  21665. """
  21666. return _mupdf.FzIrect_internal(self, *args)
  21667. __swig_destroy__ = _mupdf.delete_FzIrect
  21668. x0 = property(_mupdf.FzIrect_x0_get, _mupdf.FzIrect_x0_set)
  21669. y0 = property(_mupdf.FzIrect_y0_get, _mupdf.FzIrect_y0_set)
  21670. x1 = property(_mupdf.FzIrect_x1_get, _mupdf.FzIrect_x1_set)
  21671. y1 = property(_mupdf.FzIrect_y1_get, _mupdf.FzIrect_y1_set)
  21672. s_num_instances = property(_mupdf.FzIrect_s_num_instances_get, _mupdf.FzIrect_s_num_instances_set)
  21673. def to_string(self):
  21674. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  21675. return _mupdf.FzIrect_to_string(self)
  21676. def __eq__(self, rhs):
  21677. r"""Comparison method."""
  21678. return _mupdf.FzIrect___eq__(self, rhs)
  21679. def __ne__(self, rhs):
  21680. r"""Comparison method."""
  21681. return _mupdf.FzIrect___ne__(self, rhs)
  21682. # Register FzIrect in _mupdf:
  21683. _mupdf.FzIrect_swigregister(FzIrect)
  21684. class FzJbig2Globals(object):
  21685. r"""Wrapper class for struct `fz_jbig2_globals`."""
  21686. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21687. __repr__ = _swig_repr
  21688. def fz_jbig2_globals_data(self):
  21689. r"""
  21690. Class-aware wrapper for `::fz_jbig2_globals_data()`.
  21691. Return buffer containing jbig2 globals data stream.
  21692. """
  21693. return _mupdf.FzJbig2Globals_fz_jbig2_globals_data(self)
  21694. def __init__(self, *args):
  21695. r"""
  21696. *Overload 1:*
  21697. Copy constructor using `fz_keep_jbig2_globals()`.
  21698. |
  21699. *Overload 2:*
  21700. Default constructor, sets `m_internal` to null.
  21701. |
  21702. *Overload 3:*
  21703. Constructor using raw copy of pre-existing `::fz_jbig2_globals`.
  21704. """
  21705. _mupdf.FzJbig2Globals_swiginit(self, _mupdf.new_FzJbig2Globals(*args))
  21706. __swig_destroy__ = _mupdf.delete_FzJbig2Globals
  21707. def m_internal_value(self):
  21708. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21709. return _mupdf.FzJbig2Globals_m_internal_value(self)
  21710. def __nonzero__(self):
  21711. return _mupdf.FzJbig2Globals___nonzero__(self)
  21712. __bool__ = __nonzero__
  21713. m_internal = property(_mupdf.FzJbig2Globals_m_internal_get, _mupdf.FzJbig2Globals_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21714. s_num_instances = property(_mupdf.FzJbig2Globals_s_num_instances_get, _mupdf.FzJbig2Globals_s_num_instances_set)
  21715. # Register FzJbig2Globals in _mupdf:
  21716. _mupdf.FzJbig2Globals_swigregister(FzJbig2Globals)
  21717. class FzJson(object):
  21718. r"""Wrapper class for struct `fz_json`. Not copyable or assignable."""
  21719. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21720. __repr__ = _swig_repr
  21721. def fz_json_array_length(self):
  21722. r"""Class-aware wrapper for `::fz_json_array_length()`."""
  21723. return _mupdf.FzJson_fz_json_array_length(self)
  21724. def fz_json_is_array(self):
  21725. r"""Class-aware wrapper for `::fz_json_is_array()`."""
  21726. return _mupdf.FzJson_fz_json_is_array(self)
  21727. def fz_json_is_boolean(self):
  21728. r"""Class-aware wrapper for `::fz_json_is_boolean()`."""
  21729. return _mupdf.FzJson_fz_json_is_boolean(self)
  21730. def fz_json_is_null(self):
  21731. r"""Class-aware wrapper for `::fz_json_is_null()`."""
  21732. return _mupdf.FzJson_fz_json_is_null(self)
  21733. def fz_json_is_number(self):
  21734. r"""Class-aware wrapper for `::fz_json_is_number()`."""
  21735. return _mupdf.FzJson_fz_json_is_number(self)
  21736. def fz_json_is_object(self):
  21737. r"""Class-aware wrapper for `::fz_json_is_object()`."""
  21738. return _mupdf.FzJson_fz_json_is_object(self)
  21739. def fz_json_is_string(self):
  21740. r"""Class-aware wrapper for `::fz_json_is_string()`."""
  21741. return _mupdf.FzJson_fz_json_is_string(self)
  21742. def fz_json_to_boolean(self):
  21743. r"""Class-aware wrapper for `::fz_json_to_boolean()`."""
  21744. return _mupdf.FzJson_fz_json_to_boolean(self)
  21745. def fz_json_to_number(self):
  21746. r"""Class-aware wrapper for `::fz_json_to_number()`."""
  21747. return _mupdf.FzJson_fz_json_to_number(self)
  21748. def fz_json_to_string(self):
  21749. r"""Class-aware wrapper for `::fz_json_to_string()`."""
  21750. return _mupdf.FzJson_fz_json_to_string(self)
  21751. def __init__(self, *args):
  21752. r"""
  21753. *Overload 1:*
  21754. Default constructor, sets `m_internal` to null.
  21755. |
  21756. *Overload 2:*
  21757. Constructor using raw copy of pre-existing `::fz_json`.
  21758. """
  21759. _mupdf.FzJson_swiginit(self, _mupdf.new_FzJson(*args))
  21760. __swig_destroy__ = _mupdf.delete_FzJson
  21761. def m_internal_value(self):
  21762. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21763. return _mupdf.FzJson_m_internal_value(self)
  21764. def __nonzero__(self):
  21765. return _mupdf.FzJson___nonzero__(self)
  21766. __bool__ = __nonzero__
  21767. m_internal = property(_mupdf.FzJson_m_internal_get, _mupdf.FzJson_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21768. s_num_instances = property(_mupdf.FzJson_s_num_instances_get, _mupdf.FzJson_s_num_instances_set)
  21769. # Register FzJson in _mupdf:
  21770. _mupdf.FzJson_swigregister(FzJson)
  21771. class FzJsonArray(object):
  21772. r"""Wrapper class for struct `fz_json_array`. Not copyable or assignable."""
  21773. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21774. __repr__ = _swig_repr
  21775. def __init__(self, *args):
  21776. r"""
  21777. *Overload 1:*
  21778. Default constructor, sets `m_internal` to null.
  21779. |
  21780. *Overload 2:*
  21781. Constructor using raw copy of pre-existing `::fz_json_array`.
  21782. """
  21783. _mupdf.FzJsonArray_swiginit(self, _mupdf.new_FzJsonArray(*args))
  21784. __swig_destroy__ = _mupdf.delete_FzJsonArray
  21785. def m_internal_value(self):
  21786. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21787. return _mupdf.FzJsonArray_m_internal_value(self)
  21788. def __nonzero__(self):
  21789. return _mupdf.FzJsonArray___nonzero__(self)
  21790. __bool__ = __nonzero__
  21791. m_internal = property(_mupdf.FzJsonArray_m_internal_get, _mupdf.FzJsonArray_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21792. s_num_instances = property(_mupdf.FzJsonArray_s_num_instances_get, _mupdf.FzJsonArray_s_num_instances_set)
  21793. # Register FzJsonArray in _mupdf:
  21794. _mupdf.FzJsonArray_swigregister(FzJsonArray)
  21795. class FzJsonObject(object):
  21796. r"""Wrapper class for struct `fz_json_object`. Not copyable or assignable."""
  21797. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21798. __repr__ = _swig_repr
  21799. def __init__(self, *args):
  21800. r"""
  21801. *Overload 1:*
  21802. Default constructor, sets `m_internal` to null.
  21803. |
  21804. *Overload 2:*
  21805. Constructor using raw copy of pre-existing `::fz_json_object`.
  21806. """
  21807. _mupdf.FzJsonObject_swiginit(self, _mupdf.new_FzJsonObject(*args))
  21808. __swig_destroy__ = _mupdf.delete_FzJsonObject
  21809. def m_internal_value(self):
  21810. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21811. return _mupdf.FzJsonObject_m_internal_value(self)
  21812. def __nonzero__(self):
  21813. return _mupdf.FzJsonObject___nonzero__(self)
  21814. __bool__ = __nonzero__
  21815. m_internal = property(_mupdf.FzJsonObject_m_internal_get, _mupdf.FzJsonObject_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21816. s_num_instances = property(_mupdf.FzJsonObject_s_num_instances_get, _mupdf.FzJsonObject_s_num_instances_set)
  21817. # Register FzJsonObject in _mupdf:
  21818. _mupdf.FzJsonObject_swigregister(FzJsonObject)
  21819. class FzKeyStorable(object):
  21820. r"""
  21821. Wrapper class for struct `fz_key_storable`.
  21822. Any storable object that can appear in the key of another
  21823. storable object should include an fz_key_storable structure
  21824. at the start (by convention at least) of their structure.
  21825. """
  21826. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21827. __repr__ = _swig_repr
  21828. def __init__(self, *args):
  21829. r"""
  21830. *Overload 1:*
  21831. Copy constructor using `fz_keep_key_storable()`.
  21832. |
  21833. *Overload 2:*
  21834. Default constructor, sets `m_internal` to null.
  21835. |
  21836. *Overload 3:*
  21837. Constructor using raw copy of pre-existing `::fz_key_storable`.
  21838. """
  21839. _mupdf.FzKeyStorable_swiginit(self, _mupdf.new_FzKeyStorable(*args))
  21840. __swig_destroy__ = _mupdf.delete_FzKeyStorable
  21841. def m_internal_value(self):
  21842. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21843. return _mupdf.FzKeyStorable_m_internal_value(self)
  21844. def __nonzero__(self):
  21845. return _mupdf.FzKeyStorable___nonzero__(self)
  21846. __bool__ = __nonzero__
  21847. m_internal = property(_mupdf.FzKeyStorable_m_internal_get, _mupdf.FzKeyStorable_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21848. s_num_instances = property(_mupdf.FzKeyStorable_s_num_instances_get, _mupdf.FzKeyStorable_s_num_instances_set)
  21849. # Register FzKeyStorable in _mupdf:
  21850. _mupdf.FzKeyStorable_swigregister(FzKeyStorable)
  21851. class FzLayoutBlock(object):
  21852. r"""Wrapper class for struct `fz_layout_block`. Not copyable or assignable."""
  21853. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21854. __repr__ = _swig_repr
  21855. def fz_add_layout_char(self, x, w, p):
  21856. r"""
  21857. Class-aware wrapper for `::fz_add_layout_char()`.
  21858. Add a new char to the line at the end of the layout block.
  21859. """
  21860. return _mupdf.FzLayoutBlock_fz_add_layout_char(self, x, w, p)
  21861. def fz_add_layout_line(self, x, y, h, p):
  21862. r"""
  21863. Class-aware wrapper for `::fz_add_layout_line()`.
  21864. Add a new line to the end of the layout block.
  21865. """
  21866. return _mupdf.FzLayoutBlock_fz_add_layout_line(self, x, y, h, p)
  21867. def __init__(self, *args):
  21868. r"""
  21869. *Overload 1:*
  21870. == Constructors. Constructor using `fz_new_layout()`.
  21871. Create a new layout block, with new allocation pool, zero
  21872. matrices, and initialise linked pointers.
  21873. |
  21874. *Overload 2:*
  21875. Constructor using raw copy of pre-existing `::fz_layout_block`.
  21876. """
  21877. _mupdf.FzLayoutBlock_swiginit(self, _mupdf.new_FzLayoutBlock(*args))
  21878. __swig_destroy__ = _mupdf.delete_FzLayoutBlock
  21879. def m_internal_value(self):
  21880. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21881. return _mupdf.FzLayoutBlock_m_internal_value(self)
  21882. def __nonzero__(self):
  21883. return _mupdf.FzLayoutBlock___nonzero__(self)
  21884. __bool__ = __nonzero__
  21885. m_internal = property(_mupdf.FzLayoutBlock_m_internal_get, _mupdf.FzLayoutBlock_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21886. s_num_instances = property(_mupdf.FzLayoutBlock_s_num_instances_get, _mupdf.FzLayoutBlock_s_num_instances_set)
  21887. # Register FzLayoutBlock in _mupdf:
  21888. _mupdf.FzLayoutBlock_swigregister(FzLayoutBlock)
  21889. class FzLayoutChar(object):
  21890. r"""
  21891. Wrapper class for struct `fz_layout_char`. Not copyable or assignable.
  21892. Simple text layout (for use with annotation editing primarily).
  21893. """
  21894. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21895. __repr__ = _swig_repr
  21896. def __init__(self, *args):
  21897. r"""
  21898. *Overload 1:*
  21899. Default constructor, sets `m_internal` to null.
  21900. |
  21901. *Overload 2:*
  21902. Constructor using raw copy of pre-existing `::fz_layout_char`.
  21903. """
  21904. _mupdf.FzLayoutChar_swiginit(self, _mupdf.new_FzLayoutChar(*args))
  21905. __swig_destroy__ = _mupdf.delete_FzLayoutChar
  21906. def m_internal_value(self):
  21907. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21908. return _mupdf.FzLayoutChar_m_internal_value(self)
  21909. def __nonzero__(self):
  21910. return _mupdf.FzLayoutChar___nonzero__(self)
  21911. __bool__ = __nonzero__
  21912. m_internal = property(_mupdf.FzLayoutChar_m_internal_get, _mupdf.FzLayoutChar_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21913. s_num_instances = property(_mupdf.FzLayoutChar_s_num_instances_get, _mupdf.FzLayoutChar_s_num_instances_set)
  21914. # Register FzLayoutChar in _mupdf:
  21915. _mupdf.FzLayoutChar_swigregister(FzLayoutChar)
  21916. class FzLayoutLine(object):
  21917. r"""Wrapper class for struct `fz_layout_line`. 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 __init__(self, *args):
  21921. r"""
  21922. *Overload 1:*
  21923. Default constructor, sets `m_internal` to null.
  21924. |
  21925. *Overload 2:*
  21926. Constructor using raw copy of pre-existing `::fz_layout_line`.
  21927. """
  21928. _mupdf.FzLayoutLine_swiginit(self, _mupdf.new_FzLayoutLine(*args))
  21929. __swig_destroy__ = _mupdf.delete_FzLayoutLine
  21930. def m_internal_value(self):
  21931. r"""Return numerical value of .m_internal; helps with Python debugging."""
  21932. return _mupdf.FzLayoutLine_m_internal_value(self)
  21933. def __nonzero__(self):
  21934. return _mupdf.FzLayoutLine___nonzero__(self)
  21935. __bool__ = __nonzero__
  21936. m_internal = property(_mupdf.FzLayoutLine_m_internal_get, _mupdf.FzLayoutLine_m_internal_set, doc=r"""Pointer to wrapped data.""")
  21937. s_num_instances = property(_mupdf.FzLayoutLine_s_num_instances_get, _mupdf.FzLayoutLine_s_num_instances_set)
  21938. # Register FzLayoutLine in _mupdf:
  21939. _mupdf.FzLayoutLine_swigregister(FzLayoutLine)
  21940. class FzLink(object):
  21941. r"""
  21942. Wrapper class for struct `fz_link`.
  21943. fz_link is a list of interactive links on a page.
  21944. There is no relation between the order of the links in the
  21945. list and the order they appear on the page. The list of links
  21946. for a given page can be obtained from fz_load_links.
  21947. A link is reference counted. Dropping a reference to a link is
  21948. done by calling fz_drop_link.
  21949. rect: The hot zone. The area that can be clicked in
  21950. untransformed coordinates.
  21951. uri: Link destinations come in two forms: internal and external.
  21952. Internal links refer to other pages in the same document.
  21953. External links are URLs to other documents.
  21954. next: A pointer to the next link on the same page.
  21955. """
  21956. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  21957. __repr__ = _swig_repr
  21958. def fz_set_link_rect(self, rect):
  21959. r"""Class-aware wrapper for `::fz_set_link_rect()`."""
  21960. return _mupdf.FzLink_fz_set_link_rect(self, rect)
  21961. def fz_set_link_uri(self, uri):
  21962. r"""Class-aware wrapper for `::fz_set_link_uri()`."""
  21963. return _mupdf.FzLink_fz_set_link_uri(self, uri)
  21964. def begin(self):
  21965. r"""Used for iteration over linked list of FzLink items starting at fz_link::."""
  21966. return _mupdf.FzLink_begin(self)
  21967. def end(self):
  21968. r"""Used for iteration over linked list of FzLink items starting at fz_link::."""
  21969. return _mupdf.FzLink_end(self)
  21970. def __init__(self, *args):
  21971. r"""
  21972. *Overload 1:*
  21973. == Constructors. Constructor using `fz_new_link_of_size()`.
  21974. Create a new link record.
  21975. next is set to NULL with the expectation that the caller will
  21976. handle the linked list setup. Internal function.
  21977. Different document types will be implemented by deriving from
  21978. fz_link. This macro allocates such derived structures, and
  21979. initialises the base sections.
  21980. |
  21981. *Overload 2:*
  21982. Constructor using `pdf_new_link()`.
  21983. |
  21984. *Overload 3:*
  21985. Construct by calling fz_new_link_of_size() with size=sizeof(fz_link).
  21986. |
  21987. *Overload 4:*
  21988. Copy constructor using `fz_keep_link()`.
  21989. |
  21990. *Overload 5:*
  21991. Constructor using raw copy of pre-existing `::fz_link`.
  21992. |
  21993. *Overload 6:*
  21994. Constructor using raw copy of pre-existing `::fz_link`.
  21995. """
  21996. _mupdf.FzLink_swiginit(self, _mupdf.new_FzLink(*args))
  21997. def refs(self):
  21998. return _mupdf.FzLink_refs(self)
  21999. def next(self):
  22000. return _mupdf.FzLink_next(self)
  22001. def rect(self):
  22002. return _mupdf.FzLink_rect(self)
  22003. def uri(self):
  22004. return _mupdf.FzLink_uri(self)
  22005. __swig_destroy__ = _mupdf.delete_FzLink
  22006. def m_internal_value(self):
  22007. r"""Return numerical value of .m_internal; helps with Python debugging."""
  22008. return _mupdf.FzLink_m_internal_value(self)
  22009. def __nonzero__(self):
  22010. return _mupdf.FzLink___nonzero__(self)
  22011. __bool__ = __nonzero__
  22012. m_internal = property(_mupdf.FzLink_m_internal_get, _mupdf.FzLink_m_internal_set, doc=r"""Pointer to wrapped data.""")
  22013. s_num_instances = property(_mupdf.FzLink_s_num_instances_get, _mupdf.FzLink_s_num_instances_set)
  22014. # Register FzLink in _mupdf:
  22015. _mupdf.FzLink_swigregister(FzLink)
  22016. class FzLinkDest(object):
  22017. r"""Wrapper class for struct `fz_link_dest`. Not copyable or assignable."""
  22018. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22019. __repr__ = _swig_repr
  22020. def pdf_new_uri_from_explicit_dest(self):
  22021. r"""Class-aware wrapper for `::pdf_new_uri_from_explicit_dest()`."""
  22022. return _mupdf.FzLinkDest_pdf_new_uri_from_explicit_dest(self)
  22023. def __init__(self, *args):
  22024. r"""
  22025. *Overload 1:*
  22026. Default constructor, sets `m_internal` to null.
  22027. |
  22028. *Overload 2:*
  22029. Constructor using raw copy of pre-existing `::fz_link_dest`.
  22030. """
  22031. _mupdf.FzLinkDest_swiginit(self, _mupdf.new_FzLinkDest(*args))
  22032. __swig_destroy__ = _mupdf.delete_FzLinkDest
  22033. def m_internal_value(self):
  22034. r"""Return numerical value of .m_internal; helps with Python debugging."""
  22035. return _mupdf.FzLinkDest_m_internal_value(self)
  22036. def __nonzero__(self):
  22037. return _mupdf.FzLinkDest___nonzero__(self)
  22038. __bool__ = __nonzero__
  22039. m_internal = property(_mupdf.FzLinkDest_m_internal_get, _mupdf.FzLinkDest_m_internal_set, doc=r"""Pointer to wrapped data.""")
  22040. s_num_instances = property(_mupdf.FzLinkDest_s_num_instances_get, _mupdf.FzLinkDest_s_num_instances_set)
  22041. # Register FzLinkDest in _mupdf:
  22042. _mupdf.FzLinkDest_swigregister(FzLinkDest)
  22043. class FzLocation(object):
  22044. r"""
  22045. Wrapper class for struct `fz_location`.
  22046. Locations within the document are referred to in terms of
  22047. chapter and page, rather than just a page number. For some
  22048. documents (such as epub documents with large numbers of pages
  22049. broken into many chapters) this can make navigation much faster
  22050. as only the required chapter needs to be decoded at a time.
  22051. """
  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 __init__(self, *args):
  22055. r"""
  22056. *Overload 1:*
  22057. == Constructors. Constructor using `fz_make_location()`.
  22058. Simple constructor for fz_locations.
  22059. |
  22060. *Overload 2:*
  22061. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  22062. |
  22063. *Overload 3:*
  22064. Constructor using raw copy of pre-existing `::fz_location`.
  22065. |
  22066. *Overload 4:*
  22067. Constructor using raw copy of pre-existing `::fz_location`.
  22068. """
  22069. _mupdf.FzLocation_swiginit(self, _mupdf.new_FzLocation(*args))
  22070. def internal(self, *args):
  22071. r"""
  22072. *Overload 1:*
  22073. Access as underlying struct.
  22074. |
  22075. *Overload 2:*
  22076. Access as underlying struct.
  22077. """
  22078. return _mupdf.FzLocation_internal(self, *args)
  22079. __swig_destroy__ = _mupdf.delete_FzLocation
  22080. chapter = property(_mupdf.FzLocation_chapter_get, _mupdf.FzLocation_chapter_set)
  22081. page = property(_mupdf.FzLocation_page_get, _mupdf.FzLocation_page_set)
  22082. s_num_instances = property(_mupdf.FzLocation_s_num_instances_get, _mupdf.FzLocation_s_num_instances_set)
  22083. def to_string(self):
  22084. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  22085. return _mupdf.FzLocation_to_string(self)
  22086. def __eq__(self, rhs):
  22087. r"""Comparison method."""
  22088. return _mupdf.FzLocation___eq__(self, rhs)
  22089. def __ne__(self, rhs):
  22090. r"""Comparison method."""
  22091. return _mupdf.FzLocation___ne__(self, rhs)
  22092. # Register FzLocation in _mupdf:
  22093. _mupdf.FzLocation_swigregister(FzLocation)
  22094. class FzLocksContext(object):
  22095. r"""
  22096. Wrapper class for struct `fz_locks_context`. Not copyable or assignable.
  22097. Locking functions
  22098. MuPDF is kept deliberately free of any knowledge of particular
  22099. threading systems. As such, in order for safe multi-threaded
  22100. operation, we rely on callbacks to client provided functions.
  22101. A client is expected to provide FZ_LOCK_MAX number of mutexes,
  22102. and a function to lock/unlock each of them. These may be
  22103. recursive mutexes, but do not have to be.
  22104. If a client does not intend to use multiple threads, then it
  22105. may pass NULL instead of a lock structure.
  22106. In order to avoid deadlocks, we have one simple rule
  22107. internally as to how we use locks: We can never take lock n
  22108. when we already hold any lock i, where 0 <= i <= n. In order
  22109. to verify this, we have some debugging code, that can be
  22110. enabled by defining FITZ_DEBUG_LOCKING.
  22111. """
  22112. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22113. __repr__ = _swig_repr
  22114. def __init__(self, *args):
  22115. r"""
  22116. *Overload 1:*
  22117. Default constructor, sets `m_internal` to null.
  22118. |
  22119. *Overload 2:*
  22120. Constructor using raw copy of pre-existing `::fz_locks_context`.
  22121. """
  22122. _mupdf.FzLocksContext_swiginit(self, _mupdf.new_FzLocksContext(*args))
  22123. __swig_destroy__ = _mupdf.delete_FzLocksContext
  22124. def m_internal_value(self):
  22125. r"""Return numerical value of .m_internal; helps with Python debugging."""
  22126. return _mupdf.FzLocksContext_m_internal_value(self)
  22127. def __nonzero__(self):
  22128. return _mupdf.FzLocksContext___nonzero__(self)
  22129. __bool__ = __nonzero__
  22130. m_internal = property(_mupdf.FzLocksContext_m_internal_get, _mupdf.FzLocksContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  22131. s_num_instances = property(_mupdf.FzLocksContext_s_num_instances_get, _mupdf.FzLocksContext_s_num_instances_set)
  22132. # Register FzLocksContext in _mupdf:
  22133. _mupdf.FzLocksContext_swigregister(FzLocksContext)
  22134. class FzMatrix(object):
  22135. r"""
  22136. Wrapper class for struct `fz_matrix`.
  22137. fz_matrix is a row-major 3x3 matrix used for representing
  22138. transformations of coordinates throughout MuPDF.
  22139. Since all points reside in a two-dimensional space, one vector
  22140. is always a constant unit vector; hence only some elements may
  22141. vary in a matrix. Below is how the elements map between
  22142. different representations.
  22143. a b 0
  22144. | c d 0 | normally represented as [ a b c d e f ].
  22145. \ e f 1 /
  22146. """
  22147. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22148. __repr__ = _swig_repr
  22149. @staticmethod
  22150. def fz_scale(sx, sy):
  22151. r"""
  22152. Class-aware wrapper for `::fz_scale()`.
  22153. Create a scaling matrix.
  22154. The returned matrix is of the form [ sx 0 0 sy 0 0 ].
  22155. m: Pointer to the matrix to populate
  22156. sx, sy: Scaling factors along the X- and Y-axes. A scaling
  22157. factor of 1.0 will not cause any scaling along the relevant
  22158. axis.
  22159. Returns m.
  22160. """
  22161. return _mupdf.FzMatrix_fz_scale(sx, sy)
  22162. @staticmethod
  22163. def fz_shear(sx, sy):
  22164. r"""
  22165. Class-aware wrapper for `::fz_shear()`.
  22166. Create a shearing matrix.
  22167. The returned matrix is of the form [ 1 sy sx 1 0 0 ].
  22168. m: pointer to place to store returned matrix
  22169. sx, sy: Shearing factors. A shearing factor of 0.0 will not
  22170. cause any shearing along the relevant axis.
  22171. Returns m.
  22172. """
  22173. return _mupdf.FzMatrix_fz_shear(sx, sy)
  22174. @staticmethod
  22175. def fz_rotate(degrees):
  22176. r"""
  22177. Class-aware wrapper for `::fz_rotate()`.
  22178. Create a rotation matrix.
  22179. The returned matrix is of the form
  22180. [ cos(deg) sin(deg) -sin(deg) cos(deg) 0 0 ].
  22181. m: Pointer to place to store matrix
  22182. degrees: Degrees of counter clockwise rotation. Values less
  22183. than zero and greater than 360 are handled as expected.
  22184. Returns m.
  22185. """
  22186. return _mupdf.FzMatrix_fz_rotate(degrees)
  22187. @staticmethod
  22188. def fz_translate(tx, ty):
  22189. r"""
  22190. Class-aware wrapper for `::fz_translate()`.
  22191. Create a translation matrix.
  22192. The returned matrix is of the form [ 1 0 0 1 tx ty ].
  22193. m: A place to store the created matrix.
  22194. tx, ty: Translation distances along the X- and Y-axes. A
  22195. translation of 0 will not cause any translation along the
  22196. relevant axis.
  22197. Returns m.
  22198. """
  22199. return _mupdf.FzMatrix_fz_translate(tx, ty)
  22200. @staticmethod
  22201. def fz_transform_page(mediabox, resolution, rotate):
  22202. r"""
  22203. Class-aware wrapper for `::fz_transform_page()`.
  22204. Create transform matrix to draw page
  22205. at a given resolution and rotation. Adjusts the scaling
  22206. factors so that the page covers whole number of
  22207. pixels and adjust the page origin to be at 0,0.
  22208. """
  22209. return _mupdf.FzMatrix_fz_transform_page(mediabox, resolution, rotate)
  22210. def fz_concat(self, *args):
  22211. r"""
  22212. *Overload 1:*
  22213. We use default copy constructor and operator=. Class-aware wrapper for `::fz_concat()`.
  22214. Multiply two matrices.
  22215. The order of the two matrices are important since matrix
  22216. multiplication is not commutative.
  22217. Returns result.
  22218. |
  22219. *Overload 2:*
  22220. Class-aware wrapper for `::fz_concat()`.
  22221. Multiply two matrices.
  22222. The order of the two matrices are important since matrix
  22223. multiplication is not commutative.
  22224. Returns result.
  22225. """
  22226. return _mupdf.FzMatrix_fz_concat(self, *args)
  22227. def fz_invert_matrix(self):
  22228. r"""
  22229. Class-aware wrapper for `::fz_invert_matrix()`.
  22230. Create an inverse matrix.
  22231. matrix: Matrix to invert. A degenerate matrix, where the
  22232. determinant is equal to zero, can not be inverted and the
  22233. original matrix is returned instead.
  22234. Returns inverse.
  22235. """
  22236. return _mupdf.FzMatrix_fz_invert_matrix(self)
  22237. def fz_is_identity(self):
  22238. r"""Class-aware wrapper for `::fz_is_identity()`."""
  22239. return _mupdf.FzMatrix_fz_is_identity(self)
  22240. def fz_is_rectilinear(self):
  22241. r"""
  22242. Class-aware wrapper for `::fz_is_rectilinear()`.
  22243. Check if a transformation is rectilinear.
  22244. Rectilinear means that no shearing is present and that any
  22245. rotations present are a multiple of 90 degrees. Usually this
  22246. is used to make sure that axis-aligned rectangles before the
  22247. transformation are still axis-aligned rectangles afterwards.
  22248. """
  22249. return _mupdf.FzMatrix_fz_is_rectilinear(self)
  22250. def fz_matrix_expansion(self):
  22251. r"""
  22252. Class-aware wrapper for `::fz_matrix_expansion()`.
  22253. Calculate average scaling factor of matrix.
  22254. """
  22255. return _mupdf.FzMatrix_fz_matrix_expansion(self)
  22256. def fz_matrix_max_expansion(self):
  22257. r"""
  22258. Class-aware wrapper for `::fz_matrix_max_expansion()`.
  22259. Find the largest expansion performed by this matrix.
  22260. (i.e. max(abs(m.a),abs(m.b),abs(m.c),abs(m.d))
  22261. """
  22262. return _mupdf.FzMatrix_fz_matrix_max_expansion(self)
  22263. def fz_post_scale(self, sx, sy):
  22264. r"""
  22265. Class-aware wrapper for `::fz_post_scale()`.
  22266. Scale a matrix by postmultiplication.
  22267. m: Pointer to the matrix to scale
  22268. sx, sy: Scaling factors along the X- and Y-axes. A scaling
  22269. factor of 1.0 will not cause any scaling along the relevant
  22270. axis.
  22271. Returns m (updated).
  22272. """
  22273. return _mupdf.FzMatrix_fz_post_scale(self, sx, sy)
  22274. def fz_pre_rotate(self, degrees):
  22275. r"""
  22276. Class-aware wrapper for `::fz_pre_rotate()`.
  22277. Rotate a transformation by premultiplying.
  22278. The premultiplied matrix is of the form
  22279. [ cos(deg) sin(deg) -sin(deg) cos(deg) 0 0 ].
  22280. m: Pointer to matrix to premultiply.
  22281. degrees: Degrees of counter clockwise rotation. Values less
  22282. than zero and greater than 360 are handled as expected.
  22283. Returns m (updated).
  22284. """
  22285. return _mupdf.FzMatrix_fz_pre_rotate(self, degrees)
  22286. def fz_pre_scale(self, sx, sy):
  22287. r"""
  22288. Class-aware wrapper for `::fz_pre_scale()`.
  22289. Scale a matrix by premultiplication.
  22290. m: Pointer to the matrix to scale
  22291. sx, sy: Scaling factors along the X- and Y-axes. A scaling
  22292. factor of 1.0 will not cause any scaling along the relevant
  22293. axis.
  22294. Returns m (updated).
  22295. """
  22296. return _mupdf.FzMatrix_fz_pre_scale(self, sx, sy)
  22297. def fz_pre_shear(self, sx, sy):
  22298. r"""
  22299. Class-aware wrapper for `::fz_pre_shear()`.
  22300. Premultiply a matrix with a shearing matrix.
  22301. The shearing matrix is of the form [ 1 sy sx 1 0 0 ].
  22302. m: pointer to matrix to premultiply
  22303. sx, sy: Shearing factors. A shearing factor of 0.0 will not
  22304. cause any shearing along the relevant axis.
  22305. Returns m (updated).
  22306. """
  22307. return _mupdf.FzMatrix_fz_pre_shear(self, sx, sy)
  22308. def fz_pre_translate(self, tx, ty):
  22309. r"""
  22310. Class-aware wrapper for `::fz_pre_translate()`.
  22311. Translate a matrix by premultiplication.
  22312. m: The matrix to translate
  22313. tx, ty: Translation distances along the X- and Y-axes. A
  22314. translation of 0 will not cause any translation along the
  22315. relevant axis.
  22316. Returns m.
  22317. """
  22318. return _mupdf.FzMatrix_fz_pre_translate(self, tx, ty)
  22319. def fz_subpixel_adjust(self, subpix_ctm, qe, qf):
  22320. r"""
  22321. Class-aware wrapper for `::fz_subpixel_adjust()`.
  22322. Perform subpixel quantisation and adjustment on a glyph matrix.
  22323. ctm: On entry, the desired 'ideal' transformation for a glyph.
  22324. On exit, adjusted to a (very similar) transformation quantised
  22325. for subpixel caching.
  22326. subpix_ctm: Initialised by the routine to the transform that
  22327. should be used to render the glyph.
  22328. qe, qf: which subpixel position we quantised to.
  22329. Returns: the size of the glyph.
  22330. Note: This is currently only exposed for use in our app. It
  22331. should be considered "at risk" of removal from the API.
  22332. """
  22333. return _mupdf.FzMatrix_fz_subpixel_adjust(self, subpix_ctm, qe, qf)
  22334. def fz_try_invert_matrix(self, src):
  22335. r"""
  22336. Class-aware wrapper for `::fz_try_invert_matrix()`.
  22337. Attempt to create an inverse matrix.
  22338. inv: Place to store inverse matrix.
  22339. src: Matrix to invert. A degenerate matrix, where the
  22340. determinant is equal to zero, can not be inverted.
  22341. Returns 1 if matrix is degenerate (singular), or 0 otherwise.
  22342. """
  22343. return _mupdf.FzMatrix_fz_try_invert_matrix(self, src)
  22344. def __init__(self, *args):
  22345. r"""
  22346. *Overload 1:*
  22347. == Constructors. Constructor using `fz_make_matrix()`.
  22348. |
  22349. *Overload 2:*
  22350. Constructs identity matrix (like fz_identity).
  22351. |
  22352. *Overload 3:*
  22353. Constructor using raw copy of pre-existing `::fz_matrix`.
  22354. |
  22355. *Overload 4:*
  22356. Constructor using raw copy of pre-existing `::fz_matrix`.
  22357. """
  22358. _mupdf.FzMatrix_swiginit(self, _mupdf.new_FzMatrix(*args))
  22359. def internal(self, *args):
  22360. r"""
  22361. *Overload 1:*
  22362. Access as underlying struct.
  22363. |
  22364. *Overload 2:*
  22365. Access as underlying struct.
  22366. """
  22367. return _mupdf.FzMatrix_internal(self, *args)
  22368. __swig_destroy__ = _mupdf.delete_FzMatrix
  22369. a = property(_mupdf.FzMatrix_a_get, _mupdf.FzMatrix_a_set)
  22370. b = property(_mupdf.FzMatrix_b_get, _mupdf.FzMatrix_b_set)
  22371. c = property(_mupdf.FzMatrix_c_get, _mupdf.FzMatrix_c_set)
  22372. d = property(_mupdf.FzMatrix_d_get, _mupdf.FzMatrix_d_set)
  22373. e = property(_mupdf.FzMatrix_e_get, _mupdf.FzMatrix_e_set)
  22374. f = property(_mupdf.FzMatrix_f_get, _mupdf.FzMatrix_f_set)
  22375. s_num_instances = property(_mupdf.FzMatrix_s_num_instances_get, _mupdf.FzMatrix_s_num_instances_set)
  22376. def to_string(self):
  22377. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  22378. return _mupdf.FzMatrix_to_string(self)
  22379. def __eq__(self, rhs):
  22380. r"""Comparison method."""
  22381. return _mupdf.FzMatrix___eq__(self, rhs)
  22382. def __ne__(self, rhs):
  22383. r"""Comparison method."""
  22384. return _mupdf.FzMatrix___ne__(self, rhs)
  22385. # Register FzMatrix in _mupdf:
  22386. _mupdf.FzMatrix_swigregister(FzMatrix)
  22387. class FzMd5(object):
  22388. r"""
  22389. Wrapper class for struct `fz_md5`.
  22390. Structure definition is public to enable stack
  22391. based allocation. Do not access the members directly.
  22392. """
  22393. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22394. __repr__ = _swig_repr
  22395. def fz_md5_final(self, digest):
  22396. r"""
  22397. We use default copy constructor and operator=. Class-aware wrapper for `::fz_md5_final()`.
  22398. MD5 finalization. Ends an MD5 message-digest operation, writing
  22399. the message digest and zeroizing the context.
  22400. Never throws an exception.
  22401. """
  22402. return _mupdf.FzMd5_fz_md5_final(self, digest)
  22403. def fz_md5_final2(self):
  22404. r"""
  22405. Class-aware wrapper for `::fz_md5_final2()`.
  22406. C++ alternative to fz_md5_final() that returns the digest by value.
  22407. """
  22408. return _mupdf.FzMd5_fz_md5_final2(self)
  22409. def fz_md5_init(self):
  22410. r"""
  22411. Class-aware wrapper for `::fz_md5_init()`.
  22412. MD5 initialization. Begins an MD5 operation, writing a new
  22413. context.
  22414. Never throws an exception.
  22415. """
  22416. return _mupdf.FzMd5_fz_md5_init(self)
  22417. def fz_md5_update(self, input, inlen):
  22418. r"""
  22419. Class-aware wrapper for `::fz_md5_update()`.
  22420. MD5 block update operation. Continues an MD5 message-digest
  22421. operation, processing another message block, and updating the
  22422. context.
  22423. Never throws an exception.
  22424. """
  22425. return _mupdf.FzMd5_fz_md5_update(self, input, inlen)
  22426. def fz_md5_update_int64(self, i):
  22427. r"""
  22428. Class-aware wrapper for `::fz_md5_update_int64()`.
  22429. MD5 block update operation. Continues an MD5 message-digest
  22430. operation, processing an int64, and updating the context.
  22431. Never throws an exception.
  22432. """
  22433. return _mupdf.FzMd5_fz_md5_update_int64(self, i)
  22434. def __init__(self, *args):
  22435. r"""
  22436. *Overload 1:*
  22437. Default constructor calls md5_init().
  22438. |
  22439. *Overload 2:*
  22440. Constructor using raw copy of pre-existing `::fz_md5`.
  22441. """
  22442. _mupdf.FzMd5_swiginit(self, _mupdf.new_FzMd5(*args))
  22443. def lo(self):
  22444. return _mupdf.FzMd5_lo(self)
  22445. def hi(self):
  22446. return _mupdf.FzMd5_hi(self)
  22447. def a(self):
  22448. return _mupdf.FzMd5_a(self)
  22449. def b(self):
  22450. return _mupdf.FzMd5_b(self)
  22451. def c(self):
  22452. return _mupdf.FzMd5_c(self)
  22453. def d(self):
  22454. return _mupdf.FzMd5_d(self)
  22455. def buffer(self):
  22456. return _mupdf.FzMd5_buffer(self)
  22457. __swig_destroy__ = _mupdf.delete_FzMd5
  22458. m_internal = property(_mupdf.FzMd5_m_internal_get, _mupdf.FzMd5_m_internal_set)
  22459. s_num_instances = property(_mupdf.FzMd5_s_num_instances_get, _mupdf.FzMd5_s_num_instances_set, doc=r"""Wrapped data is held by value.""")
  22460. def to_string(self):
  22461. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  22462. return _mupdf.FzMd5_to_string(self)
  22463. def __eq__(self, rhs):
  22464. r"""Comparison method."""
  22465. return _mupdf.FzMd5___eq__(self, rhs)
  22466. def __ne__(self, rhs):
  22467. r"""Comparison method."""
  22468. return _mupdf.FzMd5___ne__(self, rhs)
  22469. # Register FzMd5 in _mupdf:
  22470. _mupdf.FzMd5_swigregister(FzMd5)
  22471. class FzOutline(object):
  22472. r"""
  22473. Wrapper class for struct `fz_outline`.
  22474. fz_outline is a tree of the outline of a document (also known
  22475. as table of contents).
  22476. title: Title of outline item using UTF-8 encoding. May be NULL
  22477. if the outline item has no text string.
  22478. uri: Destination in the document to be displayed when this
  22479. outline item is activated. May be an internal or external
  22480. link, or NULL if the outline item does not have a destination.
  22481. page: The page number of an internal link, or -1 for external
  22482. links or links with no destination.
  22483. next: The next outline item at the same level as this outline
  22484. item. May be NULL if no more outline items exist at this level.
  22485. down: The outline items immediate children in the hierarchy.
  22486. May be NULL if no children exist.
  22487. is_open: If zero, the outline element is closed in the UI. If
  22488. 1, it should be open, showing any child elements.
  22489. flags: Bit 0 set -> Bold, Bit 1 set -> Italic. All other bits
  22490. reserved.
  22491. r, g, b: The RGB components of the color of this entry.
  22492. """
  22493. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22494. __repr__ = _swig_repr
  22495. def __init__(self, *args):
  22496. r"""
  22497. *Overload 1:*
  22498. == Constructors. Constructor using `fz_load_outline()`.
  22499. Load the hierarchical document outline.
  22500. Should be freed by fz_drop_outline.
  22501. |
  22502. *Overload 2:*
  22503. Constructor using `fz_load_outline_from_iterator()`.
  22504. Routine to implement the old Structure based API from an iterator.
  22505. |
  22506. *Overload 3:*
  22507. Constructor using `fz_new_outline()`.
  22508. Create a new outline entry with zeroed fields for the caller
  22509. to fill in.
  22510. |
  22511. *Overload 4:*
  22512. Copy constructor using `fz_keep_outline()`.
  22513. |
  22514. *Overload 5:*
  22515. Constructor using raw copy of pre-existing `::fz_outline`.
  22516. """
  22517. _mupdf.FzOutline_swiginit(self, _mupdf.new_FzOutline(*args))
  22518. def refs(self):
  22519. return _mupdf.FzOutline_refs(self)
  22520. def title(self):
  22521. return _mupdf.FzOutline_title(self)
  22522. def uri(self):
  22523. return _mupdf.FzOutline_uri(self)
  22524. def page(self):
  22525. return _mupdf.FzOutline_page(self)
  22526. def x(self):
  22527. return _mupdf.FzOutline_x(self)
  22528. def y(self):
  22529. return _mupdf.FzOutline_y(self)
  22530. def next(self):
  22531. return _mupdf.FzOutline_next(self)
  22532. def down(self):
  22533. return _mupdf.FzOutline_down(self)
  22534. def is_open(self):
  22535. return _mupdf.FzOutline_is_open(self)
  22536. def flags(self):
  22537. return _mupdf.FzOutline_flags(self)
  22538. def r(self):
  22539. return _mupdf.FzOutline_r(self)
  22540. def g(self):
  22541. return _mupdf.FzOutline_g(self)
  22542. def b(self):
  22543. return _mupdf.FzOutline_b(self)
  22544. __swig_destroy__ = _mupdf.delete_FzOutline
  22545. def m_internal_value(self):
  22546. r"""Return numerical value of .m_internal; helps with Python debugging."""
  22547. return _mupdf.FzOutline_m_internal_value(self)
  22548. def __nonzero__(self):
  22549. return _mupdf.FzOutline___nonzero__(self)
  22550. __bool__ = __nonzero__
  22551. m_internal = property(_mupdf.FzOutline_m_internal_get, _mupdf.FzOutline_m_internal_set, doc=r"""Pointer to wrapped data.""")
  22552. s_num_instances = property(_mupdf.FzOutline_s_num_instances_get, _mupdf.FzOutline_s_num_instances_set)
  22553. # Register FzOutline in _mupdf:
  22554. _mupdf.FzOutline_swigregister(FzOutline)
  22555. class FzOutlineItem(object):
  22556. r"""Wrapper class for struct `fz_outline_item`."""
  22557. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22558. __repr__ = _swig_repr
  22559. def valid(self):
  22560. return _mupdf.FzOutlineItem_valid(self)
  22561. def title(self):
  22562. return _mupdf.FzOutlineItem_title(self)
  22563. def uri(self):
  22564. return _mupdf.FzOutlineItem_uri(self)
  22565. def is_open(self):
  22566. return _mupdf.FzOutlineItem_is_open(self)
  22567. def __init__(self, *args):
  22568. r"""
  22569. *Overload 1:*
  22570. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  22571. |
  22572. *Overload 2:*
  22573. Constructor using raw copy of pre-existing `::fz_outline_item`.
  22574. """
  22575. _mupdf.FzOutlineItem_swiginit(self, _mupdf.new_FzOutlineItem(*args))
  22576. __swig_destroy__ = _mupdf.delete_FzOutlineItem
  22577. s_num_instances = property(_mupdf.FzOutlineItem_s_num_instances_get, _mupdf.FzOutlineItem_s_num_instances_set)
  22578. # Register FzOutlineItem in _mupdf:
  22579. _mupdf.FzOutlineItem_swigregister(FzOutlineItem)
  22580. class FzOutlineIterator(object):
  22581. r"""Wrapper class for struct `fz_outline_iterator`. Not copyable or assignable."""
  22582. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22583. __repr__ = _swig_repr
  22584. def fz_load_outline_from_iterator(self):
  22585. r"""
  22586. Class-aware wrapper for `::fz_load_outline_from_iterator()`.
  22587. Routine to implement the old Structure based API from an iterator.
  22588. """
  22589. return _mupdf.FzOutlineIterator_fz_load_outline_from_iterator(self)
  22590. def fz_outline_iterator_delete(self):
  22591. r"""
  22592. Class-aware wrapper for `::fz_outline_iterator_delete()`.
  22593. Delete the current item.
  22594. This implicitly moves us to the 'next' item, and the return code is as for fz_outline_iterator_next.
  22595. """
  22596. return _mupdf.FzOutlineIterator_fz_outline_iterator_delete(self)
  22597. def fz_outline_iterator_down(self):
  22598. r"""Class-aware wrapper for `::fz_outline_iterator_down()`."""
  22599. return _mupdf.FzOutlineIterator_fz_outline_iterator_down(self)
  22600. def fz_outline_iterator_item(self):
  22601. r"""
  22602. Class-aware wrapper for `::fz_outline_iterator_item()`.
  22603. Call to get the current outline item.
  22604. Can return NULL. The item is only valid until the next call.
  22605. """
  22606. return _mupdf.FzOutlineIterator_fz_outline_iterator_item(self)
  22607. def fz_outline_iterator_next(self):
  22608. r"""
  22609. Class-aware wrapper for `::fz_outline_iterator_next()`.
  22610. Calls to move the iterator position.
  22611. A negative return value means we could not move as requested. Otherwise:
  22612. 0 = the final position has a valid item.
  22613. 1 = not a valid item, but we can insert an item here.
  22614. """
  22615. return _mupdf.FzOutlineIterator_fz_outline_iterator_next(self)
  22616. def fz_outline_iterator_prev(self):
  22617. r"""Class-aware wrapper for `::fz_outline_iterator_prev()`."""
  22618. return _mupdf.FzOutlineIterator_fz_outline_iterator_prev(self)
  22619. def fz_outline_iterator_up(self):
  22620. r"""Class-aware wrapper for `::fz_outline_iterator_up()`."""
  22621. return _mupdf.FzOutlineIterator_fz_outline_iterator_up(self)
  22622. def fz_outline_iterator_insert(self, item):
  22623. r"""Custom wrapper for fz_outline_iterator_insert()."""
  22624. return _mupdf.FzOutlineIterator_fz_outline_iterator_insert(self, item)
  22625. def fz_outline_iterator_update(self, item):
  22626. r"""Custom wrapper for fz_outline_iterator_update()."""
  22627. return _mupdf.FzOutlineIterator_fz_outline_iterator_update(self, item)
  22628. def __init__(self, *args):
  22629. r"""
  22630. *Overload 1:*
  22631. == Constructors. Constructor using `fz_new_outline_iterator()`.
  22632. Get an iterator for the document outline.
  22633. Should be freed by fz_drop_outline_iterator.
  22634. |
  22635. *Overload 2:*
  22636. Constructor using `fz_new_outline_iterator_of_size()`.
  22637. |
  22638. *Overload 3:*
  22639. Constructor using `pdf_new_outline_iterator()`.
  22640. |
  22641. *Overload 4:*
  22642. Default constructor, sets `m_internal` to null.
  22643. |
  22644. *Overload 5:*
  22645. Constructor using raw copy of pre-existing `::fz_outline_iterator`.
  22646. """
  22647. _mupdf.FzOutlineIterator_swiginit(self, _mupdf.new_FzOutlineIterator(*args))
  22648. __swig_destroy__ = _mupdf.delete_FzOutlineIterator
  22649. def m_internal_value(self):
  22650. r"""Return numerical value of .m_internal; helps with Python debugging."""
  22651. return _mupdf.FzOutlineIterator_m_internal_value(self)
  22652. def __nonzero__(self):
  22653. return _mupdf.FzOutlineIterator___nonzero__(self)
  22654. __bool__ = __nonzero__
  22655. m_internal = property(_mupdf.FzOutlineIterator_m_internal_get, _mupdf.FzOutlineIterator_m_internal_set, doc=r"""Pointer to wrapped data.""")
  22656. s_num_instances = property(_mupdf.FzOutlineIterator_s_num_instances_get, _mupdf.FzOutlineIterator_s_num_instances_set)
  22657. # Register FzOutlineIterator in _mupdf:
  22658. _mupdf.FzOutlineIterator_swigregister(FzOutlineIterator)
  22659. class FzOutput(object):
  22660. r"""Wrapper class for struct `fz_output`. Not copyable or assignable."""
  22661. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  22662. __repr__ = _swig_repr
  22663. Fixed_STDOUT = _mupdf.FzOutput_Fixed_STDOUT
  22664. Fixed_STDERR = _mupdf.FzOutput_Fixed_STDERR
  22665. Filter_HEX = _mupdf.FzOutput_Filter_HEX
  22666. Filter_85 = _mupdf.FzOutput_Filter_85
  22667. Filter_RLE = _mupdf.FzOutput_Filter_RLE
  22668. def fz_close_output(self):
  22669. r"""
  22670. Class-aware wrapper for `::fz_close_output()`.
  22671. Flush pending output and close an output stream.
  22672. """
  22673. return _mupdf.FzOutput_fz_close_output(self)
  22674. def fz_debug_store(self):
  22675. r"""
  22676. Class-aware wrapper for `::fz_debug_store()`.
  22677. Output debugging information for the current state of the store
  22678. to the given output channel.
  22679. """
  22680. return _mupdf.FzOutput_fz_debug_store(self)
  22681. def fz_dump_glyph_cache_stats(self):
  22682. r"""
  22683. Class-aware wrapper for `::fz_dump_glyph_cache_stats()`.
  22684. Dump debug statistics for the glyph cache.
  22685. """
  22686. return _mupdf.FzOutput_fz_dump_glyph_cache_stats(self)
  22687. def fz_flush_output(self):
  22688. r"""
  22689. Class-aware wrapper for `::fz_flush_output()`.
  22690. Flush unwritten data.
  22691. """
  22692. return _mupdf.FzOutput_fz_flush_output(self)
  22693. def fz_int2_heap_dump(self, heap):
  22694. r"""Class-aware wrapper for `::fz_int2_heap_dump()`."""
  22695. return _mupdf.FzOutput_fz_int2_heap_dump(self, heap)
  22696. def fz_int_heap_dump(self, heap):
  22697. r"""Class-aware wrapper for `::fz_int_heap_dump()`."""
  22698. return _mupdf.FzOutput_fz_int_heap_dump(self, heap)
  22699. def fz_intptr_heap_dump(self, heap):
  22700. r"""Class-aware wrapper for `::fz_intptr_heap_dump()`."""
  22701. return _mupdf.FzOutput_fz_intptr_heap_dump(self, heap)
  22702. def fz_new_svg_device(self, page_width, page_height, text_format, reuse_images):
  22703. r"""
  22704. Class-aware wrapper for `::fz_new_svg_device()`.
  22705. Create a device that outputs (single page) SVG files to
  22706. the given output stream.
  22707. Equivalent to fz_new_svg_device_with_id passing id = NULL.
  22708. """
  22709. return _mupdf.FzOutput_fz_new_svg_device(self, page_width, page_height, text_format, reuse_images)
  22710. def fz_new_svg_device_with_id(self, page_width, page_height, text_format, reuse_images, id):
  22711. r"""
  22712. Class-aware wrapper for `::fz_new_svg_device_with_id()`.
  22713. This method has out-params. Python/C# wrappers look like:
  22714. `fz_new_svg_device_with_id(float page_width, float page_height, int text_format, int reuse_images)` => `(fz_device *, int id)`
  22715. Create a device that outputs (single page) SVG files to
  22716. the given output stream.
  22717. output: The output stream to send the constructed SVG page to.
  22718. page_width, page_height: The page dimensions to use (in points).
  22719. text_format: How to emit text. One of the following values:
  22720. FZ_SVG_TEXT_AS_TEXT: As <text> elements with possible
  22721. layout errors and mismatching fonts.
  22722. FZ_SVG_TEXT_AS_PATH: As <path> elements with exact
  22723. visual appearance.
  22724. reuse_images: Share image resources using <symbol> definitions.
  22725. id: ID parameter to keep generated IDs unique across SVG files.
  22726. """
  22727. return _mupdf.FzOutput_fz_new_svg_device_with_id(self, page_width, page_height, text_format, reuse_images, id)
  22728. def fz_new_trace_device(self):
  22729. r"""
  22730. Class-aware wrapper for `::fz_new_trace_device()`.
  22731. Create a device to print a debug trace of all device calls.
  22732. """
  22733. return _mupdf.FzOutput_fz_new_trace_device(self)
  22734. def fz_new_xmltext_device(self):
  22735. r"""
  22736. Class-aware wrapper for `::fz_new_xmltext_device()`.
  22737. Create a device to output raw information.
  22738. """
  22739. return _mupdf.FzOutput_fz_new_xmltext_device(self)
  22740. def fz_output_supports_stream(self):
  22741. r"""
  22742. Class-aware wrapper for `::fz_output_supports_stream()`.
  22743. Query whether a given fz_output supports fz_stream_from_output.
  22744. """
  22745. return _mupdf.FzOutput_fz_output_supports_stream(self)
  22746. def fz_output_xml(self, item, level):
  22747. r"""
  22748. Class-aware wrapper for `::fz_output_xml()`.
  22749. Pretty-print an XML tree to given output.
  22750. """
  22751. return _mupdf.FzOutput_fz_output_xml(self, item, level)
  22752. def fz_print_stext_header_as_html(self):
  22753. r"""Class-aware wrapper for `::fz_print_stext_header_as_html()`."""
  22754. return _mupdf.FzOutput_fz_print_stext_header_as_html(self)
  22755. def fz_print_stext_header_as_xhtml(self):
  22756. r"""Class-aware wrapper for `::fz_print_stext_header_as_xhtml()`."""
  22757. return _mupdf.FzOutput_fz_print_stext_header_as_xhtml(self)
  22758. def fz_print_stext_page_as_html(self, page, id):
  22759. r"""
  22760. Class-aware wrapper for `::fz_print_stext_page_as_html()`.
  22761. Output structured text to a file in HTML (visual) format.
  22762. """
  22763. return _mupdf.FzOutput_fz_print_stext_page_as_html(self, page, id)
  22764. def fz_print_stext_page_as_json(self, page, scale):
  22765. r"""
  22766. Class-aware wrapper for `::fz_print_stext_page_as_json()`.
  22767. Output structured text to a file in JSON format.
  22768. """
  22769. return _mupdf.FzOutput_fz_print_stext_page_as_json(self, page, scale)
  22770. def fz_print_stext_page_as_text(self, page):
  22771. r"""
  22772. Class-aware wrapper for `::fz_print_stext_page_as_text()`.
  22773. Output structured text to a file in plain-text UTF-8 format.
  22774. """
  22775. return _mupdf.FzOutput_fz_print_stext_page_as_text(self, page)
  22776. def fz_print_stext_page_as_xhtml(self, page, id):
  22777. r"""
  22778. Class-aware wrapper for `::fz_print_stext_page_as_xhtml()`.
  22779. Output structured text to a file in XHTML (semantic) format.
  22780. """
  22781. return _mupdf.FzOutput_fz_print_stext_page_as_xhtml(self, page, id)
  22782. def fz_print_stext_page_as_xml(self, page, id):
  22783. r"""
  22784. Class-aware wrapper for `::fz_print_stext_page_as_xml()`.
  22785. Output structured text to a file in XML format.
  22786. """
  22787. return _mupdf.FzOutput_fz_print_stext_page_as_xml(self, page, id)
  22788. def fz_print_stext_trailer_as_html(self):
  22789. r"""Class-aware wrapper for `::fz_print_stext_trailer_as_html()`."""
  22790. return _mupdf.FzOutput_fz_print_stext_trailer_as_html(self)
  22791. def fz_print_stext_trailer_as_xhtml(self):
  22792. r"""Class-aware wrapper for `::fz_print_stext_trailer_as_xhtml()`."""
  22793. return _mupdf.FzOutput_fz_print_stext_trailer_as_xhtml(self)
  22794. def fz_reset_output(self):
  22795. r"""
  22796. Class-aware wrapper for `::fz_reset_output()`.
  22797. Reset a closed output stream. Returns state to
  22798. (broadly) that which it was in when opened. Not
  22799. all outputs can be reset, so this may throw an
  22800. exception.
  22801. """
  22802. return _mupdf.FzOutput_fz_reset_output(self)
  22803. def fz_seek_output(self, off, whence):
  22804. r"""
  22805. Class-aware wrapper for `::fz_seek_output()`.
  22806. Seek to the specified file position.
  22807. See fseek for arguments.
  22808. Throw an error on unseekable outputs.
  22809. """
  22810. return _mupdf.FzOutput_fz_seek_output(self, off, whence)
  22811. def fz_set_stddbg(self):
  22812. r"""
  22813. Class-aware wrapper for `::fz_set_stddbg()`.
  22814. Set the output stream to be used for fz_stddbg. Set to NULL to
  22815. reset to default (stderr).
  22816. """
  22817. return _mupdf.FzOutput_fz_set_stddbg(self)
  22818. def fz_stream_from_output(self):
  22819. r"""
  22820. Class-aware wrapper for `::fz_stream_from_output()`.
  22821. Obtain the fz_output in the form of a fz_stream.
  22822. This allows data to be read back from some forms of fz_output
  22823. object. When finished reading, the fz_stream should be released
  22824. by calling fz_drop_stream. Until the fz_stream is dropped, no
  22825. further operations should be performed on the fz_output object.
  22826. """
  22827. return _mupdf.FzOutput_fz_stream_from_output(self)
  22828. def fz_tell_output(self):
  22829. r"""
  22830. Class-aware wrapper for `::fz_tell_output()`.
  22831. Return the current file position.
  22832. Throw an error on untellable outputs.
  22833. """
  22834. return _mupdf.FzOutput_fz_tell_output(self)
  22835. def fz_truncate_output(self):
  22836. r"""
  22837. Class-aware wrapper for `::fz_truncate_output()`.
  22838. Truncate the output at the current position.
  22839. This allows output streams which have seeked back from the end
  22840. of their storage to be truncated at the current point.
  22841. """
  22842. return _mupdf.FzOutput_fz_truncate_output(self)
  22843. def fz_write_base64(self, data, size, newline):
  22844. r"""
  22845. Class-aware wrapper for `::fz_write_base64()`.
  22846. Write a base64 encoded data block, optionally with periodic
  22847. newlines.
  22848. """
  22849. return _mupdf.FzOutput_fz_write_base64(self, data, size, newline)
  22850. def fz_write_base64_buffer(self, data, newline):
  22851. r"""
  22852. Class-aware wrapper for `::fz_write_base64_buffer()`.
  22853. Write a base64 encoded fz_buffer, optionally with periodic
  22854. newlines.
  22855. """
  22856. return _mupdf.FzOutput_fz_write_base64_buffer(self, data, newline)
  22857. def fz_write_bitmap_as_pbm(self, bitmap):
  22858. r"""
  22859. Class-aware wrapper for `::fz_write_bitmap_as_pbm()`.
  22860. Write a bitmap as a pbm.
  22861. """
  22862. return _mupdf.FzOutput_fz_write_bitmap_as_pbm(self, bitmap)
  22863. def fz_write_bitmap_as_pcl(self, bitmap, pcl):
  22864. r"""
  22865. Class-aware wrapper for `::fz_write_bitmap_as_pcl()`.
  22866. Write a bitmap as mono PCL.
  22867. """
  22868. return _mupdf.FzOutput_fz_write_bitmap_as_pcl(self, bitmap, pcl)
  22869. def fz_write_bitmap_as_pkm(self, bitmap):
  22870. r"""
  22871. Class-aware wrapper for `::fz_write_bitmap_as_pkm()`.
  22872. Write a CMYK bitmap as a pkm.
  22873. """
  22874. return _mupdf.FzOutput_fz_write_bitmap_as_pkm(self, bitmap)
  22875. def fz_write_bitmap_as_pwg(self, bitmap, pwg):
  22876. r"""
  22877. Class-aware wrapper for `::fz_write_bitmap_as_pwg()`.
  22878. Write a bitmap as a PWG.
  22879. """
  22880. return _mupdf.FzOutput_fz_write_bitmap_as_pwg(self, bitmap, pwg)
  22881. def fz_write_bitmap_as_pwg_page(self, bitmap, pwg):
  22882. r"""
  22883. Class-aware wrapper for `::fz_write_bitmap_as_pwg_page()`.
  22884. Write a bitmap as a PWG page.
  22885. Caller should provide a file header by calling
  22886. fz_write_pwg_file_header, but can then write several pages to
  22887. the same file.
  22888. """
  22889. return _mupdf.FzOutput_fz_write_bitmap_as_pwg_page(self, bitmap, pwg)
  22890. def fz_write_bits(self, data, num_bits):
  22891. r"""
  22892. Class-aware wrapper for `::fz_write_bits()`.
  22893. Write num_bits of data to the end of the output stream, assumed to be packed
  22894. most significant bits first.
  22895. """
  22896. return _mupdf.FzOutput_fz_write_bits(self, data, num_bits)
  22897. def fz_write_bits_sync(self):
  22898. r"""
  22899. Class-aware wrapper for `::fz_write_bits_sync()`.
  22900. Sync to byte boundary after writing bits.
  22901. """
  22902. return _mupdf.FzOutput_fz_write_bits_sync(self)
  22903. def fz_write_buffer(self, data):
  22904. r"""Class-aware wrapper for `::fz_write_buffer()`."""
  22905. return _mupdf.FzOutput_fz_write_buffer(self, data)
  22906. def fz_write_byte(self, x):
  22907. r"""Class-aware wrapper for `::fz_write_byte()`."""
  22908. return _mupdf.FzOutput_fz_write_byte(self, x)
  22909. def fz_write_char(self, x):
  22910. r"""Class-aware wrapper for `::fz_write_char()`."""
  22911. return _mupdf.FzOutput_fz_write_char(self, x)
  22912. def fz_write_data(self, data, size):
  22913. r"""
  22914. Class-aware wrapper for `::fz_write_data()`.
  22915. Write data to output.
  22916. data: Pointer to data to write.
  22917. size: Size of data to write in bytes.
  22918. """
  22919. return _mupdf.FzOutput_fz_write_data(self, data, size)
  22920. def fz_write_float_be(self, f):
  22921. r"""Class-aware wrapper for `::fz_write_float_be()`."""
  22922. return _mupdf.FzOutput_fz_write_float_be(self, f)
  22923. def fz_write_float_le(self, f):
  22924. r"""Class-aware wrapper for `::fz_write_float_le()`."""
  22925. return _mupdf.FzOutput_fz_write_float_le(self, f)
  22926. def fz_write_image_as_data_uri(self, image):
  22927. r"""
  22928. Class-aware wrapper for `::fz_write_image_as_data_uri()`.
  22929. Write image as a data URI (for HTML and SVG output).
  22930. """
  22931. return _mupdf.FzOutput_fz_write_image_as_data_uri(self, image)
  22932. def fz_write_int16_be(self, x):
  22933. r"""Class-aware wrapper for `::fz_write_int16_be()`."""
  22934. return _mupdf.FzOutput_fz_write_int16_be(self, x)
  22935. def fz_write_int16_le(self, x):
  22936. r"""Class-aware wrapper for `::fz_write_int16_le()`."""
  22937. return _mupdf.FzOutput_fz_write_int16_le(self, x)
  22938. def fz_write_int32_be(self, x):
  22939. r"""
  22940. Class-aware wrapper for `::fz_write_int32_be()`.
  22941. Write different sized data to an output stream.
  22942. """
  22943. return _mupdf.FzOutput_fz_write_int32_be(self, x)
  22944. def fz_write_int32_le(self, x):
  22945. r"""Class-aware wrapper for `::fz_write_int32_le()`."""
  22946. return _mupdf.FzOutput_fz_write_int32_le(self, x)
  22947. def fz_write_json(self, value):
  22948. r"""Class-aware wrapper for `::fz_write_json()`."""
  22949. return _mupdf.FzOutput_fz_write_json(self, value)
  22950. def fz_write_pixmap_as_data_uri(self, pixmap):
  22951. r"""Class-aware wrapper for `::fz_write_pixmap_as_data_uri()`."""
  22952. return _mupdf.FzOutput_fz_write_pixmap_as_data_uri(self, pixmap)
  22953. def fz_write_pixmap_as_jpeg(self, pix, quality, invert_cmyk):
  22954. r"""
  22955. Class-aware wrapper for `::fz_write_pixmap_as_jpeg()`.
  22956. Write a pixmap as a JPEG.
  22957. """
  22958. return _mupdf.FzOutput_fz_write_pixmap_as_jpeg(self, pix, quality, invert_cmyk)
  22959. def fz_write_pixmap_as_jpx(self, pix, quality):
  22960. r"""
  22961. Class-aware wrapper for `::fz_write_pixmap_as_jpx()`.
  22962. Pixmap data as JP2K with no subsampling.
  22963. quality = 100 = lossless
  22964. otherwise for a factor of x compression use 100-x. (so 80 is 1:20 compression)
  22965. """
  22966. return _mupdf.FzOutput_fz_write_pixmap_as_jpx(self, pix, quality)
  22967. def fz_write_pixmap_as_pam(self, pixmap):
  22968. r"""
  22969. Class-aware wrapper for `::fz_write_pixmap_as_pam()`.
  22970. Write a pixmap as a pnm (greyscale, rgb or cmyk, with or without
  22971. alpha).
  22972. """
  22973. return _mupdf.FzOutput_fz_write_pixmap_as_pam(self, pixmap)
  22974. def fz_write_pixmap_as_pcl(self, pixmap, pcl):
  22975. r"""
  22976. Class-aware wrapper for `::fz_write_pixmap_as_pcl()`.
  22977. Write an (RGB) pixmap as color PCL.
  22978. """
  22979. return _mupdf.FzOutput_fz_write_pixmap_as_pcl(self, pixmap, pcl)
  22980. def fz_write_pixmap_as_pclm(self, pixmap, options):
  22981. r"""
  22982. Class-aware wrapper for `::fz_write_pixmap_as_pclm()`.
  22983. Write a (Greyscale or RGB) pixmap as pclm.
  22984. """
  22985. return _mupdf.FzOutput_fz_write_pixmap_as_pclm(self, pixmap, options)
  22986. def fz_write_pixmap_as_pdfocr(self, pixmap, options):
  22987. r"""
  22988. Class-aware wrapper for `::fz_write_pixmap_as_pdfocr()`.
  22989. Write a (Greyscale or RGB) pixmap as pdfocr.
  22990. """
  22991. return _mupdf.FzOutput_fz_write_pixmap_as_pdfocr(self, pixmap, options)
  22992. def fz_write_pixmap_as_png(self, pixmap):
  22993. r"""
  22994. Class-aware wrapper for `::fz_write_pixmap_as_png()`.
  22995. Write a (Greyscale or RGB) pixmap as a png.
  22996. """
  22997. return _mupdf.FzOutput_fz_write_pixmap_as_png(self, pixmap)
  22998. def fz_write_pixmap_as_pnm(self, pixmap):
  22999. r"""
  23000. Class-aware wrapper for `::fz_write_pixmap_as_pnm()`.
  23001. Write a pixmap as a pnm (greyscale or rgb, no alpha).
  23002. """
  23003. return _mupdf.FzOutput_fz_write_pixmap_as_pnm(self, pixmap)
  23004. def fz_write_pixmap_as_ps(self, pixmap):
  23005. r"""
  23006. Class-aware wrapper for `::fz_write_pixmap_as_ps()`.
  23007. Write a (gray, rgb, or cmyk, no alpha) pixmap out as postscript.
  23008. """
  23009. return _mupdf.FzOutput_fz_write_pixmap_as_ps(self, pixmap)
  23010. def fz_write_pixmap_as_psd(self, pixmap):
  23011. r"""
  23012. Class-aware wrapper for `::fz_write_pixmap_as_psd()`.
  23013. Write a pixmap as a PSD file.
  23014. """
  23015. return _mupdf.FzOutput_fz_write_pixmap_as_psd(self, pixmap)
  23016. def fz_write_pixmap_as_pwg(self, pixmap, pwg):
  23017. r"""
  23018. Class-aware wrapper for `::fz_write_pixmap_as_pwg()`.
  23019. Write a pixmap as a PWG.
  23020. """
  23021. return _mupdf.FzOutput_fz_write_pixmap_as_pwg(self, pixmap, pwg)
  23022. def fz_write_pixmap_as_pwg_page(self, pixmap, pwg):
  23023. r"""
  23024. Class-aware wrapper for `::fz_write_pixmap_as_pwg_page()`.
  23025. Write a pixmap as a PWG page.
  23026. Caller should provide a file header by calling
  23027. fz_write_pwg_file_header, but can then write several pages to
  23028. the same file.
  23029. """
  23030. return _mupdf.FzOutput_fz_write_pixmap_as_pwg_page(self, pixmap, pwg)
  23031. def fz_write_ps_file_header(self):
  23032. r"""
  23033. Class-aware wrapper for `::fz_write_ps_file_header()`.
  23034. Write the file level header for ps band writer output.
  23035. """
  23036. return _mupdf.FzOutput_fz_write_ps_file_header(self)
  23037. def fz_write_ps_file_trailer(self, pages):
  23038. r"""
  23039. Class-aware wrapper for `::fz_write_ps_file_trailer()`.
  23040. Write the file level trailer for ps band writer output.
  23041. """
  23042. return _mupdf.FzOutput_fz_write_ps_file_trailer(self, pages)
  23043. def fz_write_pwg_file_header(self):
  23044. r"""
  23045. Class-aware wrapper for `::fz_write_pwg_file_header()`.
  23046. Output the file header to a pwg stream, ready for pages to follow it.
  23047. """
  23048. return _mupdf.FzOutput_fz_write_pwg_file_header(self)
  23049. def fz_write_rune(self, rune):
  23050. r"""
  23051. Class-aware wrapper for `::fz_write_rune()`.
  23052. Write a UTF-8 encoded unicode character.
  23053. """
  23054. return _mupdf.FzOutput_fz_write_rune(self, rune)
  23055. def fz_write_stream(self, _in):
  23056. r"""
  23057. Class-aware wrapper for `::fz_write_stream()`.
  23058. Copy the stream contents to the output.
  23059. """
  23060. return _mupdf.FzOutput_fz_write_stream(self, _in)
  23061. def fz_write_string(self, s):
  23062. r"""
  23063. Class-aware wrapper for `::fz_write_string()`.
  23064. Write a string. Does not write zero terminator.
  23065. """
  23066. return _mupdf.FzOutput_fz_write_string(self, s)
  23067. def fz_write_uint16_be(self, x):
  23068. r"""Class-aware wrapper for `::fz_write_uint16_be()`."""
  23069. return _mupdf.FzOutput_fz_write_uint16_be(self, x)
  23070. def fz_write_uint16_le(self, x):
  23071. r"""Class-aware wrapper for `::fz_write_uint16_le()`."""
  23072. return _mupdf.FzOutput_fz_write_uint16_le(self, x)
  23073. def fz_write_uint32_be(self, x):
  23074. r"""Class-aware wrapper for `::fz_write_uint32_be()`."""
  23075. return _mupdf.FzOutput_fz_write_uint32_be(self, x)
  23076. def fz_write_uint32_le(self, x):
  23077. r"""Class-aware wrapper for `::fz_write_uint32_le()`."""
  23078. return _mupdf.FzOutput_fz_write_uint32_le(self, x)
  23079. def pdf_new_output_processor(self, ahxencode, newlines):
  23080. r"""Class-aware wrapper for `::pdf_new_output_processor()`."""
  23081. return _mupdf.FzOutput_pdf_new_output_processor(self, ahxencode, newlines)
  23082. def pdf_print_crypt(self, crypt):
  23083. r"""Class-aware wrapper for `::pdf_print_crypt()`."""
  23084. return _mupdf.FzOutput_pdf_print_crypt(self, crypt)
  23085. def pdf_print_encrypted_obj(self, obj, tight, ascii, crypt, num, gen, sep):
  23086. r"""
  23087. Class-aware wrapper for `::pdf_print_encrypted_obj()`.
  23088. This method has out-params. Python/C# wrappers look like:
  23089. `pdf_print_encrypted_obj(::pdf_obj *obj, int tight, int ascii, ::pdf_crypt *crypt, int num, int gen)` => int sep
  23090. """
  23091. return _mupdf.FzOutput_pdf_print_encrypted_obj(self, obj, tight, ascii, crypt, num, gen, sep)
  23092. def pdf_print_font(self, fontdesc):
  23093. r"""Class-aware wrapper for `::pdf_print_font()`."""
  23094. return _mupdf.FzOutput_pdf_print_font(self, fontdesc)
  23095. def pdf_print_obj(self, obj, tight, ascii):
  23096. r"""Class-aware wrapper for `::pdf_print_obj()`."""
  23097. return _mupdf.FzOutput_pdf_print_obj(self, obj, tight, ascii)
  23098. def pdf_write_digest(self, byte_range, field, digest_offset, digest_length, signer):
  23099. r"""Class-aware wrapper for `::pdf_write_digest()`."""
  23100. return _mupdf.FzOutput_pdf_write_digest(self, byte_range, field, digest_offset, digest_length, signer)
  23101. def __init__(self, *args):
  23102. r"""
  23103. *Overload 1:*
  23104. == Constructors. Constructor using `fz_new_arc4_output()`.
  23105. |
  23106. *Overload 2:*
  23107. Constructor using `fz_new_deflate_output()`.
  23108. |
  23109. *Overload 3:*
  23110. Constructor using `fz_new_log_for_module()`.
  23111. Internal function to actually do the opening of the logfile.
  23112. Caller should close/drop the output when finished with it.
  23113. |
  23114. *Overload 4:*
  23115. Constructor using `fz_new_output()`.
  23116. Create a new output object with the given
  23117. internal state and function pointers.
  23118. state: Internal state (opaque to everything but implementation).
  23119. write: Function to output a given buffer.
  23120. close: Cleanup function to destroy state when output closed.
  23121. May permissibly be null.
  23122. |
  23123. *Overload 5:*
  23124. Constructor using `fz_new_output_with_buffer()`.
  23125. Open an output stream that appends
  23126. to a buffer.
  23127. buf: The buffer to append to.
  23128. |
  23129. *Overload 6:*
  23130. Constructor using `fz_new_output_with_file_ptr()`.
  23131. Open an output stream that writes to a
  23132. given FILE *.
  23133. file: The file pointers to write to. NULL is interpreted as effectively
  23134. meaning /dev/null or similar.
  23135. |
  23136. *Overload 7:*
  23137. Constructor using `fz_new_output_with_path()`.
  23138. Open an output stream that writes to a
  23139. given path.
  23140. filename: The filename to write to (specified in UTF-8).
  23141. append: non-zero if we should append to the file, rather than
  23142. overwriting it.
  23143. |
  23144. *Overload 8:*
  23145. Uses fz_stdout() or fz_stderr().
  23146. |
  23147. *Overload 9:*
  23148. Calls one of: fz_new_asciihex_output(), fz_new_ascii85_output(), fz_new_rle_output().
  23149. |
  23150. *Overload 10:*
  23151. Constructor using raw copy of pre-existing `::fz_output`.
  23152. |
  23153. *Overload 11:*
  23154. Constructor using raw copy of pre-existing `::fz_output`.
  23155. """
  23156. _mupdf.FzOutput_swiginit(self, _mupdf.new_FzOutput(*args))
  23157. __swig_destroy__ = _mupdf.delete_FzOutput
  23158. def m_internal_value(self):
  23159. r"""Return numerical value of .m_internal; helps with Python debugging."""
  23160. return _mupdf.FzOutput_m_internal_value(self)
  23161. def __nonzero__(self):
  23162. return _mupdf.FzOutput___nonzero__(self)
  23163. __bool__ = __nonzero__
  23164. m_internal = property(_mupdf.FzOutput_m_internal_get, _mupdf.FzOutput_m_internal_set, doc=r"""Pointer to wrapped data.""")
  23165. s_num_instances = property(_mupdf.FzOutput_s_num_instances_get, _mupdf.FzOutput_s_num_instances_set)
  23166. # Register FzOutput in _mupdf:
  23167. _mupdf.FzOutput_swigregister(FzOutput)
  23168. class FzOutput2(FzOutput):
  23169. r"""Wrapper class for struct fz_output with virtual fns for each fnptr; this is for use as a SWIG Director class."""
  23170. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  23171. __repr__ = _swig_repr
  23172. def __init__(self):
  23173. r"""== Constructor."""
  23174. if self.__class__ == FzOutput2:
  23175. _self = None
  23176. else:
  23177. _self = self
  23178. _mupdf.FzOutput2_swiginit(self, _mupdf.new_FzOutput2(_self, ))
  23179. __swig_destroy__ = _mupdf.delete_FzOutput2
  23180. def use_virtual_write(self, use=True):
  23181. r"""
  23182. These methods set the function pointers in *m_internal
  23183. to point to internal callbacks that call our virtual methods.
  23184. """
  23185. return _mupdf.FzOutput2_use_virtual_write(self, use)
  23186. def use_virtual_seek(self, use=True):
  23187. return _mupdf.FzOutput2_use_virtual_seek(self, use)
  23188. def use_virtual_tell(self, use=True):
  23189. return _mupdf.FzOutput2_use_virtual_tell(self, use)
  23190. def use_virtual_close(self, use=True):
  23191. return _mupdf.FzOutput2_use_virtual_close(self, use)
  23192. def use_virtual_drop(self, use=True):
  23193. return _mupdf.FzOutput2_use_virtual_drop(self, use)
  23194. def use_virtual_reset(self, use=True):
  23195. return _mupdf.FzOutput2_use_virtual_reset(self, use)
  23196. def use_virtual_as_stream(self, use=True):
  23197. return _mupdf.FzOutput2_use_virtual_as_stream(self, use)
  23198. def use_virtual_truncate(self, use=True):
  23199. return _mupdf.FzOutput2_use_virtual_truncate(self, use)
  23200. def write(self, arg_0, arg_2, arg_3):
  23201. r"""Default virtual method implementations; these all throw an exception."""
  23202. return _mupdf.FzOutput2_write(self, arg_0, arg_2, arg_3)
  23203. def seek(self, arg_0, arg_2, arg_3):
  23204. return _mupdf.FzOutput2_seek(self, arg_0, arg_2, arg_3)
  23205. def tell(self, arg_0):
  23206. return _mupdf.FzOutput2_tell(self, arg_0)
  23207. def close(self, arg_0):
  23208. return _mupdf.FzOutput2_close(self, arg_0)
  23209. def drop(self, arg_0):
  23210. return _mupdf.FzOutput2_drop(self, arg_0)
  23211. def reset(self, arg_0):
  23212. return _mupdf.FzOutput2_reset(self, arg_0)
  23213. def as_stream(self, arg_0):
  23214. return _mupdf.FzOutput2_as_stream(self, arg_0)
  23215. def truncate(self, arg_0):
  23216. return _mupdf.FzOutput2_truncate(self, arg_0)
  23217. def __disown__(self):
  23218. self.this.disown()
  23219. _mupdf.disown_FzOutput2(self)
  23220. return weakref.proxy(self)
  23221. # Register FzOutput2 in _mupdf:
  23222. _mupdf.FzOutput2_swigregister(FzOutput2)
  23223. class FzOverprint(object):
  23224. r"""
  23225. Wrapper class for struct `fz_overprint`. Not copyable or assignable.
  23226. Pixmaps represent a set of pixels for a 2 dimensional region of
  23227. a plane. Each pixel has n components per pixel. The components
  23228. are in the order process-components, spot-colors, alpha, where
  23229. there can be 0 of any of those types. The data is in
  23230. premultiplied alpha when rendering, but non-premultiplied for
  23231. colorspace conversions and rescaling.
  23232. """
  23233. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  23234. __repr__ = _swig_repr
  23235. def __init__(self, *args):
  23236. r"""
  23237. *Overload 1:*
  23238. Default constructor, sets `m_internal` to null.
  23239. |
  23240. *Overload 2:*
  23241. Constructor using raw copy of pre-existing `::fz_overprint`.
  23242. """
  23243. _mupdf.FzOverprint_swiginit(self, _mupdf.new_FzOverprint(*args))
  23244. __swig_destroy__ = _mupdf.delete_FzOverprint
  23245. def m_internal_value(self):
  23246. r"""Return numerical value of .m_internal; helps with Python debugging."""
  23247. return _mupdf.FzOverprint_m_internal_value(self)
  23248. def __nonzero__(self):
  23249. return _mupdf.FzOverprint___nonzero__(self)
  23250. __bool__ = __nonzero__
  23251. m_internal = property(_mupdf.FzOverprint_m_internal_get, _mupdf.FzOverprint_m_internal_set, doc=r"""Pointer to wrapped data.""")
  23252. s_num_instances = property(_mupdf.FzOverprint_s_num_instances_get, _mupdf.FzOverprint_s_num_instances_set)
  23253. # Register FzOverprint in _mupdf:
  23254. _mupdf.FzOverprint_swigregister(FzOverprint)
  23255. class FzPage(object):
  23256. r"""Wrapper class for struct `fz_page`."""
  23257. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  23258. __repr__ = _swig_repr
  23259. def fz_bound_page(self):
  23260. r"""
  23261. Class-aware wrapper for `::fz_bound_page()`.
  23262. Determine the size of a page at 72 dpi.
  23263. """
  23264. return _mupdf.FzPage_fz_bound_page(self)
  23265. def fz_bound_page_box(self, box):
  23266. r"""Class-aware wrapper for `::fz_bound_page_box()`."""
  23267. return _mupdf.FzPage_fz_bound_page_box(self, box)
  23268. def fz_create_link(self, bbox, uri):
  23269. r"""
  23270. Class-aware wrapper for `::fz_create_link()`.
  23271. Create a new link on a page.
  23272. """
  23273. return _mupdf.FzPage_fz_create_link(self, bbox, uri)
  23274. def fz_delete_link(self, link):
  23275. r"""
  23276. Class-aware wrapper for `::fz_delete_link()`.
  23277. Delete an existing link on a page.
  23278. """
  23279. return _mupdf.FzPage_fz_delete_link(self, link)
  23280. def fz_load_links(self):
  23281. r"""
  23282. Class-aware wrapper for `::fz_load_links()`.
  23283. Load the list of links for a page.
  23284. Returns a linked list of all the links on the page, each with
  23285. its clickable region and link destination. Each link is
  23286. reference counted so drop and free the list of links by
  23287. calling fz_drop_link on the pointer return from fz_load_links.
  23288. page: Page obtained from fz_load_page.
  23289. """
  23290. return _mupdf.FzPage_fz_load_links(self)
  23291. def fz_new_buffer_from_page(self, options):
  23292. r"""Class-aware wrapper for `::fz_new_buffer_from_page()`."""
  23293. return _mupdf.FzPage_fz_new_buffer_from_page(self, options)
  23294. def fz_new_buffer_from_page_with_format(self, format, options, transform, cookie):
  23295. r"""
  23296. Class-aware wrapper for `::fz_new_buffer_from_page_with_format()`.
  23297. Returns an fz_buffer containing a page after conversion to specified format.
  23298. page: The page to convert.
  23299. format, options: Passed to fz_new_document_writer_with_output() internally.
  23300. transform, cookie: Passed to fz_run_page() internally.
  23301. """
  23302. return _mupdf.FzPage_fz_new_buffer_from_page_with_format(self, format, options, transform, cookie)
  23303. def fz_new_display_list_from_page(self):
  23304. r"""
  23305. Class-aware wrapper for `::fz_new_display_list_from_page()`.
  23306. Create a display list.
  23307. Ownership of the display list is returned to the caller.
  23308. """
  23309. return _mupdf.FzPage_fz_new_display_list_from_page(self)
  23310. def fz_new_display_list_from_page_contents(self):
  23311. r"""
  23312. Class-aware wrapper for `::fz_new_display_list_from_page_contents()`.
  23313. Create a display list from page contents (no annotations).
  23314. Ownership of the display list is returned to the caller.
  23315. """
  23316. return _mupdf.FzPage_fz_new_display_list_from_page_contents(self)
  23317. def fz_new_pixmap_from_page(self, ctm, cs, alpha):
  23318. r"""Class-aware wrapper for `::fz_new_pixmap_from_page()`."""
  23319. return _mupdf.FzPage_fz_new_pixmap_from_page(self, ctm, cs, alpha)
  23320. def fz_new_pixmap_from_page_contents(self, ctm, cs, alpha):
  23321. r"""
  23322. Class-aware wrapper for `::fz_new_pixmap_from_page_contents()`.
  23323. Render the page contents without annotations.
  23324. Ownership of the pixmap is returned to the caller.
  23325. """
  23326. return _mupdf.FzPage_fz_new_pixmap_from_page_contents(self, ctm, cs, alpha)
  23327. def fz_new_pixmap_from_page_contents_with_separations(self, ctm, cs, seps, alpha):
  23328. r"""Class-aware wrapper for `::fz_new_pixmap_from_page_contents_with_separations()`."""
  23329. return _mupdf.FzPage_fz_new_pixmap_from_page_contents_with_separations(self, ctm, cs, seps, alpha)
  23330. def fz_new_pixmap_from_page_with_separations(self, ctm, cs, seps, alpha):
  23331. r"""Class-aware wrapper for `::fz_new_pixmap_from_page_with_separations()`."""
  23332. return _mupdf.FzPage_fz_new_pixmap_from_page_with_separations(self, ctm, cs, seps, alpha)
  23333. def fz_page_label(self, buf, size):
  23334. r"""
  23335. Class-aware wrapper for `::fz_page_label()`.
  23336. Get page label for a given page.
  23337. """
  23338. return _mupdf.FzPage_fz_page_label(self, buf, size)
  23339. def fz_page_presentation(self, transition, duration):
  23340. r"""
  23341. Class-aware wrapper for `::fz_page_presentation()`.
  23342. This method has out-params. Python/C# wrappers look like:
  23343. `fz_page_presentation(::fz_transition *transition)` => `(fz_transition *, float duration)`
  23344. Get the presentation details for a given page.
  23345. transition: A pointer to a transition struct to fill out.
  23346. duration: A pointer to a place to set the page duration in
  23347. seconds. Will be set to 0 if no transition is specified for the
  23348. page.
  23349. Returns: a pointer to the transition structure, or NULL if there
  23350. is no transition specified for the page.
  23351. """
  23352. return _mupdf.FzPage_fz_page_presentation(self, transition, duration)
  23353. def fz_page_separations(self):
  23354. r"""
  23355. Class-aware wrapper for `::fz_page_separations()`.
  23356. Get the separations details for a page.
  23357. This will be NULL, unless the format specifically supports
  23358. separations (such as PDF files). May be NULL even
  23359. so, if there are no separations on a page.
  23360. Returns a reference that must be dropped.
  23361. """
  23362. return _mupdf.FzPage_fz_page_separations(self)
  23363. def fz_page_uses_overprint(self):
  23364. r"""
  23365. Class-aware wrapper for `::fz_page_uses_overprint()`.
  23366. Query if a given page requires overprint.
  23367. """
  23368. return _mupdf.FzPage_fz_page_uses_overprint(self)
  23369. def fz_run_page(self, dev, transform, cookie):
  23370. r"""
  23371. Class-aware wrapper for `::fz_run_page()`.
  23372. Run a page through a device.
  23373. page: Page obtained from fz_load_page.
  23374. dev: Device obtained from fz_new_*_device.
  23375. transform: Transform to apply to page. May include for example
  23376. scaling and rotation, see fz_scale, fz_rotate and fz_concat.
  23377. Set to fz_identity if no transformation is desired.
  23378. cookie: Communication mechanism between caller and library
  23379. rendering the page. Intended for multi-threaded applications,
  23380. while single-threaded applications set cookie to NULL. The
  23381. caller may abort an ongoing rendering of a page. Cookie also
  23382. communicates progress information back to the caller. The
  23383. fields inside cookie are continually updated while the page is
  23384. rendering.
  23385. """
  23386. return _mupdf.FzPage_fz_run_page(self, dev, transform, cookie)
  23387. def fz_run_page_annots(self, dev, transform, cookie):
  23388. r"""
  23389. Class-aware wrapper for `::fz_run_page_annots()`.
  23390. Run the annotations on a page through a device.
  23391. """
  23392. return _mupdf.FzPage_fz_run_page_annots(self, dev, transform, cookie)
  23393. def fz_run_page_contents(self, dev, transform, cookie):
  23394. r"""
  23395. Class-aware wrapper for `::fz_run_page_contents()`.
  23396. Run a page through a device. Just the main
  23397. page content, without the annotations, if any.
  23398. page: Page obtained from fz_load_page.
  23399. dev: Device obtained from fz_new_*_device.
  23400. transform: Transform to apply to page. May include for example
  23401. scaling and rotation, see fz_scale, fz_rotate and fz_concat.
  23402. Set to fz_identity if no transformation is desired.
  23403. cookie: Communication mechanism between caller and library
  23404. rendering the page. Intended for multi-threaded applications,
  23405. while single-threaded applications set cookie to NULL. The
  23406. caller may abort an ongoing rendering of a page. Cookie also
  23407. communicates progress information back to the caller. The
  23408. fields inside cookie are continually updated while the page is
  23409. rendering.
  23410. """
  23411. return _mupdf.FzPage_fz_run_page_contents(self, dev, transform, cookie)
  23412. def fz_run_page_widgets(self, dev, transform, cookie):
  23413. r"""
  23414. Class-aware wrapper for `::fz_run_page_widgets()`.
  23415. Run the widgets on a page through a device.
  23416. """
  23417. return _mupdf.FzPage_fz_run_page_widgets(self, dev, transform, cookie)
  23418. def fz_search_page(self, needle, hit_mark, hit_bbox, hit_max):
  23419. r"""
  23420. Class-aware wrapper for `::fz_search_page()`.
  23421. This method has out-params. Python/C# wrappers look like:
  23422. `fz_search_page(const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  23423. Search for the 'needle' text on the page.
  23424. Record the hits in the hit_bbox array and return the number of
  23425. hits. Will stop looking once it has filled hit_max rectangles.
  23426. """
  23427. return _mupdf.FzPage_fz_search_page(self, needle, hit_mark, hit_bbox, hit_max)
  23428. def fz_search_page_cb(self, needle, cb, opaque):
  23429. r"""
  23430. Class-aware wrapper for `::fz_search_page_cb()`.
  23431. Search for the 'needle' text on the page.
  23432. """
  23433. return _mupdf.FzPage_fz_search_page_cb(self, needle, cb, opaque)
  23434. def pdf_page_from_fz_page(self):
  23435. r"""Class-aware wrapper for `::pdf_page_from_fz_page()`."""
  23436. return _mupdf.FzPage_pdf_page_from_fz_page(self)
  23437. def doc(self):
  23438. r"""Returns wrapper for .doc member."""
  23439. return _mupdf.FzPage_doc(self)
  23440. def __init__(self, *args):
  23441. r"""
  23442. *Overload 1:*
  23443. == Constructors. Constructor using `fz_load_chapter_page()`.
  23444. Load a page.
  23445. After fz_load_page is it possible to retrieve the size of the
  23446. page using fz_bound_page, or to render the page using
  23447. fz_run_page_*. Free the page by calling fz_drop_page.
  23448. chapter: chapter number, 0 is the first chapter of the document.
  23449. number: page number, 0 is the first page of the chapter.
  23450. |
  23451. *Overload 2:*
  23452. Constructor using `fz_load_page()`.
  23453. Load a given page number from a document. This may be much less
  23454. efficient than loading by location (chapter+page) for some
  23455. document types.
  23456. |
  23457. *Overload 3:*
  23458. Constructor using `fz_new_page_of_size()`.
  23459. Different document types will be implemented by deriving from
  23460. fz_page. This macro allocates such derived structures, and
  23461. initialises the base sections.
  23462. |
  23463. *Overload 4:*
  23464. Return FzPage for pdfpage.m_internal.super.
  23465. |
  23466. *Overload 5:*
  23467. Copy constructor using `fz_keep_page()`.
  23468. |
  23469. *Overload 6:*
  23470. Default constructor, sets `m_internal` to null.
  23471. |
  23472. *Overload 7:*
  23473. Constructor using raw copy of pre-existing `::fz_page`.
  23474. """
  23475. _mupdf.FzPage_swiginit(self, _mupdf.new_FzPage(*args))
  23476. __swig_destroy__ = _mupdf.delete_FzPage
  23477. def m_internal_value(self):
  23478. r"""Return numerical value of .m_internal; helps with Python debugging."""
  23479. return _mupdf.FzPage_m_internal_value(self)
  23480. def __nonzero__(self):
  23481. return _mupdf.FzPage___nonzero__(self)
  23482. __bool__ = __nonzero__
  23483. m_internal = property(_mupdf.FzPage_m_internal_get, _mupdf.FzPage_m_internal_set, doc=r"""Pointer to wrapped data.""")
  23484. s_num_instances = property(_mupdf.FzPage_s_num_instances_get, _mupdf.FzPage_s_num_instances_set)
  23485. # Register FzPage in _mupdf:
  23486. _mupdf.FzPage_swigregister(FzPage)
  23487. class FzPath(object):
  23488. r"""
  23489. Wrapper class for struct `fz_path`.
  23490. Vector path buffer.
  23491. It can be stroked and dashed, or be filled.
  23492. It has a fill rule (nonzero or even_odd).
  23493. When rendering, they are flattened, stroked and dashed straight
  23494. into the Global Edge List.
  23495. """
  23496. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  23497. __repr__ = _swig_repr
  23498. def fz_bound_path(self, stroke, ctm):
  23499. r"""
  23500. Class-aware wrapper for `::fz_bound_path()`.
  23501. Return a bounding rectangle for a path.
  23502. path: The path to bound.
  23503. stroke: If NULL, the bounding rectangle given is for
  23504. the filled path. If non-NULL the bounding rectangle
  23505. given is for the path stroked with the given attributes.
  23506. ctm: The matrix to apply to the path during stroking.
  23507. r: Pointer to a fz_rect which will be used to hold
  23508. the result.
  23509. Returns r, updated to contain the bounding rectangle.
  23510. """
  23511. return _mupdf.FzPath_fz_bound_path(self, stroke, ctm)
  23512. def fz_clone_path(self):
  23513. r"""
  23514. Class-aware wrapper for `::fz_clone_path()`.
  23515. Clone the data for a path.
  23516. This is used in preference to fz_keep_path when a whole
  23517. new copy of a path is required, rather than just a shared
  23518. pointer. This probably indicates that the path is about to
  23519. be modified.
  23520. path: path to clone.
  23521. Throws exceptions on failure to allocate.
  23522. """
  23523. return _mupdf.FzPath_fz_clone_path(self)
  23524. def fz_closepath(self):
  23525. r"""
  23526. Class-aware wrapper for `::fz_closepath()`.
  23527. Close the current subpath.
  23528. path: The path to modify.
  23529. Throws exceptions on failure to allocate, attempting to modify
  23530. a packed path, and illegal path closes (i.e. closing a non open
  23531. path).
  23532. """
  23533. return _mupdf.FzPath_fz_closepath(self)
  23534. def fz_currentpoint(self):
  23535. r"""
  23536. Class-aware wrapper for `::fz_currentpoint()`.
  23537. Return the current point that a path has
  23538. reached or (0,0) if empty.
  23539. path: path to return the current point of.
  23540. """
  23541. return _mupdf.FzPath_fz_currentpoint(self)
  23542. def fz_curveto(self, x0, y0, x1, y1, x2, y2):
  23543. r"""
  23544. Class-aware wrapper for `::fz_curveto()`.
  23545. Append a 'curveto' command to an open path. (For a
  23546. cubic bezier).
  23547. path: The path to modify.
  23548. x0, y0: The coordinates of the first control point for the
  23549. curve.
  23550. x1, y1: The coordinates of the second control point for the
  23551. curve.
  23552. x2, y2: The end coordinates for the curve.
  23553. Throws exceptions on failure to allocate, or attempting to
  23554. modify a packed path.
  23555. """
  23556. return _mupdf.FzPath_fz_curveto(self, x0, y0, x1, y1, x2, y2)
  23557. def fz_curvetov(self, x1, y1, x2, y2):
  23558. r"""
  23559. Class-aware wrapper for `::fz_curvetov()`.
  23560. Append a 'curvetov' command to an open path. (For a
  23561. cubic bezier with the first control coordinate equal to
  23562. the start point).
  23563. path: The path to modify.
  23564. x1, y1: The coordinates of the second control point for the
  23565. curve.
  23566. x2, y2: The end coordinates for the curve.
  23567. Throws exceptions on failure to allocate, or attempting to
  23568. modify a packed path.
  23569. """
  23570. return _mupdf.FzPath_fz_curvetov(self, x1, y1, x2, y2)
  23571. def fz_curvetoy(self, x0, y0, x2, y2):
  23572. r"""
  23573. Class-aware wrapper for `::fz_curvetoy()`.
  23574. Append a 'curvetoy' command to an open path. (For a
  23575. cubic bezier with the second control coordinate equal to
  23576. the end point).
  23577. path: The path to modify.
  23578. x0, y0: The coordinates of the first control point for the
  23579. curve.
  23580. x2, y2: The end coordinates for the curve (and the second
  23581. control coordinate).
  23582. Throws exceptions on failure to allocate, or attempting to
  23583. modify a packed path.
  23584. """
  23585. return _mupdf.FzPath_fz_curvetoy(self, x0, y0, x2, y2)
  23586. def fz_lineto(self, x, y):
  23587. r"""
  23588. Class-aware wrapper for `::fz_lineto()`.
  23589. Append a 'lineto' command to an open path.
  23590. path: The path to modify.
  23591. x, y: The coordinate to line to.
  23592. Throws exceptions on failure to allocate, or attempting to
  23593. modify a packed path.
  23594. """
  23595. return _mupdf.FzPath_fz_lineto(self, x, y)
  23596. def fz_moveto(self, x, y):
  23597. r"""
  23598. Class-aware wrapper for `::fz_moveto()`.
  23599. Append a 'moveto' command to a path.
  23600. This 'opens' a path.
  23601. path: The path to modify.
  23602. x, y: The coordinate to move to.
  23603. Throws exceptions on failure to allocate, or attempting to
  23604. modify a packed path.
  23605. """
  23606. return _mupdf.FzPath_fz_moveto(self, x, y)
  23607. def fz_packed_path_size(self):
  23608. r"""
  23609. Class-aware wrapper for `::fz_packed_path_size()`.
  23610. Return the number of bytes required to pack a path.
  23611. """
  23612. return _mupdf.FzPath_fz_packed_path_size(self)
  23613. def fz_path_is_rect(self, ctm):
  23614. r"""
  23615. Class-aware wrapper for `::fz_path_is_rect()`.
  23616. Check whether a given path, under the given transform
  23617. is an axis-aligned rectangle.
  23618. We accept zero width or height rectangles, so
  23619. "move 100, 100; line 200, 100" would count as
  23620. a rectangle too.
  23621. """
  23622. return _mupdf.FzPath_fz_path_is_rect(self, ctm)
  23623. def fz_path_is_rect_with_bounds(self, ctm, bounds):
  23624. r"""
  23625. Class-aware wrapper for `::fz_path_is_rect_with_bounds()`.
  23626. Check whether a given path, under the given transform
  23627. is an axis-aligned rectangle.
  23628. We accept zero width or height rectangles, so
  23629. "move 100, 100; line 200, 100" would count as
  23630. a rectangle too.
  23631. bounds = NULL, or place to return the rectangle
  23632. bounds if the path is a rectangle.
  23633. """
  23634. return _mupdf.FzPath_fz_path_is_rect_with_bounds(self, ctm, bounds)
  23635. def fz_quadto(self, x0, y0, x1, y1):
  23636. r"""
  23637. Class-aware wrapper for `::fz_quadto()`.
  23638. Append a 'quadto' command to an open path. (For a
  23639. quadratic bezier).
  23640. path: The path to modify.
  23641. x0, y0: The control coordinates for the quadratic curve.
  23642. x1, y1: The end coordinates for the quadratic curve.
  23643. Throws exceptions on failure to allocate, or attempting to
  23644. modify a packed path.
  23645. """
  23646. return _mupdf.FzPath_fz_quadto(self, x0, y0, x1, y1)
  23647. def fz_rectto(self, x0, y0, x1, y1):
  23648. r"""
  23649. Class-aware wrapper for `::fz_rectto()`.
  23650. Append a 'rectto' command to an open path.
  23651. The rectangle is equivalent to:
  23652. moveto x0 y0
  23653. lineto x1 y0
  23654. lineto x1 y1
  23655. lineto x0 y1
  23656. closepath
  23657. path: The path to modify.
  23658. x0, y0: First corner of the rectangle.
  23659. x1, y1: Second corner of the rectangle.
  23660. Throws exceptions on failure to allocate, or attempting to
  23661. modify a packed path.
  23662. """
  23663. return _mupdf.FzPath_fz_rectto(self, x0, y0, x1, y1)
  23664. def fz_transform_path(self, transform):
  23665. r"""
  23666. Class-aware wrapper for `::fz_transform_path()`.
  23667. Transform a path by a given
  23668. matrix.
  23669. path: The path to modify (must not be a packed path).
  23670. transform: The transform to apply.
  23671. Throws exceptions if the path is packed, or on failure
  23672. to allocate.
  23673. """
  23674. return _mupdf.FzPath_fz_transform_path(self, transform)
  23675. def fz_trim_path(self):
  23676. r"""
  23677. Class-aware wrapper for `::fz_trim_path()`.
  23678. Minimise the internal storage used by a path.
  23679. As paths are constructed, the internal buffers
  23680. grow. To avoid repeated reallocations they
  23681. grow with some spare space. Once a path has
  23682. been fully constructed, this call allows the
  23683. excess space to be trimmed.
  23684. """
  23685. return _mupdf.FzPath_fz_trim_path(self)
  23686. def fz_walk_path(self, walker, arg):
  23687. r"""
  23688. Class-aware wrapper for `::fz_walk_path()`.
  23689. Walk the segments of a path, calling the
  23690. appropriate callback function from a given set for each
  23691. segment of the path.
  23692. path: The path to walk.
  23693. walker: The set of callback functions to use. The first
  23694. 4 callback pointers in the set must be non-NULL. The
  23695. subsequent ones can either be supplied, or can be left
  23696. as NULL, in which case the top 4 functions will be
  23697. called as appropriate to simulate them.
  23698. arg: An opaque argument passed in to each callback.
  23699. Exceptions will only be thrown if the underlying callback
  23700. functions throw them.
  23701. """
  23702. return _mupdf.FzPath_fz_walk_path(self, walker, arg)
  23703. def __init__(self, *args):
  23704. r"""
  23705. *Overload 1:*
  23706. == Constructors. Constructor using `fz_new_path()`.
  23707. Create a new (empty) path structure.
  23708. |
  23709. *Overload 2:*
  23710. Copy constructor using `fz_keep_path()`.
  23711. |
  23712. *Overload 3:*
  23713. Constructor using raw copy of pre-existing `::fz_path`.
  23714. """
  23715. _mupdf.FzPath_swiginit(self, _mupdf.new_FzPath(*args))
  23716. __swig_destroy__ = _mupdf.delete_FzPath
  23717. def m_internal_value(self):
  23718. r"""Return numerical value of .m_internal; helps with Python debugging."""
  23719. return _mupdf.FzPath_m_internal_value(self)
  23720. def __nonzero__(self):
  23721. return _mupdf.FzPath___nonzero__(self)
  23722. __bool__ = __nonzero__
  23723. m_internal = property(_mupdf.FzPath_m_internal_get, _mupdf.FzPath_m_internal_set, doc=r"""Pointer to wrapped data.""")
  23724. s_num_instances = property(_mupdf.FzPath_s_num_instances_get, _mupdf.FzPath_s_num_instances_set)
  23725. # Register FzPath in _mupdf:
  23726. _mupdf.FzPath_swigregister(FzPath)
  23727. class FzPathWalker(object):
  23728. r"""Wrapper class for struct `fz_path_walker`. Not copyable or assignable."""
  23729. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  23730. __repr__ = _swig_repr
  23731. def __init__(self, internal=None):
  23732. r"""Constructor using raw copy of pre-existing `::fz_path_walker`."""
  23733. _mupdf.FzPathWalker_swiginit(self, _mupdf.new_FzPathWalker(internal))
  23734. __swig_destroy__ = _mupdf.delete_FzPathWalker
  23735. def m_internal_value(self):
  23736. r"""Return numerical value of .m_internal; helps with Python debugging."""
  23737. return _mupdf.FzPathWalker_m_internal_value(self)
  23738. def __nonzero__(self):
  23739. return _mupdf.FzPathWalker___nonzero__(self)
  23740. __bool__ = __nonzero__
  23741. m_internal = property(_mupdf.FzPathWalker_m_internal_get, _mupdf.FzPathWalker_m_internal_set, doc=r"""Pointer to wrapped data.""")
  23742. s_num_instances = property(_mupdf.FzPathWalker_s_num_instances_get, _mupdf.FzPathWalker_s_num_instances_set)
  23743. # Register FzPathWalker in _mupdf:
  23744. _mupdf.FzPathWalker_swigregister(FzPathWalker)
  23745. class FzPathWalker2(FzPathWalker):
  23746. r"""Wrapper class for struct fz_path_walker with virtual fns for each fnptr; this is for use as a SWIG Director class."""
  23747. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  23748. __repr__ = _swig_repr
  23749. def __init__(self):
  23750. r"""== Constructor."""
  23751. if self.__class__ == FzPathWalker2:
  23752. _self = None
  23753. else:
  23754. _self = self
  23755. _mupdf.FzPathWalker2_swiginit(self, _mupdf.new_FzPathWalker2(_self, ))
  23756. __swig_destroy__ = _mupdf.delete_FzPathWalker2
  23757. def use_virtual_moveto(self, use=True):
  23758. r"""
  23759. These methods set the function pointers in *m_internal
  23760. to point to internal callbacks that call our virtual methods.
  23761. """
  23762. return _mupdf.FzPathWalker2_use_virtual_moveto(self, use)
  23763. def use_virtual_lineto(self, use=True):
  23764. return _mupdf.FzPathWalker2_use_virtual_lineto(self, use)
  23765. def use_virtual_curveto(self, use=True):
  23766. return _mupdf.FzPathWalker2_use_virtual_curveto(self, use)
  23767. def use_virtual_closepath(self, use=True):
  23768. return _mupdf.FzPathWalker2_use_virtual_closepath(self, use)
  23769. def use_virtual_quadto(self, use=True):
  23770. return _mupdf.FzPathWalker2_use_virtual_quadto(self, use)
  23771. def use_virtual_curvetov(self, use=True):
  23772. return _mupdf.FzPathWalker2_use_virtual_curvetov(self, use)
  23773. def use_virtual_curvetoy(self, use=True):
  23774. return _mupdf.FzPathWalker2_use_virtual_curvetoy(self, use)
  23775. def use_virtual_rectto(self, use=True):
  23776. return _mupdf.FzPathWalker2_use_virtual_rectto(self, use)
  23777. def moveto(self, arg_0, arg_2, arg_3):
  23778. r"""Default virtual method implementations; these all throw an exception."""
  23779. return _mupdf.FzPathWalker2_moveto(self, arg_0, arg_2, arg_3)
  23780. def lineto(self, arg_0, arg_2, arg_3):
  23781. return _mupdf.FzPathWalker2_lineto(self, arg_0, arg_2, arg_3)
  23782. def curveto(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7):
  23783. return _mupdf.FzPathWalker2_curveto(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7)
  23784. def closepath(self, arg_0):
  23785. return _mupdf.FzPathWalker2_closepath(self, arg_0)
  23786. def quadto(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  23787. return _mupdf.FzPathWalker2_quadto(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  23788. def curvetov(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  23789. return _mupdf.FzPathWalker2_curvetov(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  23790. def curvetoy(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  23791. return _mupdf.FzPathWalker2_curvetoy(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  23792. def rectto(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  23793. return _mupdf.FzPathWalker2_rectto(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  23794. def __disown__(self):
  23795. self.this.disown()
  23796. _mupdf.disown_FzPathWalker2(self)
  23797. return weakref.proxy(self)
  23798. # Register FzPathWalker2 in _mupdf:
  23799. _mupdf.FzPathWalker2_swigregister(FzPathWalker2)
  23800. class FzPclOptions(object):
  23801. r"""
  23802. Wrapper class for struct `fz_pcl_options`. Not copyable or assignable.
  23803. PCL output
  23804. """
  23805. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  23806. __repr__ = _swig_repr
  23807. def fz_pcl_preset(self, preset):
  23808. r"""
  23809. Class-aware wrapper for `::fz_pcl_preset()`.
  23810. Initialize PCL option struct for a given preset.
  23811. Currently defined presets include:
  23812. generic Generic PCL printer
  23813. ljet4 HP DeskJet
  23814. dj500 HP DeskJet 500
  23815. fs600 Kyocera FS-600
  23816. lj HP LaserJet, HP LaserJet Plus
  23817. lj2 HP LaserJet IIp, HP LaserJet IId
  23818. lj3 HP LaserJet III
  23819. lj3d HP LaserJet IIId
  23820. lj4 HP LaserJet 4
  23821. lj4pl HP LaserJet 4 PL
  23822. lj4d HP LaserJet 4d
  23823. lp2563b HP 2563B line printer
  23824. oce9050 Oce 9050 Line printer
  23825. """
  23826. return _mupdf.FzPclOptions_fz_pcl_preset(self, preset)
  23827. def __init__(self, *args):
  23828. r"""
  23829. *Overload 1:*
  23830. == Constructors. Constructor using `fz_parse_pcl_options()`.
  23831. Parse PCL options.
  23832. Currently defined options and values are as follows:
  23833. preset=X Either "generic" or one of the presets as for fz_pcl_preset.
  23834. spacing=0 No vertical spacing capability
  23835. spacing=1 PCL 3 spacing (<ESC>*p+<n>Y)
  23836. spacing=2 PCL 4 spacing (<ESC>*b<n>Y)
  23837. spacing=3 PCL 5 spacing (<ESC>*b<n>Y and clear seed row)
  23838. mode2 Disable/Enable mode 2 graphics compression
  23839. mode3 Disable/Enable mode 3 graphics compression
  23840. eog_reset End of graphics (<ESC>*rB) resets all parameters
  23841. has_duplex Duplex supported (<ESC>&l<duplex>S)
  23842. has_papersize Papersize setting supported (<ESC>&l<sizecode>A)
  23843. has_copies Number of copies supported (<ESC>&l<copies>X)
  23844. is_ljet4pjl Disable/Enable HP 4PJL model-specific output
  23845. is_oce9050 Disable/Enable Oce 9050 model-specific output
  23846. |
  23847. *Overload 2:*
  23848. Default constructor, sets `m_internal` to null.
  23849. |
  23850. *Overload 3:*
  23851. Constructor using raw copy of pre-existing `::fz_pcl_options`.
  23852. """
  23853. _mupdf.FzPclOptions_swiginit(self, _mupdf.new_FzPclOptions(*args))
  23854. __swig_destroy__ = _mupdf.delete_FzPclOptions
  23855. def m_internal_value(self):
  23856. r"""Return numerical value of .m_internal; helps with Python debugging."""
  23857. return _mupdf.FzPclOptions_m_internal_value(self)
  23858. def __nonzero__(self):
  23859. return _mupdf.FzPclOptions___nonzero__(self)
  23860. __bool__ = __nonzero__
  23861. m_internal = property(_mupdf.FzPclOptions_m_internal_get, _mupdf.FzPclOptions_m_internal_set, doc=r"""Pointer to wrapped data.""")
  23862. s_num_instances = property(_mupdf.FzPclOptions_s_num_instances_get, _mupdf.FzPclOptions_s_num_instances_set)
  23863. # Register FzPclOptions in _mupdf:
  23864. _mupdf.FzPclOptions_swigregister(FzPclOptions)
  23865. class FzPclmOptions(object):
  23866. r"""
  23867. Wrapper class for struct `fz_pclm_options`. Not copyable or assignable.
  23868. PCLm output
  23869. """
  23870. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  23871. __repr__ = _swig_repr
  23872. def __init__(self, *args):
  23873. r"""
  23874. *Overload 1:*
  23875. == Constructors. Constructor using `fz_parse_pclm_options()`.
  23876. Parse PCLm options.
  23877. Currently defined options and values are as follows:
  23878. compression=none: No compression
  23879. compression=flate: Flate compression
  23880. strip-height=n: Strip height (default 16)
  23881. |
  23882. *Overload 2:*
  23883. Construct using fz_parse_pclm_options().
  23884. |
  23885. *Overload 3:*
  23886. Default constructor, sets `m_internal` to null.
  23887. |
  23888. *Overload 4:*
  23889. Constructor using raw copy of pre-existing `::fz_pclm_options`.
  23890. """
  23891. _mupdf.FzPclmOptions_swiginit(self, _mupdf.new_FzPclmOptions(*args))
  23892. __swig_destroy__ = _mupdf.delete_FzPclmOptions
  23893. def m_internal_value(self):
  23894. r"""Return numerical value of .m_internal; helps with Python debugging."""
  23895. return _mupdf.FzPclmOptions_m_internal_value(self)
  23896. def __nonzero__(self):
  23897. return _mupdf.FzPclmOptions___nonzero__(self)
  23898. __bool__ = __nonzero__
  23899. m_internal = property(_mupdf.FzPclmOptions_m_internal_get, _mupdf.FzPclmOptions_m_internal_set, doc=r"""Pointer to wrapped data.""")
  23900. s_num_instances = property(_mupdf.FzPclmOptions_s_num_instances_get, _mupdf.FzPclmOptions_s_num_instances_set)
  23901. # Register FzPclmOptions in _mupdf:
  23902. _mupdf.FzPclmOptions_swigregister(FzPclmOptions)
  23903. class FzPdfocrOptions(object):
  23904. r"""
  23905. Wrapper class for struct `fz_pdfocr_options`.
  23906. PDFOCR output
  23907. """
  23908. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  23909. __repr__ = _swig_repr
  23910. def fz_parse_pdfocr_options(self, args):
  23911. r"""
  23912. Class-aware wrapper for `::fz_parse_pdfocr_options()`.
  23913. Parse PDFOCR options.
  23914. Currently defined options and values are as follows:
  23915. compression=none: No compression
  23916. compression=flate: Flate compression
  23917. strip-height=n: Strip height (default 16)
  23918. ocr-language=<lang>: OCR Language (default eng)
  23919. ocr-datadir=<datadir>: OCR data path (default rely on TESSDATA_PREFIX)
  23920. """
  23921. return _mupdf.FzPdfocrOptions_fz_parse_pdfocr_options(self, args)
  23922. def language_set2(self, language):
  23923. r"""Copies <language> into this->language, truncating if necessary."""
  23924. return _mupdf.FzPdfocrOptions_language_set2(self, language)
  23925. def datadir_set2(self, datadir):
  23926. r"""Copies <datadir> into this->datadir, truncating if necessary."""
  23927. return _mupdf.FzPdfocrOptions_datadir_set2(self, datadir)
  23928. def __init__(self, *args):
  23929. r"""
  23930. *Overload 1:*
  23931. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  23932. |
  23933. *Overload 2:*
  23934. Constructor using raw copy of pre-existing `::fz_pdfocr_options`.
  23935. |
  23936. *Overload 3:*
  23937. Constructor using raw copy of pre-existing `::fz_pdfocr_options`.
  23938. """
  23939. _mupdf.FzPdfocrOptions_swiginit(self, _mupdf.new_FzPdfocrOptions(*args))
  23940. def internal(self, *args):
  23941. r"""
  23942. *Overload 1:*
  23943. Access as underlying struct.
  23944. |
  23945. *Overload 2:*
  23946. Access as underlying struct.
  23947. """
  23948. return _mupdf.FzPdfocrOptions_internal(self, *args)
  23949. __swig_destroy__ = _mupdf.delete_FzPdfocrOptions
  23950. compress = property(_mupdf.FzPdfocrOptions_compress_get, _mupdf.FzPdfocrOptions_compress_set)
  23951. strip_height = property(_mupdf.FzPdfocrOptions_strip_height_get, _mupdf.FzPdfocrOptions_strip_height_set)
  23952. language = property(_mupdf.FzPdfocrOptions_language_get, _mupdf.FzPdfocrOptions_language_set)
  23953. datadir = property(_mupdf.FzPdfocrOptions_datadir_get, _mupdf.FzPdfocrOptions_datadir_set)
  23954. skew_correct = property(_mupdf.FzPdfocrOptions_skew_correct_get, _mupdf.FzPdfocrOptions_skew_correct_set)
  23955. skew_angle = property(_mupdf.FzPdfocrOptions_skew_angle_get, _mupdf.FzPdfocrOptions_skew_angle_set)
  23956. skew_border = property(_mupdf.FzPdfocrOptions_skew_border_get, _mupdf.FzPdfocrOptions_skew_border_set)
  23957. page_count = property(_mupdf.FzPdfocrOptions_page_count_get, _mupdf.FzPdfocrOptions_page_count_set)
  23958. s_num_instances = property(_mupdf.FzPdfocrOptions_s_num_instances_get, _mupdf.FzPdfocrOptions_s_num_instances_set)
  23959. def to_string(self):
  23960. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  23961. return _mupdf.FzPdfocrOptions_to_string(self)
  23962. def __eq__(self, rhs):
  23963. r"""Comparison method."""
  23964. return _mupdf.FzPdfocrOptions___eq__(self, rhs)
  23965. def __ne__(self, rhs):
  23966. r"""Comparison method."""
  23967. return _mupdf.FzPdfocrOptions___ne__(self, rhs)
  23968. # Register FzPdfocrOptions in _mupdf:
  23969. _mupdf.FzPdfocrOptions_swigregister(FzPdfocrOptions)
  23970. class FzPixmap(object):
  23971. r"""
  23972. Wrapper class for struct `fz_pixmap`.
  23973. Pixmaps represent a set of pixels for a 2 dimensional region of
  23974. a plane. Each pixel has n components per pixel. The components
  23975. are in the order process-components, spot-colors, alpha, where
  23976. there can be 0 of any of those types. The data is in
  23977. premultiplied alpha when rendering, but non-premultiplied for
  23978. colorspace conversions and rescaling.
  23979. """
  23980. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  23981. __repr__ = _swig_repr
  23982. @staticmethod
  23983. def pdf_new_pixmap_from_page_with_usage(page, ctm, cs, alpha, usage, box):
  23984. r"""Class-aware wrapper for `::pdf_new_pixmap_from_page_with_usage()`."""
  23985. return _mupdf.FzPixmap_pdf_new_pixmap_from_page_with_usage(page, ctm, cs, alpha, usage, box)
  23986. @staticmethod
  23987. def pdf_new_pixmap_from_page_with_separations_and_usage(page, ctm, cs, seps, alpha, usage, box):
  23988. r"""Class-aware wrapper for `::pdf_new_pixmap_from_page_with_separations_and_usage()`."""
  23989. return _mupdf.FzPixmap_pdf_new_pixmap_from_page_with_separations_and_usage(page, ctm, cs, seps, alpha, usage, box)
  23990. @staticmethod
  23991. def fz_new_pixmap_from_page_contents(page, ctm, cs, alpha):
  23992. r"""
  23993. Class-aware wrapper for `::fz_new_pixmap_from_page_contents()`.
  23994. Render the page contents without annotations.
  23995. Ownership of the pixmap is returned to the caller.
  23996. """
  23997. return _mupdf.FzPixmap_fz_new_pixmap_from_page_contents(page, ctm, cs, alpha)
  23998. @staticmethod
  23999. def fz_new_pixmap_from_page_contents_with_separations(page, ctm, cs, seps, alpha):
  24000. r"""Class-aware wrapper for `::fz_new_pixmap_from_page_contents_with_separations()`."""
  24001. return _mupdf.FzPixmap_fz_new_pixmap_from_page_contents_with_separations(page, ctm, cs, seps, alpha)
  24002. def fz_alpha_from_gray(self):
  24003. r"""Class-aware wrapper for `::fz_alpha_from_gray()`."""
  24004. return _mupdf.FzPixmap_fz_alpha_from_gray(self)
  24005. def fz_autowarp_pixmap(self, points):
  24006. r"""Class-aware wrapper for `::fz_autowarp_pixmap()`."""
  24007. return _mupdf.FzPixmap_fz_autowarp_pixmap(self, points)
  24008. def fz_clear_pixmap(self):
  24009. r"""
  24010. Class-aware wrapper for `::fz_clear_pixmap()`.
  24011. Sets all components (including alpha) of
  24012. all pixels in a pixmap to 0.
  24013. pix: The pixmap to clear.
  24014. """
  24015. return _mupdf.FzPixmap_fz_clear_pixmap(self)
  24016. def fz_clear_pixmap_rect_with_value(self, value, r):
  24017. r"""
  24018. Class-aware wrapper for `::fz_clear_pixmap_rect_with_value()`.
  24019. Clears a subrect of a pixmap with the given value.
  24020. pix: The pixmap to clear.
  24021. value: Values in the range 0 to 255 are valid. Each component
  24022. sample for each pixel in the pixmap will be set to this value,
  24023. while alpha will always be set to 255 (non-transparent).
  24024. r: the rectangle.
  24025. """
  24026. return _mupdf.FzPixmap_fz_clear_pixmap_rect_with_value(self, value, r)
  24027. def fz_clear_pixmap_with_value(self, value):
  24028. r"""
  24029. Class-aware wrapper for `::fz_clear_pixmap_with_value()`.
  24030. Clears a pixmap with the given value.
  24031. pix: The pixmap to clear.
  24032. value: Values in the range 0 to 255 are valid. Each component
  24033. sample for each pixel in the pixmap will be set to this value,
  24034. while alpha will always be set to 255 (non-transparent).
  24035. This function is horrible, and should be removed from the
  24036. API and replaced with a less magic one.
  24037. """
  24038. return _mupdf.FzPixmap_fz_clear_pixmap_with_value(self, value)
  24039. def fz_clone_pixmap(self):
  24040. r"""
  24041. Class-aware wrapper for `::fz_clone_pixmap()`.
  24042. Clone a pixmap, copying the pixels and associated data to new
  24043. storage.
  24044. The reference count of 'old' is unchanged.
  24045. """
  24046. return _mupdf.FzPixmap_fz_clone_pixmap(self)
  24047. def fz_clone_pixmap_area_with_different_seps(self, bbox, dcs, seps, color_params, default_cs):
  24048. r"""Class-aware wrapper for `::fz_clone_pixmap_area_with_different_seps()`."""
  24049. return _mupdf.FzPixmap_fz_clone_pixmap_area_with_different_seps(self, bbox, dcs, seps, color_params, default_cs)
  24050. def fz_convert_indexed_pixmap_to_base(self):
  24051. r"""
  24052. Class-aware wrapper for `::fz_convert_indexed_pixmap_to_base()`.
  24053. Convert pixmap from indexed to base colorspace.
  24054. This creates a new bitmap containing the converted pixmap data.
  24055. """
  24056. return _mupdf.FzPixmap_fz_convert_indexed_pixmap_to_base(self)
  24057. def fz_convert_pixmap(self, cs_des, prf, default_cs, color_params, keep_alpha):
  24058. r"""
  24059. Class-aware wrapper for `::fz_convert_pixmap()`.
  24060. Convert an existing pixmap to a desired
  24061. colorspace. Other properties of the pixmap, such as resolution
  24062. and position are copied to the converted pixmap.
  24063. pix: The pixmap to convert.
  24064. default_cs: If NULL pix->colorspace is used. It is possible that
  24065. the data may need to be interpreted as one of the color spaces
  24066. in default_cs.
  24067. cs_des: Desired colorspace, may be NULL to denote alpha-only.
  24068. prf: Proofing color space through which we need to convert.
  24069. color_params: Parameters that may be used in conversion (e.g.
  24070. ri).
  24071. keep_alpha: If 0 any alpha component is removed, otherwise
  24072. alpha is kept if present in the pixmap.
  24073. """
  24074. return _mupdf.FzPixmap_fz_convert_pixmap(self, cs_des, prf, default_cs, color_params, keep_alpha)
  24075. def fz_convert_separation_pixmap_to_base(self):
  24076. r"""
  24077. Class-aware wrapper for `::fz_convert_separation_pixmap_to_base()`.
  24078. Convert pixmap from DeviceN/Separation to base colorspace.
  24079. This creates a new bitmap containing the converted pixmap data.
  24080. """
  24081. return _mupdf.FzPixmap_fz_convert_separation_pixmap_to_base(self)
  24082. def fz_copy_pixmap_rect(self, src, r, default_cs):
  24083. r"""Class-aware wrapper for `::fz_copy_pixmap_rect()`."""
  24084. return _mupdf.FzPixmap_fz_copy_pixmap_rect(self, src, r, default_cs)
  24085. def fz_decode_tile(self, decode):
  24086. r"""Class-aware wrapper for `::fz_decode_tile()`."""
  24087. return _mupdf.FzPixmap_fz_decode_tile(self, decode)
  24088. def fz_deskew_pixmap(self, degrees, border):
  24089. r"""Class-aware wrapper for `::fz_deskew_pixmap()`."""
  24090. return _mupdf.FzPixmap_fz_deskew_pixmap(self, degrees, border)
  24091. def fz_detect_skew(self):
  24092. r"""Class-aware wrapper for `::fz_detect_skew()`."""
  24093. return _mupdf.FzPixmap_fz_detect_skew(self)
  24094. def fz_fill_pixmap_with_color(self, colorspace, color, color_params):
  24095. r"""
  24096. Class-aware wrapper for `::fz_fill_pixmap_with_color()`.
  24097. This method has out-params. Python/C# wrappers look like:
  24098. `fz_fill_pixmap_with_color(::fz_colorspace *colorspace, ::fz_color_params color_params)` => float color
  24099. Fill pixmap with solid color.
  24100. """
  24101. return _mupdf.FzPixmap_fz_fill_pixmap_with_color(self, colorspace, color, color_params)
  24102. def fz_gamma_pixmap(self, gamma):
  24103. r"""
  24104. Class-aware wrapper for `::fz_gamma_pixmap()`.
  24105. Apply gamma correction to a pixmap. All components
  24106. of all pixels are modified (except alpha, which is unchanged).
  24107. gamma: The gamma value to apply; 1.0 for no change.
  24108. """
  24109. return _mupdf.FzPixmap_fz_gamma_pixmap(self, gamma)
  24110. def fz_generate_transition(self, opix, npix, time, trans):
  24111. r"""
  24112. Class-aware wrapper for `::fz_generate_transition()`.
  24113. Generate a frame of a transition.
  24114. tpix: Target pixmap
  24115. opix: Old pixmap
  24116. npix: New pixmap
  24117. time: Position within the transition (0 to 256)
  24118. trans: Transition details
  24119. Returns 1 if successfully generated a frame.
  24120. Note: Pixmaps must include alpha.
  24121. """
  24122. return _mupdf.FzPixmap_fz_generate_transition(self, opix, npix, time, trans)
  24123. def fz_invert_pixmap(self):
  24124. r"""
  24125. Class-aware wrapper for `::fz_invert_pixmap()`.
  24126. Invert all the pixels in a pixmap. All components (process and
  24127. spots) of all pixels are inverted (except alpha, which is
  24128. unchanged).
  24129. """
  24130. return _mupdf.FzPixmap_fz_invert_pixmap(self)
  24131. def fz_invert_pixmap_alpha(self):
  24132. r"""
  24133. Class-aware wrapper for `::fz_invert_pixmap_alpha()`.
  24134. Invert the alpha of all the pixels in a pixmap.
  24135. """
  24136. return _mupdf.FzPixmap_fz_invert_pixmap_alpha(self)
  24137. def fz_invert_pixmap_luminance(self):
  24138. r"""
  24139. Class-aware wrapper for `::fz_invert_pixmap_luminance()`.
  24140. Transform the pixels in a pixmap so that luminance of each
  24141. pixel is inverted, and the chrominance remains unchanged (as
  24142. much as accuracy allows).
  24143. All components of all pixels are inverted (except alpha, which
  24144. is unchanged). Only supports Grey and RGB bitmaps.
  24145. """
  24146. return _mupdf.FzPixmap_fz_invert_pixmap_luminance(self)
  24147. def fz_invert_pixmap_raw(self):
  24148. r"""
  24149. Class-aware wrapper for `::fz_invert_pixmap_raw()`.
  24150. Invert all the pixels in a non-premultiplied pixmap in a
  24151. very naive manner.
  24152. """
  24153. return _mupdf.FzPixmap_fz_invert_pixmap_raw(self)
  24154. def fz_invert_pixmap_rect(self, rect):
  24155. r"""
  24156. Class-aware wrapper for `::fz_invert_pixmap_rect()`.
  24157. Invert all the pixels in a given rectangle of a (premultiplied)
  24158. pixmap. All components of all pixels in the rectangle are
  24159. inverted (except alpha, which is unchanged).
  24160. """
  24161. return _mupdf.FzPixmap_fz_invert_pixmap_rect(self, rect)
  24162. def fz_is_pixmap_monochrome(self):
  24163. r"""
  24164. Class-aware wrapper for `::fz_is_pixmap_monochrome()`.
  24165. Check if the pixmap is a 1-channel image containing samples with
  24166. only values 0 and 255
  24167. """
  24168. return _mupdf.FzPixmap_fz_is_pixmap_monochrome(self)
  24169. def fz_md5_pixmap(self, digest):
  24170. r"""Class-aware wrapper for `::fz_md5_pixmap()`."""
  24171. return _mupdf.FzPixmap_fz_md5_pixmap(self, digest)
  24172. def fz_md5_pixmap2(self):
  24173. r"""
  24174. Class-aware wrapper for `::fz_md5_pixmap2()`.
  24175. C++ alternative to `fz_md5_pixmap()` that returns the digest by value.
  24176. """
  24177. return _mupdf.FzPixmap_fz_md5_pixmap2(self)
  24178. def fz_new_bitmap_from_pixmap(self, ht):
  24179. r"""
  24180. Class-aware wrapper for `::fz_new_bitmap_from_pixmap()`.
  24181. Make a bitmap from a pixmap and a halftone.
  24182. pix: The pixmap to generate from. Currently must be a single
  24183. color component with no alpha.
  24184. ht: The halftone to use. NULL implies the default halftone.
  24185. Returns the resultant bitmap. Throws exceptions in the case of
  24186. failure to allocate.
  24187. """
  24188. return _mupdf.FzPixmap_fz_new_bitmap_from_pixmap(self, ht)
  24189. def fz_new_bitmap_from_pixmap_band(self, ht, band_start):
  24190. r"""
  24191. Class-aware wrapper for `::fz_new_bitmap_from_pixmap_band()`.
  24192. Make a bitmap from a pixmap and a
  24193. halftone, allowing for the position of the pixmap within an
  24194. overall banded rendering.
  24195. pix: The pixmap to generate from. Currently must be a single
  24196. color component with no alpha.
  24197. ht: The halftone to use. NULL implies the default halftone.
  24198. band_start: Vertical offset within the overall banded rendering
  24199. (in pixels)
  24200. Returns the resultant bitmap. Throws exceptions in the case of
  24201. failure to allocate.
  24202. """
  24203. return _mupdf.FzPixmap_fz_new_bitmap_from_pixmap_band(self, ht, band_start)
  24204. def fz_new_buffer_from_pixmap_as_jpeg(self, color_params, quality, invert_cmyk):
  24205. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_jpeg()`."""
  24206. return _mupdf.FzPixmap_fz_new_buffer_from_pixmap_as_jpeg(self, color_params, quality, invert_cmyk)
  24207. def fz_new_buffer_from_pixmap_as_jpx(self, color_params, quality):
  24208. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_jpx()`."""
  24209. return _mupdf.FzPixmap_fz_new_buffer_from_pixmap_as_jpx(self, color_params, quality)
  24210. def fz_new_buffer_from_pixmap_as_pam(self, color_params):
  24211. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pam()`."""
  24212. return _mupdf.FzPixmap_fz_new_buffer_from_pixmap_as_pam(self, color_params)
  24213. def fz_new_buffer_from_pixmap_as_pbm(self, color_params):
  24214. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pbm()`."""
  24215. return _mupdf.FzPixmap_fz_new_buffer_from_pixmap_as_pbm(self, color_params)
  24216. def fz_new_buffer_from_pixmap_as_pkm(self, color_params):
  24217. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pkm()`."""
  24218. return _mupdf.FzPixmap_fz_new_buffer_from_pixmap_as_pkm(self, color_params)
  24219. def fz_new_buffer_from_pixmap_as_png(self, color_params):
  24220. r"""
  24221. Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_png()`.
  24222. Re-encode a given pixmap as a PNG into a buffer.
  24223. Ownership of the buffer is returned.
  24224. """
  24225. return _mupdf.FzPixmap_fz_new_buffer_from_pixmap_as_png(self, color_params)
  24226. def fz_new_buffer_from_pixmap_as_pnm(self, color_params):
  24227. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pnm()`."""
  24228. return _mupdf.FzPixmap_fz_new_buffer_from_pixmap_as_pnm(self, color_params)
  24229. def fz_new_buffer_from_pixmap_as_psd(self, color_params):
  24230. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_psd()`."""
  24231. return _mupdf.FzPixmap_fz_new_buffer_from_pixmap_as_psd(self, color_params)
  24232. def fz_new_image_from_pixmap(self, mask):
  24233. r"""
  24234. Class-aware wrapper for `::fz_new_image_from_pixmap()`.
  24235. Create an image from the given
  24236. pixmap.
  24237. pixmap: The pixmap to base the image upon. A new reference
  24238. to this is taken.
  24239. mask: NULL, or another image to use as a mask for this one.
  24240. A new reference is taken to this image. Supplying a masked
  24241. image as a mask to another image is illegal!
  24242. """
  24243. return _mupdf.FzPixmap_fz_new_image_from_pixmap(self, mask)
  24244. def fz_new_pixmap_from_alpha_channel(self):
  24245. r"""Class-aware wrapper for `::fz_new_pixmap_from_alpha_channel()`."""
  24246. return _mupdf.FzPixmap_fz_new_pixmap_from_alpha_channel(self)
  24247. def fz_new_pixmap_from_color_and_mask(self, mask):
  24248. r"""Class-aware wrapper for `::fz_new_pixmap_from_color_and_mask()`."""
  24249. return _mupdf.FzPixmap_fz_new_pixmap_from_color_and_mask(self, mask)
  24250. def fz_new_pixmap_from_pixmap(self, rect):
  24251. r"""
  24252. Class-aware wrapper for `::fz_new_pixmap_from_pixmap()`.
  24253. Create a new pixmap that represents a subarea of the specified
  24254. pixmap. A reference is taken to this pixmap that will be dropped
  24255. on destruction.
  24256. The supplied rectangle must be wholly contained within the
  24257. original pixmap.
  24258. Returns a pointer to the new pixmap. Throws exception on failure
  24259. to allocate.
  24260. """
  24261. return _mupdf.FzPixmap_fz_new_pixmap_from_pixmap(self, rect)
  24262. def fz_pixmap_alpha(self):
  24263. r"""
  24264. Class-aware wrapper for `::fz_pixmap_alpha()`.
  24265. Return the number of alpha planes in a pixmap.
  24266. Returns the number of alphas. Does not throw exceptions.
  24267. """
  24268. return _mupdf.FzPixmap_fz_pixmap_alpha(self)
  24269. def fz_pixmap_bbox(self):
  24270. r"""
  24271. Class-aware wrapper for `::fz_pixmap_bbox()`.
  24272. Return the bounding box for a pixmap.
  24273. """
  24274. return _mupdf.FzPixmap_fz_pixmap_bbox(self)
  24275. def fz_pixmap_colorants(self):
  24276. r"""
  24277. Class-aware wrapper for `::fz_pixmap_colorants()`.
  24278. Return the number of colorants in a pixmap.
  24279. Returns the number of colorants (components, less any spots and
  24280. alpha).
  24281. """
  24282. return _mupdf.FzPixmap_fz_pixmap_colorants(self)
  24283. def fz_pixmap_colorspace(self):
  24284. r"""
  24285. Class-aware wrapper for `::fz_pixmap_colorspace()`.
  24286. Return the colorspace of a pixmap
  24287. Returns colorspace.
  24288. """
  24289. return _mupdf.FzPixmap_fz_pixmap_colorspace(self)
  24290. def fz_pixmap_components(self):
  24291. r"""
  24292. Class-aware wrapper for `::fz_pixmap_components()`.
  24293. Return the number of components in a pixmap.
  24294. Returns the number of components (including spots and alpha).
  24295. """
  24296. return _mupdf.FzPixmap_fz_pixmap_components(self)
  24297. def fz_pixmap_height(self):
  24298. r"""
  24299. Class-aware wrapper for `::fz_pixmap_height()`.
  24300. Return the height of the pixmap in pixels.
  24301. """
  24302. return _mupdf.FzPixmap_fz_pixmap_height(self)
  24303. def fz_pixmap_samples(self):
  24304. r"""
  24305. Class-aware wrapper for `::fz_pixmap_samples()`.
  24306. Returns a pointer to the pixel data of a pixmap.
  24307. Returns the pointer.
  24308. """
  24309. return _mupdf.FzPixmap_fz_pixmap_samples(self)
  24310. def fz_pixmap_samples_int(self):
  24311. r"""Class-aware wrapper for `::fz_pixmap_samples_int()`."""
  24312. return _mupdf.FzPixmap_fz_pixmap_samples_int(self)
  24313. def fz_pixmap_size(self):
  24314. r"""
  24315. Class-aware wrapper for `::fz_pixmap_size()`.
  24316. Return sizeof fz_pixmap plus size of data, in bytes.
  24317. """
  24318. return _mupdf.FzPixmap_fz_pixmap_size(self)
  24319. def fz_pixmap_spots(self):
  24320. r"""
  24321. Class-aware wrapper for `::fz_pixmap_spots()`.
  24322. Return the number of spots in a pixmap.
  24323. Returns the number of spots (components, less colorants and
  24324. alpha). Does not throw exceptions.
  24325. """
  24326. return _mupdf.FzPixmap_fz_pixmap_spots(self)
  24327. def fz_pixmap_stride(self):
  24328. r"""
  24329. Class-aware wrapper for `::fz_pixmap_stride()`.
  24330. Return the number of bytes in a row in the pixmap.
  24331. """
  24332. return _mupdf.FzPixmap_fz_pixmap_stride(self)
  24333. def fz_pixmap_width(self):
  24334. r"""
  24335. Class-aware wrapper for `::fz_pixmap_width()`.
  24336. Return the width of the pixmap in pixels.
  24337. """
  24338. return _mupdf.FzPixmap_fz_pixmap_width(self)
  24339. def fz_pixmap_x(self):
  24340. r"""
  24341. Class-aware wrapper for `::fz_pixmap_x()`.
  24342. Return the x value of the pixmap in pixels.
  24343. """
  24344. return _mupdf.FzPixmap_fz_pixmap_x(self)
  24345. def fz_pixmap_y(self):
  24346. r"""
  24347. Class-aware wrapper for `::fz_pixmap_y()`.
  24348. Return the y value of the pixmap in pixels.
  24349. """
  24350. return _mupdf.FzPixmap_fz_pixmap_y(self)
  24351. def fz_samples_get(self, offset):
  24352. r"""
  24353. Class-aware wrapper for `::fz_samples_get()`.
  24354. Provides simple (but slow) access to pixmap data from Python and C#.
  24355. """
  24356. return _mupdf.FzPixmap_fz_samples_get(self, offset)
  24357. def fz_samples_set(self, offset, value):
  24358. r"""
  24359. Class-aware wrapper for `::fz_samples_set()`.
  24360. Provides simple (but slow) write access to pixmap data from Python and
  24361. C#.
  24362. """
  24363. return _mupdf.FzPixmap_fz_samples_set(self, offset, value)
  24364. def fz_save_pixmap_as_jpeg(self, filename, quality):
  24365. r"""
  24366. Class-aware wrapper for `::fz_save_pixmap_as_jpeg()`.
  24367. Save a pixmap as a JPEG.
  24368. """
  24369. return _mupdf.FzPixmap_fz_save_pixmap_as_jpeg(self, filename, quality)
  24370. def fz_save_pixmap_as_jpx(self, filename, q):
  24371. r"""
  24372. Class-aware wrapper for `::fz_save_pixmap_as_jpx()`.
  24373. Save pixmap data as JP2K with no subsampling.
  24374. quality = 100 = lossless
  24375. otherwise for a factor of x compression use 100-x. (so 80 is 1:20 compression)
  24376. """
  24377. return _mupdf.FzPixmap_fz_save_pixmap_as_jpx(self, filename, q)
  24378. def fz_save_pixmap_as_pam(self, filename):
  24379. r"""
  24380. Class-aware wrapper for `::fz_save_pixmap_as_pam()`.
  24381. Save a pixmap as a pnm (greyscale, rgb or cmyk, with or without
  24382. alpha).
  24383. """
  24384. return _mupdf.FzPixmap_fz_save_pixmap_as_pam(self, filename)
  24385. def fz_save_pixmap_as_pbm(self, filename):
  24386. r"""
  24387. Class-aware wrapper for `::fz_save_pixmap_as_pbm()`.
  24388. Save a pixmap as a pbm. (Performing halftoning).
  24389. """
  24390. return _mupdf.FzPixmap_fz_save_pixmap_as_pbm(self, filename)
  24391. def fz_save_pixmap_as_pcl(self, filename, append, pcl):
  24392. r"""
  24393. Class-aware wrapper for `::fz_save_pixmap_as_pcl()`.
  24394. Save an (RGB) pixmap as color PCL.
  24395. """
  24396. return _mupdf.FzPixmap_fz_save_pixmap_as_pcl(self, filename, append, pcl)
  24397. def fz_save_pixmap_as_pclm(self, filename, append, options):
  24398. r"""
  24399. Class-aware wrapper for `::fz_save_pixmap_as_pclm()`.
  24400. Save a (Greyscale or RGB) pixmap as pclm.
  24401. """
  24402. return _mupdf.FzPixmap_fz_save_pixmap_as_pclm(self, filename, append, options)
  24403. def fz_save_pixmap_as_pdfocr(self, filename, append, options):
  24404. r"""
  24405. Class-aware wrapper for `::fz_save_pixmap_as_pdfocr()`.
  24406. Save a (Greyscale or RGB) pixmap as pdfocr.
  24407. """
  24408. return _mupdf.FzPixmap_fz_save_pixmap_as_pdfocr(self, filename, append, options)
  24409. def fz_save_pixmap_as_pkm(self, filename):
  24410. r"""
  24411. Class-aware wrapper for `::fz_save_pixmap_as_pkm()`.
  24412. Save a CMYK pixmap as a pkm. (Performing halftoning).
  24413. """
  24414. return _mupdf.FzPixmap_fz_save_pixmap_as_pkm(self, filename)
  24415. def fz_save_pixmap_as_png(self, filename):
  24416. r"""
  24417. Class-aware wrapper for `::fz_save_pixmap_as_png()`.
  24418. Save a (Greyscale or RGB) pixmap as a png.
  24419. """
  24420. return _mupdf.FzPixmap_fz_save_pixmap_as_png(self, filename)
  24421. def fz_save_pixmap_as_pnm(self, filename):
  24422. r"""
  24423. Class-aware wrapper for `::fz_save_pixmap_as_pnm()`.
  24424. Save a pixmap as a pnm (greyscale or rgb, no alpha).
  24425. """
  24426. return _mupdf.FzPixmap_fz_save_pixmap_as_pnm(self, filename)
  24427. def fz_save_pixmap_as_ps(self, filename, append):
  24428. r"""
  24429. Class-aware wrapper for `::fz_save_pixmap_as_ps()`.
  24430. Save a (gray, rgb, or cmyk, no alpha) pixmap out as postscript.
  24431. """
  24432. return _mupdf.FzPixmap_fz_save_pixmap_as_ps(self, filename, append)
  24433. def fz_save_pixmap_as_psd(self, filename):
  24434. r"""
  24435. Class-aware wrapper for `::fz_save_pixmap_as_psd()`.
  24436. Save a pixmap as a PSD file.
  24437. """
  24438. return _mupdf.FzPixmap_fz_save_pixmap_as_psd(self, filename)
  24439. def fz_save_pixmap_as_pwg(self, filename, append, pwg):
  24440. r"""
  24441. Class-aware wrapper for `::fz_save_pixmap_as_pwg()`.
  24442. Save a pixmap as a PWG.
  24443. """
  24444. return _mupdf.FzPixmap_fz_save_pixmap_as_pwg(self, filename, append, pwg)
  24445. def fz_scale_pixmap(self, x, y, w, h, clip):
  24446. r"""Class-aware wrapper for `::fz_scale_pixmap()`."""
  24447. return _mupdf.FzPixmap_fz_scale_pixmap(self, x, y, w, h, clip)
  24448. def fz_set_pixmap_resolution(self, xres, yres):
  24449. r"""
  24450. Class-aware wrapper for `::fz_set_pixmap_resolution()`.
  24451. Set the pixels per inch resolution of the pixmap.
  24452. """
  24453. return _mupdf.FzPixmap_fz_set_pixmap_resolution(self, xres, yres)
  24454. def fz_subsample_pixmap(self, factor):
  24455. r"""Class-aware wrapper for `::fz_subsample_pixmap()`."""
  24456. return _mupdf.FzPixmap_fz_subsample_pixmap(self, factor)
  24457. def fz_tint_pixmap(self, black, white):
  24458. r"""
  24459. Class-aware wrapper for `::fz_tint_pixmap()`.
  24460. Tint all the pixels in an RGB, BGR, or Gray pixmap.
  24461. black: Map black to this hexadecimal RGB color.
  24462. white: Map white to this hexadecimal RGB color.
  24463. """
  24464. return _mupdf.FzPixmap_fz_tint_pixmap(self, black, white)
  24465. def fz_warp_pixmap(self, points, width, height):
  24466. r"""Class-aware wrapper for `::fz_warp_pixmap()`."""
  24467. return _mupdf.FzPixmap_fz_warp_pixmap(self, points, width, height)
  24468. def __init__(self, *args):
  24469. r"""
  24470. *Overload 1:*
  24471. == Constructors. Constructor using `fz_new_barcode_pixmap()`.
  24472. Create an fz_pixmap from a barcode definition.
  24473. type: The type of barcode to create.
  24474. value: The value of the barcode.
  24475. size: The size of the barcode.
  24476. ec_level: error correction level 0-8.
  24477. quiet: whether to include quiet zones (0 or 1).
  24478. hrt: whether to include human readable text below the barcode (0 or 1).
  24479. returns a created fz_pixmap.
  24480. |
  24481. *Overload 2:*
  24482. Constructor using `fz_new_pixmap()`.
  24483. Create a new pixmap, with its origin at (0,0)
  24484. cs: The colorspace to use for the pixmap, or NULL for an alpha
  24485. plane/mask.
  24486. w: The width of the pixmap (in pixels)
  24487. h: The height of the pixmap (in pixels)
  24488. seps: Details of separations.
  24489. alpha: 0 for no alpha, 1 for alpha.
  24490. Returns a pointer to the new pixmap. Throws exception on failure
  24491. to allocate.
  24492. |
  24493. *Overload 3:*
  24494. Constructor using `fz_new_pixmap_from_color_and_mask()`.
  24495. |
  24496. *Overload 4:*
  24497. Constructor using `fz_new_pixmap_from_display_list()`.
  24498. Render the page to a pixmap using the transform and colorspace.
  24499. Ownership of the pixmap is returned to the caller.
  24500. |
  24501. *Overload 5:*
  24502. Constructor using `fz_new_pixmap_from_display_list_with_separations()`.
  24503. Render the page contents with control over spot colors.
  24504. Ownership of the pixmap is returned to the caller.
  24505. |
  24506. *Overload 6:*
  24507. Constructor using `fz_new_pixmap_from_page()`.
  24508. |
  24509. *Overload 7:*
  24510. Constructor using `fz_new_pixmap_from_page_number()`.
  24511. |
  24512. *Overload 8:*
  24513. Constructor using `fz_new_pixmap_from_page_number_with_separations()`.
  24514. |
  24515. *Overload 9:*
  24516. Constructor using `fz_new_pixmap_from_page_with_separations()`.
  24517. |
  24518. *Overload 10:*
  24519. Constructor using `fz_new_pixmap_from_pixmap()`.
  24520. Create a new pixmap that represents a subarea of the specified
  24521. pixmap. A reference is taken to this pixmap that will be dropped
  24522. on destruction.
  24523. The supplied rectangle must be wholly contained within the
  24524. original pixmap.
  24525. Returns a pointer to the new pixmap. Throws exception on failure
  24526. to allocate.
  24527. |
  24528. *Overload 11:*
  24529. Constructor using `fz_new_pixmap_with_bbox()`.
  24530. Create a pixmap of a given size, location and pixel format.
  24531. The bounding box specifies the size of the created pixmap and
  24532. where it will be located. The colorspace determines the number
  24533. of components per pixel. Alpha is always present. Pixmaps are
  24534. reference counted, so drop references using fz_drop_pixmap.
  24535. colorspace: Colorspace format used for the created pixmap. The
  24536. pixmap will keep a reference to the colorspace.
  24537. bbox: Bounding box specifying location/size of created pixmap.
  24538. seps: Details of separations.
  24539. alpha: 0 for no alpha, 1 for alpha.
  24540. Returns a pointer to the new pixmap. Throws exception on failure
  24541. to allocate.
  24542. |
  24543. *Overload 12:*
  24544. Constructor using `fz_new_pixmap_with_bbox_and_data()`.
  24545. Create a pixmap of a given size, location and pixel format,
  24546. using the supplied data block.
  24547. The bounding box specifies the size of the created pixmap and
  24548. where it will be located. The colorspace determines the number
  24549. of components per pixel. Alpha is always present. Pixmaps are
  24550. reference counted, so drop references using fz_drop_pixmap.
  24551. colorspace: Colorspace format used for the created pixmap. The
  24552. pixmap will keep a reference to the colorspace.
  24553. rect: Bounding box specifying location/size of created pixmap.
  24554. seps: Details of separations.
  24555. alpha: Number of alpha planes (0 or 1).
  24556. samples: The data block to keep the samples in.
  24557. Returns a pointer to the new pixmap. Throws exception on failure
  24558. to allocate.
  24559. |
  24560. *Overload 13:*
  24561. Constructor using `fz_new_pixmap_with_data()`.
  24562. Create a new pixmap, with its origin at
  24563. (0,0) using the supplied data block.
  24564. cs: The colorspace to use for the pixmap, or NULL for an alpha
  24565. plane/mask.
  24566. w: The width of the pixmap (in pixels)
  24567. h: The height of the pixmap (in pixels)
  24568. seps: Details of separations.
  24569. alpha: 0 for no alpha, 1 for alpha.
  24570. stride: The byte offset from the pixel data in a row to the
  24571. pixel data in the next row.
  24572. samples: The data block to keep the samples in.
  24573. Returns a pointer to the new pixmap. Throws exception on failure to
  24574. allocate.
  24575. |
  24576. *Overload 14:*
  24577. Constructor using `pdf_new_pixmap_from_annot()`.
  24578. |
  24579. *Overload 15:*
  24580. Constructor using `pdf_new_pixmap_from_page_contents_with_separations_and_usage()`.
  24581. |
  24582. *Overload 16:*
  24583. Constructor using `pdf_new_pixmap_from_page_contents_with_usage()`.
  24584. |
  24585. *Overload 17:*
  24586. Copy constructor using `fz_keep_pixmap()`.
  24587. |
  24588. *Overload 18:*
  24589. Default constructor, sets `m_internal` to null.
  24590. |
  24591. *Overload 19:*
  24592. Constructor using raw copy of pre-existing `::fz_pixmap`.
  24593. """
  24594. _mupdf.FzPixmap_swiginit(self, _mupdf.new_FzPixmap(*args))
  24595. def storable(self):
  24596. return _mupdf.FzPixmap_storable(self)
  24597. def x(self):
  24598. return _mupdf.FzPixmap_x(self)
  24599. def y(self):
  24600. return _mupdf.FzPixmap_y(self)
  24601. def w(self):
  24602. return _mupdf.FzPixmap_w(self)
  24603. def h(self):
  24604. return _mupdf.FzPixmap_h(self)
  24605. def n(self):
  24606. return _mupdf.FzPixmap_n(self)
  24607. def s(self):
  24608. return _mupdf.FzPixmap_s(self)
  24609. def alpha(self):
  24610. return _mupdf.FzPixmap_alpha(self)
  24611. def flags(self):
  24612. return _mupdf.FzPixmap_flags(self)
  24613. def stride(self):
  24614. return _mupdf.FzPixmap_stride(self)
  24615. def seps(self):
  24616. return _mupdf.FzPixmap_seps(self)
  24617. def xres(self):
  24618. return _mupdf.FzPixmap_xres(self)
  24619. def yres(self):
  24620. return _mupdf.FzPixmap_yres(self)
  24621. def colorspace(self):
  24622. return _mupdf.FzPixmap_colorspace(self)
  24623. def samples(self):
  24624. return _mupdf.FzPixmap_samples(self)
  24625. def underlying(self):
  24626. return _mupdf.FzPixmap_underlying(self)
  24627. __swig_destroy__ = _mupdf.delete_FzPixmap
  24628. def m_internal_value(self):
  24629. r"""Return numerical value of .m_internal; helps with Python debugging."""
  24630. return _mupdf.FzPixmap_m_internal_value(self)
  24631. def __nonzero__(self):
  24632. return _mupdf.FzPixmap___nonzero__(self)
  24633. __bool__ = __nonzero__
  24634. m_internal = property(_mupdf.FzPixmap_m_internal_get, _mupdf.FzPixmap_m_internal_set, doc=r"""Pointer to wrapped data.""")
  24635. s_num_instances = property(_mupdf.FzPixmap_s_num_instances_get, _mupdf.FzPixmap_s_num_instances_set)
  24636. # Register FzPixmap in _mupdf:
  24637. _mupdf.FzPixmap_swigregister(FzPixmap)
  24638. class FzPixmapImage(object):
  24639. r"""Wrapper class for struct `fz_pixmap_image`. Not copyable or assignable."""
  24640. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  24641. __repr__ = _swig_repr
  24642. def fz_pixmap_image_tile(self):
  24643. r"""
  24644. Class-aware wrapper for `::fz_pixmap_image_tile()`.
  24645. Retrieve the underlying fz_pixmap for an image.
  24646. Returns a pointer to the underlying fz_pixmap for an image,
  24647. or NULL if this image is not based upon an fz_pixmap.
  24648. No reference is returned. Lifespan is limited to that of
  24649. the image itself. If required, use fz_keep_pixmap to take
  24650. a reference to keep it longer.
  24651. """
  24652. return _mupdf.FzPixmapImage_fz_pixmap_image_tile(self)
  24653. def fz_set_pixmap_image_tile(self, pix):
  24654. r"""Class-aware wrapper for `::fz_set_pixmap_image_tile()`."""
  24655. return _mupdf.FzPixmapImage_fz_set_pixmap_image_tile(self, pix)
  24656. def __init__(self, *args):
  24657. r"""
  24658. *Overload 1:*
  24659. Default constructor, sets `m_internal` to null.
  24660. |
  24661. *Overload 2:*
  24662. Constructor using raw copy of pre-existing `::fz_pixmap_image`.
  24663. """
  24664. _mupdf.FzPixmapImage_swiginit(self, _mupdf.new_FzPixmapImage(*args))
  24665. __swig_destroy__ = _mupdf.delete_FzPixmapImage
  24666. def m_internal_value(self):
  24667. r"""Return numerical value of .m_internal; helps with Python debugging."""
  24668. return _mupdf.FzPixmapImage_m_internal_value(self)
  24669. def __nonzero__(self):
  24670. return _mupdf.FzPixmapImage___nonzero__(self)
  24671. __bool__ = __nonzero__
  24672. m_internal = property(_mupdf.FzPixmapImage_m_internal_get, _mupdf.FzPixmapImage_m_internal_set, doc=r"""Pointer to wrapped data.""")
  24673. s_num_instances = property(_mupdf.FzPixmapImage_s_num_instances_get, _mupdf.FzPixmapImage_s_num_instances_set)
  24674. # Register FzPixmapImage in _mupdf:
  24675. _mupdf.FzPixmapImage_swigregister(FzPixmapImage)
  24676. class FzPoint(object):
  24677. r"""
  24678. Wrapper class for struct `fz_point`.
  24679. fz_point is a point in a two-dimensional space.
  24680. """
  24681. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  24682. __repr__ = _swig_repr
  24683. @staticmethod
  24684. def fz_transform_point_xy(x, y, m):
  24685. r"""Class-aware wrapper for `::fz_transform_point_xy()`."""
  24686. return _mupdf.FzPoint_fz_transform_point_xy(x, y, m)
  24687. def fz_is_point_inside_quad(self, q):
  24688. r"""
  24689. Class-aware wrapper for `::fz_is_point_inside_quad()`.
  24690. Inclusion test for quads.
  24691. """
  24692. return _mupdf.FzPoint_fz_is_point_inside_quad(self, q)
  24693. def fz_is_point_inside_rect(self, r):
  24694. r"""
  24695. Class-aware wrapper for `::fz_is_point_inside_rect()`.
  24696. Inclusion test for rects. (Rect is assumed to be open, i.e.
  24697. top right corner is not included).
  24698. """
  24699. return _mupdf.FzPoint_fz_is_point_inside_rect(self, r)
  24700. def fz_normalize_vector(self):
  24701. r"""
  24702. Class-aware wrapper for `::fz_normalize_vector()`.
  24703. Normalize a vector to length one.
  24704. """
  24705. return _mupdf.FzPoint_fz_normalize_vector(self)
  24706. def fz_transform_point(self, *args):
  24707. r"""
  24708. *Overload 1:*
  24709. Class-aware wrapper for `::fz_transform_point()`.
  24710. Apply a transformation to a point.
  24711. transform: Transformation matrix to apply. See fz_concat,
  24712. fz_scale, fz_rotate and fz_translate for how to create a
  24713. matrix.
  24714. point: Pointer to point to update.
  24715. Returns transform (unchanged).
  24716. |
  24717. *Overload 2:*
  24718. Class-aware wrapper for `::fz_transform_point()`.
  24719. Apply a transformation to a point.
  24720. transform: Transformation matrix to apply. See fz_concat,
  24721. fz_scale, fz_rotate and fz_translate for how to create a
  24722. matrix.
  24723. point: Pointer to point to update.
  24724. Returns transform (unchanged).
  24725. """
  24726. return _mupdf.FzPoint_fz_transform_point(self, *args)
  24727. def fz_transform_vector(self, *args):
  24728. r"""
  24729. *Overload 1:*
  24730. Class-aware wrapper for `::fz_transform_vector()`.
  24731. Apply a transformation to a vector.
  24732. transform: Transformation matrix to apply. See fz_concat,
  24733. fz_scale and fz_rotate for how to create a matrix. Any
  24734. translation will be ignored.
  24735. vector: Pointer to vector to update.
  24736. |
  24737. *Overload 2:*
  24738. Class-aware wrapper for `::fz_transform_vector()`.
  24739. Apply a transformation to a vector.
  24740. transform: Transformation matrix to apply. See fz_concat,
  24741. fz_scale and fz_rotate for how to create a matrix. Any
  24742. translation will be ignored.
  24743. vector: Pointer to vector to update.
  24744. """
  24745. return _mupdf.FzPoint_fz_transform_vector(self, *args)
  24746. def transform(self, m):
  24747. r"""Post-multiply *this by <m> and return *this."""
  24748. return _mupdf.FzPoint_transform(self, m)
  24749. def __init__(self, *args):
  24750. r"""
  24751. *Overload 1:*
  24752. Construct using specified values.
  24753. |
  24754. *Overload 2:*
  24755. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  24756. |
  24757. *Overload 3:*
  24758. Constructor using raw copy of pre-existing `::fz_point`.
  24759. |
  24760. *Overload 4:*
  24761. Constructor using raw copy of pre-existing `::fz_point`.
  24762. """
  24763. _mupdf.FzPoint_swiginit(self, _mupdf.new_FzPoint(*args))
  24764. def internal(self, *args):
  24765. r"""
  24766. *Overload 1:*
  24767. Access as underlying struct.
  24768. |
  24769. *Overload 2:*
  24770. Access as underlying struct.
  24771. """
  24772. return _mupdf.FzPoint_internal(self, *args)
  24773. __swig_destroy__ = _mupdf.delete_FzPoint
  24774. x = property(_mupdf.FzPoint_x_get, _mupdf.FzPoint_x_set)
  24775. y = property(_mupdf.FzPoint_y_get, _mupdf.FzPoint_y_set)
  24776. s_num_instances = property(_mupdf.FzPoint_s_num_instances_get, _mupdf.FzPoint_s_num_instances_set)
  24777. def to_string(self):
  24778. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  24779. return _mupdf.FzPoint_to_string(self)
  24780. def __eq__(self, rhs):
  24781. r"""Comparison method."""
  24782. return _mupdf.FzPoint___eq__(self, rhs)
  24783. def __ne__(self, rhs):
  24784. r"""Comparison method."""
  24785. return _mupdf.FzPoint___ne__(self, rhs)
  24786. # Register FzPoint in _mupdf:
  24787. _mupdf.FzPoint_swigregister(FzPoint)
  24788. class FzPool(object):
  24789. r"""
  24790. Wrapper class for struct `fz_pool`. Not copyable or assignable.
  24791. Simple pool allocators.
  24792. Allocate from the pool, which can then be freed at once.
  24793. """
  24794. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  24795. __repr__ = _swig_repr
  24796. def fz_json_array_push(self, array, item):
  24797. r"""Class-aware wrapper for `::fz_json_array_push()`."""
  24798. return _mupdf.FzPool_fz_json_array_push(self, array, item)
  24799. def fz_json_object_set(self, object, key, item):
  24800. r"""Class-aware wrapper for `::fz_json_object_set()`."""
  24801. return _mupdf.FzPool_fz_json_object_set(self, object, key, item)
  24802. def fz_pool_alloc(self, size):
  24803. r"""
  24804. Class-aware wrapper for `::fz_pool_alloc()`.
  24805. Allocate a block of size bytes from the pool.
  24806. """
  24807. return _mupdf.FzPool_fz_pool_alloc(self, size)
  24808. def fz_pool_size(self):
  24809. r"""
  24810. Class-aware wrapper for `::fz_pool_size()`.
  24811. The current size of the pool.
  24812. The number of bytes of storage currently allocated to the pool.
  24813. This is the total of the storage used for the blocks making
  24814. up the pool, rather then total of the allocated blocks so far,
  24815. so it will increase in 'lumps'.
  24816. from the pool, then the pool size may still be X
  24817. """
  24818. return _mupdf.FzPool_fz_pool_size(self)
  24819. def fz_pool_strdup(self, s):
  24820. r"""
  24821. Class-aware wrapper for `::fz_pool_strdup()`.
  24822. strdup equivalent allocating from the pool.
  24823. """
  24824. return _mupdf.FzPool_fz_pool_strdup(self, s)
  24825. def fz_xml_add_att(self, node, key, val):
  24826. r"""
  24827. Class-aware wrapper for `::fz_xml_add_att()`.
  24828. Add an attribute to an XML node.
  24829. """
  24830. return _mupdf.FzPool_fz_xml_add_att(self, node, key, val)
  24831. def __init__(self, *args):
  24832. r"""
  24833. *Overload 1:*
  24834. == Constructors. Constructor using `fz_new_pool()`.
  24835. Create a new pool to allocate from.
  24836. |
  24837. *Overload 2:*
  24838. Constructor using raw copy of pre-existing `::fz_pool`.
  24839. """
  24840. _mupdf.FzPool_swiginit(self, _mupdf.new_FzPool(*args))
  24841. __swig_destroy__ = _mupdf.delete_FzPool
  24842. def m_internal_value(self):
  24843. r"""Return numerical value of .m_internal; helps with Python debugging."""
  24844. return _mupdf.FzPool_m_internal_value(self)
  24845. def __nonzero__(self):
  24846. return _mupdf.FzPool___nonzero__(self)
  24847. __bool__ = __nonzero__
  24848. m_internal = property(_mupdf.FzPool_m_internal_get, _mupdf.FzPool_m_internal_set, doc=r"""Pointer to wrapped data.""")
  24849. s_num_instances = property(_mupdf.FzPool_s_num_instances_get, _mupdf.FzPool_s_num_instances_set)
  24850. # Register FzPool in _mupdf:
  24851. _mupdf.FzPool_swigregister(FzPool)
  24852. class FzPtrHeap(object):
  24853. r"""Wrapper class for struct `fz_ptr_heap`. Not copyable or assignable."""
  24854. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  24855. __repr__ = _swig_repr
  24856. def fz_ptr_heap_insert(self, v, HEAP_CMP):
  24857. r"""Class-aware wrapper for `::fz_ptr_heap_insert()`."""
  24858. return _mupdf.FzPtrHeap_fz_ptr_heap_insert(self, v, HEAP_CMP)
  24859. def fz_ptr_heap_sort(self, HEAP_CMP):
  24860. r"""Class-aware wrapper for `::fz_ptr_heap_sort()`."""
  24861. return _mupdf.FzPtrHeap_fz_ptr_heap_sort(self, HEAP_CMP)
  24862. def fz_ptr_heap_uniq(self, HEAP_CMP):
  24863. r"""Class-aware wrapper for `::fz_ptr_heap_uniq()`."""
  24864. return _mupdf.FzPtrHeap_fz_ptr_heap_uniq(self, HEAP_CMP)
  24865. def __init__(self, *args):
  24866. r"""
  24867. *Overload 1:*
  24868. Default constructor, sets `m_internal` to null.
  24869. |
  24870. *Overload 2:*
  24871. Constructor using raw copy of pre-existing `::fz_ptr_heap`.
  24872. """
  24873. _mupdf.FzPtrHeap_swiginit(self, _mupdf.new_FzPtrHeap(*args))
  24874. __swig_destroy__ = _mupdf.delete_FzPtrHeap
  24875. def m_internal_value(self):
  24876. r"""Return numerical value of .m_internal; helps with Python debugging."""
  24877. return _mupdf.FzPtrHeap_m_internal_value(self)
  24878. def __nonzero__(self):
  24879. return _mupdf.FzPtrHeap___nonzero__(self)
  24880. __bool__ = __nonzero__
  24881. m_internal = property(_mupdf.FzPtrHeap_m_internal_get, _mupdf.FzPtrHeap_m_internal_set, doc=r"""Pointer to wrapped data.""")
  24882. s_num_instances = property(_mupdf.FzPtrHeap_s_num_instances_get, _mupdf.FzPtrHeap_s_num_instances_set)
  24883. # Register FzPtrHeap in _mupdf:
  24884. _mupdf.FzPtrHeap_swigregister(FzPtrHeap)
  24885. class FzPwgOptions(object):
  24886. r"""Wrapper class for struct `fz_pwg_options`."""
  24887. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  24888. __repr__ = _swig_repr
  24889. def __init__(self, *args):
  24890. r"""
  24891. *Overload 1:*
  24892. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  24893. |
  24894. *Overload 2:*
  24895. Constructor using raw copy of pre-existing `::fz_pwg_options`.
  24896. """
  24897. _mupdf.FzPwgOptions_swiginit(self, _mupdf.new_FzPwgOptions(*args))
  24898. def media_class(self):
  24899. return _mupdf.FzPwgOptions_media_class(self)
  24900. def media_color(self):
  24901. return _mupdf.FzPwgOptions_media_color(self)
  24902. def media_type(self):
  24903. return _mupdf.FzPwgOptions_media_type(self)
  24904. def output_type(self):
  24905. return _mupdf.FzPwgOptions_output_type(self)
  24906. def advance_distance(self):
  24907. return _mupdf.FzPwgOptions_advance_distance(self)
  24908. def advance_media(self):
  24909. return _mupdf.FzPwgOptions_advance_media(self)
  24910. def collate(self):
  24911. return _mupdf.FzPwgOptions_collate(self)
  24912. def cut_media(self):
  24913. return _mupdf.FzPwgOptions_cut_media(self)
  24914. def duplex(self):
  24915. return _mupdf.FzPwgOptions_duplex(self)
  24916. def insert_sheet(self):
  24917. return _mupdf.FzPwgOptions_insert_sheet(self)
  24918. def jog(self):
  24919. return _mupdf.FzPwgOptions_jog(self)
  24920. def leading_edge(self):
  24921. return _mupdf.FzPwgOptions_leading_edge(self)
  24922. def manual_feed(self):
  24923. return _mupdf.FzPwgOptions_manual_feed(self)
  24924. def media_position(self):
  24925. return _mupdf.FzPwgOptions_media_position(self)
  24926. def media_weight(self):
  24927. return _mupdf.FzPwgOptions_media_weight(self)
  24928. def mirror_print(self):
  24929. return _mupdf.FzPwgOptions_mirror_print(self)
  24930. def negative_print(self):
  24931. return _mupdf.FzPwgOptions_negative_print(self)
  24932. def num_copies(self):
  24933. return _mupdf.FzPwgOptions_num_copies(self)
  24934. def orientation(self):
  24935. return _mupdf.FzPwgOptions_orientation(self)
  24936. def output_face_up(self):
  24937. return _mupdf.FzPwgOptions_output_face_up(self)
  24938. def PageSize(self):
  24939. return _mupdf.FzPwgOptions_PageSize(self)
  24940. def separations(self):
  24941. return _mupdf.FzPwgOptions_separations(self)
  24942. def tray_switch(self):
  24943. return _mupdf.FzPwgOptions_tray_switch(self)
  24944. def tumble(self):
  24945. return _mupdf.FzPwgOptions_tumble(self)
  24946. def media_type_num(self):
  24947. return _mupdf.FzPwgOptions_media_type_num(self)
  24948. def compression(self):
  24949. return _mupdf.FzPwgOptions_compression(self)
  24950. def row_count(self):
  24951. return _mupdf.FzPwgOptions_row_count(self)
  24952. def row_feed(self):
  24953. return _mupdf.FzPwgOptions_row_feed(self)
  24954. def row_step(self):
  24955. return _mupdf.FzPwgOptions_row_step(self)
  24956. def rendering_intent(self):
  24957. return _mupdf.FzPwgOptions_rendering_intent(self)
  24958. def page_size_name(self):
  24959. return _mupdf.FzPwgOptions_page_size_name(self)
  24960. __swig_destroy__ = _mupdf.delete_FzPwgOptions
  24961. m_internal = property(_mupdf.FzPwgOptions_m_internal_get, _mupdf.FzPwgOptions_m_internal_set)
  24962. s_num_instances = property(_mupdf.FzPwgOptions_s_num_instances_get, _mupdf.FzPwgOptions_s_num_instances_set, doc=r"""Wrapped data is held by value.""")
  24963. def to_string(self):
  24964. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  24965. return _mupdf.FzPwgOptions_to_string(self)
  24966. def __eq__(self, rhs):
  24967. r"""Comparison method."""
  24968. return _mupdf.FzPwgOptions___eq__(self, rhs)
  24969. def __ne__(self, rhs):
  24970. r"""Comparison method."""
  24971. return _mupdf.FzPwgOptions___ne__(self, rhs)
  24972. # Register FzPwgOptions in _mupdf:
  24973. _mupdf.FzPwgOptions_swigregister(FzPwgOptions)
  24974. class FzQuad(object):
  24975. r"""
  24976. Wrapper class for struct `fz_quad`.
  24977. A representation for a region defined by 4 points.
  24978. The significant difference between quads and rects is that
  24979. the edges of quads are not axis aligned.
  24980. """
  24981. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  24982. __repr__ = _swig_repr
  24983. def fz_detect_document(self, src):
  24984. r"""Class-aware wrapper for `::fz_detect_document()`."""
  24985. return _mupdf.FzQuad_fz_detect_document(self, src)
  24986. def fz_is_empty_quad(self):
  24987. r"""
  24988. Class-aware wrapper for `::fz_is_empty_quad()`.
  24989. Is a quad empty?
  24990. """
  24991. return _mupdf.FzQuad_fz_is_empty_quad(self)
  24992. def fz_is_infinite_quad(self):
  24993. r"""
  24994. Class-aware wrapper for `::fz_is_infinite_quad()`.
  24995. Is a quad infinite?
  24996. """
  24997. return _mupdf.FzQuad_fz_is_infinite_quad(self)
  24998. def fz_is_quad_inside_quad(self, haystack):
  24999. r"""
  25000. Class-aware wrapper for `::fz_is_quad_inside_quad()`.
  25001. Inclusion test for quad in quad.
  25002. This may break down if quads are not 'well formed'.
  25003. """
  25004. return _mupdf.FzQuad_fz_is_quad_inside_quad(self, haystack)
  25005. def fz_is_quad_intersecting_quad(self, b):
  25006. r"""
  25007. Class-aware wrapper for `::fz_is_quad_intersecting_quad()`.
  25008. Intersection test for quads.
  25009. This may break down if quads are not 'well formed'.
  25010. """
  25011. return _mupdf.FzQuad_fz_is_quad_intersecting_quad(self, b)
  25012. def fz_is_valid_quad(self):
  25013. r"""
  25014. Class-aware wrapper for `::fz_is_valid_quad()`.
  25015. Is a quad valid?
  25016. """
  25017. return _mupdf.FzQuad_fz_is_valid_quad(self)
  25018. def fz_rect_from_quad(self):
  25019. r"""
  25020. Class-aware wrapper for `::fz_rect_from_quad()`.
  25021. Convert a quad to the smallest rect that covers it.
  25022. """
  25023. return _mupdf.FzQuad_fz_rect_from_quad(self)
  25024. def fz_transform_quad(self, m):
  25025. r"""
  25026. Class-aware wrapper for `::fz_transform_quad()`.
  25027. Transform a quad by a matrix.
  25028. """
  25029. return _mupdf.FzQuad_fz_transform_quad(self, m)
  25030. def __init__(self, *args):
  25031. r"""
  25032. *Overload 1:*
  25033. == Constructors. Constructor using `fz_quad_from_rect()`.
  25034. Convert a rect to a quad (losslessly).
  25035. |
  25036. *Overload 2:*
  25037. Constructor using `fz_transform_quad()`.
  25038. Transform a quad by a matrix.
  25039. |
  25040. *Overload 3:*
  25041. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  25042. |
  25043. *Overload 4:*
  25044. Constructor using raw copy of pre-existing `::fz_quad`.
  25045. |
  25046. *Overload 5:*
  25047. Constructor using raw copy of pre-existing `::fz_quad`.
  25048. """
  25049. _mupdf.FzQuad_swiginit(self, _mupdf.new_FzQuad(*args))
  25050. def internal(self, *args):
  25051. r"""
  25052. *Overload 1:*
  25053. Access as underlying struct.
  25054. |
  25055. *Overload 2:*
  25056. Access as underlying struct.
  25057. """
  25058. return _mupdf.FzQuad_internal(self, *args)
  25059. __swig_destroy__ = _mupdf.delete_FzQuad
  25060. ul = property(_mupdf.FzQuad_ul_get, _mupdf.FzQuad_ul_set)
  25061. ur = property(_mupdf.FzQuad_ur_get, _mupdf.FzQuad_ur_set)
  25062. ll = property(_mupdf.FzQuad_ll_get, _mupdf.FzQuad_ll_set)
  25063. lr = property(_mupdf.FzQuad_lr_get, _mupdf.FzQuad_lr_set)
  25064. s_num_instances = property(_mupdf.FzQuad_s_num_instances_get, _mupdf.FzQuad_s_num_instances_set)
  25065. def to_string(self):
  25066. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  25067. return _mupdf.FzQuad_to_string(self)
  25068. def __eq__(self, rhs):
  25069. r"""Comparison method."""
  25070. return _mupdf.FzQuad___eq__(self, rhs)
  25071. def __ne__(self, rhs):
  25072. r"""Comparison method."""
  25073. return _mupdf.FzQuad___ne__(self, rhs)
  25074. # Register FzQuad in _mupdf:
  25075. _mupdf.FzQuad_swigregister(FzQuad)
  25076. class FzRange(object):
  25077. r"""Wrapper class for struct `fz_range`. Not copyable or assignable."""
  25078. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25079. __repr__ = _swig_repr
  25080. def __init__(self, *args):
  25081. r"""
  25082. *Overload 1:*
  25083. Default constructor, sets `m_internal` to null.
  25084. |
  25085. *Overload 2:*
  25086. Constructor using raw copy of pre-existing `::fz_range`.
  25087. """
  25088. _mupdf.FzRange_swiginit(self, _mupdf.new_FzRange(*args))
  25089. __swig_destroy__ = _mupdf.delete_FzRange
  25090. def m_internal_value(self):
  25091. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25092. return _mupdf.FzRange_m_internal_value(self)
  25093. def __nonzero__(self):
  25094. return _mupdf.FzRange___nonzero__(self)
  25095. __bool__ = __nonzero__
  25096. m_internal = property(_mupdf.FzRange_m_internal_get, _mupdf.FzRange_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25097. s_num_instances = property(_mupdf.FzRange_s_num_instances_get, _mupdf.FzRange_s_num_instances_set)
  25098. # Register FzRange in _mupdf:
  25099. _mupdf.FzRange_swigregister(FzRange)
  25100. class FzRect(object):
  25101. r"""Wrapper class for struct `fz_rect`."""
  25102. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25103. __repr__ = _swig_repr
  25104. Fixed_UNIT = _mupdf.FzRect_Fixed_UNIT
  25105. Fixed_EMPTY = _mupdf.FzRect_Fixed_EMPTY
  25106. Fixed_INFINITE = _mupdf.FzRect_Fixed_INFINITE
  25107. def fz_adjust_rect_for_stroke(self, stroke, ctm):
  25108. r"""
  25109. Class-aware wrapper for `::fz_adjust_rect_for_stroke()`.
  25110. Given a rectangle (assumed to be the bounding box for a path),
  25111. expand it to allow for the expansion of the bbox that would be
  25112. seen by stroking the path with the given stroke state and
  25113. transform.
  25114. """
  25115. return _mupdf.FzRect_fz_adjust_rect_for_stroke(self, stroke, ctm)
  25116. def fz_contains_rect(self, b):
  25117. r"""
  25118. Class-aware wrapper for `::fz_contains_rect()`.
  25119. Test rectangle inclusion.
  25120. Return true if a entirely contains b.
  25121. """
  25122. return _mupdf.FzRect_fz_contains_rect(self, b)
  25123. def fz_expand_rect(self, expand):
  25124. r"""
  25125. Class-aware wrapper for `::fz_expand_rect()`.
  25126. Expand a bbox by a given amount in all directions.
  25127. """
  25128. return _mupdf.FzRect_fz_expand_rect(self, expand)
  25129. def fz_include_point_in_rect(self, p):
  25130. r"""
  25131. Class-aware wrapper for `::fz_include_point_in_rect()`.
  25132. Expand a bbox to include a given point.
  25133. To create a rectangle that encompasses a sequence of points, the
  25134. rectangle must first be set to be the empty rectangle at one of
  25135. the points before including the others.
  25136. """
  25137. return _mupdf.FzRect_fz_include_point_in_rect(self, p)
  25138. def fz_intersect_rect(self, *args):
  25139. r"""
  25140. *Overload 1:*
  25141. Class-aware wrapper for `::fz_intersect_rect()`.
  25142. Compute intersection of two rectangles.
  25143. Given two rectangles, update the first to be the smallest
  25144. axis-aligned rectangle that covers the area covered by both
  25145. given rectangles. If either rectangle is empty then the
  25146. intersection is also empty. If either rectangle is infinite
  25147. then the intersection is simply the non-infinite rectangle.
  25148. Should both rectangles be infinite, then the intersection is
  25149. also infinite.
  25150. |
  25151. *Overload 2:*
  25152. Class-aware wrapper for `::fz_intersect_rect()`.
  25153. Compute intersection of two rectangles.
  25154. Given two rectangles, update the first to be the smallest
  25155. axis-aligned rectangle that covers the area covered by both
  25156. given rectangles. If either rectangle is empty then the
  25157. intersection is also empty. If either rectangle is infinite
  25158. then the intersection is simply the non-infinite rectangle.
  25159. Should both rectangles be infinite, then the intersection is
  25160. also infinite.
  25161. """
  25162. return _mupdf.FzRect_fz_intersect_rect(self, *args)
  25163. def fz_irect_from_rect(self):
  25164. r"""
  25165. Class-aware wrapper for `::fz_irect_from_rect()`.
  25166. Convert a rect into the minimal bounding box
  25167. that covers the rectangle.
  25168. Coordinates in a bounding box are integers, so rounding of the
  25169. rects coordinates takes place. The top left corner is rounded
  25170. upwards and left while the bottom right corner is rounded
  25171. downwards and to the right.
  25172. """
  25173. return _mupdf.FzRect_fz_irect_from_rect(self)
  25174. def fz_is_empty_rect(self):
  25175. r"""
  25176. Class-aware wrapper for `::fz_is_empty_rect()`.
  25177. Check if rectangle is empty.
  25178. An empty rectangle is defined as one whose area is zero.
  25179. All invalid rectangles are empty.
  25180. """
  25181. return _mupdf.FzRect_fz_is_empty_rect(self)
  25182. def fz_is_infinite_rect(self):
  25183. r"""
  25184. Class-aware wrapper for `::fz_is_infinite_rect()`.
  25185. Check if rectangle is infinite.
  25186. """
  25187. return _mupdf.FzRect_fz_is_infinite_rect(self)
  25188. def fz_is_rect_inside_rect(self, outer):
  25189. r"""
  25190. Class-aware wrapper for `::fz_is_rect_inside_rect()`.
  25191. Inclusion test for rects.
  25192. rects are assumed to be both open or both closed.
  25193. No invalid rect can include any other rect.
  25194. No invalid rect can be included by any rect.
  25195. Empty (point) rects can include themselves.
  25196. Empty (line) rects can include many (subline) rects.
  25197. """
  25198. return _mupdf.FzRect_fz_is_rect_inside_rect(self, outer)
  25199. def fz_is_valid_rect(self):
  25200. r"""
  25201. Class-aware wrapper for `::fz_is_valid_rect()`.
  25202. Check if rectangle is valid.
  25203. """
  25204. return _mupdf.FzRect_fz_is_valid_rect(self)
  25205. def fz_new_bbox_device(self):
  25206. r"""
  25207. Class-aware wrapper for `::fz_new_bbox_device()`.
  25208. Create a device to compute the bounding
  25209. box of all marks on a page.
  25210. The returned bounding box will be the union of all bounding
  25211. boxes of all objects on a page.
  25212. """
  25213. return _mupdf.FzRect_fz_new_bbox_device(self)
  25214. def fz_new_display_list(self):
  25215. r"""
  25216. Class-aware wrapper for `::fz_new_display_list()`.
  25217. Create an empty display list.
  25218. A display list contains drawing commands (text, images, etc.).
  25219. Use fz_new_list_device for populating the list.
  25220. mediabox: Bounds of the page (in points) represented by the
  25221. display list.
  25222. """
  25223. return _mupdf.FzRect_fz_new_display_list(self)
  25224. def fz_quad_from_rect(self):
  25225. r"""
  25226. Class-aware wrapper for `::fz_quad_from_rect()`.
  25227. Convert a rect to a quad (losslessly).
  25228. """
  25229. return _mupdf.FzRect_fz_quad_from_rect(self)
  25230. def fz_round_rect(self):
  25231. r"""
  25232. Class-aware wrapper for `::fz_round_rect()`.
  25233. Round rectangle coordinates.
  25234. Coordinates in a bounding box are integers, so rounding of the
  25235. rects coordinates takes place. The top left corner is rounded
  25236. upwards and left while the bottom right corner is rounded
  25237. downwards and to the right.
  25238. This differs from fz_irect_from_rect, in that fz_irect_from_rect
  25239. slavishly follows the numbers (i.e any slight over/under
  25240. calculations can cause whole extra pixels to be added).
  25241. fz_round_rect allows for a small amount of rounding error when
  25242. calculating the bbox.
  25243. """
  25244. return _mupdf.FzRect_fz_round_rect(self)
  25245. def fz_transform_page(self, resolution, rotate):
  25246. r"""
  25247. Class-aware wrapper for `::fz_transform_page()`.
  25248. Create transform matrix to draw page
  25249. at a given resolution and rotation. Adjusts the scaling
  25250. factors so that the page covers whole number of
  25251. pixels and adjust the page origin to be at 0,0.
  25252. """
  25253. return _mupdf.FzRect_fz_transform_page(self, resolution, rotate)
  25254. def fz_transform_rect(self, m):
  25255. r"""
  25256. Class-aware wrapper for `::fz_transform_rect()`.
  25257. Apply a transform to a rectangle.
  25258. After the four corner points of the axis-aligned rectangle
  25259. have been transformed it may not longer be axis-aligned. So a
  25260. new axis-aligned rectangle is created covering at least the
  25261. area of the transformed rectangle.
  25262. transform: Transformation matrix to apply. See fz_concat,
  25263. fz_scale and fz_rotate for how to create a matrix.
  25264. rect: Rectangle to be transformed. The two special cases
  25265. fz_empty_rect and fz_infinite_rect, may be used but are
  25266. returned unchanged as expected.
  25267. """
  25268. return _mupdf.FzRect_fz_transform_rect(self, m)
  25269. def fz_translate_rect(self, xoff, yoff):
  25270. r"""
  25271. Class-aware wrapper for `::fz_translate_rect()`.
  25272. Translate bounding box.
  25273. Translate a bbox by a given x and y offset. Allows for overflow.
  25274. """
  25275. return _mupdf.FzRect_fz_translate_rect(self, xoff, yoff)
  25276. def fz_union_rect(self, *args):
  25277. r"""
  25278. *Overload 1:*
  25279. Class-aware wrapper for `::fz_union_rect()`.
  25280. Compute union of two rectangles.
  25281. Given two rectangles, update the first to be the smallest
  25282. axis-aligned rectangle that encompasses both given rectangles.
  25283. If either rectangle is infinite then the union is also infinite.
  25284. If either rectangle is empty then the union is simply the
  25285. non-empty rectangle. Should both rectangles be empty, then the
  25286. union is also empty.
  25287. |
  25288. *Overload 2:*
  25289. Class-aware wrapper for `::fz_union_rect()`.
  25290. Compute union of two rectangles.
  25291. Given two rectangles, update the first to be the smallest
  25292. axis-aligned rectangle that encompasses both given rectangles.
  25293. If either rectangle is infinite then the union is also infinite.
  25294. If either rectangle is empty then the union is simply the
  25295. non-empty rectangle. Should both rectangles be empty, then the
  25296. union is also empty.
  25297. """
  25298. return _mupdf.FzRect_fz_union_rect(self, *args)
  25299. def pdf_signature_appearance_signed(self, lang, img, left_text, right_text, include_logo):
  25300. r"""Class-aware wrapper for `::pdf_signature_appearance_signed()`."""
  25301. return _mupdf.FzRect_pdf_signature_appearance_signed(self, lang, img, left_text, right_text, include_logo)
  25302. def pdf_signature_appearance_unsigned(self, lang):
  25303. r"""Class-aware wrapper for `::pdf_signature_appearance_unsigned()`."""
  25304. return _mupdf.FzRect_pdf_signature_appearance_unsigned(self, lang)
  25305. def transform(self, m):
  25306. r"""Transforms *this using fz_transform_rect() with <m>."""
  25307. return _mupdf.FzRect_transform(self, m)
  25308. def contains(self, *args):
  25309. r"""
  25310. *Overload 1:*
  25311. Convenience method using fz_contains_rect().
  25312. |
  25313. *Overload 2:*
  25314. Uses fz_contains_rect(*this, rhs).
  25315. """
  25316. return _mupdf.FzRect_contains(self, *args)
  25317. def is_empty(self):
  25318. r"""Uses fz_is_empty_rect()."""
  25319. return _mupdf.FzRect_is_empty(self)
  25320. def union_(self, rhs):
  25321. r"""Updates *this using fz_union_rect()."""
  25322. return _mupdf.FzRect_union_(self, rhs)
  25323. def __init__(self, *args):
  25324. r"""
  25325. *Overload 1:*
  25326. == Constructors. Constructor using `fz_bound_display_list()`.
  25327. Return the bounding box of the page recorded in a display list.
  25328. |
  25329. *Overload 2:*
  25330. Constructor using `fz_rect_from_irect()`.
  25331. Convert a bbox into a rect.
  25332. For our purposes, a rect can represent all the values we meet in
  25333. a bbox, so nothing can go wrong.
  25334. rect: A place to store the generated rectangle.
  25335. bbox: The bbox to convert.
  25336. Returns rect (updated).
  25337. |
  25338. *Overload 3:*
  25339. Constructor using `fz_rect_from_quad()`.
  25340. Convert a quad to the smallest rect that covers it.
  25341. |
  25342. *Overload 4:*
  25343. Constructor using `fz_transform_rect()`.
  25344. Apply a transform to a rectangle.
  25345. After the four corner points of the axis-aligned rectangle
  25346. have been transformed it may not longer be axis-aligned. So a
  25347. new axis-aligned rectangle is created covering at least the
  25348. area of the transformed rectangle.
  25349. transform: Transformation matrix to apply. See fz_concat,
  25350. fz_scale and fz_rotate for how to create a matrix.
  25351. rect: Rectangle to be transformed. The two special cases
  25352. fz_empty_rect and fz_infinite_rect, may be used but are
  25353. returned unchanged as expected.
  25354. |
  25355. *Overload 5:*
  25356. Construct from specified values.
  25357. |
  25358. *Overload 6:*
  25359. Copy constructor using plain copy.
  25360. |
  25361. *Overload 7:*
  25362. Construct from fz_unit_rect, fz_empty_rect or fz_infinite_rect.
  25363. |
  25364. *Overload 8:*
  25365. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  25366. |
  25367. *Overload 9:*
  25368. Constructor using raw copy of pre-existing `::fz_rect`.
  25369. |
  25370. *Overload 10:*
  25371. Constructor using raw copy of pre-existing `::fz_rect`.
  25372. """
  25373. _mupdf.FzRect_swiginit(self, _mupdf.new_FzRect(*args))
  25374. def internal(self, *args):
  25375. r"""
  25376. *Overload 1:*
  25377. Access as underlying struct.
  25378. |
  25379. *Overload 2:*
  25380. Access as underlying struct.
  25381. """
  25382. return _mupdf.FzRect_internal(self, *args)
  25383. __swig_destroy__ = _mupdf.delete_FzRect
  25384. x0 = property(_mupdf.FzRect_x0_get, _mupdf.FzRect_x0_set)
  25385. y0 = property(_mupdf.FzRect_y0_get, _mupdf.FzRect_y0_set)
  25386. x1 = property(_mupdf.FzRect_x1_get, _mupdf.FzRect_x1_set)
  25387. y1 = property(_mupdf.FzRect_y1_get, _mupdf.FzRect_y1_set)
  25388. s_num_instances = property(_mupdf.FzRect_s_num_instances_get, _mupdf.FzRect_s_num_instances_set)
  25389. def to_string(self):
  25390. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  25391. return _mupdf.FzRect_to_string(self)
  25392. def __eq__(self, rhs):
  25393. r"""Comparison method."""
  25394. return _mupdf.FzRect___eq__(self, rhs)
  25395. def __ne__(self, rhs):
  25396. r"""Comparison method."""
  25397. return _mupdf.FzRect___ne__(self, rhs)
  25398. # Register FzRect in _mupdf:
  25399. _mupdf.FzRect_swigregister(FzRect)
  25400. class FzSeparations(object):
  25401. r"""Wrapper class for struct `fz_separations`."""
  25402. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25403. __repr__ = _swig_repr
  25404. def fz_add_separation(self, name, cs, cs_channel):
  25405. r"""
  25406. Class-aware wrapper for `::fz_add_separation()`.
  25407. Add a separation (null terminated name, colorspace)
  25408. """
  25409. return _mupdf.FzSeparations_fz_add_separation(self, name, cs, cs_channel)
  25410. def fz_add_separation_equivalents(self, rgba, cmyk, name):
  25411. r"""
  25412. Class-aware wrapper for `::fz_add_separation_equivalents()`.
  25413. Add a separation with equivalents (null terminated name,
  25414. colorspace)
  25415. (old, deprecated)
  25416. """
  25417. return _mupdf.FzSeparations_fz_add_separation_equivalents(self, rgba, cmyk, name)
  25418. def fz_clone_separations_for_overprint(self):
  25419. r"""
  25420. Class-aware wrapper for `::fz_clone_separations_for_overprint()`.
  25421. Return a separations object with all the spots in the input
  25422. separations object that are set to composite, reset to be
  25423. enabled. If there ARE no spots in the object, this returns
  25424. NULL. If the object already has all its spots enabled, then
  25425. just returns another handle on the same object.
  25426. """
  25427. return _mupdf.FzSeparations_fz_clone_separations_for_overprint(self)
  25428. def fz_compare_separations(self, sep2):
  25429. r"""
  25430. Class-aware wrapper for `::fz_compare_separations()`.
  25431. Compare 2 separations structures (or NULLs).
  25432. Return 0 if identical, non-zero if not identical.
  25433. """
  25434. return _mupdf.FzSeparations_fz_compare_separations(self, sep2)
  25435. def fz_count_active_separations(self):
  25436. r"""
  25437. Class-aware wrapper for `::fz_count_active_separations()`.
  25438. Return the number of active separations.
  25439. """
  25440. return _mupdf.FzSeparations_fz_count_active_separations(self)
  25441. def fz_count_separations(self):
  25442. r"""Class-aware wrapper for `::fz_count_separations()`."""
  25443. return _mupdf.FzSeparations_fz_count_separations(self)
  25444. def fz_separation_equivalent(self, idx, dst_cs, dst_color, prf, color_params):
  25445. r"""
  25446. Class-aware wrapper for `::fz_separation_equivalent()`.
  25447. This method has out-params. Python/C# wrappers look like:
  25448. `fz_separation_equivalent(int idx, ::fz_colorspace *dst_cs, ::fz_colorspace *prf, ::fz_color_params color_params)` => float dst_color
  25449. Get the equivalent separation color in a given colorspace.
  25450. """
  25451. return _mupdf.FzSeparations_fz_separation_equivalent(self, idx, dst_cs, dst_color, prf, color_params)
  25452. def fz_separation_name(self, separation):
  25453. r"""Class-aware wrapper for `::fz_separation_name()`."""
  25454. return _mupdf.FzSeparations_fz_separation_name(self, separation)
  25455. def fz_set_separation_behavior(self, separation, behavior):
  25456. r"""
  25457. Class-aware wrapper for `::fz_set_separation_behavior()`.
  25458. Control the rendering of a given separation.
  25459. """
  25460. return _mupdf.FzSeparations_fz_set_separation_behavior(self, separation, behavior)
  25461. def __init__(self, *args):
  25462. r"""
  25463. *Overload 1:*
  25464. == Constructors. Constructor using `fz_new_separations()`.
  25465. Create a new separations structure (initially empty)
  25466. |
  25467. *Overload 2:*
  25468. Copy constructor using `fz_keep_separations()`.
  25469. |
  25470. *Overload 3:*
  25471. Constructor using raw copy of pre-existing `::fz_separations`.
  25472. |
  25473. *Overload 4:*
  25474. Constructor using raw copy of pre-existing `::fz_separations`.
  25475. """
  25476. _mupdf.FzSeparations_swiginit(self, _mupdf.new_FzSeparations(*args))
  25477. __swig_destroy__ = _mupdf.delete_FzSeparations
  25478. def m_internal_value(self):
  25479. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25480. return _mupdf.FzSeparations_m_internal_value(self)
  25481. def __nonzero__(self):
  25482. return _mupdf.FzSeparations___nonzero__(self)
  25483. __bool__ = __nonzero__
  25484. m_internal = property(_mupdf.FzSeparations_m_internal_get, _mupdf.FzSeparations_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25485. s_num_instances = property(_mupdf.FzSeparations_s_num_instances_get, _mupdf.FzSeparations_s_num_instances_set)
  25486. # Register FzSeparations in _mupdf:
  25487. _mupdf.FzSeparations_swigregister(FzSeparations)
  25488. class FzSha256(object):
  25489. r"""
  25490. Wrapper class for struct `fz_sha256`. Not copyable or assignable.
  25491. Structure definition is public to enable stack
  25492. based allocation. Do not access the members directly.
  25493. """
  25494. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25495. __repr__ = _swig_repr
  25496. def fz_sha256_final(self, digest):
  25497. r"""
  25498. Class-aware wrapper for `::fz_sha256_final()`.
  25499. MD5 finalization. Ends an MD5 message-digest operation, writing
  25500. the message digest and zeroizing the context.
  25501. Never throws an exception.
  25502. """
  25503. return _mupdf.FzSha256_fz_sha256_final(self, digest)
  25504. def fz_sha256_init(self):
  25505. r"""
  25506. Class-aware wrapper for `::fz_sha256_init()`.
  25507. SHA256 initialization. Begins an SHA256 operation, initialising
  25508. the supplied context.
  25509. Never throws an exception.
  25510. """
  25511. return _mupdf.FzSha256_fz_sha256_init(self)
  25512. def fz_sha256_update(self, input, inlen):
  25513. r"""
  25514. Class-aware wrapper for `::fz_sha256_update()`.
  25515. SHA256 block update operation. Continues an SHA256 message-
  25516. digest operation, processing another message block, and updating
  25517. the context.
  25518. Never throws an exception.
  25519. """
  25520. return _mupdf.FzSha256_fz_sha256_update(self, input, inlen)
  25521. def __init__(self, *args):
  25522. r"""
  25523. *Overload 1:*
  25524. Default constructor, sets `m_internal` to null.
  25525. |
  25526. *Overload 2:*
  25527. Constructor using raw copy of pre-existing `::fz_sha256`.
  25528. """
  25529. _mupdf.FzSha256_swiginit(self, _mupdf.new_FzSha256(*args))
  25530. __swig_destroy__ = _mupdf.delete_FzSha256
  25531. def m_internal_value(self):
  25532. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25533. return _mupdf.FzSha256_m_internal_value(self)
  25534. def __nonzero__(self):
  25535. return _mupdf.FzSha256___nonzero__(self)
  25536. __bool__ = __nonzero__
  25537. m_internal = property(_mupdf.FzSha256_m_internal_get, _mupdf.FzSha256_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25538. s_num_instances = property(_mupdf.FzSha256_s_num_instances_get, _mupdf.FzSha256_s_num_instances_set)
  25539. # Register FzSha256 in _mupdf:
  25540. _mupdf.FzSha256_swigregister(FzSha256)
  25541. class FzSha384(object):
  25542. r"""Wrapper class for struct `fz_sha384`. Not copyable or assignable."""
  25543. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25544. __repr__ = _swig_repr
  25545. def __init__(self, *args):
  25546. r"""
  25547. *Overload 1:*
  25548. Default constructor, sets `m_internal` to null.
  25549. |
  25550. *Overload 2:*
  25551. Constructor using raw copy of pre-existing `::fz_sha384`.
  25552. """
  25553. _mupdf.FzSha384_swiginit(self, _mupdf.new_FzSha384(*args))
  25554. __swig_destroy__ = _mupdf.delete_FzSha384
  25555. def m_internal_value(self):
  25556. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25557. return _mupdf.FzSha384_m_internal_value(self)
  25558. def __nonzero__(self):
  25559. return _mupdf.FzSha384___nonzero__(self)
  25560. __bool__ = __nonzero__
  25561. m_internal = property(_mupdf.FzSha384_m_internal_get, _mupdf.FzSha384_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25562. s_num_instances = property(_mupdf.FzSha384_s_num_instances_get, _mupdf.FzSha384_s_num_instances_set)
  25563. # Register FzSha384 in _mupdf:
  25564. _mupdf.FzSha384_swigregister(FzSha384)
  25565. class FzSha512(object):
  25566. r"""
  25567. Wrapper class for struct `fz_sha512`. Not copyable or assignable.
  25568. Structure definition is public to enable stack
  25569. based allocation. Do not access the members directly.
  25570. """
  25571. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25572. __repr__ = _swig_repr
  25573. def fz_sha384_final(self, digest):
  25574. r"""
  25575. Class-aware wrapper for `::fz_sha384_final()`.
  25576. SHA384 finalization. Ends an SHA384 message-digest operation,
  25577. writing the message digest and zeroizing the context.
  25578. Never throws an exception.
  25579. """
  25580. return _mupdf.FzSha512_fz_sha384_final(self, digest)
  25581. def fz_sha384_init(self):
  25582. r"""
  25583. Class-aware wrapper for `::fz_sha384_init()`.
  25584. SHA384 initialization. Begins an SHA384 operation, initialising
  25585. the supplied context.
  25586. Never throws an exception.
  25587. """
  25588. return _mupdf.FzSha512_fz_sha384_init(self)
  25589. def fz_sha384_update(self, input, inlen):
  25590. r"""
  25591. Class-aware wrapper for `::fz_sha384_update()`.
  25592. SHA384 block update operation. Continues an SHA384 message-
  25593. digest operation, processing another message block, and updating
  25594. the context.
  25595. Never throws an exception.
  25596. """
  25597. return _mupdf.FzSha512_fz_sha384_update(self, input, inlen)
  25598. def fz_sha512_final(self, digest):
  25599. r"""
  25600. Class-aware wrapper for `::fz_sha512_final()`.
  25601. SHA512 finalization. Ends an SHA512 message-digest operation,
  25602. writing the message digest and zeroizing the context.
  25603. Never throws an exception.
  25604. """
  25605. return _mupdf.FzSha512_fz_sha512_final(self, digest)
  25606. def fz_sha512_init(self):
  25607. r"""
  25608. Class-aware wrapper for `::fz_sha512_init()`.
  25609. SHA512 initialization. Begins an SHA512 operation, initialising
  25610. the supplied context.
  25611. Never throws an exception.
  25612. """
  25613. return _mupdf.FzSha512_fz_sha512_init(self)
  25614. def fz_sha512_update(self, input, inlen):
  25615. r"""
  25616. Class-aware wrapper for `::fz_sha512_update()`.
  25617. SHA512 block update operation. Continues an SHA512 message-
  25618. digest operation, processing another message block, and updating
  25619. the context.
  25620. Never throws an exception.
  25621. """
  25622. return _mupdf.FzSha512_fz_sha512_update(self, input, inlen)
  25623. def __init__(self, *args):
  25624. r"""
  25625. *Overload 1:*
  25626. Default constructor, sets `m_internal` to null.
  25627. |
  25628. *Overload 2:*
  25629. Constructor using raw copy of pre-existing `::fz_sha512`.
  25630. """
  25631. _mupdf.FzSha512_swiginit(self, _mupdf.new_FzSha512(*args))
  25632. __swig_destroy__ = _mupdf.delete_FzSha512
  25633. def m_internal_value(self):
  25634. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25635. return _mupdf.FzSha512_m_internal_value(self)
  25636. def __nonzero__(self):
  25637. return _mupdf.FzSha512___nonzero__(self)
  25638. __bool__ = __nonzero__
  25639. m_internal = property(_mupdf.FzSha512_m_internal_get, _mupdf.FzSha512_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25640. s_num_instances = property(_mupdf.FzSha512_s_num_instances_get, _mupdf.FzSha512_s_num_instances_set)
  25641. # Register FzSha512 in _mupdf:
  25642. _mupdf.FzSha512_swigregister(FzSha512)
  25643. class FzShade(object):
  25644. r"""
  25645. Wrapper class for struct `fz_shade`.
  25646. Structure is public to allow derived classes. Do not
  25647. access the members directly.
  25648. """
  25649. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25650. __repr__ = _swig_repr
  25651. def fz_bound_shade(self, ctm):
  25652. r"""
  25653. Class-aware wrapper for `::fz_bound_shade()`.
  25654. Bound a given shading.
  25655. shade: The shade to bound.
  25656. ctm: The transform to apply to the shade before bounding.
  25657. r: Pointer to storage to put the bounds in.
  25658. Returns r, updated to contain the bounds for the shading.
  25659. """
  25660. return _mupdf.FzShade_fz_bound_shade(self, ctm)
  25661. def fz_paint_shade(self, override_cs, ctm, dest, color_params, bbox, eop, cache):
  25662. r"""
  25663. Class-aware wrapper for `::fz_paint_shade()`.
  25664. This method has out-params. Python/C# wrappers look like:
  25665. `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)` =>
  25666. Render a shade to a given pixmap.
  25667. shade: The shade to paint.
  25668. override_cs: NULL, or colorspace to override the shades
  25669. inbuilt colorspace.
  25670. ctm: The transform to apply.
  25671. dest: The pixmap to render into.
  25672. color_params: The color rendering settings
  25673. bbox: Pointer to a bounding box to limit the rendering
  25674. of the shade.
  25675. eop: NULL, or pointer to overprint bitmap.
  25676. cache: *cache is used to cache color information. If *cache is NULL it
  25677. is set to point to a new fz_shade_color_cache. If cache is NULL it is
  25678. ignored.
  25679. """
  25680. return _mupdf.FzShade_fz_paint_shade(self, override_cs, ctm, dest, color_params, bbox, eop, cache)
  25681. def fz_process_shade(self, ctm, scissor, prepare, process, process_arg):
  25682. r"""
  25683. Class-aware wrapper for `::fz_process_shade()`.
  25684. Process a shade, using supplied callback functions. This
  25685. decomposes the shading to a mesh (even ones that are not
  25686. natively meshes, such as linear or radial shadings), and
  25687. processes triangles from those meshes.
  25688. shade: The shade to process.
  25689. ctm: The transform to use
  25690. prepare: Callback function to 'prepare' each vertex.
  25691. This function is passed an array of floats, and populates
  25692. a fz_vertex structure.
  25693. process: This function is passed 3 pointers to vertex
  25694. structures, and actually performs the processing (typically
  25695. filling the area between the vertices).
  25696. process_arg: An opaque argument passed through from caller
  25697. to callback functions.
  25698. """
  25699. return _mupdf.FzShade_fz_process_shade(self, ctm, scissor, prepare, process, process_arg)
  25700. def fz_paint_shade_no_cache(self, override_cs, ctm, dest, color_params, bbox, eop):
  25701. r"""Extra wrapper for fz_paint_shade(), passing cache=NULL."""
  25702. return _mupdf.FzShade_fz_paint_shade_no_cache(self, override_cs, ctm, dest, color_params, bbox, eop)
  25703. def __init__(self, *args):
  25704. r"""
  25705. *Overload 1:*
  25706. Copy constructor using `fz_keep_shade()`.
  25707. |
  25708. *Overload 2:*
  25709. Default constructor, sets `m_internal` to null.
  25710. |
  25711. *Overload 3:*
  25712. Constructor using raw copy of pre-existing `::fz_shade`.
  25713. """
  25714. _mupdf.FzShade_swiginit(self, _mupdf.new_FzShade(*args))
  25715. __swig_destroy__ = _mupdf.delete_FzShade
  25716. def m_internal_value(self):
  25717. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25718. return _mupdf.FzShade_m_internal_value(self)
  25719. def __nonzero__(self):
  25720. return _mupdf.FzShade___nonzero__(self)
  25721. __bool__ = __nonzero__
  25722. m_internal = property(_mupdf.FzShade_m_internal_get, _mupdf.FzShade_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25723. s_num_instances = property(_mupdf.FzShade_s_num_instances_get, _mupdf.FzShade_s_num_instances_set)
  25724. # Register FzShade in _mupdf:
  25725. _mupdf.FzShade_swigregister(FzShade)
  25726. class FzShadeColorCache(object):
  25727. r"""Wrapper class for struct `fz_shade_color_cache`. Not copyable or assignable."""
  25728. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25729. __repr__ = _swig_repr
  25730. def __init__(self, *args):
  25731. r"""
  25732. *Overload 1:*
  25733. Default constructor, sets `m_internal` to null.
  25734. |
  25735. *Overload 2:*
  25736. Constructor using raw copy of pre-existing `::fz_shade_color_cache`.
  25737. """
  25738. _mupdf.FzShadeColorCache_swiginit(self, _mupdf.new_FzShadeColorCache(*args))
  25739. __swig_destroy__ = _mupdf.delete_FzShadeColorCache
  25740. def m_internal_value(self):
  25741. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25742. return _mupdf.FzShadeColorCache_m_internal_value(self)
  25743. def __nonzero__(self):
  25744. return _mupdf.FzShadeColorCache___nonzero__(self)
  25745. __bool__ = __nonzero__
  25746. m_internal = property(_mupdf.FzShadeColorCache_m_internal_get, _mupdf.FzShadeColorCache_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25747. s_num_instances = property(_mupdf.FzShadeColorCache_s_num_instances_get, _mupdf.FzShadeColorCache_s_num_instances_set)
  25748. # Register FzShadeColorCache in _mupdf:
  25749. _mupdf.FzShadeColorCache_swigregister(FzShadeColorCache)
  25750. class FzShaperDataT(object):
  25751. r"""
  25752. Wrapper class for struct `fz_shaper_data_t`. Not copyable or assignable.
  25753. In order to shape a given font, we need to
  25754. declare it to a shaper library (harfbuzz, by default, but others
  25755. are possible). To avoid redeclaring it every time we need to
  25756. shape, we hold a shaper handle and the destructor for it within
  25757. the font itself. The handle is initialised by the caller when
  25758. first required and the destructor is called when the fz_font is
  25759. destroyed.
  25760. """
  25761. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25762. __repr__ = _swig_repr
  25763. def __init__(self, *args):
  25764. r"""
  25765. *Overload 1:*
  25766. Default constructor, sets `m_internal` to null.
  25767. |
  25768. *Overload 2:*
  25769. Constructor using raw copy of pre-existing `::fz_shaper_data_t`.
  25770. """
  25771. _mupdf.FzShaperDataT_swiginit(self, _mupdf.new_FzShaperDataT(*args))
  25772. __swig_destroy__ = _mupdf.delete_FzShaperDataT
  25773. def m_internal_value(self):
  25774. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25775. return _mupdf.FzShaperDataT_m_internal_value(self)
  25776. def __nonzero__(self):
  25777. return _mupdf.FzShaperDataT___nonzero__(self)
  25778. __bool__ = __nonzero__
  25779. m_internal = property(_mupdf.FzShaperDataT_m_internal_get, _mupdf.FzShaperDataT_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25780. s_num_instances = property(_mupdf.FzShaperDataT_s_num_instances_get, _mupdf.FzShaperDataT_s_num_instances_set)
  25781. # Register FzShaperDataT in _mupdf:
  25782. _mupdf.FzShaperDataT_swigregister(FzShaperDataT)
  25783. class FzStextBlock(object):
  25784. r"""Wrapper class for struct `fz_stext_block`."""
  25785. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25786. __repr__ = _swig_repr
  25787. def i_transform(self):
  25788. r"""Returns m_internal.u.i.transform if m_internal->type is FZ_STEXT_BLOCK_IMAGE, else throws."""
  25789. return _mupdf.FzStextBlock_i_transform(self)
  25790. def i_image(self):
  25791. r"""Returns m_internal.u.i.image if m_internal->type is FZ_STEXT_BLOCK_IMAGE, else throws."""
  25792. return _mupdf.FzStextBlock_i_image(self)
  25793. def begin(self):
  25794. r"""Used for iteration over linked list of FzStextLine items starting at fz_stext_line::u.t.first_line."""
  25795. return _mupdf.FzStextBlock_begin(self)
  25796. def end(self):
  25797. r"""Used for iteration over linked list of FzStextLine items starting at fz_stext_line::u.t.first_line."""
  25798. return _mupdf.FzStextBlock_end(self)
  25799. def __init__(self, *args):
  25800. r"""
  25801. *Overload 1:*
  25802. We use default copy constructor and operator=. Default constructor, sets `m_internal` to null.
  25803. |
  25804. *Overload 2:*
  25805. Constructor using raw copy of pre-existing `::fz_stext_block`.
  25806. """
  25807. _mupdf.FzStextBlock_swiginit(self, _mupdf.new_FzStextBlock(*args))
  25808. __swig_destroy__ = _mupdf.delete_FzStextBlock
  25809. def m_internal_value(self):
  25810. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25811. return _mupdf.FzStextBlock_m_internal_value(self)
  25812. def __nonzero__(self):
  25813. return _mupdf.FzStextBlock___nonzero__(self)
  25814. __bool__ = __nonzero__
  25815. m_internal = property(_mupdf.FzStextBlock_m_internal_get, _mupdf.FzStextBlock_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25816. s_num_instances = property(_mupdf.FzStextBlock_s_num_instances_get, _mupdf.FzStextBlock_s_num_instances_set)
  25817. # Register FzStextBlock in _mupdf:
  25818. _mupdf.FzStextBlock_swigregister(FzStextBlock)
  25819. class FzStextChar(object):
  25820. r"""
  25821. Wrapper class for struct `fz_stext_char`.
  25822. Text extraction device: Used for searching, format conversion etc.
  25823. (In development - Subject to change in future versions)
  25824. """
  25825. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25826. __repr__ = _swig_repr
  25827. def __init__(self, *args):
  25828. r"""
  25829. *Overload 1:*
  25830. We use default copy constructor and operator=. Default constructor, sets `m_internal` to null.
  25831. |
  25832. *Overload 2:*
  25833. Constructor using raw copy of pre-existing `::fz_stext_char`.
  25834. """
  25835. _mupdf.FzStextChar_swiginit(self, _mupdf.new_FzStextChar(*args))
  25836. __swig_destroy__ = _mupdf.delete_FzStextChar
  25837. def m_internal_value(self):
  25838. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25839. return _mupdf.FzStextChar_m_internal_value(self)
  25840. def __nonzero__(self):
  25841. return _mupdf.FzStextChar___nonzero__(self)
  25842. __bool__ = __nonzero__
  25843. m_internal = property(_mupdf.FzStextChar_m_internal_get, _mupdf.FzStextChar_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25844. s_num_instances = property(_mupdf.FzStextChar_s_num_instances_get, _mupdf.FzStextChar_s_num_instances_set)
  25845. # Register FzStextChar in _mupdf:
  25846. _mupdf.FzStextChar_swigregister(FzStextChar)
  25847. class FzStextGridPositions(object):
  25848. r"""Wrapper class for struct `fz_stext_grid_positions`. Not copyable or assignable."""
  25849. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25850. __repr__ = _swig_repr
  25851. def __init__(self, *args):
  25852. r"""
  25853. *Overload 1:*
  25854. Default constructor, sets `m_internal` to null.
  25855. |
  25856. *Overload 2:*
  25857. Constructor using raw copy of pre-existing `::fz_stext_grid_positions`.
  25858. """
  25859. _mupdf.FzStextGridPositions_swiginit(self, _mupdf.new_FzStextGridPositions(*args))
  25860. __swig_destroy__ = _mupdf.delete_FzStextGridPositions
  25861. def m_internal_value(self):
  25862. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25863. return _mupdf.FzStextGridPositions_m_internal_value(self)
  25864. def __nonzero__(self):
  25865. return _mupdf.FzStextGridPositions___nonzero__(self)
  25866. __bool__ = __nonzero__
  25867. m_internal = property(_mupdf.FzStextGridPositions_m_internal_get, _mupdf.FzStextGridPositions_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25868. s_num_instances = property(_mupdf.FzStextGridPositions_s_num_instances_get, _mupdf.FzStextGridPositions_s_num_instances_set)
  25869. # Register FzStextGridPositions in _mupdf:
  25870. _mupdf.FzStextGridPositions_swigregister(FzStextGridPositions)
  25871. class FzStextLine(object):
  25872. r"""Wrapper class for struct `fz_stext_line`."""
  25873. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25874. __repr__ = _swig_repr
  25875. def begin(self):
  25876. r"""Used for iteration over linked list of FzStextChar items starting at fz_stext_char::first_char."""
  25877. return _mupdf.FzStextLine_begin(self)
  25878. def end(self):
  25879. r"""Used for iteration over linked list of FzStextChar items starting at fz_stext_char::first_char."""
  25880. return _mupdf.FzStextLine_end(self)
  25881. def __init__(self, *args):
  25882. r"""
  25883. *Overload 1:*
  25884. We use default copy constructor and operator=. Default constructor, sets `m_internal` to null.
  25885. |
  25886. *Overload 2:*
  25887. Constructor using raw copy of pre-existing `::fz_stext_line`.
  25888. """
  25889. _mupdf.FzStextLine_swiginit(self, _mupdf.new_FzStextLine(*args))
  25890. __swig_destroy__ = _mupdf.delete_FzStextLine
  25891. def m_internal_value(self):
  25892. r"""Return numerical value of .m_internal; helps with Python debugging."""
  25893. return _mupdf.FzStextLine_m_internal_value(self)
  25894. def __nonzero__(self):
  25895. return _mupdf.FzStextLine___nonzero__(self)
  25896. __bool__ = __nonzero__
  25897. m_internal = property(_mupdf.FzStextLine_m_internal_get, _mupdf.FzStextLine_m_internal_set, doc=r"""Pointer to wrapped data.""")
  25898. s_num_instances = property(_mupdf.FzStextLine_s_num_instances_get, _mupdf.FzStextLine_s_num_instances_set)
  25899. # Register FzStextLine in _mupdf:
  25900. _mupdf.FzStextLine_swigregister(FzStextLine)
  25901. class FzStextOptions(object):
  25902. r"""
  25903. Wrapper class for struct `fz_stext_options`.
  25904. Options for creating structured text.
  25905. """
  25906. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25907. __repr__ = _swig_repr
  25908. def fz_parse_stext_options(self, string):
  25909. r"""
  25910. Class-aware wrapper for `::fz_parse_stext_options()`.
  25911. Parse stext device options from a comma separated key-value
  25912. string.
  25913. """
  25914. return _mupdf.FzStextOptions_fz_parse_stext_options(self, string)
  25915. def __init__(self, *args):
  25916. r"""
  25917. *Overload 1:*
  25918. Construct with .flags, .scale but no clip.
  25919. |
  25920. *Overload 2:*
  25921. Construct with .flags, .scale and .clip; FZ_STEXT_CLIP_RECT
  25922. is automatically set in .flags.
  25923. |
  25924. *Overload 3:*
  25925. Construct with .flags, .scale and .clip; FZ_STEXT_CLIP_RECT
  25926. is automatically set in .flags.
  25927. |
  25928. *Overload 4:*
  25929. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  25930. |
  25931. *Overload 5:*
  25932. Constructor using raw copy of pre-existing `::fz_stext_options`.
  25933. |
  25934. *Overload 6:*
  25935. Constructor using raw copy of pre-existing `::fz_stext_options`.
  25936. """
  25937. _mupdf.FzStextOptions_swiginit(self, _mupdf.new_FzStextOptions(*args))
  25938. def internal(self, *args):
  25939. r"""
  25940. *Overload 1:*
  25941. Access as underlying struct.
  25942. |
  25943. *Overload 2:*
  25944. Access as underlying struct.
  25945. """
  25946. return _mupdf.FzStextOptions_internal(self, *args)
  25947. __swig_destroy__ = _mupdf.delete_FzStextOptions
  25948. flags = property(_mupdf.FzStextOptions_flags_get, _mupdf.FzStextOptions_flags_set)
  25949. scale = property(_mupdf.FzStextOptions_scale_get, _mupdf.FzStextOptions_scale_set)
  25950. clip = property(_mupdf.FzStextOptions_clip_get, _mupdf.FzStextOptions_clip_set)
  25951. s_num_instances = property(_mupdf.FzStextOptions_s_num_instances_get, _mupdf.FzStextOptions_s_num_instances_set)
  25952. def to_string(self):
  25953. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  25954. return _mupdf.FzStextOptions_to_string(self)
  25955. def __eq__(self, rhs):
  25956. r"""Comparison method."""
  25957. return _mupdf.FzStextOptions___eq__(self, rhs)
  25958. def __ne__(self, rhs):
  25959. r"""Comparison method."""
  25960. return _mupdf.FzStextOptions___ne__(self, rhs)
  25961. # Register FzStextOptions in _mupdf:
  25962. _mupdf.FzStextOptions_swigregister(FzStextOptions)
  25963. class FzStextPage(object):
  25964. r"""
  25965. Wrapper class for struct `fz_stext_page`. Not copyable or assignable.
  25966. A text page is a list of blocks, together with an overall
  25967. bounding box.
  25968. """
  25969. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  25970. __repr__ = _swig_repr
  25971. def fz_find_table_within_bounds(self, bounds):
  25972. r"""
  25973. Class-aware wrapper for `::fz_find_table_within_bounds()`.
  25974. Interpret the bounded contents of a given stext page as
  25975. a table.
  25976. The page contents will be rewritten to contain a Table
  25977. structure with the identified content in it.
  25978. This uses the same logic as for fz_table_hunt, without the
  25979. actual hunting. fz_table_hunt hunts to find possible bounds
  25980. for multiple tables on the page; this routine just finds a
  25981. single table contained within the given rectangle.
  25982. Returns the stext_block list that contains the content of
  25983. the table.
  25984. """
  25985. return _mupdf.FzStextPage_fz_find_table_within_bounds(self, bounds)
  25986. def fz_highlight_selection(self, a, b, quads, max_quads):
  25987. r"""
  25988. Class-aware wrapper for `::fz_highlight_selection()`.
  25989. Return a list of quads to highlight lines inside the selection
  25990. points.
  25991. """
  25992. return _mupdf.FzStextPage_fz_highlight_selection(self, a, b, quads, max_quads)
  25993. def fz_highlight_selection2(self, a, b, max_quads):
  25994. r"""
  25995. Class-aware wrapper for `::fz_highlight_selection2()`.
  25996. C++ alternative to fz_highlight_selection() that returns quads in a
  25997. std::vector.
  25998. """
  25999. return _mupdf.FzStextPage_fz_highlight_selection2(self, a, b, max_quads)
  26000. def fz_new_buffer_from_stext_page(self):
  26001. r"""
  26002. Class-aware wrapper for `::fz_new_buffer_from_stext_page()`.
  26003. Convert structured text into plain text.
  26004. """
  26005. return _mupdf.FzStextPage_fz_new_buffer_from_stext_page(self)
  26006. def fz_new_stext_device(self, options):
  26007. r"""
  26008. Class-aware wrapper for `::fz_new_stext_device()`.
  26009. Create a device to extract the text on a page.
  26010. Gather the text on a page into blocks and lines.
  26011. The reading order is taken from the order the text is drawn in
  26012. the source file, so may not be accurate.
  26013. page: The text page to which content should be added. This will
  26014. usually be a newly created (empty) text page, but it can be one
  26015. containing data already (for example when merging multiple
  26016. pages, or watermarking).
  26017. options: Options to configure the stext device.
  26018. """
  26019. return _mupdf.FzStextPage_fz_new_stext_device(self, options)
  26020. def fz_paragraph_break(self):
  26021. r"""
  26022. Class-aware wrapper for `::fz_paragraph_break()`.
  26023. Attempt to break paragraphs at plausible places.
  26024. """
  26025. return _mupdf.FzStextPage_fz_paragraph_break(self)
  26026. def fz_search_stext_page(self, needle, hit_mark, hit_bbox, hit_max):
  26027. r"""
  26028. Class-aware wrapper for `::fz_search_stext_page()`.
  26029. This method has out-params. Python/C# wrappers look like:
  26030. `fz_search_stext_page(const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  26031. Search for occurrence of 'needle' in text page.
  26032. Return the number of quads and store hit quads in the passed in
  26033. array.
  26034. NOTE: This is an experimental interface and subject to change
  26035. without notice.
  26036. """
  26037. return _mupdf.FzStextPage_fz_search_stext_page(self, needle, hit_mark, hit_bbox, hit_max)
  26038. def fz_search_stext_page_cb(self, needle, cb, opaque):
  26039. r"""
  26040. Class-aware wrapper for `::fz_search_stext_page_cb()`.
  26041. Search for occurrence of 'needle' in text page.
  26042. Call callback once for each hit. This callback will receive
  26043. (potentially) multiple quads for each hit.
  26044. Returns the number of hits - note that this is potentially
  26045. different from (i.e. is not greater than) the number of quads
  26046. as returned by the non callback API.
  26047. NOTE: This is an experimental interface and subject to change
  26048. without notice.
  26049. """
  26050. return _mupdf.FzStextPage_fz_search_stext_page_cb(self, needle, cb, opaque)
  26051. def fz_segment_stext_page(self):
  26052. r"""
  26053. Class-aware wrapper for `::fz_segment_stext_page()`.
  26054. Perform segmentation analysis on an (unstructured) page to look for
  26055. recursive subdivisions.
  26056. Essentially this code attempts to split the page horizontally and/or
  26057. vertically repeatedly into smaller and smaller "segments" (divisions).
  26058. Returns 0 if no changes were made to the document.
  26059. This is experimental code, and may change (or be removed) in future
  26060. versions!
  26061. """
  26062. return _mupdf.FzStextPage_fz_segment_stext_page(self)
  26063. def fz_snap_selection(self, ap, bp, mode):
  26064. r"""Class-aware wrapper for `::fz_snap_selection()`."""
  26065. return _mupdf.FzStextPage_fz_snap_selection(self, ap, bp, mode)
  26066. def fz_table_hunt(self):
  26067. r"""
  26068. Class-aware wrapper for `::fz_table_hunt()`.
  26069. Hunt for possible tables on a page, and update the stext with
  26070. information.
  26071. """
  26072. return _mupdf.FzStextPage_fz_table_hunt(self)
  26073. def fz_copy_selection(self, a, b, crlf):
  26074. r"""Wrapper for fz_copy_selection() that returns std::string."""
  26075. return _mupdf.FzStextPage_fz_copy_selection(self, a, b, crlf)
  26076. def fz_copy_rectangle(self, area, crlf):
  26077. r"""Wrapper for fz_copy_rectangle() that returns a std::string."""
  26078. return _mupdf.FzStextPage_fz_copy_rectangle(self, area, crlf)
  26079. def search_stext_page(self, needle, hit_mark, max_quads):
  26080. r"""Wrapper for fz_search_stext_page() that returns std::vector of Quads."""
  26081. return _mupdf.FzStextPage_search_stext_page(self, needle, hit_mark, max_quads)
  26082. def begin(self):
  26083. r"""Used for iteration over linked list of FzStextBlock items starting at fz_stext_block::first_block."""
  26084. return _mupdf.FzStextPage_begin(self)
  26085. def end(self):
  26086. r"""Used for iteration over linked list of FzStextBlock items starting at fz_stext_block::first_block."""
  26087. return _mupdf.FzStextPage_end(self)
  26088. def __init__(self, *args):
  26089. r"""
  26090. *Overload 1:*
  26091. == Constructors. Constructor using `fz_new_stext_page()`.
  26092. Create an empty text page.
  26093. The text page is filled out by the text device to contain the
  26094. blocks and lines of text on the page.
  26095. mediabox: optional mediabox information.
  26096. |
  26097. *Overload 2:*
  26098. Constructor using `fz_new_stext_page_from_chapter_page_number()`.
  26099. |
  26100. *Overload 3:*
  26101. Constructor using `fz_new_stext_page_from_display_list()`.
  26102. |
  26103. *Overload 4:*
  26104. Constructor using `fz_new_stext_page_from_page()`.
  26105. Extract text from page.
  26106. Ownership of the fz_stext_page is returned to the caller.
  26107. |
  26108. *Overload 5:*
  26109. Constructor using `fz_new_stext_page_from_page_number()`.
  26110. |
  26111. *Overload 6:*
  26112. Constructor using `pdf_new_stext_page_from_annot()`.
  26113. |
  26114. *Overload 7:*
  26115. Default constructor, sets `m_internal` to null.
  26116. |
  26117. *Overload 8:*
  26118. Constructor using raw copy of pre-existing `::fz_stext_page`.
  26119. """
  26120. _mupdf.FzStextPage_swiginit(self, _mupdf.new_FzStextPage(*args))
  26121. __swig_destroy__ = _mupdf.delete_FzStextPage
  26122. def m_internal_value(self):
  26123. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26124. return _mupdf.FzStextPage_m_internal_value(self)
  26125. def __nonzero__(self):
  26126. return _mupdf.FzStextPage___nonzero__(self)
  26127. __bool__ = __nonzero__
  26128. m_internal = property(_mupdf.FzStextPage_m_internal_get, _mupdf.FzStextPage_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26129. s_num_instances = property(_mupdf.FzStextPage_s_num_instances_get, _mupdf.FzStextPage_s_num_instances_set)
  26130. # Register FzStextPage in _mupdf:
  26131. _mupdf.FzStextPage_swigregister(FzStextPage)
  26132. class FzStextStruct(object):
  26133. r"""Wrapper class for struct `fz_stext_struct`. Not copyable or assignable."""
  26134. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26135. __repr__ = _swig_repr
  26136. def __init__(self, *args):
  26137. r"""
  26138. *Overload 1:*
  26139. Default constructor, sets `m_internal` to null.
  26140. |
  26141. *Overload 2:*
  26142. Constructor using raw copy of pre-existing `::fz_stext_struct`.
  26143. """
  26144. _mupdf.FzStextStruct_swiginit(self, _mupdf.new_FzStextStruct(*args))
  26145. __swig_destroy__ = _mupdf.delete_FzStextStruct
  26146. def m_internal_value(self):
  26147. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26148. return _mupdf.FzStextStruct_m_internal_value(self)
  26149. def __nonzero__(self):
  26150. return _mupdf.FzStextStruct___nonzero__(self)
  26151. __bool__ = __nonzero__
  26152. m_internal = property(_mupdf.FzStextStruct_m_internal_get, _mupdf.FzStextStruct_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26153. s_num_instances = property(_mupdf.FzStextStruct_s_num_instances_get, _mupdf.FzStextStruct_s_num_instances_set)
  26154. # Register FzStextStruct in _mupdf:
  26155. _mupdf.FzStextStruct_swigregister(FzStextStruct)
  26156. class FzStorable(object):
  26157. r"""
  26158. Wrapper class for struct `fz_storable`.
  26159. Resource store
  26160. MuPDF stores decoded "objects" into a store for potential reuse.
  26161. If the size of the store gets too big, objects stored within it
  26162. can be evicted and freed to recover space. When MuPDF comes to
  26163. decode such an object, it will check to see if a version of this
  26164. object is already in the store - if it is, it will simply reuse
  26165. it. If not, it will decode it and place it into the store.
  26166. All objects that can be placed into the store are derived from
  26167. the fz_storable type (i.e. this should be the first component of
  26168. the objects structure). This allows for consistent (thread safe)
  26169. reference counting, and includes a function that will be called
  26170. to free the object as soon as the reference count reaches zero.
  26171. Most objects offer fz_keep_XXXX/fz_drop_XXXX functions derived
  26172. from fz_keep_storable/fz_drop_storable. Creation of such objects
  26173. includes a call to FZ_INIT_STORABLE to set up the fz_storable
  26174. header.
  26175. """
  26176. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26177. __repr__ = _swig_repr
  26178. def __init__(self, *args):
  26179. r"""
  26180. *Overload 1:*
  26181. Copy constructor using `fz_keep_storable()`.
  26182. |
  26183. *Overload 2:*
  26184. Default constructor, sets `m_internal` to null.
  26185. |
  26186. *Overload 3:*
  26187. Constructor using raw copy of pre-existing `::fz_storable`.
  26188. """
  26189. _mupdf.FzStorable_swiginit(self, _mupdf.new_FzStorable(*args))
  26190. __swig_destroy__ = _mupdf.delete_FzStorable
  26191. def m_internal_value(self):
  26192. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26193. return _mupdf.FzStorable_m_internal_value(self)
  26194. def __nonzero__(self):
  26195. return _mupdf.FzStorable___nonzero__(self)
  26196. __bool__ = __nonzero__
  26197. m_internal = property(_mupdf.FzStorable_m_internal_get, _mupdf.FzStorable_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26198. s_num_instances = property(_mupdf.FzStorable_s_num_instances_get, _mupdf.FzStorable_s_num_instances_set)
  26199. # Register FzStorable in _mupdf:
  26200. _mupdf.FzStorable_swigregister(FzStorable)
  26201. class FzStore(object):
  26202. r"""Wrapper class for struct `fz_store`. Not copyable or assignable."""
  26203. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26204. __repr__ = _swig_repr
  26205. def __init__(self, *args):
  26206. r"""
  26207. *Overload 1:*
  26208. Default constructor, sets `m_internal` to null.
  26209. |
  26210. *Overload 2:*
  26211. Constructor using raw copy of pre-existing `::fz_store`.
  26212. """
  26213. _mupdf.FzStore_swiginit(self, _mupdf.new_FzStore(*args))
  26214. __swig_destroy__ = _mupdf.delete_FzStore
  26215. def m_internal_value(self):
  26216. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26217. return _mupdf.FzStore_m_internal_value(self)
  26218. def __nonzero__(self):
  26219. return _mupdf.FzStore___nonzero__(self)
  26220. __bool__ = __nonzero__
  26221. m_internal = property(_mupdf.FzStore_m_internal_get, _mupdf.FzStore_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26222. s_num_instances = property(_mupdf.FzStore_s_num_instances_get, _mupdf.FzStore_s_num_instances_set)
  26223. # Register FzStore in _mupdf:
  26224. _mupdf.FzStore_swigregister(FzStore)
  26225. class FzStoreHash(object):
  26226. r"""
  26227. Wrapper class for struct `fz_store_hash`. Not copyable or assignable.
  26228. The store can be seen as a dictionary that maps keys to
  26229. fz_storable values. In order to allow keys of different types to
  26230. be stored, we have a structure full of functions for each key
  26231. 'type'; this fz_store_type pointer is stored with each key, and
  26232. tells the store how to perform certain operations (like taking/
  26233. dropping a reference, comparing two keys, outputting details for
  26234. debugging etc).
  26235. The store uses a hash table internally for speed where possible.
  26236. In order for this to work, we need a mechanism for turning a
  26237. generic 'key' into 'a hashable string'. For this purpose the
  26238. type structure contains a make_hash_key function pointer that
  26239. maps from a void * to a fz_store_hash structure. If
  26240. make_hash_key function returns 0, then the key is determined not
  26241. to be hashable, and the value is not stored in the hash table.
  26242. Some objects can be used both as values within the store, and as
  26243. a component of keys within the store. We refer to these objects
  26244. as "key storable" objects. In this case, we need to take
  26245. additional care to ensure that we do not end up keeping an item
  26246. within the store, purely because its value is referred to by
  26247. another key in the store.
  26248. An example of this are fz_images in PDF files. Each fz_image is
  26249. placed into the store to enable it to be easily reused. When the
  26250. image is rendered, a pixmap is generated from the image, and the
  26251. pixmap is placed into the store so it can be reused on
  26252. subsequent renders. The image forms part of the key for the
  26253. pixmap.
  26254. When we close the pdf document (and any associated pages/display
  26255. lists etc), we drop the images from the store. This may leave us
  26256. in the position of the images having non-zero reference counts
  26257. purely because they are used as part of the keys for the
  26258. pixmaps.
  26259. We therefore use special reference counting functions to keep
  26260. track of these "key storable" items, and hence store the number
  26261. of references to these items that are used in keys.
  26262. When the number of references to an object == the number of
  26263. references to an object from keys in the store, we know that we
  26264. can remove all the items which have that object as part of the
  26265. key. This is done by running a pass over the store, 'reaping'
  26266. those items.
  26267. Reap passes are slower than we would like as they touch every
  26268. item in the store. We therefore provide a way to 'batch' such
  26269. reap passes together, using fz_defer_reap_start/
  26270. fz_defer_reap_end to bracket a region in which many may be
  26271. triggered.
  26272. """
  26273. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26274. __repr__ = _swig_repr
  26275. def __init__(self, *args):
  26276. r"""
  26277. *Overload 1:*
  26278. Default constructor, sets `m_internal` to null.
  26279. |
  26280. *Overload 2:*
  26281. Constructor using raw copy of pre-existing `::fz_store_hash`.
  26282. """
  26283. _mupdf.FzStoreHash_swiginit(self, _mupdf.new_FzStoreHash(*args))
  26284. __swig_destroy__ = _mupdf.delete_FzStoreHash
  26285. def m_internal_value(self):
  26286. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26287. return _mupdf.FzStoreHash_m_internal_value(self)
  26288. def __nonzero__(self):
  26289. return _mupdf.FzStoreHash___nonzero__(self)
  26290. __bool__ = __nonzero__
  26291. m_internal = property(_mupdf.FzStoreHash_m_internal_get, _mupdf.FzStoreHash_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26292. s_num_instances = property(_mupdf.FzStoreHash_s_num_instances_get, _mupdf.FzStoreHash_s_num_instances_set)
  26293. # Register FzStoreHash in _mupdf:
  26294. _mupdf.FzStoreHash_swigregister(FzStoreHash)
  26295. class FzStoreType(object):
  26296. r"""
  26297. Wrapper class for struct `fz_store_type`. Not copyable or assignable.
  26298. Every type of object to be placed into the store defines an
  26299. fz_store_type. This contains the pointers to functions to
  26300. make hashes, manipulate keys, and check for needing reaping.
  26301. """
  26302. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26303. __repr__ = _swig_repr
  26304. def __init__(self, *args):
  26305. r"""
  26306. *Overload 1:*
  26307. Default constructor, sets `m_internal` to null.
  26308. |
  26309. *Overload 2:*
  26310. Constructor using raw copy of pre-existing `::fz_store_type`.
  26311. """
  26312. _mupdf.FzStoreType_swiginit(self, _mupdf.new_FzStoreType(*args))
  26313. __swig_destroy__ = _mupdf.delete_FzStoreType
  26314. def m_internal_value(self):
  26315. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26316. return _mupdf.FzStoreType_m_internal_value(self)
  26317. def __nonzero__(self):
  26318. return _mupdf.FzStoreType___nonzero__(self)
  26319. __bool__ = __nonzero__
  26320. m_internal = property(_mupdf.FzStoreType_m_internal_get, _mupdf.FzStoreType_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26321. s_num_instances = property(_mupdf.FzStoreType_s_num_instances_get, _mupdf.FzStoreType_s_num_instances_set)
  26322. # Register FzStoreType in _mupdf:
  26323. _mupdf.FzStoreType_swigregister(FzStoreType)
  26324. class FzStory(object):
  26325. r"""Wrapper class for struct `fz_story`. Not copyable or assignable."""
  26326. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26327. __repr__ = _swig_repr
  26328. def fz_draw_story(self, dev, ctm):
  26329. r"""Class-aware wrapper for `::fz_draw_story()`."""
  26330. return _mupdf.FzStory_fz_draw_story(self, dev, ctm)
  26331. def fz_place_story(self, where, filled):
  26332. r"""Class-aware wrapper for `::fz_place_story()`."""
  26333. return _mupdf.FzStory_fz_place_story(self, where, filled)
  26334. def fz_place_story_flags(self, where, filled, flags):
  26335. r"""Class-aware wrapper for `::fz_place_story_flags()`."""
  26336. return _mupdf.FzStory_fz_place_story_flags(self, where, filled, flags)
  26337. def fz_reset_story(self):
  26338. r"""Class-aware wrapper for `::fz_reset_story()`."""
  26339. return _mupdf.FzStory_fz_reset_story(self)
  26340. def fz_story_document(self):
  26341. r"""Class-aware wrapper for `::fz_story_document()`."""
  26342. return _mupdf.FzStory_fz_story_document(self)
  26343. def fz_story_positions(self, cb, arg):
  26344. r"""Class-aware wrapper for `::fz_story_positions()`."""
  26345. return _mupdf.FzStory_fz_story_positions(self, cb, arg)
  26346. def fz_story_warnings(self):
  26347. r"""Class-aware wrapper for `::fz_story_warnings()`."""
  26348. return _mupdf.FzStory_fz_story_warnings(self)
  26349. def __init__(self, *args):
  26350. r"""
  26351. *Overload 1:*
  26352. == Constructors. Constructor using `fz_new_story()`.
  26353. |
  26354. *Overload 2:*
  26355. Default constructor, sets `m_internal` to null.
  26356. |
  26357. *Overload 3:*
  26358. Constructor using raw copy of pre-existing `::fz_story`.
  26359. """
  26360. _mupdf.FzStory_swiginit(self, _mupdf.new_FzStory(*args))
  26361. __swig_destroy__ = _mupdf.delete_FzStory
  26362. def m_internal_value(self):
  26363. r"""Return numerical value of .m_internal; helps with Python debugging."""
  26364. return _mupdf.FzStory_m_internal_value(self)
  26365. def __nonzero__(self):
  26366. return _mupdf.FzStory___nonzero__(self)
  26367. __bool__ = __nonzero__
  26368. m_internal = property(_mupdf.FzStory_m_internal_get, _mupdf.FzStory_m_internal_set, doc=r"""Pointer to wrapped data.""")
  26369. s_num_instances = property(_mupdf.FzStory_s_num_instances_get, _mupdf.FzStory_s_num_instances_set)
  26370. # Register FzStory in _mupdf:
  26371. _mupdf.FzStory_swigregister(FzStory)
  26372. class FzStoryElementPosition(object):
  26373. r"""Wrapper class for struct `fz_story_element_position`."""
  26374. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26375. __repr__ = _swig_repr
  26376. def __init__(self, *args):
  26377. r"""
  26378. *Overload 1:*
  26379. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  26380. |
  26381. *Overload 2:*
  26382. Constructor using raw copy of pre-existing `::fz_story_element_position`.
  26383. |
  26384. *Overload 3:*
  26385. Constructor using raw copy of pre-existing `::fz_story_element_position`.
  26386. """
  26387. _mupdf.FzStoryElementPosition_swiginit(self, _mupdf.new_FzStoryElementPosition(*args))
  26388. def internal(self, *args):
  26389. r"""
  26390. *Overload 1:*
  26391. Access as underlying struct.
  26392. |
  26393. *Overload 2:*
  26394. Access as underlying struct.
  26395. """
  26396. return _mupdf.FzStoryElementPosition_internal(self, *args)
  26397. __swig_destroy__ = _mupdf.delete_FzStoryElementPosition
  26398. depth = property(_mupdf.FzStoryElementPosition_depth_get, _mupdf.FzStoryElementPosition_depth_set)
  26399. heading = property(_mupdf.FzStoryElementPosition_heading_get, _mupdf.FzStoryElementPosition_heading_set)
  26400. id = property(_mupdf.FzStoryElementPosition_id_get, _mupdf.FzStoryElementPosition_id_set)
  26401. href = property(_mupdf.FzStoryElementPosition_href_get, _mupdf.FzStoryElementPosition_href_set)
  26402. rect = property(_mupdf.FzStoryElementPosition_rect_get, _mupdf.FzStoryElementPosition_rect_set)
  26403. text = property(_mupdf.FzStoryElementPosition_text_get, _mupdf.FzStoryElementPosition_text_set)
  26404. open_close = property(_mupdf.FzStoryElementPosition_open_close_get, _mupdf.FzStoryElementPosition_open_close_set)
  26405. rectangle_num = property(_mupdf.FzStoryElementPosition_rectangle_num_get, _mupdf.FzStoryElementPosition_rectangle_num_set)
  26406. s_num_instances = property(_mupdf.FzStoryElementPosition_s_num_instances_get, _mupdf.FzStoryElementPosition_s_num_instances_set)
  26407. def to_string(self):
  26408. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  26409. return _mupdf.FzStoryElementPosition_to_string(self)
  26410. def __eq__(self, rhs):
  26411. r"""Comparison method."""
  26412. return _mupdf.FzStoryElementPosition___eq__(self, rhs)
  26413. def __ne__(self, rhs):
  26414. r"""Comparison method."""
  26415. return _mupdf.FzStoryElementPosition___ne__(self, rhs)
  26416. # Register FzStoryElementPosition in _mupdf:
  26417. _mupdf.FzStoryElementPosition_swigregister(FzStoryElementPosition)
  26418. class FzStream(object):
  26419. r"""
  26420. Wrapper class for struct `fz_stream`.
  26421. fz_stream is a buffered reader capable of seeking in both
  26422. directions.
  26423. Streams are reference counted, so references must be dropped
  26424. by a call to fz_drop_stream.
  26425. Only the data between rp and wp is valid.
  26426. """
  26427. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  26428. __repr__ = _swig_repr
  26429. @staticmethod
  26430. def fz_open_file_autodelete(filename):
  26431. r"""
  26432. Class-aware wrapper for `::fz_open_file_autodelete()`.
  26433. Do the same as fz_open_file, but delete the file upon close.
  26434. """
  26435. return _mupdf.FzStream_fz_open_file_autodelete(filename)
  26436. def fz_available(self, max):
  26437. r"""
  26438. Class-aware wrapper for `::fz_available()`.
  26439. Ask how many bytes are available immediately from
  26440. a given stream.
  26441. stm: The stream to read from.
  26442. max: A hint for the underlying stream; the maximum number of
  26443. bytes that we are sure we will want to read. If you do not know
  26444. this number, give 1.
  26445. Returns the number of bytes immediately available between the
  26446. read and write pointers. This number is guaranteed only to be 0
  26447. if we have hit EOF. The number of bytes returned here need have
  26448. no relation to max (could be larger, could be smaller).
  26449. """
  26450. return _mupdf.FzStream_fz_available(self, max)
  26451. def fz_decomp_image_from_stream(self, image, subarea, indexed, l2factor, l2extra):
  26452. r"""
  26453. Class-aware wrapper for `::fz_decomp_image_from_stream()`.
  26454. This method has out-params. Python/C# wrappers look like:
  26455. `fz_decomp_image_from_stream(::fz_compressed_image *image, ::fz_irect *subarea, int indexed, int l2factor)` => `(fz_pixmap *, int l2extra)`
  26456. Decode a subarea of a compressed image. l2factor is the amount
  26457. of subsampling inbuilt to the stream (i.e. performed by the
  26458. decoder). If non NULL, l2extra is the extra amount of
  26459. subsampling that should be performed by this routine. This will
  26460. be updated on exit to the amount of subsampling that is still
  26461. required to be done.
  26462. Returns a kept reference.
  26463. """
  26464. return _mupdf.FzStream_fz_decomp_image_from_stream(self, image, subarea, indexed, l2factor, l2extra)
  26465. def fz_is_cfb_archive(self):
  26466. r"""
  26467. Class-aware wrapper for `::fz_is_cfb_archive()`.
  26468. Detect if stream object is a cfb archive.
  26469. Assumes that the stream object is seekable.
  26470. """
  26471. return _mupdf.FzStream_fz_is_cfb_archive(self)
  26472. def fz_is_eof(self):
  26473. r"""
  26474. Class-aware wrapper for `::fz_is_eof()`.
  26475. Query if the stream has reached EOF (during normal bytewise
  26476. reading).
  26477. See fz_is_eof_bits for the equivalent function for bitwise
  26478. reading.
  26479. """
  26480. return _mupdf.FzStream_fz_is_eof(self)
  26481. def fz_is_eof_bits(self):
  26482. r"""
  26483. Class-aware wrapper for `::fz_is_eof_bits()`.
  26484. Query if the stream has reached EOF (during bitwise
  26485. reading).
  26486. See fz_is_eof for the equivalent function for bytewise
  26487. reading.
  26488. """
  26489. return _mupdf.FzStream_fz_is_eof_bits(self)
  26490. def fz_is_libarchive_archive(self):
  26491. r"""
  26492. Class-aware wrapper for `::fz_is_libarchive_archive()`.
  26493. Detect if stream object is an archive supported by libarchive.
  26494. Assumes that the stream object is seekable.
  26495. """
  26496. return _mupdf.FzStream_fz_is_libarchive_archive(self)
  26497. def fz_is_tar_archive(self):
  26498. r"""
  26499. Class-aware wrapper for `::fz_is_tar_archive()`.
  26500. Detect if stream object is a tar archive.
  26501. Assumes that the stream object is seekable.
  26502. """
  26503. return _mupdf.FzStream_fz_is_tar_archive(self)
  26504. def fz_is_zip_archive(self):
  26505. r"""
  26506. Class-aware wrapper for `::fz_is_zip_archive()`.
  26507. Detect if stream object is a zip archive.
  26508. Assumes that the stream object is seekable.
  26509. """
  26510. return _mupdf.FzStream_fz_is_zip_archive(self)
  26511. def fz_new_archive_of_size(self, size):
  26512. r"""Class-aware wrapper for `::fz_new_archive_of_size()`."""
  26513. return _mupdf.FzStream_fz_new_archive_of_size(self, size)
  26514. def fz_open_a85d(self):
  26515. r"""
  26516. Class-aware wrapper for `::fz_open_a85d()`.
  26517. a85d filter performs ASCII 85 Decoding of data read
  26518. from the chained filter.
  26519. """
  26520. return _mupdf.FzStream_fz_open_a85d(self)
  26521. def fz_open_aesd(self, key, keylen):
  26522. r"""
  26523. Class-aware wrapper for `::fz_open_aesd()`.
  26524. aesd filter performs AES decoding of data read from the chained
  26525. filter using the supplied key.
  26526. """
  26527. return _mupdf.FzStream_fz_open_aesd(self, key, keylen)
  26528. def fz_open_ahxd(self):
  26529. r"""
  26530. Class-aware wrapper for `::fz_open_ahxd()`.
  26531. ahxd filter performs ASCII Hex decoding of data read
  26532. from the chained filter.
  26533. """
  26534. return _mupdf.FzStream_fz_open_ahxd(self)
  26535. def fz_open_arc4(self, key, keylen):
  26536. r"""
  26537. Class-aware wrapper for `::fz_open_arc4()`.
  26538. arc4 filter performs RC4 decoding of data read from the chained
  26539. filter using the supplied key.
  26540. """
  26541. return _mupdf.FzStream_fz_open_arc4(self, key, keylen)
  26542. def fz_open_archive_with_stream(self):
  26543. r"""
  26544. Class-aware wrapper for `::fz_open_archive_with_stream()`.
  26545. Open zip or tar archive stream.
  26546. Open an archive using a seekable stream object rather than
  26547. opening a file or directory on disk.
  26548. """
  26549. return _mupdf.FzStream_fz_open_archive_with_stream(self)
  26550. def fz_open_brotlid(self):
  26551. r"""
  26552. Class-aware wrapper for `::fz_open_brotlid()`.
  26553. brotlid filter performs Brotli decoding of data read
  26554. from the chained filter.
  26555. """
  26556. return _mupdf.FzStream_fz_open_brotlid(self)
  26557. def fz_open_cfb_archive_with_stream(self):
  26558. r"""
  26559. Class-aware wrapper for `::fz_open_cfb_archive_with_stream()`.
  26560. Open a cfb file as an archive.
  26561. Open an archive using a seekable stream object rather than
  26562. opening a file or directory on disk.
  26563. An exception is thrown if the file is not recognised as a chm.
  26564. """
  26565. return _mupdf.FzStream_fz_open_cfb_archive_with_stream(self)
  26566. def fz_open_dctd(self, color_transform, invert_cmyk, l2factor, jpegtables):
  26567. r"""
  26568. Class-aware wrapper for `::fz_open_dctd()`.
  26569. dctd filter performs DCT (JPEG) decoding of data read
  26570. from the chained filter.
  26571. color_transform implements the PDF color_transform option
  26572. use -1 for default behavior
  26573. use 0 to disable YUV-RGB / YCCK-CMYK transforms
  26574. use 1 to enable YUV-RGB / YCCK-CMYK transforms
  26575. invert_cmyk implements the necessary inversion for Photoshop CMYK images
  26576. use 0 if embedded in PDF
  26577. use 1 if not embedded in PDF
  26578. For subsampling on decode, set l2factor to the log2 of the
  26579. reduction required (therefore 0 = full size decode).
  26580. jpegtables is an optional stream from which the JPEG tables
  26581. can be read. Use NULL if not required.
  26582. """
  26583. return _mupdf.FzStream_fz_open_dctd(self, color_transform, invert_cmyk, l2factor, jpegtables)
  26584. def fz_open_endstream_filter(self, len, offset):
  26585. r"""
  26586. Class-aware wrapper for `::fz_open_endstream_filter()`.
  26587. The endstream filter reads a PDF substream, and starts to look
  26588. for an 'endstream' token after the specified length.
  26589. """
  26590. return _mupdf.FzStream_fz_open_endstream_filter(self, len, offset)
  26591. def fz_open_faxd(self, k, end_of_line, encoded_byte_align, columns, rows, end_of_block, black_is_1):
  26592. r"""
  26593. Class-aware wrapper for `::fz_open_faxd()`.
  26594. faxd filter performs FAX decoding of data read from
  26595. the chained filter.
  26596. k: see fax specification (fax default is 0).
  26597. end_of_line: whether we expect end of line markers (fax default
  26598. is 0).
  26599. encoded_byte_align: whether we align to bytes after each line
  26600. (fax default is 0).
  26601. columns: how many columns in the image (fax default is 1728).
  26602. rows: 0 for unspecified or the number of rows of data to expect.
  26603. end_of_block: whether we expect end of block markers (fax
  26604. default is 1).
  26605. black_is_1: determines the polarity of the image (fax default is
  26606. 0).
  26607. """
  26608. return _mupdf.FzStream_fz_open_faxd(self, k, end_of_line, encoded_byte_align, columns, rows, end_of_block, black_is_1)
  26609. def fz_open_flated(self, window_bits):
  26610. r"""
  26611. Class-aware wrapper for `::fz_open_flated()`.
  26612. flated filter performs LZ77 decoding (inflating) of data read
  26613. from the chained filter.
  26614. window_bits: How large a decompression window to use. Typically
  26615. 15. A negative number, -n, means to use n bits, but to expect
  26616. raw data with no header.
  26617. """
  26618. return _mupdf.FzStream_fz_open_flated(self, window_bits)
  26619. def fz_open_image_decomp_stream(self, arg_1, l2factor):
  26620. r"""
  26621. Class-aware wrapper for `::fz_open_image_decomp_stream()`.
  26622. This method has out-params. Python/C# wrappers look like:
  26623. `fz_open_image_decomp_stream(::fz_compression_params *arg_1)` => `(fz_stream *, int l2factor)`
  26624. Open a stream to read the decompressed version of another stream
  26625. with optional log2 subsampling.
  26626. """
  26627. return _mupdf.FzStream_fz_open_image_decomp_stream(self, arg_1, l2factor)
  26628. def fz_open_jbig2d(self, globals, embedded):
  26629. r"""
  26630. Class-aware wrapper for `::fz_open_jbig2d()`.
  26631. Open a filter that performs jbig2 decompression on the chained
  26632. stream, using the optional globals record.
  26633. """
  26634. return _mupdf.FzStream_fz_open_jbig2d(self, globals, embedded)
  26635. def fz_open_leecher(self, buf):
  26636. r"""
  26637. Class-aware wrapper for `::fz_open_leecher()`.
  26638. Attach a filter to a stream that will store any
  26639. characters read from the stream into the supplied buffer.
  26640. chain: The underlying stream to leech from.
  26641. buf: The buffer into which the read data should be appended.
  26642. The buffer will be resized as required.
  26643. Returns pointer to newly created stream. May throw exceptions on
  26644. failure to allocate.
  26645. """
  26646. return _mupdf.FzStream_fz_open_leecher(self, buf)
  26647. def fz_open_libarchive_archive_with_stream(self):
  26648. r"""
  26649. Class-aware wrapper for `::fz_open_libarchive_archive_with_stream()`.
  26650. Open an archive using libarchive.
  26651. Open an archive using a seekable stream object rather than
  26652. opening a file or directory on disk.
  26653. An exception is thrown if the stream is not supported by libarchive.
  26654. """
  26655. return _mupdf.FzStream_fz_open_libarchive_archive_with_stream(self)
  26656. def fz_open_libarchived(self):
  26657. r"""
  26658. Class-aware wrapper for `::fz_open_libarchived()`.
  26659. libarchived filter performs generic compressed decoding of data
  26660. in any format understood by libarchive from the chained filter.
  26661. This will throw an exception if libarchive is not built in, or
  26662. if the compression format is not recognised.
  26663. """
  26664. return _mupdf.FzStream_fz_open_libarchived(self)
  26665. def fz_open_lzwd(self, early_change, min_bits, reverse_bits, old_tiff):
  26666. r"""
  26667. Class-aware wrapper for `::fz_open_lzwd()`.
  26668. lzwd filter performs LZW decoding of data read from the chained
  26669. filter.
  26670. early_change: (Default 1) specifies whether to change codes 1
  26671. bit early.
  26672. min_bits: (Default 9) specifies the minimum number of bits to
  26673. use.
  26674. reverse_bits: (Default 0) allows for compatibility with gif and
  26675. old style tiffs (1).
  26676. old_tiff: (Default 0) allows for different handling of the clear
  26677. code, as found in old style tiffs.
  26678. """
  26679. return _mupdf.FzStream_fz_open_lzwd(self, early_change, min_bits, reverse_bits, old_tiff)
  26680. def fz_open_null_filter(self, len, offset):
  26681. r"""
  26682. Class-aware wrapper for `::fz_open_null_filter()`.
  26683. The null filter reads a specified amount of data from the
  26684. substream.
  26685. """
  26686. return _mupdf.FzStream_fz_open_null_filter(self, len, offset)
  26687. def fz_open_predict(self, predictor, columns, colors, bpc):
  26688. r"""
  26689. Class-aware wrapper for `::fz_open_predict()`.
  26690. predict filter performs pixel prediction on data read from
  26691. the chained filter.
  26692. predictor: 1 = copy, 2 = tiff, other = inline PNG predictor
  26693. columns: width of image in pixels
  26694. colors: number of components.
  26695. bpc: bits per component (typically 8)
  26696. """
  26697. return _mupdf.FzStream_fz_open_predict(self, predictor, columns, colors, bpc)
  26698. def fz_open_range_filter(self, ranges, nranges):
  26699. r"""
  26700. Class-aware wrapper for `::fz_open_range_filter()`.
  26701. The range filter copies data from specified ranges of the
  26702. chained stream.
  26703. """
  26704. return _mupdf.FzStream_fz_open_range_filter(self, ranges, nranges)
  26705. def fz_open_rld(self):
  26706. r"""
  26707. Class-aware wrapper for `::fz_open_rld()`.
  26708. rld filter performs Run Length Decoding of data read
  26709. from the chained filter.
  26710. """
  26711. return _mupdf.FzStream_fz_open_rld(self)
  26712. def fz_open_sgilog16(self, w):
  26713. r"""
  26714. Class-aware wrapper for `::fz_open_sgilog16()`.
  26715. SGI Log 16bit (greyscale) decode from the chained filter.
  26716. Decodes lines of w pixels to 8bpp greyscale.
  26717. """
  26718. return _mupdf.FzStream_fz_open_sgilog16(self, w)
  26719. def fz_open_sgilog24(self, w):
  26720. r"""
  26721. Class-aware wrapper for `::fz_open_sgilog24()`.
  26722. SGI Log 24bit (LUV) decode from the chained filter.
  26723. Decodes lines of w pixels to 8bpc rgb.
  26724. """
  26725. return _mupdf.FzStream_fz_open_sgilog24(self, w)
  26726. def fz_open_sgilog32(self, w):
  26727. r"""
  26728. Class-aware wrapper for `::fz_open_sgilog32()`.
  26729. SGI Log 32bit (LUV) decode from the chained filter.
  26730. Decodes lines of w pixels to 8bpc rgb.
  26731. """
  26732. return _mupdf.FzStream_fz_open_sgilog32(self, w)
  26733. def fz_open_tar_archive_with_stream(self):
  26734. r"""
  26735. Class-aware wrapper for `::fz_open_tar_archive_with_stream()`.
  26736. Open a tar archive stream.
  26737. Open an archive using a seekable stream object rather than
  26738. opening a file or directory on disk.
  26739. An exception is thrown if the stream is not a tar archive as
  26740. indicated by the presence of a tar signature.
  26741. """
  26742. return _mupdf.FzStream_fz_open_tar_archive_with_stream(self)
  26743. def fz_open_thunder(self, w):
  26744. r"""
  26745. Class-aware wrapper for `::fz_open_thunder()`.
  26746. 4bit greyscale Thunderscan decoding from the chained filter.
  26747. Decodes lines of w pixels to 8bpp greyscale.
  26748. """
  26749. return _mupdf.FzStream_fz_open_thunder(self, w)
  26750. def fz_open_zip_archive_with_stream(self):
  26751. r"""
  26752. Class-aware wrapper for `::fz_open_zip_archive_with_stream()`.
  26753. Open a zip archive stream.
  26754. Open an archive using a seekable stream object rather than
  26755. opening a file or directory on disk.
  26756. An exception is thrown if the stream is not a zip archive as
  26757. indicated by the presence of a zip signature.
  26758. """
  26759. return _mupdf.FzStream_fz_open_zip_archive_with_stream(self)
  26760. def fz_parse_xml_stream(self, preserve_white):
  26761. r"""
  26762. Class-aware wrapper for `::fz_parse_xml_stream()`.
  26763. Parse the contents of buffer into a tree of xml nodes.
  26764. preserve_white: whether to keep or delete all-whitespace nodes.
  26765. """
  26766. return _mupdf.FzStream_fz_parse_xml_stream(self, preserve_white)
  26767. def fz_peek_byte(self):
  26768. r"""
  26769. Class-aware wrapper for `::fz_peek_byte()`.
  26770. Peek at the next byte in a stream.
  26771. stm: The stream to peek at.
  26772. Returns -1 for EOF, or the next byte that will be read.
  26773. """
  26774. return _mupdf.FzStream_fz_peek_byte(self)
  26775. def fz_read(self, data, len):
  26776. r"""
  26777. Class-aware wrapper for `::fz_read()`.
  26778. Read from a stream into a given data block.
  26779. stm: The stream to read from.
  26780. data: The data block to read into.
  26781. len: The length of the data block (in bytes).
  26782. Returns the number of bytes read. May throw exceptions.
  26783. """
  26784. return _mupdf.FzStream_fz_read(self, data, len)
  26785. def fz_read_all(self, initial):
  26786. r"""
  26787. Class-aware wrapper for `::fz_read_all()`.
  26788. Read all of a stream into a buffer.
  26789. stm: The stream to read from
  26790. initial: Suggested initial size for the buffer.
  26791. Returns a buffer created from reading from the stream. May throw
  26792. exceptions on failure to allocate.
  26793. """
  26794. return _mupdf.FzStream_fz_read_all(self, initial)
  26795. def fz_read_best(self, initial, truncated, worst_case):
  26796. r"""
  26797. Class-aware wrapper for `::fz_read_best()`.
  26798. This method has out-params. Python/C# wrappers look like:
  26799. `fz_read_best(size_t initial, size_t worst_case)` => `(fz_buffer *, int truncated)`
  26800. Attempt to read a stream into a buffer. If truncated
  26801. is NULL behaves as fz_read_all, sets a truncated flag in case of
  26802. error.
  26803. stm: The stream to read from.
  26804. initial: Suggested initial size for the buffer.
  26805. truncated: Flag to store success/failure indication in.
  26806. worst_case: 0 for unknown, otherwise an upper bound for the
  26807. size of the stream.
  26808. Returns a buffer created from reading from the stream.
  26809. """
  26810. return _mupdf.FzStream_fz_read_best(self, initial, truncated, worst_case)
  26811. def fz_read_bits(self, n):
  26812. r"""
  26813. Class-aware wrapper for `::fz_read_bits()`.
  26814. Read the next n bits from a stream (assumed to
  26815. be packed most significant bit first).
  26816. stm: The stream to read from.
  26817. n: The number of bits to read, between 1 and 8*sizeof(int)
  26818. inclusive.
  26819. Returns -1 for EOF, or the required number of bits.
  26820. """
  26821. return _mupdf.FzStream_fz_read_bits(self, n)
  26822. def fz_read_byte(self):
  26823. r"""
  26824. Class-aware wrapper for `::fz_read_byte()`.
  26825. Read the next byte from a stream.
  26826. stm: The stream t read from.
  26827. Returns -1 for end of stream, or the next byte. May
  26828. throw exceptions.
  26829. """
  26830. return _mupdf.FzStream_fz_read_byte(self)
  26831. def fz_read_float(self):
  26832. r"""Class-aware wrapper for `::fz_read_float()`."""
  26833. return _mupdf.FzStream_fz_read_float(self)
  26834. def fz_read_float_le(self):
  26835. r"""Class-aware wrapper for `::fz_read_float_le()`."""
  26836. return _mupdf.FzStream_fz_read_float_le(self)
  26837. def fz_read_int16(self):
  26838. r"""Class-aware wrapper for `::fz_read_int16()`."""
  26839. return _mupdf.FzStream_fz_read_int16(self)
  26840. def fz_read_int16_le(self):
  26841. r"""Class-aware wrapper for `::fz_read_int16_le()`."""
  26842. return _mupdf.FzStream_fz_read_int16_le(self)
  26843. def fz_read_int32(self):
  26844. r"""Class-aware wrapper for `::fz_read_int32()`."""
  26845. return _mupdf.FzStream_fz_read_int32(self)
  26846. def fz_read_int32_le(self):
  26847. r"""Class-aware wrapper for `::fz_read_int32_le()`."""
  26848. return _mupdf.FzStream_fz_read_int32_le(self)
  26849. def fz_read_int64(self):
  26850. r"""Class-aware wrapper for `::fz_read_int64()`."""
  26851. return _mupdf.FzStream_fz_read_int64(self)
  26852. def fz_read_int64_le(self):
  26853. r"""Class-aware wrapper for `::fz_read_int64_le()`."""
  26854. return _mupdf.FzStream_fz_read_int64_le(self)
  26855. def fz_read_line(self, buf, max):
  26856. r"""
  26857. Class-aware wrapper for `::fz_read_line()`.
  26858. Read a line from stream into the buffer until either a
  26859. terminating newline or EOF, which it replaces with a null byte
  26860. ('').
  26861. Returns buf on success, and NULL when end of file occurs while
  26862. no characters have been read.
  26863. """
  26864. return _mupdf.FzStream_fz_read_line(self, buf, max)
  26865. def fz_read_rbits(self, n):
  26866. r"""
  26867. Class-aware wrapper for `::fz_read_rbits()`.
  26868. Read the next n bits from a stream (assumed to
  26869. be packed least significant bit first).
  26870. stm: The stream to read from.
  26871. n: The number of bits to read, between 1 and 8*sizeof(int)
  26872. inclusive.
  26873. Returns (unsigned int)-1 for EOF, or the required number of bits.
  26874. """
  26875. return _mupdf.FzStream_fz_read_rbits(self, n)
  26876. def fz_read_rune(self):
  26877. r"""
  26878. Class-aware wrapper for `::fz_read_rune()`.
  26879. Read a utf-8 rune from a stream.
  26880. In the event of encountering badly formatted utf-8 codes
  26881. (such as a leading code with an unexpected number of following
  26882. codes) no error/exception is given, but undefined values may be
  26883. returned.
  26884. """
  26885. return _mupdf.FzStream_fz_read_rune(self)
  26886. def fz_read_string(self, buffer, len):
  26887. r"""
  26888. Class-aware wrapper for `::fz_read_string()`.
  26889. Read a null terminated string from the stream into
  26890. a buffer of a given length. The buffer will be null terminated.
  26891. Throws on failure (including the failure to fit the entire
  26892. string including the terminator into the buffer).
  26893. """
  26894. return _mupdf.FzStream_fz_read_string(self, buffer, len)
  26895. def fz_read_uint16(self):
  26896. r"""
  26897. Class-aware wrapper for `::fz_read_uint16()`.
  26898. fz_read_[u]int(16|24|32|64)(_le)?
  26899. Read a 16/32/64 bit signed/unsigned integer from stream,
  26900. in big or little-endian byte orders.
  26901. Throws an exception if EOF is encountered.
  26902. """
  26903. return _mupdf.FzStream_fz_read_uint16(self)
  26904. def fz_read_uint16_le(self):
  26905. r"""Class-aware wrapper for `::fz_read_uint16_le()`."""
  26906. return _mupdf.FzStream_fz_read_uint16_le(self)
  26907. def fz_read_uint24(self):
  26908. r"""Class-aware wrapper for `::fz_read_uint24()`."""
  26909. return _mupdf.FzStream_fz_read_uint24(self)
  26910. def fz_read_uint24_le(self):
  26911. r"""Class-aware wrapper for `::fz_read_uint24_le()`."""
  26912. return _mupdf.FzStream_fz_read_uint24_le(self)
  26913. def fz_read_uint32(self):
  26914. r"""Class-aware wrapper for `::fz_read_uint32()`."""
  26915. return _mupdf.FzStream_fz_read_uint32(self)
  26916. def fz_read_uint32_le(self):
  26917. r"""Class-aware wrapper for `::fz_read_uint32_le()`."""
  26918. return _mupdf.FzStream_fz_read_uint32_le(self)
  26919. def fz_read_uint64(self):
  26920. r"""Class-aware wrapper for `::fz_read_uint64()`."""
  26921. return _mupdf.FzStream_fz_read_uint64(self)
  26922. def fz_read_uint64_le(self):
  26923. r"""Class-aware wrapper for `::fz_read_uint64_le()`."""
  26924. return _mupdf.FzStream_fz_read_uint64_le(self)
  26925. def fz_read_utf16_be(self):
  26926. r"""Class-aware wrapper for `::fz_read_utf16_be()`."""
  26927. return _mupdf.FzStream_fz_read_utf16_be(self)
  26928. def fz_read_utf16_le(self):
  26929. r"""
  26930. Class-aware wrapper for `::fz_read_utf16_le()`.
  26931. Read a utf-16 rune from a stream. (little endian and
  26932. big endian respectively).
  26933. In the event of encountering badly formatted utf-16 codes
  26934. (mismatched surrogates) no error/exception is given, but
  26935. undefined values may be returned.
  26936. """
  26937. return _mupdf.FzStream_fz_read_utf16_le(self)
  26938. def fz_seek(self, offset, whence):
  26939. r"""
  26940. Class-aware wrapper for `::fz_seek()`.
  26941. Seek within a stream.
  26942. stm: The stream to seek within.
  26943. offset: The offset to seek to.
  26944. whence: From where the offset is measured (see fseek).
  26945. SEEK_SET - start of stream.
  26946. SEEK_CUR - current position.
  26947. SEEK_END - end of stream.
  26948. """
  26949. return _mupdf.FzStream_fz_seek(self, offset, whence)
  26950. def fz_skip(self, len):
  26951. r"""
  26952. Class-aware wrapper for `::fz_skip()`.
  26953. Read from a stream discarding data.
  26954. stm: The stream to read from.
  26955. len: The number of bytes to read.
  26956. Returns the number of bytes read. May throw exceptions.
  26957. """
  26958. return _mupdf.FzStream_fz_skip(self, len)
  26959. def fz_skip_space(self):
  26960. r"""
  26961. Class-aware wrapper for `::fz_skip_space()`.
  26962. Skip over whitespace (bytes <= 32) in a stream.
  26963. """
  26964. return _mupdf.FzStream_fz_skip_space(self)
  26965. def fz_skip_string(self, str):
  26966. r"""
  26967. Class-aware wrapper for `::fz_skip_string()`.
  26968. Skip over a given string in a stream. Return 0 if successfully
  26969. skipped, non-zero otherwise. As many characters will be skipped
  26970. over as matched in the string.
  26971. """
  26972. return _mupdf.FzStream_fz_skip_string(self, str)
  26973. def fz_stream_filename(self):
  26974. r"""
  26975. Class-aware wrapper for `::fz_stream_filename()`.
  26976. Return the filename (UTF-8 encoded) from which a stream was opened.
  26977. Returns NULL if the filename is not available (or the stream was
  26978. opened from a source other than a file).
  26979. """
  26980. return _mupdf.FzStream_fz_stream_filename(self)
  26981. def fz_sync_bits(self):
  26982. r"""
  26983. Class-aware wrapper for `::fz_sync_bits()`.
  26984. Called after reading bits to tell the stream
  26985. that we are about to return to reading bytewise. Resyncs
  26986. the stream to whole byte boundaries.
  26987. """
  26988. return _mupdf.FzStream_fz_sync_bits(self)
  26989. def fz_tell(self):
  26990. r"""
  26991. Class-aware wrapper for `::fz_tell()`.
  26992. return the current reading position within a stream
  26993. """
  26994. return _mupdf.FzStream_fz_tell(self)
  26995. def fz_try_open_archive_with_stream(self):
  26996. r"""
  26997. Class-aware wrapper for `::fz_try_open_archive_with_stream()`.
  26998. Open zip or tar archive stream.
  26999. Does the same as fz_open_archive_with_stream, but will not throw
  27000. an error in the event of failing to recognise the format. Will
  27001. still throw errors in other cases though!
  27002. """
  27003. return _mupdf.FzStream_fz_try_open_archive_with_stream(self)
  27004. def fz_unpack_stream(self, depth, w, h, n, indexed, pad, skip):
  27005. r"""Class-aware wrapper for `::fz_unpack_stream()`."""
  27006. return _mupdf.FzStream_fz_unpack_stream(self, depth, w, h, n, indexed, pad, skip)
  27007. def fz_unread_byte(self):
  27008. r"""
  27009. Class-aware wrapper for `::fz_unread_byte()`.
  27010. Unread the single last byte successfully
  27011. read from a stream. Do not call this without having
  27012. successfully read a byte.
  27013. stm: The stream to operate upon.
  27014. """
  27015. return _mupdf.FzStream_fz_unread_byte(self)
  27016. def pdf_load_cmap(self):
  27017. r"""Class-aware wrapper for `::pdf_load_cmap()`."""
  27018. return _mupdf.FzStream_pdf_load_cmap(self)
  27019. def pdf_open_crypt(self, crypt, num, gen):
  27020. r"""Class-aware wrapper for `::pdf_open_crypt()`."""
  27021. return _mupdf.FzStream_pdf_open_crypt(self, crypt, num, gen)
  27022. def pdf_open_crypt_with_filter(self, crypt, name, num, gen):
  27023. r"""Class-aware wrapper for `::pdf_open_crypt_with_filter()`."""
  27024. return _mupdf.FzStream_pdf_open_crypt_with_filter(self, crypt, name, num, gen)
  27025. def pdf_open_document_with_stream(self):
  27026. r"""Class-aware wrapper for `::pdf_open_document_with_stream()`."""
  27027. return _mupdf.FzStream_pdf_open_document_with_stream(self)
  27028. def __init__(self, *args):
  27029. r"""
  27030. *Overload 1:*
  27031. == Constructors. Constructor using `fz_new_stream()`.
  27032. Create a new stream object with the given
  27033. internal state and function pointers.
  27034. state: Internal state (opaque to everything but implementation).
  27035. next: Should provide the next set of bytes (up to max) of stream
  27036. data. Return the number of bytes read, or EOF when there is no
  27037. more data.
  27038. drop: Should clean up and free the internal state. May not
  27039. throw exceptions.
  27040. |
  27041. *Overload 2:*
  27042. Constructor using `fz_open_file()`.
  27043. Open the named file and wrap it in a stream.
  27044. filename: Path to a file. On non-Windows machines the filename
  27045. should be exactly as it would be passed to fopen(2). On Windows
  27046. machines, the path should be UTF-8 encoded so that non-ASCII
  27047. characters can be represented. Other platforms do the encoding
  27048. as standard anyway (and in most cases, particularly for MacOS
  27049. and Linux, the encoding they use is UTF-8 anyway).
  27050. |
  27051. *Overload 3:*
  27052. Constructor using `fz_open_file_ptr_no_close()`.
  27053. Create a stream from a FILE * that will not be closed
  27054. when the stream is dropped.
  27055. |
  27056. *Overload 4:*
  27057. Constructor using `fz_open_memory()`.
  27058. Open a block of memory as a stream.
  27059. data: Pointer to start of data block. Ownership of the data
  27060. block is NOT passed in.
  27061. len: Number of bytes in data block.
  27062. Returns pointer to newly created stream. May throw exceptions on
  27063. failure to allocate.
  27064. |
  27065. *Overload 5:*
  27066. Construct using fz_open_file().
  27067. |
  27068. *Overload 6:*
  27069. Copy constructor using `fz_keep_stream()`.
  27070. |
  27071. *Overload 7:*
  27072. Default constructor, sets `m_internal` to null.
  27073. |
  27074. *Overload 8:*
  27075. Constructor using raw copy of pre-existing `::fz_stream`.
  27076. """
  27077. _mupdf.FzStream_swiginit(self, _mupdf.new_FzStream(*args))
  27078. __swig_destroy__ = _mupdf.delete_FzStream
  27079. def m_internal_value(self):
  27080. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27081. return _mupdf.FzStream_m_internal_value(self)
  27082. def __nonzero__(self):
  27083. return _mupdf.FzStream___nonzero__(self)
  27084. __bool__ = __nonzero__
  27085. m_internal = property(_mupdf.FzStream_m_internal_get, _mupdf.FzStream_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27086. s_num_instances = property(_mupdf.FzStream_s_num_instances_get, _mupdf.FzStream_s_num_instances_set)
  27087. # Register FzStream in _mupdf:
  27088. _mupdf.FzStream_swigregister(FzStream)
  27089. class FzString(object):
  27090. r"""Wrapper class for struct `fz_string`."""
  27091. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27092. __repr__ = _swig_repr
  27093. def __init__(self, *args):
  27094. r"""
  27095. *Overload 1:*
  27096. == Constructors. Constructor using `fz_new_string()`.
  27097. |
  27098. *Overload 2:*
  27099. Copy constructor using `fz_keep_string()`.
  27100. |
  27101. *Overload 3:*
  27102. Default constructor, sets `m_internal` to null.
  27103. |
  27104. *Overload 4:*
  27105. Constructor using raw copy of pre-existing `::fz_string`.
  27106. """
  27107. _mupdf.FzString_swiginit(self, _mupdf.new_FzString(*args))
  27108. __swig_destroy__ = _mupdf.delete_FzString
  27109. def m_internal_value(self):
  27110. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27111. return _mupdf.FzString_m_internal_value(self)
  27112. def __nonzero__(self):
  27113. return _mupdf.FzString___nonzero__(self)
  27114. __bool__ = __nonzero__
  27115. m_internal = property(_mupdf.FzString_m_internal_get, _mupdf.FzString_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27116. s_num_instances = property(_mupdf.FzString_s_num_instances_get, _mupdf.FzString_s_num_instances_set)
  27117. # Register FzString in _mupdf:
  27118. _mupdf.FzString_swigregister(FzString)
  27119. class FzStrokeState(object):
  27120. r"""Wrapper class for struct `fz_stroke_state`."""
  27121. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27122. __repr__ = _swig_repr
  27123. def fz_clone_stroke_state(self):
  27124. r"""
  27125. Class-aware wrapper for `::fz_clone_stroke_state()`.
  27126. Create an identical stroke_state structure and return a
  27127. reference to it.
  27128. stroke: The stroke state reference to clone.
  27129. Exceptions may be thrown in the event of a failure to
  27130. allocate.
  27131. """
  27132. return _mupdf.FzStrokeState_fz_clone_stroke_state(self)
  27133. def fz_stroke_state_eq(self, b):
  27134. r"""Class-aware wrapper for `::fz_stroke_state_eq()`."""
  27135. return _mupdf.FzStrokeState_fz_stroke_state_eq(self, b)
  27136. def fz_unshare_stroke_state(self):
  27137. r"""
  27138. Class-aware wrapper for `::fz_unshare_stroke_state()`.
  27139. Given a reference to a (possibly) shared stroke_state structure,
  27140. return a reference to an equivalent stroke_state structure
  27141. that is guaranteed to be unshared (i.e. one that can
  27142. safely be modified).
  27143. shared: The reference to a (possibly) shared structure
  27144. to unshare. Ownership of this reference is passed in
  27145. to this function, even in the case of exceptions being
  27146. thrown.
  27147. Exceptions may be thrown in the event of failure to
  27148. allocate if required.
  27149. """
  27150. return _mupdf.FzStrokeState_fz_unshare_stroke_state(self)
  27151. def fz_unshare_stroke_state_with_dash_len(self, len):
  27152. r"""
  27153. Class-aware wrapper for `::fz_unshare_stroke_state_with_dash_len()`.
  27154. Given a reference to a (possibly) shared stroke_state structure,
  27155. return a reference to a stroke_state structure (with room for a
  27156. given amount of dash data) that is guaranteed to be unshared
  27157. (i.e. one that can safely be modified).
  27158. shared: The reference to a (possibly) shared structure
  27159. to unshare. Ownership of this reference is passed in
  27160. to this function, even in the case of exceptions being
  27161. thrown.
  27162. Exceptions may be thrown in the event of failure to
  27163. allocate if required.
  27164. """
  27165. return _mupdf.FzStrokeState_fz_unshare_stroke_state_with_dash_len(self, len)
  27166. def __init__(self, *args):
  27167. r"""
  27168. *Overload 1:*
  27169. == Constructors. Constructor using `fz_new_stroke_state()`.
  27170. Create a new (empty) stroke state structure (with no dash
  27171. data) and return a reference to it.
  27172. Throws exception on failure to allocate.
  27173. |
  27174. *Overload 2:*
  27175. Constructor using `fz_new_stroke_state_with_dash_len()`.
  27176. Create a new (empty) stroke state structure, with room for
  27177. dash data of the given length, and return a reference to it.
  27178. len: The number of dash elements to allow room for.
  27179. Throws exception on failure to allocate.
  27180. |
  27181. *Overload 3:*
  27182. Copy constructor using `fz_keep_stroke_state()`.
  27183. |
  27184. *Overload 4:*
  27185. Constructor using raw copy of pre-existing `::fz_stroke_state`.
  27186. """
  27187. _mupdf.FzStrokeState_swiginit(self, _mupdf.new_FzStrokeState(*args))
  27188. __swig_destroy__ = _mupdf.delete_FzStrokeState
  27189. def m_internal_value(self):
  27190. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27191. return _mupdf.FzStrokeState_m_internal_value(self)
  27192. def __nonzero__(self):
  27193. return _mupdf.FzStrokeState___nonzero__(self)
  27194. __bool__ = __nonzero__
  27195. m_internal = property(_mupdf.FzStrokeState_m_internal_get, _mupdf.FzStrokeState_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27196. s_num_instances = property(_mupdf.FzStrokeState_s_num_instances_get, _mupdf.FzStrokeState_s_num_instances_set)
  27197. # Register FzStrokeState in _mupdf:
  27198. _mupdf.FzStrokeState_swigregister(FzStrokeState)
  27199. class FzStyleContext(object):
  27200. r"""Wrapper class for struct `fz_style_context`. Not copyable or assignable."""
  27201. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27202. __repr__ = _swig_repr
  27203. def __init__(self, *args):
  27204. r"""
  27205. *Overload 1:*
  27206. Default constructor, sets `m_internal` to null.
  27207. |
  27208. *Overload 2:*
  27209. Constructor using raw copy of pre-existing `::fz_style_context`.
  27210. """
  27211. _mupdf.FzStyleContext_swiginit(self, _mupdf.new_FzStyleContext(*args))
  27212. __swig_destroy__ = _mupdf.delete_FzStyleContext
  27213. def m_internal_value(self):
  27214. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27215. return _mupdf.FzStyleContext_m_internal_value(self)
  27216. def __nonzero__(self):
  27217. return _mupdf.FzStyleContext___nonzero__(self)
  27218. __bool__ = __nonzero__
  27219. m_internal = property(_mupdf.FzStyleContext_m_internal_get, _mupdf.FzStyleContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27220. s_num_instances = property(_mupdf.FzStyleContext_s_num_instances_get, _mupdf.FzStyleContext_s_num_instances_set)
  27221. # Register FzStyleContext in _mupdf:
  27222. _mupdf.FzStyleContext_swigregister(FzStyleContext)
  27223. class FzText(object):
  27224. r"""Wrapper class for struct `fz_text`."""
  27225. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27226. __repr__ = _swig_repr
  27227. def fz_bound_text(self, stroke, ctm):
  27228. r"""
  27229. Class-aware wrapper for `::fz_bound_text()`.
  27230. Find the bounds of a given text object.
  27231. text: The text object to find the bounds of.
  27232. stroke: Pointer to the stroke attributes (for stroked
  27233. text), or NULL (for filled text).
  27234. ctm: The matrix in use.
  27235. r: pointer to storage for the bounds.
  27236. Returns a pointer to r, which is updated to contain the
  27237. bounding box for the text object.
  27238. """
  27239. return _mupdf.FzText_fz_bound_text(self, stroke, ctm)
  27240. def fz_show_glyph(self, font, trm, glyph, unicode, wmode, bidi_level, markup_dir, language):
  27241. r"""
  27242. Class-aware wrapper for `::fz_show_glyph()`.
  27243. Add a glyph/unicode value to a text object.
  27244. text: Text object to add to.
  27245. font: The font the glyph should be added in.
  27246. trm: The transform to use for the glyph.
  27247. glyph: The glyph id to add.
  27248. unicode: The unicode character for the glyph.
  27249. cid: The CJK CID value or raw character code.
  27250. wmode: 1 for vertical mode, 0 for horizontal.
  27251. bidi_level: The bidirectional level for this glyph.
  27252. markup_dir: The direction of the text as specified in the
  27253. markup.
  27254. language: The language in use (if known, 0 otherwise)
  27255. (e.g. FZ_LANG_zh_Hans).
  27256. Throws exception on failure to allocate.
  27257. """
  27258. return _mupdf.FzText_fz_show_glyph(self, font, trm, glyph, unicode, wmode, bidi_level, markup_dir, language)
  27259. def fz_show_glyph_aux(self, font, trm, adv, glyph, unicode, cid, wmode, bidi_level, markup_dir, lang):
  27260. r"""Class-aware wrapper for `::fz_show_glyph_aux()`."""
  27261. return _mupdf.FzText_fz_show_glyph_aux(self, font, trm, adv, glyph, unicode, cid, wmode, bidi_level, markup_dir, lang)
  27262. def fz_show_string(self, font, trm, s, wmode, bidi_level, markup_dir, language):
  27263. r"""
  27264. Class-aware wrapper for `::fz_show_string()`.
  27265. Add a UTF8 string to a text object.
  27266. text: Text object to add to.
  27267. font: The font the string should be added in.
  27268. trm: The transform to use.
  27269. s: The utf-8 string to add.
  27270. wmode: 1 for vertical mode, 0 for horizontal.
  27271. bidi_level: The bidirectional level for this glyph.
  27272. markup_dir: The direction of the text as specified in the markup.
  27273. language: The language in use (if known, 0 otherwise)
  27274. (e.g. FZ_LANG_zh_Hans).
  27275. Returns the transform updated with the advance width of the
  27276. string.
  27277. """
  27278. return _mupdf.FzText_fz_show_string(self, font, trm, s, wmode, bidi_level, markup_dir, language)
  27279. def __init__(self, *args):
  27280. r"""
  27281. *Overload 1:*
  27282. == Constructors. Constructor using `fz_new_text()`.
  27283. Create a new empty fz_text object.
  27284. Throws exception on failure to allocate.
  27285. |
  27286. *Overload 2:*
  27287. Copy constructor using `fz_keep_text()`.
  27288. |
  27289. *Overload 3:*
  27290. Constructor using raw copy of pre-existing `::fz_text`.
  27291. """
  27292. _mupdf.FzText_swiginit(self, _mupdf.new_FzText(*args))
  27293. __swig_destroy__ = _mupdf.delete_FzText
  27294. def m_internal_value(self):
  27295. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27296. return _mupdf.FzText_m_internal_value(self)
  27297. def __nonzero__(self):
  27298. return _mupdf.FzText___nonzero__(self)
  27299. __bool__ = __nonzero__
  27300. m_internal = property(_mupdf.FzText_m_internal_get, _mupdf.FzText_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27301. s_num_instances = property(_mupdf.FzText_s_num_instances_get, _mupdf.FzText_s_num_instances_set)
  27302. # Register FzText in _mupdf:
  27303. _mupdf.FzText_swigregister(FzText)
  27304. class FzTextDecoder(object):
  27305. r"""
  27306. Wrapper class for struct `fz_text_decoder`. Not copyable or assignable.
  27307. A text decoder (to read arbitrary encodings and convert to unicode).
  27308. """
  27309. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27310. __repr__ = _swig_repr
  27311. def fz_init_text_decoder(self, encoding):
  27312. r"""Class-aware wrapper for `::fz_init_text_decoder()`."""
  27313. return _mupdf.FzTextDecoder_fz_init_text_decoder(self, encoding)
  27314. def __init__(self, *args):
  27315. r"""
  27316. *Overload 1:*
  27317. Default constructor, sets `m_internal` to null.
  27318. |
  27319. *Overload 2:*
  27320. Constructor using raw copy of pre-existing `::fz_text_decoder`.
  27321. """
  27322. _mupdf.FzTextDecoder_swiginit(self, _mupdf.new_FzTextDecoder(*args))
  27323. __swig_destroy__ = _mupdf.delete_FzTextDecoder
  27324. def m_internal_value(self):
  27325. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27326. return _mupdf.FzTextDecoder_m_internal_value(self)
  27327. def __nonzero__(self):
  27328. return _mupdf.FzTextDecoder___nonzero__(self)
  27329. __bool__ = __nonzero__
  27330. m_internal = property(_mupdf.FzTextDecoder_m_internal_get, _mupdf.FzTextDecoder_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27331. s_num_instances = property(_mupdf.FzTextDecoder_s_num_instances_get, _mupdf.FzTextDecoder_s_num_instances_set)
  27332. # Register FzTextDecoder in _mupdf:
  27333. _mupdf.FzTextDecoder_swigregister(FzTextDecoder)
  27334. class FzTextItem(object):
  27335. r"""
  27336. Wrapper class for struct `fz_text_item`. Not copyable or assignable.
  27337. Text buffer.
  27338. The trm field contains the a, b, c and d coefficients.
  27339. The e and f coefficients come from the individual elements,
  27340. together they form the transform matrix for the glyph.
  27341. Glyphs are referenced by glyph ID.
  27342. The Unicode text equivalent is kept in a separate array
  27343. with indexes into the glyph array.
  27344. """
  27345. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27346. __repr__ = _swig_repr
  27347. def __init__(self, *args):
  27348. r"""
  27349. *Overload 1:*
  27350. Default constructor, sets `m_internal` to null.
  27351. |
  27352. *Overload 2:*
  27353. Constructor using raw copy of pre-existing `::fz_text_item`.
  27354. """
  27355. _mupdf.FzTextItem_swiginit(self, _mupdf.new_FzTextItem(*args))
  27356. __swig_destroy__ = _mupdf.delete_FzTextItem
  27357. def m_internal_value(self):
  27358. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27359. return _mupdf.FzTextItem_m_internal_value(self)
  27360. def __nonzero__(self):
  27361. return _mupdf.FzTextItem___nonzero__(self)
  27362. __bool__ = __nonzero__
  27363. m_internal = property(_mupdf.FzTextItem_m_internal_get, _mupdf.FzTextItem_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27364. s_num_instances = property(_mupdf.FzTextItem_s_num_instances_get, _mupdf.FzTextItem_s_num_instances_set)
  27365. # Register FzTextItem in _mupdf:
  27366. _mupdf.FzTextItem_swigregister(FzTextItem)
  27367. class FzTextSpan(object):
  27368. r"""Wrapper class for struct `fz_text_span`. Not copyable or assignable."""
  27369. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27370. __repr__ = _swig_repr
  27371. def font(self):
  27372. r"""Gives class-aware access to m_internal->font."""
  27373. return _mupdf.FzTextSpan_font(self)
  27374. def trm(self):
  27375. r"""Gives class-aware access to m_internal->trm."""
  27376. return _mupdf.FzTextSpan_trm(self)
  27377. def items(self, i):
  27378. r"""
  27379. Gives access to m_internal->items[i].
  27380. Returned reference is only valid as long as `this`.
  27381. Provided mainly for use by SWIG bindings.
  27382. """
  27383. return _mupdf.FzTextSpan_items(self, i)
  27384. def __init__(self, *args):
  27385. r"""
  27386. *Overload 1:*
  27387. Default constructor, sets `m_internal` to null.
  27388. |
  27389. *Overload 2:*
  27390. Constructor using raw copy of pre-existing `::fz_text_span`.
  27391. """
  27392. _mupdf.FzTextSpan_swiginit(self, _mupdf.new_FzTextSpan(*args))
  27393. __swig_destroy__ = _mupdf.delete_FzTextSpan
  27394. def m_internal_value(self):
  27395. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27396. return _mupdf.FzTextSpan_m_internal_value(self)
  27397. def __nonzero__(self):
  27398. return _mupdf.FzTextSpan___nonzero__(self)
  27399. __bool__ = __nonzero__
  27400. m_internal = property(_mupdf.FzTextSpan_m_internal_get, _mupdf.FzTextSpan_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27401. s_num_instances = property(_mupdf.FzTextSpan_s_num_instances_get, _mupdf.FzTextSpan_s_num_instances_set)
  27402. # Register FzTextSpan in _mupdf:
  27403. _mupdf.FzTextSpan_swigregister(FzTextSpan)
  27404. class FzTransition(object):
  27405. r"""Wrapper class for struct `fz_transition`."""
  27406. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27407. __repr__ = _swig_repr
  27408. def __init__(self, *args):
  27409. r"""
  27410. *Overload 1:*
  27411. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  27412. |
  27413. *Overload 2:*
  27414. Constructor using raw copy of pre-existing `::fz_transition`.
  27415. |
  27416. *Overload 3:*
  27417. Constructor using raw copy of pre-existing `::fz_transition`.
  27418. """
  27419. _mupdf.FzTransition_swiginit(self, _mupdf.new_FzTransition(*args))
  27420. def internal(self, *args):
  27421. r"""
  27422. *Overload 1:*
  27423. Access as underlying struct.
  27424. |
  27425. *Overload 2:*
  27426. Access as underlying struct.
  27427. """
  27428. return _mupdf.FzTransition_internal(self, *args)
  27429. __swig_destroy__ = _mupdf.delete_FzTransition
  27430. type = property(_mupdf.FzTransition_type_get, _mupdf.FzTransition_type_set)
  27431. duration = property(_mupdf.FzTransition_duration_get, _mupdf.FzTransition_duration_set)
  27432. vertical = property(_mupdf.FzTransition_vertical_get, _mupdf.FzTransition_vertical_set)
  27433. outwards = property(_mupdf.FzTransition_outwards_get, _mupdf.FzTransition_outwards_set)
  27434. direction = property(_mupdf.FzTransition_direction_get, _mupdf.FzTransition_direction_set)
  27435. state0 = property(_mupdf.FzTransition_state0_get, _mupdf.FzTransition_state0_set)
  27436. state1 = property(_mupdf.FzTransition_state1_get, _mupdf.FzTransition_state1_set)
  27437. s_num_instances = property(_mupdf.FzTransition_s_num_instances_get, _mupdf.FzTransition_s_num_instances_set)
  27438. def to_string(self):
  27439. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  27440. return _mupdf.FzTransition_to_string(self)
  27441. def __eq__(self, rhs):
  27442. r"""Comparison method."""
  27443. return _mupdf.FzTransition___eq__(self, rhs)
  27444. def __ne__(self, rhs):
  27445. r"""Comparison method."""
  27446. return _mupdf.FzTransition___ne__(self, rhs)
  27447. # Register FzTransition in _mupdf:
  27448. _mupdf.FzTransition_swigregister(FzTransition)
  27449. class FzTree(object):
  27450. r"""
  27451. Wrapper class for struct `fz_tree`. Not copyable or assignable.
  27452. AA-tree to look up things by strings.
  27453. """
  27454. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27455. __repr__ = _swig_repr
  27456. def fz_new_tree_archive(self):
  27457. r"""
  27458. Class-aware wrapper for `::fz_new_tree_archive()`.
  27459. Create an archive that holds named buffers.
  27460. tree can either be a preformed tree with fz_buffers as values,
  27461. or it can be NULL for an empty tree.
  27462. """
  27463. return _mupdf.FzTree_fz_new_tree_archive(self)
  27464. def fz_tree_lookup(self, key):
  27465. r"""
  27466. Class-aware wrapper for `::fz_tree_lookup()`.
  27467. Look for the value of a node in the tree with the given key.
  27468. Simple pointer equivalence is used for key.
  27469. Returns NULL for no match.
  27470. """
  27471. return _mupdf.FzTree_fz_tree_lookup(self, key)
  27472. def __init__(self, *args):
  27473. r"""
  27474. *Overload 1:*
  27475. Default constructor, sets `m_internal` to null.
  27476. |
  27477. *Overload 2:*
  27478. Constructor using raw copy of pre-existing `::fz_tree`.
  27479. """
  27480. _mupdf.FzTree_swiginit(self, _mupdf.new_FzTree(*args))
  27481. __swig_destroy__ = _mupdf.delete_FzTree
  27482. def m_internal_value(self):
  27483. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27484. return _mupdf.FzTree_m_internal_value(self)
  27485. def __nonzero__(self):
  27486. return _mupdf.FzTree___nonzero__(self)
  27487. __bool__ = __nonzero__
  27488. m_internal = property(_mupdf.FzTree_m_internal_get, _mupdf.FzTree_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27489. s_num_instances = property(_mupdf.FzTree_s_num_instances_get, _mupdf.FzTree_s_num_instances_set)
  27490. # Register FzTree in _mupdf:
  27491. _mupdf.FzTree_swigregister(FzTree)
  27492. class FzTuningContext(object):
  27493. r"""Wrapper class for struct `fz_tuning_context`. Not copyable or assignable."""
  27494. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27495. __repr__ = _swig_repr
  27496. def __init__(self, *args):
  27497. r"""
  27498. *Overload 1:*
  27499. Default constructor, sets `m_internal` to null.
  27500. |
  27501. *Overload 2:*
  27502. Constructor using raw copy of pre-existing `::fz_tuning_context`.
  27503. """
  27504. _mupdf.FzTuningContext_swiginit(self, _mupdf.new_FzTuningContext(*args))
  27505. __swig_destroy__ = _mupdf.delete_FzTuningContext
  27506. def m_internal_value(self):
  27507. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27508. return _mupdf.FzTuningContext_m_internal_value(self)
  27509. def __nonzero__(self):
  27510. return _mupdf.FzTuningContext___nonzero__(self)
  27511. __bool__ = __nonzero__
  27512. m_internal = property(_mupdf.FzTuningContext_m_internal_get, _mupdf.FzTuningContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27513. s_num_instances = property(_mupdf.FzTuningContext_s_num_instances_get, _mupdf.FzTuningContext_s_num_instances_set)
  27514. # Register FzTuningContext in _mupdf:
  27515. _mupdf.FzTuningContext_swigregister(FzTuningContext)
  27516. class FzVertex(object):
  27517. r"""
  27518. Wrapper class for struct `fz_vertex`. Not copyable or assignable.
  27519. Handy routine for processing mesh based shades
  27520. """
  27521. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27522. __repr__ = _swig_repr
  27523. def __init__(self, *args):
  27524. r"""
  27525. *Overload 1:*
  27526. Default constructor, sets `m_internal` to null.
  27527. |
  27528. *Overload 2:*
  27529. Constructor using raw copy of pre-existing `::fz_vertex`.
  27530. """
  27531. _mupdf.FzVertex_swiginit(self, _mupdf.new_FzVertex(*args))
  27532. __swig_destroy__ = _mupdf.delete_FzVertex
  27533. def m_internal_value(self):
  27534. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27535. return _mupdf.FzVertex_m_internal_value(self)
  27536. def __nonzero__(self):
  27537. return _mupdf.FzVertex___nonzero__(self)
  27538. __bool__ = __nonzero__
  27539. m_internal = property(_mupdf.FzVertex_m_internal_get, _mupdf.FzVertex_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27540. s_num_instances = property(_mupdf.FzVertex_s_num_instances_get, _mupdf.FzVertex_s_num_instances_set)
  27541. # Register FzVertex in _mupdf:
  27542. _mupdf.FzVertex_swigregister(FzVertex)
  27543. class FzWarnContext(object):
  27544. r"""Wrapper class for struct `fz_warn_context`. Not copyable or assignable."""
  27545. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27546. __repr__ = _swig_repr
  27547. def __init__(self, *args):
  27548. r"""
  27549. *Overload 1:*
  27550. Default constructor, sets `m_internal` to null.
  27551. |
  27552. *Overload 2:*
  27553. Constructor using raw copy of pre-existing `::fz_warn_context`.
  27554. """
  27555. _mupdf.FzWarnContext_swiginit(self, _mupdf.new_FzWarnContext(*args))
  27556. __swig_destroy__ = _mupdf.delete_FzWarnContext
  27557. def m_internal_value(self):
  27558. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27559. return _mupdf.FzWarnContext_m_internal_value(self)
  27560. def __nonzero__(self):
  27561. return _mupdf.FzWarnContext___nonzero__(self)
  27562. __bool__ = __nonzero__
  27563. m_internal = property(_mupdf.FzWarnContext_m_internal_get, _mupdf.FzWarnContext_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27564. s_num_instances = property(_mupdf.FzWarnContext_s_num_instances_get, _mupdf.FzWarnContext_s_num_instances_set)
  27565. # Register FzWarnContext in _mupdf:
  27566. _mupdf.FzWarnContext_swigregister(FzWarnContext)
  27567. class FzWriteStoryPosition(object):
  27568. r"""Wrapper class for struct `fz_write_story_position`. Not copyable or assignable."""
  27569. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27570. __repr__ = _swig_repr
  27571. def __init__(self, *args):
  27572. r"""
  27573. *Overload 1:*
  27574. Default constructor, sets `m_internal` to null.
  27575. |
  27576. *Overload 2:*
  27577. Constructor using raw copy of pre-existing `::fz_write_story_position`.
  27578. """
  27579. _mupdf.FzWriteStoryPosition_swiginit(self, _mupdf.new_FzWriteStoryPosition(*args))
  27580. __swig_destroy__ = _mupdf.delete_FzWriteStoryPosition
  27581. def m_internal_value(self):
  27582. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27583. return _mupdf.FzWriteStoryPosition_m_internal_value(self)
  27584. def __nonzero__(self):
  27585. return _mupdf.FzWriteStoryPosition___nonzero__(self)
  27586. __bool__ = __nonzero__
  27587. m_internal = property(_mupdf.FzWriteStoryPosition_m_internal_get, _mupdf.FzWriteStoryPosition_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27588. s_num_instances = property(_mupdf.FzWriteStoryPosition_s_num_instances_get, _mupdf.FzWriteStoryPosition_s_num_instances_set)
  27589. # Register FzWriteStoryPosition in _mupdf:
  27590. _mupdf.FzWriteStoryPosition_swigregister(FzWriteStoryPosition)
  27591. class FzWriteStoryPositions(object):
  27592. r"""Wrapper class for struct `fz_write_story_positions`. Not copyable or assignable."""
  27593. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27594. __repr__ = _swig_repr
  27595. def __init__(self, *args):
  27596. r"""
  27597. *Overload 1:*
  27598. Default constructor, sets `m_internal` to null.
  27599. |
  27600. *Overload 2:*
  27601. Constructor using raw copy of pre-existing `::fz_write_story_positions`.
  27602. """
  27603. _mupdf.FzWriteStoryPositions_swiginit(self, _mupdf.new_FzWriteStoryPositions(*args))
  27604. __swig_destroy__ = _mupdf.delete_FzWriteStoryPositions
  27605. def m_internal_value(self):
  27606. r"""Return numerical value of .m_internal; helps with Python debugging."""
  27607. return _mupdf.FzWriteStoryPositions_m_internal_value(self)
  27608. def __nonzero__(self):
  27609. return _mupdf.FzWriteStoryPositions___nonzero__(self)
  27610. __bool__ = __nonzero__
  27611. m_internal = property(_mupdf.FzWriteStoryPositions_m_internal_get, _mupdf.FzWriteStoryPositions_m_internal_set, doc=r"""Pointer to wrapped data.""")
  27612. s_num_instances = property(_mupdf.FzWriteStoryPositions_s_num_instances_get, _mupdf.FzWriteStoryPositions_s_num_instances_set)
  27613. # Register FzWriteStoryPositions in _mupdf:
  27614. _mupdf.FzWriteStoryPositions_swigregister(FzWriteStoryPositions)
  27615. class FzXml(object):
  27616. r"""
  27617. Wrapper class for struct `fz_xml`.
  27618. XML document model
  27619. """
  27620. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  27621. __repr__ = _swig_repr
  27622. def fz_debug_xml(self, level):
  27623. r"""
  27624. Class-aware wrapper for `::fz_debug_xml()`.
  27625. Pretty-print an XML tree to stdout. (Deprecated, use
  27626. fz_output_xml in preference).
  27627. """
  27628. return _mupdf.FzXml_fz_debug_xml(self, level)
  27629. def fz_detach_xml(self):
  27630. r"""
  27631. Class-aware wrapper for `::fz_detach_xml()`.
  27632. Detach a node from the tree, unlinking it from its parent,
  27633. and setting the document root to the node.
  27634. """
  27635. return _mupdf.FzXml_fz_detach_xml(self)
  27636. def fz_dom_add_attribute(self, att, value):
  27637. r"""
  27638. Class-aware wrapper for `::fz_dom_add_attribute()`.
  27639. Add an attribute to an element.
  27640. Ownership of att and value remain with the caller.
  27641. """
  27642. return _mupdf.FzXml_fz_dom_add_attribute(self, att, value)
  27643. def fz_dom_append_child(self, child):
  27644. r"""
  27645. Class-aware wrapper for `::fz_dom_append_child()`.
  27646. Insert an element as the last child of a parent, unlinking the
  27647. child from its current position if required.
  27648. """
  27649. return _mupdf.FzXml_fz_dom_append_child(self, child)
  27650. def fz_dom_attribute(self, att):
  27651. r"""
  27652. Class-aware wrapper for `::fz_dom_attribute()`.
  27653. Retrieve the value of a given attribute from a given element.
  27654. Returns a borrowed pointer to the value or NULL if not found.
  27655. """
  27656. return _mupdf.FzXml_fz_dom_attribute(self, att)
  27657. def fz_dom_body(self):
  27658. r"""
  27659. Class-aware wrapper for `::fz_dom_body()`.
  27660. Return a borrowed reference for the 'body' element of
  27661. the given DOM.
  27662. """
  27663. return _mupdf.FzXml_fz_dom_body(self)
  27664. def fz_dom_clone(self):
  27665. r"""
  27666. Class-aware wrapper for `::fz_dom_clone()`.
  27667. Clone an element (and its children).
  27668. A borrowed reference to the clone is returned. The clone is not
  27669. yet linked into the DOM.
  27670. """
  27671. return _mupdf.FzXml_fz_dom_clone(self)
  27672. def fz_dom_create_element(self, tag):
  27673. r"""
  27674. Class-aware wrapper for `::fz_dom_create_element()`.
  27675. Create an element of a given tag type for the given DOM.
  27676. The element is not linked into the DOM yet.
  27677. """
  27678. return _mupdf.FzXml_fz_dom_create_element(self, tag)
  27679. def fz_dom_create_text_node(self, text):
  27680. r"""
  27681. Class-aware wrapper for `::fz_dom_create_text_node()`.
  27682. Create a text node for the given DOM.
  27683. The element is not linked into the DOM yet.
  27684. """
  27685. return _mupdf.FzXml_fz_dom_create_text_node(self, text)
  27686. def fz_dom_document_element(self):
  27687. r"""
  27688. Class-aware wrapper for `::fz_dom_document_element()`.
  27689. Return a borrowed reference for the document (the top
  27690. level element) of the DOM.
  27691. """
  27692. return _mupdf.FzXml_fz_dom_document_element(self)
  27693. def fz_dom_find(self, tag, att, match):
  27694. r"""
  27695. Class-aware wrapper for `::fz_dom_find()`.
  27696. Find the first element matching the requirements in a depth first traversal from elt.
  27697. The tagname must match tag, unless tag is NULL, when all tag names are considered to match.
  27698. If att is NULL, then all tags match.
  27699. Otherwise:
  27700. If match is NULL, then only nodes that have an att attribute match.
  27701. If match is non-NULL, then only nodes that have an att attribute that matches match match.
  27702. Returns NULL (if no match found), or a borrowed reference to the first matching element.
  27703. """
  27704. return _mupdf.FzXml_fz_dom_find(self, tag, att, match)
  27705. def fz_dom_find_next(self, tag, att, match):
  27706. r"""
  27707. Class-aware wrapper for `::fz_dom_find_next()`.
  27708. Find the next element matching the requirements.
  27709. """
  27710. return _mupdf.FzXml_fz_dom_find_next(self, tag, att, match)
  27711. def fz_dom_first_child(self):
  27712. r"""
  27713. Class-aware wrapper for `::fz_dom_first_child()`.
  27714. Return a borrowed reference to the first child of a node,
  27715. or NULL if there isn't one.
  27716. """
  27717. return _mupdf.FzXml_fz_dom_first_child(self)
  27718. def fz_dom_get_attribute(self, i, att):
  27719. r"""
  27720. Class-aware wrapper for `::fz_dom_get_attribute()`.
  27721. This method has out-params. Python/C# wrappers look like:
  27722. `fz_dom_get_attribute(int i)` => `(const char *, const char *att)`
  27723. Enumerate through the attributes of an element.
  27724. Call with i=0,1,2,3... to enumerate attributes.
  27725. On return *att and the return value will be NULL if there are not
  27726. that many attributes to read. Otherwise, *att will be filled in
  27727. with a borrowed pointer to the attribute name, and the return
  27728. value will be a borrowed pointer to the value.
  27729. """
  27730. return _mupdf.FzXml_fz_dom_get_attribute(self, i, att)
  27731. def fz_dom_insert_after(self, new_elt):
  27732. r"""
  27733. Class-aware wrapper for `::fz_dom_insert_after()`.
  27734. Insert an element (new_elt), after another element (node),
  27735. unlinking the new_elt from its current position if required.
  27736. """
  27737. return _mupdf.FzXml_fz_dom_insert_after(self, new_elt)
  27738. def fz_dom_insert_before(self, new_elt):
  27739. r"""
  27740. Class-aware wrapper for `::fz_dom_insert_before()`.
  27741. Insert an element (new_elt), before another element (node),
  27742. unlinking the new_elt from its current position if required.
  27743. """
  27744. return _mupdf.FzXml_fz_dom_insert_before(self, new_elt)
  27745. def fz_dom_next(self):
  27746. r"""
  27747. Class-aware wrapper for `::fz_dom_next()`.
  27748. Return a borrowed reference to the next sibling of a node,
  27749. or NULL if there isn't one.
  27750. """
  27751. return _mupdf.FzXml_fz_dom_next(self)
  27752. def fz_dom_parent(self):
  27753. r"""
  27754. Class-aware wrapper for `::fz_dom_parent()`.
  27755. Return a borrowed reference to the parent of a node,
  27756. or NULL if there isn't one.
  27757. """
  27758. return _mupdf.FzXml_fz_dom_parent(self)
  27759. def fz_dom_previous(self):
  27760. r"""
  27761. Class-aware wrapper for `::fz_dom_previous()`.
  27762. Return a borrowed reference to the previous sibling of a node,
  27763. or NULL if there isn't one.
  27764. """
  27765. return _mupdf.FzXml_fz_dom_previous(self)
  27766. def fz_dom_remove(self):
  27767. r"""
  27768. Class-aware wrapper for `::fz_dom_remove()`.
  27769. Remove an element from the DOM. The element can be added back elsewhere
  27770. if required.
  27771. No reference counting changes for the element.
  27772. """
  27773. return _mupdf.FzXml_fz_dom_remove(self)
  27774. def fz_dom_remove_attribute(self, att):
  27775. r"""
  27776. Class-aware wrapper for `::fz_dom_remove_attribute()`.
  27777. Remove an attribute from an element.
  27778. """
  27779. return _mupdf.FzXml_fz_dom_remove_attribute(self, att)
  27780. def fz_new_display_list_from_svg_xml(self, xml, base_uri, dir, w, h):
  27781. r"""
  27782. Class-aware wrapper for `::fz_new_display_list_from_svg_xml()`.
  27783. This method has out-params. Python/C# wrappers look like:
  27784. `fz_new_display_list_from_svg_xml(::fz_xml *xml, const char *base_uri, ::fz_archive *dir)` => `(fz_display_list *, float w, float h)`
  27785. Parse an SVG document into a display-list.
  27786. """
  27787. return _mupdf.FzXml_fz_new_display_list_from_svg_xml(self, xml, base_uri, dir, w, h)
  27788. def fz_new_dom_node(self, tag):
  27789. r"""
  27790. Class-aware wrapper for `::fz_new_dom_node()`.
  27791. Create a new dom node.
  27792. This will NOT be linked in yet.
  27793. """
  27794. return _mupdf.FzXml_fz_new_dom_node(self, tag)
  27795. def fz_new_dom_text_node(self, *args):
  27796. r"""
  27797. *Overload 1:*
  27798. Class-aware wrapper for `::fz_new_dom_text_node()`.
  27799. Create a new dom text node.
  27800. This will NOT be linked in yet.
  27801. |
  27802. *Overload 2:*
  27803. Class-aware wrapper for `::fz_new_dom_text_node()`.
  27804. Create a new dom text node.
  27805. This will NOT be linked in yet.
  27806. """
  27807. return _mupdf.FzXml_fz_new_dom_text_node(self, *args)
  27808. def fz_new_image_from_svg_xml(self, xml, base_uri, dir):
  27809. r"""
  27810. Class-aware wrapper for `::fz_new_image_from_svg_xml()`.
  27811. Create a scalable image from an SVG document.
  27812. """
  27813. return _mupdf.FzXml_fz_new_image_from_svg_xml(self, xml, base_uri, dir)
  27814. def fz_save_xml(self, path, indented):
  27815. r"""
  27816. Class-aware wrapper for `::fz_save_xml()`.
  27817. As for fz_write_xml, but direct to a file.
  27818. """
  27819. return _mupdf.FzXml_fz_save_xml(self, path, indented)
  27820. def fz_write_xml(self, out, indented):
  27821. r"""
  27822. Class-aware wrapper for `::fz_write_xml()`.
  27823. Write our xml structure out to an xml stream.
  27824. Properly formatted XML is only allowed to have a single top-level node
  27825. under which everything must sit. Our structures allow for multiple
  27826. top level nodes. If required, we will output an extra 'ROOT' node
  27827. at the top so that the xml is well-formed.
  27828. If 'indented' is non-zero then additional whitespace will be added to
  27829. make the XML easier to read in a text editor. It will NOT be properly
  27830. compliant.
  27831. """
  27832. return _mupdf.FzXml_fz_write_xml(self, out, indented)
  27833. def fz_xml_att(self, att):
  27834. r"""
  27835. Class-aware wrapper for `::fz_xml_att()`.
  27836. Return the value of an attribute of an XML node.
  27837. NULL if the attribute doesn't exist.
  27838. """
  27839. return _mupdf.FzXml_fz_xml_att(self, att)
  27840. def fz_xml_att_alt(self, one, two):
  27841. r"""
  27842. Class-aware wrapper for `::fz_xml_att_alt()`.
  27843. Return the value of an attribute of an XML node.
  27844. If the first attribute doesn't exist, try the second.
  27845. NULL if neither attribute exists.
  27846. """
  27847. return _mupdf.FzXml_fz_xml_att_alt(self, one, two)
  27848. def fz_xml_att_eq(self, name, match):
  27849. r"""
  27850. Class-aware wrapper for `::fz_xml_att_eq()`.
  27851. Check for a matching attribute on an XML node.
  27852. If the node has the requested attribute (name), and the value
  27853. matches (match) then return 1. Otherwise, 0.
  27854. """
  27855. return _mupdf.FzXml_fz_xml_att_eq(self, name, match)
  27856. def fz_xml_down(self):
  27857. r"""
  27858. Class-aware wrapper for `::fz_xml_down()`.
  27859. Return first child of XML node.
  27860. """
  27861. return _mupdf.FzXml_fz_xml_down(self)
  27862. def fz_xml_find(self, tag):
  27863. r"""
  27864. Class-aware wrapper for `::fz_xml_find()`.
  27865. Search the siblings of XML nodes starting with item looking for
  27866. the first with the given tag.
  27867. Return NULL if none found.
  27868. """
  27869. return _mupdf.FzXml_fz_xml_find(self, tag)
  27870. def fz_xml_find_dfs(self, tag, att, match):
  27871. r"""
  27872. Class-aware wrapper for `::fz_xml_find_dfs()`.
  27873. Perform a depth first search from item, returning the first
  27874. child that matches the given tag (or any tag if tag is NULL),
  27875. with the given attribute (if att is non NULL), that matches
  27876. match (if match is non NULL).
  27877. """
  27878. return _mupdf.FzXml_fz_xml_find_dfs(self, tag, att, match)
  27879. def fz_xml_find_dfs_top(self, tag, att, match, top):
  27880. r"""
  27881. Class-aware wrapper for `::fz_xml_find_dfs_top()`.
  27882. Perform a depth first search from item, returning the first
  27883. child that matches the given tag (or any tag if tag is NULL),
  27884. with the given attribute (if att is non NULL), that matches
  27885. match (if match is non NULL). The search stops if it ever
  27886. reaches the top of the tree, or the declared 'top' item.
  27887. """
  27888. return _mupdf.FzXml_fz_xml_find_dfs_top(self, tag, att, match, top)
  27889. def fz_xml_find_down(self, tag):
  27890. r"""
  27891. Class-aware wrapper for `::fz_xml_find_down()`.
  27892. Search the siblings of XML nodes starting with the first child
  27893. of item looking for the first with the given tag.
  27894. Return NULL if none found.
  27895. """
  27896. return _mupdf.FzXml_fz_xml_find_down(self, tag)
  27897. def fz_xml_find_down_match(self, tag, att, match):
  27898. r"""
  27899. Class-aware wrapper for `::fz_xml_find_down_match()`.
  27900. Search the siblings of XML nodes starting with the first child
  27901. of item looking for the first with the given tag (or any tag if
  27902. tag is NULL), and with a matching attribute.
  27903. Return NULL if none found.
  27904. """
  27905. return _mupdf.FzXml_fz_xml_find_down_match(self, tag, att, match)
  27906. def fz_xml_find_match(self, tag, att, match):
  27907. r"""
  27908. Class-aware wrapper for `::fz_xml_find_match()`.
  27909. Search the siblings of XML nodes starting with item looking for
  27910. the first with the given tag (or any tag if tag is NULL), and
  27911. with a matching attribute.
  27912. Return NULL if none found.
  27913. """
  27914. return _mupdf.FzXml_fz_xml_find_match(self, tag, att, match)
  27915. def fz_xml_find_next(self, tag):
  27916. r"""
  27917. Class-aware wrapper for `::fz_xml_find_next()`.
  27918. Search the siblings of XML nodes starting with the first sibling
  27919. of item looking for the first with the given tag.
  27920. Return NULL if none found.
  27921. """
  27922. return _mupdf.FzXml_fz_xml_find_next(self, tag)
  27923. def fz_xml_find_next_dfs(self, tag, att, match):
  27924. r"""
  27925. Class-aware wrapper for `::fz_xml_find_next_dfs()`.
  27926. Perform a depth first search onwards from item, returning the first
  27927. child that matches the given tag (or any tag if tag is NULL),
  27928. with the given attribute (if att is non NULL), that matches
  27929. match (if match is non NULL).
  27930. """
  27931. return _mupdf.FzXml_fz_xml_find_next_dfs(self, tag, att, match)
  27932. def fz_xml_find_next_dfs_top(self, tag, att, match, top):
  27933. r"""
  27934. Class-aware wrapper for `::fz_xml_find_next_dfs_top()`.
  27935. Perform a depth first search onwards from item, returning the first
  27936. child that matches the given tag (or any tag if tag is NULL),
  27937. with the given attribute (if att is non NULL), that matches
  27938. match (if match is non NULL). The search stops if it ever reaches
  27939. the top of the tree, or the declared 'top' item.
  27940. """
  27941. return _mupdf.FzXml_fz_xml_find_next_dfs_top(self, tag, att, match, top)
  27942. def fz_xml_find_next_match(self, tag, att, match):
  27943. r"""
  27944. Class-aware wrapper for `::fz_xml_find_next_match()`.
  27945. Search the siblings of XML nodes starting with the first sibling
  27946. of item looking for the first with the given tag (or any tag if tag
  27947. is NULL), and with a matching attribute.
  27948. Return NULL if none found.
  27949. """
  27950. return _mupdf.FzXml_fz_xml_find_next_match(self, tag, att, match)
  27951. def fz_xml_is_tag(self, name):
  27952. r"""
  27953. Class-aware wrapper for `::fz_xml_is_tag()`.
  27954. Return true if the tag name matches.
  27955. """
  27956. return _mupdf.FzXml_fz_xml_is_tag(self, name)
  27957. def fz_xml_next(self):
  27958. r"""
  27959. Class-aware wrapper for `::fz_xml_next()`.
  27960. Return next sibling of XML node.
  27961. """
  27962. return _mupdf.FzXml_fz_xml_next(self)
  27963. def fz_xml_prev(self):
  27964. r"""
  27965. Class-aware wrapper for `::fz_xml_prev()`.
  27966. Return previous sibling of XML node.
  27967. """
  27968. return _mupdf.FzXml_fz_xml_prev(self)
  27969. def fz_xml_root(self):
  27970. r"""
  27971. Class-aware wrapper for `::fz_xml_root()`.
  27972. Return the topmost XML node of a document.
  27973. """
  27974. return _mupdf.FzXml_fz_xml_root(self)
  27975. def fz_xml_tag(self):
  27976. r"""
  27977. Class-aware wrapper for `::fz_xml_tag()`.
  27978. Return tag of XML node. Return NULL for text nodes.
  27979. """
  27980. return _mupdf.FzXml_fz_xml_tag(self)
  27981. def fz_xml_text(self):
  27982. r"""
  27983. Class-aware wrapper for `::fz_xml_text()`.
  27984. Return the text content of an XML node.
  27985. Return NULL if the node is a tag.
  27986. """
  27987. return _mupdf.FzXml_fz_xml_text(self)
  27988. def fz_xml_up(self):
  27989. r"""
  27990. Class-aware wrapper for `::fz_xml_up()`.
  27991. Return parent of XML node.
  27992. """
  27993. return _mupdf.FzXml_fz_xml_up(self)
  27994. def __init__(self, *args):
  27995. r"""
  27996. *Overload 1:*
  27997. == Constructors. Constructor using `fz_new_dom()`.
  27998. Make new xml dom root element.
  27999. |
  28000. *Overload 2:*
  28001. Constructor using `fz_new_dom_node()`.
  28002. Create a new dom node.
  28003. This will NOT be linked in yet.
  28004. |
  28005. *Overload 3:*
  28006. Copy constructor using `fz_keep_xml()`.
  28007. |
  28008. *Overload 4:*
  28009. Default constructor, sets `m_internal` to null.
  28010. |
  28011. *Overload 5:*
  28012. Constructor using raw copy of pre-existing `::fz_xml`.
  28013. """
  28014. _mupdf.FzXml_swiginit(self, _mupdf.new_FzXml(*args))
  28015. __swig_destroy__ = _mupdf.delete_FzXml
  28016. def m_internal_value(self):
  28017. r"""Return numerical value of .m_internal; helps with Python debugging."""
  28018. return _mupdf.FzXml_m_internal_value(self)
  28019. def __nonzero__(self):
  28020. return _mupdf.FzXml___nonzero__(self)
  28021. __bool__ = __nonzero__
  28022. m_internal = property(_mupdf.FzXml_m_internal_get, _mupdf.FzXml_m_internal_set, doc=r"""Pointer to wrapped data.""")
  28023. s_num_instances = property(_mupdf.FzXml_s_num_instances_get, _mupdf.FzXml_s_num_instances_set)
  28024. # Register FzXml in _mupdf:
  28025. _mupdf.FzXml_swigregister(FzXml)
  28026. class FzXmlDoc(object):
  28027. r"""Wrapper class for struct `fz_xml_doc`. Not copyable or assignable."""
  28028. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  28029. __repr__ = _swig_repr
  28030. def __init__(self, *args):
  28031. r"""
  28032. *Overload 1:*
  28033. Default constructor, sets `m_internal` to null.
  28034. |
  28035. *Overload 2:*
  28036. Constructor using raw copy of pre-existing `::fz_xml_doc`.
  28037. """
  28038. _mupdf.FzXmlDoc_swiginit(self, _mupdf.new_FzXmlDoc(*args))
  28039. __swig_destroy__ = _mupdf.delete_FzXmlDoc
  28040. def m_internal_value(self):
  28041. r"""Return numerical value of .m_internal; helps with Python debugging."""
  28042. return _mupdf.FzXmlDoc_m_internal_value(self)
  28043. def __nonzero__(self):
  28044. return _mupdf.FzXmlDoc___nonzero__(self)
  28045. __bool__ = __nonzero__
  28046. m_internal = property(_mupdf.FzXmlDoc_m_internal_get, _mupdf.FzXmlDoc_m_internal_set, doc=r"""Pointer to wrapped data.""")
  28047. s_num_instances = property(_mupdf.FzXmlDoc_s_num_instances_get, _mupdf.FzXmlDoc_s_num_instances_set)
  28048. # Register FzXmlDoc in _mupdf:
  28049. _mupdf.FzXmlDoc_swigregister(FzXmlDoc)
  28050. class FzZipWriter(object):
  28051. r"""
  28052. Wrapper class for struct `fz_zip_writer`. Not copyable or assignable.
  28053. fz_zip_writer offers methods for creating and writing zip files.
  28054. It can be seen as the reverse of the fz_archive zip
  28055. implementation.
  28056. """
  28057. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  28058. __repr__ = _swig_repr
  28059. def fz_close_zip_writer(self):
  28060. r"""
  28061. Class-aware wrapper for `::fz_close_zip_writer()`.
  28062. Close the zip file for writing.
  28063. This flushes any pending data to the file. This can throw
  28064. exceptions.
  28065. """
  28066. return _mupdf.FzZipWriter_fz_close_zip_writer(self)
  28067. def fz_write_zip_entry(self, name, buf, compress):
  28068. r"""
  28069. Class-aware wrapper for `::fz_write_zip_entry()`.
  28070. Given a buffer of data, (optionally) compress it, and add it to
  28071. the zip file with the given name.
  28072. """
  28073. return _mupdf.FzZipWriter_fz_write_zip_entry(self, name, buf, compress)
  28074. def __init__(self, *args):
  28075. r"""
  28076. *Overload 1:*
  28077. == Constructors. Constructor using `fz_new_zip_writer()`.
  28078. Create a new zip writer that writes to a given file.
  28079. Open an archive using a seekable stream object rather than
  28080. opening a file or directory on disk.
  28081. |
  28082. *Overload 2:*
  28083. Constructor using `fz_new_zip_writer_with_output()`.
  28084. Create a new zip writer that writes to a given output stream.
  28085. Ownership of out passes in immediately upon calling this function.
  28086. The caller should never drop the fz_output, even if this function throws
  28087. an exception.
  28088. |
  28089. *Overload 3:*
  28090. Default constructor, sets `m_internal` to null.
  28091. |
  28092. *Overload 4:*
  28093. Constructor using raw copy of pre-existing `::fz_zip_writer`.
  28094. """
  28095. _mupdf.FzZipWriter_swiginit(self, _mupdf.new_FzZipWriter(*args))
  28096. __swig_destroy__ = _mupdf.delete_FzZipWriter
  28097. def m_internal_value(self):
  28098. r"""Return numerical value of .m_internal; helps with Python debugging."""
  28099. return _mupdf.FzZipWriter_m_internal_value(self)
  28100. def __nonzero__(self):
  28101. return _mupdf.FzZipWriter___nonzero__(self)
  28102. __bool__ = __nonzero__
  28103. m_internal = property(_mupdf.FzZipWriter_m_internal_get, _mupdf.FzZipWriter_m_internal_set, doc=r"""Pointer to wrapped data.""")
  28104. s_num_instances = property(_mupdf.FzZipWriter_s_num_instances_get, _mupdf.FzZipWriter_s_num_instances_set)
  28105. # Register FzZipWriter in _mupdf:
  28106. _mupdf.FzZipWriter_swigregister(FzZipWriter)
  28107. class PdfAlertEvent(object):
  28108. r"""Wrapper class for struct `pdf_alert_event`. Not copyable or assignable."""
  28109. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  28110. __repr__ = _swig_repr
  28111. def __init__(self, *args):
  28112. r"""
  28113. *Overload 1:*
  28114. Default constructor, sets `m_internal` to null.
  28115. |
  28116. *Overload 2:*
  28117. Constructor using raw copy of pre-existing `::pdf_alert_event`.
  28118. """
  28119. _mupdf.PdfAlertEvent_swiginit(self, _mupdf.new_PdfAlertEvent(*args))
  28120. __swig_destroy__ = _mupdf.delete_PdfAlertEvent
  28121. def m_internal_value(self):
  28122. r"""Return numerical value of .m_internal; helps with Python debugging."""
  28123. return _mupdf.PdfAlertEvent_m_internal_value(self)
  28124. def __nonzero__(self):
  28125. return _mupdf.PdfAlertEvent___nonzero__(self)
  28126. __bool__ = __nonzero__
  28127. m_internal = property(_mupdf.PdfAlertEvent_m_internal_get, _mupdf.PdfAlertEvent_m_internal_set, doc=r"""Pointer to wrapped data.""")
  28128. s_num_instances = property(_mupdf.PdfAlertEvent_s_num_instances_get, _mupdf.PdfAlertEvent_s_num_instances_set)
  28129. # Register PdfAlertEvent in _mupdf:
  28130. _mupdf.PdfAlertEvent_swigregister(PdfAlertEvent)
  28131. class PdfAnnot(object):
  28132. r"""Wrapper class for struct `pdf_annot`."""
  28133. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  28134. __repr__ = _swig_repr
  28135. def pdf_add_annot_border_dash_item(self, length):
  28136. r"""Class-aware wrapper for `::pdf_add_annot_border_dash_item()`."""
  28137. return _mupdf.PdfAnnot_pdf_add_annot_border_dash_item(self, length)
  28138. def pdf_add_annot_ink_list_stroke(self):
  28139. r"""Class-aware wrapper for `::pdf_add_annot_ink_list_stroke()`."""
  28140. return _mupdf.PdfAnnot_pdf_add_annot_ink_list_stroke(self)
  28141. def pdf_add_annot_ink_list_stroke_vertex(self, p):
  28142. r"""Class-aware wrapper for `::pdf_add_annot_ink_list_stroke_vertex()`."""
  28143. return _mupdf.PdfAnnot_pdf_add_annot_ink_list_stroke_vertex(self, p)
  28144. def pdf_add_annot_quad_point(self, quad):
  28145. r"""Class-aware wrapper for `::pdf_add_annot_quad_point()`."""
  28146. return _mupdf.PdfAnnot_pdf_add_annot_quad_point(self, quad)
  28147. def pdf_add_annot_vertex(self, p):
  28148. r"""Class-aware wrapper for `::pdf_add_annot_vertex()`."""
  28149. return _mupdf.PdfAnnot_pdf_add_annot_vertex(self, p)
  28150. def pdf_annot_MK_BC(self, n, color):
  28151. r"""
  28152. Class-aware wrapper for `::pdf_annot_MK_BC()`.
  28153. This method has out-params. Python/C# wrappers look like:
  28154. `pdf_annot_MK_BC(float color[4])` => int n
  28155. """
  28156. return _mupdf.PdfAnnot_pdf_annot_MK_BC(self, n, color)
  28157. def pdf_annot_MK_BC_rgb(self, rgb):
  28158. r"""Class-aware wrapper for `::pdf_annot_MK_BC_rgb()`."""
  28159. return _mupdf.PdfAnnot_pdf_annot_MK_BC_rgb(self, rgb)
  28160. def pdf_annot_MK_BG(self, n, color):
  28161. r"""
  28162. Class-aware wrapper for `::pdf_annot_MK_BG()`.
  28163. This method has out-params. Python/C# wrappers look like:
  28164. `pdf_annot_MK_BG(float color[4])` => int n
  28165. """
  28166. return _mupdf.PdfAnnot_pdf_annot_MK_BG(self, n, color)
  28167. def pdf_annot_MK_BG_rgb(self, rgb):
  28168. r"""Class-aware wrapper for `::pdf_annot_MK_BG_rgb()`."""
  28169. return _mupdf.PdfAnnot_pdf_annot_MK_BG_rgb(self, rgb)
  28170. def pdf_annot_active(self):
  28171. r"""Class-aware wrapper for `::pdf_annot_active()`."""
  28172. return _mupdf.PdfAnnot_pdf_annot_active(self)
  28173. def pdf_annot_ap(self):
  28174. r"""Class-aware wrapper for `::pdf_annot_ap()`."""
  28175. return _mupdf.PdfAnnot_pdf_annot_ap(self)
  28176. def pdf_annot_author(self):
  28177. r"""Class-aware wrapper for `::pdf_annot_author()`."""
  28178. return _mupdf.PdfAnnot_pdf_annot_author(self)
  28179. def pdf_annot_border(self):
  28180. r"""Class-aware wrapper for `::pdf_annot_border()`."""
  28181. return _mupdf.PdfAnnot_pdf_annot_border(self)
  28182. def pdf_annot_border_dash_count(self):
  28183. r"""Class-aware wrapper for `::pdf_annot_border_dash_count()`."""
  28184. return _mupdf.PdfAnnot_pdf_annot_border_dash_count(self)
  28185. def pdf_annot_border_dash_item(self, i):
  28186. r"""Class-aware wrapper for `::pdf_annot_border_dash_item()`."""
  28187. return _mupdf.PdfAnnot_pdf_annot_border_dash_item(self, i)
  28188. def pdf_annot_border_effect(self):
  28189. r"""Class-aware wrapper for `::pdf_annot_border_effect()`."""
  28190. return _mupdf.PdfAnnot_pdf_annot_border_effect(self)
  28191. def pdf_annot_border_effect_intensity(self):
  28192. r"""Class-aware wrapper for `::pdf_annot_border_effect_intensity()`."""
  28193. return _mupdf.PdfAnnot_pdf_annot_border_effect_intensity(self)
  28194. def pdf_annot_border_style(self):
  28195. r"""Class-aware wrapper for `::pdf_annot_border_style()`."""
  28196. return _mupdf.PdfAnnot_pdf_annot_border_style(self)
  28197. def pdf_annot_border_width(self):
  28198. r"""Class-aware wrapper for `::pdf_annot_border_width()`."""
  28199. return _mupdf.PdfAnnot_pdf_annot_border_width(self)
  28200. def pdf_annot_callout_point(self):
  28201. r"""Class-aware wrapper for `::pdf_annot_callout_point()`."""
  28202. return _mupdf.PdfAnnot_pdf_annot_callout_point(self)
  28203. def pdf_annot_callout_style(self):
  28204. r"""Class-aware wrapper for `::pdf_annot_callout_style()`."""
  28205. return _mupdf.PdfAnnot_pdf_annot_callout_style(self)
  28206. def pdf_annot_color(self, n, color):
  28207. r"""
  28208. Class-aware wrapper for `::pdf_annot_color()`.
  28209. This method has out-params. Python/C# wrappers look like:
  28210. `pdf_annot_color(float color[4])` => int n
  28211. """
  28212. return _mupdf.PdfAnnot_pdf_annot_color(self, n, color)
  28213. def pdf_annot_contents(self):
  28214. r"""Class-aware wrapper for `::pdf_annot_contents()`."""
  28215. return _mupdf.PdfAnnot_pdf_annot_contents(self)
  28216. def pdf_annot_creation_date(self):
  28217. r"""Class-aware wrapper for `::pdf_annot_creation_date()`."""
  28218. return _mupdf.PdfAnnot_pdf_annot_creation_date(self)
  28219. def pdf_annot_default_appearance(self, font, size, n, color):
  28220. r"""
  28221. Class-aware wrapper for `::pdf_annot_default_appearance()`.
  28222. This method has out-params. Python/C# wrappers look like:
  28223. `pdf_annot_default_appearance(float color[4])` => `(const char *font, float size, int n)`
  28224. """
  28225. return _mupdf.PdfAnnot_pdf_annot_default_appearance(self, font, size, n, color)
  28226. def pdf_annot_default_appearance_unmapped(self, font_name, font_name_len, size, n, color):
  28227. r"""
  28228. Class-aware wrapper for `::pdf_annot_default_appearance_unmapped()`.
  28229. This method has out-params. Python/C# wrappers look like:
  28230. `pdf_annot_default_appearance_unmapped(char *font_name, int font_name_len, float color[4])` => `(float size, int n)`
  28231. """
  28232. return _mupdf.PdfAnnot_pdf_annot_default_appearance_unmapped(self, font_name, font_name_len, size, n, color)
  28233. def pdf_annot_ensure_local_xref(self):
  28234. r"""Class-aware wrapper for `::pdf_annot_ensure_local_xref()`."""
  28235. return _mupdf.PdfAnnot_pdf_annot_ensure_local_xref(self)
  28236. def pdf_annot_event_blur(self):
  28237. r"""Class-aware wrapper for `::pdf_annot_event_blur()`."""
  28238. return _mupdf.PdfAnnot_pdf_annot_event_blur(self)
  28239. def pdf_annot_event_down(self):
  28240. r"""Class-aware wrapper for `::pdf_annot_event_down()`."""
  28241. return _mupdf.PdfAnnot_pdf_annot_event_down(self)
  28242. def pdf_annot_event_enter(self):
  28243. r"""Class-aware wrapper for `::pdf_annot_event_enter()`."""
  28244. return _mupdf.PdfAnnot_pdf_annot_event_enter(self)
  28245. def pdf_annot_event_exit(self):
  28246. r"""Class-aware wrapper for `::pdf_annot_event_exit()`."""
  28247. return _mupdf.PdfAnnot_pdf_annot_event_exit(self)
  28248. def pdf_annot_event_focus(self):
  28249. r"""Class-aware wrapper for `::pdf_annot_event_focus()`."""
  28250. return _mupdf.PdfAnnot_pdf_annot_event_focus(self)
  28251. def pdf_annot_event_page_close(self):
  28252. r"""Class-aware wrapper for `::pdf_annot_event_page_close()`."""
  28253. return _mupdf.PdfAnnot_pdf_annot_event_page_close(self)
  28254. def pdf_annot_event_page_invisible(self):
  28255. r"""Class-aware wrapper for `::pdf_annot_event_page_invisible()`."""
  28256. return _mupdf.PdfAnnot_pdf_annot_event_page_invisible(self)
  28257. def pdf_annot_event_page_open(self):
  28258. r"""Class-aware wrapper for `::pdf_annot_event_page_open()`."""
  28259. return _mupdf.PdfAnnot_pdf_annot_event_page_open(self)
  28260. def pdf_annot_event_page_visible(self):
  28261. r"""Class-aware wrapper for `::pdf_annot_event_page_visible()`."""
  28262. return _mupdf.PdfAnnot_pdf_annot_event_page_visible(self)
  28263. def pdf_annot_event_up(self):
  28264. r"""Class-aware wrapper for `::pdf_annot_event_up()`."""
  28265. return _mupdf.PdfAnnot_pdf_annot_event_up(self)
  28266. def pdf_annot_field_flags(self):
  28267. r"""Class-aware wrapper for `::pdf_annot_field_flags()`."""
  28268. return _mupdf.PdfAnnot_pdf_annot_field_flags(self)
  28269. def pdf_annot_field_label(self):
  28270. r"""Class-aware wrapper for `::pdf_annot_field_label()`."""
  28271. return _mupdf.PdfAnnot_pdf_annot_field_label(self)
  28272. def pdf_annot_field_value(self):
  28273. r"""Class-aware wrapper for `::pdf_annot_field_value()`."""
  28274. return _mupdf.PdfAnnot_pdf_annot_field_value(self)
  28275. def pdf_annot_filespec(self):
  28276. r"""Class-aware wrapper for `::pdf_annot_filespec()`."""
  28277. return _mupdf.PdfAnnot_pdf_annot_filespec(self)
  28278. def pdf_annot_flags(self):
  28279. r"""Class-aware wrapper for `::pdf_annot_flags()`."""
  28280. return _mupdf.PdfAnnot_pdf_annot_flags(self)
  28281. def pdf_annot_has_author(self):
  28282. r"""Class-aware wrapper for `::pdf_annot_has_author()`."""
  28283. return _mupdf.PdfAnnot_pdf_annot_has_author(self)
  28284. def pdf_annot_has_border(self):
  28285. r"""Class-aware wrapper for `::pdf_annot_has_border()`."""
  28286. return _mupdf.PdfAnnot_pdf_annot_has_border(self)
  28287. def pdf_annot_has_border_effect(self):
  28288. r"""Class-aware wrapper for `::pdf_annot_has_border_effect()`."""
  28289. return _mupdf.PdfAnnot_pdf_annot_has_border_effect(self)
  28290. def pdf_annot_has_callout(self):
  28291. r"""Class-aware wrapper for `::pdf_annot_has_callout()`."""
  28292. return _mupdf.PdfAnnot_pdf_annot_has_callout(self)
  28293. def pdf_annot_has_default_appearance(self):
  28294. r"""Class-aware wrapper for `::pdf_annot_has_default_appearance()`."""
  28295. return _mupdf.PdfAnnot_pdf_annot_has_default_appearance(self)
  28296. def pdf_annot_has_filespec(self):
  28297. r"""Class-aware wrapper for `::pdf_annot_has_filespec()`."""
  28298. return _mupdf.PdfAnnot_pdf_annot_has_filespec(self)
  28299. def pdf_annot_has_icon_name(self):
  28300. r"""Class-aware wrapper for `::pdf_annot_has_icon_name()`."""
  28301. return _mupdf.PdfAnnot_pdf_annot_has_icon_name(self)
  28302. def pdf_annot_has_ink_list(self):
  28303. r"""Class-aware wrapper for `::pdf_annot_has_ink_list()`."""
  28304. return _mupdf.PdfAnnot_pdf_annot_has_ink_list(self)
  28305. def pdf_annot_has_intent(self):
  28306. r"""Class-aware wrapper for `::pdf_annot_has_intent()`."""
  28307. return _mupdf.PdfAnnot_pdf_annot_has_intent(self)
  28308. def pdf_annot_has_interior_color(self):
  28309. r"""Class-aware wrapper for `::pdf_annot_has_interior_color()`."""
  28310. return _mupdf.PdfAnnot_pdf_annot_has_interior_color(self)
  28311. def pdf_annot_has_line(self):
  28312. r"""Class-aware wrapper for `::pdf_annot_has_line()`."""
  28313. return _mupdf.PdfAnnot_pdf_annot_has_line(self)
  28314. def pdf_annot_has_line_ending_styles(self):
  28315. r"""Class-aware wrapper for `::pdf_annot_has_line_ending_styles()`."""
  28316. return _mupdf.PdfAnnot_pdf_annot_has_line_ending_styles(self)
  28317. def pdf_annot_has_open(self):
  28318. r"""Class-aware wrapper for `::pdf_annot_has_open()`."""
  28319. return _mupdf.PdfAnnot_pdf_annot_has_open(self)
  28320. def pdf_annot_has_popup(self):
  28321. r"""Class-aware wrapper for `::pdf_annot_has_popup()`."""
  28322. return _mupdf.PdfAnnot_pdf_annot_has_popup(self)
  28323. def pdf_annot_has_quad_points(self):
  28324. r"""Class-aware wrapper for `::pdf_annot_has_quad_points()`."""
  28325. return _mupdf.PdfAnnot_pdf_annot_has_quad_points(self)
  28326. def pdf_annot_has_quadding(self):
  28327. r"""Class-aware wrapper for `::pdf_annot_has_quadding()`."""
  28328. return _mupdf.PdfAnnot_pdf_annot_has_quadding(self)
  28329. def pdf_annot_has_rect(self):
  28330. r"""Class-aware wrapper for `::pdf_annot_has_rect()`."""
  28331. return _mupdf.PdfAnnot_pdf_annot_has_rect(self)
  28332. def pdf_annot_has_rich_contents(self):
  28333. r"""Class-aware wrapper for `::pdf_annot_has_rich_contents()`."""
  28334. return _mupdf.PdfAnnot_pdf_annot_has_rich_contents(self)
  28335. def pdf_annot_has_rich_defaults(self):
  28336. r"""Class-aware wrapper for `::pdf_annot_has_rich_defaults()`."""
  28337. return _mupdf.PdfAnnot_pdf_annot_has_rich_defaults(self)
  28338. def pdf_annot_has_vertices(self):
  28339. r"""Class-aware wrapper for `::pdf_annot_has_vertices()`."""
  28340. return _mupdf.PdfAnnot_pdf_annot_has_vertices(self)
  28341. def pdf_annot_hidden_for_editing(self):
  28342. r"""Class-aware wrapper for `::pdf_annot_hidden_for_editing()`."""
  28343. return _mupdf.PdfAnnot_pdf_annot_hidden_for_editing(self)
  28344. def pdf_annot_hot(self):
  28345. r"""Class-aware wrapper for `::pdf_annot_hot()`."""
  28346. return _mupdf.PdfAnnot_pdf_annot_hot(self)
  28347. def pdf_annot_icon_name(self):
  28348. r"""Class-aware wrapper for `::pdf_annot_icon_name()`."""
  28349. return _mupdf.PdfAnnot_pdf_annot_icon_name(self)
  28350. def pdf_annot_ink_list_count(self):
  28351. r"""Class-aware wrapper for `::pdf_annot_ink_list_count()`."""
  28352. return _mupdf.PdfAnnot_pdf_annot_ink_list_count(self)
  28353. def pdf_annot_ink_list_stroke_count(self, i):
  28354. r"""Class-aware wrapper for `::pdf_annot_ink_list_stroke_count()`."""
  28355. return _mupdf.PdfAnnot_pdf_annot_ink_list_stroke_count(self, i)
  28356. def pdf_annot_ink_list_stroke_vertex(self, i, k):
  28357. r"""Class-aware wrapper for `::pdf_annot_ink_list_stroke_vertex()`."""
  28358. return _mupdf.PdfAnnot_pdf_annot_ink_list_stroke_vertex(self, i, k)
  28359. def pdf_annot_intent(self):
  28360. r"""Class-aware wrapper for `::pdf_annot_intent()`."""
  28361. return _mupdf.PdfAnnot_pdf_annot_intent(self)
  28362. def pdf_annot_interior_color(self, n, color):
  28363. r"""
  28364. Class-aware wrapper for `::pdf_annot_interior_color()`.
  28365. This method has out-params. Python/C# wrappers look like:
  28366. `pdf_annot_interior_color(float color[4])` => int n
  28367. """
  28368. return _mupdf.PdfAnnot_pdf_annot_interior_color(self, n, color)
  28369. def pdf_annot_is_open(self):
  28370. r"""Class-aware wrapper for `::pdf_annot_is_open()`."""
  28371. return _mupdf.PdfAnnot_pdf_annot_is_open(self)
  28372. def pdf_annot_is_standard_stamp(self):
  28373. r"""Class-aware wrapper for `::pdf_annot_is_standard_stamp()`."""
  28374. return _mupdf.PdfAnnot_pdf_annot_is_standard_stamp(self)
  28375. def pdf_annot_line(self, a, b):
  28376. r"""Class-aware wrapper for `::pdf_annot_line()`."""
  28377. return _mupdf.PdfAnnot_pdf_annot_line(self, a, b)
  28378. def pdf_annot_line_caption(self):
  28379. r"""Class-aware wrapper for `::pdf_annot_line_caption()`."""
  28380. return _mupdf.PdfAnnot_pdf_annot_line_caption(self)
  28381. def pdf_annot_line_caption_offset(self):
  28382. r"""Class-aware wrapper for `::pdf_annot_line_caption_offset()`."""
  28383. return _mupdf.PdfAnnot_pdf_annot_line_caption_offset(self)
  28384. def pdf_annot_line_end_style(self):
  28385. r"""Class-aware wrapper for `::pdf_annot_line_end_style()`."""
  28386. return _mupdf.PdfAnnot_pdf_annot_line_end_style(self)
  28387. def pdf_annot_line_ending_styles(self, start_style, end_style):
  28388. r"""
  28389. Class-aware wrapper for `::pdf_annot_line_ending_styles()`.
  28390. This method has out-params. Python/C# wrappers look like:
  28391. `pdf_annot_line_ending_styles()` => `(enum pdf_line_ending start_style, enum pdf_line_ending end_style)`
  28392. """
  28393. return _mupdf.PdfAnnot_pdf_annot_line_ending_styles(self, start_style, end_style)
  28394. def pdf_annot_line_leader(self):
  28395. r"""Class-aware wrapper for `::pdf_annot_line_leader()`."""
  28396. return _mupdf.PdfAnnot_pdf_annot_line_leader(self)
  28397. def pdf_annot_line_leader_extension(self):
  28398. r"""Class-aware wrapper for `::pdf_annot_line_leader_extension()`."""
  28399. return _mupdf.PdfAnnot_pdf_annot_line_leader_extension(self)
  28400. def pdf_annot_line_leader_offset(self):
  28401. r"""Class-aware wrapper for `::pdf_annot_line_leader_offset()`."""
  28402. return _mupdf.PdfAnnot_pdf_annot_line_leader_offset(self)
  28403. def pdf_annot_line_start_style(self):
  28404. r"""Class-aware wrapper for `::pdf_annot_line_start_style()`."""
  28405. return _mupdf.PdfAnnot_pdf_annot_line_start_style(self)
  28406. def pdf_annot_modification_date(self):
  28407. r"""Class-aware wrapper for `::pdf_annot_modification_date()`."""
  28408. return _mupdf.PdfAnnot_pdf_annot_modification_date(self)
  28409. def pdf_annot_needs_resynthesis(self):
  28410. r"""Class-aware wrapper for `::pdf_annot_needs_resynthesis()`."""
  28411. return _mupdf.PdfAnnot_pdf_annot_needs_resynthesis(self)
  28412. def pdf_annot_obj(self):
  28413. r"""Class-aware wrapper for `::pdf_annot_obj()`."""
  28414. return _mupdf.PdfAnnot_pdf_annot_obj(self)
  28415. def pdf_annot_opacity(self):
  28416. r"""Class-aware wrapper for `::pdf_annot_opacity()`."""
  28417. return _mupdf.PdfAnnot_pdf_annot_opacity(self)
  28418. def pdf_annot_page(self):
  28419. r"""Class-aware wrapper for `::pdf_annot_page()`."""
  28420. return _mupdf.PdfAnnot_pdf_annot_page(self)
  28421. def pdf_annot_pop_and_discard_local_xref(self):
  28422. r"""Class-aware wrapper for `::pdf_annot_pop_and_discard_local_xref()`."""
  28423. return _mupdf.PdfAnnot_pdf_annot_pop_and_discard_local_xref(self)
  28424. def pdf_annot_pop_local_xref(self):
  28425. r"""Class-aware wrapper for `::pdf_annot_pop_local_xref()`."""
  28426. return _mupdf.PdfAnnot_pdf_annot_pop_local_xref(self)
  28427. def pdf_annot_popup(self):
  28428. r"""Class-aware wrapper for `::pdf_annot_popup()`."""
  28429. return _mupdf.PdfAnnot_pdf_annot_popup(self)
  28430. def pdf_annot_push_local_xref(self):
  28431. r"""Class-aware wrapper for `::pdf_annot_push_local_xref()`."""
  28432. return _mupdf.PdfAnnot_pdf_annot_push_local_xref(self)
  28433. def pdf_annot_quad_point(self, i):
  28434. r"""Class-aware wrapper for `::pdf_annot_quad_point()`."""
  28435. return _mupdf.PdfAnnot_pdf_annot_quad_point(self, i)
  28436. def pdf_annot_quad_point_count(self):
  28437. r"""Class-aware wrapper for `::pdf_annot_quad_point_count()`."""
  28438. return _mupdf.PdfAnnot_pdf_annot_quad_point_count(self)
  28439. def pdf_annot_quadding(self):
  28440. r"""Class-aware wrapper for `::pdf_annot_quadding()`."""
  28441. return _mupdf.PdfAnnot_pdf_annot_quadding(self)
  28442. def pdf_annot_rect(self):
  28443. r"""Class-aware wrapper for `::pdf_annot_rect()`."""
  28444. return _mupdf.PdfAnnot_pdf_annot_rect(self)
  28445. def pdf_annot_request_resynthesis(self):
  28446. r"""Class-aware wrapper for `::pdf_annot_request_resynthesis()`."""
  28447. return _mupdf.PdfAnnot_pdf_annot_request_resynthesis(self)
  28448. def pdf_annot_request_synthesis(self):
  28449. r"""Class-aware wrapper for `::pdf_annot_request_synthesis()`."""
  28450. return _mupdf.PdfAnnot_pdf_annot_request_synthesis(self)
  28451. def pdf_annot_rich_contents(self):
  28452. r"""Class-aware wrapper for `::pdf_annot_rich_contents()`."""
  28453. return _mupdf.PdfAnnot_pdf_annot_rich_contents(self)
  28454. def pdf_annot_rich_defaults(self):
  28455. r"""Class-aware wrapper for `::pdf_annot_rich_defaults()`."""
  28456. return _mupdf.PdfAnnot_pdf_annot_rich_defaults(self)
  28457. def pdf_annot_stamp_image_obj(self):
  28458. r"""Class-aware wrapper for `::pdf_annot_stamp_image_obj()`."""
  28459. return _mupdf.PdfAnnot_pdf_annot_stamp_image_obj(self)
  28460. def pdf_annot_transform(self):
  28461. r"""Class-aware wrapper for `::pdf_annot_transform()`."""
  28462. return _mupdf.PdfAnnot_pdf_annot_transform(self)
  28463. def pdf_annot_type(self):
  28464. r"""Class-aware wrapper for `::pdf_annot_type()`."""
  28465. return _mupdf.PdfAnnot_pdf_annot_type(self)
  28466. def pdf_annot_vertex(self, i):
  28467. r"""Class-aware wrapper for `::pdf_annot_vertex()`."""
  28468. return _mupdf.PdfAnnot_pdf_annot_vertex(self, i)
  28469. def pdf_annot_vertex_count(self):
  28470. r"""Class-aware wrapper for `::pdf_annot_vertex_count()`."""
  28471. return _mupdf.PdfAnnot_pdf_annot_vertex_count(self)
  28472. def pdf_apply_redaction(self, opts):
  28473. r"""Class-aware wrapper for `::pdf_apply_redaction()`."""
  28474. return _mupdf.PdfAnnot_pdf_apply_redaction(self, opts)
  28475. def pdf_bound_annot(self):
  28476. r"""Class-aware wrapper for `::pdf_bound_annot()`."""
  28477. return _mupdf.PdfAnnot_pdf_bound_annot(self)
  28478. def pdf_bound_widget(self):
  28479. r"""Class-aware wrapper for `::pdf_bound_widget()`."""
  28480. return _mupdf.PdfAnnot_pdf_bound_widget(self)
  28481. def pdf_choice_widget_is_multiselect(self):
  28482. r"""Class-aware wrapper for `::pdf_choice_widget_is_multiselect()`."""
  28483. return _mupdf.PdfAnnot_pdf_choice_widget_is_multiselect(self)
  28484. def pdf_choice_widget_options(self, exportval, opts):
  28485. r"""Class-aware wrapper for `::pdf_choice_widget_options()`."""
  28486. return _mupdf.PdfAnnot_pdf_choice_widget_options(self, exportval, opts)
  28487. def pdf_choice_widget_options2(self, exportval):
  28488. r"""
  28489. Class-aware wrapper for `::pdf_choice_widget_options2()`. Swig-friendly wrapper for pdf_choice_widget_options(), returns the
  28490. options directly in a vector.
  28491. """
  28492. return _mupdf.PdfAnnot_pdf_choice_widget_options2(self, exportval)
  28493. def pdf_choice_widget_set_value(self, n, opts):
  28494. r"""Class-aware wrapper for `::pdf_choice_widget_set_value()`."""
  28495. return _mupdf.PdfAnnot_pdf_choice_widget_set_value(self, n, opts)
  28496. def pdf_choice_widget_value(self, opts):
  28497. r"""Class-aware wrapper for `::pdf_choice_widget_value()`."""
  28498. return _mupdf.PdfAnnot_pdf_choice_widget_value(self, opts)
  28499. def pdf_clear_annot_border_dash(self):
  28500. r"""Class-aware wrapper for `::pdf_clear_annot_border_dash()`."""
  28501. return _mupdf.PdfAnnot_pdf_clear_annot_border_dash(self)
  28502. def pdf_clear_annot_ink_list(self):
  28503. r"""Class-aware wrapper for `::pdf_clear_annot_ink_list()`."""
  28504. return _mupdf.PdfAnnot_pdf_clear_annot_ink_list(self)
  28505. def pdf_clear_annot_quad_points(self):
  28506. r"""Class-aware wrapper for `::pdf_clear_annot_quad_points()`."""
  28507. return _mupdf.PdfAnnot_pdf_clear_annot_quad_points(self)
  28508. def pdf_clear_annot_vertices(self):
  28509. r"""Class-aware wrapper for `::pdf_clear_annot_vertices()`."""
  28510. return _mupdf.PdfAnnot_pdf_clear_annot_vertices(self)
  28511. def pdf_clear_signature(self):
  28512. r"""Class-aware wrapper for `::pdf_clear_signature()`."""
  28513. return _mupdf.PdfAnnot_pdf_clear_signature(self)
  28514. def pdf_dirty_annot(self):
  28515. r"""Class-aware wrapper for `::pdf_dirty_annot()`."""
  28516. return _mupdf.PdfAnnot_pdf_dirty_annot(self)
  28517. def pdf_edit_text_field_value(self, value, change, selStart, selEnd, newvalue):
  28518. r"""
  28519. Class-aware wrapper for `::pdf_edit_text_field_value()`.
  28520. This method has out-params. Python/C# wrappers look like:
  28521. `pdf_edit_text_field_value(const char *value, const char *change)` => `(int, int selStart, int selEnd, char *newvalue)`
  28522. """
  28523. return _mupdf.PdfAnnot_pdf_edit_text_field_value(self, value, change, selStart, selEnd, newvalue)
  28524. def pdf_get_widget_editing_state(self):
  28525. r"""Class-aware wrapper for `::pdf_get_widget_editing_state()`."""
  28526. return _mupdf.PdfAnnot_pdf_get_widget_editing_state(self)
  28527. def pdf_incremental_change_since_signing_widget(self):
  28528. r"""Class-aware wrapper for `::pdf_incremental_change_since_signing_widget()`."""
  28529. return _mupdf.PdfAnnot_pdf_incremental_change_since_signing_widget(self)
  28530. def pdf_new_display_list_from_annot(self):
  28531. r"""Class-aware wrapper for `::pdf_new_display_list_from_annot()`."""
  28532. return _mupdf.PdfAnnot_pdf_new_display_list_from_annot(self)
  28533. def pdf_new_pixmap_from_annot(self, ctm, cs, seps, alpha):
  28534. r"""Class-aware wrapper for `::pdf_new_pixmap_from_annot()`."""
  28535. return _mupdf.PdfAnnot_pdf_new_pixmap_from_annot(self, ctm, cs, seps, alpha)
  28536. def pdf_next_annot(self):
  28537. r"""Class-aware wrapper for `::pdf_next_annot()`."""
  28538. return _mupdf.PdfAnnot_pdf_next_annot(self)
  28539. def pdf_next_widget(self):
  28540. r"""Class-aware wrapper for `::pdf_next_widget()`."""
  28541. return _mupdf.PdfAnnot_pdf_next_widget(self)
  28542. def pdf_run_annot(self, dev, ctm, cookie):
  28543. r"""Class-aware wrapper for `::pdf_run_annot()`."""
  28544. return _mupdf.PdfAnnot_pdf_run_annot(self, dev, ctm, cookie)
  28545. def pdf_set_annot_active(self, active):
  28546. r"""Class-aware wrapper for `::pdf_set_annot_active()`."""
  28547. return _mupdf.PdfAnnot_pdf_set_annot_active(self, active)
  28548. def pdf_set_annot_appearance(self, appearance, state, ctm, bbox, res, contents):
  28549. r"""Class-aware wrapper for `::pdf_set_annot_appearance()`."""
  28550. return _mupdf.PdfAnnot_pdf_set_annot_appearance(self, appearance, state, ctm, bbox, res, contents)
  28551. def pdf_set_annot_appearance_from_display_list(self, appearance, state, ctm, list):
  28552. r"""Class-aware wrapper for `::pdf_set_annot_appearance_from_display_list()`."""
  28553. return _mupdf.PdfAnnot_pdf_set_annot_appearance_from_display_list(self, appearance, state, ctm, list)
  28554. def pdf_set_annot_author(self, author):
  28555. r"""Class-aware wrapper for `::pdf_set_annot_author()`."""
  28556. return _mupdf.PdfAnnot_pdf_set_annot_author(self, author)
  28557. def pdf_set_annot_border(self, width):
  28558. r"""Class-aware wrapper for `::pdf_set_annot_border()`."""
  28559. return _mupdf.PdfAnnot_pdf_set_annot_border(self, width)
  28560. def pdf_set_annot_border_effect(self, effect):
  28561. r"""Class-aware wrapper for `::pdf_set_annot_border_effect()`."""
  28562. return _mupdf.PdfAnnot_pdf_set_annot_border_effect(self, effect)
  28563. def pdf_set_annot_border_effect_intensity(self, intensity):
  28564. r"""Class-aware wrapper for `::pdf_set_annot_border_effect_intensity()`."""
  28565. return _mupdf.PdfAnnot_pdf_set_annot_border_effect_intensity(self, intensity)
  28566. def pdf_set_annot_border_style(self, style):
  28567. r"""Class-aware wrapper for `::pdf_set_annot_border_style()`."""
  28568. return _mupdf.PdfAnnot_pdf_set_annot_border_style(self, style)
  28569. def pdf_set_annot_border_width(self, width):
  28570. r"""Class-aware wrapper for `::pdf_set_annot_border_width()`."""
  28571. return _mupdf.PdfAnnot_pdf_set_annot_border_width(self, width)
  28572. def pdf_set_annot_callout_line2(self, callout):
  28573. r"""Class-aware wrapper for `::pdf_set_annot_callout_line2()`. SWIG-friendly wrapper for pdf_set_annot_callout_line()."""
  28574. return _mupdf.PdfAnnot_pdf_set_annot_callout_line2(self, callout)
  28575. def pdf_set_annot_callout_point(self, p):
  28576. r"""Class-aware wrapper for `::pdf_set_annot_callout_point()`."""
  28577. return _mupdf.PdfAnnot_pdf_set_annot_callout_point(self, p)
  28578. def pdf_set_annot_callout_style(self, style):
  28579. r"""Class-aware wrapper for `::pdf_set_annot_callout_style()`."""
  28580. return _mupdf.PdfAnnot_pdf_set_annot_callout_style(self, style)
  28581. def pdf_set_annot_color(self, n, color):
  28582. r"""Class-aware wrapper for `::pdf_set_annot_color()`."""
  28583. return _mupdf.PdfAnnot_pdf_set_annot_color(self, n, color)
  28584. def pdf_set_annot_contents(self, text):
  28585. r"""Class-aware wrapper for `::pdf_set_annot_contents()`."""
  28586. return _mupdf.PdfAnnot_pdf_set_annot_contents(self, text)
  28587. def pdf_set_annot_creation_date(self, time):
  28588. r"""Class-aware wrapper for `::pdf_set_annot_creation_date()`."""
  28589. return _mupdf.PdfAnnot_pdf_set_annot_creation_date(self, time)
  28590. def pdf_set_annot_default_appearance(self, font, size, n, color):
  28591. r"""Class-aware wrapper for `::pdf_set_annot_default_appearance()`."""
  28592. return _mupdf.PdfAnnot_pdf_set_annot_default_appearance(self, font, size, n, color)
  28593. def pdf_set_annot_filespec(self, obj):
  28594. r"""Class-aware wrapper for `::pdf_set_annot_filespec()`."""
  28595. return _mupdf.PdfAnnot_pdf_set_annot_filespec(self, obj)
  28596. def pdf_set_annot_flags(self, flags):
  28597. r"""Class-aware wrapper for `::pdf_set_annot_flags()`."""
  28598. return _mupdf.PdfAnnot_pdf_set_annot_flags(self, flags)
  28599. def pdf_set_annot_hidden_for_editing(self, hidden):
  28600. r"""Class-aware wrapper for `::pdf_set_annot_hidden_for_editing()`."""
  28601. return _mupdf.PdfAnnot_pdf_set_annot_hidden_for_editing(self, hidden)
  28602. def pdf_set_annot_hot(self, hot):
  28603. r"""Class-aware wrapper for `::pdf_set_annot_hot()`."""
  28604. return _mupdf.PdfAnnot_pdf_set_annot_hot(self, hot)
  28605. def pdf_set_annot_icon_name(self, name):
  28606. r"""Class-aware wrapper for `::pdf_set_annot_icon_name()`."""
  28607. return _mupdf.PdfAnnot_pdf_set_annot_icon_name(self, name)
  28608. def pdf_set_annot_ink_list(self, n, count, v):
  28609. r"""Class-aware wrapper for `::pdf_set_annot_ink_list()`."""
  28610. return _mupdf.PdfAnnot_pdf_set_annot_ink_list(self, n, count, v)
  28611. def pdf_set_annot_intent(self, it):
  28612. r"""Class-aware wrapper for `::pdf_set_annot_intent()`."""
  28613. return _mupdf.PdfAnnot_pdf_set_annot_intent(self, it)
  28614. def pdf_set_annot_interior_color(self, n, color):
  28615. r"""Class-aware wrapper for `::pdf_set_annot_interior_color()`."""
  28616. return _mupdf.PdfAnnot_pdf_set_annot_interior_color(self, n, color)
  28617. def pdf_set_annot_is_open(self, is_open):
  28618. r"""Class-aware wrapper for `::pdf_set_annot_is_open()`."""
  28619. return _mupdf.PdfAnnot_pdf_set_annot_is_open(self, is_open)
  28620. def pdf_set_annot_language(self, lang):
  28621. r"""Class-aware wrapper for `::pdf_set_annot_language()`."""
  28622. return _mupdf.PdfAnnot_pdf_set_annot_language(self, lang)
  28623. def pdf_set_annot_line(self, a, b):
  28624. r"""Class-aware wrapper for `::pdf_set_annot_line()`."""
  28625. return _mupdf.PdfAnnot_pdf_set_annot_line(self, a, b)
  28626. def pdf_set_annot_line_caption(self, cap):
  28627. r"""Class-aware wrapper for `::pdf_set_annot_line_caption()`."""
  28628. return _mupdf.PdfAnnot_pdf_set_annot_line_caption(self, cap)
  28629. def pdf_set_annot_line_caption_offset(self, offset):
  28630. r"""Class-aware wrapper for `::pdf_set_annot_line_caption_offset()`."""
  28631. return _mupdf.PdfAnnot_pdf_set_annot_line_caption_offset(self, offset)
  28632. def pdf_set_annot_line_end_style(self, e):
  28633. r"""Class-aware wrapper for `::pdf_set_annot_line_end_style()`."""
  28634. return _mupdf.PdfAnnot_pdf_set_annot_line_end_style(self, e)
  28635. def pdf_set_annot_line_ending_styles(self, start_style, end_style):
  28636. r"""Class-aware wrapper for `::pdf_set_annot_line_ending_styles()`."""
  28637. return _mupdf.PdfAnnot_pdf_set_annot_line_ending_styles(self, start_style, end_style)
  28638. def pdf_set_annot_line_leader(self, ll):
  28639. r"""Class-aware wrapper for `::pdf_set_annot_line_leader()`."""
  28640. return _mupdf.PdfAnnot_pdf_set_annot_line_leader(self, ll)
  28641. def pdf_set_annot_line_leader_extension(self, lle):
  28642. r"""Class-aware wrapper for `::pdf_set_annot_line_leader_extension()`."""
  28643. return _mupdf.PdfAnnot_pdf_set_annot_line_leader_extension(self, lle)
  28644. def pdf_set_annot_line_leader_offset(self, llo):
  28645. r"""Class-aware wrapper for `::pdf_set_annot_line_leader_offset()`."""
  28646. return _mupdf.PdfAnnot_pdf_set_annot_line_leader_offset(self, llo)
  28647. def pdf_set_annot_line_start_style(self, s):
  28648. r"""Class-aware wrapper for `::pdf_set_annot_line_start_style()`."""
  28649. return _mupdf.PdfAnnot_pdf_set_annot_line_start_style(self, s)
  28650. def pdf_set_annot_modification_date(self, time):
  28651. r"""Class-aware wrapper for `::pdf_set_annot_modification_date()`."""
  28652. return _mupdf.PdfAnnot_pdf_set_annot_modification_date(self, time)
  28653. def pdf_set_annot_opacity(self, opacity):
  28654. r"""Class-aware wrapper for `::pdf_set_annot_opacity()`."""
  28655. return _mupdf.PdfAnnot_pdf_set_annot_opacity(self, opacity)
  28656. def pdf_set_annot_popup(self, rect):
  28657. r"""Class-aware wrapper for `::pdf_set_annot_popup()`."""
  28658. return _mupdf.PdfAnnot_pdf_set_annot_popup(self, rect)
  28659. def pdf_set_annot_quad_points(self, n, qv):
  28660. r"""Class-aware wrapper for `::pdf_set_annot_quad_points()`."""
  28661. return _mupdf.PdfAnnot_pdf_set_annot_quad_points(self, n, qv)
  28662. def pdf_set_annot_quadding(self, q):
  28663. r"""Class-aware wrapper for `::pdf_set_annot_quadding()`."""
  28664. return _mupdf.PdfAnnot_pdf_set_annot_quadding(self, q)
  28665. def pdf_set_annot_rect(self, rect):
  28666. r"""Class-aware wrapper for `::pdf_set_annot_rect()`."""
  28667. return _mupdf.PdfAnnot_pdf_set_annot_rect(self, rect)
  28668. def pdf_set_annot_resynthesised(self):
  28669. r"""Class-aware wrapper for `::pdf_set_annot_resynthesised()`."""
  28670. return _mupdf.PdfAnnot_pdf_set_annot_resynthesised(self)
  28671. def pdf_set_annot_rich_contents(self, plain, rich):
  28672. r"""Class-aware wrapper for `::pdf_set_annot_rich_contents()`."""
  28673. return _mupdf.PdfAnnot_pdf_set_annot_rich_contents(self, plain, rich)
  28674. def pdf_set_annot_rich_defaults(self, style):
  28675. r"""Class-aware wrapper for `::pdf_set_annot_rich_defaults()`."""
  28676. return _mupdf.PdfAnnot_pdf_set_annot_rich_defaults(self, style)
  28677. def pdf_set_annot_stamp_image(self, image):
  28678. r"""Class-aware wrapper for `::pdf_set_annot_stamp_image()`."""
  28679. return _mupdf.PdfAnnot_pdf_set_annot_stamp_image(self, image)
  28680. def pdf_set_annot_stamp_image_obj(self, ref):
  28681. r"""Class-aware wrapper for `::pdf_set_annot_stamp_image_obj()`."""
  28682. return _mupdf.PdfAnnot_pdf_set_annot_stamp_image_obj(self, ref)
  28683. def pdf_set_annot_vertex(self, i, p):
  28684. r"""Class-aware wrapper for `::pdf_set_annot_vertex()`."""
  28685. return _mupdf.PdfAnnot_pdf_set_annot_vertex(self, i, p)
  28686. def pdf_set_annot_vertices(self, n, v):
  28687. r"""Class-aware wrapper for `::pdf_set_annot_vertices()`."""
  28688. return _mupdf.PdfAnnot_pdf_set_annot_vertices(self, n, v)
  28689. def pdf_set_choice_field_value(self, value):
  28690. r"""Class-aware wrapper for `::pdf_set_choice_field_value()`."""
  28691. return _mupdf.PdfAnnot_pdf_set_choice_field_value(self, value)
  28692. def pdf_set_text_field_value(self, value):
  28693. r"""Class-aware wrapper for `::pdf_set_text_field_value()`."""
  28694. return _mupdf.PdfAnnot_pdf_set_text_field_value(self, value)
  28695. def pdf_set_widget_editing_state(self, editing):
  28696. r"""Class-aware wrapper for `::pdf_set_widget_editing_state()`."""
  28697. return _mupdf.PdfAnnot_pdf_set_widget_editing_state(self, editing)
  28698. def pdf_sign_signature(self, signer, appearance_flags, graphic, reason, location):
  28699. r"""Class-aware wrapper for `::pdf_sign_signature()`."""
  28700. return _mupdf.PdfAnnot_pdf_sign_signature(self, signer, appearance_flags, graphic, reason, location)
  28701. def pdf_sign_signature_with_appearance(self, signer, date, disp_list):
  28702. r"""Class-aware wrapper for `::pdf_sign_signature_with_appearance()`."""
  28703. return _mupdf.PdfAnnot_pdf_sign_signature_with_appearance(self, signer, date, disp_list)
  28704. def pdf_text_widget_format(self):
  28705. r"""Class-aware wrapper for `::pdf_text_widget_format()`."""
  28706. return _mupdf.PdfAnnot_pdf_text_widget_format(self)
  28707. def pdf_text_widget_max_len(self):
  28708. r"""Class-aware wrapper for `::pdf_text_widget_max_len()`."""
  28709. return _mupdf.PdfAnnot_pdf_text_widget_max_len(self)
  28710. def pdf_toggle_widget(self):
  28711. r"""Class-aware wrapper for `::pdf_toggle_widget()`."""
  28712. return _mupdf.PdfAnnot_pdf_toggle_widget(self)
  28713. def pdf_update_annot(self):
  28714. r"""Class-aware wrapper for `::pdf_update_annot()`."""
  28715. return _mupdf.PdfAnnot_pdf_update_annot(self)
  28716. def pdf_update_widget(self):
  28717. r"""Class-aware wrapper for `::pdf_update_widget()`."""
  28718. return _mupdf.PdfAnnot_pdf_update_widget(self)
  28719. def pdf_validate_signature(self):
  28720. r"""Class-aware wrapper for `::pdf_validate_signature()`."""
  28721. return _mupdf.PdfAnnot_pdf_validate_signature(self)
  28722. def pdf_widget_is_readonly(self):
  28723. r"""Class-aware wrapper for `::pdf_widget_is_readonly()`."""
  28724. return _mupdf.PdfAnnot_pdf_widget_is_readonly(self)
  28725. def pdf_widget_is_signed(self):
  28726. r"""Class-aware wrapper for `::pdf_widget_is_signed()`."""
  28727. return _mupdf.PdfAnnot_pdf_widget_is_signed(self)
  28728. def pdf_widget_type(self):
  28729. r"""Class-aware wrapper for `::pdf_widget_type()`."""
  28730. return _mupdf.PdfAnnot_pdf_widget_type(self)
  28731. def __init__(self, *args):
  28732. r"""
  28733. *Overload 1:*
  28734. Copy constructor using `pdf_keep_annot()`.
  28735. |
  28736. *Overload 2:*
  28737. Constructor using raw copy of pre-existing `::pdf_annot`.
  28738. |
  28739. *Overload 3:*
  28740. Constructor using raw copy of pre-existing `::pdf_annot`.
  28741. """
  28742. _mupdf.PdfAnnot_swiginit(self, _mupdf.new_PdfAnnot(*args))
  28743. __swig_destroy__ = _mupdf.delete_PdfAnnot
  28744. def m_internal_value(self):
  28745. r"""Return numerical value of .m_internal; helps with Python debugging."""
  28746. return _mupdf.PdfAnnot_m_internal_value(self)
  28747. def __nonzero__(self):
  28748. return _mupdf.PdfAnnot___nonzero__(self)
  28749. __bool__ = __nonzero__
  28750. m_internal = property(_mupdf.PdfAnnot_m_internal_get, _mupdf.PdfAnnot_m_internal_set, doc=r"""Pointer to wrapped data.""")
  28751. s_num_instances = property(_mupdf.PdfAnnot_s_num_instances_get, _mupdf.PdfAnnot_s_num_instances_set)
  28752. # Register PdfAnnot in _mupdf:
  28753. _mupdf.PdfAnnot_swigregister(PdfAnnot)
  28754. class PdfCleanOptions(object):
  28755. r"""Wrapper class for struct `pdf_clean_options`."""
  28756. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  28757. __repr__ = _swig_repr
  28758. def write_opwd_utf8_set(self, text):
  28759. r"""Copies <text> into write.opwd_utf8[]."""
  28760. return _mupdf.PdfCleanOptions_write_opwd_utf8_set(self, text)
  28761. def write_upwd_utf8_set(self, text):
  28762. r"""Copies <text> into upwd_utf8[]."""
  28763. return _mupdf.PdfCleanOptions_write_upwd_utf8_set(self, text)
  28764. def __init__(self, *args):
  28765. r"""
  28766. *Overload 1:*
  28767. Default constructor, makes copy of pdf_default_write_options.
  28768. |
  28769. *Overload 2:*
  28770. Copy constructor using raw memcopy().
  28771. |
  28772. *Overload 3:*
  28773. Constructor using raw copy of pre-existing `::pdf_clean_options`.
  28774. |
  28775. *Overload 4:*
  28776. Constructor using raw copy of pre-existing `::pdf_clean_options`.
  28777. """
  28778. _mupdf.PdfCleanOptions_swiginit(self, _mupdf.new_PdfCleanOptions(*args))
  28779. def internal(self, *args):
  28780. r"""
  28781. *Overload 1:*
  28782. Access as underlying struct.
  28783. |
  28784. *Overload 2:*
  28785. Access as underlying struct.
  28786. """
  28787. return _mupdf.PdfCleanOptions_internal(self, *args)
  28788. __swig_destroy__ = _mupdf.delete_PdfCleanOptions
  28789. write = property(_mupdf.PdfCleanOptions_write_get, _mupdf.PdfCleanOptions_write_set)
  28790. image = property(_mupdf.PdfCleanOptions_image_get, _mupdf.PdfCleanOptions_image_set)
  28791. subset_fonts = property(_mupdf.PdfCleanOptions_subset_fonts_get, _mupdf.PdfCleanOptions_subset_fonts_set)
  28792. structure = property(_mupdf.PdfCleanOptions_structure_get, _mupdf.PdfCleanOptions_structure_set)
  28793. s_num_instances = property(_mupdf.PdfCleanOptions_s_num_instances_get, _mupdf.PdfCleanOptions_s_num_instances_set)
  28794. def to_string(self):
  28795. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  28796. return _mupdf.PdfCleanOptions_to_string(self)
  28797. def __eq__(self, rhs):
  28798. r"""Comparison method."""
  28799. return _mupdf.PdfCleanOptions___eq__(self, rhs)
  28800. def __ne__(self, rhs):
  28801. r"""Comparison method."""
  28802. return _mupdf.PdfCleanOptions___ne__(self, rhs)
  28803. # Register PdfCleanOptions in _mupdf:
  28804. _mupdf.PdfCleanOptions_swigregister(PdfCleanOptions)
  28805. class PdfCmap(object):
  28806. r"""Wrapper class for struct `pdf_cmap`."""
  28807. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  28808. __repr__ = _swig_repr
  28809. def pdf_add_codespace(self, low, high, n):
  28810. r"""Class-aware wrapper for `::pdf_add_codespace()`."""
  28811. return _mupdf.PdfCmap_pdf_add_codespace(self, low, high, n)
  28812. def pdf_cmap_size(self):
  28813. r"""Class-aware wrapper for `::pdf_cmap_size()`."""
  28814. return _mupdf.PdfCmap_pdf_cmap_size(self)
  28815. def pdf_cmap_wmode(self):
  28816. r"""Class-aware wrapper for `::pdf_cmap_wmode()`."""
  28817. return _mupdf.PdfCmap_pdf_cmap_wmode(self)
  28818. def pdf_decode_cmap(self, s, e, cpt):
  28819. r"""
  28820. Class-aware wrapper for `::pdf_decode_cmap()`.
  28821. This method has out-params. Python/C# wrappers look like:
  28822. `pdf_decode_cmap(unsigned char *s, unsigned char *e)` => `(int, unsigned int cpt)`
  28823. """
  28824. return _mupdf.PdfCmap_pdf_decode_cmap(self, s, e, cpt)
  28825. def pdf_lookup_cmap(self, cpt):
  28826. r"""Class-aware wrapper for `::pdf_lookup_cmap()`."""
  28827. return _mupdf.PdfCmap_pdf_lookup_cmap(self, cpt)
  28828. def pdf_lookup_cmap_full(self, cpt, out):
  28829. r"""
  28830. Class-aware wrapper for `::pdf_lookup_cmap_full()`.
  28831. This method has out-params. Python/C# wrappers look like:
  28832. `pdf_lookup_cmap_full(unsigned int cpt)` => `(int, int out)`
  28833. """
  28834. return _mupdf.PdfCmap_pdf_lookup_cmap_full(self, cpt, out)
  28835. def pdf_map_one_to_many(self, one, many, len):
  28836. r"""
  28837. Class-aware wrapper for `::pdf_map_one_to_many()`.
  28838. This method has out-params. Python/C# wrappers look like:
  28839. `pdf_map_one_to_many(unsigned int one, size_t len)` => int many
  28840. """
  28841. return _mupdf.PdfCmap_pdf_map_one_to_many(self, one, many, len)
  28842. def pdf_map_range_to_range(self, srclo, srchi, dstlo):
  28843. r"""Class-aware wrapper for `::pdf_map_range_to_range()`."""
  28844. return _mupdf.PdfCmap_pdf_map_range_to_range(self, srclo, srchi, dstlo)
  28845. def pdf_set_cmap_wmode(self, wmode):
  28846. r"""Class-aware wrapper for `::pdf_set_cmap_wmode()`."""
  28847. return _mupdf.PdfCmap_pdf_set_cmap_wmode(self, wmode)
  28848. def pdf_set_usecmap(self, usecmap):
  28849. r"""Class-aware wrapper for `::pdf_set_usecmap()`."""
  28850. return _mupdf.PdfCmap_pdf_set_usecmap(self, usecmap)
  28851. def pdf_sort_cmap(self):
  28852. r"""Class-aware wrapper for `::pdf_sort_cmap()`."""
  28853. return _mupdf.PdfCmap_pdf_sort_cmap(self)
  28854. def __init__(self, *args):
  28855. r"""
  28856. *Overload 1:*
  28857. == Constructors. Constructor using `pdf_new_cmap()`.
  28858. |
  28859. *Overload 2:*
  28860. Constructor using `pdf_new_identity_cmap()`.
  28861. |
  28862. *Overload 3:*
  28863. Copy constructor using `pdf_keep_cmap()`.
  28864. |
  28865. *Overload 4:*
  28866. Constructor using raw copy of pre-existing `::pdf_cmap`.
  28867. """
  28868. _mupdf.PdfCmap_swiginit(self, _mupdf.new_PdfCmap(*args))
  28869. __swig_destroy__ = _mupdf.delete_PdfCmap
  28870. def m_internal_value(self):
  28871. r"""Return numerical value of .m_internal; helps with Python debugging."""
  28872. return _mupdf.PdfCmap_m_internal_value(self)
  28873. def __nonzero__(self):
  28874. return _mupdf.PdfCmap___nonzero__(self)
  28875. __bool__ = __nonzero__
  28876. m_internal = property(_mupdf.PdfCmap_m_internal_get, _mupdf.PdfCmap_m_internal_set, doc=r"""Pointer to wrapped data.""")
  28877. s_num_instances = property(_mupdf.PdfCmap_s_num_instances_get, _mupdf.PdfCmap_s_num_instances_set)
  28878. # Register PdfCmap in _mupdf:
  28879. _mupdf.PdfCmap_swigregister(PdfCmap)
  28880. class PdfColorFilterOptions(object):
  28881. r"""Wrapper class for struct `pdf_color_filter_options`. Not copyable or assignable."""
  28882. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  28883. __repr__ = _swig_repr
  28884. def __init__(self, *args):
  28885. r"""
  28886. *Overload 1:*
  28887. Default constructor, sets `m_internal` to null.
  28888. |
  28889. *Overload 2:*
  28890. Constructor using raw copy of pre-existing `::pdf_color_filter_options`.
  28891. """
  28892. _mupdf.PdfColorFilterOptions_swiginit(self, _mupdf.new_PdfColorFilterOptions(*args))
  28893. __swig_destroy__ = _mupdf.delete_PdfColorFilterOptions
  28894. def m_internal_value(self):
  28895. r"""Return numerical value of .m_internal; helps with Python debugging."""
  28896. return _mupdf.PdfColorFilterOptions_m_internal_value(self)
  28897. def __nonzero__(self):
  28898. return _mupdf.PdfColorFilterOptions___nonzero__(self)
  28899. __bool__ = __nonzero__
  28900. m_internal = property(_mupdf.PdfColorFilterOptions_m_internal_get, _mupdf.PdfColorFilterOptions_m_internal_set, doc=r"""Pointer to wrapped data.""")
  28901. s_num_instances = property(_mupdf.PdfColorFilterOptions_s_num_instances_get, _mupdf.PdfColorFilterOptions_s_num_instances_set)
  28902. # Register PdfColorFilterOptions in _mupdf:
  28903. _mupdf.PdfColorFilterOptions_swigregister(PdfColorFilterOptions)
  28904. class PdfColorspaceResourceKey(object):
  28905. r"""Wrapper class for struct `pdf_colorspace_resource_key`. Not copyable or assignable."""
  28906. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  28907. __repr__ = _swig_repr
  28908. def __init__(self, *args):
  28909. r"""
  28910. *Overload 1:*
  28911. Default constructor, sets `m_internal` to null.
  28912. |
  28913. *Overload 2:*
  28914. Constructor using raw copy of pre-existing `::pdf_colorspace_resource_key`.
  28915. """
  28916. _mupdf.PdfColorspaceResourceKey_swiginit(self, _mupdf.new_PdfColorspaceResourceKey(*args))
  28917. __swig_destroy__ = _mupdf.delete_PdfColorspaceResourceKey
  28918. def m_internal_value(self):
  28919. r"""Return numerical value of .m_internal; helps with Python debugging."""
  28920. return _mupdf.PdfColorspaceResourceKey_m_internal_value(self)
  28921. def __nonzero__(self):
  28922. return _mupdf.PdfColorspaceResourceKey___nonzero__(self)
  28923. __bool__ = __nonzero__
  28924. m_internal = property(_mupdf.PdfColorspaceResourceKey_m_internal_get, _mupdf.PdfColorspaceResourceKey_m_internal_set, doc=r"""Pointer to wrapped data.""")
  28925. s_num_instances = property(_mupdf.PdfColorspaceResourceKey_s_num_instances_get, _mupdf.PdfColorspaceResourceKey_s_num_instances_set)
  28926. # Register PdfColorspaceResourceKey in _mupdf:
  28927. _mupdf.PdfColorspaceResourceKey_swigregister(PdfColorspaceResourceKey)
  28928. class PdfCrypt(object):
  28929. r"""Wrapper class for struct `pdf_crypt`. Not copyable or assignable."""
  28930. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  28931. __repr__ = _swig_repr
  28932. def pdf_crypt_encrypt_metadata(self):
  28933. r"""Class-aware wrapper for `::pdf_crypt_encrypt_metadata()`."""
  28934. return _mupdf.PdfCrypt_pdf_crypt_encrypt_metadata(self)
  28935. def pdf_crypt_key(self):
  28936. r"""Class-aware wrapper for `::pdf_crypt_key()`."""
  28937. return _mupdf.PdfCrypt_pdf_crypt_key(self)
  28938. def pdf_crypt_length(self):
  28939. r"""Class-aware wrapper for `::pdf_crypt_length()`."""
  28940. return _mupdf.PdfCrypt_pdf_crypt_length(self)
  28941. def pdf_crypt_method(self):
  28942. r"""Class-aware wrapper for `::pdf_crypt_method()`."""
  28943. return _mupdf.PdfCrypt_pdf_crypt_method(self)
  28944. def pdf_crypt_obj(self, obj, num, gen):
  28945. r"""Class-aware wrapper for `::pdf_crypt_obj()`."""
  28946. return _mupdf.PdfCrypt_pdf_crypt_obj(self, obj, num, gen)
  28947. def pdf_crypt_owner_encryption(self):
  28948. r"""Class-aware wrapper for `::pdf_crypt_owner_encryption()`."""
  28949. return _mupdf.PdfCrypt_pdf_crypt_owner_encryption(self)
  28950. def pdf_crypt_owner_password(self):
  28951. r"""Class-aware wrapper for `::pdf_crypt_owner_password()`."""
  28952. return _mupdf.PdfCrypt_pdf_crypt_owner_password(self)
  28953. def pdf_crypt_permissions(self):
  28954. r"""Class-aware wrapper for `::pdf_crypt_permissions()`."""
  28955. return _mupdf.PdfCrypt_pdf_crypt_permissions(self)
  28956. def pdf_crypt_permissions_encryption(self):
  28957. r"""Class-aware wrapper for `::pdf_crypt_permissions_encryption()`."""
  28958. return _mupdf.PdfCrypt_pdf_crypt_permissions_encryption(self)
  28959. def pdf_crypt_revision(self):
  28960. r"""Class-aware wrapper for `::pdf_crypt_revision()`."""
  28961. return _mupdf.PdfCrypt_pdf_crypt_revision(self)
  28962. def pdf_crypt_stream_method(self):
  28963. r"""Class-aware wrapper for `::pdf_crypt_stream_method()`."""
  28964. return _mupdf.PdfCrypt_pdf_crypt_stream_method(self)
  28965. def pdf_crypt_string_method(self):
  28966. r"""Class-aware wrapper for `::pdf_crypt_string_method()`."""
  28967. return _mupdf.PdfCrypt_pdf_crypt_string_method(self)
  28968. def pdf_crypt_user_encryption(self):
  28969. r"""Class-aware wrapper for `::pdf_crypt_user_encryption()`."""
  28970. return _mupdf.PdfCrypt_pdf_crypt_user_encryption(self)
  28971. def pdf_crypt_user_password(self):
  28972. r"""Class-aware wrapper for `::pdf_crypt_user_password()`."""
  28973. return _mupdf.PdfCrypt_pdf_crypt_user_password(self)
  28974. def pdf_crypt_version(self):
  28975. r"""Class-aware wrapper for `::pdf_crypt_version()`."""
  28976. return _mupdf.PdfCrypt_pdf_crypt_version(self)
  28977. def pdf_encrypt_data(self, num, gen, fmt_str_out, arg, s, n):
  28978. r"""Class-aware wrapper for `::pdf_encrypt_data()`."""
  28979. return _mupdf.PdfCrypt_pdf_encrypt_data(self, num, gen, fmt_str_out, arg, s, n)
  28980. def pdf_encrypted_len(self, num, gen, len):
  28981. r"""Class-aware wrapper for `::pdf_encrypted_len()`."""
  28982. return _mupdf.PdfCrypt_pdf_encrypted_len(self, num, gen, len)
  28983. def __init__(self, *args):
  28984. r"""
  28985. *Overload 1:*
  28986. == Constructors. Constructor using `pdf_new_crypt()`.
  28987. |
  28988. *Overload 2:*
  28989. Constructor using `pdf_new_encrypt()`.
  28990. |
  28991. *Overload 3:*
  28992. Default constructor, sets `m_internal` to null.
  28993. |
  28994. *Overload 4:*
  28995. Constructor using raw copy of pre-existing `::pdf_crypt`.
  28996. """
  28997. _mupdf.PdfCrypt_swiginit(self, _mupdf.new_PdfCrypt(*args))
  28998. __swig_destroy__ = _mupdf.delete_PdfCrypt
  28999. def m_internal_value(self):
  29000. r"""Return numerical value of .m_internal; helps with Python debugging."""
  29001. return _mupdf.PdfCrypt_m_internal_value(self)
  29002. def __nonzero__(self):
  29003. return _mupdf.PdfCrypt___nonzero__(self)
  29004. __bool__ = __nonzero__
  29005. m_internal = property(_mupdf.PdfCrypt_m_internal_get, _mupdf.PdfCrypt_m_internal_set, doc=r"""Pointer to wrapped data.""")
  29006. s_num_instances = property(_mupdf.PdfCrypt_s_num_instances_get, _mupdf.PdfCrypt_s_num_instances_set)
  29007. # Register PdfCrypt in _mupdf:
  29008. _mupdf.PdfCrypt_swigregister(PdfCrypt)
  29009. class PdfCsi(object):
  29010. r"""Wrapper class for struct `pdf_csi`. Not copyable or assignable."""
  29011. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  29012. __repr__ = _swig_repr
  29013. def __init__(self, *args):
  29014. r"""
  29015. *Overload 1:*
  29016. Default constructor, sets `m_internal` to null.
  29017. |
  29018. *Overload 2:*
  29019. Constructor using raw copy of pre-existing `::pdf_csi`.
  29020. """
  29021. _mupdf.PdfCsi_swiginit(self, _mupdf.new_PdfCsi(*args))
  29022. __swig_destroy__ = _mupdf.delete_PdfCsi
  29023. def m_internal_value(self):
  29024. r"""Return numerical value of .m_internal; helps with Python debugging."""
  29025. return _mupdf.PdfCsi_m_internal_value(self)
  29026. def __nonzero__(self):
  29027. return _mupdf.PdfCsi___nonzero__(self)
  29028. __bool__ = __nonzero__
  29029. m_internal = property(_mupdf.PdfCsi_m_internal_get, _mupdf.PdfCsi_m_internal_set, doc=r"""Pointer to wrapped data.""")
  29030. s_num_instances = property(_mupdf.PdfCsi_s_num_instances_get, _mupdf.PdfCsi_s_num_instances_set)
  29031. # Register PdfCsi in _mupdf:
  29032. _mupdf.PdfCsi_swigregister(PdfCsi)
  29033. class PdfCycleList(object):
  29034. r"""Wrapper class for struct `pdf_cycle_list`. Not copyable or assignable."""
  29035. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  29036. __repr__ = _swig_repr
  29037. def pdf_cycle(self, prev, obj):
  29038. r"""Class-aware wrapper for `::pdf_cycle()`."""
  29039. return _mupdf.PdfCycleList_pdf_cycle(self, prev, obj)
  29040. def __init__(self, *args):
  29041. r"""
  29042. *Overload 1:*
  29043. Default constructor, sets `m_internal` to null.
  29044. |
  29045. *Overload 2:*
  29046. Constructor using raw copy of pre-existing `::pdf_cycle_list`.
  29047. """
  29048. _mupdf.PdfCycleList_swiginit(self, _mupdf.new_PdfCycleList(*args))
  29049. __swig_destroy__ = _mupdf.delete_PdfCycleList
  29050. def m_internal_value(self):
  29051. r"""Return numerical value of .m_internal; helps with Python debugging."""
  29052. return _mupdf.PdfCycleList_m_internal_value(self)
  29053. def __nonzero__(self):
  29054. return _mupdf.PdfCycleList___nonzero__(self)
  29055. __bool__ = __nonzero__
  29056. m_internal = property(_mupdf.PdfCycleList_m_internal_get, _mupdf.PdfCycleList_m_internal_set, doc=r"""Pointer to wrapped data.""")
  29057. s_num_instances = property(_mupdf.PdfCycleList_s_num_instances_get, _mupdf.PdfCycleList_s_num_instances_set)
  29058. # Register PdfCycleList in _mupdf:
  29059. _mupdf.PdfCycleList_swigregister(PdfCycleList)
  29060. class PdfDocEvent(object):
  29061. r"""Wrapper class for struct `pdf_doc_event`. Not copyable or assignable."""
  29062. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  29063. __repr__ = _swig_repr
  29064. def pdf_access_exec_menu_item_event(self):
  29065. r"""Class-aware wrapper for `::pdf_access_exec_menu_item_event()`."""
  29066. return _mupdf.PdfDocEvent_pdf_access_exec_menu_item_event(self)
  29067. def __init__(self, *args):
  29068. r"""
  29069. *Overload 1:*
  29070. Default constructor, sets `m_internal` to null.
  29071. |
  29072. *Overload 2:*
  29073. Constructor using raw copy of pre-existing `::pdf_doc_event`.
  29074. """
  29075. _mupdf.PdfDocEvent_swiginit(self, _mupdf.new_PdfDocEvent(*args))
  29076. __swig_destroy__ = _mupdf.delete_PdfDocEvent
  29077. def m_internal_value(self):
  29078. r"""Return numerical value of .m_internal; helps with Python debugging."""
  29079. return _mupdf.PdfDocEvent_m_internal_value(self)
  29080. def __nonzero__(self):
  29081. return _mupdf.PdfDocEvent___nonzero__(self)
  29082. __bool__ = __nonzero__
  29083. m_internal = property(_mupdf.PdfDocEvent_m_internal_get, _mupdf.PdfDocEvent_m_internal_set, doc=r"""Pointer to wrapped data.""")
  29084. s_num_instances = property(_mupdf.PdfDocEvent_s_num_instances_get, _mupdf.PdfDocEvent_s_num_instances_set)
  29085. # Register PdfDocEvent in _mupdf:
  29086. _mupdf.PdfDocEvent_swigregister(PdfDocEvent)
  29087. class PdfDocument(object):
  29088. r"""Wrapper class for struct `pdf_document`."""
  29089. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  29090. __repr__ = _swig_repr
  29091. def pdf_abandon_operation(self):
  29092. r"""Class-aware wrapper for `::pdf_abandon_operation()`."""
  29093. return _mupdf.PdfDocument_pdf_abandon_operation(self)
  29094. def pdf_add_cid_font(self, font):
  29095. r"""Class-aware wrapper for `::pdf_add_cid_font()`."""
  29096. return _mupdf.PdfDocument_pdf_add_cid_font(self, font)
  29097. def pdf_add_cjk_font(self, font, script, wmode, serif):
  29098. r"""Class-aware wrapper for `::pdf_add_cjk_font()`."""
  29099. return _mupdf.PdfDocument_pdf_add_cjk_font(self, font, script, wmode, serif)
  29100. def pdf_add_colorspace(self, cs):
  29101. r"""Class-aware wrapper for `::pdf_add_colorspace()`."""
  29102. return _mupdf.PdfDocument_pdf_add_colorspace(self, cs)
  29103. def pdf_add_embedded_file(self, filename, mimetype, contents, created, modified, add_checksum):
  29104. r"""Class-aware wrapper for `::pdf_add_embedded_file()`."""
  29105. return _mupdf.PdfDocument_pdf_add_embedded_file(self, filename, mimetype, contents, created, modified, add_checksum)
  29106. def pdf_add_image(self, image):
  29107. r"""Class-aware wrapper for `::pdf_add_image()`."""
  29108. return _mupdf.PdfDocument_pdf_add_image(self, image)
  29109. def pdf_add_journal_fragment(self, parent, copy, copy_stream, newobj):
  29110. r"""Class-aware wrapper for `::pdf_add_journal_fragment()`."""
  29111. return _mupdf.PdfDocument_pdf_add_journal_fragment(self, parent, copy, copy_stream, newobj)
  29112. def pdf_add_new_array(self, initial):
  29113. r"""Class-aware wrapper for `::pdf_add_new_array()`."""
  29114. return _mupdf.PdfDocument_pdf_add_new_array(self, initial)
  29115. def pdf_add_new_dict(self, initial):
  29116. r"""Class-aware wrapper for `::pdf_add_new_dict()`."""
  29117. return _mupdf.PdfDocument_pdf_add_new_dict(self, initial)
  29118. def pdf_add_object(self, obj):
  29119. r"""Class-aware wrapper for `::pdf_add_object()`."""
  29120. return _mupdf.PdfDocument_pdf_add_object(self, obj)
  29121. def pdf_add_page(self, mediabox, rotate, resources, contents):
  29122. r"""Class-aware wrapper for `::pdf_add_page()`."""
  29123. return _mupdf.PdfDocument_pdf_add_page(self, mediabox, rotate, resources, contents)
  29124. def pdf_add_simple_font(self, font, encoding):
  29125. r"""Class-aware wrapper for `::pdf_add_simple_font()`."""
  29126. return _mupdf.PdfDocument_pdf_add_simple_font(self, font, encoding)
  29127. def pdf_add_stream(self, buf, obj, compressed):
  29128. r"""Class-aware wrapper for `::pdf_add_stream()`."""
  29129. return _mupdf.PdfDocument_pdf_add_stream(self, buf, obj, compressed)
  29130. def pdf_add_substitute_font(self, font):
  29131. r"""Class-aware wrapper for `::pdf_add_substitute_font()`."""
  29132. return _mupdf.PdfDocument_pdf_add_substitute_font(self, font)
  29133. def pdf_annot_field_event_keystroke(self, annot, evt):
  29134. r"""Class-aware wrapper for `::pdf_annot_field_event_keystroke()`."""
  29135. return _mupdf.PdfDocument_pdf_annot_field_event_keystroke(self, annot, evt)
  29136. def pdf_authenticate_password(self, pw):
  29137. r"""Class-aware wrapper for `::pdf_authenticate_password()`."""
  29138. return _mupdf.PdfDocument_pdf_authenticate_password(self, pw)
  29139. def pdf_bake_document(self, bake_annots, bake_widgets):
  29140. r"""Class-aware wrapper for `::pdf_bake_document()`."""
  29141. return _mupdf.PdfDocument_pdf_bake_document(self, bake_annots, bake_widgets)
  29142. def pdf_begin_implicit_operation(self):
  29143. r"""Class-aware wrapper for `::pdf_begin_implicit_operation()`."""
  29144. return _mupdf.PdfDocument_pdf_begin_implicit_operation(self)
  29145. def pdf_begin_operation(self, operation):
  29146. r"""Class-aware wrapper for `::pdf_begin_operation()`."""
  29147. return _mupdf.PdfDocument_pdf_begin_operation(self, operation)
  29148. def pdf_calculate_form(self):
  29149. r"""Class-aware wrapper for `::pdf_calculate_form()`."""
  29150. return _mupdf.PdfDocument_pdf_calculate_form(self)
  29151. def pdf_can_be_saved_incrementally(self):
  29152. r"""Class-aware wrapper for `::pdf_can_be_saved_incrementally()`."""
  29153. return _mupdf.PdfDocument_pdf_can_be_saved_incrementally(self)
  29154. def pdf_can_redo(self):
  29155. r"""Class-aware wrapper for `::pdf_can_redo()`."""
  29156. return _mupdf.PdfDocument_pdf_can_redo(self)
  29157. def pdf_can_undo(self):
  29158. r"""Class-aware wrapper for `::pdf_can_undo()`."""
  29159. return _mupdf.PdfDocument_pdf_can_undo(self)
  29160. def pdf_clear_xref(self):
  29161. r"""Class-aware wrapper for `::pdf_clear_xref()`."""
  29162. return _mupdf.PdfDocument_pdf_clear_xref(self)
  29163. def pdf_clear_xref_to_mark(self):
  29164. r"""Class-aware wrapper for `::pdf_clear_xref_to_mark()`."""
  29165. return _mupdf.PdfDocument_pdf_clear_xref_to_mark(self)
  29166. def pdf_count_document_associated_files(self):
  29167. r"""Class-aware wrapper for `::pdf_count_document_associated_files()`."""
  29168. return _mupdf.PdfDocument_pdf_count_document_associated_files(self)
  29169. def pdf_count_layer_config_ui(self):
  29170. r"""Class-aware wrapper for `::pdf_count_layer_config_ui()`."""
  29171. return _mupdf.PdfDocument_pdf_count_layer_config_ui(self)
  29172. def pdf_count_layer_configs(self):
  29173. r"""Class-aware wrapper for `::pdf_count_layer_configs()`."""
  29174. return _mupdf.PdfDocument_pdf_count_layer_configs(self)
  29175. def pdf_count_layers(self):
  29176. r"""Class-aware wrapper for `::pdf_count_layers()`."""
  29177. return _mupdf.PdfDocument_pdf_count_layers(self)
  29178. def pdf_count_objects(self):
  29179. r"""Class-aware wrapper for `::pdf_count_objects()`."""
  29180. return _mupdf.PdfDocument_pdf_count_objects(self)
  29181. def pdf_count_pages(self):
  29182. r"""Class-aware wrapper for `::pdf_count_pages()`."""
  29183. return _mupdf.PdfDocument_pdf_count_pages(self)
  29184. def pdf_count_q_balance(self, res, stm, prepend, append):
  29185. r"""
  29186. Class-aware wrapper for `::pdf_count_q_balance()`.
  29187. This method has out-params. Python/C# wrappers look like:
  29188. `pdf_count_q_balance(::pdf_obj *res, ::pdf_obj *stm)` => `(int prepend, int append)`
  29189. """
  29190. return _mupdf.PdfDocument_pdf_count_q_balance(self, res, stm, prepend, append)
  29191. def pdf_count_signatures(self):
  29192. r"""Class-aware wrapper for `::pdf_count_signatures()`."""
  29193. return _mupdf.PdfDocument_pdf_count_signatures(self)
  29194. def pdf_count_unsaved_versions(self):
  29195. r"""Class-aware wrapper for `::pdf_count_unsaved_versions()`."""
  29196. return _mupdf.PdfDocument_pdf_count_unsaved_versions(self)
  29197. def pdf_count_versions(self):
  29198. r"""Class-aware wrapper for `::pdf_count_versions()`."""
  29199. return _mupdf.PdfDocument_pdf_count_versions(self)
  29200. def pdf_create_field_name(self, prefix, buf, len):
  29201. r"""Class-aware wrapper for `::pdf_create_field_name()`."""
  29202. return _mupdf.PdfDocument_pdf_create_field_name(self, prefix, buf, len)
  29203. def pdf_create_object(self):
  29204. r"""Class-aware wrapper for `::pdf_create_object()`."""
  29205. return _mupdf.PdfDocument_pdf_create_object(self)
  29206. def pdf_debug_doc_changes(self):
  29207. r"""Class-aware wrapper for `::pdf_debug_doc_changes()`."""
  29208. return _mupdf.PdfDocument_pdf_debug_doc_changes(self)
  29209. def pdf_delete_object(self, num):
  29210. r"""Class-aware wrapper for `::pdf_delete_object()`."""
  29211. return _mupdf.PdfDocument_pdf_delete_object(self, num)
  29212. def pdf_delete_page(self, number):
  29213. r"""Class-aware wrapper for `::pdf_delete_page()`."""
  29214. return _mupdf.PdfDocument_pdf_delete_page(self, number)
  29215. def pdf_delete_page_labels(self, index):
  29216. r"""Class-aware wrapper for `::pdf_delete_page_labels()`."""
  29217. return _mupdf.PdfDocument_pdf_delete_page_labels(self, index)
  29218. def pdf_delete_page_range(self, start, end):
  29219. r"""Class-aware wrapper for `::pdf_delete_page_range()`."""
  29220. return _mupdf.PdfDocument_pdf_delete_page_range(self, start, end)
  29221. def pdf_deselect_layer_config_ui(self, ui):
  29222. r"""Class-aware wrapper for `::pdf_deselect_layer_config_ui()`."""
  29223. return _mupdf.PdfDocument_pdf_deselect_layer_config_ui(self, ui)
  29224. def pdf_deserialise_journal(self, stm):
  29225. r"""Class-aware wrapper for `::pdf_deserialise_journal()`."""
  29226. return _mupdf.PdfDocument_pdf_deserialise_journal(self, stm)
  29227. def pdf_disable_js(self):
  29228. r"""Class-aware wrapper for `::pdf_disable_js()`."""
  29229. return _mupdf.PdfDocument_pdf_disable_js(self)
  29230. def pdf_doc_was_linearized(self):
  29231. r"""Class-aware wrapper for `::pdf_doc_was_linearized()`."""
  29232. return _mupdf.PdfDocument_pdf_doc_was_linearized(self)
  29233. def pdf_document_associated_file(self, idx):
  29234. r"""Class-aware wrapper for `::pdf_document_associated_file()`."""
  29235. return _mupdf.PdfDocument_pdf_document_associated_file(self, idx)
  29236. def pdf_document_event_did_print(self):
  29237. r"""Class-aware wrapper for `::pdf_document_event_did_print()`."""
  29238. return _mupdf.PdfDocument_pdf_document_event_did_print(self)
  29239. def pdf_document_event_did_save(self):
  29240. r"""Class-aware wrapper for `::pdf_document_event_did_save()`."""
  29241. return _mupdf.PdfDocument_pdf_document_event_did_save(self)
  29242. def pdf_document_event_will_close(self):
  29243. r"""Class-aware wrapper for `::pdf_document_event_will_close()`."""
  29244. return _mupdf.PdfDocument_pdf_document_event_will_close(self)
  29245. def pdf_document_event_will_print(self):
  29246. r"""Class-aware wrapper for `::pdf_document_event_will_print()`."""
  29247. return _mupdf.PdfDocument_pdf_document_event_will_print(self)
  29248. def pdf_document_event_will_save(self):
  29249. r"""Class-aware wrapper for `::pdf_document_event_will_save()`."""
  29250. return _mupdf.PdfDocument_pdf_document_event_will_save(self)
  29251. def pdf_document_output_intent(self):
  29252. r"""Class-aware wrapper for `::pdf_document_output_intent()`."""
  29253. return _mupdf.PdfDocument_pdf_document_output_intent(self)
  29254. def pdf_document_permissions(self):
  29255. r"""Class-aware wrapper for `::pdf_document_permissions()`."""
  29256. return _mupdf.PdfDocument_pdf_document_permissions(self)
  29257. def pdf_empty_store(self):
  29258. r"""Class-aware wrapper for `::pdf_empty_store()`."""
  29259. return _mupdf.PdfDocument_pdf_empty_store(self)
  29260. def pdf_enable_journal(self):
  29261. r"""Class-aware wrapper for `::pdf_enable_journal()`."""
  29262. return _mupdf.PdfDocument_pdf_enable_journal(self)
  29263. def pdf_enable_js(self):
  29264. r"""Class-aware wrapper for `::pdf_enable_js()`."""
  29265. return _mupdf.PdfDocument_pdf_enable_js(self)
  29266. def pdf_enable_layer(self, layer, enabled):
  29267. r"""Class-aware wrapper for `::pdf_enable_layer()`."""
  29268. return _mupdf.PdfDocument_pdf_enable_layer(self, layer, enabled)
  29269. def pdf_end_operation(self):
  29270. r"""Class-aware wrapper for `::pdf_end_operation()`."""
  29271. return _mupdf.PdfDocument_pdf_end_operation(self)
  29272. def pdf_ensure_solid_xref(self, num):
  29273. r"""Class-aware wrapper for `::pdf_ensure_solid_xref()`."""
  29274. return _mupdf.PdfDocument_pdf_ensure_solid_xref(self, num)
  29275. def pdf_event_issue_alert(self, evt):
  29276. r"""Class-aware wrapper for `::pdf_event_issue_alert()`."""
  29277. return _mupdf.PdfDocument_pdf_event_issue_alert(self, evt)
  29278. def pdf_event_issue_exec_menu_item(self, item):
  29279. r"""Class-aware wrapper for `::pdf_event_issue_exec_menu_item()`."""
  29280. return _mupdf.PdfDocument_pdf_event_issue_exec_menu_item(self, item)
  29281. def pdf_event_issue_launch_url(self, url, new_frame):
  29282. r"""Class-aware wrapper for `::pdf_event_issue_launch_url()`."""
  29283. return _mupdf.PdfDocument_pdf_event_issue_launch_url(self, url, new_frame)
  29284. def pdf_event_issue_mail_doc(self, evt):
  29285. r"""Class-aware wrapper for `::pdf_event_issue_mail_doc()`."""
  29286. return _mupdf.PdfDocument_pdf_event_issue_mail_doc(self, evt)
  29287. def pdf_event_issue_print(self):
  29288. r"""Class-aware wrapper for `::pdf_event_issue_print()`."""
  29289. return _mupdf.PdfDocument_pdf_event_issue_print(self)
  29290. def pdf_field_event_calculate(self, field):
  29291. r"""Class-aware wrapper for `::pdf_field_event_calculate()`."""
  29292. return _mupdf.PdfDocument_pdf_field_event_calculate(self, field)
  29293. def pdf_field_event_format(self, field):
  29294. r"""Class-aware wrapper for `::pdf_field_event_format()`."""
  29295. return _mupdf.PdfDocument_pdf_field_event_format(self, field)
  29296. def pdf_field_event_keystroke(self, field, evt):
  29297. r"""Class-aware wrapper for `::pdf_field_event_keystroke()`."""
  29298. return _mupdf.PdfDocument_pdf_field_event_keystroke(self, field, evt)
  29299. def pdf_field_event_validate(self, field, value, newvalue):
  29300. r"""
  29301. Class-aware wrapper for `::pdf_field_event_validate()`.
  29302. This method has out-params. Python/C# wrappers look like:
  29303. `pdf_field_event_validate(::pdf_obj *field, const char *value)` => `(int, char *newvalue)`
  29304. """
  29305. return _mupdf.PdfDocument_pdf_field_event_validate(self, field, value, newvalue)
  29306. def pdf_field_reset(self, field):
  29307. r"""Class-aware wrapper for `::pdf_field_reset()`."""
  29308. return _mupdf.PdfDocument_pdf_field_reset(self, field)
  29309. def pdf_filter_annot_contents(self, annot, options):
  29310. r"""Class-aware wrapper for `::pdf_filter_annot_contents()`."""
  29311. return _mupdf.PdfDocument_pdf_filter_annot_contents(self, annot, options)
  29312. def pdf_filter_page_contents(self, page, options):
  29313. r"""Class-aware wrapper for `::pdf_filter_page_contents()`."""
  29314. return _mupdf.PdfDocument_pdf_filter_page_contents(self, page, options)
  29315. def pdf_find_colorspace_resource(self, item, key):
  29316. r"""Class-aware wrapper for `::pdf_find_colorspace_resource()`."""
  29317. return _mupdf.PdfDocument_pdf_find_colorspace_resource(self, item, key)
  29318. def pdf_find_font_resource(self, type, encoding, item, key):
  29319. r"""Class-aware wrapper for `::pdf_find_font_resource()`."""
  29320. return _mupdf.PdfDocument_pdf_find_font_resource(self, type, encoding, item, key)
  29321. def pdf_find_version_for_obj(self, obj):
  29322. r"""Class-aware wrapper for `::pdf_find_version_for_obj()`."""
  29323. return _mupdf.PdfDocument_pdf_find_version_for_obj(self, obj)
  29324. def pdf_forget_xref(self):
  29325. r"""Class-aware wrapper for `::pdf_forget_xref()`."""
  29326. return _mupdf.PdfDocument_pdf_forget_xref(self)
  29327. def pdf_get_doc_event_callback_data(self):
  29328. r"""Class-aware wrapper for `::pdf_get_doc_event_callback_data()`."""
  29329. return _mupdf.PdfDocument_pdf_get_doc_event_callback_data(self)
  29330. def pdf_graft_object(self, obj):
  29331. r"""Class-aware wrapper for `::pdf_graft_object()`."""
  29332. return _mupdf.PdfDocument_pdf_graft_object(self, obj)
  29333. def pdf_graft_page(self, page_to, src, page_from):
  29334. r"""Class-aware wrapper for `::pdf_graft_page()`."""
  29335. return _mupdf.PdfDocument_pdf_graft_page(self, page_to, src, page_from)
  29336. def pdf_has_permission(self, p):
  29337. r"""Class-aware wrapper for `::pdf_has_permission()`."""
  29338. return _mupdf.PdfDocument_pdf_has_permission(self, p)
  29339. def pdf_has_unsaved_changes(self):
  29340. r"""Class-aware wrapper for `::pdf_has_unsaved_changes()`."""
  29341. return _mupdf.PdfDocument_pdf_has_unsaved_changes(self)
  29342. def pdf_has_unsaved_sigs(self):
  29343. r"""Class-aware wrapper for `::pdf_has_unsaved_sigs()`."""
  29344. return _mupdf.PdfDocument_pdf_has_unsaved_sigs(self)
  29345. def pdf_insert_colorspace_resource(self, key, obj):
  29346. r"""Class-aware wrapper for `::pdf_insert_colorspace_resource()`."""
  29347. return _mupdf.PdfDocument_pdf_insert_colorspace_resource(self, key, obj)
  29348. def pdf_insert_font_resource(self, key, obj):
  29349. r"""Class-aware wrapper for `::pdf_insert_font_resource()`."""
  29350. return _mupdf.PdfDocument_pdf_insert_font_resource(self, key, obj)
  29351. def pdf_insert_page(self, at, page):
  29352. r"""Class-aware wrapper for `::pdf_insert_page()`."""
  29353. return _mupdf.PdfDocument_pdf_insert_page(self, at, page)
  29354. def pdf_invalidate_xfa(self):
  29355. r"""Class-aware wrapper for `::pdf_invalidate_xfa()`."""
  29356. return _mupdf.PdfDocument_pdf_invalidate_xfa(self)
  29357. def pdf_is_local_object(self, obj):
  29358. r"""Class-aware wrapper for `::pdf_is_local_object()`."""
  29359. return _mupdf.PdfDocument_pdf_is_local_object(self, obj)
  29360. def pdf_is_ocg_hidden(self, rdb, usage, ocg):
  29361. r"""Class-aware wrapper for `::pdf_is_ocg_hidden()`."""
  29362. return _mupdf.PdfDocument_pdf_is_ocg_hidden(self, rdb, usage, ocg)
  29363. def pdf_js_set_console(self, console, user):
  29364. r"""Class-aware wrapper for `::pdf_js_set_console()`."""
  29365. return _mupdf.PdfDocument_pdf_js_set_console(self, console, user)
  29366. def pdf_js_supported(self):
  29367. r"""Class-aware wrapper for `::pdf_js_supported()`."""
  29368. return _mupdf.PdfDocument_pdf_js_supported(self)
  29369. def pdf_layer_config_info(self, config_num, info):
  29370. r"""Class-aware wrapper for `::pdf_layer_config_info()`."""
  29371. return _mupdf.PdfDocument_pdf_layer_config_info(self, config_num, info)
  29372. def pdf_layer_config_ui_info(self, ui, info):
  29373. r"""Class-aware wrapper for `::pdf_layer_config_ui_info()`."""
  29374. return _mupdf.PdfDocument_pdf_layer_config_ui_info(self, ui, info)
  29375. def pdf_layer_is_enabled(self, layer):
  29376. r"""Class-aware wrapper for `::pdf_layer_is_enabled()`."""
  29377. return _mupdf.PdfDocument_pdf_layer_is_enabled(self, layer)
  29378. def pdf_layer_name(self, layer):
  29379. r"""Class-aware wrapper for `::pdf_layer_name()`."""
  29380. return _mupdf.PdfDocument_pdf_layer_name(self, layer)
  29381. def pdf_load_compressed_inline_image(self, dict, length, cstm, indexed, image):
  29382. r"""Class-aware wrapper for `::pdf_load_compressed_inline_image()`."""
  29383. return _mupdf.PdfDocument_pdf_load_compressed_inline_image(self, dict, length, cstm, indexed, image)
  29384. def pdf_load_compressed_stream(self, num, worst_case):
  29385. r"""Class-aware wrapper for `::pdf_load_compressed_stream()`."""
  29386. return _mupdf.PdfDocument_pdf_load_compressed_stream(self, num, worst_case)
  29387. def pdf_load_default_colorspaces(self, page):
  29388. r"""Class-aware wrapper for `::pdf_load_default_colorspaces()`."""
  29389. return _mupdf.PdfDocument_pdf_load_default_colorspaces(self, page)
  29390. def pdf_load_embedded_cmap(self, ref):
  29391. r"""Class-aware wrapper for `::pdf_load_embedded_cmap()`."""
  29392. return _mupdf.PdfDocument_pdf_load_embedded_cmap(self, ref)
  29393. def pdf_load_image(self, obj):
  29394. r"""Class-aware wrapper for `::pdf_load_image()`."""
  29395. return _mupdf.PdfDocument_pdf_load_image(self, obj)
  29396. def pdf_load_inline_image(self, rdb, dict, file):
  29397. r"""Class-aware wrapper for `::pdf_load_inline_image()`."""
  29398. return _mupdf.PdfDocument_pdf_load_inline_image(self, rdb, dict, file)
  29399. def pdf_load_journal(self, filename):
  29400. r"""Class-aware wrapper for `::pdf_load_journal()`."""
  29401. return _mupdf.PdfDocument_pdf_load_journal(self, filename)
  29402. def pdf_load_link_annots(self, arg_1, annots, pagenum, page_ctm):
  29403. r"""Class-aware wrapper for `::pdf_load_link_annots()`."""
  29404. return _mupdf.PdfDocument_pdf_load_link_annots(self, arg_1, annots, pagenum, page_ctm)
  29405. def pdf_load_name_tree(self, which):
  29406. r"""Class-aware wrapper for `::pdf_load_name_tree()`."""
  29407. return _mupdf.PdfDocument_pdf_load_name_tree(self, which)
  29408. def pdf_load_object(self, num):
  29409. r"""
  29410. Class-aware wrapper for `::pdf_load_object()`.
  29411. Load a given object.
  29412. This can cause xref reorganisations (solidifications etc) due to
  29413. repairs, so all held pdf_xref_entries should be considered
  29414. invalid after this call (other than the returned one).
  29415. """
  29416. return _mupdf.PdfDocument_pdf_load_object(self, num)
  29417. def pdf_load_outline(self):
  29418. r"""Class-aware wrapper for `::pdf_load_outline()`."""
  29419. return _mupdf.PdfDocument_pdf_load_outline(self)
  29420. def pdf_load_page(self, number):
  29421. r"""Class-aware wrapper for `::pdf_load_page()`."""
  29422. return _mupdf.PdfDocument_pdf_load_page(self, number)
  29423. def pdf_load_page_tree(self):
  29424. r"""Class-aware wrapper for `::pdf_load_page_tree()`."""
  29425. return _mupdf.PdfDocument_pdf_load_page_tree(self)
  29426. def pdf_load_pattern(self, obj):
  29427. r"""Class-aware wrapper for `::pdf_load_pattern()`."""
  29428. return _mupdf.PdfDocument_pdf_load_pattern(self, obj)
  29429. def pdf_load_raw_stream_number(self, num):
  29430. r"""Class-aware wrapper for `::pdf_load_raw_stream_number()`."""
  29431. return _mupdf.PdfDocument_pdf_load_raw_stream_number(self, num)
  29432. def pdf_load_shading(self, obj):
  29433. r"""Class-aware wrapper for `::pdf_load_shading()`."""
  29434. return _mupdf.PdfDocument_pdf_load_shading(self, obj)
  29435. def pdf_load_stream_number(self, num):
  29436. r"""Class-aware wrapper for `::pdf_load_stream_number()`."""
  29437. return _mupdf.PdfDocument_pdf_load_stream_number(self, num)
  29438. def pdf_load_to_unicode(self, font, strings, collection, cmapstm):
  29439. r"""
  29440. Class-aware wrapper for `::pdf_load_to_unicode()`.
  29441. This method has out-params. Python/C# wrappers look like:
  29442. `pdf_load_to_unicode(::pdf_font_desc *font, char *collection, ::pdf_obj *cmapstm)` => const char *strings
  29443. """
  29444. return _mupdf.PdfDocument_pdf_load_to_unicode(self, font, strings, collection, cmapstm)
  29445. def pdf_load_type3_glyphs(self, fontdesc):
  29446. r"""Class-aware wrapper for `::pdf_load_type3_glyphs()`."""
  29447. return _mupdf.PdfDocument_pdf_load_type3_glyphs(self, fontdesc)
  29448. def pdf_load_unencrypted_object(self, num):
  29449. r"""Class-aware wrapper for `::pdf_load_unencrypted_object()`."""
  29450. return _mupdf.PdfDocument_pdf_load_unencrypted_object(self, num)
  29451. def pdf_lookup_dest(self, needle):
  29452. r"""Class-aware wrapper for `::pdf_lookup_dest()`."""
  29453. return _mupdf.PdfDocument_pdf_lookup_dest(self, needle)
  29454. def pdf_lookup_metadata(self, key, ptr, size):
  29455. r"""Class-aware wrapper for `::pdf_lookup_metadata()`."""
  29456. return _mupdf.PdfDocument_pdf_lookup_metadata(self, key, ptr, size)
  29457. def pdf_lookup_metadata2(self, key):
  29458. r"""
  29459. Class-aware wrapper for `::pdf_lookup_metadata2()`.
  29460. C++ alternative to `pdf_lookup_metadata()` that returns a `std::string`
  29461. or calls `fz_throw()` if not found.
  29462. """
  29463. return _mupdf.PdfDocument_pdf_lookup_metadata2(self, key)
  29464. def pdf_lookup_name(self, which, needle):
  29465. r"""Class-aware wrapper for `::pdf_lookup_name()`."""
  29466. return _mupdf.PdfDocument_pdf_lookup_name(self, which, needle)
  29467. def pdf_lookup_page_loc(self, needle, parentp, indexp):
  29468. r"""
  29469. Class-aware wrapper for `::pdf_lookup_page_loc()`.
  29470. This method has out-params. Python/C# wrappers look like:
  29471. `pdf_lookup_page_loc(int needle, ::pdf_obj **parentp)` => `(pdf_obj *, int indexp)`
  29472. """
  29473. return _mupdf.PdfDocument_pdf_lookup_page_loc(self, needle, parentp, indexp)
  29474. def pdf_lookup_page_number(self, pageobj):
  29475. r"""Class-aware wrapper for `::pdf_lookup_page_number()`."""
  29476. return _mupdf.PdfDocument_pdf_lookup_page_number(self, pageobj)
  29477. def pdf_lookup_page_obj(self, needle):
  29478. r"""Class-aware wrapper for `::pdf_lookup_page_obj()`."""
  29479. return _mupdf.PdfDocument_pdf_lookup_page_obj(self, needle)
  29480. def pdf_mark_xref(self):
  29481. r"""Class-aware wrapper for `::pdf_mark_xref()`."""
  29482. return _mupdf.PdfDocument_pdf_mark_xref(self)
  29483. def pdf_metadata(self):
  29484. r"""Class-aware wrapper for `::pdf_metadata()`."""
  29485. return _mupdf.PdfDocument_pdf_metadata(self)
  29486. def pdf_minimize_document(self):
  29487. r"""Class-aware wrapper for `::pdf_minimize_document()`."""
  29488. return _mupdf.PdfDocument_pdf_minimize_document(self)
  29489. def pdf_needs_password(self):
  29490. r"""Class-aware wrapper for `::pdf_needs_password()`."""
  29491. return _mupdf.PdfDocument_pdf_needs_password(self)
  29492. def pdf_new_action_from_link(self, uri):
  29493. r"""Class-aware wrapper for `::pdf_new_action_from_link()`."""
  29494. return _mupdf.PdfDocument_pdf_new_action_from_link(self, uri)
  29495. def pdf_new_array(self, initialcap):
  29496. r"""Class-aware wrapper for `::pdf_new_array()`."""
  29497. return _mupdf.PdfDocument_pdf_new_array(self, initialcap)
  29498. def pdf_new_color_filter(self, chain, struct_parents, transform, options, copts):
  29499. r"""Class-aware wrapper for `::pdf_new_color_filter()`."""
  29500. return _mupdf.PdfDocument_pdf_new_color_filter(self, chain, struct_parents, transform, options, copts)
  29501. def pdf_new_date(self, time):
  29502. r"""Class-aware wrapper for `::pdf_new_date()`."""
  29503. return _mupdf.PdfDocument_pdf_new_date(self, time)
  29504. def pdf_new_dest_from_link(self, uri, is_remote):
  29505. r"""Class-aware wrapper for `::pdf_new_dest_from_link()`."""
  29506. return _mupdf.PdfDocument_pdf_new_dest_from_link(self, uri, is_remote)
  29507. def pdf_new_dict(self, initialcap):
  29508. r"""Class-aware wrapper for `::pdf_new_dict()`."""
  29509. return _mupdf.PdfDocument_pdf_new_dict(self, initialcap)
  29510. def pdf_new_graft_map(self):
  29511. r"""Class-aware wrapper for `::pdf_new_graft_map()`."""
  29512. return _mupdf.PdfDocument_pdf_new_graft_map(self)
  29513. def pdf_new_indirect(self, num, gen):
  29514. r"""Class-aware wrapper for `::pdf_new_indirect()`."""
  29515. return _mupdf.PdfDocument_pdf_new_indirect(self, num, gen)
  29516. def pdf_new_matrix(self, mtx):
  29517. r"""Class-aware wrapper for `::pdf_new_matrix()`."""
  29518. return _mupdf.PdfDocument_pdf_new_matrix(self, mtx)
  29519. def pdf_new_pdf_device(self, topctm, resources, contents):
  29520. r"""Class-aware wrapper for `::pdf_new_pdf_device()`."""
  29521. return _mupdf.PdfDocument_pdf_new_pdf_device(self, topctm, resources, contents)
  29522. def pdf_new_point(self, point):
  29523. r"""Class-aware wrapper for `::pdf_new_point()`."""
  29524. return _mupdf.PdfDocument_pdf_new_point(self, point)
  29525. def pdf_new_rect(self, rect):
  29526. r"""Class-aware wrapper for `::pdf_new_rect()`."""
  29527. return _mupdf.PdfDocument_pdf_new_rect(self, rect)
  29528. def pdf_new_run_processor(self, dev, ctm, struct_parent, usage, gstate, default_cs, cookie, fill_gstate, stroke_gstate):
  29529. r"""Class-aware wrapper for `::pdf_new_run_processor()`."""
  29530. return _mupdf.PdfDocument_pdf_new_run_processor(self, dev, ctm, struct_parent, usage, gstate, default_cs, cookie, fill_gstate, stroke_gstate)
  29531. def pdf_new_sanitize_filter(self, chain, struct_parents, transform, options, sopts):
  29532. r"""Class-aware wrapper for `::pdf_new_sanitize_filter()`."""
  29533. return _mupdf.PdfDocument_pdf_new_sanitize_filter(self, chain, struct_parents, transform, options, sopts)
  29534. def pdf_new_xobject(self, bbox, matrix, res, buffer):
  29535. r"""Class-aware wrapper for `::pdf_new_xobject()`."""
  29536. return _mupdf.PdfDocument_pdf_new_xobject(self, bbox, matrix, res, buffer)
  29537. def pdf_obj_num_is_stream(self, num):
  29538. r"""Class-aware wrapper for `::pdf_obj_num_is_stream()`."""
  29539. return _mupdf.PdfDocument_pdf_obj_num_is_stream(self, num)
  29540. def pdf_object_exists(self, num):
  29541. r"""Class-aware wrapper for `::pdf_object_exists()`."""
  29542. return _mupdf.PdfDocument_pdf_object_exists(self, num)
  29543. def pdf_open_contents_stream(self, obj):
  29544. r"""Class-aware wrapper for `::pdf_open_contents_stream()`."""
  29545. return _mupdf.PdfDocument_pdf_open_contents_stream(self, obj)
  29546. def pdf_open_inline_stream(self, stmobj, length, chain, params):
  29547. r"""Class-aware wrapper for `::pdf_open_inline_stream()`."""
  29548. return _mupdf.PdfDocument_pdf_open_inline_stream(self, stmobj, length, chain, params)
  29549. def pdf_open_raw_stream_number(self, num):
  29550. r"""Class-aware wrapper for `::pdf_open_raw_stream_number()`."""
  29551. return _mupdf.PdfDocument_pdf_open_raw_stream_number(self, num)
  29552. def pdf_open_stream_number(self, num):
  29553. r"""Class-aware wrapper for `::pdf_open_stream_number()`."""
  29554. return _mupdf.PdfDocument_pdf_open_stream_number(self, num)
  29555. def pdf_open_stream_with_offset(self, num, dict, stm_ofs):
  29556. r"""Class-aware wrapper for `::pdf_open_stream_with_offset()`."""
  29557. return _mupdf.PdfDocument_pdf_open_stream_with_offset(self, num, dict, stm_ofs)
  29558. def pdf_page_label(self, page, buf, size):
  29559. r"""Class-aware wrapper for `::pdf_page_label()`."""
  29560. return _mupdf.PdfDocument_pdf_page_label(self, page, buf, size)
  29561. def pdf_page_write(self, mediabox, presources, pcontents):
  29562. r"""
  29563. Class-aware wrapper for `::pdf_page_write()`.
  29564. This method has out-params. Python/C# wrappers look like:
  29565. `pdf_page_write(::fz_rect mediabox, ::pdf_obj **presources, ::fz_buffer **pcontents)` => `(fz_device *)`
  29566. """
  29567. return _mupdf.PdfDocument_pdf_page_write(self, mediabox, presources, pcontents)
  29568. def pdf_parse_array(self, f, buf):
  29569. r"""Class-aware wrapper for `::pdf_parse_array()`."""
  29570. return _mupdf.PdfDocument_pdf_parse_array(self, f, buf)
  29571. def pdf_parse_dict(self, f, buf):
  29572. r"""Class-aware wrapper for `::pdf_parse_dict()`."""
  29573. return _mupdf.PdfDocument_pdf_parse_dict(self, f, buf)
  29574. def pdf_parse_ind_obj(self, f, num, gen, stm_ofs, try_repair):
  29575. r"""
  29576. Class-aware wrapper for `::pdf_parse_ind_obj()`.
  29577. This method has out-params. Python/C# wrappers look like:
  29578. `pdf_parse_ind_obj(::fz_stream *f)` => `(pdf_obj *, int num, int gen, int64_t stm_ofs, int try_repair)`
  29579. """
  29580. return _mupdf.PdfDocument_pdf_parse_ind_obj(self, f, num, gen, stm_ofs, try_repair)
  29581. def pdf_parse_journal_obj(self, stm, onum, ostm, newobj):
  29582. r"""
  29583. Class-aware wrapper for `::pdf_parse_journal_obj()`.
  29584. This method has out-params. Python/C# wrappers look like:
  29585. `pdf_parse_journal_obj(::fz_stream *stm, ::fz_buffer **ostm)` => `(pdf_obj *, int onum, int newobj)`
  29586. """
  29587. return _mupdf.PdfDocument_pdf_parse_journal_obj(self, stm, onum, ostm, newobj)
  29588. def pdf_parse_stm_obj(self, f, buf):
  29589. r"""Class-aware wrapper for `::pdf_parse_stm_obj()`."""
  29590. return _mupdf.PdfDocument_pdf_parse_stm_obj(self, f, buf)
  29591. def pdf_progressive_advance(self, pagenum):
  29592. r"""Class-aware wrapper for `::pdf_progressive_advance()`."""
  29593. return _mupdf.PdfDocument_pdf_progressive_advance(self, pagenum)
  29594. def pdf_purge_local_resources(self):
  29595. r"""Class-aware wrapper for `::pdf_purge_local_resources()`."""
  29596. return _mupdf.PdfDocument_pdf_purge_local_resources(self)
  29597. def pdf_purge_locals_from_store(self):
  29598. r"""Class-aware wrapper for `::pdf_purge_locals_from_store()`."""
  29599. return _mupdf.PdfDocument_pdf_purge_locals_from_store(self)
  29600. def pdf_purge_object_from_store(self, num):
  29601. r"""Class-aware wrapper for `::pdf_purge_object_from_store()`."""
  29602. return _mupdf.PdfDocument_pdf_purge_object_from_store(self, num)
  29603. def pdf_read_journal(self, stm):
  29604. r"""Class-aware wrapper for `::pdf_read_journal()`."""
  29605. return _mupdf.PdfDocument_pdf_read_journal(self, stm)
  29606. def pdf_rearrange_pages(self, count, pages, structure):
  29607. r"""Class-aware wrapper for `::pdf_rearrange_pages()`."""
  29608. return _mupdf.PdfDocument_pdf_rearrange_pages(self, count, pages, structure)
  29609. def pdf_rearrange_pages2(self, pages, structure):
  29610. r"""Class-aware wrapper for `::pdf_rearrange_pages2()`. Swig-friendly wrapper for pdf_rearrange_pages()."""
  29611. return _mupdf.PdfDocument_pdf_rearrange_pages2(self, pages, structure)
  29612. def pdf_recolor_page(self, pagenum, opts):
  29613. r"""Class-aware wrapper for `::pdf_recolor_page()`."""
  29614. return _mupdf.PdfDocument_pdf_recolor_page(self, pagenum, opts)
  29615. def pdf_redact_page(self, page, opts):
  29616. r"""Class-aware wrapper for `::pdf_redact_page()`."""
  29617. return _mupdf.PdfDocument_pdf_redact_page(self, page, opts)
  29618. def pdf_redo(self):
  29619. r"""Class-aware wrapper for `::pdf_redo()`."""
  29620. return _mupdf.PdfDocument_pdf_redo(self)
  29621. def pdf_remove_output_intents(self):
  29622. r"""Class-aware wrapper for `::pdf_remove_output_intents()`."""
  29623. return _mupdf.PdfDocument_pdf_remove_output_intents(self)
  29624. def pdf_repair_obj(self, buf, stmofsp, stmlenp, encrypt, id, page, tmpofs, root):
  29625. r"""
  29626. Class-aware wrapper for `::pdf_repair_obj()`.
  29627. This method has out-params. Python/C# wrappers look like:
  29628. `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)`
  29629. """
  29630. return _mupdf.PdfDocument_pdf_repair_obj(self, buf, stmofsp, stmlenp, encrypt, id, page, tmpofs, root)
  29631. def pdf_repair_xref(self):
  29632. r"""Class-aware wrapper for `::pdf_repair_xref()`."""
  29633. return _mupdf.PdfDocument_pdf_repair_xref(self)
  29634. def pdf_replace_xref(self, entries, n):
  29635. r"""Class-aware wrapper for `::pdf_replace_xref()`."""
  29636. return _mupdf.PdfDocument_pdf_replace_xref(self, entries, n)
  29637. def pdf_reset_form(self, fields, exclude):
  29638. r"""Class-aware wrapper for `::pdf_reset_form()`."""
  29639. return _mupdf.PdfDocument_pdf_reset_form(self, fields, exclude)
  29640. def pdf_resolve_link(self, uri, xp, yp):
  29641. r"""
  29642. Class-aware wrapper for `::pdf_resolve_link()`.
  29643. This method has out-params. Python/C# wrappers look like:
  29644. `pdf_resolve_link(const char *uri)` => `(int, float xp, float yp)`
  29645. """
  29646. return _mupdf.PdfDocument_pdf_resolve_link(self, uri, xp, yp)
  29647. def pdf_rewrite_images(self, opts):
  29648. r"""Class-aware wrapper for `::pdf_rewrite_images()`."""
  29649. return _mupdf.PdfDocument_pdf_rewrite_images(self, opts)
  29650. def pdf_run_document_structure(self, dev, cookie):
  29651. r"""Class-aware wrapper for `::pdf_run_document_structure()`."""
  29652. return _mupdf.PdfDocument_pdf_run_document_structure(self, dev, cookie)
  29653. def pdf_run_glyph(self, resources, contents, dev, ctm, gstate, default_cs, fill_gstate, stroke_gstate):
  29654. r"""Class-aware wrapper for `::pdf_run_glyph()`."""
  29655. return _mupdf.PdfDocument_pdf_run_glyph(self, resources, contents, dev, ctm, gstate, default_cs, fill_gstate, stroke_gstate)
  29656. def pdf_save_document(self, filename, opts):
  29657. r"""Class-aware wrapper for `::pdf_save_document()`."""
  29658. return _mupdf.PdfDocument_pdf_save_document(self, filename, opts)
  29659. def pdf_save_journal(self, filename):
  29660. r"""Class-aware wrapper for `::pdf_save_journal()`."""
  29661. return _mupdf.PdfDocument_pdf_save_journal(self, filename)
  29662. def pdf_save_snapshot(self, filename):
  29663. r"""Class-aware wrapper for `::pdf_save_snapshot()`."""
  29664. return _mupdf.PdfDocument_pdf_save_snapshot(self, filename)
  29665. def pdf_select_layer_config(self, config_num):
  29666. r"""Class-aware wrapper for `::pdf_select_layer_config()`."""
  29667. return _mupdf.PdfDocument_pdf_select_layer_config(self, config_num)
  29668. def pdf_select_layer_config_ui(self, ui):
  29669. r"""Class-aware wrapper for `::pdf_select_layer_config_ui()`."""
  29670. return _mupdf.PdfDocument_pdf_select_layer_config_ui(self, ui)
  29671. def pdf_serialise_journal(self, out):
  29672. r"""Class-aware wrapper for `::pdf_serialise_journal()`."""
  29673. return _mupdf.PdfDocument_pdf_serialise_journal(self, out)
  29674. def pdf_set_annot_field_value(self, widget, text, ignore_trigger_events):
  29675. r"""Class-aware wrapper for `::pdf_set_annot_field_value()`."""
  29676. return _mupdf.PdfDocument_pdf_set_annot_field_value(self, widget, text, ignore_trigger_events)
  29677. def pdf_set_doc_event_callback(self, event_cb, free_event_data_cb, data):
  29678. r"""Class-aware wrapper for `::pdf_set_doc_event_callback()`."""
  29679. return _mupdf.PdfDocument_pdf_set_doc_event_callback(self, event_cb, free_event_data_cb, data)
  29680. def pdf_set_document_language(self, lang):
  29681. r"""Class-aware wrapper for `::pdf_set_document_language()`."""
  29682. return _mupdf.PdfDocument_pdf_set_document_language(self, lang)
  29683. def pdf_set_field_value(self, field, text, ignore_trigger_events):
  29684. r"""Class-aware wrapper for `::pdf_set_field_value()`."""
  29685. return _mupdf.PdfDocument_pdf_set_field_value(self, field, text, ignore_trigger_events)
  29686. def pdf_set_layer_config_as_default(self):
  29687. r"""Class-aware wrapper for `::pdf_set_layer_config_as_default()`."""
  29688. return _mupdf.PdfDocument_pdf_set_layer_config_as_default(self)
  29689. def pdf_set_page_labels(self, index, style, prefix, start):
  29690. r"""Class-aware wrapper for `::pdf_set_page_labels()`."""
  29691. return _mupdf.PdfDocument_pdf_set_page_labels(self, index, style, prefix, start)
  29692. def pdf_set_populating_xref_trailer(self, trailer):
  29693. r"""Class-aware wrapper for `::pdf_set_populating_xref_trailer()`."""
  29694. return _mupdf.PdfDocument_pdf_set_populating_xref_trailer(self, trailer)
  29695. def pdf_signature_byte_range(self, signature, byte_range):
  29696. r"""Class-aware wrapper for `::pdf_signature_byte_range()`."""
  29697. return _mupdf.PdfDocument_pdf_signature_byte_range(self, signature, byte_range)
  29698. def pdf_signature_contents(self, signature, contents):
  29699. r"""
  29700. Class-aware wrapper for `::pdf_signature_contents()`.
  29701. This method has out-params. Python/C# wrappers look like:
  29702. `pdf_signature_contents(::pdf_obj *signature)` => `(size_t, char *contents)`
  29703. """
  29704. return _mupdf.PdfDocument_pdf_signature_contents(self, signature, contents)
  29705. def pdf_signature_hash_bytes(self, signature):
  29706. r"""Class-aware wrapper for `::pdf_signature_hash_bytes()`."""
  29707. return _mupdf.PdfDocument_pdf_signature_hash_bytes(self, signature)
  29708. def pdf_signature_incremental_change_since_signing(self, signature):
  29709. r"""Class-aware wrapper for `::pdf_signature_incremental_change_since_signing()`."""
  29710. return _mupdf.PdfDocument_pdf_signature_incremental_change_since_signing(self, signature)
  29711. def pdf_signature_is_signed(self, field):
  29712. r"""Class-aware wrapper for `::pdf_signature_is_signed()`."""
  29713. return _mupdf.PdfDocument_pdf_signature_is_signed(self, field)
  29714. def pdf_signature_set_value(self, field, signer, stime):
  29715. r"""Class-aware wrapper for `::pdf_signature_set_value()`."""
  29716. return _mupdf.PdfDocument_pdf_signature_set_value(self, field, signer, stime)
  29717. def pdf_subset_fonts(self, pages_len, pages):
  29718. r"""Class-aware wrapper for `::pdf_subset_fonts()`."""
  29719. return _mupdf.PdfDocument_pdf_subset_fonts(self, pages_len, pages)
  29720. def pdf_subset_fonts2(self, pages):
  29721. r"""Class-aware wrapper for `::pdf_subset_fonts2()`. Swig-friendly wrapper for pdf_subset_fonts()."""
  29722. return _mupdf.PdfDocument_pdf_subset_fonts2(self, pages)
  29723. def pdf_sync_open_pages(self):
  29724. r"""Class-aware wrapper for `::pdf_sync_open_pages()`."""
  29725. return _mupdf.PdfDocument_pdf_sync_open_pages(self)
  29726. def pdf_toggle_layer_config_ui(self, ui):
  29727. r"""Class-aware wrapper for `::pdf_toggle_layer_config_ui()`."""
  29728. return _mupdf.PdfDocument_pdf_toggle_layer_config_ui(self, ui)
  29729. def pdf_trailer(self):
  29730. r"""Class-aware wrapper for `::pdf_trailer()`."""
  29731. return _mupdf.PdfDocument_pdf_trailer(self)
  29732. def pdf_undo(self):
  29733. r"""Class-aware wrapper for `::pdf_undo()`."""
  29734. return _mupdf.PdfDocument_pdf_undo(self)
  29735. def pdf_undoredo_state(self, steps):
  29736. r"""
  29737. Class-aware wrapper for `::pdf_undoredo_state()`.
  29738. This method has out-params. Python/C# wrappers look like:
  29739. `pdf_undoredo_state()` => `(int, int steps)`
  29740. """
  29741. return _mupdf.PdfDocument_pdf_undoredo_state(self, steps)
  29742. def pdf_undoredo_step(self, step):
  29743. r"""Class-aware wrapper for `::pdf_undoredo_step()`."""
  29744. return _mupdf.PdfDocument_pdf_undoredo_step(self, step)
  29745. def pdf_update_object(self, num, obj):
  29746. r"""Class-aware wrapper for `::pdf_update_object()`."""
  29747. return _mupdf.PdfDocument_pdf_update_object(self, num, obj)
  29748. def pdf_update_stream(self, ref, buf, compressed):
  29749. r"""Class-aware wrapper for `::pdf_update_stream()`."""
  29750. return _mupdf.PdfDocument_pdf_update_stream(self, ref, buf, compressed)
  29751. def pdf_update_xobject(self, xobj, bbox, mat, res, buffer):
  29752. r"""Class-aware wrapper for `::pdf_update_xobject()`."""
  29753. return _mupdf.PdfDocument_pdf_update_xobject(self, xobj, bbox, mat, res, buffer)
  29754. def pdf_validate_change_history(self):
  29755. r"""Class-aware wrapper for `::pdf_validate_change_history()`."""
  29756. return _mupdf.PdfDocument_pdf_validate_change_history(self)
  29757. def pdf_validate_changes(self, version):
  29758. r"""Class-aware wrapper for `::pdf_validate_changes()`."""
  29759. return _mupdf.PdfDocument_pdf_validate_changes(self, version)
  29760. def pdf_version(self):
  29761. r"""Class-aware wrapper for `::pdf_version()`."""
  29762. return _mupdf.PdfDocument_pdf_version(self)
  29763. def pdf_was_pure_xfa(self):
  29764. r"""Class-aware wrapper for `::pdf_was_pure_xfa()`."""
  29765. return _mupdf.PdfDocument_pdf_was_pure_xfa(self)
  29766. def pdf_was_repaired(self):
  29767. r"""Class-aware wrapper for `::pdf_was_repaired()`."""
  29768. return _mupdf.PdfDocument_pdf_was_repaired(self)
  29769. def pdf_write_document(self, out, opts):
  29770. r"""Class-aware wrapper for `::pdf_write_document()`."""
  29771. return _mupdf.PdfDocument_pdf_write_document(self, out, opts)
  29772. def pdf_write_journal(self, out):
  29773. r"""Class-aware wrapper for `::pdf_write_journal()`."""
  29774. return _mupdf.PdfDocument_pdf_write_journal(self, out)
  29775. def pdf_write_snapshot(self, out):
  29776. r"""Class-aware wrapper for `::pdf_write_snapshot()`."""
  29777. return _mupdf.PdfDocument_pdf_write_snapshot(self, out)
  29778. def pdf_xref_ensure_incremental_object(self, num):
  29779. r"""Class-aware wrapper for `::pdf_xref_ensure_incremental_object()`."""
  29780. return _mupdf.PdfDocument_pdf_xref_ensure_incremental_object(self, num)
  29781. def pdf_xref_ensure_local_object(self, num):
  29782. r"""Class-aware wrapper for `::pdf_xref_ensure_local_object()`."""
  29783. return _mupdf.PdfDocument_pdf_xref_ensure_local_object(self, num)
  29784. def pdf_xref_entry_map(self, fn, arg):
  29785. r"""Class-aware wrapper for `::pdf_xref_entry_map()`."""
  29786. return _mupdf.PdfDocument_pdf_xref_entry_map(self, fn, arg)
  29787. def pdf_xref_is_incremental(self, num):
  29788. r"""Class-aware wrapper for `::pdf_xref_is_incremental()`."""
  29789. return _mupdf.PdfDocument_pdf_xref_is_incremental(self, num)
  29790. def pdf_xref_len(self):
  29791. r"""Class-aware wrapper for `::pdf_xref_len()`."""
  29792. return _mupdf.PdfDocument_pdf_xref_len(self)
  29793. def pdf_xref_obj_is_unsaved_signature(self, obj):
  29794. r"""Class-aware wrapper for `::pdf_xref_obj_is_unsaved_signature()`."""
  29795. return _mupdf.PdfDocument_pdf_xref_obj_is_unsaved_signature(self, obj)
  29796. def pdf_xref_remove_unsaved_signature(self, field):
  29797. r"""Class-aware wrapper for `::pdf_xref_remove_unsaved_signature()`."""
  29798. return _mupdf.PdfDocument_pdf_xref_remove_unsaved_signature(self, field)
  29799. def pdf_xref_store_unsaved_signature(self, field, signer):
  29800. r"""Class-aware wrapper for `::pdf_xref_store_unsaved_signature()`."""
  29801. return _mupdf.PdfDocument_pdf_xref_store_unsaved_signature(self, field, signer)
  29802. def pdf_zugferd_profile(self, version):
  29803. r"""
  29804. Class-aware wrapper for `::pdf_zugferd_profile()`.
  29805. This method has out-params. Python/C# wrappers look like:
  29806. `pdf_zugferd_profile()` => `(enum pdf_zugferd_profile, float version)`
  29807. """
  29808. return _mupdf.PdfDocument_pdf_zugferd_profile(self, version)
  29809. def pdf_zugferd_xml(self):
  29810. r"""Class-aware wrapper for `::pdf_zugferd_xml()`."""
  29811. return _mupdf.PdfDocument_pdf_zugferd_xml(self)
  29812. def super(self):
  29813. r"""Returns wrapper for .super member."""
  29814. return _mupdf.PdfDocument_super(self)
  29815. def __init__(self, *args):
  29816. r"""
  29817. *Overload 1:*
  29818. == Constructors. Constructor using `pdf_create_document()`.
  29819. |
  29820. *Overload 2:*
  29821. Constructor using `pdf_document_from_fz_document()`.
  29822. |
  29823. *Overload 3:*
  29824. Constructor using `pdf_open_document()`.
  29825. |
  29826. *Overload 4:*
  29827. Constructor using `pdf_open_document_with_stream()`.
  29828. |
  29829. *Overload 5:*
  29830. Copy constructor using `pdf_keep_document()`.
  29831. |
  29832. *Overload 6:*
  29833. Constructor using raw copy of pre-existing `::pdf_document`.
  29834. """
  29835. _mupdf.PdfDocument_swiginit(self, _mupdf.new_PdfDocument(*args))
  29836. __swig_destroy__ = _mupdf.delete_PdfDocument
  29837. def m_internal_value(self):
  29838. r"""Return numerical value of .m_internal; helps with Python debugging."""
  29839. return _mupdf.PdfDocument_m_internal_value(self)
  29840. def __nonzero__(self):
  29841. return _mupdf.PdfDocument___nonzero__(self)
  29842. __bool__ = __nonzero__
  29843. m_internal = property(_mupdf.PdfDocument_m_internal_get, _mupdf.PdfDocument_m_internal_set, doc=r"""Pointer to wrapped data.""")
  29844. s_num_instances = property(_mupdf.PdfDocument_s_num_instances_get, _mupdf.PdfDocument_s_num_instances_set)
  29845. # Register PdfDocument in _mupdf:
  29846. _mupdf.PdfDocument_swigregister(PdfDocument)
  29847. class PdfFilespecParams(object):
  29848. r"""Wrapper class for struct `pdf_filespec_params`. Not copyable or assignable."""
  29849. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  29850. __repr__ = _swig_repr
  29851. def __init__(self, *args):
  29852. r"""
  29853. *Overload 1:*
  29854. Default constructor, sets `m_internal` to null.
  29855. |
  29856. *Overload 2:*
  29857. Constructor using raw copy of pre-existing `::pdf_filespec_params`.
  29858. """
  29859. _mupdf.PdfFilespecParams_swiginit(self, _mupdf.new_PdfFilespecParams(*args))
  29860. __swig_destroy__ = _mupdf.delete_PdfFilespecParams
  29861. def m_internal_value(self):
  29862. r"""Return numerical value of .m_internal; helps with Python debugging."""
  29863. return _mupdf.PdfFilespecParams_m_internal_value(self)
  29864. def __nonzero__(self):
  29865. return _mupdf.PdfFilespecParams___nonzero__(self)
  29866. __bool__ = __nonzero__
  29867. m_internal = property(_mupdf.PdfFilespecParams_m_internal_get, _mupdf.PdfFilespecParams_m_internal_set, doc=r"""Pointer to wrapped data.""")
  29868. s_num_instances = property(_mupdf.PdfFilespecParams_s_num_instances_get, _mupdf.PdfFilespecParams_s_num_instances_set)
  29869. # Register PdfFilespecParams in _mupdf:
  29870. _mupdf.PdfFilespecParams_swigregister(PdfFilespecParams)
  29871. class PdfFilterFactory(object):
  29872. r"""Wrapper class for struct `pdf_filter_factory`."""
  29873. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  29874. __repr__ = _swig_repr
  29875. def __init__(self, *args):
  29876. r"""
  29877. *Overload 1:*
  29878. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  29879. |
  29880. *Overload 2:*
  29881. Constructor using raw copy of pre-existing `::pdf_filter_factory`.
  29882. |
  29883. *Overload 3:*
  29884. Constructor using raw copy of pre-existing `::pdf_filter_factory`.
  29885. """
  29886. _mupdf.PdfFilterFactory_swiginit(self, _mupdf.new_PdfFilterFactory(*args))
  29887. def internal(self, *args):
  29888. r"""
  29889. *Overload 1:*
  29890. Access as underlying struct.
  29891. |
  29892. *Overload 2:*
  29893. Access as underlying struct.
  29894. """
  29895. return _mupdf.PdfFilterFactory_internal(self, *args)
  29896. __swig_destroy__ = _mupdf.delete_PdfFilterFactory
  29897. filter = property(_mupdf.PdfFilterFactory_filter_get, _mupdf.PdfFilterFactory_filter_set)
  29898. options = property(_mupdf.PdfFilterFactory_options_get, _mupdf.PdfFilterFactory_options_set)
  29899. s_num_instances = property(_mupdf.PdfFilterFactory_s_num_instances_get, _mupdf.PdfFilterFactory_s_num_instances_set)
  29900. def to_string(self):
  29901. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  29902. return _mupdf.PdfFilterFactory_to_string(self)
  29903. def __eq__(self, rhs):
  29904. r"""Comparison method."""
  29905. return _mupdf.PdfFilterFactory___eq__(self, rhs)
  29906. def __ne__(self, rhs):
  29907. r"""Comparison method."""
  29908. return _mupdf.PdfFilterFactory___ne__(self, rhs)
  29909. # Register PdfFilterFactory in _mupdf:
  29910. _mupdf.PdfFilterFactory_swigregister(PdfFilterFactory)
  29911. class PdfFilterFactory2(PdfFilterFactory):
  29912. r"""Wrapper class for struct pdf_filter_factory with virtual fns for each fnptr; this is for use as a SWIG Director class."""
  29913. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  29914. __repr__ = _swig_repr
  29915. def __init__(self):
  29916. r"""== Constructor."""
  29917. if self.__class__ == PdfFilterFactory2:
  29918. _self = None
  29919. else:
  29920. _self = self
  29921. _mupdf.PdfFilterFactory2_swiginit(self, _mupdf.new_PdfFilterFactory2(_self, ))
  29922. __swig_destroy__ = _mupdf.delete_PdfFilterFactory2
  29923. def use_virtual_filter(self, use=True):
  29924. r"""
  29925. These methods set the function pointers in *m_internal
  29926. to point to internal callbacks that call our virtual methods.
  29927. """
  29928. return _mupdf.PdfFilterFactory2_use_virtual_filter(self, use)
  29929. def filter(self, arg_0, arg_1, arg_2, arg_3, arg_4, arg_5):
  29930. r"""Default virtual method implementations; these all throw an exception."""
  29931. return _mupdf.PdfFilterFactory2_filter(self, arg_0, arg_1, arg_2, arg_3, arg_4, arg_5)
  29932. def __disown__(self):
  29933. self.this.disown()
  29934. _mupdf.disown_PdfFilterFactory2(self)
  29935. return weakref.proxy(self)
  29936. # Register PdfFilterFactory2 in _mupdf:
  29937. _mupdf.PdfFilterFactory2_swigregister(PdfFilterFactory2)
  29938. class PdfFilterOptions(object):
  29939. r"""Wrapper class for struct `pdf_filter_options`."""
  29940. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  29941. __repr__ = _swig_repr
  29942. def add_factory(self, factory):
  29943. r"""We use default copy constructor and operator=. Appends `factory` to internal vector and updates this->filters."""
  29944. return _mupdf.PdfFilterOptions_add_factory(self, factory)
  29945. def __init__(self, *args):
  29946. r"""
  29947. *Overload 1:*
  29948. Default constructor initialises all fields to null/zero.
  29949. |
  29950. *Overload 2:*
  29951. Constructor using raw copy of pre-existing `::pdf_filter_options`.
  29952. |
  29953. *Overload 3:*
  29954. Constructor using raw copy of pre-existing `::pdf_filter_options`.
  29955. """
  29956. _mupdf.PdfFilterOptions_swiginit(self, _mupdf.new_PdfFilterOptions(*args))
  29957. def internal(self, *args):
  29958. r"""
  29959. *Overload 1:*
  29960. Access as underlying struct.
  29961. |
  29962. *Overload 2:*
  29963. Access as underlying struct.
  29964. """
  29965. return _mupdf.PdfFilterOptions_internal(self, *args)
  29966. __swig_destroy__ = _mupdf.delete_PdfFilterOptions
  29967. recurse = property(_mupdf.PdfFilterOptions_recurse_get, _mupdf.PdfFilterOptions_recurse_set)
  29968. instance_forms = property(_mupdf.PdfFilterOptions_instance_forms_get, _mupdf.PdfFilterOptions_instance_forms_set)
  29969. ascii = property(_mupdf.PdfFilterOptions_ascii_get, _mupdf.PdfFilterOptions_ascii_set)
  29970. no_update = property(_mupdf.PdfFilterOptions_no_update_get, _mupdf.PdfFilterOptions_no_update_set)
  29971. opaque = property(_mupdf.PdfFilterOptions_opaque_get, _mupdf.PdfFilterOptions_opaque_set)
  29972. complete = property(_mupdf.PdfFilterOptions_complete_get, _mupdf.PdfFilterOptions_complete_set)
  29973. filters = property(_mupdf.PdfFilterOptions_filters_get, _mupdf.PdfFilterOptions_filters_set)
  29974. newlines = property(_mupdf.PdfFilterOptions_newlines_get, _mupdf.PdfFilterOptions_newlines_set)
  29975. s_num_instances = property(_mupdf.PdfFilterOptions_s_num_instances_get, _mupdf.PdfFilterOptions_s_num_instances_set)
  29976. def to_string(self):
  29977. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  29978. return _mupdf.PdfFilterOptions_to_string(self)
  29979. def __eq__(self, rhs):
  29980. r"""Comparison method."""
  29981. return _mupdf.PdfFilterOptions___eq__(self, rhs)
  29982. def __ne__(self, rhs):
  29983. r"""Comparison method."""
  29984. return _mupdf.PdfFilterOptions___ne__(self, rhs)
  29985. m_filters = property(_mupdf.PdfFilterOptions_m_filters_get, _mupdf.PdfFilterOptions_m_filters_set)
  29986. # Register PdfFilterOptions in _mupdf:
  29987. _mupdf.PdfFilterOptions_swigregister(PdfFilterOptions)
  29988. class PdfFilterOptions2(PdfFilterOptions):
  29989. r"""Wrapper class for struct pdf_filter_options with virtual fns for each fnptr; this is for use as a SWIG Director class."""
  29990. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  29991. __repr__ = _swig_repr
  29992. def __init__(self):
  29993. r"""== Constructor."""
  29994. if self.__class__ == PdfFilterOptions2:
  29995. _self = None
  29996. else:
  29997. _self = self
  29998. _mupdf.PdfFilterOptions2_swiginit(self, _mupdf.new_PdfFilterOptions2(_self, ))
  29999. __swig_destroy__ = _mupdf.delete_PdfFilterOptions2
  30000. def use_virtual_complete(self, use=True):
  30001. r"""
  30002. These methods set the function pointers in *m_internal
  30003. to point to internal callbacks that call our virtual methods.
  30004. """
  30005. return _mupdf.PdfFilterOptions2_use_virtual_complete(self, use)
  30006. def complete(self, arg_0, arg_1):
  30007. r"""Default virtual method implementations; these all throw an exception."""
  30008. return _mupdf.PdfFilterOptions2_complete(self, arg_0, arg_1)
  30009. def __disown__(self):
  30010. self.this.disown()
  30011. _mupdf.disown_PdfFilterOptions2(self)
  30012. return weakref.proxy(self)
  30013. # Register PdfFilterOptions2 in _mupdf:
  30014. _mupdf.PdfFilterOptions2_swigregister(PdfFilterOptions2)
  30015. class PdfFontDesc(object):
  30016. r"""Wrapper class for struct `pdf_font_desc`. Not copyable or assignable."""
  30017. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30018. __repr__ = _swig_repr
  30019. def pdf_add_hmtx(self, lo, hi, w):
  30020. r"""Class-aware wrapper for `::pdf_add_hmtx()`."""
  30021. return _mupdf.PdfFontDesc_pdf_add_hmtx(self, lo, hi, w)
  30022. def pdf_add_vmtx(self, lo, hi, x, y, w):
  30023. r"""Class-aware wrapper for `::pdf_add_vmtx()`."""
  30024. return _mupdf.PdfFontDesc_pdf_add_vmtx(self, lo, hi, x, y, w)
  30025. def pdf_end_hmtx(self):
  30026. r"""Class-aware wrapper for `::pdf_end_hmtx()`."""
  30027. return _mupdf.PdfFontDesc_pdf_end_hmtx(self)
  30028. def pdf_end_vmtx(self):
  30029. r"""Class-aware wrapper for `::pdf_end_vmtx()`."""
  30030. return _mupdf.PdfFontDesc_pdf_end_vmtx(self)
  30031. def pdf_font_cid_to_gid(self, cid):
  30032. r"""Class-aware wrapper for `::pdf_font_cid_to_gid()`."""
  30033. return _mupdf.PdfFontDesc_pdf_font_cid_to_gid(self, cid)
  30034. def pdf_set_default_hmtx(self, w):
  30035. r"""Class-aware wrapper for `::pdf_set_default_hmtx()`."""
  30036. return _mupdf.PdfFontDesc_pdf_set_default_hmtx(self, w)
  30037. def pdf_set_default_vmtx(self, y, w):
  30038. r"""Class-aware wrapper for `::pdf_set_default_vmtx()`."""
  30039. return _mupdf.PdfFontDesc_pdf_set_default_vmtx(self, y, w)
  30040. def pdf_set_font_wmode(self, wmode):
  30041. r"""Class-aware wrapper for `::pdf_set_font_wmode()`."""
  30042. return _mupdf.PdfFontDesc_pdf_set_font_wmode(self, wmode)
  30043. def __init__(self, *args):
  30044. r"""
  30045. *Overload 1:*
  30046. == Constructors. Constructor using `pdf_new_font_desc()`.
  30047. |
  30048. *Overload 2:*
  30049. Constructor using raw copy of pre-existing `::pdf_font_desc`.
  30050. """
  30051. _mupdf.PdfFontDesc_swiginit(self, _mupdf.new_PdfFontDesc(*args))
  30052. __swig_destroy__ = _mupdf.delete_PdfFontDesc
  30053. def m_internal_value(self):
  30054. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30055. return _mupdf.PdfFontDesc_m_internal_value(self)
  30056. def __nonzero__(self):
  30057. return _mupdf.PdfFontDesc___nonzero__(self)
  30058. __bool__ = __nonzero__
  30059. m_internal = property(_mupdf.PdfFontDesc_m_internal_get, _mupdf.PdfFontDesc_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30060. s_num_instances = property(_mupdf.PdfFontDesc_s_num_instances_get, _mupdf.PdfFontDesc_s_num_instances_set)
  30061. # Register PdfFontDesc in _mupdf:
  30062. _mupdf.PdfFontDesc_swigregister(PdfFontDesc)
  30063. class PdfFontResourceKey(object):
  30064. r"""Wrapper class for struct `pdf_font_resource_key`. Not copyable or assignable."""
  30065. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30066. __repr__ = _swig_repr
  30067. def __init__(self, *args):
  30068. r"""
  30069. *Overload 1:*
  30070. Default constructor, sets `m_internal` to null.
  30071. |
  30072. *Overload 2:*
  30073. Constructor using raw copy of pre-existing `::pdf_font_resource_key`.
  30074. """
  30075. _mupdf.PdfFontResourceKey_swiginit(self, _mupdf.new_PdfFontResourceKey(*args))
  30076. __swig_destroy__ = _mupdf.delete_PdfFontResourceKey
  30077. def m_internal_value(self):
  30078. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30079. return _mupdf.PdfFontResourceKey_m_internal_value(self)
  30080. def __nonzero__(self):
  30081. return _mupdf.PdfFontResourceKey___nonzero__(self)
  30082. __bool__ = __nonzero__
  30083. m_internal = property(_mupdf.PdfFontResourceKey_m_internal_get, _mupdf.PdfFontResourceKey_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30084. s_num_instances = property(_mupdf.PdfFontResourceKey_s_num_instances_get, _mupdf.PdfFontResourceKey_s_num_instances_set)
  30085. # Register PdfFontResourceKey in _mupdf:
  30086. _mupdf.PdfFontResourceKey_swigregister(PdfFontResourceKey)
  30087. class PdfFunction(object):
  30088. r"""Wrapper class for struct `pdf_function`."""
  30089. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30090. __repr__ = _swig_repr
  30091. def pdf_eval_function(self, _in, inlen, out, outlen):
  30092. r"""
  30093. Class-aware wrapper for `::pdf_eval_function()`.
  30094. This method has out-params. Python/C# wrappers look like:
  30095. `pdf_eval_function(const float *in, int inlen, int outlen)` => float out
  30096. """
  30097. return _mupdf.PdfFunction_pdf_eval_function(self, _in, inlen, out, outlen)
  30098. def pdf_function_size(self):
  30099. r"""Class-aware wrapper for `::pdf_function_size()`."""
  30100. return _mupdf.PdfFunction_pdf_function_size(self)
  30101. def __init__(self, *args):
  30102. r"""
  30103. *Overload 1:*
  30104. Copy constructor using `pdf_keep_function()`.
  30105. |
  30106. *Overload 2:*
  30107. Default constructor, sets `m_internal` to null.
  30108. |
  30109. *Overload 3:*
  30110. Constructor using raw copy of pre-existing `::pdf_function`.
  30111. """
  30112. _mupdf.PdfFunction_swiginit(self, _mupdf.new_PdfFunction(*args))
  30113. __swig_destroy__ = _mupdf.delete_PdfFunction
  30114. def m_internal_value(self):
  30115. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30116. return _mupdf.PdfFunction_m_internal_value(self)
  30117. def __nonzero__(self):
  30118. return _mupdf.PdfFunction___nonzero__(self)
  30119. __bool__ = __nonzero__
  30120. m_internal = property(_mupdf.PdfFunction_m_internal_get, _mupdf.PdfFunction_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30121. s_num_instances = property(_mupdf.PdfFunction_s_num_instances_get, _mupdf.PdfFunction_s_num_instances_set)
  30122. # Register PdfFunction in _mupdf:
  30123. _mupdf.PdfFunction_swigregister(PdfFunction)
  30124. class PdfGraftMap(object):
  30125. r"""Wrapper class for struct `pdf_graft_map`."""
  30126. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30127. __repr__ = _swig_repr
  30128. def pdf_graft_mapped_object(self, obj):
  30129. r"""Class-aware wrapper for `::pdf_graft_mapped_object()`."""
  30130. return _mupdf.PdfGraftMap_pdf_graft_mapped_object(self, obj)
  30131. def pdf_graft_mapped_page(self, page_to, src, page_from):
  30132. r"""Class-aware wrapper for `::pdf_graft_mapped_page()`."""
  30133. return _mupdf.PdfGraftMap_pdf_graft_mapped_page(self, page_to, src, page_from)
  30134. def __init__(self, *args):
  30135. r"""
  30136. *Overload 1:*
  30137. == Constructors. Constructor using `pdf_new_graft_map()`.
  30138. |
  30139. *Overload 2:*
  30140. Copy constructor using `pdf_keep_graft_map()`.
  30141. |
  30142. *Overload 3:*
  30143. Default constructor, sets `m_internal` to null.
  30144. |
  30145. *Overload 4:*
  30146. Constructor using raw copy of pre-existing `::pdf_graft_map`.
  30147. """
  30148. _mupdf.PdfGraftMap_swiginit(self, _mupdf.new_PdfGraftMap(*args))
  30149. __swig_destroy__ = _mupdf.delete_PdfGraftMap
  30150. def m_internal_value(self):
  30151. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30152. return _mupdf.PdfGraftMap_m_internal_value(self)
  30153. def __nonzero__(self):
  30154. return _mupdf.PdfGraftMap___nonzero__(self)
  30155. __bool__ = __nonzero__
  30156. m_internal = property(_mupdf.PdfGraftMap_m_internal_get, _mupdf.PdfGraftMap_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30157. s_num_instances = property(_mupdf.PdfGraftMap_s_num_instances_get, _mupdf.PdfGraftMap_s_num_instances_set)
  30158. # Register PdfGraftMap in _mupdf:
  30159. _mupdf.PdfGraftMap_swigregister(PdfGraftMap)
  30160. class PdfGstate(object):
  30161. r"""Wrapper class for struct `pdf_gstate`. Not copyable or assignable."""
  30162. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30163. __repr__ = _swig_repr
  30164. def __init__(self, *args):
  30165. r"""
  30166. *Overload 1:*
  30167. Default constructor, sets `m_internal` to null.
  30168. |
  30169. *Overload 2:*
  30170. Constructor using raw copy of pre-existing `::pdf_gstate`.
  30171. """
  30172. _mupdf.PdfGstate_swiginit(self, _mupdf.new_PdfGstate(*args))
  30173. __swig_destroy__ = _mupdf.delete_PdfGstate
  30174. def m_internal_value(self):
  30175. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30176. return _mupdf.PdfGstate_m_internal_value(self)
  30177. def __nonzero__(self):
  30178. return _mupdf.PdfGstate___nonzero__(self)
  30179. __bool__ = __nonzero__
  30180. m_internal = property(_mupdf.PdfGstate_m_internal_get, _mupdf.PdfGstate_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30181. s_num_instances = property(_mupdf.PdfGstate_s_num_instances_get, _mupdf.PdfGstate_s_num_instances_set)
  30182. # Register PdfGstate in _mupdf:
  30183. _mupdf.PdfGstate_swigregister(PdfGstate)
  30184. class PdfHintPage(object):
  30185. r"""Wrapper class for struct `pdf_hint_page`. Not copyable or assignable."""
  30186. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30187. __repr__ = _swig_repr
  30188. def __init__(self, *args):
  30189. r"""
  30190. *Overload 1:*
  30191. Default constructor, sets `m_internal` to null.
  30192. |
  30193. *Overload 2:*
  30194. Constructor using raw copy of pre-existing `::pdf_hint_page`.
  30195. """
  30196. _mupdf.PdfHintPage_swiginit(self, _mupdf.new_PdfHintPage(*args))
  30197. __swig_destroy__ = _mupdf.delete_PdfHintPage
  30198. def m_internal_value(self):
  30199. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30200. return _mupdf.PdfHintPage_m_internal_value(self)
  30201. def __nonzero__(self):
  30202. return _mupdf.PdfHintPage___nonzero__(self)
  30203. __bool__ = __nonzero__
  30204. m_internal = property(_mupdf.PdfHintPage_m_internal_get, _mupdf.PdfHintPage_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30205. s_num_instances = property(_mupdf.PdfHintPage_s_num_instances_get, _mupdf.PdfHintPage_s_num_instances_set)
  30206. # Register PdfHintPage in _mupdf:
  30207. _mupdf.PdfHintPage_swigregister(PdfHintPage)
  30208. class PdfHintShared(object):
  30209. r"""Wrapper class for struct `pdf_hint_shared`. Not copyable or assignable."""
  30210. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30211. __repr__ = _swig_repr
  30212. def __init__(self, *args):
  30213. r"""
  30214. *Overload 1:*
  30215. Default constructor, sets `m_internal` to null.
  30216. |
  30217. *Overload 2:*
  30218. Constructor using raw copy of pre-existing `::pdf_hint_shared`.
  30219. """
  30220. _mupdf.PdfHintShared_swiginit(self, _mupdf.new_PdfHintShared(*args))
  30221. __swig_destroy__ = _mupdf.delete_PdfHintShared
  30222. def m_internal_value(self):
  30223. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30224. return _mupdf.PdfHintShared_m_internal_value(self)
  30225. def __nonzero__(self):
  30226. return _mupdf.PdfHintShared___nonzero__(self)
  30227. __bool__ = __nonzero__
  30228. m_internal = property(_mupdf.PdfHintShared_m_internal_get, _mupdf.PdfHintShared_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30229. s_num_instances = property(_mupdf.PdfHintShared_s_num_instances_get, _mupdf.PdfHintShared_s_num_instances_set)
  30230. # Register PdfHintShared in _mupdf:
  30231. _mupdf.PdfHintShared_swigregister(PdfHintShared)
  30232. class PdfHmtx(object):
  30233. r"""Wrapper class for struct `pdf_hmtx`. Not copyable or assignable."""
  30234. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30235. __repr__ = _swig_repr
  30236. def __init__(self, *args):
  30237. r"""
  30238. *Overload 1:*
  30239. Default constructor, sets `m_internal` to null.
  30240. |
  30241. *Overload 2:*
  30242. Constructor using raw copy of pre-existing `::pdf_hmtx`.
  30243. """
  30244. _mupdf.PdfHmtx_swiginit(self, _mupdf.new_PdfHmtx(*args))
  30245. __swig_destroy__ = _mupdf.delete_PdfHmtx
  30246. def m_internal_value(self):
  30247. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30248. return _mupdf.PdfHmtx_m_internal_value(self)
  30249. def __nonzero__(self):
  30250. return _mupdf.PdfHmtx___nonzero__(self)
  30251. __bool__ = __nonzero__
  30252. m_internal = property(_mupdf.PdfHmtx_m_internal_get, _mupdf.PdfHmtx_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30253. s_num_instances = property(_mupdf.PdfHmtx_s_num_instances_get, _mupdf.PdfHmtx_s_num_instances_set)
  30254. # Register PdfHmtx in _mupdf:
  30255. _mupdf.PdfHmtx_swigregister(PdfHmtx)
  30256. class PdfImageRewriterOptions(object):
  30257. r"""Wrapper class for struct `pdf_image_rewriter_options`."""
  30258. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30259. __repr__ = _swig_repr
  30260. def __init__(self, *args):
  30261. r"""
  30262. *Overload 1:*
  30263. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  30264. |
  30265. *Overload 2:*
  30266. Constructor using raw copy of pre-existing `::pdf_image_rewriter_options`.
  30267. |
  30268. *Overload 3:*
  30269. Constructor using raw copy of pre-existing `::pdf_image_rewriter_options`.
  30270. """
  30271. _mupdf.PdfImageRewriterOptions_swiginit(self, _mupdf.new_PdfImageRewriterOptions(*args))
  30272. def internal(self, *args):
  30273. r"""
  30274. *Overload 1:*
  30275. Access as underlying struct.
  30276. |
  30277. *Overload 2:*
  30278. Access as underlying struct.
  30279. """
  30280. return _mupdf.PdfImageRewriterOptions_internal(self, *args)
  30281. __swig_destroy__ = _mupdf.delete_PdfImageRewriterOptions
  30282. color_lossless_image_subsample_method = property(_mupdf.PdfImageRewriterOptions_color_lossless_image_subsample_method_get, _mupdf.PdfImageRewriterOptions_color_lossless_image_subsample_method_set)
  30283. color_lossy_image_subsample_method = property(_mupdf.PdfImageRewriterOptions_color_lossy_image_subsample_method_get, _mupdf.PdfImageRewriterOptions_color_lossy_image_subsample_method_set)
  30284. color_lossless_image_subsample_threshold = property(_mupdf.PdfImageRewriterOptions_color_lossless_image_subsample_threshold_get, _mupdf.PdfImageRewriterOptions_color_lossless_image_subsample_threshold_set)
  30285. color_lossless_image_subsample_to = property(_mupdf.PdfImageRewriterOptions_color_lossless_image_subsample_to_get, _mupdf.PdfImageRewriterOptions_color_lossless_image_subsample_to_set)
  30286. color_lossy_image_subsample_threshold = property(_mupdf.PdfImageRewriterOptions_color_lossy_image_subsample_threshold_get, _mupdf.PdfImageRewriterOptions_color_lossy_image_subsample_threshold_set)
  30287. color_lossy_image_subsample_to = property(_mupdf.PdfImageRewriterOptions_color_lossy_image_subsample_to_get, _mupdf.PdfImageRewriterOptions_color_lossy_image_subsample_to_set)
  30288. color_lossless_image_recompress_method = property(_mupdf.PdfImageRewriterOptions_color_lossless_image_recompress_method_get, _mupdf.PdfImageRewriterOptions_color_lossless_image_recompress_method_set)
  30289. color_lossy_image_recompress_method = property(_mupdf.PdfImageRewriterOptions_color_lossy_image_recompress_method_get, _mupdf.PdfImageRewriterOptions_color_lossy_image_recompress_method_set)
  30290. color_lossy_image_recompress_quality = property(_mupdf.PdfImageRewriterOptions_color_lossy_image_recompress_quality_get, _mupdf.PdfImageRewriterOptions_color_lossy_image_recompress_quality_set)
  30291. color_lossless_image_recompress_quality = property(_mupdf.PdfImageRewriterOptions_color_lossless_image_recompress_quality_get, _mupdf.PdfImageRewriterOptions_color_lossless_image_recompress_quality_set)
  30292. gray_lossless_image_subsample_method = property(_mupdf.PdfImageRewriterOptions_gray_lossless_image_subsample_method_get, _mupdf.PdfImageRewriterOptions_gray_lossless_image_subsample_method_set)
  30293. gray_lossy_image_subsample_method = property(_mupdf.PdfImageRewriterOptions_gray_lossy_image_subsample_method_get, _mupdf.PdfImageRewriterOptions_gray_lossy_image_subsample_method_set)
  30294. gray_lossless_image_subsample_threshold = property(_mupdf.PdfImageRewriterOptions_gray_lossless_image_subsample_threshold_get, _mupdf.PdfImageRewriterOptions_gray_lossless_image_subsample_threshold_set)
  30295. gray_lossless_image_subsample_to = property(_mupdf.PdfImageRewriterOptions_gray_lossless_image_subsample_to_get, _mupdf.PdfImageRewriterOptions_gray_lossless_image_subsample_to_set)
  30296. gray_lossy_image_subsample_threshold = property(_mupdf.PdfImageRewriterOptions_gray_lossy_image_subsample_threshold_get, _mupdf.PdfImageRewriterOptions_gray_lossy_image_subsample_threshold_set)
  30297. gray_lossy_image_subsample_to = property(_mupdf.PdfImageRewriterOptions_gray_lossy_image_subsample_to_get, _mupdf.PdfImageRewriterOptions_gray_lossy_image_subsample_to_set)
  30298. gray_lossless_image_recompress_method = property(_mupdf.PdfImageRewriterOptions_gray_lossless_image_recompress_method_get, _mupdf.PdfImageRewriterOptions_gray_lossless_image_recompress_method_set)
  30299. gray_lossy_image_recompress_method = property(_mupdf.PdfImageRewriterOptions_gray_lossy_image_recompress_method_get, _mupdf.PdfImageRewriterOptions_gray_lossy_image_recompress_method_set)
  30300. gray_lossy_image_recompress_quality = property(_mupdf.PdfImageRewriterOptions_gray_lossy_image_recompress_quality_get, _mupdf.PdfImageRewriterOptions_gray_lossy_image_recompress_quality_set)
  30301. gray_lossless_image_recompress_quality = property(_mupdf.PdfImageRewriterOptions_gray_lossless_image_recompress_quality_get, _mupdf.PdfImageRewriterOptions_gray_lossless_image_recompress_quality_set)
  30302. bitonal_image_subsample_method = property(_mupdf.PdfImageRewriterOptions_bitonal_image_subsample_method_get, _mupdf.PdfImageRewriterOptions_bitonal_image_subsample_method_set)
  30303. bitonal_image_subsample_threshold = property(_mupdf.PdfImageRewriterOptions_bitonal_image_subsample_threshold_get, _mupdf.PdfImageRewriterOptions_bitonal_image_subsample_threshold_set)
  30304. bitonal_image_subsample_to = property(_mupdf.PdfImageRewriterOptions_bitonal_image_subsample_to_get, _mupdf.PdfImageRewriterOptions_bitonal_image_subsample_to_set)
  30305. bitonal_image_recompress_method = property(_mupdf.PdfImageRewriterOptions_bitonal_image_recompress_method_get, _mupdf.PdfImageRewriterOptions_bitonal_image_recompress_method_set)
  30306. bitonal_image_recompress_quality = property(_mupdf.PdfImageRewriterOptions_bitonal_image_recompress_quality_get, _mupdf.PdfImageRewriterOptions_bitonal_image_recompress_quality_set)
  30307. s_num_instances = property(_mupdf.PdfImageRewriterOptions_s_num_instances_get, _mupdf.PdfImageRewriterOptions_s_num_instances_set)
  30308. def to_string(self):
  30309. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  30310. return _mupdf.PdfImageRewriterOptions_to_string(self)
  30311. def __eq__(self, rhs):
  30312. r"""Comparison method."""
  30313. return _mupdf.PdfImageRewriterOptions___eq__(self, rhs)
  30314. def __ne__(self, rhs):
  30315. r"""Comparison method."""
  30316. return _mupdf.PdfImageRewriterOptions___ne__(self, rhs)
  30317. # Register PdfImageRewriterOptions in _mupdf:
  30318. _mupdf.PdfImageRewriterOptions_swigregister(PdfImageRewriterOptions)
  30319. class PdfJournal(object):
  30320. r"""Wrapper class for struct `pdf_journal`. Not copyable or assignable."""
  30321. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30322. __repr__ = _swig_repr
  30323. def pdf_discard_journal(self):
  30324. r"""Class-aware wrapper for `::pdf_discard_journal()`."""
  30325. return _mupdf.PdfJournal_pdf_discard_journal(self)
  30326. def __init__(self, *args):
  30327. r"""
  30328. *Overload 1:*
  30329. Default constructor, sets `m_internal` to null.
  30330. |
  30331. *Overload 2:*
  30332. Constructor using raw copy of pre-existing `::pdf_journal`.
  30333. """
  30334. _mupdf.PdfJournal_swiginit(self, _mupdf.new_PdfJournal(*args))
  30335. __swig_destroy__ = _mupdf.delete_PdfJournal
  30336. def m_internal_value(self):
  30337. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30338. return _mupdf.PdfJournal_m_internal_value(self)
  30339. def __nonzero__(self):
  30340. return _mupdf.PdfJournal___nonzero__(self)
  30341. __bool__ = __nonzero__
  30342. m_internal = property(_mupdf.PdfJournal_m_internal_get, _mupdf.PdfJournal_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30343. s_num_instances = property(_mupdf.PdfJournal_s_num_instances_get, _mupdf.PdfJournal_s_num_instances_set)
  30344. # Register PdfJournal in _mupdf:
  30345. _mupdf.PdfJournal_swigregister(PdfJournal)
  30346. class PdfJs(object):
  30347. r"""Wrapper class for struct `pdf_js`. Not copyable or assignable."""
  30348. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30349. __repr__ = _swig_repr
  30350. def pdf_js_event_init(self, target, value, willCommit):
  30351. r"""Class-aware wrapper for `::pdf_js_event_init()`."""
  30352. return _mupdf.PdfJs_pdf_js_event_init(self, target, value, willCommit)
  30353. def pdf_js_event_init_keystroke(self, target, evt):
  30354. r"""Class-aware wrapper for `::pdf_js_event_init_keystroke()`."""
  30355. return _mupdf.PdfJs_pdf_js_event_init_keystroke(self, target, evt)
  30356. def pdf_js_event_result(self):
  30357. r"""Class-aware wrapper for `::pdf_js_event_result()`."""
  30358. return _mupdf.PdfJs_pdf_js_event_result(self)
  30359. def pdf_js_event_result_keystroke(self, evt):
  30360. r"""Class-aware wrapper for `::pdf_js_event_result_keystroke()`."""
  30361. return _mupdf.PdfJs_pdf_js_event_result_keystroke(self, evt)
  30362. def pdf_js_event_result_validate(self, newvalue):
  30363. r"""
  30364. Class-aware wrapper for `::pdf_js_event_result_validate()`.
  30365. This method has out-params. Python/C# wrappers look like:
  30366. `pdf_js_event_result_validate()` => `(int, char *newvalue)`
  30367. """
  30368. return _mupdf.PdfJs_pdf_js_event_result_validate(self, newvalue)
  30369. def pdf_js_event_value(self):
  30370. r"""Class-aware wrapper for `::pdf_js_event_value()`."""
  30371. return _mupdf.PdfJs_pdf_js_event_value(self)
  30372. def pdf_js_execute(self, name, code, result):
  30373. r"""
  30374. Class-aware wrapper for `::pdf_js_execute()`.
  30375. This method has out-params. Python/C# wrappers look like:
  30376. `pdf_js_execute(const char *name, const char *code)` => char *result
  30377. """
  30378. return _mupdf.PdfJs_pdf_js_execute(self, name, code, result)
  30379. def __init__(self, *args):
  30380. r"""
  30381. *Overload 1:*
  30382. Default constructor, sets `m_internal` to null.
  30383. |
  30384. *Overload 2:*
  30385. Constructor using raw copy of pre-existing `::pdf_js`.
  30386. """
  30387. _mupdf.PdfJs_swiginit(self, _mupdf.new_PdfJs(*args))
  30388. __swig_destroy__ = _mupdf.delete_PdfJs
  30389. def m_internal_value(self):
  30390. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30391. return _mupdf.PdfJs_m_internal_value(self)
  30392. def __nonzero__(self):
  30393. return _mupdf.PdfJs___nonzero__(self)
  30394. __bool__ = __nonzero__
  30395. m_internal = property(_mupdf.PdfJs_m_internal_get, _mupdf.PdfJs_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30396. s_num_instances = property(_mupdf.PdfJs_s_num_instances_get, _mupdf.PdfJs_s_num_instances_set)
  30397. # Register PdfJs in _mupdf:
  30398. _mupdf.PdfJs_swigregister(PdfJs)
  30399. class PdfJsConsole(object):
  30400. r"""Wrapper class for struct `pdf_js_console`. Not copyable or assignable."""
  30401. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30402. __repr__ = _swig_repr
  30403. def __init__(self, *args):
  30404. r"""
  30405. *Overload 1:*
  30406. Default constructor, sets `m_internal` to null.
  30407. |
  30408. *Overload 2:*
  30409. Constructor using raw copy of pre-existing `::pdf_js_console`.
  30410. """
  30411. _mupdf.PdfJsConsole_swiginit(self, _mupdf.new_PdfJsConsole(*args))
  30412. __swig_destroy__ = _mupdf.delete_PdfJsConsole
  30413. def m_internal_value(self):
  30414. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30415. return _mupdf.PdfJsConsole_m_internal_value(self)
  30416. def __nonzero__(self):
  30417. return _mupdf.PdfJsConsole___nonzero__(self)
  30418. __bool__ = __nonzero__
  30419. m_internal = property(_mupdf.PdfJsConsole_m_internal_get, _mupdf.PdfJsConsole_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30420. s_num_instances = property(_mupdf.PdfJsConsole_s_num_instances_get, _mupdf.PdfJsConsole_s_num_instances_set)
  30421. # Register PdfJsConsole in _mupdf:
  30422. _mupdf.PdfJsConsole_swigregister(PdfJsConsole)
  30423. class PdfKeystrokeEvent(object):
  30424. r"""Wrapper class for struct `pdf_keystroke_event`. Not copyable or assignable."""
  30425. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30426. __repr__ = _swig_repr
  30427. def __init__(self, *args):
  30428. r"""
  30429. *Overload 1:*
  30430. Default constructor, sets `m_internal` to null.
  30431. |
  30432. *Overload 2:*
  30433. Constructor using raw copy of pre-existing `::pdf_keystroke_event`.
  30434. """
  30435. _mupdf.PdfKeystrokeEvent_swiginit(self, _mupdf.new_PdfKeystrokeEvent(*args))
  30436. __swig_destroy__ = _mupdf.delete_PdfKeystrokeEvent
  30437. def m_internal_value(self):
  30438. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30439. return _mupdf.PdfKeystrokeEvent_m_internal_value(self)
  30440. def __nonzero__(self):
  30441. return _mupdf.PdfKeystrokeEvent___nonzero__(self)
  30442. __bool__ = __nonzero__
  30443. m_internal = property(_mupdf.PdfKeystrokeEvent_m_internal_get, _mupdf.PdfKeystrokeEvent_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30444. s_num_instances = property(_mupdf.PdfKeystrokeEvent_s_num_instances_get, _mupdf.PdfKeystrokeEvent_s_num_instances_set)
  30445. # Register PdfKeystrokeEvent in _mupdf:
  30446. _mupdf.PdfKeystrokeEvent_swigregister(PdfKeystrokeEvent)
  30447. class PdfLaunchUrlEvent(object):
  30448. r"""Wrapper class for struct `pdf_launch_url_event`. Not copyable or assignable."""
  30449. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30450. __repr__ = _swig_repr
  30451. def __init__(self, *args):
  30452. r"""
  30453. *Overload 1:*
  30454. Default constructor, sets `m_internal` to null.
  30455. |
  30456. *Overload 2:*
  30457. Constructor using raw copy of pre-existing `::pdf_launch_url_event`.
  30458. """
  30459. _mupdf.PdfLaunchUrlEvent_swiginit(self, _mupdf.new_PdfLaunchUrlEvent(*args))
  30460. __swig_destroy__ = _mupdf.delete_PdfLaunchUrlEvent
  30461. def m_internal_value(self):
  30462. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30463. return _mupdf.PdfLaunchUrlEvent_m_internal_value(self)
  30464. def __nonzero__(self):
  30465. return _mupdf.PdfLaunchUrlEvent___nonzero__(self)
  30466. __bool__ = __nonzero__
  30467. m_internal = property(_mupdf.PdfLaunchUrlEvent_m_internal_get, _mupdf.PdfLaunchUrlEvent_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30468. s_num_instances = property(_mupdf.PdfLaunchUrlEvent_s_num_instances_get, _mupdf.PdfLaunchUrlEvent_s_num_instances_set)
  30469. # Register PdfLaunchUrlEvent in _mupdf:
  30470. _mupdf.PdfLaunchUrlEvent_swigregister(PdfLaunchUrlEvent)
  30471. class PdfLayerConfig(object):
  30472. r"""Wrapper class for struct `pdf_layer_config`."""
  30473. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30474. __repr__ = _swig_repr
  30475. def __init__(self, *args):
  30476. r"""
  30477. *Overload 1:*
  30478. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  30479. |
  30480. *Overload 2:*
  30481. Constructor using raw copy of pre-existing `::pdf_layer_config`.
  30482. |
  30483. *Overload 3:*
  30484. Constructor using raw copy of pre-existing `::pdf_layer_config`.
  30485. """
  30486. _mupdf.PdfLayerConfig_swiginit(self, _mupdf.new_PdfLayerConfig(*args))
  30487. def internal(self, *args):
  30488. r"""
  30489. *Overload 1:*
  30490. Access as underlying struct.
  30491. |
  30492. *Overload 2:*
  30493. Access as underlying struct.
  30494. """
  30495. return _mupdf.PdfLayerConfig_internal(self, *args)
  30496. __swig_destroy__ = _mupdf.delete_PdfLayerConfig
  30497. name = property(_mupdf.PdfLayerConfig_name_get, _mupdf.PdfLayerConfig_name_set)
  30498. creator = property(_mupdf.PdfLayerConfig_creator_get, _mupdf.PdfLayerConfig_creator_set)
  30499. s_num_instances = property(_mupdf.PdfLayerConfig_s_num_instances_get, _mupdf.PdfLayerConfig_s_num_instances_set)
  30500. def to_string(self):
  30501. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  30502. return _mupdf.PdfLayerConfig_to_string(self)
  30503. def __eq__(self, rhs):
  30504. r"""Comparison method."""
  30505. return _mupdf.PdfLayerConfig___eq__(self, rhs)
  30506. def __ne__(self, rhs):
  30507. r"""Comparison method."""
  30508. return _mupdf.PdfLayerConfig___ne__(self, rhs)
  30509. # Register PdfLayerConfig in _mupdf:
  30510. _mupdf.PdfLayerConfig_swigregister(PdfLayerConfig)
  30511. class PdfLayerConfigUi(object):
  30512. r"""Wrapper class for struct `pdf_layer_config_ui`."""
  30513. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30514. __repr__ = _swig_repr
  30515. def __init__(self, *args):
  30516. r"""
  30517. *Overload 1:*
  30518. Default constructor sets .text to null, .type to PDF_LAYER_UI_LABEL, and other fields to zero.
  30519. |
  30520. *Overload 2:*
  30521. We use default copy constructor and operator=. Constructor using raw copy of pre-existing `::pdf_layer_config_ui`.
  30522. |
  30523. *Overload 3:*
  30524. Constructor using raw copy of pre-existing `::pdf_layer_config_ui`.
  30525. """
  30526. _mupdf.PdfLayerConfigUi_swiginit(self, _mupdf.new_PdfLayerConfigUi(*args))
  30527. def internal(self, *args):
  30528. r"""
  30529. *Overload 1:*
  30530. Access as underlying struct.
  30531. |
  30532. *Overload 2:*
  30533. Access as underlying struct.
  30534. """
  30535. return _mupdf.PdfLayerConfigUi_internal(self, *args)
  30536. __swig_destroy__ = _mupdf.delete_PdfLayerConfigUi
  30537. text = property(_mupdf.PdfLayerConfigUi_text_get, _mupdf.PdfLayerConfigUi_text_set)
  30538. depth = property(_mupdf.PdfLayerConfigUi_depth_get, _mupdf.PdfLayerConfigUi_depth_set)
  30539. type = property(_mupdf.PdfLayerConfigUi_type_get, _mupdf.PdfLayerConfigUi_type_set)
  30540. selected = property(_mupdf.PdfLayerConfigUi_selected_get, _mupdf.PdfLayerConfigUi_selected_set)
  30541. locked = property(_mupdf.PdfLayerConfigUi_locked_get, _mupdf.PdfLayerConfigUi_locked_set)
  30542. s_num_instances = property(_mupdf.PdfLayerConfigUi_s_num_instances_get, _mupdf.PdfLayerConfigUi_s_num_instances_set)
  30543. def to_string(self):
  30544. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  30545. return _mupdf.PdfLayerConfigUi_to_string(self)
  30546. def __eq__(self, rhs):
  30547. r"""Comparison method."""
  30548. return _mupdf.PdfLayerConfigUi___eq__(self, rhs)
  30549. def __ne__(self, rhs):
  30550. r"""Comparison method."""
  30551. return _mupdf.PdfLayerConfigUi___ne__(self, rhs)
  30552. # Register PdfLayerConfigUi in _mupdf:
  30553. _mupdf.PdfLayerConfigUi_swigregister(PdfLayerConfigUi)
  30554. class PdfLexbuf(object):
  30555. r"""Wrapper class for struct `pdf_lexbuf`. Not copyable or assignable."""
  30556. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30557. __repr__ = _swig_repr
  30558. def pdf_lexbuf_fin(self):
  30559. r"""Class-aware wrapper for `::pdf_lexbuf_fin()`."""
  30560. return _mupdf.PdfLexbuf_pdf_lexbuf_fin(self)
  30561. def pdf_lexbuf_grow(self):
  30562. r"""Class-aware wrapper for `::pdf_lexbuf_grow()`."""
  30563. return _mupdf.PdfLexbuf_pdf_lexbuf_grow(self)
  30564. def pdf_lexbuf_init(self, size):
  30565. r"""Class-aware wrapper for `::pdf_lexbuf_init()`."""
  30566. return _mupdf.PdfLexbuf_pdf_lexbuf_init(self, size)
  30567. __swig_destroy__ = _mupdf.delete_PdfLexbuf
  30568. def __init__(self, *args):
  30569. r"""
  30570. *Overload 1:*
  30571. Constructor that calls pdf_lexbuf_init(size).
  30572. |
  30573. *Overload 2:*
  30574. Default constructor, sets `m_internal` to null.
  30575. |
  30576. *Overload 3:*
  30577. Constructor using raw copy of pre-existing `::pdf_lexbuf`.
  30578. """
  30579. _mupdf.PdfLexbuf_swiginit(self, _mupdf.new_PdfLexbuf(*args))
  30580. def m_internal_value(self):
  30581. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30582. return _mupdf.PdfLexbuf_m_internal_value(self)
  30583. def __nonzero__(self):
  30584. return _mupdf.PdfLexbuf___nonzero__(self)
  30585. __bool__ = __nonzero__
  30586. m_internal = property(_mupdf.PdfLexbuf_m_internal_get, _mupdf.PdfLexbuf_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30587. s_num_instances = property(_mupdf.PdfLexbuf_s_num_instances_get, _mupdf.PdfLexbuf_s_num_instances_set)
  30588. # Register PdfLexbuf in _mupdf:
  30589. _mupdf.PdfLexbuf_swigregister(PdfLexbuf)
  30590. class PdfLexbufLarge(object):
  30591. r"""Wrapper class for struct `pdf_lexbuf_large`. Not copyable or assignable."""
  30592. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30593. __repr__ = _swig_repr
  30594. def __init__(self, *args):
  30595. r"""
  30596. *Overload 1:*
  30597. Default constructor, sets `m_internal` to null.
  30598. |
  30599. *Overload 2:*
  30600. Constructor using raw copy of pre-existing `::pdf_lexbuf_large`.
  30601. """
  30602. _mupdf.PdfLexbufLarge_swiginit(self, _mupdf.new_PdfLexbufLarge(*args))
  30603. __swig_destroy__ = _mupdf.delete_PdfLexbufLarge
  30604. def m_internal_value(self):
  30605. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30606. return _mupdf.PdfLexbufLarge_m_internal_value(self)
  30607. def __nonzero__(self):
  30608. return _mupdf.PdfLexbufLarge___nonzero__(self)
  30609. __bool__ = __nonzero__
  30610. m_internal = property(_mupdf.PdfLexbufLarge_m_internal_get, _mupdf.PdfLexbufLarge_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30611. s_num_instances = property(_mupdf.PdfLexbufLarge_s_num_instances_get, _mupdf.PdfLexbufLarge_s_num_instances_set)
  30612. # Register PdfLexbufLarge in _mupdf:
  30613. _mupdf.PdfLexbufLarge_swigregister(PdfLexbufLarge)
  30614. class PdfLockedFields(object):
  30615. r"""Wrapper class for struct `pdf_locked_fields`. Not copyable or assignable."""
  30616. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30617. __repr__ = _swig_repr
  30618. def pdf_is_field_locked(self, name):
  30619. r"""Class-aware wrapper for `::pdf_is_field_locked()`."""
  30620. return _mupdf.PdfLockedFields_pdf_is_field_locked(self, name)
  30621. def __init__(self, *args):
  30622. r"""
  30623. *Overload 1:*
  30624. Default constructor, sets `m_internal` to null.
  30625. |
  30626. *Overload 2:*
  30627. Constructor using raw copy of pre-existing `::pdf_locked_fields`.
  30628. """
  30629. _mupdf.PdfLockedFields_swiginit(self, _mupdf.new_PdfLockedFields(*args))
  30630. __swig_destroy__ = _mupdf.delete_PdfLockedFields
  30631. def m_internal_value(self):
  30632. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30633. return _mupdf.PdfLockedFields_m_internal_value(self)
  30634. def __nonzero__(self):
  30635. return _mupdf.PdfLockedFields___nonzero__(self)
  30636. __bool__ = __nonzero__
  30637. m_internal = property(_mupdf.PdfLockedFields_m_internal_get, _mupdf.PdfLockedFields_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30638. s_num_instances = property(_mupdf.PdfLockedFields_s_num_instances_get, _mupdf.PdfLockedFields_s_num_instances_set)
  30639. # Register PdfLockedFields in _mupdf:
  30640. _mupdf.PdfLockedFields_swigregister(PdfLockedFields)
  30641. class PdfMailDocEvent(object):
  30642. r"""Wrapper class for struct `pdf_mail_doc_event`. Not copyable or assignable."""
  30643. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30644. __repr__ = _swig_repr
  30645. def __init__(self, *args):
  30646. r"""
  30647. *Overload 1:*
  30648. Default constructor, sets `m_internal` to null.
  30649. |
  30650. *Overload 2:*
  30651. Constructor using raw copy of pre-existing `::pdf_mail_doc_event`.
  30652. """
  30653. _mupdf.PdfMailDocEvent_swiginit(self, _mupdf.new_PdfMailDocEvent(*args))
  30654. __swig_destroy__ = _mupdf.delete_PdfMailDocEvent
  30655. def m_internal_value(self):
  30656. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30657. return _mupdf.PdfMailDocEvent_m_internal_value(self)
  30658. def __nonzero__(self):
  30659. return _mupdf.PdfMailDocEvent___nonzero__(self)
  30660. __bool__ = __nonzero__
  30661. m_internal = property(_mupdf.PdfMailDocEvent_m_internal_get, _mupdf.PdfMailDocEvent_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30662. s_num_instances = property(_mupdf.PdfMailDocEvent_s_num_instances_get, _mupdf.PdfMailDocEvent_s_num_instances_set)
  30663. # Register PdfMailDocEvent in _mupdf:
  30664. _mupdf.PdfMailDocEvent_swigregister(PdfMailDocEvent)
  30665. class PdfMarkBits(object):
  30666. r"""Wrapper class for struct `pdf_mark_bits`. Not copyable or assignable."""
  30667. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30668. __repr__ = _swig_repr
  30669. def pdf_mark_bits_reset(self):
  30670. r"""Class-aware wrapper for `::pdf_mark_bits_reset()`."""
  30671. return _mupdf.PdfMarkBits_pdf_mark_bits_reset(self)
  30672. def pdf_mark_bits_set(self, obj):
  30673. r"""Class-aware wrapper for `::pdf_mark_bits_set()`."""
  30674. return _mupdf.PdfMarkBits_pdf_mark_bits_set(self, obj)
  30675. def __init__(self, *args):
  30676. r"""
  30677. *Overload 1:*
  30678. == Constructors. Constructor using `pdf_new_mark_bits()`.
  30679. |
  30680. *Overload 2:*
  30681. Default constructor, sets `m_internal` to null.
  30682. |
  30683. *Overload 3:*
  30684. Constructor using raw copy of pre-existing `::pdf_mark_bits`.
  30685. """
  30686. _mupdf.PdfMarkBits_swiginit(self, _mupdf.new_PdfMarkBits(*args))
  30687. __swig_destroy__ = _mupdf.delete_PdfMarkBits
  30688. def m_internal_value(self):
  30689. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30690. return _mupdf.PdfMarkBits_m_internal_value(self)
  30691. def __nonzero__(self):
  30692. return _mupdf.PdfMarkBits___nonzero__(self)
  30693. __bool__ = __nonzero__
  30694. m_internal = property(_mupdf.PdfMarkBits_m_internal_get, _mupdf.PdfMarkBits_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30695. s_num_instances = property(_mupdf.PdfMarkBits_s_num_instances_get, _mupdf.PdfMarkBits_s_num_instances_set)
  30696. # Register PdfMarkBits in _mupdf:
  30697. _mupdf.PdfMarkBits_swigregister(PdfMarkBits)
  30698. class PdfMarkList(object):
  30699. r"""Wrapper class for struct `pdf_mark_list`. Not copyable or assignable."""
  30700. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30701. __repr__ = _swig_repr
  30702. def pdf_mark_list_check(self, obj):
  30703. r"""Class-aware wrapper for `::pdf_mark_list_check()`."""
  30704. return _mupdf.PdfMarkList_pdf_mark_list_check(self, obj)
  30705. def pdf_mark_list_free(self):
  30706. r"""Class-aware wrapper for `::pdf_mark_list_free()`."""
  30707. return _mupdf.PdfMarkList_pdf_mark_list_free(self)
  30708. def pdf_mark_list_init(self):
  30709. r"""Class-aware wrapper for `::pdf_mark_list_init()`."""
  30710. return _mupdf.PdfMarkList_pdf_mark_list_init(self)
  30711. def pdf_mark_list_pop(self):
  30712. r"""Class-aware wrapper for `::pdf_mark_list_pop()`."""
  30713. return _mupdf.PdfMarkList_pdf_mark_list_pop(self)
  30714. def pdf_mark_list_push(self, obj):
  30715. r"""Class-aware wrapper for `::pdf_mark_list_push()`."""
  30716. return _mupdf.PdfMarkList_pdf_mark_list_push(self, obj)
  30717. def __init__(self, *args):
  30718. r"""
  30719. *Overload 1:*
  30720. Default constructor, sets `m_internal` to null.
  30721. |
  30722. *Overload 2:*
  30723. Constructor using raw copy of pre-existing `::pdf_mark_list`.
  30724. """
  30725. _mupdf.PdfMarkList_swiginit(self, _mupdf.new_PdfMarkList(*args))
  30726. __swig_destroy__ = _mupdf.delete_PdfMarkList
  30727. def m_internal_value(self):
  30728. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30729. return _mupdf.PdfMarkList_m_internal_value(self)
  30730. def __nonzero__(self):
  30731. return _mupdf.PdfMarkList___nonzero__(self)
  30732. __bool__ = __nonzero__
  30733. m_internal = property(_mupdf.PdfMarkList_m_internal_get, _mupdf.PdfMarkList_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30734. s_num_instances = property(_mupdf.PdfMarkList_s_num_instances_get, _mupdf.PdfMarkList_s_num_instances_set)
  30735. # Register PdfMarkList in _mupdf:
  30736. _mupdf.PdfMarkList_swigregister(PdfMarkList)
  30737. class PdfMrange(object):
  30738. r"""Wrapper class for struct `pdf_mrange`. Not copyable or assignable."""
  30739. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30740. __repr__ = _swig_repr
  30741. def __init__(self, *args):
  30742. r"""
  30743. *Overload 1:*
  30744. Default constructor, sets `m_internal` to null.
  30745. |
  30746. *Overload 2:*
  30747. Constructor using raw copy of pre-existing `::pdf_mrange`.
  30748. """
  30749. _mupdf.PdfMrange_swiginit(self, _mupdf.new_PdfMrange(*args))
  30750. __swig_destroy__ = _mupdf.delete_PdfMrange
  30751. def m_internal_value(self):
  30752. r"""Return numerical value of .m_internal; helps with Python debugging."""
  30753. return _mupdf.PdfMrange_m_internal_value(self)
  30754. def __nonzero__(self):
  30755. return _mupdf.PdfMrange___nonzero__(self)
  30756. __bool__ = __nonzero__
  30757. m_internal = property(_mupdf.PdfMrange_m_internal_get, _mupdf.PdfMrange_m_internal_set, doc=r"""Pointer to wrapped data.""")
  30758. s_num_instances = property(_mupdf.PdfMrange_s_num_instances_get, _mupdf.PdfMrange_s_num_instances_set)
  30759. # Register PdfMrange in _mupdf:
  30760. _mupdf.PdfMrange_swigregister(PdfMrange)
  30761. class PdfObj(object):
  30762. r"""Wrapper class for struct `pdf_obj`."""
  30763. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  30764. __repr__ = _swig_repr
  30765. @staticmethod
  30766. def pdf_new_text_string(s):
  30767. r"""Class-aware wrapper for `::pdf_new_text_string()`."""
  30768. return _mupdf.PdfObj_pdf_new_text_string(s)
  30769. @staticmethod
  30770. def pdf_new_dict(doc, initialcap):
  30771. r"""Class-aware wrapper for `::pdf_new_dict()`."""
  30772. return _mupdf.PdfObj_pdf_new_dict(doc, initialcap)
  30773. def pdf_array_contains(self, obj):
  30774. r"""Class-aware wrapper for `::pdf_array_contains()`."""
  30775. return _mupdf.PdfObj_pdf_array_contains(self, obj)
  30776. def pdf_array_delete(self, index):
  30777. r"""Class-aware wrapper for `::pdf_array_delete()`."""
  30778. return _mupdf.PdfObj_pdf_array_delete(self, index)
  30779. def pdf_array_find(self, obj):
  30780. r"""Class-aware wrapper for `::pdf_array_find()`."""
  30781. return _mupdf.PdfObj_pdf_array_find(self, obj)
  30782. def pdf_array_get(self, i):
  30783. r"""Class-aware wrapper for `::pdf_array_get()`."""
  30784. return _mupdf.PdfObj_pdf_array_get(self, i)
  30785. def pdf_array_get_bool(self, index):
  30786. r"""Class-aware wrapper for `::pdf_array_get_bool()`."""
  30787. return _mupdf.PdfObj_pdf_array_get_bool(self, index)
  30788. def pdf_array_get_int(self, index):
  30789. r"""Class-aware wrapper for `::pdf_array_get_int()`."""
  30790. return _mupdf.PdfObj_pdf_array_get_int(self, index)
  30791. def pdf_array_get_matrix(self, index):
  30792. r"""Class-aware wrapper for `::pdf_array_get_matrix()`."""
  30793. return _mupdf.PdfObj_pdf_array_get_matrix(self, index)
  30794. def pdf_array_get_name(self, index):
  30795. r"""Class-aware wrapper for `::pdf_array_get_name()`."""
  30796. return _mupdf.PdfObj_pdf_array_get_name(self, index)
  30797. def pdf_array_get_real(self, index):
  30798. r"""Class-aware wrapper for `::pdf_array_get_real()`."""
  30799. return _mupdf.PdfObj_pdf_array_get_real(self, index)
  30800. def pdf_array_get_rect(self, index):
  30801. r"""Class-aware wrapper for `::pdf_array_get_rect()`."""
  30802. return _mupdf.PdfObj_pdf_array_get_rect(self, index)
  30803. def pdf_array_get_string(self, index, sizep):
  30804. r"""
  30805. Class-aware wrapper for `::pdf_array_get_string()`.
  30806. This method has out-params. Python/C# wrappers look like:
  30807. `pdf_array_get_string(int index)` => `(const char *, size_t sizep)`
  30808. """
  30809. return _mupdf.PdfObj_pdf_array_get_string(self, index, sizep)
  30810. def pdf_array_get_text_string(self, index):
  30811. r"""Class-aware wrapper for `::pdf_array_get_text_string()`."""
  30812. return _mupdf.PdfObj_pdf_array_get_text_string(self, index)
  30813. def pdf_array_insert(self, obj, index):
  30814. r"""Class-aware wrapper for `::pdf_array_insert()`."""
  30815. return _mupdf.PdfObj_pdf_array_insert(self, obj, index)
  30816. def pdf_array_len(self):
  30817. r"""Class-aware wrapper for `::pdf_array_len()`."""
  30818. return _mupdf.PdfObj_pdf_array_len(self)
  30819. def pdf_array_push(self, obj):
  30820. r"""Class-aware wrapper for `::pdf_array_push()`."""
  30821. return _mupdf.PdfObj_pdf_array_push(self, obj)
  30822. def pdf_array_push_array(self, initial):
  30823. r"""Class-aware wrapper for `::pdf_array_push_array()`."""
  30824. return _mupdf.PdfObj_pdf_array_push_array(self, initial)
  30825. def pdf_array_push_bool(self, x):
  30826. r"""Class-aware wrapper for `::pdf_array_push_bool()`."""
  30827. return _mupdf.PdfObj_pdf_array_push_bool(self, x)
  30828. def pdf_array_push_dict(self, initial):
  30829. r"""Class-aware wrapper for `::pdf_array_push_dict()`."""
  30830. return _mupdf.PdfObj_pdf_array_push_dict(self, initial)
  30831. def pdf_array_push_int(self, x):
  30832. r"""Class-aware wrapper for `::pdf_array_push_int()`."""
  30833. return _mupdf.PdfObj_pdf_array_push_int(self, x)
  30834. def pdf_array_push_name(self, x):
  30835. r"""Class-aware wrapper for `::pdf_array_push_name()`."""
  30836. return _mupdf.PdfObj_pdf_array_push_name(self, x)
  30837. def pdf_array_push_real(self, x):
  30838. r"""Class-aware wrapper for `::pdf_array_push_real()`."""
  30839. return _mupdf.PdfObj_pdf_array_push_real(self, x)
  30840. def pdf_array_push_string(self, x, n):
  30841. r"""Class-aware wrapper for `::pdf_array_push_string()`."""
  30842. return _mupdf.PdfObj_pdf_array_push_string(self, x, n)
  30843. def pdf_array_push_text_string(self, x):
  30844. r"""Class-aware wrapper for `::pdf_array_push_text_string()`."""
  30845. return _mupdf.PdfObj_pdf_array_push_text_string(self, x)
  30846. def pdf_array_put(self, i, obj):
  30847. r"""Class-aware wrapper for `::pdf_array_put()`."""
  30848. return _mupdf.PdfObj_pdf_array_put(self, i, obj)
  30849. def pdf_array_put_array(self, i, initial):
  30850. r"""Class-aware wrapper for `::pdf_array_put_array()`."""
  30851. return _mupdf.PdfObj_pdf_array_put_array(self, i, initial)
  30852. def pdf_array_put_bool(self, i, x):
  30853. r"""Class-aware wrapper for `::pdf_array_put_bool()`."""
  30854. return _mupdf.PdfObj_pdf_array_put_bool(self, i, x)
  30855. def pdf_array_put_dict(self, i, initial):
  30856. r"""Class-aware wrapper for `::pdf_array_put_dict()`."""
  30857. return _mupdf.PdfObj_pdf_array_put_dict(self, i, initial)
  30858. def pdf_array_put_int(self, i, x):
  30859. r"""Class-aware wrapper for `::pdf_array_put_int()`."""
  30860. return _mupdf.PdfObj_pdf_array_put_int(self, i, x)
  30861. def pdf_array_put_name(self, i, x):
  30862. r"""Class-aware wrapper for `::pdf_array_put_name()`."""
  30863. return _mupdf.PdfObj_pdf_array_put_name(self, i, x)
  30864. def pdf_array_put_real(self, i, x):
  30865. r"""Class-aware wrapper for `::pdf_array_put_real()`."""
  30866. return _mupdf.PdfObj_pdf_array_put_real(self, i, x)
  30867. def pdf_array_put_string(self, i, x, n):
  30868. r"""Class-aware wrapper for `::pdf_array_put_string()`."""
  30869. return _mupdf.PdfObj_pdf_array_put_string(self, i, x, n)
  30870. def pdf_array_put_text_string(self, i, x):
  30871. r"""Class-aware wrapper for `::pdf_array_put_text_string()`."""
  30872. return _mupdf.PdfObj_pdf_array_put_text_string(self, i, x)
  30873. def pdf_button_field_on_state(self):
  30874. r"""Class-aware wrapper for `::pdf_button_field_on_state()`."""
  30875. return _mupdf.PdfObj_pdf_button_field_on_state(self)
  30876. def pdf_choice_field_option(self, exportval, i):
  30877. r"""Class-aware wrapper for `::pdf_choice_field_option()`."""
  30878. return _mupdf.PdfObj_pdf_choice_field_option(self, exportval, i)
  30879. def pdf_choice_field_option_count(self):
  30880. r"""Class-aware wrapper for `::pdf_choice_field_option_count()`."""
  30881. return _mupdf.PdfObj_pdf_choice_field_option_count(self)
  30882. def pdf_clean_obj(self):
  30883. r"""Class-aware wrapper for `::pdf_clean_obj()`."""
  30884. return _mupdf.PdfObj_pdf_clean_obj(self)
  30885. def pdf_copy_array(self):
  30886. r"""Class-aware wrapper for `::pdf_copy_array()`."""
  30887. return _mupdf.PdfObj_pdf_copy_array(self)
  30888. def pdf_copy_dict(self):
  30889. r"""Class-aware wrapper for `::pdf_copy_dict()`."""
  30890. return _mupdf.PdfObj_pdf_copy_dict(self)
  30891. def pdf_debug_obj(self):
  30892. r"""Class-aware wrapper for `::pdf_debug_obj()`."""
  30893. return _mupdf.PdfObj_pdf_debug_obj(self)
  30894. def pdf_debug_ref(self):
  30895. r"""Class-aware wrapper for `::pdf_debug_ref()`."""
  30896. return _mupdf.PdfObj_pdf_debug_ref(self)
  30897. def pdf_deep_copy_obj(self):
  30898. r"""Class-aware wrapper for `::pdf_deep_copy_obj()`."""
  30899. return _mupdf.PdfObj_pdf_deep_copy_obj(self)
  30900. def pdf_dict_del(self, key):
  30901. r"""Class-aware wrapper for `::pdf_dict_del()`."""
  30902. return _mupdf.PdfObj_pdf_dict_del(self, key)
  30903. def pdf_dict_dels(self, key):
  30904. r"""Class-aware wrapper for `::pdf_dict_dels()`."""
  30905. return _mupdf.PdfObj_pdf_dict_dels(self, key)
  30906. def pdf_dict_get_bool(self, key):
  30907. r"""Class-aware wrapper for `::pdf_dict_get_bool()`."""
  30908. return _mupdf.PdfObj_pdf_dict_get_bool(self, key)
  30909. def pdf_dict_get_bool_default(self, key, _def):
  30910. r"""Class-aware wrapper for `::pdf_dict_get_bool_default()`."""
  30911. return _mupdf.PdfObj_pdf_dict_get_bool_default(self, key, _def)
  30912. def pdf_dict_get_date(self, key):
  30913. r"""Class-aware wrapper for `::pdf_dict_get_date()`."""
  30914. return _mupdf.PdfObj_pdf_dict_get_date(self, key)
  30915. def pdf_dict_get_inheritable(self, key):
  30916. r"""Class-aware wrapper for `::pdf_dict_get_inheritable()`."""
  30917. return _mupdf.PdfObj_pdf_dict_get_inheritable(self, key)
  30918. def pdf_dict_get_inheritable_bool(self, key):
  30919. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_bool()`."""
  30920. return _mupdf.PdfObj_pdf_dict_get_inheritable_bool(self, key)
  30921. def pdf_dict_get_inheritable_date(self, key):
  30922. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_date()`."""
  30923. return _mupdf.PdfObj_pdf_dict_get_inheritable_date(self, key)
  30924. def pdf_dict_get_inheritable_int(self, key):
  30925. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_int()`."""
  30926. return _mupdf.PdfObj_pdf_dict_get_inheritable_int(self, key)
  30927. def pdf_dict_get_inheritable_int64(self, key):
  30928. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_int64()`."""
  30929. return _mupdf.PdfObj_pdf_dict_get_inheritable_int64(self, key)
  30930. def pdf_dict_get_inheritable_matrix(self, key):
  30931. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_matrix()`."""
  30932. return _mupdf.PdfObj_pdf_dict_get_inheritable_matrix(self, key)
  30933. def pdf_dict_get_inheritable_name(self, key):
  30934. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_name()`."""
  30935. return _mupdf.PdfObj_pdf_dict_get_inheritable_name(self, key)
  30936. def pdf_dict_get_inheritable_real(self, key):
  30937. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_real()`."""
  30938. return _mupdf.PdfObj_pdf_dict_get_inheritable_real(self, key)
  30939. def pdf_dict_get_inheritable_rect(self, key):
  30940. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_rect()`."""
  30941. return _mupdf.PdfObj_pdf_dict_get_inheritable_rect(self, key)
  30942. def pdf_dict_get_inheritable_string(self, key, sizep):
  30943. r"""
  30944. Class-aware wrapper for `::pdf_dict_get_inheritable_string()`.
  30945. This method has out-params. Python/C# wrappers look like:
  30946. `pdf_dict_get_inheritable_string(::pdf_obj *key)` => `(const char *, size_t sizep)`
  30947. """
  30948. return _mupdf.PdfObj_pdf_dict_get_inheritable_string(self, key, sizep)
  30949. def pdf_dict_get_inheritable_text_string(self, key):
  30950. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_text_string()`."""
  30951. return _mupdf.PdfObj_pdf_dict_get_inheritable_text_string(self, key)
  30952. def pdf_dict_get_int(self, key):
  30953. r"""Class-aware wrapper for `::pdf_dict_get_int()`."""
  30954. return _mupdf.PdfObj_pdf_dict_get_int(self, key)
  30955. def pdf_dict_get_int64(self, key):
  30956. r"""Class-aware wrapper for `::pdf_dict_get_int64()`."""
  30957. return _mupdf.PdfObj_pdf_dict_get_int64(self, key)
  30958. def pdf_dict_get_int_default(self, key, _def):
  30959. r"""Class-aware wrapper for `::pdf_dict_get_int_default()`."""
  30960. return _mupdf.PdfObj_pdf_dict_get_int_default(self, key, _def)
  30961. def pdf_dict_get_key(self, idx):
  30962. r"""Class-aware wrapper for `::pdf_dict_get_key()`."""
  30963. return _mupdf.PdfObj_pdf_dict_get_key(self, idx)
  30964. def pdf_dict_get_matrix(self, key):
  30965. r"""Class-aware wrapper for `::pdf_dict_get_matrix()`."""
  30966. return _mupdf.PdfObj_pdf_dict_get_matrix(self, key)
  30967. def pdf_dict_get_name(self, key):
  30968. r"""Class-aware wrapper for `::pdf_dict_get_name()`."""
  30969. return _mupdf.PdfObj_pdf_dict_get_name(self, key)
  30970. def pdf_dict_get_point(self, key):
  30971. r"""Class-aware wrapper for `::pdf_dict_get_point()`."""
  30972. return _mupdf.PdfObj_pdf_dict_get_point(self, key)
  30973. def pdf_dict_get_real(self, key):
  30974. r"""Class-aware wrapper for `::pdf_dict_get_real()`."""
  30975. return _mupdf.PdfObj_pdf_dict_get_real(self, key)
  30976. def pdf_dict_get_real_default(self, key, _def):
  30977. r"""Class-aware wrapper for `::pdf_dict_get_real_default()`."""
  30978. return _mupdf.PdfObj_pdf_dict_get_real_default(self, key, _def)
  30979. def pdf_dict_get_rect(self, key):
  30980. r"""Class-aware wrapper for `::pdf_dict_get_rect()`."""
  30981. return _mupdf.PdfObj_pdf_dict_get_rect(self, key)
  30982. def pdf_dict_get_string(self, key, sizep):
  30983. r"""
  30984. Class-aware wrapper for `::pdf_dict_get_string()`.
  30985. This method has out-params. Python/C# wrappers look like:
  30986. `pdf_dict_get_string(::pdf_obj *key)` => `(const char *, size_t sizep)`
  30987. """
  30988. return _mupdf.PdfObj_pdf_dict_get_string(self, key, sizep)
  30989. def pdf_dict_get_text_string(self, key):
  30990. r"""Class-aware wrapper for `::pdf_dict_get_text_string()`."""
  30991. return _mupdf.PdfObj_pdf_dict_get_text_string(self, key)
  30992. def pdf_dict_get_text_string_opt(self, key):
  30993. r"""Class-aware wrapper for `::pdf_dict_get_text_string_opt()`."""
  30994. return _mupdf.PdfObj_pdf_dict_get_text_string_opt(self, key)
  30995. def pdf_dict_get_val(self, idx):
  30996. r"""Class-aware wrapper for `::pdf_dict_get_val()`."""
  30997. return _mupdf.PdfObj_pdf_dict_get_val(self, idx)
  30998. def pdf_dict_geta(self, key, abbrev):
  30999. r"""Class-aware wrapper for `::pdf_dict_geta()`."""
  31000. return _mupdf.PdfObj_pdf_dict_geta(self, key, abbrev)
  31001. def pdf_dict_getp(self, path):
  31002. r"""Class-aware wrapper for `::pdf_dict_getp()`."""
  31003. return _mupdf.PdfObj_pdf_dict_getp(self, path)
  31004. def pdf_dict_getp_inheritable(self, path):
  31005. r"""Class-aware wrapper for `::pdf_dict_getp_inheritable()`."""
  31006. return _mupdf.PdfObj_pdf_dict_getp_inheritable(self, path)
  31007. def pdf_dict_gets(self, key):
  31008. r"""Class-aware wrapper for `::pdf_dict_gets()`."""
  31009. return _mupdf.PdfObj_pdf_dict_gets(self, key)
  31010. def pdf_dict_gets_inheritable(self, key):
  31011. r"""Class-aware wrapper for `::pdf_dict_gets_inheritable()`."""
  31012. return _mupdf.PdfObj_pdf_dict_gets_inheritable(self, key)
  31013. def pdf_dict_getsa(self, key, abbrev):
  31014. r"""Class-aware wrapper for `::pdf_dict_getsa()`."""
  31015. return _mupdf.PdfObj_pdf_dict_getsa(self, key, abbrev)
  31016. def pdf_dict_len(self):
  31017. r"""Class-aware wrapper for `::pdf_dict_len()`."""
  31018. return _mupdf.PdfObj_pdf_dict_len(self)
  31019. def pdf_dict_put(self, key, val):
  31020. r"""Class-aware wrapper for `::pdf_dict_put()`."""
  31021. return _mupdf.PdfObj_pdf_dict_put(self, key, val)
  31022. def pdf_dict_put_array(self, key, initial):
  31023. r"""Class-aware wrapper for `::pdf_dict_put_array()`."""
  31024. return _mupdf.PdfObj_pdf_dict_put_array(self, key, initial)
  31025. def pdf_dict_put_bool(self, key, x):
  31026. r"""Class-aware wrapper for `::pdf_dict_put_bool()`."""
  31027. return _mupdf.PdfObj_pdf_dict_put_bool(self, key, x)
  31028. def pdf_dict_put_date(self, key, time):
  31029. r"""Class-aware wrapper for `::pdf_dict_put_date()`."""
  31030. return _mupdf.PdfObj_pdf_dict_put_date(self, key, time)
  31031. def pdf_dict_put_dict(self, key, initial):
  31032. r"""Class-aware wrapper for `::pdf_dict_put_dict()`."""
  31033. return _mupdf.PdfObj_pdf_dict_put_dict(self, key, initial)
  31034. def pdf_dict_put_indirect(self, key, num):
  31035. r"""Class-aware wrapper for `::pdf_dict_put_indirect()`."""
  31036. return _mupdf.PdfObj_pdf_dict_put_indirect(self, key, num)
  31037. def pdf_dict_put_int(self, key, x):
  31038. r"""Class-aware wrapper for `::pdf_dict_put_int()`."""
  31039. return _mupdf.PdfObj_pdf_dict_put_int(self, key, x)
  31040. def pdf_dict_put_matrix(self, key, x):
  31041. r"""Class-aware wrapper for `::pdf_dict_put_matrix()`."""
  31042. return _mupdf.PdfObj_pdf_dict_put_matrix(self, key, x)
  31043. def pdf_dict_put_name(self, key, x):
  31044. r"""Class-aware wrapper for `::pdf_dict_put_name()`."""
  31045. return _mupdf.PdfObj_pdf_dict_put_name(self, key, x)
  31046. def pdf_dict_put_point(self, key, x):
  31047. r"""Class-aware wrapper for `::pdf_dict_put_point()`."""
  31048. return _mupdf.PdfObj_pdf_dict_put_point(self, key, x)
  31049. def pdf_dict_put_real(self, key, x):
  31050. r"""Class-aware wrapper for `::pdf_dict_put_real()`."""
  31051. return _mupdf.PdfObj_pdf_dict_put_real(self, key, x)
  31052. def pdf_dict_put_rect(self, key, x):
  31053. r"""Class-aware wrapper for `::pdf_dict_put_rect()`."""
  31054. return _mupdf.PdfObj_pdf_dict_put_rect(self, key, x)
  31055. def pdf_dict_put_string(self, key, x, n):
  31056. r"""Class-aware wrapper for `::pdf_dict_put_string()`."""
  31057. return _mupdf.PdfObj_pdf_dict_put_string(self, key, x, n)
  31058. def pdf_dict_put_text_string(self, key, x):
  31059. r"""Class-aware wrapper for `::pdf_dict_put_text_string()`."""
  31060. return _mupdf.PdfObj_pdf_dict_put_text_string(self, key, x)
  31061. def pdf_dict_put_val_null(self, idx):
  31062. r"""Class-aware wrapper for `::pdf_dict_put_val_null()`."""
  31063. return _mupdf.PdfObj_pdf_dict_put_val_null(self, idx)
  31064. def pdf_dict_putp(self, path, val):
  31065. r"""Class-aware wrapper for `::pdf_dict_putp()`."""
  31066. return _mupdf.PdfObj_pdf_dict_putp(self, path, val)
  31067. def pdf_dict_puts(self, key, val):
  31068. r"""Class-aware wrapper for `::pdf_dict_puts()`."""
  31069. return _mupdf.PdfObj_pdf_dict_puts(self, key, val)
  31070. def pdf_dict_puts_dict(self, key, initial):
  31071. r"""Class-aware wrapper for `::pdf_dict_puts_dict()`."""
  31072. return _mupdf.PdfObj_pdf_dict_puts_dict(self, key, initial)
  31073. def pdf_dirty_obj(self):
  31074. r"""Class-aware wrapper for `::pdf_dirty_obj()`."""
  31075. return _mupdf.PdfObj_pdf_dirty_obj(self)
  31076. def pdf_field_border_style(self):
  31077. r"""Class-aware wrapper for `::pdf_field_border_style()`."""
  31078. return _mupdf.PdfObj_pdf_field_border_style(self)
  31079. def pdf_field_display(self):
  31080. r"""Class-aware wrapper for `::pdf_field_display()`."""
  31081. return _mupdf.PdfObj_pdf_field_display(self)
  31082. def pdf_field_flags(self):
  31083. r"""Class-aware wrapper for `::pdf_field_flags()`."""
  31084. return _mupdf.PdfObj_pdf_field_flags(self)
  31085. def pdf_field_label(self):
  31086. r"""Class-aware wrapper for `::pdf_field_label()`."""
  31087. return _mupdf.PdfObj_pdf_field_label(self)
  31088. def pdf_field_set_border_style(self, text):
  31089. r"""Class-aware wrapper for `::pdf_field_set_border_style()`."""
  31090. return _mupdf.PdfObj_pdf_field_set_border_style(self, text)
  31091. def pdf_field_set_button_caption(self, text):
  31092. r"""Class-aware wrapper for `::pdf_field_set_button_caption()`."""
  31093. return _mupdf.PdfObj_pdf_field_set_button_caption(self, text)
  31094. def pdf_field_set_display(self, d):
  31095. r"""Class-aware wrapper for `::pdf_field_set_display()`."""
  31096. return _mupdf.PdfObj_pdf_field_set_display(self, d)
  31097. def pdf_field_set_fill_color(self, col):
  31098. r"""Class-aware wrapper for `::pdf_field_set_fill_color()`."""
  31099. return _mupdf.PdfObj_pdf_field_set_fill_color(self, col)
  31100. def pdf_field_set_text_color(self, col):
  31101. r"""Class-aware wrapper for `::pdf_field_set_text_color()`."""
  31102. return _mupdf.PdfObj_pdf_field_set_text_color(self, col)
  31103. def pdf_field_type(self):
  31104. r"""Class-aware wrapper for `::pdf_field_type()`."""
  31105. return _mupdf.PdfObj_pdf_field_type(self)
  31106. def pdf_field_type_string(self):
  31107. r"""Class-aware wrapper for `::pdf_field_type_string()`."""
  31108. return _mupdf.PdfObj_pdf_field_type_string(self)
  31109. def pdf_field_value(self):
  31110. r"""Class-aware wrapper for `::pdf_field_value()`."""
  31111. return _mupdf.PdfObj_pdf_field_value(self)
  31112. def pdf_filter_xobject_instance(self, page_res, ctm, options, cycle_up):
  31113. r"""Class-aware wrapper for `::pdf_filter_xobject_instance()`."""
  31114. return _mupdf.PdfObj_pdf_filter_xobject_instance(self, page_res, ctm, options, cycle_up)
  31115. def pdf_flatten_inheritable_page_items(self):
  31116. r"""Class-aware wrapper for `::pdf_flatten_inheritable_page_items()`."""
  31117. return _mupdf.PdfObj_pdf_flatten_inheritable_page_items(self)
  31118. def pdf_get_bound_document(self):
  31119. r"""Class-aware wrapper for `::pdf_get_bound_document()`."""
  31120. return _mupdf.PdfObj_pdf_get_bound_document(self)
  31121. def pdf_get_filespec_params(self, out):
  31122. r"""Class-aware wrapper for `::pdf_get_filespec_params()`."""
  31123. return _mupdf.PdfObj_pdf_get_filespec_params(self, out)
  31124. def pdf_get_indirect_document(self):
  31125. r"""Class-aware wrapper for `::pdf_get_indirect_document()`."""
  31126. return _mupdf.PdfObj_pdf_get_indirect_document(self)
  31127. def pdf_intent_from_name(self):
  31128. r"""Class-aware wrapper for `::pdf_intent_from_name()`."""
  31129. return _mupdf.PdfObj_pdf_intent_from_name(self)
  31130. def pdf_is_array(self):
  31131. r"""Class-aware wrapper for `::pdf_is_array()`."""
  31132. return _mupdf.PdfObj_pdf_is_array(self)
  31133. def pdf_is_bool(self):
  31134. r"""Class-aware wrapper for `::pdf_is_bool()`."""
  31135. return _mupdf.PdfObj_pdf_is_bool(self)
  31136. def pdf_is_dict(self):
  31137. r"""Class-aware wrapper for `::pdf_is_dict()`."""
  31138. return _mupdf.PdfObj_pdf_is_dict(self)
  31139. def pdf_is_embedded_file(self):
  31140. r"""Class-aware wrapper for `::pdf_is_embedded_file()`."""
  31141. return _mupdf.PdfObj_pdf_is_embedded_file(self)
  31142. def pdf_is_filespec(self):
  31143. r"""Class-aware wrapper for `::pdf_is_filespec()`."""
  31144. return _mupdf.PdfObj_pdf_is_filespec(self)
  31145. def pdf_is_image_stream(self):
  31146. r"""Class-aware wrapper for `::pdf_is_image_stream()`."""
  31147. return _mupdf.PdfObj_pdf_is_image_stream(self)
  31148. def pdf_is_indirect(self):
  31149. r"""Class-aware wrapper for `::pdf_is_indirect()`."""
  31150. return _mupdf.PdfObj_pdf_is_indirect(self)
  31151. def pdf_is_int(self):
  31152. r"""Class-aware wrapper for `::pdf_is_int()`."""
  31153. return _mupdf.PdfObj_pdf_is_int(self)
  31154. def pdf_is_jpx_image(self):
  31155. r"""Class-aware wrapper for `::pdf_is_jpx_image()`."""
  31156. return _mupdf.PdfObj_pdf_is_jpx_image(self)
  31157. def pdf_is_name(self):
  31158. r"""Class-aware wrapper for `::pdf_is_name()`."""
  31159. return _mupdf.PdfObj_pdf_is_name(self)
  31160. def pdf_is_null(self):
  31161. r"""Class-aware wrapper for `::pdf_is_null()`."""
  31162. return _mupdf.PdfObj_pdf_is_null(self)
  31163. def pdf_is_number(self):
  31164. r"""Class-aware wrapper for `::pdf_is_number()`."""
  31165. return _mupdf.PdfObj_pdf_is_number(self)
  31166. def pdf_is_real(self):
  31167. r"""Class-aware wrapper for `::pdf_is_real()`."""
  31168. return _mupdf.PdfObj_pdf_is_real(self)
  31169. def pdf_is_stream(self):
  31170. r"""Class-aware wrapper for `::pdf_is_stream()`."""
  31171. return _mupdf.PdfObj_pdf_is_stream(self)
  31172. def pdf_is_string(self):
  31173. r"""Class-aware wrapper for `::pdf_is_string()`."""
  31174. return _mupdf.PdfObj_pdf_is_string(self)
  31175. def pdf_line_ending_from_name(self):
  31176. r"""Class-aware wrapper for `::pdf_line_ending_from_name()`."""
  31177. return _mupdf.PdfObj_pdf_line_ending_from_name(self)
  31178. def pdf_load_colorspace(self):
  31179. r"""Class-aware wrapper for `::pdf_load_colorspace()`."""
  31180. return _mupdf.PdfObj_pdf_load_colorspace(self)
  31181. def pdf_load_embedded_file_contents(self):
  31182. r"""Class-aware wrapper for `::pdf_load_embedded_file_contents()`."""
  31183. return _mupdf.PdfObj_pdf_load_embedded_file_contents(self)
  31184. def pdf_load_field_name(self):
  31185. r"""Class-aware wrapper for `::pdf_load_field_name()`."""
  31186. return _mupdf.PdfObj_pdf_load_field_name(self)
  31187. def pdf_load_function(self, _in, out):
  31188. r"""Class-aware wrapper for `::pdf_load_function()`."""
  31189. return _mupdf.PdfObj_pdf_load_function(self, _in, out)
  31190. def pdf_load_raw_stream(self):
  31191. r"""Class-aware wrapper for `::pdf_load_raw_stream()`."""
  31192. return _mupdf.PdfObj_pdf_load_raw_stream(self)
  31193. def pdf_load_stream(self):
  31194. r"""Class-aware wrapper for `::pdf_load_stream()`."""
  31195. return _mupdf.PdfObj_pdf_load_stream(self)
  31196. def pdf_load_stream_or_string_as_utf8(self):
  31197. r"""Class-aware wrapper for `::pdf_load_stream_or_string_as_utf8()`."""
  31198. return _mupdf.PdfObj_pdf_load_stream_or_string_as_utf8(self)
  31199. def pdf_lookup_field(self, name):
  31200. r"""Class-aware wrapper for `::pdf_lookup_field()`."""
  31201. return _mupdf.PdfObj_pdf_lookup_field(self, name)
  31202. def pdf_lookup_number(self, needle):
  31203. r"""Class-aware wrapper for `::pdf_lookup_number()`."""
  31204. return _mupdf.PdfObj_pdf_lookup_number(self, needle)
  31205. def pdf_mark_obj(self):
  31206. r"""Class-aware wrapper for `::pdf_mark_obj()`."""
  31207. return _mupdf.PdfObj_pdf_mark_obj(self)
  31208. def pdf_name_eq(self, b):
  31209. r"""Class-aware wrapper for `::pdf_name_eq()`."""
  31210. return _mupdf.PdfObj_pdf_name_eq(self, b)
  31211. def pdf_new_utf8_from_pdf_stream_obj(self):
  31212. r"""Class-aware wrapper for `::pdf_new_utf8_from_pdf_stream_obj()`."""
  31213. return _mupdf.PdfObj_pdf_new_utf8_from_pdf_stream_obj(self)
  31214. def pdf_new_utf8_from_pdf_string_obj(self):
  31215. r"""Class-aware wrapper for `::pdf_new_utf8_from_pdf_string_obj()`."""
  31216. return _mupdf.PdfObj_pdf_new_utf8_from_pdf_string_obj(self)
  31217. def pdf_obj_is_dirty(self):
  31218. r"""Class-aware wrapper for `::pdf_obj_is_dirty()`."""
  31219. return _mupdf.PdfObj_pdf_obj_is_dirty(self)
  31220. def pdf_obj_is_incremental(self):
  31221. r"""Class-aware wrapper for `::pdf_obj_is_incremental()`."""
  31222. return _mupdf.PdfObj_pdf_obj_is_incremental(self)
  31223. def pdf_obj_marked(self):
  31224. r"""Class-aware wrapper for `::pdf_obj_marked()`."""
  31225. return _mupdf.PdfObj_pdf_obj_marked(self)
  31226. def pdf_obj_memo(self, bit, memo):
  31227. r"""
  31228. Class-aware wrapper for `::pdf_obj_memo()`.
  31229. This method has out-params. Python/C# wrappers look like:
  31230. `pdf_obj_memo(int bit)` => `(int, int memo)`
  31231. """
  31232. return _mupdf.PdfObj_pdf_obj_memo(self, bit, memo)
  31233. def pdf_obj_parent_num(self):
  31234. r"""Class-aware wrapper for `::pdf_obj_parent_num()`."""
  31235. return _mupdf.PdfObj_pdf_obj_parent_num(self)
  31236. def pdf_obj_refs(self):
  31237. r"""Class-aware wrapper for `::pdf_obj_refs()`."""
  31238. return _mupdf.PdfObj_pdf_obj_refs(self)
  31239. def pdf_objcmp(self, b):
  31240. r"""Class-aware wrapper for `::pdf_objcmp()`."""
  31241. return _mupdf.PdfObj_pdf_objcmp(self, b)
  31242. def pdf_objcmp_deep(self, b):
  31243. r"""Class-aware wrapper for `::pdf_objcmp_deep()`."""
  31244. return _mupdf.PdfObj_pdf_objcmp_deep(self, b)
  31245. def pdf_objcmp_resolve(self, b):
  31246. r"""Class-aware wrapper for `::pdf_objcmp_resolve()`."""
  31247. return _mupdf.PdfObj_pdf_objcmp_resolve(self, b)
  31248. def pdf_open_raw_stream(self):
  31249. r"""Class-aware wrapper for `::pdf_open_raw_stream()`."""
  31250. return _mupdf.PdfObj_pdf_open_raw_stream(self)
  31251. def pdf_open_stream(self):
  31252. r"""Class-aware wrapper for `::pdf_open_stream()`."""
  31253. return _mupdf.PdfObj_pdf_open_stream(self)
  31254. def pdf_page_obj_transform(self, outbox, outctm):
  31255. r"""Class-aware wrapper for `::pdf_page_obj_transform()`."""
  31256. return _mupdf.PdfObj_pdf_page_obj_transform(self, outbox, outctm)
  31257. def pdf_page_obj_transform_box(self, outbox, out, box):
  31258. r"""Class-aware wrapper for `::pdf_page_obj_transform_box()`."""
  31259. return _mupdf.PdfObj_pdf_page_obj_transform_box(self, outbox, out, box)
  31260. def pdf_pin_document(self):
  31261. r"""Class-aware wrapper for `::pdf_pin_document()`."""
  31262. return _mupdf.PdfObj_pdf_pin_document(self)
  31263. def pdf_recolor_shade(self, reshade, opaque):
  31264. r"""
  31265. Class-aware wrapper for `::pdf_recolor_shade()`.
  31266. Recolor a shade.
  31267. """
  31268. return _mupdf.PdfObj_pdf_recolor_shade(self, reshade, opaque)
  31269. def pdf_resolve_indirect(self):
  31270. r"""
  31271. Class-aware wrapper for `::pdf_resolve_indirect()`.
  31272. Resolve an indirect object (or chain of objects).
  31273. This can cause xref reorganisations (solidifications etc) due to
  31274. repairs, so all held pdf_xref_entries should be considered
  31275. invalid after this call (other than the returned one).
  31276. """
  31277. return _mupdf.PdfObj_pdf_resolve_indirect(self)
  31278. def pdf_resolve_indirect_chain(self):
  31279. r"""Class-aware wrapper for `::pdf_resolve_indirect_chain()`."""
  31280. return _mupdf.PdfObj_pdf_resolve_indirect_chain(self)
  31281. def pdf_set_int(self, i):
  31282. r"""Class-aware wrapper for `::pdf_set_int()`."""
  31283. return _mupdf.PdfObj_pdf_set_int(self, i)
  31284. def pdf_set_obj_memo(self, bit, memo):
  31285. r"""Class-aware wrapper for `::pdf_set_obj_memo()`."""
  31286. return _mupdf.PdfObj_pdf_set_obj_memo(self, bit, memo)
  31287. def pdf_set_obj_parent(self, num):
  31288. r"""Class-aware wrapper for `::pdf_set_obj_parent()`."""
  31289. return _mupdf.PdfObj_pdf_set_obj_parent(self, num)
  31290. def pdf_set_str_len(self, newlen):
  31291. r"""Class-aware wrapper for `::pdf_set_str_len()`."""
  31292. return _mupdf.PdfObj_pdf_set_str_len(self, newlen)
  31293. def pdf_sort_dict(self):
  31294. r"""Class-aware wrapper for `::pdf_sort_dict()`."""
  31295. return _mupdf.PdfObj_pdf_sort_dict(self)
  31296. def pdf_store_item(self, val, itemsize):
  31297. r"""Class-aware wrapper for `::pdf_store_item()`."""
  31298. return _mupdf.PdfObj_pdf_store_item(self, val, itemsize)
  31299. def pdf_to_bool(self):
  31300. r"""Class-aware wrapper for `::pdf_to_bool()`."""
  31301. return _mupdf.PdfObj_pdf_to_bool(self)
  31302. def pdf_to_bool_default(self, _def):
  31303. r"""Class-aware wrapper for `::pdf_to_bool_default()`."""
  31304. return _mupdf.PdfObj_pdf_to_bool_default(self, _def)
  31305. def pdf_to_date(self):
  31306. r"""Class-aware wrapper for `::pdf_to_date()`."""
  31307. return _mupdf.PdfObj_pdf_to_date(self)
  31308. def pdf_to_gen(self):
  31309. r"""Class-aware wrapper for `::pdf_to_gen()`."""
  31310. return _mupdf.PdfObj_pdf_to_gen(self)
  31311. def pdf_to_int(self):
  31312. r"""Class-aware wrapper for `::pdf_to_int()`."""
  31313. return _mupdf.PdfObj_pdf_to_int(self)
  31314. def pdf_to_int64(self):
  31315. r"""Class-aware wrapper for `::pdf_to_int64()`."""
  31316. return _mupdf.PdfObj_pdf_to_int64(self)
  31317. def pdf_to_int_default(self, _def):
  31318. r"""Class-aware wrapper for `::pdf_to_int_default()`."""
  31319. return _mupdf.PdfObj_pdf_to_int_default(self, _def)
  31320. def pdf_to_matrix(self):
  31321. r"""Class-aware wrapper for `::pdf_to_matrix()`."""
  31322. return _mupdf.PdfObj_pdf_to_matrix(self)
  31323. def pdf_to_name(self):
  31324. r"""Class-aware wrapper for `::pdf_to_name()`."""
  31325. return _mupdf.PdfObj_pdf_to_name(self)
  31326. def pdf_to_num(self):
  31327. r"""Class-aware wrapper for `::pdf_to_num()`."""
  31328. return _mupdf.PdfObj_pdf_to_num(self)
  31329. def pdf_to_point(self, offset):
  31330. r"""Class-aware wrapper for `::pdf_to_point()`."""
  31331. return _mupdf.PdfObj_pdf_to_point(self, offset)
  31332. def pdf_to_quad(self, offset):
  31333. r"""Class-aware wrapper for `::pdf_to_quad()`."""
  31334. return _mupdf.PdfObj_pdf_to_quad(self, offset)
  31335. def pdf_to_real(self):
  31336. r"""Class-aware wrapper for `::pdf_to_real()`."""
  31337. return _mupdf.PdfObj_pdf_to_real(self)
  31338. def pdf_to_real_default(self, _def):
  31339. r"""Class-aware wrapper for `::pdf_to_real_default()`."""
  31340. return _mupdf.PdfObj_pdf_to_real_default(self, _def)
  31341. def pdf_to_rect(self):
  31342. r"""Class-aware wrapper for `::pdf_to_rect()`."""
  31343. return _mupdf.PdfObj_pdf_to_rect(self)
  31344. def pdf_to_str_buf(self):
  31345. r"""Class-aware wrapper for `::pdf_to_str_buf()`."""
  31346. return _mupdf.PdfObj_pdf_to_str_buf(self)
  31347. def pdf_to_str_len(self):
  31348. r"""Class-aware wrapper for `::pdf_to_str_len()`."""
  31349. return _mupdf.PdfObj_pdf_to_str_len(self)
  31350. def pdf_to_string(self, sizep):
  31351. r"""
  31352. Class-aware wrapper for `::pdf_to_string()`.
  31353. This method has out-params. Python/C# wrappers look like:
  31354. `pdf_to_string()` => `(const char *, size_t sizep)`
  31355. """
  31356. return _mupdf.PdfObj_pdf_to_string(self, sizep)
  31357. def pdf_to_text_string(self):
  31358. r"""Class-aware wrapper for `::pdf_to_text_string()`."""
  31359. return _mupdf.PdfObj_pdf_to_text_string(self)
  31360. def pdf_unmark_obj(self):
  31361. r"""Class-aware wrapper for `::pdf_unmark_obj()`."""
  31362. return _mupdf.PdfObj_pdf_unmark_obj(self)
  31363. def pdf_verify_embedded_file_checksum(self):
  31364. r"""Class-aware wrapper for `::pdf_verify_embedded_file_checksum()`."""
  31365. return _mupdf.PdfObj_pdf_verify_embedded_file_checksum(self)
  31366. def pdf_walk_tree(self, kid_name, arrive, leave, arg, names, values):
  31367. r"""
  31368. Class-aware wrapper for `::pdf_walk_tree()`.
  31369. This method has out-params. Python/C# wrappers look like:
  31370. `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)` => `()`
  31371. """
  31372. return _mupdf.PdfObj_pdf_walk_tree(self, kid_name, arrive, leave, arg, names, values)
  31373. def pdf_xobject_bbox(self):
  31374. r"""Class-aware wrapper for `::pdf_xobject_bbox()`."""
  31375. return _mupdf.PdfObj_pdf_xobject_bbox(self)
  31376. def pdf_xobject_colorspace(self):
  31377. r"""Class-aware wrapper for `::pdf_xobject_colorspace()`."""
  31378. return _mupdf.PdfObj_pdf_xobject_colorspace(self)
  31379. def pdf_xobject_isolated(self):
  31380. r"""Class-aware wrapper for `::pdf_xobject_isolated()`."""
  31381. return _mupdf.PdfObj_pdf_xobject_isolated(self)
  31382. def pdf_xobject_knockout(self):
  31383. r"""Class-aware wrapper for `::pdf_xobject_knockout()`."""
  31384. return _mupdf.PdfObj_pdf_xobject_knockout(self)
  31385. def pdf_xobject_matrix(self):
  31386. r"""Class-aware wrapper for `::pdf_xobject_matrix()`."""
  31387. return _mupdf.PdfObj_pdf_xobject_matrix(self)
  31388. def pdf_xobject_resources(self):
  31389. r"""Class-aware wrapper for `::pdf_xobject_resources()`."""
  31390. return _mupdf.PdfObj_pdf_xobject_resources(self)
  31391. def pdf_xobject_transparency(self):
  31392. r"""Class-aware wrapper for `::pdf_xobject_transparency()`."""
  31393. return _mupdf.PdfObj_pdf_xobject_transparency(self)
  31394. def pdf_dict_get(self, *args):
  31395. r"""
  31396. *Overload 1:*
  31397. Class-aware wrapper for `::pdf_dict_get()`.
  31398. |
  31399. *Overload 2:*
  31400. Typesafe wrapper for looking up things such as PDF_ENUM_NAME_Annots.
  31401. """
  31402. return _mupdf.PdfObj_pdf_dict_get(self, *args)
  31403. def pdf_load_field_name2(self):
  31404. r"""Alternative to `pdf_load_field_name()` that returns a std::string."""
  31405. return _mupdf.PdfObj_pdf_load_field_name2(self)
  31406. def __init__(self, *args):
  31407. r"""
  31408. *Overload 1:*
  31409. == Constructors. Constructor using `pdf_new_action_from_link()`.
  31410. |
  31411. *Overload 2:*
  31412. Constructor using `pdf_new_array()`.
  31413. |
  31414. *Overload 3:*
  31415. Constructor using `pdf_new_date()`.
  31416. |
  31417. *Overload 4:*
  31418. Constructor using `pdf_new_dest_from_link()`.
  31419. |
  31420. *Overload 5:*
  31421. Constructor using `pdf_new_indirect()`.
  31422. |
  31423. *Overload 6:*
  31424. Constructor using `pdf_new_int()`.
  31425. |
  31426. *Overload 7:*
  31427. Constructor using `pdf_new_matrix()`.
  31428. |
  31429. *Overload 8:*
  31430. Constructor using `pdf_new_name()`.
  31431. |
  31432. *Overload 9:*
  31433. Constructor using `pdf_new_point()`.
  31434. |
  31435. *Overload 10:*
  31436. Constructor using `pdf_new_real()`.
  31437. |
  31438. *Overload 11:*
  31439. Constructor using `pdf_new_rect()`.
  31440. |
  31441. *Overload 12:*
  31442. Constructor using `pdf_new_string()`.
  31443. |
  31444. *Overload 13:*
  31445. Constructor using `pdf_new_xobject()`.
  31446. |
  31447. *Overload 14:*
  31448. Copy constructor using `pdf_keep_obj()`.
  31449. |
  31450. *Overload 15:*
  31451. Constructor using raw copy of pre-existing `::pdf_obj`.
  31452. |
  31453. *Overload 16:*
  31454. Constructor using raw copy of pre-existing `::pdf_obj`.
  31455. """
  31456. _mupdf.PdfObj_swiginit(self, _mupdf.new_PdfObj(*args))
  31457. __swig_destroy__ = _mupdf.delete_PdfObj
  31458. def m_internal_value(self):
  31459. r"""Return numerical value of .m_internal; helps with Python debugging."""
  31460. return _mupdf.PdfObj_m_internal_value(self)
  31461. def __nonzero__(self):
  31462. return _mupdf.PdfObj___nonzero__(self)
  31463. __bool__ = __nonzero__
  31464. m_internal = property(_mupdf.PdfObj_m_internal_get, _mupdf.PdfObj_m_internal_set, doc=r"""Pointer to wrapped data.""")
  31465. s_num_instances = property(_mupdf.PdfObj_s_num_instances_get, _mupdf.PdfObj_s_num_instances_set)
  31466. # Register PdfObj in _mupdf:
  31467. _mupdf.PdfObj_swigregister(PdfObj)
  31468. class PdfObjectLabels(object):
  31469. r"""Wrapper class for struct `pdf_object_labels`. Not copyable or assignable."""
  31470. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  31471. __repr__ = _swig_repr
  31472. def pdf_label_object(self, num, callback, arg):
  31473. r"""Class-aware wrapper for `::pdf_label_object()`."""
  31474. return _mupdf.PdfObjectLabels_pdf_label_object(self, num, callback, arg)
  31475. def __init__(self, *args):
  31476. r"""
  31477. *Overload 1:*
  31478. Default constructor, sets `m_internal` to null.
  31479. |
  31480. *Overload 2:*
  31481. Constructor using raw copy of pre-existing `::pdf_object_labels`.
  31482. """
  31483. _mupdf.PdfObjectLabels_swiginit(self, _mupdf.new_PdfObjectLabels(*args))
  31484. __swig_destroy__ = _mupdf.delete_PdfObjectLabels
  31485. def m_internal_value(self):
  31486. r"""Return numerical value of .m_internal; helps with Python debugging."""
  31487. return _mupdf.PdfObjectLabels_m_internal_value(self)
  31488. def __nonzero__(self):
  31489. return _mupdf.PdfObjectLabels___nonzero__(self)
  31490. __bool__ = __nonzero__
  31491. m_internal = property(_mupdf.PdfObjectLabels_m_internal_get, _mupdf.PdfObjectLabels_m_internal_set, doc=r"""Pointer to wrapped data.""")
  31492. s_num_instances = property(_mupdf.PdfObjectLabels_s_num_instances_get, _mupdf.PdfObjectLabels_s_num_instances_set)
  31493. # Register PdfObjectLabels in _mupdf:
  31494. _mupdf.PdfObjectLabels_swigregister(PdfObjectLabels)
  31495. class PdfOcgDescriptor(object):
  31496. r"""Wrapper class for struct `pdf_ocg_descriptor`. Not copyable or assignable."""
  31497. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  31498. __repr__ = _swig_repr
  31499. def __init__(self, *args):
  31500. r"""
  31501. *Overload 1:*
  31502. Default constructor, sets `m_internal` to null.
  31503. |
  31504. *Overload 2:*
  31505. Constructor using raw copy of pre-existing `::pdf_ocg_descriptor`.
  31506. """
  31507. _mupdf.PdfOcgDescriptor_swiginit(self, _mupdf.new_PdfOcgDescriptor(*args))
  31508. __swig_destroy__ = _mupdf.delete_PdfOcgDescriptor
  31509. def m_internal_value(self):
  31510. r"""Return numerical value of .m_internal; helps with Python debugging."""
  31511. return _mupdf.PdfOcgDescriptor_m_internal_value(self)
  31512. def __nonzero__(self):
  31513. return _mupdf.PdfOcgDescriptor___nonzero__(self)
  31514. __bool__ = __nonzero__
  31515. m_internal = property(_mupdf.PdfOcgDescriptor_m_internal_get, _mupdf.PdfOcgDescriptor_m_internal_set, doc=r"""Pointer to wrapped data.""")
  31516. s_num_instances = property(_mupdf.PdfOcgDescriptor_s_num_instances_get, _mupdf.PdfOcgDescriptor_s_num_instances_set)
  31517. # Register PdfOcgDescriptor in _mupdf:
  31518. _mupdf.PdfOcgDescriptor_swigregister(PdfOcgDescriptor)
  31519. class PdfPage(object):
  31520. r"""Wrapper class for struct `pdf_page`."""
  31521. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  31522. __repr__ = _swig_repr
  31523. def pdf_bound_page(self, box):
  31524. r"""Class-aware wrapper for `::pdf_bound_page()`."""
  31525. return _mupdf.PdfPage_pdf_bound_page(self, box)
  31526. def pdf_clip_page(self, clip):
  31527. r"""Class-aware wrapper for `::pdf_clip_page()`."""
  31528. return _mupdf.PdfPage_pdf_clip_page(self, clip)
  31529. def pdf_count_page_associated_files(self):
  31530. r"""Class-aware wrapper for `::pdf_count_page_associated_files()`."""
  31531. return _mupdf.PdfPage_pdf_count_page_associated_files(self)
  31532. def pdf_create_annot(self, type):
  31533. r"""Class-aware wrapper for `::pdf_create_annot()`."""
  31534. return _mupdf.PdfPage_pdf_create_annot(self, type)
  31535. def pdf_create_annot_raw(self, type):
  31536. r"""Class-aware wrapper for `::pdf_create_annot_raw()`."""
  31537. return _mupdf.PdfPage_pdf_create_annot_raw(self, type)
  31538. def pdf_create_link(self, bbox, uri):
  31539. r"""Class-aware wrapper for `::pdf_create_link()`."""
  31540. return _mupdf.PdfPage_pdf_create_link(self, bbox, uri)
  31541. def pdf_create_signature_widget(self, name):
  31542. r"""Class-aware wrapper for `::pdf_create_signature_widget()`."""
  31543. return _mupdf.PdfPage_pdf_create_signature_widget(self, name)
  31544. def pdf_delete_annot(self, annot):
  31545. r"""Class-aware wrapper for `::pdf_delete_annot()`."""
  31546. return _mupdf.PdfPage_pdf_delete_annot(self, annot)
  31547. def pdf_delete_link(self, link):
  31548. r"""Class-aware wrapper for `::pdf_delete_link()`."""
  31549. return _mupdf.PdfPage_pdf_delete_link(self, link)
  31550. def pdf_first_annot(self):
  31551. r"""Class-aware wrapper for `::pdf_first_annot()`."""
  31552. return _mupdf.PdfPage_pdf_first_annot(self)
  31553. def pdf_first_widget(self):
  31554. r"""Class-aware wrapper for `::pdf_first_widget()`."""
  31555. return _mupdf.PdfPage_pdf_first_widget(self)
  31556. def pdf_load_links(self):
  31557. r"""Class-aware wrapper for `::pdf_load_links()`."""
  31558. return _mupdf.PdfPage_pdf_load_links(self)
  31559. def pdf_new_link(self, rect, uri, obj):
  31560. r"""Class-aware wrapper for `::pdf_new_link()`."""
  31561. return _mupdf.PdfPage_pdf_new_link(self, rect, uri, obj)
  31562. def pdf_new_pixmap_from_page_contents_with_separations_and_usage(self, ctm, cs, seps, alpha, usage, box):
  31563. r"""Class-aware wrapper for `::pdf_new_pixmap_from_page_contents_with_separations_and_usage()`."""
  31564. return _mupdf.PdfPage_pdf_new_pixmap_from_page_contents_with_separations_and_usage(self, ctm, cs, seps, alpha, usage, box)
  31565. def pdf_new_pixmap_from_page_contents_with_usage(self, ctm, cs, alpha, usage, box):
  31566. r"""Class-aware wrapper for `::pdf_new_pixmap_from_page_contents_with_usage()`."""
  31567. return _mupdf.PdfPage_pdf_new_pixmap_from_page_contents_with_usage(self, ctm, cs, alpha, usage, box)
  31568. def pdf_new_pixmap_from_page_with_separations_and_usage(self, ctm, cs, seps, alpha, usage, box):
  31569. r"""Class-aware wrapper for `::pdf_new_pixmap_from_page_with_separations_and_usage()`."""
  31570. return _mupdf.PdfPage_pdf_new_pixmap_from_page_with_separations_and_usage(self, ctm, cs, seps, alpha, usage, box)
  31571. def pdf_new_pixmap_from_page_with_usage(self, ctm, cs, alpha, usage, box):
  31572. r"""Class-aware wrapper for `::pdf_new_pixmap_from_page_with_usage()`."""
  31573. return _mupdf.PdfPage_pdf_new_pixmap_from_page_with_usage(self, ctm, cs, alpha, usage, box)
  31574. def pdf_nuke_annots(self):
  31575. r"""Class-aware wrapper for `::pdf_nuke_annots()`."""
  31576. return _mupdf.PdfPage_pdf_nuke_annots(self)
  31577. def pdf_nuke_links(self):
  31578. r"""Class-aware wrapper for `::pdf_nuke_links()`."""
  31579. return _mupdf.PdfPage_pdf_nuke_links(self)
  31580. def pdf_nuke_page(self):
  31581. r"""Class-aware wrapper for `::pdf_nuke_page()`."""
  31582. return _mupdf.PdfPage_pdf_nuke_page(self)
  31583. def pdf_page_associated_file(self, idx):
  31584. r"""Class-aware wrapper for `::pdf_page_associated_file()`."""
  31585. return _mupdf.PdfPage_pdf_page_associated_file(self, idx)
  31586. def pdf_page_contents(self):
  31587. r"""Class-aware wrapper for `::pdf_page_contents()`."""
  31588. return _mupdf.PdfPage_pdf_page_contents(self)
  31589. def pdf_page_event_close(self):
  31590. r"""Class-aware wrapper for `::pdf_page_event_close()`."""
  31591. return _mupdf.PdfPage_pdf_page_event_close(self)
  31592. def pdf_page_event_open(self):
  31593. r"""Class-aware wrapper for `::pdf_page_event_open()`."""
  31594. return _mupdf.PdfPage_pdf_page_event_open(self)
  31595. def pdf_page_group(self):
  31596. r"""Class-aware wrapper for `::pdf_page_group()`."""
  31597. return _mupdf.PdfPage_pdf_page_group(self)
  31598. def pdf_page_has_transparency(self):
  31599. r"""Class-aware wrapper for `::pdf_page_has_transparency()`."""
  31600. return _mupdf.PdfPage_pdf_page_has_transparency(self)
  31601. def pdf_page_presentation(self, transition, duration):
  31602. r"""
  31603. Class-aware wrapper for `::pdf_page_presentation()`.
  31604. This method has out-params. Python/C# wrappers look like:
  31605. `pdf_page_presentation(::fz_transition *transition)` => `(fz_transition *, float duration)`
  31606. """
  31607. return _mupdf.PdfPage_pdf_page_presentation(self, transition, duration)
  31608. def pdf_page_resources(self):
  31609. r"""Class-aware wrapper for `::pdf_page_resources()`."""
  31610. return _mupdf.PdfPage_pdf_page_resources(self)
  31611. def pdf_page_separations(self):
  31612. r"""Class-aware wrapper for `::pdf_page_separations()`."""
  31613. return _mupdf.PdfPage_pdf_page_separations(self)
  31614. def pdf_page_transform(self, mediabox, ctm):
  31615. r"""Class-aware wrapper for `::pdf_page_transform()`."""
  31616. return _mupdf.PdfPage_pdf_page_transform(self, mediabox, ctm)
  31617. def pdf_page_transform_box(self, mediabox, ctm, box):
  31618. r"""Class-aware wrapper for `::pdf_page_transform_box()`."""
  31619. return _mupdf.PdfPage_pdf_page_transform_box(self, mediabox, ctm, box)
  31620. def pdf_run_page(self, dev, ctm, cookie):
  31621. r"""Class-aware wrapper for `::pdf_run_page()`."""
  31622. return _mupdf.PdfPage_pdf_run_page(self, dev, ctm, cookie)
  31623. def pdf_run_page_annots(self, dev, ctm, cookie):
  31624. r"""Class-aware wrapper for `::pdf_run_page_annots()`."""
  31625. return _mupdf.PdfPage_pdf_run_page_annots(self, dev, ctm, cookie)
  31626. def pdf_run_page_annots_with_usage(self, dev, ctm, usage, cookie):
  31627. r"""Class-aware wrapper for `::pdf_run_page_annots_with_usage()`."""
  31628. return _mupdf.PdfPage_pdf_run_page_annots_with_usage(self, dev, ctm, usage, cookie)
  31629. def pdf_run_page_contents(self, dev, ctm, cookie):
  31630. r"""Class-aware wrapper for `::pdf_run_page_contents()`."""
  31631. return _mupdf.PdfPage_pdf_run_page_contents(self, dev, ctm, cookie)
  31632. def pdf_run_page_contents_with_usage(self, dev, ctm, usage, cookie):
  31633. r"""Class-aware wrapper for `::pdf_run_page_contents_with_usage()`."""
  31634. return _mupdf.PdfPage_pdf_run_page_contents_with_usage(self, dev, ctm, usage, cookie)
  31635. def pdf_run_page_widgets(self, dev, ctm, cookie):
  31636. r"""Class-aware wrapper for `::pdf_run_page_widgets()`."""
  31637. return _mupdf.PdfPage_pdf_run_page_widgets(self, dev, ctm, cookie)
  31638. def pdf_run_page_widgets_with_usage(self, dev, ctm, usage, cookie):
  31639. r"""Class-aware wrapper for `::pdf_run_page_widgets_with_usage()`."""
  31640. return _mupdf.PdfPage_pdf_run_page_widgets_with_usage(self, dev, ctm, usage, cookie)
  31641. def pdf_run_page_with_usage(self, dev, ctm, usage, cookie):
  31642. r"""Class-aware wrapper for `::pdf_run_page_with_usage()`."""
  31643. return _mupdf.PdfPage_pdf_run_page_with_usage(self, dev, ctm, usage, cookie)
  31644. def pdf_set_page_box(self, box, rect):
  31645. r"""Class-aware wrapper for `::pdf_set_page_box()`."""
  31646. return _mupdf.PdfPage_pdf_set_page_box(self, box, rect)
  31647. def pdf_sync_annots(self):
  31648. r"""Class-aware wrapper for `::pdf_sync_annots()`."""
  31649. return _mupdf.PdfPage_pdf_sync_annots(self)
  31650. def pdf_sync_links(self):
  31651. r"""Class-aware wrapper for `::pdf_sync_links()`."""
  31652. return _mupdf.PdfPage_pdf_sync_links(self)
  31653. def pdf_sync_page(self):
  31654. r"""Class-aware wrapper for `::pdf_sync_page()`."""
  31655. return _mupdf.PdfPage_pdf_sync_page(self)
  31656. def pdf_update_page(self):
  31657. r"""Class-aware wrapper for `::pdf_update_page()`."""
  31658. return _mupdf.PdfPage_pdf_update_page(self)
  31659. def super(self):
  31660. r"""Returns wrapper for .super member."""
  31661. return _mupdf.PdfPage_super(self)
  31662. def doc(self):
  31663. r"""Returns wrapper for .doc member."""
  31664. return _mupdf.PdfPage_doc(self)
  31665. def obj(self):
  31666. r"""Returns wrapper for .obj member."""
  31667. return _mupdf.PdfPage_obj(self)
  31668. def __init__(self, *args):
  31669. r"""
  31670. *Overload 1:*
  31671. Copy constructor using `pdf_keep_page()`.
  31672. |
  31673. *Overload 2:*
  31674. Default constructor, sets `m_internal` to null.
  31675. |
  31676. *Overload 3:*
  31677. Constructor using raw copy of pre-existing `::pdf_page`.
  31678. """
  31679. _mupdf.PdfPage_swiginit(self, _mupdf.new_PdfPage(*args))
  31680. __swig_destroy__ = _mupdf.delete_PdfPage
  31681. def m_internal_value(self):
  31682. r"""Return numerical value of .m_internal; helps with Python debugging."""
  31683. return _mupdf.PdfPage_m_internal_value(self)
  31684. def __nonzero__(self):
  31685. return _mupdf.PdfPage___nonzero__(self)
  31686. __bool__ = __nonzero__
  31687. m_internal = property(_mupdf.PdfPage_m_internal_get, _mupdf.PdfPage_m_internal_set, doc=r"""Pointer to wrapped data.""")
  31688. s_num_instances = property(_mupdf.PdfPage_s_num_instances_get, _mupdf.PdfPage_s_num_instances_set)
  31689. # Register PdfPage in _mupdf:
  31690. _mupdf.PdfPage_swigregister(PdfPage)
  31691. class PdfPattern(object):
  31692. r"""Wrapper class for struct `pdf_pattern`."""
  31693. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  31694. __repr__ = _swig_repr
  31695. def __init__(self, *args):
  31696. r"""
  31697. *Overload 1:*
  31698. Copy constructor using `pdf_keep_pattern()`.
  31699. |
  31700. *Overload 2:*
  31701. Default constructor, sets `m_internal` to null.
  31702. |
  31703. *Overload 3:*
  31704. Constructor using raw copy of pre-existing `::pdf_pattern`.
  31705. """
  31706. _mupdf.PdfPattern_swiginit(self, _mupdf.new_PdfPattern(*args))
  31707. __swig_destroy__ = _mupdf.delete_PdfPattern
  31708. def m_internal_value(self):
  31709. r"""Return numerical value of .m_internal; helps with Python debugging."""
  31710. return _mupdf.PdfPattern_m_internal_value(self)
  31711. def __nonzero__(self):
  31712. return _mupdf.PdfPattern___nonzero__(self)
  31713. __bool__ = __nonzero__
  31714. m_internal = property(_mupdf.PdfPattern_m_internal_get, _mupdf.PdfPattern_m_internal_set, doc=r"""Pointer to wrapped data.""")
  31715. s_num_instances = property(_mupdf.PdfPattern_s_num_instances_get, _mupdf.PdfPattern_s_num_instances_set)
  31716. # Register PdfPattern in _mupdf:
  31717. _mupdf.PdfPattern_swigregister(PdfPattern)
  31718. class PdfPkcs7DistinguishedName(object):
  31719. r"""Wrapper class for struct `pdf_pkcs7_distinguished_name`. Not copyable or assignable."""
  31720. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  31721. __repr__ = _swig_repr
  31722. def pdf_signature_drop_distinguished_name(self):
  31723. r"""Class-aware wrapper for `::pdf_signature_drop_distinguished_name()`."""
  31724. return _mupdf.PdfPkcs7DistinguishedName_pdf_signature_drop_distinguished_name(self)
  31725. def pdf_signature_format_distinguished_name(self):
  31726. r"""Class-aware wrapper for `::pdf_signature_format_distinguished_name()`."""
  31727. return _mupdf.PdfPkcs7DistinguishedName_pdf_signature_format_distinguished_name(self)
  31728. def __init__(self, *args):
  31729. r"""
  31730. *Overload 1:*
  31731. Default constructor, sets `m_internal` to null.
  31732. |
  31733. *Overload 2:*
  31734. Constructor using raw copy of pre-existing `::pdf_pkcs7_distinguished_name`.
  31735. """
  31736. _mupdf.PdfPkcs7DistinguishedName_swiginit(self, _mupdf.new_PdfPkcs7DistinguishedName(*args))
  31737. __swig_destroy__ = _mupdf.delete_PdfPkcs7DistinguishedName
  31738. def m_internal_value(self):
  31739. r"""Return numerical value of .m_internal; helps with Python debugging."""
  31740. return _mupdf.PdfPkcs7DistinguishedName_m_internal_value(self)
  31741. def __nonzero__(self):
  31742. return _mupdf.PdfPkcs7DistinguishedName___nonzero__(self)
  31743. __bool__ = __nonzero__
  31744. m_internal = property(_mupdf.PdfPkcs7DistinguishedName_m_internal_get, _mupdf.PdfPkcs7DistinguishedName_m_internal_set, doc=r"""Pointer to wrapped data.""")
  31745. s_num_instances = property(_mupdf.PdfPkcs7DistinguishedName_s_num_instances_get, _mupdf.PdfPkcs7DistinguishedName_s_num_instances_set)
  31746. # Register PdfPkcs7DistinguishedName in _mupdf:
  31747. _mupdf.PdfPkcs7DistinguishedName_swigregister(PdfPkcs7DistinguishedName)
  31748. class PdfPkcs7Signer(object):
  31749. r"""Wrapper class for struct `pdf_pkcs7_signer`. Not copyable or assignable."""
  31750. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  31751. __repr__ = _swig_repr
  31752. def __init__(self, *args):
  31753. r"""
  31754. *Overload 1:*
  31755. Default constructor, sets `m_internal` to null.
  31756. |
  31757. *Overload 2:*
  31758. Constructor using raw copy of pre-existing `::pdf_pkcs7_signer`.
  31759. """
  31760. _mupdf.PdfPkcs7Signer_swiginit(self, _mupdf.new_PdfPkcs7Signer(*args))
  31761. __swig_destroy__ = _mupdf.delete_PdfPkcs7Signer
  31762. def m_internal_value(self):
  31763. r"""Return numerical value of .m_internal; helps with Python debugging."""
  31764. return _mupdf.PdfPkcs7Signer_m_internal_value(self)
  31765. def __nonzero__(self):
  31766. return _mupdf.PdfPkcs7Signer___nonzero__(self)
  31767. __bool__ = __nonzero__
  31768. m_internal = property(_mupdf.PdfPkcs7Signer_m_internal_get, _mupdf.PdfPkcs7Signer_m_internal_set, doc=r"""Pointer to wrapped data.""")
  31769. s_num_instances = property(_mupdf.PdfPkcs7Signer_s_num_instances_get, _mupdf.PdfPkcs7Signer_s_num_instances_set)
  31770. # Register PdfPkcs7Signer in _mupdf:
  31771. _mupdf.PdfPkcs7Signer_swigregister(PdfPkcs7Signer)
  31772. class PdfPkcs7Verifier(object):
  31773. r"""Wrapper class for struct `pdf_pkcs7_verifier`. Not copyable or assignable."""
  31774. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  31775. __repr__ = _swig_repr
  31776. def __init__(self, *args):
  31777. r"""
  31778. *Overload 1:*
  31779. Default constructor, sets `m_internal` to null.
  31780. |
  31781. *Overload 2:*
  31782. Constructor using raw copy of pre-existing `::pdf_pkcs7_verifier`.
  31783. """
  31784. _mupdf.PdfPkcs7Verifier_swiginit(self, _mupdf.new_PdfPkcs7Verifier(*args))
  31785. __swig_destroy__ = _mupdf.delete_PdfPkcs7Verifier
  31786. def m_internal_value(self):
  31787. r"""Return numerical value of .m_internal; helps with Python debugging."""
  31788. return _mupdf.PdfPkcs7Verifier_m_internal_value(self)
  31789. def __nonzero__(self):
  31790. return _mupdf.PdfPkcs7Verifier___nonzero__(self)
  31791. __bool__ = __nonzero__
  31792. m_internal = property(_mupdf.PdfPkcs7Verifier_m_internal_get, _mupdf.PdfPkcs7Verifier_m_internal_set, doc=r"""Pointer to wrapped data.""")
  31793. s_num_instances = property(_mupdf.PdfPkcs7Verifier_s_num_instances_get, _mupdf.PdfPkcs7Verifier_s_num_instances_set)
  31794. # Register PdfPkcs7Verifier in _mupdf:
  31795. _mupdf.PdfPkcs7Verifier_swigregister(PdfPkcs7Verifier)
  31796. class PdfProcessor(object):
  31797. r"""Wrapper class for struct `pdf_processor`."""
  31798. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  31799. __repr__ = _swig_repr
  31800. @staticmethod
  31801. def pdf_new_color_filter(doc, chain, struct_parents, transform, options, copts):
  31802. r"""Class-aware wrapper for `::pdf_new_color_filter()`."""
  31803. return _mupdf.PdfProcessor_pdf_new_color_filter(doc, chain, struct_parents, transform, options, copts)
  31804. def pdf_close_processor(self):
  31805. r"""Class-aware wrapper for `::pdf_close_processor()`."""
  31806. return _mupdf.PdfProcessor_pdf_close_processor(self)
  31807. def pdf_process_annot(self, annot, cookie):
  31808. r"""Class-aware wrapper for `::pdf_process_annot()`."""
  31809. return _mupdf.PdfProcessor_pdf_process_annot(self, annot, cookie)
  31810. def pdf_process_contents(self, doc, res, stm, cookie, out_res):
  31811. r"""
  31812. Class-aware wrapper for `::pdf_process_contents()`.
  31813. This method has out-params. Python/C# wrappers look like:
  31814. `pdf_process_contents(::pdf_document *doc, ::pdf_obj *res, ::pdf_obj *stm, ::fz_cookie *cookie, ::pdf_obj **out_res)` =>
  31815. """
  31816. return _mupdf.PdfProcessor_pdf_process_contents(self, doc, res, stm, cookie, out_res)
  31817. def pdf_process_glyph(self, doc, resources, contents):
  31818. r"""Class-aware wrapper for `::pdf_process_glyph()`."""
  31819. return _mupdf.PdfProcessor_pdf_process_glyph(self, doc, resources, contents)
  31820. def pdf_process_raw_contents(self, doc, rdb, stmobj, cookie):
  31821. r"""Class-aware wrapper for `::pdf_process_raw_contents()`."""
  31822. return _mupdf.PdfProcessor_pdf_process_raw_contents(self, doc, rdb, stmobj, cookie)
  31823. def pdf_processor_pop_resources(self):
  31824. r"""Class-aware wrapper for `::pdf_processor_pop_resources()`."""
  31825. return _mupdf.PdfProcessor_pdf_processor_pop_resources(self)
  31826. def pdf_processor_push_resources(self, res):
  31827. r"""Class-aware wrapper for `::pdf_processor_push_resources()`."""
  31828. return _mupdf.PdfProcessor_pdf_processor_push_resources(self, res)
  31829. def pdf_reset_processor(self):
  31830. r"""Class-aware wrapper for `::pdf_reset_processor()`."""
  31831. return _mupdf.PdfProcessor_pdf_reset_processor(self)
  31832. def __init__(self, *args):
  31833. r"""
  31834. *Overload 1:*
  31835. == Constructors. Constructor using `pdf_new_buffer_processor()`.
  31836. |
  31837. *Overload 2:*
  31838. Constructor using `pdf_new_output_processor()`.
  31839. |
  31840. *Overload 3:*
  31841. Constructor using `pdf_new_run_processor()`.
  31842. |
  31843. *Overload 4:*
  31844. Constructor using `pdf_new_sanitize_filter()`.
  31845. |
  31846. *Overload 5:*
  31847. Copy constructor using `pdf_keep_processor()`.
  31848. |
  31849. *Overload 6:*
  31850. Default constructor, sets `m_internal` to null.
  31851. |
  31852. *Overload 7:*
  31853. Constructor using raw copy of pre-existing `::pdf_processor`.
  31854. """
  31855. _mupdf.PdfProcessor_swiginit(self, _mupdf.new_PdfProcessor(*args))
  31856. __swig_destroy__ = _mupdf.delete_PdfProcessor
  31857. def m_internal_value(self):
  31858. r"""Return numerical value of .m_internal; helps with Python debugging."""
  31859. return _mupdf.PdfProcessor_m_internal_value(self)
  31860. def __nonzero__(self):
  31861. return _mupdf.PdfProcessor___nonzero__(self)
  31862. __bool__ = __nonzero__
  31863. m_internal = property(_mupdf.PdfProcessor_m_internal_get, _mupdf.PdfProcessor_m_internal_set, doc=r"""Pointer to wrapped data.""")
  31864. s_num_instances = property(_mupdf.PdfProcessor_s_num_instances_get, _mupdf.PdfProcessor_s_num_instances_set)
  31865. # Register PdfProcessor in _mupdf:
  31866. _mupdf.PdfProcessor_swigregister(PdfProcessor)
  31867. class PdfProcessor2(PdfProcessor):
  31868. r"""Wrapper class for struct pdf_processor with virtual fns for each fnptr; this is for use as a SWIG Director class."""
  31869. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  31870. __repr__ = _swig_repr
  31871. def __init__(self):
  31872. r"""== Constructor."""
  31873. if self.__class__ == PdfProcessor2:
  31874. _self = None
  31875. else:
  31876. _self = self
  31877. _mupdf.PdfProcessor2_swiginit(self, _mupdf.new_PdfProcessor2(_self, ))
  31878. __swig_destroy__ = _mupdf.delete_PdfProcessor2
  31879. def use_virtual_close_processor(self, use=True):
  31880. r"""
  31881. These methods set the function pointers in *m_internal
  31882. to point to internal callbacks that call our virtual methods.
  31883. """
  31884. return _mupdf.PdfProcessor2_use_virtual_close_processor(self, use)
  31885. def use_virtual_drop_processor(self, use=True):
  31886. return _mupdf.PdfProcessor2_use_virtual_drop_processor(self, use)
  31887. def use_virtual_reset_processor(self, use=True):
  31888. return _mupdf.PdfProcessor2_use_virtual_reset_processor(self, use)
  31889. def use_virtual_push_resources(self, use=True):
  31890. return _mupdf.PdfProcessor2_use_virtual_push_resources(self, use)
  31891. def use_virtual_pop_resources(self, use=True):
  31892. return _mupdf.PdfProcessor2_use_virtual_pop_resources(self, use)
  31893. def use_virtual_op_w(self, use=True):
  31894. return _mupdf.PdfProcessor2_use_virtual_op_w(self, use)
  31895. def use_virtual_op_j(self, use=True):
  31896. return _mupdf.PdfProcessor2_use_virtual_op_j(self, use)
  31897. def use_virtual_op_J(self, use=True):
  31898. return _mupdf.PdfProcessor2_use_virtual_op_J(self, use)
  31899. def use_virtual_op_M(self, use=True):
  31900. return _mupdf.PdfProcessor2_use_virtual_op_M(self, use)
  31901. def use_virtual_op_d(self, use=True):
  31902. return _mupdf.PdfProcessor2_use_virtual_op_d(self, use)
  31903. def use_virtual_op_ri(self, use=True):
  31904. return _mupdf.PdfProcessor2_use_virtual_op_ri(self, use)
  31905. def use_virtual_op_i(self, use=True):
  31906. return _mupdf.PdfProcessor2_use_virtual_op_i(self, use)
  31907. def use_virtual_op_gs_begin(self, use=True):
  31908. return _mupdf.PdfProcessor2_use_virtual_op_gs_begin(self, use)
  31909. def use_virtual_op_gs_BM(self, use=True):
  31910. return _mupdf.PdfProcessor2_use_virtual_op_gs_BM(self, use)
  31911. def use_virtual_op_gs_ca(self, use=True):
  31912. return _mupdf.PdfProcessor2_use_virtual_op_gs_ca(self, use)
  31913. def use_virtual_op_gs_CA(self, use=True):
  31914. return _mupdf.PdfProcessor2_use_virtual_op_gs_CA(self, use)
  31915. def use_virtual_op_gs_SMask(self, use=True):
  31916. return _mupdf.PdfProcessor2_use_virtual_op_gs_SMask(self, use)
  31917. def use_virtual_op_gs_end(self, use=True):
  31918. return _mupdf.PdfProcessor2_use_virtual_op_gs_end(self, use)
  31919. def use_virtual_op_q(self, use=True):
  31920. return _mupdf.PdfProcessor2_use_virtual_op_q(self, use)
  31921. def use_virtual_op_Q(self, use=True):
  31922. return _mupdf.PdfProcessor2_use_virtual_op_Q(self, use)
  31923. def use_virtual_op_cm(self, use=True):
  31924. return _mupdf.PdfProcessor2_use_virtual_op_cm(self, use)
  31925. def use_virtual_op_m(self, use=True):
  31926. return _mupdf.PdfProcessor2_use_virtual_op_m(self, use)
  31927. def use_virtual_op_l(self, use=True):
  31928. return _mupdf.PdfProcessor2_use_virtual_op_l(self, use)
  31929. def use_virtual_op_c(self, use=True):
  31930. return _mupdf.PdfProcessor2_use_virtual_op_c(self, use)
  31931. def use_virtual_op_v(self, use=True):
  31932. return _mupdf.PdfProcessor2_use_virtual_op_v(self, use)
  31933. def use_virtual_op_y(self, use=True):
  31934. return _mupdf.PdfProcessor2_use_virtual_op_y(self, use)
  31935. def use_virtual_op_h(self, use=True):
  31936. return _mupdf.PdfProcessor2_use_virtual_op_h(self, use)
  31937. def use_virtual_op_re(self, use=True):
  31938. return _mupdf.PdfProcessor2_use_virtual_op_re(self, use)
  31939. def use_virtual_op_S(self, use=True):
  31940. return _mupdf.PdfProcessor2_use_virtual_op_S(self, use)
  31941. def use_virtual_op_s(self, use=True):
  31942. return _mupdf.PdfProcessor2_use_virtual_op_s(self, use)
  31943. def use_virtual_op_F(self, use=True):
  31944. return _mupdf.PdfProcessor2_use_virtual_op_F(self, use)
  31945. def use_virtual_op_f(self, use=True):
  31946. return _mupdf.PdfProcessor2_use_virtual_op_f(self, use)
  31947. def use_virtual_op_fstar(self, use=True):
  31948. return _mupdf.PdfProcessor2_use_virtual_op_fstar(self, use)
  31949. def use_virtual_op_B(self, use=True):
  31950. return _mupdf.PdfProcessor2_use_virtual_op_B(self, use)
  31951. def use_virtual_op_Bstar(self, use=True):
  31952. return _mupdf.PdfProcessor2_use_virtual_op_Bstar(self, use)
  31953. def use_virtual_op_b(self, use=True):
  31954. return _mupdf.PdfProcessor2_use_virtual_op_b(self, use)
  31955. def use_virtual_op_bstar(self, use=True):
  31956. return _mupdf.PdfProcessor2_use_virtual_op_bstar(self, use)
  31957. def use_virtual_op_n(self, use=True):
  31958. return _mupdf.PdfProcessor2_use_virtual_op_n(self, use)
  31959. def use_virtual_op_W(self, use=True):
  31960. return _mupdf.PdfProcessor2_use_virtual_op_W(self, use)
  31961. def use_virtual_op_Wstar(self, use=True):
  31962. return _mupdf.PdfProcessor2_use_virtual_op_Wstar(self, use)
  31963. def use_virtual_op_BT(self, use=True):
  31964. return _mupdf.PdfProcessor2_use_virtual_op_BT(self, use)
  31965. def use_virtual_op_ET(self, use=True):
  31966. return _mupdf.PdfProcessor2_use_virtual_op_ET(self, use)
  31967. def use_virtual_op_Tc(self, use=True):
  31968. return _mupdf.PdfProcessor2_use_virtual_op_Tc(self, use)
  31969. def use_virtual_op_Tw(self, use=True):
  31970. return _mupdf.PdfProcessor2_use_virtual_op_Tw(self, use)
  31971. def use_virtual_op_Tz(self, use=True):
  31972. return _mupdf.PdfProcessor2_use_virtual_op_Tz(self, use)
  31973. def use_virtual_op_TL(self, use=True):
  31974. return _mupdf.PdfProcessor2_use_virtual_op_TL(self, use)
  31975. def use_virtual_op_Tf(self, use=True):
  31976. return _mupdf.PdfProcessor2_use_virtual_op_Tf(self, use)
  31977. def use_virtual_op_Tr(self, use=True):
  31978. return _mupdf.PdfProcessor2_use_virtual_op_Tr(self, use)
  31979. def use_virtual_op_Ts(self, use=True):
  31980. return _mupdf.PdfProcessor2_use_virtual_op_Ts(self, use)
  31981. def use_virtual_op_Td(self, use=True):
  31982. return _mupdf.PdfProcessor2_use_virtual_op_Td(self, use)
  31983. def use_virtual_op_TD(self, use=True):
  31984. return _mupdf.PdfProcessor2_use_virtual_op_TD(self, use)
  31985. def use_virtual_op_Tm(self, use=True):
  31986. return _mupdf.PdfProcessor2_use_virtual_op_Tm(self, use)
  31987. def use_virtual_op_Tstar(self, use=True):
  31988. return _mupdf.PdfProcessor2_use_virtual_op_Tstar(self, use)
  31989. def use_virtual_op_TJ(self, use=True):
  31990. return _mupdf.PdfProcessor2_use_virtual_op_TJ(self, use)
  31991. def use_virtual_op_Tj(self, use=True):
  31992. return _mupdf.PdfProcessor2_use_virtual_op_Tj(self, use)
  31993. def use_virtual_op_squote(self, use=True):
  31994. return _mupdf.PdfProcessor2_use_virtual_op_squote(self, use)
  31995. def use_virtual_op_dquote(self, use=True):
  31996. return _mupdf.PdfProcessor2_use_virtual_op_dquote(self, use)
  31997. def use_virtual_op_d0(self, use=True):
  31998. return _mupdf.PdfProcessor2_use_virtual_op_d0(self, use)
  31999. def use_virtual_op_d1(self, use=True):
  32000. return _mupdf.PdfProcessor2_use_virtual_op_d1(self, use)
  32001. def use_virtual_op_CS(self, use=True):
  32002. return _mupdf.PdfProcessor2_use_virtual_op_CS(self, use)
  32003. def use_virtual_op_cs(self, use=True):
  32004. return _mupdf.PdfProcessor2_use_virtual_op_cs(self, use)
  32005. def use_virtual_op_SC_pattern(self, use=True):
  32006. return _mupdf.PdfProcessor2_use_virtual_op_SC_pattern(self, use)
  32007. def use_virtual_op_sc_pattern(self, use=True):
  32008. return _mupdf.PdfProcessor2_use_virtual_op_sc_pattern(self, use)
  32009. def use_virtual_op_SC_shade(self, use=True):
  32010. return _mupdf.PdfProcessor2_use_virtual_op_SC_shade(self, use)
  32011. def use_virtual_op_sc_shade(self, use=True):
  32012. return _mupdf.PdfProcessor2_use_virtual_op_sc_shade(self, use)
  32013. def use_virtual_op_SC_color(self, use=True):
  32014. return _mupdf.PdfProcessor2_use_virtual_op_SC_color(self, use)
  32015. def use_virtual_op_sc_color(self, use=True):
  32016. return _mupdf.PdfProcessor2_use_virtual_op_sc_color(self, use)
  32017. def use_virtual_op_G(self, use=True):
  32018. return _mupdf.PdfProcessor2_use_virtual_op_G(self, use)
  32019. def use_virtual_op_g(self, use=True):
  32020. return _mupdf.PdfProcessor2_use_virtual_op_g(self, use)
  32021. def use_virtual_op_RG(self, use=True):
  32022. return _mupdf.PdfProcessor2_use_virtual_op_RG(self, use)
  32023. def use_virtual_op_rg(self, use=True):
  32024. return _mupdf.PdfProcessor2_use_virtual_op_rg(self, use)
  32025. def use_virtual_op_K(self, use=True):
  32026. return _mupdf.PdfProcessor2_use_virtual_op_K(self, use)
  32027. def use_virtual_op_k(self, use=True):
  32028. return _mupdf.PdfProcessor2_use_virtual_op_k(self, use)
  32029. def use_virtual_op_BI(self, use=True):
  32030. return _mupdf.PdfProcessor2_use_virtual_op_BI(self, use)
  32031. def use_virtual_op_sh(self, use=True):
  32032. return _mupdf.PdfProcessor2_use_virtual_op_sh(self, use)
  32033. def use_virtual_op_Do_image(self, use=True):
  32034. return _mupdf.PdfProcessor2_use_virtual_op_Do_image(self, use)
  32035. def use_virtual_op_Do_form(self, use=True):
  32036. return _mupdf.PdfProcessor2_use_virtual_op_Do_form(self, use)
  32037. def use_virtual_op_MP(self, use=True):
  32038. return _mupdf.PdfProcessor2_use_virtual_op_MP(self, use)
  32039. def use_virtual_op_DP(self, use=True):
  32040. return _mupdf.PdfProcessor2_use_virtual_op_DP(self, use)
  32041. def use_virtual_op_BMC(self, use=True):
  32042. return _mupdf.PdfProcessor2_use_virtual_op_BMC(self, use)
  32043. def use_virtual_op_BDC(self, use=True):
  32044. return _mupdf.PdfProcessor2_use_virtual_op_BDC(self, use)
  32045. def use_virtual_op_EMC(self, use=True):
  32046. return _mupdf.PdfProcessor2_use_virtual_op_EMC(self, use)
  32047. def use_virtual_op_BX(self, use=True):
  32048. return _mupdf.PdfProcessor2_use_virtual_op_BX(self, use)
  32049. def use_virtual_op_EX(self, use=True):
  32050. return _mupdf.PdfProcessor2_use_virtual_op_EX(self, use)
  32051. def use_virtual_op_gs_OP(self, use=True):
  32052. return _mupdf.PdfProcessor2_use_virtual_op_gs_OP(self, use)
  32053. def use_virtual_op_gs_op(self, use=True):
  32054. return _mupdf.PdfProcessor2_use_virtual_op_gs_op(self, use)
  32055. def use_virtual_op_gs_OPM(self, use=True):
  32056. return _mupdf.PdfProcessor2_use_virtual_op_gs_OPM(self, use)
  32057. def use_virtual_op_gs_UseBlackPtComp(self, use=True):
  32058. return _mupdf.PdfProcessor2_use_virtual_op_gs_UseBlackPtComp(self, use)
  32059. def use_virtual_op_EOD(self, use=True):
  32060. return _mupdf.PdfProcessor2_use_virtual_op_EOD(self, use)
  32061. def use_virtual_op_END(self, use=True):
  32062. return _mupdf.PdfProcessor2_use_virtual_op_END(self, use)
  32063. def close_processor(self, arg_0):
  32064. r"""Default virtual method implementations; these all throw an exception."""
  32065. return _mupdf.PdfProcessor2_close_processor(self, arg_0)
  32066. def drop_processor(self, arg_0):
  32067. return _mupdf.PdfProcessor2_drop_processor(self, arg_0)
  32068. def reset_processor(self, arg_0):
  32069. return _mupdf.PdfProcessor2_reset_processor(self, arg_0)
  32070. def push_resources(self, arg_0, arg_2):
  32071. return _mupdf.PdfProcessor2_push_resources(self, arg_0, arg_2)
  32072. def pop_resources(self, arg_0):
  32073. return _mupdf.PdfProcessor2_pop_resources(self, arg_0)
  32074. def op_w(self, arg_0, arg_2):
  32075. return _mupdf.PdfProcessor2_op_w(self, arg_0, arg_2)
  32076. def op_j(self, arg_0, arg_2):
  32077. return _mupdf.PdfProcessor2_op_j(self, arg_0, arg_2)
  32078. def op_J(self, arg_0, arg_2):
  32079. return _mupdf.PdfProcessor2_op_J(self, arg_0, arg_2)
  32080. def op_M(self, arg_0, arg_2):
  32081. return _mupdf.PdfProcessor2_op_M(self, arg_0, arg_2)
  32082. def op_d(self, arg_0, arg_2, arg_3):
  32083. return _mupdf.PdfProcessor2_op_d(self, arg_0, arg_2, arg_3)
  32084. def op_ri(self, arg_0, arg_2):
  32085. return _mupdf.PdfProcessor2_op_ri(self, arg_0, arg_2)
  32086. def op_i(self, arg_0, arg_2):
  32087. return _mupdf.PdfProcessor2_op_i(self, arg_0, arg_2)
  32088. def op_gs_begin(self, arg_0, arg_2, arg_3):
  32089. return _mupdf.PdfProcessor2_op_gs_begin(self, arg_0, arg_2, arg_3)
  32090. def op_gs_BM(self, arg_0, arg_2):
  32091. return _mupdf.PdfProcessor2_op_gs_BM(self, arg_0, arg_2)
  32092. def op_gs_ca(self, arg_0, arg_2):
  32093. return _mupdf.PdfProcessor2_op_gs_ca(self, arg_0, arg_2)
  32094. def op_gs_CA(self, arg_0, arg_2):
  32095. return _mupdf.PdfProcessor2_op_gs_CA(self, arg_0, arg_2)
  32096. def op_gs_SMask(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6):
  32097. return _mupdf.PdfProcessor2_op_gs_SMask(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6)
  32098. def op_gs_end(self, arg_0):
  32099. return _mupdf.PdfProcessor2_op_gs_end(self, arg_0)
  32100. def op_q(self, arg_0):
  32101. return _mupdf.PdfProcessor2_op_q(self, arg_0)
  32102. def op_Q(self, arg_0):
  32103. return _mupdf.PdfProcessor2_op_Q(self, arg_0)
  32104. def op_cm(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7):
  32105. return _mupdf.PdfProcessor2_op_cm(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7)
  32106. def op_m(self, arg_0, arg_2, arg_3):
  32107. return _mupdf.PdfProcessor2_op_m(self, arg_0, arg_2, arg_3)
  32108. def op_l(self, arg_0, arg_2, arg_3):
  32109. return _mupdf.PdfProcessor2_op_l(self, arg_0, arg_2, arg_3)
  32110. def op_c(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7):
  32111. return _mupdf.PdfProcessor2_op_c(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7)
  32112. def op_v(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  32113. return _mupdf.PdfProcessor2_op_v(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  32114. def op_y(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  32115. return _mupdf.PdfProcessor2_op_y(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  32116. def op_h(self, arg_0):
  32117. return _mupdf.PdfProcessor2_op_h(self, arg_0)
  32118. def op_re(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  32119. return _mupdf.PdfProcessor2_op_re(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  32120. def op_S(self, arg_0):
  32121. return _mupdf.PdfProcessor2_op_S(self, arg_0)
  32122. def op_s(self, arg_0):
  32123. return _mupdf.PdfProcessor2_op_s(self, arg_0)
  32124. def op_F(self, arg_0):
  32125. return _mupdf.PdfProcessor2_op_F(self, arg_0)
  32126. def op_f(self, arg_0):
  32127. return _mupdf.PdfProcessor2_op_f(self, arg_0)
  32128. def op_fstar(self, arg_0):
  32129. return _mupdf.PdfProcessor2_op_fstar(self, arg_0)
  32130. def op_B(self, arg_0):
  32131. return _mupdf.PdfProcessor2_op_B(self, arg_0)
  32132. def op_Bstar(self, arg_0):
  32133. return _mupdf.PdfProcessor2_op_Bstar(self, arg_0)
  32134. def op_b(self, arg_0):
  32135. return _mupdf.PdfProcessor2_op_b(self, arg_0)
  32136. def op_bstar(self, arg_0):
  32137. return _mupdf.PdfProcessor2_op_bstar(self, arg_0)
  32138. def op_n(self, arg_0):
  32139. return _mupdf.PdfProcessor2_op_n(self, arg_0)
  32140. def op_W(self, arg_0):
  32141. return _mupdf.PdfProcessor2_op_W(self, arg_0)
  32142. def op_Wstar(self, arg_0):
  32143. return _mupdf.PdfProcessor2_op_Wstar(self, arg_0)
  32144. def op_BT(self, arg_0):
  32145. return _mupdf.PdfProcessor2_op_BT(self, arg_0)
  32146. def op_ET(self, arg_0):
  32147. return _mupdf.PdfProcessor2_op_ET(self, arg_0)
  32148. def op_Tc(self, arg_0, arg_2):
  32149. return _mupdf.PdfProcessor2_op_Tc(self, arg_0, arg_2)
  32150. def op_Tw(self, arg_0, arg_2):
  32151. return _mupdf.PdfProcessor2_op_Tw(self, arg_0, arg_2)
  32152. def op_Tz(self, arg_0, arg_2):
  32153. return _mupdf.PdfProcessor2_op_Tz(self, arg_0, arg_2)
  32154. def op_TL(self, arg_0, arg_2):
  32155. return _mupdf.PdfProcessor2_op_TL(self, arg_0, arg_2)
  32156. def op_Tf(self, arg_0, arg_2, arg_3, arg_4):
  32157. return _mupdf.PdfProcessor2_op_Tf(self, arg_0, arg_2, arg_3, arg_4)
  32158. def op_Tr(self, arg_0, arg_2):
  32159. return _mupdf.PdfProcessor2_op_Tr(self, arg_0, arg_2)
  32160. def op_Ts(self, arg_0, arg_2):
  32161. return _mupdf.PdfProcessor2_op_Ts(self, arg_0, arg_2)
  32162. def op_Td(self, arg_0, arg_2, arg_3):
  32163. return _mupdf.PdfProcessor2_op_Td(self, arg_0, arg_2, arg_3)
  32164. def op_TD(self, arg_0, arg_2, arg_3):
  32165. return _mupdf.PdfProcessor2_op_TD(self, arg_0, arg_2, arg_3)
  32166. def op_Tm(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7):
  32167. return _mupdf.PdfProcessor2_op_Tm(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7)
  32168. def op_Tstar(self, arg_0):
  32169. return _mupdf.PdfProcessor2_op_Tstar(self, arg_0)
  32170. def op_TJ(self, arg_0, arg_2):
  32171. return _mupdf.PdfProcessor2_op_TJ(self, arg_0, arg_2)
  32172. def op_Tj(self, arg_0, arg_2, arg_3):
  32173. return _mupdf.PdfProcessor2_op_Tj(self, arg_0, arg_2, arg_3)
  32174. def op_squote(self, arg_0, arg_2, arg_3):
  32175. return _mupdf.PdfProcessor2_op_squote(self, arg_0, arg_2, arg_3)
  32176. def op_dquote(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  32177. return _mupdf.PdfProcessor2_op_dquote(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  32178. def op_d0(self, arg_0, arg_2, arg_3):
  32179. return _mupdf.PdfProcessor2_op_d0(self, arg_0, arg_2, arg_3)
  32180. def op_d1(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7):
  32181. return _mupdf.PdfProcessor2_op_d1(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6, arg_7)
  32182. def op_CS(self, arg_0, arg_2, arg_3):
  32183. return _mupdf.PdfProcessor2_op_CS(self, arg_0, arg_2, arg_3)
  32184. def op_cs(self, arg_0, arg_2, arg_3):
  32185. return _mupdf.PdfProcessor2_op_cs(self, arg_0, arg_2, arg_3)
  32186. def op_SC_pattern(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  32187. return _mupdf.PdfProcessor2_op_SC_pattern(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  32188. def op_sc_pattern(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  32189. return _mupdf.PdfProcessor2_op_sc_pattern(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  32190. def op_SC_shade(self, arg_0, arg_2, arg_3):
  32191. return _mupdf.PdfProcessor2_op_SC_shade(self, arg_0, arg_2, arg_3)
  32192. def op_sc_shade(self, arg_0, arg_2, arg_3):
  32193. return _mupdf.PdfProcessor2_op_sc_shade(self, arg_0, arg_2, arg_3)
  32194. def op_SC_color(self, arg_0, arg_2, arg_3):
  32195. return _mupdf.PdfProcessor2_op_SC_color(self, arg_0, arg_2, arg_3)
  32196. def op_sc_color(self, arg_0, arg_2, arg_3):
  32197. return _mupdf.PdfProcessor2_op_sc_color(self, arg_0, arg_2, arg_3)
  32198. def op_G(self, arg_0, arg_2):
  32199. return _mupdf.PdfProcessor2_op_G(self, arg_0, arg_2)
  32200. def op_g(self, arg_0, arg_2):
  32201. return _mupdf.PdfProcessor2_op_g(self, arg_0, arg_2)
  32202. def op_RG(self, arg_0, arg_2, arg_3, arg_4):
  32203. return _mupdf.PdfProcessor2_op_RG(self, arg_0, arg_2, arg_3, arg_4)
  32204. def op_rg(self, arg_0, arg_2, arg_3, arg_4):
  32205. return _mupdf.PdfProcessor2_op_rg(self, arg_0, arg_2, arg_3, arg_4)
  32206. def op_K(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  32207. return _mupdf.PdfProcessor2_op_K(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  32208. def op_k(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  32209. return _mupdf.PdfProcessor2_op_k(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  32210. def op_BI(self, arg_0, arg_2, arg_3):
  32211. return _mupdf.PdfProcessor2_op_BI(self, arg_0, arg_2, arg_3)
  32212. def op_sh(self, arg_0, arg_2, arg_3):
  32213. return _mupdf.PdfProcessor2_op_sh(self, arg_0, arg_2, arg_3)
  32214. def op_Do_image(self, arg_0, arg_2, arg_3):
  32215. return _mupdf.PdfProcessor2_op_Do_image(self, arg_0, arg_2, arg_3)
  32216. def op_Do_form(self, arg_0, arg_2, arg_3):
  32217. return _mupdf.PdfProcessor2_op_Do_form(self, arg_0, arg_2, arg_3)
  32218. def op_MP(self, arg_0, arg_2):
  32219. return _mupdf.PdfProcessor2_op_MP(self, arg_0, arg_2)
  32220. def op_DP(self, arg_0, arg_2, arg_3, arg_4):
  32221. return _mupdf.PdfProcessor2_op_DP(self, arg_0, arg_2, arg_3, arg_4)
  32222. def op_BMC(self, arg_0, arg_2):
  32223. return _mupdf.PdfProcessor2_op_BMC(self, arg_0, arg_2)
  32224. def op_BDC(self, arg_0, arg_2, arg_3, arg_4):
  32225. return _mupdf.PdfProcessor2_op_BDC(self, arg_0, arg_2, arg_3, arg_4)
  32226. def op_EMC(self, arg_0):
  32227. return _mupdf.PdfProcessor2_op_EMC(self, arg_0)
  32228. def op_BX(self, arg_0):
  32229. return _mupdf.PdfProcessor2_op_BX(self, arg_0)
  32230. def op_EX(self, arg_0):
  32231. return _mupdf.PdfProcessor2_op_EX(self, arg_0)
  32232. def op_gs_OP(self, arg_0, arg_2):
  32233. return _mupdf.PdfProcessor2_op_gs_OP(self, arg_0, arg_2)
  32234. def op_gs_op(self, arg_0, arg_2):
  32235. return _mupdf.PdfProcessor2_op_gs_op(self, arg_0, arg_2)
  32236. def op_gs_OPM(self, arg_0, arg_2):
  32237. return _mupdf.PdfProcessor2_op_gs_OPM(self, arg_0, arg_2)
  32238. def op_gs_UseBlackPtComp(self, arg_0, arg_2):
  32239. return _mupdf.PdfProcessor2_op_gs_UseBlackPtComp(self, arg_0, arg_2)
  32240. def op_EOD(self, arg_0):
  32241. return _mupdf.PdfProcessor2_op_EOD(self, arg_0)
  32242. def op_END(self, arg_0):
  32243. return _mupdf.PdfProcessor2_op_END(self, arg_0)
  32244. def __disown__(self):
  32245. self.this.disown()
  32246. _mupdf.disown_PdfProcessor2(self)
  32247. return weakref.proxy(self)
  32248. # Register PdfProcessor2 in _mupdf:
  32249. _mupdf.PdfProcessor2_swigregister(PdfProcessor2)
  32250. class PdfRange(object):
  32251. r"""Wrapper class for struct `pdf_range`. Not copyable or assignable."""
  32252. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32253. __repr__ = _swig_repr
  32254. def __init__(self, *args):
  32255. r"""
  32256. *Overload 1:*
  32257. Default constructor, sets `m_internal` to null.
  32258. |
  32259. *Overload 2:*
  32260. Constructor using raw copy of pre-existing `::pdf_range`.
  32261. """
  32262. _mupdf.PdfRange_swiginit(self, _mupdf.new_PdfRange(*args))
  32263. __swig_destroy__ = _mupdf.delete_PdfRange
  32264. def m_internal_value(self):
  32265. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32266. return _mupdf.PdfRange_m_internal_value(self)
  32267. def __nonzero__(self):
  32268. return _mupdf.PdfRange___nonzero__(self)
  32269. __bool__ = __nonzero__
  32270. m_internal = property(_mupdf.PdfRange_m_internal_get, _mupdf.PdfRange_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32271. s_num_instances = property(_mupdf.PdfRange_s_num_instances_get, _mupdf.PdfRange_s_num_instances_set)
  32272. # Register PdfRange in _mupdf:
  32273. _mupdf.PdfRange_swigregister(PdfRange)
  32274. class PdfRecolorOptions(object):
  32275. r"""Wrapper class for struct `pdf_recolor_options`."""
  32276. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32277. __repr__ = _swig_repr
  32278. def __init__(self, *args):
  32279. r"""
  32280. *Overload 1:*
  32281. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  32282. |
  32283. *Overload 2:*
  32284. Constructor using raw copy of pre-existing `::pdf_recolor_options`.
  32285. |
  32286. *Overload 3:*
  32287. Constructor using raw copy of pre-existing `::pdf_recolor_options`.
  32288. """
  32289. _mupdf.PdfRecolorOptions_swiginit(self, _mupdf.new_PdfRecolorOptions(*args))
  32290. def internal(self, *args):
  32291. r"""
  32292. *Overload 1:*
  32293. Access as underlying struct.
  32294. |
  32295. *Overload 2:*
  32296. Access as underlying struct.
  32297. """
  32298. return _mupdf.PdfRecolorOptions_internal(self, *args)
  32299. __swig_destroy__ = _mupdf.delete_PdfRecolorOptions
  32300. num_comp = property(_mupdf.PdfRecolorOptions_num_comp_get, _mupdf.PdfRecolorOptions_num_comp_set)
  32301. s_num_instances = property(_mupdf.PdfRecolorOptions_s_num_instances_get, _mupdf.PdfRecolorOptions_s_num_instances_set)
  32302. def to_string(self):
  32303. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  32304. return _mupdf.PdfRecolorOptions_to_string(self)
  32305. def __eq__(self, rhs):
  32306. r"""Comparison method."""
  32307. return _mupdf.PdfRecolorOptions___eq__(self, rhs)
  32308. def __ne__(self, rhs):
  32309. r"""Comparison method."""
  32310. return _mupdf.PdfRecolorOptions___ne__(self, rhs)
  32311. # Register PdfRecolorOptions in _mupdf:
  32312. _mupdf.PdfRecolorOptions_swigregister(PdfRecolorOptions)
  32313. class PdfRedactOptions(object):
  32314. r"""Wrapper class for struct `pdf_redact_options`."""
  32315. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32316. __repr__ = _swig_repr
  32317. def __init__(self, *args):
  32318. r"""
  32319. *Overload 1:*
  32320. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  32321. |
  32322. *Overload 2:*
  32323. Constructor using raw copy of pre-existing `::pdf_redact_options`.
  32324. |
  32325. *Overload 3:*
  32326. Constructor using raw copy of pre-existing `::pdf_redact_options`.
  32327. """
  32328. _mupdf.PdfRedactOptions_swiginit(self, _mupdf.new_PdfRedactOptions(*args))
  32329. def internal(self, *args):
  32330. r"""
  32331. *Overload 1:*
  32332. Access as underlying struct.
  32333. |
  32334. *Overload 2:*
  32335. Access as underlying struct.
  32336. """
  32337. return _mupdf.PdfRedactOptions_internal(self, *args)
  32338. __swig_destroy__ = _mupdf.delete_PdfRedactOptions
  32339. black_boxes = property(_mupdf.PdfRedactOptions_black_boxes_get, _mupdf.PdfRedactOptions_black_boxes_set)
  32340. image_method = property(_mupdf.PdfRedactOptions_image_method_get, _mupdf.PdfRedactOptions_image_method_set)
  32341. line_art = property(_mupdf.PdfRedactOptions_line_art_get, _mupdf.PdfRedactOptions_line_art_set)
  32342. text = property(_mupdf.PdfRedactOptions_text_get, _mupdf.PdfRedactOptions_text_set)
  32343. s_num_instances = property(_mupdf.PdfRedactOptions_s_num_instances_get, _mupdf.PdfRedactOptions_s_num_instances_set)
  32344. def to_string(self):
  32345. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  32346. return _mupdf.PdfRedactOptions_to_string(self)
  32347. def __eq__(self, rhs):
  32348. r"""Comparison method."""
  32349. return _mupdf.PdfRedactOptions___eq__(self, rhs)
  32350. def __ne__(self, rhs):
  32351. r"""Comparison method."""
  32352. return _mupdf.PdfRedactOptions___ne__(self, rhs)
  32353. # Register PdfRedactOptions in _mupdf:
  32354. _mupdf.PdfRedactOptions_swigregister(PdfRedactOptions)
  32355. class PdfRevPageMap(object):
  32356. r"""Wrapper class for struct `pdf_rev_page_map`. Not copyable or assignable."""
  32357. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32358. __repr__ = _swig_repr
  32359. def __init__(self, *args):
  32360. r"""
  32361. *Overload 1:*
  32362. Default constructor, sets `m_internal` to null.
  32363. |
  32364. *Overload 2:*
  32365. Constructor using raw copy of pre-existing `::pdf_rev_page_map`.
  32366. """
  32367. _mupdf.PdfRevPageMap_swiginit(self, _mupdf.new_PdfRevPageMap(*args))
  32368. __swig_destroy__ = _mupdf.delete_PdfRevPageMap
  32369. def m_internal_value(self):
  32370. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32371. return _mupdf.PdfRevPageMap_m_internal_value(self)
  32372. def __nonzero__(self):
  32373. return _mupdf.PdfRevPageMap___nonzero__(self)
  32374. __bool__ = __nonzero__
  32375. m_internal = property(_mupdf.PdfRevPageMap_m_internal_get, _mupdf.PdfRevPageMap_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32376. s_num_instances = property(_mupdf.PdfRevPageMap_s_num_instances_get, _mupdf.PdfRevPageMap_s_num_instances_set)
  32377. # Register PdfRevPageMap in _mupdf:
  32378. _mupdf.PdfRevPageMap_swigregister(PdfRevPageMap)
  32379. class PdfSanitizeFilterOptions(object):
  32380. r"""Wrapper class for struct `pdf_sanitize_filter_options`."""
  32381. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32382. __repr__ = _swig_repr
  32383. def __init__(self, *args):
  32384. r"""
  32385. *Overload 1:*
  32386. We use default copy constructor and operator=. Default constructor, sets each member to default value.
  32387. |
  32388. *Overload 2:*
  32389. Constructor using raw copy of pre-existing `::pdf_sanitize_filter_options`.
  32390. |
  32391. *Overload 3:*
  32392. Constructor using raw copy of pre-existing `::pdf_sanitize_filter_options`.
  32393. """
  32394. _mupdf.PdfSanitizeFilterOptions_swiginit(self, _mupdf.new_PdfSanitizeFilterOptions(*args))
  32395. def internal(self, *args):
  32396. r"""
  32397. *Overload 1:*
  32398. Access as underlying struct.
  32399. |
  32400. *Overload 2:*
  32401. Access as underlying struct.
  32402. """
  32403. return _mupdf.PdfSanitizeFilterOptions_internal(self, *args)
  32404. __swig_destroy__ = _mupdf.delete_PdfSanitizeFilterOptions
  32405. opaque = property(_mupdf.PdfSanitizeFilterOptions_opaque_get, _mupdf.PdfSanitizeFilterOptions_opaque_set)
  32406. image_filter = property(_mupdf.PdfSanitizeFilterOptions_image_filter_get, _mupdf.PdfSanitizeFilterOptions_image_filter_set)
  32407. text_filter = property(_mupdf.PdfSanitizeFilterOptions_text_filter_get, _mupdf.PdfSanitizeFilterOptions_text_filter_set)
  32408. after_text_object = property(_mupdf.PdfSanitizeFilterOptions_after_text_object_get, _mupdf.PdfSanitizeFilterOptions_after_text_object_set)
  32409. culler = property(_mupdf.PdfSanitizeFilterOptions_culler_get, _mupdf.PdfSanitizeFilterOptions_culler_set)
  32410. s_num_instances = property(_mupdf.PdfSanitizeFilterOptions_s_num_instances_get, _mupdf.PdfSanitizeFilterOptions_s_num_instances_set)
  32411. def to_string(self):
  32412. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  32413. return _mupdf.PdfSanitizeFilterOptions_to_string(self)
  32414. def __eq__(self, rhs):
  32415. r"""Comparison method."""
  32416. return _mupdf.PdfSanitizeFilterOptions___eq__(self, rhs)
  32417. def __ne__(self, rhs):
  32418. r"""Comparison method."""
  32419. return _mupdf.PdfSanitizeFilterOptions___ne__(self, rhs)
  32420. # Register PdfSanitizeFilterOptions in _mupdf:
  32421. _mupdf.PdfSanitizeFilterOptions_swigregister(PdfSanitizeFilterOptions)
  32422. class PdfSanitizeFilterOptions2(PdfSanitizeFilterOptions):
  32423. r"""Wrapper class for struct pdf_sanitize_filter_options with virtual fns for each fnptr; this is for use as a SWIG Director class."""
  32424. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32425. __repr__ = _swig_repr
  32426. def __init__(self):
  32427. r"""== Constructor."""
  32428. if self.__class__ == PdfSanitizeFilterOptions2:
  32429. _self = None
  32430. else:
  32431. _self = self
  32432. _mupdf.PdfSanitizeFilterOptions2_swiginit(self, _mupdf.new_PdfSanitizeFilterOptions2(_self, ))
  32433. __swig_destroy__ = _mupdf.delete_PdfSanitizeFilterOptions2
  32434. def use_virtual_image_filter(self, use=True):
  32435. r"""
  32436. These methods set the function pointers in *m_internal
  32437. to point to internal callbacks that call our virtual methods.
  32438. """
  32439. return _mupdf.PdfSanitizeFilterOptions2_use_virtual_image_filter(self, use)
  32440. def use_virtual_text_filter(self, use=True):
  32441. return _mupdf.PdfSanitizeFilterOptions2_use_virtual_text_filter(self, use)
  32442. def use_virtual_after_text_object(self, use=True):
  32443. return _mupdf.PdfSanitizeFilterOptions2_use_virtual_after_text_object(self, use)
  32444. def use_virtual_culler(self, use=True):
  32445. return _mupdf.PdfSanitizeFilterOptions2_use_virtual_culler(self, use)
  32446. def image_filter(self, arg_0, arg_2, arg_3, arg_4, arg_5):
  32447. r"""Default virtual method implementations; these all throw an exception."""
  32448. return _mupdf.PdfSanitizeFilterOptions2_image_filter(self, arg_0, arg_2, arg_3, arg_4, arg_5)
  32449. def text_filter(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6):
  32450. return _mupdf.PdfSanitizeFilterOptions2_text_filter(self, arg_0, arg_2, arg_3, arg_4, arg_5, arg_6)
  32451. def after_text_object(self, arg_0, arg_2, arg_3, arg_4):
  32452. return _mupdf.PdfSanitizeFilterOptions2_after_text_object(self, arg_0, arg_2, arg_3, arg_4)
  32453. def culler(self, arg_0, arg_2, arg_3):
  32454. return _mupdf.PdfSanitizeFilterOptions2_culler(self, arg_0, arg_2, arg_3)
  32455. def __disown__(self):
  32456. self.this.disown()
  32457. _mupdf.disown_PdfSanitizeFilterOptions2(self)
  32458. return weakref.proxy(self)
  32459. # Register PdfSanitizeFilterOptions2 in _mupdf:
  32460. _mupdf.PdfSanitizeFilterOptions2_swigregister(PdfSanitizeFilterOptions2)
  32461. class PdfTextObjectState(object):
  32462. r"""Wrapper class for struct `pdf_text_object_state`. Not copyable or assignable."""
  32463. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32464. __repr__ = _swig_repr
  32465. def pdf_tos_get_text(self):
  32466. r"""Class-aware wrapper for `::pdf_tos_get_text()`."""
  32467. return _mupdf.PdfTextObjectState_pdf_tos_get_text(self)
  32468. def pdf_tos_make_trm(self, text, fontdesc, cid, trm, adv):
  32469. r"""
  32470. Class-aware wrapper for `::pdf_tos_make_trm()`.
  32471. This method has out-params. Python/C# wrappers look like:
  32472. `pdf_tos_make_trm(::pdf_text_state *text, ::pdf_font_desc *fontdesc, int cid, ::fz_matrix *trm)` => `(int, float adv)`
  32473. """
  32474. return _mupdf.PdfTextObjectState_pdf_tos_make_trm(self, text, fontdesc, cid, trm, adv)
  32475. def pdf_tos_move_after_char(self):
  32476. r"""Class-aware wrapper for `::pdf_tos_move_after_char()`."""
  32477. return _mupdf.PdfTextObjectState_pdf_tos_move_after_char(self)
  32478. def pdf_tos_newline(self, leading):
  32479. r"""Class-aware wrapper for `::pdf_tos_newline()`."""
  32480. return _mupdf.PdfTextObjectState_pdf_tos_newline(self, leading)
  32481. def pdf_tos_reset(self, render):
  32482. r"""Class-aware wrapper for `::pdf_tos_reset()`."""
  32483. return _mupdf.PdfTextObjectState_pdf_tos_reset(self, render)
  32484. def pdf_tos_set_matrix(self, a, b, c, d, e, f):
  32485. r"""Class-aware wrapper for `::pdf_tos_set_matrix()`."""
  32486. return _mupdf.PdfTextObjectState_pdf_tos_set_matrix(self, a, b, c, d, e, f)
  32487. def pdf_tos_translate(self, tx, ty):
  32488. r"""Class-aware wrapper for `::pdf_tos_translate()`."""
  32489. return _mupdf.PdfTextObjectState_pdf_tos_translate(self, tx, ty)
  32490. def __init__(self, *args):
  32491. r"""
  32492. *Overload 1:*
  32493. Default constructor, sets `m_internal` to null.
  32494. |
  32495. *Overload 2:*
  32496. Constructor using raw copy of pre-existing `::pdf_text_object_state`.
  32497. """
  32498. _mupdf.PdfTextObjectState_swiginit(self, _mupdf.new_PdfTextObjectState(*args))
  32499. __swig_destroy__ = _mupdf.delete_PdfTextObjectState
  32500. def m_internal_value(self):
  32501. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32502. return _mupdf.PdfTextObjectState_m_internal_value(self)
  32503. def __nonzero__(self):
  32504. return _mupdf.PdfTextObjectState___nonzero__(self)
  32505. __bool__ = __nonzero__
  32506. m_internal = property(_mupdf.PdfTextObjectState_m_internal_get, _mupdf.PdfTextObjectState_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32507. s_num_instances = property(_mupdf.PdfTextObjectState_s_num_instances_get, _mupdf.PdfTextObjectState_s_num_instances_set)
  32508. # Register PdfTextObjectState in _mupdf:
  32509. _mupdf.PdfTextObjectState_swigregister(PdfTextObjectState)
  32510. class PdfTextState(object):
  32511. r"""Wrapper class for struct `pdf_text_state`. Not copyable or assignable."""
  32512. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32513. __repr__ = _swig_repr
  32514. def __init__(self, *args):
  32515. r"""
  32516. *Overload 1:*
  32517. Default constructor, sets `m_internal` to null.
  32518. |
  32519. *Overload 2:*
  32520. Constructor using raw copy of pre-existing `::pdf_text_state`.
  32521. """
  32522. _mupdf.PdfTextState_swiginit(self, _mupdf.new_PdfTextState(*args))
  32523. __swig_destroy__ = _mupdf.delete_PdfTextState
  32524. def m_internal_value(self):
  32525. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32526. return _mupdf.PdfTextState_m_internal_value(self)
  32527. def __nonzero__(self):
  32528. return _mupdf.PdfTextState___nonzero__(self)
  32529. __bool__ = __nonzero__
  32530. m_internal = property(_mupdf.PdfTextState_m_internal_get, _mupdf.PdfTextState_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32531. s_num_instances = property(_mupdf.PdfTextState_s_num_instances_get, _mupdf.PdfTextState_s_num_instances_set)
  32532. # Register PdfTextState in _mupdf:
  32533. _mupdf.PdfTextState_swigregister(PdfTextState)
  32534. class PdfUnsavedSig(object):
  32535. r"""Wrapper class for struct `pdf_unsaved_sig`. Not copyable or assignable."""
  32536. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32537. __repr__ = _swig_repr
  32538. def __init__(self, *args):
  32539. r"""
  32540. *Overload 1:*
  32541. Default constructor, sets `m_internal` to null.
  32542. |
  32543. *Overload 2:*
  32544. Constructor using raw copy of pre-existing `::pdf_unsaved_sig`.
  32545. """
  32546. _mupdf.PdfUnsavedSig_swiginit(self, _mupdf.new_PdfUnsavedSig(*args))
  32547. __swig_destroy__ = _mupdf.delete_PdfUnsavedSig
  32548. def m_internal_value(self):
  32549. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32550. return _mupdf.PdfUnsavedSig_m_internal_value(self)
  32551. def __nonzero__(self):
  32552. return _mupdf.PdfUnsavedSig___nonzero__(self)
  32553. __bool__ = __nonzero__
  32554. m_internal = property(_mupdf.PdfUnsavedSig_m_internal_get, _mupdf.PdfUnsavedSig_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32555. s_num_instances = property(_mupdf.PdfUnsavedSig_s_num_instances_get, _mupdf.PdfUnsavedSig_s_num_instances_set)
  32556. # Register PdfUnsavedSig in _mupdf:
  32557. _mupdf.PdfUnsavedSig_swigregister(PdfUnsavedSig)
  32558. class PdfVmtx(object):
  32559. r"""Wrapper class for struct `pdf_vmtx`. Not copyable or assignable."""
  32560. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32561. __repr__ = _swig_repr
  32562. def __init__(self, *args):
  32563. r"""
  32564. *Overload 1:*
  32565. Default constructor, sets `m_internal` to null.
  32566. |
  32567. *Overload 2:*
  32568. Constructor using raw copy of pre-existing `::pdf_vmtx`.
  32569. """
  32570. _mupdf.PdfVmtx_swiginit(self, _mupdf.new_PdfVmtx(*args))
  32571. __swig_destroy__ = _mupdf.delete_PdfVmtx
  32572. def m_internal_value(self):
  32573. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32574. return _mupdf.PdfVmtx_m_internal_value(self)
  32575. def __nonzero__(self):
  32576. return _mupdf.PdfVmtx___nonzero__(self)
  32577. __bool__ = __nonzero__
  32578. m_internal = property(_mupdf.PdfVmtx_m_internal_get, _mupdf.PdfVmtx_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32579. s_num_instances = property(_mupdf.PdfVmtx_s_num_instances_get, _mupdf.PdfVmtx_s_num_instances_set)
  32580. # Register PdfVmtx in _mupdf:
  32581. _mupdf.PdfVmtx_swigregister(PdfVmtx)
  32582. class PdfWriteOptions(object):
  32583. r"""Wrapper class for struct `pdf_write_options`."""
  32584. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32585. __repr__ = _swig_repr
  32586. def pdf_parse_write_options(self, args):
  32587. r"""We use default copy constructor and operator=. Class-aware wrapper for `::pdf_parse_write_options()`."""
  32588. return _mupdf.PdfWriteOptions_pdf_parse_write_options(self, args)
  32589. def opwd_utf8_set_value(self, text):
  32590. r"""Copies <text> into opwd_utf8[]."""
  32591. return _mupdf.PdfWriteOptions_opwd_utf8_set_value(self, text)
  32592. def upwd_utf8_set_value(self, text):
  32593. r"""Copies <text> into upwd_utf8[]."""
  32594. return _mupdf.PdfWriteOptions_upwd_utf8_set_value(self, text)
  32595. def __init__(self, *args):
  32596. r"""
  32597. *Overload 1:*
  32598. Default constructor, makes copy of pdf_default_write_options.
  32599. |
  32600. *Overload 2:*
  32601. Copy constructor using raw memcopy().
  32602. |
  32603. *Overload 3:*
  32604. Constructor using raw copy of pre-existing `::pdf_write_options`.
  32605. |
  32606. *Overload 4:*
  32607. Constructor using raw copy of pre-existing `::pdf_write_options`.
  32608. """
  32609. _mupdf.PdfWriteOptions_swiginit(self, _mupdf.new_PdfWriteOptions(*args))
  32610. def internal(self, *args):
  32611. r"""
  32612. *Overload 1:*
  32613. Access as underlying struct.
  32614. |
  32615. *Overload 2:*
  32616. Access as underlying struct.
  32617. """
  32618. return _mupdf.PdfWriteOptions_internal(self, *args)
  32619. __swig_destroy__ = _mupdf.delete_PdfWriteOptions
  32620. do_incremental = property(_mupdf.PdfWriteOptions_do_incremental_get, _mupdf.PdfWriteOptions_do_incremental_set)
  32621. do_pretty = property(_mupdf.PdfWriteOptions_do_pretty_get, _mupdf.PdfWriteOptions_do_pretty_set)
  32622. do_ascii = property(_mupdf.PdfWriteOptions_do_ascii_get, _mupdf.PdfWriteOptions_do_ascii_set)
  32623. do_compress = property(_mupdf.PdfWriteOptions_do_compress_get, _mupdf.PdfWriteOptions_do_compress_set)
  32624. do_compress_images = property(_mupdf.PdfWriteOptions_do_compress_images_get, _mupdf.PdfWriteOptions_do_compress_images_set)
  32625. do_compress_fonts = property(_mupdf.PdfWriteOptions_do_compress_fonts_get, _mupdf.PdfWriteOptions_do_compress_fonts_set)
  32626. do_decompress = property(_mupdf.PdfWriteOptions_do_decompress_get, _mupdf.PdfWriteOptions_do_decompress_set)
  32627. do_garbage = property(_mupdf.PdfWriteOptions_do_garbage_get, _mupdf.PdfWriteOptions_do_garbage_set)
  32628. do_linear = property(_mupdf.PdfWriteOptions_do_linear_get, _mupdf.PdfWriteOptions_do_linear_set)
  32629. do_clean = property(_mupdf.PdfWriteOptions_do_clean_get, _mupdf.PdfWriteOptions_do_clean_set)
  32630. do_sanitize = property(_mupdf.PdfWriteOptions_do_sanitize_get, _mupdf.PdfWriteOptions_do_sanitize_set)
  32631. do_appearance = property(_mupdf.PdfWriteOptions_do_appearance_get, _mupdf.PdfWriteOptions_do_appearance_set)
  32632. do_encrypt = property(_mupdf.PdfWriteOptions_do_encrypt_get, _mupdf.PdfWriteOptions_do_encrypt_set)
  32633. dont_regenerate_id = property(_mupdf.PdfWriteOptions_dont_regenerate_id_get, _mupdf.PdfWriteOptions_dont_regenerate_id_set)
  32634. permissions = property(_mupdf.PdfWriteOptions_permissions_get, _mupdf.PdfWriteOptions_permissions_set)
  32635. opwd_utf8 = property(_mupdf.PdfWriteOptions_opwd_utf8_get, _mupdf.PdfWriteOptions_opwd_utf8_set)
  32636. upwd_utf8 = property(_mupdf.PdfWriteOptions_upwd_utf8_get, _mupdf.PdfWriteOptions_upwd_utf8_set)
  32637. do_snapshot = property(_mupdf.PdfWriteOptions_do_snapshot_get, _mupdf.PdfWriteOptions_do_snapshot_set)
  32638. do_preserve_metadata = property(_mupdf.PdfWriteOptions_do_preserve_metadata_get, _mupdf.PdfWriteOptions_do_preserve_metadata_set)
  32639. do_use_objstms = property(_mupdf.PdfWriteOptions_do_use_objstms_get, _mupdf.PdfWriteOptions_do_use_objstms_set)
  32640. compression_effort = property(_mupdf.PdfWriteOptions_compression_effort_get, _mupdf.PdfWriteOptions_compression_effort_set)
  32641. do_labels = property(_mupdf.PdfWriteOptions_do_labels_get, _mupdf.PdfWriteOptions_do_labels_set)
  32642. s_num_instances = property(_mupdf.PdfWriteOptions_s_num_instances_get, _mupdf.PdfWriteOptions_s_num_instances_set)
  32643. def to_string(self):
  32644. r"""Returns string containing our members, labelled and inside (...), using operator<<."""
  32645. return _mupdf.PdfWriteOptions_to_string(self)
  32646. def __eq__(self, rhs):
  32647. r"""Comparison method."""
  32648. return _mupdf.PdfWriteOptions___eq__(self, rhs)
  32649. def __ne__(self, rhs):
  32650. r"""Comparison method."""
  32651. return _mupdf.PdfWriteOptions___ne__(self, rhs)
  32652. # Register PdfWriteOptions in _mupdf:
  32653. _mupdf.PdfWriteOptions_swigregister(PdfWriteOptions)
  32654. class PdfXrange(object):
  32655. r"""Wrapper class for struct `pdf_xrange`. Not copyable or assignable."""
  32656. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32657. __repr__ = _swig_repr
  32658. def __init__(self, *args):
  32659. r"""
  32660. *Overload 1:*
  32661. Default constructor, sets `m_internal` to null.
  32662. |
  32663. *Overload 2:*
  32664. Constructor using raw copy of pre-existing `::pdf_xrange`.
  32665. """
  32666. _mupdf.PdfXrange_swiginit(self, _mupdf.new_PdfXrange(*args))
  32667. __swig_destroy__ = _mupdf.delete_PdfXrange
  32668. def m_internal_value(self):
  32669. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32670. return _mupdf.PdfXrange_m_internal_value(self)
  32671. def __nonzero__(self):
  32672. return _mupdf.PdfXrange___nonzero__(self)
  32673. __bool__ = __nonzero__
  32674. m_internal = property(_mupdf.PdfXrange_m_internal_get, _mupdf.PdfXrange_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32675. s_num_instances = property(_mupdf.PdfXrange_s_num_instances_get, _mupdf.PdfXrange_s_num_instances_set)
  32676. # Register PdfXrange in _mupdf:
  32677. _mupdf.PdfXrange_swigregister(PdfXrange)
  32678. class PdfXref(object):
  32679. r"""Wrapper class for struct `pdf_xref`. Not copyable or assignable."""
  32680. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32681. __repr__ = _swig_repr
  32682. def __init__(self, *args):
  32683. r"""
  32684. *Overload 1:*
  32685. == Constructors. Constructor using `pdf_new_local_xref()`.
  32686. |
  32687. *Overload 2:*
  32688. Default constructor, sets `m_internal` to null.
  32689. |
  32690. *Overload 3:*
  32691. Constructor using raw copy of pre-existing `::pdf_xref`.
  32692. """
  32693. _mupdf.PdfXref_swiginit(self, _mupdf.new_PdfXref(*args))
  32694. __swig_destroy__ = _mupdf.delete_PdfXref
  32695. def m_internal_value(self):
  32696. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32697. return _mupdf.PdfXref_m_internal_value(self)
  32698. def __nonzero__(self):
  32699. return _mupdf.PdfXref___nonzero__(self)
  32700. __bool__ = __nonzero__
  32701. m_internal = property(_mupdf.PdfXref_m_internal_get, _mupdf.PdfXref_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32702. s_num_instances = property(_mupdf.PdfXref_s_num_instances_get, _mupdf.PdfXref_s_num_instances_set)
  32703. # Register PdfXref in _mupdf:
  32704. _mupdf.PdfXref_swigregister(PdfXref)
  32705. class PdfXrefEntry(object):
  32706. r"""Wrapper class for struct `pdf_xref_entry`. Not copyable or assignable."""
  32707. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32708. __repr__ = _swig_repr
  32709. def __init__(self, *args):
  32710. r"""
  32711. *Overload 1:*
  32712. Default constructor, sets `m_internal` to null.
  32713. |
  32714. *Overload 2:*
  32715. Constructor using raw copy of pre-existing `::pdf_xref_entry`.
  32716. """
  32717. _mupdf.PdfXrefEntry_swiginit(self, _mupdf.new_PdfXrefEntry(*args))
  32718. __swig_destroy__ = _mupdf.delete_PdfXrefEntry
  32719. def m_internal_value(self):
  32720. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32721. return _mupdf.PdfXrefEntry_m_internal_value(self)
  32722. def __nonzero__(self):
  32723. return _mupdf.PdfXrefEntry___nonzero__(self)
  32724. __bool__ = __nonzero__
  32725. m_internal = property(_mupdf.PdfXrefEntry_m_internal_get, _mupdf.PdfXrefEntry_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32726. s_num_instances = property(_mupdf.PdfXrefEntry_s_num_instances_get, _mupdf.PdfXrefEntry_s_num_instances_set)
  32727. # Register PdfXrefEntry in _mupdf:
  32728. _mupdf.PdfXrefEntry_swigregister(PdfXrefEntry)
  32729. class PdfXrefSubsec(object):
  32730. r"""Wrapper class for struct `pdf_xref_subsec`. Not copyable or assignable."""
  32731. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32732. __repr__ = _swig_repr
  32733. def __init__(self, *args):
  32734. r"""
  32735. *Overload 1:*
  32736. Default constructor, sets `m_internal` to null.
  32737. |
  32738. *Overload 2:*
  32739. Constructor using raw copy of pre-existing `::pdf_xref_subsec`.
  32740. """
  32741. _mupdf.PdfXrefSubsec_swiginit(self, _mupdf.new_PdfXrefSubsec(*args))
  32742. __swig_destroy__ = _mupdf.delete_PdfXrefSubsec
  32743. def m_internal_value(self):
  32744. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32745. return _mupdf.PdfXrefSubsec_m_internal_value(self)
  32746. def __nonzero__(self):
  32747. return _mupdf.PdfXrefSubsec___nonzero__(self)
  32748. __bool__ = __nonzero__
  32749. m_internal = property(_mupdf.PdfXrefSubsec_m_internal_get, _mupdf.PdfXrefSubsec_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32750. s_num_instances = property(_mupdf.PdfXrefSubsec_s_num_instances_get, _mupdf.PdfXrefSubsec_s_num_instances_set)
  32751. # Register PdfXrefSubsec in _mupdf:
  32752. _mupdf.PdfXrefSubsec_swigregister(PdfXrefSubsec)
  32753. def num_instances():
  32754. r"""Returns map from class name (for example FzDocument) to s_num_instances."""
  32755. return _mupdf.num_instances()
  32756. class FzLinkIterator(object):
  32757. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32758. __repr__ = _swig_repr
  32759. def __init__(self, item):
  32760. _mupdf.FzLinkIterator_swiginit(self, _mupdf.new_FzLinkIterator(item))
  32761. def __increment__(self):
  32762. return _mupdf.FzLinkIterator___increment__(self)
  32763. def __eq__(self, rhs):
  32764. return _mupdf.FzLinkIterator___eq__(self, rhs)
  32765. def __ne__(self, rhs):
  32766. return _mupdf.FzLinkIterator___ne__(self, rhs)
  32767. def __ref__(self):
  32768. return _mupdf.FzLinkIterator___ref__(self)
  32769. def __deref__(self):
  32770. return _mupdf.FzLinkIterator___deref__(self)
  32771. __swig_destroy__ = _mupdf.delete_FzLinkIterator
  32772. def fz_set_link_rect(self, rect):
  32773. r"""Class-aware wrapper for `::fz_set_link_rect()`."""
  32774. return _mupdf.FzLinkIterator_fz_set_link_rect(self, rect)
  32775. def fz_set_link_uri(self, uri):
  32776. r"""Class-aware wrapper for `::fz_set_link_uri()`."""
  32777. return _mupdf.FzLinkIterator_fz_set_link_uri(self, uri)
  32778. def begin(self):
  32779. r"""Used for iteration over linked list of FzLink items starting at fz_link::."""
  32780. return _mupdf.FzLinkIterator_begin(self)
  32781. def end(self):
  32782. r"""Used for iteration over linked list of FzLink items starting at fz_link::."""
  32783. return _mupdf.FzLinkIterator_end(self)
  32784. def refs(self):
  32785. return _mupdf.FzLinkIterator_refs(self)
  32786. def next(self):
  32787. return _mupdf.FzLinkIterator_next(self)
  32788. def rect(self):
  32789. return _mupdf.FzLinkIterator_rect(self)
  32790. def uri(self):
  32791. return _mupdf.FzLinkIterator_uri(self)
  32792. def m_internal_value(self):
  32793. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32794. return _mupdf.FzLinkIterator_m_internal_value(self)
  32795. def __nonzero__(self):
  32796. return _mupdf.FzLinkIterator___nonzero__(self)
  32797. __bool__ = __nonzero__
  32798. m_internal = property(_mupdf.FzLinkIterator_m_internal_get, _mupdf.FzLinkIterator_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32799. s_num_instances = property(_mupdf.FzLinkIterator_s_num_instances_get, _mupdf.FzLinkIterator_s_num_instances_set)
  32800. # Register FzLinkIterator in _mupdf:
  32801. _mupdf.FzLinkIterator_swigregister(FzLinkIterator)
  32802. class FzStextBlockIterator(object):
  32803. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32804. __repr__ = _swig_repr
  32805. def __init__(self, item):
  32806. _mupdf.FzStextBlockIterator_swiginit(self, _mupdf.new_FzStextBlockIterator(item))
  32807. def __increment__(self):
  32808. return _mupdf.FzStextBlockIterator___increment__(self)
  32809. def __eq__(self, rhs):
  32810. return _mupdf.FzStextBlockIterator___eq__(self, rhs)
  32811. def __ne__(self, rhs):
  32812. return _mupdf.FzStextBlockIterator___ne__(self, rhs)
  32813. def __ref__(self):
  32814. return _mupdf.FzStextBlockIterator___ref__(self)
  32815. def __deref__(self):
  32816. return _mupdf.FzStextBlockIterator___deref__(self)
  32817. __swig_destroy__ = _mupdf.delete_FzStextBlockIterator
  32818. def begin(self):
  32819. r"""Used for iteration over linked list of FzStextChar items starting at fz_stext_char::first_char."""
  32820. return _mupdf.FzStextBlockIterator_begin(self)
  32821. def end(self):
  32822. r"""Used for iteration over linked list of FzStextChar items starting at fz_stext_char::first_char."""
  32823. return _mupdf.FzStextBlockIterator_end(self)
  32824. def m_internal_value(self):
  32825. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32826. return _mupdf.FzStextBlockIterator_m_internal_value(self)
  32827. def __nonzero__(self):
  32828. return _mupdf.FzStextBlockIterator___nonzero__(self)
  32829. __bool__ = __nonzero__
  32830. m_internal = property(_mupdf.FzStextBlockIterator_m_internal_get, _mupdf.FzStextBlockIterator_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32831. s_num_instances = property(_mupdf.FzStextBlockIterator_s_num_instances_get, _mupdf.FzStextBlockIterator_s_num_instances_set)
  32832. # Register FzStextBlockIterator in _mupdf:
  32833. _mupdf.FzStextBlockIterator_swigregister(FzStextBlockIterator)
  32834. class FzStextLineIterator(object):
  32835. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32836. __repr__ = _swig_repr
  32837. def __init__(self, item):
  32838. _mupdf.FzStextLineIterator_swiginit(self, _mupdf.new_FzStextLineIterator(item))
  32839. def __increment__(self):
  32840. return _mupdf.FzStextLineIterator___increment__(self)
  32841. def __eq__(self, rhs):
  32842. return _mupdf.FzStextLineIterator___eq__(self, rhs)
  32843. def __ne__(self, rhs):
  32844. return _mupdf.FzStextLineIterator___ne__(self, rhs)
  32845. def __ref__(self):
  32846. return _mupdf.FzStextLineIterator___ref__(self)
  32847. def __deref__(self):
  32848. return _mupdf.FzStextLineIterator___deref__(self)
  32849. __swig_destroy__ = _mupdf.delete_FzStextLineIterator
  32850. def m_internal_value(self):
  32851. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32852. return _mupdf.FzStextLineIterator_m_internal_value(self)
  32853. def __nonzero__(self):
  32854. return _mupdf.FzStextLineIterator___nonzero__(self)
  32855. __bool__ = __nonzero__
  32856. m_internal = property(_mupdf.FzStextLineIterator_m_internal_get, _mupdf.FzStextLineIterator_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32857. s_num_instances = property(_mupdf.FzStextLineIterator_s_num_instances_get, _mupdf.FzStextLineIterator_s_num_instances_set)
  32858. # Register FzStextLineIterator in _mupdf:
  32859. _mupdf.FzStextLineIterator_swigregister(FzStextLineIterator)
  32860. class FzStextPageIterator(object):
  32861. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  32862. __repr__ = _swig_repr
  32863. def __init__(self, item):
  32864. _mupdf.FzStextPageIterator_swiginit(self, _mupdf.new_FzStextPageIterator(item))
  32865. def __increment__(self):
  32866. return _mupdf.FzStextPageIterator___increment__(self)
  32867. def __eq__(self, rhs):
  32868. return _mupdf.FzStextPageIterator___eq__(self, rhs)
  32869. def __ne__(self, rhs):
  32870. return _mupdf.FzStextPageIterator___ne__(self, rhs)
  32871. def __ref__(self):
  32872. return _mupdf.FzStextPageIterator___ref__(self)
  32873. def __deref__(self):
  32874. return _mupdf.FzStextPageIterator___deref__(self)
  32875. __swig_destroy__ = _mupdf.delete_FzStextPageIterator
  32876. def i_transform(self):
  32877. r"""Returns m_internal.u.i.transform if m_internal->type is FZ_STEXT_BLOCK_IMAGE, else throws."""
  32878. return _mupdf.FzStextPageIterator_i_transform(self)
  32879. def i_image(self):
  32880. r"""Returns m_internal.u.i.image if m_internal->type is FZ_STEXT_BLOCK_IMAGE, else throws."""
  32881. return _mupdf.FzStextPageIterator_i_image(self)
  32882. def begin(self):
  32883. r"""Used for iteration over linked list of FzStextLine items starting at fz_stext_line::u.t.first_line."""
  32884. return _mupdf.FzStextPageIterator_begin(self)
  32885. def end(self):
  32886. r"""Used for iteration over linked list of FzStextLine items starting at fz_stext_line::u.t.first_line."""
  32887. return _mupdf.FzStextPageIterator_end(self)
  32888. def m_internal_value(self):
  32889. r"""Return numerical value of .m_internal; helps with Python debugging."""
  32890. return _mupdf.FzStextPageIterator_m_internal_value(self)
  32891. def __nonzero__(self):
  32892. return _mupdf.FzStextPageIterator___nonzero__(self)
  32893. __bool__ = __nonzero__
  32894. m_internal = property(_mupdf.FzStextPageIterator_m_internal_get, _mupdf.FzStextPageIterator_m_internal_set, doc=r"""Pointer to wrapped data.""")
  32895. s_num_instances = property(_mupdf.FzStextPageIterator_s_num_instances_get, _mupdf.FzStextPageIterator_s_num_instances_set)
  32896. # Register FzStextPageIterator in _mupdf:
  32897. _mupdf.FzStextPageIterator_swigregister(FzStextPageIterator)
  32898. def fz_aa_level():
  32899. r"""
  32900. Class-aware wrapper for `::fz_aa_level()`.
  32901. Get the number of bits of antialiasing we are
  32902. using (for graphics). Between 0 and 8.
  32903. """
  32904. return _mupdf.fz_aa_level()
  32905. def fz_abs(f):
  32906. r"""
  32907. Class-aware wrapper for `::fz_abs()`.
  32908. Some standard math functions, done as static inlines for speed.
  32909. People with compilers that do not adequately implement inline
  32910. may like to reimplement these using macros.
  32911. """
  32912. return _mupdf.fz_abs(f)
  32913. def fz_absi(i):
  32914. r"""Class-aware wrapper for `::fz_absi()`."""
  32915. return _mupdf.fz_absi(i)
  32916. def fz_add_layout_char(block, x, w, p):
  32917. r"""
  32918. Class-aware wrapper for `::fz_add_layout_char()`.
  32919. Add a new char to the line at the end of the layout block.
  32920. """
  32921. return _mupdf.fz_add_layout_char(block, x, w, p)
  32922. def fz_add_layout_line(block, x, y, h, p):
  32923. r"""
  32924. Class-aware wrapper for `::fz_add_layout_line()`.
  32925. Add a new line to the end of the layout block.
  32926. """
  32927. return _mupdf.fz_add_layout_line(block, x, y, h, p)
  32928. def fz_add_separation(sep, name, cs, cs_channel):
  32929. r"""
  32930. Class-aware wrapper for `::fz_add_separation()`.
  32931. Add a separation (null terminated name, colorspace)
  32932. """
  32933. return _mupdf.fz_add_separation(sep, name, cs, cs_channel)
  32934. def fz_add_separation_equivalents(sep, rgba, cmyk, name):
  32935. r"""
  32936. Class-aware wrapper for `::fz_add_separation_equivalents()`.
  32937. Add a separation with equivalents (null terminated name,
  32938. colorspace)
  32939. (old, deprecated)
  32940. """
  32941. return _mupdf.fz_add_separation_equivalents(sep, rgba, cmyk, name)
  32942. def fz_adjust_rect_for_stroke(rect, stroke, ctm):
  32943. r"""
  32944. Class-aware wrapper for `::fz_adjust_rect_for_stroke()`.
  32945. Given a rectangle (assumed to be the bounding box for a path),
  32946. expand it to allow for the expansion of the bbox that would be
  32947. seen by stroking the path with the given stroke state and
  32948. transform.
  32949. """
  32950. return _mupdf.fz_adjust_rect_for_stroke(rect, stroke, ctm)
  32951. def fz_advance_glyph(font, glyph, wmode):
  32952. r"""
  32953. Class-aware wrapper for `::fz_advance_glyph()`.
  32954. Return the advance for a given glyph.
  32955. font: The font to look for the glyph in.
  32956. glyph: The glyph to find the advance for.
  32957. wmode: 1 for vertical mode, 0 for horizontal.
  32958. Returns the advance for the glyph.
  32959. """
  32960. return _mupdf.fz_advance_glyph(font, glyph, wmode)
  32961. def fz_aes_crypt_cbc(ctx, mode, length, iv, input, output):
  32962. r"""
  32963. Class-aware wrapper for `::fz_aes_crypt_cbc()`.
  32964. AES block processing. Encrypts or Decrypts (according to mode,
  32965. which must match what was initially set up) length bytes (which
  32966. must be a multiple of 16), using (and modifying) the insertion
  32967. vector iv, reading from input, and writing to output.
  32968. Never throws an exception.
  32969. """
  32970. return _mupdf.fz_aes_crypt_cbc(ctx, mode, length, iv, input, output)
  32971. def fz_aes_setkey_dec(ctx, key, keysize):
  32972. r"""
  32973. Class-aware wrapper for `::fz_aes_setkey_dec()`.
  32974. AES decryption initialization. Fills in the supplied context
  32975. and prepares for decryption using the given key.
  32976. Returns non-zero for error (key size other than 128/192/256).
  32977. Never throws an exception.
  32978. """
  32979. return _mupdf.fz_aes_setkey_dec(ctx, key, keysize)
  32980. def fz_aes_setkey_enc(ctx, key, keysize):
  32981. r"""
  32982. Class-aware wrapper for `::fz_aes_setkey_enc()`.
  32983. AES encryption initialization. Fills in the supplied context
  32984. and prepares for encryption using the given key.
  32985. Returns non-zero for error (key size other than 128/192/256).
  32986. Never throws an exception.
  32987. """
  32988. return _mupdf.fz_aes_setkey_enc(ctx, key, keysize)
  32989. def fz_alpha_from_gray(gray):
  32990. r"""Class-aware wrapper for `::fz_alpha_from_gray()`."""
  32991. return _mupdf.fz_alpha_from_gray(gray)
  32992. def fz_append_base64(out, data, size, newline):
  32993. r"""
  32994. Class-aware wrapper for `::fz_append_base64()`.
  32995. Write a base64 encoded data block, optionally with periodic newlines.
  32996. """
  32997. return _mupdf.fz_append_base64(out, data, size, newline)
  32998. def fz_append_base64_buffer(out, data, newline):
  32999. r"""
  33000. Class-aware wrapper for `::fz_append_base64_buffer()`.
  33001. Append a base64 encoded fz_buffer, optionally with periodic newlines.
  33002. """
  33003. return _mupdf.fz_append_base64_buffer(out, data, newline)
  33004. def fz_append_bits(buf, value, count):
  33005. r"""Class-aware wrapper for `::fz_append_bits()`."""
  33006. return _mupdf.fz_append_bits(buf, value, count)
  33007. def fz_append_bits_pad(buf):
  33008. r"""Class-aware wrapper for `::fz_append_bits_pad()`."""
  33009. return _mupdf.fz_append_bits_pad(buf)
  33010. def fz_append_buffer(destination, source):
  33011. r"""
  33012. Class-aware wrapper for `::fz_append_buffer()`.
  33013. Append the contents of the source buffer onto the end of the
  33014. destination buffer, extending automatically as required.
  33015. Ownership of buffers does not change.
  33016. """
  33017. return _mupdf.fz_append_buffer(destination, source)
  33018. def fz_append_byte(buf, c):
  33019. r"""Class-aware wrapper for `::fz_append_byte()`."""
  33020. return _mupdf.fz_append_byte(buf, c)
  33021. def fz_append_data(buf, data, len):
  33022. r"""
  33023. Class-aware wrapper for `::fz_append_data()`.
  33024. fz_append_*: Append data to a buffer.
  33025. The buffer will automatically grow as required.
  33026. """
  33027. return _mupdf.fz_append_data(buf, data, len)
  33028. def fz_append_image_as_data_uri(out, image):
  33029. r"""Class-aware wrapper for `::fz_append_image_as_data_uri()`."""
  33030. return _mupdf.fz_append_image_as_data_uri(out, image)
  33031. def fz_append_int16_be(buf, x):
  33032. r"""Class-aware wrapper for `::fz_append_int16_be()`."""
  33033. return _mupdf.fz_append_int16_be(buf, x)
  33034. def fz_append_int16_le(buf, x):
  33035. r"""Class-aware wrapper for `::fz_append_int16_le()`."""
  33036. return _mupdf.fz_append_int16_le(buf, x)
  33037. def fz_append_int32_be(buf, x):
  33038. r"""Class-aware wrapper for `::fz_append_int32_be()`."""
  33039. return _mupdf.fz_append_int32_be(buf, x)
  33040. def fz_append_int32_le(buf, x):
  33041. r"""Class-aware wrapper for `::fz_append_int32_le()`."""
  33042. return _mupdf.fz_append_int32_le(buf, x)
  33043. def fz_append_json(buf, value):
  33044. r"""Class-aware wrapper for `::fz_append_json()`."""
  33045. return _mupdf.fz_append_json(buf, value)
  33046. def fz_append_pdf_string(buffer, text):
  33047. r"""
  33048. Class-aware wrapper for `::fz_append_pdf_string()`.
  33049. fz_append_pdf_string: Append a string with PDF syntax quotes and
  33050. escapes.
  33051. The buffer will automatically grow as required.
  33052. """
  33053. return _mupdf.fz_append_pdf_string(buffer, text)
  33054. def fz_append_pixmap_as_data_uri(out, pixmap):
  33055. r"""Class-aware wrapper for `::fz_append_pixmap_as_data_uri()`."""
  33056. return _mupdf.fz_append_pixmap_as_data_uri(out, pixmap)
  33057. def fz_append_rune(buf, c):
  33058. r"""Class-aware wrapper for `::fz_append_rune()`."""
  33059. return _mupdf.fz_append_rune(buf, c)
  33060. def fz_append_string(buf, data):
  33061. r"""Class-aware wrapper for `::fz_append_string()`."""
  33062. return _mupdf.fz_append_string(buf, data)
  33063. def fz_arc4_encrypt(state, dest, src, len):
  33064. r"""
  33065. Class-aware wrapper for `::fz_arc4_encrypt()`.
  33066. RC4 block encrypt operation; encrypt src into dst (both of
  33067. length len) updating the RC4 state as we go.
  33068. Never throws an exception.
  33069. """
  33070. return _mupdf.fz_arc4_encrypt(state, dest, src, len)
  33071. def fz_arc4_final(state):
  33072. r"""
  33073. Class-aware wrapper for `::fz_arc4_final()`.
  33074. RC4 finalization. Zero the context.
  33075. Never throws an exception.
  33076. """
  33077. return _mupdf.fz_arc4_final(state)
  33078. def fz_arc4_init(state, key, len):
  33079. r"""
  33080. Class-aware wrapper for `::fz_arc4_init()`.
  33081. RC4 initialization. Begins an RC4 operation, writing a new
  33082. context.
  33083. Never throws an exception.
  33084. """
  33085. return _mupdf.fz_arc4_init(state, key, len)
  33086. def fz_archive_format(arch):
  33087. r"""
  33088. Class-aware wrapper for `::fz_archive_format()`.
  33089. Return a pointer to a string describing the format of the
  33090. archive.
  33091. The lifetime of the string is unspecified (in current
  33092. implementations the string will persist until the archive
  33093. is closed, but this is not guaranteed).
  33094. """
  33095. return _mupdf.fz_archive_format(arch)
  33096. def fz_atof(s):
  33097. r"""
  33098. Class-aware wrapper for `::fz_atof()`.
  33099. Range checking atof
  33100. """
  33101. return _mupdf.fz_atof(s)
  33102. def fz_atoi(s):
  33103. r"""
  33104. Class-aware wrapper for `::fz_atoi()`.
  33105. atoi that copes with NULL
  33106. """
  33107. return _mupdf.fz_atoi(s)
  33108. def fz_atoi64(s):
  33109. r"""
  33110. Class-aware wrapper for `::fz_atoi64()`.
  33111. 64bit atoi that copes with NULL
  33112. """
  33113. return _mupdf.fz_atoi64(s)
  33114. def fz_atoz(s):
  33115. r"""
  33116. Class-aware wrapper for `::fz_atoz()`.
  33117. size_t atoi that copes with NULL.
  33118. NOTE: limited to 63bits. Negative numbers
  33119. are returned as 0.
  33120. """
  33121. return _mupdf.fz_atoz(s)
  33122. def fz_authenticate_password(doc, password):
  33123. r"""
  33124. Class-aware wrapper for `::fz_authenticate_password()`.
  33125. Test if the given password can decrypt the document.
  33126. password: The password string to be checked. Some document
  33127. specifications do not specify any particular text encoding, so
  33128. neither do we.
  33129. Returns 0 for failure to authenticate, non-zero for success.
  33130. For PDF documents, further information can be given by examining
  33131. the bits in the return code.
  33132. Bit 0 => No password required
  33133. Bit 1 => User password authenticated
  33134. Bit 2 => Owner password authenticated
  33135. """
  33136. return _mupdf.fz_authenticate_password(doc, password)
  33137. def fz_autowarp_pixmap(src, points):
  33138. r"""Class-aware wrapper for `::fz_autowarp_pixmap()`."""
  33139. return _mupdf.fz_autowarp_pixmap(src, points)
  33140. def fz_available(stm, max):
  33141. r"""
  33142. Class-aware wrapper for `::fz_available()`.
  33143. Ask how many bytes are available immediately from
  33144. a given stream.
  33145. stm: The stream to read from.
  33146. max: A hint for the underlying stream; the maximum number of
  33147. bytes that we are sure we will want to read. If you do not know
  33148. this number, give 1.
  33149. Returns the number of bytes immediately available between the
  33150. read and write pointers. This number is guaranteed only to be 0
  33151. if we have hit EOF. The number of bytes returned here need have
  33152. no relation to max (could be larger, could be smaller).
  33153. """
  33154. return _mupdf.fz_available(stm, max)
  33155. def fz_barcode_type_from_string(str):
  33156. r"""
  33157. Class-aware wrapper for `::fz_barcode_type_from_string()`.
  33158. Helper function to search the above list (case insensitively)
  33159. for an exact match. Returns FZ_BARCODE_NONE if no match found.
  33160. """
  33161. return _mupdf.fz_barcode_type_from_string(str)
  33162. def fz_base_colorspace(cs):
  33163. r"""
  33164. Class-aware wrapper for `::fz_base_colorspace()`.
  33165. Get the 'base' colorspace for a colorspace.
  33166. For indexed colorspaces, this is the colorspace the index
  33167. decodes into. For all other colorspaces, it is the colorspace
  33168. itself.
  33169. The returned colorspace is 'borrowed' (i.e. no additional
  33170. references are taken or dropped).
  33171. """
  33172. return _mupdf.fz_base_colorspace(cs)
  33173. def fz_basename(path):
  33174. r"""
  33175. Class-aware wrapper for `::fz_basename()`.
  33176. Find the filename component in a path.
  33177. """
  33178. return _mupdf.fz_basename(path)
  33179. def fz_begin_group(dev, area, cs, isolated, knockout, blendmode, alpha):
  33180. r"""Class-aware wrapper for `::fz_begin_group()`."""
  33181. return _mupdf.fz_begin_group(dev, area, cs, isolated, knockout, blendmode, alpha)
  33182. def fz_begin_layer(dev, layer_name):
  33183. r"""Class-aware wrapper for `::fz_begin_layer()`."""
  33184. return _mupdf.fz_begin_layer(dev, layer_name)
  33185. def fz_begin_mask(dev, area, luminosity, colorspace, bc, color_params):
  33186. r"""Class-aware wrapper for `::fz_begin_mask()`."""
  33187. return _mupdf.fz_begin_mask(dev, area, luminosity, colorspace, bc, color_params)
  33188. def fz_begin_metatext(dev, meta, text):
  33189. r"""Class-aware wrapper for `::fz_begin_metatext()`."""
  33190. return _mupdf.fz_begin_metatext(dev, meta, text)
  33191. def fz_begin_page(wri, mediabox):
  33192. r"""
  33193. Class-aware wrapper for `::fz_begin_page()`.
  33194. Called to start the process of writing a page to
  33195. a document.
  33196. mediabox: page size rectangle in points.
  33197. Returns a borrowed fz_device to write page contents to. This
  33198. should be kept if required, and only dropped if it was kept.
  33199. """
  33200. return _mupdf.fz_begin_page(wri, mediabox)
  33201. def fz_begin_structure(dev, standard, raw, idx):
  33202. r"""Class-aware wrapper for `::fz_begin_structure()`."""
  33203. return _mupdf.fz_begin_structure(dev, standard, raw, idx)
  33204. def fz_begin_tile(dev, area, view, xstep, ystep, ctm):
  33205. r"""Class-aware wrapper for `::fz_begin_tile()`."""
  33206. return _mupdf.fz_begin_tile(dev, area, view, xstep, ystep, ctm)
  33207. def fz_begin_tile_id(dev, area, view, xstep, ystep, ctm, id):
  33208. r"""Class-aware wrapper for `::fz_begin_tile_id()`."""
  33209. return _mupdf.fz_begin_tile_id(dev, area, view, xstep, ystep, ctm, id)
  33210. def fz_begin_tile_tid(dev, area, view, xstep, ystep, ctm, id, doc_id):
  33211. r"""Class-aware wrapper for `::fz_begin_tile_tid()`."""
  33212. return _mupdf.fz_begin_tile_tid(dev, area, view, xstep, ystep, ctm, id, doc_id)
  33213. def fz_bidi_fragment_text(text, textlen, baseDir, callback, arg, flags):
  33214. r"""
  33215. Class-aware wrapper for `::fz_bidi_fragment_text()`.
  33216. This function has out-params. Python/C# wrappers look like:
  33217. `fz_bidi_fragment_text(const uint32_t *text, size_t textlen, ::fz_bidi_fragment_fn *callback, void *arg, int flags)` => ::fz_bidi_direction baseDir
  33218. Partitions the given Unicode sequence into one or more
  33219. unidirectional fragments and invokes the given callback
  33220. function for each fragment.
  33221. For example, if directionality of text is:
  33222. 0123456789
  33223. rrlllrrrrr,
  33224. we'll invoke callback with:
  33225. &text[0], length == 2
  33226. &text[2], length == 3
  33227. &text[5], length == 5
  33228. :type text: int, in
  33229. :param text: start of Unicode sequence
  33230. :type textlen: int, in
  33231. :param textlen: number of Unicodes to analyse
  33232. :type baseDir: int, in
  33233. :param baseDir: direction of paragraph (specify FZ_BIDI_NEUTRAL to force auto-detection)
  33234. :type callback: ::fz_bidi_fragment_fn, in
  33235. :param callback: function to be called for each fragment
  33236. :type arg: void, in
  33237. :param arg: data to be passed to the callback function
  33238. :type flags: int, in
  33239. :param flags: flags to control operation (see fz_bidi_flags above)
  33240. """
  33241. return _mupdf.fz_bidi_fragment_text(text, textlen, baseDir, callback, arg, flags)
  33242. def fz_bitmap_details(bitmap, w, h, n, stride):
  33243. r"""
  33244. Class-aware wrapper for `::fz_bitmap_details()`.
  33245. This function has out-params. Python/C# wrappers look like:
  33246. `fz_bitmap_details(::fz_bitmap *bitmap)` => `(int w, int h, int n, int stride)`
  33247. Retrieve details of a given bitmap.
  33248. bitmap: The bitmap to query.
  33249. w: Pointer to storage to retrieve width (or NULL).
  33250. h: Pointer to storage to retrieve height (or NULL).
  33251. n: Pointer to storage to retrieve number of color components (or
  33252. NULL).
  33253. stride: Pointer to storage to retrieve bitmap stride (or NULL).
  33254. """
  33255. return _mupdf.fz_bitmap_details(bitmap, w, h, n, stride)
  33256. def fz_blendmode_name(blendmode):
  33257. r"""
  33258. Class-aware wrapper for `::fz_blendmode_name()`.
  33259. Map from enumeration to blend mode string.
  33260. The string is static, with arbitrary lifespan.
  33261. """
  33262. return _mupdf.fz_blendmode_name(blendmode)
  33263. def fz_bound_display_list(list):
  33264. r"""
  33265. Class-aware wrapper for `::fz_bound_display_list()`.
  33266. Return the bounding box of the page recorded in a display list.
  33267. """
  33268. return _mupdf.fz_bound_display_list(list)
  33269. def fz_bound_glyph(font, gid, trm):
  33270. r"""
  33271. Class-aware wrapper for `::fz_bound_glyph()`.
  33272. Return a bbox for a given glyph in a font.
  33273. font: The font to look for the glyph in.
  33274. gid: The glyph to bound.
  33275. trm: The matrix to apply to the glyph before bounding.
  33276. Returns rectangle by value containing the bounds of the given
  33277. glyph.
  33278. """
  33279. return _mupdf.fz_bound_glyph(font, gid, trm)
  33280. def fz_bound_page(page):
  33281. r"""
  33282. Class-aware wrapper for `::fz_bound_page()`.
  33283. Determine the size of a page at 72 dpi.
  33284. """
  33285. return _mupdf.fz_bound_page(page)
  33286. def fz_bound_page_box(page, box):
  33287. r"""Class-aware wrapper for `::fz_bound_page_box()`."""
  33288. return _mupdf.fz_bound_page_box(page, box)
  33289. def fz_bound_path(path, stroke, ctm):
  33290. r"""
  33291. Class-aware wrapper for `::fz_bound_path()`.
  33292. Return a bounding rectangle for a path.
  33293. path: The path to bound.
  33294. stroke: If NULL, the bounding rectangle given is for
  33295. the filled path. If non-NULL the bounding rectangle
  33296. given is for the path stroked with the given attributes.
  33297. ctm: The matrix to apply to the path during stroking.
  33298. r: Pointer to a fz_rect which will be used to hold
  33299. the result.
  33300. Returns r, updated to contain the bounding rectangle.
  33301. """
  33302. return _mupdf.fz_bound_path(path, stroke, ctm)
  33303. def fz_bound_shade(shade, ctm):
  33304. r"""
  33305. Class-aware wrapper for `::fz_bound_shade()`.
  33306. Bound a given shading.
  33307. shade: The shade to bound.
  33308. ctm: The transform to apply to the shade before bounding.
  33309. r: Pointer to storage to put the bounds in.
  33310. Returns r, updated to contain the bounds for the shading.
  33311. """
  33312. return _mupdf.fz_bound_shade(shade, ctm)
  33313. def fz_bound_text(text, stroke, ctm):
  33314. r"""
  33315. Class-aware wrapper for `::fz_bound_text()`.
  33316. Find the bounds of a given text object.
  33317. text: The text object to find the bounds of.
  33318. stroke: Pointer to the stroke attributes (for stroked
  33319. text), or NULL (for filled text).
  33320. ctm: The matrix in use.
  33321. r: pointer to storage for the bounds.
  33322. Returns a pointer to r, which is updated to contain the
  33323. bounding box for the text object.
  33324. """
  33325. return _mupdf.fz_bound_text(text, stroke, ctm)
  33326. def fz_box_type_from_string(name):
  33327. r"""Class-aware wrapper for `::fz_box_type_from_string()`."""
  33328. return _mupdf.fz_box_type_from_string(name)
  33329. def fz_brotli_bound(size):
  33330. r"""
  33331. Class-aware wrapper for `::fz_brotli_bound()`.
  33332. Returns the upper bound on the
  33333. size of brotli compressed data of length size.
  33334. """
  33335. return _mupdf.fz_brotli_bound(size)
  33336. def fz_buffer_extract(buf, data):
  33337. r"""
  33338. Class-aware wrapper for `::fz_buffer_extract()`.
  33339. This function has out-params. Python/C# wrappers look like:
  33340. `fz_buffer_extract(::fz_buffer *buf)` => `(size_t, unsigned char *data)`
  33341. Take ownership of buffer contents.
  33342. Performs the same task as fz_buffer_storage, but ownership of
  33343. the data buffer returns with this call. The buffer is left
  33344. empty.
  33345. Note: Bad things may happen if this is called on a buffer with
  33346. multiple references that is being used from multiple threads.
  33347. data: Pointer to place to retrieve data pointer.
  33348. Returns length of stream.
  33349. """
  33350. return _mupdf.fz_buffer_extract(buf, data)
  33351. def fz_buffer_storage(buf, datap):
  33352. r"""
  33353. Class-aware wrapper for `::fz_buffer_storage()`.
  33354. This function has out-params. Python/C# wrappers look like:
  33355. `fz_buffer_storage(::fz_buffer *buf)` => `(size_t, unsigned char *datap)`
  33356. Retrieve internal memory of buffer.
  33357. datap: Output parameter that will be pointed to the data.
  33358. Returns the current size of the data in bytes.
  33359. """
  33360. return _mupdf.fz_buffer_storage(buf, datap)
  33361. def fz_calculate_font_ascender_descender(font):
  33362. r"""
  33363. Class-aware wrapper for `::fz_calculate_font_ascender_descender()`.
  33364. Ensure that a font has its ascender/descender values calculated
  33365. from the actual bbox of the glyphs.
  33366. Note, that we combine the declared values from the font (or the
  33367. default values if those are not present) with the actual bbox to
  33368. get the final result. So this can only cause ascender/descender
  33369. to move further apart!
  33370. """
  33371. return _mupdf.fz_calculate_font_ascender_descender(font)
  33372. def fz_calloc(count, size):
  33373. r"""
  33374. Class-aware wrapper for `::fz_calloc()`.
  33375. Allocate array of memory of count entries of size bytes.
  33376. Clears the memory to zero.
  33377. Throws exception in the event of failure to allocate.
  33378. """
  33379. return _mupdf.fz_calloc(count, size)
  33380. def fz_calloc_no_throw(count, size):
  33381. r"""
  33382. Class-aware wrapper for `::fz_calloc_no_throw()`.
  33383. fz_calloc equivalent that returns NULL rather than throwing
  33384. exceptions.
  33385. """
  33386. return _mupdf.fz_calloc_no_throw(count, size)
  33387. def fz_caught():
  33388. r"""
  33389. Class-aware wrapper for `::fz_caught()`.
  33390. Within an fz_catch() block, retrieve the error code for
  33391. the current exception.
  33392. This assumes no intervening use of fz_try/fz_catch.
  33393. """
  33394. return _mupdf.fz_caught()
  33395. def fz_caught_errno():
  33396. r"""Class-aware wrapper for `::fz_caught_errno()`."""
  33397. return _mupdf.fz_caught_errno()
  33398. def fz_caught_message():
  33399. r"""
  33400. Class-aware wrapper for `::fz_caught_message()`.
  33401. Within an fz_catch() block, retrieve the formatted message
  33402. string for the current exception.
  33403. This assumes no intervening use of fz_try/fz_catch.
  33404. """
  33405. return _mupdf.fz_caught_message()
  33406. def fz_chartorune(rune, str):
  33407. r"""
  33408. Class-aware wrapper for `::fz_chartorune()`.
  33409. This function has out-params. Python/C# wrappers look like:
  33410. `fz_chartorune(const char *str)` => `(int, int rune)`
  33411. UTF8 decode a single rune from a sequence of chars.
  33412. rune: Pointer to an int to assign the decoded 'rune' to.
  33413. (0xFFFD on error).
  33414. str: Pointer to a UTF8 encoded string.
  33415. Returns the number of bytes consumed.
  33416. """
  33417. return _mupdf.fz_chartorune(rune, str)
  33418. def fz_chartorunen(rune, str, n):
  33419. r"""
  33420. Class-aware wrapper for `::fz_chartorunen()`.
  33421. This function has out-params. Python/C# wrappers look like:
  33422. `fz_chartorunen(const char *str, size_t n)` => `(int, int rune)`
  33423. UTF8 decode a single rune from a sequence of chars
  33424. of given length.
  33425. rune: Pointer to an int to assign the decoded 'rune' to.
  33426. (0xFFFD on error).
  33427. str: Pointer to a UTF8 encoded string.
  33428. n: The number of bytes available at str.
  33429. Returns the number of bytes consumed.
  33430. """
  33431. return _mupdf.fz_chartorunen(rune, str, n)
  33432. def fz_clamp(x, min, max):
  33433. r"""Class-aware wrapper for `::fz_clamp()`."""
  33434. return _mupdf.fz_clamp(x, min, max)
  33435. def fz_clamp64(x, min, max):
  33436. r"""Class-aware wrapper for `::fz_clamp64()`."""
  33437. return _mupdf.fz_clamp64(x, min, max)
  33438. def fz_clamp_color(cs, _in, out):
  33439. r"""
  33440. Class-aware wrapper for `::fz_clamp_color()`.
  33441. This function has out-params. Python/C# wrappers look like:
  33442. `fz_clamp_color(::fz_colorspace *cs, const float *in)` => float out
  33443. Clamp the samples in a color to the correct ranges for a
  33444. given colorspace.
  33445. """
  33446. return _mupdf.fz_clamp_color(cs, _in, out)
  33447. def fz_clamp_location(doc, loc):
  33448. r"""
  33449. Class-aware wrapper for `::fz_clamp_location()`.
  33450. Clamps a location into valid chapter/page range. (First clamps
  33451. the chapter into range, then the page into range).
  33452. """
  33453. return _mupdf.fz_clamp_location(doc, loc)
  33454. def fz_clampd(x, min, max):
  33455. r"""Class-aware wrapper for `::fz_clampd()`."""
  33456. return _mupdf.fz_clampd(x, min, max)
  33457. def fz_clampi(x, min, max):
  33458. r"""Class-aware wrapper for `::fz_clampi()`."""
  33459. return _mupdf.fz_clampi(x, min, max)
  33460. def fz_clampp(x, min, max):
  33461. r"""Class-aware wrapper for `::fz_clampp()`."""
  33462. return _mupdf.fz_clampp(x, min, max)
  33463. def fz_cleanname(name):
  33464. r"""
  33465. Class-aware wrapper for `::fz_cleanname()`.
  33466. rewrite path to the shortest string that names the same path.
  33467. Eliminates multiple and trailing slashes, interprets "." and
  33468. "..". Overwrites the string in place.
  33469. """
  33470. return _mupdf.fz_cleanname(name)
  33471. def fz_cleanname_strdup(name):
  33472. r"""
  33473. Class-aware wrapper for `::fz_cleanname_strdup()`.
  33474. rewrite path to the shortest string that names the same path.
  33475. Eliminates multiple and trailing slashes, interprets "." and
  33476. "..". Allocates a new string that the caller must free.
  33477. """
  33478. return _mupdf.fz_cleanname_strdup(name)
  33479. def fz_clear_bitmap(bit):
  33480. r"""
  33481. Class-aware wrapper for `::fz_clear_bitmap()`.
  33482. Set the entire bitmap to 0.
  33483. Never throws exceptions.
  33484. """
  33485. return _mupdf.fz_clear_bitmap(bit)
  33486. def fz_clear_buffer(buf):
  33487. r"""
  33488. Class-aware wrapper for `::fz_clear_buffer()`.
  33489. Empties the buffer. Storage is not freed, but is held ready
  33490. to be reused as the buffer is refilled.
  33491. Never throws exceptions.
  33492. """
  33493. return _mupdf.fz_clear_buffer(buf)
  33494. def fz_clear_pixmap(pix):
  33495. r"""
  33496. Class-aware wrapper for `::fz_clear_pixmap()`.
  33497. Sets all components (including alpha) of
  33498. all pixels in a pixmap to 0.
  33499. pix: The pixmap to clear.
  33500. """
  33501. return _mupdf.fz_clear_pixmap(pix)
  33502. def fz_clear_pixmap_rect_with_value(pix, value, r):
  33503. r"""
  33504. Class-aware wrapper for `::fz_clear_pixmap_rect_with_value()`.
  33505. Clears a subrect of a pixmap with the given value.
  33506. pix: The pixmap to clear.
  33507. value: Values in the range 0 to 255 are valid. Each component
  33508. sample for each pixel in the pixmap will be set to this value,
  33509. while alpha will always be set to 255 (non-transparent).
  33510. r: the rectangle.
  33511. """
  33512. return _mupdf.fz_clear_pixmap_rect_with_value(pix, value, r)
  33513. def fz_clear_pixmap_with_value(pix, value):
  33514. r"""
  33515. Class-aware wrapper for `::fz_clear_pixmap_with_value()`.
  33516. Clears a pixmap with the given value.
  33517. pix: The pixmap to clear.
  33518. value: Values in the range 0 to 255 are valid. Each component
  33519. sample for each pixel in the pixmap will be set to this value,
  33520. while alpha will always be set to 255 (non-transparent).
  33521. This function is horrible, and should be removed from the
  33522. API and replaced with a less magic one.
  33523. """
  33524. return _mupdf.fz_clear_pixmap_with_value(pix, value)
  33525. def fz_clip_image_mask(dev, image, ctm, scissor):
  33526. r"""Class-aware wrapper for `::fz_clip_image_mask()`."""
  33527. return _mupdf.fz_clip_image_mask(dev, image, ctm, scissor)
  33528. def fz_clip_path(dev, path, even_odd, ctm, scissor):
  33529. r"""Class-aware wrapper for `::fz_clip_path()`."""
  33530. return _mupdf.fz_clip_path(dev, path, even_odd, ctm, scissor)
  33531. def fz_clip_stroke_path(dev, path, stroke, ctm, scissor):
  33532. r"""Class-aware wrapper for `::fz_clip_stroke_path()`."""
  33533. return _mupdf.fz_clip_stroke_path(dev, path, stroke, ctm, scissor)
  33534. def fz_clip_stroke_text(dev, text, stroke, ctm, scissor):
  33535. r"""Class-aware wrapper for `::fz_clip_stroke_text()`."""
  33536. return _mupdf.fz_clip_stroke_text(dev, text, stroke, ctm, scissor)
  33537. def fz_clip_text(dev, text, ctm, scissor):
  33538. r"""Class-aware wrapper for `::fz_clip_text()`."""
  33539. return _mupdf.fz_clip_text(dev, text, ctm, scissor)
  33540. def fz_clone_buffer(buf):
  33541. r"""
  33542. Class-aware wrapper for `::fz_clone_buffer()`.
  33543. Make a new buffer, containing a copy of the data used in
  33544. the original.
  33545. """
  33546. return _mupdf.fz_clone_buffer(buf)
  33547. def fz_clone_default_colorspaces(base):
  33548. r"""
  33549. Class-aware wrapper for `::fz_clone_default_colorspaces()`.
  33550. Returns a reference to a newly cloned default colorspaces
  33551. structure.
  33552. The new clone may safely be altered without fear of race
  33553. conditions as the caller is the only reference holder.
  33554. """
  33555. return _mupdf.fz_clone_default_colorspaces(base)
  33556. def fz_clone_path(path):
  33557. r"""
  33558. Class-aware wrapper for `::fz_clone_path()`.
  33559. Clone the data for a path.
  33560. This is used in preference to fz_keep_path when a whole
  33561. new copy of a path is required, rather than just a shared
  33562. pointer. This probably indicates that the path is about to
  33563. be modified.
  33564. path: path to clone.
  33565. Throws exceptions on failure to allocate.
  33566. """
  33567. return _mupdf.fz_clone_path(path)
  33568. def fz_clone_pixmap(old):
  33569. r"""
  33570. Class-aware wrapper for `::fz_clone_pixmap()`.
  33571. Clone a pixmap, copying the pixels and associated data to new
  33572. storage.
  33573. The reference count of 'old' is unchanged.
  33574. """
  33575. return _mupdf.fz_clone_pixmap(old)
  33576. def fz_clone_pixmap_area_with_different_seps(src, bbox, dcs, seps, color_params, default_cs):
  33577. r"""Class-aware wrapper for `::fz_clone_pixmap_area_with_different_seps()`."""
  33578. return _mupdf.fz_clone_pixmap_area_with_different_seps(src, bbox, dcs, seps, color_params, default_cs)
  33579. def fz_clone_separations_for_overprint(seps):
  33580. r"""
  33581. Class-aware wrapper for `::fz_clone_separations_for_overprint()`.
  33582. Return a separations object with all the spots in the input
  33583. separations object that are set to composite, reset to be
  33584. enabled. If there ARE no spots in the object, this returns
  33585. NULL. If the object already has all its spots enabled, then
  33586. just returns another handle on the same object.
  33587. """
  33588. return _mupdf.fz_clone_separations_for_overprint(seps)
  33589. def fz_clone_stroke_state(stroke):
  33590. r"""
  33591. Class-aware wrapper for `::fz_clone_stroke_state()`.
  33592. Create an identical stroke_state structure and return a
  33593. reference to it.
  33594. stroke: The stroke state reference to clone.
  33595. Exceptions may be thrown in the event of a failure to
  33596. allocate.
  33597. """
  33598. return _mupdf.fz_clone_stroke_state(stroke)
  33599. def fz_close_band_writer(writer):
  33600. r"""
  33601. Class-aware wrapper for `::fz_close_band_writer()`.
  33602. Finishes up the output and closes the band writer. After this
  33603. call no more headers or bands may be written.
  33604. """
  33605. return _mupdf.fz_close_band_writer(writer)
  33606. def fz_close_device(dev):
  33607. r"""
  33608. Class-aware wrapper for `::fz_close_device()`.
  33609. Signal the end of input, and flush any buffered output.
  33610. This is NOT called implicitly on fz_drop_device. This
  33611. may throw exceptions.
  33612. """
  33613. return _mupdf.fz_close_device(dev)
  33614. def fz_close_document_writer(wri):
  33615. r"""
  33616. Class-aware wrapper for `::fz_close_document_writer()`.
  33617. Called to end the process of writing
  33618. pages to a document.
  33619. This writes any file level trailers required. After this
  33620. completes successfully the file is up to date and complete.
  33621. """
  33622. return _mupdf.fz_close_document_writer(wri)
  33623. def fz_close_output(arg_0):
  33624. r"""
  33625. Class-aware wrapper for `::fz_close_output()`.
  33626. Flush pending output and close an output stream.
  33627. """
  33628. return _mupdf.fz_close_output(arg_0)
  33629. def fz_close_zip_writer(zip):
  33630. r"""
  33631. Class-aware wrapper for `::fz_close_zip_writer()`.
  33632. Close the zip file for writing.
  33633. This flushes any pending data to the file. This can throw
  33634. exceptions.
  33635. """
  33636. return _mupdf.fz_close_zip_writer(zip)
  33637. def fz_closepath(path):
  33638. r"""
  33639. Class-aware wrapper for `::fz_closepath()`.
  33640. Close the current subpath.
  33641. path: The path to modify.
  33642. Throws exceptions on failure to allocate, attempting to modify
  33643. a packed path, and illegal path closes (i.e. closing a non open
  33644. path).
  33645. """
  33646. return _mupdf.fz_closepath(path)
  33647. def fz_colorspace_colorant(cs, n):
  33648. r"""
  33649. Class-aware wrapper for `::fz_colorspace_colorant()`.
  33650. Retrieve a the name for a colorant.
  33651. Returns a pointer with the same lifespan as the colorspace.
  33652. """
  33653. return _mupdf.fz_colorspace_colorant(cs, n)
  33654. def fz_colorspace_device_n_has_cmyk(cs):
  33655. r"""
  33656. Class-aware wrapper for `::fz_colorspace_device_n_has_cmyk()`.
  33657. True if DeviceN color space has cyan magenta yellow or black as
  33658. one of its colorants.
  33659. """
  33660. return _mupdf.fz_colorspace_device_n_has_cmyk(cs)
  33661. def fz_colorspace_device_n_has_only_cmyk(cs):
  33662. r"""
  33663. Class-aware wrapper for `::fz_colorspace_device_n_has_only_cmyk()`.
  33664. True if DeviceN color space has only colorants from the CMYK set.
  33665. """
  33666. return _mupdf.fz_colorspace_device_n_has_only_cmyk(cs)
  33667. def fz_colorspace_digest(cs, digest):
  33668. r"""
  33669. Class-aware wrapper for `::fz_colorspace_digest()`.
  33670. Get checksum of underlying ICC profile.
  33671. """
  33672. return _mupdf.fz_colorspace_digest(cs, digest)
  33673. def fz_colorspace_is_cmyk(cs):
  33674. r"""Class-aware wrapper for `::fz_colorspace_is_cmyk()`."""
  33675. return _mupdf.fz_colorspace_is_cmyk(cs)
  33676. def fz_colorspace_is_device(cs):
  33677. r"""Class-aware wrapper for `::fz_colorspace_is_device()`."""
  33678. return _mupdf.fz_colorspace_is_device(cs)
  33679. def fz_colorspace_is_device_cmyk(cs):
  33680. r"""Class-aware wrapper for `::fz_colorspace_is_device_cmyk()`."""
  33681. return _mupdf.fz_colorspace_is_device_cmyk(cs)
  33682. def fz_colorspace_is_device_gray(cs):
  33683. r"""Class-aware wrapper for `::fz_colorspace_is_device_gray()`."""
  33684. return _mupdf.fz_colorspace_is_device_gray(cs)
  33685. def fz_colorspace_is_device_n(cs):
  33686. r"""Class-aware wrapper for `::fz_colorspace_is_device_n()`."""
  33687. return _mupdf.fz_colorspace_is_device_n(cs)
  33688. def fz_colorspace_is_gray(cs):
  33689. r"""
  33690. Class-aware wrapper for `::fz_colorspace_is_gray()`.
  33691. Tests for particular types of colorspaces
  33692. """
  33693. return _mupdf.fz_colorspace_is_gray(cs)
  33694. def fz_colorspace_is_icc(cs):
  33695. r"""Class-aware wrapper for `::fz_colorspace_is_icc()`."""
  33696. return _mupdf.fz_colorspace_is_icc(cs)
  33697. def fz_colorspace_is_indexed(cs):
  33698. r"""Class-aware wrapper for `::fz_colorspace_is_indexed()`."""
  33699. return _mupdf.fz_colorspace_is_indexed(cs)
  33700. def fz_colorspace_is_lab(cs):
  33701. r"""Class-aware wrapper for `::fz_colorspace_is_lab()`."""
  33702. return _mupdf.fz_colorspace_is_lab(cs)
  33703. def fz_colorspace_is_lab_icc(cs):
  33704. r"""Class-aware wrapper for `::fz_colorspace_is_lab_icc()`."""
  33705. return _mupdf.fz_colorspace_is_lab_icc(cs)
  33706. def fz_colorspace_is_rgb(cs):
  33707. r"""Class-aware wrapper for `::fz_colorspace_is_rgb()`."""
  33708. return _mupdf.fz_colorspace_is_rgb(cs)
  33709. def fz_colorspace_is_subtractive(cs):
  33710. r"""
  33711. Class-aware wrapper for `::fz_colorspace_is_subtractive()`.
  33712. True for CMYK, Separation and DeviceN colorspaces.
  33713. """
  33714. return _mupdf.fz_colorspace_is_subtractive(cs)
  33715. def fz_colorspace_n(cs):
  33716. r"""
  33717. Class-aware wrapper for `::fz_colorspace_n()`.
  33718. Query the number of colorants in a colorspace.
  33719. """
  33720. return _mupdf.fz_colorspace_n(cs)
  33721. def fz_colorspace_name(cs):
  33722. r"""
  33723. Class-aware wrapper for `::fz_colorspace_name()`.
  33724. Query the name of a colorspace.
  33725. The returned string has the same lifespan as the colorspace
  33726. does. Caller should not free it.
  33727. """
  33728. return _mupdf.fz_colorspace_name(cs)
  33729. def fz_colorspace_name_colorant(cs, n, name):
  33730. r"""
  33731. Class-aware wrapper for `::fz_colorspace_name_colorant()`.
  33732. Assign a name for a given colorant in a colorspace.
  33733. Used while initially setting up a colorspace. The string is
  33734. copied into local storage, so need not be retained by the
  33735. caller.
  33736. """
  33737. return _mupdf.fz_colorspace_name_colorant(cs, n, name)
  33738. def fz_colorspace_type(cs):
  33739. r"""
  33740. Class-aware wrapper for `::fz_colorspace_type()`.
  33741. Query the type of colorspace.
  33742. """
  33743. return _mupdf.fz_colorspace_type(cs)
  33744. def fz_compare_separations(sep1, sep2):
  33745. r"""
  33746. Class-aware wrapper for `::fz_compare_separations()`.
  33747. Compare 2 separations structures (or NULLs).
  33748. Return 0 if identical, non-zero if not identical.
  33749. """
  33750. return _mupdf.fz_compare_separations(sep1, sep2)
  33751. def fz_compress_brotli(dest, compressed_length, source, source_length, level):
  33752. r"""
  33753. Class-aware wrapper for `::fz_compress_brotli()`.
  33754. This function has out-params. Python/C# wrappers look like:
  33755. `fz_compress_brotli(unsigned char *dest, const unsigned char *source, size_t source_length, ::fz_brotli_level level)` => size_t compressed_length
  33756. Compress source_length bytes of data starting
  33757. at source, into a buffer of length *destLen, starting at dest.
  33758. compressed_length will be updated on exit to contain the size
  33759. actually used.
  33760. """
  33761. return _mupdf.fz_compress_brotli(dest, compressed_length, source, source_length, level)
  33762. def fz_compress_ccitt_fax_g3(data, columns, rows, stride):
  33763. r"""
  33764. Class-aware wrapper for `::fz_compress_ccitt_fax_g3()`.
  33765. Compress bitmap data as CCITT Group 3 1D fax image.
  33766. Creates a stream assuming the default PDF parameters,
  33767. except the number of columns.
  33768. """
  33769. return _mupdf.fz_compress_ccitt_fax_g3(data, columns, rows, stride)
  33770. def fz_compress_ccitt_fax_g4(data, columns, rows, stride):
  33771. r"""
  33772. Class-aware wrapper for `::fz_compress_ccitt_fax_g4()`.
  33773. Compress bitmap data as CCITT Group 4 2D fax image.
  33774. Creates a stream assuming the default PDF parameters, except
  33775. K=-1 and the number of columns.
  33776. """
  33777. return _mupdf.fz_compress_ccitt_fax_g4(data, columns, rows, stride)
  33778. def fz_compressed_buffer_size(buffer):
  33779. r"""
  33780. Class-aware wrapper for `::fz_compressed_buffer_size()`.
  33781. Return the storage size used for a buffer and its data.
  33782. Used in implementing store handling.
  33783. Never throws exceptions.
  33784. """
  33785. return _mupdf.fz_compressed_buffer_size(buffer)
  33786. def fz_compressed_image_buffer(image):
  33787. r"""
  33788. Class-aware wrapper for `::fz_compressed_image_buffer()`.
  33789. Retrieve the underlying compressed data for an image.
  33790. Returns a pointer to the underlying data buffer for an image,
  33791. or NULL if this image is not based upon a compressed data
  33792. buffer.
  33793. This is not a reference counted structure, so no reference is
  33794. returned. Lifespan is limited to that of the image itself.
  33795. """
  33796. return _mupdf.fz_compressed_image_buffer(image)
  33797. def fz_compressed_image_type(image):
  33798. r"""
  33799. Class-aware wrapper for `::fz_compressed_image_type()`.
  33800. Return the type of a compressed image.
  33801. Any non-compressed image will have the type returned as UNKNOWN.
  33802. """
  33803. return _mupdf.fz_compressed_image_type(image)
  33804. def fz_concat(left, right):
  33805. r"""
  33806. Class-aware wrapper for `::fz_concat()`.
  33807. Multiply two matrices.
  33808. The order of the two matrices are important since matrix
  33809. multiplication is not commutative.
  33810. Returns result.
  33811. """
  33812. return _mupdf.fz_concat(left, right)
  33813. def fz_contains_rect(a, b):
  33814. r"""
  33815. Class-aware wrapper for `::fz_contains_rect()`.
  33816. Test rectangle inclusion.
  33817. Return true if a entirely contains b.
  33818. """
  33819. return _mupdf.fz_contains_rect(a, b)
  33820. def fz_convert_color(ss, sv, ds, dv, _is, params):
  33821. r"""
  33822. Class-aware wrapper for `::fz_convert_color()`.
  33823. This function has out-params. Python/C# wrappers look like:
  33824. `fz_convert_color(::fz_colorspace *ss, const float *sv, ::fz_colorspace *ds, ::fz_colorspace *is, ::fz_color_params params)` => float dv
  33825. Convert color values sv from colorspace ss into colorvalues dv
  33826. for colorspace ds, via an optional intervening space is,
  33827. respecting the given color_params.
  33828. """
  33829. return _mupdf.fz_convert_color(ss, sv, ds, dv, _is, params)
  33830. def fz_convert_error(code):
  33831. r"""
  33832. Class-aware wrapper for `::fz_convert_error()`.
  33833. This function has out-params. Python/C# wrappers look like:
  33834. `fz_convert_error()` => `(const char *, int code)`
  33835. """
  33836. return _mupdf.fz_convert_error(code)
  33837. def fz_convert_indexed_pixmap_to_base(src):
  33838. r"""
  33839. Class-aware wrapper for `::fz_convert_indexed_pixmap_to_base()`.
  33840. Convert pixmap from indexed to base colorspace.
  33841. This creates a new bitmap containing the converted pixmap data.
  33842. """
  33843. return _mupdf.fz_convert_indexed_pixmap_to_base(src)
  33844. def fz_convert_pixmap(pix, cs_des, prf, default_cs, color_params, keep_alpha):
  33845. r"""
  33846. Class-aware wrapper for `::fz_convert_pixmap()`.
  33847. Convert an existing pixmap to a desired
  33848. colorspace. Other properties of the pixmap, such as resolution
  33849. and position are copied to the converted pixmap.
  33850. pix: The pixmap to convert.
  33851. default_cs: If NULL pix->colorspace is used. It is possible that
  33852. the data may need to be interpreted as one of the color spaces
  33853. in default_cs.
  33854. cs_des: Desired colorspace, may be NULL to denote alpha-only.
  33855. prf: Proofing color space through which we need to convert.
  33856. color_params: Parameters that may be used in conversion (e.g.
  33857. ri).
  33858. keep_alpha: If 0 any alpha component is removed, otherwise
  33859. alpha is kept if present in the pixmap.
  33860. """
  33861. return _mupdf.fz_convert_pixmap(pix, cs_des, prf, default_cs, color_params, keep_alpha)
  33862. def fz_convert_separation_colors(src_cs, src_color, dst_seps, dst_cs, dst_color, color_params):
  33863. r"""
  33864. Class-aware wrapper for `::fz_convert_separation_colors()`.
  33865. This function has out-params. Python/C# wrappers look like:
  33866. `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
  33867. Convert a color given in terms of one colorspace,
  33868. to a color in terms of another colorspace/separations.
  33869. """
  33870. return _mupdf.fz_convert_separation_colors(src_cs, src_color, dst_seps, dst_cs, dst_color, color_params)
  33871. def fz_convert_separation_pixmap_to_base(src):
  33872. r"""
  33873. Class-aware wrapper for `::fz_convert_separation_pixmap_to_base()`.
  33874. Convert pixmap from DeviceN/Separation to base colorspace.
  33875. This creates a new bitmap containing the converted pixmap data.
  33876. """
  33877. return _mupdf.fz_convert_separation_pixmap_to_base(src)
  33878. def fz_copy_option(val, dest, maxlen):
  33879. r"""
  33880. Class-aware wrapper for `::fz_copy_option()`.
  33881. Copy an option (val) into a destination buffer (dest), of maxlen
  33882. bytes.
  33883. Returns the number of bytes (including terminator) that did not
  33884. fit. If val is maxlen or greater bytes in size, it will be left
  33885. unterminated.
  33886. """
  33887. return _mupdf.fz_copy_option(val, dest, maxlen)
  33888. def fz_copy_pixmap_rect(dest, src, r, default_cs):
  33889. r"""Class-aware wrapper for `::fz_copy_pixmap_rect()`."""
  33890. return _mupdf.fz_copy_pixmap_rect(dest, src, r, default_cs)
  33891. def fz_copy_rectangle(page, area, crlf):
  33892. r"""
  33893. Class-aware wrapper for `::fz_copy_rectangle()`.
  33894. Return a newly allocated UTF-8 string with the text for a given
  33895. selection rectangle.
  33896. crlf: If true, write "\r\n" style line endings (otherwise "\n"
  33897. only).
  33898. """
  33899. return _mupdf.fz_copy_rectangle(page, area, crlf)
  33900. def fz_copy_selection(page, a, b, crlf):
  33901. r"""
  33902. Class-aware wrapper for `::fz_copy_selection()`.
  33903. Return a newly allocated UTF-8 string with the text for a given
  33904. selection.
  33905. crlf: If true, write "\r\n" style line endings (otherwise "\n"
  33906. only).
  33907. """
  33908. return _mupdf.fz_copy_selection(page, a, b, crlf)
  33909. def fz_count_active_separations(seps):
  33910. r"""
  33911. Class-aware wrapper for `::fz_count_active_separations()`.
  33912. Return the number of active separations.
  33913. """
  33914. return _mupdf.fz_count_active_separations(seps)
  33915. def fz_count_archive_entries(arch):
  33916. r"""
  33917. Class-aware wrapper for `::fz_count_archive_entries()`.
  33918. Number of entries in archive.
  33919. Will always return a value >= 0.
  33920. May throw an exception if this type of archive cannot count the
  33921. entries (such as a directory).
  33922. """
  33923. return _mupdf.fz_count_archive_entries(arch)
  33924. def fz_count_chapter_pages(doc, chapter):
  33925. r"""
  33926. Class-aware wrapper for `::fz_count_chapter_pages()`.
  33927. Return the number of pages in a chapter.
  33928. May return 0.
  33929. """
  33930. return _mupdf.fz_count_chapter_pages(doc, chapter)
  33931. def fz_count_chapters(doc):
  33932. r"""
  33933. Class-aware wrapper for `::fz_count_chapters()`.
  33934. Return the number of chapters in the document.
  33935. At least 1.
  33936. """
  33937. return _mupdf.fz_count_chapters(doc)
  33938. def fz_count_pages(doc):
  33939. r"""
  33940. Class-aware wrapper for `::fz_count_pages()`.
  33941. Return the number of pages in document
  33942. May return 0 for documents with no pages.
  33943. """
  33944. return _mupdf.fz_count_pages(doc)
  33945. def fz_count_separations(sep):
  33946. r"""Class-aware wrapper for `::fz_count_separations()`."""
  33947. return _mupdf.fz_count_separations(sep)
  33948. def fz_create_link(page, bbox, uri):
  33949. r"""
  33950. Class-aware wrapper for `::fz_create_link()`.
  33951. Create a new link on a page.
  33952. """
  33953. return _mupdf.fz_create_link(page, bbox, uri)
  33954. def fz_currentpoint(path):
  33955. r"""
  33956. Class-aware wrapper for `::fz_currentpoint()`.
  33957. Return the current point that a path has
  33958. reached or (0,0) if empty.
  33959. path: path to return the current point of.
  33960. """
  33961. return _mupdf.fz_currentpoint(path)
  33962. def fz_curveto(path, x0, y0, x1, y1, x2, y2):
  33963. r"""
  33964. Class-aware wrapper for `::fz_curveto()`.
  33965. Append a 'curveto' command to an open path. (For a
  33966. cubic bezier).
  33967. path: The path to modify.
  33968. x0, y0: The coordinates of the first control point for the
  33969. curve.
  33970. x1, y1: The coordinates of the second control point for the
  33971. curve.
  33972. x2, y2: The end coordinates for the curve.
  33973. Throws exceptions on failure to allocate, or attempting to
  33974. modify a packed path.
  33975. """
  33976. return _mupdf.fz_curveto(path, x0, y0, x1, y1, x2, y2)
  33977. def fz_curvetov(path, x1, y1, x2, y2):
  33978. r"""
  33979. Class-aware wrapper for `::fz_curvetov()`.
  33980. Append a 'curvetov' command to an open path. (For a
  33981. cubic bezier with the first control coordinate equal to
  33982. the start point).
  33983. path: The path to modify.
  33984. x1, y1: The coordinates of the second control point for the
  33985. curve.
  33986. x2, y2: The end coordinates for the curve.
  33987. Throws exceptions on failure to allocate, or attempting to
  33988. modify a packed path.
  33989. """
  33990. return _mupdf.fz_curvetov(path, x1, y1, x2, y2)
  33991. def fz_curvetoy(path, x0, y0, x2, y2):
  33992. r"""
  33993. Class-aware wrapper for `::fz_curvetoy()`.
  33994. Append a 'curvetoy' command to an open path. (For a
  33995. cubic bezier with the second control coordinate equal to
  33996. the end point).
  33997. path: The path to modify.
  33998. x0, y0: The coordinates of the first control point for the
  33999. curve.
  34000. x2, y2: The end coordinates for the curve (and the second
  34001. control coordinate).
  34002. Throws exceptions on failure to allocate, or attempting to
  34003. modify a packed path.
  34004. """
  34005. return _mupdf.fz_curvetoy(path, x0, y0, x2, y2)
  34006. def fz_debug_store(out):
  34007. r"""
  34008. Class-aware wrapper for `::fz_debug_store()`.
  34009. Output debugging information for the current state of the store
  34010. to the given output channel.
  34011. """
  34012. return _mupdf.fz_debug_store(out)
  34013. def fz_debug_xml(item, level):
  34014. r"""
  34015. Class-aware wrapper for `::fz_debug_xml()`.
  34016. Pretty-print an XML tree to stdout. (Deprecated, use
  34017. fz_output_xml in preference).
  34018. """
  34019. return _mupdf.fz_debug_xml(item, level)
  34020. def fz_decode_barcode_from_display_list(type, list, subarea, rotate):
  34021. r"""
  34022. Class-aware wrapper for `::fz_decode_barcode_from_display_list()`.
  34023. This function has out-params. Python/C# wrappers look like:
  34024. `fz_decode_barcode_from_display_list(::fz_display_list *list, ::fz_rect subarea, int rotate)` => `(char *, ::fz_barcode_type type)`
  34025. Decode a barcode from a display list.
  34026. type: NULL, or a pointer to recieve the barcode type decoded.
  34027. list: The display list to render to get the barcode.
  34028. subarea: subarea of the page to decode.
  34029. rotate: 0, 90, 180, or 270.
  34030. returns the decoded value.
  34031. """
  34032. return _mupdf.fz_decode_barcode_from_display_list(type, list, subarea, rotate)
  34033. def fz_decode_barcode_from_display_list2(type, list, subarea, rotate):
  34034. r"""
  34035. Class-aware wrapper for `::fz_decode_barcode_from_display_list2()`.
  34036. This function has out-params. Python/C# wrappers look like:
  34037. `fz_decode_barcode_from_display_list2(::fz_display_list *list, ::fz_rect subarea, int rotate)` => `(std::string, ::fz_barcode_type type)`
  34038. SWIG-friendly wrapper for fz_decode_barcode_from_display_list(),
  34039. avoiding leak of the returned string.
  34040. """
  34041. return _mupdf.fz_decode_barcode_from_display_list2(type, list, subarea, rotate)
  34042. def fz_decode_barcode_from_page(type, page, subarea, rotate):
  34043. r"""
  34044. Class-aware wrapper for `::fz_decode_barcode_from_page()`.
  34045. This function has out-params. Python/C# wrappers look like:
  34046. `fz_decode_barcode_from_page(::fz_page *page, ::fz_rect subarea, int rotate)` => `(char *, ::fz_barcode_type type)`
  34047. Decode a barcode from a page.
  34048. type: NULL, or a pointer to recieve the barcode type decoded.
  34049. page: The page to decode.
  34050. subarea: subarea of the page to decode.
  34051. rotate: 0, 90, 180, or 270.
  34052. returns the decoded value.
  34053. """
  34054. return _mupdf.fz_decode_barcode_from_page(type, page, subarea, rotate)
  34055. def fz_decode_barcode_from_page2(type, page, subarea, rotate):
  34056. r"""
  34057. Class-aware wrapper for `::fz_decode_barcode_from_page2()`.
  34058. This function has out-params. Python/C# wrappers look like:
  34059. `fz_decode_barcode_from_page2(::fz_page *page, ::fz_rect subarea, int rotate)` => `(std::string, ::fz_barcode_type type)`
  34060. SWIG-friendly wrapper for fz_decode_barcode_from_page(), avoiding
  34061. leak of the returned string.
  34062. """
  34063. return _mupdf.fz_decode_barcode_from_page2(type, page, subarea, rotate)
  34064. def fz_decode_barcode_from_pixmap(type, pix, rotate):
  34065. r"""
  34066. Class-aware wrapper for `::fz_decode_barcode_from_pixmap()`.
  34067. This function has out-params. Python/C# wrappers look like:
  34068. `fz_decode_barcode_from_pixmap(::fz_pixmap *pix, int rotate)` => `(char *, ::fz_barcode_type type)`
  34069. Decode a barcode from a pixmap.
  34070. type: NULL, or a pointer to recieve the barcode type decoded.
  34071. pix: The pixmap to decode.
  34072. rotate: 0, 90, 180, or 270.
  34073. returns the decoded value as an fz_malloced block. Should
  34074. be fz_free'd by the caller.
  34075. """
  34076. return _mupdf.fz_decode_barcode_from_pixmap(type, pix, rotate)
  34077. def fz_decode_barcode_from_pixmap2(type, pix, rotate):
  34078. r"""
  34079. Class-aware wrapper for `::fz_decode_barcode_from_pixmap2()`.
  34080. This function has out-params. Python/C# wrappers look like:
  34081. `fz_decode_barcode_from_pixmap2(::fz_pixmap *pix, int rotate)` => `(std::string, ::fz_barcode_type type)`
  34082. SWIG-friendly wrapper for fz_decode_barcode_from_pixmap(), avoiding
  34083. leak of the returned string.
  34084. """
  34085. return _mupdf.fz_decode_barcode_from_pixmap2(type, pix, rotate)
  34086. def fz_decode_tile(pix, decode):
  34087. r"""Class-aware wrapper for `::fz_decode_tile()`."""
  34088. return _mupdf.fz_decode_tile(pix, decode)
  34089. def fz_decode_uri(s):
  34090. r"""
  34091. Class-aware wrapper for `::fz_decode_uri()`.
  34092. Return a new string representing the unencoded version of the given URI.
  34093. This decodes all escape sequences except those that would result in a reserved
  34094. character that are part of the URI syntax (; / ? : @ & = + $ , #).
  34095. """
  34096. return _mupdf.fz_decode_uri(s)
  34097. def fz_decode_uri_component(s):
  34098. r"""
  34099. Class-aware wrapper for `::fz_decode_uri_component()`.
  34100. Return a new string representing the unencoded version of the given URI component.
  34101. This decodes all escape sequences!
  34102. """
  34103. return _mupdf.fz_decode_uri_component(s)
  34104. def fz_decomp_image_from_stream(stm, image, subarea, indexed, l2factor, l2extra):
  34105. r"""
  34106. Class-aware wrapper for `::fz_decomp_image_from_stream()`.
  34107. This function has out-params. Python/C# wrappers look like:
  34108. `fz_decomp_image_from_stream(::fz_stream *stm, ::fz_compressed_image *image, ::fz_irect *subarea, int indexed, int l2factor)` => `(fz_pixmap *, int l2extra)`
  34109. Decode a subarea of a compressed image. l2factor is the amount
  34110. of subsampling inbuilt to the stream (i.e. performed by the
  34111. decoder). If non NULL, l2extra is the extra amount of
  34112. subsampling that should be performed by this routine. This will
  34113. be updated on exit to the amount of subsampling that is still
  34114. required to be done.
  34115. Returns a kept reference.
  34116. """
  34117. return _mupdf.fz_decomp_image_from_stream(stm, image, subarea, indexed, l2factor, l2extra)
  34118. def fz_decouple_type3_font(font, t3doc):
  34119. r"""Class-aware wrapper for `::fz_decouple_type3_font()`."""
  34120. return _mupdf.fz_decouple_type3_font(font, t3doc)
  34121. def fz_default_cmyk(default_cs):
  34122. r"""Class-aware wrapper for `::fz_default_cmyk()`."""
  34123. return _mupdf.fz_default_cmyk(default_cs)
  34124. def fz_default_error_callback(user, message):
  34125. r"""
  34126. Class-aware wrapper for `::fz_default_error_callback()`.
  34127. FIXME: Better not to expose fz_default_error_callback, and
  34128. fz_default_warning callback and to allow 'NULL' to be used
  34129. int fz_set_xxxx_callback to mean "defaults".
  34130. FIXME: Do we need/want functions like
  34131. fz_error_callback(ctx, message) to allow callers to inject
  34132. stuff into the error/warning streams?
  34133. The default error callback. Declared publicly just so that the
  34134. error callback can be set back to this after it has been
  34135. overridden.
  34136. """
  34137. return _mupdf.fz_default_error_callback(user, message)
  34138. def fz_default_gray(default_cs):
  34139. r"""
  34140. Class-aware wrapper for `::fz_default_gray()`.
  34141. Retrieve default colorspaces (typically page local).
  34142. If default_cs is non NULL, the default is retrieved from there,
  34143. otherwise the global default is retrieved.
  34144. These return borrowed references that should not be dropped,
  34145. unless they are kept first.
  34146. """
  34147. return _mupdf.fz_default_gray(default_cs)
  34148. def fz_default_halftone(num_comps):
  34149. r"""
  34150. Class-aware wrapper for `::fz_default_halftone()`.
  34151. Create a 'default' halftone structure
  34152. for the given number of components.
  34153. num_comps: The number of components to use.
  34154. Returns a simple default halftone. The default halftone uses
  34155. the same halftone tile for each plane, which may not be ideal
  34156. for all purposes.
  34157. """
  34158. return _mupdf.fz_default_halftone(num_comps)
  34159. def fz_default_output_intent(default_cs):
  34160. r"""Class-aware wrapper for `::fz_default_output_intent()`."""
  34161. return _mupdf.fz_default_output_intent(default_cs)
  34162. def fz_default_rgb(default_cs):
  34163. r"""Class-aware wrapper for `::fz_default_rgb()`."""
  34164. return _mupdf.fz_default_rgb(default_cs)
  34165. def fz_default_warning_callback(user, message):
  34166. r"""
  34167. Class-aware wrapper for `::fz_default_warning_callback()`.
  34168. The default warning callback. Declared publicly just so that
  34169. the warning callback can be set back to this after it has been
  34170. overridden.
  34171. """
  34172. return _mupdf.fz_default_warning_callback(user, message)
  34173. def fz_defer_reap_end():
  34174. r"""
  34175. Class-aware wrapper for `::fz_defer_reap_end()`.
  34176. Decrement the defer reap count.
  34177. If the defer reap count returns to 0, and the store
  34178. has reapable objects in, a reap pass will begin.
  34179. Call this at the end of a process during which you
  34180. potentially might drop many reapable objects.
  34181. It is vital that every fz_defer_reap_start is matched
  34182. by a fz_defer_reap_end call.
  34183. """
  34184. return _mupdf.fz_defer_reap_end()
  34185. def fz_defer_reap_start():
  34186. r"""
  34187. Class-aware wrapper for `::fz_defer_reap_start()`.
  34188. Increment the defer reap count.
  34189. No reap operations will take place (except for those
  34190. triggered by an immediate failed malloc) until the
  34191. defer reap count returns to 0.
  34192. Call this at the start of a process during which you
  34193. potentially might drop many reapable objects.
  34194. It is vital that every fz_defer_reap_start is matched
  34195. by a fz_defer_reap_end call.
  34196. """
  34197. return _mupdf.fz_defer_reap_start()
  34198. def fz_deflate(dest, compressed_length, source, source_length, level):
  34199. r"""
  34200. Class-aware wrapper for `::fz_deflate()`.
  34201. This function has out-params. Python/C# wrappers look like:
  34202. `fz_deflate(unsigned char *dest, const unsigned char *source, size_t source_length, ::fz_deflate_level level)` => size_t compressed_length
  34203. Compress source_length bytes of data starting
  34204. at source, into a buffer of length *compressed_length, starting at
  34205. dest. *compressed_length will be updated on exit to contain the size
  34206. actually used.
  34207. """
  34208. return _mupdf.fz_deflate(dest, compressed_length, source, source_length, level)
  34209. def fz_deflate_bound(size):
  34210. r"""
  34211. Class-aware wrapper for `::fz_deflate_bound()`.
  34212. Returns the upper bound on the
  34213. size of flated data of length size.
  34214. """
  34215. return _mupdf.fz_deflate_bound(size)
  34216. def fz_delete_link(page, link):
  34217. r"""
  34218. Class-aware wrapper for `::fz_delete_link()`.
  34219. Delete an existing link on a page.
  34220. """
  34221. return _mupdf.fz_delete_link(page, link)
  34222. def fz_deskew_pixmap(src, degrees, border):
  34223. r"""Class-aware wrapper for `::fz_deskew_pixmap()`."""
  34224. return _mupdf.fz_deskew_pixmap(src, degrees, border)
  34225. def fz_detach_xml(node):
  34226. r"""
  34227. Class-aware wrapper for `::fz_detach_xml()`.
  34228. Detach a node from the tree, unlinking it from its parent,
  34229. and setting the document root to the node.
  34230. """
  34231. return _mupdf.fz_detach_xml(node)
  34232. def fz_detect_document(points, src):
  34233. r"""Class-aware wrapper for `::fz_detect_document()`."""
  34234. return _mupdf.fz_detect_document(points, src)
  34235. def fz_detect_skew(pixmap):
  34236. r"""Class-aware wrapper for `::fz_detect_skew()`."""
  34237. return _mupdf.fz_detect_skew(pixmap)
  34238. def fz_device_bgr():
  34239. r"""Class-aware wrapper for `::fz_device_bgr()`."""
  34240. return _mupdf.fz_device_bgr()
  34241. def fz_device_cmyk():
  34242. r"""Class-aware wrapper for `::fz_device_cmyk()`."""
  34243. return _mupdf.fz_device_cmyk()
  34244. def fz_device_current_scissor(dev):
  34245. r"""
  34246. Class-aware wrapper for `::fz_device_current_scissor()`.
  34247. Find current scissor region as tracked by the device.
  34248. """
  34249. return _mupdf.fz_device_current_scissor(dev)
  34250. def fz_device_gray():
  34251. r"""
  34252. Class-aware wrapper for `::fz_device_gray()`.
  34253. Retrieve global default colorspaces.
  34254. These return borrowed references that should not be dropped,
  34255. unless they are kept first.
  34256. """
  34257. return _mupdf.fz_device_gray()
  34258. def fz_device_lab():
  34259. r"""Class-aware wrapper for `::fz_device_lab()`."""
  34260. return _mupdf.fz_device_lab()
  34261. def fz_device_rgb():
  34262. r"""Class-aware wrapper for `::fz_device_rgb()`."""
  34263. return _mupdf.fz_device_rgb()
  34264. def fz_dirname(dir, path, dirsize):
  34265. r"""
  34266. Class-aware wrapper for `::fz_dirname()`.
  34267. extract the directory component from a path.
  34268. """
  34269. return _mupdf.fz_dirname(dir, path, dirsize)
  34270. def fz_disable_device_hints(dev, hints):
  34271. r"""
  34272. Class-aware wrapper for `::fz_disable_device_hints()`.
  34273. Disable (clear) hint bits within the hint bitfield for a device.
  34274. """
  34275. return _mupdf.fz_disable_device_hints(dev, hints)
  34276. def fz_disable_icc():
  34277. r"""
  34278. Class-aware wrapper for `::fz_disable_icc()`.
  34279. Disable icc profile based operation.
  34280. """
  34281. return _mupdf.fz_disable_icc()
  34282. def fz_display_list_is_empty(list):
  34283. r"""
  34284. Class-aware wrapper for `::fz_display_list_is_empty()`.
  34285. Check for a display list being empty
  34286. list: The list to check.
  34287. Returns true if empty, false otherwise.
  34288. """
  34289. return _mupdf.fz_display_list_is_empty(list)
  34290. def fz_div255(c, a):
  34291. r"""
  34292. Class-aware wrapper for `::fz_div255()`.
  34293. Undo alpha premultiplication.
  34294. """
  34295. return _mupdf.fz_div255(c, a)
  34296. def fz_do_always():
  34297. r"""Class-aware wrapper for `::fz_do_always()`."""
  34298. return _mupdf.fz_do_always()
  34299. def fz_do_catch():
  34300. r"""Class-aware wrapper for `::fz_do_catch()`."""
  34301. return _mupdf.fz_do_catch()
  34302. def fz_do_try():
  34303. r"""Class-aware wrapper for `::fz_do_try()`."""
  34304. return _mupdf.fz_do_try()
  34305. def fz_document_handler_open(handler, stream, accel, dir, recognize_state):
  34306. r"""
  34307. Class-aware wrapper for `::fz_document_handler_open()`. Helper for calling `fz_document_handler::open` function pointer via
  34308. Swig from Python/C#.
  34309. """
  34310. return _mupdf.fz_document_handler_open(handler, stream, accel, dir, recognize_state)
  34311. def fz_document_handler_recognize(handler, magic):
  34312. r"""
  34313. Class-aware wrapper for `::fz_document_handler_recognize()`. Helper for calling a `fz_document_handler::recognize` function
  34314. pointer via Swig from Python/C#.
  34315. """
  34316. return _mupdf.fz_document_handler_recognize(handler, magic)
  34317. def fz_document_output_intent(doc):
  34318. r"""
  34319. Class-aware wrapper for `::fz_document_output_intent()`.
  34320. Find the output intent colorspace if the document has defined
  34321. one.
  34322. Returns a borrowed reference that should not be dropped, unless
  34323. it is kept first.
  34324. """
  34325. return _mupdf.fz_document_output_intent(doc)
  34326. def fz_document_supports_accelerator(doc):
  34327. r"""
  34328. Class-aware wrapper for `::fz_document_supports_accelerator()`.
  34329. Query if the document supports the saving of accelerator data.
  34330. """
  34331. return _mupdf.fz_document_supports_accelerator(doc)
  34332. def fz_dom_add_attribute(elt, att, value):
  34333. r"""
  34334. Class-aware wrapper for `::fz_dom_add_attribute()`.
  34335. Add an attribute to an element.
  34336. Ownership of att and value remain with the caller.
  34337. """
  34338. return _mupdf.fz_dom_add_attribute(elt, att, value)
  34339. def fz_dom_append_child(parent, child):
  34340. r"""
  34341. Class-aware wrapper for `::fz_dom_append_child()`.
  34342. Insert an element as the last child of a parent, unlinking the
  34343. child from its current position if required.
  34344. """
  34345. return _mupdf.fz_dom_append_child(parent, child)
  34346. def fz_dom_attribute(elt, att):
  34347. r"""
  34348. Class-aware wrapper for `::fz_dom_attribute()`.
  34349. Retrieve the value of a given attribute from a given element.
  34350. Returns a borrowed pointer to the value or NULL if not found.
  34351. """
  34352. return _mupdf.fz_dom_attribute(elt, att)
  34353. def fz_dom_body(dom):
  34354. r"""
  34355. Class-aware wrapper for `::fz_dom_body()`.
  34356. Return a borrowed reference for the 'body' element of
  34357. the given DOM.
  34358. """
  34359. return _mupdf.fz_dom_body(dom)
  34360. def fz_dom_clone(elt):
  34361. r"""
  34362. Class-aware wrapper for `::fz_dom_clone()`.
  34363. Clone an element (and its children).
  34364. A borrowed reference to the clone is returned. The clone is not
  34365. yet linked into the DOM.
  34366. """
  34367. return _mupdf.fz_dom_clone(elt)
  34368. def fz_dom_create_element(dom, tag):
  34369. r"""
  34370. Class-aware wrapper for `::fz_dom_create_element()`.
  34371. Create an element of a given tag type for the given DOM.
  34372. The element is not linked into the DOM yet.
  34373. """
  34374. return _mupdf.fz_dom_create_element(dom, tag)
  34375. def fz_dom_create_text_node(dom, text):
  34376. r"""
  34377. Class-aware wrapper for `::fz_dom_create_text_node()`.
  34378. Create a text node for the given DOM.
  34379. The element is not linked into the DOM yet.
  34380. """
  34381. return _mupdf.fz_dom_create_text_node(dom, text)
  34382. def fz_dom_document_element(dom):
  34383. r"""
  34384. Class-aware wrapper for `::fz_dom_document_element()`.
  34385. Return a borrowed reference for the document (the top
  34386. level element) of the DOM.
  34387. """
  34388. return _mupdf.fz_dom_document_element(dom)
  34389. def fz_dom_find(elt, tag, att, match):
  34390. r"""
  34391. Class-aware wrapper for `::fz_dom_find()`.
  34392. Find the first element matching the requirements in a depth first traversal from elt.
  34393. The tagname must match tag, unless tag is NULL, when all tag names are considered to match.
  34394. If att is NULL, then all tags match.
  34395. Otherwise:
  34396. If match is NULL, then only nodes that have an att attribute match.
  34397. If match is non-NULL, then only nodes that have an att attribute that matches match match.
  34398. Returns NULL (if no match found), or a borrowed reference to the first matching element.
  34399. """
  34400. return _mupdf.fz_dom_find(elt, tag, att, match)
  34401. def fz_dom_find_next(elt, tag, att, match):
  34402. r"""
  34403. Class-aware wrapper for `::fz_dom_find_next()`.
  34404. Find the next element matching the requirements.
  34405. """
  34406. return _mupdf.fz_dom_find_next(elt, tag, att, match)
  34407. def fz_dom_first_child(elt):
  34408. r"""
  34409. Class-aware wrapper for `::fz_dom_first_child()`.
  34410. Return a borrowed reference to the first child of a node,
  34411. or NULL if there isn't one.
  34412. """
  34413. return _mupdf.fz_dom_first_child(elt)
  34414. def fz_dom_get_attribute(elt, i, att):
  34415. r"""
  34416. Class-aware wrapper for `::fz_dom_get_attribute()`.
  34417. This function has out-params. Python/C# wrappers look like:
  34418. `fz_dom_get_attribute(::fz_xml *elt, int i)` => `(const char *, const char *att)`
  34419. Enumerate through the attributes of an element.
  34420. Call with i=0,1,2,3... to enumerate attributes.
  34421. On return *att and the return value will be NULL if there are not
  34422. that many attributes to read. Otherwise, *att will be filled in
  34423. with a borrowed pointer to the attribute name, and the return
  34424. value will be a borrowed pointer to the value.
  34425. """
  34426. return _mupdf.fz_dom_get_attribute(elt, i, att)
  34427. def fz_dom_insert_after(node, new_elt):
  34428. r"""
  34429. Class-aware wrapper for `::fz_dom_insert_after()`.
  34430. Insert an element (new_elt), after another element (node),
  34431. unlinking the new_elt from its current position if required.
  34432. """
  34433. return _mupdf.fz_dom_insert_after(node, new_elt)
  34434. def fz_dom_insert_before(node, new_elt):
  34435. r"""
  34436. Class-aware wrapper for `::fz_dom_insert_before()`.
  34437. Insert an element (new_elt), before another element (node),
  34438. unlinking the new_elt from its current position if required.
  34439. """
  34440. return _mupdf.fz_dom_insert_before(node, new_elt)
  34441. def fz_dom_next(elt):
  34442. r"""
  34443. Class-aware wrapper for `::fz_dom_next()`.
  34444. Return a borrowed reference to the next sibling of a node,
  34445. or NULL if there isn't one.
  34446. """
  34447. return _mupdf.fz_dom_next(elt)
  34448. def fz_dom_parent(elt):
  34449. r"""
  34450. Class-aware wrapper for `::fz_dom_parent()`.
  34451. Return a borrowed reference to the parent of a node,
  34452. or NULL if there isn't one.
  34453. """
  34454. return _mupdf.fz_dom_parent(elt)
  34455. def fz_dom_previous(elt):
  34456. r"""
  34457. Class-aware wrapper for `::fz_dom_previous()`.
  34458. Return a borrowed reference to the previous sibling of a node,
  34459. or NULL if there isn't one.
  34460. """
  34461. return _mupdf.fz_dom_previous(elt)
  34462. def fz_dom_remove(elt):
  34463. r"""
  34464. Class-aware wrapper for `::fz_dom_remove()`.
  34465. Remove an element from the DOM. The element can be added back elsewhere
  34466. if required.
  34467. No reference counting changes for the element.
  34468. """
  34469. return _mupdf.fz_dom_remove(elt)
  34470. def fz_dom_remove_attribute(elt, att):
  34471. r"""
  34472. Class-aware wrapper for `::fz_dom_remove_attribute()`.
  34473. Remove an attribute from an element.
  34474. """
  34475. return _mupdf.fz_dom_remove_attribute(elt, att)
  34476. def fz_draw_story(story, dev, ctm):
  34477. r"""Class-aware wrapper for `::fz_draw_story()`."""
  34478. return _mupdf.fz_draw_story(story, dev, ctm)
  34479. def fz_dump_glyph_cache_stats(out):
  34480. r"""
  34481. Class-aware wrapper for `::fz_dump_glyph_cache_stats()`.
  34482. Dump debug statistics for the glyph cache.
  34483. """
  34484. return _mupdf.fz_dump_glyph_cache_stats(out)
  34485. def fz_duplicate_glyph_names_from_unicode(unicode):
  34486. r"""Class-aware wrapper for `::fz_duplicate_glyph_names_from_unicode()`."""
  34487. return _mupdf.fz_duplicate_glyph_names_from_unicode(unicode)
  34488. def fz_empty_store():
  34489. r"""
  34490. Class-aware wrapper for `::fz_empty_store()`.
  34491. Evict every item from the store.
  34492. """
  34493. return _mupdf.fz_empty_store()
  34494. def fz_enable_device_hints(dev, hints):
  34495. r"""
  34496. Class-aware wrapper for `::fz_enable_device_hints()`.
  34497. Enable (set) hint bits within the hint bitfield for a device.
  34498. """
  34499. return _mupdf.fz_enable_device_hints(dev, hints)
  34500. def fz_enable_icc():
  34501. r"""
  34502. Class-aware wrapper for `::fz_enable_icc()`.
  34503. Enable icc profile based operation.
  34504. """
  34505. return _mupdf.fz_enable_icc()
  34506. def fz_encode_character(font, unicode):
  34507. r"""
  34508. Class-aware wrapper for `::fz_encode_character()`.
  34509. Find the glyph id for a given unicode
  34510. character within a font.
  34511. font: The font to look for the unicode character in.
  34512. unicode: The unicode character to encode.
  34513. Returns the glyph id for the given unicode value, or 0 if
  34514. unknown.
  34515. """
  34516. return _mupdf.fz_encode_character(font, unicode)
  34517. def fz_encode_character_by_glyph_name(font, glyphname):
  34518. r"""
  34519. Class-aware wrapper for `::fz_encode_character_by_glyph_name()`.
  34520. Encode character.
  34521. Either by direct lookup of glyphname within a font, or, failing
  34522. that, by mapping glyphname to unicode and thence to the glyph
  34523. index within the given font.
  34524. Returns zero for type3 fonts.
  34525. """
  34526. return _mupdf.fz_encode_character_by_glyph_name(font, glyphname)
  34527. def fz_encode_character_sc(font, unicode):
  34528. r"""
  34529. Class-aware wrapper for `::fz_encode_character_sc()`.
  34530. Encode character, preferring small-caps variant if available.
  34531. font: The font to look for the unicode character in.
  34532. unicode: The unicode character to encode.
  34533. Returns the glyph id for the given unicode value, or 0 if
  34534. unknown.
  34535. """
  34536. return _mupdf.fz_encode_character_sc(font, unicode)
  34537. def fz_encode_character_with_fallback(font, unicode, script, language, out_font):
  34538. r"""
  34539. Class-aware wrapper for `::fz_encode_character_with_fallback()`.
  34540. This function has out-params. Python/C# wrappers look like:
  34541. `fz_encode_character_with_fallback(::fz_font *font, int unicode, int script, int language, ::fz_font **out_font)` => `(int)`
  34542. Find the glyph id for
  34543. a given unicode character within a font, falling back to
  34544. an alternative if not found.
  34545. font: The font to look for the unicode character in.
  34546. unicode: The unicode character to encode.
  34547. script: The script in use.
  34548. language: The language in use.
  34549. out_font: The font handle in which the given glyph represents
  34550. the requested unicode character. The caller does not own the
  34551. reference it is passed, so should call fz_keep_font if it is
  34552. not simply to be used immediately.
  34553. Returns the glyph id for the given unicode value in the supplied
  34554. font (and sets *out_font to font) if it is present. Otherwise
  34555. an alternative fallback font (based on script/language) is
  34556. searched for. If the glyph is found therein, *out_font is set
  34557. to this reference, and the glyph reference is returned. If it
  34558. cannot be found anywhere, the function returns 0.
  34559. """
  34560. return _mupdf.fz_encode_character_with_fallback(font, unicode, script, language, out_font)
  34561. def fz_encode_uri(s):
  34562. r"""
  34563. Class-aware wrapper for `::fz_encode_uri()`.
  34564. Return a new string representing the provided string encoded as a URI.
  34565. """
  34566. return _mupdf.fz_encode_uri(s)
  34567. def fz_encode_uri_component(s):
  34568. r"""
  34569. Class-aware wrapper for `::fz_encode_uri_component()`.
  34570. Return a new string representing the provided string encoded as an URI component.
  34571. This also encodes the special reserved characters (; / ? : @ & = + $ , #).
  34572. """
  34573. return _mupdf.fz_encode_uri_component(s)
  34574. def fz_encode_uri_pathname(s):
  34575. r"""
  34576. Class-aware wrapper for `::fz_encode_uri_pathname()`.
  34577. Return a new string representing the provided string encoded as an URI path name.
  34578. This also encodes the special reserved characters except /.
  34579. """
  34580. return _mupdf.fz_encode_uri_pathname(s)
  34581. def fz_end_group(dev):
  34582. r"""Class-aware wrapper for `::fz_end_group()`."""
  34583. return _mupdf.fz_end_group(dev)
  34584. def fz_end_layer(dev):
  34585. r"""Class-aware wrapper for `::fz_end_layer()`."""
  34586. return _mupdf.fz_end_layer(dev)
  34587. def fz_end_mask(dev):
  34588. r"""Class-aware wrapper for `::fz_end_mask()`."""
  34589. return _mupdf.fz_end_mask(dev)
  34590. def fz_end_mask_tr(dev, fn):
  34591. r"""Class-aware wrapper for `::fz_end_mask_tr()`."""
  34592. return _mupdf.fz_end_mask_tr(dev, fn)
  34593. def fz_end_metatext(dev):
  34594. r"""Class-aware wrapper for `::fz_end_metatext()`."""
  34595. return _mupdf.fz_end_metatext(dev)
  34596. def fz_end_page(wri):
  34597. r"""
  34598. Class-aware wrapper for `::fz_end_page()`.
  34599. Called to end the process of writing a page to a
  34600. document.
  34601. """
  34602. return _mupdf.fz_end_page(wri)
  34603. def fz_end_structure(dev):
  34604. r"""Class-aware wrapper for `::fz_end_structure()`."""
  34605. return _mupdf.fz_end_structure(dev)
  34606. def fz_end_throw_on_repair():
  34607. r"""Class-aware wrapper for `::fz_end_throw_on_repair()`."""
  34608. return _mupdf.fz_end_throw_on_repair()
  34609. def fz_end_tile(dev):
  34610. r"""Class-aware wrapper for `::fz_end_tile()`."""
  34611. return _mupdf.fz_end_tile(dev)
  34612. def fz_enumerate_font_cmap(font, cb, opaque):
  34613. r"""
  34614. Class-aware wrapper for `::fz_enumerate_font_cmap()`.
  34615. Enumerate a cmap using a callback.
  34616. """
  34617. return _mupdf.fz_enumerate_font_cmap(font, cb, opaque)
  34618. def fz_enumerate_font_cmap2(font):
  34619. r"""Class-aware wrapper for `::fz_enumerate_font_cmap2()`. SWIG-friendly wrapper for fz_enumerate_font_cmap()."""
  34620. return _mupdf.fz_enumerate_font_cmap2(font)
  34621. def fz_error_callback(user):
  34622. r"""
  34623. Class-aware wrapper for `::fz_error_callback()`.
  34624. This function has out-params. Python/C# wrappers look like:
  34625. `fz_error_callback()` => `(fz_error_cb *, void *user)`
  34626. Retrieve the currently set error callback, or NULL if none
  34627. has been set. Optionally, if user is non-NULL, the user pointer
  34628. given when the warning callback was set is also passed back to
  34629. the caller.
  34630. """
  34631. return _mupdf.fz_error_callback(user)
  34632. def fz_eval_function(func, _in, inlen, out, outlen):
  34633. r"""
  34634. Class-aware wrapper for `::fz_eval_function()`.
  34635. This function has out-params. Python/C# wrappers look like:
  34636. `fz_eval_function(::fz_function *func, const float *in, int inlen, int outlen)` => float out
  34637. """
  34638. return _mupdf.fz_eval_function(func, _in, inlen, out, outlen)
  34639. def fz_expand_irect(a, expand):
  34640. r"""Class-aware wrapper for `::fz_expand_irect()`."""
  34641. return _mupdf.fz_expand_irect(a, expand)
  34642. def fz_expand_rect(b, expand):
  34643. r"""
  34644. Class-aware wrapper for `::fz_expand_rect()`.
  34645. Expand a bbox by a given amount in all directions.
  34646. """
  34647. return _mupdf.fz_expand_rect(b, expand)
  34648. def fz_extract_ttf_from_ttc(font):
  34649. r"""Class-aware wrapper for `::fz_extract_ttf_from_ttc()`."""
  34650. return _mupdf.fz_extract_ttf_from_ttc(font)
  34651. def fz_file_exists(path):
  34652. r"""
  34653. Class-aware wrapper for `::fz_file_exists()`.
  34654. Return true if the named file exists and is readable.
  34655. """
  34656. return _mupdf.fz_file_exists(path)
  34657. def fz_fill_image(dev, image, ctm, alpha, color_params):
  34658. r"""Class-aware wrapper for `::fz_fill_image()`."""
  34659. return _mupdf.fz_fill_image(dev, image, ctm, alpha, color_params)
  34660. def fz_fill_image_mask(dev, image, ctm, colorspace, color, alpha, color_params):
  34661. r"""Class-aware wrapper for `::fz_fill_image_mask()`."""
  34662. return _mupdf.fz_fill_image_mask(dev, image, ctm, colorspace, color, alpha, color_params)
  34663. def fz_fill_path(dev, path, even_odd, ctm, colorspace, color, alpha, color_params):
  34664. r"""
  34665. Class-aware wrapper for `::fz_fill_path()`.
  34666. Device calls; graphics primitives and containers.
  34667. """
  34668. return _mupdf.fz_fill_path(dev, path, even_odd, ctm, colorspace, color, alpha, color_params)
  34669. def fz_fill_pixmap_from_display_list(list, ctm, pix):
  34670. r"""Class-aware wrapper for `::fz_fill_pixmap_from_display_list()`."""
  34671. return _mupdf.fz_fill_pixmap_from_display_list(list, ctm, pix)
  34672. def fz_fill_pixmap_with_color(pix, colorspace, color, color_params):
  34673. r"""
  34674. Class-aware wrapper for `::fz_fill_pixmap_with_color()`.
  34675. This function has out-params. Python/C# wrappers look like:
  34676. `fz_fill_pixmap_with_color(::fz_pixmap *pix, ::fz_colorspace *colorspace, ::fz_color_params color_params)` => float color
  34677. Fill pixmap with solid color.
  34678. """
  34679. return _mupdf.fz_fill_pixmap_with_color(pix, colorspace, color, color_params)
  34680. def fz_fill_shade(dev, shade, ctm, alpha, color_params):
  34681. r"""Class-aware wrapper for `::fz_fill_shade()`."""
  34682. return _mupdf.fz_fill_shade(dev, shade, ctm, alpha, color_params)
  34683. def fz_fill_text(dev, text, ctm, colorspace, color, alpha, color_params):
  34684. r"""Class-aware wrapper for `::fz_fill_text()`."""
  34685. return _mupdf.fz_fill_text(dev, text, ctm, colorspace, color, alpha, color_params)
  34686. def fz_filter_store(fn, arg, type):
  34687. r"""
  34688. Class-aware wrapper for `::fz_filter_store()`.
  34689. Filter every element in the store with a matching type with the
  34690. given function.
  34691. If the function returns 1 for an element, drop the element.
  34692. """
  34693. return _mupdf.fz_filter_store(fn, arg, type)
  34694. def fz_find_item(drop, key, type):
  34695. r"""
  34696. Class-aware wrapper for `::fz_find_item()`.
  34697. Find an item within the store.
  34698. drop: The function used to free the value (to ensure we get a
  34699. value of the correct type).
  34700. key: The key used to index the item.
  34701. type: Functions used to manipulate the key.
  34702. Returns NULL for not found, otherwise returns a pointer to the
  34703. value indexed by key to which a reference has been taken.
  34704. """
  34705. return _mupdf.fz_find_item(drop, key, type)
  34706. def fz_find_table_within_bounds(page, bounds):
  34707. r"""
  34708. Class-aware wrapper for `::fz_find_table_within_bounds()`.
  34709. Interpret the bounded contents of a given stext page as
  34710. a table.
  34711. The page contents will be rewritten to contain a Table
  34712. structure with the identified content in it.
  34713. This uses the same logic as for fz_table_hunt, without the
  34714. actual hunting. fz_table_hunt hunts to find possible bounds
  34715. for multiple tables on the page; this routine just finds a
  34716. single table contained within the given rectangle.
  34717. Returns the stext_block list that contains the content of
  34718. the table.
  34719. """
  34720. return _mupdf.fz_find_table_within_bounds(page, bounds)
  34721. def fz_flush_output(out):
  34722. r"""
  34723. Class-aware wrapper for `::fz_flush_output()`.
  34724. Flush unwritten data.
  34725. """
  34726. return _mupdf.fz_flush_output(out)
  34727. def fz_flush_warnings():
  34728. r"""
  34729. Class-aware wrapper for `::fz_flush_warnings()`.
  34730. Flush any repeated warnings.
  34731. Repeated warnings are buffered, counted and eventually printed
  34732. along with the number of repetitions. Call fz_flush_warnings
  34733. to force printing of the latest buffered warning and the
  34734. number of repetitions, for example to make sure that all
  34735. warnings are printed before exiting an application.
  34736. """
  34737. return _mupdf.fz_flush_warnings()
  34738. def fz_font_ascender(font):
  34739. r"""
  34740. Class-aware wrapper for `::fz_font_ascender()`.
  34741. Retrieve font ascender in ems.
  34742. """
  34743. return _mupdf.fz_font_ascender(font)
  34744. def fz_font_bbox(font):
  34745. r"""
  34746. Class-aware wrapper for `::fz_font_bbox()`.
  34747. Retrieve the font bbox.
  34748. font: The font to query.
  34749. Returns the font bbox by value; it is valid only if
  34750. fz_font_flags(font)->invalid_bbox is zero.
  34751. """
  34752. return _mupdf.fz_font_bbox(font)
  34753. def fz_font_descender(font):
  34754. r"""
  34755. Class-aware wrapper for `::fz_font_descender()`.
  34756. Retrieve font descender in ems.
  34757. """
  34758. return _mupdf.fz_font_descender(font)
  34759. def fz_font_digest(font, digest):
  34760. r"""
  34761. Class-aware wrapper for `::fz_font_digest()`.
  34762. Retrieve the MD5 digest for the font's data.
  34763. """
  34764. return _mupdf.fz_font_digest(font, digest)
  34765. def fz_font_ft_face(font):
  34766. r"""
  34767. Class-aware wrapper for `::fz_font_ft_face()`.
  34768. Retrieve the FT_Face handle
  34769. for the font.
  34770. font: The font to query
  34771. Returns the FT_Face handle for the font, or NULL
  34772. if not a freetype handled font. (Cast to void *
  34773. to avoid nasty header exposure).
  34774. """
  34775. return _mupdf.fz_font_ft_face(font)
  34776. def fz_font_is_bold(font):
  34777. r"""
  34778. Class-aware wrapper for `::fz_font_is_bold()`.
  34779. Query whether the font flags say that this font is bold.
  34780. """
  34781. return _mupdf.fz_font_is_bold(font)
  34782. def fz_font_is_italic(font):
  34783. r"""
  34784. Class-aware wrapper for `::fz_font_is_italic()`.
  34785. Query whether the font flags say that this font is italic.
  34786. """
  34787. return _mupdf.fz_font_is_italic(font)
  34788. def fz_font_is_monospaced(font):
  34789. r"""
  34790. Class-aware wrapper for `::fz_font_is_monospaced()`.
  34791. Query whether the font flags say that this font is monospaced.
  34792. """
  34793. return _mupdf.fz_font_is_monospaced(font)
  34794. def fz_font_is_serif(font):
  34795. r"""
  34796. Class-aware wrapper for `::fz_font_is_serif()`.
  34797. Query whether the font flags say that this font is serif.
  34798. """
  34799. return _mupdf.fz_font_is_serif(font)
  34800. def fz_font_name(font):
  34801. r"""
  34802. Class-aware wrapper for `::fz_font_name()`.
  34803. Retrieve a pointer to the name of the font.
  34804. font: The font to query.
  34805. Returns a pointer to an internal copy of the font name.
  34806. Will never be NULL, but may be the empty string.
  34807. """
  34808. return _mupdf.fz_font_name(font)
  34809. def fz_font_t3_procs(font):
  34810. r"""
  34811. Class-aware wrapper for `::fz_font_t3_procs()`.
  34812. Retrieve the Type3 procs
  34813. for a font.
  34814. font: The font to query
  34815. Returns the t3_procs pointer. Will be NULL for a
  34816. non type-3 font.
  34817. """
  34818. return _mupdf.fz_font_t3_procs(font)
  34819. def fz_format_double(fmt, value):
  34820. r"""
  34821. Class-aware wrapper for `::fz_format_double()`. Swig-friendly and typesafe way to do fz_snprintf(fmt, value). `fmt`
  34822. must end with one of 'efg' otherwise we throw an exception.
  34823. """
  34824. return _mupdf.fz_format_double(fmt, value)
  34825. def fz_format_link_uri(doc, dest):
  34826. r"""
  34827. Class-aware wrapper for `::fz_format_link_uri()`.
  34828. Format an internal link to a page number, location, and possible viewing parameters,
  34829. suitable for use with fz_create_link.
  34830. Returns a newly allocated string that the caller must free.
  34831. """
  34832. return _mupdf.fz_format_link_uri(doc, dest)
  34833. def fz_format_output_path(path, size, fmt, page):
  34834. r"""
  34835. Class-aware wrapper for `::fz_format_output_path()`.
  34836. create output file name using a template.
  34837. If the path contains %[0-9]*d, the first such pattern will be
  34838. replaced with the page number. If the template does not contain
  34839. such a pattern, the page number will be inserted before the
  34840. filename extension. If the template does not have a filename
  34841. extension, the page number will be added to the end.
  34842. """
  34843. return _mupdf.fz_format_output_path(path, size, fmt, page)
  34844. def fz_free(p):
  34845. r"""
  34846. Class-aware wrapper for `::fz_free()`.
  34847. Free a previously allocated block of memory.
  34848. fz_free(ctx, NULL) does nothing.
  34849. Never throws exceptions.
  34850. """
  34851. return _mupdf.fz_free(p)
  34852. def fz_free_aligned(p):
  34853. r"""
  34854. Class-aware wrapper for `::fz_free_aligned()`.
  34855. fz_free equivalent, for blocks allocated via fz_malloc_aligned.
  34856. """
  34857. return _mupdf.fz_free_aligned(p)
  34858. def fz_ft_lock():
  34859. r"""Class-aware wrapper for `::fz_ft_lock()`."""
  34860. return _mupdf.fz_ft_lock()
  34861. def fz_ft_lock_held():
  34862. r"""Class-aware wrapper for `::fz_ft_lock_held()`."""
  34863. return _mupdf.fz_ft_lock_held()
  34864. def fz_ft_unlock():
  34865. r"""Class-aware wrapper for `::fz_ft_unlock()`."""
  34866. return _mupdf.fz_ft_unlock()
  34867. def fz_function_size(func):
  34868. r"""Class-aware wrapper for `::fz_function_size()`."""
  34869. return _mupdf.fz_function_size(func)
  34870. def fz_gamma_pixmap(pix, gamma):
  34871. r"""
  34872. Class-aware wrapper for `::fz_gamma_pixmap()`.
  34873. Apply gamma correction to a pixmap. All components
  34874. of all pixels are modified (except alpha, which is unchanged).
  34875. gamma: The gamma value to apply; 1.0 for no change.
  34876. """
  34877. return _mupdf.fz_gamma_pixmap(pix, gamma)
  34878. def fz_generate_transition(tpix, opix, npix, time, trans):
  34879. r"""
  34880. Class-aware wrapper for `::fz_generate_transition()`.
  34881. Generate a frame of a transition.
  34882. tpix: Target pixmap
  34883. opix: Old pixmap
  34884. npix: New pixmap
  34885. time: Position within the transition (0 to 256)
  34886. trans: Transition details
  34887. Returns 1 if successfully generated a frame.
  34888. Note: Pixmaps must include alpha.
  34889. """
  34890. return _mupdf.fz_generate_transition(tpix, opix, npix, time, trans)
  34891. def fz_get_glyph_name(font, glyph, buf, size):
  34892. r"""
  34893. Class-aware wrapper for `::fz_get_glyph_name()`.
  34894. Find the name of a glyph
  34895. font: The font to look for the glyph in.
  34896. glyph: The glyph id to look for.
  34897. buf: Pointer to a buffer for the name to be inserted into.
  34898. size: The size of the buffer.
  34899. If a font contains a name table, then the name of the glyph
  34900. will be returned in the supplied buffer. Otherwise a name
  34901. is synthesised. The name will be truncated to fit in
  34902. the buffer.
  34903. """
  34904. return _mupdf.fz_get_glyph_name(font, glyph, buf, size)
  34905. def fz_get_glyph_name2(font, glyph):
  34906. r"""
  34907. Class-aware wrapper for `::fz_get_glyph_name2()`.
  34908. C++ alternative to fz_get_glyph_name() that returns information in a std::string.
  34909. """
  34910. return _mupdf.fz_get_glyph_name2(font, glyph)
  34911. def fz_get_pixmap_from_image(image, subarea, ctm, w, h):
  34912. r"""
  34913. Class-aware wrapper for `::fz_get_pixmap_from_image()`.
  34914. This function has out-params. Python/C# wrappers look like:
  34915. `fz_get_pixmap_from_image(::fz_image *image, const ::fz_irect *subarea, ::fz_matrix *ctm)` => `(fz_pixmap *, int w, int h)`
  34916. Called to get a handle to a pixmap from an image.
  34917. image: The image to retrieve a pixmap from.
  34918. subarea: The subarea of the image that we actually care about
  34919. (or NULL to indicate the whole image).
  34920. ctm: Optional, unless subarea is given. If given, then on
  34921. entry this is the transform that will be applied to the complete
  34922. image. It should be updated on exit to the transform to apply to
  34923. the given subarea of the image. This is used to calculate the
  34924. desired width/height for subsampling.
  34925. w: If non-NULL, a pointer to an int to be updated on exit to the
  34926. width (in pixels) that the scaled output will cover.
  34927. h: If non-NULL, a pointer to an int to be updated on exit to the
  34928. height (in pixels) that the scaled output will cover.
  34929. Returns a non NULL kept pixmap pointer. May throw exceptions.
  34930. """
  34931. return _mupdf.fz_get_pixmap_from_image(image, subarea, ctm, w, h)
  34932. def fz_get_unscaled_pixmap_from_image(image):
  34933. r"""
  34934. Class-aware wrapper for `::fz_get_unscaled_pixmap_from_image()`.
  34935. Calls fz_get_pixmap_from_image() with ctm, subarea, w and h all set to NULL.
  34936. """
  34937. return _mupdf.fz_get_unscaled_pixmap_from_image(image)
  34938. def fz_getopt(nargc, nargv, ostr):
  34939. r"""
  34940. Class-aware wrapper for `::fz_getopt()`.
  34941. This function has out-params. Python/C# wrappers look like:
  34942. `fz_getopt(int nargc, const char *ostr)` => `(int, char *nargv)`
  34943. Identical to fz_getopt_long, but with a NULL longopts field, signifying no long
  34944. options.
  34945. """
  34946. return _mupdf.fz_getopt(nargc, nargv, ostr)
  34947. def fz_getopt_long(nargc, nargv, ostr, longopts):
  34948. r"""
  34949. Class-aware wrapper for `::fz_getopt_long()`.
  34950. This function has out-params. Python/C# wrappers look like:
  34951. `fz_getopt_long(int nargc, const char *ostr, const ::fz_getopt_long_options *longopts)` => `(int, char *nargv)`
  34952. Simple functions/variables for use in tools.
  34953. ostr = option string. Comprises single letter options, followed by : if there
  34954. is an argument to the option.
  34955. longopts: NULL (indicating no long options), or a pointer to an array of
  34956. longoptions, terminated by an entry with option == NULL.
  34957. In the event of matching a single char option, this function will normally
  34958. return the char. The exception to this is when the option requires an
  34959. argument and none is supplied; in this case we return ':'.
  34960. In the event of matching a long option, this function returns 0, with fz_optlong
  34961. set to point to the matching option.
  34962. A long option entry may be followed with : to indicate there is an argument to the
  34963. option. If the need for an argument is specified in this way, and no argument is
  34964. given, an error will be displayed and argument processing will stop. If an argument
  34965. is given, and the long option record contains a non-null flag pointer, then the code
  34966. will decode the argument and fill in that flag pointer. Specifically,
  34967. case-insensitive matches to 'yes', 'no', 'true' and 'false' will cause a value of 0
  34968. or 1 as appropriate to be written; failing this the arg will be interpreted as a
  34969. decimal integer using atoi.
  34970. A long option entry may be followed by an list of options (e.g. myoption=foo|bar|baz)
  34971. and the option will be passed to fz_opt_from_list. The return value of that will be
  34972. placed in fz_optitem. If the return value of that function is -1, then an error will
  34973. be displayed and argument processing will stop.
  34974. In the event of reaching the end of the arg list or '--', this function returns EOF.
  34975. In the event of failing to match anything, an error is printed, and we return '?'.
  34976. If an argument is expected for the option, then fz_optarg will be returned pointing
  34977. at the start of the argument. Examples of supported argument formats: '-r500', '-r 500',
  34978. '--resolution 500', '--resolution=500'.
  34979. """
  34980. return _mupdf.fz_getopt_long(nargc, nargv, ostr, longopts)
  34981. def fz_glyph_bbox(glyph):
  34982. r"""
  34983. Class-aware wrapper for `::fz_glyph_bbox()`.
  34984. Return the bounding box of the glyph in pixels.
  34985. """
  34986. return _mupdf.fz_glyph_bbox(glyph)
  34987. def fz_glyph_bbox_no_ctx(src):
  34988. r"""Class-aware wrapper for `::fz_glyph_bbox_no_ctx()`."""
  34989. return _mupdf.fz_glyph_bbox_no_ctx(src)
  34990. def fz_glyph_cacheable(font, gid):
  34991. r"""
  34992. Class-aware wrapper for `::fz_glyph_cacheable()`.
  34993. Determine if a given glyph in a font
  34994. is cacheable. Certain glyphs in a type 3 font cannot safely
  34995. be cached, as their appearance depends on the enclosing
  34996. graphic state.
  34997. font: The font to look for the glyph in.
  34998. gif: The glyph to query.
  34999. Returns non-zero if cacheable, 0 if not.
  35000. """
  35001. return _mupdf.fz_glyph_cacheable(font, gid)
  35002. def fz_glyph_height(glyph):
  35003. r"""
  35004. Class-aware wrapper for `::fz_glyph_height()`.
  35005. Return the height of the glyph in pixels.
  35006. """
  35007. return _mupdf.fz_glyph_height(glyph)
  35008. def fz_glyph_name_from_unicode_sc(unicode):
  35009. r"""Class-aware wrapper for `::fz_glyph_name_from_unicode_sc()`."""
  35010. return _mupdf.fz_glyph_name_from_unicode_sc(unicode)
  35011. def fz_glyph_width(glyph):
  35012. r"""
  35013. Class-aware wrapper for `::fz_glyph_width()`.
  35014. Return the width of the glyph in pixels.
  35015. """
  35016. return _mupdf.fz_glyph_width(glyph)
  35017. def fz_graphics_aa_level():
  35018. r"""
  35019. Class-aware wrapper for `::fz_graphics_aa_level()`.
  35020. Get the number of bits of antialiasing we are
  35021. using for graphics. Between 0 and 8.
  35022. """
  35023. return _mupdf.fz_graphics_aa_level()
  35024. def fz_graphics_min_line_width():
  35025. r"""
  35026. Class-aware wrapper for `::fz_graphics_min_line_width()`.
  35027. Get the minimum line width to be
  35028. used for stroked lines.
  35029. min_line_width: The minimum line width to use (in pixels).
  35030. """
  35031. return _mupdf.fz_graphics_min_line_width()
  35032. def fz_gridfit_matrix(as_tiled, m):
  35033. r"""
  35034. Class-aware wrapper for `::fz_gridfit_matrix()`.
  35035. Grid fit a matrix.
  35036. as_tiled = 0 => adjust the matrix so that the image of the unit
  35037. square completely covers any pixel that was touched by the
  35038. image of the unit square under the original matrix.
  35039. as_tiled = 1 => adjust the matrix so that the corners of the
  35040. image of the unit square align with the closest integer corner
  35041. of the image of the unit square under the original matrix.
  35042. """
  35043. return _mupdf.fz_gridfit_matrix(as_tiled, m)
  35044. def fz_grisu(f, s, exp):
  35045. r"""
  35046. Class-aware wrapper for `::fz_grisu()`.
  35047. This function has out-params. Python/C# wrappers look like:
  35048. `fz_grisu(float f, char *s)` => `(int, int exp)`
  35049. """
  35050. return _mupdf.fz_grisu(f, s, exp)
  35051. def fz_grow_buffer(buf):
  35052. r"""
  35053. Class-aware wrapper for `::fz_grow_buffer()`.
  35054. Make some space within a buffer (i.e. ensure that
  35055. capacity > size).
  35056. """
  35057. return _mupdf.fz_grow_buffer(buf)
  35058. def fz_has_archive_entry(arch, name):
  35059. r"""
  35060. Class-aware wrapper for `::fz_has_archive_entry()`.
  35061. Check if entry by given name exists.
  35062. If named entry does not exist 0 will be returned, if it does
  35063. exist 1 is returned.
  35064. name: Entry name to look for, this must be an exact match to
  35065. the entry name in the archive.
  35066. """
  35067. return _mupdf.fz_has_archive_entry(arch, name)
  35068. def fz_has_option(opts, key, val):
  35069. r"""
  35070. Class-aware wrapper for `::fz_has_option()`.
  35071. This function has out-params. Python/C# wrappers look like:
  35072. `fz_has_option(const char *opts, const char *key)` => `(int, const char *val)`
  35073. Look for a given option (key) in the opts string. Return 1 if
  35074. it has it, and update *val to point to the value within opts.
  35075. """
  35076. return _mupdf.fz_has_option(opts, key, val)
  35077. def fz_has_permission(doc, p):
  35078. r"""
  35079. Class-aware wrapper for `::fz_has_permission()`.
  35080. Check permission flags on document.
  35081. """
  35082. return _mupdf.fz_has_permission(doc, p)
  35083. def fz_hash_filter(table, state, callback):
  35084. r"""
  35085. Class-aware wrapper for `::fz_hash_filter()`.
  35086. Iterate over the entries in a hash table, removing all the ones where callback returns true.
  35087. Does NOT free the value of the entry, so the caller is expected to take care of this.
  35088. """
  35089. return _mupdf.fz_hash_filter(table, state, callback)
  35090. def fz_hash_find(table, key):
  35091. r"""
  35092. Class-aware wrapper for `::fz_hash_find()`.
  35093. Search for a matching hash within the table, and return the
  35094. associated value.
  35095. """
  35096. return _mupdf.fz_hash_find(table, key)
  35097. def fz_hash_for_each(table, state, callback):
  35098. r"""
  35099. Class-aware wrapper for `::fz_hash_for_each()`.
  35100. Iterate over the entries in a hash table.
  35101. """
  35102. return _mupdf.fz_hash_for_each(table, state, callback)
  35103. def fz_hash_insert(table, key, val):
  35104. r"""
  35105. Class-aware wrapper for `::fz_hash_insert()`.
  35106. Insert a new key/value pair into the hash table.
  35107. If an existing entry with the same key is found, no change is
  35108. made to the hash table, and a pointer to the existing value is
  35109. returned.
  35110. If no existing entry with the same key is found, ownership of
  35111. val passes in, key is copied, and NULL is returned.
  35112. """
  35113. return _mupdf.fz_hash_insert(table, key, val)
  35114. def fz_hash_remove(table, key):
  35115. r"""
  35116. Class-aware wrapper for `::fz_hash_remove()`.
  35117. Remove the entry for a given key.
  35118. The value is NOT freed, so the caller is expected to take care
  35119. of this.
  35120. """
  35121. return _mupdf.fz_hash_remove(table, key)
  35122. def fz_hb_lock():
  35123. r"""
  35124. Class-aware wrapper for `::fz_hb_lock()`.
  35125. Lock against Harfbuzz being called
  35126. simultaneously in several threads. This reuses
  35127. FZ_LOCK_FREETYPE.
  35128. """
  35129. return _mupdf.fz_hb_lock()
  35130. def fz_hb_unlock():
  35131. r"""
  35132. Class-aware wrapper for `::fz_hb_unlock()`.
  35133. Unlock after a Harfbuzz call. This reuses
  35134. FZ_LOCK_FREETYPE.
  35135. """
  35136. return _mupdf.fz_hb_unlock()
  35137. def fz_highlight_selection(page, a, b, quads, max_quads):
  35138. r"""
  35139. Class-aware wrapper for `::fz_highlight_selection()`.
  35140. Return a list of quads to highlight lines inside the selection
  35141. points.
  35142. """
  35143. return _mupdf.fz_highlight_selection(page, a, b, quads, max_quads)
  35144. def fz_highlight_selection2(page, a, b, max_quads):
  35145. r"""
  35146. Class-aware wrapper for `::fz_highlight_selection2()`.
  35147. C++ alternative to fz_highlight_selection() that returns quads in a
  35148. std::vector.
  35149. """
  35150. return _mupdf.fz_highlight_selection2(page, a, b, max_quads)
  35151. def fz_ignore_error():
  35152. r"""Class-aware wrapper for `::fz_ignore_error()`."""
  35153. return _mupdf.fz_ignore_error()
  35154. def fz_ignore_text(dev, text, ctm):
  35155. r"""Class-aware wrapper for `::fz_ignore_text()`."""
  35156. return _mupdf.fz_ignore_text(dev, text, ctm)
  35157. def fz_image_orientation(image):
  35158. r"""
  35159. Class-aware wrapper for `::fz_image_orientation()`.
  35160. Request the natural orientation of an image.
  35161. This is for images (such as JPEG) that can contain internal
  35162. specifications of rotation/flips. This is ignored by all the
  35163. internal decode/rendering routines, but can be used by callers
  35164. (such as the image document handler) to respect such
  35165. specifications.
  35166. The values used by MuPDF are as follows, with the equivalent
  35167. Exif specifications given for information:
  35168. 0: Undefined
  35169. 1: 0 degree ccw rotation. (Exif = 1)
  35170. 2: 90 degree ccw rotation. (Exif = 8)
  35171. 3: 180 degree ccw rotation. (Exif = 3)
  35172. 4: 270 degree ccw rotation. (Exif = 6)
  35173. 5: flip on X. (Exif = 2)
  35174. 6: flip on X, then rotate ccw by 90 degrees. (Exif = 5)
  35175. 7: flip on X, then rotate ccw by 180 degrees. (Exif = 4)
  35176. 8: flip on X, then rotate ccw by 270 degrees. (Exif = 7)
  35177. """
  35178. return _mupdf.fz_image_orientation(image)
  35179. def fz_image_orientation_matrix(image):
  35180. r"""Class-aware wrapper for `::fz_image_orientation_matrix()`."""
  35181. return _mupdf.fz_image_orientation_matrix(image)
  35182. def fz_image_resolution(image, xres, yres):
  35183. r"""
  35184. Class-aware wrapper for `::fz_image_resolution()`.
  35185. This function has out-params. Python/C# wrappers look like:
  35186. `fz_image_resolution(::fz_image *image)` => `(int xres, int yres)`
  35187. Request the natural resolution
  35188. of an image.
  35189. xres, yres: Pointers to ints to be updated with the
  35190. natural resolution of an image (or a sensible default
  35191. if not encoded).
  35192. """
  35193. return _mupdf.fz_image_resolution(image, xres, yres)
  35194. def fz_image_size(im):
  35195. r"""
  35196. Class-aware wrapper for `::fz_image_size()`.
  35197. Return the size of the storage used by an image.
  35198. """
  35199. return _mupdf.fz_image_size(im)
  35200. def fz_image_type_name(type):
  35201. r"""
  35202. Class-aware wrapper for `::fz_image_type_name()`.
  35203. Map from FZ_IMAGE_* value to string.
  35204. The returned string is static and therefore must not be freed.
  35205. """
  35206. return _mupdf.fz_image_type_name(type)
  35207. def fz_include_point_in_rect(r, p):
  35208. r"""
  35209. Class-aware wrapper for `::fz_include_point_in_rect()`.
  35210. Expand a bbox to include a given point.
  35211. To create a rectangle that encompasses a sequence of points, the
  35212. rectangle must first be set to be the empty rectangle at one of
  35213. the points before including the others.
  35214. """
  35215. return _mupdf.fz_include_point_in_rect(r, p)
  35216. def fz_init_text_decoder(dec, encoding):
  35217. r"""Class-aware wrapper for `::fz_init_text_decoder()`."""
  35218. return _mupdf.fz_init_text_decoder(dec, encoding)
  35219. def fz_install_load_system_font_funcs(f, f_cjk, f_fallback):
  35220. r"""
  35221. Class-aware wrapper for `::fz_install_load_system_font_funcs()`.
  35222. Install functions to allow MuPDF to request fonts from the
  35223. system.
  35224. Only one set of hooks can be in use at a time.
  35225. """
  35226. return _mupdf.fz_install_load_system_font_funcs(f, f_cjk, f_fallback)
  35227. def fz_install_load_system_font_funcs2(args):
  35228. r"""
  35229. Class-aware wrapper for `::fz_install_load_system_font_funcs2()`.
  35230. Alternative to fz_install_load_system_font_funcs() that takes args in a
  35231. struct, to allow use from Python/C# via Swig Directors.
  35232. """
  35233. return _mupdf.fz_install_load_system_font_funcs2(args)
  35234. def fz_int2_heap_debug(heap):
  35235. r"""Class-aware wrapper for `::fz_int2_heap_debug()`."""
  35236. return _mupdf.fz_int2_heap_debug(heap)
  35237. def fz_int2_heap_dump(out, heap):
  35238. r"""Class-aware wrapper for `::fz_int2_heap_dump()`."""
  35239. return _mupdf.fz_int2_heap_dump(out, heap)
  35240. def fz_int2_heap_insert(heap, v):
  35241. r"""Class-aware wrapper for `::fz_int2_heap_insert()`."""
  35242. return _mupdf.fz_int2_heap_insert(heap, v)
  35243. def fz_int2_heap_sort(heap):
  35244. r"""Class-aware wrapper for `::fz_int2_heap_sort()`."""
  35245. return _mupdf.fz_int2_heap_sort(heap)
  35246. def fz_int2_heap_uniq(heap):
  35247. r"""Class-aware wrapper for `::fz_int2_heap_uniq()`."""
  35248. return _mupdf.fz_int2_heap_uniq(heap)
  35249. def fz_int_heap_debug(heap):
  35250. r"""Class-aware wrapper for `::fz_int_heap_debug()`."""
  35251. return _mupdf.fz_int_heap_debug(heap)
  35252. def fz_int_heap_dump(out, heap):
  35253. r"""Class-aware wrapper for `::fz_int_heap_dump()`."""
  35254. return _mupdf.fz_int_heap_dump(out, heap)
  35255. def fz_int_heap_insert(heap, v):
  35256. r"""Class-aware wrapper for `::fz_int_heap_insert()`."""
  35257. return _mupdf.fz_int_heap_insert(heap, v)
  35258. def fz_int_heap_sort(heap):
  35259. r"""Class-aware wrapper for `::fz_int_heap_sort()`."""
  35260. return _mupdf.fz_int_heap_sort(heap)
  35261. def fz_int_heap_uniq(heap):
  35262. r"""Class-aware wrapper for `::fz_int_heap_uniq()`."""
  35263. return _mupdf.fz_int_heap_uniq(heap)
  35264. def fz_intersect_irect(a, b):
  35265. r"""
  35266. Class-aware wrapper for `::fz_intersect_irect()`.
  35267. Compute intersection of two bounding boxes.
  35268. Similar to fz_intersect_rect but operates on two bounding
  35269. boxes instead of two rectangles.
  35270. """
  35271. return _mupdf.fz_intersect_irect(a, b)
  35272. def fz_intersect_rect(a, b):
  35273. r"""
  35274. Class-aware wrapper for `::fz_intersect_rect()`.
  35275. Compute intersection of two rectangles.
  35276. Given two rectangles, update the first to be the smallest
  35277. axis-aligned rectangle that covers the area covered by both
  35278. given rectangles. If either rectangle is empty then the
  35279. intersection is also empty. If either rectangle is infinite
  35280. then the intersection is simply the non-infinite rectangle.
  35281. Should both rectangles be infinite, then the intersection is
  35282. also infinite.
  35283. """
  35284. return _mupdf.fz_intersect_rect(a, b)
  35285. def fz_intptr_heap_debug(heap):
  35286. r"""Class-aware wrapper for `::fz_intptr_heap_debug()`."""
  35287. return _mupdf.fz_intptr_heap_debug(heap)
  35288. def fz_intptr_heap_dump(out, heap):
  35289. r"""Class-aware wrapper for `::fz_intptr_heap_dump()`."""
  35290. return _mupdf.fz_intptr_heap_dump(out, heap)
  35291. def fz_intptr_heap_insert(heap, v):
  35292. r"""Class-aware wrapper for `::fz_intptr_heap_insert()`."""
  35293. return _mupdf.fz_intptr_heap_insert(heap, v)
  35294. def fz_intptr_heap_sort(heap):
  35295. r"""Class-aware wrapper for `::fz_intptr_heap_sort()`."""
  35296. return _mupdf.fz_intptr_heap_sort(heap)
  35297. def fz_intptr_heap_uniq(heap):
  35298. r"""Class-aware wrapper for `::fz_intptr_heap_uniq()`."""
  35299. return _mupdf.fz_intptr_heap_uniq(heap)
  35300. def fz_invert_bitmap(bmp):
  35301. r"""
  35302. Class-aware wrapper for `::fz_invert_bitmap()`.
  35303. Invert bitmap.
  35304. Never throws exceptions.
  35305. """
  35306. return _mupdf.fz_invert_bitmap(bmp)
  35307. def fz_invert_matrix(matrix):
  35308. r"""
  35309. Class-aware wrapper for `::fz_invert_matrix()`.
  35310. Create an inverse matrix.
  35311. matrix: Matrix to invert. A degenerate matrix, where the
  35312. determinant is equal to zero, can not be inverted and the
  35313. original matrix is returned instead.
  35314. Returns inverse.
  35315. """
  35316. return _mupdf.fz_invert_matrix(matrix)
  35317. def fz_invert_pixmap(pix):
  35318. r"""
  35319. Class-aware wrapper for `::fz_invert_pixmap()`.
  35320. Invert all the pixels in a pixmap. All components (process and
  35321. spots) of all pixels are inverted (except alpha, which is
  35322. unchanged).
  35323. """
  35324. return _mupdf.fz_invert_pixmap(pix)
  35325. def fz_invert_pixmap_alpha(pix):
  35326. r"""
  35327. Class-aware wrapper for `::fz_invert_pixmap_alpha()`.
  35328. Invert the alpha of all the pixels in a pixmap.
  35329. """
  35330. return _mupdf.fz_invert_pixmap_alpha(pix)
  35331. def fz_invert_pixmap_luminance(pix):
  35332. r"""
  35333. Class-aware wrapper for `::fz_invert_pixmap_luminance()`.
  35334. Transform the pixels in a pixmap so that luminance of each
  35335. pixel is inverted, and the chrominance remains unchanged (as
  35336. much as accuracy allows).
  35337. All components of all pixels are inverted (except alpha, which
  35338. is unchanged). Only supports Grey and RGB bitmaps.
  35339. """
  35340. return _mupdf.fz_invert_pixmap_luminance(pix)
  35341. def fz_invert_pixmap_raw(pix):
  35342. r"""
  35343. Class-aware wrapper for `::fz_invert_pixmap_raw()`.
  35344. Invert all the pixels in a non-premultiplied pixmap in a
  35345. very naive manner.
  35346. """
  35347. return _mupdf.fz_invert_pixmap_raw(pix)
  35348. def fz_invert_pixmap_rect(image, rect):
  35349. r"""
  35350. Class-aware wrapper for `::fz_invert_pixmap_rect()`.
  35351. Invert all the pixels in a given rectangle of a (premultiplied)
  35352. pixmap. All components of all pixels in the rectangle are
  35353. inverted (except alpha, which is unchanged).
  35354. """
  35355. return _mupdf.fz_invert_pixmap_rect(image, rect)
  35356. def fz_irect_from_rect(rect):
  35357. r"""
  35358. Class-aware wrapper for `::fz_irect_from_rect()`.
  35359. Convert a rect into the minimal bounding box
  35360. that covers the rectangle.
  35361. Coordinates in a bounding box are integers, so rounding of the
  35362. rects coordinates takes place. The top left corner is rounded
  35363. upwards and left while the bottom right corner is rounded
  35364. downwards and to the right.
  35365. """
  35366. return _mupdf.fz_irect_from_rect(rect)
  35367. def fz_irect_height(r):
  35368. r"""
  35369. Class-aware wrapper for `::fz_irect_height()`.
  35370. Return the height of an irect. Invalid irects return 0.
  35371. """
  35372. return _mupdf.fz_irect_height(r)
  35373. def fz_irect_width(r):
  35374. r"""
  35375. Class-aware wrapper for `::fz_irect_width()`.
  35376. Return the width of an irect. Invalid irects return 0.
  35377. """
  35378. return _mupdf.fz_irect_width(r)
  35379. def fz_is_cfb_archive(file):
  35380. r"""
  35381. Class-aware wrapper for `::fz_is_cfb_archive()`.
  35382. Detect if stream object is a cfb archive.
  35383. Assumes that the stream object is seekable.
  35384. """
  35385. return _mupdf.fz_is_cfb_archive(file)
  35386. def fz_is_directory(path):
  35387. r"""
  35388. Class-aware wrapper for `::fz_is_directory()`.
  35389. Determine if a given path is a directory.
  35390. In the case of the path not existing, or having no access
  35391. we will return 0.
  35392. """
  35393. return _mupdf.fz_is_directory(path)
  35394. def fz_is_document_reflowable(doc):
  35395. r"""
  35396. Class-aware wrapper for `::fz_is_document_reflowable()`.
  35397. Is the document reflowable.
  35398. Returns 1 to indicate reflowable documents, otherwise 0.
  35399. """
  35400. return _mupdf.fz_is_document_reflowable(doc)
  35401. def fz_is_empty_irect(r):
  35402. r"""Class-aware wrapper for `::fz_is_empty_irect()`."""
  35403. return _mupdf.fz_is_empty_irect(r)
  35404. def fz_is_empty_quad(q):
  35405. r"""
  35406. Class-aware wrapper for `::fz_is_empty_quad()`.
  35407. Is a quad empty?
  35408. """
  35409. return _mupdf.fz_is_empty_quad(q)
  35410. def fz_is_empty_rect(r):
  35411. r"""
  35412. Class-aware wrapper for `::fz_is_empty_rect()`.
  35413. Check if rectangle is empty.
  35414. An empty rectangle is defined as one whose area is zero.
  35415. All invalid rectangles are empty.
  35416. """
  35417. return _mupdf.fz_is_empty_rect(r)
  35418. def fz_is_eof(stm):
  35419. r"""
  35420. Class-aware wrapper for `::fz_is_eof()`.
  35421. Query if the stream has reached EOF (during normal bytewise
  35422. reading).
  35423. See fz_is_eof_bits for the equivalent function for bitwise
  35424. reading.
  35425. """
  35426. return _mupdf.fz_is_eof(stm)
  35427. def fz_is_eof_bits(stm):
  35428. r"""
  35429. Class-aware wrapper for `::fz_is_eof_bits()`.
  35430. Query if the stream has reached EOF (during bitwise
  35431. reading).
  35432. See fz_is_eof for the equivalent function for bytewise
  35433. reading.
  35434. """
  35435. return _mupdf.fz_is_eof_bits(stm)
  35436. def fz_is_external_link(uri):
  35437. r"""
  35438. Class-aware wrapper for `::fz_is_external_link()`.
  35439. Query whether a link is external to a document (determined by
  35440. uri containing a ':', intended to match with '://' which
  35441. separates the scheme from the scheme specific parts in URIs).
  35442. """
  35443. return _mupdf.fz_is_external_link(uri)
  35444. def fz_is_identity(m):
  35445. r"""Class-aware wrapper for `::fz_is_identity()`."""
  35446. return _mupdf.fz_is_identity(m)
  35447. def fz_is_infinite_irect(r):
  35448. r"""
  35449. Class-aware wrapper for `::fz_is_infinite_irect()`.
  35450. Check if an integer rectangle
  35451. is infinite.
  35452. """
  35453. return _mupdf.fz_is_infinite_irect(r)
  35454. def fz_is_infinite_quad(q):
  35455. r"""
  35456. Class-aware wrapper for `::fz_is_infinite_quad()`.
  35457. Is a quad infinite?
  35458. """
  35459. return _mupdf.fz_is_infinite_quad(q)
  35460. def fz_is_infinite_rect(r):
  35461. r"""
  35462. Class-aware wrapper for `::fz_is_infinite_rect()`.
  35463. Check if rectangle is infinite.
  35464. """
  35465. return _mupdf.fz_is_infinite_rect(r)
  35466. def fz_is_irect_inside_irect(inner, outer):
  35467. r"""
  35468. Class-aware wrapper for `::fz_is_irect_inside_irect()`.
  35469. Inclusion test for irects.
  35470. rects are assumed to be both open or both closed.
  35471. No invalid rect can include any other rect.
  35472. No invalid rect can be included by any rect.
  35473. Empty (point) rects can include themselves.
  35474. Empty (line) rects can include many (subline) rects.
  35475. """
  35476. return _mupdf.fz_is_irect_inside_irect(inner, outer)
  35477. def fz_is_libarchive_archive(file):
  35478. r"""
  35479. Class-aware wrapper for `::fz_is_libarchive_archive()`.
  35480. Detect if stream object is an archive supported by libarchive.
  35481. Assumes that the stream object is seekable.
  35482. """
  35483. return _mupdf.fz_is_libarchive_archive(file)
  35484. def fz_is_lossy_image(image):
  35485. r"""Class-aware wrapper for `::fz_is_lossy_image()`."""
  35486. return _mupdf.fz_is_lossy_image(image)
  35487. def fz_is_page_range(s):
  35488. r"""
  35489. Class-aware wrapper for `::fz_is_page_range()`.
  35490. Check and parse string into page ranges:
  35491. ,?(-?+|N)(-(-?+|N))?/
  35492. """
  35493. return _mupdf.fz_is_page_range(s)
  35494. def fz_is_pixmap_monochrome(pixmap):
  35495. r"""
  35496. Class-aware wrapper for `::fz_is_pixmap_monochrome()`.
  35497. Check if the pixmap is a 1-channel image containing samples with
  35498. only values 0 and 255
  35499. """
  35500. return _mupdf.fz_is_pixmap_monochrome(pixmap)
  35501. def fz_is_point_inside_irect(x, y, r):
  35502. r"""
  35503. Class-aware wrapper for `::fz_is_point_inside_irect()`.
  35504. Inclusion test for irects. (Rect is assumed to be open, i.e.
  35505. top right corner is not included).
  35506. """
  35507. return _mupdf.fz_is_point_inside_irect(x, y, r)
  35508. def fz_is_point_inside_quad(p, q):
  35509. r"""
  35510. Class-aware wrapper for `::fz_is_point_inside_quad()`.
  35511. Inclusion test for quads.
  35512. """
  35513. return _mupdf.fz_is_point_inside_quad(p, q)
  35514. def fz_is_point_inside_rect(p, r):
  35515. r"""
  35516. Class-aware wrapper for `::fz_is_point_inside_rect()`.
  35517. Inclusion test for rects. (Rect is assumed to be open, i.e.
  35518. top right corner is not included).
  35519. """
  35520. return _mupdf.fz_is_point_inside_rect(p, r)
  35521. def fz_is_pow2(a):
  35522. r"""Class-aware wrapper for `::fz_is_pow2()`."""
  35523. return _mupdf.fz_is_pow2(a)
  35524. def fz_is_quad_inside_quad(needle, haystack):
  35525. r"""
  35526. Class-aware wrapper for `::fz_is_quad_inside_quad()`.
  35527. Inclusion test for quad in quad.
  35528. This may break down if quads are not 'well formed'.
  35529. """
  35530. return _mupdf.fz_is_quad_inside_quad(needle, haystack)
  35531. def fz_is_quad_intersecting_quad(a, b):
  35532. r"""
  35533. Class-aware wrapper for `::fz_is_quad_intersecting_quad()`.
  35534. Intersection test for quads.
  35535. This may break down if quads are not 'well formed'.
  35536. """
  35537. return _mupdf.fz_is_quad_intersecting_quad(a, b)
  35538. def fz_is_rect_inside_rect(inner, outer):
  35539. r"""
  35540. Class-aware wrapper for `::fz_is_rect_inside_rect()`.
  35541. Inclusion test for rects.
  35542. rects are assumed to be both open or both closed.
  35543. No invalid rect can include any other rect.
  35544. No invalid rect can be included by any rect.
  35545. Empty (point) rects can include themselves.
  35546. Empty (line) rects can include many (subline) rects.
  35547. """
  35548. return _mupdf.fz_is_rect_inside_rect(inner, outer)
  35549. def fz_is_rectilinear(m):
  35550. r"""
  35551. Class-aware wrapper for `::fz_is_rectilinear()`.
  35552. Check if a transformation is rectilinear.
  35553. Rectilinear means that no shearing is present and that any
  35554. rotations present are a multiple of 90 degrees. Usually this
  35555. is used to make sure that axis-aligned rectangles before the
  35556. transformation are still axis-aligned rectangles afterwards.
  35557. """
  35558. return _mupdf.fz_is_rectilinear(m)
  35559. def fz_is_tar_archive(file):
  35560. r"""
  35561. Class-aware wrapper for `::fz_is_tar_archive()`.
  35562. Detect if stream object is a tar archive.
  35563. Assumes that the stream object is seekable.
  35564. """
  35565. return _mupdf.fz_is_tar_archive(file)
  35566. def fz_is_valid_blend_colorspace(cs):
  35567. r"""
  35568. Class-aware wrapper for `::fz_is_valid_blend_colorspace()`.
  35569. Check to see that a colorspace is appropriate to be used as
  35570. a blending space (i.e. only grey, rgb or cmyk).
  35571. """
  35572. return _mupdf.fz_is_valid_blend_colorspace(cs)
  35573. def fz_is_valid_irect(r):
  35574. r"""
  35575. Class-aware wrapper for `::fz_is_valid_irect()`.
  35576. Check if an integer rectangle is valid.
  35577. """
  35578. return _mupdf.fz_is_valid_irect(r)
  35579. def fz_is_valid_quad(q):
  35580. r"""
  35581. Class-aware wrapper for `::fz_is_valid_quad()`.
  35582. Is a quad valid?
  35583. """
  35584. return _mupdf.fz_is_valid_quad(q)
  35585. def fz_is_valid_rect(r):
  35586. r"""
  35587. Class-aware wrapper for `::fz_is_valid_rect()`.
  35588. Check if rectangle is valid.
  35589. """
  35590. return _mupdf.fz_is_valid_rect(r)
  35591. def fz_is_valid_xml_char(c):
  35592. r"""Class-aware wrapper for `::fz_is_valid_xml_char()`."""
  35593. return _mupdf.fz_is_valid_xml_char(c)
  35594. def fz_is_valid_xml_string(s):
  35595. r"""Class-aware wrapper for `::fz_is_valid_xml_string()`."""
  35596. return _mupdf.fz_is_valid_xml_string(s)
  35597. def fz_is_zip_archive(file):
  35598. r"""
  35599. Class-aware wrapper for `::fz_is_zip_archive()`.
  35600. Detect if stream object is a zip archive.
  35601. Assumes that the stream object is seekable.
  35602. """
  35603. return _mupdf.fz_is_zip_archive(file)
  35604. def fz_iso8859_1_from_unicode(u):
  35605. r"""Class-aware wrapper for `::fz_iso8859_1_from_unicode()`."""
  35606. return _mupdf.fz_iso8859_1_from_unicode(u)
  35607. def fz_iso8859_7_from_unicode(u):
  35608. r"""Class-aware wrapper for `::fz_iso8859_7_from_unicode()`."""
  35609. return _mupdf.fz_iso8859_7_from_unicode(u)
  35610. def fz_jbig2_globals_data(globals):
  35611. r"""
  35612. Class-aware wrapper for `::fz_jbig2_globals_data()`.
  35613. Return buffer containing jbig2 globals data stream.
  35614. """
  35615. return _mupdf.fz_jbig2_globals_data(globals)
  35616. def fz_json_array_length(array):
  35617. r"""Class-aware wrapper for `::fz_json_array_length()`."""
  35618. return _mupdf.fz_json_array_length(array)
  35619. def fz_json_array_push(pool, array, item):
  35620. r"""Class-aware wrapper for `::fz_json_array_push()`."""
  35621. return _mupdf.fz_json_array_push(pool, array, item)
  35622. def fz_json_is_array(json):
  35623. r"""Class-aware wrapper for `::fz_json_is_array()`."""
  35624. return _mupdf.fz_json_is_array(json)
  35625. def fz_json_is_boolean(json):
  35626. r"""Class-aware wrapper for `::fz_json_is_boolean()`."""
  35627. return _mupdf.fz_json_is_boolean(json)
  35628. def fz_json_is_null(json):
  35629. r"""Class-aware wrapper for `::fz_json_is_null()`."""
  35630. return _mupdf.fz_json_is_null(json)
  35631. def fz_json_is_number(json):
  35632. r"""Class-aware wrapper for `::fz_json_is_number()`."""
  35633. return _mupdf.fz_json_is_number(json)
  35634. def fz_json_is_object(json):
  35635. r"""Class-aware wrapper for `::fz_json_is_object()`."""
  35636. return _mupdf.fz_json_is_object(json)
  35637. def fz_json_is_string(json):
  35638. r"""Class-aware wrapper for `::fz_json_is_string()`."""
  35639. return _mupdf.fz_json_is_string(json)
  35640. def fz_json_object_set(pool, object, key, item):
  35641. r"""Class-aware wrapper for `::fz_json_object_set()`."""
  35642. return _mupdf.fz_json_object_set(pool, object, key, item)
  35643. def fz_json_to_boolean(json):
  35644. r"""Class-aware wrapper for `::fz_json_to_boolean()`."""
  35645. return _mupdf.fz_json_to_boolean(json)
  35646. def fz_json_to_number(json):
  35647. r"""Class-aware wrapper for `::fz_json_to_number()`."""
  35648. return _mupdf.fz_json_to_number(json)
  35649. def fz_json_to_string(json):
  35650. r"""Class-aware wrapper for `::fz_json_to_string()`."""
  35651. return _mupdf.fz_json_to_string(json)
  35652. def fz_koi8u_from_unicode(u):
  35653. r"""Class-aware wrapper for `::fz_koi8u_from_unicode()`."""
  35654. return _mupdf.fz_koi8u_from_unicode(u)
  35655. def fz_last_page(doc):
  35656. r"""
  35657. Class-aware wrapper for `::fz_last_page()`.
  35658. Function to get the location for the last page in the document.
  35659. Using this can be far more efficient in some cases than calling
  35660. fz_count_pages and using the page number.
  35661. """
  35662. return _mupdf.fz_last_page(doc)
  35663. def fz_layout_document(doc, w, h, em):
  35664. r"""
  35665. Class-aware wrapper for `::fz_layout_document()`.
  35666. Layout reflowable document types.
  35667. w, h: Page size in points.
  35668. em: Default font size in points.
  35669. """
  35670. return _mupdf.fz_layout_document(doc, w, h, em)
  35671. def fz_linecap_from_string(s):
  35672. r"""Class-aware wrapper for `::fz_linecap_from_string()`."""
  35673. return _mupdf.fz_linecap_from_string(s)
  35674. def fz_linejoin_from_string(s):
  35675. r"""Class-aware wrapper for `::fz_linejoin_from_string()`."""
  35676. return _mupdf.fz_linejoin_from_string(s)
  35677. def fz_lineto(path, x, y):
  35678. r"""
  35679. Class-aware wrapper for `::fz_lineto()`.
  35680. Append a 'lineto' command to an open path.
  35681. path: The path to modify.
  35682. x, y: The coordinate to line to.
  35683. Throws exceptions on failure to allocate, or attempting to
  35684. modify a packed path.
  35685. """
  35686. return _mupdf.fz_lineto(path, x, y)
  35687. def fz_list_archive_entry(arch, idx):
  35688. r"""
  35689. Class-aware wrapper for `::fz_list_archive_entry()`.
  35690. Get listed name of entry position idx.
  35691. idx: Must be a value >= 0 < return value from
  35692. fz_count_archive_entries. If not in range NULL will be
  35693. returned.
  35694. May throw an exception if this type of archive cannot list the
  35695. entries (such as a directory).
  35696. """
  35697. return _mupdf.fz_list_archive_entry(arch, idx)
  35698. def fz_load_bmp_subimage(buf, len, subimage):
  35699. r"""Class-aware wrapper for `::fz_load_bmp_subimage()`."""
  35700. return _mupdf.fz_load_bmp_subimage(buf, len, subimage)
  35701. def fz_load_bmp_subimage_count(buf, len):
  35702. r"""Class-aware wrapper for `::fz_load_bmp_subimage_count()`."""
  35703. return _mupdf.fz_load_bmp_subimage_count(buf, len)
  35704. def fz_load_chapter_page(doc, chapter, page):
  35705. r"""
  35706. Class-aware wrapper for `::fz_load_chapter_page()`.
  35707. Load a page.
  35708. After fz_load_page is it possible to retrieve the size of the
  35709. page using fz_bound_page, or to render the page using
  35710. fz_run_page_*. Free the page by calling fz_drop_page.
  35711. chapter: chapter number, 0 is the first chapter of the document.
  35712. number: page number, 0 is the first page of the chapter.
  35713. """
  35714. return _mupdf.fz_load_chapter_page(doc, chapter, page)
  35715. def fz_load_fallback_font(script, language, serif, bold, italic):
  35716. r"""
  35717. Class-aware wrapper for `::fz_load_fallback_font()`.
  35718. Try to load a fallback font for the
  35719. given combination of font attributes. Whether a font is
  35720. present or not will depend on the configuration in which
  35721. MuPDF is built.
  35722. script: The script desired (e.g. UCDN_SCRIPT_KATAKANA).
  35723. language: The language desired (e.g. FZ_LANG_ja).
  35724. serif: 1 if serif desired, 0 otherwise.
  35725. bold: 1 if bold desired, 0 otherwise.
  35726. italic: 1 if italic desired, 0 otherwise.
  35727. Returns a new font handle, or NULL if not available.
  35728. """
  35729. return _mupdf.fz_load_fallback_font(script, language, serif, bold, italic)
  35730. def fz_load_jbig2_globals(buf):
  35731. r"""
  35732. Class-aware wrapper for `::fz_load_jbig2_globals()`.
  35733. Create a jbig2 globals record from a buffer.
  35734. Immutable once created.
  35735. """
  35736. return _mupdf.fz_load_jbig2_globals(buf)
  35737. def fz_load_jbig2_subimage(buf, len, subimage):
  35738. r"""Class-aware wrapper for `::fz_load_jbig2_subimage()`."""
  35739. return _mupdf.fz_load_jbig2_subimage(buf, len, subimage)
  35740. def fz_load_jbig2_subimage_count(buf, len):
  35741. r"""Class-aware wrapper for `::fz_load_jbig2_subimage_count()`."""
  35742. return _mupdf.fz_load_jbig2_subimage_count(buf, len)
  35743. def fz_load_jpx(data, size, cs):
  35744. r"""
  35745. Class-aware wrapper for `::fz_load_jpx()`.
  35746. Exposed for PDF.
  35747. """
  35748. return _mupdf.fz_load_jpx(data, size, cs)
  35749. def fz_load_links(page):
  35750. r"""
  35751. Class-aware wrapper for `::fz_load_links()`.
  35752. Load the list of links for a page.
  35753. Returns a linked list of all the links on the page, each with
  35754. its clickable region and link destination. Each link is
  35755. reference counted so drop and free the list of links by
  35756. calling fz_drop_link on the pointer return from fz_load_links.
  35757. page: Page obtained from fz_load_page.
  35758. """
  35759. return _mupdf.fz_load_links(page)
  35760. def fz_load_outline(doc):
  35761. r"""
  35762. Class-aware wrapper for `::fz_load_outline()`.
  35763. Load the hierarchical document outline.
  35764. Should be freed by fz_drop_outline.
  35765. """
  35766. return _mupdf.fz_load_outline(doc)
  35767. def fz_load_outline_from_iterator(iter):
  35768. r"""
  35769. Class-aware wrapper for `::fz_load_outline_from_iterator()`.
  35770. Routine to implement the old Structure based API from an iterator.
  35771. """
  35772. return _mupdf.fz_load_outline_from_iterator(iter)
  35773. def fz_load_page(doc, number):
  35774. r"""
  35775. Class-aware wrapper for `::fz_load_page()`.
  35776. Load a given page number from a document. This may be much less
  35777. efficient than loading by location (chapter+page) for some
  35778. document types.
  35779. """
  35780. return _mupdf.fz_load_page(doc, number)
  35781. def fz_load_pnm_subimage(buf, len, subimage):
  35782. r"""Class-aware wrapper for `::fz_load_pnm_subimage()`."""
  35783. return _mupdf.fz_load_pnm_subimage(buf, len, subimage)
  35784. def fz_load_pnm_subimage_count(buf, len):
  35785. r"""Class-aware wrapper for `::fz_load_pnm_subimage_count()`."""
  35786. return _mupdf.fz_load_pnm_subimage_count(buf, len)
  35787. def fz_load_system_cjk_font(name, ordering, serif):
  35788. r"""
  35789. Class-aware wrapper for `::fz_load_system_cjk_font()`.
  35790. Attempt to load a given font from
  35791. the system.
  35792. name: The name of the desired font.
  35793. ordering: The ordering to load the font from (e.g. FZ_ADOBE_KOREA)
  35794. serif: 1 if serif desired, 0 otherwise.
  35795. Returns a new font handle, or NULL if no matching font was found
  35796. (or on error).
  35797. """
  35798. return _mupdf.fz_load_system_cjk_font(name, ordering, serif)
  35799. def fz_load_system_font(name, bold, italic, needs_exact_metrics):
  35800. r"""
  35801. Class-aware wrapper for `::fz_load_system_font()`.
  35802. Attempt to load a given font from the system.
  35803. name: The name of the desired font.
  35804. bold: 1 if bold desired, 0 otherwise.
  35805. italic: 1 if italic desired, 0 otherwise.
  35806. needs_exact_metrics: 1 if an exact metrical match is required,
  35807. 0 otherwise.
  35808. Returns a new font handle, or NULL if no matching font was found
  35809. (or on error).
  35810. """
  35811. return _mupdf.fz_load_system_font(name, bold, italic, needs_exact_metrics)
  35812. def fz_load_tiff_subimage(buf, len, subimage):
  35813. r"""Class-aware wrapper for `::fz_load_tiff_subimage()`."""
  35814. return _mupdf.fz_load_tiff_subimage(buf, len, subimage)
  35815. def fz_load_tiff_subimage_count(buf, len):
  35816. r"""
  35817. Class-aware wrapper for `::fz_load_tiff_subimage_count()`.
  35818. Exposed for CBZ.
  35819. """
  35820. return _mupdf.fz_load_tiff_subimage_count(buf, len)
  35821. def fz_load_user_css(filename):
  35822. r"""
  35823. Class-aware wrapper for `::fz_load_user_css()`.
  35824. Set the user stylesheet by loading the source from a file.
  35825. If the file is missing, do nothing.
  35826. """
  35827. return _mupdf.fz_load_user_css(filename)
  35828. def fz_location_from_page_number(doc, number):
  35829. r"""
  35830. Class-aware wrapper for `::fz_location_from_page_number()`.
  35831. Converts from page number to chapter+page. This may cause many
  35832. chapters to be laid out in order to calculate the number of
  35833. pages within those chapters.
  35834. """
  35835. return _mupdf.fz_location_from_page_number(doc, number)
  35836. def fz_lock(lock):
  35837. r"""
  35838. Class-aware wrapper for `::fz_lock()`.
  35839. Lock one of the user supplied mutexes.
  35840. """
  35841. return _mupdf.fz_lock(lock)
  35842. def fz_log_error(str):
  35843. r"""
  35844. Class-aware wrapper for `::fz_log_error()`.
  35845. Log a (preformatted) string to the registered
  35846. error stream (stderr by default).
  35847. """
  35848. return _mupdf.fz_log_error(str)
  35849. def fz_lookup_base14_font(name, len):
  35850. r"""
  35851. Class-aware wrapper for `::fz_lookup_base14_font()`.
  35852. This function has out-params. Python/C# wrappers look like:
  35853. `fz_lookup_base14_font(const char *name)` => `(const unsigned char *, int len)`
  35854. Search the builtin base14 fonts for a match.
  35855. Whether a given font is present or not will depend on the
  35856. configuration in which MuPDF is built.
  35857. name: The name of the font desired.
  35858. len: Pointer to a place to receive the length of the discovered
  35859. font buffer.
  35860. Returns a pointer to the font file data, or NULL if not present.
  35861. """
  35862. return _mupdf.fz_lookup_base14_font(name, len)
  35863. def fz_lookup_blendmode(name):
  35864. r"""
  35865. Class-aware wrapper for `::fz_lookup_blendmode()`.
  35866. Map from (case sensitive) blend mode string to enumeration.
  35867. """
  35868. return _mupdf.fz_lookup_blendmode(name)
  35869. def fz_lookup_bookmark(doc, mark):
  35870. r"""
  35871. Class-aware wrapper for `::fz_lookup_bookmark()`.
  35872. Find a bookmark and return its page number.
  35873. """
  35874. return _mupdf.fz_lookup_bookmark(doc, mark)
  35875. def fz_lookup_builtin_font(name, bold, italic, len):
  35876. r"""
  35877. Class-aware wrapper for `::fz_lookup_builtin_font()`.
  35878. This function has out-params. Python/C# wrappers look like:
  35879. `fz_lookup_builtin_font(const char *name, int bold, int italic)` => `(const unsigned char *, int len)`
  35880. Search the builtin fonts for a match.
  35881. Whether a given font is present or not will depend on the
  35882. configuration in which MuPDF is built.
  35883. name: The name of the font desired.
  35884. bold: 1 if bold desired, 0 otherwise.
  35885. italic: 1 if italic desired, 0 otherwise.
  35886. len: Pointer to a place to receive the length of the discovered
  35887. font buffer.
  35888. Returns a pointer to the font file data, or NULL if not present.
  35889. """
  35890. return _mupdf.fz_lookup_builtin_font(name, bold, italic, len)
  35891. def fz_lookup_cjk_font(ordering, len, index):
  35892. r"""
  35893. Class-aware wrapper for `::fz_lookup_cjk_font()`.
  35894. This function has out-params. Python/C# wrappers look like:
  35895. `fz_lookup_cjk_font(int ordering)` => `(const unsigned char *, int len, int index)`
  35896. Search the builtin cjk fonts for a match.
  35897. Whether a font is present or not will depend on the
  35898. configuration in which MuPDF is built.
  35899. ordering: The desired ordering of the font (e.g. FZ_ADOBE_KOREA).
  35900. len: Pointer to a place to receive the length of the discovered
  35901. font buffer.
  35902. Returns a pointer to the font file data, or NULL if not present.
  35903. """
  35904. return _mupdf.fz_lookup_cjk_font(ordering, len, index)
  35905. def fz_lookup_cjk_font_by_language(lang, len, subfont):
  35906. r"""
  35907. Class-aware wrapper for `::fz_lookup_cjk_font_by_language()`.
  35908. This function has out-params. Python/C# wrappers look like:
  35909. `fz_lookup_cjk_font_by_language(const char *lang)` => `(const unsigned char *, int len, int subfont)`
  35910. Search the builtin cjk fonts for a match for a given language.
  35911. Whether a font is present or not will depend on the
  35912. configuration in which MuPDF is built.
  35913. lang: Pointer to a (case sensitive) language string (e.g.
  35914. "ja", "ko", "zh-Hant" etc).
  35915. len: Pointer to a place to receive the length of the discovered
  35916. font buffer.
  35917. subfont: Pointer to a place to store the subfont index of the
  35918. discovered font.
  35919. Returns a pointer to the font file data, or NULL if not present.
  35920. """
  35921. return _mupdf.fz_lookup_cjk_font_by_language(lang, len, subfont)
  35922. def fz_lookup_cjk_ordering_by_language(name):
  35923. r"""
  35924. Class-aware wrapper for `::fz_lookup_cjk_ordering_by_language()`.
  35925. Return the matching FZ_ADOBE_* ordering
  35926. for the given language tag, such as "zh-Hant", "zh-Hans", "ja", or "ko".
  35927. """
  35928. return _mupdf.fz_lookup_cjk_ordering_by_language(name)
  35929. def fz_lookup_image_type(type):
  35930. r"""
  35931. Class-aware wrapper for `::fz_lookup_image_type()`.
  35932. Map from (case sensitive) image type string to FZ_IMAGE_*
  35933. type value.
  35934. """
  35935. return _mupdf.fz_lookup_image_type(type)
  35936. def fz_lookup_metadata(doc, key, buf, size):
  35937. r"""
  35938. Class-aware wrapper for `::fz_lookup_metadata()`.
  35939. Retrieve document meta data strings.
  35940. doc: The document to query.
  35941. key: Which meta data key to retrieve...
  35942. Basic information:
  35943. 'format' -- Document format and version.
  35944. 'encryption' -- Description of the encryption used.
  35945. From the document information dictionary:
  35946. 'info:Title'
  35947. 'info:Author'
  35948. 'info:Subject'
  35949. 'info:Keywords'
  35950. 'info:Creator'
  35951. 'info:Producer'
  35952. 'info:CreationDate'
  35953. 'info:ModDate'
  35954. buf: The buffer to hold the results (a nul-terminated UTF-8
  35955. string).
  35956. size: Size of 'buf'.
  35957. Returns the number of bytes need to store the string plus terminator
  35958. (will be larger than 'size' if the output was truncated), or -1 if the
  35959. key is not recognized or found.
  35960. """
  35961. return _mupdf.fz_lookup_metadata(doc, key, buf, size)
  35962. def fz_lookup_metadata2(doc, key):
  35963. r"""
  35964. Class-aware wrapper for `::fz_lookup_metadata2()`.
  35965. C++ alternative to `fz_lookup_metadata()` that returns a `std::string`
  35966. or calls `fz_throw()` if not found.
  35967. """
  35968. return _mupdf.fz_lookup_metadata2(doc, key)
  35969. def fz_lookup_noto_boxes_font(len):
  35970. r"""
  35971. Class-aware wrapper for `::fz_lookup_noto_boxes_font()`.
  35972. This function has out-params. Python/C# wrappers look like:
  35973. `fz_lookup_noto_boxes_font()` => `(const unsigned char *, int len)`
  35974. """
  35975. return _mupdf.fz_lookup_noto_boxes_font(len)
  35976. def fz_lookup_noto_emoji_font(len):
  35977. r"""
  35978. Class-aware wrapper for `::fz_lookup_noto_emoji_font()`.
  35979. This function has out-params. Python/C# wrappers look like:
  35980. `fz_lookup_noto_emoji_font()` => `(const unsigned char *, int len)`
  35981. """
  35982. return _mupdf.fz_lookup_noto_emoji_font(len)
  35983. def fz_lookup_noto_font(script, lang, len, subfont):
  35984. r"""
  35985. Class-aware wrapper for `::fz_lookup_noto_font()`.
  35986. This function has out-params. Python/C# wrappers look like:
  35987. `fz_lookup_noto_font(int script, int lang)` => `(const unsigned char *, int len, int subfont)`
  35988. Search the builtin noto fonts for a match.
  35989. Whether a font is present or not will depend on the
  35990. configuration in which MuPDF is built.
  35991. script: The script desired (e.g. UCDN_SCRIPT_KATAKANA).
  35992. lang: The language desired (e.g. FZ_LANG_ja).
  35993. len: Pointer to a place to receive the length of the discovered
  35994. font buffer.
  35995. Returns a pointer to the font file data, or NULL if not present.
  35996. """
  35997. return _mupdf.fz_lookup_noto_font(script, lang, len, subfont)
  35998. def fz_lookup_noto_math_font(len):
  35999. r"""
  36000. Class-aware wrapper for `::fz_lookup_noto_math_font()`.
  36001. This function has out-params. Python/C# wrappers look like:
  36002. `fz_lookup_noto_math_font()` => `(const unsigned char *, int len)`
  36003. Search the builtin noto fonts specific symbol fonts.
  36004. Whether a font is present or not will depend on the
  36005. configuration in which MuPDF is built.
  36006. """
  36007. return _mupdf.fz_lookup_noto_math_font(len)
  36008. def fz_lookup_noto_music_font(len):
  36009. r"""
  36010. Class-aware wrapper for `::fz_lookup_noto_music_font()`.
  36011. This function has out-params. Python/C# wrappers look like:
  36012. `fz_lookup_noto_music_font()` => `(const unsigned char *, int len)`
  36013. """
  36014. return _mupdf.fz_lookup_noto_music_font(len)
  36015. def fz_lookup_noto_stem_from_script(script, language):
  36016. r"""
  36017. Class-aware wrapper for `::fz_lookup_noto_stem_from_script()`.
  36018. Look up the Noto font file name for a given script.
  36019. From the returned font stem, you can look for Noto fonts on the system in the form:
  36020. Noto(Sans|Serif)${STEM}-Regular.(otf|ttf)
  36021. """
  36022. return _mupdf.fz_lookup_noto_stem_from_script(script, language)
  36023. def fz_lookup_noto_symbol1_font(len):
  36024. r"""
  36025. Class-aware wrapper for `::fz_lookup_noto_symbol1_font()`.
  36026. This function has out-params. Python/C# wrappers look like:
  36027. `fz_lookup_noto_symbol1_font()` => `(const unsigned char *, int len)`
  36028. """
  36029. return _mupdf.fz_lookup_noto_symbol1_font(len)
  36030. def fz_lookup_noto_symbol2_font(len):
  36031. r"""
  36032. Class-aware wrapper for `::fz_lookup_noto_symbol2_font()`.
  36033. This function has out-params. Python/C# wrappers look like:
  36034. `fz_lookup_noto_symbol2_font()` => `(const unsigned char *, int len)`
  36035. """
  36036. return _mupdf.fz_lookup_noto_symbol2_font(len)
  36037. def fz_lookup_rendering_intent(name):
  36038. r"""
  36039. Class-aware wrapper for `::fz_lookup_rendering_intent()`.
  36040. Map from (case sensitive) rendering intent string to enumeration
  36041. value.
  36042. """
  36043. return _mupdf.fz_lookup_rendering_intent(name)
  36044. def fz_lookup_script_name(script, language):
  36045. r"""Class-aware wrapper for `::fz_lookup_script_name()`."""
  36046. return _mupdf.fz_lookup_script_name(script, language)
  36047. def fz_make_bookmark(doc, loc):
  36048. r"""
  36049. Class-aware wrapper for `::fz_make_bookmark()`.
  36050. Create a bookmark for the given page, which can be used to find
  36051. the same location after the document has been laid out with
  36052. different parameters.
  36053. """
  36054. return _mupdf.fz_make_bookmark(doc, loc)
  36055. def fz_make_irect(x0, y0, x1, y1):
  36056. r"""Class-aware wrapper for `::fz_make_irect()`."""
  36057. return _mupdf.fz_make_irect(x0, y0, x1, y1)
  36058. def fz_make_location(chapter, page):
  36059. r"""
  36060. Class-aware wrapper for `::fz_make_location()`.
  36061. Simple constructor for fz_locations.
  36062. """
  36063. return _mupdf.fz_make_location(chapter, page)
  36064. def fz_make_matrix(a, b, c, d, e, f):
  36065. r"""Class-aware wrapper for `::fz_make_matrix()`."""
  36066. return _mupdf.fz_make_matrix(a, b, c, d, e, f)
  36067. def fz_make_point(x, y):
  36068. r"""Class-aware wrapper for `::fz_make_point()`."""
  36069. return _mupdf.fz_make_point(x, y)
  36070. def fz_make_quad(ul_x, ul_y, ur_x, ur_y, ll_x, ll_y, lr_x, lr_y):
  36071. r"""
  36072. Class-aware wrapper for `::fz_make_quad()`.
  36073. Inline convenience construction function.
  36074. """
  36075. return _mupdf.fz_make_quad(ul_x, ul_y, ur_x, ur_y, ll_x, ll_y, lr_x, lr_y)
  36076. def fz_make_rect(x0, y0, x1, y1):
  36077. r"""Class-aware wrapper for `::fz_make_rect()`."""
  36078. return _mupdf.fz_make_rect(x0, y0, x1, y1)
  36079. def fz_malloc(size):
  36080. r"""
  36081. Class-aware wrapper for `::fz_malloc()`.
  36082. Allocate uninitialized memory of a given size.
  36083. Does NOT clear the memory!
  36084. May return NULL for size = 0.
  36085. Throws exception in the event of failure to allocate.
  36086. """
  36087. return _mupdf.fz_malloc(size)
  36088. def fz_malloc_aligned(size, align):
  36089. r"""
  36090. Class-aware wrapper for `::fz_malloc_aligned()`.
  36091. fz_malloc equivalent, except that the block is guaranteed aligned.
  36092. Block must be freed later using fz_free_aligned.
  36093. """
  36094. return _mupdf.fz_malloc_aligned(size, align)
  36095. def fz_malloc_no_throw(size):
  36096. r"""
  36097. Class-aware wrapper for `::fz_malloc_no_throw()`.
  36098. fz_malloc equivalent that returns NULL rather than throwing
  36099. exceptions.
  36100. """
  36101. return _mupdf.fz_malloc_no_throw(size)
  36102. def fz_matrix_expansion(m):
  36103. r"""
  36104. Class-aware wrapper for `::fz_matrix_expansion()`.
  36105. Calculate average scaling factor of matrix.
  36106. """
  36107. return _mupdf.fz_matrix_expansion(m)
  36108. def fz_matrix_max_expansion(m):
  36109. r"""
  36110. Class-aware wrapper for `::fz_matrix_max_expansion()`.
  36111. Find the largest expansion performed by this matrix.
  36112. (i.e. max(abs(m.a),abs(m.b),abs(m.c),abs(m.d))
  36113. """
  36114. return _mupdf.fz_matrix_max_expansion(m)
  36115. def fz_max(a, b):
  36116. r"""Class-aware wrapper for `::fz_max()`."""
  36117. return _mupdf.fz_max(a, b)
  36118. def fz_maxi(a, b):
  36119. r"""Class-aware wrapper for `::fz_maxi()`."""
  36120. return _mupdf.fz_maxi(a, b)
  36121. def fz_maxi64(a, b):
  36122. r"""Class-aware wrapper for `::fz_maxi64()`."""
  36123. return _mupdf.fz_maxi64(a, b)
  36124. def fz_maxz(a, b):
  36125. r"""Class-aware wrapper for `::fz_maxz()`."""
  36126. return _mupdf.fz_maxz(a, b)
  36127. def fz_md5_buffer(buffer, digest):
  36128. r"""
  36129. Class-aware wrapper for `::fz_md5_buffer()`.
  36130. Create an MD5 digest from buffer contents.
  36131. Never throws exceptions.
  36132. """
  36133. return _mupdf.fz_md5_buffer(buffer, digest)
  36134. def fz_md5_final(state, digest):
  36135. r"""
  36136. Class-aware wrapper for `::fz_md5_final()`.
  36137. MD5 finalization. Ends an MD5 message-digest operation, writing
  36138. the message digest and zeroizing the context.
  36139. Never throws an exception.
  36140. """
  36141. return _mupdf.fz_md5_final(state, digest)
  36142. def fz_md5_final2(md5):
  36143. r"""
  36144. Class-aware wrapper for `::fz_md5_final2()`.
  36145. C++ alternative to fz_md5_final() that returns the digest by value.
  36146. """
  36147. return _mupdf.fz_md5_final2(md5)
  36148. def fz_md5_init(state):
  36149. r"""
  36150. Class-aware wrapper for `::fz_md5_init()`.
  36151. MD5 initialization. Begins an MD5 operation, writing a new
  36152. context.
  36153. Never throws an exception.
  36154. """
  36155. return _mupdf.fz_md5_init(state)
  36156. def fz_md5_pixmap(pixmap, digest):
  36157. r"""Class-aware wrapper for `::fz_md5_pixmap()`."""
  36158. return _mupdf.fz_md5_pixmap(pixmap, digest)
  36159. def fz_md5_pixmap2(pixmap):
  36160. r"""
  36161. Class-aware wrapper for `::fz_md5_pixmap2()`.
  36162. C++ alternative to `fz_md5_pixmap()` that returns the digest by value.
  36163. """
  36164. return _mupdf.fz_md5_pixmap2(pixmap)
  36165. def fz_md5_update(state, input, inlen):
  36166. r"""
  36167. Class-aware wrapper for `::fz_md5_update()`.
  36168. MD5 block update operation. Continues an MD5 message-digest
  36169. operation, processing another message block, and updating the
  36170. context.
  36171. Never throws an exception.
  36172. """
  36173. return _mupdf.fz_md5_update(state, input, inlen)
  36174. def fz_md5_update_int64(state, i):
  36175. r"""
  36176. Class-aware wrapper for `::fz_md5_update_int64()`.
  36177. MD5 block update operation. Continues an MD5 message-digest
  36178. operation, processing an int64, and updating the context.
  36179. Never throws an exception.
  36180. """
  36181. return _mupdf.fz_md5_update_int64(state, i)
  36182. def fz_measure_string(user_font, trm, s, wmode, bidi_level, markup_dir, language):
  36183. r"""
  36184. Class-aware wrapper for `::fz_measure_string()`.
  36185. Measure the advance width of a UTF8 string should it be added to a text object.
  36186. This uses the same layout algorithms as fz_show_string, and can be used
  36187. to calculate text alignment adjustments.
  36188. """
  36189. return _mupdf.fz_measure_string(user_font, trm, s, wmode, bidi_level, markup_dir, language)
  36190. def fz_memmem(haystack, haystacklen, needle, needlelen):
  36191. r"""
  36192. Class-aware wrapper for `::fz_memmem()`.
  36193. Find the start of the first occurrence of the substring needle in haystack.
  36194. """
  36195. return _mupdf.fz_memmem(haystack, haystacklen, needle, needlelen)
  36196. def fz_memrnd(block, len):
  36197. r"""
  36198. Class-aware wrapper for `::fz_memrnd()`.
  36199. Fill block with len bytes of pseudo-randomness.
  36200. """
  36201. return _mupdf.fz_memrnd(block, len)
  36202. def fz_min(a, b):
  36203. r"""Class-aware wrapper for `::fz_min()`."""
  36204. return _mupdf.fz_min(a, b)
  36205. def fz_mini(a, b):
  36206. r"""Class-aware wrapper for `::fz_mini()`."""
  36207. return _mupdf.fz_mini(a, b)
  36208. def fz_mini64(a, b):
  36209. r"""Class-aware wrapper for `::fz_mini64()`."""
  36210. return _mupdf.fz_mini64(a, b)
  36211. def fz_minz(a, b):
  36212. r"""Class-aware wrapper for `::fz_minz()`."""
  36213. return _mupdf.fz_minz(a, b)
  36214. def fz_mkdir(path):
  36215. r"""Class-aware wrapper for `::fz_mkdir()`."""
  36216. return _mupdf.fz_mkdir(path)
  36217. def fz_morph_error(fromcode, tocode):
  36218. r"""
  36219. Class-aware wrapper for `::fz_morph_error()`.
  36220. Called within a catch block this modifies the current
  36221. exception's code. If it's of type 'fromcode' it is
  36222. modified to 'tocode'. Typically used for 'downgrading'
  36223. exception severity.
  36224. """
  36225. return _mupdf.fz_morph_error(fromcode, tocode)
  36226. def fz_mount_multi_archive(arch_, sub, path):
  36227. r"""
  36228. Class-aware wrapper for `::fz_mount_multi_archive()`.
  36229. Add an archive to the set of archives handled by a multi
  36230. archive.
  36231. If path is NULL, then the archive contents will appear at the
  36232. top level, otherwise, the archives contents will appear prefixed
  36233. by path.
  36234. """
  36235. return _mupdf.fz_mount_multi_archive(arch_, sub, path)
  36236. def fz_moveto(path, x, y):
  36237. r"""
  36238. Class-aware wrapper for `::fz_moveto()`.
  36239. Append a 'moveto' command to a path.
  36240. This 'opens' a path.
  36241. path: The path to modify.
  36242. x, y: The coordinate to move to.
  36243. Throws exceptions on failure to allocate, or attempting to
  36244. modify a packed path.
  36245. """
  36246. return _mupdf.fz_moveto(path, x, y)
  36247. def fz_mul255(a, b):
  36248. r"""
  36249. Class-aware wrapper for `::fz_mul255()`.
  36250. Multiply scaled two integers in the 0..255 range
  36251. """
  36252. return _mupdf.fz_mul255(a, b)
  36253. def fz_needs_password(doc):
  36254. r"""
  36255. Class-aware wrapper for `::fz_needs_password()`.
  36256. Check if a document is encrypted with a
  36257. non-blank password.
  36258. """
  36259. return _mupdf.fz_needs_password(doc)
  36260. def fz_new_archive_of_size(file, size):
  36261. r"""Class-aware wrapper for `::fz_new_archive_of_size()`."""
  36262. return _mupdf.fz_new_archive_of_size(file, size)
  36263. def fz_new_barcode_image(type, value, size, ec_level, quiet, hrt):
  36264. r"""
  36265. Class-aware wrapper for `::fz_new_barcode_image()`.
  36266. Create an fz_image from a barcode definition.
  36267. type: The type of barcode to create.
  36268. value: The value of the barcode.
  36269. size: The size of the barcode.
  36270. ec_level: error correction level 0-8.
  36271. quiet: whether to include quiet zones (0 or 1).
  36272. hrt: whether to include human readable text below the barcode (0 or 1).
  36273. returns a created fz_image.
  36274. """
  36275. return _mupdf.fz_new_barcode_image(type, value, size, ec_level, quiet, hrt)
  36276. def fz_new_barcode_pixmap(type, value, size, ec_level, quiet, hrt):
  36277. r"""
  36278. Class-aware wrapper for `::fz_new_barcode_pixmap()`.
  36279. Create an fz_pixmap from a barcode definition.
  36280. type: The type of barcode to create.
  36281. value: The value of the barcode.
  36282. size: The size of the barcode.
  36283. ec_level: error correction level 0-8.
  36284. quiet: whether to include quiet zones (0 or 1).
  36285. hrt: whether to include human readable text below the barcode (0 or 1).
  36286. returns a created fz_pixmap.
  36287. """
  36288. return _mupdf.fz_new_barcode_pixmap(type, value, size, ec_level, quiet, hrt)
  36289. def fz_new_base14_font(name):
  36290. r"""
  36291. Class-aware wrapper for `::fz_new_base14_font()`.
  36292. Create a new font from one of the built-in fonts.
  36293. """
  36294. return _mupdf.fz_new_base14_font(name)
  36295. def fz_new_bbox_device(rectp):
  36296. r"""
  36297. Class-aware wrapper for `::fz_new_bbox_device()`.
  36298. Create a device to compute the bounding
  36299. box of all marks on a page.
  36300. The returned bounding box will be the union of all bounding
  36301. boxes of all objects on a page.
  36302. """
  36303. return _mupdf.fz_new_bbox_device(rectp)
  36304. def fz_new_bitmap(w, h, n, xres, yres):
  36305. r"""
  36306. Class-aware wrapper for `::fz_new_bitmap()`.
  36307. Create a new bitmap.
  36308. w, h: Width and Height for the bitmap
  36309. n: Number of color components (assumed to be a divisor of 8)
  36310. xres, yres: X and Y resolutions (in pixels per inch).
  36311. Returns pointer to created bitmap structure. The bitmap
  36312. data is uninitialised.
  36313. """
  36314. return _mupdf.fz_new_bitmap(w, h, n, xres, yres)
  36315. def fz_new_bitmap_from_image(img, ht):
  36316. r"""
  36317. Class-aware wrapper for `::fz_new_bitmap_from_image()`.
  36318. Make a bitmap from a pixmap and a halftone.
  36319. img: The image to generate from. Currently must be a single
  36320. color component with no alpha.
  36321. ht: The halftone to use. NULL implies the default halftone.
  36322. Returns the resultant bitmap. Throws exceptions in the case of
  36323. failure to allocate.
  36324. """
  36325. return _mupdf.fz_new_bitmap_from_image(img, ht)
  36326. def fz_new_bitmap_from_pixmap(pix, ht):
  36327. r"""
  36328. Class-aware wrapper for `::fz_new_bitmap_from_pixmap()`.
  36329. Make a bitmap from a pixmap and a halftone.
  36330. pix: The pixmap to generate from. Currently must be a single
  36331. color component with no alpha.
  36332. ht: The halftone to use. NULL implies the default halftone.
  36333. Returns the resultant bitmap. Throws exceptions in the case of
  36334. failure to allocate.
  36335. """
  36336. return _mupdf.fz_new_bitmap_from_pixmap(pix, ht)
  36337. def fz_new_bitmap_from_pixmap_band(pix, ht, band_start):
  36338. r"""
  36339. Class-aware wrapper for `::fz_new_bitmap_from_pixmap_band()`.
  36340. Make a bitmap from a pixmap and a
  36341. halftone, allowing for the position of the pixmap within an
  36342. overall banded rendering.
  36343. pix: The pixmap to generate from. Currently must be a single
  36344. color component with no alpha.
  36345. ht: The halftone to use. NULL implies the default halftone.
  36346. band_start: Vertical offset within the overall banded rendering
  36347. (in pixels)
  36348. Returns the resultant bitmap. Throws exceptions in the case of
  36349. failure to allocate.
  36350. """
  36351. return _mupdf.fz_new_bitmap_from_pixmap_band(pix, ht, band_start)
  36352. def fz_new_brotli_data(compressed_length, source, source_length, level):
  36353. r"""
  36354. Class-aware wrapper for `::fz_new_brotli_data()`.
  36355. This function has out-params. Python/C# wrappers look like:
  36356. `fz_new_brotli_data(const unsigned char *source, size_t source_length, ::fz_brotli_level level)` => `(unsigned char *, size_t compressed_length)`
  36357. Compress source_length bytes of data starting
  36358. at source, into a new memory block malloced for that purpose.
  36359. compressed_length is updated on exit to contain the size used.
  36360. Ownership of the block is returned from this function, and the
  36361. caller is therefore responsible for freeing it. The block may be
  36362. considerably larger than is actually required. The caller is
  36363. free to fz_realloc it down if it wants to.
  36364. """
  36365. return _mupdf.fz_new_brotli_data(compressed_length, source, source_length, level)
  36366. def fz_new_brotli_data_from_buffer(compressed_length, buffer, level):
  36367. r"""
  36368. Class-aware wrapper for `::fz_new_brotli_data_from_buffer()`.
  36369. This function has out-params. Python/C# wrappers look like:
  36370. `fz_new_brotli_data_from_buffer(::fz_buffer *buffer, ::fz_brotli_level level)` => `(unsigned char *, size_t compressed_length)`
  36371. Compress the contents of a fz_buffer into a
  36372. new block malloced for that purpose. *compressed_length is
  36373. updated on exit to contain the size used. Ownership of the block
  36374. is returned from this function, and the caller is therefore
  36375. responsible for freeing it. The block may be considerably larger
  36376. than is actually required. The caller is free to fz_realloc it
  36377. down if it wants to.
  36378. """
  36379. return _mupdf.fz_new_brotli_data_from_buffer(compressed_length, buffer, level)
  36380. def fz_new_buffer(capacity):
  36381. r"""Class-aware wrapper for `::fz_new_buffer()`."""
  36382. return _mupdf.fz_new_buffer(capacity)
  36383. def fz_new_buffer_from_base64(data, size):
  36384. r"""
  36385. Class-aware wrapper for `::fz_new_buffer_from_base64()`.
  36386. Create a new buffer with data decoded from a base64 input string.
  36387. """
  36388. return _mupdf.fz_new_buffer_from_base64(data, size)
  36389. def fz_new_buffer_from_copied_data(data, size):
  36390. r"""
  36391. Class-aware wrapper for `::fz_new_buffer_from_copied_data()`.
  36392. Create a new buffer containing a copy of the passed data.
  36393. """
  36394. return _mupdf.fz_new_buffer_from_copied_data(data, size)
  36395. def fz_new_buffer_from_data(data, size):
  36396. r"""
  36397. Class-aware wrapper for `::fz_new_buffer_from_data()`.
  36398. Create a new buffer with existing data.
  36399. data: Pointer to existing data.
  36400. size: Size of existing data.
  36401. Takes ownership of data. Does not make a copy. Calls fz_free on
  36402. the data when the buffer is deallocated. Do not use 'data' after
  36403. passing to this function.
  36404. Returns pointer to new buffer. Throws exception on allocation
  36405. failure.
  36406. """
  36407. return _mupdf.fz_new_buffer_from_data(data, size)
  36408. def fz_new_buffer_from_display_list(list, options):
  36409. r"""Class-aware wrapper for `::fz_new_buffer_from_display_list()`."""
  36410. return _mupdf.fz_new_buffer_from_display_list(list, options)
  36411. def fz_new_buffer_from_image_as_jpeg(image, color_params, quality, invert_cmyk):
  36412. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_jpeg()`."""
  36413. return _mupdf.fz_new_buffer_from_image_as_jpeg(image, color_params, quality, invert_cmyk)
  36414. def fz_new_buffer_from_image_as_jpx(image, color_params, quality):
  36415. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_jpx()`."""
  36416. return _mupdf.fz_new_buffer_from_image_as_jpx(image, color_params, quality)
  36417. def fz_new_buffer_from_image_as_pam(image, color_params):
  36418. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pam()`."""
  36419. return _mupdf.fz_new_buffer_from_image_as_pam(image, color_params)
  36420. def fz_new_buffer_from_image_as_pbm(image, color_params):
  36421. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pbm()`."""
  36422. return _mupdf.fz_new_buffer_from_image_as_pbm(image, color_params)
  36423. def fz_new_buffer_from_image_as_pkm(image, color_params):
  36424. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pkm()`."""
  36425. return _mupdf.fz_new_buffer_from_image_as_pkm(image, color_params)
  36426. def fz_new_buffer_from_image_as_png(image, color_params):
  36427. r"""
  36428. Class-aware wrapper for `::fz_new_buffer_from_image_as_png()`.
  36429. Re-encode a given image as a PNG into a buffer.
  36430. Ownership of the buffer is returned.
  36431. """
  36432. return _mupdf.fz_new_buffer_from_image_as_png(image, color_params)
  36433. def fz_new_buffer_from_image_as_pnm(image, color_params):
  36434. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_pnm()`."""
  36435. return _mupdf.fz_new_buffer_from_image_as_pnm(image, color_params)
  36436. def fz_new_buffer_from_image_as_psd(image, color_params):
  36437. r"""Class-aware wrapper for `::fz_new_buffer_from_image_as_psd()`."""
  36438. return _mupdf.fz_new_buffer_from_image_as_psd(image, color_params)
  36439. def fz_new_buffer_from_page(page, options):
  36440. r"""Class-aware wrapper for `::fz_new_buffer_from_page()`."""
  36441. return _mupdf.fz_new_buffer_from_page(page, options)
  36442. def fz_new_buffer_from_page_number(doc, number, options):
  36443. r"""Class-aware wrapper for `::fz_new_buffer_from_page_number()`."""
  36444. return _mupdf.fz_new_buffer_from_page_number(doc, number, options)
  36445. def fz_new_buffer_from_page_with_format(page, format, options, transform, cookie):
  36446. r"""
  36447. Class-aware wrapper for `::fz_new_buffer_from_page_with_format()`.
  36448. Returns an fz_buffer containing a page after conversion to specified format.
  36449. page: The page to convert.
  36450. format, options: Passed to fz_new_document_writer_with_output() internally.
  36451. transform, cookie: Passed to fz_run_page() internally.
  36452. """
  36453. return _mupdf.fz_new_buffer_from_page_with_format(page, format, options, transform, cookie)
  36454. def fz_new_buffer_from_pixmap_as_jpeg(pixmap, color_params, quality, invert_cmyk):
  36455. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_jpeg()`."""
  36456. return _mupdf.fz_new_buffer_from_pixmap_as_jpeg(pixmap, color_params, quality, invert_cmyk)
  36457. def fz_new_buffer_from_pixmap_as_jpx(pix, color_params, quality):
  36458. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_jpx()`."""
  36459. return _mupdf.fz_new_buffer_from_pixmap_as_jpx(pix, color_params, quality)
  36460. def fz_new_buffer_from_pixmap_as_pam(pixmap, color_params):
  36461. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pam()`."""
  36462. return _mupdf.fz_new_buffer_from_pixmap_as_pam(pixmap, color_params)
  36463. def fz_new_buffer_from_pixmap_as_pbm(pixmap, color_params):
  36464. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pbm()`."""
  36465. return _mupdf.fz_new_buffer_from_pixmap_as_pbm(pixmap, color_params)
  36466. def fz_new_buffer_from_pixmap_as_pkm(pixmap, color_params):
  36467. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pkm()`."""
  36468. return _mupdf.fz_new_buffer_from_pixmap_as_pkm(pixmap, color_params)
  36469. def fz_new_buffer_from_pixmap_as_png(pixmap, color_params):
  36470. r"""
  36471. Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_png()`.
  36472. Re-encode a given pixmap as a PNG into a buffer.
  36473. Ownership of the buffer is returned.
  36474. """
  36475. return _mupdf.fz_new_buffer_from_pixmap_as_png(pixmap, color_params)
  36476. def fz_new_buffer_from_pixmap_as_pnm(pixmap, color_params):
  36477. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_pnm()`."""
  36478. return _mupdf.fz_new_buffer_from_pixmap_as_pnm(pixmap, color_params)
  36479. def fz_new_buffer_from_pixmap_as_psd(pix, color_params):
  36480. r"""Class-aware wrapper for `::fz_new_buffer_from_pixmap_as_psd()`."""
  36481. return _mupdf.fz_new_buffer_from_pixmap_as_psd(pix, color_params)
  36482. def fz_new_buffer_from_shared_data(data, size):
  36483. r"""
  36484. Class-aware wrapper for `::fz_new_buffer_from_shared_data()`.
  36485. Like fz_new_buffer, but does not take ownership.
  36486. """
  36487. return _mupdf.fz_new_buffer_from_shared_data(data, size)
  36488. def fz_new_buffer_from_stext_page(text):
  36489. r"""
  36490. Class-aware wrapper for `::fz_new_buffer_from_stext_page()`.
  36491. Convert structured text into plain text.
  36492. """
  36493. return _mupdf.fz_new_buffer_from_stext_page(text)
  36494. def fz_new_builtin_font(name, is_bold, is_italic):
  36495. r"""Class-aware wrapper for `::fz_new_builtin_font()`."""
  36496. return _mupdf.fz_new_builtin_font(name, is_bold, is_italic)
  36497. def fz_new_cal_gray_colorspace(wp, bp, gamma):
  36498. r"""
  36499. Class-aware wrapper for `::fz_new_cal_gray_colorspace()`.
  36500. Create a calibrated gray colorspace.
  36501. The returned reference should be dropped when it is finished
  36502. with.
  36503. Colorspaces are immutable once created.
  36504. """
  36505. return _mupdf.fz_new_cal_gray_colorspace(wp, bp, gamma)
  36506. def fz_new_cal_rgb_colorspace(wp, bp, gamma, matrix):
  36507. r"""
  36508. Class-aware wrapper for `::fz_new_cal_rgb_colorspace()`.
  36509. Create a calibrated rgb colorspace.
  36510. The returned reference should be dropped when it is finished
  36511. with.
  36512. Colorspaces are immutable once created.
  36513. """
  36514. return _mupdf.fz_new_cal_rgb_colorspace(wp, bp, gamma, matrix)
  36515. def fz_new_cjk_font(ordering):
  36516. r"""Class-aware wrapper for `::fz_new_cjk_font()`."""
  36517. return _mupdf.fz_new_cjk_font(ordering)
  36518. def fz_new_colorspace(type, flags, n, name):
  36519. r"""
  36520. Class-aware wrapper for `::fz_new_colorspace()`.
  36521. Creates a new colorspace instance and returns a reference.
  36522. No internal checking is done that the colorspace type (e.g.
  36523. CMYK) matches with the flags (e.g. FZ_COLORSPACE_HAS_CMYK) or
  36524. colorant count (n) or name.
  36525. The reference should be dropped when it is finished with.
  36526. Colorspaces are immutable once created (with the exception of
  36527. setting up colorant names for separation spaces).
  36528. """
  36529. return _mupdf.fz_new_colorspace(type, flags, n, name)
  36530. def fz_new_compressed_buffer():
  36531. r"""
  36532. Class-aware wrapper for `::fz_new_compressed_buffer()`.
  36533. Create a new, UNKNOWN format, compressed_buffer.
  36534. """
  36535. return _mupdf.fz_new_compressed_buffer()
  36536. def fz_new_default_colorspaces():
  36537. r"""
  36538. Class-aware wrapper for `::fz_new_default_colorspaces()`.
  36539. Create a new default colorspace structure with values inherited
  36540. from the context, and return a reference to it.
  36541. These can be overridden using fz_set_default_xxxx.
  36542. These should not be overridden while more than one caller has
  36543. the reference for fear of race conditions.
  36544. The caller should drop this reference once finished with it.
  36545. """
  36546. return _mupdf.fz_new_default_colorspaces()
  36547. def fz_new_deflated_data(compressed_length, source, source_length, level):
  36548. r"""
  36549. Class-aware wrapper for `::fz_new_deflated_data()`.
  36550. This function has out-params. Python/C# wrappers look like:
  36551. `fz_new_deflated_data(const unsigned char *source, size_t source_length, ::fz_deflate_level level)` => `(unsigned char *, size_t compressed_length)`
  36552. Compress source_length bytes of data starting
  36553. at source, into a new memory block malloced for that purpose.
  36554. compressed_length is updated on exit to contain the size used.
  36555. Ownership of the block is returned from this function, and the
  36556. caller is therefore responsible for freeing it. The block may be
  36557. considerably larger than is actually required. The caller is
  36558. free to fz_realloc it down if it wants to.
  36559. """
  36560. return _mupdf.fz_new_deflated_data(compressed_length, source, source_length, level)
  36561. def fz_new_deflated_data_from_buffer(compressed_length, buffer, level):
  36562. r"""
  36563. Class-aware wrapper for `::fz_new_deflated_data_from_buffer()`.
  36564. This function has out-params. Python/C# wrappers look like:
  36565. `fz_new_deflated_data_from_buffer(::fz_buffer *buffer, ::fz_deflate_level level)` => `(unsigned char *, size_t compressed_length)`
  36566. Compress the contents of a fz_buffer into a
  36567. new block malloced for that purpose. *compressed_length is
  36568. updated on exit to contain the size used. Ownership of the block
  36569. is returned from this function, and the caller is therefore
  36570. responsible for freeing it. The block may be considerably larger
  36571. than is actually required. The caller is free to fz_realloc it
  36572. down if it wants to.
  36573. """
  36574. return _mupdf.fz_new_deflated_data_from_buffer(compressed_length, buffer, level)
  36575. def fz_new_device_of_size(size):
  36576. r"""
  36577. Class-aware wrapper for `::fz_new_device_of_size()`.
  36578. Devices are created by calls to device implementations, for
  36579. instance: foo_new_device(). These will be implemented by calling
  36580. fz_new_derived_device(ctx, foo_device) where foo_device is a
  36581. structure "derived from" fz_device, for instance
  36582. typedef struct { fz_device base; ...extras...} foo_device;
  36583. """
  36584. return _mupdf.fz_new_device_of_size(size)
  36585. def fz_new_display_list(mediabox):
  36586. r"""
  36587. Class-aware wrapper for `::fz_new_display_list()`.
  36588. Create an empty display list.
  36589. A display list contains drawing commands (text, images, etc.).
  36590. Use fz_new_list_device for populating the list.
  36591. mediabox: Bounds of the page (in points) represented by the
  36592. display list.
  36593. """
  36594. return _mupdf.fz_new_display_list(mediabox)
  36595. def fz_new_display_list_from_page(page):
  36596. r"""
  36597. Class-aware wrapper for `::fz_new_display_list_from_page()`.
  36598. Create a display list.
  36599. Ownership of the display list is returned to the caller.
  36600. """
  36601. return _mupdf.fz_new_display_list_from_page(page)
  36602. def fz_new_display_list_from_page_contents(page):
  36603. r"""
  36604. Class-aware wrapper for `::fz_new_display_list_from_page_contents()`.
  36605. Create a display list from page contents (no annotations).
  36606. Ownership of the display list is returned to the caller.
  36607. """
  36608. return _mupdf.fz_new_display_list_from_page_contents(page)
  36609. def fz_new_display_list_from_page_number(doc, number):
  36610. r"""Class-aware wrapper for `::fz_new_display_list_from_page_number()`."""
  36611. return _mupdf.fz_new_display_list_from_page_number(doc, number)
  36612. def fz_new_display_list_from_svg(buf, base_uri, dir, w, h):
  36613. r"""
  36614. Class-aware wrapper for `::fz_new_display_list_from_svg()`.
  36615. This function has out-params. Python/C# wrappers look like:
  36616. `fz_new_display_list_from_svg(::fz_buffer *buf, const char *base_uri, ::fz_archive *dir)` => `(fz_display_list *, float w, float h)`
  36617. Parse an SVG document into a display-list.
  36618. """
  36619. return _mupdf.fz_new_display_list_from_svg(buf, base_uri, dir, w, h)
  36620. def fz_new_display_list_from_svg_xml(xmldoc, xml, base_uri, dir, w, h):
  36621. r"""
  36622. Class-aware wrapper for `::fz_new_display_list_from_svg_xml()`.
  36623. This function has out-params. Python/C# wrappers look like:
  36624. `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)`
  36625. Parse an SVG document into a display-list.
  36626. """
  36627. return _mupdf.fz_new_display_list_from_svg_xml(xmldoc, xml, base_uri, dir, w, h)
  36628. def fz_new_document_of_size(size):
  36629. r"""
  36630. Class-aware wrapper for `::fz_new_document_of_size()`.
  36631. New documents are typically created by calls like
  36632. foo_new_document(fz_context *ctx, ...). These work by
  36633. deriving a new document type from fz_document, for instance:
  36634. typedef struct { fz_document base; ...extras... } foo_document;
  36635. These are allocated by calling
  36636. fz_new_derived_document(ctx, foo_document)
  36637. """
  36638. return _mupdf.fz_new_document_of_size(size)
  36639. def fz_new_dom(tag):
  36640. r"""
  36641. Class-aware wrapper for `::fz_new_dom()`.
  36642. Make new xml dom root element.
  36643. """
  36644. return _mupdf.fz_new_dom(tag)
  36645. def fz_new_dom_node(dom, tag):
  36646. r"""
  36647. Class-aware wrapper for `::fz_new_dom_node()`.
  36648. Create a new dom node.
  36649. This will NOT be linked in yet.
  36650. """
  36651. return _mupdf.fz_new_dom_node(dom, tag)
  36652. def fz_new_dom_text_node(dom, text):
  36653. r"""
  36654. Class-aware wrapper for `::fz_new_dom_text_node()`.
  36655. Create a new dom text node.
  36656. This will NOT be linked in yet.
  36657. """
  36658. return _mupdf.fz_new_dom_text_node(dom, text)
  36659. def fz_new_draw_device(transform, dest):
  36660. r"""
  36661. Class-aware wrapper for `::fz_new_draw_device()`.
  36662. Create a device to draw on a pixmap.
  36663. dest: Target pixmap for the draw device. See fz_new_pixmap*
  36664. for how to obtain a pixmap. The pixmap is not cleared by the
  36665. draw device, see fz_clear_pixmap* for how to clear it prior to
  36666. calling fz_new_draw_device. Free the device by calling
  36667. fz_drop_device.
  36668. transform: Transform from user space in points to device space
  36669. in pixels.
  36670. """
  36671. return _mupdf.fz_new_draw_device(transform, dest)
  36672. def fz_new_draw_device_type3(transform, dest):
  36673. r"""Class-aware wrapper for `::fz_new_draw_device_type3()`."""
  36674. return _mupdf.fz_new_draw_device_type3(transform, dest)
  36675. def fz_new_draw_device_with_bbox(transform, dest, clip):
  36676. r"""
  36677. Class-aware wrapper for `::fz_new_draw_device_with_bbox()`.
  36678. Create a device to draw on a pixmap.
  36679. dest: Target pixmap for the draw device. See fz_new_pixmap*
  36680. for how to obtain a pixmap. The pixmap is not cleared by the
  36681. draw device, see fz_clear_pixmap* for how to clear it prior to
  36682. calling fz_new_draw_device. Free the device by calling
  36683. fz_drop_device.
  36684. transform: Transform from user space in points to device space
  36685. in pixels.
  36686. clip: Bounding box to restrict any marking operations of the
  36687. draw device.
  36688. """
  36689. return _mupdf.fz_new_draw_device_with_bbox(transform, dest, clip)
  36690. def fz_new_draw_device_with_bbox_proof(transform, dest, clip, cs):
  36691. r"""
  36692. Class-aware wrapper for `::fz_new_draw_device_with_bbox_proof()`.
  36693. Create a device to draw on a pixmap.
  36694. dest: Target pixmap for the draw device. See fz_new_pixmap*
  36695. for how to obtain a pixmap. The pixmap is not cleared by the
  36696. draw device, see fz_clear_pixmap* for how to clear it prior to
  36697. calling fz_new_draw_device. Free the device by calling
  36698. fz_drop_device.
  36699. transform: Transform from user space in points to device space
  36700. in pixels.
  36701. clip: Bounding box to restrict any marking operations of the
  36702. draw device.
  36703. proof_cs: Color space to render to prior to mapping to color
  36704. space defined by pixmap.
  36705. """
  36706. return _mupdf.fz_new_draw_device_with_bbox_proof(transform, dest, clip, cs)
  36707. def fz_new_draw_device_with_options(options, mediabox, pixmap):
  36708. r"""
  36709. Class-aware wrapper for `::fz_new_draw_device_with_options()`.
  36710. This function has out-params. Python/C# wrappers look like:
  36711. `fz_new_draw_device_with_options(const ::fz_draw_options *options, ::fz_rect mediabox, ::fz_pixmap **pixmap)` => `(fz_device *)`
  36712. Create a new pixmap and draw device, using the specified options.
  36713. options: Options to configure the draw device, and choose the
  36714. resolution and colorspace.
  36715. mediabox: The bounds of the page in points.
  36716. pixmap: An out parameter containing the newly created pixmap.
  36717. """
  36718. return _mupdf.fz_new_draw_device_with_options(options, mediabox, pixmap)
  36719. def fz_new_draw_device_with_proof(transform, dest, proof_cs):
  36720. r"""
  36721. Class-aware wrapper for `::fz_new_draw_device_with_proof()`.
  36722. Create a device to draw on a pixmap.
  36723. dest: Target pixmap for the draw device. See fz_new_pixmap*
  36724. for how to obtain a pixmap. The pixmap is not cleared by the
  36725. draw device, see fz_clear_pixmap* for how to clear it prior to
  36726. calling fz_new_draw_device. Free the device by calling
  36727. fz_drop_device.
  36728. transform: Transform from user space in points to device space
  36729. in pixels.
  36730. proof_cs: Intermediate color space to map though when mapping to
  36731. color space defined by pixmap.
  36732. """
  36733. return _mupdf.fz_new_draw_device_with_proof(transform, dest, proof_cs)
  36734. def fz_new_font_from_buffer(name, buffer, index, use_glyph_bbox):
  36735. r"""
  36736. Class-aware wrapper for `::fz_new_font_from_buffer()`.
  36737. Create a new font from a font file in a fz_buffer.
  36738. Fonts created in this way, will be eligible for embedding by default.
  36739. name: Name of font (leave NULL to use name from font).
  36740. buffer: Buffer to load from.
  36741. index: Which font from the file to load (0 for default).
  36742. use_glyph_box: 1 if we should use the glyph bbox, 0 otherwise.
  36743. Returns new font handle, or throws exception on error.
  36744. """
  36745. return _mupdf.fz_new_font_from_buffer(name, buffer, index, use_glyph_bbox)
  36746. def fz_new_font_from_file(name, path, index, use_glyph_bbox):
  36747. r"""
  36748. Class-aware wrapper for `::fz_new_font_from_file()`.
  36749. Create a new font from a font file.
  36750. Fonts created in this way, will be eligible for embedding by default.
  36751. name: Name of font (leave NULL to use name from font).
  36752. path: File path to load from.
  36753. index: Which font from the file to load (0 for default).
  36754. use_glyph_box: 1 if we should use the glyph bbox, 0 otherwise.
  36755. Returns new font handle, or throws exception on error.
  36756. """
  36757. return _mupdf.fz_new_font_from_file(name, path, index, use_glyph_bbox)
  36758. def fz_new_font_from_memory(name, data, len, index, use_glyph_bbox):
  36759. r"""
  36760. Class-aware wrapper for `::fz_new_font_from_memory()`.
  36761. Create a new font from a font file in memory.
  36762. Fonts created in this way, will be eligible for embedding by default.
  36763. name: Name of font (leave NULL to use name from font).
  36764. data: Pointer to the font file data.
  36765. len: Length of the font file data.
  36766. index: Which font from the file to load (0 for default).
  36767. use_glyph_box: 1 if we should use the glyph bbox, 0 otherwise.
  36768. Returns new font handle, or throws exception on error.
  36769. """
  36770. return _mupdf.fz_new_font_from_memory(name, data, len, index, use_glyph_bbox)
  36771. def fz_new_function_of_size(size, size2, m, n, eval, drop):
  36772. r"""Class-aware wrapper for `::fz_new_function_of_size()`."""
  36773. return _mupdf.fz_new_function_of_size(size, size2, m, n, eval, drop)
  36774. def fz_new_icc_colorspace(type, flags, name, buf):
  36775. r"""
  36776. Class-aware wrapper for `::fz_new_icc_colorspace()`.
  36777. Create a colorspace from an ICC profile supplied in buf.
  36778. Limited checking is done to ensure that the colorspace type is
  36779. appropriate for the supplied ICC profile.
  36780. An additional reference is taken to buf, which will be dropped
  36781. on destruction. Ownership is NOT passed in.
  36782. The returned reference should be dropped when it is finished
  36783. with.
  36784. Colorspaces are immutable once created.
  36785. """
  36786. return _mupdf.fz_new_icc_colorspace(type, flags, name, buf)
  36787. def fz_new_image_from_buffer(buffer):
  36788. r"""
  36789. Class-aware wrapper for `::fz_new_image_from_buffer()`.
  36790. Create a new image from a
  36791. buffer of data, inferring its type from the format
  36792. of the data.
  36793. """
  36794. return _mupdf.fz_new_image_from_buffer(buffer)
  36795. def fz_new_image_from_compressed_buffer(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, buffer, mask):
  36796. r"""
  36797. Class-aware wrapper for `::fz_new_image_from_compressed_buffer()`.
  36798. Create an image based on
  36799. the data in the supplied compressed buffer.
  36800. w,h: Width and height of the created image.
  36801. bpc: Bits per component.
  36802. colorspace: The colorspace (determines the number of components,
  36803. and any color conversions required while decoding).
  36804. xres, yres: The X and Y resolutions respectively.
  36805. interpolate: 1 if interpolation should be used when decoding
  36806. this image, 0 otherwise.
  36807. imagemask: 1 if this is an imagemask (i.e. transparency bitmap
  36808. mask), 0 otherwise.
  36809. decode: NULL, or a pointer to to a decode array. The default
  36810. decode array is [0 1] (repeated n times, for n color components).
  36811. colorkey: NULL, or a pointer to a colorkey array. The default
  36812. colorkey array is [0 255] (repeated n times, for n color
  36813. components).
  36814. buffer: Buffer of compressed data and compression parameters.
  36815. Ownership of this reference is passed in.
  36816. mask: NULL, or another image to use as a mask for this one.
  36817. A new reference is taken to this image. Supplying a masked
  36818. image as a mask to another image is illegal!
  36819. """
  36820. return _mupdf.fz_new_image_from_compressed_buffer(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, buffer, mask)
  36821. def fz_new_image_from_compressed_buffer2(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, buffer, mask):
  36822. r"""
  36823. Class-aware wrapper for `::fz_new_image_from_compressed_buffer2()`. Swig-friendly wrapper for fz_new_image_from_compressed_buffer(),
  36824. uses specified `decode` and `colorkey` if they are not null (in which
  36825. case we assert that they have size `2*fz_colorspace_n(colorspace)`).
  36826. """
  36827. return _mupdf.fz_new_image_from_compressed_buffer2(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, buffer, mask)
  36828. def fz_new_image_from_display_list(w, h, list):
  36829. r"""
  36830. Class-aware wrapper for `::fz_new_image_from_display_list()`.
  36831. Create a new image from a display list.
  36832. w, h: The conceptual width/height of the image.
  36833. transform: The matrix that needs to be applied to the given
  36834. list to make it render to the unit square.
  36835. list: The display list.
  36836. """
  36837. return _mupdf.fz_new_image_from_display_list(w, h, list)
  36838. def fz_new_image_from_file(path):
  36839. r"""
  36840. Class-aware wrapper for `::fz_new_image_from_file()`.
  36841. Create a new image from the contents
  36842. of a file, inferring its type from the format of the
  36843. data.
  36844. """
  36845. return _mupdf.fz_new_image_from_file(path)
  36846. def fz_new_image_from_pixmap(pixmap, mask):
  36847. r"""
  36848. Class-aware wrapper for `::fz_new_image_from_pixmap()`.
  36849. Create an image from the given
  36850. pixmap.
  36851. pixmap: The pixmap to base the image upon. A new reference
  36852. to this is taken.
  36853. mask: NULL, or another image to use as a mask for this one.
  36854. A new reference is taken to this image. Supplying a masked
  36855. image as a mask to another image is illegal!
  36856. """
  36857. return _mupdf.fz_new_image_from_pixmap(pixmap, mask)
  36858. def fz_new_image_from_svg(buf, base_uri, dir):
  36859. r"""
  36860. Class-aware wrapper for `::fz_new_image_from_svg()`.
  36861. Create a scalable image from an SVG document.
  36862. """
  36863. return _mupdf.fz_new_image_from_svg(buf, base_uri, dir)
  36864. def fz_new_image_from_svg_xml(xmldoc, xml, base_uri, dir):
  36865. r"""
  36866. Class-aware wrapper for `::fz_new_image_from_svg_xml()`.
  36867. Create a scalable image from an SVG document.
  36868. """
  36869. return _mupdf.fz_new_image_from_svg_xml(xmldoc, xml, base_uri, dir)
  36870. def fz_new_image_of_size(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, mask, size, get_pixmap, get_size, drop):
  36871. r"""
  36872. Class-aware wrapper for `::fz_new_image_of_size()`.
  36873. Internal function to make a new fz_image structure
  36874. for a derived class.
  36875. w,h: Width and height of the created image.
  36876. bpc: Bits per component.
  36877. colorspace: The colorspace (determines the number of components,
  36878. and any color conversions required while decoding).
  36879. xres, yres: The X and Y resolutions respectively.
  36880. interpolate: 1 if interpolation should be used when decoding
  36881. this image, 0 otherwise.
  36882. imagemask: 1 if this is an imagemask (i.e. transparent), 0
  36883. otherwise.
  36884. decode: NULL, or a pointer to to a decode array. The default
  36885. decode array is [0 1] (repeated n times, for n color components).
  36886. colorkey: NULL, or a pointer to a colorkey array. The default
  36887. colorkey array is [0 255] (repeated n times, for n color
  36888. components).
  36889. mask: NULL, or another image to use as a mask for this one.
  36890. A new reference is taken to this image. Supplying a masked
  36891. image as a mask to another image is illegal!
  36892. size: The size of the required allocated structure (the size of
  36893. the derived structure).
  36894. get: The function to be called to obtain a decoded pixmap.
  36895. get_size: The function to be called to return the storage size
  36896. used by this image.
  36897. drop: The function to be called to dispose of this image once
  36898. the last reference is dropped.
  36899. Returns a pointer to an allocated structure of the required size,
  36900. with the first sizeof(fz_image) bytes initialised as appropriate
  36901. given the supplied parameters, and the other bytes set to zero.
  36902. """
  36903. return _mupdf.fz_new_image_of_size(w, h, bpc, colorspace, xres, yres, interpolate, imagemask, decode, colorkey, mask, size, get_pixmap, get_size, drop)
  36904. def fz_new_indexed_colorspace(base, high, lookup):
  36905. r"""
  36906. Class-aware wrapper for `::fz_new_indexed_colorspace()`.
  36907. Create an indexed colorspace.
  36908. The supplied lookup table is high palette entries long. Each
  36909. entry is n bytes long, where n is given by the number of
  36910. colorants in the base colorspace, one byte per colorant.
  36911. Ownership of lookup is passed it; it will be freed on
  36912. destruction, so must be heap allocated.
  36913. The colorspace will keep an additional reference to the base
  36914. colorspace that will be dropped on destruction.
  36915. The returned reference should be dropped when it is finished
  36916. with.
  36917. Colorspaces are immutable once created.
  36918. """
  36919. return _mupdf.fz_new_indexed_colorspace(base, high, lookup)
  36920. def fz_new_link_of_size(size, rect, uri):
  36921. r"""
  36922. Class-aware wrapper for `::fz_new_link_of_size()`.
  36923. Create a new link record.
  36924. next is set to NULL with the expectation that the caller will
  36925. handle the linked list setup. Internal function.
  36926. Different document types will be implemented by deriving from
  36927. fz_link. This macro allocates such derived structures, and
  36928. initialises the base sections.
  36929. """
  36930. return _mupdf.fz_new_link_of_size(size, rect, uri)
  36931. def fz_new_list_device(list):
  36932. r"""
  36933. Class-aware wrapper for `::fz_new_list_device()`.
  36934. Create a rendering device for a display list.
  36935. When the device is rendering a page it will populate the
  36936. display list with drawing commands (text, images, etc.). The
  36937. display list can later be reused to render a page many times
  36938. without having to re-interpret the page from the document file
  36939. for each rendering. Once the device is no longer needed, free
  36940. it with fz_drop_device.
  36941. list: A display list that the list device takes a reference to.
  36942. """
  36943. return _mupdf.fz_new_list_device(list)
  36944. def fz_new_multi_archive():
  36945. r"""
  36946. Class-aware wrapper for `::fz_new_multi_archive()`.
  36947. Create a new multi archive (initially empty).
  36948. """
  36949. return _mupdf.fz_new_multi_archive()
  36950. def fz_new_ocr_device(target, ctm, mediabox, with_list, language, datadir, progress, progress_arg):
  36951. r"""
  36952. Class-aware wrapper for `::fz_new_ocr_device()`.
  36953. Create a device to OCR the text on the page.
  36954. Renders the page internally to a bitmap that is then OCRd. Text
  36955. is then forwarded onto the target device.
  36956. target: The target device to receive the OCRd text.
  36957. ctm: The transform to apply to the mediabox to get the size for
  36958. the rendered page image. Also used to calculate the resolution
  36959. for the page image. In general, this will be the same as the CTM
  36960. that you pass to fz_run_page (or fz_run_display_list) to feed
  36961. this device.
  36962. mediabox: The mediabox (in points). Combined with the CTM to get
  36963. the bounds of the pixmap used internally for the rendered page
  36964. image.
  36965. with_list: If with_list is false, then all non-text operations
  36966. are forwarded instantly to the target device. This results in
  36967. the target device seeing all NON-text operations, followed by
  36968. all the text operations (derived from OCR).
  36969. If with_list is true, then all the marking operations are
  36970. collated into a display list which is then replayed to the
  36971. target device at the end.
  36972. language: NULL (for "eng"), or a pointer to a string to describe
  36973. the languages/scripts that should be used for OCR (e.g.
  36974. "eng,ara").
  36975. datadir: NULL (for ""), or a pointer to a path string otherwise
  36976. provided to Tesseract in the TESSDATA_PREFIX environment variable.
  36977. progress: NULL, or function to be called periodically to indicate
  36978. progress. Return 0 to continue, or 1 to cancel. progress_arg is
  36979. returned as the void *. The int is a value between 0 and 100 to
  36980. indicate progress.
  36981. progress_arg: A void * value to be parrotted back to the progress
  36982. function.
  36983. """
  36984. return _mupdf.fz_new_ocr_device(target, ctm, mediabox, with_list, language, datadir, progress, progress_arg)
  36985. def fz_new_outline():
  36986. r"""
  36987. Class-aware wrapper for `::fz_new_outline()`.
  36988. Create a new outline entry with zeroed fields for the caller
  36989. to fill in.
  36990. """
  36991. return _mupdf.fz_new_outline()
  36992. def fz_new_page_of_size(size, doc):
  36993. r"""
  36994. Class-aware wrapper for `::fz_new_page_of_size()`.
  36995. Different document types will be implemented by deriving from
  36996. fz_page. This macro allocates such derived structures, and
  36997. initialises the base sections.
  36998. """
  36999. return _mupdf.fz_new_page_of_size(size, doc)
  37000. def fz_new_path():
  37001. r"""
  37002. Class-aware wrapper for `::fz_new_path()`.
  37003. Create a new (empty) path structure.
  37004. """
  37005. return _mupdf.fz_new_path()
  37006. def fz_new_pdf_document_from_fz_document(ptr):
  37007. r"""Class-aware wrapper for `::fz_new_pdf_document_from_fz_document()`."""
  37008. return _mupdf.fz_new_pdf_document_from_fz_document(ptr)
  37009. def fz_new_pixmap(cs, w, h, seps, alpha):
  37010. r"""
  37011. Class-aware wrapper for `::fz_new_pixmap()`.
  37012. Create a new pixmap, with its origin at (0,0)
  37013. cs: The colorspace to use for the pixmap, or NULL for an alpha
  37014. plane/mask.
  37015. w: The width of the pixmap (in pixels)
  37016. h: The height of the pixmap (in pixels)
  37017. seps: Details of separations.
  37018. alpha: 0 for no alpha, 1 for alpha.
  37019. Returns a pointer to the new pixmap. Throws exception on failure
  37020. to allocate.
  37021. """
  37022. return _mupdf.fz_new_pixmap(cs, w, h, seps, alpha)
  37023. def fz_new_pixmap_from_alpha_channel(src):
  37024. r"""Class-aware wrapper for `::fz_new_pixmap_from_alpha_channel()`."""
  37025. return _mupdf.fz_new_pixmap_from_alpha_channel(src)
  37026. def fz_new_pixmap_from_color_and_mask(color, mask):
  37027. r"""Class-aware wrapper for `::fz_new_pixmap_from_color_and_mask()`."""
  37028. return _mupdf.fz_new_pixmap_from_color_and_mask(color, mask)
  37029. def fz_new_pixmap_from_display_list(list, ctm, cs, alpha):
  37030. r"""
  37031. Class-aware wrapper for `::fz_new_pixmap_from_display_list()`.
  37032. Render the page to a pixmap using the transform and colorspace.
  37033. Ownership of the pixmap is returned to the caller.
  37034. """
  37035. return _mupdf.fz_new_pixmap_from_display_list(list, ctm, cs, alpha)
  37036. def fz_new_pixmap_from_display_list_with_separations(list, ctm, cs, seps, alpha):
  37037. r"""
  37038. Class-aware wrapper for `::fz_new_pixmap_from_display_list_with_separations()`.
  37039. Render the page contents with control over spot colors.
  37040. Ownership of the pixmap is returned to the caller.
  37041. """
  37042. return _mupdf.fz_new_pixmap_from_display_list_with_separations(list, ctm, cs, seps, alpha)
  37043. def fz_new_pixmap_from_page(page, ctm, cs, alpha):
  37044. r"""Class-aware wrapper for `::fz_new_pixmap_from_page()`."""
  37045. return _mupdf.fz_new_pixmap_from_page(page, ctm, cs, alpha)
  37046. def fz_new_pixmap_from_page_contents(page, ctm, cs, alpha):
  37047. r"""
  37048. Class-aware wrapper for `::fz_new_pixmap_from_page_contents()`.
  37049. Render the page contents without annotations.
  37050. Ownership of the pixmap is returned to the caller.
  37051. """
  37052. return _mupdf.fz_new_pixmap_from_page_contents(page, ctm, cs, alpha)
  37053. def fz_new_pixmap_from_page_contents_with_separations(page, ctm, cs, seps, alpha):
  37054. r"""Class-aware wrapper for `::fz_new_pixmap_from_page_contents_with_separations()`."""
  37055. return _mupdf.fz_new_pixmap_from_page_contents_with_separations(page, ctm, cs, seps, alpha)
  37056. def fz_new_pixmap_from_page_number(doc, number, ctm, cs, alpha):
  37057. r"""Class-aware wrapper for `::fz_new_pixmap_from_page_number()`."""
  37058. return _mupdf.fz_new_pixmap_from_page_number(doc, number, ctm, cs, alpha)
  37059. def fz_new_pixmap_from_page_number_with_separations(doc, number, ctm, cs, seps, alpha):
  37060. r"""Class-aware wrapper for `::fz_new_pixmap_from_page_number_with_separations()`."""
  37061. return _mupdf.fz_new_pixmap_from_page_number_with_separations(doc, number, ctm, cs, seps, alpha)
  37062. def fz_new_pixmap_from_page_with_separations(page, ctm, cs, seps, alpha):
  37063. r"""Class-aware wrapper for `::fz_new_pixmap_from_page_with_separations()`."""
  37064. return _mupdf.fz_new_pixmap_from_page_with_separations(page, ctm, cs, seps, alpha)
  37065. def fz_new_pixmap_from_pixmap(pixmap, rect):
  37066. r"""
  37067. Class-aware wrapper for `::fz_new_pixmap_from_pixmap()`.
  37068. Create a new pixmap that represents a subarea of the specified
  37069. pixmap. A reference is taken to this pixmap that will be dropped
  37070. on destruction.
  37071. The supplied rectangle must be wholly contained within the
  37072. original pixmap.
  37073. Returns a pointer to the new pixmap. Throws exception on failure
  37074. to allocate.
  37075. """
  37076. return _mupdf.fz_new_pixmap_from_pixmap(pixmap, rect)
  37077. def fz_new_pixmap_with_bbox(colorspace, bbox, seps, alpha):
  37078. r"""
  37079. Class-aware wrapper for `::fz_new_pixmap_with_bbox()`.
  37080. Create a pixmap of a given size, location and pixel format.
  37081. The bounding box specifies the size of the created pixmap and
  37082. where it will be located. The colorspace determines the number
  37083. of components per pixel. Alpha is always present. Pixmaps are
  37084. reference counted, so drop references using fz_drop_pixmap.
  37085. colorspace: Colorspace format used for the created pixmap. The
  37086. pixmap will keep a reference to the colorspace.
  37087. bbox: Bounding box specifying location/size of created pixmap.
  37088. seps: Details of separations.
  37089. alpha: 0 for no alpha, 1 for alpha.
  37090. Returns a pointer to the new pixmap. Throws exception on failure
  37091. to allocate.
  37092. """
  37093. return _mupdf.fz_new_pixmap_with_bbox(colorspace, bbox, seps, alpha)
  37094. def fz_new_pixmap_with_bbox_and_data(colorspace, rect, seps, alpha, samples):
  37095. r"""
  37096. Class-aware wrapper for `::fz_new_pixmap_with_bbox_and_data()`.
  37097. Create a pixmap of a given size, location and pixel format,
  37098. using the supplied data block.
  37099. The bounding box specifies the size of the created pixmap and
  37100. where it will be located. The colorspace determines the number
  37101. of components per pixel. Alpha is always present. Pixmaps are
  37102. reference counted, so drop references using fz_drop_pixmap.
  37103. colorspace: Colorspace format used for the created pixmap. The
  37104. pixmap will keep a reference to the colorspace.
  37105. rect: Bounding box specifying location/size of created pixmap.
  37106. seps: Details of separations.
  37107. alpha: Number of alpha planes (0 or 1).
  37108. samples: The data block to keep the samples in.
  37109. Returns a pointer to the new pixmap. Throws exception on failure
  37110. to allocate.
  37111. """
  37112. return _mupdf.fz_new_pixmap_with_bbox_and_data(colorspace, rect, seps, alpha, samples)
  37113. def fz_new_pixmap_with_data(colorspace, w, h, seps, alpha, stride, samples):
  37114. r"""
  37115. Class-aware wrapper for `::fz_new_pixmap_with_data()`.
  37116. Create a new pixmap, with its origin at
  37117. (0,0) using the supplied data block.
  37118. cs: The colorspace to use for the pixmap, or NULL for an alpha
  37119. plane/mask.
  37120. w: The width of the pixmap (in pixels)
  37121. h: The height of the pixmap (in pixels)
  37122. seps: Details of separations.
  37123. alpha: 0 for no alpha, 1 for alpha.
  37124. stride: The byte offset from the pixel data in a row to the
  37125. pixel data in the next row.
  37126. samples: The data block to keep the samples in.
  37127. Returns a pointer to the new pixmap. Throws exception on failure to
  37128. allocate.
  37129. """
  37130. return _mupdf.fz_new_pixmap_with_data(colorspace, w, h, seps, alpha, stride, samples)
  37131. def fz_new_separations(controllable):
  37132. r"""
  37133. Class-aware wrapper for `::fz_new_separations()`.
  37134. Create a new separations structure (initially empty)
  37135. """
  37136. return _mupdf.fz_new_separations(controllable)
  37137. def fz_new_stext_device(page, options):
  37138. r"""
  37139. Class-aware wrapper for `::fz_new_stext_device()`.
  37140. Create a device to extract the text on a page.
  37141. Gather the text on a page into blocks and lines.
  37142. The reading order is taken from the order the text is drawn in
  37143. the source file, so may not be accurate.
  37144. page: The text page to which content should be added. This will
  37145. usually be a newly created (empty) text page, but it can be one
  37146. containing data already (for example when merging multiple
  37147. pages, or watermarking).
  37148. options: Options to configure the stext device.
  37149. """
  37150. return _mupdf.fz_new_stext_device(page, options)
  37151. def fz_new_store_context(max):
  37152. r"""
  37153. Class-aware wrapper for `::fz_new_store_context()`.
  37154. Create a new store inside the context
  37155. max: The maximum size (in bytes) that the store is allowed to
  37156. grow to. FZ_STORE_UNLIMITED means no limit.
  37157. """
  37158. return _mupdf.fz_new_store_context(max)
  37159. def fz_new_stream(state, next, drop):
  37160. r"""
  37161. Class-aware wrapper for `::fz_new_stream()`.
  37162. Create a new stream object with the given
  37163. internal state and function pointers.
  37164. state: Internal state (opaque to everything but implementation).
  37165. next: Should provide the next set of bytes (up to max) of stream
  37166. data. Return the number of bytes read, or EOF when there is no
  37167. more data.
  37168. drop: Should clean up and free the internal state. May not
  37169. throw exceptions.
  37170. """
  37171. return _mupdf.fz_new_stream(state, next, drop)
  37172. def fz_new_string(str):
  37173. r"""Class-aware wrapper for `::fz_new_string()`."""
  37174. return _mupdf.fz_new_string(str)
  37175. def fz_new_stroke_state():
  37176. r"""
  37177. Class-aware wrapper for `::fz_new_stroke_state()`.
  37178. Create a new (empty) stroke state structure (with no dash
  37179. data) and return a reference to it.
  37180. Throws exception on failure to allocate.
  37181. """
  37182. return _mupdf.fz_new_stroke_state()
  37183. def fz_new_stroke_state_with_dash_len(len):
  37184. r"""
  37185. Class-aware wrapper for `::fz_new_stroke_state_with_dash_len()`.
  37186. Create a new (empty) stroke state structure, with room for
  37187. dash data of the given length, and return a reference to it.
  37188. len: The number of dash elements to allow room for.
  37189. Throws exception on failure to allocate.
  37190. """
  37191. return _mupdf.fz_new_stroke_state_with_dash_len(len)
  37192. def fz_new_svg_device(out, page_width, page_height, text_format, reuse_images):
  37193. r"""
  37194. Class-aware wrapper for `::fz_new_svg_device()`.
  37195. Create a device that outputs (single page) SVG files to
  37196. the given output stream.
  37197. Equivalent to fz_new_svg_device_with_id passing id = NULL.
  37198. """
  37199. return _mupdf.fz_new_svg_device(out, page_width, page_height, text_format, reuse_images)
  37200. def fz_new_svg_device_with_id(out, page_width, page_height, text_format, reuse_images, id):
  37201. r"""
  37202. Class-aware wrapper for `::fz_new_svg_device_with_id()`.
  37203. This function has out-params. Python/C# wrappers look like:
  37204. `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)`
  37205. Create a device that outputs (single page) SVG files to
  37206. the given output stream.
  37207. output: The output stream to send the constructed SVG page to.
  37208. page_width, page_height: The page dimensions to use (in points).
  37209. text_format: How to emit text. One of the following values:
  37210. FZ_SVG_TEXT_AS_TEXT: As <text> elements with possible
  37211. layout errors and mismatching fonts.
  37212. FZ_SVG_TEXT_AS_PATH: As <path> elements with exact
  37213. visual appearance.
  37214. reuse_images: Share image resources using <symbol> definitions.
  37215. id: ID parameter to keep generated IDs unique across SVG files.
  37216. """
  37217. return _mupdf.fz_new_svg_device_with_id(out, page_width, page_height, text_format, reuse_images, id)
  37218. def fz_new_test_device(is_color, threshold, options, passthrough):
  37219. r"""
  37220. Class-aware wrapper for `::fz_new_test_device()`.
  37221. This function has out-params. Python/C# wrappers look like:
  37222. `fz_new_test_device(float threshold, int options, ::fz_device *passthrough)` => `(fz_device *, int is_color)`
  37223. Create a device to test for features.
  37224. Currently only tests for the presence of non-grayscale colors.
  37225. is_color: Possible values returned:
  37226. 0: Definitely greyscale
  37227. 1: Probably color (all colors were grey, but there
  37228. were images or shadings in a non grey colorspace).
  37229. 2: Definitely color
  37230. threshold: The difference from grayscale that will be tolerated.
  37231. Typical values to use are either 0 (be exact) and 0.02 (allow an
  37232. imperceptible amount of slop).
  37233. options: A set of bitfield options, from the FZ_TEST_OPT set.
  37234. passthrough: A device to pass all calls through to, or NULL.
  37235. If set, then the test device can both test and pass through to
  37236. an underlying device (like, say, the display list device). This
  37237. means that a display list can be created and at the end we'll
  37238. know if it's colored or not.
  37239. In the absence of a passthrough device, the device will throw
  37240. an exception to stop page interpretation when color is found.
  37241. """
  37242. return _mupdf.fz_new_test_device(is_color, threshold, options, passthrough)
  37243. def fz_new_text():
  37244. r"""
  37245. Class-aware wrapper for `::fz_new_text()`.
  37246. Create a new empty fz_text object.
  37247. Throws exception on failure to allocate.
  37248. """
  37249. return _mupdf.fz_new_text()
  37250. def fz_new_trace_device(out):
  37251. r"""
  37252. Class-aware wrapper for `::fz_new_trace_device()`.
  37253. Create a device to print a debug trace of all device calls.
  37254. """
  37255. return _mupdf.fz_new_trace_device(out)
  37256. def fz_new_tree_archive(tree):
  37257. r"""
  37258. Class-aware wrapper for `::fz_new_tree_archive()`.
  37259. Create an archive that holds named buffers.
  37260. tree can either be a preformed tree with fz_buffers as values,
  37261. or it can be NULL for an empty tree.
  37262. """
  37263. return _mupdf.fz_new_tree_archive(tree)
  37264. def fz_new_type3_font(name, matrix):
  37265. r"""
  37266. Class-aware wrapper for `::fz_new_type3_font()`.
  37267. Create a new (empty) type3 font.
  37268. name: Name of font (or NULL).
  37269. matrix: Font matrix.
  37270. Returns a new font handle, or throws exception on
  37271. allocation failure.
  37272. """
  37273. return _mupdf.fz_new_type3_font(name, matrix)
  37274. def fz_new_xhtml_document_from_document(old_doc, opts):
  37275. r"""
  37276. Class-aware wrapper for `::fz_new_xhtml_document_from_document()`.
  37277. Use text extraction to convert the input document into XHTML,
  37278. then open the result as a new document that can be reflowed.
  37279. """
  37280. return _mupdf.fz_new_xhtml_document_from_document(old_doc, opts)
  37281. def fz_new_xmltext_device(out):
  37282. r"""
  37283. Class-aware wrapper for `::fz_new_xmltext_device()`.
  37284. Create a device to output raw information.
  37285. """
  37286. return _mupdf.fz_new_xmltext_device(out)
  37287. def fz_next_page(doc, loc):
  37288. r"""
  37289. Class-aware wrapper for `::fz_next_page()`.
  37290. Function to get the location of the next page (allowing for the
  37291. end of chapters etc). If at the end of the document, returns the
  37292. current location.
  37293. """
  37294. return _mupdf.fz_next_page(doc, loc)
  37295. def fz_normalize_vector(p):
  37296. r"""
  37297. Class-aware wrapper for `::fz_normalize_vector()`.
  37298. Normalize a vector to length one.
  37299. """
  37300. return _mupdf.fz_normalize_vector(p)
  37301. def fz_open_a85d(chain):
  37302. r"""
  37303. Class-aware wrapper for `::fz_open_a85d()`.
  37304. a85d filter performs ASCII 85 Decoding of data read
  37305. from the chained filter.
  37306. """
  37307. return _mupdf.fz_open_a85d(chain)
  37308. def fz_open_accelerated_document(filename, accel):
  37309. r"""
  37310. Class-aware wrapper for `::fz_open_accelerated_document()`.
  37311. Open a document file and read its basic structure so pages and
  37312. objects can be located. MuPDF will try to repair broken
  37313. documents (without actually changing the file contents).
  37314. The returned fz_document is used when calling most other
  37315. document related functions.
  37316. filename: a path to a file as it would be given to open(2).
  37317. """
  37318. return _mupdf.fz_open_accelerated_document(filename, accel)
  37319. def fz_open_accelerated_document_with_stream(magic, stream, accel):
  37320. r"""
  37321. Class-aware wrapper for `::fz_open_accelerated_document_with_stream()`.
  37322. Open a document using the specified stream object rather than
  37323. opening a file on disk.
  37324. magic: a string used to detect document type; either a file name
  37325. or mime-type.
  37326. stream: a stream of the document contents.
  37327. accel: NULL, or a stream of the 'accelerator' contents for this document.
  37328. NOTE: The caller retains ownership of 'stream' and 'accel' - the document will
  37329. take its own references if required.
  37330. """
  37331. return _mupdf.fz_open_accelerated_document_with_stream(magic, stream, accel)
  37332. def fz_open_accelerated_document_with_stream_and_dir(magic, stream, accel, dir):
  37333. r"""
  37334. Class-aware wrapper for `::fz_open_accelerated_document_with_stream_and_dir()`.
  37335. Open a document using the specified stream object rather than
  37336. opening a file on disk.
  37337. magic: a string used to detect document type; either a file name
  37338. or mime-type.
  37339. stream: a stream of the document contents.
  37340. accel: NULL, or a stream of the 'accelerator' contents for this document.
  37341. dir: NULL, or the 'directory context' for the stream contents.
  37342. NOTE: The caller retains ownership of 'stream', 'accel' and 'dir' - the document will
  37343. take its own references if required.
  37344. """
  37345. return _mupdf.fz_open_accelerated_document_with_stream_and_dir(magic, stream, accel, dir)
  37346. def fz_open_aesd(chain, key, keylen):
  37347. r"""
  37348. Class-aware wrapper for `::fz_open_aesd()`.
  37349. aesd filter performs AES decoding of data read from the chained
  37350. filter using the supplied key.
  37351. """
  37352. return _mupdf.fz_open_aesd(chain, key, keylen)
  37353. def fz_open_ahxd(chain):
  37354. r"""
  37355. Class-aware wrapper for `::fz_open_ahxd()`.
  37356. ahxd filter performs ASCII Hex decoding of data read
  37357. from the chained filter.
  37358. """
  37359. return _mupdf.fz_open_ahxd(chain)
  37360. def fz_open_arc4(chain, key, keylen):
  37361. r"""
  37362. Class-aware wrapper for `::fz_open_arc4()`.
  37363. arc4 filter performs RC4 decoding of data read from the chained
  37364. filter using the supplied key.
  37365. """
  37366. return _mupdf.fz_open_arc4(chain, key, keylen)
  37367. def fz_open_archive(filename):
  37368. r"""
  37369. Class-aware wrapper for `::fz_open_archive()`.
  37370. Open a zip or tar archive
  37371. Open a file and identify its archive type based on the archive
  37372. signature contained inside.
  37373. filename: a path to a file as it would be given to open(2).
  37374. """
  37375. return _mupdf.fz_open_archive(filename)
  37376. def fz_open_archive_entry(arch, name):
  37377. r"""
  37378. Class-aware wrapper for `::fz_open_archive_entry()`.
  37379. Opens an archive entry as a stream.
  37380. name: Entry name to look for, this must be an exact match to
  37381. the entry name in the archive.
  37382. Throws an exception if a matching entry cannot be found.
  37383. """
  37384. return _mupdf.fz_open_archive_entry(arch, name)
  37385. def fz_open_archive_with_stream(file):
  37386. r"""
  37387. Class-aware wrapper for `::fz_open_archive_with_stream()`.
  37388. Open zip or tar archive stream.
  37389. Open an archive using a seekable stream object rather than
  37390. opening a file or directory on disk.
  37391. """
  37392. return _mupdf.fz_open_archive_with_stream(file)
  37393. def fz_open_brotlid(chain):
  37394. r"""
  37395. Class-aware wrapper for `::fz_open_brotlid()`.
  37396. brotlid filter performs Brotli decoding of data read
  37397. from the chained filter.
  37398. """
  37399. return _mupdf.fz_open_brotlid(chain)
  37400. def fz_open_buffer(buf):
  37401. r"""
  37402. Class-aware wrapper for `::fz_open_buffer()`.
  37403. Open a buffer as a stream.
  37404. buf: The buffer to open. Ownership of the buffer is NOT passed
  37405. in (this function takes its own reference).
  37406. Returns pointer to newly created stream. May throw exceptions on
  37407. failure to allocate.
  37408. """
  37409. return _mupdf.fz_open_buffer(buf)
  37410. def fz_open_cfb_archive(filename):
  37411. r"""
  37412. Class-aware wrapper for `::fz_open_cfb_archive()`.
  37413. Open a cfb file as an archive.
  37414. An exception is thrown if the file is not recognised as a cfb.
  37415. filename: a path to an archive file as it would be given to
  37416. open(2).
  37417. """
  37418. return _mupdf.fz_open_cfb_archive(filename)
  37419. def fz_open_cfb_archive_with_stream(file):
  37420. r"""
  37421. Class-aware wrapper for `::fz_open_cfb_archive_with_stream()`.
  37422. Open a cfb file as an archive.
  37423. Open an archive using a seekable stream object rather than
  37424. opening a file or directory on disk.
  37425. An exception is thrown if the file is not recognised as a chm.
  37426. """
  37427. return _mupdf.fz_open_cfb_archive_with_stream(file)
  37428. def fz_open_compressed_buffer(arg_0):
  37429. r"""
  37430. Class-aware wrapper for `::fz_open_compressed_buffer()`.
  37431. Open a stream to read the decompressed version of a buffer.
  37432. """
  37433. return _mupdf.fz_open_compressed_buffer(arg_0)
  37434. def fz_open_concat(max, pad):
  37435. r"""
  37436. Class-aware wrapper for `::fz_open_concat()`.
  37437. Concat filter concatenates several streams into one.
  37438. """
  37439. return _mupdf.fz_open_concat(max, pad)
  37440. def fz_open_dctd(chain, color_transform, invert_cmyk, l2factor, jpegtables):
  37441. r"""
  37442. Class-aware wrapper for `::fz_open_dctd()`.
  37443. dctd filter performs DCT (JPEG) decoding of data read
  37444. from the chained filter.
  37445. color_transform implements the PDF color_transform option
  37446. use -1 for default behavior
  37447. use 0 to disable YUV-RGB / YCCK-CMYK transforms
  37448. use 1 to enable YUV-RGB / YCCK-CMYK transforms
  37449. invert_cmyk implements the necessary inversion for Photoshop CMYK images
  37450. use 0 if embedded in PDF
  37451. use 1 if not embedded in PDF
  37452. For subsampling on decode, set l2factor to the log2 of the
  37453. reduction required (therefore 0 = full size decode).
  37454. jpegtables is an optional stream from which the JPEG tables
  37455. can be read. Use NULL if not required.
  37456. """
  37457. return _mupdf.fz_open_dctd(chain, color_transform, invert_cmyk, l2factor, jpegtables)
  37458. def fz_open_directory(path):
  37459. r"""
  37460. Class-aware wrapper for `::fz_open_directory()`.
  37461. Open a directory as if it was an archive.
  37462. A special case where a directory is opened as if it was an
  37463. archive.
  37464. Note that for directories it is not possible to retrieve the
  37465. number of entries or list the entries. It is however possible
  37466. to check if the archive has a particular entry.
  37467. path: a path to a directory as it would be given to opendir(3).
  37468. """
  37469. return _mupdf.fz_open_directory(path)
  37470. def fz_open_document(filename):
  37471. r"""
  37472. Class-aware wrapper for `::fz_open_document()`.
  37473. Open a document file and read its basic structure so pages and
  37474. objects can be located. MuPDF will try to repair broken
  37475. documents (without actually changing the file contents).
  37476. The returned fz_document is used when calling most other
  37477. document related functions.
  37478. filename: a path to a file as it would be given to open(2).
  37479. """
  37480. return _mupdf.fz_open_document(filename)
  37481. def fz_open_document_with_buffer(magic, buffer):
  37482. r"""
  37483. Class-aware wrapper for `::fz_open_document_with_buffer()`.
  37484. Open a document using a buffer rather than opening a file on disk.
  37485. """
  37486. return _mupdf.fz_open_document_with_buffer(magic, buffer)
  37487. def fz_open_document_with_stream(magic, stream):
  37488. r"""
  37489. Class-aware wrapper for `::fz_open_document_with_stream()`.
  37490. Open a document using the specified stream object rather than
  37491. opening a file on disk.
  37492. magic: a string used to detect document type; either a file name
  37493. or mime-type.
  37494. stream: a stream representing the contents of the document file.
  37495. NOTE: The caller retains ownership of 'stream' - the document will take its
  37496. own reference if required.
  37497. """
  37498. return _mupdf.fz_open_document_with_stream(magic, stream)
  37499. def fz_open_document_with_stream_and_dir(magic, stream, dir):
  37500. r"""
  37501. Class-aware wrapper for `::fz_open_document_with_stream_and_dir()`.
  37502. Open a document using the specified stream object rather than
  37503. opening a file on disk.
  37504. magic: a string used to detect document type; either a file name
  37505. or mime-type.
  37506. stream: a stream representing the contents of the document file.
  37507. dir: a 'directory context' for those filetypes that need it.
  37508. NOTE: The caller retains ownership of 'stream' and 'dir' - the document will
  37509. take its own references if required.
  37510. """
  37511. return _mupdf.fz_open_document_with_stream_and_dir(magic, stream, dir)
  37512. def fz_open_endstream_filter(chain, len, offset):
  37513. r"""
  37514. Class-aware wrapper for `::fz_open_endstream_filter()`.
  37515. The endstream filter reads a PDF substream, and starts to look
  37516. for an 'endstream' token after the specified length.
  37517. """
  37518. return _mupdf.fz_open_endstream_filter(chain, len, offset)
  37519. def fz_open_faxd(chain, k, end_of_line, encoded_byte_align, columns, rows, end_of_block, black_is_1):
  37520. r"""
  37521. Class-aware wrapper for `::fz_open_faxd()`.
  37522. faxd filter performs FAX decoding of data read from
  37523. the chained filter.
  37524. k: see fax specification (fax default is 0).
  37525. end_of_line: whether we expect end of line markers (fax default
  37526. is 0).
  37527. encoded_byte_align: whether we align to bytes after each line
  37528. (fax default is 0).
  37529. columns: how many columns in the image (fax default is 1728).
  37530. rows: 0 for unspecified or the number of rows of data to expect.
  37531. end_of_block: whether we expect end of block markers (fax
  37532. default is 1).
  37533. black_is_1: determines the polarity of the image (fax default is
  37534. 0).
  37535. """
  37536. return _mupdf.fz_open_faxd(chain, k, end_of_line, encoded_byte_align, columns, rows, end_of_block, black_is_1)
  37537. def fz_open_file(filename):
  37538. r"""
  37539. Class-aware wrapper for `::fz_open_file()`.
  37540. Open the named file and wrap it in a stream.
  37541. filename: Path to a file. On non-Windows machines the filename
  37542. should be exactly as it would be passed to fopen(2). On Windows
  37543. machines, the path should be UTF-8 encoded so that non-ASCII
  37544. characters can be represented. Other platforms do the encoding
  37545. as standard anyway (and in most cases, particularly for MacOS
  37546. and Linux, the encoding they use is UTF-8 anyway).
  37547. """
  37548. return _mupdf.fz_open_file(filename)
  37549. def fz_open_file_autodelete(filename):
  37550. r"""
  37551. Class-aware wrapper for `::fz_open_file_autodelete()`.
  37552. Do the same as fz_open_file, but delete the file upon close.
  37553. """
  37554. return _mupdf.fz_open_file_autodelete(filename)
  37555. def fz_open_file_ptr_no_close(file):
  37556. r"""
  37557. Class-aware wrapper for `::fz_open_file_ptr_no_close()`.
  37558. Create a stream from a FILE * that will not be closed
  37559. when the stream is dropped.
  37560. """
  37561. return _mupdf.fz_open_file_ptr_no_close(file)
  37562. def fz_open_flated(chain, window_bits):
  37563. r"""
  37564. Class-aware wrapper for `::fz_open_flated()`.
  37565. flated filter performs LZ77 decoding (inflating) of data read
  37566. from the chained filter.
  37567. window_bits: How large a decompression window to use. Typically
  37568. 15. A negative number, -n, means to use n bits, but to expect
  37569. raw data with no header.
  37570. """
  37571. return _mupdf.fz_open_flated(chain, window_bits)
  37572. def fz_open_image_decomp_stream(arg_0, arg_1, l2factor):
  37573. r"""
  37574. Class-aware wrapper for `::fz_open_image_decomp_stream()`.
  37575. This function has out-params. Python/C# wrappers look like:
  37576. `fz_open_image_decomp_stream(::fz_stream *arg_0, ::fz_compression_params *arg_1)` => `(fz_stream *, int l2factor)`
  37577. Open a stream to read the decompressed version of another stream
  37578. with optional log2 subsampling.
  37579. """
  37580. return _mupdf.fz_open_image_decomp_stream(arg_0, arg_1, l2factor)
  37581. def fz_open_image_decomp_stream_from_buffer(arg_0, l2factor):
  37582. r"""
  37583. Class-aware wrapper for `::fz_open_image_decomp_stream_from_buffer()`.
  37584. This function has out-params. Python/C# wrappers look like:
  37585. `fz_open_image_decomp_stream_from_buffer(::fz_compressed_buffer *arg_0)` => `(fz_stream *, int l2factor)`
  37586. Open a stream to read the decompressed version of a buffer,
  37587. with optional log2 subsampling.
  37588. l2factor = NULL for no subsampling, or a pointer to an integer
  37589. containing the maximum log2 subsample factor acceptable (0 =
  37590. none, 1 = halve dimensions, 2 = quarter dimensions etc). If
  37591. non-NULL, then *l2factor will be updated on exit with the actual
  37592. log2 subsample factor achieved.
  37593. """
  37594. return _mupdf.fz_open_image_decomp_stream_from_buffer(arg_0, l2factor)
  37595. def fz_open_jbig2d(chain, globals, embedded):
  37596. r"""
  37597. Class-aware wrapper for `::fz_open_jbig2d()`.
  37598. Open a filter that performs jbig2 decompression on the chained
  37599. stream, using the optional globals record.
  37600. """
  37601. return _mupdf.fz_open_jbig2d(chain, globals, embedded)
  37602. def fz_open_leecher(chain, buf):
  37603. r"""
  37604. Class-aware wrapper for `::fz_open_leecher()`.
  37605. Attach a filter to a stream that will store any
  37606. characters read from the stream into the supplied buffer.
  37607. chain: The underlying stream to leech from.
  37608. buf: The buffer into which the read data should be appended.
  37609. The buffer will be resized as required.
  37610. Returns pointer to newly created stream. May throw exceptions on
  37611. failure to allocate.
  37612. """
  37613. return _mupdf.fz_open_leecher(chain, buf)
  37614. def fz_open_libarchive_archive(filename):
  37615. r"""
  37616. Class-aware wrapper for `::fz_open_libarchive_archive()`.
  37617. Open an archive using libarchive.
  37618. An exception is thrown if the file is not supported by libarchive.
  37619. filename: a path to an archive file as it would be given to
  37620. open(2).
  37621. """
  37622. return _mupdf.fz_open_libarchive_archive(filename)
  37623. def fz_open_libarchive_archive_with_stream(file):
  37624. r"""
  37625. Class-aware wrapper for `::fz_open_libarchive_archive_with_stream()`.
  37626. Open an archive using libarchive.
  37627. Open an archive using a seekable stream object rather than
  37628. opening a file or directory on disk.
  37629. An exception is thrown if the stream is not supported by libarchive.
  37630. """
  37631. return _mupdf.fz_open_libarchive_archive_with_stream(file)
  37632. def fz_open_libarchived(chain):
  37633. r"""
  37634. Class-aware wrapper for `::fz_open_libarchived()`.
  37635. libarchived filter performs generic compressed decoding of data
  37636. in any format understood by libarchive from the chained filter.
  37637. This will throw an exception if libarchive is not built in, or
  37638. if the compression format is not recognised.
  37639. """
  37640. return _mupdf.fz_open_libarchived(chain)
  37641. def fz_open_lzwd(chain, early_change, min_bits, reverse_bits, old_tiff):
  37642. r"""
  37643. Class-aware wrapper for `::fz_open_lzwd()`.
  37644. lzwd filter performs LZW decoding of data read from the chained
  37645. filter.
  37646. early_change: (Default 1) specifies whether to change codes 1
  37647. bit early.
  37648. min_bits: (Default 9) specifies the minimum number of bits to
  37649. use.
  37650. reverse_bits: (Default 0) allows for compatibility with gif and
  37651. old style tiffs (1).
  37652. old_tiff: (Default 0) allows for different handling of the clear
  37653. code, as found in old style tiffs.
  37654. """
  37655. return _mupdf.fz_open_lzwd(chain, early_change, min_bits, reverse_bits, old_tiff)
  37656. def fz_open_memory(data, len):
  37657. r"""
  37658. Class-aware wrapper for `::fz_open_memory()`.
  37659. Open a block of memory as a stream.
  37660. data: Pointer to start of data block. Ownership of the data
  37661. block is NOT passed in.
  37662. len: Number of bytes in data block.
  37663. Returns pointer to newly created stream. May throw exceptions on
  37664. failure to allocate.
  37665. """
  37666. return _mupdf.fz_open_memory(data, len)
  37667. def fz_open_null_filter(chain, len, offset):
  37668. r"""
  37669. Class-aware wrapper for `::fz_open_null_filter()`.
  37670. The null filter reads a specified amount of data from the
  37671. substream.
  37672. """
  37673. return _mupdf.fz_open_null_filter(chain, len, offset)
  37674. def fz_open_predict(chain, predictor, columns, colors, bpc):
  37675. r"""
  37676. Class-aware wrapper for `::fz_open_predict()`.
  37677. predict filter performs pixel prediction on data read from
  37678. the chained filter.
  37679. predictor: 1 = copy, 2 = tiff, other = inline PNG predictor
  37680. columns: width of image in pixels
  37681. colors: number of components.
  37682. bpc: bits per component (typically 8)
  37683. """
  37684. return _mupdf.fz_open_predict(chain, predictor, columns, colors, bpc)
  37685. def fz_open_range_filter(chain, ranges, nranges):
  37686. r"""
  37687. Class-aware wrapper for `::fz_open_range_filter()`.
  37688. The range filter copies data from specified ranges of the
  37689. chained stream.
  37690. """
  37691. return _mupdf.fz_open_range_filter(chain, ranges, nranges)
  37692. def fz_open_reflowed_document(underdoc, opts):
  37693. r"""Class-aware wrapper for `::fz_open_reflowed_document()`."""
  37694. return _mupdf.fz_open_reflowed_document(underdoc, opts)
  37695. def fz_open_rld(chain):
  37696. r"""
  37697. Class-aware wrapper for `::fz_open_rld()`.
  37698. rld filter performs Run Length Decoding of data read
  37699. from the chained filter.
  37700. """
  37701. return _mupdf.fz_open_rld(chain)
  37702. def fz_open_sgilog16(chain, w):
  37703. r"""
  37704. Class-aware wrapper for `::fz_open_sgilog16()`.
  37705. SGI Log 16bit (greyscale) decode from the chained filter.
  37706. Decodes lines of w pixels to 8bpp greyscale.
  37707. """
  37708. return _mupdf.fz_open_sgilog16(chain, w)
  37709. def fz_open_sgilog24(chain, w):
  37710. r"""
  37711. Class-aware wrapper for `::fz_open_sgilog24()`.
  37712. SGI Log 24bit (LUV) decode from the chained filter.
  37713. Decodes lines of w pixels to 8bpc rgb.
  37714. """
  37715. return _mupdf.fz_open_sgilog24(chain, w)
  37716. def fz_open_sgilog32(chain, w):
  37717. r"""
  37718. Class-aware wrapper for `::fz_open_sgilog32()`.
  37719. SGI Log 32bit (LUV) decode from the chained filter.
  37720. Decodes lines of w pixels to 8bpc rgb.
  37721. """
  37722. return _mupdf.fz_open_sgilog32(chain, w)
  37723. def fz_open_tar_archive(filename):
  37724. r"""
  37725. Class-aware wrapper for `::fz_open_tar_archive()`.
  37726. Open a tar archive file.
  37727. An exception is thrown if the file is not a tar archive as
  37728. indicated by the presence of a tar signature.
  37729. filename: a path to a tar archive file as it would be given to
  37730. open(2).
  37731. """
  37732. return _mupdf.fz_open_tar_archive(filename)
  37733. def fz_open_tar_archive_with_stream(file):
  37734. r"""
  37735. Class-aware wrapper for `::fz_open_tar_archive_with_stream()`.
  37736. Open a tar archive stream.
  37737. Open an archive using a seekable stream object rather than
  37738. opening a file or directory on disk.
  37739. An exception is thrown if the stream is not a tar archive as
  37740. indicated by the presence of a tar signature.
  37741. """
  37742. return _mupdf.fz_open_tar_archive_with_stream(file)
  37743. def fz_open_thunder(chain, w):
  37744. r"""
  37745. Class-aware wrapper for `::fz_open_thunder()`.
  37746. 4bit greyscale Thunderscan decoding from the chained filter.
  37747. Decodes lines of w pixels to 8bpp greyscale.
  37748. """
  37749. return _mupdf.fz_open_thunder(chain, w)
  37750. def fz_open_zip_archive(path):
  37751. r"""
  37752. Class-aware wrapper for `::fz_open_zip_archive()`.
  37753. Open a zip archive file.
  37754. An exception is thrown if the file is not a zip archive as
  37755. indicated by the presence of a zip signature.
  37756. filename: a path to a zip archive file as it would be given to
  37757. open(2).
  37758. """
  37759. return _mupdf.fz_open_zip_archive(path)
  37760. def fz_open_zip_archive_with_stream(file):
  37761. r"""
  37762. Class-aware wrapper for `::fz_open_zip_archive_with_stream()`.
  37763. Open a zip archive stream.
  37764. Open an archive using a seekable stream object rather than
  37765. opening a file or directory on disk.
  37766. An exception is thrown if the stream is not a zip archive as
  37767. indicated by the presence of a zip signature.
  37768. """
  37769. return _mupdf.fz_open_zip_archive_with_stream(file)
  37770. def fz_opt_from_list(opt, optlist):
  37771. r"""
  37772. Class-aware wrapper for `::fz_opt_from_list()`.
  37773. Return the index of a (case-insensitive) option within an optlist.
  37774. For instance for optlist = "Foo|Bar|Baz", and opt = "bar",
  37775. this would return 1.
  37776. If the optlist ends with "|*" then that is a catch all case and
  37777. matches all options allowing the caller to process it itself.
  37778. fz_optarg will be set to point to the option, and the return
  37779. value will be the index of the '*' option within that list.
  37780. If an optlist entry ends with ':' (e.g. "Foo:") then that option
  37781. may have suboptions appended to it (for example "JPG:80") and
  37782. fz_optarg will be set to point at "80". Otherwise fz_optarg will
  37783. be set to NULL.
  37784. In the event of no-match found, prints an error and returns -1.
  37785. """
  37786. return _mupdf.fz_opt_from_list(opt, optlist)
  37787. def fz_option_eq(a, b):
  37788. r"""
  37789. Class-aware wrapper for `::fz_option_eq()`.
  37790. Check to see if an option, a, from a string matches a reference
  37791. option, b.
  37792. (i.e. a could be 'foo' or 'foo,bar...' etc, but b can only be
  37793. 'foo'.)
  37794. """
  37795. return _mupdf.fz_option_eq(a, b)
  37796. def fz_optpath(opt):
  37797. r"""
  37798. Class-aware wrapper for `::fz_optpath()`.
  37799. Convert "-" to "/dev/stdout" for use with command lines.
  37800. Also converts "nul" and "con" on Windows.
  37801. """
  37802. return _mupdf.fz_optpath(opt)
  37803. def fz_outline_glyph(font, gid, ctm):
  37804. r"""
  37805. Class-aware wrapper for `::fz_outline_glyph()`.
  37806. Look a glyph up from a font, and return the outline of the
  37807. glyph using the given transform.
  37808. The caller owns the returned path, and so is responsible for
  37809. ensuring that it eventually gets dropped.
  37810. """
  37811. return _mupdf.fz_outline_glyph(font, gid, ctm)
  37812. def fz_outline_iterator_delete(iter):
  37813. r"""
  37814. Class-aware wrapper for `::fz_outline_iterator_delete()`.
  37815. Delete the current item.
  37816. This implicitly moves us to the 'next' item, and the return code is as for fz_outline_iterator_next.
  37817. """
  37818. return _mupdf.fz_outline_iterator_delete(iter)
  37819. def fz_outline_iterator_down(iter):
  37820. r"""Class-aware wrapper for `::fz_outline_iterator_down()`."""
  37821. return _mupdf.fz_outline_iterator_down(iter)
  37822. def fz_outline_iterator_item(iter):
  37823. r"""
  37824. Class-aware wrapper for `::fz_outline_iterator_item()`.
  37825. Call to get the current outline item.
  37826. Can return NULL. The item is only valid until the next call.
  37827. """
  37828. return _mupdf.fz_outline_iterator_item(iter)
  37829. def fz_outline_iterator_next(iter):
  37830. r"""
  37831. Class-aware wrapper for `::fz_outline_iterator_next()`.
  37832. Calls to move the iterator position.
  37833. A negative return value means we could not move as requested. Otherwise:
  37834. 0 = the final position has a valid item.
  37835. 1 = not a valid item, but we can insert an item here.
  37836. """
  37837. return _mupdf.fz_outline_iterator_next(iter)
  37838. def fz_outline_iterator_prev(iter):
  37839. r"""Class-aware wrapper for `::fz_outline_iterator_prev()`."""
  37840. return _mupdf.fz_outline_iterator_prev(iter)
  37841. def fz_outline_iterator_up(iter):
  37842. r"""Class-aware wrapper for `::fz_outline_iterator_up()`."""
  37843. return _mupdf.fz_outline_iterator_up(iter)
  37844. def fz_output_accelerator(doc, accel):
  37845. r"""
  37846. Class-aware wrapper for `::fz_output_accelerator()`.
  37847. Output accelerator data for the document to a given output
  37848. stream.
  37849. """
  37850. return _mupdf.fz_output_accelerator(doc, accel)
  37851. def fz_output_supports_stream(out):
  37852. r"""
  37853. Class-aware wrapper for `::fz_output_supports_stream()`.
  37854. Query whether a given fz_output supports fz_stream_from_output.
  37855. """
  37856. return _mupdf.fz_output_supports_stream(out)
  37857. def fz_output_xml(out, item, level):
  37858. r"""
  37859. Class-aware wrapper for `::fz_output_xml()`.
  37860. Pretty-print an XML tree to given output.
  37861. """
  37862. return _mupdf.fz_output_xml(out, item, level)
  37863. def fz_pack_path(pack, path):
  37864. r"""
  37865. Class-aware wrapper for `::fz_pack_path()`.
  37866. Pack a path into the given block.
  37867. To minimise the size of paths, this function allows them to be
  37868. packed into a buffer with other information. Paths can be used
  37869. interchangeably regardless of how they are packed.
  37870. pack: Pointer to a block of data to pack the path into. Should
  37871. be aligned by the caller to the same alignment as required for
  37872. a fz_path pointer.
  37873. path: The path to pack.
  37874. Returns the number of bytes within the block used. Callers can
  37875. access the packed path data by casting the value of pack on
  37876. entry to be a fz_path *.
  37877. Throws exceptions on failure to allocate.
  37878. Implementation details: Paths can be 'unpacked', 'flat', or
  37879. 'open'. Standard paths, as created are 'unpacked'. Paths
  37880. will be packed as 'flat', unless they are too large
  37881. (where large indicates that they exceed some private
  37882. implementation defined limits, currently including having
  37883. more than 256 coordinates or commands).
  37884. Large paths are 'open' packed as a header into the given block,
  37885. plus pointers to other data blocks.
  37886. Users should not have to care about whether paths are 'open'
  37887. or 'flat' packed. Simply pack a path (if required), and then
  37888. forget about the details.
  37889. """
  37890. return _mupdf.fz_pack_path(pack, path)
  37891. def fz_packed_path_size(path):
  37892. r"""
  37893. Class-aware wrapper for `::fz_packed_path_size()`.
  37894. Return the number of bytes required to pack a path.
  37895. """
  37896. return _mupdf.fz_packed_path_size(path)
  37897. def fz_page_label(page, buf, size):
  37898. r"""
  37899. Class-aware wrapper for `::fz_page_label()`.
  37900. Get page label for a given page.
  37901. """
  37902. return _mupdf.fz_page_label(page, buf, size)
  37903. def fz_page_number_from_location(doc, loc):
  37904. r"""
  37905. Class-aware wrapper for `::fz_page_number_from_location()`.
  37906. Converts from chapter+page to page number. This may cause many
  37907. chapters to be laid out in order to calculate the number of
  37908. pages within those chapters.
  37909. """
  37910. return _mupdf.fz_page_number_from_location(doc, loc)
  37911. def fz_page_presentation(page, transition, duration):
  37912. r"""
  37913. Class-aware wrapper for `::fz_page_presentation()`.
  37914. This function has out-params. Python/C# wrappers look like:
  37915. `fz_page_presentation(::fz_page *page, ::fz_transition *transition)` => `(fz_transition *, float duration)`
  37916. Get the presentation details for a given page.
  37917. transition: A pointer to a transition struct to fill out.
  37918. duration: A pointer to a place to set the page duration in
  37919. seconds. Will be set to 0 if no transition is specified for the
  37920. page.
  37921. Returns: a pointer to the transition structure, or NULL if there
  37922. is no transition specified for the page.
  37923. """
  37924. return _mupdf.fz_page_presentation(page, transition, duration)
  37925. def fz_page_separations(page):
  37926. r"""
  37927. Class-aware wrapper for `::fz_page_separations()`.
  37928. Get the separations details for a page.
  37929. This will be NULL, unless the format specifically supports
  37930. separations (such as PDF files). May be NULL even
  37931. so, if there are no separations on a page.
  37932. Returns a reference that must be dropped.
  37933. """
  37934. return _mupdf.fz_page_separations(page)
  37935. def fz_page_uses_overprint(page):
  37936. r"""
  37937. Class-aware wrapper for `::fz_page_uses_overprint()`.
  37938. Query if a given page requires overprint.
  37939. """
  37940. return _mupdf.fz_page_uses_overprint(page)
  37941. def fz_paint_shade(shade, override_cs, ctm, dest, color_params, bbox, eop, cache):
  37942. r"""
  37943. Class-aware wrapper for `::fz_paint_shade()`.
  37944. This function has out-params. Python/C# wrappers look like:
  37945. `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)` =>
  37946. Render a shade to a given pixmap.
  37947. shade: The shade to paint.
  37948. override_cs: NULL, or colorspace to override the shades
  37949. inbuilt colorspace.
  37950. ctm: The transform to apply.
  37951. dest: The pixmap to render into.
  37952. color_params: The color rendering settings
  37953. bbox: Pointer to a bounding box to limit the rendering
  37954. of the shade.
  37955. eop: NULL, or pointer to overprint bitmap.
  37956. cache: *cache is used to cache color information. If *cache is NULL it
  37957. is set to point to a new fz_shade_color_cache. If cache is NULL it is
  37958. ignored.
  37959. """
  37960. return _mupdf.fz_paint_shade(shade, override_cs, ctm, dest, color_params, bbox, eop, cache)
  37961. def fz_paragraph_break(page):
  37962. r"""
  37963. Class-aware wrapper for `::fz_paragraph_break()`.
  37964. Attempt to break paragraphs at plausible places.
  37965. """
  37966. return _mupdf.fz_paragraph_break(page)
  37967. def fz_parse_page_range(s, a, b, n):
  37968. r"""
  37969. Class-aware wrapper for `::fz_parse_page_range()`.
  37970. This function has out-params. Python/C# wrappers look like:
  37971. `fz_parse_page_range(const char *s, int n)` => `(const char *, int a, int b)`
  37972. """
  37973. return _mupdf.fz_parse_page_range(s, a, b, n)
  37974. def fz_parse_pdfocr_options(opts, args):
  37975. r"""
  37976. Class-aware wrapper for `::fz_parse_pdfocr_options()`.
  37977. Parse PDFOCR options.
  37978. Currently defined options and values are as follows:
  37979. compression=none: No compression
  37980. compression=flate: Flate compression
  37981. strip-height=n: Strip height (default 16)
  37982. ocr-language=<lang>: OCR Language (default eng)
  37983. ocr-datadir=<datadir>: OCR data path (default rely on TESSDATA_PREFIX)
  37984. """
  37985. return _mupdf.fz_parse_pdfocr_options(opts, args)
  37986. def fz_parse_stext_options(opts, string):
  37987. r"""
  37988. Class-aware wrapper for `::fz_parse_stext_options()`.
  37989. Parse stext device options from a comma separated key-value
  37990. string.
  37991. """
  37992. return _mupdf.fz_parse_stext_options(opts, string)
  37993. def fz_parse_xml(buf, preserve_white):
  37994. r"""
  37995. Class-aware wrapper for `::fz_parse_xml()`.
  37996. Parse the contents of buffer into a tree of xml nodes.
  37997. preserve_white: whether to keep or delete all-whitespace nodes.
  37998. """
  37999. return _mupdf.fz_parse_xml(buf, preserve_white)
  38000. def fz_parse_xml_archive_entry(dir, filename, preserve_white):
  38001. r"""
  38002. Class-aware wrapper for `::fz_parse_xml_archive_entry()`.
  38003. Parse the contents of an archive entry into a tree of xml nodes.
  38004. preserve_white: whether to keep or delete all-whitespace nodes.
  38005. """
  38006. return _mupdf.fz_parse_xml_archive_entry(dir, filename, preserve_white)
  38007. def fz_parse_xml_from_html5(buf):
  38008. r"""
  38009. Class-aware wrapper for `::fz_parse_xml_from_html5()`.
  38010. Parse the contents of a buffer into a tree of XML nodes,
  38011. using the HTML5 parsing algorithm.
  38012. """
  38013. return _mupdf.fz_parse_xml_from_html5(buf)
  38014. def fz_parse_xml_stream(stream, preserve_white):
  38015. r"""
  38016. Class-aware wrapper for `::fz_parse_xml_stream()`.
  38017. Parse the contents of buffer into a tree of xml nodes.
  38018. preserve_white: whether to keep or delete all-whitespace nodes.
  38019. """
  38020. return _mupdf.fz_parse_xml_stream(stream, preserve_white)
  38021. def fz_path_is_rect(path, ctm):
  38022. r"""
  38023. Class-aware wrapper for `::fz_path_is_rect()`.
  38024. Check whether a given path, under the given transform
  38025. is an axis-aligned rectangle.
  38026. We accept zero width or height rectangles, so
  38027. "move 100, 100; line 200, 100" would count as
  38028. a rectangle too.
  38029. """
  38030. return _mupdf.fz_path_is_rect(path, ctm)
  38031. def fz_path_is_rect_with_bounds(path, ctm, bounds):
  38032. r"""
  38033. Class-aware wrapper for `::fz_path_is_rect_with_bounds()`.
  38034. Check whether a given path, under the given transform
  38035. is an axis-aligned rectangle.
  38036. We accept zero width or height rectangles, so
  38037. "move 100, 100; line 200, 100" would count as
  38038. a rectangle too.
  38039. bounds = NULL, or place to return the rectangle
  38040. bounds if the path is a rectangle.
  38041. """
  38042. return _mupdf.fz_path_is_rect_with_bounds(path, ctm, bounds)
  38043. def fz_pcl_preset(opts, preset):
  38044. r"""
  38045. Class-aware wrapper for `::fz_pcl_preset()`.
  38046. Initialize PCL option struct for a given preset.
  38047. Currently defined presets include:
  38048. generic Generic PCL printer
  38049. ljet4 HP DeskJet
  38050. dj500 HP DeskJet 500
  38051. fs600 Kyocera FS-600
  38052. lj HP LaserJet, HP LaserJet Plus
  38053. lj2 HP LaserJet IIp, HP LaserJet IId
  38054. lj3 HP LaserJet III
  38055. lj3d HP LaserJet IIId
  38056. lj4 HP LaserJet 4
  38057. lj4pl HP LaserJet 4 PL
  38058. lj4d HP LaserJet 4d
  38059. lp2563b HP 2563B line printer
  38060. oce9050 Oce 9050 Line printer
  38061. """
  38062. return _mupdf.fz_pcl_preset(opts, preset)
  38063. def fz_pdfocr_band_writer_set_progress(writer, progress_fn, progress_arg):
  38064. r"""
  38065. Class-aware wrapper for `::fz_pdfocr_band_writer_set_progress()`.
  38066. Set the progress callback for a pdfocr bandwriter.
  38067. """
  38068. return _mupdf.fz_pdfocr_band_writer_set_progress(writer, progress_fn, progress_arg)
  38069. def fz_pdfocr_writer_set_progress(writer, progress, arg_2):
  38070. r"""Class-aware wrapper for `::fz_pdfocr_writer_set_progress()`."""
  38071. return _mupdf.fz_pdfocr_writer_set_progress(writer, progress, arg_2)
  38072. def fz_peek_byte(stm):
  38073. r"""
  38074. Class-aware wrapper for `::fz_peek_byte()`.
  38075. Peek at the next byte in a stream.
  38076. stm: The stream to peek at.
  38077. Returns -1 for EOF, or the next byte that will be read.
  38078. """
  38079. return _mupdf.fz_peek_byte(stm)
  38080. def fz_pixmap_alpha(pix):
  38081. r"""
  38082. Class-aware wrapper for `::fz_pixmap_alpha()`.
  38083. Return the number of alpha planes in a pixmap.
  38084. Returns the number of alphas. Does not throw exceptions.
  38085. """
  38086. return _mupdf.fz_pixmap_alpha(pix)
  38087. def fz_pixmap_bbox(pix):
  38088. r"""
  38089. Class-aware wrapper for `::fz_pixmap_bbox()`.
  38090. Return the bounding box for a pixmap.
  38091. """
  38092. return _mupdf.fz_pixmap_bbox(pix)
  38093. def fz_pixmap_colorants(pix):
  38094. r"""
  38095. Class-aware wrapper for `::fz_pixmap_colorants()`.
  38096. Return the number of colorants in a pixmap.
  38097. Returns the number of colorants (components, less any spots and
  38098. alpha).
  38099. """
  38100. return _mupdf.fz_pixmap_colorants(pix)
  38101. def fz_pixmap_colorspace(pix):
  38102. r"""
  38103. Class-aware wrapper for `::fz_pixmap_colorspace()`.
  38104. Return the colorspace of a pixmap
  38105. Returns colorspace.
  38106. """
  38107. return _mupdf.fz_pixmap_colorspace(pix)
  38108. def fz_pixmap_components(pix):
  38109. r"""
  38110. Class-aware wrapper for `::fz_pixmap_components()`.
  38111. Return the number of components in a pixmap.
  38112. Returns the number of components (including spots and alpha).
  38113. """
  38114. return _mupdf.fz_pixmap_components(pix)
  38115. def fz_pixmap_height(pix):
  38116. r"""
  38117. Class-aware wrapper for `::fz_pixmap_height()`.
  38118. Return the height of the pixmap in pixels.
  38119. """
  38120. return _mupdf.fz_pixmap_height(pix)
  38121. def fz_pixmap_image_tile(cimg):
  38122. r"""
  38123. Class-aware wrapper for `::fz_pixmap_image_tile()`.
  38124. Retrieve the underlying fz_pixmap for an image.
  38125. Returns a pointer to the underlying fz_pixmap for an image,
  38126. or NULL if this image is not based upon an fz_pixmap.
  38127. No reference is returned. Lifespan is limited to that of
  38128. the image itself. If required, use fz_keep_pixmap to take
  38129. a reference to keep it longer.
  38130. """
  38131. return _mupdf.fz_pixmap_image_tile(cimg)
  38132. def fz_pixmap_samples(pix):
  38133. r"""
  38134. Class-aware wrapper for `::fz_pixmap_samples()`.
  38135. Returns a pointer to the pixel data of a pixmap.
  38136. Returns the pointer.
  38137. """
  38138. return _mupdf.fz_pixmap_samples(pix)
  38139. def fz_pixmap_samples_int(pixmap):
  38140. r"""Class-aware wrapper for `::fz_pixmap_samples_int()`."""
  38141. return _mupdf.fz_pixmap_samples_int(pixmap)
  38142. def fz_pixmap_size(pix):
  38143. r"""
  38144. Class-aware wrapper for `::fz_pixmap_size()`.
  38145. Return sizeof fz_pixmap plus size of data, in bytes.
  38146. """
  38147. return _mupdf.fz_pixmap_size(pix)
  38148. def fz_pixmap_spots(pix):
  38149. r"""
  38150. Class-aware wrapper for `::fz_pixmap_spots()`.
  38151. Return the number of spots in a pixmap.
  38152. Returns the number of spots (components, less colorants and
  38153. alpha). Does not throw exceptions.
  38154. """
  38155. return _mupdf.fz_pixmap_spots(pix)
  38156. def fz_pixmap_stride(pix):
  38157. r"""
  38158. Class-aware wrapper for `::fz_pixmap_stride()`.
  38159. Return the number of bytes in a row in the pixmap.
  38160. """
  38161. return _mupdf.fz_pixmap_stride(pix)
  38162. def fz_pixmap_width(pix):
  38163. r"""
  38164. Class-aware wrapper for `::fz_pixmap_width()`.
  38165. Return the width of the pixmap in pixels.
  38166. """
  38167. return _mupdf.fz_pixmap_width(pix)
  38168. def fz_pixmap_x(pix):
  38169. r"""
  38170. Class-aware wrapper for `::fz_pixmap_x()`.
  38171. Return the x value of the pixmap in pixels.
  38172. """
  38173. return _mupdf.fz_pixmap_x(pix)
  38174. def fz_pixmap_y(pix):
  38175. r"""
  38176. Class-aware wrapper for `::fz_pixmap_y()`.
  38177. Return the y value of the pixmap in pixels.
  38178. """
  38179. return _mupdf.fz_pixmap_y(pix)
  38180. def fz_place_story(story, where, filled):
  38181. r"""Class-aware wrapper for `::fz_place_story()`."""
  38182. return _mupdf.fz_place_story(story, where, filled)
  38183. def fz_place_story_flags(story, where, filled, flags):
  38184. r"""Class-aware wrapper for `::fz_place_story_flags()`."""
  38185. return _mupdf.fz_place_story_flags(story, where, filled, flags)
  38186. def fz_pool_alloc(pool, size):
  38187. r"""
  38188. Class-aware wrapper for `::fz_pool_alloc()`.
  38189. Allocate a block of size bytes from the pool.
  38190. """
  38191. return _mupdf.fz_pool_alloc(pool, size)
  38192. def fz_pool_size(pool):
  38193. r"""
  38194. Class-aware wrapper for `::fz_pool_size()`.
  38195. The current size of the pool.
  38196. The number of bytes of storage currently allocated to the pool.
  38197. This is the total of the storage used for the blocks making
  38198. up the pool, rather then total of the allocated blocks so far,
  38199. so it will increase in 'lumps'.
  38200. from the pool, then the pool size may still be X
  38201. """
  38202. return _mupdf.fz_pool_size(pool)
  38203. def fz_pool_strdup(pool, s):
  38204. r"""
  38205. Class-aware wrapper for `::fz_pool_strdup()`.
  38206. strdup equivalent allocating from the pool.
  38207. """
  38208. return _mupdf.fz_pool_strdup(pool, s)
  38209. def fz_pop_clip(dev):
  38210. r"""Class-aware wrapper for `::fz_pop_clip()`."""
  38211. return _mupdf.fz_pop_clip(dev)
  38212. def fz_post_scale(m, sx, sy):
  38213. r"""
  38214. Class-aware wrapper for `::fz_post_scale()`.
  38215. Scale a matrix by postmultiplication.
  38216. m: Pointer to the matrix to scale
  38217. sx, sy: Scaling factors along the X- and Y-axes. A scaling
  38218. factor of 1.0 will not cause any scaling along the relevant
  38219. axis.
  38220. Returns m (updated).
  38221. """
  38222. return _mupdf.fz_post_scale(m, sx, sy)
  38223. def fz_pre_rotate(m, degrees):
  38224. r"""
  38225. Class-aware wrapper for `::fz_pre_rotate()`.
  38226. Rotate a transformation by premultiplying.
  38227. The premultiplied matrix is of the form
  38228. [ cos(deg) sin(deg) -sin(deg) cos(deg) 0 0 ].
  38229. m: Pointer to matrix to premultiply.
  38230. degrees: Degrees of counter clockwise rotation. Values less
  38231. than zero and greater than 360 are handled as expected.
  38232. Returns m (updated).
  38233. """
  38234. return _mupdf.fz_pre_rotate(m, degrees)
  38235. def fz_pre_scale(m, sx, sy):
  38236. r"""
  38237. Class-aware wrapper for `::fz_pre_scale()`.
  38238. Scale a matrix by premultiplication.
  38239. m: Pointer to the matrix to scale
  38240. sx, sy: Scaling factors along the X- and Y-axes. A scaling
  38241. factor of 1.0 will not cause any scaling along the relevant
  38242. axis.
  38243. Returns m (updated).
  38244. """
  38245. return _mupdf.fz_pre_scale(m, sx, sy)
  38246. def fz_pre_shear(m, sx, sy):
  38247. r"""
  38248. Class-aware wrapper for `::fz_pre_shear()`.
  38249. Premultiply a matrix with a shearing matrix.
  38250. The shearing matrix is of the form [ 1 sy sx 1 0 0 ].
  38251. m: pointer to matrix to premultiply
  38252. sx, sy: Shearing factors. A shearing factor of 0.0 will not
  38253. cause any shearing along the relevant axis.
  38254. Returns m (updated).
  38255. """
  38256. return _mupdf.fz_pre_shear(m, sx, sy)
  38257. def fz_pre_translate(m, tx, ty):
  38258. r"""
  38259. Class-aware wrapper for `::fz_pre_translate()`.
  38260. Translate a matrix by premultiplication.
  38261. m: The matrix to translate
  38262. tx, ty: Translation distances along the X- and Y-axes. A
  38263. translation of 0 will not cause any translation along the
  38264. relevant axis.
  38265. Returns m.
  38266. """
  38267. return _mupdf.fz_pre_translate(m, tx, ty)
  38268. def fz_prepare_t3_glyph(font, gid):
  38269. r"""
  38270. Class-aware wrapper for `::fz_prepare_t3_glyph()`.
  38271. Force a type3 font to cache the displaylist for a given glyph
  38272. id.
  38273. This caching can involve reading the underlying file, so must
  38274. happen ahead of time, so we aren't suddenly forced to read the
  38275. file while playing a displaylist back.
  38276. """
  38277. return _mupdf.fz_prepare_t3_glyph(font, gid)
  38278. def fz_previous_page(doc, loc):
  38279. r"""
  38280. Class-aware wrapper for `::fz_previous_page()`.
  38281. Function to get the location of the previous page (allowing for
  38282. the end of chapters etc). If already at the start of the
  38283. document, returns the current page.
  38284. """
  38285. return _mupdf.fz_previous_page(doc, loc)
  38286. def fz_print_stext_header_as_html(out):
  38287. r"""Class-aware wrapper for `::fz_print_stext_header_as_html()`."""
  38288. return _mupdf.fz_print_stext_header_as_html(out)
  38289. def fz_print_stext_header_as_xhtml(out):
  38290. r"""Class-aware wrapper for `::fz_print_stext_header_as_xhtml()`."""
  38291. return _mupdf.fz_print_stext_header_as_xhtml(out)
  38292. def fz_print_stext_page_as_html(out, page, id):
  38293. r"""
  38294. Class-aware wrapper for `::fz_print_stext_page_as_html()`.
  38295. Output structured text to a file in HTML (visual) format.
  38296. """
  38297. return _mupdf.fz_print_stext_page_as_html(out, page, id)
  38298. def fz_print_stext_page_as_json(out, page, scale):
  38299. r"""
  38300. Class-aware wrapper for `::fz_print_stext_page_as_json()`.
  38301. Output structured text to a file in JSON format.
  38302. """
  38303. return _mupdf.fz_print_stext_page_as_json(out, page, scale)
  38304. def fz_print_stext_page_as_text(out, page):
  38305. r"""
  38306. Class-aware wrapper for `::fz_print_stext_page_as_text()`.
  38307. Output structured text to a file in plain-text UTF-8 format.
  38308. """
  38309. return _mupdf.fz_print_stext_page_as_text(out, page)
  38310. def fz_print_stext_page_as_xhtml(out, page, id):
  38311. r"""
  38312. Class-aware wrapper for `::fz_print_stext_page_as_xhtml()`.
  38313. Output structured text to a file in XHTML (semantic) format.
  38314. """
  38315. return _mupdf.fz_print_stext_page_as_xhtml(out, page, id)
  38316. def fz_print_stext_page_as_xml(out, page, id):
  38317. r"""
  38318. Class-aware wrapper for `::fz_print_stext_page_as_xml()`.
  38319. Output structured text to a file in XML format.
  38320. """
  38321. return _mupdf.fz_print_stext_page_as_xml(out, page, id)
  38322. def fz_print_stext_trailer_as_html(out):
  38323. r"""Class-aware wrapper for `::fz_print_stext_trailer_as_html()`."""
  38324. return _mupdf.fz_print_stext_trailer_as_html(out)
  38325. def fz_print_stext_trailer_as_xhtml(out):
  38326. r"""Class-aware wrapper for `::fz_print_stext_trailer_as_xhtml()`."""
  38327. return _mupdf.fz_print_stext_trailer_as_xhtml(out)
  38328. def fz_process_opened_pages(doc, process_openend_page, state):
  38329. r"""
  38330. Class-aware wrapper for `::fz_process_opened_pages()`.
  38331. Iterates over all opened pages of the document, calling the
  38332. provided callback for each page for processing. If the callback
  38333. returns non-NULL then the iteration stops and that value is returned
  38334. to the called of fz_process_opened_pages().
  38335. The state pointer provided to fz_process_opened_pages() is
  38336. passed on to the callback but is owned by the caller.
  38337. Returns the first non-NULL value returned by the callback,
  38338. or NULL if the callback returned NULL for all opened pages.
  38339. """
  38340. return _mupdf.fz_process_opened_pages(doc, process_openend_page, state)
  38341. def fz_process_shade(shade, ctm, scissor, prepare, process, process_arg):
  38342. r"""
  38343. Class-aware wrapper for `::fz_process_shade()`.
  38344. Process a shade, using supplied callback functions. This
  38345. decomposes the shading to a mesh (even ones that are not
  38346. natively meshes, such as linear or radial shadings), and
  38347. processes triangles from those meshes.
  38348. shade: The shade to process.
  38349. ctm: The transform to use
  38350. prepare: Callback function to 'prepare' each vertex.
  38351. This function is passed an array of floats, and populates
  38352. a fz_vertex structure.
  38353. process: This function is passed 3 pointers to vertex
  38354. structures, and actually performs the processing (typically
  38355. filling the area between the vertices).
  38356. process_arg: An opaque argument passed through from caller
  38357. to callback functions.
  38358. """
  38359. return _mupdf.fz_process_shade(shade, ctm, scissor, prepare, process, process_arg)
  38360. def fz_ptr_heap_insert(heap, v, HEAP_CMP):
  38361. r"""Class-aware wrapper for `::fz_ptr_heap_insert()`."""
  38362. return _mupdf.fz_ptr_heap_insert(heap, v, HEAP_CMP)
  38363. def fz_ptr_heap_sort(heap, HEAP_CMP):
  38364. r"""Class-aware wrapper for `::fz_ptr_heap_sort()`."""
  38365. return _mupdf.fz_ptr_heap_sort(heap, HEAP_CMP)
  38366. def fz_ptr_heap_uniq(heap, HEAP_CMP):
  38367. r"""Class-aware wrapper for `::fz_ptr_heap_uniq()`."""
  38368. return _mupdf.fz_ptr_heap_uniq(heap, HEAP_CMP)
  38369. def fz_purge_glyph_cache():
  38370. r"""
  38371. Class-aware wrapper for `::fz_purge_glyph_cache()`.
  38372. Purge all the glyphs from the cache.
  38373. """
  38374. return _mupdf.fz_purge_glyph_cache()
  38375. def fz_quad_from_rect(r):
  38376. r"""
  38377. Class-aware wrapper for `::fz_quad_from_rect()`.
  38378. Convert a rect to a quad (losslessly).
  38379. """
  38380. return _mupdf.fz_quad_from_rect(r)
  38381. def fz_quadto(path, x0, y0, x1, y1):
  38382. r"""
  38383. Class-aware wrapper for `::fz_quadto()`.
  38384. Append a 'quadto' command to an open path. (For a
  38385. quadratic bezier).
  38386. path: The path to modify.
  38387. x0, y0: The control coordinates for the quadratic curve.
  38388. x1, y1: The end coordinates for the quadratic curve.
  38389. Throws exceptions on failure to allocate, or attempting to
  38390. modify a packed path.
  38391. """
  38392. return _mupdf.fz_quadto(path, x0, y0, x1, y1)
  38393. def fz_range_limit_xml_char(c):
  38394. r"""Class-aware wrapper for `::fz_range_limit_xml_char()`."""
  38395. return _mupdf.fz_range_limit_xml_char(c)
  38396. def fz_read(stm, data, len):
  38397. r"""
  38398. Class-aware wrapper for `::fz_read()`.
  38399. Read from a stream into a given data block.
  38400. stm: The stream to read from.
  38401. data: The data block to read into.
  38402. len: The length of the data block (in bytes).
  38403. Returns the number of bytes read. May throw exceptions.
  38404. """
  38405. return _mupdf.fz_read(stm, data, len)
  38406. def fz_read_all(stm, initial):
  38407. r"""
  38408. Class-aware wrapper for `::fz_read_all()`.
  38409. Read all of a stream into a buffer.
  38410. stm: The stream to read from
  38411. initial: Suggested initial size for the buffer.
  38412. Returns a buffer created from reading from the stream. May throw
  38413. exceptions on failure to allocate.
  38414. """
  38415. return _mupdf.fz_read_all(stm, initial)
  38416. def fz_read_archive_entry(arch, name):
  38417. r"""
  38418. Class-aware wrapper for `::fz_read_archive_entry()`.
  38419. Reads all bytes in an archive entry
  38420. into a buffer.
  38421. name: Entry name to look for, this must be an exact match to
  38422. the entry name in the archive.
  38423. Throws an exception if a matching entry cannot be found.
  38424. """
  38425. return _mupdf.fz_read_archive_entry(arch, name)
  38426. def fz_read_best(stm, initial, truncated, worst_case):
  38427. r"""
  38428. Class-aware wrapper for `::fz_read_best()`.
  38429. This function has out-params. Python/C# wrappers look like:
  38430. `fz_read_best(::fz_stream *stm, size_t initial, size_t worst_case)` => `(fz_buffer *, int truncated)`
  38431. Attempt to read a stream into a buffer. If truncated
  38432. is NULL behaves as fz_read_all, sets a truncated flag in case of
  38433. error.
  38434. stm: The stream to read from.
  38435. initial: Suggested initial size for the buffer.
  38436. truncated: Flag to store success/failure indication in.
  38437. worst_case: 0 for unknown, otherwise an upper bound for the
  38438. size of the stream.
  38439. Returns a buffer created from reading from the stream.
  38440. """
  38441. return _mupdf.fz_read_best(stm, initial, truncated, worst_case)
  38442. def fz_read_bits(stm, n):
  38443. r"""
  38444. Class-aware wrapper for `::fz_read_bits()`.
  38445. Read the next n bits from a stream (assumed to
  38446. be packed most significant bit first).
  38447. stm: The stream to read from.
  38448. n: The number of bits to read, between 1 and 8*sizeof(int)
  38449. inclusive.
  38450. Returns -1 for EOF, or the required number of bits.
  38451. """
  38452. return _mupdf.fz_read_bits(stm, n)
  38453. def fz_read_byte(stm):
  38454. r"""
  38455. Class-aware wrapper for `::fz_read_byte()`.
  38456. Read the next byte from a stream.
  38457. stm: The stream t read from.
  38458. Returns -1 for end of stream, or the next byte. May
  38459. throw exceptions.
  38460. """
  38461. return _mupdf.fz_read_byte(stm)
  38462. def fz_read_file(filename):
  38463. r"""
  38464. Class-aware wrapper for `::fz_read_file()`.
  38465. Read all the contents of a file into a buffer.
  38466. """
  38467. return _mupdf.fz_read_file(filename)
  38468. def fz_read_float(stm):
  38469. r"""Class-aware wrapper for `::fz_read_float()`."""
  38470. return _mupdf.fz_read_float(stm)
  38471. def fz_read_float_le(stm):
  38472. r"""Class-aware wrapper for `::fz_read_float_le()`."""
  38473. return _mupdf.fz_read_float_le(stm)
  38474. def fz_read_int16(stm):
  38475. r"""Class-aware wrapper for `::fz_read_int16()`."""
  38476. return _mupdf.fz_read_int16(stm)
  38477. def fz_read_int16_le(stm):
  38478. r"""Class-aware wrapper for `::fz_read_int16_le()`."""
  38479. return _mupdf.fz_read_int16_le(stm)
  38480. def fz_read_int32(stm):
  38481. r"""Class-aware wrapper for `::fz_read_int32()`."""
  38482. return _mupdf.fz_read_int32(stm)
  38483. def fz_read_int32_le(stm):
  38484. r"""Class-aware wrapper for `::fz_read_int32_le()`."""
  38485. return _mupdf.fz_read_int32_le(stm)
  38486. def fz_read_int64(stm):
  38487. r"""Class-aware wrapper for `::fz_read_int64()`."""
  38488. return _mupdf.fz_read_int64(stm)
  38489. def fz_read_int64_le(stm):
  38490. r"""Class-aware wrapper for `::fz_read_int64_le()`."""
  38491. return _mupdf.fz_read_int64_le(stm)
  38492. def fz_read_line(stm, buf, max):
  38493. r"""
  38494. Class-aware wrapper for `::fz_read_line()`.
  38495. Read a line from stream into the buffer until either a
  38496. terminating newline or EOF, which it replaces with a null byte
  38497. ('').
  38498. Returns buf on success, and NULL when end of file occurs while
  38499. no characters have been read.
  38500. """
  38501. return _mupdf.fz_read_line(stm, buf, max)
  38502. def fz_read_rbits(stm, n):
  38503. r"""
  38504. Class-aware wrapper for `::fz_read_rbits()`.
  38505. Read the next n bits from a stream (assumed to
  38506. be packed least significant bit first).
  38507. stm: The stream to read from.
  38508. n: The number of bits to read, between 1 and 8*sizeof(int)
  38509. inclusive.
  38510. Returns (unsigned int)-1 for EOF, or the required number of bits.
  38511. """
  38512. return _mupdf.fz_read_rbits(stm, n)
  38513. def fz_read_rune(_in):
  38514. r"""
  38515. Class-aware wrapper for `::fz_read_rune()`.
  38516. Read a utf-8 rune from a stream.
  38517. In the event of encountering badly formatted utf-8 codes
  38518. (such as a leading code with an unexpected number of following
  38519. codes) no error/exception is given, but undefined values may be
  38520. returned.
  38521. """
  38522. return _mupdf.fz_read_rune(_in)
  38523. def fz_read_string(stm, buffer, len):
  38524. r"""
  38525. Class-aware wrapper for `::fz_read_string()`.
  38526. Read a null terminated string from the stream into
  38527. a buffer of a given length. The buffer will be null terminated.
  38528. Throws on failure (including the failure to fit the entire
  38529. string including the terminator into the buffer).
  38530. """
  38531. return _mupdf.fz_read_string(stm, buffer, len)
  38532. def fz_read_uint16(stm):
  38533. r"""
  38534. Class-aware wrapper for `::fz_read_uint16()`.
  38535. fz_read_[u]int(16|24|32|64)(_le)?
  38536. Read a 16/32/64 bit signed/unsigned integer from stream,
  38537. in big or little-endian byte orders.
  38538. Throws an exception if EOF is encountered.
  38539. """
  38540. return _mupdf.fz_read_uint16(stm)
  38541. def fz_read_uint16_le(stm):
  38542. r"""Class-aware wrapper for `::fz_read_uint16_le()`."""
  38543. return _mupdf.fz_read_uint16_le(stm)
  38544. def fz_read_uint24(stm):
  38545. r"""Class-aware wrapper for `::fz_read_uint24()`."""
  38546. return _mupdf.fz_read_uint24(stm)
  38547. def fz_read_uint24_le(stm):
  38548. r"""Class-aware wrapper for `::fz_read_uint24_le()`."""
  38549. return _mupdf.fz_read_uint24_le(stm)
  38550. def fz_read_uint32(stm):
  38551. r"""Class-aware wrapper for `::fz_read_uint32()`."""
  38552. return _mupdf.fz_read_uint32(stm)
  38553. def fz_read_uint32_le(stm):
  38554. r"""Class-aware wrapper for `::fz_read_uint32_le()`."""
  38555. return _mupdf.fz_read_uint32_le(stm)
  38556. def fz_read_uint64(stm):
  38557. r"""Class-aware wrapper for `::fz_read_uint64()`."""
  38558. return _mupdf.fz_read_uint64(stm)
  38559. def fz_read_uint64_le(stm):
  38560. r"""Class-aware wrapper for `::fz_read_uint64_le()`."""
  38561. return _mupdf.fz_read_uint64_le(stm)
  38562. def fz_read_utf16_be(stm):
  38563. r"""Class-aware wrapper for `::fz_read_utf16_be()`."""
  38564. return _mupdf.fz_read_utf16_be(stm)
  38565. def fz_read_utf16_le(stm):
  38566. r"""
  38567. Class-aware wrapper for `::fz_read_utf16_le()`.
  38568. Read a utf-16 rune from a stream. (little endian and
  38569. big endian respectively).
  38570. In the event of encountering badly formatted utf-16 codes
  38571. (mismatched surrogates) no error/exception is given, but
  38572. undefined values may be returned.
  38573. """
  38574. return _mupdf.fz_read_utf16_le(stm)
  38575. def fz_realloc(p, size):
  38576. r"""
  38577. Class-aware wrapper for `::fz_realloc()`.
  38578. Reallocates a block of memory to given size. Existing contents
  38579. up to min(old_size,new_size) are maintained. The rest of the
  38580. block is uninitialised.
  38581. fz_realloc(ctx, NULL, size) behaves like fz_malloc(ctx, size).
  38582. fz_realloc(ctx, p, 0); behaves like fz_free(ctx, p).
  38583. Throws exception in the event of failure to allocate.
  38584. """
  38585. return _mupdf.fz_realloc(p, size)
  38586. def fz_realloc_no_throw(p, size):
  38587. r"""
  38588. Class-aware wrapper for `::fz_realloc_no_throw()`.
  38589. fz_realloc equivalent that returns NULL rather than throwing
  38590. exceptions.
  38591. """
  38592. return _mupdf.fz_realloc_no_throw(p, size)
  38593. def fz_realpath(path, resolved_path):
  38594. r"""
  38595. Class-aware wrapper for `::fz_realpath()`.
  38596. Resolve a path to an absolute file name.
  38597. The resolved path buffer must be of at least PATH_MAX size.
  38598. """
  38599. return _mupdf.fz_realpath(path, resolved_path)
  38600. def fz_recognize_image_format(p):
  38601. r"""
  38602. Class-aware wrapper for `::fz_recognize_image_format()`.
  38603. Recognise image format strings in the first 8 bytes from image
  38604. data.
  38605. """
  38606. return _mupdf.fz_recognize_image_format(p)
  38607. def fz_rect_from_irect(bbox):
  38608. r"""
  38609. Class-aware wrapper for `::fz_rect_from_irect()`.
  38610. Convert a bbox into a rect.
  38611. For our purposes, a rect can represent all the values we meet in
  38612. a bbox, so nothing can go wrong.
  38613. rect: A place to store the generated rectangle.
  38614. bbox: The bbox to convert.
  38615. Returns rect (updated).
  38616. """
  38617. return _mupdf.fz_rect_from_irect(bbox)
  38618. def fz_rect_from_quad(q):
  38619. r"""
  38620. Class-aware wrapper for `::fz_rect_from_quad()`.
  38621. Convert a quad to the smallest rect that covers it.
  38622. """
  38623. return _mupdf.fz_rect_from_quad(q)
  38624. def fz_rectto(path, x0, y0, x1, y1):
  38625. r"""
  38626. Class-aware wrapper for `::fz_rectto()`.
  38627. Append a 'rectto' command to an open path.
  38628. The rectangle is equivalent to:
  38629. moveto x0 y0
  38630. lineto x1 y0
  38631. lineto x1 y1
  38632. lineto x0 y1
  38633. closepath
  38634. path: The path to modify.
  38635. x0, y0: First corner of the rectangle.
  38636. x1, y1: Second corner of the rectangle.
  38637. Throws exceptions on failure to allocate, or attempting to
  38638. modify a packed path.
  38639. """
  38640. return _mupdf.fz_rectto(path, x0, y0, x1, y1)
  38641. def fz_register_activity_logger(activity, opaque):
  38642. r"""Class-aware wrapper for `::fz_register_activity_logger()`."""
  38643. return _mupdf.fz_register_activity_logger(activity, opaque)
  38644. def fz_register_archive_handler(handler):
  38645. r"""Class-aware wrapper for `::fz_register_archive_handler()`."""
  38646. return _mupdf.fz_register_archive_handler(handler)
  38647. def fz_register_document_handler(handler):
  38648. r"""
  38649. Class-aware wrapper for `::fz_register_document_handler()`.
  38650. Register a handler for a document type.
  38651. handler: The handler to register. This must live on for the duration of the
  38652. use of this handler. It will be passed back to the handler for calls so
  38653. the caller can use it to retrieve state.
  38654. """
  38655. return _mupdf.fz_register_document_handler(handler)
  38656. def fz_register_document_handlers():
  38657. r"""
  38658. Class-aware wrapper for `::fz_register_document_handlers()`.
  38659. Register handlers for all the standard document types supported in
  38660. this build.
  38661. """
  38662. return _mupdf.fz_register_document_handlers()
  38663. def fz_remove_item(drop, key, type):
  38664. r"""
  38665. Class-aware wrapper for `::fz_remove_item()`.
  38666. Remove an item from the store.
  38667. If an item indexed by the given key exists in the store, remove
  38668. it.
  38669. drop: The function used to free the value (to ensure we get a
  38670. value of the correct type).
  38671. key: The key used to find the item to remove.
  38672. type: Functions used to manipulate the key.
  38673. """
  38674. return _mupdf.fz_remove_item(drop, key, type)
  38675. def fz_render_flags(dev, set, clear):
  38676. r"""Class-aware wrapper for `::fz_render_flags()`."""
  38677. return _mupdf.fz_render_flags(dev, set, clear)
  38678. def fz_render_glyph_pixmap(font, gid, ctm, scissor, aa):
  38679. r"""
  38680. Class-aware wrapper for `::fz_render_glyph_pixmap()`.
  38681. Create a pixmap containing a rendered glyph.
  38682. Lookup gid from font, clip it with scissor, and rendering it
  38683. with aa bits of antialiasing into a new pixmap.
  38684. The caller takes ownership of the pixmap and so must free it.
  38685. Note: This function is no longer used for normal rendering
  38686. operations, and is kept around just because we use it in the
  38687. app. It should be considered "at risk" of removal from the API.
  38688. """
  38689. return _mupdf.fz_render_glyph_pixmap(font, gid, ctm, scissor, aa)
  38690. def fz_render_t3_glyph_direct(dev, font, gid, trm, gstate, def_cs, fill_gstate, stroke_gstate):
  38691. r"""
  38692. Class-aware wrapper for `::fz_render_t3_glyph_direct()`.
  38693. Nasty PDF interpreter specific hernia, required to allow the
  38694. interpreter to replay glyphs from a type3 font directly into
  38695. the target device.
  38696. This is only used in exceptional circumstances (such as type3
  38697. glyphs that inherit current graphics state, or nested type3
  38698. glyphs).
  38699. """
  38700. return _mupdf.fz_render_t3_glyph_direct(dev, font, gid, trm, gstate, def_cs, fill_gstate, stroke_gstate)
  38701. def fz_rendering_intent_name(ri):
  38702. r"""
  38703. Class-aware wrapper for `::fz_rendering_intent_name()`.
  38704. Map from enumerated rendering intent to string.
  38705. The returned string is static and therefore must not be freed.
  38706. """
  38707. return _mupdf.fz_rendering_intent_name(ri)
  38708. def fz_report_error():
  38709. r"""Class-aware wrapper for `::fz_report_error()`."""
  38710. return _mupdf.fz_report_error()
  38711. def fz_reset_output(arg_0):
  38712. r"""
  38713. Class-aware wrapper for `::fz_reset_output()`.
  38714. Reset a closed output stream. Returns state to
  38715. (broadly) that which it was in when opened. Not
  38716. all outputs can be reset, so this may throw an
  38717. exception.
  38718. """
  38719. return _mupdf.fz_reset_output(arg_0)
  38720. def fz_reset_story(story):
  38721. r"""Class-aware wrapper for `::fz_reset_story()`."""
  38722. return _mupdf.fz_reset_story(story)
  38723. def fz_resize_buffer(buf, capacity):
  38724. r"""
  38725. Class-aware wrapper for `::fz_resize_buffer()`.
  38726. Ensure that a buffer has a given capacity,
  38727. truncating data if required.
  38728. capacity: The desired capacity for the buffer. If the current
  38729. size of the buffer contents is smaller than capacity, it is
  38730. truncated.
  38731. """
  38732. return _mupdf.fz_resize_buffer(buf, capacity)
  38733. def fz_resolve_link(doc, uri, xp, yp):
  38734. r"""
  38735. Class-aware wrapper for `::fz_resolve_link()`.
  38736. This function has out-params. Python/C# wrappers look like:
  38737. `fz_resolve_link(::fz_document *doc, const char *uri)` => `(fz_location, float xp, float yp)`
  38738. Resolve an internal link to a page number.
  38739. xp, yp: Pointer to store coordinate of destination on the page.
  38740. Returns (-1,-1) if the URI cannot be resolved.
  38741. """
  38742. return _mupdf.fz_resolve_link(doc, uri, xp, yp)
  38743. def fz_rethrow():
  38744. r"""Class-aware wrapper for `::fz_rethrow()`."""
  38745. return _mupdf.fz_rethrow()
  38746. def fz_rethrow_if(errcode):
  38747. r"""
  38748. Class-aware wrapper for `::fz_rethrow_if()`.
  38749. Within an fz_catch() block, rethrow the current exception
  38750. if the errcode of the current exception matches.
  38751. This assumes no intervening use of fz_try/fz_catch.
  38752. """
  38753. return _mupdf.fz_rethrow_if(errcode)
  38754. def fz_rethrow_unless(errcode):
  38755. r"""Class-aware wrapper for `::fz_rethrow_unless()`."""
  38756. return _mupdf.fz_rethrow_unless(errcode)
  38757. def fz_rotate(degrees):
  38758. r"""
  38759. Class-aware wrapper for `::fz_rotate()`.
  38760. Create a rotation matrix.
  38761. The returned matrix is of the form
  38762. [ cos(deg) sin(deg) -sin(deg) cos(deg) 0 0 ].
  38763. m: Pointer to place to store matrix
  38764. degrees: Degrees of counter clockwise rotation. Values less
  38765. than zero and greater than 360 are handled as expected.
  38766. Returns m.
  38767. """
  38768. return _mupdf.fz_rotate(degrees)
  38769. def fz_round_rect(rect):
  38770. r"""
  38771. Class-aware wrapper for `::fz_round_rect()`.
  38772. Round rectangle coordinates.
  38773. Coordinates in a bounding box are integers, so rounding of the
  38774. rects coordinates takes place. The top left corner is rounded
  38775. upwards and left while the bottom right corner is rounded
  38776. downwards and to the right.
  38777. This differs from fz_irect_from_rect, in that fz_irect_from_rect
  38778. slavishly follows the numbers (i.e any slight over/under
  38779. calculations can cause whole extra pixels to be added).
  38780. fz_round_rect allows for a small amount of rounding error when
  38781. calculating the bbox.
  38782. """
  38783. return _mupdf.fz_round_rect(rect)
  38784. def fz_run_display_list(list, dev, ctm, scissor, cookie):
  38785. r"""
  38786. Class-aware wrapper for `::fz_run_display_list()`.
  38787. (Re)-run a display list through a device.
  38788. list: A display list, created by fz_new_display_list and
  38789. populated with objects from a page by running fz_run_page on a
  38790. device obtained from fz_new_list_device.
  38791. ctm: Transform to apply to display list contents. May include
  38792. for example scaling and rotation, see fz_scale, fz_rotate and
  38793. fz_concat. Set to fz_identity if no transformation is desired.
  38794. scissor: Only the part of the contents of the display list
  38795. visible within this area will be considered when the list is
  38796. run through the device. This does not imply for tile objects
  38797. contained in the display list.
  38798. cookie: Communication mechanism between caller and library
  38799. running the page. Intended for multi-threaded applications,
  38800. while single-threaded applications set cookie to NULL. The
  38801. caller may abort an ongoing page run. Cookie also communicates
  38802. progress information back to the caller. The fields inside
  38803. cookie are continually updated while the page is being run.
  38804. """
  38805. return _mupdf.fz_run_display_list(list, dev, ctm, scissor, cookie)
  38806. def fz_run_document_structure(doc, dev, cookie):
  38807. r"""
  38808. Class-aware wrapper for `::fz_run_document_structure()`.
  38809. Run the document structure through a device.
  38810. doc: Document in question.
  38811. dev: Device obtained from fz_new_*_device.
  38812. cookie: Communication mechanism between caller and library.
  38813. Intended for multi-threaded applications, while
  38814. single-threaded applications set cookie to NULL. The
  38815. caller may abort an ongoing rendering of a page. Cookie also
  38816. communicates progress information back to the caller. The
  38817. fields inside cookie are continually updated while the page is
  38818. rendering.
  38819. """
  38820. return _mupdf.fz_run_document_structure(doc, dev, cookie)
  38821. def fz_run_page(page, dev, transform, cookie):
  38822. r"""
  38823. Class-aware wrapper for `::fz_run_page()`.
  38824. Run a page through a device.
  38825. page: Page obtained from fz_load_page.
  38826. dev: Device obtained from fz_new_*_device.
  38827. transform: Transform to apply to page. May include for example
  38828. scaling and rotation, see fz_scale, fz_rotate and fz_concat.
  38829. Set to fz_identity if no transformation is desired.
  38830. cookie: Communication mechanism between caller and library
  38831. rendering the page. Intended for multi-threaded applications,
  38832. while single-threaded applications set cookie to NULL. The
  38833. caller may abort an ongoing rendering of a page. Cookie also
  38834. communicates progress information back to the caller. The
  38835. fields inside cookie are continually updated while the page is
  38836. rendering.
  38837. """
  38838. return _mupdf.fz_run_page(page, dev, transform, cookie)
  38839. def fz_run_page_annots(page, dev, transform, cookie):
  38840. r"""
  38841. Class-aware wrapper for `::fz_run_page_annots()`.
  38842. Run the annotations on a page through a device.
  38843. """
  38844. return _mupdf.fz_run_page_annots(page, dev, transform, cookie)
  38845. def fz_run_page_contents(page, dev, transform, cookie):
  38846. r"""
  38847. Class-aware wrapper for `::fz_run_page_contents()`.
  38848. Run a page through a device. Just the main
  38849. page content, without the annotations, if any.
  38850. page: Page obtained from fz_load_page.
  38851. dev: Device obtained from fz_new_*_device.
  38852. transform: Transform to apply to page. May include for example
  38853. scaling and rotation, see fz_scale, fz_rotate and fz_concat.
  38854. Set to fz_identity if no transformation is desired.
  38855. cookie: Communication mechanism between caller and library
  38856. rendering the page. Intended for multi-threaded applications,
  38857. while single-threaded applications set cookie to NULL. The
  38858. caller may abort an ongoing rendering of a page. Cookie also
  38859. communicates progress information back to the caller. The
  38860. fields inside cookie are continually updated while the page is
  38861. rendering.
  38862. """
  38863. return _mupdf.fz_run_page_contents(page, dev, transform, cookie)
  38864. def fz_run_page_widgets(page, dev, transform, cookie):
  38865. r"""
  38866. Class-aware wrapper for `::fz_run_page_widgets()`.
  38867. Run the widgets on a page through a device.
  38868. """
  38869. return _mupdf.fz_run_page_widgets(page, dev, transform, cookie)
  38870. def fz_run_t3_glyph(font, gid, trm, dev):
  38871. r"""
  38872. Class-aware wrapper for `::fz_run_t3_glyph()`.
  38873. Run a glyph from a Type3 font to
  38874. a given device.
  38875. font: The font to find the glyph in.
  38876. gid: The glyph to run.
  38877. trm: The transform to apply.
  38878. dev: The device to render onto.
  38879. """
  38880. return _mupdf.fz_run_t3_glyph(font, gid, trm, dev)
  38881. def fz_runeidx(str, p):
  38882. r"""
  38883. Class-aware wrapper for `::fz_runeidx()`.
  38884. Compute the index of a rune in a string.
  38885. str: Pointer to beginning of a string.
  38886. p: Pointer to a char in str.
  38887. Returns the index of the rune pointed to by p in str.
  38888. """
  38889. return _mupdf.fz_runeidx(str, p)
  38890. def fz_runelen(rune):
  38891. r"""
  38892. Class-aware wrapper for `::fz_runelen()`.
  38893. Count how many chars are required to represent a rune.
  38894. rune: The rune to encode.
  38895. Returns the number of bytes required to represent this run in
  38896. UTF8.
  38897. """
  38898. return _mupdf.fz_runelen(rune)
  38899. def fz_runeptr(str, idx):
  38900. r"""
  38901. Class-aware wrapper for `::fz_runeptr()`.
  38902. Obtain a pointer to the char representing the rune
  38903. at a given index.
  38904. str: Pointer to beginning of a string.
  38905. idx: Index of a rune to return a char pointer to.
  38906. Returns a pointer to the char where the desired rune starts,
  38907. or NULL if the string ends before the index is reached.
  38908. """
  38909. return _mupdf.fz_runeptr(str, idx)
  38910. def fz_runetochar(str, rune):
  38911. r"""
  38912. Class-aware wrapper for `::fz_runetochar()`.
  38913. UTF8 encode a rune to a sequence of chars.
  38914. str: Pointer to a place to put the UTF8 encoded character.
  38915. rune: Pointer to a 'rune'.
  38916. Returns the number of bytes the rune took to output.
  38917. """
  38918. return _mupdf.fz_runetochar(str, rune)
  38919. def fz_samples_get(pixmap, offset):
  38920. r"""
  38921. Class-aware wrapper for `::fz_samples_get()`.
  38922. Provides simple (but slow) access to pixmap data from Python and C#.
  38923. """
  38924. return _mupdf.fz_samples_get(pixmap, offset)
  38925. def fz_samples_set(pixmap, offset, value):
  38926. r"""
  38927. Class-aware wrapper for `::fz_samples_set()`.
  38928. Provides simple (but slow) write access to pixmap data from Python and
  38929. C#.
  38930. """
  38931. return _mupdf.fz_samples_set(pixmap, offset, value)
  38932. def fz_save_accelerator(doc, accel):
  38933. r"""
  38934. Class-aware wrapper for `::fz_save_accelerator()`.
  38935. Save accelerator data for the document to a given file.
  38936. """
  38937. return _mupdf.fz_save_accelerator(doc, accel)
  38938. def fz_save_bitmap_as_pbm(bitmap, filename):
  38939. r"""
  38940. Class-aware wrapper for `::fz_save_bitmap_as_pbm()`.
  38941. Save a bitmap as a pbm.
  38942. """
  38943. return _mupdf.fz_save_bitmap_as_pbm(bitmap, filename)
  38944. def fz_save_bitmap_as_pcl(bitmap, filename, append, pcl):
  38945. r"""
  38946. Class-aware wrapper for `::fz_save_bitmap_as_pcl()`.
  38947. Save a bitmap as mono PCL.
  38948. """
  38949. return _mupdf.fz_save_bitmap_as_pcl(bitmap, filename, append, pcl)
  38950. def fz_save_bitmap_as_pkm(bitmap, filename):
  38951. r"""
  38952. Class-aware wrapper for `::fz_save_bitmap_as_pkm()`.
  38953. Save a CMYK bitmap as a pkm.
  38954. """
  38955. return _mupdf.fz_save_bitmap_as_pkm(bitmap, filename)
  38956. def fz_save_bitmap_as_pwg(bitmap, filename, append, pwg):
  38957. r"""
  38958. Class-aware wrapper for `::fz_save_bitmap_as_pwg()`.
  38959. Save a bitmap as a PWG.
  38960. """
  38961. return _mupdf.fz_save_bitmap_as_pwg(bitmap, filename, append, pwg)
  38962. def fz_save_buffer(buf, filename):
  38963. r"""
  38964. Class-aware wrapper for `::fz_save_buffer()`.
  38965. Save the contents of a buffer to a file.
  38966. """
  38967. return _mupdf.fz_save_buffer(buf, filename)
  38968. def fz_save_pixmap_as_jpeg(pixmap, filename, quality):
  38969. r"""
  38970. Class-aware wrapper for `::fz_save_pixmap_as_jpeg()`.
  38971. Save a pixmap as a JPEG.
  38972. """
  38973. return _mupdf.fz_save_pixmap_as_jpeg(pixmap, filename, quality)
  38974. def fz_save_pixmap_as_jpx(pixmap, filename, q):
  38975. r"""
  38976. Class-aware wrapper for `::fz_save_pixmap_as_jpx()`.
  38977. Save pixmap data as JP2K with no subsampling.
  38978. quality = 100 = lossless
  38979. otherwise for a factor of x compression use 100-x. (so 80 is 1:20 compression)
  38980. """
  38981. return _mupdf.fz_save_pixmap_as_jpx(pixmap, filename, q)
  38982. def fz_save_pixmap_as_pam(pixmap, filename):
  38983. r"""
  38984. Class-aware wrapper for `::fz_save_pixmap_as_pam()`.
  38985. Save a pixmap as a pnm (greyscale, rgb or cmyk, with or without
  38986. alpha).
  38987. """
  38988. return _mupdf.fz_save_pixmap_as_pam(pixmap, filename)
  38989. def fz_save_pixmap_as_pbm(pixmap, filename):
  38990. r"""
  38991. Class-aware wrapper for `::fz_save_pixmap_as_pbm()`.
  38992. Save a pixmap as a pbm. (Performing halftoning).
  38993. """
  38994. return _mupdf.fz_save_pixmap_as_pbm(pixmap, filename)
  38995. def fz_save_pixmap_as_pcl(pixmap, filename, append, pcl):
  38996. r"""
  38997. Class-aware wrapper for `::fz_save_pixmap_as_pcl()`.
  38998. Save an (RGB) pixmap as color PCL.
  38999. """
  39000. return _mupdf.fz_save_pixmap_as_pcl(pixmap, filename, append, pcl)
  39001. def fz_save_pixmap_as_pclm(pixmap, filename, append, options):
  39002. r"""
  39003. Class-aware wrapper for `::fz_save_pixmap_as_pclm()`.
  39004. Save a (Greyscale or RGB) pixmap as pclm.
  39005. """
  39006. return _mupdf.fz_save_pixmap_as_pclm(pixmap, filename, append, options)
  39007. def fz_save_pixmap_as_pdfocr(pixmap, filename, append, options):
  39008. r"""
  39009. Class-aware wrapper for `::fz_save_pixmap_as_pdfocr()`.
  39010. Save a (Greyscale or RGB) pixmap as pdfocr.
  39011. """
  39012. return _mupdf.fz_save_pixmap_as_pdfocr(pixmap, filename, append, options)
  39013. def fz_save_pixmap_as_pkm(pixmap, filename):
  39014. r"""
  39015. Class-aware wrapper for `::fz_save_pixmap_as_pkm()`.
  39016. Save a CMYK pixmap as a pkm. (Performing halftoning).
  39017. """
  39018. return _mupdf.fz_save_pixmap_as_pkm(pixmap, filename)
  39019. def fz_save_pixmap_as_png(pixmap, filename):
  39020. r"""
  39021. Class-aware wrapper for `::fz_save_pixmap_as_png()`.
  39022. Save a (Greyscale or RGB) pixmap as a png.
  39023. """
  39024. return _mupdf.fz_save_pixmap_as_png(pixmap, filename)
  39025. def fz_save_pixmap_as_pnm(pixmap, filename):
  39026. r"""
  39027. Class-aware wrapper for `::fz_save_pixmap_as_pnm()`.
  39028. Save a pixmap as a pnm (greyscale or rgb, no alpha).
  39029. """
  39030. return _mupdf.fz_save_pixmap_as_pnm(pixmap, filename)
  39031. def fz_save_pixmap_as_ps(pixmap, filename, append):
  39032. r"""
  39033. Class-aware wrapper for `::fz_save_pixmap_as_ps()`.
  39034. Save a (gray, rgb, or cmyk, no alpha) pixmap out as postscript.
  39035. """
  39036. return _mupdf.fz_save_pixmap_as_ps(pixmap, filename, append)
  39037. def fz_save_pixmap_as_psd(pixmap, filename):
  39038. r"""
  39039. Class-aware wrapper for `::fz_save_pixmap_as_psd()`.
  39040. Save a pixmap as a PSD file.
  39041. """
  39042. return _mupdf.fz_save_pixmap_as_psd(pixmap, filename)
  39043. def fz_save_pixmap_as_pwg(pixmap, filename, append, pwg):
  39044. r"""
  39045. Class-aware wrapper for `::fz_save_pixmap_as_pwg()`.
  39046. Save a pixmap as a PWG.
  39047. """
  39048. return _mupdf.fz_save_pixmap_as_pwg(pixmap, filename, append, pwg)
  39049. def fz_save_xml(root, path, indented):
  39050. r"""
  39051. Class-aware wrapper for `::fz_save_xml()`.
  39052. As for fz_write_xml, but direct to a file.
  39053. """
  39054. return _mupdf.fz_save_xml(root, path, indented)
  39055. def fz_scale(sx, sy):
  39056. r"""
  39057. Class-aware wrapper for `::fz_scale()`.
  39058. Create a scaling matrix.
  39059. The returned matrix is of the form [ sx 0 0 sy 0 0 ].
  39060. m: Pointer to the matrix to populate
  39061. sx, sy: Scaling factors along the X- and Y-axes. A scaling
  39062. factor of 1.0 will not cause any scaling along the relevant
  39063. axis.
  39064. Returns m.
  39065. """
  39066. return _mupdf.fz_scale(sx, sy)
  39067. def fz_scale_pixmap(src, x, y, w, h, clip):
  39068. r"""Class-aware wrapper for `::fz_scale_pixmap()`."""
  39069. return _mupdf.fz_scale_pixmap(src, x, y, w, h, clip)
  39070. def fz_search_chapter_page_number(doc, chapter, page, needle, hit_mark, hit_bbox, hit_max):
  39071. r"""
  39072. Class-aware wrapper for `::fz_search_chapter_page_number()`.
  39073. This function has out-params. Python/C# wrappers look like:
  39074. `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)`
  39075. """
  39076. return _mupdf.fz_search_chapter_page_number(doc, chapter, page, needle, hit_mark, hit_bbox, hit_max)
  39077. def fz_search_chapter_page_number_cb(doc, chapter, page, needle, cb, opaque):
  39078. r"""Class-aware wrapper for `::fz_search_chapter_page_number_cb()`."""
  39079. return _mupdf.fz_search_chapter_page_number_cb(doc, chapter, page, needle, cb, opaque)
  39080. def fz_search_display_list(list, needle, hit_mark, hit_bbox, hit_max):
  39081. r"""
  39082. Class-aware wrapper for `::fz_search_display_list()`.
  39083. This function has out-params. Python/C# wrappers look like:
  39084. `fz_search_display_list(::fz_display_list *list, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  39085. """
  39086. return _mupdf.fz_search_display_list(list, needle, hit_mark, hit_bbox, hit_max)
  39087. def fz_search_display_list_cb(list, needle, cb, opaque):
  39088. r"""Class-aware wrapper for `::fz_search_display_list_cb()`."""
  39089. return _mupdf.fz_search_display_list_cb(list, needle, cb, opaque)
  39090. def fz_search_page(page, needle, hit_mark, hit_bbox, hit_max):
  39091. r"""
  39092. Class-aware wrapper for `::fz_search_page()`.
  39093. This function has out-params. Python/C# wrappers look like:
  39094. `fz_search_page(::fz_page *page, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  39095. Search for the 'needle' text on the page.
  39096. Record the hits in the hit_bbox array and return the number of
  39097. hits. Will stop looking once it has filled hit_max rectangles.
  39098. """
  39099. return _mupdf.fz_search_page(page, needle, hit_mark, hit_bbox, hit_max)
  39100. def fz_search_page2(doc, number, needle, hit_max):
  39101. r"""
  39102. Class-aware wrapper for `::fz_search_page2()`.
  39103. C++ alternative to fz_search_page() that returns information in a std::vector.
  39104. """
  39105. return _mupdf.fz_search_page2(doc, number, needle, hit_max)
  39106. def fz_search_page_cb(page, needle, cb, opaque):
  39107. r"""
  39108. Class-aware wrapper for `::fz_search_page_cb()`.
  39109. Search for the 'needle' text on the page.
  39110. """
  39111. return _mupdf.fz_search_page_cb(page, needle, cb, opaque)
  39112. def fz_search_page_number(doc, number, needle, hit_mark, hit_bbox, hit_max):
  39113. r"""
  39114. Class-aware wrapper for `::fz_search_page_number()`.
  39115. This function has out-params. Python/C# wrappers look like:
  39116. `fz_search_page_number(::fz_document *doc, int number, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  39117. """
  39118. return _mupdf.fz_search_page_number(doc, number, needle, hit_mark, hit_bbox, hit_max)
  39119. def fz_search_page_number_cb(doc, number, needle, cb, opaque):
  39120. r"""Class-aware wrapper for `::fz_search_page_number_cb()`."""
  39121. return _mupdf.fz_search_page_number_cb(doc, number, needle, cb, opaque)
  39122. def fz_search_stext_page(text, needle, hit_mark, hit_bbox, hit_max):
  39123. r"""
  39124. Class-aware wrapper for `::fz_search_stext_page()`.
  39125. This function has out-params. Python/C# wrappers look like:
  39126. `fz_search_stext_page(::fz_stext_page *text, const char *needle, ::fz_quad *hit_bbox, int hit_max)` => `(int, int hit_mark)`
  39127. Search for occurrence of 'needle' in text page.
  39128. Return the number of quads and store hit quads in the passed in
  39129. array.
  39130. NOTE: This is an experimental interface and subject to change
  39131. without notice.
  39132. """
  39133. return _mupdf.fz_search_stext_page(text, needle, hit_mark, hit_bbox, hit_max)
  39134. def fz_search_stext_page_cb(text, needle, cb, opaque):
  39135. r"""
  39136. Class-aware wrapper for `::fz_search_stext_page_cb()`.
  39137. Search for occurrence of 'needle' in text page.
  39138. Call callback once for each hit. This callback will receive
  39139. (potentially) multiple quads for each hit.
  39140. Returns the number of hits - note that this is potentially
  39141. different from (i.e. is not greater than) the number of quads
  39142. as returned by the non callback API.
  39143. NOTE: This is an experimental interface and subject to change
  39144. without notice.
  39145. """
  39146. return _mupdf.fz_search_stext_page_cb(text, needle, cb, opaque)
  39147. def fz_seek(stm, offset, whence):
  39148. r"""
  39149. Class-aware wrapper for `::fz_seek()`.
  39150. Seek within a stream.
  39151. stm: The stream to seek within.
  39152. offset: The offset to seek to.
  39153. whence: From where the offset is measured (see fseek).
  39154. SEEK_SET - start of stream.
  39155. SEEK_CUR - current position.
  39156. SEEK_END - end of stream.
  39157. """
  39158. return _mupdf.fz_seek(stm, offset, whence)
  39159. def fz_seek_output(out, off, whence):
  39160. r"""
  39161. Class-aware wrapper for `::fz_seek_output()`.
  39162. Seek to the specified file position.
  39163. See fseek for arguments.
  39164. Throw an error on unseekable outputs.
  39165. """
  39166. return _mupdf.fz_seek_output(out, off, whence)
  39167. def fz_segment_stext_page(page):
  39168. r"""
  39169. Class-aware wrapper for `::fz_segment_stext_page()`.
  39170. Perform segmentation analysis on an (unstructured) page to look for
  39171. recursive subdivisions.
  39172. Essentially this code attempts to split the page horizontally and/or
  39173. vertically repeatedly into smaller and smaller "segments" (divisions).
  39174. Returns 0 if no changes were made to the document.
  39175. This is experimental code, and may change (or be removed) in future
  39176. versions!
  39177. """
  39178. return _mupdf.fz_segment_stext_page(page)
  39179. def fz_separation_current_behavior(sep, separation):
  39180. r"""
  39181. Class-aware wrapper for `::fz_separation_current_behavior()`.
  39182. Test for the current behavior of a separation.
  39183. """
  39184. return _mupdf.fz_separation_current_behavior(sep, separation)
  39185. def fz_separation_equivalent(seps, idx, dst_cs, dst_color, prf, color_params):
  39186. r"""
  39187. Class-aware wrapper for `::fz_separation_equivalent()`.
  39188. This function has out-params. Python/C# wrappers look like:
  39189. `fz_separation_equivalent(const ::fz_separations *seps, int idx, ::fz_colorspace *dst_cs, ::fz_colorspace *prf, ::fz_color_params color_params)` => float dst_color
  39190. Get the equivalent separation color in a given colorspace.
  39191. """
  39192. return _mupdf.fz_separation_equivalent(seps, idx, dst_cs, dst_color, prf, color_params)
  39193. def fz_separation_name(sep, separation):
  39194. r"""Class-aware wrapper for `::fz_separation_name()`."""
  39195. return _mupdf.fz_separation_name(sep, separation)
  39196. def fz_set_aa_level(bits):
  39197. r"""
  39198. Class-aware wrapper for `::fz_set_aa_level()`.
  39199. Set the number of bits of antialiasing we should
  39200. use (for both text and graphics).
  39201. bits: The number of bits of antialiasing to use (values are
  39202. clamped to within the 0 to 8 range).
  39203. """
  39204. return _mupdf.fz_set_aa_level(bits)
  39205. def fz_set_compressed_image_buffer(cimg, buf):
  39206. r"""Class-aware wrapper for `::fz_set_compressed_image_buffer()`."""
  39207. return _mupdf.fz_set_compressed_image_buffer(cimg, buf)
  39208. def fz_set_default_cmyk(default_cs, cs):
  39209. r"""Class-aware wrapper for `::fz_set_default_cmyk()`."""
  39210. return _mupdf.fz_set_default_cmyk(default_cs, cs)
  39211. def fz_set_default_colorspaces(dev, default_cs):
  39212. r"""Class-aware wrapper for `::fz_set_default_colorspaces()`."""
  39213. return _mupdf.fz_set_default_colorspaces(dev, default_cs)
  39214. def fz_set_default_gray(default_cs, cs):
  39215. r"""
  39216. Class-aware wrapper for `::fz_set_default_gray()`.
  39217. Set new defaults within the default colorspace structure.
  39218. New references are taken to the new default, and references to
  39219. the old defaults dropped.
  39220. Never throws exceptions.
  39221. """
  39222. return _mupdf.fz_set_default_gray(default_cs, cs)
  39223. def fz_set_default_output_intent(default_cs, cs):
  39224. r"""Class-aware wrapper for `::fz_set_default_output_intent()`."""
  39225. return _mupdf.fz_set_default_output_intent(default_cs, cs)
  39226. def fz_set_default_rgb(default_cs, cs):
  39227. r"""Class-aware wrapper for `::fz_set_default_rgb()`."""
  39228. return _mupdf.fz_set_default_rgb(default_cs, cs)
  39229. def fz_set_error_callback(error_cb, user):
  39230. r"""
  39231. Class-aware wrapper for `::fz_set_error_callback()`.
  39232. Set the error callback. This will be called as part of the
  39233. exception handling.
  39234. The callback must not throw exceptions!
  39235. """
  39236. return _mupdf.fz_set_error_callback(error_cb, user)
  39237. def fz_set_font_bbox(font, xmin, ymin, xmax, ymax):
  39238. r"""
  39239. Class-aware wrapper for `::fz_set_font_bbox()`.
  39240. Set the font bbox.
  39241. font: The font to set the bbox for.
  39242. xmin, ymin, xmax, ymax: The bounding box.
  39243. """
  39244. return _mupdf.fz_set_font_bbox(font, xmin, ymin, xmax, ymax)
  39245. def fz_set_font_embedding(font, embed):
  39246. r"""
  39247. Class-aware wrapper for `::fz_set_font_embedding()`.
  39248. Control whether a given font should be embedded or not when writing.
  39249. """
  39250. return _mupdf.fz_set_font_embedding(font, embed)
  39251. def fz_set_graphics_aa_level(bits):
  39252. r"""
  39253. Class-aware wrapper for `::fz_set_graphics_aa_level()`.
  39254. Set the number of bits of antialiasing we
  39255. should use for graphics.
  39256. bits: The number of bits of antialiasing to use (values are
  39257. clamped to within the 0 to 8 range).
  39258. """
  39259. return _mupdf.fz_set_graphics_aa_level(bits)
  39260. def fz_set_graphics_min_line_width(min_line_width):
  39261. r"""
  39262. Class-aware wrapper for `::fz_set_graphics_min_line_width()`.
  39263. Set the minimum line width to be
  39264. used for stroked lines.
  39265. min_line_width: The minimum line width to use (in pixels).
  39266. """
  39267. return _mupdf.fz_set_graphics_min_line_width(min_line_width)
  39268. def fz_set_link_rect(link, rect):
  39269. r"""Class-aware wrapper for `::fz_set_link_rect()`."""
  39270. return _mupdf.fz_set_link_rect(link, rect)
  39271. def fz_set_link_uri(link, uri):
  39272. r"""Class-aware wrapper for `::fz_set_link_uri()`."""
  39273. return _mupdf.fz_set_link_uri(link, uri)
  39274. def fz_set_metadata(doc, key, value):
  39275. r"""Class-aware wrapper for `::fz_set_metadata()`."""
  39276. return _mupdf.fz_set_metadata(doc, key, value)
  39277. def fz_set_pixmap_image_tile(cimg, pix):
  39278. r"""Class-aware wrapper for `::fz_set_pixmap_image_tile()`."""
  39279. return _mupdf.fz_set_pixmap_image_tile(cimg, pix)
  39280. def fz_set_pixmap_resolution(pix, xres, yres):
  39281. r"""
  39282. Class-aware wrapper for `::fz_set_pixmap_resolution()`.
  39283. Set the pixels per inch resolution of the pixmap.
  39284. """
  39285. return _mupdf.fz_set_pixmap_resolution(pix, xres, yres)
  39286. def fz_set_separation_behavior(sep, separation, behavior):
  39287. r"""
  39288. Class-aware wrapper for `::fz_set_separation_behavior()`.
  39289. Control the rendering of a given separation.
  39290. """
  39291. return _mupdf.fz_set_separation_behavior(sep, separation, behavior)
  39292. def fz_set_stddbg(out):
  39293. r"""
  39294. Class-aware wrapper for `::fz_set_stddbg()`.
  39295. Set the output stream to be used for fz_stddbg. Set to NULL to
  39296. reset to default (stderr).
  39297. """
  39298. return _mupdf.fz_set_stddbg(out)
  39299. def fz_set_text_aa_level(bits):
  39300. r"""
  39301. Class-aware wrapper for `::fz_set_text_aa_level()`.
  39302. Set the number of bits of antialiasing we
  39303. should use for text.
  39304. bits: The number of bits of antialiasing to use (values are
  39305. clamped to within the 0 to 8 range).
  39306. """
  39307. return _mupdf.fz_set_text_aa_level(bits)
  39308. def fz_set_use_document_css(use):
  39309. r"""
  39310. Class-aware wrapper for `::fz_set_use_document_css()`.
  39311. Toggle whether to respect document styles in HTML and EPUB.
  39312. """
  39313. return _mupdf.fz_set_use_document_css(use)
  39314. def fz_set_user_context(user):
  39315. r"""
  39316. Class-aware wrapper for `::fz_set_user_context()`.
  39317. Set the user field in the context.
  39318. NULL initially, this field can be set to any opaque value
  39319. required by the user. It is copied on clones.
  39320. """
  39321. return _mupdf.fz_set_user_context(user)
  39322. def fz_set_user_css(text):
  39323. r"""
  39324. Class-aware wrapper for `::fz_set_user_css()`.
  39325. Set the user stylesheet source text for use with HTML and EPUB.
  39326. """
  39327. return _mupdf.fz_set_user_css(text)
  39328. def fz_set_warning_callback(warning_cb, user):
  39329. r"""
  39330. Class-aware wrapper for `::fz_set_warning_callback()`.
  39331. Set the warning callback. This will be called as part of the
  39332. exception handling.
  39333. The callback must not throw exceptions!
  39334. """
  39335. return _mupdf.fz_set_warning_callback(warning_cb, user)
  39336. def fz_sha256_final(state, digest):
  39337. r"""
  39338. Class-aware wrapper for `::fz_sha256_final()`.
  39339. MD5 finalization. Ends an MD5 message-digest operation, writing
  39340. the message digest and zeroizing the context.
  39341. Never throws an exception.
  39342. """
  39343. return _mupdf.fz_sha256_final(state, digest)
  39344. def fz_sha256_init(state):
  39345. r"""
  39346. Class-aware wrapper for `::fz_sha256_init()`.
  39347. SHA256 initialization. Begins an SHA256 operation, initialising
  39348. the supplied context.
  39349. Never throws an exception.
  39350. """
  39351. return _mupdf.fz_sha256_init(state)
  39352. def fz_sha256_update(state, input, inlen):
  39353. r"""
  39354. Class-aware wrapper for `::fz_sha256_update()`.
  39355. SHA256 block update operation. Continues an SHA256 message-
  39356. digest operation, processing another message block, and updating
  39357. the context.
  39358. Never throws an exception.
  39359. """
  39360. return _mupdf.fz_sha256_update(state, input, inlen)
  39361. def fz_sha384_final(state, digest):
  39362. r"""
  39363. Class-aware wrapper for `::fz_sha384_final()`.
  39364. SHA384 finalization. Ends an SHA384 message-digest operation,
  39365. writing the message digest and zeroizing the context.
  39366. Never throws an exception.
  39367. """
  39368. return _mupdf.fz_sha384_final(state, digest)
  39369. def fz_sha384_init(state):
  39370. r"""
  39371. Class-aware wrapper for `::fz_sha384_init()`.
  39372. SHA384 initialization. Begins an SHA384 operation, initialising
  39373. the supplied context.
  39374. Never throws an exception.
  39375. """
  39376. return _mupdf.fz_sha384_init(state)
  39377. def fz_sha384_update(state, input, inlen):
  39378. r"""
  39379. Class-aware wrapper for `::fz_sha384_update()`.
  39380. SHA384 block update operation. Continues an SHA384 message-
  39381. digest operation, processing another message block, and updating
  39382. the context.
  39383. Never throws an exception.
  39384. """
  39385. return _mupdf.fz_sha384_update(state, input, inlen)
  39386. def fz_sha512_final(state, digest):
  39387. r"""
  39388. Class-aware wrapper for `::fz_sha512_final()`.
  39389. SHA512 finalization. Ends an SHA512 message-digest operation,
  39390. writing the message digest and zeroizing the context.
  39391. Never throws an exception.
  39392. """
  39393. return _mupdf.fz_sha512_final(state, digest)
  39394. def fz_sha512_init(state):
  39395. r"""
  39396. Class-aware wrapper for `::fz_sha512_init()`.
  39397. SHA512 initialization. Begins an SHA512 operation, initialising
  39398. the supplied context.
  39399. Never throws an exception.
  39400. """
  39401. return _mupdf.fz_sha512_init(state)
  39402. def fz_sha512_update(state, input, inlen):
  39403. r"""
  39404. Class-aware wrapper for `::fz_sha512_update()`.
  39405. SHA512 block update operation. Continues an SHA512 message-
  39406. digest operation, processing another message block, and updating
  39407. the context.
  39408. Never throws an exception.
  39409. """
  39410. return _mupdf.fz_sha512_update(state, input, inlen)
  39411. def fz_shear(sx, sy):
  39412. r"""
  39413. Class-aware wrapper for `::fz_shear()`.
  39414. Create a shearing matrix.
  39415. The returned matrix is of the form [ 1 sy sx 1 0 0 ].
  39416. m: pointer to place to store returned matrix
  39417. sx, sy: Shearing factors. A shearing factor of 0.0 will not
  39418. cause any shearing along the relevant axis.
  39419. Returns m.
  39420. """
  39421. return _mupdf.fz_shear(sx, sy)
  39422. def fz_show_glyph(text, font, trm, glyph, unicode, wmode, bidi_level, markup_dir, language):
  39423. r"""
  39424. Class-aware wrapper for `::fz_show_glyph()`.
  39425. Add a glyph/unicode value to a text object.
  39426. text: Text object to add to.
  39427. font: The font the glyph should be added in.
  39428. trm: The transform to use for the glyph.
  39429. glyph: The glyph id to add.
  39430. unicode: The unicode character for the glyph.
  39431. cid: The CJK CID value or raw character code.
  39432. wmode: 1 for vertical mode, 0 for horizontal.
  39433. bidi_level: The bidirectional level for this glyph.
  39434. markup_dir: The direction of the text as specified in the
  39435. markup.
  39436. language: The language in use (if known, 0 otherwise)
  39437. (e.g. FZ_LANG_zh_Hans).
  39438. Throws exception on failure to allocate.
  39439. """
  39440. return _mupdf.fz_show_glyph(text, font, trm, glyph, unicode, wmode, bidi_level, markup_dir, language)
  39441. def fz_show_glyph_aux(text, font, trm, adv, glyph, unicode, cid, wmode, bidi_level, markup_dir, lang):
  39442. r"""Class-aware wrapper for `::fz_show_glyph_aux()`."""
  39443. return _mupdf.fz_show_glyph_aux(text, font, trm, adv, glyph, unicode, cid, wmode, bidi_level, markup_dir, lang)
  39444. def fz_show_string(text, font, trm, s, wmode, bidi_level, markup_dir, language):
  39445. r"""
  39446. Class-aware wrapper for `::fz_show_string()`.
  39447. Add a UTF8 string to a text object.
  39448. text: Text object to add to.
  39449. font: The font the string should be added in.
  39450. trm: The transform to use.
  39451. s: The utf-8 string to add.
  39452. wmode: 1 for vertical mode, 0 for horizontal.
  39453. bidi_level: The bidirectional level for this glyph.
  39454. markup_dir: The direction of the text as specified in the markup.
  39455. language: The language in use (if known, 0 otherwise)
  39456. (e.g. FZ_LANG_zh_Hans).
  39457. Returns the transform updated with the advance width of the
  39458. string.
  39459. """
  39460. return _mupdf.fz_show_string(text, font, trm, s, wmode, bidi_level, markup_dir, language)
  39461. def fz_shrink_store(percent):
  39462. r"""
  39463. Class-aware wrapper for `::fz_shrink_store()`.
  39464. Evict items from the store until the total size of
  39465. the objects in the store is reduced to a given percentage of its
  39466. current size.
  39467. percent: %age of current size to reduce the store to.
  39468. Returns non zero if we managed to free enough memory, zero
  39469. otherwise.
  39470. """
  39471. return _mupdf.fz_shrink_store(percent)
  39472. def fz_skip(stm, len):
  39473. r"""
  39474. Class-aware wrapper for `::fz_skip()`.
  39475. Read from a stream discarding data.
  39476. stm: The stream to read from.
  39477. len: The number of bytes to read.
  39478. Returns the number of bytes read. May throw exceptions.
  39479. """
  39480. return _mupdf.fz_skip(stm, len)
  39481. def fz_skip_space(stm):
  39482. r"""
  39483. Class-aware wrapper for `::fz_skip_space()`.
  39484. Skip over whitespace (bytes <= 32) in a stream.
  39485. """
  39486. return _mupdf.fz_skip_space(stm)
  39487. def fz_skip_string(stm, str):
  39488. r"""
  39489. Class-aware wrapper for `::fz_skip_string()`.
  39490. Skip over a given string in a stream. Return 0 if successfully
  39491. skipped, non-zero otherwise. As many characters will be skipped
  39492. over as matched in the string.
  39493. """
  39494. return _mupdf.fz_skip_string(stm, str)
  39495. def fz_slice_buffer(buf, start, end):
  39496. r"""
  39497. Class-aware wrapper for `::fz_slice_buffer()`.
  39498. Create a new buffer with a (subset of) the data from the buffer.
  39499. start: if >= 0, offset from start of buffer, if < 0 offset from end of buffer.
  39500. end: if >= 0, offset from start of buffer, if < 0 offset from end of buffer.
  39501. """
  39502. return _mupdf.fz_slice_buffer(buf, start, end)
  39503. def fz_snap_selection(page, ap, bp, mode):
  39504. r"""Class-aware wrapper for `::fz_snap_selection()`."""
  39505. return _mupdf.fz_snap_selection(page, ap, bp, mode)
  39506. def fz_start_throw_on_repair():
  39507. r"""Class-aware wrapper for `::fz_start_throw_on_repair()`."""
  39508. return _mupdf.fz_start_throw_on_repair()
  39509. def fz_stat_ctime(path):
  39510. r"""Class-aware wrapper for `::fz_stat_ctime()`."""
  39511. return _mupdf.fz_stat_ctime(path)
  39512. def fz_stat_mtime(path):
  39513. r"""Class-aware wrapper for `::fz_stat_mtime()`."""
  39514. return _mupdf.fz_stat_mtime(path)
  39515. def fz_store_item(key, val, itemsize, type):
  39516. r"""
  39517. Class-aware wrapper for `::fz_store_item()`.
  39518. Add an item to the store.
  39519. Add an item into the store, returning NULL for success. If an
  39520. item with the same key is found in the store, then our item will
  39521. not be inserted, and the function will return a pointer to that
  39522. value instead. This function takes its own reference to val, as
  39523. required (i.e. the caller maintains ownership of its own
  39524. reference).
  39525. key: The key used to index the item.
  39526. val: The value to store.
  39527. itemsize: The size in bytes of the value (as counted towards the
  39528. store size).
  39529. type: Functions used to manipulate the key.
  39530. """
  39531. return _mupdf.fz_store_item(key, val, itemsize, type)
  39532. def fz_store_scavenge(size, phase):
  39533. r"""
  39534. Class-aware wrapper for `::fz_store_scavenge()`.
  39535. This function has out-params. Python/C# wrappers look like:
  39536. `fz_store_scavenge(size_t size)` => `(int, int phase)`
  39537. Internal function used as part of the scavenging
  39538. allocator; when we fail to allocate memory, before returning a
  39539. failure to the caller, we try to scavenge space within the store
  39540. by evicting at least 'size' bytes. The allocator then retries.
  39541. size: The number of bytes we are trying to have free.
  39542. phase: What phase of the scavenge we are in. Updated on exit.
  39543. Returns non zero if we managed to free any memory.
  39544. """
  39545. return _mupdf.fz_store_scavenge(size, phase)
  39546. def fz_store_scavenge_external(size, phase):
  39547. r"""
  39548. Class-aware wrapper for `::fz_store_scavenge_external()`.
  39549. This function has out-params. Python/C# wrappers look like:
  39550. `fz_store_scavenge_external(size_t size)` => `(int, int phase)`
  39551. External function for callers to use
  39552. to scavenge while trying allocations.
  39553. size: The number of bytes we are trying to have free.
  39554. phase: What phase of the scavenge we are in. Updated on exit.
  39555. Returns non zero if we managed to free any memory.
  39556. """
  39557. return _mupdf.fz_store_scavenge_external(size, phase)
  39558. def fz_story_document(story):
  39559. r"""Class-aware wrapper for `::fz_story_document()`."""
  39560. return _mupdf.fz_story_document(story)
  39561. def fz_story_positions(story, cb, arg):
  39562. r"""Class-aware wrapper for `::fz_story_positions()`."""
  39563. return _mupdf.fz_story_positions(story, cb, arg)
  39564. def fz_story_warnings(story):
  39565. r"""Class-aware wrapper for `::fz_story_warnings()`."""
  39566. return _mupdf.fz_story_warnings(story)
  39567. def fz_strcasecmp(a, b):
  39568. r"""
  39569. Class-aware wrapper for `::fz_strcasecmp()`.
  39570. Case insensitive (UTF8) string comparison.
  39571. """
  39572. return _mupdf.fz_strcasecmp(a, b)
  39573. def fz_strdup(s):
  39574. r"""
  39575. Class-aware wrapper for `::fz_strdup()`.
  39576. Portable strdup implementation, using fz allocators.
  39577. """
  39578. return _mupdf.fz_strdup(s)
  39579. def fz_stream_filename(stm):
  39580. r"""
  39581. Class-aware wrapper for `::fz_stream_filename()`.
  39582. Return the filename (UTF-8 encoded) from which a stream was opened.
  39583. Returns NULL if the filename is not available (or the stream was
  39584. opened from a source other than a file).
  39585. """
  39586. return _mupdf.fz_stream_filename(stm)
  39587. def fz_stream_from_output(arg_0):
  39588. r"""
  39589. Class-aware wrapper for `::fz_stream_from_output()`.
  39590. Obtain the fz_output in the form of a fz_stream.
  39591. This allows data to be read back from some forms of fz_output
  39592. object. When finished reading, the fz_stream should be released
  39593. by calling fz_drop_stream. Until the fz_stream is dropped, no
  39594. further operations should be performed on the fz_output object.
  39595. """
  39596. return _mupdf.fz_stream_from_output(arg_0)
  39597. def fz_string_from_barcode_type(type):
  39598. r"""
  39599. Class-aware wrapper for `::fz_string_from_barcode_type()`.
  39600. Return barcode string matching one of the above barcode types.
  39601. All lowercase, e.g. "none", "aztec" etc.
  39602. """
  39603. return _mupdf.fz_string_from_barcode_type(type)
  39604. def fz_string_from_box_type(box):
  39605. r"""Class-aware wrapper for `::fz_string_from_box_type()`."""
  39606. return _mupdf.fz_string_from_box_type(box)
  39607. def fz_string_from_buffer(buf):
  39608. r"""
  39609. Class-aware wrapper for `::fz_string_from_buffer()`.
  39610. Ensure that a buffer's data ends in a
  39611. 0 byte, and return a pointer to it.
  39612. """
  39613. return _mupdf.fz_string_from_buffer(buf)
  39614. def fz_string_from_linecap(cap):
  39615. r"""Class-aware wrapper for `::fz_string_from_linecap()`."""
  39616. return _mupdf.fz_string_from_linecap(cap)
  39617. def fz_string_from_linejoin(join):
  39618. r"""Class-aware wrapper for `::fz_string_from_linejoin()`."""
  39619. return _mupdf.fz_string_from_linejoin(join)
  39620. def fz_string_from_text_language(str, lang):
  39621. r"""
  39622. Class-aware wrapper for `::fz_string_from_text_language()`.
  39623. Recover ISO 639 (639-{1,2,3,5}) language specification
  39624. strings losslessly from a 15 bit fz_text_language code.
  39625. No validation is carried out. See note above.
  39626. """
  39627. return _mupdf.fz_string_from_text_language(str, lang)
  39628. def fz_string_from_text_language2(lang):
  39629. r"""
  39630. Class-aware wrapper for `::fz_string_from_text_language2()`.
  39631. C++ alternative to fz_string_from_text_language() that returns information in a std::string.
  39632. """
  39633. return _mupdf.fz_string_from_text_language2(lang)
  39634. def fz_strlcat(dst, src, n):
  39635. r"""
  39636. Class-aware wrapper for `::fz_strlcat()`.
  39637. Concatenate 2 strings, with a maximum length.
  39638. dst: pointer to first string in a buffer of n bytes.
  39639. src: pointer to string to concatenate.
  39640. n: Size (in bytes) of buffer that dst is in.
  39641. Returns the real length that a concatenated dst + src would have
  39642. been (not including terminator).
  39643. """
  39644. return _mupdf.fz_strlcat(dst, src, n)
  39645. def fz_strlcpy(dst, src, n):
  39646. r"""
  39647. Class-aware wrapper for `::fz_strlcpy()`.
  39648. Copy at most n-1 chars of a string into a destination
  39649. buffer with null termination, returning the real length of the
  39650. initial string (excluding terminator).
  39651. dst: Destination buffer, at least n bytes long.
  39652. src: C string (non-NULL).
  39653. n: Size of dst buffer in bytes.
  39654. Returns the length (excluding terminator) of src.
  39655. """
  39656. return _mupdf.fz_strlcpy(dst, src, n)
  39657. def fz_strncasecmp(a, b, n):
  39658. r"""
  39659. Class-aware wrapper for `::fz_strncasecmp()`.
  39660. Case insensitive (UTF8) string comparison.
  39661. n = maximum number of bytes to read from either a or b.
  39662. """
  39663. return _mupdf.fz_strncasecmp(a, b, n)
  39664. def fz_strnlen(s, maxlen):
  39665. r"""
  39666. Class-aware wrapper for `::fz_strnlen()`.
  39667. Return strlen(s), if that is less than maxlen, or maxlen if
  39668. there is no null byte ('') among the first maxlen bytes.
  39669. """
  39670. return _mupdf.fz_strnlen(s, maxlen)
  39671. def fz_stroke_path(dev, path, stroke, ctm, colorspace, color, alpha, color_params):
  39672. r"""Class-aware wrapper for `::fz_stroke_path()`."""
  39673. return _mupdf.fz_stroke_path(dev, path, stroke, ctm, colorspace, color, alpha, color_params)
  39674. def fz_stroke_state_eq(a, b):
  39675. r"""Class-aware wrapper for `::fz_stroke_state_eq()`."""
  39676. return _mupdf.fz_stroke_state_eq(a, b)
  39677. def fz_stroke_text(dev, text, stroke, ctm, colorspace, color, alpha, color_params):
  39678. r"""Class-aware wrapper for `::fz_stroke_text()`."""
  39679. return _mupdf.fz_stroke_text(dev, text, stroke, ctm, colorspace, color, alpha, color_params)
  39680. def fz_strsep(stringp, delim):
  39681. r"""
  39682. Class-aware wrapper for `::fz_strsep()`.
  39683. This function has out-params. Python/C# wrappers look like:
  39684. `fz_strsep(const char *delim)` => `(char *, char *stringp)`
  39685. Given a pointer to a C string (or a pointer to NULL) break
  39686. it at the first occurrence of a delimiter char (from a given
  39687. set).
  39688. stringp: Pointer to a C string pointer (or NULL). Updated on
  39689. exit to point to the first char of the string after the
  39690. delimiter that was found. The string pointed to by stringp will
  39691. be corrupted by this call (as the found delimiter will be
  39692. overwritten by 0).
  39693. delim: A C string of acceptable delimiter characters.
  39694. Returns a pointer to a C string containing the chars of stringp
  39695. up to the first delimiter char (or the end of the string), or
  39696. NULL.
  39697. """
  39698. return _mupdf.fz_strsep(stringp, delim)
  39699. def fz_strstr(haystack, needle):
  39700. r"""
  39701. Class-aware wrapper for `::fz_strstr()`.
  39702. Safe strstr function.
  39703. haystack: Where to look (may be NULL).
  39704. needled: What to look for.
  39705. Returns NULL if unmatched, or pointer to start of match.
  39706. """
  39707. return _mupdf.fz_strstr(haystack, needle)
  39708. def fz_strstrcase(haystack, needle):
  39709. r"""
  39710. Class-aware wrapper for `::fz_strstrcase()`.
  39711. Safe case-insensitive strstr function. (Accepts UTF-8).
  39712. haystack: Where to look (may be NULL).
  39713. needled: What to look for.
  39714. Returns NULL if unmatched, or pointer to start of match.
  39715. """
  39716. return _mupdf.fz_strstrcase(haystack, needle)
  39717. def fz_strtof(s, es):
  39718. r"""
  39719. Class-aware wrapper for `::fz_strtof()`.
  39720. This function has out-params. Python/C# wrappers look like:
  39721. `fz_strtof(const char *s)` => `(float, char *es)`
  39722. Locale-independent decimal to binary conversion. On overflow
  39723. return (-)INFINITY and set errno to ERANGE. On underflow return
  39724. 0 and set errno to ERANGE. Special inputs (case insensitive):
  39725. "NAN", "INF" or "INFINITY".
  39726. """
  39727. return _mupdf.fz_strtof(s, es)
  39728. def fz_structure_from_string(str):
  39729. r"""Class-aware wrapper for `::fz_structure_from_string()`."""
  39730. return _mupdf.fz_structure_from_string(str)
  39731. def fz_structure_to_string(type):
  39732. r"""Class-aware wrapper for `::fz_structure_to_string()`."""
  39733. return _mupdf.fz_structure_to_string(type)
  39734. def fz_strverscmp(s1, s2):
  39735. r"""
  39736. Class-aware wrapper for `::fz_strverscmp()`.
  39737. portable strverscmp(3) function
  39738. """
  39739. return _mupdf.fz_strverscmp(s1, s2)
  39740. def fz_subpixel_adjust(ctm, subpix_ctm, qe, qf):
  39741. r"""
  39742. Class-aware wrapper for `::fz_subpixel_adjust()`.
  39743. Perform subpixel quantisation and adjustment on a glyph matrix.
  39744. ctm: On entry, the desired 'ideal' transformation for a glyph.
  39745. On exit, adjusted to a (very similar) transformation quantised
  39746. for subpixel caching.
  39747. subpix_ctm: Initialised by the routine to the transform that
  39748. should be used to render the glyph.
  39749. qe, qf: which subpixel position we quantised to.
  39750. Returns: the size of the glyph.
  39751. Note: This is currently only exposed for use in our app. It
  39752. should be considered "at risk" of removal from the API.
  39753. """
  39754. return _mupdf.fz_subpixel_adjust(ctm, subpix_ctm, qe, qf)
  39755. def fz_subsample_pixmap(tile, factor):
  39756. r"""Class-aware wrapper for `::fz_subsample_pixmap()`."""
  39757. return _mupdf.fz_subsample_pixmap(tile, factor)
  39758. def fz_subset_cff_for_gids(orig, gids, num_gids, symbolic, cidfont):
  39759. r"""
  39760. Class-aware wrapper for `::fz_subset_cff_for_gids()`.
  39761. This function has out-params. Python/C# wrappers look like:
  39762. `fz_subset_cff_for_gids(::fz_buffer *orig, int num_gids, int symbolic, int cidfont)` => `(fz_buffer *, int gids)`
  39763. """
  39764. return _mupdf.fz_subset_cff_for_gids(orig, gids, num_gids, symbolic, cidfont)
  39765. def fz_subset_ttf_for_gids(orig, gids, num_gids, symbolic, cidfont):
  39766. r"""
  39767. Class-aware wrapper for `::fz_subset_ttf_for_gids()`.
  39768. This function has out-params. Python/C# wrappers look like:
  39769. `fz_subset_ttf_for_gids(::fz_buffer *orig, int num_gids, int symbolic, int cidfont)` => `(fz_buffer *, int gids)`
  39770. """
  39771. return _mupdf.fz_subset_ttf_for_gids(orig, gids, num_gids, symbolic, cidfont)
  39772. def fz_sync_bits(stm):
  39773. r"""
  39774. Class-aware wrapper for `::fz_sync_bits()`.
  39775. Called after reading bits to tell the stream
  39776. that we are about to return to reading bytewise. Resyncs
  39777. the stream to whole byte boundaries.
  39778. """
  39779. return _mupdf.fz_sync_bits(stm)
  39780. def fz_table_hunt(page):
  39781. r"""
  39782. Class-aware wrapper for `::fz_table_hunt()`.
  39783. Hunt for possible tables on a page, and update the stext with
  39784. information.
  39785. """
  39786. return _mupdf.fz_table_hunt(page)
  39787. def fz_tell(stm):
  39788. r"""
  39789. Class-aware wrapper for `::fz_tell()`.
  39790. return the current reading position within a stream
  39791. """
  39792. return _mupdf.fz_tell(stm)
  39793. def fz_tell_output(out):
  39794. r"""
  39795. Class-aware wrapper for `::fz_tell_output()`.
  39796. Return the current file position.
  39797. Throw an error on untellable outputs.
  39798. """
  39799. return _mupdf.fz_tell_output(out)
  39800. def fz_terminate_buffer(buf):
  39801. r"""
  39802. Class-aware wrapper for `::fz_terminate_buffer()`.
  39803. Zero-terminate buffer in order to use as a C string.
  39804. This byte is invisible and does not affect the length of the
  39805. buffer as returned by fz_buffer_storage. The zero byte is
  39806. written *after* the data, and subsequent writes will overwrite
  39807. the terminating byte.
  39808. Subsequent changes to the size of the buffer (such as by
  39809. fz_buffer_trim, fz_buffer_grow, fz_resize_buffer, etc) may
  39810. invalidate this.
  39811. """
  39812. return _mupdf.fz_terminate_buffer(buf)
  39813. def fz_text_aa_level():
  39814. r"""
  39815. Class-aware wrapper for `::fz_text_aa_level()`.
  39816. Get the number of bits of antialiasing we are
  39817. using for text. Between 0 and 8.
  39818. """
  39819. return _mupdf.fz_text_aa_level()
  39820. def fz_text_language_from_string(str):
  39821. r"""
  39822. Class-aware wrapper for `::fz_text_language_from_string()`.
  39823. Convert ISO 639 (639-{1,2,3,5}) language specification
  39824. strings losslessly to a 15 bit fz_text_language code.
  39825. No validation is carried out. Obviously invalid (out
  39826. of spec) codes will be mapped to FZ_LANG_UNSET, but
  39827. well-formed (but undefined) codes will be blithely
  39828. accepted.
  39829. """
  39830. return _mupdf.fz_text_language_from_string(str)
  39831. def fz_tint_pixmap(pix, black, white):
  39832. r"""
  39833. Class-aware wrapper for `::fz_tint_pixmap()`.
  39834. Tint all the pixels in an RGB, BGR, or Gray pixmap.
  39835. black: Map black to this hexadecimal RGB color.
  39836. white: Map white to this hexadecimal RGB color.
  39837. """
  39838. return _mupdf.fz_tint_pixmap(pix, black, white)
  39839. def fz_tolower(c):
  39840. r"""
  39841. Class-aware wrapper for `::fz_tolower()`.
  39842. Unicode aware tolower and toupper functions.
  39843. """
  39844. return _mupdf.fz_tolower(c)
  39845. def fz_toupper(c):
  39846. r"""Class-aware wrapper for `::fz_toupper()`."""
  39847. return _mupdf.fz_toupper(c)
  39848. def fz_transform_page(mediabox, resolution, rotate):
  39849. r"""
  39850. Class-aware wrapper for `::fz_transform_page()`.
  39851. Create transform matrix to draw page
  39852. at a given resolution and rotation. Adjusts the scaling
  39853. factors so that the page covers whole number of
  39854. pixels and adjust the page origin to be at 0,0.
  39855. """
  39856. return _mupdf.fz_transform_page(mediabox, resolution, rotate)
  39857. def fz_transform_path(path, transform):
  39858. r"""
  39859. Class-aware wrapper for `::fz_transform_path()`.
  39860. Transform a path by a given
  39861. matrix.
  39862. path: The path to modify (must not be a packed path).
  39863. transform: The transform to apply.
  39864. Throws exceptions if the path is packed, or on failure
  39865. to allocate.
  39866. """
  39867. return _mupdf.fz_transform_path(path, transform)
  39868. def fz_transform_point(point, m):
  39869. r"""
  39870. Class-aware wrapper for `::fz_transform_point()`.
  39871. Apply a transformation to a point.
  39872. transform: Transformation matrix to apply. See fz_concat,
  39873. fz_scale, fz_rotate and fz_translate for how to create a
  39874. matrix.
  39875. point: Pointer to point to update.
  39876. Returns transform (unchanged).
  39877. """
  39878. return _mupdf.fz_transform_point(point, m)
  39879. def fz_transform_point_xy(x, y, m):
  39880. r"""Class-aware wrapper for `::fz_transform_point_xy()`."""
  39881. return _mupdf.fz_transform_point_xy(x, y, m)
  39882. def fz_transform_quad(q, m):
  39883. r"""
  39884. Class-aware wrapper for `::fz_transform_quad()`.
  39885. Transform a quad by a matrix.
  39886. """
  39887. return _mupdf.fz_transform_quad(q, m)
  39888. def fz_transform_rect(rect, m):
  39889. r"""
  39890. Class-aware wrapper for `::fz_transform_rect()`.
  39891. Apply a transform to a rectangle.
  39892. After the four corner points of the axis-aligned rectangle
  39893. have been transformed it may not longer be axis-aligned. So a
  39894. new axis-aligned rectangle is created covering at least the
  39895. area of the transformed rectangle.
  39896. transform: Transformation matrix to apply. See fz_concat,
  39897. fz_scale and fz_rotate for how to create a matrix.
  39898. rect: Rectangle to be transformed. The two special cases
  39899. fz_empty_rect and fz_infinite_rect, may be used but are
  39900. returned unchanged as expected.
  39901. """
  39902. return _mupdf.fz_transform_rect(rect, m)
  39903. def fz_transform_vector(vector, m):
  39904. r"""
  39905. Class-aware wrapper for `::fz_transform_vector()`.
  39906. Apply a transformation to a vector.
  39907. transform: Transformation matrix to apply. See fz_concat,
  39908. fz_scale and fz_rotate for how to create a matrix. Any
  39909. translation will be ignored.
  39910. vector: Pointer to vector to update.
  39911. """
  39912. return _mupdf.fz_transform_vector(vector, m)
  39913. def fz_translate(tx, ty):
  39914. r"""
  39915. Class-aware wrapper for `::fz_translate()`.
  39916. Create a translation matrix.
  39917. The returned matrix is of the form [ 1 0 0 1 tx ty ].
  39918. m: A place to store the created matrix.
  39919. tx, ty: Translation distances along the X- and Y-axes. A
  39920. translation of 0 will not cause any translation along the
  39921. relevant axis.
  39922. Returns m.
  39923. """
  39924. return _mupdf.fz_translate(tx, ty)
  39925. def fz_translate_irect(a, xoff, yoff):
  39926. r"""Class-aware wrapper for `::fz_translate_irect()`."""
  39927. return _mupdf.fz_translate_irect(a, xoff, yoff)
  39928. def fz_translate_rect(a, xoff, yoff):
  39929. r"""
  39930. Class-aware wrapper for `::fz_translate_rect()`.
  39931. Translate bounding box.
  39932. Translate a bbox by a given x and y offset. Allows for overflow.
  39933. """
  39934. return _mupdf.fz_translate_rect(a, xoff, yoff)
  39935. def fz_tree_archive_add_buffer(arch_, name, buf):
  39936. r"""
  39937. Class-aware wrapper for `::fz_tree_archive_add_buffer()`.
  39938. Add a named buffer to an existing tree archive.
  39939. The tree will take a new reference to the buffer. Ownership
  39940. is not transferred.
  39941. """
  39942. return _mupdf.fz_tree_archive_add_buffer(arch_, name, buf)
  39943. def fz_tree_archive_add_data(arch_, name, data, size):
  39944. r"""
  39945. Class-aware wrapper for `::fz_tree_archive_add_data()`.
  39946. Add a named block of data to an existing tree archive.
  39947. The data will be copied into a buffer, and so the caller
  39948. may free it as soon as this returns.
  39949. """
  39950. return _mupdf.fz_tree_archive_add_data(arch_, name, data, size)
  39951. def fz_tree_lookup(node, key):
  39952. r"""
  39953. Class-aware wrapper for `::fz_tree_lookup()`.
  39954. Look for the value of a node in the tree with the given key.
  39955. Simple pointer equivalence is used for key.
  39956. Returns NULL for no match.
  39957. """
  39958. return _mupdf.fz_tree_lookup(node, key)
  39959. def fz_trim_buffer(buf):
  39960. r"""
  39961. Class-aware wrapper for `::fz_trim_buffer()`.
  39962. Trim wasted capacity from a buffer by resizing internal memory.
  39963. """
  39964. return _mupdf.fz_trim_buffer(buf)
  39965. def fz_trim_path(path):
  39966. r"""
  39967. Class-aware wrapper for `::fz_trim_path()`.
  39968. Minimise the internal storage used by a path.
  39969. As paths are constructed, the internal buffers
  39970. grow. To avoid repeated reallocations they
  39971. grow with some spare space. Once a path has
  39972. been fully constructed, this call allows the
  39973. excess space to be trimmed.
  39974. """
  39975. return _mupdf.fz_trim_path(path)
  39976. def fz_truncate_output(arg_0):
  39977. r"""
  39978. Class-aware wrapper for `::fz_truncate_output()`.
  39979. Truncate the output at the current position.
  39980. This allows output streams which have seeked back from the end
  39981. of their storage to be truncated at the current point.
  39982. """
  39983. return _mupdf.fz_truncate_output(arg_0)
  39984. def fz_try_invert_matrix(inv, src):
  39985. r"""
  39986. Class-aware wrapper for `::fz_try_invert_matrix()`.
  39987. Attempt to create an inverse matrix.
  39988. inv: Place to store inverse matrix.
  39989. src: Matrix to invert. A degenerate matrix, where the
  39990. determinant is equal to zero, can not be inverted.
  39991. Returns 1 if matrix is degenerate (singular), or 0 otherwise.
  39992. """
  39993. return _mupdf.fz_try_invert_matrix(inv, src)
  39994. def fz_try_open_archive_entry(arch, name):
  39995. r"""
  39996. Class-aware wrapper for `::fz_try_open_archive_entry()`.
  39997. Opens an archive entry as a stream.
  39998. Returns NULL if a matching entry cannot be found, otherwise
  39999. behaves exactly as fz_open_archive_entry.
  40000. """
  40001. return _mupdf.fz_try_open_archive_entry(arch, name)
  40002. def fz_try_open_archive_with_stream(file):
  40003. r"""
  40004. Class-aware wrapper for `::fz_try_open_archive_with_stream()`.
  40005. Open zip or tar archive stream.
  40006. Does the same as fz_open_archive_with_stream, but will not throw
  40007. an error in the event of failing to recognise the format. Will
  40008. still throw errors in other cases though!
  40009. """
  40010. return _mupdf.fz_try_open_archive_with_stream(file)
  40011. def fz_try_open_file(name):
  40012. r"""
  40013. Class-aware wrapper for `::fz_try_open_file()`.
  40014. Open the named file and wrap it in a stream.
  40015. Does the same as fz_open_file, but in the event the file
  40016. does not open, it will return NULL rather than throw an
  40017. exception.
  40018. """
  40019. return _mupdf.fz_try_open_file(name)
  40020. def fz_try_parse_xml_archive_entry(dir, filename, preserve_white):
  40021. r"""
  40022. Class-aware wrapper for `::fz_try_parse_xml_archive_entry()`.
  40023. Try and parse the contents of an archive entry into a tree of xml nodes.
  40024. preserve_white: whether to keep or delete all-whitespace nodes.
  40025. Will return NULL if the archive entry can't be found. Otherwise behaves
  40026. the same as fz_parse_xml_archive_entry. May throw exceptions.
  40027. """
  40028. return _mupdf.fz_try_parse_xml_archive_entry(dir, filename, preserve_white)
  40029. def fz_try_read_archive_entry(arch, name):
  40030. r"""
  40031. Class-aware wrapper for `::fz_try_read_archive_entry()`.
  40032. Reads all bytes in an archive entry
  40033. into a buffer.
  40034. name: Entry name to look for, this must be an exact match to
  40035. the entry name in the archive.
  40036. Returns NULL if a matching entry cannot be found. Otherwise behaves
  40037. the same as fz_read_archive_entry. Exceptions may be thrown.
  40038. """
  40039. return _mupdf.fz_try_read_archive_entry(arch, name)
  40040. def fz_try_read_file(filename):
  40041. r"""
  40042. Class-aware wrapper for `::fz_try_read_file()`.
  40043. Read all the contents of a file into a buffer.
  40044. Returns NULL if the file does not exist, otherwise
  40045. behaves exactly as fz_read_file.
  40046. """
  40047. return _mupdf.fz_try_read_file(filename)
  40048. def fz_tune_image_decode(image_decode, arg):
  40049. r"""
  40050. Class-aware wrapper for `::fz_tune_image_decode()`.
  40051. Set the tuning function to use for
  40052. image decode.
  40053. image_decode: Function to use.
  40054. arg: Opaque argument to be passed to tuning function.
  40055. """
  40056. return _mupdf.fz_tune_image_decode(image_decode, arg)
  40057. def fz_tune_image_scale(image_scale, arg):
  40058. r"""
  40059. Class-aware wrapper for `::fz_tune_image_scale()`.
  40060. Set the tuning function to use for
  40061. image scaling.
  40062. image_scale: Function to use.
  40063. arg: Opaque argument to be passed to tuning function.
  40064. """
  40065. return _mupdf.fz_tune_image_scale(image_scale, arg)
  40066. def fz_unicode_from_glyph_name(name):
  40067. r"""Class-aware wrapper for `::fz_unicode_from_glyph_name()`."""
  40068. return _mupdf.fz_unicode_from_glyph_name(name)
  40069. def fz_unicode_from_glyph_name_strict(name):
  40070. r"""Class-aware wrapper for `::fz_unicode_from_glyph_name_strict()`."""
  40071. return _mupdf.fz_unicode_from_glyph_name_strict(name)
  40072. def fz_union_rect(a, b):
  40073. r"""
  40074. Class-aware wrapper for `::fz_union_rect()`.
  40075. Compute union of two rectangles.
  40076. Given two rectangles, update the first to be the smallest
  40077. axis-aligned rectangle that encompasses both given rectangles.
  40078. If either rectangle is infinite then the union is also infinite.
  40079. If either rectangle is empty then the union is simply the
  40080. non-empty rectangle. Should both rectangles be empty, then the
  40081. union is also empty.
  40082. """
  40083. return _mupdf.fz_union_rect(a, b)
  40084. def fz_unlock(lock):
  40085. r"""
  40086. Class-aware wrapper for `::fz_unlock()`.
  40087. Unlock one of the user supplied mutexes.
  40088. """
  40089. return _mupdf.fz_unlock(lock)
  40090. def fz_unpack_stream(src, depth, w, h, n, indexed, pad, skip):
  40091. r"""Class-aware wrapper for `::fz_unpack_stream()`."""
  40092. return _mupdf.fz_unpack_stream(src, depth, w, h, n, indexed, pad, skip)
  40093. def fz_unread_byte(stm):
  40094. r"""
  40095. Class-aware wrapper for `::fz_unread_byte()`.
  40096. Unread the single last byte successfully
  40097. read from a stream. Do not call this without having
  40098. successfully read a byte.
  40099. stm: The stream to operate upon.
  40100. """
  40101. return _mupdf.fz_unread_byte(stm)
  40102. def fz_unshare_stroke_state(shared):
  40103. r"""
  40104. Class-aware wrapper for `::fz_unshare_stroke_state()`.
  40105. Given a reference to a (possibly) shared stroke_state structure,
  40106. return a reference to an equivalent stroke_state structure
  40107. that is guaranteed to be unshared (i.e. one that can
  40108. safely be modified).
  40109. shared: The reference to a (possibly) shared structure
  40110. to unshare. Ownership of this reference is passed in
  40111. to this function, even in the case of exceptions being
  40112. thrown.
  40113. Exceptions may be thrown in the event of failure to
  40114. allocate if required.
  40115. """
  40116. return _mupdf.fz_unshare_stroke_state(shared)
  40117. def fz_unshare_stroke_state_with_dash_len(shared, len):
  40118. r"""
  40119. Class-aware wrapper for `::fz_unshare_stroke_state_with_dash_len()`.
  40120. Given a reference to a (possibly) shared stroke_state structure,
  40121. return a reference to a stroke_state structure (with room for a
  40122. given amount of dash data) that is guaranteed to be unshared
  40123. (i.e. one that can safely be modified).
  40124. shared: The reference to a (possibly) shared structure
  40125. to unshare. Ownership of this reference is passed in
  40126. to this function, even in the case of exceptions being
  40127. thrown.
  40128. Exceptions may be thrown in the event of failure to
  40129. allocate if required.
  40130. """
  40131. return _mupdf.fz_unshare_stroke_state_with_dash_len(shared, len)
  40132. def fz_urldecode(url):
  40133. r"""
  40134. Class-aware wrapper for `::fz_urldecode()`.
  40135. Like fz_decode_uri_component but in-place.
  40136. """
  40137. return _mupdf.fz_urldecode(url)
  40138. def fz_use_document_css():
  40139. r"""
  40140. Class-aware wrapper for `::fz_use_document_css()`.
  40141. Return whether to respect document styles in HTML and EPUB.
  40142. """
  40143. return _mupdf.fz_use_document_css()
  40144. def fz_user_context():
  40145. r"""
  40146. Class-aware wrapper for `::fz_user_context()`.
  40147. Read the user field from the context.
  40148. """
  40149. return _mupdf.fz_user_context()
  40150. def fz_user_css():
  40151. r"""
  40152. Class-aware wrapper for `::fz_user_css()`.
  40153. Get the user stylesheet source text.
  40154. """
  40155. return _mupdf.fz_user_css()
  40156. def fz_utflen(s):
  40157. r"""
  40158. Class-aware wrapper for `::fz_utflen()`.
  40159. Count how many runes the UTF-8 encoded string
  40160. consists of.
  40161. s: The UTF-8 encoded, NUL-terminated text string.
  40162. Returns the number of runes in the string.
  40163. """
  40164. return _mupdf.fz_utflen(s)
  40165. def fz_var_imp(arg_0):
  40166. r"""Class-aware wrapper for `::fz_var_imp()`."""
  40167. return _mupdf.fz_var_imp(arg_0)
  40168. def fz_walk_path(path, walker, arg):
  40169. r"""
  40170. Class-aware wrapper for `::fz_walk_path()`.
  40171. Walk the segments of a path, calling the
  40172. appropriate callback function from a given set for each
  40173. segment of the path.
  40174. path: The path to walk.
  40175. walker: The set of callback functions to use. The first
  40176. 4 callback pointers in the set must be non-NULL. The
  40177. subsequent ones can either be supplied, or can be left
  40178. as NULL, in which case the top 4 functions will be
  40179. called as appropriate to simulate them.
  40180. arg: An opaque argument passed in to each callback.
  40181. Exceptions will only be thrown if the underlying callback
  40182. functions throw them.
  40183. """
  40184. return _mupdf.fz_walk_path(path, walker, arg)
  40185. def fz_warn(*args):
  40186. r"""Class-aware wrapper for `::fz_warn()`."""
  40187. return _mupdf.fz_warn(*args)
  40188. def fz_warning_callback(user):
  40189. r"""
  40190. Class-aware wrapper for `::fz_warning_callback()`.
  40191. This function has out-params. Python/C# wrappers look like:
  40192. `fz_warning_callback()` => `(fz_warning_cb *, void *user)`
  40193. Retrieve the currently set warning callback, or NULL if none
  40194. has been set. Optionally, if user is non-NULL, the user pointer
  40195. given when the warning callback was set is also passed back to
  40196. the caller.
  40197. """
  40198. return _mupdf.fz_warning_callback(user)
  40199. def fz_warp_pixmap(src, points, width, height):
  40200. r"""Class-aware wrapper for `::fz_warp_pixmap()`."""
  40201. return _mupdf.fz_warp_pixmap(src, points, width, height)
  40202. def fz_windows_1250_from_unicode(u):
  40203. r"""Class-aware wrapper for `::fz_windows_1250_from_unicode()`."""
  40204. return _mupdf.fz_windows_1250_from_unicode(u)
  40205. def fz_windows_1251_from_unicode(u):
  40206. r"""Class-aware wrapper for `::fz_windows_1251_from_unicode()`."""
  40207. return _mupdf.fz_windows_1251_from_unicode(u)
  40208. def fz_windows_1252_from_unicode(u):
  40209. r"""Class-aware wrapper for `::fz_windows_1252_from_unicode()`."""
  40210. return _mupdf.fz_windows_1252_from_unicode(u)
  40211. def fz_write_band(writer, stride, band_height, samples):
  40212. r"""
  40213. Class-aware wrapper for `::fz_write_band()`.
  40214. Cause a band writer to write the next band
  40215. of data for an image.
  40216. stride: The byte offset from the first byte of the data
  40217. for a pixel to the first byte of the data for the same pixel
  40218. on the row below.
  40219. band_height: The number of lines in this band.
  40220. samples: Pointer to first byte of the data.
  40221. """
  40222. return _mupdf.fz_write_band(writer, stride, band_height, samples)
  40223. def fz_write_base64(out, data, size, newline):
  40224. r"""
  40225. Class-aware wrapper for `::fz_write_base64()`.
  40226. Write a base64 encoded data block, optionally with periodic
  40227. newlines.
  40228. """
  40229. return _mupdf.fz_write_base64(out, data, size, newline)
  40230. def fz_write_base64_buffer(out, data, newline):
  40231. r"""
  40232. Class-aware wrapper for `::fz_write_base64_buffer()`.
  40233. Write a base64 encoded fz_buffer, optionally with periodic
  40234. newlines.
  40235. """
  40236. return _mupdf.fz_write_base64_buffer(out, data, newline)
  40237. def fz_write_bitmap_as_pbm(out, bitmap):
  40238. r"""
  40239. Class-aware wrapper for `::fz_write_bitmap_as_pbm()`.
  40240. Write a bitmap as a pbm.
  40241. """
  40242. return _mupdf.fz_write_bitmap_as_pbm(out, bitmap)
  40243. def fz_write_bitmap_as_pcl(out, bitmap, pcl):
  40244. r"""
  40245. Class-aware wrapper for `::fz_write_bitmap_as_pcl()`.
  40246. Write a bitmap as mono PCL.
  40247. """
  40248. return _mupdf.fz_write_bitmap_as_pcl(out, bitmap, pcl)
  40249. def fz_write_bitmap_as_pkm(out, bitmap):
  40250. r"""
  40251. Class-aware wrapper for `::fz_write_bitmap_as_pkm()`.
  40252. Write a CMYK bitmap as a pkm.
  40253. """
  40254. return _mupdf.fz_write_bitmap_as_pkm(out, bitmap)
  40255. def fz_write_bitmap_as_pwg(out, bitmap, pwg):
  40256. r"""
  40257. Class-aware wrapper for `::fz_write_bitmap_as_pwg()`.
  40258. Write a bitmap as a PWG.
  40259. """
  40260. return _mupdf.fz_write_bitmap_as_pwg(out, bitmap, pwg)
  40261. def fz_write_bitmap_as_pwg_page(out, bitmap, pwg):
  40262. r"""
  40263. Class-aware wrapper for `::fz_write_bitmap_as_pwg_page()`.
  40264. Write a bitmap as a PWG page.
  40265. Caller should provide a file header by calling
  40266. fz_write_pwg_file_header, but can then write several pages to
  40267. the same file.
  40268. """
  40269. return _mupdf.fz_write_bitmap_as_pwg_page(out, bitmap, pwg)
  40270. def fz_write_bits(out, data, num_bits):
  40271. r"""
  40272. Class-aware wrapper for `::fz_write_bits()`.
  40273. Write num_bits of data to the end of the output stream, assumed to be packed
  40274. most significant bits first.
  40275. """
  40276. return _mupdf.fz_write_bits(out, data, num_bits)
  40277. def fz_write_bits_sync(out):
  40278. r"""
  40279. Class-aware wrapper for `::fz_write_bits_sync()`.
  40280. Sync to byte boundary after writing bits.
  40281. """
  40282. return _mupdf.fz_write_bits_sync(out)
  40283. def fz_write_buffer(out, data):
  40284. r"""Class-aware wrapper for `::fz_write_buffer()`."""
  40285. return _mupdf.fz_write_buffer(out, data)
  40286. def fz_write_byte(out, x):
  40287. r"""Class-aware wrapper for `::fz_write_byte()`."""
  40288. return _mupdf.fz_write_byte(out, x)
  40289. def fz_write_char(out, x):
  40290. r"""Class-aware wrapper for `::fz_write_char()`."""
  40291. return _mupdf.fz_write_char(out, x)
  40292. def fz_write_data(out, data, size):
  40293. r"""
  40294. Class-aware wrapper for `::fz_write_data()`.
  40295. Write data to output.
  40296. data: Pointer to data to write.
  40297. size: Size of data to write in bytes.
  40298. """
  40299. return _mupdf.fz_write_data(out, data, size)
  40300. def fz_write_document(wri, doc):
  40301. r"""
  40302. Class-aware wrapper for `::fz_write_document()`.
  40303. Convenience function to feed all the pages of a document to
  40304. fz_begin_page/fz_run_page/fz_end_page.
  40305. """
  40306. return _mupdf.fz_write_document(wri, doc)
  40307. def fz_write_float_be(out, f):
  40308. r"""Class-aware wrapper for `::fz_write_float_be()`."""
  40309. return _mupdf.fz_write_float_be(out, f)
  40310. def fz_write_float_le(out, f):
  40311. r"""Class-aware wrapper for `::fz_write_float_le()`."""
  40312. return _mupdf.fz_write_float_le(out, f)
  40313. def fz_write_header(writer, w, h, n, alpha, xres, yres, pagenum, cs, seps):
  40314. r"""
  40315. Class-aware wrapper for `::fz_write_header()`.
  40316. Cause a band writer to write the header for
  40317. a banded image with the given properties/dimensions etc. This
  40318. also configures the bandwriter for the format of the data to be
  40319. passed in future calls.
  40320. w, h: Width and Height of the entire page.
  40321. n: Number of components (including spots and alphas).
  40322. alpha: Number of alpha components.
  40323. xres, yres: X and Y resolutions in dpi.
  40324. cs: Colorspace (NULL for bitmaps)
  40325. seps: Separation details (or NULL).
  40326. """
  40327. return _mupdf.fz_write_header(writer, w, h, n, alpha, xres, yres, pagenum, cs, seps)
  40328. def fz_write_image_as_data_uri(out, image):
  40329. r"""
  40330. Class-aware wrapper for `::fz_write_image_as_data_uri()`.
  40331. Write image as a data URI (for HTML and SVG output).
  40332. """
  40333. return _mupdf.fz_write_image_as_data_uri(out, image)
  40334. def fz_write_int16_be(out, x):
  40335. r"""Class-aware wrapper for `::fz_write_int16_be()`."""
  40336. return _mupdf.fz_write_int16_be(out, x)
  40337. def fz_write_int16_le(out, x):
  40338. r"""Class-aware wrapper for `::fz_write_int16_le()`."""
  40339. return _mupdf.fz_write_int16_le(out, x)
  40340. def fz_write_int32_be(out, x):
  40341. r"""
  40342. Class-aware wrapper for `::fz_write_int32_be()`.
  40343. Write different sized data to an output stream.
  40344. """
  40345. return _mupdf.fz_write_int32_be(out, x)
  40346. def fz_write_int32_le(out, x):
  40347. r"""Class-aware wrapper for `::fz_write_int32_le()`."""
  40348. return _mupdf.fz_write_int32_le(out, x)
  40349. def fz_write_json(out, value):
  40350. r"""Class-aware wrapper for `::fz_write_json()`."""
  40351. return _mupdf.fz_write_json(out, value)
  40352. def fz_write_pixmap_as_data_uri(out, pixmap):
  40353. r"""Class-aware wrapper for `::fz_write_pixmap_as_data_uri()`."""
  40354. return _mupdf.fz_write_pixmap_as_data_uri(out, pixmap)
  40355. def fz_write_pixmap_as_jpeg(out, pix, quality, invert_cmyk):
  40356. r"""
  40357. Class-aware wrapper for `::fz_write_pixmap_as_jpeg()`.
  40358. Write a pixmap as a JPEG.
  40359. """
  40360. return _mupdf.fz_write_pixmap_as_jpeg(out, pix, quality, invert_cmyk)
  40361. def fz_write_pixmap_as_jpx(out, pix, quality):
  40362. r"""
  40363. Class-aware wrapper for `::fz_write_pixmap_as_jpx()`.
  40364. Pixmap data as JP2K with no subsampling.
  40365. quality = 100 = lossless
  40366. otherwise for a factor of x compression use 100-x. (so 80 is 1:20 compression)
  40367. """
  40368. return _mupdf.fz_write_pixmap_as_jpx(out, pix, quality)
  40369. def fz_write_pixmap_as_pam(out, pixmap):
  40370. r"""
  40371. Class-aware wrapper for `::fz_write_pixmap_as_pam()`.
  40372. Write a pixmap as a pnm (greyscale, rgb or cmyk, with or without
  40373. alpha).
  40374. """
  40375. return _mupdf.fz_write_pixmap_as_pam(out, pixmap)
  40376. def fz_write_pixmap_as_pcl(out, pixmap, pcl):
  40377. r"""
  40378. Class-aware wrapper for `::fz_write_pixmap_as_pcl()`.
  40379. Write an (RGB) pixmap as color PCL.
  40380. """
  40381. return _mupdf.fz_write_pixmap_as_pcl(out, pixmap, pcl)
  40382. def fz_write_pixmap_as_pclm(out, pixmap, options):
  40383. r"""
  40384. Class-aware wrapper for `::fz_write_pixmap_as_pclm()`.
  40385. Write a (Greyscale or RGB) pixmap as pclm.
  40386. """
  40387. return _mupdf.fz_write_pixmap_as_pclm(out, pixmap, options)
  40388. def fz_write_pixmap_as_pdfocr(out, pixmap, options):
  40389. r"""
  40390. Class-aware wrapper for `::fz_write_pixmap_as_pdfocr()`.
  40391. Write a (Greyscale or RGB) pixmap as pdfocr.
  40392. """
  40393. return _mupdf.fz_write_pixmap_as_pdfocr(out, pixmap, options)
  40394. def fz_write_pixmap_as_png(out, pixmap):
  40395. r"""
  40396. Class-aware wrapper for `::fz_write_pixmap_as_png()`.
  40397. Write a (Greyscale or RGB) pixmap as a png.
  40398. """
  40399. return _mupdf.fz_write_pixmap_as_png(out, pixmap)
  40400. def fz_write_pixmap_as_pnm(out, pixmap):
  40401. r"""
  40402. Class-aware wrapper for `::fz_write_pixmap_as_pnm()`.
  40403. Write a pixmap as a pnm (greyscale or rgb, no alpha).
  40404. """
  40405. return _mupdf.fz_write_pixmap_as_pnm(out, pixmap)
  40406. def fz_write_pixmap_as_ps(out, pixmap):
  40407. r"""
  40408. Class-aware wrapper for `::fz_write_pixmap_as_ps()`.
  40409. Write a (gray, rgb, or cmyk, no alpha) pixmap out as postscript.
  40410. """
  40411. return _mupdf.fz_write_pixmap_as_ps(out, pixmap)
  40412. def fz_write_pixmap_as_psd(out, pixmap):
  40413. r"""
  40414. Class-aware wrapper for `::fz_write_pixmap_as_psd()`.
  40415. Write a pixmap as a PSD file.
  40416. """
  40417. return _mupdf.fz_write_pixmap_as_psd(out, pixmap)
  40418. def fz_write_pixmap_as_pwg(out, pixmap, pwg):
  40419. r"""
  40420. Class-aware wrapper for `::fz_write_pixmap_as_pwg()`.
  40421. Write a pixmap as a PWG.
  40422. """
  40423. return _mupdf.fz_write_pixmap_as_pwg(out, pixmap, pwg)
  40424. def fz_write_pixmap_as_pwg_page(out, pixmap, pwg):
  40425. r"""
  40426. Class-aware wrapper for `::fz_write_pixmap_as_pwg_page()`.
  40427. Write a pixmap as a PWG page.
  40428. Caller should provide a file header by calling
  40429. fz_write_pwg_file_header, but can then write several pages to
  40430. the same file.
  40431. """
  40432. return _mupdf.fz_write_pixmap_as_pwg_page(out, pixmap, pwg)
  40433. def fz_write_ps_file_header(out):
  40434. r"""
  40435. Class-aware wrapper for `::fz_write_ps_file_header()`.
  40436. Write the file level header for ps band writer output.
  40437. """
  40438. return _mupdf.fz_write_ps_file_header(out)
  40439. def fz_write_ps_file_trailer(out, pages):
  40440. r"""
  40441. Class-aware wrapper for `::fz_write_ps_file_trailer()`.
  40442. Write the file level trailer for ps band writer output.
  40443. """
  40444. return _mupdf.fz_write_ps_file_trailer(out, pages)
  40445. def fz_write_pwg_file_header(out):
  40446. r"""
  40447. Class-aware wrapper for `::fz_write_pwg_file_header()`.
  40448. Output the file header to a pwg stream, ready for pages to follow it.
  40449. """
  40450. return _mupdf.fz_write_pwg_file_header(out)
  40451. def fz_write_rune(out, rune):
  40452. r"""
  40453. Class-aware wrapper for `::fz_write_rune()`.
  40454. Write a UTF-8 encoded unicode character.
  40455. """
  40456. return _mupdf.fz_write_rune(out, rune)
  40457. def fz_write_stabilized_story(writer, user_css, em, contentfn, contentfn_ref, rectfn, rectfn_ref, pagefn, pagefn_ref, dir):
  40458. r"""Class-aware wrapper for `::fz_write_stabilized_story()`."""
  40459. return _mupdf.fz_write_stabilized_story(writer, user_css, em, contentfn, contentfn_ref, rectfn, rectfn_ref, pagefn, pagefn_ref, dir)
  40460. def fz_write_story(writer, story, rectfn, rectfn_ref, positionfn, positionfn_ref, pagefn, pagefn_ref):
  40461. r"""Class-aware wrapper for `::fz_write_story()`."""
  40462. return _mupdf.fz_write_story(writer, story, rectfn, rectfn_ref, positionfn, positionfn_ref, pagefn, pagefn_ref)
  40463. def fz_write_stream(out, _in):
  40464. r"""
  40465. Class-aware wrapper for `::fz_write_stream()`.
  40466. Copy the stream contents to the output.
  40467. """
  40468. return _mupdf.fz_write_stream(out, _in)
  40469. def fz_write_string(out, s):
  40470. r"""
  40471. Class-aware wrapper for `::fz_write_string()`.
  40472. Write a string. Does not write zero terminator.
  40473. """
  40474. return _mupdf.fz_write_string(out, s)
  40475. def fz_write_uint16_be(out, x):
  40476. r"""Class-aware wrapper for `::fz_write_uint16_be()`."""
  40477. return _mupdf.fz_write_uint16_be(out, x)
  40478. def fz_write_uint16_le(out, x):
  40479. r"""Class-aware wrapper for `::fz_write_uint16_le()`."""
  40480. return _mupdf.fz_write_uint16_le(out, x)
  40481. def fz_write_uint32_be(out, x):
  40482. r"""Class-aware wrapper for `::fz_write_uint32_be()`."""
  40483. return _mupdf.fz_write_uint32_be(out, x)
  40484. def fz_write_uint32_le(out, x):
  40485. r"""Class-aware wrapper for `::fz_write_uint32_le()`."""
  40486. return _mupdf.fz_write_uint32_le(out, x)
  40487. def fz_write_xml(root, out, indented):
  40488. r"""
  40489. Class-aware wrapper for `::fz_write_xml()`.
  40490. Write our xml structure out to an xml stream.
  40491. Properly formatted XML is only allowed to have a single top-level node
  40492. under which everything must sit. Our structures allow for multiple
  40493. top level nodes. If required, we will output an extra 'ROOT' node
  40494. at the top so that the xml is well-formed.
  40495. If 'indented' is non-zero then additional whitespace will be added to
  40496. make the XML easier to read in a text editor. It will NOT be properly
  40497. compliant.
  40498. """
  40499. return _mupdf.fz_write_xml(root, out, indented)
  40500. def fz_write_zip_entry(zip, name, buf, compress):
  40501. r"""
  40502. Class-aware wrapper for `::fz_write_zip_entry()`.
  40503. Given a buffer of data, (optionally) compress it, and add it to
  40504. the zip file with the given name.
  40505. """
  40506. return _mupdf.fz_write_zip_entry(zip, name, buf, compress)
  40507. def fz_xml_add_att(pool, node, key, val):
  40508. r"""
  40509. Class-aware wrapper for `::fz_xml_add_att()`.
  40510. Add an attribute to an XML node.
  40511. """
  40512. return _mupdf.fz_xml_add_att(pool, node, key, val)
  40513. def fz_xml_att(item, att):
  40514. r"""
  40515. Class-aware wrapper for `::fz_xml_att()`.
  40516. Return the value of an attribute of an XML node.
  40517. NULL if the attribute doesn't exist.
  40518. """
  40519. return _mupdf.fz_xml_att(item, att)
  40520. def fz_xml_att_alt(item, one, two):
  40521. r"""
  40522. Class-aware wrapper for `::fz_xml_att_alt()`.
  40523. Return the value of an attribute of an XML node.
  40524. If the first attribute doesn't exist, try the second.
  40525. NULL if neither attribute exists.
  40526. """
  40527. return _mupdf.fz_xml_att_alt(item, one, two)
  40528. def fz_xml_att_eq(item, name, match):
  40529. r"""
  40530. Class-aware wrapper for `::fz_xml_att_eq()`.
  40531. Check for a matching attribute on an XML node.
  40532. If the node has the requested attribute (name), and the value
  40533. matches (match) then return 1. Otherwise, 0.
  40534. """
  40535. return _mupdf.fz_xml_att_eq(item, name, match)
  40536. def fz_xml_down(item):
  40537. r"""
  40538. Class-aware wrapper for `::fz_xml_down()`.
  40539. Return first child of XML node.
  40540. """
  40541. return _mupdf.fz_xml_down(item)
  40542. def fz_xml_find(item, tag):
  40543. r"""
  40544. Class-aware wrapper for `::fz_xml_find()`.
  40545. Search the siblings of XML nodes starting with item looking for
  40546. the first with the given tag.
  40547. Return NULL if none found.
  40548. """
  40549. return _mupdf.fz_xml_find(item, tag)
  40550. def fz_xml_find_dfs(item, tag, att, match):
  40551. r"""
  40552. Class-aware wrapper for `::fz_xml_find_dfs()`.
  40553. Perform a depth first search from item, returning the first
  40554. child that matches the given tag (or any tag if tag is NULL),
  40555. with the given attribute (if att is non NULL), that matches
  40556. match (if match is non NULL).
  40557. """
  40558. return _mupdf.fz_xml_find_dfs(item, tag, att, match)
  40559. def fz_xml_find_dfs_top(item, tag, att, match, top):
  40560. r"""
  40561. Class-aware wrapper for `::fz_xml_find_dfs_top()`.
  40562. Perform a depth first search from item, returning the first
  40563. child that matches the given tag (or any tag if tag is NULL),
  40564. with the given attribute (if att is non NULL), that matches
  40565. match (if match is non NULL). The search stops if it ever
  40566. reaches the top of the tree, or the declared 'top' item.
  40567. """
  40568. return _mupdf.fz_xml_find_dfs_top(item, tag, att, match, top)
  40569. def fz_xml_find_down(item, tag):
  40570. r"""
  40571. Class-aware wrapper for `::fz_xml_find_down()`.
  40572. Search the siblings of XML nodes starting with the first child
  40573. of item looking for the first with the given tag.
  40574. Return NULL if none found.
  40575. """
  40576. return _mupdf.fz_xml_find_down(item, tag)
  40577. def fz_xml_find_down_match(item, tag, att, match):
  40578. r"""
  40579. Class-aware wrapper for `::fz_xml_find_down_match()`.
  40580. Search the siblings of XML nodes starting with the first child
  40581. of item looking for the first with the given tag (or any tag if
  40582. tag is NULL), and with a matching attribute.
  40583. Return NULL if none found.
  40584. """
  40585. return _mupdf.fz_xml_find_down_match(item, tag, att, match)
  40586. def fz_xml_find_match(item, tag, att, match):
  40587. r"""
  40588. Class-aware wrapper for `::fz_xml_find_match()`.
  40589. Search the siblings of XML nodes starting with item looking for
  40590. the first with the given tag (or any tag if tag is NULL), and
  40591. with a matching attribute.
  40592. Return NULL if none found.
  40593. """
  40594. return _mupdf.fz_xml_find_match(item, tag, att, match)
  40595. def fz_xml_find_next(item, tag):
  40596. r"""
  40597. Class-aware wrapper for `::fz_xml_find_next()`.
  40598. Search the siblings of XML nodes starting with the first sibling
  40599. of item looking for the first with the given tag.
  40600. Return NULL if none found.
  40601. """
  40602. return _mupdf.fz_xml_find_next(item, tag)
  40603. def fz_xml_find_next_dfs(item, tag, att, match):
  40604. r"""
  40605. Class-aware wrapper for `::fz_xml_find_next_dfs()`.
  40606. Perform a depth first search onwards from item, returning the first
  40607. child that matches the given tag (or any tag if tag is NULL),
  40608. with the given attribute (if att is non NULL), that matches
  40609. match (if match is non NULL).
  40610. """
  40611. return _mupdf.fz_xml_find_next_dfs(item, tag, att, match)
  40612. def fz_xml_find_next_dfs_top(item, tag, att, match, top):
  40613. r"""
  40614. Class-aware wrapper for `::fz_xml_find_next_dfs_top()`.
  40615. Perform a depth first search onwards from item, returning the first
  40616. child that matches the given tag (or any tag if tag is NULL),
  40617. with the given attribute (if att is non NULL), that matches
  40618. match (if match is non NULL). The search stops if it ever reaches
  40619. the top of the tree, or the declared 'top' item.
  40620. """
  40621. return _mupdf.fz_xml_find_next_dfs_top(item, tag, att, match, top)
  40622. def fz_xml_find_next_match(item, tag, att, match):
  40623. r"""
  40624. Class-aware wrapper for `::fz_xml_find_next_match()`.
  40625. Search the siblings of XML nodes starting with the first sibling
  40626. of item looking for the first with the given tag (or any tag if tag
  40627. is NULL), and with a matching attribute.
  40628. Return NULL if none found.
  40629. """
  40630. return _mupdf.fz_xml_find_next_match(item, tag, att, match)
  40631. def fz_xml_is_tag(item, name):
  40632. r"""
  40633. Class-aware wrapper for `::fz_xml_is_tag()`.
  40634. Return true if the tag name matches.
  40635. """
  40636. return _mupdf.fz_xml_is_tag(item, name)
  40637. def fz_xml_next(item):
  40638. r"""
  40639. Class-aware wrapper for `::fz_xml_next()`.
  40640. Return next sibling of XML node.
  40641. """
  40642. return _mupdf.fz_xml_next(item)
  40643. def fz_xml_prev(item):
  40644. r"""
  40645. Class-aware wrapper for `::fz_xml_prev()`.
  40646. Return previous sibling of XML node.
  40647. """
  40648. return _mupdf.fz_xml_prev(item)
  40649. def fz_xml_root(xml):
  40650. r"""
  40651. Class-aware wrapper for `::fz_xml_root()`.
  40652. Return the topmost XML node of a document.
  40653. """
  40654. return _mupdf.fz_xml_root(xml)
  40655. def fz_xml_tag(item):
  40656. r"""
  40657. Class-aware wrapper for `::fz_xml_tag()`.
  40658. Return tag of XML node. Return NULL for text nodes.
  40659. """
  40660. return _mupdf.fz_xml_tag(item)
  40661. def fz_xml_text(item):
  40662. r"""
  40663. Class-aware wrapper for `::fz_xml_text()`.
  40664. Return the text content of an XML node.
  40665. Return NULL if the node is a tag.
  40666. """
  40667. return _mupdf.fz_xml_text(item)
  40668. def fz_xml_up(item):
  40669. r"""
  40670. Class-aware wrapper for `::fz_xml_up()`.
  40671. Return parent of XML node.
  40672. """
  40673. return _mupdf.fz_xml_up(item)
  40674. def pdf_abandon_operation(doc):
  40675. r"""Class-aware wrapper for `::pdf_abandon_operation()`."""
  40676. return _mupdf.pdf_abandon_operation(doc)
  40677. def pdf_access_exec_menu_item_event(evt):
  40678. r"""Class-aware wrapper for `::pdf_access_exec_menu_item_event()`."""
  40679. return _mupdf.pdf_access_exec_menu_item_event(evt)
  40680. def pdf_add_annot_border_dash_item(annot, length):
  40681. r"""Class-aware wrapper for `::pdf_add_annot_border_dash_item()`."""
  40682. return _mupdf.pdf_add_annot_border_dash_item(annot, length)
  40683. def pdf_add_annot_ink_list(annot, n, stroke):
  40684. r"""Class-aware wrapper for `::pdf_add_annot_ink_list()`."""
  40685. return _mupdf.pdf_add_annot_ink_list(annot, n, stroke)
  40686. def pdf_add_annot_ink_list_stroke(annot):
  40687. r"""Class-aware wrapper for `::pdf_add_annot_ink_list_stroke()`."""
  40688. return _mupdf.pdf_add_annot_ink_list_stroke(annot)
  40689. def pdf_add_annot_ink_list_stroke_vertex(annot, p):
  40690. r"""Class-aware wrapper for `::pdf_add_annot_ink_list_stroke_vertex()`."""
  40691. return _mupdf.pdf_add_annot_ink_list_stroke_vertex(annot, p)
  40692. def pdf_add_annot_quad_point(annot, quad):
  40693. r"""Class-aware wrapper for `::pdf_add_annot_quad_point()`."""
  40694. return _mupdf.pdf_add_annot_quad_point(annot, quad)
  40695. def pdf_add_annot_vertex(annot, p):
  40696. r"""Class-aware wrapper for `::pdf_add_annot_vertex()`."""
  40697. return _mupdf.pdf_add_annot_vertex(annot, p)
  40698. def pdf_add_cid_font(doc, font):
  40699. r"""Class-aware wrapper for `::pdf_add_cid_font()`."""
  40700. return _mupdf.pdf_add_cid_font(doc, font)
  40701. def pdf_add_cjk_font(doc, font, script, wmode, serif):
  40702. r"""Class-aware wrapper for `::pdf_add_cjk_font()`."""
  40703. return _mupdf.pdf_add_cjk_font(doc, font, script, wmode, serif)
  40704. def pdf_add_codespace(cmap, low, high, n):
  40705. r"""Class-aware wrapper for `::pdf_add_codespace()`."""
  40706. return _mupdf.pdf_add_codespace(cmap, low, high, n)
  40707. def pdf_add_colorspace(doc, cs):
  40708. r"""Class-aware wrapper for `::pdf_add_colorspace()`."""
  40709. return _mupdf.pdf_add_colorspace(doc, cs)
  40710. def pdf_add_embedded_file(doc, filename, mimetype, contents, created, modified, add_checksum):
  40711. r"""Class-aware wrapper for `::pdf_add_embedded_file()`."""
  40712. return _mupdf.pdf_add_embedded_file(doc, filename, mimetype, contents, created, modified, add_checksum)
  40713. def pdf_add_hmtx(font, lo, hi, w):
  40714. r"""Class-aware wrapper for `::pdf_add_hmtx()`."""
  40715. return _mupdf.pdf_add_hmtx(font, lo, hi, w)
  40716. def pdf_add_image(doc, image):
  40717. r"""Class-aware wrapper for `::pdf_add_image()`."""
  40718. return _mupdf.pdf_add_image(doc, image)
  40719. def pdf_add_journal_fragment(doc, parent, copy, copy_stream, newobj):
  40720. r"""Class-aware wrapper for `::pdf_add_journal_fragment()`."""
  40721. return _mupdf.pdf_add_journal_fragment(doc, parent, copy, copy_stream, newobj)
  40722. def pdf_add_new_array(doc, initial):
  40723. r"""Class-aware wrapper for `::pdf_add_new_array()`."""
  40724. return _mupdf.pdf_add_new_array(doc, initial)
  40725. def pdf_add_new_dict(doc, initial):
  40726. r"""Class-aware wrapper for `::pdf_add_new_dict()`."""
  40727. return _mupdf.pdf_add_new_dict(doc, initial)
  40728. def pdf_add_object(doc, obj):
  40729. r"""Class-aware wrapper for `::pdf_add_object()`."""
  40730. return _mupdf.pdf_add_object(doc, obj)
  40731. def pdf_add_page(doc, mediabox, rotate, resources, contents):
  40732. r"""Class-aware wrapper for `::pdf_add_page()`."""
  40733. return _mupdf.pdf_add_page(doc, mediabox, rotate, resources, contents)
  40734. def pdf_add_simple_font(doc, font, encoding):
  40735. r"""Class-aware wrapper for `::pdf_add_simple_font()`."""
  40736. return _mupdf.pdf_add_simple_font(doc, font, encoding)
  40737. def pdf_add_stream(doc, buf, obj, compressed):
  40738. r"""Class-aware wrapper for `::pdf_add_stream()`."""
  40739. return _mupdf.pdf_add_stream(doc, buf, obj, compressed)
  40740. def pdf_add_substitute_font(doc, font):
  40741. r"""Class-aware wrapper for `::pdf_add_substitute_font()`."""
  40742. return _mupdf.pdf_add_substitute_font(doc, font)
  40743. def pdf_add_vmtx(font, lo, hi, x, y, w):
  40744. r"""Class-aware wrapper for `::pdf_add_vmtx()`."""
  40745. return _mupdf.pdf_add_vmtx(font, lo, hi, x, y, w)
  40746. def pdf_annot_MK_BC(annot, n, color):
  40747. r"""
  40748. Class-aware wrapper for `::pdf_annot_MK_BC()`.
  40749. This function has out-params. Python/C# wrappers look like:
  40750. `pdf_annot_MK_BC(::pdf_annot *annot, float color[4])` => int n
  40751. """
  40752. return _mupdf.pdf_annot_MK_BC(annot, n, color)
  40753. def pdf_annot_MK_BC_rgb(annot, rgb):
  40754. r"""Class-aware wrapper for `::pdf_annot_MK_BC_rgb()`."""
  40755. return _mupdf.pdf_annot_MK_BC_rgb(annot, rgb)
  40756. def pdf_annot_MK_BG(annot, n, color):
  40757. r"""
  40758. Class-aware wrapper for `::pdf_annot_MK_BG()`.
  40759. This function has out-params. Python/C# wrappers look like:
  40760. `pdf_annot_MK_BG(::pdf_annot *annot, float color[4])` => int n
  40761. """
  40762. return _mupdf.pdf_annot_MK_BG(annot, n, color)
  40763. def pdf_annot_MK_BG_rgb(annot, rgb):
  40764. r"""Class-aware wrapper for `::pdf_annot_MK_BG_rgb()`."""
  40765. return _mupdf.pdf_annot_MK_BG_rgb(annot, rgb)
  40766. def pdf_annot_active(annot):
  40767. r"""Class-aware wrapper for `::pdf_annot_active()`."""
  40768. return _mupdf.pdf_annot_active(annot)
  40769. def pdf_annot_ap(annot):
  40770. r"""Class-aware wrapper for `::pdf_annot_ap()`."""
  40771. return _mupdf.pdf_annot_ap(annot)
  40772. def pdf_annot_author(annot):
  40773. r"""Class-aware wrapper for `::pdf_annot_author()`."""
  40774. return _mupdf.pdf_annot_author(annot)
  40775. def pdf_annot_border(annot):
  40776. r"""Class-aware wrapper for `::pdf_annot_border()`."""
  40777. return _mupdf.pdf_annot_border(annot)
  40778. def pdf_annot_border_dash_count(annot):
  40779. r"""Class-aware wrapper for `::pdf_annot_border_dash_count()`."""
  40780. return _mupdf.pdf_annot_border_dash_count(annot)
  40781. def pdf_annot_border_dash_item(annot, i):
  40782. r"""Class-aware wrapper for `::pdf_annot_border_dash_item()`."""
  40783. return _mupdf.pdf_annot_border_dash_item(annot, i)
  40784. def pdf_annot_border_effect(annot):
  40785. r"""Class-aware wrapper for `::pdf_annot_border_effect()`."""
  40786. return _mupdf.pdf_annot_border_effect(annot)
  40787. def pdf_annot_border_effect_intensity(annot):
  40788. r"""Class-aware wrapper for `::pdf_annot_border_effect_intensity()`."""
  40789. return _mupdf.pdf_annot_border_effect_intensity(annot)
  40790. def pdf_annot_border_style(annot):
  40791. r"""Class-aware wrapper for `::pdf_annot_border_style()`."""
  40792. return _mupdf.pdf_annot_border_style(annot)
  40793. def pdf_annot_border_width(annot):
  40794. r"""Class-aware wrapper for `::pdf_annot_border_width()`."""
  40795. return _mupdf.pdf_annot_border_width(annot)
  40796. def pdf_annot_callout_line(annot, callout, n):
  40797. r"""
  40798. Class-aware wrapper for `::pdf_annot_callout_line()`.
  40799. This function has out-params. Python/C# wrappers look like:
  40800. `pdf_annot_callout_line(::pdf_annot *annot, ::fz_point callout[3])` => int n
  40801. """
  40802. return _mupdf.pdf_annot_callout_line(annot, callout, n)
  40803. def pdf_annot_callout_point(annot):
  40804. r"""Class-aware wrapper for `::pdf_annot_callout_point()`."""
  40805. return _mupdf.pdf_annot_callout_point(annot)
  40806. def pdf_annot_callout_style(annot):
  40807. r"""Class-aware wrapper for `::pdf_annot_callout_style()`."""
  40808. return _mupdf.pdf_annot_callout_style(annot)
  40809. def pdf_annot_color(annot, n, color):
  40810. r"""
  40811. Class-aware wrapper for `::pdf_annot_color()`.
  40812. This function has out-params. Python/C# wrappers look like:
  40813. `pdf_annot_color(::pdf_annot *annot, float color[4])` => int n
  40814. """
  40815. return _mupdf.pdf_annot_color(annot, n, color)
  40816. def pdf_annot_contents(annot):
  40817. r"""Class-aware wrapper for `::pdf_annot_contents()`."""
  40818. return _mupdf.pdf_annot_contents(annot)
  40819. def pdf_annot_creation_date(annot):
  40820. r"""Class-aware wrapper for `::pdf_annot_creation_date()`."""
  40821. return _mupdf.pdf_annot_creation_date(annot)
  40822. def pdf_annot_default_appearance(annot, font, size, n, color):
  40823. r"""
  40824. Class-aware wrapper for `::pdf_annot_default_appearance()`.
  40825. This function has out-params. Python/C# wrappers look like:
  40826. `pdf_annot_default_appearance(::pdf_annot *annot, float color[4])` => `(const char *font, float size, int n)`
  40827. """
  40828. return _mupdf.pdf_annot_default_appearance(annot, font, size, n, color)
  40829. def pdf_annot_default_appearance_unmapped(annot, font_name, font_name_len, size, n, color):
  40830. r"""
  40831. Class-aware wrapper for `::pdf_annot_default_appearance_unmapped()`.
  40832. This function has out-params. Python/C# wrappers look like:
  40833. `pdf_annot_default_appearance_unmapped(::pdf_annot *annot, char *font_name, int font_name_len, float color[4])` => `(float size, int n)`
  40834. """
  40835. return _mupdf.pdf_annot_default_appearance_unmapped(annot, font_name, font_name_len, size, n, color)
  40836. def pdf_annot_ensure_local_xref(annot):
  40837. r"""Class-aware wrapper for `::pdf_annot_ensure_local_xref()`."""
  40838. return _mupdf.pdf_annot_ensure_local_xref(annot)
  40839. def pdf_annot_event_blur(annot):
  40840. r"""Class-aware wrapper for `::pdf_annot_event_blur()`."""
  40841. return _mupdf.pdf_annot_event_blur(annot)
  40842. def pdf_annot_event_down(annot):
  40843. r"""Class-aware wrapper for `::pdf_annot_event_down()`."""
  40844. return _mupdf.pdf_annot_event_down(annot)
  40845. def pdf_annot_event_enter(annot):
  40846. r"""Class-aware wrapper for `::pdf_annot_event_enter()`."""
  40847. return _mupdf.pdf_annot_event_enter(annot)
  40848. def pdf_annot_event_exit(annot):
  40849. r"""Class-aware wrapper for `::pdf_annot_event_exit()`."""
  40850. return _mupdf.pdf_annot_event_exit(annot)
  40851. def pdf_annot_event_focus(annot):
  40852. r"""Class-aware wrapper for `::pdf_annot_event_focus()`."""
  40853. return _mupdf.pdf_annot_event_focus(annot)
  40854. def pdf_annot_event_page_close(annot):
  40855. r"""Class-aware wrapper for `::pdf_annot_event_page_close()`."""
  40856. return _mupdf.pdf_annot_event_page_close(annot)
  40857. def pdf_annot_event_page_invisible(annot):
  40858. r"""Class-aware wrapper for `::pdf_annot_event_page_invisible()`."""
  40859. return _mupdf.pdf_annot_event_page_invisible(annot)
  40860. def pdf_annot_event_page_open(annot):
  40861. r"""Class-aware wrapper for `::pdf_annot_event_page_open()`."""
  40862. return _mupdf.pdf_annot_event_page_open(annot)
  40863. def pdf_annot_event_page_visible(annot):
  40864. r"""Class-aware wrapper for `::pdf_annot_event_page_visible()`."""
  40865. return _mupdf.pdf_annot_event_page_visible(annot)
  40866. def pdf_annot_event_up(annot):
  40867. r"""Class-aware wrapper for `::pdf_annot_event_up()`."""
  40868. return _mupdf.pdf_annot_event_up(annot)
  40869. def pdf_annot_field_event_keystroke(doc, annot, evt):
  40870. r"""Class-aware wrapper for `::pdf_annot_field_event_keystroke()`."""
  40871. return _mupdf.pdf_annot_field_event_keystroke(doc, annot, evt)
  40872. def pdf_annot_field_flags(annot):
  40873. r"""Class-aware wrapper for `::pdf_annot_field_flags()`."""
  40874. return _mupdf.pdf_annot_field_flags(annot)
  40875. def pdf_annot_field_label(widget):
  40876. r"""Class-aware wrapper for `::pdf_annot_field_label()`."""
  40877. return _mupdf.pdf_annot_field_label(widget)
  40878. def pdf_annot_field_value(annot):
  40879. r"""Class-aware wrapper for `::pdf_annot_field_value()`."""
  40880. return _mupdf.pdf_annot_field_value(annot)
  40881. def pdf_annot_filespec(annot):
  40882. r"""Class-aware wrapper for `::pdf_annot_filespec()`."""
  40883. return _mupdf.pdf_annot_filespec(annot)
  40884. def pdf_annot_flags(annot):
  40885. r"""Class-aware wrapper for `::pdf_annot_flags()`."""
  40886. return _mupdf.pdf_annot_flags(annot)
  40887. def pdf_annot_has_author(annot):
  40888. r"""Class-aware wrapper for `::pdf_annot_has_author()`."""
  40889. return _mupdf.pdf_annot_has_author(annot)
  40890. def pdf_annot_has_border(annot):
  40891. r"""Class-aware wrapper for `::pdf_annot_has_border()`."""
  40892. return _mupdf.pdf_annot_has_border(annot)
  40893. def pdf_annot_has_border_effect(annot):
  40894. r"""Class-aware wrapper for `::pdf_annot_has_border_effect()`."""
  40895. return _mupdf.pdf_annot_has_border_effect(annot)
  40896. def pdf_annot_has_callout(annot):
  40897. r"""Class-aware wrapper for `::pdf_annot_has_callout()`."""
  40898. return _mupdf.pdf_annot_has_callout(annot)
  40899. def pdf_annot_has_default_appearance(annot):
  40900. r"""Class-aware wrapper for `::pdf_annot_has_default_appearance()`."""
  40901. return _mupdf.pdf_annot_has_default_appearance(annot)
  40902. def pdf_annot_has_filespec(annot):
  40903. r"""Class-aware wrapper for `::pdf_annot_has_filespec()`."""
  40904. return _mupdf.pdf_annot_has_filespec(annot)
  40905. def pdf_annot_has_icon_name(annot):
  40906. r"""Class-aware wrapper for `::pdf_annot_has_icon_name()`."""
  40907. return _mupdf.pdf_annot_has_icon_name(annot)
  40908. def pdf_annot_has_ink_list(annot):
  40909. r"""Class-aware wrapper for `::pdf_annot_has_ink_list()`."""
  40910. return _mupdf.pdf_annot_has_ink_list(annot)
  40911. def pdf_annot_has_intent(annot):
  40912. r"""Class-aware wrapper for `::pdf_annot_has_intent()`."""
  40913. return _mupdf.pdf_annot_has_intent(annot)
  40914. def pdf_annot_has_interior_color(annot):
  40915. r"""Class-aware wrapper for `::pdf_annot_has_interior_color()`."""
  40916. return _mupdf.pdf_annot_has_interior_color(annot)
  40917. def pdf_annot_has_line(annot):
  40918. r"""Class-aware wrapper for `::pdf_annot_has_line()`."""
  40919. return _mupdf.pdf_annot_has_line(annot)
  40920. def pdf_annot_has_line_ending_styles(annot):
  40921. r"""Class-aware wrapper for `::pdf_annot_has_line_ending_styles()`."""
  40922. return _mupdf.pdf_annot_has_line_ending_styles(annot)
  40923. def pdf_annot_has_open(annot):
  40924. r"""Class-aware wrapper for `::pdf_annot_has_open()`."""
  40925. return _mupdf.pdf_annot_has_open(annot)
  40926. def pdf_annot_has_popup(annot):
  40927. r"""Class-aware wrapper for `::pdf_annot_has_popup()`."""
  40928. return _mupdf.pdf_annot_has_popup(annot)
  40929. def pdf_annot_has_quad_points(annot):
  40930. r"""Class-aware wrapper for `::pdf_annot_has_quad_points()`."""
  40931. return _mupdf.pdf_annot_has_quad_points(annot)
  40932. def pdf_annot_has_quadding(annot):
  40933. r"""Class-aware wrapper for `::pdf_annot_has_quadding()`."""
  40934. return _mupdf.pdf_annot_has_quadding(annot)
  40935. def pdf_annot_has_rect(annot):
  40936. r"""Class-aware wrapper for `::pdf_annot_has_rect()`."""
  40937. return _mupdf.pdf_annot_has_rect(annot)
  40938. def pdf_annot_has_rich_contents(annot):
  40939. r"""Class-aware wrapper for `::pdf_annot_has_rich_contents()`."""
  40940. return _mupdf.pdf_annot_has_rich_contents(annot)
  40941. def pdf_annot_has_rich_defaults(annot):
  40942. r"""Class-aware wrapper for `::pdf_annot_has_rich_defaults()`."""
  40943. return _mupdf.pdf_annot_has_rich_defaults(annot)
  40944. def pdf_annot_has_vertices(annot):
  40945. r"""Class-aware wrapper for `::pdf_annot_has_vertices()`."""
  40946. return _mupdf.pdf_annot_has_vertices(annot)
  40947. def pdf_annot_hidden_for_editing(annot):
  40948. r"""Class-aware wrapper for `::pdf_annot_hidden_for_editing()`."""
  40949. return _mupdf.pdf_annot_hidden_for_editing(annot)
  40950. def pdf_annot_hot(annot):
  40951. r"""Class-aware wrapper for `::pdf_annot_hot()`."""
  40952. return _mupdf.pdf_annot_hot(annot)
  40953. def pdf_annot_icon_name(annot):
  40954. r"""Class-aware wrapper for `::pdf_annot_icon_name()`."""
  40955. return _mupdf.pdf_annot_icon_name(annot)
  40956. def pdf_annot_ink_list_count(annot):
  40957. r"""Class-aware wrapper for `::pdf_annot_ink_list_count()`."""
  40958. return _mupdf.pdf_annot_ink_list_count(annot)
  40959. def pdf_annot_ink_list_stroke_count(annot, i):
  40960. r"""Class-aware wrapper for `::pdf_annot_ink_list_stroke_count()`."""
  40961. return _mupdf.pdf_annot_ink_list_stroke_count(annot, i)
  40962. def pdf_annot_ink_list_stroke_vertex(annot, i, k):
  40963. r"""Class-aware wrapper for `::pdf_annot_ink_list_stroke_vertex()`."""
  40964. return _mupdf.pdf_annot_ink_list_stroke_vertex(annot, i, k)
  40965. def pdf_annot_intent(annot):
  40966. r"""Class-aware wrapper for `::pdf_annot_intent()`."""
  40967. return _mupdf.pdf_annot_intent(annot)
  40968. def pdf_annot_interior_color(annot, n, color):
  40969. r"""
  40970. Class-aware wrapper for `::pdf_annot_interior_color()`.
  40971. This function has out-params. Python/C# wrappers look like:
  40972. `pdf_annot_interior_color(::pdf_annot *annot, float color[4])` => int n
  40973. """
  40974. return _mupdf.pdf_annot_interior_color(annot, n, color)
  40975. def pdf_annot_is_open(annot):
  40976. r"""Class-aware wrapper for `::pdf_annot_is_open()`."""
  40977. return _mupdf.pdf_annot_is_open(annot)
  40978. def pdf_annot_is_standard_stamp(annot):
  40979. r"""Class-aware wrapper for `::pdf_annot_is_standard_stamp()`."""
  40980. return _mupdf.pdf_annot_is_standard_stamp(annot)
  40981. def pdf_annot_language(annot):
  40982. r"""Class-aware wrapper for `::pdf_annot_language()`."""
  40983. return _mupdf.pdf_annot_language(annot)
  40984. def pdf_annot_line(annot, a, b):
  40985. r"""Class-aware wrapper for `::pdf_annot_line()`."""
  40986. return _mupdf.pdf_annot_line(annot, a, b)
  40987. def pdf_annot_line_caption(annot):
  40988. r"""Class-aware wrapper for `::pdf_annot_line_caption()`."""
  40989. return _mupdf.pdf_annot_line_caption(annot)
  40990. def pdf_annot_line_caption_offset(annot):
  40991. r"""Class-aware wrapper for `::pdf_annot_line_caption_offset()`."""
  40992. return _mupdf.pdf_annot_line_caption_offset(annot)
  40993. def pdf_annot_line_end_style(annot):
  40994. r"""Class-aware wrapper for `::pdf_annot_line_end_style()`."""
  40995. return _mupdf.pdf_annot_line_end_style(annot)
  40996. def pdf_annot_line_ending_styles(annot, start_style, end_style):
  40997. r"""
  40998. Class-aware wrapper for `::pdf_annot_line_ending_styles()`.
  40999. This function has out-params. Python/C# wrappers look like:
  41000. `pdf_annot_line_ending_styles(::pdf_annot *annot)` => `(enum pdf_line_ending start_style, enum pdf_line_ending end_style)`
  41001. """
  41002. return _mupdf.pdf_annot_line_ending_styles(annot, start_style, end_style)
  41003. def pdf_annot_line_leader(annot):
  41004. r"""Class-aware wrapper for `::pdf_annot_line_leader()`."""
  41005. return _mupdf.pdf_annot_line_leader(annot)
  41006. def pdf_annot_line_leader_extension(annot):
  41007. r"""Class-aware wrapper for `::pdf_annot_line_leader_extension()`."""
  41008. return _mupdf.pdf_annot_line_leader_extension(annot)
  41009. def pdf_annot_line_leader_offset(annot):
  41010. r"""Class-aware wrapper for `::pdf_annot_line_leader_offset()`."""
  41011. return _mupdf.pdf_annot_line_leader_offset(annot)
  41012. def pdf_annot_line_start_style(annot):
  41013. r"""Class-aware wrapper for `::pdf_annot_line_start_style()`."""
  41014. return _mupdf.pdf_annot_line_start_style(annot)
  41015. def pdf_annot_modification_date(annot):
  41016. r"""Class-aware wrapper for `::pdf_annot_modification_date()`."""
  41017. return _mupdf.pdf_annot_modification_date(annot)
  41018. def pdf_annot_needs_resynthesis(annot):
  41019. r"""Class-aware wrapper for `::pdf_annot_needs_resynthesis()`."""
  41020. return _mupdf.pdf_annot_needs_resynthesis(annot)
  41021. def pdf_annot_obj(annot):
  41022. r"""Class-aware wrapper for `::pdf_annot_obj()`."""
  41023. return _mupdf.pdf_annot_obj(annot)
  41024. def pdf_annot_opacity(annot):
  41025. r"""Class-aware wrapper for `::pdf_annot_opacity()`."""
  41026. return _mupdf.pdf_annot_opacity(annot)
  41027. def pdf_annot_page(annot):
  41028. r"""Class-aware wrapper for `::pdf_annot_page()`."""
  41029. return _mupdf.pdf_annot_page(annot)
  41030. def pdf_annot_pop_and_discard_local_xref(annot):
  41031. r"""Class-aware wrapper for `::pdf_annot_pop_and_discard_local_xref()`."""
  41032. return _mupdf.pdf_annot_pop_and_discard_local_xref(annot)
  41033. def pdf_annot_pop_local_xref(annot):
  41034. r"""Class-aware wrapper for `::pdf_annot_pop_local_xref()`."""
  41035. return _mupdf.pdf_annot_pop_local_xref(annot)
  41036. def pdf_annot_popup(annot):
  41037. r"""Class-aware wrapper for `::pdf_annot_popup()`."""
  41038. return _mupdf.pdf_annot_popup(annot)
  41039. def pdf_annot_push_local_xref(annot):
  41040. r"""Class-aware wrapper for `::pdf_annot_push_local_xref()`."""
  41041. return _mupdf.pdf_annot_push_local_xref(annot)
  41042. def pdf_annot_quad_point(annot, i):
  41043. r"""Class-aware wrapper for `::pdf_annot_quad_point()`."""
  41044. return _mupdf.pdf_annot_quad_point(annot, i)
  41045. def pdf_annot_quad_point_count(annot):
  41046. r"""Class-aware wrapper for `::pdf_annot_quad_point_count()`."""
  41047. return _mupdf.pdf_annot_quad_point_count(annot)
  41048. def pdf_annot_quadding(annot):
  41049. r"""Class-aware wrapper for `::pdf_annot_quadding()`."""
  41050. return _mupdf.pdf_annot_quadding(annot)
  41051. def pdf_annot_rect(annot):
  41052. r"""Class-aware wrapper for `::pdf_annot_rect()`."""
  41053. return _mupdf.pdf_annot_rect(annot)
  41054. def pdf_annot_request_resynthesis(annot):
  41055. r"""Class-aware wrapper for `::pdf_annot_request_resynthesis()`."""
  41056. return _mupdf.pdf_annot_request_resynthesis(annot)
  41057. def pdf_annot_request_synthesis(annot):
  41058. r"""Class-aware wrapper for `::pdf_annot_request_synthesis()`."""
  41059. return _mupdf.pdf_annot_request_synthesis(annot)
  41060. def pdf_annot_rich_contents(annot):
  41061. r"""Class-aware wrapper for `::pdf_annot_rich_contents()`."""
  41062. return _mupdf.pdf_annot_rich_contents(annot)
  41063. def pdf_annot_rich_defaults(annot):
  41064. r"""Class-aware wrapper for `::pdf_annot_rich_defaults()`."""
  41065. return _mupdf.pdf_annot_rich_defaults(annot)
  41066. def pdf_annot_stamp_image_obj(annot):
  41067. r"""Class-aware wrapper for `::pdf_annot_stamp_image_obj()`."""
  41068. return _mupdf.pdf_annot_stamp_image_obj(annot)
  41069. def pdf_annot_transform(annot):
  41070. r"""Class-aware wrapper for `::pdf_annot_transform()`."""
  41071. return _mupdf.pdf_annot_transform(annot)
  41072. def pdf_annot_type(annot):
  41073. r"""Class-aware wrapper for `::pdf_annot_type()`."""
  41074. return _mupdf.pdf_annot_type(annot)
  41075. def pdf_annot_type_from_string(subtype):
  41076. r"""Class-aware wrapper for `::pdf_annot_type_from_string()`."""
  41077. return _mupdf.pdf_annot_type_from_string(subtype)
  41078. def pdf_annot_vertex(annot, i):
  41079. r"""Class-aware wrapper for `::pdf_annot_vertex()`."""
  41080. return _mupdf.pdf_annot_vertex(annot, i)
  41081. def pdf_annot_vertex_count(annot):
  41082. r"""Class-aware wrapper for `::pdf_annot_vertex_count()`."""
  41083. return _mupdf.pdf_annot_vertex_count(annot)
  41084. def pdf_append_explicit_dest_to_uri(url, dest):
  41085. r"""Class-aware wrapper for `::pdf_append_explicit_dest_to_uri()`."""
  41086. return _mupdf.pdf_append_explicit_dest_to_uri(url, dest)
  41087. def pdf_append_named_dest_to_uri(url, name):
  41088. r"""Class-aware wrapper for `::pdf_append_named_dest_to_uri()`."""
  41089. return _mupdf.pdf_append_named_dest_to_uri(url, name)
  41090. def pdf_append_token(buf, tok, lex):
  41091. r"""Class-aware wrapper for `::pdf_append_token()`."""
  41092. return _mupdf.pdf_append_token(buf, tok, lex)
  41093. def pdf_apply_redaction(annot, opts):
  41094. r"""Class-aware wrapper for `::pdf_apply_redaction()`."""
  41095. return _mupdf.pdf_apply_redaction(annot, opts)
  41096. def pdf_array_contains(array, obj):
  41097. r"""Class-aware wrapper for `::pdf_array_contains()`."""
  41098. return _mupdf.pdf_array_contains(array, obj)
  41099. def pdf_array_delete(array, index):
  41100. r"""Class-aware wrapper for `::pdf_array_delete()`."""
  41101. return _mupdf.pdf_array_delete(array, index)
  41102. def pdf_array_find(array, obj):
  41103. r"""Class-aware wrapper for `::pdf_array_find()`."""
  41104. return _mupdf.pdf_array_find(array, obj)
  41105. def pdf_array_get(array, i):
  41106. r"""Class-aware wrapper for `::pdf_array_get()`."""
  41107. return _mupdf.pdf_array_get(array, i)
  41108. def pdf_array_get_bool(array, index):
  41109. r"""Class-aware wrapper for `::pdf_array_get_bool()`."""
  41110. return _mupdf.pdf_array_get_bool(array, index)
  41111. def pdf_array_get_int(array, index):
  41112. r"""Class-aware wrapper for `::pdf_array_get_int()`."""
  41113. return _mupdf.pdf_array_get_int(array, index)
  41114. def pdf_array_get_matrix(array, index):
  41115. r"""Class-aware wrapper for `::pdf_array_get_matrix()`."""
  41116. return _mupdf.pdf_array_get_matrix(array, index)
  41117. def pdf_array_get_name(array, index):
  41118. r"""Class-aware wrapper for `::pdf_array_get_name()`."""
  41119. return _mupdf.pdf_array_get_name(array, index)
  41120. def pdf_array_get_real(array, index):
  41121. r"""Class-aware wrapper for `::pdf_array_get_real()`."""
  41122. return _mupdf.pdf_array_get_real(array, index)
  41123. def pdf_array_get_rect(array, index):
  41124. r"""Class-aware wrapper for `::pdf_array_get_rect()`."""
  41125. return _mupdf.pdf_array_get_rect(array, index)
  41126. def pdf_array_get_string(array, index, sizep):
  41127. r"""
  41128. Class-aware wrapper for `::pdf_array_get_string()`.
  41129. This function has out-params. Python/C# wrappers look like:
  41130. `pdf_array_get_string(::pdf_obj *array, int index)` => `(const char *, size_t sizep)`
  41131. """
  41132. return _mupdf.pdf_array_get_string(array, index, sizep)
  41133. def pdf_array_get_text_string(array, index):
  41134. r"""Class-aware wrapper for `::pdf_array_get_text_string()`."""
  41135. return _mupdf.pdf_array_get_text_string(array, index)
  41136. def pdf_array_insert(array, obj, index):
  41137. r"""Class-aware wrapper for `::pdf_array_insert()`."""
  41138. return _mupdf.pdf_array_insert(array, obj, index)
  41139. def pdf_array_len(array):
  41140. r"""Class-aware wrapper for `::pdf_array_len()`."""
  41141. return _mupdf.pdf_array_len(array)
  41142. def pdf_array_push(array, obj):
  41143. r"""Class-aware wrapper for `::pdf_array_push()`."""
  41144. return _mupdf.pdf_array_push(array, obj)
  41145. def pdf_array_push_array(array, initial):
  41146. r"""Class-aware wrapper for `::pdf_array_push_array()`."""
  41147. return _mupdf.pdf_array_push_array(array, initial)
  41148. def pdf_array_push_bool(array, x):
  41149. r"""Class-aware wrapper for `::pdf_array_push_bool()`."""
  41150. return _mupdf.pdf_array_push_bool(array, x)
  41151. def pdf_array_push_dict(array, initial):
  41152. r"""Class-aware wrapper for `::pdf_array_push_dict()`."""
  41153. return _mupdf.pdf_array_push_dict(array, initial)
  41154. def pdf_array_push_int(array, x):
  41155. r"""Class-aware wrapper for `::pdf_array_push_int()`."""
  41156. return _mupdf.pdf_array_push_int(array, x)
  41157. def pdf_array_push_name(array, x):
  41158. r"""Class-aware wrapper for `::pdf_array_push_name()`."""
  41159. return _mupdf.pdf_array_push_name(array, x)
  41160. def pdf_array_push_real(array, x):
  41161. r"""Class-aware wrapper for `::pdf_array_push_real()`."""
  41162. return _mupdf.pdf_array_push_real(array, x)
  41163. def pdf_array_push_string(array, x, n):
  41164. r"""Class-aware wrapper for `::pdf_array_push_string()`."""
  41165. return _mupdf.pdf_array_push_string(array, x, n)
  41166. def pdf_array_push_text_string(array, x):
  41167. r"""Class-aware wrapper for `::pdf_array_push_text_string()`."""
  41168. return _mupdf.pdf_array_push_text_string(array, x)
  41169. def pdf_array_put(array, i, obj):
  41170. r"""Class-aware wrapper for `::pdf_array_put()`."""
  41171. return _mupdf.pdf_array_put(array, i, obj)
  41172. def pdf_array_put_array(array, i, initial):
  41173. r"""Class-aware wrapper for `::pdf_array_put_array()`."""
  41174. return _mupdf.pdf_array_put_array(array, i, initial)
  41175. def pdf_array_put_bool(array, i, x):
  41176. r"""Class-aware wrapper for `::pdf_array_put_bool()`."""
  41177. return _mupdf.pdf_array_put_bool(array, i, x)
  41178. def pdf_array_put_dict(array, i, initial):
  41179. r"""Class-aware wrapper for `::pdf_array_put_dict()`."""
  41180. return _mupdf.pdf_array_put_dict(array, i, initial)
  41181. def pdf_array_put_int(array, i, x):
  41182. r"""Class-aware wrapper for `::pdf_array_put_int()`."""
  41183. return _mupdf.pdf_array_put_int(array, i, x)
  41184. def pdf_array_put_name(array, i, x):
  41185. r"""Class-aware wrapper for `::pdf_array_put_name()`."""
  41186. return _mupdf.pdf_array_put_name(array, i, x)
  41187. def pdf_array_put_real(array, i, x):
  41188. r"""Class-aware wrapper for `::pdf_array_put_real()`."""
  41189. return _mupdf.pdf_array_put_real(array, i, x)
  41190. def pdf_array_put_string(array, i, x, n):
  41191. r"""Class-aware wrapper for `::pdf_array_put_string()`."""
  41192. return _mupdf.pdf_array_put_string(array, i, x, n)
  41193. def pdf_array_put_text_string(array, i, x):
  41194. r"""Class-aware wrapper for `::pdf_array_put_text_string()`."""
  41195. return _mupdf.pdf_array_put_text_string(array, i, x)
  41196. def pdf_authenticate_password(doc, pw):
  41197. r"""Class-aware wrapper for `::pdf_authenticate_password()`."""
  41198. return _mupdf.pdf_authenticate_password(doc, pw)
  41199. def pdf_bake_document(doc, bake_annots, bake_widgets):
  41200. r"""Class-aware wrapper for `::pdf_bake_document()`."""
  41201. return _mupdf.pdf_bake_document(doc, bake_annots, bake_widgets)
  41202. def pdf_begin_implicit_operation(doc):
  41203. r"""Class-aware wrapper for `::pdf_begin_implicit_operation()`."""
  41204. return _mupdf.pdf_begin_implicit_operation(doc)
  41205. def pdf_begin_operation(doc, operation):
  41206. r"""Class-aware wrapper for `::pdf_begin_operation()`."""
  41207. return _mupdf.pdf_begin_operation(doc, operation)
  41208. def pdf_bound_annot(annot):
  41209. r"""Class-aware wrapper for `::pdf_bound_annot()`."""
  41210. return _mupdf.pdf_bound_annot(annot)
  41211. def pdf_bound_page(page, box):
  41212. r"""Class-aware wrapper for `::pdf_bound_page()`."""
  41213. return _mupdf.pdf_bound_page(page, box)
  41214. def pdf_bound_widget(widget):
  41215. r"""Class-aware wrapper for `::pdf_bound_widget()`."""
  41216. return _mupdf.pdf_bound_widget(widget)
  41217. def pdf_button_field_on_state(field):
  41218. r"""Class-aware wrapper for `::pdf_button_field_on_state()`."""
  41219. return _mupdf.pdf_button_field_on_state(field)
  41220. def pdf_calculate_form(doc):
  41221. r"""Class-aware wrapper for `::pdf_calculate_form()`."""
  41222. return _mupdf.pdf_calculate_form(doc)
  41223. def pdf_can_be_saved_incrementally(doc):
  41224. r"""Class-aware wrapper for `::pdf_can_be_saved_incrementally()`."""
  41225. return _mupdf.pdf_can_be_saved_incrementally(doc)
  41226. def pdf_can_redo(doc):
  41227. r"""Class-aware wrapper for `::pdf_can_redo()`."""
  41228. return _mupdf.pdf_can_redo(doc)
  41229. def pdf_can_undo(doc):
  41230. r"""Class-aware wrapper for `::pdf_can_undo()`."""
  41231. return _mupdf.pdf_can_undo(doc)
  41232. def pdf_check_certificate(verifier, doc, signature):
  41233. r"""Class-aware wrapper for `::pdf_check_certificate()`."""
  41234. return _mupdf.pdf_check_certificate(verifier, doc, signature)
  41235. def pdf_check_digest(verifier, doc, signature):
  41236. r"""Class-aware wrapper for `::pdf_check_digest()`."""
  41237. return _mupdf.pdf_check_digest(verifier, doc, signature)
  41238. def pdf_check_widget_certificate(verifier, widget):
  41239. r"""Class-aware wrapper for `::pdf_check_widget_certificate()`."""
  41240. return _mupdf.pdf_check_widget_certificate(verifier, widget)
  41241. def pdf_check_widget_digest(verifier, widget):
  41242. r"""Class-aware wrapper for `::pdf_check_widget_digest()`."""
  41243. return _mupdf.pdf_check_widget_digest(verifier, widget)
  41244. def pdf_choice_field_option(field, exportval, i):
  41245. r"""Class-aware wrapper for `::pdf_choice_field_option()`."""
  41246. return _mupdf.pdf_choice_field_option(field, exportval, i)
  41247. def pdf_choice_field_option_count(field):
  41248. r"""Class-aware wrapper for `::pdf_choice_field_option_count()`."""
  41249. return _mupdf.pdf_choice_field_option_count(field)
  41250. def pdf_choice_widget_is_multiselect(tw):
  41251. r"""Class-aware wrapper for `::pdf_choice_widget_is_multiselect()`."""
  41252. return _mupdf.pdf_choice_widget_is_multiselect(tw)
  41253. def pdf_choice_widget_options(tw, exportval, opts):
  41254. r"""Class-aware wrapper for `::pdf_choice_widget_options()`."""
  41255. return _mupdf.pdf_choice_widget_options(tw, exportval, opts)
  41256. def pdf_choice_widget_options2(tw, exportval):
  41257. r"""
  41258. Class-aware wrapper for `::pdf_choice_widget_options2()`. Swig-friendly wrapper for pdf_choice_widget_options(), returns the
  41259. options directly in a vector.
  41260. """
  41261. return _mupdf.pdf_choice_widget_options2(tw, exportval)
  41262. def pdf_choice_widget_set_value(tw, n, opts):
  41263. r"""Class-aware wrapper for `::pdf_choice_widget_set_value()`."""
  41264. return _mupdf.pdf_choice_widget_set_value(tw, n, opts)
  41265. def pdf_choice_widget_value(tw, opts):
  41266. r"""Class-aware wrapper for `::pdf_choice_widget_value()`."""
  41267. return _mupdf.pdf_choice_widget_value(tw, opts)
  41268. def pdf_clean_file(infile, outfile, password, opts, retainlen):
  41269. r"""Class-aware wrapper for `::pdf_clean_file()`."""
  41270. return _mupdf.pdf_clean_file(infile, outfile, password, opts, retainlen)
  41271. def pdf_clean_font_name(fontname):
  41272. r"""Class-aware wrapper for `::pdf_clean_font_name()`."""
  41273. return _mupdf.pdf_clean_font_name(fontname)
  41274. def pdf_clean_obj(obj):
  41275. r"""Class-aware wrapper for `::pdf_clean_obj()`."""
  41276. return _mupdf.pdf_clean_obj(obj)
  41277. def pdf_clear_annot_border_dash(annot):
  41278. r"""Class-aware wrapper for `::pdf_clear_annot_border_dash()`."""
  41279. return _mupdf.pdf_clear_annot_border_dash(annot)
  41280. def pdf_clear_annot_ink_list(annot):
  41281. r"""Class-aware wrapper for `::pdf_clear_annot_ink_list()`."""
  41282. return _mupdf.pdf_clear_annot_ink_list(annot)
  41283. def pdf_clear_annot_quad_points(annot):
  41284. r"""Class-aware wrapper for `::pdf_clear_annot_quad_points()`."""
  41285. return _mupdf.pdf_clear_annot_quad_points(annot)
  41286. def pdf_clear_annot_vertices(annot):
  41287. r"""Class-aware wrapper for `::pdf_clear_annot_vertices()`."""
  41288. return _mupdf.pdf_clear_annot_vertices(annot)
  41289. def pdf_clear_signature(widget):
  41290. r"""Class-aware wrapper for `::pdf_clear_signature()`."""
  41291. return _mupdf.pdf_clear_signature(widget)
  41292. def pdf_clear_xref(doc):
  41293. r"""Class-aware wrapper for `::pdf_clear_xref()`."""
  41294. return _mupdf.pdf_clear_xref(doc)
  41295. def pdf_clear_xref_to_mark(doc):
  41296. r"""Class-aware wrapper for `::pdf_clear_xref_to_mark()`."""
  41297. return _mupdf.pdf_clear_xref_to_mark(doc)
  41298. def pdf_clip_page(page, clip):
  41299. r"""Class-aware wrapper for `::pdf_clip_page()`."""
  41300. return _mupdf.pdf_clip_page(page, clip)
  41301. def pdf_close_processor(proc):
  41302. r"""Class-aware wrapper for `::pdf_close_processor()`."""
  41303. return _mupdf.pdf_close_processor(proc)
  41304. def pdf_cmap_size(cmap):
  41305. r"""Class-aware wrapper for `::pdf_cmap_size()`."""
  41306. return _mupdf.pdf_cmap_size(cmap)
  41307. def pdf_cmap_wmode(cmap):
  41308. r"""Class-aware wrapper for `::pdf_cmap_wmode()`."""
  41309. return _mupdf.pdf_cmap_wmode(cmap)
  41310. def pdf_copy_array(array):
  41311. r"""Class-aware wrapper for `::pdf_copy_array()`."""
  41312. return _mupdf.pdf_copy_array(array)
  41313. def pdf_copy_dict(dict):
  41314. r"""Class-aware wrapper for `::pdf_copy_dict()`."""
  41315. return _mupdf.pdf_copy_dict(dict)
  41316. def pdf_count_document_associated_files(doc):
  41317. r"""Class-aware wrapper for `::pdf_count_document_associated_files()`."""
  41318. return _mupdf.pdf_count_document_associated_files(doc)
  41319. def pdf_count_layer_config_ui(doc):
  41320. r"""Class-aware wrapper for `::pdf_count_layer_config_ui()`."""
  41321. return _mupdf.pdf_count_layer_config_ui(doc)
  41322. def pdf_count_layer_configs(doc):
  41323. r"""Class-aware wrapper for `::pdf_count_layer_configs()`."""
  41324. return _mupdf.pdf_count_layer_configs(doc)
  41325. def pdf_count_layers(doc):
  41326. r"""Class-aware wrapper for `::pdf_count_layers()`."""
  41327. return _mupdf.pdf_count_layers(doc)
  41328. def pdf_count_objects(doc):
  41329. r"""Class-aware wrapper for `::pdf_count_objects()`."""
  41330. return _mupdf.pdf_count_objects(doc)
  41331. def pdf_count_page_associated_files(page):
  41332. r"""Class-aware wrapper for `::pdf_count_page_associated_files()`."""
  41333. return _mupdf.pdf_count_page_associated_files(page)
  41334. def pdf_count_pages(doc):
  41335. r"""Class-aware wrapper for `::pdf_count_pages()`."""
  41336. return _mupdf.pdf_count_pages(doc)
  41337. def pdf_count_pages_imp(doc, chapter):
  41338. r"""Class-aware wrapper for `::pdf_count_pages_imp()`."""
  41339. return _mupdf.pdf_count_pages_imp(doc, chapter)
  41340. def pdf_count_q_balance(doc, res, stm, prepend, append):
  41341. r"""
  41342. Class-aware wrapper for `::pdf_count_q_balance()`.
  41343. This function has out-params. Python/C# wrappers look like:
  41344. `pdf_count_q_balance(::pdf_document *doc, ::pdf_obj *res, ::pdf_obj *stm)` => `(int prepend, int append)`
  41345. """
  41346. return _mupdf.pdf_count_q_balance(doc, res, stm, prepend, append)
  41347. def pdf_count_signatures(doc):
  41348. r"""Class-aware wrapper for `::pdf_count_signatures()`."""
  41349. return _mupdf.pdf_count_signatures(doc)
  41350. def pdf_count_unsaved_versions(doc):
  41351. r"""Class-aware wrapper for `::pdf_count_unsaved_versions()`."""
  41352. return _mupdf.pdf_count_unsaved_versions(doc)
  41353. def pdf_count_versions(doc):
  41354. r"""Class-aware wrapper for `::pdf_count_versions()`."""
  41355. return _mupdf.pdf_count_versions(doc)
  41356. def pdf_create_annot(page, type):
  41357. r"""Class-aware wrapper for `::pdf_create_annot()`."""
  41358. return _mupdf.pdf_create_annot(page, type)
  41359. def pdf_create_annot_raw(page, type):
  41360. r"""Class-aware wrapper for `::pdf_create_annot_raw()`."""
  41361. return _mupdf.pdf_create_annot_raw(page, type)
  41362. def pdf_create_document():
  41363. r"""Class-aware wrapper for `::pdf_create_document()`."""
  41364. return _mupdf.pdf_create_document()
  41365. def pdf_create_field_name(doc, prefix, buf, len):
  41366. r"""Class-aware wrapper for `::pdf_create_field_name()`."""
  41367. return _mupdf.pdf_create_field_name(doc, prefix, buf, len)
  41368. def pdf_create_link(page, bbox, uri):
  41369. r"""Class-aware wrapper for `::pdf_create_link()`."""
  41370. return _mupdf.pdf_create_link(page, bbox, uri)
  41371. def pdf_create_object(doc):
  41372. r"""Class-aware wrapper for `::pdf_create_object()`."""
  41373. return _mupdf.pdf_create_object(doc)
  41374. def pdf_create_signature_widget(page, name):
  41375. r"""Class-aware wrapper for `::pdf_create_signature_widget()`."""
  41376. return _mupdf.pdf_create_signature_widget(page, name)
  41377. def pdf_crypt_encrypt_metadata(crypt):
  41378. r"""Class-aware wrapper for `::pdf_crypt_encrypt_metadata()`."""
  41379. return _mupdf.pdf_crypt_encrypt_metadata(crypt)
  41380. def pdf_crypt_key(crypt):
  41381. r"""Class-aware wrapper for `::pdf_crypt_key()`."""
  41382. return _mupdf.pdf_crypt_key(crypt)
  41383. def pdf_crypt_length(crypt):
  41384. r"""Class-aware wrapper for `::pdf_crypt_length()`."""
  41385. return _mupdf.pdf_crypt_length(crypt)
  41386. def pdf_crypt_method(crypt):
  41387. r"""Class-aware wrapper for `::pdf_crypt_method()`."""
  41388. return _mupdf.pdf_crypt_method(crypt)
  41389. def pdf_crypt_obj(crypt, obj, num, gen):
  41390. r"""Class-aware wrapper for `::pdf_crypt_obj()`."""
  41391. return _mupdf.pdf_crypt_obj(crypt, obj, num, gen)
  41392. def pdf_crypt_owner_encryption(crypt):
  41393. r"""Class-aware wrapper for `::pdf_crypt_owner_encryption()`."""
  41394. return _mupdf.pdf_crypt_owner_encryption(crypt)
  41395. def pdf_crypt_owner_password(crypt):
  41396. r"""Class-aware wrapper for `::pdf_crypt_owner_password()`."""
  41397. return _mupdf.pdf_crypt_owner_password(crypt)
  41398. def pdf_crypt_permissions(crypt):
  41399. r"""Class-aware wrapper for `::pdf_crypt_permissions()`."""
  41400. return _mupdf.pdf_crypt_permissions(crypt)
  41401. def pdf_crypt_permissions_encryption(crypt):
  41402. r"""Class-aware wrapper for `::pdf_crypt_permissions_encryption()`."""
  41403. return _mupdf.pdf_crypt_permissions_encryption(crypt)
  41404. def pdf_crypt_revision(crypt):
  41405. r"""Class-aware wrapper for `::pdf_crypt_revision()`."""
  41406. return _mupdf.pdf_crypt_revision(crypt)
  41407. def pdf_crypt_stream_method(crypt):
  41408. r"""Class-aware wrapper for `::pdf_crypt_stream_method()`."""
  41409. return _mupdf.pdf_crypt_stream_method(crypt)
  41410. def pdf_crypt_string_method(crypt):
  41411. r"""Class-aware wrapper for `::pdf_crypt_string_method()`."""
  41412. return _mupdf.pdf_crypt_string_method(crypt)
  41413. def pdf_crypt_user_encryption(crypt):
  41414. r"""Class-aware wrapper for `::pdf_crypt_user_encryption()`."""
  41415. return _mupdf.pdf_crypt_user_encryption(crypt)
  41416. def pdf_crypt_user_password(crypt):
  41417. r"""Class-aware wrapper for `::pdf_crypt_user_password()`."""
  41418. return _mupdf.pdf_crypt_user_password(crypt)
  41419. def pdf_crypt_version(crypt):
  41420. r"""Class-aware wrapper for `::pdf_crypt_version()`."""
  41421. return _mupdf.pdf_crypt_version(crypt)
  41422. def pdf_cycle(here, prev, obj):
  41423. r"""Class-aware wrapper for `::pdf_cycle()`."""
  41424. return _mupdf.pdf_cycle(here, prev, obj)
  41425. def pdf_debug_doc_changes(doc):
  41426. r"""Class-aware wrapper for `::pdf_debug_doc_changes()`."""
  41427. return _mupdf.pdf_debug_doc_changes(doc)
  41428. def pdf_debug_obj(obj):
  41429. r"""Class-aware wrapper for `::pdf_debug_obj()`."""
  41430. return _mupdf.pdf_debug_obj(obj)
  41431. def pdf_debug_ref(obj):
  41432. r"""Class-aware wrapper for `::pdf_debug_ref()`."""
  41433. return _mupdf.pdf_debug_ref(obj)
  41434. def pdf_decode_cmap(cmap, s, e, cpt):
  41435. r"""
  41436. Class-aware wrapper for `::pdf_decode_cmap()`.
  41437. This function has out-params. Python/C# wrappers look like:
  41438. `pdf_decode_cmap(::pdf_cmap *cmap, unsigned char *s, unsigned char *e)` => `(int, unsigned int cpt)`
  41439. """
  41440. return _mupdf.pdf_decode_cmap(cmap, s, e, cpt)
  41441. def pdf_deep_copy_obj(obj):
  41442. r"""Class-aware wrapper for `::pdf_deep_copy_obj()`."""
  41443. return _mupdf.pdf_deep_copy_obj(obj)
  41444. def pdf_delete_annot(page, annot):
  41445. r"""Class-aware wrapper for `::pdf_delete_annot()`."""
  41446. return _mupdf.pdf_delete_annot(page, annot)
  41447. def pdf_delete_link(page, link):
  41448. r"""Class-aware wrapper for `::pdf_delete_link()`."""
  41449. return _mupdf.pdf_delete_link(page, link)
  41450. def pdf_delete_object(doc, num):
  41451. r"""Class-aware wrapper for `::pdf_delete_object()`."""
  41452. return _mupdf.pdf_delete_object(doc, num)
  41453. def pdf_delete_page(doc, number):
  41454. r"""Class-aware wrapper for `::pdf_delete_page()`."""
  41455. return _mupdf.pdf_delete_page(doc, number)
  41456. def pdf_delete_page_labels(doc, index):
  41457. r"""Class-aware wrapper for `::pdf_delete_page_labels()`."""
  41458. return _mupdf.pdf_delete_page_labels(doc, index)
  41459. def pdf_delete_page_range(doc, start, end):
  41460. r"""Class-aware wrapper for `::pdf_delete_page_range()`."""
  41461. return _mupdf.pdf_delete_page_range(doc, start, end)
  41462. def pdf_deselect_layer_config_ui(doc, ui):
  41463. r"""Class-aware wrapper for `::pdf_deselect_layer_config_ui()`."""
  41464. return _mupdf.pdf_deselect_layer_config_ui(doc, ui)
  41465. def pdf_deserialise_journal(doc, stm):
  41466. r"""Class-aware wrapper for `::pdf_deserialise_journal()`."""
  41467. return _mupdf.pdf_deserialise_journal(doc, stm)
  41468. def pdf_dict_del(dict, key):
  41469. r"""Class-aware wrapper for `::pdf_dict_del()`."""
  41470. return _mupdf.pdf_dict_del(dict, key)
  41471. def pdf_dict_dels(dict, key):
  41472. r"""Class-aware wrapper for `::pdf_dict_dels()`."""
  41473. return _mupdf.pdf_dict_dels(dict, key)
  41474. def pdf_dict_get(dict, key):
  41475. r"""Class-aware wrapper for `::pdf_dict_get()`."""
  41476. return _mupdf.pdf_dict_get(dict, key)
  41477. def pdf_dict_get_bool(dict, key):
  41478. r"""Class-aware wrapper for `::pdf_dict_get_bool()`."""
  41479. return _mupdf.pdf_dict_get_bool(dict, key)
  41480. def pdf_dict_get_bool_default(dict, key, _def):
  41481. r"""Class-aware wrapper for `::pdf_dict_get_bool_default()`."""
  41482. return _mupdf.pdf_dict_get_bool_default(dict, key, _def)
  41483. def pdf_dict_get_date(dict, key):
  41484. r"""Class-aware wrapper for `::pdf_dict_get_date()`."""
  41485. return _mupdf.pdf_dict_get_date(dict, key)
  41486. def pdf_dict_get_inheritable(dict, key):
  41487. r"""Class-aware wrapper for `::pdf_dict_get_inheritable()`."""
  41488. return _mupdf.pdf_dict_get_inheritable(dict, key)
  41489. def pdf_dict_get_inheritable_bool(dict, key):
  41490. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_bool()`."""
  41491. return _mupdf.pdf_dict_get_inheritable_bool(dict, key)
  41492. def pdf_dict_get_inheritable_date(dict, key):
  41493. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_date()`."""
  41494. return _mupdf.pdf_dict_get_inheritable_date(dict, key)
  41495. def pdf_dict_get_inheritable_int(dict, key):
  41496. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_int()`."""
  41497. return _mupdf.pdf_dict_get_inheritable_int(dict, key)
  41498. def pdf_dict_get_inheritable_int64(dict, key):
  41499. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_int64()`."""
  41500. return _mupdf.pdf_dict_get_inheritable_int64(dict, key)
  41501. def pdf_dict_get_inheritable_matrix(dict, key):
  41502. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_matrix()`."""
  41503. return _mupdf.pdf_dict_get_inheritable_matrix(dict, key)
  41504. def pdf_dict_get_inheritable_name(dict, key):
  41505. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_name()`."""
  41506. return _mupdf.pdf_dict_get_inheritable_name(dict, key)
  41507. def pdf_dict_get_inheritable_real(dict, key):
  41508. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_real()`."""
  41509. return _mupdf.pdf_dict_get_inheritable_real(dict, key)
  41510. def pdf_dict_get_inheritable_rect(dict, key):
  41511. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_rect()`."""
  41512. return _mupdf.pdf_dict_get_inheritable_rect(dict, key)
  41513. def pdf_dict_get_inheritable_string(dict, key, sizep):
  41514. r"""
  41515. Class-aware wrapper for `::pdf_dict_get_inheritable_string()`.
  41516. This function has out-params. Python/C# wrappers look like:
  41517. `pdf_dict_get_inheritable_string(::pdf_obj *dict, ::pdf_obj *key)` => `(const char *, size_t sizep)`
  41518. """
  41519. return _mupdf.pdf_dict_get_inheritable_string(dict, key, sizep)
  41520. def pdf_dict_get_inheritable_text_string(dict, key):
  41521. r"""Class-aware wrapper for `::pdf_dict_get_inheritable_text_string()`."""
  41522. return _mupdf.pdf_dict_get_inheritable_text_string(dict, key)
  41523. def pdf_dict_get_int(dict, key):
  41524. r"""Class-aware wrapper for `::pdf_dict_get_int()`."""
  41525. return _mupdf.pdf_dict_get_int(dict, key)
  41526. def pdf_dict_get_int64(dict, key):
  41527. r"""Class-aware wrapper for `::pdf_dict_get_int64()`."""
  41528. return _mupdf.pdf_dict_get_int64(dict, key)
  41529. def pdf_dict_get_int_default(dict, key, _def):
  41530. r"""Class-aware wrapper for `::pdf_dict_get_int_default()`."""
  41531. return _mupdf.pdf_dict_get_int_default(dict, key, _def)
  41532. def pdf_dict_get_key(dict, idx):
  41533. r"""Class-aware wrapper for `::pdf_dict_get_key()`."""
  41534. return _mupdf.pdf_dict_get_key(dict, idx)
  41535. def pdf_dict_get_matrix(dict, key):
  41536. r"""Class-aware wrapper for `::pdf_dict_get_matrix()`."""
  41537. return _mupdf.pdf_dict_get_matrix(dict, key)
  41538. def pdf_dict_get_name(dict, key):
  41539. r"""Class-aware wrapper for `::pdf_dict_get_name()`."""
  41540. return _mupdf.pdf_dict_get_name(dict, key)
  41541. def pdf_dict_get_point(dict, key):
  41542. r"""Class-aware wrapper for `::pdf_dict_get_point()`."""
  41543. return _mupdf.pdf_dict_get_point(dict, key)
  41544. def pdf_dict_get_real(dict, key):
  41545. r"""Class-aware wrapper for `::pdf_dict_get_real()`."""
  41546. return _mupdf.pdf_dict_get_real(dict, key)
  41547. def pdf_dict_get_real_default(dict, key, _def):
  41548. r"""Class-aware wrapper for `::pdf_dict_get_real_default()`."""
  41549. return _mupdf.pdf_dict_get_real_default(dict, key, _def)
  41550. def pdf_dict_get_rect(dict, key):
  41551. r"""Class-aware wrapper for `::pdf_dict_get_rect()`."""
  41552. return _mupdf.pdf_dict_get_rect(dict, key)
  41553. def pdf_dict_get_string(dict, key, sizep):
  41554. r"""
  41555. Class-aware wrapper for `::pdf_dict_get_string()`.
  41556. This function has out-params. Python/C# wrappers look like:
  41557. `pdf_dict_get_string(::pdf_obj *dict, ::pdf_obj *key)` => `(const char *, size_t sizep)`
  41558. """
  41559. return _mupdf.pdf_dict_get_string(dict, key, sizep)
  41560. def pdf_dict_get_text_string(dict, key):
  41561. r"""Class-aware wrapper for `::pdf_dict_get_text_string()`."""
  41562. return _mupdf.pdf_dict_get_text_string(dict, key)
  41563. def pdf_dict_get_text_string_opt(dict, key):
  41564. r"""Class-aware wrapper for `::pdf_dict_get_text_string_opt()`."""
  41565. return _mupdf.pdf_dict_get_text_string_opt(dict, key)
  41566. def pdf_dict_get_val(dict, idx):
  41567. r"""Class-aware wrapper for `::pdf_dict_get_val()`."""
  41568. return _mupdf.pdf_dict_get_val(dict, idx)
  41569. def pdf_dict_geta(dict, key, abbrev):
  41570. r"""Class-aware wrapper for `::pdf_dict_geta()`."""
  41571. return _mupdf.pdf_dict_geta(dict, key, abbrev)
  41572. def pdf_dict_getp(dict, path):
  41573. r"""Class-aware wrapper for `::pdf_dict_getp()`."""
  41574. return _mupdf.pdf_dict_getp(dict, path)
  41575. def pdf_dict_getp_inheritable(dict, path):
  41576. r"""Class-aware wrapper for `::pdf_dict_getp_inheritable()`."""
  41577. return _mupdf.pdf_dict_getp_inheritable(dict, path)
  41578. def pdf_dict_gets(dict, key):
  41579. r"""Class-aware wrapper for `::pdf_dict_gets()`."""
  41580. return _mupdf.pdf_dict_gets(dict, key)
  41581. def pdf_dict_gets_inheritable(dict, key):
  41582. r"""Class-aware wrapper for `::pdf_dict_gets_inheritable()`."""
  41583. return _mupdf.pdf_dict_gets_inheritable(dict, key)
  41584. def pdf_dict_getsa(dict, key, abbrev):
  41585. r"""Class-aware wrapper for `::pdf_dict_getsa()`."""
  41586. return _mupdf.pdf_dict_getsa(dict, key, abbrev)
  41587. def pdf_dict_len(dict):
  41588. r"""Class-aware wrapper for `::pdf_dict_len()`."""
  41589. return _mupdf.pdf_dict_len(dict)
  41590. def pdf_dict_put(dict, key, val):
  41591. r"""Class-aware wrapper for `::pdf_dict_put()`."""
  41592. return _mupdf.pdf_dict_put(dict, key, val)
  41593. def pdf_dict_put_array(dict, key, initial):
  41594. r"""Class-aware wrapper for `::pdf_dict_put_array()`."""
  41595. return _mupdf.pdf_dict_put_array(dict, key, initial)
  41596. def pdf_dict_put_bool(dict, key, x):
  41597. r"""Class-aware wrapper for `::pdf_dict_put_bool()`."""
  41598. return _mupdf.pdf_dict_put_bool(dict, key, x)
  41599. def pdf_dict_put_date(dict, key, time):
  41600. r"""Class-aware wrapper for `::pdf_dict_put_date()`."""
  41601. return _mupdf.pdf_dict_put_date(dict, key, time)
  41602. def pdf_dict_put_dict(dict, key, initial):
  41603. r"""Class-aware wrapper for `::pdf_dict_put_dict()`."""
  41604. return _mupdf.pdf_dict_put_dict(dict, key, initial)
  41605. def pdf_dict_put_indirect(dict, key, num):
  41606. r"""Class-aware wrapper for `::pdf_dict_put_indirect()`."""
  41607. return _mupdf.pdf_dict_put_indirect(dict, key, num)
  41608. def pdf_dict_put_int(dict, key, x):
  41609. r"""Class-aware wrapper for `::pdf_dict_put_int()`."""
  41610. return _mupdf.pdf_dict_put_int(dict, key, x)
  41611. def pdf_dict_put_matrix(dict, key, x):
  41612. r"""Class-aware wrapper for `::pdf_dict_put_matrix()`."""
  41613. return _mupdf.pdf_dict_put_matrix(dict, key, x)
  41614. def pdf_dict_put_name(dict, key, x):
  41615. r"""Class-aware wrapper for `::pdf_dict_put_name()`."""
  41616. return _mupdf.pdf_dict_put_name(dict, key, x)
  41617. def pdf_dict_put_point(dict, key, x):
  41618. r"""Class-aware wrapper for `::pdf_dict_put_point()`."""
  41619. return _mupdf.pdf_dict_put_point(dict, key, x)
  41620. def pdf_dict_put_real(dict, key, x):
  41621. r"""Class-aware wrapper for `::pdf_dict_put_real()`."""
  41622. return _mupdf.pdf_dict_put_real(dict, key, x)
  41623. def pdf_dict_put_rect(dict, key, x):
  41624. r"""Class-aware wrapper for `::pdf_dict_put_rect()`."""
  41625. return _mupdf.pdf_dict_put_rect(dict, key, x)
  41626. def pdf_dict_put_string(dict, key, x, n):
  41627. r"""Class-aware wrapper for `::pdf_dict_put_string()`."""
  41628. return _mupdf.pdf_dict_put_string(dict, key, x, n)
  41629. def pdf_dict_put_text_string(dict, key, x):
  41630. r"""Class-aware wrapper for `::pdf_dict_put_text_string()`."""
  41631. return _mupdf.pdf_dict_put_text_string(dict, key, x)
  41632. def pdf_dict_put_val_null(obj, idx):
  41633. r"""Class-aware wrapper for `::pdf_dict_put_val_null()`."""
  41634. return _mupdf.pdf_dict_put_val_null(obj, idx)
  41635. def pdf_dict_putp(dict, path, val):
  41636. r"""Class-aware wrapper for `::pdf_dict_putp()`."""
  41637. return _mupdf.pdf_dict_putp(dict, path, val)
  41638. def pdf_dict_puts(dict, key, val):
  41639. r"""Class-aware wrapper for `::pdf_dict_puts()`."""
  41640. return _mupdf.pdf_dict_puts(dict, key, val)
  41641. def pdf_dict_puts_dict(dict, key, initial):
  41642. r"""Class-aware wrapper for `::pdf_dict_puts_dict()`."""
  41643. return _mupdf.pdf_dict_puts_dict(dict, key, initial)
  41644. def pdf_dirty_annot(annot):
  41645. r"""Class-aware wrapper for `::pdf_dirty_annot()`."""
  41646. return _mupdf.pdf_dirty_annot(annot)
  41647. def pdf_dirty_obj(obj):
  41648. r"""Class-aware wrapper for `::pdf_dirty_obj()`."""
  41649. return _mupdf.pdf_dirty_obj(obj)
  41650. def pdf_disable_js(doc):
  41651. r"""Class-aware wrapper for `::pdf_disable_js()`."""
  41652. return _mupdf.pdf_disable_js(doc)
  41653. def pdf_discard_journal(journal):
  41654. r"""Class-aware wrapper for `::pdf_discard_journal()`."""
  41655. return _mupdf.pdf_discard_journal(journal)
  41656. def pdf_doc_was_linearized(doc):
  41657. r"""Class-aware wrapper for `::pdf_doc_was_linearized()`."""
  41658. return _mupdf.pdf_doc_was_linearized(doc)
  41659. def pdf_document_associated_file(doc, idx):
  41660. r"""Class-aware wrapper for `::pdf_document_associated_file()`."""
  41661. return _mupdf.pdf_document_associated_file(doc, idx)
  41662. def pdf_document_event_did_print(doc):
  41663. r"""Class-aware wrapper for `::pdf_document_event_did_print()`."""
  41664. return _mupdf.pdf_document_event_did_print(doc)
  41665. def pdf_document_event_did_save(doc):
  41666. r"""Class-aware wrapper for `::pdf_document_event_did_save()`."""
  41667. return _mupdf.pdf_document_event_did_save(doc)
  41668. def pdf_document_event_will_close(doc):
  41669. r"""Class-aware wrapper for `::pdf_document_event_will_close()`."""
  41670. return _mupdf.pdf_document_event_will_close(doc)
  41671. def pdf_document_event_will_print(doc):
  41672. r"""Class-aware wrapper for `::pdf_document_event_will_print()`."""
  41673. return _mupdf.pdf_document_event_will_print(doc)
  41674. def pdf_document_event_will_save(doc):
  41675. r"""Class-aware wrapper for `::pdf_document_event_will_save()`."""
  41676. return _mupdf.pdf_document_event_will_save(doc)
  41677. def pdf_document_from_fz_document(ptr):
  41678. r"""Class-aware wrapper for `::pdf_document_from_fz_document()`."""
  41679. return _mupdf.pdf_document_from_fz_document(ptr)
  41680. def pdf_document_language(doc):
  41681. r"""Class-aware wrapper for `::pdf_document_language()`."""
  41682. return _mupdf.pdf_document_language(doc)
  41683. def pdf_document_output_intent(doc):
  41684. r"""Class-aware wrapper for `::pdf_document_output_intent()`."""
  41685. return _mupdf.pdf_document_output_intent(doc)
  41686. def pdf_document_permissions(doc):
  41687. r"""Class-aware wrapper for `::pdf_document_permissions()`."""
  41688. return _mupdf.pdf_document_permissions(doc)
  41689. def pdf_edit_text_field_value(widget, value, change, selStart, selEnd, newvalue):
  41690. r"""
  41691. Class-aware wrapper for `::pdf_edit_text_field_value()`.
  41692. This function has out-params. Python/C# wrappers look like:
  41693. `pdf_edit_text_field_value(::pdf_annot *widget, const char *value, const char *change)` => `(int, int selStart, int selEnd, char *newvalue)`
  41694. """
  41695. return _mupdf.pdf_edit_text_field_value(widget, value, change, selStart, selEnd, newvalue)
  41696. def pdf_empty_store(doc):
  41697. r"""Class-aware wrapper for `::pdf_empty_store()`."""
  41698. return _mupdf.pdf_empty_store(doc)
  41699. def pdf_enable_journal(doc):
  41700. r"""Class-aware wrapper for `::pdf_enable_journal()`."""
  41701. return _mupdf.pdf_enable_journal(doc)
  41702. def pdf_enable_js(doc):
  41703. r"""Class-aware wrapper for `::pdf_enable_js()`."""
  41704. return _mupdf.pdf_enable_js(doc)
  41705. def pdf_enable_layer(doc, layer, enabled):
  41706. r"""Class-aware wrapper for `::pdf_enable_layer()`."""
  41707. return _mupdf.pdf_enable_layer(doc, layer, enabled)
  41708. def pdf_encrypt_data(crypt, num, gen, fmt_str_out, arg, s, n):
  41709. r"""Class-aware wrapper for `::pdf_encrypt_data()`."""
  41710. return _mupdf.pdf_encrypt_data(crypt, num, gen, fmt_str_out, arg, s, n)
  41711. def pdf_encrypted_len(crypt, num, gen, len):
  41712. r"""Class-aware wrapper for `::pdf_encrypted_len()`."""
  41713. return _mupdf.pdf_encrypted_len(crypt, num, gen, len)
  41714. def pdf_end_hmtx(font):
  41715. r"""Class-aware wrapper for `::pdf_end_hmtx()`."""
  41716. return _mupdf.pdf_end_hmtx(font)
  41717. def pdf_end_operation(doc):
  41718. r"""Class-aware wrapper for `::pdf_end_operation()`."""
  41719. return _mupdf.pdf_end_operation(doc)
  41720. def pdf_end_vmtx(font):
  41721. r"""Class-aware wrapper for `::pdf_end_vmtx()`."""
  41722. return _mupdf.pdf_end_vmtx(font)
  41723. def pdf_ensure_solid_xref(doc, num):
  41724. r"""Class-aware wrapper for `::pdf_ensure_solid_xref()`."""
  41725. return _mupdf.pdf_ensure_solid_xref(doc, num)
  41726. def pdf_eval_function(func, _in, inlen, out, outlen):
  41727. r"""
  41728. Class-aware wrapper for `::pdf_eval_function()`.
  41729. This function has out-params. Python/C# wrappers look like:
  41730. `pdf_eval_function(::pdf_function *func, const float *in, int inlen, int outlen)` => float out
  41731. """
  41732. return _mupdf.pdf_eval_function(func, _in, inlen, out, outlen)
  41733. def pdf_event_issue_alert(doc, evt):
  41734. r"""Class-aware wrapper for `::pdf_event_issue_alert()`."""
  41735. return _mupdf.pdf_event_issue_alert(doc, evt)
  41736. def pdf_event_issue_exec_menu_item(doc, item):
  41737. r"""Class-aware wrapper for `::pdf_event_issue_exec_menu_item()`."""
  41738. return _mupdf.pdf_event_issue_exec_menu_item(doc, item)
  41739. def pdf_event_issue_launch_url(doc, url, new_frame):
  41740. r"""Class-aware wrapper for `::pdf_event_issue_launch_url()`."""
  41741. return _mupdf.pdf_event_issue_launch_url(doc, url, new_frame)
  41742. def pdf_event_issue_mail_doc(doc, evt):
  41743. r"""Class-aware wrapper for `::pdf_event_issue_mail_doc()`."""
  41744. return _mupdf.pdf_event_issue_mail_doc(doc, evt)
  41745. def pdf_event_issue_print(doc):
  41746. r"""Class-aware wrapper for `::pdf_event_issue_print()`."""
  41747. return _mupdf.pdf_event_issue_print(doc)
  41748. def pdf_field_border_style(field):
  41749. r"""Class-aware wrapper for `::pdf_field_border_style()`."""
  41750. return _mupdf.pdf_field_border_style(field)
  41751. def pdf_field_display(field):
  41752. r"""Class-aware wrapper for `::pdf_field_display()`."""
  41753. return _mupdf.pdf_field_display(field)
  41754. def pdf_field_event_calculate(doc, field):
  41755. r"""Class-aware wrapper for `::pdf_field_event_calculate()`."""
  41756. return _mupdf.pdf_field_event_calculate(doc, field)
  41757. def pdf_field_event_format(doc, field):
  41758. r"""Class-aware wrapper for `::pdf_field_event_format()`."""
  41759. return _mupdf.pdf_field_event_format(doc, field)
  41760. def pdf_field_event_keystroke(doc, field, evt):
  41761. r"""Class-aware wrapper for `::pdf_field_event_keystroke()`."""
  41762. return _mupdf.pdf_field_event_keystroke(doc, field, evt)
  41763. def pdf_field_event_validate(doc, field, value, newvalue):
  41764. r"""
  41765. Class-aware wrapper for `::pdf_field_event_validate()`.
  41766. This function has out-params. Python/C# wrappers look like:
  41767. `pdf_field_event_validate(::pdf_document *doc, ::pdf_obj *field, const char *value)` => `(int, char *newvalue)`
  41768. """
  41769. return _mupdf.pdf_field_event_validate(doc, field, value, newvalue)
  41770. def pdf_field_flags(field):
  41771. r"""Class-aware wrapper for `::pdf_field_flags()`."""
  41772. return _mupdf.pdf_field_flags(field)
  41773. def pdf_field_label(field):
  41774. r"""Class-aware wrapper for `::pdf_field_label()`."""
  41775. return _mupdf.pdf_field_label(field)
  41776. def pdf_field_reset(doc, field):
  41777. r"""Class-aware wrapper for `::pdf_field_reset()`."""
  41778. return _mupdf.pdf_field_reset(doc, field)
  41779. def pdf_field_set_border_style(field, text):
  41780. r"""Class-aware wrapper for `::pdf_field_set_border_style()`."""
  41781. return _mupdf.pdf_field_set_border_style(field, text)
  41782. def pdf_field_set_button_caption(field, text):
  41783. r"""Class-aware wrapper for `::pdf_field_set_button_caption()`."""
  41784. return _mupdf.pdf_field_set_button_caption(field, text)
  41785. def pdf_field_set_display(field, d):
  41786. r"""Class-aware wrapper for `::pdf_field_set_display()`."""
  41787. return _mupdf.pdf_field_set_display(field, d)
  41788. def pdf_field_set_fill_color(field, col):
  41789. r"""Class-aware wrapper for `::pdf_field_set_fill_color()`."""
  41790. return _mupdf.pdf_field_set_fill_color(field, col)
  41791. def pdf_field_set_text_color(field, col):
  41792. r"""Class-aware wrapper for `::pdf_field_set_text_color()`."""
  41793. return _mupdf.pdf_field_set_text_color(field, col)
  41794. def pdf_field_type(field):
  41795. r"""Class-aware wrapper for `::pdf_field_type()`."""
  41796. return _mupdf.pdf_field_type(field)
  41797. def pdf_field_type_string(field):
  41798. r"""Class-aware wrapper for `::pdf_field_type_string()`."""
  41799. return _mupdf.pdf_field_type_string(field)
  41800. def pdf_field_value(field):
  41801. r"""Class-aware wrapper for `::pdf_field_value()`."""
  41802. return _mupdf.pdf_field_value(field)
  41803. def pdf_filter_annot_contents(doc, annot, options):
  41804. r"""Class-aware wrapper for `::pdf_filter_annot_contents()`."""
  41805. return _mupdf.pdf_filter_annot_contents(doc, annot, options)
  41806. def pdf_filter_page_contents(doc, page, options):
  41807. r"""Class-aware wrapper for `::pdf_filter_page_contents()`."""
  41808. return _mupdf.pdf_filter_page_contents(doc, page, options)
  41809. def pdf_filter_xobject_instance(old_xobj, page_res, ctm, options, cycle_up):
  41810. r"""Class-aware wrapper for `::pdf_filter_xobject_instance()`."""
  41811. return _mupdf.pdf_filter_xobject_instance(old_xobj, page_res, ctm, options, cycle_up)
  41812. def pdf_find_colorspace_resource(doc, item, key):
  41813. r"""Class-aware wrapper for `::pdf_find_colorspace_resource()`."""
  41814. return _mupdf.pdf_find_colorspace_resource(doc, item, key)
  41815. def pdf_find_font_resource(doc, type, encoding, item, key):
  41816. r"""Class-aware wrapper for `::pdf_find_font_resource()`."""
  41817. return _mupdf.pdf_find_font_resource(doc, type, encoding, item, key)
  41818. def pdf_find_item(drop, key):
  41819. r"""Class-aware wrapper for `::pdf_find_item()`."""
  41820. return _mupdf.pdf_find_item(drop, key)
  41821. def pdf_find_version_for_obj(doc, obj):
  41822. r"""Class-aware wrapper for `::pdf_find_version_for_obj()`."""
  41823. return _mupdf.pdf_find_version_for_obj(doc, obj)
  41824. def pdf_first_annot(page):
  41825. r"""Class-aware wrapper for `::pdf_first_annot()`."""
  41826. return _mupdf.pdf_first_annot(page)
  41827. def pdf_first_widget(page):
  41828. r"""Class-aware wrapper for `::pdf_first_widget()`."""
  41829. return _mupdf.pdf_first_widget(page)
  41830. def pdf_flatten_inheritable_page_items(page):
  41831. r"""Class-aware wrapper for `::pdf_flatten_inheritable_page_items()`."""
  41832. return _mupdf.pdf_flatten_inheritable_page_items(page)
  41833. def pdf_font_cid_to_gid(fontdesc, cid):
  41834. r"""Class-aware wrapper for `::pdf_font_cid_to_gid()`."""
  41835. return _mupdf.pdf_font_cid_to_gid(fontdesc, cid)
  41836. def pdf_font_writing_supported(font):
  41837. r"""Class-aware wrapper for `::pdf_font_writing_supported()`."""
  41838. return _mupdf.pdf_font_writing_supported(font)
  41839. def pdf_forget_xref(doc):
  41840. r"""Class-aware wrapper for `::pdf_forget_xref()`."""
  41841. return _mupdf.pdf_forget_xref(doc)
  41842. def pdf_format_date(time, s, n):
  41843. r"""Class-aware wrapper for `::pdf_format_date()`."""
  41844. return _mupdf.pdf_format_date(time, s, n)
  41845. def pdf_format_write_options(buffer, buffer_len, opts):
  41846. r"""Class-aware wrapper for `::pdf_format_write_options()`."""
  41847. return _mupdf.pdf_format_write_options(buffer, buffer_len, opts)
  41848. def pdf_function_size(func):
  41849. r"""Class-aware wrapper for `::pdf_function_size()`."""
  41850. return _mupdf.pdf_function_size(func)
  41851. def pdf_get_bound_document(obj):
  41852. r"""Class-aware wrapper for `::pdf_get_bound_document()`."""
  41853. return _mupdf.pdf_get_bound_document(obj)
  41854. def pdf_get_doc_event_callback_data(doc):
  41855. r"""Class-aware wrapper for `::pdf_get_doc_event_callback_data()`."""
  41856. return _mupdf.pdf_get_doc_event_callback_data(doc)
  41857. def pdf_get_filespec_params(fs, out):
  41858. r"""Class-aware wrapper for `::pdf_get_filespec_params()`."""
  41859. return _mupdf.pdf_get_filespec_params(fs, out)
  41860. def pdf_get_indirect_document(obj):
  41861. r"""Class-aware wrapper for `::pdf_get_indirect_document()`."""
  41862. return _mupdf.pdf_get_indirect_document(obj)
  41863. def pdf_get_widget_editing_state(widget):
  41864. r"""Class-aware wrapper for `::pdf_get_widget_editing_state()`."""
  41865. return _mupdf.pdf_get_widget_editing_state(widget)
  41866. def pdf_graft_mapped_object(map, obj):
  41867. r"""Class-aware wrapper for `::pdf_graft_mapped_object()`."""
  41868. return _mupdf.pdf_graft_mapped_object(map, obj)
  41869. def pdf_graft_mapped_page(map, page_to, src, page_from):
  41870. r"""Class-aware wrapper for `::pdf_graft_mapped_page()`."""
  41871. return _mupdf.pdf_graft_mapped_page(map, page_to, src, page_from)
  41872. def pdf_graft_object(dst, obj):
  41873. r"""Class-aware wrapper for `::pdf_graft_object()`."""
  41874. return _mupdf.pdf_graft_object(dst, obj)
  41875. def pdf_graft_page(dst, page_to, src, page_from):
  41876. r"""Class-aware wrapper for `::pdf_graft_page()`."""
  41877. return _mupdf.pdf_graft_page(dst, page_to, src, page_from)
  41878. def pdf_has_permission(doc, p):
  41879. r"""Class-aware wrapper for `::pdf_has_permission()`."""
  41880. return _mupdf.pdf_has_permission(doc, p)
  41881. def pdf_has_unsaved_changes(doc):
  41882. r"""Class-aware wrapper for `::pdf_has_unsaved_changes()`."""
  41883. return _mupdf.pdf_has_unsaved_changes(doc)
  41884. def pdf_has_unsaved_sigs(doc):
  41885. r"""Class-aware wrapper for `::pdf_has_unsaved_sigs()`."""
  41886. return _mupdf.pdf_has_unsaved_sigs(doc)
  41887. def pdf_incremental_change_since_signing_widget(widget):
  41888. r"""Class-aware wrapper for `::pdf_incremental_change_since_signing_widget()`."""
  41889. return _mupdf.pdf_incremental_change_since_signing_widget(widget)
  41890. def pdf_insert_colorspace_resource(doc, key, obj):
  41891. r"""Class-aware wrapper for `::pdf_insert_colorspace_resource()`."""
  41892. return _mupdf.pdf_insert_colorspace_resource(doc, key, obj)
  41893. def pdf_insert_font_resource(doc, key, obj):
  41894. r"""Class-aware wrapper for `::pdf_insert_font_resource()`."""
  41895. return _mupdf.pdf_insert_font_resource(doc, key, obj)
  41896. def pdf_insert_page(doc, at, page):
  41897. r"""Class-aware wrapper for `::pdf_insert_page()`."""
  41898. return _mupdf.pdf_insert_page(doc, at, page)
  41899. def pdf_intent_from_name(obj):
  41900. r"""Class-aware wrapper for `::pdf_intent_from_name()`."""
  41901. return _mupdf.pdf_intent_from_name(obj)
  41902. def pdf_intent_from_string(str):
  41903. r"""Class-aware wrapper for `::pdf_intent_from_string()`."""
  41904. return _mupdf.pdf_intent_from_string(str)
  41905. def pdf_invalidate_xfa(doc):
  41906. r"""Class-aware wrapper for `::pdf_invalidate_xfa()`."""
  41907. return _mupdf.pdf_invalidate_xfa(doc)
  41908. def pdf_is_array(obj):
  41909. r"""Class-aware wrapper for `::pdf_is_array()`."""
  41910. return _mupdf.pdf_is_array(obj)
  41911. def pdf_is_bool(obj):
  41912. r"""Class-aware wrapper for `::pdf_is_bool()`."""
  41913. return _mupdf.pdf_is_bool(obj)
  41914. def pdf_is_dict(obj):
  41915. r"""Class-aware wrapper for `::pdf_is_dict()`."""
  41916. return _mupdf.pdf_is_dict(obj)
  41917. def pdf_is_embedded_file(fs):
  41918. r"""Class-aware wrapper for `::pdf_is_embedded_file()`."""
  41919. return _mupdf.pdf_is_embedded_file(fs)
  41920. def pdf_is_field_locked(locked, name):
  41921. r"""Class-aware wrapper for `::pdf_is_field_locked()`."""
  41922. return _mupdf.pdf_is_field_locked(locked, name)
  41923. def pdf_is_filespec(fs):
  41924. r"""Class-aware wrapper for `::pdf_is_filespec()`."""
  41925. return _mupdf.pdf_is_filespec(fs)
  41926. def pdf_is_image_stream(obj):
  41927. r"""Class-aware wrapper for `::pdf_is_image_stream()`."""
  41928. return _mupdf.pdf_is_image_stream(obj)
  41929. def pdf_is_indirect(obj):
  41930. r"""Class-aware wrapper for `::pdf_is_indirect()`."""
  41931. return _mupdf.pdf_is_indirect(obj)
  41932. def pdf_is_int(obj):
  41933. r"""Class-aware wrapper for `::pdf_is_int()`."""
  41934. return _mupdf.pdf_is_int(obj)
  41935. def pdf_is_jpx_image(dict):
  41936. r"""Class-aware wrapper for `::pdf_is_jpx_image()`."""
  41937. return _mupdf.pdf_is_jpx_image(dict)
  41938. def pdf_is_local_object(doc, obj):
  41939. r"""Class-aware wrapper for `::pdf_is_local_object()`."""
  41940. return _mupdf.pdf_is_local_object(doc, obj)
  41941. def pdf_is_name(obj):
  41942. r"""Class-aware wrapper for `::pdf_is_name()`."""
  41943. return _mupdf.pdf_is_name(obj)
  41944. def pdf_is_null(obj):
  41945. r"""Class-aware wrapper for `::pdf_is_null()`."""
  41946. return _mupdf.pdf_is_null(obj)
  41947. def pdf_is_number(obj):
  41948. r"""Class-aware wrapper for `::pdf_is_number()`."""
  41949. return _mupdf.pdf_is_number(obj)
  41950. def pdf_is_ocg_hidden(doc, rdb, usage, ocg):
  41951. r"""Class-aware wrapper for `::pdf_is_ocg_hidden()`."""
  41952. return _mupdf.pdf_is_ocg_hidden(doc, rdb, usage, ocg)
  41953. def pdf_is_real(obj):
  41954. r"""Class-aware wrapper for `::pdf_is_real()`."""
  41955. return _mupdf.pdf_is_real(obj)
  41956. def pdf_is_stream(obj):
  41957. r"""Class-aware wrapper for `::pdf_is_stream()`."""
  41958. return _mupdf.pdf_is_stream(obj)
  41959. def pdf_is_string(obj):
  41960. r"""Class-aware wrapper for `::pdf_is_string()`."""
  41961. return _mupdf.pdf_is_string(obj)
  41962. def pdf_is_tint_colorspace(cs):
  41963. r"""Class-aware wrapper for `::pdf_is_tint_colorspace()`."""
  41964. return _mupdf.pdf_is_tint_colorspace(cs)
  41965. def pdf_js_event_init(js, target, value, willCommit):
  41966. r"""Class-aware wrapper for `::pdf_js_event_init()`."""
  41967. return _mupdf.pdf_js_event_init(js, target, value, willCommit)
  41968. def pdf_js_event_init_keystroke(js, target, evt):
  41969. r"""Class-aware wrapper for `::pdf_js_event_init_keystroke()`."""
  41970. return _mupdf.pdf_js_event_init_keystroke(js, target, evt)
  41971. def pdf_js_event_result(js):
  41972. r"""Class-aware wrapper for `::pdf_js_event_result()`."""
  41973. return _mupdf.pdf_js_event_result(js)
  41974. def pdf_js_event_result_keystroke(js, evt):
  41975. r"""Class-aware wrapper for `::pdf_js_event_result_keystroke()`."""
  41976. return _mupdf.pdf_js_event_result_keystroke(js, evt)
  41977. def pdf_js_event_result_validate(js, newvalue):
  41978. r"""
  41979. Class-aware wrapper for `::pdf_js_event_result_validate()`.
  41980. This function has out-params. Python/C# wrappers look like:
  41981. `pdf_js_event_result_validate(::pdf_js *js)` => `(int, char *newvalue)`
  41982. """
  41983. return _mupdf.pdf_js_event_result_validate(js, newvalue)
  41984. def pdf_js_event_value(js):
  41985. r"""Class-aware wrapper for `::pdf_js_event_value()`."""
  41986. return _mupdf.pdf_js_event_value(js)
  41987. def pdf_js_execute(js, name, code, result):
  41988. r"""
  41989. Class-aware wrapper for `::pdf_js_execute()`.
  41990. This function has out-params. Python/C# wrappers look like:
  41991. `pdf_js_execute(::pdf_js *js, const char *name, const char *code)` => char *result
  41992. """
  41993. return _mupdf.pdf_js_execute(js, name, code, result)
  41994. def pdf_js_set_console(doc, console, user):
  41995. r"""Class-aware wrapper for `::pdf_js_set_console()`."""
  41996. return _mupdf.pdf_js_set_console(doc, console, user)
  41997. def pdf_js_supported(doc):
  41998. r"""Class-aware wrapper for `::pdf_js_supported()`."""
  41999. return _mupdf.pdf_js_supported(doc)
  42000. def pdf_label_object(g, num, callback, arg):
  42001. r"""Class-aware wrapper for `::pdf_label_object()`."""
  42002. return _mupdf.pdf_label_object(g, num, callback, arg)
  42003. def pdf_layer_config_info(doc, config_num, info):
  42004. r"""Class-aware wrapper for `::pdf_layer_config_info()`."""
  42005. return _mupdf.pdf_layer_config_info(doc, config_num, info)
  42006. def pdf_layer_config_ui_info(doc, ui, info):
  42007. r"""Class-aware wrapper for `::pdf_layer_config_ui_info()`."""
  42008. return _mupdf.pdf_layer_config_ui_info(doc, ui, info)
  42009. def pdf_layer_is_enabled(doc, layer):
  42010. r"""Class-aware wrapper for `::pdf_layer_is_enabled()`."""
  42011. return _mupdf.pdf_layer_is_enabled(doc, layer)
  42012. def pdf_layer_name(doc, layer):
  42013. r"""Class-aware wrapper for `::pdf_layer_name()`."""
  42014. return _mupdf.pdf_layer_name(doc, layer)
  42015. def pdf_layout_fit_text(font, lang, str, bounds):
  42016. r"""Class-aware wrapper for `::pdf_layout_fit_text()`."""
  42017. return _mupdf.pdf_layout_fit_text(font, lang, str, bounds)
  42018. def pdf_lex(f, lexbuf):
  42019. r"""Class-aware wrapper for `::pdf_lex()`."""
  42020. return _mupdf.pdf_lex(f, lexbuf)
  42021. def pdf_lex_no_string(f, lexbuf):
  42022. r"""Class-aware wrapper for `::pdf_lex_no_string()`."""
  42023. return _mupdf.pdf_lex_no_string(f, lexbuf)
  42024. def pdf_lexbuf_fin(lexbuf):
  42025. r"""Class-aware wrapper for `::pdf_lexbuf_fin()`."""
  42026. return _mupdf.pdf_lexbuf_fin(lexbuf)
  42027. def pdf_lexbuf_grow(lexbuf):
  42028. r"""Class-aware wrapper for `::pdf_lexbuf_grow()`."""
  42029. return _mupdf.pdf_lexbuf_grow(lexbuf)
  42030. def pdf_lexbuf_init(lexbuf, size):
  42031. r"""Class-aware wrapper for `::pdf_lexbuf_init()`."""
  42032. return _mupdf.pdf_lexbuf_init(lexbuf, size)
  42033. def pdf_line_ending_from_name(end):
  42034. r"""Class-aware wrapper for `::pdf_line_ending_from_name()`."""
  42035. return _mupdf.pdf_line_ending_from_name(end)
  42036. def pdf_line_ending_from_string(end):
  42037. r"""Class-aware wrapper for `::pdf_line_ending_from_string()`."""
  42038. return _mupdf.pdf_line_ending_from_string(end)
  42039. def pdf_load_builtin_cmap(name):
  42040. r"""Class-aware wrapper for `::pdf_load_builtin_cmap()`."""
  42041. return _mupdf.pdf_load_builtin_cmap(name)
  42042. def pdf_load_cmap(file):
  42043. r"""Class-aware wrapper for `::pdf_load_cmap()`."""
  42044. return _mupdf.pdf_load_cmap(file)
  42045. def pdf_load_colorspace(obj):
  42046. r"""Class-aware wrapper for `::pdf_load_colorspace()`."""
  42047. return _mupdf.pdf_load_colorspace(obj)
  42048. def pdf_load_compressed_inline_image(doc, dict, length, cstm, indexed, image):
  42049. r"""Class-aware wrapper for `::pdf_load_compressed_inline_image()`."""
  42050. return _mupdf.pdf_load_compressed_inline_image(doc, dict, length, cstm, indexed, image)
  42051. def pdf_load_compressed_stream(doc, num, worst_case):
  42052. r"""Class-aware wrapper for `::pdf_load_compressed_stream()`."""
  42053. return _mupdf.pdf_load_compressed_stream(doc, num, worst_case)
  42054. def pdf_load_default_colorspaces(doc, page):
  42055. r"""Class-aware wrapper for `::pdf_load_default_colorspaces()`."""
  42056. return _mupdf.pdf_load_default_colorspaces(doc, page)
  42057. def pdf_load_embedded_cmap(doc, ref):
  42058. r"""Class-aware wrapper for `::pdf_load_embedded_cmap()`."""
  42059. return _mupdf.pdf_load_embedded_cmap(doc, ref)
  42060. def pdf_load_embedded_file_contents(fs):
  42061. r"""Class-aware wrapper for `::pdf_load_embedded_file_contents()`."""
  42062. return _mupdf.pdf_load_embedded_file_contents(fs)
  42063. def pdf_load_encoding(estrings, encoding):
  42064. r"""
  42065. Class-aware wrapper for `::pdf_load_encoding()`.
  42066. This function has out-params. Python/C# wrappers look like:
  42067. `pdf_load_encoding(const char *encoding)` => const char *estrings
  42068. """
  42069. return _mupdf.pdf_load_encoding(estrings, encoding)
  42070. def pdf_load_field_name(field):
  42071. r"""Class-aware wrapper for `::pdf_load_field_name()`."""
  42072. return _mupdf.pdf_load_field_name(field)
  42073. def pdf_load_field_name2(field):
  42074. r"""Alternative to `pdf_load_field_name()` that returns a std::string."""
  42075. return _mupdf.pdf_load_field_name2(field)
  42076. def pdf_load_function(ref, _in, out):
  42077. r"""Class-aware wrapper for `::pdf_load_function()`."""
  42078. return _mupdf.pdf_load_function(ref, _in, out)
  42079. def pdf_load_image(doc, obj):
  42080. r"""Class-aware wrapper for `::pdf_load_image()`."""
  42081. return _mupdf.pdf_load_image(doc, obj)
  42082. def pdf_load_inline_image(doc, rdb, dict, file):
  42083. r"""Class-aware wrapper for `::pdf_load_inline_image()`."""
  42084. return _mupdf.pdf_load_inline_image(doc, rdb, dict, file)
  42085. def pdf_load_journal(doc, filename):
  42086. r"""Class-aware wrapper for `::pdf_load_journal()`."""
  42087. return _mupdf.pdf_load_journal(doc, filename)
  42088. def pdf_load_link_annots(arg_0, arg_1, annots, pagenum, page_ctm):
  42089. r"""Class-aware wrapper for `::pdf_load_link_annots()`."""
  42090. return _mupdf.pdf_load_link_annots(arg_0, arg_1, annots, pagenum, page_ctm)
  42091. def pdf_load_links(page):
  42092. r"""Class-aware wrapper for `::pdf_load_links()`."""
  42093. return _mupdf.pdf_load_links(page)
  42094. def pdf_load_name_tree(doc, which):
  42095. r"""Class-aware wrapper for `::pdf_load_name_tree()`."""
  42096. return _mupdf.pdf_load_name_tree(doc, which)
  42097. def pdf_load_object(doc, num):
  42098. r"""
  42099. Class-aware wrapper for `::pdf_load_object()`.
  42100. Load a given object.
  42101. This can cause xref reorganisations (solidifications etc) due to
  42102. repairs, so all held pdf_xref_entries should be considered
  42103. invalid after this call (other than the returned one).
  42104. """
  42105. return _mupdf.pdf_load_object(doc, num)
  42106. def pdf_load_outline(doc):
  42107. r"""Class-aware wrapper for `::pdf_load_outline()`."""
  42108. return _mupdf.pdf_load_outline(doc)
  42109. def pdf_load_page(doc, number):
  42110. r"""Class-aware wrapper for `::pdf_load_page()`."""
  42111. return _mupdf.pdf_load_page(doc, number)
  42112. def pdf_load_page_imp(doc, chapter, number):
  42113. r"""Class-aware wrapper for `::pdf_load_page_imp()`."""
  42114. return _mupdf.pdf_load_page_imp(doc, chapter, number)
  42115. def pdf_load_page_tree(doc):
  42116. r"""Class-aware wrapper for `::pdf_load_page_tree()`."""
  42117. return _mupdf.pdf_load_page_tree(doc)
  42118. def pdf_load_pattern(doc, obj):
  42119. r"""Class-aware wrapper for `::pdf_load_pattern()`."""
  42120. return _mupdf.pdf_load_pattern(doc, obj)
  42121. def pdf_load_raw_stream(ref):
  42122. r"""Class-aware wrapper for `::pdf_load_raw_stream()`."""
  42123. return _mupdf.pdf_load_raw_stream(ref)
  42124. def pdf_load_raw_stream_number(doc, num):
  42125. r"""Class-aware wrapper for `::pdf_load_raw_stream_number()`."""
  42126. return _mupdf.pdf_load_raw_stream_number(doc, num)
  42127. def pdf_load_shading(doc, obj):
  42128. r"""Class-aware wrapper for `::pdf_load_shading()`."""
  42129. return _mupdf.pdf_load_shading(doc, obj)
  42130. def pdf_load_stream(ref):
  42131. r"""Class-aware wrapper for `::pdf_load_stream()`."""
  42132. return _mupdf.pdf_load_stream(ref)
  42133. def pdf_load_stream_number(doc, num):
  42134. r"""Class-aware wrapper for `::pdf_load_stream_number()`."""
  42135. return _mupdf.pdf_load_stream_number(doc, num)
  42136. def pdf_load_stream_or_string_as_utf8(src):
  42137. r"""Class-aware wrapper for `::pdf_load_stream_or_string_as_utf8()`."""
  42138. return _mupdf.pdf_load_stream_or_string_as_utf8(src)
  42139. def pdf_load_system_cmap(name):
  42140. r"""Class-aware wrapper for `::pdf_load_system_cmap()`."""
  42141. return _mupdf.pdf_load_system_cmap(name)
  42142. def pdf_load_to_unicode(doc, font, strings, collection, cmapstm):
  42143. r"""
  42144. Class-aware wrapper for `::pdf_load_to_unicode()`.
  42145. This function has out-params. Python/C# wrappers look like:
  42146. `pdf_load_to_unicode(::pdf_document *doc, ::pdf_font_desc *font, char *collection, ::pdf_obj *cmapstm)` => const char *strings
  42147. """
  42148. return _mupdf.pdf_load_to_unicode(doc, font, strings, collection, cmapstm)
  42149. def pdf_load_type3_glyphs(doc, fontdesc):
  42150. r"""Class-aware wrapper for `::pdf_load_type3_glyphs()`."""
  42151. return _mupdf.pdf_load_type3_glyphs(doc, fontdesc)
  42152. def pdf_load_unencrypted_object(doc, num):
  42153. r"""Class-aware wrapper for `::pdf_load_unencrypted_object()`."""
  42154. return _mupdf.pdf_load_unencrypted_object(doc, num)
  42155. def pdf_lookup_cmap(cmap, cpt):
  42156. r"""Class-aware wrapper for `::pdf_lookup_cmap()`."""
  42157. return _mupdf.pdf_lookup_cmap(cmap, cpt)
  42158. def pdf_lookup_cmap_full(cmap, cpt, out):
  42159. r"""
  42160. Class-aware wrapper for `::pdf_lookup_cmap_full()`.
  42161. This function has out-params. Python/C# wrappers look like:
  42162. `pdf_lookup_cmap_full(::pdf_cmap *cmap, unsigned int cpt)` => `(int, int out)`
  42163. """
  42164. return _mupdf.pdf_lookup_cmap_full(cmap, cpt, out)
  42165. def pdf_lookup_dest(doc, needle):
  42166. r"""Class-aware wrapper for `::pdf_lookup_dest()`."""
  42167. return _mupdf.pdf_lookup_dest(doc, needle)
  42168. def pdf_lookup_field(form, name):
  42169. r"""Class-aware wrapper for `::pdf_lookup_field()`."""
  42170. return _mupdf.pdf_lookup_field(form, name)
  42171. def pdf_lookup_metadata(doc, key, ptr, size):
  42172. r"""Class-aware wrapper for `::pdf_lookup_metadata()`."""
  42173. return _mupdf.pdf_lookup_metadata(doc, key, ptr, size)
  42174. def pdf_lookup_metadata2(doc, key):
  42175. r"""
  42176. Class-aware wrapper for `::pdf_lookup_metadata2()`.
  42177. C++ alternative to `pdf_lookup_metadata()` that returns a `std::string`
  42178. or calls `fz_throw()` if not found.
  42179. """
  42180. return _mupdf.pdf_lookup_metadata2(doc, key)
  42181. def pdf_lookup_name(doc, which, needle):
  42182. r"""Class-aware wrapper for `::pdf_lookup_name()`."""
  42183. return _mupdf.pdf_lookup_name(doc, which, needle)
  42184. def pdf_lookup_number(root, needle):
  42185. r"""Class-aware wrapper for `::pdf_lookup_number()`."""
  42186. return _mupdf.pdf_lookup_number(root, needle)
  42187. def pdf_lookup_page_loc(doc, needle, parentp, indexp):
  42188. r"""
  42189. Class-aware wrapper for `::pdf_lookup_page_loc()`.
  42190. This function has out-params. Python/C# wrappers look like:
  42191. `pdf_lookup_page_loc(::pdf_document *doc, int needle, ::pdf_obj **parentp)` => `(pdf_obj *, int indexp)`
  42192. """
  42193. return _mupdf.pdf_lookup_page_loc(doc, needle, parentp, indexp)
  42194. def pdf_lookup_page_number(doc, pageobj):
  42195. r"""Class-aware wrapper for `::pdf_lookup_page_number()`."""
  42196. return _mupdf.pdf_lookup_page_number(doc, pageobj)
  42197. def pdf_lookup_page_obj(doc, needle):
  42198. r"""Class-aware wrapper for `::pdf_lookup_page_obj()`."""
  42199. return _mupdf.pdf_lookup_page_obj(doc, needle)
  42200. def pdf_lookup_substitute_font(mono, serif, bold, italic, len):
  42201. r"""
  42202. Class-aware wrapper for `::pdf_lookup_substitute_font()`.
  42203. This function has out-params. Python/C# wrappers look like:
  42204. `pdf_lookup_substitute_font(int mono, int serif, int bold, int italic)` => `(const unsigned char *, int len)`
  42205. """
  42206. return _mupdf.pdf_lookup_substitute_font(mono, serif, bold, italic, len)
  42207. def pdf_map_one_to_many(cmap, one, many, len):
  42208. r"""
  42209. Class-aware wrapper for `::pdf_map_one_to_many()`.
  42210. This function has out-params. Python/C# wrappers look like:
  42211. `pdf_map_one_to_many(::pdf_cmap *cmap, unsigned int one, size_t len)` => int many
  42212. """
  42213. return _mupdf.pdf_map_one_to_many(cmap, one, many, len)
  42214. def pdf_map_range_to_range(cmap, srclo, srchi, dstlo):
  42215. r"""Class-aware wrapper for `::pdf_map_range_to_range()`."""
  42216. return _mupdf.pdf_map_range_to_range(cmap, srclo, srchi, dstlo)
  42217. def pdf_mark_bits_reset(marks):
  42218. r"""Class-aware wrapper for `::pdf_mark_bits_reset()`."""
  42219. return _mupdf.pdf_mark_bits_reset(marks)
  42220. def pdf_mark_bits_set(marks, obj):
  42221. r"""Class-aware wrapper for `::pdf_mark_bits_set()`."""
  42222. return _mupdf.pdf_mark_bits_set(marks, obj)
  42223. def pdf_mark_list_check(list, obj):
  42224. r"""Class-aware wrapper for `::pdf_mark_list_check()`."""
  42225. return _mupdf.pdf_mark_list_check(list, obj)
  42226. def pdf_mark_list_free(list):
  42227. r"""Class-aware wrapper for `::pdf_mark_list_free()`."""
  42228. return _mupdf.pdf_mark_list_free(list)
  42229. def pdf_mark_list_init(list):
  42230. r"""Class-aware wrapper for `::pdf_mark_list_init()`."""
  42231. return _mupdf.pdf_mark_list_init(list)
  42232. def pdf_mark_list_pop(list):
  42233. r"""Class-aware wrapper for `::pdf_mark_list_pop()`."""
  42234. return _mupdf.pdf_mark_list_pop(list)
  42235. def pdf_mark_list_push(list, obj):
  42236. r"""Class-aware wrapper for `::pdf_mark_list_push()`."""
  42237. return _mupdf.pdf_mark_list_push(list, obj)
  42238. def pdf_mark_obj(obj):
  42239. r"""Class-aware wrapper for `::pdf_mark_obj()`."""
  42240. return _mupdf.pdf_mark_obj(obj)
  42241. def pdf_mark_xref(doc):
  42242. r"""Class-aware wrapper for `::pdf_mark_xref()`."""
  42243. return _mupdf.pdf_mark_xref(doc)
  42244. def pdf_metadata(doc):
  42245. r"""Class-aware wrapper for `::pdf_metadata()`."""
  42246. return _mupdf.pdf_metadata(doc)
  42247. def pdf_minimize_document(doc):
  42248. r"""Class-aware wrapper for `::pdf_minimize_document()`."""
  42249. return _mupdf.pdf_minimize_document(doc)
  42250. def pdf_name_eq(a, b):
  42251. r"""Class-aware wrapper for `::pdf_name_eq()`."""
  42252. return _mupdf.pdf_name_eq(a, b)
  42253. def pdf_name_from_intent(intent):
  42254. r"""Class-aware wrapper for `::pdf_name_from_intent()`."""
  42255. return _mupdf.pdf_name_from_intent(intent)
  42256. def pdf_name_from_line_ending(end):
  42257. r"""Class-aware wrapper for `::pdf_name_from_line_ending()`."""
  42258. return _mupdf.pdf_name_from_line_ending(end)
  42259. def pdf_needs_password(doc):
  42260. r"""Class-aware wrapper for `::pdf_needs_password()`."""
  42261. return _mupdf.pdf_needs_password(doc)
  42262. def pdf_new_action_from_link(doc, uri):
  42263. r"""Class-aware wrapper for `::pdf_new_action_from_link()`."""
  42264. return _mupdf.pdf_new_action_from_link(doc, uri)
  42265. def pdf_new_array(doc, initialcap):
  42266. r"""Class-aware wrapper for `::pdf_new_array()`."""
  42267. return _mupdf.pdf_new_array(doc, initialcap)
  42268. def pdf_new_buffer_processor(buffer, ahxencode, newlines):
  42269. r"""Class-aware wrapper for `::pdf_new_buffer_processor()`."""
  42270. return _mupdf.pdf_new_buffer_processor(buffer, ahxencode, newlines)
  42271. def pdf_new_cmap():
  42272. r"""Class-aware wrapper for `::pdf_new_cmap()`."""
  42273. return _mupdf.pdf_new_cmap()
  42274. def pdf_new_color_filter(doc, chain, struct_parents, transform, options, copts):
  42275. r"""Class-aware wrapper for `::pdf_new_color_filter()`."""
  42276. return _mupdf.pdf_new_color_filter(doc, chain, struct_parents, transform, options, copts)
  42277. def pdf_new_date(doc, time):
  42278. r"""Class-aware wrapper for `::pdf_new_date()`."""
  42279. return _mupdf.pdf_new_date(doc, time)
  42280. def pdf_new_dest_from_link(doc, uri, is_remote):
  42281. r"""Class-aware wrapper for `::pdf_new_dest_from_link()`."""
  42282. return _mupdf.pdf_new_dest_from_link(doc, uri, is_remote)
  42283. def pdf_new_dict(doc, initialcap):
  42284. r"""Class-aware wrapper for `::pdf_new_dict()`."""
  42285. return _mupdf.pdf_new_dict(doc, initialcap)
  42286. def pdf_new_display_list_from_annot(annot):
  42287. r"""Class-aware wrapper for `::pdf_new_display_list_from_annot()`."""
  42288. return _mupdf.pdf_new_display_list_from_annot(annot)
  42289. def pdf_new_graft_map(dst):
  42290. r"""Class-aware wrapper for `::pdf_new_graft_map()`."""
  42291. return _mupdf.pdf_new_graft_map(dst)
  42292. def pdf_new_identity_cmap(wmode, bytes):
  42293. r"""Class-aware wrapper for `::pdf_new_identity_cmap()`."""
  42294. return _mupdf.pdf_new_identity_cmap(wmode, bytes)
  42295. def pdf_new_indirect(doc, num, gen):
  42296. r"""Class-aware wrapper for `::pdf_new_indirect()`."""
  42297. return _mupdf.pdf_new_indirect(doc, num, gen)
  42298. def pdf_new_int(i):
  42299. r"""Class-aware wrapper for `::pdf_new_int()`."""
  42300. return _mupdf.pdf_new_int(i)
  42301. def pdf_new_link(page, rect, uri, obj):
  42302. r"""Class-aware wrapper for `::pdf_new_link()`."""
  42303. return _mupdf.pdf_new_link(page, rect, uri, obj)
  42304. def pdf_new_matrix(doc, mtx):
  42305. r"""Class-aware wrapper for `::pdf_new_matrix()`."""
  42306. return _mupdf.pdf_new_matrix(doc, mtx)
  42307. def pdf_new_name(str):
  42308. r"""Class-aware wrapper for `::pdf_new_name()`."""
  42309. return _mupdf.pdf_new_name(str)
  42310. def pdf_new_output_processor(out, ahxencode, newlines):
  42311. r"""Class-aware wrapper for `::pdf_new_output_processor()`."""
  42312. return _mupdf.pdf_new_output_processor(out, ahxencode, newlines)
  42313. def pdf_new_pdf_device(doc, topctm, resources, contents):
  42314. r"""Class-aware wrapper for `::pdf_new_pdf_device()`."""
  42315. return _mupdf.pdf_new_pdf_device(doc, topctm, resources, contents)
  42316. def pdf_new_pixmap_from_annot(annot, ctm, cs, seps, alpha):
  42317. r"""Class-aware wrapper for `::pdf_new_pixmap_from_annot()`."""
  42318. return _mupdf.pdf_new_pixmap_from_annot(annot, ctm, cs, seps, alpha)
  42319. def pdf_new_pixmap_from_page_contents_with_separations_and_usage(page, ctm, cs, seps, alpha, usage, box):
  42320. r"""Class-aware wrapper for `::pdf_new_pixmap_from_page_contents_with_separations_and_usage()`."""
  42321. return _mupdf.pdf_new_pixmap_from_page_contents_with_separations_and_usage(page, ctm, cs, seps, alpha, usage, box)
  42322. def pdf_new_pixmap_from_page_contents_with_usage(page, ctm, cs, alpha, usage, box):
  42323. r"""Class-aware wrapper for `::pdf_new_pixmap_from_page_contents_with_usage()`."""
  42324. return _mupdf.pdf_new_pixmap_from_page_contents_with_usage(page, ctm, cs, alpha, usage, box)
  42325. def pdf_new_pixmap_from_page_with_separations_and_usage(page, ctm, cs, seps, alpha, usage, box):
  42326. r"""Class-aware wrapper for `::pdf_new_pixmap_from_page_with_separations_and_usage()`."""
  42327. return _mupdf.pdf_new_pixmap_from_page_with_separations_and_usage(page, ctm, cs, seps, alpha, usage, box)
  42328. def pdf_new_pixmap_from_page_with_usage(page, ctm, cs, alpha, usage, box):
  42329. r"""Class-aware wrapper for `::pdf_new_pixmap_from_page_with_usage()`."""
  42330. return _mupdf.pdf_new_pixmap_from_page_with_usage(page, ctm, cs, alpha, usage, box)
  42331. def pdf_new_point(doc, point):
  42332. r"""Class-aware wrapper for `::pdf_new_point()`."""
  42333. return _mupdf.pdf_new_point(doc, point)
  42334. def pdf_new_processor(size):
  42335. r"""Class-aware wrapper for `::pdf_new_processor()`."""
  42336. return _mupdf.pdf_new_processor(size)
  42337. def pdf_new_real(f):
  42338. r"""Class-aware wrapper for `::pdf_new_real()`."""
  42339. return _mupdf.pdf_new_real(f)
  42340. def pdf_new_rect(doc, rect):
  42341. r"""Class-aware wrapper for `::pdf_new_rect()`."""
  42342. return _mupdf.pdf_new_rect(doc, rect)
  42343. def pdf_new_run_processor(doc, dev, ctm, struct_parent, usage, gstate, default_cs, cookie, fill_gstate, stroke_gstate):
  42344. r"""Class-aware wrapper for `::pdf_new_run_processor()`."""
  42345. return _mupdf.pdf_new_run_processor(doc, dev, ctm, struct_parent, usage, gstate, default_cs, cookie, fill_gstate, stroke_gstate)
  42346. def pdf_new_sanitize_filter(doc, chain, struct_parents, transform, options, sopts):
  42347. r"""Class-aware wrapper for `::pdf_new_sanitize_filter()`."""
  42348. return _mupdf.pdf_new_sanitize_filter(doc, chain, struct_parents, transform, options, sopts)
  42349. def pdf_new_string(str, len):
  42350. r"""Class-aware wrapper for `::pdf_new_string()`."""
  42351. return _mupdf.pdf_new_string(str, len)
  42352. def pdf_new_text_string(s):
  42353. r"""Class-aware wrapper for `::pdf_new_text_string()`."""
  42354. return _mupdf.pdf_new_text_string(s)
  42355. def pdf_new_uri_from_explicit_dest(dest):
  42356. r"""Class-aware wrapper for `::pdf_new_uri_from_explicit_dest()`."""
  42357. return _mupdf.pdf_new_uri_from_explicit_dest(dest)
  42358. def pdf_new_uri_from_path_and_explicit_dest(path, dest):
  42359. r"""Class-aware wrapper for `::pdf_new_uri_from_path_and_explicit_dest()`."""
  42360. return _mupdf.pdf_new_uri_from_path_and_explicit_dest(path, dest)
  42361. def pdf_new_uri_from_path_and_named_dest(path, name):
  42362. r"""Class-aware wrapper for `::pdf_new_uri_from_path_and_named_dest()`."""
  42363. return _mupdf.pdf_new_uri_from_path_and_named_dest(path, name)
  42364. def pdf_new_utf8_from_pdf_stream_obj(src):
  42365. r"""Class-aware wrapper for `::pdf_new_utf8_from_pdf_stream_obj()`."""
  42366. return _mupdf.pdf_new_utf8_from_pdf_stream_obj(src)
  42367. def pdf_new_utf8_from_pdf_string(srcptr, srclen):
  42368. r"""Class-aware wrapper for `::pdf_new_utf8_from_pdf_string()`."""
  42369. return _mupdf.pdf_new_utf8_from_pdf_string(srcptr, srclen)
  42370. def pdf_new_utf8_from_pdf_string_obj(src):
  42371. r"""Class-aware wrapper for `::pdf_new_utf8_from_pdf_string_obj()`."""
  42372. return _mupdf.pdf_new_utf8_from_pdf_string_obj(src)
  42373. def pdf_new_xobject(doc, bbox, matrix, res, buffer):
  42374. r"""Class-aware wrapper for `::pdf_new_xobject()`."""
  42375. return _mupdf.pdf_new_xobject(doc, bbox, matrix, res, buffer)
  42376. def pdf_next_annot(annot):
  42377. r"""Class-aware wrapper for `::pdf_next_annot()`."""
  42378. return _mupdf.pdf_next_annot(annot)
  42379. def pdf_next_widget(previous):
  42380. r"""Class-aware wrapper for `::pdf_next_widget()`."""
  42381. return _mupdf.pdf_next_widget(previous)
  42382. def pdf_nuke_annots(page):
  42383. r"""Class-aware wrapper for `::pdf_nuke_annots()`."""
  42384. return _mupdf.pdf_nuke_annots(page)
  42385. def pdf_nuke_links(page):
  42386. r"""Class-aware wrapper for `::pdf_nuke_links()`."""
  42387. return _mupdf.pdf_nuke_links(page)
  42388. def pdf_nuke_page(page):
  42389. r"""Class-aware wrapper for `::pdf_nuke_page()`."""
  42390. return _mupdf.pdf_nuke_page(page)
  42391. def pdf_obj_is_dirty(obj):
  42392. r"""Class-aware wrapper for `::pdf_obj_is_dirty()`."""
  42393. return _mupdf.pdf_obj_is_dirty(obj)
  42394. def pdf_obj_is_incremental(obj):
  42395. r"""Class-aware wrapper for `::pdf_obj_is_incremental()`."""
  42396. return _mupdf.pdf_obj_is_incremental(obj)
  42397. def pdf_obj_marked(obj):
  42398. r"""Class-aware wrapper for `::pdf_obj_marked()`."""
  42399. return _mupdf.pdf_obj_marked(obj)
  42400. def pdf_obj_memo(obj, bit, memo):
  42401. r"""
  42402. Class-aware wrapper for `::pdf_obj_memo()`.
  42403. This function has out-params. Python/C# wrappers look like:
  42404. `pdf_obj_memo(::pdf_obj *obj, int bit)` => `(int, int memo)`
  42405. """
  42406. return _mupdf.pdf_obj_memo(obj, bit, memo)
  42407. def pdf_obj_num_is_stream(doc, num):
  42408. r"""Class-aware wrapper for `::pdf_obj_num_is_stream()`."""
  42409. return _mupdf.pdf_obj_num_is_stream(doc, num)
  42410. def pdf_obj_parent_num(obj):
  42411. r"""Class-aware wrapper for `::pdf_obj_parent_num()`."""
  42412. return _mupdf.pdf_obj_parent_num(obj)
  42413. def pdf_obj_refs(ref):
  42414. r"""Class-aware wrapper for `::pdf_obj_refs()`."""
  42415. return _mupdf.pdf_obj_refs(ref)
  42416. def pdf_objcmp(a, b):
  42417. r"""Class-aware wrapper for `::pdf_objcmp()`."""
  42418. return _mupdf.pdf_objcmp(a, b)
  42419. def pdf_objcmp_deep(a, b):
  42420. r"""Class-aware wrapper for `::pdf_objcmp_deep()`."""
  42421. return _mupdf.pdf_objcmp_deep(a, b)
  42422. def pdf_objcmp_resolve(a, b):
  42423. r"""Class-aware wrapper for `::pdf_objcmp_resolve()`."""
  42424. return _mupdf.pdf_objcmp_resolve(a, b)
  42425. def pdf_object_exists(doc, num):
  42426. r"""Class-aware wrapper for `::pdf_object_exists()`."""
  42427. return _mupdf.pdf_object_exists(doc, num)
  42428. def pdf_open_contents_stream(doc, obj):
  42429. r"""Class-aware wrapper for `::pdf_open_contents_stream()`."""
  42430. return _mupdf.pdf_open_contents_stream(doc, obj)
  42431. def pdf_open_crypt(chain, crypt, num, gen):
  42432. r"""Class-aware wrapper for `::pdf_open_crypt()`."""
  42433. return _mupdf.pdf_open_crypt(chain, crypt, num, gen)
  42434. def pdf_open_crypt_with_filter(chain, crypt, name, num, gen):
  42435. r"""Class-aware wrapper for `::pdf_open_crypt_with_filter()`."""
  42436. return _mupdf.pdf_open_crypt_with_filter(chain, crypt, name, num, gen)
  42437. def pdf_open_document(filename):
  42438. r"""Class-aware wrapper for `::pdf_open_document()`."""
  42439. return _mupdf.pdf_open_document(filename)
  42440. def pdf_open_document_with_stream(file):
  42441. r"""Class-aware wrapper for `::pdf_open_document_with_stream()`."""
  42442. return _mupdf.pdf_open_document_with_stream(file)
  42443. def pdf_open_inline_stream(doc, stmobj, length, chain, params):
  42444. r"""Class-aware wrapper for `::pdf_open_inline_stream()`."""
  42445. return _mupdf.pdf_open_inline_stream(doc, stmobj, length, chain, params)
  42446. def pdf_open_raw_stream(ref):
  42447. r"""Class-aware wrapper for `::pdf_open_raw_stream()`."""
  42448. return _mupdf.pdf_open_raw_stream(ref)
  42449. def pdf_open_raw_stream_number(doc, num):
  42450. r"""Class-aware wrapper for `::pdf_open_raw_stream_number()`."""
  42451. return _mupdf.pdf_open_raw_stream_number(doc, num)
  42452. def pdf_open_stream(ref):
  42453. r"""Class-aware wrapper for `::pdf_open_stream()`."""
  42454. return _mupdf.pdf_open_stream(ref)
  42455. def pdf_open_stream_number(doc, num):
  42456. r"""Class-aware wrapper for `::pdf_open_stream_number()`."""
  42457. return _mupdf.pdf_open_stream_number(doc, num)
  42458. def pdf_open_stream_with_offset(doc, num, dict, stm_ofs):
  42459. r"""Class-aware wrapper for `::pdf_open_stream_with_offset()`."""
  42460. return _mupdf.pdf_open_stream_with_offset(doc, num, dict, stm_ofs)
  42461. def pdf_page_associated_file(page, idx):
  42462. r"""Class-aware wrapper for `::pdf_page_associated_file()`."""
  42463. return _mupdf.pdf_page_associated_file(page, idx)
  42464. def pdf_page_contents(page):
  42465. r"""Class-aware wrapper for `::pdf_page_contents()`."""
  42466. return _mupdf.pdf_page_contents(page)
  42467. def pdf_page_event_close(page):
  42468. r"""Class-aware wrapper for `::pdf_page_event_close()`."""
  42469. return _mupdf.pdf_page_event_close(page)
  42470. def pdf_page_event_open(page):
  42471. r"""Class-aware wrapper for `::pdf_page_event_open()`."""
  42472. return _mupdf.pdf_page_event_open(page)
  42473. def pdf_page_from_fz_page(ptr):
  42474. r"""Class-aware wrapper for `::pdf_page_from_fz_page()`."""
  42475. return _mupdf.pdf_page_from_fz_page(ptr)
  42476. def pdf_page_group(page):
  42477. r"""Class-aware wrapper for `::pdf_page_group()`."""
  42478. return _mupdf.pdf_page_group(page)
  42479. def pdf_page_has_transparency(page):
  42480. r"""Class-aware wrapper for `::pdf_page_has_transparency()`."""
  42481. return _mupdf.pdf_page_has_transparency(page)
  42482. def pdf_page_label(doc, page, buf, size):
  42483. r"""Class-aware wrapper for `::pdf_page_label()`."""
  42484. return _mupdf.pdf_page_label(doc, page, buf, size)
  42485. def pdf_page_label_imp(doc, chapter, page, buf, size):
  42486. r"""Class-aware wrapper for `::pdf_page_label_imp()`."""
  42487. return _mupdf.pdf_page_label_imp(doc, chapter, page, buf, size)
  42488. def pdf_page_obj_transform(pageobj, outbox, outctm):
  42489. r"""Class-aware wrapper for `::pdf_page_obj_transform()`."""
  42490. return _mupdf.pdf_page_obj_transform(pageobj, outbox, outctm)
  42491. def pdf_page_obj_transform_box(pageobj, outbox, out, box):
  42492. r"""Class-aware wrapper for `::pdf_page_obj_transform_box()`."""
  42493. return _mupdf.pdf_page_obj_transform_box(pageobj, outbox, out, box)
  42494. def pdf_page_presentation(page, transition, duration):
  42495. r"""
  42496. Class-aware wrapper for `::pdf_page_presentation()`.
  42497. This function has out-params. Python/C# wrappers look like:
  42498. `pdf_page_presentation(::pdf_page *page, ::fz_transition *transition)` => `(fz_transition *, float duration)`
  42499. """
  42500. return _mupdf.pdf_page_presentation(page, transition, duration)
  42501. def pdf_page_resources(page):
  42502. r"""Class-aware wrapper for `::pdf_page_resources()`."""
  42503. return _mupdf.pdf_page_resources(page)
  42504. def pdf_page_separations(page):
  42505. r"""Class-aware wrapper for `::pdf_page_separations()`."""
  42506. return _mupdf.pdf_page_separations(page)
  42507. def pdf_page_transform(page, mediabox, ctm):
  42508. r"""Class-aware wrapper for `::pdf_page_transform()`."""
  42509. return _mupdf.pdf_page_transform(page, mediabox, ctm)
  42510. def pdf_page_transform_box(page, mediabox, ctm, box):
  42511. r"""Class-aware wrapper for `::pdf_page_transform_box()`."""
  42512. return _mupdf.pdf_page_transform_box(page, mediabox, ctm, box)
  42513. def pdf_page_write(doc, mediabox, presources, pcontents):
  42514. r"""
  42515. Class-aware wrapper for `::pdf_page_write()`.
  42516. This function has out-params. Python/C# wrappers look like:
  42517. `pdf_page_write(::pdf_document *doc, ::fz_rect mediabox, ::pdf_obj **presources, ::fz_buffer **pcontents)` => `(fz_device *)`
  42518. """
  42519. return _mupdf.pdf_page_write(doc, mediabox, presources, pcontents)
  42520. def pdf_parse_array(doc, f, buf):
  42521. r"""Class-aware wrapper for `::pdf_parse_array()`."""
  42522. return _mupdf.pdf_parse_array(doc, f, buf)
  42523. def pdf_parse_date(s):
  42524. r"""Class-aware wrapper for `::pdf_parse_date()`."""
  42525. return _mupdf.pdf_parse_date(s)
  42526. def pdf_parse_default_appearance(da, font, size, n, color):
  42527. r"""
  42528. Class-aware wrapper for `::pdf_parse_default_appearance()`.
  42529. This function has out-params. Python/C# wrappers look like:
  42530. `pdf_parse_default_appearance(const char *da, float color[4])` => `(const char *font, float size, int n)`
  42531. """
  42532. return _mupdf.pdf_parse_default_appearance(da, font, size, n, color)
  42533. def pdf_parse_default_appearance_unmapped(da, font_name, font_name_len, size, n, color):
  42534. r"""
  42535. Class-aware wrapper for `::pdf_parse_default_appearance_unmapped()`.
  42536. This function has out-params. Python/C# wrappers look like:
  42537. `pdf_parse_default_appearance_unmapped(const char *da, char *font_name, int font_name_len, float color[4])` => `(float size, int n)`
  42538. """
  42539. return _mupdf.pdf_parse_default_appearance_unmapped(da, font_name, font_name_len, size, n, color)
  42540. def pdf_parse_dict(doc, f, buf):
  42541. r"""Class-aware wrapper for `::pdf_parse_dict()`."""
  42542. return _mupdf.pdf_parse_dict(doc, f, buf)
  42543. def pdf_parse_ind_obj(doc, f, num, gen, stm_ofs, try_repair):
  42544. r"""
  42545. Class-aware wrapper for `::pdf_parse_ind_obj()`.
  42546. This function has out-params. Python/C# wrappers look like:
  42547. `pdf_parse_ind_obj(::pdf_document *doc, ::fz_stream *f)` => `(pdf_obj *, int num, int gen, int64_t stm_ofs, int try_repair)`
  42548. """
  42549. return _mupdf.pdf_parse_ind_obj(doc, f, num, gen, stm_ofs, try_repair)
  42550. def pdf_parse_journal_obj(doc, stm, onum, ostm, newobj):
  42551. r"""
  42552. Class-aware wrapper for `::pdf_parse_journal_obj()`.
  42553. This function has out-params. Python/C# wrappers look like:
  42554. `pdf_parse_journal_obj(::pdf_document *doc, ::fz_stream *stm, ::fz_buffer **ostm)` => `(pdf_obj *, int onum, int newobj)`
  42555. """
  42556. return _mupdf.pdf_parse_journal_obj(doc, stm, onum, ostm, newobj)
  42557. def pdf_parse_stm_obj(doc, f, buf):
  42558. r"""Class-aware wrapper for `::pdf_parse_stm_obj()`."""
  42559. return _mupdf.pdf_parse_stm_obj(doc, f, buf)
  42560. def pdf_parse_write_options(opts, args):
  42561. r"""Class-aware wrapper for `::pdf_parse_write_options()`."""
  42562. return _mupdf.pdf_parse_write_options(opts, args)
  42563. def pdf_pin_document(obj):
  42564. r"""Class-aware wrapper for `::pdf_pin_document()`."""
  42565. return _mupdf.pdf_pin_document(obj)
  42566. def pdf_preview_signature_as_display_list(w, h, lang, signer, appearance_flags, graphic, reason, location):
  42567. r"""Class-aware wrapper for `::pdf_preview_signature_as_display_list()`."""
  42568. return _mupdf.pdf_preview_signature_as_display_list(w, h, lang, signer, appearance_flags, graphic, reason, location)
  42569. def pdf_preview_signature_as_pixmap(w, h, lang, signer, appearance_flags, graphic, reason, location):
  42570. r"""Class-aware wrapper for `::pdf_preview_signature_as_pixmap()`."""
  42571. return _mupdf.pdf_preview_signature_as_pixmap(w, h, lang, signer, appearance_flags, graphic, reason, location)
  42572. def pdf_print_crypt(out, crypt):
  42573. r"""Class-aware wrapper for `::pdf_print_crypt()`."""
  42574. return _mupdf.pdf_print_crypt(out, crypt)
  42575. def pdf_print_default_appearance(buf, nbuf, font, size, n, color):
  42576. r"""Class-aware wrapper for `::pdf_print_default_appearance()`."""
  42577. return _mupdf.pdf_print_default_appearance(buf, nbuf, font, size, n, color)
  42578. def pdf_print_encrypted_obj(out, obj, tight, ascii, crypt, num, gen, sep):
  42579. r"""
  42580. Class-aware wrapper for `::pdf_print_encrypted_obj()`.
  42581. This function has out-params. Python/C# wrappers look like:
  42582. `pdf_print_encrypted_obj(::fz_output *out, ::pdf_obj *obj, int tight, int ascii, ::pdf_crypt *crypt, int num, int gen)` => int sep
  42583. """
  42584. return _mupdf.pdf_print_encrypted_obj(out, obj, tight, ascii, crypt, num, gen, sep)
  42585. def pdf_print_font(out, fontdesc):
  42586. r"""Class-aware wrapper for `::pdf_print_font()`."""
  42587. return _mupdf.pdf_print_font(out, fontdesc)
  42588. def pdf_print_obj(out, obj, tight, ascii):
  42589. r"""Class-aware wrapper for `::pdf_print_obj()`."""
  42590. return _mupdf.pdf_print_obj(out, obj, tight, ascii)
  42591. def pdf_process_annot(proc, annot, cookie):
  42592. r"""Class-aware wrapper for `::pdf_process_annot()`."""
  42593. return _mupdf.pdf_process_annot(proc, annot, cookie)
  42594. def pdf_process_contents(proc, doc, res, stm, cookie, out_res):
  42595. r"""
  42596. Class-aware wrapper for `::pdf_process_contents()`.
  42597. This function has out-params. Python/C# wrappers look like:
  42598. `pdf_process_contents(::pdf_processor *proc, ::pdf_document *doc, ::pdf_obj *res, ::pdf_obj *stm, ::fz_cookie *cookie, ::pdf_obj **out_res)` =>
  42599. """
  42600. return _mupdf.pdf_process_contents(proc, doc, res, stm, cookie, out_res)
  42601. def pdf_process_glyph(proc, doc, resources, contents):
  42602. r"""Class-aware wrapper for `::pdf_process_glyph()`."""
  42603. return _mupdf.pdf_process_glyph(proc, doc, resources, contents)
  42604. def pdf_process_raw_contents(proc, doc, rdb, stmobj, cookie):
  42605. r"""Class-aware wrapper for `::pdf_process_raw_contents()`."""
  42606. return _mupdf.pdf_process_raw_contents(proc, doc, rdb, stmobj, cookie)
  42607. def pdf_processor_pop_resources(proc):
  42608. r"""Class-aware wrapper for `::pdf_processor_pop_resources()`."""
  42609. return _mupdf.pdf_processor_pop_resources(proc)
  42610. def pdf_processor_push_resources(proc, res):
  42611. r"""Class-aware wrapper for `::pdf_processor_push_resources()`."""
  42612. return _mupdf.pdf_processor_push_resources(proc, res)
  42613. def pdf_progressive_advance(doc, pagenum):
  42614. r"""Class-aware wrapper for `::pdf_progressive_advance()`."""
  42615. return _mupdf.pdf_progressive_advance(doc, pagenum)
  42616. def pdf_purge_local_resources(doc):
  42617. r"""Class-aware wrapper for `::pdf_purge_local_resources()`."""
  42618. return _mupdf.pdf_purge_local_resources(doc)
  42619. def pdf_purge_locals_from_store(doc):
  42620. r"""Class-aware wrapper for `::pdf_purge_locals_from_store()`."""
  42621. return _mupdf.pdf_purge_locals_from_store(doc)
  42622. def pdf_purge_object_from_store(doc, num):
  42623. r"""Class-aware wrapper for `::pdf_purge_object_from_store()`."""
  42624. return _mupdf.pdf_purge_object_from_store(doc, num)
  42625. def pdf_read_journal(doc, stm):
  42626. r"""Class-aware wrapper for `::pdf_read_journal()`."""
  42627. return _mupdf.pdf_read_journal(doc, stm)
  42628. def pdf_rearrange_pages(doc, count, pages, structure):
  42629. r"""Class-aware wrapper for `::pdf_rearrange_pages()`."""
  42630. return _mupdf.pdf_rearrange_pages(doc, count, pages, structure)
  42631. def pdf_rearrange_pages2(doc, pages, structure):
  42632. r"""Class-aware wrapper for `::pdf_rearrange_pages2()`. Swig-friendly wrapper for pdf_rearrange_pages()."""
  42633. return _mupdf.pdf_rearrange_pages2(doc, pages, structure)
  42634. def pdf_recolor_page(doc, pagenum, opts):
  42635. r"""Class-aware wrapper for `::pdf_recolor_page()`."""
  42636. return _mupdf.pdf_recolor_page(doc, pagenum, opts)
  42637. def pdf_recolor_shade(shade, reshade, opaque):
  42638. r"""
  42639. Class-aware wrapper for `::pdf_recolor_shade()`.
  42640. Recolor a shade.
  42641. """
  42642. return _mupdf.pdf_recolor_shade(shade, reshade, opaque)
  42643. def pdf_redact_page(doc, page, opts):
  42644. r"""Class-aware wrapper for `::pdf_redact_page()`."""
  42645. return _mupdf.pdf_redact_page(doc, page, opts)
  42646. def pdf_redo(doc):
  42647. r"""Class-aware wrapper for `::pdf_redo()`."""
  42648. return _mupdf.pdf_redo(doc)
  42649. def pdf_remove_item(drop, key):
  42650. r"""Class-aware wrapper for `::pdf_remove_item()`."""
  42651. return _mupdf.pdf_remove_item(drop, key)
  42652. def pdf_remove_output_intents(doc):
  42653. r"""Class-aware wrapper for `::pdf_remove_output_intents()`."""
  42654. return _mupdf.pdf_remove_output_intents(doc)
  42655. def pdf_repair_obj(doc, buf, stmofsp, stmlenp, encrypt, id, page, tmpofs, root):
  42656. r"""
  42657. Class-aware wrapper for `::pdf_repair_obj()`.
  42658. This function has out-params. Python/C# wrappers look like:
  42659. `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)`
  42660. """
  42661. return _mupdf.pdf_repair_obj(doc, buf, stmofsp, stmlenp, encrypt, id, page, tmpofs, root)
  42662. def pdf_repair_xref(doc):
  42663. r"""Class-aware wrapper for `::pdf_repair_xref()`."""
  42664. return _mupdf.pdf_repair_xref(doc)
  42665. def pdf_replace_xref(doc, entries, n):
  42666. r"""Class-aware wrapper for `::pdf_replace_xref()`."""
  42667. return _mupdf.pdf_replace_xref(doc, entries, n)
  42668. def pdf_reset_form(doc, fields, exclude):
  42669. r"""Class-aware wrapper for `::pdf_reset_form()`."""
  42670. return _mupdf.pdf_reset_form(doc, fields, exclude)
  42671. def pdf_reset_processor(proc):
  42672. r"""Class-aware wrapper for `::pdf_reset_processor()`."""
  42673. return _mupdf.pdf_reset_processor(proc)
  42674. def pdf_resolve_indirect(ref):
  42675. r"""
  42676. Class-aware wrapper for `::pdf_resolve_indirect()`.
  42677. Resolve an indirect object (or chain of objects).
  42678. This can cause xref reorganisations (solidifications etc) due to
  42679. repairs, so all held pdf_xref_entries should be considered
  42680. invalid after this call (other than the returned one).
  42681. """
  42682. return _mupdf.pdf_resolve_indirect(ref)
  42683. def pdf_resolve_indirect_chain(ref):
  42684. r"""Class-aware wrapper for `::pdf_resolve_indirect_chain()`."""
  42685. return _mupdf.pdf_resolve_indirect_chain(ref)
  42686. def pdf_resolve_link(doc, uri, xp, yp):
  42687. r"""
  42688. Class-aware wrapper for `::pdf_resolve_link()`.
  42689. This function has out-params. Python/C# wrappers look like:
  42690. `pdf_resolve_link(::pdf_document *doc, const char *uri)` => `(int, float xp, float yp)`
  42691. """
  42692. return _mupdf.pdf_resolve_link(doc, uri, xp, yp)
  42693. def pdf_rewrite_images(doc, opts):
  42694. r"""Class-aware wrapper for `::pdf_rewrite_images()`."""
  42695. return _mupdf.pdf_rewrite_images(doc, opts)
  42696. def pdf_run_annot(annot, dev, ctm, cookie):
  42697. r"""Class-aware wrapper for `::pdf_run_annot()`."""
  42698. return _mupdf.pdf_run_annot(annot, dev, ctm, cookie)
  42699. def pdf_run_document_structure(doc, dev, cookie):
  42700. r"""Class-aware wrapper for `::pdf_run_document_structure()`."""
  42701. return _mupdf.pdf_run_document_structure(doc, dev, cookie)
  42702. def pdf_run_glyph(doc, resources, contents, dev, ctm, gstate, default_cs, fill_gstate, stroke_gstate):
  42703. r"""Class-aware wrapper for `::pdf_run_glyph()`."""
  42704. return _mupdf.pdf_run_glyph(doc, resources, contents, dev, ctm, gstate, default_cs, fill_gstate, stroke_gstate)
  42705. def pdf_run_page(page, dev, ctm, cookie):
  42706. r"""Class-aware wrapper for `::pdf_run_page()`."""
  42707. return _mupdf.pdf_run_page(page, dev, ctm, cookie)
  42708. def pdf_run_page_annots(page, dev, ctm, cookie):
  42709. r"""Class-aware wrapper for `::pdf_run_page_annots()`."""
  42710. return _mupdf.pdf_run_page_annots(page, dev, ctm, cookie)
  42711. def pdf_run_page_annots_with_usage(page, dev, ctm, usage, cookie):
  42712. r"""Class-aware wrapper for `::pdf_run_page_annots_with_usage()`."""
  42713. return _mupdf.pdf_run_page_annots_with_usage(page, dev, ctm, usage, cookie)
  42714. def pdf_run_page_contents(page, dev, ctm, cookie):
  42715. r"""Class-aware wrapper for `::pdf_run_page_contents()`."""
  42716. return _mupdf.pdf_run_page_contents(page, dev, ctm, cookie)
  42717. def pdf_run_page_contents_with_usage(page, dev, ctm, usage, cookie):
  42718. r"""Class-aware wrapper for `::pdf_run_page_contents_with_usage()`."""
  42719. return _mupdf.pdf_run_page_contents_with_usage(page, dev, ctm, usage, cookie)
  42720. def pdf_run_page_widgets(page, dev, ctm, cookie):
  42721. r"""Class-aware wrapper for `::pdf_run_page_widgets()`."""
  42722. return _mupdf.pdf_run_page_widgets(page, dev, ctm, cookie)
  42723. def pdf_run_page_widgets_with_usage(page, dev, ctm, usage, cookie):
  42724. r"""Class-aware wrapper for `::pdf_run_page_widgets_with_usage()`."""
  42725. return _mupdf.pdf_run_page_widgets_with_usage(page, dev, ctm, usage, cookie)
  42726. def pdf_run_page_with_usage(page, dev, ctm, usage, cookie):
  42727. r"""Class-aware wrapper for `::pdf_run_page_with_usage()`."""
  42728. return _mupdf.pdf_run_page_with_usage(page, dev, ctm, usage, cookie)
  42729. def pdf_sample_shade_function(samples, n, funcs, func, t0, t1):
  42730. r"""
  42731. Class-aware wrapper for `::pdf_sample_shade_function()`.
  42732. This function has out-params. Python/C# wrappers look like:
  42733. `pdf_sample_shade_function(int n, int funcs, ::pdf_function **func, float t0, float t1)` => `(float samples)`
  42734. """
  42735. return _mupdf.pdf_sample_shade_function(samples, n, funcs, func, t0, t1)
  42736. def pdf_save_document(doc, filename, opts):
  42737. r"""Class-aware wrapper for `::pdf_save_document()`."""
  42738. return _mupdf.pdf_save_document(doc, filename, opts)
  42739. def pdf_save_journal(doc, filename):
  42740. r"""Class-aware wrapper for `::pdf_save_journal()`."""
  42741. return _mupdf.pdf_save_journal(doc, filename)
  42742. def pdf_save_snapshot(doc, filename):
  42743. r"""Class-aware wrapper for `::pdf_save_snapshot()`."""
  42744. return _mupdf.pdf_save_snapshot(doc, filename)
  42745. def pdf_select_layer_config(doc, config_num):
  42746. r"""Class-aware wrapper for `::pdf_select_layer_config()`."""
  42747. return _mupdf.pdf_select_layer_config(doc, config_num)
  42748. def pdf_select_layer_config_ui(doc, ui):
  42749. r"""Class-aware wrapper for `::pdf_select_layer_config_ui()`."""
  42750. return _mupdf.pdf_select_layer_config_ui(doc, ui)
  42751. def pdf_serialise_journal(doc, out):
  42752. r"""Class-aware wrapper for `::pdf_serialise_journal()`."""
  42753. return _mupdf.pdf_serialise_journal(doc, out)
  42754. def pdf_set_annot_active(annot, active):
  42755. r"""Class-aware wrapper for `::pdf_set_annot_active()`."""
  42756. return _mupdf.pdf_set_annot_active(annot, active)
  42757. def pdf_set_annot_appearance(annot, appearance, state, ctm, bbox, res, contents):
  42758. r"""Class-aware wrapper for `::pdf_set_annot_appearance()`."""
  42759. return _mupdf.pdf_set_annot_appearance(annot, appearance, state, ctm, bbox, res, contents)
  42760. def pdf_set_annot_appearance_from_display_list(annot, appearance, state, ctm, list):
  42761. r"""Class-aware wrapper for `::pdf_set_annot_appearance_from_display_list()`."""
  42762. return _mupdf.pdf_set_annot_appearance_from_display_list(annot, appearance, state, ctm, list)
  42763. def pdf_set_annot_author(annot, author):
  42764. r"""Class-aware wrapper for `::pdf_set_annot_author()`."""
  42765. return _mupdf.pdf_set_annot_author(annot, author)
  42766. def pdf_set_annot_border(annot, width):
  42767. r"""Class-aware wrapper for `::pdf_set_annot_border()`."""
  42768. return _mupdf.pdf_set_annot_border(annot, width)
  42769. def pdf_set_annot_border_effect(annot, effect):
  42770. r"""Class-aware wrapper for `::pdf_set_annot_border_effect()`."""
  42771. return _mupdf.pdf_set_annot_border_effect(annot, effect)
  42772. def pdf_set_annot_border_effect_intensity(annot, intensity):
  42773. r"""Class-aware wrapper for `::pdf_set_annot_border_effect_intensity()`."""
  42774. return _mupdf.pdf_set_annot_border_effect_intensity(annot, intensity)
  42775. def pdf_set_annot_border_style(annot, style):
  42776. r"""Class-aware wrapper for `::pdf_set_annot_border_style()`."""
  42777. return _mupdf.pdf_set_annot_border_style(annot, style)
  42778. def pdf_set_annot_border_width(annot, width):
  42779. r"""Class-aware wrapper for `::pdf_set_annot_border_width()`."""
  42780. return _mupdf.pdf_set_annot_border_width(annot, width)
  42781. def pdf_set_annot_callout_line(annot, callout, n):
  42782. r"""Class-aware wrapper for `::pdf_set_annot_callout_line()`."""
  42783. return _mupdf.pdf_set_annot_callout_line(annot, callout, n)
  42784. def pdf_set_annot_callout_line2(annot, callout):
  42785. r"""Class-aware wrapper for `::pdf_set_annot_callout_line2()`. SWIG-friendly wrapper for pdf_set_annot_callout_line()."""
  42786. return _mupdf.pdf_set_annot_callout_line2(annot, callout)
  42787. def pdf_set_annot_callout_point(annot, p):
  42788. r"""Class-aware wrapper for `::pdf_set_annot_callout_point()`."""
  42789. return _mupdf.pdf_set_annot_callout_point(annot, p)
  42790. def pdf_set_annot_callout_style(annot, style):
  42791. r"""Class-aware wrapper for `::pdf_set_annot_callout_style()`."""
  42792. return _mupdf.pdf_set_annot_callout_style(annot, style)
  42793. def pdf_set_annot_color(annot, n, color):
  42794. r"""Class-aware wrapper for `::pdf_set_annot_color()`."""
  42795. return _mupdf.pdf_set_annot_color(annot, n, color)
  42796. def pdf_set_annot_contents(annot, text):
  42797. r"""Class-aware wrapper for `::pdf_set_annot_contents()`."""
  42798. return _mupdf.pdf_set_annot_contents(annot, text)
  42799. def pdf_set_annot_creation_date(annot, time):
  42800. r"""Class-aware wrapper for `::pdf_set_annot_creation_date()`."""
  42801. return _mupdf.pdf_set_annot_creation_date(annot, time)
  42802. def pdf_set_annot_default_appearance(annot, font, size, n, color):
  42803. r"""Class-aware wrapper for `::pdf_set_annot_default_appearance()`."""
  42804. return _mupdf.pdf_set_annot_default_appearance(annot, font, size, n, color)
  42805. def pdf_set_annot_field_value(doc, widget, text, ignore_trigger_events):
  42806. r"""Class-aware wrapper for `::pdf_set_annot_field_value()`."""
  42807. return _mupdf.pdf_set_annot_field_value(doc, widget, text, ignore_trigger_events)
  42808. def pdf_set_annot_filespec(annot, obj):
  42809. r"""Class-aware wrapper for `::pdf_set_annot_filespec()`."""
  42810. return _mupdf.pdf_set_annot_filespec(annot, obj)
  42811. def pdf_set_annot_flags(annot, flags):
  42812. r"""Class-aware wrapper for `::pdf_set_annot_flags()`."""
  42813. return _mupdf.pdf_set_annot_flags(annot, flags)
  42814. def pdf_set_annot_hidden_for_editing(annot, hidden):
  42815. r"""Class-aware wrapper for `::pdf_set_annot_hidden_for_editing()`."""
  42816. return _mupdf.pdf_set_annot_hidden_for_editing(annot, hidden)
  42817. def pdf_set_annot_hot(annot, hot):
  42818. r"""Class-aware wrapper for `::pdf_set_annot_hot()`."""
  42819. return _mupdf.pdf_set_annot_hot(annot, hot)
  42820. def pdf_set_annot_icon_name(annot, name):
  42821. r"""Class-aware wrapper for `::pdf_set_annot_icon_name()`."""
  42822. return _mupdf.pdf_set_annot_icon_name(annot, name)
  42823. def pdf_set_annot_ink_list(annot, n, count, v):
  42824. r"""Class-aware wrapper for `::pdf_set_annot_ink_list()`."""
  42825. return _mupdf.pdf_set_annot_ink_list(annot, n, count, v)
  42826. def pdf_set_annot_intent(annot, it):
  42827. r"""Class-aware wrapper for `::pdf_set_annot_intent()`."""
  42828. return _mupdf.pdf_set_annot_intent(annot, it)
  42829. def pdf_set_annot_interior_color(annot, n, color):
  42830. r"""Class-aware wrapper for `::pdf_set_annot_interior_color()`."""
  42831. return _mupdf.pdf_set_annot_interior_color(annot, n, color)
  42832. def pdf_set_annot_is_open(annot, is_open):
  42833. r"""Class-aware wrapper for `::pdf_set_annot_is_open()`."""
  42834. return _mupdf.pdf_set_annot_is_open(annot, is_open)
  42835. def pdf_set_annot_language(annot, lang):
  42836. r"""Class-aware wrapper for `::pdf_set_annot_language()`."""
  42837. return _mupdf.pdf_set_annot_language(annot, lang)
  42838. def pdf_set_annot_line(annot, a, b):
  42839. r"""Class-aware wrapper for `::pdf_set_annot_line()`."""
  42840. return _mupdf.pdf_set_annot_line(annot, a, b)
  42841. def pdf_set_annot_line_caption(annot, cap):
  42842. r"""Class-aware wrapper for `::pdf_set_annot_line_caption()`."""
  42843. return _mupdf.pdf_set_annot_line_caption(annot, cap)
  42844. def pdf_set_annot_line_caption_offset(annot, offset):
  42845. r"""Class-aware wrapper for `::pdf_set_annot_line_caption_offset()`."""
  42846. return _mupdf.pdf_set_annot_line_caption_offset(annot, offset)
  42847. def pdf_set_annot_line_end_style(annot, e):
  42848. r"""Class-aware wrapper for `::pdf_set_annot_line_end_style()`."""
  42849. return _mupdf.pdf_set_annot_line_end_style(annot, e)
  42850. def pdf_set_annot_line_ending_styles(annot, start_style, end_style):
  42851. r"""Class-aware wrapper for `::pdf_set_annot_line_ending_styles()`."""
  42852. return _mupdf.pdf_set_annot_line_ending_styles(annot, start_style, end_style)
  42853. def pdf_set_annot_line_leader(annot, ll):
  42854. r"""Class-aware wrapper for `::pdf_set_annot_line_leader()`."""
  42855. return _mupdf.pdf_set_annot_line_leader(annot, ll)
  42856. def pdf_set_annot_line_leader_extension(annot, lle):
  42857. r"""Class-aware wrapper for `::pdf_set_annot_line_leader_extension()`."""
  42858. return _mupdf.pdf_set_annot_line_leader_extension(annot, lle)
  42859. def pdf_set_annot_line_leader_offset(annot, llo):
  42860. r"""Class-aware wrapper for `::pdf_set_annot_line_leader_offset()`."""
  42861. return _mupdf.pdf_set_annot_line_leader_offset(annot, llo)
  42862. def pdf_set_annot_line_start_style(annot, s):
  42863. r"""Class-aware wrapper for `::pdf_set_annot_line_start_style()`."""
  42864. return _mupdf.pdf_set_annot_line_start_style(annot, s)
  42865. def pdf_set_annot_modification_date(annot, time):
  42866. r"""Class-aware wrapper for `::pdf_set_annot_modification_date()`."""
  42867. return _mupdf.pdf_set_annot_modification_date(annot, time)
  42868. def pdf_set_annot_opacity(annot, opacity):
  42869. r"""Class-aware wrapper for `::pdf_set_annot_opacity()`."""
  42870. return _mupdf.pdf_set_annot_opacity(annot, opacity)
  42871. def pdf_set_annot_popup(annot, rect):
  42872. r"""Class-aware wrapper for `::pdf_set_annot_popup()`."""
  42873. return _mupdf.pdf_set_annot_popup(annot, rect)
  42874. def pdf_set_annot_quad_points(annot, n, qv):
  42875. r"""Class-aware wrapper for `::pdf_set_annot_quad_points()`."""
  42876. return _mupdf.pdf_set_annot_quad_points(annot, n, qv)
  42877. def pdf_set_annot_quadding(annot, q):
  42878. r"""Class-aware wrapper for `::pdf_set_annot_quadding()`."""
  42879. return _mupdf.pdf_set_annot_quadding(annot, q)
  42880. def pdf_set_annot_rect(annot, rect):
  42881. r"""Class-aware wrapper for `::pdf_set_annot_rect()`."""
  42882. return _mupdf.pdf_set_annot_rect(annot, rect)
  42883. def pdf_set_annot_resynthesised(annot):
  42884. r"""Class-aware wrapper for `::pdf_set_annot_resynthesised()`."""
  42885. return _mupdf.pdf_set_annot_resynthesised(annot)
  42886. def pdf_set_annot_rich_contents(annot, plain, rich):
  42887. r"""Class-aware wrapper for `::pdf_set_annot_rich_contents()`."""
  42888. return _mupdf.pdf_set_annot_rich_contents(annot, plain, rich)
  42889. def pdf_set_annot_rich_defaults(annot, style):
  42890. r"""Class-aware wrapper for `::pdf_set_annot_rich_defaults()`."""
  42891. return _mupdf.pdf_set_annot_rich_defaults(annot, style)
  42892. def pdf_set_annot_stamp_image(annot, image):
  42893. r"""Class-aware wrapper for `::pdf_set_annot_stamp_image()`."""
  42894. return _mupdf.pdf_set_annot_stamp_image(annot, image)
  42895. def pdf_set_annot_stamp_image_obj(annot, ref):
  42896. r"""Class-aware wrapper for `::pdf_set_annot_stamp_image_obj()`."""
  42897. return _mupdf.pdf_set_annot_stamp_image_obj(annot, ref)
  42898. def pdf_set_annot_vertex(annot, i, p):
  42899. r"""Class-aware wrapper for `::pdf_set_annot_vertex()`."""
  42900. return _mupdf.pdf_set_annot_vertex(annot, i, p)
  42901. def pdf_set_annot_vertices(annot, n, v):
  42902. r"""Class-aware wrapper for `::pdf_set_annot_vertices()`."""
  42903. return _mupdf.pdf_set_annot_vertices(annot, n, v)
  42904. def pdf_set_choice_field_value(widget, value):
  42905. r"""Class-aware wrapper for `::pdf_set_choice_field_value()`."""
  42906. return _mupdf.pdf_set_choice_field_value(widget, value)
  42907. def pdf_set_cmap_wmode(cmap, wmode):
  42908. r"""Class-aware wrapper for `::pdf_set_cmap_wmode()`."""
  42909. return _mupdf.pdf_set_cmap_wmode(cmap, wmode)
  42910. def pdf_set_default_hmtx(font, w):
  42911. r"""Class-aware wrapper for `::pdf_set_default_hmtx()`."""
  42912. return _mupdf.pdf_set_default_hmtx(font, w)
  42913. def pdf_set_default_vmtx(font, y, w):
  42914. r"""Class-aware wrapper for `::pdf_set_default_vmtx()`."""
  42915. return _mupdf.pdf_set_default_vmtx(font, y, w)
  42916. def pdf_set_doc_event_callback(doc, event_cb, free_event_data_cb, data):
  42917. r"""Class-aware wrapper for `::pdf_set_doc_event_callback()`."""
  42918. return _mupdf.pdf_set_doc_event_callback(doc, event_cb, free_event_data_cb, data)
  42919. def pdf_set_document_language(doc, lang):
  42920. r"""Class-aware wrapper for `::pdf_set_document_language()`."""
  42921. return _mupdf.pdf_set_document_language(doc, lang)
  42922. def pdf_set_field_value(doc, field, text, ignore_trigger_events):
  42923. r"""Class-aware wrapper for `::pdf_set_field_value()`."""
  42924. return _mupdf.pdf_set_field_value(doc, field, text, ignore_trigger_events)
  42925. def pdf_set_font_wmode(font, wmode):
  42926. r"""Class-aware wrapper for `::pdf_set_font_wmode()`."""
  42927. return _mupdf.pdf_set_font_wmode(font, wmode)
  42928. def pdf_set_int(obj, i):
  42929. r"""Class-aware wrapper for `::pdf_set_int()`."""
  42930. return _mupdf.pdf_set_int(obj, i)
  42931. def pdf_set_layer_config_as_default(doc):
  42932. r"""Class-aware wrapper for `::pdf_set_layer_config_as_default()`."""
  42933. return _mupdf.pdf_set_layer_config_as_default(doc)
  42934. def pdf_set_obj_memo(obj, bit, memo):
  42935. r"""Class-aware wrapper for `::pdf_set_obj_memo()`."""
  42936. return _mupdf.pdf_set_obj_memo(obj, bit, memo)
  42937. def pdf_set_obj_parent(obj, num):
  42938. r"""Class-aware wrapper for `::pdf_set_obj_parent()`."""
  42939. return _mupdf.pdf_set_obj_parent(obj, num)
  42940. def pdf_set_page_box(page, box, rect):
  42941. r"""Class-aware wrapper for `::pdf_set_page_box()`."""
  42942. return _mupdf.pdf_set_page_box(page, box, rect)
  42943. def pdf_set_page_labels(doc, index, style, prefix, start):
  42944. r"""Class-aware wrapper for `::pdf_set_page_labels()`."""
  42945. return _mupdf.pdf_set_page_labels(doc, index, style, prefix, start)
  42946. def pdf_set_populating_xref_trailer(doc, trailer):
  42947. r"""Class-aware wrapper for `::pdf_set_populating_xref_trailer()`."""
  42948. return _mupdf.pdf_set_populating_xref_trailer(doc, trailer)
  42949. def pdf_set_str_len(obj, newlen):
  42950. r"""Class-aware wrapper for `::pdf_set_str_len()`."""
  42951. return _mupdf.pdf_set_str_len(obj, newlen)
  42952. def pdf_set_text_field_value(widget, value):
  42953. r"""Class-aware wrapper for `::pdf_set_text_field_value()`."""
  42954. return _mupdf.pdf_set_text_field_value(widget, value)
  42955. def pdf_set_usecmap(cmap, usecmap):
  42956. r"""Class-aware wrapper for `::pdf_set_usecmap()`."""
  42957. return _mupdf.pdf_set_usecmap(cmap, usecmap)
  42958. def pdf_set_widget_editing_state(widget, editing):
  42959. r"""Class-aware wrapper for `::pdf_set_widget_editing_state()`."""
  42960. return _mupdf.pdf_set_widget_editing_state(widget, editing)
  42961. def pdf_sign_signature(widget, signer, appearance_flags, graphic, reason, location):
  42962. r"""Class-aware wrapper for `::pdf_sign_signature()`."""
  42963. return _mupdf.pdf_sign_signature(widget, signer, appearance_flags, graphic, reason, location)
  42964. def pdf_sign_signature_with_appearance(widget, signer, date, disp_list):
  42965. r"""Class-aware wrapper for `::pdf_sign_signature_with_appearance()`."""
  42966. return _mupdf.pdf_sign_signature_with_appearance(widget, signer, date, disp_list)
  42967. def pdf_signature_appearance_signed(rect, lang, img, left_text, right_text, include_logo):
  42968. r"""Class-aware wrapper for `::pdf_signature_appearance_signed()`."""
  42969. return _mupdf.pdf_signature_appearance_signed(rect, lang, img, left_text, right_text, include_logo)
  42970. def pdf_signature_appearance_unsigned(rect, lang):
  42971. r"""Class-aware wrapper for `::pdf_signature_appearance_unsigned()`."""
  42972. return _mupdf.pdf_signature_appearance_unsigned(rect, lang)
  42973. def pdf_signature_byte_range(doc, signature, byte_range):
  42974. r"""Class-aware wrapper for `::pdf_signature_byte_range()`."""
  42975. return _mupdf.pdf_signature_byte_range(doc, signature, byte_range)
  42976. def pdf_signature_contents(doc, signature, contents):
  42977. r"""
  42978. Class-aware wrapper for `::pdf_signature_contents()`.
  42979. This function has out-params. Python/C# wrappers look like:
  42980. `pdf_signature_contents(::pdf_document *doc, ::pdf_obj *signature)` => `(size_t, char *contents)`
  42981. """
  42982. return _mupdf.pdf_signature_contents(doc, signature, contents)
  42983. def pdf_signature_drop_distinguished_name(name):
  42984. r"""Class-aware wrapper for `::pdf_signature_drop_distinguished_name()`."""
  42985. return _mupdf.pdf_signature_drop_distinguished_name(name)
  42986. def pdf_signature_error_description(err):
  42987. r"""Class-aware wrapper for `::pdf_signature_error_description()`."""
  42988. return _mupdf.pdf_signature_error_description(err)
  42989. def pdf_signature_format_distinguished_name(name):
  42990. r"""Class-aware wrapper for `::pdf_signature_format_distinguished_name()`."""
  42991. return _mupdf.pdf_signature_format_distinguished_name(name)
  42992. def pdf_signature_hash_bytes(doc, signature):
  42993. r"""Class-aware wrapper for `::pdf_signature_hash_bytes()`."""
  42994. return _mupdf.pdf_signature_hash_bytes(doc, signature)
  42995. def pdf_signature_incremental_change_since_signing(doc, signature):
  42996. r"""Class-aware wrapper for `::pdf_signature_incremental_change_since_signing()`."""
  42997. return _mupdf.pdf_signature_incremental_change_since_signing(doc, signature)
  42998. def pdf_signature_info(name, dn, reason, location, date, include_labels):
  42999. r"""Class-aware wrapper for `::pdf_signature_info()`."""
  43000. return _mupdf.pdf_signature_info(name, dn, reason, location, date, include_labels)
  43001. def pdf_signature_is_signed(doc, field):
  43002. r"""Class-aware wrapper for `::pdf_signature_is_signed()`."""
  43003. return _mupdf.pdf_signature_is_signed(doc, field)
  43004. def pdf_signature_set_value(doc, field, signer, stime):
  43005. r"""Class-aware wrapper for `::pdf_signature_set_value()`."""
  43006. return _mupdf.pdf_signature_set_value(doc, field, signer, stime)
  43007. def pdf_sort_cmap(cmap):
  43008. r"""Class-aware wrapper for `::pdf_sort_cmap()`."""
  43009. return _mupdf.pdf_sort_cmap(cmap)
  43010. def pdf_sort_dict(dict):
  43011. r"""Class-aware wrapper for `::pdf_sort_dict()`."""
  43012. return _mupdf.pdf_sort_dict(dict)
  43013. def pdf_specifics(doc):
  43014. r"""Class-aware wrapper for `::pdf_specifics()`."""
  43015. return _mupdf.pdf_specifics(doc)
  43016. def pdf_sprint_obj(buf, cap, len, obj, tight, ascii):
  43017. r"""
  43018. Class-aware wrapper for `::pdf_sprint_obj()`.
  43019. This function has out-params. Python/C# wrappers look like:
  43020. `pdf_sprint_obj(char *buf, size_t cap, ::pdf_obj *obj, int tight, int ascii)` => `(char *, size_t len)`
  43021. """
  43022. return _mupdf.pdf_sprint_obj(buf, cap, len, obj, tight, ascii)
  43023. def pdf_store_item(key, val, itemsize):
  43024. r"""Class-aware wrapper for `::pdf_store_item()`."""
  43025. return _mupdf.pdf_store_item(key, val, itemsize)
  43026. def pdf_string_from_annot_type(type):
  43027. r"""Class-aware wrapper for `::pdf_string_from_annot_type()`."""
  43028. return _mupdf.pdf_string_from_annot_type(type)
  43029. def pdf_string_from_intent(intent):
  43030. r"""Class-aware wrapper for `::pdf_string_from_intent()`."""
  43031. return _mupdf.pdf_string_from_intent(intent)
  43032. def pdf_string_from_line_ending(end):
  43033. r"""Class-aware wrapper for `::pdf_string_from_line_ending()`."""
  43034. return _mupdf.pdf_string_from_line_ending(end)
  43035. def pdf_structure_type(role_map, tag):
  43036. r"""Class-aware wrapper for `::pdf_structure_type()`."""
  43037. return _mupdf.pdf_structure_type(role_map, tag)
  43038. def pdf_subset_fonts(doc, pages_len, pages):
  43039. r"""Class-aware wrapper for `::pdf_subset_fonts()`."""
  43040. return _mupdf.pdf_subset_fonts(doc, pages_len, pages)
  43041. def pdf_subset_fonts2(doc, pages):
  43042. r"""Class-aware wrapper for `::pdf_subset_fonts2()`. Swig-friendly wrapper for pdf_subset_fonts()."""
  43043. return _mupdf.pdf_subset_fonts2(doc, pages)
  43044. def pdf_sync_annots(page):
  43045. r"""Class-aware wrapper for `::pdf_sync_annots()`."""
  43046. return _mupdf.pdf_sync_annots(page)
  43047. def pdf_sync_links(page):
  43048. r"""Class-aware wrapper for `::pdf_sync_links()`."""
  43049. return _mupdf.pdf_sync_links(page)
  43050. def pdf_sync_open_pages(doc):
  43051. r"""Class-aware wrapper for `::pdf_sync_open_pages()`."""
  43052. return _mupdf.pdf_sync_open_pages(doc)
  43053. def pdf_sync_page(page):
  43054. r"""Class-aware wrapper for `::pdf_sync_page()`."""
  43055. return _mupdf.pdf_sync_page(page)
  43056. def pdf_text_widget_format(tw):
  43057. r"""Class-aware wrapper for `::pdf_text_widget_format()`."""
  43058. return _mupdf.pdf_text_widget_format(tw)
  43059. def pdf_text_widget_max_len(tw):
  43060. r"""Class-aware wrapper for `::pdf_text_widget_max_len()`."""
  43061. return _mupdf.pdf_text_widget_max_len(tw)
  43062. def pdf_to_bool(obj):
  43063. r"""Class-aware wrapper for `::pdf_to_bool()`."""
  43064. return _mupdf.pdf_to_bool(obj)
  43065. def pdf_to_bool_default(obj, _def):
  43066. r"""Class-aware wrapper for `::pdf_to_bool_default()`."""
  43067. return _mupdf.pdf_to_bool_default(obj, _def)
  43068. def pdf_to_date(time):
  43069. r"""Class-aware wrapper for `::pdf_to_date()`."""
  43070. return _mupdf.pdf_to_date(time)
  43071. def pdf_to_gen(obj):
  43072. r"""Class-aware wrapper for `::pdf_to_gen()`."""
  43073. return _mupdf.pdf_to_gen(obj)
  43074. def pdf_to_int(obj):
  43075. r"""Class-aware wrapper for `::pdf_to_int()`."""
  43076. return _mupdf.pdf_to_int(obj)
  43077. def pdf_to_int64(obj):
  43078. r"""Class-aware wrapper for `::pdf_to_int64()`."""
  43079. return _mupdf.pdf_to_int64(obj)
  43080. def pdf_to_int_default(obj, _def):
  43081. r"""Class-aware wrapper for `::pdf_to_int_default()`."""
  43082. return _mupdf.pdf_to_int_default(obj, _def)
  43083. def pdf_to_matrix(array):
  43084. r"""Class-aware wrapper for `::pdf_to_matrix()`."""
  43085. return _mupdf.pdf_to_matrix(array)
  43086. def pdf_to_name(obj):
  43087. r"""Class-aware wrapper for `::pdf_to_name()`."""
  43088. return _mupdf.pdf_to_name(obj)
  43089. def pdf_to_num(obj):
  43090. r"""Class-aware wrapper for `::pdf_to_num()`."""
  43091. return _mupdf.pdf_to_num(obj)
  43092. def pdf_to_point(array, offset):
  43093. r"""Class-aware wrapper for `::pdf_to_point()`."""
  43094. return _mupdf.pdf_to_point(array, offset)
  43095. def pdf_to_quad(array, offset):
  43096. r"""Class-aware wrapper for `::pdf_to_quad()`."""
  43097. return _mupdf.pdf_to_quad(array, offset)
  43098. def pdf_to_real(obj):
  43099. r"""Class-aware wrapper for `::pdf_to_real()`."""
  43100. return _mupdf.pdf_to_real(obj)
  43101. def pdf_to_real_default(obj, _def):
  43102. r"""Class-aware wrapper for `::pdf_to_real_default()`."""
  43103. return _mupdf.pdf_to_real_default(obj, _def)
  43104. def pdf_to_rect(array):
  43105. r"""Class-aware wrapper for `::pdf_to_rect()`."""
  43106. return _mupdf.pdf_to_rect(array)
  43107. def pdf_to_str_buf(obj):
  43108. r"""Class-aware wrapper for `::pdf_to_str_buf()`."""
  43109. return _mupdf.pdf_to_str_buf(obj)
  43110. def pdf_to_str_len(obj):
  43111. r"""Class-aware wrapper for `::pdf_to_str_len()`."""
  43112. return _mupdf.pdf_to_str_len(obj)
  43113. def pdf_to_string(obj, sizep):
  43114. r"""
  43115. Class-aware wrapper for `::pdf_to_string()`.
  43116. This function has out-params. Python/C# wrappers look like:
  43117. `pdf_to_string(::pdf_obj *obj)` => `(const char *, size_t sizep)`
  43118. """
  43119. return _mupdf.pdf_to_string(obj, sizep)
  43120. def pdf_to_text_string(obj):
  43121. r"""Class-aware wrapper for `::pdf_to_text_string()`."""
  43122. return _mupdf.pdf_to_text_string(obj)
  43123. def pdf_toggle_layer_config_ui(doc, ui):
  43124. r"""Class-aware wrapper for `::pdf_toggle_layer_config_ui()`."""
  43125. return _mupdf.pdf_toggle_layer_config_ui(doc, ui)
  43126. def pdf_toggle_widget(widget):
  43127. r"""Class-aware wrapper for `::pdf_toggle_widget()`."""
  43128. return _mupdf.pdf_toggle_widget(widget)
  43129. def pdf_tos_get_text(tos):
  43130. r"""Class-aware wrapper for `::pdf_tos_get_text()`."""
  43131. return _mupdf.pdf_tos_get_text(tos)
  43132. def pdf_tos_make_trm(tos, text, fontdesc, cid, trm, adv):
  43133. r"""
  43134. Class-aware wrapper for `::pdf_tos_make_trm()`.
  43135. This function has out-params. Python/C# wrappers look like:
  43136. `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)`
  43137. """
  43138. return _mupdf.pdf_tos_make_trm(tos, text, fontdesc, cid, trm, adv)
  43139. def pdf_tos_move_after_char(tos):
  43140. r"""Class-aware wrapper for `::pdf_tos_move_after_char()`."""
  43141. return _mupdf.pdf_tos_move_after_char(tos)
  43142. def pdf_tos_newline(tos, leading):
  43143. r"""Class-aware wrapper for `::pdf_tos_newline()`."""
  43144. return _mupdf.pdf_tos_newline(tos, leading)
  43145. def pdf_tos_reset(tos, render):
  43146. r"""Class-aware wrapper for `::pdf_tos_reset()`."""
  43147. return _mupdf.pdf_tos_reset(tos, render)
  43148. def pdf_tos_restore(tos, save):
  43149. r"""Class-aware wrapper for `::pdf_tos_restore()`."""
  43150. return _mupdf.pdf_tos_restore(tos, save)
  43151. def pdf_tos_save(tos, save):
  43152. r"""Class-aware wrapper for `::pdf_tos_save()`."""
  43153. return _mupdf.pdf_tos_save(tos, save)
  43154. def pdf_tos_set_matrix(tos, a, b, c, d, e, f):
  43155. r"""Class-aware wrapper for `::pdf_tos_set_matrix()`."""
  43156. return _mupdf.pdf_tos_set_matrix(tos, a, b, c, d, e, f)
  43157. def pdf_tos_translate(tos, tx, ty):
  43158. r"""Class-aware wrapper for `::pdf_tos_translate()`."""
  43159. return _mupdf.pdf_tos_translate(tos, tx, ty)
  43160. def pdf_trailer(doc):
  43161. r"""Class-aware wrapper for `::pdf_trailer()`."""
  43162. return _mupdf.pdf_trailer(doc)
  43163. def pdf_undo(doc):
  43164. r"""Class-aware wrapper for `::pdf_undo()`."""
  43165. return _mupdf.pdf_undo(doc)
  43166. def pdf_undoredo_state(doc, steps):
  43167. r"""
  43168. Class-aware wrapper for `::pdf_undoredo_state()`.
  43169. This function has out-params. Python/C# wrappers look like:
  43170. `pdf_undoredo_state(::pdf_document *doc)` => `(int, int steps)`
  43171. """
  43172. return _mupdf.pdf_undoredo_state(doc, steps)
  43173. def pdf_undoredo_step(doc, step):
  43174. r"""Class-aware wrapper for `::pdf_undoredo_step()`."""
  43175. return _mupdf.pdf_undoredo_step(doc, step)
  43176. def pdf_unmark_obj(obj):
  43177. r"""Class-aware wrapper for `::pdf_unmark_obj()`."""
  43178. return _mupdf.pdf_unmark_obj(obj)
  43179. def pdf_update_annot(annot):
  43180. r"""Class-aware wrapper for `::pdf_update_annot()`."""
  43181. return _mupdf.pdf_update_annot(annot)
  43182. def pdf_update_default_colorspaces(old_cs, res):
  43183. r"""Class-aware wrapper for `::pdf_update_default_colorspaces()`."""
  43184. return _mupdf.pdf_update_default_colorspaces(old_cs, res)
  43185. def pdf_update_object(doc, num, obj):
  43186. r"""Class-aware wrapper for `::pdf_update_object()`."""
  43187. return _mupdf.pdf_update_object(doc, num, obj)
  43188. def pdf_update_page(page):
  43189. r"""Class-aware wrapper for `::pdf_update_page()`."""
  43190. return _mupdf.pdf_update_page(page)
  43191. def pdf_update_stream(doc, ref, buf, compressed):
  43192. r"""Class-aware wrapper for `::pdf_update_stream()`."""
  43193. return _mupdf.pdf_update_stream(doc, ref, buf, compressed)
  43194. def pdf_update_widget(widget):
  43195. r"""Class-aware wrapper for `::pdf_update_widget()`."""
  43196. return _mupdf.pdf_update_widget(widget)
  43197. def pdf_update_xobject(doc, xobj, bbox, mat, res, buffer):
  43198. r"""Class-aware wrapper for `::pdf_update_xobject()`."""
  43199. return _mupdf.pdf_update_xobject(doc, xobj, bbox, mat, res, buffer)
  43200. def pdf_validate_change_history(doc):
  43201. r"""Class-aware wrapper for `::pdf_validate_change_history()`."""
  43202. return _mupdf.pdf_validate_change_history(doc)
  43203. def pdf_validate_changes(doc, version):
  43204. r"""Class-aware wrapper for `::pdf_validate_changes()`."""
  43205. return _mupdf.pdf_validate_changes(doc, version)
  43206. def pdf_validate_signature(widget):
  43207. r"""Class-aware wrapper for `::pdf_validate_signature()`."""
  43208. return _mupdf.pdf_validate_signature(widget)
  43209. def pdf_verify_embedded_file_checksum(fs):
  43210. r"""Class-aware wrapper for `::pdf_verify_embedded_file_checksum()`."""
  43211. return _mupdf.pdf_verify_embedded_file_checksum(fs)
  43212. def pdf_version(doc):
  43213. r"""Class-aware wrapper for `::pdf_version()`."""
  43214. return _mupdf.pdf_version(doc)
  43215. def pdf_walk_tree(tree, kid_name, arrive, leave, arg, names, values):
  43216. r"""
  43217. Class-aware wrapper for `::pdf_walk_tree()`.
  43218. This function has out-params. Python/C# wrappers look like:
  43219. `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)` => `()`
  43220. """
  43221. return _mupdf.pdf_walk_tree(tree, kid_name, arrive, leave, arg, names, values)
  43222. def pdf_was_pure_xfa(doc):
  43223. r"""Class-aware wrapper for `::pdf_was_pure_xfa()`."""
  43224. return _mupdf.pdf_was_pure_xfa(doc)
  43225. def pdf_was_repaired(doc):
  43226. r"""Class-aware wrapper for `::pdf_was_repaired()`."""
  43227. return _mupdf.pdf_was_repaired(doc)
  43228. def pdf_widget_is_readonly(widget):
  43229. r"""Class-aware wrapper for `::pdf_widget_is_readonly()`."""
  43230. return _mupdf.pdf_widget_is_readonly(widget)
  43231. def pdf_widget_is_signed(widget):
  43232. r"""Class-aware wrapper for `::pdf_widget_is_signed()`."""
  43233. return _mupdf.pdf_widget_is_signed(widget)
  43234. def pdf_widget_type(widget):
  43235. r"""Class-aware wrapper for `::pdf_widget_type()`."""
  43236. return _mupdf.pdf_widget_type(widget)
  43237. def pdf_write_digest(out, byte_range, field, digest_offset, digest_length, signer):
  43238. r"""Class-aware wrapper for `::pdf_write_digest()`."""
  43239. return _mupdf.pdf_write_digest(out, byte_range, field, digest_offset, digest_length, signer)
  43240. def pdf_write_document(doc, out, opts):
  43241. r"""Class-aware wrapper for `::pdf_write_document()`."""
  43242. return _mupdf.pdf_write_document(doc, out, opts)
  43243. def pdf_write_journal(doc, out):
  43244. r"""Class-aware wrapper for `::pdf_write_journal()`."""
  43245. return _mupdf.pdf_write_journal(doc, out)
  43246. def pdf_write_snapshot(doc, out):
  43247. r"""Class-aware wrapper for `::pdf_write_snapshot()`."""
  43248. return _mupdf.pdf_write_snapshot(doc, out)
  43249. def pdf_xobject_bbox(xobj):
  43250. r"""Class-aware wrapper for `::pdf_xobject_bbox()`."""
  43251. return _mupdf.pdf_xobject_bbox(xobj)
  43252. def pdf_xobject_colorspace(xobj):
  43253. r"""Class-aware wrapper for `::pdf_xobject_colorspace()`."""
  43254. return _mupdf.pdf_xobject_colorspace(xobj)
  43255. def pdf_xobject_isolated(xobj):
  43256. r"""Class-aware wrapper for `::pdf_xobject_isolated()`."""
  43257. return _mupdf.pdf_xobject_isolated(xobj)
  43258. def pdf_xobject_knockout(xobj):
  43259. r"""Class-aware wrapper for `::pdf_xobject_knockout()`."""
  43260. return _mupdf.pdf_xobject_knockout(xobj)
  43261. def pdf_xobject_matrix(xobj):
  43262. r"""Class-aware wrapper for `::pdf_xobject_matrix()`."""
  43263. return _mupdf.pdf_xobject_matrix(xobj)
  43264. def pdf_xobject_resources(xobj):
  43265. r"""Class-aware wrapper for `::pdf_xobject_resources()`."""
  43266. return _mupdf.pdf_xobject_resources(xobj)
  43267. def pdf_xobject_transparency(xobj):
  43268. r"""Class-aware wrapper for `::pdf_xobject_transparency()`."""
  43269. return _mupdf.pdf_xobject_transparency(xobj)
  43270. def pdf_xref_ensure_incremental_object(doc, num):
  43271. r"""Class-aware wrapper for `::pdf_xref_ensure_incremental_object()`."""
  43272. return _mupdf.pdf_xref_ensure_incremental_object(doc, num)
  43273. def pdf_xref_ensure_local_object(doc, num):
  43274. r"""Class-aware wrapper for `::pdf_xref_ensure_local_object()`."""
  43275. return _mupdf.pdf_xref_ensure_local_object(doc, num)
  43276. def pdf_xref_entry_map(doc, fn, arg):
  43277. r"""Class-aware wrapper for `::pdf_xref_entry_map()`."""
  43278. return _mupdf.pdf_xref_entry_map(doc, fn, arg)
  43279. def pdf_xref_is_incremental(doc, num):
  43280. r"""Class-aware wrapper for `::pdf_xref_is_incremental()`."""
  43281. return _mupdf.pdf_xref_is_incremental(doc, num)
  43282. def pdf_xref_len(doc):
  43283. r"""Class-aware wrapper for `::pdf_xref_len()`."""
  43284. return _mupdf.pdf_xref_len(doc)
  43285. def pdf_xref_obj_is_unsaved_signature(doc, obj):
  43286. r"""Class-aware wrapper for `::pdf_xref_obj_is_unsaved_signature()`."""
  43287. return _mupdf.pdf_xref_obj_is_unsaved_signature(doc, obj)
  43288. def pdf_xref_remove_unsaved_signature(doc, field):
  43289. r"""Class-aware wrapper for `::pdf_xref_remove_unsaved_signature()`."""
  43290. return _mupdf.pdf_xref_remove_unsaved_signature(doc, field)
  43291. def pdf_xref_store_unsaved_signature(doc, field, signer):
  43292. r"""Class-aware wrapper for `::pdf_xref_store_unsaved_signature()`."""
  43293. return _mupdf.pdf_xref_store_unsaved_signature(doc, field, signer)
  43294. def pdf_zugferd_profile(doc, version):
  43295. r"""
  43296. Class-aware wrapper for `::pdf_zugferd_profile()`.
  43297. This function has out-params. Python/C# wrappers look like:
  43298. `pdf_zugferd_profile(::pdf_document *doc)` => `(enum pdf_zugferd_profile, float version)`
  43299. """
  43300. return _mupdf.pdf_zugferd_profile(doc, version)
  43301. def pdf_zugferd_profile_to_string(profile):
  43302. r"""Class-aware wrapper for `::pdf_zugferd_profile_to_string()`."""
  43303. return _mupdf.pdf_zugferd_profile_to_string(profile)
  43304. def pdf_zugferd_xml(doc):
  43305. r"""Class-aware wrapper for `::pdf_zugferd_xml()`."""
  43306. return _mupdf.pdf_zugferd_xml(doc)
  43307. def internal_assert_fail(file, line, fn, expression):
  43308. r"""This file was auto-generated by mupdfwrap.py."""
  43309. return _mupdf.internal_assert_fail(file, line, fn, expression)
  43310. def internal_env_flag(name):
  43311. r"""Internal use only. Looks at environmental variable <name>; returns 0 if unset else int value."""
  43312. return _mupdf.internal_env_flag(name)
  43313. def internal_env_flag_check_unset(if_, name):
  43314. r"""Internal use only. Looks at environmental variable <name>; returns 0 if unset else int value."""
  43315. return _mupdf.internal_env_flag_check_unset(if_, name)
  43316. def internal_context_get():
  43317. r"""Internal use only. Returns `fz_context*` for use by current thread."""
  43318. return _mupdf.internal_context_get()
  43319. class FzErrorBase(Exception):
  43320. r"""Base class for exceptions."""
  43321. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43322. __repr__ = _swig_repr
  43323. m_code = property(_mupdf.FzErrorBase_m_code_get, _mupdf.FzErrorBase_m_code_set)
  43324. m_text = property(_mupdf.FzErrorBase_m_text_get, _mupdf.FzErrorBase_m_text_set)
  43325. m_what = property(_mupdf.FzErrorBase_m_what_get, _mupdf.FzErrorBase_m_what_set)
  43326. def what(self):
  43327. return _mupdf.FzErrorBase_what(self)
  43328. def __init__(self, code, text):
  43329. _mupdf.FzErrorBase_swiginit(self, _mupdf.new_FzErrorBase(code, text))
  43330. __swig_destroy__ = _mupdf.delete_FzErrorBase
  43331. # Register FzErrorBase in _mupdf:
  43332. _mupdf.FzErrorBase_swigregister(FzErrorBase)
  43333. class FzErrorNone(FzErrorBase):
  43334. r"""For `FZ_ERROR_NONE`."""
  43335. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43336. __repr__ = _swig_repr
  43337. def __init__(self, message):
  43338. _mupdf.FzErrorNone_swiginit(self, _mupdf.new_FzErrorNone(message))
  43339. __swig_destroy__ = _mupdf.delete_FzErrorNone
  43340. # Register FzErrorNone in _mupdf:
  43341. _mupdf.FzErrorNone_swigregister(FzErrorNone)
  43342. class FzErrorGeneric(FzErrorBase):
  43343. r"""For `FZ_ERROR_GENERIC`."""
  43344. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43345. __repr__ = _swig_repr
  43346. def __init__(self, message):
  43347. _mupdf.FzErrorGeneric_swiginit(self, _mupdf.new_FzErrorGeneric(message))
  43348. __swig_destroy__ = _mupdf.delete_FzErrorGeneric
  43349. # Register FzErrorGeneric in _mupdf:
  43350. _mupdf.FzErrorGeneric_swigregister(FzErrorGeneric)
  43351. class FzErrorSystem(FzErrorBase):
  43352. r"""For `FZ_ERROR_SYSTEM`."""
  43353. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43354. __repr__ = _swig_repr
  43355. def __init__(self, message):
  43356. _mupdf.FzErrorSystem_swiginit(self, _mupdf.new_FzErrorSystem(message))
  43357. __swig_destroy__ = _mupdf.delete_FzErrorSystem
  43358. # Register FzErrorSystem in _mupdf:
  43359. _mupdf.FzErrorSystem_swigregister(FzErrorSystem)
  43360. class FzErrorLibrary(FzErrorBase):
  43361. r"""For `FZ_ERROR_LIBRARY`."""
  43362. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43363. __repr__ = _swig_repr
  43364. def __init__(self, message):
  43365. _mupdf.FzErrorLibrary_swiginit(self, _mupdf.new_FzErrorLibrary(message))
  43366. __swig_destroy__ = _mupdf.delete_FzErrorLibrary
  43367. # Register FzErrorLibrary in _mupdf:
  43368. _mupdf.FzErrorLibrary_swigregister(FzErrorLibrary)
  43369. class FzErrorArgument(FzErrorBase):
  43370. r"""For `FZ_ERROR_ARGUMENT`."""
  43371. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43372. __repr__ = _swig_repr
  43373. def __init__(self, message):
  43374. _mupdf.FzErrorArgument_swiginit(self, _mupdf.new_FzErrorArgument(message))
  43375. __swig_destroy__ = _mupdf.delete_FzErrorArgument
  43376. # Register FzErrorArgument in _mupdf:
  43377. _mupdf.FzErrorArgument_swigregister(FzErrorArgument)
  43378. class FzErrorLimit(FzErrorBase):
  43379. r"""For `FZ_ERROR_LIMIT`."""
  43380. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43381. __repr__ = _swig_repr
  43382. def __init__(self, message):
  43383. _mupdf.FzErrorLimit_swiginit(self, _mupdf.new_FzErrorLimit(message))
  43384. __swig_destroy__ = _mupdf.delete_FzErrorLimit
  43385. # Register FzErrorLimit in _mupdf:
  43386. _mupdf.FzErrorLimit_swigregister(FzErrorLimit)
  43387. class FzErrorUnsupported(FzErrorBase):
  43388. r"""For `FZ_ERROR_UNSUPPORTED`."""
  43389. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43390. __repr__ = _swig_repr
  43391. def __init__(self, message):
  43392. _mupdf.FzErrorUnsupported_swiginit(self, _mupdf.new_FzErrorUnsupported(message))
  43393. __swig_destroy__ = _mupdf.delete_FzErrorUnsupported
  43394. # Register FzErrorUnsupported in _mupdf:
  43395. _mupdf.FzErrorUnsupported_swigregister(FzErrorUnsupported)
  43396. class FzErrorFormat(FzErrorBase):
  43397. r"""For `FZ_ERROR_FORMAT`."""
  43398. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43399. __repr__ = _swig_repr
  43400. def __init__(self, message):
  43401. _mupdf.FzErrorFormat_swiginit(self, _mupdf.new_FzErrorFormat(message))
  43402. __swig_destroy__ = _mupdf.delete_FzErrorFormat
  43403. # Register FzErrorFormat in _mupdf:
  43404. _mupdf.FzErrorFormat_swigregister(FzErrorFormat)
  43405. class FzErrorSyntax(FzErrorBase):
  43406. r"""For `FZ_ERROR_SYNTAX`."""
  43407. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43408. __repr__ = _swig_repr
  43409. def __init__(self, message):
  43410. _mupdf.FzErrorSyntax_swiginit(self, _mupdf.new_FzErrorSyntax(message))
  43411. __swig_destroy__ = _mupdf.delete_FzErrorSyntax
  43412. # Register FzErrorSyntax in _mupdf:
  43413. _mupdf.FzErrorSyntax_swigregister(FzErrorSyntax)
  43414. class FzErrorTrylater(FzErrorBase):
  43415. r"""For `FZ_ERROR_TRYLATER`."""
  43416. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43417. __repr__ = _swig_repr
  43418. def __init__(self, message):
  43419. _mupdf.FzErrorTrylater_swiginit(self, _mupdf.new_FzErrorTrylater(message))
  43420. __swig_destroy__ = _mupdf.delete_FzErrorTrylater
  43421. # Register FzErrorTrylater in _mupdf:
  43422. _mupdf.FzErrorTrylater_swigregister(FzErrorTrylater)
  43423. class FzErrorAbort(FzErrorBase):
  43424. r"""For `FZ_ERROR_ABORT`."""
  43425. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43426. __repr__ = _swig_repr
  43427. def __init__(self, message):
  43428. _mupdf.FzErrorAbort_swiginit(self, _mupdf.new_FzErrorAbort(message))
  43429. __swig_destroy__ = _mupdf.delete_FzErrorAbort
  43430. # Register FzErrorAbort in _mupdf:
  43431. _mupdf.FzErrorAbort_swigregister(FzErrorAbort)
  43432. class FzErrorRepaired(FzErrorBase):
  43433. r"""For `FZ_ERROR_REPAIRED`."""
  43434. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43435. __repr__ = _swig_repr
  43436. def __init__(self, message):
  43437. _mupdf.FzErrorRepaired_swiginit(self, _mupdf.new_FzErrorRepaired(message))
  43438. __swig_destroy__ = _mupdf.delete_FzErrorRepaired
  43439. # Register FzErrorRepaired in _mupdf:
  43440. _mupdf.FzErrorRepaired_swigregister(FzErrorRepaired)
  43441. def internal_throw_exception(ctx):
  43442. r"""Throw exception appropriate for error in `ctx`."""
  43443. return _mupdf.internal_throw_exception(ctx)
  43444. def to_stdstring(s):
  43445. return _mupdf.to_stdstring(s)
  43446. def py_repr(x):
  43447. return _mupdf.py_repr(x)
  43448. def py_str(x):
  43449. return _mupdf.py_str(x)
  43450. def ll_fz_buffer_to_bytes_internal(buffer, clear):
  43451. return _mupdf.ll_fz_buffer_to_bytes_internal(buffer, clear)
  43452. def python_memoryview_from_memory(data, size, writable):
  43453. return _mupdf.python_memoryview_from_memory(data, size, writable)
  43454. def ll_fz_buffer_storage_memoryview(buffer, writable):
  43455. return _mupdf.ll_fz_buffer_storage_memoryview(buffer, writable)
  43456. def raw_to_python_bytes(*args):
  43457. return _mupdf.raw_to_python_bytes(*args)
  43458. def python_buffer_data(PYTHON_BUFFER_DATA):
  43459. return _mupdf.python_buffer_data(PYTHON_BUFFER_DATA)
  43460. def python_mutable_buffer_data(PYTHON_BUFFER_MUTABLE_DATA):
  43461. return _mupdf.python_mutable_buffer_data(PYTHON_BUFFER_MUTABLE_DATA)
  43462. def obj_enum_to_obj(n):
  43463. return _mupdf.obj_enum_to_obj(n)
  43464. def ll_pdf_set_annot_color2(annot, n, color0, color1, color2, color3):
  43465. return _mupdf.ll_pdf_set_annot_color2(annot, n, color0, color1, color2, color3)
  43466. def ll_pdf_set_annot_interior_color2(annot, n, color0, color1, color2, color3):
  43467. return _mupdf.ll_pdf_set_annot_interior_color2(annot, n, color0, color1, color2, color3)
  43468. def ll_fz_fill_text2(dev, text, ctm, colorspace, color0, color1, color2, color3, alpha, color_params):
  43469. return _mupdf.ll_fz_fill_text2(dev, text, ctm, colorspace, color0, color1, color2, color3, alpha, color_params)
  43470. def fz_memrnd2(length):
  43471. return _mupdf.fz_memrnd2(length)
  43472. def ll_fz_pixmap_copy_raw(pm, samples):
  43473. return _mupdf.ll_fz_pixmap_copy_raw(pm, samples)
  43474. def fz_runetochar2(rune):
  43475. return _mupdf.fz_runetochar2(rune)
  43476. def ll_fz_make_bookmark2(doc, loc):
  43477. return _mupdf.ll_fz_make_bookmark2(doc, loc)
  43478. def ll_fz_lookup_bookmark2(doc, mark):
  43479. return _mupdf.ll_fz_lookup_bookmark2(doc, mark)
  43480. def fz_lookup_bookmark2(doc, mark):
  43481. return _mupdf.fz_lookup_bookmark2(doc, mark)
  43482. class fz_convert_color2_v(object):
  43483. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43484. __repr__ = _swig_repr
  43485. v0 = property(_mupdf.fz_convert_color2_v_v0_get, _mupdf.fz_convert_color2_v_v0_set)
  43486. v1 = property(_mupdf.fz_convert_color2_v_v1_get, _mupdf.fz_convert_color2_v_v1_set)
  43487. v2 = property(_mupdf.fz_convert_color2_v_v2_get, _mupdf.fz_convert_color2_v_v2_set)
  43488. v3 = property(_mupdf.fz_convert_color2_v_v3_get, _mupdf.fz_convert_color2_v_v3_set)
  43489. def __init__(self):
  43490. _mupdf.fz_convert_color2_v_swiginit(self, _mupdf.new_fz_convert_color2_v())
  43491. __swig_destroy__ = _mupdf.delete_fz_convert_color2_v
  43492. # Register fz_convert_color2_v in _mupdf:
  43493. _mupdf.fz_convert_color2_v_swigregister(fz_convert_color2_v)
  43494. def ll_fz_convert_color2(*args):
  43495. return _mupdf.ll_fz_convert_color2(*args)
  43496. class DiagnosticCallback(object):
  43497. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43498. __repr__ = _swig_repr
  43499. def __init__(self, description):
  43500. if self.__class__ == DiagnosticCallback:
  43501. _self = None
  43502. else:
  43503. _self = self
  43504. _mupdf.DiagnosticCallback_swiginit(self, _mupdf.new_DiagnosticCallback(_self, description))
  43505. def _print(self, message):
  43506. return _mupdf.DiagnosticCallback__print(self, message)
  43507. __swig_destroy__ = _mupdf.delete_DiagnosticCallback
  43508. @staticmethod
  43509. def s_print(self0, message):
  43510. return _mupdf.DiagnosticCallback_s_print(self0, message)
  43511. m_description = property(_mupdf.DiagnosticCallback_m_description_get, _mupdf.DiagnosticCallback_m_description_set)
  43512. def __disown__(self):
  43513. self.this.disown()
  43514. _mupdf.disown_DiagnosticCallback(self)
  43515. return weakref.proxy(self)
  43516. # Register DiagnosticCallback in _mupdf:
  43517. _mupdf.DiagnosticCallback_swigregister(DiagnosticCallback)
  43518. class StoryPositionsCallback(object):
  43519. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43520. __repr__ = _swig_repr
  43521. def __init__(self):
  43522. if self.__class__ == StoryPositionsCallback:
  43523. _self = None
  43524. else:
  43525. _self = self
  43526. _mupdf.StoryPositionsCallback_swiginit(self, _mupdf.new_StoryPositionsCallback(_self, ))
  43527. def call(self, position):
  43528. return _mupdf.StoryPositionsCallback_call(self, position)
  43529. @staticmethod
  43530. def s_call(ctx, self0, position):
  43531. return _mupdf.StoryPositionsCallback_s_call(ctx, self0, position)
  43532. __swig_destroy__ = _mupdf.delete_StoryPositionsCallback
  43533. def __disown__(self):
  43534. self.this.disown()
  43535. _mupdf.disown_StoryPositionsCallback(self)
  43536. return weakref.proxy(self)
  43537. # Register StoryPositionsCallback in _mupdf:
  43538. _mupdf.StoryPositionsCallback_swigregister(StoryPositionsCallback)
  43539. def ll_fz_story_positions_director(story, cb):
  43540. return _mupdf.ll_fz_story_positions_director(story, cb)
  43541. def Pixmap_set_alpha_helper(balen, n, data_len, zero_out, data, pix, premultiply, bground, colors, bgcolor):
  43542. return _mupdf.Pixmap_set_alpha_helper(balen, n, data_len, zero_out, data, pix, premultiply, bground, colors, bgcolor)
  43543. def page_merge_helper(old_annots, graft_map, doc_des, new_annots, n):
  43544. return _mupdf.page_merge_helper(old_annots, graft_map, doc_des, new_annots, n)
  43545. class ll_fz_bidi_fragment_text_outparams(object):
  43546. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43547. __repr__ = _swig_repr
  43548. baseDir = property(_mupdf.ll_fz_bidi_fragment_text_outparams_baseDir_get, _mupdf.ll_fz_bidi_fragment_text_outparams_baseDir_set)
  43549. def __init__(self):
  43550. _mupdf.ll_fz_bidi_fragment_text_outparams_swiginit(self, _mupdf.new_ll_fz_bidi_fragment_text_outparams())
  43551. __swig_destroy__ = _mupdf.delete_ll_fz_bidi_fragment_text_outparams
  43552. # Register ll_fz_bidi_fragment_text_outparams in _mupdf:
  43553. _mupdf.ll_fz_bidi_fragment_text_outparams_swigregister(ll_fz_bidi_fragment_text_outparams)
  43554. def ll_fz_bidi_fragment_text_outparams_fn(text, textlen, callback, arg, flags, outparams):
  43555. return _mupdf.ll_fz_bidi_fragment_text_outparams_fn(text, textlen, callback, arg, flags, outparams)
  43556. class ll_fz_bitmap_details_outparams(object):
  43557. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43558. __repr__ = _swig_repr
  43559. w = property(_mupdf.ll_fz_bitmap_details_outparams_w_get, _mupdf.ll_fz_bitmap_details_outparams_w_set)
  43560. h = property(_mupdf.ll_fz_bitmap_details_outparams_h_get, _mupdf.ll_fz_bitmap_details_outparams_h_set)
  43561. n = property(_mupdf.ll_fz_bitmap_details_outparams_n_get, _mupdf.ll_fz_bitmap_details_outparams_n_set)
  43562. stride = property(_mupdf.ll_fz_bitmap_details_outparams_stride_get, _mupdf.ll_fz_bitmap_details_outparams_stride_set)
  43563. def __init__(self):
  43564. _mupdf.ll_fz_bitmap_details_outparams_swiginit(self, _mupdf.new_ll_fz_bitmap_details_outparams())
  43565. __swig_destroy__ = _mupdf.delete_ll_fz_bitmap_details_outparams
  43566. # Register ll_fz_bitmap_details_outparams in _mupdf:
  43567. _mupdf.ll_fz_bitmap_details_outparams_swigregister(ll_fz_bitmap_details_outparams)
  43568. def ll_fz_bitmap_details_outparams_fn(bitmap, outparams):
  43569. return _mupdf.ll_fz_bitmap_details_outparams_fn(bitmap, outparams)
  43570. class ll_fz_buffer_extract_outparams(object):
  43571. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43572. __repr__ = _swig_repr
  43573. data = property(_mupdf.ll_fz_buffer_extract_outparams_data_get, _mupdf.ll_fz_buffer_extract_outparams_data_set)
  43574. def __init__(self):
  43575. _mupdf.ll_fz_buffer_extract_outparams_swiginit(self, _mupdf.new_ll_fz_buffer_extract_outparams())
  43576. __swig_destroy__ = _mupdf.delete_ll_fz_buffer_extract_outparams
  43577. # Register ll_fz_buffer_extract_outparams in _mupdf:
  43578. _mupdf.ll_fz_buffer_extract_outparams_swigregister(ll_fz_buffer_extract_outparams)
  43579. def ll_fz_buffer_extract_outparams_fn(buf, outparams):
  43580. return _mupdf.ll_fz_buffer_extract_outparams_fn(buf, outparams)
  43581. class ll_fz_buffer_storage_outparams(object):
  43582. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43583. __repr__ = _swig_repr
  43584. datap = property(_mupdf.ll_fz_buffer_storage_outparams_datap_get, _mupdf.ll_fz_buffer_storage_outparams_datap_set)
  43585. def __init__(self):
  43586. _mupdf.ll_fz_buffer_storage_outparams_swiginit(self, _mupdf.new_ll_fz_buffer_storage_outparams())
  43587. __swig_destroy__ = _mupdf.delete_ll_fz_buffer_storage_outparams
  43588. # Register ll_fz_buffer_storage_outparams in _mupdf:
  43589. _mupdf.ll_fz_buffer_storage_outparams_swigregister(ll_fz_buffer_storage_outparams)
  43590. def ll_fz_buffer_storage_outparams_fn(buf, outparams):
  43591. return _mupdf.ll_fz_buffer_storage_outparams_fn(buf, outparams)
  43592. class ll_fz_chartorune_outparams(object):
  43593. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43594. __repr__ = _swig_repr
  43595. rune = property(_mupdf.ll_fz_chartorune_outparams_rune_get, _mupdf.ll_fz_chartorune_outparams_rune_set)
  43596. def __init__(self):
  43597. _mupdf.ll_fz_chartorune_outparams_swiginit(self, _mupdf.new_ll_fz_chartorune_outparams())
  43598. __swig_destroy__ = _mupdf.delete_ll_fz_chartorune_outparams
  43599. # Register ll_fz_chartorune_outparams in _mupdf:
  43600. _mupdf.ll_fz_chartorune_outparams_swigregister(ll_fz_chartorune_outparams)
  43601. def ll_fz_chartorune_outparams_fn(str, outparams):
  43602. return _mupdf.ll_fz_chartorune_outparams_fn(str, outparams)
  43603. class ll_fz_chartorunen_outparams(object):
  43604. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43605. __repr__ = _swig_repr
  43606. rune = property(_mupdf.ll_fz_chartorunen_outparams_rune_get, _mupdf.ll_fz_chartorunen_outparams_rune_set)
  43607. def __init__(self):
  43608. _mupdf.ll_fz_chartorunen_outparams_swiginit(self, _mupdf.new_ll_fz_chartorunen_outparams())
  43609. __swig_destroy__ = _mupdf.delete_ll_fz_chartorunen_outparams
  43610. # Register ll_fz_chartorunen_outparams in _mupdf:
  43611. _mupdf.ll_fz_chartorunen_outparams_swigregister(ll_fz_chartorunen_outparams)
  43612. def ll_fz_chartorunen_outparams_fn(str, n, outparams):
  43613. return _mupdf.ll_fz_chartorunen_outparams_fn(str, n, outparams)
  43614. class ll_fz_clamp_color_outparams(object):
  43615. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43616. __repr__ = _swig_repr
  43617. out = property(_mupdf.ll_fz_clamp_color_outparams_out_get, _mupdf.ll_fz_clamp_color_outparams_out_set)
  43618. def __init__(self):
  43619. _mupdf.ll_fz_clamp_color_outparams_swiginit(self, _mupdf.new_ll_fz_clamp_color_outparams())
  43620. __swig_destroy__ = _mupdf.delete_ll_fz_clamp_color_outparams
  43621. # Register ll_fz_clamp_color_outparams in _mupdf:
  43622. _mupdf.ll_fz_clamp_color_outparams_swigregister(ll_fz_clamp_color_outparams)
  43623. def ll_fz_clamp_color_outparams_fn(cs, _in, outparams):
  43624. return _mupdf.ll_fz_clamp_color_outparams_fn(cs, _in, outparams)
  43625. class ll_fz_compress_brotli_outparams(object):
  43626. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43627. __repr__ = _swig_repr
  43628. compressed_length = property(_mupdf.ll_fz_compress_brotli_outparams_compressed_length_get, _mupdf.ll_fz_compress_brotli_outparams_compressed_length_set)
  43629. def __init__(self):
  43630. _mupdf.ll_fz_compress_brotli_outparams_swiginit(self, _mupdf.new_ll_fz_compress_brotli_outparams())
  43631. __swig_destroy__ = _mupdf.delete_ll_fz_compress_brotli_outparams
  43632. # Register ll_fz_compress_brotli_outparams in _mupdf:
  43633. _mupdf.ll_fz_compress_brotli_outparams_swigregister(ll_fz_compress_brotli_outparams)
  43634. def ll_fz_compress_brotli_outparams_fn(dest, source, source_length, level, outparams):
  43635. return _mupdf.ll_fz_compress_brotli_outparams_fn(dest, source, source_length, level, outparams)
  43636. class ll_fz_convert_color_outparams(object):
  43637. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43638. __repr__ = _swig_repr
  43639. dv = property(_mupdf.ll_fz_convert_color_outparams_dv_get, _mupdf.ll_fz_convert_color_outparams_dv_set)
  43640. def __init__(self):
  43641. _mupdf.ll_fz_convert_color_outparams_swiginit(self, _mupdf.new_ll_fz_convert_color_outparams())
  43642. __swig_destroy__ = _mupdf.delete_ll_fz_convert_color_outparams
  43643. # Register ll_fz_convert_color_outparams in _mupdf:
  43644. _mupdf.ll_fz_convert_color_outparams_swigregister(ll_fz_convert_color_outparams)
  43645. def ll_fz_convert_color_outparams_fn(ss, sv, ds, _is, params, outparams):
  43646. return _mupdf.ll_fz_convert_color_outparams_fn(ss, sv, ds, _is, params, outparams)
  43647. class ll_fz_convert_error_outparams(object):
  43648. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43649. __repr__ = _swig_repr
  43650. code = property(_mupdf.ll_fz_convert_error_outparams_code_get, _mupdf.ll_fz_convert_error_outparams_code_set)
  43651. def __init__(self):
  43652. _mupdf.ll_fz_convert_error_outparams_swiginit(self, _mupdf.new_ll_fz_convert_error_outparams())
  43653. __swig_destroy__ = _mupdf.delete_ll_fz_convert_error_outparams
  43654. # Register ll_fz_convert_error_outparams in _mupdf:
  43655. _mupdf.ll_fz_convert_error_outparams_swigregister(ll_fz_convert_error_outparams)
  43656. def ll_fz_convert_error_outparams_fn(outparams):
  43657. return _mupdf.ll_fz_convert_error_outparams_fn(outparams)
  43658. class ll_fz_convert_separation_colors_outparams(object):
  43659. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43660. __repr__ = _swig_repr
  43661. dst_color = property(_mupdf.ll_fz_convert_separation_colors_outparams_dst_color_get, _mupdf.ll_fz_convert_separation_colors_outparams_dst_color_set)
  43662. def __init__(self):
  43663. _mupdf.ll_fz_convert_separation_colors_outparams_swiginit(self, _mupdf.new_ll_fz_convert_separation_colors_outparams())
  43664. __swig_destroy__ = _mupdf.delete_ll_fz_convert_separation_colors_outparams
  43665. # Register ll_fz_convert_separation_colors_outparams in _mupdf:
  43666. _mupdf.ll_fz_convert_separation_colors_outparams_swigregister(ll_fz_convert_separation_colors_outparams)
  43667. def ll_fz_convert_separation_colors_outparams_fn(src_cs, src_color, dst_seps, dst_cs, color_params, outparams):
  43668. return _mupdf.ll_fz_convert_separation_colors_outparams_fn(src_cs, src_color, dst_seps, dst_cs, color_params, outparams)
  43669. class ll_fz_decode_barcode_from_display_list_outparams(object):
  43670. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43671. __repr__ = _swig_repr
  43672. type = property(_mupdf.ll_fz_decode_barcode_from_display_list_outparams_type_get, _mupdf.ll_fz_decode_barcode_from_display_list_outparams_type_set)
  43673. def __init__(self):
  43674. _mupdf.ll_fz_decode_barcode_from_display_list_outparams_swiginit(self, _mupdf.new_ll_fz_decode_barcode_from_display_list_outparams())
  43675. __swig_destroy__ = _mupdf.delete_ll_fz_decode_barcode_from_display_list_outparams
  43676. # Register ll_fz_decode_barcode_from_display_list_outparams in _mupdf:
  43677. _mupdf.ll_fz_decode_barcode_from_display_list_outparams_swigregister(ll_fz_decode_barcode_from_display_list_outparams)
  43678. def ll_fz_decode_barcode_from_display_list_outparams_fn(list, subarea, rotate, outparams):
  43679. return _mupdf.ll_fz_decode_barcode_from_display_list_outparams_fn(list, subarea, rotate, outparams)
  43680. class ll_fz_decode_barcode_from_display_list2_outparams(object):
  43681. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43682. __repr__ = _swig_repr
  43683. type = property(_mupdf.ll_fz_decode_barcode_from_display_list2_outparams_type_get, _mupdf.ll_fz_decode_barcode_from_display_list2_outparams_type_set)
  43684. def __init__(self):
  43685. _mupdf.ll_fz_decode_barcode_from_display_list2_outparams_swiginit(self, _mupdf.new_ll_fz_decode_barcode_from_display_list2_outparams())
  43686. __swig_destroy__ = _mupdf.delete_ll_fz_decode_barcode_from_display_list2_outparams
  43687. # Register ll_fz_decode_barcode_from_display_list2_outparams in _mupdf:
  43688. _mupdf.ll_fz_decode_barcode_from_display_list2_outparams_swigregister(ll_fz_decode_barcode_from_display_list2_outparams)
  43689. def ll_fz_decode_barcode_from_display_list2_outparams_fn(list, subarea, rotate, outparams):
  43690. return _mupdf.ll_fz_decode_barcode_from_display_list2_outparams_fn(list, subarea, rotate, outparams)
  43691. class ll_fz_decode_barcode_from_page_outparams(object):
  43692. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43693. __repr__ = _swig_repr
  43694. type = property(_mupdf.ll_fz_decode_barcode_from_page_outparams_type_get, _mupdf.ll_fz_decode_barcode_from_page_outparams_type_set)
  43695. def __init__(self):
  43696. _mupdf.ll_fz_decode_barcode_from_page_outparams_swiginit(self, _mupdf.new_ll_fz_decode_barcode_from_page_outparams())
  43697. __swig_destroy__ = _mupdf.delete_ll_fz_decode_barcode_from_page_outparams
  43698. # Register ll_fz_decode_barcode_from_page_outparams in _mupdf:
  43699. _mupdf.ll_fz_decode_barcode_from_page_outparams_swigregister(ll_fz_decode_barcode_from_page_outparams)
  43700. def ll_fz_decode_barcode_from_page_outparams_fn(page, subarea, rotate, outparams):
  43701. return _mupdf.ll_fz_decode_barcode_from_page_outparams_fn(page, subarea, rotate, outparams)
  43702. class ll_fz_decode_barcode_from_page2_outparams(object):
  43703. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43704. __repr__ = _swig_repr
  43705. type = property(_mupdf.ll_fz_decode_barcode_from_page2_outparams_type_get, _mupdf.ll_fz_decode_barcode_from_page2_outparams_type_set)
  43706. def __init__(self):
  43707. _mupdf.ll_fz_decode_barcode_from_page2_outparams_swiginit(self, _mupdf.new_ll_fz_decode_barcode_from_page2_outparams())
  43708. __swig_destroy__ = _mupdf.delete_ll_fz_decode_barcode_from_page2_outparams
  43709. # Register ll_fz_decode_barcode_from_page2_outparams in _mupdf:
  43710. _mupdf.ll_fz_decode_barcode_from_page2_outparams_swigregister(ll_fz_decode_barcode_from_page2_outparams)
  43711. def ll_fz_decode_barcode_from_page2_outparams_fn(page, subarea, rotate, outparams):
  43712. return _mupdf.ll_fz_decode_barcode_from_page2_outparams_fn(page, subarea, rotate, outparams)
  43713. class ll_fz_decode_barcode_from_pixmap_outparams(object):
  43714. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43715. __repr__ = _swig_repr
  43716. type = property(_mupdf.ll_fz_decode_barcode_from_pixmap_outparams_type_get, _mupdf.ll_fz_decode_barcode_from_pixmap_outparams_type_set)
  43717. def __init__(self):
  43718. _mupdf.ll_fz_decode_barcode_from_pixmap_outparams_swiginit(self, _mupdf.new_ll_fz_decode_barcode_from_pixmap_outparams())
  43719. __swig_destroy__ = _mupdf.delete_ll_fz_decode_barcode_from_pixmap_outparams
  43720. # Register ll_fz_decode_barcode_from_pixmap_outparams in _mupdf:
  43721. _mupdf.ll_fz_decode_barcode_from_pixmap_outparams_swigregister(ll_fz_decode_barcode_from_pixmap_outparams)
  43722. def ll_fz_decode_barcode_from_pixmap_outparams_fn(pix, rotate, outparams):
  43723. return _mupdf.ll_fz_decode_barcode_from_pixmap_outparams_fn(pix, rotate, outparams)
  43724. class ll_fz_decode_barcode_from_pixmap2_outparams(object):
  43725. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43726. __repr__ = _swig_repr
  43727. type = property(_mupdf.ll_fz_decode_barcode_from_pixmap2_outparams_type_get, _mupdf.ll_fz_decode_barcode_from_pixmap2_outparams_type_set)
  43728. def __init__(self):
  43729. _mupdf.ll_fz_decode_barcode_from_pixmap2_outparams_swiginit(self, _mupdf.new_ll_fz_decode_barcode_from_pixmap2_outparams())
  43730. __swig_destroy__ = _mupdf.delete_ll_fz_decode_barcode_from_pixmap2_outparams
  43731. # Register ll_fz_decode_barcode_from_pixmap2_outparams in _mupdf:
  43732. _mupdf.ll_fz_decode_barcode_from_pixmap2_outparams_swigregister(ll_fz_decode_barcode_from_pixmap2_outparams)
  43733. def ll_fz_decode_barcode_from_pixmap2_outparams_fn(pix, rotate, outparams):
  43734. return _mupdf.ll_fz_decode_barcode_from_pixmap2_outparams_fn(pix, rotate, outparams)
  43735. class ll_fz_decomp_image_from_stream_outparams(object):
  43736. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43737. __repr__ = _swig_repr
  43738. l2extra = property(_mupdf.ll_fz_decomp_image_from_stream_outparams_l2extra_get, _mupdf.ll_fz_decomp_image_from_stream_outparams_l2extra_set)
  43739. def __init__(self):
  43740. _mupdf.ll_fz_decomp_image_from_stream_outparams_swiginit(self, _mupdf.new_ll_fz_decomp_image_from_stream_outparams())
  43741. __swig_destroy__ = _mupdf.delete_ll_fz_decomp_image_from_stream_outparams
  43742. # Register ll_fz_decomp_image_from_stream_outparams in _mupdf:
  43743. _mupdf.ll_fz_decomp_image_from_stream_outparams_swigregister(ll_fz_decomp_image_from_stream_outparams)
  43744. def ll_fz_decomp_image_from_stream_outparams_fn(stm, image, subarea, indexed, l2factor, outparams):
  43745. return _mupdf.ll_fz_decomp_image_from_stream_outparams_fn(stm, image, subarea, indexed, l2factor, outparams)
  43746. class ll_fz_deflate_outparams(object):
  43747. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43748. __repr__ = _swig_repr
  43749. compressed_length = property(_mupdf.ll_fz_deflate_outparams_compressed_length_get, _mupdf.ll_fz_deflate_outparams_compressed_length_set)
  43750. def __init__(self):
  43751. _mupdf.ll_fz_deflate_outparams_swiginit(self, _mupdf.new_ll_fz_deflate_outparams())
  43752. __swig_destroy__ = _mupdf.delete_ll_fz_deflate_outparams
  43753. # Register ll_fz_deflate_outparams in _mupdf:
  43754. _mupdf.ll_fz_deflate_outparams_swigregister(ll_fz_deflate_outparams)
  43755. def ll_fz_deflate_outparams_fn(dest, source, source_length, level, outparams):
  43756. return _mupdf.ll_fz_deflate_outparams_fn(dest, source, source_length, level, outparams)
  43757. class ll_fz_dom_get_attribute_outparams(object):
  43758. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43759. __repr__ = _swig_repr
  43760. att = property(_mupdf.ll_fz_dom_get_attribute_outparams_att_get, _mupdf.ll_fz_dom_get_attribute_outparams_att_set)
  43761. def __init__(self):
  43762. _mupdf.ll_fz_dom_get_attribute_outparams_swiginit(self, _mupdf.new_ll_fz_dom_get_attribute_outparams())
  43763. __swig_destroy__ = _mupdf.delete_ll_fz_dom_get_attribute_outparams
  43764. # Register ll_fz_dom_get_attribute_outparams in _mupdf:
  43765. _mupdf.ll_fz_dom_get_attribute_outparams_swigregister(ll_fz_dom_get_attribute_outparams)
  43766. def ll_fz_dom_get_attribute_outparams_fn(elt, i, outparams):
  43767. return _mupdf.ll_fz_dom_get_attribute_outparams_fn(elt, i, outparams)
  43768. class ll_fz_drop_imp_outparams(object):
  43769. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43770. __repr__ = _swig_repr
  43771. refs = property(_mupdf.ll_fz_drop_imp_outparams_refs_get, _mupdf.ll_fz_drop_imp_outparams_refs_set)
  43772. def __init__(self):
  43773. _mupdf.ll_fz_drop_imp_outparams_swiginit(self, _mupdf.new_ll_fz_drop_imp_outparams())
  43774. __swig_destroy__ = _mupdf.delete_ll_fz_drop_imp_outparams
  43775. # Register ll_fz_drop_imp_outparams in _mupdf:
  43776. _mupdf.ll_fz_drop_imp_outparams_swigregister(ll_fz_drop_imp_outparams)
  43777. def ll_fz_drop_imp_outparams_fn(p, outparams):
  43778. return _mupdf.ll_fz_drop_imp_outparams_fn(p, outparams)
  43779. class ll_fz_drop_imp16_outparams(object):
  43780. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43781. __repr__ = _swig_repr
  43782. refs = property(_mupdf.ll_fz_drop_imp16_outparams_refs_get, _mupdf.ll_fz_drop_imp16_outparams_refs_set)
  43783. def __init__(self):
  43784. _mupdf.ll_fz_drop_imp16_outparams_swiginit(self, _mupdf.new_ll_fz_drop_imp16_outparams())
  43785. __swig_destroy__ = _mupdf.delete_ll_fz_drop_imp16_outparams
  43786. # Register ll_fz_drop_imp16_outparams in _mupdf:
  43787. _mupdf.ll_fz_drop_imp16_outparams_swigregister(ll_fz_drop_imp16_outparams)
  43788. def ll_fz_drop_imp16_outparams_fn(p, outparams):
  43789. return _mupdf.ll_fz_drop_imp16_outparams_fn(p, outparams)
  43790. class ll_fz_encode_character_with_fallback_outparams(object):
  43791. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43792. __repr__ = _swig_repr
  43793. 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)
  43794. def __init__(self):
  43795. _mupdf.ll_fz_encode_character_with_fallback_outparams_swiginit(self, _mupdf.new_ll_fz_encode_character_with_fallback_outparams())
  43796. __swig_destroy__ = _mupdf.delete_ll_fz_encode_character_with_fallback_outparams
  43797. # Register ll_fz_encode_character_with_fallback_outparams in _mupdf:
  43798. _mupdf.ll_fz_encode_character_with_fallback_outparams_swigregister(ll_fz_encode_character_with_fallback_outparams)
  43799. def ll_fz_encode_character_with_fallback_outparams_fn(font, unicode, script, language, outparams):
  43800. return _mupdf.ll_fz_encode_character_with_fallback_outparams_fn(font, unicode, script, language, outparams)
  43801. class ll_fz_error_callback_outparams(object):
  43802. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43803. __repr__ = _swig_repr
  43804. user = property(_mupdf.ll_fz_error_callback_outparams_user_get, _mupdf.ll_fz_error_callback_outparams_user_set)
  43805. def __init__(self):
  43806. _mupdf.ll_fz_error_callback_outparams_swiginit(self, _mupdf.new_ll_fz_error_callback_outparams())
  43807. __swig_destroy__ = _mupdf.delete_ll_fz_error_callback_outparams
  43808. # Register ll_fz_error_callback_outparams in _mupdf:
  43809. _mupdf.ll_fz_error_callback_outparams_swigregister(ll_fz_error_callback_outparams)
  43810. def ll_fz_error_callback_outparams_fn(outparams):
  43811. return _mupdf.ll_fz_error_callback_outparams_fn(outparams)
  43812. class ll_fz_eval_function_outparams(object):
  43813. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43814. __repr__ = _swig_repr
  43815. out = property(_mupdf.ll_fz_eval_function_outparams_out_get, _mupdf.ll_fz_eval_function_outparams_out_set)
  43816. def __init__(self):
  43817. _mupdf.ll_fz_eval_function_outparams_swiginit(self, _mupdf.new_ll_fz_eval_function_outparams())
  43818. __swig_destroy__ = _mupdf.delete_ll_fz_eval_function_outparams
  43819. # Register ll_fz_eval_function_outparams in _mupdf:
  43820. _mupdf.ll_fz_eval_function_outparams_swigregister(ll_fz_eval_function_outparams)
  43821. def ll_fz_eval_function_outparams_fn(func, _in, inlen, outlen, outparams):
  43822. return _mupdf.ll_fz_eval_function_outparams_fn(func, _in, inlen, outlen, outparams)
  43823. class ll_fz_fill_pixmap_with_color_outparams(object):
  43824. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43825. __repr__ = _swig_repr
  43826. color = property(_mupdf.ll_fz_fill_pixmap_with_color_outparams_color_get, _mupdf.ll_fz_fill_pixmap_with_color_outparams_color_set)
  43827. def __init__(self):
  43828. _mupdf.ll_fz_fill_pixmap_with_color_outparams_swiginit(self, _mupdf.new_ll_fz_fill_pixmap_with_color_outparams())
  43829. __swig_destroy__ = _mupdf.delete_ll_fz_fill_pixmap_with_color_outparams
  43830. # Register ll_fz_fill_pixmap_with_color_outparams in _mupdf:
  43831. _mupdf.ll_fz_fill_pixmap_with_color_outparams_swigregister(ll_fz_fill_pixmap_with_color_outparams)
  43832. def ll_fz_fill_pixmap_with_color_outparams_fn(pix, colorspace, color_params, outparams):
  43833. return _mupdf.ll_fz_fill_pixmap_with_color_outparams_fn(pix, colorspace, color_params, outparams)
  43834. class ll_fz_get_pixmap_from_image_outparams(object):
  43835. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43836. __repr__ = _swig_repr
  43837. w = property(_mupdf.ll_fz_get_pixmap_from_image_outparams_w_get, _mupdf.ll_fz_get_pixmap_from_image_outparams_w_set)
  43838. h = property(_mupdf.ll_fz_get_pixmap_from_image_outparams_h_get, _mupdf.ll_fz_get_pixmap_from_image_outparams_h_set)
  43839. def __init__(self):
  43840. _mupdf.ll_fz_get_pixmap_from_image_outparams_swiginit(self, _mupdf.new_ll_fz_get_pixmap_from_image_outparams())
  43841. __swig_destroy__ = _mupdf.delete_ll_fz_get_pixmap_from_image_outparams
  43842. # Register ll_fz_get_pixmap_from_image_outparams in _mupdf:
  43843. _mupdf.ll_fz_get_pixmap_from_image_outparams_swigregister(ll_fz_get_pixmap_from_image_outparams)
  43844. def ll_fz_get_pixmap_from_image_outparams_fn(image, subarea, ctm, outparams):
  43845. return _mupdf.ll_fz_get_pixmap_from_image_outparams_fn(image, subarea, ctm, outparams)
  43846. class ll_fz_getopt_outparams(object):
  43847. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43848. __repr__ = _swig_repr
  43849. nargv = property(_mupdf.ll_fz_getopt_outparams_nargv_get, _mupdf.ll_fz_getopt_outparams_nargv_set)
  43850. def __init__(self):
  43851. _mupdf.ll_fz_getopt_outparams_swiginit(self, _mupdf.new_ll_fz_getopt_outparams())
  43852. __swig_destroy__ = _mupdf.delete_ll_fz_getopt_outparams
  43853. # Register ll_fz_getopt_outparams in _mupdf:
  43854. _mupdf.ll_fz_getopt_outparams_swigregister(ll_fz_getopt_outparams)
  43855. def ll_fz_getopt_outparams_fn(nargc, ostr, outparams):
  43856. return _mupdf.ll_fz_getopt_outparams_fn(nargc, ostr, outparams)
  43857. class ll_fz_getopt_long_outparams(object):
  43858. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43859. __repr__ = _swig_repr
  43860. nargv = property(_mupdf.ll_fz_getopt_long_outparams_nargv_get, _mupdf.ll_fz_getopt_long_outparams_nargv_set)
  43861. def __init__(self):
  43862. _mupdf.ll_fz_getopt_long_outparams_swiginit(self, _mupdf.new_ll_fz_getopt_long_outparams())
  43863. __swig_destroy__ = _mupdf.delete_ll_fz_getopt_long_outparams
  43864. # Register ll_fz_getopt_long_outparams in _mupdf:
  43865. _mupdf.ll_fz_getopt_long_outparams_swigregister(ll_fz_getopt_long_outparams)
  43866. def ll_fz_getopt_long_outparams_fn(nargc, ostr, longopts, outparams):
  43867. return _mupdf.ll_fz_getopt_long_outparams_fn(nargc, ostr, longopts, outparams)
  43868. class ll_fz_grisu_outparams(object):
  43869. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43870. __repr__ = _swig_repr
  43871. exp = property(_mupdf.ll_fz_grisu_outparams_exp_get, _mupdf.ll_fz_grisu_outparams_exp_set)
  43872. def __init__(self):
  43873. _mupdf.ll_fz_grisu_outparams_swiginit(self, _mupdf.new_ll_fz_grisu_outparams())
  43874. __swig_destroy__ = _mupdf.delete_ll_fz_grisu_outparams
  43875. # Register ll_fz_grisu_outparams in _mupdf:
  43876. _mupdf.ll_fz_grisu_outparams_swigregister(ll_fz_grisu_outparams)
  43877. def ll_fz_grisu_outparams_fn(f, s, outparams):
  43878. return _mupdf.ll_fz_grisu_outparams_fn(f, s, outparams)
  43879. class ll_fz_has_option_outparams(object):
  43880. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43881. __repr__ = _swig_repr
  43882. val = property(_mupdf.ll_fz_has_option_outparams_val_get, _mupdf.ll_fz_has_option_outparams_val_set)
  43883. def __init__(self):
  43884. _mupdf.ll_fz_has_option_outparams_swiginit(self, _mupdf.new_ll_fz_has_option_outparams())
  43885. __swig_destroy__ = _mupdf.delete_ll_fz_has_option_outparams
  43886. # Register ll_fz_has_option_outparams in _mupdf:
  43887. _mupdf.ll_fz_has_option_outparams_swigregister(ll_fz_has_option_outparams)
  43888. def ll_fz_has_option_outparams_fn(opts, key, outparams):
  43889. return _mupdf.ll_fz_has_option_outparams_fn(opts, key, outparams)
  43890. class ll_fz_image_resolution_outparams(object):
  43891. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43892. __repr__ = _swig_repr
  43893. xres = property(_mupdf.ll_fz_image_resolution_outparams_xres_get, _mupdf.ll_fz_image_resolution_outparams_xres_set)
  43894. yres = property(_mupdf.ll_fz_image_resolution_outparams_yres_get, _mupdf.ll_fz_image_resolution_outparams_yres_set)
  43895. def __init__(self):
  43896. _mupdf.ll_fz_image_resolution_outparams_swiginit(self, _mupdf.new_ll_fz_image_resolution_outparams())
  43897. __swig_destroy__ = _mupdf.delete_ll_fz_image_resolution_outparams
  43898. # Register ll_fz_image_resolution_outparams in _mupdf:
  43899. _mupdf.ll_fz_image_resolution_outparams_swigregister(ll_fz_image_resolution_outparams)
  43900. def ll_fz_image_resolution_outparams_fn(image, outparams):
  43901. return _mupdf.ll_fz_image_resolution_outparams_fn(image, outparams)
  43902. class ll_fz_keep_imp_outparams(object):
  43903. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43904. __repr__ = _swig_repr
  43905. refs = property(_mupdf.ll_fz_keep_imp_outparams_refs_get, _mupdf.ll_fz_keep_imp_outparams_refs_set)
  43906. def __init__(self):
  43907. _mupdf.ll_fz_keep_imp_outparams_swiginit(self, _mupdf.new_ll_fz_keep_imp_outparams())
  43908. __swig_destroy__ = _mupdf.delete_ll_fz_keep_imp_outparams
  43909. # Register ll_fz_keep_imp_outparams in _mupdf:
  43910. _mupdf.ll_fz_keep_imp_outparams_swigregister(ll_fz_keep_imp_outparams)
  43911. def ll_fz_keep_imp_outparams_fn(p, outparams):
  43912. return _mupdf.ll_fz_keep_imp_outparams_fn(p, outparams)
  43913. class ll_fz_keep_imp16_outparams(object):
  43914. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43915. __repr__ = _swig_repr
  43916. refs = property(_mupdf.ll_fz_keep_imp16_outparams_refs_get, _mupdf.ll_fz_keep_imp16_outparams_refs_set)
  43917. def __init__(self):
  43918. _mupdf.ll_fz_keep_imp16_outparams_swiginit(self, _mupdf.new_ll_fz_keep_imp16_outparams())
  43919. __swig_destroy__ = _mupdf.delete_ll_fz_keep_imp16_outparams
  43920. # Register ll_fz_keep_imp16_outparams in _mupdf:
  43921. _mupdf.ll_fz_keep_imp16_outparams_swigregister(ll_fz_keep_imp16_outparams)
  43922. def ll_fz_keep_imp16_outparams_fn(p, outparams):
  43923. return _mupdf.ll_fz_keep_imp16_outparams_fn(p, outparams)
  43924. class ll_fz_keep_imp_locked_outparams(object):
  43925. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43926. __repr__ = _swig_repr
  43927. refs = property(_mupdf.ll_fz_keep_imp_locked_outparams_refs_get, _mupdf.ll_fz_keep_imp_locked_outparams_refs_set)
  43928. def __init__(self):
  43929. _mupdf.ll_fz_keep_imp_locked_outparams_swiginit(self, _mupdf.new_ll_fz_keep_imp_locked_outparams())
  43930. __swig_destroy__ = _mupdf.delete_ll_fz_keep_imp_locked_outparams
  43931. # Register ll_fz_keep_imp_locked_outparams in _mupdf:
  43932. _mupdf.ll_fz_keep_imp_locked_outparams_swigregister(ll_fz_keep_imp_locked_outparams)
  43933. def ll_fz_keep_imp_locked_outparams_fn(p, outparams):
  43934. return _mupdf.ll_fz_keep_imp_locked_outparams_fn(p, outparams)
  43935. class ll_fz_lookup_base14_font_outparams(object):
  43936. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43937. __repr__ = _swig_repr
  43938. len = property(_mupdf.ll_fz_lookup_base14_font_outparams_len_get, _mupdf.ll_fz_lookup_base14_font_outparams_len_set)
  43939. def __init__(self):
  43940. _mupdf.ll_fz_lookup_base14_font_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_base14_font_outparams())
  43941. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_base14_font_outparams
  43942. # Register ll_fz_lookup_base14_font_outparams in _mupdf:
  43943. _mupdf.ll_fz_lookup_base14_font_outparams_swigregister(ll_fz_lookup_base14_font_outparams)
  43944. def ll_fz_lookup_base14_font_outparams_fn(name, outparams):
  43945. return _mupdf.ll_fz_lookup_base14_font_outparams_fn(name, outparams)
  43946. class ll_fz_lookup_builtin_font_outparams(object):
  43947. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43948. __repr__ = _swig_repr
  43949. len = property(_mupdf.ll_fz_lookup_builtin_font_outparams_len_get, _mupdf.ll_fz_lookup_builtin_font_outparams_len_set)
  43950. def __init__(self):
  43951. _mupdf.ll_fz_lookup_builtin_font_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_builtin_font_outparams())
  43952. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_builtin_font_outparams
  43953. # Register ll_fz_lookup_builtin_font_outparams in _mupdf:
  43954. _mupdf.ll_fz_lookup_builtin_font_outparams_swigregister(ll_fz_lookup_builtin_font_outparams)
  43955. def ll_fz_lookup_builtin_font_outparams_fn(name, bold, italic, outparams):
  43956. return _mupdf.ll_fz_lookup_builtin_font_outparams_fn(name, bold, italic, outparams)
  43957. class ll_fz_lookup_cjk_font_outparams(object):
  43958. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43959. __repr__ = _swig_repr
  43960. len = property(_mupdf.ll_fz_lookup_cjk_font_outparams_len_get, _mupdf.ll_fz_lookup_cjk_font_outparams_len_set)
  43961. index = property(_mupdf.ll_fz_lookup_cjk_font_outparams_index_get, _mupdf.ll_fz_lookup_cjk_font_outparams_index_set)
  43962. def __init__(self):
  43963. _mupdf.ll_fz_lookup_cjk_font_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_cjk_font_outparams())
  43964. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_cjk_font_outparams
  43965. # Register ll_fz_lookup_cjk_font_outparams in _mupdf:
  43966. _mupdf.ll_fz_lookup_cjk_font_outparams_swigregister(ll_fz_lookup_cjk_font_outparams)
  43967. def ll_fz_lookup_cjk_font_outparams_fn(ordering, outparams):
  43968. return _mupdf.ll_fz_lookup_cjk_font_outparams_fn(ordering, outparams)
  43969. class ll_fz_lookup_cjk_font_by_language_outparams(object):
  43970. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43971. __repr__ = _swig_repr
  43972. len = property(_mupdf.ll_fz_lookup_cjk_font_by_language_outparams_len_get, _mupdf.ll_fz_lookup_cjk_font_by_language_outparams_len_set)
  43973. subfont = property(_mupdf.ll_fz_lookup_cjk_font_by_language_outparams_subfont_get, _mupdf.ll_fz_lookup_cjk_font_by_language_outparams_subfont_set)
  43974. def __init__(self):
  43975. _mupdf.ll_fz_lookup_cjk_font_by_language_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_cjk_font_by_language_outparams())
  43976. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_cjk_font_by_language_outparams
  43977. # Register ll_fz_lookup_cjk_font_by_language_outparams in _mupdf:
  43978. _mupdf.ll_fz_lookup_cjk_font_by_language_outparams_swigregister(ll_fz_lookup_cjk_font_by_language_outparams)
  43979. def ll_fz_lookup_cjk_font_by_language_outparams_fn(lang, outparams):
  43980. return _mupdf.ll_fz_lookup_cjk_font_by_language_outparams_fn(lang, outparams)
  43981. class ll_fz_lookup_noto_boxes_font_outparams(object):
  43982. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43983. __repr__ = _swig_repr
  43984. len = property(_mupdf.ll_fz_lookup_noto_boxes_font_outparams_len_get, _mupdf.ll_fz_lookup_noto_boxes_font_outparams_len_set)
  43985. def __init__(self):
  43986. _mupdf.ll_fz_lookup_noto_boxes_font_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_noto_boxes_font_outparams())
  43987. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_noto_boxes_font_outparams
  43988. # Register ll_fz_lookup_noto_boxes_font_outparams in _mupdf:
  43989. _mupdf.ll_fz_lookup_noto_boxes_font_outparams_swigregister(ll_fz_lookup_noto_boxes_font_outparams)
  43990. def ll_fz_lookup_noto_boxes_font_outparams_fn(outparams):
  43991. return _mupdf.ll_fz_lookup_noto_boxes_font_outparams_fn(outparams)
  43992. class ll_fz_lookup_noto_emoji_font_outparams(object):
  43993. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  43994. __repr__ = _swig_repr
  43995. len = property(_mupdf.ll_fz_lookup_noto_emoji_font_outparams_len_get, _mupdf.ll_fz_lookup_noto_emoji_font_outparams_len_set)
  43996. def __init__(self):
  43997. _mupdf.ll_fz_lookup_noto_emoji_font_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_noto_emoji_font_outparams())
  43998. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_noto_emoji_font_outparams
  43999. # Register ll_fz_lookup_noto_emoji_font_outparams in _mupdf:
  44000. _mupdf.ll_fz_lookup_noto_emoji_font_outparams_swigregister(ll_fz_lookup_noto_emoji_font_outparams)
  44001. def ll_fz_lookup_noto_emoji_font_outparams_fn(outparams):
  44002. return _mupdf.ll_fz_lookup_noto_emoji_font_outparams_fn(outparams)
  44003. class ll_fz_lookup_noto_font_outparams(object):
  44004. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44005. __repr__ = _swig_repr
  44006. len = property(_mupdf.ll_fz_lookup_noto_font_outparams_len_get, _mupdf.ll_fz_lookup_noto_font_outparams_len_set)
  44007. subfont = property(_mupdf.ll_fz_lookup_noto_font_outparams_subfont_get, _mupdf.ll_fz_lookup_noto_font_outparams_subfont_set)
  44008. def __init__(self):
  44009. _mupdf.ll_fz_lookup_noto_font_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_noto_font_outparams())
  44010. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_noto_font_outparams
  44011. # Register ll_fz_lookup_noto_font_outparams in _mupdf:
  44012. _mupdf.ll_fz_lookup_noto_font_outparams_swigregister(ll_fz_lookup_noto_font_outparams)
  44013. def ll_fz_lookup_noto_font_outparams_fn(script, lang, outparams):
  44014. return _mupdf.ll_fz_lookup_noto_font_outparams_fn(script, lang, outparams)
  44015. class ll_fz_lookup_noto_math_font_outparams(object):
  44016. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44017. __repr__ = _swig_repr
  44018. len = property(_mupdf.ll_fz_lookup_noto_math_font_outparams_len_get, _mupdf.ll_fz_lookup_noto_math_font_outparams_len_set)
  44019. def __init__(self):
  44020. _mupdf.ll_fz_lookup_noto_math_font_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_noto_math_font_outparams())
  44021. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_noto_math_font_outparams
  44022. # Register ll_fz_lookup_noto_math_font_outparams in _mupdf:
  44023. _mupdf.ll_fz_lookup_noto_math_font_outparams_swigregister(ll_fz_lookup_noto_math_font_outparams)
  44024. def ll_fz_lookup_noto_math_font_outparams_fn(outparams):
  44025. return _mupdf.ll_fz_lookup_noto_math_font_outparams_fn(outparams)
  44026. class ll_fz_lookup_noto_music_font_outparams(object):
  44027. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44028. __repr__ = _swig_repr
  44029. len = property(_mupdf.ll_fz_lookup_noto_music_font_outparams_len_get, _mupdf.ll_fz_lookup_noto_music_font_outparams_len_set)
  44030. def __init__(self):
  44031. _mupdf.ll_fz_lookup_noto_music_font_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_noto_music_font_outparams())
  44032. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_noto_music_font_outparams
  44033. # Register ll_fz_lookup_noto_music_font_outparams in _mupdf:
  44034. _mupdf.ll_fz_lookup_noto_music_font_outparams_swigregister(ll_fz_lookup_noto_music_font_outparams)
  44035. def ll_fz_lookup_noto_music_font_outparams_fn(outparams):
  44036. return _mupdf.ll_fz_lookup_noto_music_font_outparams_fn(outparams)
  44037. class ll_fz_lookup_noto_symbol1_font_outparams(object):
  44038. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44039. __repr__ = _swig_repr
  44040. len = property(_mupdf.ll_fz_lookup_noto_symbol1_font_outparams_len_get, _mupdf.ll_fz_lookup_noto_symbol1_font_outparams_len_set)
  44041. def __init__(self):
  44042. _mupdf.ll_fz_lookup_noto_symbol1_font_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_noto_symbol1_font_outparams())
  44043. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_noto_symbol1_font_outparams
  44044. # Register ll_fz_lookup_noto_symbol1_font_outparams in _mupdf:
  44045. _mupdf.ll_fz_lookup_noto_symbol1_font_outparams_swigregister(ll_fz_lookup_noto_symbol1_font_outparams)
  44046. def ll_fz_lookup_noto_symbol1_font_outparams_fn(outparams):
  44047. return _mupdf.ll_fz_lookup_noto_symbol1_font_outparams_fn(outparams)
  44048. class ll_fz_lookup_noto_symbol2_font_outparams(object):
  44049. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44050. __repr__ = _swig_repr
  44051. len = property(_mupdf.ll_fz_lookup_noto_symbol2_font_outparams_len_get, _mupdf.ll_fz_lookup_noto_symbol2_font_outparams_len_set)
  44052. def __init__(self):
  44053. _mupdf.ll_fz_lookup_noto_symbol2_font_outparams_swiginit(self, _mupdf.new_ll_fz_lookup_noto_symbol2_font_outparams())
  44054. __swig_destroy__ = _mupdf.delete_ll_fz_lookup_noto_symbol2_font_outparams
  44055. # Register ll_fz_lookup_noto_symbol2_font_outparams in _mupdf:
  44056. _mupdf.ll_fz_lookup_noto_symbol2_font_outparams_swigregister(ll_fz_lookup_noto_symbol2_font_outparams)
  44057. def ll_fz_lookup_noto_symbol2_font_outparams_fn(outparams):
  44058. return _mupdf.ll_fz_lookup_noto_symbol2_font_outparams_fn(outparams)
  44059. class ll_fz_new_brotli_data_outparams(object):
  44060. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44061. __repr__ = _swig_repr
  44062. compressed_length = property(_mupdf.ll_fz_new_brotli_data_outparams_compressed_length_get, _mupdf.ll_fz_new_brotli_data_outparams_compressed_length_set)
  44063. def __init__(self):
  44064. _mupdf.ll_fz_new_brotli_data_outparams_swiginit(self, _mupdf.new_ll_fz_new_brotli_data_outparams())
  44065. __swig_destroy__ = _mupdf.delete_ll_fz_new_brotli_data_outparams
  44066. # Register ll_fz_new_brotli_data_outparams in _mupdf:
  44067. _mupdf.ll_fz_new_brotli_data_outparams_swigregister(ll_fz_new_brotli_data_outparams)
  44068. def ll_fz_new_brotli_data_outparams_fn(source, source_length, level, outparams):
  44069. return _mupdf.ll_fz_new_brotli_data_outparams_fn(source, source_length, level, outparams)
  44070. class ll_fz_new_brotli_data_from_buffer_outparams(object):
  44071. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44072. __repr__ = _swig_repr
  44073. 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)
  44074. def __init__(self):
  44075. _mupdf.ll_fz_new_brotli_data_from_buffer_outparams_swiginit(self, _mupdf.new_ll_fz_new_brotli_data_from_buffer_outparams())
  44076. __swig_destroy__ = _mupdf.delete_ll_fz_new_brotli_data_from_buffer_outparams
  44077. # Register ll_fz_new_brotli_data_from_buffer_outparams in _mupdf:
  44078. _mupdf.ll_fz_new_brotli_data_from_buffer_outparams_swigregister(ll_fz_new_brotli_data_from_buffer_outparams)
  44079. def ll_fz_new_brotli_data_from_buffer_outparams_fn(buffer, level, outparams):
  44080. return _mupdf.ll_fz_new_brotli_data_from_buffer_outparams_fn(buffer, level, outparams)
  44081. class ll_fz_new_deflated_data_outparams(object):
  44082. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44083. __repr__ = _swig_repr
  44084. compressed_length = property(_mupdf.ll_fz_new_deflated_data_outparams_compressed_length_get, _mupdf.ll_fz_new_deflated_data_outparams_compressed_length_set)
  44085. def __init__(self):
  44086. _mupdf.ll_fz_new_deflated_data_outparams_swiginit(self, _mupdf.new_ll_fz_new_deflated_data_outparams())
  44087. __swig_destroy__ = _mupdf.delete_ll_fz_new_deflated_data_outparams
  44088. # Register ll_fz_new_deflated_data_outparams in _mupdf:
  44089. _mupdf.ll_fz_new_deflated_data_outparams_swigregister(ll_fz_new_deflated_data_outparams)
  44090. def ll_fz_new_deflated_data_outparams_fn(source, source_length, level, outparams):
  44091. return _mupdf.ll_fz_new_deflated_data_outparams_fn(source, source_length, level, outparams)
  44092. class ll_fz_new_deflated_data_from_buffer_outparams(object):
  44093. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44094. __repr__ = _swig_repr
  44095. 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)
  44096. def __init__(self):
  44097. _mupdf.ll_fz_new_deflated_data_from_buffer_outparams_swiginit(self, _mupdf.new_ll_fz_new_deflated_data_from_buffer_outparams())
  44098. __swig_destroy__ = _mupdf.delete_ll_fz_new_deflated_data_from_buffer_outparams
  44099. # Register ll_fz_new_deflated_data_from_buffer_outparams in _mupdf:
  44100. _mupdf.ll_fz_new_deflated_data_from_buffer_outparams_swigregister(ll_fz_new_deflated_data_from_buffer_outparams)
  44101. def ll_fz_new_deflated_data_from_buffer_outparams_fn(buffer, level, outparams):
  44102. return _mupdf.ll_fz_new_deflated_data_from_buffer_outparams_fn(buffer, level, outparams)
  44103. class ll_fz_new_display_list_from_svg_outparams(object):
  44104. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44105. __repr__ = _swig_repr
  44106. w = property(_mupdf.ll_fz_new_display_list_from_svg_outparams_w_get, _mupdf.ll_fz_new_display_list_from_svg_outparams_w_set)
  44107. h = property(_mupdf.ll_fz_new_display_list_from_svg_outparams_h_get, _mupdf.ll_fz_new_display_list_from_svg_outparams_h_set)
  44108. def __init__(self):
  44109. _mupdf.ll_fz_new_display_list_from_svg_outparams_swiginit(self, _mupdf.new_ll_fz_new_display_list_from_svg_outparams())
  44110. __swig_destroy__ = _mupdf.delete_ll_fz_new_display_list_from_svg_outparams
  44111. # Register ll_fz_new_display_list_from_svg_outparams in _mupdf:
  44112. _mupdf.ll_fz_new_display_list_from_svg_outparams_swigregister(ll_fz_new_display_list_from_svg_outparams)
  44113. def ll_fz_new_display_list_from_svg_outparams_fn(buf, base_uri, dir, outparams):
  44114. return _mupdf.ll_fz_new_display_list_from_svg_outparams_fn(buf, base_uri, dir, outparams)
  44115. class ll_fz_new_display_list_from_svg_xml_outparams(object):
  44116. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44117. __repr__ = _swig_repr
  44118. 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)
  44119. 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)
  44120. def __init__(self):
  44121. _mupdf.ll_fz_new_display_list_from_svg_xml_outparams_swiginit(self, _mupdf.new_ll_fz_new_display_list_from_svg_xml_outparams())
  44122. __swig_destroy__ = _mupdf.delete_ll_fz_new_display_list_from_svg_xml_outparams
  44123. # Register ll_fz_new_display_list_from_svg_xml_outparams in _mupdf:
  44124. _mupdf.ll_fz_new_display_list_from_svg_xml_outparams_swigregister(ll_fz_new_display_list_from_svg_xml_outparams)
  44125. def ll_fz_new_display_list_from_svg_xml_outparams_fn(xmldoc, xml, base_uri, dir, outparams):
  44126. return _mupdf.ll_fz_new_display_list_from_svg_xml_outparams_fn(xmldoc, xml, base_uri, dir, outparams)
  44127. class ll_fz_new_draw_device_with_options_outparams(object):
  44128. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44129. __repr__ = _swig_repr
  44130. pixmap = property(_mupdf.ll_fz_new_draw_device_with_options_outparams_pixmap_get, _mupdf.ll_fz_new_draw_device_with_options_outparams_pixmap_set)
  44131. def __init__(self):
  44132. _mupdf.ll_fz_new_draw_device_with_options_outparams_swiginit(self, _mupdf.new_ll_fz_new_draw_device_with_options_outparams())
  44133. __swig_destroy__ = _mupdf.delete_ll_fz_new_draw_device_with_options_outparams
  44134. # Register ll_fz_new_draw_device_with_options_outparams in _mupdf:
  44135. _mupdf.ll_fz_new_draw_device_with_options_outparams_swigregister(ll_fz_new_draw_device_with_options_outparams)
  44136. def ll_fz_new_draw_device_with_options_outparams_fn(options, mediabox, outparams):
  44137. return _mupdf.ll_fz_new_draw_device_with_options_outparams_fn(options, mediabox, outparams)
  44138. class ll_fz_new_svg_device_with_id_outparams(object):
  44139. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44140. __repr__ = _swig_repr
  44141. id = property(_mupdf.ll_fz_new_svg_device_with_id_outparams_id_get, _mupdf.ll_fz_new_svg_device_with_id_outparams_id_set)
  44142. def __init__(self):
  44143. _mupdf.ll_fz_new_svg_device_with_id_outparams_swiginit(self, _mupdf.new_ll_fz_new_svg_device_with_id_outparams())
  44144. __swig_destroy__ = _mupdf.delete_ll_fz_new_svg_device_with_id_outparams
  44145. # Register ll_fz_new_svg_device_with_id_outparams in _mupdf:
  44146. _mupdf.ll_fz_new_svg_device_with_id_outparams_swigregister(ll_fz_new_svg_device_with_id_outparams)
  44147. def ll_fz_new_svg_device_with_id_outparams_fn(out, page_width, page_height, text_format, reuse_images, outparams):
  44148. return _mupdf.ll_fz_new_svg_device_with_id_outparams_fn(out, page_width, page_height, text_format, reuse_images, outparams)
  44149. class ll_fz_new_test_device_outparams(object):
  44150. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44151. __repr__ = _swig_repr
  44152. is_color = property(_mupdf.ll_fz_new_test_device_outparams_is_color_get, _mupdf.ll_fz_new_test_device_outparams_is_color_set)
  44153. def __init__(self):
  44154. _mupdf.ll_fz_new_test_device_outparams_swiginit(self, _mupdf.new_ll_fz_new_test_device_outparams())
  44155. __swig_destroy__ = _mupdf.delete_ll_fz_new_test_device_outparams
  44156. # Register ll_fz_new_test_device_outparams in _mupdf:
  44157. _mupdf.ll_fz_new_test_device_outparams_swigregister(ll_fz_new_test_device_outparams)
  44158. def ll_fz_new_test_device_outparams_fn(threshold, options, passthrough, outparams):
  44159. return _mupdf.ll_fz_new_test_device_outparams_fn(threshold, options, passthrough, outparams)
  44160. class ll_fz_open_image_decomp_stream_outparams(object):
  44161. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44162. __repr__ = _swig_repr
  44163. l2factor = property(_mupdf.ll_fz_open_image_decomp_stream_outparams_l2factor_get, _mupdf.ll_fz_open_image_decomp_stream_outparams_l2factor_set)
  44164. def __init__(self):
  44165. _mupdf.ll_fz_open_image_decomp_stream_outparams_swiginit(self, _mupdf.new_ll_fz_open_image_decomp_stream_outparams())
  44166. __swig_destroy__ = _mupdf.delete_ll_fz_open_image_decomp_stream_outparams
  44167. # Register ll_fz_open_image_decomp_stream_outparams in _mupdf:
  44168. _mupdf.ll_fz_open_image_decomp_stream_outparams_swigregister(ll_fz_open_image_decomp_stream_outparams)
  44169. def ll_fz_open_image_decomp_stream_outparams_fn(arg_0, arg_1, outparams):
  44170. return _mupdf.ll_fz_open_image_decomp_stream_outparams_fn(arg_0, arg_1, outparams)
  44171. class ll_fz_open_image_decomp_stream_from_buffer_outparams(object):
  44172. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44173. __repr__ = _swig_repr
  44174. 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)
  44175. def __init__(self):
  44176. _mupdf.ll_fz_open_image_decomp_stream_from_buffer_outparams_swiginit(self, _mupdf.new_ll_fz_open_image_decomp_stream_from_buffer_outparams())
  44177. __swig_destroy__ = _mupdf.delete_ll_fz_open_image_decomp_stream_from_buffer_outparams
  44178. # Register ll_fz_open_image_decomp_stream_from_buffer_outparams in _mupdf:
  44179. _mupdf.ll_fz_open_image_decomp_stream_from_buffer_outparams_swigregister(ll_fz_open_image_decomp_stream_from_buffer_outparams)
  44180. def ll_fz_open_image_decomp_stream_from_buffer_outparams_fn(arg_0, outparams):
  44181. return _mupdf.ll_fz_open_image_decomp_stream_from_buffer_outparams_fn(arg_0, outparams)
  44182. class ll_fz_page_presentation_outparams(object):
  44183. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44184. __repr__ = _swig_repr
  44185. duration = property(_mupdf.ll_fz_page_presentation_outparams_duration_get, _mupdf.ll_fz_page_presentation_outparams_duration_set)
  44186. def __init__(self):
  44187. _mupdf.ll_fz_page_presentation_outparams_swiginit(self, _mupdf.new_ll_fz_page_presentation_outparams())
  44188. __swig_destroy__ = _mupdf.delete_ll_fz_page_presentation_outparams
  44189. # Register ll_fz_page_presentation_outparams in _mupdf:
  44190. _mupdf.ll_fz_page_presentation_outparams_swigregister(ll_fz_page_presentation_outparams)
  44191. def ll_fz_page_presentation_outparams_fn(page, transition, outparams):
  44192. return _mupdf.ll_fz_page_presentation_outparams_fn(page, transition, outparams)
  44193. class ll_fz_paint_shade_outparams(object):
  44194. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44195. __repr__ = _swig_repr
  44196. cache = property(_mupdf.ll_fz_paint_shade_outparams_cache_get, _mupdf.ll_fz_paint_shade_outparams_cache_set)
  44197. def __init__(self):
  44198. _mupdf.ll_fz_paint_shade_outparams_swiginit(self, _mupdf.new_ll_fz_paint_shade_outparams())
  44199. __swig_destroy__ = _mupdf.delete_ll_fz_paint_shade_outparams
  44200. # Register ll_fz_paint_shade_outparams in _mupdf:
  44201. _mupdf.ll_fz_paint_shade_outparams_swigregister(ll_fz_paint_shade_outparams)
  44202. def ll_fz_paint_shade_outparams_fn(shade, override_cs, ctm, dest, color_params, bbox, eop, outparams):
  44203. return _mupdf.ll_fz_paint_shade_outparams_fn(shade, override_cs, ctm, dest, color_params, bbox, eop, outparams)
  44204. class ll_fz_parse_page_range_outparams(object):
  44205. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44206. __repr__ = _swig_repr
  44207. a = property(_mupdf.ll_fz_parse_page_range_outparams_a_get, _mupdf.ll_fz_parse_page_range_outparams_a_set)
  44208. b = property(_mupdf.ll_fz_parse_page_range_outparams_b_get, _mupdf.ll_fz_parse_page_range_outparams_b_set)
  44209. def __init__(self):
  44210. _mupdf.ll_fz_parse_page_range_outparams_swiginit(self, _mupdf.new_ll_fz_parse_page_range_outparams())
  44211. __swig_destroy__ = _mupdf.delete_ll_fz_parse_page_range_outparams
  44212. # Register ll_fz_parse_page_range_outparams in _mupdf:
  44213. _mupdf.ll_fz_parse_page_range_outparams_swigregister(ll_fz_parse_page_range_outparams)
  44214. def ll_fz_parse_page_range_outparams_fn(s, n, outparams):
  44215. return _mupdf.ll_fz_parse_page_range_outparams_fn(s, n, outparams)
  44216. class ll_fz_read_best_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. truncated = property(_mupdf.ll_fz_read_best_outparams_truncated_get, _mupdf.ll_fz_read_best_outparams_truncated_set)
  44220. def __init__(self):
  44221. _mupdf.ll_fz_read_best_outparams_swiginit(self, _mupdf.new_ll_fz_read_best_outparams())
  44222. __swig_destroy__ = _mupdf.delete_ll_fz_read_best_outparams
  44223. # Register ll_fz_read_best_outparams in _mupdf:
  44224. _mupdf.ll_fz_read_best_outparams_swigregister(ll_fz_read_best_outparams)
  44225. def ll_fz_read_best_outparams_fn(stm, initial, worst_case, outparams):
  44226. return _mupdf.ll_fz_read_best_outparams_fn(stm, initial, worst_case, outparams)
  44227. class ll_fz_resolve_link_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. xp = property(_mupdf.ll_fz_resolve_link_outparams_xp_get, _mupdf.ll_fz_resolve_link_outparams_xp_set)
  44231. yp = property(_mupdf.ll_fz_resolve_link_outparams_yp_get, _mupdf.ll_fz_resolve_link_outparams_yp_set)
  44232. def __init__(self):
  44233. _mupdf.ll_fz_resolve_link_outparams_swiginit(self, _mupdf.new_ll_fz_resolve_link_outparams())
  44234. __swig_destroy__ = _mupdf.delete_ll_fz_resolve_link_outparams
  44235. # Register ll_fz_resolve_link_outparams in _mupdf:
  44236. _mupdf.ll_fz_resolve_link_outparams_swigregister(ll_fz_resolve_link_outparams)
  44237. def ll_fz_resolve_link_outparams_fn(doc, uri, outparams):
  44238. return _mupdf.ll_fz_resolve_link_outparams_fn(doc, uri, outparams)
  44239. class ll_fz_search_chapter_page_number_outparams(object):
  44240. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44241. __repr__ = _swig_repr
  44242. 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)
  44243. def __init__(self):
  44244. _mupdf.ll_fz_search_chapter_page_number_outparams_swiginit(self, _mupdf.new_ll_fz_search_chapter_page_number_outparams())
  44245. __swig_destroy__ = _mupdf.delete_ll_fz_search_chapter_page_number_outparams
  44246. # Register ll_fz_search_chapter_page_number_outparams in _mupdf:
  44247. _mupdf.ll_fz_search_chapter_page_number_outparams_swigregister(ll_fz_search_chapter_page_number_outparams)
  44248. def ll_fz_search_chapter_page_number_outparams_fn(doc, chapter, page, needle, hit_bbox, hit_max, outparams):
  44249. return _mupdf.ll_fz_search_chapter_page_number_outparams_fn(doc, chapter, page, needle, hit_bbox, hit_max, outparams)
  44250. class ll_fz_search_display_list_outparams(object):
  44251. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44252. __repr__ = _swig_repr
  44253. hit_mark = property(_mupdf.ll_fz_search_display_list_outparams_hit_mark_get, _mupdf.ll_fz_search_display_list_outparams_hit_mark_set)
  44254. def __init__(self):
  44255. _mupdf.ll_fz_search_display_list_outparams_swiginit(self, _mupdf.new_ll_fz_search_display_list_outparams())
  44256. __swig_destroy__ = _mupdf.delete_ll_fz_search_display_list_outparams
  44257. # Register ll_fz_search_display_list_outparams in _mupdf:
  44258. _mupdf.ll_fz_search_display_list_outparams_swigregister(ll_fz_search_display_list_outparams)
  44259. def ll_fz_search_display_list_outparams_fn(list, needle, hit_bbox, hit_max, outparams):
  44260. return _mupdf.ll_fz_search_display_list_outparams_fn(list, needle, hit_bbox, hit_max, outparams)
  44261. class ll_fz_search_page_outparams(object):
  44262. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44263. __repr__ = _swig_repr
  44264. hit_mark = property(_mupdf.ll_fz_search_page_outparams_hit_mark_get, _mupdf.ll_fz_search_page_outparams_hit_mark_set)
  44265. def __init__(self):
  44266. _mupdf.ll_fz_search_page_outparams_swiginit(self, _mupdf.new_ll_fz_search_page_outparams())
  44267. __swig_destroy__ = _mupdf.delete_ll_fz_search_page_outparams
  44268. # Register ll_fz_search_page_outparams in _mupdf:
  44269. _mupdf.ll_fz_search_page_outparams_swigregister(ll_fz_search_page_outparams)
  44270. def ll_fz_search_page_outparams_fn(page, needle, hit_bbox, hit_max, outparams):
  44271. return _mupdf.ll_fz_search_page_outparams_fn(page, needle, hit_bbox, hit_max, outparams)
  44272. class ll_fz_search_page_number_outparams(object):
  44273. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44274. __repr__ = _swig_repr
  44275. hit_mark = property(_mupdf.ll_fz_search_page_number_outparams_hit_mark_get, _mupdf.ll_fz_search_page_number_outparams_hit_mark_set)
  44276. def __init__(self):
  44277. _mupdf.ll_fz_search_page_number_outparams_swiginit(self, _mupdf.new_ll_fz_search_page_number_outparams())
  44278. __swig_destroy__ = _mupdf.delete_ll_fz_search_page_number_outparams
  44279. # Register ll_fz_search_page_number_outparams in _mupdf:
  44280. _mupdf.ll_fz_search_page_number_outparams_swigregister(ll_fz_search_page_number_outparams)
  44281. def ll_fz_search_page_number_outparams_fn(doc, number, needle, hit_bbox, hit_max, outparams):
  44282. return _mupdf.ll_fz_search_page_number_outparams_fn(doc, number, needle, hit_bbox, hit_max, outparams)
  44283. class ll_fz_search_stext_page_outparams(object):
  44284. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44285. __repr__ = _swig_repr
  44286. hit_mark = property(_mupdf.ll_fz_search_stext_page_outparams_hit_mark_get, _mupdf.ll_fz_search_stext_page_outparams_hit_mark_set)
  44287. def __init__(self):
  44288. _mupdf.ll_fz_search_stext_page_outparams_swiginit(self, _mupdf.new_ll_fz_search_stext_page_outparams())
  44289. __swig_destroy__ = _mupdf.delete_ll_fz_search_stext_page_outparams
  44290. # Register ll_fz_search_stext_page_outparams in _mupdf:
  44291. _mupdf.ll_fz_search_stext_page_outparams_swigregister(ll_fz_search_stext_page_outparams)
  44292. def ll_fz_search_stext_page_outparams_fn(text, needle, hit_bbox, hit_max, outparams):
  44293. return _mupdf.ll_fz_search_stext_page_outparams_fn(text, needle, hit_bbox, hit_max, outparams)
  44294. class ll_fz_separation_equivalent_outparams(object):
  44295. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44296. __repr__ = _swig_repr
  44297. dst_color = property(_mupdf.ll_fz_separation_equivalent_outparams_dst_color_get, _mupdf.ll_fz_separation_equivalent_outparams_dst_color_set)
  44298. def __init__(self):
  44299. _mupdf.ll_fz_separation_equivalent_outparams_swiginit(self, _mupdf.new_ll_fz_separation_equivalent_outparams())
  44300. __swig_destroy__ = _mupdf.delete_ll_fz_separation_equivalent_outparams
  44301. # Register ll_fz_separation_equivalent_outparams in _mupdf:
  44302. _mupdf.ll_fz_separation_equivalent_outparams_swigregister(ll_fz_separation_equivalent_outparams)
  44303. def ll_fz_separation_equivalent_outparams_fn(seps, idx, dst_cs, prf, color_params, outparams):
  44304. return _mupdf.ll_fz_separation_equivalent_outparams_fn(seps, idx, dst_cs, prf, color_params, outparams)
  44305. class ll_fz_store_scavenge_outparams(object):
  44306. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44307. __repr__ = _swig_repr
  44308. phase = property(_mupdf.ll_fz_store_scavenge_outparams_phase_get, _mupdf.ll_fz_store_scavenge_outparams_phase_set)
  44309. def __init__(self):
  44310. _mupdf.ll_fz_store_scavenge_outparams_swiginit(self, _mupdf.new_ll_fz_store_scavenge_outparams())
  44311. __swig_destroy__ = _mupdf.delete_ll_fz_store_scavenge_outparams
  44312. # Register ll_fz_store_scavenge_outparams in _mupdf:
  44313. _mupdf.ll_fz_store_scavenge_outparams_swigregister(ll_fz_store_scavenge_outparams)
  44314. def ll_fz_store_scavenge_outparams_fn(size, outparams):
  44315. return _mupdf.ll_fz_store_scavenge_outparams_fn(size, outparams)
  44316. class ll_fz_store_scavenge_external_outparams(object):
  44317. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44318. __repr__ = _swig_repr
  44319. phase = property(_mupdf.ll_fz_store_scavenge_external_outparams_phase_get, _mupdf.ll_fz_store_scavenge_external_outparams_phase_set)
  44320. def __init__(self):
  44321. _mupdf.ll_fz_store_scavenge_external_outparams_swiginit(self, _mupdf.new_ll_fz_store_scavenge_external_outparams())
  44322. __swig_destroy__ = _mupdf.delete_ll_fz_store_scavenge_external_outparams
  44323. # Register ll_fz_store_scavenge_external_outparams in _mupdf:
  44324. _mupdf.ll_fz_store_scavenge_external_outparams_swigregister(ll_fz_store_scavenge_external_outparams)
  44325. def ll_fz_store_scavenge_external_outparams_fn(size, outparams):
  44326. return _mupdf.ll_fz_store_scavenge_external_outparams_fn(size, outparams)
  44327. class ll_fz_strsep_outparams(object):
  44328. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44329. __repr__ = _swig_repr
  44330. stringp = property(_mupdf.ll_fz_strsep_outparams_stringp_get, _mupdf.ll_fz_strsep_outparams_stringp_set)
  44331. def __init__(self):
  44332. _mupdf.ll_fz_strsep_outparams_swiginit(self, _mupdf.new_ll_fz_strsep_outparams())
  44333. __swig_destroy__ = _mupdf.delete_ll_fz_strsep_outparams
  44334. # Register ll_fz_strsep_outparams in _mupdf:
  44335. _mupdf.ll_fz_strsep_outparams_swigregister(ll_fz_strsep_outparams)
  44336. def ll_fz_strsep_outparams_fn(delim, outparams):
  44337. return _mupdf.ll_fz_strsep_outparams_fn(delim, outparams)
  44338. class ll_fz_strtof_outparams(object):
  44339. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44340. __repr__ = _swig_repr
  44341. es = property(_mupdf.ll_fz_strtof_outparams_es_get, _mupdf.ll_fz_strtof_outparams_es_set)
  44342. def __init__(self):
  44343. _mupdf.ll_fz_strtof_outparams_swiginit(self, _mupdf.new_ll_fz_strtof_outparams())
  44344. __swig_destroy__ = _mupdf.delete_ll_fz_strtof_outparams
  44345. # Register ll_fz_strtof_outparams in _mupdf:
  44346. _mupdf.ll_fz_strtof_outparams_swigregister(ll_fz_strtof_outparams)
  44347. def ll_fz_strtof_outparams_fn(s, outparams):
  44348. return _mupdf.ll_fz_strtof_outparams_fn(s, outparams)
  44349. class ll_fz_subset_cff_for_gids_outparams(object):
  44350. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44351. __repr__ = _swig_repr
  44352. gids = property(_mupdf.ll_fz_subset_cff_for_gids_outparams_gids_get, _mupdf.ll_fz_subset_cff_for_gids_outparams_gids_set)
  44353. def __init__(self):
  44354. _mupdf.ll_fz_subset_cff_for_gids_outparams_swiginit(self, _mupdf.new_ll_fz_subset_cff_for_gids_outparams())
  44355. __swig_destroy__ = _mupdf.delete_ll_fz_subset_cff_for_gids_outparams
  44356. # Register ll_fz_subset_cff_for_gids_outparams in _mupdf:
  44357. _mupdf.ll_fz_subset_cff_for_gids_outparams_swigregister(ll_fz_subset_cff_for_gids_outparams)
  44358. def ll_fz_subset_cff_for_gids_outparams_fn(orig, num_gids, symbolic, cidfont, outparams):
  44359. return _mupdf.ll_fz_subset_cff_for_gids_outparams_fn(orig, num_gids, symbolic, cidfont, outparams)
  44360. class ll_fz_subset_ttf_for_gids_outparams(object):
  44361. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44362. __repr__ = _swig_repr
  44363. gids = property(_mupdf.ll_fz_subset_ttf_for_gids_outparams_gids_get, _mupdf.ll_fz_subset_ttf_for_gids_outparams_gids_set)
  44364. def __init__(self):
  44365. _mupdf.ll_fz_subset_ttf_for_gids_outparams_swiginit(self, _mupdf.new_ll_fz_subset_ttf_for_gids_outparams())
  44366. __swig_destroy__ = _mupdf.delete_ll_fz_subset_ttf_for_gids_outparams
  44367. # Register ll_fz_subset_ttf_for_gids_outparams in _mupdf:
  44368. _mupdf.ll_fz_subset_ttf_for_gids_outparams_swigregister(ll_fz_subset_ttf_for_gids_outparams)
  44369. def ll_fz_subset_ttf_for_gids_outparams_fn(orig, num_gids, symbolic, cidfont, outparams):
  44370. return _mupdf.ll_fz_subset_ttf_for_gids_outparams_fn(orig, num_gids, symbolic, cidfont, outparams)
  44371. class ll_fz_warning_callback_outparams(object):
  44372. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44373. __repr__ = _swig_repr
  44374. user = property(_mupdf.ll_fz_warning_callback_outparams_user_get, _mupdf.ll_fz_warning_callback_outparams_user_set)
  44375. def __init__(self):
  44376. _mupdf.ll_fz_warning_callback_outparams_swiginit(self, _mupdf.new_ll_fz_warning_callback_outparams())
  44377. __swig_destroy__ = _mupdf.delete_ll_fz_warning_callback_outparams
  44378. # Register ll_fz_warning_callback_outparams in _mupdf:
  44379. _mupdf.ll_fz_warning_callback_outparams_swigregister(ll_fz_warning_callback_outparams)
  44380. def ll_fz_warning_callback_outparams_fn(outparams):
  44381. return _mupdf.ll_fz_warning_callback_outparams_fn(outparams)
  44382. class ll_pdf_annot_MK_BC_outparams(object):
  44383. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44384. __repr__ = _swig_repr
  44385. n = property(_mupdf.ll_pdf_annot_MK_BC_outparams_n_get, _mupdf.ll_pdf_annot_MK_BC_outparams_n_set)
  44386. def __init__(self):
  44387. _mupdf.ll_pdf_annot_MK_BC_outparams_swiginit(self, _mupdf.new_ll_pdf_annot_MK_BC_outparams())
  44388. __swig_destroy__ = _mupdf.delete_ll_pdf_annot_MK_BC_outparams
  44389. # Register ll_pdf_annot_MK_BC_outparams in _mupdf:
  44390. _mupdf.ll_pdf_annot_MK_BC_outparams_swigregister(ll_pdf_annot_MK_BC_outparams)
  44391. def ll_pdf_annot_MK_BC_outparams_fn(annot, color, outparams):
  44392. return _mupdf.ll_pdf_annot_MK_BC_outparams_fn(annot, color, outparams)
  44393. class ll_pdf_annot_MK_BG_outparams(object):
  44394. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44395. __repr__ = _swig_repr
  44396. n = property(_mupdf.ll_pdf_annot_MK_BG_outparams_n_get, _mupdf.ll_pdf_annot_MK_BG_outparams_n_set)
  44397. def __init__(self):
  44398. _mupdf.ll_pdf_annot_MK_BG_outparams_swiginit(self, _mupdf.new_ll_pdf_annot_MK_BG_outparams())
  44399. __swig_destroy__ = _mupdf.delete_ll_pdf_annot_MK_BG_outparams
  44400. # Register ll_pdf_annot_MK_BG_outparams in _mupdf:
  44401. _mupdf.ll_pdf_annot_MK_BG_outparams_swigregister(ll_pdf_annot_MK_BG_outparams)
  44402. def ll_pdf_annot_MK_BG_outparams_fn(annot, color, outparams):
  44403. return _mupdf.ll_pdf_annot_MK_BG_outparams_fn(annot, color, outparams)
  44404. class ll_pdf_annot_callout_line_outparams(object):
  44405. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44406. __repr__ = _swig_repr
  44407. n = property(_mupdf.ll_pdf_annot_callout_line_outparams_n_get, _mupdf.ll_pdf_annot_callout_line_outparams_n_set)
  44408. def __init__(self):
  44409. _mupdf.ll_pdf_annot_callout_line_outparams_swiginit(self, _mupdf.new_ll_pdf_annot_callout_line_outparams())
  44410. __swig_destroy__ = _mupdf.delete_ll_pdf_annot_callout_line_outparams
  44411. # Register ll_pdf_annot_callout_line_outparams in _mupdf:
  44412. _mupdf.ll_pdf_annot_callout_line_outparams_swigregister(ll_pdf_annot_callout_line_outparams)
  44413. def ll_pdf_annot_callout_line_outparams_fn(annot, callout, outparams):
  44414. return _mupdf.ll_pdf_annot_callout_line_outparams_fn(annot, callout, outparams)
  44415. class ll_pdf_annot_color_outparams(object):
  44416. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44417. __repr__ = _swig_repr
  44418. n = property(_mupdf.ll_pdf_annot_color_outparams_n_get, _mupdf.ll_pdf_annot_color_outparams_n_set)
  44419. def __init__(self):
  44420. _mupdf.ll_pdf_annot_color_outparams_swiginit(self, _mupdf.new_ll_pdf_annot_color_outparams())
  44421. __swig_destroy__ = _mupdf.delete_ll_pdf_annot_color_outparams
  44422. # Register ll_pdf_annot_color_outparams in _mupdf:
  44423. _mupdf.ll_pdf_annot_color_outparams_swigregister(ll_pdf_annot_color_outparams)
  44424. def ll_pdf_annot_color_outparams_fn(annot, color, outparams):
  44425. return _mupdf.ll_pdf_annot_color_outparams_fn(annot, color, outparams)
  44426. class ll_pdf_annot_default_appearance_outparams(object):
  44427. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44428. __repr__ = _swig_repr
  44429. font = property(_mupdf.ll_pdf_annot_default_appearance_outparams_font_get, _mupdf.ll_pdf_annot_default_appearance_outparams_font_set)
  44430. size = property(_mupdf.ll_pdf_annot_default_appearance_outparams_size_get, _mupdf.ll_pdf_annot_default_appearance_outparams_size_set)
  44431. n = property(_mupdf.ll_pdf_annot_default_appearance_outparams_n_get, _mupdf.ll_pdf_annot_default_appearance_outparams_n_set)
  44432. def __init__(self):
  44433. _mupdf.ll_pdf_annot_default_appearance_outparams_swiginit(self, _mupdf.new_ll_pdf_annot_default_appearance_outparams())
  44434. __swig_destroy__ = _mupdf.delete_ll_pdf_annot_default_appearance_outparams
  44435. # Register ll_pdf_annot_default_appearance_outparams in _mupdf:
  44436. _mupdf.ll_pdf_annot_default_appearance_outparams_swigregister(ll_pdf_annot_default_appearance_outparams)
  44437. def ll_pdf_annot_default_appearance_outparams_fn(annot, color, outparams):
  44438. return _mupdf.ll_pdf_annot_default_appearance_outparams_fn(annot, color, outparams)
  44439. class ll_pdf_annot_default_appearance_unmapped_outparams(object):
  44440. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44441. __repr__ = _swig_repr
  44442. size = property(_mupdf.ll_pdf_annot_default_appearance_unmapped_outparams_size_get, _mupdf.ll_pdf_annot_default_appearance_unmapped_outparams_size_set)
  44443. n = property(_mupdf.ll_pdf_annot_default_appearance_unmapped_outparams_n_get, _mupdf.ll_pdf_annot_default_appearance_unmapped_outparams_n_set)
  44444. def __init__(self):
  44445. _mupdf.ll_pdf_annot_default_appearance_unmapped_outparams_swiginit(self, _mupdf.new_ll_pdf_annot_default_appearance_unmapped_outparams())
  44446. __swig_destroy__ = _mupdf.delete_ll_pdf_annot_default_appearance_unmapped_outparams
  44447. # Register ll_pdf_annot_default_appearance_unmapped_outparams in _mupdf:
  44448. _mupdf.ll_pdf_annot_default_appearance_unmapped_outparams_swigregister(ll_pdf_annot_default_appearance_unmapped_outparams)
  44449. def ll_pdf_annot_default_appearance_unmapped_outparams_fn(annot, font_name, font_name_len, color, outparams):
  44450. return _mupdf.ll_pdf_annot_default_appearance_unmapped_outparams_fn(annot, font_name, font_name_len, color, outparams)
  44451. class ll_pdf_annot_interior_color_outparams(object):
  44452. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44453. __repr__ = _swig_repr
  44454. n = property(_mupdf.ll_pdf_annot_interior_color_outparams_n_get, _mupdf.ll_pdf_annot_interior_color_outparams_n_set)
  44455. def __init__(self):
  44456. _mupdf.ll_pdf_annot_interior_color_outparams_swiginit(self, _mupdf.new_ll_pdf_annot_interior_color_outparams())
  44457. __swig_destroy__ = _mupdf.delete_ll_pdf_annot_interior_color_outparams
  44458. # Register ll_pdf_annot_interior_color_outparams in _mupdf:
  44459. _mupdf.ll_pdf_annot_interior_color_outparams_swigregister(ll_pdf_annot_interior_color_outparams)
  44460. def ll_pdf_annot_interior_color_outparams_fn(annot, color, outparams):
  44461. return _mupdf.ll_pdf_annot_interior_color_outparams_fn(annot, color, outparams)
  44462. class ll_pdf_annot_line_ending_styles_outparams(object):
  44463. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44464. __repr__ = _swig_repr
  44465. 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)
  44466. 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)
  44467. def __init__(self):
  44468. _mupdf.ll_pdf_annot_line_ending_styles_outparams_swiginit(self, _mupdf.new_ll_pdf_annot_line_ending_styles_outparams())
  44469. __swig_destroy__ = _mupdf.delete_ll_pdf_annot_line_ending_styles_outparams
  44470. # Register ll_pdf_annot_line_ending_styles_outparams in _mupdf:
  44471. _mupdf.ll_pdf_annot_line_ending_styles_outparams_swigregister(ll_pdf_annot_line_ending_styles_outparams)
  44472. def ll_pdf_annot_line_ending_styles_outparams_fn(annot, outparams):
  44473. return _mupdf.ll_pdf_annot_line_ending_styles_outparams_fn(annot, outparams)
  44474. class ll_pdf_array_get_string_outparams(object):
  44475. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44476. __repr__ = _swig_repr
  44477. sizep = property(_mupdf.ll_pdf_array_get_string_outparams_sizep_get, _mupdf.ll_pdf_array_get_string_outparams_sizep_set)
  44478. def __init__(self):
  44479. _mupdf.ll_pdf_array_get_string_outparams_swiginit(self, _mupdf.new_ll_pdf_array_get_string_outparams())
  44480. __swig_destroy__ = _mupdf.delete_ll_pdf_array_get_string_outparams
  44481. # Register ll_pdf_array_get_string_outparams in _mupdf:
  44482. _mupdf.ll_pdf_array_get_string_outparams_swigregister(ll_pdf_array_get_string_outparams)
  44483. def ll_pdf_array_get_string_outparams_fn(array, index, outparams):
  44484. return _mupdf.ll_pdf_array_get_string_outparams_fn(array, index, outparams)
  44485. class ll_pdf_count_q_balance_outparams(object):
  44486. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44487. __repr__ = _swig_repr
  44488. prepend = property(_mupdf.ll_pdf_count_q_balance_outparams_prepend_get, _mupdf.ll_pdf_count_q_balance_outparams_prepend_set)
  44489. append = property(_mupdf.ll_pdf_count_q_balance_outparams_append_get, _mupdf.ll_pdf_count_q_balance_outparams_append_set)
  44490. def __init__(self):
  44491. _mupdf.ll_pdf_count_q_balance_outparams_swiginit(self, _mupdf.new_ll_pdf_count_q_balance_outparams())
  44492. __swig_destroy__ = _mupdf.delete_ll_pdf_count_q_balance_outparams
  44493. # Register ll_pdf_count_q_balance_outparams in _mupdf:
  44494. _mupdf.ll_pdf_count_q_balance_outparams_swigregister(ll_pdf_count_q_balance_outparams)
  44495. def ll_pdf_count_q_balance_outparams_fn(doc, res, stm, outparams):
  44496. return _mupdf.ll_pdf_count_q_balance_outparams_fn(doc, res, stm, outparams)
  44497. class ll_pdf_decode_cmap_outparams(object):
  44498. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44499. __repr__ = _swig_repr
  44500. cpt = property(_mupdf.ll_pdf_decode_cmap_outparams_cpt_get, _mupdf.ll_pdf_decode_cmap_outparams_cpt_set)
  44501. def __init__(self):
  44502. _mupdf.ll_pdf_decode_cmap_outparams_swiginit(self, _mupdf.new_ll_pdf_decode_cmap_outparams())
  44503. __swig_destroy__ = _mupdf.delete_ll_pdf_decode_cmap_outparams
  44504. # Register ll_pdf_decode_cmap_outparams in _mupdf:
  44505. _mupdf.ll_pdf_decode_cmap_outparams_swigregister(ll_pdf_decode_cmap_outparams)
  44506. def ll_pdf_decode_cmap_outparams_fn(cmap, s, e, outparams):
  44507. return _mupdf.ll_pdf_decode_cmap_outparams_fn(cmap, s, e, outparams)
  44508. class ll_pdf_dict_get_inheritable_string_outparams(object):
  44509. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44510. __repr__ = _swig_repr
  44511. sizep = property(_mupdf.ll_pdf_dict_get_inheritable_string_outparams_sizep_get, _mupdf.ll_pdf_dict_get_inheritable_string_outparams_sizep_set)
  44512. def __init__(self):
  44513. _mupdf.ll_pdf_dict_get_inheritable_string_outparams_swiginit(self, _mupdf.new_ll_pdf_dict_get_inheritable_string_outparams())
  44514. __swig_destroy__ = _mupdf.delete_ll_pdf_dict_get_inheritable_string_outparams
  44515. # Register ll_pdf_dict_get_inheritable_string_outparams in _mupdf:
  44516. _mupdf.ll_pdf_dict_get_inheritable_string_outparams_swigregister(ll_pdf_dict_get_inheritable_string_outparams)
  44517. def ll_pdf_dict_get_inheritable_string_outparams_fn(dict, key, outparams):
  44518. return _mupdf.ll_pdf_dict_get_inheritable_string_outparams_fn(dict, key, outparams)
  44519. class ll_pdf_dict_get_put_drop_outparams(object):
  44520. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44521. __repr__ = _swig_repr
  44522. 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)
  44523. def __init__(self):
  44524. _mupdf.ll_pdf_dict_get_put_drop_outparams_swiginit(self, _mupdf.new_ll_pdf_dict_get_put_drop_outparams())
  44525. __swig_destroy__ = _mupdf.delete_ll_pdf_dict_get_put_drop_outparams
  44526. # Register ll_pdf_dict_get_put_drop_outparams in _mupdf:
  44527. _mupdf.ll_pdf_dict_get_put_drop_outparams_swigregister(ll_pdf_dict_get_put_drop_outparams)
  44528. def ll_pdf_dict_get_put_drop_outparams_fn(dict, key, val, outparams):
  44529. return _mupdf.ll_pdf_dict_get_put_drop_outparams_fn(dict, key, val, outparams)
  44530. class ll_pdf_dict_get_string_outparams(object):
  44531. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44532. __repr__ = _swig_repr
  44533. sizep = property(_mupdf.ll_pdf_dict_get_string_outparams_sizep_get, _mupdf.ll_pdf_dict_get_string_outparams_sizep_set)
  44534. def __init__(self):
  44535. _mupdf.ll_pdf_dict_get_string_outparams_swiginit(self, _mupdf.new_ll_pdf_dict_get_string_outparams())
  44536. __swig_destroy__ = _mupdf.delete_ll_pdf_dict_get_string_outparams
  44537. # Register ll_pdf_dict_get_string_outparams in _mupdf:
  44538. _mupdf.ll_pdf_dict_get_string_outparams_swigregister(ll_pdf_dict_get_string_outparams)
  44539. def ll_pdf_dict_get_string_outparams_fn(dict, key, outparams):
  44540. return _mupdf.ll_pdf_dict_get_string_outparams_fn(dict, key, outparams)
  44541. class ll_pdf_edit_text_field_value_outparams(object):
  44542. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44543. __repr__ = _swig_repr
  44544. selStart = property(_mupdf.ll_pdf_edit_text_field_value_outparams_selStart_get, _mupdf.ll_pdf_edit_text_field_value_outparams_selStart_set)
  44545. selEnd = property(_mupdf.ll_pdf_edit_text_field_value_outparams_selEnd_get, _mupdf.ll_pdf_edit_text_field_value_outparams_selEnd_set)
  44546. newvalue = property(_mupdf.ll_pdf_edit_text_field_value_outparams_newvalue_get, _mupdf.ll_pdf_edit_text_field_value_outparams_newvalue_set)
  44547. def __init__(self):
  44548. _mupdf.ll_pdf_edit_text_field_value_outparams_swiginit(self, _mupdf.new_ll_pdf_edit_text_field_value_outparams())
  44549. __swig_destroy__ = _mupdf.delete_ll_pdf_edit_text_field_value_outparams
  44550. # Register ll_pdf_edit_text_field_value_outparams in _mupdf:
  44551. _mupdf.ll_pdf_edit_text_field_value_outparams_swigregister(ll_pdf_edit_text_field_value_outparams)
  44552. def ll_pdf_edit_text_field_value_outparams_fn(widget, value, change, outparams):
  44553. return _mupdf.ll_pdf_edit_text_field_value_outparams_fn(widget, value, change, outparams)
  44554. class ll_pdf_eval_function_outparams(object):
  44555. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44556. __repr__ = _swig_repr
  44557. out = property(_mupdf.ll_pdf_eval_function_outparams_out_get, _mupdf.ll_pdf_eval_function_outparams_out_set)
  44558. def __init__(self):
  44559. _mupdf.ll_pdf_eval_function_outparams_swiginit(self, _mupdf.new_ll_pdf_eval_function_outparams())
  44560. __swig_destroy__ = _mupdf.delete_ll_pdf_eval_function_outparams
  44561. # Register ll_pdf_eval_function_outparams in _mupdf:
  44562. _mupdf.ll_pdf_eval_function_outparams_swigregister(ll_pdf_eval_function_outparams)
  44563. def ll_pdf_eval_function_outparams_fn(func, _in, inlen, outlen, outparams):
  44564. return _mupdf.ll_pdf_eval_function_outparams_fn(func, _in, inlen, outlen, outparams)
  44565. class ll_pdf_field_event_validate_outparams(object):
  44566. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44567. __repr__ = _swig_repr
  44568. newvalue = property(_mupdf.ll_pdf_field_event_validate_outparams_newvalue_get, _mupdf.ll_pdf_field_event_validate_outparams_newvalue_set)
  44569. def __init__(self):
  44570. _mupdf.ll_pdf_field_event_validate_outparams_swiginit(self, _mupdf.new_ll_pdf_field_event_validate_outparams())
  44571. __swig_destroy__ = _mupdf.delete_ll_pdf_field_event_validate_outparams
  44572. # Register ll_pdf_field_event_validate_outparams in _mupdf:
  44573. _mupdf.ll_pdf_field_event_validate_outparams_swigregister(ll_pdf_field_event_validate_outparams)
  44574. def ll_pdf_field_event_validate_outparams_fn(doc, field, value, outparams):
  44575. return _mupdf.ll_pdf_field_event_validate_outparams_fn(doc, field, value, outparams)
  44576. class ll_pdf_js_event_result_validate_outparams(object):
  44577. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44578. __repr__ = _swig_repr
  44579. newvalue = property(_mupdf.ll_pdf_js_event_result_validate_outparams_newvalue_get, _mupdf.ll_pdf_js_event_result_validate_outparams_newvalue_set)
  44580. def __init__(self):
  44581. _mupdf.ll_pdf_js_event_result_validate_outparams_swiginit(self, _mupdf.new_ll_pdf_js_event_result_validate_outparams())
  44582. __swig_destroy__ = _mupdf.delete_ll_pdf_js_event_result_validate_outparams
  44583. # Register ll_pdf_js_event_result_validate_outparams in _mupdf:
  44584. _mupdf.ll_pdf_js_event_result_validate_outparams_swigregister(ll_pdf_js_event_result_validate_outparams)
  44585. def ll_pdf_js_event_result_validate_outparams_fn(js, outparams):
  44586. return _mupdf.ll_pdf_js_event_result_validate_outparams_fn(js, outparams)
  44587. class ll_pdf_js_execute_outparams(object):
  44588. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44589. __repr__ = _swig_repr
  44590. result = property(_mupdf.ll_pdf_js_execute_outparams_result_get, _mupdf.ll_pdf_js_execute_outparams_result_set)
  44591. def __init__(self):
  44592. _mupdf.ll_pdf_js_execute_outparams_swiginit(self, _mupdf.new_ll_pdf_js_execute_outparams())
  44593. __swig_destroy__ = _mupdf.delete_ll_pdf_js_execute_outparams
  44594. # Register ll_pdf_js_execute_outparams in _mupdf:
  44595. _mupdf.ll_pdf_js_execute_outparams_swigregister(ll_pdf_js_execute_outparams)
  44596. def ll_pdf_js_execute_outparams_fn(js, name, code, outparams):
  44597. return _mupdf.ll_pdf_js_execute_outparams_fn(js, name, code, outparams)
  44598. class ll_pdf_load_encoding_outparams(object):
  44599. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44600. __repr__ = _swig_repr
  44601. estrings = property(_mupdf.ll_pdf_load_encoding_outparams_estrings_get, _mupdf.ll_pdf_load_encoding_outparams_estrings_set)
  44602. def __init__(self):
  44603. _mupdf.ll_pdf_load_encoding_outparams_swiginit(self, _mupdf.new_ll_pdf_load_encoding_outparams())
  44604. __swig_destroy__ = _mupdf.delete_ll_pdf_load_encoding_outparams
  44605. # Register ll_pdf_load_encoding_outparams in _mupdf:
  44606. _mupdf.ll_pdf_load_encoding_outparams_swigregister(ll_pdf_load_encoding_outparams)
  44607. def ll_pdf_load_encoding_outparams_fn(encoding, outparams):
  44608. return _mupdf.ll_pdf_load_encoding_outparams_fn(encoding, outparams)
  44609. class ll_pdf_load_to_unicode_outparams(object):
  44610. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44611. __repr__ = _swig_repr
  44612. strings = property(_mupdf.ll_pdf_load_to_unicode_outparams_strings_get, _mupdf.ll_pdf_load_to_unicode_outparams_strings_set)
  44613. def __init__(self):
  44614. _mupdf.ll_pdf_load_to_unicode_outparams_swiginit(self, _mupdf.new_ll_pdf_load_to_unicode_outparams())
  44615. __swig_destroy__ = _mupdf.delete_ll_pdf_load_to_unicode_outparams
  44616. # Register ll_pdf_load_to_unicode_outparams in _mupdf:
  44617. _mupdf.ll_pdf_load_to_unicode_outparams_swigregister(ll_pdf_load_to_unicode_outparams)
  44618. def ll_pdf_load_to_unicode_outparams_fn(doc, font, collection, cmapstm, outparams):
  44619. return _mupdf.ll_pdf_load_to_unicode_outparams_fn(doc, font, collection, cmapstm, outparams)
  44620. class ll_pdf_lookup_cmap_full_outparams(object):
  44621. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44622. __repr__ = _swig_repr
  44623. out = property(_mupdf.ll_pdf_lookup_cmap_full_outparams_out_get, _mupdf.ll_pdf_lookup_cmap_full_outparams_out_set)
  44624. def __init__(self):
  44625. _mupdf.ll_pdf_lookup_cmap_full_outparams_swiginit(self, _mupdf.new_ll_pdf_lookup_cmap_full_outparams())
  44626. __swig_destroy__ = _mupdf.delete_ll_pdf_lookup_cmap_full_outparams
  44627. # Register ll_pdf_lookup_cmap_full_outparams in _mupdf:
  44628. _mupdf.ll_pdf_lookup_cmap_full_outparams_swigregister(ll_pdf_lookup_cmap_full_outparams)
  44629. def ll_pdf_lookup_cmap_full_outparams_fn(cmap, cpt, outparams):
  44630. return _mupdf.ll_pdf_lookup_cmap_full_outparams_fn(cmap, cpt, outparams)
  44631. class ll_pdf_lookup_page_loc_outparams(object):
  44632. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44633. __repr__ = _swig_repr
  44634. parentp = property(_mupdf.ll_pdf_lookup_page_loc_outparams_parentp_get, _mupdf.ll_pdf_lookup_page_loc_outparams_parentp_set)
  44635. indexp = property(_mupdf.ll_pdf_lookup_page_loc_outparams_indexp_get, _mupdf.ll_pdf_lookup_page_loc_outparams_indexp_set)
  44636. def __init__(self):
  44637. _mupdf.ll_pdf_lookup_page_loc_outparams_swiginit(self, _mupdf.new_ll_pdf_lookup_page_loc_outparams())
  44638. __swig_destroy__ = _mupdf.delete_ll_pdf_lookup_page_loc_outparams
  44639. # Register ll_pdf_lookup_page_loc_outparams in _mupdf:
  44640. _mupdf.ll_pdf_lookup_page_loc_outparams_swigregister(ll_pdf_lookup_page_loc_outparams)
  44641. def ll_pdf_lookup_page_loc_outparams_fn(doc, needle, outparams):
  44642. return _mupdf.ll_pdf_lookup_page_loc_outparams_fn(doc, needle, outparams)
  44643. class ll_pdf_lookup_substitute_font_outparams(object):
  44644. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44645. __repr__ = _swig_repr
  44646. len = property(_mupdf.ll_pdf_lookup_substitute_font_outparams_len_get, _mupdf.ll_pdf_lookup_substitute_font_outparams_len_set)
  44647. def __init__(self):
  44648. _mupdf.ll_pdf_lookup_substitute_font_outparams_swiginit(self, _mupdf.new_ll_pdf_lookup_substitute_font_outparams())
  44649. __swig_destroy__ = _mupdf.delete_ll_pdf_lookup_substitute_font_outparams
  44650. # Register ll_pdf_lookup_substitute_font_outparams in _mupdf:
  44651. _mupdf.ll_pdf_lookup_substitute_font_outparams_swigregister(ll_pdf_lookup_substitute_font_outparams)
  44652. def ll_pdf_lookup_substitute_font_outparams_fn(mono, serif, bold, italic, outparams):
  44653. return _mupdf.ll_pdf_lookup_substitute_font_outparams_fn(mono, serif, bold, italic, outparams)
  44654. class ll_pdf_map_one_to_many_outparams(object):
  44655. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44656. __repr__ = _swig_repr
  44657. many = property(_mupdf.ll_pdf_map_one_to_many_outparams_many_get, _mupdf.ll_pdf_map_one_to_many_outparams_many_set)
  44658. def __init__(self):
  44659. _mupdf.ll_pdf_map_one_to_many_outparams_swiginit(self, _mupdf.new_ll_pdf_map_one_to_many_outparams())
  44660. __swig_destroy__ = _mupdf.delete_ll_pdf_map_one_to_many_outparams
  44661. # Register ll_pdf_map_one_to_many_outparams in _mupdf:
  44662. _mupdf.ll_pdf_map_one_to_many_outparams_swigregister(ll_pdf_map_one_to_many_outparams)
  44663. def ll_pdf_map_one_to_many_outparams_fn(cmap, one, len, outparams):
  44664. return _mupdf.ll_pdf_map_one_to_many_outparams_fn(cmap, one, len, outparams)
  44665. class ll_pdf_obj_memo_outparams(object):
  44666. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44667. __repr__ = _swig_repr
  44668. memo = property(_mupdf.ll_pdf_obj_memo_outparams_memo_get, _mupdf.ll_pdf_obj_memo_outparams_memo_set)
  44669. def __init__(self):
  44670. _mupdf.ll_pdf_obj_memo_outparams_swiginit(self, _mupdf.new_ll_pdf_obj_memo_outparams())
  44671. __swig_destroy__ = _mupdf.delete_ll_pdf_obj_memo_outparams
  44672. # Register ll_pdf_obj_memo_outparams in _mupdf:
  44673. _mupdf.ll_pdf_obj_memo_outparams_swigregister(ll_pdf_obj_memo_outparams)
  44674. def ll_pdf_obj_memo_outparams_fn(obj, bit, outparams):
  44675. return _mupdf.ll_pdf_obj_memo_outparams_fn(obj, bit, outparams)
  44676. class ll_pdf_page_presentation_outparams(object):
  44677. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44678. __repr__ = _swig_repr
  44679. duration = property(_mupdf.ll_pdf_page_presentation_outparams_duration_get, _mupdf.ll_pdf_page_presentation_outparams_duration_set)
  44680. def __init__(self):
  44681. _mupdf.ll_pdf_page_presentation_outparams_swiginit(self, _mupdf.new_ll_pdf_page_presentation_outparams())
  44682. __swig_destroy__ = _mupdf.delete_ll_pdf_page_presentation_outparams
  44683. # Register ll_pdf_page_presentation_outparams in _mupdf:
  44684. _mupdf.ll_pdf_page_presentation_outparams_swigregister(ll_pdf_page_presentation_outparams)
  44685. def ll_pdf_page_presentation_outparams_fn(page, transition, outparams):
  44686. return _mupdf.ll_pdf_page_presentation_outparams_fn(page, transition, outparams)
  44687. class ll_pdf_page_write_outparams(object):
  44688. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44689. __repr__ = _swig_repr
  44690. presources = property(_mupdf.ll_pdf_page_write_outparams_presources_get, _mupdf.ll_pdf_page_write_outparams_presources_set)
  44691. pcontents = property(_mupdf.ll_pdf_page_write_outparams_pcontents_get, _mupdf.ll_pdf_page_write_outparams_pcontents_set)
  44692. def __init__(self):
  44693. _mupdf.ll_pdf_page_write_outparams_swiginit(self, _mupdf.new_ll_pdf_page_write_outparams())
  44694. __swig_destroy__ = _mupdf.delete_ll_pdf_page_write_outparams
  44695. # Register ll_pdf_page_write_outparams in _mupdf:
  44696. _mupdf.ll_pdf_page_write_outparams_swigregister(ll_pdf_page_write_outparams)
  44697. def ll_pdf_page_write_outparams_fn(doc, mediabox, outparams):
  44698. return _mupdf.ll_pdf_page_write_outparams_fn(doc, mediabox, outparams)
  44699. class ll_pdf_parse_default_appearance_outparams(object):
  44700. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44701. __repr__ = _swig_repr
  44702. font = property(_mupdf.ll_pdf_parse_default_appearance_outparams_font_get, _mupdf.ll_pdf_parse_default_appearance_outparams_font_set)
  44703. size = property(_mupdf.ll_pdf_parse_default_appearance_outparams_size_get, _mupdf.ll_pdf_parse_default_appearance_outparams_size_set)
  44704. n = property(_mupdf.ll_pdf_parse_default_appearance_outparams_n_get, _mupdf.ll_pdf_parse_default_appearance_outparams_n_set)
  44705. def __init__(self):
  44706. _mupdf.ll_pdf_parse_default_appearance_outparams_swiginit(self, _mupdf.new_ll_pdf_parse_default_appearance_outparams())
  44707. __swig_destroy__ = _mupdf.delete_ll_pdf_parse_default_appearance_outparams
  44708. # Register ll_pdf_parse_default_appearance_outparams in _mupdf:
  44709. _mupdf.ll_pdf_parse_default_appearance_outparams_swigregister(ll_pdf_parse_default_appearance_outparams)
  44710. def ll_pdf_parse_default_appearance_outparams_fn(da, color, outparams):
  44711. return _mupdf.ll_pdf_parse_default_appearance_outparams_fn(da, color, outparams)
  44712. class ll_pdf_parse_default_appearance_unmapped_outparams(object):
  44713. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44714. __repr__ = _swig_repr
  44715. size = property(_mupdf.ll_pdf_parse_default_appearance_unmapped_outparams_size_get, _mupdf.ll_pdf_parse_default_appearance_unmapped_outparams_size_set)
  44716. n = property(_mupdf.ll_pdf_parse_default_appearance_unmapped_outparams_n_get, _mupdf.ll_pdf_parse_default_appearance_unmapped_outparams_n_set)
  44717. def __init__(self):
  44718. _mupdf.ll_pdf_parse_default_appearance_unmapped_outparams_swiginit(self, _mupdf.new_ll_pdf_parse_default_appearance_unmapped_outparams())
  44719. __swig_destroy__ = _mupdf.delete_ll_pdf_parse_default_appearance_unmapped_outparams
  44720. # Register ll_pdf_parse_default_appearance_unmapped_outparams in _mupdf:
  44721. _mupdf.ll_pdf_parse_default_appearance_unmapped_outparams_swigregister(ll_pdf_parse_default_appearance_unmapped_outparams)
  44722. def ll_pdf_parse_default_appearance_unmapped_outparams_fn(da, font_name, font_name_len, color, outparams):
  44723. return _mupdf.ll_pdf_parse_default_appearance_unmapped_outparams_fn(da, font_name, font_name_len, color, outparams)
  44724. class ll_pdf_parse_ind_obj_outparams(object):
  44725. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44726. __repr__ = _swig_repr
  44727. num = property(_mupdf.ll_pdf_parse_ind_obj_outparams_num_get, _mupdf.ll_pdf_parse_ind_obj_outparams_num_set)
  44728. gen = property(_mupdf.ll_pdf_parse_ind_obj_outparams_gen_get, _mupdf.ll_pdf_parse_ind_obj_outparams_gen_set)
  44729. stm_ofs = property(_mupdf.ll_pdf_parse_ind_obj_outparams_stm_ofs_get, _mupdf.ll_pdf_parse_ind_obj_outparams_stm_ofs_set)
  44730. try_repair = property(_mupdf.ll_pdf_parse_ind_obj_outparams_try_repair_get, _mupdf.ll_pdf_parse_ind_obj_outparams_try_repair_set)
  44731. def __init__(self):
  44732. _mupdf.ll_pdf_parse_ind_obj_outparams_swiginit(self, _mupdf.new_ll_pdf_parse_ind_obj_outparams())
  44733. __swig_destroy__ = _mupdf.delete_ll_pdf_parse_ind_obj_outparams
  44734. # Register ll_pdf_parse_ind_obj_outparams in _mupdf:
  44735. _mupdf.ll_pdf_parse_ind_obj_outparams_swigregister(ll_pdf_parse_ind_obj_outparams)
  44736. def ll_pdf_parse_ind_obj_outparams_fn(doc, f, outparams):
  44737. return _mupdf.ll_pdf_parse_ind_obj_outparams_fn(doc, f, outparams)
  44738. class ll_pdf_parse_journal_obj_outparams(object):
  44739. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44740. __repr__ = _swig_repr
  44741. onum = property(_mupdf.ll_pdf_parse_journal_obj_outparams_onum_get, _mupdf.ll_pdf_parse_journal_obj_outparams_onum_set)
  44742. ostm = property(_mupdf.ll_pdf_parse_journal_obj_outparams_ostm_get, _mupdf.ll_pdf_parse_journal_obj_outparams_ostm_set)
  44743. newobj = property(_mupdf.ll_pdf_parse_journal_obj_outparams_newobj_get, _mupdf.ll_pdf_parse_journal_obj_outparams_newobj_set)
  44744. def __init__(self):
  44745. _mupdf.ll_pdf_parse_journal_obj_outparams_swiginit(self, _mupdf.new_ll_pdf_parse_journal_obj_outparams())
  44746. __swig_destroy__ = _mupdf.delete_ll_pdf_parse_journal_obj_outparams
  44747. # Register ll_pdf_parse_journal_obj_outparams in _mupdf:
  44748. _mupdf.ll_pdf_parse_journal_obj_outparams_swigregister(ll_pdf_parse_journal_obj_outparams)
  44749. def ll_pdf_parse_journal_obj_outparams_fn(doc, stm, outparams):
  44750. return _mupdf.ll_pdf_parse_journal_obj_outparams_fn(doc, stm, outparams)
  44751. class ll_pdf_print_encrypted_obj_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. sep = property(_mupdf.ll_pdf_print_encrypted_obj_outparams_sep_get, _mupdf.ll_pdf_print_encrypted_obj_outparams_sep_set)
  44755. def __init__(self):
  44756. _mupdf.ll_pdf_print_encrypted_obj_outparams_swiginit(self, _mupdf.new_ll_pdf_print_encrypted_obj_outparams())
  44757. __swig_destroy__ = _mupdf.delete_ll_pdf_print_encrypted_obj_outparams
  44758. # Register ll_pdf_print_encrypted_obj_outparams in _mupdf:
  44759. _mupdf.ll_pdf_print_encrypted_obj_outparams_swigregister(ll_pdf_print_encrypted_obj_outparams)
  44760. def ll_pdf_print_encrypted_obj_outparams_fn(out, obj, tight, ascii, crypt, num, gen, outparams):
  44761. return _mupdf.ll_pdf_print_encrypted_obj_outparams_fn(out, obj, tight, ascii, crypt, num, gen, outparams)
  44762. class ll_pdf_process_contents_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. out_res = property(_mupdf.ll_pdf_process_contents_outparams_out_res_get, _mupdf.ll_pdf_process_contents_outparams_out_res_set)
  44766. def __init__(self):
  44767. _mupdf.ll_pdf_process_contents_outparams_swiginit(self, _mupdf.new_ll_pdf_process_contents_outparams())
  44768. __swig_destroy__ = _mupdf.delete_ll_pdf_process_contents_outparams
  44769. # Register ll_pdf_process_contents_outparams in _mupdf:
  44770. _mupdf.ll_pdf_process_contents_outparams_swigregister(ll_pdf_process_contents_outparams)
  44771. def ll_pdf_process_contents_outparams_fn(proc, doc, res, stm, cookie, outparams):
  44772. return _mupdf.ll_pdf_process_contents_outparams_fn(proc, doc, res, stm, cookie, outparams)
  44773. class ll_pdf_repair_obj_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. stmofsp = property(_mupdf.ll_pdf_repair_obj_outparams_stmofsp_get, _mupdf.ll_pdf_repair_obj_outparams_stmofsp_set)
  44777. stmlenp = property(_mupdf.ll_pdf_repair_obj_outparams_stmlenp_get, _mupdf.ll_pdf_repair_obj_outparams_stmlenp_set)
  44778. encrypt = property(_mupdf.ll_pdf_repair_obj_outparams_encrypt_get, _mupdf.ll_pdf_repair_obj_outparams_encrypt_set)
  44779. id = property(_mupdf.ll_pdf_repair_obj_outparams_id_get, _mupdf.ll_pdf_repair_obj_outparams_id_set)
  44780. page = property(_mupdf.ll_pdf_repair_obj_outparams_page_get, _mupdf.ll_pdf_repair_obj_outparams_page_set)
  44781. tmpofs = property(_mupdf.ll_pdf_repair_obj_outparams_tmpofs_get, _mupdf.ll_pdf_repair_obj_outparams_tmpofs_set)
  44782. root = property(_mupdf.ll_pdf_repair_obj_outparams_root_get, _mupdf.ll_pdf_repair_obj_outparams_root_set)
  44783. def __init__(self):
  44784. _mupdf.ll_pdf_repair_obj_outparams_swiginit(self, _mupdf.new_ll_pdf_repair_obj_outparams())
  44785. __swig_destroy__ = _mupdf.delete_ll_pdf_repair_obj_outparams
  44786. # Register ll_pdf_repair_obj_outparams in _mupdf:
  44787. _mupdf.ll_pdf_repair_obj_outparams_swigregister(ll_pdf_repair_obj_outparams)
  44788. def ll_pdf_repair_obj_outparams_fn(doc, buf, outparams):
  44789. return _mupdf.ll_pdf_repair_obj_outparams_fn(doc, buf, outparams)
  44790. class ll_pdf_resolve_link_outparams(object):
  44791. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44792. __repr__ = _swig_repr
  44793. xp = property(_mupdf.ll_pdf_resolve_link_outparams_xp_get, _mupdf.ll_pdf_resolve_link_outparams_xp_set)
  44794. yp = property(_mupdf.ll_pdf_resolve_link_outparams_yp_get, _mupdf.ll_pdf_resolve_link_outparams_yp_set)
  44795. def __init__(self):
  44796. _mupdf.ll_pdf_resolve_link_outparams_swiginit(self, _mupdf.new_ll_pdf_resolve_link_outparams())
  44797. __swig_destroy__ = _mupdf.delete_ll_pdf_resolve_link_outparams
  44798. # Register ll_pdf_resolve_link_outparams in _mupdf:
  44799. _mupdf.ll_pdf_resolve_link_outparams_swigregister(ll_pdf_resolve_link_outparams)
  44800. def ll_pdf_resolve_link_outparams_fn(doc, uri, outparams):
  44801. return _mupdf.ll_pdf_resolve_link_outparams_fn(doc, uri, outparams)
  44802. class ll_pdf_sample_shade_function_outparams(object):
  44803. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44804. __repr__ = _swig_repr
  44805. samples = property(_mupdf.ll_pdf_sample_shade_function_outparams_samples_get, _mupdf.ll_pdf_sample_shade_function_outparams_samples_set)
  44806. func = property(_mupdf.ll_pdf_sample_shade_function_outparams_func_get, _mupdf.ll_pdf_sample_shade_function_outparams_func_set)
  44807. def __init__(self):
  44808. _mupdf.ll_pdf_sample_shade_function_outparams_swiginit(self, _mupdf.new_ll_pdf_sample_shade_function_outparams())
  44809. __swig_destroy__ = _mupdf.delete_ll_pdf_sample_shade_function_outparams
  44810. # Register ll_pdf_sample_shade_function_outparams in _mupdf:
  44811. _mupdf.ll_pdf_sample_shade_function_outparams_swigregister(ll_pdf_sample_shade_function_outparams)
  44812. def ll_pdf_sample_shade_function_outparams_fn(n, funcs, t0, t1, outparams):
  44813. return _mupdf.ll_pdf_sample_shade_function_outparams_fn(n, funcs, t0, t1, outparams)
  44814. class ll_pdf_signature_contents_outparams(object):
  44815. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44816. __repr__ = _swig_repr
  44817. contents = property(_mupdf.ll_pdf_signature_contents_outparams_contents_get, _mupdf.ll_pdf_signature_contents_outparams_contents_set)
  44818. def __init__(self):
  44819. _mupdf.ll_pdf_signature_contents_outparams_swiginit(self, _mupdf.new_ll_pdf_signature_contents_outparams())
  44820. __swig_destroy__ = _mupdf.delete_ll_pdf_signature_contents_outparams
  44821. # Register ll_pdf_signature_contents_outparams in _mupdf:
  44822. _mupdf.ll_pdf_signature_contents_outparams_swigregister(ll_pdf_signature_contents_outparams)
  44823. def ll_pdf_signature_contents_outparams_fn(doc, signature, outparams):
  44824. return _mupdf.ll_pdf_signature_contents_outparams_fn(doc, signature, outparams)
  44825. class ll_pdf_sprint_obj_outparams(object):
  44826. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44827. __repr__ = _swig_repr
  44828. len = property(_mupdf.ll_pdf_sprint_obj_outparams_len_get, _mupdf.ll_pdf_sprint_obj_outparams_len_set)
  44829. def __init__(self):
  44830. _mupdf.ll_pdf_sprint_obj_outparams_swiginit(self, _mupdf.new_ll_pdf_sprint_obj_outparams())
  44831. __swig_destroy__ = _mupdf.delete_ll_pdf_sprint_obj_outparams
  44832. # Register ll_pdf_sprint_obj_outparams in _mupdf:
  44833. _mupdf.ll_pdf_sprint_obj_outparams_swigregister(ll_pdf_sprint_obj_outparams)
  44834. def ll_pdf_sprint_obj_outparams_fn(buf, cap, obj, tight, ascii, outparams):
  44835. return _mupdf.ll_pdf_sprint_obj_outparams_fn(buf, cap, obj, tight, ascii, outparams)
  44836. class ll_pdf_to_string_outparams(object):
  44837. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44838. __repr__ = _swig_repr
  44839. sizep = property(_mupdf.ll_pdf_to_string_outparams_sizep_get, _mupdf.ll_pdf_to_string_outparams_sizep_set)
  44840. def __init__(self):
  44841. _mupdf.ll_pdf_to_string_outparams_swiginit(self, _mupdf.new_ll_pdf_to_string_outparams())
  44842. __swig_destroy__ = _mupdf.delete_ll_pdf_to_string_outparams
  44843. # Register ll_pdf_to_string_outparams in _mupdf:
  44844. _mupdf.ll_pdf_to_string_outparams_swigregister(ll_pdf_to_string_outparams)
  44845. def ll_pdf_to_string_outparams_fn(obj, outparams):
  44846. return _mupdf.ll_pdf_to_string_outparams_fn(obj, outparams)
  44847. class ll_pdf_tos_make_trm_outparams(object):
  44848. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44849. __repr__ = _swig_repr
  44850. adv = property(_mupdf.ll_pdf_tos_make_trm_outparams_adv_get, _mupdf.ll_pdf_tos_make_trm_outparams_adv_set)
  44851. def __init__(self):
  44852. _mupdf.ll_pdf_tos_make_trm_outparams_swiginit(self, _mupdf.new_ll_pdf_tos_make_trm_outparams())
  44853. __swig_destroy__ = _mupdf.delete_ll_pdf_tos_make_trm_outparams
  44854. # Register ll_pdf_tos_make_trm_outparams in _mupdf:
  44855. _mupdf.ll_pdf_tos_make_trm_outparams_swigregister(ll_pdf_tos_make_trm_outparams)
  44856. def ll_pdf_tos_make_trm_outparams_fn(tos, text, fontdesc, cid, trm, outparams):
  44857. return _mupdf.ll_pdf_tos_make_trm_outparams_fn(tos, text, fontdesc, cid, trm, outparams)
  44858. class ll_pdf_undoredo_state_outparams(object):
  44859. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44860. __repr__ = _swig_repr
  44861. steps = property(_mupdf.ll_pdf_undoredo_state_outparams_steps_get, _mupdf.ll_pdf_undoredo_state_outparams_steps_set)
  44862. def __init__(self):
  44863. _mupdf.ll_pdf_undoredo_state_outparams_swiginit(self, _mupdf.new_ll_pdf_undoredo_state_outparams())
  44864. __swig_destroy__ = _mupdf.delete_ll_pdf_undoredo_state_outparams
  44865. # Register ll_pdf_undoredo_state_outparams in _mupdf:
  44866. _mupdf.ll_pdf_undoredo_state_outparams_swigregister(ll_pdf_undoredo_state_outparams)
  44867. def ll_pdf_undoredo_state_outparams_fn(doc, outparams):
  44868. return _mupdf.ll_pdf_undoredo_state_outparams_fn(doc, outparams)
  44869. class ll_pdf_walk_tree_outparams(object):
  44870. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44871. __repr__ = _swig_repr
  44872. names = property(_mupdf.ll_pdf_walk_tree_outparams_names_get, _mupdf.ll_pdf_walk_tree_outparams_names_set)
  44873. values = property(_mupdf.ll_pdf_walk_tree_outparams_values_get, _mupdf.ll_pdf_walk_tree_outparams_values_set)
  44874. def __init__(self):
  44875. _mupdf.ll_pdf_walk_tree_outparams_swiginit(self, _mupdf.new_ll_pdf_walk_tree_outparams())
  44876. __swig_destroy__ = _mupdf.delete_ll_pdf_walk_tree_outparams
  44877. # Register ll_pdf_walk_tree_outparams in _mupdf:
  44878. _mupdf.ll_pdf_walk_tree_outparams_swigregister(ll_pdf_walk_tree_outparams)
  44879. def ll_pdf_walk_tree_outparams_fn(tree, kid_name, arrive, leave, arg, outparams):
  44880. return _mupdf.ll_pdf_walk_tree_outparams_fn(tree, kid_name, arrive, leave, arg, outparams)
  44881. class ll_pdf_zugferd_profile_outparams(object):
  44882. thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
  44883. __repr__ = _swig_repr
  44884. version = property(_mupdf.ll_pdf_zugferd_profile_outparams_version_get, _mupdf.ll_pdf_zugferd_profile_outparams_version_set)
  44885. def __init__(self):
  44886. _mupdf.ll_pdf_zugferd_profile_outparams_swiginit(self, _mupdf.new_ll_pdf_zugferd_profile_outparams())
  44887. __swig_destroy__ = _mupdf.delete_ll_pdf_zugferd_profile_outparams
  44888. # Register ll_pdf_zugferd_profile_outparams in _mupdf:
  44889. _mupdf.ll_pdf_zugferd_profile_outparams_swigregister(ll_pdf_zugferd_profile_outparams)
  44890. def ll_pdf_zugferd_profile_outparams_fn(doc, outparams):
  44891. return _mupdf.ll_pdf_zugferd_profile_outparams_fn(doc, outparams)
  44892. UCDN_EAST_ASIAN_F = _mupdf.UCDN_EAST_ASIAN_F
  44893. UCDN_EAST_ASIAN_H = _mupdf.UCDN_EAST_ASIAN_H
  44894. UCDN_EAST_ASIAN_W = _mupdf.UCDN_EAST_ASIAN_W
  44895. UCDN_EAST_ASIAN_NA = _mupdf.UCDN_EAST_ASIAN_NA
  44896. UCDN_EAST_ASIAN_A = _mupdf.UCDN_EAST_ASIAN_A
  44897. UCDN_EAST_ASIAN_N = _mupdf.UCDN_EAST_ASIAN_N
  44898. UCDN_SCRIPT_COMMON = _mupdf.UCDN_SCRIPT_COMMON
  44899. UCDN_SCRIPT_LATIN = _mupdf.UCDN_SCRIPT_LATIN
  44900. UCDN_SCRIPT_GREEK = _mupdf.UCDN_SCRIPT_GREEK
  44901. UCDN_SCRIPT_CYRILLIC = _mupdf.UCDN_SCRIPT_CYRILLIC
  44902. UCDN_SCRIPT_ARMENIAN = _mupdf.UCDN_SCRIPT_ARMENIAN
  44903. UCDN_SCRIPT_HEBREW = _mupdf.UCDN_SCRIPT_HEBREW
  44904. UCDN_SCRIPT_ARABIC = _mupdf.UCDN_SCRIPT_ARABIC
  44905. UCDN_SCRIPT_SYRIAC = _mupdf.UCDN_SCRIPT_SYRIAC
  44906. UCDN_SCRIPT_THAANA = _mupdf.UCDN_SCRIPT_THAANA
  44907. UCDN_SCRIPT_DEVANAGARI = _mupdf.UCDN_SCRIPT_DEVANAGARI
  44908. UCDN_SCRIPT_BENGALI = _mupdf.UCDN_SCRIPT_BENGALI
  44909. UCDN_SCRIPT_GURMUKHI = _mupdf.UCDN_SCRIPT_GURMUKHI
  44910. UCDN_SCRIPT_GUJARATI = _mupdf.UCDN_SCRIPT_GUJARATI
  44911. UCDN_SCRIPT_ORIYA = _mupdf.UCDN_SCRIPT_ORIYA
  44912. UCDN_SCRIPT_TAMIL = _mupdf.UCDN_SCRIPT_TAMIL
  44913. UCDN_SCRIPT_TELUGU = _mupdf.UCDN_SCRIPT_TELUGU
  44914. UCDN_SCRIPT_KANNADA = _mupdf.UCDN_SCRIPT_KANNADA
  44915. UCDN_SCRIPT_MALAYALAM = _mupdf.UCDN_SCRIPT_MALAYALAM
  44916. UCDN_SCRIPT_SINHALA = _mupdf.UCDN_SCRIPT_SINHALA
  44917. UCDN_SCRIPT_THAI = _mupdf.UCDN_SCRIPT_THAI
  44918. UCDN_SCRIPT_LAO = _mupdf.UCDN_SCRIPT_LAO
  44919. UCDN_SCRIPT_TIBETAN = _mupdf.UCDN_SCRIPT_TIBETAN
  44920. UCDN_SCRIPT_MYANMAR = _mupdf.UCDN_SCRIPT_MYANMAR
  44921. UCDN_SCRIPT_GEORGIAN = _mupdf.UCDN_SCRIPT_GEORGIAN
  44922. UCDN_SCRIPT_HANGUL = _mupdf.UCDN_SCRIPT_HANGUL
  44923. UCDN_SCRIPT_ETHIOPIC = _mupdf.UCDN_SCRIPT_ETHIOPIC
  44924. UCDN_SCRIPT_CHEROKEE = _mupdf.UCDN_SCRIPT_CHEROKEE
  44925. UCDN_SCRIPT_CANADIAN_ABORIGINAL = _mupdf.UCDN_SCRIPT_CANADIAN_ABORIGINAL
  44926. UCDN_SCRIPT_OGHAM = _mupdf.UCDN_SCRIPT_OGHAM
  44927. UCDN_SCRIPT_RUNIC = _mupdf.UCDN_SCRIPT_RUNIC
  44928. UCDN_SCRIPT_KHMER = _mupdf.UCDN_SCRIPT_KHMER
  44929. UCDN_SCRIPT_MONGOLIAN = _mupdf.UCDN_SCRIPT_MONGOLIAN
  44930. UCDN_SCRIPT_HIRAGANA = _mupdf.UCDN_SCRIPT_HIRAGANA
  44931. UCDN_SCRIPT_KATAKANA = _mupdf.UCDN_SCRIPT_KATAKANA
  44932. UCDN_SCRIPT_BOPOMOFO = _mupdf.UCDN_SCRIPT_BOPOMOFO
  44933. UCDN_SCRIPT_HAN = _mupdf.UCDN_SCRIPT_HAN
  44934. UCDN_SCRIPT_YI = _mupdf.UCDN_SCRIPT_YI
  44935. UCDN_SCRIPT_OLD_ITALIC = _mupdf.UCDN_SCRIPT_OLD_ITALIC
  44936. UCDN_SCRIPT_GOTHIC = _mupdf.UCDN_SCRIPT_GOTHIC
  44937. UCDN_SCRIPT_DESERET = _mupdf.UCDN_SCRIPT_DESERET
  44938. UCDN_SCRIPT_INHERITED = _mupdf.UCDN_SCRIPT_INHERITED
  44939. UCDN_SCRIPT_TAGALOG = _mupdf.UCDN_SCRIPT_TAGALOG
  44940. UCDN_SCRIPT_HANUNOO = _mupdf.UCDN_SCRIPT_HANUNOO
  44941. UCDN_SCRIPT_BUHID = _mupdf.UCDN_SCRIPT_BUHID
  44942. UCDN_SCRIPT_TAGBANWA = _mupdf.UCDN_SCRIPT_TAGBANWA
  44943. UCDN_SCRIPT_LIMBU = _mupdf.UCDN_SCRIPT_LIMBU
  44944. UCDN_SCRIPT_TAI_LE = _mupdf.UCDN_SCRIPT_TAI_LE
  44945. UCDN_SCRIPT_LINEAR_B = _mupdf.UCDN_SCRIPT_LINEAR_B
  44946. UCDN_SCRIPT_UGARITIC = _mupdf.UCDN_SCRIPT_UGARITIC
  44947. UCDN_SCRIPT_SHAVIAN = _mupdf.UCDN_SCRIPT_SHAVIAN
  44948. UCDN_SCRIPT_OSMANYA = _mupdf.UCDN_SCRIPT_OSMANYA
  44949. UCDN_SCRIPT_CYPRIOT = _mupdf.UCDN_SCRIPT_CYPRIOT
  44950. UCDN_SCRIPT_BRAILLE = _mupdf.UCDN_SCRIPT_BRAILLE
  44951. UCDN_SCRIPT_BUGINESE = _mupdf.UCDN_SCRIPT_BUGINESE
  44952. UCDN_SCRIPT_COPTIC = _mupdf.UCDN_SCRIPT_COPTIC
  44953. UCDN_SCRIPT_NEW_TAI_LUE = _mupdf.UCDN_SCRIPT_NEW_TAI_LUE
  44954. UCDN_SCRIPT_GLAGOLITIC = _mupdf.UCDN_SCRIPT_GLAGOLITIC
  44955. UCDN_SCRIPT_TIFINAGH = _mupdf.UCDN_SCRIPT_TIFINAGH
  44956. UCDN_SCRIPT_SYLOTI_NAGRI = _mupdf.UCDN_SCRIPT_SYLOTI_NAGRI
  44957. UCDN_SCRIPT_OLD_PERSIAN = _mupdf.UCDN_SCRIPT_OLD_PERSIAN
  44958. UCDN_SCRIPT_KHAROSHTHI = _mupdf.UCDN_SCRIPT_KHAROSHTHI
  44959. UCDN_SCRIPT_BALINESE = _mupdf.UCDN_SCRIPT_BALINESE
  44960. UCDN_SCRIPT_CUNEIFORM = _mupdf.UCDN_SCRIPT_CUNEIFORM
  44961. UCDN_SCRIPT_PHOENICIAN = _mupdf.UCDN_SCRIPT_PHOENICIAN
  44962. UCDN_SCRIPT_PHAGS_PA = _mupdf.UCDN_SCRIPT_PHAGS_PA
  44963. UCDN_SCRIPT_NKO = _mupdf.UCDN_SCRIPT_NKO
  44964. UCDN_SCRIPT_SUNDANESE = _mupdf.UCDN_SCRIPT_SUNDANESE
  44965. UCDN_SCRIPT_LEPCHA = _mupdf.UCDN_SCRIPT_LEPCHA
  44966. UCDN_SCRIPT_OL_CHIKI = _mupdf.UCDN_SCRIPT_OL_CHIKI
  44967. UCDN_SCRIPT_VAI = _mupdf.UCDN_SCRIPT_VAI
  44968. UCDN_SCRIPT_SAURASHTRA = _mupdf.UCDN_SCRIPT_SAURASHTRA
  44969. UCDN_SCRIPT_KAYAH_LI = _mupdf.UCDN_SCRIPT_KAYAH_LI
  44970. UCDN_SCRIPT_REJANG = _mupdf.UCDN_SCRIPT_REJANG
  44971. UCDN_SCRIPT_LYCIAN = _mupdf.UCDN_SCRIPT_LYCIAN
  44972. UCDN_SCRIPT_CARIAN = _mupdf.UCDN_SCRIPT_CARIAN
  44973. UCDN_SCRIPT_LYDIAN = _mupdf.UCDN_SCRIPT_LYDIAN
  44974. UCDN_SCRIPT_CHAM = _mupdf.UCDN_SCRIPT_CHAM
  44975. UCDN_SCRIPT_TAI_THAM = _mupdf.UCDN_SCRIPT_TAI_THAM
  44976. UCDN_SCRIPT_TAI_VIET = _mupdf.UCDN_SCRIPT_TAI_VIET
  44977. UCDN_SCRIPT_AVESTAN = _mupdf.UCDN_SCRIPT_AVESTAN
  44978. UCDN_SCRIPT_EGYPTIAN_HIEROGLYPHS = _mupdf.UCDN_SCRIPT_EGYPTIAN_HIEROGLYPHS
  44979. UCDN_SCRIPT_SAMARITAN = _mupdf.UCDN_SCRIPT_SAMARITAN
  44980. UCDN_SCRIPT_LISU = _mupdf.UCDN_SCRIPT_LISU
  44981. UCDN_SCRIPT_BAMUM = _mupdf.UCDN_SCRIPT_BAMUM
  44982. UCDN_SCRIPT_JAVANESE = _mupdf.UCDN_SCRIPT_JAVANESE
  44983. UCDN_SCRIPT_MEETEI_MAYEK = _mupdf.UCDN_SCRIPT_MEETEI_MAYEK
  44984. UCDN_SCRIPT_IMPERIAL_ARAMAIC = _mupdf.UCDN_SCRIPT_IMPERIAL_ARAMAIC
  44985. UCDN_SCRIPT_OLD_SOUTH_ARABIAN = _mupdf.UCDN_SCRIPT_OLD_SOUTH_ARABIAN
  44986. UCDN_SCRIPT_INSCRIPTIONAL_PARTHIAN = _mupdf.UCDN_SCRIPT_INSCRIPTIONAL_PARTHIAN
  44987. UCDN_SCRIPT_INSCRIPTIONAL_PAHLAVI = _mupdf.UCDN_SCRIPT_INSCRIPTIONAL_PAHLAVI
  44988. UCDN_SCRIPT_OLD_TURKIC = _mupdf.UCDN_SCRIPT_OLD_TURKIC
  44989. UCDN_SCRIPT_KAITHI = _mupdf.UCDN_SCRIPT_KAITHI
  44990. UCDN_SCRIPT_BATAK = _mupdf.UCDN_SCRIPT_BATAK
  44991. UCDN_SCRIPT_BRAHMI = _mupdf.UCDN_SCRIPT_BRAHMI
  44992. UCDN_SCRIPT_MANDAIC = _mupdf.UCDN_SCRIPT_MANDAIC
  44993. UCDN_SCRIPT_CHAKMA = _mupdf.UCDN_SCRIPT_CHAKMA
  44994. UCDN_SCRIPT_MEROITIC_CURSIVE = _mupdf.UCDN_SCRIPT_MEROITIC_CURSIVE
  44995. UCDN_SCRIPT_MEROITIC_HIEROGLYPHS = _mupdf.UCDN_SCRIPT_MEROITIC_HIEROGLYPHS
  44996. UCDN_SCRIPT_MIAO = _mupdf.UCDN_SCRIPT_MIAO
  44997. UCDN_SCRIPT_SHARADA = _mupdf.UCDN_SCRIPT_SHARADA
  44998. UCDN_SCRIPT_SORA_SOMPENG = _mupdf.UCDN_SCRIPT_SORA_SOMPENG
  44999. UCDN_SCRIPT_TAKRI = _mupdf.UCDN_SCRIPT_TAKRI
  45000. UCDN_SCRIPT_UNKNOWN = _mupdf.UCDN_SCRIPT_UNKNOWN
  45001. UCDN_SCRIPT_BASSA_VAH = _mupdf.UCDN_SCRIPT_BASSA_VAH
  45002. UCDN_SCRIPT_CAUCASIAN_ALBANIAN = _mupdf.UCDN_SCRIPT_CAUCASIAN_ALBANIAN
  45003. UCDN_SCRIPT_DUPLOYAN = _mupdf.UCDN_SCRIPT_DUPLOYAN
  45004. UCDN_SCRIPT_ELBASAN = _mupdf.UCDN_SCRIPT_ELBASAN
  45005. UCDN_SCRIPT_GRANTHA = _mupdf.UCDN_SCRIPT_GRANTHA
  45006. UCDN_SCRIPT_KHOJKI = _mupdf.UCDN_SCRIPT_KHOJKI
  45007. UCDN_SCRIPT_KHUDAWADI = _mupdf.UCDN_SCRIPT_KHUDAWADI
  45008. UCDN_SCRIPT_LINEAR_A = _mupdf.UCDN_SCRIPT_LINEAR_A
  45009. UCDN_SCRIPT_MAHAJANI = _mupdf.UCDN_SCRIPT_MAHAJANI
  45010. UCDN_SCRIPT_MANICHAEAN = _mupdf.UCDN_SCRIPT_MANICHAEAN
  45011. UCDN_SCRIPT_MENDE_KIKAKUI = _mupdf.UCDN_SCRIPT_MENDE_KIKAKUI
  45012. UCDN_SCRIPT_MODI = _mupdf.UCDN_SCRIPT_MODI
  45013. UCDN_SCRIPT_MRO = _mupdf.UCDN_SCRIPT_MRO
  45014. UCDN_SCRIPT_NABATAEAN = _mupdf.UCDN_SCRIPT_NABATAEAN
  45015. UCDN_SCRIPT_OLD_NORTH_ARABIAN = _mupdf.UCDN_SCRIPT_OLD_NORTH_ARABIAN
  45016. UCDN_SCRIPT_OLD_PERMIC = _mupdf.UCDN_SCRIPT_OLD_PERMIC
  45017. UCDN_SCRIPT_PAHAWH_HMONG = _mupdf.UCDN_SCRIPT_PAHAWH_HMONG
  45018. UCDN_SCRIPT_PALMYRENE = _mupdf.UCDN_SCRIPT_PALMYRENE
  45019. UCDN_SCRIPT_PAU_CIN_HAU = _mupdf.UCDN_SCRIPT_PAU_CIN_HAU
  45020. UCDN_SCRIPT_PSALTER_PAHLAVI = _mupdf.UCDN_SCRIPT_PSALTER_PAHLAVI
  45021. UCDN_SCRIPT_SIDDHAM = _mupdf.UCDN_SCRIPT_SIDDHAM
  45022. UCDN_SCRIPT_TIRHUTA = _mupdf.UCDN_SCRIPT_TIRHUTA
  45023. UCDN_SCRIPT_WARANG_CITI = _mupdf.UCDN_SCRIPT_WARANG_CITI
  45024. UCDN_SCRIPT_AHOM = _mupdf.UCDN_SCRIPT_AHOM
  45025. UCDN_SCRIPT_ANATOLIAN_HIEROGLYPHS = _mupdf.UCDN_SCRIPT_ANATOLIAN_HIEROGLYPHS
  45026. UCDN_SCRIPT_HATRAN = _mupdf.UCDN_SCRIPT_HATRAN
  45027. UCDN_SCRIPT_MULTANI = _mupdf.UCDN_SCRIPT_MULTANI
  45028. UCDN_SCRIPT_OLD_HUNGARIAN = _mupdf.UCDN_SCRIPT_OLD_HUNGARIAN
  45029. UCDN_SCRIPT_SIGNWRITING = _mupdf.UCDN_SCRIPT_SIGNWRITING
  45030. UCDN_SCRIPT_ADLAM = _mupdf.UCDN_SCRIPT_ADLAM
  45031. UCDN_SCRIPT_BHAIKSUKI = _mupdf.UCDN_SCRIPT_BHAIKSUKI
  45032. UCDN_SCRIPT_MARCHEN = _mupdf.UCDN_SCRIPT_MARCHEN
  45033. UCDN_SCRIPT_NEWA = _mupdf.UCDN_SCRIPT_NEWA
  45034. UCDN_SCRIPT_OSAGE = _mupdf.UCDN_SCRIPT_OSAGE
  45035. UCDN_SCRIPT_TANGUT = _mupdf.UCDN_SCRIPT_TANGUT
  45036. UCDN_SCRIPT_MASARAM_GONDI = _mupdf.UCDN_SCRIPT_MASARAM_GONDI
  45037. UCDN_SCRIPT_NUSHU = _mupdf.UCDN_SCRIPT_NUSHU
  45038. UCDN_SCRIPT_SOYOMBO = _mupdf.UCDN_SCRIPT_SOYOMBO
  45039. UCDN_SCRIPT_ZANABAZAR_SQUARE = _mupdf.UCDN_SCRIPT_ZANABAZAR_SQUARE
  45040. UCDN_SCRIPT_DOGRA = _mupdf.UCDN_SCRIPT_DOGRA
  45041. UCDN_SCRIPT_GUNJALA_GONDI = _mupdf.UCDN_SCRIPT_GUNJALA_GONDI
  45042. UCDN_SCRIPT_HANIFI_ROHINGYA = _mupdf.UCDN_SCRIPT_HANIFI_ROHINGYA
  45043. UCDN_SCRIPT_MAKASAR = _mupdf.UCDN_SCRIPT_MAKASAR
  45044. UCDN_SCRIPT_MEDEFAIDRIN = _mupdf.UCDN_SCRIPT_MEDEFAIDRIN
  45045. UCDN_SCRIPT_OLD_SOGDIAN = _mupdf.UCDN_SCRIPT_OLD_SOGDIAN
  45046. UCDN_SCRIPT_SOGDIAN = _mupdf.UCDN_SCRIPT_SOGDIAN
  45047. UCDN_SCRIPT_ELYMAIC = _mupdf.UCDN_SCRIPT_ELYMAIC
  45048. UCDN_SCRIPT_NANDINAGARI = _mupdf.UCDN_SCRIPT_NANDINAGARI
  45049. UCDN_SCRIPT_NYIAKENG_PUACHUE_HMONG = _mupdf.UCDN_SCRIPT_NYIAKENG_PUACHUE_HMONG
  45050. UCDN_SCRIPT_WANCHO = _mupdf.UCDN_SCRIPT_WANCHO
  45051. UCDN_SCRIPT_CHORASMIAN = _mupdf.UCDN_SCRIPT_CHORASMIAN
  45052. UCDN_SCRIPT_DIVES_AKURU = _mupdf.UCDN_SCRIPT_DIVES_AKURU
  45053. UCDN_SCRIPT_KHITAN_SMALL_SCRIPT = _mupdf.UCDN_SCRIPT_KHITAN_SMALL_SCRIPT
  45054. UCDN_SCRIPT_YEZIDI = _mupdf.UCDN_SCRIPT_YEZIDI
  45055. UCDN_SCRIPT_VITHKUQI = _mupdf.UCDN_SCRIPT_VITHKUQI
  45056. UCDN_SCRIPT_OLD_UYGHUR = _mupdf.UCDN_SCRIPT_OLD_UYGHUR
  45057. UCDN_SCRIPT_CYPRO_MINOAN = _mupdf.UCDN_SCRIPT_CYPRO_MINOAN
  45058. UCDN_SCRIPT_TANGSA = _mupdf.UCDN_SCRIPT_TANGSA
  45059. UCDN_SCRIPT_TOTO = _mupdf.UCDN_SCRIPT_TOTO
  45060. UCDN_SCRIPT_KAWI = _mupdf.UCDN_SCRIPT_KAWI
  45061. UCDN_SCRIPT_NAG_MUNDARI = _mupdf.UCDN_SCRIPT_NAG_MUNDARI
  45062. UCDN_SCRIPT_TODHRI = _mupdf.UCDN_SCRIPT_TODHRI
  45063. UCDN_SCRIPT_GARAY = _mupdf.UCDN_SCRIPT_GARAY
  45064. UCDN_SCRIPT_TULU_TIGALARI = _mupdf.UCDN_SCRIPT_TULU_TIGALARI
  45065. UCDN_SCRIPT_SUNUWAR = _mupdf.UCDN_SCRIPT_SUNUWAR
  45066. UCDN_SCRIPT_GURUNG_KHEMA = _mupdf.UCDN_SCRIPT_GURUNG_KHEMA
  45067. UCDN_SCRIPT_KIRAT_RAI = _mupdf.UCDN_SCRIPT_KIRAT_RAI
  45068. UCDN_SCRIPT_OL_ONAL = _mupdf.UCDN_SCRIPT_OL_ONAL
  45069. UCDN_LAST_SCRIPT = _mupdf.UCDN_LAST_SCRIPT
  45070. UCDN_LINEBREAK_CLASS_OP = _mupdf.UCDN_LINEBREAK_CLASS_OP
  45071. UCDN_LINEBREAK_CLASS_CL = _mupdf.UCDN_LINEBREAK_CLASS_CL
  45072. UCDN_LINEBREAK_CLASS_CP = _mupdf.UCDN_LINEBREAK_CLASS_CP
  45073. UCDN_LINEBREAK_CLASS_QU = _mupdf.UCDN_LINEBREAK_CLASS_QU
  45074. UCDN_LINEBREAK_CLASS_GL = _mupdf.UCDN_LINEBREAK_CLASS_GL
  45075. UCDN_LINEBREAK_CLASS_NS = _mupdf.UCDN_LINEBREAK_CLASS_NS
  45076. UCDN_LINEBREAK_CLASS_EX = _mupdf.UCDN_LINEBREAK_CLASS_EX
  45077. UCDN_LINEBREAK_CLASS_SY = _mupdf.UCDN_LINEBREAK_CLASS_SY
  45078. UCDN_LINEBREAK_CLASS_IS = _mupdf.UCDN_LINEBREAK_CLASS_IS
  45079. UCDN_LINEBREAK_CLASS_PR = _mupdf.UCDN_LINEBREAK_CLASS_PR
  45080. UCDN_LINEBREAK_CLASS_PO = _mupdf.UCDN_LINEBREAK_CLASS_PO
  45081. UCDN_LINEBREAK_CLASS_NU = _mupdf.UCDN_LINEBREAK_CLASS_NU
  45082. UCDN_LINEBREAK_CLASS_AL = _mupdf.UCDN_LINEBREAK_CLASS_AL
  45083. UCDN_LINEBREAK_CLASS_HL = _mupdf.UCDN_LINEBREAK_CLASS_HL
  45084. UCDN_LINEBREAK_CLASS_ID = _mupdf.UCDN_LINEBREAK_CLASS_ID
  45085. UCDN_LINEBREAK_CLASS_IN = _mupdf.UCDN_LINEBREAK_CLASS_IN
  45086. UCDN_LINEBREAK_CLASS_HY = _mupdf.UCDN_LINEBREAK_CLASS_HY
  45087. UCDN_LINEBREAK_CLASS_BA = _mupdf.UCDN_LINEBREAK_CLASS_BA
  45088. UCDN_LINEBREAK_CLASS_BB = _mupdf.UCDN_LINEBREAK_CLASS_BB
  45089. UCDN_LINEBREAK_CLASS_B2 = _mupdf.UCDN_LINEBREAK_CLASS_B2
  45090. UCDN_LINEBREAK_CLASS_ZW = _mupdf.UCDN_LINEBREAK_CLASS_ZW
  45091. UCDN_LINEBREAK_CLASS_CM = _mupdf.UCDN_LINEBREAK_CLASS_CM
  45092. UCDN_LINEBREAK_CLASS_WJ = _mupdf.UCDN_LINEBREAK_CLASS_WJ
  45093. UCDN_LINEBREAK_CLASS_H2 = _mupdf.UCDN_LINEBREAK_CLASS_H2
  45094. UCDN_LINEBREAK_CLASS_H3 = _mupdf.UCDN_LINEBREAK_CLASS_H3
  45095. UCDN_LINEBREAK_CLASS_JL = _mupdf.UCDN_LINEBREAK_CLASS_JL
  45096. UCDN_LINEBREAK_CLASS_JV = _mupdf.UCDN_LINEBREAK_CLASS_JV
  45097. UCDN_LINEBREAK_CLASS_JT = _mupdf.UCDN_LINEBREAK_CLASS_JT
  45098. UCDN_LINEBREAK_CLASS_RI = _mupdf.UCDN_LINEBREAK_CLASS_RI
  45099. UCDN_LINEBREAK_CLASS_EB = _mupdf.UCDN_LINEBREAK_CLASS_EB
  45100. UCDN_LINEBREAK_CLASS_EM = _mupdf.UCDN_LINEBREAK_CLASS_EM
  45101. UCDN_LINEBREAK_CLASS_ZWJ = _mupdf.UCDN_LINEBREAK_CLASS_ZWJ
  45102. UCDN_LINEBREAK_CLASS_AI = _mupdf.UCDN_LINEBREAK_CLASS_AI
  45103. UCDN_LINEBREAK_CLASS_BK = _mupdf.UCDN_LINEBREAK_CLASS_BK
  45104. UCDN_LINEBREAK_CLASS_CB = _mupdf.UCDN_LINEBREAK_CLASS_CB
  45105. UCDN_LINEBREAK_CLASS_CJ = _mupdf.UCDN_LINEBREAK_CLASS_CJ
  45106. UCDN_LINEBREAK_CLASS_CR = _mupdf.UCDN_LINEBREAK_CLASS_CR
  45107. UCDN_LINEBREAK_CLASS_LF = _mupdf.UCDN_LINEBREAK_CLASS_LF
  45108. UCDN_LINEBREAK_CLASS_NL = _mupdf.UCDN_LINEBREAK_CLASS_NL
  45109. UCDN_LINEBREAK_CLASS_SA = _mupdf.UCDN_LINEBREAK_CLASS_SA
  45110. UCDN_LINEBREAK_CLASS_SG = _mupdf.UCDN_LINEBREAK_CLASS_SG
  45111. UCDN_LINEBREAK_CLASS_SP = _mupdf.UCDN_LINEBREAK_CLASS_SP
  45112. UCDN_LINEBREAK_CLASS_XX = _mupdf.UCDN_LINEBREAK_CLASS_XX
  45113. UCDN_LINEBREAK_CLASS_AK = _mupdf.UCDN_LINEBREAK_CLASS_AK
  45114. UCDN_LINEBREAK_CLASS_AP = _mupdf.UCDN_LINEBREAK_CLASS_AP
  45115. UCDN_LINEBREAK_CLASS_AS = _mupdf.UCDN_LINEBREAK_CLASS_AS
  45116. UCDN_LINEBREAK_CLASS_VF = _mupdf.UCDN_LINEBREAK_CLASS_VF
  45117. UCDN_LINEBREAK_CLASS_VI = _mupdf.UCDN_LINEBREAK_CLASS_VI
  45118. UCDN_GENERAL_CATEGORY_CC = _mupdf.UCDN_GENERAL_CATEGORY_CC
  45119. UCDN_GENERAL_CATEGORY_CF = _mupdf.UCDN_GENERAL_CATEGORY_CF
  45120. UCDN_GENERAL_CATEGORY_CN = _mupdf.UCDN_GENERAL_CATEGORY_CN
  45121. UCDN_GENERAL_CATEGORY_CO = _mupdf.UCDN_GENERAL_CATEGORY_CO
  45122. UCDN_GENERAL_CATEGORY_CS = _mupdf.UCDN_GENERAL_CATEGORY_CS
  45123. UCDN_GENERAL_CATEGORY_LL = _mupdf.UCDN_GENERAL_CATEGORY_LL
  45124. UCDN_GENERAL_CATEGORY_LM = _mupdf.UCDN_GENERAL_CATEGORY_LM
  45125. UCDN_GENERAL_CATEGORY_LO = _mupdf.UCDN_GENERAL_CATEGORY_LO
  45126. UCDN_GENERAL_CATEGORY_LT = _mupdf.UCDN_GENERAL_CATEGORY_LT
  45127. UCDN_GENERAL_CATEGORY_LU = _mupdf.UCDN_GENERAL_CATEGORY_LU
  45128. UCDN_GENERAL_CATEGORY_MC = _mupdf.UCDN_GENERAL_CATEGORY_MC
  45129. UCDN_GENERAL_CATEGORY_ME = _mupdf.UCDN_GENERAL_CATEGORY_ME
  45130. UCDN_GENERAL_CATEGORY_MN = _mupdf.UCDN_GENERAL_CATEGORY_MN
  45131. UCDN_GENERAL_CATEGORY_ND = _mupdf.UCDN_GENERAL_CATEGORY_ND
  45132. UCDN_GENERAL_CATEGORY_NL = _mupdf.UCDN_GENERAL_CATEGORY_NL
  45133. UCDN_GENERAL_CATEGORY_NO = _mupdf.UCDN_GENERAL_CATEGORY_NO
  45134. UCDN_GENERAL_CATEGORY_PC = _mupdf.UCDN_GENERAL_CATEGORY_PC
  45135. UCDN_GENERAL_CATEGORY_PD = _mupdf.UCDN_GENERAL_CATEGORY_PD
  45136. UCDN_GENERAL_CATEGORY_PE = _mupdf.UCDN_GENERAL_CATEGORY_PE
  45137. UCDN_GENERAL_CATEGORY_PF = _mupdf.UCDN_GENERAL_CATEGORY_PF
  45138. UCDN_GENERAL_CATEGORY_PI = _mupdf.UCDN_GENERAL_CATEGORY_PI
  45139. UCDN_GENERAL_CATEGORY_PO = _mupdf.UCDN_GENERAL_CATEGORY_PO
  45140. UCDN_GENERAL_CATEGORY_PS = _mupdf.UCDN_GENERAL_CATEGORY_PS
  45141. UCDN_GENERAL_CATEGORY_SC = _mupdf.UCDN_GENERAL_CATEGORY_SC
  45142. UCDN_GENERAL_CATEGORY_SK = _mupdf.UCDN_GENERAL_CATEGORY_SK
  45143. UCDN_GENERAL_CATEGORY_SM = _mupdf.UCDN_GENERAL_CATEGORY_SM
  45144. UCDN_GENERAL_CATEGORY_SO = _mupdf.UCDN_GENERAL_CATEGORY_SO
  45145. UCDN_GENERAL_CATEGORY_ZL = _mupdf.UCDN_GENERAL_CATEGORY_ZL
  45146. UCDN_GENERAL_CATEGORY_ZP = _mupdf.UCDN_GENERAL_CATEGORY_ZP
  45147. UCDN_GENERAL_CATEGORY_ZS = _mupdf.UCDN_GENERAL_CATEGORY_ZS
  45148. UCDN_BIDI_CLASS_L = _mupdf.UCDN_BIDI_CLASS_L
  45149. UCDN_BIDI_CLASS_LRE = _mupdf.UCDN_BIDI_CLASS_LRE
  45150. UCDN_BIDI_CLASS_LRO = _mupdf.UCDN_BIDI_CLASS_LRO
  45151. UCDN_BIDI_CLASS_R = _mupdf.UCDN_BIDI_CLASS_R
  45152. UCDN_BIDI_CLASS_AL = _mupdf.UCDN_BIDI_CLASS_AL
  45153. UCDN_BIDI_CLASS_RLE = _mupdf.UCDN_BIDI_CLASS_RLE
  45154. UCDN_BIDI_CLASS_RLO = _mupdf.UCDN_BIDI_CLASS_RLO
  45155. UCDN_BIDI_CLASS_PDF = _mupdf.UCDN_BIDI_CLASS_PDF
  45156. UCDN_BIDI_CLASS_EN = _mupdf.UCDN_BIDI_CLASS_EN
  45157. UCDN_BIDI_CLASS_ES = _mupdf.UCDN_BIDI_CLASS_ES
  45158. UCDN_BIDI_CLASS_ET = _mupdf.UCDN_BIDI_CLASS_ET
  45159. UCDN_BIDI_CLASS_AN = _mupdf.UCDN_BIDI_CLASS_AN
  45160. UCDN_BIDI_CLASS_CS = _mupdf.UCDN_BIDI_CLASS_CS
  45161. UCDN_BIDI_CLASS_NSM = _mupdf.UCDN_BIDI_CLASS_NSM
  45162. UCDN_BIDI_CLASS_BN = _mupdf.UCDN_BIDI_CLASS_BN
  45163. UCDN_BIDI_CLASS_B = _mupdf.UCDN_BIDI_CLASS_B
  45164. UCDN_BIDI_CLASS_S = _mupdf.UCDN_BIDI_CLASS_S
  45165. UCDN_BIDI_CLASS_WS = _mupdf.UCDN_BIDI_CLASS_WS
  45166. UCDN_BIDI_CLASS_ON = _mupdf.UCDN_BIDI_CLASS_ON
  45167. UCDN_BIDI_CLASS_LRI = _mupdf.UCDN_BIDI_CLASS_LRI
  45168. UCDN_BIDI_CLASS_RLI = _mupdf.UCDN_BIDI_CLASS_RLI
  45169. UCDN_BIDI_CLASS_FSI = _mupdf.UCDN_BIDI_CLASS_FSI
  45170. UCDN_BIDI_CLASS_PDI = _mupdf.UCDN_BIDI_CLASS_PDI
  45171. UCDN_BIDI_PAIRED_BRACKET_TYPE_OPEN = _mupdf.UCDN_BIDI_PAIRED_BRACKET_TYPE_OPEN
  45172. UCDN_BIDI_PAIRED_BRACKET_TYPE_CLOSE = _mupdf.UCDN_BIDI_PAIRED_BRACKET_TYPE_CLOSE
  45173. UCDN_BIDI_PAIRED_BRACKET_TYPE_NONE = _mupdf.UCDN_BIDI_PAIRED_BRACKET_TYPE_NONE
  45174. def new_pint():
  45175. return _mupdf.new_pint()
  45176. def copy_pint(value):
  45177. return _mupdf.copy_pint(value)
  45178. def delete_pint(obj):
  45179. return _mupdf.delete_pint(obj)
  45180. def pint_assign(obj, value):
  45181. return _mupdf.pint_assign(obj, value)
  45182. def pint_value(obj):
  45183. return _mupdf.pint_value(obj)
  45184. import inspect
  45185. import os
  45186. import re
  45187. import sys
  45188. import traceback
  45189. def log( text):
  45190. print( text, file=sys.stderr)
  45191. g_mupdf_trace_director = (os.environ.get('MUPDF_trace_director') == '1')
  45192. def fz_lookup_metadata(document, key):
  45193. """
  45194. Like fz_lookup_metadata2() but returns None on error
  45195. instead of raising exception.
  45196. """
  45197. try:
  45198. return fz_lookup_metadata2(document, key)
  45199. except Exception:
  45200. return
  45201. FzDocument.fz_lookup_metadata = fz_lookup_metadata
  45202. def pdf_lookup_metadata(document, key):
  45203. """
  45204. Likepsd_lookup_metadata2() but returns None on error
  45205. instead of raising exception.
  45206. """
  45207. try:
  45208. return pdf_lookup_metadata2(document, key)
  45209. except Exception:
  45210. return
  45211. PdfDocument.pdf_lookup_metadata = pdf_lookup_metadata
  45212. import inspect
  45213. import io
  45214. import os
  45215. import sys
  45216. import traceback
  45217. import types
  45218. def exception_info(
  45219. exception_or_traceback=None,
  45220. limit=None,
  45221. file=None,
  45222. chain=True,
  45223. outer=True,
  45224. show_exception_type=True,
  45225. _filelinefn=True,
  45226. ):
  45227. '''
  45228. Shows an exception and/or backtrace.
  45229. Alternative to `traceback.*` functions that print/return information about
  45230. exceptions and backtraces, such as:
  45231. * `traceback.format_exc()`
  45232. * `traceback.format_exception()`
  45233. * `traceback.print_exc()`
  45234. * `traceback.print_exception()`
  45235. Install as system default with:
  45236. `sys.excepthook = lambda type_, exception, traceback: jlib.exception_info( exception)`
  45237. Returns `None`, or the generated text if `file` is 'return'.
  45238. Args:
  45239. exception_or_traceback:
  45240. `None`, a `BaseException`, a `types.TracebackType` (typically from
  45241. an exception's `.__traceback__` member) or an `inspect.FrameInfo`.
  45242. If `None` we use current exception from `sys.exc_info()` if set,
  45243. otherwise the current backtrace from `inspect.stack()`.
  45244. limit:
  45245. As in `traceback.*` functions: `None` to show all frames, positive
  45246. to show last `limit` frames, negative to exclude outermost `-limit`
  45247. frames. Zero to not show any backtraces.
  45248. file:
  45249. As in `traceback.*` functions: file-like object to which we write
  45250. output, or `sys.stderr` if `None`. Special value 'return' makes us
  45251. return our output as a string.
  45252. chain:
  45253. As in `traceback.*` functions: if true (the default) we show
  45254. chained exceptions as described in PEP-3134. Special value
  45255. 'because' reverses the usual ordering, showing higher-level
  45256. exceptions first and joining with 'Because:' text.
  45257. outer:
  45258. If true (the default) we also show an exception's outer frames
  45259. above the `catch` block (see next section for details). We
  45260. use `outer=false` internally for chained exceptions to avoid
  45261. duplication.
  45262. show_exception_type:
  45263. Controls whether exception text is prefixed by
  45264. `f'{type(exception)}: '`. If callable we only include this prefix
  45265. if `show_exception_type(exception)` is true. Otherwise if true (the
  45266. default) we include the prefix for all exceptions (this mimcs the
  45267. behaviour of `traceback.*` functions). Otherwise we exclude the
  45268. prefix for all exceptions.
  45269. _filelinefn:
  45270. Internal only; makes us omit file:line: information to allow simple
  45271. doctest comparison with expected output.
  45272. Differences from `traceback.*` functions:
  45273. Frames are displayed as one line in the form::
  45274. <file>:<line>:<function>: <text>
  45275. Filenames are displayed as relative to the current directory if
  45276. applicable.
  45277. Inclusion of outer frames:
  45278. Unlike `traceback.*` functions, stack traces for exceptions include
  45279. outer stack frames above the point at which an exception was caught
  45280. - i.e. frames from the top-level <module> or thread creation to the
  45281. catch block. [Search for 'sys.exc_info backtrace incomplete' for
  45282. more details.]
  45283. We separate the two parts of the backtrace using a marker line
  45284. '^except raise:' where '^except' points upwards to the frame that
  45285. caught the exception and 'raise:' refers downwards to the frame
  45286. that raised the exception.
  45287. So the backtrace for an exception looks like this::
  45288. <file>:<line>:<fn>: <text> [in root module.]
  45289. ... [... other frames]
  45290. <file>:<line>:<fn>: <text> [in except: block where exception was caught.]
  45291. ^except raise: [marker line]
  45292. <file>:<line>:<fn>: <text> [in try: block.]
  45293. ... [... other frames]
  45294. <file>:<line>:<fn>: <text> [where the exception was raised.]
  45295. Examples:
  45296. In these examples we use `file=sys.stdout` so we can check the output
  45297. with `doctest`, and set `_filelinefn=0` so that the output can be
  45298. matched easily. We also use `+ELLIPSIS` and `...` to match arbitrary
  45299. outer frames from the doctest code itself.
  45300. Basic handling of an exception:
  45301. >>> def c():
  45302. ... raise Exception( 'c() failed')
  45303. >>> def b():
  45304. ... try:
  45305. ... c()
  45306. ... except Exception as e:
  45307. ... exception_info( e, file=sys.stdout, _filelinefn=0)
  45308. >>> def a():
  45309. ... b()
  45310. >>> a() # doctest: +REPORT_UDIFF +ELLIPSIS
  45311. Traceback (most recent call last):
  45312. ...
  45313. a(): b()
  45314. b(): exception_info( e, file=sys.stdout, _filelinefn=0)
  45315. ^except raise:
  45316. b(): c()
  45317. c(): raise Exception( 'c() failed')
  45318. Exception: c() failed
  45319. Handling of chained exceptions:
  45320. >>> def e():
  45321. ... raise Exception( 'e(): deliberate error')
  45322. >>> def d():
  45323. ... e()
  45324. >>> def c():
  45325. ... try:
  45326. ... d()
  45327. ... except Exception as e:
  45328. ... raise Exception( 'c: d() failed') from e
  45329. >>> def b():
  45330. ... try:
  45331. ... c()
  45332. ... except Exception as e:
  45333. ... exception_info( file=sys.stdout, chain=g_chain, _filelinefn=0)
  45334. >>> def a():
  45335. ... b()
  45336. With `chain=True` (the default), we output low-level exceptions
  45337. first, matching the behaviour of `traceback.*` functions:
  45338. >>> g_chain = True
  45339. >>> a() # doctest: +REPORT_UDIFF +ELLIPSIS
  45340. Traceback (most recent call last):
  45341. c(): d()
  45342. d(): e()
  45343. e(): raise Exception( 'e(): deliberate error')
  45344. Exception: e(): deliberate error
  45345. <BLANKLINE>
  45346. The above exception was the direct cause of the following exception:
  45347. Traceback (most recent call last):
  45348. ...
  45349. <module>(): a() # doctest: +REPORT_UDIFF +ELLIPSIS
  45350. a(): b()
  45351. b(): exception_info( file=sys.stdout, chain=g_chain, _filelinefn=0)
  45352. ^except raise:
  45353. b(): c()
  45354. c(): raise Exception( 'c: d() failed') from e
  45355. Exception: c: d() failed
  45356. With `chain='because'`, we output high-level exceptions first:
  45357. >>> g_chain = 'because'
  45358. >>> a() # doctest: +REPORT_UDIFF +ELLIPSIS
  45359. Traceback (most recent call last):
  45360. ...
  45361. <module>(): a() # doctest: +REPORT_UDIFF +ELLIPSIS
  45362. a(): b()
  45363. b(): exception_info( file=sys.stdout, chain=g_chain, _filelinefn=0)
  45364. ^except raise:
  45365. b(): c()
  45366. c(): raise Exception( 'c: d() failed') from e
  45367. Exception: c: d() failed
  45368. <BLANKLINE>
  45369. Because:
  45370. Traceback (most recent call last):
  45371. c(): d()
  45372. d(): e()
  45373. e(): raise Exception( 'e(): deliberate error')
  45374. Exception: e(): deliberate error
  45375. Show current backtrace by passing `exception_or_traceback=None`:
  45376. >>> def c():
  45377. ... exception_info( None, file=sys.stdout, _filelinefn=0)
  45378. >>> def b():
  45379. ... return c()
  45380. >>> def a():
  45381. ... return b()
  45382. >>> a() # doctest: +REPORT_UDIFF +ELLIPSIS
  45383. Traceback (most recent call last):
  45384. ...
  45385. <module>(): a() # doctest: +REPORT_UDIFF +ELLIPSIS
  45386. a(): return b()
  45387. b(): return c()
  45388. c(): exception_info( None, file=sys.stdout, _filelinefn=0)
  45389. Show an exception's `.__traceback__` backtrace:
  45390. >>> def c():
  45391. ... raise Exception( 'foo') # raise
  45392. >>> def b():
  45393. ... return c() # call c
  45394. >>> def a():
  45395. ... try:
  45396. ... b() # call b
  45397. ... except Exception as e:
  45398. ... exception_info( e.__traceback__, file=sys.stdout, _filelinefn=0)
  45399. >>> a() # doctest: +REPORT_UDIFF +ELLIPSIS
  45400. Traceback (most recent call last):
  45401. ...
  45402. a(): b() # call b
  45403. b(): return c() # call c
  45404. c(): raise Exception( 'foo') # raise
  45405. '''
  45406. # Set exactly one of <exception> and <tb>.
  45407. #
  45408. if isinstance( exception_or_traceback, (types.TracebackType, inspect.FrameInfo)):
  45409. # Simple backtrace, no Exception information.
  45410. exception = None
  45411. tb = exception_or_traceback
  45412. elif isinstance( exception_or_traceback, BaseException):
  45413. exception = exception_or_traceback
  45414. tb = None
  45415. elif exception_or_traceback is None:
  45416. # Show exception if available, else backtrace.
  45417. _, exception, tb = sys.exc_info()
  45418. tb = None if exception else inspect.stack()[1:]
  45419. else:
  45420. assert 0, f'Unrecognised exception_or_traceback type: {type(exception_or_traceback)}'
  45421. if file == 'return':
  45422. out = io.StringIO()
  45423. else:
  45424. out = file if file else sys.stderr
  45425. def do_chain( exception):
  45426. exception_info(
  45427. exception,
  45428. limit,
  45429. out,
  45430. chain,
  45431. outer=False,
  45432. show_exception_type=show_exception_type,
  45433. _filelinefn=_filelinefn,
  45434. )
  45435. if exception and chain and chain != 'because' and chain != 'because-compact':
  45436. # Output current exception first.
  45437. if exception.__cause__:
  45438. do_chain( exception.__cause__)
  45439. out.write( '\nThe above exception was the direct cause of the following exception:\n')
  45440. elif exception.__context__:
  45441. do_chain( exception.__context__)
  45442. out.write( '\nDuring handling of the above exception, another exception occurred:\n')
  45443. cwd = os.getcwd() + os.sep
  45444. def output_frames( frames, reverse, limit):
  45445. if limit == 0:
  45446. return
  45447. if reverse:
  45448. assert isinstance( frames, list)
  45449. frames = reversed( frames)
  45450. if limit is not None:
  45451. frames = list( frames)
  45452. frames = frames[ -limit:]
  45453. for frame in frames:
  45454. f, filename, line, fnname, text, index = frame
  45455. text = text[0].strip() if text else ''
  45456. if filename.startswith( cwd):
  45457. filename = filename[ len(cwd):]
  45458. if filename.startswith( f'.{os.sep}'):
  45459. filename = filename[ 2:]
  45460. if _filelinefn:
  45461. out.write( f' {filename}:{line}:{fnname}(): {text}\n')
  45462. else:
  45463. out.write( f' {fnname}(): {text}\n')
  45464. if limit != 0:
  45465. out.write( 'Traceback (most recent call last):\n')
  45466. if exception:
  45467. tb = exception.__traceback__
  45468. assert tb
  45469. if outer:
  45470. output_frames( inspect.getouterframes( tb.tb_frame), reverse=True, limit=limit)
  45471. out.write( ' ^except raise:\n')
  45472. limit2 = 0 if limit == 0 else None
  45473. output_frames( inspect.getinnerframes( tb), reverse=False, limit=limit2)
  45474. else:
  45475. if not isinstance( tb, list):
  45476. inner = inspect.getinnerframes(tb)
  45477. outer = inspect.getouterframes(tb.tb_frame)
  45478. tb = outer + inner
  45479. tb.reverse()
  45480. output_frames( tb, reverse=True, limit=limit)
  45481. if exception:
  45482. if callable(show_exception_type):
  45483. show_exception_type2 = show_exception_type( exception)
  45484. else:
  45485. show_exception_type2 = show_exception_type
  45486. if show_exception_type2:
  45487. lines = traceback.format_exception_only( type(exception), exception)
  45488. for line in lines:
  45489. out.write( line)
  45490. else:
  45491. out.write( str( exception) + '\n')
  45492. if exception and (chain == 'because' or chain == 'because-compact'):
  45493. # Output current exception afterwards.
  45494. pre, post = ('\n', '\n') if chain == 'because' else ('', ' ')
  45495. if exception.__cause__:
  45496. out.write( f'{pre}Because:{post}')
  45497. do_chain( exception.__cause__)
  45498. elif exception.__context__:
  45499. out.write( f'{pre}Because: error occurred handling this exception:{post}')
  45500. do_chain( exception.__context__)
  45501. if file == 'return':
  45502. return out.getvalue()
  45503. def ll_fz_bidi_fragment_text(text, textlen, callback, arg, flags):
  45504. """
  45505. Wrapper for out-params of fz_bidi_fragment_text().
  45506. Returns: ::fz_bidi_direction baseDir
  45507. """
  45508. outparams = ll_fz_bidi_fragment_text_outparams()
  45509. ret = ll_fz_bidi_fragment_text_outparams_fn(text, textlen, callback, arg, flags, outparams)
  45510. return outparams.baseDir
  45511. def fz_bidi_fragment_text_outparams_fn(text, textlen, callback, arg, flags):
  45512. """
  45513. Class-aware helper for out-params of fz_bidi_fragment_text() [fz_bidi_fragment_text()].
  45514. """
  45515. baseDir = ll_fz_bidi_fragment_text(text, textlen, callback, arg, flags)
  45516. return baseDir
  45517. fz_bidi_fragment_text = fz_bidi_fragment_text_outparams_fn
  45518. def ll_fz_bitmap_details(bitmap):
  45519. """
  45520. Wrapper for out-params of fz_bitmap_details().
  45521. Returns: int w, int h, int n, int stride
  45522. """
  45523. outparams = ll_fz_bitmap_details_outparams()
  45524. ret = ll_fz_bitmap_details_outparams_fn(bitmap, outparams)
  45525. return outparams.w, outparams.h, outparams.n, outparams.stride
  45526. def fz_bitmap_details_outparams_fn(bitmap):
  45527. """
  45528. Class-aware helper for out-params of fz_bitmap_details() [fz_bitmap_details()].
  45529. """
  45530. w, h, n, stride = ll_fz_bitmap_details(bitmap.m_internal)
  45531. return w, h, n, stride
  45532. fz_bitmap_details = fz_bitmap_details_outparams_fn
  45533. def ll_fz_buffer_extract(buf):
  45534. """
  45535. Wrapper for out-params of fz_buffer_extract().
  45536. Returns: size_t, unsigned char *data
  45537. """
  45538. outparams = ll_fz_buffer_extract_outparams()
  45539. ret = ll_fz_buffer_extract_outparams_fn(buf, outparams)
  45540. return ret, outparams.data
  45541. def fz_buffer_extract_outparams_fn(buf):
  45542. """
  45543. Class-aware helper for out-params of fz_buffer_extract() [fz_buffer_extract()].
  45544. """
  45545. ret, data = ll_fz_buffer_extract(buf.m_internal)
  45546. return ret, data
  45547. fz_buffer_extract = fz_buffer_extract_outparams_fn
  45548. def ll_fz_buffer_storage(buf):
  45549. """
  45550. Wrapper for out-params of fz_buffer_storage().
  45551. Returns: size_t, unsigned char *datap
  45552. """
  45553. outparams = ll_fz_buffer_storage_outparams()
  45554. ret = ll_fz_buffer_storage_outparams_fn(buf, outparams)
  45555. return ret, outparams.datap
  45556. def fz_buffer_storage_outparams_fn(buf):
  45557. """
  45558. Class-aware helper for out-params of fz_buffer_storage() [fz_buffer_storage()].
  45559. """
  45560. ret, datap = ll_fz_buffer_storage(buf.m_internal)
  45561. return ret, datap
  45562. fz_buffer_storage = fz_buffer_storage_outparams_fn
  45563. def ll_fz_chartorune(str):
  45564. """
  45565. Wrapper for out-params of fz_chartorune().
  45566. Returns: int, int rune
  45567. """
  45568. outparams = ll_fz_chartorune_outparams()
  45569. ret = ll_fz_chartorune_outparams_fn(str, outparams)
  45570. return ret, outparams.rune
  45571. def fz_chartorune_outparams_fn(str):
  45572. """
  45573. Class-aware helper for out-params of fz_chartorune() [fz_chartorune()].
  45574. """
  45575. ret, rune = ll_fz_chartorune(str)
  45576. return ret, rune
  45577. fz_chartorune = fz_chartorune_outparams_fn
  45578. def ll_fz_chartorunen(str, n):
  45579. """
  45580. Wrapper for out-params of fz_chartorunen().
  45581. Returns: int, int rune
  45582. """
  45583. outparams = ll_fz_chartorunen_outparams()
  45584. ret = ll_fz_chartorunen_outparams_fn(str, n, outparams)
  45585. return ret, outparams.rune
  45586. def fz_chartorunen_outparams_fn(str, n):
  45587. """
  45588. Class-aware helper for out-params of fz_chartorunen() [fz_chartorunen()].
  45589. """
  45590. ret, rune = ll_fz_chartorunen(str, n)
  45591. return ret, rune
  45592. fz_chartorunen = fz_chartorunen_outparams_fn
  45593. def ll_fz_clamp_color(cs, in_):
  45594. """
  45595. Wrapper for out-params of fz_clamp_color().
  45596. Returns: float out
  45597. """
  45598. outparams = ll_fz_clamp_color_outparams()
  45599. ret = ll_fz_clamp_color_outparams_fn(cs, in_, outparams)
  45600. return outparams.out
  45601. def fz_clamp_color_outparams_fn(cs, in_):
  45602. """
  45603. Class-aware helper for out-params of fz_clamp_color() [fz_clamp_color()].
  45604. """
  45605. out = ll_fz_clamp_color(cs.m_internal, in_)
  45606. return out
  45607. fz_clamp_color = fz_clamp_color_outparams_fn
  45608. def ll_fz_compress_brotli(dest, source, source_length, level):
  45609. """
  45610. Wrapper for out-params of fz_compress_brotli().
  45611. Returns: size_t compressed_length
  45612. """
  45613. outparams = ll_fz_compress_brotli_outparams()
  45614. ret = ll_fz_compress_brotli_outparams_fn(dest, source, source_length, level, outparams)
  45615. return outparams.compressed_length
  45616. def fz_compress_brotli_outparams_fn(dest, source, source_length, level):
  45617. """
  45618. Class-aware helper for out-params of fz_compress_brotli() [fz_compress_brotli()].
  45619. """
  45620. compressed_length = ll_fz_compress_brotli(dest, source, source_length, level)
  45621. return compressed_length
  45622. fz_compress_brotli = fz_compress_brotli_outparams_fn
  45623. def ll_fz_convert_color(ss, sv, ds, is_, params):
  45624. """
  45625. Wrapper for out-params of fz_convert_color().
  45626. Returns: float dv
  45627. """
  45628. outparams = ll_fz_convert_color_outparams()
  45629. ret = ll_fz_convert_color_outparams_fn(ss, sv, ds, is_, params, outparams)
  45630. return outparams.dv
  45631. def fz_convert_color_outparams_fn(ss, sv, ds, is_, params):
  45632. """
  45633. Class-aware helper for out-params of fz_convert_color() [fz_convert_color()].
  45634. """
  45635. dv = ll_fz_convert_color(ss.m_internal, sv, ds.m_internal, is_.m_internal, params.internal())
  45636. return dv
  45637. fz_convert_color = fz_convert_color_outparams_fn
  45638. def ll_fz_convert_error():
  45639. """
  45640. Wrapper for out-params of fz_convert_error().
  45641. Returns: const char *, int code
  45642. """
  45643. outparams = ll_fz_convert_error_outparams()
  45644. ret = ll_fz_convert_error_outparams_fn(outparams)
  45645. return ret, outparams.code
  45646. def fz_convert_error_outparams_fn():
  45647. """
  45648. Class-aware helper for out-params of fz_convert_error() [fz_convert_error()].
  45649. """
  45650. ret, code = ll_fz_convert_error()
  45651. return ret, code
  45652. fz_convert_error = fz_convert_error_outparams_fn
  45653. def ll_fz_convert_separation_colors(src_cs, src_color, dst_seps, dst_cs, color_params):
  45654. """
  45655. Wrapper for out-params of fz_convert_separation_colors().
  45656. Returns: float dst_color
  45657. """
  45658. outparams = ll_fz_convert_separation_colors_outparams()
  45659. ret = ll_fz_convert_separation_colors_outparams_fn(src_cs, src_color, dst_seps, dst_cs, color_params, outparams)
  45660. return outparams.dst_color
  45661. def fz_convert_separation_colors_outparams_fn(src_cs, src_color, dst_seps, dst_cs, color_params):
  45662. """
  45663. Class-aware helper for out-params of fz_convert_separation_colors() [fz_convert_separation_colors()].
  45664. """
  45665. dst_color = ll_fz_convert_separation_colors(src_cs.m_internal, src_color, dst_seps.m_internal, dst_cs.m_internal, color_params.internal())
  45666. return dst_color
  45667. fz_convert_separation_colors = fz_convert_separation_colors_outparams_fn
  45668. def ll_fz_decode_barcode_from_display_list(list, subarea, rotate):
  45669. """
  45670. Wrapper for out-params of fz_decode_barcode_from_display_list().
  45671. Returns: char *, ::fz_barcode_type type
  45672. """
  45673. outparams = ll_fz_decode_barcode_from_display_list_outparams()
  45674. ret = ll_fz_decode_barcode_from_display_list_outparams_fn(list, subarea, rotate, outparams)
  45675. return ret, outparams.type
  45676. def fz_decode_barcode_from_display_list_outparams_fn(list, subarea, rotate):
  45677. """
  45678. Class-aware helper for out-params of fz_decode_barcode_from_display_list() [fz_decode_barcode_from_display_list()].
  45679. """
  45680. ret, type = ll_fz_decode_barcode_from_display_list(list.m_internal, subarea.internal(), rotate)
  45681. return ret, type
  45682. fz_decode_barcode_from_display_list = fz_decode_barcode_from_display_list_outparams_fn
  45683. def ll_fz_decode_barcode_from_display_list2(list, subarea, rotate):
  45684. """
  45685. Wrapper for out-params of fz_decode_barcode_from_display_list2().
  45686. Returns: std::string, ::fz_barcode_type type
  45687. """
  45688. outparams = ll_fz_decode_barcode_from_display_list2_outparams()
  45689. ret = ll_fz_decode_barcode_from_display_list2_outparams_fn(list, subarea, rotate, outparams)
  45690. return ret, outparams.type
  45691. def fz_decode_barcode_from_display_list2_outparams_fn(list, subarea, rotate):
  45692. """
  45693. Class-aware helper for out-params of fz_decode_barcode_from_display_list2() [fz_decode_barcode_from_display_list2()].
  45694. """
  45695. ret, type = ll_fz_decode_barcode_from_display_list2(list.m_internal, subarea.internal(), rotate)
  45696. return ret, type
  45697. fz_decode_barcode_from_display_list2 = fz_decode_barcode_from_display_list2_outparams_fn
  45698. def ll_fz_decode_barcode_from_page(page, subarea, rotate):
  45699. """
  45700. Wrapper for out-params of fz_decode_barcode_from_page().
  45701. Returns: char *, ::fz_barcode_type type
  45702. """
  45703. outparams = ll_fz_decode_barcode_from_page_outparams()
  45704. ret = ll_fz_decode_barcode_from_page_outparams_fn(page, subarea, rotate, outparams)
  45705. return ret, outparams.type
  45706. def fz_decode_barcode_from_page_outparams_fn(page, subarea, rotate):
  45707. """
  45708. Class-aware helper for out-params of fz_decode_barcode_from_page() [fz_decode_barcode_from_page()].
  45709. """
  45710. ret, type = ll_fz_decode_barcode_from_page(page.m_internal, subarea.internal(), rotate)
  45711. return ret, type
  45712. fz_decode_barcode_from_page = fz_decode_barcode_from_page_outparams_fn
  45713. def ll_fz_decode_barcode_from_page2(page, subarea, rotate):
  45714. """
  45715. Wrapper for out-params of fz_decode_barcode_from_page2().
  45716. Returns: std::string, ::fz_barcode_type type
  45717. """
  45718. outparams = ll_fz_decode_barcode_from_page2_outparams()
  45719. ret = ll_fz_decode_barcode_from_page2_outparams_fn(page, subarea, rotate, outparams)
  45720. return ret, outparams.type
  45721. def fz_decode_barcode_from_page2_outparams_fn(page, subarea, rotate):
  45722. """
  45723. Class-aware helper for out-params of fz_decode_barcode_from_page2() [fz_decode_barcode_from_page2()].
  45724. """
  45725. ret, type = ll_fz_decode_barcode_from_page2(page.m_internal, subarea.internal(), rotate)
  45726. return ret, type
  45727. fz_decode_barcode_from_page2 = fz_decode_barcode_from_page2_outparams_fn
  45728. def ll_fz_decode_barcode_from_pixmap(pix, rotate):
  45729. """
  45730. Wrapper for out-params of fz_decode_barcode_from_pixmap().
  45731. Returns: char *, ::fz_barcode_type type
  45732. """
  45733. outparams = ll_fz_decode_barcode_from_pixmap_outparams()
  45734. ret = ll_fz_decode_barcode_from_pixmap_outparams_fn(pix, rotate, outparams)
  45735. return ret, outparams.type
  45736. def fz_decode_barcode_from_pixmap_outparams_fn(pix, rotate):
  45737. """
  45738. Class-aware helper for out-params of fz_decode_barcode_from_pixmap() [fz_decode_barcode_from_pixmap()].
  45739. """
  45740. ret, type = ll_fz_decode_barcode_from_pixmap(pix.m_internal, rotate)
  45741. return ret, type
  45742. fz_decode_barcode_from_pixmap = fz_decode_barcode_from_pixmap_outparams_fn
  45743. def ll_fz_decode_barcode_from_pixmap2(pix, rotate):
  45744. """
  45745. Wrapper for out-params of fz_decode_barcode_from_pixmap2().
  45746. Returns: std::string, ::fz_barcode_type type
  45747. """
  45748. outparams = ll_fz_decode_barcode_from_pixmap2_outparams()
  45749. ret = ll_fz_decode_barcode_from_pixmap2_outparams_fn(pix, rotate, outparams)
  45750. return ret, outparams.type
  45751. def fz_decode_barcode_from_pixmap2_outparams_fn(pix, rotate):
  45752. """
  45753. Class-aware helper for out-params of fz_decode_barcode_from_pixmap2() [fz_decode_barcode_from_pixmap2()].
  45754. """
  45755. ret, type = ll_fz_decode_barcode_from_pixmap2(pix.m_internal, rotate)
  45756. return ret, type
  45757. fz_decode_barcode_from_pixmap2 = fz_decode_barcode_from_pixmap2_outparams_fn
  45758. def ll_fz_decomp_image_from_stream(stm, image, subarea, indexed, l2factor):
  45759. """
  45760. Wrapper for out-params of fz_decomp_image_from_stream().
  45761. Returns: fz_pixmap *, int l2extra
  45762. """
  45763. outparams = ll_fz_decomp_image_from_stream_outparams()
  45764. ret = ll_fz_decomp_image_from_stream_outparams_fn(stm, image, subarea, indexed, l2factor, outparams)
  45765. return ret, outparams.l2extra
  45766. def fz_decomp_image_from_stream_outparams_fn(stm, image, subarea, indexed, l2factor):
  45767. """
  45768. Class-aware helper for out-params of fz_decomp_image_from_stream() [fz_decomp_image_from_stream()].
  45769. """
  45770. ret, l2extra = ll_fz_decomp_image_from_stream(stm.m_internal, image.m_internal, subarea.internal(), indexed, l2factor)
  45771. return FzPixmap(ret), l2extra
  45772. fz_decomp_image_from_stream = fz_decomp_image_from_stream_outparams_fn
  45773. def ll_fz_deflate(dest, source, source_length, level):
  45774. """
  45775. Wrapper for out-params of fz_deflate().
  45776. Returns: size_t compressed_length
  45777. """
  45778. outparams = ll_fz_deflate_outparams()
  45779. ret = ll_fz_deflate_outparams_fn(dest, source, source_length, level, outparams)
  45780. return outparams.compressed_length
  45781. def fz_deflate_outparams_fn(dest, source, source_length, level):
  45782. """
  45783. Class-aware helper for out-params of fz_deflate() [fz_deflate()].
  45784. """
  45785. compressed_length = ll_fz_deflate(dest, source, source_length, level)
  45786. return compressed_length
  45787. fz_deflate = fz_deflate_outparams_fn
  45788. def ll_fz_dom_get_attribute(elt, i):
  45789. """
  45790. Wrapper for out-params of fz_dom_get_attribute().
  45791. Returns: const char *, const char *att
  45792. """
  45793. outparams = ll_fz_dom_get_attribute_outparams()
  45794. ret = ll_fz_dom_get_attribute_outparams_fn(elt, i, outparams)
  45795. return ret, outparams.att
  45796. def fz_dom_get_attribute_outparams_fn(elt, i):
  45797. """
  45798. Class-aware helper for out-params of fz_dom_get_attribute() [fz_dom_get_attribute()].
  45799. """
  45800. ret, att = ll_fz_dom_get_attribute(elt.m_internal, i)
  45801. return ret, att
  45802. fz_dom_get_attribute = fz_dom_get_attribute_outparams_fn
  45803. def ll_fz_drop_imp(p):
  45804. """
  45805. Wrapper for out-params of fz_drop_imp().
  45806. Returns: int, int refs
  45807. """
  45808. outparams = ll_fz_drop_imp_outparams()
  45809. ret = ll_fz_drop_imp_outparams_fn(p, outparams)
  45810. return ret, outparams.refs
  45811. def ll_fz_drop_imp16(p):
  45812. """
  45813. Wrapper for out-params of fz_drop_imp16().
  45814. Returns: int, int16_t refs
  45815. """
  45816. outparams = ll_fz_drop_imp16_outparams()
  45817. ret = ll_fz_drop_imp16_outparams_fn(p, outparams)
  45818. return ret, outparams.refs
  45819. def ll_fz_encode_character_with_fallback(font, unicode, script, language):
  45820. """
  45821. Wrapper for out-params of fz_encode_character_with_fallback().
  45822. Returns: int, ::fz_font *out_font
  45823. """
  45824. outparams = ll_fz_encode_character_with_fallback_outparams()
  45825. ret = ll_fz_encode_character_with_fallback_outparams_fn(font, unicode, script, language, outparams)
  45826. return ret, outparams.out_font
  45827. def fz_encode_character_with_fallback_outparams_fn(font, unicode, script, language):
  45828. """
  45829. Class-aware helper for out-params of fz_encode_character_with_fallback() [fz_encode_character_with_fallback()].
  45830. """
  45831. ret, out_font = ll_fz_encode_character_with_fallback(font.m_internal, unicode, script, language)
  45832. return ret, FzFont(ll_fz_keep_font( out_font))
  45833. fz_encode_character_with_fallback = fz_encode_character_with_fallback_outparams_fn
  45834. def ll_fz_error_callback():
  45835. """
  45836. Wrapper for out-params of fz_error_callback().
  45837. Returns: fz_error_cb *, void *user
  45838. """
  45839. outparams = ll_fz_error_callback_outparams()
  45840. ret = ll_fz_error_callback_outparams_fn(outparams)
  45841. return ret, outparams.user
  45842. def fz_error_callback_outparams_fn():
  45843. """
  45844. Class-aware helper for out-params of fz_error_callback() [fz_error_callback()].
  45845. """
  45846. ret, user = ll_fz_error_callback()
  45847. return ret, user
  45848. fz_error_callback = fz_error_callback_outparams_fn
  45849. def ll_fz_eval_function(func, in_, inlen, outlen):
  45850. """
  45851. Wrapper for out-params of fz_eval_function().
  45852. Returns: float out
  45853. """
  45854. outparams = ll_fz_eval_function_outparams()
  45855. ret = ll_fz_eval_function_outparams_fn(func, in_, inlen, outlen, outparams)
  45856. return outparams.out
  45857. def fz_eval_function_outparams_fn(func, in_, inlen, outlen):
  45858. """
  45859. Class-aware helper for out-params of fz_eval_function() [fz_eval_function()].
  45860. """
  45861. out = ll_fz_eval_function(func.m_internal, in_, inlen, outlen)
  45862. return out
  45863. fz_eval_function = fz_eval_function_outparams_fn
  45864. def ll_fz_fill_pixmap_with_color(pix, colorspace, color_params):
  45865. """
  45866. Wrapper for out-params of fz_fill_pixmap_with_color().
  45867. Returns: float color
  45868. """
  45869. outparams = ll_fz_fill_pixmap_with_color_outparams()
  45870. ret = ll_fz_fill_pixmap_with_color_outparams_fn(pix, colorspace, color_params, outparams)
  45871. return outparams.color
  45872. def fz_fill_pixmap_with_color_outparams_fn(pix, colorspace, color_params):
  45873. """
  45874. Class-aware helper for out-params of fz_fill_pixmap_with_color() [fz_fill_pixmap_with_color()].
  45875. """
  45876. color = ll_fz_fill_pixmap_with_color(pix.m_internal, colorspace.m_internal, color_params.internal())
  45877. return color
  45878. fz_fill_pixmap_with_color = fz_fill_pixmap_with_color_outparams_fn
  45879. def ll_fz_get_pixmap_from_image(image, subarea, ctm):
  45880. """
  45881. Wrapper for out-params of fz_get_pixmap_from_image().
  45882. Returns: fz_pixmap *, int w, int h
  45883. """
  45884. outparams = ll_fz_get_pixmap_from_image_outparams()
  45885. ret = ll_fz_get_pixmap_from_image_outparams_fn(image, subarea, ctm, outparams)
  45886. return ret, outparams.w, outparams.h
  45887. def fz_get_pixmap_from_image_outparams_fn(image, subarea, ctm):
  45888. """
  45889. Class-aware helper for out-params of fz_get_pixmap_from_image() [fz_get_pixmap_from_image()].
  45890. """
  45891. ret, w, h = ll_fz_get_pixmap_from_image(image.m_internal, subarea.internal(), ctm.internal())
  45892. return FzPixmap(ret), w, h
  45893. fz_get_pixmap_from_image = fz_get_pixmap_from_image_outparams_fn
  45894. def ll_fz_getopt(nargc, ostr):
  45895. """
  45896. Wrapper for out-params of fz_getopt().
  45897. Returns: int, char *nargv
  45898. """
  45899. outparams = ll_fz_getopt_outparams()
  45900. ret = ll_fz_getopt_outparams_fn(nargc, ostr, outparams)
  45901. return ret, outparams.nargv
  45902. def fz_getopt_outparams_fn(nargc, ostr):
  45903. """
  45904. Class-aware helper for out-params of fz_getopt() [fz_getopt()].
  45905. """
  45906. ret, nargv = ll_fz_getopt(nargc, ostr)
  45907. return ret, nargv
  45908. fz_getopt = fz_getopt_outparams_fn
  45909. def ll_fz_getopt_long(nargc, ostr, longopts):
  45910. """
  45911. Wrapper for out-params of fz_getopt_long().
  45912. Returns: int, char *nargv
  45913. """
  45914. outparams = ll_fz_getopt_long_outparams()
  45915. ret = ll_fz_getopt_long_outparams_fn(nargc, ostr, longopts, outparams)
  45916. return ret, outparams.nargv
  45917. def fz_getopt_long_outparams_fn(nargc, ostr, longopts):
  45918. """
  45919. Class-aware helper for out-params of fz_getopt_long() [fz_getopt_long()].
  45920. """
  45921. ret, nargv = ll_fz_getopt_long(nargc, ostr, longopts.m_internal)
  45922. return ret, nargv
  45923. fz_getopt_long = fz_getopt_long_outparams_fn
  45924. def ll_fz_grisu(f, s):
  45925. """
  45926. Wrapper for out-params of fz_grisu().
  45927. Returns: int, int exp
  45928. """
  45929. outparams = ll_fz_grisu_outparams()
  45930. ret = ll_fz_grisu_outparams_fn(f, s, outparams)
  45931. return ret, outparams.exp
  45932. def fz_grisu_outparams_fn(f, s):
  45933. """
  45934. Class-aware helper for out-params of fz_grisu() [fz_grisu()].
  45935. """
  45936. ret, exp = ll_fz_grisu(f, s)
  45937. return ret, exp
  45938. fz_grisu = fz_grisu_outparams_fn
  45939. def ll_fz_has_option(opts, key):
  45940. """
  45941. Wrapper for out-params of fz_has_option().
  45942. Returns: int, const char *val
  45943. """
  45944. outparams = ll_fz_has_option_outparams()
  45945. ret = ll_fz_has_option_outparams_fn(opts, key, outparams)
  45946. return ret, outparams.val
  45947. def fz_has_option_outparams_fn(opts, key):
  45948. """
  45949. Class-aware helper for out-params of fz_has_option() [fz_has_option()].
  45950. """
  45951. ret, val = ll_fz_has_option(opts, key)
  45952. return ret, val
  45953. fz_has_option = fz_has_option_outparams_fn
  45954. def ll_fz_image_resolution(image):
  45955. """
  45956. Wrapper for out-params of fz_image_resolution().
  45957. Returns: int xres, int yres
  45958. """
  45959. outparams = ll_fz_image_resolution_outparams()
  45960. ret = ll_fz_image_resolution_outparams_fn(image, outparams)
  45961. return outparams.xres, outparams.yres
  45962. def fz_image_resolution_outparams_fn(image):
  45963. """
  45964. Class-aware helper for out-params of fz_image_resolution() [fz_image_resolution()].
  45965. """
  45966. xres, yres = ll_fz_image_resolution(image.m_internal)
  45967. return xres, yres
  45968. fz_image_resolution = fz_image_resolution_outparams_fn
  45969. def ll_fz_keep_imp(p):
  45970. """
  45971. Wrapper for out-params of fz_keep_imp().
  45972. Returns: void *, int refs
  45973. """
  45974. outparams = ll_fz_keep_imp_outparams()
  45975. ret = ll_fz_keep_imp_outparams_fn(p, outparams)
  45976. return ret, outparams.refs
  45977. def ll_fz_keep_imp16(p):
  45978. """
  45979. Wrapper for out-params of fz_keep_imp16().
  45980. Returns: void *, int16_t refs
  45981. """
  45982. outparams = ll_fz_keep_imp16_outparams()
  45983. ret = ll_fz_keep_imp16_outparams_fn(p, outparams)
  45984. return ret, outparams.refs
  45985. def ll_fz_keep_imp_locked(p):
  45986. """
  45987. Wrapper for out-params of fz_keep_imp_locked().
  45988. Returns: void *, int refs
  45989. """
  45990. outparams = ll_fz_keep_imp_locked_outparams()
  45991. ret = ll_fz_keep_imp_locked_outparams_fn(p, outparams)
  45992. return ret, outparams.refs
  45993. def ll_fz_lookup_base14_font(name):
  45994. """
  45995. Wrapper for out-params of fz_lookup_base14_font().
  45996. Returns: const unsigned char *, int len
  45997. """
  45998. outparams = ll_fz_lookup_base14_font_outparams()
  45999. ret = ll_fz_lookup_base14_font_outparams_fn(name, outparams)
  46000. return ret, outparams.len
  46001. def fz_lookup_base14_font_outparams_fn(name):
  46002. """
  46003. Class-aware helper for out-params of fz_lookup_base14_font() [fz_lookup_base14_font()].
  46004. """
  46005. ret, len = ll_fz_lookup_base14_font(name)
  46006. return ret, len
  46007. fz_lookup_base14_font = fz_lookup_base14_font_outparams_fn
  46008. def ll_fz_lookup_builtin_font(name, bold, italic):
  46009. """
  46010. Wrapper for out-params of fz_lookup_builtin_font().
  46011. Returns: const unsigned char *, int len
  46012. """
  46013. outparams = ll_fz_lookup_builtin_font_outparams()
  46014. ret = ll_fz_lookup_builtin_font_outparams_fn(name, bold, italic, outparams)
  46015. return ret, outparams.len
  46016. def fz_lookup_builtin_font_outparams_fn(name, bold, italic):
  46017. """
  46018. Class-aware helper for out-params of fz_lookup_builtin_font() [fz_lookup_builtin_font()].
  46019. """
  46020. ret, len = ll_fz_lookup_builtin_font(name, bold, italic)
  46021. return ret, len
  46022. fz_lookup_builtin_font = fz_lookup_builtin_font_outparams_fn
  46023. def ll_fz_lookup_cjk_font(ordering):
  46024. """
  46025. Wrapper for out-params of fz_lookup_cjk_font().
  46026. Returns: const unsigned char *, int len, int index
  46027. """
  46028. outparams = ll_fz_lookup_cjk_font_outparams()
  46029. ret = ll_fz_lookup_cjk_font_outparams_fn(ordering, outparams)
  46030. return ret, outparams.len, outparams.index
  46031. def fz_lookup_cjk_font_outparams_fn(ordering):
  46032. """
  46033. Class-aware helper for out-params of fz_lookup_cjk_font() [fz_lookup_cjk_font()].
  46034. """
  46035. ret, len, index = ll_fz_lookup_cjk_font(ordering)
  46036. return ret, len, index
  46037. fz_lookup_cjk_font = fz_lookup_cjk_font_outparams_fn
  46038. def ll_fz_lookup_cjk_font_by_language(lang):
  46039. """
  46040. Wrapper for out-params of fz_lookup_cjk_font_by_language().
  46041. Returns: const unsigned char *, int len, int subfont
  46042. """
  46043. outparams = ll_fz_lookup_cjk_font_by_language_outparams()
  46044. ret = ll_fz_lookup_cjk_font_by_language_outparams_fn(lang, outparams)
  46045. return ret, outparams.len, outparams.subfont
  46046. def fz_lookup_cjk_font_by_language_outparams_fn(lang):
  46047. """
  46048. Class-aware helper for out-params of fz_lookup_cjk_font_by_language() [fz_lookup_cjk_font_by_language()].
  46049. """
  46050. ret, len, subfont = ll_fz_lookup_cjk_font_by_language(lang)
  46051. return ret, len, subfont
  46052. fz_lookup_cjk_font_by_language = fz_lookup_cjk_font_by_language_outparams_fn
  46053. def ll_fz_lookup_noto_boxes_font():
  46054. """
  46055. Wrapper for out-params of fz_lookup_noto_boxes_font().
  46056. Returns: const unsigned char *, int len
  46057. """
  46058. outparams = ll_fz_lookup_noto_boxes_font_outparams()
  46059. ret = ll_fz_lookup_noto_boxes_font_outparams_fn(outparams)
  46060. return ret, outparams.len
  46061. def fz_lookup_noto_boxes_font_outparams_fn():
  46062. """
  46063. Class-aware helper for out-params of fz_lookup_noto_boxes_font() [fz_lookup_noto_boxes_font()].
  46064. """
  46065. ret, len = ll_fz_lookup_noto_boxes_font()
  46066. return ret, len
  46067. fz_lookup_noto_boxes_font = fz_lookup_noto_boxes_font_outparams_fn
  46068. def ll_fz_lookup_noto_emoji_font():
  46069. """
  46070. Wrapper for out-params of fz_lookup_noto_emoji_font().
  46071. Returns: const unsigned char *, int len
  46072. """
  46073. outparams = ll_fz_lookup_noto_emoji_font_outparams()
  46074. ret = ll_fz_lookup_noto_emoji_font_outparams_fn(outparams)
  46075. return ret, outparams.len
  46076. def fz_lookup_noto_emoji_font_outparams_fn():
  46077. """
  46078. Class-aware helper for out-params of fz_lookup_noto_emoji_font() [fz_lookup_noto_emoji_font()].
  46079. """
  46080. ret, len = ll_fz_lookup_noto_emoji_font()
  46081. return ret, len
  46082. fz_lookup_noto_emoji_font = fz_lookup_noto_emoji_font_outparams_fn
  46083. def ll_fz_lookup_noto_font(script, lang):
  46084. """
  46085. Wrapper for out-params of fz_lookup_noto_font().
  46086. Returns: const unsigned char *, int len, int subfont
  46087. """
  46088. outparams = ll_fz_lookup_noto_font_outparams()
  46089. ret = ll_fz_lookup_noto_font_outparams_fn(script, lang, outparams)
  46090. return ret, outparams.len, outparams.subfont
  46091. def fz_lookup_noto_font_outparams_fn(script, lang):
  46092. """
  46093. Class-aware helper for out-params of fz_lookup_noto_font() [fz_lookup_noto_font()].
  46094. """
  46095. ret, len, subfont = ll_fz_lookup_noto_font(script, lang)
  46096. return ret, len, subfont
  46097. fz_lookup_noto_font = fz_lookup_noto_font_outparams_fn
  46098. def ll_fz_lookup_noto_math_font():
  46099. """
  46100. Wrapper for out-params of fz_lookup_noto_math_font().
  46101. Returns: const unsigned char *, int len
  46102. """
  46103. outparams = ll_fz_lookup_noto_math_font_outparams()
  46104. ret = ll_fz_lookup_noto_math_font_outparams_fn(outparams)
  46105. return ret, outparams.len
  46106. def fz_lookup_noto_math_font_outparams_fn():
  46107. """
  46108. Class-aware helper for out-params of fz_lookup_noto_math_font() [fz_lookup_noto_math_font()].
  46109. """
  46110. ret, len = ll_fz_lookup_noto_math_font()
  46111. return ret, len
  46112. fz_lookup_noto_math_font = fz_lookup_noto_math_font_outparams_fn
  46113. def ll_fz_lookup_noto_music_font():
  46114. """
  46115. Wrapper for out-params of fz_lookup_noto_music_font().
  46116. Returns: const unsigned char *, int len
  46117. """
  46118. outparams = ll_fz_lookup_noto_music_font_outparams()
  46119. ret = ll_fz_lookup_noto_music_font_outparams_fn(outparams)
  46120. return ret, outparams.len
  46121. def fz_lookup_noto_music_font_outparams_fn():
  46122. """
  46123. Class-aware helper for out-params of fz_lookup_noto_music_font() [fz_lookup_noto_music_font()].
  46124. """
  46125. ret, len = ll_fz_lookup_noto_music_font()
  46126. return ret, len
  46127. fz_lookup_noto_music_font = fz_lookup_noto_music_font_outparams_fn
  46128. def ll_fz_lookup_noto_symbol1_font():
  46129. """
  46130. Wrapper for out-params of fz_lookup_noto_symbol1_font().
  46131. Returns: const unsigned char *, int len
  46132. """
  46133. outparams = ll_fz_lookup_noto_symbol1_font_outparams()
  46134. ret = ll_fz_lookup_noto_symbol1_font_outparams_fn(outparams)
  46135. return ret, outparams.len
  46136. def fz_lookup_noto_symbol1_font_outparams_fn():
  46137. """
  46138. Class-aware helper for out-params of fz_lookup_noto_symbol1_font() [fz_lookup_noto_symbol1_font()].
  46139. """
  46140. ret, len = ll_fz_lookup_noto_symbol1_font()
  46141. return ret, len
  46142. fz_lookup_noto_symbol1_font = fz_lookup_noto_symbol1_font_outparams_fn
  46143. def ll_fz_lookup_noto_symbol2_font():
  46144. """
  46145. Wrapper for out-params of fz_lookup_noto_symbol2_font().
  46146. Returns: const unsigned char *, int len
  46147. """
  46148. outparams = ll_fz_lookup_noto_symbol2_font_outparams()
  46149. ret = ll_fz_lookup_noto_symbol2_font_outparams_fn(outparams)
  46150. return ret, outparams.len
  46151. def fz_lookup_noto_symbol2_font_outparams_fn():
  46152. """
  46153. Class-aware helper for out-params of fz_lookup_noto_symbol2_font() [fz_lookup_noto_symbol2_font()].
  46154. """
  46155. ret, len = ll_fz_lookup_noto_symbol2_font()
  46156. return ret, len
  46157. fz_lookup_noto_symbol2_font = fz_lookup_noto_symbol2_font_outparams_fn
  46158. def ll_fz_new_brotli_data(source, source_length, level):
  46159. """
  46160. Wrapper for out-params of fz_new_brotli_data().
  46161. Returns: unsigned char *, size_t compressed_length
  46162. """
  46163. outparams = ll_fz_new_brotli_data_outparams()
  46164. ret = ll_fz_new_brotli_data_outparams_fn(source, source_length, level, outparams)
  46165. return ret, outparams.compressed_length
  46166. def fz_new_brotli_data_outparams_fn(source, source_length, level):
  46167. """
  46168. Class-aware helper for out-params of fz_new_brotli_data() [fz_new_brotli_data()].
  46169. """
  46170. ret, compressed_length = ll_fz_new_brotli_data(source, source_length, level)
  46171. return ret, compressed_length
  46172. fz_new_brotli_data = fz_new_brotli_data_outparams_fn
  46173. def ll_fz_new_brotli_data_from_buffer(buffer, level):
  46174. """
  46175. Wrapper for out-params of fz_new_brotli_data_from_buffer().
  46176. Returns: unsigned char *, size_t compressed_length
  46177. """
  46178. outparams = ll_fz_new_brotli_data_from_buffer_outparams()
  46179. ret = ll_fz_new_brotli_data_from_buffer_outparams_fn(buffer, level, outparams)
  46180. return ret, outparams.compressed_length
  46181. def fz_new_brotli_data_from_buffer_outparams_fn(buffer, level):
  46182. """
  46183. Class-aware helper for out-params of fz_new_brotli_data_from_buffer() [fz_new_brotli_data_from_buffer()].
  46184. """
  46185. ret, compressed_length = ll_fz_new_brotli_data_from_buffer(buffer.m_internal, level)
  46186. return ret, compressed_length
  46187. fz_new_brotli_data_from_buffer = fz_new_brotli_data_from_buffer_outparams_fn
  46188. def ll_fz_new_deflated_data(source, source_length, level):
  46189. """
  46190. Wrapper for out-params of fz_new_deflated_data().
  46191. Returns: unsigned char *, size_t compressed_length
  46192. """
  46193. outparams = ll_fz_new_deflated_data_outparams()
  46194. ret = ll_fz_new_deflated_data_outparams_fn(source, source_length, level, outparams)
  46195. return ret, outparams.compressed_length
  46196. def fz_new_deflated_data_outparams_fn(source, source_length, level):
  46197. """
  46198. Class-aware helper for out-params of fz_new_deflated_data() [fz_new_deflated_data()].
  46199. """
  46200. ret, compressed_length = ll_fz_new_deflated_data(source, source_length, level)
  46201. return ret, compressed_length
  46202. fz_new_deflated_data = fz_new_deflated_data_outparams_fn
  46203. def ll_fz_new_deflated_data_from_buffer(buffer, level):
  46204. """
  46205. Wrapper for out-params of fz_new_deflated_data_from_buffer().
  46206. Returns: unsigned char *, size_t compressed_length
  46207. """
  46208. outparams = ll_fz_new_deflated_data_from_buffer_outparams()
  46209. ret = ll_fz_new_deflated_data_from_buffer_outparams_fn(buffer, level, outparams)
  46210. return ret, outparams.compressed_length
  46211. def fz_new_deflated_data_from_buffer_outparams_fn(buffer, level):
  46212. """
  46213. Class-aware helper for out-params of fz_new_deflated_data_from_buffer() [fz_new_deflated_data_from_buffer()].
  46214. """
  46215. ret, compressed_length = ll_fz_new_deflated_data_from_buffer(buffer.m_internal, level)
  46216. return ret, compressed_length
  46217. fz_new_deflated_data_from_buffer = fz_new_deflated_data_from_buffer_outparams_fn
  46218. def ll_fz_new_display_list_from_svg(buf, base_uri, dir):
  46219. """
  46220. Wrapper for out-params of fz_new_display_list_from_svg().
  46221. Returns: fz_display_list *, float w, float h
  46222. """
  46223. outparams = ll_fz_new_display_list_from_svg_outparams()
  46224. ret = ll_fz_new_display_list_from_svg_outparams_fn(buf, base_uri, dir, outparams)
  46225. return ret, outparams.w, outparams.h
  46226. def fz_new_display_list_from_svg_outparams_fn(buf, base_uri, dir):
  46227. """
  46228. Class-aware helper for out-params of fz_new_display_list_from_svg() [fz_new_display_list_from_svg()].
  46229. """
  46230. ret, w, h = ll_fz_new_display_list_from_svg(buf.m_internal, base_uri, dir.m_internal)
  46231. return FzDisplayList(ret), w, h
  46232. fz_new_display_list_from_svg = fz_new_display_list_from_svg_outparams_fn
  46233. def ll_fz_new_display_list_from_svg_xml(xmldoc, xml, base_uri, dir):
  46234. """
  46235. Wrapper for out-params of fz_new_display_list_from_svg_xml().
  46236. Returns: fz_display_list *, float w, float h
  46237. """
  46238. outparams = ll_fz_new_display_list_from_svg_xml_outparams()
  46239. ret = ll_fz_new_display_list_from_svg_xml_outparams_fn(xmldoc, xml, base_uri, dir, outparams)
  46240. return ret, outparams.w, outparams.h
  46241. def fz_new_display_list_from_svg_xml_outparams_fn(xmldoc, xml, base_uri, dir):
  46242. """
  46243. Class-aware helper for out-params of fz_new_display_list_from_svg_xml() [fz_new_display_list_from_svg_xml()].
  46244. """
  46245. ret, w, h = ll_fz_new_display_list_from_svg_xml(xmldoc.m_internal, xml.m_internal, base_uri, dir.m_internal)
  46246. return FzDisplayList(ret), w, h
  46247. fz_new_display_list_from_svg_xml = fz_new_display_list_from_svg_xml_outparams_fn
  46248. def ll_fz_new_draw_device_with_options(options, mediabox):
  46249. """
  46250. Wrapper for out-params of fz_new_draw_device_with_options().
  46251. Returns: fz_device *, ::fz_pixmap *pixmap
  46252. """
  46253. outparams = ll_fz_new_draw_device_with_options_outparams()
  46254. ret = ll_fz_new_draw_device_with_options_outparams_fn(options, mediabox, outparams)
  46255. return ret, outparams.pixmap
  46256. def fz_new_draw_device_with_options_outparams_fn(options, mediabox):
  46257. """
  46258. Class-aware helper for out-params of fz_new_draw_device_with_options() [fz_new_draw_device_with_options()].
  46259. """
  46260. ret, pixmap = ll_fz_new_draw_device_with_options(options.internal(), mediabox.internal())
  46261. return FzDevice(ret), FzPixmap( pixmap)
  46262. fz_new_draw_device_with_options = fz_new_draw_device_with_options_outparams_fn
  46263. def ll_fz_new_svg_device_with_id(out, page_width, page_height, text_format, reuse_images):
  46264. """
  46265. Wrapper for out-params of fz_new_svg_device_with_id().
  46266. Returns: fz_device *, int id
  46267. """
  46268. outparams = ll_fz_new_svg_device_with_id_outparams()
  46269. ret = ll_fz_new_svg_device_with_id_outparams_fn(out, page_width, page_height, text_format, reuse_images, outparams)
  46270. return ret, outparams.id
  46271. def fz_new_svg_device_with_id_outparams_fn(out, page_width, page_height, text_format, reuse_images):
  46272. """
  46273. Class-aware helper for out-params of fz_new_svg_device_with_id() [fz_new_svg_device_with_id()].
  46274. """
  46275. ret, id = ll_fz_new_svg_device_with_id(out.m_internal, page_width, page_height, text_format, reuse_images)
  46276. return FzDevice(ret), id
  46277. fz_new_svg_device_with_id = fz_new_svg_device_with_id_outparams_fn
  46278. def ll_fz_new_test_device(threshold, options, passthrough):
  46279. """
  46280. Wrapper for out-params of fz_new_test_device().
  46281. Returns: fz_device *, int is_color
  46282. """
  46283. outparams = ll_fz_new_test_device_outparams()
  46284. ret = ll_fz_new_test_device_outparams_fn(threshold, options, passthrough, outparams)
  46285. return ret, outparams.is_color
  46286. def fz_new_test_device_outparams_fn(threshold, options, passthrough):
  46287. """
  46288. Class-aware helper for out-params of fz_new_test_device() [fz_new_test_device()].
  46289. """
  46290. ret, is_color = ll_fz_new_test_device(threshold, options, passthrough.m_internal)
  46291. return FzDevice(ret), is_color
  46292. fz_new_test_device = fz_new_test_device_outparams_fn
  46293. def ll_fz_open_image_decomp_stream(arg_0, arg_1):
  46294. """
  46295. Wrapper for out-params of fz_open_image_decomp_stream().
  46296. Returns: fz_stream *, int l2factor
  46297. """
  46298. outparams = ll_fz_open_image_decomp_stream_outparams()
  46299. ret = ll_fz_open_image_decomp_stream_outparams_fn(arg_0, arg_1, outparams)
  46300. return ret, outparams.l2factor
  46301. def fz_open_image_decomp_stream_outparams_fn(arg_0, arg_1):
  46302. """
  46303. Class-aware helper for out-params of fz_open_image_decomp_stream() [fz_open_image_decomp_stream()].
  46304. """
  46305. ret, l2factor = ll_fz_open_image_decomp_stream(arg_0.m_internal, arg_1.m_internal)
  46306. return FzStream(ret), l2factor
  46307. fz_open_image_decomp_stream = fz_open_image_decomp_stream_outparams_fn
  46308. def ll_fz_open_image_decomp_stream_from_buffer(arg_0):
  46309. """
  46310. Wrapper for out-params of fz_open_image_decomp_stream_from_buffer().
  46311. Returns: fz_stream *, int l2factor
  46312. """
  46313. outparams = ll_fz_open_image_decomp_stream_from_buffer_outparams()
  46314. ret = ll_fz_open_image_decomp_stream_from_buffer_outparams_fn(arg_0, outparams)
  46315. return ret, outparams.l2factor
  46316. def fz_open_image_decomp_stream_from_buffer_outparams_fn(arg_0):
  46317. """
  46318. Class-aware helper for out-params of fz_open_image_decomp_stream_from_buffer() [fz_open_image_decomp_stream_from_buffer()].
  46319. """
  46320. ret, l2factor = ll_fz_open_image_decomp_stream_from_buffer(arg_0.m_internal)
  46321. return FzStream(ret), l2factor
  46322. fz_open_image_decomp_stream_from_buffer = fz_open_image_decomp_stream_from_buffer_outparams_fn
  46323. def ll_fz_page_presentation(page, transition):
  46324. """
  46325. Wrapper for out-params of fz_page_presentation().
  46326. Returns: fz_transition *, float duration
  46327. """
  46328. outparams = ll_fz_page_presentation_outparams()
  46329. ret = ll_fz_page_presentation_outparams_fn(page, transition, outparams)
  46330. return ret, outparams.duration
  46331. def fz_page_presentation_outparams_fn(page, transition):
  46332. """
  46333. Class-aware helper for out-params of fz_page_presentation() [fz_page_presentation()].
  46334. """
  46335. ret, duration = ll_fz_page_presentation(page.m_internal, transition.internal())
  46336. return FzTransition(ret), duration
  46337. fz_page_presentation = fz_page_presentation_outparams_fn
  46338. def ll_fz_paint_shade(shade, override_cs, ctm, dest, color_params, bbox, eop):
  46339. """
  46340. Wrapper for out-params of fz_paint_shade().
  46341. Returns: ::fz_shade_color_cache *cache
  46342. """
  46343. outparams = ll_fz_paint_shade_outparams()
  46344. ret = ll_fz_paint_shade_outparams_fn(shade, override_cs, ctm, dest, color_params, bbox, eop, outparams)
  46345. return outparams.cache
  46346. def fz_paint_shade_outparams_fn(shade, override_cs, ctm, dest, color_params, bbox, eop):
  46347. """
  46348. Class-aware helper for out-params of fz_paint_shade() [fz_paint_shade()].
  46349. """
  46350. 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)
  46351. return FzShadeColorCache(ll_fz_keep_shade_color_cache( cache))
  46352. fz_paint_shade = fz_paint_shade_outparams_fn
  46353. def ll_fz_parse_page_range(s, n):
  46354. """
  46355. Wrapper for out-params of fz_parse_page_range().
  46356. Returns: const char *, int a, int b
  46357. """
  46358. outparams = ll_fz_parse_page_range_outparams()
  46359. ret = ll_fz_parse_page_range_outparams_fn(s, n, outparams)
  46360. return ret, outparams.a, outparams.b
  46361. def fz_parse_page_range_outparams_fn(s, n):
  46362. """
  46363. Class-aware helper for out-params of fz_parse_page_range() [fz_parse_page_range()].
  46364. """
  46365. ret, a, b = ll_fz_parse_page_range(s, n)
  46366. return ret, a, b
  46367. fz_parse_page_range = fz_parse_page_range_outparams_fn
  46368. def ll_fz_read_best(stm, initial, worst_case):
  46369. """
  46370. Wrapper for out-params of fz_read_best().
  46371. Returns: fz_buffer *, int truncated
  46372. """
  46373. outparams = ll_fz_read_best_outparams()
  46374. ret = ll_fz_read_best_outparams_fn(stm, initial, worst_case, outparams)
  46375. return ret, outparams.truncated
  46376. def fz_read_best_outparams_fn(stm, initial, worst_case):
  46377. """
  46378. Class-aware helper for out-params of fz_read_best() [fz_read_best()].
  46379. """
  46380. ret, truncated = ll_fz_read_best(stm.m_internal, initial, worst_case)
  46381. return FzBuffer(ret), truncated
  46382. fz_read_best = fz_read_best_outparams_fn
  46383. def ll_fz_resolve_link(doc, uri):
  46384. """
  46385. Wrapper for out-params of fz_resolve_link().
  46386. Returns: fz_location, float xp, float yp
  46387. """
  46388. outparams = ll_fz_resolve_link_outparams()
  46389. ret = ll_fz_resolve_link_outparams_fn(doc, uri, outparams)
  46390. return ret, outparams.xp, outparams.yp
  46391. def fz_resolve_link_outparams_fn(doc, uri):
  46392. """
  46393. Class-aware helper for out-params of fz_resolve_link() [fz_resolve_link()].
  46394. """
  46395. ret, xp, yp = ll_fz_resolve_link(doc.m_internal, uri)
  46396. return FzLocation(ret), xp, yp
  46397. fz_resolve_link = fz_resolve_link_outparams_fn
  46398. def ll_fz_search_chapter_page_number(doc, chapter, page, needle, hit_bbox, hit_max):
  46399. """
  46400. Wrapper for out-params of fz_search_chapter_page_number().
  46401. Returns: int, int hit_mark
  46402. """
  46403. outparams = ll_fz_search_chapter_page_number_outparams()
  46404. ret = ll_fz_search_chapter_page_number_outparams_fn(doc, chapter, page, needle, hit_bbox, hit_max, outparams)
  46405. return ret, outparams.hit_mark
  46406. def fz_search_chapter_page_number_outparams_fn(doc, chapter, page, needle, hit_bbox, hit_max):
  46407. """
  46408. Class-aware helper for out-params of fz_search_chapter_page_number() [fz_search_chapter_page_number()].
  46409. """
  46410. ret, hit_mark = ll_fz_search_chapter_page_number(doc.m_internal, chapter, page, needle, hit_bbox.internal(), hit_max)
  46411. return ret, hit_mark
  46412. fz_search_chapter_page_number = fz_search_chapter_page_number_outparams_fn
  46413. def ll_fz_search_display_list(list, needle, hit_bbox, hit_max):
  46414. """
  46415. Wrapper for out-params of fz_search_display_list().
  46416. Returns: int, int hit_mark
  46417. """
  46418. outparams = ll_fz_search_display_list_outparams()
  46419. ret = ll_fz_search_display_list_outparams_fn(list, needle, hit_bbox, hit_max, outparams)
  46420. return ret, outparams.hit_mark
  46421. def fz_search_display_list_outparams_fn(list, needle, hit_bbox, hit_max):
  46422. """
  46423. Class-aware helper for out-params of fz_search_display_list() [fz_search_display_list()].
  46424. """
  46425. ret, hit_mark = ll_fz_search_display_list(list.m_internal, needle, hit_bbox.internal(), hit_max)
  46426. return ret, hit_mark
  46427. fz_search_display_list = fz_search_display_list_outparams_fn
  46428. def ll_fz_search_page(page, needle, hit_bbox, hit_max):
  46429. """
  46430. Wrapper for out-params of fz_search_page().
  46431. Returns: int, int hit_mark
  46432. """
  46433. outparams = ll_fz_search_page_outparams()
  46434. ret = ll_fz_search_page_outparams_fn(page, needle, hit_bbox, hit_max, outparams)
  46435. return ret, outparams.hit_mark
  46436. def fz_search_page_outparams_fn(page, needle, hit_bbox, hit_max):
  46437. """
  46438. Class-aware helper for out-params of fz_search_page() [fz_search_page()].
  46439. """
  46440. ret, hit_mark = ll_fz_search_page(page.m_internal, needle, hit_bbox.internal(), hit_max)
  46441. return ret, hit_mark
  46442. fz_search_page = fz_search_page_outparams_fn
  46443. def ll_fz_search_page_number(doc, number, needle, hit_bbox, hit_max):
  46444. """
  46445. Wrapper for out-params of fz_search_page_number().
  46446. Returns: int, int hit_mark
  46447. """
  46448. outparams = ll_fz_search_page_number_outparams()
  46449. ret = ll_fz_search_page_number_outparams_fn(doc, number, needle, hit_bbox, hit_max, outparams)
  46450. return ret, outparams.hit_mark
  46451. def fz_search_page_number_outparams_fn(doc, number, needle, hit_bbox, hit_max):
  46452. """
  46453. Class-aware helper for out-params of fz_search_page_number() [fz_search_page_number()].
  46454. """
  46455. ret, hit_mark = ll_fz_search_page_number(doc.m_internal, number, needle, hit_bbox.internal(), hit_max)
  46456. return ret, hit_mark
  46457. fz_search_page_number = fz_search_page_number_outparams_fn
  46458. def ll_fz_search_stext_page(text, needle, hit_bbox, hit_max):
  46459. """
  46460. Wrapper for out-params of fz_search_stext_page().
  46461. Returns: int, int hit_mark
  46462. """
  46463. outparams = ll_fz_search_stext_page_outparams()
  46464. ret = ll_fz_search_stext_page_outparams_fn(text, needle, hit_bbox, hit_max, outparams)
  46465. return ret, outparams.hit_mark
  46466. def fz_search_stext_page_outparams_fn(text, needle, hit_bbox, hit_max):
  46467. """
  46468. Class-aware helper for out-params of fz_search_stext_page() [fz_search_stext_page()].
  46469. """
  46470. ret, hit_mark = ll_fz_search_stext_page(text.m_internal, needle, hit_bbox.internal(), hit_max)
  46471. return ret, hit_mark
  46472. fz_search_stext_page = fz_search_stext_page_outparams_fn
  46473. def ll_fz_separation_equivalent(seps, idx, dst_cs, prf, color_params):
  46474. """
  46475. Wrapper for out-params of fz_separation_equivalent().
  46476. Returns: float dst_color
  46477. """
  46478. outparams = ll_fz_separation_equivalent_outparams()
  46479. ret = ll_fz_separation_equivalent_outparams_fn(seps, idx, dst_cs, prf, color_params, outparams)
  46480. return outparams.dst_color
  46481. def fz_separation_equivalent_outparams_fn(seps, idx, dst_cs, prf, color_params):
  46482. """
  46483. Class-aware helper for out-params of fz_separation_equivalent() [fz_separation_equivalent()].
  46484. """
  46485. dst_color = ll_fz_separation_equivalent(seps.m_internal, idx, dst_cs.m_internal, prf.m_internal, color_params.internal())
  46486. return dst_color
  46487. fz_separation_equivalent = fz_separation_equivalent_outparams_fn
  46488. def ll_fz_store_scavenge(size):
  46489. """
  46490. Wrapper for out-params of fz_store_scavenge().
  46491. Returns: int, int phase
  46492. """
  46493. outparams = ll_fz_store_scavenge_outparams()
  46494. ret = ll_fz_store_scavenge_outparams_fn(size, outparams)
  46495. return ret, outparams.phase
  46496. def fz_store_scavenge_outparams_fn(size):
  46497. """
  46498. Class-aware helper for out-params of fz_store_scavenge() [fz_store_scavenge()].
  46499. """
  46500. ret, phase = ll_fz_store_scavenge(size)
  46501. return ret, phase
  46502. fz_store_scavenge = fz_store_scavenge_outparams_fn
  46503. def ll_fz_store_scavenge_external(size):
  46504. """
  46505. Wrapper for out-params of fz_store_scavenge_external().
  46506. Returns: int, int phase
  46507. """
  46508. outparams = ll_fz_store_scavenge_external_outparams()
  46509. ret = ll_fz_store_scavenge_external_outparams_fn(size, outparams)
  46510. return ret, outparams.phase
  46511. def fz_store_scavenge_external_outparams_fn(size):
  46512. """
  46513. Class-aware helper for out-params of fz_store_scavenge_external() [fz_store_scavenge_external()].
  46514. """
  46515. ret, phase = ll_fz_store_scavenge_external(size)
  46516. return ret, phase
  46517. fz_store_scavenge_external = fz_store_scavenge_external_outparams_fn
  46518. def ll_fz_strsep(delim):
  46519. """
  46520. Wrapper for out-params of fz_strsep().
  46521. Returns: char *, char *stringp
  46522. """
  46523. outparams = ll_fz_strsep_outparams()
  46524. ret = ll_fz_strsep_outparams_fn(delim, outparams)
  46525. return ret, outparams.stringp
  46526. def fz_strsep_outparams_fn(delim):
  46527. """
  46528. Class-aware helper for out-params of fz_strsep() [fz_strsep()].
  46529. """
  46530. ret, stringp = ll_fz_strsep(delim)
  46531. return ret, stringp
  46532. fz_strsep = fz_strsep_outparams_fn
  46533. def ll_fz_strtof(s):
  46534. """
  46535. Wrapper for out-params of fz_strtof().
  46536. Returns: float, char *es
  46537. """
  46538. outparams = ll_fz_strtof_outparams()
  46539. ret = ll_fz_strtof_outparams_fn(s, outparams)
  46540. return ret, outparams.es
  46541. def fz_strtof_outparams_fn(s):
  46542. """
  46543. Class-aware helper for out-params of fz_strtof() [fz_strtof()].
  46544. """
  46545. ret, es = ll_fz_strtof(s)
  46546. return ret, es
  46547. fz_strtof = fz_strtof_outparams_fn
  46548. def ll_fz_subset_cff_for_gids(orig, num_gids, symbolic, cidfont):
  46549. """
  46550. Wrapper for out-params of fz_subset_cff_for_gids().
  46551. Returns: fz_buffer *, int gids
  46552. """
  46553. outparams = ll_fz_subset_cff_for_gids_outparams()
  46554. ret = ll_fz_subset_cff_for_gids_outparams_fn(orig, num_gids, symbolic, cidfont, outparams)
  46555. return ret, outparams.gids
  46556. def fz_subset_cff_for_gids_outparams_fn(orig, num_gids, symbolic, cidfont):
  46557. """
  46558. Class-aware helper for out-params of fz_subset_cff_for_gids() [fz_subset_cff_for_gids()].
  46559. """
  46560. ret, gids = ll_fz_subset_cff_for_gids(orig.m_internal, num_gids, symbolic, cidfont)
  46561. return FzBuffer( ll_fz_keep_buffer( ret)), gids
  46562. fz_subset_cff_for_gids = fz_subset_cff_for_gids_outparams_fn
  46563. def ll_fz_subset_ttf_for_gids(orig, num_gids, symbolic, cidfont):
  46564. """
  46565. Wrapper for out-params of fz_subset_ttf_for_gids().
  46566. Returns: fz_buffer *, int gids
  46567. """
  46568. outparams = ll_fz_subset_ttf_for_gids_outparams()
  46569. ret = ll_fz_subset_ttf_for_gids_outparams_fn(orig, num_gids, symbolic, cidfont, outparams)
  46570. return ret, outparams.gids
  46571. def fz_subset_ttf_for_gids_outparams_fn(orig, num_gids, symbolic, cidfont):
  46572. """
  46573. Class-aware helper for out-params of fz_subset_ttf_for_gids() [fz_subset_ttf_for_gids()].
  46574. """
  46575. ret, gids = ll_fz_subset_ttf_for_gids(orig.m_internal, num_gids, symbolic, cidfont)
  46576. return FzBuffer( ll_fz_keep_buffer( ret)), gids
  46577. fz_subset_ttf_for_gids = fz_subset_ttf_for_gids_outparams_fn
  46578. def ll_fz_warning_callback():
  46579. """
  46580. Wrapper for out-params of fz_warning_callback().
  46581. Returns: fz_warning_cb *, void *user
  46582. """
  46583. outparams = ll_fz_warning_callback_outparams()
  46584. ret = ll_fz_warning_callback_outparams_fn(outparams)
  46585. return ret, outparams.user
  46586. def fz_warning_callback_outparams_fn():
  46587. """
  46588. Class-aware helper for out-params of fz_warning_callback() [fz_warning_callback()].
  46589. """
  46590. ret, user = ll_fz_warning_callback()
  46591. return ret, user
  46592. fz_warning_callback = fz_warning_callback_outparams_fn
  46593. def ll_pdf_annot_MK_BC(annot, color):
  46594. """
  46595. Wrapper for out-params of pdf_annot_MK_BC().
  46596. Returns: int n
  46597. """
  46598. outparams = ll_pdf_annot_MK_BC_outparams()
  46599. ret = ll_pdf_annot_MK_BC_outparams_fn(annot, color, outparams)
  46600. return outparams.n
  46601. def pdf_annot_MK_BC_outparams_fn(annot, color):
  46602. """
  46603. Class-aware helper for out-params of pdf_annot_MK_BC() [pdf_annot_MK_BC()].
  46604. """
  46605. n = ll_pdf_annot_MK_BC(annot.m_internal, color)
  46606. return n
  46607. pdf_annot_MK_BC = pdf_annot_MK_BC_outparams_fn
  46608. def ll_pdf_annot_MK_BG(annot, color):
  46609. """
  46610. Wrapper for out-params of pdf_annot_MK_BG().
  46611. Returns: int n
  46612. """
  46613. outparams = ll_pdf_annot_MK_BG_outparams()
  46614. ret = ll_pdf_annot_MK_BG_outparams_fn(annot, color, outparams)
  46615. return outparams.n
  46616. def pdf_annot_MK_BG_outparams_fn(annot, color):
  46617. """
  46618. Class-aware helper for out-params of pdf_annot_MK_BG() [pdf_annot_MK_BG()].
  46619. """
  46620. n = ll_pdf_annot_MK_BG(annot.m_internal, color)
  46621. return n
  46622. pdf_annot_MK_BG = pdf_annot_MK_BG_outparams_fn
  46623. def ll_pdf_annot_callout_line(annot, callout):
  46624. """
  46625. Wrapper for out-params of pdf_annot_callout_line().
  46626. Returns: int n
  46627. """
  46628. outparams = ll_pdf_annot_callout_line_outparams()
  46629. ret = ll_pdf_annot_callout_line_outparams_fn(annot, callout, outparams)
  46630. return outparams.n
  46631. def pdf_annot_callout_line_outparams_fn(annot, callout):
  46632. """
  46633. Class-aware helper for out-params of pdf_annot_callout_line() [pdf_annot_callout_line()].
  46634. """
  46635. n = ll_pdf_annot_callout_line(annot.m_internal, callout)
  46636. return n
  46637. pdf_annot_callout_line = pdf_annot_callout_line_outparams_fn
  46638. def ll_pdf_annot_color(annot, color):
  46639. """
  46640. Wrapper for out-params of pdf_annot_color().
  46641. Returns: int n
  46642. """
  46643. outparams = ll_pdf_annot_color_outparams()
  46644. ret = ll_pdf_annot_color_outparams_fn(annot, color, outparams)
  46645. return outparams.n
  46646. def pdf_annot_color_outparams_fn(annot, color):
  46647. """
  46648. Class-aware helper for out-params of pdf_annot_color() [pdf_annot_color()].
  46649. """
  46650. n = ll_pdf_annot_color(annot.m_internal, color)
  46651. return n
  46652. pdf_annot_color = pdf_annot_color_outparams_fn
  46653. def ll_pdf_annot_default_appearance(annot, color):
  46654. """
  46655. Wrapper for out-params of pdf_annot_default_appearance().
  46656. Returns: const char *font, float size, int n
  46657. """
  46658. outparams = ll_pdf_annot_default_appearance_outparams()
  46659. ret = ll_pdf_annot_default_appearance_outparams_fn(annot, color, outparams)
  46660. return outparams.font, outparams.size, outparams.n
  46661. def pdf_annot_default_appearance_outparams_fn(annot, color):
  46662. """
  46663. Class-aware helper for out-params of pdf_annot_default_appearance() [pdf_annot_default_appearance()].
  46664. """
  46665. font, size, n = ll_pdf_annot_default_appearance(annot.m_internal, color)
  46666. return font, size, n
  46667. pdf_annot_default_appearance = pdf_annot_default_appearance_outparams_fn
  46668. def ll_pdf_annot_default_appearance_unmapped(annot, font_name, font_name_len, color):
  46669. """
  46670. Wrapper for out-params of pdf_annot_default_appearance_unmapped().
  46671. Returns: float size, int n
  46672. """
  46673. outparams = ll_pdf_annot_default_appearance_unmapped_outparams()
  46674. ret = ll_pdf_annot_default_appearance_unmapped_outparams_fn(annot, font_name, font_name_len, color, outparams)
  46675. return outparams.size, outparams.n
  46676. def pdf_annot_default_appearance_unmapped_outparams_fn(annot, font_name, font_name_len, color):
  46677. """
  46678. Class-aware helper for out-params of pdf_annot_default_appearance_unmapped() [pdf_annot_default_appearance_unmapped()].
  46679. """
  46680. size, n = ll_pdf_annot_default_appearance_unmapped(annot.m_internal, font_name, font_name_len, color)
  46681. return size, n
  46682. pdf_annot_default_appearance_unmapped = pdf_annot_default_appearance_unmapped_outparams_fn
  46683. def ll_pdf_annot_interior_color(annot, color):
  46684. """
  46685. Wrapper for out-params of pdf_annot_interior_color().
  46686. Returns: int n
  46687. """
  46688. outparams = ll_pdf_annot_interior_color_outparams()
  46689. ret = ll_pdf_annot_interior_color_outparams_fn(annot, color, outparams)
  46690. return outparams.n
  46691. def pdf_annot_interior_color_outparams_fn(annot, color):
  46692. """
  46693. Class-aware helper for out-params of pdf_annot_interior_color() [pdf_annot_interior_color()].
  46694. """
  46695. n = ll_pdf_annot_interior_color(annot.m_internal, color)
  46696. return n
  46697. pdf_annot_interior_color = pdf_annot_interior_color_outparams_fn
  46698. def ll_pdf_annot_line_ending_styles(annot):
  46699. """
  46700. Wrapper for out-params of pdf_annot_line_ending_styles().
  46701. Returns: enum pdf_line_ending start_style, enum pdf_line_ending end_style
  46702. """
  46703. outparams = ll_pdf_annot_line_ending_styles_outparams()
  46704. ret = ll_pdf_annot_line_ending_styles_outparams_fn(annot, outparams)
  46705. return outparams.start_style, outparams.end_style
  46706. def pdf_annot_line_ending_styles_outparams_fn(annot):
  46707. """
  46708. Class-aware helper for out-params of pdf_annot_line_ending_styles() [pdf_annot_line_ending_styles()].
  46709. """
  46710. start_style, end_style = ll_pdf_annot_line_ending_styles(annot.m_internal)
  46711. return start_style, end_style
  46712. pdf_annot_line_ending_styles = pdf_annot_line_ending_styles_outparams_fn
  46713. def ll_pdf_array_get_string(array, index):
  46714. """
  46715. Wrapper for out-params of pdf_array_get_string().
  46716. Returns: const char *, size_t sizep
  46717. """
  46718. outparams = ll_pdf_array_get_string_outparams()
  46719. ret = ll_pdf_array_get_string_outparams_fn(array, index, outparams)
  46720. return ret, outparams.sizep
  46721. def pdf_array_get_string_outparams_fn(array, index):
  46722. """
  46723. Class-aware helper for out-params of pdf_array_get_string() [pdf_array_get_string()].
  46724. """
  46725. ret, sizep = ll_pdf_array_get_string(array.m_internal, index)
  46726. return ret, sizep
  46727. pdf_array_get_string = pdf_array_get_string_outparams_fn
  46728. def ll_pdf_count_q_balance(doc, res, stm):
  46729. """
  46730. Wrapper for out-params of pdf_count_q_balance().
  46731. Returns: int prepend, int append
  46732. """
  46733. outparams = ll_pdf_count_q_balance_outparams()
  46734. ret = ll_pdf_count_q_balance_outparams_fn(doc, res, stm, outparams)
  46735. return outparams.prepend, outparams.append
  46736. def pdf_count_q_balance_outparams_fn(doc, res, stm):
  46737. """
  46738. Class-aware helper for out-params of pdf_count_q_balance() [pdf_count_q_balance()].
  46739. """
  46740. prepend, append = ll_pdf_count_q_balance(doc.m_internal, res.m_internal, stm.m_internal)
  46741. return prepend, append
  46742. pdf_count_q_balance = pdf_count_q_balance_outparams_fn
  46743. def ll_pdf_decode_cmap(cmap, s, e):
  46744. """
  46745. Wrapper for out-params of pdf_decode_cmap().
  46746. Returns: int, unsigned int cpt
  46747. """
  46748. outparams = ll_pdf_decode_cmap_outparams()
  46749. ret = ll_pdf_decode_cmap_outparams_fn(cmap, s, e, outparams)
  46750. return ret, outparams.cpt
  46751. def pdf_decode_cmap_outparams_fn(cmap, s, e):
  46752. """
  46753. Class-aware helper for out-params of pdf_decode_cmap() [pdf_decode_cmap()].
  46754. """
  46755. ret, cpt = ll_pdf_decode_cmap(cmap.m_internal, s, e)
  46756. return ret, cpt
  46757. pdf_decode_cmap = pdf_decode_cmap_outparams_fn
  46758. def ll_pdf_dict_get_inheritable_string(dict, key):
  46759. """
  46760. Wrapper for out-params of pdf_dict_get_inheritable_string().
  46761. Returns: const char *, size_t sizep
  46762. """
  46763. outparams = ll_pdf_dict_get_inheritable_string_outparams()
  46764. ret = ll_pdf_dict_get_inheritable_string_outparams_fn(dict, key, outparams)
  46765. return ret, outparams.sizep
  46766. def pdf_dict_get_inheritable_string_outparams_fn(dict, key):
  46767. """
  46768. Class-aware helper for out-params of pdf_dict_get_inheritable_string() [pdf_dict_get_inheritable_string()].
  46769. """
  46770. ret, sizep = ll_pdf_dict_get_inheritable_string(dict.m_internal, key.m_internal)
  46771. return ret, sizep
  46772. pdf_dict_get_inheritable_string = pdf_dict_get_inheritable_string_outparams_fn
  46773. def ll_pdf_dict_get_put_drop(dict, key, val):
  46774. """
  46775. Wrapper for out-params of pdf_dict_get_put_drop().
  46776. Returns: ::pdf_obj *old_val
  46777. """
  46778. outparams = ll_pdf_dict_get_put_drop_outparams()
  46779. ret = ll_pdf_dict_get_put_drop_outparams_fn(dict, key, val, outparams)
  46780. return outparams.old_val
  46781. def ll_pdf_dict_get_string(dict, key):
  46782. """
  46783. Wrapper for out-params of pdf_dict_get_string().
  46784. Returns: const char *, size_t sizep
  46785. """
  46786. outparams = ll_pdf_dict_get_string_outparams()
  46787. ret = ll_pdf_dict_get_string_outparams_fn(dict, key, outparams)
  46788. return ret, outparams.sizep
  46789. def pdf_dict_get_string_outparams_fn(dict, key):
  46790. """
  46791. Class-aware helper for out-params of pdf_dict_get_string() [pdf_dict_get_string()].
  46792. """
  46793. ret, sizep = ll_pdf_dict_get_string(dict.m_internal, key.m_internal)
  46794. return ret, sizep
  46795. pdf_dict_get_string = pdf_dict_get_string_outparams_fn
  46796. def ll_pdf_edit_text_field_value(widget, value, change):
  46797. """
  46798. Wrapper for out-params of pdf_edit_text_field_value().
  46799. Returns: int, int selStart, int selEnd, char *newvalue
  46800. """
  46801. outparams = ll_pdf_edit_text_field_value_outparams()
  46802. ret = ll_pdf_edit_text_field_value_outparams_fn(widget, value, change, outparams)
  46803. return ret, outparams.selStart, outparams.selEnd, outparams.newvalue
  46804. def pdf_edit_text_field_value_outparams_fn(widget, value, change):
  46805. """
  46806. Class-aware helper for out-params of pdf_edit_text_field_value() [pdf_edit_text_field_value()].
  46807. """
  46808. ret, selStart, selEnd, newvalue = ll_pdf_edit_text_field_value(widget.m_internal, value, change)
  46809. return ret, selStart, selEnd, newvalue
  46810. pdf_edit_text_field_value = pdf_edit_text_field_value_outparams_fn
  46811. def ll_pdf_eval_function(func, in_, inlen, outlen):
  46812. """
  46813. Wrapper for out-params of pdf_eval_function().
  46814. Returns: float out
  46815. """
  46816. outparams = ll_pdf_eval_function_outparams()
  46817. ret = ll_pdf_eval_function_outparams_fn(func, in_, inlen, outlen, outparams)
  46818. return outparams.out
  46819. def pdf_eval_function_outparams_fn(func, in_, inlen, outlen):
  46820. """
  46821. Class-aware helper for out-params of pdf_eval_function() [pdf_eval_function()].
  46822. """
  46823. out = ll_pdf_eval_function(func.m_internal, in_, inlen, outlen)
  46824. return out
  46825. pdf_eval_function = pdf_eval_function_outparams_fn
  46826. def ll_pdf_field_event_validate(doc, field, value):
  46827. """
  46828. Wrapper for out-params of pdf_field_event_validate().
  46829. Returns: int, char *newvalue
  46830. """
  46831. outparams = ll_pdf_field_event_validate_outparams()
  46832. ret = ll_pdf_field_event_validate_outparams_fn(doc, field, value, outparams)
  46833. return ret, outparams.newvalue
  46834. def pdf_field_event_validate_outparams_fn(doc, field, value):
  46835. """
  46836. Class-aware helper for out-params of pdf_field_event_validate() [pdf_field_event_validate()].
  46837. """
  46838. ret, newvalue = ll_pdf_field_event_validate(doc.m_internal, field.m_internal, value)
  46839. return ret, newvalue
  46840. pdf_field_event_validate = pdf_field_event_validate_outparams_fn
  46841. def ll_pdf_js_event_result_validate(js):
  46842. """
  46843. Wrapper for out-params of pdf_js_event_result_validate().
  46844. Returns: int, char *newvalue
  46845. """
  46846. outparams = ll_pdf_js_event_result_validate_outparams()
  46847. ret = ll_pdf_js_event_result_validate_outparams_fn(js, outparams)
  46848. return ret, outparams.newvalue
  46849. def pdf_js_event_result_validate_outparams_fn(js):
  46850. """
  46851. Class-aware helper for out-params of pdf_js_event_result_validate() [pdf_js_event_result_validate()].
  46852. """
  46853. ret, newvalue = ll_pdf_js_event_result_validate(js.m_internal)
  46854. return ret, newvalue
  46855. pdf_js_event_result_validate = pdf_js_event_result_validate_outparams_fn
  46856. def ll_pdf_js_execute(js, name, code):
  46857. """
  46858. Wrapper for out-params of pdf_js_execute().
  46859. Returns: char *result
  46860. """
  46861. outparams = ll_pdf_js_execute_outparams()
  46862. ret = ll_pdf_js_execute_outparams_fn(js, name, code, outparams)
  46863. return outparams.result
  46864. def pdf_js_execute_outparams_fn(js, name, code):
  46865. """
  46866. Class-aware helper for out-params of pdf_js_execute() [pdf_js_execute()].
  46867. """
  46868. result = ll_pdf_js_execute(js.m_internal, name, code)
  46869. return result
  46870. pdf_js_execute = pdf_js_execute_outparams_fn
  46871. def ll_pdf_load_encoding(encoding):
  46872. """
  46873. Wrapper for out-params of pdf_load_encoding().
  46874. Returns: const char *estrings
  46875. """
  46876. outparams = ll_pdf_load_encoding_outparams()
  46877. ret = ll_pdf_load_encoding_outparams_fn(encoding, outparams)
  46878. return outparams.estrings
  46879. def pdf_load_encoding_outparams_fn(encoding):
  46880. """
  46881. Class-aware helper for out-params of pdf_load_encoding() [pdf_load_encoding()].
  46882. """
  46883. estrings = ll_pdf_load_encoding(encoding)
  46884. return estrings
  46885. pdf_load_encoding = pdf_load_encoding_outparams_fn
  46886. def ll_pdf_load_to_unicode(doc, font, collection, cmapstm):
  46887. """
  46888. Wrapper for out-params of pdf_load_to_unicode().
  46889. Returns: const char *strings
  46890. """
  46891. outparams = ll_pdf_load_to_unicode_outparams()
  46892. ret = ll_pdf_load_to_unicode_outparams_fn(doc, font, collection, cmapstm, outparams)
  46893. return outparams.strings
  46894. def pdf_load_to_unicode_outparams_fn(doc, font, collection, cmapstm):
  46895. """
  46896. Class-aware helper for out-params of pdf_load_to_unicode() [pdf_load_to_unicode()].
  46897. """
  46898. strings = ll_pdf_load_to_unicode(doc.m_internal, font.m_internal, collection, cmapstm.m_internal)
  46899. return strings
  46900. pdf_load_to_unicode = pdf_load_to_unicode_outparams_fn
  46901. def ll_pdf_lookup_cmap_full(cmap, cpt):
  46902. """
  46903. Wrapper for out-params of pdf_lookup_cmap_full().
  46904. Returns: int, int out
  46905. """
  46906. outparams = ll_pdf_lookup_cmap_full_outparams()
  46907. ret = ll_pdf_lookup_cmap_full_outparams_fn(cmap, cpt, outparams)
  46908. return ret, outparams.out
  46909. def pdf_lookup_cmap_full_outparams_fn(cmap, cpt):
  46910. """
  46911. Class-aware helper for out-params of pdf_lookup_cmap_full() [pdf_lookup_cmap_full()].
  46912. """
  46913. ret, out = ll_pdf_lookup_cmap_full(cmap.m_internal, cpt)
  46914. return ret, out
  46915. pdf_lookup_cmap_full = pdf_lookup_cmap_full_outparams_fn
  46916. def ll_pdf_lookup_page_loc(doc, needle):
  46917. """
  46918. Wrapper for out-params of pdf_lookup_page_loc().
  46919. Returns: pdf_obj *, ::pdf_obj *parentp, int indexp
  46920. """
  46921. outparams = ll_pdf_lookup_page_loc_outparams()
  46922. ret = ll_pdf_lookup_page_loc_outparams_fn(doc, needle, outparams)
  46923. return ret, outparams.parentp, outparams.indexp
  46924. def pdf_lookup_page_loc_outparams_fn(doc, needle):
  46925. """
  46926. Class-aware helper for out-params of pdf_lookup_page_loc() [pdf_lookup_page_loc()].
  46927. """
  46928. ret, parentp, indexp = ll_pdf_lookup_page_loc(doc.m_internal, needle)
  46929. return PdfObj( ll_pdf_keep_obj( ret)), PdfObj(ll_pdf_keep_obj( parentp)), indexp
  46930. pdf_lookup_page_loc = pdf_lookup_page_loc_outparams_fn
  46931. def ll_pdf_lookup_substitute_font(mono, serif, bold, italic):
  46932. """
  46933. Wrapper for out-params of pdf_lookup_substitute_font().
  46934. Returns: const unsigned char *, int len
  46935. """
  46936. outparams = ll_pdf_lookup_substitute_font_outparams()
  46937. ret = ll_pdf_lookup_substitute_font_outparams_fn(mono, serif, bold, italic, outparams)
  46938. return ret, outparams.len
  46939. def pdf_lookup_substitute_font_outparams_fn(mono, serif, bold, italic):
  46940. """
  46941. Class-aware helper for out-params of pdf_lookup_substitute_font() [pdf_lookup_substitute_font()].
  46942. """
  46943. ret, len = ll_pdf_lookup_substitute_font(mono, serif, bold, italic)
  46944. return ret, len
  46945. pdf_lookup_substitute_font = pdf_lookup_substitute_font_outparams_fn
  46946. def ll_pdf_map_one_to_many(cmap, one, len):
  46947. """
  46948. Wrapper for out-params of pdf_map_one_to_many().
  46949. Returns: int many
  46950. """
  46951. outparams = ll_pdf_map_one_to_many_outparams()
  46952. ret = ll_pdf_map_one_to_many_outparams_fn(cmap, one, len, outparams)
  46953. return outparams.many
  46954. def pdf_map_one_to_many_outparams_fn(cmap, one, len):
  46955. """
  46956. Class-aware helper for out-params of pdf_map_one_to_many() [pdf_map_one_to_many()].
  46957. """
  46958. many = ll_pdf_map_one_to_many(cmap.m_internal, one, len)
  46959. return many
  46960. pdf_map_one_to_many = pdf_map_one_to_many_outparams_fn
  46961. def ll_pdf_obj_memo(obj, bit):
  46962. """
  46963. Wrapper for out-params of pdf_obj_memo().
  46964. Returns: int, int memo
  46965. """
  46966. outparams = ll_pdf_obj_memo_outparams()
  46967. ret = ll_pdf_obj_memo_outparams_fn(obj, bit, outparams)
  46968. return ret, outparams.memo
  46969. def pdf_obj_memo_outparams_fn(obj, bit):
  46970. """
  46971. Class-aware helper for out-params of pdf_obj_memo() [pdf_obj_memo()].
  46972. """
  46973. ret, memo = ll_pdf_obj_memo(obj.m_internal, bit)
  46974. return ret, memo
  46975. pdf_obj_memo = pdf_obj_memo_outparams_fn
  46976. def ll_pdf_page_presentation(page, transition):
  46977. """
  46978. Wrapper for out-params of pdf_page_presentation().
  46979. Returns: fz_transition *, float duration
  46980. """
  46981. outparams = ll_pdf_page_presentation_outparams()
  46982. ret = ll_pdf_page_presentation_outparams_fn(page, transition, outparams)
  46983. return ret, outparams.duration
  46984. def pdf_page_presentation_outparams_fn(page, transition):
  46985. """
  46986. Class-aware helper for out-params of pdf_page_presentation() [pdf_page_presentation()].
  46987. """
  46988. ret, duration = ll_pdf_page_presentation(page.m_internal, transition.internal())
  46989. return FzTransition(ret), duration
  46990. pdf_page_presentation = pdf_page_presentation_outparams_fn
  46991. def ll_pdf_page_write(doc, mediabox):
  46992. """
  46993. Wrapper for out-params of pdf_page_write().
  46994. Returns: fz_device *, ::pdf_obj *presources, ::fz_buffer *pcontents
  46995. """
  46996. outparams = ll_pdf_page_write_outparams()
  46997. ret = ll_pdf_page_write_outparams_fn(doc, mediabox, outparams)
  46998. return ret, outparams.presources, outparams.pcontents
  46999. def pdf_page_write_outparams_fn(doc, mediabox):
  47000. """
  47001. Class-aware helper for out-params of pdf_page_write() [pdf_page_write()].
  47002. """
  47003. ret, presources, pcontents = ll_pdf_page_write(doc.m_internal, mediabox.internal())
  47004. return FzDevice(ret), PdfObj( presources), FzBuffer( pcontents)
  47005. pdf_page_write = pdf_page_write_outparams_fn
  47006. def ll_pdf_parse_default_appearance(da, color):
  47007. """
  47008. Wrapper for out-params of pdf_parse_default_appearance().
  47009. Returns: const char *font, float size, int n
  47010. """
  47011. outparams = ll_pdf_parse_default_appearance_outparams()
  47012. ret = ll_pdf_parse_default_appearance_outparams_fn(da, color, outparams)
  47013. return outparams.font, outparams.size, outparams.n
  47014. def pdf_parse_default_appearance_outparams_fn(da, color):
  47015. """
  47016. Class-aware helper for out-params of pdf_parse_default_appearance() [pdf_parse_default_appearance()].
  47017. """
  47018. font, size, n = ll_pdf_parse_default_appearance(da, color)
  47019. return font, size, n
  47020. pdf_parse_default_appearance = pdf_parse_default_appearance_outparams_fn
  47021. def ll_pdf_parse_default_appearance_unmapped(da, font_name, font_name_len, color):
  47022. """
  47023. Wrapper for out-params of pdf_parse_default_appearance_unmapped().
  47024. Returns: float size, int n
  47025. """
  47026. outparams = ll_pdf_parse_default_appearance_unmapped_outparams()
  47027. ret = ll_pdf_parse_default_appearance_unmapped_outparams_fn(da, font_name, font_name_len, color, outparams)
  47028. return outparams.size, outparams.n
  47029. def pdf_parse_default_appearance_unmapped_outparams_fn(da, font_name, font_name_len, color):
  47030. """
  47031. Class-aware helper for out-params of pdf_parse_default_appearance_unmapped() [pdf_parse_default_appearance_unmapped()].
  47032. """
  47033. size, n = ll_pdf_parse_default_appearance_unmapped(da, font_name, font_name_len, color)
  47034. return size, n
  47035. pdf_parse_default_appearance_unmapped = pdf_parse_default_appearance_unmapped_outparams_fn
  47036. def ll_pdf_parse_ind_obj(doc, f):
  47037. """
  47038. Wrapper for out-params of pdf_parse_ind_obj().
  47039. Returns: pdf_obj *, int num, int gen, int64_t stm_ofs, int try_repair
  47040. """
  47041. outparams = ll_pdf_parse_ind_obj_outparams()
  47042. ret = ll_pdf_parse_ind_obj_outparams_fn(doc, f, outparams)
  47043. return ret, outparams.num, outparams.gen, outparams.stm_ofs, outparams.try_repair
  47044. def pdf_parse_ind_obj_outparams_fn(doc, f):
  47045. """
  47046. Class-aware helper for out-params of pdf_parse_ind_obj() [pdf_parse_ind_obj()].
  47047. """
  47048. ret, num, gen, stm_ofs, try_repair = ll_pdf_parse_ind_obj(doc.m_internal, f.m_internal)
  47049. return PdfObj(ret), num, gen, stm_ofs, try_repair
  47050. pdf_parse_ind_obj = pdf_parse_ind_obj_outparams_fn
  47051. def ll_pdf_parse_journal_obj(doc, stm):
  47052. """
  47053. Wrapper for out-params of pdf_parse_journal_obj().
  47054. Returns: pdf_obj *, int onum, ::fz_buffer *ostm, int newobj
  47055. """
  47056. outparams = ll_pdf_parse_journal_obj_outparams()
  47057. ret = ll_pdf_parse_journal_obj_outparams_fn(doc, stm, outparams)
  47058. return ret, outparams.onum, outparams.ostm, outparams.newobj
  47059. def pdf_parse_journal_obj_outparams_fn(doc, stm):
  47060. """
  47061. Class-aware helper for out-params of pdf_parse_journal_obj() [pdf_parse_journal_obj()].
  47062. """
  47063. ret, onum, ostm, newobj = ll_pdf_parse_journal_obj(doc.m_internal, stm.m_internal)
  47064. return PdfObj(ret), onum, FzBuffer( ostm), newobj
  47065. pdf_parse_journal_obj = pdf_parse_journal_obj_outparams_fn
  47066. def ll_pdf_print_encrypted_obj(out, obj, tight, ascii, crypt, num, gen):
  47067. """
  47068. Wrapper for out-params of pdf_print_encrypted_obj().
  47069. Returns: int sep
  47070. """
  47071. outparams = ll_pdf_print_encrypted_obj_outparams()
  47072. ret = ll_pdf_print_encrypted_obj_outparams_fn(out, obj, tight, ascii, crypt, num, gen, outparams)
  47073. return outparams.sep
  47074. def pdf_print_encrypted_obj_outparams_fn(out, obj, tight, ascii, crypt, num, gen):
  47075. """
  47076. Class-aware helper for out-params of pdf_print_encrypted_obj() [pdf_print_encrypted_obj()].
  47077. """
  47078. sep = ll_pdf_print_encrypted_obj(out.m_internal, obj.m_internal, tight, ascii, crypt.m_internal, num, gen)
  47079. return sep
  47080. pdf_print_encrypted_obj = pdf_print_encrypted_obj_outparams_fn
  47081. def ll_pdf_process_contents(proc, doc, res, stm, cookie):
  47082. """
  47083. Wrapper for out-params of pdf_process_contents().
  47084. Returns: ::pdf_obj *out_res
  47085. """
  47086. outparams = ll_pdf_process_contents_outparams()
  47087. ret = ll_pdf_process_contents_outparams_fn(proc, doc, res, stm, cookie, outparams)
  47088. return outparams.out_res
  47089. def pdf_process_contents_outparams_fn(proc, doc, res, stm, cookie):
  47090. """
  47091. Class-aware helper for out-params of pdf_process_contents() [pdf_process_contents()].
  47092. """
  47093. out_res = ll_pdf_process_contents(proc.m_internal, doc.m_internal, res.m_internal, stm.m_internal, cookie.m_internal)
  47094. return PdfObj(ll_pdf_keep_obj( out_res))
  47095. pdf_process_contents = pdf_process_contents_outparams_fn
  47096. def ll_pdf_repair_obj(doc, buf):
  47097. """
  47098. Wrapper for out-params of pdf_repair_obj().
  47099. Returns: int, int64_t stmofsp, int64_t stmlenp, ::pdf_obj *encrypt, ::pdf_obj *id, ::pdf_obj *page, int64_t tmpofs, ::pdf_obj *root
  47100. """
  47101. outparams = ll_pdf_repair_obj_outparams()
  47102. ret = ll_pdf_repair_obj_outparams_fn(doc, buf, outparams)
  47103. return ret, outparams.stmofsp, outparams.stmlenp, outparams.encrypt, outparams.id, outparams.page, outparams.tmpofs, outparams.root
  47104. def pdf_repair_obj_outparams_fn(doc, buf):
  47105. """
  47106. Class-aware helper for out-params of pdf_repair_obj() [pdf_repair_obj()].
  47107. """
  47108. ret, stmofsp, stmlenp, encrypt, id, page, tmpofs, root = ll_pdf_repair_obj(doc.m_internal, buf.m_internal)
  47109. 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))
  47110. pdf_repair_obj = pdf_repair_obj_outparams_fn
  47111. def ll_pdf_resolve_link(doc, uri):
  47112. """
  47113. Wrapper for out-params of pdf_resolve_link().
  47114. Returns: int, float xp, float yp
  47115. """
  47116. outparams = ll_pdf_resolve_link_outparams()
  47117. ret = ll_pdf_resolve_link_outparams_fn(doc, uri, outparams)
  47118. return ret, outparams.xp, outparams.yp
  47119. def pdf_resolve_link_outparams_fn(doc, uri):
  47120. """
  47121. Class-aware helper for out-params of pdf_resolve_link() [pdf_resolve_link()].
  47122. """
  47123. ret, xp, yp = ll_pdf_resolve_link(doc.m_internal, uri)
  47124. return ret, xp, yp
  47125. pdf_resolve_link = pdf_resolve_link_outparams_fn
  47126. def ll_pdf_sample_shade_function(n, funcs, t0, t1):
  47127. """
  47128. Wrapper for out-params of pdf_sample_shade_function().
  47129. Returns: float samples, ::pdf_function *func
  47130. """
  47131. outparams = ll_pdf_sample_shade_function_outparams()
  47132. ret = ll_pdf_sample_shade_function_outparams_fn(n, funcs, t0, t1, outparams)
  47133. return outparams.samples, outparams.func
  47134. def pdf_sample_shade_function_outparams_fn(n, funcs, t0, t1):
  47135. """
  47136. Class-aware helper for out-params of pdf_sample_shade_function() [pdf_sample_shade_function()].
  47137. """
  47138. samples, func = ll_pdf_sample_shade_function(n, funcs, t0, t1)
  47139. return samples, PdfFunction(ll_pdf_keep_function( func))
  47140. pdf_sample_shade_function = pdf_sample_shade_function_outparams_fn
  47141. def ll_pdf_signature_contents(doc, signature):
  47142. """
  47143. Wrapper for out-params of pdf_signature_contents().
  47144. Returns: size_t, char *contents
  47145. """
  47146. outparams = ll_pdf_signature_contents_outparams()
  47147. ret = ll_pdf_signature_contents_outparams_fn(doc, signature, outparams)
  47148. return ret, outparams.contents
  47149. def pdf_signature_contents_outparams_fn(doc, signature):
  47150. """
  47151. Class-aware helper for out-params of pdf_signature_contents() [pdf_signature_contents()].
  47152. """
  47153. ret, contents = ll_pdf_signature_contents(doc.m_internal, signature.m_internal)
  47154. return ret, contents
  47155. pdf_signature_contents = pdf_signature_contents_outparams_fn
  47156. def ll_pdf_sprint_obj(buf, cap, obj, tight, ascii):
  47157. """
  47158. Wrapper for out-params of pdf_sprint_obj().
  47159. Returns: char *, size_t len
  47160. """
  47161. outparams = ll_pdf_sprint_obj_outparams()
  47162. ret = ll_pdf_sprint_obj_outparams_fn(buf, cap, obj, tight, ascii, outparams)
  47163. return ret, outparams.len
  47164. def pdf_sprint_obj_outparams_fn(buf, cap, obj, tight, ascii):
  47165. """
  47166. Class-aware helper for out-params of pdf_sprint_obj() [pdf_sprint_obj()].
  47167. """
  47168. ret, len = ll_pdf_sprint_obj(buf, cap, obj.m_internal, tight, ascii)
  47169. return ret, len
  47170. pdf_sprint_obj = pdf_sprint_obj_outparams_fn
  47171. def ll_pdf_to_string(obj):
  47172. """
  47173. Wrapper for out-params of pdf_to_string().
  47174. Returns: const char *, size_t sizep
  47175. """
  47176. outparams = ll_pdf_to_string_outparams()
  47177. ret = ll_pdf_to_string_outparams_fn(obj, outparams)
  47178. return ret, outparams.sizep
  47179. def pdf_to_string_outparams_fn(obj):
  47180. """
  47181. Class-aware helper for out-params of pdf_to_string() [pdf_to_string()].
  47182. """
  47183. ret, sizep = ll_pdf_to_string(obj.m_internal)
  47184. return ret, sizep
  47185. pdf_to_string = pdf_to_string_outparams_fn
  47186. def ll_pdf_tos_make_trm(tos, text, fontdesc, cid, trm):
  47187. """
  47188. Wrapper for out-params of pdf_tos_make_trm().
  47189. Returns: int, float adv
  47190. """
  47191. outparams = ll_pdf_tos_make_trm_outparams()
  47192. ret = ll_pdf_tos_make_trm_outparams_fn(tos, text, fontdesc, cid, trm, outparams)
  47193. return ret, outparams.adv
  47194. def pdf_tos_make_trm_outparams_fn(tos, text, fontdesc, cid, trm):
  47195. """
  47196. Class-aware helper for out-params of pdf_tos_make_trm() [pdf_tos_make_trm()].
  47197. """
  47198. ret, adv = ll_pdf_tos_make_trm(tos.m_internal, text.m_internal, fontdesc.m_internal, cid, trm.internal())
  47199. return ret, adv
  47200. pdf_tos_make_trm = pdf_tos_make_trm_outparams_fn
  47201. def ll_pdf_undoredo_state(doc):
  47202. """
  47203. Wrapper for out-params of pdf_undoredo_state().
  47204. Returns: int, int steps
  47205. """
  47206. outparams = ll_pdf_undoredo_state_outparams()
  47207. ret = ll_pdf_undoredo_state_outparams_fn(doc, outparams)
  47208. return ret, outparams.steps
  47209. def pdf_undoredo_state_outparams_fn(doc):
  47210. """
  47211. Class-aware helper for out-params of pdf_undoredo_state() [pdf_undoredo_state()].
  47212. """
  47213. ret, steps = ll_pdf_undoredo_state(doc.m_internal)
  47214. return ret, steps
  47215. pdf_undoredo_state = pdf_undoredo_state_outparams_fn
  47216. def ll_pdf_walk_tree(tree, kid_name, arrive, leave, arg):
  47217. """
  47218. Wrapper for out-params of pdf_walk_tree().
  47219. Returns: ::pdf_obj *names, ::pdf_obj *values
  47220. """
  47221. outparams = ll_pdf_walk_tree_outparams()
  47222. ret = ll_pdf_walk_tree_outparams_fn(tree, kid_name, arrive, leave, arg, outparams)
  47223. return outparams.names, outparams.values
  47224. def pdf_walk_tree_outparams_fn(tree, kid_name, arrive, leave, arg):
  47225. """
  47226. Class-aware helper for out-params of pdf_walk_tree() [pdf_walk_tree()].
  47227. """
  47228. names, values = ll_pdf_walk_tree(tree.m_internal, kid_name.m_internal, arrive, leave, arg)
  47229. return PdfObj(ll_pdf_keep_obj( names)), PdfObj(ll_pdf_keep_obj( values))
  47230. pdf_walk_tree = pdf_walk_tree_outparams_fn
  47231. def ll_pdf_zugferd_profile(doc):
  47232. """
  47233. Wrapper for out-params of pdf_zugferd_profile().
  47234. Returns: enum pdf_zugferd_profile, float version
  47235. """
  47236. outparams = ll_pdf_zugferd_profile_outparams()
  47237. ret = ll_pdf_zugferd_profile_outparams_fn(doc, outparams)
  47238. return ret, outparams.version
  47239. def pdf_zugferd_profile_outparams_fn(doc):
  47240. """
  47241. Class-aware helper for out-params of pdf_zugferd_profile() [pdf_zugferd_profile()].
  47242. """
  47243. ret, version = ll_pdf_zugferd_profile(doc.m_internal)
  47244. return ret, version
  47245. pdf_zugferd_profile = pdf_zugferd_profile_outparams_fn
  47246. def FzBitmap_fz_bitmap_details_outparams_fn( self):
  47247. """
  47248. Helper for out-params of class method fz_bitmap::ll_fz_bitmap_details() [fz_bitmap_details()].
  47249. """
  47250. w, h, n, stride = ll_fz_bitmap_details( self.m_internal)
  47251. return w, h, n, stride
  47252. FzBitmap.fz_bitmap_details = FzBitmap_fz_bitmap_details_outparams_fn
  47253. def FzBuffer_fz_buffer_extract_outparams_fn( self):
  47254. """
  47255. Helper for out-params of class method fz_buffer::ll_fz_buffer_extract() [fz_buffer_extract()].
  47256. """
  47257. ret, data = ll_fz_buffer_extract( self.m_internal)
  47258. return ret, data
  47259. FzBuffer.fz_buffer_extract = FzBuffer_fz_buffer_extract_outparams_fn
  47260. def FzBuffer_fz_buffer_storage_outparams_fn( self):
  47261. """
  47262. Helper for out-params of class method fz_buffer::ll_fz_buffer_storage() [fz_buffer_storage()].
  47263. """
  47264. ret, datap = ll_fz_buffer_storage( self.m_internal)
  47265. return ret, datap
  47266. FzBuffer.fz_buffer_storage = FzBuffer_fz_buffer_storage_outparams_fn
  47267. def FzBuffer_fz_new_display_list_from_svg_outparams_fn( self, base_uri, dir):
  47268. """
  47269. Helper for out-params of class method fz_buffer::ll_fz_new_display_list_from_svg() [fz_new_display_list_from_svg()].
  47270. """
  47271. ret, w, h = ll_fz_new_display_list_from_svg( self.m_internal, base_uri, dir.m_internal)
  47272. return FzDisplayList(ret), w, h
  47273. FzBuffer.fz_new_display_list_from_svg = FzBuffer_fz_new_display_list_from_svg_outparams_fn
  47274. def FzBuffer_fz_subset_cff_for_gids_outparams_fn( self, num_gids, symbolic, cidfont):
  47275. """
  47276. Helper for out-params of class method fz_buffer::ll_fz_subset_cff_for_gids() [fz_subset_cff_for_gids()].
  47277. """
  47278. ret, gids = ll_fz_subset_cff_for_gids( self.m_internal, num_gids, symbolic, cidfont)
  47279. return FzBuffer( ll_fz_keep_buffer( ret)), gids
  47280. FzBuffer.fz_subset_cff_for_gids = FzBuffer_fz_subset_cff_for_gids_outparams_fn
  47281. def FzBuffer_fz_subset_ttf_for_gids_outparams_fn( self, num_gids, symbolic, cidfont):
  47282. """
  47283. Helper for out-params of class method fz_buffer::ll_fz_subset_ttf_for_gids() [fz_subset_ttf_for_gids()].
  47284. """
  47285. ret, gids = ll_fz_subset_ttf_for_gids( self.m_internal, num_gids, symbolic, cidfont)
  47286. return FzBuffer( ll_fz_keep_buffer( ret)), gids
  47287. FzBuffer.fz_subset_ttf_for_gids = FzBuffer_fz_subset_ttf_for_gids_outparams_fn
  47288. def FzColorspace_fz_clamp_color_outparams_fn( self, in_):
  47289. """
  47290. Helper for out-params of class method fz_colorspace::ll_fz_clamp_color() [fz_clamp_color()].
  47291. """
  47292. out = ll_fz_clamp_color( self.m_internal, in_)
  47293. return out
  47294. FzColorspace.fz_clamp_color = FzColorspace_fz_clamp_color_outparams_fn
  47295. def FzColorspace_fz_convert_color_outparams_fn( self, sv, params):
  47296. """
  47297. Helper for out-params of class method fz_colorspace::ll_fz_convert_color() [fz_convert_color()].
  47298. """
  47299. dv = ll_fz_convert_color( self.m_internal, sv, params.internal())
  47300. return dv
  47301. FzColorspace.fz_convert_color = FzColorspace_fz_convert_color_outparams_fn
  47302. def FzColorspace_fz_convert_separation_colors_outparams_fn( self, src_color, dst_seps, color_params):
  47303. """
  47304. Helper for out-params of class method fz_colorspace::ll_fz_convert_separation_colors() [fz_convert_separation_colors()].
  47305. """
  47306. dst_color = ll_fz_convert_separation_colors( self.m_internal, src_color, dst_seps.m_internal, color_params.internal())
  47307. return dst_color
  47308. FzColorspace.fz_convert_separation_colors = FzColorspace_fz_convert_separation_colors_outparams_fn
  47309. def FzCompressedBuffer_fz_open_image_decomp_stream_from_buffer_outparams_fn( self):
  47310. """
  47311. 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()].
  47312. """
  47313. ret, l2factor = ll_fz_open_image_decomp_stream_from_buffer( self.m_internal)
  47314. return FzStream(ret), l2factor
  47315. FzCompressedBuffer.fz_open_image_decomp_stream_from_buffer = FzCompressedBuffer_fz_open_image_decomp_stream_from_buffer_outparams_fn
  47316. def FzDisplayList_fz_search_display_list_outparams_fn( self, needle, hit_bbox, hit_max):
  47317. """
  47318. Helper for out-params of class method fz_display_list::ll_fz_search_display_list() [fz_search_display_list()].
  47319. """
  47320. ret, hit_mark = ll_fz_search_display_list( self.m_internal, needle, hit_bbox.internal(), hit_max)
  47321. return ret, hit_mark
  47322. FzDisplayList.fz_search_display_list = FzDisplayList_fz_search_display_list_outparams_fn
  47323. def FzDocument_fz_resolve_link_outparams_fn( self, uri):
  47324. """
  47325. Helper for out-params of class method fz_document::ll_fz_resolve_link() [fz_resolve_link()].
  47326. """
  47327. ret, xp, yp = ll_fz_resolve_link( self.m_internal, uri)
  47328. return FzLocation(ret), xp, yp
  47329. FzDocument.fz_resolve_link = FzDocument_fz_resolve_link_outparams_fn
  47330. def FzDocument_fz_search_chapter_page_number_outparams_fn( self, chapter, page, needle, hit_bbox, hit_max):
  47331. """
  47332. Helper for out-params of class method fz_document::ll_fz_search_chapter_page_number() [fz_search_chapter_page_number()].
  47333. """
  47334. ret, hit_mark = ll_fz_search_chapter_page_number( self.m_internal, chapter, page, needle, hit_bbox.internal(), hit_max)
  47335. return ret, hit_mark
  47336. FzDocument.fz_search_chapter_page_number = FzDocument_fz_search_chapter_page_number_outparams_fn
  47337. def FzDocument_fz_search_page_number_outparams_fn( self, number, needle, hit_bbox, hit_max):
  47338. """
  47339. Helper for out-params of class method fz_document::ll_fz_search_page_number() [fz_search_page_number()].
  47340. """
  47341. ret, hit_mark = ll_fz_search_page_number( self.m_internal, number, needle, hit_bbox.internal(), hit_max)
  47342. return ret, hit_mark
  47343. FzDocument.fz_search_page_number = FzDocument_fz_search_page_number_outparams_fn
  47344. def FzFont_fz_encode_character_with_fallback_outparams_fn( self, unicode, script, language):
  47345. """
  47346. Helper for out-params of class method fz_font::ll_fz_encode_character_with_fallback() [fz_encode_character_with_fallback()].
  47347. """
  47348. ret, out_font = ll_fz_encode_character_with_fallback( self.m_internal, unicode, script, language)
  47349. return ret, FzFont(ll_fz_keep_font( out_font))
  47350. FzFont.fz_encode_character_with_fallback = FzFont_fz_encode_character_with_fallback_outparams_fn
  47351. def FzFunction_fz_eval_function_outparams_fn( self, in_, inlen, outlen):
  47352. """
  47353. Helper for out-params of class method fz_function::ll_fz_eval_function() [fz_eval_function()].
  47354. """
  47355. out = ll_fz_eval_function( self.m_internal, in_, inlen, outlen)
  47356. return out
  47357. FzFunction.fz_eval_function = FzFunction_fz_eval_function_outparams_fn
  47358. def FzImage_fz_get_pixmap_from_image_outparams_fn( self, subarea, ctm):
  47359. """
  47360. Helper for out-params of class method fz_image::ll_fz_get_pixmap_from_image() [fz_get_pixmap_from_image()].
  47361. """
  47362. ret, w, h = ll_fz_get_pixmap_from_image( self.m_internal, subarea.internal(), ctm.internal())
  47363. return FzPixmap(ret), w, h
  47364. FzImage.fz_get_pixmap_from_image = FzImage_fz_get_pixmap_from_image_outparams_fn
  47365. def FzImage_fz_image_resolution_outparams_fn( self):
  47366. """
  47367. Helper for out-params of class method fz_image::ll_fz_image_resolution() [fz_image_resolution()].
  47368. """
  47369. xres, yres = ll_fz_image_resolution( self.m_internal)
  47370. return xres, yres
  47371. FzImage.fz_image_resolution = FzImage_fz_image_resolution_outparams_fn
  47372. def FzOutput_fz_new_svg_device_with_id_outparams_fn( self, page_width, page_height, text_format, reuse_images):
  47373. """
  47374. Helper for out-params of class method fz_output::ll_fz_new_svg_device_with_id() [fz_new_svg_device_with_id()].
  47375. """
  47376. ret, id = ll_fz_new_svg_device_with_id( self.m_internal, page_width, page_height, text_format, reuse_images)
  47377. return FzDevice(ret), id
  47378. FzOutput.fz_new_svg_device_with_id = FzOutput_fz_new_svg_device_with_id_outparams_fn
  47379. def FzOutput_pdf_print_encrypted_obj_outparams_fn( self, obj, tight, ascii, crypt, num, gen):
  47380. """
  47381. Helper for out-params of class method fz_output::ll_pdf_print_encrypted_obj() [pdf_print_encrypted_obj()].
  47382. """
  47383. sep = ll_pdf_print_encrypted_obj( self.m_internal, obj.m_internal, tight, ascii, crypt.m_internal, num, gen)
  47384. return sep
  47385. FzOutput.pdf_print_encrypted_obj = FzOutput_pdf_print_encrypted_obj_outparams_fn
  47386. def FzPage_fz_page_presentation_outparams_fn( self, transition):
  47387. """
  47388. Helper for out-params of class method fz_page::ll_fz_page_presentation() [fz_page_presentation()].
  47389. """
  47390. ret, duration = ll_fz_page_presentation( self.m_internal, transition.internal())
  47391. return FzTransition(ret), duration
  47392. FzPage.fz_page_presentation = FzPage_fz_page_presentation_outparams_fn
  47393. def FzPage_fz_search_page_outparams_fn( self, needle, hit_bbox, hit_max):
  47394. """
  47395. Helper for out-params of class method fz_page::ll_fz_search_page() [fz_search_page()].
  47396. """
  47397. ret, hit_mark = ll_fz_search_page( self.m_internal, needle, hit_bbox.internal(), hit_max)
  47398. return ret, hit_mark
  47399. FzPage.fz_search_page = FzPage_fz_search_page_outparams_fn
  47400. def FzPixmap_fz_fill_pixmap_with_color_outparams_fn( self, colorspace, color_params):
  47401. """
  47402. Helper for out-params of class method fz_pixmap::ll_fz_fill_pixmap_with_color() [fz_fill_pixmap_with_color()].
  47403. """
  47404. color = ll_fz_fill_pixmap_with_color( self.m_internal, colorspace.m_internal, color_params.internal())
  47405. return color
  47406. FzPixmap.fz_fill_pixmap_with_color = FzPixmap_fz_fill_pixmap_with_color_outparams_fn
  47407. def FzSeparations_fz_separation_equivalent_outparams_fn( self, idx, dst_cs, prf, color_params):
  47408. """
  47409. Helper for out-params of class method fz_separations::ll_fz_separation_equivalent() [fz_separation_equivalent()].
  47410. """
  47411. dst_color = ll_fz_separation_equivalent( self.m_internal, idx, dst_cs.m_internal, prf.m_internal, color_params.internal())
  47412. return dst_color
  47413. FzSeparations.fz_separation_equivalent = FzSeparations_fz_separation_equivalent_outparams_fn
  47414. def FzShade_fz_paint_shade_outparams_fn( self, override_cs, ctm, dest, color_params, bbox, eop):
  47415. """
  47416. Helper for out-params of class method fz_shade::ll_fz_paint_shade() [fz_paint_shade()].
  47417. """
  47418. 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)
  47419. return FzShadeColorCache(ll_fz_keep_shade_color_cache( cache))
  47420. FzShade.fz_paint_shade = FzShade_fz_paint_shade_outparams_fn
  47421. def FzStextPage_fz_search_stext_page_outparams_fn( self, needle, hit_bbox, hit_max):
  47422. """
  47423. Helper for out-params of class method fz_stext_page::ll_fz_search_stext_page() [fz_search_stext_page()].
  47424. """
  47425. ret, hit_mark = ll_fz_search_stext_page( self.m_internal, needle, hit_bbox.internal(), hit_max)
  47426. return ret, hit_mark
  47427. FzStextPage.fz_search_stext_page = FzStextPage_fz_search_stext_page_outparams_fn
  47428. def FzStream_fz_decomp_image_from_stream_outparams_fn( self, image, subarea, indexed, l2factor):
  47429. """
  47430. Helper for out-params of class method fz_stream::ll_fz_decomp_image_from_stream() [fz_decomp_image_from_stream()].
  47431. """
  47432. ret, l2extra = ll_fz_decomp_image_from_stream( self.m_internal, image.m_internal, subarea.internal(), indexed, l2factor)
  47433. return FzPixmap(ret), l2extra
  47434. FzStream.fz_decomp_image_from_stream = FzStream_fz_decomp_image_from_stream_outparams_fn
  47435. def FzStream_fz_open_image_decomp_stream_outparams_fn( self, arg_1):
  47436. """
  47437. Helper for out-params of class method fz_stream::ll_fz_open_image_decomp_stream() [fz_open_image_decomp_stream()].
  47438. """
  47439. ret, l2factor = ll_fz_open_image_decomp_stream( self.m_internal, arg_1.m_internal)
  47440. return FzStream(ret), l2factor
  47441. FzStream.fz_open_image_decomp_stream = FzStream_fz_open_image_decomp_stream_outparams_fn
  47442. def FzStream_fz_read_best_outparams_fn( self, initial, worst_case):
  47443. """
  47444. Helper for out-params of class method fz_stream::ll_fz_read_best() [fz_read_best()].
  47445. """
  47446. ret, truncated = ll_fz_read_best( self.m_internal, initial, worst_case)
  47447. return FzBuffer(ret), truncated
  47448. FzStream.fz_read_best = FzStream_fz_read_best_outparams_fn
  47449. def FzXml_fz_dom_get_attribute_outparams_fn( self, i):
  47450. """
  47451. Helper for out-params of class method fz_xml::ll_fz_dom_get_attribute() [fz_dom_get_attribute()].
  47452. """
  47453. ret, att = ll_fz_dom_get_attribute( self.m_internal, i)
  47454. return ret, att
  47455. FzXml.fz_dom_get_attribute = FzXml_fz_dom_get_attribute_outparams_fn
  47456. def FzXml_fz_new_display_list_from_svg_xml_outparams_fn( self, xmldoc, base_uri, dir):
  47457. """
  47458. Helper for out-params of class method fz_xml::ll_fz_new_display_list_from_svg_xml() [fz_new_display_list_from_svg_xml()].
  47459. """
  47460. ret, w, h = ll_fz_new_display_list_from_svg_xml( self.m_internal, xmldoc.m_internal, base_uri, dir.m_internal)
  47461. return FzDisplayList(ret), w, h
  47462. FzXml.fz_new_display_list_from_svg_xml = FzXml_fz_new_display_list_from_svg_xml_outparams_fn
  47463. def PdfAnnot_pdf_annot_MK_BC_outparams_fn( self, color):
  47464. """
  47465. Helper for out-params of class method pdf_annot::ll_pdf_annot_MK_BC() [pdf_annot_MK_BC()].
  47466. """
  47467. n = ll_pdf_annot_MK_BC( self.m_internal, color)
  47468. return n
  47469. PdfAnnot.pdf_annot_MK_BC = PdfAnnot_pdf_annot_MK_BC_outparams_fn
  47470. def PdfAnnot_pdf_annot_MK_BG_outparams_fn( self, color):
  47471. """
  47472. Helper for out-params of class method pdf_annot::ll_pdf_annot_MK_BG() [pdf_annot_MK_BG()].
  47473. """
  47474. n = ll_pdf_annot_MK_BG( self.m_internal, color)
  47475. return n
  47476. PdfAnnot.pdf_annot_MK_BG = PdfAnnot_pdf_annot_MK_BG_outparams_fn
  47477. def PdfAnnot_pdf_annot_color_outparams_fn( self, color):
  47478. """
  47479. Helper for out-params of class method pdf_annot::ll_pdf_annot_color() [pdf_annot_color()].
  47480. """
  47481. n = ll_pdf_annot_color( self.m_internal, color)
  47482. return n
  47483. PdfAnnot.pdf_annot_color = PdfAnnot_pdf_annot_color_outparams_fn
  47484. def PdfAnnot_pdf_annot_default_appearance_outparams_fn( self, color):
  47485. """
  47486. Helper for out-params of class method pdf_annot::ll_pdf_annot_default_appearance() [pdf_annot_default_appearance()].
  47487. """
  47488. font, size, n = ll_pdf_annot_default_appearance( self.m_internal, color)
  47489. return font, size, n
  47490. PdfAnnot.pdf_annot_default_appearance = PdfAnnot_pdf_annot_default_appearance_outparams_fn
  47491. def PdfAnnot_pdf_annot_default_appearance_unmapped_outparams_fn( self, font_name, font_name_len, color):
  47492. """
  47493. Helper for out-params of class method pdf_annot::ll_pdf_annot_default_appearance_unmapped() [pdf_annot_default_appearance_unmapped()].
  47494. """
  47495. size, n = ll_pdf_annot_default_appearance_unmapped( self.m_internal, font_name, font_name_len, color)
  47496. return size, n
  47497. PdfAnnot.pdf_annot_default_appearance_unmapped = PdfAnnot_pdf_annot_default_appearance_unmapped_outparams_fn
  47498. def PdfAnnot_pdf_annot_interior_color_outparams_fn( self, color):
  47499. """
  47500. Helper for out-params of class method pdf_annot::ll_pdf_annot_interior_color() [pdf_annot_interior_color()].
  47501. """
  47502. n = ll_pdf_annot_interior_color( self.m_internal, color)
  47503. return n
  47504. PdfAnnot.pdf_annot_interior_color = PdfAnnot_pdf_annot_interior_color_outparams_fn
  47505. def PdfAnnot_pdf_annot_line_ending_styles_outparams_fn( self):
  47506. """
  47507. Helper for out-params of class method pdf_annot::ll_pdf_annot_line_ending_styles() [pdf_annot_line_ending_styles()].
  47508. """
  47509. start_style, end_style = ll_pdf_annot_line_ending_styles( self.m_internal)
  47510. return start_style, end_style
  47511. PdfAnnot.pdf_annot_line_ending_styles = PdfAnnot_pdf_annot_line_ending_styles_outparams_fn
  47512. def PdfAnnot_pdf_edit_text_field_value_outparams_fn( self, value, change):
  47513. """
  47514. Helper for out-params of class method pdf_annot::ll_pdf_edit_text_field_value() [pdf_edit_text_field_value()].
  47515. """
  47516. ret, selStart, selEnd, newvalue = ll_pdf_edit_text_field_value( self.m_internal, value, change)
  47517. return ret, selStart, selEnd, newvalue
  47518. PdfAnnot.pdf_edit_text_field_value = PdfAnnot_pdf_edit_text_field_value_outparams_fn
  47519. def PdfCmap_pdf_decode_cmap_outparams_fn( self, s, e):
  47520. """
  47521. Helper for out-params of class method pdf_cmap::ll_pdf_decode_cmap() [pdf_decode_cmap()].
  47522. """
  47523. ret, cpt = ll_pdf_decode_cmap( self.m_internal, s, e)
  47524. return ret, cpt
  47525. PdfCmap.pdf_decode_cmap = PdfCmap_pdf_decode_cmap_outparams_fn
  47526. def PdfCmap_pdf_lookup_cmap_full_outparams_fn( self, cpt):
  47527. """
  47528. Helper for out-params of class method pdf_cmap::ll_pdf_lookup_cmap_full() [pdf_lookup_cmap_full()].
  47529. """
  47530. ret, out = ll_pdf_lookup_cmap_full( self.m_internal, cpt)
  47531. return ret, out
  47532. PdfCmap.pdf_lookup_cmap_full = PdfCmap_pdf_lookup_cmap_full_outparams_fn
  47533. def PdfCmap_pdf_map_one_to_many_outparams_fn( self, one, len):
  47534. """
  47535. Helper for out-params of class method pdf_cmap::ll_pdf_map_one_to_many() [pdf_map_one_to_many()].
  47536. """
  47537. many = ll_pdf_map_one_to_many( self.m_internal, one, len)
  47538. return many
  47539. PdfCmap.pdf_map_one_to_many = PdfCmap_pdf_map_one_to_many_outparams_fn
  47540. def PdfDocument_pdf_count_q_balance_outparams_fn( self, res, stm):
  47541. """
  47542. Helper for out-params of class method pdf_document::ll_pdf_count_q_balance() [pdf_count_q_balance()].
  47543. """
  47544. prepend, append = ll_pdf_count_q_balance( self.m_internal, res.m_internal, stm.m_internal)
  47545. return prepend, append
  47546. PdfDocument.pdf_count_q_balance = PdfDocument_pdf_count_q_balance_outparams_fn
  47547. def PdfDocument_pdf_field_event_validate_outparams_fn( self, field, value):
  47548. """
  47549. Helper for out-params of class method pdf_document::ll_pdf_field_event_validate() [pdf_field_event_validate()].
  47550. """
  47551. ret, newvalue = ll_pdf_field_event_validate( self.m_internal, field.m_internal, value)
  47552. return ret, newvalue
  47553. PdfDocument.pdf_field_event_validate = PdfDocument_pdf_field_event_validate_outparams_fn
  47554. def PdfDocument_pdf_load_to_unicode_outparams_fn( self, font, collection, cmapstm):
  47555. """
  47556. Helper for out-params of class method pdf_document::ll_pdf_load_to_unicode() [pdf_load_to_unicode()].
  47557. """
  47558. strings = ll_pdf_load_to_unicode( self.m_internal, font.m_internal, collection, cmapstm.m_internal)
  47559. return strings
  47560. PdfDocument.pdf_load_to_unicode = PdfDocument_pdf_load_to_unicode_outparams_fn
  47561. def PdfDocument_pdf_lookup_page_loc_outparams_fn( self, needle):
  47562. """
  47563. Helper for out-params of class method pdf_document::ll_pdf_lookup_page_loc() [pdf_lookup_page_loc()].
  47564. """
  47565. ret, parentp, indexp = ll_pdf_lookup_page_loc( self.m_internal, needle)
  47566. return PdfObj( ll_pdf_keep_obj( ret)), PdfObj(ll_pdf_keep_obj( parentp)), indexp
  47567. PdfDocument.pdf_lookup_page_loc = PdfDocument_pdf_lookup_page_loc_outparams_fn
  47568. def PdfDocument_pdf_page_write_outparams_fn( self, mediabox):
  47569. """
  47570. Helper for out-params of class method pdf_document::ll_pdf_page_write() [pdf_page_write()].
  47571. """
  47572. ret, presources, pcontents = ll_pdf_page_write( self.m_internal, mediabox.internal())
  47573. return FzDevice(ret), PdfObj( presources), FzBuffer( pcontents)
  47574. PdfDocument.pdf_page_write = PdfDocument_pdf_page_write_outparams_fn
  47575. def PdfDocument_pdf_parse_ind_obj_outparams_fn( self, f):
  47576. """
  47577. Helper for out-params of class method pdf_document::ll_pdf_parse_ind_obj() [pdf_parse_ind_obj()].
  47578. """
  47579. ret, num, gen, stm_ofs, try_repair = ll_pdf_parse_ind_obj( self.m_internal, f.m_internal)
  47580. return PdfObj(ret), num, gen, stm_ofs, try_repair
  47581. PdfDocument.pdf_parse_ind_obj = PdfDocument_pdf_parse_ind_obj_outparams_fn
  47582. def PdfDocument_pdf_parse_journal_obj_outparams_fn( self, stm):
  47583. """
  47584. Helper for out-params of class method pdf_document::ll_pdf_parse_journal_obj() [pdf_parse_journal_obj()].
  47585. """
  47586. ret, onum, ostm, newobj = ll_pdf_parse_journal_obj( self.m_internal, stm.m_internal)
  47587. return PdfObj(ret), onum, FzBuffer( ostm), newobj
  47588. PdfDocument.pdf_parse_journal_obj = PdfDocument_pdf_parse_journal_obj_outparams_fn
  47589. def PdfDocument_pdf_repair_obj_outparams_fn( self, buf):
  47590. """
  47591. Helper for out-params of class method pdf_document::ll_pdf_repair_obj() [pdf_repair_obj()].
  47592. """
  47593. ret, stmofsp, stmlenp, encrypt, id, page, tmpofs, root = ll_pdf_repair_obj( self.m_internal, buf.m_internal)
  47594. 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))
  47595. PdfDocument.pdf_repair_obj = PdfDocument_pdf_repair_obj_outparams_fn
  47596. def PdfDocument_pdf_resolve_link_outparams_fn( self, uri):
  47597. """
  47598. Helper for out-params of class method pdf_document::ll_pdf_resolve_link() [pdf_resolve_link()].
  47599. """
  47600. ret, xp, yp = ll_pdf_resolve_link( self.m_internal, uri)
  47601. return ret, xp, yp
  47602. PdfDocument.pdf_resolve_link = PdfDocument_pdf_resolve_link_outparams_fn
  47603. def PdfDocument_pdf_signature_contents_outparams_fn( self, signature):
  47604. """
  47605. Helper for out-params of class method pdf_document::ll_pdf_signature_contents() [pdf_signature_contents()].
  47606. """
  47607. ret, contents = ll_pdf_signature_contents( self.m_internal, signature.m_internal)
  47608. return ret, contents
  47609. PdfDocument.pdf_signature_contents = PdfDocument_pdf_signature_contents_outparams_fn
  47610. def PdfDocument_pdf_undoredo_state_outparams_fn( self):
  47611. """
  47612. Helper for out-params of class method pdf_document::ll_pdf_undoredo_state() [pdf_undoredo_state()].
  47613. """
  47614. ret, steps = ll_pdf_undoredo_state( self.m_internal)
  47615. return ret, steps
  47616. PdfDocument.pdf_undoredo_state = PdfDocument_pdf_undoredo_state_outparams_fn
  47617. def PdfDocument_pdf_zugferd_profile_outparams_fn( self):
  47618. """
  47619. Helper for out-params of class method pdf_document::ll_pdf_zugferd_profile() [pdf_zugferd_profile()].
  47620. """
  47621. ret, version = ll_pdf_zugferd_profile( self.m_internal)
  47622. return ret, version
  47623. PdfDocument.pdf_zugferd_profile = PdfDocument_pdf_zugferd_profile_outparams_fn
  47624. def PdfFunction_pdf_eval_function_outparams_fn( self, in_, inlen, outlen):
  47625. """
  47626. Helper for out-params of class method pdf_function::ll_pdf_eval_function() [pdf_eval_function()].
  47627. """
  47628. out = ll_pdf_eval_function( self.m_internal, in_, inlen, outlen)
  47629. return out
  47630. PdfFunction.pdf_eval_function = PdfFunction_pdf_eval_function_outparams_fn
  47631. def PdfJs_pdf_js_event_result_validate_outparams_fn( self):
  47632. """
  47633. Helper for out-params of class method pdf_js::ll_pdf_js_event_result_validate() [pdf_js_event_result_validate()].
  47634. """
  47635. ret, newvalue = ll_pdf_js_event_result_validate( self.m_internal)
  47636. return ret, newvalue
  47637. PdfJs.pdf_js_event_result_validate = PdfJs_pdf_js_event_result_validate_outparams_fn
  47638. def PdfJs_pdf_js_execute_outparams_fn( self, name, code):
  47639. """
  47640. Helper for out-params of class method pdf_js::ll_pdf_js_execute() [pdf_js_execute()].
  47641. """
  47642. result = ll_pdf_js_execute( self.m_internal, name, code)
  47643. return result
  47644. PdfJs.pdf_js_execute = PdfJs_pdf_js_execute_outparams_fn
  47645. def PdfObj_pdf_array_get_string_outparams_fn( self, index):
  47646. """
  47647. Helper for out-params of class method pdf_obj::ll_pdf_array_get_string() [pdf_array_get_string()].
  47648. """
  47649. ret, sizep = ll_pdf_array_get_string( self.m_internal, index)
  47650. return ret, sizep
  47651. PdfObj.pdf_array_get_string = PdfObj_pdf_array_get_string_outparams_fn
  47652. def PdfObj_pdf_dict_get_inheritable_string_outparams_fn( self):
  47653. """
  47654. Helper for out-params of class method pdf_obj::ll_pdf_dict_get_inheritable_string() [pdf_dict_get_inheritable_string()].
  47655. """
  47656. ret, sizep = ll_pdf_dict_get_inheritable_string( self.m_internal)
  47657. return ret, sizep
  47658. PdfObj.pdf_dict_get_inheritable_string = PdfObj_pdf_dict_get_inheritable_string_outparams_fn
  47659. def PdfObj_pdf_dict_get_string_outparams_fn( self):
  47660. """
  47661. Helper for out-params of class method pdf_obj::ll_pdf_dict_get_string() [pdf_dict_get_string()].
  47662. """
  47663. ret, sizep = ll_pdf_dict_get_string( self.m_internal)
  47664. return ret, sizep
  47665. PdfObj.pdf_dict_get_string = PdfObj_pdf_dict_get_string_outparams_fn
  47666. def PdfObj_pdf_obj_memo_outparams_fn( self, bit):
  47667. """
  47668. Helper for out-params of class method pdf_obj::ll_pdf_obj_memo() [pdf_obj_memo()].
  47669. """
  47670. ret, memo = ll_pdf_obj_memo( self.m_internal, bit)
  47671. return ret, memo
  47672. PdfObj.pdf_obj_memo = PdfObj_pdf_obj_memo_outparams_fn
  47673. def PdfObj_pdf_to_string_outparams_fn( self):
  47674. """
  47675. Helper for out-params of class method pdf_obj::ll_pdf_to_string() [pdf_to_string()].
  47676. """
  47677. ret, sizep = ll_pdf_to_string( self.m_internal)
  47678. return ret, sizep
  47679. PdfObj.pdf_to_string = PdfObj_pdf_to_string_outparams_fn
  47680. def PdfObj_pdf_walk_tree_outparams_fn( self, arrive, leave, arg):
  47681. """
  47682. Helper for out-params of class method pdf_obj::ll_pdf_walk_tree() [pdf_walk_tree()].
  47683. """
  47684. names, values = ll_pdf_walk_tree( self.m_internal, arrive, leave, arg)
  47685. return PdfObj(ll_pdf_keep_obj( names)), PdfObj(ll_pdf_keep_obj( values))
  47686. PdfObj.pdf_walk_tree = PdfObj_pdf_walk_tree_outparams_fn
  47687. def PdfPage_pdf_page_presentation_outparams_fn( self, transition):
  47688. """
  47689. Helper for out-params of class method pdf_page::ll_pdf_page_presentation() [pdf_page_presentation()].
  47690. """
  47691. ret, duration = ll_pdf_page_presentation( self.m_internal, transition.internal())
  47692. return FzTransition(ret), duration
  47693. PdfPage.pdf_page_presentation = PdfPage_pdf_page_presentation_outparams_fn
  47694. def PdfProcessor_pdf_process_contents_outparams_fn( self, doc, res, stm, cookie):
  47695. """
  47696. Helper for out-params of class method pdf_processor::ll_pdf_process_contents() [pdf_process_contents()].
  47697. """
  47698. out_res = ll_pdf_process_contents( self.m_internal, doc.m_internal, res.m_internal, stm.m_internal, cookie.m_internal)
  47699. return PdfObj(ll_pdf_keep_obj( out_res))
  47700. PdfProcessor.pdf_process_contents = PdfProcessor_pdf_process_contents_outparams_fn
  47701. def PdfTextObjectState_pdf_tos_make_trm_outparams_fn( self, text, fontdesc, cid, trm):
  47702. """
  47703. Helper for out-params of class method pdf_text_object_state::ll_pdf_tos_make_trm() [pdf_tos_make_trm()].
  47704. """
  47705. ret, adv = ll_pdf_tos_make_trm( self.m_internal, text.m_internal, fontdesc.m_internal, cid, trm.internal())
  47706. return ret, adv
  47707. PdfTextObjectState.pdf_tos_make_trm = PdfTextObjectState_pdf_tos_make_trm_outparams_fn
  47708. # Define __str()__ for each error/exception class, to use self.what().
  47709. FzErrorBase.__str__ = lambda self: self.what()
  47710. FzErrorNone.__str__ = lambda self: self.what()
  47711. FzErrorGeneric.__str__ = lambda self: self.what()
  47712. FzErrorSystem.__str__ = lambda self: self.what()
  47713. FzErrorLibrary.__str__ = lambda self: self.what()
  47714. FzErrorArgument.__str__ = lambda self: self.what()
  47715. FzErrorLimit.__str__ = lambda self: self.what()
  47716. FzErrorUnsupported.__str__ = lambda self: self.what()
  47717. FzErrorFormat.__str__ = lambda self: self.what()
  47718. FzErrorSyntax.__str__ = lambda self: self.what()
  47719. FzErrorTrylater.__str__ = lambda self: self.what()
  47720. FzErrorAbort.__str__ = lambda self: self.what()
  47721. FzErrorRepaired.__str__ = lambda self: self.what()
  47722. # This must be after the declaration of mupdf::FzError*
  47723. # classes in mupdf/exceptions.h and declaration of
  47724. # `internal_set_error_classes()`, otherwise generated code is
  47725. # before the declaration of the Python class or similar. */
  47726. internal_set_error_classes([
  47727. FzErrorNone,
  47728. FzErrorGeneric,
  47729. FzErrorSystem,
  47730. FzErrorLibrary,
  47731. FzErrorArgument,
  47732. FzErrorLimit,
  47733. FzErrorUnsupported,
  47734. FzErrorFormat,
  47735. FzErrorSyntax,
  47736. FzErrorTrylater,
  47737. FzErrorAbort,
  47738. FzErrorRepaired,
  47739. FzErrorBase,
  47740. ])
  47741. # Wrap fz_parse_page_range() to fix SWIG bug where a NULL return
  47742. # value seems to mess up the returned list - we end up with ret
  47743. # containing two elements rather than three, e.g. [0, 2]. This
  47744. # occurs with SWIG-3.0; maybe fixed in SWIG-4?
  47745. #
  47746. ll_fz_parse_page_range_orig = ll_fz_parse_page_range
  47747. def ll_fz_parse_page_range(s, n):
  47748. ret = ll_fz_parse_page_range_orig(s, n)
  47749. if len(ret) == 2:
  47750. return None, 0, 0
  47751. else:
  47752. return ret[0], ret[1], ret[2]
  47753. fz_parse_page_range = ll_fz_parse_page_range
  47754. # Provide native python implementation of format_output_path() (->
  47755. # fz_format_output_path).
  47756. #
  47757. def ll_fz_format_output_path( format, page):
  47758. m = re.search( '(%[0-9]*d)', format)
  47759. if m:
  47760. ret = format[ :m.start(1)] + str(page) + format[ m.end(1):]
  47761. else:
  47762. dot = format.rfind( '.')
  47763. if dot < 0:
  47764. dot = len( format)
  47765. ret = format[:dot] + str(page) + format[dot:]
  47766. return ret
  47767. fz_format_output_path = ll_fz_format_output_path
  47768. class IteratorWrap:
  47769. """
  47770. This is a Python iterator for containers that have C++-style
  47771. begin() and end() methods that return iterators.
  47772. Iterators must have the following methods:
  47773. __increment__(): move to next item in the container.
  47774. __ref__(): return reference to item in the container.
  47775. Must also be able to compare two iterators for equality.
  47776. """
  47777. def __init__( self, container):
  47778. self.container = container
  47779. self.pos = None
  47780. self.end = container.end()
  47781. def __iter__( self):
  47782. return self
  47783. def __next__( self): # for python2.
  47784. if self.pos is None:
  47785. self.pos = self.container.begin()
  47786. else:
  47787. self.pos.__increment__()
  47788. if self.pos == self.end:
  47789. raise StopIteration()
  47790. return self.pos.__ref__()
  47791. def next( self): # for python3.
  47792. return self.__next__()
  47793. # The auto-generated Python class method
  47794. # FzBuffer.fz_buffer_extract() returns (size, data).
  47795. #
  47796. # But these raw values aren't particularly useful to
  47797. # Python code so we change the method to return a Python
  47798. # bytes instance instead, using the special C function
  47799. # buffer_extract_bytes() defined above.
  47800. #
  47801. # The raw values for a buffer are available via
  47802. # fz_buffer_storage().
  47803. def ll_fz_buffer_extract(buffer):
  47804. """
  47805. Returns buffer data as a Python bytes instance, leaving the
  47806. buffer empty.
  47807. """
  47808. assert isinstance( buffer, fz_buffer)
  47809. return ll_fz_buffer_to_bytes_internal(buffer, clear=1)
  47810. def fz_buffer_extract(buffer):
  47811. """
  47812. Returns buffer data as a Python bytes instance, leaving the
  47813. buffer empty.
  47814. """
  47815. assert isinstance( buffer, FzBuffer)
  47816. return ll_fz_buffer_extract(buffer.m_internal)
  47817. FzBuffer.fz_buffer_extract = fz_buffer_extract
  47818. def ll_fz_buffer_extract_copy( buffer):
  47819. """
  47820. Returns buffer data as a Python bytes instance, leaving the
  47821. buffer unchanged.
  47822. """
  47823. assert isinstance( buffer, fz_buffer)
  47824. return ll_fz_buffer_to_bytes_internal(buffer, clear=0)
  47825. def fz_buffer_extract_copy( buffer):
  47826. """
  47827. Returns buffer data as a Python bytes instance, leaving the
  47828. buffer unchanged.
  47829. """
  47830. assert isinstance( buffer, FzBuffer)
  47831. return ll_fz_buffer_extract_copy(buffer.m_internal)
  47832. FzBuffer.fz_buffer_extract_copy = fz_buffer_extract_copy
  47833. # [ll_fz_buffer_storage_memoryview() is implemented in C.]
  47834. def fz_buffer_storage_memoryview( buffer, writable=False):
  47835. """
  47836. Returns a read-only or writable Python `memoryview` onto
  47837. `fz_buffer` data. This relies on `buffer` existing and
  47838. not changing size while the `memoryview` is used.
  47839. """
  47840. assert isinstance( buffer, FzBuffer)
  47841. return ll_fz_buffer_storage_memoryview( buffer.m_internal, writable)
  47842. FzBuffer.fz_buffer_storage_memoryview = fz_buffer_storage_memoryview
  47843. # Overwrite wrappers for fz_new_buffer_from_copied_data() to
  47844. # take Python buffer.
  47845. #
  47846. ll_fz_new_buffer_from_copied_data_orig = ll_fz_new_buffer_from_copied_data
  47847. def ll_fz_new_buffer_from_copied_data(data):
  47848. """
  47849. Returns fz_buffer containing copy of `data`, which should
  47850. be a `bytes` or similar Python buffer instance.
  47851. """
  47852. buffer_ = ll_fz_new_buffer_from_copied_data_orig(python_buffer_data(data), len(data))
  47853. return buffer_
  47854. def fz_new_buffer_from_copied_data(data):
  47855. """
  47856. Returns FzBuffer containing copy of `data`, which should be
  47857. a `bytes` or similar Python buffer instance.
  47858. """
  47859. return FzBuffer( ll_fz_new_buffer_from_copied_data( data))
  47860. FzBuffer.fz_new_buffer_from_copied_data = fz_new_buffer_from_copied_data
  47861. def ll_pdf_dict_getl(obj, *tail):
  47862. """
  47863. Python implementation of ll_pdf_dict_getl(), because SWIG
  47864. doesn't handle variadic args. Each item in `tail` should be
  47865. `mupdf.pdf_obj`.
  47866. """
  47867. for key in tail:
  47868. if not obj:
  47869. break
  47870. obj = ll_pdf_dict_get(obj, key)
  47871. assert isinstance(obj, pdf_obj)
  47872. return obj
  47873. def pdf_dict_getl(obj, *tail):
  47874. """
  47875. Python implementation of pdf_dict_getl(), because SWIG
  47876. doesn't handle variadic args. Each item in `tail` should be
  47877. a `mupdf.PdfObj`.
  47878. """
  47879. for key in tail:
  47880. if not obj.m_internal:
  47881. break
  47882. obj = pdf_dict_get(obj, key)
  47883. assert isinstance(obj, PdfObj)
  47884. return obj
  47885. PdfObj.pdf_dict_getl = pdf_dict_getl
  47886. def ll_pdf_dict_putl(obj, val, *tail):
  47887. """
  47888. Python implementation of ll_pdf_dict_putl() because SWIG
  47889. doesn't handle variadic args. Each item in `tail` should
  47890. be a SWIG wrapper for a `pdf_obj`.
  47891. """
  47892. if ll_pdf_is_indirect( obj):
  47893. obj = ll_pdf_resolve_indirect_chain( obj)
  47894. if not pdf_is_dict( obj):
  47895. raise Exception(f'not a dict: {obj}')
  47896. if not tail:
  47897. return
  47898. doc = ll_pdf_get_bound_document( obj)
  47899. for i, key in enumerate( tail[:-1]):
  47900. assert isinstance( key, PdfObj), f'Item {i} in `tail` should be a pdf_obj but is a {type(key)}.'
  47901. next_obj = ll_pdf_dict_get( obj, key)
  47902. if not next_obj:
  47903. # We have to create entries
  47904. next_obj = ll_pdf_new_dict( doc, 1)
  47905. ll_pdf_dict_put( obj, key, next_obj)
  47906. obj = next_obj
  47907. key = tail[-1]
  47908. ll_pdf_dict_put( obj, key, val)
  47909. def pdf_dict_putl(obj, val, *tail):
  47910. """
  47911. Python implementation of pdf_dict_putl(fz_context *ctx,
  47912. pdf_obj *obj, pdf_obj *val, ...) because SWIG doesn't
  47913. handle variadic args. Each item in `tail` should
  47914. be a SWIG wrapper for a `PdfObj`.
  47915. """
  47916. if pdf_is_indirect( obj):
  47917. obj = pdf_resolve_indirect_chain( obj)
  47918. if not pdf_is_dict( obj):
  47919. raise Exception(f'not a dict: {obj}')
  47920. if not tail:
  47921. return
  47922. doc = pdf_get_bound_document( obj)
  47923. for i, key in enumerate( tail[:-1]):
  47924. assert isinstance( key, PdfObj), f'item {i} in `tail` should be a PdfObj but is a {type(key)}.'
  47925. next_obj = pdf_dict_get( obj, key)
  47926. if not next_obj.m_internal:
  47927. # We have to create entries
  47928. next_obj = pdf_new_dict( doc, 1)
  47929. pdf_dict_put( obj, key, next_obj)
  47930. obj = next_obj
  47931. key = tail[-1]
  47932. pdf_dict_put( obj, key, val)
  47933. PdfObj.pdf_dict_putl = pdf_dict_putl
  47934. def pdf_dict_putl_drop(obj, *tail):
  47935. raise Exception('mupdf.pdf_dict_putl_drop() is unsupported and unnecessary in Python because reference counting is automatic. Instead use mupdf.pdf_dict_putl().')
  47936. PdfObj.pdf_dict_putl_drop = pdf_dict_putl_drop
  47937. def ll_pdf_set_annot_color(annot, color):
  47938. """
  47939. Low-level Python implementation of pdf_set_annot_color()
  47940. using ll_pdf_set_annot_color2().
  47941. """
  47942. if isinstance(color, float):
  47943. ll_pdf_set_annot_color2(annot, 1, color, 0, 0, 0)
  47944. elif len(color) == 1:
  47945. ll_pdf_set_annot_color2(annot, 1, color[0], 0, 0, 0)
  47946. elif len(color) == 2:
  47947. ll_pdf_set_annot_color2(annot, 2, color[0], color[1], 0, 0)
  47948. elif len(color) == 3:
  47949. ll_pdf_set_annot_color2(annot, 3, color[0], color[1], color[2], 0)
  47950. elif len(color) == 4:
  47951. ll_pdf_set_annot_color2(annot, 4, color[0], color[1], color[2], color[3])
  47952. else:
  47953. raise Exception( f'Unexpected color should be float or list of 1-4 floats: {color}')
  47954. def pdf_set_annot_color(self, color):
  47955. return ll_pdf_set_annot_color(self.m_internal, color)
  47956. PdfAnnot.pdf_set_annot_color = pdf_set_annot_color
  47957. def ll_pdf_set_annot_interior_color(annot, color):
  47958. """
  47959. Low-level Python version of pdf_set_annot_color() using
  47960. pdf_set_annot_color2().
  47961. """
  47962. if isinstance(color, float):
  47963. ll_pdf_set_annot_interior_color2(annot, 1, color, 0, 0, 0)
  47964. elif len(color) == 1:
  47965. ll_pdf_set_annot_interior_color2(annot, 1, color[0], 0, 0, 0)
  47966. elif len(color) == 2:
  47967. ll_pdf_set_annot_interior_color2(annot, 2, color[0], color[1], 0, 0)
  47968. elif len(color) == 3:
  47969. ll_pdf_set_annot_interior_color2(annot, 3, color[0], color[1], color[2], 0)
  47970. elif len(color) == 4:
  47971. ll_pdf_set_annot_interior_color2(annot, 4, color[0], color[1], color[2], color[3])
  47972. else:
  47973. raise Exception( f'Unexpected color should be float or list of 1-4 floats: {color}')
  47974. def pdf_set_annot_interior_color(self, color):
  47975. """
  47976. Python version of pdf_set_annot_color() using
  47977. pdf_set_annot_color2().
  47978. """
  47979. return ll_pdf_set_annot_interior_color(self.m_internal, color)
  47980. PdfAnnot.pdf_set_annot_interior_color = pdf_set_annot_interior_color
  47981. def ll_fz_fill_text( dev, text, ctm, colorspace, color, alpha, color_params):
  47982. """
  47983. Low-level Python version of fz_fill_text() taking list/tuple for `color`.
  47984. """
  47985. color = tuple(color) + (0,) * (4-len(color))
  47986. assert len(color) == 4, f'color not len 4: len={len(color)}: {color}'
  47987. return ll_fz_fill_text2(dev, text, ctm, colorspace, *color, alpha, color_params)
  47988. def fz_fill_text(dev, text, ctm, colorspace, color, alpha, color_params):
  47989. """
  47990. Python version of fz_fill_text() taking list/tuple for `color`.
  47991. """
  47992. return ll_fz_fill_text(
  47993. dev.m_internal,
  47994. text.m_internal,
  47995. ctm.internal(),
  47996. colorspace.m_internal,
  47997. color,
  47998. alpha,
  47999. color_params.internal(),
  48000. )
  48001. FzDevice.fz_fill_text = fz_fill_text
  48002. # Override mupdf_convert_color() to return (rgb0, rgb1, rgb2, rgb3).
  48003. def ll_fz_convert_color( ss, sv, ds, is_, params):
  48004. """
  48005. Low-level Python version of fz_convert_color().
  48006. `sv` should be a float or list of 1-4 floats or a SWIG
  48007. representation of a float*.
  48008. Returns (dv0, dv1, dv2, dv3).
  48009. """
  48010. dv = fz_convert_color2_v()
  48011. if isinstance( sv, float):
  48012. ll_fz_convert_color2( ss, sv, 0.0, 0.0, 0.0, ds, dv, is_, params)
  48013. elif isinstance( sv, (tuple, list)):
  48014. sv2 = tuple(sv) + (0,) * (4-len(sv))
  48015. ll_fz_convert_color2( ss, *sv2, ds, dv, is_, params)
  48016. else:
  48017. # Assume `sv` is SWIG representation of a `float*`.
  48018. ll_fz_convert_color2( ss, sv, ds, dv, is_, params)
  48019. return dv.v0, dv.v1, dv.v2, dv.v3
  48020. def fz_convert_color( ss, sv, ds, is_, params):
  48021. """
  48022. Python version of fz_convert_color().
  48023. `sv` should be a float or list of 1-4 floats or a SWIG
  48024. representation of a float*.
  48025. Returns (dv0, dv1, dv2, dv3).
  48026. """
  48027. return ll_fz_convert_color( ss.m_internal, sv, ds.m_internal, is_.m_internal, params.internal())
  48028. FzColorspace.fz_convert_color = fz_convert_color
  48029. # Override fz_set_warning_callback() and
  48030. # fz_set_error_callback() to use Python classes derived from
  48031. # our SWIG Director class DiagnosticCallback (defined in C), so
  48032. # that fnptrs can call Python code.
  48033. #
  48034. # We store DiagnosticCallbackPython instances in these
  48035. # globals to ensure they continue to exist after
  48036. # set_diagnostic_callback() returns.
  48037. #
  48038. set_warning_callback_s = None
  48039. set_error_callback_s = None
  48040. # Override set_error_callback().
  48041. class DiagnosticCallbackPython( DiagnosticCallback):
  48042. """
  48043. Overrides Director class DiagnosticCallback's virtual
  48044. `_print()` method in Python.
  48045. """
  48046. def __init__( self, description, printfn):
  48047. super().__init__( description)
  48048. self.printfn = printfn
  48049. if g_mupdf_trace_director:
  48050. log( f'DiagnosticCallbackPython[{self.m_description}].__init__() self={self!r} printfn={printfn!r}')
  48051. def __del__( self):
  48052. if g_mupdf_trace_director:
  48053. log( f'DiagnosticCallbackPython[{self.m_description}].__del__() destructor called.')
  48054. def _print( self, message):
  48055. if g_mupdf_trace_director:
  48056. log( f'DiagnosticCallbackPython[{self.m_description}]._print(): Calling self.printfn={self.printfn!r} with message={message!r}')
  48057. try:
  48058. self.printfn( message)
  48059. except Exception as e:
  48060. # This shouldn't happen, so always output a diagnostic.
  48061. log( f'DiagnosticCallbackPython[{self.m_description}]._print(): Warning: exception from self.printfn={self.printfn!r}: e={e!r}')
  48062. # Calling `raise` here serves to test
  48063. # `DiagnosticCallback()`'s swallowing of what will
  48064. # be a C++ exception. But we could swallow the
  48065. # exception here instead.
  48066. raise
  48067. def set_diagnostic_callback( description, printfn):
  48068. if g_mupdf_trace_director:
  48069. log( f'set_diagnostic_callback() description={description!r} printfn={printfn!r}')
  48070. if printfn:
  48071. ret = DiagnosticCallbackPython( description, printfn)
  48072. return ret
  48073. else:
  48074. if g_mupdf_trace_director:
  48075. log( f'Calling ll_fz_set_{description}_callback() with (None, None)')
  48076. if description == 'error':
  48077. ll_fz_set_error_callback( None, None)
  48078. elif description == 'warning':
  48079. ll_fz_set_warning_callback( None, None)
  48080. else:
  48081. assert 0, f'Unrecognised description={description!r}'
  48082. return None
  48083. def fz_set_error_callback( printfn):
  48084. global set_error_callback_s
  48085. set_error_callback_s = set_diagnostic_callback( 'error', printfn)
  48086. def fz_set_warning_callback( printfn):
  48087. global set_warning_callback_s
  48088. set_warning_callback_s = set_diagnostic_callback( 'warning', printfn)
  48089. # Direct access to fz_pixmap samples.
  48090. def ll_fz_pixmap_samples_memoryview( pixmap):
  48091. """
  48092. Returns a writable Python `memoryview` for a `fz_pixmap`.
  48093. """
  48094. assert isinstance( pixmap, fz_pixmap)
  48095. ret = python_memoryview_from_memory(
  48096. ll_fz_pixmap_samples( pixmap),
  48097. ll_fz_pixmap_stride( pixmap) * ll_fz_pixmap_height( pixmap),
  48098. 1, # writable
  48099. )
  48100. return ret
  48101. def fz_pixmap_samples_memoryview( pixmap):
  48102. """
  48103. Returns a writable Python `memoryview` for a `FzPixmap`.
  48104. """
  48105. return ll_fz_pixmap_samples_memoryview( pixmap.m_internal)
  48106. FzPixmap.fz_pixmap_samples_memoryview = fz_pixmap_samples_memoryview
  48107. # Avoid potential unsafe use of variadic args by forcing a
  48108. # single arg and escaping all '%' characters. (Passing ('%s',
  48109. # text) does not work - results in "(null)" being output.)
  48110. #
  48111. ll_fz_warn_original = ll_fz_warn
  48112. def ll_fz_warn( text):
  48113. assert isinstance( text, str), f'text={text!r} str={str!r}'
  48114. text = text.replace( '%', '%%')
  48115. return ll_fz_warn_original( text)
  48116. fz_warn = ll_fz_warn
  48117. # Force use of pdf_load_field_name2() instead of
  48118. # pdf_load_field_name() because the latter returns a char*
  48119. # buffer that must be freed by the caller.
  48120. ll_pdf_load_field_name = ll_pdf_load_field_name2
  48121. pdf_load_field_name = pdf_load_field_name2
  48122. PdfObj.pdf_load_field_name = pdf_load_field_name
  48123. # It's important that when we create class derived
  48124. # from StoryPositionsCallback, we ensure that
  48125. # StoryPositionsCallback's constructor is called. Otherwise
  48126. # the new instance doesn't seem to be an instance of
  48127. # StoryPositionsCallback.
  48128. #
  48129. class StoryPositionsCallback_python( StoryPositionsCallback):
  48130. def __init__( self, python_callback):
  48131. super().__init__()
  48132. self.python_callback = python_callback
  48133. def call( self, position):
  48134. self.python_callback( position)
  48135. ll_fz_story_positions_orig = ll_fz_story_positions
  48136. def ll_fz_story_positions( story, python_callback):
  48137. """
  48138. Custom replacement for `ll_fz_story_positions()` that takes
  48139. a Python callable `python_callback`.
  48140. """
  48141. #log( f'll_fz_story_positions() type(story)={type(story)!r} type(python_callback)={type(python_callback)!r}')
  48142. python_callback_instance = StoryPositionsCallback_python( python_callback)
  48143. ll_fz_story_positions_director( story, python_callback_instance)
  48144. def fz_story_positions( story, python_callback):
  48145. #log( f'fz_story_positions() type(story)={type(story)!r} type(python_callback)={type(python_callback)!r}')
  48146. assert isinstance( story, FzStory)
  48147. assert callable( python_callback)
  48148. def python_callback2( position):
  48149. position2 = FzStoryElementPosition( position)
  48150. python_callback( position2)
  48151. ll_fz_story_positions( story.m_internal, python_callback2)
  48152. FzStory.fz_story_positions = fz_story_positions
  48153. # Monkey-patch `FzDocumentWriter.__init__()` to set `self._out`
  48154. # to any `FzOutput2` arg. This ensures that the Python part of
  48155. # the derived `FzOutput2` instance is kept alive for use by the
  48156. # `FzDocumentWriter`, otherwise Python can delete it, then get
  48157. # a SEGV if C++ tries to call the derived Python methods.
  48158. #
  48159. # [We don't patch equivalent class-aware functions such
  48160. # as `fz_new_pdf_writer_with_output()` because they are
  48161. # not available to C++/Python, because FzDocumentWriter is
  48162. # non-copyable.]
  48163. #
  48164. FzDocumentWriter__init__0 = FzDocumentWriter.__init__
  48165. def FzDocumentWriter__init__1(self, *args):
  48166. out = None
  48167. for arg in args:
  48168. if isinstance( arg, FzOutput2):
  48169. assert not out, "More than one FzOutput2 passed to FzDocumentWriter.__init__()"
  48170. out = arg
  48171. if out is not None:
  48172. self._out = out
  48173. return FzDocumentWriter__init__0(self, *args)
  48174. FzDocumentWriter.__init__ = FzDocumentWriter__init__1
  48175. # Create class derived from
  48176. # fz_install_load_system_font_funcs_args class wrapper with
  48177. # overrides of the virtual functions to allow calling of Python
  48178. # callbacks.
  48179. #
  48180. class fz_install_load_system_font_funcs_args3(FzInstallLoadSystemFontFuncsArgs2):
  48181. """
  48182. Class derived from Swig Director class
  48183. fz_install_load_system_font_funcs_args2, to allow
  48184. implementation of fz_install_load_system_font_funcs with
  48185. Python callbacks.
  48186. """
  48187. def __init__(self, f=None, f_cjk=None, f_fallback=None):
  48188. super().__init__()
  48189. self.f3 = f
  48190. self.f_cjk3 = f_cjk
  48191. self.f_fallback3 = f_fallback
  48192. self.use_virtual_f(True if f else False)
  48193. self.use_virtual_f_cjk(True if f_cjk else False)
  48194. self.use_virtual_f_fallback(True if f_fallback else False)
  48195. def ret_font(self, font):
  48196. if font is None:
  48197. return None
  48198. elif isinstance(font, FzFont):
  48199. return ll_fz_keep_font(font.m_internal)
  48200. elif isinstance(font, fz_font):
  48201. return font
  48202. else:
  48203. assert 0, f'Expected FzFont or fz_font, but fz_install_load_system_font_funcs() callback returned {type(font)=}'
  48204. def f(self, ctx, name, bold, italic, needs_exact_metrics):
  48205. font = self.f3(name, bold, italic, needs_exact_metrics)
  48206. return self.ret_font(font)
  48207. def f_cjk(self, ctx, name, ordering, serif):
  48208. font = self.f_cjk3(name, ordering, serif)
  48209. return self.ret_font(font)
  48210. def f_fallback(self, ctx, script, language, serif, bold, italic):
  48211. font = self.f_fallback3(script, language, serif, bold, italic)
  48212. return self.ret_font(font)
  48213. # We store the most recently created
  48214. # fz_install_load_system_font_funcs_args in this global so that
  48215. # it is not cleaned up by Python.
  48216. g_fz_install_load_system_font_funcs_args = None
  48217. def fz_install_load_system_font_funcs(f=None, f_cjk=None, f_fallback=None):
  48218. """
  48219. Python override for MuPDF
  48220. fz_install_load_system_font_funcs() using Swig Director
  48221. support. Python callbacks are not passed a `ctx` arg, and
  48222. can return None, a mupdf.fz_font or a mupdf.FzFont.
  48223. """
  48224. global g_fz_install_load_system_font_funcs_args
  48225. g_fz_install_load_system_font_funcs_args = fz_install_load_system_font_funcs_args3(
  48226. f,
  48227. f_cjk,
  48228. f_fallback,
  48229. )
  48230. fz_install_load_system_font_funcs2(g_fz_install_load_system_font_funcs_args)
  48231. Py_LIMITED_API = '0x03090000'
  48232. FzLink.__iter__ = lambda self: IteratorWrap( self)
  48233. FzStextBlock.__iter__ = lambda self: IteratorWrap( self)
  48234. FzStextLine.__iter__ = lambda self: IteratorWrap( self)
  48235. FzStextPage.__iter__ = lambda self: IteratorWrap( self)
  48236. fz_aa_context.__str__ = lambda s: to_string_fz_aa_context(s)
  48237. fz_aa_context.__repr__ = lambda s: to_string_fz_aa_context(s)
  48238. fz_color_params.__str__ = lambda s: to_string_fz_color_params(s)
  48239. fz_color_params.__repr__ = lambda s: to_string_fz_color_params(s)
  48240. fz_cookie.__str__ = lambda s: to_string_fz_cookie(s)
  48241. fz_cookie.__repr__ = lambda s: to_string_fz_cookie(s)
  48242. fz_draw_options.__str__ = lambda s: to_string_fz_draw_options(s)
  48243. fz_draw_options.__repr__ = lambda s: to_string_fz_draw_options(s)
  48244. fz_install_load_system_font_funcs_args.__str__ = lambda s: to_string_fz_install_load_system_font_funcs_args(s)
  48245. fz_install_load_system_font_funcs_args.__repr__ = lambda s: to_string_fz_install_load_system_font_funcs_args(s)
  48246. fz_irect.__str__ = lambda s: to_string_fz_irect(s)
  48247. fz_irect.__repr__ = lambda s: to_string_fz_irect(s)
  48248. fz_location.__str__ = lambda s: to_string_fz_location(s)
  48249. fz_location.__repr__ = lambda s: to_string_fz_location(s)
  48250. fz_matrix.__str__ = lambda s: to_string_fz_matrix(s)
  48251. fz_matrix.__repr__ = lambda s: to_string_fz_matrix(s)
  48252. fz_md5.__str__ = lambda s: to_string_fz_md5(s)
  48253. fz_md5.__repr__ = lambda s: to_string_fz_md5(s)
  48254. fz_pdfocr_options.__str__ = lambda s: to_string_fz_pdfocr_options(s)
  48255. fz_pdfocr_options.__repr__ = lambda s: to_string_fz_pdfocr_options(s)
  48256. fz_point.__str__ = lambda s: to_string_fz_point(s)
  48257. fz_point.__repr__ = lambda s: to_string_fz_point(s)
  48258. fz_pwg_options.__str__ = lambda s: to_string_fz_pwg_options(s)
  48259. fz_pwg_options.__repr__ = lambda s: to_string_fz_pwg_options(s)
  48260. fz_quad.__str__ = lambda s: to_string_fz_quad(s)
  48261. fz_quad.__repr__ = lambda s: to_string_fz_quad(s)
  48262. fz_rect.__str__ = lambda s: to_string_fz_rect(s)
  48263. fz_rect.__repr__ = lambda s: to_string_fz_rect(s)
  48264. fz_stext_options.__str__ = lambda s: to_string_fz_stext_options(s)
  48265. fz_stext_options.__repr__ = lambda s: to_string_fz_stext_options(s)
  48266. fz_story_element_position.__str__ = lambda s: to_string_fz_story_element_position(s)
  48267. fz_story_element_position.__repr__ = lambda s: to_string_fz_story_element_position(s)
  48268. fz_transition.__str__ = lambda s: to_string_fz_transition(s)
  48269. fz_transition.__repr__ = lambda s: to_string_fz_transition(s)
  48270. pdf_clean_options.__str__ = lambda s: to_string_pdf_clean_options(s)
  48271. pdf_clean_options.__repr__ = lambda s: to_string_pdf_clean_options(s)
  48272. pdf_filter_factory.__str__ = lambda s: to_string_pdf_filter_factory(s)
  48273. pdf_filter_factory.__repr__ = lambda s: to_string_pdf_filter_factory(s)
  48274. pdf_filter_options.__str__ = lambda s: to_string_pdf_filter_options(s)
  48275. pdf_filter_options.__repr__ = lambda s: to_string_pdf_filter_options(s)
  48276. pdf_image_rewriter_options.__str__ = lambda s: to_string_pdf_image_rewriter_options(s)
  48277. pdf_image_rewriter_options.__repr__ = lambda s: to_string_pdf_image_rewriter_options(s)
  48278. pdf_layer_config.__str__ = lambda s: to_string_pdf_layer_config(s)
  48279. pdf_layer_config.__repr__ = lambda s: to_string_pdf_layer_config(s)
  48280. pdf_layer_config_ui.__str__ = lambda s: to_string_pdf_layer_config_ui(s)
  48281. pdf_layer_config_ui.__repr__ = lambda s: to_string_pdf_layer_config_ui(s)
  48282. pdf_recolor_options.__str__ = lambda s: to_string_pdf_recolor_options(s)
  48283. pdf_recolor_options.__repr__ = lambda s: to_string_pdf_recolor_options(s)
  48284. pdf_redact_options.__str__ = lambda s: to_string_pdf_redact_options(s)
  48285. pdf_redact_options.__repr__ = lambda s: to_string_pdf_redact_options(s)
  48286. pdf_sanitize_filter_options.__str__ = lambda s: to_string_pdf_sanitize_filter_options(s)
  48287. pdf_sanitize_filter_options.__repr__ = lambda s: to_string_pdf_sanitize_filter_options(s)
  48288. pdf_write_options.__str__ = lambda s: to_string_pdf_write_options(s)
  48289. pdf_write_options.__repr__ = lambda s: to_string_pdf_write_options(s)
  48290. FzAaContext.__str__ = lambda self: self.to_string()
  48291. FzAaContext.__repr__ = lambda self: self.to_string()
  48292. FzColorParams.__str__ = lambda self: self.to_string()
  48293. FzColorParams.__repr__ = lambda self: self.to_string()
  48294. FzCookie.__str__ = lambda self: self.to_string()
  48295. FzCookie.__repr__ = lambda self: self.to_string()
  48296. FzDrawOptions.__str__ = lambda self: self.to_string()
  48297. FzDrawOptions.__repr__ = lambda self: self.to_string()
  48298. FzInstallLoadSystemFontFuncsArgs.__str__ = lambda self: self.to_string()
  48299. FzInstallLoadSystemFontFuncsArgs.__repr__ = lambda self: self.to_string()
  48300. FzIrect.__str__ = lambda self: self.to_string()
  48301. FzIrect.__repr__ = lambda self: self.to_string()
  48302. FzLocation.__str__ = lambda self: self.to_string()
  48303. FzLocation.__repr__ = lambda self: self.to_string()
  48304. FzMatrix.__str__ = lambda self: self.to_string()
  48305. FzMatrix.__repr__ = lambda self: self.to_string()
  48306. FzMd5.__str__ = lambda self: self.to_string()
  48307. FzMd5.__repr__ = lambda self: self.to_string()
  48308. FzPdfocrOptions.__str__ = lambda self: self.to_string()
  48309. FzPdfocrOptions.__repr__ = lambda self: self.to_string()
  48310. FzPoint.__str__ = lambda self: self.to_string()
  48311. FzPoint.__repr__ = lambda self: self.to_string()
  48312. FzPwgOptions.__str__ = lambda self: self.to_string()
  48313. FzPwgOptions.__repr__ = lambda self: self.to_string()
  48314. FzQuad.__str__ = lambda self: self.to_string()
  48315. FzQuad.__repr__ = lambda self: self.to_string()
  48316. FzRect.__str__ = lambda self: self.to_string()
  48317. FzRect.__repr__ = lambda self: self.to_string()
  48318. FzStextOptions.__str__ = lambda self: self.to_string()
  48319. FzStextOptions.__repr__ = lambda self: self.to_string()
  48320. FzStoryElementPosition.__str__ = lambda self: self.to_string()
  48321. FzStoryElementPosition.__repr__ = lambda self: self.to_string()
  48322. FzTransition.__str__ = lambda self: self.to_string()
  48323. FzTransition.__repr__ = lambda self: self.to_string()
  48324. PdfCleanOptions.__str__ = lambda self: self.to_string()
  48325. PdfCleanOptions.__repr__ = lambda self: self.to_string()
  48326. PdfFilterFactory.__str__ = lambda self: self.to_string()
  48327. PdfFilterFactory.__repr__ = lambda self: self.to_string()
  48328. PdfFilterOptions.__str__ = lambda self: self.to_string()
  48329. PdfFilterOptions.__repr__ = lambda self: self.to_string()
  48330. PdfImageRewriterOptions.__str__ = lambda self: self.to_string()
  48331. PdfImageRewriterOptions.__repr__ = lambda self: self.to_string()
  48332. PdfLayerConfig.__str__ = lambda self: self.to_string()
  48333. PdfLayerConfig.__repr__ = lambda self: self.to_string()
  48334. PdfLayerConfigUi.__str__ = lambda self: self.to_string()
  48335. PdfLayerConfigUi.__repr__ = lambda self: self.to_string()
  48336. PdfRecolorOptions.__str__ = lambda self: self.to_string()
  48337. PdfRecolorOptions.__repr__ = lambda self: self.to_string()
  48338. PdfRedactOptions.__str__ = lambda self: self.to_string()
  48339. PdfRedactOptions.__repr__ = lambda self: self.to_string()
  48340. PdfSanitizeFilterOptions.__str__ = lambda self: self.to_string()
  48341. PdfSanitizeFilterOptions.__repr__ = lambda self: self.to_string()
  48342. PdfWriteOptions.__str__ = lambda self: self.to_string()
  48343. PdfWriteOptions.__repr__ = lambda self: self.to_string()
  48344. PDF_ENUM_NAME_1_2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_1_2))
  48345. PDF_ENUM_NAME_1_5 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_1_5))
  48346. PDF_ENUM_NAME_3D = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_3D))
  48347. PDF_ENUM_NAME_A = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_A))
  48348. PDF_ENUM_NAME_A85 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_A85))
  48349. PDF_ENUM_NAME_AA = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AA))
  48350. PDF_ENUM_NAME_AC = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AC))
  48351. PDF_ENUM_NAME_AESV2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AESV2))
  48352. PDF_ENUM_NAME_AESV3 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AESV3))
  48353. PDF_ENUM_NAME_AF = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AF))
  48354. PDF_ENUM_NAME_AFRelationship = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AFRelationship))
  48355. PDF_ENUM_NAME_AHx = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AHx))
  48356. PDF_ENUM_NAME_AP = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AP))
  48357. PDF_ENUM_NAME_AS = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AS))
  48358. PDF_ENUM_NAME_ASCII85Decode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ASCII85Decode))
  48359. PDF_ENUM_NAME_ASCIIHexDecode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ASCIIHexDecode))
  48360. PDF_ENUM_NAME_AbsoluteColorimetric = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AbsoluteColorimetric))
  48361. PDF_ENUM_NAME_AcroForm = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AcroForm))
  48362. PDF_ENUM_NAME_Action = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Action))
  48363. PDF_ENUM_NAME_ActualText = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ActualText))
  48364. PDF_ENUM_NAME_Adobe_PPKLite = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Adobe_PPKLite))
  48365. PDF_ENUM_NAME_All = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_All))
  48366. PDF_ENUM_NAME_AllOff = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AllOff))
  48367. PDF_ENUM_NAME_AllOn = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AllOn))
  48368. PDF_ENUM_NAME_Alpha = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Alpha))
  48369. PDF_ENUM_NAME_Alt = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Alt))
  48370. PDF_ENUM_NAME_Alternate = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Alternate))
  48371. PDF_ENUM_NAME_Alternative = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Alternative))
  48372. PDF_ENUM_NAME_Annot = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Annot))
  48373. PDF_ENUM_NAME_Annots = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Annots))
  48374. PDF_ENUM_NAME_AnyOff = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AnyOff))
  48375. PDF_ENUM_NAME_App = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_App))
  48376. PDF_ENUM_NAME_Approved = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Approved))
  48377. PDF_ENUM_NAME_Art = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Art))
  48378. PDF_ENUM_NAME_ArtBox = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ArtBox))
  48379. PDF_ENUM_NAME_Artifact = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Artifact))
  48380. PDF_ENUM_NAME_AsIs = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AsIs))
  48381. PDF_ENUM_NAME_Ascent = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Ascent))
  48382. PDF_ENUM_NAME_Aside = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Aside))
  48383. PDF_ENUM_NAME_AuthEvent = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_AuthEvent))
  48384. PDF_ENUM_NAME_Author = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Author))
  48385. PDF_ENUM_NAME_B = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_B))
  48386. PDF_ENUM_NAME_BBox = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BBox))
  48387. PDF_ENUM_NAME_BC = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BC))
  48388. PDF_ENUM_NAME_BE = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BE))
  48389. PDF_ENUM_NAME_BG = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BG))
  48390. PDF_ENUM_NAME_BM = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BM))
  48391. PDF_ENUM_NAME_BPC = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BPC))
  48392. PDF_ENUM_NAME_BS = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BS))
  48393. PDF_ENUM_NAME_Background = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Background))
  48394. PDF_ENUM_NAME_BaseEncoding = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BaseEncoding))
  48395. PDF_ENUM_NAME_BaseFont = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BaseFont))
  48396. PDF_ENUM_NAME_BaseState = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BaseState))
  48397. PDF_ENUM_NAME_BibEntry = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BibEntry))
  48398. PDF_ENUM_NAME_BitsPerComponent = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BitsPerComponent))
  48399. PDF_ENUM_NAME_BitsPerCoordinate = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BitsPerCoordinate))
  48400. PDF_ENUM_NAME_BitsPerFlag = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BitsPerFlag))
  48401. PDF_ENUM_NAME_BitsPerSample = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BitsPerSample))
  48402. PDF_ENUM_NAME_BlackIs1 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BlackIs1))
  48403. PDF_ENUM_NAME_BlackPoint = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BlackPoint))
  48404. PDF_ENUM_NAME_BleedBox = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BleedBox))
  48405. PDF_ENUM_NAME_Blinds = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Blinds))
  48406. PDF_ENUM_NAME_BlockQuote = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BlockQuote))
  48407. PDF_ENUM_NAME_Border = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Border))
  48408. PDF_ENUM_NAME_Bounds = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Bounds))
  48409. PDF_ENUM_NAME_Box = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Box))
  48410. PDF_ENUM_NAME_Br = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Br))
  48411. PDF_ENUM_NAME_BrotliDecode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_BrotliDecode))
  48412. PDF_ENUM_NAME_Bt = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Bt))
  48413. PDF_ENUM_NAME_Btn = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Btn))
  48414. PDF_ENUM_NAME_Butt = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Butt))
  48415. PDF_ENUM_NAME_ByteRange = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ByteRange))
  48416. PDF_ENUM_NAME_C = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_C))
  48417. PDF_ENUM_NAME_C0 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_C0))
  48418. PDF_ENUM_NAME_C1 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_C1))
  48419. PDF_ENUM_NAME_CA = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CA))
  48420. PDF_ENUM_NAME_CCF = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CCF))
  48421. PDF_ENUM_NAME_CCITTFaxDecode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CCITTFaxDecode))
  48422. PDF_ENUM_NAME_CF = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CF))
  48423. PDF_ENUM_NAME_CFM = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CFM))
  48424. PDF_ENUM_NAME_CI = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CI))
  48425. PDF_ENUM_NAME_CIDFontType0 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CIDFontType0))
  48426. PDF_ENUM_NAME_CIDFontType0C = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CIDFontType0C))
  48427. PDF_ENUM_NAME_CIDFontType2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CIDFontType2))
  48428. PDF_ENUM_NAME_CIDSystemInfo = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CIDSystemInfo))
  48429. PDF_ENUM_NAME_CIDToGIDMap = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CIDToGIDMap))
  48430. PDF_ENUM_NAME_CL = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CL))
  48431. PDF_ENUM_NAME_CMYK = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CMYK))
  48432. PDF_ENUM_NAME_CO = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CO))
  48433. PDF_ENUM_NAME_CP = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CP))
  48434. PDF_ENUM_NAME_CS = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CS))
  48435. PDF_ENUM_NAME_CalCMYK = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CalCMYK))
  48436. PDF_ENUM_NAME_CalGray = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CalGray))
  48437. PDF_ENUM_NAME_CalRGB = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CalRGB))
  48438. PDF_ENUM_NAME_Cap = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Cap))
  48439. PDF_ENUM_NAME_CapHeight = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CapHeight))
  48440. PDF_ENUM_NAME_Caption = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Caption))
  48441. PDF_ENUM_NAME_Caret = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Caret))
  48442. PDF_ENUM_NAME_Catalog = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Catalog))
  48443. PDF_ENUM_NAME_Cert = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Cert))
  48444. PDF_ENUM_NAME_Ch = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Ch))
  48445. PDF_ENUM_NAME_Changes = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Changes))
  48446. PDF_ENUM_NAME_CharProcs = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CharProcs))
  48447. PDF_ENUM_NAME_CheckSum = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CheckSum))
  48448. PDF_ENUM_NAME_Circle = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Circle))
  48449. PDF_ENUM_NAME_ClosedArrow = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ClosedArrow))
  48450. PDF_ENUM_NAME_Code = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Code))
  48451. PDF_ENUM_NAME_Collection = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Collection))
  48452. PDF_ENUM_NAME_ColorSpace = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ColorSpace))
  48453. PDF_ENUM_NAME_ColorTransform = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ColorTransform))
  48454. PDF_ENUM_NAME_Colorants = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Colorants))
  48455. PDF_ENUM_NAME_Colors = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Colors))
  48456. PDF_ENUM_NAME_Columns = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Columns))
  48457. PDF_ENUM_NAME_Confidential = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Confidential))
  48458. PDF_ENUM_NAME_Configs = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Configs))
  48459. PDF_ENUM_NAME_ContactInfo = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ContactInfo))
  48460. PDF_ENUM_NAME_Contents = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Contents))
  48461. PDF_ENUM_NAME_Coords = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Coords))
  48462. PDF_ENUM_NAME_Count = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Count))
  48463. PDF_ENUM_NAME_Cover = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Cover))
  48464. PDF_ENUM_NAME_CreationDate = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CreationDate))
  48465. PDF_ENUM_NAME_Creator = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Creator))
  48466. PDF_ENUM_NAME_CropBox = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_CropBox))
  48467. PDF_ENUM_NAME_Crypt = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Crypt))
  48468. PDF_ENUM_NAME_D = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_D))
  48469. PDF_ENUM_NAME_DA = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DA))
  48470. PDF_ENUM_NAME_DC = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DC))
  48471. PDF_ENUM_NAME_DCT = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DCT))
  48472. PDF_ENUM_NAME_DCTDecode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DCTDecode))
  48473. PDF_ENUM_NAME_DL = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DL))
  48474. PDF_ENUM_NAME_DOS = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DOS))
  48475. PDF_ENUM_NAME_DP = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DP))
  48476. PDF_ENUM_NAME_DR = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DR))
  48477. PDF_ENUM_NAME_DS = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DS))
  48478. PDF_ENUM_NAME_DV = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DV))
  48479. PDF_ENUM_NAME_DW = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DW))
  48480. PDF_ENUM_NAME_DW2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DW2))
  48481. PDF_ENUM_NAME_DamagedRowsBeforeError = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DamagedRowsBeforeError))
  48482. PDF_ENUM_NAME_Data = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Data))
  48483. PDF_ENUM_NAME_Date = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Date))
  48484. PDF_ENUM_NAME_Decode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Decode))
  48485. PDF_ENUM_NAME_DecodeParms = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DecodeParms))
  48486. PDF_ENUM_NAME_Default = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Default))
  48487. PDF_ENUM_NAME_DefaultCMYK = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DefaultCMYK))
  48488. PDF_ENUM_NAME_DefaultGray = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DefaultGray))
  48489. PDF_ENUM_NAME_DefaultRGB = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DefaultRGB))
  48490. PDF_ENUM_NAME_Departmental = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Departmental))
  48491. PDF_ENUM_NAME_Desc = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Desc))
  48492. PDF_ENUM_NAME_DescendantFonts = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DescendantFonts))
  48493. PDF_ENUM_NAME_Descent = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Descent))
  48494. PDF_ENUM_NAME_Design = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Design))
  48495. PDF_ENUM_NAME_Dest = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Dest))
  48496. PDF_ENUM_NAME_DestOutputProfile = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DestOutputProfile))
  48497. PDF_ENUM_NAME_Dests = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Dests))
  48498. PDF_ENUM_NAME_DeviceCMYK = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DeviceCMYK))
  48499. PDF_ENUM_NAME_DeviceGray = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DeviceGray))
  48500. PDF_ENUM_NAME_DeviceN = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DeviceN))
  48501. PDF_ENUM_NAME_DeviceRGB = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DeviceRGB))
  48502. PDF_ENUM_NAME_Di = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Di))
  48503. PDF_ENUM_NAME_Diamond = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Diamond))
  48504. PDF_ENUM_NAME_Differences = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Differences))
  48505. PDF_ENUM_NAME_DigestLocation = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DigestLocation))
  48506. PDF_ENUM_NAME_DigestMethod = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DigestMethod))
  48507. PDF_ENUM_NAME_DigestValue = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DigestValue))
  48508. PDF_ENUM_NAME_Dissolve = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Dissolve))
  48509. PDF_ENUM_NAME_Div = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Div))
  48510. PDF_ENUM_NAME_Dm = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Dm))
  48511. PDF_ENUM_NAME_DocMDP = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DocMDP))
  48512. PDF_ENUM_NAME_Document = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Document))
  48513. PDF_ENUM_NAME_DocumentFragment = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_DocumentFragment))
  48514. PDF_ENUM_NAME_Domain = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Domain))
  48515. PDF_ENUM_NAME_Draft = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Draft))
  48516. PDF_ENUM_NAME_Dur = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Dur))
  48517. PDF_ENUM_NAME_E = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_E))
  48518. PDF_ENUM_NAME_EF = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_EF))
  48519. PDF_ENUM_NAME_EarlyChange = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_EarlyChange))
  48520. PDF_ENUM_NAME_Em = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Em))
  48521. PDF_ENUM_NAME_EmbeddedFile = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_EmbeddedFile))
  48522. PDF_ENUM_NAME_EmbeddedFiles = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_EmbeddedFiles))
  48523. PDF_ENUM_NAME_Encode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Encode))
  48524. PDF_ENUM_NAME_EncodedByteAlign = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_EncodedByteAlign))
  48525. PDF_ENUM_NAME_Encoding = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Encoding))
  48526. PDF_ENUM_NAME_Encrypt = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Encrypt))
  48527. PDF_ENUM_NAME_EncryptMetadata = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_EncryptMetadata))
  48528. PDF_ENUM_NAME_EncryptedPayload = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_EncryptedPayload))
  48529. PDF_ENUM_NAME_EndOfBlock = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_EndOfBlock))
  48530. PDF_ENUM_NAME_EndOfLine = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_EndOfLine))
  48531. PDF_ENUM_NAME_Exclude = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Exclude))
  48532. PDF_ENUM_NAME_Experimental = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Experimental))
  48533. PDF_ENUM_NAME_Expired = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Expired))
  48534. PDF_ENUM_NAME_ExtGState = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ExtGState))
  48535. PDF_ENUM_NAME_Extend = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Extend))
  48536. PDF_ENUM_NAME_F = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_F))
  48537. PDF_ENUM_NAME_FENote = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FENote))
  48538. PDF_ENUM_NAME_FL = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FL))
  48539. PDF_ENUM_NAME_FRM = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FRM))
  48540. PDF_ENUM_NAME_FS = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FS))
  48541. PDF_ENUM_NAME_FT = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FT))
  48542. PDF_ENUM_NAME_Fade = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Fade))
  48543. PDF_ENUM_NAME_Ff = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Ff))
  48544. PDF_ENUM_NAME_FieldMDP = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FieldMDP))
  48545. PDF_ENUM_NAME_Fields = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Fields))
  48546. PDF_ENUM_NAME_Figure = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Figure))
  48547. PDF_ENUM_NAME_FileAttachment = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FileAttachment))
  48548. PDF_ENUM_NAME_FileSize = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FileSize))
  48549. PDF_ENUM_NAME_Filespec = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Filespec))
  48550. PDF_ENUM_NAME_Filter = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Filter))
  48551. PDF_ENUM_NAME_Final = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Final))
  48552. PDF_ENUM_NAME_Fingerprint = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Fingerprint))
  48553. PDF_ENUM_NAME_First = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_First))
  48554. PDF_ENUM_NAME_FirstChar = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FirstChar))
  48555. PDF_ENUM_NAME_FirstPage = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FirstPage))
  48556. PDF_ENUM_NAME_Fit = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Fit))
  48557. PDF_ENUM_NAME_FitB = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FitB))
  48558. PDF_ENUM_NAME_FitBH = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FitBH))
  48559. PDF_ENUM_NAME_FitBV = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FitBV))
  48560. PDF_ENUM_NAME_FitH = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FitH))
  48561. PDF_ENUM_NAME_FitR = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FitR))
  48562. PDF_ENUM_NAME_FitV = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FitV))
  48563. PDF_ENUM_NAME_Fl = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Fl))
  48564. PDF_ENUM_NAME_Flags = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Flags))
  48565. PDF_ENUM_NAME_FlateDecode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FlateDecode))
  48566. PDF_ENUM_NAME_Fly = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Fly))
  48567. PDF_ENUM_NAME_Font = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Font))
  48568. PDF_ENUM_NAME_FontBBox = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FontBBox))
  48569. PDF_ENUM_NAME_FontDescriptor = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FontDescriptor))
  48570. PDF_ENUM_NAME_FontFile = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FontFile))
  48571. PDF_ENUM_NAME_FontFile2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FontFile2))
  48572. PDF_ENUM_NAME_FontFile3 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FontFile3))
  48573. PDF_ENUM_NAME_FontMatrix = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FontMatrix))
  48574. PDF_ENUM_NAME_FontName = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FontName))
  48575. PDF_ENUM_NAME_ForComment = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ForComment))
  48576. PDF_ENUM_NAME_ForPublicRelease = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ForPublicRelease))
  48577. PDF_ENUM_NAME_Form = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Form))
  48578. PDF_ENUM_NAME_FormData = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FormData))
  48579. PDF_ENUM_NAME_FormEx = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FormEx))
  48580. PDF_ENUM_NAME_FormType = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FormType))
  48581. PDF_ENUM_NAME_Formula = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Formula))
  48582. PDF_ENUM_NAME_FreeText = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FreeText))
  48583. PDF_ENUM_NAME_FreeTextCallout = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FreeTextCallout))
  48584. PDF_ENUM_NAME_FreeTextTypeWriter = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FreeTextTypeWriter))
  48585. PDF_ENUM_NAME_Function = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Function))
  48586. PDF_ENUM_NAME_FunctionType = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_FunctionType))
  48587. PDF_ENUM_NAME_Functions = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Functions))
  48588. PDF_ENUM_NAME_G = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_G))
  48589. PDF_ENUM_NAME_GTS_PDFX = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_GTS_PDFX))
  48590. PDF_ENUM_NAME_Gamma = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Gamma))
  48591. PDF_ENUM_NAME_Glitter = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Glitter))
  48592. PDF_ENUM_NAME_GoTo = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_GoTo))
  48593. PDF_ENUM_NAME_GoToR = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_GoToR))
  48594. PDF_ENUM_NAME_Group = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Group))
  48595. PDF_ENUM_NAME_H = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_H))
  48596. PDF_ENUM_NAME_H1 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_H1))
  48597. PDF_ENUM_NAME_H2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_H2))
  48598. PDF_ENUM_NAME_H3 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_H3))
  48599. PDF_ENUM_NAME_H4 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_H4))
  48600. PDF_ENUM_NAME_H5 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_H5))
  48601. PDF_ENUM_NAME_H6 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_H6))
  48602. PDF_ENUM_NAME_Height = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Height))
  48603. PDF_ENUM_NAME_Helv = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Helv))
  48604. PDF_ENUM_NAME_Highlight = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Highlight))
  48605. PDF_ENUM_NAME_HistoryPos = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_HistoryPos))
  48606. PDF_ENUM_NAME_I = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_I))
  48607. PDF_ENUM_NAME_IC = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_IC))
  48608. PDF_ENUM_NAME_ICCBased = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ICCBased))
  48609. PDF_ENUM_NAME_ID = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ID))
  48610. PDF_ENUM_NAME_IM = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_IM))
  48611. PDF_ENUM_NAME_IRT = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_IRT))
  48612. PDF_ENUM_NAME_IT = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_IT))
  48613. PDF_ENUM_NAME_Identity = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Identity))
  48614. PDF_ENUM_NAME_Identity_H = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Identity_H))
  48615. PDF_ENUM_NAME_Identity_V = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Identity_V))
  48616. PDF_ENUM_NAME_Image = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Image))
  48617. PDF_ENUM_NAME_ImageB = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ImageB))
  48618. PDF_ENUM_NAME_ImageC = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ImageC))
  48619. PDF_ENUM_NAME_ImageI = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ImageI))
  48620. PDF_ENUM_NAME_ImageMask = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ImageMask))
  48621. PDF_ENUM_NAME_Include = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Include))
  48622. PDF_ENUM_NAME_Index = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Index))
  48623. PDF_ENUM_NAME_Indexed = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Indexed))
  48624. PDF_ENUM_NAME_Info = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Info))
  48625. PDF_ENUM_NAME_Ink = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Ink))
  48626. PDF_ENUM_NAME_InkList = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_InkList))
  48627. PDF_ENUM_NAME_Intent = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Intent))
  48628. PDF_ENUM_NAME_Interpolate = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Interpolate))
  48629. PDF_ENUM_NAME_IsMap = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_IsMap))
  48630. PDF_ENUM_NAME_ItalicAngle = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ItalicAngle))
  48631. PDF_ENUM_NAME_JBIG2Decode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_JBIG2Decode))
  48632. PDF_ENUM_NAME_JBIG2Globals = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_JBIG2Globals))
  48633. PDF_ENUM_NAME_JPXDecode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_JPXDecode))
  48634. PDF_ENUM_NAME_JS = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_JS))
  48635. PDF_ENUM_NAME_JavaScript = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_JavaScript))
  48636. PDF_ENUM_NAME_K = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_K))
  48637. PDF_ENUM_NAME_Keywords = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Keywords))
  48638. PDF_ENUM_NAME_Kids = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Kids))
  48639. PDF_ENUM_NAME_L = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_L))
  48640. PDF_ENUM_NAME_LBody = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LBody))
  48641. PDF_ENUM_NAME_LC = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LC))
  48642. PDF_ENUM_NAME_LE = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LE))
  48643. PDF_ENUM_NAME_LI = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LI))
  48644. PDF_ENUM_NAME_LJ = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LJ))
  48645. PDF_ENUM_NAME_LL = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LL))
  48646. PDF_ENUM_NAME_LLE = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LLE))
  48647. PDF_ENUM_NAME_LLO = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LLO))
  48648. PDF_ENUM_NAME_LW = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LW))
  48649. PDF_ENUM_NAME_LZ = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LZ))
  48650. PDF_ENUM_NAME_LZW = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LZW))
  48651. PDF_ENUM_NAME_LZWDecode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LZWDecode))
  48652. PDF_ENUM_NAME_Lab = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Lab))
  48653. PDF_ENUM_NAME_Label = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Label))
  48654. PDF_ENUM_NAME_Lang = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Lang))
  48655. PDF_ENUM_NAME_Last = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Last))
  48656. PDF_ENUM_NAME_LastChar = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LastChar))
  48657. PDF_ENUM_NAME_LastPage = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LastPage))
  48658. PDF_ENUM_NAME_Launch = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Launch))
  48659. PDF_ENUM_NAME_Layer = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Layer))
  48660. PDF_ENUM_NAME_Lbl = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Lbl))
  48661. PDF_ENUM_NAME_Length = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Length))
  48662. PDF_ENUM_NAME_Length1 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Length1))
  48663. PDF_ENUM_NAME_Length2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Length2))
  48664. PDF_ENUM_NAME_Length3 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Length3))
  48665. PDF_ENUM_NAME_Limits = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Limits))
  48666. PDF_ENUM_NAME_Line = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Line))
  48667. PDF_ENUM_NAME_LineArrow = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LineArrow))
  48668. PDF_ENUM_NAME_LineDimension = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_LineDimension))
  48669. PDF_ENUM_NAME_Linearized = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Linearized))
  48670. PDF_ENUM_NAME_Link = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Link))
  48671. PDF_ENUM_NAME_List = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_List))
  48672. PDF_ENUM_NAME_Location = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Location))
  48673. PDF_ENUM_NAME_Lock = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Lock))
  48674. PDF_ENUM_NAME_Locked = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Locked))
  48675. PDF_ENUM_NAME_Luminosity = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Luminosity))
  48676. PDF_ENUM_NAME_M = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_M))
  48677. PDF_ENUM_NAME_MCID = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_MCID))
  48678. PDF_ENUM_NAME_MK = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_MK))
  48679. PDF_ENUM_NAME_ML = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ML))
  48680. PDF_ENUM_NAME_MMType1 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_MMType1))
  48681. PDF_ENUM_NAME_Mac = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Mac))
  48682. PDF_ENUM_NAME_Mask = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Mask))
  48683. PDF_ENUM_NAME_Matrix = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Matrix))
  48684. PDF_ENUM_NAME_Matte = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Matte))
  48685. PDF_ENUM_NAME_MaxLen = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_MaxLen))
  48686. PDF_ENUM_NAME_MediaBox = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_MediaBox))
  48687. PDF_ENUM_NAME_Metadata = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Metadata))
  48688. PDF_ENUM_NAME_MissingWidth = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_MissingWidth))
  48689. PDF_ENUM_NAME_ModDate = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ModDate))
  48690. PDF_ENUM_NAME_Movie = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Movie))
  48691. PDF_ENUM_NAME_Msg = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Msg))
  48692. PDF_ENUM_NAME_Multiply = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Multiply))
  48693. PDF_ENUM_NAME_N = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_N))
  48694. PDF_ENUM_NAME_Name = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Name))
  48695. PDF_ENUM_NAME_Named = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Named))
  48696. PDF_ENUM_NAME_Names = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Names))
  48697. PDF_ENUM_NAME_NewWindow = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_NewWindow))
  48698. PDF_ENUM_NAME_Next = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Next))
  48699. PDF_ENUM_NAME_NextPage = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_NextPage))
  48700. PDF_ENUM_NAME_NonEFontNoWarn = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_NonEFontNoWarn))
  48701. PDF_ENUM_NAME_NonStruct = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_NonStruct))
  48702. PDF_ENUM_NAME_None = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_None))
  48703. PDF_ENUM_NAME_Normal = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Normal))
  48704. PDF_ENUM_NAME_NotApproved = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_NotApproved))
  48705. PDF_ENUM_NAME_NotForPublicRelease = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_NotForPublicRelease))
  48706. PDF_ENUM_NAME_Note = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Note))
  48707. PDF_ENUM_NAME_NumSections = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_NumSections))
  48708. PDF_ENUM_NAME_Nums = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Nums))
  48709. PDF_ENUM_NAME_O = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_O))
  48710. PDF_ENUM_NAME_OC = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OC))
  48711. PDF_ENUM_NAME_OCG = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OCG))
  48712. PDF_ENUM_NAME_OCGs = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OCGs))
  48713. PDF_ENUM_NAME_OCMD = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OCMD))
  48714. PDF_ENUM_NAME_OCProperties = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OCProperties))
  48715. PDF_ENUM_NAME_OE = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OE))
  48716. PDF_ENUM_NAME_OFF = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OFF))
  48717. PDF_ENUM_NAME_ON = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ON))
  48718. PDF_ENUM_NAME_OP = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OP))
  48719. PDF_ENUM_NAME_OPM = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OPM))
  48720. PDF_ENUM_NAME_OS = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OS))
  48721. PDF_ENUM_NAME_ObjStm = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ObjStm))
  48722. PDF_ENUM_NAME_Of = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Of))
  48723. PDF_ENUM_NAME_Off = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Off))
  48724. PDF_ENUM_NAME_Open = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Open))
  48725. PDF_ENUM_NAME_OpenArrow = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OpenArrow))
  48726. PDF_ENUM_NAME_OpenType = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OpenType))
  48727. PDF_ENUM_NAME_Opt = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Opt))
  48728. PDF_ENUM_NAME_Order = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Order))
  48729. PDF_ENUM_NAME_Ordering = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Ordering))
  48730. PDF_ENUM_NAME_Outlines = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Outlines))
  48731. PDF_ENUM_NAME_OutputCondition = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OutputCondition))
  48732. PDF_ENUM_NAME_OutputConditionIdentifier = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OutputConditionIdentifier))
  48733. PDF_ENUM_NAME_OutputIntent = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OutputIntent))
  48734. PDF_ENUM_NAME_OutputIntents = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_OutputIntents))
  48735. PDF_ENUM_NAME_P = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_P))
  48736. PDF_ENUM_NAME_PDF = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PDF))
  48737. PDF_ENUM_NAME_PS = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PS))
  48738. PDF_ENUM_NAME_Page = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Page))
  48739. PDF_ENUM_NAME_PageLabels = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PageLabels))
  48740. PDF_ENUM_NAME_PageMode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PageMode))
  48741. PDF_ENUM_NAME_Pages = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Pages))
  48742. PDF_ENUM_NAME_PaintType = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PaintType))
  48743. PDF_ENUM_NAME_Params = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Params))
  48744. PDF_ENUM_NAME_Parent = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Parent))
  48745. PDF_ENUM_NAME_ParentTree = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ParentTree))
  48746. PDF_ENUM_NAME_Part = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Part))
  48747. PDF_ENUM_NAME_Pattern = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Pattern))
  48748. PDF_ENUM_NAME_PatternType = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PatternType))
  48749. PDF_ENUM_NAME_Perceptual = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Perceptual))
  48750. PDF_ENUM_NAME_Perms = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Perms))
  48751. PDF_ENUM_NAME_PieceInfo = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PieceInfo))
  48752. PDF_ENUM_NAME_PolyLine = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PolyLine))
  48753. PDF_ENUM_NAME_PolyLineDimension = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PolyLineDimension))
  48754. PDF_ENUM_NAME_Polygon = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Polygon))
  48755. PDF_ENUM_NAME_PolygonCloud = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PolygonCloud))
  48756. PDF_ENUM_NAME_PolygonDimension = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PolygonDimension))
  48757. PDF_ENUM_NAME_Popup = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Popup))
  48758. PDF_ENUM_NAME_PreRelease = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PreRelease))
  48759. PDF_ENUM_NAME_Predictor = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Predictor))
  48760. PDF_ENUM_NAME_Prev = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Prev))
  48761. PDF_ENUM_NAME_PrevPage = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PrevPage))
  48762. PDF_ENUM_NAME_Preview = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Preview))
  48763. PDF_ENUM_NAME_Print = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Print))
  48764. PDF_ENUM_NAME_PrinterMark = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PrinterMark))
  48765. PDF_ENUM_NAME_Private = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Private))
  48766. PDF_ENUM_NAME_ProcSet = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ProcSet))
  48767. PDF_ENUM_NAME_Producer = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Producer))
  48768. PDF_ENUM_NAME_Prop_AuthTime = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Prop_AuthTime))
  48769. PDF_ENUM_NAME_Prop_AuthType = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Prop_AuthType))
  48770. PDF_ENUM_NAME_Prop_Build = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Prop_Build))
  48771. PDF_ENUM_NAME_Properties = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Properties))
  48772. PDF_ENUM_NAME_PubSec = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_PubSec))
  48773. PDF_ENUM_NAME_Push = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Push))
  48774. PDF_ENUM_NAME_Q = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Q))
  48775. PDF_ENUM_NAME_QuadPoints = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_QuadPoints))
  48776. PDF_ENUM_NAME_Quote = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Quote))
  48777. PDF_ENUM_NAME_R = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_R))
  48778. PDF_ENUM_NAME_RB = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RB))
  48779. PDF_ENUM_NAME_RBGroups = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RBGroups))
  48780. PDF_ENUM_NAME_RC = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RC))
  48781. PDF_ENUM_NAME_RClosedArrow = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RClosedArrow))
  48782. PDF_ENUM_NAME_RD = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RD))
  48783. PDF_ENUM_NAME_REx = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_REx))
  48784. PDF_ENUM_NAME_RGB = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RGB))
  48785. PDF_ENUM_NAME_RI = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RI))
  48786. PDF_ENUM_NAME_RL = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RL))
  48787. PDF_ENUM_NAME_RO = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RO))
  48788. PDF_ENUM_NAME_ROpenArrow = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ROpenArrow))
  48789. PDF_ENUM_NAME_RP = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RP))
  48790. PDF_ENUM_NAME_RT = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RT))
  48791. PDF_ENUM_NAME_RV = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RV))
  48792. PDF_ENUM_NAME_Range = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Range))
  48793. PDF_ENUM_NAME_Reason = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Reason))
  48794. PDF_ENUM_NAME_Rect = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Rect))
  48795. PDF_ENUM_NAME_Redact = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Redact))
  48796. PDF_ENUM_NAME_Ref = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Ref))
  48797. PDF_ENUM_NAME_Reference = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Reference))
  48798. PDF_ENUM_NAME_Registry = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Registry))
  48799. PDF_ENUM_NAME_RelativeColorimetric = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RelativeColorimetric))
  48800. PDF_ENUM_NAME_ResetForm = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ResetForm))
  48801. PDF_ENUM_NAME_Resources = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Resources))
  48802. PDF_ENUM_NAME_RoleMap = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RoleMap))
  48803. PDF_ENUM_NAME_Root = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Root))
  48804. PDF_ENUM_NAME_Rotate = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Rotate))
  48805. PDF_ENUM_NAME_Rows = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Rows))
  48806. PDF_ENUM_NAME_Ruby = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Ruby))
  48807. PDF_ENUM_NAME_RunLengthDecode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_RunLengthDecode))
  48808. PDF_ENUM_NAME_S = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_S))
  48809. PDF_ENUM_NAME_SMask = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_SMask))
  48810. PDF_ENUM_NAME_SMaskInData = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_SMaskInData))
  48811. PDF_ENUM_NAME_Saturation = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Saturation))
  48812. PDF_ENUM_NAME_Schema = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Schema))
  48813. PDF_ENUM_NAME_Screen = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Screen))
  48814. PDF_ENUM_NAME_Sect = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Sect))
  48815. PDF_ENUM_NAME_Separation = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Separation))
  48816. PDF_ENUM_NAME_Shading = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Shading))
  48817. PDF_ENUM_NAME_ShadingType = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ShadingType))
  48818. PDF_ENUM_NAME_Si = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Si))
  48819. PDF_ENUM_NAME_Sig = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Sig))
  48820. PDF_ENUM_NAME_SigFlags = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_SigFlags))
  48821. PDF_ENUM_NAME_SigQ = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_SigQ))
  48822. PDF_ENUM_NAME_SigRef = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_SigRef))
  48823. PDF_ENUM_NAME_Size = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Size))
  48824. PDF_ENUM_NAME_Slash = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Slash))
  48825. PDF_ENUM_NAME_Sold = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Sold))
  48826. PDF_ENUM_NAME_Sound = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Sound))
  48827. PDF_ENUM_NAME_Source = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Source))
  48828. PDF_ENUM_NAME_Span = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Span))
  48829. PDF_ENUM_NAME_Split = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Split))
  48830. PDF_ENUM_NAME_Square = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Square))
  48831. PDF_ENUM_NAME_Squiggly = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Squiggly))
  48832. PDF_ENUM_NAME_St = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_St))
  48833. PDF_ENUM_NAME_Stamp = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Stamp))
  48834. PDF_ENUM_NAME_StampImage = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_StampImage))
  48835. PDF_ENUM_NAME_StampSnapshot = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_StampSnapshot))
  48836. PDF_ENUM_NAME_Standard = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Standard))
  48837. PDF_ENUM_NAME_StdCF = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_StdCF))
  48838. PDF_ENUM_NAME_StemV = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_StemV))
  48839. PDF_ENUM_NAME_StmF = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_StmF))
  48840. PDF_ENUM_NAME_StrF = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_StrF))
  48841. PDF_ENUM_NAME_StrikeOut = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_StrikeOut))
  48842. PDF_ENUM_NAME_Strong = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Strong))
  48843. PDF_ENUM_NAME_StructParent = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_StructParent))
  48844. PDF_ENUM_NAME_StructParents = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_StructParents))
  48845. PDF_ENUM_NAME_StructTreeRoot = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_StructTreeRoot))
  48846. PDF_ENUM_NAME_Sub = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Sub))
  48847. PDF_ENUM_NAME_SubFilter = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_SubFilter))
  48848. PDF_ENUM_NAME_Subject = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Subject))
  48849. PDF_ENUM_NAME_Subtype = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Subtype))
  48850. PDF_ENUM_NAME_Subtype2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Subtype2))
  48851. PDF_ENUM_NAME_Supplement = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Supplement))
  48852. PDF_ENUM_NAME_Symb = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Symb))
  48853. PDF_ENUM_NAME_T = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_T))
  48854. PDF_ENUM_NAME_TBody = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TBody))
  48855. PDF_ENUM_NAME_TD = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TD))
  48856. PDF_ENUM_NAME_TFoot = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TFoot))
  48857. PDF_ENUM_NAME_TH = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TH))
  48858. PDF_ENUM_NAME_THead = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_THead))
  48859. PDF_ENUM_NAME_TI = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TI))
  48860. PDF_ENUM_NAME_TOC = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TOC))
  48861. PDF_ENUM_NAME_TOCI = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TOCI))
  48862. PDF_ENUM_NAME_TR = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TR))
  48863. PDF_ENUM_NAME_TR2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TR2))
  48864. PDF_ENUM_NAME_TU = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TU))
  48865. PDF_ENUM_NAME_Table = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Table))
  48866. PDF_ENUM_NAME_Text = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Text))
  48867. PDF_ENUM_NAME_Thumb = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Thumb))
  48868. PDF_ENUM_NAME_TilingType = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TilingType))
  48869. PDF_ENUM_NAME_Times = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Times))
  48870. PDF_ENUM_NAME_Title = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Title))
  48871. PDF_ENUM_NAME_ToUnicode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ToUnicode))
  48872. PDF_ENUM_NAME_Top = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Top))
  48873. PDF_ENUM_NAME_TopSecret = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TopSecret))
  48874. PDF_ENUM_NAME_Trans = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Trans))
  48875. PDF_ENUM_NAME_TransformMethod = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TransformMethod))
  48876. PDF_ENUM_NAME_TransformParams = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TransformParams))
  48877. PDF_ENUM_NAME_Transparency = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Transparency))
  48878. PDF_ENUM_NAME_TrapNet = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TrapNet))
  48879. PDF_ENUM_NAME_TrimBox = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TrimBox))
  48880. PDF_ENUM_NAME_TrueType = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TrueType))
  48881. PDF_ENUM_NAME_TrustedMode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_TrustedMode))
  48882. PDF_ENUM_NAME_Tx = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Tx))
  48883. PDF_ENUM_NAME_Type = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Type))
  48884. PDF_ENUM_NAME_Type0 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Type0))
  48885. PDF_ENUM_NAME_Type1 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Type1))
  48886. PDF_ENUM_NAME_Type1C = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Type1C))
  48887. PDF_ENUM_NAME_Type3 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Type3))
  48888. PDF_ENUM_NAME_U = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_U))
  48889. PDF_ENUM_NAME_UE = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_UE))
  48890. PDF_ENUM_NAME_UF = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_UF))
  48891. PDF_ENUM_NAME_URI = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_URI))
  48892. PDF_ENUM_NAME_URL = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_URL))
  48893. PDF_ENUM_NAME_Unchanged = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Unchanged))
  48894. PDF_ENUM_NAME_Uncover = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Uncover))
  48895. PDF_ENUM_NAME_Underline = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Underline))
  48896. PDF_ENUM_NAME_Unix = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Unix))
  48897. PDF_ENUM_NAME_Unspecified = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Unspecified))
  48898. PDF_ENUM_NAME_Usage = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Usage))
  48899. PDF_ENUM_NAME_UseBlackPtComp = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_UseBlackPtComp))
  48900. PDF_ENUM_NAME_UseCMap = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_UseCMap))
  48901. PDF_ENUM_NAME_UseOutlines = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_UseOutlines))
  48902. PDF_ENUM_NAME_UserUnit = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_UserUnit))
  48903. PDF_ENUM_NAME_V = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_V))
  48904. PDF_ENUM_NAME_V2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_V2))
  48905. PDF_ENUM_NAME_VE = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_VE))
  48906. PDF_ENUM_NAME_Version = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Version))
  48907. PDF_ENUM_NAME_Vertices = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Vertices))
  48908. PDF_ENUM_NAME_VerticesPerRow = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_VerticesPerRow))
  48909. PDF_ENUM_NAME_View = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_View))
  48910. PDF_ENUM_NAME_W = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_W))
  48911. PDF_ENUM_NAME_W2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_W2))
  48912. PDF_ENUM_NAME_WMode = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_WMode))
  48913. PDF_ENUM_NAME_WP = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_WP))
  48914. PDF_ENUM_NAME_WT = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_WT))
  48915. PDF_ENUM_NAME_Warichu = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Warichu))
  48916. PDF_ENUM_NAME_Watermark = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Watermark))
  48917. PDF_ENUM_NAME_WhitePoint = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_WhitePoint))
  48918. PDF_ENUM_NAME_Widget = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Widget))
  48919. PDF_ENUM_NAME_Width = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Width))
  48920. PDF_ENUM_NAME_Widths = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Widths))
  48921. PDF_ENUM_NAME_WinAnsiEncoding = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_WinAnsiEncoding))
  48922. PDF_ENUM_NAME_Wipe = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Wipe))
  48923. PDF_ENUM_NAME_XFA = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_XFA))
  48924. PDF_ENUM_NAME_XHeight = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_XHeight))
  48925. PDF_ENUM_NAME_XML = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_XML))
  48926. PDF_ENUM_NAME_XObject = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_XObject))
  48927. PDF_ENUM_NAME_XRef = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_XRef))
  48928. PDF_ENUM_NAME_XRefStm = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_XRefStm))
  48929. PDF_ENUM_NAME_XStep = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_XStep))
  48930. PDF_ENUM_NAME_XYZ = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_XYZ))
  48931. PDF_ENUM_NAME_YStep = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_YStep))
  48932. PDF_ENUM_NAME_Yes = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_Yes))
  48933. PDF_ENUM_NAME_ZaDb = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ZaDb))
  48934. PDF_ENUM_NAME_a = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_a))
  48935. PDF_ENUM_NAME_adbe_pkcs7_detached = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_adbe_pkcs7_detached))
  48936. PDF_ENUM_NAME_ca = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_ca))
  48937. PDF_ENUM_NAME_n0 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_n0))
  48938. PDF_ENUM_NAME_n1 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_n1))
  48939. PDF_ENUM_NAME_n2 = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_n2))
  48940. PDF_ENUM_NAME_op = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_op))
  48941. PDF_ENUM_NAME_r = PdfObj( obj_enum_to_obj( PDF_ENUM_NAME_r))
  48942. PDF_NULL = PdfObj( obj_enum_to_obj( PDF_ENUM_NULL))
  48943. PDF_TRUE = PdfObj( obj_enum_to_obj( PDF_ENUM_TRUE))
  48944. PDF_FALSE = PdfObj( obj_enum_to_obj( PDF_ENUM_FALSE))