|
The following shows how to modify the document catalog to ensure
that the PDF opens onto the second page rather than the first.
Set theDoc = Server.CreateObject("ABCpdf3.Doc")
theDoc.Read "c:\mypdfs\sample.pdf"
thePages = theDoc.GetInfo(theDoc.Root, "Pages")
thePage2 = theDoc.GetInfo(thePages, "Page 2")
theAction = "[ " & thePage2 & " 0 R /Fit
]"
theDoc.SetInfo theDoc.Root, "/OpenAction", theAction
theDoc.Save "c:\mypdfs\docsetinfo.pdf"
|