Is it possible to create a Rect text area with black font and no boarder or at least a white border?
Also, is it possible to add an image and not have it scale to fit the Rect?
To make a white border
PDFDoc.Color.String = "255 255 255"
PDFDoc.Rect.Left = 100
...
Per their documentation, "the line color is determined by the current color"
Create rect text area with black font:
Dim PDFDoc As WebSupergoo.ABCpdf8.Doc
'Dimensions
PDFDoc.Rect.Left =100
PDFDoc.Rect.Bottom = 100
PDFDoc.Rect.Width = 100
PDFDoc.Rect.Height = 100
PDFDoc.Color.String = "0, 0, 0" 'black font
PDFDoc.AddText(text)
But be careful. If the text is bigger than the rect then it will not appear.
There will be no border by default. If you need one, use:
PDFDoc.FrameRect()
To add an image:
Dim bm As Bitmap
bm = New Bitmap(filename)
'Dimensions
PDFDoc.Rect.Left = 100
PDFDoc.Rect.Bottom = 100 'N.B Measures from bottom, not top
PDFDoc.Rect.Width = 100
PDFDoc.Rect.Height = 100
PDFDoc.FillRect()
PDFDoc.AddImageBitmap(bm, True)
However, I don't think it's possible to make it not fit the Rect. As I understand it, that's kind of the point of having the Rect anyway.
Also, I recommend having a look at websupergoo's documentation . It's pretty good.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.