flags = doc:GetViewerPreference()
doc:GetViewerPreference()
See doc:SetViewerPreference for a list of supported preferences.
#HPDF_INVALID_DOCUMENT