Sets information about an object.

 

   
Syntax
 
     

Doc.SetInfo ID, Type, Value

 

   
Params
 
     
Name   Type   Description
ID Long

The Object ID of the object to be modified.

Type String

The type of value to insert.

Value String The value to insert.

 

   
Notes
 
     

In the same way as you can get information about aspects of a document using the GetInfo method you can modify aspects of the document using the SetInfo method.

Different types of object support different types of properties. For more detailed information see the PDF Objects section of this document.

PDF objects are case sensitive so be sure you use the correct case.

 

   
Example
 
     

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
"

 

   

 

Browser Based Help. Published by chm2web software.