Template to tiff

J

johnny.dahlen

I have a task where I'm supposed to substitute fields in a template
with values from an ascii file, and produce a tiff file of the result.
This should be done in batch mode.

So far, I have tried creating a postscript template, using
PostScript::TextBlock, and convert to tiff with PerlMagick. Problem is,
PostScript::TextBlock seems to not allow different fonts for text in
the same block, only one block per line, and doesn't handle
international characters. ie åäö in Swedish.
So then I tried using a PDF-template, but that seems overly complex and
I have not seen any Perl module that makes it possible to replace text
in a PDF document. Pdftk may be an alternative with its ability to fill
out PDF forms. Unfortunately, there doesn't seem to be a way to define
the font to use when filling out a form.

This really gives grey hairs! It shouldn't be that an uncommon problem,
should it?

Regards
/JD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,772
Messages
2,569,591
Members
45,103
Latest member
VinaykumarnNevatia
Top