PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 11:58 am

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: Tue May 21, 2019 1:42 pm 
Offline

Joined: Tue May 21, 2019 1:32 pm
Posts: 2
Hi,

I've been trying to trim document in order to reduce its size without scaling content.
Ex. I got page 20 x 30cm and I'd like to trim it to 18 x 30cm, which means cut out those 2cm with all content.

I managed to do so on the right side and top of the document using:
Code:
page.TrimMargins.Right = someValue; //someValue is XUnit obj.
page.TrimMargins.Top = someValue;


Unfortunately, when trying to trim left side or bottom it still trims right and top.
I've found couple sample codes and they all look similar to mine (there's really not much that could go wrong), so I suspect it might be bug.

Can anyone help please?


Top
 Profile  
Reply with quote  
PostPosted: Thu May 23, 2019 7:54 am 
Offline

Joined: Tue May 21, 2019 1:32 pm
Posts: 2
Hi,

I've been trying to trim document in order to reduce its size without scaling content.
Ex. I got page 20 x 30cm and I'd like to trim it to 18 x 30cm, which means cut out those 2cm with all content.

I managed to do so on the right side and top of the document using:
Code:
page.TrimMargins.Right = someValue; //someValue is XUnit obj.
page.TrimMargins.Top = someValue;


Unfortunately, when trying to trim left side or bottom it still trims right and top.
I've found couple sample codes and they all look similar to mine (there's really not much that could go wrong), so I suspect it might be bug.

Can anyone help please?


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: Bing [Bot] and 144 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