The xref table or startxref are pointing to the wrong addresses. Remember that pdf files are binary although they might look as text. You should post generic pdf questions unrelated with iText to comp.text.pdf.
Best Regards, Paulo Soares > -----Original Message----- > From: Mandip S. Sangha [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, November 12, 2002 10:49 > To: [EMAIL PROTECTED] > Subject: [iText-questions] Syntax problem... > > Hi All > > I have the following pdf file: > > %PDF-1.0 > 1 0 obj > << > /Type /Catalog > /Pages 2 0 R > >> > endobj > 2 0 obj > << > /Type /Pages > /Count 1 > /Kids [3 0 R] > >> > endobj > 3 0 obj > << > /Type /Page > /Parent 2 0 R > /Resources << /Font << /F1 5 0 R >> /ProcSet 6 0 R > >> > /MediaBox [0 0 612 792] > /Contents 4 0 R > >> > endobj > 4 0 obj > << /Length 35 >> > stream > BT > /F1 200 Tf > 200 350 Td (A) Tj > ET > endstream > endobj > 5 0 obj > << > /Type /Font > /Subtype /Type1 > /Name /F1 > /BaseFont /Helvetica > /Encoding /MacRomanEncoding > >> > endobj > 6 0 obj > [/PDF /Text] > endobj > xref > 0 7 > 0000000000 65535 f > 0000000009 00000 n > 0000000058 00000 n > 0000000115 00000 n > 0000000256 00000 n > 0000000340 00000 n > 0000000448 00000 n > trailer > << > /Size 7 > /Root 1 0 R > >> > startxref > 476 > %%EOF > > This opens fine in acrobat but I have problems opening it in > ghostscript. After some experimentation I have found that either I add > 7 linefeeds before the trailer keyword or I reduce the number for the > number of entries in the subsection to 6 inorder to open the file in > ghostscript. I would really like to know what these two changes are > actually doing to get the file opening and why my file in it's original > format is not working. > > Any comments or suggestions would be much appreciated. > > Regards > Mandip > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions