View previous topic :: View next topic |
Author |
Message |
shijilrajuk
Joined: 22 Jan 2009 Posts: 3
|
Posted: Thu Jan 22, 2009 7:03 am Post subject: create PDF documents with newer version |
|
|
Hai All,
While creating pdf documents by using PDFSharp library, by default generating pdf files with version 1.4 (Acrobat 5.x).
Whether PDFSharp library provides option to create PDF files with newer version..? [version 1.6 or version 1.7]
Thanks in Advance for any help,
Shijil Raj U K |
|
Back to top |
|
 |
Thomas Hoevel

Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Thu Jan 22, 2009 12:43 pm Post subject: |
|
|
Hi!
Simply set the version you want:
Code: | // Open an existing document for editing and loop through its pages
PdfDocument document = PdfReader.Open(filename);
// Set version to PDF 1.4 (Acrobat 5) because we use transparency.
if (document.Version < 14)
document.Version = 14;
|
_________________ Regards
Thomas Hoevel
PDFsharp Team |
|
Back to top |
|
 |
shijilrajuk
Joined: 22 Jan 2009 Posts: 3
|
Posted: Fri Jan 23, 2009 6:56 am Post subject: |
|
|
Thanks Thomas Hoevel.
Is there any advantage of creating PDF documents with higher version than lower version by using PDFSharp library. |
|
Back to top |
|
 |
|