Hi bastien (and all the rest who is reading this thread)
I would just take the opportunity to thank you for your kind help on this so far. I'm not the one who quit easily, so I've been trying to fix this in many ways. So I'm just trying all options that I can think of.
Before I go on and explain what I've done, I must confess that I didn't quite follow you on your last post here. That is, I understand what you're talking about, but don't see how to do it. I'm not that experienced in php yet. I would love to see some pseudo code on that post if you have the time. It might help me solve this before I go and try the .png thing.
Just pointing out that it's not about replacing text on the original form, but add new dynamic values to the open spots on the form. Just a thought, would it be easier to fill in my variables on the pre-printed form before I scan to pdf? It would give me trouble if the pdf2ps generates splitted words (it does that with sentences at least).
In a way I've solved it like I want it. Just 1 thing left now.
Here's what have I tried since last time:
1)
First, I scan in the pre-printed form to pdf. Let's call it template.pdf
2)
Then made a new, blank pdf with Adobe LiveCycle Designer.
Here I choose to add text with the font Courier New. To use Courier New is important here because it's a monospace font. I made one text string with content "{variable1}". Saved to variables.pdf. Opened it in Acrobat and exported to postscript. (variables.ps)
3)
Then I opened the variables.ps in Acrobat (not the reader).
Now I choose "Document, Background, add/replace". Here I pick the template.pdf file.
4)
Now I'm able to move around my variable by selecting it using the "touchup object tool" to drag it into place. (Tools menu, advanced editing)
5)
Then it's time for some magic, remove the background. (Document, Backgound, remove)
6)
Now, all you can see is a white paper with the variable "in place" where I need it to be when I print out. So, let's export this to variables.ps. Replace the old variables.ps is okay since the old one don't have a mission anymore. Now I use this file to search/replace the {variable1} with data from mysql and save as .ps, call ps2pdf and...you get it.
Yes I got it! No, I don't. What's wrong:
If I create more text variables in LiveCycle I'm not able to move them freely around as explaind. They all "stick" to eachother so I have to move them as one object on the page. That's a major drawback.
How to fix this? Well, now I'm so close to fix this that it hurts.
So I'm hoping for an explanation on your last post, or some tip on how to make more text in LiveCycle which doesn't stick to eachother.
Thank you for your time reading this long post.