Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the board
Thread view  Mix view  Order  «  
 
Rugxulo(R)

Homepage

Usono,
10.09.2011, 23:38

@ jassenna

PDFDRAW.EXE | RTFW

> DOS386 said:
>
> > RTFW
>
> Or unofficial, as you prefer. I read the wiki page you mentioned,
> but it does not have any download url for pdfdraw. The MUPDF zip file
> I downloaded through the link provided in this forum has mupdf only,
> no pdfdraw.
> Please excuse me for asking things that may be obvious, but this
> thread is the first place where I saw anything about pdfdraw.
>
> PS-I am using EDR-DOS now.

I have not tried, but I assume he means use HX + the Win32 binary (PDFDRAW.EXE) located here:

http://www.mupdf.com/
http://code.google.com/p/mupdf/downloads/list


  6356992  09/05/2011 13:14   mupdf-0.9-windows/pdfdraw.exe

DOS386(R)

11.09.2011, 07:58

@ Rugxulo

PDFDRAW.EXE | RTFW

> use HX + the Win32 binary (PDFDRAW.EXE) located here:
> http://www.mupdf.com/ http://code.google.com/p/mupdf/downloads/list

or http://jafile.com/uploads/dos386/pdfdraww.zip

BTW, MUPDF.EXE doesn't work:

[image]

http://jafile.com/uploads/dos386/win_main.c


        /* Create window */
        hwndframe = CreateWindowW(L"FrameWindow", // window class name
        NULL, // window caption
        WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN,
        CW_USEDEFAULT, CW_USEDEFAULT, // initial position
        300, // initial x size
        300, // initial y size
        0, // parent window handle
        0, // window menu handle
        0, // program instance handle
        0); // creation parameters
        if (!hwndframe)
                win32error("cannot create frame: %s");


There is a problem with CreateWindowEx (bug or missing feature) :-(

PS: ftp://ftp.sac.sk/pub/sac/graph/s3vbe318.zip
PPSS: Ctyme is fine in Arachne

---
This is a LOGITECH mouse driver, but some software expect here
the following string:*** This is Copyright 1983 Microsoft ***

jassenna(R)

Campinas,SP,Brazil,
22.09.2011, 06:08

@ DOS386

PDFDRAW.EXE | RTFW

Thank you very much for the links.
Unfortunately, neither PDFDRAW works. It terminated with a
"Fatal Error: Out of Memory" in the tests I performed. At least it
did not crash, but still is not a viable pdf viewer/converter for DOS.

bocke(R)

26.09.2011, 22:15

@ DOS386

PDF readers for DOS

> PS: Any reccommandations about standalone GhostScript binary (and how to
> use) ?

There are some FreeDOS builds here: http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/util/file/gs/. They are not the most recent (2008) but I would guess they are recent enough. Using GhostScript directly wouldn't be as comfortable as using a frontend. Usually, gs file.pdf would show a file automatically and pressing "return" key would change a page. I'm not sure if there is any way to control the flow of the document rendering (ie if you could go to a previous page or similar), but I would suppose not. So you really need a frontend. Makes the life much easier. If you're really interested there is also an online manual:
http://ghostscript.com/doc/8.63/Use.htm

Of course, if you don't need 16-bit. Otherwise, there is a really old 16-bit build of GS 2.6, but I don't know how useful it is nowadays.

Btw, I can't remember if there is a native port of SDL to DOS. I know you can run some win32 SDL apps using Hx, but was wondering about native option.

Anyway, I tried googling for some PDF readers/tools that might be portable to DOS or runnable with Hx:

Green - an SDL PDF reader
https://github.com/schandinat/green/wiki/
Nupdf - it uses mupdf library for rendering and SDL for GUI
http://en.qi-hardware.com/wiki/Nupdf
PoDoFo - a pdf manipulation library and a couple of command line tools
http://podofo.sourceforge.net/about.html
pdftohtml - converts pdf to html, based on xpdf
http://pdftohtml.sourceforge.net/

There are also online pdf to html converters and viewers. Those usually have a bloated interface or are based on flash pdf viewing component. But there is an FOSS pdf viewer with a simple interface at: http://view.samurajdata.se/. I tried the online interface but couldn't upload the file. Haven't tried installing the script locally and running it from my machine. It will require a browser with the image support as it renders the pages as a gif images.

bocke(R)

28.09.2011, 01:55

@ bocke

PDF readers for DOS

I didn't get an answer on DOS SDL port. :) Is this possible at all?

DOS386(R)

20.11.2011, 04:42

@ jassenna

PDFDRAW.EXE | RTFW | PDFDRAW issues | | 16 MiB

> Thank you very much for the links.
> Unfortunately, neither PDFDRAW works. It terminated with a
> "Fatal Error: Out of Memory" in the tests I performed. At least it
> did not crash, but still is not a viable pdf viewer/converter for DOS

It IS ... but it needs cca 16 to 32 MiB RAM to run ... BTW, it works on Pentium 1 too :-)

> > Your CPU and RAM size ???
> 486DX50 with 16 MB RAM

Issues:

* hangers on exit (remarkable on slow PC's)
* extract text feature broken (memory leak, crashes)
* destination filename is not fool-proof

---
This is a LOGITECH mouse driver, but some software expect here
the following string:*** This is Copyright 1983 Microsoft ***

KormaX(R)

01.11.2017, 00:23

@ Ninho

MUPDF/DGJPP test release!

For the honour of DOS!

If anybody is still interested, I am using this tool to view PDF-s on DOS:

http://www.nomdo.dds.nl/psview.htm

It is actually a controller to PDF2PS, GhostScript and LXPIC in order to convert .PDF to a temporary postscript file, than converting it to temporary .PCX pictures and than displaying them in LXPIC. It works fine, but I use it with a batch script placing all the components into a RAM-disk so no real disk read-write stuff happens after "loading" all the stuff once. Also thanks for the Arachne packages, most of the links stille works so I downloaded a lot of them to try :D

---
DOS isn't about why. It's about why not.

KormaX(R)

01.11.2017, 00:51

@ Rugxulo

PDF readers for DOS | XPDF 3.03 more info | Subdocuments

For the honour of DOS!

If anybody is still interested, I am using this tool to view PDF-s on DOS:
http://www.nomdo.dds.nl/psview.htm

It is actually a controller to PDF2PS, GhostScript and LXPIC in order to convert .PDF to a temporary postscript file, than converting it to temporary .PCX pictures and than displaying them in LXPIC. It works fine, but I use it with a batch script placing all the components into a RAM-disk so no real disk read-write stuff happens after "loading" all the stuff once. Also thanks for the Arachne packages, most of the links stille works so I downloaded a lot of them to try :D

---
DOS isn't about why. It's about why not.

jassenna(R)

Campinas,SP,Brazil,
07.11.2017, 00:54

@ ron

PDF readers for DOS

ron said:
> I prefer to see each page in full colour, graphics and printable.
> So I use Arachne with the Ghostscript plug-in. Both local and remote
> files.
> Once set up, it appears seamless. One click !

What machine are you using ?
Are you using it under "pure" DOS or an emulator ?

I found Arachne quite clumsy in a 486 running DOS
and GhostScript barely better than nothing, as it only
allows viewing page by page, without pan, zoom ,scroll
or going back.

Back to the board
Thread view  Mix view  Order  «  
 
15192 Postings in 1365 Threads, 250 registered users, 13 users online (0 registered, 13 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum