如何在wpf窗口中为所有Itextsharp pdf页面打印水印

时间:2019-04-02 06:41:35

标签: c# wpf

我在wpf“窗口”中使用Itextsharp pdf我的代码只在特定页面上打印水印,我需要在所有pdf页面上打印水印吗?

 FileStream fs1 = new FileStream("vid.Png", FileMode.Open);
 iTextSharp.text.Image JPG = iTextSharp.text.Image.GetInstance(System.Drawing.Image.FromStream(fs1), ImageFormat.Png);

  //Scale image
  JPG.ScalePercent(30f);

  // Set position
   JPG.SetAbsolutePosition(130f, 240f);

   //Close Stream
   fs1.Close();

0 个答案:

没有答案