This has been fixed about a week ago in FOP Trunk:
http://svn.apache.org/viewvc?view=rev&rev=533986

On 10.05.2007 15:06:21 jelka.kosir wrote:
> 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



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to