Wednesday, May 06, 2009

Scius PDF library Beta 8

Beta 8 of the Scius PDF Library, that I mentioned earlier, is available for those that need the following extra features.
  • Bullet List,
  • Manual Page Break,
  • Repeating Table Headers,
  • In-line Images, and
  • Page Orientation changes on the fly.
This will be the final version. I will not be enhancing the library further.

The code base that this is used in will not be changing and therefore, there are no new features planned.

Below are some code extracts, so you can see how easy it is to use those new features.


Repeating Table Headers

RowElement headerrow = new RowElement();

CellElement headercell =

new CellElement(

"Here is a big table and some headings");

headercell.setCellspan(3);

headerrow.addCell(headercell);

headerrow.setTableHeading(true);

table.AddRow(headerrow);


Bullet Lists

// create a list item and add the bullet.

ListElement le = new ListElement(10, tableStyle);

le.setSymbolImage("examples/orgball.gif");

le.setBulletIndent(20);

le.addBullet("Here is one");

le.addBullet("Here is two");

data.add(le);


In-line Images

// create an image and set scale and alignments.

ImageElement ie = new ImageElement();

ie.addImage("examples/ls09-bloggers.jpg");

ie.setImageScalePercent(100);

ie.setImageAlignment(ImageElement.IMAGE_ALIGNMENT_MIDDLE);

data.add(ie);


Page Orientation

data.add(new PageElement(Page.ORIENTATION_LANDSCAPE));


Page Breaks

data.add(new PageBreakElement());

No comments:

Post a Comment