Hi Christof,
This would indeed be a useful plug-in. Up till now I have been
printing single screen shots (with * to give full screen) one at a time
till I have scrolled right through the web page (with PRINTGFD set to
print in landscape).
But when I tried the stuff below it only gave me a black screen for a
few seconds, then back to the "print BMP" page, and of course the bitmap
had been deleted.
I had, of course, edited grafprt.bat with the correct path to PRINTGFD.
What DOS flavour are you running ? And which Arachne version ?
Regards,
Ron
On Sat, 2 Aug 2003 17:51:05, [EMAIL PROTECTED] wrote:
> Hi list,
> the fine program printgfd.exe has been sitting on my hard disk for
> quite some time. I usually print graphics only with my word
> processor. So I did not use printgfd.exe very often, but it is good
> to have.
> A long time ago someone on the list found out how to use that
> program in order to print BMP from Arachne. That time I was not
> entirely convinced of the results. Now, after having spent a couple of
> hours with the program interface and documentation I finally got the
> program to do what I want:
> It prints all virtual pages (BMPs) fitting horizontally to A4 paper
> on as many pages as necessary.
> 1. Arachne plug-in to print pages graphically
> *********************************************
> The mime.cfg line is (everything on one line):
> ----------- mime.cfg --------------------------
> file/printbmp.dgi |@call grafprt.bat
> 4prt.bmp $r \n del _4prt.bmp
> -----------------------------------------------
> The batch file I wrote for this task is a bit complicated as
> Arachne's internal variable $r does not hand over the actual
> screen width, but the screen width in pixels minus the width
> of the scroll bar (is there a reason why?). The script
> grafprt.bat reads:
> ------------ grafprt.bat -------------------
> @echo off
> rem --- 1st parameter is the name of the bitmap file ---
> set fname=%1
> shift
> rem --- 2nd parameter is horizontal width of the bitmap ---
> rem --- scroll bar width is 10 pixel ------
> for %%i in (629 640 789 800 loop640 loop800)
> do if "%1"=="%%i" goto %%i ---- one line! ---
> goto done
> rem --- the labels 629...800 call the program again ------
> rem --- and hand over beginning of vertical sections -----
> :629
> :640
> grafprt.bat %fname% loop640 0 700 1400 2100 2800 3500
> :789
> :800
> grafprt.bat %fname% loop800 0 900 1800 2700 3600 4500
> rem --- label loop640 prints a page <=640 pixels ---
> :loop640
> shift
> if "%1"=="" goto done
> cls
> i:\appl\grafprg\printgf\printgfd.exe %fname% /AA320,%1,640,800
> echo.
> choice "more? [y/n] " /C:NY /N
> if not errorlevel 2 goto done
> goto loop640
> rem --- label loop800 prints a page <=800 pixels ---
> :loop800
> shift
> if "%1"=="" goto done
> cls
> i:\appl\grafprg\printgf\printgfd.exe %fname% /AA400,%1,800,1000
> echo.
> choice "more? [y/n] " /C:NY /N
> if not errorlevel 2 goto done
> goto loop780
> :done
> -------------------------------------------------------
Ron Clarke
AUSREG Consultancy http://homepages.valylink.net.au/~ausreg/index.html
Tadpole Tunes http://tadpole.mytunebook.de/
-- This mail was written by user of The Arachne Browser - http://arachne.cz/