top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

c#: How to set PDF version using iTextsharp?

0 votes
444 views
c#: How to set PDF version using iTextsharp?
posted Jun 16, 2017 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

you can use below code for setting pdf version:

 PdfReader reader = new PdfReader(pdfPath);
 PdfStamper stamper = new PdfStamper(reader, outputStream);
 stamper.setPdfVersion(PdfWriter.PDF_VERSION_1_4);
 stamper.close();
answer Jun 23, 2017 by Shweta Singh
...