View previous topic :: View next topic |
Author |
Message |
nahpets Veteran
Joined: 05 Oct 2003 Posts: 1178 Location: Montreal, Canada
|
Posted: Thu Apr 01, 2004 11:30 pm Post subject: converting pdf to postscript: pdf2ps, pdftops and acroread |
|
|
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: |
$ 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? |
|
Back to top |
|
|
DigitalDan Tux's lil' helper
Joined: 18 Nov 2002 Posts: 113 Location: Chicago
|
Posted: Fri Apr 02, 2004 4:44 am Post subject: |
|
|
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! |
|
Back to top |
|
|
nahpets Veteran
Joined: 05 Oct 2003 Posts: 1178 Location: Montreal, Canada
|
Posted: Fri Apr 02, 2004 8:20 am Post subject: |
|
|
Shame on me! I actually forgot about "a2ps"
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? |
|
Back to top |
|
|
misterLu Guru
Joined: 14 Sep 2003 Posts: 430 Location: Poland
|
Posted: Sun Apr 18, 2004 9:03 pm Post subject: |
|
|
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: |
# 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 ?? |
|
Back to top |
|
|
nahpets Veteran
Joined: 05 Oct 2003 Posts: 1178 Location: Montreal, Canada
|
Posted: Mon Apr 19, 2004 6:05 am Post subject: |
|
|
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. |
|
Back to top |
|
|
misterLu Guru
Joined: 14 Sep 2003 Posts: 430 Location: Poland
|
Posted: Mon Apr 19, 2004 9:19 am Post subject: |
|
|
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. |
|
Back to top |
|
|
nahpets Veteran
Joined: 05 Oct 2003 Posts: 1178 Location: Montreal, Canada
|
Posted: Mon Apr 19, 2004 7:52 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
misterLu Guru
Joined: 14 Sep 2003 Posts: 430 Location: Poland
|
|
Back to top |
|
|
nahpets Veteran
Joined: 05 Oct 2003 Posts: 1178 Location: Montreal, Canada
|
Posted: Tue Apr 20, 2004 6:13 am Post subject: |
|
|
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. |
|
Back to top |
|
|
misterLu Guru
Joined: 14 Sep 2003 Posts: 430 Location: Poland
|
Posted: Wed Apr 21, 2004 12:48 pm Post subject: |
|
|
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: | There was an error opening this document. The file is damaged and could not be repaired. |
I use app-text/acroread-5.08 |
|
Back to top |
|
|
nahpets Veteran
Joined: 05 Oct 2003 Posts: 1178 Location: Montreal, Canada
|
Posted: Wed Apr 21, 2004 9:27 pm Post subject: |
|
|
Can you list the steps you took to create you PDF file? |
|
Back to top |
|
|
misterLu Guru
Joined: 14 Sep 2003 Posts: 430 Location: Poland
|
Posted: Fri Apr 23, 2004 12:15 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
nahpets Veteran
Joined: 05 Oct 2003 Posts: 1178 Location: Montreal, Canada
|
Posted: Fri Apr 23, 2004 12:20 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
misterLu Guru
Joined: 14 Sep 2003 Posts: 430 Location: Poland
|
Posted: Fri Apr 23, 2004 1:39 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
|