Maybe you're right.. the exact process is:
- make a copy of the original fo file (in java, with File.createTempFile)
- read the content of the temp file (in java, normal file read)
- in the obtained string, replace some text items (in java, with
String.replaceAll)
- write the new (replaced) string into temp file (in java, normal file
write)
- then, call FOP and say to him that has to generate a pdf
(in java also: String[] argv = { file, target };
Fop.main(argv);
)
Looking the code, yes... I think that I work with plain text files... :D
I think that the strange thing is that this works on windows :-O
I will try to rewrite these code lines... thanks a lot!
J.Pietschmann escribió:
A file encoding problem?
Most certainly.
How do you do the "replace some text" step? Using an ordinary editor?
If so, check the encoding the editor uses for saving.
Load the FO file into a hex editor (e.g. Emacs hexl mode) and check
the character codes, or use the Unicode description utilities:
http://www.cis.upenn.edu/~wjposer/unidesc.html
J. Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]