Exemplo n.º 1
0
 public void Setup()
 {
     _reader  = new PdfReader(_fileNameSorgente);
     _stamper = new PdfStamper(_reader, new FileOutputStream(_fileTemp));
     _form    = _stamper.getAcroFields();
     _m       = new PdfDescriber(_fileNameSorgente);
 }
Exemplo n.º 2
0
        public void Setup()
        {
            //System.IO.File.Copy(_fileNameSorgente, _fileNameDestinazione);
            _reader = new PdfReader(_fileNameSorgente);

            _stamper = new PdfStamper(_reader, new FileOutputStream(_fileNameDestinazione, true));
            if (_reader.isEncrypted())
            {
                System.Diagnostics.Debug.Print(PdfEncryptor.getPermissionsVerbose(_reader.getPermissions()));
            }
            _stamper.setEncryption(new byte[] { }, new byte[] { },
                                   PdfWriter.AllowPrinting | PdfWriter.AllowCopy | PdfWriter.AllowModifyContents | PdfWriter.AllowAssembly | PdfWriter.AllowDegradedPrinting | PdfWriter.AllowModifyAnnotations | PdfWriter.AllowFillIn | PdfWriter.AllowScreenReaders,
                                   PdfWriter.STRENGTH128BITS);


            _form   = _stamper.getAcroFields();
            _hTable = new Hashtable();
        }