Type Default Value Read Only Description
Boolean   False No The gradient of the vertical coordinate.




PDF coordinates are measured upwards from the bottom of the document. For some types of layout, it can be useful to measure coordinates downwards from the top of the document.

By setting this property to true, coordinates are assumed to start at the top rather than the bottom of the document.

More precisely, the origin is assumed to be at the top-left of the current MediaBox.

There are a variety of methods you can use to change coordinate systems.

Note that transforms operate on the underlying PDF coordinate space rather than any abstraction specified by the Units and TopDown properties. If you are using transforms, you will find it easiest to work in the native PDF coordinate space.




The following code creates a PDF document and adds a grid measured in inches.

Set theDoc = Server.CreateObject("ABCpdf10.Doc")
theDoc.Units = "inches"
theDoc.TopDown = True
theDoc.Width = 1 / 8
theDoc.FontSize = 1
theDoc.Rect.Pin = 1
For i = 0 To 12 Step 2
  theDoc.AddLine 0, i, 12, i
  theDoc.Rect.Position 0, i
  theDoc.AddText i
  theDoc.AddLine i, 0, i, 12
  theDoc.Rect.Position i, 0
  theDoc.AddText i
theDoc.Save "c:\mypdfs\doctopdown.pdf"