Problems with determine corrupted pdf

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, xnview

maru
Posts: 1
Joined: Fri Jun 06, 2008 7:51 am

Problems with determine corrupted pdf

Post by maru »

Hello.
My product is GFL SDK v2.82.I write in Delphi.

I have some problems with this PDF file (see attach).
http://www.shareonall.com/P000806191536 ... dd_PDF.htm

When i try to check file format by gflGetFileInformation.
In result i get "Invalid floating point operation".
If I use construction like "try except", file will be blocked, and i can not unlock it.
Please fix this problem or help to unlock this file or maybe some thing else solution.

This is log of GSview:
------------------------------------------------------------------------------------
GSview 4.9 2007-11-18
AFPL Ghostscript 8.54 (2006-05-17)
Copyright (C) 2005 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Scanning PDF file
**** Warning: File has a corrupted %%EOF marker, or garbage after %%EOF.
**** Warning: An error occurred while reading an XREF table.
**** The file has been damaged. This may have been caused
**** by a problem while converting or transfering the file.
**** Ghostscript will attempt to recover the data.
Error: /typecheck in --lt--
Operand stack:
oacute 87608.0
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1130/1686(ro)(G)-- --dict:2/20(G)-- --dict:79/200(L)-- --dict:105/127(ro)(G)-- --dict:253/347(ro)(G)-- --dict:20/24(L)--
Current allocation mode is local
------------------------------------------------------------------------------------

With best wishes, Vladimir.