Updated after OP input:
In order to typeset the OCR layer of a DJVU file into a PDF file, that is print the words at the location they appear in the DJVU file, one option is to programatically generate an Inkscape or Scribus file. I will sketch the procedure. It is not difficult to write a script in your language of choice (Python, Ruby, Racket, etc.).
For every page of the DJVU file export the OCR layer as HTML or as an S-expression. I will assume the latter in the following.
Extract the page size from
(page x1 y1 x2 y2.... Page width =
x2-x1, Page height =
For each word calculate the width, height and coordinates of the lower left corner of the text frame that will contain it. That is turn
(word x1 y1 x2 y2 "another") into a text frame with lower left corner at
(x1, Page height - y1), width
x2 - x1 and height
y2 - y1.
Select suitable font and font size for the text frame. Use the height of the word rectangles as a guidance. Make sure that the text is not stretched to fit the text frame.
Once you are finished adding all the text frames to the page export the file to PDF. Notice that the page size is much larger than letter or A4. If you intend to print the document make sure to scale it in the print dialog to fit your paper size. In order to save trees print to a PDF file first.
man djvused, the command
'output-txt' will generate a
djvused script, which is intended for consumption by
For your purposes it is better to use (according to the man page)
djvused myfile.djvu -e 'print-pure-txt' > myfile.txt
Then you can produce a PDF file using a program that can print to PDF.
Depending on your operating system and version you may need to install a PDF printer. You can also open it in a recent version of Chrome or Firefox and print to PDF.