Set a ViewerPreferences dictionary entry in an output PDF file.
setViewerPreferenceName([in] LONG outputHandle, [in] BSTR key, [in] BSTR val)
This function sets a ViewerPreferences dictionary entry (with a name-type value) in an output PDF file. The entry specified by key is set to val.

The PDF specification lists the available viewer preferences. This function only handles preferences whose values are name objects.

Dim out as Long out = pdf.openOutput "c:/test/output.pdf" pdf.setViewerPreferenceName out, "Duplex", "DuplexFlipLongEdge" ...
Dim out as Long out = pdf.openOutput("c:/test/output.pdf") pdf.setViewerPreferenceName(out, "Duplex", "DuplexFlipLongEdge")