I am modifying a program that runs under plank, moose and friends. It currently uses PDF::API2::Simple but since the data is actually tabular I want to use PDF::Table to format the data.

My first attempt complained about not being able to find "corefont" via PDF::API2::Simple and I worked around that by defining the font before calling table and passing it as a parameter.

Now I get a similar message for "page" ??

 { "error" : "Can't locate object method \"page\" via package \"PDF::API2::Simple\" at /usr/local/share/perl5/PDF/Table.pm line 446.\n" }

I was able to replicate the issue with corefont in a short script with a tiny set of data passed into table.

PDF-Table-0.9.6_h3, 
PDF-API2-2.020, 
This is perl, v5.10.1
Red Hat Enterprise Linux Server release 6.4

In reply to Getting "Can't locate object method" in PDF::Table::table by russellf

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.