Solved

What is wrong in my FDF and PDF file

Posted on 2013-01-09
7
359 Views
Last Modified: 2013-02-19
I have a FDF and a PDF file that seems to be bad. In our Java based program that uses a PDF view from Qoppa. The sheet however contains no text.

Is there a way for me to find out if anything is broken in any of the files and in that case what is broken?
0
Comment
Question by:mdoland
  • 4
  • 3
7 Comments
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 38761632
There is no simple PDF validator, you could try different PDF consuming applications to see if you can get any meaningful error messages, but without a good understanding of the PDF file format, you would probably not be able to make much use of such errors. If you have access to Adobe Acrobat Pro, you could use the preflight tool to do a syntax check, but that would not work on the FDF file.
Can you attach the files to this question? I could take a look for you.
0
 

Author Comment

by:mdoland
ID: 38826369
Thanks that would be great!. I have switched out sensitive info from the FDF-file, but it should be equivalent.
PDF-AND-FDF.zip
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 38828318
This wont work: A PDF file is not a text file, and you cannot edit it in a text editor. Your PDF file has a .txt extension, which suggests that that's what you tried to do, and the error message when I try to open the file as a PDF also points to that. In order to debug this problem, I would need a valid PDF file.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:mdoland
ID: 38839152
Don't let the file extension trick you. The only thing I have edited is the information in the FDF and it seems to be mostly pritable characters. The fact that it is .txt is that it has been fetched from a database. It of course could be an issue with conversions from how it is stored. Could you see if it looks ok if you change the extension of the file?
0
 

Author Comment

by:mdoland
ID: 38839161
The error we have on it is that this file from 2007 cannot be displayed in a jPDFViewer from Qoppa.
0
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 500 total points
ID: 38839171
Is the file you provided the PDF file that you are trying to display? If so, then the file is corrupt, and that's the reason it does not work in JPDFViewer. Ive changed the file extension, and actually looked into the file. The file is corrupt. PDF is a binary file format, you need to store it as a BLOB in a database. If anything in your processing has treated it as a text file, that may be where the corruption occurred.
0
 

Author Closing Comment

by:mdoland
ID: 38905242
Thanks alot for the help. I am on the way of solving it in another way now.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

*Adobe Acrobat 9 was used for this article. Particular steps may vary depending on software versions. 1. Create a framework of your form in Word, leaving space where you’d ultimately like the Adobe fields to appear.  (Note: I use the blank lines …
In a previous article published here at Experts Exchange, Signature Image with Transparent Background (http://www.experts-exchange.com/Web_Development/Document_Imaging/A_12380-Signature-Image-with-Transparent-Background.html), I explained how to cre…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now