common.bmx 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003
  1. ' Copyright (c) 2023 Bruce A Henderson
  2. '
  3. ' This software is provided 'as-is', without any express or implied
  4. ' warranty. In no event will the authors be held liable for any damages
  5. ' arising from the use of this software.
  6. '
  7. ' Permission is granted to anyone to use this software for any purpose,
  8. ' including commercial applications, and to alter it and redistribute it
  9. ' freely, subject to the following restrictions:
  10. '
  11. ' 1. The origin of this software must not be misrepresented; you must not
  12. ' claim that you wrote the original software. If you use this software
  13. ' in a product, an acknowledgment in the product documentation would be
  14. ' appreciated but is not required.
  15. ' 2. Altered source versions must be plainly marked as such, and must not be
  16. ' misrepresented as being the original software.
  17. ' 3. This notice may not be removed or altered from any source distribution.
  18. '
  19. SuperStrict
  20. Import Pub.Zlib
  21. Import BRL.Stream
  22. Import BRL.Math
  23. Import BRL.Pixmap
  24. Import "source.bmx"
  25. Extern
  26. Function bmx_pdf_HPDF_New:Byte Ptr()
  27. Function HPDF_Free(handle:Byte Ptr)
  28. Function HPDF_SaveToStream:ULongInt(handle:Byte Ptr)
  29. Function HPDF_ResetStream:ULongInt(handle:Byte Ptr)
  30. Function HPDF_ReadFromStream:ULongInt(handle:Byte Ptr, buf:Byte Ptr, size:UInt Var)
  31. Function HPDF_AddPage:Byte Ptr(handle:Byte Ptr)
  32. Function HPDF_GetFont:Byte Ptr(handle:Byte Ptr, fn:Byte Ptr, en:Byte Ptr)
  33. Function HPDF_GetCurrentPage:Byte Ptr(handle:Byte Ptr)
  34. Function HPDF_InsertPage:Byte Ptr(handle:Byte Ptr, page:Byte Ptr)
  35. Function HPDF_SetCompressionMode:ULongInt(handle:Byte Ptr, mode:EPDFCompressionMode)
  36. Function HPDF_CreateExtGState:Byte Ptr(handle:Byte Ptr)
  37. Function HPDF_SetPassword:ULongInt(handle:Byte Ptr, owner:Byte Ptr, user:Byte Ptr)
  38. Function HPDF_SetPermission:ULongInt(handle:Byte Ptr, permission:UInt)
  39. Function HPDF_SetEncryptionMode:ULongInt(handle:Byte Ptr, mode:EPDFEncryptMode, keyLen:UInt)
  40. Function HPDF_SetPagesConfiguration:ULongInt(handle:Byte Ptr, pagePerPages:UInt)
  41. Function HPDF_SetPageLayout:ULongInt(handle:Byte Ptr, layout:EPDFPageLayout)
  42. Function HPDF_CreateOutline:Byte Ptr(handle:Byte Ptr, parent:Byte Ptr, t:Byte Ptr, encoder:Byte Ptr)
  43. Function HPDF_SetPageMode:ULongInt(handle:Byte Ptr, mode:EPDFPageMode)
  44. Function HPDF_GetPageMode:EPDFPageMode(handle:Byte Ptr)
  45. Function HPDF_AddPageLabel:ULongInt(handle:Byte Ptr, pageNum:UInt, style:EPDFPageNumStyle, firstPage:UInt, p:Byte Ptr)
  46. Function HPDF_GetPageLayout:EPDFPageLayout(handle:Byte Ptr)
  47. Function HPDF_UseJPFonts:ULongInt(handle:Byte Ptr)
  48. Function HPDF_UseKRFonts:ULongInt(handle:Byte Ptr)
  49. Function HPDF_UseCNSFonts:ULongInt(handle:Byte Ptr)
  50. Function HPDF_UseCNTFonts:ULongInt(handle:Byte Ptr)
  51. Function HPDF_SetInfoAttr:ULongInt(handle:Byte Ptr, infoType:EPDFInfoType, v:Byte Ptr)
  52. Function HPDF_GetInfoAttr:Byte Ptr(handle:Byte Ptr, infoType:EPDFInfoType)
  53. Function HPDF_SetInfoDateAttr:ULongInt(handle:Byte Ptr, infoType:EPDFInfoType, date:SPDFDate)
  54. Function HPDF_GetEncoder:Byte Ptr(handler:Byte Ptr, encodingName:Byte Ptr)
  55. Function HPDF_GetCurrentEncoder:Byte ptr(handler:Byte Ptr, encodingName:Byte Ptr)
  56. Function HPDF_SetCurrentEncoder:ULongInt(handler:Byte Ptr, encodingName:Byte Ptr)
  57. Function HPDF_LoadRawImageFromMem:Byte Ptr(handler:Byte Ptr, buf:Byte Ptr, width:UInt, height:UInt, colorSpace:EPDFColorSpace, bitsPerComponent:UInt)
  58. Function HPDF_Page_BeginText:ULongInt(handle:Byte Ptr)
  59. Function HPDF_Page_EndText:ULongInt(handle:Byte Ptr)
  60. Function HPDF_Page_ShowText:ULongInt(handle:Byte Ptr, text:Byte Ptr)
  61. Function HPDF_Page_ShowTextNextLine:ULongInt(handle:Byte Ptr, text:Byte Ptr)
  62. Function HPDF_Page_ShowTextNextLineEx:ULongInt(handle:Byte Ptr, wordSpace:Float, charSpace:Float, text:Byte Ptr)
  63. Function HPDF_Page_SetWidth:ULongInt(handle:Byte Ptr, width:Float)
  64. Function HPDF_Page_SetHeight:ULongInt(handle:Byte Ptr, height:Float)
  65. Function HPDF_Page_SetRotate:ULongInt(handle:Byte Ptr, angle:Short)
  66. Function HPDF_Page_TextWidth:Float(handle:Byte Ptr, text:Byte Ptr)
  67. Function HPDF_Page_SetLineWidth:ULongInt(handle:Byte Ptr, width:Float)
  68. Function HPDF_Page_SetLineCap:ULongInt(handle:Byte Ptr, lineCap:EPDFLineCap)
  69. Function HPDF_Page_SetLineJoin:ULongInt(handle:Byte Ptr, lineJoin:EPDFLineJoin)
  70. Function HPDF_Page_SetMiterLimit:ULongInt(handle:Byte Ptr, miterLimit:Float)
  71. Function HPDF_Page_GetWidth:Float(handle:Byte Ptr)
  72. Function HPDF_Page_GetHeight:Float(handle:Byte Ptr)
  73. Function HPDF_Page_Rectangle:ULongInt(handle:Byte Ptr, x:Float, y:Float, width:Float, height:Float)
  74. Function HPDF_Page_Stroke:ULongInt(handle:Byte Ptr)
  75. Function HPDF_Page_ClosePathStroke:ULongInt(handle:Byte Ptr)
  76. Function HPDF_Page_Fill:ULongInt(handle:Byte Ptr)
  77. Function HPDF_Page_Eofill:ULongInt(handle:Byte Ptr)
  78. Function HPDF_Page_FillStroke:ULongInt(handle:Byte Ptr)
  79. Function HPDF_Page_EofillStroke:ULongInt(handle:Byte Ptr)
  80. Function HPDF_Page_ClosePathFillStroke:ULongInt(handle:Byte Ptr)
  81. Function HPDF_Page_ClosePathEofillStroke:ULongInt(handle:Byte Ptr)
  82. Function HPDF_Page_EndPath:ULongInt(handle:Byte Ptr)
  83. Function HPDF_Page_GSave:ULongInt(handle:Byte Ptr)
  84. Function HPDF_Page_GRestore:ULongInt(handle:Byte Ptr)
  85. Function HPDF_Page_Clip:ULongInt(handle:Byte Ptr)
  86. Function HPDF_Page_Eoclip:ULongInt(handle:Byte Ptr)
  87. Function HPDF_Page_Circle:ULongInt(handle:Byte Ptr, x:Float, y:Float, r:Float)
  88. Function HPDF_Page_Ellipse:ULongInt(handle:Byte Ptr, x:Float, y:Float, xr:Float, yr:Float)
  89. Function HPDF_Page_Arc:ULongInt(handle:Byte Ptr, x:Float, y:Float, r:Float, a1:Float, a2:Float)
  90. Function HPDF_Page_TextOut:ULongInt(handle:Byte Ptr, xpos:Float, ypos:Float, t:Byte Ptr)
  91. Function HPDF_Page_TextRect:ULongInt(handle:Byte Ptr, left:Float, top:Float, right:Float, bottom:Float, t:Byte Ptr, align:EPDFTextAlignment, length:UInt Var)
  92. Function HPDF_Page_MeasureText:UInt(handle:Byte Ptr, t:Byte Ptr, width:Float, wordwrap:Int, realWidth:Float Ptr)
  93. Function HPDF_Page_CreateTextAnnot:Byte Ptr(handle:Byte Ptr, rect:SPDFRect, t:Byte Ptr, encoder:Byte Ptr)
  94. Function HPDF_Page_CreateLinkAnnot:Byte Ptr(handle:Byte Ptr, rect:SPDFRect, dest:Byte Ptr)
  95. Function HPDF_Page_CreateURILinkAnnot:Byte Ptr(handle:Byte Ptr, rect:SPDFRect, uri:Byte Ptr)
  96. Function HPDF_Page_GetGrayFill:Float(handle:Byte Ptr)
  97. Function HPDF_Page_GetGrayStroke:Float(handle:Byte Ptr)
  98. Function HPDF_Page_DrawImage:UInt(handle:Byte Ptr, image:Byte Ptr, x:Float, y:Float, width:Float, height:Float)
  99. Function HPDF_Page_SetFontAndSize:ULongInt(handle:Byte Ptr, font:Byte Ptr, size:Float)
  100. Function HPDF_Page_SetCharSpace:ULongInt(handle:Byte Ptr, value:Float)
  101. Function HPDF_Page_SetWordSpace:ULongInt(handle:Byte Ptr, value:Float)
  102. Function HPDF_Page_SetHorizontalScalling:ULongInt(handle:Byte Ptr, value:Float)
  103. Function HPDF_Page_SetTextLeading:ULongInt(handle:Byte Ptr, value:Float)
  104. Function HPDF_Page_GetCurrentFont:Byte Ptr(handle:Byte Ptr)
  105. Function HPDF_Page_GetCurrentFontSize:Float(handle:Byte Ptr)
  106. Function HPDF_Page_MoveTextPos:ULongInt(handle:Byte Ptr, x:Float, y:Float)
  107. Function HPDF_Page_MoveTextPos2:ULongInt(handle:Byte Ptr, x:Float, y:Float)
  108. Function HPDF_Page_SetTextMatrix:ULongInt(handle:Byte Ptr, a:Float, b:Float, c:Float, d:Float, x:Float, y:Float)
  109. Function HPDF_Page_MoveToNextLine:ULongInt(handle:Byte Ptr)
  110. Function HPDF_Page_MoveTo:ULongInt(handle:Byte Ptr, x:Float, y:Float)
  111. Function HPDF_Page_LineTo:ULongInt(handle:Byte Ptr, x:Float, y:Float)
  112. Function HPDF_Page_CurveTo:ULongInt(handle:Byte Ptr, x1:Float, y1:Float, x2:Float, y2:Float, x3:Float, y3:Float)
  113. Function HPDF_Page_CurveTo2:ULongInt(handle:Byte Ptr, x2:Float, y2:Float, x3:Float, y3:Float)
  114. Function HPDF_Page_CurveTo3:ULongInt(handle:Byte Ptr, x1:Float, y1:Float, x3:Float, y3:Float)
  115. Function HPDF_Page_SetDash:ULongInt(handle:Byte Ptr, dashes:Float Ptr, count:UInt, phase:Float)
  116. Function HPDF_Page_SetRGBFill:ULongInt(handle:Byte Ptr, r:Float, g:Float, b:Float)
  117. Function HPDF_Page_SetRGBStroke:ULongInt(handle:Byte Ptr, r:Float, g:Float, b:Float)
  118. Function HPDF_Page_SetCMYKFill:ULongInt(handle:Byte Ptr, c:Float, m:Float, y:Float, k:Float)
  119. Function HPDF_Page_SetCMYKStroke:ULongInt(handle:Byte Ptr, c:Float, m:Float, y:Float, k:Float)
  120. Function HPDF_Page_SetGrayFill:ULongInt(handle:Byte Ptr, gray:Float)
  121. Function HPDF_Page_SetGrayStroke:ULongInt(handle:Byte Ptr, gray:Float)
  122. Function HPDF_Page_GetLineWidth:Float(handle:Byte Ptr)
  123. Function HPDF_Page_GetCurrentPos:SPDFPoint(handle:Byte Ptr)
  124. Function HPDF_Page_GetCurrentTextPos:SPDFPoint(handle:Byte Ptr)
  125. Function HPDF_Page_GetRGBFill:SPDFRGBColor(handle:Byte Ptr)
  126. Function HPDF_Page_GetRGBStroke:SPDFRGBColor(handle:Byte Ptr)
  127. Function HPDF_Page_GetCMYKFill:SPDFCMYKColor(handle:Byte Ptr)
  128. Function HPDF_Page_GetCMYKStroke:SPDFCMYKColor(handle:Byte Ptr)
  129. Function HPDF_Page_SetTextRenderingMode:ULongInt(handle:Byte Ptr, mode:EPDFTextRenderingMode)
  130. Function HPDF_Page_SetExtGState:ULongInt(handle:Byte Ptr, gstate:Byte Ptr)
  131. Function HPDF_Page_GetStrokingColorSpace:EPDFColorSpace(handle:Byte Ptr)
  132. Function HPDF_Page_GetFillingColorSpace:EPDFColorSpace(handle:Byte Ptr)
  133. Function HPDF_Page_GetTextMatrix:SPDFTransMatrix(handle:Byte Ptr)
  134. Function HPDF_Page_GetGStateDepth:UInt(handle:Byte Ptr)
  135. Function HPDF_Page_GetTextRise:Float(handle:Byte Ptr)
  136. Function HPDF_Page_GetTextLeading:Float(handle:Byte Ptr)
  137. Function HPDF_Page_GetTextRenderingMode:EPDFTextRenderingMode(handle:Byte Ptr)
  138. Function HPDF_Page_GetHorizontalScalling:Float(handle:Byte Ptr)
  139. Function HPDF_Page_GetWordSpace:Float(handle:Byte Ptr)
  140. Function HPDF_Page_GetCharSpace:Float(handle:Byte Ptr)
  141. Function HPDF_Page_GetFlat:Float(handle:Byte Ptr)
  142. Function HPDF_Page_GetDash:SPDFDashMode(handle:Byte Ptr)
  143. Function HPDF_Page_GetMiterLimit:Float(handle:Byte Ptr)
  144. Function HPDF_Page_GetLineJoin:EPDFLineJoin(handle:Byte Ptr)
  145. Function HPDF_Page_GetLineCap:EPDFLineCap(handle:Byte Ptr)
  146. Function HPDF_Page_GetTransMatrix:SPDFTransMatrix(handle:Byte Ptr)
  147. Function HPDF_Page_GetGMode:Short(handle:Byte Ptr)
  148. Function HPDF_Page_SetFlat:ULongInt(handle:Byte Ptr, flatness:Float)
  149. Function HPDF_Page_Concat:ULongInt(handle:Byte Ptr, a:Float, b:Float, c:Float, d:Float, x:Float, y:Float)
  150. Function HPDF_Page_SetSize:ULongInt(handle:Byte Ptr, size:EPDFPageSize, direction:EPDFPageDirection)
  151. Function HPDF_Page_CreateDestination:Byte Ptr(handle:Byte Ptr)
  152. Function HPDF_SetOpenAction:ULongInt(handle:Byte Ptr, action:Byte Ptr)
  153. Function HPDF_Page_SetSlideShow:ULongInt(handle:Byte Ptr, style:EPDFTransitionStyle, dispTime:Float, transTime:Float)
  154. Function HPDF_Page_SetBoundary:ULongInt(handle:Byte Ptr, boundary:EPDFPageBoundary, left:Float, bottom:Float, right:Float, top:Float)
  155. Function HPDF_Font_MeasureText:UInt(handle:Byte Ptr, t:Byte Ptr, length:UInt, width:Float, fontSize:Float, charSpace:Float, wordSpace:Float, wordwrap:Int, realWidth:Float Ptr)
  156. Function HPDF_Font_GetFontName:Byte Ptr(handle:Byte Ptr)
  157. Function HPDF_Font_GetEncodingName:Byte Ptr(handle:Byte Ptr)
  158. Function HPDF_Font_GetBBox:SPDFRect(handle:Byte Ptr)
  159. Function HPDF_Font_GetAscent:Int(handle:Byte Ptr)
  160. Function HPDF_Font_GetDescent:Int(handle:Byte Ptr)
  161. Function HPDF_Font_GetXHeight:UInt(handle:Byte Ptr)
  162. Function HPDF_Font_GetCapHeight:UInt(handle:Byte Ptr)
  163. Function HPDF_Font_TextWidth:SPDFTextWidth(handle:Byte Ptr, t:Byte Ptr, length:UInt)
  164. Function HPDF_ExtGState_SetAlphaStroke:ULongInt(handle:Byte Ptr, value:Float)
  165. Function HPDF_ExtGState_SetAlphaFill:ULongInt(handle:Byte Ptr, value:Float)
  166. Function HPDF_ExtGState_SetBlendMode:ULongInt(handle:Byte Ptr, mode:EPDFBlendMode)
  167. Function HPDF_Destination_SetXYZ:ULongInt(handle:Byte Ptr, left:Float, top:Float, zoom:Float)
  168. Function HPDF_Destination_SetFit:ULongInt(handle:Byte Ptr)
  169. Function HPDF_Destination_SetFitH:ULongInt(handle:Byte Ptr, top:Float)
  170. Function HPDF_Destination_SetFitV:ULongInt(handle:Byte Ptr, left:Float)
  171. Function HPDF_Destination_SetFitR:ULongInt(handle:Byte Ptr, left:Float, bottom:Float, right:Float, top:Float)
  172. Function HPDF_Destination_SetFitB:ULongInt(handle:Byte Ptr)
  173. Function HPDF_Destination_SetFitBH:ULongInt(handle:Byte Ptr, top:Float)
  174. Function HPDF_Destination_SetFitBV:ULongInt(handle:Byte Ptr, left:Float)
  175. Function HPDF_Outline_SetOpened:ULongInt(handle:Byte Ptr, opened:Int)
  176. Function HPDF_Outline_SetDestination:ULongInt(handle:Byte Ptr, dest:Byte Ptr)
  177. Function HPDF_LinkAnnot_SetHighlightMode:ULongInt(handle:Byte Ptr, mode:EPDFAnnotHighlightMode)
  178. Function HPDF_LinkAnnot_SetBorderStyle:ULongInt(handle:Byte Ptr, width:Float, dashOn:Short, dashOff:Short)
  179. Function HPDF_TextAnnot_SetIcon:ULongInt(handle:Byte Ptr, icon:EPDFAnnotIcon)
  180. Function HPDF_TextAnnot_SetOpened:ULongInt(handle:Byte Ptr, open:Int)
  181. Function HPDF_Annotation_SetBorderStyle:ULongInt(handle:Byte Ptr, subtype:EPDFBSSubtype, width:Float, dashOn:Short, dashOff:Short, dashPhase:Short)
  182. Function HPDF_Encoder_GetType:EPDFEncoderType(handle:Byte Ptr)
  183. Function HPDF_Encoder_GetByteType:EPDFByteType(handle:Byte Ptr, text:Byte Ptr, index:UInt)
  184. Function HPDF_Encoder_GetUnicode:Short(handle:Byte Ptr, code:Short)
  185. Function HPDF_Encoder_GetWritingMode:EPDFWritingMode(handle:Byte Ptr)
  186. Function HPDF_Image_GetWidth:UInt(handle:Byte Ptr)
  187. Function HPDF_Image_GetHeight:UInt(handle:Byte Ptr)
  188. Function HPDF_Image_GetBitsPerComponent:UInt(handle:Byte Ptr)
  189. Function HPDF_Image_GetSize:SPDFPoint(handle:Byte Ptr)
  190. Function HPDF_Image_GetColorSpace:Byte Ptr(handle:Byte Ptr)
  191. Function HPDF_Image_SetColorMask:UInt(handle:Byte Ptr, rmin:UInt, rmax:UInt, gmin:UInt, gmax:UInt, bmin:UInt, bmax:UInt)
  192. Function HPDF_Image_SetMaskImage:UInt(handle:Byte Ptr, mask:Byte Ptr)
  193. End Extern
  194. Rem
  195. bbdoc:
  196. End Rem
  197. Enum EPDFLineCap
  198. BUTT_END
  199. ROUND_END
  200. PROJECTING_SQUARE_END
  201. End Enum
  202. Rem
  203. bbdoc:
  204. End Rem
  205. Enum EPDFLineJoin
  206. MITER_JOIN
  207. ROUND_JOIN
  208. BEVEL_JOIN
  209. End Enum
  210. Rem
  211. bbdoc:
  212. End Rem
  213. Struct SPDFPoint
  214. Field x:Float
  215. Field y:Float
  216. Method New()
  217. End Method
  218. Method New(x:Float, y:Float)
  219. Self.x = x
  220. Self.y = y
  221. End Method
  222. End Struct
  223. Rem
  224. bbdoc:
  225. End Rem
  226. Struct SPDFRGBColor
  227. Field r:Float
  228. Field g:Float
  229. Field b:Float
  230. End Struct
  231. Rem
  232. bbdoc:
  233. End Rem
  234. Struct SPDFCMYKColor
  235. Field c:Float
  236. Field m:Float
  237. Field y:Float
  238. Field k:Float
  239. End Struct
  240. Rem
  241. bbdoc:
  242. End Rem
  243. Struct SPDFTransMatrix
  244. Field a:Float
  245. Field b:Float
  246. Field c:Float
  247. Field d:Float
  248. Field x:Float
  249. Field y:Float
  250. End Struct
  251. Rem
  252. bbdoc:
  253. End Rem
  254. Struct SPDF3DMatrix
  255. Field a:Float
  256. Field b:Float
  257. Field c:Float
  258. Field d:Float
  259. Field e:Float
  260. Field f:Float
  261. Field g:Float
  262. Field h:Float
  263. Field i:Float
  264. Field tx:Float
  265. Field ty:Float
  266. Field tz:Float
  267. End Struct
  268. Rem
  269. bbdoc:
  270. End Rem
  271. Struct SPDFDashMode
  272. Field StaticArray ptn:Float[8]
  273. Field numPtn:UInt
  274. Field phase:Float
  275. End Struct
  276. Rem
  277. bbdoc:
  278. End Rem
  279. Struct SPDFRect
  280. Field left:Float
  281. Field bottom:Float
  282. Field right:Float
  283. Field top:Float
  284. Method New(left:Float, bottom:Float, right:Float, top:Float)
  285. Self.left = left
  286. Self.bottom = bottom
  287. Self.right = right
  288. Self.top = top
  289. End Method
  290. End Struct
  291. Rem
  292. bbdoc:
  293. End Rem
  294. Struct SPDFTextWidth
  295. Field numChars:UInt
  296. Field _numwords:UInt ' unused
  297. Field width:UInt
  298. Field numSpace:UInt
  299. End Struct
  300. Struct SPDFDate
  301. Field year:Int
  302. Field month:Int
  303. Field day:Int
  304. Field hour:Int
  305. Field minutes:Int
  306. Field seconds:Int
  307. Field ind:Byte
  308. Field offHour:Int
  309. Field offMinutes:Int
  310. End Struct
  311. Rem
  312. bbdoc: Compression mode.
  313. End Rem
  314. Enum EPDFCompressionMode Flags
  315. NONE = $00
  316. TEXT = $01
  317. IMAGE = $02
  318. METADATA = $04
  319. ALL = $0F
  320. End Enum
  321. Rem
  322. bbdoc:
  323. End Rem
  324. Enum EPDFTextAlignment
  325. LEFT
  326. RIGHT
  327. CENTER
  328. JUSTIFY
  329. End Enum
  330. Rem
  331. bbdoc:
  332. End Rem
  333. Enum EPDFTextRenderingMode
  334. FILL
  335. STROKE
  336. FILL_THEN_STROKE
  337. INVISIBLE
  338. FILL_CLIPPING
  339. STROKE_CLIPPING
  340. FILL_STROKE_CLIPPING
  341. CLIPPING
  342. End Enum
  343. Rem
  344. bbdoc:
  345. End Rem
  346. Enum EPDFPageSize
  347. LETTER
  348. LEGAL
  349. A3
  350. A4
  351. A5
  352. B4
  353. B5
  354. EXECUTIVE
  355. US4x6
  356. US4x8
  357. US5x7
  358. COMM10
  359. End Enum
  360. Rem
  361. bbdoc:
  362. End Rem
  363. Enum EPDFPageDirection
  364. PORTRAIT
  365. LANDSCAPE
  366. End Enum
  367. Rem
  368. bbdoc:
  369. End Rem
  370. Enum EPDFBlendMode
  371. NORMAL
  372. MULTIPLY
  373. SCREEN
  374. OVERLAY
  375. DARKEN
  376. LIGHTEN
  377. COLOR_DODGE
  378. COLOR_BUM
  379. HARD_LIGHT
  380. SOFT_LIGHT
  381. DIFFERENCE
  382. EXCLUSION
  383. End Enum
  384. Rem
  385. bbdoc:
  386. End Rem
  387. Enum EPDFWritingMode
  388. HORIZONTAL
  389. VERTICAL
  390. End Enum
  391. Rem
  392. bbdoc:
  393. End Rem
  394. Enum EPDFPageLayout
  395. SINGLE
  396. ONE_COLUMN
  397. TWO_COLUMN_LEFT
  398. TWO_COLUMN_RIGHT
  399. TWO_PAGE_LEFT
  400. TWO_PAGE_RIGHT
  401. End Enum
  402. Rem
  403. bbdoc: Document page mode.
  404. End Rem
  405. Enum EPDFPageMode
  406. USE_NONE
  407. USE_OUTLINE
  408. USE_THUMBS
  409. FULL_SCREEN
  410. End Enum
  411. Rem
  412. bbdoc:
  413. End Rem
  414. Enum EPDFPageNumStyle
  415. DECIMAL
  416. UPPER_ROMAN
  417. LOWER_ROMAN
  418. UPPER_LETTERS
  419. LOWER_LETTERS
  420. End Enum
  421. Rem
  422. bbdoc:
  423. End Rem
  424. Enum EPDFColorSpace
  425. DEVICE_GRAY
  426. DEVICE_RGB
  427. DEVICE_CMYK
  428. CAL_GRAY
  429. CAL_RGB
  430. LAB
  431. ICC_BASED
  432. SEPARATION
  433. DEVICE_N
  434. INDEXED
  435. PATTERN
  436. End Enum
  437. Rem
  438. bbdoc:
  439. End Rem
  440. Enum EPDFEncryptMode
  441. R2
  442. R3
  443. End Enum
  444. Rem
  445. bbdoc:
  446. End Rem
  447. Enum EPDFInfoType
  448. CREATION_DATE
  449. MOD_DATE
  450. AUTHOR
  451. CREATOR
  452. PRODUCER
  453. TITLE
  454. SUBJECT
  455. KEYWORDS
  456. TRAPPED
  457. GTS_PDFX
  458. End Enum
  459. Rem
  460. bbdoc:
  461. End Rem
  462. Enum EPDFTransitionStyle
  463. WIPE_RIGHT
  464. WIPE_UP
  465. WIPE_LEFT
  466. WIPE_DOWN
  467. BARN_DOORS_HORIZONTAL_OUT
  468. BARN_DOORS_HORIZONTAL_IN
  469. BARN_DOORS_VERTICAL_OUT
  470. BARN_DOORS_VERTICAL_IN
  471. BOX_OUT
  472. BOX_IN
  473. BLINDS_HORIZONTAL
  474. BLINDS_VERTICAL
  475. DISSOLVE
  476. GLITTER_RIGHT
  477. GLITTER_DOWN
  478. GLITTER_TOP_LEFT_TO_BOTTOM_RIGHT
  479. REPLACE
  480. End Enum
  481. Rem
  482. bbdoc:
  483. End Rem
  484. Enum EPDFAnnotHighlightMode
  485. NO_HIGHTLIGHT
  486. INVERT_BOX
  487. INVERT_BORDER
  488. DOWN_APPEARANCE
  489. End Enum
  490. Rem
  491. bbdoc:
  492. End Rem
  493. Enum EPDFAnnotIcon
  494. COMMENT
  495. KEY
  496. NOTE
  497. HELP
  498. NEW_PARAGRAPH
  499. PARAGRAPH
  500. INSERT
  501. End Enum
  502. Rem
  503. bbdoc:
  504. End Rem
  505. Enum EPDFBSSubtype
  506. SOLID
  507. DASHED
  508. BEVELED
  509. INSET
  510. UNDERLINED
  511. End Enum
  512. Rem
  513. bbdoc:
  514. End Rem
  515. Enum EPDFEncoderType
  516. SINGLE_BYTE
  517. DOUBLE_BYTE
  518. UNINITIALIZED
  519. End Enum
  520. Rem
  521. bbdoc:
  522. End Rem
  523. Enum EPDFByteType
  524. SINGLE
  525. LEAD
  526. TRAIL
  527. End Enum
  528. Rem
  529. bbdoc:
  530. End Rem
  531. Enum EPDFPageBoundary
  532. MEDIABOX
  533. CROPBOX
  534. BLEEDBOX
  535. TRIMBOX
  536. ARTBOX
  537. End Enum
  538. Rem
  539. bbdoc: Succeeded.
  540. End Rem
  541. Const HPDF_OK:ULongInt = 0
  542. Rem
  543. bbdoc: Internal error. Data consistency was lost.
  544. End Rem
  545. Const HPDF_ARRAY_COUNT_ERR:ULongInt = $1001
  546. Rem
  547. bbdoc: Internal error. Data consistency was lost.
  548. End Rem
  549. Const HPDF_ARRAY_ITEM_NOT_FOUND:ULongInt = $1002
  550. Rem
  551. bbdoc: Internal error. Data consistency was lost.
  552. End Rem
  553. Const HPDF_ARRAY_ITEM_UNEXPECTED_TYPE:ULongInt = $1003
  554. Rem
  555. bbdoc: Data length > HPDF_LIMIT_MAX_STRING_LEN.
  556. End Rem
  557. Const HPDF_BINARY_LENGTH_ERR:ULongInt = $1004
  558. Rem
  559. bbdoc: Cannot get pallet data from PNG image.
  560. End Rem
  561. Const HPDF_CANNOT_GET_PALLET:ULongInt = $1005
  562. Rem
  563. bbdoc: Dictionary elements > HPDF_LIMIT_MAX_DICT_ELEMENT
  564. End Rem
  565. Const HPDF_DICT_COUNT_ERR:ULongInt = $1007
  566. Rem
  567. bbdoc: Internal error. Data consistency was lost.
  568. End Rem
  569. Const HPDF_DICT_ITEM_NOT_FOUND:ULongInt = $1008
  570. Rem
  571. bbdoc: Internal error. Data consistency was lost.
  572. End Rem
  573. Const HPDF_DICT_ITEM_UNEXPECTED_TYPE:ULongInt = $1009
  574. Rem
  575. bbdoc: Internal error. Data consistency was lost.
  576. End Rem
  577. Const HPDF_DICT_STREAM_LENGTH_NOT_FOUND:ULongInt = $100A
  578. Rem
  579. bbdoc: HPDF_SetEncryptMode() or HPDF_SetPermission() called before password set.
  580. End Rem
  581. Const HPDF_DOC_ENCRYPTDICT_NOT_FOUND:ULongInt = $100B
  582. Rem
  583. bbdoc: Internal error. Data consistency was lost.
  584. End Rem
  585. Const HPDF_DOC_INVALID_OBJECT:ULongInt = $100C
  586. Rem
  587. bbdoc: Tried to re-register a registered font.
  588. End Rem
  589. Const HPDF_DUPLICATE_REGISTRATION:ULongInt = $100E
  590. Rem
  591. bbdoc: Cannot register a character to the Japanese word wrap characters list.
  592. End Rem
  593. Const HPDF_EXCEED_JWW_CODE_NUM_LIMIT:ULongInt = $100F
  594. Rem
  595. bbdoc: Tried to set the owner password to Null, or Owner and user password are the same.
  596. End Rem
  597. Const HPDF_ENCRYPT_INVALID_PASSWORD:ULongInt = $1011
  598. Rem
  599. bbdoc: Internal error. Data consistency was lost.
  600. End Rem
  601. Const HPDF_ERR_UNKNOWN_CLASS:ULongInt = $1013
  602. Rem
  603. bbdoc: Stack depth > HPDF_LIMIT_MAX_GSTATE.
  604. End Rem
  605. Const HPDF_EXCEED_GSTATE_LIMIT:ULongInt = $1014
  606. Rem
  607. bbdoc: Memory allocation failed.
  608. End Rem
  609. Const HPDF_FAILD_TO_ALLOC_MEM:ULongInt = $1015
  610. Rem
  611. bbdoc: File processing failed. (Detailed code is set.)
  612. End Rem
  613. Const HPDF_FILE_IO_ERROR:ULongInt = $1016
  614. Rem
  615. bbdoc: Cannot open a file. (Detailed code is set.)
  616. End Rem
  617. Const HPDF_FILE_OPEN_ERROR:ULongInt = $1017
  618. Rem
  619. bbdoc: Tried to load a font that has been registered.
  620. End Rem
  621. Const HPDF_FONT_EXISTS:ULongInt = $1019
  622. Rem
  623. bbdoc: Font-file format is invalid.
  624. about: Internal error. Data consistency was lost.
  625. End Rem
  626. Const HPDF_FONT_INVALID_WIDTHS_TABLE:ULongInt = $101A
  627. Rem
  628. bbdoc: Cannot recognize header of afm file.
  629. End Rem
  630. Const HPDF_INVALID_AFM_HEADER:ULongInt = $101B
  631. Rem
  632. bbdoc: Specified annotation handle is invalid.
  633. End Rem
  634. Const HPDF_INVALID_ANNOTATION:ULongInt = $101C
  635. Rem
  636. bbdoc: Bit-per-component of a image which was set as mask-image is invalid.
  637. End Rem
  638. Const HPDF_INVALID_BIT_PER_COMPONENT:ULongInt = $101E
  639. Rem
  640. bbdoc: Cannot recognize char-matrics-data of afm file.
  641. End Rem
  642. Const HPDF_INVALID_CHAR_MATRICS_DATA:ULongInt = $101F
  643. Rem
  644. bbdoc: Invalid color_space parameter of HPDF_LoadRawImage.
  645. about: Color-space of a image which was set as mask-image is invalid.
  646. Invoked function invalid in present color-space.
  647. End Rem
  648. Const HPDF_INVALID_COLOR_SPACE:ULongInt = $1020
  649. Rem
  650. bbdoc: Invalid value set when invoking HPDF_SetCommpressionMode().
  651. End Rem
  652. Const HPDF_INVALID_COMPRESSION_MODE:ULongInt = $1021
  653. Rem
  654. bbdoc: An invalid date-time value was set.
  655. End Rem
  656. Const HPDF_INVALID_DATE_TIME:ULongInt = $1022
  657. Rem
  658. bbdoc: An invalid destination handle was set.
  659. End Rem
  660. Const HPDF_INVALID_DESTINATION:ULongInt = $1023
  661. Rem
  662. bbdoc: An invalid document handle was set.
  663. End Rem
  664. Const HPDF_INVALID_DOCUMENT:ULongInt = $1025
  665. Rem
  666. bbdoc: Function invalid in the present state was invoked.
  667. End Rem
  668. Const HPDF_INVALID_DOCUMENT_STATE:ULongInt = $1026
  669. Rem
  670. bbdoc: An invalid encoder handle was set.
  671. End Rem
  672. Const HPDF_INVALID_ENCODER:ULongInt = $1027
  673. Rem
  674. bbdoc: Combination between font and encoder is wrong.
  675. End Rem
  676. Const HPDF_INVALID_ENCODER_TYPE:ULongInt = $1028
  677. Rem
  678. bbdoc: An Invalid encoding name is specified.
  679. End Rem
  680. Const HPDF_INVALID_ENCODING_NAME:ULongInt = $102B
  681. Rem
  682. bbdoc: Encryption key length is invalid.
  683. End Rem
  684. Const HPDF_INVALID_ENCRYPT_KEY_LEN:ULongInt = $102C
  685. Rem
  686. bbdoc: An invalid font handle was set.
  687. about: Unsupported font format.
  688. End Rem
  689. Const HPDF_INVALID_FONTDEF_DATA:ULongInt = $102D
  690. Rem
  691. bbdoc: Internal error. Data consistency was lost.
  692. End Rem
  693. Const HPDF_INVALID_FONTDEF_TYPE:ULongInt = $102E
  694. Rem
  695. bbdoc: Font with the specified name is not found.
  696. End Rem
  697. Const HPDF_INVALID_FONT_NAME:ULongInt = $102F
  698. Rem
  699. bbdoc: Unsupported image format.
  700. End Rem
  701. Const HPDF_INVALID_IMAGE:ULongInt = $1030
  702. Rem
  703. bbdoc: Unsupported image format.
  704. End Rem
  705. Const HPDF_INVALID_JPEG_DATA:ULongInt = $1031
  706. Rem
  707. bbdoc: Cannot read a postscript-name from an afm file.
  708. End Rem
  709. Const HPDF_INVALID_N_DATA:ULongInt = $1032
  710. Rem
  711. bbdoc: An invalid object is set.
  712. about: Internal error. Data consistency was lost.
  713. End Rem
  714. Const HPDF_INVALID_OBJECT:ULongInt = $1033
  715. Rem
  716. bbdoc: Internal error. Data consistency was lost.
  717. End Rem
  718. Const HPDF_INVALID_OBJ_ID:ULongInt = $1034
  719. Rem
  720. bbdoc: Invoked HPDF_Image_SetColorMask() against the image-object which was set a mask-image.
  721. End Rem
  722. Const HPDF_INVALID_OPERATION:ULongInt = $1035
  723. Rem
  724. bbdoc: An invalid outline-handle was specified.
  725. End Rem
  726. Const HPDF_INVALID_OUTLINE:ULongInt = $1036
  727. Rem
  728. bbdoc: An invalid page-handle was specified.
  729. End Rem
  730. Const HPDF_INVALID_PAGE:ULongInt = $1037
  731. Rem
  732. bbdoc: An invalid pages-handle was specified. (internal error)
  733. End Rem
  734. Const HPDF_INVALID_PAGES:ULongInt = $1038
  735. Rem
  736. bbdoc: An invalid value is set.
  737. End Rem
  738. Const HPDF_INVALID_PARAMETER:ULongInt = $1039
  739. Rem
  740. bbdoc: Invalid PNG image format.
  741. End Rem
  742. Const HPDF_INVALID_PNG_IMAGE:ULongInt = $103B
  743. Rem
  744. bbdoc: Internal error. Data consistency was lost.
  745. End Rem
  746. Const HPDF_INVALID_STREAM:ULongInt = $103C
  747. Rem
  748. bbdoc: Internal error. "_FILE_NAME" entry for delayed loading is missing.
  749. End Rem
  750. Const HPDF_MISSING_FILE_NAME_ENTRY:ULongInt = $103D
  751. Rem
  752. bbdoc: Invalid .TTC file format.
  753. End Rem
  754. Const HPDF_INVALID_TTC_FILE:ULongInt = $103F
  755. Rem
  756. bbdoc: Index parameter > number of included fonts.
  757. End Rem
  758. Const HPDF_INVALID_TTC_INDEX:ULongInt = $1040
  759. Rem
  760. bbdoc: Cannot read a width-data from an afm file.
  761. End Rem
  762. Const HPDF_INVALID_WX_DATA:ULongInt = $1041
  763. Rem
  764. bbdoc: Internal error. Data consistency was lost.
  765. End Rem
  766. Const HPDF_ITEM_NOT_FOUND:ULongInt = $1042
  767. Rem
  768. bbdoc: Error returned from PNGLIB while loading image.
  769. End Rem
  770. Const HPDF_LIBPNG_ERROR:ULongInt = $1043
  771. Rem
  772. bbdoc: Internal error. Data consistency was lost.
  773. End Rem
  774. Const HPDF_NAME_INVALID_VALUE:ULongInt = $1044
  775. Rem
  776. bbdoc: Internal error. Data consistency was lost.
  777. End Rem
  778. Const HPDF_NAME_OUT_OF_RANGE:ULongInt = $1045
  779. Rem
  780. bbdoc: Internal error. Data consistency was lost.
  781. End Rem
  782. Const HPDF_PAGES_MISSING_KIDS_ENTRY:ULongInt = $1049
  783. Rem
  784. bbdoc: Internal error. Data consistency was lost.
  785. End Rem
  786. Const HPDF_PAGE_CANNOT_FIND_OBJECT:ULongInt = $104A
  787. Rem
  788. bbdoc: Internal error. Data consistency was lost.
  789. End Rem
  790. Const HPDF_PAGE_CANNOT_GET_ROOT_PAGES:ULongInt = $104B
  791. Rem
  792. bbdoc: There are no graphics-states to be restored.
  793. End Rem
  794. Const HPDF_PAGE_CANNOT_RESTORE_GSTATE:ULongInt = $104C
  795. Rem
  796. bbdoc: Internal error. Data consistency was lost.
  797. End Rem
  798. Const HPDF_PAGE_CANNOT_SET_PARENT:ULongInt = $104D
  799. Rem
  800. bbdoc: The current font is not set.
  801. End Rem
  802. Const HPDF_PAGE_FONT_NOT_FOUND:ULongInt = $104E
  803. Rem
  804. bbdoc: An invalid font-handle was specified.
  805. End Rem
  806. Const HPDF_PAGE_INVALID_FONT:ULongInt = $104F
  807. Rem
  808. bbdoc: An invalid font-size was set.
  809. End Rem
  810. Const HPDF_PAGE_INVALID_FONT_SIZE:ULongInt = $1050
  811. Rem
  812. bbdoc: See Graphics mode.
  813. End Rem
  814. Const HPDF_PAGE_INVALID_GMODE:ULongInt = $1051
  815. Rem
  816. bbdoc: Internal error. Data consistency was lost.
  817. End Rem
  818. Const HPDF_PAGE_INVALID_INDEX:ULongInt = $1052
  819. Rem
  820. bbdoc: Specified value is not multiple of 90.
  821. End Rem
  822. Const HPDF_PAGE_INVALID_ROTATE_VALUE:ULongInt = $1053
  823. Rem
  824. bbdoc: An invalid page-size was set.
  825. End Rem
  826. Const HPDF_PAGE_INVALID_SIZE:ULongInt = $1054
  827. Rem
  828. bbdoc: An invalid image-handle was set.
  829. End Rem
  830. Const HPDF_PAGE_INVALID_XOBJECT:ULongInt = $1055
  831. Rem
  832. bbdoc: The specified value is out of range.
  833. End Rem
  834. Const HPDF_PAGE_OUT_OF_RANGE:ULongInt = $1056
  835. Rem
  836. bbdoc: The specified value is out of range.
  837. End Rem
  838. Const HPDF_REAL_OUT_OF_RANGE:ULongInt = $1057
  839. Rem
  840. bbdoc: Unexpected EOF marker was detected.
  841. End Rem
  842. Const HPDF_STREAM_EOF:ULongInt = $1058
  843. Rem
  844. bbdoc: Internal error. Data consistency was lost.
  845. End Rem
  846. Const HPDF_STREAM_READLN_CONTINUE:ULongInt = $1059
  847. Rem
  848. bbdoc: The length of the text is too long.
  849. End Rem
  850. Const HPDF_STRING_OUT_OF_RANGE:ULongInt = $105B
  851. Rem
  852. bbdoc: Function not executed because of other errors.
  853. End Rem
  854. Const HPDF_THIS_FUNC_WAS_SKIPPED:ULongInt = $105C
  855. Rem
  856. bbdoc: Font cannot be embedded. (license restriction)
  857. End Rem
  858. Const HPDF_TTF_CANNOT_EMBEDDING_FONT:ULongInt = $105D
  859. Rem
  860. bbdoc: Unsupported ttf format. (cannot find unicode cmap)
  861. End Rem
  862. Const HPDF_TTF_INVALID_CMAP:ULongInt = $105E
  863. Rem
  864. bbdoc: Unsupported ttf format.
  865. End Rem
  866. Const HPDF_TTF_INVALID_FOMAT:ULongInt = $105F
  867. Rem
  868. bbdoc: Unsupported ttf format. (cannot find a necessary table)
  869. End Rem
  870. Const HPDF_TTF_MISSING_TABLE:ULongInt = $1060
  871. Rem
  872. bbdoc: Internal error. Data consistency was lost.
  873. End Rem
  874. Const HPDF_UNSUPPORTED_FONT_TYPE:ULongInt = $1061
  875. Rem
  876. bbdoc: Library not configured to use PNGLIB.
  877. about: Internal error. Data consistency was lost.
  878. End Rem
  879. Const HPDF_UNSUPPORTED_FUNC:ULongInt = $1062
  880. Rem
  881. bbdoc: Unsupported JPEG format.
  882. End Rem
  883. Const HPDF_UNSUPPORTED_JPEG_FORMAT:ULongInt = $1063
  884. Rem
  885. bbdoc: Failed to parse .PFB file.
  886. End Rem
  887. Const HPDF_UNSUPPORTED_TYPE1_FONT:ULongInt = $1064
  888. Rem
  889. bbdoc: Internal error. Data consistency was lost.
  890. End Rem
  891. Const HPDF_XREF_COUNT_ERR:ULongInt = $1065
  892. Rem
  893. bbdoc: Error while executing ZLIB function.
  894. End Rem
  895. Const HPDF_ZLIB_ERROR:ULongInt = $1066
  896. Rem
  897. bbdoc: An invalid page index was passed.
  898. End Rem
  899. Const HPDF_INVALID_PAGE_INDEX:ULongInt = $1067
  900. Rem
  901. bbdoc: An invalid URI was set.
  902. End Rem
  903. Const HPDF_INVALID_URI:ULongInt = $1068
  904. Rem
  905. bbdoc: An invalid page-layout was set.
  906. End Rem
  907. Const HPDF_PAGELAYOUT_OUT_OF_RANGE:ULongInt = $1069
  908. Rem
  909. bbdoc: An invalid page-mode was set.
  910. End Rem
  911. Const HPDF_PAGEMODE_OUT_OF_RANGE:ULongInt = $1070
  912. Rem
  913. bbdoc: An invalid page-num-style was set.
  914. End Rem
  915. Const HPDF_PAGENUM_STYLE_OUT_OF_RANGE:ULongInt = $1071
  916. Rem
  917. bbdoc: An invalid icon was set.
  918. End Rem
  919. Const HPDF_ANNOT_INVALID_ICON:ULongInt = $1072
  920. Rem
  921. bbdoc: An invalid border-style was set.
  922. End Rem
  923. Const HPDF_ANNOT_INVALID_BORDER_STYLE:ULongInt = $1073
  924. Rem
  925. bbdoc: An invalid page-direction was set.
  926. End Rem
  927. Const HPDF_PAGE_INVALID_DIRECTION:ULongInt = $1074
  928. Rem
  929. bbdoc: An invalid font-handle was specified.
  930. End Rem
  931. Const HPDF_INVALID_FONT:ULongInt = $1075
  932. Const HPDF_PAGE_INSUFFICIENT_SPACE:ULongInt = $1076
  933. Const HPDF_PAGE_INVALID_DISPLAY_TIME:ULongInt = $1077
  934. Const HPDF_PAGE_INVALID_TRANSITION_TIME:ULongInt = $1078
  935. Const HPDF_INVALID_PAGE_SLIDESHOW_TYPE:ULongInt = $1079
  936. Const HPDF_EXT_GSTATE_OUT_OF_RANGE:ULongInt = $1080
  937. Const HPDF_INVALID_EXT_GSTATE:ULongInt = $1081
  938. Const HPDF_EXT_GSTATE_READ_ONLY:ULongInt = $1082
  939. Const HPDF_INVALID_U3D_DATA:ULongInt = $1083
  940. Const HPDF_NAME_CANNOT_GET_NAMES:ULongInt = $1084
  941. Const HPDF_INVALID_ICC_COMPONENT_NUM:ULongInt = $1085
  942. Const HPDF_INVALID_SHADING_TYPE:ULongInt = $1088
  943. Rem
  944. bbdoc: The default line width.
  945. End Rem
  946. Const HPDF_DEF_LINEWIDTH:Float = 1