private void fillPage(String uri) {
Dimension imageSize = this.imageLayout.getViewportSize();
Block blockArea = new Block();
blockArea.setIPD(imageSize.width);
LineArea lineArea = new LineArea();
Image imageArea = new Image(uri);
TraitSetter.setProducerID(imageArea, fobj.getId());
transferForeignAttributes(imageArea);
Viewport vp = new Viewport(imageArea);
TraitSetter.setProducerID(vp, fobj.getId());
vp.setIPD(imageSize.width);
vp.setBPD(imageSize.height);
vp.setContentPosition(imageLayout.getPlacement());
vp.setOffset(0);
//Link them all together...
lineArea.addInlineArea(vp);
lineArea.updateExtentsFromChildren();
blockArea.addLineArea(lineArea);
curPage.getPageViewport().getCurrentFlow().addBlock(blockArea);
curPage.getPageViewport().getCurrentSpan().notifyFlowsFinished();
}