Hi,
i just noticed that all images that are drawn by PDFControl.Canvas.Image() are not displayed correctly and not the same size as when draw by PDFControl.DrawImage().
However, if i extract the drawn pictures from the PDF (via copy&paste) and compare them. There are no errors and both have the same size.
I have to print directly to the Graphics-Object (PDFControl.Canvas) in my Project, so there's no way i could directly use PDFControl.DrawImage().
Look at this: http://www.softicesoft.ch/example.pdf
First image is correct, the second one is broken.
Code used for attached PDF:
Code
Dim pdf As PDFControl
Dim img As Image
pdf = New PDFControl()
img = new Image(...)
pdf.SetLicense(...)
pdf.BeginDoc(m_file)
pdf.StartPage(wPDF.ePage.DinA4, False)
pdf.DrawImage(img, 10, 10, CInt(img.Width * 0.5), CInt(img.Height * 0.5))
pdf.Canvas.DrawImage(img, 10, 400, CInt(img.Width * 0.5), CInt(img.Height * 0.5))
pdf.EndPage()
pdf.EndDoc()
Alles anzeigen
Any Ideas?
Thanks