CAM::PDF::Renderer::Text(3pm)

CAM::PDF::Renderer::Text3pm

Render an ascii image of a pdf page

Usage

    use CAM::PDF;
    my $pdf = CAM::PDF->new($filename);
    my $contentTree = $pdf->getPageContentTree(4);
    $contentTree->render("CAM::PDF::Renderer::Text");

Overview

This class is used to print to STDOUT the coordinates of each node of a page layout. It is written both for debugging and as a minimal example of a renderer.

Globals

The $CAM::PDF::Renderer::Text::xdensity and $CAM::PDF::Renderer::Text::ydensity define the scale of the ASCII graphical output device. They both default to 6.0.

Functions

$pkg->new()

Calls the superclass constructor, and initializes the ASCII PDF page.

$self->renderText($string)

Prints the characters of the screen to our virtual ASCII framebuffer.

$self->toString()

Serializes the framebuffer into a single string that can be easily printed.

Releases

7 releases since Debian 7 (Wheezy); the text changed 3 times.

  1. 7
  2. 8
  3. 9–11
  4. 12–13

License

See CAM::PDF.

Author

See CAM::PDF

From libcam-pdf-perl 1.60-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.