Module: PdflibMini::Info

Defined in:
lib/pdflib_mini/info.rb

Constant Summary collapse

INFO_KEYWORD_TABLE_4_5 =

4.1 Font Handling Table4.5 Keywords and options for PDF_info_font()

[
  ['ascender', :raw],
  ['capheight', :raw],
  ['cid', :raw],
  ['cidfont', :boolean],
  ['code', :raw],
  ['codepage', :raw], # TODO three-valued logic
  ['codepagelist', :raw],
  ['checkcolorspace', :boolean],
  ['descender', :raw],
  ['encoding', :string],
  ['fallbackfont', :font],
  ['familyname', :string],
  ['feature', :raw], # TODO three-valued logic
  ['featurelist', :string],
  ['fontfile', :string],
  ['fontname', :string],
  ['fontstyle', :string],
  ['fonttype', :string],
  ['glyphid', :raw],
  ['glyphname', :string],
  ['hostfont', :boolean],
  ['italicangle', :raw],
  ['keepnative', :raw],
  ['kerningpairs', :raw],
  ['linegap', :raw],
  ['maingid', :raw],
  ['maxcode', :raw],
  ['metricsfile', :string],
  ['maxuvsunicode', :raw],
  ['minuvsunicode', :raw],
  ['monospace', :raw], # Deprecated
  ['numcids', :raw],
  ['numglyphs', :raw],
  ['numusableglyphs', :raw],
  ['numusedglyphs', :raw],
  ['outlineformat', :string],
  ['predefcmap', :string],
  ['replacementchar', :raw],
  ['selector', :raw],
  ['selectorlist', :string],
  ['shapingsupport', :boolean],
  ['singfont', :boolean],
  ['standardfont', :boolean],
  ['supplement', :raw],
  ['symbolfont', :boolean],
  ['unicode', :raw],
  ['unicodefont', :raw],
  ['unmappedglyphs', :raw],
  ['usedglyph', :boolean],
  ['vertical', :raw],
  ['weight', :raw],
  ['willembed', :boolean],
  ['willsubset', :boolean],
  ['xheight', :raw],
]
INFO_KEYWORD_TABLE_5_5 =

5.1 Single-Line Text with Textlines Table 5.5 Keywords for PDF_info_textline()

[
  ['angle', :raw],
  ['ascender', :raw],
  ['capheight', :raw],
  ['descender', :raw],
  ['endx', :raw],
  ['endy', :raw],
  ['pathlength', :raw],
  ['perpendiculardirx', :raw],
  ['perpendiculardiry', :raw],
  ['replacedchars', :raw],
  ['righttoleft', :raw],
  ['scalex', :raw], # Deprecated, use fitscalex
  ['scaley', :raw], # Deprecated, use fitscaley
  ['scriptlist', :raw],
  ['startx', :raw],
  ['starty', :raw],
  ['textwidth', :raw],
  ['textheight', :raw],
  ['unknownchars', :raw],
  ['unmappedchars', :raw],
  ['wellformed', :boolean],
  ['writingdirx', :raw],
  ['writingdiry', :raw],
  ['xheight', :raw],
]
INFO_KEYWORD_TABLE_5_14 =

5.2 Multi-Line Text with Textflows Table 5.14 Keywords for PDF_info_textflow()

[
  ['boundingbox', :raw],
  ['boxlinecount', :raw],
  ['firstparalinecount', :raw],
  ['firstlinedist', :raw],
  ['fittext', :string],
  ['fontscale', :raw],
  ['lastfont', :font],
  ['lastfontsize', :raw],
  ['lastmark', :raw],
  ['lastlinedist', :raw],
  ['lastparalinecount', :raw],
  ['leading', :raw],
  ['leftlinex', :raw],
  ['leftliney', :raw],
  ['maxlinelength', :raw],
  ['maxliney', :raw],
  ['minlinelength', :raw],
  ['minliney', :raw],
  ['returnreason', :string],
  ['rightlinex', :raw],
  ['rightliney', :raw],
  ['split', :boolean],
  ['textendx', :raw],
  ['textendy', :raw],
  ['textheight', :raw],
  ['textwidth', :raw],
  ['used', :raw],
  ['x1', :raw],
  ['y1', :raw],
  ['x2', :raw],
  ['y2', :raw],
  ['x3', :raw],
  ['y3', :raw],
  ['x4', :raw],
  ['y4', :raw],
]
INFO_KEYWORD_TABLE_5_19 =

5.3 Table Formatting Table 5.19 Keywords for PDF_info_table()

[
  ['firstbodyrow', :raw],
  ['horboxgap', :raw],
  ['horshrinking', :raw],
  ['lastbodyrow', :raw],
  ['returnreason', :string],
  ['rowcount', :raw],
  ['rowsplit', :boolean],
  ['tableheight', :raw],
  ['tablewidth', :raw],
  ['vertboxgap', :raw],
  ['vertshrinking', :raw],
  # xvertline
  # yhorline
]
INFO_KEYWORD_TABLE_6_3 =

6.1 Object Fitting Table 6.3 Common keywords for querying the results of object fitting with PDF_info_image(), PDF_info_graphics(), PDF_ info_path( ), PDF_info_pdi_page( ), PDF_info_table( ), PDF_info_textline( )

[
  ['boundingbox', :raw],
  ['fitscalex', :raw],
  ['fitscaley', :raw],
  ['height', :raw],
  ['objectheight', :raw],
  ['objectwidth', :raw],
  ['width', :raw],
  ['x1', :raw],
  ['y1', :raw],
  ['x2', :raw],
  ['y2', :raw],
  ['x3', :raw],
  ['y3', :raw],
  ['x4', :raw],
  ['y4', :raw],
]
INFO_KEYWORD_TABLE_7_8 =

7.6 Path Objects Table 7.8 Keywords for PDF_info_path()

[
  ['bboxwidth', :raw],
  ['bboxheight', :raw],
  ['numpoints', :raw],
  ['px', :raw],
  ['py', :raw],
]
INFO_KEYWORD_TABLE_9_4 =

9.1 Images Table 9.4 Keywords for PDF_info_image()

[
  ['clippingpath', :path],
  ['checkcolorspace', :boolean],
  ['filename', :string],
  ['iccprofile', :profile],
  ['imageheight', :raw],
  ['imagemask', :image],
  ['imagetype', :string],
  ['imagewidth', :raw],
  ['infomode', :boolean],
  ['mirroringx', :raw],
  ['mirroringy', :raw],
  ['orientation', :raw],
  ['resx', :raw],
  ['resy', :raw],
  ['strips', :raw],
  ['transparent', :boolean],
  ['xid', :string],
]
INFO_KEYWORD_TABLE_9_8 =

9.2 SVG Graphics Table 9.8 Keywords for PDF_info_graphics()

[
  ['description', :string],
  ['filename', :string],
  ['fittingpossible', :boolean],
  ['graphicswidth', :raw],
  ['graphicsheight', :raw],
  ['istemplate', :boolean],
  ['metadata', :string],
  ['title', :string],
  ['type', :string],
  ['xid', :string],
]
INFO_KEYWORD_TABLE_10_4 =

10.2 Page Functions Table 10.4 Keywords for PDF_info_pdi_page()

[
  ['fittingpossible', :boolean],
  ['lang', :string],
  ['mirroringx', :raw],
  ['mirroringy', :raw],
  ['pageheight', :raw],
  ['pagewidth', :raw],
  ['rotate', :raw],
  ['topleveltag', :string],
  ['topleveltagcount', :raw],
  ['xid', :string],
]