On 14.04.2003 17:41:11 Adam Shelley wrote:
> Don't worry, i'm not using FOP to generate this file.  The program was
> written by myself.  It does not use a writer (is that a java thing?).

java.io.Writer and descendants (as opposed to java.io.OutputStream and
descendants)

> I
> downloaded ghostview and it won't even open the file.  Acrobat opens it but
> displays a 'file is being repaired' dialog box.  Its hard to analyze what's
> wrong cause if u save it in acrobat it applies a flatedecode filter on all
> of the text and changes it to linearized and adds in some rdf info.
> Ghostview complains about the xref but i don't see why because if the xref
> was messed up wouldn't adobe choke on it too?  the xref points to all the
> objects in the document.

No, Acrobat seems to be failure tolerant in that it can analyze the PDFs
structure without consulting the xref table. The xref table is only used
for speeding up analysis of a PDF. It's not really necessary. 

Acrobat repairs ('file is being repaired' dialog box) the xref table in
that it calculates the correct indexes. When you save the PDF in Acrobat
after that your PDF will be correct again and should also open in
GhostView.

You've got to fix your indexes in the xref table, I think.
> 
> Anyways, thanks for the info.
> 
> -Adam
> 
> -----Original Message-----
> From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
> Sent: April 11, 2003 11:02 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [ot] pdf file format
> 
> 
> Opening your PDF in GhostScript can reveal some additional information.
> First it says that your EOF marker is messed up. Removing two CRLFs at
> the end of the file changes the error message to a messed up xref table.
> And looking at that it is really messed up. The indexes are wrong I
> think. Do you output the PDF using a Writer? If you do, don't. :-) You
> don't use FOP's PDF library to create the PDF, do you?
> 
> 
> On 11.04.2003 22:50:30 Adam Shelley wrote:
> > I wrote a program that generates pdf's and it works but when i open my pdf
> > with acrobat it says 'file is damaged and is being repaired, but it opens
> > flawlessly after that.  Is there anyone that has the tools, the knowledge
> > and the will to review this file?
> >
> > This program is really simple and doesn't do much in terms of formatting
> > accept i programmed in the ability to 'fit-to-page' and put grid lines or
> > green bars (i use it for reports on our business system).
> >
> > It'd just be nice to have this error stop.  I think it occurs because i
> > don't really use text encoding but i dunno.  Of course i'm using FOP now
> to
> > do prettier pdf's but I still am using this to generate huge reports
> > (instead of printing to fast line printers).
> >
> > Attached is the example.
> > Anyone in the know, let me know :D


Jeremias Maerki


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

Reply via email to