By Date: <-- -->
By Thread: <-- -->

Converting WMF and a TXT file into PDF by overlapping



ravi2082 (at) unlimitedmail.org wrote:

Hi Thanks for your suggestion
Right now , I have written a program which uses Image class and adds the WMF image to a blank PDF and then I read the text file.Since the text in the text file is already aligned with respect to the wmf image, I am just adding each line to a Paragraph object and displaying it.The problem here is the proper alignment of the image and text.
Here the WMF image is a normal static image such as an invoice or Bill receipt .... The text is the details which go into that bill.


I am not sure whether I am going in right way.Because I have different sets of wmfs and corresponding txts and I need to write a generic program which would overlap txt on wmf and convert into PDF in one go ....

Please advice me on this...

There's not much advice to give.

Or you do as Paulo says and add form fields as placeholder on the exact
locations corresponding with the areas on the WMF that need to be filled in.

Or you use the coordinates of the areas that need to be filled in to create
a column with the ColumnText object.

If you want to know these coordinates (for the form fields or the column),
you can print out the page and do the necessary measuring with a ruler.
Or you find yourself a program that is able to view a PDF and define
areas. You won't find a program that is able to retrieve form fields from
a WMF.

br,
Bruno


------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ iText-questions mailing list iText-questions (at) lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions