Hello.
thanks for your code...
anyway, when i try to use it, i get this error:
+ ex {"The process cannot access the file 'C:\WwwRoot\Osiris.4\Portals\0\FileLezioni\105235373_Lesson_233.pdf' because it is being used by another process."} System.Exception
i've just created the pdf in this way...
Dim document As iTextSharp.text.Document = New iTextSharp.text.Document(rect)
Dim writer As iTextSharp.text.pdf.PdfWriter
writer = iTextSharp.text.pdf.PdfWriter.GetInstance(document, New FileStream(path & nameFile, FileMode.Create))
....
do my job ... then i do....
document.Close()
writer.Close()
Dim watermarkImage As String = watermarkimagepath & watermarkimageName
AddWatermarkImage(path & nomeFile, path & nomeFile, watermarkImage) 'callyour procedure
is there something i forget... if the document and writer are closed... what is missing??
thanks
Rudy Vicelli