| Previous Next | Contents |
leaf.table.List/Spread boundaries of table clearly marked with comments in the PostScrp code so RainPro can easily clip out and rescale a table formatted with NewLeaf. New function leaf.table.Name allows more than one named table to be included, otherwise tables are table1..n by default. Named tables get included as anchors in HTML/PDF output.
Font list rationalised it had a block of HE shortcodes (mapped to Arial anyway) which have been removed. This changes some very old examples which used the HEB etc mnemonics. This is now in line with the same default table in RainPro.
leaf.Bitmap could skip to a new page prematurely if the last text output was in a very large fontsize. Fixed.
leaf.vml.PolyBar thin cover on native pB macro. Very useful for barcode generation as these are an array of black rectangles!
leaf.vml.GSave/GRestore/Translate/Scale pass-through functions to PostScript co-ordinate stack and co-ordinate transformations.
leaf.PS256 was not adjusting the line-length correctly for the number of hex bytes read per line for monochrome bitmaps. These have 8 samples per character so the stringlength must be reduced by a factor of 8 here. This appeared to work OK as long as the number of ROWS in the bitmap divided exactly by 8. Otherwise it broke Acrobat Distiller.
PostScrp.GreyScale extended to handle greyscaling of 24-bit images.
leaf.class.bm.Create adds placeholder code so that bitmaps on master pages work correctly with Acrobat Distiller and direct PostScript.
pdf.UseColour implemented for text and images. If this is set to 0 then coloured text becomes black in the PDF and coloured images are greyscaled. This is essential if the PDF will be printed on a b/w PostScript printer as it will crash the printers PostScript interpreter otherwise.
pdf.AHx notices 2-colour images (even in colour mode) and outputs these as 1 bit per pixel on the /DeviceGray colour map. This reduces the size of the image by 8 times and potentially avoids the above problem if all the text is black anyway, and all the images are line-art.
leaf.BeginBlock marks a section of any report which may be bordered and edged with specified gutter and border properties The argument gives ...
<block name> (required if we want to use it in a RainPro chart)
<edge weight> (default 0 for unedged) in pts
<border colour> (black is default) as a number
<gutter> default half current typesize (border is drawn OUTSIDE textbox)
<rounding> in pts (default square corners) in both (x,y) directions
Named blocks get included as anchors in HTML/PDF output.
leaf.EndBlock completes the current block, and draws the specified border. If a block spans a page or column boundary, it will be closed and re-opened at the top of the new frame with the same attributes. BorderedBlocks is the testbed function.