> -----Original Message-----
> From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED]
>
> > -----Original Message-----
> > From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED]
> >
<snip/>
>
> > > The problem is that when run from our 'background' thread,
> > > fop generates
> > > almost empty pdf files, they contain only two lines:
> > > %PDF
> > > %
> > >
>
> Normally, according to the pdf spec, this should be followed by a few
> 'non-text' bytes to indicate that the rest of the file is to be
> interpreted
> as binary - contrary to what its content would seem to indicate
> if you open
> it in a text-editor...
>

Come to think of it, I seem to remember a thread from a month or two ago,
where the poster had a problem with one in a few thousand pdf files being
recognized as text instead of application/pdf.

I'll have to take a closer look at the relevant code for the creation of
these 4 bytes, but maybe, if they are generated in a random way, this
*could* explain why once in every zillion generated pdfs the mime type would
be incorrectly derived if it were based on this file header.

I admit it's a very long shot...


Greetz,

Andreas


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

Reply via email to