The first has to do with DrawImage. I have the origin and units set on my PDF:
- Code: Select all
oGdPictureNewPDF.SetOrigin(PdfOrigin.PdfOriginTopLeft)
oGdPictureNewPDF.SetMeasurementUnit(PdfMeasurementUnit.PdfMeasurementUnitMillimeter)
When I use DrawText everything works just great and the text appears as expected. I was unable to get DrawImage to show the image though. I figured out eventually that the DrawImage method was not honoring the Origin and was using BottomLeft instead, so the image was being drawn off the page. When I specified negative Y units, I was able to get the image to draw in the location I needed, but I could not figure out why it was doing that (not honoring the Origin). Thoughts? It's not critical, since the negative coordinates is a usable workaround, but it seemed weird that Text would draw fine using the TopLeft, but not Image.
Second, a very minor oddity. When using SetAuthor, the value of this method appears in quotation marks in the PDF document properties. So if I do:
- Code: Select all
oGdPictureNewPDF.SetAuthor("My Company")
Then I see "My Company" (with the quotes) in the document properties. None of the other properties Set methods have this issue. Just wondering if that was a minor bug.
Thanks,
Bryan
