PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

A version of PDF

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
abbd



Joined: 09 Mar 2009
Posts: 7

PostPosted: Mon Mar 09, 2009 11:21 am    Post subject: A version of PDF Reply with quote

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
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Mon Mar 09, 2009 12:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
abbd



Joined: 09 Mar 2009
Posts: 7

PostPosted: Mon Mar 09, 2009 1:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Tue Mar 10, 2009 7:52 am    Post subject: Reply with quote

This is how it works in C#:
Code:
PdfDocument pdfDocument = new PdfDocument();
pdfDocument.Version = 17;

_________________
Regards
Thomas Hoevel
PDFsharp Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com