geekgeekhello has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am using perl PDF:Table module to generate a pdf file. In the PDF, there will be 4 sections, 1st, 2nd, and 4th sections are all tables, and the 3rd section needs to be a histogram. Can someone advise how can this be done? I know how to make a PDF with all the sections being tables, but not sure whether we can mix the tables and plots in one PDF using perl. Thanks!
  • Comment on How to output a pdf with both tables and plots using perl

Replies are listed 'Best First'.
Re: How to output a pdf with both tables and plots using perl
by kcott (Archbishop) on Feb 07, 2017 at 07:26 UTC

    G'day geekgeekhello,

    Welcome to the Monastery.

    You haven't said whether you want to programmatically draw a series of rectangles to create your histogram; or if it's already in an image you want to add; or if you have something else in mind.

    Take a look at PDF::API2::Content and PDF::Report. These have methods for both drawing and adding images.

    Given you say you're familiar with PDF::Table, I assume you're also familiar with PDF::API2 and PDF::API2::Page; however, if you're not, you should also read those documents.

    — Ken