Still searching for enable saveas button in pdf file. = true // PdfReader pReader = new PdfReader() // PdfEncryptor.Encrypt(reader, new FileStream("1.pdf", FileMode.Open), PdfWriter.STRENGTH128BITS, "23!54", null, PdfWriter.AllowScreenReaders) Stamper.SetEncryption(Encoding.GetBytes( " 23!54"), null, PdfWriter.AllowScreenReaders, PdfWriter.STRENGTH40BITS ) PdfStamper stamper = new PdfStamper(reader, output) PdfEncryptor.Encrypt(reader, output, true, "23!54", "23!54", PdfWriter.ALLOW_SCREENREADERS) Using (Stream output = new FileStream(OutputFile, FileMode.Create, FileAccess.Write, FileShare.None)) Using (Stream input = new FileStream(InputFile, FileMode.Open, FileAccess.Read, FileShare.Read)) String OutputFile = Path.Combine(WorkingFolder, " 2.pdf") For example, the name of the File > Save As menu item is SaveAs.Not a big difference, but the exact name is critical in a script. Using this Java PDF component, developers and programmers can implement rich capabilities to create PDF files from scratch or process existing PDF documents entirely on Java applications (J2SE and J2EE).
It is a special name used by scripts and plugins. Spire.PDF for Java is a PDF API that enables Java applications to read, write and save PDF documents without using Adobe Acrobat.
This name is not the menu item label displayed to the user. String InputFile = Path.Combine(WorkingFolder, " StickerSheet_New.pdf") The input to the app.execMenuItem() function is the name of the menu item. String WorkingFolder = Environment.GetFolderPath() The feature is extremely useful when you have interactive elements in a PDF but you don't want them to remain interactive when distributing the file to a larger audience, especially online. Protected void Page_Load( object sender, EventArgs e) The Adobe Flatten PDF function is a feature in Adobe Acrobat DC and Pro DC that allows you to remove layering in a PDF document and render it as a printable file.