xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Re: Bug report - pdf generated with malformed %PDF-1.4 start line
Date Thu, 10 May 2007 18:12:44 GMT
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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message