How to add border to a pdf image generated by Nevron


Author
Message
sudarshan rudrappa
sudarshan rudrappa
Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)
Group: Forum Members
Posts: 9, Visits: 2
Hi,

I have tried adding border using the following methods also

1)
Dim frameStyle As NStandardFrameStyle = DirectCast(document.BackgroundStyle.FrameStyle, StandardFrameStyle)
frameStyle.InnerBorderWidth = New NLength(5)
frameStyle.InnerBorderColor = Color.Black
frameStyle.OuterBorderWidth = New NLength(5)
frameStyle.OuterBorderColor = Color.Black
document.BackgroundStyle.FrameStyle.Visible = True

2)
'Dim imageImageFrameStyle As NImageFrameStyle = New NImageFrameStyle()
'imageImageFrameStyle.FillStyle = New NGradientFillStyle(GradientStyle.Horizontal, GradientVariant.Variant2, Color.AliceBlue, Color.BlanchedAlmond)
'imageImageFrameStyle.BorderStyle.Width = New NLength(2, NGraphicsUnit.Pixel)
'imageImageFrameStyle.BorderStyle.Color = Color.Black
'imageImageFrameStyle.ShadowStyle.Type = ShadowType.LinearBlur
'imageImageFrameStyle.ShadowStyle.Color = Color.FromArgb(125, 0, 0, 0)
''imageImageFrameStyle.LightColor = Nevron.GraphicsCore.NColor.White
''imageImageFrameStyle.ShadowColor = Color.Navy
'imageImageFrameStyle.LightEffectSize = New NLength(7, NGraphicsUnit.Pixel)
'imageImageFrameStyle.TubeMargins = New NMarginsL(New NLength(30, NGraphicsUnit.Pixel), New NLength(30, NGraphicsUnit.Pixel), New NLength(30, NGraphicsUnit.Pixel), New NLength(30, NGraphicsUnit.Pixel))
'imageImageFrameStyle.CornerMargins = New NMarginsL(New NLength(40, NGraphicsUnit.Pixel), New NLength(30, NGraphicsUnit.Pixel), New NLength(30, NGraphicsUnit.Pixel), New NLength(30, NGraphicsUnit.Pixel))
'imageImageFrameStyle.BackgroundColor = Color.White
'document.BackgroundStyle.FrameStyle = imageImageFrameStyle
document.BackgroundStyle.FrameStyle.Visible = False

The problem i am facing is the border is overlapping with the image edges.
Please help me how to set the border properties so that it sits outside the image and doesn't overlap with the original image.
Please find attached the pdf file generated.

Thanks,
Sudarshan

Attachments
NevronPDF.gif (216 views, 153.00 KB)
sudarshan rudrappa
sudarshan rudrappa
Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)
Group: Forum Members
Posts: 9, Visits: 2
Hi

I have a pdf generated by Nevron for which i need to had a rectangular border or a shape file which contains the border.
I have added the shapefile which contains the border to the pdf image.But the original image is compressed in size.
Please help me how to set the proportions of the frame so that both images are fit wit each other.


The code i am using to add the border shape file is given below
Dim shapeFilePaths As List(Of String)
shapeFilePaths = Session("ShapeFileNames")
Dim fullFilePath As String
fullFilePath = HttpContext.Current.Server.MapPath("~/Imaging/ShapeFiles/" & Config.ProjectID & "/" & buildingID.ToString & "/" & "Border_lin.shp")
shapeFilePaths.Add(fullFilePath)

Thanks,
Sudhi
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search