EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Error Bad Document Trailer

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#26977
Posted: 10/24/2013 04:44:07
by Cornelius Rohr (Basic support level)
Joined: 10/24/2013
Posts: 2

I have got downloaded secbboxcpp_win.zip from 10/14/2013 and installed. I am using Visual Studio 2010 and try to run the Console Sample from PDFBlackBox. I can compile an start debugging. It also starts. But wenn i come to the part to open my pdfs, i got on "Document.Open(cs);" the error exception: "Bad Document Trailer". I have tried diffrent pdf files. Allways the same error.
I am using Windows 7 x64 and Visual Studio 2010 v 10.0.40216.1 SP1 Rel.
What can i do?
#26978
Posted: 10/24/2013 06:05:04
by Dmytro Bogatskyy (EldoS Corp.)

Thank you for contacting us.

Can't reproduce your issue.
Quote
I have got downloaded secbboxcpp_win.zip from 10/14/2013 and installed.

Are you using this version: "Version 11.0.240 (38797 Kb) . Released on 06 October 2013."?
Quote
Console Sample from PDFBlackBox

Are you compiling PDFBlackbox\ConsolePDF sample?

Are those pdf documents came from the same source or different one?
Please check if you passed a correct file name into command line (paramInputFile variable)
#26982
Posted: 10/24/2013 06:46:32
by Cornelius Rohr (Basic support level)
Joined: 10/24/2013
Posts: 2

Thanks for your reply.

it was the wrong path. I thought if TElCallbackStream cs (fs); works, the path is correct. But the path was one level to low.

So i can test now. Many thanks.
#26988
Posted: 10/24/2013 07:49:31
by Dmytro Bogatskyy (EldoS Corp.)

Quote
it was the wrong path. I thought if TElCallbackStream cs (fs); works, the path is correct. But the path was one level to low.

In fact CopyFile method didn't check if file exists and created a zero length temporary file. I will fix the sample.

Thank you for pointing this out.

Reply

Statistics

Topic viewed 852 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!