Unit of Measure

This Feature had been a great improvement: you can now choose the unit of measure you prefer to manage the PDF file.

The standard Unit of measure is the millimeter; the available values for the Property UnitOfMeasure are:

  1. mm
  2. cm
  3. inch
  4. pdfu

The Look at this code:

Private Sub Command4_Click()
  Dim PDFRPT As New PDFDocument
  PDFRPT.NewPDF "This is my first PDF"
  PDFRPT.UnitOfMeasure = "mm"
  PDFRPT.TextOut "Hello World!10 mm", 10, 10
  PDFRPT.UnitOfMeasure = "cm"
  PDFRPT.TextOut "Hello World! 10 cm", 10, 10
  PDFRPT.SavePDF "c:\provaocx.pdf"
End Sub

The commands used to write text are almost identical, but BEFORE using them we have simply changed the UnitOfMeasure property of the PDFDocument, so the strings are in different positions (10 mm and 10 cm respectively):