Unix/Linux OS/check valid pdf

Advertisement


Question
Hi nix.
I used some tools to generate a pdf file.
sometimes it broken.
sometimes not.
Do you know of a way to check every page of a pdf file?
I am not sure what I mean the validation of a pdf file myself.
Just ask whether those things exist.

Answer
Hi.

Well, there are libraries (I know of several in Java) that can parse a PDF for showing or rendering to image. Those would signal an error. But that is a programming library.

Perhaps try to investigate GhostScript family of tools. I think they are used for PDF rendering on Linux, so they would have something that can validate PDF.

Also, there is a list of tools somebody posted on StackOverflow.

http://stackoverflow.com/questions/569129/how-can-i-test-a-pdf-document-if-it-is

I have not used those myself.

Nix.

Unix/Linux OS

All Answers


Answers by Expert:


Ask Experts

Volunteer


nix

Expertise

UNIX, programing, C, C++, awk, shell scripts, Web, HTTP, Apache, firewall, AltaVista firewall, E-Mail, sendmail, IMAP4 POP3, DNS, NTP, system administration, TCP/IP, security

Experience

UNIX
Digital UNIX
AltaVista Firewall
TCP/IP

Education/Credentials
BSCS

©2016 About.com. All rights reserved.