示例#1
0
 private static void SetPrintingProperties(ref byte[] reportByte)
 {
     using (var reader = new PdfReader(reportByte))
     {
         using (var ms = new MemoryStream())
         {
             var stamper = new PdfStamper(reader, ms);
             // Disattivo il ridimensionamento
             stamper.AddViewerPreference(PdfName.PRINTSCALING, PdfName.NONE);
             var info = reader.Info;
             info.AddSafe("Creator", "Dgroove Srl");
             info.AddSafe("Author", "Dgroove Srl");
             stamper.MoreInfo = info;
             stamper.Close();
             reportByte = ms.ToArray();
         }
     }
 }