PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Jul 16, 2024 10:34 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: Fri Sep 30, 2011 8:03 pm 
Offline

Joined: Thu Sep 29, 2011 1:39 pm
Posts: 5
My app uses PDFsharp to take pdfs and turn them into booklet pdfs. Now I need to optionally produce pdfs for printshops which require documents to be in mirror image, that is, flipped along the horizontal axis. Ideally I would do this as a process after the the booklet pages have been composed into a new pdf. Is there an elegant way to do this? Thanks.


Top
 Profile  
Reply with quote  
PostPosted: Sat Oct 01, 2011 2:55 pm 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 343
Should be a simple job with the correct transformation (not my area of expertise so I cannot tell you which transformation to use).

Sample using transformations:
http://www.pdfsharp.net/wiki/Graphics-s ... sformed_22

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 24, 2011 4:07 pm 
Offline

Joined: Thu Sep 29, 2011 1:39 pm
Posts: 5
Sorry, took me a while to get back to this project. Thanks for the pointers. I didn't find a way to do the flipping on the pages, but I can now flip while composing the pages in the first place:

Code:
Matrix mirrorMatrix = new Matrix(-1, 0, 0, 1, 0, 0);
gfx.MultiplyTransform(mirrorMatrix);
gfx.TranslateTransform(-width,1);


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: Google [Bot] and 55 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