Hi,
Thanks for reply.I am getting this problem with other files also (Not all).I tried to print these files from my machine to 2-3 different printer as well as i tried same with 2-3 other machine also but same result.
Here is my sample code
Dim license As Aspose.Pdf.Kit.License = New Aspose.Pdf.Kit.License()
license.SetLicense("Aspose.Pdf.kit.lic")
Dim path As String = MapPath(".")
''path = path.Substring(0, path.LastIndexOf("\"))
Dim enCulture As System.Globalization.CultureInfo = New System.Globalization.CultureInfo("")
Dim d As Single = Single.Parse("0.78431", enCulture)
Dim stamper As PdfFileStamp = New PdfFileStamp(path & Replace(strFilePath, "~", "").Replace("/", "\"), path & Replace(strFilePath, "~", "").Replace("/", "\") & ".pdf")
Dim aStamp As Stamp = New Stamp()
Dim fontsize As Single = Convert.ToSingle(ConfigurationSettings.AppSettings("WaterMarkTextFont"), enCulture)
Dim objFormatter As FormattedText
objFormatter = New FormattedText(ConfigurationSettings.AppSettings("WaterMarkText"), New FontColor(255, 0, 0), FontStyle.TimesBold, EncodingType.Winansi, False, fontsize)
objFormatter.AddNewLineText("Un-Controlled Copy")
objFormatter.AddNewLineText(IO.Path.GetFileName(path & Replace(strFilePath, "~", "").Replace("/", "\")))
aStamp.BindLogo(objFormatter)
aStamp.IsBackground = False
Dim rotation As Single = Convert.ToSingle(ConfigurationSettings.AppSettings("WaterMarkTextRotation"), enCulture)
aStamp.Rotation = rotation
Dim originX As Single = Convert.ToSingle(ConfigurationSettings.AppSettings("WaterMarkTextXPosition"), enCulture)
Dim originY As Single = Convert.ToSingle(ConfigurationSettings.AppSettings("WaterMarkTextYPosition"), enCulture)
aStamp.SetOrigin(originX, originY)
aStamp.Opacity = 0.5
stamper.AddStamp(aStamp)
stamper.Close()
strFilePath &= ".pdf"
Response.Redirect(strFilePath)
---------------------------------------------------------------------------------
My main printer is HP Color LaserJet 5550..If you want i can send u few more sample files which are not getting porinted after stamping.
Regards,
Ritesh