I'm trying to resize/position an image on a PDF document but having issues converting from DIP to PX.
How does one do it since when i manipulate images its in PX but PDFProcessing needs it in DIPs
dim x as integer=100
dim y as integer=100
Dim doc1 As RadFixedDocument = provider.Import(page) ' page containes blank pdf byte array created using document.Pages.AddPage()
Dim pg As RadFixedPage = doc1.Pages(0)
Dim ms As New IO.MemoryStream(img)
Dim Image As New Telerik.Windows.Documents.Fixed.Model.Resources.ImageSource(ms)
Dim t As Objects.Image = pg.Content.AddImage(Image)
t.Position.Clear()
t.Position.Translate(PX2DIP(x), PX2DIP(y))
Return provider.Export(doc1)