What is wrong in my FDF and PDF file

Posted on 2013-01-09
Medium Priority
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?
Question by:mdoland
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
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.

Author Comment

ID: 38826369
Thanks that would be great!. I have switched out sensitive info from the FDF-file, but it should be equivalent.
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.
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Author Comment

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?

Author Comment

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

Accepted Solution

Karl Heinz Kremer earned 2000 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.

Author Closing Comment

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

649 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