logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

CAM::PDF::Renderer::Text - Render an ASCII image of a PDF page

Author

       See CAM::PDF

perl v5.36.0                                       2022-12-08                      CAM::PDF::Renderer::Text(3pm)

Description

       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.

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.

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.

License

       See CAM::PDF.

Name

       CAM::PDF::Renderer::Text - Render an ASCII image of a PDF page

Synopsis

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

See Also