http://www.perlmonks.org?node_id=1013765


in reply to create tables with text and images in pdf

lighterjoul:

I'd second ree's suggestion to use a package to do the heavy lifting for you. Laying out documents from scratch can be a bit tedious, especially when items are wont to move around from run to run. I've not tried the suggested module (HTML::HTMLDoc), but a little digging through cpan may help you find a module that you can use with minimal fuss.

However, if you want to learn how to build PDF documents from scratch, you could find some examples here among the older nodes. The one I started with a year or so ago is Making Sudoku Puzzles Using PDF::API2. It's reasonably short, and shows how you can easily position text and draw simple graphics at different locations on a page.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: create tables with text and images in pdf

Replies are listed 'Best First'.
Re^2: create tables with text and images in pdf
by lighterjoul (Initiate) on Jan 18, 2013 at 02:15 UTC
    Thank you roboticus, I will check that. :) I had known how to create the images and text in pdf, but what I want to find is just want to create table dynamically both containing text column and iamge column. I will search in CPAN later..:)