Jeffrey Ray Hallock > Lorem-0.200 > Lorem

Download:
Lorem-0.200.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.200   Source   Latest Release: Lorem-0.23.1

NAME ^

Lorem - Cross-platform document renderer

SYNOPSIS ^

  use Lorem;

  use Lorem::Util qw( in2pt );

  $doc = Lorem->new_document;

  $doc->new_header( center => 'Lorem Document' );
  
  $doc->new_page( style => 'align: center' );
  
  $page->new_text( content => 'Lorem Ipsum' );
  
  # save to pdf file
  $pdf = Lorem::Surface::Pdf->new (

    file_name => 'output.pdf',

    width => in2pt( 8.5 ),

    height => in2pt( 11 ),

  );
  
  $pdf->print( $doc );

  # send to printer

  $printer = Lorem::Surface::PrintOperation->new(

    gtk_window = Gtk2::Window->new,

  );

  $printer->print( $doc );

DESCRIPTION ^

Lorem is a library for creating printable reports. Lorem is a layer over the Pango/Cairo/Gtk2 Perl bindings that provides support for headers, margins, tables and other document elements.

ALPHA VERSION ^

*THIS IS NEW SOFTWARE. IT IS STILL IN DEVELOPMENT. THE API MAY CHANGE IN FUTURE VERSIONS WITH NO NOTICE.*

METHODS ^

new_document

Returns a new Lorem::Document object.

SEE ALSO ^

Cairo
Gtk2
Pango

SUPPORT ^

Jeffrey Ray Hallock <jeffrey.hallock at gmail dot com>

AUTHORS ^

Jeffrey Ray Hallock <jeffrey.hallock at gmail dot com>

COPYRIGHT & LICENSE ^

Copyright (c) 2010-2012 Jeffrey Ray Hallock.

    This is free software, licensed under:

    The Artistic License 2.0 (GPL Compatible)
syntax highlighting: