|Newbie questions about Pliant
PDF String Replace
Want to use a PDF template, and relpace some keywords
with custom strings.
|Message posted by maybe Boris Reitman on 2007/09/12 01:07:25
|can I hook a function to parse method of vfilter/pdf.pli
to catch some pieces of text and replace it with other pieces ?
And then, write pdf back to disk ?
|Message posted by maybe Hubert Tonneau on 2007/09/22 15:17:49
|I bet what you want to do is print forms.
So, you want to read a PDF containing the form template, replace some text to
feed the datas, then write back final PDF.
One problem here is that Pliant does not have a PDF writer.
I now, it's strange since Pliant contains so many things and a PDF writer is
rather easy to write compared to the PDF reader Pliant contains, but I've never
needed it so I've been a bit lazy.
I'd suggest you two better solutions:
. either use a PostScript template form, so that you will be abble to replace
texts with correct values just through handling it as a pure text file since
PostScript does not contain pointers as opposed to PDF.
Should you really need PDF in the end, just launch GhostScript from your
application to make the conversion.
. Pliant release 99 will contain a nice printing subsystem so that you can
do forms in .ui language, with the only restriction at the moment that it must
fit on a single page. Pliant contains drivers for PCL laser printers and
many low end Epson inkjets. I can make a pre release if needed.
|Message posted by maybe Boris Reitman on 2007/09/22 15:31:07
I am thinking of going the Postscript route. I actually need it for something else:
I have a business card design in PDF, not created by me, and I'd like to
modify its contents. I am gonna try to convert it to Postscript, see
where it gets me.