
Pdf::writer is a generalised api that allows a module that generates pdfs to transparently target multiple backends without changing its code. the currently supported backends are:
* pdf::api2
* pdflib (versions 3+)
* mock
if both pdf::api2 and pdflib_pl are available, pdf::api2 is preferred. if neither is available, a run-time exception will be thrown.