1827892 Members
1726 Online
109969 Solutions
New Discussion

HTML2PDF for VMS?

 
SOLVED
Go to solution
Brian Reiter
Valued Contributor

Re: HTML2PDF for VMS?

Another possibility, although I don't know if your system will support it (or your system manager install it) is to use XHTML2PDF which comes with Jean-Francois Pieronne's python kit.

It can be downloaded as a ready to use container file. No good if you're on VAX though.

cheers

Brian
Clark Hayden
Advisor

Re: HTML2PDF for VMS?

After searching around the problem seems to be the CSS. It could be that the executable on our Itanium is out of date. Do you perhapes have an executable image for HTMLDOC that supports CSS?

Thanks.
Hayden.
Joseph Huber_1
Honored Contributor

Re: HTML2PDF for VMS?

The home-page of HTMLDOC is
http://www.htmldoc.org/

Current version is 1.9, but the docu/release notes seems to be 1.8.27:
there it says to NOT support CSS.
So I doubt You will find a (VMS-) executable supporting CSS.
http://www.mpp.mpg.de/~huber
Clark Hayden
Advisor

Re: HTML2PDF for VMS?

I was on their wbesite that's how I know that the 1.9 version supports CSS. The download links on the website also don't seem to bee working for 1.9.

If I could get my hands on the individual files of 1.9, then how would I go about compiling them on VMS? I have compiled using CC so I know that the platform can handle it.

Thanks.
Hayden.
Joseph Huber_1
Honored Contributor

Re: HTML2PDF for VMS?

Seems it is a not so simple product to compile and go!
It needs some C++ graphic library, zlib,libjpeg and a lot more.

The author of the VMS port is/was
pat.moran AT hp.com
Maybe You can contact her/him if the CSS support is urgently needed ?
http://www.mpp.mpg.de/~huber
Martin Vorlaender
Honored Contributor

Re: HTML2PDF for VMS?

Okay, so I grabbed the latest revision from the SVN repository, adapted some header, wrote some MMS files, and now have an executable (command line only, no GUI).

The next showstopper is this: all file opens go through a central routine, that opens them in *binary* mode. How can I get the C RTL to sensibly handle variable length text files, without implementing a cludge like looking at the filename extension, and without rewriting the whole HTMLDOC I/O system?

cu,
Martin
Martin Vorlaender
Honored Contributor

Re: HTML2PDF for VMS?

Update:

For now, I've got it working when I convert all input files to Stream_LF.

But it still crashes when the output file format is PDF. I'm looking into it...

cu,
Martin
H.Becker
Honored Contributor

Re: HTML2PDF for VMS?

>>>
How can I get the C RTL to sensibly handle variable length text files, without implementing a cludge like looking at the filename extension, and without rewriting the whole HTMLDOC I/O system?
<<<

The CRTL supports an 'Access callback routine' for open and friends, described in creat(). I used that to check the record format and to convert the file, on the fly.
Martin Vorlaender
Honored Contributor

Re: HTML2PDF for VMS?

There now is a source archive of HTMLDOC 1.9x SVN rev 1666 at

http://vms.pdv-systeme.de/users/martinv/htmldoc-1_9x-r1666-vmssrc.zip

To build it, you'll need the DEC C and C++ compilers, and MMK installed (haven't tested MMS, though I'd think it should work). The sources for zlib (1.2.5), libpng (1.4.1), and libjpeg (8a) come with the kit. The executables built are non-GUI. Be sure to read the file [.vms]readme.txt

I tested it by building the documentation.

Feedback welcome.

cu,
Martin

P.S.: Thanks, Hartmut, for hinting me to the acc. I'll give it a try when I have some time.