LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-29-2004, 03:49 AM   #1
corbis_demon
Member
 
Registered: Jun 2004
Distribution: CLFS
Posts: 523

Rep: Reputation: 38
How do I unpack pdf.pdf files


Hi,
I'd like to know the command to unpack a file in the form pdf.pdf or ps.ps.When I run it through an archiver,it says it's either a gzip or a bunzip file.But how do I do it from the console?Please help.
 
Old 10-29-2004, 04:19 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941

Rep: Reputation: 137Reputation: 137
pdf files are portable document files that are best opened with Adobe Acrobat Reader, though there are other apps in Linux. ps files are postscript files which you could open with GIMP or several other apps. GIMP will also open pdf files.

They shouldn't have the file extension listed twice, at any rate. Perhaps the person who prepared the file made a mistake?

At any rate, they're not zipped files.
 
Old 10-29-2004, 04:49 AM   #3
corbis_demon
Member
 
Registered: Jun 2004
Distribution: CLFS
Posts: 523

Original Poster
Rep: Reputation: 38
Well,I tried just renaming the file,but it didn't help.I opened it using an archiving utility and it said that the file was in bzp2 format.It unpacked it alright.It certainly doesn't seem to be a mistake on the author's part,coz I come across many files with such extensions.And I ask the guys who prepare and they say it is a compressed file.So it is,coz after the decompress it shows an increase in file size.
And of course i know how to open pdf and ps files.I use pdf's every day at home and at the university.What really foxes me is as to how does the archiver guess what compress type the file has?please advise.
 
Old 10-29-2004, 05:24 PM   #4
LasseW
Member
 
Registered: Oct 2004
Distribution: Fedora 7, OpenSuse 10.2
Posts: 108

Rep: Reputation: 15
From a short identifier at the beginning of the file. You can see the file type with the file command, eg 'file my_file.pdf'. file gets its data from the magic file, in my system it's in /usr/share/file. Type 'man file' and 'man magic' for a more comprehensive explanation.
 
Old 10-29-2004, 08:16 PM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941

Rep: Reputation: 137Reputation: 137
LasseW,

Not to hijack the thread, but thanks for the info. How
does this work with an encrypted file? Example:

mingdao@james:~$ file Oct_newsletter.pdf.gpg
Oct_newsletter.pdf.gpg: data
 
Old 10-29-2004, 09:12 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Same thing ...

It's an encrypted file, and without the password
it obviously won't be able to tell WHAT you have
in it ... might be mp3, xls or pdf....

If I send you a something in a gift-wrapped box
looking at the box won't tell you anything about
the content (not in detail, of course) ... it may say
on the customs form that it's a present, and that
it's e.g. a Linux-CD. But to get what it REALLY is
you need to open the box.



Cheers,
Tink
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot print PDF files. mooreted Mandriva 17 01-02-2012 03:11 AM
PDF fIles:how to read it sarajevo Debian 6 05-30-2005 12:14 PM
pdf files sharapchi Linux - Newbie 3 05-19-2005 07:55 AM
Foxit PDF Reader 1.3: A Nice PDF Viewer Cinematography Linux - Software 6 05-03-2005 04:36 PM
pdf files dari jones Linux - Newbie 1 03-12-2005 10:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:38 PM.

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