[{"data":1,"prerenderedAt":1445},["ShallowReactive",2],{"api":3},{"id":4,"title":5,"body":6,"description":41,"extension":1439,"meta":1440,"navigation":82,"path":1441,"seo":1442,"stem":1443,"__hash__":1444},"content\u002Fapi.md","API Reference",{"type":7,"value":8,"toc":1423},"minimark",[9,14,19,27,35,115,133,139,150,234,238,241,456,460,467,470,476,479,485,488,494,497,503,506,512,515,662,668,805,809,878,885,889,907,911,1045,1049,1052,1166,1175,1179,1182,1333,1337,1345,1349,1352,1409,1419],[10,11,13],"h1",{"id":12},"api-reference","API reference",[15,16,18],"h2",{"id":17},"functions","Functions",[20,21,23],"h3",{"id":22},"get_serviceid-string-servicepublic-undefined",[24,25,26],"code",{},"get_service(id: string): ServicePublic | undefined",[28,29,30,31,34],"p",{},"Get a single service by its ID. Returns ",[24,32,33],{},"undefined"," if not found.",[36,37,42],"pre",{"className":38,"code":39,"language":40,"meta":41,"style":41},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import {get_service} from 'printing-services'\n\nconst kdp = get_service('kdp')\n","ts","",[24,43,44,77,84],{"__ignoreMap":41},[45,46,49,53,57,61,64,67,70,74],"span",{"class":47,"line":48},"line",1,[45,50,52],{"class":51},"s7zQu","import",[45,54,56],{"class":55},"sMK4o"," {",[45,58,60],{"class":59},"sTEyZ","get_service",[45,62,63],{"class":55},"}",[45,65,66],{"class":51}," from",[45,68,69],{"class":55}," '",[45,71,73],{"class":72},"sfazB","printing-services",[45,75,76],{"class":55},"'\n",[45,78,80],{"class":47,"line":79},2,[45,81,83],{"emptyLinePlaceholder":82},true,"\n",[45,85,87,91,94,97,101,104,107,110,112],{"class":47,"line":86},3,[45,88,90],{"class":89},"spNyl","const",[45,92,93],{"class":59}," kdp ",[45,95,96],{"class":55},"=",[45,98,100],{"class":99},"s2Zo4"," get_service",[45,102,103],{"class":59},"(",[45,105,106],{"class":55},"'",[45,108,109],{"class":72},"kdp",[45,111,106],{"class":55},[45,113,114],{"class":59},")\n",[28,116,117,118,120,121,120,124,120,127,120,130],{},"Available IDs: ",[24,119,109],{},", ",[24,122,123],{},"lulu",[24,125,126],{},"officeworks",[24,128,129],{},"vistaprint-au",[24,131,132],{},"ctrlprint",[20,134,136],{"id":135},"list_servicescountry-string-servicepublic",[24,137,138],{},"list_services(country?: string): ServicePublic[]",[28,140,141,142,145,146,149],{},"Get all services, optionally filtered by country code (e.g. ",[24,143,144],{},"'au'","). Services with ",[24,147,148],{},"countries: null"," are considered global and always included.",[36,151,153],{"className":38,"code":152,"language":40,"meta":41,"style":41},"import {list_services} from 'printing-services'\n\n\u002F\u002F All services\nconst all = list_services()\n\n\u002F\u002F Only services available in Australia (includes global ones)\nconst au = list_services('au')\n",[24,154,155,174,178,184,200,205,211],{"__ignoreMap":41},[45,156,157,159,161,164,166,168,170,172],{"class":47,"line":48},[45,158,52],{"class":51},[45,160,56],{"class":55},[45,162,163],{"class":59},"list_services",[45,165,63],{"class":55},[45,167,66],{"class":51},[45,169,69],{"class":55},[45,171,73],{"class":72},[45,173,76],{"class":55},[45,175,176],{"class":47,"line":79},[45,177,83],{"emptyLinePlaceholder":82},[45,179,180],{"class":47,"line":86},[45,181,183],{"class":182},"sHwdD","\u002F\u002F All services\n",[45,185,187,189,192,194,197],{"class":47,"line":186},4,[45,188,90],{"class":89},[45,190,191],{"class":59}," all ",[45,193,96],{"class":55},[45,195,196],{"class":99}," list_services",[45,198,199],{"class":59},"()\n",[45,201,203],{"class":47,"line":202},5,[45,204,83],{"emptyLinePlaceholder":82},[45,206,208],{"class":47,"line":207},6,[45,209,210],{"class":182},"\u002F\u002F Only services available in Australia (includes global ones)\n",[45,212,214,216,219,221,223,225,227,230,232],{"class":47,"line":213},7,[45,215,90],{"class":89},[45,217,218],{"class":59}," au ",[45,220,96],{"class":55},[45,222,196],{"class":99},[45,224,103],{"class":59},[45,226,106],{"class":55},[45,228,229],{"class":72},"au",[45,231,106],{"class":55},[45,233,114],{"class":59},[15,235,237],{"id":236},"servicepublic","ServicePublic",[28,239,240],{},"Each service object has these properties and methods:",[242,243,244,260],"table",{},[245,246,247],"thead",{},[248,249,250,254,257],"tr",{},[251,252,253],"th",{},"Property",[251,255,256],{},"Type",[251,258,259],{},"Description",[261,262,263,279,293,312,327,342,357,371,385,399,413,427,441],"tbody",{},[248,264,265,271,276],{},[266,267,268],"td",{},[24,269,270],{},"id",[266,272,273],{},[24,274,275],{},"string",[266,277,278],{},"Unique identifier",[248,280,281,286,290],{},[266,282,283],{},[24,284,285],{},"name",[266,287,288],{},[24,289,275],{},[266,291,292],{},"Display name",[248,294,295,300,305],{},[266,296,297],{},[24,298,299],{},"countries",[266,301,302],{},[24,303,304],{},"string[] | null",[266,306,307,308,311],{},"Country codes, or ",[24,309,310],{},"null"," if global",[248,313,314,319,324],{},[266,315,316],{},[24,317,318],{},"quality",[266,320,321],{},[24,322,323],{},"number",[266,325,326],{},"Quality rating (1=low, 2=medium, 3=high)",[248,328,329,334,339],{},[266,330,331],{},[24,332,333],{},"expense",[266,335,336],{},[24,337,338],{},"ExpenseRatings",[266,340,341],{},"Cost ratings for common configurations",[248,343,344,349,354],{},[266,345,346],{},[24,347,348],{},"interior_calc_requires_binding",[266,350,351],{},[24,352,353],{},"boolean",[266,355,356],{},"Whether binding type affects interior dimension calculations",[248,358,359,364,368],{},[266,360,361],{},[24,362,363],{},"cover_calc_requires_binding",[266,365,366],{},[24,367,353],{},[266,369,370],{},"Whether binding type affects cover dimension calculations",[248,372,373,378,382],{},[266,374,375],{},[24,376,377],{},"cover_calc_requires_paper",[266,379,380],{},[24,381,353],{},[266,383,384],{},"Whether paper type affects cover dimension calculations",[248,386,387,392,396],{},[266,388,389],{},[24,390,391],{},"cover_calc_requires_ink",[266,393,394],{},[24,395,353],{},[266,397,398],{},"Whether ink type affects cover dimension calculations",[248,400,401,406,410],{},[266,402,403],{},[24,404,405],{},"url_website",[266,407,408],{},[24,409,275],{},[266,411,412],{},"Service homepage",[248,414,415,420,424],{},[266,416,417],{},[24,418,419],{},"url_guide",[266,421,422],{},[24,423,275],{},[266,425,426],{},"Artwork\u002Fspecification guide",[248,428,429,434,438],{},[266,430,431],{},[24,432,433],{},"url_pricing",[266,435,436],{},[24,437,275],{},[266,439,440],{},"Pricing page",[248,442,443,448,453],{},[266,444,445],{},[24,446,447],{},"raw",[266,449,450],{},[24,451,452],{},"ServiceConfig",[266,454,455],{},"Internal config (advanced use only)",[20,457,459],{"id":458},"service-methods","Service methods",[461,462,464],"h4",{"id":463},"get_sizesbinding_type-unit-getsizesitem",[24,465,466],{},"get_sizes({binding_type?, unit?}): GetSizesItem[]",[28,468,469],{},"List available trim sizes, optionally filtered by binding type.",[461,471,473],{"id":472},"get_binding_typespages-size-ink_type-paper_type-getbindingtypesitem",[24,474,475],{},"get_binding_types({pages?, size?, ink_type?, paper_type?}): GetBindingTypesItem[]",[28,477,478],{},"List available binding types, optionally filtered by other selections.",[461,480,482],{"id":481},"get_ink_typesbinding_type-paper_type-getinktypesitem",[24,483,484],{},"get_ink_types({binding_type?, paper_type?}): GetInkTypesItem[]",[28,486,487],{},"List available ink types, optionally filtered by binding or paper.",[461,489,491],{"id":490},"get_paper_typesbinding_type-ink_type-getpapertypesitem",[24,492,493],{},"get_paper_types({binding_type?, ink_type?}): GetPaperTypesItem[]",[28,495,496],{},"List available paper types, optionally filtered by binding or ink.",[461,498,500],{"id":499},"get_cover_types-getcovertypesitem",[24,501,502],{},"get_cover_types(): GetCoverTypesItem[]",[28,504,505],{},"List available cover finishes (e.g. glossy, matte).",[461,507,509],{"id":508},"get_dimensionsargs-getdimensionsresult",[24,510,511],{},"get_dimensions(args): GetDimensionsResult",[28,513,514],{},"Calculate all dimensions for a specific book configuration. This is the main method.",[36,516,518],{"className":38,"code":517,"language":40,"meta":41,"style":41},"const dims = kdp.get_dimensions({\n    size: 'us_trade',       \u002F\u002F SizeId or CustomSize\n    pages: 300,             \u002F\u002F Total interior page count\n    binding_type: 'paperback',\n    paper_type: 'white',    \u002F\u002F Optional for some services\n    ink_type: 'bw',         \u002F\u002F Optional for some services\n    unit: 'inch',           \u002F\u002F Optional, defaults to service's native unit\n})\n",[24,519,520,543,565,581,598,617,636,655],{"__ignoreMap":41},[45,521,522,524,527,529,532,535,538,540],{"class":47,"line":48},[45,523,90],{"class":89},[45,525,526],{"class":59}," dims ",[45,528,96],{"class":55},[45,530,531],{"class":59}," kdp",[45,533,534],{"class":55},".",[45,536,537],{"class":99},"get_dimensions",[45,539,103],{"class":59},[45,541,542],{"class":55},"{\n",[45,544,545,549,552,554,557,559,562],{"class":47,"line":79},[45,546,548],{"class":547},"swJcz","    size",[45,550,551],{"class":55},":",[45,553,69],{"class":55},[45,555,556],{"class":72},"us_trade",[45,558,106],{"class":55},[45,560,561],{"class":55},",",[45,563,564],{"class":182},"       \u002F\u002F SizeId or CustomSize\n",[45,566,567,570,572,576,578],{"class":47,"line":86},[45,568,569],{"class":547},"    pages",[45,571,551],{"class":55},[45,573,575],{"class":574},"sbssI"," 300",[45,577,561],{"class":55},[45,579,580],{"class":182},"             \u002F\u002F Total interior page count\n",[45,582,583,586,588,590,593,595],{"class":47,"line":186},[45,584,585],{"class":547},"    binding_type",[45,587,551],{"class":55},[45,589,69],{"class":55},[45,591,592],{"class":72},"paperback",[45,594,106],{"class":55},[45,596,597],{"class":55},",\n",[45,599,600,603,605,607,610,612,614],{"class":47,"line":202},[45,601,602],{"class":547},"    paper_type",[45,604,551],{"class":55},[45,606,69],{"class":55},[45,608,609],{"class":72},"white",[45,611,106],{"class":55},[45,613,561],{"class":55},[45,615,616],{"class":182},"    \u002F\u002F Optional for some services\n",[45,618,619,622,624,626,629,631,633],{"class":47,"line":207},[45,620,621],{"class":547},"    ink_type",[45,623,551],{"class":55},[45,625,69],{"class":55},[45,627,628],{"class":72},"bw",[45,630,106],{"class":55},[45,632,561],{"class":55},[45,634,635],{"class":182},"         \u002F\u002F Optional for some services\n",[45,637,638,641,643,645,648,650,652],{"class":47,"line":213},[45,639,640],{"class":547},"    unit",[45,642,551],{"class":55},[45,644,69],{"class":55},[45,646,647],{"class":72},"inch",[45,649,106],{"class":55},[45,651,561],{"class":55},[45,653,654],{"class":182},"           \u002F\u002F Optional, defaults to service's native unit\n",[45,656,658,660],{"class":47,"line":657},8,[45,659,63],{"class":55},[45,661,114],{"class":59},[28,663,664],{},[665,666,667],"strong",{},"Arguments:",[242,669,670,684],{},[245,671,672],{},[248,673,674,677,679,682],{},[251,675,676],{},"Argument",[251,678,256],{},[251,680,681],{},"Required",[251,683,259],{},[261,685,686,707,723,740,761,779],{},[248,687,688,693,698,701],{},[266,689,690],{},[24,691,692],{},"size",[266,694,695],{},[24,696,697],{},"SizeId | CustomSize",[266,699,700],{},"Yes",[266,702,703,704],{},"A known size ID or custom ",[24,705,706],{},"{unit, width, height}",[248,708,709,714,718,720],{},[266,710,711],{},[24,712,713],{},"pages",[266,715,716],{},[24,717,323],{},[266,719,700],{},[266,721,722],{},"Total interior page count (not sheets)",[248,724,725,730,735,737],{},[266,726,727],{},[24,728,729],{},"binding_type",[266,731,732],{},[24,733,734],{},"BindingTypeId",[266,736,700],{},[266,738,739],{},"Binding type ID",[248,741,742,747,752,755],{},[266,743,744],{},[24,745,746],{},"paper_type",[266,748,749],{},[24,750,751],{},"PaperTypeId",[266,753,754],{},"Depends",[266,756,757,758,760],{},"Required when ",[24,759,377],{}," is true",[248,762,763,768,773,775],{},[266,764,765],{},[24,766,767],{},"ink_type",[266,769,770],{},[24,771,772],{},"InkTypeId",[266,774,754],{},[266,776,757,777,760],{},[24,778,391],{},[248,780,781,786,791,794],{},[266,782,783],{},[24,784,785],{},"unit",[266,787,788],{},[24,789,790],{},"UnitType",[266,792,793],{},"No",[266,795,796,797,800,801,804],{},"Output unit (",[24,798,799],{},"'inch'"," or ",[24,802,803],{},"'mm'","). Defaults to service's native unit",[20,806,808],{"id":807},"customsize","CustomSize",[36,810,812],{"className":38,"code":811,"language":40,"meta":41,"style":41},"interface CustomSize {\n    unit: UnitType\n    width: number | string | Big\n    height: number | string | Big\n}\n",[24,813,814,826,835,856,873],{"__ignoreMap":41},[45,815,816,819,823],{"class":47,"line":48},[45,817,818],{"class":89},"interface",[45,820,822],{"class":821},"sBMFI"," CustomSize",[45,824,825],{"class":55}," {\n",[45,827,828,830,832],{"class":47,"line":79},[45,829,640],{"class":547},[45,831,551],{"class":55},[45,833,834],{"class":821}," UnitType\n",[45,836,837,840,842,845,848,851,853],{"class":47,"line":86},[45,838,839],{"class":547},"    width",[45,841,551],{"class":55},[45,843,844],{"class":821}," number",[45,846,847],{"class":55}," |",[45,849,850],{"class":821}," string",[45,852,847],{"class":55},[45,854,855],{"class":821}," Big\n",[45,857,858,861,863,865,867,869,871],{"class":47,"line":186},[45,859,860],{"class":547},"    height",[45,862,551],{"class":55},[45,864,844],{"class":821},[45,866,847],{"class":55},[45,868,850],{"class":821},[45,870,847],{"class":55},[45,872,855],{"class":821},[45,874,875],{"class":47,"line":202},[45,876,877],{"class":55},"}\n",[28,879,880,881,884],{},"Use instead of a ",[24,882,883],{},"SizeId"," when the service supports custom trim sizes.",[15,886,888],{"id":887},"getdimensionsresult","GetDimensionsResult",[28,890,891,892,895,896,899,900,800,903,906],{},"All numeric values are ",[24,893,894],{},"Big"," instances (from the ",[24,897,898],{},"big.js"," library) for precision. Call ",[24,901,902],{},".toNumber()",[24,904,905],{},".toString()"," to convert.",[20,908,910],{"id":909},"metadata","Metadata",[242,912,913,923],{},[245,914,915],{},[248,916,917,919,921],{},[251,918,253],{},[251,920,256],{},[251,922,259],{},[261,924,925,939,953,970,989,1003,1017,1031],{},[248,926,927,931,936],{},[266,928,929],{},[24,930,785],{},[266,932,933],{},[24,934,935],{},"'inch' | 'mm'",[266,937,938],{},"Unit of all dimensions in the result",[248,940,941,946,950],{},[266,942,943],{},[24,944,945],{},"interior_includes_cover",[266,947,948],{},[24,949,353],{},[266,951,952],{},"Whether the interior PDF should include cover pages (common for stitch-bound booklets from general printers)",[248,954,955,960,964],{},[266,956,957],{},[24,958,959],{},"interior_blank_pages",[266,961,962],{},[24,963,323],{},[266,965,966,967,969],{},"Number of blank pages to insert before the back cover when ",[24,968,945],{}," is true, to ensure the page count is a multiple of 4",[248,971,972,977,982],{},[266,973,974],{},[24,975,976],{},"interior_has_bleed",[266,978,979],{},[24,980,981],{},"boolean | 'outer-only'",[266,983,984,985,988],{},"Whether interior pages have bleed. ",[24,986,987],{},"'outer-only'"," means bleed is only on the three outer edges (top, bottom, fore-edge) and NOT on the spine\u002Fgutter edge",[248,990,991,996,1000],{},[266,992,993],{},[24,994,995],{},"cover_has_bleed",[266,997,998],{},[24,999,353],{},[266,1001,1002],{},"Whether the cover has bleed",[248,1004,1005,1010,1014],{},[266,1006,1007],{},[24,1008,1009],{},"cover_has_spine",[266,1011,1012],{},[24,1013,353],{},[266,1015,1016],{},"Whether the cover has a spine area (false for coil\u002Fstitch bindings)",[248,1018,1019,1024,1028],{},[266,1020,1021],{},[24,1022,1023],{},"cover_has_spine_text",[266,1025,1026],{},[24,1027,353],{},[266,1029,1030],{},"Whether the spine is wide enough for text (typically 80+ pages)",[248,1032,1033,1038,1042],{},[266,1034,1035],{},[24,1036,1037],{},"cover_has_flaps",[266,1039,1040],{},[24,1041,353],{},[266,1043,1044],{},"Whether the cover includes dust jacket flaps",[20,1046,1048],{"id":1047},"interior-dimensions","Interior dimensions",[28,1050,1051],{},"These describe a single interior page.",[242,1053,1054,1062],{},[245,1055,1056],{},[248,1057,1058,1060],{},[251,1059,253],{},[251,1061,259],{},[261,1063,1064,1074,1084,1094,1104,1114,1127,1140,1156],{},[248,1065,1066,1071],{},[266,1067,1068],{},[24,1069,1070],{},"interior_bleed",[266,1072,1073],{},"Bleed amount extending beyond the trim edge. Content in this area may be cut off",[248,1075,1076,1081],{},[266,1077,1078],{},[24,1079,1080],{},"interior_margin",[266,1082,1083],{},"Minimum safe margin inset from trim on all sides. Important content should not enter this area",[248,1085,1086,1091],{},[266,1087,1088],{},[24,1089,1090],{},"interior_gutter",[266,1092,1093],{},"Additional margin for the inner\u002Fspine edge, on top of the regular margin. Compensates for pages curving into the binding on thick books",[248,1095,1096,1101],{},[266,1097,1098],{},[24,1099,1100],{},"interior_trim_width",[266,1102,1103],{},"Final page width after trimming (the \"finished\" size)",[248,1105,1106,1111],{},[266,1107,1108],{},[24,1109,1110],{},"interior_trim_height",[266,1112,1113],{},"Final page height after trimming",[248,1115,1116,1121],{},[266,1117,1118],{},[24,1119,1120],{},"interior_safe_width",[266,1122,1123,1124],{},"Width of the safe content area: ",[24,1125,1126],{},"trim_width - margin*2 - gutter",[248,1128,1129,1134],{},[266,1130,1131],{},[24,1132,1133],{},"interior_safe_height",[266,1135,1136,1137],{},"Height of the safe content area: ",[24,1138,1139],{},"trim_height - margin*2",[248,1141,1142,1147],{},[266,1143,1144],{},[24,1145,1146],{},"interior_total_width",[266,1148,1149,1150,1152,1153,1155],{},"Full page width including bleed. If ",[24,1151,976],{}," is ",[24,1154,987],{},", bleed is added to one side only",[248,1157,1158,1163],{},[266,1159,1160],{},[24,1161,1162],{},"interior_total_height",[266,1164,1165],{},"Full page height including bleed (top and bottom)",[28,1167,1168,1171,1172],{},[665,1169,1170],{},"Relationship:"," ",[24,1173,1174],{},"total > trim > safe",[20,1176,1178],{"id":1177},"cover-dimensions","Cover dimensions",[28,1180,1181],{},"These describe the full cover spread (back + spine + front as a single document).",[242,1183,1184,1192],{},[245,1185,1186],{},[248,1187,1188,1190],{},[251,1189,253],{},[251,1191,259],{},[261,1193,1194,1204,1214,1224,1234,1244,1254,1267,1280,1293,1307,1320],{},[248,1195,1196,1201],{},[266,1197,1198],{},[24,1199,1200],{},"cover_bleed",[266,1202,1203],{},"Bleed extending beyond cover trim on all edges. For hardcovers this is the \"wrap\" that folds around the board",[248,1205,1206,1211],{},[266,1207,1208],{},[24,1209,1210],{},"cover_margin",[266,1212,1213],{},"Safe margin inset from the face trim edge. For hardcovers this may represent the hinge area",[248,1215,1216,1221],{},[266,1217,1218],{},[24,1219,1220],{},"cover_spine",[266,1222,1223],{},"Width of the spine strip between back and front covers",[248,1225,1226,1231],{},[266,1227,1228],{},[24,1229,1230],{},"cover_spine_margin",[266,1232,1233],{},"Safe margin inset from spine edges. Text on spine should be within this",[248,1235,1236,1241],{},[266,1237,1238],{},[24,1239,1240],{},"cover_face_width",[266,1242,1243],{},"Width of one cover face (front or back). Equals interior trim width plus any overhang for hardcovers",[248,1245,1246,1251],{},[266,1247,1248],{},[24,1249,1250],{},"cover_face_height",[266,1252,1253],{},"Height of one cover face. Equals interior trim height plus any overhang for hardcovers",[248,1255,1256,1261],{},[266,1257,1258],{},[24,1259,1260],{},"cover_safe_width",[266,1262,1263,1264],{},"Safe content width per face: ",[24,1265,1266],{},"face_width - margin*2",[248,1268,1269,1274],{},[266,1270,1271],{},[24,1272,1273],{},"cover_safe_height",[266,1275,1276,1277],{},"Safe content height per face: ",[24,1278,1279],{},"face_height - margin*2",[248,1281,1282,1287],{},[266,1283,1284],{},[24,1285,1286],{},"cover_trim_width",[266,1288,1289,1290],{},"Full cover trim width: ",[24,1291,1292],{},"face_width*2 + spine",[248,1294,1295,1300],{},[266,1296,1297],{},[24,1298,1299],{},"cover_trim_height",[266,1301,1302,1303,1306],{},"Cover trim height (same as ",[24,1304,1305],{},"face_height",")",[248,1308,1309,1314],{},[266,1310,1311],{},[24,1312,1313],{},"cover_total_width",[266,1315,1316,1317],{},"Full document width: ",[24,1318,1319],{},"trim_width + (bleed + flap)*2",[248,1321,1322,1327],{},[266,1323,1324],{},[24,1325,1326],{},"cover_total_height",[266,1328,1329,1330],{},"Full document height: ",[24,1331,1332],{},"trim_height + bleed*2",[28,1334,1335],{},[665,1336,1170],{},[36,1338,1343],{"className":1339,"code":1341,"language":1342},[1340],"language-text","┌──────────────────────────────────────────────────────────┐\n│ bleed                                                    │\n│ ┌──────────────────┬───────┬──────────────────┐          │\n│ │ back face        │ spine │ front face       │          │\n│ │                  │       │                  │          │\n│ │  ┌────────────┐  │       │  ┌────────────┐  │          │\n│ │  │ safe area  │  │       │  │ safe area  │  │          │\n│ │  └────────────┘  │       │  └────────────┘  │          │\n│ │                  │       │                  │          │\n│ └──────────────────┴───────┴──────────────────┘          │\n│                                                     flap │\n└──────────────────────────────────────────────────────────┘\n","text",[24,1344,1341],{"__ignoreMap":41},[20,1346,1348],{"id":1347},"cover-regions","Cover regions",[28,1350,1351],{},"Regions describe the position and size of each cover face within the full document. Coordinates are relative to the top-left of the full document (which includes bleed and flaps), but the regions themselves represent only the visible face areas.",[242,1353,1354,1364],{},[245,1355,1356],{},[248,1357,1358,1360,1362],{},[251,1359,253],{},[251,1361,256],{},[251,1363,259],{},[261,1365,1366,1381,1395],{},[248,1367,1368,1373,1378],{},[266,1369,1370],{},[24,1371,1372],{},"cover_region_back",[266,1374,1375],{},[24,1376,1377],{},"Region",[266,1379,1380],{},"Position of the back cover face within the full document",[248,1382,1383,1388,1392],{},[266,1384,1385],{},[24,1386,1387],{},"cover_region_spine",[266,1389,1390],{},[24,1391,1377],{},[266,1393,1394],{},"Position of the spine within the full document",[248,1396,1397,1402,1406],{},[266,1398,1399],{},[24,1400,1401],{},"cover_region_front",[266,1403,1404],{},[24,1405,1377],{},[266,1407,1408],{},"Position of the front cover face within the full document",[28,1410,1411,1412,1414,1415,1418],{},"Each ",[24,1413,1377],{}," has ",[24,1416,1417],{},"{x, y, w, h}"," — the top-left origin and dimensions of that section, measured from the top-left corner of the full cover document.",[1420,1421,1422],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}",{"title":41,"searchDepth":79,"depth":79,"links":1424},[1425,1429,1433],{"id":17,"depth":79,"text":18,"children":1426},[1427,1428],{"id":22,"depth":86,"text":26},{"id":135,"depth":86,"text":138},{"id":236,"depth":79,"text":237,"children":1430},[1431,1432],{"id":458,"depth":86,"text":459},{"id":807,"depth":86,"text":808},{"id":887,"depth":79,"text":888,"children":1434},[1435,1436,1437,1438],{"id":909,"depth":86,"text":910},{"id":1047,"depth":86,"text":1048},{"id":1177,"depth":86,"text":1178},{"id":1347,"depth":86,"text":1348},"md",{},"\u002Fapi",{"title":5,"description":41},"api","A0ejQpaERIyaQm8UdI2gfqofm7R-28IwxBhOZxferCA",1778080174321]