Solved

What is wrong in my FDF and PDF file

Posted on 2013-01-09
7
362 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

*Adobe Acrobat 9 was used for this article.  Particular steps may vary depending on software versions. Adobe Acrobat has many, many variables that my be utilized to customize your forms for clarity and ease of use. The Form Editing Tool will be y…
The Adobe PDF proprietary file format is recognized as secure and formulated. But these PDF files are also prone to corruption and any external threat like virus attacks, improper storage can hit PDF file integrity.This type of damages can make cruc…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

770 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