PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Nov 19, 2017 5:45 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Oct 07, 2010 5:00 pm 
Offline

Joined: Thu Oct 07, 2010 4:51 pm
Posts: 2
Hello

Thanks a lot for this great library!, I downloaded it some minutes ago - and already have a working tool...

I noticed, that we can define a Filename in PdfDocument's constructor -
and then it's needless to be forced to define a filename again in the Save() function.

Maybe it would be useful if null or string.empty is passed and PdfDocument
already has a filename, then this filename is ised.

Kind regards,
Thomas


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 08, 2010 9:01 am 
Offline

Joined: Thu Oct 07, 2010 4:51 pm
Posts: 2
Hello

I have noticed, that PdfDocument's constructor with a file argument and
PdfDocument.Save() with the same filename behaves strange: the exception
'the file is used by another process' is thrown.

I think this is one more reason for supporting PdfDocument.Save() command
without an argument, which just saves the file passed in the constructor.

Kind regards,
Thomas


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 11, 2010 7:12 am 
Offline
empira Employee
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2732
Location: Cologne, Germany
Hi, Thomas,

I put this issue onto our bug list, should be fixed with the next release.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 12, 2014 4:00 pm 
Offline
empira Employee
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2732
Location: Cologne, Germany
Hi, Thomas, all!
Toms wrote:
I noticed, that we can define a Filename in PdfDocument's constructor -
and then it's needless to be forced to define a filename again in the Save() function.
Late reply: it's not a bug, it's a feature.

When you pass a filename or a stream to the constructor, just call Close() when you are done and the document will be saved - to the file or the stream.
I think there won't be a "Save()" without parameters.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group