composer.stroke();
*/
// Showing the 'GNU' image...
// Instantiate a jpeg image object!
Image image = Image.get(getInputPath() + java.io.File.separator + "images" + java.io.File.separator + "gnu.jpg"); // Abstract image (entity).
// Show the image!
composer.showXObject(
image.toXObject(document),
new Point2D.Double(
(pageSize.getWidth() - 90 - image.getWidth()) / 2 + 20,
pageSize.getHeight() - 100 - image.getHeight()
),
new Dimension(0,0)
);
// Showing the title...
blockComposer.begin(frame,AlignmentXEnum.Left,AlignmentYEnum.Top);
composer.setFont(font,24);
blockComposer.showText("The Free Software Definition");
blockComposer.end();
// Showing the copyright note...
frame = new Rectangle2D.Double(
blockComposer.getBoundBox().getX(),
blockComposer.getBoundBox().getY() + blockComposer.getBoundBox().getHeight() + 32,
blockComposer.getBoundBox().getWidth(),
(pageSize.getHeight() - 100 - image.getHeight() - 10) - (blockComposer.getBoundBox().getY() + blockComposer.getBoundBox().getHeight() + 32)
);
blockComposer.begin(frame,AlignmentXEnum.Justify,AlignmentYEnum.Bottom);
composer.setFont(font,6);
blockComposer.showText("Copyright 2004, 2005, 2006 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA Verbatim copying and distribution of this entire article are permitted worldwide, without royalty, in any medium, provided this notice is preserved.");
// Showing the body...
blockComposer.showBreak(breakSize);
composer.setFont(font,8.25f);
Rectangle2D[] frames = new Rectangle2D[]
{
new Rectangle2D.Double(
blockComposer.getBoundBox().getX(),
pageSize.getHeight() - 100 - image.getHeight() - 10,
blockComposer.getBoundBox().getWidth()-image.getWidth()/2,
image.getHeight() + 10
),
new Rectangle2D.Double(
20 + 20 + (pageSize.getWidth() - 90 - 20) / 2,
150,
(pageSize.getWidth() - 90 - 20) / 2,
(pageSize.getHeight() - 100 - image.getHeight() - 10) - 150
),
new Rectangle2D.Double(
20 + 20 + (pageSize.getWidth() - 90 - 20) / 2 + image.getWidth()/2,
pageSize.getHeight() - 100 - image.getHeight() - 10,
blockComposer.getBoundBox().getWidth()-image.getWidth()/2,
image.getHeight() + 10
),
new Rectangle2D.Double(
20,
150,
(pageSize.getWidth() - 90 - 20) / 2,