Hi I made a context-file that contains a lot of *.jpg pictures. The file is very big now, because the pictures are in good quality. I'll use the document for the web and I think there you can see no more then 72dpi (I'm not shure with that) Is there a command to set down the resolution of the whole document (including the pictures) ?? or do I have to reduce the resolution of each jpg graphic with a graphic-program. severin -- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse für Mail, Message, More! +++
At 16:31 24/10/2003, you wrote:
I made a context-file that contains a lot of *.jpg pictures. The file is very big now, because the pictures are in good quality. I'll use the document for the web and I think there you can see no more then 72dpi (I'm not shure with that) Is there a command to set down the resolution of the whole document (including the pictures) ?? or do I have to reduce the resolution of each jpg graphic with a graphic-program.
if you have a recent context, you can run pstopdf --method=4 somefile.pdf and get a lowres file. This program is written in ruby and assumes that you have ruby as well as GS installed. Hans
At 16:31 24/10/2003, you wrote:
I made a context-file that contains a lot of *.jpg pictures. The file is very big now, because the pictures are in good quality. I'll use the document for the web and I think there you can see no more then 72dpi (I'm not shure with that) Is there a command to set down the resolution of the whole document (including the pictures) ?? or do I have to reduce the resolution of each
jpg graphic with a graphic-program.
if you have a recent context, you can run
pstopdf --method=4 somefile.pdf
i get an error when I try this: "pstopdf" can not be found ... I use MS Windows and Miktex. GS is installed and I downloaded ruby for Windows as well... do I have to install "pstopdf" seperatly?
and get a lowres file. This program is written in ruby and assumes that you have ruby as well as GS installed.
Hans
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse für Mail, Message, More! +++
Saturday, October 25, 2003 Severin Obertuefer wrote:
i get an error when I try this: "pstopdf" can not be found ... I use MS Windows and Miktex. GS is installed
Is it in the path?
c:\programme\ruby\bin; C:\Programme\texmf\context\perltk; C:\Programme\Perl\bin\; C:\Programme\texmf\miktex\bin; %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem I have this pathes in my configuration....
-- Giuseppe "Oblomov" Bilotta
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse für Mail, Message, More! +++
Saturday, October 25, 2003 Severin Obertuefer wrote:
Saturday, October 25, 2003 Severin Obertuefer wrote:
i get an error when I try this: "pstopdf" can not be found ... I use MS Windows and Miktex. GS is installed
Is it in the path?
c:\programme\ruby\bin; C:\Programme\texmf\context\perltk; C:\Programme\Perl\bin\; C:\Programme\texmf\miktex\bin; %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
I have this pathes in my configuration....
So GS is not in the path. Add to your path <path-where-you-installed-GS>\bin; <path-where-you-installed-GS>\lib It is important to put both ..\bin and ..\lib in the path: the first one contains the executable, the second one contains (among other things) the pstopdf batch file. And remember to reboot for maximum assurance that the changes stick :) -- Giuseppe "Oblomov" Bilotta
I recently had the same question with my MikTeX / gs /WinXP installation.
It seems that pstopdf is nowhere on my machine.
There is epstopdf, a different thing, but it doesn't do what pstopdf does.
pstopdf is just a simple batch file pointing to gs, with certain options
specified. I'm about to get around to simply rewriting the Unix version of
pstopdf for DOS. Unless someone has already done it .... anyone??
-Gary
----- Original Message -----
From: "Giuseppe Bilotta"
Saturday, October 25, 2003 Severin Obertuefer wrote:
i get an error when I try this: "pstopdf" can not be found ... I use MS Windows and Miktex. GS is installed
Is it in the path?
-- Giuseppe "Oblomov" Bilotta
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Uh duhhhh...
on Windows its ps2pdf, and it is in ..\gs\lib
-gary
----- Original Message -----
From: "Giuseppe Bilotta"
Saturday, October 25, 2003 Severin Obertuefer wrote:
i get an error when I try this: "pstopdf" can not be found ... I use MS Windows and Miktex. GS is installed
Is it in the path?
-- Giuseppe "Oblomov" Bilotta
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Uh duhhhh...
on Windows its ps2pdf, and it is in ..\gs\lib yes that's right, but I think that ps2pdf and pstopdf is not the same... ps2pdf is a batchfile in the gs library and pstopdf is a ruby "script" which is packed in the "cont-exa.zip". this need ruby and gs.
on my system both programs are installed and i have set a path to all these directories. but when I run "exampler.rb --continue" it seems that I don't have some files: C:\Programme\texmf\context\examplap\scripts>exampler.rb --continue exampler + program exampler exampler + version 1.0 exampler + author PRAGMA POD exampler + commandline "--continue" exampler + using environment setuppath C:/Programme/texmf/context/ruby exampler + loading ./example.exa exampler - sub environment file machine.exa not found exampler - sub environment file presets.exa not found exampler + !! checking if texroot is set to a valid path !! exampler + !! setting variables based on kpsewhich !! exampler - sub environment file paths.exa not found exampler - sub environment file local.exa not found exampler + gone to jobpath C:/Programme/texmf/localtexmf/examplap/jobs exampler + jobpath C:/Programme/texmf/localtexmf/examplap/jobs exampler + resultpath C:/Programme/texmf/localtexmf/examplap/results exampler + server started on 127.0.0.1:8061 exampler + listening at 127.0.0.1:8061 in loop mode and when i type "pstopdf --method=4 r.pdf" the the conversation never ends and "gswin32" takes almost all my RAM!! what can I do? sevi
-gary
----- Original Message ----- From: "Giuseppe Bilotta"
To: Sent: Saturday, October 25, 2003 6:29 AM Subject: Re[2]: [NTG-context] resolution Saturday, October 25, 2003 Severin Obertuefer wrote:
i get an error when I try this: "pstopdf" can not be found ... I use MS Windows and Miktex. GS is installed
Is it in the path?
-- Giuseppe "Oblomov" Bilotta
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse für Mail, Message, More! +++
Uh duhhhh...
on Windows its ps2pdf, and it is in ..\gs\lib yes that's right, but I think that ps2pdf and pstopdf is not the same... ps2pdf is a batchfile in the gs library and pstopdf is a ruby "script" which is packed in the "cont-exa.zip". this need ruby and gs.
I know nothing about Ruby, and its not on any of my systems. AFAIK, ps2pdf on Windows is identical to pstopdf on Linux (and OSX). It (they?) are distributed with gs, not ConTeXt, and call gs, no Ruby involved. I have no idea why it has two names. Maybe I've missed something. If you are trying to accomplish something that the Ruby version offers ... I can't help you there. If you are simply converting [e]ps to pdf, try ps2pdf and see if you get what you want. -gary
At 17:02 26/10/2003, you wrote:
Uh duhhhh...
on Windows its ps2pdf, and it is in ..\gs\lib yes that's right, but I think that ps2pdf and pstopdf is not the same... ps2pdf is a batchfile in the gs library and pstopdf is a ruby "script" which is packed in the "cont-exa.zip". this need ruby and gs.
I know nothing about Ruby, and its not on any of my systems. AFAIK, ps2pdf on Windows is identical to pstopdf on Linux (and OSX). It (they?) are distributed with gs, not ConTeXt, and call gs, no Ruby involved. I have no idea why it has two names. Maybe I've missed something.
If you are trying to accomplish something that the Ruby version offers ... I can't help you there. If you are simply converting [e]ps to pdf, try ps2pdf and see if you get what you want.
pstopdf.rb is a more extensive version of the eps to pdf converter in texutil.pl and uses GS for the conversion; however, pstopdf has a couple of extra features, like cropping, aggresive clean up of code, taking care of platform differences. pstopdf.rb is also used by pstopdf.pdf i.e. a graphical user interface to ps to pdf conversion pstopdf.rb can also watch folders and do automatic conversions BTW, the manual can be downloaded from out site. Hans
"Severin Obertuefer"
exampler + server started on 127.0.0.1:8061 exampler + listening at 127.0.0.1:8061 in loop mode
what a coincidence that texshow-web and exampler are listening on the same port!
what can I do?
perhaps try to run gswin32 with the options that are used in pstopdf (ruby). I think that the relevant section is: def downsample (program, inpfile, outfile) process = program + ' ' + "-dPDFSETTINGS=/screen -dEmbedAllFonts=true " + "-dSAFER " + "-q -sDEVICE=pdfwrite -dNOPAUSE -dNOCACHE -dBATCH " + "-sOutputFile=#{outfile} #{inpfile} -c quit " @exa.execute(process,false) end so try gswin32 -dPDFSETTINGS=/screen -dEmbedAllFonts=true -dSAFER \ -q -sDEVICE=pdfwrite -dNOPAUSE -dNOCACHE -dBATCH \ -sOutputFile=out.pdf in.pdf -c quit (just a guess). Patrick -- You are your own rainbow!
At 17:34 26/10/2003, you wrote:
exampler + server started on 127.0.0.1:8061 exampler + listening at 127.0.0.1:8061 in loop mode
what a coincidence that texshow-web and exampler are listening on the same port!
Ha .. wait till you see its bigger cousin (client runs on 8061/8063 and server on 8060/8062/8064) so you'd better not use 8060-8069 (fyi: 8061 is our postal code) Hans
sorry that i didn't write back till now, but I have hardly ever time for
stuff like that :)
----- Original Message -----
From: "Patrick Gundlach"
"Severin Obertuefer"
writes: [...]
exampler + server started on 127.0.0.1:8061 exampler + listening at 127.0.0.1:8061 in loop mode
what a coincidence that texshow-web and exampler are listening on the same port! I don't know the meanig of this ip and this port! what is texshow-web? I tried to get something about this from the internet, but i could not find a lot of things. once, my goal was to use the command "pstopdf --method=4 somefile.pdf"
severin
what can I do?
perhaps try to run gswin32 with the options that are used in pstopdf (ruby). I think that the relevant section is:
def downsample (program, inpfile, outfile)
process = program + ' ' + "-dPDFSETTINGS=/screen -dEmbedAllFonts=true " + "-dSAFER " + "-q -sDEVICE=pdfwrite -dNOPAUSE -dNOCACHE -dBATCH " + "-sOutputFile=#{outfile} #{inpfile} -c quit "
@exa.execute(process,false)
end
so try gswin32 -dPDFSETTINGS=/screen -dEmbedAllFonts=true -dSAFER \ -q -sDEVICE=pdfwrite -dNOPAUSE -dNOCACHE -dBATCH \ -sOutputFile=out.pdf in.pdf -c quit
(just a guess).
Patrick
-- You are your own rainbow! _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Severin Obertüfer
once, my goal was to use the command "pstopdf --method=4 somefile.pdf"
did you try to execute
so try gswin32 -dPDFSETTINGS=/screen -dEmbedAllFonts=true -dSAFER \ -q -sDEVICE=pdfwrite -dNOPAUSE -dNOCACHE -dBATCH \ -sOutputFile=out.pdf in.pdf -c quit
Patrick -- You are your own rainbow!
Hi,
if you have a recent context, you can run
pstopdf --method=4 somefile.pdf
i get an error when I try this: "pstopdf" can not be found ...
do I have to install "pstopdf" seperatly?
Just a wild guess: since you need ruby installed and a recent ConTeXt, pstopdf is a ruby script shipped with ConTeXt. But Hans forgot to pack the ruby scripts in the last beta (iirc). Patrick -- You are your own rainbow!
participants (6)
-
Gary Pajer
-
Giuseppe Bilotta
-
Hans Hagen
-
Patrick Gundlach
-
Severin Obertuefer
-
Severin Obertüfer