GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PDF::Writer(3) User Contributed Perl Documentation PDF::Writer(3)

PDF::Writer - PDF writer abstraction layer

This document describes version 0.05 of PDF::Writer, released Oct 25, 2005.

  use PDF::Writer;

  # Or, to explicitly specify a back-end ...
  use PDF::Writer 'pdflib';
  use PDF::Writer 'pdfapi2';
  use PDF::Writer 'mock';

  my $writer = PDF::Writer->new;

This is a generalized API that allows a module that generates PDFs to transparently target multiple backends without changing its code. The currently supported backends are:
  • PDF::API2

    Available from CPAN

  • PDFlib (versions 3+)

    Available from "/www.pdflib.com" in http;. There is both a pay and free version. PDF::Writer will work with both, within their limitations. Please see the appropriate documentation for details.

  • Mock

    This allows modules that target PDF::Writer to write their tests against a mock interface. Please see PDF::Writer::mock for more information.

If both PDF::API2 and pdflib_pl are available, PDF::API2 is preferred. If neither is available, a run-time exception will be thrown. You must explicitly load the PDF::Writer::mock driver, if you wish to use it.

new()

This acts as a factory, loading the appropriate PDF::Writer driver.

We use Devel::Cover to test the code coverage of our tests. Below is the Devel::Cover report on this module's test suite.

Originally written by:

Autrijus Tang <autrijus@autrijus.org>

Currently maintained by:

Rob Kinyon <rob.kinyon@iinteractive.com>

Stevan Little <stevan.little@iinteractive.com>

Thanks to Infinity Interactive for generously donating our time.

Copyright 2004, 2005 by Autrijus Tang <autrijus@autrijus.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See <http://www.perl.com/perl/misc/Artistic.html>

2022-04-08 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.