I am a newbie and currently have the code at the bottom that adds a watermark to teh PDF the user is viewing.
I need to know who to make the code not show the watermark. I dont know how to set newdoc without WATERMARKDOCUMENT.
Thanks in advance for any help.
--------------------------------------------------------------------
Dim pdfDoc As PdfDocument = New PdfDocument(filePath)
Dim newDoc As Byte() = pdfDoc.WatermarkDocument()
Dim pdfFileName As String = filePath.Substring(filePath.LastIndexOf("\") + 1)
SendPdfToUser(pdfFileName, newDoc)
------------------------------------------------------------------
Private Sub SendPdfToUser(ByVal filename As String, ByVal fileBytes As Byte())
Context.Response.Clear()
Context.Response.ContentType = "application/pdf"
Context.Response.AppendHeader("content-disposition", "attachment; filename=" + filename)
Context.Response.BinaryWrite(fileBytes)
Context.Response.Flush()
Context.Response.End()