LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 02-25-2005, 11:56 AM   #1
mooreted
Member
 
Registered: May 2003
Posts: 598

Rep: Reputation: 30
Cannot print PDF files.


I downloaded an application for a birth certificate in PDF format, opened it in the latest Acrobat Reader and tried to print it. If I try to print or convert the file to postscript, I get this error:

This PostScript file was created from an encrypted PDF file.
Redistilling encrypted PDF is not permitted.

Error: /typecheck in --get--
Operand stack:
--nostringval-- Filter
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1052/1417(ro)(G)-- --dict:0/20(G)-- --dict:73/200(L)-- --dict:73/200(L)-- --dict:97/127(ro)(G)-- --dict:229/230(ro)(G)-- --dict:16/24(L)--
Current allocation mode is local
ESP Ghostscript 7.07.2: Unrecoverable error, exit code 1

How do you do this?

P.S. If I try to print with no filters, kprinter throws this error:

"no filter found for text plain"


Last edited by mooreted; 02-25-2005 at 12:42 PM.
 
Old 02-25-2005, 01:20 PM   #2
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
I found a ghostscript font bug in 10.0 : http://bugs.mandrakelinux.com/query.php?bug=1184
/usr/share/fonts/default/ghostscript/Fontmap points to /usr/share/ghostscript/7.05/lib/Fontmap.GS
It should point to /usr/share/ghostscript/7.07/lib/Fontmap.GS. Fix that link and try again.

- Peder
 
Old 02-25-2005, 01:39 PM   #3
mooreted
Member
 
Registered: May 2003
Posts: 598

Original Poster
Rep: Reputation: 30
Nope, I still get:

"no filter found for text/plain"
 
Old 02-25-2005, 02:01 PM   #4
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
The line "This PostScript file was created from an encrypted PDF file. Redistilling encrypted PDF is not permitted."
sorta tells it all I guess (didn't see it at first).

The only solution I can think of right now is to get a screenshot and print that

- Peder
 
Old 02-25-2005, 02:10 PM   #5
mooreted
Member
 
Registered: May 2003
Posts: 598

Original Poster
Rep: Reputation: 30
Windows prints it just fine. There must be a Linux way!
 
Old 02-28-2005, 01:28 AM   #6
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
The linux way of printing, I think, is to convert the input (in this case PDF) to postscript and print using ghostscript.
This encrypted PDF doesn't seem to allow it. I bet you can print an ordinary PDF w/o problem.

Windows doesn't take the "convert to PS" route and thus avoids this problem.

I found some more info here: http://www.stillhq.com/ctpfaq/2001/c...aq-2001-02.txt

- Peder
 
Old 02-28-2005, 02:34 AM   #7
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
have you tried xpdf ?

i used it to print a pdf before

Last edited by heema; 02-28-2005 at 02:35 AM.
 
Old 02-28-2005, 04:34 AM   #8
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
The problem isn't which program you're using to open the PDF I think , the problem is that all programs
use "convert-to-ps-and-sent-to-ghostscript" routine for printing.
When dealing with an encrypted PDF that is prohibited (though the link I found might be a
way to circumvent it [but that might be illegal]).

- Peder
 
Old 02-28-2005, 06:30 AM   #9
mooreted
Member
 
Registered: May 2003
Posts: 598

Original Poster
Rep: Reputation: 30
I can't figure out why someone would encrypt a form that's meant to be downloaded, printed and filled out by the end user.

Oh, well. I guess you just always have to keep a copy of Windows around.
 
Old 02-28-2005, 07:05 AM   #10
bunnadik
Member
 
Registered: Jan 2005
Location: Övik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
Perhaps some overenthusiastic zealot who likes to check every box available when creating a PDF

Just to be sure, have you tried printing some other PDF?

- Peder
 
Old 02-28-2005, 08:32 AM   #11
mooreted
Member
 
Registered: May 2003
Posts: 598

Original Poster
Rep: Reputation: 30
Yeah, other PDFs seem to print fine.

The PDF that won't print comes from a government site; enough said...

 
Old 02-28-2005, 11:40 AM   #12
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Rep: Reputation: 45
This intrigues me. Can you post a link to the problem file?
 
Old 02-28-2005, 11:50 AM   #13
mooreted
Member
 
Registered: May 2003
Posts: 598

Original Poster
Rep: Reputation: 30
Sure:

http://www.dhs.ca.gov/publications/forms/pdf/vs111.pdf
 
Old 02-28-2005, 12:41 PM   #14
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Rep: Reputation: 45
Curiouser and curiouser! I get the same error and while playing with the file KDE 3.2 froze solid. I had to init 3.

The file has a Master Password but edits and printing are set as allowed. Kghostview would not open it.
 
Old 02-28-2005, 01:28 PM   #15
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Rep: Reputation: 45
I've made some progress with this.

To print from Acrobat Reader, enter lp as the print command, replacing the default kprinter. However, if you try to fill in the form, it won't print.

xpdf will open and print the document using either kprinter or lp.

Hope this helps.
 
  


Reply



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
Print-to-file print driver to print PDF Bill Fox Linux - General 3 05-02-2006 04:15 PM
evince doesn't print PDF files correctly polemon Linux - Software 0 11-22-2005 04:16 PM
why I can't print PDF files wannaluvlinux Linux - Software 3 10-13-2004 02:52 AM
print files in PDF or html format from the linux command line IBKnobel Linux - Software 3 07-12-2004 09:29 PM
KGhostView doesn't print pdf files finrold Linux - Software 0 11-26-2003 05:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 01:33 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