setViewerPreferenceName
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.
VB6:
Dim out as Long
out = pdf.openOutput "c:/test/output.pdf"
pdf.setViewerPreferenceName out, "Duplex", "DuplexFlipLongEdge"
...
VB.net:
Dim out as Long
out = pdf.openOutput("c:/test/output.pdf")
pdf.setViewerPreferenceName(out, "Duplex", "DuplexFlipLongEdge")