Hi all...

I have also the problems with PDF rendering in ggv. And they seem not
corrected in ggv-1.99.98. But I cant check it for sure. Lets explain it.

First of all: can somebody tell which is the default command ggv uses to
convert PDFs to PSs (Edit::GGV Preferences::Ghostscript::Convert PDF to PS).
I have been playing with it and cant get again the original.

And then: something is bad in gs when converting pdfs. Lets get this sample:

-rw-r--r--    1 magallon graficos   214684 Mar  5 00:12 test.pdf

Convert it with gs and xpdf:

werewolf:~/pdf> time pdf2ps test.pdf ta.ps
9.98user 0.24system 0:10.22elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (1279major+1480minor)pagefaults 0swaps
werewolf:~/pdf> time pdftops test.pdf tb.ps
3.18user 0.16system 0:03.38elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (311major+198minor)pagefaults 0swaps

First, look at the times: 10 secs for pdf2ps (ghostscript-7.05-46mdk), and 3
seconds for pdftops (xpdf-2.01-1mdk).

Then look at the sizes:
werewolf:~/pdf> ll
total 3312
-rw-r--r--    1 magallon graficos  2040755 Mar  5 00:44 ta.ps
-rw-r--r--    1 magallon graficos  1117206 Mar  5 00:50 tb.ps
-rw-r--r--    1 magallon graficos   214684 Mar  5 00:12 test.pdf

pdftops is half the size. And then try to view them with gv (or ggv). ta.ps
looks horrible and tb.ps is fine and antialiased.

pdf2ps uses gs directly with DEVICE=pswrite. I think that is what does not
work. gv renders directly to x11alpha, so outout looks good. ggv goes through
an intermediate file, and the 'pswrite' driver breaks antialiasing in some point.

Ah, and btw:

werewolf:~/pdf> pdf2ps  -dLanguageLevel=3 test.pdf ta.ps
Unrecoverable error: rangecheck in .putdeviceprops

and manual page says it is usable...

Hope that this helps to someone that knows gs internals. For now, I would like
to know how to use pdftops from inside ggv...

-- 
J.A. Magallon <[EMAIL PROTECTED]>      \                 Software is like sex:
werewolf.able.es                         \           It's better when it's free
Mandrake Linux release 9.1 (Cooker) for i586
Linux 2.4.21-pre4-jam1 (gcc 3.2.2 (Mandrake Linux 9.1 3.2.2-1mdk))

Reply via email to