John Culleton wrote:

On Thursday 24 April 2003 02:36, Hans Hagen wrote:


Hi

Jonh C wants to know how to open a doc in specific modes:

\setupinteraction[openaction={firstpage,FitHeight},state=start]   %
or FitWidth

\starttext

\input tufte

\stoptext



I am returning to this project, and this problem, after several months.
I want to open a document in Acrobat Reader with no menu bar, thumbnails etc. and at its natural size. In the "PdfTeX Manual' this is described as /PageMode /UseNone
or /PageMode /FullScreen
but such pdf primitives are deprecated in Context. So now I need a way to do it in Context. I know it can be done because Hans has provided pdf files that have no menu bar nor thumbnails/outline etc. show-dem.pdf is an early example.


Hello John,

I don't know exactly what you want, but playing around with the following code should do the job.
This is the only way I know, to do this in ConTeXt. Maybe there are others...



\doPDFaddtocatalog{
/PageLayout /SinglePage % SinglePage/OneColumn/TwoColumnLeft/TwoColumnRight
/PageMode /UseNone % UseNone/UseOutlines/UseThumbs/FullScreen/UseOC
/OpenAction [0 /XYZ 0 0 1] % pagenumber (starts with 0), then destination
/ViewerPreferences <<
% /HideToolbar true
/HideMenubar true
% /HideWindowUI true
% /FitWindow true
% /CenterWindow true
>>
}



Regards,


Peter




_______________________________________________ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to