Visual studio using VB.net or C# to edit PDF properties

  • Thread starter Thread starter kid_klyde
  • Start date Start date
K

kid_klyde

Guest
HI All,



I am trying to automate to remove PDF authors in visual studio environment. The code is similar to this.

However, I can't find a build-in DLL for the visual studio for the reference. the PdfSharp.pdf was a external dll i found in the web. Just want to avoid installing outside visual studio dlls. Thanks in advance.

using System;
using PdfSharp.Pdf;
using PdfSharp.Pdf.IO;

namespace ConsoleApplication1
{
class Program
{
static void Main (string[] args)
{
Program p = new Program();
p.Test();

}

public void Test ()
{
PdfDocument document = PdfReader.Open ("Test.pdf");

document.Info.Author = "ME"; --> I need DLL so it can read the variables

document.Save ("Result");
}
}


Continue reading...
 
Back
Top