View previous topic :: View next topic |
Author |
Message |
abbd
Joined: 09 Mar 2009 Posts: 7
|
Posted: Mon Mar 09, 2009 11:21 am Post subject: A version of PDF |
|
|
Hello,
How we can save the pdf file on version 17, with the pdfsharp we can save the pdf in 12,13 or 14 but not 17, please help me to resolve this great problem, thank you verry mutch. |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Mon Mar 09, 2009 12:42 pm Post subject: |
|
|
Hi!
PDFsharp 1.2 already supports settings the version to 17.
This is open source - you can change the code to allow versions beyond 17.
This should work (but you won't be able to use Acrobat 9 features without further modifications).
Do you need new features? Or is it just the version number you need?
Here's the code:
Code: | public int Version
{
get { return this.version; }
set
{
if (!CanModify)
throw new InvalidOperationException(PSSR.CannotModify);
if (value < 12 || value > 17) // TODO not really implemented
throw new ArgumentException(PSSR.InvalidVersionNumber, "value");
this.version = value;
}
}
internal int version;
|
_________________ Regards
Thomas Hoevel
PDFsharp Team |
|
Back to top |
|
|
abbd
Joined: 09 Mar 2009 Posts: 7
|
Posted: Mon Mar 09, 2009 1:03 pm Post subject: |
|
|
Thomas Hoevel wrote: | Hi!
PDFsharp 1.2 already supports settings the version to 17.
This is open source - you can change the code to allow versions beyond 17.
This should work (but you won't be able to use Acrobat 9 features without further modifications).
Do you need new features? Or is it just the version number you need?
Here's the code:
Code: | public int Version
{
get { return this.version; }
set
{
if (!CanModify)
throw new InvalidOperationException(PSSR.CannotModify);
if (value < 12 || value > 17) // TODO not really implemented
throw new ArgumentException(PSSR.InvalidVersionNumber, "value");
this.version = value;
}
}
internal int version;
|
|
Thank you verry mutch for your answer, i just need to modify the version on 17, but how i can modify this, i have introduce the pdfsharp dll in references, but when i search public int version (), i can't modify it, hel me please, thank you verry mutch. |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Tue Mar 10, 2009 7:52 am Post subject: |
|
|
This is how it works in C#:
Code: | PdfDocument pdfDocument = new PdfDocument();
pdfDocument.Version = 17; |
_________________ Regards
Thomas Hoevel
PDFsharp Team |
|
Back to top |
|
|
|