I'm having problem with generating pdf (I'm using beta 92) on a IBM 
machine that uses EBCDIC code system.

When I open the pdf using text editor, first few bytes of the generated 
pdf file looks like: l×ÄÆ`ñKô, but should look like: %PDF-1.4

I think that the problem is in function outputHeader(OutputStream stream) 
in src\java\org\apache\fop\pdf\PDFDocument.java

 byte[] pdf = ("%PDF-" + getPDFVersionString() + "\n").getBytes();

I presume changing this to: 

byte[] pdf = ("%PDF-" + getPDFVersionString() + 
"\n").getBytes("US-ASCII");

should do the trick, but I did not try this yet.


Jelka

Reply via email to