Itext group:

I didn't make me clear, in this issue.
I am able to create a proper PDF File, from my JAVA procedure.
However, I need to upload this procedure to ORACLE, involving the data
stored in the database.
The JAVA code is saved as an ORACLE procedure successfully.
But, when I am trying to run the process to obtain the document in the same
way as i do in JAVA, the document I got is well formed, capable to open it,
and doesn't have all the information that I was trying to save in the PDF
file, the procedure is running until the first object is inserted into the
pdf file, after this the following error was obtained - "Rebuild trailer not
found. Original Error: PDF startxref not found",
Could you please give me some clues for a solution?

Regards,

Diana Rivera.


Bruno Lowagie (iText) wrote:
> 
> This is yet another mail that seems to be addressed to
> me personally, but that has the [iText-questions] header.
> Could be the SF problem Alexis mentioned, but if not:
> please use the mailing list.
> 
> Rivera, Diana wrote:
>> I did a java procedure about generate a PDF with ITEXT, after I load 
>> this in Oracle.
> 
> So you create a PDF;
> then store this PDF in a database.
> Watch out: is this byte safe?
> How about the number of bytes that are stored?
> 
>> When I generate the pdf from a procedure Oracle I get this mistake:
> 
> Now you try to retrieve the PDF from Oracle,
> and the PDF is corrupt.
> 
>> Rebuild failed: trailer not found.; Original message: PDF startxref not 
>> found.
> 
> My guess is that you retrieve MORE or LESS bytes from
> the database than you actually put into the database.
> 
> If MORE, there's a lot of gibberish appended at the end
> of your file, and because of this, the trailer can't be
> found (although some viewers like Foxit might actually
> open the PDF correctly).
> 
> If LESS, the trailer has been cut off and is no longer
> there, hence the message that it can't be found.
> 
> I also asked if the way you store the PDF is byte-safe
> because PDF is a binary format. If you store the PDF in
> a field that can only store ASCII, the file will be corrupt
> when you retrieve it from the database (but reading the
> error message, that probably not the case).
> 
> This is not an iText related question.
> It's all about databases, and how you store binary data.
> If you want a follow up, you'll have to address the
> mailing list.
> br,
> Bruno
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-Rebuild-trailer-not-found.-Original-Error%3A-PDF-startxref-not-found-tf3447937.html#a9618208
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to