LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-19-2015, 05:45 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Post PDF corrupted and can't repaired


Hello.
I have a PDF that just Show in Chromium browser and I can't open it in "Document Viewer" and other tools.
I used "pdftk" for repair it but :


$ pdftk test.pdf output a.pdf
Error: Failed to open PDF file:
test.pdf
Errors encountered. No output created.
Done. Input errors, so no output created.

any idea?
 
Old 09-19-2015, 05:51 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,849

Rep: Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803
Examine the magic number

what does "file test.pdf" report about the file?

Do you know what generated the file, where it came from?
 
Old 09-19-2015, 07:16 AM   #3
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
$ file test.pdf
test.pdf: PDF document, version 1.6

I download it from my email.
 
Old 09-19-2015, 09:05 PM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,849

Rep: Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803
Oh no...

I would worry about any PDF from an email that does not open in a standard pdf tool, it may have been infected. Most likely with a Windows threat, but you never know.
 
Old 09-20-2015, 04:34 AM   #5
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
I scanned it via "VirusTotal" and it is not infected.
 
Old 09-20-2015, 06:16 AM   #6
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,849

Rep: Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803
No virus is good.

Your pdftk command line looks correct.
Check the permissions on test.pdf and make sure it is readable and in the current folder.
If all else fails, request that the sender supply another copy. Perhaps a compressed copy, zip and 7z files lend themselves to certain kinds of checking and might avoid whatever is rendering the file unusable.
 
Old 09-20-2015, 06:32 AM   #7
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
permission :

$ls -l
total 5148
-rwxrwxrwx 1 jason jason 5267456 Sep 19 14:38 test.pdf
 
Old 09-20-2015, 06:50 AM   #8
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,849

Rep: Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803
test.pdf

Permissions wide open. I would actually change them from 777 to 644, no need to write or execute a PDF.

Have you tried to read this with any other software?
 
Old 09-21-2015, 05:25 AM   #9
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Not matter
I opened it to Gimp and other viewer but....
 
Old 09-21-2015, 09:31 PM   #10
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,849

Rep: Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803Reputation: 2803
Just a thought..

Is it possible that this pdf was created with encryption or some of the advanced Adobe security features?
I have seen PDF e-books that most non-adobe software will NOT read, and that expires and becomes unreadable after a given date. My library uses that trick to lend e-books that do not violate their publisher agreements.

I never liked the idea of files that expire, so I have not investigated and cannot advise if it is that kind of format.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysql table is marked as crashed and should be repaired postcd Linux - Server 1 03-12-2014 10:41 AM
can broken pins on a HD be repaired/replaced? newbiesforever General 7 02-12-2009 07:04 PM
Can we fix / see anyhow a not fully complete PDF document (bit corrupted doc)? frenchn00b Linux - General 5 02-13-2008 12:46 PM
Repaired FileSystem ? bartsimpson Linux - Newbie 9 12-28-2007 08:14 PM
Can a Linux install be repaired? jacatone Linux - Software 1 09-06-2007 05:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration