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
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