What is wrong in my FDF and PDF file

Posted on 2013-01-09
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.
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!


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 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.

Author Closing Comment

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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
maven module vs maven project 3 73
Problem to Alipay 10 71
Need Help! Getting a syntax error and don't understand why 3 40
jsp error 6 45
PDF files have been in the limelight due to its unmatched features.  Personal documents, emails, business reports and eBooks are all converted into PDF files owing to peerless features provided by it. Adding watermark to a PDF file is a method to se…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
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:

733 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