PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri May 03, 2024 6:47 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Jan 07, 2010 4:20 am 
Offline

Joined: Thu Jan 07, 2010 4:02 am
Posts: 1
when i tested PDFSharp, i found a problem about document's saving. The attachment
Attachment:
b.rar [158.36 KiB]
Downloaded 281 times
is a test document, i used the following codes to test it

//////////
PdfDocument document = PdfReader.Open(filename);
document.Save(filename);
//////////

Then i reopened the document using Adobe Acrobat, i found the document is truncated and page width became smaller.

I'm really not sure what I am doing wrong.

Thanks in advance for any help.


Top
 Profile  
Reply with quote  
PostPosted: Fri Jan 15, 2010 3:16 pm 
Offline
Supporter

Joined: Fri May 15, 2009 3:28 pm
Posts: 96
hi,

maybe its to do with the default page size of a PdfDocument object?

not sure how you would do it, but you could maybe detect the size of the pages in the pdf document from it's fileheader, then set the PdfDocument objects page size properties to the values in the headers?

as i said, not sure if this is even possible, but its where i would start looking.

Mike


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 96 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