Question: I'm currently developing an application that uses private Windows messages to trigger (some) code execution (for programmers: defined as [WM\_USER](https://msdn.microsoft.com/en-us/library/windows/desktop/ms644931%28v=vs.85%29.aspx) + n).

I would like to track the order in which some of these are processed by the OS and handled in my app. I can not find sufficient facilities in my IDE to do so.

A free tool would be nice.

FWIW I Develop in Delphi XE2

Answer: 
Look at the newest version of `mudraw`. It is a command line tool that is from the **[MuPDF](http://mupdf.com/)** family of tools.

```
mudraw -o out.html -F html in.pdf

```

Use the newest version, if possible. It has gained quite a few new and additional features (it can do more than just PDF->HTML conversion):

```
$ mudraw
   Usage: mudraw [options] file [pages]
   -p -  password

   -o -  output file name (%d for page number)
   -F -  output format (default inferred from output file name)
         raster: png, tga, pnm, pam, pbm, pwg, pcl
         vector: svg, pdf, trace
         text: txt, html, stext

   -s -  show extra information:
         m - show memory use
         t - show timings
         f - show page features
         5 - show md5 checksum of rendered image

   -R -  rotate clockwise (default: 0 degrees)
   -r -  resolution in dpi (default: 72)
   -w -  width (in pixels) (maximum width if -r is specified)
   -h -  height (in pixels) (maximum height if -r is specified)
   -f -  fit width and/or height exactly; ignore original aspect ratio
   -B -  maximum bandheight (pgm, ppm, pam, png output only)

   -W -  page width for EPUB layout
   -H -  page height for EPUB layout
   -S -  font size for EPUB layout

   -c -  colorspace (mono, gray, grayalpha, rgb, rgba, cmyk, cmykalpha)
   -G -  apply gamma correction
   -I    invert colors

   -A -  number of bits of antialiasing (0 to 8)
   -D    disable use of display list
   -i    ignore errors

   pages comma separated list of page numbers and ranges

```

---

Update (April 2016)
-------------------

The calling convention of the tool has been changed. It is still part of the MuPDF family, but you run it like this now:

```
mutool draw

```
I know you said standalone - but if you can work with node - this is the best node module I found:

<https://github.com/peterdemartini/html5-to-pdf>

To make things easier - here's a node/webpack project I created to create my CV using HTML

<https://github.com/dwjohnston/cv>