Hi,
using ImageEnView1.PdfViewer.Objects.AddImage to let an image (width = 1234 px) exactly fit the page width (PdfViewer.PageWidth = 992 px), setting width = ImageEnView1.PdfViewer.PageWidth adds a too large image:
ImageEnView1.PdfViewer.LoadFromFile(pdf);
ImageEnView1.PdfViewer.Objects.AddImage(0, 530, ImageEnView1.PdfViewer.PageWidth, -1, bmp);
Meanwhile, width = 595 (value taken from the TIEPDFBuilder help page) correctly fits the image to the page width:
ImageEnView1.PdfViewer.LoadFromFile(pdf);
ImageEnView1.PdfViewer.Objects.AddImage(0, 530, 595, -1, bmp);
Does this mean that to position an object on a pdf page, the page is always divided in 595 horizontal and 842 vertical points, indipendently of PdfViewer.PageWidth and PdfViewer.PageHeight?
Ale