Command line:
tlapi ‑cPREVIEW [‑psPhase] [‑u] [‑snShow] sPart
Library call:
nStatus = TLpreview (sPart, sPhase, nUpd, nShow)


Preview the partition output pages using the TopLeaf page previewer. It is possible to preview a print image for either the full set of pages from the partition or limited to the set of pages changed in the specified release phase (published or update).

This function is not supported on linux.



The path of the partition to be previewed.


The partition phase from which to take the data. One of INITIAL, PUBLISH, UPDATE or CURRENT. Defaults to PUBLISH, so for a non-looseleaf job it is usual to select INITIAL.


If non-zero, only changed pages are included in the PDF. In the command line version, use the ‑u flag to request only changed pages.


The Windows showmode for the typesetting progress display. By default, the typesetting dialog will be displayed.

The only useful values are SW_NORMAL (1), SW_MAXIMIZE (3) and SW_MINIMIZE (6).

For additional command line arguments see “Common Flag Arguments”.


Command line:

tlapi ‑cPREVIEW ‑pPUBLISH manuals/topix/vol1

Library call:

status = TLpreview("manuals/topix/vol1", "PUBLISH", 0L, 0L);