PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Jun 27, 2024 12:26 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Jan 12, 2011 2:59 pm 
Offline

Joined: Wed Jan 12, 2011 2:34 pm
Posts: 2
Hi ladies & gentlemen. We have a case of numerous 1.4 PDF files with a portrait orientation that open fine in Acrobat Reader 9.
But when we open them and save them with the PDF Sharp library used in C#, the page dimensions are inverted, Width becomes Height and vice-versa ! Please note that the informations inside the PDF document (ie what we see on screen) is not rotated, it seems not to be any portrait/landscape confusion, just the page dimension are inverted, which loses a part of the useful information on screen.
Here's the code :

using (PdfDocument oDocument = PdfReader.Open(sPath, PdfDocumentOpenMode.Modify))
{
// nothing by now....
}
oDocument.Save(sPath);

Do you have any idea about this effect ?
Thanks by advance.
Gregory Joulin
IT Developer
ps : i've tried to use pdf sharp 1.31 assembly but it seems to freeze in memory, hence a request timeout; under visual studio 2008, it raises a big "Assertion fault" window, awaiting for user action (Cancel, Retry, ignore), which stops our Web service from running. Would it be a bug ?


Top
 Profile  
Reply with quote  
PostPosted: Wed Jan 12, 2011 3:44 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3100
Location: Cologne, Germany
Gregory44 wrote:
under visual studio 2008, it raises a big "Assertion fault" window, awaiting for user action (Cancel, Retry, ignore), which stops our Web service from running. Would it be a bug?

Use a RELEASE build on the server (no assertions coming).

You should try version 1.31.
Maybe this thread can help:
viewtopic.php?p=3266#p3266

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Jan 12, 2011 4:13 pm 
Offline

Joined: Wed Jan 12, 2011 2:34 pm
Posts: 2
Thanks a lot for your quick answer.... it seems to give good results, i'll push forward the testings tomorrow ! Have a nice day
Gregory


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 25 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:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group