Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

converting pdf to postscript: pdf2ps, pdftops and acroread

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
14 posts • Page 1 of 1
Author
Message
nahpets
Veteran
Veteran
User avatar
Posts: 1178
Joined: Sun Oct 05, 2003 11:18 pm
Location: Montreal, Canada

converting pdf to postscript: pdf2ps, pdftops and acroread

  • Quote

Post by nahpets » Thu Apr 01, 2004 11:30 pm

I have a pdf file that I want to convert to postscript. There are three ways I can do this (as far as I know).

1. pdf2ps (ghostscript package)
2. pdftops (xpdf package)
3. acroread (print to file)

When I use "pdf2ps" and view the output in gv or kghostview, there is no right margin. The text goes all the way to the edge of the page.

When I use pdftops, the output looks fine.

Whe I open the pdf in acroread and print-to-file, I can view the ps file in gv, but kghostview shows only blank pages with the following output:

Code: Select all

$ kghostview print.ps
kghostview: WARNING: KFilterBase::findFilterByExtension : no filter found for application/postscript
In fact, I get the same warning from kghostview every time I open a ps file.

Does anyone know what's going on here? Is there a configuration problem with ghostscript or something?
Top
DigitalDan
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 113
Joined: Mon Nov 18, 2002 6:40 am
Location: Chicago

  • Quote

Post by DigitalDan » Fri Apr 02, 2004 4:44 am

check out a2ps. It does all the work for you and has tons of options. It stands for anything to postscript.
gentoo baby, its the only way!
Top
nahpets
Veteran
Veteran
User avatar
Posts: 1178
Joined: Sun Oct 05, 2003 11:18 pm
Location: Montreal, Canada

  • Quote

Post by nahpets » Fri Apr 02, 2004 8:20 am

Shame on me! I actually forgot about "a2ps" :oops:

I tried it out, and it converts to ps well, except that I can't open the resulting file in "kghostview". It keeps giving me that "no filter found" error message. Anyone know what's up with that?
Top
misterLu
Guru
Guru
User avatar
Posts: 430
Joined: Sun Sep 14, 2003 4:58 pm
Location: Poland

  • Quote

Post by misterLu » Sun Apr 18, 2004 9:03 pm

DigitalDan wrote:check out a2ps. It does all the work for you and has tons of options. It stands for anything to postscript.
It doesn't handle properly with doc or sxw files :(
Let's see this example:

Code: Select all

 # a2ps  szkola/mnum/sprawozdanie.sxw -o file.ps
[szkola/mnum/sprawozdanie.sxw (standard): 92 pages on 46 sheets]
[All: 92 pages on 46 sheets] written into `file.ps'
[355 lines wrapped]
Oryginal file.sxw had 7 pages, now file.ps has 92. That is not OK :( .

how can I convert doc/sxw to ps ??
Top
nahpets
Veteran
Veteran
User avatar
Posts: 1178
Joined: Sun Oct 05, 2003 11:18 pm
Location: Montreal, Canada

  • Quote

Post by nahpets » Mon Apr 19, 2004 6:05 am

Use the "print to postscript" option in the "Print" dialog box. Instead of sending your document to a printer, it will be written to a ps file.
Top
misterLu
Guru
Guru
User avatar
Posts: 430
Joined: Sun Sep 14, 2003 4:58 pm
Location: Poland

  • Quote

Post by misterLu » Mon Apr 19, 2004 9:19 am

Thanks!
I have another idea: I export file to pdf, and then use a2ps.

Is there any program that lets you modify ps files ??
I have ghostscript , but I can use it as a previewer only.
Top
nahpets
Veteran
Veteran
User avatar
Posts: 1178
Joined: Sun Oct 05, 2003 11:18 pm
Location: Montreal, Canada

  • Quote

Post by nahpets » Mon Apr 19, 2004 7:52 pm

misterLu wrote:Thanks!
Is there any program that lets you modify ps files ??
I have ghostscript , but I can use it as a previewer only.
Well, you can always use a text editor. Not sure if there's a GUI editor for PS files though.
Top
misterLu
Guru
Guru
User avatar
Posts: 430
Joined: Sun Sep 14, 2003 4:58 pm
Location: Poland

  • Quote

Post by misterLu » Mon Apr 19, 2004 9:28 pm

Thanks!

And maybe you 've come across this problem:
http://forums.gentoo.org/viewtopic.php?t=163273
Top
nahpets
Veteran
Veteran
User avatar
Posts: 1178
Joined: Sun Oct 05, 2003 11:18 pm
Location: Montreal, Canada

  • Quote

Post by nahpets » Tue Apr 20, 2004 6:13 am

Nope. When I have a pdf file I want to convert to ps, I open it in "acroread" and print to file. I've never had any messages about missing fonts.
Top
misterLu
Guru
Guru
User avatar
Posts: 430
Joined: Sun Sep 14, 2003 4:58 pm
Location: Poland

  • Quote

Post by misterLu » Wed Apr 21, 2004 12:48 pm

This means I have a shity pdf-file. As far as I know, it has been somehow protected , that you can't open it in the editor and do 'copy-paste' content of the document. Is it possible ?


When I try to open it with acroread, i get this error:

Code: Select all

There was an error opening this document. The file is damaged and could not be repaired.
I use app-text/acroread-5.08
Top
nahpets
Veteran
Veteran
User avatar
Posts: 1178
Joined: Sun Oct 05, 2003 11:18 pm
Location: Montreal, Canada

  • Quote

Post by nahpets » Wed Apr 21, 2004 9:27 pm

Can you list the steps you took to create you PDF file?
Top
misterLu
Guru
Guru
User avatar
Posts: 430
Joined: Sun Sep 14, 2003 4:58 pm
Location: Poland

  • Quote

Post by misterLu » Fri Apr 23, 2004 12:15 pm

I can't :( . I'm not the author of this document.
This is some kind "network technology tutorial" written in polish.
I can only show/send you this document.
Top
nahpets
Veteran
Veteran
User avatar
Posts: 1178
Joined: Sun Oct 05, 2003 11:18 pm
Location: Montreal, Canada

  • Quote

Post by nahpets » Fri Apr 23, 2004 12:20 pm

If it's written in Polish, chances are you don't have the fonts installed on your system (like the message says). You should search for "fonts AND acroread" or "fonts AND postscript" to find out how to install missing fonts.
Top
misterLu
Guru
Guru
User avatar
Posts: 430
Joined: Sun Sep 14, 2003 4:58 pm
Location: Poland

  • Quote

Post by misterLu » Fri Apr 23, 2004 1:39 pm

I'm afraid I have all avaible fonts installed. I coudn't find anything that seems to help solving me this.
I'll edit this ps file manually and try to change TimesNewRoman,BoldItalic-Identity-H
to some other font. Maybe this will help.
Top
Post Reply

14 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy